import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{MuiThemeProvider as t}from"@material-ui/core";import{MuiPickersUtilsProvider as o}from"@material-ui/pickers";import i from"@date-io/moment";import n from"moment";import{darkTheme as m,lightTheme as c}from"../config/theme/index.js";import{THEMES as p}from"../constants/theme.js";import{jsx as f}from"react/jsx-runtime";var a=["theme"];function s(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var b=function(e){return function(s){var b=s.theme,l=void 0===b?p.DARK:b,O=r(s,a);return f(t,{theme:l===p.DARK?m:c,children:f(o,{libInstance:n,utils:i,children:f(e,u({},O))})})}};export{b as default};
