(window.webpackJsonp=window.webpackJsonp||[]).push([[243],{1225:function(t,e,o){"use strict";o(935)},1226:function(t,e,o){var n=o(167)((function(i){return i[1]}));n.push([t.i,"@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(359deg)}}.ca-layout-default__main{padding-top:7.8125rem}@media screen and (min-width:1024px){.ca-layout-default__main{padding-top:10.375rem}}.ca-layout-default__main--pdp{padding-top:4.9375rem}@media screen and (min-width:1024px){.ca-layout-default__main--pdp{padding-top:10.875rem}}.ca-layout-default__loading{background-color:#595959;border-radius:50%;height:2.25rem;left:50%;padding:.5rem;position:absolute;position:fixed;top:5.4375rem;transform:translateX(-50%);width:2.25rem;z-index:107}@media screen and (min-width:1024px){.ca-layout-default__loading{top:11.625rem}}.ca-layout-default__top-area{margin:0 0 1.25rem}.ca-layout-default--loading .ca-layout-default__main{min-height:100vh}",""]),n.locals={},t.exports=n},1470:function(t,e,o){"use strict";o.r(e);o(24),o(30),o(27),o(46);var n={name:"CaDefaultLayout",mixins:[o(751).a],computed:{modifiers(){return{"ca-layout-default--loading":this.$store.state.loading.loading}},pageTypeClass(){var t,e=null===(t=this.$route)||void 0===t?void 0:t.name;return"ca-layout-default__main--"+(e?e.split("-")[0].split("_")[0]:"")},isPdp(){var t;return null===(t=this.$route)||void 0===t||null===(t=t.name)||void 0===t?void 0:t.includes("pdp")}},mounted(){this.$router.afterEach((()=>{this.performActions()}))},methods:{performActions(){if(this.$route.query.action)switch(this.$route.query.action){case"login":this.$store.commit("contentpanel/open",{name:"account",frame:"login"});break;case"create-account":this.$store.commit("contentpanel/open",{name:"account",frame:"create"});break;case"cart":this.$store.dispatch("cart/get",this.$route.hash.replace("#","")),this.$router.replace(this.$getPath("checkout"));break;default:return!1}}}},r=(o(1225),o(103)),component=Object(r.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ca-layout-default",class:t.modifiers},[e("CaHeader"),t._v(" "),e("main",{staticClass:"ca-layout-default__main",class:t.pageTypeClass},[t.isPdp?t._e():e("CaWidgetArea",{staticClass:"ca-layout-default__top-area",attrs:{family:"Top Area","area-name":"Campaign banner"}}),t._v(" "),e("Nuxt")],1),t._v(" "),e("div",[e("CaFooter"),t._v(" "),e("client-only",[e("transition",{attrs:{name:"fade"}},[t.globalLoading?e("div",{staticClass:"ca-layout-default__loading"},[e("LazyCaSpinner",{staticClass:"ca-layout-default__spinner"})],1):t._e()])],1),t._v(" "),e("LazyCaDisplayCart"),t._v(" "),e("LazyCaAccountPanel"),t._v(" "),e("LazyCaMenuPanel",{attrs:{"menu-location-id":"main-mobile"}}),t._v(" "),e("LazyCaMarketPanel"),t._v(" "),e("LazyCaSnackbar"),t._v(" "),e("LazyCaModal"),t._v(" "),e("LazyCaAddedToCart"),t._v(" "),t.$store.state.quickshop.product&&t.$store.state.quickshop.notifyVariant?e("LazyCaNotifyPanel",{attrs:{product:t.$store.state.quickshop.product,variant:t.$store.state.quickshop.notifyVariant}}):t._e(),t._v(" "),e("LazyCaQuickshopPanel"),t._v(" "),e("LazyCaSizeGuidePanel")],1)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{CaHeader:o(1450).default,CaWidgetArea:o(597).default,CaFooter:o(1453).default})},751:function(t,e,o){"use strict";var n=o(5),r=(o(469),o(24),o(18),o(30),o(27),o(46),o(20),o(752)),l=o.n(r),d=o(753),c=o.n(d),h=o(434);e.a={name:"MixGlobalInit",mixins:[h.a],props:{},head(){var t,e,o,n,r,l=this.$nuxtI18nHead({addSeoAttributes:!0}),d=l.link.find((link=>"canonical"===link.rel));return d.href=decodeURIComponent(d.href),null!==(t=this.$route)&&void 0!==t&&null!==(t=t.query)&&void 0!==t&&t.page&&(d.href=d.href+"?page="+this.$route.query.page),{title:null===(e=this.listPageInfo)||void 0===e||null===(e=e.meta)||void 0===e?void 0:e.title,htmlAttrs:l.htmlAttrs,meta:[{hid:"description",name:"description",content:null===(o=this.listPageInfo)||void 0===o||null===(o=o.meta)||void 0===o?void 0:o.description},{hid:"og:title",name:"og:title",content:null===(n=this.listPageInfo)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.title},{hid:"og:description",name:"og:description",content:null===(r=this.listPageInfo)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.description},{hid:"og:image",property:"og:image",content:this.$config.baseUrl+"/meta-image-fallback.jpg"},...l.meta],link:[d]}},fetch(){var t=this;return Object(n.a)((function*(){var e;if(null===(e=t.$store.state.categoryTree)||void 0===e||!e.length){var o=yield t.fetchData(l.a,(t=>{var e;return(null==t||null===(e=t.data)||void 0===e?void 0:e.categories)||[]}));t.$store.commit("setCategoryTree",o)}t.listPageInfo=yield t.fetchData(c.a,(t=>{var e;return(null==t||null===(e=t.data)||void 0===e?void 0:e.listPageInfo)||null}))}))()},data:()=>({apolloLoading:!1,loadingTimeout:void 0,listPageInfo:null}),computed:{globalLoading(){return this.apolloLoading||this.$store.state.loading.loading}},watch:{$route(t,e){t.path!==e.path&&(t.name.includes("list")||t.name.includes("plp")||this.$store.commit("list/setBackNavigated",!1),this.persistStates())},"$apollo.loading"(t){t?(clearTimeout(this.loadingTimeout),this.loadingTimeout=setTimeout((()=>{this.apolloLoading=!0}),1e3)):(clearTimeout(this.loadingTimeout),this.apolloLoading=!1)}},mounted(){var t=this;return Object(n.a)((function*(){t.$store.dispatch("cart/update"),t.$store.dispatch("initScrollListener"),t.$store.commit("setViewportWidth"),t.$store.dispatch("initResizeListener"),window.addEventListener("popstate",t.popStateHandler),window.addEventListener("beforeunload",t.beforeUnloadHandler),t.$store.subscribe((e=>{var{type:o,payload:n}=e;if("events/push"===o&&n){var r=n.type;(r.includes("favorite")||"customer-type:change"===r)&&t.persistStates()}})),t.persistStates(),yield t.$store.dispatch("auth/initClient"),t.$store.getters["auth/authenticated"]&&t.$config.customerTypesToggle&&t.$store.dispatch("changeCustomerType",t.$cookies.get("ralph-user-type")),t.performActions()}))()},beforeDestroy(){window.removeEventListener("popstate",this.popStateHandler),window.removeEventListener("beforeunload",this.beforeUnloadHandler)},methods:{performActions(){if(this.$route.query.action)switch(this.$route.query.action){case"login":this.$store.commit("contentpanel/open",{name:"account",frame:"login"});break;case"cart":this.$store.dispatch("cart/get",this.$route.hash.replace("#","")),this.$router.replace(this.$getPath("checkout"));break;default:return!1}},popStateHandler(){this.$nextTick((()=>{this.$store.commit("list/setBackNavigated",!0)}))},beforeUnloadHandler(){this.persistStates()},persistStates(){this.$store.dispatch("persistStates",this.$config.statesToPersist||[])}}}},935:function(t,e,o){var content=o(1226);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(168).default)("5886d6ba",content,!0,{sourceMap:!1})}}]);