1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4080],{281:(t,s,e)=>{e.d(s,{E:()=>a});var i=e(30656),r=e(21666);class a extends i.R0{constructor(...t){super(...t),this.hasMainAccessMode=()=>this.getAssetSummary().accessModes.length>0,this.getDisplayableMainAccessModeName=()=>this.translate(o[this.getRequiredMainAccessModeUI()]),this.hasPinCodeAccessMode=()=>!!this.getAssetSummary().accessModes.find(t=>t===r.Ek.PIN_CODE),this.displayPinCodeDetail=()=>this.updatePartial({hasPinCodeDetailDisplayed:!0}),this.hidePinCodeDetail=()=>this.updatePartial({hasPinCodeDetailDisplayed:!1}),this.getDisplayableVehiclePinCode=()=>this.getSubscriptionUI().getRequiredVehiclePinCode().replace(/(.{3})/g,"$1 "),this.hasPedestrianCodeAccessMode=()=>!!this.getAssetSummary().pedestrianCode,this.getRequiredPedestrianCode=()=>(0,i.Gp)(()=>this.getAssetSummary().pedestrianCode,"pedestrianCode should be defined."),this.displayable=()=>({mainAccessMode:this.translate("account-orders:asset.access.mainAccessMode"),pedestrianCode:this.translate("account-orders:asset.access.pedestrianCode"),barrierDoNotOpen:this.translate("account-orders:asset.access.barrierDoNotOpen"),displayPinCode:this.translate("account-orders:asset.access.displayPinCode"),enterPinCode:this.translate("account-orders:asset.access.enterPinCode")}),this.getRequiredMainAccessModeUI=()=>(0,i.aH)(this.getAssetSummary().accessModes),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.getAssetSummary=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().assetSummary,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}a.load=t=>new a({hasPinCodeDetailDisplayed:!1},t);let o={[r.Ek.BADGE]:"account-orders:asset.access.mode.badge",[r.Ek.BARCODE]:"account-orders:asset.access.mode.barCode",[r.Ek.BIKE_PLACES]:"account-orders:asset.access.mode.bike",[r.Ek.CONNECT]:"account-orders:asset.access.mode.connect",[r.Ek.HANDS_ON_WHEEL]:"account-orders:asset.access.mode.handsOnWheel",[r.Ek.MAS]:"account-orders:asset.access.mode.bluetooth",[r.Ek.BLUETOOTH]:"account-orders:asset.access.mode.bluetooth",[r.Ek.NFC]:"account-orders:asset.access.mode.nfc",[r.Ek.PIN_CODE]:"account-orders:asset.access.mode.pinCode",[r.Ek.QR]:"account-orders:asset.access.mode.qr",[r.Ek.RFID]:"account-orders:asset.access.mode.rfid",[r.Ek.VALET]:"account-orders:asset.access.mode.valet",[r.Ek.VOUCHER]:"account-orders:asset.access.mode.voucher",[r.Ek.OTHER]:"account-orders:asset.access.mode.other"}},4196:(t,s,e)=>{e.d(s,{Gp:()=>r.Gp,kT:()=>a.kT,pR:()=>i.p});var i=e(78533),r=e(25554),a=e(2560)},4847:(t,s,e)=>{e.d(s,{y:()=>i});class i{constructor(t){this.readonlyProps=t,this.displayable=()=>({parking:this.translate("account-orders:section.parking")}),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}i.load=t=>new i(t)},11491:(t,s,e)=>{e.d(s,{g:()=>r});var i=e(1756);class r extends i.R{constructor(...t){super(...t),this.canBeUpdated=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().renewal.canBeUpdated,this.getDisplayableTitle=()=>(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().renewal.isEnabled?this.displayable().automaticRenewAtDate:this.displayable().automaticEndingAtDate).replace("{date}",this.getSubscriptionUI().getDisplayableCommitmentEndDate()),this.getDisplayableLabel=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().renewal.isEnabled?this.displayable().disable:this.displayable().enable,this.getDisplayableInformation=()=>(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().renewal.isEnabled?this.displayable().canBeDisabledUntilDate:this.displayable().canBeEnabledUntilDate).replace("{date}",this.getSubscriptionUI().getDisplayableRenewalUntilDate()),this.getDisplayableConfirmMessage=()=>this.displayable().confirm.message.replace("{date}",this.getSubscriptionUI().getDisplayableCommitmentEndDate()),this.enableAutoRenewalOrDisplayDisableConfirm=()=>{this.getSubscriptionUI().getRequiredSubscriptionPropsUI().renewal.isEnabled?this.updatePartial({disableConfirmDisplayed:!0}):this.enableAutoRenewal()},this.hideDisableConfirm=()=>this.updatePartial({disableConfirmDisplayed:!1}),this.disableAutoRenewal=()=>{this.updatePartial({isLoading:!0}),this.readonlyProps.accountSubscriptionTrackerRepository.eventSubscriptionCancelRenew(),this.readonlyProps.subscriptionRepository.toggleAutoRenewal(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().id,!1).then(()=>this.getSubscriptionUI().reload()).finally(()=>this.updatePartial({isLoading:!1,disableConfirmDisplayed:!1}))},this.displayable=()=>({disable:this.translate("account-subscriptions:subscription.renewal.disable"),enable:this.translate("account-subscriptions:subscription.renewal.enable"),automaticRenewAtDate:this.translate("account-subscriptions:subscription.renewal.automaticRenewAt"),automaticEndingAtDate:this.translate("account-subscriptions:subscription.renewal.automaticEndingAt"),canBeEnabledUntilDate:this.translate("account-subscriptions:subscription.renewal.canBeEnabledUntil"),canBeDisabledUntilDate:this.translate("account-subscriptions:subscription.renewal.canBeDisabledUntil"),confirm:{title:this.translate("account-subscriptions:subscription.renewal.cancel"),message:this.translate("account-subscriptions:subscription.renewal.confirm"),cancel:this.translate("common:cancel"),deactivate:this.translate("common:deactivate")}}
1),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.enableAutoRenewal=()=>{this.updatePartial({isLoading:!0}),this.readonlyProps.accountSubscriptionTrackerRepository.eventSubscriptionActivateRenew(),this.readonlyProps.subscriptionRepository.toggleAutoRenewal(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().id,!0).then(()=>this.getSubscriptionUI().reload()).finally(()=>this.updatePartial({isLoading:!1}))},this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}r.load=t=>new r({disableConfirmDisplayed:!1,isLoading:!1},t)},16454:(t,s,e)=>{e.d(s,{Ix:()=>i.Ix,Nq:()=>i.Nq,R0:()=>a.R,Yb:()=>r.Y,gE:()=>i.gE,k$:()=>o.k$});var i=e(90678),r=e(88505),a=e(71814),o=e(25554)},23424:(t,s,e)=>{e.d(s,{b:()=>i});class i{constructor(t){this.props=t,this.openGoogleMaps=()=>{this.props.accountOrderTrackerRepository.eventGoToGoogleMaps(),this.props.assetRepository.openGoogleMaps(this.getAssetLocation())},this.getSubscriptionUI=()=>this.props.subscriptionUI,this.displayable=()=>({itinerary:this.translate("account-orders:asset.itinerary")}),this.getAssetLocation=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().assetSummary.location,this.translate=(t,s)=>this.props.translationRepository.translateFn(t,s)}}i.load=t=>new i(t)},24964:(t,s,e)=>{e.d(s,{$:()=>i});class i{constructor(t){this.readonlyProps=t,this.isEnabled=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().physicalAccessMeans.isEnabled,this.hasBadge=()=>null!==this.getSubscriptionUI().getRequiredSubscriptionPropsUI().physicalAccessMeans.badgeId,this.shouldDisplayBadgeInfo=()=>this.isEnabled()&&this.getSubscriptionUI().isActive(),this.canActivateBadge=()=>this.isEnabled()&&!this.hasBadge()&&this.getSubscriptionUI().isActive(),this.getDisplayableBadge=()=>this.getSubscriptionUI().getRequiredBadgeId(),this.displayActivationFlow=()=>{var t;this.readonlyProps.goTo("/account/subscriptions/".concat(null==(t=this.readonlyProps.subscriptionUI.getProps().subscriptionPropsUI)?void 0:t.id,"/physical-access-means/activate"))},this.displayable=()=>({title:this.translate("account-subscriptions:subscriptions.physicalAccessMeans.title"),badgeActivation:this.translate("account-subscriptions:subscriptions.physicalAccessMeans.activate"),statusBadges:{badgeToEnable:this.translate("account-subscriptions:subscriptions.physicalAccessMeans.badgeToEnable"),badgeEnabled:this.translate("account-subscriptions:subscriptions.physicalAccessMeans.badgeEnabled"),noBadgeEnabled:this.translate("account-subscriptions:subscriptions.physicalAccessMeans.noBadgeEnabled")}}),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}i.load=t=>new i(t)},25712:(t,s,e)=>{e.d(s,{W:()=>a});var i=e(4196),r=e(14639);class a extends i.pR{constructor(t){super(t),this.props=t,this.initializeOrderRetractWelcomeUI=t=>{this.initialize(t,"welcome")},this.getOrderRetractWelcomeUI=()=>this.findFlowStepPropsUI("welcome"),this.getRequiredOrderUI=()=>(0,i.Gp)(()=>this.props.orderUI.getProps(),"OrderUI cannot be null."),this.getNavigationUI=()=>this.props.navigationUI,this.isLoading=()=>this.props.isLoading.getProps(),this.hasError=()=>this.props.hasError.getProps(),this.getErrorMessage=()=>this.props.repositoryFactory.translationRepository().translateFn("common:error.500")}}a.load=t=>{let s=new a(t);return s.props.isLoading.getProps()||s.props.isLoaded.getProps()||(s.props.hasError.update(!1),s.props.isLoading.update(!0),t.repositoryFactory.orderRepository().findById(t.orderId).then(e=>{s.props.hasError.update((0,i.kT)(e)),(0,i.kT)(e)||s.props.orderUI.update(r.p.build(e,t.repositoryFactory))}).catch(()=>{s.props.hasError.update(!0)}).finally(()=>{s.props.isLoading.update(!1),s.props.isLoaded.update(!0)})),s}},31268:(t,s,e)=>{e.d(s,{f:()=>o});var i=e(38023),r=e(25554),a=e(98352);class o{constructor(t){this.readonlyProps=t,this.getDisplayableCommitment=()=>this.getSubscriptionUI().getDisplayableCommitmentPeriod(),this.getDisplayableBillingCycle=()=>
1this.translate(n[this.getSubscriptionUI().getRequiredSubscriptionPropsUI().billingCycle]),this.getRecurringPrice=()=>this.getSubscriptionUI().getRecurringPrice(),this.getDisplayableRecurringFrequency=()=>this.getSubscriptionUI().getDisplayableRecurringFrequency(),this.hasRegularRecurringRegularPrice=()=>this.getSubscriptionUI().hasRegularRecurringRegularPrice(),this.getRequiredRecurringRegularPrice=()=>this.getSubscriptionUI().getRequiredRecurringRegularPrice(),this.getDisplayableCommitmentStartDate=()=>this.getSubscriptionUI().getDisplayableCommitmentStartDate(),this.getDisplayableCommitmentEndDate=()=>this.getSubscriptionUI().getDisplayableCommitmentEndDate(),this.hasAppliedDiscount=()=>{var t;return!!(null==(t=this.getSubscriptionUI().getProps().subscriptionPropsUI)?void 0:t.appliedDiscount)},this.getRequiredDisplayablePromotionDescription=()=>{let t=(0,r.Gp)(()=>{var t;return null==(t=this.getSubscriptionUI().getProps().subscriptionPropsUI)?void 0:t.appliedDiscount},"Subscription has no applied discount"),s=i.p.format(t.expiration,{dateRepository:this.readonlyProps.dateRepository,translationRepository:this.readonlyProps.translationRepository},i.p.DATE_ONLY_PATTERN);return this.translate("account-subscriptions:promotion.title.description").replace("{reductionName}",t.name).replace("{expirationDate}",s)},this.displayable=()=>({title:this.translate("account-subscriptions:subscription.commitment.commitment"),duration:this.translate("account-subscriptions:subscription.commitment.duration"),billingCycle:this.translate("account-subscriptions:subscription.commitment.billingCycle"),price:this.translate("account-subscriptions:subscription.commitment.price"),start:this.translate("account-subscriptions:subscription.commitment.start"),end:this.translate("account-subscriptions:subscription.commitment.end"),promotionLegalInfo:this.translate("account-subscriptions:promotion.legal.info")}),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}o.load=t=>new o(t);let n={[a.ut.MONTHLY]:"technical:billingCycle.month",[a.ut.QUART
1ERLY]:"technical:billingCycle.quarter",[a.ut.YEARLY]:"technical:billingCycle.year"}},34179:(t,s,e)=>{e.d(s,{C:()=>i});class i{constructor(t){this.readonlyProps=t,this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.canBeUpdated=()=>this.getSubscriptionUI().isActive()&&!this.getSubscriptionUI().isElectricVehicle()&&this.getSubscriptionUI().isOwner(),this.canUpdateQuantity=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().quantity.min!==this.getSubscriptionUI().getRequiredSubscriptionPropsUI().quantity.max,this.canViewAssociatedVehicles=()=>!this.getSubscriptionUI().isBike(),this.getDisplayableQuantity=()=>{let t=this.getSubscriptionUI().getRequiredSubscriptionPropsUI().quantity.actualQuantity;return this.readonlyProps.translationRepository.pluralized(t,"account-subscriptions:subscription.quantity.multiple","account-subscriptions:subscription.quantity.single").replace("{count}",String(t))},this.getDisplayableVehiclesQuantity=()=>{let t=this.getSubscriptionUI().getRequiredSubscriptionPropsUI().quantity.actualQuantity;return this.readonlyProps.translationRepository.pluralized(t,"account-subscriptions:subscription.quantity.vehicle.multiple","account-subscriptions:subscription.quantity.vehicle.single").replace("{count}",String(t))},this.goToSubscriptionQuantityUpdate=()=>this.readonlyProps.goTo("/account/subscriptions/".concat(this.getSubscriptionId(),"/quantity")),this.getDisplayableAssociatedVehicles=()=>"".concat(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().quantity.associatedVehicleQuantity," / ").concat(this.getDisplayableVehiclesQuantity()),this.goToSubscriptionAssociatedVehicles=()=>(this.readonlyProps.accountSubscriptionTrackerRepository.eventSubscriptionChangeLicensePlate(),this.readonlyProps.goTo("/account/subscriptions/".concat(this.getSubscriptionId(),"/vehicles/update"))),this.displayable=()=>({title:this.translate("account-subscriptions:subscription.quantity"),actualQuantity:this.translate("account-subscriptions:quantity"),associatedVehicles:this.translate("account-subscriptions:subscription.quantity.associatedVehicles")}),this.getSubscriptionId=()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().id,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}i.load=t=>new i(t)},45548:(t,s,e)=>{e.d(s,{D:()=>r});var i=e(74277);class r extends i.R{constructor(...t){super(...t),this.isManagedByNeoPro=()=>this.getSubscriptionUI().isManagedByNeoPro(),this.isReadonly=()=>this.getSubscriptionUI().isStopped(),this.getRequiredRecurringPaymentMethod=()=>(0,i.G)(()=>this.getSubscriptionUI().getRequiredSubscriptionPropsUI().recurringPaymentMethod,"recurringPaymentMethod should be defined"),this.goToPaymentUpdateFlow=()=>(this.readonlyProps.accountSubscriptionTrackerRepository.eventSubscriptionChangePayment(),this.readonlyProps.goTo("/account/subscriptions/".concat(this.getSubscriptionUI().getRequiredSubscriptionPropsUI().id,"/payment-method/selection"))),this.hideUpdateFlow=()=>this.updatePartial({updateFlowDisplayed:!1}),this.displayable=()=>({title:this.translate("account-subscriptions:subscription.paymentMethod"),confirm:{title:this.translate("account-subscriptions:subscription.paymentMethod.chooseNewPaymentMethod"),cancel:this.translate("common:cancel"),confirm:this.translate("common:confirm")}}),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}r.load=t=>new r({updateFlowDisplayed:!1,isLoading:!1},t)},60582:(t,s,e)=>{e.d(s,{m:()=>r});var i=e(15454);class r extends i.r{constructor(t,s){super(t,s),this.props=s,this.getActivePath=()=>this.props.activePath,this.goToOrderDetailPage=()=>this.props.flowGoTo(this.props.initialPath),this.getTermsOfSaleLink=()=>"/cgv-partners"}}r.load=(t,s)=>new r(t,s)},64285:(t,s,e)=>{e.d(s,{w:()=>c});var i=e(23743),r=e(71814),a=e(25554),o=e(2560),n=e(14639);class c extends r.R{constructor(...t){super(...t),this.reload=()=>{this.requestFirstOrderPage()},this.getOrderDetailPath=t=>"/account/orders/".concat(t),this.getMapPagePath=()=>"/parkings",this.getMoreOrder=()=>{if(!this.getProps().canShowMore)throw Error("can't show more orders");let t=this.getProps().currentPage+1;this.updatePartial({isLoadingMoreOrder:!0}),this.hideMoreOrderError(),this.requestOrderList(t).then(s=>{(0,o.kT)(s)?this.showMoreOrderError():this.updatePartial({currentPage:t,ordersUI:[...this.getProps().ordersUI,...s.list.map(t=>n.p.build(t,this.readonlyProps.repositoryFactory))],canShowMore:s.canShowMore})}).catch(this.showMoreOrderError).finally(()=>this.updatePartial({isLoadingMoreOrder:!1}))},this.getDisplayableOrdersByMonth=()=>Array.from(this.getOrderGroupByYearMonth().keys()),this.getDisplayableOrdersFromDate=t=>(0,a.Gp)(()=>this.getOrderGroupByYearMonth().get(t),"Displayable orders for key ".concat(t," not found.")),this.hideMoreOrderError=()=>this.updatePartial({showMoreOrderError:!1}),this.displayable=()=>({genericError:this.translate("common:error.500"),emptyList:this.translate("account-orders:order.list.empty"),emptyAction:this.translate("account-orders:purchase.orders.carPark"),seeMore:this.translate("account-orders:order.list.seeMore"),ok:this.translate("common:ok"),retry:this.translate("common:retry")}),this.requestOrderList=async t=>this.readonlyProps.repositoryFactory.orderRepository().findAll(t),this.requestFirstOrderPage=()=>{this.updatePartial({isGlobalLoading:!0,showGlobalError:!1}),this.requestOrderList(0).then(t=>{(0,o.kT)(t)?this.showGlobalError():this.updatePartial({currentPage:0,ordersUI:t.list.map(t=>n.p.build(t,this.readonlyProps.repositoryFactory)),showEmpty:0===t.list.length,canShowMore:t.canShowMore})}).catch(this.showGlobalError).finally(()=>this.updatePartial({isGlobalLoading:!1}))},this.getOrderGroupByYearMonth=()=>(0,a.$z)(this.getProps().ordersUI,this.toDisplayableMonthYearGroup),this.toDisplayableMonthYearGroup=t=>this.readonlyProps.repositoryFactory.dateRepository().formatDateIntl(t.getRequiredOrderPropsUI().startDate,i._n),this.showGlobalError=()=>this.updatePartial({showGlobalError:!0}),this.showMoreOrderError=()=>this.updatePartial({showMoreOrderError:!0}),this.translate=(t,s)=>this.readonlyProps.repositoryFactory.translationRepository().translateFn(t,s)}}c.load=t=>{let s=new c({isGlobalLoading:!0,showGlobalError:!1,showEmpty:!1,ordersUI:[],isLoadingMoreOrder:!1,showMoreOrderError:!1,currentPage:0,canShowMore:!1},t);return s.requestFirstOrderPage(),t.repositoryFactory.accountOrderTrackerRepository().pageOrderList(),s}},68772:(t,s,e)=>{e.d(s,{g:()=>r});var i=e(16454);class r extends i.R0{constructor(...t){super(...t),this.clearFormErrors=()=>{let t=this.getProps().fields;(0,i.k$)(t,t=>{t.setState(i.gE.Default)}),this.updatePartial({fields:t})},this.isFormValid=()=>(this.validateFields(),!this.hasOneOrMoreFieldNotValid()),this.validateFields=()=>{let t=this.getProps().fields;(0,i.k$)(t,t=>{new i.Yb(t.getConstraints()).validate(t.getValue())?t.setState(i.gE.Error):t.getInitialState()}),this.updatePartial({fields:t})},this.updateFieldValue=(t,s)=>{let e=this.getProps().fields,i=e[t].setValue(s);this.updatePartial({fields:{...e,[t]:i}})},this.displayable=()=>({description:this.translate("account-orders:order.retraction.welcome.modal.description"),fields:{reasonLabel:this.translate("account-orders:order.retraction.welcome.fields.reasonLabel")}}),this.getDisplayableExplanationError=()=>this.getProps().fields.explanation.getState()!==i.gE.Error?null:this.translate("common:field.required"),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s),this.hasOneOrMoreFieldNotValid=()=>Object.values(this.getProps().fields).some(t=>!t.isValid())}}r.load=t=>new r({fields:{explanation:i.Nq.load(i.Ix.OTHER,"",!1,{isRequired:!0,maxLength:500})}},t)}
1,74782:(t,s,e)=>{e.d(s,{Y:()=>a});var i=e(23377),r=e(26245);class a extends i.R{constructor(...t){super(...t),this.reload=t=>(this.readonlyProps.orderRetractFormUI=t,this),this.getStepName=()=>"welcome",this.sendPageTrack=()=>{this.readonlyProps.orderRetractTrackerRepository.pageOrderRetract()},this.displayRetractConfirm=()=>{this.updatePartial({hasRetractConfirmDisplayed:!0}),this.readonlyProps.supportTicketTrackerRepository.pageTicketCreator(r.K.RetractOrder)},this.hideRetractConfirm=()=>{this.readonlyProps.orderRetractFormUI.clearFormErrors(),this.updatePartial({hasRetractConfirmDisplayed:!1})},this.clearError=()=>this.updatePartial({hasError:!1}),this.submitRetract=()=>{this.isFormValid()&&this.submitRetractRequest()},this.getDisplayableTitle=()=>{let t=this.getOrderUI().getDisplayableDetailTitle();return"".concat(t," - ").concat(this.displayable().retraction.title)},this.goToOrderDetailPage=()=>this.readonlyProps.navigationUI.goToOrderDetailPage(),this.displayable=()=>({retraction:{title:this.translate("account-orders:order.retraction.welcome.title"),button:this.translate("account-orders:order.retraction.welcome.button"),termsOfSaleButtonLabel:this.translate("account-orders:order.retraction.welcome.termsOfSaleButtonLabel")},cancel:this.translate("common:cancel"),close:this.translate("common:close"),modal:{title:this.translate("account-orders:order.retraction.welcome.modal.title"),submit:this.translate("account-orders:order.retraction.welcome.modal.submit"),cancel:this.translate("account-orders:order.retraction.welcome.modal.cancel")},error:{title:this.translate("account-orders:order.retraction.welcome.error.title")}}),this.getOrderUI=()=>this.readonlyProps.orderUI,this.isFormValid=()=>this.readonlyProps.orderRetractFormUI.isFormValid(),this.handleError=()=>{this.updatePartial({hasError:!0,hasRetractConfirmDisplayed:!1})},this.submitRetractRequest=()=>{this.updatePartial({isLoading:!0}),this.readonlyProps.supportTicketRepository.cancelOrder(this.getOrderUI().getRequiredOrderPropsUI().id,this.readonlyProps.orderRetractFormUI.getProps().fields.explanation.getValue()).then(async t=>{(0,i.k)(t)?this.handleError():(await this.getOrderUI().reload(),this.readonlyProps.toasterUI.notifySuccess(this.translate("account-orders:order.retraction.welcome.notification")),this.readonlyProps.supportTicketTrackerRepository.eventTicketCreated(r.K.RetractOrder),this.goToOrderDetailPage())}).catch(this.handleError).finally(()=>this.updatePartial({isLoading:!1}))},this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}a.load=t=>new a({hasRetractConfirmDisplayed:!1,isLoading:!1,hasError:!1},t)},79200:(t,s,e)=>{e.d(s,{D:()=>i});class i{constructor(t){this.readonlyProps=t,this.canBeTerminated=()=>!this.getSubscriptionUI().isStopped(),this.goToTerminate=()=>{let t=this.getSubscriptionUI().getRequiredSubscriptionPropsUI();this.readonlyProps.accountSubscriptionTrackerRepository.eventSubscriptionCancelRequest(t.productSubscriptionType,t.commitment.type),this.readonlyProps.goTo("/account/subscriptions/".concat(t.id,"/termination/welcome"))},this.goToReportProblem=()=>{let t=this.getCustomerCategoryId();return this.readonlyProps.goTo("/customer-service/new-request?customerCategoryId=".concat(t))},this.displayable=()=>({title:this.translate("account-subscriptions:subscription.other.actions"),terminate:this.translate("account-subscriptions:subscription.other.terminateOrCancel"),reportProblem:this.translate("common:reportProblem")}),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.getCustomerCategoryId=()=>this.getSubscriptionUI().isElectricVehicle()?"indigo-recharge":"carpark-subscription"}}i.load=t=>new i(t)},89698:(t,s,e)=>{e.d(s,{x:()=>i});class i{constructor(t){this.readonlyProps=t,this.isElectricVehicle=()=>this.getSubscriptionUI().isElectricVehicle(),this.goToExpenseReport=()=>this.readonlyProps.goToExpenseReport(this.readonlyProps.subscriptionUI),this.displayable=()=>({title:this.translate("account-subscriptions:subscription.management"),generateExpenseReport:this.translate("account-subscriptions:subscription.management.generateExpenseReport")}),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s),this.get
1SubscriptionUI=()=>this.readonlyProps.subscriptionUI}}i.load=t=>new i(t)},94080:(t,s,e)=>{e.d(s,{D:()=>i});class i{constructor(t){this.readonlyProps=t,this.isManagedByNeoPro=()=>this.getSubscriptionUI().isManagedByNeoPro(),this.getRequiredManagedByName=()=>this.getSubscriptionUI().getRequiredManagedBy().name,this.displayable=()=>({title:this.translate("neo-pro:indigoPro"),indigoPro:this.translate("neo-pro:indigoPro")}),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}i.load=t=>new i(t)},94182:(t,s,e)=>{e.d(s,{z:()=>r});var i=e(74277);class r extends i.R{constructor(...t){super(...t),this.isPackagedElectricVehicle=()=>this.readonlyProps.subscriptionUI.isPackagedElectricVehicle(),this.isSubscriptionRunning=()=>{let{startDate:t,terminationDate:s}=this.readonlyProps.subscriptionUI.getRequiredSubscriptionPropsUI(),e=this.readonlyProps.dateRepository,i=e.getNowDate(),r=e.isAfter(i,t),a=null!==s&&e.isAfter(i,s);return r&&!a},this.getRemainingPercent=()=>this.hasConsumption()?Math.max(Math.min(this.getRequiredConsumption().remainingKwh/this.getRequiredConsumption().totalKwh*100,100),0):0,this.isFailedRefresh=()=>this.hasConsumption()&&this.getRequiredConsumption().outdatedValue,this.noUsageRemaining=()=>!!this.hasConsumption()&&this.getRequiredConsumption().usedKwh>=this.getRequiredConsumption().totalKwh,this.isLoading=()=>this.readonlyProps.subscriptionUI.getProps().isConsumptionLoading,this.hasError=()=>!this.isLoading()&&this.readonlyProps.subscriptionUI.getProps().hasConsumptionError,this.hasConsumption=()=>!this.isLoading()&&null!==this.readonlyProps.subscriptionUI.getRequiredSubscriptionPropsUI().packageUsage,this.forceReload=()=>{this.readonlyProps.subscriptionUI.fetchConsumption(!0)},this.learnMoreAboutUsage=()=>{this.updatePartial({learnMoreUsage:!0})},this.stopLearningMore=()=>{this.updatePartial({learnMoreUsage:!1})},this.isLastUpdateOlderThanOneHour=()=>{let t=this.getRequiredLastUpdate(),s=this.readonlyProps.dateRepository.plusHours(t,1),e=this.readonlyProps.dateRepository.getNowDate();return this.readonlyProps.dateRepository.isBefore(s,e)},this.isLearningMoreAboutUsage=()=>this.getProps().learnMoreUsage,this.displayable=()=>({title:this.translate("account-subscriptions:subscription.ev.consumption.electricCharging"),month:this.hasConsumption()?this.translate("account-subscriptions:subscription.ev.consumption.month").replace("{month}",this.readonlyProps.dateRepository.formatDateIntl(this.getRequiredConsumption().from,{month:"long",year:"numeric"})):"",lastUpdated:this.hasConsumption()?this.translate("account-subscriptions:subscription.ev.consumption.lastUpdated").replace("{date}",this.readonlyProps.dateRepository.formatDateIntl(this.getRequiredLastUpdate(),{dateStyle:"short",timeStyle:"short"})):"",usage:this.hasConsumption()?this.translate("account-subscriptions:subscription.ev.consumption.usage").replace("{remainingKwh}",this.getRequiredConsumption().remainingKwh.toString()).replace("{packagedKwh}",this.getRequiredConsumption().totalKwh.toString()):"",fullyUsed:{title:this.translate("account-subscriptions:subscription.ev.consumption.fullyUsed.title"),description:this.translate("account-subscriptions:subscription.ev.consumption.fullyUsed.description"),learnMore:this.translate("common:moreInfo"),dialog:{title:this.translate("account-subscriptions:subscription.ev.consumption.fullyUsed.dialog.title"),close:this.translate("common:close"),description:[this.translate("account-subscriptions:subscription.ev.consumption.fullyUsed.dialog.description.1"),this.translate("account-subscriptions:subscription.ev.consumption.fullyUsed.dialog.description.2")]}},lastUpdateFailed:this.translate("account-subscriptions:subscription.ev.consumption.lastUpdateFailed")}),this.getRequiredConsumption=()=>(0,i.G)(()=>this.readonlyProps.subscriptionUI.getRequiredSubscriptionPropsUI().packageUsage,"No consumption"),this.getRequiredLastUpdate=()=>(0,i.G)(()=>this.getRequiredConsumption().lastUpdated,"Was never updated"),this.translate=t=>this.readonlyProps.translationRepository.translateFn(t)}}r.load=t=>new r({learnMoreUsage:!1},t)},95158:(t,s,e)=>{e.d(s,{C:()=>o});var i=e(25917);e(1455),e(64285),e(10989);var r=e(81307);e(12412),e(31531),e(95547),e(2626),e(14639),e(74535),e(68772),e(25712),e(60582),e(89650),e(74782);var a=e(39957);class o extends i.R0{constructor(...t){super(...t),this.displayAssetInformation=()=>
1{this.updatePartial({hasAssetInformationDisplayed:!0}),this.readonlyProps.accountOrderTrackerRepository.eventOrderMoreDetails(),this.displayStep(r.f.AssetInformation),this.hasAsset()||this.requestAsset()},this.hideAssetInformation=()=>this.updatePartial({hasAssetInformationDisplayed:!1}),this.displayOpeningHoursDetail=()=>this.displayStep(r.f.OpeningHoursDetail),this.displayAssetAccessGuide=()=>this.displayStep(r.f.AssetAccessGuide),this.isLoadingAsset=()=>this.getProps().isLoadingAsset,this.shouldDisplayAssetError=()=>this.getProps().hasLoadingAssetError,this.shouldDisplayAssetInformation=()=>this.getProps().orderAssetInformationStep===r.f.AssetInformation,this.shouldDisplayOpeningHoursDetail=()=>this.getProps().orderAssetInformationStep===r.f.OpeningHoursDetail,this.shouldDisplayAssetAccessGuide=()=>this.getProps().orderAssetInformationStep===r.f.AssetAccessGuide,this.hasAsset=()=>!!this.getProps().asset,this.getRequiredAsset=()=>(0,i.Gp)(()=>this.getProps().asset,"Asset should be defined."),this.hasAdditionalInfo=()=>!!this.getRequiredAsset().details.additionalInfo,this.getRequiredAdditionalInfo=()=>(0,i.Gp)(()=>this.getRequiredAsset().details.additionalInfo,"AdditionalInfo should be defined."),this.getStepTitle=()=>{if(this.shouldDisplayAssetInformation())return this.displayable().assetInformation;if(this.shouldDisplayOpeningHoursDetail())return this.displayable().openingHours.schedules;if(this.shouldDisplayAssetAccessGuide())return this.displayable().accessGuide;throw Error("step title not mapped.")},this.hasSpecificOpeningHours=()=>!(1===this.getRequiredAsset().details.openingHours.length&&(0,i.aH)(this.getRequiredAsset().details.openingHours).alwaysOpen),this.hasAmenities=()=>!!this.getRequiredAsset().summary.amenities,this.getDisplayableAmenities=()=>this.getRequiredAsset().summary.amenities.map(t=>({label:this.translate(n[t]),type:t})),this.getCarParkPath=()=>a.N_.CARPARK.PATH.replace("{assetId}",String(this.getRequiredAsset().summary.id)).replace("{assetName}",this.getRequiredAsset().summary.assetName),this.getDisplayableMaxHeight=()=>"".concat(this.getRequiredAsset().summary.maxHeightInMeters,"m"),this.displayable=()=>({assetInformation:this.translate("account-orders:asset.information"),loading:this.translate("common:loading.dotted"),genericError:this.translate("common:error.500"),openingHours:{schedules:this.translate("account-orders:asset.schedules"),alwaysOpen:this.translate("account-orders:asset.schedules.alwaysOpen"),seeDetail:this.translate("account-orders:asset.schedules.seeDetail")},accessGuide:this.translate("account-orders:asset.accessGuide"),moreInfo:this.translate("common:moreInfo"),maxHeight:this.translate("account-orders:asset.maxHeight"),amenities:this.translate("account-orders:asset.availableAmenities"),back:this.translate("common:back")}),this.requestAsset=async()=>(this.updatePartial({isLoadingAsset:!0,hasLoadingAssetError:!1}),this.readonlyProps.assetRepository.fetchAsset(this.readonlyProps.subscriptionUI.getRequiredSubscriptionPropsUI().assetSummary.id).then(t=>{if((0,i.kT)(t)||!t)throw Error();this.updatePartial({asset:t})}).catch(()=>this.updatePartial({hasLoadingAssetError:!0})).finally(()=>this.updatePartial({isLoadingAsset:!1}))),this.displayStep=t=>this.updatePartial({orderAssetInformationStep:t}),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}o.load=t=>new o({asset:null,hasAssetInformationDisplayed:!1,isLoadingAsset:!1,hasLoadingAssetError:!1,orderAssetInformationStep:r.f.AssetInformation},t);let n={DISABLED_ACCESS:"account-orders:asset.amenity.disabledAccess",BICYCLE_RENTAL:"account-orders:asset.amenity.bicycleRental",CAR_RENTAL:"account-orders:asset.amenity.carRental",VEHICLE_SERVICING:"account-orders:asset.amenity.carRepair",CAR_WASH:"account-orders:asset.amenity.carWash",EV_CHARGING:"account-orders:asset.amenity.evCharging",FAMILY:"account-orders:asset.amenity.family",GAS_STATION:"account-orders:asset.amenity.gasStation",MOTO_HELMETS:"account-orders:asset.amenity.motoHelmets",SCOOTER_RENTAL:"account-orders:asset.amenity.scooterRental",SECURITY_CAMERAS:"account-orders:asset.amenity.securityCameras",TOILETS:"account-orders:asset.amenity.toilets",TYRE_INFLATION:"account-orders:asset.amenity.tyreInflation",UMBRELLAS:"account-orders:asset.amenity.umbrellas",WIFI:"account-orders:asset.amenity.wifi"}},95621:(t,s,e)=>{e.d(s,{G:()=>r});var i=e(39957);
1class r{constructor(t){this.readonlyProps=t,this.getDisplayableSubscriptionType=()=>{let t=this.getSubscriptionUI(),s=t.getRequiredSubscriptionPropsUI().productName;return t.isElectricVehicle()?s:"".concat(t.getDisplayableSubscriptionType()," ").concat(s)},this.isElectricVehicle=()=>this.getSubscriptionUI().isElectricVehicle(),this.isStopped=()=>this.getSubscriptionUI().isStopped(),this.hasRight=()=>null!==this.getSubscriptionUI().getRequiredSubscriptionPropsUI().rightName,this.getDisplayableCommittedSinceDate=()=>this.getSubscriptionUI().getDisplayableCommittedSinceDate(),this.getDisplayableRightName=()=>{var t;return null!=(t=this.getSubscriptionUI().getRequiredSubscriptionPropsUI().rightName)?t:null},this.getDisplayableEVCountry=()=>this.getSubscriptionUI().getRequiredDisplayableEVCountryName(),this.goToRights=()=>this.getSubscriptionUI().readonlyProps.goTo(i.N_.ACCOUNT_RIGHTS.PATH),this.displayable=()=>({title:this.translate("account-subscriptions:subscription.information.subscription"),productType:this.translate("account-subscriptions:subscription.information.productType"),tariff:this.translate("account-subscriptions:subscription.information.tariff"),startDate:this.translate("account-subscriptions:subscription.information.activeSince"),country:this.translate("countries:country")}),this.getSubscriptionUI=()=>this.readonlyProps.subscriptionUI,this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}r.load=t=>new r(t)},96715:(t,s,e)=>{e.d(s,{g:()=>i});class i{constructor(t){this.readonlyProps=t,this.getDisplayableDetailTitle=()=>{if(this.readonlyProps.subscriptionUI.getProps().isLoading||this.readonlyProps.subscriptionUI.getProps().showError)return"";let t=this.readonlyProps.subscriptionUI,s=t.getRequiredSubscriptionPropsUI().productName;return t.isElectricVehicle()?s:"".concat(t.getDisplayableSubscriptionType()," ").concat(s)},this.displayable=()=>({pageTitle:this.translate("account-subscriptions:subscription.list.page.title"),purchase:this.translate("account-orders:section.purchase"),genericError:this.translate("common:error.500")}),this.translate=(t,s)=>this.readonlyProps.translationRepository.translateFn(t,s)}}i.load=t=>(t.accountSubscriptionTrackerRepository.pageSubscriptionDetails(),new i(t))}}]);
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.