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iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;ACNkC;AACoB;AAEtDJ,MAAM,CAACC,gBAAgB,CAAE,kBAAkB,EAAE,YAAM;EAElD,IAAMM,OAAO,GAAGC,QAAQ,CAACH,gBAAgB,CAAE,+CAAgD,CAAC;EAE5F,IAAKE,OAAO,CAACE,MAAM,GAAG,CAAC,EAAG;IAEzBF,OAAO,CAACb,OAAO,CAAE,UAAAb,MAAM,EAAI;MAE1B,IAAM6B,cAAc,GAAG,IAAI/B,oEAAS,CAAEE,MAAO,CAAC;MAC9C6B,cAAc,CAACC,kBAAkB,CAAC,CAAC;IAEpC,CAAE,CAAC;EAEJ;AAED,CAAE,CAAC,C","sources":["webpack://wombat/./src/js/front/single-post-slider.js","webpack://wombat/./src/scss/pages/single.scss?534e","webpack://wombat/webpack/bootstrap","webpack://wombat/webpack/runtime/define property getters","webpack://wombat/webpack/runtime/hasOwnProperty shorthand","webpack://wombat/webpack/runtime/make namespace object","webpack://wombat/./src/index-single-post.js"],"sourcesContent":["/**\n * SetSlider Class\n */\nexport default class SetSlider {\n\n\tslider;\n\n\tmediaQueryBreakpoint;\n\n\timageElement;\n\n\tswiperButtons;\n\n\tprogressBar;\n\n\t/**\n\t * Constructor\n\t *\n\t * @param {object} slider\n\t * @return {void}\n\t */\n\tconstructor( slider ) {\n\n\t\tthis.slider = slider;\n\t\tthis.mediaQueryBreakpoint = window.matchMedia( \"(max-width: 767px)\" );\n\t\tthis.imageElement = slider.querySelector( \".c-slide-gallery__image\" );\n\t\tthis.swiperButtons = slider.querySelectorAll( \".swiper-button\" );\n\t\tthis.progressBar = slider.querySelector( \".swiper-pagination.swiper-pagination-progressbar\" );\n\n\t}\n\n\tinitSliderSettings = () => {\n\n\t\tthis.setSliderButtonsOnMobile();\n\t\tthis.setProgressBarPosition();\n\t\tthis.setSliderSettingsOnResize();\n\n\t}\n\n\t/**\n\t * Sets the top position of the slider buttons on mobile devices based on the height of the image element.\n\t *\n\t */\n\tsetSliderButtonsOnMobile = () => {\n\n\t\tif ( this.mediaQueryBreakpoint.matches ) {\n\n\t\t\tconst imageElementHeight = this.imageElement.offsetHeight - 60;\n\n\t\t\tthis.swiperButtons.forEach( ( button ) => {\n\n\t\t\t\tbutton.style.top = `${imageElementHeight}px`;\n\n\t\t\t} );\n\n\t\t}\n\n\t};\n\n\t/**\n\t * Set ProgressBar Position.\n\t *\n\t */\n\tsetProgressBarPosition = () => {\n\n\n\t\tif ( this.mediaQueryBreakpoint.matches ) {\n\n\t\t\tconst imageElementHeight = this.imageElement.offsetHeight - 54;\n\n\t\t\tif ( this.progressBar ) {\n\n\t\t\t\tthis.progressBar.style.top = `${imageElementHeight}px`;\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\t/**\n\t * Set slider buttons and progressBar positions on resize.\n\t *\n\t */\n\tsetSliderSettingsOnResize = () => {\n\n\t\twindow.addEventListener( \"resize\", () => {\n\n\t\t\tif ( this.mediaQueryBreakpoint.matches ) {\n\n\t\t\t\tconst imageElementHeight = this.imageElement.offsetHeight - 60;\n\t\t\t\tconst imageElementHeightForProgressBar = this.imageElement.offsetHeight - 54;\n\n\t\t\t\tthis.swiperButtons.forEach( ( button ) => {\n\n\t\t\t\t\tbutton.style.top = `${imageElementHeight}px`;\n\n\t\t\t\t} );\n\n\t\t\t\tif ( this.progressBar ) {\n\n\t\t\t\t\tthis.progressBar.style.top = `${imageElementHeightForProgressBar}px`;\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tthis.swiperButtons.forEach( ( button ) => {\n\n\t\t\t\t\tbutton.style.top = `0`;\n\n\t\t\t\t} );\n\n\t\t\t}\n\n\t\t} );\n\n\t}\n\n}\n\n","// extracted by mini-css-extract-plugin\nexport {};","// 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 './scss/pages/single.scss';\nimport SetSlider from './js/front/single-post-slider';\n\nwindow.addEventListener( 'DOMContentLoaded', () => {\n\n\tconst sliders = document.querySelectorAll( '.single-news-gallery .wombat-slider-container' );\n\n\tif ( sliders.length > 0 ) {\n\n\t\tsliders.forEach( slider => {\n\n\t\t\tconst sliderSettings = new SetSlider( slider );\n\t\t\tsliderSettings.initSliderSettings();\n\n\t\t} )\n\n\t}\n\n} );\n"],"names":["SetSlider","_createClass","slider","_this","_classCallCheck","_defineProperty","setSliderButtonsOnMobile","setProgressBarPosition","setSliderSettingsOnResize","mediaQueryBreakpoint","matches","imageElementHeight","imageElement","offsetHeight","swiperButtons","forEach","button","style","top","concat","progressBar","window","addEventListener","imageElementHeightForProgressBar","matchMedia","querySelector","querySelectorAll","default","sliders","document","length","sliderSettings","initSliderSettings"],"sourceRoot":""}