import{r as e,h as t,F as s}from"./p-0d5a2e05.js";import{g as i}from"./p-97e3e910.js";const n=class{constructor(t){e(this,t);this.routes=[]}render(){return t("ul",{key:"1074d36ee2279a6aa4c415bfac4edcada5f98567",class:"sidepanel__menu-list"},this.routes.map(((e,s)=>t("li",{key:i()},t("tab-component",{route:e}),s<this.routes.length-1&&t("div",{class:"sidepanel__menu-tab-divider"})))))}};const a=class{constructor(t){e(this,t);this.isExpanded=false}handleExpanded(e){this.isExpanded=e;if(e){this.submenuElement.style.maxHeight="fit-content"}else{this.submenuElement.style.maxHeight=""}}render(){return t(s,{key:"77fe597a248f75f8061885c00fb811a9c8b033b5"},t("tab-link",{key:"9301b3ac308c952c6d59df062b436935a51020e8",text:this.route.name,type:this.route.children&&this.route.children.length>0?"parent":"child",icon:this.route.icon,link:this.route.path,onExpand:this.handleExpanded.bind(this),disabled:this.route.disabled}),this.route.children&&this.route.children.length>0&&t("ul",{key:"d52c304557fe9c84d24319c389b31c27910e1d17",class:"sidepanel__submenu-list",ref:e=>this.submenuElement=e},this.route.children.map(((e,s)=>t("submenu-component",{key:s,route:this.route,childRoute:e,onChildExpanded:e=>{if(e){this.submenuElement.style.maxHeight="fit-content"}}})))))}};export{n as side_panel_menu,a as tab_component};
//# sourceMappingURL=p-cd3fba84.entry.js.map