{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./assets/components/Header/index.js","webpack:///./assets/components/Footer/index.js","webpack:///./assets/components/ImagesLazyLoading/index.js","webpack:///./assets/components/Slider/index.js","webpack:///./assets/components/Accordion/Accordion.js","webpack:///./assets/components/Accordion/index.js","webpack:///./assets/theme/DefaultTheme.js","webpack:///./assets/utils/addActiveLinkClass.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","4","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","header","document","querySelector","burger","headerWrapper","removeOpenMenuClass","innerWidth","classList","contains","remove","addEventListener","getElementsByTagName","style","overflowY","add","addActiveLinkClass","anchorSelector","pageYOffset","documentElement","scrollTop","offset","FixedHeader","colorSelector","dataset","color","matchMedia","matches","subMenus","querySelectorAll","forEach","item","backgroundColor","hoverDesktopMenu","submenu","toggle","observeElement","element","marginValue","callback","img","src","getAttribute","srcset","bgImg","Slider","sliderName","options","Splide","Accordion","itemsSelector","headingSelector","contentWrapperSelector","contentSelector","items","ToggleAccordion","this","heading","heightContent","offsetHeight","open","height","close","run","type","perPage","gap","autoWidth","autoHeight","arrows","autoplay","pagination","breakpoints","1024","mount","urls","url","location","href","orderUrl","activeClass","anchors","current","pathname"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAY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UAAUC,SAAS,QAClC,EAAKqD,QAEL,EAAKF,UAGT,IA5BDN,GAiCL,GAAGtD,MAAMjD,KAAKuG,GAAOxB,SAAQ,SAAAC,GACP,IAAIwB,EAAgBxB,GAC5BgC,UC1CDd,G,MAAAA,GCOX/C,SAASC,cAAc,wBACzBiC,yBAAe,CACbC,QAAS,sBACTC,YAAa,IACbC,SAAU,WACRM,EAAO,sBAAuB,CAC5BmB,KAAM,OACNC,QAAS,EACTC,IAAK,GACLC,WAAW,EACXC,YAAY,EACZC,QAAQ,EACRC,UAAU,EACVC,YAAY,EACZC,YAAa,CACXC,KAAM,CACJR,QAAS,EACTM,YAAY,EACZF,QAAQ,MAGXK,WAKT,IAAMC,EAAOzE,SAAS2B,iBAAiB,oBACnC8C,GACF,IAAIA,GAAM7C,SAAQ,SAAA8C,GAChBA,EAAIjE,iBAAiB,SAAS,WAC5Bb,OAAO+E,SAASC,KAAOF,EAAIpD,QAAQuD,eAKrC7E,SAASC,cAAc,eACzBiC,yBAAe,CACbC,QAAS,aACTC,YAAa,IACbC,SAAU,WACR,IAAIU,EAAU,CACZC,cAAe,yB,iEC9CvB,IAaelC,EAbY,SAAC,GAAqD,QAAnDC,sBAAmD,MAAlC,IAAkC,MAA7B+D,mBAA6B,MAAf,SAAe,EACzEC,EAAU/E,SAAS2B,iBAAiBZ,GAC1C,GAAKgE,EAIL,IAFA,IAAMC,EAAUpF,OAAO+E,SAASM,SAEvB1I,EAAI,EAAGA,EAAIwI,EAAQtI,OAAQF,GAAK,EACnCwI,EAAQxI,GAAGiG,aAAa,UAAYwC,GACtCD,EAAQxI,GAAG+D,UAAUO,IAAIiE","file":"js/main.min.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t4: 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([20,0]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import { addActiveLinkClass } from '../../utils';\n\nconst header = document.querySelector('[data-header]');\nconst burger = header.querySelector('[data-header-burger]');\nconst headerWrapper = document.querySelector('.header-wrapper');\n\n// TODO: change color if menu not fixed\nconst dataColor = document.querySelector('[data-color]');\n// document.querySelector('.header-wrapper').style.backgroundColor =\n// dataColor?.dataset?.color || '#38255B';\n\n/**\n * Toggle menu\n */\nconst toggleMenu = () => {\n if (!header && !burger) return;\n\n burger.addEventListener(\n 'click',\n () => {\n if (header.classList.contains('open-menu')) {\n header.classList.remove('open-menu');\n document.getElementsByTagName('html')[0].style.overflowY = 'visible';\n } else {\n header.classList.add('open-menu');\n document.getElementsByTagName('html')[0].style.overflowY = 'hidden';\n }\n },\n false,\n );\n};\n\n/**\n * Remove 'open-menu' class\n * @type {wrapper}\n */\nconst removeOpenMenuClass = () => {\n if ((window.innerWidth < 1024) && header.classList.contains('open-menu')) {\n header.classList.remove('open-menu');\n }\n};\n\ndocument.addEventListener('DOMContentLoaded', () => {\n toggleMenu();\n window.addEventListener('resize', removeOpenMenuClass, false);\n\n // Add active class\n addActiveLinkClass({\n anchorSelector: '.Header__nav__link',\n });\n});\n\nfunction FixedHeader() {\n const headerWrapper = document.querySelector('.header-wrapper');\n const pageYOffset = window.pageYOffset || document.documentElement.scrollTop;\n let offset = 20;\n\n if (!headerWrapper) return false;\n\n if (window.innerWidth <= 860) {\n offset = 0;\n }\n\n if (pageYOffset > offset) {\n headerWrapper.classList.add('fixed');\n } else {\n headerWrapper.classList.remove('fixed');\n }\n}\n\ndocument.addEventListener('scroll', () => {\n FixedHeader();\n});\n\nfunction hoverDesktopMenu() {\n const subMenus = document.querySelectorAll('.menu-item-has-children');\n const headerWrapper = document.querySelector('.header-wrapper');\n subMenus.forEach(item => {\n item.addEventListener('mouseover', () => {\n headerWrapper.style.backgroundColor = 'white';\n headerWrapper.classList.add('header-wrapper--open');\n });\n\n item.addEventListener('mouseout', () => {\n // headerWrapper.style.backgroundColor = dataColor?.dataset.color || '#38255B';\n headerWrapper.classList.remove('header-wrapper--open');\n });\n });\n}\n\ndocument.addEventListener('DOMContentLoaded', () => {\n const colorSelector = document.querySelector('[data-color]');\n if (colorSelector && colorSelector.dataset?.color) {\n // header.style.backgroundColor = colorSelector || '#38255B';\n }\n\n if (window.matchMedia('(min-width: 1024px)').matches) {\n hoverDesktopMenu();\n }\n\n if (window.matchMedia('(max-width: 1024px)').matches) {\n [].slice.call(document.querySelectorAll('.menu-item-has-children')).forEach((submenu) => {\n submenu.addEventListener('click', () => {\n headerWrapper.classList.toggle('header-wrapper--open')\n });\n });\n }\n});\n","import { addActiveLinkClass } from '../../utils';\n\ndocument.addEventListener('DOMContentLoaded', () => {\n addActiveLinkClass({\n anchorSelector: '.Footer-menu-wrapper li a',\n });\n});\n","import {observeElement} from '@uvocore-front/utils'\nimport './style.scss';\n\nwindow.addEventListener('DOMContentLoaded', () => {\n /**\n * Inline Images Observer\n */\n if (document.querySelector('[data-observed-image]')) {\n observeElement({\n element: '[data-observed-image]',\n marginValue: 300,\n callback: img => {\n const src = img.getAttribute('data-src');\n const srcset = img.getAttribute('data-srcset');\n\n if (src) img.src = src; /* eslint-disable-line */\n if (srcset) img.srcset = srcset; /* eslint-disable-line */\n },\n });\n }\n\n /**\n * Background Images Observer\n */\n if (document.querySelector('[data-observed-bg]')) {\n observeElement({\n element: '[data-observed-bg]',\n marginValue: 300,\n callback: bgImg => {\n bgImg.classList.add('load-bg');\n },\n });\n }\n});\n","import Splide from '@splidejs/splide'; /* eslint-disable-line import/no-unresolved */\nimport './index.scss';\n\nconst Slider = (sliderName, options = {}) => new Splide(sliderName, options);\n\nexport default Slider;\n","/**\n * FAQ component\n */\nconst Accordion = ({\n itemsSelector = '.Accordion__item',\n headingSelector = '.Accordion__item__heading',\n contentWrapperSelector = '.Accordion__item__body',\n contentSelector = '.Accordion__item__content',\n}) => {\n const items = document.querySelectorAll(itemsSelector);\n if (!items) return;\n\n function ToggleAccordion(item) {\n this.element = item;\n this.heading = this.element.querySelector(headingSelector);\n this.heightContent = this.element.querySelector(contentSelector).offsetHeight;\n\n this.open = () => {\n this.element.classList.add('open');\n this.element.querySelector(contentWrapperSelector).style.height = `${this.heightContent}px`;\n };\n\n this.close = () => {\n this.element.classList.remove('open');\n this.element.querySelector(contentWrapperSelector).style.height = '0px';\n };\n\n this.run = () => {\n this.close();\n this.heading.addEventListener(\n 'click',\n () => {\n if (this.element.classList.contains('open')) {\n this.close();\n } else {\n this.open();\n }\n },\n false,\n );\n };\n }\n\n [].slice.call(items).forEach(item => {\n const openContent = new ToggleAccordion(item);\n openContent.run();\n });\n};\n\nexport default Accordion;\n","import Accordion from './Accordion';\nimport './Accordion.scss';\n\nexport default Accordion;\n","// Components\nimport '../components/Header';\nimport '../components/Footer';\nimport '../components/ImagesLazyLoading';\nimport '../components/CTA'\n\nimport Slider from '../components/Slider';\nimport Accordion from '../components/Accordion';\nimport { observeElement } from '@uvocore-front/utils';\n\nif (document.querySelector('.testimonials__list')) {\n observeElement({\n element: '.testimonials__list',\n marginValue: 200,\n callback: () => {\n Slider('.testimonials__list', {\n type: 'loop',\n perPage: 3,\n gap: 24,\n autoWidth: false,\n autoHeight: false,\n arrows: true,\n autoplay: false,\n pagination: false,\n breakpoints: {\n 1024: {\n perPage: 1,\n pagination: true,\n arrows: false\n },\n },\n }).mount();\n }\n });\n}\n\nconst urls = document.querySelectorAll('[data-order-url]');\nif (urls) {\n [...urls].forEach(url => {\n url.addEventListener('click', () => {\n window.location.href = url.dataset.orderUrl;\n });\n })\n}\n\nif (document.querySelector('.Accordion')) {\n observeElement({\n element: '.Accordion',\n marginValue: 300,\n callback: () => {\n new Accordion({\n itemsSelector: '.Accordion__item',\n });\n },\n });\n}\n","/**\n *\n * @param anchorSelector\n * @param activeClass\n */\nconst addActiveLinkClass = ({ anchorSelector = 'a', activeClass = 'active' }) => {\n const anchors = document.querySelectorAll(anchorSelector);\n if (!anchors) return;\n\n const current = window.location.pathname;\n\n for (let i = 0; i < anchors.length; i += 1) {\n if (anchors[i].getAttribute('href') === current) {\n anchors[i].classList.add(activeClass);\n }\n }\n};\n\nexport default addActiveLinkClass;\n"],"sourceRoot":""}