import{j as b,u as m,r as o,d as p,G as h,b as t,f as n,v as s,o as l,c as r}from"./index-DLUb5LSe.js";const g={class:"aspect-square bg-gradient-to-br from-brand-50 to-surface-muted flex items-center justify-center relative"},f=["src"],_={key:1,class:"text-7xl opacity-60"},v={class:"p-3"},x={class:"font-bold text-body truncate"},w={class:"text-meta text-ink-muted mt-0.5"},j=b({__name:"PetCard",props:{pet:{}},setup(e){const a=e,d=r(()=>({dog:"🐕",cat:"🐈",rabbit:"🐇",bird:"🦜",fish:"🐟"})[a.pet.species.toLowerCase()]??"🐾"),c=r(()=>({ok:"bg-emerald-50  text-emerald-700  border-emerald-200",warning:"bg-amber-50    text-amber-800    border-amber-200",urgent:"bg-red-50      text-red-700      border-red-200"})[a.pet.status_tone]),i=r(()=>({ok:"bg-emerald-500",warning:"bg-amber-500",urgent:"bg-red-500"})[a.pet.status_tone]);return(k,y)=>{const u=m("router-link");return o(),p(u,{to:`/pets/${e.pet.id}`,class:"block rounded-card bg-surface shadow-card hover:shadow-card-hover transition-shadow overflow-hidden active:scale-[0.98] duration-100"},{default:h(()=>[t("div",g,[e.pet.photo_url?(o(),n("img",{key:0,src:e.pet.photo_url,alt:"",class:"w-full h-full object-cover"},null,8,f)):(o(),n("span",_,s(d.value),1)),t("span",{class:l(["absolute top-2.5 right-2.5 w-3 h-3 rounded-full border-2 border-white shadow",i.value])},null,2)]),t("div",v,[t("div",x,s(e.pet.name),1),t("div",w,s(e.pet.age_label),1),t("div",{class:l(["mt-2 inline-flex items-center gap-1 px-2 py-0.5 rounded-pill text-[11px] font-semibold border",c.value])},s(e.pet.status_label),3)])]),_:1},8,["to"])}}});export{j as _};
//# sourceMappingURL=PetCard.vue_vue_type_script_setup_true_lang-CtH7ojYH.js.map
