1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2226],{80551:function(e,n,r){r.d(n,{c:function(){return t},i:function(){return s}});var i=r(7258),t=i.object().shape({firstName:i.string().required("Le pr\xe9nom est requis"),lastName:i.string().required("Le nom est requis"),phone:i.string().matches(/^[1-9](\d{7}$)/,"Num\xe9ro de t\xe9l\xe9phone invalide").required("Le num\xe9ro de t\xe9l\xe9phone est requis"),product:i.string().required()}),s=i.object().shape({lastName:i.string().required("Le nom est requis"),firstName:i.string().required("Le pr\xe9nom est requis"),phone:i.string().matches(/^[1-9](\d{7}$)/,"Num\xe9ro de t\xe9l\xe9phone invalide").required("Le num\xe9ro de t\xe9l\xe9phone est requis")})},71022:function(e,n,r){var i=r(85893),t=r(45697),s=r.n(t),a=r(71911),c=r(72873);a.ZP.use([a.s5,a.W_,a.tl]);var l=function(e){var n=e.items,r=e.keyFn,t=e.renderItem,s=e.show2PerBullet,a=void 0!==s&&s,l=e.forWhichPage,o=e.spaceBetween,d=void 0===o?20:o;return(0,i.jsx)(c.t,{slidesPerView:a?1:"auto",centeredSlides:a,spaceBetween:d,watchOverflow:!0,breakpoints:a?{1024:{slidesPerView:"auto",centeredSlides:!1}}:void 0,pagination:{clickable:!0,dynamicMainBullets:!0},children:n.map((function(e){return(0,i.jsx)(c.o,{children:t(e,l)},r(e))}))})};l.propTypes={items:s().arrayOf(s().object).isRequired,keyFn:s().func.isRequired,show2PerBullet:s().bool,renderItem:s().func.isRequired,forWhichPage:s().string,spaceBetween:s().number},n.Z=l},84776:function(e,n,r){var i=r(47568),t=r(26042),s=r(99534),a=r(70655),c=r(85893),l=r(95496),o=r(9669),d=r.n(o),u=r(86010),p=r(25675),m=r.n(p),h=r(11163),f=r(45697),v=r.n(f),g=r(67294),x=r(87536),_=r(93776),N=r.n(_),b=r(50835),j=r(80551),y=r(81844).Z.endpoint.baseUrl,q=function(e){var n,r,o,p=e.id,f=e.productLabel,v=e.product,_=e.variant,q=e.image,w=(0,g.useState)(!1),R=w[0],Z=w[1],k=(0,b.Z)().setToast,P=((0,h.useRouter)(),(0,x.cI)({resolver:(0,l.X)(j.c),defaultValues:{product:v}})),C=P.register,S=P.handleSubmit,T=P.formState,O=T.errors,E=T.isSubmitting,L=function(){var e=(0,i.Z)((function(e){var n,r,i,c,l;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:n=e.product,r=(0,s.Z)(e,["product"]),a.label=1;case 1:return a.trys.push([1,3,,4]),i={},c={},[4,d().post("".concat(y,"/internet-simulator-prospects"),(0,t.Z)((i.product=n,i.customer=r,i),_&&(c.variant={label:"".concat(_.speedValue," ").concat(_.speedUnit),price:new(N())(_.price.toString().replace(",",".")).mul(1e3).toDecimalPlaces(0,N().ROUND_HALF_UP).toNumber()},c)))];case 2:return a.sent(),Z(!0),[3,4];case 3:return a.sent(),k(((l={}).message="Une erreur est survenue, veuillez r\xe9essayer.",l.variant="danger",l)),[3,4];case 4:return[2]}}
1))}));return function(n){return e.apply(this,arguments)}}();return(0,c.jsxs)("div",{id:p,className:"lead-capture-section d-flex align-items-center justify-content-center flex-wrap",children:[(0,c.jsxs)("div",{className:"lead-capture-section__panel",children:[!R&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{className:"lead-capture-section__title",children:"Finalisez votre demande"}),(0,c.jsxs)("p",{className:"lead-capture-section__intro",children:["Laissez vos coordonn\xe9es, un conseiller vous rappellera pour vous accompagner dans votre souscription \xe0"," ",(0,c.jsxs)("span",{className:"text-muted",children:[f,"."]})]})]}),(0,c.jsx)("div",{className:"lead-capture-section__card",children:R?(0,c.jsxs)("div",{className:"lead-capture-section__success text-center",children:[(0,c.jsx)("div",{className:"lead-capture-section__success-icon d-flex align-items-center justify-content-center rounded-circle",children:(0,c.jsx)("i",{className:"fas fa-check-circle"})}),(0,c.jsx)("h4",{className:"lead-capture-section__success-title",children:"Merci !"}),(0,c.jsx)("p",{className:"lead-capture-section__success-text",children:"Votre demande de rappel a bien \xe9t\xe9 enregistr\xe9e."}),(0,c.jsxs)("p",{className:"lead-capture-section__success-text text-wrap",children:["Un conseiller Orange vous contactera dans les meilleurs d\xe9lais afin de vous accompagner dans votre souscription \xe0"," ",(0,c.jsx)("strong",{className:"text-muted",children:f}),"."]}),(0,c.jsx)("button",{type:"button",className:"lead-capture-section__success-cta d-inline-block rounded-pill",onClick:function(){return window.close()},children:"Retour aux offres disponibles"})]}):(0,c.jsxs)("form",{onSubmit:S(L),children:[(0,c.jsx)("h3",{className:"lead-capture-section__card-title",children:"Demandez \xe0 \xeatre rappel\xe9"}),(0,c.jsx)("p",{className:"lead-capture-section__card-intro",children:"Remplissez le formulaire ci-dessous. Un conseiller Orange vous contactera dans les meilleurs d\xe9lais."}),(0,c.jsxs)("div",{className:"d-flex flex-wrap lead-capture-section__row",children:[(0,c.jsxs)("div",{className:"lead-capture-section__field",children:[(0,c.jsx)("input",(0,t.Z)({type:"text",className:(0,u.Z)("lead-capture-section__input",{"is-invalid":O.lastName}),placeholder:"Nom"},C("lastName"))),(0,c.jsx)("div",{className:"invalid-feedback",children:null===O||void 0===O||null===(n=O.lastName)||void 0===n?void 0:n.message})]}),(0,c.jsxs)("div",{className:"lead-capture-section__field",children:[(0,c.jsx)("input",(0,t.Z)({type:"text",className:(0,u.Z)("lead-capture-section__input",{"is-invalid":O.firstName}),placeholder:"Pr\xe9nom"},C("firstName"))),(0,c.jsx)("div",{className:"invalid-feedback",children:null===O||void 0===O||null===(r=O.firstName)||void 0===r?void 0:r.message})]})]}),(0,c.jsx)("input",(0,t.Z)({type:"tel",className:(0,u.Z)("lead-capture-section__input lead-capture-section__input--full",{"is-invalid":O.phone}),placeholder:"Num\xe9ro de contact"},C("phone"))),(0,c.jsx)("div",{className:"invalid-feedback mb-2",children:null===O||void 0===O||null===(o=O.phone)||void 0===o?void 0:o.message}),(0,c.jsxs)("p",{className:"lead-capture-section__disclaimer",children:[(0,c.jsx)("i",{className:"fa fa-check text-muted mx-1"}),"Votre demande est gratuite. Un conseiller Orange vous rappellera dans les meilleurs d\xe9lais."]}),(0,c.jsx)("button",{type:"submit",className:"lead-capture-section__submit rounded-pill",disabled:E,children:"\xcatre rappel\xe9 par un conseiller"})]})})]}),(0,c.jsx)("div",{className:"lead-capture-section__image d-flex align-items-center justify-content-center",children:(0,c.jsx)(m(),{src:q.src,alt:q.alt,width:q.width||500,height:q.height||457,objectFit:"contain"})})]})};q.propTypes={id:v().string.isRequired,productLabel:v().string.isRequired,product:v().string.isRequired,variant:v().shape({id:v().string,speedValue:v().oneOfType([v().string,v().number]),speedUnit:v().string,price:v().oneOfType([v().string,v().number])}),image:v().shape({src:v().string.isRequired,alt:v().string.isRequired,width:v().number,height:v().number}).isRequired},q.defaultProps={variant:void 0},n.Z=q},66969:function(e,n,r){r.d(n,{Z:function(){return m}});var i=r(26042),t=r(69396),s=r(85893),a=r(45697),c=r.n(a),l=r(67294),o=r(71022),d=function(e){var n=e.speedValue,r=e.speedUnit,i=e.commitmentLabel,t=e.price,a=e.tags,c=e.selected,l=e.forWhichPage,o=e.onChoose,d=e.isPromo;return(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:o,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o())},className:"pricing-tier-card h-100 d-flex flex-column".concat(c?" pricing-tier-card--selected":""),children:[d&&(0,s.jsx)("span",{className:"pricing-tier-card__promo",children:"Promo"}),(0,s.jsxs)("div",{className:"pricing-tier-card__speed",children:[(0,s.jsx)("span",{className:"pricing-tier-card__speed-value",children:n})," ",(0,s.jsx)("span",{className:"pricing-tier-card__speed-unit",children:r})]}),(0,s.jsx)("div",{className:"pricing-tier-card__commitment".concat("darkbox-plus"===l?" pricing-tier-card__commitment--darkbox-plus":""),children:i}),!!a.length&&(0,s.jsx)("div",{className:"pricing-tier-card__tags d-flex flex-wrap",children:a.map((function(e){return(0,s.jsx)("span",{className:"pricing-tier-card__tag",children:e},e)}))}),(0,s.jsxs)("div",{className:"pricing-tier-card__footer d-flex align-items-center justify-content-between mt-auto pt-4",children:[(0,s.jsxs)("div",{className:"pricing-tier-card__price",children:[(0,s.jsx)("strong",{children:t})," ",(0,s.jsx)("span",{children:"DT"})]}),(0,s.jsx)("button",{type:"button",className:"pricing-tier-card__cta rounded-pill",onClick:o,children:"Choisir"})]})]})};d.propTypes={speedValue:c().oneOfType([c().string,c().number]).isRequired,speedUnit:c().string.isRequired,commitmentLabel:c().string.isRequired,price:c().oneOfType([c().string,c().number]).isRequired,tags:c().arrayOf(c().string),selected:c().bool,forWhichPage:c().string,onChoose:c().func.isRequired,isPromo:c().bool},d.defaultProps={tags:[],selected:!1,forWhichPage:void 0};var u=d,p=function(e){var n=e.id,r=e.tiers,a=e.onSelect,c=(0,l.useState)(),d=c[0],p=c[1];return(0,s.jsx)("div",{className:"pricing-tier-grid",id:n,children:(0,s.jsx)(o.Z,{items:r,keyFn:function(e){return e.id},forWhichPage:"darkbox-plus",renderItem:function(e,n){return(0,s.jsx)(u,(0,t.Z)((0,i.Z)({},e),{selected:e.id===d,forWhichPage:n,onChoose:function(){p(e.id),null===a||void 0===a||a(e)}}))}})})};p.propTypes={id:c().string,tiers:c().arrayOf(c().shape({id:c().string.isRequired,speedValue:c().oneOfType([c().string,c().number]).isRequired,speedUnit:c().string.isRequired,commitmentLabel:c().string.isRequired,price:c().oneOfType([c().string,c().number]).isRequired})).isRequired,onSelect:c().func},p.defaultProps={onSelect:void 0};var m=p},1897:function(e,n,r){r.d(n,{Bu:function(){return a},Ds:function(){return i},X5:function(){return t},d1:function(){return s},g1:function(){return c}});var i=function(e,n){return function(r){return setTimeout(e.bind(null,r),n)}},t=function(e){var n=document.getElementById(e),r=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=r<1024||r>=1024&&r<1280?0:7,t=document.body.getBoundingClientRect().top,s=(null===n||void 0===n?void 0:n.getBoundingClientRect().top)-t-i;window.scrollTo({top:s,behavior:"smooth"})},s={professional:"/professionnels",enterprise:"/entreprises",gp:""},a=function(e,n){return String(e).padStart(n,"0")},c=function(e){var n;return null===(n=/Validit\xe9 (\d+) jours/i.exec(e||""))||void 0===n?void 0:n[1]}},65172:function(e,n,r){r.d(n,{Z:function(){return b}});var i=r(87462),t=r(63366),s=r(94184),a=r.n(s),c=r(67294),l=r(47150),o=r(76792),d=r(45017),u=c.
1createContext(null);u.displayName="AccordionContext";var p=u,m=["as","children","eventKey","onClick"];var h=c.forwardRef((function(e,n){var r=e.as,s=void 0===r?"button":r,a=e.children,l=e.eventKey,o=e.onClick,u=(0,t.Z)(e,m),h=function(e,n){var r=(0,c.useContext)(p),i=(0,c.useContext)(d.Z);return function(t){i&&i(e===r?null:e,t),n&&n(t)}}(l,o);return"button"===s&&(u.type="button"),c.createElement(s,(0,i.Z)({ref:n,onClick:h},u),a)})),f=r(9966),v=["children","eventKey"],g=c.forwardRef((function(e,n){var r=e.children,s=e.eventKey,a=(0,t.Z)(e,v),l=(0,c.useContext)(p);return c.createElement(d.Z.Provider,{value:null},c.createElement(f.Z,(0,i.Z)({ref:n,in:l===s},a),c.createElement("div",null,c.Children.only(r))))}));g.displayName="AccordionCollapse";var x=g,_=["as","activeKey","bsPrefix","children","className","onSelect"],N=c.forwardRef((function(e,n){var r=(0,l.Ch)(e,{activeKey:"onSelect"}),s=r.as,u=void 0===s?"div":s,m=r.activeKey,h=r.bsPrefix,f=r.children,v=r.className,g=r.onSelect,x=(0,t.Z)(r,_),N=a()(v,(0,o.vE)(h,"accordion"));return c.createElement(p.Provider,{value:m||null},c.createElement(d.Z.Provider,{value:g||null},c.createElement(u,(0,i.Z)({ref:n},x,{className:N}),f)))}));N.displayName="Accordion",N.Toggle=h,N.Collapse=x;var b=N}}]);
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.