PageSourceSearch

https://www.becquet.fr/_next/static/chunks/3255-ee1e6dd6d2195e66.js

js becquet.fr collected 2026-09-26 02:12:05 UTC 25,256 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3255],{41088:function(e,t,i){i.d(t,{D0:function(){return getAccount}});var n=i(35423),r=i(45205),o=i(2138);function getAccount(e){return(0,n.G)(()=>(0,r.Jl)(e),o,!1)}},23755:function(e,t,i){i.d(t,{Z:function(){return accountReducer}});var n=i(2138),r=i(24970);let o={isPending:!1,isSuccessUpdate:!1};function accountReducer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case n.GET_ACCOUNT_REQUEST:return{...e,isPending:!0,error:void 0};case n.GET_ACCOUNT_SUCCESS:let i=t.payload,s=!0===i.argument;return{...e,account:s?e.account:i.response,isPending:!1,isSuccessUpdate:!!s||void 0,error:void 0};case n.GET_ACCOUNT_FAILED:let a=t.payload;return{...e,error:a.response,isPending:!1};case r.Nv:return{...e,account:void 0,error:void 0};default:return e}}},2138:function(e,t,i){i.r(t),i.d(t,{GET_ACCOUNT_FAILED:function(){return o},GET_ACCOUNT_REQUEST:function(){return n},GET_ACCOUNT_SUCCESS:function(){return r}});let n="GET_ACCOUNT_REQUEST",r="GET_ACCOUNT_SUCCESS",o="GET_ACCOUNT_FAILED"},69442:function(e,t,i){i.d(t,{BW:function(){return getCurrentOrder},CP:function(){return getAuthorizePayzen},FC:function(){return logPayzenError},FP:function(){return resetFavoriteRelay},GN:function(){return setPayementModeLabel},H2:function(){return orderConfirmSuccess},_w:function(){return addPayment},cr:function(){return setOrderErreur},eR:function(){return setOrderConfirmation},f6:function(){return dispatchAuthorizePayzenRequest},iZ:function(){return payzenReset},s6:function(){return getSelectionnedRelay},wk:function(){return setDeliveryMode}});var n=i(35423),r=i(39690),o=i(53597),s=i(47054),a=i(94925),l=i(22390),d=i(69947),u=i(85332);function getCurrentOrder(){let e={ORDER_GET_REQUEST:o.aA,ORDER_GET_SUCCESS:o.rq,ORDER_GET_FAIL:o.Z2};return(0,n.G)(()=>r.co(),e,null)}function setDeliveryMode(e){let t={TypeAction:0,LivraisonInfo:(0,d.Yd)(e)};return(0,n.G)(()=>r.a7(t),s,null)}function setPayementModeLabel(e){return{type:a.L4,payload:e}}function resetFavoriteRelay(){return{type:l.RESET_RELAY_GETFAVORITERELAY}}function getSelectionnedRelay(e,t,i){return(0,n.G)(()=>r.wt({voie:e,commune:t,codePostal:i}),l,null)}function setOrderConfirmation(e,t,i){let s={TypeAction:2,PaiementInfo:e,CodeSupportSource:(0,u.J4)(),NumeroCommande:t},a={ADD_PAYMENT_REQUEST:o.kE,ADD_PAYMENT_SUCCESS:o.J8,ADD_PAYMENT_FAIL:o.X_};return(0,n.G)(()=>r.eR(s,i),a,null)}function addPayment(e){let t={TypeAction:1,PaiementInfo:e},i={ADD_PAYMENT_REQUEST:a.kj,ADD_PAYMENT_SUCCESS:a._H,ADD_PAYMENT_FAIL:a.BI};return(0,n.G)(()=>r.hL(t),i,null)}function getAuthorizePayzen(){let e={CREATE_PAYMENT_PAYZEN_REQUEST:a.gk,CREATE_PAYMENT_PAYZEN_SUCCESS:a.s2,CREATE_PAYMENT_PAYZEN_FAIL:a.h$};return(0,n.G)(()=>r.CP(),e,null)}function dispatchAuthorizePayzenRequest(e){return{type:a.gk,payload:{isLoading:e}}}function payzenReset(){return{type:a.Td}}let orderConfirmSuccess=e=>({type:o.J8,payload:e});function setOrderErreur(e){return{type:o.Z2,payload:e}}function logPayzenError(e){let t={LOG_PAYZEN_ERROR_REQUEST:a.FW,LOG_PAYZEN_ERROR_SUCCESS:a.DO,LOG_PAYZEN_ERROR_FAIL:a.DO};return(0,n.G)(()=>r.FC(e),t,null)}},62874:function(e,t,i){i.d(t,{OH:function(){return getRelayFullAddress},VP:function(){return getFullAddressFromUserInfos},xW:function(){return getDeliverySummary},zH:function(){return getHomeCustomerDeliveryAddress}});let getFullAddressFromUserInfos=e=>e?{...e.AddressCustomer,Civility:e.Civility,FirstName:e.FirstName,LastName:e.Name}:{};function getRelayFullAddress(e){return{FirstName:e.nom,LastName:"",LabelTrack:e.voie,AdditionalAddress:e.complementAdresse,PostalCode:e.codePostal,City:e.commune}}function getFullAddressFromOtherAddress(e){return{FirstName:e.address.FirstName,LastName:e.address.LastName,LabelTrack:e.address.LabelTrack,AdditionalAddress:e.address.AdditionalAddress,PostalCode:e.address.PostalCode,TrackNumber:e.address.TrackNumber,TrackNumeroSupplement:e.address.TrackNumeroSupplement,City:e.address.City,Location:e.address.Location}}function getDeliverySummary(e,t){if(e&&e.LivraisonInfo&&e.LivraisonInfo.PointRelais){let t=e.LivraisonInfo.PointRelais;return getRelayFullAddress(t)}if(e&&e.LivraisonInfo&&e.LivraisonInfo.AutreAdresse){let t=e.LivraisonInfo.AutreAdresse;return getFullAddressFromOtherAddress(t)}return getFullAddressFromUserInfos(t)}function getHomeCustomerDeliveryAddress(e,t){if(e&&e.LivraisonInfo&&e.LivraisonInfo.AutreAdresse){let t=e.LivraisonInfo.AutreAdresse;return getFullAddressFromOtherAddress(t)}return getFullAddressFromUserInfos(t)}},72633:function(e,t,i){i.d(t,{A:function(){return ParameterModel},W:function(){return verifyIsPeriodActive}});let ParameterModel=class ParameterModel{getParamsByName(e){switch(e){case"isSalesPeriod":return this.verifyIsPeriodActive(this.salesStartDate,this.salesEndDate);case"isVpPeriod":return this.verifyIsPeriodActive(this.vpStartDate,this.vpEndDate);case"offsetDelivery":return this.verifyIsPeriodActive(this.delaiStartLivraisonMsg,this.delaiEndLivraisonMsg);default:return!1}}constructor(e){var t,i,n,r,o,s,a,l,d;this.verifyIsPeriodActive=(e,t)=>
1verifyIsPeriodActive(e,t),this.salesStartDate=null===(t=e.WEB_DATE_DEBUT_SOLDES)||void 0===t?void 0:t.Value,this.salesEndDate=null===(i=e.WEB_DATE_FIN_SOLDES)||void 0===i?void 0:i.Value,this.vpStartDate=null===(n=e.WEB_DATE_DEBUT_VENTESPRIVEES)||void 0===n?void 0:n.Value,this.vpEndDate=null===(r=e.WEB_DATE_FIN_VENTESPRIVEES)||void 0===r?void 0:r.Value,this.delaiHistorisationDemandeCatalogue=null===(o=e.WEB_DELAI_HISTORISATION_DEMANDE_CATALOGUE)||void 0===o?void 0:o.Value,this.isCrossSellUpSellActive=(null===(s=e.WEB_IS_CROSS_UP_SELL_ACTIVE_FLAG)||void 0===s?void 0:s.Value)=="1",this.defaultSupportCode=null===(a=e.WEB_CODE_SUPPORT_DEFAUT)||void 0===a?void 0:a.Value,this.delaiStartLivraisonMsg=null===(l=e.WEB_DATE_DEBUT_MSG_LIVRAISON)||void 0===l?void 0:l.Value,this.delaiEndLivraisonMsg=null===(d=e.WEB_DATE_FIN_MSG_LIVRAISON)||void 0===d?void 0:d.Value}};let verifyIsPeriodActive=(e,t)=>{let i=new Date,n=!1;return""!==e&&""!==t&&i>=new Date(e)&&i<=new Date(t)&&(n=!0),n}},6903:function(e,t,i){i.d(t,{Q:function(){return trackCheckoutProgressEvent}});var n=i(85519),r=i(13841),o=i(42254);let trackCheckoutProgressEvent=e=>(r.aL(),r.B({trackObject:calculateCheckoutProgress(e)})),calculateCheckoutProgress=e=>{let{context:t,path:i,stepName:r,stepNumber:s,expedition:a,order:l,code:d,discount:u,currency:c,total:v}=e;return{event:n.xj.CHECKOUTPROGRESS,checkout_step_number:s,checkout_step_name:r,...(0,o._X)(t,i),ecommerce:{currency:c,coupon:d,order_has_discount:u,order_has_shipping_fees:a,value:v,items:(0,o.u$)({order:l,type:n.Pc.CART})}}}},33255:function(e,t,i){i.r(t),i.d(t,{__N_SSG:function(){return O},default:function(){return delivery_withHandleStateDelivery}});var n=i(15311),icons_HomeCheckout=e=>(0,n.jsxs)("svg",{className:e.className,width:e.size[0],height:e.size[1],viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,n.jsx)("path",{d:"M26.7626 8.96276C27.446 8.27934 28.554 8.27934 29.2374 8.96276L49.5126 29.2379C50.196 29.9213 51.304 29.9213 51.9874 29.2379C52.6709 28.5545 52.6709 27.4464 51.9874 26.763L31.7123 6.48788C29.6621 4.43763 26.3379 4.43763 24.2877 6.48789L4.01256 26.763C3.32915 27.4464 3.32915 28.5545 4.01256 29.2379C4.69598 29.9213 5.80402 29.9213 6.48744 29.2379L26.7626 8.96276Z",fill:"#909090"}),(0,n.jsx)("path",{d:"M28 12.6751L47.0377 31.7128C47.107 31.7821 47.1778 31.8491 47.25 31.9138V46.3754C47.25 48.7917 45.2912 50.7504 42.875 50.7504H35C34.0335 50.7504 33.25 49.9669 33.25 49.0004V38.5004C33.25 37.5339 32.4665 36.7504 31.5 36.7504H24.5C23.5335 36.7504 22.75 37.5339 22.75 38.5004V49.0004C22.75 49.9669 21.9665 50.7504 21 50.7504H13.125C10.7088 50.7504 8.75 48.7917 8.75 46.3754V31.9138C8.82216 31.8491 8.89297 31.7821 8.96231 31.7128L28 12.6751Z",fill:"#909090"})]}),r=i(33421),o=i(8218),s=i(9661),a=i.n(s),l=i(53850),d=i.n(l),icons_ColissimoIcon=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e.size[0],height:e.size[1],className:e.className,viewBox:"0 0 56 56",children:[(0,n.jsx)("path",{d:"M33.2639 19.9139C33.1295 19.9811 32.9279 19.9811 32.8159 19.9139L32.0767 19.4659C32.0095 19.4211 31.9647 19.3763 31.9199 19.3091C31.8751 19.2195 31.8527 19.1523 31.8527 19.0851L31.8303 18.2339C31.8303 18.0995 31.9199 17.9203 32.0543 17.8307L40.8575 12.7011L28.4927 5.98114C28.3583 5.91394 28.1791 5.86914 27.9999 5.86914C27.8207 5.86914 27.6415 5.91394 27.5071 5.98114L15.1423 12.7011L28.9855 20.7651C29.1199 20.8323 29.2095 20.9891 29.2095 21.1459V32.9059C29.2095 33.0403 29.0975 33.2195 28.9855 33.2867L28.2463 33.7123C28.1791 33.7347 28.1119 33.7571 28.0223 33.7571C28.0223 33.7571 28.0223 33.7571 27.9999 33.7571C27.9103 33.7571 27.8207 33.7347 27.7535 33.7123L27.0143 33.2867C26.8799 33.2195 26.7903 33.0403 26.7903 32.9059V22.4227C26.7903 22.3331 26.7231 22.2435 26.6559 22.2211L14.4703 15.0979V29.0083C14.4703 29.3219 14.6943 29.7027 14.9631 29.8595L27.5295 37.2739C27.6639 37.3635 27.8431 37.3859 28.0223 37.3859C28.2015 37.3859 28.3807 37.3411 28.5151 37.2739L41.0815 29.8595C41.3503 29.7027 41.5743 29.3219 41.5743 29.0083V15.0979L33.2639 19.9139Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M5.8688 45.4282C5.2416 45.0474 4.6368 44.8906 3.808 44.8906C1.6128 44.8906 0 46.3914 0 48.6762C0 50.9386 1.5008 52.4394 3.8304 52.4394C4.5696 52.4394 5.2864 52.305 5.936 51.9018V50.065C5.376 50.4906 4.7712 50.7146 4.0992 50.7146C2.8 50.7146 1.9712 49.8634 
11.9712 48.6314C1.9712 47.3322 2.8224 46.593 4.032 46.593C4.704 46.593 5.2864 46.7722 5.8688 47.265V45.4282Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M17.7856 50.6253C17.0688 50.5581 16.7104 50.1549 16.7104 49.4157V41.7773H14.7616V49.5501C14.7616 51.6781 15.9488 52.3725 17.7856 52.3725V50.6253Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M10.2144 44.8906C8.064 44.8906 6.4288 46.4138 6.4288 48.6538C6.4288 50.9162 8.0416 52.4394 10.2144 52.4394C12.3648 52.4394 14 50.9162 14 48.6538C14 46.4138 12.3648 44.8906 10.2144 44.8906ZM10.2144 50.7594C9.1616 50.7594 8.4 49.953 8.4 48.6538C8.4 47.3546 9.1616 46.5706 10.2144 46.5706C11.2672 46.5706 12.0288 47.3546 12.0288 48.6538C12.0288 49.953 11.2672 50.7594 10.2144 50.7594Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M21.84 51.7682C22.4224 52.149 23.3184 52.3506 24.192 52.3506C25.872 52.3506 27.0592 51.6338 27.0592 50.0658C27.0592 48.7666 26.432 48.0498 24.5728 47.7138C23.9008 47.557 23.632 47.3554 23.632 46.9746C23.632 46.6386 23.9008 46.3698 24.5504 46.3698C25.2896 46.3698 25.9168 46.6162 26.6112 47.0642V45.3394C25.9616 44.981 25.3344 44.8018 24.4608 44.8018C22.9152 44.8018 21.7056 45.541 21.7056 47.109C21.7056 48.4306 22.4 49.0802 24.0352 49.3714C24.8192 49.5282 25.1328 49.7074 25.1328 50.1554C25.1328 50.6034 24.7296 50.7826 24.1248 50.7826C23.408 50.7826 22.4896 50.469 21.8176 49.9762V51.7682H21.84Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M18.6816 52.283H20.6304V51.6558V45.0254H18.6816V52.283Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M19.6448 42.1357C19.1072 42.1357 18.6592 42.5837 18.6592 43.1213C18.6592 43.6589 19.0848 44.1069 19.6448 44.1069C20.1824 44.1069 20.608 43.6813 20.608 43.1213C20.6304 42.5837 20.2048 42.1357 19.6448 42.1357Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M52.2144 44.8906C50.064 44.8906 48.4288 46.4138 48.4288 48.6538C48.4288 50.9162 50.0416 52.4394 52.2144 52.4394C54.3648 52.4394 56 50.9162 56 48.6538C56 46.4138 54.3648 44.8906 52.2144 44.8906ZM52.2144 50.7594C51.1616 50.7594 50.4 49.953 50.4 48.6538C50.4 47.3546 51.1616 46.5706 52.2144 46.5706C53.2672 46.5706 54.0288 47.3546 54.0288 48.6538C54.0288 49.953 53.2672 50.7594 52.2144 50.7594Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M27.7088 51.7682C28.2912 52.149 29.1872 52.3506 30.0608 52.3506C31.7408 52.3506 32.928 51.6338 32.928 50.0658C32.928 48.7666 32.3008 48.0498 30.4416 47.7138C29.7696 47.557 29.5008 47.3554 29.5008 46.9746C29.5008 46.6386 29.7696 46.3698 30.4192 46.3698C31.1584 46.3698 31.7856 46.6162 32.48 47.0642V45.3394C31.8304 44.981 31.2032 44.8018 30.352 44.8018C28.8064 44.8018 27.5968 45.541 27.5968 47.109C27.5968 48.4306 28.2688 49.0802 29.904 49.3714C30.7104 49.5282 31.0016 49.7074 31.0016 50.1554C31.0016 50.6034 30.5984 50.7826 29.9936 50.7826C29.2768 50.7826 28.3808 50.469 27.6864 49.9762V51.7682H27.7088Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M33.7568 52.283H35.7056V51.6558V45.0254H33.7568V52.283Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M34.7424 42.1357C34.2048 42.1357 33.7568 42.5837 33.7568 43.1213C33.7568 43.6589 34.1824 44.1069 34.7424 44.1069C35.28 44.1069 35.7056 43.6813 35.7056 43.1213C35.7056 42.5837 35.28 42.1357 34.7424 42.1357Z",fill:e.fill?e.fill:""}),(0,n.jsx)("path",{d:"M45.6736 47.7578C45.6736 46.9962 45.3376 46.6154 44.576 46.6154C44.0608 46.6154 43.5456 46.7274 43.2096 46.8842C43.2768 47.041 43.3664 47.2874 43.3664 47.6234V52.2826H41.3952V47.7578C41.3952 46.9962 41.0368 46.6154 40.2976 46.6154C39.8272 46.6154 39.4688 46.6826 39.088 46.7946V52.2826H37.1392V45.5178C38.1472 45.137 39.3344 44.8906 40.3872 44.8906C41.2384 44.8906 41.9552 45.0922 42.3808 45.4506C43.0304 45.1594 43.7696 44.8906 44.8224 44.8906C46.5472 44.8906 47.6224 45.5626 47.6224 47.6682V52.2602H45.6736V47.7578Z",fill:e.fill?e.fill:""})]});function getdeliveryModes(e,t,i){let s=[];if(t&&t.LignesProduitPanier.length>0&&t.ListeTypeEnvoieAutorises.length>0){let l=t.ListeTypeEnvoieAutorises,u={index:0,label:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.homemode.title"}),name:"domicile",isHome:!0,picto:(0,n.jsx)(icons_HomeCheckout,{size:[32,32],className:d()(a().icon),fill:"#909090",style:{width:"2.8rem",height:"2.8rem"}}),isSelected:!1,delays:[],price:0},c={index:1,label:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.relaymode.title_retrait"}),name:"relais",isHome:!1,picto:(0,n.jsx)(icons_ColissimoIcon,{size:[32,32],className:d()(a().icon),fill:"#909090"}),isSelected:!1,delays:[],price:0};l.forEach((t,i)=>{t.IsDomicile?u.delays.push({index:i,label:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".title")}),summary:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".summary")}
1),paragraph:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".desc"),values:{cost:(0,o.XY)(t.FraisEnvoi)}}),cost:t.FraisEnvoi,isSelected:e===t.IdTypeEnvoi,idTypeEnvoi:t.IdTypeEnvoi}):c.delays.push({index:i,label:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".title")}),summary:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".summary")}),paragraph:(0,n.jsx)(r.Z,{i18nKey:"checkout:delivery.mode_".concat(t.IdTypeEnvoi,".desc"),values:{cost:(0,o.XY)(t.FraisEnvoi)}}),cost:t.FraisEnvoi,isSelected:e===t.IdTypeEnvoi,idTypeEnvoi:t.IdTypeEnvoi})}),i&&i>750&&(u.delays.find(e=>!0==e.isSelected)?u.isSelected=!0:c.isSelected=!0),u.delays.sort((e,t)=>e.cost>t.cost?1:-1),c.delays.sort((e,t)=>e.cost>t.cost?1:-1),0===c.delays.length?(u.isSelected=!0,s=[u]):0===u.delays.length?(c.isSelected=!0,s=[c]):s=[u,c]}return s}var u=i(62874),c=i(55266),v=i(85519),f=i(15258),C=i(84220),E=i(69947),y=i(42254),h=i(6903),p=i(78978),P=i(38875),m=i(13841);let trackShippingInfosEvent=e=>(m.aL(),m.B({trackObject:calculateShippingInfos(e)})),calculateShippingInfos=e=>{let{context:t,path:i,order:n,code:r,discount:o,expedition:s,total:a,currency:l,shipping:d,isDiffered:u}=e;return{event:v.xj.ADDSHIPPINGINFOS,...(0,y._X)(t,i),ecommerce:{currency:l,coupon:r,order_has_discount:o,order_has_shipping_fees:s,shipping_tier:(0,y.iR)(d,u),value:a,items:(0,y.u$)({order:n,type:v.Pc.CART})}}};var A=i(5724),L=i(5762),S=i(20132),_=i(59729),I=i(41088),T=i(23755),g=i(78416),D=i(69442),R=i(16147),N=i(82594),M=i(39690),O=!0,delivery_withHandleStateDelivery=e=>t=>{var i;let{logoContentFul:r,initialOrder:o,initialWindowInnerWidth:s,infosClientSSR:a,complentaryInfosClientSSR:l}=t,d=o&&getdeliveryModes(null==o?void 0:o.LivraisonInfo.IdTypeEnvoi,null==o?void 0:o.Panier,s),m=(0,L.useRouter)();(0,g.fn)("order",R.Z),(0,g.fn)("account",T.Z),(0,g.qo)("cart");let{error:O,order:F,isInitOrder:x,isPendingActionOrder:V}=(0,_.v9)(e=>e.order),{account:k}=(0,_.v9)(e=>e.account),{customerBasicInfos:w}=(0,_.v9)(e=>
1e.app),{defaultSupportCode:H}=(0,_.v9)(e=>e.menu),U=(0,_.I0)(),{t:G}=(0,A.Z)(),[b,Z]=(0,S.useState)(!0),[j,Y]=(0,S.useState)(d),[B,W]=(0,S.useState)(!1),[z,Q]=(0,S.useState)(!1),[K,X]=(0,S.useState)(!1),[q,$]=(0,S.useState)(!1),[J,ee]=(0,S.useState)(!1),[et,ei]=(0,S.useState)(!1),[en,er]=(0,S.useState)(!1),[eo,es]=(0,S.useState)(),[ea,el]=(0,S.useState)(),[ed,eu]=(0,S.useState)(),[ec,ev]=(0,S.useState)(),[ef,eC]=(0,S.useState)(!0),[eE,ey]=(0,S.useState)(!1),[eh,ep]=(0,S.useState)(),[eP,em]=(0,S.useState)(),[eA,eL]=(0,S.useState)(),[eS,e_]=(0,S.useState)(),[eI,eT]=(0,S.useState)(),[eg,eD]=(0,S.useState)(!1),[eR,eN]=(0,S.useState)(!1),[eM,eO]=(0,S.useState)(!1),[eF,ex]=(0,S.useState)(!1),[eV,ek]=(0,S.useState)(!1),[ew,eH]=(0,S.useState)(!1),[eU,eG]=(0,S.useState)(!1),[eb,eZ]=(0,S.useState)(null),[ej,eY]=(0,S.useState)(!1),[eB,eW]=(0,S.useState)(()=>window.innerWidth);(0,S.useEffect)(()=>(window.addEventListener("resize",updateWindowInnerWidth),()=>{window.removeEventListener("resize",updateWindowInnerWidth)}),[]);let updateWindowInnerWidth=()=>{eW(window.innerWidth)};(0,S.useEffect)(()=>{let e=F&&(F.LivraisonInfo.IdTypeEnvoi===f.pN.HomeExpress||F.LivraisonInfo.IdTypeEnvoi===f.pN.HomeQuick)?F.LivraisonInfo.IdTypeEnvoi:f.pN.HomeStandard;F&&!x&&eo&&handleLadModeChoosed(e)},[eo]);let submitDeliveryMode=e=>{let t=e||{};t.idEnv=e&&e.idEnv||0,eL(t),t&&U((0,D.wk)(t))},handleLadModeChoosed=(e,t,i)=>{var n;let r={};i&&ep(t),i||er(!1),ei(null!=i&&i);let o=J&&eo?(0,C.wj)((null===(n=eo.address)||void 0===n?void 0:n.PostalCode)||"")[0]:w&&w.CodePostal?w.CodePostal:"";r.relay=void 0,r.postalCode=o,r.idEnv=e,r.otherAddress=J?eo:void 0,r.requestedDeliveryDate=i&&t||"",r.telephoneLivraison=B&&eS||"",r.instructions=B&&eI||"";let s=j.map(t=>{let i=t.delays.map(t=>({...t,isSelected:t.idTypeEnvoi==e}));return{...t,delays:i}});Y(s),submitDeliveryMode(r)};(0,S.useEffect)(()=>{if(F&&F.LivraisonInfo){let e={};e.relay=F.LivraisonInfo.PointRelais,e.postalCode=F.LivraisonInfo.AutreAdresse?F.LivraisonInfo.AutreAdresse.address.PostalCode:w&&w.Co
1dePostal?w.CodePostal:"",e.idEnv=F.LivraisonInfo.IdTypeEnvoi,e.otherAddress=J?eo:void 0,e.requestedDeliveryDate=F.LivraisonInfo.DateDeLivraisonDemandee,e.telephoneLivraison=F.LivraisonInfo.TelephoneFixeLivraison||F.LivraisonInfo.TelephonePortableLivraison,e.instructions=F.LivraisonInfo.AnnotationLivraison,eL(e)}},[x]),(0,S.useEffect)(()=>{var e;if(!(null==F?void 0:null===(e=F.LivraisonInfo)||void 0===e?void 0:e.DateDeLivraisonDemandee))return;ei(!0);let{IdTypeEnvoi:t,DateDeLivraisonDemandee:i}=F.LivraisonInfo;t===f.pN.HomeStandard?ep(i):em(i)},[null==F?void 0:null===(i=F.LivraisonInfo)||void 0===i?void 0:i.DateDeLivraisonDemandee]),(0,S.useEffect)(()=>{F&&(null==F?void 0:F.LivraisonInfo.PointRelais)&&!ed&&eu(F.LivraisonInfo.PointRelais)},[null==F?void 0:F.LivraisonInfo.PointRelais,ed]);let handleFavoriteRelayChange=async e=>{if(eu(e),eA){let t={...{...eA,relay:e,postalCode:e.codePostal}};t.telephoneLivraison=eS,t.instructions=eI||"",ek(!0),await U((0,D.wk)(t)),ek(!1)}},getAllFavorites=async e=>{let{voie:t,commune:i,codePostal:n}=e,r=await (0,M.W4)({voie:t,commune:i,codePostal:n});ev(r instanceof E.qy&&r.relaysList||[])};(0,S.useEffect)(()=>{F&&F.LivraisonInfo.IdTypeEnvoi===f.pN.RelayStandard&&ed&&eL({...eA,relay:ed,postalCode:ed.codePostal})},[ed]),(0,S.useEffect)(()=>{if(j&&j.some(e=>e.isSelected&&!e.isHome)&&!ed&&!ef){let e=j.find(e=>e.isHome);e&&toggleDelivery(e)}},[j,ef,ed]),(0,S.useEffect)(()=>{X(!!V)},[V]),(0,S.useEffect)(()=>{if(F){let e=getdeliveryModes(F.LivraisonInfo.IdTypeEnvoi,o.Panier,eB);if(e.sort(e=>e.isHome?1:-1),e.length&&(e[0].isHome?toggleDelivery(e[0],e):Y(e)),ee(!!F.LivraisonInfo.AutreAdresse),es(F.LivraisonInfo.AutreAdresse),k){let t=F.Panier.IdentifiantParrain,i=0!=t&&w&&(w.NbCommandes&&w.NbCommandes>0||t==w.IdentifiantClient);i||F.Panier.Totaux.PointsCadeauxADeduire>k.NbPointsCadeaux?m.replace("/".concat(c.default.RoutesPaths.checkout.CART)):(el((0,u.VP)(k)),e.find(e=>!e.isHome)?void 0!==ed||!1!==eE||ec||getSectionnedRelay(k.AddressCustomer.LabelTrack,k.AddressCustomer.City,k.AddressCustomer.PostalCode):eC(!1),eD(!0));let n=F.LivraisonInfo.TelephonePortableLivraison||F.LivraisonInfo.TelephoneFixeLivraison||k.Cellphone;e_(n)}F.LivraisonInfo&&F.LivraisonInfo.AnnotationLivraison&&eT(F.LivraisonInfo.AnnotationLivraison)}},[x,k,eB]);let getSectionnedRelay=async(e,t,i)=>{U((0,D.FP)()),await U((0,D.s6)(e,t,i)),eC(!1),ey(!0)},handleRelayModeChoosed=(e,t,i)=>{let n={};i&&em(t),i||er(!1),ei(null!=i&&i),n.postalCode=ed?ed.codePostal:"",n.relay=ed,n.idEnv=e,n.otherAddress=void 0,n.requestedDeliveryDate=i&&t||"",n.telephoneLivraison=B&&eS||"",n.instructions=B&&eI||"";let r=j.map(t=>{let i=t.delays.map(t=>({...t,isSelected:t.idTypeEnvoi==e}));return{...t,delays:i}});Y(r),submitDeliveryMode(n)},toggleDelivery=(e,t)=>{if(!e)return;let i=null!=t?t:j,n=e.isHome,r=n?f.pN.HomeStandard:f.pN.RelayStandard;n?handleLadModeChoosed(r):handleRelayModeChoosed(r);let o=i.map(t=>{let i=t.delays.map(e=>({...e,isSelected:e.idTypeEnvoi===r}));return{...t,isSelected:t.index===e.index&&t.isHome===n,delays:i}});Y(o)};(0,S.useEffect)(()=>{getMessageDelivery()},[]);let getMessageDelivery=async()=>{let e=await (0,N.$)();if(e){let t=e.getParamsByName("offsetDelivery");eY(t)}};(0,S.useEffect)(()=>{F&&F.Panier.LignesProduitPanier&&(W((0,C.sP)(F.Panier.LignesProduitPanier)),Q((0,C.aH)(F.Panier.LignesProduitPanier)))},[null==F?void 0:F.Panier.LignesProduitPanier]),(0,S.useEffect)(()=>{!k&&w&&w.NumeroClient&&U((0,I.D0)(w.NumeroClient))},[w]),(0,S.useEffect)(()=>{U((0,D.BW)())},[]),(0,S.useEffect)(()=>{w&&eG(!0)},[w]);let ez=(0,C.ny)(F&&F.Panier&&F.Panier.LignesProduitPanier||[]),submitOrder=async e=>{if(ex(!0),F&&F.LivraisonInfo){if(0===F.LivraisonInfo.IdTypeEnvoi)return;if(et&&""===F.LivraisonInfo.DateDeLivraisonDemandee){er(!0);return}let e=new RegExp(c.default.PublicConfig.NEXT_PUBLIC_REGEX_PHONE),t=new RegExp(c.default.PublicConfig.NEXT_PUBLIC_REGEX_MOBILEPHONE);if(B&&!(0,C.h5)(eS,e)&&!(0,C.h5)(eS,t)){$(!0);return}if(!V&&eA){let e={...eA};e.telephoneLivraison=eS,e.instructions=eI||"",eO(!0),eH(!0),U((0,D.wk)(e))}}},eQ=G("checkout:delivery.buttonsubmit");return(0,S.useEffect)(()=>
1{if(eM&&!O){var e;m.push("/"+c.default.RoutesPaths.checkout.PAYMENT),(0,p.u)({context:v.iu.DELIVERYPAGE,path:m.asPath,label:eQ,url:"/"+c.default.RoutesPaths.checkout.PAYMENT,type:v.Bj.BOUTON,location:v.vL.CONTENT,externalLink:!1}),trackShippingInfosEvent({context:v.iu.DELIVERYPAGE,path:m.asPath,order:F.Panier.LignesProduitPanier,code:F.Panier.Totaux.MontantRemiseSupplementaire>0?F.Panier.Support.Code:void 0,discount:(0,y.g4)(null==F?void 0:null===(e=F.Panier)||void 0===e?void 0:e.LignesProduitPanier),expedition:F.Panier.Totaux.MontantFraisEmballage>0,paymentType:null,total:F.Panier.Totaux.TotalGeneral,currency:v.II.EURO,shipping:F.LivraisonInfo,isDiffered:et})}eO(!1)},[O,F]),(0,S.useEffect)(()=>{if(F&&eU){let e=!0,t=m.asPath;return eZ(null),(0,P.u)({context:v.iu.DELIVERYPAGE,path:t}).then(()=>{e&&eZ(t)}),()=>{e=!1}}},[F,eU,m.asPath]),(0,S.useEffect)(()=>{if(F&&eb===m.asPath){var e;(0,h.Q)({context:v.iu.PAYMENTPAGE,path:m.asPath,stepName:v.sL.STEP_DELIVERY,stepNumber:v.f$.STEP_DELIVERY,expedition:(null==F?void 0:F.Panier.Totaux.MontantFraisEmballage)>0,order:null==F?void 0:F.Panier.LignesProduitPanier,code:(null==F?void 0:F.Panier.Support.Code)!==H&&F?F.Panier.Support.Code:void 0,discount:(0,y.g4)(null==F?void 0:null===(e=F.Panier)||void 0===e?void 0:e.LignesProduitPanier),total:null==F?void 0:F.Panier.Totaux.TotalGeneral,currency:v.II.EURO})}},[F,eb,m.asPath]),(0,n.jsx)(e,{logoContentFul:r,error:O,order:null!=F?F:o,isLoading:!b&&ew,deliveryModes:j,orderValidated:eg,deliveryLoading:eV,isDeliveryOffset:ej,otherAddressPending:K,domProductsNumber:ez,isSubmitted:eF,openOtherAdressModal:()=>{eN(!0)},submitOrder:submitOrder,hasDOMProducts:z,toggleDelivery:toggleDelivery,handleFavoriteRelayChange:handleFavoriteRelayChange,handleOtherAddressChange:e=>{X(!0),ee(!0);let t={...e};t.address.TypeTrack=void 0,es(t)},handleLadModeChoosed:handleLadModeChoosed,handleRelayModeChoosed:handleRelayModeChoosed,isOtherAddressPresent:J,customerDeliveryAddress:ea,favoriteRelayPoint:ed,selectedDeliveryRelayDate:eP,selectedDeliveryHomeDate:eh,deliveryDiferredHasError:en,isDeliveryDifferred:et,containLDFArticles:B,otherAddress:eo,ldfPhoneNumber:eS,ldfAnnotation:eI,changePhoneNumberhandler:e=>{$(!1),e_(e)},setLdfAnnotation:eT,ldFHasError:q,favoriteRelayPointLoading:ef,displayOtherAddressModal:eR,setDisplayOtherAddressModal:eN,favoritesRelay:ec,getAllFavorites:getAllFavorites,context:v.iu.DELIVERYPAGE,isInitOrder:x})}},82594:function(e,t,i){i.d(t,{$:function(){return getParametersService},Z:function(){return getParametersFromApi}});var n=i(53959),r=i(72633),o=i(30893);function getParametersService(){return o.e.get("/api/v2/common/parameters",{useCache:!0,useServerToken:!0}).then(e=>{let t=new r.A(e);return t}).catch(e=>{let t=new n.Z("root");return t.error(e,null),new r.A({})})}function getParametersFromApi(){return o.e.proxy("/api/parameters",null)}}}]);

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.