"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31651],{390995:function(e,n,t){t.d(n,{Q:function(){return o;}});var i=t(641730);function o(e,n){return function(n){return(0,i.H)(Error("Received unexpected value inside exhaustive switch"),{data:{defaultValue:e,unexpectedValue:n}}),e;};}},594251:function(e,n,t){t.r(n),t.d(n,{LoggedOutMobileSignUpSnackbar:function(){return p;}});var i=t(627573),o=t(256767),r=t(532107),a=t(7653),s=t(831351),c=t(841699),u=t(502325),l=t(231292);let d="SIGNUP_CTA_MOBILE_WEB_BANNER_240806";var f=t(439225),p=function(){var e=(0,o.useStrictLocalization)().strictLocalize,n=(0,r.S)().isMobile,t=(0,s.yH)(),p=t.isSignUpSnackbarDisplayable,_=t.updateSignUpSnackbarState,h=(0,f.yu)(d,!1),S=(0,f.l_)(d),x=function(){_(s.zf.DISMISSED);};(0,a.useEffect)(function(){return function(){_(s.zf.NAVIGATED);};},[_]);var g=n&&p;return(0,a.useEffect)(function(){g&&S();},[S,g]),(0,i.jsx)(u.H,{ariaHideApp:!1,bottom:0,isOpen:g&&h,showOverlay:!1,children:(0,i.jsx)(c.T,{message:e({id:"TwJxkj",defaultMessage:[{"type":0,"value":"Inscrivez-vous et vous pourrez acheter des articles pour votre magasin aux prix revendeurs"}]}),ctaText:e({id:"zfxluM",defaultMessage:[{"type":0,"value":"S'inscrire gratuitement"}]}),ctaAction:function(){(0,l.db)(l.o_.GENERIC,function(){},{element:l.xA.SNACKBAR,sourceId:"logged_out_mobile_sign_up_snackbar"}),x();},closeAction:x,mediumMessageFont:!0,noIcon:!0,cornerButton:!0})});};},831351:function(e,n,t){t.d(n,{ur:function(){return x;},yH:function(){return S;},zf:function(){return a;}});var i,o,r,a,s=t(306821),c=t(390995),u=t(639402),l=t(758293),d=t(7653),f=t(7012);(i=r||(r={})).PRE_AUTO_SIGNUP="pre_auto_signup",i.POST_AUTO_SIGNUP="post_auto_signup",i.DISPLAYABLE="displayable",i.DISMISSED="dismissed",(o=a||(a={})).AUTO_SIGNUP_OPENED="auto_signup_opened",o.AUTO_SIGNUP_CLOSED="auto_signup_closed",o.TIMEOUT_ELAPSED="timeout_elapsed",o.NAVIGATED="navigated",o.DISMISSED="dismissed";var p="logged_out_sign_up_snackbar_state",_=function(){return l.Ke.session.getItem(p)||r.PRE_AUTO_SIGNUP;},h=function(e){l.Ke.session.setItem(p,e);},S=function(){var e=(0,s._)((0,d.useState)(function(){return _()===r.DISPLAYABLE;}),2),n=e[0],t=e[1],i=(0,d.useCallback)(function(e){x(e),t(_()===r.DISPLAYABLE);},[]);return(0,d.useEffect)(function(){var e,n=void 0,t=function(){_()===r.POST_AUTO_SIGNUP&&(n=(0,f.S)(function(){i(a.TIMEOUT_ELAPSED);},2e3));};return null===(e=(0,u.J)())||void 0===e||e.addEventListener("scroll",t),function(){var e;null===(e=(0,u.J)())||void 0===e||e.removeEventListener("scroll",t),clearTimeout(n);};},[i]),{isSignUpSnackbarDisplayable:n,updateSignUpSnackbarState:i};},x=function(e){var n=_();if(n!==r.DISMISSED)switch(e){case a.AUTO_SIGNUP_OPENED:h(r.PRE_AUTO_SIGNUP);break;case a.AUTO_SIGNUP_CLOSED:n===r.PRE_AUTO_SIGNUP&&h(r.POST_AUTO_SIGNUP);break;case a.TIMEOUT_ELAPSED:case a.NAVIGATED:n===r.POST_AUTO_SIGNUP&&h(r.DISPLAYABLE);break;case a.DISMISSED:h(r.DISMISSED);break;default:(0,c.Q)()(e);}};},841699:function(e,n,t){t.d(n,{T:function(){return x;}});var i=t(627573),o=t(253514),r=t(639402),a=t(256767),s=t(915623),c=t(364787),u=t(623490),l=t(491188),d=t(645611),f=t(55803),p=t(463953),_=t(72870);t(7653);var h=t(740032),S=t(123120),x=function(e){var n=e.message,t=e.ctaText,p=e.ctaLink,h=e.ctaAction,x=e.closeAction,m=e.mediumMessageFont,E=e.icon,b=e.noIcon,A=e.cornerButton,P=(0,a.useStrictLocalization)().strictLocalize;return(0,i.jsxs)(g,{align:"flex-start",children:[(0,i.jsxs)(l.X,{role:"button",onClick:function(){if(h(),p){var e;null===(e=(0,r.J)())||void 0===e||e.open(p,"_blank");}},children:[b?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(S.f,{size:"48px",icon:E}),(0,i.jsx)(f.L,{width:"2x"})]}),(0,i.jsxs)(d.s,{children:[(0,i.jsx)(_.Z,{color:o.QY.text.inverse,variant:m?"paragraphSansMedium":"paragraphSansRegular",children:n}),(0,i.jsx)(f.L,{height:"1x"}),(0,i.jsxs)(l.X,{align:"center",children:[(0,i.jsx)(v,{color:o.QY.text.inverse,children:t}),(0,i.jsx)(f.L,{width:"1x"}),(0,i.jsx)(c.Arrow,{direction:"right",color:o.QY.icon.inverse})]})]})]}),A?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.L,{width:"5x"}),(0,i.jsx)(I,{onClick:x,"aria-label":P({id:"hjWRYd",defaultMessage:[{"type":0,"value":"Ignorer la bannière en bas de l'écran"}]}),size:"S",children:(0,i.jsx)(u.Close,{color:o.QY.icon.inverse})})]}):(0,i.jsxs)(d.s,{children:[(0,i.jsx)(f.L,{height:"1x"}),(0,i.jsx)(s.hU,{onClick:x,"aria-label":P({id:"hjWRYd",defaultMessage:[{"type":0,"value":"Ignorer la bannière en bas de l'écran"}]}),size:"S",children:(0,i.jsx)(u.Close,{color:o.QY.icon.inverse})})]})]});},g=(0,h.ZP)(l.X).withConfig({componentId:"sc-a5c0194e-0"})(["width:100%;background:",";padding:16px;"],o.QY.surface.default),v=(0,h.ZP)(_.Z).withConfig({componentId:"sc-a5c0194e-1"})(["text-decoration:underline;"]),I=(0,h.ZP)(s.hU).withConfig({componentId:"sc-a5c0194e-2"})(["position:absolute;top:",";right:",";"],(0,p.bG)("1x"),(0,p.bG)("1x"));},502325:function(e,n,t){t.d(n,{H:function(){return S;}});var i=t(50044),o=t(187653),r=t(587723),a=t(627573),s=t(253514),c=t(994076),u=t(7653),l=t(809705),d=t.n(l),f=t(740032),p=!1,_=function(){p||((0,l.setAppElement)("#root"),p=!0);},h=f.ZP.div.withConfig({componentId:"sc-100f0608-0"})(["display:flex;align-items:center;background-color:",";box-shadow:4px 0 10px ",";width:100%;height:fit-content;"],s.QY.surface.inverse,s.QY.surface.default+c.Opacity.O_20),S=(0,f.ZP)(function(e){var n=e.className,t=e.children,s=(0,r._)(e,["className","children"]);(0,u.useEffect)(function(){_();},[]);var c="".concat(n,"__content"),l="".concat(n,"__overlay");return(0,a.jsx)(d(),(0,o._)((0,i._)({portalClassName:n,className:c,overlayClassName:l,closeTimeoutMS:500},s),{children:(0,a.jsx)(h,{children:t})}));}).withConfig({componentId:"sc-100f0608-1"})([""," &__content{position:fixed;bottom:","px;width:100%;z-index:11;outline:none;transition-duration:0.3s;transition-timing-function:cubic-bezier(0.215,0.61,0.355,1);transition-property:transform;transform:translateY(100%);&.ReactModal__Content--after-open{transform:translateY(0);}&.ReactModal__Content--before-close{transform:translateY(100%);}}"],function(e){return e.showOverlay?(0,f.iv)(["&__overlay{position:fixed;top:0;width:100vw;height:100vh;z-index:11;background-color:rgba(0,0,0,0.5);}"]):"";},function(e){return e.bottom?e.bottom:0;});},123120:function(e,n,t){t.d(n,{f:function(){return s;}});var i=t(627573),o=t(253514),r=t(836196);t(7653);var a=t(740032),s=function(e){var n=e.icon,t=e.size;return(0,i.jsx)(c,{$size:t,children:null!=n?n:(0,i.jsx)(c,{$size:t,children:(0,i.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",width:"300pt",height:"300pt",viewBox:"0 0 300 300",children:(0,i.jsx)("g",{transform:"translate(0,300) scale(0.05,-0.05)",fill:o.QY.icon.default,stroke:"none",children:(0,i.jsx)("path",{d:"M1820 4282 c0 -11 27 -24 60 -30 33 -7 86 -17 117 -23 193 -37 212 -168 196 -1359 -14 -1113 -17 -1123 -284 -1201 -201 -58 -124 -69 501 -69 612 0 723 13 479 54 -272 47 -274 52 -285 748 l-8 552 217 -9 c419 -16 564 -115 669 -453 86 -276 98 -218 98 458 0 508 -5 610 -28 610 -18 0 -35 -42 -50 -125 -52 -296 -230 -400 -719 -420 l-187 -8 9 582 c4 319 15 597 24 616 14 31 49 35 324 35 611 0 763 -62 1080 -440 183 -219 195 -184 52 153 -65 152 -124 293 -131 312 -14 40 -2134 56 -2134 17z"})})})})});},c=(0,a.ZP)(r.k).attrs({align:"center",justify:"center"}).withConfig({componentId:"sc-c0f281f1-0"})(["width:",";height:",";flex-shrink:0;filter:drop-shadow(0px 0px 10px rgba(0,0,0,0.1));background:",";"],function(e){var n=e.$size;return null!=n?n:"44px";},function(e){var n=e.$size;return null!=n?n:"44px";},o.QY.surface.inverse);}}]);