import{o as e}from"./chunk-jRWAZmH_.js";import{br as t,gr as n,hr as r,r as i}from"./axios-v6FV69Ne.js";import{i as a}from"./ctiAxios-BIVP6fGU.js";import{t as o}from"./queryOptions-Cg9orY1Y.js";import{t as s}from"./slugify-CltC00V7.js";import{t as c}from"./menu.keys-DakaQcND.js";var l=e(s());function u(e){let i=r(r(e,`HTTP_SERVICE`)[0],`MODULE`),a={};return i.forEach(e=>{let i=n(e);function o(e){let t={};return r(e,`MENUINFO`).forEach(e=>{let r=n(e);t[r.code]=r}),t}let s=o(e);t(s)||(i.informations=s);function c(e){let i={};return r(e,`MENUITEM`).forEach(e=>{let a=n(e);if(a?.jisavailable!==`false`){t(r(e,`MENUITEM`))||(a.children=c(e));let n=(0,l.default)(a.label,{lower:!0}).replace(/_/g,`-`);if(i[n]){let e=2;for(;i[`${n}-${e}`];)e++;n=`${n}-${e}`,a._slugKey=n}i[n]=a}}),i}i.children=c(e),a[(0,l.default)(i.name,{lower:!0})]=i}),a}var d=async()=>u(await a(`modules/base/php/getNavigation.php`)),f=()=>o({queryKey:c.navigation(),queryFn:d,meta:{persist:!0}}),p=()=>i(f());export{p as t};