"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkWBKOZ5U7js = require('./chunk-WBKOZ5U7.js');var _react = require('react');var _Collapse = require('@mui/material/Collapse'); var _Collapse2 = _interopRequireDefault(_Collapse);var _ListSubheader = require('@mui/material/ListSubheader'); var _ListSubheader2 = _interopRequireDefault(_ListSubheader);var _Stack = require('@mui/material/Stack'); var _Stack2 = _interopRequireDefault(_Stack);var _jsxruntime = require('react/jsx-runtime');function c(t){"@babel/helpers - typeof";return c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},c(t)}function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function h(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?v(Object(e),!0).forEach(function(n){j(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function j(t,r,e){return(r=O(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function O(t){var r=S(t,"string");return c(r)=="symbol"?r:r+""}function S(t,r){if(c(t)!="object"||!t)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var n=e.call(t,r||"default");if(c(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function P(t,r){return A(t)||x(t,r)||w(t,r)||_()}function _(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(t,r){if(t){if(typeof t=="string")return g(t,r);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?g(t,r):void 0}}function g(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function x(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n,i,o,s,a=[],u=!0,p=!1;try{if(o=(e=e.call(t)).next,r===0){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(a.push(n.value),a.length!==r);u=!0);}catch(b){p=!0,i=b}finally{try{if(!u&&e.return!=null&&(s=e.return(),Object(s)!==s))return}finally{if(p)throw i}}return a}}function A(t){if(Array.isArray(t))return t}var G=function(r){var e,n=r.subheader,i=r.items,o=r.slotProps,s=_react.useState.call(void 0, !0),a=P(s,2),u=a[0],p=a[1],b=_react.useCallback.call(void 0, function(){p(function(l){return!l})},[]),m=i.map(function(l){return _jsxruntime.jsx.call(void 0, _chunkWBKOZ5U7js.a,{data:l,depth:1,slotProps:o},l.title)});return _jsxruntime.jsx.call(void 0, _Stack2.default,{sx:{px:2},children:n?_jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _ListSubheader2.default,{disableGutters:!0,disableSticky:!0,onClick:b,sx:h({fontSize:11,cursor:"pointer",typography:"overline",display:"inline-flex",color:"text.disabled",mb:"".concat((e=_optionalChain([o, 'optionalAccess', _2 => _2.gap]))!==null&&e!==void 0?e:4,"px"),p:function(f){return f.spacing(2,1,1,1.5)},transition:function(f){return f.transitions.create(["color"],{duration:f.transitions.duration.shortest})},"&:hover":{color:"text.primary"}},_optionalChain([o, 'optionalAccess', _3 => _3.subheader])),children:n}),_jsxruntime.jsx.call(void 0, _Collapse2.default,{in:u,children:m})]}):m})},M= exports.a =G;exports.a = M;
//# sourceMappingURL=chunk-QQWOSX4L.js.map