{"version":3,"file":"main.min.js","sources":["../../../../Frontend/js/utils/onReady.js","../../../../Frontend/js/utils/elementProperties.js","../../../../Frontend/js/utils/scrollLock.js","../../../../Frontend/js/utils/scroll.js","../../../../Frontend/js/components/nav.js","../../../../Frontend/js/utils/stickyNavOnScroll.js","../../../../Frontend/js/utils/clickOutside.js","../../../../Frontend/js/utils/windowResize.js","../../../../Frontend/js/utils/lazyImage.js","../../../../Frontend/js/utils/animation.js","../../../../Frontend/js/components/accordion.js","../../../../Frontend/js/utils/helpers.js","../../../../Frontend/js/utils/scrollTo.js","../../../../Frontend/js/components/anchors.js","../../../../Frontend/js/components/filter.js","../../../../Frontend/js/components/overlay.js","../../../../Frontend/js/components/tabs.js","../../../../Frontend/js/components/video-yt.js","../../../../node_modules/ev-emitter/ev-emitter.js","../../../../node_modules/get-size/get-size.js","../../../../node_modules/desandro-matches-selector/matches-selector.js","../../../../node_modules/fizzy-ui-utils/utils.js","../../../../node_modules/flickity/js/cell.js","../../../../node_modules/flickity/js/slide.js","../../../../node_modules/flickity/js/animate.js","../../../../node_modules/flickity/js/flickity.js","../../../../node_modules/unipointer/unipointer.js","../../../../node_modules/unidragger/unidragger.js","../../../../node_modules/flickity/js/drag.js","../../../../node_modules/flickity/js/prev-next-button.js","../../../../node_modules/flickity/js/page-dots.js","../../../../node_modules/flickity/js/player.js","../../../../node_modules/flickity/js/add-remove-cell.js","../../../../node_modules/flickity/js/lazyload.js","../../../../node_modules/flickity/js/index.js","../../../../Frontend/js/components/slider.js","../../../../Frontend/js/components/form.js","../../../../Frontend/js/components/usp.js","../../../../Frontend/js/components/featured-cases.js","../../../../Frontend/js/components/product-video.js","../../../../Frontend/js/components/intro.js","../../../../Frontend/js/main.js","../../../../Frontend/js/utils/intersect.js","../../../../Frontend/js/components/video.js"],"sourcesContent":["/**\r\n * Handler to trigger callbacks once the browser is ready for them.\r\n *\r\n * You can keep adding references using onReady() even after the page is loaded. In that case they will be\r\n * run at once.\r\n *\r\n * @example\r\n * import { onReady } from './utils/events/onReady';\r\n *\r\n * onReady(yourFunctionHere);\r\n *\r\n */\r\n\r\nlet functionReferences = [];\r\n\r\n// Set the initial readyState based on the browser's current state. If the script has been loaded\r\n// asynchronously, the DOM might be ready for us already, in which case there's no reason to delay\r\n// any further processing. The following will evaluate as true if the DOM is ready, or the page is\r\n// complete.\r\nlet readyState = document.readyState === 'interactive' || document.readyState === 'complete';\r\n\r\n// Defines whether or not the window.onReady event has been bound, so we won't do it twice. That\r\n// would just be stupid.\r\nlet readyEventBound = false;\r\n\r\n/**\r\n * Run the given array of callback functions.\r\n *\r\n * @private\r\n * @param {Array} funcArray\r\n */\r\nfunction runFunctionArray(funcArray) {\r\n funcArray.forEach(funcRef => funcRef());\r\n}\r\n\r\n/**\r\n * Empty the callback arrays\r\n *\r\n * @private\r\n */\r\nfunction emptyCallbackArrays() {\r\n // Keep iterating through the function references until there are none left.\r\n while (functionReferences.length) {\r\n // Set up a temporary array that mirrors the list of callbacks, and empty the real one.\r\n const tempArray = functionReferences.slice(0);\r\n functionReferences = [];\r\n\r\n // Run the callbacks. The callbacks themselves may set up more callbacks, which\r\n // is why we keep looping the array until we're done.\r\n runFunctionArray(tempArray);\r\n }\r\n\r\n // At this point we'll assume we're ready for anything!\r\n readyState = true;\r\n}\r\n\r\n/**\r\n * Make sure the \"ready\"-event is set.\r\n *\r\n * @private\r\n */\r\nfunction bindReadyEvent() {\r\n if (!readyEventBound) {\r\n if (document.readyState === 'loading') {\r\n // loading yet, wait for the event\r\n document.addEventListener('DOMContentLoaded', emptyCallbackArrays);\r\n } else {\r\n // DOM is ready!\r\n emptyCallbackArrays();\r\n }\r\n\r\n readyEventBound = true;\r\n }\r\n}\r\n\r\n/**\r\n * Register a function to run when the page is ready.\r\n *\r\n * @param {Function} functionReference - The function you want to run.\r\n */\r\nexport function onReady(functionReference) {\r\n if (typeof functionReference === 'function') {\r\n if (readyState) {\r\n functionReference();\r\n } else {\r\n bindReadyEvent();\r\n\r\n functionReferences.push(functionReference);\r\n }\r\n }\r\n}\r\n","/**\r\n * Utilities for checking properties and states of elements.\r\n */\r\n\r\n/**\r\n * Check if an element is empty.\r\n *\r\n * @param {Node} element - Check if this element is empty.\r\n * @param {boolean} [strict=true] - Set this to **false** to ignore nodes with whitespace.\r\n * @returns {boolean} **True** if the element is empty.\r\n */\r\nexport function elementIsEmpty(element, strict = true) {\r\n return strict ? !element.childNodes.length : !element.innerHTML.trim().length;\r\n}\r\n\r\n/**\r\n * Check if an element is hidden in the DOM with `display: none;`\r\n *\r\n * @param {HTMLElement} element - The element to check.\r\n * @returns {boolean} **True** if element is hidden, otherwise **false**.\r\n */\r\nexport function elementIsHidden(element) {\r\n return element.offsetParent === null;\r\n}\r\n\r\n/**\r\n * Check if an element is in the viewport\r\n *\r\n * @param {HTMLElement} elem - The element to check\r\n */\r\nexport function isVisible(elem) {\r\n return !!elem && !!(elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length);\r\n}\r\n\r\n/**\r\n * Find out whether or not the given argument is an element that would react somewhat normally to DOM-manipulations.\r\n *\r\n * @param {*} element - The element to check.\r\n * @returns {boolean} `true` if the given argument is an element (or document, or window), and `false` otherwise.\r\n */\r\nexport function isElement(element) {\r\n return element instanceof Element || element instanceof Document || element instanceof Window;\r\n}\r\n\r\n/**\r\n * Return the position of an element\r\n *\r\n * @param {Element|String} element - The HTML element to work with or its ID\r\n * @param {Element|String|Window} [relativeTo=window] - The HTML element to return the position relative to or its ID\r\n * @returns {{top: Number, left: Number}} An object with top and left positions in pixels\r\n *\r\n *\r\n * @example