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 R from"@mui/material/Tooltip";import O from"next/link";import{jsx as n,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 o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}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(o){N(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}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 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 T=C(function(e,t){var r=e.itemData,o=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,y=e.depth,w=e.active,x=e.hasChild,S=k(e,_),D=y!==1,d=j(h,l(l({disableGutters:!0,ref:t,open:P,depth:y,active:w,disabled:p},S),{},{children:[j("div",{className:"relative",children:[f&&n(s,{component:"span",className:"icon",children:f}),x&&n(L,{position:"right",sx:{position:"absolute"}})]}),o&&n(s,{component:"span",className:"label",children:o}),m&&n(R,{title:m,arrow:!0,placement:"right",children:n(K,{width:16,icon:"eva:info-outline",className:"caption"})}),u&&D&&n(s,{component:"span",className:"info",children:u})]}));return g?n(O,{href:a,target:"_blank",rel:"noopener noreferrer",style:l({color:"inherit",textDecoration:"none"},p&&{pointerEvents:"none"}),children:d}):n(O,{href:a,style:l({color:"inherit",textDecoration:"none"},p&&{pointerEvents:"none"}),children:d})}),M=T;export{M as a};
//# sourceMappingURL=chunk-7QMI47JA.mjs.map