1import{j as e,r as m}from"./react-D6Y9hML7.js";import{u as K}from"./useQuery-DtTYXR9K.js";import{C as B,v as V,D as F,F as J,G as z,H as D,u as U,J as W,K as Y}from"./index-we3y_myF.js";import{A as M}from"./AuroraGlow-DfCAKvFa.js";import{D as H,S as G,V as Q}from"./VoiceWorkspace-hYOT5_iJ.js";import{E as S,T as R,B as x,P as O,F as N}from"./ui-BNpQaN5U.js";import{p as X,R as P,S as Z}from"./SigningCeremony-CEdLlk_3.js";import{u as C}from"./useMutation-Bg9uZMYS.js";import"./supabase-CI_V8wt2.js";import"./LogoMark-DeHCpl4c.js";import"./chevron-down-DTGY_Off.js";import"./motion-BeFgxJ7d.js";function ee({instrument:t}){const i=(t==null?void 0:t.envelope_id)??null,{data:s,isPending:n,error:r}=K({queryKey:["agency-document",i],queryFn:()=>B(i),enabled:!!i&&!!(t!=null&&t.viewable),staleTime:1/0});if(!t||!t.viewable)return e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-white/50",children:"The signed instrument for this licence is not on hand to display. The record and its signature still stand, and the public verify page above answers for it. Ask us for the file."});if(n)return e.jsx("p",{className:"text-[13px] text-white/40",children:"Reading the signed instrument"});if(r)return e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-white/60",children:r.message});const l=X(s.content);return e.jsxs("div",{className:"flex flex-col gap-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/40",children:"What this licence permits"}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed tracking-[-0.01em] text-white/50",children:"Every word below is lifted out of the signed document itself, not written again for this screen."})]}),l?e.jsx(P,{title:"Permitted uses",lede:"The uses this licence permits, in the words the licence itself uses. The hash under them is the same number that sits inside the signature, so your own counsel can check this screen against the public record.",text:l,showHash:!0,expectedHash:s.prose_sha256??null}):e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-white/50",children:"This instrument carries no permitted-uses block. It predates compiled permissions, so its scope is the Schedule below and the signed contract itself."}),e.jsx(Z,{body:s.content}),e.jsxs("section",{className:"rounded-2xl border border-white/10 bg-white/[0.02] px-5 py-5 sm:px-6",children:[e.jsx("h2",{className:"text-[15px] tracking-[-0.01em] text-white/90",children:"What it does not permit"}),e.jsx("p",{className:"mt-3 text-[13px] leading-relaxed tracking-[-0.01em] text-white/60",children:"Everything that is not written above. The permitted uses are the whole of the permission, not examples of it, and a use that matches none of them is not covered. That is the answer your own legal team is looking for, and it is the same answer we would give."}),e.jsx("p",{className:"mt-3 text-[13px] leading-relaxed tracking-[-0.01em] text-white/60",children:"If a campaign needs something else, it comes back as a rider with its own words for the rights holder to read and sign. Nothing widens because it was close to what was agreed."})]})]})}function te({riders:t}){return t.length?e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-white/55",children:"Each rider adds to the licence and takes nothing away. What is permitted is the licence plus every rider below."}),t.map(i=>{var s,n;return e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx(P,{title:`Rider ${i.rider_id}`,lede:`Signed ${(s=i.signed_at)==null?void 0:s.slice(0,10)}, in effect from ${(n=i.effective_at)==null?void 0:n.slice(0,10)}. These words are the ones inside the rider's signature.`,text:i.regions_prose,showHash:!0,expectedHash:i.prose_sha256}),e.jsx("a",{href:i.verify_url,target:"_blank",rel:"noreferrer",className:"self-start text-[12.5px] tracking-[-0.01em] text-white/60 underline decoration-white/20 underline-offset-4 transition-colors hover:text-white/90",children:"Open the rider receipt"})]}
1,i.rider_id)})]}):e.jsx(S,{children:"No riders. This licence permits what it permitted on the day it was signed."})}function ie({releases:t}){return t.length?e.jsx("ul",{className:"flex flex-col gap-3",children:t.map(i=>{var s;return e.jsxs("li",{className:"rounded-2xl border border-white/10 bg-white/[0.03] px-5 py-4 sm:px-6",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-3",children:[e.jsx("span",{className:"font-mono text-[12px] text-white/80",children:i.output_id}),e.jsx(R,{children:i.media_kind}),e.jsx("span",{className:"text-[12px] tracking-[-0.01em] text-white/50",children:i.model})]}),i.placement?e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed tracking-[-0.01em] text-white/70",children:i.placement}):null,e.jsxs("p",{className:"mt-2 text-[11.5px] leading-relaxed text-white/40",children:["Registered ",(s=i.registered_at)==null?void 0:s.slice(0,10),i.published_at?` · published ${i.published_at.slice(0,10)}`:""]}),e.jsxs("p",{className:"mt-2 break-all font-mono text-[11px] leading-relaxed text-white/30",children:["sha256 ",i.output_sha256]}),e.jsx("a",{href:i.verify_url,target:"_blank",rel:"noreferrer",className:"mt-3 inline-block text-[12.5px] tracking-[-0.01em] text-white/60 underline decoration-white/20 underline-offset-4 transition-colors hover:text-white/90",children:"Open the receipt"})]},i.output_id)})}):e.jsx(S,{children:"Nothing registered under this licence yet. Every published file should be filed here; the register is what the licence obliges, and it is what answers for you later."})}function se({licenseId:t,keys:i}){const s=V(),[n,r]=m.useState(null),[l,o]=m.useState(""),[d,h]=m.useState(null),u=()=>s.invalidateQueries({queryKey:["agency-console"]}),c=C({mutationFn:()=>F(t,l.trim()||void 0),onSuccess:a=>{r(a),o(""),u()}}),p=C({mutationFn:a=>J(a),onSuccess:u}),v=C({mutationFn:({apiKeyId:a,value:g})=>z(a,g),onSuccess:()=>{h(null),u()}}),y=i.filter(a=>a.status==="active"),w=i.filter(a=>a.status!=="active"),j=c.error||p.error||v.error;return e.jsxs("div",{className:"flex flex-col gap-5",children:[e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-white/55",children:"The API key your systems present when they generate under this licence and when they register what they publish. It carries no scope of its own: what it may do is whatever this licence permits, checked on every call."}),n?e.jsxs("div",{className:"rounded-2xl border border-amber-300/40 bg-amber-300/[0.06] px-5 py-5 sm:px-6",children:[e.jsx("p",{className:"text-[13px] font-medium leading-relaxed tracking-[-0.01em] text-amber-100/90",children:"Copy this now. It is shown once and we cannot show it again."}),e.jsx("p",{className:"mt-3 select-all break-all rounded-xl border border-white/10 bg-black/40 px-3.5 py-3 font-mono text-[12px] leading-relaxed text-white/90",children:n.secret}),e.jsx("p",{className:"mt-3 text-[12px] leading-relaxed tracking-[-0.01em] text-amber-100/70",children:"Only its fingerprint is stored on our side. If it is lost, the way back is to revoke this key and create another."}),e.jsx(x,{className:"mt-4",onClick:()=>r(null),children:"I have saved it"})]}):null,y.length?e.jsx("ul",{className:"flex flex-col gap-3",children:y.map(a=>{var g;return e.jsxs("li",{className:"rounded-2xl border border-white/10 bg-white/[0.03] px-5 py-4 sm:px-6",children:[e.jsxs("div",{className:"flex flex-wrap items-baseline gap-3",children:[e.jsxs("span",{className:"font-mono text-[12px] text-white/80",children:[a.key_prefix,"â¦"]}),e.jsx(R,{tone:"good",children:"live"}),a.label?e.jsx("span",{className:"text-[12px] tracking-[-0.01em] text-white/55",children:a.label}):null]}),e.jsxs("p",{className:"mt-2 text-[11.5px] leading-relaxed text-white/40",children:["Created ",(g=a.created_at)==null?void 0:g.slice(0,10),a.last_used_at?` · last used ${a.last_used_at.slice(0,10)}`:" · not used yet"]}),d===a.id?e.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[e.jsx("input",{className:"min-w-0 flex-1 rounded-xl border border-white/10 bg-black/30 px-3 py-2 text-[13px] text-white/90 outline-none focus:border-white/25",defaultValue:a.label??"",maxLength:80,"aria-label":"Key name",onChange:f=>o(f.target.value)}),e.jsx(x,{variant:"solid",disabled:v.isPending,onClick:()=>v.mutate({apiKeyId:a.id,value:l}),children:"Save"}),e.jsx(x,{onClick:()=>h(null),children:"Cancel"})]}):e.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[e.jsx(x,{onClick:()=>{o(a.label??""),h(a.id)},children:a.label?"Rename":"Name this key"}),e.jsx(x,{disabled:p.isPending,onClick:()=>p.mutate(a.id),children:"Revoke"})]})]},a.id)})}):e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(S,{children:"No live key on this licence."}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("input",{className:"min-w-0 flex-1 rounded-xl border border-white/10 bg-black/30 px-3 py-2 text-[13px] text-white/90 outline-none focus:border-white/25",placeholder:"Name it, for example: launch film, staging",value:l,maxLength:80,"aria-label":"Key name",onChange:a=>o(a.target.value)}),e.jsx(x,{variant:"solid",disabled:c.isPending,onClick:()=>c.mutate(),children:c.isPending?"Creating":"Create key"})]})]}),y.length?e.jsx("p",{className:"text-[12px] leading-relaxed tracking-[-0.01em] text-white/40",children:"A licence holds one live key at a time. To replace this one, revoke it first: the revocation goes on the record, and nothing that was generated under it is affected."}):null,w.length?e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/35",children:"Revoked"}),e.jsx("ul",{className:"mt-2 flex flex-col gap-1.5",children:w.map(a=>e.jsxs("li",{className:"text-[12px] leading-relaxed text-white/35",children:[e.jsxs("span",{className:"font-mono",children:[a.key_prefix,"â¦"]}),a.label?` · ${a.label}`:"",a.revoked_at?` · revoked ${a.revoked_at.slice(0,10)}`:""]},a.id))})]}):null,j?e.jsx("p",{className:"text-[13px] leading-relaxed tracking-[-0.01em] text-amber-100/80",children:j.message}):null]})}const $=2*1024*1024,E=$*2+1024,q=["license_id","product_evidence_wire_base64","product_authority_review_wire_base64"];function ae(t,i){return JSON.stringify({format:"SG_ACTIVATION_RECOVERY_V1",orgId:t,...i},null,2)}function L(t,i,s){if(new TextEncoder().encode(t).byteLength>E)throw new Error("The reviewed campaign file is too large.");let n;try{n=JSON.parse(t)}catch{throw new Error("Choose the reviewed campaign JSON file.")}if(n&&typeof n=="object"&&!Array.isArray(n)&&"format"in n){const l=n;if(l.format!=="SG_ACTIVATION_RECOVERY_V1"||Object.keys(l).length!==4||typeof l.requestBytes!="str
1ing"||typeof l.idempotencyKey!="string"||!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(l.idempotencyKey))throw new Error("Invalid activation recovery file.");if(l.orgId!==i)throw new Error("This recovery file belongs to a different organisation.");const o=k(l.requestBytes,s),d=_(i,o.license_id);if(d&&(d.requestBytes!==l.requestBytes||d.idempotencyKey!==l.idempotencyKey))throw new Error("Resolve the saved activation before importing a different campaign.");return sessionStorage.setItem(T(i,o.license_id),JSON.stringify({requestBytes:l.requestBytes,idempotencyKey:l.idempotencyKey})),o.license_id}const r=k(t,s);return re(t,i,r.license_id),r.license_id}function k(t,i){if(new TextEncoder().encode(t).byteLength>$)throw new Error("The reviewed campaign file is too large.");let s;try{s=JSON.parse(t)}catch{throw new Error("Choose the reviewed campaign JSON file.")}if(!s||typeof s!="object"||Array.isArray(s))throw new Error("Invalid reviewed campaign file.");const n=s;if(Object.keys(n).length!==q.length||q.some(r=>typeof n[r]!="string"||!n[r]))throw new Error("The file must contain only the reviewed campaign request.");if(i&&n.license_id!==i)throw new Error("This reviewed campaign belongs to a different licence.");return n}function T(t,i){if(!t||!i)throw new Error("Choose your organisation before activating a campaign.");return`idl.protocol-activation:${JSON.stringify([t,i])}`}function ne(t){const i=[],s="idl.protocol-activation:";for(let n=0;n<sessionStorage.length;n++){const r=sessionStorage.key(n);if(!(r!=null&&r.startsWith(s)))continue;const l=JSON.parse(r.slice(s.length));Array.isArray(l)&&l.length===2&&l[0]===t&&typeof l[1]=="string"&&i.push(l[1])}return i.sort()}function _(t,i){const s=sessionStorage.getItem(T(t,i));if(!s)return null;const n=JSON.parse(s);if(!n||typeof n!="object"||Array.isArray(n))throw new Error("The saved request could not be read. Contact your operator before retrying.");const r=n;if(typeof r.requestBytes!="string"||typeof r.idempotencyKey!="string"||!r.idempotencyKey)throw new Error("The saved request could not be read. Contact your operator before retrying.");return k(r.requestBytes,i),r}function re(t,i,s){k(t,s);const n=_(i,s);if(n){if(n.requestBytes!==t)throw new Error("Resolve the saved activation before importing a different campaign.");return n}const r={requestBytes:t,idempotencyKey:crypto.randomUUID()};return sessionStorage.setItem(T(i,s),JSON.stringify(r)),r}function le(t,i){sessionStorage.removeItem(T(t,i))}function oe({licenseId:t,orgId:i,onReset:s}){const[n]=m.useState(()=>{try{return{pending:_(i,t),error:null}}catch{return{pending:null,error:"The saved activation could not be read. Contact your operator before sending another request."}}}),[r,l]=m.useState(n.pending),[o,d]=m.useState(n.error),[h,u]=m.useState(!1),[c,p]=m.useState(null);async function v(a){var f;const g=(f=a.target.files)==null?void 0:f[0];if(g){d(null);try{if(g.size>E)throw new Error("The reviewed campaign file is too large.");L(await g.text(),i,t),l(_(i,t)),p(null)}catch(b){d(b.message)}a.target.value=""}}async function y(){if(!(!r||h)){u(!0),d(null);try{const a=await D(r.requestBytes,r.idempotencyKey);p(a),a.kind==="PRODUCT_TRANSACTION_ACTIVATION_BLOCKED"&&d(a.issue==="PROTOCOL_AUTHORIZATION_INDETERMINATE"?"The outcome is still pending. Retry this
1saved request to recover the result.":"Campaign activation is blocked. Save the review result for your operator to resolve before trying another campaign.")}catch(a){d((a==null?void 0:a.status)===409?"Campaign activation is blocked. Your operator needs to resolve the review or signed terms. The original request remains saved.":(a==null?void 0:a.status)===401||(a==null?void 0:a.status)===403?"Your account cannot activate this campaign. Check your sign-in and selected organisation, then retry the saved request.":"Activation is not confirmed. This request is saved in this tab. Retry it to recover the result, or contact your operator before starting another.")}finally{u(!1)}}}function w(a,g){const f=URL.createObjectURL(new Blob([a],{type:"application/json"})),b=document.createElement("a");b.href=f,b.download=g,b.click(),setTimeout(()=>URL.revokeObjectURL(f),0)}const j=(c==null?void 0:c.kind)==="PRODUCT_TRANSACTION_ACTIVATED";return e.jsxs(O,{children:[e.jsx("h3",{className:"text-[13px] font-medium text-white/90",children:"Reviewed campaign"}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed text-white/55",children:"Import the campaign package supplied after review. Activation checks its signed terms and payment before recording a campaign grant."}),!r&&!n.error?e.jsxs("label",{className:"mt-4 block text-[12px] text-white/65",children:["Reviewed campaign file",e.jsx("input",{"aria-label":"Reviewed campaign file",type:"file",accept:"application/json,.json",className:"mt-2 block w-full text-[12px]",onChange:v,disabled:h})]}):null,r?e.jsxs("div",{className:"mt-3 text-[12px] text-white/55",children:[e.jsx("p",{children:"The exact request is saved in this tab. Save a recovery file before closing the tab to keep the same activation."}),e.jsx(x,{className:"mt-3",variant:"ghost",onClick:()=>w(ae(i,r),`campaign-recovery-${t}.json`),children:"Save recovery file"})]}):null,r&&!j?e.jsx(x,{className:"mt-4",disabled:h,onClick:y,children:h?"Checking activation...":n.pending||o?"Retry saved activation":"Activate campaign"}):null,j?e.jsxs("div",{className:"mt-4 text-[13px] leading-relaxed text-white/75",role:"status",children:[e.jsx("p",{children:"Activation recorded."}),e.jsx("p",{className:"mt-2 text-white/55",children:"This records the activation event. File the finished output through your agency workflow to obtain its Release Receipt. Current status is checked again before release and acceptance."}),e.jsxs("p",{className:"mt-2 break-all font-mono text-[11px]",children:["Campaign: ",c.evidence_chain.intent_id]}),e.jsx(x,{className:"mt-3",onClick:()=>w(JSON.stringify(c,null,2),`campaign-activation-${t}.json`),children:"Save activation record"}),e.jsx(x,{className:"ml-2 mt-3",variant:"ghost",onClick:()=>{try{le(i,t),l(null),p(null),s==null||s()}catch{d("The completed request could not be cleared from this tab.")}},children:"Start another reviewed campaign"})]}):null,o?e.jsx("p",{role:"alert",className:"mt-3 text-[12px] leading-relaxed text-amber-100/80",children:o}):null,(c==null?void 0:c.kind)==="PRODUCT_TRANSACTION_ACTIVATION_BLOCKED"?e.jsx(x,{className:"mt-3",variant:"ghost",onClick:()=>w(JSON.stringify(c,null,2),`campaign-review-result-${t}.json`),children:"Save review result"}):null]})}function ce({orgId:t}){const[i]=m.useState(()=>{try{return{licenses:ne(t),error:null}}catch{return{licenses:[],error:"The saved requests could not be read. Contact your operator before starting another activation."}}}),[s,n]=m.useState(i.licenses.length===1?i.licenses[0]:null),[r,l]=m.useState(i.error),[o,d]=m.useState(!1);return s?e.jsx(oe,{orgId:t,licenseId:s,onReset:()=>{n(null),d(!0)}},`${t}:${s}`):e.jsxs(O,{children:[e.jsx("h3",{className:"text-[13px] font-medium text-white/90",children:"Reviewed campaign"}),e.jsx("p",{className:"mt-2 text-[13px] leading-relaxed text-white/55",children:"Import the campaign package supplied after review. Your organisation and its authority for the campaign are checked before activation."}),!o&&i.licenses.length>1?i.licenses.map(h=>e.jsxs(x,{className:"mr-2 mt-3",onClick:()=>n(h),children:["Resume ",h]},h)):i.error?null:e.jsxs("label",{className:"mt-4 block text-[12px] text-white/65",children:["Reviewed campaign file",e.jsx("input",{type:"file",accept:"application/json,.json","aria-label":"Reviewed campaign file",className:"mt-2 block w-full text-[12px]",onChange:async h=>{var c;const u=(c=h.target.files)==null?void 0:c[0];if(u){l(null);try{if(u.size>E)throw new Error("The reviewed campaign file is too large.");const p=await u.text();n(L(p,t))}catch(p){l(p.message)}}}})]}),r?e.jsx("p",{role:"alert",className:"mt-3 text-[12px] text-amber-100/80",children:r}):null]})}function A(t,i,s,n){return t===0?n:t===1?`1 ${i}`:`${t} ${s}`}function I({seats:t,current:i}){return t.length<2?null:e.jsxs("div",{className:"relative z-10 mx-auto mt-10 flex max-w-6xl flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/35",children:"Acting as"}),t.map(s=>e.jsx(x,{variant:s.brand_org_id===i?"solid":"ghost",onClick:()=>{s.brand_org_id!==i&&(W(s.brand_org_id),window.location.reload())},children:s.name},s.brand_org_id))]})}function de({licence:t}){var i,s,n,r;return e.jsxs("div",{className:"flex flex-col gap-8",children:[e.jsxs(O,{children:[e.jsxs("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-4",children:[e.jsx(N,{label:"Licence",value:t.license_id}),e.jsx(N,{label:"Rights holder",value:t.talent_name??"Recorded on the instrument"}),e.jsx(N,{label:"In effect from",value:((i=t.effective_at)==null?void 0:i.slice(0,10))??"Not yet"}),e.jsx(N,{label:"Until",value:((s=t.expires_at)==null?void 0:s.slice(0,10))??"Per the instrument"})]}),e.jsx("a",{href:t.verify_url,target:"_blank",rel:"noreferrer",className:"mt-5 inline-block text-[12.5px] tracking-[-0.01em] text-white/60 underline decoration-white/20 underline-offset-4 transition-colors hover:text-white/90",children:"Open the public re
1cord for this licence"})]}),e.jsx(ee,{instrument:t.instrument}),((r=(n=t.scope)==null?void 0:n.assets)==null?void 0:r.includes("voice"))&&e.jsx(Q,{licenseId:t.license_id},t.license_id),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/40",children:"Riders"}),e.jsx("div",{className:"mt-4",children:e.jsx(te,{riders:t.riders})})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/40",children:"What you published"}),e.jsx("div",{className:"mt-4",children:e.jsx(ie,{releases:t.releases})})]}),e.jsxs("div",{children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/40",children:"API key"}),e.jsx("div",{className:"mt-4",children:e.jsx(se,{licenseId:t.license_id,keys:t.keys})})]})]})}function Ne(){const{seats:t,actingOrgId:i}=U(),{data:s,isPending:n,error:r}=K({queryKey:["agency-console"],queryFn:Y}),l=t.length>1&&!i;return e.jsxs("main",{className:"relative min-h-screen bg-[#020715] px-5 pb-20 pt-28 text-white antialiased sm:px-10 lg:px-16",children:[e.jsx(H,{view:"agency"}),e.jsx(M,{}),l?e.jsxs(e.Fragment,{children:[e.jsxs("h1",{className:"font-heading relative z-10 text-center text-[clamp(28px,5vw,64px)] font-normal leading-[0.95] tracking-[-0.045em]",children:["Which organisation",e.jsx("br",{}),"are you here as?"]}),e.jsx("p",{className:"relative z-10 mx-auto mt-8 max-w-md text-center text-[14px] leading-relaxed text-white/55",children:"You hold a seat in more than one. We will not pick for you: a console showing the wrong clientâs licences without saying so is worse than one that asks."}),e.jsx(I,{seats:t,current:i})]}):n?e.jsx("p",{className:"relative z-10 pt-16 text-center text-[14px] text-white/40",children:"Reading your licensing record"}):r?e.jsx("p",{className:"relative z-10 mx-auto max-w-md pt-16 text-center text-[14px] leading-relaxed text-white/60",children:r.message}):e.jsxs(e.Fragment,{children:[e.jsx("h1",{className:"font-heading relative z-10 text-center text-[clamp(28px,5vw,64px)] font-normal leading-[0.95] tracking-[-0.045em]",children:s.org.name}),e.jsxs("p",{className:"relative z-10 mt-8 text-center text-[14px] text-white/55",children:[A(s.licences.length,"live licence","live licences","No licences yet"),s.requests.length?` · ${A(s.requests.length,"request","requests","")} on the desk`:""]}),e.jsx(I,{seats:t,current:i}),e.jsx("div",{className:"relative z-10 mx-auto mt-10 max-w-6xl",children:e.jsx(ce,{orgId:s.org.id},s.org.id)}),s.licences.length?e.jsx(G,{className:"mt-16",sections:s.licences.map((o,d)=>({index:String(d+1).padStart(2,"0"),name:o.talent_name??o.license_id,meta:`${o.license_id} · ${A(o.releases.length,"file registered","files registered","nothing registered")}`,render:()=>e.jsx(de,{licence:o})}))}):e.jsx("div",{className:"relative z-10 mx-auto mt-16 max-w-xl text-center",children:e.jsxs("p",{className:"text-[14px] leading-relaxed text-white/55",children:["Nothing is licensed to ",s.org.name," yet. When a deal is signed it appears here with the words it was signed in, and everything published under it gets a receipt anyone can check."]})}),s.requests.length?e.jsxs("div",{className:"relative z-10 mx-auto mt-16 max-w-6xl",children:[e.jsx("p",{className:"text-[11px] font-medium uppercase tracking-[0.14em] text-white/35",children:"On the desk"}),e.jsx("ul",{className:"mt-4 flex flex-col gap-2",children:s.requests.map(o=>e.jsxs("li",{className:"flex flex-wrap items-baseline gap-3 rounded-2xl border border-white/10 bg-white/[0.03] px-5 py-3.5",children:[e.jsx("span",{className:"text-[13px] tracking-[-0.01em] text-white/80",children:o.talent_name??"Request"}),e.jsx(R,{children:o.status}),o.submitted_at?e.jsx("span",{className:"text-[11.5px] text-white/35",children:o.submitted_at.slice(0,10)}):null]},o.id))}),e.jsx("p",{className:"mt-4 text-[12px] leading-relaxed tracking-[-0.01em] text-white/40",children:"Requests move at the deal desk, not here. This is the state of yours, so you do not have to ask for it."})]}):null]})]})}export{Ne 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.