PageSourceSearch

https://bushido-frmclbxas-bushidocode.vercel.app/_next/static/chunks/pages/dashboard-853b8c56ba9d9a9f.js

js bushido-frmclbxas-bushidocode.vercel.app collected 2026-10-03 06:22:25 UTC 29,005 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9724],{1534:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},7775:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]])},10361:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]])},12273:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard",function(){return s(98959)}])},31179:(e,t,s)=>{"use strict";var a=s(74353),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function o(e){return a.isMemo(e)?i:l[e.$$typeof]||r}l[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[a.Memo]=i;var c=Object.defineProperty,d=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,u=Object.prototype;e.exports=function e(t,s,a){if("string"!=typeof s){if(u){var r=p(s);r&&r!==u&&e(t,r,a)}var i=d(s);h&&(i=i.concat(h(s)));for(var l=o(t),x=o(s),f=0;f<i.length;++f){var b=i[f];if(!n[b]&&!(a&&a[b])&&!(x&&x[b])&&!(l&&l[b])){var y=m(s,b);try{c(t,b,y)}catch(e){}}}}return t}},34446:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},42563:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]])},51540:(e,t,s)=>{"use strict";s.d(t,{cn:()=>n});var a=s(50212),r=s(29573);function n(){for(var e=arguments.length,t=Array(e),s=0;s<e;s++)t[s]=arguments[s];return(0,r.QP)((0,a.$)(t))}},52282:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]])},53023:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},59356:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},61286:(e,t,s)=>{"use strict";s.d(t,{dR:()=>h,yo:()=>d});var a=s(6029);s(55729);var r=s(82203),n=s.n(r),i=s(97561),l=s(14117),o=s(50129);let c={wide:"max-w-[1400px]",app:"max-w-[1280px]",form:"max-w-[1080px]"};function d(e){let{eyebrow:t,title:s,accent:r,sub:d,actions:h,crumbs:m,children:p,className:u,testId:x,narrow:f=!1,width:b="wide",hideHead:y=!1,unwrapped:g=!1}=e;return(0,a.jsx)("div",{"data-testid":x,className:(0,i.cn)("bg-bg text-ink",u),children:(0,a.jsxs)("div",{className:(0,i.cn)(!g&&"mx-auto px-6 py-8 md:px-9 md:py-10 lg:px-10 lg:py-12",!g&&(f?"max-w-[760px]":c[b])),children:[m&&m.length>0&&(0,a.jsx)(l.BI,{className:"mb-5",items:m,linkAs:n()}),!y&&(0,a.jsxs)(o.ec,{children:[(0,a.jsxs)("div",{children:[t&&(0,a.jsx)(o.Hf,{children:t}),void 0!==s&&(0,a.jsx)(o.sT,{accent:r,children:s}),d&&(0,a.jsx)(o.CO,{children:d})]}),h&&(0,a.jsx)(o.t2,{children:h})]}),p]})})}function h(e){let{width:t="app",...s}=e;return(0,a.jsx)(d,{width:t,...s})}},62226:(e,t,s)=>{"use strict";s.d(t,{p:()=>d});var a=s(6029),r=s(82203),n=s.n(r),i=s(81278),l=s(26964),o=s(51540),c=s(28350);function d(e){let{className:t}=e,s=(0,i.useRouter)(),r=(0,l.hI)(),d=c.Z.filter(e=>!e.whitelabelHidden||!r);return(0,a.jsx)("nav",{"aria-label":"Account sections","data-testid":"account-nav",className:(0,o.cn)("relative mb-8 flex items-center gap-1 overflow-x-auto rounded-xl border border-line bg-panel-2 p-1","w-fit max-w-full","after:pointer-events-none after:absolute after:inset-y-0 after:right-0 after:w-8 after:rounded-xl after:bg-gradient-to-l after:from-panel-2",t),children:d.map(e=>{let t=e.icon,r="/dashboard"===e.href?"/dashboard"===s.pathname:s.pathname===e.href||s.pathname.startsWith("".concat(e.href,"/"));return(0,a.jsxs)(n(),{href:e.href,"aria-current":r?"page":void 0,"data-testid":"account-nav-".concat(e.key),className:(0,o.cn)("inline-flex min-h-[36px] shrink-0 items-center gap-2 rounded-lg px-3.5 text-[13px] font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent focus-visible:ring-offset-2 focus-visible:ring-offset-panel-2",r?"bg-ink text-bg":"text-muted hover:text-ink"),children:[(0,a.jsx)(t,{className:"h-3.5 w-3.5","aria-hidden":"true"}),e.label]},e.key)})})}},70477:(e,t)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,r=s?Symbol.for("react.portal"):60106,n=s?Symbol.for("react.fragment"):60107,i=s?Symbol.for("react.strict_mode"):60108,l=s?Symbol.for("react.profiler"):60114,o=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,d=s?Symbol.for("react.async_mode"):60111,h=s?Symbol.for("react.concurrent_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,p=s?Symbol.for("react.suspense"):60113,u=s?Symbol.for("react.suspense_list"):60120,x=s?Symbol.for("react.memo"):60115,f=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.block"):60121,y=s?Symbol.for("react.fundamental"):60117,g=s?Symbol.for("react.responder"):60118,v=s?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case d:case h:case n:case l:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case m:case f:case x:case o:return e;default:return t}}case r:return t}}}function w(e){return j(e)===h}t.AsyncMode=d,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=o,t.Element=a,t.ForwardRef=m,t.Fragment=n,t.Lazy=f,t.Memo=x,t.Portal=r,t.Profiler=l,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||j(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return j(e)===c},t.isContextProvider=function(e){return j(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return j(e)===m},t.isFragment=function(e){return j(e)===n},t.isLazy=function(e){return j(e)===f},t.isMemo=function(e){return j(e)===x},t.isPortal=function(e){return j(e)===r},t.isProfiler=function(e){return j(e)===l},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===h||e===l||e===i||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===x||e.$$typeof===o||e.$$typeof===c||e.$$typeof===m||e.$$typeof===y||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b)},t.typeOf=j}
1,71541:(e,t,s)=>{"use strict";s.d(t,{X3:()=>i});var a=s(6029),r=s(31179),n=s(81032);function i(e){function t(t){return(0,a.jsx)(e,{...function(e){let{_superjson:t,...s}=e;return n.Ay.deserialize({json:s,meta:t})}(t)})}return r(t,e),t}},74353:(e,t,s)=>{"use strict";e.exports=s(70477)},74657:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]])},81303:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},93329:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(86346).A)("ChartPie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]])},98959:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>L,default:()=>D});var a=s(6029),r=s(71541),n=s(82203),i=s.n(n),l=s(35460),o=s(7775),c=s(49314),d=s(14117),h=s(62226),m=s(42563);let p={accent:"bg-accent-soft text-accent",ok:"bg-ok/12 text-ok",warn:"bg-warn/12 text-warn"},u={accent:"bg-accent",ok:"bg-ok",warn:"bg-warn"};function x(e){let{activity:t}=e;return(0,a.jsxs)(d.Hk,{"data-testid":"dashboard-activity",className:"overflow-hidden p-0",children:[(0,a.jsx)(d.ZX,{className:"mb-0 border-b border-line px-5 py-4 md:px-6",eyebrow:(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-md bg-accent-soft text-accent",children:(0,a.jsx)(m.A,{className:"h-3.5 w-3.5"})}),"Activity"]}),title:"Recent Activity",meta:"".concat(t.length," item").concat(1===t.length?"":"s"," \xb7 newest first")}),(0,a.jsx)("ol",{className:"m-0 list-none p-0 px-5 py-2 md:px-6",children:t.map((e,s)=>{var r;let n=null!=(r=e.tone)?r:"accent",i=s===t.length-1;return(0,a.jsxs)("li",{className:"relative grid grid-cols-[36px_minmax(0,1fr)_auto] items-start gap-3.5 py-4",children:[(0,a.jsxs)("div",{className:"relative flex justify-center",children:[!i&&(0,a.jsx)("span",{"aria-hidden":"true",className:"absolute left-1/2 top-9 h-[calc(100%-4px)] w-px -translate-x-1/2 ".concat(u[n]," opacity-20")}),(0,a.jsx)("span",{className:"relative z-10 inline-flex h-9 w-9 items-center justify-center rounded-full border-2 border-panel shadow-sm ".concat(p[n]),children:e.glyph})]}),(0,a.jsxs)("div",{className:"min-w-0 pb-0.5",children:[(0,a.jsx)("p",{className:"m-0 text-[13.5px] leading-[1.5] text-ink-2",children:e.body}),(0,a.jsx)("div",{className:"mt-1 font-mono text-[11px] text-muted",children:e.meta})]}),(0,a.jsx)("span",{className:"whitespace-nowrap font-mono text-[11px] text-muted",children:e.when})]},s)})})]})}var f=s(47374);function b(e){let{onboarding:t}=e;return(0,a.jsx)(d.Hk,{"data-testid":"dashboard-onboarding",className:"overflow-hidden bg-panel-2 p-0",children:(0,a.jsxs)("div",{className:"p-5 md:p-6",children:[(0,a.jsx)(d.ZX,{className:"mb-2",eyebrow:"Getting Started",title:(0,a.jsx)("span",{className:"font-display text-[22px] font-semibold italic tracking-[-0.02em] text-ink",children:t.title})}),(0,a.jsx)("p",{className:"mb-4 text-[13px] leading-[1.55] text-muted",children:t.body}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(d.$n,{asChild:!0,variant:"grad",size:"sm",className:"w-full justify-center",children:(0,a.jsxs)(i(),{href:t.primary.href,children:[(0,a.jsx)(f.A,{className:"h-4 w-4"}),t.primary.label]})}),(0,a.jsx)(d.$n,{asChild:!0,variant:"ghost",size:"sm",className:"w-full justify-center",children:(0,a.jsx)(i(),{href:t.secondary.href,children:t.secondary.label})})]})]})})}var y=s(93329);let g=["var(--accent)","var(--accent-2)","var(--ink)","var(--muted)"],v=["bg-accent","bg-accent-2","bg-ink","bg-muted"];function j(e){let{role:t,slices:s,portfolioCount:r,size:n}=e;return(0,a.jsxs)("svg",{width:n,height:n,viewBox:"0 0 42 42",role:"img","aria-label":"creator"===t?"Portfolio composition donut chart":"Activity composition donut chart",children:[(0,a.jsx)("circle",{cx:"21",cy:"21",r:"15.915",fill:"var(--panel)",stroke:"var(--line)",strokeWidth:"0.5"}),r>0?s.map((e,t)=>{let s=e.value/r*100;return s<=0?null:(0,a.jsx)("circle",{cx:"21",cy:"21",r:"15.915",fill:"transparent",stroke:g[t],strokeWidth:"6",strokeDasharray:"".concat(s," ").concat(100-s),strokeDashoffset:e.dashOffset},e.label)}):null,(0,a.jsx)("text",{x:"21",y:"20.5",textAnchor:"middle",fontFamily:"var(--font-display)",fontSize:"6",fontWeight:"600",fill:"var(--ink)",children:r}),(0,a.jsx)("text",{x:"21",y:"26",textAnchor:"middle",fontFamily:"var(--font-mono)",fontSize:"2.4",fill:"var(--muted)",letterSpacing:"0.2",children:"ITEMS"})]})}function w(e){let{slices:t}=e;return(0,a.jsx)(a.Fragment,{children:t.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between py-1.5 text-[13px] text-ink-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-sm ".concat(v[t]),"aria-hidden":"true"}),e.label]}),(0,a.jsx)("b",{className:"font-mono font-semibold text-ink",children:e.value})]},e.label))})}function k(e){let{role:t,slices:s,portfolioCount:r,hero:n=!1}
1=e,i=r>0?"".concat(r," active"):"creator"===t?"No inventory yet":"No activity yet";return n?(0,a.jsxs)(d.Hk,{"data-testid":"dashboard-portfolio",className:"overflow-hidden p-0",children:[(0,a.jsx)(d.ZX,{className:"mb-0 border-b border-line px-5 py-4 md:px-6",eyebrow:(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-md bg-accent-soft text-accent",children:(0,a.jsx)(y.A,{className:"h-3.5 w-3.5"})}),"Breakdown"]}),title:"creator"===t?"Portfolio Mix":"Activity Mix",meta:0===r?"Empty":"Live"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 items-center gap-6 px-5 py-6 sm:grid-cols-[180px_minmax(0,1fr)] sm:gap-8 md:px-6",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)(j,{role:t,slices:s,portfolioCount:r,size:180})}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(d.$5,{className:"border-0 bg-transparent p-0 hover:border-0 hover:shadow-none",label:"creator"===t?"Portfolio items":"Activity items",value:r,animate:!0,trend:i}),(0,a.jsx)("div",{className:"border-t border-line pt-3",children:(0,a.jsx)(w,{slices:s})})]})]})]}):(0,a.jsxs)(d.Hk,{"data-testid":"dashboard-portfolio",className:"overflow-hidden p-0",children:[(0,a.jsx)(d.ZX,{className:"mb-0 border-b border-line px-5 py-4",eyebrow:(0,a.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,a.jsx)("span",{className:"inline-flex h-5 w-5 items-center justify-center rounded-md bg-accent-soft text-accent",children:(0,a.jsx)(y.A,{className:"h-3.5 w-3.5"})}),"Breakdown"]}),title:"creator"===t?"Portfolio Mix":"Activity Mix",meta:0===r?"Empty":"Live"}),(0,a.jsx)("div",{className:"flex justify-center px-5 pt-5 pb-2",children:(0,a.jsx)(j,{role:t,slices:s,portfolioCount:r,size:180})}),(0,a.jsx)("p",{className:"mb-0 text-center font-display text-[16px] italic ".concat(r>0?"text-ok":"text-muted"),children:i}),(0,a.jsx)("div",{className:"mt-3 border-t border-line px-5 py-4",children:(0,a.jsx)(w,{slices:s})})]})}var N=s(89708);function A(e){let{quickActions:t}=e;return(0,a.jsxs)(d.Hk,{"data-testid":"dashboard-quick-actions",className:"overflow-hidden p-0",children:[(0,a.jsx)(d.ZX,{className:"mb-0 border-b border-line px-5 py-4 md:px-6",eyebrow:"Shortcuts",title:(0,a.jsxs)(a.Fragment,{children:["Quick"," ",(0,a.jsx)("span",{className:"font-display italic text-accent",children:"actions"})]}),meta:"".concat(t.length," shortcuts")}),(0,a.jsx)("div",{className:"grid grid-cols-1 gap-px bg-line sm:grid-cols-2",children:t.map(e=>{let t=e.icon;return(0,a.jsxs)(i(),{href:e.href,prefetch:!1,className:"group flex min-h-[140px] flex-col justify-between bg-panel p-5 no-underline transition-colors duration-150 hover:bg-panel-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring md:p-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"mb-3 inline-flex h-9 w-9 items-center justify-center rounded-lg bg-accent-soft text-accent transition-colors group-hover:bg-accent group-hover:text-accent-ink",children:(0,a.jsx)(t,{className:"h-4 w-4"})}),(0,a.jsx)("div",{className:"mb-1 font-display text-[20px] font-semibold italic tracking-[-0.02em] text-ink",children:e.label}),(0,a.jsx)("p",{className:"m-0 text-[13px] leading-[1.5] text-muted",children:e.description})]}),(0,a.jsxs)("span",{className:"mt-4 inline-flex items-center gap-1.5 text-[12.5px] font-semibold text-accent transition-colors group-hover:text-ink",children:["Get started ",(0,a.jsx)(N.A,{className:"h-3.5 w-3.5"})]})]},e.href)})})]})}var C=s(81303),S=s(10361),P=s(70457),$=s(34446),R=s(1534),F=s(10750),M=s(53023),q=s(74657),_=s(52282),E=s(59356),T=s(58440),z=s(62265);function B(e){return e.channelSlug?"/channels/".concat(e.channelSlug,"/add-media"):"/new-channel"}let O=[{icon:S.A,label:"Browse library",description:"Discover sync-ready tracks across the network",href:"/library"},{icon:R.A,label:"Discover artists",description:"Find new creators across genres and labels",href:"/search?tab=channels"},{icon:F.A,label:"Find rights holders",description:"Browse labels, publishers, and managers",href:"/search?tab=rightsHolder"},{icon:P.A,label:"Almost Famous",description:"Launch a multi-platform ad campaign",href:"/almost-famous"}];var H=s(61286),L=!0;let D=(0,r.X3)(function(e){var t,s,r,n;let{role:m,creatorStats:p,buyerStats:u,loadError:y,isAdmin:g}=e,{data:v}=(0,l.useSession)(),j=null!=(n=null!=(r=null==v||null==(t=v.user)?void 0:t.name)?r:null==v||null==(s=v.user)?void 0:s.email)?n:"",w=j.includes("@")?j.split("@")[0]:j.split(" ")[0],N="creator"===m&&p?function(e){let t=B(e),s=e.channelsCount>0||e.rightsHoldersCount>0||e.libraryCount>0;
1return{description:"A snapshot of your catalog, rights, channels, and active campaigns — all in one place.",kpis:[{icon:S.A,label:"Catalog works",value:e.libraryCount},{icon:$.A,label:"Rights holders",value:e.rightsHoldersCount},{icon:P.A,label:"Channels",value:e.channelsCount},{icon:M.A,label:"Active campaigns",value:e.activeCampaigns}],quickActions:[{icon:C.A,label:"Upload a work",description:"Register a new musical work or licensed media",href:B(e)},{icon:S.A,label:"Browse library",description:"Explore the sync licensing catalog",href:"/library"},{icon:P.A,label:"Almost Famous",description:"Launch a multi-platform ad campaign",href:"/almost-famous"},{icon:$.A,label:"Your rights holders",description:"Manage your rights and publishing",href:"/rightsholders"}],activity:function(e){let t=[];return e.libraryCount>0&&t.push({glyph:(0,a.jsx)(S.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:"Sync library"})," has"," ",(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.libraryCount})," ","published work",1===e.libraryCount?"":"s"," live across the network."]}),meta:"Catalog \xb7 isPublished + onNetwork",when:"Live",tone:"ok"}),e.ingestionJobsRecent>0&&t.push({glyph:(0,a.jsx)(C.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.ingestionJobsRecent})," ","ingestion job",1===e.ingestionJobsRecent?"":"s"," in the last 30 days — review status and resolve issues."]}),meta:"Ingestion \xb7 recent activity",when:"30d",tone:"accent"}),e.approvalRequestsPending>0&&t.push({glyph:(0,a.jsx)(T.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.approvalRequestsPending})," ","approval request",1===e.approvalRequestsPending?"":"s"," pending across your rights holders."]}),meta:"Rights holders \xb7 status=PENDING",when:"Now",tone:"warn"}),e.rightsHoldersCount>0&&t.push({glyph:(0,a.jsx)($.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:["You administer"," ",(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.rightsHoldersCount})," ","rights holder",1===e.rightsHoldersCount?"":"s"," — review splits and royalty allocations."]}),meta:"Rights holders \xb7 admin scope",when:"Now",tone:"accent"}),e.channelsCount>0&&t.push({glyph:(0,a.jsx)(P.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.channelsCount})," ","channel",1===e.channelsCount?"":"s"," under your control — configure paywalls and revenue splits."]}),meta:"Channels \xb7 creator surface",when:"Now",tone:"accent"}),e.activeCampaigns>0&&t.push({glyph:(0,a.jsx)(M.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.activeCampaigns})," ","Almost Famous campaign",1===e.activeCampaigns?"":"s"," running — monitor spend and attribution."]}),meta:"Almost Famous \xb7 status=active",when:"Live",tone:"ok"}),0===t.length&&t.push({glyph:(0,a.jsx)(z.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:"Welcome to Bushido."})," Publish your first work to start populating activity here."]}),meta:"Empty state \xb7 no inventory yet",when:"—",tone:"accent"}),t}(e),breakdownEntries:[{label:"Rights holders",value:e.rightsHoldersCount},{label:"Channels",value:e.channelsCount},{label:"Active campaigns",value:e.activeCampaigns}],primaryAction:{href:t,label:"Publish a work",icon:f.A},secondaryAction:{href:"/library",label:"Browse library",icon:S.A},tertiaryAction:{href:"/almost-famous",label:"Almost Famous",icon:P.A},onboarding:s?{title:"Add your next work.",body:"Upload new music, keep your rights and splits up to date, and list more works in the sync library.",primary:{href:t,label:"Upload a work"},secondary:{href:"/library",label:"Browse catalog"}}:{title:"Publish your first work.",body:"Register your music, set up rights and splits, then list it in the sync library. The whole flow takes under 10 minutes.",primary:{href:t,label:"Publish a work"},secondary:{href:"/library",label:"Browse catalog"}}}}(p):function(e){let t=e.licencesCount>0||e.savedTracksCount>0;return{description:"Discover the sync library, manage your licences, and track requests to rights holders — all in one place.",kpis:[{icon:S.A,label:"Library catalog",value:e.libraryCount},{icon:q.A,label:"My licences",value:e.licencesCount},{icon:_.A,label:"Saved tracks",value:e.savedTracksCount},{icon:E.A,label:"Pending requests",value:e.pendingRequestsCount}],quickActions:O,activity:function(e){let t=[];return e.purchasesRecent>0&&t.push({glyph:(0,a.jsx)(q.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.purchasesRecent})," ","recent licence purchase",1===e.purchasesRecent?"":"s"," — keep your usage rights handy."]}),meta:"Purchases \xb7 last 30 days",when:"30d",tone:"ok"}),e.pendingRequestsCount>0&&t.push({glyph:(0,a.jsx)(E.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.pendingRequestsCount})," ","licence request",1===e.pendingRequestsCount?"":"s"," awaiting rights holder approval."]}),meta:"Requests \xb7 status=PENDING",when:"Now",tone:"warn"}),e.favouritesRecent>0&&t.push({glyph:(0,a.jsx)(_.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:["You have"," ",(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.favouritesRecent})," ","saved track",1===e.favouritesRecent?"":"s"," ready to revisit."]}),meta:"Favorites \xb7 saved tracks",when:"Live",tone:"accent"}),e.libraryCount>0&&t.push({glyph:(0,a.jsx)(S.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:e.libraryCount})," work",1===e.libraryCount?"":"s"," ready to browse across the sync library."]}),meta:"Catalog \xb7 isPublished + onNetwork",when:"Live",tone:"ok"}),0===t.length&&t.push({glyph:(0,a.jsx)(z.A,{className:"h-4 w-4"}),body:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("b",{className:"font-semibold text-ink",children:"Welcome to Bushido."})," Start by exploring the sync library — your activity will populate here."]}),meta:"Empty state \xb7 no activity yet",when:"—",tone:"accent"}),t}(e),breakdownEntries:[{label:"My licences",value:e.licencesCount},{label:"Saved tracks",value:e.savedTracksCount},{label:"Pending requests",value:e.pendingRequestsCount}],primaryAction:{href:"/library",label:"Browse library",icon:S.A},secondaryAction:{href:"/search?tab=channels",label:"Discover artists",icon:R.A},tertiaryAction:{href:"/almost-famous",label:"Almost Famous",icon:P.A},onboarding:t?{title:"Find your next track.",body:"Keep browsing the sync library, save favorites, and request licences from rights holders. Most approvals come back within 48 hours.",primary:{href:"/library",label:"Browse library"},secondary:{href:"/search?tab=channels",label:"Discover artists"}}:{title:"Find your first track.",body:"Browse the sync library, save favorites, and request a licence from the rights holder. Most approvals come back within 48 hours.",primary:{href:"/library",label:"Browse library"},secondary:{href:"/search?tab=channels",label:"Discover artists"}}}}(null!=u?u:{libraryCount:0,licencesCount:0,savedTracksCount:0,pendingRequestsCount:0,purchasesRecent:0,favouritesRecent:0}),F=function(e){let t=e.reduce((e,t)=>
1e+t.value,0),s=25,a=e.map(e=>{let a=t>0?e.value/t*100:0,r={label:e.label,value:e.value,dashOffset:s};return s-=a,r});return{total:t,slices:a}}(N.breakdownEntries),L=F.total,D=N.primaryAction.icon,X=N.secondaryAction.icon;return(0,a.jsx)(H.dR,{eyebrow:"Account",title:"Welcome back",accent:w?", ".concat(w):void 0,sub:N.description,testId:"dashboard-page",actions:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{"data-testid":"dashboard-page-head",className:"sr-only"}),(0,a.jsx)(d.$n,{asChild:!0,variant:"accent",children:(0,a.jsxs)(i(),{href:N.primaryAction.href,children:[(0,a.jsx)(D,{className:"h-4 w-4"}),N.primaryAction.label]})}),(0,a.jsx)(d.$n,{asChild:!0,variant:"ghost",children:(0,a.jsxs)(i(),{href:N.secondaryAction.href,children:[(0,a.jsx)(X,{className:"h-4 w-4"}),N.secondaryAction.label]})})]}),children:(0,a.jsxs)("div",{"data-dashboard-role":m,children:[(0,a.jsx)(h.p,{}),y&&(0,a.jsx)(d.Fc,{variant:"error",className:"mb-6","data-testid":"dashboard-load-error",children:(0,a.jsxs)("div",{className:"flex flex-1 flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d.XL,{children:"Some data couldn’t be loaded"}),(0,a.jsx)(d.TN,{children:"The numbers below may be incomplete. Refresh to try loading your dashboard again."})]}),(0,a.jsxs)(d.$n,{variant:"ghost",size:"sm",onClick:()=>window.location.reload(),children:[(0,a.jsx)(o.A,{className:"h-4 w-4"}),"Refresh"]})]})}),g&&(0,a.jsxs)("div",{className:"mb-6 flex flex-wrap items-center justify-between gap-3 rounded-lg border border-line bg-panel-2 p-5","data-testid":"dashboard-admin-tools",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("span",{"aria-hidden":"true",className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-accent-soft text-accent",children:(0,a.jsx)(c.A,{className:"h-5 w-5"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"m-0 font-display text-[15px] font-semibold text-ink",children:"Admin tools"}),(0,a.jsx)("p",{className:"m-0 text-[13px] text-muted",children:"Review publishing deals and manage platform operations."})]})]}),(0,a.jsx)(d.$n,{asChild:!0,variant:"ghost",size:"sm",children:(0,a.jsx)(i(),{href:"/admin",children:"Open admin"})})]}),(0,a.jsx)("div",{className:"mb-8 grid grid-cols-2 gap-3 sm:gap-4 md:mb-10 md:grid-cols-4","data-testid":"dashboard-kpis",children:N.kpis.map(e=>{let t=e.icon;return(0,a.jsx)(d.$5,{label:(0,a.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-[11px] sm:text-[13px]",children:[(0,a.jsx)(t,{className:"h-3 w-3 shrink-0 sm:h-3.5 sm:w-3.5"}),(0,a.jsx)("span",{className:"truncate",children:e.label})]}),value:e.value,animate:!0},e.label)})}),"creator"===m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-6","data-testid":"dashboard-portfolio-hero",children:(0,a.jsx)(k,{role:m,slices:F.slices,portfolioCount:L,hero:!0})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_340px]","data-testid":"dashboard-grid",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)(x,{activity:N.activity}),(0,a.jsx)(A,{quickActions:N.quickActions})]}),(0,a.jsx)("aside",{className:"flex flex-col gap-6",children:(0,a.jsx)(b,{onboarding:N.onboarding})})]})]}):(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_340px]","data-testid":"dashboard-grid",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)(x,{activity:N.activity}),(0,a.jsx)(A,{quickActions:N.quickActions})]}),(0,a.jsxs)("aside",{className:"flex flex-col gap-6",children:[(0,a.jsx)(k,{role:m,slices:F.slices,portfolioCount:L}),(0,a.jsx)(b,{onboarding:N.onboarding})]})]})]})})})}},e=>{e.O(0,[9573,636,6593,8792],()=>e(e.s=12273)),_N_E=e.O()}]);

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.