import{a as O,b as s}from"./chunk-6G2QQEYQ.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 n,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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}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(o){_(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}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 o=r.call(e,t||"default");if(c(o)!="object")return o;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,o,i=$(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],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 o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;r[o]=e[o]}return r}var B=E(function(e,t){var r=e.itemData,o=r.title,i=r.path,a=i===void 0?"":i,b=r.icon,m=r.info,p=r.disabled,y=r.caption,d=r.externalLink,w=d===void 0?!1:d,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?n(P,{position:"right"}):n(P,{}):null},v=W(O,g(g({ref:t,open:S,depth:h,active:u,disabled:p,hasTabLayout:l,disableRipple:l},L),{},{children:[b&&n(f,{component:"span",className:"icon",children:b}),o&&n(f,{component:"span",className:"label",children:o}),y&&n(R,{title:y,arrow:!0,children:n(K,{width:16,icon:"eva:info-outline",className:"caption"})}),m&&n(f,{component:"span",className:"info",children:m}),I()]}));return w?n(s,{href:a,target:"_blank",rel:"noopener",disabled:p,active:u,hasTabLayout:l,children:v}):n(s,{href:a,disabled:p,active:u,hasTabLayout:l,children:v})}),Q=B;export{Q as a};
//# sourceMappingURL=chunk-BSS2F6WH.mjs.map