PageSourceSearch

https://retromodernlabel.com/assets/AdminRoyalties-BUHvCPk8.js

js retromodernlabel.com collected 2026-10-05 19:43:54 UTC 19,556 bytes, 13 lines download raw bytes

1import{j as e}from"./motion-BnlSAZyK.js";import{r as y,A as pe,C as ne,X as re,Y as ie,g as Ne,B as be,e as ve}from"./recharts-Aeq2sMXW.js";import{l as je,B as Ce,e as Se,Z as X,_ as Y,$ as G,a0 as Z,a1 as E,I as Me,M as le,ad as Ee}from"./index-Dh0Sh47u.js";import{C as N,c as b,a as T,b as k}from"./card-BB9zZ2lO.js";import{C as ce,a as oe,b as me}from"./chart--Wq4B-Gh.js";import{T as J,a as ee,b as I,c as u,d as te,e as g}from"./table-ByHjqNfY.js";import{U as de}from"./upload-BUAPHNem.js";import{T as he}from"./triangle-alert-BB5lwgho.js";import{T as Te}from"./trending-up-yhxbdKMQ.js";import{T as ke}from"./trending-down-D7cvfSNR.js";import"./react-vendor-DoEYtFvE.js";import"./supabase-D_2IiIQD.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Ae=je("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Ue=je("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]),we=["Sale Month","Store","Artist","Title","ISRC","UPC","Quantity","Team Percentage","Source Type","Country of Sale","Songwriter Royalties Withheld (USD)","Earnings (USD)","Recoup (USD)"],O=t=>({name:t,rows:0,quantity:0,earnings:0,positiveEarnings:0,negativeEarnings:0}),A=(t,s)=>{t.rows+=1,t.quantity+=s.quantity,t.earnings+=s.earnings,s.earnings>=0?t.positiveEarnings+=s.earnings:t.negativeEarnings+=s.earnings},z=(t,s)=>{const n=t.get(s);if(n)return n;const o=O(s);return t.set(s,o),o},V=t=>{if(!t)return 0;const s=Number(t);return Number.isFinite(s)?s:0},$=(t,s)=>({...t,avgPerUnit:t.quantity!==0?t.earnings/t.quantity:null,share:s!==0?t.earnings/s:0}),L=(t,s)=>s.earnings-t.earnings,De=t=>{const s=[];let n=[],o="",r=!1;for(let d=0;d<t.length;d+=1){const l=t[d],v=t[d+1];if(l==='"'){r&&v==='"'?(o+='"',d+=1):r=!r;continue}if(l===","&&!r){n.push(o),o="";continue}if((l===`
12`||l==="\r")&&!r){l==="\r"&&v===`
13`&&(d+=1),n.push(o),n.some(S=>S.length>0)&&s.push(n),n=[],o="";continue}o+=l}return n.push(o),n.some(d=>d.length>0)&&s.push(n),s},Fe=t=>{const s=De(t.replace(/^\uFEFF/,"")),[n,...o]=s;if(!(n!=null&&n.length))throw new Error("The uploaded CSV is empty.");const r=new Map(n.map((l,v)=>[l,v])),d=we.filter(l=>!r.has(l));if(d.length)throw new Error(`Missing required CSV columns: ${d.join(", ")}`);return o.map(l=>({saleMonth:l[r.get("Sale Month")]||"(blank)",store:l[r.get("Store")]||"(blank)",artist:l[r.get("Artist")]||"(blank)",title:l[r.get("Title")]||"(blank)",isrc:l[r.get("ISRC")]||"",upc:l[r.get("UPC")]||"",quantity:V(l[r.get("Quantity")]),teamPercentage:V(l[r.get("Team Percentage")]),sourceType:l[r.get("Source Type")]||"(blank)",country:l[r.get("Country of Sale")]||"(blank)",songwriterRoyaltiesWithheld:V(l[r.get("Songwriter Royalties Withheld (USD)")]),earnings:V(l[r.get("Earnings (USD)")]),recoup:V(l[r.get("Recoup (USD)")])}))},$e=t=>{if(!t.length)return 0;const s=[...t].sort((o,r)=>o-r),n=Math.floor(s.length/2);return s.length%2===0?(s[n-1]+s[n])/2:s[n]},xe=t=>{var U,w;const s=O("Total"),n=new Map,o=new Map,r=new Map,d=new Map,l=new Map,v=new Map,S=new Map,h=new Map,i=new Set,m=new Set,p=new Set;t.forEach(a=>{A(s,a),A(z(n,a.artist),a),A(z(o,a.store),a),A(z(r,a.country),a),A(z(d,a.sourceType),a),A(z(l,a.saleMonth),a),h.has(a.saleMonth)||h.set(a.saleMonth,new Set),h.get(a.saleMonth).add(a.store);const j=`${a.artist}\0${a.title}`;
13i.add(j),a.isrc&&m.add(a.isrc),a.upc&&p.add(a.upc),S.has(j)||S.set(j,{...O(a.title),artist:a.artist,title:a.title}),A(S.get(j),a),a.earnings<0&&A(z(v,a.store),a)});const M=s.earnings,f=[...l.values()].map(a=>{var j;return{...$(a,M),storeCount:((j=h.get(a.name))==null?void 0:j.size)||0}}).sort((a,j)=>a.name.localeCompare(j.name)),R=f.slice(-4,-1).map(a=>a.storeCount),P=Math.round($e(R)),q=f.at(-1),F=q?{month:q.name,storeCount:q.storeCount,benchmarkStoreCount:P,appearsIncomplete:P>0&&q.storeCount<P*.75}:null;return{summary:{rows:t.length,quantity:s.quantity,earnings:s.earnings,positiveEarnings:s.positiveEarnings,negativeEarnings:s.negativeEarnings,avgPerUnit:s.quantity!==0?s.earnings/s.quantity:null,saleMonthStart:((U=f[0])==null?void 0:U.name)||"",saleMonthEnd:((w=f.at(-1))==null?void 0:w.name)||"",artistCount:n.size,titleCount:i.size,isrcCount:m.size,upcCount:p.size,storeCount:o.size,countryCount:r.size,sourceTypeCount:d.size},monthly:f,artists:[...n.values()].map(a=>$(a,M)).sort(L),stores:[...o.values()].map(a=>$(a,M)).sort(L),countries:[...r.values()].map(a=>$(a,M)).sort(L),sourceTypes:[...d.values()].map(a=>$(a,M)).sort(L),catalog:[...S.values()].map(a=>({...$(a,M),artist:a.artist,title:a.title})).sort(L),negativeStores:[...v.values()].map(a=>$(a,M)).sort((a,j)=>a.earnings-j.earnings),latestMonthCompleteness:F}},qe=(t,s)=>s==="artist"?t.artist:s==="store"?t.store:s==="country"?t.country:s==="sourceType"?t.sourceType:`${t.artist}\0${t.title}`,ze=(t,s,n,o=1)=>{const r=new Map,d=new Map,l=(h,i)=>{const m=qe(i,n);h.has(m)||h.set(m,{...O(n==="catalog"?i.title:m),artist:n==="catalog"?i.artist:void 0,title:n==="catalog"?i.title:void 0}),A(h.get(m),i)};t.forEach(h=>l(r,h)),s.forEach(h=>l(d,h));const v=new Set([...r.keys(),...d.keys()]),S=o>0?o:1;return[...v].map(h=>{const i=r.get(h),m=d.get(h),p=((m==null?void 0:m.earnings)||0)/S,M=((m==null?void 0:m.quantity)||0)/S,f=(i==null?void 0:i.earnings)||0,R=(i==null?void 0:i.quantity)||0;return{name:(i==null?void 0:i.name)||(m==null?void 0:m.name)||h,artist:(i==null?void 0:i.artist)||(m==null?void 0:m.artist),title:(i==null?void 0:i.title)||(m==null?void 0:m.title),currentEarnings:f,baselineEarnings:p,deltaEarnings:f-p,change:p!==0?(f-p)/Math.abs(p):null,currentQuantity:R,baselineQuantity:M}}).sort((h,i)=>h.deltaEarnings-i.deltaEarnings)},ue={earnings:{label:"Earnings",color:"hsl(var(--primary))"},quantity:{label:"Quantity",color:"hsl(var(--accent))"},stores:{label:"Stores",color:"hsl(var(--secondary))"}},D=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:t>=100?0:2}).format(t),ge=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(t),Ie=t=>new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(t),W=t=>new Intl.NumberFormat("en-US").format(Math.round(t)),se=t=>new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}).format(t),fe=t=>t===null?"n/a":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:Math.abs(t)<1?4:2,maximumFractionDigits:Math.abs(t)<1?5:2}).format(t),H=({title:t,value:s,detail:n,icon:o})=>e.jsxs(N,{children:[e.jsxs(T,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(k,{className:"text-sm font-medium",children:t}),e.jsx(o,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(b,{children:[e.jsx("div",{className:"text-2xl font-bold",children:s}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:n})]})]}),K=({rows:t,nameLabel:s,limit:n=10,showRate:o=!0})=>e.jsxs(J,{children:[e.jsx(ee,{children:e.jsxs(I,{children:[e.jsx(u,{children:s}),e.jsx(u,{className:"text-right",children:"Earnings"}),e.jsx(u,{className:"text-right",children:"Share"}),e.jsx(u,{className:"hidden text-right md:table-cell",children:"Quantity"}),o&&e.jsx(u,{className:"hidden text-right lg:table-cell",children:"Avg/unit"})]})}),e.jsx(te,{children:t.slice(0,n).map(r=>e.jsxs(I,{children:[e.jsx(g,{className:"max-w-[280px] truncate font-medium",children:r.name}),e.jsx(g,{className:"text-right font-medium",children:D(r.earnings)}),e.jsx(g,{className:"text-right text-muted-foreground",children:se(r.share)}),e.jsx(g,{className:"hidden text-right text-muted-foreground md:table-cell",children:W(r.quantity)}),o&&e.jsx(g,{className:"hidden text-right text-muted-foreground lg:table-cell",children:fe(r.avgPerUnit)})]},r.name))})]}),Re=({rows:t})=>e.jsxs(J,{children:[e.jsx(ee,{children:e.jsxs(I,{children:[e.jsx(u,{children:"Track"}),e.jsx(u,{className:"hidden md:table-cell",children:"Artist"}),e.jsx(u,{className:"text-right",children:"Earnings"}),e.jsx(u,{className:"hidden text-right sm:table-cell",children:"Share"}),e.jsx(u,{className:"hidden text-right lg:table-cell",children:"Quantity"})]})}),e.jsx(te,{children:t.slice(0,15).map(s=>e.jsxs(I,{children:[e.jsx(g,{className:"max-w-[320px] truncate font-medium",children:s.title}),e.jsx(g,{className:"hidden text-muted-foreground md:table-cell",children:s.artist}),e.jsx(g,{className:"text-right font-medium",children:D(s.earnings)}),e.jsx(g,{className:"hidden text-right text-muted-foreground sm:table-cell",children:se(s.share)}),e.jsx(g,{className:"hidden text-right text-muted-foreground lg:table-cell",children:W(s.quantity)})]},`${s.artist}-${s.title}`))})]}),Pe=({rows:t,dimension:s})=>e.jsxs(J,{children:[e.jsx(ee,{children:e.jsxs(I,{children:[e.jsx(u,{children:s==="catalog"?"Track":"Name"}),s==="catalog"&&e.jsx(u,{className:"hidden md:table-cell",children:"Artist"}),e.jsx(u,{className:"text-right",children:"Current"}),e.jsx(u,{className:"hidden text-right sm:table-cell",children:"Baseline"}),e.jsx(u,{className:"text-right",children:"Delta"}),e.jsx(u,{className:"hidden text-right lg:table-cell",children:"Change"})]})}),e.jsx(te,{children:t.slice(0,12).map(n=>e.jsxs(I,{children:[e.jsx(g,{className:"max-w-[300px] truncate font-medium",children:n.name}),s==="catalog"&&e.jsx(g,{className:"hidden text-muted-foreground md:table-cell",children:n.artist}),e.jsx(g,{className:"text-right font-medium",children:D(n.currentEarnings)}),e.jsx(g,{className:"hidden text-right text-muted-foreground sm:table-cell",children:D(n.baselineEarnings)}),e.jsx(g,{className:"text-right font-medium text-destructive",children:D(n.deltaEarnings)}),e.jsx(g,{className:"hidden text-right text-muted-foreground lg:table-cell",children:n.change===null?"new":se(n.change)})]},`${n.artist||""}-${n.name}`))})]}),Ze=()=>{var ae;const[t,s]=y.useState(null),[n,o]=y.useState([]),[r,d]=y.useState(""),[l,v]=y.useState(""),[S,h]=y.useState(!1),[i,m]=y.useState("all"),[p,M]=y.useState("previous"),[f,R]=y.useState("artist"),P=async c=>{if(c){h(!0),v(""),d(c.name);try{const C=await c.text(),Q=Fe(C),_=xe(Q);o(Q),s(_),m(_.summary.saleMonthEnd||"all")}catch(C){o([]),s(null),v(C instanceof Error?C.message:"Unable to parse royalty CSV.")}finally{h(!1)}}},q=y.useMemo(()=>(t==null?void 0:t.monthly.map(c=>({month:c.name,earnings:Number(c.earnings.toFixed(2)),quantity:Math.round(c.quantity),stores:c.storeCount})))||[],[t]),F=y.useMemo(()=>(t==null?void 0:t.monthly.map(c=>c.name))||[],[t]),U=y.useMemo(()=>i==="all"?n:n.filter(c=>c.saleMonth===i),[n,i]),w=y.useMemo(()=>U.length?xe(U):null,[U]),a=y.useMemo(()=>(w==null?void 0:w.stores.slice(0,8).map(c=>({store:c.name.length>18?`${c.name.slice(0,18)}...`:c.name,earnings:Number(c.earnings.toFixed(2))})))||[],[w]),j=y.useMemo(()=>
13{if(!t||i==="all")return{rows:[],label:"Select a month to compare."};const c=F.indexOf(i);if(c<=0)return{rows:[],label:"No earlier month is available."};const C=p==="trailing3"?F.slice(Math.max(0,c-3),c):[F[c-1]],Q=n.filter(B=>C.includes(B.saleMonth));return{rows:ze(U,Q,f,C.length).filter(B=>B.deltaEarnings<0&&(B.currentEarnings!==0||B.baselineEarnings!==0)),label:p==="trailing3"?`Compared with average of ${C.join(", ")}`:`Compared with ${C[0]}`}},[t,p,f,n,F,U,i]),x=w||t,ye=i==="all"?"All months":i;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-heading text-2xl uppercase tracking-widest text-foreground",children:"Royalties"}),r&&e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:r})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[t&&e.jsxs(Ce,{variant:"secondary",children:[t.summary.saleMonthStart," to ",t.summary.saleMonthEnd]}),e.jsx(Se,{asChild:!0,variant:"outline",size:"sm",children:e.jsxs("label",{htmlFor:"royalty-csv",className:"cursor-pointer",children:[e.jsx(de,{className:"mr-2 h-4 w-4"}),"Upload CSV"]})}),e.jsx("input",{id:"royalty-csv",type:"file",accept:".csv,text/csv",className:"sr-only",onChange:c=>{var C;return P(((C=c.target.files)==null?void 0:C[0])||null)}})]})]}),l&&e.jsx(N,{className:"border-destructive/40 bg-destructive/5",children:e.jsxs(b,{className:"flex items-center gap-3 py-4 text-sm text-destructive",children:[e.jsx(he,{className:"h-4 w-4"}),l]})}),!t&&!l&&e.jsx(N,{className:"border-dashed",children:e.jsxs(b,{className:"flex min-h-[220px] flex-col items-center justify-center gap-4 text-center",children:[e.jsx("div",{className:"flex h-12 w-12 items-center justify-center bg-primary/10 text-primary",children:e.jsx(de,{className:"h-5 w-5"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:S?"Parsing CSV...":"No royalty file loaded"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Royalty export columns are processed locally."})]})]})}),t&&e.jsxs(e.Fragment,{children:[e.jsx(N,{children:e.jsxs(b,{className:"flex flex-col gap-3 py-4 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Analysis Scope"}),e.jsxs("p",{className:"text-xs text-muted-foreground",children:["Cards and tables below reflect ",ye,"; the monthly chart still shows the full file."]})]}),e.jsxs("div",{className:"grid gap-2 sm:grid-cols-3 lg:w-[620px]",children:[e.jsxs(X,{value:i,onValueChange:m,children:[e.jsx(Y,{children:e.jsx(G,{placeholder:"Month"})}),e.jsxs(Z,{children:[e.jsx(E,{value:"all",children:"All Months"}),F.map(c=>e.jsx(E,{value:c,children:c},c))]})]}),e.jsxs(X,{value:p,onValueChange:M,children:[e.jsx(Y,{children:e.jsx(G,{placeholder:"Baseline"})}),e.jsxs(Z,{children:[e.jsx(E,{value:"previous",children:"Previous Month"}),e.jsx(E,{value:"trailing3",children:"Trailing 3 Avg"})]})]}),e.jsxs(X,{value:f,onValueChange:c=>R(c),children:[e.jsx(Y,{children:e.jsx(G,{placeholder:"Compare By"})}),e.jsxs(Z,{children:[e.jsx(E,{value:"artist",children:"Artists"}),e.jsx(E,{value:"catalog",children:"Tracks"}),e.jsx(E,{value:"store",children:"Stores"}),e.jsx(E,{value:"country",children:"Countries"}),e.jsx(E,{value:"sourceType",children:"Source Types"})]})]})]})]})}),e.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[e.jsx(H,{title:"Net Earnings",value:D(x.summary.earnings),detail:`${D(x.summary.positiveEarnings)} gross, ${D(x.summary.negativeEarnings)} adjustments`,icon:Me}),e.jsx(H,{title:"Reported Quantity",value:Ie(x.summary.quantity),detail:`${fe(x.summary.avgPerUnit)} average per unit`,icon:Te}),e.jsx(H,{title:"Catalog",value:W(x.summary.titleCount),detail:`${x.summary.artistCount} artists, ${x.summary.isrcCount} ISRCs`,icon:le}),e.jsx(H,{title:"Distribution",value:W(x.summary.storeCount),detail:`${x.summary.countryCount} countries, ${x.summary.sourceTypeCount} source types`,icon:Ae})]}),((ae=t.latestMonthCompleteness)==null?void 0:ae.appearsIncomplete)&&e.jsx(N,{className:"border-amber-500/40 bg-amber-500/5",children:e.jsxs(b,{className:"flex flex-col gap-2 py-4 text-sm sm:flex-row sm:items-center",children:[e.jsx(he,{className:"h-4 w-4 text-amber-500"}),e.jsxs("span",{children:[t.latestMonthCompleteness.month," has ",t.latestMonthCompleteness.storeCount," stores reported versus a re
13cent benchmark of ",t.latestMonthCompleteness.benchmarkStoreCount,"."]})]})}),i!=="all"&&e.jsxs(N,{children:[e.jsxs(T,{className:"flex flex-row items-center justify-between",children:[e.jsxs("div",{children:[e.jsx(k,{className:"text-base",children:"Underperforming vs Baseline"}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:j.label})]}),e.jsx(ke,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsx(b,{children:j.rows.length?e.jsx(Pe,{rows:j.rows,dimension:f}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No underperformers for this comparison."})})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-[minmax(0,1.4fr)_minmax(360px,0.8fr)]",children:[e.jsxs(N,{children:[e.jsx(T,{children:e.jsx(k,{className:"text-base",children:"Monthly Earnings"})}),e.jsx(b,{children:e.jsx(ce,{config:ue,className:"h-[320px] w-full",children:e.jsxs(pe,{data:q,children:[e.jsx(ne,{strokeDasharray:"3 3"}),e.jsx(re,{dataKey:"month",fontSize:12,tickLine:!1}),e.jsx(ie,{fontSize:12,tickLine:!1,tickFormatter:c=>ge(Number(c))}),e.jsx(oe,{content:e.jsx(me,{})}),e.jsx(Ne,{dataKey:"earnings",type:"monotone",stroke:"var(--color-earnings)",fill:"var(--color-earnings)",fillOpacity:.35})]})})})]}),e.jsxs(N,{children:[e.jsx(T,{children:e.jsx(k,{className:"text-base",children:"Platform Mix"})}),e.jsx(b,{children:e.jsx(ce,{config:ue,className:"h-[320px] w-full",children:e.jsxs(be,{data:a,layout:"vertical",margin:{left:16,right:16},children:[e.jsx(ne,{strokeDasharray:"3 3",horizontal:!1}),e.jsx(re,{type:"number",fontSize:12,tickLine:!1,tickFormatter:c=>ge(Number(c))}),e.jsx(ie,{type:"category",dataKey:"store",width:112,fontSize:12,tickLine:!1}),e.jsx(oe,{content:e.jsx(me,{})}),e.jsx(ve,{dataKey:"earnings",fill:"var(--color-earnings)",radius:[0,4,4,0]})]})})})]})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.jsxs(N,{children:[e.jsxs(T,{className:"flex flex-row items-center justify-between",children:[e.jsx(k,{className:"text-base",children:"Artists"}),e.jsx(le,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsx(b,{children:e.jsx(K,{rows:x.artists,nameLabel:"Artist",limit:8,showRate:!1})})]}),e.jsxs(N,{children:[e.jsxs(T,{className:"flex flex-row items-center justify-between",children:[e.jsx(k,{className:"text-base",children:"Stores"}),e.jsx(Ue,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsx(b,{children:e.jsx(K,{rows:x.stores,nameLabel:"Store",limit:8,showRate:!1})})]})]}),e.jsxs(N,{children:[e.jsxs(T,{className:"flex flex-row items-center justify-between",children:[e.jsx(k,{className:"text-base",children:"Catalog"}),e.jsx(Ee,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsx(b,{children:e.jsx(Re,{rows:x.catalog})})]}),e.jsxs("div",{className:"grid gap-4 xl:grid-cols-2",children:[e.jsxs(N,{children:[e.jsx(T,{children:e.jsx(k,{className:"text-base",children:"Countries"})}),e.jsx(b,{children:e.jsx(K,{rows:x.countries,nameLabel:"Country",limit:12,showRate:!1})})]}),e.jsxs(N,{children:[e.jsx(T,{children:e.jsx(k,{className:"text-base",children:"Adjustments"})}),e.jsx(b,{children:x.negativeStores.length?e.jsx(K,{rows:x.negativeStores,nameLabel:"Store",limit:8,showRate:!1}):e.jsx("p",{className:"text-sm text-muted-foreground",children:"No negative earnings rows in this file."})})]})]})]})]})};export{Ze as default};

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.