import { j as e } from "../../node_modules/react/jsx-runtime.mjs";
import { isMobile as a } from "../../node_modules/react-device-detect/dist/lib.mjs";
import "./index.less.mjs";
import d from "../../node_modules/antd/es/date-picker/index.mjs";
const { RangePicker: f } = d, j = ({ type: i = "range", picker: p = "date", onChange: c = () => {
}, showTime: s = !1, format: t = "YYYY-MM-DD", defaultValue: n, disabledDate: o, disabledDateTime: r, disabled: l = !1 }) => {
  const m = (g, u) => {
    c(u);
  };
  return e.jsxs(e.Fragment, { children: [i == "date" && e.jsx(d, { picker: p, onChange: m, showTime: s, format: t, defaultValue: n, disabledDate: o, disabledTime: r, disabled: l, inputReadOnly: a }), i == "range" && e.jsx(f, { onChange: m, showTime: s, format: t, defaultValue: n, disabledDate: o, disabledTime: r, disabled: l, inputReadOnly: a, ...a ? {
    popupClassName: "mobileDatePickerPanel"
  } : {} })] });
};
export {
  j as default
};
