"use strict";(globalThis.webpackChunkhelpgent=globalThis.webpackChunkhelpgent||[]).push([[783],{2783:(e,n,t)=>{t.r(n),t.d(n,{default:()=>o});var a=t(51609),s=t(88282),l=t(44428);function c({menu:e}){const{settingsState:n}=(0,s.s)(),t=n.rootRoutePath,c=(0,l.Ui)(window.location.href),i=(0,l.vo)(c,t),m=(0,l.Ui)(`${i}/${e.path}`),r=c.replace(i,"").replace(/\?.+$/,""),o=m.replace(i,"");return(0,a.createElement)("div",{className:"helpgent-settings-panel-nav-menu-item"},(0,a.createElement)("a",{href:`${m}`,className:(()=>{const e="helpgent-settings-panel-nav-menu-link";return r===o?`${e} --is-active`:e})()},(0,a.createElement)("span",{className:(e=>{const n="helpgent-settings-panel-nav-menu-icon helpgent-icon";return e.iconClass?`${n} ${e.iconClass}`:n})(e)},e.icon),(0,a.createElement)("span",{className:"helpgent-settings-panel-nav-menu-label"},e.label)))}var i=t(65604);const m="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjQuNjA3IiB2aWV3Qm94PSIwIDAgOCA0LjYwNyI+CiAgPHBhdGggaWQ9ImNhcmV0LWRvd24iIGQ9Ik02LjAyMSw5aDYuNzg2YS42MDcuNjA3LDAsMCwxLC40MjksMS4wMzdMOS44NDQsMTMuNDNhLjYwNy42MDcsMCwwLDEtLjg1OSwwTDUuNTkyLDEwLjAzN0EuNjA3LjYwNywwLDAsMSw2LjAyMSw5WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuNDE0IC05KSIgZmlsbD0iIzg5ODk4OSIvPgo8L3N2Zz4K";function r({menu:e}){const{settingsState:n}=(0,s.s)(),t=n.rootRoutePath,r=(0,l.Ui)(window.location.href),o=(0,l.vo)(r,t),u=(0,l.Ui)(`${o}/${e.grandChildPath?e.grandChildPath:e.path}`),p=r.replace(o,"").replace(/\?.+$/,""),g=u.replace(o,"");return(0,a.createElement)("div",{className:"helpgent-settings-panel-nav-menu-item --has-dropdown"},(0,a.createElement)("a",{href:u,className:(()=>{const n="helpgent-settings-panel-nav-menu-link";if(p===g)return`${n} --is-active`;for(const t of e.submenu)if(`/${t.path}`===p)return`${n} --is-active`;return n})()},(0,a.createElement)("span",{className:(e=>{const n="helpgent-settings-panel-nav-menu-icon helpgent-icon";return e.iconClass?`${n} ${e.iconClass}`:n})(e)},e.icon),e.label,(0,a.createElement)("span",{className:"helpgent-settings-panel-nav-menu-action"},(0,a.createElement)(i.A,{src:m}))),(0,a.createElement)("div",{className:"helpgent-settings-panel-nav-menu-dropdown"},e.submenu.map((e,n)=>(0,a.createElement)(c,{menu:e,key:n}))))}function o(){const{settingsState:e}=(0,s.s)();return(0,a.createElement)("div",{className:"helpgent-settings-panel-nav"},(0,a.createElement)("div",{className:"helpgent-settings-panel-nav-menu"},e.menus.map((e,n)=>"menu"===e.type?(0,a.createElement)(c,{menu:e,key:n}):(0,a.createElement)(r,{menu:e,key:n}))))}}}]);