PageSourceSearch

https://soshlabs.ai/_next/static/chunks/pages/admin-e2a9bcf271b155e5.js

js soshlabs.ai collected 2026-10-05 12:39:44 UTC 19,958 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6309],{1813:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("Contact",[["path",{d:"M16 2v2",key:"scm5qe"}],["path",{d:"M7 22v-2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2",key:"1waht3"}],["path",{d:"M8 2v2",key:"pbkmx"}],["circle",{cx:"12",cy:"11",r:"3",key:"itu57m"}],["rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",key:"12vinp"}]])},5881:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});var s=r(37876),i=r(89461),a=r(56044);let n=(0,i.R)(function(e,t){let{templateAreas:r,gap:i,rowGap:n,columnGap:o,column:l,row:d,autoFlow:c,autoRows:h,templateRows:u,autoColumns:p,templateColumns:x,...m}=e;return(0,s.jsx)(a.B.div,{ref:t,__css:{display:"grid",gridTemplateAreas:r,gridGap:i,gridRowGap:n,gridColumnGap:o,gridAutoColumns:p,gridColumn:l,gridRow:d,gridAutoFlow:c,gridAutoRows:h,gridTemplateRows:u,gridTemplateColumns:x},...m})});n.displayName="Grid"},14136:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},20708:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]])},21174:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).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"}]])},22115:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>w});var s=r(37876),i=r(38061),a=r(39955),n=r(79736),o=r(51362),l=r(91921),d=r(18387),c=r(38443),h=r(60851),u=r(5881),p=r(50845),x=r(14136),m=r(46293),g=r(54791),y=r(20708),f=r(21174),b=r(77328),j=r.n(b),v=r(48230),A=r.n(v),k=r(78408),S=r(93983);function E(e){let{label:t,value:r,icon:c,href:h,accent:u="brand"}=e,p=(0,i.dU)("white","surface.800"),x=(0,i.dU)("slate.100","surface.700"),m=(0,i.dU)("slate.900","slate.100"),g=(0,i.dU)("slate.500","slate.400"),y=(0,i.dU)("".concat(u,".50"),"".concat(u,".900")),f=(0,i.dU)("".concat(u,".600"),"".concat(u,".300")),b=(0,i.dU)("".concat(u,".200"),"".concat(u,".700")),j=(0,s.jsx)(a.a,{bg:p,border:"1px solid",borderColor:x,borderRadius:"2xl",p:5,transition:"all 0.15s ease",_hover:h?{borderColor:b,transform:"translateY(-1px)",shadow:"sm"}:{},cursor:h?"pointer":"default",children:(0,s.jsxs)(n.z,{justify:"space-between",align:"flex-start",children:[(0,s.jsxs)(o.T,{spacing:1,align:"flex-start",children:[(0,s.jsx)(l.E,{fontFamily:"body",fontSize:"xs",color:g,fontWeight:"medium",textTransform:"uppercase",letterSpacing:"wide",children:t}),(0,s.jsx)(l.E,{fontFamily:"heading",fontSize:"2xl",fontWeight:"bold",color:m,lineHeight:"1",children:r})]}),(0,s.jsx)(a.a,{w:10,h:10,bg:y,borderRadius:"xl",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,children:(0,s.jsx)(d.I,{as:c,boxSize:5,color:f})})]})});return h?(0,s.jsx)(A(),{href:h,passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(a.a,{as:"a",display:"block",children:j})}):j}function w(){var e,t,r;let{data:b,isLoading:v}=(0,S.GR)(),w=(0,i.dU)("slate.900","slate.100"),C=(0,i.dU)("slate.500","slate.400"),M=null!=(e=null==b?void 0:b.totalOrgs)?e:0,z=null!=(t=null==b?void 0:b.expertsAssigned)?t:0,R=null!=(r=null==b?void 0:b.onboarded)?r:0;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j(),{children:(0,s.jsx)("title",{children:"Admin Dashboard — Sosh Admin"})}),(0,s.jsx)(k.A,{title:"Admin Dashboard",children:(0,s.jsxs)(o.T,{spacing:8,align:"stretch",children:[(0,s.jsxs)(o.T,{spacing:1,align:"flex-start",children:[(0,s.jsx)(l.E,{fontFamily:"heading",fontWeight:"bold",fontSize:"2xl",color:w,children:"Platform Overview"}),(0,s.jsx)(l.E,{fontFamily:"body",fontSize:"sm",color:C,children:"Sosh AI platform administration. Monitor orgs, manage experts, and oversee calls."})]}),v?(0,s.jsx)(c.o,{py:12,children:(0,s.jsx)(h.y,{size:"lg",color:"brand.500",thickness:"3px"})}):(0,s.jsxs)(u.x,{templateColumns:{base:"1fr",md:"repeat(2, 1fr)",lg:"repeat(4, 1fr)"},gap:4,children:[(0,s.jsx)(p.E,{children:(0,s.jsx)(E,{label:"Total Organizations",value:M,icon:x.A,href:"/admin/experts",accent:"brand"})}),(0,s.jsx)(p.E,{children:(0,s.jsx)(E,{label:"Experts Assigned",value:v?"—":z,icon:m.A,href:"/admin/experts",accent:"green"})}),(0,s.jsx)(p.E,{children:(0,s.jsx)(E,{label:"Orgs Onboarded",value:v?"—":R,icon:g.A,accent:"purple"})}),(0,s.jsx)(p.E,{children:(0,s.jsx)(E,{label:"Group Calls",value:"Coming Soon",icon:y.A,href:"/admin/group-calls",accent:"orange"})})]}),(0,s.jsxs)(a.a,{children:[(0,s.jsx)(l.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"md",color:w,mb:3,children:"Qu
1ick Actions"}),(0,s.jsxs)(u.x,{templateColumns:{base:"1fr",md:"repeat(2, 1fr)"},gap:3,children:[(0,s.jsx)(p.E,{children:(0,s.jsx)(A(),{href:"/admin/experts",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(a.a,{as:"a",display:"block",p:4,border:"1px solid",borderColor:(0,i.dU)("slate.100","surface.700"),borderRadius:"xl",bg:(0,i.dU)("white","surface.800"),_hover:{borderColor:(0,i.dU)("brand.200","brand.700")},transition:"border-color 0.15s ease",cursor:"pointer",children:(0,s.jsxs)(n.z,{spacing:3,children:[(0,s.jsx)(d.I,{as:m.A,boxSize:5,color:(0,i.dU)("brand.600","brand.400")}),(0,s.jsxs)(o.T,{spacing:0,align:"flex-start",children:[(0,s.jsx)(l.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:w,children:"Manage Experts"}),(0,s.jsx)(l.E,{fontFamily:"body",fontSize:"xs",color:C,children:"Assign Sosh team members as experts for organizations"})]})]})})})}),(0,s.jsx)(p.E,{children:(0,s.jsx)(A(),{href:"/admin/group-calls",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(a.a,{as:"a",display:"block",p:4,border:"1px solid",borderColor:(0,i.dU)("slate.100","surface.700"),borderRadius:"xl",bg:(0,i.dU)("white","surface.800"),_hover:{borderColor:(0,i.dU)("brand.200","brand.700")},transition:"border-color 0.15s ease",cursor:"pointer",children:(0,s.jsxs)(n.z,{spacing:3,children:[(0,s.jsx)(d.I,{as:g.A,boxSize:5,color:(0,i.dU)("brand.600","brand.400")}),(0,s.jsxs)(o.T,{spacing:0,align:"flex-start",children:[(0,s.jsx)(l.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:w,children:"Group Calls"}),(0,s.jsx)(l.E,{fontFamily:"body",fontSize:"xs",color:C,children:"Schedule and manage group strategy calls (Plan B)"})]})]})})})}),(0,s.jsx)(p.E,{children:(0,s.jsx)(A(),{href:"/admin/ai-health",passHref:!0,legacyBehavior:!0,children:(0,s.jsx)(a.a,{as:"a",display:"block",p:4,border:"1px solid",borderColor:(0,i.dU)("slate.100","surface.700"),borderRadius:"xl",bg:(0,i.dU)("white","surface.800"),_hover:{borderColor:(0,i.dU)("brand.200","brand.700")},transition:"border-color 0.15s ease",cursor:"pointer",children:(0,s.jsxs)(n.z,{spacing:3,children:[(0,s.jsx)(d.I,{as:f.A,boxSize:5,color:(0,i.dU)("brand.600","brand.400")}),(0,s.jsxs)(o.T,{spacing:0,align:"flex-start",children:[(0,s.jsx)(l.E,{fontFamily:"heading",fontWeight:"semibold",fontSize:"sm",color:w,children:"AI Health"}),(0,s.jsx)(l.E,{fontFamily:"body",fontSize:"xs",color:C,children:"Monitor Sosh AI generation success rates and investigate failures"})]})]})})})})]})]})]})})]})}},38443:(e,t,r)=>{"use strict";r.d(t,{o:()=>n});var s=r(37876),i=r(56044),a=r(89461);let n=(0,i.B)("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});n.displayName="Center";let o={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};(0,a.R)(function(e,t){let{axis:r="both",...a}=e;return(0,s.jsx)(i.B.div,{ref:t,__css:o[r],...a,position:"absolute"})})},40097:(e,t,r)=>{"use strict";r.d(t,{n:()=>c});var s=r(14232),i=r(21407),a=r(60388),n=r(90089),o=r(37149),l=class extends n.Q{#e;#t=void 0;#r;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.EN)(t.mutationKey)!==(0,o.EN)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#a()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){let e=this.#r?.state??(0,i.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){a.jG.batch(()=>
1{if(this.#s&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#s.onSuccess?.(e.data,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(e.data,null,t,r,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#s.onError?.(e.error,t,r,s)}catch(e){Promise.reject(e)}try{this.#s.onSettled?.(void 0,e.error,t,r,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},d=r(67768);function c(e,t){let r=(0,d.jE)(t),[i]=s.useState(()=>new l(r,e));s.useEffect(()=>{i.setOptions(e)},[i,e]);let n=s.useSyncExternalStore(s.useCallback(e=>i.subscribe(a.jG.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=s.useCallback((e,t)=>{i.mutate(e,t).catch(o.lQ)},[i]);if(n.error&&(0,o.GU)(i.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:c,mutateAsync:n.mutate}}},46293:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},50845:(e,t,r)=>{"use strict";r.d(t,{E:()=>d});var s=r(37876),i=r(36188),a=r(74715),n=r(89461),o=r(56044);function l(e){return(0,i.bk)(e,e=>"auto"===e?"auto":`span ${e}/span ${e}`)}let d=(0,n.R)(function(e,t){let{area:r,colSpan:i,colStart:n,colEnd:d,rowEnd:c,rowSpan:h,rowStart:u,...p}=e,x=(0,a.o)({gridArea:r,gridColumn:l(i),gridRow:l(h),gridColumnStart:n,gridColumnEnd:d,gridRowStart:u,gridRowEnd:c});return(0,s.jsx)(o.B.div,{ref:t,__css:x,...p})});d.displayName="GridItem"},51565:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin",function(){return r(22115)}])},54791:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]])},63200:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]])},75405:(e,t,r)=>{"use strict";r.d(t,{i:()=>a});var s=r(72402);let i={orgs:"/api/v1/admin/orgs",experts:"/api/v1/admin/experts",setExpert:e=>"/api/v1/admin/orgs/".concat(e,"/expert"),aiStats:"/api/v1/admin/ai-stats",aiFailures:"/api/v1/admin/ai-failures",conversionFunnel:"/api/v1/admin/conversion-funnel"},a={async listOrgs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,{data:r}=await s.Ay.get(i.orgs,{params:{page:e,limit:t}});return r},async listExperts(){let{data:e}=await s.Ay.get(i.experts);return e},async setExpert(e,t){let{data:r}=await s.Ay.patch(i.setExpert(e),{clerkUserId:t});return r},async listGroupCalls(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,{data:r}=await s.Ay.get("/api/v1/admin/group-calls",{params:{page:e,limit:t}});return r},async createGroupCall(e){let{data:t}=await s.Ay.post("/api/v1/admin/group-calls",e);return t},async updateGroupCall(e,t){let{data:r}=await s.Ay.patch("/api/v1/admin/group-calls/".concat(e),t);return r},async cancelGroupCall(e){let{data:t}=await s.Ay.delete("/api/v1/admin/group-calls/".concat(e));return t},async getConversionFunnel(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30,{data:t}=await s.Ay.get(i.conversionFunnel,{params:{since:e}});return t},async getAiStats(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:24,{data:t}=await s.Ay.get(i.aiStats,{params:{windowHours:e}});return t},async getAiFailures(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{windowHours:t=24,page:r=1,pageSize:a=20}=e,{data:n}=await s.Ay.get(i.aiFailures,{params:{windowHours:t,page:r,pageSize:a}});return n}}},78165:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]])},78408:(e,t,r)=>{"use strict";r.d(t,{A:()=>F});var s=r(37876),i=r(39955),a=r(38061),n=r(79736),o=r(91921),l=r(51362),d=r(18387),c=r(38443),h=r(60851),u=r(59803),p=r(89099),x=r(48230),m=r.n(x),g=r(61886),y=r(63200),f=r(46293),b=r(54791),j=r(20708),v=r(1813),A=r(2
11174),k=r(78165),S=r(82622),E=r(80192),w=r(93983);let C=g.P.create(i.a),M={initial:{opacity:0,y:8},animate:{opacity:1,y:0,transition:{duration:.3,ease:[.25,.46,.45,.94]}},exit:{opacity:0,y:-4,transition:{duration:.2,ease:"easeIn"}}},z=[{label:"Dashboard",href:"/admin",icon:y.A},{label:"Experts",href:"/admin/experts",icon:f.A},{label:"Group Calls",href:"/admin/group-calls",icon:b.A},{label:"Strategy Calls",href:"/admin/strategy-calls",icon:j.A},{label:"Leads",href:"/admin/crm",icon:v.A},{label:"AI Health",href:"/admin/ai-health",icon:A.A},{label:"Funnel",href:"/admin/funnel",icon:k.A}],R="240px";function U(){let e=(0,p.useRouter)(),t=(0,a.dU)("white","surface.800"),r=(0,a.dU)("slate.100","surface.700"),c=(0,a.dU)("slate.800","slate.100"),h=(0,a.dU)("slate.500","slate.400"),u=(0,a.dU)("brand.50","brand.900"),x=(0,a.dU)("brand.700","brand.300"),g=(0,a.dU)("slate.50","surface.700");return(0,s.jsxs)(i.a,{position:"fixed",left:0,top:0,h:"100vh",w:R,bg:t,borderRight:"1px solid",borderColor:r,display:"flex",flexDirection:"column",zIndex:100,children:[(0,s.jsxs)(n.z,{px:5,py:5,spacing:2,borderBottom:"1px solid",borderColor:r,children:[(0,s.jsx)(i.a,{w:7,h:7,bg:"brand.500",borderRadius:"lg",display:"flex",alignItems:"center",justifyContent:"center",children:(0,s.jsx)(o.E,{fontSize:"xs",fontWeight:"bold",color:"white",fontFamily:"heading",children:"S"})}),(0,s.jsxs)(l.T,{spacing:0,align:"flex-start",children:[(0,s.jsx)(o.E,{fontSize:"sm",fontWeight:"bold",color:c,fontFamily:"heading",lineHeight:"1",children:"Sosh Admin"}),(0,s.jsx)(o.E,{fontSize:"10px",color:h,fontFamily:"body",lineHeight:"1",children:"Platform Control"})]})]}),(0,s.jsx)(l.T,{spacing:1,align:"stretch",px:3,pt:4,flex:1,children:z.map(t=>{let r="/admin"===t.href?"/admin"===e.pathname:e.pathname.startsWith(t.href);return(0,s.jsx)(m(),{href:t.href,passHref:!0,legacyBehavior:!0,children:(0,s.jsxs)(i.a,{as:"a",display:"flex",alignItems:"center",gap:3,px:3,py:2.5,borderRadius:"lg",cursor:"pointer",bg:r?u:"transparent",color:r?x:h,fontWeight:r?"semibold":"normal",fontFamily:"body",fontSize:"sm",transition:"all 0.15s ease",_hover:{bg:r?u:g,color:r?x:c},children:[(0,s.jsx)(d.I,{as:t.icon,boxSize:4,flexShrink:0}),(0,s.jsx)(o.E,{children:t.label})]})},t.href)})}),(0,s.jsx)(i.a,{px:3,pb:4,borderTop:"1px solid",borderColor:r,pt:3,children:(0,s.jsx)(m(),{href:"/dashboard",passHref:!0,legacyBehavior:!0,children:(0,s.jsxs)(i.a,{as:"a",display:"flex",alignItems:"center",gap:3,px:3,py:2.5,borderRadius:"lg",cursor:"pointer",color:h,fontFamily:"body",fontSize:"sm",transition:"all 0.15s ease",_hover:{bg:g,color:c},children:[(0,s.jsx)(d.I,{as:S.A,boxSize:4,flexShrink:0}),(0,s.jsx)(o.E,{children:"Exit Admin"})]})})})]})}function F(e){let{children:t,title:r}=e,n=(0,p.useRouter)(),{isLoaded:x}=(0,E.Jd)(),m=(0,w.sS)(),g=(0,a.dU)("slate.50","surface.900"),y=(0,a.dU)("slate.900","slate.100"),f=(0,a.dU)("slate.100","surface.700"),b=(0,a.dU)("white","surface.800");return x?m?(0,s.jsxs)(u.s,{minH:"100vh",bg:g,children:[(0,s.jsx)(U,{}),(0,s.jsxs)(i.a,{flex:1,ml:R,minH:"100vh",display:"flex",flexDirection:"column",children:[r&&(0,s.jsx)(i.a,{px:8,py:5,borderBottom:"1px solid",borderColor:f,bg:b,children:(0,s.jsx)(o.E,{fontFamily:"heading",fontWeight:"bold",fontSize:"lg",color:y,children:r})}),(0,s.jsx)(i.a,{as:"main",flex:1,p:8,children:(0,s.jsx)(C,{variants:M,initial:"initial",animate:"animate",exit:"exit",children:t},n.pathname)})]})]}):(n.replace("/dashboard"),(0,s.jsx)(c.o,{minH:"100vh",bg:g,children:(0,s.jsxs)(l.T,{spacing:3,textAlign:"center",children:[(0,s.jsx)(d.I,{as:S.A,boxSize:10,color:"slate.400"}),(0,s.jsx)(o.E,{fontFamily:"heading",fontWeight:"bold",color:y,children:"Access Denied"}),(0,s.jsx)(o.E,{fontFamily:"body",fontSize:"sm",color:"slate.500",children:"This area is restricted to Sosh platform admins."})]})})):(0,s.jsx)(c.o,{minH:"100vh",bg:g,children:(0,s.jsx)(h.y,{size:"lg",color:"brand.500",thickness:"3px"})})}},82622:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s=(0,r(17963).A)("ShieldOff",[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]])},93983:(e,t,r)=>{"use strict";r.d(t,{GR:()=>h,RY:()=>c,Su:()=>d,gz:()=>u,sS:()=>l});var s=r(67914),i=r(67768),a=r(40097),n=r(75405),o=r(80192);function l(){let{user:e,isLoaded:t}=(0,o.Jd)();return!!t&&!!e&&"sosh_admin"===e.publicMetadata.platformRole}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=l();return(0,s.I)({queryKey:["admin","orgs",e,t],queryFn:()=>n.i.listOrgs(e,t),enabled:r,staleTime:6e4})}function c(){let e=l();return(0,s.I)({queryKey:["admin","experts"],queryFn:()=>n.i.listExperts(),enabled:e,staleTime:12e4})}function h(){let e=l();return(0,s.I)({queryKey:["admin","stats"],queryFn:async()=>{let e=[],t=1,r=1;for(;t<=r;){let s=await n.i.listOrgs(t,100);e.push(...s.data),r=s.meta.totalPages,t++}return{totalOrgs:e.length,expertsAssigned:e.filter(e=>null!==e.expert).length,onboarded:e.filter(e=>e.onboardingCompleted).length}},enabled:e,staleTime:12e4})}function u(){let e=(0,i.jE)();return(0,a.n)({mutationFn:e=>{let{orgId:t,clerkUserId:r}=e;return n.i.setExpert(t,r)},onSuccess:()=>
1{e.invalidateQueries({queryKey:["admin","orgs"]})}})}}},e=>{e.O(0,[5533,636,6593,8792],()=>e(e.s=51565)),_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.