1import{_ as x}from"./BxTGFBGK.js";import{_ as g}from"./Cq4N1bOZ.js";import{u as h}from"./CpnNzQZF.js";import{k as p,A as y,y as d,o,w as _,a as e,c as i,G as b,t as l,H as v,n as a,d as u}from"#entry";const k={class:"p-8 bg-[#FAFAFA]"},w={class:"aspect-square relative"},C=["src"],B=["src"],F={class:"flex flex-col infos transition-all duration-300 text-left"},$={class:"text-lg lg:text-2xl pt-8 italic"},A={class:"text-lg lg:text-2xl text-zinc-800/50 text-left"},N={key:0,class:"text-base font-medium mt-2"},T={class:"text-base font-medium mt-2"},j={class:"text-base"},z={class:"text-sm text-muted-foreground"},P={key:2},U=p({__name:"CollectionCard",props:{collection:{},displayType:{type:Boolean}},async setup(t){let s,r;const{data:n}=([s,r]=y(()=>h("/api/collections/stats",{query:{slug:"magiceden"in t.collection?t.collection.magiceden.split("/").pop():""}},"$vTr4iCbWbz")),s=await s,r(),s);return(V,c)=>{const m=x,f=g;return o(),d(f,{class:"group",to:`/${t.collection.type}/${t.collection.slug}`},{default:_(()=>[e("div",k,[e("div",w,[t.collection.image.includes("mp4")?(o(),i("video",{key:0,src:t.collection.image,class:"w-full h-full object-contain filter transition-all duration-300 group-hover:brightness-[40%]",muted:"",autoplay:"",loop:"",playsinline:""},null,8,C)):t.collection.image.includes("gif")?(o(),i("img",{key:1,src:t.collection.image,class:"w-full h-full object-contain filter transition-all duration-300 group-hover:brightness-[40%]"},null,8,B)):(o(),d(m,{key:2,src:t.collection.image,class:"w-full h-full object-contain filter transition-all duration-300 group-hover:brightness-[40%]",format:"webp",sizes:"100vw md:33vw"},null,8,["src"])),c[0]||(c[0]=e("div",{class:"absolute opacity-0 group-hover:opacity-100 transition-opacity duration-300 left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-white text-xl"}," Explore ",-1))])]),e("div",F,[e("h4",$,l(t.collection.title),1),e("p",A,l(t.collection.artist.name),1),t.collection.magiceden.includes("item-details")?(o(),i("p",N," 1 of 1 ")):(o(),i(v,{key:1},[e("p",T,l(a(n)?.totalListed||"--")+" artworks available ",1),e("p",j,[u(" BTC "+l(a(n)?.floorPrice?.toFixed(4)||"--")+" ",1),e("span",z,l(a(n)?.floorPriceUsd?`($${a(n).floorPriceUsd.toFixed(0)})`:""),1)])],64)),"price"in t.collection?(o(),i("p",P,[c[1]||(c[1]=u("Sold for BTC ",-1)),e("span",null,l(t.collection.price),1)])):b("",!0)])]),_:1},8,["to"])}}});export{U 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.