{"mappings":"ACAA,MAAM,EAAiB,CAAC,EAAM,KAC5B,EAAO,GAAQ,EAAE,CAEjB,GAAM,CAAA,WAAE,CAAU,CAAE,CAAG,SAEvB,AAAK,EAIE,EAAe,EAAY,EAAK,MAAM,CAAC,IAHrC,CAIX,EAEM,EAAe,AAAC,GACpB,AAAI,EAAM,IAAI,CACL,EAAM,IAAI,CAGf,EAAM,YAAY,CACb,EAAM,YAAY,GAGpB,EAAe,EAAM,MAAM,EAGpC,OAAO,gBAAgB,CAAC,OAAQ,KAE9B,IAAM,EAAY,AADL,IAAI,SAAS,gBAAgB,CAAC,yBAAyB,CAC7C,IAAI,CAAC,AAAC,GAAQ,SAAS,IAAI,CAAC,QAAQ,CAAC,EAAI,YAAY,CAAC,QAAQ,OAAO,CAAC,QAAS,MAChG,EAAS,SAAS,aAAa,CAAC,gBAChC,EAAgB,SAAS,aAAa,CAAC,eAE7C,EAAU,SAAS,CAAC,GAAG,CAAC,UACxB,EAAO,aAAa,CAAC,iBAAiB,SAAS,CAAG,EAAU,SAAS,CACrE,SAAS,aAAa,CAAC,gBAAgB,OAAO,CAAG,IAAM,EAAc,SAAS,CAAC,MAAM,CAAC,UACtF,OAAO,OAAO,CAAG,AAAC,IAEQ,AADX,EAAa,GACG,QAAQ,CAAC,SAAS,aAAa,CAAC,oBAG3D,EAAc,SAAS,CAAC,MAAM,CAAC,SAEnC,CACF","sources":["","src/public/js/docs.js"],"sourcesContent":["var $c4c2531a5e1343be$exports = {};\nconst $c4c2531a5e1343be$var$getParentNodes = (node, path)=>{\n path = path || [];\n const { parentNode: parentNode } = node;\n if (!parentNode) return path;\n return $c4c2531a5e1343be$var$getParentNodes(parentNode, path.concat(parentNode));\n};\nconst $c4c2531a5e1343be$var$getEventPath = (event)=>{\n if (event.path) return event.path;\n if (event.composedPath) return event.composedPath();\n return $c4c2531a5e1343be$var$getParentNodes(event.target);\n};\nwindow.addEventListener(\"load\", ()=>{\n const docs = [\n ...document.querySelectorAll(\".docs-names .doc-name\")\n ];\n const activeDoc = docs.find((doc)=>location.href.includes(doc.getAttribute(\"href\").replace(\".html\", \"\")));\n const select = document.querySelector(\".docs-select\");\n const docsContainer = document.querySelector(\".docs-names\");\n activeDoc.classList.add(\"active\");\n select.querySelector(\".selected-doc\").innerHTML = activeDoc.innerText;\n document.querySelector(\".docs-select\").onclick = ()=>docsContainer.classList.toggle(\"opened\");\n window.onclick = (event)=>{\n const path = $c4c2531a5e1343be$var$getEventPath(event);\n const isOutsideClick = !path.includes(document.querySelector(\".links-wrapper\"));\n if (isOutsideClick) docsContainer.classList.remove(\"opened\");\n };\n});\n\n\n//# sourceMappingURL=agreement.017d6534.js.map\n","const getParentNodes = (node, path) => {\n path = path || [];\n\n const { parentNode } = node;\n\n if (!parentNode) {\n return path;\n }\n\n return getParentNodes(parentNode, path.concat(parentNode));\n};\n\nconst getEventPath = (event) => {\n if (event.path) {\n return event.path;\n }\n\n if (event.composedPath) {\n return event.composedPath();\n }\n\n return getParentNodes(event.target);\n};\n\nwindow.addEventListener('load', () => {\n const docs = [...document.querySelectorAll('.docs-names .doc-name')]\n const activeDoc = docs.find((doc) => location.href.includes(doc.getAttribute('href').replace('.html', '')))\n const select = document.querySelector('.docs-select');\n const docsContainer = document.querySelector('.docs-names');\n\n activeDoc.classList.add('active');\n select.querySelector('.selected-doc').innerHTML = activeDoc.innerText\n document.querySelector('.docs-select').onclick = () => docsContainer.classList.toggle('opened')\n window.onclick = (event) => {\n const path = getEventPath(event);\n const isOutsideClick = !path.includes(document.querySelector('.links-wrapper'));\n\n if (isOutsideClick) {\n docsContainer.classList.remove('opened')\n }\n }\n})\n"],"names":["$c4c2531a5e1343be$var$getParentNodes","node","path","parentNode","concat","$c4c2531a5e1343be$var$getEventPath","event","composedPath","target","window","addEventListener","activeDoc","docs","document","querySelectorAll","find","doc","location","href","includes","getAttribute","replace","select","querySelector","docsContainer","classList","add","innerHTML","innerText","onclick","toggle","remove"],"version":3,"file":"agreement.017d6534.js.map"}