import { di as e, dn as r, ac as o, dm as t, dp as s, dq as a } from "./index-f927b013.js";
import { d as i } from "./dayjs-2035e031.js";
import { l } from "./lodash-b5661970.js";
import { u as m } from "./styled-components-7cfa37e6.js";
import { lI as n, lz as p, mE as d } from "./ant-design-icons-6bfdc7d5.js";
import "./axios-04f95181.js";
import "./redux-devtools-8dd21e4f.js";
import "./alasql-f60045ee.js";
import "./antd-2abdded3.js";
import "react";
import "react-dom";
import "./fontawesome-3904a214.js";
import "./dnd-kit-8227a2db.js";
import "./moment-059406e8.js";
import "./numbro-47982265.js";
import "./papaparse-07642d76.js";
import "./uuid-bd83cae2.js";
import "./supabase-b2e314d0.js";
import "./fetch-648a91f6.js";
import "./react-draggable-ed505bfc.js";
import "./remark-gfm-18306abe.js";
import "./buffer-d3713d77.js";
import "./rehype-raw-6ebcba88.js";
import "./parse5-f837f753.js";
import "./rehype-sanitize-953d0761.js";
import "./simplebar-react-2133d981.js";
import "./react-best-gradient-color-picker-92c01739.js";
import "./ua-parser-js-c952c07b.js";
import "./clsx-469c2c43.js";
import "./loglevel-b4003767.js";
import "./file-saver-55285fc1.js";
import "./codemirror-8412b963.js";
import "./really-relaxed-json-056be70b.js";
import "./immer-c0428a8d.js";
import "./hotkeys-js-699906bc.js";
import "./cnchar-e1339167.js";
import "./react-documents-041601c7.js";
import "./react-sortable-hoc-4fbe0c32.js";
import "./sql-formatter-577b4ab0.js";
import "./rc-trigger-3f038851.js";
import "./react-json-view-5330ce92.js";
import "./qrcode-react-d377d762.js";
const c = (e2 = 1) => [...l.range(0, 24, e2).map((e3) => {
  const r2 = (e3 < 10 ? "0" : "") + e3;
  return { label: r2, value: r2 };
})], u = (e2 = 1) => [...l.range(0, 12, e2).map((e3) => {
  const r2 = (e3 < 10 ? "0" : "") + e3;
  return { label: r2, value: r2 };
})], j = (e2 = 1) => l.range(0, 60, e2).map((e3) => {
  const r2 = (e3 < 10 ? "0" : "") + e3;
  return { label: r2, value: r2 };
}), f = [{ label: "AM", value: "am" }, { label: "PM", value: "pm" }], b = async (e2) => {
  const o2 = (await import("./antd-2abdded3.js").then((e3) => e3.aH)).default, { disabledHours: l2, disabledMinutes: m2, disabledSeconds: n2 } = e2.disabledTime();
  o2.prompt({ getContainer: () => document.querySelector(`#${t}`) || document.body, mouseWheel: true, destroyOnClose: true, closeOnMaskClick: true, columns: (r2) => {
    const o3 = i(r2.join(":"), s);
    return [(e2.use12Hours ? u : c)(e2.hourStep).filter(({ label: e3, value: o4 }) => !l2().includes(Number(o4) + ("pm" === r2[3] ? 12 : 0))), j(e2.minuteStep).filter(({ label: e3, value: r3 }) => !m2(o3.hour()).includes(Number(r3))), j(e2.secondStep).filter(({ label: e3, value: r3 }) => !n2(o3.hour(), o3.minute()).includes(Number(r3))), ...e2.use12Hours ? [f] : []];
  }, defaultValue: e2.value ? e2.value.format(e2.use12Hours ? a : r).split(":") : void 0, onConfirm: (r2) => {
    const o3 = i(r2.join(":"), s);
    e2.onChange(o3);
  }, onClose: e2.onBlur }), e2.onFocus();
}, h = m.div`
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  background-color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #d7d9e0;

  ${(r2) => r2.$style && e(r2.$style)}
`, v = m.div`
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  display: flex;
  justify-content: center;
`, g = (e2) => n(h, { ref: e2.viewRef, $style: e2.$style, onClick: () => {
  b(e2);
}, children: [p(v, { children: e2.value ? e2.value.format(e2.format || r) : o("time.placeholder") }), e2.suffixIcon] }), y = (e2) => n(h, { ref: e2.viewRef, $style: e2.$style, children: [p(v, { onClick: () => b({ ...e2, value: e2.start, onChange: (r2) => e2.onChange(r2, e2.end) }), children: e2.start ? e2.start.format(e2.format || r) : o("time.startTime") }), p(d, {}), p(v, { onClick: () => b({ ...e2, value: e2.end, onChange: (r2) => e2.onChange(e2.start, r2) }), children: e2.end ? e2.end.format(e2.format || r) : o("time.endTime") }), e2.suffixIcon] });
export {
  g as TimeMobileUIView,
  y as TimeRangeMobileUIView
};
