{"version":3,"file":"main.min.js","mappings":"uBAAIA,ECAAC,EACAC,E,kBCYG,MAAMC,EAAY,CACvB,CACEC,KAAM,YACNC,OAAQA,IAAM,8BAEhB,CACED,KAAM,eACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,iBACNC,OAAQA,IAAM,8BAEhB,CACED,KAAM,iBACNC,OAAQA,IAAM,8BAEhB,CACED,KAAM,eACNC,OAAQA,IAAM,qDAEhB,CACED,KAAM,gBACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,wBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,WACNC,OAAQA,IAAM,sDAEjB,CACCD,KAAM,cACNC,OAAQA,IAAM,sDAEd,CACED,KAAM,qBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,eACNC,OAAQA,IAAM,qDAEhB,CACED,KAAM,oBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,oBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,gBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,YACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,mBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,gBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,YACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,SACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,SACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,cACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,mBACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,SACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,QACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,eACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,sBACNC,OAAQA,IAAM,wEAEjB,CACCD,KAAM,kBACNC,OAAQA,IAAM,sDAMd,CACED,KAAM,oBACNC,OAAQA,IAAM,+BAEhB,CACED,KAAM,iBACNC,OAAQA,IAAM,sDAEhB,CACED,KAAM,qBACNC,OA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MwE,QAAUF,EAChBH,EAAmB,GAAGnE,EACvB,CACD,GAEwC,SAAW6B,EAASA,EAE/D,CACD,EAWF3B,EAAoBO,EAAEO,EAAKa,GAA0C,IAA7BqC,EAAgBrC,GAGxD,IAAI4C,EAAuB,CAACC,EAA4BlS,KACvD,IAKI2N,EAAU0B,EALVnB,EAAWlO,EAAK,GAChBmS,EAAcnS,EAAK,GACnBoS,EAAUpS,EAAK,GAGI8L,EAAI,EAC3B,GAAGoC,EAASpF,MAAMpE,GAAgC,IAAxBgN,EAAgBhN,KAAa,CACtD,IAAIiJ,KAAYwE,EACZzE,EAAoBuB,EAAEkD,EAAaxE,KACrCD,EAAoBM,EAAEL,GAAYwE,EAAYxE,IAGhD,GAAGyE,EAAS,IAAI7E,EAAS6E,EAAQ1E,EAClC,CAEA,IADGwE,GAA4BA,EAA2BlS,GACrD8L,EAAIoC,EAAS9N,OAAQ0L,IACzBuD,EAAUnB,EAASpC,GAChB4B,EAAoBuB,EAAEyC,EAAiBrC,IAAYqC,EAAgBrC,IACrEqC,EAAgBrC,GAAS,KAE1BqC,EAAgBrC,GAAW,EAE5B,OAAO3B,EAAoBO,EAAEV,EAAO,EAGjC8E,EAAqBC,KAAyC,mCAAIA,KAAyC,oCAAK,GACpHD,EAAmB7S,QAAQyS,EAAqB/M,KAAK,KAAM,IAC3DmN,EAAmBhR,KAAO4Q,EAAqB/M,KAAK,KAAMmN,EAAmBhR,KAAK6D,KAAKmN,G,KCpFvF,IAAIE,EAAsB7E,EAAoBO,OAAEjK,EAAW,CAAC,KAAK,IAAO0J,EAAoB,QAC5F6E,EAAsB7E,EAAoBO,EAAEsE,E","sources":["webpack://@hero-digital/masonite/webpack/runtime/chunk loaded","webpack://@hero-digital/masonite/webpack/runtime/load script","webpack://@hero-digital/masonite/./src/moduleMap.js","webpack://@hero-digital/masonite/./src/App.js","webpack://@hero-digital/masonite/./src/js/utilities/moduleLoader.js","webpack://@hero-digital/masonite/./src/index.js","webpack://@hero-digital/masonite/./src/js/services/Analytics/Analytics.js","webpack://@hero-digital/masonite/./src/js/services/scrollService.js","webpack://@hero-digital/masonite/./src/js/services/resizeService.js","webpack://@hero-digital/masonite/./src/js/services/Breakpoint/Breakpoint.js","webpack://@hero-digital/masonite/./src/js/services/index.js","webpack://@hero-digital/masonite/./src/js/utilities/utilities.js","webpack://@hero-digital/masonite/webpack/bootstrap","webpack://@hero-digital/masonite/webpack/runtime/compat get default export","webpack://@hero-digital/masonite/webpack/runtime/define property getters","webpack://@hero-digital/masonite/webpack/runtime/ensure chunk","webpack://@hero-digital/masonite/webpack/runtime/get javascript chunk filename","webpack://@hero-digital/masonite/webpack/runtime/get mini-css chunk filename","webpack://@hero-digital/masonite/webpack/runtime/global","webpack://@hero-digital/masonite/webpack/runtime/hasOwnProperty shorthand","webpack://@hero-digital/masonite/webpack/runtime/make namespace object","webpack://@hero-digital/masonite/webpack/runtime/runtimeId","webpack://@hero-digital/masonite/webpack/runtime/publicPath","webpack://@hero-digital/masonite/webpack/runtime/jsonp chunk loading","webpack://@hero-digital/masonite/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"@hero-digital/masonite:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * Manifest file for all Class modules that can be instantiated\n * by the main App.\n *\n * All modules should be alpha-ordered and imported using the async import syntax.\n * The key value for `name` should match the component `data-cmp-is` value, and the value should be the\n * component's import path\n * e.g.\n * {\n * name: 'accordion',\n * loader: () => import('./components/modules/Accordion')\n * }\n */\nexport const moduleMap = [\n {\n name: 'accordion',\n loader: () => import('./components/modules/Accordion')\n },\n {\n name: 'alert-banner',\n loader: () => import('./components/modules/AlertBanner')\n },\n {\n name: 'audio-carousel',\n loader: () => import('./components/modules/AudioCarousel')\n },\n {\n name: 'audio-carousel',\n loader: () => import('./components/modules/AudioCarousel')\n },\n {\n name: 'banner-email',\n loader: () => import('./components/modules/BannerEmail')\n },\n {\n name: 'card-carousel',\n loader: () => import('./components/modules/CardCarousel')\n },\n {\n name: 'card-carousel-gallery',\n loader: () => import('./components/modules/CardCarouselGallery')\n },\n {\n name: 'carousel',\n loader: () => import('./components/modules/Carousel')\n },\n\t{\n\t\tname: 'carouselAlt',\n\t\tloader: () => import('./components/modules/CarouselAlt')\n\t},\n {\n name: 'category-highlight',\n loader: () => import('./components/modules/CategoryHighlight')\n },\n {\n name: 'color-picker',\n loader: () => import('./components/modules/ColorPicker')\n },\n {\n name: 'comparison-slider',\n loader: () => import('./components/modules/ComparisonSlider')\n },\n {\n name: 'comparison-slider',\n loader: () => import('./components/modules/ComparisonSlider')\n },\n {\n name: 'cookie-banner',\n loader: () => import('./components/modules/CookieBanner')\n },\n {\n name: 'dollhouse',\n loader: () => import('./components/modules/DollhouseViewer/Dollhouse')\n },\n {\n name: 'dollhouse-viewer',\n loader: () => import('./components/modules/DollhouseViewer')\n },\n {\n name: 'dynamics-form',\n loader: () => import('./components/modules/DynamicsForm')\n },\n {\n name: 'favorites',\n loader: () => import('./components/modules/Favorites')\n },\n {\n name: 'footer',\n loader: () => import('./components/modules/Footer')\n },\n {\n name: 'header',\n loader: () => import('./components/modules/Header')\n },\n {\n name: 'hero-banner',\n loader: () => import('./components/modules/HeroBannerForm')\n },\n {\n name: 'hero-banner-form',\n loader: () => import('./components/modules/HeroBannerForm')\n },\n {\n name: 'lottie',\n loader: () => import('./components/modules/Lottie')\n },\n {\n name: 'modal',\n loader: () => import('./components/modules/Modal')\n },\n {\n name: 'modal-button',\n loader: () => import('./components/modules/ModalButton')\n },\n {\n name: 'product-information',\n loader: () => import('./components/modules/ProductInformation')\n },\n\t{\n\t\tname: 'product-listing',\n\t\tloader: () => import('./components/modules/ProductListing')\n\t},\n // {\n // name: 'product-onboarding',\n // loader: () => import('./components/modules/ProductOnboarding')\n // },\n {\n name: 'pinterest-gallery',\n loader: () => import('./components/modules/PinterestGallery')\n },\n {\n name: 'search-results',\n loader: () => import('./components/modules/SearchResults')\n },\n {\n name: 'side-nav-container',\n loader: () => import('./components/modules/SideNavContainer')\n },\n {\n name: 'social-share',\n loader: () => import('./components/modules/SocialShare')\n },\n {\n name: 'tabs',\n loader: () => import('./components/modules/Tabs')\n },\n {\n name: 'tabs-links',\n loader: () => import('./components/modules/TabsLinks')\n },\n {\n name: 'testimonial',\n loader: () => import('./components/modules/Testimonial')\n },\n {\n name: 'tile-grid',\n loader: () => import('./components/modules/TileGrid')\n },\n {\n name: 'where-to-buy',\n loader: () => import('./components/modules/WhereToBuy')\n },\n {\n name: 'where-to-buy-locator',\n loader: () => import('./components/modules/WhereToBuyLocator')\n },\n {\n name: 'sticky-jump-nav',\n loader: () => import('./components/modules/StickyJumpNav')\n },\n {\n name: 'video-modal',\n loader: () => import('./components/modules/VideoModal')\n },\n {\n name: 'video-player',\n loader: () => import('./components/modules/VideoPlayer')\n },\n {\n name: 'video-poster',\n loader: () => import('./components/modules/VideoPoster')\n }\n]\n","import './scss/main.scss'\nimport { create } from 'utilities/moduleLoader'\nimport { moduleMap } from './moduleMap'\nimport Services from 'services'\nimport Analytics from './js/services/Analytics/Analytics'\n\n/**\n * Masonite App responsible for loading modules on page load\n */\nexport default class App {\n static SELECTORS = {\n MODULES: '[data-cmp-is]'\n }\n\n constructor() {\n this.modules = [] // ref to all of the instantiated module\n this.services = Services.getInstance()\n this.EventEmitterService = this.services.EventEmitterService\n this.analytics = Analytics.getInstance()\n this.loadModules()\n }\n\n /**\n * Destroys all modules in the app\n */\n destroy() {\n this.modules.forEach((module) => {\n if (typeof module.destroy === 'function') {\n module.destroy()\n }\n })\n }\n\n /**\n * Queries the DOM elements modules on a page and instantiates\n * an instance of them if they have not yet been instantiated\n * and the associated JS module is defined\n */\n loadModules() {\n create(moduleMap).then((modules) => {\n this.modules.push(modules)\n this.dispatchModulesLoaded()\n })\n }\n\n /**\n * Dispatches a global event that modules have been loaded\n */\n dispatchModulesLoaded() {\n this.EventEmitterService.emit(Services.EVENTS.MODULES_LOADED)\n }\n}\n","/**\n * Imports all the modules that matches\n * the name of the organism\n * @param {string} name\n * @param {function} loader\n */\nfunction importModule(name, loader) {\n const elements = document.querySelectorAll(`[data-cmp-is=\"${name}\"]`)\n\n if (elements.length === 0) return window.Promise.resolve()\n if (loader) {\n return loader()\n .then((module) => ({\n module: module.default,\n elements\n }))\n .catch((err) =>\n window.Promise.reject(\n new Error(`There was an error loading your JS file - ${err}`)\n )\n )\n }\n return window.Promise.reject(`There is no loader for ${name}`)\n}\n/**\n * Creates instances for all the modules that\n * are passed in the array\n * @param {{name: string, loader: Function}[]} modules\n * @returns {Promise}\n */\nexport function create(modules) {\n const isLoadedAttr = 'data-cmp-is-loaded'\n return window.Promise.all(\n modules.map(async (item) => {\n const data = await importModule(item.name, item.loader)\n const items = []\n\n if (data) {\n const { module: Module, elements } = data\n\n Array.from(elements).forEach(($target) => {\n if ($target.getAttribute(isLoadedAttr) === 'true') return\n\n $target.setAttribute(isLoadedAttr, true)\n items.push(new Module($target))\n })\n }\n\n return items\n })\n )\n}\n","// This file is the WebPack Entry point for generating distributable files\nimport App from './App'\n\n// Initialize the App on dom loaded\n;(function () {\n let app\n\n // Initialize the App on dom loaded\n document.addEventListener('DOMContentLoaded', () => {\n if (app) {\n // Destroy the app if it already exists\n app.destroy()\n }\n app = new App()\n })\n})()\n","/**\n * Analytics Module responsible for tracking user interactions\n * The interface for tracking events is based on data attributes\n * being added to the DOM element using the naming convention:\n * Enable Analytics:\n * data-analytics=\"true\"\n *\n * Event Name:\n * data-analytics_event=\"{event name}\"\n *\n * Event Parameters:\n * data-analytics_{key}=\"{value}\"\n * key: the name of the parameter to set in the dataLayer object\n * value: the value to set for the key\n *\n * To debug analytics, add ?debugAnalytics=true to the URL. This will log the updated object pushed to window.dataLayer\n *\n * @example\n * Masonite\n *\n * // will result in the following object being pushed to the window.dataLayer array\n * {\n * event: 'click',\n * click_url: 'https://www.google.com'\n * }\n *\n */\nexport default class Analytics {\n /**\n * Returns the singleton instance of the Analytics module\n * @returns {Analytics}\n */\n static getInstance() {\n if (!this.instance) {\n this.instance = new Analytics()\n }\n return this.instance\n }\n\n constructor(element) {\n this.datasetPrefix = 'analytics_'\n this.isBrowser = typeof window !== 'undefined'\n\n this.attachEvents()\n }\n\n /**\n * Attaches event listeners to the DOM element to listen for click events on all document child elements\n */\n attachEvents() {\n document.addEventListener('click', this.handleClick)\n document.addEventListener('change', this.handleInputChange)\n }\n\n /**\n * Detaches event listeners from the DOM element\n */\n detachEvents() {\n document.removeEventListener('click', this.handleClick)\n document.removeEventListener('change', this.handleInputChange)\n }\n\n /**\n * Destroys the module\n */\n destroy() {\n this.detachEvents()\n }\n\n /**\n * Callback for click events on the document that will find the closet parent element with the data-analytics attribute\n * and trigger the analytics event\n * @param {*} event\n */\n handleClick = (event) => {\n const closestTarget = event.target.closest('[data-analytics]')\n const ignoreElement = ['INPUT', 'SELECT', 'TEXTAREA'] // ignore these elements when clicking on them\n\n if (closestTarget && !ignoreElement.includes(closestTarget?.tagName)) {\n this.triggerAnalytics(closestTarget)\n }\n }\n\n /**\n * Callback for change events on the document that will find the closet parent element with the data-analytics attribute\n * and trigger the analytics event.\n * Note: this is currently only needed for select elements and can be enhanced to support other elements in the future\n * @param {*} event\n */\n handleInputChange = (event) => {\n const closestTarget = event.target.closest('[data-analytics]')\n if (closestTarget) {\n // if the closetTarget is a select element, grab the selection option\n // and loop through the attributes to find the data-analytics attributes\n // and set them on the select element\n if (closestTarget.tagName === 'SELECT') {\n const selectedOption =\n closestTarget.options[closestTarget.selectedIndex]\n\n if (selectedOption.attributes) {\n Array.from(selectedOption.attributes).forEach((attribute) => {\n if (attribute.name.startsWith(`data-${this.datasetPrefix}`)) {\n closestTarget.setAttribute(attribute.name, attribute.value)\n }\n })\n }\n }\n\n this.triggerAnalytics(closestTarget)\n }\n }\n\n /**\n * Triggers the analytics event based on the data-analytics attributes on the target element\n * @param {Element} target - The DOM element to trigger the analytics event on\n */\n triggerAnalytics = (target) => {\n const dataset = target.dataset\n const params = {}\n let event = ''\n\n // Loop through all data-analytics attributes and add them to the params object\n Object.keys(dataset).forEach((key) => {\n if (key.startsWith(this.datasetPrefix)) {\n const value = dataset[key]\n const paramKey = key.replace(this.datasetPrefix, '')\n\n if (paramKey === 'event') {\n event = value\n } else {\n params[paramKey] = value\n }\n }\n })\n\n if (target.href) {\n params.click_url = target.href\n }\n\n if (event && Object.keys(params).length > 0) {\n this.trackInteraction(event, params)\n }\n }\n\n /**\n * Tracks the interaction by pushing the event and params to the window.dataLayer array\n * @param {String} event - The event name\n * @param {Object} params - The event parameters\n */\n trackInteraction = (event, params = {}) => {\n if (this.isBrowser && window?.dataLayer) {\n const dlObj = {\n event,\n ...params\n }\n\n window.dataLayer.push(dlObj)\n\n if (this.isDebuggingAnalytics()) {\n console.log(\n 'Analytics logging updated object pushed to window.dataLayer'\n )\n console.log(dlObj)\n }\n }\n }\n\n /**\n * Checks if the debugAnalytics query param is set\n * @returns {Boolean}\n */\n isDebuggingAnalytics = () => {\n if (!this.isBrowser) {\n return false\n }\n const params = new URLSearchParams(window.location.search)\n return params.get('debugAnalytics') !== null\n }\n}\n","'use strict'\n\n/**\n * ID\n *\n * @type {Number}\n * @ignore\n */\nlet id = 0\n\n/**\n * Get ID\n *\n * Because file is loaded only once, this function\n * can be used to generate a unique id every time\n * it is called.\n *\n * @return {Number} Unique ID value\n * @ignore\n */\nfunction getId() {\n return id++\n}\n\n/**\n * Scroll Service\n */\nexport default class ScrollService {\n /**\n * Scroll Service constructor in which the `callbacks` array is created\n * as a property of the class.\n */\n constructor() {\n /**\n * An array to be populated with callback functions that will be triggered on scroll\n *\n * @property {Array} callbacks\n */\n this.callbacks = []\n this.ticking = false\n this.last_scroll_pos = 0\n this.init()\n }\n\n /**\n * @desc Initialize the singleton by attaching the event listener to the window\n * @listens {Event} listens to the window scroll event\n */\n init() {\n window.addEventListener('scroll', this.scrollOptimizer.bind(this))\n }\n\n scrollOptimizer() {\n if (!this.ticking) {\n window.requestAnimationFrame(this.onScroll.bind(this))\n this.ticking = true\n }\n }\n\n /**\n * @desc The scroll event handler. Iterates through the `callback` array and invokes each callback in the Array\n */\n onScroll() {\n this.callbacks.forEach((callback) => {\n callback.callback()\n })\n this.ticking = false\n this.last_scroll_pos = window.scrollY\n }\n\n scrollDirection() {\n if (this.last_scroll_pos - window.scrollY < 0) {\n return 'up'\n } else {\n return 'down'\n }\n }\n\n /**\n * @desc A hook for pushing a callback function into the `callbacks` array. A unique\n * ID value for the callback is generated and a function is returned for removing\n * the callback if need be.\n *\n * @param {Function} callback A function to invoke by the ScrollService\n * @return {Function} `removeCallback` A function which will remove an entry from the `callbacks` array\n */\n addCallback(callback) {\n // Generate an id for the callback\n const id = getId()\n\n // Push function into array with a unique id\n this.callbacks.push({\n id,\n callback\n })\n\n // Return the remove function\n return this.removeCallback.bind(this, id)\n }\n\n /**\n * Filters through the `callback` array and removes\n * the entry that corresponds to the id passed\n * in as an argument\n *\n * @param {Number} id An id value to filter by\n */\n removeCallback(id) {\n this.callbacks = this.callbacks.filter((item) => {\n return item.id !== id\n })\n }\n}\n","'use strict'\n\nimport { debounce } from '../utilities/utilities'\n\n/**\n * ID\n *\n * @type {Number}\n * @ignore\n */\nlet id = 0\n\n/**\n * Get ID\n *\n * Because file is loaded only once, this function\n * can be used to generate a unique id every time\n * it is called.\n *\n * @return {Number} Unique ID value\n * @ignore\n */\nfunction getId() {\n return id++\n}\n\n/**\n * Resize Service\n */\nexport default class ResizeService {\n /**\n * ResizeService constructor in which the `callbacks` array is created\n * as a property of the class.\n */\n constructor() {\n /**\n * An array to be populated with callback functions that will be triggered on resize\n *\n * @property {Array} callbacks\n */\n this.callbacks = []\n this.windowWidth = window.innerWidth;\n this.windowHeight = window.innerHeight;\n\n this.init()\n }\n\n /**\n * @desc Initialize the singleton by attaching the event listener to the window\n * @listens {Event} listens to the window resize event\n */\n init() {\n window.addEventListener('resize', debounce(this.onResize.bind(this), 10))\n }\n\n /**\n * @desc The resize event handler. Itertates through the `callback` array and invokes each callback in the Array\n */\n onResize(event) {\n const isWidthChanged = this.windowWidth !== window.innerWidth;\n const isHeightChanged = this.windowHeight !== window.innerHeight;\n\n this.windowWidth = window.innerWidth;\n this.windowHeight = window.innerHeight;\n\n this.callbacks.forEach((callback) => {\n callback.callback({\n width: this.windowWidth,\n height: this.windowHeight,\n isWidthChanged,\n isHeightChanged\n })\n })\n }\n\n /**\n * @desc A hook for pushing a callback function\n * into the `callbacks` array. A unique\n * ID value for the callback is generated\n * and a function is returned for removing\n * the callback if need be.\n *\n * @param {Function} callback A function to invoke by the ResizeService\n * @return {Function} `removeCallback` A function which will remove an entry from the `callbacks` array\n */\n addCallback(callback) {\n // Generate an id for the callback\n const id = getId()\n\n // Push function into array with a unique id\n this.callbacks.push({\n id,\n callback\n })\n\n // Return the remove function\n return this.removeCallback.bind(this, id)\n }\n\n /**\n * Filters through the `callback` array and removes\n * the entry that corresponds to the id passed\n * in as an argument\n *\n * @param {Number} id An id value to filter by\n */\n removeCallback(id) {\n this.callbacks = this.callbacks.filter((item) => {\n return item.id !== id\n })\n }\n}\n","/**\n * BreakpointListener utility class that listens for changes in the viewport width and\n * notifies listeners of the current breakpoint\n * @class BreakpointListener\n * @example\n * const breakpointListener = BreakpointListener.getInstance()\n * breakpointListener.addListener((matches) => {\n * console.log(matches)\n * })\n */\nexport default class BreakpointListener {\n /**\n * Viewport breakpoints\n */\n static BREAKPOINTS = {\n SMALL: 0,\n MEDIUM: 768,\n MEDIUM_LARGE: 996,\n LARGE: 1440,\n XLARGE: 1920\n }\n\n /**\n * Media query strings for each breakpoint\n * Note: these media queries match those in the _breakpoints.scss file\n */\n static BREAKPOINT_MAP = {\n SMALL: `( min-width: ${BreakpointListener.BREAKPOINTS.SMALL}px )`,\n SMALL_MAX: `( max-width: ${BreakpointListener.BREAKPOINTS.MEDIUM - 1}px )`,\n SMALL_ONLY: `( (min-width: ${\n BreakpointListener.BREAKPOINTS.SMALL\n }px) and (max-width: ${BreakpointListener.BREAKPOINTS.MEDIUM - 1}px) )`,\n MEDIUM: `( min-width: ${BreakpointListener.BREAKPOINTS.MEDIUM}px )`,\n MEDIUM_LARGE: `( min-width: ${BreakpointListener.BREAKPOINTS.MEDIUM_LARGE}px )`,\n MEDIUM_MAX: `( max-width: ${BreakpointListener.BREAKPOINTS.LARGE - 1}px )`,\n\t MEDIUM_LARGE_MAX: `( max-width: ${BreakpointListener.BREAKPOINTS.MEDIUM_LARGE - 1}px )`,\n MEDIUM_ONLY: `((min-width: ${\n BreakpointListener.BREAKPOINTS.MEDIUM\n }px) and (max-width: ${BreakpointListener.BREAKPOINTS.LARGE - 1}px))`,\n LARGE: `( min-width: ${BreakpointListener.BREAKPOINTS.LARGE}px )`,\n LARGE_MAX: `( max-width: ${BreakpointListener.BREAKPOINTS.XLARGE - 1}px )`,\n LARGE_ONLY: `((min-width: ${\n BreakpointListener.BREAKPOINTS.LARGE\n }px) and (max-width: ${BreakpointListener.BREAKPOINTS.XLARGE - 1}px))`,\n XLARGE: `( min-width: ${BreakpointListener.BREAKPOINTS.XLARGE}px )`\n }\n\n /**\n * Singleton instance of the BreakpointListener class\n * @returns {BreakpointListener}\n */\n static getInstance() {\n if (!this.instance) {\n this.instance = new BreakpointListener()\n }\n return this.instance\n }\n\n /**\n * Creates an instance of BreakpointListener\n */\n constructor() {\n this.queries = BreakpointListener.BREAKPOINT_MAP\n this.queryMatch = null\n this.mediaQueryLists = {}\n this.keys = Object.keys(BreakpointListener.BREAKPOINT_MAP)\n this.isAttached = false\n this.listeners = []\n this.createMatchMedia()\n }\n\n /**\n * Attaches event listeners to the media query lists and invokes the listeners with the current breakpoint\n * @param {Function} listener - Callback function that is invoked when the breakpoint changes\n */\n addListener(listener) {\n if (typeof listener === 'function') {\n this.listeners.push(listener)\n\n // If the listener is added after the media query has been evaluated, invoke the listener immediately\n if (this.isAttached) {\n listener(this.queryMatch)\n }\n }\n }\n\n /**\n * Removes the listener from the list of listeners\n * @param {Funciton} listener - Callback function that is invoked when the breakpoint changes and should be removed\n */\n removeListener(listener) {\n this.listeners = this.listeners.filter((l) => l !== listener)\n }\n\n /**\n * Destroys the instance of BreakpointListener\n */\n destroy() {\n this.listeners = []\n\n if (this.isAttached) {\n this.keys.forEach((media) => {\n if (typeof this.queries[media] === 'string') {\n this.mediaQueryLists[media].removeListener(this.handleQueryListener)\n }\n })\n }\n }\n\n /**\n * Creates the media query lists and attaches event listeners to them\n */\n createMatchMedia() {\n if (window && window.matchMedia) {\n const matches = {}\n this.keys.forEach((media) => {\n if (typeof this.queries[media] === 'string') {\n this.mediaQueryLists[media] = window.matchMedia(this.queries[media])\n matches[media] = this.mediaQueryLists[media].matches\n } else {\n matches[media] = false\n }\n })\n this.queryMatch = matches\n this.isAttached = true\n this.keys.forEach((media) => {\n if (typeof this.queries[media] === 'string') {\n this.mediaQueryLists[media].addListener(this.handleQueryListener)\n }\n })\n }\n }\n\n /**\n * Handles the event listener for the media query lists and invokes the listeners with the current breakpoint\n */\n handleQueryListener = () => {\n const updatedMatches = this.keys.reduce((acc, media) => {\n acc[media] = !!(\n this.mediaQueryLists[media] && this.mediaQueryLists[media].matches\n )\n return acc\n }, {})\n this.queryMatch = updatedMatches\n\n if (this.listeners && this.listeners.length > 0) {\n this.listeners.forEach((listener) => {\n listener(this.queryMatch)\n })\n }\n }\n\n getCurrentBreakpoint() {\n return this.queryMatch\n }\n}\n","'use strict'\n\n// Import services\nimport ScrollService from './scrollService'\nimport ResizeService from './resizeService'\nimport EventEmitterService from 'event-emitter-es6'\nimport BreakpointListener from './Breakpoint/Breakpoint'\n\n/**\n * A singleton whose properties are individual services.\n *\n * Any service singleton service that needs to be instantiated\n * should be done so in the Services class.\n *\n * Services should not interact with the DOM, that should be\n * left to the Views. Services can simply be used to consolidate\n * an expensive event listener ('scroll', 'resize', etc). or\n * track state (like which modal is open at which time).\n */\nexport default class Services {\n /**\n * An object of global application events that can be emitted\n * by the EventEmitterService\n */\n static EVENTS = {\n MODULES_LOADED: 'modulesLoaded'\n }\n\n /**\n * Services constructor that instantiates each service individually.\n * To add another services instiate it here.\n */\n constructor() {\n /**\n * A service which listens to the `window` scroll event and\n * invokes an array of callbacks\n *\n * @property {Object} ScrollService A singleton instance of the ScrollService class\n */\n this.ScrollService = new ScrollService()\n\n /**\n * A service which listens to the `window` resize event and\n * invokes an array of callbacks\n *\n * @property {Object} ResizeService A singleton instance of the ResizeService class\n */\n this.ResizeService = new ResizeService()\n\n /**\n * A service which allows events to be transmitted between classes\n *\n * @property {Object} EventEmitterService A singleton instance of the EventEmitterService class\n */\n this.EventEmitterService = new EventEmitterService()\n\n /**\n * A service which listens to changes to the matchMedia breakpoints\n * and invokes an array of callbacks\n *\n * @property {Object} BreakpointListener A singleton instance of the BreakpointListener class\n */\n this.BreakpointListener = BreakpointListener.getInstance()\n }\n\n static getInstance() {\n if (!this.instance) {\n this.instance = new Services()\n }\n return this.instance\n }\n}\n","/**\n * A function which adds click detection to document\n * and performs a prescribed action when a click is detected\n * outside of the supllied element.\n * Use an array for params.exceptionClassArray to create exceptions.\n *\n * @param {Object} elem A DOM element\n * @param {Function} name of class to search for\n * @param {Object} an object containing parameters\n */\nexport function actionOnClickOutside(element, action, params = {}) {\n const exceptionClassArray = params.exceptionClassArray || []\n const useCapture = params.useCapture || false\n\n const outsideClickListener = (event) => {\n if (\n !element.contains(event.target) &&\n event.target.classList.length &&\n !exceptionClassArray.some((className) =>\n event.target.classList.contains(className)\n )\n ) {\n action()\n removeClickListener()\n }\n }\n\n const removeClickListener = () => {\n document.removeEventListener('click', outsideClickListener, useCapture)\n }\n\n document.addEventListener('click', outsideClickListener, useCapture)\n element.clearListener = removeClickListener\n}\n\n/**\n * Simple function to return an array of sibling elements\n */\nexport function getSiblings(elem) {\n return Array.prototype.filter.call(\n elem.parentNode.children,\n function (sibling) {\n return sibling !== elem\n }\n )\n}\n\n/**\n * Traps the focus to all of the children of an element.\n * When the user presses an Escape key the focus trap should be removed.\n * @param {HTMLElement} element - The element to trap focus in\n * @param {function} [closeFunction] - An optional function to call when the Escape key is pressed\n * @param {FocusOptions} [focusOptions] - Optional focus options to use when setting initial focus\n * @returns {function} A function to remove the focus trap\n */\nexport function limitKeyboardAccessibility(\n element,\n closeFunction,\n focusOptions = {}\n) {\n const trapFocus = (event) => {\n // special case to return when keyhandling is disabled on this element\n if (element.disableKeyHandler) return\n\n const focusableElsRaw = Array.from(\n element.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n )\n )\n\n // go through elements and pull out only the ones that are visible\n const focusableEl = focusableElsRaw.filter((el) => {\n const style = getComputedStyle(el)\n\n return (\n el.offsetParent !== null &&\n style.display !== 'none' &&\n style.visibility !== 'hidden'\n )\n })\n\n const firstFocusableEl = focusableEl[0]\n const lastFocusableEl = focusableEl[focusableEl.length - 1]\n\n if (!firstFocusableEl || !lastFocusableEl) {\n console.warn(`No focusable elements found in ${JSON.stringify(element)}.`)\n return\n }\n\n if (event.key === 'Escape') {\n removeTrapFocus()\n if (closeFunction) closeFunction()\n } else if (event.key === 'Tab' || event.keyCode === 9) {\n if (event.shiftKey) {\n if (document.activeElement === firstFocusableEl) {\n event.preventDefault()\n lastFocusableEl.focus(focusOptions)\n }\n } else if (\n (document.activeElement.type === 'radio' &&\n document.activeElement.name === lastFocusableEl.name &&\n document.activeElement !== lastFocusableEl) ||\n document.activeElement === lastFocusableEl\n ) {\n // If the last focused element is a radio input that is not the `lastFocusableEl` but is part of the radio group that\n // includes the `lastFocusableEl`, do not allow focus to exit the focus trap\n event.preventDefault()\n firstFocusableEl.focus(focusOptions)\n }\n }\n }\n\n const removeTrapFocus = () => {\n element.removeEventListener('keydown', trapFocus)\n }\n\n element.addEventListener('keydown', trapFocus)\n\n element.clearKeyHandler = () => {\n removeTrapFocus()\n }\n\n return removeTrapFocus\n}\n\n/**\n * A function which traverses all parents of a given DOM element\n * and returns the first parent with a class name that matches\n * the supplied class. This matches the JavaScript \"closest\"\n * function which IE11 does not support.\n *\n * @param {Object} elem A DOM element\n * @param {String} name of class to search for\n * @return {Object} the closest DOM parent with matching class\n */\nexport function closestByClass(el, clazz) {\n // Traverse the DOM up with a while loop\n\n while (!el.classList.contains(clazz)) {\n // Increment the loop to the parent node\n el = el.parentNode\n if (!el || el instanceof HTMLDocument) {\n return null\n }\n }\n // At this point, the while loop has stopped and `el` represents the element that has\n // the class you specified in the second parameter of the function `clazz`\n\n // Then return the matched element\n return el\n}\n\n/**\n * Utility functions for setting and getting cookies\n */\nexport function setCookie(name, value, days) {\n let expires = ''\n if (days) {\n const date = new Date()\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000)\n expires = '; expires=' + date.toUTCString()\n }\n if (typeof value === 'object') {\n // because of Safari bug handling JSON in cookies commas need to be stripped out\n const obj = {}\n for (const [key, item] of Object.entries(value)) {\n if (typeof item === 'string') obj[key] = item.replace(/,/, 'U+0002C')\n else obj[key] = item\n }\n // turn value into JSON\n value = JSON.stringify(obj)\n }\n // create cookie\n document.cookie =\n name + '=' + (value || '') + expires + '; path=/;SameSite=Strict'\n}\n\nexport function getCookie(name) {\n const nameEQ = name + '='\n const ca = document.cookie.split(';')\n // see if value is JSON\n const isJSON = function isJson(str) {\n try {\n JSON.parse(str)\n } catch (e) {\n return false\n }\n return true\n }\n for (let i = 0; i < ca.length; i++) {\n let c = ca[i]\n while (c.charAt(0) === ' ') c = c.substring(1, c.length)\n if (c.indexOf(nameEQ) === 0) {\n let content = c.substring(nameEQ.length, c.length)\n if (isJSON(content)) {\n content = JSON.parse(content)\n // replace commas\n for (const [key, item] of Object.entries(content)) {\n if (typeof item === 'string') {\n content[key] = item.replace('U+0002C', ',')\n }\n }\n }\n return content\n }\n }\n return null\n}\n\n// Get a cookie without an exact name - Adobe cookies are unique to a machine\nexport function getCookieFuzzy(nameStartsWith, nameEndsWith) {\n const cookies = document.cookie.split(';')\n\n // Loop through the cookies\n for (let i = 0; i < cookies.length; i++) {\n let cookie = cookies[i]\n\n // Trim the cookie\n while (cookie.charAt(0) === ' ') cookie = cookie.substring(1, cookie.length)\n\n // Split the cookie name and value\n const cookiePair = cookie.split('=')\n\n // Check that we got something to work with\n if (cookiePair.length > 1) {\n // Get the cookie name and value\n const cookieName = cookiePair[0]\n const cookieValue = cookiePair[1]\n\n // Name comparison\n if (\n cookieName.startsWith(nameStartsWith) &&\n cookieName.endsWith(nameEndsWith)\n ) {\n return cookieValue\n }\n }\n }\n return null\n}\n\nexport function eraseCookie(name) {\n document.cookie = name + '=; Max-Age=-99999999;'\n}\n\n/**\n * Convert a string to title case\n */\nexport function toTitleCase(str) {\n return str\n .toLowerCase()\n .split(' ')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(' ')\n}\n\n/**\n * Validate US zip code\n */\nexport function validateZipCode(str, allowPlusFour) {\n let regexp\n if (allowPlusFour) regexp = /^[0-9]{5}(?:-[0-9]{4})?$/\n else regexp = /^[0-9]{5}?$/\n if (regexp.test(str)) return true\n else return false\n}\n\n/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing.\n *\n * @param {Function} func A function to call after N milliseconds\n * @param {number} wait The number of milliseconds to wait\n * @param {boolean} immediate Trigger the function on the leading edge instead of the trailing\n * @return {Function} A function, that, as long as it continues to be invoked, will not be triggered\n */\nexport function debounce(func, wait, immediate) {\n let timeout\n return function () {\n const context = this\n const args = arguments\n const later = function () {\n timeout = null\n if (!immediate) func.apply(context, args)\n }\n const callNow = immediate && !timeout\n clearTimeout(timeout)\n timeout = setTimeout(later, wait)\n if (callNow) func.apply(context, args)\n }\n}\n\n/* function to add smooth scrolling from a click event */\nexport function scrollAnchors(e, respond = null) {\n e.preventDefault()\n\n function distanceToTop(el) {\n return Math.floor(el.getBoundingClientRect().top - 150)\n }\n const targetID = respond\n ? respond.getAttribute('href')\n : this.getAttribute('href')\n const targetAnchor = document.querySelector(targetID)\n if (!targetAnchor) return\n const originalTop = distanceToTop(targetAnchor)\n\n // detect if the user is on IE11\n const isIE11 = !!window.MSInputMethodContext && !!document.documentMode\n const agent = window.navigator.userAgent.toLowerCase()\n const isEdge = agent.indexOf('edge') > -1 || agent.indexOf('edg') > -1\n\n if (isIE11 || isEdge) {\n window.scroll(0, originalTop)\n } else {\n window.scrollBy({\n top: originalTop,\n left: 0,\n behavior: 'smooth'\n })\n }\n\n const checkIfDone = setInterval(function () {\n if (distanceToTop(targetAnchor) === 0) {\n targetAnchor.tabIndex = '-1'\n targetAnchor.focus()\n\n // Let's make sure the History API even exists first..\n if ('history' in window) {\n window.history.pushState('', '', targetID)\n } else {\n // Do it the old-fashioned way!\n window.location = targetID\n }\n\n clearInterval(checkIfDone)\n }\n }, 100)\n}\n\n/* get browser window dimentions */\nexport function viewportSize() {\n const vw = Math.max(\n document.documentElement.clientWidth || 0,\n window.innerWidth || 0\n )\n const vh = Math.max(\n document.documentElement.clientHeight || 0,\n window.innerHeight || 0\n )\n return { width: vw, height: vh }\n}\n\n/* test a string for JSON and return if true */\nexport function tryParseJSON(jsonString) {\n try {\n const o = JSON.parse(jsonString)\n\n // Handle non-exception-throwing cases:\n // Neither JSON.parse(false) or JSON.parse(1234) throw errors, hence the type-checking,\n // but... JSON.parse(null) returns null, and typeof null === \"object\",\n // so we must check for that, too. Thankfully, null is falsey, so this suffices:\n if (o && typeof o === 'object') {\n return o\n }\n } catch (e) {}\n\n return false\n}\n\n/* Change scroll position accounting for the header's height */\nexport function headerOffsetScroll(contentSection) {\n const header = document.querySelector('[data-cmp-is=\"header\"]')\n const offset = contentSection ? contentSection.getBoundingClientRect().top : 0\n const headerHeight = header ? header.getBoundingClientRect().height : 0\n\n window.scrollTo({\n top: offset - headerHeight,\n behavior: 'smooth'\n })\n}\n\nexport function noop() {}\n\n/**\n * Checks if a string is a valid comma separated list of words\n * and returns the original word or an array of words\n * @param {*} str\n * @returns\n */\nexport function parseCommaSeparatedWords(str) {\n return str.includes(',') ? str.split(',') : str\n}\n\n/**\n * Capitalize first letter in a string\n * @param {*} str\n * @returns\n */\nexport function capitalizeFirstLetter(str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n}\n\n/**\n * Sort the keys inside an object and return it\n * @param {object} obj - The object to sort\n * @returns {object} - The sorted object\n */\nexport function sortObjectKeys(obj) {\n // Check if the input is an object\n if (typeof obj !== 'object' || obj === null) {\n throw new TypeError('Input must be an object')\n }\n\n // Check if obj is an Array\n if (Array.isArray(obj)) {\n throw new TypeError('Input must not be an array')\n }\n\n try {\n return Object.keys(obj)\n .sort((a, b) => a.localeCompare(b))\n .reduce((result, key) => {\n result[key] = obj[key]\n return result\n }, {})\n } catch (error) {\n console.error('Error sorting object keys: ', error)\n throw error\n }\n}\n","// 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].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\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__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".min.js?t=1738825287219\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\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};","__webpack_require__.j = 792;","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t792: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_hero_digital_masonite\"] = self[\"webpackChunk_hero_digital_masonite\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [96], () => (__webpack_require__(7775)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","moduleMap","name","loader","App","static","MODULES","constructor","this","modules","services","Services","getInstance","EventEmitterService","analytics","Analytics","loadModules","destroy","forEach","module","isLoadedAttr","window","Promise","all","map","async","data","elements","document","querySelectorAll","length","resolve","then","default","catch","err","reject","Error","importModule","item","items","Module","Array","from","$target","getAttribute","setAttribute","push","create","dispatchModulesLoaded","emit","EVENTS","MODULES_LOADED","app","addEventListener","instance","element","datasetPrefix","isBrowser","attachEvents","handleClick","handleInputChange","detachEvents","removeEventListener","event","closestTarget","target","closest","includes","tagName","triggerAnalytics","selectedOption","options","selectedIndex","attributes","attribute","startsWith","value","dataset","params","Object","keys","key","paramKey","replace","href","click_url","trackInteraction","_this","arguments","undefined","dataLayer","dlObj","isDebuggingAnalytics","console","log","URLSearchParams","location","search","get","id","getId","ScrollService","callbacks","ticking","last_scroll_pos","init","scrollOptimizer","bind","requestAnimationFrame","onScroll","callback","scrollY","scrollDirection","addCallback","removeCallback","filter","ResizeService","windowWidth","innerWidth","windowHeight","innerHeight","debounce","onResize","isWidthChanged","isHeightChanged","width","height","BreakpointListener","SMALL","MEDIUM","MEDIUM_LARGE","LARGE","XLARGE","BREAKPOINTS","SMALL_MAX","SMALL_ONLY","MEDIUM_MAX","MEDIUM_LARGE_MAX","MEDIUM_ONLY","LARGE_MAX","LARGE_ONLY","queries","BREAKPOINT_MAP","queryMatch","mediaQueryLists","isAttached","listeners","createMatchMedia","addListener","listener","removeListener","l","media","handleQueryListener","matchMedia","matches","updatedMatches","reduce","acc","getCurrentBreakpoint","actionOnClickOutside","action","exceptionClassArray","useCapture","outsideClickListener","contains","classList","some","className","removeClickListener","clearListener","limitKeyboardAccessibility","closeFunction","focusOptions","trapFocus","disableKeyHandler","focusableEl","el","style","getComputedStyle","offsetParent","display","visibility","firstFocusableEl","lastFocusableEl","removeTrapFocus","keyCode","shiftKey","activeElement","preventDefault","focus","type","warn","JSON","stringify","clearKeyHandler","setCookie","days","expires","date","Date","setTime","getTime","toUTCString","obj","entries","cookie","getCookie","nameEQ","ca","split","isJSON","str","parse","e","i","c","charAt","substring","indexOf","content","func","wait","immediate","timeout","context","args","callNow","clearTimeout","setTimeout","apply","noop","parseCommaSeparatedWords","sortObjectKeys","TypeError","isArray","sort","a","b","localeCompare","result","error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","__webpack_modules__","call","m","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","every","splice","r","n","getter","__esModule","d","definition","o","defineProperty","enumerable","f","chunkId","promises","u","miniCssF","g","globalThis","Function","prop","prototype","hasOwnProperty","url","done","script","needAttach","scripts","getElementsByTagName","s","createElement","charset","nc","src","onScriptComplete","prev","onerror","onload","doneFns","parentNode","removeChild","head","appendChild","Symbol","toStringTag","scriptUrl","importScripts","currentScript","test","p","installedChunks","installedChunkData","promise","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}