PageSourceSearch

https://www.indigoneo.lu/_next/static/chunks/8969-1c9d4bb033a5e723.js

js indigoneo.lu collected 2026-10-09 04:09:24 UTC 49,803 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8969],{116:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var i=r(38023),s=r(18297);class o{constructor(e,t){this.title=e,this.items=t}}o.build=(e,t,r,a)=>{let n=a.translateFn;return new o(n("electric-vehicle:payment.order.title"),{productItem:e?{label:n("electric-vehicle:payment.order.onDemand"),price:s.E.zero().toLabel()}:{label:n("electric-vehicle:payment.order.subscription",{size:t.productProps.maxKwh,date:i.p.format(t.startDate,{dateRepository:r,translationRepository:a},i.p.DATE_ONLY_PATTERN)}),price:t.productPriceUI.toLabel()},badgeItem:{label:n("electric-vehicle:payment.order.badge"),price:t.productProps.badgePriceUI.hasRegularPrice()||0!==t.productProps.badgePriceUI.getPrice().amount?t.productProps.badgePriceUI:n("electric-vehicle:payment.order.badge.price")},totalItem:{label:n("electric-vehicle:payment.order.total"),price:t.totalPriceUI.toLabel()}})}},12405:(e,t,r)=>{"use strict";r.d(t,{K:()=>s});var i=r(25554);class s{constructor(e){var t=this;this.readonlyProps=e,this.displayables=()=>({indigoPro:this.translate("neo-pro:indigoPro"),title:this.translate("electric-vehicle:success.info.title"),description:this.translate("electric-vehicle:success.info.description",{productName:this.readonlyProps.productName}),welcomeToIndigoPro:this.translate("electric-vehicle:success.welcomeToIndigoPro"),goToIndigoPro:this.translate("electric-vehicle:success.goToIndigoPro")}),this.getStepName=()=>"success",this.sendPageTrack=()=>this.readonlyProps.evPurchaseTrackerRepository.pageEVPurchaseSuccess(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.hasBillingManagedByNeoPro=()=>null!==this.readonlyProps.managedBy,this.getRequiredNeoProConfiguration=()=>(0,i.Gp)(()=>this.readonlyProps.managedBy,"neoProConfigurationUI is null"),this.goToNeoProConfig=()=>{this.readonlyProps.navigationUI.redirectToNeoPro(this.getRequiredNeoProConfiguration().neoProIdentifier)},this.translate=function(){for(var e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.readonlyProps.translationRepository.translateFn(...r)}}}s.load=e=>(e.evOrderPaymentUI.getProps().isLoadingPurchase&&e.evOrderPaymentUI.terminatePurchase(),new s(e))},16244:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var i=r(15454);class s extends i.r{constructor(e,t){let r={...t,flowGoTo:s.buildFlowGoTo(t.flowParams,t.flowGoTo)};super(e,r),this.props=t,this.AUTHENTICATED_STEP=["address","payment","success"],this.getPurchaseIntentId=()=>this.props.flowParams.purchaseIntentId,this.goToStep=async e=>this.props.flowGoTo("/ev/purchase/".concat(e)),this.redirectToHomePage=()=>{this.props.flowGoTo(this.props.homePath)}
1,this.getStepperVisibleSteps=()=>this.stepperUI.getVisibleSteps(),this.getScreenTranslations=()=>({buttons:{back:this.props.translationRepository.translateFn("common:previous"),validate:this.props.translationRepository.translateFn("common:confirm")}}),this.requiredAuthenticateActiveSteps=()=>!!this.AUTHENTICATED_STEP.find(e=>this.props.activePath.endsWith(e)),this.redirectToSubscription=e=>{this.props.flowGoTo(this.props.subscriptionDetailsPath.replace("{subscriptionId}",e))},this.redirectToNeoPro=e=>{this.props.flowGoTo(this.props.neoProPath.replace("{configId}",e))},this.props=r}}s.buildFlowGoTo=(e,t)=>(r,i)=>t((t=>{let r=e.purchaseIntentId?new URLSearchParams({purchaseIntentId:e.purchaseIntentId}):void 0;return r?"".concat(t,"?").concat(r):t})(r),i)},17763:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var i=r(74277),s=r(48449),o=r(91469);class a extends i.R{constructor(...e){super(...e),this.reload=(e,t)=>(this.readonlyProps.subscriptions=e.subscriptionsProps.map(e=>o.W.load(e,this.readonlyProps.repositoryFactory.translationRepository().translateFn)),this.readonlyProps.subscriptionDates=e.subscriptionDates.map(e=>s.G.load(e,this.readonlyProps.repositoryFactory.dateRepository(),this.readonlyProps.repositoryFactory.translationRepository())),this.readonlyProps.onDemandSubscription=o.W.load(e.onDemandProps,this.readonlyProps.repositoryFactory.translationRepository().translateFn),this.readonlyProps.onDemandSubscriptionDates=s.G.load(e.onDemandDate,this.readonlyProps.repositoryFactory.dateRepository(),this.readonlyProps.repositoryFactory.translationRepository()),this.readonlyProps.extraPriceUI=t,null===this.findSelectedSubscription()&&this.updatePartial({selectedSubscription:null,selectedSubscriptionDate:null}),this),this.getAllSubscriptions=()=>[...this.readonlyProps.subscriptions,this.readonlyProps.onDemandSubscription],this.getAllSubscriptionDates=()=>[...this.readonlyProps.subscriptionDates,this.readonlyProps.onDemandSubscriptionDates],this.findSelectedSubscription=()=>{var e;return this.props.selectedSubscription&&null!=(e=this.getAllSubscriptions().find(e=>{var t;return e.props.productId===(null==(t=this.props.selectedSubscription)?void 0:t.productId)}))?e:null},this.selectSubscription=e=>{this.updatePartial({selectedSubscription:e.props})},this.hasSelectedSubscription=()=>!!this.props.selectedSubscription,this.getRequiredSelectedSubscriptionPropsUI=()=>(0,i.G)(()=>this.props.selectedSubscription,"no selected subscription"),this.findSelectedSubscriptionDate=()=>{var e;let t=this.props.selectedSubscriptionDate;return t&&null!=(e=this.getAllSubscriptionDates().find(e=>e.id===t.id))?e:null},this.selectSubscriptionDate=e=>{this.updatePartial({selectedSubscriptionDate:e})},this.hasSelectedSubscriptionDate=()=>!!this.props.selectedSubscriptionDate,this.getStepName=()=>"subscription",this.sendPageTrack=()=>this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().pageEVPurchaseRate(this.readonlyProps.navigation.props.flowParams.purchaseIntentId),this.isDisableValidate=()=>!this.hasSelectedSubscription()||!this.hasSelectedSubscriptionDate(),this.isSelectedDateProrata=()=>{var e;let t=null==(e=this.findSelectedSubscriptionDate())?void 0:e.date;return!!t&&a.isProrataDate(t)},this.resetSelection=()=>{this.updatePartial({selectedSubscription:null,selectedSubscriptionDate:null})},this.displayables=()=>{var e;let t=this.readonlyProps.repositoryFactory.translationRepository().translateFn,{daysCount:r,unit:i}=this.labelDaysCount();return{title:t("electric-vehicle:purchase.subscription.title"),description:t("electric-vehicle:purchase.subscription.description"),date:{title:t("electric-vehicle:purchase.subscription.date.title"),description:t("electric-vehicle:purchase.subscription.date.description")},warning:{title:t("electric-vehicle:purchase.subscription.date.warning.title"),description:t("electric-vehicle:purchase.subscription.date.warning.description",{size:null==(e=this.props.selectedSubscription)?void 0:e.size,daysCount:r,unit:i})}}},this.shouldDisplayInfoModal=()=>this.props.isInfoModalOpen,this.openInfoModal=()=>this.updatePartial({isInfoModalOpen:!0}),this.closeInfoModal=()=>this.updatePartial({isInfoModalOpen:!1}),this.labelDaysCount=()=>{let e=new Date,t=this.readonlyProps.repositoryFactory.dateRepository().lastDayOfMonth(e).getDate()-e.getDate(),r=this.readonlyProps.repositoryFactory.translationRepository().pluralized(t,"technical:time.unit.days","technical:time.unit.day");return{daysCount:t,unit:r}},this.validate=()=>{this.isDisableValidate()||(this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().eventEVPurchaseSubmitRate(this.readonlyProps.navigation.props.flowParams.purchaseIntentId,this.findSelectedSubscriptionRate(),this.findSelectedSubscriptionDateOption(),this.getRequiredSelectedSubscriptionPropsUI().countryCode),this.readonlyProps.navigation.goToStep("summary"))},this.selectSubscriptionAndDate=(e,t,r)=>{let a=(0,i.G)(()=>{let t=r.subscriptionsProps.find(t=>t.productId===e);
1return t||(r.onDemandProps.productId===e?r.onDemandProps:null)},"No subscription could be found with the productId ".concat(e)),n=this.readonlyProps.repositoryFactory.translationRepository(),l=o.W.load(a,n.translateFn),c=(0,i.G)(()=>{let e=r.subscriptionDates.find(e=>e.getTime()===t.getTime());return e||(r.onDemandDate.getTime()===t.getTime()?r.onDemandDate:null)},"No dates for this subscription");this.selectSubscription(l),this.selectSubscriptionDate(s.G.load(c,this.readonlyProps.repositoryFactory.dateRepository(),n)),this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().eventEVPurchaseSubmitRate(this.readonlyProps.navigation.props.flowParams.purchaseIntentId,this.findSelectedSubscriptionRate(),this.findSelectedSubscriptionDateOption(),this.getRequiredSelectedSubscriptionPropsUI().countryCode)},this.findSelectedSubscriptionRate=()=>this.getRequiredSelectedSubscriptionPropsUI().size,this.findSelectedSubscriptionDateOption=()=>{let e=this.findSelectedSubscriptionDate();if(null===e)throw Error("No selected subscription, impossible to find its index.");return this.getAllSubscriptionDates().findIndex(t=>t.id===e.id)+1}}}a.load=(e,t,r,i,n)=>{let l={subscriptions:e.subscriptionsProps.map(e=>o.W.load(e,n.translationRepository().translateFn)),subscriptionDates:e.subscriptionDates.map(e=>s.G.load(e,n.dateRepository(),n.translationRepository())),onDemandSubscription:o.W.load(e.onDemandProps,n.translationRepository().translateFn),onDemandSubscriptionDates:s.G.load(e.onDemandDate,n.dateRepository(),n.translationRepository()),extraPriceUI:r,navigation:t,repositoryFactory:n,evPurchaseSubscriptionStepInfoCardUI:i};return new a({loading:!1,showError:!1,selectedSubscription:null,selectedSubscriptionDate:null,isInfoModalOpen:!1},l)},a.isProrataDate=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return t.getMonth()===e.getMonth()&&1!==t.getDate()}},18415:(e,t,r)=>{"use strict";r.d(t,{Gp:()=>o.Gp,Nb:()=>i.N,lL:()=>s.l});var i=r(48667),s=r(20589),o=r(25554)},19013:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var i=r(44729),s=r(45210);class o extends s.NK{constructor(...e){super(...e),this.sendOpenModalTracker=()=>this.readonlyProps.evPurchaseTrackerRepository.eventInfoCard(i.vS.PackedgedSelectionHelp),this.displayable=()=>({title:this.translate("electric-vehicle:purchase.subscription.infoModal.title"),description:this.translate("electric-vehicle:purchase.subscription.infoModal.content.description"),detailsModal:{title:this.translate("electric-vehicle:purchase.subscription.infoModal.title"),closeCrossLabel:this.translate("common:close"),content:{subTitle:this.translate("electric-vehicle:purchase.subscription.infoModal.content.subTitle"),list:[{title:this.translate("electric-vehicle:purchase.subscription.infoModal.content.list1.title"),items:[this.translate("electric-vehicle:purchase.subscription.infoModal.content.list1.item1"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list1.item2"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list1.item3")]},{title:this.translate("electric-vehicle:purchase.subscription.infoModal.content.list2.title"),items:[this.translate("electric-vehicle:purchase.subscription.infoModal.content.list2.item1"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list2.item2"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list2.item3")]},{title:this.translate("electric-vehicle:purchase.subscription.infoModal.content.list3.title"),items:[this.translate("electric-vehicle:purchase.subscription.infoModal.content.list3.item1"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list3.item2"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.list3.item3")]}]},notes:{title:this.translate("electric-vehicle:purchase.subscription.infoModal.content.note.title"),items:[this.translate("electric-vehicle:purchase.subscription.infoModal.content.note.item1"),this.translate("electric-vehicle:purchase.subscription.infoModal.content.note.item2").replace("{price}",this.readonlyProps.publicPrice.toLabel())]},closeButtonLabel:this.translate("common:iUnderstand")}})}}o.load=(e,t,r)=>new o({isModalOpened:!1},{publicPrice:e,translationRepository:t,evPurchaseTrackerRepository:r})},23524:(e,t,r)=>{"use strict";r.d(t,{G:()=>s});var i=r(59594);class s{constructor(e,t){this.type=e,this.labels=t}}s.load=(e,t)=>new s(e.type,s.buildLabels(e,t)),s.buildLabelFeatureOverstay=(e,t,r)=>{var s;return t.isZero(e.overstay.after)?r.translateFn("electric-vehicle:purchase.configuration.feature.overstay",{price:e.overstay.pricePerMinute.toLabel(e.overstay.pricePerMinute.isZero()?2:null)}):r.translateFn("electric-vehicle:purchase.configuration.feature.overstay.withAfter",{price:e.overstay.pricePerMinute.toLabel(e.overstay.pricePerMinute.isZero()?2:null),duration:null!=(s=i.l.build(e.overstay.after,t,r).format())?s:""})},s.buildLabels=(e,t)=>{let r=t.translationRepository().translateFn;return{name:e.productName,monthlyPrice:"on-demand"===e.type?r("electric-vehicle:purchase.configuration.onDemand.title"):r("electric-vehicle:purchase.configuration.subscription.monthlyPrice",{size:e.maxKwh}),description:"on-demand"===e.type?r("electric-vehicle:purchase.configuration.onDemand.description"):r("electric-vehicle:purchase.configuration.subscription.description",{price:e.monthlyPrice.toLabel()}),perKwhPrice:r("on-demand"===e.type?"electric-vehicle:purchase.configuration.perKwhPrice.onDemand":"electric-vehicle:purchase.configuration.perKwhPrice.subscription").replace("{price}",e.perKwhPrice.toLabel()),fees:r("electric-vehicle:purchase.configuration.feature.fees",{price:e.extraPrice.connection.toLabel(2)}),overstay:s.buildLabelFeatureOverstay(e.extraPrice,t.periodAndDurationRepository(),t.translationRepository())}}},23561:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var i=r(15040);class s extends i.R0{constructor(...e){super(...e),this.reload=e=>((this.readonlyProps.productId!==e.productId||this.readonlyProps.productStartDate!==e.productStartDate)&&(this.updatePartial({isLoading:!0}),this.readonlyProps.productId=e.productId,this.readonlyProps.productStartDate=e.productStartDate,this.requestQuote()),this),this.reloadQuote=()=>{this.updatePartial({isLoading:!0}),this.requestQuote()},this.getRequiredEVSubscriptionQuoteDetails=()=>(0,i.Gp)(()=>this.getProps().quoteDetails,"EVSubscriptionQuoteDetails cannot be null."),this.displayable=()=>({retry:this.readonlyProps.translationRepository.translateFn("common:retry"),genericError:this.readonlyProps.translationRepository.translateFn("common:error.500")}),this.requestQuote=()=>this.readonlyProps.quoteRepository.findEVSubscriptionQuoteDetailsUI(this.readonlyProps.productId,this.readonlyProps.productStartDate).then(e=>this.updatePartial({hasError:(0,i.kT)(e),quoteDetails:(0,i.kT)(e)?null:e})).catch(()=>this.updatePartial({hasError:!0,quoteDetails:null})).finally(()=>this.updatePartial({isLoading:!1}))}}s.load=e=>{let t=new s({isLoading:!0,hasError:!1,quoteDetails:null},e);return t.requestQuote(),t},s.asyncLoad=async e=>{let t=new s({isLoading:!0,hasError:!1,quoteDetails:null},e);return await t.requestQuote(),t}},26857:(e,t,r)=>{"use strict";r.d(t,{r:()=>c});var i=r(89961),s=r(71814),o=r(18249);class a{get raw(){return this.uuid}constructor(e){this.uuid=e}}a.random=()=>new a((0,o.A)());var n=r(116),l=r(61350);class c extends s.R{constructor(e,t){super(e,t),this.reload=e=>(this.readonlyProps.evPurchaseSelection=e.evPurchaseSelection,this.readonlyProps.legalTogglesUI=e.legalTogglesUI,this.readonlyProps.paymentMethodSelectorUI=e.paymentMethodSelectorUI,this),this.displayables=()=>({back:this.translateFn("common:back"),orderAndPay:this.translateFn("electric-vehicle:payment.order.and.pay"),titleBillingAddress:this.translateFn("electric-vehicle:payment.resume.titleBillingAddress"),indigoProDescription:this.translateFn("electric-vehicle:payment.resume.indigoProDescription"),indigoPro:this.translateFn("neo-pro:indigoPro"),billingMethod:this.translateFn("electric-vehicle:payment.billingMethod"),indigoProValue:this.translateFn("electric-vehicle:payment.indigoProValue")}
1),this.getStepName=()=>"payment",this.sendPageTrack=()=>this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().pageEVPurchasePayment(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.getPaymentFormCallbacks=()=>({onSuccess:()=>this.readonlyProps.evOrderPaymentUI.onCompletionSuccess().then(this.handlePurchaseResult),onCancel:()=>this.readonlyProps.evOrderPaymentUI.onCompletionCancel(),onError:()=>this.readonlyProps.evOrderPaymentUI.onCompletionError()}),this.confirmPurchase=async()=>{if(this.isValid()){let e=this.shouldPurchaseNeoPro();return this.readonlyProps.repositoryFactory.quoteTrackerRepository().eventEVCTAQuotePurchase({shouldPurchaseNeoPro:e,productCountry:this.readonlyProps.evPurchaseSelection.subscriptionPropsUI.countryCode,purchaseIntentId:this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId,hasProfessionalAddress:this.getPurchaseAddressContentUI().getPaymentUIBillingAddress().isProfessional(),productType:this.readonlyProps.evPurchaseSelection.productPropsUI.type,hasBillingManagedByNeoPro:this.hasBillingManagedByNeoPro(),paymentMethod:this.getPaymentMethodType(),rate:this.readonlyProps.evPurchaseSelection.subscriptionPropsUI.size}),this.purchase()}this.readonlyProps.paymentMethodSelectorUI.computeValidationErrors(),this.readonlyProps.legalTogglesUI.computeValidationErrors()},this.toOrderItems=()=>n.F.build("on-demand"===this.readonlyProps.evPurchaseSelection.productPropsUI.type,this.readonlyProps.evSubscriptionQuoteUI.getRequiredEVSubscriptionQuoteDetails(),this.readonlyProps.repositoryFactory.dateRepository(),this.readonlyProps.repositoryFactory.translationRepository()),this.toOrderResumeUI=()=>l.C.build(this.readonlyProps.evPurchaseSelection.productPropsUI,this.getPurchaseAddressContentUI().getPaymentUIDeliveryAddress(),this.toEVPurchaseSubscriptionPropsUI(),this.readonlyProps.evSubscriptionQuoteUI.getRequiredEVSubscriptionQuoteDetails().startDate,this.readonlyProps.repositoryFactory),this.hasProfessionalBillingAddressAndIndigoProIsEligible=()=>{let e=this.getPurchaseAddressContentUI();return e.readonlyProps.isNeoProEligible&&e.getPaymentUIBillingAddress().isProfessional()},this.getPurchaseAddressContentUI=()=>this.readonlyProps.evPurchaseSelection.address,this.getNeoProConfigurationUI=()=>this.getPurchaseAddressContentUI().getRequiredNeoProConfigurationUI(),this.hasBillingManagedByNeoPro=()=>this.hasProfessionalBillingAddressAndIndigoProIsEligible()&&this.hasAlreadyPurchasedIndigoPro(),this.getRequiredSubscriptionOrder=()=>this.readonlyProps.evOrderPaymentUI.getRequiredOrder(),this.purchase=async()=>{let e=this.readonlyProps.evSubscriptionQuoteUI.getRequiredEVSubscriptionQuoteDetails(),t=a.random(),r={quoteId:e.quoteId,isNeoProEligible:e.isNeoProEligible,quoteStartDate:e.startDate,paymentMode:this.getPaymentType(),paymentMethodType:this.getPaymentMethodType(),billingAddressUI:this.getPurchaseAddressContentUI().getPaymentUIBillingAddress(),deliveryAddressUI:this.getPurchaseAddressContentUI().getPaymentUIDeliveryAddress(),neoProId:this.hasBillingManagedByNeoPro()?this.getNeoProConfigurationUI().getRequiredNeoProConfiguration().id:null,countryCode:this.readonlyProps.evPurchaseSelection.subscriptionPropsUI.countryCode,idempotencyKey:t,productName:e.productProps.productName};return this.readonlyProps.evOrderPaymentUI.purchase(r).then(this.handlePurchaseResult)},this.handlePurchaseResult=()=>{this.readonlyProps.evOrderPaymentUI.isSuccess()&&this.success()},this.isValid=()=>this.hasBillingManagedByNeoPro()?this.readonlyProps.legalTogglesUI.isValid():this.readonlyProps.legalTogglesUI.isValid()&&this.readonlyProps.paymentMethodSelectorUI.isValid(),this.hasAlreadyPurchasedIndigoPro=()=>!this.getNeoProConfigurationUI().isEmpty(),this.shouldPurchaseNeoPro=()=>{let e=this.getPurchaseAddressContentUI();return e.readonlyProps.isNeoProEligible&&!this.hasAlreadyPurchasedIndigoPro()&&e.getPaymentUIBillingAddress().isProfessional()},this.getPaymentMethodType=()=>{var e,t;return null!=(t=null==(e=this.readonlyProps.paymentMethodSelectorUI.getSelectedPaymentMethodTypeUI())?void 0:e.getManualPaymentMethodType())?t:null},this.getPaymentType=()=>this.hasProfessionalBillingAddressAndIndigoProIsEligible()?i.dm.NEO_PRO:i.dm.MANUAL_METHOD,this.success=()=>this.updatePartial({isSuccess:!0}),this.toEVPurchaseSubscriptionPropsUI=()=>{let e=this.readonlyProps.evSubscriptionQuoteUI.getRequiredEVSubscriptionQuoteDetails();return{productId:e.refProductId,countryCode:this.readonlyProps.evPurchaseSelection.subscriptionPropsUI.countryCode,size:this.readonlyProps.evPurchaseSelection.subscriptionPropsUI.size,productPrice:e.productPriceUI,productRegularPrice:e.productPriceUI,hasDiscount:e.hasDiscount,totalPrice:e.totalPriceUI}},this.translateFn=t.repositoryFactory.translationRepository().translateFn}}c.load=e=>
1new c({isSuccess:!1},e)},30214:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});class i{constructor(e,t){this.labels=e,this.orderResumePropsUI=t}}i.build=(e,t)=>new i({orderResume:{title:t.translateFn("electric-vehicle:success.order.resume.title")}},e)},35559:(e,t,r)=>{"use strict";r.d(t,{l:()=>o});var i=r(44729),s=r(45210);class o extends s.NK{constructor(...e){super(...e),this.sendOpenModalTracker=()=>this.readonlyProps.evPurchaseTrackerRepository.eventInfoCard(i.vS.ProductDetails),this.displayable=()=>({title:this.translate("electric-vehicle:purchase.configuration.infoCard.title"),description:this.translate("electric-vehicle:purchase.configuration.infoCard.description"),detailsModal:{title:this.translate("electric-vehicle:purchase.configuration.infoCard.title"),closeCrossLabel:this.translate("common:close"),content:{description:this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content"),list:[this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content.list.0"),this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content.list.1"),this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content.list.2"),this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content.list.3")],note:this.translate("electric-vehicle:purchase.configuration.infoCard.modal.content.note")},closeButtonLabel:this.translate("common:close")}})}}o.load=(e,t)=>new o({isModalOpened:!1},{translationRepository:e,evPurchaseTrackerRepository:t})},37409:(e,t,r)=>{"use strict";r.d(t,{P:()=>s});var i=r(1756);class s extends i.R{constructor(...e){super(...e),this.startLearningMore=()=>this.updatePartial({learnMore:!0}),this.dismissLearnMore=()=>this.updatePartial({learnMore:!1}),this.isLearningMore=()=>this.props.learnMore,this.displayables=()=>({title:this.translate("electric-vehicle:payment.learnMore.indigo.pro.title"),description:this.translate("electric-vehicle:payment.learnMore.indigo.pro.description"),services:{title:this.translate("electric-vehicle:payment.learnMore.indigo.pro.services.title")},billing:{description:this.translate("electric-vehicle:payment.learnMore.indigo.pro.billing.description"),total:{title:this.translate("electric-vehicle:payment.learnMore.indigo.pro.billing.total.title"),items:[this.translate("electric-vehicle:payment.learnMore.indigo.pro.billing.total.item1"),this.translate("electric-vehicle:payment.learnMore.indigo.pro.billing.total.item2")]}},close:this.translate("common:close")}),this.translate=e=>this.readonlyProps.translationRepository.translateFn(e)}}s.load=e=>new s({learnMore:!1},e)},39218:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var i=r(78854),s=r(35358),o=r(55277),a=r.n(o);function n(e){let{text:t}=e;return(0,i.FD)("div",{className:a().loadingState,children:[(0,i.Y)(s.Cd,{className:a().icon}),t&&(0,i.Y)("div",{className:a().text,children:t})]})}},41110:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var i=r(4634);class s extends i.G{constructor(e,t){super(e),this.navigationUI=t,this.shouldDisplayStepContent=()=>!this.isLoading()&&!this.shouldDisplayAuthentication(),this.shouldDisplayAuthentication=()=>this.navigationUI.requiredAuthenticateActiveSteps()&&this.canDisplayAuthentication(),this.shouldDisplayIsLoading=()=>this.isLoading()}}s.load=e=>new s({isAuthenticated:e.isAuthenticated,isLoadingAuthentication:e.isLoadingAuthentication},e.navigationUI)},42257:(e,t,r)=>{"use strict";r.d(t,{f:()=>o});var i=r(80672),s=function(e){return e.Generic="electric-vehicle:error.generic",e}({});class o extends i.R0{constructor(e,t){super(e,t),this.reload=e=>(this.readonlyProps.selectedCountryCode===e||this.getProps().loading||(this.readonlyProps.selectedCountryCode=e,o.loadEVPurchaseProducts(this,this.readonlyProps)),this),this.getRequiredSelectedProductPropsUI=()=>(0,i.Gp)(()=>this.props.selectedProductProps,"product type should be already selected"),this.displayables=()=>({title:this.translateFn("electric-vehicle:purchase.configuration.title"),description:this.translateFn("electric-vehicle:purchase.configuration.description").replace("{country}",this.getTranslatedCountryName())}),this.selectProduct=e=>{this.updatePartial({selectedProductProps:e})},this.findSelectedProduct=()=>{var e,t;return null!=(t=null==(e=this.props.purchaseProductProps)?void 0:e.products.find(e=>{var t;return e.type===(null==(t=this.props.selectedProductProps)?void 0:t.type)}))?t:null},this.validate=()=>{this.isDisableValidate()||(this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().eventEVPurchaseSubmitProduct(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId,this.getRequiredSelectedProductPropsUI().type,this.getRequiredSelectedProductPropsUI().countryCode),this.isSelectionOnDemand()?this.readonlyProps.navigationUI.goToStep("summary"):this.readonlyProps.navigationUI.goToStep("subscription"))},this.isSelectionOnDemand=()=>{var e;return(null==(e=this.props.selectedProductProps)?void 0:e.type)==="on-demand"},this.isDisableValidate=()=>!this.props.selectedProductProps,this.getRequiredPurchaseProductProps=()=>(0,i.Gp)(()=>this.props.purchaseProductProps,"purchaseProductProps should be available"),this.get
1StepName=()=>"configuration",this.sendPageTrack=()=>this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().pageEVPurchaseProduct(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.getTranslatedCountryName=()=>i.Nb.tryFromString(this.readonlyProps.selectedCountryCode,this.readonlyProps.repositoryFactory.translationRepository()).name,this.translateFn=t.repositoryFactory.translationRepository().translateFn}}o.load=e=>{let t=o.getInitialProps(),r=new o(t,e);return o.loadEVPurchaseProducts(r,e),r},o.lazyLoad=async e=>{let t=o.getInitialProps(),r=new o(t,e);return await o.loadEVPurchaseProducts(r,e),r},o.loadEVPurchaseProducts=async function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return e.updatePartial({loading:!0}),t.repositoryFactory.evProductRepository().findEVPurchaseQuotePropsUI(e.readonlyProps.selectedCountryCode).then(o=>((0,i.kT)(o)?t.simpleErrorModalUI.open(s.Generic):e.updatePartial({purchaseProductProps:o,selectedProductProps:r?null:e.getProps().selectedProductProps}),o)).catch(e=>(t.simpleErrorModalUI.open(s.Generic),e)).finally(()=>e.updatePartial({loading:!1}))},o.getInitialProps=()=>({loading:!0,selectedProductProps:null,purchaseProductProps:null})},43185:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});class i{constructor(e){this.readonlyProps=e,this.getStepName=()=>"address",this.sendPageTrack=()=>this.readonlyProps.evPurchaseTrackerRepository.pageEVPurchaseAddress(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.validate=async()=>{this.readonlyProps.purchaseAddressContentUI.checkAndFocus(),this.readonlyProps.purchaseAddressContentUI.hasValidAddresses()&&(this.readonlyProps.evPurchaseTrackerRepository.eventEVPurchaseAddressSubmit(this.readonlyProps.purchaseAddressContentUI.getPaymentUIBillingAddress(),this.readonlyProps.purchaseAddressContentUI.getRequiredNeoProConfigurationUI()),this.readonlyProps.navigationUI.goToStep("payment"))},this.previous=()=>{this.readonlyProps.navigationUI.goToStep("summary")},this.isLoading=()=>this.getPurchaseAddressContentUI().getProps().isLoading,this.getPurchaseAddressContentUI=()=>this.readonlyProps.purchaseAddressContentUI,this.getPurchaseAddressIndigoProBannerUI=()=>this.getPurchaseAddressContentUI().readonlyProps.purchaseAddressIndigoProBannerUI}}i.load=e=>new i(e)},48449:(e,t,r)=>{"use strict";r.d(t,{G:()=>i});class i{constructor(e,t){this.date=e,this.labels=t,this.id=e.getTime().toString()}}i.load=(e,t,r)=>{let s={date:t.formatDateIntl(e,{day:"numeric",month:"long",year:"numeric"}),from:r.translateFn("electric-vehicle:purchase.subscription.priceFrom")};return new i(e,s)}},50964:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var i=r(84631),s=r(48667),o=r(71814),a=r(25554),n=r(2560);class l extends o.R{constructor(e,t){super(e,t),this.getRequiredCountryListUI=()=>(0,a.Gp)(()=>this.getProps().countryListUI,"CountryListUI cannot be null."),this.selectCountry=e=>{this.updatePartial({selectedCountryCode:e.code})},this.isSelectedCountry=e=>this.props.selectedCountryCode===e.code,this.validate=()=>{this.isDisableValidate()||(this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().eventEVPurchaseCountrySubmit(this.getRequiredSelectedCountryCode()),this.readonlyProps.navigationUI.goToStep("configuration"))},this.isDisableValidate=()=>this.isNotSupported()||this.isComingSoon(),this.isNotSupported=()=>!this.getProps().allowedCountries.includes(this.getRequiredSelectedCountryCode())&&"BE"!==this.getRequiredSelectedCountryCode(),this.isComingSoon=()=>!this.getProps().allowedCountries.includes(this.getRequiredSelectedCountryCode())&&"BE"===this.getRequiredSelectedCountryCode(),this.getRequiredSelectedCountryCode=()=>(0,a.Gp)(()=>this.getProps().selectedCountryCode,"countryCode cannot be null."),this.displayables=()=>({title:this.translateFn("electric-vehicle:purchase.country.title"),loading:this.translateFn("common:loading.dotted"),genericError:this.translateFn("common:error.500"),description:this.translateFn("electric-vehicle:purchase.country.description"),countryNotSupported:this.translateFn("electric-vehicle:purchase.country.notSupported"),comingSoon:{title:this.translateFn("electric-vehicle:purchase.country.comingSoon.title"),description:this.translateFn("electric-vehicle:purchase.country.comingSoon.description")}}
1),this.getStepName=()=>"country",this.sendPageTrack=()=>this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().pageEVPurchaseCountry(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.hasSummary=()=>!1,this.requestCountries=async e=>(this.updatePartial({isLoading:!0,hasError:!1}),this.readonlyProps.repositoryFactory.evChargingRepository().getEVPurchaseCountryRules().then(t=>{if((0,n.kT)(t))this.updatePartial({hasError:!0});else{let r=this.readonlyProps.repositoryFactory.countryRepository().getOrderedCountryList(e,t.map(e=>e.countryCode)).map(e=>new s.N(e,this.readonlyProps.repositoryFactory.translationRepository())),o=t.filter(e=>e.isAllowed).map(e=>e.countryCode),a=i.t.load(e,r,this.readonlyProps.repositoryFactory.countryRepository(),this.readonlyProps.repositoryFactory.translationRepository());this.updatePartial({allowedCountries:o,countryListUI:a})}}).finally(()=>this.updatePartial({isLoading:!1}))),this.translateFn=t.repositoryFactory.translationRepository().translateFn}}l.load=(e,t)=>{let r=new l({isLoading:!0,hasError:!1,allowedCountries:[],countryListUI:null,selectedCountryCode:e},t);return r.requestCountries(e),r}},52422:(e,t,r)=>{"use strict";r.d(t,{T:()=>s});var i=r(48661);class s extends i.b{constructor(e){super(e),this.props=e}}s.empty=()=>new s({stepName:"configuration",isLoadingSendPageTrack:!1,hasSendPageTrack:!1})},55277:e=>{e.exports={loadingState:"LoadingState_loadingState__5cTx9",text:"LoadingState_text__opRuR",icon:"LoadingState_icon__DUAnz"}},59594:(e,t,r)=>{"use strict";r.d(t,{l:()=>i.l});var i=r(20589)},61350:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});var i=r(18415);
1class s{constructor(e,t,r,i){this.title=e,this.titleDeliveryAddress=t,this.deliveryAddress=r,this.props=i}}s.build=(e,t,r,o,a)=>{var n,l;let c=a.translationRepository().translateFn,u=c("electric-vehicle:payment.resume.title"),d=c("electric-vehicle:payment.resume.subscription.deliveryAddress.label"),p=a.dateRepository().formatDateIntl(new Date(o),{day:"numeric",month:"long",year:"numeric"}),h="on-demand"===e.type,y=[{label:c("electric-vehicle:purchase.summary.country"),value:i.Nb.tryFromString(r.countryCode,a.translationRepository()).name},{label:c("electric-vehicle:payment.resume.subscription.product.label"),value:h?c("electric-vehicle:payment.resume.onDemand.product.value"):c("electric-vehicle:payment.resume.subscription.size.value",{size:r.size})},{label:c("electric-vehicle:payment.resume.subscription.startDate.label"),value:p},{label:c("electric-vehicle:payment.resume.duration"),value:c("electric-vehicle:payment.resume.durationValue")}];"subscription"===e.type&&y.push({label:c("electric-vehicle:payment.resume.subscription.price.label"),value:c("electric-vehicle:payment.resume.subscription.price.value",{price:(0,i.Gp)(()=>{var e;return null==(e=r.totalPrice)?void 0:e.toLabel()},"total price should exist")})});let P=[{label:c("electric-vehicle:payment.resume.subscription.badge.delivery.label"),value:c("electric-vehicle:payment.resume.subscription.badge.delivery.value",{delay:null==(n=a.periodAndDurationRepository().computePeriodAndDurationPropsUI(e.badgeDeliveryDelayDuration)[0])?void 0:n.value})}],g="subscription"===e.type?[]:[{label:c("electric-vehicle:purchase.summary.onDemand.overstayPriceKwh"),value:c("electric-vehicle:purchase.summary.overstayPriceKwhValue",{price:e.extraPrice.charging.toLabel()})},{label:c("electric-vehicle:purchase.summary.fees"),value:c("electric-vehicle:purchase.summary.fees.onDemand.priceByCharge",{price:e.extraPrice.connection.toLabel()})},{label:c("electric-vehicle:purchase.summary.overstayPriceMinute"),value:i.lL.isZero(e.extraPrice.overstay.after,a.periodAndDurationRepository())?c("electric-vehicle:purchase.summary.overstayPriceMinuteValue",{price:e.extraPrice.overstay.pricePerMinute.toLabel()}):c("electric-vehicle:purchase.summary.overstayPriceMinuteValueWithGracePeriod",{price:e.extraPrice.overstay.pricePerMinute.toLabel(),duration:null!=(l=i.lL.build(e.extraPrice.overstay.after,a.periodAndDurationRepository(),a.translationRepository()).format())?l:""})}];return new s(u,d,t,{productTitle:c("electric-vehicle:payment.resume.product.title"),badgeTitle:c("electric-vehicle:payment.resume.badge.title"),detailsTitle:c("electric-vehicle:payment.resume.detail.title"),product:y,badge:P,details:g})}},69286:(e,t,r)=>{"use strict";r.d(t,{B:()=>o});var i=r(49238),s=r(99066);class o extends i.pR{constructor(e){super(e),this.props=e,this.getEVPurchaseCountryUI=()=>this.findFlowStepPropsUI("country"),this.getEVPurchaseConfigurationUI=()=>this.findFlowStepPropsUI("configuration"),this.getEVPurchaseSubscriptionUI=()=>this.findFlowStepPropsUI("subscription"),this.getEVPurchaseSummaryUI=()=>this.findFlowStepPropsUI("summary"),this.getEVPurchaseAddressUI=()=>this.findFlowStepPropsUI("address"),this.getEVPurchasePaymentUI=()=>this.findFlowStepPropsUI("payment"),this.getEVPurchaseSuccessUI=()=>this.findFlowStepPropsUI("success"),this.initializeEVPurchaseCountryUI=e=>{this.initialize(e,"country")},this.initializeEVPurchaseConfigurationUI=e=>{this.initialize(e,"configuration")},this.initializeEVPurchaseSubscriptionUI=e=>{this.initialize(e,"subscription")},this.initializeEVPurchaseSummaryUI=e=>{this.initialize(e,"summary")},this.initializeEVPurchaseAddressUI=e=>{this.initialize(e,"address")},this.initializeEVPurchasePaymentUI=e=>{this.initialize(e,"payment")},this.initializeEVPurchaseSuccessUI=e=>{this.initialize(e,"success")},this.hasPurchaseIntent=()=>!!this.props.flowParams.purchaseIntentId,this.displayables=()=>({meta:{title:this.props.translationRepository.translateFn("electric-vehicle:purchase.title")},banner:{title:this.props.translationRepository.translateFn("electric-vehicle:purchase.title")},validate:this.props.translationRepository.translateFn("common:confirm"),error:{title:this.props.translationRepository.translateFn("common:error.500"),description:this.props.translationRepository.translateFn("electric-vehicle:error.generic"),cta:this.props.translationRepository.translateFn("electric-vehicle:error.findOtherProduct")}}),this.validateConfigurationStep=()=>{let e=this.getRequiredConfigurationStep(),t=this.getEVPurchaseSubscriptionUI();t&&e.isSelectionOnDemand()&&t.resetSelection(),e.validate()},this.getRequiredSelectedCountryCode=()=>this.getRequiredCountryStep().getRequiredSelectedCountryCode(),this.getRequiredSelectedEVPurchaseProductPropsUI=()=>(0,i.Gp)(()=>{var e;return null==(e=this.getEVPurchaseConfigurationUI())?void 0:e.getRequiredSelectedProductPropsUI()},"EVPurchaseConfigurationUI should be defined."),this.getRequiredSelectedDate=()=>{var e,t;let r=this.getEVPurchaseConfigurationUI(),s=this.getEVPurchaseSubscriptionUI(),o=(null==r?void 0:r.isSelectionOnDemand())?null==(e=r.getProps().purchaseProductProps)?void 0:e.onDemandDate:null==s||null==(t=s.getProps().selectedSubscriptionDate)?void 0:t.date;return(0,i.Gp)(()=>o,"No selected date")},this.getRequiredSelectedSubscriptionPropsUI=()=>{var e;let t=this.getEVPurchaseConfigurationUI(),r=this.getEVPurchaseSubscriptionUI(),s=(null==t?void 0:t.isSelectionOnDemand())?null==(e=t.getProps().purchaseProductProps)?void 0:e.onDemandPro
1ps:null==r?void 0:r.getProps().selectedSubscription;return(0,i.Gp)(()=>s,"No selected product")},this.getRequiredCountryStep=()=>(0,i.Gp)(()=>this.getEVPurchaseCountryUI(),"country step should be already initialized"),this.getRequiredConfigurationStep=()=>(0,i.Gp)(()=>this.getEVPurchaseConfigurationUI(),"configuration step should be already initialized"),this.getRequiredSubscriptionStep=()=>(0,i.Gp)(()=>this.getEVPurchaseSubscriptionUI(),"subscription step should be already initialized"),this.getRequiredPaymentStep=()=>(0,i.Gp)(()=>this.getEVPurchasePaymentUI(),"payment step should be already initialized"),this.getRequiredAddressStep=()=>(0,i.Gp)(()=>this.getEVPurchaseAddressUI(),"address step should be already initialized"),this.getRequiredSuccessStep=()=>(0,i.Gp)(()=>this.getEVPurchaseSuccessUI(),"should step should be already initialized"),this.redirectIfRequired=()=>{!this.isRedirecting()&&this.shouldRedirectIfNotInitialized()&&this.redirectIfNotInitialized()},this.shouldRedirectIfNotInitialized=()=>this.computeRedirect(),this.hasError=()=>this.props.hasError.getProps(),this.setError=e=>this.props.hasError.update(e),this.getNavigationUI=()=>this.props.navigation,this.isReady=()=>!this.isRedirecting(),this.toEVPurchaseStepSubscriptionUI=(e,t)=>{let r=this.getEVPurchaseSubscriptionUI(),o=this.getRequiredConfigurationStep().getRequiredPurchaseProductProps(),a=(0,i.Gp)(()=>{var e;return null==(e=o.products.find(e=>"subscription"===e.type))?void 0:e.extraPrice},"extraPrice should be already defined");return null===r?s.CM.load(o,this.getNavigationUI(),a,e,t):r.reload(o,a)},this.toEVPurchaseSummaryUI=e=>{var t;let r=this.getEVPurchaseSummaryUI(),i=this.getNavigationUI();if(!r&&this.hasPurchaseIntent())return s.hW.lazyLoad(i,e);let o=this.getRequiredConfigurationStep(),a=this.getEVPurchaseSubscriptionUI(),n={loading:!1,date:this.getRequiredSelectedDate(),isSelectionOnDemand:o.isSelectionOnDemand(),productProps:o.getRequiredSelectedProductPropsUI(),subscription:null!=(t=null==a?void 0:a.getProps().selectedSubscription)?t:null};return r?r.reload(n,e):s.hW.load(n,i,e)},this.getAllowedPaymentMethods=()=>this.shouldSubscribeToIndigoPro()?this.getRequiredIndigoProCountryRule().allowedPayments.map(e=>i.Cs.load(e,this.props.translationRepository)):this.getRequiredEVSubscriptionQuoteUI().getRequiredEVSubscriptionQuoteDetails().allowedPaymentMethods.map(e=>i.Cs.load(e.getRequiredManualPaymentMethodType(),this.props.translationRepository)),this.getLegalRequirements=()=>this.getRequiredEVSubscriptionQuoteUI().getRequiredEVSubscriptionQuoteDetails().legalRequirements,this.getRequiredEVSubscriptionQuoteUI=()=>(0,i.Gp)(()=>this.getRequiredAddressStep().readonlyProps.purchaseAddressContentUI.readonlyProps.evSubscriptionQuoteUI,"EVSubscriptionQuoteUI cannot be null"),this.shouldSubscribeToIndigoPro=()=>this.getRequiredAddressStep().getPurchaseAddressContentUI().willBePurchasingIndigoPro(),this.isNeoProEligible=()=>this.getRequiredEVSubscriptionQuoteUI().getRequiredEVSubscriptionQuoteDetails().isNeoProEligible,this.updateIndigoProCountryRule=e=>this.props.indigoProCountryRule.update(e),this.getRequiredIndigoProCountryRule=()=>(0,i.Gp)(()=>this.props.indigoProCountryRule.getProps(),"indigoProCountryRule cannot be null"),this.resetSuccessStepIfNeed=()=>{this.shouldRedirectFromSuccessStep()&&this.resetStep("success")},this.shouldRedirectFromSuccessStep=()=>!!this.getEVPurchaseSuccessUI()&&!this.getNavigationUI().isActivePath("success"),this.redirectIfNotInitialized=()=>{if(this.computeRedirect()){let e=this.getNavigationUI(),t=e.props.flowParams.purchaseIntentId;this.redirectTo(()=>(t?e.goToStep("summary"):e.goToInitialPath()).then(this.resetSuccessStepIfNeed))}},this.computeRedirect=()=>{var e;let t=this.getNavigationUI(),r=!!(null==(e=this.getEVPurchaseConfigurationUI())?void 0:e.isSelectionOnDemand),i=!this.getEVPurchaseCountryUI(),s=i&&!this.getEVPurchaseConfigurationUI(),o=s&&!r&&!this.getEVPurchaseSubscriptionUI(),a=o&&!this.getEVPurchaseSummaryUI(),n=a&&!this.getEVPurchaseAddressUI();if(t.isActivePath("configuration")&&i||t.isActivePath("subscription")&&s||t.isActivePath("summary")&&o||t.isActivePath("address")&&a||t.isActivePath("payment")&&n||t.isActivePath("success")&&n||this.shouldRedirectFromSuccessStep()){let e=t.props.flowParams.purchaseIntentId;return!(t.isActivePath("summary")&&e||t.isActivePath("country")&&!e)}return!1}}}o.load=e=>
1new o(e)},91469:(e,t,r)=>{"use strict";r.d(t,{W:()=>i});class i{constructor(e,t){this.props=e,this.labels=t,this.id=e.productId}}i.load=(e,t)=>new i(e,i.toEvPurchaseSubscriptionLabelsUI(e,t)),i.toEvPurchaseSubscriptionLabelsUI=(e,t)=>({monthlyPrice:e.productPrice.toLabel(),monthlyRegularPrice:e.hasDiscount?e.productRegularPrice.toLabel():null,size:t("electric-vehicle:purchase.subscription.size",{size:e.size}),frequency:t("electric-vehicle:purchase.subscription.frequency")})},97389:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});class i{constructor(e,t,r,i){this.orderId=e,this.labels=t,this.deliveryAddressUI=r,this.navigationUI=i,this.goToOrder=()=>{this.navigationUI.redirectToSubscription(this.orderId)}}}i.build=(e,t,r,s,o,a)=>{var n;return new i(e,{title:s.translateFn("electric-vehicle:success.delivery.title"),description:s.translateFn("electric-vehicle:success.delivery.description",{delay:null==(n=o.computePeriodAndDurationPropsUI(r)[0])?void 0:n.value}),textLink:s.translateFn("electric-vehicle:success.delivery.textLink")},t,a)}},99066:(e,t,r)=>{"use strict";r.d(t,{xW:()=>i.x,l2:()=>s.l,vg:()=>a.v,fb:()=>o.f,CM:()=>l.C,c6:()=>c.c,hW:()=>h,xb:()=>n.x});var i=r(43185),s=r(35559);r(23524);var o=r(42257),a=r(50964);r(52422),r(37409),r(116),r(61350),r(26857);var n=r(23561),l=r(17763);r(48449);var c=r(19013);r(91469),r(97389),r(30214),r(12405);var u=r(18415);class d{}d.buildDetailsProps=e=>{var t,r;let i=e.repositoryFactory.translationRepository().translateFn;return{base:d.buildDetailBase(e),product:d.buildDetailProduct(e),infosTitle:i("electric-vehicle:purchase.summary.more.title"),infos:"subscription"===e.productPropsUI.type?[i("electric-vehicle:purchase.summary.more.subscription.text1"),i("electric-vehicle:purchase.summary.more.subscription.text2",{price:e.productPropsUI.extraPrice.charging.toLabel()}),i("electric-vehicle:purchase.summary.more.onDemand.badgeDelivery",{delay:null==(t=e.repositoryFactory.periodAndDurationRepository().computePeriodAndDurationPropsUI(e.productPropsUI.badgeDeliveryDelayDuration)[0])?void 0:t.value})]:[i("electric-vehicle:purchase.summary.more.onDemand.badgeDelivery",{delay:null==(r=e.repositoryFactory.periodAndDurationRepository().computePeriodAndDurationPropsUI(e.productPropsUI.badgeDeliveryDelayDuration)[0])?void 0:r.value})]}},d.buildDetailProduct=e=>{var t;let r=e.repositoryFactory.translationRepository().translateFn,i=[{label:r("electric-vehicle:purchase.summary.country"),value:u.Nb.tryFromString(e.productPropsUI.countryCode,e.repositoryFactory.translationRepository()).name,infoValue:null},{label:r("electric-vehicle:purchase.summary.product"),value:"subscription"===e.productPropsUI.type?r("electric-vehicle:purchase.summary.productSubscription",{size:null==(t=e.subscription)?void 0:t.size}):r("electric-vehicle:purchase.summary.productOnDemand"),infoValue:null},{label:r("electric-vehicle:purchase.summary.start"),value:e.repositoryFactory.dateRepository().formatDateIntl(new Date(e.date),{day:"numeric",month:"long",year:"numeric"}),infoValue:null},{label:r("electric-vehicle:purchase.summary.duration"),value:r("electric-vehicle:purchase.summary.durationValue"),infoValue:null},{label:r("electric-vehicle:purchase.summary.badge"),value:e.productPropsUI.badgePriceUI.hasRegularPrice()||0!==e.productPropsUI.badgePriceUI.getPrice().amount?e.productPropsUI.badgePriceUI:r("electric-vehicle:purchase.summary.badge.freeValue"),infoValue:null}];return"subscription"===e.productPropsUI.type&&i.push({label:r("electric-vehicle:purchase.summary.total"),value:r("electric-vehicle:purchase.summary.totalValue",{price:(0,u.Gp)(()=>{var t;return null==(t=e.subscription)?void 0:t.productPrice.toLabel()},"product price should exist for a subscription")}),infoValue:null}),{title:r("electric-vehicle:purchase.summary.productTitle"),datas:i}},d.buildDetailBase=e=>{var t,r;let i=e.repositoryFactory.translationRepository().translateFn;return"subscription"===e.productPropsUI.type?{title:i("electric-vehicle:purchase.summary.detail"),datas:[{label:i("electric-vehicle:purchase.summary.subscription.includedEnergy"),value:i("electric-vehicle:purchase.summary.productSubscriptionPerMonth",{size:(0,u.Gp)(()=>{var t;return null==(t=e.subscription)?void 0:t.size},"subscription should exist")}),infoValue:null},{label:i("electric-vehicle:purchase.summary.fees"),value:i("electric-vehicle:offeredMasculinePlural"),infoValue:null},{label:i("electric-vehicle:purchase.summary.overstayPriceMinute"),value:u.lL.isZero(e.productPropsUI.extraPrice.overstay.after,e.repositoryFactory.periodAndDurationRepository())?i("electric-vehicle:purchase.summary.overstayPriceMinuteValue",{price:e.productPropsUI.extraPrice.overstay.pricePerMinute.toLabel()}):i("electric-vehicle:purchase.summary.overstayPriceMinuteValueWithGracePeriod",{price:e.productPropsUI.extraPrice.overstay.pricePerMinute.toLabel(),duration:null!=(t=u.lL.build(e.productPropsUI.extraPrice.overstay.after,e.repositoryFactory.periodAndDurationRepository(),e.repositoryFactory.translationRepository(),{short:!0}).format())?t:""}),infoValue:null},{label:i("electric-vehicle:purchase.summary.subscription.overstayPriceKwh"),value:i("electric-vehicle:purchase.summary.overstayPriceKwhValue",{price:e.productPropsUI.extraPrice.charging.toLabel()}),infoValue:null}]}:{title:i("electric-vehicle:purchase.summary.detail"),datas:[{label:i("electric-vehicle:purchase.summary.onDemand.overstayPriceKwh"),value:i("electric-vehicle:purchase.summary.overstayPriceKwhValue",{price:e.productPropsUI.extraPrice.charging.toLabel()}),infoValue:null},{label:i("electric-vehicle:purchase.summary.fees"),value:i("electric-vehicle:purchase.summary.fees.onDemand.priceByCharge",{price:e.productPropsUI.extraPrice.connection.toLabel()}),infoValue:null},{label:i("electric-vehicle:purchase.summary.overstayPriceMinute"),value:u.lL.isZero(e.productPropsUI.extraPrice.overstay.after,e.repositoryFactory.periodAndDurationRepository())?i("electric-vehicle:purchase.summary.overstayPriceMinuteValue",{price:e.productPropsUI.extraPrice.overstay.pricePerMinute.toLabel()}):i("electric-vehicle:purchase.summary.overstayPriceMinuteValueWithGracePeriod",{price:e.productPropsUI.extraPrice.overstay.pricePerMinute.toLabel(),duration:null!=(r=u.lL.build(e.productPropsUI.extraPrice.overstay.after,e.repositoryFactory.periodAndDurationRepository(),e.repositoryFactory.translationRepository()).format())?r:""}),infoValue:null}]}};var p=r(25554);class h{constructor(e){this.readonlyProps=e,this.reload=(e,t)=>(this.readonlyProps.loading=e.loading,this.readonlyProps.isSelectionOnDemand=e.isSelectionOnDemand,this.readonlyProps.detailProduct=d.buildDetailsProps({productPropsUI:e.productProps,subscription:e.subscription,date:e.date,repositoryFactory:t}),this),this.previous=()=>{this.readonlyProps.isSelectionOnDemand?this.readonlyProps.navigationUI.goToStep("configuration"):this.readonlyProps.navigationUI.previous()},this.validate=()=>{this.readonlyProps.navigationUI.next()},this.getRequiredEVPurchaseSummaryDetailPropsUI=()=>(0,p.Gp)(()=>this.readonlyProps.detailProduct,"product detail should exist"),this.get
1ScreenTranslations=()=>({buttons:{back:this.translateFn("common:back"),validate:this.translateFn("common:confirm")},alert:{purchaseIntent:{title:this.translateFn("electric-vehicle:purchase.summary.purchaseIntent.alert.title"),label:this.translateFn("electric-vehicle:purchase.summary.purchaseIntent.alert.label")}},title:this.translateFn("electric-vehicle:purchase.summary.title")}),this.getStepName=()=>"summary",this.sendPageTrack=()=>this.readonlyProps.repositoryFactory.evPurchaseTrackerRepository().pageEVPurchaseQuoteConfirmation(this.readonlyProps.navigationUI.props.flowParams.purchaseIntentId),this.translateFn=this.readonlyProps.repositoryFactory.translationRepository().translateFn}}h.lazyLoad=(e,t)=>new h({navigationUI:e,repositoryFactory:t,isSelectionOnDemand:!1,detailProduct:null,loading:!0}),h.load=(e,t,r)=>new h({loading:!1,isSelectionOnDemand:e.isSelectionOnDemand,detailProduct:d.buildDetailsProps({productPropsUI:e.productProps,subscription:e.subscription,date:e.date,repositoryFactory:r}),navigationUI:t,repositoryFactory: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.