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