@owp/core 2.5.53 → 2.5.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/components/OwpPicker/OwpTimePicker.js +223 -208
  2. package/dist/components/OwpPicker/OwpTimePicker.js.map +1 -1
  3. package/dist/components/OwpPicker/internal/DatePickerInput.js +56 -55
  4. package/dist/components/OwpPicker/internal/DatePickerInput.js.map +1 -1
  5. package/dist/components/OwpTreeGrid/OwpTreeGrid.js +283 -273
  6. package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
  7. package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js +68 -38
  8. package/dist/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.js.map +1 -1
  9. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js +189 -187
  10. package/dist/components/OwpTreeGrid/internal/hooks/useOwpTreeGridDatePickerEditor.js.map +1 -1
  11. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +1195 -1061
  12. package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
  13. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js +207 -182
  14. package/dist/components/OwpTreeGrid/internal/treeGridTheme.js.map +1 -1
  15. package/dist/configs/defaultConfig.js +82 -81
  16. package/dist/configs/defaultConfig.js.map +1 -1
  17. package/dist/constants/gridTheme.js +37 -36
  18. package/dist/constants/gridTheme.js.map +1 -1
  19. package/dist/constants/input.js +6 -0
  20. package/dist/constants/input.js.map +1 -0
  21. package/dist/constants/treeGrid.js +69 -49
  22. package/dist/constants/treeGrid.js.map +1 -1
  23. package/dist/constants.js +57 -34
  24. package/dist/constants.js.map +1 -1
  25. package/dist/dayjs.js +17 -15
  26. package/dist/dayjs.js.map +1 -1
  27. package/dist/features/themePreview/components/ThemePreviewCanvas.js +247 -251
  28. package/dist/features/themePreview/components/ThemePreviewCanvas.js.map +1 -1
  29. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js +385 -356
  30. package/dist/features/themePreview/components/ThemePreviewCanvasSections.js.map +1 -1
  31. package/dist/features/themePreview/configs/grid.js +26 -24
  32. package/dist/features/themePreview/configs/grid.js.map +1 -1
  33. package/dist/features/themePreview/utils/themePreviewDefinitions.js +4 -0
  34. package/dist/features/themePreview/utils/themePreviewDefinitions.js.map +1 -1
  35. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
  36. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
  37. package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
  38. package/dist/owp-app.css +1 -1
  39. package/dist/types/components/OwpTreeGrid/internal/OwpTreeGridScrollLoadingOverlay.d.ts +2 -1
  40. package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +5 -1
  41. package/dist/types/components/OwpTreeGrid/internal/treeGridTheme.d.ts +1 -1
  42. package/dist/types/constants/gridTheme.d.ts +2 -0
  43. package/dist/types/constants/index.d.ts +1 -0
  44. package/dist/types/constants/input.d.ts +4 -0
  45. package/dist/types/constants/treeGrid.d.ts +40 -0
  46. package/dist/types/dayjs.d.ts +0 -2
  47. package/dist/types/features/themePreview/components/ThemePreviewCanvasSections.d.ts +0 -2
  48. package/dist/types/features/themePreview/configs/grid.d.ts +1 -0
  49. package/dist/types/features/themePreview/configs/settings.d.ts +1 -0
  50. package/dist/types/types/OwpGridThemeTypes.d.ts +2 -0
  51. package/package.json +1 -1
  52. package/dist/_virtual/en.js +0 -3
  53. package/dist/_virtual/en.js.map +0 -1
  54. package/dist/_virtual/en2.js +0 -5
  55. package/dist/_virtual/en2.js.map +0 -1
  56. package/dist/_virtual/ko.js +0 -3
  57. package/dist/_virtual/ko.js.map +0 -1
  58. package/dist/_virtual/ko2.js +0 -5
  59. package/dist/_virtual/ko2.js.map +0 -1
  60. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/en.js +0 -21
  61. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/en.js.map +0 -1
  62. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/ko.js +0 -28
  63. package/dist/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/locale/ko.js.map +0 -1
@@ -1,27 +1,31 @@
1
- var Fn = Object.defineProperty;
2
- var a = (t, m) => Fn(t, "name", { value: m, configurable: !0 });
3
- import { jsx as w, jsxs as cn } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
- import { useOwpTranslation as Pn } from "../../hooks/useOwpTranslation.js";
5
- import Rn from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Clear.js";
6
- import { Popper as ne, Paper as ee, InputAdornment as Sn, IconButton as On } from "@mui/material";
7
- import { TimePicker as te, MultiSectionDigitalClock as re, LocalizationProvider as ie } from "@mui/x-date-pickers";
8
- import { AdapterDayjs as ae } from "@mui/x-date-pickers/AdapterDayjs";
9
- import { clsx as ce } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
1
+ var Pn = Object.defineProperty;
2
+ var a = (t, f) => Pn(t, "name", { value: f, configurable: !0 });
3
+ import { jsx as p, jsxs as un } from "../../node_modules/.pnpm/@emotion_react@11.14.0_@types_react@19.2.14_react@19.2.4/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js";
4
+ import { useOwpTranslation as ne } from "../../hooks/useOwpTranslation.js";
5
+ import { OWP_INPUT_HORIZONTAL_PADDING_PX as ee } from "../../constants/input.js";
6
+ import Sn from "../../node_modules/.pnpm/@mui_icons-material@7.3.9_@mui_material@7.3.9_@emotion_react@11.14.0_@types_react@19.2._dc2be6bc014bebdac88a574e3e02c144/node_modules/@mui/icons-material/esm/Clear.js";
7
+ import { Popper as te, Paper as re, InputAdornment as On, IconButton as _n } from "@mui/material";
8
+ import { TimePicker as ie, MultiSectionDigitalClock as ae, LocalizationProvider as ce } from "@mui/x-date-pickers";
9
+ import { AdapterDayjs as oe } from "@mui/x-date-pickers/AdapterDayjs";
10
+ import { clsx as ue } from "../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js";
10
11
  import { owpDayjs as K } from "../../dayjs.js";
