"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }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 _link = require('next/link'); var _link2 = _interopRequireDefault(_link);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 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 s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(n){C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C(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=k(e,"string");return l(t)=="symbol"?t:t+""}function k(e,t){if(l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $(e,t){if(e==null)return{};var r,n,i=L(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function L(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=_react.forwardRef.call(void 0, function(e,t){var r=e.itemData,n=r.title,i=r.path,c=i===void 0?"":i,p=r.icon,b=r.info,u=r.disabled,f=r.caption,d=r.externalLink,S=d===void 0?!1:d,y=e.open,h=e.depth,D=e.active,v=e.hasChild,N=$(e,I),O=h!==1,_=function(){return v?y?_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:y,depth:h,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"}),n&&_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:n}),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, _link2.default,{href:c,target:"_blank",rel:"noopener",style:s({color:"inherit",textDecoration:"none"},u&&{pointerEvents:"none"}),children:m}):_jsxruntime.jsx.call(void 0, _link2.default,{href:c,style:s({color:"inherit",textDecoration:"none"},u&&{pointerEvents:"none"}),children:m})}),H= exports.a =T;exports.a = H;
//# sourceMappingURL=chunk-IYFKMDEA.js.map