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