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