import{a as h}from"./chunk-ZN5DDS65.mjs";import{forwardRef as C}from"react";import{ChevronIcon as L}from"@baseapp-frontend/design-system/components/web/icons";import{Iconify as K}from"@baseapp-frontend/design-system/components/web/images";import s from"@mui/material/Box";import O from"@mui/material/Link";import R from"@mui/material/Tooltip";import{jsx as o,jsxs as j}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 _=["itemData","open","depth","active","hasChild"];function v(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 l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(n){N(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N(e,t,r){return(t=E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){var t=I(e,"string");return c(t)=="symbol"?t:t+""}function I(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 T=C(function(e,t){var r=e.itemData,n=r.title,i=r.path,a=i===void 0?"":i,f=r.icon,u=r.info,p=r.disabled,m=r.caption,b=r.externalLink,g=b===void 0?!1:b,P=e.open,d=e.depth,w=e.active,x=e.hasChild,S=k(e,_),D=d!==1,y=j(h,l(l({disableGutters:!0,ref:t,open:P,depth:d,active:w,disabled:p},S),{},{children:[j("div",{className:"relative",children:[f&&o(s,{component:"span",className:"icon",children:f}),x&&o(L,{position:"right",sx:{position:"absolute"}})]}),n&&o(s,{component:"span",className:"label",children:n}),m&&o(R,{title:m,arrow:!0,placement:"right",children:o(K,{width:16,icon:"eva:info-outline",className:"caption"})}),u&&D&&o(s,{component:"span",className:"info",children:u})]}));return g?o(O,{href:a,target:"_blank",rel:"noopener noreferrer",color:"inherit",underline:"none",sx:l({width:1},p&&{pointerEvents:"none"}),children:y}):o(O,{href:a,color:"inherit",underline:"none",sx:l({width:1},p&&{pointerEvents:"none"}),children:y})}),M=T;export{M as a};
//# sourceMappingURL=chunk-4MRXWGA7.mjs.map