"use strict";(()=>{var rt=Object.defineProperty,lt=Object.defineProperties;var ut=Object.getOwnPropertyDescriptors;var K=Object.getOwnPropertySymbols;var ct=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable;var Y=(k,l,t)=>l in k?rt(k,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):k[l]=t,R=(k,l)=>{for(var t in l||(l={}))ct.call(l,t)&&Y(k,t,l[t]);if(K)for(var t of K(l))vt.call(l,t)&&Y(k,t,l[t]);return k},W=(k,l)=>lt(k,ut(l));var Q=(k,l,t)=>new Promise((M,y)=>{var S=u=>{try{_(t.next(u))}catch(L){y(L)}},b=u=>{try{_(t.throw(u))}catch(L){y(L)}},_=u=>u.done?M(u.value):Promise.resolve(u.value).then(S,b);_((t=t.apply(k,l)).next())});(self.webpackChunkecom_website=self.webpackChunkecom_website||[]).push([[32949],{8912:(k,l,t)=>{t.d(l,{I:()=>_,g:()=>b});var M=t(23967);const y="w-background-light",S="w-background-dark";function b(u){return(0,M.l3)(u)?(0,M.jn)(u)?S:y:""}function _(u){return u?S:y}},25704:(k,l,t)=>{t.d(l,{$g:()=>S,HH:()=>y,Qc:()=>M,ae:()=>b,pM:()=>_,w3:()=>u});const M="desktop",y="footer",S="mobile",b="order-online-mobile",_="dropdown",u="center"},33271:(k,l,t)=>{t.d(l,{$U:()=>_,NX:()=>b,dK:()=>y});var M=t(4390),y=(u=>(u.DROPDOWN="dropdown",u.MEGAMENU="megamenu",u))(y||{});const S={dropdown:{name:"dropdown"},megamenu:{name:"megamenu",upgradeKey:M.rS}};function b(u){return S[u]}const _="dropdown"},25751:(k,l,t)=>{t.d(l,{Z:()=>V});var M=function(){var e=this,v=e._self._c,C=e._self._setupProxy;return v("nav",{staticClass:"w-nav nav--desktop",class:e.themeClass("desktopNav")},[v("ul",{ref:"menu",staticClass:"nav__main",class:e.menuClasses,style:e.menuStyles},[e._l(e.siteNav,function(h,w){return v("text-component-with-maker",e._b({key:w,staticClass:"nav__item",class:[e.themeClass("desktopNavItem"),e.themeClass(e.isActiveTopLevelCategory(h)),e.hiddenClass(h)],nativeOn:{mouseenter:function(H){return e.onMouseEnter(h.children,h)},mouseleave:function(H){return e.onMouseLeave.apply(null,arguments)}}},"text-component-with-maker",e.navItemConfig,!1),[v("w-link",{attrs:{link:h,"allow-nav":""},on:{"router-link:click":function(H){return e.onTopLevelLinkClick(H,h.children,h)}},scopedSlots:e._u([{key:"content",fn:function(){return[e._v(` `+e._s(e.title(h,!0))+` `)]},proxy:!0}],null,!0)}),e._v(" "),e.isUsingDropdownNav&&e.hasChildren(h)?v("dropdown-sub-nav",{staticClass:"dropdown__subnav--wrapper",attrs:{"sub-nav-items":h.children,"nav-item":h,"margin-top":e.subnavSpacing,"subnav-color":e.subnavColor,config:e.config},on:{"router-link:click":e.onRouterLinkClick}}):e._e()],1)}),e._v(" "),v("text-component-with-maker",e._b({directives:[{name:"show",rawName:"v-show",value:e.moreContents.length,expression:"moreContents.length"}],ref:"moreLink",staticClass:"nav__item nav__more-link",class:e.themeClass("desktopNavItem"),nativeOn:{mouseenter:function(h){return e.onMouseEnter(e.moreContents)},mouseleave:function(h){return e.onMouseLeave.apply(null,arguments)}}},"text-component-with-maker",e.navItemConfig,!1),[v("a",{attrs:{href:"#"}},[e._v(e._s(e.moreText))]),e._v(" "),e.isUsingDropdownNav&&e.moreContents.length?v("dropdown-sub-nav",{ref:"moreNav",staticClass:"dropdown__subnav--wrapper",attrs:{"sub-nav-items":e.moreContents,"margin-top":e.subnavSpacing,"subnav-color":e.subnavColor,config:e.config},on:{"router-link:click":e.onRouterLinkClick}}):e._e()],1)],2),e._v(" "),v("pseudo-window",{on:{resize:e.debouncedResizeHandler}})],1)},y=[],S=t(21652),b=t.n(S),_=t(95756),u=t.n(_),L=t(55999),O=t(29131),x=t.n(O),$=t(33271),r=t(64387),a=function(){var e=this,v=e._self._c;return v("div",{ref:"submenu",staticClass:"nav__subnav nav__subnav--dropdown",class:e.themeClass("subnavDropdown"),style:e.dropdownStyles},[v("ul",{class:e.bgClass},e._l(e.subNav,function(C,h){return v("li",{key:h,staticClass:"nav__item"},[e.hasChildren(C)?v("nested-subnav",{attrs:{"nav-item":C,variant:"dropdown"}}):v("w-link",{attrs:{link:C,"allow-nav":""},on:{"router-link:click":e.onRouterLinkClick},scopedSlots:e._u([{key:"content",fn:function(){return[e._v(` `+e._s(e.title(C))+` `)]},proxy:!0}],null,!0)})],1)}),0)])},c=[],g=t(24145),i=t(27558),s=t(25766),p=t(8912),f=t(69483);const D={name:"DropdownSubNav",components:{NestedSubnav:f.Z},extends:r.Z,inject:["colorProfile"],props:{subNavItems:{type:Array,default:()=>[]},navItem:{type:Object,default:null},marginTop:{type:Number,default:0}},computed:W(R({},(0,g.rn)(i.Z,["siteBg","colorMap"])),{subNav(){return this.getAutoLinkNavItems(this.subNavItems,this.navItem)},background(){return(0,s.rP)(this.bgColor)},bgClass(){return(0,p.g)(this.bgColor)},dropdownStyles(){return{marginTop:`${this.marginTop}px`,background:this.bgColor,"--nav-color-link":this.linkColor,"--nav-color-underline":this.linkColor}}})};var T=t(51900),B=(0,T.Z)(D,a,c,!1,null,"23ca0682",null);const j=B.exports;var z=t(39238).Z;const Z=32,I=(0,L.defineComponent)({name:"DesktopNav",components:{DropdownSubNav:j,PseudoWindow:x()},extends:r.Z,props:{isOrderOnlineSearchOpen:{type:Boolean,default:!1},isKioskSite:{type:Boolean,default:!1},activeTopLevelCategoryId:{type:String,default:""}},data(){return{timeouts:{},moreContents:[],debouncedResizeHandler:u()(this.onResize,200),subnavSpacing:0,menuReady:!1,moreText:z("elements.navigation.more-menu-item"),shouldResetMoreOnSearchClose:!1}},computed:{menuClasses(){return{ready:this.menuReady,"nav--uppercase":this.uppercase,"is-kiosk-site":this.isKioskSite}},isUsingMegaMenuNav(){return this.navLayout===$.dK.MEGAMENU},isUsingDropdownNav(){return this.navLayout===$.dK.DROPDOWN}},watch:{siteNav(){var o;this.isKioskSite&&(o=this.$refs.moreNav)!==null&&o!==void 0&&o.$el||this.resetMore()},siteTitle(){this.inEditor&&this.resetMore()},siteLogo(){this.inEditor&&this.resetMore()},isOrderOnlineSearchOpen(){this.isOrderOnlineSearchOpen?this.shouldResetMoreOnSearchClose=!0:!this.isOrderOnlineSearchOpen&&this.shouldResetMoreOnSearchClose&&(this.resetMore(),this.shouldResetMoreOnSearchClose=!1)},isAnchored(o){clearTimeout(this.timeouts.anchor),o?this.timeouts.anchor=setTimeout(this.setSubnavSpacing,800):this.timeouts.anchor=setTimeout(this.setSubnavSpacing,0)}},mounted(){this.initMoreMenu()},beforeDestroy(){this.debouncedResizeHandler.cancel(),Object.entries(this.timeouts).forEach(clearTimeout)},methods:{generateMore(){const o=this.$refs.moreLink,e=this.$refs.menu,v=e==null?void 0:e.children;if(v){const C=v[0].offsetTop;let h;Array.from(v).reverse().forEach((w,H)=>{w===o||w===o.$el||w.offsetTop>C&&(h=this.siteNav.length-H,this.addToMore(h))}),this.$nextTick(()=>{o.$el.offsetTop>C&&this.addToMore(h-1)})}this.menuReady=!0,this.setSubnavSpacing()},initMoreMenu(){return Q(this,null,function*(){yield this.$nextTick(),this.generateMore(),this.timeouts.more=setTimeout(this.resetMore,800)})},destroyMore(){this.$refs.menu&&(this.moreContents=[])},addToMore(o){const e=this.siteNav[o];this.moreContents.unshift(e)},resetMore(){this.destroyMore(),this.$nextTick(()=>this.generateMore())},onResize(){this.resetMore()},hiddenClass(o){return this.moreContents.some(e=>b()(e,o))?"hidden":""},setSubnavSpacing(){const o=this.$refs.menu,e=o?o.closest(".w-header"):null;if(e){const v=e.offsetHeight,C=e.getBoundingClientRect().top,h=o.getBoundingClientRect().bottom;this.subnavSpacing=C>0?v+C-h:v-h,this.subnavSpacing>Z&&(this.subnavSpacing=Z)}},onMouseEnter(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return this.isUsingMegaMenuNav?this.populateMegaMenu(o,e):null},onMouseLeave(){return this.isUsingMegaMenuNav?this.closeMegaMenuWithDelay():null},onTopLevelLinkClick(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;o&&(this.isUsingMegaMenuNav&&this.toggleMegaMenu(e,v),this.onRouterLinkClick(o))},populateMegaMenu(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.siteEventBus.$emit("navigation:mega-menu:populate",o,e)},toggleMegaMenu(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.siteEventBus.$emit("navigation:mega-menu:toggle",o,e)},closeMegaMenuWithDelay(){this.siteEventBus.$emit("navigation:mega-menu:close-with-delay")},isActiveTopLevelCategory(o){const e=(o.id||"").toString();return e&&e===this.activeTopLevelCategoryId?"activeTopLevelCategory":""}}});var E=(0,T.Z)(I,M,y,!1,null,"2d0ce059",null);const V=E.exports},64387:(k,l,t)=>{t.d(l,{Z:()=>Z});var M=t(46339),y=t.n(M),S=t(56412),b=t.n(S),_=t(55999),u=t(54526),L=t(24145),O=t(7038),x=t.n(O),$=t(27558),r=t(23967),a=t(25137),c=t(1507),g=t(33271),i=t(11043),s=t(39238).Z;const p={titleDefaultShop:s("elements.navigation.title-default-shop"),titleDefaultHome:s("elements.navigation.title-default-home")},f=30,D=(0,_.defineComponent)({name:"NavBase",inject:["siteEventBus","themeClass","backdrop","colorProfile"],props:{siteNav:{type:Array,default:()=>[]},siteTitle:{type:String,default:""},siteLogo:{type:String,default:""},align:{type:String,default:""},subnavType:{type:String,default:""},subnavColor:{type:String,default:""},uppercase:{type:Boolean,default:!1},navLayout:{type:String,default:g.dK.DROPDOWN},isAnchored:{type:Boolean,default:!1},config:{type:Object,default:()=>({})}},computed:W(R(R({},(0,u.mapState)(["environment"])),(0,L.rn)($.Z,["colorMap","siteBg"])),{inEditor(){return!this.environment.published},menuStyles(){return{"text-align":this.align,"--nav-color-link":this.linkColor,"--nav-color-underline":this.linkColor}},menuClasses(){return{ready:this.menuReady,"nav--uppercase":this.uppercase}},background(){return this.backdrop()},bgColor(){const{colorMap:m,siteBg:I}=this;return(0,r.Yf)(this.subnavColor,m,{defaultColor:""})||(0,a.Jh)(I,m)},linkColor(){const m=this.colorProfile?this.colorProfile().paragraph:"",I=this.config.color||m;return(0,a.en)(this.background,I,this.colorMap)},navItemConfig(){const m=["normal",...this.config.bold?["bold"]:[],...this.config.italic?["italic"]:[]];return{color:this.linkColor,fontSize:this.config.fontSize||-1,textStyle:c.bV,tag:"li",fontDecorations:m,allCaps:this.config.allCaps}}}),methods:{getAutoLinkMaxData(m){return m===i.ow?{max:i.u0,title:s("elements.navigation.auto-link-see-all")}:{max:i.Fg,title:s("elements.navigation.auto-link-more")}},getAutoLinkNavItems(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.RD;const F=(arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0)?y()(m):m,o=E+1,e=!!(I!=null&&I.auto_link);let v=e&&!!(I!=null&&I.has_more);if(e){const{max:C}=this.getAutoLinkMaxData(o);m.length>C&&(F.splice(C),v=!0)}return F.forEach(C=>{this.getAutoLinkNavItems(C.children,C,o,!1)}),v&&F.push({link:y()(I.link),type:I.type,title:this.getAutoLinkMaxData(o).title}),F},title(m){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(b()(m)||b()(m.type))return"";let E;switch(m.type){case"external":E=m.title;break;case"category":E=m.title||p.titleDefaultShop;break;default:E=m.title||p.titleDefaultHome;break}return I?x()(E,f):E},hasChildren(m){return m&&m.children&&m.children.length},closeSlideout(){this.siteEventBus.$emit("slideout:toggle","close")},onRouterLinkClick(m){this.$emit("router-link:click",m)}}});var T=t(51900),B,j,z=(0,T.Z)(D,B,j,!1,null,null,null);const Z=z.exports},32949:(k,l,t)=>{t.d(l,{Z:()=>ot});var M=function(){var n=this,d=n._self._c;return n.type===n.typeDesktop?d("desktop-nav",{attrs:{config:n.config,"site-nav":n.SITE_NAV,"site-title":n.SITE_TITLE,"site-logo":n.SITE_LOGO,align:n.align,"subnav-type":n.subnavType,"subnav-color":n.subnavColor,uppercase:n.uppercase,"nav-layout":n.navLayout,"is-anchored":n.isAnchored,"active-top-level-category-id":n.activeTopLevelCategoryId},on:{"router-link:click":n.onRouterLinkClick}}):n.type===n.typeFooter?d("footer-nav",{attrs:{"site-nav":n.SITE_NAV,align:n.align,uppercase:n.uppercase}}):n.type===n.typeOrderOnlineMobile?d("order-online-mobile-nav",{attrs:{"site-nav":n.SITE_NAV,"active-top-level-category-id":n.activeTopLevelCategoryId},on:{"router-link:click":n.onRouterLinkClick}}):d("mobile-nav",{attrs:{"site-nav":n.SITE_NAV,align:n.align,uppercase:n.uppercase}})},y=[],S=t(33271),b=t(25751),_=function(){var n=this,d=n._self._c;return d("div",[d("nav",{staticClass:"w-nav nav--mobile"},[d("ul",{staticClass:"nav__main",class:n.menuClasses},[n._l(n.siteNav,function(P,G){return d("li",{key:G,staticClass:"nav__item"},[n.hasChildren(P)?d("nested-subnav",{attrs:{"nav-item":P}}):d("w-link",{attrs:{link:P,"allow-nav":""},nativeOn:{click:function(pt){return n.closeSlideout.apply(null,arguments)}},scopedSlots:n._u([{key:"content",fn:function(){return[n._v(` `+n._s(n.title(P))+` `)]},proxy:!0}],null,!0)})],1)}),n._v(" "),n.hasCustomerAccountsEnabled?d("li",{staticClass:"nav__item"},[d("sign-in-link")],1):n._e(),n._v(" "),n.isCartEnabled?d("li",{staticClass:"nav__item"},[d("cart-link")],1):n._e()],2)])])},u=[],L=t(24145),O=t(54526),x=t(79430),$=function(){var n=this,d=n._self._c;return d("div",{staticClass:"sign-in-link",on:{click:n.handleSignInClicked}},[d("m-text-button",{attrs:{size:"large"}},[d("m-icon",{attrs:{size:"medium",name:"user"}}),n._v(` `+n._s(n.linkLabel)+` `)],1)],1)},r=[],a=t(91751),c=t(74020),g=t(39238).Z;const i={signIn:g("customer-accounts.nav.sign-in"),account:g("customer-accounts.nav.account")},p={name:"SignInLink",components:{MTextButton:a.MTextButton,MIcon:c.MIcon},inject:["siteEventBus"],data(){return{translations:i}},computed:W(R({},(0,L.rn)(x.Z,["isLoggedIn"])),{linkLabel(){return this.isLoggedIn?this.translations.account:this.translations.signIn}}),methods:{handleSignInClicked(){this.siteEventBus.$emit("customer-account:open"),this.siteEventBus.$emit("slideout:toggle","close")}}};var f=t(51900),A=(0,f.Z)(p,$,r,!1,null,"5b6eb433",null);const D=A.exports;var T=function(){var n=this,d=n._self._c;return d("div",{staticClass:"cart-link",on:{click:n.handleCartClicked}},[d("m-text-button",{attrs:{size:"large"}},[n._v(` `+n._s(n.translations.cartText)+" ("+n._s(n.itemCount)+`) `)])],1)},B=[],j=t(67043),z=t(24932),Z=t(39238).Z;const m={cartText:Z("elements.navigation.cart-link")},E={name:"CartLink",components:{MTextButton:a.MTextButton},inject:["siteEventBus"],data(){return{translations:m}},computed:W(R(R({},(0,L.rn)(z.Z,["currentOrderItemCount"])),(0,O.mapGetters)(j.zu,["currentCartCount","shouldShowMiniCart"])),{itemCount(){var N;return(N=this.currentOrderItemCount||this.currentCartCount)!==null&&N!==void 0?N:0}}),methods:{handleCartClicked(){this.shouldShowMiniCart?(this.siteEventBus.$emit("cart:open"),this.siteEventBus.$emit("slideout:toggle","close")):this.siteEventBus.$emit("slideout:toggle","cart")}}};var V=(0,f.Z)(E,T,B,!1,null,"25d6d9ea",null);const F=V.exports;var o=t(80822),e=t(7881),v=t(69483),C=t(64387);const w={name:"MobileNav",components:{NestedSubnav:v.Z,SignInLink:D,CartLink:F},extends:C.Z,computed:W(R(R({},(0,L.rn)(x.Z,["hasCustomerAccountsEnabled"])),(0,O.mapGetters)(["getDatasource"])),{SITE_HEADER(){return this.getDatasource("SITE_HEADER")},isCartEnabled(){var N;const n=((N=this.SITE_HEADER.elements)===null||N===void 0||(N=N.find(d=>d.purpose===o.NP))===null||N===void 0?void 0:N.properties)||{};return e.Yd.includes(this.SITE_HEADER.layout)&&!n.hidden},hasSubnav(){let N=!1;return this.siteNav.forEach(n=>{this.hasChildren(n)&&(N=!0)}),N},menuClasses(){return{"nav--has-subnav":this.hasSubnav,"nav--uppercase":this.uppercase}}})};var H=(0,f.Z)(w,_,u,!1,null,"53e2d1eb",null);const X=H.exports;var J=function(){var n=this,d=n._self._c;return d("nav",{staticClass:"w-nav nav--footer",class:n.themeClass("footerNav")},[d("ul",{ref:"menu",staticClass:"nav__main",class:n.menuClasses,style:n.menuStyles},n._l(n.siteNav,function(P,G){return d("text-component-with-maker",n._b({key:G,staticClass:"nav__item",class:n.themeClass("footerNavItem")},"text-component-with-maker",n.navItemConfig,!1),[d("w-link",{attrs:{link:P,"allow-nav":""},scopedSlots:n._u([{key:"content",fn:function(){return[n._v(` `+n._s(n.title(P,!0))+` `)]},proxy:!0}],null,!0)})],1)}),1)])},q=[];const tt={name:"FooterNav",extends:C.Z};var et=(0,f.Z)(tt,J,q,!1,null,"6dd1f078",null);const nt=et.exports;var st=t(14169),U=t(25704);const at={name:"NavigationElement",components:{DesktopNav:b.Z,MobileNav:X,FooterNav:nt,OrderOnlineMobileNav:st.Z},props:{SITE_NAV:{type:Array,default:()=>[]},SITE_TITLE:{type:String,default:""},SITE_LOGO:{type:String,default:""},type:{type:String,default:U.Qc},align:{type:String,default:U.w3},config:{type:Object,default:()=>({})},subnavType:{type:String,default:U.pM},subnavColor:{type:String,default:""},uppercase:{type:Boolean,default:!1},navLayout:{type:String,default:S.dK.DROPDOWN},isAnchored:{type:Boolean,default:!1},activeTopLevelCategoryId:{type:String,default:""}},data(){return{typeDesktop:U.Qc,typeFooter:U.HH,typeOrderOnlineMobile:U.ae}},methods:{onRouterLinkClick(N){this.$emit("router-link:click",N)}}};var it=(0,f.Z)(at,M,y,!1,null,null,null);const ot=it.exports},69483:(k,l,t)=>{t.d(l,{Z:()=>$});var M=function(){var a=this,c=a._self._c;return c("div",{staticClass:"subnav__nested",class:a.variant,style:a.styles},[c("div",{staticClass:"parent-link-wrapper"},[c("w-link",{staticClass:"parent-link",attrs:{link:a.navItem,"allow-nav":""},nativeOn:{click:function(g){return a.handleClick.apply(null,arguments)}},scopedSlots:a._u([{key:"content",fn:function(){return[a._v(` `+a._s(a.title(a.navItem))+` `)]},proxy:!0}])}),a._v(" "),c("span",{staticClass:"subnav-icon",on:{click:a.toggleNestedMenu}},[a.nestedMenuExpanded?c("m-icon",{attrs:{name:"chevron-up"}}):c("m-icon",{attrs:{name:"chevron-down"}})],1)],1),a._v(" "),c("ul",{ref:"nestedMenu",staticClass:"nested-menu"},a._l(a.navItem.children,function(g,i){return c("li",{key:i,staticClass:"nav__item"},[a.hasChildren(g)?c("nested-subnav",{attrs:{"nav-item":g,variant:a.variant,depth:a.depth+1}}):c("w-link",{attrs:{link:g,"allow-nav":""},nativeOn:{click:function(s){return a.handleClick.apply(null,arguments)}},scopedSlots:a._u([{key:"content",fn:function(){return[a._v(` `+a._s(a.title(g))+` `)]},proxy:!0}],null,!0)})],1)}),0)])},y=[],S=t(74020),b=t(11043),_=t(64387);const L={name:"NestedSubnav",components:{MIcon:S.MIcon},extends:_.Z,props:{navItem:{type:Object,default:()=>({})},variant:{type:String,default:"mobile"},depth:{type:Number,default:b.RD}},data(){return{nestedMenuExpanded:!1}},computed:{styles(){return{"--depth":this.depth}}},methods:{toggleNestedMenu(){const r=this.$refs.nestedMenu,a=8;if(this.nestedMenuExpanded)r.style.maxHeight!=null&&this.removeMenuHeightFromParents(this.$parent,parseInt(r.style.maxHeight,10)),r.style.maxHeight="0";else{const c=r.children.length*(r.children[0].clientHeight+a);this.addMenuHeightToParents(this.$parent,c),r.style.maxHeight=`${c}px`}this.nestedMenuExpanded=!this.nestedMenuExpanded},removeMenuHeightFromParents(r,a){var c,g,i;const s=r==null||(c=r.$refs)===null||c===void 0?void 0:c.nestedMenu,p=s==null||(g=s.style)===null||g===void 0?void 0:g.maxHeight;p!=null&&(s.style.maxHeight=`${parseInt(p,10)-a}px`),r!=null&&(i=r.$parent)!==null&&i!==void 0&&(i=i.$refs)!==null&&i!==void 0&&i.nestedMenu&&this.removeMenuHeightFromParents(r.$parent,a)},addMenuHeightToParents(r,a){var c,g,i;const s=r==null||(c=r.$refs)===null||c===void 0?void 0:c.nestedMenu,p=s==null||(g=s.style)===null||g===void 0?void 0:g.maxHeight;p!=null&&(s.style.maxHeight=`${parseInt(p,10)+a}px`),r!=null&&(i=r.$parent)!==null&&i!==void 0&&(i=i.$refs)!==null&&i!==void 0&&i.nestedMenu&&this.addMenuHeightToParents(r.$parent,a)},handleClick(){this.variant==="mobile"&&this.closeSlideout()}}};var O=t(51900),x=(0,O.Z)(L,M,y,!1,null,"13fbbc13",null);const $=x.exports},14169:(k,l,t)=>{t.d(l,{Z:()=>g});var M=function(){var s=this,p=s._self._c;return p("div",{staticClass:"order-online-mobile",class:s.mobileClasses,style:s.mobileStyles},[p("nav",{ref:"scroll",staticClass:"w-nav nav--order-online-mobile",class:s.themeClass("orderOnlineMobileNav")},[p("ul",{staticClass:"nav__main",class:s.menuClasses,style:s.menuStyles},s._l(s.siteNav,function(f,A){return p("text-component-with-maker",s._b({key:A,ref:`navItem${f.id}`,refInFor:!0,staticClass:"nav__item"},"text-component-with-maker",s.navItemConfig,!1),[p("w-link",{staticClass:"nav-link",class:s.activeClass(f),attrs:{link:f,"allow-nav":""},on:{"router-link:click":s.onRouterLinkClick},scopedSlots:s._u([{key:"content",fn:function(){return[s._v(` `+s._s(s.title(f))+` `)]},proxy:!0}],null,!0)})],1)}),1)])])},y=[],S=t(95756),b=t.n(S),_=t(80547),u=t(64387);const L="underline",O="pill",x="scale3d(0, 0, 0)",r={name:"OrderOnlineMobileNav",extends:u.Z,props:{variant:{type:String,default:L},activeTopLevelCategoryId:{type:String,default:""}},data(){return{activeNavStyle:x,namedSections:[_.q9,_.Zy,_.Cm],debouncedAnimateUnderline:b()(this.animateUnderline,100)}},computed:{allSections(){let i=[];return this.siteNav.forEach(s=>{if(i.push(s.id),s.children){const p=s.children.map(f=>f.id);i=i.concat(p)}}),i},topLevelNavLinks(){return this.siteNav.map(i=>i.id)},mobileStyles(){return{"--active-nav":this.activeNavStyle}},mobileClasses(){return{"nav--order-online-mobile__pills":this.isPillVariant}},isUnderlineVariant(){return this.variant===L},isPillVariant(){return this.variant===O}},watch:{activeTopLevelCategoryId:{handler(i){this.isUnderlineVariant&&this.debouncedAnimateUnderline(i)},immediate:!0}},beforeDestroy(){clearTimeout(this.animateTimeout),this.debouncedAnimateUnderline.cancel()},methods:{activeClass(i){return this.activeTopLevelCategoryId===i.id?"active-nav-item":""},animateUnderline(i){var s;const p=(s=this.$refs[`navItem${i}`])===null||s===void 0?void 0:s[0],f=this.$refs.scroll,A=16;if(!p){this.activeNavStyle=x;return}if(f){const D=p.$el.offsetWidth,T=p.$el.offsetLeft;T+D-f.scrollLeft>window.innerWidth&&(f.scrollLeft=T-window.innerWidth+D+A),T{const B=-(window.innerWidth-D)/2+T,j=D/window.innerWidth;this.activeNavStyle=`translate3d(${B}px, 0, 0) scale3d(${j}, 1, 1)`},150)}}}};var a=t(51900),c=(0,a.Z)(r,M,y,!1,null,"c335aafa",null);const g=c.exports}}]);})();