1import{N as g,o as d,c as u,a as e,K as w,J as b,G as l,h,d as c,j as _,L as s,n as v,t as o,Y as y}from"./Cn79pz__.js";import{P as N}from"./DStDa9ps.js";import{N as $}from"./DNK25lZN.js";const C={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 20 20"},H=e("path",{d:"M14.8 18.2H5.2c-1 0-1.6 0-2.1-.3-.5-.2-.8-.6-1.1-1.1s-.3-1.1-.3-2.1v-8c0-1 0-1.6.3-2.1.2-.5.6-.8 1.1-1.1s1-.3 2-.3v-.7c0-.4.3-.8.8-.8s.8.3.8.8v.9h6.8v-.9c0-.4.3-.8.8-.8s.8.3.8.8v.9c1 0 1.5 0 2 .3.5.2.8.6 1.1 1.1s.3 1.1.3 2.1v8c0 1 0 1.6-.3 2.1-.2.5-.6.8-1.1 1.1-.7.1-1.2.1-2.3.1M5.2 4.9c-.8 0-1.2 0-1.4.1s-.4.2-.4.4c-.2.2-.2.7-.2 1.4v8c0 .8 0 1.2.1 1.4s.2.3.4.4.7.1 1.4.1h9.7c.8 0 1.2 0 1.4-.1s.3-.2.4-.4.1-.7.1-1.4v-8c0-.8 0-1.2-.1-1.4s-.2-.3-.4-.4-.7-.1-1.4-.1zm4.8 7.5H5.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8H10c.4 0 .8.3.8.8s-.4.8-.8.8m4.2-3.3H5.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h8.3c.4 0 .8.3.8.8s-.3.8-.7.8",style:{fill:"#e74c3c"}},null,-1),M=[H];function j(t,x){return d(),u("svg",C,[...M])}const k={render(){return g($,{icon:{render:j},name:"calendar"})}},B={class:"relative"},F={key:0,class:"absolute top-2 right-2 flex gap-1 z-50"},T={class:"w-full lg:w-[220px] xl:w-[260px] aspect-video xl:aspect-[260/195] overflow-hidden"},A=["src","alt"],L={class:"p-4 flex-1 flex flex-col space-y-[20px]"},V={class:"text-alternate-100 flex-1"},z={class:"font-bold"},D=["innerHTML"],I={class:"flex sm:flex-col 2xl:flex-row gap-1 text-neutralText-100 text-[15px] font-[500]"},P={class:"flex items-center gap-2 flex-1"},E={class:"flex items-center gap-2 flex-1"},J={__name:"Tourscard",props:{data:{type:Object},isAdmin:{type:Boolean,default:!1}},emits:"showConfirmationDeletion",setup(t,{emit:x}){const p=x,{locale:n}=w(),r=b(!1);return(i,a)=>{const f=y;return d(),u("div",B,[t.isAdmin?(d(),u("div",F,[l(f,{to:{path:"/admin/editer",query:{id:t.data.id}},class:"bg-primary-100 rounded-md px-2 py-1 text-[12px] font-[500] border border-white text-white hover:bg-primary-200 duration-300"},{default:h(()=>[c(" Editer")]),_:1},8,["to"]),e("button",{onClick:a[0]||(a[0]=m=>p("showConfirmationDeletion",t.data.id)),class:"bg-red-500 rounded-md px-2 py-1 text-[12px] font-[500] border border-white text-white hover:bg-red-600 duration-300"},"Supprimer")])):_("",!0),l(f,{to:i.localePath(`/${t.data.slug[s(n)]}`),class:v(["relative w-full rounded-[12px] overflow-hidden flex flex-col lg:flex-row bg-[#F3F3F3] hover:bg-[#efefef] duration-300 cursor-pointer hover:drop-shadow-lg",{"hover:scale-[1.01]":!t.isAdmin}]),onMouseenter:a[1]||(a[1]=m=>r.value=!0),onMouseleave:a[2]||(a[2]=m=>r.value=!1)},{default:h(()=>[e("div",T,[e("img",{src:t.data.cover,alt:t.data.title[s(n)],class:v(["w-full h-full object-cover object-center duration-300",{"scale-[1.027]":s(r)}])},null,10,A)]),e("div",L,[e("div",V,[e("h3",z,o(t.data.title[s(n)]),1),e("div",{class:"font-light line-clamp-4",innerHTML:t.data.description[s(n)]},null,8,D)]),e("div",I,[e("p",P,[e("span",null,[l(s(N),{class:"text-secondary-100 text-[20px]"})]),c(" "+o(i.$t("A partir de"))+" ",1),e("span",null,o(new Intl.NumberFormat("fr-FR").format(t.data.pricing))+" "+o(t.data.unit),1)]),e("p",E,[e("span",null,[l(s(k),{class:"text-secondary-100 text-[20px]"})]),e("span",null,o(t.data.duration),1),c(" "+o(i.$t("jours")),1)])])])]),_:1},8,["to","class"])])}}};export{J as _};
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.