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AG,SAAS,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,KAAK,EAAE,CAAC;QACX,uCAAuC;QACvC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC;IACnE,CAAC;AACF,CAAC,EAAE,KAAK,CAAC,CAAC;AAGV,gBAAgB;AAChB,IAAG,EAAE,EAAC,CAAC;IACN,IAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,0CAA0C,CAAC,CAAC;IACnF,IAAG,OAAO;QAAE,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAE1C,IAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,wCAAwC,CAAC;IACnF,IAAG,UAAU;QAAE,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEhD,IAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC,2EAA2E,CAAC,CAAC;IAC5H,IAAG,eAAe;QAAE,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IAEjE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,iCAAiC,EACpD,CAAC,QAAQ,CAAC,aAAa,CAAC,6BAA6B,CAAC,IAAI,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CACtI;IAED,IAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,gCAAgC,CAAC,CAAC;IAC3E,IAAG,SAAS,EAAE,CAAC;QACd,SAAS,CAAC,gBAAgB,CAAC,OAAO,EAAE;YACnC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,iCAAiC,CAAC;QACvD,CAAC,CAAC;IACH,CAAC;AACF,CAAC","sources":["webpack://2sic-standard-skin-template/webpack/bootstrap","webpack://2sic-standard-skin-template/webpack/runtime/make namespace object","webpack://2sic-standard-skin-template/./src/scss/styles.scss","webpack://2sic-standard-skin-template/./src/ts/scripts.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// extracted by mini-css-extract-plugin\nexport {};","/* Open all PDF links in a new window */\r\ndocument.querySelectorAll('a').forEach((linkElem: Element, index) => {\r\n\tif(linkElem.hasAttribute('href') && linkElem.getAttribute('href').endsWith('.pdf')) {\r\n\t\tlinkElem.setAttribute('target', '_blank');\r\n\t}\r\n});\r\n\r\n/* mailencrypting */\r\nsetTimeout(function () {\r\n\tlet mailElement = document.querySelectorAll('[data-madr1]:not(.madr-done)');\r\n\r\n\tmailElement.forEach((mail: HTMLElement, index) => {\r\n\t\tconst maddr = mail.getAttribute('data-madr1') + '@' + mail.getAttribute('data-madr2') + '.' + mail.getAttribute('data-madr3');\r\n\t\tconst linktext = mail.getAttribute('data-linktext') ? mail.getAttribute('data-linktext') : maddr;\r\n\r\n\t\tconst a = document.createElement('a')\r\n\t\ta.setAttribute('href', `mailto:${maddr}`)\r\n\t\ta.innerHTML = linktext;\r\n\r\n\t\tif (mail.parentElement) mail.parentElement.appendChild(a);\r\n\t\tmail.classList.add('madr-done');\r\n\t\tmail.style.display = 'none';\r\n\t});\r\n}, 500);\r\n\r\n/* Go to top button */\r\nif(document.querySelector('#theme-to-top')) {\r\n\tdocument.querySelector('#theme-to-top').addEventListener('click', (e) => {\r\n\t\te.preventDefault();\r\n\t\r\n\t\twindow.scrollTo({\r\n\t\t\ttop: 0,\r\n\t\t\tleft: 0,\r\n\t\t\tbehavior: 'smooth'\r\n\t\t});\r\n\t})\r\n}\r\n\r\n/* scrolling behavior (to top button / breadcrumb) */\r\nconst navheader = document.querySelector('#theme-page-navigation') as HTMLElement;\r\nconst bc = document.querySelector('.theme-page-breadcrumb') as HTMLElement | null;\r\nconst toTop = document.querySelector(\"#theme-to-top\") as HTMLElement | null;\r\n\r\nwindow.addEventListener('scroll', () => {\r\n\tconst navHeight = navheader.offsetHeight;\r\n\r\n\t\r\n\tif (bc) {\r\n\t\tbc.style.top = `${navHeight - 1}px`;\r\n\t\t\r\n\t\t// Breadcrumb-Position relativ zum Viewport\r\n\t\tconst bcPosition = Math.round(bc.getBoundingClientRect().top);\r\n\t\t\r\n\t\t// Klasse hinzufügen/entfernen, wenn Breadcrumb die obere Position erreicht\r\n\t\tbc.classList.toggle('bg-light', bcPosition < navHeight);\r\n\t\tbc.classList.toggle('shadow-sm', bcPosition < navHeight);\r\n\t}\r\n\r\n\tif (toTop) {\r\n\t\t// Scroll-to-top Button ein-/ausblenden\r\n\t\ttoTop.classList.toggle('theme-top-visible', window.scrollY > 200);\r\n\t}\r\n}, false);\r\n\r\n\r\n/* Breadcrumb */\r\nif(bc){\r\n\tconst bcALast = document.querySelector('.theme-page-breadcrumb span a:last-child');\r\n\tif(bcALast) bcALast.classList.add('last');\r\n\r\n\tconst bcSpanLast = document.querySelector('.theme-page-breadcrumb span:last-child')\r\n\tif(bcSpanLast) bcSpanLast.classList.add('last');\r\n\r\n\tconst bcSpanLinkChild = document.querySelector('.theme-page-breadcrumb span .theme-page-breadcrumb-link:nth-last-child(3)');\r\n\tif(bcSpanLinkChild) bcSpanLinkChild.classList.add('second-last');\r\n\r\n\tbc.classList.toggle('theme-page-breadcrumb-shortened', \r\n\t\t(document.querySelector('.theme-page-breadcrumb-link') != null || document.querySelectorAll('.theme-page-breadcrumb-link').length > 2)\r\n\t)\r\n\t\r\n\tconst bcTrigger = document.querySelector('.theme-page-breadcrumb-trigger');\r\n\tif(bcTrigger) {\r\n\t\tbcTrigger.addEventListener('click', () => {\r\n\t\t\tbc.classList.toggle('theme-page-breadcrumb-shortened')\r\n\t\t})\r\n\t}\r\n}\r\n\r\n\r\n"],"names":[],"sourceRoot":""}