import{d as y,o as a,c as s,K as L,g as l,L as V,h as u,a as t,J as p,n as A,t as i,V as Z,l as w,u as x,R as M,m as S,e as b,k as z,W as B,b as H,F as C,f as N}from"./index-D6fBX2R3.js";import{I as $}from"./PhClock.vue-COxf8wPs.js";const j=["width","height","fill","transform"],D={key:0},E=t("path",{d:"M208,52H182.42L170,33.34A12,12,0,0,0,160,28H96a12,12,0,0,0-10,5.34L73.57,52H48A28,28,0,0,0,20,80V192a28,28,0,0,0,28,28H208a28,28,0,0,0,28-28V80A28,28,0,0,0,208,52Zm4,140a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4H80a12,12,0,0,0,10-5.34L102.42,52h51.15L166,70.66A12,12,0,0,0,176,76h32a4,4,0,0,1,4,4ZM128,84a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,84Zm0,72a24,24,0,1,1,24-24A24,24,0,0,1,128,156Z"},null,-1),P=[E],T={key:1},F=t("path",{d:"M208,64H176L160,40H96L80,64H48A16,16,0,0,0,32,80V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V80A16,16,0,0,0,208,64ZM128,168a36,36,0,1,1,36-36A36,36,0,0,1,128,168Z",opacity:"0.2"},null,-1),I=t("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),O=[F,I],R={key:2},W=t("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm-44,76a36,36,0,1,1-36-36A36,36,0,0,1,164,132Z"},null,-1),q=[W],G={key:3},J=t("path",{d:"M208,58H179.21L165,36.67A6,6,0,0,0,160,34H96a6,6,0,0,0-5,2.67L76.78,58H48A22,22,0,0,0,26,80V192a22,22,0,0,0,22,22H208a22,22,0,0,0,22-22V80A22,22,0,0,0,208,58Zm10,134a10,10,0,0,1-10,10H48a10,10,0,0,1-10-10V80A10,10,0,0,1,48,70H80a6,6,0,0,0,5-2.67L99.21,46h57.57L171,67.33A6,6,0,0,0,176,70h32a10,10,0,0,1,10,10ZM128,90a42,42,0,1,0,42,42A42,42,0,0,0,128,90Zm0,72a30,30,0,1,1,30-30A30,30,0,0,1,128,162Z"},null,-1),K=[J],U={key:4},Q=t("path",{d:"M208,56H180.28L166.65,35.56A8,8,0,0,0,160,32H96a8,8,0,0,0-6.65,3.56L75.71,56H48A24,24,0,0,0,24,80V192a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V80A24,24,0,0,0,208,56Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H80a8,8,0,0,0,6.66-3.56L100.28,48h55.43l13.63,20.44A8,8,0,0,0,176,72h32a8,8,0,0,1,8,8ZM128,88a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,88Zm0,72a28,28,0,1,1,28-28A28,28,0,0,1,128,160Z"},null,-1),X=[Q],Y={key:5},_=t("path",{d:"M208,60H178.13L163.32,37.78A4,4,0,0,0,160,36H96a4,4,0,0,0-3.32,1.78L77.85,60H48A20,20,0,0,0,28,80V192a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V80A20,20,0,0,0,208,60Zm12,132a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V80A12,12,0,0,1,48,68H80a4,4,0,0,0,3.33-1.78L98.13,44h59.72l14.82,22.22A4,4,0,0,0,176,68h32a12,12,0,0,1,12,12ZM128,92a40,40,0,1,0,40,40A40,40,0,0,0,128,92Zm0,72a32,32,0,1,1,32-32A32,32,0,0,1,128,164Z"},null,-1),ee=[_],te={name:"PhCamera"},ae=y({...te,props:{weight:{type:String},size:{type:[String,Number]},color:{type:String},mirrored:{type:Boolean}},setup(e){const n=e,c=p("weight","regular"),g=p("size","1em"),h=p("color","currentColor"),m=p("mirrored",!1),o=u(()=>n.weight??c),v=u(()=>n.size??g),r=u(()=>n.color??h),d=u(()=>n.mirrored!==void 0?n.mirrored?"scale(-1, 1)":void 0:m?"scale(-1, 1)":void 0);return(f,Ve)=>(a(),s("svg",V({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",width:v.value,height:v.value,fill:r.value,transform:d.value},f.$attrs),[L(f.$slots,"default"),o.value==="bold"?(a(),s("g",D,P)):o.value==="duotone"?(a(),s("g",T,O)):o.value==="fill"?(a(),s("g",R,q)):o.value==="light"?(a(),s("g",G,K)):o.value==="regular"?(a(),s("g",U,X)):o.value==="thin"?(a(),s("g",Y,ee)):l("",!0)],16,j))}}),k=y({__name:"StatusBadge",props:{kind:{},label:{}},setup(e){const n={sale:"bg-white/[.94] text-fg",auction:"bg-amber text-white",new:"bg-primary text-white",reduced:"bg-primary text-white",ending:"bg-danger text-white",dark:"bg-fg text-white"};return(c,g)=>(a(),s("span",{class:A(["inline-flex h-6 items-center gap-1.5 rounded-[6px] px-[9px] text-[11px] font-semibold uppercase tracking-[.04em]",n[e.kind]])},i(e.label),3))}}),se={class:"relative aspect-[4/3] overflow-hidden bg-[#DCE3DF]"},ie=["src"],le={class:"absolute left-2.5 top-2.5 flex gap-1.5"},ne=["aria-label","aria-pressed"],oe={key:1,class:"absolute bottom-2 right-2 inline-flex h-[22px] items-center gap-[5px] rounded-[5px] bg-fg/70 px-2 text-[11px] font-medium text-white"},re={class:"flex flex-1 flex-col gap-2.5 px-4 pb-3 pt-3.5"},de={class:"flex flex-col gap-[3px]"},ce={class:"line-clamp-2 text-[15px] font-semibold leading-[1.35] tracking-[-.005em]"},me={class:"truncate text-[13px] text-fg-muted"},ue={class:"flex flex-wrap items-baseline justify-between gap-2.5"},ge={class:"flex flex-wrap items-baseline gap-2"},xe={class:"tnum text-[20px] font-extrabold tracking-[-.01em]"},he={key:0,class:"rounded-[5px] bg-primary-soft px-[7px] py-0.5 text-[12px] font-semibold text-primary"},fe={key:0,class:"tnum text-[12px] text-fg-muted"},pe={key:0,class:"flex flex-wrap gap-1.5 text-[12.5px] text-fg-muted"},be={key:0,class:"h-[3px] w-[3px] rounded-full bg-border-strong"},ve={key:1,class:"flex items-center justify-between gap-2 rounded-[7px] bg-amber-soft px-2.5 py-2 text-[12.5px] font-medium text-amber-fg"},Ae={class:"inline-flex min-w-0 items-center gap-1.5"},ye={class:"truncate"},we={key:0,class:"flex-none text-amber-fg-2"},He={class:"mt-auto flex justify-between gap-3 border-t border-border-soft pt-2.5 text-[11.5px] text-fg-subtle"},ke={class:"truncate"},Le={key:0,class:"truncate"},Se=y({__name:"PropertyCard",props:{item:{},compact:{type:Boolean},selected:{type:Boolean}},emits:["hover"],setup(e,{emit:n}){const c=e,g=n,h=Z(),m=u(()=>h.isSaved(c.item.kind,c.item.id)),o=u(()=>c.item.kind==="auction");return(v,r)=>(a(),w(x(M),{to:e.item.href,class:A(["group flex flex-col overflow-hidden rounded-[18px] border bg-surface text-fg no-underline shadow-card transition-shadow duration-150 hover:text-fg hover:shadow-card-hover",e.selected?"border-primary ring-2 ring-primary/25":"border-border-soft"]),onMouseenter:r[1]||(r[1]=d=>g("hover",e.item.id)),onMouseleave:r[2]||(r[2]=d=>g("hover",null))},{default:S(()=>[t("div",se,[e.item.image?(a(),s("img",{key:0,src:e.item.image,alt:"",loading:"lazy",class:"block h-full w-full object-cover"},null,8,ie)):l("",!0),t("div",le,[b(k,{kind:e.item.badge,label:e.item.status},null,8,["kind","label"]),e.item.second&&!e.compact?(a(),w(k,{key:0,kind:"dark",label:e.item.second},null,8,["label"])):l("",!0)]),t("button",{type:"button","aria-label":m.value?"Odebrat z uložených":"Uložit","aria-pressed":m.value,class:A(["absolute right-2 top-2 grid h-8 w-8 place-items-center rounded-full bg-white/[.92] transition-colors hover:text-danger",m.value?"text-danger":"text-fg"]),onClick:r[0]||(r[0]=z(d=>x(h).toggle(e.item),["prevent","stop"]))},[b(x(B),{size:16,weight:m.value?"fill":"regular"},null,8,["weight"])],10,ne),e.item.photos>0?(a(),s("span",oe,[b(x(ae),{size:12}),H(i(e.item.photos),1)])):l("",!0)]),t("div",re,[t("div",de,[t("div",ce,i(e.item.title),1),t("div",me,i(e.item.location),1)]),t("div",ue,[t("div",ge,[t("span",xe,i(e.item.price),1),o.value&&e.item.discount?(a(),s("span",he,i(e.item.discount),1)):l("",!0)]),e.item.priceNote&&!e.compact?(a(),s("span",fe,i(e.item.priceNote),1)):l("",!0)]),e.item.meta.length?(a(),s("div",pe,[(a(!0),s(C,null,N(e.item.meta,(d,f)=>(a(),s("span",{key:d,class:"inline-flex items-center gap-1.5"},[f>0?(a(),s("span",be)):l("",!0),H(i(d),1)]))),128))])):l("",!0),o.value?(a(),s("div",ve,[t("span",Ae,[b(x($),{size:13,class:"flex-none"}),t("span",ye,i(e.item.auctionDate),1)]),e.item.auctionTail?(a(),s("span",we,i(e.item.auctionTail),1)):l("",!0)])):l("",!0),t("div",He,[t("span",ke,i(e.item.source),1),e.item.seller&&!e.compact?(a(),s("span",Le,i(e.item.seller),1)):l("",!0)])])]),_:1},8,["to","class"]))}});export{ae as G,Se as _};