1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4666],{1765:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/main/admin/dashboard",function(){return t(53356)}])},11696:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(98832).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},25356:(e,s,t)=>{"use strict";t.d(s,{bL:()=>w,zi:()=>y});var a=t(65162),i=t(41375),l=t(13523),r=t(23855),n=t(77990),d=t(26978),c=t(95378),o=t(93644),x=t(4930),h="Switch",[u,m]=(0,r.A)(h),[p,j]=u(h),b=a.forwardRef((e,s)=>{let{__scopeSwitch:t,name:r,checked:d,defaultChecked:c,required:u,disabled:m,value:j="on",onCheckedChange:b,form:g,...v}=e,[w,y]=a.useState(null),k=(0,l.s)(s,e=>y(e)),C=a.useRef(!1),z=!w||g||!!w.closest("form"),[A,S]=(0,n.i)({prop:d,defaultProp:c??!1,onChange:b,caller:h});return(0,x.jsxs)(p,{scope:t,checked:A,disabled:m,children:[(0,x.jsx)(o.sG.button,{type:"button",role:"switch","aria-checked":A,"aria-required":u,"data-state":N(A),"data-disabled":m?"":void 0,disabled:m,value:j,...v,ref:k,onClick:(0,i.mK)(e.onClick,e=>{S(e=>!e),z&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),z&&(0,x.jsx)(f,{control:w,bubbles:!C.current,name:r,value:j,checked:A,required:u,disabled:m,form:g,style:{transform:"translateX(-100%)"}})]})});b.displayName=h;var g="SwitchThumb",v=a.forwardRef((e,s)=>{let{__scopeSwitch:t,...a}=e,i=j(g,t);return(0,x.jsx)(o.sG.span,{"data-state":N(i.checked),"data-disabled":i.disabled?"":void 0,...a,ref:s})});v.displayName=g;var f=a.forwardRef(({__scopeSwitch:e,control:s,checked:t,bubbles:i=!0,...r},n)=>{let o=a.useRef(null),h=(0,l.s)(o,n),u=(0,d.Z)(t),m=(0,c.X)(s);return a.useEffect(()=>{let e=o.current;if(!e)return;let s=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==t&&s){let a=new Event("click",{bubbles:i});s.call(e,t),e.dispatchEvent(a)}},[u,t,i]),(0,x.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...r,tabIndex:-1,ref:h,style:{...r.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function N(e){return e?"checked":"unchecked"}f.displayName="SwitchBubbleInput";var w=b,y=v},26978:(e,s,t)=>{"use strict";t.d(s,{Z:()=>i});var a=t(65162);function i(e){let s=a.useRef({value:e,previous:e});return a.useMemo(()=>(s.current.value!==e&&(s.current.previous=s.current.value,s.current.value=e),s.current.previous),[e])}},28827:(e,s,t)=>{"use strict";t.d(s,{l:()=>r});var a=t(4930),i=t(25356),l=t(68396);function r(e){let{checked:s,onCheckedChange:t,disabled:r,className:n,"aria-label":d}=e;return(0,a.jsx)(i.bL,{checked:s,onCheckedChange:t,disabled:r,"aria-label":d,className:(0,l.cn)("group relative inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border p-0.5 transition-colors duration-200","border-white/10 bg-white/6","data-[state=checked]:border-brand-blue/30 data-[state=checked]:bg-brand-blue/15","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-blue/35 focus-visible:ring-offset-1 focus-visible:ring-offset-transparent","disabled:cursor-not-allowed disabled:opacity-50",n),children:(0,a.jsx)(i.zi,{className:(0,l.cn)("pointer-events-none block size-4 rounded-full transition-transform duration-200","bg-white/30 shadow-sm","group-data-[state=checked]:translate-x-6 group-data-[state=checked]:bg-white group-data-[state=checked]:shadow-[0_0_8px_rgba(59,109,223,0.35)]","group-data-[state=unchecked]:translate-x-0")})})}},50278:(e,s,t)=>{"use strict";t.d(s,{P:()=>l});var a=t(4930),i=t(68396);function l(e){let{title:s,description:t,icon:l,className:r}=e;return(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col items-center gap-3 rounded-2xl border border-dashed border-white/10 px-6 py-10 text-center",r),children:[(0,a.jsx)("div",{className:"flex size-10 items-center justify-center rounded-full bg-white/5",children:l}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-white/70",children:s}),(0,a.jsx)("p",{className:"text-sm text-white/40",children:t})]})]})}},53356:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>W});var a=t(4930),i=t(65162),l=t(70740),r=t(51680),n=t(55647),d=t(56444),c=t(56242),o=t(11696),x=t(68396),h=t(28827),u=t(40620),m=t(27253),p=t(43185),j=t(76155),b=t(88651),g=t(54182),v=t(98832);let f=(0,v.A)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);var N=t(3941),w=t.n(N);function y(e){let{icon:s,title:t,value:i}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-white/8 bg-white/4 px-3 py-2.5",children:[(0,a.jsx)("div",{className:"flex size-8 shrink-0 items-center justify-center rounded-lg bg-white/5 text-white/60",children:s}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-xs text-white/45",children:t}),(0,a.jsx)("div",{className:"text-sm font-medium text-white",children:i})]})]})}function k(e){let{personaDetails:s}=e;return(0,a.jsxs)("div",{className:"rounded-xl border border-white/8 bg-white/3 p-4",children:[(0,a.jsx)("h3",{className:"mb-3 text-sm font-semibold text-white",children:"Persona details"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-start gap-4",children:[s.imageUrl?(0,a.jsx)("div",{className:"relative size-24 shrink-0 overflow-hidden rounded-xl border border-white/8",children:(0,a.jsx)(w(),{src:s.imageUrl,alt:"Persona image",f
1ill:!0,className:"object-cover"})}):(0,a.jsx)("div",{className:"flex size-24 shrink-0 items-center justify-center rounded-xl border border-dashed border-white/10 bg-white/4",children:(0,a.jsx)(m.A,{className:"size-8 text-white/30"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1 space-y-2",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-xs text-white/45",children:"Slug: "}),(0,a.jsx)("span",{className:"text-sm text-white",children:s.slug||"â"})]}),s.shortDescription?(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"text-xs text-white/45",children:["Short description:"," "]}),(0,a.jsx)("span",{className:"text-sm text-white/80",children:s.shortDescription})]}):null,s.longDescription?(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"text-xs text-white/45",children:"Bio: "}),(0,a.jsx)("span",{className:"text-sm text-white/80",children:s.longDescription})]}):null]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3",children:[(0,a.jsx)(y,{icon:(0,a.jsx)(p.A,{className:"size-4"}),title:"Visibility",value:(0,a.jsx)("span",{className:"capitalize",children:s.visibility})}),(0,a.jsx)(y,{icon:(0,a.jsx)(j.A,{className:"size-4"}),title:"Voice",value:s.hasVoice?(0,a.jsx)(C,{ok:!0,label:"Set"}):(0,a.jsx)(C,{ok:!1,label:"Not set"})}),(0,a.jsx)(y,{icon:(0,a.jsx)(b.A,{className:"size-4"}),title:"Tone & style",value:s.hasToneAndStyle?(0,a.jsx)(C,{ok:!0,label:"Configured"}):(0,a.jsx)(C,{ok:!1,label:"Not configured"})})]})]})]})}function C(e){let{ok:s,label:t}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[s?(0,a.jsx)(g.A,{className:"size-3 text-emerald-400"}):(0,a.jsx)(f,{className:"size-3 text-white/35"}),(0,a.jsx)("span",{className:s?"text-xs text-emerald-400":"text-xs text-white/45",children:t})]})}var z=t(84024),A=t(72522);let S=(0,v.A)("receipt-text",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}],["path",{d:"M13 16H8",key:"wsln4y"}]]),M=(0,v.A)("megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);var T=t(4329),P=t(47886),_=t(28464);function E(e){let{knowledgeCounts:s}=e;return(0,a.jsxs)("div",{className:"rounded-xl border border-white/8 bg-white/3 p-4",children:[(0,a.jsx)("h3",{className:"mb-3 text-sm font-semibold text-white",children:"Knowledge resources"}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6",children:[(0,a.jsx)(y,{icon:(0,a.jsx)(z.A,{className:"size-4"}),title:"Web links",value:s.webLinkCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(_.SI,{className:"size-4"}),title:"YouTube videos",value:s.youtubeVideoCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(P.ao$,{className:"size-4"}),title:"Instagram videos",value:s.instagramVideoCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(T.BsT,{className:"size-4"}),title:"TikTok videos",value:s.tiktokVideoCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(A.A,{className:"size-4"}),title:"Files & documents",value:s.fileCount+s.documentCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(S,{className:"size-4"}),title:"Additional text",value:s.additionalKnowledgeTextCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(M,{className:"size-4"}),title:"Promotional content",value:s.promotionalContentCount})]})]})}var q=t(29255),V=t(76294),D=t(31336),I=t(27113);let R=(0,v.A)("git-branch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]),U=(0,v.A)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),F=(0,v.A)("file-pen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);var H=t(56809);function L(e){let{chatConfiguration:s}=e;return(0,a.jsxs)("div",{className:"rounded-xl border border-white/8 bg-white/3 p-4",children:[(0,a.jsx)("h3",{className:"mb-3 text-sm font-semibold text-white",children:"Chat configuration"}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4",children:[(0,a.jsx)(y,{icon:(0,a.jsx)(q.A,{className:"size-4"}),title:"Presentation video",value:s.hasPresentationVideo?(0,a.jsx)(G,{ok:!0,label:"Yes"}):(0,a.jsx)(G,{ok:!1,label:"No"})}),(0,a.jsx)(y,{icon:(0,a.jsx)(V.A,{className:"size-4"}),title:"Greeting message",value:s.hasGreetingMessage?(0,a.jsx)(G,{ok:!0,label:"Yes"}):(0,a.jsx)(G,{ok:!1,label:"No"})}),(0,a.jsx)(y,{icon:(0,a.jsx)(D.A,{className:"size-4"}),title:"Helpful questions",value:s.helpfulQuestionsCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(I.A,{className:"size-4"}),title:"Survey questions",value:s.surveyQuestionsCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(R,{className:"size-4"}),title:"Conditional responses",value:s.conditionalResponsesCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(U,{className:"size-4"}
1),title:"Limitation topics",value:s.limitationTopicsCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(F,{className:"size-4"}),title:"Custom instructions",value:s.customInstructionsCount}),(0,a.jsx)(y,{icon:(0,a.jsx)(H.A,{className:"size-4"}),title:"Corrected responses",value:s.correctedResponsesCount})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"mb-2 text-xs text-white/45",children:"Enabled modes"}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,a.jsx)(O,{label:"Text",enabled:s.enabledChatModes.text}),(0,a.jsx)(O,{label:"Voice",enabled:s.enabledChatModes.voice}),(0,a.jsx)(O,{label:"Video",enabled:s.enabledChatModes.video})]})]})]})]})}function G(e){let{ok:s,label:t}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[s?(0,a.jsx)(g.A,{className:"size-3 text-emerald-400"}):(0,a.jsx)(f,{className:"size-3 text-white/35"}),(0,a.jsx)("span",{className:s?"text-xs text-emerald-400":"text-xs text-white/45",children:t})]})}function O(e){let{label:s,enabled:t}=e;return(0,a.jsxs)("span",{className:(0,x.cn)("rounded-md px-2.5 py-1 text-xs font-medium",t?"bg-emerald-500/15 text-emerald-300":"bg-white/8 text-white/40"),children:[s," ",t?"â":"â"]})}function $(e){let{users:s,togglingUserId:t,isFetching:l,onToggleCreator:r}=e,[n,m]=(0,i.useState)(new Set),[p,j]=(0,i.useState)(!1),[b,g]=(0,i.useState)(null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"overflow-hidden rounded-xl border border-white/8",children:(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-left",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-white/8 bg-white/4",children:[(0,a.jsx)(X,{label:"Email"}),(0,a.jsx)(X,{label:"Display Name"}),(0,a.jsx)(X,{label:"Tier"}),(0,a.jsx)(X,{label:"Is Creator"}),(0,a.jsx)(X,{label:"Is Admin"}),(0,a.jsx)(X,{label:"Created At",className:"hidden md:table-cell"}),(0,a.jsx)(X,{label:"",className:"w-10"})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-white/8",children:s.map(e=>{let s=t===e.id&&l,r=n.has(e.id);return(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("tr",{className:(0,x.cn)("text-sm text-white transition-colors",e.isCreator&&"cursor-pointer hover:bg-white/3",s&&"opacity-50"),onClick:e.isCreator?()=>{var s;return s=e.id,void m(e=>{let t=new Set(e);return t.has(s)?t.delete(s):t.add(s),t})}:void 0,children:[(0,a.jsx)("td",{className:"px-4 py-3 text-white/70",children:e.email||"â"}),(0,a.jsx)("td",{className:"px-4 py-3 font-medium",children:e.displayName||"â"}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsx)("span",{className:(0,x.cn)("rounded-md px-2 py-0.5 text-xs font-medium capitalize","pro"===e.tier?"bg-brand-blue/15 text-blue-300":"bg-white/8 text-white/50"),children:e.tier})}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(h.l,{checked:e.isCreator,onCheckedChange:s=>{var t;s!==e.isCreator&&(t=e.id,g({id:t,email:e.email,currentStatus:e.isCreator}),j(!0))},disabled:s,"aria-label":"Toggle creator status for ".concat(e.email||e.displayName||"user")}),s?(0,a.jsx)("div",{className:"size-4 animate-spin rounded-full border-2 border-white/20 border-t-white/70"}):null]})}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsx)("span",{className:(0,x.cn)("rounded-md px-2 py-0.5 text-xs font-medium",e.isAdmin?"bg-brand-blue/15 text-blue-300":"bg-white/8 text-white/50"),children:e.isAdmin?"Yes":"No"})}),(0,a.jsx)("td",{className:"hidden px-4 py-3 text-white/50 md:table-cell",children:new Date(e.createdAt).toISOString().split("T")[0]}),(0,a.jsx)("td",{className:"px-4 py-3",children:(0,a.jsx)("div",{className:"flex items-center justify-end text-white/50",children:e.isCreator?r?(0,a.jsx)(c.A,{className:"size-4"}):(0,a.jsx)(o.A,{className:"size-4"}):(0,a.jsx)("div",{className:"size-4"})})})]}),r?(0,a.jsx)("tr",{className:"bg-white/2",children:(0,a.jsx)("td",{colSpan:7,className:"px-4 py-4",children:e.personas&&e.personas.length>0?(0,a.jsx)("div",{className:"flex flex-col gap-4",children:e.personas.map((e,s)=>(0,a.jsxs)("div",{className:"overflow-hidden rounded-xl border border-white/8 bg-white/4",children:[(0,a.jsx)("div",{className:"border-b border-white/8 bg-white/5 px-4 py-3",children:(0,a.jsxs)("h2",{className:"text-sm font-semibold text-white",children:["Persona ",s+1,e.personaDetails.slug?(0,a.jsxs)("span",{className:"ml-2 text-sm font-normal text-white/45",children:["(",e.personaDetails.slug,")"]}):null]})}),(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-4",children:[(0,a.jsx)(k,{personaDetails:e.personaDetails}),(0,a.jsx)(E,{knowledgeCounts:e.knowledgeCounts}),(0,a.jsx)(L,{chatConfiguration:e.chatConfiguration})]})]}
1,e.personaDetails.slug||s))}):(0,a.jsx)("div",{className:"rounded-xl border border-dashed border-white/10 px-4 py-8 text-center text-sm text-white/40",children:"No personas found for this user"})})}):null]},e.id)})})]})})}),(0,a.jsx)(u.lG,{open:p,onOpenChange:j,children:(0,a.jsxs)(u.Cf,{className:"w-full max-w-md! border-none bg-[#191e2b] text-white z-100",children:[(0,a.jsxs)(u.c7,{children:[(0,a.jsx)(u.L3,{children:(null==b?void 0:b.currentStatus)?"Remove Creator Status":"Grant Creator Status"}),(0,a.jsxs)(u.rr,{className:"text-white/55",children:["Are you sure you want to"," ",(null==b?void 0:b.currentStatus)?"remove":"grant"," creator status",(null==b?void 0:b.email)?" for ".concat(b.email):"","?"]})]}),(0,a.jsxs)(u.Es,{className:"flex gap-2",children:[(0,a.jsx)(d.$,{variant:"ghost",size:"sm",onClick:()=>{j(!1),g(null)},children:"Cancel"}),(0,a.jsx)(d.$,{variant:"accent",size:"sm",onClick:()=>{b&&(r(b.id),b.currentStatus&&m(e=>{let s=new Set(e);return s.delete(b.id),s})),j(!1),g(null)},children:"Confirm"})]})]})})]})}function X(e){let{label:s,className:t}=e;return(0,a.jsx)("th",{className:(0,x.cn)("px-4 py-3 text-xs font-medium uppercase tracking-wide text-white/50",t),children:s})}var Y=t(37826),Z=t(21333),B=t(16438),K=t(31761),Q=t(50278);function W(){let[e,s]=(0,i.useState)(null),[t,c]=(0,i.useState)(1),o=n.F.useUtils(),{data:x,isLoading:h,isFetching:u}=n.F.admin.getUsers.useQuery({page:t,limit:20}),m=null==x?void 0:x.users,p=null==x?void 0:x.pagination,j=n.F.admin.toggleUserIsCreator.useMutation({onSuccess:async()=>{l.Ay.success("User creator status updated successfully"),await o.admin.getUsers.invalidate(),s(null)},onError:e=>{l.Ay.error("Failed to update user: ".concat(e.message)),s(null)}}),b=e=>{c(e),window.scrollTo({top:0,behavior:"smooth"})};return h?(0,a.jsx)(Y.A,{title:"Admin",children:(0,a.jsx)(B.z,{className:"max-w-7xl pt-6",children:(0,a.jsx)("div",{className:"flex min-h-[400px] items-center justify-center",children:(0,a.jsx)(Z.A,{})})})}):(0,a.jsx)(Y.A,{title:"Admin",children:(0,a.jsx)(B.z,{className:"max-w-7xl pt-6",children:(0,a.jsx)("div",{className:"flex flex-col gap-6 pb-4",children:(0,a.jsx)(K._T,{title:"Users",description:"Grant or revoke creator access, and expand a creator row to inspect their personas.",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,a.jsx)("p",{className:"text-sm leading-relaxed text-white/50",children:"Toggle creator status to control Studio access. Creators can be expanded to review profile, knowledge, and chat configuration."}),m&&0!==m.length?(0,a.jsx)($,{users:m,togglingUserId:e,isFetching:u,onToggleCreator:e=>{s(e),j.mutate({userId:e})}}):(0,a.jsx)(Q.P,{title:"No users found",description:"There are no users to display for this page.",icon:(0,a.jsx)(r.A,{className:"size-5 text-white/40"})}),p&&p.totalPages>1?(0,a.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-white/8 bg-white/4 px-4 py-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsxs)("div",{className:"text-sm text-white/50",children:["Showing ",(p.page-1)*p.limit+1," to"," ",Math.min(p.page*p.limit,p.total)," ","of ",p.total," users"]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(d.$,{onClick:()=>b(t-1),disabled:1===t||u,size:"sm",variant:"ghost",children:"Previous"}),(0,a.jsx)("div",{className:"flex items-center gap-1",children:Array.from({length:p.totalPages},(e,s)=>s+1).filter(e=>1===e||e===p.totalPages||1>=Math.abs(e-t)).map((e,s,i)=>{let l=i[s-1],r=l&&e-l>1;return(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[r?(0,a.jsx)("span",{className:"px-2 text-white/40",children:"..."}):null,(0,a.jsx)(d.$,{onClick:()=>b(e),disabled:u,variant:t===e?"accent":"ghost",size:"sm",children:e})]},e)})}),(0,a.jsx)(d.$,{onClick:()=>b(t+1),disabled:t===p.totalPages||u,size:"sm",variant:"ghost",children:"Next"})]})]}):null]})})})})})}},54182:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(98832).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},72522:(e,s,t)=>{"use strict";t.d(s,{A:()=>a});let a=(0,t(98832).A)("file",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]])}},e=>{e.O(0,[2566,6344,9132,7215,3271,3606,420,851,5998,9519,3941,6544,3410,872,6414,7826,636,6593,8792],()=>e(e.s=1765)),_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.