1(()=>{var e={631:()=>{document.addEventListener("DOMContentLoaded",(function(){const r=document.querySelector(".mobile-menu-2024__open"),i=document.querySelector(".mobile-menu-2024__close"),o=document.querySelector(".mobile-menu-2024__bg"),s=document.querySelectorAll(".mobile-menu-2024__items-single .has-subitems");r.addEventListener("click",e),i.addEventListener("click",t),o.addEventListener("click",t),s&&s.forEach((e=>e.addEventListener("click",n)))}));const e=()=>{document.querySelector(".mobile-menu-2024").classList.add("visible"),document.body.classList.add("no-focus")},t=()=>{document.querySelector(".mobile-menu-2024").classList.remove("visible"),document.body.classList.remove("no-focus")};function n(e){e.preventDefault(),this.parentNode.classList.toggle("visible")}},379:()=>{document.addEventListener("DOMContentLoaded",(function(){const r=document.querySelector(".mobile-menu__open"),i=document.querySelector(".mobile-menu__close"),o=document.querySelector(".mobile-menu__bg"),s=document.querySelectorAll(".mobile-menu__items-single .has-subitems");r.addEventListener("click",e),i.addEventListener("click",t),o.addEventListener("click",t),s&&s.forEach((e=>e.addEventListener("click",n)))}));const e=()=>{document.querySelector(".mobile-menu").classList.add("visible"),document.body.classList.add("no-focus")},t=()=>{document.querySelector(".mobile-menu").classList.remove("visible"),document.body.classList.remove("no-focus")};function n(e){e.preventDefault(),this.parentNode.classList.toggle("visible")}},741:()=>{document.addEventListener("DOMContentLoaded",(function(){let r=e(),i=r>630?"desktop":"mobile",o=n("mobile"===i);document.querySelectorAll(".eggo-brands__images-inner .swiper-slide").forEach((function(e){e.addEventListener("click",(function(){"mobile"!==i&&t(e.dataset.index)}))})),window.addEventListener("resize",(function(){return r=e(),r>630&&"mobile"===i?(o.destroy(),o=n(!1),void(i="desktop")):r<=630&&"desktop"===i?(o.destroy(),o=n(!0),void(i="mobile")):void 0}))}));const e=()=>window.innerWidth>0?window.innerWidth:screen.width,t=e=>{const t=document.querySelector(".eggo-brands__texts-inner");document.querySelectorAll(".eggo-brands__text").forEach((function(e){e.classList.remove("active")})),t.querySelector(`.eggo-brands__text[data-index='${e}']`).classList.add("active");const n=document.querySelector(".eggo-brands__images-inner");document.querySelectorAll(".eggo-brands__images-inner .swiper-slide").forEach((function(e){e.classList.remove("active")})),n.querySelector(`.swiper-slide[data-index='${e}']`).classList.add("active")},n=(e=!0)=>{const n=new Swiper(".eggo-brands__images",{slidesPerView:1,centeredMode:!0,loop:e,breakpoints:{320:{slidesPerView:"auto",centeredSlides:!0},630:{slidesPerView:3}},on:{init:function(e){t(e.realIndex)}}});return n.on("slideChangeTransitionEnd",(function(e){t(e.realIndex)})),n}},544:()=>{document.addEventListener("DOMContentLoaded",(function(){new Swiper(".eggo-home-slider",{loop:!0,pagination:{el:".eggo-home-slider__bullets",type:"bullets",clickable:!0}}),e()}));const e=()=>{const e=document.querySelector(".eggo-home-slider__slide-image"),n=document.querySelector(".eggo-home-slider__bullets");e&&n&&(t(e,n),window.addEventListener("resize",(()=>{t(e,n)})))},t=(e,t)=>{if(Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<768){const n=e.clientWidth;t.style.top=n-12+"px"}else t.style.top=null}},119:()=>{document.addEventListener("DOMContentLoaded",(function(){new Swiper(".eggo-review-slider-new",{slidesPerView:3,slidesPerGroup:3,spaceBetween:12,breakpoints:{989:{slidesPerView:3,slidesPerGroup:3},720:{slidesPerView:2,slidesPerGroup:2},240:{slidesPerView:1,slidesPerGroup:1}},pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}))},73:()=>{let e=null;document.addEventListener("DOMContentLoaded",(function(){e=new Swiper(".eggo-review-slider",{slidesPerView:"auto",spaceBetween:12,breakpoints:{767:{spaceBetween:24}}}),t(),n()}));const t=()=>{const t=document.querySelectorAll(".eggo-product-text-card-products__single");t.forEach((n=>{n.addEventListener("click",(()=>{t.forEach((e=>e.classList.remove("active"))),n.classList.add("active"),r(n.dataset.product),i(n.dataset.product),e.update(
1)}))}))},n=()=>{const t=document.querySelector(".eggo-product-filtered-reviews .eggo-product-text-card-products__single");t&&(r(t.dataset.product),e.update())},r=e=>{document.querySelectorAll(".review-card").forEach((e=>e.classList.remove("active"))),document.querySelectorAll(`.review-card[data-product='${e}']`).forEach((e=>e.classList.add("active")))},i=e=>{document.querySelectorAll(".product-card-secondary").forEach((e=>e.classList.remove("active"))),document.querySelector(`.product-card-secondary[data-product='${e}']`).classList.add("active")}},615:()=>{document.addEventListener("DOMContentLoaded",(()=>{!function(){const e=document.querySelectorAll(".eggo-product-tabs");0!==e.length&&e.forEach((e=>{const t=e.querySelectorAll(".eggo-product-tabs__buttons a.with-products"),n=e.querySelectorAll(".eggo-product-tabs__products");0!==t.length&&0!==n.length&&t.forEach((r=>{r.addEventListener("click",(i=>{i.preventDefault(),t.forEach((e=>e.classList.remove("visible"))),n.forEach((e=>e.classList.remove("visible"))),r.classList.add("visible");const o=r.dataset.index,s=e.querySelector('.eggo-product-tabs__products[data-index="'+o+'"]');console.log(s),s&&s.classList.add("visible")}))}))}))}()}))},295:()=>{document.addEventListener("DOMContentLoaded",(()=>{!function(){new Swiper(".eggo-videos",{slidesPerView:"auto",centeredSlides:!0,loop:!0,breakpoints:{320:{spaceBetween:0},480:{spaceBetween:24}}});const e=document.querySelectorAll(".eggo-videos__single");e.forEach((t=>{t.addEventListener("click",(()=>{const n=t.querySelector("video");n&&(e.forEach((e=>{const t=e.querySelector("video");t!==n&&(t.pause(),e.classList.remove("playing"))})),n.paused?(n.play(),t.classList.add("playing"),n.muted=!1,n.volume=.5):(n.pause(),t.classList.remove("playing")))}))}))}()}))},577:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".article-template__content > div > img").forEach((e=>{const t=e.getAttribute("alt");if(""===t||!t)return;const n=document.createElement("span");n.classList.add("image-caption"),n.innerHTML=t,e.parentNode.append(n),e.parentNode.classList.add("image-caption-wrapper")})),function(){const e=document.querySelector(".articles-load-more-button"),t=document.querySelector(".articles--load-more");e&&t&&e.addEventListener("click",(function(n){n.preventDefault();const r=document.querySelectorAll(".articles--load-more .article-card:not(.article-card--show-this)");0!==r.length?(Array.from(r).slice(0,3).forEach((e=>e.classList.add("article-card--show-this"))),t.classList.add("articles--show-this"),r.length<=3&&e.parentNode.classList.add("hide-this")):e.parentNode.classList.add("hide-this")}))}()}))},212:()=>{document.addEventListener("DOMContentLoaded",(()=>{e()}));const e=()=>{const e=document.getElementById("eggo-sorting");if(!e)return;const n=e.querySelector("select"),r=document.querySelector(".helper-element");n&&r&&(setTimeout((()=>{t(e,n,r)}),200),n.addEventListener("change",(()=>{e.submit(),t(e,n,r)})))};function t(e,t,n){n.innerHTML=t.querySelector("option:checked").innerText,t.style.width=n.offsetWidth+"px",e.classList.add("calculated")}},478:()=>{document.addEventListener("DOMContentLoaded",(function(){var e;0!==(e=document.querySelectorAll(".header__menu-item--subitems")).length&&e.forEach((e=>{e.addEventListener("click",(e=>e.preventDefault()))}))}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}(()=>{"use strict";n(544),n(73),n(119),n(741),n(295),n(615);const e="show-mini-cart",t="eggo-add-to-cart",r="eggo-show-quantity-upsell",i="eggo-toggle-checkout",o=(e,t)=>{const n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)},s=e=>{e&&e.classList.add("hide-this")},a=()=>"undefined"==typeof eggoABC?[]:eggoABC,c=()=>"undefined"!=typeof cartGiftsEnabled&&Boolean(cartGiftsEnabled);class d{constructor(e,t){this.eggoCart=e,this.cart=t,this.cartPrice=this.cart.total_price/100,this.cartIndex=this.createCartIndex(),this.giftDomElements=this.eggoCart.querySelectorAll(".cart-drawer__inner-real .cart-drawer__gift"),this.abcDomElements=this.eggoCart.querySelectorAll(".cart-drawer__inner-real .cart-drawer__upsell-item"),this.giftIds=this.getGiftIds(),this.abcIds=this.getAbcIds();const n=this.runUpsellLogic(),r=this.runGiftLogic();!n||!r&&c()?new Swiper(".cart-drawer__inner-real .cart-drawer-product-card__list",{loop:!1,spaceBetween:16}):this.hideBothSections()}createCartIndex(){return this.cart.items.reduce(((e,t)=>(e[t.product_id]=t,e)),{})}getGiftIds(){return this.giftDomElements?[...this.giftDomElements].reduce(((e,t)=>(e.push(t.dataset.productId),e)),[]):[]}getAbcIds(){return this.abcDomElements?[...this.abcDomElements].reduce(((e,t)=>(e.push(t.dataset.productId),e)),[]):[]}runUpsellLogic(){let e=!0,t="undefined"==typeof eggoABCRegistered?[]:eggoABCRegistered,n=new Set(a().reduce(((e,t)=>this.cartIndex?.[t.product]?[...e,...t.associations]:e),[])),r=new Set(a().reduce(((e,t)=>(t.associations.forEach((t=>{this.cartIndex?.[t]&&e.push(t.toString())})),e)),[]));const i={};return t.forEach((t=>{const o=document.querySelector(`.cart-drawer__inner-real .cart-drawer__upsell-item[data-product-id="${t}"]`);if(n.has(t)&&!r.has(t))return o&&(e=!1),void(i[t]=0);s(o)})),this.runAbcOrderDiscount(i),e&&this.hideUpsellSection(),e}
1runAbcOrderDiscount(e){try{this.cart.items.forEach((t=>{const n=t.product_id,r=this.findProductInEggoAbc(n);r&&r.associations.forEach(((t,n)=>{null!==e?.[t]&&(e[t]+=n)}))}))}catch(e){}document.querySelectorAll(".cart-drawer__inner-real .cart-drawer__upsell-item").forEach((e=>{e.style.order=1e5})),Object.entries(e).forEach((([e,t])=>{const n=document.querySelector(`.cart-drawer__inner-real .cart-drawer__upsell-item[data-product-id="${e}"]`);n&&(n.style.order=t)}))}findProductInEggoAbc(e){for(let t of a())if(t.product==e)return t;return null}runGiftLogic(){if(this.giftIds.find((e=>this.cartIndex?.[e])))return this.hideGiftSection(),!0;const e=this.generateGiftRule();if(null===e.locked&&null===e.unlocked)return this.hideGiftSection(),!0;e.locked&&this.showLockedGifts(e.locked),e.unlocked&&this.showUnlockedGifts(e.unlocked),e.messageValue&&document.querySelectorAll(".cart-drawer-product-card__message-locked-text").forEach((t=>t.innerHTML=Shopify.formatMoney(100*e.messageValue))),this.hideOtherGifts();const t=![...this.giftDomElements].some((e=>e.classList.contains("show")));return t&&this.hideGiftSection(),t}findGiftsToRemove(){if("undefined"==typeof cartGiftLimits||!c())return[];const e={50:0,60:1,80:2,100:3};return this.cart.items.reduce(((t,n)=>{const r=cartGiftLimits[e[n.properties?._eggo_gift]];return r?((this.cart.total_price-n.final_line_price)/100<r.low&&t.push(n.key),t):t}),[])}hideUpsellSection(){this.hideSection(".cart-drawer__inner-real .cart-drawer__upsell-eggo")}hideGiftSection(){this.hideSection(".cart-drawer__inner-real .cart-drawer__upsell-gift")}hideBothSections(){this.hideSection(".cart-drawer__inner-real .cart-drawer__upsell")}hideSection(e){const t=this.eggoCart.querySelector(e);t&&t.classList.add("hide-this")}generateGiftRule(){const e={locked:null,unlocked:null,messageValue:""},t={locked:null,unlocked:null,messageValue:""};return"undefined"==typeof cartGiftLimits?e:(this.cartPrice=this.cart.total_price/100,this.cartPrice?(this.cartPrice>=cartGiftLimits[0].low&&this.cartPrice<cartGiftLimits[0].high?t.unlocked=50:this.cartPrice>=cartGiftLimits[1].low&&this.cartPrice<cartGiftLimits[1].high?t.unlocked=60:this.cartPrice>=cartGiftLimits[2].low&&this.cartPrice<cartGiftLimits[2].high?t.unlocked=80:this.cartPrice>=cartGiftLimits[3].low&&this.cartPrice<cartGiftLimits[3].high&&(t.unlocked=100),this.cartPrice>=cartGiftLimits[0].low-cartGiftsRange&&this.cartPrice<cartGiftLimits[0].low?(t.locked=50,t.messageValue=cartGiftLimits[0].low):this.cartPrice>=cartGiftLimits[1].low-cartGiftsRange&&this.cartPrice<cartGiftLimits[1].low?(t.locked=60,t.messageValue=cartGiftLimits[1].low):this.cartPrice>=cartGiftLimits[2].low-cartGiftsRange&&this.cartPrice<cartGiftLimits[2].low?(t.locked=80,t.messageValue=cartGiftLimits[2].low):this.cartPrice>=cartGiftLimits[3].low-cartGiftsRange&&this.cartPrice<cartGiftLimits[3].low&&(t.locked=100,t.messageValue=cartGiftLimits[3].low),t):e)}
1showLockedGifts(e){[...this.giftDomElements].forEach((t=>{t.dataset.price===e.toString()&&(t.classList.add("lock"),t.classList.add("show"))}))}showUnlockedGifts(e){[...this.giftDomElements].forEach((t=>{t.dataset.price===e.toString()&&(t.classList.add("unlock"),t.classList.add("show"))}))}hideOtherGifts(){[...this.giftDomElements].forEach((e=>{e.classList.contains("show")||s(e)}))}}class l{constructor(e,t){this.eggoCart=t,this.meterElement=this.eggoCart.querySelector(".cart-drawer__inner-real .cart-drawer__shipping-meter-value"),this.messageElement=this.eggoCart.querySelector(".cart-drawer__inner-real .cart-drawer__shipping-message-text"),this.meterElement&&this.messageElement&&"undefined"!=typeof eggoShipping&&(this.width="0%",this.message="",e>=eggoShipping.limit?(this.width="100",this.message=eggoShipping.messageFreeShipping):(this.width=100*e/eggoShipping.limit,this.message=eggoShipping.messageLeft.replace("[value]",Shopify.formatMoney(Math.round(100*eggoShipping.limit-100*e)))),this.meterElement.style.width=this.width+"%",this.messageElement.innerHTML=this.message)}}const u=e=>{"undefined"!=typeof eggoOrderLimit&&eggoOrderLimit?.enabled&&eggoOrderLimit?.limit>50&&o(i,{limit:eggoOrderLimit.limit,total:e})};class g{constructor(){this.cartDrawer=null,this.cartCache=null,this.eggoCartRealWrapper=document.querySelector(".cart-notification-wrapper"),this.registerAddToCartGlobalEvent(),this.registerOpenMiniCartEvent(),this.timeout=null,this.requestQueue=Promise.resolve()}init(e){this.eggoCartWrapper=document.createElement("div"),this.eggoCartWrapper.innerHTML=e||this.getCartContent(),this.eggoCart=this.eggoCartWrapper.querySelector(".cart-notification-inner-wrapper"),this.cartCache&&this.activateFakeCart(!1),this.registerInitialEvents()}setWrapperLoading(){this.eggoCartRealWrapper.classList.add("loading")}unsetWrapperLoading(){this.eggoCartRealWrapper.classList.remove("loading")}getCart(e=`${routes.cart_update_url}.js`,t={updates:{}}){this.setWrapperLoading(),this.cartRequest(e,t)}refreshCart(){const e=document.querySelector(".cart-notification-wrapper");e.innerHTML="",e.append(this.eggoCart)}getCartContent(){return document.querySelector(".cart-notification-inner-wrapper").outerHTML}registerInitialEvents(){this.registerMiniCartCloseEvents(),this.registerLineItemQuantityChangeEvent(),this.registerLineItemRemoveEvent(),this.registerCouponEvents(),this.registerAddToCartGifts(),_(this.eggoCart.querySelector(".cart-drawer__inner-real"))}registerMiniCartCloseEvents(){this.registerClickCloseEvent(".cart-notification__bg"),this.registerClickCloseEvent(".cart-drawer__inner-real .cart-drawer__close"),document.addEventListener("keyup",(e=>{"Escape"===e.key&&this.actionCloseMiniCart(e)}))}registerClickCloseEvent(e){const t=this.eggoCart.querySelector(e);t&&t.addEventListener("click",(e=>this.actionCloseMiniCart(e)))}registerLineItemQuantityChangeEvent(){this.eggoCart.querySelectorAll(".cart-item__quantity .quantity").forEach((e=>{e.addEventListener("change",(()=>{const t=parseInt(e.input.value),n=e.input.dataset.product;this.actionUpdateCartQuantity(n,t)}))}))}registerLineItemRemoveEvent(){this.eggoCart.querySelectorAll(".cart-item__remove button").forEach((e=>{e.addEventListener("click",(()=>{const t=e.dataset.product;this.actionUpdateCartQuantity(t,0)}))}))}registerCouponEvents(){const e=this.eggoCart.querySelector(".cart-drawer__inner-real");if(!e)return;const t=e.querySelector(".cart-drawer__footer-coupon-toggle");t&&t.addEventListener("click",(()=>{s(t),this.actionShowCouponField()}));const n=e.querySelector(".eggo-discount-form");n&&n.addEventListener("submit",(e=>{e.preventDefault(),this.actionApplyDiscount(n.querySelector(".eggo-discount-form__input").value.trim())})),e.querySelectorAll(".eggo-discount-tag__remove").forEach((e=>{e.addEventListener("click",(()=>{this.actionRemoveDiscount(e.closest(".eggo-discount-tag").dataset.discountCode)}))}))}registerAddToCartGifts(){const e=this.eggoCart.querySelectorAll(".is-add-to-cart:not(.eggo-button--buy)");e&&e.forEach((e=>e.addEventListener("click",f)))}actionCloseMiniCart(e){e.preventDefault(),this.eggoCart.classList.remove("open"),o(r,{})}actionShowLoader(){this.eggoCart.classList.add("loading")}actionShowCouponField(){const e=this.eggoCart.querySelector(".cart-drawer__inner-real .eggo-discount-input");e&&e.classList.add("visible")}registerOpenMiniCartEvent(){document.addEventListener(e,(()=>{this.eggoCart.classList.add("open")}))}registerAddToCartGlobalEvent(){document.addEventListener(t,(t=>
1{this.eggoCart?o(e):this.setWrapperLoading(),this.cartRequest(t.detail.url,t.detail.data)}))}actionUpdateCartQuantity(e,t){this.cartRequest(`${routes.cart_update_url}.js`,{updates:{[e]:t}})}getAppliedCodes(){return[...this.eggoCart.querySelectorAll(".cart-drawer__inner-real .eggo-discount-tag")].map((e=>e.dataset.discountCode))}hasAppliedCode(e){return this.getAppliedCodes().some((t=>t.toLowerCase()===e.toLowerCase()))}actionApplyDiscount(e){if(!e)return;const t=this.getAppliedCodes(),n=this.hasAppliedCode(e)?t:[...t,e];this.cartRequest(`${routes.cart_update_url}.js`,{discount:n.join(",")},{couponAttempt:{code:e,previous:t}})}actionRemoveDiscount(e){const t=this.getAppliedCodes().filter((t=>t!==e));this.cartRequest(`${routes.cart_update_url}.js`,{discount:t.join(",")})}verifyCouponAttempt(e){if(e.couponError)return void this.showCouponError(e.couponError);if(!e.couponAttempt)return;const{code:t,previous:n}=e.couponAttempt;this.hasAppliedCode(t)||this.cartRequest(`${routes.cart_update_url}.js`,{discount:n.join(",")}
1,{couponError:t})}showCouponError(e){const t=this.eggoCart.querySelector(".cart-drawer__inner-real"),n=t?.querySelector(".eggo-discount-input");n&&(n.classList.add("visible"),s(t.querySelector(".cart-drawer__footer-coupon-toggle")),n.querySelector(".eggo-discount-form__input").value=e,n.querySelector(".eggo-discount-form__error").hidden=!1)}activateFakeCart=(e=!1)=>{this.eggoCart.querySelector(".cart-drawer__inner-fake").innerHTML=this.cartCache,e&&(this.cartCache=null)};setFakeCart=()=>{const e=this.eggoCart.querySelector(".cart-drawer__inner-real"),t=document.createElement("div");t.innerHTML=e.innerHTML,this.cartCache=t.innerHTML};cartRequest=(e,t,n={})=>(this.requestQueue=this.requestQueue.then((()=>this.runCartRequest(e,t,n))).catch((e=>console.error(e))),this.requestQueue);async runCartRequest(e,t,n){this.clearSafetyTimer(),this.eggoCart&&(this.actionShowLoader(),this.setFakeCart(),this.activateFakeCart()),this.startSafetyTimer();try{const n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,sections:"cart-drawer",sections_url:"/cart"})}),r=await n.json(),i=!this.eggoCart||!this.eggoCart.classList.contains("open"),o=document.createElement("div");o.innerHTML=await this.getDrawerHtml(r),this.cartDrawer=o,i?(this.init(o.querySelector("#shopify-section-cart-drawer").innerHTML),setTimeout((()=>{this.eggoCart.classList.add("open")}),1)):(o.querySelector(".cart-notification-inner-wrapper").classList.add("open"),this.init(o.querySelector("#shopify-section-cart-drawer").innerHTML)),this.unsetWrapperLoading(),this.refreshCart(),this.clearSafetyTimer()}catch(e){return console.error(e),this.clearSafetyTimer(),void(window.location=routes.cart_url)}this.finishCartRender(n)}async getDrawerHtml(e){return e?.sections?.["cart-drawer"]?e.sections["cart-drawer"]:(await fetch(`${routes.cart_url}?sections=cart-drawer`).then((e=>e.json())))["cart-drawer"]}startSafetyTimer(){this.timeout=setTimeout((()=>{window.location=routes.cart_url}),1e4)}clearSafetyTimer(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}finishCartRender(e={}){try{this.registerGiftWrapEvents(),this.removeGiftWrapIfAlone(),this.verifyCouponAttempt(e);const t=this.getRenderedCart();if(!t||0===t.item_count)return;const n=t.total_price/100;new l(n,this.eggoCart),u(n);const r=new d(this.eggoCart,t).findGiftsToRemove();r.length&&this.cartRequest(`${routes.cart_change_url}.js`,{id:r[0],quantity:0})}catch(e){console.error(e)}}getRenderedCart(){const e=this.eggoCart.querySelector(".cart-drawer__inner-real script[data-eggo-cart-json]");if(!e)return null;try{return JSON.parse(e.textContent)}catch(e){return null}}removeGiftWrapIfAlone(){const e=this.getGift();e?.id&&0===this.eggoCart.querySelectorAll(`.cart-drawer__inner-real .cart-item:not([data-variant-id="${e.id}"])`).length&&m(e.id)}registerGiftWrapEvents(){const e=this.getGift();e.element&&e.element.addEventListener("click",(()=>{e.element.classList.contains("item-is-checked")?m(e.id):p([{id:e.id,quantity:1}])}))}getGift(){const e=this.eggoCart.querySelector(".cart-drawer__inner-real .cart-drawer__footer-gift__inner");let t=null;return e&&(t=e.dataset?.productId),{element:e,id:t}}}let h=null;const p=e=>{const n=`${routes.cart_add_url}.js`,r={items:e};h?o(t,{url:n,data:r}):(h=new g,h.getCart(n,r))},m=e=>{const n=`${routes.cart_change_url}.js`,r={id:e,quantity:0};h?o(t,{url:n,data:r}):(h=new g,h.getCart(n,r))};function f(e){e.preventDefault();const t=this.dataset.variation;if(!t){const e=`.${this.dataset.buttonAttribute}`;return void this.parentNode.querySelector(e).classList.add("visible")}const n={id:t,quantity:1},r=this.closest(".cart-drawer__gift");r&&(n.properties={_eggo_gift:r.dataset.price}),p([n])}function v(e,t=document){t.querySelectorAll(e).forEach((e=>{e.addEventListener("click",(function(n){n.preventDefault();let r=null;const i=e.dataset.imageElement,o=t.querySelector(i),s=t.querySelector(e.dataset.button);s&&(r=s.parentElement.querySelector("div.eggo-button"));const a=e.dataset.variationId,c=e.dataset.message,d=t.querySelector(c),l=e.parentNode.querySelectorAll(".product-card__variant-color");d&&(d.classList.remove("visible"),o&&(o.src=e.dataset.imageUrl),s.dataset.variation=a),l&&l.forEach((e=>e.classList.remove("selected"))),e.classList.add("selected"),e.classList.contains("notavailable")?(s&&s.classList.add("hide-this"),r&&r.classList.remove("hide-this")):(s&&s.classList.remove("hide-this"),r&&r.classList.add("hide-this"))}))}))}document.addEventListener("DOMContentLoaded",(function(){(()=>{const t=document.querySelector(".header__icon--cart");t&&t.addEventListener("click",(t=>{t.preventDefault(),h?o(e):(h=new g,h.getCart())}))})(),document.addEventListener(i,(function(e){let t=null,n=null;document.getElementById("cart-page")?(t=document.querySelector("#cart-page #checkout"),n=document.querySelector("#cart-page #cart-notification-button-message")):(t=document.querySelector(".cart-drawer__inner-real #cart-notification-button"),n=document.querySelector(".cart-drawer__inner-real #cart-notification-button-message"));const{limit:r,total:i}=e.detail;t&&(i>r?(t.classList.add("hide"),n&&n.classList.add("show")):(t.classList.remove("hide"),n&&n.classList.remove("show")))}))})),document.querySelectorAll(".product-card__rating").forEach((e=>{const t=e.querySelector(".stamped-badge-caption"),n=e.querySelector(".product-card__rating-final"),r=e.querySelector("#eggo-badge");if(!t)return void e.remove();const i=t.dataset.rating;let o=t.dataset.reviews;if(r){const e=r.dataset.reviewCount;e&&(o=parseInt(e))}const s=o>4?stringReviews.more:stringReviews[o];n.innerHTML=`${i}/5.0 <span class="product-card__rating-final-count">${o} ${s}</span>`})),document.addEventListener("DOMContentLoaded",(function(){!function(){const e=document.querySelectorAll("#MainContent .is-add-to-cart:not(.eggo-button--buy)");e&&e.forEach((e=>e.addEventListener("click",f)))}(),y()}));const y=()=>{v("#MainContent .product-card__image-selector .product-card__variant-color")},_=e=>{v(".product-card__variant-color",e)},w="#main-cart-footer";let L=!1;const b=()=>[...document.querySelectorAll(`${w} .eggo-discount-tag`)].map((e=>e.dataset.discountCode)),S=e=>b().some((t=>t.toLowerCase()===e.toLowerCase())),E=()=>{const e=document.querySelector(`${w} .eggo-cart-totals`);e&&u(parseInt(e.dataset.cartTotal)/100)},q=async e=>{const t=[{id:"main-cart-items",section:document.getElementById("main-cart-items").dataset.id,selector:".js-contents"},{id:"cart-icon-bubble",section:"cart-icon-bubble",selector:".shopify-section"},{id:"main-cart-footer",section:document.getElementById("main-cart-footer").dataset.id,selector:".js-contents"}],n=await fetch(`${routes.cart_update_url}.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({discount:e.join(","),sections:t.map((e=>e.section)),sections_url:window.location.pathname})}
1),r=await n.json();t.forEach((e=>{const t=document.getElementById(e.id);var n,i;(t.querySelector(e.selector)||t).innerHTML=(n=r.sections[e.section],i=e.selector,(new DOMParser).parseFromString(n,"text/html").querySelector(i).innerHTML)})),E()},C=async e=>{if(!L){L=!0;try{await e()}catch(e){console.error(e),window.location=routes.cart_url}finally{L=!1}}};document.addEventListener("DOMContentLoaded",(function(){document.querySelector(w)&&(E(),document.addEventListener("eggo-cart-rendered",E),document.addEventListener("submit",(e=>{const t=e.target.closest(`${w} .eggo-discount-form`);if(!t)return;e.preventDefault();const n=t.querySelector(".eggo-discount-form__input").value.trim();n&&C((()=>(async e=>{const t=b(),n=S(e)?t:[...t,e];await q(n),S(e)||(await q(t),(e=>{const t=document.querySelector(`${w} .eggo-discount-form__error`),n=document.querySelector(`${w} .eggo-discount-form__input`);t&&n&&(n.value=e,t.hidden=!1)})(e))})(n)))})),document.addEventListener("click",(e=>{const t=e.target.closest(`${w} .eggo-discount-tag__remove`);t&&C((()=>(async e=>{await q(b().filter((t=>t!==e)))})(t.closest(".eggo-discount-tag").dataset.discountCode)))})))}));const M="product-bundle-variation-clicked",k="is-js",x="strategy-123",A="strategy-multi",T="strategy-bundle",D="selected",$="disable";document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".eggo-product");te(),e&&(P(),O(),N(),F(),R(),W(),Y(),ae(),U(),J(),ee(),ne(),re(),oe(),se(),I())}));const I=()=>{const e=document.querySelectorAll(".currently-watching");if(!e.length)return;const t=e[0].querySelector(".currently-watching__info");if(!t)return;const n=t.dataset.showAnalytics,r=t.dataset.showMax;if(!n||!r)return;const i=parseInt(n)+Math.floor(Math.random()*(parseInt(r)-parseInt(n)));e.forEach((e=>{const t=e.querySelector(".currently-watching__number-inner");t&&(t.innerHTML=i,t.classList.remove("loading"))}))},P=()=>{document.querySelectorAll(".eggo-stars").forEach((e=>{const t=e.querySelector(".stamped-badge-caption"),n=e.querySelector(".eggo-product__rating-final-total"),r=e.querySelector(".eggo-stars-percentage-color"),i=e.querySelector("#eggo-badge");if(!t)return void e.remove();const o=t.dataset.rating,s="calc("+o/5*100+"% + "+o/5*2+"px)";let a=t.dataset.reviews;if(i){const e=i.dataset.reviewCount;e&&(a=parseInt(e))}const c=a>4?stringReviews.more:stringReviews[a];n&&(n.innerHTML=`<span class="eggo-product__rating-final-total">${a} ${c}</span>`),r.style.width=s}))},O=()=>{const e=document.querySelector(".eggo-product__info-tabs");e&&document.querySelectorAll(".eggo-product__info-tab").forEach((t=>{t.addEventListener("click",(function(){const n=this.dataset.toggleGroup,r=this.dataset.show;if(t.classList.contains("checked")){if(t.classList.remove("checked"),"rest-tabs"!==n)return;return t.parentNode.querySelector(".eggo-product__info-tab-content").classList.remove("checked")}G(e.querySelectorAll(`[data-group='${n}']`)),G(e.querySelectorAll(`[data-toggle-group='${n}']`)),e.querySelector(`[data-tab-content='${r}']`).classList.add("checked"),t.classList.add("checked")}))}))},G=e=>{e.forEach((e=>e.classList.remove("checked")))},N=()=>{const e=document.querySelectorAll(".eggo-product__variant-selector .product-card__variant-element"),t=document.querySelectorAll(".eggo-product__info-offer--main .product-card__variant-color"),n=document.querySelector(".eggo-product__info-offer--main .product-card__price--current-value"),r=document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart"),i=document.querySelector(".eggo-product__info-add-to-cart div.eggo-button--buy");B(r,i),t.length&&t.forEach((e=>{e.classList.contains(D)&&H(e,r,i)})),e.forEach((t=>{t.addEventListener("click",(()=>{if(t.classList.contains("group-variation"))t.parentNode.querySelectorAll(".group-variation").forEach((e=>e.classList.remove("selected"))),t.classList.add("selected"),B(r,i);else if(t.classList.contains("bundle-variation")){t.parentNode.querySelectorAll(".bundle-variation").forEach((e=>e.classList.remove(D))),t.classList.add(D);const e=le(document.querySelector(".add-to-cart-basic .eggo-product__variant-selector"),r);e&&o(M,e)}else e.forEach((e=>e.classList.remove("selected"))),t.classList.add("selected"),H(t,r,i);j(t.dataset.variationId),t.classList.contains("product-card__variant-color--gift")&&(n.innerHTML=t.dataset.price)}))}))},B=(e,t)=>{const n=document.querySelector(".eggo-product__info-additional-offer-123.checked");
1n&&(n.querySelectorAll(".selected.notavailable").length?(e&&e.classList.add("hide-this"),t&&t.classList.remove("hide-this")):(e&&e.classList.remove("hide-this"),t&&t.classList.add("hide-this")))},H=(e,t,n)=>{e.classList.contains("notavailable")?(t&&t.classList.add("hide-this"),n&&n.classList.remove("hide-this")):(t&&t.classList.remove("hide-this"),n&&n.classList.add("hide-this"))},j=e=>{document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart.eggo-button--buy").dataset.variation=e},F=()=>{const e=document.querySelector(".eggo-product__info-quantity-input-input"),t=document.querySelector(".eggo-product__info-quantity-input-plus"),n=document.querySelector(".eggo-product__info-quantity-input-minus");t&&t.addEventListener("click",(()=>{e.stepUp(1),U()})),n&&n.addEventListener("click",(()=>{e.stepDown(1),U()})),document.addEventListener(r,(()=>U()))},R=()=>{const e=document.querySelector(".eggo-product__info"),t=e.querySelector(".eggo-product__info-quantity-input-input"),n=e.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart.eggo-button--buy");n&&n.addEventListener("click",(function(e){if(e.preventDefault(),n.classList.contains(A)){const e=document.querySelectorAll(".eggo-product__info-offer--main .product-card__variant-color.selected"),t=document.querySelector(".eggo-product__info-offer--main .eggo-product__info-quantity-input-input");V(e),t&&(t.value=1),U()}else if(n.classList.contains(x)){const e=document.querySelector(".eggo-product__info-additional-offer-123.checked");if(!e)return;const t=e.querySelectorAll(".product-card__variant-color.selected");V(t)}else n.classList.contains(T)?de(document.querySelector(".add-to-cart-basic .eggo-product__variant-selector"),t.value):p([{id:this.dataset.variation,quantity:t.value}])}))},V=e=>{if(!e.length)return;const t=Array.from(e).reduce(((e,t)=>(e?.[t.dataset.variationId]?e[t.dataset.variationId].quantity++:e[t.dataset.variationId]={id:t.dataset.variationId,quantity:1},e)),{});p(Object.values(t))},W=()=>{const e=document.querySelectorAll(".add-to-cart-basic .eggo-product__info-offer"),t=document.querySelectorAll(".add-to-cart-basic .eggo-product__info .product-card__variant-color"),n=document.querySelector(".add-to-cart-basic .eggo-product__info-add-to-cart .is-add-to-cart"),r=document.querySelector(".add-to-cart-basic .eggo-product__info-add-to-cart div.eggo-button--buy");0!==e.length&&e.forEach((i=>{i.addEventListener("click",(()=>{if(i.classList.contains("checked"))return;const o=i.querySelectorAll(".product-card__variant-color");if(e.forEach((e=>e.classList.remove("checked"))),0!==o.length&&(t.forEach((e=>e.classList.remove(D))),o[0].classList.add(D),j(o[0].dataset.variationId),H(o[0],n,r)),i.classList.contains("eggo-product__info-additional-offer")){const e=document.querySelector(".eggo-button--buy.strategy-multi");e&&e.classList.remove(A)}else{const e=document.querySelector(".eggo-product__info-offer--main .eggo-product__info-quantity-input-input");e&&(e.value=1),U()}i.classList.add("checked")}))}))},Y=()=>{const e=document.querySelectorAll(".add-to-cart-123 .eggo-product__info-offer");if(0===e.length)return;const t=document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart"),n=document.querySelector(".eggo-product__info-add-to-cart div.eggo-button--buy");t&&(t.classList.add(x),e.forEach((r=>{r.addEventListener("click",(()=>{r.classList.contains("checked")||(e.forEach((e=>e.classList.remove("checked"))),r.classList.add("checked"),B(t,n))}))})))},U=async()=>{const e=document.querySelector(".eggo-product__info-offer--main .eggo-product__upsell-messages"),t=document.querySelector(".eggo-product__info-offer--main .eggo-product__info-quantity-input-input");if(!e)return;const n=document.querySelector(".eggo-product__info-offer--main .eggo-product__upsell-message-container"),r=document.querySelector(".eggo-product__info-offer--main .product-card__price--current:not(.is-js)"),i=document.querySelector(".eggo-product__info-offer--main .product-card__variant-colors"),o=document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart"),s=e.dataset.quantityUpsell,a=parseInt(e.dataset.productId);if(!s)return;const c=JSON.parse(s);if(0===c.length)return;const d=c.reduce(((e,t)=>{const n=t.split(":");return e[n[0]]=n,e}),{});Q(d,a,n,r,i,o,parseInt(t.value))},Q=(e,t,n,r,i,o,s)=>{if(e?.[s]){const t=e[s];r.classList.remove("product-card__price--regular");const a=document.querySelector(".product-card__price--current.is-js");a&&a.remove();const c=document.querySelector(".small-discount-badge.is-js");if(c&&c.remove(),o.classList.remove(A),i&&(Z(i,s),o.classList.add(A)),t?.[2]){const e=t[2];n.classList.remove("message-green"),n.classList.remove("message-red"),n.classList.add(`message-${e}`)}t?.[4]&&r.parentNode.append(X(t?.[4])),t?.[3]&&(r.classList.add("product-card__price--regular"),r.parentNode.append(z(t[3]))),n.innerHTML=t[1].replace(/\[b\]/,"<strong>").replace(/\[\/b\]/,"</strong>"),n.classList.remove("hide-this")}else n.classList.add("hide-this")},z=e=>{const t=document.createElement("span");return t.classList.add("product-card__price--current"),t.classList.add(k),t.innerHTML=e,t},X=e=>{const t=document.createElement("span");return t.classList.add("small-discount-badge"),t.classList.add("small-discount-badge--green"),t.classList.add(k),t.innerHTML=e,t},Z=(e,t)=>{const n=document.querySelectorAll(".eggo-product__info-offer.eggo-product__info-offer--main .product-card__variant-colors");n.length<t?(e.parentNode.append(((e,t)=>{const n=document.createElement("div");return n.classList.add("product-card__variant-colors"),n.classList.add("product-card__variant-colors--"+t),n.classList.add(k),n.innerHTML=e,n})(e.innerHTML,t-1)),v(`.product-card__variant-colors--${t-1}.is-js .product-card__variant-color`)):(n.length>1&&n.length!==t&&e.parentNode.lastChild.remove(),1===t&&e.parentNode.querySelectorAll(".is-js").forEach((e=>e.remove())))},J=()=>{const e=()=>
1{n.forEach((e=>{const n=e.querySelector(".is-add-to-cart"),r=e.querySelector(".eggo-section-product__card-content");t<=767?r.querySelector(".is-add-to-cart")&&(n.remove(),e.append(n)):r.querySelector(".is-add-to-cart")||(n.remove(),r.append(n))}))};let t=K();const n=document.querySelectorAll(".eggo-section-product__card-cols");n.length&&(e(),window.addEventListener("resize",(()=>{t=K(),e()})))},K=()=>Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),ee=()=>{0!==document.querySelectorAll(".squizz-products").length&&new Swiper(".squizz-products",{spaceBetween:12,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{200:{slidesPerView:1,spaceBetween:12},410:{slidesPerView:2,spaceBetween:12},650:{slidesPerView:3,spaceBetween:12},1025:{slidesPerView:4}}})},te=()=>{0!==document.querySelectorAll(".eggo-product-reviews__cards-slider").length&&new Swiper(".eggo-product-reviews__cards-slider",{spaceBetween:16,slidesPerView:1,allowTouchMove:!1,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{380:{slidesPerView:2},769:{slidesPerView:3}}})},ne=()=>{const e=document.querySelector(".eggo-product__fixed-add-to-cart");if(!e)return;const t=document.querySelector(".eggo-product__info-add-to-cart");if(!t)return;let n=window.scrollY,r=t.offsetTop+t.offsetHeight;e&&(ie(e,r,n),window.addEventListener("scroll",(()=>{Math.abs(n-window.scrollY)<32||(n=window.scrollY,ie(e,r,n))})))},re=()=>{const e=document.querySelector(".eggo-product__go-up");e&&e.addEventListener("click",(()=>{window.scrollTo(0,0)}))},ie=(e,t,n)=>{n>t?e.classList.contains("visible")||(e.classList.add("visible"),document.body.classList.add("product-floating-cart-visible")):e.classList.contains("visible")&&(e.classList.remove("visible"),document.body.classList.remove("product-floating-cart-visible"))},oe=()=>{const e=document.querySelector(".eggo-product__fixed-add-to-cart .is-add-to-cart"),t=document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart"),n=document.querySelector(".eggo-product__info-offer");e&&t&&e.addEventListener("click",(e=>{e.preventDefault(),t.dataset.variation&&!t.classList.contains("hide-this")?t.click():n&&window.scrollTo(0,n.offsetTop-24)}))},se=()=>{const e=document.querySelector(".eggo-product-video");if(!e)return;const t=e.querySelector(".eggo-product-video__close"),n=e.querySelector("video");t&&t.addEventListener("click",(()=>{e.remove()})),n&&n.addEventListener("click",(t=>{t.preventDefault(),e.classList.toggle("eggo-product-video--large"),n.muted=!1}))},ae=()=>{const e=document.querySelector(".eggo-product__variant-selector-special"),t=document.querySelector(".eggo-product__info-add-to-cart .is-add-to-cart");e&&t&&(t.classList.add(T),ce(t)||t.classList.add($))},ce=e=>{if("undefined"==typeof bundleVariants)return;if(!e)return;const t=e.querySelectorAll(".product-card__variant-element.selected");if(!t)return;const n=Array.from(t).reduce(((e,t)=>e+t.dataset.optionValue),"");return bundleVariants?.[n]?bundleVariants[n]:void 0},de=(e,t)=>{const n=ce(e);n&&p([{id:n.id,quantity:t}])},le=(e,t)=>{if(!e||!t)return;const n=ce(e);return n?(t.classList.remove($),n):(t.classList.add($),!1)},ue={navigation:{instance:null},gallery:{instance:null}},ge=e=>{const t=e.$el[0].querySelector(".variation-slide-remove");if(!t)return;const n=t.dataset.swiperSlideIndex;e.removeSlide(n)};document.addEventListener("DOMContentLoaded",(function(){if(!document.querySelector(".eggo-product"))return;const e=document.querySelector(".eggo-product__gallery--no-variation");ue.navigation.instance=new Swiper(".eggo-product__gallery-slider-navigation",{spaceBetween:16,freeMode:!0,slidesPerView:"auto"}),ue.gallery.instance=new Swiper(".eggo-product__gallery-slider",{loop:!0,slidesPerView:1,thumbs:{swiper:ue.navigation.instance},navigation:{nextEl:".product-swiper-button-next",prevEl:".product-swiper-button-prev"}}),ue.gallery.instance.on("slideChange",(function(e){const t=ue.navigation.instance.snapGrid[1];ue.navigation.instance.slideTo(e.realIndex),ue.navigation.instance.translateTo(-t*(e.realIndex-1)),pe(e.realIndex>0),me(0===e.realIndex)})),he(ue.gallery.instance),e&&document.addEventListener(M,(e=>{const t=e.detail;ge(ue.gallery.instance),ue.gallery.instance.appendSlide(`<div class="swiper-slide variation-sli
1de-remove"><img src="${t.mainImage}" /></div>`),ue.gallery.instance.slideTo(-1,0,!1),ue.gallery.instance.once("slideChangeTransitionEnd",(e=>{ge(e)}))}))}));const he=e=>{const t=document.querySelectorAll(".product-card__variant-colors .product-card__variant-color");0!==t.length&&t.forEach((t=>{t.addEventListener("click",(()=>{const n=document.querySelector(".eggo-product__gallery-slider");if(!n)return;const r=n.querySelector(`.swiper-slide[data-media-id='${t.dataset.mediaId}']`);if(!r)return;const i=r.dataset?.swiperSlideIndex;i&&e.slideTo(parseInt(i)+1)}))}))},pe=e=>{const t=document.querySelector(".eggo-gallery-see-results");t&&(e?t.classList.add("visible"):t.classList.remove("visible"))},me=e=>{const t=document.querySelector(".eggo-product__gallery-slider .text-badge");t&&(e?t.classList.add("visible"):t.classList.remove("visible"))};n(478),n(212),n(379);var fe=!1;if("undefined"!=typeof window){var ve={get passive(){fe=!0}};window.addEventListener("testPassive",null,ve),window.removeEventListener("testPassive",null,ve)}var ye="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),_e=[],we=!1,Le=-1,be=void 0,Se=void 0,Ee=function(e){return _e.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},qe=function(e){var t=e||window.event;return!!Ee(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)},Ce=function(e,t){if(e){if(!_e.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};_e=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(_e),[n]),ye?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Le=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Le;!Ee(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?qe(e):e.stopPropagation())}(t,e)},we||(document.addEventListener("touchmove",qe,fe?{passive:!1}:void 0),we=!0)):function(e){if(void 0===Se){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Se=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===be&&(be=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Me=function(e){e?(_e=_e.filter((function(t){return t.targetElement!==e})),ye?(e.ontouchstart=null,e.ontouchmove=null,we&&0===_e.length&&(document.removeEventListener("touchmove",qe,fe?{passive:!1}:void 0),we=!1)):_e.length||(void 0!==Se&&(document.body.style.paddingRight=Se,Se=void 0),void 0!==be&&(document.body.style.overflow=be,be=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelectorAll(".eggo-product-reviews__card-image");0!==e.length&&e.forEach((e=>{new class{constructor(e,t={}){this.settings=Object.assign({controlColor:"#FFFFFF",controlShadow:!0,addCircle:!1,addCircleBlur:!0,showLabels:!1,labelOptions:{before:"Before",after:"After",onHover:!1},smoothing:!0,smoothingAmount:100,hoverStart:!1,verticalMode:!1,startingPoint:50,fluidMode:!1},t),this.safariAgent=-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome"),this.el=e,this.images={},this.wrapper=null,this.control=null,this.arrowContainer=null,this.arrowAnimator=[],this.active=!1,this.slideWidth=50,this.lineWidth=2,this.arrowCoordinates={circle:[5,3],standard:[8,0]}}mount(){this.safariAgent&&(this.settings.smoothing=!1),this._shapeContainer(),this._getImages(),this._buildControl(),this._events()}_events(){this.el.addEventListener("mousedown",(e=>{this._activate(!0),document.body.classList.add("icv__body"),Ce(this.el,{reserveScrollBarGap:!0}),this._slideCompare(e)})),this.el.addEventListener("mousemove",(e=>this.active&&this._slideCompare(e))),this.el.addEventListener("mouseup",(()=>this._activate(!1))),document.body.addEventListener("mouseup",(()=>{document.body.classList.remove("icv__body"),Me(this.el),this._activate(!1)})),this.control.addEventListener("touchstart",(e=>{this._activate(!0),document.body.classList.add("icv__body"),Ce(this.el,{reserveScrollBarGap:!0})})),this.el.addEventListener("touchmove",(e=>{this.active&&this._slideCompare(e)})),this.el.addEventListener("touchend",(()=>{this._activate(!1),document.body.classList.remove("icv__body"),Me(this.el)})),this.el.addEventListener("mouseenter",(()=>{this.settings.hoverStart&&this._activate(!0);let e=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach(((t,n)=>{t.style.cssText=`\n ${this.settings.verticalMode?`transform: translateY(${e[1]*(0===n?1:-1)}px);`:`transform: translateX(${e[1]*(0===n?1:-1)}px);`}\n `}))})),this.el.addEventListener("mouseleave",(()=>{let e=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach(((t,n)=>{t.style.cssText=`\n ${this.settings.verticalMode?`transform: translateY(${0===n?`${e[0]}px`:`-${e[0]}px`});`:`transform: translateX(${0===n?`${e[0]}px`:`-${e[0]}px`});`}\n `}))}))}_slideCompare(e){let t=this.el.getBoundingClientRect(),n=void 0!==e.touches?e.touches[0].clientX-t.left:e.clientX-t.left,r=void 0!==e.touches?e.touches[0].clientY-t.top:e.clientY-t.top,i=this.settings.verticalMode?r/t.height*100:n/t.width*100;i>=0&&i<=100&&(this.settings.verticalMode?this.control.style.top=`calc(${i}% - ${this.slideWidth/2}px)`:this.control.style.left=`calc(${i}% - ${this.slideWidth/2}px)`,this.settings.fluidMode?this.settings.verticalMode?this.wrapper.style.clipPath=`inset(0 0 ${100-i}% 0)`:this.wrapper.style.clipPath=`inset(0 0 0 ${i}%)`:this.settings.verticalMode?this.wrapper.style.height=`calc(${i}%)`:this.wrapper.style.width=`calc(${100-i}%)`)}_activate(e){this.active=e}_shapeContainer(){let e=document.createElement("div"),t=document.createElement("span"),n=document.createElement("span");t.classList.add("icv__label","icv__label-before","keep"),n.classList.add("icv__label","icv__label-after","keep"),this.settings.labelOptions.onHover&&(t.classList.add("on-hover"),n.classList.add("on-hover")),this.settings.verticalMode&&(t.classList.add("vertical"),n.classList.add("vertical")),t.innerHTML=this.settings.labelOptions.before||"Before",n.innerHTML=this.settings.labelOptions.after||"After",this.settings.showLabels&&(this.el.appendChild(t),this.el.appendChild(n)),this.el.classList.add("icv",this.settings.verticalMode?"icv__icv--vertical":"icv__icv--horizontal",this.settings.fluidMode?"icv__is--fluid":"standard"),e.classList.add("icv__imposter"),this.el.appendChild(e)}_buildControl(){let e=document.createElement("div"),t=document.createElement("div"),n=document.createElement("div"),r=document.createElement("div");n.classList.add("icv__theme-wrapper");for(var i=0;i<=1;i++){let e=document.createElement("div"),t=`<svg\n height="15"\n width="15"\n style="\n transform: \n scale(${this.settings.addCircle?.7:1.5}) \n rotateZ(${0===i?this.settings.verticalMode?"-90deg":"180deg":this.settings.verticalMode?"90deg":"0
1deg"}); height: 20px; width: 20px;\n \n ${this.settings.controlShadow?`\n -webkit-filter: drop-shadow( 0px 3px 5px rgba(0, 0, 0, .33));\n filter: drop-shadow( 0px ${0===i?"-3px":"3px"} 5px rgba(0, 0, 0, .33));\n `:""}\n "\n xmlns="http://www.w3.org/2000/svg" data-name="Layer 1" viewBox="0 0 15 15">\n <path ${this.settings.addCircle?'fill="transparent"':`fill="${this.settings.controlColor}"`}\n stroke="${this.settings.controlColor}"\n stroke-linecap="round"\n stroke-width="${this.settings.addCircle?3:0}"\n d="M4.5 1.9L10 7.65l-5.5 5.4"\n />\n </svg>`;e.innerHTML+=t,this.arrowAnimator.push(e),n.appendChild(e)}let o=this.settings.addCircle?this.arrowCoordinates.circle:this.arrowCoordinates.standard;this.arrowAnimator.forEach(((e,t)=>{e.classList.add("icv__arrow-wrapper"),e.style.cssText=`\n ${this.settings.verticalMode?`transform: translateY(${0===t?`${o[0]}px`:`-${o[0]}px`});`:`transform: translateX(${0===t?`${o[0]}px`:`-${o[0]}px`});`}\n `})),e.classList.add("icv__control"),e.style.cssText=`\n ${this.settings.verticalMode?"height":"width "}: ${this.slideWidth}px;\n ${this.settings.verticalMode?"top":"left "}: calc(${this.settings.startingPoint}% - ${this.slideWidth/2}px);\n ${"ontouchstart"in document.documentElement?"":this.settings.smoothing?`transition: ${this.settings.smoothingAmount}ms ease-out;`:""}\n `,t.classList.add("icv__control-line"),t.style.cssText=`\n ${this.settings.verticalMode?"height":"width "}: ${this.lineWidth}px;\n background: ${this.settings.controlColor};\n ${this.settings.controlShadow?"box-shadow: 0px 0px 15px rgba(0,0,0,0.33);":""}\n `;let s=t.cloneNode(!0);r.classList.add("icv__circle"),r.style.cssText=`\n\n ${this.settings.addCircleBlur&&"-webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px)"};\n \n border: ${this.lineWidth}px solid ${this.settings.controlColor};\n ${this.settings.controlShadow&&"box-shadow: 0px 0px 15px rgba(0,0,0,0.33)"};\n `,e.appendChild(t),this.settings.addCircle&&e.appendChild(r),e.appendChild(n),e.appendChild(s),this.arrowContainer=n,this.control=e,this.el.appendChild(e)}_getImages(){let e=this.el.querySelectorAll("img, .keep");this.el.innerHTML="",e.forEach((e=>{this.el.appendChild(e)}));let t=[...e].filter((e=>"img"===e.nodeName.toLowerCase()));this.settings.verticalMode&&t.reverse();for(let e=0;e<=1;e++){let n=t[e];if(n.classList.add("icv__img"),n.classList.add(0===e?"icv__img-a":"icv__img-b"),1===e){let e=document.createElement("div"),r=t[1].src;e.classList.add("icv__wrapper"),e.style.cssText=`\n width: ${100-this.settings.startingPoint}%; \n height: ${this.settings.startingPoint}%;\n\n ${"ontouchstart"in document.documentElement?"":this.settings.smoothing?`transition: ${this.settings.smoothingAmount}ms ease-out;`:""}\n ${this.settings.fluidMode&&`background-image: url(${r}); clip-path: inset(${this.settings.verticalMode?` 0 0 ${100-this.settings.startingPoint}% 0`:`0 0 0 ${this.settings.startingPoint}%`})`}\n `,e.appendChild(n),this.wrapper=e,this.el.appendChild(this.wrapper)}}if(this.settings.fluidMode){let e=t[0].src,n=document.createElement("div");n.classList.add("icv__fluidwrapper"),n.style.cssText=`\n \n background-image: url(${e});\n \n `,this.el.appendChild(n)}}}(e,{smoothing:!1}).mount()}))})),n(577);var ke={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},xe={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Ae=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Te={CSS:{},springs:{}};function De(e,t,n){return Math.min(Math.max(e,t),n)}function $e(e,t){return e.indexOf(t)>-1}function Ie(e,t){return e.apply(null,t)}var Pe={arr:function(e){return Array.isArray(e)},obj:function(e){return $e(Object.prototype.toString.call(e),"Object")},pth:function(e){return Pe.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement}
vendor: 7,123 bytes, line 1
1,dom:function(e){return e.nodeType||Pe.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return Pe.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return Pe.hex(e)||Pe.rgb(e)||Pe.hsl(e)},key:function(e){return!ke.hasOwnProperty(e)&&!xe.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function Oe(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function Ge(e,t){var n=Oe(e),r=De(Pe.und(n[0])?1:n[0],.1,100),i=De(Pe.und(n[1])?100:n[1],.1,100),o=De(Pe.und(n[2])?10:n[2],.1,100),s=De(Pe.und(n[3])?0:n[3],.1,100),a=Math.sqrt(i/r),c=o/(2*Math.sqrt(i*r)),d=c<1?a*Math.sqrt(1-c*c):0,l=c<1?(c*a-s)/d:-s+a;function u(e){var n=t?t*e/1e3:e;return n=c<1?Math.exp(-n*c*a)*(1*Math.cos(d*n)+l*Math.sin(d*n)):(1+l*n)*Math.exp(-n*a),0===e||1===e?e:1-n}return t?u:function(){var t=Te.springs[e];if(t)return t;for(var n=1/6,r=0,i=0;;)if(1===u(r+=n)){if(++i>=16)break}else i=0;var o=r*n*1e3;return Te.springs[e]=o,o}}function Ne(e){return void 0===e&&(e=10),function(t){return Math.ceil(De(t,1e-6,1)*e)*(1/e)}}var Be,He,je=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function r(e){return 3*e}function i(e,i,o){return((t(i,o)*e+n(i,o))*e+r(i))*e}function o(e,i,o){return 3*t(i,o)*e*e+2*n(i,o)*e+r(i)}return function(t,n,r,s){if(0<=t&&t<=1&&0<=r&&r<=1){var a=new Float32Array(11);if(t!==n||r!==s)for(var c=0;c<11;++c)a[c]=i(c*e,t,r);return function(c){return t===n&&r===s||0===c||1===c?c:i(function(n){for(var s=0,c=1;10!==c&&a[c]<=n;++c)s+=e;--c;var d=s+(n-a[c])/(a[c+1]-a[c])*e,l=o(d,t,r);return l>=.001?function(e,t,n,r){for(var s=0;s<4;++s){var a=o(t,n,r);if(0===a)return t;t-=(i(t,n,r)-e)/a}return t}(n,d,t,r):0===l?d:function(e,t,n,r,o){var s,a,c=0;do{(s=i(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(s)>1e-7&&++c<10);return a}(n,s,s+e,t,r)}(c),n,s)}}}}(),Fe=(Be={linear:function(){return function(e){return e}}},He={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=De(e,1,10),r=De(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach((function(e,t){He[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(He).forEach((function(e){var t=He[e];Be["easeIn"+e]=t,Be["easeOut"+e]=function(e,n){return function(r){return 1-t(e,n)(1-r)}},Be["easeInOut"+e]=function(e,n){return function(r){return r<.5?t(e,n)(2*r)/2:1-t(e,n)(-2*r+2)/2}},Be["easeOutIn"+e]=function(e,n){return function(r){return r<.5?(1-t(e,n)(1-2*r))/2:(t(e,n)(2*r-1)+1)/2}}})),Be);function Re(e,t){if(Pe.fnc(e))return e;var n=e.split("(")[0],r=Fe[n],i=Oe(e);switch(n){case"spring":return Ge(e,t);case"cubicBezier":return Ie(je,i);case"steps":return Ie(Ne,i);default:return Ie(r,i)}}function Ve(e){try{return document.querySelectorAll(e)}catch(e){return}}function We(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var s=e[o];t.call(r,s,o,e)&&i.push(s)}return i}function Ye(e){return e.reduce((function(e,t){return e.concat(Pe.arr(t)?Ye(t):t)}),[])}function Ue(e){return Pe.arr(e)?e:(Pe.str(e)&&(e=Ve(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function Qe(e,t){return e.some((function(e){return e===t}))}function ze(e){var t={};for(var n in e)t[n]=e[n];return t}function Xe(e,t){var n=ze(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function Ze(e,t){var n=ze(e);for(var r in t)n[r]=Pe.und(e[r])?t[r]:e[r];return n}function Je(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function Ke(e,t){return Pe.fnc(e)?e(t.target,t.id,t.total):e}function et(e,t){return e.getAttribute(t)}function tt(e,t,n){if(Qe([n,"deg","rad","turn"],Je(t)))return t;var r=Te.CSS[t+n];if(!Pe.und(r))return r;var i=document.createElement(e.tagName),o=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;o.appendChild(i),i.style.position="absolute",i.style.width=100+n;var s=100/i.offsetWidth;o.removeChild(i);var a=s*parseFloat(t);return Te.CSS[t+n]=a,a}function nt(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?tt(e,i,n):i}}function rt(e,t){return Pe.dom(e)&&!Pe.inp(e)&&(!Pe.nil(et(e,t))||Pe.svg(e)&&e[t])?"attribute":Pe.dom(e)&&Qe(Ae,t)?"transform":Pe.dom(e)&&"transform"!==t&&nt(e,t)?"css":null!=e[t]?"object":void 0}function it(e){if(Pe.dom(e)){for(var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;t=r.exec(n);)i.set(t[1],t[2]);return i}}function ot(e,t,n,r){switch(rt(e,t)){case"transform":return function(e,t,n,r){var i=$e(t,"scale")?1:0+function(e){return $e(e,"translate")||"perspective"===e?"px":$e(e,"rotate")||$e(e,"skew")?"deg":void 0}(t),o=it(e).get(t)||i;return n&&(n.transforms.list.set(t,o),n.transforms.last=t),r?tt(e,o,r):o}(e,t,r,n);case"css":return nt(e,t,n);case"attribute":return et(e,t);default:return e[t]||0}}function st(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=Je(e)||0,i=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function at(e,t){if(Pe.col(e))return function(e){return Pe.rgb(e)?(n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+n[1]+",1)":t:Pe.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(n[1],16)+","+parseInt(n[2],16)+","+parseInt(n[3],16)+",1)"}(e):Pe.hsl(e)?function(e){var t,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(i[1],10)/360,s=parseInt(i[2],10)/100,a=parseInt(i[3],10)/100,c=i[4]||1;function d(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==s)t=n=r=a;else{var l=a<.5?a*(1+s):a+s-a*s,u=2*a-l;t=d(u,l,o+1/3),n=d(u,l,o),r=d(u,l,o-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+c+")"}(e):void 0;var t,n}(e);if(/\s/g.test(e))return e;var n=Je(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function ct(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function dt(e){for(var t,n=e.points,r=0,i=0;i<n.numberOfItems;i++){var o=n.getItem(i);i>0&&(r+=ct(t,o)),t=o}return r}function lt(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*et(e,"r")}(e);
1case"rect":return function(e){return 2*et(e,"width")+2*et(e,"height")}(e);case"line":return function(e){return ct({x:et(e,"x1"),y:et(e,"y1")},{x:et(e,"x2"),y:et(e,"y2")})}(e);case"polyline":return dt(e);case"polygon":return function(e){var t=e.points;return dt(e)+ct(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function ut(e,t){var n=t||{},r=n.el||function(e){for(var t=e.parentNode;Pe.svg(t)&&Pe.svg(t.parentNode);)t=t.parentNode;return t}(e),i=r.getBoundingClientRect(),o=et(r,"viewBox"),s=i.width,a=i.height,c=n.viewBox||(o?o.split(" "):[0,0,s,a]);return{el:r,viewBox:c,x:c[0]/1,y:c[1]/1,w:s,h:a,vW:c[2],vH:c[3]}}function gt(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var i=ut(e.el,e.svg),o=r(),s=r(-1),a=r(1),c=n?1:i.w/i.vW,d=n?1:i.h/i.vH;switch(e.property){case"x":return(o.x-i.x)*c;case"y":return(o.y-i.y)*d;case"angle":return 180*Math.atan2(a.y-s.y,a.x-s.x)/Math.PI}}function ht(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=at(Pe.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:Pe.str(e)||t?r.split(n):[]}}function pt(e){return We(e?Ye(Pe.arr(e)?e.map(Ue):Ue(e)):[],(function(e,t,n){return n.indexOf(e)===t}))}function mt(e){var t=pt(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:it(e)}}}))}function ft(e,t){var n=ze(t);if(/^spring/.test(n.easing)&&(n.duration=Ge(n.easing)),Pe.arr(e)){var r=e.length;2!==r||Pe.obj(e[0])?Pe.fnc(t.duration)||(n.duration=t.duration/r):e={value:e}}var i=Pe.arr(e)?e:[e];return i.map((function(e,n){var r=Pe.obj(e)&&!Pe.pth(e)?e:{value:e};return Pe.und(r.delay)&&(r.delay=n?0:t.delay),Pe.und(r.endDelay)&&(r.endDelay=n===i.length-1?t.endDelay:0),r})).map((function(e){return Ze(e,n)}))}var vt={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){if(r.list.set(t,n),t===r.last||i){var o="";r.list.forEach((function(e,t){o+=t+"("+e+") "})),e.style.transform=o}}};function yt(e,t){mt(e).forEach((function(e){for(var n in t){var r=Ke(t[n],e),i=e.target,o=Je(r),s=ot(i,n,o,e),a=st(at(r,o||Je(s)),s),c=rt(i,n);vt[c](i,n,a,e.transforms,!0)}}))}function _t(e,t){return We(Ye(e.map((function(e){return t.map((function(t){return function(e,t){var n=rt(e.target,t.name);if(n){var r=function(e,t){var n;return e.tweens.map((function(r){var i=function(e,t){var n={};for(var r in e){var i=Ke(e[r],t);Pe.arr(i)&&1===(i=i.map((function(e){return Ke(e,t)}))).length&&(i=i[0]),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}(r,t),o=i.value,s=Pe.arr(o)?o[1]:o,a=Je(s),c=ot(t.target,e.name,a,t),d=n?n.to.original:c,l=Pe.arr(o)?o[0]:d,u=Je(l)||Je(c),g=a||u;return Pe.und(s)&&(s=d),i.from=ht(l,g),i.to=ht(st(s,l),g),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=Re(i.easing,i.duration),i.isPath=Pe.pth(o),i.isPathTargetInsideSVG=i.isPath&&Pe.svg(t.target),i.isColor=Pe.col(i.from.original),i.isColor&&(i.round=1),n=i,i}))}(t,e),i=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}(e,t)}))}))),(function(e){return!Pe.und(e)}))}function wt(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,i.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,i.endDelay=n?i.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,i}var Lt=0,bt=[],St=function(){var e;function t(n){for(var r=bt.length,i=0;i<r;){var o=bt[i];o.paused?(bt.splice(i,1),r--):(o.tick(n),i++)}e=i>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){qt.suspendWhenDocumentHidden&&(Et()?e=cancelAnimationFrame(e):(bt.forEach((function(e){return e._onDocumentVisibility()})),St()))})),function(){e||Et()&&qt.suspendWhenDocumentHidden||!(bt.length>0)||(e=requestAnimationFrame(t))}}();function Et(){return!!document&&document.hidden}function qt(e){void 0===e&&(e={});var t,n=0,r=0,i=0,o=0,s=null;function a(e){var t=window.Promise&&new Promise((function(e){return s=e}));return e.finished=t,t}var c=function(e){var t=Xe(ke,e),n=Xe(xe,e),r=function(e,t){var n=[],r=t.keyframes;for(var i in r&&(t=Ze(function(e){for(var t=We(Ye(e.map((function(e){return Object.keys(e)}))),(function(e){return Pe.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var i=t[r];n[i]=e.map((function(e){var t={};for(var n in e)Pe.key(n)?n==i&&(t.value=e[n]):t[n]=e[n];return t}))},i=0;i<t.length;i++)r(i);return n}(r),t)),t)Pe.key(i)&&n.push({name:i,tweens:ft(t[i],e)});return n}(n,e),i=mt(e.targets),o=_t(i,r),s=wt(o,n),a=Lt;return Lt++,Ze(t,{id:a,children:[],animatables:i,animations:o,duration:s.duration,delay:s.delay,endDelay:s.endDelay})}(e);function d(){var e=c.direction;"alternate"!==e&&(c.direction="normal"!==e?"normal":"reverse"),c.reversed=!c.reversed,t.forEach((function(e){return e.reversed=c.reversed}))}function l(e){return c.reversed?c.duration-e:e}function u(){n=0,r=l(c.currentTime)*(1/qt.speed)}function g(e,t){t&&t.seek(e-t.timelineOffset)}function h(e){for(var t=0,n=c.animations,r=n.length;t<r;){var i=n[t],o=i.animatable,s=i.tweens,a=s.length-1,d=s[a];a&&(d=We(s,(function(t){return e<t.end}))[0]||d);for(var l=De(e-d.start-d.delay,0,d.duration)/d.duration,u=isNaN(l)?1:d.easing(l),g=d.to.strings,h=d.round,p=[],m=d.to.numbers.length,f=void 0,v=0;v<m;v++){var y=void 0,_=d.to.numbers[v],w=d.from.numbers[v]||0;y=d.isPath?gt(d.value,u*_,d.isPathTargetInsideSVG):w+u*(_-w),h&&(d.isColor&&v>2||(y=Math.round(y*h)/h)),p.push(y)}var L=g.length;if(L){f=g[0];for(var b=0;b<L;b++){g[b];var S=g[b+1],E=p[b];isNaN(E)||(f+=S?E+S:E+" ")}}else f=p[0];vt[i.type](o.target,i.property,f,o.transforms),i.currentValue=f,t++}}function p(e){c[e]&&!c.passThrough&&c[e](c)}function m(e){var u=c.duration,m=c.delay,f=u-c.endDelay,v=l(e);c.progress=De(v/u*100,0,100),c.reversePlayback=v<c.currentTime,t&&function(e){if(c.reversePlayback)for(var n=o;n--;)g(e,t[n]);else for(var r=0;r<o;r++)g(e,t[r])}(v),!c.began&&c.currentTime>0&&(c.began=!0,p("begin")),!c.loopBegan&&c.currentTime>0&&(c.loopBegan=!0,p("loopBegin")),v<=m&&0!==c.currentTime&&h(0),(v>=f&&c.currentTime!==u||!u)&&h(u),v>m&&v<f?(c.changeBegan||(c.changeBegan=!0,c.changeCompleted=!1,p("changeBegin")),p("change"),h(v)):c.changeBegan&&(c.changeCompleted=!0,c.changeBegan=!1,p("changeComplete")),c.currentTime=
1De(v,0,u),c.began&&p("update"),e>=u&&(r=0,c.remaining&&!0!==c.remaining&&c.remaining--,c.remaining?(n=i,p("loopComplete"),c.loopBegan=!1,"alternate"===c.direction&&d()):(c.paused=!0,c.completed||(c.completed=!0,p("loopComplete"),p("complete"),!c.passThrough&&"Promise"in window&&(s(),a(c)))))}return a(c),c.reset=function(){var e=c.direction;c.passThrough=!1,c.currentTime=0,c.progress=0,c.paused=!0,c.began=!1,c.loopBegan=!1,c.changeBegan=!1,c.completed=!1,c.changeCompleted=!1,c.reversePlayback=!1,c.reversed="reverse"===e,c.remaining=c.loop,t=c.children;for(var n=o=t.length;n--;)c.children[n].reset();(c.reversed&&!0!==c.loop||"alternate"===e&&1===c.loop)&&c.remaining++,h(c.reversed?c.duration:0)},c._onDocumentVisibility=u,c.set=function(e,t){return yt(e,t),c},c.tick=function(e){i=e,n||(n=i),m((i+(r-n))*qt.speed)},c.seek=function(e){m(l(e))},c.pause=function(){c.paused=!0,u()},c.play=function(){c.paused&&(c.completed&&c.reset(),c.paused=!1,bt.push(c),u(),St())},c.reverse=function(){d(),c.completed=!c.reversed,u()},c.restart=function(){c.reset(),c.play()},c.remove=function(e){Mt(pt(e),c)},c.reset(),c.autoplay&&c.play(),c}function Ct(e,t){for(var n=t.length;n--;)Qe(e,t[n].animatable.target)&&t.splice(n,1)}function Mt(e,t){var n=t.animations,r=t.children;Ct(e,n);for(var i=r.length;i--;){var o=r[i],s=o.animations;Ct(e,s),s.length||o.children.length||r.splice(i,1)}n.length||r.length||t.pause()}qt.version="3.2.1",qt.speed=1,qt.suspendWhenDocumentHidden=!0,qt.running=bt,qt.remove=function(e){for(var t=pt(e),n=bt.length;n--;)Mt(t,bt[n])},qt.get=ot,qt.set=yt,qt.convertPx=tt,qt.path=function(e,t){var n=Pe.str(e)?Ve(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:ut(n),totalLength:lt(n)*(r/100)}}},qt.setDashoffset=function(e){var t=lt(e);return e.setAttribute("stroke-dasharray",t),t},qt.stagger=function(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?Re(t.easing):null,i=t.grid,o=t.axis,s=t.from||0,a="first"===s,c="center"===s,d="last"===s,l=Pe.arr(e),u=l?parseFloat(e[0]):parseFloat(e),g=l?parseFloat(e[1]):0,h=Je(l?e[1]:e)||0,p=t.start||0+(l?u:0),m=[],f=0;return function(e,t,v){if(a&&(s=0),c&&(s=(v-1)/2),d&&(s=v-1),!m.length){for(var y=0;y<v;y++){if(i){var _=c?(i[0]-1)/2:s%i[0],w=c?(i[1]-1)/2:Math.floor(s/i[0]),L=_-y%i[0],b=w-Math.floor(y/i[0]),S=Math.sqrt(L*L+b*b);"x"===o&&(S=-L),"y"===o&&(S=-b),m.push(S)}else m.push(Math.abs(s-y));f=Math.max.apply(Math,m)}r&&(m=m.map((function(e){return r(e/f)*f}))),"reverse"===n&&(m=m.map((function(e){return o?e<0?-1*e:-e:Math.abs(f-e)})))}return p+(l?(g-u)/f:u)*(Math.round(100*m[t])/100)+h}},qt.timeline=function(e){void 0===e&&(e={});var t=qt(e);return t.duration=0,t.add=function(n,r){var i=bt.indexOf(t),o=t.children;function s(e){e.passThrough=!0}i>-1&&bt.splice(i,1);for(var a=0;a<o.length;a++)s(o[a]);var c=Ze(n,Xe(xe,e));c.targets=c.targets||e.targets;var d=t.duration;c.autoplay=!1,c.direction=t.direction,c.timelineOffset=Pe.und(r)?d:st(r,d),s(t),t.seek(c.timelineOffset);var l=qt(c);s(l),o.push(l);var u=wt(o,e);return t.delay=u.delay,t.endDelay=u.endDelay,t.duration=u.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},qt.easing=Re,qt.penner=Fe,qt.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const kt=qt;document.addEventListener("DOMContentLoaded",(function(){xt(),At()}));const xt=()=>{document.querySelectorAll(".faq__single").forEach((e=>{e.addEventListener("click",(function(){const e=this.querySelector(".faq__answer");if(this.classList.contains("active"))kt({targets:this.querySelector(".faq__answer"),height:0,paddingTop:0,duration:300,easing:"linear"});else{this.classList.add("active"),e.style.height="auto";let t=e.clientHeight;e.style.height=0,this.classList.remove("active"),kt({targets:this.querySelector(".faq__answer"),height:["0px",t+16],paddingTop:[0,16],duration:300,easing:"linear"})}this.classList.toggle("active")}))}))},At=()=>{const e=document.querySelectorAll(".faq__anchor-link"),t=window.document.scrollingElement||window.document.body||window.document.documentElement;e.forEach((n=>{n.addEventListener("click",(r=>{r.preventDefault();const i=document.querySelector(n.attributes.href.value);kt({targets:t,scrollTop:i.offsetTop-32,duration:500,easing:"easeInOutQuad"}),n.classList.contains("active")||(e.forEach((e=>e.classList.remove("active"))),n.classList.add("active"))}))}))},Tt=function(e){var t,n,r,i,o,s,a,c,d=1e3,l=60,u=60,g=24,h=864e5,p=12,m=10,f=10,v=10,y=Math.ceil,_=Math.floor;function w(e,t){var n=e.getTime();return e.setMonth(e.getMonth()+t),Math.round((e.getTime()-n)/h)}function L(e){var t=e.getTime(),n=new Date(t);return n.setMonth(e.getMonth()+1),Math.round((n.getTime()-t)/h)}function b(e,t){if(t=t instanceof Date||null!==t&&isFinite(t)?new Date(+t):new Date,!e)return t;var n=+e.value||0;return n?(t.setTime(t.getTime()+n),t):((n=+e.milliseconds||0)&&t.setMilliseconds(t.getMilliseconds()+n),(n=+e.seconds||0)&&t.setSeconds(t.getSeconds()+n),(n=+e.minutes||0)&&t.setMinutes(t.getMinutes()+n),(n=+e.hours||0)&&t.setHours(t.getHours()+n),(n=+e.weeks||0)&&(n*=7),(n+=+e.days||0)&&t.setDate(t.getDate()+n),(n=+e.months||0)&&t.setMonth(t.getMonth()+n),(n=+e.millennia||0)&&(n*=v),(n+=+e.centuries||0)&&(n*=f),(n+=+e.decades||0)&&(n*=m),(n+=+e.years||0)&&t.setFullYear(t.getFullYear()+n),t)}function S(e,r){return a(e)+(1===e?t[r]:n[r])}function E(){}function q(e,t,n,r,i,o){return e[n]>=0&&(t+=e[n],delete e[n]),1+(t/=i)<=1?0:e[r]>=0?(e[r]=+(e[r]+t).toFixed(o),function(e,t){switch(t){case"seconds":if(e.seconds!==l||isNaN(e.minutes))return;e.minutes++,e.seconds=0;case"minutes":if(e.minutes!==u||isNaN(e.hours))return;e.hours++,e.minutes=0;case"hours":if(e.hours!==g||isNaN(e.days))return;e.days++,e.hours=0;case"days":if(7!==e.days||isNaN(e.weeks))return;e.weeks++,e.days=0;case"weeks":if(e.weeks!==L(e.refMonth)/7||isNaN(e.months))return;e.months++,e.weeks=0;case"months":if(e.months!==p||isNaN(e.years))return;e.years++,e.months=0;case"years":if(e.years!==m||isNaN(e.decades))return;e.decades++,e.years=0;case"decades":if(e.decades!==f||isNaN(e.centuries))return;e.centuries++,e.decades=0;case"centuries":if(e.centuries!==v||isNaN(e.millennia))return;e.millennia++,e.centuries=0}}(e,r),0):t}function C(e,t,n,r,i,o){var s=new Date;if(e.start=t=t||s,e.end=n=n||s,e.units=r,e.value=n.getTime()-t.getTime(),e.value<0){var a=n;n=t,t=a}e.refMonth=new Date(t.getFullYear(),t.getMonth(),15,12,0,0);try{e.millennia=0,e.centuries=0,e.decades=0,e.years=n.getFullYear()-t.getFullYear(),e.months=n.getMonth()-t.getMonth(),e.weeks=0,e.days=n.getDate()-t.getDate(),e.hours=n.getHours()-t.getHours(),e.minutes=n.getMinutes()-t.getMinutes(),e.seconds=n.get
1Seconds()-t.getSeconds(),e.milliseconds=n.getMilliseconds()-t.getMilliseconds(),function(e){var t;for(e.milliseconds<0?(t=y(-e.milliseconds/d),e.seconds-=t,e.milliseconds+=t*d):e.milliseconds>=d&&(e.seconds+=_(e.milliseconds/d),e.milliseconds%=d),e.seconds<0?(t=y(-e.seconds/l),e.minutes-=t,e.seconds+=t*l):e.seconds>=l&&(e.minutes+=_(e.seconds/l),e.seconds%=l),e.minutes<0?(t=y(-e.minutes/u),e.hours-=t,e.minutes+=t*u):e.minutes>=u&&(e.hours+=_(e.minutes/u),e.minutes%=u),e.hours<0?(t=y(-e.hours/g),e.days-=t,e.hours+=t*g):e.hours>=g&&(e.days+=_(e.hours/g),e.hours%=g);e.days<0;)e.months--,e.days+=w(e.refMonth,1);e.days>=7&&(e.weeks+=_(e.days/7),e.days%=7),e.months<0?(t=y(-e.months/p),e.years-=t,e.months+=t*p):e.months>=p&&(e.years+=_(e.months/p),e.months%=p),e.years>=m&&(e.decades+=_(e.years/m),e.years%=m,e.decades>=f&&(e.centuries+=_(e.decades/f),e.decades%=f,e.centuries>=v&&(e.millennia+=_(e.centuries/v),e.centuries%=v)))}(e),function(e,t,n,r){var i=0;!(1024&t)||i>=n?(e.centuries+=e.millennia*v,delete e.millennia):e.millennia&&i++,!(512&t)||i>=n?(e.decades+=e.centuries*f,delete e.centuries):e.centuries&&i++,!(256&t)||i>=n?(e.years+=e.decades*m,delete e.decades):e.decades&&i++,!(128&t)||i>=n?(e.months+=e.years*p,delete e.years):e.years&&i++,!(64&t)||i>=n?(e.months&&(e.days+=w(e.refMonth,e.months)),delete e.months,e.days>=7&&(e.weeks+=_(e.days/7),e.days%=7)):e.months&&i++,!(32&t)||i>=n?(e.days+=7*e.weeks,delete e.weeks):e.weeks&&i++,!(16&t)||i>=n?(e.hours+=e.days*g,delete e.days):e.days&&i++,!(8&t)||i>=n?(e.minutes+=e.hours*u,delete e.hours):e.hours&&i++,!(4&t)||i>=n?(e.seconds+=e.minutes*l,delete e.minutes):e.minutes&&i++,!(2&t)||i>=n?(e.milliseconds+=e.seconds*d,delete e.seconds):e.seconds&&i++,1&t&&!(i>=n)||function(e,t){var n,r,i,o=q(e,0,"milliseconds","seconds",d,t);if(o&&(o=q(e,o,"seconds","minutes",l,t))&&(o=q(e,o,"minutes","hours",u,t))&&(o=q(e,o,"hours","days",g,t))&&(o=q(e,o,"days","weeks",7,t))&&(o=q(e,o,"weeks","months",L(e.refMonth)/7,t))&&(o=q(e,o,"months","years",(r=(n=e.refMonth).getTime(),(i=new Date(r)).setFullYear(n.getFullYear()+1),Math.round((i.getTime()-r)/h)/L(e.refMonth)),t))&&(o=q(e,o,"years","decades",m,t))&&(o=q(e,o,"decades","centuries",f,t))&&(o=q(e,o,"centuries","millennia",v,t)))throw new Error("Fractional unit overflow")}(e,r)}(e,r,i,o)}finally{delete e.refMonth}return e}function M(e,t,n,r,i){var o;n=+n||222,r=r>0?r:NaN,i=i>0?i<20?Math.round(i):20:0;var s=null;"function"==typeof e?(o=e,e=null):e instanceof Date||(null!==e&&isFinite(e)?e=new Date(+e):("object"==typeof s&&(s=e),e=null));var a=null;if("function"==typeof t?(o=t,t=null):t instanceof Date||(null!==t&&isFinite(t)?t=new Date(+t):("object"==typeof t&&(a=t),t=null)),s&&(e=b(s,t)),a&&(t=b(a,e)),!e&&!t)return new E;if(!o)return C(new E,e,t,n,r,i);var c,l=function(e){return 1&e?33.333333333333336:2&e?d:4&e?6e4:8&e?36e5:16&e?864e5:6048e5}(n),u=function(){o(C(new E,e,t,n,r,i),c)};return u(),c=setInterval(u,l)}E.prototype.toString=function(e){var t=c(this),n=t.length;if(!n)return e?""+e:o;if(1===n)return t[0];var s=r+t.pop();return t.join(i)+s},E.prototype.toHTML=function(e,t){e=e||"span";var n=c(this),s=n.length;if(!s)return(t=t||o)?"<"+e+">"+t+"</"+e+">":t;for(var a=0;a<s;a++)n[a]="<"+e+">"+n[a]+"</"+e+">";if(1===s)return n[0];var d=r+n.pop();return n.join(i)+d},E.prototype.addTo=function(e){return b(this,e)},c=function(e){var t=[],n=e.millennia;return n&&t.push(s(n,10)),(n=e.centuries)&&t.push(s(n,9)),(n=e.decades)&&t.push(s(n,8)),(n=e.years)&&t.push(s(n,7)),(n=e.months)&&t.push(s(n,6)),(n=e.weeks)&&t.push(s(n,5)),(n=e.days)&&t.push(s(n,4)),(n=e.hours)&&t.push(s(n,3)),(n=e.minutes)&&t.push(s(n,2)),(n=e.seconds)&&t.push(s(n,1)),(n=e.milliseconds)&&t.push(s(n,0)),t},M.MILLISECONDS=1,M.SECONDS=2,M.MINUTES=4,M.HOURS=8,M.DAYS=16,M.WEEKS=32,M.MONTHS=64,M.YEARS=128,M.DECADES=256,M.CENTURIES=512,M.MILLENNIA=1024,M.DEFAULTS=222,M.ALL=2047;var k=M.setFormat=function(e){if(e){if("singular"in e||"plural"in e){var c=e.singular||[];c.split&&(c=c.split("|"));var d=e.plural||[];d.split&&(d=d.split("|"));for(var l=0;l<=10;l++)t[l]=c[l]||t[l],n[l]=d[l]||n[l]}"string"==typeof e.last&&(r=e.last),"string"==typeof e.delim&&(i=e.delim),"string"==typeof e.empty&&(o=e.empty),"function"==typeof e.formatNumber&&(a=e.formatNumber),"function"==typeof e.formatter&&(s=e.formatter)}},x=M.resetFormat=function(){t=" millisecond| second| minute| hour| day| week| month| year| decade| century| millennium".split("|"),n=" milliseconds| seconds| minutes| hours| days| weeks| months| years| decades| centuries| millennia".split("|"),r=" and ",i=", ",o="",a=function(e){return e},s=S};return M.setLabels=function(e,t,n,r,i,o,s){k({singular:e,plural:t,last:n,delim:r,empty:i,formatNumber:o,formatter:s})},M.resetLabels=x,x(),M}();function Dt(e,t,n,r,i,o=null){const s=function(e,t){const n=e.getTime()+1e3*t;return new Date(n)}(t,r),a=Tt(s,n);return a.value<0?(o&&clearInterval(o),e.classList.remove("loaded"),!1):(e.innerHTML=`\n ${$t(a.days,i.day)}
1\n <span class='countdown-block__separator'>:</span>\n ${$t(a.hours,i.hour)}\n <span class='countdown-block__separator'>:</span>\n ${$t(a.minutes,i.minute)}\n <span class='countdown-block__separator'>:</span>\n ${$t(a.seconds,i.second)}\n `,!0)}function $t(e,t){return`<span class='countdown-block'><span class='countdown-block__value'>${e=1===e.toString().length?"0"+e:e}</span><span class='countdown-block__label'>${t}</span></span>`}document.addEventListener("DOMContentLoaded",(async function(){const e=document.querySelector("#announcement-countdown");let t=0;if(!e)return;const n=e.dataset.futureDate;if(""===n)return;const r=function(e){const[t,n]=e.split(" "),[r,i,o]=t.split("."),[s,a,c]=n.split(":");return new Date(parseInt(o),parseInt(i),parseInt(r),parseInt(s),parseInt(a),parseInt(c))}(n),i=await fetch("https://app.eggo.si/api/get-time").then((e=>e.json())),o=new Date(i.year,i.month,i.day,i.hour,i.minute,i.seconds),s={day:e.dataset.dateDay,hour:e.dataset.dateHour,minute:e.dataset.dateMinute,second:e.dataset.dateSecond},a=Dt(e,o,r,t,s);if(t++,a){e.classList.add("loaded");const n=setInterval((()=>{Dt(e,o,r,t,s,n),t++}),1e3)}})),document.addEventListener("DOMContentLoaded",(()=>{It()}));const It=()=>{const e=document.querySelector(".header__icon--search"),t=Pt(),n=document.querySelector(".eggo-search-close"),r=document.querySelector('input[name="eggo-search"]');t&&e&&r&&n&&(e.addEventListener("click",(function(){!function(){const e=document.querySelector("#eggo-search");if(e)return e.classList.contains("visible")}()?(function(){const e=document.querySelector("#eggo-search"),t=document.querySelector('input[name="eggo-search"]');e&&t&&(e.classList.add("visible"),t.focus(),document.body.classList.add("search-active"))}(),Ht()):(Ot(),jt())})),t.addEventListener("click",(function(){r.value=""})),n.addEventListener("click",(function(){Ot(),jt()})),r.addEventListener("keyup",(function(e){const t=r.value;t.length>2&&function(e){fetch(window.Shopify.routes.root+"search/suggest?q="+e+"&resources[type]=product&resources[options][unavailable_products]=hide&resources[options][fields]=title,product_type,variants.title,tag§ion_id=eggo-search").then((e=>e.text())).then((e=>{const t=document.querySelector(".eggo-search-results");t?(t.classList.add("visible"),t.innerHTML=e,new Swiper("#shopify-section-eggo-search",{spaceBetween:24,slidesPerView:6,slidesPerGroup:6,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:1,slidesPerGroup:1},360:{slidesPerView:2,slidesPerGroup:2},640:{slidesPerView:4,slidesPerGroup:4},989:{slidesPerView:6,slidesPerGroup:6}}}),Gt(t)):console.error("Search results container doesn't exist.")}))}(t),0===t.length?Pt().classList.remove("visible"):Pt().classList.add("visible")})))};function Pt(){return document.querySelector(".eggo-search-clear")}function Ot(){const e=document.querySelector("#eggo-search");e&&(document.body.classList.remove("search-active"),e.classList.remove("visible"))}function Gt(e){const t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)-t.top;e.style.maxHeight=n+"px"}document.addEventListener("DOMContentLoaded",(function(){!function(){const e=document.querySelectorAll(".list-menu-2024__item-has-children");0!==e.length&&(document.body.prepend(Nt()),e.forEach((e=>{e.addEventListener("mouseenter",(function(t){Bt(),e.classList.add("open"),Ht()})),e.addEventListener("mouseleave",(function(e){Bt(),jt()}))})))}()}));const Nt=()=>{const e=document.createElement("div");return e.classList.add("mega-menu__bg"),e.addEventListener("click",(function(){Bt(),jt(),Ot()})),e},Bt=()=>{const e=document.querySelectorAll(".list-menu-2024__item-has-children.open");0!==e.length&&e.forEach((e=>{e.classList.remove("open")}))},Ht=()=>{const e=document.querySelector(".mega-menu__bg");e&&e.classList.add("visible")},jt=()=>{const e=document.querySelector(".mega-menu__bg");e&&e.classList.remove("visible")};n(631),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".tb"),t=document.querySelector(".tb__bg"),n=document.querySelectorAll("body > .shopify-section > section");if(!e||!t)return;const r=document.querySelectorAll(".tb-item--dropdown");0!==r.length&&(n.length>
10&&n.forEach((e=>{e.addEventListener("click",(()=>Ft(document.body,r)))})),t.addEventListener("click",(()=>Ft(document.body,r))),r.forEach((e=>{const n=e.querySelector(".tb-item__text");n&&n.addEventListener("click",(function(n){const i=e.classList.contains("visible");Ft(document.body,r),i||(e.classList.add("visible"),Gt(t),document.body.classList.add("topbar-2024"),n.stopPropagation())}))})))}));const Ft=(e,t)=>{e.classList.remove("topbar-2024"),t.forEach((e=>e.classList.remove("visible")))}})()})(); 2//# sourceMappingURL=base.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.