(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[30578],{29523:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCmsBlocksByIds"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storeId"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"identifiers"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getCmsBlocksByIds"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ids"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}},{kind:"Argument",name:{kind:"Name",value:"identifiers"},value:{kind:"Variable",name:{kind:"Name",value:"identifiers"}}},{kind:"Argument",name:{kind:"Name",value:"storeId"},value:{kind:"Variable",name:{kind:"Name",value:"storeId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"blockId"},name:{kind:"Name",value:"block_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"identifier"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_active"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"visibleFrom"},name:{kind:"Name",value:"visible_from"},arguments:[],directives:[]},{kind:"Field",alias:{kind:"Name",value:"visibleTo"},name:{kind:"Name",value:"visible_to"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"attributes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CmsBlockAttributesFragment"},directives:[]}]}}]}}]}}],loc:{start:0,end:437}};t.loc.source={body:'#import "/var/www/html/themes/.generated/frontend/graphql/queries/cms/block/attributes.graphql"\n\nquery getCmsBlocksByIds ($ids:[Int],$storeId:Int$identifiers:[String]\n){\n getCmsBlocksByIds (ids:$ids,identifiers:$identifiers,storeId:$storeId){\n blockId: block_id\n title\n identifier\n content\n is_active\n visibleFrom: visible_from\n visibleTo: visible_to\n attributes {\n ...CmsBlockAttributesFragment\n }\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(i(6042).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)})));var o={};function s(e,n){for(var i=0;i0;){var d=r;r=new Set,d.forEach((function(e){a.has(e)||(a.add(e),(o[e]||new Set).forEach((function(e){r.add(e)})))}))}return a.forEach((function(n){var t=s(e,n);t&&i.definitions.push(t)})),i}(t,"getCmsBlocksByIds")},6042:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"CmsBlockAttributesFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CmsBlockAttributes"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"creation_time"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"update_time"},arguments:[],directives:[]}]}}],loc:{start:0,end:92}};n.loc.source={body:"fragment CmsBlockAttributesFragment on CmsBlockAttributes {\n creation_time,\n update_time\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0;){var d=s;s=new Set,d.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){s.add(e)})))}))}return o.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(n,"CmsBlockAttributesFragment")},59272:function(e,n,i){"use strict";i.d(n,{EY:function(){return t},_Q:function(){return a}});var t=function(e){return{type:"SET_CURRENT_PREV_PATH",pathInfo:e}},a=function(e){return{type:"UPDATE_HISTORY",historyData:e}}},84528:function(e,n,i){"use strict";i.d(n,{Ss:function(){return d},AC:function(){return s},ZP:function(){return c}});var t=i(97939),a=i(70111),r={footer:"footer",notFound:"not-found"},o={common:[r.footer],product:[],category:[],cms:[],checkout:[],notFound:[r.notFound]},s=(0,a.Z)((0,t.Z)({},r),{bannerShipping:"banner-shipping",footerClarel:"footer_clarel",headerDesktop:"header_desktop",headerMobile:"header_mobile",menuClarel:"menu_clarel",productCommonInfo:"product_common_info",loginFormInfo:"login_form_info",loginDisclaimer:"login_disclaimer",loginAdditionalContent:"login_additional_content",notFound:"not_found",orderReviewSuccess:"order_review_success",thankYou:"thank_you"}),d=(0,a.Z)((0,t.Z)({},o),{common:[s.bannerShipping,s.footerClarel,s.headerDesktop,s.headerMobile,s.menuClarel,s.notFound,s.thankYou],product:[s.productCommonInfo],login:[s.loginFormInfo,s.loginAdditionalContent,s.loginDisclaimer],orderReviewSuccess:[s.orderReviewSuccess]}),c={blocksIds:s,allowedBlocks:d}},45836:function(e,n,i){"use strict";i.d(n,{p:function(){return k}});var t=i(44229),a=i(92712),r=i(29523),o=i.n(r),s=i(75968),d=i(12446),c=i(91815),u=i.n(c),l=i(23973),f=i.n(l),m=i(43338),v=i.n(m),k=function(e,n){return function(){var i=(0,t.Z)((function(i){var t,r,c,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return t=e.client,f()(n,"identifiers")&&(n.identifiers=v()(u()(n.identifiers))),f()(n,"ids")&&(n.ids=v()(u()(n.ids))),[4,t.query({query:o(),variables:n,fetchPolicy:(0,d.Z)()?"no-cache":"cache-first"})];case 1:return r=a.sent(),c=r.data,l=c.getCmsBlocksByIds,[4,i((0,s.a)(l))];case 2:return a.sent(),[2,l]}}))}));return function(e){return i.apply(this,arguments)}}()}},30578:function(e,n,i){"use strict";i.d(n,{F:function(){return V},Z:function(){return q}});var t=i(44229),a=i(84872),r=i(83687),o=i(23745),s=i(38344),d=i(39978),c=i(90452),u=i(8129),l=i(92712),f=i(97939),m=i(99268),v=i(3445),k=i(12446),p=i(33795),h=i.n(p),g=i(66901),b=i.n(g),y=i(53832),_=i(59272),S={updateHistory:!0},N=function(e){(0,c.Z)(i,e);var n=(0,u.Z)(i);function i(){return(0,a.Z)(this,i),n.apply(this,arguments)}return(0,r.Z)(i,null,[{key:"getInitialProps",value:function(e){return(0,t.Z)((function(){return(0,l.__generator)(this,(function(e){return[2,{}]}))}))()}},{key:"notFoundPage",value:function(e){var n=this;return(0,t.Z)((function(){return(0,l.__generator)(this,(function(i){return(0,k.Z)()&&h()(e,"res")&&(e.res.statusCode=404,n.blocks=b()(n.blocks,"notFound")?n.blocks:(0,m.Z)(n.blocks).concat(["notFound"])),[2]}))}))()}},{key:"setCurrentPage",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this;return(0,t.Z)((function(){var t;return(0,l.__generator)(this,(function(a){switch(a.label){case 0:return t=(0,f.Z)({private:!1},n),e.store?[4,e.store.dispatch((0,y.D4)(i.pageType,t))]:[3,4];case 1:return a.sent(),!(0,k.Z)()&&h()(S,"updateHistory")?[4,e.store.dispatch((0,_._Q)({pageType:i.pageType,data:t}))]:[3,3];case 2:a.sent(),a.label=3;case 3:a.label=4;case 4:return[2]}}))}))()}}]),i}(v.Z),I=N,F=i(84528),C=i(75453),Z=i.n(C),w=i(52635),B=i.n(w),D=i(484),E=i.n(D),T=i(45836),A=i(16302),P=i(11944),V=function(e){(0,c.Z)(i,e);var n=(0,u.Z)(i);function i(){return(0,a.Z)(this,i),n.apply(this,arguments)}return(0,r.Z)(i,null,[{key:"getInitialProps",value:function(e){var n=this,a=this;return(0,t.Z)((function(){var t;return(0,l.__generator)(this,(function(r){switch(r.label){case 0:return[4,(0,s.Z)((0,d.Z)(i),"getInitialProps",n).call(a,e)];case 1:return t=r.sent(),[4,a.getBlocks(e)];case 2:return r.sent(),[2,t]}}))}))()}},{key:"preloadData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["user","cart"];return(0,t.Z)((function(){var i,t,a,r,o,s,d,c,u,f;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return i=e.store.getState(),t=i.storeConfig,a=t.storeId,r=t.storeCode,o=i.user,s=i.cart.quoteId,d=h()(e,"cookies.cart-".concat(a)),c=h()(e,"cookies.token-".concat(a)),u=[],c&&!h()(o,"id")&&b()(n,"user")?u.push(e.store.dispatch((0,P.i)(e,{token:c,storeId:a,storeCode:r,firstLoad:!0},"no-cache"))):d&&!s&&b()(n,"cart")&&(f={storeId:a,quoteId:d},u.push(e.store.dispatch((0,A.T)(e,{cartData:f,firstLoad:!0})))),[4,Promise.all(u)];case 1:return l.sent(),[2]}}))}))()}},{key:"getBlocks",value:function(e){var n=this;return(0,t.Z)((function(){var i,t,a,r,o,s,d,c,u;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return(i=e.store)?(t=i.getState(),a=t.cms,r=t.storeConfig,o=r.storeId,s=r.defaultStoreId,d=B()(h()(a,"blocks.byIdentifier")),c=Z()(n.blocks.map((function(e){return F.Ss[e]}))),(u=(0,k.Z)()?c:E()(c,d)).length?[4,i.dispatch((0,T.p)(e,{identifiers:u,storeId:o||s}))]:[3,2]):[3,2];case 1:l.sent(),l.label=2;case 2:return[2]}}))}))()}}]),i}(I);(0,o.Z)(V,"blocks",["common"]),(0,o.Z)(V,"pageType","public");var q=V}}]);