1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[831,1499],{14134:function(e,r,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quickOrder",function(){return a(21451)}])},3351:function(e,r,a){"use strict";a.d(r,{QQ:function(){return getParamters},r7:function(){return getMenu}});var t=a(35423),_=a(22599),n=a(72633),u=a(60432),d=a(82594),c=a(33149);function getMenuAction(e){return(0,t.G)(()=>(0,u.f5)(e),c)}function getMenu(){return async(e,r)=>{let a=await (0,d.Z)(),{isVpPeriod:t,isSalesPeriod:n}=getPeriodParams(a),u=r().menu?r().menu.menu:null,l=!!r().menu&&r().menu.salePeriodFlag;e({type:c.UPDATE_SITE_PARAMETERS,payload:{isSalesPeriod:n,isVpPeriod:t,isCrossSellUpSellActive:a.isCrossSellUpSellActive,defaultSupportCode:a.defaultSupportCode}}),n===l&&u||await (0,_.DE)(getMenuAction,e)(n)}}function getParamters(){return async e=>{let r=await (0,d.Z)(),{isVpPeriod:a,isSalesPeriod:t}=getPeriodParams(r);e({type:c.UPDATE_SITE_PARAMETERS,payload:{isSalesPeriod:t,isVpPeriod:a,isCrossSellUpSellActive:r.isCrossSellUpSellActive,defaultSupportCode:r.defaultSupportCode}})}}let getPeriodParams=e=>{let r=!1,a=!1;return e.salesStartDate&&e.salesEndDate&&(r=(0,n.W)(e.salesStartDate,e.salesEndDate)),e.vpStartDate&&e.vpEndDate&&(a=(0,n.W)(e.vpStartDate,e.vpEndDate)),{isVpPeriod:a,isSalesPeriod:r}}},27169:function(e,r,a){"use strict";var t=a(15311),_=a(20132),n=a(6381),u=a.n(n),d=a(32515),c=a.n(d),l=a(33421),o=a(53850),m=a.n(o);r.Z=_.memo(e=>{let{isProductPage:r}=e,a=e.productCount>1;return(0,t.jsxs)("nav",{className:c().wrapper,children:[(0,t.jsx)("ol",{className:m()(c().breadcrumb,r&&c().productPage),children:(0,t.jsx)("div",{className:c().linksContainer,children:e.links&&e.links.map((_,n,d)=>{let{length:o}=d;return _.url&&n!==(r?o:o-1)?(0,t.jsx)("li",{className:c().link,children:(0,t.jsxs)(u(),{href:_.url,prefetch:!1,children:[(0,t.jsx)(l.Z,{i18nKey:_.label}),a&&n+1===o&&(0,t.jsx)("span",{className:c().nb,children:(0,t.jsx)(l.Z,{i18nKey:"navigation:univers.breadcrumb.numberArticles",values:{number:e.productCount}})})]})},n):(0,t.jsx)("li",{className:c().link,children:(0,t.jsxs)("span",{children:[(0,t.jsx)(l.Z,{i18nKey:_.label}),void 0!==e.productCount&&e.productCount>1&&n+1===o&&(0,t.jsx)("span",{className:c().nb,children:(0,t.jsx)(l.Z,{i18nKey:"navigation:univers.breadcrumb.numberArticles",values:{number:e.productCount}})})]})},n)})})}),e.children]})})},21451:function(e,r,a){"use strict";a.r(r),a.d(r,{__N_SSG:function(){return L},default:function(){return quickOrder}});var t=a(15311),_=a(20132),n=a(5762),u=a(59729),d=a(47214),c=a(82212),l=a(27169),PlusRounded=e=>(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size[0],height:e.size[1],viewBox:"0 0 20 20",className:e.className,fill:e.fill?e.fill:"currentColor",children:(0,t.jsx)("path",{d:"M13.8 8.8h-2.5V6.2C11.2 5.6 10.7 5 10 5s-1.2.6-1.2 1.2v2.5H6.2C5.6 8.8 5 9.3 5 10s.6 1.2 1.2 1.2h2.5v2.5c0 .7.6 1.2 1.2 1.2s1.2-.6 1.2-1.2v-2.5h2.5c.7 0 1.2-.6 1.2-1.2s-.4-1.2-1-1.2z"})}),o=a(118),quickerOrder_RefSection=e=>{let{direction:r="row",getColorGrid:a,colorGridList:_,updateColorGridList:n,deleteCard:u}=e;return _.map((e,d)=>(0,t.jsx)(o.Z,{updateColorGridList:n,getColorGrid:a,colorGrid:e,deleteCard:u,direction:r,cardCount:_.length,colorGridIndex:d},"RefForm".concat(d)))},m=a(33421),i=a(13962),s=a(61034),b=a(97673),p=a(84220),B=a(19411),f=a(85519),h=a(53959),v=a(88881),x=a(94519),g=a(1404),y=a(42865),C=a(3351),E=a(44026),P=a(78416),j=a(71664),A=a(10459),R=a(82971),k=a.n(R),w=a(53850),S=a.n(w),N=a(38875),O=a(12614),T=a(94991),Z=a(79428),I=a(96610),D=a(67113),M=a(77139),U=a(42254),L=!0,quickOrder=e=>{var r,a,o;let R=(0,n.useRouter)(),w=(0,u.I0)();(0,P.fn)("miniCart",A.Z),(0,P.fn)("menu",j.Z);let L=(0,_.useRef)(null),{isPending:G,menu:K,salePeriodFlag:z,vpPeriodFlag:V,isCrossSellUpSellActive:q}=(0,u.v9)(e=>e.menu),[F,W]=(0,_.useState)([{RefId:"",inputValidationError:{refError:!1}}]),[H,Y]=(0,_.useState)(null),[Q,J]=(0,_.useState)(null),[X,$]=(0,_.useState)([]),[ee,er]=(0,_.useState)(!1),[ea,et]=(0,_.useState)(!1),e_=(0,u.v9)(e=>e.miniCart),{customerBasicInfos:en}=(0,u.v9)(e=>e.app),[eu,ed]=(0,_.useState)(!1),{addToFav:ec,cancelDelete:el,closeModal:eo,handlerCloseModalSignin:em,handlerOpenModalSignin:ei,getImageUrl:es,getIdFavoris:eb,removeFav:ep,openFavorisAddMo
1dal:eB,openFavorisRemoveModal:ef,openModalSignin:eh,isClicked:ev,favorisList:ex,favorisUpdated:eg,isAdded:ey}=(0,D.H)();(0,_.useEffect)(()=>{en&&ed(!0)},[en]),(0,_.useEffect)(()=>{eu&&(0,N.u)({context:f.iu.QUICKORDERPAGE,path:R.asPath})},[eu]),(0,_.useEffect)(()=>{ey&&(0,M.G)({context:f.iu.QUICKORDERPAGE,path:R.asPath,currency:f.II.EURO,total:(0,U.hT)({favorisUpdated:eg}),favorisProduct:eg})},[ey]),(0,_.useEffect)(()=>{G||w((0,C.r7)()),H||(0,g.xu)("Menu",!0).then(e=>{Y(e?e.menuContainersCollection.items:[])}).catch(e=>{let r=new h.Z("root");r.error(e,null)}),Q||(0,g.xu)("Logo",!0).then(e=>{J(e?e.logoContainers.zone:{})}).catch(e=>{let r=new h.Z("root");r.error(e,null)})},[]),(0,_.useEffect)(()=>{let e=document.getElementsByClassName("form-field__help--error");if(e&&e[0]){let r=e[0].parentNode;r&&!(0,p.v4)(r)&&r.scrollIntoView({behavior:"smooth"})}},[F]);let addToCart=e=>{let r=e.map(e=>new v.GC(e.RefToAdd.Reference,+e.RefToAdd.Quantity,"",[e.RefToAdd.Personnalisation[0],e.RefToAdd.Personnalisation[1]]));w((0,E.K7)(!1,new v.nF(B.cf,r))),$(r),et(!0),er(!0),W([{RefId:"",inputValidationError:{refError:!1}}])},trackAddToCart=e=>{(0,O.l)({context:f.iu.QUICKORDERPAGE,path:R.asPath,currency:f.II.EURO,total:e.reduce((e,r)=>e+(r.PrixVente||0),0),productPanier:e,addToCartType:f.xj.REF_CATALOG})};return(0,_.useEffect)(()=>{if(eu&&X.length>0&&e_&&e_.data&&!e_.isAddingItem&&!e_.isLoading){let e=(0,p.yP)(e_.data.LignesProduitPanier||[],X);trackAddToCart(e)}},[null==e_?void 0:e_.data,eu]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Z,{title:"seo:quickorder.seotitle",metaDescription:"seo:quickorder.seodescription",canonicalUrl:R.asPath,pathName:R.asPath,notConcerned:!0}),eh&&!en.isAuthenticated&&(0,t.jsx)(T.Z,{closeModal:em,returnTo:R.asPath}),eB&&eg&&es(eg)&&(0,t.jsx)(Z.Z,{closeModal:eo,image:es(eg)}),ef&&eg&&es(eg)&&(0,t.jsx)(I.Z,{closeModal:eo,id:eb(eg),image:es(eg),cancelDelete:el}),ee&&(0,t.jsx)(s.default,{closeAddToCart:()=>{er(!1),w((0,E.VF)())},addedProducts:X,isSalesPeriod:z,isPrivateSell:V&&(0,i.W)(),isConnected:null==en?void 0:en.isAuthenticated,favorisList:ex,addToFav:ec,removeFav:ep,isClicked:ev,handlerOpenModalSignin:ei}),(0,t.jsxs)(d.Z,{isLoading:G,categories:null!==(r=null==K?void 0:K.classicUnivers)&&void 0!==r?r:[],mobileOnlyCategories:null!==(a=null==K?void 0:K.eventUnivers)&&void 0!==a?a:[],contentFulcategoryDetails:H,logo:Q,actifCodeSupport:(0,y.zC)(),context:f.iu.QUICKORDERPAGE,children:[(0,t.jsx)(l.Z,{links:[{label:"navigation:univers.breadcrumb.home",url:"/"},{label:"checkout:quickorder.breadcrumbtitle"}]}),(0,t.jsxs)("div",{className:k().wrapper,children:[(0,t.jsx)("h1",{className:k().pageTitle,children:(0,t.jsx)(m.Z,{i18nKey:"checkout:cart.addproductfromcatalog.title"})}),(0,t.jsx)("p",{className:k().pageLead,children:(0,t.jsx)(m.Z,{i18nKey:"checkout:quickorder.page.description",components:[(0,t.jsx)("strong",{}),(0,t.jsx)("sup",{})]})}),(0,t.jsx)("div",{className:k().grid,children:(0,t.jsx)(quickerOrder_RefSection,{getColorGrid:x.uJ,updateColorGridList:(e,r)=>{let a=[...F];a[r]=e,W(a)},deleteCard:e=>{if(F.length>0){let r=[...F];r.splice(e,1),W(r)}else W([{RefId:"",inputValidationError:{refError:!1}}])},colorGridList:F})}),(0,t.jsxs)("div",{className:k().actionBar,children:[(0,t.jsxs)("button",{className:S()("c-button","c-button--outline","c-button--icon",k().button,k().btnAddNewRef),disabled:F.length>=15||F.length<=15&&(null===(o=F[F.length-1])||void 0===o?void 0:o.RefId)==="",onClick:()=>{F.length<=15&&W([...F,{RefId:"",inputValidationError:{refError:!1}}])},children:[(0,t.jsx)(PlusRounded,{size:[16,16],className:"c-icon"})," ",(0,t.jsx)(m.Z,{i18nKey:"checkout:quickorder.page.addnewrefrence"})]}),(0,t.jsx)("button",{className:S()("c-button","c-button--primary",k().button),onClick:()=>{let e=F.filter(e=>""!=e.RefId),r=!1;for(let a of e){let e=(0,b.t)(a);r=r||e.hasError,a.inputValidationError=e.inputValidationError}W([...e]),!r&&e.length>0&&addToCart(e)},disabled:1==F.filter(e=>""==e.RefId).length&&1==F.length,ref:L,children:(0,t.jsx)(m.Z,{i18nKey:"checkout:quickorder.buttons.addtocart"})})]})]})]})]})}},60432:function(e,r,a){"use strict";a.d(r,{f5:function(){return getMenuFromApi}}),a(53959),a(55266),a(48155);var t=a(30893);function getMenuFromApi(e){return t.e.proxy("".concat("/api/menu","?isSalesPeriod=").concat(e),null)}},32515:function(e){e.exports={fwb:"Breadcrumb_fwb__8VBOX",fwn:"Breadcrumb_fwn__6a8Ww",ovh:"Breadcrumb_ovh__0NywL",strong:"Breadcrumb_strong__m5Zi_",white:"Breadcrumb_white__T82m4",tac:"Breadcrumb_tac__15jz0",tal:"Breadcrumb_tal__GPROa",tdu:"Breadcrumb_tdu__WWi_Y","body--full-height":"Breadcrumb_body--full-height__0WVvM",overlay:"Breadcrumb_overlay__i9z4F",invert:"Breadcrumb_invert___e4QU",addToCartOverlay:"Breadcrumb_addToCartOverlay__p94Np",sizeHelpOverlay:"Breadcrumb_sizeHelpOverlay__D1vgX","overlay-above":"Breadcrumb_overlay-above__VE1wh","overlay-below":"Breadcrumb_overlay-below__ddzR0",header:"Breadcrumb_header__bgzMD","nav-opened":"Breadcrumb_nav-opened__peI4_",nav:"Breadcrumb_nav__wwJiK","search-opened":"Breadcrumb_search-opened__7nW44","cart
1-opened":"Breadcrumb_cart-opened__okihN","account-opened":"Breadcrumb_account-opened__d7lCd",blanc:"Breadcrumb_blanc__AM89x",gris:"Breadcrumb_gris__VnXrZ",bleu:"Breadcrumb_bleu__jYnqP",vert:"Breadcrumb_vert__5NJsf",rose:"Breadcrumb_rose__xHTvO",beige:"Breadcrumb_beige__wY37v",jaune:"Breadcrumb_jaune__dmEHP",marron:"Breadcrumb_marron__kROuc",rouge:"Breadcrumb_rouge__2gJAj",orange:"Breadcrumb_orange__3867_",violet:"Breadcrumb_violet__cFYug",noir:"Breadcrumb_noir__OeSTC",naturel:"Breadcrumb_naturel__kW6ZK",neutre:"Breadcrumb_neutre__KlVuE",multicolore:"Breadcrumb_multicolore__STcEL",required:"Breadcrumb_required__RZxbv","color-grey":"Breadcrumb_color-grey__b8jLL","color-brand-primary":"Breadcrumb_color-brand-primary__0tiTe","color-ui-danger":"Breadcrumb_color-ui-danger__VKoaz","color-orange":"Breadcrumb_color-orange__o2Mvp","visually-hidden":"Breadcrumb_visually-hidden__Oe6yO","m-0a":"Breadcrumb_m-0a__uTPlx","m-0auto":"Breadcrumb_m-0auto__dptef","mt-auto":"Breadcrumb_mt-auto__OlncP","mr-auto":"Breadcrumb_mr-auto__x6xin","ml-auto":"Breadcrumb_ml-auto___tr0n","p-0":"Breadcrumb_p-0__LnC7E","pb-0":"Breadcrumb_pb-0__rgNB7","m-0":"Breadcrumb_m-0__1Eg1c","mt-0":"Breadcrumb_mt-0__GcszV","mb-0":"Breadcrumb_mb-0__xRRsI","mr-4":"Breadcrumb_mr-4__8Ezon","mr-xxxtiny":"Breadcrumb_mr-xxxtiny__LYapX","mb-4":"Breadcrumb_mb-4__Hgbtg","mb-xxxtiny":"Breadcrumb_mb-xxxtiny__gRTbj","ml-4":"Breadcrumb_ml-4__RBCr8","ml-xxxtiny":"Breadcrumb_ml-xxxtiny__xLOxd","p-8":"Breadcrumb_p-8___nHyh","pt-8":"Breadcrumb_pt-8__76qkt","pr-8":"Breadcrumb_pr-8__u5yWI","pb-8":"Breadcrumb_pb-8__Ca4EJ","pl-8":"Breadcrumb_pl-8__8P0m0","mt-8":"Breadcrumb_mt-8___t73e","mt-xtiny":"Breadcrumb_mt-xtiny__XWhDM","mr-8":"Breadcrumb_mr-8__WDouI","mb-8":"Breadcrumb_mb-8__0wVdr","mb-xtiny":"Breadcrumb_mb-xtiny__5xvt_","ml-8":"Breadcrumb_ml-8__PPFk8","mt-tiny":"Breadcrumb_mt-tiny__0um2M","mr-12":"Breadcrumb_mr-12__rMo0i","mb-tiny":"Breadcrumb_mb-tiny__ys1a5","ml-tiny":"Breadcrumb_ml-tiny__knlHO","mt-14":"Breadcrumb_mt-14__Z7H13","p-16":"Breadcrumb_p-16__RacAC","pr-16":"Breadcrumb_pr-16__kyIwl","pb-16":"Breadcrumb_pb-16__8S24h","pl-16":"Breadcrumb_pl-16__Ml_U1","mt-16":"Breadcrumb_mt-16__0fYs_","mt-small":"Breadcrumb_mt-small___losU","mr-16":"Breadcrumb_mr-16__Y5nYv","mb-16":"Breadcrumb_mb-16__i8JNy","mb-small":"Breadcrumb_mb-small__LAy4p","ml-small":"Breadcrumb_ml-small__t90mU","mt-medium":"Breadcrumb_mt-medium__lFmQt","mb-20":"Breadcrumb_mb-20__ozibP","mb-medium":"Breadcrumb_mb-medium__5iLD6","p-24":"Breadcrumb_p-24__jpDAj","pt-24":"Breadcrumb_pt-24__uVrc4","pr-24":"Breadcrumb_pr-24__2vyrQ","pb-24":"Breadcrumb_pb-24__AxlUY","pl-24":"Breadcrumb_pl-24__nK4y0","mt-24":"Breadcrumb_mt-24__J3HmU","mt-xmedium":"Breadcrumb_mt-xmedium__raUbY","mr-xmedium":"Breadcrumb_mr-xmedium__2_oog","mb-24":"Breadcrumb_mb-24__MCElp","p-32":"Breadcrumb_p-32__K9ARe","pr-32":"Breadcrumb_pr-32__O9buv","pl-32":"Breadcrumb_pl-32__ttbmG","mt-32":"Breadcrumb_mt-32__6qA_C","mt-large":"Breadcrumb_mt-large__B0fYr","mr-32":"Breadcrumb_mr-32__O1ooa","mb-32":"Breadcrumb_mb-32__gyZBD","mb-large":"Breadcrumb_mb-large__zWa91","pt-40":"Breadcrumb_pt-40__gNeT1","pb-40":"Breadcrumb_pb-40__n6wkC","mt-40":"Breadcrumb_mt-40__hmKSa","mb-40":"Breadcrumb_mb-40__A9c7A","mb-48":"Breadcrumb_mb-48__WbX6d","mb-56":"Breadcrumb_mb-56__BXuyL","mb-64":"Breadcrumb_mb-64__JnGBb","fz-14":"Breadcrumb_fz-14__MGds3",bodySmall:"Breadcrumb_bodySmall__CYoUy","lh-20":"Breadcrumb_lh-20__xnOHx",wrapper:"Breadcrumb_wrapper__lZvkE",breadcrumb:"Breadcrumb_breadcrumb__8A7qj",link:"Breadcrumb_link__n7LCJ",linksContainer:"Breadcrumb_linksContainer__hmyoA",productPage:"Breadcrumb_productPage__b1LIb",nb:"Breadcrumb_nb__pOliq"}}},function(e){e.O(0,[5752,4034,6700,203,6754,4100,6688,6400,5228,4253,9052,6664,1404,7486,6068,2357,230,1034,5623,9774,2888,179],function(){return e(e.s=14134)}),_N_E=e.O()}]);
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.