1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4239],{2638:function(e,r,s){"use strict";s.d(r,{X:function(){return i}});var a=s(2482),t=s(87536),i=function(e,r,s){return void 0===r&&(r={}),void 0===s&&(s={}),function(i,l,n){try{return Promise.resolve(function(a,t){try{var n=(r.context,Promise.resolve(e["sync"===s.mode?"validateSync":"validate"](i,Object.assign({abortEarly:!1},r,{context:l}))).then((function(e){return{values:e,errors:{}}})))}catch(a){return t(a)}return n&&n.then?n.then(void 0,t):n}(0,(function(e){return{values:{},errors:(0,a.D)((r=e,s=!n.shouldUseNativeValidation&&"all"===n.criteriaMode,r.inner.reduce((function(e,r){if(e[r.path]||(e[r.path]={message:r.message,type:r.type}),s){var a=e[r.path].types,i=a&&a[r.type];e[r.path]=(0,t.KN)(r.path,s,e,r.type,i?[].concat(i,r.message):r.message)}return e}),{})),n)};var r,s})))}catch(o){return Promise.reject(o)}}}},43212:function(e,r,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/prices/registration/[[...subscriptionId]]",function(){return s(58579)}])},58579:function(e,r,s){"use strict";s.r(r),s.d(r,{PricesRegistration:function(){return g},__N_SSP:function(){return y}});var a=s(47568),t=s(26042),i=s(69396),l=s(34051),n=s.n(l),o=s(85893),c=s(9008),d=s.n(c),m=s(19236),f=s(37608),u=s(95070),x=s(67294),h=s(67742),p=s(87536),b=s(2638),j=s(7258),v=s(24940),N=s(62227),_=s(50259),y=!0,g=function(e){var r=e.offer,s=e.offers,l=(e.categories,(0,m.$G)(["registration","prices"]).t),c=(0,_.xX)().executeRecaptcha,y=(0,x.useState)(!1),g=(y[0],y[1]),w=s.findIndex((function(e){return e.id===r.id})),q=j.Ry().shape({civility:j.Z_().nullable().required(l("common:validators.required")),firstname:j.Z_().required(l("common:validators.required")),lastname:j.Z_().required(l("common:validators.required")),email:j.Z_().email(l("common:validators.email")).required(l("common:validators.required")),phone_number:j.Z_().matches(/^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/,l("common:validators.phone")).required(l("common:validators.required")),name:j.Z_().required(l("common:validators.required")),category:j.Z_().required(l("common:validators.required")),crt_number:j.Vo((function(e){return e?j.Z_().matches(/^[0-9]+$/,l("common:validators.number")).length(7,l("common:validators.lengthShouldBe")):j.Z_()})),address:j.Z_().required(l("common:validators.required")),city:j.Z_().required(l("common:validators.required")),zipcode:j.Rx().typeError(l("common:validators.number")).required(l("common:validators.required")),tos:j.Xg().oneOf([!0],l("common:validators.required")).required(l("common:validators.required"))}),k=(0,p.cI)({resolver:(0,b.X)(q),mode:"onBlur"}),C=(k.handleSubmit,k.setError,k.setValue,(0,x.useCallback)((0,a.Z)(n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=3;break}return console.log("Execute recaptcha not yet available"),e.abrupt("return");case 3:return e.next=5,c("lh_front_merchant_registration");case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e)}))),[c]));!function(){var e=(0,a.Z)(n().mark((function e(s){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g(!0),e.t0=N.Z,e.t1=i.Z,e.t2=(0,t.Z)({},s),e.next=6,C();case 6:e.t3=e.sent,e.t4=r.id,e.t5={captcha_token:e.t3,product:e.t4},e.t6=(0,e.t1)(e.t2,e.t5),e.t0.post.call(e.t0,"/next-api/contact/merchant/subscription",e.t6).then((function(e){(0,h.LhNotify)(h.NotificationTypeEnum.success,l("notification.success.title"),l("notification.success.desc")),g(!1)})).catch((function(e){g(!1)}));case 11:case"end":return e.stop()}}),e)})))}();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d(),{children:(0,o.jsx)("title",{children:l("metaTitle")})}),(0,o.jsxs)(f.Z,{children:[(0,o.jsxs)("div",{className:"content",children:[(0,o.jsx)("div",{className:"flex bg-primaryLightPlus",children:(0,o.jsx)("div",{className:"container mx-auto flex flex-wrap",children:(0,o.jsxs)("div",{className:"xl:-mx-default px-default md:mt-large mt-medium w-full flex md:space-x-large md:flex-nowrap flex-wrap",children:[(0,o.jsxs)("div",{className:"md:w-1/3 w-full relative md:order-1 order-2",children:[(0,o.jsx)(v.T,{href:"/prices",children:(0,o.jsxs)("a",{className:"text-primary font-medium hidden md:flex items-center",children:[(0,o.jsx)(h.LhIcon,{className:"lh-Arrow-Left mr-micro",size:24}),l("back")]})}),(0,o.jsxs)("div",{className:"bg-white border border-border border-solid p-default rounded-15 flex flex-col mt-default md:absolute mb-default md:mb-0",children:[(0,o.jsxs)("div",{className:"flex justify-between mb-default",children:[(0,o.jsx)("span",{className:"text-text text-big font-medium",children:l("offers.".concat(w))}),(0,o.jsxs)("div",{className:"flex flex-col justify-center items-center",children:[(0,o.jsx)("span",{className:"text-text text-h2 font-medium",children:(0,h.formatPrice)(r.amount,!0)}),(0,o.jsx)("span",{className:"text-text text-small font-medium",children:l("prices:offers.perMonth")})]})]}),w>0&&(0,o.jsx)("span",{className:"mb-small",children:l("offers.advantages",{offer:l("offers.".concat(w))})}),(0,o.jsxs)("div",{className:"mt-small",children:[0===w&&(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("span",{children:l("prices:offers.features.prepayment")}),(0,o.jsx)("span",{children:l("prices:offers.features.offers")})]}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]}),1===w&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("div",{className:"flex flex-col",children:(0,o.jsx)("span",{children:l("prices:offers.features.import")})}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("span",{children:l("prices:offers.features.communication")}),(0,o.jsx)("span",{children:l("prices:offers.features.news")})]}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]})]}),2===w&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("div",{className:"flex flex-col",children:(0,o.jsx)("span",{children:l("prices:offers.features.management")})}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("div",{className:"flex flex-col",children:(0,o.jsx)("span",{children:l("prices:offers.features.facebook")})}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]})]}),3===w&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsx)("span",{children:l("prices:offers.features.acquisition")}),(0,o.jsx)("span",{children:l("prices:offers.features.ephemeral")})]}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("div",{className:"flex flex-col",children:(0,o.jsx)("span",{children:l("prices:offers.features.messaging")})}),(0,o.jsx)(h.LhIcon,{className:"lh-Check-Circle text-primary ml-small",size:24})]})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("span",{className:"font-medium",children:l("prices:offers.conditions.prepayment")}),(0,o.jsx)("span",{className:"text-textLight",children:null===r.
1json_data.floor_max_prepayment_amount?l("prices:offers.unlimited"):r.json_data.floor_min_prepayment_amount>0?l("prices:offers.range",{from:r.json_data.floor_min_prepayment_amount,to:r.json_data.floor_max_prepayment_amount}):l("prices:offers.before",{amount:r.json_data.floor_max_prepayment_amount})})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("span",{className:"font-medium",children:l("prices:offers.conditions.shop")}),(0,o.jsx)("span",{className:"text-textLight",children:r.json_data.shop_commission_percentage>0?"".concat((0,h.formatNumber)(r.json_data.shop_commission_percentage)," %"):l("prices:offers.none")})]}),(0,o.jsxs)("div",{className:"flex justify-between py-small border-b border-border border-solid",children:[(0,o.jsx)("span",{className:"font-medium",children:l("prices:offers.conditions.online")}),(0,o.jsx)("span",{className:"text-textLight",children:r.json_data.online_commission_percentage>0?"".concat((0,h.formatNumber)(r.json_data.online_commission_percentage)," %"):l("prices:offers.none")})]})]})]})]}),(0,o.jsxs)("div",{className:"md:w-2/3 w-full md:order-2 order-1",children:[(0,o.jsx)("h1",{className:"text-h1 text-text font-medium mb-medium",children:l("title")}),(0,o.jsxs)("p",{className:"text-text md:mb-medium",children:[l("text")," ",(0,o.jsx)(v.T,{href:"/pro",children:(0,o.jsx)("a",{className:"font-medium",children:l("textClick")})})]})]})]})})}),(0,o.jsx)("div",{className:"flex bg-white",children:(0,o.jsx)("div",{className:"container mx-auto flex flex-wrap",children:(0,o.jsxs)("div",{className:"xl:-mx-default px-default mt-medium w-full flex md:space-x-xl md:flex-nowrap flex-wrap",children:[(0,o.jsx)("div",{className:"md:w-1/3 w-full relative"}),(0,o.jsx)("div",{className:"md:w-2/3 w-full relative",children:(0,o.jsx)("div",{className:"flex flex-1 mt-default",children:(0,o.jsx)("a",{href:"https://dashboard.leshabitues.fr/onboarding/get-started",className:"py-small px-small w-full bg-primaryLightPlus rounded-full text-default text-primary font-medium text-center",children:l("submit")})})})]})})})]}),(0,o.jsx)(u.Z,{topMargin:!0})]})]})};r.default=g}},function(e){e.O(0,[5065,9774,2888,179],(function(){return r=43212,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
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.