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-Q8JgjnI7.es.js";
import { useRecipe as T } from "@chakra-ui/react/styled-system";
import { a as b } from "./index-N3Xxo-X9.es.js";
import { e as x } from "./extract-style-props-CMyV-es-.es.js";
const { withProvider: I, withContext: t } = /* @__PURE__ */ u({
  key: "nimbusTimeInput"
}), S = /* @__PURE__ */ I("div", "root"), $ = /* @__PURE__ */ t("div", "leadingElement"), P = /* @__PURE__ */ t("div", "trailingElement"), v = /* @__PURE__ */ t("div", "segmentGroup"), E = /* @__PURE__ */ t("div", "segment"), C = (n) => {
  const o = T({ recipe: b }), { leadingElement: i, trailingElement: r, ...s } = n, [p, m] = o.splitVariantProps({ ...s }), [c, l] = x(m);
  return /* @__PURE__ */ e(S, { asChild: !0, ...p, ...c, children: /* @__PURE__ */ d(f, { ...l, children: [
    i && /* @__PURE__ */ e($, { 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-DQLuVFMb.es.js.map
