PageSourceSearch

https://www.ugclatam.io/assets/SharedTokenPage-BIlXSdi6.js

js ugclatam.io collected 2026-10-09 22:12:45 UTC 19,697 bytes, 1 lines download raw bytes

1import{m as W,r as o,j as e}from"./vendor-react-6xTvdO_J.js";import{c as Q}from"./vendor-query-BX-DJEXb.js";import{s as R,J as _,B as u,c as p}from"./main-D5ri0Ynh.js";import{A as ie,a as ce,b as de}from"./avatar-BMK0-8uU.js";import{B as A}from"./badge-BvbKQH0I.js";import{R as Z}from"./ReviewVideoPlayer-BxeOgtz-.js";import{L as y}from"./loader-circle-I_mJOXBh.js";import{V as me}from"./video-off-bOpNRZZf.js";import{S as X}from"./shield-check-CPLrjIXL.js";import{I as xe}from"./input-BcFLp59I.js";import{T as pe}from"./textarea-a9Tih0Vp.js";import{L as he}from"./label-BxK9krPh.js";import{D as ue,a as fe,b as ge,c as ve,d as je,e as be}from"./dialog-DAENfZzx.js";import{D as Ne,a as we,b as _e,c as ke}from"./dropdown-menu-bWqV2jiV.js";import{d as ye,P as E,a as Ce}from"./public-portfolio-i18n-BpU5Srig.js";import{A as k,a as Te}from"./asset-type-style-D1s-B9Wc.js";import{C as ee}from"./check-xy3SVE55.js";import{S as Se,M as Ee}from"./sun-DRwk3_uR.js";import{C as Le}from"./check-check-CIC62_zO.js";import{V as U}from"./video-yQoOQ4I4.js";import{L as $}from"./link-2-Hy6xqiiR.js";import{E as Ae}from"./external-link-DNsIlIqW.js";import{M as Re}from"./message-square-warning-Dyw0XT3t.js";import"./vendor-supabase-mMS0W209.js";import"./upload-content-type-LA9VnmvT.js";import"./triangle-alert-Bh_fSbsx.js";import"./download-DsqnnP3I.js";import"./index-DwXCl4Mr.js";import"./index-D3dWuH_D.js";import"./index-KgjF_sTB.js";import"./chevron-right-_dm9tXb3.js";import"./circle-DucQRToc.js";const ze=1,Ie="7f3e4128-57cb-4de6-9716-686a7f5d61dd",Me="724622ca-97f1-404e-9185-1dc3ce4461a5",Be="/__l5e/assets-v1/7f3e4128-57cb-4de6-9716-686a7f5d61dd/ugc-latam-logo-dark.jpg",De="a/v1/724622ca-97f1-404e-9185-1dc3ce4461a5/7f3e4128-57cb-4de6-9716-686a7f5d61dd/ugc-latam-logo-dark.jpg",Oe="ugc-latam-logo-dark.jpg",Pe=89555,Ge="image/jpeg",Ve="2026-07-28T12:07:05Z",se={version:ze,asset_id:Ie,project_id:Me,url:Be,r2_key:De,original_filename:Oe,size:Pe,content_type:Ge,created_at:Ve},Fe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,q="https://www.ugclatam.io",Ue=a=>a.split(" ").filter(Boolean).slice(0,2).map(c=>{var r;return((r=c[0])==null?void 0:r.toUpperCase())??""}).join(""),$e=()=>{const{token:a}=W(),c=!!a&&Fe.test(a);o.useEffect(()=>{document.title="Video review — UGC LATAM";const d=document.createElement("meta");return d.name="robots",d.content="noindex, nofollow, noarchive",document.head.appendChild(d),()=>{document.head.removeChild(d)}},[]);const{data:r,isLoading:m}=Q({queryKey:["shared-deliverable",a],enabled:c,staleTime:5*6e4,queryFn:async()=>{const{data:d,error:h}=await R.rpc("get_shared_deliverable",{p_token:a});if(h)throw h;return(d??[])[0]??null}}),l=(r==null?void 0:r.label)||(r==null?void 0:r.file_name)||"Video";return e.jsxs("div",{className:"min-h-screen bg-[#0a0a0a] text-zinc-100 flex flex-col",children:[e.jsx("header",{className:"px-5 sm:px-8 py-6",children:e.jsx("img",{src:se.url,alt:"UGC LATAM",className:"h-16 sm:h-20 w-auto"})}),e.jsx("main",{className:"flex-1 flex items-start justify-center px-4 pb-10",children:m&&c?e.jsxs("div",{className:"flex items-center gap-2 text-zinc-400 pt-24",children:[e.jsx(y,{className:"w-4 h-4 animate-spin"}),e.jsx("span",{className:"text-sm",children:"Loading video…"})]}):!c||!(r!=null&&r.file_url)?e.jsxs("div",{className:"pt-24 text-center space-y-3 max-w-sm",children:[e.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-white/5 flex items-center justify-center",children:e.jsx(me,{className:"w-6 h-6 text-zinc-400"})}),e.jsx("h1",{className:"text-lg font-semibold",children:"This link is no longer available"}),e.jsx("p",{className:"text-sm text-zinc-400",children:"The share link may have expired or been turned off by the brand."})]}):e.jsxs("div",{className:"w-full max-w-sm space-y-5",children:[e.jsx("div",{className:"w-full aspect-[9/16] bg-black rounded-2xl overflow-hidden ring-1 ring-white/10 shadow-2xl",children:e.jsx(Z,{deliverable:r,className:"w-full h-full"})}),e.jsxs("div",{className:"rounded-2xl bg-white/[0.04] ring-1 ring-white/10 p-4 space-y-4",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[e.jsxs(A,{className:"bg-primary/20 text-primary-foreground border border-primary/40 hover:bg-primary/20",children:["Version ",r.version??1]}),r.short_id&&e.jsx("span",{className:"text-[11px] font-mono text-zinc-500",children:r.short_id})]}),e.jsx("h1",{className:"text-base font-semibold break-words leading-snug",children:l})]}),e.jsxs("div",{className:"flex items-center gap-3 pt-1",children:[e.jsxs(ie,{className:"h-10 w-10 ring-1 ring-white/15",children:[r.creator_avatar_url&&e.jsx(ce,{src:r.creator_avatar_url,alt:r.creator_name??"Creator"}),e.jsx(de,{className:"bg-white/10 text-zinc-200 text-xs",children:Ue(r.creator_name||"UGC")})]}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"text-sm font-medium truncate",children:r.creator_name||"Creator"}),e.jsx("p",{className:"text-xs text-zinc-400",children:"Creator"})]})]}),e.jsxs("div",{className:"border-t border-white/10 pt-3 space-y-2 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[r.brand_logo_url?e.jsx("img",{src:r.brand_logo_url,alt:r.brand_name??"Brand",className:"h-6 w-6 rounded object-cover bg-white/10"}):null,e.jsx("span",{className:"text-zinc-200 truncate",children:r.brand_name||"—"})]}),r.campaign_name&&e.jsx("p",{className:"text-sm text-zinc-400 break-words",children:r.campaign_name}),r.uploaded_at&&e.jsxs("p",{className:"text-xs text-zinc-500",children:["Uploaded ",new Date(r.uploaded_at).toLocaleDateString("en-GB")]})]})]})]})}),e.jsx("footer",{className:"px-5 sm:px-8 py-5 border-t border-white/10",children:e.jsxs("p",{className:"mx-auto max-w-2xl text-[11px] leading-relaxed text-zinc-500 flex items-start gap-2",children:[e.jsx(X,{className:"w-3.5 h-3.5 mt-[1px] shrink-0 text-zinc-500"}),e.jsxs("span",{children:["This video display is protected and confidential under our UGC LATAM"," ",e.jsx("a",{href:`${q}/privacy`,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-300 underline underline-offset-2 hover:text-white",children:"privacy"})," ","and"," ",e.jsx("a",{href:`${q}/terms`,target:"_blank",rel:"noopener noreferrer",className:"text-zinc-300 underline underline-offset-2 hover:text-white",children:"terms of service"}),"."]})]})})]})},L="https://www.ugclatam.io",K="portfolio-reviewer-name",Y="portfolio-theme",H="portfolio-lang",qe={tiktok_videos:"TikTok",tiktok_shop:"TikTok Shop",instagram_reels:"Instagram",youtube_shorts:"YouTube Shorts",youtube_videos:"YouTube",amazon_shoppable:"Amazon"},J=({current:a,busy:c,onApprove:r,onRequestRevisions:m,approveLabel:l,revisionsLabel:d})=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(u,{type:"button",size:"sm",variant:(a==null?void 0:a.verdict)==="approved"?"default":"outline",disabled:c,onClick:r,className:p("flex-1 gap-1.5 h-8 text-xs",(a==null?void 0:a.verdict)==="approved"&&"bg-emerald-600 hover:bg-emerald-600/90 text-white"),children:[e.jsx(ee,{className:"h-3.5 w-3.5"}),l]}),e.jsxs(u,{type:"button",size:"sm",variant:(a==null?void 0:a.verdict)==="needs_revisions"?"default":"outline",disabled:c,onClick:m,className:p("flex-1 gap-1.5 h-8 text-xs",(a==null?void 0:a.verdict)==="needs_revisions"&&"bg-amber-500 hover:bg-amber-500/90 text-white"),children:[e.jsx(Re,{className:"h-3.5 w-3.5"}),d]})]}),Ke=({data:a,token:c})=>{var G,V;const r=o.useMemo(()=>a.items.filter(s=>s.type==="video_upload"),[a.items]),m=o.useMemo(()=>a.items.filter(s=>
1s.type!=="video_upload"),[a.items]),[l,d]=o.useState(()=>{const s={};return a.items.forEach(n=>{n.review_verdict&&(s[n.id]={verdict:n.review_verdict,note:n.review_note})}),s}),[h,v]=o.useState(null),[N,z]=o.useState(!1),[f,I]=o.useState(""),[j,w]=o.useState(null),[C,T]=o.useState(""),[x,M]=o.useState("en"),[b,B]=o.useState(!1),t=Ce[x];o.useEffect(()=>{const s=window.localStorage.getItem(H);M(s&&["en","es","pt"].includes(s)?s:ye());const n=window.localStorage.getItem(Y);B(n?n==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches)},[]),o.useEffect(()=>{window.localStorage.setItem(H,x),document.documentElement.lang=x==="pt"?"pt-BR":x},[x]),o.useEffect(()=>{const s=document.documentElement,n=s.classList.contains("dark");return s.classList.toggle("dark",b),window.localStorage.setItem(Y,b?"dark":"light"),()=>{s.classList.toggle("dark",n)}},[b]),o.useEffect(()=>{const s=window.localStorage.getItem(K);s&&I(s)},[]),o.useEffect(()=>{f&&window.localStorage.setItem(K,f)},[f]);const S=!!c,g=o.useCallback(async(s,n,i)=>{if(!c)return!1;const{error:F}=await R.rpc("submit_portfolio_review",{p_token:c,p_deliverable_id:s,p_verdict:n,p_note:i??null,p_reviewer_name:f||null,p_reviewer_email:null});return F?(_.error(t.saveError),!1):(d(le=>({...le,[s]:{verdict:n,note:i??null}})),!0)},[c,f,t]),D=o.useCallback(async s=>{v(s.id);const n=await g(s.id,"approved");v(null),n&&_.success(t.approved)},[g,t]),ae=o.useCallback(async()=>{var n;z(!0);let s=0;for(const i of a.items){if(((n=l[i.id])==null?void 0:n.verdict)==="approved")continue;await g(i.id,"approved")||(s+=1)}z(!1),s===0&&_.success(t.allApproved)},[a.items,g,l,t]),re=o.useCallback(async()=>{if(!j)return;v(j.id);const s=await g(j.id,"needs_revisions",C.trim()||void 0);v(null),s&&(_.success(t.feedbackSent),w(null),T(""))},[j,C,g,t]),O=o.useCallback(s=>{var n;w(s),T(((n=l[s.id])==null?void 0:n.note)??"")},[l]),P=Object.keys(l).length,te=Object.values(l).filter(s=>s.verdict==="approved").length,ne=Object.values(l).filter(s=>s.verdict==="needs_revisions").length,oe=a.items.length?Math.round(P/a.items.length*100):0;return e.jsxs("div",{className:"min-h-screen bg-background text-foreground flex flex-col",children:[e.jsx("header",{className:"border-b border-border/60 bg-card/60 backdrop-blur",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-5 sm:px-8 py-6 flex items-center gap-4",children:[a.brand_logo_url?e.jsx("img",{src:a.brand_logo_url,alt:a.brand_name??"Brand",className:"h-12 w-12 sm:h-14 sm:w-14 rounded-xl object-cover ring-1 ring-border"}):e.jsx("div",{className:"h-12 w-12 sm:h-14 sm:w-14 rounded-xl bg-muted flex items-center justify-center text-lg font-semibold",children:(a.brand_name??"B").charAt(0)}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h1",{className:"text-lg sm:text-2xl font-semibold truncate",children:a.title||t.defaultTitle(a.brand_name??"Brand")}),e.jsx("p",{className:"text-xs sm:text-sm text-muted-foreground truncate",children:a.brand_name}),a.author_name&&e.jsxs("p",{className:"mt-1 flex items-center gap-1.5 text-xs text-muted-foreground",children:[a.author_avatar_url?e.jsx("img",{src:a.author_avatar_url,alt:a.author_name,className:"h-5 w-5 rounded-full object-cover ring-1 ring-border"}):null,e.jsxs("span",{children:[t.preparedBy," ",e.jsx("span",{className:"text-foreground font-medium",children:a.author_name})]})]})]}),e.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[e.jsxs(Ne,{modal:!1,children:[e.jsx(we,{asChild:!0,children:e.jsxs(u,{variant:"ghost",size:"sm",className:"h-9 gap-1.5 px-2","aria-label":t.language,children:[e.jsx("span",{className:"text-base leading-none",children:(G=E.find(s=>s.value===x))==null?void 0:G.flag}),e.jsx("span",{className:"text-xs font-medium",children:(V=E.find(s=>s.value===x))==null?void 0:V.short})]})}),e.jsx(_e,{align:"end",className:"w-44",children:E.map(s=>e.jsxs(ke,{onClick:()=>M(s.value),className:p("gap-2",x===s.value&&"font-semibold"),children:[e.jsx("span",{className:"text-base leading-none",children:s.flag}),s.label,x===s.value&&e.jsx(ee,{className:"h-3.5 w-3.5 ml-auto"})]},s.value))})]}),e.jsx(u,{variant:"ghost",size:"icon",className:"h-9 w-9","aria-label":b?t.lightMode:t.darkMode,onClick:()=>B(s=>!s),children:b?e.jsx(Se,{className:"h-4 w-4"}):e.jsx(Ee,{className:"h-4 w-4"})})]})]})}),S&&a.items.length>0&&e.jsx("div",{className:"sticky top-0 z-30 border-b border-border/60 bg-background/95 backdrop-blur",children:e.jsx("div",{className:"mx-auto max-w-6xl px-5 sm:px-8 py-3 space-y-2",children:e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-xs text-muted-foreground",children:t.reviewed(P,a.items.length,te,ne)}),e.jsx("div",{className:"mt-1.5 h-1.5 w-full rounded-full bg-muted overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full bg-emerald-500 transition-all",style:{width:`${oe}%`}})})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(xe,{value:f,onChange:s=>I(s.target.value),placeholder:t.yourName,className:"h-9 w-40 text-xs"}),e.jsxs(u,{size:"sm",className:"gap-2 bg-emerald-600 hover:bg-emerald-600/90 text-white",onClick:ae,disabled:N,children:[N?e.jsx(y,{className:"h-4 w-4 animate-spin"}):e.jsx(Le,{className:"h-4 w-4"}),t.approveAll]})]})]})})}),e.jsxs("main",{className:"flex-1 mx-auto w-full max-w-6xl px-5 sm:px-8 py-8 space-y-8",children:[a.intro&&e.jsx("p",{className:"max-w-2xl text-sm sm:text-base text-muted-foreground leading-relaxed",children:a.intro}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsxs(A,{variant:"secondary",className:p("gap-1.5",k.video.chip),children:[e.jsx(U,{className:"h-3 w-3"})," ",r.length," ",t.videos]}),e.jsxs(A,{variant:"secondary",className:p("gap-1.5",k.social.chip),children:[e.jsx($,{className:"h-3 w-3"})," ",m.length," ",t.socialPosts]})]}),r.length>0&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:t.videosSection}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:r.map(s=>{const n=l[s.id];return e.jsxs("article",{className:p("space-y-2 rounded-xl p-2 ring-1 transition-colors",(n==null?void 0:n.verdict)==="approved"&&"ring-emerald-500/50 bg-emerald-500/5",(n==null?void 0:n.verdict)==="needs_revisions"&&"ring-amber-500/50 bg-amber-500/5",!n&&"ring-transparent"),children:[e.jsxs("div",{className:"aspect-[9/16] rounded-xl overflow-hidden bg-black ring-1 ring-border relative",children:[e.jsx(Z,{deliverable:s,className:"w-full h-full"}),e.jsx("span",{className:p("absolute top-2 right-2 p-1.5 rounded-md",k.video.chip),children:e.jsx(U,{className:"h-3.5 w-3.5"})})]}),e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("p",{className:"text-xs font-medium truncate",children:s.label||s.file_name||t.video}),a.show_creator_names&&s.creator_name&&e.jsx("p",{className:"text-[11px] text-muted-foreground truncate",children:s.creator_name}),a.show_campaign_names&&s.campaign_name&&e.jsx("p",{className:"text-[11px] text-muted-foreground
1/80 truncate",children:s.campaign_name})]}),S&&e.jsxs(e.Fragment,{children:[e.jsx(J,{current:n,busy:h===s.id||N,onApprove:()=>D(s),onRequestRevisions:()=>O(s),approveLabel:t.approve,revisionsLabel:t.revisions}),(n==null?void 0:n.note)&&e.jsxs("p",{className:"text-[11px] text-muted-foreground line-clamp-3",children:[e.jsxs("span",{className:"font-medium text-amber-600 dark:text-amber-400",children:[t.revisionNote,": "]}),n.note]})]})]},s.id)})})]}),m.length>0&&e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wider text-muted-foreground",children:t.socialSection}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3",children:m.map(s=>{const n=k[Te(s)],i=l[s.id];return e.jsxs("div",{className:p("rounded-xl border bg-card p-3 space-y-2 transition-colors",(i==null?void 0:i.verdict)==="approved"&&"border-emerald-500/50 bg-emerald-500/5",(i==null?void 0:i.verdict)==="needs_revisions"&&"border-amber-500/50 bg-amber-500/5",!i&&"border-border/70"),children:[e.jsxs("a",{href:s.social_url??"#",target:"_blank",rel:"noopener noreferrer",className:"group flex items-start gap-3",children:[e.jsx("div",{className:p("p-2 rounded-lg shrink-0",n.chip),children:e.jsx($,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("p",{className:"text-xs font-medium",children:qe[s.social_platform??""]||s.social_platform||t.socialPost}),e.jsx("p",{className:"text-[11px] text-primary truncate",children:s.social_url}),a.show_creator_names&&s.creator_name&&e.jsx("p",{className:"text-[11px] text-muted-foreground truncate",children:s.creator_name}),a.show_campaign_names&&s.campaign_name&&e.jsx("p",{className:"text-[11px] text-muted-foreground/80 truncate",children:s.campaign_name})]}),e.jsx(Ae,{className:"h-3.5 w-3.5 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0"})]}),S&&e.jsxs(e.Fragment,{children:[e.jsx(J,{current:i,busy:h===s.id||N,onApprove:()=>D(s),onRequestRevisions:()=>O(s),approveLabel:t.approve,revisionsLabel:t.revisions}),(i==null?void 0:i.note)&&e.jsxs("p",{className:"text-[11px] text-muted-foreground line-clamp-3",children:[e.jsxs("span",{className:"font-medium text-amber-600 dark:text-amber-400",children:[t.revisionNote,": "]}),i.note]})]})]},s.id)})})]}),a.items.length===0&&e.jsx("p",{className:"text-sm text-muted-foreground",children:t.emptyState})]}),e.jsx(ue,{open:!!j,onOpenChange:s=>{s||w(null)},children:e.jsxs(fe,{className:"sm:max-w-md",children:[e.jsxs(ge,{children:[e.jsx(ve,{children:t.requestRevisions}),e.jsx(je,{children:t.requestRevisionsBody})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(he,{htmlFor:"revision-note",children:t.noteLabel}),e.jsx(pe,{id:"revision-note",rows:4,value:C,onChange:s=>T(s.target.value),placeholder:t.notePlaceholder})]}),e.jsxs(be,{className:"gap-2",children:[e.jsx(u,{variant:"outline",onClick:()=>w(null),children:t.cancel}),e.jsxs(u,{onClick:re,disabled:!!h,className:"gap-2",children:[h&&e.jsx(y,{className:"h-4 w-4 animate-spin"}),t.sendFeedback]})]})]})}),e.jsx("footer",{className:"border-t border-border/60 py-6",children:e.jsxs("div",{className:"mx-auto max-w-6xl px-5 sm:px-8 flex flex-col sm:flex-row items-start sm:items-center gap-3 justify-between",children:[e.jsxs("p",{className:"text-[11px] text-muted-foreground flex items-start gap-2",children:[e.jsx(X,{className:"w-3.5 h-3.5 mt-[1px] shrink-0"}),e.jsxs("span",{children:[t.confidential," ",e.jsx("a",{href:`${L}/privacy`,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:t.privacy})," ","/"," ",e.jsx("a",{href:`${L}/terms`,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2",children:t.terms}),"."]})]}),e.jsxs("a",{href:L,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 opacity-70 hover:opacity-100 transition-opacity",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-wider text-muted-foreground",children:t.poweredBy}),e.jsx("img",{src:se.url,alt:"UGC LATAM",className:"h-6 w-auto"})]})]})})]})},Ye=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Cs=()=>{const{token:a}
1=W(),c=!!a&&Ye.test(a);o.useEffect(()=>{const l=document.createElement("meta");return l.name="robots",l.content="noindex, nofollow, noarchive",document.head.appendChild(l),()=>{document.head.removeChild(l)}},[]);const{data:r,isLoading:m}=Q({queryKey:["brand-portfolio",a],enabled:c,staleTime:5*6e4,queryFn:async()=>{const{data:l,error:d}=await R.rpc("get_brand_portfolio",{p_token:a});return d?null:(l??[])[0]??null}});return c&&m?e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background text-muted-foreground",children:e.jsx(y,{className:"w-5 h-5 animate-spin"})}):r?(document.title=`${r.title||r.brand_name||"Content"} — portfolio`,e.jsx(Ke,{data:{...r,items:r.items??[]},token:a})):e.jsx($e,{})};export{Cs as SharedTokenPage,Cs 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.