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MnD/C,OAAOgD,OAAS,IAAI","sources":["webpack://client-side/./src/ts/classes/sc-banner-scroll.ts","webpack://client-side/./src/ts/classes/syo-app.ts","webpack://client-side/webpack/bootstrap","webpack://client-side/webpack/runtime/define property getters","webpack://client-side/webpack/runtime/hasOwnProperty shorthand","webpack://client-side/webpack/runtime/make namespace object","webpack://client-side/./src/ts/syo.ts"],"sourcesContent":["import bootstrap from 'bootstrap';\r\n\r\nclass BannerScroll {\r\n\r\n init() {\r\n const scrollElements = document.querySelectorAll(\".sc-banner-image\");\r\n\r\n window.addEventListener('scroll', () => {\r\n this.handleScrollAnimation(scrollElements);\r\n })\r\n\r\n }\r\n\r\n elementInView(el, percentageScroll) {\r\n const elementTop = el.getBoundingClientRect().top;\r\n\r\n return (\r\n elementTop <=\r\n ((window.innerHeight || document.documentElement.clientHeight) * (percentageScroll / 100))\r\n )\r\n }\r\n\r\n addFade(element) {\r\n element.classList.add(\"scrolled\");\r\n }\r\n\r\n removeFade(element) {\r\n element.classList.remove(\"scrolled\");\r\n }\r\n\r\n handleScrollAnimation(scrollElements) {\r\n scrollElements.forEach((elemt) => {\r\n if (this.elementInView(elemt, 7)) {\r\n this.addFade(elemt);\r\n } else {\r\n this.removeFade(elemt);\r\n }\r\n })\r\n }\r\n\r\n}\r\n\r\nexport default BannerScroll;","import BannerScroll from \"./sc-banner-scroll\";\r\n\r\nclass SyoApp {\r\n BannerScroll: BannerScroll;\r\n\r\n constructor() {\r\n this.init()\r\n }\r\n\r\n init() {\r\n this.BannerScroll = new BannerScroll();\r\n }\r\n}\r\nexport default SyoApp;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// 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};","import SyoApp from \"./classes/syo-app\";\r\n\r\n// global window defines\r\ndeclare global {\r\n interface Window {\r\n //future stuff\r\n syoApp: SyoApp;\r\n }\r\n}\r\n\r\nconst globalSyoInit = function () {\r\n window.syoApp = new SyoApp();\r\n}\r\nglobalSyoInit();"],"names":["BannerScroll","init","scrollElements","document","querySelectorAll","window","addEventListener","this","handleScrollAnimation","elementInView","el","percentageScroll","elementTop","getBoundingClientRect","top","innerHeight","documentElement","clientHeight","addFade","element","classList","add","removeFade","remove","forEach","elemt","SyoApp","constructor","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","syoApp"],"sourceRoot":""}