"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBMBVPTEJjs = require('./chunk-BMBVPTEJ.js');var _react = require('react');var _icons = require('@baseapp-frontend/design-system/components/web/icons');var _material = require('@mui/material');var _jsxruntime = require('react/jsx-runtime');function l(e){"@babel/helpers - typeof";return l=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},l(e)}var I=["itemData","open","depth","active","hasChild"];function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(r){C(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C(e,t,n){return(t=E(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){var t=k(e,"string");return l(t)=="symbol"?t:t+""}function k(e,t){if(l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $(e,t){if(e==null)return{};var n,r,i=L(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(r=0;r<c.length;r++)n=c[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function L(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var T=_react.forwardRef.call(void 0, function(e,t){var n=e.itemData,r=n.title,i=n.path,c=i===void 0?"":i,p=n.icon,b=n.info,u=n.disabled,f=n.caption,d=n.externalLink,S=d===void 0?!1:d,h=e.open,y=e.depth,D=e.active,v=e.hasChild,N=$(e,I),O=y!==1,_=function(){return v?h?_jsxruntime.jsx.call(void 0, _icons.ChevronIcon,{}):_jsxruntime.jsx.call(void 0, _icons.ChevronIcon,{position:"right"}):null},m=_jsxruntime.jsxs.call(void 0, _chunkBMBVPTEJjs.a,s(s({ref:t,disableGutters:!0,open:h,depth:y,active:D,disabled:u},N),{},{children:[!O&&p&&_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"icon",children:p}),O&&p?_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"icon",children:p}):_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"sub-icon"}),r&&_jsxruntime.jsxs.call(void 0, _material.Box,{component:"span",sx:{flex:"1 1 auto",minWidth:0},children:[_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"label",children:r}),f&&_jsxruntime.jsx.call(void 0, _material.Tooltip,{title:f,placement:"top-start",children:_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"caption",children:f})})]}),b&&_jsxruntime.jsx.call(void 0, _material.Box,{component:"span",className:"info",children:b}),_()]}));return v?m:S?_jsxruntime.jsx.call(void 0, _material.Link,{href:c,target:"_blank",rel:"noopener",color:"inherit",underline:"none",sx:s({},u&&{pointerEvents:"none"}),children:m}):_jsxruntime.jsx.call(void 0, _material.Link,{href:c,color:"inherit",underline:"none",sx:s({},u&&{pointerEvents:"none"}),children:m})}),F= exports.a =T;exports.a = F;
//# sourceMappingURL=chunk-7KPVTDCC.js.map