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xB,EAAK,GACnB2xB,EAAU3xB,EAAK,GAGIiC,EAAI,EAC3B,GAAGurB,EAASvR,MAAK,SAAS5a,GAAM,OAA+B,IAAxB6vB,EAAgB7vB,EAAW,IAAI,CACrE,IAAI2rB,KAAY0E,EACZ3E,EAAoB5S,EAAEuX,EAAa1E,KACrCD,EAAoBM,EAAEL,GAAY0E,EAAY1E,IAGhD,GAAG2E,EAAS,IAAInT,EAASmT,EAAQ5E,EAClC,CAEA,IADG0E,GAA4BA,EAA2BzxB,GACrDiC,EAAIurB,EAASnrB,OAAQJ,IACzBksB,EAAUX,EAASvrB,GAChB8qB,EAAoB5S,EAAE+W,EAAiB/C,IAAY+C,EAAgB/C,IACrE+C,EAAgB/C,GAAS,KAE1B+C,EAAgB/C,GAAW,EAE5B,OAAOpB,EAAoBQ,EAAE/O,EAC9B,EAEIoT,EAAqB5T,KAAK,uBAAyBA,KAAK,wBAA0B,GACtF4T,EAAmB9qB,QAAQ0qB,EAAqBtrB,KAAK,KAAM,IAC3D0rB,EAAmBvxB,KAAOmxB,EAAqBtrB,KAAK,KAAM0rB,EAAmBvxB,KAAK6F,KAAK0rB,G,ICpFvF,IAAIC,EAAsB9E,EAAoBQ,OAAE/T,EAAW,CAAC,OAAO,WAAa,OAAOuT,EAAoB,KAAO,IAClH8E,EAAsB9E,EAAoBQ,EAAEsE,E","sources":["webpack://tombras/./js/analytics.js","webpack://tombras/./js/animations/AnimationHandler.js","webpack://tombras/./js/animations/config.js","webpack://tombras/./js/animations/index.js","webpack://tombras/./js/classes/Accordion.js","webpack://tombras/./js/classes/EmailSubscribe.js","webpack://tombras/./js/classes/VideoModal.js","webpack://tombras/./js/events.js","webpack://tombras/./js/animations/parallax-positions.js","webpack://tombras/./templates/main-menu/index.js","webpack://tombras/./js/animations/googleOptimize.js","webpack://tombras/./js/main.js","webpack://tombras/./js/polyfills/CustomEvent.js","webpack://tombras/./js/polyfills/Element.append.js","webpack://tombras/./js/polyfills/Element.closest.js","webpack://tombras/./js/polyfills/IntersectionObserver.js","webpack://tombras/./js/utils.js","webpack://tombras/./js/vendors/gsap-bonus/utils/VelocityTracker.js","webpack://tombras/./js/vendors/gsap-bonus/InertiaPlugin.js","webpack://tombras/webpack/bootstrap","webpack://tombras/webpack/runtime/chunk loaded","webpack://tombras/webpack/runtime/compat get default export","webpack://tombras/webpack/runtime/define property getters","webpack://tombras/webpack/runtime/ensure chunk","webpack://tombras/webpack/runtime/get javascript chunk filename","webpack://tombras/webpack/runtime/get mini-css chunk filename","webpack://tombras/webpack/runtime/global","webpack://tombras/webpack/runtime/hasOwnProperty shorthand","webpack://tombras/webpack/runtime/load script","webpack://tombras/webpack/runtime/make namespace object","webpack://tombras/webpack/runtime/publicPath","webpack://tombras/webpack/runtime/css loading","webpack://tombras/webpack/runtime/jsonp chunk loading","webpack://tombras/webpack/startup"],"sourcesContent":["const brand = \"Lodge Cast Iron\";\n\n/**\n * A GTM object\n * @typedef {{\n * \tevent: string,\n * \tcategory?: string,\n * \tlabel?: string,\n * \tvalue: string,\n * }} GTMObject\n */\n\n/**\n * Enforces custom events being there\n * @param {GTMObject} data\n */\nexport const gtmCustomEventPush = (data) => {\n\tif (!data.event) console.error(\"No name given for Custom Event\");\n\tgtmPush(data);\n};\n\n/**\n * Enforces custom events being there\n * @param {GTMObject} data\n */\nexport const gtmPush = (data) => {\n\tif (window.dataLayer) {\n\t\tconsole.log(\"GTM data was sent as follows:\", data);\n\t\twindow.dataLayer.push(data);\n\t} else {\n\t\tconsole.warn(\n\t\t\t\"GTM does not exist or is not enabled on this environment. The following data would have been sent:\",\n\t\t);\n\t\tconsole.log(data);\n\t}\n};\n\nexport const massageProducts = (product, userOpt = null) => {\n\tconst { variations } = product;\n\n\t// Set up basic option object\n\tlet opt = {\n\t\tvariant: false,\n\t\tshowPosition: false,\n\t\toffset: 0,\n\t};\n\n\t// Merge options if required w/ the defaults being overwritten\n\tif (userOpt) {\n\t\topt = Object.assign({}, opt, userOpt);\n\t}\n\n\treturn variations.map((p, idx) => {\n\t\tif (!p.sku) console.warn(\"Product has no SKU for GTM\");\n\n\t\tconst obj = {\n\t\t\tid: p.sku || `No SKU for ${p.title}`,\n\t\t\tname: p.title || product.title,\n\t\t\tprice: p.price,\n\t\t\tbrand,\n\t\t};\n\n\t\tif (opt.variant) {\n\t\t\tobj.variant = [\n\t\t\t\tp.shape,\n\t\t\t\tp.color || (p.attributes && p.attributes.attribute_color),\n\t\t\t\tp.material,\n\t\t\t\tp.size || (p.attributes && p.attributes.attribute_size),\n\t\t\t]\n\t\t\t\t.filter((i) => i)\n\t\t\t\t.reduce((acc, curr) => {\n\t\t\t\t\treturn (acc += `${acc.length === 0 ? \"\" : \"|\"}${curr}`);\n\t\t\t\t}, \"\")\n\t\t\t\t.toLowerCase();\n\t\t}\n\n\t\tif (opt.showPosition) {\n\t\t\tobj.position = opt.offset + idx;\n\t\t}\n\n\t\tif (p.category) {\n\t\t\tobj.category = p.category;\n\t\t}\n\n\t\treturn obj;\n\t});\n};\n\n/**\n * Creates the impression data structure based off an array of products\n * @param {Product[]} products\n * @param {string} filterList\n */\nexport const massageImpressions = (products, filterList = \"\") => {\n\tconsole.log(filterList);\n\treturn products.map((p, idx) => {\n\t\tconst obj = {\n\t\t\tname: p.title,\n\t\t\tbrand,\n\t\t\tposition: idx,\n\t\t\tlist: `Shop All - ${\n\t\t\t\tfilterList ? decodeURIComponent(filterList) : \"No Filters\"\n\t\t\t}`,\n\t\t};\n\n\t\tif (p.variations && p.variations.length) {\n\t\t\tobj.price = p.variations[0].price;\n\n\t\t\tconst category = p.variations.reduce((acc, curr) => {\n\t\t\t\treturn !curr.category\n\t\t\t\t\t? acc\n\t\t\t\t\t: (acc += `${acc.length === 0 ? \"\" : \",\"}${curr.category}`);\n\t\t\t}, \"\");\n\n\t\t\tif (category) {\n\t\t\t\tobj.category = category;\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t});\n};\n\nexport const productClick = (product, el, variant = null, price = null) => {\n\tconsole.log(123, price);\n\tconst massagedProduct = {\n\t\tname: product.title,\n\t\tbrand,\n\t\tprice: price ? price : product.variations[0].price,\n\t\tposition: [...el.parentNode.children].findIndex((c) => c === el),\n\t\tvariant: variant ? variant : \"N/A\",\n\t};\n\n\tgtmCustomEventPush({\n\t\tevent: \"ProductClick\",\n\t\tecommerce: {\n\t\t\tactionField: { list: \"Shop All Page\" },\n\t\t\tproducts: [massagedProduct],\n\t\t},\n\t});\n};\n\nexport const gtmCartAdd = (product, quantity, productItem = {}) => {\n\tcartProduct(product, quantity, {\n\t\tevent: \"AddToCart\",\n\t\ttype: \"add\",\n\t\tproductItem,\n\t});\n};\n\nexport const gtmCartRemove = (product, quantity, productItem = {}) => {\n\tcartProduct(product, quantity, {\n\t\tevent: \"RemoveFromCart\",\n\t\ttype: \"remove\",\n\t\tproductItem,\n\t});\n};\n\nexport const cartProduct = (\n\tproduct,\n\tquantity,\n\t{ event, type, productItem = {} },\n) => {\n\tgtmCustomEventPush({\n\t\tevent,\n\t\tecommerce: {\n\t\t\t[type]: {\n\t\t\t\tproducts: [\n\t\t\t\t\t{\n\t\t\t\t\t\tname: product.title || product.name || product.product_name,\n\t\t\t\t\t\tid: product.sku || product.id || product.product_id,\n\t\t\t\t\t\tbrand,\n\t\t\t\t\t\tprice: product.price || productItem.price,\n\t\t\t\t\t\tquantity,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t},\n\t});\n};\nexport const ecommerceDetail = (product) => {\n\tconst products = massageProducts(\n\t\t{ variations: [product] },\n\t\t{ variant: true },\n\t);\n\tgtmCustomEventPush({\n\t\tevent: \"ProductDetailView\",\n\t\tecommerce: {\n\t\t\tdetail: {\n\t\t\t\tactionField: {\n\t\t\t\t\tlist: \"Product Detail Page\",\n\t\t\t\t},\n\t\t\t\tproducts,\n\t\t\t},\n\t\t},\n\t});\n};\n\nconst sfraGetItemInfo = (el) => {\n\tconst row = el.closest(\".product-info\");\n\tconst productInfo = {};\n\n\tconst title = row.querySelector(\".item-attributes .h7\");\n\tif (title) productInfo.title = title.innerText;\n\n\tconst sku = row\n\t\t.querySelector(\".item-attributes .size-mini\")\n\t\t.innerText.split(\"SKU: \")[1];\n\tif (sku) productInfo.id = sku;\n\n\tconst price = row.querySelector(\".sales .value\");\n\tif (price) productInfo.price = price.getAttribute(\"content\");\n\n\tconst quantity = row.querySelector(\".quantity-form select\");\n\tif (quantity) productInfo.quantity = quantity.value;\n\n\treturn productInfo;\n};\n\nconst sfraGetQuickAddInfo = (el) => {\n\tconst row = el.closest(\".recommendation.product-detail\");\n\tconst sku = row.getAttribute(\"data-pid\");\n\tconst title = row.querySelector(\".name\").innerText;\n\tconst price = row.querySelector(\".sales .value\").getAttribute(\"content\");\n\n\treturn {\n\t\tid: sku,\n\t\tname: title,\n\t\tquantity: 1,\n\t\tprice,\n\t};\n};\n\nexport const sfraQuickAddCartEvents = () => {\n\tconst buttons = document.querySelectorAll(\n\t\t\".recommendation.product-detail .add-to-cart-global\",\n\t);\n\tconsole.log(\"quick add\", buttons);\n\tbuttons.forEach((el) => {\n\t\tconsole.log(\"Quick Add\", el);\n\t\tel.addEventListener(\"click\", (_) => {\n\t\t\tconst productItem = sfraGetQuickAddInfo(el);\n\t\t\tcartProduct(productItem, productItem.quantity, {\n\t\t\t\tevent: \"AddToCart\",\n\t\t\t\ttype: \"add\",\n\t\t\t});\n\t\t});\n\t});\n};\nexport const sfraRemoveFromCartEvents = () => {\n\tconst buttons = document.querySelectorAll(\".remove-product.btn\");\n\tconsole.log(\"remove buttons\", buttons);\n\tbuttons.forEach((el) => {\n\t\tel.addEventListener(\"click\", (e) => {\n\t\t\tconsole.log(\"Remove From Cart\", el);\n\t\t\tconst productItem = sfraGetItemInfo(el);\n\t\t\tcartProduct(productItem, productItem.quantity, {\n\t\t\t\tevent: \"RemoveFromCart\",\n\t\t\t\ttype: \"remove\",\n\t\t\t});\n\t\t});\n\t});\n};\nexport const sfraUpdateCartQuantity = () => {\n\tconst selects = document.querySelectorAll(\"select.quantity.custom-select\");\n\tconsole.log(selects);\n\tselects.forEach((el) => {\n\t\tconst value = el.value;\n\t\tel.parentNode.setAttribute(\"gtm-product-count\", value);\n\t\tel.addEventListener(\"change\", (e) => {\n\t\t\tconsole.log(\"Changing select\", el);\n\t\t\tconst newValue = parseInt(el.value, 10);\n\t\t\tconst oldValue = parseInt(\n\t\t\t\tel.parentNode.getAttribute(\"gtm-product-count\"),\n\t\t\t\t10,\n\t\t\t);\n\t\t\tel.parentNode.setAttribute(\"gtm-product-count\", newValue);\n\t\t\tconst wasAnAddition = newValue - oldValue > 0;\n\t\t\tconst productItem = sfraGetItemInfo(el);\n\t\t\tcartProduct(productItem, productItem.quantity, {\n\t\t\t\tevent: wasAnAddition ? \"AddToCart\" : \"RemoveFromCart\",\n\t\t\t\ttype: wasAnAddition ? \"add\" : \"remove\",\n\t\t\t});\n\t\t});\n\t});\n};\n\nexport const sfraMutationObserverForPaypal = () => {\n\tconst paypalCustomEvent = (e) => {\n\t\tif (e.data) {\n\t\t\ttry {\n\t\t\t\tconst _data = JSON.parse(e.data);\n\t\t\t\tconst messageName =\n\t\t\t\t\t_data && _data.__postRobot__ && _data.__postRobot__.data\n\t\t\t\t\t\t? _data.__postRobot__.data.name\n\t\t\t\t\t\t: \"UnknownStep\";\n\t\t\t\tif (messageName === \"onAuthorize\") {\n\t\t\t\t\tgtmCustomEventPush({\n\t\t\t\t\t\tevent: EVENTS.PAYPAL_AUTHORIZED,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\t// do nothing\n\t\t\t}\n\t\t}\n\t};\n\twindow.addEventListener(\"message\", paypalCustomEvent);\n};\n\nexport const EVENTS = {\n\tBOTTOM_PROMO: \"BOTTOM_PROMO\",\n\tHERO_VIDEO: \"HERO_VIDEO\",\n\tHERO_VIDEO_TIMING: \"HERO_VIDEO_TIMING\",\n\tSTANDALONE_CHAT_NOW: \"STANDALONE_CHAT_NOW\",\n\tCUSTOMER_RECOMMENDATION_FAILURE: \"CustomerRecommendationFailure\",\n\tASSOCIATED_PRODUCT_FAILURE: \"AssociatedProductFailure\",\n\tPRODUCT_FAILURE: \"ProductFailure\",\n\tPAYPAL_AUTHORIZED: \"PaypalAuthorized\",\n\tBACK_IN_STOCK_NOTIFICATION: \"BackInStockNotification\",\n\tSEEN_OUT_OF_STOCK: \"SeenOutOfStock\",\n\tDISTRIBUTOR_SEARCH_FAILURE: \"DistributorSearchFailure\",\n\tDISTRIBUTOR_SEARCH_SELECT: \"DistributorSearchSelect\",\n\tDISTRIBUTOR_SEARCH_DEEPLINK: \"DistributorSearchDeeplink\",\n\tQUICK_ANSWER_OPEN: \"QuickAnswerDeepOpen\",\n\tQUICK_ANSWER_SEEN: \"QuickAnswerSeen\",\n\tWIZARD_PERSONA: \"WizardPersona\",\n\tWIZARD_PAGE_VIEW: \"WizardPageView\",\n\tWIZARD_RESULTS: \"WizardResults\",\n\tWIZARD_RECOMMENDATIONS: \"WizardRecommendations\",\n\tLIFT_DATA: \"liftData\",\n};\n","/**\n * IntersectionObserverItems\n * @typedef {{\n * \troot?: null | HTMLElement,\n * \tthreshold: number\n * }} IntersectionObserverOptions\n */\n\nclass AnimationHandler {\n\t/**\n\t * Constructs an animation handler\n\t * @param {Function} onIntersection\n\t * @param {IntersectionObserverOptions} options\n\t */\n\tconstructor(onIntersection, options = null) {\n\t\tconsole.log(\"This will handle all animations\");\n\t\tthis.animatableElements = [];\n\t\tthis.opts = options || {\n\t\t\troot: null,\n\t\t\tthreshold: [0, 0.25],\n\t\t};\n\t\tconsole.log(this.opts);\n\t\tthis.onIntersection = onIntersection;\n\t\tthis.observer = this.createIntersectionObserver(this.opts);\n\t}\n\n\tcreateIntersectionObserver(opts) {\n\t\treturn new IntersectionObserver(this.onIntersection.bind(this), opts);\n\t}\n\n\t/**\n\t * @param {HTMLElement | NodeList} items\n\t */\n\tadd(items, respectNoAnimations = true) {\n\t\tif (\n\t\t\trespectNoAnimations &&\n\t\t\tdocument.body.classList.contains(\"layout-enabled\")\n\t\t) {\n\t\t\t// we just won't add this in, so it won't kickoff animations\n\t\t\treturn;\n\t\t}\n\t\tif (!items)\n\t\t\tthrow new Error(\"Cannot add empty items to the animation handler\");\n\n\t\t// This allows us to handle single or multiple\n\t\t// items without worrying when passing them in\n\t\tif (!NodeList.prototype.isPrototypeOf(items)) {\n\t\t\titems = [items];\n\t\t}\n\n\t\t[...items].forEach(item => {\n\t\t\tconsole.log(item);\n\t\t\t// doing this so we can debug acquia\n\t\t\tthis.animatableElements.push(item);\n\t\t\tthis.observer.observe(item);\n\t\t});\n\t}\n\n\t/**\n\t * Wraps the IO's base unobserve function\n\t * @param {HTMLElement} el\n\t */\n\tunobserve(el) {\n\t\tthis.observer.unobserve(el);\n\t}\n\n\tdebug() {\n\t\tconsole.log(\"DEBUGGING ANIMATION HANDLER:\");\n\t\tconsole.log(this);\n\t}\n}\n\nexport const componentAnimationHandler = new AnimationHandler(entries => {\n\tentries.forEach(({ target, intersectionRatio }) => {\n\t\tconsole.log(\"Do some stuff\", target, intersectionRatio);\n\n\t\tconst isAnimatableAnytime =\n\t\t\tintersectionRatio != 0 && target.classList.contains(\"animatable-anytime\");\n\t\tif (\n\t\t\t(intersectionRatio > 0.2 || isAnimatableAnytime) &&\n\t\t\t!target.classList.contains(\"animated\")\n\t\t) {\n\t\t\tconsole.log(\"Dispatching event for\", target);\n\t\t\ttarget.dispatchEvent(new CustomEvent(\"inview\"));\n\t\t\ttarget.classList.add(\"animated\");\n\n\t\t\t// NOTE 9/4: Added as a clean up optimization\n\t\t\t// If we see non-Acquia animation failures\n\t\t\t// look here first\n\t\t\tcomponentAnimationHandler.unobserve(target);\n\t\t}\n\t});\n});\nwindow._componentAnimationHandlerDebugger = componentAnimationHandler;\nexport default AnimationHandler;\n","export const ani = (...args) => Object.assign({}, ...args);\nimport { Power3, Power1 } from \"gsap\";\n\nexport const paused = true;\nexport const DEFAULT_TIME_SHORT = 0.2;\nexport const DEFAULT_TIME = 1;\nexport const DEFAULT_STAGGER = 0.1;\nexport const DEFAULT_EASE = { ease: Power1.easeOut };\n\n// Delays\nexport const SUBTLE_DELAY = 0.4;\nexport const NOT_SUBTLE_DELAY = 0.6;\n// Opacity\nexport const START_OPACITY = { opacity: 0 };\nexport const FINISH_OPACITY = { opacity: 1 };\n\n// Offsets\nexport const START_Y_OFFSET = { y: 20 };\nexport const FINISH_Y_OFFSET = { y: 0 };\n\nexport const DEFAULT_OPTIONS = {\n\tDEFAULT_STAGGER,\n};\nexport const COLORS = {\n\tbrandPrimary: \"#ffd846\",\n\tbrandWhite: \"#f6f6f6\",\n\tblack: \"#000\",\n\twhite: \"#fff\",\n};\nexport const ANIMATION_DEFAULTS = {\n\tpaused,\n\tDEFAULT_TIME,\n\tDEFAULT_TIME_SHORT,\n\tDEFAULT_STAGGER,\n\tCOLORS,\n};\n\nexport const ANIMATION_MOVEMENT = {\n\tOFFSET: {\n\t\tSTART_Y_OFFSET,\n\t\tFINISH_Y_OFFSET,\n\t},\n\tOPACITY: { START_OPACITY, FINISH_OPACITY },\n};\n\nexport const SIMPLE_ANIMATION_START = ani(\n\tSTART_Y_OFFSET,\n\tSTART_OPACITY,\n\tDEFAULT_EASE,\n);\nexport const SIMPLE_ANIMATION_FINISH = ani(\n\tFINISH_Y_OFFSET,\n\tFINISH_OPACITY,\n\tDEFAULT_EASE,\n);\n","import {\n\tDEFAULT_TIME,\n\tDEFAULT_TIME_SHORT,\n\tFINISH_OPACITY,\n\tSIMPLE_ANIMATION_START,\n\tSIMPLE_ANIMATION_FINISH,\n\tDEFAULT_STAGGER,\n\tSTART_OPACITY,\n} from \"./config\";\n\nconst sidesArray = [\n\t{ start: \"left\", finish: \"right\" },\n\t{ start: \"right\", finish: \"left\" },\n];\n\nexport const tweenImagesWithOverlay = (\n\t{ overlay, image, caption },\n\ttl,\n\tgrouping = \"\",\n\trandomSide = false,\n) => {\n\t// Just safeguard against weird outcomes\n\tif (!image) return;\n\n\tlet chosenSide = sidesArray[0];\n\tif (randomSide) {\n\t\tconst idx = Math.floor(Math.random() * 2);\n\t\tchosenSide = sidesArray[idx];\n\t}\n\tif (overlay) {\n\t\tconst imageArr = [image];\n\t\tif (image.closest(\"picture\")) {\n\t\t\timageArr.push(image.closest(\"picture\"));\n\t\t}\n\t\tif (image.closest(\"a\")) {\n\t\t\timageArr.push(image.closest(\"a\"));\n\t\t}\n\t\ttl.set(overlay, FINISH_OPACITY);\n\t\ttl.set(imageArr, START_OPACITY);\n\t\ttl.to(\n\t\t\toverlay,\n\t\t\tDEFAULT_TIME_SHORT,\n\t\t\t{\n\t\t\t\tzIndex: 2,\n\t\t\t\tscaleX: 1,\n\t\t\t\topacity: 1,\n\t\t\t\ttransformOrigin: `${chosenSide.start} center`,\n\t\t\t},\n\t\t\t(grouping += \"+=0.1\"),\n\t\t);\n\t\ttl.set(imageArr, FINISH_OPACITY);\n\t\ttl.to(overlay, DEFAULT_TIME_SHORT, {\n\t\t\tscaleX: 0,\n\t\t\ttransformOrigin: `${chosenSide.finish} center`,\n\t\t});\n\t}\n\tif (caption) {\n\t\ttl.to(caption, DEFAULT_TIME, FINISH_OPACITY);\n\t}\n\n\treturn tl;\n};\n\nexport const tweenCards = (container, tl) => {\n\tconst cards = [...container.children];\n\tif (cards && cards.length) {\n\t\tconst cardWidth = cards[0].offsetWidth;\n\t\tconst windowWidth = window.innerWidth;\n\t\tconst SLICE_POINT = Math.ceil(windowWidth / cardWidth);\n\t\ttl.staggerFromTo(\n\t\t\tcards.slice(0, SLICE_POINT),\n\t\t\tDEFAULT_TIME,\n\t\t\tSIMPLE_ANIMATION_START,\n\t\t\tSIMPLE_ANIMATION_FINISH,\n\t\t\tDEFAULT_STAGGER,\n\t\t);\n\t\ttl.set(cards.slice(SLICE_POINT, cards.length), { opacity: 1 });\n\t}\n\treturn tl;\n};\n","import { qsa } from \"../utils\";\n\nclass Accordion {\n\tconstructor(el) {\n\t\tthis.el = el;\n\t\tthis.setupEvents();\n\t\tif (this.el.querySelector(\"[auto-open]\")) {\n\t\t\tconst autoOpen = this.el.querySelectorAll(\"[auto-open]\");\n\t\t\tautoOpen.forEach(el => this.toggle({ currentTarget: el }));\n\t\t}\n\t}\n\n\tsetupEvents() {\n\t\tconst buttons = qsa(\".accordion--title\", this.el);\n\t\t[...buttons].forEach(btn =>\n\t\t\tbtn.addEventListener(\"click\", this.toggle.bind(this)),\n\t\t);\n\t}\n\n\t/**\n\t *\n\t * @param {{ currentTarget: HTMLElement}} currentTarget\n\t */\n\ttoggle({ currentTarget }) {\n\t\tcurrentTarget.classList.toggle(\"open\");\n\t\tconst content = currentTarget.nextElementSibling;\n\n\t\t// if we hit this -- it's Drupal's fault\n\t\tif (!content) return;\n\n\t\tcontent.style.height = `${content.scrollHeight}px`;\n\t\tif (!currentTarget.classList.contains(\"open\")) {\n\t\t\t// take a quick break to do this\n\t\t\tsetTimeout(() => (content.style.height = `0px`), 16);\n\t\t} else {\n\t\t\t// this will help us when we resize, so we don't have to\n\t\t\t// do any recalculations on resize! the powers of css\n\t\t\t// and a small bit of js!\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (currentTarget.classList.contains(\"open\")) {\n\t\t\t\t\tcontent.style.height = \"auto\";\n\t\t\t\t}\n\t\t\t}, 200);\n\t\t}\n\t}\n}\n\nexport default Accordion;\n[...document.querySelectorAll(\".accordion\")].map(el => new Accordion(el));\n","import axios from \"axios\";\nimport { gtmCustomEventPush } from \"../analytics\";\nimport { DRUPAL_API } from \"../utils\";\n\nclass EmailSubscribe {\n\tconstructor(\n\t\tselector = \".email-subscription\",\n\t\tplacement = \"Unknown\",\n\t\tpostSuccessFn = null,\n\t\tgtmData = null,\n\t) {\n\t\tconsole.log(selector);\n\t\tthis.el = document.querySelector(selector);\n\t\tthis.placement = placement;\n\t\tif (postSuccessFn) this.postSuccessFn = postSuccessFn;\n\t\tthis.gtmData = gtmData;\n\t\tconsole.log(this.el, \"WIP EMAIL SUBSCRIBE!\");\n\t\tif (this.el) {\n\t\t\tthis.formEvents(this.el, placement);\n\t\t}\n\t}\n\n\tgetUrl() {\n\t\treturn `${DRUPAL_API}/salesforce/list`;\n\t}\n\n\taddThankYouMessage(el, html = null) {\n\t\tthis.handleErrors(el, false);\n\t\tconst div = document.createElement(\"div\");\n\t\tdiv.classList.add(\"thank-you-overlay\");\n\t\tconst innerHTML = html\n\t\t\t? html\n\t\t\t: `
Thanks for subscribing!
`;\n\t\tdiv.innerHTML = innerHTML;\n\t\tel.appendChild(div);\n\n\t\t// handle close buttons\n\t\tconst btn = this.el.querySelector(\".btn--close-slices\");\n\n\t\tif (this.el.closest(\"#block-stickybottompagepromo\")) {\n\t\t\tconst promo = this.el.closest(\"#block-stickybottompagepromo\");\n\t\t\tpromo.classList.add(\"success\");\n\t\t}\n\t\tsetTimeout(() => {\n\t\t\tdiv.classList.add(\"active\");\n\t\t\tif (btn) {\n\t\t\t\tbtn.classList.add(\"brand-primary\");\n\t\t\t}\n\t\t\tel.querySelector(\"form\").style.opacity = \"0\";\n\t\t}, 16);\n\t}\n\n\thandleErrors(el, show = true) {\n\t\tconst fn = show ? \"add\" : \"remove\";\n\t\tconst error = el.querySelector(\".form-error\");\n\t\tconst form = el.querySelector(\"form\");\n\t\tif (form) form.classList[fn](\"has-error\");\n\t\tif (error) error.classList[fn](\"has-error\");\n\t}\n\n\tformEvents(el) {\n\t\tconst form = el.querySelector(\"form\");\n\t\tconst input = el.querySelector(\"input\");\n\t\tconsole.log(\"email form\", form);\n\t\tform.addEventListener(\"submit\", (e) => {\n\t\t\te.preventDefault();\n\t\t\tconst email = input.value;\n\t\t\tconst list_key = input.getAttribute(\"data-list-key\");\n\t\t\tif (email) {\n\t\t\t\tthis.subscribeUser({\n\t\t\t\t\tel,\n\t\t\t\t\temail,\n\t\t\t\t\tplacement: this.placement,\n\t\t\t\t\tlist_key,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis.handleErrors(el);\n\t\t\t}\n\t\t});\n\t}\n\n subscribeUser({ el, email, mobileNumber, placement, list_key }) {\n\t\tconst url = this.getUrl();\n\t\tconst tokenURL = \"/session/token\";\n\t\treturn axios\n\t\t\t.get(tokenURL)\n\t\t\t.then((res) => res.data)\n\t\t\t.then((token) => {\n\t\t\t\treturn axios\n\t\t\t\t\t.post(\n\t\t\t\t\t\turl,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\temail,\n\t\t\t\t\t\t\tlist_key,\n ...(mobileNumber && { MobileNumber: mobileNumber }),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\theaders: {\n\t\t\t\t\t\t\t\t\"Content-Type\": \"application/json\",\n\t\t\t\t\t\t\t\t\"X-CSRF-Token\": token,\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.then((res) => res.data)\n\t\t\t\t\t.then((data) => {\n\t\t\t\t\t\tconsole.log(data);\n\t\t\t\t\t\tif (this.postSuccessFn) {\n\t\t\t\t\t\t\tthis.handleErrors(el, false);\n\t\t\t\t\t\t\tthis.postSuccessFn();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.addThankYouMessage(el);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tgtmCustomEventPush({\n\t\t\t\t\t\t\tevent: !this.gtmData ? \"EmailSubscribe\" : \"EmailListComponent\",\n\t\t\t\t\t\t\tcategory: \"Email Subscription\",\n\t\t\t\t\t\t\taction: \"Email Subscribe Succeeded\",\n\t\t\t\t\t\t\tlabel: placement,\n\t\t\t\t\t\t\textraData: this.gtmData || {},\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t})\n\t\t\t.catch((err) => {\n\t\t\t\tconsole.error(\"EMAIL SIGNUP FAILURE\", err);\n\t\t\t\tthis.handleErrors(el);\n\t\t\t\tgtmCustomEventPush({\n\t\t\t\t\tevent: !this.gtmData\n\t\t\t\t\t\t? \"EmailSubscribeFailure\"\n\t\t\t\t\t\t: \"EmailListComponentFailure\",\n\t\t\t\t\tcategory: \"Email Subscription\",\n\t\t\t\t\taction: \"Email Subscribe Failed\",\n\t\t\t\t\tlabel: placement,\n\t\t\t\t\textraData: this.gtmData || {},\n\t\t\t\t});\n\t\t\t});\n\t}\n}\n\nexport default EmailSubscribe;\n\n// this hooks up the footer\nnew EmailSubscribe(\"#block-footersubscribe.email-subscription\", \"Footer\");\n","import {\n\tDEFAULT_TIME_SHORT,\n\tFINISH_OPACITY,\n\tani,\n\tDEFAULT_EASE,\n\tSTART_OPACITY,\n} from \"../animations/config\";\nimport gsap from \"gsap\";\nimport { tweenImagesWithOverlay } from \"../animations\";\nimport { callFnIfEnterKeyWasPressed } from \"../utils\";\nexport default class Modal {\n\tconstructor(el) {\n\t\tconsole.log(\"Creating video modal wrapper\");\n\t\tthis.el = el;\n\t\tthis.stream = el.querySelector(\"stream\")\n\t\t\t? el.querySelector(\"stream\")\n\t\t\t: null;\n\t\tthis.opened = false;\n\t\tthis.tl = this.createTimeline();\n\t\tthis.setupEvents();\n\t}\n\n\t/**\n\t * Creates all the clickaway events and even handles the button\n\t * w/o having to specifically bind it for clicks\n\t */\n\tsetupEvents() {\n\t\tthis.el.addEventListener(\"click\", e => {\n\t\t\tconst { target } = e;\n\t\t\t// if target isnt modal-content && there isnt a target closest\n\t\t\tif (\n\t\t\t\t!target.classList.contains(\"lodge-modal--content\") &&\n\t\t\t\t!target.closest(\".lodge-modal--content\")\n\t\t\t) {\n\t\t\t\tconsole.log(\n\t\t\t\t\t\"Closing because of outside click!\",\n\t\t\t\t\t!target.classList.contains(\"lodge-modal--content\"),\n\t\t\t\t\t!target.closest(\".lodge-modal--content\"),\n\t\t\t\t);\n\t\t\t\tthis.hide();\n\t\t\t}\n\t\t});\n\t\tthis.el\n\t\t\t.querySelector(\".btn--close\")\n\t\t\t.addEventListener(\n\t\t\t\t\"keydown\",\n\t\t\t\tcallFnIfEnterKeyWasPressed(this.hide.bind(this)),\n\t\t\t);\n\t}\n\n\t/**\n\t * Helps set accessibility attributes\n\t * @param {number} tabIndex - defaults to -1 (not tabbable)\n\t * @param {boolean} shouldFocus - defaults to false (will not focus btn)\n\t */\n\tsetupTabIndices(tabIndex = -1, shouldFocus = false) {\n\t\tconst btn = this.el.querySelector(\".btn--close\");\n\t\tbtn.setAttribute(\"tabindex\", tabIndex);\n\t\tif (shouldFocus) {\n\t\t\tbtn.focus();\n\t\t}\n\t}\n\n\t/**\n\t * Handles creating the timeline for the modal so\n\t * that we can call reverse on it\n\t */\n\tcreateTimeline() {\n\t\tlet tl = gsap.timeline({ paused: true });\n\t\tconst overlay = this.el.parentNode.querySelector(\".hider-overlay.modal\");\n\t\tconst submenu = document.querySelector(\".submenu\");\n\t\tconst modalContent = this.el.querySelector(\".lodge-modal--content\");\n\t\tconsole.log(\"Page has submenu?\", submenu);\n\t\tif (submenu) {\n\t\t\ttl.to(submenu, DEFAULT_TIME_SHORT, START_OPACITY);\n\t\t}\n\t\ttl.call(() => {\n\t\t\t// NOTE: this will be called FIRST on tl.play\n\t\t\t// meaning it will be called LAST on tl.reverse\n\t\t\tif (this.opened) {\n\t\t\t\tthis.el.closest(\".section\").style.zIndex = \"\";\n\t\t\t\tthis.el.classList.remove(\"active\");\n\t\t\t\tthis.opened = false;\n\t\t\t} else {\n\t\t\t\tthis.el.classList.add(\"active\");\n\t\t\t\tthis.el.closest(\".section\").style.zIndex = \"9999\";\n\t\t\t}\n\t\t});\n\n\t\t// function name is misleading, because I'm using it to tween the content and overlay together\n\t\ttl = tweenImagesWithOverlay({ overlay, image: this.el }, tl, \"\", true);\n\t\ttl.call(() => {\n\t\t\t// NOTE: this will be called LAST on tl.play\n\t\t\t// meaning it will be called FIRST on tl.reverse\n\t\t\tthis.stream && this.opened ? this.stream.pause() : this.stream.play();\n\t\t\tif (!this.opened) this.opened = true;\n\t\t});\n\t\ttl.to(modalContent, DEFAULT_TIME_SHORT, { opacity: 1, scaleY: 1 });\n\n\t\treturn tl;\n\t}\n\n\t/**\n\t * Handles showing (including tabIndices)\n\t */\n\tshow() {\n\t\t// play\n\t\tthis.setupTabIndices(0, true);\n\t\tthis.tl.play();\n\t}\n\n\t/**\n\t * Handles hiding (including tabIndices)\n\t */\n\thide() {\n\t\tif (this.stream) {\n\t\t\tthis.stream.pause();\n\t\t}\n\t\tthis.setupTabIndices();\n\t\tthis.tl.reverse(0);\n\t}\n}\n\nexport const handleModalLinks = () => {\n\tconsole.log(\"BEGIN HANDLING MODAL LINKS!\");\n\tconst modalLinks = [...document.querySelectorAll(\"[data-modal-link]\")];\n\tmodalLinks.forEach(link => {\n\t\tconsole.log(126, link);\n\t\tconst id = link.getAttribute(\"data-modal-link\");\n\t\tif (document.querySelectorAll(id)) {\n\t\t\tconsole.log(\"Div exists!\");\n\t\t\tconst modal = new Modal(document.querySelector(id));\n\t\t\tlink.addEventListener(\"click\", e => {\n\t\t\t\te.preventDefault();\n\t\t\t\tmodal.show();\n\t\t\t});\n\t\t}\n\t});\n};\n","import { debounce } from \"./utils\";\nexport const windowScrollEvents = [];\nconst wseDebug = false;\nexport const windowResizeEvents = [];\nconst wreDebug = false;\n\nwindow.addEventListener(\n\t\"scroll\",\n\te => {\n\t\tif (wseDebug) console.log(\"Scroll:\", windowScrollEvents);\n\t\twindowScrollEvents.forEach(fn => fn(e));\n\t},\n\ttrue,\n);\n\nwindow.addEventListener(\n\t\"resize\",\n\tdebounce(e => {\n\t\tif (wreDebug) console.log(\"Resize:\", windowResizeEvents);\n\t\twindowResizeEvents.forEach(fn => fn());\n\t}, 200),\n);\n","import Rellax from \"rellax\";\nimport AnimationHandler from \"./AnimationHandler\";\nimport { qs } from \"../utils\";\nimport { windowResizeEvents } from \"../events\";\nimport gsap from \"gsap\";\nimport {\n\tDEFAULT_TIME_SHORT,\n\tSIMPLE_ANIMATION_START,\n\tSIMPLE_ANIMATION_FINISH,\n\tDEFAULT_STAGGER,\n\tSTART_OPACITY,\n\tDEFAULT_TIME,\n\tFINISH_OPACITY,\n\tani,\n} from \"./config\";\n/**\n * A GTM object\n * @typedef {{\n * \tid: string,\n * \tchildren?: Array,\n * \timg: string,\n * }} ParallaxContainer\n */\n\n/**\n * A GTM object\n * @typedef {{\n * \tid: string,\n * \tchildren?: Array,\n * \timg: string,\n * speed: number\n * }} ParallaxPiece\n */\n\n/**\n *\n * @param {ParallaxPiece} parallaxPiece\n */\nconst createParallaxElement = (parent, parallaxPiece) => {\n\tconst outer = document.createElement(\"div\");\n\touter.id = parallaxPiece.id;\n\tconst img = document.createElement(\"img\");\n\timg.src = parallaxPiece.img;\n\touter.appendChild(img);\n\tparent.appendChild(outer);\n};\n\nexport const handleResizeParallax = () => {\n\tconsole.log(\"[PARA]: Resizing\");\n\tif (qs(\"#page-parallax\")) {\n\t\tconst mainContent = qs(\".main-content\");\n\t\tconst p = qs(\"#page-parallax\");\n\t\tconsole.log(`[PARA]: ${mainContent.offsetHeight}px`);\n\t\tp.style.height = `${mainContent.offsetHeight}px`;\n\t\tp.style.top = `${mainContent.offsetTop}px`;\n\t}\n};\n\nexport const makeParallax = (imagery) => {\n\t// build it out\n\tconst mainContent = qs(\".main-content\");\n\tconst main = document.createElement(\"div\");\n\tmain.id = \"page-parallax\";\n\tmain.style.height = `${mainContent.offsetHeight}px`;\n\tmain.style.top = `${mainContent.offsetTop}px`;\n\tmain.innerHTML = `
${imagery}
`;\n\tconsole.log(\"[PARA]: initial height\", `${mainContent.offsetHeight}px`);\n\tmainContent.appendChild(main);\n\n\t// add animations\n\tconst parallaxHandler = new AnimationHandler((entries) => {\n\t\tentries.forEach(({ target, intersectionRatio }) => {\n\t\t\tconsole.log(`[PARA]:`, entries);\n\t\t\tif (intersectionRatio > 0.1 && !target.classList.contains(\"animated\")) {\n\t\t\t\tconsole.log(`[PARA]:`, target);\n\t\t\t\ttarget.dispatchEvent(new CustomEvent(\"inview\"));\n\t\t\t\ttarget.classList.add(\"animated\");\n\t\t\t}\n\t\t});\n\t});\n\tconst backgroundItems = document.querySelectorAll(\".page-background-item\");\n\t[...backgroundItems].map((el) =>\n\t\tel.addEventListener(\"inview\", ({ currentTarget }) => {\n\t\t\tmain.style.height = `${mainContent.offsetHeight}px`;\n\t\t\tconsole.log(76, currentTarget, \"WORKING ON ANIMATION!\");\n\t\t\tif (currentTarget.classList.contains(\"parallax-animation\")) {\n\t\t\t\tgsap.fromTo(\n\t\t\t\t\tcurrentTarget,\n\t\t\t\t\tDEFAULT_TIME * 3,\n\t\t\t\t\tSTART_OPACITY,\n\t\t\t\t\tFINISH_OPACITY,\n\t\t\t\t);\n\t\t\t} else if (currentTarget.classList.contains(\"from-left\")) {\n\t\t\t\tgsap.fromTo(\n\t\t\t\t\tcurrentTarget,\n\t\t\t\t\tDEFAULT_TIME,\n\t\t\t\t\tani({ x: -100 }, START_OPACITY),\n\t\t\t\t\tani(FINISH_OPACITY, { x: 0 }),\n\t\t\t\t);\n\t\t\t} else if (currentTarget.classList.contains(\"from-right\")) {\n\t\t\t\tgsap.fromTo(\n\t\t\t\t\tcurrentTarget,\n\t\t\t\t\tDEFAULT_TIME,\n\t\t\t\t\tani({ x: 100 }, START_OPACITY),\n\t\t\t\t\tani(FINISH_OPACITY, { x: 0 }),\n\t\t\t\t);\n\t\t\t}\n\t\t}),\n\t);\n\tparallaxHandler.add(backgroundItems);\n\n\t// add parallax\n\tconst itemsWithParallax = [\n\t\t...document.querySelectorAll(\n\t\t\t\".page-background-item.parallax, .page-background-item .parallax\",\n\t\t),\n\t];\n\titemsWithParallax.map((el) =>\n\t\tRellax(el, {\n\t\t\tcenter: true,\n\t\t\tround: true,\n\t\t}),\n\t);\n\t[...document.querySelectorAll(\".main-content img\")].forEach(\n\t\t(img) => (img.onload = handleResizeParallax),\n\t);\n\twindowResizeEvents.push(handleResizeParallax);\n};\n\nexport const foundryParallaxImages = `\n\t
\n\t\t\"Iron\n\t
\n\t
\n\t\t\"Some\n\t
\n\t
\n\t\"Iron\n\t
\n\t
\n\t\t\"Iron\n\t\t\"Iron\n\t
\n\t
\n\t\t\"A\n\t
\n\t
\n\t\t\"Background\n\t\t\"A\n\t
\n`;\n\nexport const breadParallaxImages = `\n\t
\n\t\t\"Exquisite\n\t
\n\t
\n\t\t\"Bake\n\t
\n\t
\n\t\t\"Bread\n\t
\n`;\n","import gsap from \"gsap\";\nimport {paused, ANIMATION_DEFAULTS} from \"../../js/animations/config\";\nimport {debounce, TABLET_SIZE, qs, DESKTOP_SIZE, qsa} from \"../../js/utils\";\n\nclass MainMenu {\n constructor(el) {\n if (!el) return;\n this.opened = false;\n this.el = el;\n console.log(document.querySelector(\"#toolbar-administration\"));\n this.hasPromo = document.querySelector(\".promo--top\") ? true : false;\n if (\n !document.querySelector(\".submenu\") &&\n !document.querySelector(\"#toolbar-administration\")\n ) {\n this.el.classList.add(\"sticky\");\n }\n if (this.el) {\n this.setupEvents();\n }\n }\n\n isMenuOpened() {\n return this.opened;\n }\n\n handleClickaway({target}) {\n if (!target.closest(\"#site-header\") && window.innerWidth >= DESKTOP_SIZE) {\n // this lets us offcenter thing as neede\n const dropdown = document.querySelector(\".menu--dropdown-active\");\n if (dropdown) {\n document.body.classList.remove(\"prevent-scrolling\");\n console.log(dropdown.classList);\n dropdown.classList.remove(\"menu--dropdown-active\");\n dropdown\n .querySelector('[aria-expanded=\"true\"]')\n .setAttribute(\"aria-expanded\", \"false\");\n console.log(dropdown.classList);\n }\n }\n\n // Handle clickaway cart - WOOOOOOOOOOOOOO\n const cart = document.querySelector(\"#cart-app\");\n if (target.id == \"cart-app\" && cart && cart.classList.contains(\"active\")) {\n cart.classList.remove(\"active\");\n document.body.classList.remove(\"prevent-scrolling\");\n }\n }\n\n setupEvents() {\n const hamburger = this.el.querySelector(\".hamburger\");\n document.body.addEventListener(\"click\", this.handleClickaway.bind(this));\n hamburger.addEventListener(\"click\", this.toggleMobileMenu.bind(this));\n\n const dropdownLinks = this.el.querySelectorAll(\".has-dropdown\");\n [...dropdownLinks].forEach((wrapper) => {\n const link = wrapper.querySelector(\"[data-link-title]\");\n const dropdown = wrapper.querySelector(\".js-menu-dropdown\");\n\n link.addEventListener(\"click\", this.toggleDropdowns.bind(this));\n });\n\n this.recalculate();\n }\n\n toggleMobileMenu() {\n const mobileActiveClass = \"mobile-menu-opened\";\n console.log(this.el);\n const fn = this.el.classList.contains(mobileActiveClass) ? \"remove\" : \"add\";\n this.opened = !this.opened;\n this.menuToggleAnimation(this.el, {fn, mobileActiveClass});\n }\n\n toggleDropdowns(e) {\n\n // for discover submenu\n const subItemsEl = e.target.parentNode.querySelector('.js-sub-items');\n let dropdownEnabled = (subItemsEl && window.getComputedStyle(subItemsEl).display == 'none') ? false : true\n if (dropdownEnabled) e.preventDefault();\n\n const {target} = e;\n const targetParent = target.parentNode;\n const dropdown = target.parentNode.querySelector(\".js-menu-dropdown\");\n // const otherDropdowns = this.el.querySelectorAll(\".menu--dropdown-active\");\n const otherDropdowns = targetParent.parentNode.querySelectorAll(\".menu--dropdown-active\");\n\n // this lets us offcenter thing as needed\n const windowSize = window.innerWidth;\n console.log(windowSize >= TABLET_SIZE);\n let promoTopOffset = windowSize >= TABLET_SIZE ? 100 : 0;\n promoTopOffset = this.getOffsetForMenu();\n\n [...otherDropdowns].forEach((el) => {\n if (el !== targetParent) {\n el.classList.remove(\"menu--dropdown-active\");\n el.querySelector('[aria-expanded=\"true\"]').setAttribute(\n \"aria-expanded\",\n \"false\",\n );\n }\n });\n target.parentNode.classList.toggle(\"menu--dropdown-active\");\n const addOrRemove = target.parentNode.classList.contains(\n \"menu--dropdown-active\",\n )\n ? \"add\"\n : \"remove\";\n document.body.classList[addOrRemove](\"prevent-scrolling\");\n target.setAttribute(\n \"aria-expanded\",\n target.parentNode.classList.contains(\"menu--dropdown-active\"),\n );\n console.log(\"promo top offset is...\", promoTopOffset);\n dropdown.style.top = `${promoTopOffset}px`;\n if (window.outerWidth > 767) {\n dropdown.style.maxHeight = `calc(100vh - ${promoTopOffset}px`;\n } else {\n dropdown.style.maxHeight = \"none\";\n }\n }\n\n getOffsetForMenu() {\n // const promoTop = document.querySelector(\".promo--top\");\n // const bodyTopMargin = parseInt(\n // \twindow.getComputedStyle(document.body).paddingTop,\n // \t10,\n // );\n // let offset = 0;\n // if (promoTop && window.pageYOffset <= promoTop.offsetHeight) {\n // \toffset += promoTop.offsetHeight;\n // }\n // offset += bodyTopMargin;\n // return offset;\n const aboveHeader = document.querySelector(\".above-header\");\n const siteHeader = document.querySelector(\"#site-header\");\n if (!aboveHeader && !siteHeader) return 0;\n const aboveHeaderRect = aboveHeader.getBoundingClientRect();\n const siteHeaderRect = siteHeader.getBoundingClientRect();\n return (siteHeaderRect.top === 0)\n ? siteHeaderRect.top + siteHeaderRect.height\n : aboveHeaderRect.top + aboveHeaderRect.height + siteHeaderRect.height;\n }\n\n menuToggleAnimation(el, {fn, mobileActiveClass}) {\n // variables\n const menuOpened = this.isMenuOpened();\n const {hasPromo} = this;\n const {DEFAULT_TIME, DEFAULT_TIME_SHORT, COLORS} = ANIMATION_DEFAULTS;\n const animatedCover = this.el.querySelector(\n \".links-holder--animated-cover\",\n );\n const allLinks = el.querySelectorAll(\"header nav > ul > li\");\n const search = el.querySelector(\".mobile--drupal-search\");\n const isRemoving = fn === \"remove\";\n const linksStartingX = isRemoving ? {x: 0} : {x: -10};\n const linksFinishing = isRemoving\n ? {autoAlpha: 0, x: -10, stagger: 0.2}\n : {autoAlpha: 1, x: 0, stagger: 0.2};\n // open animation\n // 1. Cover with the border\n // 2. Move things around because of promo potentially being there\n // 3. Uncover\n // 4. Slide things in\n console.log(\"starting\");\n const tl = gsap.timeline();\n tl.to(animatedCover, DEFAULT_TIME_SHORT, {\n zIndex: 5,\n borderWidth: \"50vw 50vw\",\n });\n tl.call(() => {\n this.el.classList[fn](mobileActiveClass);\n if (fn === \"add\") {\n [...allLinks].forEach((el) => (el.style.opacity = \"0\"));\n }\n });\n tl.to(animatedCover, DEFAULT_TIME_SHORT, {\n delay: DEFAULT_TIME_SHORT,\n borderWidth: \"0\",\n });\n if (fn === \"add\") {\n tl.staggerFromTo(allLinks, DEFAULT_TIME, linksStartingX, linksFinishing);\n }\n }\n\n\n\n // TODO: decide if this is how I want this to behave\n recalculate(el) {\n console.log(\"this would recalculate all the things\");\n window.addEventListener(\n \"resize\",\n debounce(() => {\n if (window.innerWidth >= TABLET_SIZE) {\n const activeDropdown = document.querySelector(\n \".menu--dropdown-active\",\n );\n const offset = this.getOffsetForMenu();\n if (activeDropdown) {\n activeDropdown.style = \"\";\n document.querySelector(\".menu--dropdown\").style = `top: ${\n offset\n }px; max-height: calc(100vh - ${offset}px)`;\n window.scroll({top: 0});\n document.body.classList.add(\"prevent-scrolling\");\n }\n }\n\n if (window.innerWidth < TABLET_SIZE) {\n document.body.classList.remove(\"prevent-scrolling\");\n }\n }, 200),\n );\n }\n}\n\n\nconst nav = document.querySelector(\"#site-header\");\nif (!nav) {\n console.warn(\"Menu isn't found\");\n}\nexport default new MainMenu(nav);\n\n\n\n","import \"core-js/es/promise\";\n//https://support.google.com/optimize/answer/7008840?hl=en\n\nconst check = () => {\n\treturn !!document.body.getAttribute(\"lodge-google-optimized\");\n};\nexport const bootup = () => {\n\t// get promise going\n\tlet _resolve = null;\n\tlet startObserver = !check();\n\tconst _promise = new Promise((res) => {\n\t\t_resolve = res;\n\t});\n\n\t// start watching for mutations\n\n\tif (startObserver) {\n\t\tconst config = {\n\t\t\tattributes: true,\n\t\t\tchildList: false,\n\t\t\tsubtree: false,\n\t\t};\n\t\tconst observer = new MutationObserver((mutations, observer) => {\n\t\t\tconst run = check();\n\t\t\tif (run && _resolve) {\n\t\t\t\t_resolve();\n\t\t\t\tobserver.disconnect();\n\t\t\t}\n\t\t});\n\n\t\tobserver.observe(document.body, config);\n\t} else {\n\t\t_resolve();\n\t}\n\n\treturn _promise;\n};\n","// Set Webpack public path depending on where you are\n__webpack_public_path__ =\n\twindow.location.hostname.indexOf(\"localhost\") >= 0\n\t\t? \"/\"\n : \"/themes/custom/tombras/webpack-chunks/\";\nimport \"objectFitPolyfill\";\nimport \"./polyfills/CustomEvent\";\nimport \"./polyfills/IntersectionObserver\";\n// import { initSentry } from \"./utils\";\nimport lazysizes from \"lazysizes\";\nimport {\n\tqs,\n\thandlePrintButtons,\n\thandleBackButtons,\n\tobjectFitForIE,\n\tchatNowBtn,\n\tqsa,\n\taddNewBadgeToRecipes,\n\tcopyBlockID,\n} from \"./utils\";\nimport \"./polyfills/Element.closest\";\nimport \"./polyfills/Element.append\";\nimport {\n\tmakeParallax,\n\tfoundryParallaxImages,\n\tbreadParallaxImages,\n} from \"./animations/parallax-positions\";\n\n// animation stuff\nimport \"gsap/CSSPlugin\";\nimport \"./vendors/gsap-bonus/InertiaPlugin\";\n\n// Must Haves\nimport \"../templates/main-menu\";\nimport \"./classes/EmailSubscribe\";\nimport \"./events\";\nimport \"./classes/Accordion\";\nimport { windowResizeEvents } from \"./events\";\nimport { handleModalLinks } from \"./classes/VideoModal\";\n\nlazysizes.cfg.customMedia = {\n\textra_small: \"\",\n\tsmall: \"all and (min-width: 480px)\",\n\tmedium: \"all and (min-width: 768px)\",\n\twide: \"all and (min-width: 992px)\",\n\textra_wide: \"all and (min-width: 1200px)\",\n};\n\nimport { bootup } from \"./animations/googleOptimize\";\nbootup().then(() => {\n\tconsole.log(\"Rest of site begins to async load in now\");\n\tif (qs(\".vue-component\")) {\n\t\tconsole.log(\"Async load non-Salesforce Vue\");\n\t\timport(\"./vue\");\n\t} else {\n\t\t// Sentry needs a vue instance to add it's integrations\n\t\t// so only call here if our Vue integrations wont be loaded in\n\t\t// initSentry();\n\t}\n\tif (qs(\".promo--top\")) {\n\t\t[...qsa(\".promo--top p\")].forEach((el) => el.classList.add(\"shown\"));\n\t}\n\timport(\"./components/StepMediaSlider\");\n\t//basic components\n\tif (qs(\".block-headings, .wysiwyg, .media-image-block\")) {\n\t\timport(/* webpackChunkName: \"basic\" */ \"./components/Heading\");\n\t\timport(/* webpackChunkName: \"basic\" */ \"./components/WYSIWYG\");\n\t\timport(/* webpackChunkName: \"basic\" */ \"./components/MediaImage\");\n\t}\n\t// card components\n\tif (\n\t\tqs(\n\t\t\t\".four-cards, .three-large-cards, .recipe-slider, .tiny-cards, .product-line\",\n\t\t)\n\t) {\n\t\timport(/* webpackChunkName: \"cards\" */ \"./components/FourCards\");\n\t\timport(/* webpackChunkName: \"cards\" */ \"./components/ThreeLargeCards\");\n\t\timport(/* webpackChunkName: \"cards\" */ \"./components/RecipeSlider\");\n\t\timport(/* webpackChunkName: \"cards\" */ \"./components/TinyCards\");\n\t\timport(/* webpackChunkName: \"cards\" */ \"./components/ProductLine\");\n\t}\n\t// carousels\n\tif (qs(\".fifty-fifty-carousel, .full-card-slider\")) {\n\t\timport(\n\t\t\t/* webpackChunkName: \"carousel\" */ \"./components/FiftyFiftyCarousel\"\n\t\t);\n\t\timport(/* webpackChunkName: \"carousel\" */ \"./components/FullCardSlider\");\n\t}\n\t// one of components\n\tif (qs(\".rows-icon-list\")) import(\"./components/IconList\");\n\tif (qs(\".stats\")) import(\"./components/Stats\");\n\tif (qs(\".half-large-image\")) import(\"./components/HalfLargeImage\");\n\tif (qs(\".instagram-squares\")) import(\"./components/Instagram\");\n\tif (qs(\".hero-block\")) import(\"./components/Hero\");\n\tif (qs(\".timeline\")) import(\"./components/Timeline\");\n\tif (qs(\".cause-effect\")) import(\"./components/CauseEffectFix\");\n\tif (qs(\".scroll-text\")) import(\"./components/ScrollText\");\n\tif (qs(\".submenu\")) import(\"./components/SecondaryNav\");\n\tif (qs(\".promo--bottom\")) import(\"./components/Promos\");\n\tif (qs(\".will-the-real-cast-iron-skillet-please-rotate\")) {\n\t\timport(\"./components/Page404\");\n\t}\n\tif (qs(\".media-video-block\")) import(\"./components/Video\");\n\tif (qs(\".journey\")) import(\"./components/Journey\");\n\tif (qs(\".parallax-image\")) import(\"./components/ParallaxImage\");\n\tif (qs(\".email-list-subscription\"))\n\t\timport(\"./components/EmailListSubscription\");\n\tif (qs(\".recipe-layout\"))\n\t\timport(/* webpackChunkName: \"recipePage\" */ \"./components/RecipeLayout\");\n\timport(/* webpackChunkName: \"search\" */ \"./search.js\");\n\tif (qs(\".search-slider\"))\n\t\timport(\n\t\t\t/* webpackChunkName: \"searchResults\" */ \"./components/SearchResults.js\"\n\t\t);\n\n\thandlePrintButtons(\"#print\");\n\thandleBackButtons(\".go-back-btn\");\n\tchatNowBtn();\n\thandleModalLinks();\n\twindowResizeEvents.push(objectFitForIE);\n\tobjectFitForIE();\n\t// NOTE: this will all hopefully go away :)\n\tconst FOUNDRY = \"node/121\";\n\tconst BREAD = \"node/1266\";\n\tif (drupalSettings.path.currentPath === FOUNDRY) {\n\t\tmakeParallax(foundryParallaxImages);\n\t} else if (drupalSettings.path.currentPath === BREAD) {\n\t\tmakeParallax(breadParallaxImages);\n\t}\n\tif (document.querySelector(\"[data-created-date]\")) {\n\t\taddNewBadgeToRecipes();\n\t}\n\timport(/* webpackChunkName: \"userClassifier\" */ \"./classifier\");\n\tif (qs(\".quick-copy\")) {\n\t\t[...qsa(\".quick-copy\")].forEach((el) => {\n\t\t\tconsole.log(el);\n\t\t\tel.addEventListener(\"click\", copyBlockID);\n\t\t});\n\t}\n});\n// import \"./components\";\n\nconst drupalFunction = () => {\n\t(function (Drupal, $) {\n\t\t// Drupal Behaviors and Jquery here\n\t\t// Using jQuery here will help reduce the amount of conflicts between\n\t\t// admin interface and global JS functionality.\n\t\tDrupal.behaviors.tombras = {\n\t\t\tattach: function (context, settings) {\n\t\t\t\t//Can access all the drupal behaviors from here\n\t\t\t},\n\t\t};\n\t})(Drupal, jQuery);\n};\nif (window.Drupal) {\n\tdrupalFunction();\n}\n","(function() {\n if (typeof window.CustomEvent === \"function\") return false;\n\n function CustomEvent(event, params) {\n params = params || {bubbles: false, cancelable: false, detail: null};\n var evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(\n event,\n params.bubbles,\n params.cancelable,\n params.detail\n );\n return evt;\n }\n\n window.CustomEvent = CustomEvent;\n})();\n","// Source: https://github.com/jserz/js_piece/blob/master/DOM/ParentNode/append()/append().md\n(function(arr) {\n\tarr.forEach(function(item) {\n\t\tif (item.hasOwnProperty(\"append\")) {\n\t\t\treturn;\n\t\t}\n\t\tObject.defineProperty(item, \"append\", {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: true,\n\t\t\twritable: true,\n\t\t\tvalue: function append() {\n\t\t\t\tvar argArr = Array.prototype.slice.call(arguments),\n\t\t\t\t\tdocFrag = document.createDocumentFragment();\n\n\t\t\t\targArr.forEach(function(argItem) {\n\t\t\t\t\tvar isNode = argItem instanceof Node;\n\t\t\t\t\tdocFrag.appendChild(\n\t\t\t\t\t\tisNode ? argItem : document.createTextNode(String(argItem)),\n\t\t\t\t\t);\n\t\t\t\t});\n\n\t\t\t\tthis.appendChild(docFrag);\n\t\t\t},\n\t\t});\n\t});\n})([Element.prototype, Document.prototype, DocumentFragment.prototype]);\n","if (!Element.prototype.matches) {\n\tElement.prototype.matches =\n\t\tElement.prototype.msMatchesSelector ||\n\t\tElement.prototype.webkitMatchesSelector;\n}\n\nif (!Element.prototype.closest) {\n\tElement.prototype.closest = function(s) {\n\t\tvar el = this;\n\n\t\tdo {\n\t\t\tif (el.matches(s)) return el;\n\t\t\tel = el.parentElement || el.parentNode;\n\t\t} while (el !== null && el.nodeType === 1);\n\t\treturn null;\n\t};\n}\n","// https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver\n(function(undefined) {\n\t!(function(t, e) {\n\t\t\"use strict\";\n\t\tfunction n(t) {\n\t\t\t(this.time = t.time),\n\t\t\t\t(this.target = t.target),\n\t\t\t\t(this.rootBounds = t.rootBounds),\n\t\t\t\t(this.boundingClientRect = t.boundingClientRect),\n\t\t\t\t(this.intersectionRect = t.intersectionRect || a());\n\t\t\ttry {\n\t\t\t\tthis.isIntersecting = !!t.intersectionRect;\n\t\t\t} catch (r) {}\n\t\t\tvar e = this.boundingClientRect,\n\t\t\t\tn = e.width * e.height,\n\t\t\t\to = this.intersectionRect,\n\t\t\t\ti = o.width * o.height;\n\t\t\tthis.intersectionRatio = n ? i / n : this.isIntersecting ? 1 : 0;\n\t\t}\n\t\tfunction o(t, e) {\n\t\t\tvar n = e || {};\n\t\t\tif (\"function\" != typeof t)\n\t\t\t\tthrow new Error(\"callback must be a function\");\n\t\t\tif (n.root && 1 != n.root.nodeType)\n\t\t\t\tthrow new Error(\"root must be an Element\");\n\t\t\t(this._checkForIntersections = r(\n\t\t\t\tthis._checkForIntersections.bind(this),\n\t\t\t\tthis.THROTTLE_TIMEOUT\n\t\t\t)),\n\t\t\t\t(this._callback = t),\n\t\t\t\t(this._observationTargets = []),\n\t\t\t\t(this._queuedEntries = []),\n\t\t\t\t(this._rootMarginValues = this._parseRootMargin(n.rootMargin)),\n\t\t\t\t(this.thresholds = this._initThresholds(n.threshold)),\n\t\t\t\t(this.root = n.root || null),\n\t\t\t\t(this.rootMargin = this._rootMarginValues\n\t\t\t\t\t.map(function(t) {\n\t\t\t\t\t\treturn t.value + t.unit;\n\t\t\t\t\t})\n\t\t\t\t\t.join(\" \"));\n\t\t}\n\t\tfunction i() {\n\t\t\treturn t.performance && performance.now && performance.now();\n\t\t}\n\t\tfunction r(t, e) {\n\t\t\tvar n = null;\n\t\t\treturn function() {\n\t\t\t\tn ||\n\t\t\t\t\t(n = setTimeout(function() {\n\t\t\t\t\t\tt(), (n = null);\n\t\t\t\t\t}, e));\n\t\t\t};\n\t\t}\n\t\tfunction s(t, e, n, o) {\n\t\t\t\"function\" == typeof t.addEventListener\n\t\t\t\t? t.addEventListener(e, n, o || !1)\n\t\t\t\t: \"function\" == typeof t.attachEvent && t.attachEvent(\"on\" + e, n);\n\t\t}\n\t\tfunction h(t, e, n, o) {\n\t\t\t\"function\" == typeof t.removeEventListener\n\t\t\t\t? t.removeEventListener(e, n, o || !1)\n\t\t\t\t: \"function\" == typeof t.detatchEvent && t.detatchEvent(\"on\" + e, n);\n\t\t}\n\t\tfunction c(t, e) {\n\t\t\tvar n = Math.max(t.top, e.top),\n\t\t\t\to = Math.min(t.bottom, e.bottom),\n\t\t\t\ti = Math.max(t.left, e.left),\n\t\t\t\tr = Math.min(t.right, e.right),\n\t\t\t\ts = r - i,\n\t\t\t\th = o - n;\n\t\t\treturn (\n\t\t\t\ts >= 0 &&\n\t\t\t\th >= 0 && {top: n, bottom: o, left: i, right: r, width: s, height: h}\n\t\t\t);\n\t\t}\n\t\tfunction u(t) {\n\t\t\tvar e;\n\t\t\ttry {\n\t\t\t\te = t.getBoundingClientRect();\n\t\t\t} catch (n) {}\n\t\t\treturn e\n\t\t\t\t? ((e.width && e.height) ||\n\t\t\t\t\t\t(e = {\n\t\t\t\t\t\t\ttop: e.top,\n\t\t\t\t\t\t\tright: e.right,\n\t\t\t\t\t\t\tbottom: e.bottom,\n\t\t\t\t\t\t\tleft: e.left,\n\t\t\t\t\t\t\twidth: e.right - e.left,\n\t\t\t\t\t\t\theight: e.bottom - e.top\n\t\t\t\t\t\t}),\n\t\t\t\t e)\n\t\t\t\t: a();\n\t\t}\n\t\tfunction a() {\n\t\t\treturn {top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0};\n\t\t}\n\t\tfunction l(t, e) {\n\t\t\tfor (var n = e; n; ) {\n\t\t\t\tif (n == t) return !0;\n\t\t\t\tn = p(n);\n\t\t\t}\n\t\t\treturn !1;\n\t\t}\n\t\tfunction p(t) {\n\t\t\tvar e = t.parentNode;\n\t\t\treturn e && 11 == e.nodeType && e.host ? e.host : e;\n\t\t}\n\t\tif (\n\t\t\t!(\n\t\t\t\t\"IntersectionObserver\" in t &&\n\t\t\t\t\"IntersectionObserverEntry\" in t &&\n\t\t\t\t\"intersectionRatio\" in t.IntersectionObserverEntry.prototype\n\t\t\t)\n\t\t) {\n\t\t\tvar f = [];\n\t\t\t(o.prototype.THROTTLE_TIMEOUT = 100),\n\t\t\t\t(o.prototype.POLL_INTERVAL = null),\n\t\t\t\t(o.prototype.observe = function(t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t!this._observationTargets.some(function(e) {\n\t\t\t\t\t\t\treturn e.element == t;\n\t\t\t\t\t\t})\n\t\t\t\t\t) {\n\t\t\t\t\t\tif (!t || 1 != t.nodeType)\n\t\t\t\t\t\t\tthrow new Error(\"target must be an Element\");\n\t\t\t\t\t\tthis._registerInstance(),\n\t\t\t\t\t\t\tthis._observationTargets.push({element: t, entry: null}),\n\t\t\t\t\t\t\tthis._monitorIntersections();\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\t(o.prototype.unobserve = function(t) {\n\t\t\t\t\t(this._observationTargets = this._observationTargets.filter(function(\n\t\t\t\t\t\te\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn e.element != t;\n\t\t\t\t\t})),\n\t\t\t\t\t\tthis._observationTargets.length ||\n\t\t\t\t\t\t\t(this._unmonitorIntersections(), this._unregisterInstance());\n\t\t\t\t}),\n\t\t\t\t(o.prototype.disconnect = function() {\n\t\t\t\t\t(this._observationTargets = []),\n\t\t\t\t\t\tthis._unmonitorIntersections(),\n\t\t\t\t\t\tthis._unregisterInstance();\n\t\t\t\t}),\n\t\t\t\t(o.prototype.takeRecords = function() {\n\t\t\t\t\tvar t = this._queuedEntries.slice();\n\t\t\t\t\treturn (this._queuedEntries = []), t;\n\t\t\t\t}),\n\t\t\t\t(o.prototype._initThresholds = function(t) {\n\t\t\t\t\tvar e = t || [0];\n\t\t\t\t\treturn (\n\t\t\t\t\t\tArray.isArray(e) || (e = [e]),\n\t\t\t\t\t\te.sort().filter(function(t, e, n) {\n\t\t\t\t\t\t\tif (\"number\" != typeof t || isNaN(t) || t < 0 || t > 1)\n\t\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t\t\"threshold must be a number between 0 and 1 inclusively\"\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn t !== n[e - 1];\n\t\t\t\t\t\t})\n\t\t\t\t\t);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._parseRootMargin = function(t) {\n\t\t\t\t\tvar e = t || \"0px\",\n\t\t\t\t\t\tn = e.split(/\\s+/).map(function(t) {\n\t\t\t\t\t\t\tvar e = /^(-?\\d*\\.?\\d+)(px|%)$/.exec(t);\n\t\t\t\t\t\t\tif (!e)\n\t\t\t\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t\t\t\"rootMargin must be specified in pixels or percent\"\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\treturn {value: parseFloat(e[1]), unit: e[2]};\n\t\t\t\t\t\t});\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(n[1] = n[1] || n[0]),\n\t\t\t\t\t\t(n[2] = n[2] || n[0]),\n\t\t\t\t\t\t(n[3] = n[3] || n[1]),\n\t\t\t\t\t\tn\n\t\t\t\t\t);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._monitorIntersections = function() {\n\t\t\t\t\tthis._monitoringIntersections ||\n\t\t\t\t\t\t((this._monitoringIntersections = !0),\n\t\t\t\t\t\tthis._checkForIntersections(),\n\t\t\t\t\t\tthis.POLL_INTERVAL\n\t\t\t\t\t\t\t? (this._monitoringInterval = setInterval(\n\t\t\t\t\t\t\t\t\tthis._checkForIntersections,\n\t\t\t\t\t\t\t\t\tthis.POLL_INTERVAL\n\t\t\t\t\t\t\t ))\n\t\t\t\t\t\t\t: (s(t, \"resize\", this._checkForIntersections, !0),\n\t\t\t\t\t\t\t s(e, \"scroll\", this._checkForIntersections, !0),\n\t\t\t\t\t\t\t \"MutationObserver\" in t &&\n\t\t\t\t\t\t\t\t\t((this._domObserver = new MutationObserver(\n\t\t\t\t\t\t\t\t\t\tthis._checkForIntersections\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\tthis._domObserver.observe(e, {\n\t\t\t\t\t\t\t\t\t\tattributes: !0,\n\t\t\t\t\t\t\t\t\t\tchildList: !0,\n\t\t\t\t\t\t\t\t\t\tcharacterData: !0,\n\t\t\t\t\t\t\t\t\t\tsubtree: !0\n\t\t\t\t\t\t\t\t\t}))));\n\t\t\t\t}),\n\t\t\t\t(o.prototype._unmonitorIntersections = function() {\n\t\t\t\t\tthis._monitoringIntersections &&\n\t\t\t\t\t\t((this._monitoringIntersections = !1),\n\t\t\t\t\t\tclearInterval(this._monitoringInterval),\n\t\t\t\t\t\t(this._monitoringInterval = null),\n\t\t\t\t\t\th(t, \"resize\", this._checkForIntersections, !0),\n\t\t\t\t\t\th(e, \"scroll\", this._checkForIntersections, !0),\n\t\t\t\t\t\tthis._domObserver &&\n\t\t\t\t\t\t\t(this._domObserver.disconnect(), (this._domObserver = null)));\n\t\t\t\t}),\n\t\t\t\t(o.prototype._checkForIntersections = function() {\n\t\t\t\t\tvar t = this._rootIsInDom(),\n\t\t\t\t\t\te = t ? this._getRootRect() : a();\n\t\t\t\t\tthis._observationTargets.forEach(function(o) {\n\t\t\t\t\t\tvar r = o.element,\n\t\t\t\t\t\t\ts = u(r),\n\t\t\t\t\t\t\th = this._rootContainsTarget(r),\n\t\t\t\t\t\t\tc = o.entry,\n\t\t\t\t\t\t\ta = t && h && this._computeTargetAndRootIntersection(r, e),\n\t\t\t\t\t\t\tl = (o.entry = new n({\n\t\t\t\t\t\t\t\ttime: i(),\n\t\t\t\t\t\t\t\ttarget: r,\n\t\t\t\t\t\t\t\tboundingClientRect: s,\n\t\t\t\t\t\t\t\trootBounds: e,\n\t\t\t\t\t\t\t\tintersectionRect: a\n\t\t\t\t\t\t\t}));\n\t\t\t\t\t\tc\n\t\t\t\t\t\t\t? t && h\n\t\t\t\t\t\t\t\t? this._hasCrossedThreshold(c, l) && this._queuedEntries.push(l)\n\t\t\t\t\t\t\t\t: c && c.isIntersecting && this._queuedEntries.push(l)\n\t\t\t\t\t\t\t: this._queuedEntries.push(l);\n\t\t\t\t\t}, this),\n\t\t\t\t\t\tthis._queuedEntries.length &&\n\t\t\t\t\t\t\tthis._callback(this.takeRecords(), this);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._computeTargetAndRootIntersection = function(n, o) {\n\t\t\t\t\tif (\"none\" != t.getComputedStyle(n).display) {\n\t\t\t\t\t\tfor (var i = u(n), r = i, s = p(n), h = !1; !h; ) {\n\t\t\t\t\t\t\tvar a = null,\n\t\t\t\t\t\t\t\tl = 1 == s.nodeType ? t.getComputedStyle(s) : {};\n\t\t\t\t\t\t\tif (\"none\" == l.display) return;\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(s == this.root || s == e\n\t\t\t\t\t\t\t\t\t? ((h = !0), (a = o))\n\t\t\t\t\t\t\t\t\t: s != e.body &&\n\t\t\t\t\t\t\t\t\t s != e.documentElement &&\n\t\t\t\t\t\t\t\t\t \"visible\" != l.overflow &&\n\t\t\t\t\t\t\t\t\t (a = u(s)),\n\t\t\t\t\t\t\t\ta && !(r = c(a, r)))\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\ts = p(s);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn r;\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\t(o.prototype._getRootRect = function() {\n\t\t\t\t\tvar t;\n\t\t\t\t\tif (this.root) t = u(this.root);\n\t\t\t\t\telse {\n\t\t\t\t\t\tvar n = e.documentElement,\n\t\t\t\t\t\t\to = e.body;\n\t\t\t\t\t\tt = {\n\t\t\t\t\t\t\ttop: 0,\n\t\t\t\t\t\t\tleft: 0,\n\t\t\t\t\t\t\tright: n.clientWidth || o.clientWidth,\n\t\t\t\t\t\t\twidth: n.clientWidth || o.clientWidth,\n\t\t\t\t\t\t\tbottom: n.clientHeight || o.clientHeight,\n\t\t\t\t\t\t\theight: n.clientHeight || o.clientHeight\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\treturn this._expandRectByRootMargin(t);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._expandRectByRootMargin = function(t) {\n\t\t\t\t\tvar e = this._rootMarginValues.map(function(e, n) {\n\t\t\t\t\t\t\treturn \"px\" == e.unit\n\t\t\t\t\t\t\t\t? e.value\n\t\t\t\t\t\t\t\t: (e.value * (n % 2 ? t.width : t.height)) / 100;\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tn = {\n\t\t\t\t\t\t\ttop: t.top - e[0],\n\t\t\t\t\t\t\tright: t.right + e[1],\n\t\t\t\t\t\t\tbottom: t.bottom + e[2],\n\t\t\t\t\t\t\tleft: t.left - e[3]\n\t\t\t\t\t\t};\n\t\t\t\t\treturn (n.width = n.right - n.left), (n.height = n.bottom - n.top), n;\n\t\t\t\t}),\n\t\t\t\t(o.prototype._hasCrossedThreshold = function(t, e) {\n\t\t\t\t\tvar n = t && t.isIntersecting ? t.intersectionRatio || 0 : -1,\n\t\t\t\t\t\to = e.isIntersecting ? e.intersectionRatio || 0 : -1;\n\t\t\t\t\tif (n !== o)\n\t\t\t\t\t\tfor (var i = 0; i < this.thresholds.length; i++) {\n\t\t\t\t\t\t\tvar r = this.thresholds[i];\n\t\t\t\t\t\t\tif (r == n || r == o || r < n != r < o) return !0;\n\t\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\t(o.prototype._rootIsInDom = function() {\n\t\t\t\t\treturn !this.root || l(e, this.root);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._rootContainsTarget = function(t) {\n\t\t\t\t\treturn l(this.root || e, t);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._registerInstance = function() {\n\t\t\t\t\tf.indexOf(this) < 0 && f.push(this);\n\t\t\t\t}),\n\t\t\t\t(o.prototype._unregisterInstance = function() {\n\t\t\t\t\tvar t = f.indexOf(this);\n\t\t\t\t\t-1 != t && f.splice(t, 1);\n\t\t\t\t}),\n\t\t\t\t(t.IntersectionObserver = o),\n\t\t\t\t(t.IntersectionObserverEntry = n);\n\t\t}\n\t})(window, document);\n}.call(\n\t(\"object\" === typeof window && window) ||\n\t\t(\"object\" === typeof self && self) ||\n\t\t(\"object\" === typeof global && global) ||\n\t\t{}\n));\n","import \"objectFitPolyfill\";\nimport { gtmCustomEventPush, EVENTS } from \"./analytics\";\nimport Bowser from \"bowser\";\n\n// ############ Start - Sentry Integration ###############\n\n// import * as Sentry from \"@sentry/browser\";\n// import { Vue as SentryVueIntegration } from \"@sentry/integrations\";\n//\n// export const getSentryEnv = () => {\n// switch (location.hostname) {\n// case \"www.lodgecastiron.com\":\n// return \"production\";\n// case \"stage.acquia.lodgecastiron.com\":\n// return \"staging\";\n// case \"dev.acquia.lodgecastiron.com\":\n// return \"dev\";\n// default:\n// return \"unknown\";\n// }\n// };\n// let sentryHasInititated = false;\n// export const initSentry = (Vue) => {\n// let environment = getSentryEnv();\n// if (environment == \"unknown\") {\n// return console.info(\n// `Unknown Sentry environment, ${location.hostname}, not initiating Sentry reporting.`,\n// );\n// }\n// if (sentryHasInititated) {\n// return console.error(\"Sentry as already been initiated.\");\n// }\n// sentryHasInititated = true;\n// Sentry.init({\n// dsn: \"https://a3f5d17337794d00a2fcec782bf2dc59@sentry.io/3826867\",\n// integrations: !!Vue\n// ? [new SentryVueIntegration({ Vue, attachProps: true, logErrors: false })]\n// : [],\n// environment,\n// });\n// console.log(`Sentry initiated on ${getSentryEnv()}`);\n// };\n\n// ############ End - Sentry Integration ###############\n\nexport const DESKTOP_SIZE = 992; // >= 992\nexport const TABLET_SIZE = 768; // =< 991\nexport const isLayoutPage = !!document.querySelector(\n\t\"#layout-builder\",\n\t\".node-page-layout-builder-form\",\n);\nexport const THEME_PATH = \"/themes/custom/tombras\";\nexport const DRUPAL_API = \"/api/lodge\";\nexport const GOOGLE_MAPS_KEY = ``;\n/**\n * Helps keep track of component versions\n * @param {string} component\n * @param {string} version\n */\nexport const componentVersion = (component, version = \"WIP\") =>\n\tconsole.log(`${component} - ${version}`);\n\n/**\n * Limits the invocations of a function in a given time frame.\n *\n * The debounce function wrapper should be used sparingly. One clear use case\n * is limiting the invocation of a callback attached to the window resize event.\n *\n * Before using the debounce function wrapper, consider first whether the\n * callback could be attached to an event that fires less frequently or if the\n * function can be written in such a way that it is only invoked under specific\n * conditions.\n *\n * @param {function} func\n * The function to be invoked.\n * @param {number} wait\n * The time period within which the callback function should only be\n * invoked once. For example if the wait period is 250ms, then the callback\n * will only be called at most 4 times per second.\n * @param {boolean} [immediate]\n * Whether we wait at the beginning or end to execute the function.\n *\n * @return {function}\n * The debounced function.\n */\nexport const debounce = (func, wait, immediate) => {\n\tlet timeout;\n\tlet result;\n\treturn function (...args) {\n\t\tconst context = this;\n\t\tconst later = function () {\n\t\t\ttimeout = null;\n\t\t\tif (!immediate) {\n\t\t\t\tresult = func.apply(context, args);\n\t\t\t}\n\t\t};\n\t\tconst callNow = immediate && !timeout;\n\t\tclearTimeout(timeout);\n\t\ttimeout = setTimeout(later, wait);\n\t\tif (callNow) {\n\t\t\tresult = func.apply(context, args);\n\t\t}\n\t\treturn result;\n\t};\n};\n\n/**\n * throttle func is called once per duration\n * @param func\n * @param duration\n * @returns {(function(...[*]=): void)|*}\n */\nexport const throttle = (func, duration) => {\n\tlet shouldWait = false;\n\treturn function (...args) {\n\t\tconst context = this;\n\t\tif (!shouldWait) {\n\t\t\tconsole.log(\"running leading function\", args);\n\t\t\tfunc.apply(context, args)\n\t\t\tshouldWait = true\n\t\t\tsetTimeout(function () {\n\t\t\t\tshouldWait = false;\n\t\t\t\tconsole.log(\"running trailing function\", args);\n\t\t\t\tfunc.apply(context, args);\n\t\t\t}, duration)\n\t\t}\n\t}\n}\n\n/**\n * Various Bowser utils\n */\nconst parser = Bowser.getParser(window.navigator.userAgent);\nexport const isMobile = () => {\n\tconst OS = parser.getOS().name;\n\tconsole.log(OS);\n\treturn [\"android\", \"ios\", \"ipados\"].indexOf(OS.toLowerCase()) >= 0;\n};\nexport const isIE = () => {\n\tconst browser = parser.getResult();\n\tconsole.log(\"browser name\", browser);\n\treturn browser.browser.name.toLowerCase() === \"internet explorer\";\n};\n\nexport const qs = (selector, el = document) => el.querySelector(selector);\nexport const qsa = (selector, el = document) => el.querySelectorAll(selector);\nexport const LEFT = \"LEFT\";\nexport const RIGHT = \"RIGHT\";\n\nexport const callFnIfEnterKeyWasPressed = (fn) => (e) => {\n\tif (e.keyCode === 13) fn();\n};\n\nexport function getUrlParameter(name) {\n\tname = name.replace(/[\\[]/, \"\\\\[\").replace(/[\\]]/, \"\\\\]\");\n\tvar regex = new RegExp(\"[\\\\?&]\" + name + \"=([^&#]*)\");\n\tvar results = regex.exec(location.search);\n\treturn results === null\n\t\t? \"\"\n\t\t: decodeURIComponent(results[1].replace(/\\+/g, \" \"));\n}\n\nexport const queryParams = (locationSearch = window.location.search) =>\n\tlocationSearch\n\t\t.substr(1)\n\t\t.split(\"&\")\n\t\t.reduce(\n\t\t\t(acc, curr) =>\n\t\t\t\tObject.assign(\n\t\t\t\t\tacc,\n\t\t\t\t\t(curr.indexOf(\"=\") !== -1 ? curr : `${curr}=`)\n\t\t\t\t\t\t.split(\"=\")\n\t\t\t\t\t\t.reduce((acc, curr) => ({ [acc]: decodeURIComponent(curr) })),\n\t\t\t\t),\n\t\t\t{},\n\t\t);\nexport const createComponent = (selector, theClass) => {\n\treturn [...qsa(selector)].map((el) => new theClass(el));\n};\n\nexport const handleBackButtons = (selector) => {\n\t[...qsa(selector)].forEach((el) => {\n\t\tel.addEventListener(\"click\", history.back);\n\t\tel.addEventListener(\"keydown\", callFnIfEnterKeyWasPressed(history.back));\n\t});\n};\n\nexport const handlePrintButtons = (selector) => {\n\t[...qsa(selector)].forEach((el) => {\n\t\tel.addEventListener(\"click\", () => {\n\t\t\twindow.print();\n\t\t});\n\t\tel.addEventListener(\n\t\t\t\"keydown\",\n\t\t\tcallFnIfEnterKeyWasPressed(() => {\n\t\t\t\twindow.print();\n\t\t\t}),\n\t\t);\n\t});\n};\n\nexport const validProductProperties = [\n\t\"Material\",\n\t\"Type\",\n\t\"Color\",\n\t\"Size\",\n\t\"Shape\",\n\t\"Collection\",\n\t\"Sale\",\n];\n\nexport const objectFitForIE = () => {\n\tif (isIE()) {\n\t\tconst images = [\n\t\t\t\".fifty-fifty-carousel img\",\n\t\t\t\".hero-block .image-holder img\",\n\t\t\t\".hero-block video\",\n\t\t\t\".product-viewer .image-holder img\",\n\t\t\t\".call-to-action img\",\n\t\t\t// \".author-credits img\",\n\t\t\t\".parallax-image .image-wrapper img\",\n\t\t\t// \".half-large-image--imagery-area .special-image.image-holder img\",\n\t\t\t\".half-large-image--imagery-area .card .image-holder img\",\n\t\t\t\".object-fit-cover\",\n\t\t\t// \".menu--dropdown .promo img\",\n\t\t];\n\t\tobjectFitPolyfill(document.querySelectorAll(images.join(\",\")));\n\t}\n};\n\nexport const chatNowBtn = () => {\n\tconst chats = document.querySelectorAll(\".btn-chat-now\");\n\t[...chats].forEach((el) =>\n\t\tel.addEventListener(\"click\", (e) => {\n\t\t\te.preventDefault();\n\n\t\t\tif (embedded_svc) {\n\t\t\t\tembedded_svc.onHelpButtonClick();\n\t\t\t\tgtmCustomEventPush({\n\t\t\t\t\tevent: EVENTS.STANDALONE_CHAT_NOW,\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tgtmCustomEventPush({\n\t\t\t\t\tevent: EVENTS.STANDALONE_CHAT_NOW,\n\t\t\t\t\tvalue: \"Not loaded\",\n\t\t\t\t});\n\t\t\t}\n\t\t}),\n\t);\n};\n\nexport const luma = (hex) => {\n\t// source: https://stackoverflow.com/a/12043228\n\tconst c = hex.substring(1); // strip #\n\tconst rgb = parseInt(c, 16); // convert rrggbb to decimal\n\tconst r = (rgb >> 16) & 0xff; // extract red\n\tconst g = (rgb >> 8) & 0xff; // extract green\n\tconst b = (rgb >> 0) & 0xff; // extract blue\n\treturn 0.2126 * r + 0.7152 * g + 0.0722 * b; // per ITU-R BT.709\n};\n\nexport const getSwatchOrColor = (color) => {\n\treturn !color.swatch ? color.hex : `url(${color.swatch})`;\n};\n\nexport const getProductColorBorderColor = (color, defaultColor = \"#ccc\") => {\n\treturn color.indexOf(\"#\") !== 0\n\t\t? defaultColor\n\t\t: luma(color) < 205\n\t\t? color\n\t\t: \"#ccc\";\n};\n\nexport const playMobileFullscreenHelper = (\n\tstream,\n\tidentifier = \"unidentified stream\",\n) => {\n\tconsole.log(\"playing mobile fullscreen\", this.stream);\n\tstream.play();\n\t// try {\n\t// \tstream.webkitEnterFullScreen();\n\t// } catch (err) {\n\t// \tconsole.warn(`${identifier} - stream:`, err);\n\t// \ttry {\n\t// \t\tconst innerVideo = stream.querySelector(\"video\");\n\t// \t\tconsole.log(innerVideo);\n\t// \t\tinnerVideo.webkitEnterFullscreen();\n\t// \t} catch (err) {\n\t// \t\tconsole.warn(`${identifier} - direct 2 video:`, err);\n\t// \t\tstream.pause();\n\t// \t}\n\t// }\n};\n\nexport const addNewBadgeToRecipes = () => {\n\tconst createdDates = [...document.querySelectorAll(\"[data-created-date]\")];\n\tconst today = new Date();\n\tcreatedDates.forEach((el) => {\n\t\tconst daysSincePosting =\n\t\t\t(today - new Date(el.getAttribute(\"data-created-date\"))) /\n\t\t\t1000 /\n\t\t\t60 /\n\t\t\t60 /\n\t\t\t24;\n\t\tif (daysSincePosting < 14) {\n\t\t\tconst inner = el.querySelector(\"span\") || el;\n\t\t\tinner.innerHTML = \"New Recipe!\";\n\t\t\tel.removeAttribute(\"aria-hidden\");\n\t\t\tel.classList.remove(\"visually-hidden\");\n\t\t}\n\t});\n};\n\nexport const copyBlockID = (e) => {\n\tconst uuid = e.target.getAttribute(\"data-copy-uuid\");\n\n\tnavigator.clipboard\n\t\t.writeText(uuid)\n\t\t.then(() => {\n\t\t\te.target.innerText = \"Copied!\";\n\t\t})\n\t\t.catch(() => {\n\t\t\te.target.innerText = \"Click again\";\n\t\t});\n};\n\n/**\n *\n * @param items {Array}\n * @param size {Number}\n */\nexport function chunk (items, size) {\n\tconst chunks = []\n\titems = [].concat(...items)\n\n\twhile (items.length) {\n\t\tchunks.push(\n\t\t\titems.splice(0, size)\n\t\t)\n\t}\n\n\treturn chunks\n}\n\n/**\n * Set equal heights of components\n * @param src string | class name\n */\nexport const equalHeights = (() => {\n\tconst _self = {};\n\tlet _elements = [];\n\n const resetHeight = () => {\n\t\treturn new Promise((resolve) => {\n\t\t\t_elements.slice(0).forEach((el) => {\n\t\t\t\tel.setAttribute('style', 'position: relative; height: auto');\n\t\t\t});\n\t\t\tresolve();\n\t\t});\n }\n\n const setHeight = (hgt) => {\n _elements.slice(0).forEach((el) => {\n el.setAttribute('style', 'position: relative; height: 100%; min-height: ' + hgt + 'px');\n });\n }\n\n const getTallestElement = () => {\n\t\treturn new Promise((resolve) => {\n\t\t\tconst tallest = _elements.slice(0).map((el) => el.offsetHeight)\n\t\t\t.reduce((previousHgt, currentHgt) => (currentHgt > previousHgt) ? currentHgt : previousHgt, 0);\n\t\t\tresolve(tallest);\n\t\t});\n };\n\n _self.reset = async (src) => {\n _elements = [...document.querySelectorAll(src)];\n\t\tawait resetHeight();\n };\n\n _self.set = async (src) => {\n _elements = [...document.querySelectorAll(src)];\n\t\tawait resetHeight();\n\t\tconst tallest = await getTallestElement();\n setHeight(tallest);\n };\n\n\treturn _self;\n})();\n","/*!\n * VelocityTracker: 3.9.1\n * https://greensock.com\n *\n * Copyright 2008-2021, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n/* eslint-disable */\n\nlet gsap, _coreInitted, _toArray, _getUnit, _first, _ticker, _time1, _time2, _getCache,\n\t_getGSAP = () => gsap || typeof(window) !== \"undefined\" && (gsap = window.gsap),\n\t_lookup = {},\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_getID = target => _getCache(target).id,\n\t_getByTarget = target => _lookup[_getID(typeof(target) === \"string\" ? _toArray(target)[0] : target)],\n\t_onTick = (time) => {\n\t\tlet pt = _first,\n\t\t\tval;\n\t\t//if the frame rate is too high, we won't be able to track the velocity as well, so only update the values about 20 times per second\n\t\tif (time - _time1 >= 0.05) {\n\t\t\t_time2 = _time1;\n\t\t\t_time1 = time;\n\t\t\twhile (pt) {\n\t\t\t\tval = pt.g(pt.t, pt.p);\n\t\t\t\tif (val !== pt.v1 || time - pt.t1 > 0.2) { //use a threshold of 0.2 seconds for zeroing-out velocity. If we only use 0.05 and things update slightly slower, like some Android devices dispatch \"touchmove\" events sluggishly so 2 or 3 ticks of the gsap.ticker may elapse inbetween, thus it may appear like the object is not moving but it actually is but it's not updating as frequently. A threshold of 0.2 seconds seems to be a good balance. We want to update things frequently (0.05 seconds) when they're moving so that we can respond to fast motions accurately, but we want to be more resistant to go back to a zero velocity.\n\t\t\t\t\tpt.v2 = pt.v1;\n\t\t\t\t\tpt.v1 = val;\n\t\t\t\t\tpt.t2 = pt.t1;\n\t\t\t\t\tpt.t1 = time;\n\t\t\t\t}\n\t\t\t\tpt = pt._next;\n\t\t\t}\n\t\t}\n\t},\n\t_types = {deg: 360, rad: Math.PI * 2},\n\n\t_initCore = () => {\n\t\tgsap = _getGSAP();\n\t\tif (gsap) {\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\t_getUnit = gsap.utils.getUnit;\n\t\t\t_getCache = gsap.core.getCache;\n\t\t\t_ticker = gsap.ticker;\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\nclass PropTracker {\n\n\tconstructor(target, property, type, next) {\n\t\tthis.t = target;\n\t\tthis.p = property;\n\t\tthis.g = target._gsap.get;\n\t\tthis.rCap = _types[type || _getUnit(this.g(target, property))]; //rotational cap (for degrees, \"deg\", it's 360 and for radians, \"rad\", it's Math.PI * 2)\n\t\tthis.v1 = this.v2 = 0;\n\t\tthis.t1 = this.t2 = _ticker.time;\n\t\tif (next) {\n\t\t\tthis._next = next;\n\t\t\tnext._prev = this;\n\t\t}\n\t}\n\n}\n\nexport class VelocityTracker {\n\n\tconstructor(target, property) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tthis.target = _toArray(target)[0];\n\t\t_lookup[_getID(this.target)] = this;\n\t\tthis._props = {};\n\t\tproperty && this.add(property);\n\t}\n\n\tstatic register(core) {\n\t\tgsap = core;\n\t\t_initCore();\n\t}\n\n\tget(property, skipRecentTick) {\n\t\tlet pt = this._props[property] || console.warn(\"Not tracking \" + property + \" velocity.\"),\n\t\t\tval, dif, rotationCap;\n\t\tval = parseFloat(skipRecentTick ? pt.v1 : pt.g(pt.t, pt.p));\n\t\tdif = (val - parseFloat(pt.v2));\n\t\trotationCap = pt.rCap;\n\t\tif (rotationCap) { //rotational values need special interpretation so that if, for example, they go from 179 to -178 degrees it is interpreted as a change of 3 instead of -357.\n\t\t\tdif = dif % rotationCap;\n\t\t\tif (dif !== dif % (rotationCap / 2)) {\n\t\t\t\tdif = (dif < 0) ? dif + rotationCap : dif - rotationCap;\n\t\t\t}\n\t\t}\n\t\treturn _round(dif / ((skipRecentTick ? pt.t1 : _ticker.time) - pt.t2));\n\t}\n\n\tgetAll() {\n\t\tlet result = {},\n\t\t\tprops = this._props,\n\t\t\tp;\n\t\tfor (p in props) {\n\t\t\tresult[p] = this.get(p);\n\t\t}\n\t\treturn result;\n\t}\n\n\tisTracking(property) {\n\t\treturn (property in this._props);\n\t}\n\n\tadd(property, type) {\n\t\tif (!(property in this._props)) {\n\t\t\tif (!_first) {\n\t\t\t\t_ticker.add(_onTick);\n\t\t\t\t_time1 = _time2 = _ticker.time;\n\t\t\t}\n\t\t\t_first = this._props[property] = new PropTracker(this.target, property, type, _first);\n\t\t}\n\t}\n\n\tremove(property) {\n\t\tlet pt = this._props[property],\n\t\t\tprev, next;\n\t\tif (pt) {\n\t\t\tprev = pt._prev;\n\t\t\tnext = pt._next;\n\t\t\tif (prev) {\n\t\t\t\tprev._next = next;\n\t\t\t}\n\t\t\tif (next) {\n\t\t\t\tnext._prev = prev;\n\t\t\t} else if (_first === pt) {\n\t\t\t\t_ticker.remove(_onTick);\n\t\t\t\t_first = 0;\n\t\t\t}\n\t\t\tdelete this._props[property];\n\t\t}\n\t}\n\n\tkill(shallow) {\n\t\tfor (let p in this._props) {\n\t\t\tthis.remove(p);\n\t\t}\n\t\tif (!shallow) {\n\t\t\tdelete _lookup[_getID(this.target)];\n\t\t}\n\t}\n\n\tstatic track(targets, properties, types) {\n\t\tif (!_coreInitted) {\n\t\t\t_initCore();\n\t\t}\n\t\tlet result = [],\n\t\t\ttargs = _toArray(targets),\n\t\t\ta = properties.split(\",\"),\n\t\t\tt = (types || \"\").split(\",\"),\n\t\t\ti = targs.length,\n\t\t\ttracker, j;\n\t\twhile (i--) {\n\t\t\ttracker = _getByTarget(targs[i]) || new VelocityTracker(targs[i]);\n\t\t\tj = a.length;\n\t\t\twhile (j--) {\n\t\t\t\ttracker.add(a[j], t[j] || t[0]);\n\t\t\t}\n\t\t\tresult.push(tracker);\n\t\t}\n\t\treturn result;\n\t}\n\n\tstatic untrack(targets, properties) {\n\t\tlet props = (properties || \"\").split(\",\");\n\t\t_toArray(targets).forEach(target => {\n\t\t\tlet tracker = _getByTarget(target);\n\t\t\tif (tracker) {\n\t\t\t\tif (!props.length) {\n\t\t\t\t\ttracker.kill(1);\n\t\t\t\t} else {\n\t\t\t\t\tprops.forEach(p => tracker.remove(p));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}\n\n\tstatic isTracking(target, property) {\n\t\tlet tracker = _getByTarget(target);\n\t\treturn tracker && tracker.isTracking(property);\n\t}\n\n\tstatic getVelocity(target, property) {\n\t\tlet tracker = _getByTarget(target);\n\t\treturn (!tracker || !tracker.isTracking(property)) ? console.warn(\"Not tracking velocity of \" + property) : tracker.get(property);\n\t}\n}\n\nVelocityTracker.getByTarget = _getByTarget;\n\n\n_getGSAP() && gsap.registerPlugin(VelocityTracker);\n\nexport { VelocityTracker as default };","/*!\n * InertiaPlugin 3.9.1\n * https://greensock.com\n *\n * @license Copyright 2008-2021, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n/* eslint-disable */\n\nimport { VelocityTracker } from \"./utils/VelocityTracker.js\";\n\nlet gsap, _coreInitted, _parseEase, _toArray, _power3, _config, _getUnit, PropTween, _getCache,\t_checkPointRatio, _clamp, _processingVars,\n\t_getTracker = VelocityTracker.getByTarget,\n\t_getGSAP = () => gsap || (typeof(window) !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap),\n\t_isString = value => typeof(value) === \"string\",\n\t_isNumber = value => typeof(value) === \"number\",\n\t_isObject = value => typeof(value) === \"object\",\n\t_isFunction = value => typeof(value) === \"function\",\n\t_bonusValidated = 1, //InertiaPlugin\n\t_isArray = Array.isArray,\n\t_emptyFunc = p => p,\n\t_bigNum = 1e10,\n\t_tinyNum = 1 / _bigNum,\n\t_checkPoint = 0.05,\n\t_round = value => Math.round(value * 10000) / 10000,\n\t_extend = (obj, defaults, exclude) => {\n\t\tfor (let p in defaults) {\n\t\t\tif (!(p in obj) && p !== exclude) {\n\t\t\t\tobj[p] = defaults[p];\n\t\t\t}\n\t\t}\n\t\treturn obj;\n\t},\n\t_deepClone = obj => {\n\t\tlet copy = {},\n\t\t\tp, v;\n\t\tfor (p in obj) {\n\t\t\tcopy[p] = _isObject(v = obj[p]) && !_isArray(v) ? _deepClone(v) : v;\n\t\t}\n\t\treturn copy;\n\t},\n\t_getClosest = (n, values, max, min, radius) => {\n\t\tlet i = values.length,\n\t\t\tclosest = 0,\n\t\t\tabsDif = _bigNum,\n\t\t\tval, dif, p, dist;\n\t\tif (_isObject(n)) {\n\t\t\twhile (i--) {\n\t\t\t\tval = values[i];\n\t\t\t\tdif = 0;\n\t\t\t\tfor (p in n) {\n\t\t\t\t\tdist = val[p] - n[p];\n\t\t\t\t\tdif += dist * dist;\n\t\t\t\t}\n\t\t\t\tif (dif < absDif) {\n\t\t\t\t\tclosest = i;\n\t\t\t\t\tabsDif = dif;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((radius || _bigNum) < _bigNum && radius < Math.sqrt(absDif)) {\n\t\t\t\treturn n;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (i--) {\n\t\t\t\tval = values[i];\n\t\t\t\tdif = val - n;\n\t\t\t\tif (dif < 0) {\n\t\t\t\t\tdif = -dif;\n\t\t\t\t}\n\t\t\t\tif (dif < absDif && val >= min && val <= max) {\n\t\t\t\t\tclosest = i;\n\t\t\t\t\tabsDif = dif;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn values[closest];\n\t},\n\t_parseEnd = (curProp, end, max, min, name, radius, velocity) => {\n\t\tif (curProp.end === \"auto\") {\n\t\t\treturn curProp;\n\t\t}\n\t\tlet endVar = curProp.end,\n\t\t\tadjustedEnd, p;\n\t\tmax = isNaN(max) ? _bigNum : max;\n\t\tmin = isNaN(min) ? -_bigNum : min;\n\t\tif (_isObject(end)) { //for objects, like {x, y} where they're linked and we must pass an object to the function or find the closest value in an array.\n\t\t\tadjustedEnd = end.calculated ? end : (_isFunction(endVar) ? endVar(end, velocity) : _getClosest(end, endVar, max, min, radius)) || end;\n\t\t\tif (!end.calculated) {\n\t\t\t\tfor (p in adjustedEnd) {\n\t\t\t\t\tend[p] = adjustedEnd[p];\n\t\t\t\t}\n\t\t\t\tend.calculated = true;\n\t\t\t}\n\t\t\tadjustedEnd = adjustedEnd[name];\n\t\t} else {\n\t\t\tadjustedEnd = _isFunction(endVar) ? endVar(end, velocity) : _isArray(endVar) ? _getClosest(end, endVar, max, min, radius) : parseFloat(endVar);\n\t\t}\n\t\tif (adjustedEnd > max) {\n\t\t\tadjustedEnd = max;\n\t\t} else if (adjustedEnd < min) {\n\t\t\tadjustedEnd = min;\n\t\t}\n\t\treturn {max: adjustedEnd, min: adjustedEnd, unitFactor: curProp.unitFactor};\n\t},\n\t_getNumOrDefault = (vars, property, defaultValue) => isNaN(vars[property]) ? defaultValue : +vars[property],\n\t_calculateChange = (velocity, duration) => (duration * _checkPoint * velocity) / _checkPointRatio,\n\t_calculateDuration = (start, end, velocity) => Math.abs( (end - start) * _checkPointRatio / velocity / _checkPoint ),\n\t_reservedProps = {resistance:1, checkpoint:1, preventOvershoot:1, linkedProps:1, radius:1, duration:1},\n\t_processLinkedProps = (target, vars, getVal, resistance) => {\n\t\tif (vars.linkedProps) { //when there are linkedProps (typically \"x,y\" where snapping has to factor in multiple properties, we must first populate an object with all of those end values, then feed it to the function that make any necessary alterations. So the point of this first loop is to simply build an object (like {x:100, y:204.5}) for feeding into that function which we'll do later in the \"real\" loop.\n\t\t\tlet linkedPropNames = vars.linkedProps.split(\",\"),\n\t\t\t\tlinkedProps = {},\n\t\t\t\ti, p, curProp, curVelocity, tracker, curDuration;\n\t\t\tfor (i = 0; i < linkedPropNames.length; i++) {\n\t\t\t\tp = linkedPropNames[i];\n\t\t\t\tcurProp = vars[p];\n\t\t\t\tif (curProp) {\n\t\t\t\t\tif (_isNumber(curProp.velocity)) {\n\t\t\t\t\t\tcurVelocity = curProp.velocity;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttracker = tracker || _getTracker(target);\n\t\t\t\t\t\tcurVelocity = (tracker && tracker.isTracking(p)) ? tracker.get(p) : 0;\n\t\t\t\t\t}\n\t\t\t\t\tcurDuration = Math.abs(curVelocity / _getNumOrDefault(curProp, \"resistance\", resistance));\n\t\t\t\t\tlinkedProps[p] = parseFloat(getVal(target, p)) + _calculateChange(curVelocity, curDuration);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn linkedProps;\n\t\t}\n\t},\n\t_calculateTweenDuration = (target, vars, maxDuration = 10, minDuration = 0.2, overshootTolerance = 1, recordEnd = 0) => {\n\t\t_isString(target) && (target = _toArray(target)[0]);\n\t\tif (!target) {\n\t\t\treturn 0;\n\t\t}\n\t\tlet duration = 0,\n\t\t\tclippedDuration = _bigNum,\n\t\t\tinertiaVars = vars.inertia || vars,\n\t\t\tgetVal = _getCache(target).get,\n\t\t\tresistance = _getNumOrDefault(inertiaVars, \"resistance\", _config.resistance),\n\t\t\tp, curProp, curDuration, curVelocity, curVal, end, curClippedDuration, tracker, unitFactor, linkedProps;\n\n\t\t//when there are linkedProps (typically \"x,y\" where snapping has to factor in multiple properties, we must first populate an object with all of those end values, then feed it to the function that make any necessary alterations. So the point of this first loop is to simply build an object (like {x:100, y:204.5}) for feeding into that function which we'll do later in the \"real\" loop.\n\t\tlinkedProps = _processLinkedProps(target, inertiaVars, getVal, resistance);\n\n\t\tfor (p in inertiaVars) {\n\n\t\t\tif (!_reservedProps[p]) {\n\t\t\t\tcurProp = inertiaVars[p];\n\t\t\t\tif (!_isObject(curProp)) {\n\t\t\t\t\ttracker = tracker || _getTracker(target);\n\t\t\t\t\tif (tracker && tracker.isTracking(p)) {\n\t\t\t\t\t\tcurProp = _isNumber(curProp) ? {velocity:curProp} : {velocity:tracker.get(p)}; //if we're tracking this property, we should use the tracking velocity and then use the numeric value that was passed in as the min and max so that it tweens exactly there.\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcurVelocity = +curProp || 0;\n\t\t\t\t\t\tcurDuration = Math.abs(curVelocity / resistance);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (_isObject(curProp)) {\n\n\t\t\t\t\tif (_isNumber(curProp.velocity)) {\n\t\t\t\t\t\tcurVelocity = curProp.velocity;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttracker = tracker || _getTracker(target);\n\t\t\t\t\t\tcurVelocity = (tracker && tracker.isTracking(p)) ? tracker.get(p) : 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurDuration = _clamp(minDuration, maxDuration, Math.abs(curVelocity / _getNumOrDefault(curProp, \"resistance\", resistance)));\n\t\t\t\t\tcurVal = parseFloat(getVal(target, p)) || 0;\n\t\t\t\t\tend = curVal + _calculateChange(curVelocity, curDuration);\n\t\t\t\t\tif (\"end\" in curProp) {\n\t\t\t\t\t\tcurProp = _parseEnd(curProp, (linkedProps && p in linkedProps) ? linkedProps : end, curProp.max, curProp.min, p, inertiaVars.radius, curVelocity);\n\t\t\t\t\t\tif (recordEnd) {\n\t\t\t\t\t\t\t(_processingVars === vars) && (_processingVars = inertiaVars = _deepClone(vars));\n\t\t\t\t\t\t\tinertiaVars[p] = _extend(curProp, inertiaVars[p], \"end\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ((\"max\" in curProp) && end > +curProp.max + _tinyNum) {\n\t\t\t\t\t\tunitFactor = curProp.unitFactor || _config.unitFactors[p] || 1; //some values are measured in special units like radians in which case our thresholds need to be adjusted accordingly.\n\t\t\t\t\t\t//if the value is already exceeding the max or the velocity is too low, the duration can end up being uncomfortably long but in most situations, users want the snapping to occur relatively quickly (0.75 seconds), so we implement a cap here to make things more intuitive. If the max and min match, it means we're animating to a particular value and we don't want to shorten the time unless the velocity is really slow. Example: a rotation where the start and natural end value are less than the snapping spot, but the natural end is pretty close to the snap.\n\t\t\t\t\t\tcurClippedDuration = ((curVal > curProp.max && curProp.min !== curProp.max) || (curVelocity * unitFactor > -15 && curVelocity * unitFactor < 45)) ? (minDuration + (maxDuration - minDuration) * 0.1) : _calculateDuration(curVal, curProp.max, curVelocity);\n\t\t\t\t\t\tif (curClippedDuration + overshootTolerance < clippedDuration) {\n\t\t\t\t\t\t\tclippedDuration = curClippedDuration + overshootTolerance;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if ((\"min\" in curProp) && end < +curProp.min - _tinyNum) {\n\t\t\t\t\t\tunitFactor = curProp.unitFactor || _config.unitFactors[p] || 1; //some values are measured in special units like radians in which case our thresholds need to be adjusted accordingly.\n\t\t\t\t\t\t//if the value is already exceeding the min or if the velocity is too low, the duration can end up being uncomfortably long but in most situations, users want the snapping to occur relatively quickly (0.75 seconds), so we implement a cap here to make things more intuitive.\n\t\t\t\t\t\tcurClippedDuration = ((curVal < curProp.min && curProp.min !== curProp.max) || (curVelocity * unitFactor > -45 && curVelocity * unitFactor < 15)) ? (minDuration + (maxDuration - minDuration) * 0.1) : _calculateDuration(curVal, curProp.min, curVelocity);\n\t\t\t\t\t\tif (curClippedDuration + overshootTolerance < clippedDuration) {\n\t\t\t\t\t\t\tclippedDuration = curClippedDuration + overshootTolerance;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t(curClippedDuration > duration) && (duration = curClippedDuration);\n\t\t\t\t}\n\n\t\t\t\t(curDuration > duration) && (duration = curDuration);\n\t\t\t}\n\t\t}\n\t\t(duration > clippedDuration) &&\t(duration = clippedDuration);\n\t\treturn (duration > maxDuration) ? maxDuration : (duration < minDuration) ? minDuration : duration;\n\t},\n\n\n\n\t_initCore = () => {\n\t\tgsap = _getGSAP();\n\t\tif (gsap) {\n\t\t\t_parseEase = gsap.parseEase;\n\t\t\t_toArray = gsap.utils.toArray;\n\t\t\t_getUnit = gsap.utils.getUnit;\n\t\t\t_getCache = gsap.core.getCache;\n\t\t\t_clamp = gsap.utils.clamp;\n\t\t\t_power3 = _parseEase(\"power3\");\n\t\t\t_checkPointRatio = _power3(0.05);\n\t\t\tPropTween = gsap.core.PropTween;\n\t\t\tgsap.config({resistance:100, unitFactors:{time: 1000, totalTime: 1000, progress: 1000, totalProgress: 1000}});\n\t\t\t_config = gsap.config();\n\t\t\tgsap.registerPlugin(VelocityTracker);\n\t\t\t_coreInitted = 1;\n\t\t}\n\t};\n\n\n\nexport const InertiaPlugin = {\n\tversion: \"3.9.1\",\n\tname: \"inertia\",\n\tregister(core) {\n\t\tgsap = core;\n\t\t_initCore();\n\t},\n\tinit(target, vars, tween, index, targets) {\n\t\t_coreInitted || _initCore();\n\t\tlet tracker = _getTracker(target);\n\t\tif (vars === \"auto\") {\n\t\t\tif (!tracker) {\n\t\t\t\tconsole.warn(\"No inertia tracking on \" + target + \". InertiaPlugin.track(target) first.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvars = tracker.getAll();\n\t\t}\n\t\tthis.target = target;\n\t\tthis.tween = tween;\n\t\t_processingVars = vars; // gets swapped inside _calculateTweenDuration() if there's a function-based value encountered (to avoid double-calling it)\n\t\tlet cache = target._gsap,\n\t\t\tgetVal = cache.get,\n\t\t\tdur = vars.duration,\n\t\t\tdurIsObj = _isObject(dur),\n\t\t\tpreventOvershoot = vars.preventOvershoot || (durIsObj && dur.overshoot === 0),\n\t\t\tresistance = _getNumOrDefault(vars, \"resistance\", _config.resistance),\n\t\t\tduration = _isNumber(dur) ? dur : _calculateTweenDuration(target, vars, (durIsObj && dur.max) || 10, (durIsObj && dur.min) || 0.2, (durIsObj && \"overshoot\" in dur) ? +dur.overshoot : preventOvershoot ? 0 : 1, true),\n\t\t\tp, curProp, curVal, unit, velocity, change1, end, change2, linkedProps;\n\t\tvars = _processingVars;\n\t\t_processingVars = 0;\n\t\t//when there are linkedProps (typically \"x,y\" where snapping has to factor in multiple properties, we must first populate an object with all of those end values, then feed it to the function that make any necessary alterations. So the point of this first loop is to simply build an object (like {x:100, y:204.5}) for feeding into that function which we'll do later in the \"real\" loop.\n\t\tlinkedProps = _processLinkedProps(target, vars, getVal, resistance);\n\n\t\tfor (p in vars) {\n\t\t\tif (!_reservedProps[p]) {\n\t\t\t\tcurProp = vars[p];\n\t\t\t\t_isFunction(curProp) && (curProp = curProp(index, target, targets));\n\t\t\t\tif (_isNumber(curProp)) {\n\t\t\t\t\tvelocity = curProp;\n\t\t\t\t} else if (_isObject(curProp) && !isNaN(curProp.velocity)) {\n\t\t\t\t\tvelocity = +curProp.velocity;\n\t\t\t\t} else {\n\t\t\t\t\tif (tracker && tracker.isTracking(p)) {\n\t\t\t\t\t\tvelocity = tracker.get(p);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconsole.warn(\"ERROR: No velocity was defined for \" + target + \" property: \" + p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tchange1 = _calculateChange(velocity, duration);\n\t\t\t\tchange2 = 0;\n\t\t\t\tcurVal = getVal(target, p);\n\t\t\t\tunit = _getUnit(curVal);\n\t\t\t\tcurVal = parseFloat(curVal);\n\t\t\t\tif (_isObject(curProp)) {\n\t\t\t\t\tend = curVal + change1;\n\t\t\t\t\tif (\"end\" in curProp) {\n\t\t\t\t\t\tcurProp = _parseEnd(curProp, (linkedProps && p in linkedProps) ? linkedProps : end, curProp.max, curProp.min, p, vars.radius, velocity);\n\t\t\t\t\t}\n\t\t\t\t\tif ((\"max\" in curProp) && +curProp.max < end) {\n\t\t\t\t\t\tif (preventOvershoot || curProp.preventOvershoot) {\n\t\t\t\t\t\t\tchange1 = curProp.max - curVal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchange2 = (curProp.max - curVal) - change1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if ((\"min\" in curProp) && +curProp.min > end) {\n\t\t\t\t\t\tif (preventOvershoot || curProp.preventOvershoot) {\n\t\t\t\t\t\t\tchange1 = curProp.min - curVal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tchange2 = (curProp.min - curVal) - change1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis._props.push(p);\n\t\t\t\tthis._pt = new PropTween(this._pt, target, p, curVal, 0, _emptyFunc, 0, cache.set(target, p, this));\n\t\t\t\tthis._pt.u = unit || 0;\n\t\t\t\tthis._pt.c1 = change1;\n\t\t\t\tthis._pt.c2 = change2;\n\t\t\t}\n\t\t}\n\t\ttween.duration(duration);\n\t\treturn _bonusValidated;\n\t},\n\trender(ratio, data) {\n\t\tlet pt = data._pt;\n\t\tratio = _power3(data.tween._time / data.tween._dur);\n\t\twhile (pt) {\n\t\t\tpt.set(pt.t, pt.p, _round(pt.s + pt.c1 * ratio + pt.c2 * ratio * ratio) + pt.u, pt.d, ratio);\n\t\t\tpt = pt._next;\n\t\t}\n\t}\n};\n\n\n\"track,untrack,isTracking,getVelocity,getByTarget\".split(\",\").forEach(name => InertiaPlugin[name] = VelocityTracker[name]);\n\n_getGSAP() && gsap.registerPlugin(InertiaPlugin);\n\nexport { InertiaPlugin as default, VelocityTracker };","// 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","var deferred = [];\n__webpack_require__.O = function(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(function(key) { return __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};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(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 = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"chunk.\" + chunkId + \".\" + {\"76\":\"08b54231b894a188\",\"140\":\"fefa0f8f0f3ba5e3\",\"161\":\"6e2a1c2e789440c9\",\"185\":\"3fc59beaa6baf3d7\",\"225\":\"ec3b9928c97106c5\",\"468\":\"a8cdd85fd7fafa2c\",\"542\":\"47dc28555ef9d672\",\"568\":\"11f1c58db54e2f14\",\"708\":\"1e3c3aeadb09a8b0\",\"713\":\"f483798bea1f79d7\",\"725\":\"ddb75e7f7fa25f53\",\"909\":\"fb16c5b702861830\",\"910\":\"e693b579da447b4f\",\"935\":\"496163dd9dcad9b8\",\"951\":\"2cd4f7e27c2063c9\",\"1032\":\"06507385bc338231\",\"1048\":\"7f0f34e8bd03aaf0\",\"1058\":\"9cc2f13eca25696b\",\"1110\":\"acb5db5446b3f7ee\",\"1392\":\"12ed9f69c2fcb207\",\"1511\":\"a618309f7674a8ef\",\"1529\":\"590f54c48d121fa0\",\"1597\":\"e9d00483a0f5ac42\",\"1800\":\"035dcaae0ddf8f02\",\"1838\":\"3c1b0768d625d00b\",\"1843\":\"782028e8ec62dae9\",\"1940\":\"adad9e078f299309\",\"1960\":\"cdbb73fd90168812\",\"1970\":\"adbdc75a44b090ad\",\"2015\":\"de0651b1815bd1b5\",\"2062\":\"4dee0ad8da2aac1a\",\"2112\":\"ffa43c91c73b64e9\",\"2166\":\"686bd2cbba7dd56b\",\"2230\":\"098abe71bdca278f\",\"2242\":\"6394eef9eba625ee\",\"2316\":\"51f73092982a824c\",\"2339\":\"fb41d12659663655\",\"2340\":\"f0490fb15ab14c17\",\"2369\":\"78572e8444fd2f0e\",\"2372\":\"d64006788cc2a694\",\"2421\":\"0a7d57b409b52c20\",\"2530\":\"2886cf15a7247006\",\"2684\":\"bb4188997090c998\",\"2715\":\"635486166342d752\",\"2773\":\"3dcdad7bc35eae1d\",\"2792\":\"be15add86befdfe0\",\"2885\":\"cc0a75a201a7bbe7\",\"2946\":\"a83aeba666f6d358\",\"2970\":\"59ad11b2ff2964cd\",\"3015\":\"c48c9fd529cf73e6\",\"3060\":\"5033444bdb30fd61\",\"3136\":\"0e14d24d4e33983f\",\"3247\":\"f5cf8b2df36367b8\",\"3266\":\"bf75a5d1dd490a72\",\"3355\":\"4b5a1fe12f05a86f\",\"3513\":\"a0f2104d0ef16b08\",\"3530\":\"b5cdb2602603c6d9\",\"3582\":\"9d0e0c3bb12bdf92\",\"3584\":\"06967463915440bc\",\"3599\":\"de9794e15b731685\",\"3624\":\"8e9c9d5bca03a1a3\",\"3680\":\"f546ad5f87eebb06\",\"3705\":\"6b98285c8532153c\",\"3712\":\"8304aa97921280ca\",\"3855\":\"d3482960ea607937\",\"4047\":\"f4db2e6a265e69fd\",\"4063\":\"e6f2819bee7eed73\",\"4106\":\"5fb0f89a54750323\",\"4115\":\"e93793cdff9841db\",\"4124\":\"b899f9c6691092fc\",\"4225\":\"04c962fd8e334dba\",\"4240\":\"35a61a597d913b84\",\"4352\":\"c8045d42c6ba2d6d\",\"4403\":\"07fdf70c5c3ead86\",\"4534\":\"9b551b5403f44678\",\"4637\":\"633cd21d8bb9604a\",\"4650\":\"bdc66337e86d58f2\",\"4687\":\"afad9146198001fb\",\"4773\":\"941a3d3b16ce8d31\",\"4831\":\"aa705f67306ec2d2\",\"4882\":\"270431196d843804\",\"4898\":\"a20eb3abd97b0ea1\",\"4941\":\"8bb24f31d16f5b00\",\"5022\":\"917977e365d3f09e\",\"5028\":\"db4dde6ca9c11e90\",\"5080\":\"af0d2ae0416133c0\",\"5096\":\"9815886ec8c8938a\",\"5114\":\"b79f358f8e29b238\",\"5173\":\"36c18c0a3191197a\",\"5198\":\"213433f12c842e9d\",\"5283\":\"0871bf5972c9f857\",\"5414\":\"a1bca1402a168227\",\"5567\":\"74b5712304ad788c\",\"5585\":\"41df50eaba5e7609\",\"5674\":\"c053b46a6a716522\",\"5701\":\"40267aa60b0594da\",\"5794\":\"9a424ed130cd04a7\",\"5809\":\"7e3e46c47a015ea5\",\"5851\":\"3d067178e1f0941d\",\"5884\":\"445dd6f06b83ba40\",\"5962\":\"229119a6ae89f799\",\"6012\":\"ae9601e257ddc17d\",\"6029\":\"cd2f939109c4e331\",\"6031\":\"58ffff92075e7294\",\"6071\":\"2c42a652303196b6\",\"6114\":\"f14dff81af3195be\",\"6242\":\"f7c44881748d0807\",\"6274\":\"4ceecde28bafdeb9\",\"6323\":\"9182464613ff5ed7\",\"6346\":\"b173bb7419cb3096\",\"6387\":\"f3bc11bebd9d74c7\",\"6416\":\"a764ce24b8061967\",\"6428\":\"a83da9e7a4caf429\",\"6464\":\"2a349e0bb43b0d1c\",\"6495\":\"3d61c021742b9a8b\",\"6526\":\"2bf062f2f0d4f032\",\"6571\":\"8983a41141aa4f56\",\"6657\":\"282176273b09783b\",\"6690\":\"355a02b28904dacc\",\"6695\":\"6999464a71b20271\",\"6697\":\"98c389bf9b195acb\",\"6703\":\"7ab25c6c4ce6bfa4\",\"6812\":\"3565d5945fa23877\",\"6886\":\"069ccecc15cf57d9\",\"6922\":\"a49af6d12f0f3635\",\"7140\":\"8a67fae87ad293f5\",\"7225\":\"212980876a880e03\",\"7340\":\"e3667e971d036447\",\"7384\":\"81872c2f6e39e4c0\",\"7451\":\"5754cbc85d1451a2\",\"7504\":\"bf2f46a7d5e3a48c\",\"7586\":\"94d08a583ef8a966\",\"7816\":\"6951bd295f66ec81\",\"7983\":\"6ed6635cd65467a6\",\"7995\":\"02d4e596afe46030\",\"8052\":\"25782c4267ffe524\",\"8085\":\"718316089fd6afa6\",\"8093\":\"b606a5d5da29fb63\",\"8261\":\"b74113bceee9a8cc\",\"8379\":\"1a4b2f896d9400dd\",\"8508\":\"eb32c0ef85549041\",\"8590\":\"fcd4d312268fe54d\",\"8639\":\"6df64d06facbacbf\",\"8654\":\"f002aa6e8f198c08\",\"8783\":\"ad02e44231012e13\",\"8912\":\"7ea3044fb4584fc3\",\"8938\":\"0e1e61291ba6252b\",\"9053\":\"fc22a5bfeeb5f53b\",\"9195\":\"ea87d5a3b0f520f6\",\"9368\":\"19c1bfbbc715b5d0\",\"9451\":\"d24c383be281261a\",\"9500\":\"2c916b04ed546dbf\",\"9587\":\"f7e52fcc85103893\",\"9667\":\"91de367a02b363bf\",\"9693\":\"b71a0c17ef433d07\",\"9701\":\"d04f3ad7e43b6d78\",\"9721\":\"72cc71a545eaa96d\",\"9844\":\"d4ad15101ad1d922\",\"9853\":\"7327b5ca9c8c8f37\",\"9891\":\"646d1c1bbf9aac1e\",\"9905\":\"d7278b7603af369c\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"css/\" + chunkId + \".css\";\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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"tombras:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(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 = function(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(function(fn) { return 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};","// define __esModule on exports\n__webpack_require__.r = function(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__.p = \"/\";","if (typeof document === \"undefined\") return;\nvar createStylesheet = function(chunkId, fullhref, oldTag, resolve, reject) {\n\tvar linkTag = document.createElement(\"link\");\n\n\tlinkTag.rel = \"stylesheet\";\n\tlinkTag.type = \"text/css\";\n\tif (__webpack_require__.nc) {\n\t\tlinkTag.nonce = __webpack_require__.nc;\n\t}\n\tvar onLinkComplete = function(event) {\n\t\t// avoid mem leaks.\n\t\tlinkTag.onerror = linkTag.onload = null;\n\t\tif (event.type === 'load') {\n\t\t\tresolve();\n\t\t} else {\n\t\t\tvar errorType = event && event.type;\n\t\t\tvar realHref = event && event.target && event.target.href || fullhref;\n\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + errorType + \": \" + realHref + \")\");\n\t\t\terr.name = \"ChunkLoadError\";\n\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n\t\t\terr.type = errorType;\n\t\t\terr.request = realHref;\n\t\t\tif (linkTag.parentNode) linkTag.parentNode.removeChild(linkTag)\n\t\t\treject(err);\n\t\t}\n\t}\n\tlinkTag.onerror = linkTag.onload = onLinkComplete;\n\tlinkTag.href = fullhref;\n\n\n\tif (oldTag) {\n\t\toldTag.parentNode.insertBefore(linkTag, oldTag.nextSibling);\n\t} else {\n\t\tdocument.head.appendChild(linkTag);\n\t}\n\treturn linkTag;\n};\nvar findStylesheet = function(href, fullhref) {\n\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n\tfor(var i = 0; i < existingLinkTags.length; i++) {\n\t\tvar tag = existingLinkTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return tag;\n\t}\n\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n\tfor(var i = 0; i < existingStyleTags.length; i++) {\n\t\tvar tag = existingStyleTags[i];\n\t\tvar dataHref = tag.getAttribute(\"data-href\");\n\t\tif(dataHref === href || dataHref === fullhref) return tag;\n\t}\n};\nvar loadStylesheet = function(chunkId) {\n\treturn new Promise(function(resolve, reject) {\n\t\tvar href = __webpack_require__.miniCssF(chunkId);\n\t\tvar fullhref = __webpack_require__.p + href;\n\t\tif(findStylesheet(href, fullhref)) return resolve();\n\t\tcreateStylesheet(chunkId, fullhref, null, resolve, reject);\n\t});\n}\n// object to store loaded CSS chunks\nvar installedCssChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.miniCss = function(chunkId, promises) {\n\tvar cssChunks = {\"6071\":1};\n\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n\t\tpromises.push(installedCssChunks[chunkId] = loadStylesheet(chunkId).then(function() {\n\t\t\tinstalledCssChunks[chunkId] = 0;\n\t\t}, function(e) {\n\t\t\tdelete installedCssChunks[chunkId];\n\t\t\tthrow e;\n\t\t}));\n\t}\n};\n\n// no hmr","// 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\t179: 0\n};\n\n__webpack_require__.f.j = function(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(function(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 = function(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 = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(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(function(id) { return 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[\"webpackChunktombras\"] = self[\"webpackChunktombras\"] || [];\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, [4998], function() { return __webpack_require__(7684); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["brand","gtmCustomEventPush","data","event","gtmPush","window","dataLayer","push","massageProducts","product","userOpt","variations","opt","variant","showPosition","offset","Object","assign","map","p","idx","sku","obj","id","title","name","price","shape","color","attributes","attribute_color","material","size","attribute_size","filter","i","reduce","acc","curr","length","toLowerCase","position","category","massageImpressions","products","filterList","list","decodeURIComponent","productClick","el","massagedProduct","parentNode","children","findIndex","c","ecommerce","actionField","gtmCartAdd","quantity","productItem","cartProduct","type","gtmCartRemove","product_name","product_id","ecommerceDetail","detail","EVENTS","BOTTOM_PROMO","HERO_VIDEO","HERO_VIDEO_TIMING","STANDALONE_CHAT_NOW","CUSTOMER_RECOMMENDATION_FAILURE","ASSOCIATED_PRODUCT_FAILURE","PRODUCT_FAILURE","PAYPAL_AUTHORIZED","BACK_IN_STOCK_NOTIFICATION","SEEN_OUT_OF_STOCK","DISTRIBUTOR_SEARCH_FAILURE","DISTRIBUTOR_SEARCH_SELECT","DISTRIBUTOR_SEARCH_DEEPLINK","QUICK_ANSWER_OPEN","QUICK_ANSWER_SEEN","WIZARD_PERSONA","WIZARD_PAGE_VIEW","WIZARD_RESULTS","WIZARD_RECOMMENDATIONS","LIFT_DATA","AnimationHandler","constructor","onIntersection","options","this","animatableElements","opts","root","threshold","observer","createIntersectionObserver","IntersectionObserver","bind","add","items","respectNoAnimations","document","body","classList","contains","Error","NodeList","prototype","isPrototypeOf","forEach","item","observe","unobserve","debug","componentAnimationHandler","entries","target","intersectionRatio","isAnimatableAnytime","dispatchEvent","CustomEvent","_componentAnimationHandlerDebugger","ani","args","paused","DEFAULT_TIME_SHORT","DEFAULT_TIME","DEFAULT_STAGGER","DEFAULT_EASE","ease","Power1","easeOut","NOT_SUBTLE_DELAY","START_OPACITY","opacity","FINISH_OPACITY","START_Y_OFFSET","y","FINISH_Y_OFFSET","COLORS","brandPrimary","brandWhite","black","white","ANIMATION_DEFAULTS","SIMPLE_ANIMATION_START","SIMPLE_ANIMATION_FINISH","sidesArray","start","finish","tweenImagesWithOverlay","overlay","image","caption","tl","grouping","randomSide","chosenSide","Math","floor","random","imageArr","closest","set","to","zIndex","scaleX","transformOrigin","tweenCards","container","cards","cardWidth","offsetWidth","windowWidth","innerWidth","SLICE_POINT","ceil","staggerFromTo","slice","Accordion","setupEvents","querySelector","autoOpen","querySelectorAll","toggle","currentTarget","buttons","qsa","btn","addEventListener","content","nextElementSibling","style","height","scrollHeight","setTimeout","EmailSubscribe","selector","placement","postSuccessFn","gtmData","formEvents","getUrl","DRUPAL_API","addThankYouMessage","html","handleErrors","div","createElement","innerHTML","appendChild","promo","show","fn","error","form","input","e","preventDefault","email","value","list_key","getAttribute","subscribeUser","mobileNumber","url","tokenURL","axios","then","res","token","MobileNumber","headers","action","label","extraData","catch","err","Modal","stream","opened","createTimeline","hide","callFnIfEnterKeyWasPressed","setupTabIndices","tabIndex","shouldFocus","setAttribute","focus","gsap","timeline","submenu","modalContent","call","remove","pause","play","scaleY","reverse","handleModalLinks","modalLinks","link","modal","windowScrollEvents","windowResizeEvents","debounce","handleResizeParallax","qs","mainContent","offsetHeight","top","offsetTop","makeParallax","imagery","main","parallaxHandler","backgroundItems","fromTo","x","itemsWithParallax","Rellax","center","round","img","onload","foundryParallaxImages","breadParallaxImages","MainMenu","hasPromo","isMenuOpened","handleClickaway","DESKTOP_SIZE","dropdown","cart","hamburger","toggleMobileMenu","dropdownLinks","wrapper","toggleDropdowns","recalculate","mobileActiveClass","menuToggleAnimation","subItemsEl","dropdownEnabled","getComputedStyle","display","targetParent","otherDropdowns","windowSize","promoTopOffset","TABLET_SIZE","getOffsetForMenu","addOrRemove","outerWidth","maxHeight","aboveHeader","siteHeader","aboveHeaderRect","getBoundingClientRect","siteHeaderRect","animatedCover","allLinks","isRemoving","linksStartingX","linksFinishing","autoAlpha","stagger","borderWidth","delay","activeDropdown","scroll","nav","check","bootup","_resolve","startObserver","_promise","Promise","config","childList","subtree","MutationObserver","mutations","run","disconnect","__webpack_public_path__","location","hostname","indexOf","lazysizes","customMedia","extra_small","small","medium","wide","extra_wide","handlePrintButtons","handleBackButtons","chatNowBtn","objectFitForIE","FOUNDRY","BREAD","drupalSettings","path","currentPath","addNewBadgeToRecipes","copyBlockID","drupalFunction","Drupal","$","behaviors","tombras","attach","context","settings","jQuery","params","bubbles","cancelable","evt","createEvent","initCustomEvent","arr","hasOwnProperty","defineProperty","configurable","enumerable","writable","argArr","Array","arguments","docFrag","createDocumentFragment","argItem","isNode","Node","createTextNode","String","Element","Document","DocumentFragment","matches","msMatchesSelector","webkitMatchesSelector","s","parentElement","nodeType","undefined","t","n","time","rootBounds","boundingClientRect","intersectionRect","a","isIntersecting","r","width","o","_checkForIntersections","THROTTLE_TIMEOUT","_callback","_observationTargets","_queuedEntries","_rootMarginValues","_parseRootMargin","rootMargin","thresholds","_initThresholds","unit","join","performance","now","attachEvent","h","removeEventListener","detatchEvent","max","min","bottom","left","right","u","l","host","IntersectionObserverEntry","f","POLL_INTERVAL","some","element","_registerInstance","entry","_monitorIntersections","_unmonitorIntersections","_unregisterInstance","takeRecords","isArray","sort","isNaN","split","exec","parseFloat","_monitoringIntersections","_monitoringInterval","setInterval","_domObserver","characterData","clearInterval","_rootIsInDom","_getRootRect","_rootContainsTarget","_computeTargetAndRootIntersection","_hasCrossedThreshold","documentElement","overflow","clientWidth","clientHeight","_expandRectByRootMargin","splice","self","global","isLayoutPage","THEME_PATH","func","wait","immediate","timeout","result","later","apply","callNow","clearTimeout","parser","Bowser","navigator","userAgent","isMobile","OS","getOS","isIE","browser","getResult","LEFT","RIGHT","keyCode","getUrlParameter","replace","regex","RegExp","results","search","queryParams","locationSearch","substr","createComponent","theClass","history","back","print","validProductProperties","images","objectFitPolyfill","chats","embedded_svc","onHelpButtonClick","luma","hex","substring","rgb","parseInt","g","b","getSwatchOrColor","swatch","getProductColorBorderColor","defaultColor","playMobileFullscreenHelper","identifier","createdDates","today","Date","daysSincePosting","inner","removeAttribute","uuid","clipboard","writeText","innerText","chunk","chunks","concat","equalHeights","_self","_elements","resetHeight","resolve","setHeight","hgt","getTallestElement","tallest","previousHgt","currentHgt","reset","async","src","_coreInitted","_toArray","_getUnit","_first","_ticker","_time1","_time2","_getCache","_getGSAP","_lookup","_round","_getID","_getByTarget","_onTick","val","pt","v1","t1","v2","t2","_next","_types","deg","rad","PI","_initCore","utils","toArray","getUnit","core","getCache","ticker","PropTracker","property","next","_gsap","get","rCap","_prev","VelocityTracker","_props","register","skipRecentTick","dif","rotationCap","getAll","props","isTracking","prev","kill","shallow","track","targets","properties","types","tracker","j","targs","untrack","getVelocity","getByTarget","registerPlugin","_parseEase","_power3","_config","PropTween","_checkPointRatio","_clamp","_processingVars","_getTracker","_isString","_isNumber","_isObject","_isFunction","_bonusValidated","_isArray","_emptyFunc","_bigNum","_tinyNum","_checkPoint","_extend","defaults","exclude","_deepClone","v","copy","_getClosest","values","radius","dist","absDif","sqrt","_parseEnd","curProp","end","velocity","adjustedEnd","endVar","calculated","unitFactor","_getNumOrDefault","vars","defaultValue","_calculateChange","duration","_calculateDuration","abs","_reservedProps","resistance","checkpoint","preventOvershoot","linkedProps","_processLinkedProps","getVal","curVelocity","curDuration","linkedPropNames","_calculateTweenDuration","maxDuration","minDuration","overshootTolerance","recordEnd","curVal","curClippedDuration","clippedDuration","inertiaVars","inertia","unitFactors","parseEase","clamp","totalTime","progress","totalProgress","InertiaPlugin","version","init","tween","index","change1","change2","cache","dur","durIsObj","overshoot","_pt","c1","c2","render","ratio","_time","_dur","d","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","m","deferred","O","chunkIds","priority","notFulfilled","Infinity","fulfilled","keys","every","key","getter","__esModule","definition","chunkId","all","promises","miniCssF","globalThis","Function","prop","inProgress","dataWebpackPrefix","done","script","needAttach","scripts","getElementsByTagName","charset","nc","onScriptComplete","onerror","doneFns","removeChild","head","Symbol","toStringTag","createStylesheet","fullhref","oldTag","reject","linkTag","rel","nonce","onLinkComplete","errorType","realHref","href","code","request","insertBefore","nextSibling","findStylesheet","existingLinkTags","tag","dataHref","existingStyleTags","loadStylesheet","installedCssChunks","miniCss","cssChunks","installedChunks","installedChunkData","promise","loadingEnded","realSrc","message","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""}