"use strict";
const React = require("react");
const picker = require("./picker.js");
const timePicker = require("./time-picker.js");
const rangePicker = require("./range-picker.js");
const emotionReactJsxRuntime_browser_esm = require("../../../../../../@emotion_react@11.10.4_3toe27fv7etiytxb5kxc7fxaw4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js");
const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
const React__default = /* @__PURE__ */ _interopDefaultLegacy(React);
var __extends = globalThis && globalThis.__extends || function() {
  var extendStatics = function(d, b) {
    extendStatics = Object.setPrototypeOf || {
      __proto__: []
    } instanceof Array && function(d2, b2) {
      d2.__proto__ = b2;
    } || function(d2, b2) {
      for (var p in b2)
        if (Object.prototype.hasOwnProperty.call(b2, p))
          d2[p] = b2[p];
    };
    return extendStatics(d, b);
  };
  return function(d, b) {
    if (typeof b !== "function" && b !== null)
      throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
    extendStatics(d, b);
    function __() {
      this.constructor = d;
    }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  };
}();
var __assign = globalThis && globalThis.__assign || function() {
  __assign = Object.assign || function(t) {
    for (var s, i = 1, n = arguments.length; i < n; i++) {
      s = arguments[i];
      for (var p in s)
        if (Object.prototype.hasOwnProperty.call(s, p))
          t[p] = s[p];
    }
    return t;
  };
  return __assign.apply(this, arguments);
};
function wrapper(picker$1, displayName, type) {
  var _a;
  return _a = function(_super) {
    __extends(PickerWrapper, _super);
    function PickerWrapper() {
      return _super !== null && _super.apply(this, arguments) || this;
    }
    PickerWrapper.prototype.render = function() {
      return /* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(picker, {
        ...__assign({}, this.props, {
          picker: picker$1,
          isRangePicker: type === "range"
        })
      });
    };
    return PickerWrapper;
  }(React__default.default.Component), _a.displayName = displayName, _a;
}
var TimePicker = wrapper(/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(timePicker, {}), "TimePicker");
var RangePicker = wrapper(/* @__PURE__ */ emotionReactJsxRuntime_browser_esm.jsx(rangePicker, {}), "TimePickerRangePicker", "range");
Object.assign(TimePicker, {
  RangePicker
});
const TimePicker$1 = TimePicker;
module.exports = TimePicker$1;
//# sourceMappingURL=index.js.map
