const __vite__fileDeps=["./index.BccdNRz9.js","./entry.VoTrDa23.js","./entry.Dfg0r9xQ.css","./index.BNq2rN4L.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); import{X as ft,r as O,d as g,D,a as s,c as l,e as _,w as v,f as c,g as t,t as h,j as T,T as me,k as z,l as N,m as w,B as x,o as Ae,I as ie,J as ce,F as P,h as A,q as W,L as Q,n as S,aB as J,y as te,i as E,b as ne,aC as ke,Q as le,ab as ve,_ as G,aD as gt,aE as bt,s as pe,aF as Ve,aG as we,ai as yt,ap as $t,ah as St,a0 as kt,u as Me,O as Be,P as Re,ao as wt,Z as Ue,am as Ce,R as Ct,V as xt,A as It,ax as Pt}from"./entry.VoTrDa23.js";import{c as he,R as Tt,b as ae,u as fe,d as j,g as Fe,e as qt,a as Lt}from"./index.DIXykFJZ.js";import{_ as Ee}from"./index.BS1gE_6E.js";import{f as At,_ as se,b as De,u as oe,a as re,d as Oe,e as ge,i as Vt,c as Mt}from"./index.D-WMIpPZ.js";import{_ as Bt,a as X}from"./info.BOVZ2HdD.js";import{_ as ze}from"./Spinner.CFU4DcKd.js";import{_ as Rt}from"./index.DisxrTte.js";import{_ as Ut}from"./index.DZUR3Tv1.js";import{b as Ft,_ as Et,a as Dt,u as ue,W as Ot}from"./WishlistButton.CWYbWPj3.js";import{u as be}from"./useImageSlider.Bz9qWpMv.js";import{_ as de}from"./InfoButton.CvavaPVt.js";import{_ as Ne}from"./SliderIndicator.C6F7pyOO.js";import{u as zt}from"./useModal.CZC4cLdI.js";import{u as je,a as Nt}from"./use-tag-manager.composable.BYHZYm1P.js";import{_ as jt}from"./Invisible.19wd_iDM.js";import{a as H,f as _e}from"./format-amount.util.CWQNo7q0.js";import{_ as ye}from"./index.BH7S4nqv.js";import{_ as He}from"./Item.C0Qx9ctP.js";import{e as Ht}from"./query.util.cdJc2Q_J.js";import{_ as Wt}from"./index.wJw6ao-_.js";import{E as Gt}from"./ExternalLink.Dcdeu24S.js";import{u as Kt}from"./index.DJWx4GhI.js";import{u as Zt}from"./use-seo-utils.composable.wLpXSQ7S.js";import"./format-date.util.BJ3UR9SA.js";import"./close.o5vkJOyE.js";import"./id.CQGBWaYt.js";import"./chevron.BPbJMDPj.js";import"./index.3mkyocS4.js";import"./_commonjsHelpers.BosuxZz1.js";import"./snackbar.4CeFesq7.js";import"./useDetectOutsideClick.CZmYvnX2.js";const Jt="data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M16.5%208C16.5%2012.4183%2012.9183%2016%208.5%2016C4.08172%2016%200.5%2012.4183%200.5%208C0.5%203.58172%204.08172%200%208.5%200C12.9183%200%2016.5%203.58172%2016.5%208ZM9.5%204C9.5%204.55228%209.05228%205%208.5%205C7.94772%205%207.5%204.55228%207.5%204C7.5%203.44772%207.94772%203%208.5%203C9.05228%203%209.5%203.44772%209.5%204ZM7.5%207C6.94772%207%206.5%207.44772%206.5%208C6.5%208.55229%206.94772%209%207.5%209V12C7.5%2012.5523%207.94772%2013%208.5%2013H9.5C10.0523%2013%2010.5%2012.5523%2010.5%2012C10.5%2011.4477%2010.0523%2011%209.5%2011V8C9.5%207.44772%209.05228%207%208.5%207H7.5Z'%20fill='white'/%3e%3c/svg%3e",Qt="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M6%2018L18%206M6%206L18%2018'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",xe=ft("toastbar",()=>{const e=O({title:null,description:null});return{toastbar:e,setToastbar:n=>{e.value=n}}}),We=e=>(z("data-v-ba9cfebc"),e=e(),N(),e),Xt={class:"toastbar-container"},Yt={key:0,class:"toastbar-content"},en=We(()=>t("div",{class:"toastbar-icon"},[t("img",{src:Jt,alt:""})],-1)),tn={class:"toastbar-text"},nn={class:"toastbar-text__title"},sn={class:"toastbar-text__description"},on={class:"toastbar-close"},cn=We(()=>t("img",{src:Qt,alt:""},null,-1)),ln=[cn],an=g({__name:"Toastbar",setup(e){const{toastbar:o}=D(xe()),{setToastbar:n}=xe();return(a,i)=>(s(),l("div",Xt,[_(me,{name:"toastbar"},{default:v(()=>[c(o).title||c(o).description?(s(),l("div",Yt,[en,t("div",tn,[t("p",nn,h(c(o).title),1),t("p",sn,h(c(o).description),1)]),t("div",on,[t("button",{onClick:i[0]||(i[0]=()=>c(n)({title:null,description:null})),"aria-label":"close-label"},ln)])])):T("",!0)]),_:1})]))}}),rn=w(an,[["__scopeId","data-v-ba9cfebc"]]),Y=e=>(z("data-v-8e7990ce"),e=e(),N(),e),dn={key:0},un={key:0,class:"emission-chart-container"},_n={class:"classA"},pn=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),hn={key:1,class:"classa"},mn={key:2,class:"emission-chart-container"},vn={class:"classB"},fn=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),gn={key:3,class:"classb"},bn={key:4,class:"emission-chart-container"},yn={class:"classC"},$n=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),Sn={key:5,class:"classc"},kn={key:6,class:"emission-chart-container"},wn={class:"classD"},Cn=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),xn={key:7,class:"classd"},In={key:8,class:"emission-chart-container"},Pn={class:"classE"},Tn=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),qn={key:9,class:"classe"},Ln={key:10,class:"emission-chart-container"},An={class:"classF"},Vn=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),Mn={key:11,class:"classf"},Bn={key:12,class:"emission-chart-container"},Rn={class:"classG"},Un=Y(()=>t("img",{loading:"lazy",src:X,alt:""},null,-1)),Fn={key:13,class:"classg"},En=g({__name:"index",props:{co2:{}},setup(e){const o=x(()=>`Cette voiture appartient à la classe énergétique ${a.value} en matière d'émissions de CO2. Son émission est ${i.value}.`),n=e,a=x(()=>{const r=n.co2?n.co2:-2;if(r<-1)return"";switch(!0){case r<=100:return"A";case(r>=101&&r<=120):return"B";case(r>=121&&r<=140):return"C";case(r>=141&&r<=160):return"D";case(r>=161&&r<=200):return"E";case(r>=201&&r<=250):return"F";default:return"G"}}),i=x(()=>n.co2!==void 0?`inf. à ${n.co2} gCO2/km`:"");return(r,p)=>{const d=Bt;return a.value!==""?(s(),l("div",dn,[a.value=="A"?(s(),l("div",un,[t("span",_n,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[pn]),_:1},8,["content"])])):(s(),l("span",hn,"A")),a.value=="B"?(s(),l("div",mn,[t("span",vn,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[fn]),_:1},8,["content"])])):(s(),l("span",gn,"B")),a.value=="C"?(s(),l("div",bn,[t("span",yn,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[$n]),_:1},8,["content"])])):(s(),l("span",Sn,"C")),a.value=="D"?(s(),l("div",kn,[t("span",wn,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[Cn]),_:1},8,["content"])])):(s(),l("span",xn,"D")),a.value=="E"?(s(),l("div",In,[t("span",Pn,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[Tn]),_:1},8,["content"])])):(s(),l("span",qn,"E")),a.value=="F"?(s(),l("div",Ln,[t("span",An,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[Vn]),_:1},8,["content"])])):(s(),l("span",Mn,"F")),a.value=="G"?(s(),l("div",Bn,[t("span",Rn,h(a.value)+" "+h(i.value),1),_(d,{content:o.value},{default:v(()=>[Un]),_:1},8,["content"])])):(s(),l("span",Fn,"G"))])):T("",!0)}}}),Ge=w(En,[["__scopeId","data-v-8e7990ce"]]),Dn=["src","alt"],On=g({__name:"Item",props:{pictures:{type:Array,required:!0},classSwiperEl:{type:String,required:!0}},setup(e){const o=e;return Ae(()=>{const n=document.querySelector(`swiper-container.${o.classSwiperEl}`);Object.assign(n,{loop:!1,navigation:!0,pagination:{clickable:!0},grabCursor:!0,slidesPerView:1,injectStyles:[` .swiper-button-next, .swiper-button-prev { background-color: white; border-radius: 100%; color: #7B7B7B; width: 40px; height: 40px; background-color: #E9E9E9; } .swiper-button-prev svg, .swiper-button-next svg { width: 24px !important; height: 24px !important; } .swiper-button-next::after, .swiper-button-prev::after { font-size: 16px; } .swiper-button-next:hover, .swiper-button-prev:hover { background-color: #7B7B7B; color: white; } @media only screen and (max-width: 767px) { .swiper-button-next, .swiper-button-prev { width: 32px; height: 32px; top: var(--swiper-navigation-top-offset, 39%); } .swiper-button-prev svg, .swiper-button-next svg { width: 12px !important; height: 12px !important; } .swiper-button-next::after, .swiper-button-prev::after { font-size: 8px; } } .swiper-pagination-bullet { width: 25px; height: 5px; border-radius: 4px; background-color: grey; } .swiper-pagination-bullet:hover { background-color: #404040; } .swiper-pagination-bullet-active { background-color: #404040; box-shadow: 0 0 0 2px white, 0 0 0 3px #A7A7A7; } swiper-pagination > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction { bottom: var(--swiper-pagination-bottom,5px); top: var(--swiper-pagination-top,auto); width: 80%; left: 110px; } @media only screen and (max-width: 767px) { swiper-pagination > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction { bottom: var(--swiper-pagination-bottom,15px); top: var(--swiper-pagination-top,auto); width: 100%; left: 0; } } `]}),n.initialize()}),(n,a)=>ie((s(),l("swiper-container",{init:"false",class:W(e.classSwiperEl)},[(s(!0),l(P,null,A(e.pictures,(i,r)=>(s(),l("swiper-slide",{key:r},[t("img",{class:"image-vehicle",loading:"lazy",src:i._links.self.href,alt:i._links.self.href},null,8,Dn)]))),128))],2)),[[ce,e.pictures.length>0]])}}),zn=w(On,[["__scopeId","data-v-0d729153"]]),Nn={class:"veh-details-slider__container"},jn={class:"veh-details-slider__item"},Hn={key:0,class:"veh-details-slider__energie-label"},Wn=g({__name:"index",props:{pictures:{type:Array,required:!0,default:[]},vehicle:{type:[Object,null],required:!1,default:null},pending:{type:Boolean,required:!1,default:!1}},setup(e){return(o,n)=>{const a=Ge,i=At;return ie((s(),l("div",Nn,[t("div",jn,[_(zn,{classSwiperEl:"swiper-vehicle-new",pictures:e.pictures},null,8,["pictures"])]),e.vehicle&&e.vehicle._embedded.consumptions?(s(),l("div",Hn,[_(a,{co2:e.vehicle._embedded.consumptions.co2||-2},null,8,["co2"])])):T("",!0),_(i,{class:"veh-details-slider__chip",color:"grey-10",text:"Visuel non contractuel",fontFamily:"regular",fontSize:"xs",size:"extra-small"})],512)),[[ce,!e.pending]])}}}),Ke=w(Wn,[["__scopeId","data-v-8864c078"]]),Gn={class:"layout-container"},Kn={class:"veh-details-config__container"},Zn={class:"veh-details-config__header"},Jn={class:"veh-details-config__content"},Qn={class:"veh-details-config__footer"},Xn={key:0,class:"overlay"},Yn=g({__name:"index",props:{isLoading:{type:Boolean,required:!1,default:!1}},setup(e){return(o,n)=>{const a=ze;return s(),l("div",Gn,[t("div",Kn,[t("div",Zn,[Q(o.$slots,"header",{},void 0,!0)]),t("div",Jn,[Q(o.$slots,"content",{},void 0,!0)]),t("div",Qn,[Q(o.$slots,"footer",{},void 0,!0)])]),e.isLoading?(s(),l("div",Xn,[_(a,{class:"dp-flex-center al-c",color:"green",size:"medium"})])):T("",!0)])}}}),Ze=w(Yn,[["__scopeId","data-v-4769ef69"]]),es={class:"veh-details-config__header-skeleton"},ts={class:"veh-details-config__content-skeleton"},ns=g({__name:"skeleton",setup(e){return(o,n)=>{const a=se,i=ze,r=Ze;return s(),S(r,null,{header:v(()=>[t("div",es,[_(a,{height:20}),_(a,{class:"mt-2",height:20})])]),content:v(()=>[t("div",ts,[_(i,{class:"centered",size:"large",color:"green"})])]),footer:v(()=>[_(a,{height:56})]),_:1})}}}),ss=w(ns,[["__scopeId","data-v-ae7183da"]]),os=["href"],is=["aria-labelledby"],cs=["id"],ls={class:"mt-2 dp-flex gap-3"},as=["src"],rs=g({__name:"Item",props:{item:{type:Object,required:!0,default:!1},index:{type:Number,required:!0,default:!1}},setup(e){const o=n=>n.status===J.orderPriced||n.status===J.orderUnPriced;return(n,a)=>{const i=De;return s(),l("a",{class:"td-none",href:e.item.href},[t("article",{class:"veh-similar-item__container","aria-labelledby":e.item.title+e.index},[t("div",null,[t("h3",{id:e.item.title+e.index,class:"c-grey-100 text-header-l font-bold"},h(e.item.title),9,cs),t("div",ls,[_(i,{type:"status",status:e.item.status},null,8,["status"]),ie(_(i,{type:"category",status:e.item.status},null,8,["status"]),[[ce,o(e.item)]])])]),ie(t("img",{src:e.item.img,alt:""},null,8,as),[[ce,e.item.img!==""]])],8,is)],8,os)}}}),ds=w(rs,[["__scopeId","data-v-d4164c1f"]]),us=e=>(z("data-v-ea6cf9b1"),e=e(),N(),e),_s={class:"veh-similar__container"},ps={"aria-labelledby":"similar-vehicles-heading"},hs=us(()=>t("h2",{class:"veh-similar__title"},"Retrouvez d'autres véhicules similaires dans notre catalogue",-1)),ms={key:0,class:"veh-similar-list"},vs={key:1,class:"veh-similar-list"},fs=g({__name:"index",props:{vehicle:{type:[Object,null],required:!0,default:null},srcImg:{type:String||null,required:!0,default:null}},setup(e){const o=e,n=x(()=>{const i=[];if(!o.vehicle)return[];for(let r=0;r<3;r++)i.push(a(o.vehicle,r));return i}),a=(i,r)=>{switch(r){case 0:return{title:`${i.brandLabel}`,status:J.stockPriced,href:`/leasing?brands=${i.brandLabel}`,img:o.srcImg};case 1:return{title:`${i.brandLabel} ${i.modelLabel}`,status:J.stockPriced,href:`/leasing?brands=${i.brandLabel}&models=${i.modelLabel}`,img:o.srcImg};case 2:return{title:`${i.brandLabel} ${i.modelLabel}`,status:J.orderPriced,href:`/leasing?brands=${i.brandLabel}&models=${i.modelLabel}&status=onOrderPriced,onOrderUnpriced`,img:o.srcImg};default:return{title:"",status:J.orderPriced,href:"/leasing",img:o.srcImg}}};return(i,r)=>{const p=se;return s(),l("div",_s,[t("section",ps,[hs,e.vehicle?(s(),l("ul",ms,[(s(!0),l(P,null,A(c(n),(d,u)=>(s(),l("li",{class:"veh-similar-item",key:u},[_(ds,{index:u,item:d},null,8,["index","item"])]))),128))])):(s(),l("ul",vs,[(s(),l(P,null,A(3,d=>t("li",{class:"veh-similar-item",key:d},[_(p,{width:40,height:26,wUnit:"%"}),_(p,{class:"mt-2",width:30,height:32,wUnit:"%"})])),64))]))])])}}}),Je=w(fs,[["__scopeId","data-v-ea6cf9b1"]]),Qe=e=>(z("data-v-c019cf75"),e=e(),N(),e),gs={class:"block"},bs=["id"],ys=["aria-labelledby"],$s={class:"standard-equipment__paragraph"},Ss=Qe(()=>t("span",{class:"check-icon"},null,-1)),ks={key:1,class:"empty-state"},ws=Qe(()=>t("img",{loading:"lazy",class:"empty-state__illustration",src:Ft,alt:""},null,-1)),Cs={class:"empty-state__explanation"},xs=g({__name:"StandardEquipment",props:{items:{}},setup(e){const o=e,{isMobileDevice:n,isTabletDevice:a}=te(),i=x(()=>n.value?1:a.value?2:4),r=O(6),p=O(0),d=x(()=>{p.value=o.items.length;const $=Math.ceil(p.value/i.value/r.value),C=[];for(let I=0;I<$;I++){const q=[];for(let f=0;f<i.value;f++){const V=[];for(let B=0;B<r.value;B++){const L=I*i.value*r.value+f*r.value+B;L<p.value&&V.push(o.items[L])}V.length>0&&q.push(V)}q.length>0&&C.push(q)}return C}),u=$e.StandardEquipement,m=O([]),{currentElementIndex:b,elementsCount:y,handleChange:k}=be({sliderItemsRef:m,containerId:u,elementGap:-24});return($,C)=>{const I=Ut;return s(),l("div",gs,[t("div",{id:c(u),class:"standard-equipment"},[c(d).length>0?(s(!0),l(P,{key:0},A(c(d),(q,f)=>(s(),l("div",{key:`section-${f}`,ref_for:!0,ref_key:"sectionsRef",ref:m,class:"standard-equipment__section",role:"group","aria-roledescription":"carousel"},[(s(!0),l(P,null,A(q,(V,B)=>(s(),l("ul",{key:`colum-${B}`,class:"standard-equipment__column",role:"group","aria-label":"Équipements standards","aria-labelledby":c(u)},[(s(!0),l(P,null,A(V,(L,R)=>(s(),l("li",{key:`colum-item-${R}`},[t("p",$s,[Ss,E(" "+h(L),1)])]))),128))],8,ys))),128))]))),128)):(s(),l("div",ks,[ws,t("p",Cs,h($.$t("product.specification.standardEquipment.emptyState.explanation")),1)]))],8,bs),c(d).length>1?(s(),S(I,{key:0,title:"Équipements",count:c(y),total:c(p),perPage:c(i)*c(r),"is-link":!1,onPageChange:C[0]||(C[0]=q=>c(k)(q-1))},null,8,["count","total","perPage"])):T("",!0)])}}}),Ie=w(xs,[["__scopeId","data-v-c019cf75"]]),Is={class:"block"},Ps=["id"],Ts=["aria-labelledby"],qs={class:"technical-sheet__description-container"},Ls={class:"technical-sheet__description"},As={key:0,class:"technical-sheet__critair-container"},Vs={class:"technical-sheet__content"},Ms={class:"technical-sheet__critair-container__item"},Bs={key:1,class:"technical-sheet__content"},Pe="BonusEcoInfo",Rs=g({__name:"TechnicalSheet",props:{items:{}},setup(e){const o=e;O([]);const{t:n}=ne(),{openModal:a,modalOpen:i,closeModal:r}=zt(Pe),p=()=>{a()},d=$e.Technical,u=O([]),{currentElementIndex:m,elementsCount:b,handleChange:y}=be({sliderItemsRef:u,containerId:d,elementGap:-24}),{isMobileDevice:k}=te(),$=x(()=>k.value?1:4),C=O(4),I=x(()=>{const q=o.items.length,f=Math.ceil(q/$.value/C.value),V=[];for(let B=0;B<f;B++){const L=[];for(let R=0;R<$.value;R++){const F=[];for(let U=0;U<C.value;U++){const M=B*$.value*C.value+R*C.value+U;M<q&&F.push(o.items[M])}F.length>0&&L.push(F)}L.length>0&&V.push(L)}return V});return(q,f)=>{const V=de,B=Et,L=Ne;return s(),l("div",Is,[t("div",{id:c(d),class:"technical-sheet"},[(s(!0),l(P,null,A(c(I),R=>(s(),l("div",{ref_for:!0,ref_key:"sectionsRef",ref:u,class:"technical-sheet__section",role:"group","aria-roledescription":"carousel"},[(s(!0),l(P,null,A(R,F=>(s(),l("ul",{class:"technical-sheet__column","aria-label":"Fiche technique",role:"group","aria-labelledby":c(d)},[(s(!0),l(P,null,A(F,(U,M)=>(s(),l("li",null,[t("div",qs,[t("p",Ls,h(U.title),1),U.title===c(n)("product.specification.technicalSheet.ecologicalBonus")?(s(),S(V,{key:0,id:Pe,label:c(n)("product.specification.technicalSheet.ecologicalBonusModalLabel"),class:"technical-sheet__info-button",onClick:f[0]||(f[0]=ct=>p())},null,8,["label"])):T("",!0)]),U.title===c(n)("product.specification.technicalSheet.critair")?(s(),l("div",As,[t("p",Vs,h(U.description||"-"),1),t("div",Ms,[U.title===c(n)("product.specification.technicalSheet.critair")?(s(),S(B,{key:0,number:"1"})):T("",!0)])])):(s(),l("p",Bs,h(U.description||"-"),1))]))),256))],8,Ts))),256))],512))),256))],8,Ps),c(I).length>1?(s(),S(L,{key:0,"active-element":c(m),onSectionChange:c(y),"total-element":c(b)},null,8,["active-element","onSectionChange","total-element"])):T("",!0)])}}}),Te=w(Rs,[["__scopeId","data-v-4a254bee"]]),Us=g({__name:"Group",props:{height:{type:Number,required:!1},width:{type:Number,required:!1},hUnit:{type:String,required:!1,default:"px"},wUnit:{type:String,required:!1,default:"px"},repeatNumber:{type:Number,required:!0,default:1},repeatNumberMobile:{type:Number,required:!1},repeatNumberTablet:{type:Number,required:!1}},setup(e){const o=e,{isMobileDevice:n,isTabletDevice:a}=te(),i=x(()=>n.value&&o.repeatNumberMobile?o.repeatNumberMobile:a.value&&o.repeatNumberTablet?o.repeatNumberTablet:o.repeatNumber);return(r,p)=>{const d=se;return s(!0),l(P,null,A(c(i),u=>(s(),S(d,{key:u,height:e.height,width:e.width,"h-unit":e.hUnit,"w-unit":e.wUnit},null,8,["height","width","h-unit","w-unit"]))),128)}}}),Fs={class:"block"},Es={key:0},Ds={key:0},Os={key:1,class:"cards__section"},zs={class:"cards__item__icon"},Ns={class:"cards__item__label"},js={class:"cards__item__value"},qe="specification-cards-detail",Hs=g({__name:"CardsDetail",props:{cards:{},isPending:{type:Boolean}},setup(e){const o=e,n=O([]),{isMobileDevice:a,isTabletDevice:i}=te(),{currentElementIndex:r,handleChange:p,elementsCount:d}=be({sliderItemsRef:n,containerId:qe,elementGap:-24}),u=x(()=>a.value?1:i.value?2:4),m=x(()=>{const b=o.cards.length,y=Math.ceil(b/u.value),k=[];for(let $=0;$<y;$++){const C=[];for(let I=0;I<u.value;I++){let q;const f=$*u.value+I;f<b&&(q=o.cards[f]),q&&C.push(q)}C.length>0&&k.push(C)}return k});return(b,y)=>{const k=se,$=Us,C=Ne;return s(),l("div",Fs,[b.isPending?(s(),l("div",Es,[c(a)?(s(),l("div",Ds,[_(k,{height:172,width:273})])):(s(),l("div",Os,[_($,{height:220,width:204,repeatNumber:4,repeatNumberTablet:2})]))])):(s(),l("div",{key:1,id:qe,class:"cards"},[(s(!0),l(P,null,A(c(m),(I,q)=>(s(),l("div",{ref_for:!0,ref_key:"sectionsRef",ref:n,class:"cards__section",key:`slider-element-${q}`},[(s(!0),l(P,null,A(I,(f,V)=>(s(),l("div",{class:"cards__item",key:`cards-item-${V}`},[t("div",zs,[t("span",{class:W(["icon",`icon__${f.iconName}`])},null,2)]),t("h3",Ns,h(f.label),1),t("p",js,h(f.value),1)]))),128))]))),128))])),c(m).length>1?(s(),S(C,{key:2,"active-element":c(r),"total-element":c(d),onSectionChange:c(p)},null,8,["active-element","total-element","onSectionChange"])):T("",!0)])}}}),Ws=w(Hs,[["__scopeId","data-v-57947f5d"]]),Gs={class:"specification-container"},Ks={class:"illustration"},Zs=["src"],Js={key:0,class:"specification__co2"},Qs={class:"specification"},Xs={class:"font-bold text-xl c-grey-100 ta-center mt-8"},Ys={class:"tab"},eo={class:"full-width"},to={class:"full-width"};var $e=(e=>(e.Technical="technical-sheet-container",e.StandardEquipement="standard-equipment-container",e))($e||{});const no=g({__name:"index",props:{equipments:{type:Array,required:!1,default:[]},srcImg:String,specs:{type:Object,required:!1,default:void 0},isPending:{type:Boolean,required:!0,default:!0},consumptions:{type:Object,required:!1,default:void 0}},setup(e){const o=e,{t:n}=ne(),a=[{id:"tab-1",title:n("product.specification.technicalSheet.title"),ariaControl:"technical-sheet-container",active:!0,components:Te,props:{items:[]}},{id:"tab-2",title:n("product.specification.standardEquipment.title"),ariaControl:"standard-equipment-container",active:!1,components:Ie,props:{items:[]}}],i=x(()=>{const m=o.specs;return m?[{label:n("product.specification.technicalSheet.energy"),value:n(`energy.${m.energy.type}`),iconName:"energy"},{label:n("product.specification.technicalSheet.transmissionType"),value:n(`transmission.${m.gearbox.type}`),iconName:"transmission"},{label:n("product.specification.technicalSheet.enginePower"),value:ke(parseInt(m.enginePower)),iconName:"enginePower"},{label:n("product.specification.technicalSheet.fiscalPower"),value:m.fiscalPower,iconName:"fiscalPower"}]:[]}),r=O("tab-1"),p=x(()=>{if(!o.specs)return a;const m=o.specs;let b=[];return o.equipments.length>0&&(b=o.equipments.filter(y=>(y.isOptional===!1||y.type.toLowerCase()==="standard")&&y.label!==null&&y.type.toLowerCase()!=="couleur").map(y=>y.label)),[{id:"tab-1",title:n("product.specification.technicalSheet.title"),ariaControl:"technical-sheet-container",active:!0,components:Te,props:{items:[{title:n("product.specification.technicalSheet.autonomy"),description:"-"},{title:n("product.specification.technicalSheet.carbonGazEmission"),description:"-"},{title:n("product.specification.technicalSheet.carbonGazLevel"),description:"-"},{title:n("product.specification.technicalSheet.vintage"),description:m.year},{title:n("product.specification.technicalSheet.energy"),description:m.energy.type?n(`energy.${m.energy.type}`):null},{title:n("product.specification.technicalSheet.enginePower"),description:m.enginePower?ke(parseInt(m.enginePower)):null},{title:n("product.specification.technicalSheet.fiscalPower"),description:m.fiscalPower},{title:n("product.specification.technicalSheet.engineSize"),description:m.cylinders},{title:n("product.specification.technicalSheet.numberOfDoor"),description:m.doornumber},{title:n("product.specification.technicalSheet.numberOfGear"),description:null},{title:n("product.specification.technicalSheet.numberOfSeat"),description:m.placeNumber},{title:n("product.specification.technicalSheet.tankCapacity"),description:null},{title:n("product.specification.technicalSheet.transmissionType"),description:m.gearbox.type?n(`transmission.${m.gearbox.type}`):null},{title:n("product.specification.technicalSheet.type"),description:m.body.type?n(`vehicleType.${m.body.type}`):null},{title:n("product.specification.technicalSheet.critair"),description:m.critair?n("card.critair",{number:m.critair}):null}]}},{id:"tab-2",title:n("product.specification.standardEquipment.title"),ariaControl:"standard-equipment-container",active:!1,components:Ie,props:{items:b}}]}),d=m=>{r.value=m},u=x(()=>p.value.find(m=>m.id===r.value));return(m,b)=>{const y=Ge,k=Rt;return s(),l("div",Gs,[t("div",Ks,[t("img",{loading:"lazy",class:"illustration__image",src:e.srcImg,alt:""},null,8,Zs),e.consumptions?(s(),l("div",Js,[_(y,{co2:e.consumptions.co2||-2},null,8,["co2"])])):T("",!0)]),t("div",Qs,[t("h2",Xs,h(m.$t("product.specification.title")),1),_(Ws,{isPending:e.isPending,cards:c(i)},null,8,["isPending","cards"]),t("div",Ys,[t("div",eo,[_(k,{tabs:c(p),onTabChange:d},null,8,["tabs"])]),t("div",to,[_(me,{mode:"out-in"},{default:v(()=>{var $,C;return[(s(),S(le(($=c(u))==null?void 0:$.components),ve({"v-if":!!c(r)},{...(C=c(u))==null?void 0:C.props}),null,16,["v-if"]))]}),_:1})])])])])}}}),Xe=w(no,[["__scopeId","data-v-64707ed5"]]),so={class:"dp-flex bg-white"},oo={class:"bg-white"},io={class:"veh-details__container"},co={class:"veh-details__left"},lo={class:"veh-details__right"},ao=["innerHTML"],ro={class:"veh-details-move-less"},uo={class:"veh-specs__container"},_o=g({__name:"Skeleton",props:{vehicle:{}},setup(e){const{breadcrumbsItems:o}=je();return(n,a)=>{const i=Ee,r=se,p=Ke,d=ss,u=Je,m=Xe;return s(),l(P,null,[t("div",so,[_(i,{items:c(o)},null,8,["items"])]),t("div",oo,[t("div",io,[t("div",co,[_(r,{class:"my-5",height:32,width:120}),_(r,{class:"mt-5",height:32,width:200}),_(p,{pending:!0,pictures:[],vehicle:null})]),t("div",lo,[_(d),t("div",{class:"mt-5 text-m font-regular ta-center",innerHTML:n.$t("product.contact.description")},null,8,ao)])]),_(u,{srcImg:"",vehicle:null})]),t("p",ro,h(n.$t("common.moveLessPolluteLess")),1),t("div",uo,[_(m,{isPending:!0,equipments:null,specs:null,srcImg:""})])],64)}}}),po=w(_o,[["__scopeId","data-v-4fd74cb9"]]),Ye="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M11%2014H10V10H9M10%206H10.01M19%2010C19%2014.9706%2014.9706%2019%2010%2019C5.02944%2019%201%2014.9706%201%2010C1%205.02944%205.02944%201%2010%201C14.9706%201%2019%205.02944%2019%2010Z'%20stroke='%2307856A'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",ho={},mo={class:"veh-details-header-skeleton__container"};function vo(e,o){const n=se;return s(),l("div",mo,[_(n,{height:40}),_(n,{height:40})])}const fo=w(ho,[["render",vo],["__scopeId","data-v-cefb58ec"]]),et=e=>(z("data-v-ddcc7f52"),e=e(),N(),e),go={key:1},bo={class:"veh-details-header__title"},yo={class:"text-header-2xl font-bold"},$o={class:"dp-flex gap-2"},So={class:"veh-details-header__version"},ko={class:"grey-80"},wo=et(()=>t("button",{class:"finition-button"},"En savoir plus sur cette finition",-1)),Co=et(()=>t("img",{src:Ye,alt:""},null,-1)),xo=[wo,Co],Io={class:"text-header-l font-bold mb-6"},Po=g({__name:"index",props:{title:{type:String,required:!0,default:""},vehicle:{type:Object,required:!1}},setup(e){const{modalActive:o,toggleModal:n}=oe();return(a,i)=>{const r=De,p=Dt,d=G,u=re;return s(),l("div",null,[e.vehicle?(s(),l("div",go,[t("div",bo,[t("h1",yo,h(e.title),1),t("div",$o,[_(r,{type:"status",status:e.vehicle.status,fontFamily:"semi-bold"},null,8,["status"]),_(r,{type:"category",status:e.vehicle.status,fontFamily:"semi-bold"},null,8,["status"])])]),t("div",So,[t("h2",ko,h(e.vehicle.versionLabel),1),t("div",{class:"dp-flex al-c gap-2",onClick:i[0]||(i[0]=(...m)=>c(n)&&c(n)(...m))},xo)]),_(u,{onClose:c(n),modalActive:c(o)},{header:v(()=>[t("h4",Io,"Équipements de la finition "+h(e.vehicle.versionLabel),1)]),content:v(()=>[c(o)?(s(),S(p,{key:0,vehicle:e.vehicle,vehicleId:e.vehicle.id},null,8,["vehicle","vehicleId"])):T("",!0)]),footer:v(()=>[_(d,{class:"mt-6",style:"primary",onClick:c(n)},{default:v(()=>[E(h(a.$t("back")),1)]),_:1},8,["onClick"])]),_:1},8,["onClose","modalActive"])])):(s(),S(fo,{key:0}))])}}}),To=w(Po,[["__scopeId","data-v-ddcc7f52"]]),qo=e=>(z("data-v-8a51e508"),e=e(),N(),e),Lo={class:"sim-trigger__container"},Ao={class:"sim-trigger__wrapper"},Vo=qo(()=>t("p",{class:"sim-trigger__desc font-regular text-m"}," Calculez le montant de votre loyer en fonction de votre apport, votre kilométrage et la durée du contrat ",-1)),Mo={class:"font-semi-bold text-m"},Bo=g({__name:"ModalTrigger",props:{id:{type:String,required:!0,default:""}},setup(e){return te(),(o,n)=>{const a=G;return s(),l("div",Lo,[t("div",Ao,[Vo,_(a,{class:"sim-trigger__button",style:"transparent",id:e.id,onClick:n[0]||(n[0]=i=>o.$emit("open"))},{default:v(()=>[t("p",Mo,h(o.$t("product.simulation.button")),1)]),_:1},8,["id"])])])}}}),Ro=w(Bo,[["__scopeId","data-v-8a51e508"]]),Uo={class:"dp-flex-center"},Fo={class:"rent-sim-result"},Eo={class:"rent-sim-result__container"},Do={class:"rent-sim-result__content"},Oo={class:"rent-sim-result__description"},zo={class:"text-header-l font-bold"},No={class:"text-header-l font-bold"},jo={class:"rent-sim-result__prices"},Ho={class:"simulation__description"},Wo={class:"simulation__edit"},Go={class:"ta-center text-header-xl font-regular mb-7"},Ko=g({__name:"AppliedResult",props:{result:{type:Object,required:!0}},emits:["open"],setup(e,{emit:o}){const n=e,{openModal:a,closeModal:i,modalActive:r}=oe(),p=x(()=>n.result.proposals[0]),d=x(()=>n.result.proposals[0].monthlyRentNumber);return(u,m)=>{const b=jt,y=de,k=G,$=Oe,C=re;return s(),l(P,null,[t("div",Uo,[t("div",Fo,[_(b,{component:"h2",content:"Simulation de prêt"}),t("div",Eo,[t("div",Do,[t("p",Oo,[E(h(u.$t("product.simulation.amountContribution.1"))+" ",1),t("strong",zo,h(("formatAmount"in u?u.formatAmount:c(H))(c(p).monthlyRentAmount)),1),E(" "+h(u.$t("product.simulation.amountContribution.2"))+" ",1),t("strong",No,h(("formatNumberWithSpaces"in u?u.formatNumberWithSpaces:c(_e))(e.result.offer.annualKilometers.toString()))+" km",1),E(" "+h(u.$t("product.simulation.amountContribution.3")),1)]),t("div",jo,[t("p",null,[E(h(u.$t("product.simulation.pricePerMonth",{pricePerMonth:("formatAmount"in u?u.formatAmount:c(H))(c(p).monthlyRentAmount),duration:c(d)}))+" ",1),_(y,{id:"open-mention-legal-sim",class:"btn-tooltip",color:"white",label:"Voir plus de détail",width:20,height:20,onClick:c(a)},null,8,["onClick"])])]),t("p",Ho,h(u.$t("product.simulation.firstRentWithService",{firstRentWithService:("formatAmount"in u?u.formatAmount:c(H))(c(p).firstRentIncreasedAmount)})),1)]),t("div",Wo,[_(k,{id:"open-realtime-sim-modal",onClick:m[0]||(m[0]=I=>u.$emit("open")),style:"transparent"},{default:v(()=>[E(h(u.$t("product.simulation.edit")),1)]),_:1})])])])]),_(C,{onClose:c(i),modalActive:c(r),isOverflow:!0},{header:v(()=>[t("h1",Go,h(u.$t("legalMention.title")),1)]),content:v(()=>[_($,{financialProposal:{monthlyRentNumber:e.result.offer.duration,annualKilometers:e.result.offer.annualKilometers,firstRentIncreaseAmountWithoutServices:c(p).firstRentIncreasedAmount},"type-mention-legal":"legalMention",modalActive:c(r)},null,8,["financialProposal","modalActive"])]),_:1},8,["onClose","modalActive"])],64)}}}),Zo=w(Ko,[["__scopeId","data-v-0619857f"]]),Jo="triggerSimModal",Qo=g({__name:"index",props:{vehicle:{type:Object,required:!0}},setup(e){const{openModal:o,closeModal:n,modalActive:a}=oe(),{rentSimResult:i}=D(he());return(r,p)=>(s(),l(P,null,[c(i)?(s(),S(Zo,{key:0,result:c(i),onOpen:c(o)},null,8,["result","onOpen"])):(s(),S(Ro,{key:1,onOpen:c(o),id:Jo},null,8,["onOpen"])),_(Tt,{modalActive:c(a),onClose:c(n),vehicle:e.vehicle},null,8,["modalActive","onClose","vehicle"])],64))}}),Xo=w(Qo,[["__scopeId","data-v-ccff4535"]]),Yo=()=>{const{tm:e}=ne();return{getAllServices:()=>{let n=e("services"),a=[];return Object.keys(n).map(i=>{let r=Number.isInteger(parseInt(i))?n[i]:void 0;r&&Object.keys(r).map(p=>{Number.isInteger(parseInt(p))&&a.push({title:r[p].title,icon:r[p].icon,code:r[p].code})})}),a}}},K=e=>(z("data-v-7ecdb60e"),e=e(),N(),e),ei={class:"options__container"},ti=K(()=>t("p",{class:"options__container-step"},"1/4 Informations",-1)),ni={class:"dp-flex-column"},si=K(()=>t("p",{class:"text-m font-regular c-grey-80 mt-5"},"Énergie",-1)),oi={class:"header-l c-grey-100 font-bold"},ii=K(()=>t("p",{class:"text-m font-regular c-grey-80 mt-5"},"Boite de vitesse",-1)),ci={class:"header-l c-grey-100 font-bold"},li=K(()=>t("p",{class:"options__container-step mt-5"},"2/4 Finition",-1)),ai={class:"dp-flex-column"},ri=K(()=>t("p",{class:"text-m font-regular c-grey-80 mt-5"},"Motorisation",-1)),di={key:0,class:"header-l c-grey-100 font-bold"},ui={key:1,class:"header-l c-grey-100 font-bold"},_i=K(()=>t("p",{class:"text-m font-regular c-grey-80 mt-5"},"Finition",-1)),pi={class:"header-l c-grey-100 font-bold"},hi=K(()=>t("p",{class:"options__container-step mt-5"},"3/4 Couleur",-1)),mi={class:"option__container-color mt-5"},vi={class:"header-l c-grey-100 font-bold mr-5"},fi=K(()=>t("p",{class:"options__container-step mt-5"},"4/4 Services",-1)),gi={key:0,class:"dp-flex-column mt-5"},bi={class:"text-m font-regular c-grey-80"},yi={key:1},$i=K(()=>t("p",{class:"header-l c-grey-100 mr-5"},"Aucun service selectionné",-1)),Si=[$i],ki=g({__name:"OptionsModal",props:{vehicle:{type:Object,required:!0},specs:{type:Object,required:!1,default:void 0}},emits:["close"],setup(e,{emit:o}){const n=e,{summaryData:a}=D(ae()),{getAllServices:i}=Yo(),r=n.vehicle._embedded.specifications,p=()=>i().map(d=>a.value.selectedServices.includes(d.code)?d:void 0).filter(d=>d);return(d,u)=>{var m,b;return s(),l("div",ei,[ti,t("div",ni,[si,t("p",oi,h(c(r).energy.label),1),ii,t("p",ci,h(("translateEnumValue"in d?d.translateEnumValue:c(gt))(c(bt),c(r).gearbox.type)),1)]),li,t("div",ai,[ri,(m=e.specs)!=null&&m.enginePower?(s(),l("p",di,h((b=e.specs)==null?void 0:b.enginePower)+" ch",1)):(s(),l("p",ui,"-")),_i,t("p",pi,h(e.vehicle.versionLabel),1)]),hi,t("div",mi,[c(r).outdoorColor?(s(),l("span",{key:0,class:"dot-color",style:pe({"background-color":c(r).outdoorColor&&("converToHexaColor"in d?d.converToHexaColor:c(ge))(c(r).outdoorColor)})},null,4)):T("",!0),t("p",vi,h(c(r).outdoorColor),1)]),fi,p().length>0?(s(),l("div",gi,[(s(!0),l(P,null,A(p(),y=>(s(),l("div",bi,[t("span",null,h(y.title),1)]))),256))])):(s(),l("div",yi,Si))])}}}),wi=w(ki,[["__scopeId","data-v-7ecdb60e"]]),tt=e=>(z("data-v-785f5d70"),e=e(),N(),e),Ci={class:"custom-header__container"},xi={class:"options-bloc"},Ii=tt(()=>t("p",{class:"ml-3 text-m font-semi-bold"},"Résumé des options",-1)),Pi=tt(()=>t("h4",{class:"text-header-l font-bold mb-5"},"Résumé des options",-1)),Ti=g({__name:"SubHeaderBloc",props:{vehicle:{type:Object,required:!0},specs:{type:Object,required:!1,default:void 0}},setup(e){const{modalActive:o,toggleModal:n,closeModal:a}=oe();return(i,r)=>{const p=G,d=re;return s(),l("div",Ci,[t("div",xi,[Ii,t("button",{class:"option",onClick:r[0]||(r[0]=(...u)=>c(n)&&c(n)(...u))},"Voir tout")]),_(d,{onClose:c(n),modalActive:c(o),isOverflow:!0},{header:v(()=>[Pi]),content:v(()=>[c(o)?(s(),S(wi,{key:0,vehicle:e.vehicle,specs:e.specs},null,8,["vehicle","specs"])):T("",!0)]),footer:v(()=>[_(p,{class:"mt-6",style:"primary",onClick:c(a)},{default:v(()=>[E(h(i.$t("back")),1)]),_:1},8,["onClick"])]),_:1},8,["onClose","modalActive"])])}}}),qi=w(Ti,[["__scopeId","data-v-785f5d70"]]),Li={class:"veh-details-trait__item"},Ai=["src"],Vi={class:"dp-flex-column"},Mi={class:"text-m font-regular c-grey-80"},Bi={class:"header-l c-grey-100 font-bold"},Ri=g({__name:"TraitBloc",props:{icon:{},title:{},value:{},color:{}},setup(e){return(o,n)=>(s(),l("div",Li,[o.color?(s(),l("span",{key:0,class:"dot-color",style:pe({"background-color":o.color&&("converToHexaColor"in o?o.converToHexaColor:c(ge))(o.color)})},null,4)):(s(),l("img",{key:1,height:"32",width:"32",src:o.icon,alt:""},null,8,Ai)),t("div",Vi,[t("p",Mi,h(o.title),1),t("p",Bi,h(o.value),1)])]))}}),nt=w(Ri,[["__scopeId","data-v-5ceab124"]]),Ui={class:"veh-details-trait__container"},Fi=g({__name:"FirstStep",props:{vehicle:{type:Object,required:!0}},setup(e){const o=e,{getTraits:n}=fe(),a=x(()=>n(o.vehicle));return(i,r)=>(s(),l("div",Ui,[(s(!0),l(P,null,A(c(a),(p,d)=>(s(),S(nt,{title:p.title,icon:p.icon,value:p.value,color:p.color,key:d},null,8,["title","icon","value","color"]))),128))]))}}),Ei=w(Fi,[["__scopeId","data-v-538f6fc7"]]),Di={key:0},Oi=["id"],zi=["id"],Se=g({__name:"FieldSet",props:{legend:{type:String,required:!0},useForm:{type:Boolean,default:!1},id:{type:String,default:!0},classStyle:{type:String,default:!1}},setup(e){return(o,n)=>(s(),l("div",null,[e.useForm?(s(),l("form",Di,[t("fieldset",{id:e.id},[t("legend",{class:W(["p-0",e.classStyle])},h(e.legend),3),Q(o.$slots,"default")],8,Oi)])):(s(),l("fieldset",{key:1,id:e.id},[t("legend",{class:W(["p-0",e.classStyle])},h(e.legend),3),Q(o.$slots,"default")],8,zi))]))}}),st=()=>{const{versions:e,selected:o,currentVersion:n}=D(j()),a=x(()=>{if(!e.value||e.value.length===0)return[];if(!o.value.energyLabel)return[];const d=JSON.parse(JSON.stringify(e.value)).filter(u=>u.energyLabel=o.value.energyLabel);return[...new Set(d.map(u=>u.enginePower).filter(u=>u!==null))]}),i=x(()=>{if(!e.value||e.value.length===0)return[];if(!o.value.energyLabel)return[];const u=JSON.parse(JSON.stringify(e.value)).filter(m=>m.energyLabel===o.value.energyLabel).map(m=>({type:m.gearboxType,label:m.gearboxLabel}));return[...new Map(u.map(m=>[m.type,m])).values()]}),r=x(()=>{if(!e.value.length)return[];const p=e.value.filter(d=>{const u=d.energyLabel===o.value.energyLabel,m=!o.value.gearboxes.length||o.value.gearboxes.includes(d.gearboxType),b=!o.value.enginePowers.length||d.enginePower&&o.value.enginePowers.includes(d.enginePower);return u&&m&&b});return n.value&&!p.find(d=>{var u;return d.code===((u=n.value)==null?void 0:u.code)})?[n.value,...p]:p});return{filteredEnginePowers:a,filteredGearboxTypes:i,filteredVersions:r}},ot=(e,o,n)=>{const a=[...e];if(o)a.includes(n)||a.push(n);else{const i=a.indexOf(n);i>-1&&a.splice(i,1)}return a},Ni={class:"mt-5"},ji={class:"mt-5 dp-flex-column gap-5"},Hi={class:"radio-card__detail items-center"},Wi={class:"radio-card__title"},Gi={class:"mt-7"},Ki={class:"mt-5 dp-flex-column gap-5"},Zi=g({__name:"InformationStep",setup(e){const{availableEnergyTypes:o,selected:n}=D(j()),{filteredGearboxTypes:a}=st(),{setSelectedGearboxes:i}=j(),r=d=>{n.value.energyLabel=d},p=(d,u)=>{const m=ot(n.value.gearboxes,d,u);i(m)};return(d,u)=>{const m=ye,b=Se,y=He;return s(),l("div",null,[t("div",Ni,[c(o).length?(s(),S(b,{key:0,legend:d.$t("product.characteristics.energieTypes.title"),id:"list-energy-id",classStyle:"text-header-l font-bold"},{default:v(()=>[t("div",ji,[(s(!0),l(P,null,A(c(o),k=>(s(),S(m,{key:k,name:"energyType",value:k,checked:k===c(n).energyLabel,onUpdate:$=>r(k)},{content:v(()=>[t("div",Hi,[t("p",Wi,h(k),1)])]),_:2},1032,["value","checked","onUpdate"]))),128))])]),_:1},8,["legend"])):T("",!0)]),t("div",Gi,[c(a).length?(s(),S(b,{key:0,legend:d.$t("product.characteristics.transmissionTypes.title"),id:"list-gearbox-id",classStyle:"text-header-l font-bold"},{default:v(()=>[t("div",Ki,[(s(!0),l(P,null,A(c(a),(k,$)=>(s(),S(y,{key:$,label:c(Ve)(k.type),"rounded-style":"rounded-m",checked:c(n).gearboxes.includes(k.type),"field-id":`${k.type}-${$}`,"onUpdate:checked":C=>p(C,k.type)},null,8,["label","checked","field-id","onUpdate:checked"]))),128))])]),_:1},8,["legend"])):T("",!0)])])}}}),Ji=w(Zi,[["__scopeId","data-v-447365bd"]]),Qi={class:"radio-card__detail items-start"},Xi={class:"text-m font-semi-bold"},Yi={key:0,class:"text-s font-regular"},ec={class:"dp-flex al-c gap-3"},tc={class:"font-bold text-m"},nc=g({__name:"ContentVersion",props:{version:{type:Object,required:!0,default:0},showTooltip:{type:Boolean,required:!1,default:!1}},setup(e){const o=()=>{};return(n,a)=>{const i=de;return s(),l("div",Qi,[t("div",null,[t("p",Xi,h(e.version.label),1),e.version.gearboxType?(s(),l("p",Yi,h(c(Ve)(e.version.gearboxType))+" • "+h(e.version.energyLabel),1)):T("",!0),t("div",ec,[t("p",tc,h(n.$t("product.characteristics.vehicleVersions.monthlyRentAmount",{amount:("formatAmount"in n?n.formatAmount:c(H))(e.version.minimumMonthlyRentAmount)})),1),e.showTooltip?(s(),S(i,{key:0,id:"id-version-info",class:"btn-tooltip",label:"Voir plus de détail",onClick:o})):T("",!0)])])])}}}),it=()=>{const{setSummaryFinProposal:e}=ae();return{fetchSetFinSummary:async n=>{try{if(!n)throw Error("Vehicle is undefined");if(n._embedded.defaultFinancialProposal){const a=n._embedded.defaultFinancialProposal,i=await Vt(n.id,a.id);i&&e(i)}}catch(a){console.error(a)}}}},sc={class:"mt-4"},oc={class:"text-m mt-1"},ic={class:"engine-bloc__container"},cc={class:"engine-bloc__item"},lc={class:"dp-flex-column gap-5 mt-5"},ac=g({__name:"VersionStep",setup(e){const{currentVersion:o,selected:n,vehicle:a}=D(j()),{clearRentSimResult:i}=he(),{setSelectedEngines:r,setCurrentVersion:p,loadVehicelDataByVersion:d}=j(),{filteredEnginePowers:u,filteredVersions:m}=st(),{loadEquipmentAndSpecs:b}=ue(),{fetchSetFinSummary:y}=it(),k=(I,q)=>{const f=ot(n.value.gearboxes,I,q);r(f)},$=I=>o.value?I===o.value.code:!1,C=async(I,q)=>{try{I.preventDefault(),p(q);const f=Ht(q._links.referencVehicle.href);if(!f)throw Error("Vehicle ID not found in the provided URL");i(),await d(f),await b(f),await y(a.value)}catch(f){throw Error(`Handle version error: ${f.message}`)}};return(I,q)=>{const f=He,V=Se,B=ye;return s(),l("div",sc,[t("p",null,h(c(m).length)+" finitions disponibles",1),c(u).length?(s(),S(V,{key:0,legend:I.$t("product.characteristics.engineTypes.title"),id:"list-engine-id",classStyle:"text-header-l font-bold"},{default:v(()=>[t("p",oc,h(I.$t("product.characteristics.engineTypes.description")),1),t("div",ic,[(s(!0),l(P,null,A(c(u),(L,R)=>(s(),l("div",cc,[(s(),S(f,{key:R,label:c(we)(L)+"ch","rounded-style":"rounded-m",checked:!1,"field-id":c(we)(L)+"ch","onUpdate:checked":F=>k(F,L)},null,8,["label","field-id","onUpdate:checked"]))]))),256))])]),_:1},8,["legend"])):T("",!0),c(m).length?(s(),S(V,{key:1,class:"mt-5",legend:I.$t("product.characteristics.vehicleVersions.title"),id:"list-version-id",classStyle:"text-header-l font-bold"},{default:v(()=>[t("div",lc,[(s(!0),l(P,null,A(c(m),(L,R)=>(s(),S(B,{key:`radio-version-${R}`,name:"radio-versions",value:L.code,checked:$(L.code),onClick:F=>C(F,L)},{content:v(()=>[_(nc,{version:L,"show-tooltip":$(L.code)},null,8,["version","show-tooltip"])]),_:2},1032,["value","checked","onClick"]))),128))])]),_:1},8,["legend"])):T("",!0)])}}}),rc=w(ac,[["__scopeId","data-v-1a0568be"]]),dc=e=>(z("data-v-0ef4fe30"),e=e(),N(),e),uc={class:"dp-flex-column"},_c=dc(()=>t("p",{class:"my-5"},"1 couleur disponible",-1)),pc={class:"radio-colors"},hc={class:"radio-colors__text"},mc={class:"text-m font-semi-bold"},vc=g({__name:"ColorStep",props:{vehicle:{type:Object,required:!0}},setup(e){const o=e,n=()=>{},a=x(()=>[{id:o.vehicle._embedded.specifications.outdoorColor,label:o.vehicle._embedded.specifications.outdoorColor}]);return(i,r)=>{const p=ye;return s(),l("div",uc,[_c,(s(!0),l(P,null,A(c(a),(d,u)=>(s(),S(p,{key:u,name:"radio-colors",checked:!0,value:d.id,onUpdate:r[0]||(r[0]=m=>n())},{content:v(()=>[t("div",pc,[d.label?(s(),l("span",{key:0,class:"dot",style:pe({"background-color":d.label&&("converToHexaColor"in i?i.converToHexaColor:c(ge))(d.label)})},null,4)):T("",!0),t("div",hc,[t("div",null,[t("p",mc,h(d.label),1)])])])]),_:2},1032,["value"]))),128))])}}}),fc=w(vc,[["__scopeId","data-v-0ef4fe30"]]),gc={class:"underline-tab-content"},bc=g({__name:"Item",props:{title:{type:String,required:!0}},setup(e){const o=yt("selectedTitle");return(n,a)=>ie((s(),l("div",gc,[Q(n.$slots,"default",{},void 0,!0)],512)),[[ce,e.title==c(o)]])}}),yc=w(bc,[["__scopeId","data-v-2c6b95b3"]]),$c={class:"underline-tabs"},Sc={class:"underline-tabs__header"},kc=["onClick"],wc=g({__name:"index",setup(e){const o=$t(),n=O(o.default()[0].children.map(d=>d.props.title)),a=O(n.value[0]);St("selectedTitle",a);const i=()=>n.value.map(d=>({code:d,label:d})),r=i()[0],p=d=>{a.value=d.code};return(d,u)=>{const m=Wt;return s(),l("div",$c,[t("ul",Sc,[(s(!0),l(P,null,A(n.value,b=>(s(),l("li",{key:b,class:W({selected:b==a.value}),onClick:y=>a.value=b},h(b),11,kc))),128))]),_(m,{options:i(),"pre-select":c(r),id:"services-list",onUpdate:p,"w-select":"224",class:"underline-tabs__header-mobile"},null,8,["options","pre-select"]),Q(d.$slots,"default",{},void 0,!0)])}}}),Cc=w(wc,[["__scopeId","data-v-8433fcde"]]),xc=e=>(z("data-v-d3ddc9f4"),e=e(),N(),e),Ic=["name","checked","aria-checked"],Pc={class:"content"},Tc=["src"],qc={class:"text-m font-regular"},Lc={key:0,class:"text-header-l font-bold"},Ac=xc(()=>t("span",{class:"checkmark","aria-hidden":"true"},null,-1)),Vc=g({__name:"ServiceCheckbox",props:{title:{type:String,required:!0,default:""},id:{type:String,required:!0},price:{type:String,required:!1,default:void 0},checked:{type:Boolean,default:!1},icon:{type:String,required:!1}},emits:["update"],setup(e,{emit:o}){const n=e,a=o,i=r=>{a("update",n.id,!n.checked),r.preventDefault()};return(r,p)=>(s(),l("div",{class:"service-checkbox",onClick:i},[t("label",null,[t("input",{name:e.id,type:"checkbox",onKeyup:kt(i,["enter"]),checked:e.checked,"aria-checked":e.checked},null,40,Ic),t("div",Pc,[t("img",{class:"icon",loading:"lazy",src:e.icon,alt:""},null,8,Tc),t("div",null,[t("h4",qc,h(e.title),1),e.price?(s(),l("p",Lc,"+ "+h(e.price)+" €/mois",1)):T("",!0)])]),Ac])]))}}),Mc=w(Vc,[["__scopeId","data-v-d3ddc9f4"]]),ee=e=>(z("data-v-ea8e009a"),e=e(),N(),e),Bc={class:"mb-6"},Rc=ee(()=>t("p",{class:"mt-5 text-m font-semi-bold"},"Sélectionnez les services qui vous intéressent",-1)),Uc=ee(()=>t("a",{class:"text-m font-semi-bold",role:"button"},"En savoir plus sur les services",-1)),Fc=ee(()=>t("img",{src:Ye,alt:""},null,-1)),Ec=[Uc,Fc],Dc={class:"mt-5 dp-flex-column gap-5 list-inputs"},Oc=ee(()=>t("br",null,null,-1)),zc=ee(()=>t("br",null,null,-1)),Nc=ee(()=>t("h2",{class:"header-xl font-bold mb-6"},"Services",-1)),jc={class:"text-header-l font-semi-bold c-grey-100"},Hc=ee(()=>t("br",null,null,-1)),Wc=["innerHTML"],Gc=g({__name:"ServiceStep",props:{vehicle:{type:Object,required:!0,default:0}},setup(e){const{tm:o}=ne(),{modalActive:n,toggleModal:a,closeModal:i}=oe(),{updateSeletedServices:r}=ae(),{cSelectedServices:p}=D(ae()),d=(b,y)=>{r(b,y)},u=()=>{let b=o("services");return Object.keys(b).map(y=>{let k=Number.isInteger(parseInt(y))?b[y]:void 0;if(k){let $=[];return Object.keys(k).map(C=>{Number.isInteger(parseInt(C))&&$.push(k[C])}),{title:k.title,services:$}}}).filter(y=>y)},m=()=>{const b=u();let y=[];return b.forEach(k=>{k==null||k.services.forEach($=>{$.showInTab=="true"&&y.push({tabTitle:$.tabTitle,subTitle:$.subTitle,description:$.description})})}),y};return(b,y)=>{const k=Se,$=yc,C=Cc,I=G,q=re;return s(),l("div",null,[t("div",Bc,[Rc,t("div",{class:"dp-flex al-c gap-2 mt-2 c-p",tabindex:"0",onClick:y[0]||(y[0]=(...f)=>c(a)&&c(a)(...f))},Ec)]),(s(!0),l(P,null,A(u(),f=>(s(),S(k,{legend:f==null?void 0:f.title,id:f==null?void 0:f.title,classStyle:"text-header-l font-bold"},{default:v(()=>[t("ul",Dc,[(s(!0),l(P,null,A(f==null?void 0:f.services,V=>(s(),l("li",{key:V.code},[_(Mc,{checked:c(p).includes(V.code),title:V.title,id:V.code,icon:V.icon,onUpdate:d},null,8,["checked","title","id","icon"])]))),128))]),Oc,zc]),_:2},1032,["legend","id"]))),256)),_(q,{onClose:c(a),modalActive:c(n)},{header:v(()=>[Nc]),content:v(()=>[_(C,null,{default:v(()=>[(s(!0),l(P,null,A(m(),f=>(s(),S($,{key:f.tabTitle,title:f.tabTitle,class:"underline-tab-item__container"},{default:v(()=>[t("h3",jc,h(f.subTitle),1),Hc,t("p",{class:"text-m",innerHTML:f.description},null,8,Wc)]),_:2},1032,["title"]))),128))]),_:1})]),footer:v(()=>[_(I,{class:"mt-8",style:"primary",onClick:c(i)},{default:v(()=>[E(h(b.$t("back")),1)]),_:1},8,["onClick"])]),_:1},8,["onClose","modalActive"])])}}}),Le=w(Gc,[["__scopeId","data-v-ea8e009a"]]),Kc={class:"veh-details-trait__container"},Zc=g({__name:"InformationStep",props:{vehicle:{type:Object,required:!0}},setup(e){const o=e,{getTraits:n}=fe(),a=x(()=>n(o.vehicle));return(i,r)=>(s(),l("div",Kc,[(s(!0),l(P,null,A(c(a),(p,d)=>(s(),S(nt,{title:p.title,icon:p.icon,value:p.value,color:p.color,key:d},null,8,["title","icon","value","color"]))),128))]))}}),Jc=w(Zc,[["__scopeId","data-v-df655b74"]]),Qc={key:0,class:"dp-flex-center al-c gap-2"},Xc=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.4571 4.29289C16.8476 4.68342 16.8476 5.31658 16.4571 5.70711L10.1642 12L16.4571 18.2929C16.8476 18.6834 16.8476 19.3166 16.4571 19.7071C16.0666 20.0976 15.4334 20.0976 15.0429 19.7071L8.04289 12.7071C7.65237 12.3166 7.65237 11.6834 8.04289 11.2929L15.0429 4.29289C15.4334 3.90237 16.0666 3.90237 16.4571 4.29289Z",fill:"#07856A"})],-1),Yc={key:1,class:"dp-flex-center al-c gap-2"},el=t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},[t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.54289 19.7071C8.15237 19.3166 8.15237 18.6834 8.54289 18.2929L14.8358 12L8.54289 5.70711C8.15237 5.31658 8.15237 4.68342 8.54289 4.29289C8.93342 3.90237 9.56658 3.90237 9.95711 4.29289L16.9571 11.2929C17.3476 11.6834 17.3476 12.3166 16.9571 12.7071L9.95711 19.7071C9.56658 20.0976 8.93342 20.0976 8.54289 19.7071Z",fill:"white"})],-1),Z=g({__name:"StepButtonContent",props:{title:{type:String,required:!0},type:{type:String,required:!0}},setup(e){return(o,n)=>e.type=="previous"?(s(),l("div",Qc,[Xc,t("span",null,h(e.title),1)])):(s(),l("div",Yc,[t("span",null,h(e.title),1),el]))}}),tl={key:0,class:"dp-flex-between gap-5"},nl={key:1,class:"dp-flex-between gap-5 step1"},sl=g({__name:"Footer",props:{step:{type:Number,required:!0,default:0}},setup(e){const{isUnderDesktop:o}=te(),n=x(()=>o.value?"Services":"Choisir des services");return(a,i)=>{const r=G;return e.step==0?(s(),l("div",tl,[_(r,{style:"secondary",onClick:i[0]||(i[0]=p=>a.$emit("nextStep"))},{default:v(()=>[E(h(c(n)),1)]),_:1}),_(r,{style:"primary",onClick:i[1]||(i[1]=p=>a.$emit("save"))},{default:v(()=>[_(Z,{title:"Finaliser",type:"next"})]),_:1})])):(s(),l("div",nl,[_(r,{style:"secondary",onClick:i[2]||(i[2]=p=>a.$emit("previousStep"))},{default:v(()=>[_(Z,{title:"Précédent",type:"previous"})]),_:1}),_(r,{style:"primary",onClick:i[3]||(i[3]=p=>a.$emit("save"))},{default:v(()=>[_(Z,{title:"Finaliser",type:"next"})]),_:1})]))}}}),ol=w(sl,[["__scopeId","data-v-cca74528"]]),il={key:0,class:"dp-flex-center"},cl={key:1,class:"dp-flex-between gap-5"},ll={key:2,class:"dp-flex-between gap-5"},al=g({__name:"Footer",props:{step:{type:Number,required:!0,default:0}},setup(e){return(o,n)=>{const a=G;return e.step==0?(s(),l("div",il,[_(a,{style:"primary",onClick:n[0]||(n[0]=i=>o.$emit("nextStep"))},{default:v(()=>[_(Z,{title:"Suivant",type:"next"})]),_:1})])):e.step==1||e.step==2?(s(),l("div",cl,[_(a,{style:"secondary",onClick:n[1]||(n[1]=i=>o.$emit("previousStep"))},{default:v(()=>[_(Z,{title:"Précédent",type:"previous"})]),_:1}),_(a,{style:"primary",onClick:n[2]||(n[2]=i=>o.$emit("nextStep"))},{default:v(()=>[_(Z,{title:"Suivant",type:"next"})]),_:1})])):e.step==3?(s(),l("div",ll,[_(a,{style:"secondary",onClick:n[3]||(n[3]=i=>o.$emit("previousStep"))},{default:v(()=>[_(Z,{title:"Précédent",type:"previous"})]),_:1}),_(a,{style:"primary",onClick:n[4]||(n[4]=i=>o.$emit("save"))},{default:v(()=>[_(Z,{title:"Finaliser",type:"next"})]),_:1})])):T("",!0)}}}),rl=w(al,[["__scopeId","data-v-9c5362d7"]]),dl={class:"veh-unpriced-footer"},ul=g({__name:"Footer",props:{step:{type:Number,required:!0,default:0}},setup(e){return(o,n)=>{const a=G;return s(),l("div",dl,[t("h3",null,h(o.$t("product.characteristics.footer.financialLOA")),1),_(a,{style:"primary",onClick:n[0]||(n[0]=i=>o.$emit("save"))},{default:v(()=>[E(h(o.$t("product.characteristics.footer.contactAgency")),1)]),_:1})])}}}),_l=w(ul,[["__scopeId","data-v-0c8a6d1d"]]),pl={class:"text-header-xl font-bold"},hl=g({__name:"StepBloc",props:{currentStep:{},totalStep:{},title:{}},setup(e){const o=e,n=x(()=>o.title?`${o.currentStep}/${o.totalStep} ${o.title}`:"");return(a,i)=>(s(),l("h3",pl,h(c(n)),1))}}),ml={class:"monthly-pricing"},vl=["innerHTML"],fl={class:"ta-center"},gl={class:"ta-center"},bl=g({__name:"MonthlyPricing",props:{monthlyAmount:{type:String,required:!0},priceWithVat:{type:String,required:!0},firstRentIncreaseAmount:{type:String,required:!0}},emits:["open"],setup(e,{emit:o}){return(n,a)=>{const i=de;return s(),l(P,null,[t("div",ml,[t("p",{class:"text-header-l font-bold",innerHTML:n.$t("product.characteristics.header.monthlyRentAmount",{monthlyAmount:e.monthlyAmount})},null,8,vl),_(i,{id:"idLegalInfo",class:"btn-tooltip",color:"white",label:"Voir plus de détail",onClick:a[0]||(a[0]=r=>n.$emit("open")),width:20,height:20})]),t("p",fl,h(n.$t("product.characteristics.header.priceWithVat",{priceWithVat:e.priceWithVat})),1),t("p",gl,h(n.$t("product.characteristics.header.firstRentWithService",{firstRentWithService:e.firstRentIncreaseAmount})),1)],64)}}}),yl=w(bl,[["__scopeId","data-v-d4dc2c03"]]),$l={class:"vehicle-pricing-bloc"},Sl={class:"dp-flex al-c gap-3"},kl=["innerHTML"],wl={class:"c-white mt-2"},Cl=g({__name:"VehiclePricing",props:{vehiclePricing:{type:String,required:!0}},emits:["open"],setup(e,{emit:o}){return(n,a)=>{const i=de;return s(),l("div",$l,[t("div",Sl,[t("p",{class:"text-header-l font bold",innerHTML:n.$t("product.characteristics.header.priceTTC",{price:e.vehiclePricing})},null,8,kl),_(i,{id:"idLegalInfo",class:"btn-tooltip",color:"white",label:"Voir plus de détail",onClick:a[0]||(a[0]=r=>n.$emit("open")),width:20,height:20})]),t("p",wl,h(n.$t("card.description")),1)])}}}),xl=w(Cl,[["__scopeId","data-v-5ac14fb2"]]),Il={class:"custom-header__container"},Pl={class:"favorite-bloc"},Tl={class:"price-bloc"},ql={class:"ta-center text-header-xl font-regular mb-7"},Ll=g({__name:"HeaderBloc",props:{vehicle:{type:Object,required:!0},typeMentionLegal:{type:String,required:!1,default:"legalMention"},simResult:{type:Object,required:!1,default:null}},setup(e){const{modalActive:o,toggleModal:n,closeModal:a}=oe(),i=e,r=x(()=>{const d=i.vehicle._embedded.defaultFinancialProposal,u=i.vehicle._embedded.pricing.priceWithVat;return d?{component:yl,props:{monthlyAmount:H(d.monthlyRentAmount),priceWithVat:H(u),firstRentIncreaseAmount:_e(String(d.firstRentIncreaseAmount))}}:{component:xl,props:{vehiclePricing:H(u)}}});x(()=>{const d=i.vehicle._embedded.defaultFinancialProposal;return d?{monthlyAmount:H(d.monthlyRentAmount),firstRentIncreaseAmount:_e(String(d.firstRentIncreaseAmount))}:{vehiclePrice:0}}),x(()=>{var u;const d=((u=i.vehicle._embedded.defaultFinancialProposal)==null?void 0:u.monthlyRentAmount)||0;return H(d)}),x(()=>{var u;const d=((u=i.vehicle._embedded.defaultFinancialProposal)==null?void 0:u.firstRentIncreaseAmount)||0;return _e(String(d))});const p=()=>i.vehicle._embedded.defaultFinancialProposal!==null;return(d,u)=>{const m=Oe,b=Mt,y=re;return s(),l("div",Il,[t("div",Pl,[_(Ot,{vehicle:e.vehicle,style:"secondary"},null,8,["vehicle"])]),t("div",Tl,[(s(),S(le(c(r).component),ve({onOpen:c(n)},{...c(r).props}),null,16,["onOpen"]))]),_(y,{onClose:c(a),modalActive:c(o),isOverflow:!0},{header:v(()=>[t("h1",ql,h(d.$t(`${e.typeMentionLegal}.title`)),1)]),content:v(()=>[p()?(s(),S(m,{key:0,"default-financial-proposal":e.simResult?null:e.vehicle._embedded.defaultFinancialProposal,"type-mention-legal":e.typeMentionLegal,modalActive:c(o),vehicleId:e.simResult?null:e.vehicle.id,financialProposal:e.simResult?c(Fe)(e.simResult):null},null,8,["default-financial-proposal","type-mention-legal","modalActive","vehicleId","financialProposal"])):(s(),S(b,{key:1}))]),_:1},8,["onClose","modalActive"])])}}}),Al=w(Ll,[["__scopeId","data-v-0c92b68b"]]),Vl=e=>(z("data-v-4d4f3305"),e=e(),N(),e),Ml={key:0,class:"sub-content"},Bl=Vl(()=>t("hr",{class:"section-line"},null,-1)),Rl=g({__name:"index",props:{vehicle:{type:Object,required:!0},isLoading:{type:Boolean,required:!1,default:!1},specs:{type:Object,required:!1,default:void 0}},setup(e){const o=e,n=L=>L._embedded.defaultFinancialProposal===null||L.isInStock?0:1,{rentSimResult:a}=D(he()),i=O(n(o.vehicle)),{goToRecap:r}=fe(),{setVehicleInfo:p,setVehicleHref:d,setSummaryFinProposal:u}=ae(),m=Me(),b=[{title:"Informations",component:Ei},{title:"Services",component:Le}],y=[{title:"Informations",component:Ji},{title:"Finition",component:rc},{title:"Couleur",component:fc},{title:"Services",component:Le}],k=[{title:null,component:Jc}],$=x(()=>o.vehicle._embedded.defaultFinancialProposal===null?k:o.vehicle.isInStock?b:y),C=x(()=>({component:$.value[i.value].component,props:{vehicle:o.vehicle}})),I=x(()=>o.vehicle._embedded.defaultFinancialProposal===null?{component:_l,props:{step:i.value}}:o.vehicle.isInStock?{component:ol,props:{step:i.value}}:{component:rl,props:{step:i.value}}),q=()=>i.value>=0||i.value<=$.value.length,f=()=>{q()&&i.value--},V=()=>{q()&&i.value++},B=()=>{const L=m.currentRoute.value.fullPath;d(L),p(o.vehicle),a.value&&u(Fe(a.value)),r()};return(L,R)=>{const F=qi,U=Ze;return s(),S(U,{isLoading:e.isLoading},{header:v(()=>[_(Al,{vehicle:e.vehicle,simResult:c(a)},null,8,["vehicle","simResult"])]),content:v(()=>[!e.vehicle.isInStock&&e.vehicle.status!=="onOrderUnpriced"?(s(),l("div",Ml,[_(F,{vehicle:e.vehicle,specs:e.specs},null,8,["vehicle","specs"]),Bl])):T("",!0),_(hl,{currentStep:i.value+1,title:$.value[i.value].title,totalStep:$.value.length},null,8,["currentStep","title","totalStep"]),_(me,{mode:"out-in",name:"component-fade"},{default:v(()=>[(s(),S(le(C.value.component),Be(Re({...C.value.props})),null,16))]),_:1})]),footer:v(()=>[(s(),S(le(I.value.component),ve({...I.value.props},{onPreviousStep:f,onNextStep:V,onSave:B}),null,16))]),_:1},8,["isLoading"])}}}),Ul=w(Rl,[["__scopeId","data-v-4d4f3305"]]),Fl={class:"media-card-horizontal"},El={key:0,class:"media-card-horizontal__button"},Dl={class:"link-container"},Ol=g({__name:"Horizontal",props:{title:{},description:{},link:{},button:{},style:{},imageUrl:{},hasSectionInverted:{type:Boolean,default:!1},colorBgRight:{},hasTextLink:{type:Boolean,default:!1}},setup(e){wt(r=>({"12ff3167":c(i)}));const o=e,n=()=>o.style==="primary",a={title:n()?"media-card-horizontal__title":"media-card-horizontal__title-secondary",right:n()?"media-card-horizontal__right":"media-card-horizontal__right-secondary",desc:n()?"media-card-horizontal__description":"media-card-horizontal__description-secondary",linkIcon:n()?"link-icon":"link-icon-secondary"},i=x(()=>o.hasSectionInverted?"row-reverse":"row");return(r,p)=>{const d=G;return s(),l("div",Fl,[t("div",{class:"media-card-horizontal__left",style:pe({backgroundImage:`url('${o.imageUrl}')`,backgroundSize:"cover",backgroundPosition:"center"})},null,4),t("div",{class:W(a.right)},[t("h2",{class:W(a.title)},h(r.title),3),t("p",{class:W(a.desc)},h(r.description),3),r.link||r.button?(s(),l("div",El,[r.link&&!r.hasTextLink?(s(),S(d,{key:0,to:r.$rt(r.link.to),style:"secondary"},{default:v(()=>[t("span",Dl,[E(h(r.$rt(r.link.title))+" ",1),t("span",{class:W(a.linkIcon)},null,2)])]),_:1},8,["to"])):r.link&&r.hasTextLink?(s(),S(Gt,{key:1,href:r.$rt(r.link.to),label:r.$rt(r.link.title)},null,8,["href","label"])):r.button?(s(),S(d,{key:2,style:"primary",onClick:p[0]||(p[0]=u=>r.$emit("handleButton"))},{default:v(()=>[E(h(r.button.title),1)]),_:1})):T("",!0)])):T("",!0)],2)])}}}),zl=w(Ol,[["__scopeId","data-v-a7551b35"]]),Nl={class:"container"},jl={key:0,class:"dp-flex-center mt-11"},Hl=g({__name:"List",setup(e){const{tm:o}=ne(),n=o("product.serviceCards"),a=Object.keys(n).length;return(i,r)=>{const p=zl;return s(),l("div",Nl,[c(a)>0?(s(),l("div",jl,[(s(!0),l(P,null,A(c(n),(d,u)=>(s(),S(p,{key:`highlight-section-${u.toString()}`,title:i.$rt(d.title),description:i.$rt(d.description),link:d.link&&{to:i.$rt(d.link.to),title:i.$rt(d.link.title)},"image-url":i.$rt(d.imageUrl),"has-section-inverted":u%2===0,style:"secondary"},null,8,["title","description","link","image-url","has-section-inverted"]))),128))])):T("",!0)])}}}),Wl={class:"icon-circle"},Gl=["src"],Kl=g({__name:"Circle",props:{srcIcon:{type:String,required:!0}},setup(e){return(o,n)=>(s(),l("div",Wl,[t("img",{loading:"lazy",class:"icon",src:e.srcIcon,alt:""},null,8,Gl)]))}}),Zl=w(Kl,[["__scopeId","data-v-f4682ac5"]]),Jl={class:"bg-white mt-11"},Ql={class:"why-choose__container"},Xl={class:"ta-center text-header-2xl font-bold"},Yl={class:"ta-center text-m font-regular mt-2"},ea={key:0,class:"why-choose__reason-list"},ta={class:"why-choose__reason-item"},na=["innerHTML"],sa=g({__name:"WhyChoose",setup(e){const{tm:o}=ne(),n=o("product.whyChooseUs.services"),a=Object.keys(n).length;return(i,r)=>{const p=Zl;return s(),l("div",Jl,[t("div",Ql,[t("h2",Xl,h(i.$t("product.whyChooseUs.title")),1),t("p",Yl,h(i.$t("product.whyChooseUs.description")),1),c(a)>0?(s(),l("div",ea,[(s(!0),l(P,null,A(c(n),(d,u)=>(s(),l("div",ta,[_(p,{srcIcon:d.icon},null,8,["srcIcon"]),t("div",{class:"ta-center",innerHTML:d.desc},null,8,na)]))),256))])):T("",!0)])])}}}),oa=w(sa,[["__scopeId","data-v-b391cc83"]]),ia=Ct(()=>xt(()=>import("./index.BccdNRz9.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(e=>e.default||e)),ca={class:"dp-flex bg-white"},la={class:"bg-white"},aa={class:"veh-details__container"},ra={class:"veh-details__left"},da={class:"veh-details__right"},ua=["innerHTML"],_a={class:"veh-details-move-less"},pa={class:"veh-specs__container"},ha=g({__name:"index",props:{vehicle:{}},setup(e){const o=e,{id:n}=Ue().params,{loadVersionOnInit:a,setVehicle:i}=j(),{isLoadingVersion:r}=D(j()),{loadEquipmentAndSpecs:p}=ue(),{isLoadingSpecs:d}=D(ue()),{loadPartnerCatalog:u}=qt(),{getTitle:m}=D(j()),{refPicture:b,sliderPictures:y,specPicture:k}=Lt(),{equipments:$,specifications:C}=D(ue()),{loadPictureById:I}=j(),{fetchSetFinSummary:q}=it(),{pushVehicleDetailGMT:f,updatePageChange:V}=Nt(),{getSeoMetaVehDetail:B}=Zt(),{createBrandModelBreadCrumb:L,breadcrumbsItems:R}=je(),F=x(()=>!(!o.vehicle||!o.vehicle._embedded.defaultFinancialProposal)),U=x(()=>o.vehicle.status===J.stockPriced||o.vehicle.status===J.stockUnPriced);return Ae(async()=>{try{i(o.vehicle),L({brandLabel:o.vehicle.brandLabel,modelLabel:o.vehicle.modelLabel,vehicleId:o.vehicle.id}),Kt(B(o.vehicle)),f(o.vehicle),V({filters:null,product:o.vehicle,article:null}),await u(),await a(o.vehicle),await p(n),await q(o.vehicle)}catch(M){console.error("Error in loadOnInit: ",M)}I(n)}),(M,ct)=>{const lt=Ee,at=To,rt=Ke,dt=Xo,ut=Ul,_t=Je,pt=Xe,ht=Hl,mt=ia,vt=oa;return s(),l(P,null,[t("div",ca,[_(lt,{items:c(R)},null,8,["items"])]),t("div",la,[t("div",aa,[t("div",ra,[_(at,{title:c(m),vehicle:M.vehicle},null,8,["title","vehicle"]),_(rt,{pictures:c(y),vehicle:M.vehicle},null,8,["pictures","vehicle"]),c(F)?(s(),S(dt,{key:0,vehicle:M.vehicle},null,8,["vehicle"])):T("",!0)]),t("div",da,[_(ut,{vehicle:M.vehicle,isLoading:c(r),specs:c(C)},null,8,["vehicle","isLoading","specs"]),t("div",{class:"mt-5 text-m font-regular ta-center",innerHTML:M.$t("product.contact.description")},null,8,ua)])]),_(_t,{srcImg:c(b)._links.self.href,vehicle:M.vehicle},null,8,["srcImg","vehicle"])]),t("p",_a,h(M.$t("common.moveLessPolluteLess")),1),t("div",pa,[_(pt,{isPending:c(d)||!M.vehicle,equipments:c($),specs:c(C),consumptions:M.vehicle._embedded.consumptions,srcImg:c(k)._links.self.href},null,8,["isPending","equipments","specs","consumptions","srcImg"]),c(Ce)(M.vehicle._embedded.defaultFinancialProposal)?(s(),S(ht,{key:0})):T("",!0),c(U)?(s(),S(mt,{key:1,vehicle:M.vehicle},null,8,["vehicle"])):T("",!0)]),c(Ce)(M.vehicle._embedded.defaultFinancialProposal)?(s(),S(vt,{key:0})):T("",!0)],64)}}}),Wa=g({__name:"[id]",setup(e){const{id:o}=Ue().params,n=Me(),{clearPictures:a}=j(),{clearRentSimResult:i}=he(),{data:r,pending:p}=It("fetch-vehicle-details",async()=>{try{i(),a();const u=await Pt(o);return u||(console.warn("Vehicle data is null or undefined. Redirecting..."),n.push("/leasing"),null)}catch(u){return console.error("Error in useAsyncData fetchVehicle: ",u),n.push("/leasing"),null}}),d=x(()=>{const u={vehicle:r.value};return p.value||!r.value?{component:po,props:u}:{component:ha,props:u}});return(u,m)=>{const b=rn;return s(),l(P,null,[_(b),(s(),S(le(c(d).component),Be(Re({...c(d).props})),null,16))],64)}}});export{Wa as default};