import{q as p,o as c,c as m,a as e,d as o,t as r,r as x,v as h,b as y,C as d,i as v}from"./entry.01d4b5f9.js";import{a as b}from"./RoundedButton.f48696b9.js";import{u as g}from"./dayjs.12728dc2.js";const $={class:"flex"},j={class:"max-md:flex max-md:justify-center max-sm:flex max-sm:flex-col md:ml-auto md:text-right"},w={class:"text-primary flex flex items-start text-[2.5rem] font-bold max-md:mr-10 sm:justify-center md:justify-end"},k=e("span",{class:"text-[1.8rem]"},[o("€ "),e("sup",{class:"text-[12px]"},"TTC")],-1),C={class:"max-sm:flex max-sm:flex-col"},D=e("div",{class:"text-primary font-medium text-[0.75]"},"Détail du prix",-1),q={class:"text-neutral-lighter"},B={class:"font-bold"},N={class:"font-bold"},V={class:"font-bold"},J={__name:"Price",props:{pricing:{type:Object,required:!0}},setup(t){return p(),(i,u)=>(c(),m("div",$,[e("div",j,[e("div",w,[o(r(i.$n(t.pricing.total_ttc,"decimal"))+" ",1),k]),e("div",C,[D,e("div",q,[e("div",null,[o(" Prise en charge "),e("span",B,r(i.$n(t.pricing.pickup_fee,"currency")),1)]),e("div",null,[o(" Prix kilométrique "),e("span",N,r(i.$n(t.pricing.km_price,"currency")),1)]),e("div",null,[o(" Commission Furnargos "),e("span",V,r(i.$n(t.pricing.funargos_commission,"currency")),1)])])])])]))}},Y={class:"border-primary-lightest max:md:justify-start w-full rounded-2xl border-2 p-7 transition-colors md:px-16 md:py-14"},P={key:0,class:"text-primary mb-5 flex items-center justify-between uppercase"},S={class:"flex items-center"},M={class:"flex flex-col justify-between gap-3 border-b-2 border-dotted pb-5 lg:flex-row"},E={class:"text-primary flex flex-col"},F={class:"flex min-h-[4rem]"},R=e("div",{class:"mr-3 flex flex-col items-center py-2"},[e("div",{class:"bg-secondary h-4 w-4 rounded-full"}),e("div",{class:"border-primary-lighter grow border-l-4 border-dotted border-opacity-60"}),e("div",{class:"bg-ternary h-4 w-4 rounded-full"})],-1),T={class:"flex flex-col justify-between whitespace-nowrap text-[1.5rem] font-semibold leading-[1.5rem]"},z={class:"max-md:py-3"},A={class:"pt-4"},K={__name:"BaseRouteCard",props:{route:{type:Object,required:!0}},setup(t){const i=g();x(!1),h(()=>route.value.distance/1e3);const u=(s,l)=>(l=l==="morning"?"au matin (00h00 à 11h59)":"après-midi (12h00 à 23h59)","Départ le "+i(s).format("DD/MM/YYYY")+" "+l);return(s,l)=>{var f;const _=b;return c(),m("div",Y,[(f=t.route)!=null&&f.departure_date?(c(),m("div",P,[e("div",null,[y(_,{icon:"calendrier",class:"mr-2 h-6 w-6"}),e("span",null,r(u(t.route.departure_date,t.route.departure_time_of_day)),1)]),e("div",S,[d(s.$slots,"actions")])])):v("",!0),e("div",M,[e("div",E,[e("div",F,[R,e("div",T,[e("div",null,[d(s.$slots,"origin-name",{},()=>{var a,n;return[o(r((n=(a=t.route)==null?void 0:a.origin_city)==null?void 0:n.name),1)]})]),e("div",null,[d(s.$slots,"destination-name",{},()=>{var a,n;return[o(r((n=(a=t.route)==null?void 0:a.destination_city)==null?void 0:n.name),1)]})])])])]),e("div",z,[d(s.$slots,"main")])]),e("div",A,[d(s.$slots,"footer")])])}}};export{K as _,J as a};
//# sourceMappingURL=BaseRouteCard.05b3b5e5.js.map
