import{a as O,b as s}from"./chunk-TAK3KCAM.mjs";import{forwardRef as E}from"react";import{ChevronIcon as P}from"@baseapp-frontend/design-system/components/web/icons";import{Iconify as K}from"@baseapp-frontend/design-system/components/web/images";import f from"@mui/material/Box";import R from"@mui/material/Tooltip";import{jsx as o,jsxs as W}from"react/jsx-runtime";function c(e){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(e)}var T=["itemData","open","depth","active","hasChild","hasTabLayout"];function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(n){_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _(e,t,r){return(t=N(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(e){var t=C(e,"string");return c(t)=="symbol"?t:t+""}function C(e,t){if(c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k(e,t){if(e==null)return{};var r,n,i=$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function $(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var B=E(function(e,t){var r=e.itemData,n=r.title,i=r.path,a=i===void 0?"":i,b=r.icon,m=r.info,p=r.disabled,d=r.caption,y=r.externalLink,w=y===void 0?!1:y,S=e.open,h=e.depth,u=e.active,x=e.hasChild,l=e.hasTabLayout,L=k(e,T),D=h!==1,I=function(){return x?D?o(P,{position:"right"}):o(P,{}):null},v=W(O,g(g({ref:t,open:S,depth:h,active:u,disabled:p,hasTabLayout:l,disableRipple:l},L),{},{children:[b&&o(f,{component:"span",className:"icon",children:b}),n&&o(f,{component:"span",className:"label",children:n}),d&&o(R,{title:d,arrow:!0,children:o(K,{width:16,icon:"eva:info-outline",className:"caption"})}),m&&o(f,{component:"span",className:"info",children:m}),I()]}));return w?o(s,{href:a,target:"_blank",rel:"noopener",color:"inherit",underline:"none",disabled:p,active:u,hasTabLayout:l,children:v}):o(s,{href:a,color:"inherit",underline:"none",disabled:p,active:u,hasTabLayout:l,children:v})}),Q=B;export{Q as a};
//# sourceMappingURL=chunk-Q6HWMZVY.mjs.map