import{b as l}from"./chunk-TBBAFJWA.mjs";import{ChevronIcon as v}from"@baseapp-frontend/design-system/components/web/icons";import{bgBlur as O}from"@baseapp-frontend/design-system/styles/web";import d from"@mui/material/IconButton";import{useTheme as j}from"@mui/material/styles";import{jsx as p}from"react/jsx-runtime";function u(t){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(t)}var s=["settings","setSettings","sx"];function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(o){f(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function f(t,e,r){return(e=b(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=m(t,"string");return u(e)=="symbol"?e:e+""}function m(t,e){if(u(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(u(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function y(t,e){if(t==null)return{};var r,o,n=g(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function g(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function h(t){var e=t.settings,r=t.setSettings,o=t.sx,n=y(t,s),i=j();return p(d,c(c({size:"small",onClick:function(){return r({themeLayout:e.themeLayout==="vertical"?"mini":"vertical"})},sx:c(c({p:.5,top:32,position:"fixed",left:l.VERTICAL-12,zIndex:i.zIndex.appBar+1,border:"solid 1px ".concat(i.palette.divider)},O({opacity:.48,color:i.palette.background.default})),{},{"&:hover":{bgcolor:"background.default"}},o)},n),{},{children:p(v,{isOpen:e.themeLayout==="vertical",position:"right"})}))}export{h as a};
//# sourceMappingURL=chunk-XMHXDIAL.mjs.map