11
- import { useMemo as J, useState as Q, useRef as O, useCallback as u, useEffect as on } from "react";
12
- import { TIME_PICKER_EDITOR_SECTION_WIDTH as oe, VALUE_TIME_SECOND_FORMATTER as x, VALUE_TIME_FORMATTER as F, PICKER_TRANSITION_DURATION as _n, PICKER_EXIT_TRANSFORM_DELAY as ue, PICKER_TRANSFORM_TRANSITION_DURATION as se, PICKER_INVALID_INPUT_MESSAGE_KEY as de, TIME_PICKER_SELECTED_ITEM_SX as le } from "./constants/index.js";
13
- import { getOwpPickerEditorPaperSx as fe, getOwpPickerEditorInputSx as me, getOwpTimePickerClockSx as Ie } from "./styles/pickerEditorStyles.js";
14
- import { useOwpPickerPopperTransition as Te } from "./hooks/useOwpPickerPopperTransition.js";
15
- import { getAdjacentFocusableElement as we, getPickerInputMask as ke } from "./utils/index.js";
16
- import { OwpTextMaskField as ye } from "../OwpTextField/OwpTextMaskField.js";
17
- const Z = "––", pe = [
12
+ import { useMemo as X, useState as x, useRef as O, useCallback as u, useEffect as sn } from "react";
13
+ import { TIME_PICKER_EDITOR_SECTION_WIDTH as se, VALUE_TIME_SECOND_FORMATTER as F, VALUE_TIME_FORMATTER as P, PICKER_TRANSITION_DURATION as Mn, PICKER_EXIT_TRANSFORM_DELAY as de, PICKER_TRANSFORM_TRANSITION_DURATION as le, PICKER_INVALID_INPUT_MESSAGE_KEY as me, TIME_PICKER_SELECTED_ITEM_SX as fe } from "./constants/index.js";
14
+ import { getOwpPickerEditorPaperSx as Ie, getOwpPickerEditorInputSx as Te, getOwpTimePickerClockSx as pe } from "./styles/pickerEditorStyles.js";
15
+ import { useOwpPickerPopperTransition as we } from "./hooks/useOwpPickerPopperTransition.js";
16
+ import { getAdjacentFocusableElement as ke, getPickerInputMask as ye } from "./utils/index.js";
17
+ import { OwpTextMaskField as De } from "../OwpTextField/OwpTextMaskField.js";
18
+ const Ee = [
18
19
  '[role="spinbutton"]:not([tabindex="-1"]):not([aria-disabled="true"])',
19
20
  '[role="group"] [tabindex="0"]:not([aria-disabled="true"])',
20
21
  '[contenteditable="true"]:not([tabindex="-1"]):not([aria-disabled="true"])'
21
- ].join(","), Ee = {
22
+ ].join(","), be = {
22
23
  "& .MuiInputBase-root": {
23
24
  alignItems: "center"
24
25
  },
26
+ "& .MuiPickersInputBase-sectionsContainer, & .MuiPickersSectionList-root": {
27
+ paddingLeft: ee
28
+ },
25
29
  "& .MuiInputAdornment-positionEnd": {
26
30
  marginBottom: 0,
27
31
  marginLeft: 0,
@@ -44,87 +48,98 @@ const Z = "––", pe = [
44
48
  visibility: "visible"
45
49
  }
46
50
  }
47
- }, De = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey ? !1 : t.key.length === 1 || t.key === "Backspace" || t.key === "Delete", "isValueEditingKey"), be = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey || t.key === "Escape" || t.key === "Enter" || t.key === "Tab" ? !1 : t.key.length === 1 || t.key.startsWith("Arrow"), "isTimePickerOpenKey"), un = /* @__PURE__ */ a((t, m) => {
48
- const E = t.trim(), s = m ? "(\\d{2}):(\\d{2}):(\\d{2})" : "(\\d{2}):(\\d{2})", y = E.match(new RegExp(`^${s}$`));
49
- if (!y)
51
+ }, Ae = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey ? !1 : t.key.length === 1 || t.key === "Backspace" || t.key === "Delete", "isValueEditingKey"), Re = /* @__PURE__ */ a((t) => t.ctrlKey || t.altKey || t.metaKey || t.key === "Escape" || t.key === "Enter" || t.key === "Tab" ? !1 : t.key.length === 1 || t.key.startsWith("Arrow"), "isTimePickerOpenKey"), dn = /* @__PURE__ */ a((t, f) => {
52
+ const E = t.trim(), s = f ? "(\\d{2}):(\\d{2}):(\\d{2})" : "(\\d{2}):(\\d{2})", k = E.match(new RegExp(`^${s}$`));
53
+ if (!k)
50
54
  return null;
51
- const D = Number(y[1]), _ = Number(y[2]), b = m ? Number(y[3]) : 0;
52
- if (_ > 59 || b > 59 || D > 24 || D === 24 && (_ > 0 || b > 0))
55
+ const b = Number(k[1]), _ = Number(k[2]), A = f ? Number(k[3]) : 0;
56
+ if (_ > 59 || A > 59 || b > 24 || b === 24 && (_ > 0 || A > 0))
53
57
  return null;
54
- const z = [D, _, ...m ? [b] : []].map((c) => String(c).padStart(2, "0")).join(":");
58
+ const z = [b, _, ...f ? [A] : []].map((c) => String(c).padStart(2, "0")).join(":");
55
59
  return {
56
- dateValue: D === 24 ? K("00:00:00", x, !0).add(1, "day") : K(z, m ? x : F, !0),
60
+ dateValue: b === 24 ? K("00:00:00", F, !0).add(1, "day") : K(z, f ? F : P, !0),
57
61
  valueText: z
58
62
  };
59
- }, "parseTimePickerInput"), sn = /* @__PURE__ */ a((t, m) => t.format(m ? x : F), "formatTimePickerDisplayInput"), Ae = /* @__PURE__ */ a((t) => (t == null ? void 0 : t.querySelector(pe)) ?? null, "getTimePickerFocusTarget"), Re = /* @__PURE__ */ a((t, m) => {
60
- const E = m ? t.indexOf(" ") : -1, s = E >= 0 ? t.slice(0, E) : "", y = E >= 0 ? t.slice(E + 1) : t, [D, _, b] = y.split(":");
63
+ }, "parseTimePickerInput"), ln = /* @__PURE__ */ a((t, f) => t.format(f ? F : P), "formatTimePickerDisplayInput"), Se = /* @__PURE__ */ a((t) => (t == null ? void 0 : t.querySelector(Ee)) ?? null, "getTimePickerFocusTarget"), hn = /* @__PURE__ */ a((t, f) => {
64
+ const E = f ? t.indexOf(" ") : -1, s = E >= 0 ? t.slice(0, E) : "", k = E >= 0 ? t.slice(E + 1) : t, [b, _, A] = k.split(":");
61
65
  return {
62
- hours: D || Z,
63
- minutes: _ || Z,
64
- seconds: b || Z,
65
- meridiem: s || Z
66
+ hours: b ?? "",
67
+ minutes: _ ?? "",
68
+ seconds: A ?? "",
69
+ meridiem: s
66
70
  };
67
- }, "getTimePickerPlaceholderSections"), Se = /* @__PURE__ */ a((t, m) => {
71
+ }, "parseTimePickerPlaceholderSections"), Oe = /* @__PURE__ */ a((t, f) => {
68
72
  if (t) {
69
73
  if (typeof t == "function") {
70
- t(m);
74
+ t(f);
71
75
  return;
72
76
  }
73
- t.current = m;
77
+ t.current = f;
74
78
  }
75
- }, "assignInputRef"), Xe = /* @__PURE__ */ a(({
79
+ }, "assignInputRef"), He = /* @__PURE__ */ a(({
76
80
  label: t,
77
- variant: m = "standard",
81
+ variant: f = "standard",
78
82
  sx: E,
79
83
  value: s,
80
- format: y = F,
81
- useAmPm: D,
84
+ format: k = P,
85
+ useAmPm: b,
82
86
  placeholder: _,
83
- clearable: b = !0,
87
+ clearable: A = !0,
84
88
  fullWidth: z,
85
89
  onChange: c,
86
90
  textFieldProps: r,
87
- localeText: Mn,
88
- open: dn,
91
+ localeText: gn,
92
+ open: mn,
89
93
  onOpen: $,
90
- onClose: W,
91
- slots: gn,
94
+ onClose: H,
95
+ slots: Kn,
92
96
  slotProps: i,
93
97
  ...l
94
98
  }) => {
95
- var bn;
96
- const I = /s/i.test(y), T = I ? x : F, A = D ?? /a/i.test(y), hn = A ? I ? "A hh:mm:ss" : "A hh:mm" : T, Kn = l.closeOnSelect ?? !1, ln = {
99
+ var An;
100
+ const I = /s/i.test(k), T = I ? F : P, y = b ?? /a/i.test(k), G = y ? I ? "A hh:mm:ss" : "A hh:mm" : T, Nn = l.closeOnSelect ?? !1, fn = {
97
101
  minutes: 1,
98
102
  seconds: 1,
99
103
  ...l.timeSteps
100
- }, N = J(
104
+ }, N = X(
101
105
  () => I ? ["hours", "minutes", "seconds"] : ["hours", "minutes"],
102
106
  [I]
103
- ), fn = N.length - 1, P = oe * (N.length + (A ? 1 : 0)), [Nn, mn] = Q(!1), [B, Bn] = Q(""), [In, Tn] = Q(!1), [Ln, L] = Q(null), j = O(null), wn = O(null), kn = O(null), nn = O(null), X = O(!1), v = O(!1), p = O(0), en = O(!1), { t: tn, i18n: yn } = Pn(), Vn = (yn.resolvedLanguage ?? yn.language ?? "kr") === "kr" ? "ko" : "en", rn = _ ?? (A ? "–– ––:––" : "––:––"), H = J(
104
- () => Re(rn, A),
105
- [rn, A]
106
- ), an = {
107
- okButtonLabel: tn("Button.확인"),
108
- clearButtonLabel: tn("Button.초기화"),
109
- fieldHoursPlaceholder: /* @__PURE__ */ a(() => H.hours, "fieldHoursPlaceholder"),
110
- fieldMinutesPlaceholder: /* @__PURE__ */ a(() => H.minutes, "fieldMinutesPlaceholder"),
111
- fieldSecondsPlaceholder: /* @__PURE__ */ a(() => H.seconds, "fieldSecondsPlaceholder"),
112
- fieldMeridiemPlaceholder: /* @__PURE__ */ a(() => H.meridiem, "fieldMeridiemPlaceholder"),
113
- ...Mn
114
- }, zn = [Ee, E, r == null ? void 0 : r.sx].filter(
107
+ ), In = N.length - 1, nn = se * (N.length + (y ? 1 : 0)), [Ln, Tn] = x(!1), [L, Bn] = x(""), [pn, wn] = x(!1), [Vn, B] = x(null), j = O(null), kn = O(null), yn = O(null), en = O(null), v = O(!1), Y = O(!1), D = O(0), tn = O(!1), { t: rn, i18n: an } = ne(), zn = !an.language || an.language === "kr" || an.language.startsWith("ko") ? "ko" : "en", cn = _ ?? G, U = X(
108
+ () => hn(G, y),
109
+ [G, y]
110
+ ), Z = X(
111
+ () => {
112
+ const n = hn(cn, y);
113
+ return {
114
+ hours: n.hours || U.hours,
115
+ minutes: n.minutes || U.minutes,
116
+ seconds: n.seconds || U.seconds || "",
117
+ meridiem: n.meridiem || U.meridiem || ""
118
+ };
119
+ },
120
+ [U, cn, y]
121
+ ), on = {
122
+ okButtonLabel: rn("Button.확인"),
123
+ clearButtonLabel: rn("Button.초기화"),
124
+ fieldHoursPlaceholder: /* @__PURE__ */ a(() => Z.hours, "fieldHoursPlaceholder"),
125
+ fieldMinutesPlaceholder: /* @__PURE__ */ a(() => Z.minutes, "fieldMinutesPlaceholder"),
126
+ fieldSecondsPlaceholder: /* @__PURE__ */ a(() => Z.seconds, "fieldSecondsPlaceholder"),
127
+ fieldMeridiemPlaceholder: /* @__PURE__ */ a(() => Z.meridiem, "fieldMeridiemPlaceholder"),
128
+ ...gn
129
+ }, jn = [be, E, r == null ? void 0 : r.sx].filter(
115
130
  Boolean
116
- ), jn = !!(!b || l.disabled || l.readOnly), Cn = !!c && b, C = dn !== void 0, d = C ? dn : Nn, Y = Te(d), f = u((n) => {
117
- Bn(n), Tn(!1);
131
+ ), Un = !!(!A || l.disabled || l.readOnly), Cn = !!c && A, C = mn !== void 0, d = C ? mn : Ln, J = we(d), m = u((n) => {
132
+ Bn(n), wn(!1);
118
133
  }, []), M = u(() => {
119
134
  var n;
120
- (n = nn.current) == null || n.focus();
121
- }, []), g = J(() => {
135
+ (n = en.current) == null || n.focus();
136
+ }, []), h = X(() => {
122
137
  if (!s)
123
138
  return null;
124
139
  if (K.isDayjs(s))
125
140
  return s;
126
141
  if (typeof s == "string") {
127
- const e = un(s, I);
142
+ const e = dn(s, I);
128
143
  if (e != null && e.dateValue.isValid())
129
144
  return e.dateValue;
130
145
  const o = K(s, T, !0);
@@ -132,154 +147,154 @@ const Z = "––", pe = [
132
147
  }
133
148
  const n = K(s);
134
149
  return n.isValid() ? n : null;
135
- }, [I, T, s]), V = J(() => {
150
+ }, [I, T, s]), V = X(() => {
136
151
  if (!s)
137
152
  return "";
138
153
  if (typeof s == "string") {
139
154
  const e = K(s, T, !0);
140
- return e.isValid() ? sn(e, I) : s;
155
+ return e.isValid() ? ln(e, I) : s;
141
156
  }
142
157
  const n = K(s);
143
- return n.isValid() ? sn(n, I) : "";
144
- }, [I, T, s]), Un = /* @__PURE__ */ a((n) => {
158
+ return n.isValid() ? ln(n, I) : "";
159
+ }, [I, T, s]), qn = /* @__PURE__ */ a((n) => {
145
160
  const e = n != null && n.isValid() ? n.format(T) : void 0;
146
- f(
147
- n != null && n.isValid() ? sn(n, I) : ""
161
+ m(
162
+ n != null && n.isValid() ? ln(n, I) : ""
148
163
  ), c == null || c(e);
149
- }, "handleChange"), h = u(
164
+ }, "handleChange"), g = u(
150
165
  (n) => {
151
- if (!B)
152
- return f(""), c == null || c(""), !0;
153
- const e = un(B, I);
154
- return e != null && e.dateValue.isValid() ? (f(e.valueText), c == null || c(e.valueText), !0) : (n && B && Tn(!0), !1);
166
+ if (!L)
167
+ return m(""), c == null || c(""), !0;
168
+ const e = dn(L, I);
169
+ return e != null && e.dateValue.isValid() ? (m(e.valueText), c == null || c(e.valueText), !0) : (n && L && wn(!0), !1);
155
170
  },
156
- [I, B, c, f]
171
+ [I, L, c, m]
157
172
  ), R = u(() => {
158
- if (v.current || Date.now() < p.current) {
159
- v.current = !1;
173
+ if (Y.current || Date.now() < D.current) {
174
+ Y.current = !1;
160
175
  return;
161
176
  }
162
- C || mn(!0), f(V), L(g), $ == null || $();
163
- }, [C, $, V, g, f]), k = u(() => {
164
- C || mn(!1), W == null || W();
165
- }, [C, W]), S = u(() => {
166
- h(), k();
167
- }, [k, h]), pn = u(() => {
168
- p.current = Date.now() + 200, S();
177
+ C || Tn(!0), m(V), B(h), $ == null || $();
178
+ }, [C, $, V, h, m]), w = u(() => {
179
+ C || Tn(!1), H == null || H();
180
+ }, [C, H]), S = u(() => {
181
+ g(), w();
182
+ }, [w, g]), Dn = u(() => {
183
+ D.current = Date.now() + 200, S();
169
184
  }, [S]), En = u(() => {
170
- p.current = Date.now() + 200, k();
171
- }, [k]), G = u((n) => {
185
+ D.current = Date.now() + 200, w();
186
+ }, [w]), Q = u((n) => {
172
187
  const e = j.current;
173
188
  e && window.requestAnimationFrame(() => {
174
189
  var o;
175
- (o = we(e, n)) == null || o.focus();
190
+ (o = ke(e, n)) == null || o.focus();
176
191
  });
177
- }, []), U = u(() => {
192
+ }, []), q = u(() => {
178
193
  window.requestAnimationFrame(() => {
179
194
  var n;
180
- (n = Ae(j.current) ?? kn.current) == null || n.focus();
195
+ (n = Se(j.current) ?? yn.current) == null || n.focus();
181
196
  });
182
- }, []), qn = u(
197
+ }, []), Wn = u(
183
198
  (n) => {
184
- kn.current = n, Se(r == null ? void 0 : r.inputRef, n);
199
+ yn.current = n, Oe(r == null ? void 0 : r.inputRef, n);
185
200
  },
186
201
  [r == null ? void 0 : r.inputRef]
187
- ), $n = u(
202
+ ), Xn = u(
188
203
  (n) => {
189
- nn.current = n, !(!n || !d) && (window.requestAnimationFrame(() => {
204
+ en.current = n, !(!n || !d) && (window.requestAnimationFrame(() => {
190
205
  M();
191
206
  }), window.setTimeout(() => {
192
207
  M();
193
208
  }));
194
209
  },
195
210
  [M, d]
196
- ), Wn = /* @__PURE__ */ a(() => {
197
- c == null || c(""), f("");
198
- }, "handleClear"), Xn = u(
211
+ ), $n = /* @__PURE__ */ a(() => {
212
+ c == null || c(""), m("");
213
+ }, "handleClear"), Hn = u(
199
214
  (n) => {
200
- const e = n.target.value, o = un(e, I);
201
- f(e), o != null && o.dateValue.isValid() && L(o.dateValue);
215
+ const e = n.target.value, o = dn(e, I);
216
+ m(e), o != null && o.dateValue.isValid() && B(o.dateValue);
202
217
  },
203
- [I, f]
204
- ), Dn = u(
218
+ [I, m]
219
+ ), bn = u(
205
220
  (n) => {
206
221
  n.stopPropagation(), n.nativeEvent.stopImmediatePropagation();
207
222
  },
208
223
  []
209
- ), vn = u(
224
+ ), Gn = u(
210
225
  (n) => {
211
- if (Dn(n), n.key === "Escape") {
212
- n.preventDefault(), p.current = Date.now() + 200, f(V), L(g), k(), U();
226
+ if (bn(n), n.key === "Escape") {
227
+ n.preventDefault(), D.current = Date.now() + 200, m(V), B(h), w(), q();
213
228
  return;
214
229
  }
215
230
  if (n.key === "Tab") {
216
- if (n.preventDefault(), !h(!0))
231
+ if (n.preventDefault(), !g(!0))
217
232
  return;
218
- p.current = Date.now() + 200, k(), G(n.shiftKey);
233
+ D.current = Date.now() + 200, w(), Q(n.shiftKey);
219
234
  return;
220
235
  }
221
- n.key === "Enter" && (n.preventDefault(), h(!0) && (p.current = Date.now() + 200, k(), U()));
236
+ n.key === "Enter" && (n.preventDefault(), g(!0) && (D.current = Date.now() + 200, w(), q()));
222
237
  },
223
238
  [
224
- k,
225
- h,
226
- G,
227
- U,
228
- V,
239
+ w,
229
240
  g,
230
- f,
231
- Dn
241
+ Q,
242
+ q,
243
+ V,
244
+ h,
245
+ m,
246
+ bn
232
247
  ]
233
- ), Hn = u(
248
+ ), vn = u(
234
249
  (n) => {
235
- n.stopPropagation(), n.key === "Tab" && (n.preventDefault(), h(!0) && (p.current = Date.now() + 200, k(), G(n.shiftKey)));
250
+ n.stopPropagation(), n.key === "Tab" && (n.preventDefault(), g(!0) && (D.current = Date.now() + 200, w(), Q(n.shiftKey)));
236
251
  },
237
- [k, h, G]
252
+ [w, g, Q]
238
253
  ), Yn = u(
239
254
  (n) => {
240
255
  var e;
241
- n.preventDefault(), n.stopPropagation(), c == null || c(""), f(""), L(null), (e = nn.current) == null || e.focus();
256
+ n.preventDefault(), n.stopPropagation(), c == null || c(""), m(""), B(null), (e = en.current) == null || e.focus();
242
257
  },
243
- [c, f]
244
- ), Gn = u(
258
+ [c, m]
259
+ ), Zn = u(
245
260
  (n, e) => {
246
261
  if (!(n != null && n.isValid()))
247
262
  return;
248
263
  const o = n.format(T);
249
- L(n), f(o), e === N[fn] && (p.current = Date.now() + 200, c == null || c(o), En(), U());
264
+ B(n), m(o), e === N[In] && (D.current = Date.now() + 200, c == null || c(o), En(), q());
250
265
  },
251
266
  [
252
- fn,
267
+ In,
253
268
  En,
254
- U,
269
+ q,
255
270
  T,
256
271
  c,
257
- f,
272
+ m,
258
273
  N
259
274
  ]
260
275
  ), Jn = u(
261
276
  (n) => {
262
277
  var e;
263
- (e = r == null ? void 0 : r.onMouseDown) == null || e.call(r, n), X.current = !0;
278
+ (e = r == null ? void 0 : r.onMouseDown) == null || e.call(r, n), v.current = !0;
264
279
  },
265
280
  [r]
266
281
  ), Qn = u(
267
282
  (n) => {
268
283
  var e;
269
- (e = r == null ? void 0 : r.onFocus) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly || d) && (en.current = X.current, R());
284
+ (e = r == null ? void 0 : r.onFocus) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly || d) && (tn.current = v.current, R());
270
285
  },
271
286
  [R, d, r, l.disabled, l.readOnly]
272
- ), Zn = u(
287
+ ), xn = u(
273
288
  (n) => {
274
289
  var e;
275
290
  if ((e = r == null ? void 0 : r.onClick) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly)) {
276
- if (en.current) {
277
- en.current = !1, X.current = !1;
291
+ if (tn.current) {
292
+ tn.current = !1, v.current = !1;
278
293
  return;
279
294
  }
280
- if (X.current = !1, d) {
281
- v.current = !0, S(), queueMicrotask(() => {
282
- v.current = !1;
295
+ if (v.current = !1, d) {
296
+ Y.current = !0, S(), queueMicrotask(() => {
297
+ Y.current = !1;
283
298
  });
284
299
  return;
285
300
  }
@@ -294,19 +309,19 @@ const Z = "––", pe = [
294
309
  l.disabled,
295
310
  l.readOnly
296
311
  ]
297
- ), xn = u(
312
+ ), Fn = u(
298
313
  (n) => {
299
314
  var e;
300
315
  if ((e = r == null ? void 0 : r.onKeyDown) == null || e.call(r, n), !(n.defaultPrevented || l.disabled || l.readOnly)) {
301
- if (!d && be(n)) {
316
+ if (!d && Re(n)) {
302
317
  n.preventDefault(), R();
303
318
  return;
304
319
  }
305
320
  if (d && n.key === "Tab") {
306
- p.current = Date.now() + 200, S();
321
+ D.current = Date.now() + 200, S();
307
322
  return;
308
323
  }
309
- !d || !De(n) || S();
324
+ !d || !Ae(n) || S();
310
325
  }
311
326
  },
312
327
  [
@@ -318,10 +333,10 @@ const Z = "––", pe = [
318
333
  l.readOnly
319
334
  ]
320
335
  );
321
- return on(() => {
322
- d && (f(V), L(g));
323
- }, [d, V, g, f]), on(() => {
324
- if (!d || Y.state !== "open")
336
+ return sn(() => {
337
+ d && (m(V), B(h));
338
+ }, [d, V, h, m]), sn(() => {
339
+ if (!d || J.state !== "open")
325
340
  return;
326
341
  const n = window.requestAnimationFrame(() => {
327
342
  M();
@@ -329,53 +344,53 @@ const Z = "––", pe = [
329
344
  M();
330
345
  }), o = window.setTimeout(() => {
331
346
  M();
332
- }, _n);
347
+ }, Mn);
333
348
  return () => {
334
349
  window.cancelAnimationFrame(n), window.clearTimeout(e), window.clearTimeout(o);
335
350
  };
336
- }, [M, d, Y.state]), on(() => {
351
+ }, [M, d, J.state]), sn(() => {
337
352
  if (!d)
338
353
  return;
339
354
  const n = /* @__PURE__ */ a((e) => {
340
- var q, An;
355
+ var W, Rn;
341
356
  const o = e.target;
342
- o instanceof Node && ((q = j.current) != null && q.contains(o) || (An = wn.current) != null && An.contains(o) || pn());
357
+ o instanceof Node && ((W = j.current) != null && W.contains(o) || (Rn = kn.current) != null && Rn.contains(o) || Dn());
343
358
  }, "handleDocumentMouseDown");
344
359
  return document.addEventListener("mousedown", n, !0), () => {
345
360
  document.removeEventListener("mousedown", n, !0);
346
361
  };
347
- }, [pn, d]), /* @__PURE__ */ w(ie, { dateAdapter: ae, adapterLocale: Vn, children: /* @__PURE__ */ cn("div", { ref: j, children: [
348
- /* @__PURE__ */ w(
349
- te,
362
+ }, [Dn, d]), /* @__PURE__ */ p(ce, { dateAdapter: oe, adapterLocale: zn, children: /* @__PURE__ */ un("div", { ref: j, children: [
363
+ /* @__PURE__ */ p(
364
+ ie,
350
365
  {
351
366
  ...l,
352
- ampm: A,
367
+ ampm: y,
353
368
  open: !1,
354
- closeOnSelect: Kn,
355
- timeSteps: ln,
369
+ closeOnSelect: Nn,
370
+ timeSteps: fn,
356
371
  label: t,
357
- value: g,
372
+ value: h,
358
373
  views: N,
359
- format: hn,
360
- localeText: an,
361
- onChange: Un,
374
+ format: G,
375
+ localeText: on,
376
+ onChange: qn,
362
377
  onOpen: R,
363
378
  onClose: S,
364
379
  slots: {
365
- ...gn,
366
- inputAdornment: /* @__PURE__ */ a(({ position: n, children: e, ...o }) => /* @__PURE__ */ cn(Sn, { position: n, ...o, children: [
367
- n === "end" && Cn && /* @__PURE__ */ w(
368
- On,
380
+ ...Kn,
381
+ inputAdornment: /* @__PURE__ */ a(({ position: n, children: e, ...o }) => /* @__PURE__ */ un(On, { position: n, ...o, children: [
382
+ n === "end" && Cn && /* @__PURE__ */ p(
383
+ _n,
369
384
  {
370
385
  className: "clearButton",
371
386
  size: "small",
372
387
  tabIndex: -1,
373
- "aria-label": an.clearButtonLabel,
374
- disabled: jn,
375
- onClick: /* @__PURE__ */ a((q) => {
376
- q.preventDefault(), q.stopPropagation(), Wn();
388
+ "aria-label": on.clearButtonLabel,
389
+ disabled: Un,
390
+ onClick: /* @__PURE__ */ a((W) => {
391
+ W.preventDefault(), W.stopPropagation(), $n();
377
392
  }, "onClick"),
378
- children: /* @__PURE__ */ w(Rn, { fontSize: "small" })
393
+ children: /* @__PURE__ */ p(Sn, { fontSize: "small" })
379
394
  }
380
395
  ),
381
396
  e
@@ -405,35 +420,35 @@ const Z = "––", pe = [
405
420
  marginBottom: 0,
406
421
  marginLeft: 0,
407
422
  gap: 0,
408
- ...typeof (i == null ? void 0 : i.inputAdornment) == "function" || (bn = i == null ? void 0 : i.inputAdornment) == null ? void 0 : bn.sx
423
+ ...typeof (i == null ? void 0 : i.inputAdornment) == "function" || (An = i == null ? void 0 : i.inputAdornment) == null ? void 0 : An.sx
409
424
  }
410
425
  },
411
426
  textField: {
412
- variant: m,
427
+ variant: f,
413
428
  fullWidth: z,
414
429
  ...r,
415
- className: ce(
416
- !z && (A ? "w-[160px]" : "w-[140px]"),
430
+ className: ue(
431
+ !z && (y ? "w-[160px]" : "w-[140px]"),
417
432
  r == null ? void 0 : r.className
418
433
  ),
419
434
  onMouseDown: Jn,
420
435
  onFocus: Qn,
421
- onClick: Zn,
422
- onKeyDown: xn,
423
- inputRef: qn,
424
- placeholder: rn,
425
- sx: zn
436
+ onClick: xn,
437
+ onKeyDown: Fn,
438
+ inputRef: Wn,
439
+ placeholder: cn,
440
+ sx: jn
426
441
  }
427
442
  }
428
443
  }
429
444
  ),
430
- Y.shouldRender && /* @__PURE__ */ w(
431
- ne,
445
+ J.shouldRender && /* @__PURE__ */ p(
446
+ te,
432
447
  {
433
448
  open: !0,
434
449
  anchorEl: j.current,
435
450
  placement: "bottom-end",
436
- ref: wn,
451
+ ref: kn,
437
452
  modifiers: [
438
453
  {
439
454
  name: "offset",
@@ -443,65 +458,65 @@ const Z = "––", pe = [
443
458
  }
444
459
  ],
445
460
  sx: { zIndex: /* @__PURE__ */ a((n) => n.zIndex.modal, "zIndex") },
446
- children: /* @__PURE__ */ w(
461
+ children: /* @__PURE__ */ p(
447
462
  "div",
448
463
  {
449
464
  className: "owp-animated-picker-popper",
450
- "data-state": Y.state,
465
+ "data-state": J.state,
451
466
  style: {
452
- "--owp-calendar-transition-duration": `${_n}ms`,
453
- "--owp-calendar-transform-transition-duration": `${se}ms`,
454
- "--owp-calendar-exit-transform-delay": `${ue}ms`
467
+ "--owp-calendar-transition-duration": `${Mn}ms`,
468
+ "--owp-calendar-transform-transition-duration": `${le}ms`,
469
+ "--owp-calendar-exit-transform-delay": `${de}ms`
455
470
  },
456
- children: /* @__PURE__ */ cn(
457
- ee,
471
+ children: /* @__PURE__ */ un(
472
+ re,
458
473
  {
459
474
  elevation: 8,
460
475
  onClick: /* @__PURE__ */ a((n) => {
461
476
  n.stopPropagation();
462
477
  }, "onClick"),
463
- onKeyDown: Hn,
478
+ onKeyDown: vn,
464
479
  onKeyUp: /* @__PURE__ */ a((n) => {
465
480
  n.stopPropagation();
466
481
  }, "onKeyUp"),
467
482
  onMouseDown: /* @__PURE__ */ a((n) => {
468
483
  n.stopPropagation();
469
484
  }, "onMouseDown"),
470
- sx: fe(P),
485
+ sx: Ie(nn),
471
486
  children: [
472
- /* @__PURE__ */ w(
473
- ye,
487
+ /* @__PURE__ */ p(
488
+ De,
474
489
  {
475
490
  autoFocus: !0,
476
- inputRef: $n,
491
+ inputRef: Xn,
477
492
  fullWidth: !0,
478
493
  size: "small",
479
494
  variant: "outlined",
480
- value: B,
481
- error: In,
482
- helperText: In ? tn(de) : void 0,
483
- mask: ke(T),
495
+ value: L,
496
+ error: pn,
497
+ helperText: pn ? rn(me) : void 0,
498
+ mask: ye(T),
484
499
  placeholder: T,
485
- onChange: Xn,
486
- onKeyDown: vn,
500
+ onChange: Hn,
501
+ onKeyDown: Gn,
487
502
  inputProps: {
488
503
  inputMode: "numeric",
489
504
  "aria-label": T
490
505
  },
491
- endAdornment: /* @__PURE__ */ w(
492
- Sn,
506
+ endAdornment: /* @__PURE__ */ p(
507
+ On,
493
508
  {
494
509
  position: "end",
495
510
  sx: {
496
511
  marginLeft: 0
497
512
  },
498
- children: /* @__PURE__ */ w(
499
- On,
513
+ children: /* @__PURE__ */ p(
514
+ _n,
500
515
  {
501
516
  size: "small",
502
517
  tabIndex: -1,
503
- "aria-label": an.clearButtonLabel,
504
- disabled: !B,
518
+ "aria-label": on.clearButtonLabel,
519
+ disabled: !L,
505
520
  onClick: Yn,
506
521
  onMouseDown: /* @__PURE__ */ a((n) => {
507
522
  n.preventDefault(), n.stopPropagation();
@@ -510,28 +525,28 @@ const Z = "––", pe = [
510
525
  margin: 0,
511
526
  padding: 0.25
512
527
  },
513
- children: /* @__PURE__ */ w(Rn, { fontSize: "small" })
528
+ children: /* @__PURE__ */ p(Sn, { fontSize: "small" })
514
529
  }
515
530
  )
516
531
  }
517
532
  ),
518
- sx: me(P)
533
+ sx: Te(nn)
519
534
  }
520
535
  ),
521
- /* @__PURE__ */ w(
522
- re,
536
+ /* @__PURE__ */ p(
537
+ ae,
523
538
  {
524
- ampm: A,
525
- value: Ln,
539
+ ampm: y,
540
+ value: Vn,
526
541
  views: N,
527
- onChange: /* @__PURE__ */ a((n, e, o) => Gn(n, o), "onChange"),
528
- timeSteps: ln,
542
+ onChange: /* @__PURE__ */ a((n, e, o) => Zn(n, o), "onChange"),
543
+ timeSteps: fn,
529
544
  slotProps: {
530
545
  digitalClockSectionItem: {
531
- sx: le
546
+ sx: fe
532
547
  }
533
548
  },
534
- sx: Ie(P)
549
+ sx: pe(nn)
535
550
  }
536
551
  )
537
552
  ]
@@ -544,6 +559,6 @@ const Z = "––", pe = [
544
559
  ] }) });
545
560
  }, "OwpTimePicker");
546
561
  export {
547
- Xe as OwpTimePicker
562
+ He as OwpTimePicker
548
563
  };
549
564
  //# sourceMappingURL=OwpTimePicker.js.map