1import{d as F,o as s,j as L,k as C,i as r,h as e,f as o,g as U,t as i,m as u,l as f,q as $,N as j,O as V,n as l,_ as B}from"./CWXzWxAq.js";import{_ as D}from"./ujoLtV0O.js";import{p as _,c as O,g as S,l as z}from"./DQSuM1Xs.js";const E=["src","alt"],P={key:1,class:"flex h-full w-full items-center justify-center"},H={class:"absolute left-2 top-2 flex flex-wrap gap-1"},R={key:0,class:"rounded-full bg-accent px-2 py-0.5 text-[11px] font-bold text-black"},T={key:1,class:"rounded-full bg-black/60 px-2 py-0.5 text-[11px] font-semibold text-white backdrop-blur"},q={key:2,class:"rounded-full bg-blue-500 px-1.5 py-0.5 text-[11px] font-bold text-white",title:"Verified"},A=["title"],I={key:2,class:"absolute right-2 top-2 flex items-center gap-1 rounded-full bg-black/55 px-2 py-0.5 text-[11px] font-medium text-white backdrop-blur"},G={class:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent p-3 pt-8"},J={class:"truncate text-sm font-semibold text-white"},K={class:"truncate text-xs text-white/70"},M={class:"flex items-center justify-between gap-2 px-3 py-2 text-xs text-muted"},Q={class:"flex items-center gap-2"},W={key:0,class:"flex items-center gap-0.5 text-yellow-400",title:"Fan rating"},X={class:"text-foreground"},Y={key:1,class:"flex items-center gap-1",title:"Likes"},Z={class:"truncate"},ee=F({__name:"CreatorCard",props:{creator:{}},setup(g){const d=g;function m(a){return a.sponsored===!0}const c=l(()=>m(d.creator)?d.creator:null),v=l(()=>c.value?"ring-1 ring-amber-300/30":""),x=l(()=>S(d.creator.username)),t=l(()=>{const a=d.creator;return m(a)?{displayName:a.displayName,username:a.username,avatarUrl:a.avatarUrl,isFree:a.isFree,price:a.price,currency:"USD",likes:a.likes,rating:0,verified:!1,online:!1,promo:null,location:{city:null,region:null,country:null},distanceLabel:null}:{displayName:a.displayName,username:a.username,avatarUrl:a.avatarUrl,isFree:a.isFree,price:a.price,currency:a.currency,likes:a.likes,rating:a.rating,verified:a.verified,online:a.online,promo:a.promo,location:a.location,distanceLabel:a.distanceLabel??null}}),p=l(()=>z(t.value.location)),b=l(()=>t.value.distanceLabel?p.value?`ð ${p.value} · ${t.value.distanceLabel}`:`ð ${t.value.distanceLabel}`:p.value?`ð ${p.value}`:_(t.value.isFree,t.value.price,t.value.currency)),h=B,y=l(()=>c.value?"a":h),k=l(()=>c.value?{href:c.value.profileHref}:{to:`/creators/${d.creator.slug}`,prefetchOn:"interaction"});function w(a){const n=c.value;n&&(a.preventDefault(),window.location.href=n.outHref)}return(a,n)=>{const N=D;return s(),L(V(e(y)),j(e(k),{class:["group relative flex flex-col overflow-hidden rounded-2xl border bg-surface transition hover:border-brand/60 hover:shadow-lg hover:shadow-brand/10",e(v)],"data-ad-network":e(c)?.network||void 0,onClick:w}),{default:C(()=>[r("div",{class:"relative aspect-[4/5] w-full overflow-hidden",style:$(e(t).avatarUrl?void 0:{backgroundImage:`linear-gradient(135deg, ${e(x).from}, ${e(x).to})`})},[e(t).avatarUrl?(s(),o("img",{key:0,src:e(t).avatarUrl,alt:e(t).displayName,loading:"lazy",class:"h-full w-full object-cover transition duration-300 group-hover:scale-105"},null,8,E)):(s(),o("div",P,[U(N,{name:e(t).displayName,src:null,size:96,rounded:"full",class:"ring-4 ring-white/20"},null,8,["name"])])),r("div",H,[e(t).isFree?(s(),o("span",R,"FREE")):(s(),o("span",T,i(e(_)(!1,e(t).price,e(t).currency)),1)),e(t).verified?(s(),o("span",q," â ")):u("",!0),e(t).promo?(s(),o("span",{key:3,class:"rounded-full bg-brand px-2 py-0.5 text-[11px] font-bold text-white",title:e(t).promo.text}," -"+i(e(t).promo.discountPercent)+"% ",9,A)):u("",!0)]),e(t).online?(s(),o("span",I,[...n[0]||(n[0]=[r("span",{class:"live-dot h-2 w-2 rounded-full bg-green-400"},null,-1),f(" Online ",-1)])])):u("",!0),r("div",G,[r("h3",J,i(e(t).displayName),1),r("p",K,"@"+i(e(t).username),1)])],4),r("div",M,[r("span",Q,[e(t).rating>0?(s(),o("span",W,[n[1]||(n[1]=f(" â
",-1)),r("span",X,i(e(t).rating.toFixed(1)),1)])):u("",!0),e(t).likes>0?(s(),o("span",Y,[n[2]||(n[2]=r("span",{class:"text-brand"},"â¥",-1)),f(i(e(O)(e(t).likes)),1)])):u("",!0)]),r("span",Z,i(e(b)),1)])]),_:1},16,["class","data-ad-network"])}}}),se=Object.assign(ee,{__name:"CreatorCard"});export{se 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.