{"version":3,"file":"334.bundle.js","mappings":"mHACO,SAASA,IAEZ,MAAMC,EAAqBC,SAASC,eAAe,kBAC7CC,EAAuBF,SAASC,eAAe,gCAC/CE,EAAsBH,SAASC,eAAe,+BAC/CF,GACDA,EAAmBK,iBAAiB,SAExC,WACIL,EAAmBM,UAAUC,OAAO,QACpCP,EAAmBQ,cAAcF,UAAUC,OAAO,QAClDJ,EAAqBG,UAAUC,OAAO,QACtCH,EAAoBE,UAAUC,OAAO,OACzC,IAEA,IAAIE,EAAgBR,SAASS,uBAAuB,gBAChDC,EAAqBC,MAAMC,KAAKJ,GAOpC,SAASK,IACLd,EAAmBM,UAAUS,IAAI,QACjCf,EAAmBQ,cAAcF,UAAUS,IAAI,QAC/CZ,EAAqBG,UAAUS,IAAI,QACnCX,EAAoBE,UAAUS,IAAI,OACtC,CAVIJ,GACJA,EAAmBK,SAAQC,IACvBA,EAASZ,iBAAiB,QAASS,EAAU,GASrD,C","sources":["webpack://narconon-us-site/./node_modules/@able-sbcadmin/narconon-npm/dist/resources-pages.js"],"sourcesContent":["// AUTHOR: ABLE DEV\nexport function resourcesPages() {\n /*------- Topics page sources toggle ---- */\n const sourcesFootnoteBtn = document.getElementById('sources-reveal');\n const topicCitationDesktop = document.getElementById('topic-citation-aside-desktop');\n const topicCitationMobile = document.getElementById('topic-citation-aside-mobile');\n if ( sourcesFootnoteBtn ) {\n sourcesFootnoteBtn.addEventListener('click', revealToggle );\n };\n function revealToggle() {\n sourcesFootnoteBtn.classList.toggle('open');\n sourcesFootnoteBtn.parentElement.classList.toggle('open');\n topicCitationDesktop.classList.toggle('open');\n topicCitationMobile.classList.toggle('open');\n }\n \n let citationLinks = document.getElementsByClassName('footnote-ref');\n let citationLinksArray = Array.from(citationLinks);\n\n if (citationLinksArray) {\n citationLinksArray.forEach(citation => {\n citation.addEventListener('click', revealOn );\n });\n }\n function revealOn() {\n sourcesFootnoteBtn.classList.add('open');\n sourcesFootnoteBtn.parentElement.classList.add('open');\n topicCitationDesktop.classList.add('open');\n topicCitationMobile.classList.add('open');\n }\n}"],"names":["resourcesPages","sourcesFootnoteBtn","document","getElementById","topicCitationDesktop","topicCitationMobile","addEventListener","classList","toggle","parentElement","citationLinks","getElementsByClassName","citationLinksArray","Array","from","revealOn","add","forEach","citation"],"sourceRoot":""}