import x from "./index-extends.js";
import * as h from "react";
import { WrapperVariantContext as k } from "./index-WrapperVariantContext.js";
import { PickersPopper as D } from "./index-PickersPopper.js";
import { jsxs as T, jsx as e } from "react/jsx-runtime";
import y from "./index-useForkRef.js";
function W(r) {
  const {
    children: p,
    DateInputProps: o,
    KeyboardDateInputComponent: t,
    onClear: s,
    onDismiss: i,
    onCancel: a,
    onAccept: c,
    onSetToday: m,
    open: l,
    PopperProps: P,
    PaperProps: f,
    TransitionComponent: u,
    components: d,
    componentsProps: C
  } = r, n = h.useRef(null), R = y(o.inputRef, n);
  return /* @__PURE__ */ T(k.Provider, {
    value: "desktop",
    children: [/* @__PURE__ */ e(t, x({}, o, {
      inputRef: R
    })), /* @__PURE__ */ e(D, {
      role: "dialog",
      open: l,
      anchorEl: n.current,
      TransitionComponent: u,
      PopperProps: P,
      PaperProps: f,
      onClose: i,
      onCancel: a,
      onClear: s,
      onAccept: c,
      onSetToday: m,
      components: d,
      componentsProps: C,
      children: p
    })]
  });
}
export {
  W as DesktopWrapper
};
