PageSourceSearch

https://mostreams-com.lovable.app/assets/my-library-CFjPQOX9.js

js mostreams-com.lovable.app collected 2026-10-03 03:35:51 UTC 20,666 bytes, 1 lines download raw bytes

1import{bz as ae,r as c,j as e,bA as ie,l as le,t as _,L as d,P as q,H as G,aY as I,V as U,n as ne,i as P,q as oe,p as de,s as m,v as u,cg as ce,bb as xe}from"./index-BNrdOJig.js";import{T as me,a as ue,b as C,c as $}from"./tabs-7-_U4cvK.js";import{P as H}from"./plus-BewcIKll.js";import{T as Y}from"./trending-up-DKvEzUeP.js";import{T as S}from"./trash-2-DqSHrMYS.js";import{P as Q}from"./pencil-YSg_AcJn.js";import"./index-BgFHfwbL.js";import"./index-Dc9JXvma.js";const A={draft:"bg-zinc-500/20 text-zinc-300",review:"bg-amber-500/20 text-amber-300",published:"bg-emerald-500/20 text-emerald-300"},V=t=>{const r=t??0;return r>=1e6?(r/1e6).toFixed(1).replace(/\.0$/,"")+"M":r>=1e3?(r/1e3).toFixed(1).replace(/\.0$/,"")+"K":String(r)};function ke(){const t=ae(),[r,n]=c.useState([]),[o,p]=c.useState([]),[x,b]=c.useState([]),[T,J]=c.useState([]),[E,W]=c.useState(!1),[w,X]=c.useState(""),[h,j]=c.useState(new Set),[f,y]=c.useState(new Set),z=(s,a,i)=>{const l=new Set(s);l.has(i)?l.delete(i):l.add(i),a(l)},O=async s=>{const[a,i]=await Promise.all([m.from("tracks").select("id, title, cover_url, status, genre, created_at, play_count").eq("owner_id",s).order("created_at",{ascending:!1}),m.from("videos").select("id, title, thumbnail_url, status, genre, created_at").eq("owner_id",s).order("created_at",{ascending:!1})]);a.data&&n(a.data),i.data&&p(i.data)},Z=async s=>{const{data:a}=await m.from("nft_collections").select("id, slug, title, cover_art_url, status, edition_size, minted_count, price_usd, is_modisc_edition, created_at").eq("artist_id",s).order("created_at",{ascending:!1});J(a??[])},ee=async s=>{const{data:a}=await m.from("likes").select("target_id").eq("user_id",s).eq("target_type","track"),i=(a??[]).map(l=>l.target_id);if(i.length){const{data:l}=await m.from("tracks").select("id, title, cover_url, status, genre, created_at, play_count").in("id",i);b(l??[])}else b([])};c.useEffect(()=>{t?.id&&(O(t.id),ee(t.id),Z(t.id))},[t?.id]);const R=async(s,a,i)=>{const{error:l}=await m.from(s).update({status:i}).eq("id",a);l?u.error(l.message):(u.success("Status updated"),t?.id&&O(t.id))},F=async(s,a)=>{if(!confirm(`Delete "${a}"? This cannot be undone.`))return;const{error:i}=await m.from("tracks").delete().eq("id",s);if(i)return u.error(i.message);u.success("Track deleted"),n(l=>l.filter(N=>N.id!==s)),b(l=>l.filter(N=>N.id!==s))},se=async(s,a)=>{if(!confirm(`Delete "${a}"? This cannot be undone.`))return;const{error:i}=await m.from("videos").delete().eq("id",s);if(i)return u.error(i.message);u.success("Video deleted"),p(l=>l.filter(N=>N.id!==s))},te=async()=>{const s=Array.from(h);if(s.length===0||!confirm(`Delete ${s.length} track(s)? This cannot be undone.`))return;const{error:a}=await m.from("tracks").delete().in("id",s);if(a)return u.error(a.message);u.success(`Deleted ${s.length} track(s)`),n(i=>i.filter(l=>!s.includes(l.id))),b(i=>i.filter(l=>!s.includes(l.id))),j(new Set)},re=async()=>{const s=Array.from(f);if(s.length===0||!confirm(`Delete ${s.length} video(s)? This cannot be undone.`))return;const{error:a}=await m.from("videos").delete().in("id",s);if(a)return u.error(a.message);u.success(`Deleted ${s.length} video(s)`),p(i=>i.filter(l=>!s.includes(l.id))),y(new Set)},v=c.useMemo(()=>({plays:r.reduce((a,i)=>a+(i.play_count??0),0),tracks:r.length,videos:o.length,published:r.filter(a=>a.status==="published").length}),[r,o]),M=c.useMemo(()=>[...r].sort((s,a)=>(a.play_count??0)-(s.play_count??0)).slice(0,10),[r]),g=M[0]??r[0],L=s=>{if(!w.trim())return s;const a=w.toLowerCase();return s.filter(i=>i.title.toLowerCase().includes(a)||(i.genre??"").toLowerCase().includes(a))};return e.jsxs(ie,{profile:t,title:"My Catalog",subtitle:"Only your own uploads — tracks, beats, podcasts, videos.",children:[e.jsx(le,{storageKey:"mostreams_demo_ack_library",pageLabel:"Music Library",onAccept:()=>W(!0)}),e.jsxs("div",{"aria-hidden":!E,className:E?"":"pointer-events-none blur-sm select-none",children:[e.jsxs("div",{className:"relative overflow-hidden rounded-3xl border border-white/5 bg-gradient-to-br from-zinc-900 via-zinc-950 to-black p-6 md:p-8 mb-6",children:[e.jsx("div",{className:"absolute inset-0 opacity-40 pointer-events-none",style:{background:g?.cover_url?`url(${g.cover_url}) center/cover`:void 0,filter:"blur(60px) saturate(140%)"}}),e.jsxs("div",{className:"relative grid md:grid-cols-[200px_1fr_auto] gap-6 items-end",children:[e.jsx("div",{className:"aspect-square w-40 md:w-[200px] rounded-2xl overflow-hidden shadow-2xl bg-gradient-to-br from-orange-500/40 to-rose-500/40 ring-1 ring-white/10",children:g?.cover_url&&e.jsx("img",{src:_(g.cover_url,960),alt:g.title,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-white/60 mb-2",children:"Top Performing"}),e.jsx("div",{className:"font-display text-3xl md:text-5xl font-bold text-white truncate",children:g?.title??"Your catalog"}),e.jsxs("div",{className:"text-white/70 mt-2 text-sm",children:[t?.display_name??"You"," · ",v.tracks," tracks · ",v.videos," videos"]}),e.jsxs("div",{className:"flex flex-wrap gap-2 mt-5",children:[e.jsxs(d,{to:"/upload/track",className:"btn-gradient rounded-full px-5 py-2.5 text-xs font-bold uppercase tracking-wider flex items-center gap-2",children:[e.jsx(H,{className:"w-4 h-4"})," Upload Track"]}),e.jsxs(d,{to:"/upload/video",className:"rounded-full px-5 py-2.5 text-xs font-bold uppercase tracking-wider bg-white/10 text-white hover:bg-white/15 flex items-center gap-2",children:[e.jsx(H,{className:"w-4 h-4"})," Add Video"]}),g&&e.jsxs(d,{to:"/tracks/$id",params:{id:g.id},className:"rounded-full px-5 py-2.5 text-xs font-bold uppercase tracking-wider bg-white text-black flex items-center gap-2",children:[e.jsx(q,{className:"w-4 h-4 fill-current"})," Open"]})]})]})]})]}),e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-6",children:[e.jsx(D,{icon:e.jsx(G,{className:"w-4 h-4"}),label:"Total Plays",value:V(v.plays),tone:"from-rose-500/20 to-orange-500/10"}),e.jsx(D,{icon:e.jsx(I,{className:"w-4 h-4"}),label:"Tracks",value:String(v.tracks),tone:"from-cyan-500/20 to-blue-500/10"}),e.jsx(D,{icon:e.jsx(U,{className:"w-4 h-4"}),label:"Videos",value:String(v.videos),tone:"from-violet-500/20 to-fuchsia-500/10"}),e.jsx(D,{icon:e.jsx(Y,{className:"w-4 h-4"}),label:"Published",value:String(v.published),tone:"from-emerald-500/20 to-teal-500/10"})]}),e.jsxs("div",{className:"relative mb-5",children:[e.jsx(ne,{className:"w-4 h-4 absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{value:w,onChange:s=>X(s.target.value),placeholder:"Search your catalog…",className:"w-full bg-white/5 border border-white/10 rounded-full pl-10 pr-4 py-2.5 text-sm focus:outline-none focus:border-primary/50"})]}),e.jsxs(me,{defaultValue:"mine",className:"w-full",children:[e.jsxs(ue,{className:"bg-white/5",children:[e.jsx(C,{value:"mine",children:"My Music"}),e.jsx(C,{value:"saved",children:"Saved"}),e.jsx(C,{value:"videos",children:"Videos"}),T.length>0&&e.jsxs(C,{value:"modiscs",className:"data-[state=active]:text-primary",children:[e.jsx(P,{className:"w-3.5 h-3.5 mr-1.5"})," MO STREAMS Digital DISCS",e.jsx("span",{className:"ml-1.5 text-[10px] font-black px-1.5 py-0.5 rounded-full bg-primary/20 text-primary",children:T.length})]})]}),e.jsxs($,{value:"mine",className:"mt-6 space-y-8",children:[h.size>0&&e.jsxs("div",{className:"flex items-center justify-between rounded-xl border border-rose-500/30 bg-rose-500/10 px-4 py-2",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsxs("span",{children:[h.size," selected"]}),e.jsx("button",{onClick:()=>j(new Set(r.map(s=>s.id))),className:"text-xs underline",children:"Select all"}),e.jsx("button",{onClick:()=>j(new Set),className:"text-xs underline",children:"Clear"})]}),e.jsxs("button",{onClick:te,className:"inline-flex items-center gap-2 rounded-full bg-rose-600 hover:bg-rose-500 text-white text-xs font-bold uppercase tracking-wider px-4 py-2",children:[e.jsx(S,{className:"w-3.5 h-3.5"})," Delete selected"]})]}),h.size===0&&r.length>0&&e.jsx("button",{onClick:()=>j(new Set(r.map(s=>s.id))),className:"text-xs font-bold uppercase tracking-wider text-muted-foreground hover:text-foreground",children:"Select all tracks"}),e.jsxs("section",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("h3",{className:"font-display text-xl flex items-center gap-2",children:[e.jsx(Y,{className:"w-4 h-4 text-primary"})," Top Songs"]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Ranked by plays"})]}),M.length===0?e.jsx(k,{text:"Upload a track to see your top performers here."}):e.jsx("div",{className:"rounded-2xl border border-white/10 bg-card/40 overflow-hidden divide-y divide-white/5",children:L(M).map((s,a)=>e.jsx(pe,{rank:a+1,track:s,onDelete:()=>F(s.id,s.title),selected:h.has(s.id),onToggle:()=>z(h,j,s.id)},s.id))})]}),e.jsxs("section",{children:[e.jsxs("h3",{className:"font-display text-xl flex items-center gap-2 mb-3",children:[e.jsx(I,{className:"w-4 h-4 text-primary"})," All Tracks"]}),r.length===0&&e.jsx(k,{text:"No tracks yet."}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 ga
1p-4",children:L(r).map(s=>e.jsx(K,{track:s,showStatus:!0,onChangeStatus:a=>R("tracks",s.id,a),onDelete:()=>F(s.id,s.title),selected:h.has(s.id),onToggle:()=>z(h,j,s.id)},s.id))})]})]}),e.jsxs($,{value:"saved",className:"mt-6",children:[e.jsxs("h3",{className:"font-display text-xl flex items-center gap-2 mb-3",children:[e.jsx(oe,{className:"w-4 h-4 text-primary"})," Saved tracks"]}),x.length===0?e.jsx(k,{text:"Like a track in the catalog and it shows up here."}):e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-4",children:L(x).map(s=>e.jsx(K,{track:s},s.id))})]}),e.jsxs($,{value:"videos",className:"mt-6",children:[e.jsxs("h3",{className:"font-display text-xl flex items-center gap-2 mb-3",children:[e.jsx(U,{className:"w-4 h-4 text-primary"})," Videos"]}),f.size>0&&e.jsxs("div",{className:"flex items-center justify-between rounded-xl border border-rose-500/30 bg-rose-500/10 px-4 py-2 mb-3",children:[e.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[e.jsxs("span",{children:[f.size," selected"]}),e.jsx("button",{onClick:()=>y(new Set(o.map(s=>s.id))),className:"text-xs underline",children:"Select all"}),e.jsx("button",{onClick:()=>y(new Set),className:"text-xs underline",children:"Clear"})]}),e.jsxs("button",{onClick:re,className:"inline-flex items-center gap-2 rounded-full bg-rose-600 hover:bg-rose-500 text-white text-xs font-bold uppercase tracking-wider px-4 py-2",children:[e.jsx(S,{className:"w-3.5 h-3.5"})," Delete selected"]})]}),f.size===0&&o.length>0&&e.jsx("button",{onClick:()=>y(new Set(o.map(s=>s.id))),className:"mb-3 text-xs font-bold uppercase tracking-wider text-muted-foreground hover:text-foreground",children:"Select all videos"}),o.length===0&&e.jsx(k,{text:"No videos yet."}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:o.filter(s=>!w.trim()||s.title.toLowerCase().includes(w.toLowerCase())).map(s=>e.jsxs("div",{className:`relative rounded-2xl border bg-card/40 overflow-hidden ${f.has(s.id)?"border-rose-500/60":"border-white/10"}`,children:[e.jsx("label",{className:"absolute top-2 left-2 z-10 bg-black/60 rounded-md p-1 cursor-pointer",children:e.jsx("input",{type:"checkbox",checked:f.has(s.id),onChange:()=>z(f,y,s.id)})}),e.jsx(d,{to:"/videos/$id",params:{id:s.id},className:"block aspect-video bg-gradient-to-br from-cyan-500/30 to-orange-500/30",children:s.thumbnail_url&&e.jsx("img",{src:_(s.thumbnail_url,960),alt:s.title,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"})}),e.jsxs("div",{className:"p-3",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx(d,{to:"/videos/$id",params:{id:s.id},className:"font-semibold truncate hover:text-primary text-sm",children:s.title}),e.jsx("span",{className:`text-[10px] uppercase font-bold px-2 py-1 rounded-full ${A[s.status]}`,children:s.status})]}),s.genre&&e.jsx("div",{className:"text-xs text-muted-foreground mt-1",children:s.genre}),e.jsx(B,{current:s.status,onChange:a=>R("videos",s.id,a)}),e.jsxs(d,{to:"/videos/$id/edit",params:{id:s.id},className:"mt-2 w-full text-[10px] uppercase font-bold tracking-wider py-1 rounded-md border border-primary/40 text-primary hover:bg-primary/10 flex items-center justify-center gap-1",children:[e.jsx(Q,{className:"w-3 h-3"})," Edit details"]}),e.jsxs("button",{onClick:()=>se(s.id,s.title),className:"mt-2 w-full text-[10px] uppercase font-bold tracking-wider py-1 rounded-md border border-rose-500/30 text-rose-300 hover:bg-rose-500/10 flex items-center justify-center gap-1",children:[e.jsx(S,{className:"w-3 h-3"})," Delete"]})]})]},s.id))})]}),e.jsxs($,{value:"modiscs",className:"mt-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[e.jsxs("h3",{className:"font-display text-xl flex items-center gap-2",children:[e.jsx(P,{className:"w-4 h-4 text-primary"})," MO STREAMS Digital DISC drops"]}),e.jsxs(d,{to:"/dashboard/modiscs/new",className:"btn-gradient rounded-full px-4 py-2 text-[11px] font-black uppercase tracking-wider inline-flex items-center gap-1.5",children:[e.jsx(de,{className:"w-3.5 h-3.5"})," Launch a MO STREAMS Digital DISC"]})]}),T.length===0?e.jsx(k,{text:"No MO STREAMS Digital DISCS yet — launch your first collectible drop."}):e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:T.map(s=>e.jsx(he,{m:s},s.id))})]})]})]})]})}function D({icon:t,label:r,value:n,tone:o}){return e.jsxs("div",{className:`rounded-2xl border border-white/10 p-4 bg-gradient-to-br ${o} backdrop-blur`,children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs uppercase tracking-wider text-white/70",children:[t,r]}),e.jsx("div",{className:"font-display text-2xl md:text-3xl font-bold mt-2 text-white",children:n})]})}function pe({rank:t,track:r,onDelete:n,selected:o,onToggle:p}){return e.jsxs("div",{className:"group flex items-center gap-4 px-4 py-3 hover:bg-white/5 transition",children:[p&&e.jsx("input",{type:"checkbox",checked:!!o,onChange:p,onClick:x=>x.stopPropagation(),className:"accent-rose-500"}),e.jsxs(d,{to:"/tracks/$id",params:{id:r.id},className:"flex items-center gap-4 flex-1 min-w-0",children:[e.jsx("div",{className:"w-6 text-center text-sm tabular-nums text-muted-foreground group-hover:hidden",children:t}),e.jsx(q,{className:"w-4 h-4 hidden group-hover:block text-primary fill-current"}),e.jsx("div",{className:"w-12 h-12 rounded-lg overflow-hidden bg-gradient-to-br from-orange-500/30 to-rose-500/30 shrink-0 ring-1 ring-white/10",children:r.cover_url&&e.jsx("img",{decoding:"async",src:_(r.cover_url,960),alt:r.title,className:"w-full h-full object-cover",loading:"lazy"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"font-semibold truncate",children:r.title}),e.jsx("div",{className:"text-xs text-muted-foreground truncate",children:r.genre??"Single"})]}),e.jsxs("div",{className:"hidden sm:flex items-center gap-1 text-xs text-muted-foreground tabular-nums",children:[e.jsx(G,{className:"w-3.5 h-3.5"})," ",V(r.play_count)]}),e.jsx("span",{className:`hidden md:inline text-[10px] uppercase font-bold px-2 py-1 rounded-full ${A[r.status]??"bg-zinc-500/20 text-zinc-300"}`,children:r.status})]}),n&&e.jsx("button",{onClick:x=>{x.preventDefault(),x.stopPropagation(),n()},"aria-label":"Delete track",className:"p-2 rounded-md text-rose-300 hover:bg-rose-500/10 hover:text-rose-200 transition",children:e.jsx(S,{className:"w-4 h-4"})})]})}function K({track:t,showStatus:r,onChangeStatus:n,onDelete:o,selected:p,onToggle:x}){return e.jsxs("div",{className:"group",children:[e.jsxs(d,{to:"/tracks/$id",params:{id:t.id},className:`relative block aspect-square rounded-xl overflow-hidden bg-gradient-to-br from-orange-500/30 to-rose-500/30 ring-1 shadow-lg ${p?"ring-rose-500":"ring-white/10"}`,children:[x&&e.jsx("label",{className:"absolute top-2 left-2 z-10 bg-black/60 rounded-md p-1 cursor-pointer",onClick:b=>b.stopPropagation(),children:e.jsx("input",{type:"checkbox",checked:!!p,onChange:x,className:"accent-rose-500"})}),t.cover_url&&e.jsx("img",{decoding:"async",src:_(t.cover_url,960),alt:t.title,className:"w-full h-full object-cover transition group-hover:scale-105",loading:"lazy"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
1parent to-transparent opacity-0 group-hover:opacity-100 transition"}),e.jsx("div",{className:"absolute bottom-2 right-2 w-9 h-9 rounded-full bg-primary text-primary-foreground items-center justify-center shadow-xl translate-y-2 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition hidden sm:flex",children:e.jsx(q,{className:"w-4 h-4 fill-current"})})]}),e.jsxs("div",{className:"mt-2",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx(d,{to:"/tracks/$id",params:{id:t.id},className:"font-semibold text-sm truncate hover:text-primary",children:t.title}),r&&e.jsx("span",{className:`text-[10px] uppercase font-bold px-2 py-0.5 rounded-full ${A[t.status]}`,children:t.status})]}),e.jsxs("div",{className:"text-xs text-muted-foreground truncate flex items-center justify-between mt-0.5",children:[e.jsx("span",{children:t.genre??"Single"}),e.jsx("span",{className:"tabular-nums",children:V(t.play_count)})]}),r&&n&&e.jsx(B,{current:t.status,onChange:n}),r&&e.jsxs(d,{to:"/tracks/$id/edit",params:{id:t.id},className:"mt-2 w-full text-[10px] uppercase font-bold tracking-wider py-1 rounded-md border border-primary/40 text-primary hover:bg-primary/10 flex items-center justify-center gap-1",children:[e.jsx(Q,{className:"w-3 h-3"})," Edit details"]}),o&&e.jsxs("button",{onClick:o,className:"mt-2 w-full text-[10px] uppercase font-bold tracking-wider py-1 rounded-md border border-rose-500/30 text-rose-300 hover:bg-rose-500/10 flex items-center justify-center gap-1",children:[e.jsx(S,{className:"w-3 h-3"})," Delete"]})]})]})}function k({text:t}){return e.jsx("p",{className:"text-sm text-muted-foreground rounded-2xl border border-dashed border-white/10 p-8 text-center",children:t})}function he({m:t}){const r=t.minted_count>=t.edition_size&&t.edition_size>0,n=t.status==="live"||t.status==="minting";return e.jsxs(d,{to:"/collect/$slug",params:{slug:t.slug},className:"group relative block rounded-2xl overflow-hidden border border-primary/20 bg-gradient-to-br from-[#1a0a00] via-black to-[#0b0300] hover:border-primary/50 transition",children:[e.jsxs("div",{className:"relative aspect-square bg-gradient-to-br from-orange-500/30 to-rose-500/30",children:[t.cover_art_url&&e.jsx("img",{decoding:"async",src:_(t.cover_art_url,960),alt:t.title,className:"w-full h-full object-cover transition group-hover:scale-105",loading:"lazy"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent"}),e.jsxs("span",{className:"absolute top-2 left-2 inline-flex items-center gap-1 text-[10px] font-black uppercase tracking-wider px-2 py-1 rounded-full bg-primary text-primary-foreground shadow-lg",children:[e.jsx(P,{className:"w-3 h-3"})," NFT"]}),e.jsx("span",{className:`absolute top-2 right-2 inline-flex items-center gap-1 text-[10px] font-black uppercase tracking-wider px-2 py-1 rounded-full ${r?"bg-emerald-500/20 text-emerald-300 border border-emerald-500/40":"bg-black/60 text-primary border border-primary/40"}`,children:r?e.jsxs(e.Fragment,{children:[e.jsx(ce,{className:"w-3 h-3"})," Sold out"]}):e.jsxs(e.Fragment,{children:[e.jsx(xe,{className:"w-3 h-3"})," ",n?"Minting":t.status]})})]}),e.jsxs("div",{className:"p-3",children:[e.jsx("div",{className:"font-bold text-sm truncate group-hover:text-primary",children:t.title}),e.jsxs("div",{className:"mt-1 flex items-center justify-between text-[11px] text-muted-foreground",children:[e.jsxs("span",{children:[t.minted_count,"/",t.edition_size," minted"]}),e.jsxs("span",{className:"tabular-nums text-primary font-black",children:["$",Number(t.price_usd).toFixed(0)]})]})]})]})}function B({current:t,onChange:r}){return e.jsx("div",{className:"flex gap-1 mt-2",children:["draft","review","published"].map(n=>e.jsx("button",{disabled:t===n,onClick:()=>r(n),className:`flex-1 text-[9px] uppercase font-bold tracking-wider py-1 rounded-md border ${t===n?"bg-primary/20 border-primary/40 text-primary":"border-white/10 hover:border-primary/40"}`,children:n},n))})}export{ke as component};

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.