{"version":3,"sources":["webpack://project-everest-portal/../sherpa-js/utilities/lazy-loader.js","webpack://project-everest-portal/../sherpa-js/utilities/media-queries.js","webpack://project-everest-portal/../sherpa-js/utilities/viewport-height-fix.js","webpack://project-everest-portal/webpack/bootstrap","webpack://project-everest-portal/webpack/runtime/define property getters","webpack://project-everest-portal/webpack/runtime/hasOwnProperty shorthand","webpack://project-everest-portal/webpack/runtime/make namespace object","webpack://project-everest-portal/../sherpa-js/utils.js"],"names":["lazyVideos","initLazyVideoObserver","margins","window","innerHeight","lazyVideoObserver","IntersectionObserver","intersectionHandler","rootMargin","forEach","lazyVideo","observe","entries","observer","video","isIntersecting","source","target","children","videoSource","tagName","dataset","mediaQuery","mediaQueries","matches","src","load","classList","add","unobserve","initLazyLoader","document","querySelectorAll","length","breakpoints","xxs","xs","sm","md","lg","xl","xxl","xxxl","super","matchMedia","handler","mq","hasOwnProperty","addEventListener","checkMinWindowSize","size","initViewportHeightFix","vh","documentElement","style","setProperty","utils","lazyLoader","init","viewportHeightFix"],"mappings":";;;;;;;;;;;;;;;AAAA;AAEA,IAAIA,UAAJ;;AAEA,SAASC,qBAAT,GAAiC;AAC7B,QAAMC,OAAO,GAAI,GAAEC,MAAM,CAACC,WAAP,GAAqB,IAAK,gBAA7C;;AAEA,MAAI,0BAA0BD,MAA9B,EAAsC;AAClC,UAAME,iBAAiB,GAAG,IAAIC,oBAAJ,CAAyBC,mBAAzB,EAA8C;AAAEC,gBAAU,EAAEN;AAAd,KAA9C,CAA1B;AAEAF,cAAU,CAACS,OAAX,CAAmB,UAASC,SAAT,EAAoB;AACnCL,uBAAiB,CAACM,OAAlB,CAA0BD,SAA1B;AACH,KAFD;AAGH;AACJ;;AAED,SAASH,mBAAT,CAA6BK,OAA7B,EAAsCC,QAAtC,EAAgD;AAC5CD,SAAO,CAACH,OAAR,CAAgB,UAASK,KAAT,EAAgB;AAC5B,QAAIA,KAAK,CAACC,cAAV,EAA0B;AACtB,WAAK,IAAIC,MAAT,IAAm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AAyBC,KAAzB,CAA+BC,WAA/B,CAA2C,MAA3C,EAAoD,GAAEH,EAAG,IAAzD;AACA,GAHD;AAIA,CARD;;AAUA,iEAAeD,qBAAf,E;;;;;;UCVA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WCtBA;WACA;WACA;WACA;WACA,wCAAwC,yCAAyC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,sDAAsD,kBAAkB;WACxE;WACA,+CAA+C,cAAc;WAC7D,E;;;;;;;;;;;;;ACNA;AACA;AAEA,MAAMK,KAAK,GAAG;AACVC,YAAU,EAAE;AACRC,QAAI,EAAE,MAAM;AACR5B,qEAAc;AACjB;AAHO,GADF;AAMV6B,mBAAiB,EAAE;AACfD,QAAI,EAAE,MAAM;AACRP,6EAAqB;AACxB;AAHc;AANT,CAAd;AAaAhD,MAAM,CAACqD,KAAP,GAAeA,KAAf,C","file":"js/utils.7e387b7e49394307b9ac.bundle.js","sourcesContent":["import { mediaQueries } from './media-queries';\n\nlet lazyVideos;\n\nfunction initLazyVideoObserver() {\n const margins = `${window.innerHeight * 0.75}px 0px 0px 0px`;\n\n if (\"IntersectionObserver\" in window) {\n const lazyVideoObserver = new IntersectionObserver(intersectionHandler, { rootMargin: margins});\n \n lazyVideos.forEach(function(lazyVideo) {\n lazyVideoObserver.observe(lazyVideo);\n });\n }\n}\n\nfunction intersectionHandler(entries, observer) {\n entries.forEach(function(video) {\n if (video.isIntersecting) {\n for (let source in video.target.children) {\n const videoSource = video.target.children[source];\n\n if (typeof videoSource.tagName === \"string\" && videoSource.tagName === \"SOURCE\") {\n if (videoSource.dataset.mediaQuery && mediaQueries[videoSource.dataset.mediaQuery].matches) {\n videoSource.src = videoSource.dataset.src;\n }\n \n if (!videoSource.dataset.mediaQuery) {\n videoSource.src = videoSource.dataset.src;\n }\n }\n }\n\n video.target.load();\n video.target.classList.add(\"lazy-loaded\");\n observer.unobserve(video.target);\n }\n });\n}\n\nconst initLazyLoader = () => {\n lazyVideos = [...document.querySelectorAll('video[data-lazy]')];\n\n if (lazyVideos.length > 0) {\n initLazyVideoObserver();\n }\n}\n\nexport default initLazyLoader;\n","const breakpoints = {\n xxs: 320,\n xs: 450,\n sm: 680,\n md: 768,\n lg: 992,\n xl: 1170,\n xxl: 1440,\n xxxl: 1920,\n super: 2400,\n}\n\nconst mediaQueries = {\n 'xxs': window.matchMedia(`(min-width: ${breakpoints.xxs}px)`),\n 'xs': window.matchMedia(`(min-width: ${breakpoints.xs}px)`),\n 'sm': window.matchMedia(`(min-width: ${breakpoints.sm}px)`),\n 'md': window.matchMedia(`(min-width: ${breakpoints.md}px)`),\n 'lg': window.matchMedia(`(min-width: ${breakpoints.lg}px)`),\n 'xl': window.matchMedia(`(min-width: ${breakpoints.xl}px)`),\n 'xxl': window.matchMedia(`(min-width: ${breakpoints.xxl}px)`),\n 'xxxl': window.matchMedia(`(min-width: ${breakpoints.xxxl}px)`),\n 'super': window.matchMedia(`(min-width: ${breakpoints.super}px)`),\n 'xxs-max': window.matchMedia(`(max-width: ${breakpoints.xxs - 1}px)`),\n 'xs-max': window.matchMedia(`(max-width: ${breakpoints.xs - 1}px)`),\n 'sm-max': window.matchMedia(`(max-width: ${breakpoints.sm - 1}px)`),\n 'md-max': window.matchMedia(`(max-width: ${breakpoints.md - 1}px)`),\n 'lg-max': window.matchMedia(`(max-width: ${breakpoints.lg - 1}px)`),\n 'xl-max': window.matchMedia(`(max-width: ${breakpoints.xl - 1}px)`),\n 'xxl-max': window.matchMedia(`(max-width: ${breakpoints.xxl - 1}px)`),\n 'xxxl-max': window.matchMedia(`(max-width: ${breakpoints.xxxl - 1}px)`),\n 'super-max': window.matchMedia(`(max-width: ${breakpoints.super - 1}px)`),\n}\n\nconst mediaQuery = (handler) => {\n for (const mq in mediaQueries) {\n if (mediaQueries.hasOwnProperty(mq)) {\n let mediaQuery = mediaQueries[mq];\n \n handler(mediaQuery);\n mediaQuery.addEventListener('change', handler);\n }\n }\n}\n\nconst checkMinWindowSize = (size) => {\n return mediaQueries[size].matches;\n}\n\nexport { mediaQuery as default, breakpoints, mediaQueries, checkMinWindowSize }\n","const initViewportHeightFix = () => {\n\tlet vh = window.innerHeight * 0.01;\tdocument.documentElement.style.setProperty('--vh', `${vh}px`);\n\n\t// We listen to the resize event\n\twindow.addEventListener('resize', () => {\n\t\tlet vh = window.innerHeight * 0.01;\n\t\tdocument.documentElement.style.setProperty('--vh', `${vh}px`);\n\t});\n}\n\nexport default initViewportHeightFix;","// 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 initLazyLoader from './utilities/lazy-loader';\nimport initViewportHeightFix from './utilities/viewport-height-fix';\n\nconst utils = {\n lazyLoader: {\n init: () => {\n initLazyLoader();\n },\n },\n viewportHeightFix: {\n init: () => {\n initViewportHeightFix();\n },\n },\n};\n\nwindow.utils = utils;\n"],"sourceRoot":""}