class RedgeMenu extends RedgeFront{current;state={logo:"xarm-big.png",logo2:"xarm-wb-small.png",menu:[{key:"XARM",name:"X-ARM",icon:"technology-4"},{key:"BEN",name:"Benefits",icon:"chart-line-up"},{key:"FLOW",name:"Workflow",icon:"time"},{key:"DELI",name:"Deliverables",icon:"time"},{key:"EX1",name:"Reference1",icon:"star"},{key:"EX2",name:"Reference2",icon:"profile-circle"}]};constructor(e,t,n,r,a){super(e,t,n,r),"sx8654"==subdom&&this.state.menu.unshift({key:"sx8654",name:"SX8654",icon:"wrench"}),register_button_handler("RENDER","",(e,t)=>{window.args.key?this.activate(window.args.key):this.activate(this.state.menu[0].key)})}render(e){super.render(e)}deconstructor(){super.deconstructor()}activate(e){if(e)for(var t of this.state.menu)if(e==t.key){this.current=e;for(var t of this.state.menu)e==t.key?$("[name='"+t.key+"']").show():$("[name='"+t.key+"']").hide();return void $(".drawer-backdrop").click()}}onEvent(e){super.onEvent(e),"click"===e.event&&this.activate(e.data.key)}}