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-DCWy1Ysp.es.js";
import { useRecipe as $ } from "@chakra-ui/react/styled-system";
import { d as x } from "./index-C2qW4ynb.es.js";
import { e as I } from "./extract-style-props-BdibuNZ7.es.js";
const { withProvider: D, withContext: t } = /* @__PURE__ */ f({
  key: "dateInput"
}), b = /* @__PURE__ */ D("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, ...a } = o, [c, p] = i.splitVariantProps({ ...a }), [s, l] = I(p);
  return /* @__PURE__ */ e(b, { ...c, ...s, 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-Cd9q4qBj.es.js.map
