PageSourceSearch

https://app.zoca.com/assets/ContentRoute-Bb1zwCJJ.js

js zoca.com collected 2026-09-30 09:42:16 UTC 20,577 bytes, 1 lines download raw bytes

1import{r as p,R as P,j as e}from"./vendor-react-Dw2zQmPu.js";import{e4 as I,e5 as se,e6 as q,Q as K,ac as te}from"./app-shared-QFLrTdTF.js";import{o as ae,D as ne,R as re}from"./app-core-DTTgVEgu.js";import{B as L}from"./badge-CeMSLKTm.js";import{B as C}from"./button-CFi0D1K4.js";import{c as f}from"./app-cn-C2LL9ulS.js";import{b as O}from"./vendor-tanstack-Dk5vt_tN.js";import{u as oe}from"./useBusinessScope-DCgcSpOq.js";import{d as ie}from"./useAllLocationsTracking-9ddOIEwl.js";import{f as b}from"./discoveryFormat-D9eQ_hkm.js";import{g as le,f as ce,c as de}from"./SkeletonBlocks-D-0xzD__.js";import{a7 as xe,aO as V,af as me,a9 as z,aT as ue,u as pe,aJ as he,cY as ge,aL as be,aC as je,ag as fe,aa as Ne,a4 as ve,bU as ye,h as we}from"./vendor-ui-mAy9LocR.js";import{S as N}from"./skeleton-BJiIkxs-.js";import{S as Ce}from"./SearchInput-DTaqHUou.js";import{S as Le,a as Pe,b as Te,c as ke,d as U}from"./select-Bix8n78g.js";import{T as B,a as R,b as j,c as v,d as _,e as c}from"./table-DbeS9igF.js";import{d as Se}from"./dateTime-B1i2cMJw.js";import{N as H}from"./vendor-router-CtopkIuN.js";import"./commonjs-helpers-C05_-Ghz.js";import"./vendor-lodash-DVjWl2dU.js";import"./vendor-utils-CQ_dDVxl.js";import"./vite-preload-helper-BXl3LOEh.js";import"./vendor-redux-CqVJnD2r.js";import"./vendor-radix-guzGw5-0.js";import"./card-B8ye2dFa.js";import"./skeletonRows-bFntY3QY.js";import"./input-group-DrMNcVmx.js";import"./input-D2ulylI3.js";import"./textarea-BekLdUF0.js";import"./momentTokens-BIaQGjeF.js";import"./vendor-date-fns-D1v0qsob.js";const Ee=25,Ae=30,D={type:"all",channel:"all",status:"all",region:"all",search:""},Ie=s=>({type:s.type==="all"?void 0:s.type,channel:s.channel==="all"?void 0:s.channel,status:s.status==="all"?void 0:s.status,region:s.region==="all"?void 0:s.region,search:s.search.trim()||void 0}),Oe=()=>{const[s,o]=p.useState("published"),[t,a]=p.useState(D),[n,r]=p.useState(1),{currentBusinessId:l,currentBusinessName:u,drillIntoLocation:m}=oe(),h=ae(d=>d.user.entityId),x=l??"",y=!!x,T=p.useMemo(()=>Ie(t),[t]),i=O({queryKey:[I.GET_CONTENT_MULTILOCATION_OVERVIEW,x,h],queryFn:()=>se(x,h),enabled:y,staleTime:5*6e4}),g=O({queryKey:[I.GET_CONTENT_MULTILOCATION_PIECES,x,h,n,T],queryFn:()=>q({businessEntityId:x,userEntityId:h,page:n,limit:Ee,...T}),enabled:y,staleTime:5*6e4}),k=O({queryKey:[I.GET_CONTENT_MULTILOCATION_PIECES,x,h,"queue"],queryFn:()=>q({businessEntityId:x,userEntityId:h,page:1,limit:Ae,status:"In Review"}),enabled:y&&s==="queue",staleTime:5*6e4}),w=p.useMemo(()=>(i.data?.byRegion??[]).map(d=>d.region),[i.data?.byRegion]),{trackTabChange:M,trackFilterChange:F,trackFilterReset:G,trackPiecesPageChange:$}=ie(s,g.data?.items?.length??0,!!g.data),Y=p.useCallback(d=>{M(s,d),o(d)},[s,M]),Z=p.useCallback(d=>{F(d,t),a(S=>({...S,...d})),r(1)},[t,F]),J=p.useCallback(()=>{const d=Object.values(t).filter(S=>S!=null&&S!=="").length;G(d),a(D),r(1)},[t,G]),X=p.useCallback(d=>{$(n,d),r(d)},[n,$]),ee=p.useCallback(d=>{m(d,"/dashboard/discovery?tab=content")},[m]);return{tab:s,setTab:Y,currentBusinessName:u,overview:i.data,isOverviewLoading:i.isLoading,pieces:g.data,isPiecesLoading:g.isLoading,piecesPage:n,handlePiecesPage:X,queue:k.data,isQueueLoading:k.isLoading,filters:t,updateFilter:Z,clearFilters:J,regionOptions:w,openLocation:ee}},E=({icon:s,label:o,value:t,sub:a})=>e.jsxs("div",{className:"rounded-xl border border-border/50 bg-card p-4",children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[e.jsx("span",{className:"text-[10px] uppercase tracking-widest font-medium text-muted-foreground",children:o}),e.jsx(s,{className:"h-3.5 w-3.5 text-muted-foreground"})]}),e.jsx("p",{className:"text-xl font-semibold tabular-nums text-foreground font-display",children:t}),e.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:a})]}),Be=({overview:s,isLoading:o})=>o||!s?e.jsx(le,{tiles:4,className:"grid grid-cols-2 gap-3 md:grid-cols-4"}):e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:[e.jsx(E,{icon:xe,label:"Pieces live",value:b(s.piecesLive),sub:`${s.websiteLive} web · ${s.gbpLive} GBP`}),e.jsx(E,{icon:V,label:"Locations covered",value:b(s.locationsCovered),sub:`of ${s.locationCount}`}),e.jsx(E,{icon:me,label:"In pipeline",value:b(s.inPipeline),sub:"scheduled + drafting"}),e.jsx(E,{icon:z,label:"Needs approval",value:b(s.needsApproval),sub:"owner action"})]}),Re=P.memo(Be),_e=({velocity:s,isLoading:o})=>{if(o||!s)return e.jsxs("section",{className:"rounded-xl border border-border/50 bg-card p-5",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest font-medium text-muted-foreground",children:"Publishing velocity"}),e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Last 8 weeks · Website pages vs GBP posts"})]}),e.jsx(N,{className:"h-6 w-32 rounded-md"})]}),e.jsx("div",{className:"flex h-44 items-stretch gap-2 pt-7",children:[62,45,78,55,88,40,70,58].map((r,l)=>e.jsxs("div",{className:"flex min-h-0 flex-1 flex-col items-center gap-1",children:[e.jsx("div",{className:"flex min-h-0 w-full flex-1 flex-col justify-end",children:e.jsx(N,{className:"w-full shrink-0 rounded-t-sm rounded-b-none",style:{height:`${r}%`}})}),e.jsx(N,{className:"h-2.5 w-8 shrink-0"})]},l))}),e.jsxs("div",{className:"mt-3 flex items-center gap-4",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-sm bg-primary/70"})," Website"]}),e.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-sm bg-amber/70"})," GBP"]})]})]});const t=Math.max(1,...s.map(r=>r.website+r.gbp)),a=s.reduce((r,l)=>r+l.website+l.gbp,0),n=Math.round(a/Math.max(1,s.length));return e.jsxs("section",{className:"rounded-xl border border-border/50 bg-card p-5",children:[e.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-[10px] uppercase tracking-widest font-medium text-muted-foreground",children:"Publishing velocity"}),e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Last 8 weeks · Website pages vs GBP posts"})]}),e.jsxs(L,{variant:"outline",className:"flex items-center gap-1 text-xs",children:[e.jsx(ue,{className:"h-3 w-3"})," ",n," pieces/week avg"]})]}),e.jsx("div",{className:"flex items-stretch gap-2 h-44 pt-7",children:s.map(r=>{const l=r.website+r.gbp,u=r.website/t*100,m=r.gbp/t*100;return e.jsxs("div",{className:"group relative flex flex-1 flex-col items-center gap-1 min-h-0",children:[e.jsxs("div",{className:"pointer-events-none absolute -top-6 z-10 whitespace-nowrap rounded-md border border-border bg-card px-2 py-1 text-[10px] opacity-0 shadow-sm transition-opacity duration-(--motion-fast) group-hover:opacity-100",children:[e.jsxs("span",{className:"font-semibold text-foreground",children:[l," pieces"]}),e.jsxs("span",{className:"text-muted-foreground",children:[" ","· ",e.jsxs("span",{className:"text-primary",children:[r.website," web"]})," ·"," ",e.jsxs("span",{className:"text-amber",children:[r.gbp," GBP"]})]})]}),e.jsxs("div",{className:"flex w-full flex-1 flex-col justify-end min-h-0 rounded-sm transition-colors group-hover:bg-muted/40",children:[e.jsx("div",{className:"w-full shrink-0 rounded-t-sm bg-amber/70 transition-colors group-hover:bg-amber",style:{height:`${m}%`}}),e.jsx("div",{className:"w-full shrink-0 bg-primary/70 transition-colors group-hover:bg-primary",style:{height:`${u}%`}})]}),e.jsx("span",{className:"shrink-0 text-[10px] text-muted-foreground",children:r.week})]},r.week)})}),e.jsxs("div",{className:"mt-3 flex items-center gap-4",children:[e.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-sm bg-primary/70"})," Website"]}),e.jsxs("span",{className:"flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[e.jsx("span",{className:"h-2.5 w-2.5 rounded-sm bg-amber/70"})," GBP"]})]})]})},Me=P.memo(_e),W={"Service Page":{icon:be,badge:"bg-primary/10 text-primary"},"Location Page":{icon:ge,badge:"bg-success/10 text-success"},Blog:{icon:he,badge:"bg-muted text-foreground"},"GBP Post":{icon:pe,badge:"bg-amber/15 text-amber"}},Fe={Live:"bg-success/10 text-success",Scheduled:"bg-primary/10 text-primary","In Review":"bg-
1amber/15 text-amber",Drafting:"bg-muted text-muted-foreground"},Ge=s=>{if(!s)return"—";const o=new Date(s);return Number.isNaN(o.getTime())?"—":Se(o)},$e=["Service Page","Location Page","Blog","GBP Post"],qe=["Live","Scheduled","In Review","Drafting"],A=({value:s,onChange:o,allLabel:t,options:a,width:n="w-[140px]"})=>e.jsxs(Le,{value:s,onValueChange:o,children:[e.jsx(Pe,{className:f("h-8 text-xs",n),children:e.jsx(Te,{})}),e.jsxs(ke,{children:[e.jsx(U,{value:"all",children:t}),a.map(r=>e.jsx(U,{value:r,className:"text-xs",children:r},r))]})]}),Ue=({piece:s,onOpen:o})=>{const t=W[s.type],a=t.icon,n=()=>o(s.locationEntityId);return e.jsxs(j,{onClick:n,className:"cursor-pointer hover:bg-muted/20",children:[e.jsx(c,{children:e.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[e.jsx("span",{className:f("flex h-6 w-6 shrink-0 items-center justify-center rounded",t.badge),children:e.jsx(a,{className:"h-3 w-3"})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"truncate max-w-[280px] text-xs font-medium text-foreground",children:s.title||"Untitled"}),e.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[s.type," · ",s.channel]})]})]})}),e.jsxs(c,{children:[e.jsx("p",{className:"truncate max-w-[160px] text-xs text-foreground",children:s.locationName}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:s.region})]}),e.jsx(c,{children:e.jsx("span",{className:f("rounded-full px-2 py-0.5 text-[10px] font-medium",Fe[s.status]),children:s.status})}),e.jsx(c,{className:"truncate max-w-[160px] text-xs text-muted-foreground",children:s.keyword||"—"}),e.jsx(c,{className:"text-right text-xs text-muted-foreground",children:Ge(s.publishedDate)})]})},Q=["Title","Location","Status","Keyword","Date"],De=({pieces:s,isLoading:o,filters:t,updateFilter:a,clearFilters:n,regionOptions:r,page:l,onPageChange:u,onOpen:m})=>{const h=t.type!=="all"||t.channel!=="all"||t.status!=="all"||t.region!=="all"||!!t.search,x=s?.pagination,y=()=>u(Math.max(1,l-1)),T=()=>u(Math.min(x?.totalPages??1,l+1));return e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2 rounded-xl border border-border/50 bg-card p-3",children:[e.jsx(Ce,{value:t.search,onChange:i=>a({search:i}),placeholder:"Search title, location, keyword…",ariaLabel:"Search content pieces",size:"sm",className:"min-w-[240px] flex-1"}),e.jsx(A,{value:t.type,onChange:i=>a({type:i}),allLabel:"All types",options:$e}),e.jsx(A,{value:t.channel,onChange:i=>a({channel:i}),allLabel:"All channels",options:["Website","GBP"],width:"w-[120px]"}),e.jsx(A,{value:t.status,onChange:i=>a({status:i}),allLabel:"All statuses",options:qe,width:"w-[130px]"}),e.jsx(A,{value:t.region,onChange:i=>a({region:i}),allLabel:"All regions",options:r}),h&&e.jsxs(C,{variant:"ghost",size:"sm",className:"h-8 text-xs",onClick:n,children:[e.jsx(je,{className:"mr-1 h-3 w-3"})," Clear"]})]}),e.jsxs("div",{className:"overflow-hidden rounded-xl border border-border/50 bg-card",children:[e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(B,{children:[e.jsx(R,{children:e.jsx(j,{className:"bg-muted/30",children:Q.map((i,g)=>e.jsx(v,{className:f("text-[10px] uppercase tracking-widest text-muted-foreground",g>=4&&"text-right"),children:i},i))})}),e.jsx(_,{children:o?Array.from({length:6}).map((i,g)=>e.jsx(j,{children:Q.map((k,w)=>e.jsx(c,{className:f(w>=4&&"text-right"),children:e.jsx(N,{className:f("h-4",w===0?"w-48":"w-16",w>=4&&"ml-auto")})},k))},g)):(s?.items.length??0)===0?e.jsx(j,{children:e.jsx(c,{colSpan:5,className:"py-12 text-center text-sm text-muted-foreground",children:"No content matches your filters."})}):s?.items.map(i=>e.jsx(Ue,{piece:i,onOpen:m},i.id))})]})}),x&&x.totalPages>1&&e.jsxs("div",{className:"flex items-center justify-between border-t border-border/50 px-4 py-2.5",children:[e.jsxs("p",{className:"text-[11px] text-muted-foreground",children:[x.totalCount.toLocaleString()," pieces · page ",l," of"," ",x.totalPages]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(C,{variant:"outline",size:"sm",className:"h-7 w-7 p-0",onClick:y,disabled:l<=1,children:e.jsx(fe,{className:"h-3.5 w-3.5"})}),e.jsx(C,{variant:"outline",size:"sm",className:"h-7 w-7 p-0",onClick:T,disabled:l>=x.totalPages,children:e.jsx(Ne,{className:"h-3.5 w-3.5"})})]})]})]})]})},Qe=P.memo(De),Ke=({queue:s,isLoading:o,needsApproval:t,onOpen:a})=>o||!s?e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-amber/30 bg-amber/5 p-4",children:[e.jsx(N,{className:"size-5 shrink-0 rounded"}),e.jsxs("div",{className:"flex-1 space-y-1.5",children:[e.jsx(N,{className:"h-4 w-1/3"}),e.jsx(N,{className:"h-3 w-1/2"})]})]}),e.jsx(ce,{rows:3})]}):e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-3 rounded-xl border border-amber/30 bg-amber/5 p-4",children:[e.jsx(z,{className:"h-5 w-5 text-amber"}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("p",{className:"text-sm font-semibold text-foreground",children:[t," ",t===1?"piece is":"pieces are"," waiting on you"]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Click into each location to review and approve."})]})]}),s.items.length===0?e.jsx("div",{className:"rounded-xl border border-border/50 bg-card p-8 text-center text-sm text-muted-foreground",children:"Nothing awaiting approval."}):e.jsx("div",{className:"grid grid-cols-1 gap-3 lg:grid-cols-2",children:s.items.map(n=>
1{const r=W[n.type],l=r.icon,u=()=>a(n.locationEntityId);return e.jsxs("div",{className:"flex items-start gap-3 rounded-xl border border-border/50 bg-card p-4",children:[e.jsx("span",{className:f("flex h-8 w-8 shrink-0 items-center justify-center rounded",r.badge),children:e.jsx(l,{className:"h-4 w-4"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"mb-1 flex flex-wrap items-center gap-2",children:[e.jsx(L,{variant:"outline",className:"text-[10px]",children:n.type}),e.jsx(L,{variant:"outline",className:"text-[10px]",children:n.channel}),e.jsxs("span",{className:"text-[10px] text-muted-foreground",children:[n.locationName," · ",n.region]})]}),e.jsx("p",{className:"text-sm font-medium leading-snug text-foreground",children:n.title||"Untitled"}),n.keyword&&e.jsxs("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:["Keyword: ",e.jsx("span",{className:"font-medium text-foreground",children:n.keyword})]})]}),e.jsxs(C,{size:"sm",variant:"outline",className:"h-7 text-[11px]",onClick:u,children:[e.jsx(ve,{className:"mr-1 h-3 w-3"})," Review"]})]},n.id)})})]}),Ve=P.memo(Ke),ze=({overview:s,isLoading:o,onOpen:t})=>o||!s?e.jsx("div",{className:"space-y-4",children:e.jsxs("section",{className:"overflow-hidden rounded-xl border border-border/50 bg-card",children:[e.jsx("div",{className:"border-b border-border/50 px-4 py-3",children:e.jsx(N,{className:"h-4 w-24"})}),e.jsx(de,{columns:["flex-1","w-20","w-20","w-20","w-20"],rows:4,rowHeight:"h-12",framed:!1})]})}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("section",{className:"overflow-hidden rounded-xl border border-border/50 bg-card",children:[e.jsx("div",{className:"border-b border-border/50 px-4 py-3",children:e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"By region"})}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(B,{children:[e.jsx(R,{children:e.jsxs(j,{children:[e.jsx(v,{className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Region"}),["Locations","Published","Per loc","Pipeline"].map(a=>e.jsx(v,{className:"text-right text-[10px] uppercase tracking-widest text-muted-foreground",children:a},a))]})}),e.jsx(_,{children:s.byRegion.map(a=>e.jsxs(j,{children:[e.jsx(c,{className:"text-xs font-medium text-foreground",children:a.region}),e.jsx(c,{className:"text-right tabular-nums text-xs",children:a.locations}),e.jsx(c,{className:"text-right tabular-nums text-xs font-semibold",children:b(a.published)}),e.jsx(c,{className:"text-right tabular-nums text-xs text-muted-foreground",children:a.perLoc}),e.jsx(c,{className:"text-right tabular-nums text-xs",children:b(a.pipeline)})]},a.region))})]})})]}),e.jsxs("section",{className:"overflow-hidden rounded-xl border border-border/50 bg-card",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 px-4 py-3",children:[e.jsx("p",{className:"text-sm font-semibold text-foreground",children:"By location · output"}),e.jsx(L,{variant:"outline",className:"text-[10px]",children:"Click to drill in"})]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs(B,{children:[e.jsx(R,{children:e.jsxs(j,{children:[e.jsx(v,{className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Location"}),e.jsx(v,{className:"text-[10px] uppercase tracking-widest text-muted-foreground",children:"Region"}),["Published","Pipeline"].map(a=>e.jsx(v,{className:"text-right text-[10px] uppercase tracking-widest text-muted-foreground",children:a},a)),e.jsx(v,{className:"w-8"})]})}),e.jsx(_,{children:s.byLocation.map(a=>{const n=()=>t(a.locationEntityId);return e.jsxs(j,{onClick:n,className:"cursor-pointer hover:bg-muted/20",children:[e.jsx(c,{children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(V,{className:"h-3 w-3 text-muted-foreground"}),e.jsx("span",{className:"text-xs font-medium text-foreground",children:a.name})]})}),e.jsx(c,{className:"text-xs text-muted-foreground",children:a.region}),e.jsx(c,{className:"text-right tabular-nums text-xs font-semibold",children:b(a.published)}),e.jsx(c,{className:"text-right tabular-nums text-xs",children:b(
1a.pipeline)}),e.jsx(c,{className:"text-right",children:e.jsx(ye,{className:"inline h-3 w-3 text-muted-foreground"})})]},a.locationEntityId)})})]})})]})]}),He=P.memo(ze),We=()=>{const{isAllLocationsView:s,isLoading:o}=K(),t=Oe(),{overview:a,isOverviewLoading:n}=t;if(o)return e.jsx("div",{className:"flex h-full items-center justify-center",children:e.jsx(te,{})});if(!s)return e.jsx(H,{to:ne.home,replace:!0});const r=a?.locationCount??0,l=a?.byRegion.length??0,u=[{id:"published",label:`All content${a?` (${a.piecesLive+a.inPipeline})`:""}`},{id:"queue",label:`Approval queue${a?` (${a.needsApproval})`:""}`},{id:"by-location",label:"By location · region"}];return e.jsx("div",{className:"h-full overflow-y-auto p-6",children:e.jsxs("div",{className:"max-w-7xl mx-auto space-y-6 pb-16",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-base font-semibold text-foreground leading-tight",children:"Content — All Locations"}),e.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Every page, blog and GBP post Zoca is shipping across ",r," locations ·"," ",l," ",l===1?"region":"regions","."]})]}),e.jsxs(L,{variant:"secondary",className:"gap-1.5",children:[e.jsx(we,{className:"h-3 w-3"})," Auto-generated by Discovery Agent"]})]}),e.jsx(Re,{overview:a,isLoading:n}),e.jsx(Me,{velocity:a?.velocity,isLoading:n}),e.jsx("div",{className:"flex items-center gap-1 border-b border-border/50",children:u.map(m=>e.jsx(C,{variant:"ghost",size:"sm",onClick:()=>t.setTab(m.id),className:f("h-9 rounded-none border-b-2 px-3 text-xs",t.tab===m.id?"border-primary text-primary":"border-transparent text-muted-foreground"),children:m.label},m.id))}),t.tab==="published"&&e.jsx(Qe,{pieces:t.pieces,isLoading:t.isPiecesLoading,filters:t.filters,updateFilter:t.updateFilter,clearFilters:t.clearFilters,regionOptions:t.regionOptions,page:t.piecesPage,onPageChange:t.handlePiecesPage,onOpen:t.openLocation}),t.tab==="queue"&&e.jsx(Ve,{queue:t.queue,isLoading:t.isQueueLoading,needsApproval:a?.needsApproval??0,onOpen:t.openLocation}),t.tab==="by-location"&&e.jsx(He,{overview:a,isLoading:n,onOpen:t.openLocation})]})})},Ts=()=>{const{isAllLocationsView:s}=K(),o=re();return s?e.jsx(We,{}):e.jsx(H,{to:o("/dashboard/discovery?tab=content"),replace:!0})};export{Ts 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.