import { jsx as P } from "@emotion/react/jsx-runtime";
import { DatePickerStyled as p } from "./slots/DatePickerSlots.js";
import { useDatePicker as S } from "./hooks/useDatePicker/useDatePicker.js";
import { DATE_PICKER_CLASSES as u } from "./constants.js";
import { clsx as k } from "clsx";
const h = (o) => {
  const {
    value: t,
    onChange: e,
    disabled: r,
    className: a,
    readOnly: s,
    ...m
  } = o, {
    ownerState: l,
    defaultSlots: c,
    defaultSlotProps: i,
    dateFormat: n
  } = S(o);
  return /* @__PURE__ */ P(
    p,
    {
      ...m,
      className: k(a, u.root),
      value: t,
      onChange: (d, f) => e?.(d, f),
      disabled: r,
      readOnly: s,
      ownerState: l,
      format: n,
      slots: c,
      slotProps: i
    }
  );
};
export {
  h as DatePicker
};
