PageSourceSearch

https://www.renault.com.tr/client/renault-async-rci-financing-d881577943283f75.js

js renault.com.tr collected 2026-10-01 13:00:14 UTC 61,709 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunkOne=self.rspackChunkOne||[]).push([[41473],{71928(e,t,r){var n,a=((n={}).LARGE="large",n.MEDIUM="medium",n.SMALL="small",n.XLARGE="xlarge",n);r.d(t,{W:()=>a},{v:(e,t=!1)=>t})},12347(e,t,r){var n,a,i,o,s,l,u,d,c,m,f,h,g=((n={}).CATEGORY="category",n.CONFIG_VEHICLE="config_vehicle",n.DEALER_SERVICES="dealer_services",n.GLOSSARY_NOTES="glossary_notes",n.ONLINE_QUOTE="online_quote",n.PARTS_ACCESSORIES="parts_accessories",n.PRIORITY_PASS="priority_pass",n.SERVICE="service",n.SERVICE_CONTRACT_PRICES="service_contract_prices",n.TYRE="tyre",n.VEHICLE="vehicle",n.VEHICLE_NCI="vehicle_nci",n.VEHICLE_NCP="vehicle_ncp",n.VEHICLE_RSTOCK="vehicle_rstock",n.VEHICLE_UCI="vehicle_uci",n),p=((a={}).ANIMATION_LOWERCASE="animation",a.PICTURE="PICTURE",a.PICTURE_LOWERCASE="picture",a.VIDEO_LOWERCASE="video",a.YOUTUBE_LOWERCASE="youtube",a),y=((i={}).EXTERNAL="EXTERNAL",i.INTERNAL="INTERNAL",i),v=((o={}).DISCOUNT_ONLINE_QUOPTE="discountOnlineQuote",o.DISCOUNT_OVERALL="discountOverall",o),w=((s={}).BONMAL="BONMAL",s.CUMULATED_TRADE_IN_BONUS="CUMULATED_TRADE_IN_BONUS_AMOUNT",s.DEALER_TRADE_IN_BONUS="DEALER_TRADE_IN_BONUS",s.EEC_BONUS="EEC_BONUS",s.MINIMUM_MOUNTED_PRICE="MINIMUM_MOUNTED_PRICE",s.PREPARATION_FEES="PREPARATION_FEES",s.PiVG="PiVG",s.TAXMASS="TAXMASS",s),E=((l={}).OFFERED_PRODUCT="OFFERED_PRODUCT",l.PURCHASED_PRODUCT="PURCHASED_PRODUCT",l),C=((u={}).ADDITIONAL="ADDITIONAL",u.CROSSSELL="CROSSSELL",u.UPSELL="UPSELL",u.VEHICLE="VEHICLE",u),P=((d={}).CONFIG_URI="CONFIG_URI",d.DEALER="DEALER",d.PERSON="PERSON",d.PRODUCT="PRODUCT",d),I=((c={}).AMOUNT="AMOUNT",c.RATE="RATE",c),T=((m={}).DEL_CHARGE="DEL CHARGE",m.FRF="FRF",m.IA="IA",m.VAT="VAT",m.VED="VED",m),S=((f={}).MONTHLY="MONTHLY",f.ONE_TIME="ONE_TIME",f),O=((h={}).HOW_TO="HOW_TO",h.MAIN="MAIN",h.MARKETING="MARKETING",h.NEXT_STEPS="NEXT_STEPS",h.OPTIONAL="OPTIONAL",h.SHORT_DESCRIPTION="SHORT",h.VEHICLE_MODEL="VEHICLE_MODEL",h);r.d(t,{$z:()=>g,Fe:()=>E,PW:()=>p,UB:()=>v,Zl:()=>T,k8:()=>w,ls:()=>S,mZ:()=>O,nS:()=>P,pd:()=>I,s8:()=>y,zZ:()=>C})},57625(e,t,r){var n,a=r(12347),i=((n={}).DEALER="dealer",n.SUBSIDIARY="subsidiary",n);function o(e){return!!e?.productType&&[a.$z.VEHICLE_NCI,a.$z.VEHICLE_NCP].includes(e.productType)}function s(e){return!!e&&o(e.originalData)}r.d(t,{CO:()=>i,OU:()=>o,mT:()=>s})},47219(e,t,r){var n=r(12347);function a(e){return!!e&&e.productType===n.$z.VEHICLE}function i(e){return!!e&&a(e.originalData)}r.d(t,{Y$:()=>i,qH:()=>a})},67324(e,t,r){var n,a=r(12347),i=((n={}).CARPASS="CARPASS",n.DIGITAL_CERTIFICATE="DIGITAL_CERTIFICATE",n);function o(e){return!!e&&e?.productType===a.$z.VEHICLE_UCI}function s(e){return!!e&&o(e.originalData)}r.d(t,{Vm:()=>i,ni:()=>o,rU:()=>s})},51468(e,t,r){r.r(t),r.d(t,{default:()=>B});var n=r(91987),a=r(71763),i=r(20496),o=r(97500),s=r.n(o),l=r(53282),u=r.n(l),d=r(77951),c=r.n(d),m=r(58518),f=r.n(m),h=r(71928),g=r(47702),p=r(83680),y=r(32464),v=r(78948),w=r(86111),E=r(11257),C=r(67364),P=r(84759),I=r(96700),T=r(40712),S=r(16777),O=r(57592),D=r(42488),b=r(54019),R=r(81766),M=r(24453),_=r(40848);function A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let L={},N=new Map,H=e=>{let t=!1;return()=>{t||(t=!0,e.call())}},x=new Map([["ONE_NCI","NCI"],["ONE_NCI_COMMAND","NCI"],["RVP","RVP"],["RVP_COMMAND","RVP"],["ONE_UCI","UCI"],["ONE_UCI_COMMAND","UCI"],["ONE_HMC","HMC"]]),U="fin-simulator-container",F={updateLastSimulation:_.$},k=(0,i.Ng)(({page:{data:e},app:t,vehicleInventory:r},{enabled:n,forceContext:a,isSocialLeasing:i})=>({isBrowserEngine:t.isBrowserEngine||!1,isEnabled:(void 0!==n?n:e?.financeParams?.enabled)??!0,siteParams:e.siteParams||{},financeParams:e?.financeParams,priceParams:e?.priceParams,productParams:e?.productParams,context:{modelAdminId:a?.modelAdminId||(e?.productParams?.data?.model&&"adminId"in e.productParams.data.model?e?.productParams?.data?.model?.adminId:e?.modelParams?.modelAdminId),uri:a?.uri||e?.configSummaryParams?.details?.uri,configuratorCode:a?.configuratorCode||e?.configSummaryParams?.saveCode},jsProxyUrl:e?.transverseParams?.finance?.jsProxyUrl||"",isPro:e?.professionalParams?.isPro||e?.modelParams?.model?.isPro,isSocialLeasing:i??e?.modelParams?.model?.isSocialLeasing,tradeInQuotation:r?.tradeInQuotation,leadUrls:e.transverseParams?.finance?.leadUrls}),F),V={global:{},offerParams:{},offers:void 0,error:void 0,isModalActive:!1,isLoaderVisible:!1,simulatorFailed:!1,simulatorStateClass:"",financeSettings:{},modalHandler:null,offersCache:void 0,message:""};class $ extends a.PureComponent{getProxyParams(){let{vehicleProxyParams:e={},isEnabled:t,isMultiple:r,criterias:n,siteParams:a,tradeInQuotation:i={},dealer:o,context:s,leadUrls:l}=this.props,{financeSettings:u}=this.state;if(!t)return{};let d={tradeInDate:i.quotation?.quotationValidity,tradeInValueInfo:i.quotation?.quotationPrice,tradeInVehBrand:i.formState?.vehicleVersion?.brand,tradeInVehKm:i.formState?.mileage,tradeInVehModelC:i.formState?.vehicleVersion?.model,tradeInVehRegistrationNumber:i.formState?.registration,tradeInVehVersionC:i.formState?.vehicleVersion?.version},{configPp:c}=l||{},{brand:m,country:f,language:g}=a,p=o&&x.has(o)?x.get(o):"BRANDSITE",y=(0,S.yb)({...u.proxySettings,...d,...s,country:f,brand:m,lang:g,store:p}),v={};return(0,h.v)(e,r)?Object.keys(e||{}
1).forEach(t=>{let r=e?.[t];r&&t&&(v[t]={criterias:n,...r,requestId:t,...y})}):v=e?{single:{criterias:n,...e,...y,leadPPConfig:!!c}}:{},v}getProxyPromise(){return this.proxyPromise}setupProxyInstance(){let{offersCache:e,offers:t}=this.state,{isMultiple:r,openSimulatorInline:n,jsProxyUrl:a,batteryOfferMode:i}=this.props,o=this.getProxyParams(),s=Object.keys(o);if(!s||!s[0])return;t||e?this.setState({offers:void 0,offersCache:void 0,error:void 0}):this.setState({error:void 0});let{promise:l,cancel:u}=(0,w.A)(new Promise(e=>{(0,C.qh)(O.HE,[C.Cu,a]).then(()=>{let t=new RCIProxy(o[s[0]],s[0]);t.addListener(R.Jv,()=>{r&&s.slice(1).forEach(e=>{t.setProxyParams(o[e],e)}),e(t)})}).catch(e=>{this.setState({error:{code:0,message:e?.error?.message}})})}));l.then(e=>{let t=[],a=0,o=0;r?s.forEach(e=>{t.push({evt:`${R.T0}-${e}`,handler:()=>this.renderCompletedHandler(e)},{evt:`${R.AO}-${e}`,handler:()=>this.simulatorCloseHandler(e)},{evt:`${R.ct}-${e}`,handler:()=>this.simulatorCloseHandler(e)},{evt:`${R.gK}-${e}`,handler:()=>this.simulatorSimulateButtonHandler(e)},{evt:`${R._M}-${e}`,handler:()=>this.simulatorBudgetViewReadyHandler()},{evt:`${R.RQ}-${e}`,handler:()=>this.printOfferFromSimulator(e)},{evt:`${R.DD}-${e}`,handler:()=>this.simulatorNavigationHandler()},{evt:`${R.JC}-${e}`,handler:()=>this.finalOfferHandler()},{evt:`${R.vJ}-${e}`,handler:()=>this.simulatorRpiButtonHandler()},{evt:`${R.MZ}-${e}`,handler:()=>this.simulatorRpiReturnHandler()},{evt:`${R.CV}-${e}`,handler:()=>this.simulatorRpiPrintPdfHandler()},{evt:`${R.wx}-${e}`,handler:()=>$.simulatorCloseButtonHandler()})}):t=[{evt:R.T0,handler:()=>this.renderCompletedHandler()},{evt:R.J1,handler:()=>this.simulatorOfferInteraction()},{evt:R.AO,handler:()=>this.simulatorCloseHandler()},{evt:R.ct,handler:()=>this.simulatorCloseHandler()},{evt:R.gK,handler:()=>this.simulatorSimulateButtonHandler()},{evt:R._M,handler:()=>this.simulatorBudgetViewReadyHandler()},{evt:R.RQ,handler:()=>this.printOfferFromSimulator()},{evt:R.DD,handler:()=>this.simulatorNavigationHandler()},{evt:R.JC,handler:()=>this.finalOfferHandler()},{evt:R.vJ,handler:()=>this.simulatorRpiButtonHandler()},{evt:R.MZ,handler:()=>this.simulatorRpiReturnHandler()},{evt:R.CV,handler:()=>this.simulatorRpiPrintPdfHandler()},{evt:R.wx,handler:()=>$.simulatorCloseButtonHandler()},{evt:R.kQ,handler:()=>this.sendLead()},...this.documentLevelProxyEvents],t.forEach(({evt:t,handler:r,documentLevel:n=!1})=>n?document.addEventListener(t,r):e.addListener(t,r));let l=()=>{o&&.02>Math.random()&&(0,v.d)({event:"jsProxyCall",nbCars:a,duration:Math.floor(performance.now()-o)}),this.simulatorOfferReloadHandler(e,r?s:[s[0]],i)};e.addListener(R.I5,n?l:H(l)),n?this.initSimulator():i?(e.addListener(R.M8,H(l)),e.calculateBatteryOffer()):(o=performance.now(),a=r?s.length:1,e.calculateFinancialOffer())},e=>{if(!e.isCanceled)throw e}),this.proxyPromise=l,this.cancelPromise=u}simulatorOfferReloadHandler(e,t,r){let{isMultiple:n,cacheOffers:a,openSimulatorInline:i,handleOffer:o}=this.props;if(n&&t.length>0){let r={},{offersCache:n}=this.state;t.forEach(t=>{r[t]=this.getOfferParams(e,t)}),a&&(n={...n,...r}),this.setState({offers:r,isModalActive:!1,modalHandler:null,offersCache:n},()=>{o?.(r,this.showSimulatorModal),e.isSimulatorExist()&&!i&&e.destroySimulator(),!e.isSimulatorExist()&&i&&this.initSimulator()})}else{let[a]=t,s=this.getOfferParams(e,a,r);this.simulatorOfferInteraction(a),this.setState({offerParams:s,isModalActive:!1,modalHandler:null},()=>{i&&!n&&this.updateLastSimulationHandler(a),o?.(s,this.showSimulatorModal),this.currentSaveOfferResolver&&(this.currentSaveOfferResolver(),this.currentSaveOfferResolver=void 0),e.isSimulatorExist()&&!i&&e.destroySimulator(),!e.isSimulatorExist()&&i&&this.initSimulator(a)})}}getOfferParams(e,t,r){let{isMultiple:n,siteParams:a}=this.props,i=n?e.getActiveSimulatorParams(t):e.getActiveSimulatorParams(),o=i?.context?.simulator,s="RVP"===a.product?null:"default",l=r?e.getBatteryOffer("custom")||e.getBatteryOffer("default"):e.getFinancialOffer("custom",t)||e.getFinancialOffer(s,t),u=l.getErrorCode(),d=e.getTeachingSentenceGlobal()||"",c=e.getDisplayType()||"",m=e.getModalRatesTitle()||"";if(null===u){let r=e.getDetailedOffer("defaultOffer",t),{simulatorHeader:n}=r||{},a=n?.componentsList?.[0]?.label?`${n?.componentsList?.[0]?.label} ${n?.componentsList?.[0]?.value}
1`:n?.componentsList?.[0]?.value;if(e&&"function"==typeof e.getSimulatorLastConfiguration)try{let t=e.getSimulatorLastConfiguration(),r=t?.simulator?.message?.message;this.setState(e=>({...e,message:r}))}catch(e){}return{global:{teachingSentence:d,displayType:c,modalRatesTitle:m},offerKey:t,monthlyPayment:a,numMonthlyPayment:l.getMonthlyPayment(),productTypeIntegrator:l.getProductTypeIntegrator(),productType:l.getProductType(),acceptanceConditions:l.getAcceptanceConditions(),offerTeachingSentence:l.getTeachingSentence(),offerTeachingSentenceMultiple:l.getTeachingSentenceMultiple(),offerRepresentativeExample:l.getRepresentativeExample(),offerRepresentativeExampleRate:l.getRepresentativeExampleRate(),numTeg:l.getTeg(),shortOfferBody:l.getShortOfferBody(),defaultOfferTexts:{h1:l.getDetailedOfferH1(),h2:l.getDetailedOfferH2(),legalText:l.getDetailedOfferLegalText(),text:l.getDetailedOfferText()},offerSummary:r,reload:{...f()(o,"price")}}}let h=l.getErrorDisplayMessage();return this.setState({error:{code:u,message:h}}),L}removeDocumentLevelEventListeners(){this.documentLevelProxyEvents.forEach(({evt:e,handler:t})=>document.removeEventListener(e,t))}destroy(e){this.mounted=!1,this.cancelPromise&&this.cancelPromise(),e&&this.simulatorCloseHandler(),this.removeDocumentLevelEventListeners()}componentDidMount(){let{isBrowserEngine:e,isMultiple:t,shouldHandleOfferIdTransit:r}=this.props;this.mounted=!0,e&&this.setupProxyInstance(),r&&(0,E.B1)(b.s,this.emitOfferIdHandler),this.instanceUUID=crypto.randomUUID?crypto.randomUUID():function(e,t,r){let n=(e=e||{}).random??e.rng?.()??(0,I.A)();if(n.length<16)throw Error("Random bytes length must be >= 16");if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){if((r=r||0)<0||r+16>t.length)throw RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[r+e]=n[e];return t}return(0,T.k)(n)}(void 0,void 0,void 0),N.set(this.instanceUUID,{isMultiple:t||!1,refresh:this.refresh,upToDate:!0})}componentDidUpdate(e){let{isBrowserEngine:t,isEnabled:r,vehicleProxyParams:n,tradeInQuotation:a}=this.props;(!e.isEnabled&&r||!e.isBrowserEngine&&t||t&&!c()(e.vehicleProxyParams,n)||t&&!c()(e.tradeInQuotation,a))&&this.setupProxyInstance()}componentWillUnmount(){let{shouldHandleOfferIdTransit:e}=this.props,{isModalActive:t}=this.state;this.destroy(t),this.instanceUUID&&N.delete(this.instanceUUID),e&&(0,E.al)(b.s,this.emitOfferIdHandler)}getChildrenFromProps(e){let{children:t,vehicleProxyParams:r,isEnabled:n,isMultiple:a,renderWhenWaitingOffer:i,cacheOffers:o,siteParams:s}=this.props,{error:l,offers:d,financeSettings:c,offersCache:m,offerParams:f,message:h=""}=this.state,g=o?m:d,p=f||L,y=a?!!(u()(d)&&!l&&n):!!(u()(p)&&!l&&n);return!i&&(!t||!r||!c||a&&u()(d))?null:t?t({error:l,isRvp:"RVP"===s.product,offers:g,financeSettings:c,showSimulatorModalHandler:this.showSimulatorModal,simulator:e,triggerSaveOffer:async()=>{let e=await this.getProxyPromise();e&&e.saveFinancialOffer()},offer:p,message:h,isLoadingOffer:y}):null}render(){let{isModalActive:e,isLoaderVisible:t,simulatorStateClass:r}=this.state,{openSimulatorInline:i}=this.props,o=(0,n.jsxs)("div",{className:s()("RCIFinancing__simulator",r,{"is-inline":i}),children:[t&&(0,n.jsx)(p.l,{variant:"absolute",size:"xsmall"}),(0,n.jsx)("div",{id:`${U}`,className:"RCIFinancing__simulatorInner"})]}),l=this.getChildrenFromProps(o),{modalHandler:u}=this.state;return(0,n.jsxs)(a.Fragment,{children:[l,e&&!i&&(0,n.jsx)(g.lG,{onClose:u,size:"large",variant:"wrapper",children:(0,n.jsx)(g.Cf,{children:o})})]})}constructor(e){super(e),A(this,"instanceUUID",void 0),A(this,"proxyPromise",void 0),A(this,"cancelPromise",void 0),A(this,"currentAutoSaveResolver",void 0),A(this,"currentSaveOfferResolver",void 0),A(this,"mounted",void 0),A(this,"documentLevelProxyEvents",void 0),A(this,"lastOfferInteraction",void 0),A(this,"simulatorOfferInteraction",async e=>{let{productParams:t,trackInteractions:r=!1}=this.props,n=t?.data;if(r&&n){let{name:t}=(0,M.JE)(n),r=await this.getProxyPromise();if(!r)return;let a=r.getFinancialOffer("custom",e),i={event:"financeInteraction",interactionType:"simulator-apply",toolName:"finance-calculator",downpayment:a.getDownpayment(),monthlyInstallments:a.getMonthlyPayment(),insurance:a.getListOfInsuranceCodes(),tenure:a.getDuration(),financeCustomerType:a.getCustomerType(),productType:a.getProductType(),financeMileage:a.getMileage(),financeBuyBack:a.getBuyback(),vehicleModel:t};this.lastOfferInteraction&&!c()(i,this.lastOfferInteraction)&&(0,v.d)(i),this.lastOfferInteraction=i}}),A(this,"simulatorSimulateButtonHandler",async e=>{try{this.setState({isLoaderVisible:!0,simulatorStateClass:""});let t=await this.getProxyPromise();if(!t)return;let r=t.getFinancialOffer("default",e),n=(r.getCustomerType()||"").toUpperCase(),a=this.getClientType(n),{vehicleProxyParams:i={},isMultiple:o}=this.props;(0,v.d)({toolName:"finance-calculator",interactionType:"simulator-validate",vehicleModel:(0,h.v)(i,o)&&e?i[e].modelC:i.modelC,downpayment:r.getDownpayment(),monthlyInstallments:r.getMonthlyPayment(),financeCustomerType:a,productType:r.getProductType(),event:"financeInteraction"})}catch(e){console.error("simulatorSimulateButtonHandler",e)}}),A(this,"updateLastSimulationHandler",async e=>{let{storageParams:t,siteParams:r,updateLastSimulation:n}=this.props,a=await this.getProxyPromise();if(a)try{let i=this.getOfferParams(a,e);if(t){let{key:e,detail:o}=t,{product:s}=r,{lead:l}=a.getFinancialDataForRLead()||{};n({...i,product:s,key:e,detail:o,data:{rlead:l}})}}catch(e){console.error("updateLastSimulationHandler",e)}}),A(this,"simulatorCloseHandler",async e=>{let{isMultiple:t,openSimulatorInline:r,vehicleProxyParams:n={},handleClose:a,handleOffer:i}=this.props,o=await this.getProxyPromise();if(!o)return;let s=this.getOfferParams(o,e),l=o.getFinancialOffer("default",e);try{(0,v.d)({toolName:"finance-calculator",inventoryId:(0,h.v)(n,t)&&e?n[e].vhid:n.vhid,interactionType:"simulator-apply",vehicleModel:(0,h.v)(n,t)&&e?n[e].modelC:n.modelC,downpayment:l.getDownpayment(),monthlyInstallments:l.getMonthlyPayment(),insurance:l.getListOfInsuranceCodes(),tenure:l.getDuration(),financeCustomerType:l.getCustomerType(),productType:l.getProductType(),financeMileage:l.getMileage(),financeBuyBack:l.getBuyback(),rateType:l.getTypeRate(),event:"financeInteraction"}),this.mounted&&(t?(this.setState(t=>({offers:{...t.offers,[e||""]:{...s}},isModalActive:!1}),()=>{i?.(s,this.showSimulatorModal),o.isSimulatorExist()&&!r&&o.destroySimulator()}),o.destroySimulator(e)):this.setState({offerParams:s,isModalActive:!1},()=>{o.isSimulatorExist()&&(this.updateLastSimulationHandler(e),i?.(s,this.showSimulatorModal),this.currentSaveOfferResolver&&(this.currentSaveOfferResolver(),this.currentSaveOfferResolver=void 0),o.destroySimulator())}))}catch(e){console.error("simulatorCloseHandler",e)}
1a?.(),N.forEach((e,t)=>{(t!==this?.instanceUUID||e.isMultiple)&&e.refresh()})}),A(this,"renderCompletedHandler",async e=>{try{let t=await this.getProxyPromise();if(!t)return;let r=t.getFinancialOffer("default",e);this.setState({isLoaderVisible:!1,simulatorStateClass:"is-ready",simulatorFailed:!!r.getErrorCode()})}catch(e){console.error("renderCompletedHandler",e)}}),A(this,"initSimulator",async e=>{let{isMultiple:t,openSimulatorInline:r}=this.props,n=await this.getProxyPromise();if(!n)return;let a=this.getProxyParams(),i=Object.keys(a);if(a&&i[0]){n.setProxyParams(t&&void 0!==e?a[e]:a[i[0]]);try{let a=t?e:null;n.createSimulator(`#${U}`,"financial","custom",a);let i=t&&e?`${R.T0}-${e}`:R.T0;n.addListener(i,()=>{!n.isSimulatorExist()&&r?this.destroy(!0):this.setState({modalHandler:()=>this.simulatorCloseHandler(e)})})}catch(e){console.error("initSimulator",e)}}}),A(this,"showSimulatorModal",e=>{this.mounted&&this.setState({isModalActive:!0,isLoaderVisible:!0,simulatorStateClass:""},()=>{this.initSimulator(e)})}),A(this,"getClientType",e=>({G:"Pgr"})[e]||e),A(this,"simulatorNavigationHandler",async()=>{try{let e=await this.getProxyPromise();if(!e)return;let t=e.getFinancialOffer("default"),r=(t.getCustomerType()||"").toUpperCase(),n=this.getClientType(r),a=e.getFinancialOffers(),i=(0,y.Hj)(a).find(e=>!!e.selected);(0,v.d)({toolName:"finance-calculator",downpayment:t.getDownpayment(),monthlyInstallments:t.getMonthlyPayment(),toggleType:"finance",toggleValue:i?.label,financeCustomerType:n,productType:i?.productType,event:"toggle"})}catch(e){console.error("simulatorNavigationHandler",e)}}),A(this,"simulatorBudgetViewReadyHandler",()=>{this.mounted&&this.setState({isLoaderVisible:!1,simulatorStateClass:"is-budget"})}),A(this,"printOfferFromSimulator",async e=>{try{let t=await this.getProxyPromise(),{vehicleProxyParams:r={},isMultiple:n}=this.props;if(!t)return;let a=t.getFinancialOffer("default",e),i=(a.getCustomerType()||"").toUpperCase(),o=this.getClientType(i);(0,v.d)({toolName:"finance-calculator",inventoryId:e&&(0,h.v)(r,n)?r[e].vhid:r.vhid,interactionType:"simulator-d
1ownload",vehicleModel:e&&(0,h.v)(r,n)?r[e].modelC:r.modelC,downpayment:a.getDownpayment(),monthlyInstallments:a.getMonthlyPayment(),insurance:a.getListOfInsuranceCodes(),tenure:a.getDuration(),financeCustomerType:o,productType:a.getProductType(),financeMileage:a.getMileage(),financeBuyBack:a.getBuyback(),rateType:a.getTypeRate(),event:"financeInteraction"})}catch(e){console.error("printOfferFromSimulator",e)}}),A(this,"finalOfferHandler",async()=>{if(this.currentAutoSaveResolver){let e=await this.getProxyPromise();if(!e)return;let t=e.getFinancialOffer("Custom").getOfferId();this.currentAutoSaveResolver(t)}}),A(this,"simulatorRpiButtonHandler",()=>{let{productParams:e,currentFunnel:t,customEventHandler:r,vehicleProxyParams:n={}}=this.props,{modelC:a,idVehicle:i,versionC:o}=n;if(r&&r(!1),t){let r=e?.data;if(r){let e=(0,M.JE)(r);(0,v.d)({event:"addToCart",cart:t,vehicleModel:a,vehicleVersion:o,vehicleId:i,products:[e]})}}(0,v.d)({event:"virtualPageview",virtualPageName:"rci|funnel_introduction",vehicleId:i,vehicleModel:a})}),A(this,"sendLead",async()=>{let{storageParams:e,siteParams:t,updateLastSimulation:r,leadUrls:n,context:a}=this.props,{configPp:i}=n||{};if(i)try{let{product:n}=t,{modelAdminId:o,configuratorCode:s}=a||{},{key:l,detail:u}=e,d=await this.getProxyPromise();if(!d)return;let{lead:c}=d.getFinancialDataForRLead()||{},m=this.getOfferParams(d);r({...m,product:n,key:l,detail:u,data:{rlead:c}}),(0,D.bw)((0,P.sB)(i,{modelAdminId:o,modelURI:u.uri,saveCode:s}))}catch(e){console.error("sendLead",e)}}),A(this,"simulatorRpiReturnHandler",()=>{let{productParams:e,customEventHandler:t}=this.props,r=e?.data;if(!r)return;let{name:n,id:a}=(0,M.JE)(r);t&&t(!0),(0,v.d)({event:"navigationClick",buttonText:"simulator-return",destination:`${window.location.pathname}${window.location.search}`,locationInPage:`back-button-rci-funnel-step-${window.RCITaggingObject?.step||""}`}),(0,v.d)({event:"virtualPageview",vehicleId:a,vehicleModel:n,virtualPageName:"rci|finance-simulator",pageType:"inventory"})}),A(this,"simulatorRpiPrintPdfHandler",async()=>{try{let e=await this.getProxyPromise();if(!e)return;let{vehicleProxyParams:t={}}=this.props,r=e.getFinancialOffer("default"),n=(r.getCustomerType()||"").toUpperCase(),a=this.getClientType(n);(0,v.d)({toolName:"rci-funnel",inventoryId:t.vhid,interactionType:"simulator-d
1ownload-rci-funnel",vehicleModel:t.modelC,downpayment:r.getDownpayment(),monthlyInstallments:r.getMonthlyPayment(),insurance:r.getListOfInsuranceCodes(),tenure:r.getDuration(),financeCustomerType:a,productType:r.getProductType(),financeMileage:r.getMileage(),financeBuyBack:r.getBuyback(),rateType:r.getTypeRate(),event:"financeInteraction"})}catch(e){console.error("simulatorRpiPrintPdfHandler",e)}}),A(this,"autoSaveOfferHandler",async()=>{let e=await this.getProxyPromise();if(e)return new Promise((t,r)=>{try{e.saveProposalOffer(),this.currentAutoSaveResolver=t}catch(e){console.error("autoSaveOfferHandler",e),r(e)}})}),A(this,"simulatorContinueHandler",async()=>{let{handleOfferId:e,vehicleProxyParams:t={}}=this.props,{offerParams:r={}}=this.state,{modelC:n,idVehicle:a}=t;if(e){let t=await this.getProxyPromise();if(!t)return;let n=t.getFinancialOffer("Custom").getOfferId();n&&e({offerId:n,offerParams:r})}(0,v.d)({event:"navigationClick",buttonText:"continue-online",destination:"http://redirection-to-finance-website",locationInPage:"confirmation-funnel-rci",vehicleId:a,vehicleModel:n})}),A(this,"emitOfferIdHandler",async()=>{let{offerParams:e}=this.state,t=async()=>{try{let e=await Promise.race([this.autoSaveOfferHandler(),new Promise(e=>{setTimeout(()=>{e(void 0)},5e3)})]);(0,E.mk)(b.n,e)}catch(e){(0,E.mk)(b.n),console.error("emitOfferIdHandler.resolver",e)}};e!==L?t():this.currentSaveOfferResolver=t}),A(this,"refresh",async()=>{this.setupProxyInstance()});const{financeParams:t,siteParams:r,dealerStyle:n,provider:a,dealer:i,jsProxyUrl:o,isPro:s,priceParams:l,isSocialLeasing:u}=e,{showPersonalOfferForPro:d}=l||{},m=a||("RVP"===r.product?"RVP":"RCI"),f=s&&!d?"E":void 0,g={...t,provider:m,proxyUrl:o,jQueryUrl:C.Cu,proxySettings:{dealer:((e="",t=!1,r=!1)=>{let n=e;return t&&n&&!n.endsWith("_PRO")&&(n=`${n}_PRO`),r&&n&&(n=`${n}_SL`),n})(i,s,u),style:n,customerType:f}};this.mounted=!1,this.state={...V,financeSettings:g},this.documentLevelProxyEvents=[{evt:`RCI_${R.vo}`,handler:$.simulatorPrevStepHandler,documentLevel:!0},{evt:`RCI_${R.ZF}`,handler:$.simulatorStepHandler,documentLevel:!0},{evt:`RCI_${R.Ob}`,handler:$.simulatorScoringHandler,documentLevel:!0},{evt:`RCI_${R.vL}`,handler:this.simulatorContinueHandler,documentLevel:!0}]}}A($,"defaultProps",{handleOffer:()=>{},openSimulatorInline:!1,siteParams:{brand:"renault"},financeParams:{},priceParams:{},dealer:"ONE",dealerStyle:"ONE",batteryOfferMode:!1}),A($,"simulatorCloseButtonHandler",()=>{(0,v.d)({event:"navigationClick",buttonText:"close-window",destination:`${window.location.pathname}${window.location.search}`,locationInPage:"rci-funnel-summary-step"})}),A($,"simulatorStepHandler",()=>{(0,v.d)({event:"virtualPageview",virtualPageName:window.RCITaggingObject?.rpiStepName})}),A($,"simulatorPrevStepHandler",()=>{(0,v.d)({event:"navigationClick",buttonText:"simulator-return",destination:`${window.location.pathname}${window.location.search}`,locationInPage:`previous-button-rci-funnel-step-${window.RCITaggingObject?.step||""}`}),$.simulatorStepHandler()}),A($,"simulatorScoringHandler",()=>{(0,v.d)({event:"rciScoring",rciScore:window.RCITaggingObject?.scoring}),(0,v.d)({event:"virtualPageview",virtualPageName:"rci|funnel_pre_approval"})});let B=k($)},54019(e,t,r){r.d(t,{},{n:"OFFER_ID_RECEIVED",s:"RETRIEVE_OFFER_ID"})},24453(e,t,r){var n=r(48412),a=r(53572),i=r.n(a),o=r(44803),s=r.n(o),l=r(15227),u=r.n(l),d=r(17063),c=r.n(d),m=r(57625),f=r(47219),h=r(61300),g=r(90939),p=r(65996);let y={channel:"main",salesChannel:"STORE",zone:"IDF"},v="err.func.cma.validation.mandatory-commercial-actions",w=async()=>{let{data:e,status:t}=await n.A.post((0,h.A)("api.orders.initCart"))||{};return{data:e,status:t}},E=async(e,t)=>{if(!t)throw Error("NO_ORDERGROUPUUID");let{data:r,status:a}=await n.A.put((0,g.A)((0,h.A)("api.orders.updateCart"),{orderGroupUuid:t}),e);return{data:r,status:a}},C=async e=>{if(!e)throw Error("NO_ORDERGROUPUUID");let{data:t,status:r}=await n.A.get(`wired/commerce/v1/carts/${e}/cart-request`);return{data:t,status:r}};function P(e,t){let{initialformValue:r={},onNextClick:n,orderGroupUuidQueryParams:a}=e||{},{storeId:o,initCart:l}=t||{},d=a;return async(e={})=>{let t,{delta:a,updatedCartValue:m,stepName:f}=e,h=o?{...y,storeId:o}:y,g=i()(s()(r,"mm18.request",h)),p=u()(g,a),C=i()(r);if(c()(C,"mm18.request",p),l){let{data:{orderGroupUuid:e}}=await w();d=e,a&&(a.orderGroupUuid=e)}if(a||m||f){let e;if(f){p.customerFrontOfficeCheckoutTracking||(p.customerFrontOfficeCheckoutTracking=[]);let e={step:f,validationDateTime:new Date().toISOString()},t=p.customerFrontOfficeCheckoutTracking.findIndex(({step:e})=>e===f);-1===t?p.customerFrontOfficeCheckoutTracking.push(e):p.customerFrontOfficeCheckoutTracking[t]=e}if(m)e=m;else{let{data:r,status:n}=await E(p,d).catch(({response:e={}})=>e);if(e=r,400===(t=n)&&s()(e,"messages[0].code","")===v)throw Error("SELECTDEALER_FAILED");if(200!==t)throw Error("UPDATECART_FAILED")}c()(C,"mm18.cartValue",e)}n(C,{status:t})}}let I=async({handlePushTracking:e,initialCartValues:t,onNextClick:r,orderGroupUuidQueryParams:n})=>{let a,i=n||"",o=t;if(i){let{data:e,status:t}=await C(i);if(200!==(a=t))throw Error("GET_CART_REQUEST_FAILED");o=e}else{let{data:{orderGroupUuid:e=""}={},status:t}=await w();if(200!==(a=t))throw Error("CREATE_CART_FAILED");i=e}let{data:s={},status:l}=await E({...o,products:t?.products,leadInfo:t?.leadInfo},i).catch(({response:e={}})=>e);if(400===(a=l)&&(s.message?.[0]?.code||"")===v)throw Error("SELECT_DEALER_FAILED");if(200!==a)throw Error("UPDATE_CART_FAILED");e&&e(s),r(i,a)};function T(e){let{modelCode:t,modelLabel:r,prices:n=[],brandLabel:a}=((0,m.OU)(e)||(0,f.qH)(e)?(0,p.DE)(e):void 0)||{},{discountedPriceWithTaxes:i}=n[0]||{};
1return{name:r,id:t,price:i?i.toString():void 0,brand:a,category:"newCars",quantity:1}}let S=async(e,t,r)=>{let a=`/wired/commerce/v1/order-groups/${e}/status`,{data:i,status:o}=await n.A.post(a,{externalStatusCode:"ORDER_FINANCING_OFFER_RECEIVED",processInfo:{executionDate:new Date().toISOString(),processStatus:"IN_PROGRESS",processName:"ORDER_FINANCING_OFFER_RECEIVED",resultInfo:{result:{offerId:t,originalRciInfo:r}}}});return{data:i,status:o}};r.d(t,{CV:()=>P,JE:()=>T},{$A:S,L8:(e={})=>{let{version:{code:t="",label:r=""}={}}=e;return`${t}${t&&r?"|":""}${r}`},iH:E,zf:I})},40848(e,t,r){var n=r(5511);function a(e){return{type:n.I.FINANCE_UPDATE_LAST_SIMULATION,payload:e}}r.d(t,{$:()=>a})},86111(e,t,r){r.d(t,{},{A:e=>{let t=!1;return{promise:new Promise((r,n)=>{e.then(e=>t?n({isCanceled:t}):r(e),e=>t?n({isCanceled:t}):n(e))}),cancel(){t=!0}}}})},9458(e,t,r){var n=r(85606),a=r(59180),i=r(38337);let o=(e,t,r)=>{if(!/^[0-9]{2}[-][0-9]{2}[-][0-9]{4}$/.test(`${e}-${t}-${r}`)||1e3>parseInt(r,10)||parseInt(r,10)>3e3||0===parseInt(t,10)||parseInt(t,10)>12)return!1;let n=[31,28,31,30,31,30,31,31,30,31,30,31];return(parseInt(r,10)%400==0||parseInt(r,10)%100!=0&&parseInt(r,10)%4==0)&&(n[1]=29),parseInt(e,10)>0&&parseInt(e,10)<=n[parseInt(t,10)-1]};function s(e,t){switch(t){case"yyyy-MM-dd-H-m":{let[t,r,n,a,i]=e.split("-");if(o(n,r,t)){let e=new Date(`${t}/${r}/${n}`);return e.setHours(parseInt(a,10)),e.setMinutes(parseInt(i,10)),e}return new Date("Invalid date")}case"H m":{let[t,r]=e.split(" "),n=new Date(Date.now());return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n}case"yyyy-MM-dd":{let[t,r,n]=e.split("-");return new Date(o(n,r,t)?`${t}/${r}/${n}`:"Invalid date")}case"dd-MM-yyyy":{let[t,r,n]=e.split("-");return new Date(o(t,r,n)?`${n}/${r}/${t}`:"Invalid date")}case"dd/MM/yyyy":{let[t,r,n]=e.split("/");return new Date(o(t,r,n)?`${n}/${r}/${t}`:"Invalid date")}default:return new Date("Invalid date")}}function l(e){return new Date(e.getTime()+6e4*e.getTimezoneOffset())}function u(e,t,r){let n={weekday:"long",month:"long",day:"numeric",...r};return new Date(e).toLocaleDateString(t,n)}let d=(e,t)=>{try{let r=(0,n.H)(e);return new Intl.DateTimeFormat((0,i.JK)(),t).format(r)}catch(t){return e}},c=e=>{let[t,r=""]=e.split(":"),[n,a]=r.toString().split(" "),i=(parseInt(t,10)+12*("PM"===a&&"12"!==t)).toString();return[t,r,n,i]},m=(e,t,r)=>(0,a.GP)("string"==typeof e?(0,n.H)(e):e,t,r);function f(e){let t=[],r=Math.floor(e/3600),n=Math.round(e%3600/60);return t.push(`${r} h`),n>=0&&t.push(`${String(n).padStart(2,"0")}`),t.join(" ")}r.d(t,{P0:()=>f,VE:()=>u,q5:()=>l,qg:()=>s},{Gq:()=>new Date().toISOString().slice(0,10),Lj:(e,t,r=30,n=!1)=>{let[a,i]=e.split(":").map(e=>parseInt(e,10)),[o,s]=t.split(":").map(e=>parseInt(e,10)),l=new Date(new Date().setHours(a)).setMinutes(i),u=Math.floor(Math.abs(new Date(new Date(new Date().setHours(o)).setMinutes(s)).getTime()-new Date(l).getTime())/36e5),d=Math.floor((s-i)/10),f=60/r*u,h=f>1?f:r/10*d,g=[],p=e;for(let e=0;e<h;e+=1){let[e,t,a,i]=c(p),o=new Date(new Date().setHours(n?parseInt(i,10):parseInt(e,10),n?parseInt(a,10):parseInt(t,10))),s=new Date(new Date().setHours(n?parseInt(i,10):parseInt(e,10),n?parseInt(a,10)+r:parseInt(t,10)+r)),l=n?"hh:mm a":"HH:mm";g.push({text:m(o,l),value:`${m(o,"HH:mm")}-${m(s,"HH:mm")}`}),p=m(s,l)}return g},OG:e=>{let t=new Date(e),r=6e4*t.getTimezoneOffset();return new Date(t.getTime()-r)},Yq:m,_Q:d,hY:()=>new Date(Date.now()),lA:e=>{if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:t},oc:(e="",t)=>{let r=d(`1971-01-01T${e}`,{timeStyle:"short"});return"fr-FR"===t?r.replace(":","h"):r}})},67364(e,t,r){let n;var a=r(81766),i=r(16777);r.d(t,{},{Cu:"/vendor/jquery/jquery-3.7.1.min.js",fB:(e,t)=>!!e&&!!t&&(t===a.zH.CALCULATOR_AND_PRICE||t===a.zH.MONTHLY_PRICE),kZ:(e,t)=>!!e&&!!t&&(t===a.zH.CALCULATOR||t===a.zH.CALCULATOR_AND_PRICE),ku:(e=[])=>{let t=e.find(e=>e&&"financingInfo"in e&&!!e?.financingInfo?.financeMapping?.dealer);return t&&"financingInfo"in t&&t?.financingInfo?.financeMapping?.dealer?t?.financingInfo?.financeMapping?.dealer:""},mo:(e={},t,r)=>r&&e.key===r||t&&e.detail?.uri===t?e.data?.rlead:void 0,mv:e=>{if(!e)return{};let{brand:t,model:r,finition:n,version:a}=e?.formState?.vehicleVersion||{},{mileage:o,registration:s}=e?.formState||{},{quotationPrice:l,quotationValidity:u}=e?.quotation||{};return(0,i.yb)({tradeInVehBrand:t,tradeInVehModelC:r,tradeInVehVersionC:n?`${a}-${n}`:a,tradeInVehKm:o,tradeInVehRegistrationNumber:s,tradeInValueInfo:l,tradeInDate:u})},qh:(e,t)=>(void 0===n&&(n=e(t)),n)})},74877(e,t,r){var n=r(67324),a=r(32464);function i(e,t="LARGE"){let r=(0,a.tP)(e,"assets").find(e=>"PICTURE"===e.assetType);return(0,a.tP)(r,"renditions").find(e=>e.resolutionType&&e.resolutionType.includes(t))}let o=({vehicle:e,assetRole:t,assetType:r,resolutionType:n})=>{let a=(e?.assets??[]).find(e=>t&&e.assetRole===t||r&&e.assetType===r),i=(a?.renditions??[]).find(e=>e.resolutionType===n);return i?.url};r.d(t,{ar:()=>i},{bj:e=>(0,n.ni)(e)?{small:o({vehicle:e,assetType:"picture",resolutionType:"large"}),smallx2:o({vehicle:e,assetType:"picture",resolutionType:"small"})}:{small:o({vehicle:e,assetRole:"r_inventory_card_1",resolutionType:"r_inventory_card_1_density1_large"}),smallx2:o({vehicle:e,assetRole:"r_inventory_card_1",resolutionType:"r_inventory_card_1_density2_large"})},zl:o})},65996(e,t,r){r.d(t,{bO:()=>f,Od:()=>u,Up:()=>m,DE:()=>c});var n=r(53282),a=r.n(n),i=r(12347),o=r(9458),s=r(90939),l=r(74877);let u={ELECTRIC:{consumption:"PT5643",coii:"PT5609"},PHEV:{consumption:"PT5668",coii:"PT5666"},ICEBIFUELLPG:{consumption:"PT5620",coii:"PT5610"},ESS:{consumption:"PT5619",coii:"PT5609"},DIESEL:{consumption:"PT5619",coii:"PT5609"},MILDHYBRID:{consumption:"PT5619",coii:"PT5609"},HEV:{consumption:"PT5619",coii:"PT5609"}},d=(e={})=>(e.discounts||[]).some(e=>"discountOverall"===e.marketingDiscountType&&(e.discountValue||e.discountAmount)),c=(e,t)=>{let{rDealer:r={},nciTransverseParams:n={},catalogPriceDescription:a="",localeSiteParams:c=""}=t||{},{productId:m,accountType:f,nationalExposition:h=!1,scene:g,views:p,brand:y,model:v,version:w,energy:E,vehicleClassification:C="",co2:P,transmission:I,eligibilityZE:T,colorMarketing:S,section:O,technicalSpecifications:D=[],financingInfo:b,dealers:R=[],prices:M=[],segment:_,environmentalIncentives:A,equipments:L=[],wheel:N,tarif:H=0,tariffApplicationDate:x="",distributionDeliveryTime:U,productType:F=i.$z.VEHICLE_NCI,vehicleConfigUri:k,warnings:V=[],warrantyInfo:$={},deliveryInfo:B}=e||{},{groupLabel:W,label:Y}=y||{},{adminId:G,code:q,label:j}=v||{},{label:z,code:Q}=w||{},{groupLabel:X,group:Z}=E||{},{label:J,groupLabel:K,group:ee}=I||{},{label:et}=S||{},{label:er}=O||{},{code:en,label:ea}=_||{},{defaultOriginalRciOffer:ei,financeMapping:eo={}}=b||{},{monthlyPayment:es,teachingSentence:el}=ei||{},{consumption:eu,coii:ed}=Z&&u[Z]||{},ec=e=>D?.find(t=>t.code===e),em=ec(eu)||{},ef=ec(ed)||{},eh=em?.label,eg=em?.value,ep=ef?.label,ey=ef?.value,{value:ev}=(({technicalSpecifications:e,specificationCode:t})=>e.reduce((e,{items:r=[]})=>{let{value:n}=r.find(({code:e})=>e===t)||{};return n?{...e,code:t,value:n}:e},{}))({technicalSpecifications:D,specificationCode:eu}),ew=R.length>1,eE=ew?r&&r.dealerId&&(m===r.productId||!r.productId)&&R.find(({dealerId:e})=>r.dealerId===e)||{}:R[0],eC=eE?.dealerName||"",eP=eE?.dealerAddress?.postalCode||"",eI=eE?.dealerAddress?.locality||"",eT=N?.tyres||[],{newVehicleLabel:eS="",demonstrationVehicleLabel:eO=""}=n,eD="";"NC"===C?eD=eS:"DC"===C&&(eD=eO);
1let eb=a&&c&&(0,s.A)(a,{number:H,date:x&&c?(0,o.VE)(x,c,{year:"numeric"}):""}),eR=V.some(({code:e})=>"VEHICLE_UNAVAILABLE"===e)||!1,eM=V.some(({code:e})=>"DEALER_WEB_RESERVATION_NOT_AVAILABLE"===e)||!1,{currency:e_,priceDetails:eA={},actions:eL=[]}=M?.[0]||{},{intermediatePrices:eN=[],summary:eH}=eA.receiptDetails||{},{price:ex,includedInCustomerDisplayPrice:eU}=eN.find(e=>e.type&&[i.k8.BONMAL,i.k8.PiVG].includes(e.type))||{},{price:eF,includedInCustomerDisplayPrice:ek}=eN.find(({type:e})=>e===i.k8.EEC_BONUS)||{},eV=eN.find(({type:e})=>e===i.k8.TAXMASS)?.price,{customerDisplayPrice:e$,priceWithoutTaxes:eB,discounts:eW=[],discountedPriceWithTaxes:eY,discountedPriceWithoutTaxes:eG,taxes:eq=[],priceWithTaxes:ej}=eH||{},{discountValue:ez,discountAmount:eQ}=eW.find(e=>e?.marketingDiscountType===i.UB.DISCOUNT_OVERALL)||{},eX=((e=[],t)=>{var r;if(!t)return"";let n=t.toLowerCase(),a=e[0];return(r=a?.content?.legalInformation||[]).length&&r.find(e=>(e.locale||"").toLowerCase()===n&&e.value)?.value||""})(eL,c),eZ={customerDisplayPrice:e$,discountedPriceWithTaxes:eY,discountedPriceWithoutTaxes:eG,priceWithoutTaxes:eB,priceWithTaxes:ej,discountOverallValue:ez,discountOverall:eQ,VAT:eq.find(e=>e.taxCode===i.Zl.VAT)?.taxValue,VATAmount:eq.find(e=>e.taxCode===i.Zl.VAT)?.taxAmount,IA:eq.find(e=>e.taxCode===i.Zl.IA)?.taxAmount,tradeInBonus:M[0]?.priceDetails?.receiptDetails?.intermediatePrices?.find(e=>e.type===i.k8.DEALER_TRADE_IN_BONUS)?.price,preparationFees:eN.find(e=>e.type===i.k8.PREPARATION_FEES)?.price,eecBonusPrice:eF,eecDisclaimer:eX,environmentalIncentivesValue:ex,hasDiscount:d(eH),VED:eq.find(({taxCode:e})=>e===i.Zl.VED)?.taxAmount,DeliveryCharge:eq.find(({taxCode:e})=>e===i.Zl.DEL_CHARGE)?.taxAmount,FRF:eq.find(({taxCode:e})=>e===i.Zl.FRF)?.taxAmount,currency:e_,taxMassPrice:eV,displayBonmalPrice:eU,displayEecBonusPrice:ek},eJ=((e=[],t=[])=>{let r=t.find(({code:e})=>"homologatedUnit"===e)?.value,n=t.find(({code:e})=>"homologatedCo2"===e)?.value,a=t.find(({code:e})=>"homologatedEfficiency"===e)?.value,i=t.find(({code:e})=>"airQualityCertificate"===e)?.value;return i||(i=e.find(({technicalGroup:e,code:t})=>e?.code==="CLAENE"&&t?.startsWith("NFG$"))?.label),{emissionRating:i,homologatedUnit:r,homologatedCo2:n,homologatedEfficiency:a}})(L,e?.certificationData),{groupLabel:eK,duration:e0}=$,{weeks:e1}=B?.customerForecastedDeliveryDelay||{};return{scene:g,views:p,modelAdminId:G,brandLabel:Y,brandGroupLabel:W,modelLabel:j?.toUpperCase(),modelCode:q,energyLabel:X,energyGroup:Z,vehicleClassification:C,vehicleClassificationLabel:eD,sectionLabel:er,colorMarketingLabel:et,versionCode:Q,versionLabel:z,transmissionGroup:ee,transmissionLabel:J,transmissionGroupLabel:K,vehicleTyresInformation:eT,eligibilityZE:T,consoValue:ev,coiiValue:P,productId:m,accountType:f,nationalExposition:h,hasMultipleDealers:ew,vehicleDealer:R[0]||null,dealerName:eC,dealerPostalCode:eP,dealerCity:eI,segmentCode:en,segmentLabel:ea,defaultOriginalRciOffer:{monthlyPayment:es,offerTeachingSentence:el},financeMapping:eo,prices:M,pricesV2:eZ,hasDiscount:d(M?.[0]),publicPriceDescription:eb,dealers:R,environmentalIncentives:A||[{value:ex,currency:e_}],equipments:L,picture:e?(({vehicle:e})=>(0,l.zl)({vehicle:e,assetRole:"ONE_RVP_LISTE_STOCK_3/4_AVD",resolutionType:"RVP_LISTE_MEDIUM"}))({vehicle:e}):void 0,pictureSourcesCard:e?(0,l.bj)(e):void 0,pictureSourcesHero:e?{small:(0,l.zl)({vehicle:e,assetRole:"r_inventory_productHero_1",resolutionType:"r_inventory_productHero_1_density1_small"}),smallx2:(0,l.zl)({vehicle:e,assetRole:"r_inventory_productHero_1",resolutionType:"r_inventory_productHero_1_density2_small"}),large:(0,l.zl)({vehicle:e,assetRole:"r_inventory_productHero_1",resolutionType:"r_inventory_productHero_1_density1_large"}),largex2:(0,l.zl)({vehicle:e,assetRole:"r_inventory_productHero_1",resolutionType:"r_inventory_productHero_1_density2_large"})}:void 0,distributionDeliveryTime:U,deliveryDelay:e1,isDealerWebReservationNotAvailable:eM,isVehicleUnavailable:eR,productType:F,vehicleConfigUri:k,bonmalPrice:ex,vehicleEfficiencyData:eJ,warrantyDuration:e0,warrantyLabel:eK,wltpConsommationLabel:eh,wltpConsommationValue:eg,wltpCoiiLabel:ep,wltpCoiiValue:ey}},m=e=>{let{originalData:t,customerDisplayPrice:r,relations:n}=e||{},{originalTargetObjectInfo:a}=n?.find(e=>e.type===i.zZ.VEHICLE)||{},{model:o}=a||{},{label:s=""}=o||{},{name:u,prices:d=[],extendedDescriptions:c,legalNotice:m}=t||{},f=c?.find(e=>e?.type===i.mZ.VEHICLE_MODEL)?.title,{currency:h,priceDetails:g}=d[0]||{},p=g?.receiptDetails?.summary.discountedPriceWithTaxes,{description:y}=c?.find(e=>e?.type===i.mZ.MAIN)||{},{description:v}=c?.find(e=>e?.type===i.mZ.NEXT_STEPS)||{},{description:w}=c?.find(e=>e?.type===i.mZ.VEHICLE_MODEL)||{},E={small:c?.find(e=>e?.type===i.mZ.MAIN)?.assets?.find(e=>e?.assetType===i.PW.PICTURE)?.renditions?.[0]?.url||""};
1return{name:u,vehicleOfInterest:f,legalNotice:m,extendedDescription:y,imageFirstStep:E,price:p,currency:h,imageConfirmation:{small:c?.find(e=>e?.type===i.mZ.NEXT_STEPS)?.assets?.find(e=>e?.assetType===i.PW.PICTURE)?.renditions?.[0]?.url||""},imageReceiptSummary:{small:c?.find(e=>e?.type===i.mZ.VEHICLE_MODEL)?.assets?.find(e=>e?.assetType===i.PW.PICTURE)?.renditions?.[0]?.url||""},blocReassurance:v,shortDescription:w,customerDisplayPrice:r,modelLabel:s?.toUpperCase(),pictureSourcesCard:a?(0,l.bj)(a):void 0}};function f(e){return e.reduce((e,{productId:t,financingInfo:{financeMapping:r}={}}={})=>t&&!a()(r)?{...e,[t]:r}:e,{})}},78605(e,t,r){var n=r(51581);function a(e,...t){let r=n.w.bind(null,e||t.find(e=>"object"==typeof e));return t.map(r)}r.d(t,{x:()=>a})},42881(e,t,r){let n=Symbol.for("constructDateFrom");r.d(t,{},{_P:n,my:6048e5,s0:36e5,w4:864e5})},51581(e,t,r){var n=r(42881);function a(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}r.d(t,{w:()=>a})},71093(e,t,r){r.d(t,{m:()=>l});var n=r(9067);function a(e){let t=(0,n.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}var i=r(78605),o=r(42881);function s(e,t){let r=(0,n.a)(e,t?.in);return r.setHours(0,0,0,0),r}function l(e,t,r){let[n,l]=(0,i.x)(r?.in,e,t),u=s(n),d=s(l);return Math.round((u-a(u)-(d-a(d)))/o.w4)}},59180(e,t,r){r.d(t,{GP:()=>F});let n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return (t={})=>{let r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}let i={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,a=r?.width?String(r.width):t;n=e.formattingValues[a]||e.formattingValues[t]}else{let t=e.defaultWidth,a=r?.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return(t,r={})=>{let n,a=r.width,i=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;let s=o[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(l,e=>e.test(s)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(l,e=>e.test(s));return n=e.valueCallback?e.valueCallback(u):u,{value:n=r.valueCallback?r.valueCallback(n):n,rest:t.slice(s.length)}}}let u={code:"en-US",formatDistance:(e,t,r)=>{let a,i=n[e];if(a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix)if(r.comparison&&r.comparison>0)return"in "+a;else return a+" ago";return a},formatLong:i,formatRelative:(e,t,r,n)=>o[e],localize:{ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{let r=e.match(c.matchPattern);if(!r)return null;let n=r[0],a=e.match(c.parsePattern);if(!a)return null;let i=c.valueCallback?c.valueCallback(a[0]):a[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(n.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d={};var c,m=r(71093),f=r(9067),h=r(42881);function g(e,t){let r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0,n=(0,f.a)(e,t?.in),a=n.getDay();return n.setDate(n.getDate()-(7*(a<r)+a-r)),n.setHours(0,0,0,0),n}function p(e,t){return g(e,{...t,weekStartsOn:1})}var y=r(51581);function v(e,t){let r=(0,f.a)(e,t?.in),n=r.getFullYear(),a=(0,y.w)(r,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);let i=p(a),o=(0,y.w)(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);let s=p(o);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function w(e,t){let r=(0,f.a)(e,t?.in),n=r.getFullYear(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,i=(0,y.w)(t?.in||e,0);i.setFullYear(n+1,0,a),i.setHours(0,0,0,0);let o=g(i,t),s=(0,y.w)(t?.in||e,0);s.setFullYear(n,0,a),s.setHours(0,0,0,0);let l=g(s,t);return+r>=+o?n+1:+r>=+l?n:n-1}function E(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let C={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return E("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):E(r+1,2)},d:(e,t)=>E(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];
1default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>E(e.getHours()%12||12,t.length),H:(e,t)=>E(e.getHours(),t.length),m:(e,t)=>E(e.getMinutes(),t.length),s:(e,t)=>E(e.getSeconds(),t.length),S(e,t){let r=t.length;return E(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},P={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return C.y(e,t)},Y:function(e,t,r,n){let a=w(e,n),i=a>0?a:1-a;return"YY"===t?E(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):E(i,t.length)},R:function(e,t){return E(v(e),t.length)},u:function(e,t){return E(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return E(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return E(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return C.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return E(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let a,i,o,s,l=Math.round((g(a=(0,f.a)(e,n?.in),n)-(i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,o=w(a,n),(s=(0,y.w)(n?.in||a,0)).setFullYear(o,0,i),s.setHours(0,0,0,0),g(s,n)))/h.my)+1;return"wo"===t?r.ordinalNumber(l,{unit:"week"}):E(l,t.length)},I:function(e,t,r){let n,a,i,o=Math.round((p(n=(0,f.a)(e,void 0))-(a=v(n,void 0),(i=(0,y.w)(n,0)).setFullYear(a,0,4),i.setHours(0,0,0,0),p(i)))/h.my)+1;return"Io"===t?r.ordinalNumber(o,{unit:"week"}):E(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):C.d(e,t)},D:function(e,t,r){let n,a,i=(n=(0,f.a)(e,void 0),(0,m.m)(n,((a=(0,f.a)(n,void 0)).setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a))+1);return"Do"===t?r.ordinalNumber(i,{unit:"dayOfYear"}):E(i,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return E(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let a=e.getDay(),i=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return E(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),a=0===n?7:n;switch(t){case"i":return String(a);case"ii":return E(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,a=e.getHours();switch(n=12===a?"noon":0===a?"midnight":a/12>
1=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,a=e.getHours();switch(n=a>=17?"evening":a>=12?"afternoon":a>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return C.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):C.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):E(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):E(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):C.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):C.s(e,t)},S:function(e,t){return C.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return T(n);case"XXXX":case"XX":return S(n);default:return S(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return T(n);case"xxxx":case"xx":return S(n);default:return S(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+I(n,":");default:return"GMT"+S(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+I(n,":");default:return"GMT"+S(n,":")}},t:function(e,t,r){return E(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return E(+e,t.length)}};function I(e,t=""){let r=e>0?"-":"+",n=Math.abs(e),a=Math.trunc(n/60),i=n%60;return 0===i?r+String(a):r+String(a)+t+E(i,2)}function T(e,t){return e%60==0?(e>0?"-":"+")+E(Math.abs(e)/60,2):S(e,t)}function S(e,t=""){let r=Math.abs(e);return(e>0?"-":"+")+E(Math.trunc(r/60),2)+t+E(r%60,2)}let O=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},D=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},b={p:D,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return O(e,t);switch(a){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",O(a,t)).replace("{{time}}",D(i,t))}},R=/^D+$/,M=/^Y+$/,_=["D","DD","YY","YYYY"];var A=r(49688);let L=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,H=/^'([^]*?)'?$/,x=/''/g,U=/[a-zA-Z]/;function F(e,t,r){let n=r?.locale??d.locale??u,a=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??d.firstWeekContainsDate??d.locale?.options?.firstWeekContainsDate??1,i=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??d.weekStartsOn??d.locale?.options?.weekStartsOn??0,o=(0,f.a)(e,r?.in);if(!(0,A.f)(o))throw RangeError("Invalid time value");let s=t.match(N).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,b[t])(e,n.formatLong):e}).join("").match(L).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t){var r;let t;return{isToken:!1,value:(t=(r=e).match(H))?t[1].replace(x,"'"):r}}if(P[t])return{isToken:!0,value:e};if(t.match(U))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});n.localize.preprocessor&&(s=n.localize.preprocessor(o,s));let l={firstWeekContainsDate:a,weekStartsOn:i,locale:n};return s.map(a=>{if(!a.isToken)return a.value;let i=a.value;return(!r?.useAdditionalWeekYearTokens&&M.test(i)||!r?.useAdditionalDayOfYearTokens&&R.test(i))&&function(e,t,r){var n,a,i;let o,s=(n=e,a=t,i=r,o="Y"===n[0]?"years":"days of the month",`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${a}\`) for formatting ${o} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`);if(console.warn(s),_.includes(e))throw RangeError(s)}(i,t,String(e)),(0,P[i[0]])(o,i,n.localize,l)}).join("")}},49688(e,t,r){r.d(t,{f:()=>a});var n=r(9067);function a(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,n.a)(e)))}},85606(e,t,r){var n=r(42881),a=r(51581),i=r(9067);function o(e,t){let r,o,y=()=>(0,a.w)(t?.in,NaN),v=t?.additionalDigits??2,w=function(e){let t,r={},n=e.split(s);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],l.test(r.date)&&(r.date=e.split(l)[0],t=e.substr(r.date.length,e.length))),t){let e=u.exec(t);e?(r.time=t.replace(e[1],""),r.timezone=e[1]):r.time=t}return r}(e);if(w.date){let e=function(e,t){let r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};let a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((n[1]||n[2]).length)}}(w.date,v);r=function(e,t){var r,n,a,i,o,s,l,u,c,m;if(null===t)return new Date(NaN);let h=e.match(d);if(!h)return new Date(NaN);let y=!!h[4],v=f(h[1]),w=f(h[2])-1,E=f(h[3]),C=f(h[4]),P=f(h[5])-1;if(y){let e,s;return(r=C,n=P,r>=1&&r<=53&&n>=0&&n<=6)?(a=t,i=C,o=P,(e=new Date(0)).setUTCFullYear(a,0,4),s=e.getUTCDay()||7,e.setUTCDate(e.getUTCDate()+((i-1)*7+o+1-s)),e):new Date(NaN)}{let e=new Date(0);return(s=t,l=w,u=E,l>=0&&l<=11&&u>=1&&u<=(g[l]||(p(s)?29:28))&&(c=t,(m=v)>=1&&m<=(p(c)?366:365)))?(e.setUTCFullYear(t,w,Math.max(v,E)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!r||isNaN(+r))return y();let E=+r,C=0;if(w.time&&isNaN(C=function(e){var t,r,a;let i=e.match(c);if(!i)return NaN;let o=h(i[1]),s=h(i[2]),l=h(i[3]);return(t=o,r=s,a=l,24===t?0===r&&0===a:a>=0&&a<60&&r>=0&&r<60&&t>=0&&t<25)?o*n.s0+6e4*s+1e3*l:NaN}(w.time)))return y();if(w.timezone){if(isNaN(o=function(e){var t;if("Z"===e)return 0;let r=e.match(m);if(!r)return 0;let a="+"===r[1]?-1:1,i=parseInt(r[2]),o=r[3]&&parseInt(r[3])||0;return(t=o)>=0&&t<=59?a*(i*n.s0+6e4*o):NaN}(w.timezone)))return y()}else{let e=new Date(E+C),r=(0,i.a)(0,t?.in);return r.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),r.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),r}return(0,i.a)(E+C+o,t?.in)}let s=/[T ]/,l=/[Z ]/i,u=/([Z+-].*)$/,d=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,m=/^([+-])(\d{2})(?::?(\d{2}))?$/;function f(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}let g=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}r.d(t,{H:()=>o})},9067(e,t,r){var n=r(51581);function a(e,t){return(0,n.w)(t||e,e)}r.d(t,{a:()=>a})},96700(e,t,r){let n=new Uint8Array(16);function a(){return crypto.getRandomValues(n)}r.d(t,{A:()=>a})},40712(e,t,r){let n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function a(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}r.d(t,{k:()=>a})}}]);

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.