import { u as e } from "./styled-components-7cfa37e6.js";
import { di as o, dj as t, dk as r, ac as s, dl as i, dm as a } from "./index-f927b013.js";
import { d as m } from "./dayjs-2035e031.js";
import { lI as n, lz as d, mE as l } from "./ant-design-icons-6bfdc7d5.js";
import "react";
import "./alasql-f60045ee.js";
import "./axios-04f95181.js";
import "./redux-devtools-8dd21e4f.js";
import "./antd-2abdded3.js";
import "react-dom";
import "./lodash-b5661970.js";
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 p = async (e2) => {
  const o2 = (await import("./antd-2abdded3.js").then((e3) => e3.aI)).default, n2 = m(e2.minDate, i), d2 = m(e2.maxDate, i), { disabledHours: l2, disabledMinutes: p2, disabledSeconds: c2 } = e2.disabledTime();
  o2.prompt({ getContainer: () => document.querySelector(`#${a}`) || document.body, mouseWheel: true, cancelText: s("cancel"), confirmText: s("ok"), destroyOnClose: true, closeOnMaskClick: true, min: n2.isValid() ? n2.toDate() : void 0, max: d2.isValid() ? d2.toDate() : void 0, precision: e2.showTime ? "second" : "day", defaultValue: e2.value ? e2.value.toDate() : void 0, filter: { hour: (e3) => !l2().includes(e3), minute: (e3, { date: o3 }) => !p2(o3.getHours()).includes(e3), second: (e3, { date: o3 }) => !c2(o3.getHours(), o3.getMinutes()).includes(e3) }, onConfirm: (o3) => {
    var _a;
    const s2 = m(o3), i2 = s2.format(e2.showTime ? t : r);
    (_a = e2.onChange) == null ? void 0 : _a.call(e2, s2, i2);
  }, onClose: e2.onBlur }), e2.onFocus();
}, c = e.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;
  ${(e2) => e2.$style && o(e2.$style)}
`, j = e.div`
  overflow: hidden;
  white-space: nowrap;
  flex-grow: 1;
  display: flex;
  justify-content: center;
`, f = (e2) => n(c, { ref: e2.viewRef, $style: e2.$style, onClick: () => p(e2), children: [d(j, { children: e2.value ? e2.value.format(e2.format || (e2.showTime ? t : r)) : s("date.placeholder") }), e2.suffixIcon] }), u = (e2) => n(c, { ref: e2.viewRef, $style: e2.$style, children: [d(j, { onClick: () => p({ ...e2, value: e2.start, onChange: (o2) => e2.onChange(o2, e2.end) }), children: e2.start ? e2.start.format(e2.format || (e2.showTime ? t : r)) : s("date.startDate") }), d(l, {}), d(j, { onClick: () => p({ ...e2, value: e2.end, onChange: (o2) => e2.onChange(e2.start, o2) }), children: e2.end ? e2.end.format(e2.format || (e2.showTime ? t : r)) : s("date.endDate") }), e2.suffixIcon] });
export {
  f as DateMobileUIView,
  u as DateRangeMobileUIView
};
