import{a as x,_ as h}from"./BaseRouteCard.05b3b5e5.js";import{a as p,_ as y}from"./RoundedButton.f48696b9.js";import{a0 as b,o as t,h as n,w as s,b as c,a as i,c as a,i as o,d}from"./entry.01d4b5f9.js";const k={class:"text-neutral-lighter flex items-center justify-between gap-5 max-md:flex-col"},g={class:"flex flex-col gap-2"},v={class:"flex max-md:mb-5"},E={key:0},T={key:1},B={class:"flex max-md:mb-5"},N={key:0},R={key:1},V={key:0},O={__name:"AvailableRouteCard",props:{route:{type:Object,required:!0,default:()=>({})},hideBooking:{type:Boolean,default:!1}},setup(e){return b(),(u,m)=>{const _=x,l=p,r=y,f=h;return t(),n(f,{route:e.route},{main:s(()=>[c(_,{pricing:e.route.pricing},null,8,["pricing"])]),footer:s(()=>[i("div",k,[i("div",g,[i("div",v,[c(l,{icon:"lit",class:"text-primary-light mr-3 h-6 w-6"}),e.route.vehicle.type==="before_coffin"?(t(),a("span",E," Transport avant et après mise en bière")):o("",!0),e.route.vehicle.type==="after_coffin"?(t(),a("span",T," Transport après mise en bière")):o("",!0)]),i("div",B,[c(l,{icon:"dimensions",class:"text-primary-light mr-3 h-6 w-6"}),e.route.vehicle.is_standard_size?(t(),a("span",N," Supporte des tailles standards uniquement (< ou = à 195cm x 60cm)")):(t(),a("span",R," Supporte des tailles hors normes (> à 195cm x l60cm)"))])]),e.hideBooking?o("",!0):(t(),a("div",V,[e.route.is_reservation?(t(),n(r,{key:0,class:"bg-secondary max-md:px-24",disabled:"",design:"4"},{default:s(()=>[d(" EN ATTENTE DE VALIDATION ")]),_:1})):o("",!0),e.route.is_mine?(t(),n(r,{key:1,disabled:"",class:"max-md:px-24",design:"4"},{default:s(()=>[d(" VOTRE TRAJET ")]),_:1})):o("",!0),!e.route.is_reservation&&!e.route.is_mine?(t(),n(r,{key:2,class:"max-md:px-24",design:"3",onClick:m[0]||(m[0]=w=>u.$emit("book",e.route))},{default:s(()=>[d(" RESERVER ")]),_:1})):o("",!0)]))])]),_:1},8,["route"])}}};export{O as _};
//# sourceMappingURL=AvailableRouteCard.b93e6a03.js.map
