import { b9 as o, bg as i, V as l, c9 as r, d4 as c, bD as d, fu as s } from "./684d2f28.js";
import { getStyle as h } from "./f2000b8a.js";
import { useUIView as f } from "./6aa2c0e1.js";
import u, { useContext as g } from "react";
import "react-dom";
import "./d6402597.js";
const {
  RangePicker: x
} = s, I = o((e) => /* @__PURE__ */ l(x, {
  ...e
}))`
  width: 100%;
  ${(e) => e.$style && h(e.$style)}
`, m = u.lazy(() => import("./2437a283.js").then((e) => ({
  default: e.TimeRangeMobileUIView
}))), k = (e) => {
  const t = g(i);
  let n;
  return Array.isArray(e.placeholder) ? n = e.placeholder : n = [e.placeholder || "Start Date", e.placeholder || "End Date"], f(/* @__PURE__ */ l(m, {
    ...e
  }), /* @__PURE__ */ l(I, {
    ...r.omit(e, "onChange"),
    value: [e.start, e.end],
    order: !0,
    hideDisabledOptions: !0,
    onCalendarChange: (a) => {
      e.onChange(a == null ? void 0 : a[0], a == null ? void 0 : a[1]);
    },
    inputReadOnly: c(t == null ? void 0 : t.getAppSettings().maxWidth),
    suffixIcon: d(e.suffixIcon) && e.suffixIcon,
    placeholder: n
  }));
};
export {
  k as TimeRangeUIView
};
