import { jsx as e, jsxs as m, Fragment as u } from "react/jsx-runtime";
import { createSlotRecipeContext as f } from "@chakra-ui/react";
import { $ as h, a as g, b as S } from "./DateField-Q8JgjnI7.es.js";
import { useRecipe as $ } from "@chakra-ui/react/styled-system";
import { d as x } from "./index-N3Xxo-X9.es.js";
import { e as D } from "./extract-style-props-CMyV-es-.es.js";
const { withProvider: I, withContext: t } = /* @__PURE__ */ f({
  key: "nimbusDateInput"
}), b = /* @__PURE__ */ I("div", "root"), P = /* @__PURE__ */ t("div", "leadingElement"), v = /* @__PURE__ */ t("div", "trailingElement"), E = /* @__PURE__ */ t("div", "segmentGroup"), C = /* @__PURE__ */ t("div", "segment"), y = (o) => {
  const i = $({ recipe: x }), { leadingElement: r, trailingElement: n, ...s } = o, [a, c] = i.splitVariantProps({ ...s }), [p, l] = D(c);
  return /* @__PURE__ */ e(b, { ...a, ...p, asChild: !0, children: /* @__PURE__ */ e(h, { ...l, children: /* @__PURE__ */ m(u, { children: [
    r && /* @__PURE__ */ e(P, { children: r }),
    /* @__PURE__ */ e(E, { asChild: !0, children: /* @__PURE__ */ e(g, { children: (d) => /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(S, { segment: d }) }) }) }),
    n && /* @__PURE__ */ e(v, { children: n })
  ] }) }) });
};
y.displayName = "DateInput";
export {
  y as D
};
//# sourceMappingURL=date-input-BVYLw6C7.es.js.map
