@nice2dev/ui 1.4.1 → 1.4.2

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 (43) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/NiceCodeEditor-DhdjnDLV.cjs +289 -0
  3. package/dist/{NiceDataGrid-BT6iCUgP.cjs → NiceDataGrid-CrKDzMM1.cjs} +1 -1
  4. package/dist/{NiceForm-Bysp66Ef.cjs → NiceForm-CT9hEXpc.cjs} +1 -1
  5. package/dist/NiceLoginForm-C2-WgRn0.cjs +1 -0
  6. package/dist/NiceMention-BZEHqPrf.cjs +432 -0
  7. package/dist/NiceModuleLifecyclePanel-DKlqKPy2.cjs +1 -0
  8. package/dist/{NiceSavedQueryPanel-BbznsXFd.cjs → NiceSavedQueryPanel-C5Ab_NWx.cjs} +1 -1
  9. package/dist/NiceScheduler-BZQAKEVF.cjs +5 -0
  10. package/dist/{NiceWindow-pgR4c-kQ.cjs → NiceWindow-BklnkBpu.cjs} +1 -1
  11. package/dist/charts/NiceLinearGauge.mjs +96 -83
  12. package/dist/charts/NicePolarChart.mjs +47 -47
  13. package/dist/charts-BzlvCCg9.cjs +768 -0
  14. package/dist/charts.cjs +1 -1
  15. package/dist/{core-lazy-CL4ZIxF-.cjs → core-lazy-VTd5zfoZ.cjs} +1 -1
  16. package/dist/data.cjs +1 -1
  17. package/dist/display/NiceAvatar.mjs +40 -24
  18. package/dist/editors/pickers/NiceDateRangeBox.mjs +92 -92
  19. package/dist/editors/pickers/NiceDateTimePicker.mjs +173 -173
  20. package/dist/editors/rich/NiceCodeEditor.mjs +645 -584
  21. package/dist/editors/rich/NiceDocumentEditor.mjs +277 -254
  22. package/dist/editors.cjs +1 -1
  23. package/dist/feedback/NiceDrawer.mjs +15 -15
  24. package/dist/feedback.cjs +1 -1
  25. package/dist/index.cjs +202 -202
  26. package/dist/index.d.ts +18 -0
  27. package/dist/lazy.cjs +1 -1
  28. package/dist/navigation/NiceNavShell.mjs +646 -593
  29. package/dist/navigation/NiceSidebarNav.mjs +844 -823
  30. package/dist/navigation.cjs +1 -1
  31. package/dist/overlays/NiceWindow.mjs +91 -91
  32. package/dist/overlays.cjs +1 -1
  33. package/dist/planning/NiceScheduler.mjs +170 -169
  34. package/dist/planning/NiceSchedulerViews.mjs +242 -233
  35. package/dist/style.css +2 -2
  36. package/dist/utility/intlNames.mjs +26 -16
  37. package/package.json +4 -4
  38. package/dist/NiceCodeEditor-D0QZW88r.cjs +0 -268
  39. package/dist/NiceLoginForm-FGf32sro.cjs +0 -1
  40. package/dist/NiceMention-sc8W-DwH.cjs +0 -430
  41. package/dist/NiceModuleLifecyclePanel-DBQPCa_V.cjs +0 -1
  42. package/dist/NiceScheduler-3Ez0zSQJ.cjs +0 -5
  43. package/dist/charts-B0tHOpJ7.cjs +0 -768
@@ -1,10 +1,10 @@
1
- import { jsxs as I, jsx as p, Fragment as Tt } from "react/jsx-runtime";
2
- import { useComponentDisplayStyle as Kt, useComponentDisplayClass as Qt, useNiceAccessMode as en, useNiceTranslation as tn, useControlId as nn, NiceThemeContext as on, useHoldRepeat as cn, useSubmitOnEnter as sn, useIntent as rn, useInputHints as ln, useOverlayFocus as an, COMMON_SHORTCUTS as dn, NiceKeyboardHint as un, NiceIcon as pe } from "@nice2dev/ui-core";
3
- import { forwardRef as pn, useRef as B, useState as ue, useEffect as J, useContext as yn, useMemo as ie, useCallback as q, useLayoutEffect as Dt } from "react";
4
- import { createPortal as mn } from "react-dom";
5
- import { scopeThemeClass as fn } from "../../utility/scopeThemeClass.mjs";
6
- import { NiceCalendar as Mn } from "./NiceCalendar.mjs";
7
- const hn = {
1
+ import { jsxs as I, jsx as p, Fragment as kt } from "react/jsx-runtime";
2
+ import { useComponentDisplayStyle as Qt, useComponentDisplayClass as en, useNiceAccessMode as tn, useNiceTranslation as nn, useControlId as on, NiceThemeContext as cn, useHoldRepeat as sn, useSubmitOnEnter as rn, useIntent as ln, useInputHints as an, useOverlayFocus as dn, COMMON_SHORTCUTS as un, NiceKeyboardHint as pn, NiceIcon as pe } from "@nice2dev/ui-core";
3
+ import { forwardRef as yn, useRef as B, useState as ue, useEffect as J, useContext as mn, useMemo as ie, useCallback as q, useLayoutEffect as Nt } from "react";
4
+ import { createPortal as fn } from "react-dom";
5
+ import { scopeThemeClass as Mn } from "../../utility/scopeThemeClass.mjs";
6
+ import { NiceCalendar as hn } from "./NiceCalendar.mjs";
7
+ const gn = {
8
8
  "date-local": { inputType: "date", localized: !0 },
9
9
  "date-utc": { inputType: "date", localized: !1 },
10
10
  "datetime-local": { inputType: "datetime-local", localized: !0 },
@@ -13,20 +13,20 @@ const hn = {
13
13
  "month-utc": { inputType: "month", localized: !1 },
14
14
  week: { inputType: "week", localized: !1 },
15
15
  time: { inputType: "time", localized: !1 }
16
- }, kt = {
16
+ }, bt = {
17
17
  date: "yyyy-MM-dd",
18
18
  "datetime-local": "yyyy-MM-ddTHH:mm",
19
19
  month: "yyyy-MM",
20
20
  week: "yyyy-Www",
21
21
  time: "HH:mm"
22
- }, gn = {
22
+ }, _n = {
23
23
  "yyyy-MM-dd": "YYYY-MM-DD",
24
24
  "yyyy-MM-ddTHH:mm": "YYYY-MM-DDTHH:MM",
25
25
  "yyyy-MM": "YYYY-MM",
26
26
  "yyyy-Www": "YYYY-Www",
27
27
  "HH:mm": "HH:MM"
28
28
  };
29
- function Ze(t) {
29
+ function Je(t) {
30
30
  const r = (t || "").toLowerCase().replace("_", "-"), i = r.split("-")[0], l = {
31
31
  // dd.MM.yyyy (dot)
32
32
  pl: "dd.MM.yyyy",
@@ -123,11 +123,11 @@ function Ze(t) {
123
123
  return "yyyy-MM-dd";
124
124
  }
125
125
  }
126
- function _n(t) {
127
- const i = Ze(t).replace(/dd[^\w]*/g, "").replace(/[^\w]*dd/g, "");
126
+ function Tn(t) {
127
+ const i = Je(t).replace(/dd[^\w]*/g, "").replace(/[^\w]*dd/g, "");
128
128
  return !/y/.test(i) || !/M/.test(i) ? "yyyy-MM" : i;
129
129
  }
130
- function Tn() {
130
+ function kn() {
131
131
  if (typeof document < "u") {
132
132
  const t = document.documentElement?.lang;
133
133
  if (t && /^[a-zA-Z]{2,}/.test(t))
@@ -135,26 +135,26 @@ function Tn() {
135
135
  }
136
136
  return typeof navigator < "u" && navigator.language ? navigator.language : "en-US";
137
137
  }
138
- function kn(t, r, i, l = !1) {
139
- kt[t] || (t = "date");
140
- let o = kt[t];
138
+ function bn(t, r, i, l = !1) {
139
+ bt[t] || (t = "date");
140
+ let o = bt[t];
141
141
  l && (t === "datetime-local" || t === "time") && (o = o.replace("HH:mm", "HH:mm:ss"));
142
142
  let c = o;
143
- r && (t === "date" || t === "datetime-local" || t === "month") && (t === "date" ? c = Ze(i) : t === "datetime-local" ? c = `${Ze(i)} HH:mm${l ? ":ss" : ""}` : c = _n(i)), t === "datetime-local" && (c = c.replace("T", " · "));
144
- const u = gn[c] ?? c.replace(/y/g, "Y").replace(/M/g, "M").replace(/d/g, "D").replace(/H/g, "H").replace(/m/g, "M").replace(/s/g, "S");
143
+ r && (t === "date" || t === "datetime-local" || t === "month") && (t === "date" ? c = Je(i) : t === "datetime-local" ? c = `${Je(i)} HH:mm${l ? ":ss" : ""}` : c = Tn(i)), t === "datetime-local" && (c = c.replace("T", " · "));
144
+ const u = _n[c] ?? c.replace(/y/g, "Y").replace(/M/g, "M").replace(/d/g, "D").replace(/H/g, "H").replace(/m/g, "M").replace(/s/g, "S");
145
145
  return { displayTpl: c, isoTpl: o, placeholder: u };
146
146
  }
147
- const bn = /* @__PURE__ */ new Set(["y", "M", "d", "H", "m", "s", "w"]);
147
+ const vn = /* @__PURE__ */ new Set(["y", "M", "d", "H", "m", "s", "w"]);
148
148
  function O(t) {
149
- return bn.has(t);
149
+ return vn.has(t);
150
150
  }
151
- function Je(t) {
151
+ function Ke(t) {
152
152
  let r = 0;
153
153
  for (const i of t)
154
154
  O(i) && r++;
155
155
  return r;
156
156
  }
157
- function Ke(t, r) {
157
+ function Qe(t, r) {
158
158
  let i = "", l = 0;
159
159
  for (const o of t)
160
160
  if (O(o)) {
@@ -168,7 +168,7 @@ function Ke(t, r) {
168
168
  }
169
169
  return i;
170
170
  }
171
- function vn(t, r, i) {
171
+ function $n(t, r, i) {
172
172
  if (i.length === 0)
173
173
  return "";
174
174
  const l = {};
@@ -200,11 +200,11 @@ function ne(t, r, i) {
200
200
  }
201
201
  return u.replace(/\s+$/, "");
202
202
  }
203
- function bt(t, r, i) {
204
- const l = Je(r);
203
+ function vt(t, r, i) {
204
+ const l = Ke(r);
205
205
  if (i.length < l)
206
206
  return "";
207
- const o = vn(t, r, i);
207
+ const o = $n(t, r, i);
208
208
  if (o.length < l)
209
209
  return "";
210
210
  let c = "", u = 0;
@@ -212,7 +212,7 @@ function bt(t, r, i) {
212
212
  O(y) ? c += o[u++] : c += y;
213
213
  return c;
214
214
  }
215
- function vt(t, r, i) {
215
+ function $t(t, r, i) {
216
216
  return t && (r && t < r ? r : i && t > i ? i : t);
217
217
  }
218
218
  function k(t) {
@@ -222,29 +222,29 @@ function Ae(t) {
222
222
  const r = /(\d{2}):(\d{2})(?::(\d{2}))?$/.exec(t);
223
223
  return r ? { hours: Number(r[1]), minutes: Number(r[2]), seconds: Number(r[3] ?? 0) } : null;
224
224
  }
225
- function $t(t, r, i, l, o) {
225
+ function Dt(t, r, i, l, o) {
226
226
  const c = o ? `${k(r)}:${k(i)}:${k(l)}` : `${k(r)}:${k(i)}`;
227
227
  return t.replace(/\d{2}:\d{2}(?::\d{2})?$/, c);
228
228
  }
229
- function Nt(t, r) {
229
+ function wt(t, r) {
230
230
  if (t <= 0)
231
231
  return r;
232
232
  const i = Math.floor(t / 864e5), l = `${k(Math.floor(t % 864e5 / 36e5))}:${k(Math.floor(t % 36e5 / 6e4))}:${k(Math.floor(t % 6e4 / 1e3))}`;
233
233
  return i > 0 ? `${i}d ${l}` : l;
234
234
  }
235
- function $n(t, r) {
235
+ function Dn(t, r) {
236
236
  if (t <= 0)
237
237
  return r;
238
238
  const i = Math.floor(t / 864e5), l = Math.floor(t % 864e5 / 36e5), o = Math.floor(t % 36e5 / 6e4), c = Math.floor(t % 6e4 / 1e3), u = [];
239
239
  return i && u.push(`${i}d`), (i || l) && u.push(`${l}h`), (i || l || o) && u.push(`${o}m`), u.push(`${c}s`), u.join(" ");
240
240
  }
241
- function Dn(t, r) {
241
+ function Nn(t, r) {
242
242
  if (t <= 0)
243
243
  return r;
244
244
  const i = Math.floor(t / 1e3), l = Math.floor(i / 3600), o = Math.floor(i % 3600 / 60), c = i % 60;
245
245
  return l > 0 ? `${k(l)}:${k(o)}:${k(c)}` : `${k(o)}:${k(c)}`;
246
246
  }
247
- function Nn(t, r) {
247
+ function wn(t, r) {
248
248
  if (t <= 0)
249
249
  return r;
250
250
  const i = Math.floor(t / 1e3), l = Math.floor(i / 86400);
@@ -256,20 +256,20 @@ function Nn(t, r) {
256
256
  const c = Math.floor(i / 60);
257
257
  return c ? `${c}m` : `${i}s`;
258
258
  }
259
- function wn(t, r) {
259
+ function xn(t, r) {
260
260
  if (t <= 0)
261
261
  return r;
262
262
  const i = Math.floor(t / 1e3), l = Math.floor(i / 86400), o = Math.floor(i % 86400 / 3600), c = Math.floor(i % 3600 / 60), u = [];
263
263
  return l && u.push(`${l} ${l === 1 ? "day" : "days"}`), o && u.push(`${o} ${o === 1 ? "hour" : "hours"}`), c && u.push(`${c} ${c === 1 ? "minute" : "minutes"}`), u.length ? u.join(", ") : "less than a minute";
264
264
  }
265
- const xn = {
266
- verbose: Nt,
267
- compact: $n,
268
- short: Dn,
269
- minimal: Nn,
270
- words: wn
265
+ const Pn = {
266
+ verbose: wt,
267
+ compact: Dn,
268
+ short: Nn,
269
+ minimal: wn,
270
+ words: xn
271
271
  };
272
- function Pn(t, r, i) {
272
+ function Cn(t, r, i) {
273
273
  const l = t ? Ae(t) : null, { hours: o, minutes: c, seconds: u } = l ?? { hours: 0, minutes: 0, seconds: 0 }, y = new Date(i);
274
274
  if (r != null) {
275
275
  const N = typeof r == "string" ? new Date(r) : new Date(r.getTime());
@@ -287,21 +287,21 @@ function Pn(t, r, i) {
287
287
  function ve(t, r) {
288
288
  if (!t)
289
289
  return "";
290
- const i = t.replace(/[^0-9]/g, ""), l = Je(r);
290
+ const i = t.replace(/[^0-9]/g, ""), l = Ke(r);
291
291
  return i.slice(0, l);
292
292
  }
293
293
  function G(t, r, i) {
294
- const l = Ke(t, i);
294
+ const l = Qe(t, i);
295
295
  let o = 0;
296
296
  const c = Math.min(r, l.length);
297
297
  for (let u = 0; u < c; u++)
298
298
  O(t[u]) && o++;
299
299
  return Math.min(o, i.length);
300
300
  }
301
- function Cn(t, r, i) {
301
+ function An(t, r, i) {
302
302
  if (i <= 0)
303
303
  return 0;
304
- const l = Ke(t, r);
304
+ const l = Qe(t, r);
305
305
  let o = 0;
306
306
  for (let c = 0; c < l.length; c++)
307
307
  if (O(t[c]) && (o++, o === i)) {
@@ -312,11 +312,11 @@ function Cn(t, r, i) {
312
312
  }
313
313
  return l.length;
314
314
  }
315
- const Xe = 40;
316
- function An() {
315
+ const Ze = 40;
316
+ function In() {
317
317
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
318
318
  }
319
- const In = ({
319
+ const Hn = ({
320
320
  label: t,
321
321
  value: r,
322
322
  max: i,
@@ -335,16 +335,16 @@ const In = ({
335
335
  0,
336
336
  Math.min(T.length - 1, Math.round(r / (l > 0 ? l : 1)))
337
337
  ), H = T.length, D = ie(() => [...T, ...T, ...T], [T]), $ = H + V, E = B(!1);
338
- Dt(() => {
338
+ Nt(() => {
339
339
  const f = g.current;
340
340
  if (!f)
341
341
  return;
342
- const w = $ * Xe;
342
+ const w = $ * Ze;
343
343
  if (Math.abs(f.scrollTop - w) < 1)
344
344
  return;
345
- const Y = Math.abs(f.scrollTop / Xe - $);
345
+ const Y = Math.abs(f.scrollTop / Ze - $);
346
346
  N.current = !0, j.current && (clearTimeout(j.current), j.current = null);
347
- const K = E.current && Y <= 3 && !An();
347
+ const K = E.current && Y <= 3 && !In();
348
348
  f.scrollTo({ top: w, behavior: K ? "smooth" : "instant" }), E.current = !0, X.current && clearTimeout(X.current), X.current = setTimeout(() => {
349
349
  N.current = !1;
350
350
  }, 380);
@@ -359,7 +359,7 @@ const In = ({
359
359
  const f = g.current;
360
360
  if (!f)
361
361
  return;
362
- const w = Math.round(f.scrollTop / Xe), Y = T[(w % H + H) % H];
362
+ const w = Math.round(f.scrollTop / Ze), Y = T[(w % H + H) % H];
363
363
  Y !== r && o(Y);
364
364
  }, 110));
365
365
  }, Z = (f) => o(T[(f % H + H) % H]), me = (f) => {
@@ -442,7 +442,7 @@ const In = ({
442
442
  )
443
443
  ] })
444
444
  ] });
445
- }, Hn = ({ hours: t, minutes: r, minuteStep: i, onChange: l, t: o }) => {
445
+ }, Rn = ({ hours: t, minutes: r, minuteStep: i, onChange: l, t: o }) => {
446
446
  const [c, u] = ue("hours"), y = B(null), g = 100, N = 78, j = 52, X = 62, T = 65, V = 18, H = t >= 12 ? "PM" : "AM", D = t % 12 === 0 ? 12 : t % 12, $ = (d, m) => {
447
447
  const R = (d - 90) * Math.PI / 180;
448
448
  return { x: g + m * Math.cos(R), y: g + m * Math.sin(R) };
@@ -641,7 +641,7 @@ const In = ({
641
641
  )
642
642
  ] });
643
643
  }, Un = /* @__PURE__ */ Object.assign(
644
- /* @__PURE__ */ pn(
644
+ /* @__PURE__ */ yn(
645
645
  ({
646
646
  label: t,
647
647
  helperText: r,
@@ -684,22 +684,22 @@ const In = ({
684
684
  targetDate: W,
685
685
  onTargetChange: se,
686
686
  countdown: De = !1,
687
- countdownFormat: Qe = "verbose",
687
+ countdownFormat: et = "verbose",
688
688
  formatCountdown: Ue,
689
- countdownLabel: et,
690
- countdownInterval: tt = 1e3,
691
- countdownDoneText: nt
689
+ countdownLabel: tt,
690
+ countdownInterval: nt = 1e3,
691
+ countdownDoneText: it
692
692
  }, Ne) => {
693
- const wt = Kt("input", Me), xt = Qt("input", Me), Be = en(X, g), Pt = Be === "hidden";
693
+ const xt = Qt("input", Me), Pt = en("input", Me), Be = tn(X, g), Ct = Be === "hidden";
694
694
  Be === "disabled" && (o = !0), Be === "readOnly" && (c = !0);
695
- const { t: b } = tn(), it = nn(g), we = B(null), ot = B(null), re = B(null), je = B(null), [he, He] = ue(!1), [Ve, ct] = ue(null), [st, Ct] = ue(""), [xe, qe] = ue(U);
695
+ const { t: b } = nn(), ot = on(g), we = B(null), ct = B(null), re = B(null), je = B(null), [he, He] = ue(!1), [Ve, st] = ue(null), [rt, At] = ue(""), [xe, qe] = ue(U);
696
696
  J(() => {
697
697
  qe(U);
698
698
  }, [U]);
699
- const rt = yn(on)?.portalTarget ?? (typeof document < "u" ? document.body : null), { start: At, stop: It } = cn(), lt = ye ? hn[ye] : null, P = lt?.inputType ?? "date", at = lt?.localized ?? !1, dt = Ie ?? Tn(), s = ie(
700
- () => kn(P, at, dt, z),
701
- [P, at, dt, z]
702
- ), L = ie(() => Je(s.isoTpl), [s.isoTpl]), [Pe, ge] = ue(() => {
699
+ const We = mn(cn), lt = We?.portalTarget ?? (typeof document < "u" ? document.body : null), { start: It, stop: Ht } = sn(), at = ye ? gn[ye] : null, P = at?.inputType ?? "date", dt = at?.localized ?? !1, ut = Ie ?? kn(), s = ie(
700
+ () => bn(P, dt, ut, z),
701
+ [P, dt, ut, z]
702
+ ), L = ie(() => Ke(s.isoTpl), [s.isoTpl]), [Pe, ge] = ue(() => {
703
703
  const e = ve(T, s.isoTpl);
704
704
  return ne(s.displayTpl, s.isoTpl, e);
705
705
  }), le = B(Pe);
@@ -728,47 +728,47 @@ const In = ({
728
728
  } catch {
729
729
  }
730
730
  });
731
- const Ht = ie(
732
- () => Ke(s.displayTpl, Pe),
731
+ const Rt = ie(
732
+ () => Qe(s.displayTpl, Pe),
733
733
  [s.displayTpl, Pe]
734
- ), Rt = oe ?? s.placeholder, Et = Math.max(s.displayTpl.length + 1, 9), ut = sn({
734
+ ), Et = oe ?? s.placeholder, Yt = Math.max(s.displayTpl.length + 1, 9), pt = rn({
735
735
  enabled: Z,
736
736
  onSubmit: me
737
737
  }), F = q(
738
738
  (e, n) => {
739
739
  const a = e.slice(0, L);
740
- le.current = a, ge(a), Re.current = Cn(
740
+ le.current = a, ge(a), Re.current = An(
741
741
  s.displayTpl,
742
742
  a,
743
743
  Math.max(0, Math.min(a.length, n))
744
744
  );
745
- const h = vt(bt(s.displayTpl, s.isoTpl, a), $, E);
745
+ const h = $t(vt(s.displayTpl, s.isoTpl, a), $, E);
746
746
  h !== ae.current && (ae.current = h, V?.(h));
747
747
  },
748
748
  [V, s.displayTpl, s.isoTpl, L, $, E]
749
749
  ), _e = q(
750
750
  (e) => {
751
- const n = vt(e, $, E), a = ve(n, s.isoTpl);
751
+ const n = $t(e, $, E), a = ve(n, s.isoTpl);
752
752
  ae.current = n, ge(ne(s.displayTpl, s.isoTpl, a)), V?.(n);
753
753
  },
754
754
  [V, s.displayTpl, s.isoTpl, $, E]
755
755
  ), de = P === "time" || P === "datetime-local", Ee = q(
756
- () => bt(s.displayTpl, s.isoTpl, le.current),
756
+ () => vt(s.displayTpl, s.isoTpl, le.current),
757
757
  [s.displayTpl, s.isoTpl]
758
- ), Yt = q(() => {
758
+ ), zt = q(() => {
759
759
  if (o || c)
760
760
  return;
761
761
  const e = Ee(), n = e ? Ae(e) : null;
762
762
  if (!n)
763
763
  return;
764
764
  const a = n.hours >= 12 ? n.hours - 12 : n.hours + 12;
765
- _e($t(e, a, n.minutes, n.seconds, z));
766
- }, [o, c, Ee, _e, z]), zt = (() => {
765
+ _e(Dt(e, a, n.minutes, n.seconds, z));
766
+ }, [o, c, Ee, _e, z]), Lt = (() => {
767
767
  const e = Ae(T ?? "");
768
768
  return e && e.hours >= 12 ? b("datetime.pm", "PM") : b("datetime.am", "AM");
769
- })(), Lt = q(
769
+ })(), Ft = q(
770
770
  (e) => {
771
- if (ut(e), c || o) {
771
+ if (pt(e), c || o) {
772
772
  D?.(e);
773
773
  return;
774
774
  }
@@ -783,7 +783,7 @@ const In = ({
783
783
  e.preventDefault();
784
784
  const _ = n === "ArrowUp" ? 1 : -1;
785
785
  let { minutes: A, seconds: S } = v;
786
- z ? S = ((S + _) % 60 + 60) % 60 : A = ((A + _ * d) % 60 + 60) % 60, _e($t(M, v.hours, A, S, z)), D?.(e);
786
+ z ? S = ((S + _) % 60 + 60) % 60 : A = ((A + _ * d) % 60 + 60) % 60, _e(Dt(M, v.hours, A, S, z)), D?.(e);
787
787
  return;
788
788
  }
789
789
  }
@@ -801,8 +801,8 @@ const In = ({
801
801
  else if (s.isoTpl === "yyyy-MM-dd")
802
802
  be = `${A}-${S}-${ke}`;
803
803
  else {
804
- const Zt = String(_.getHours()).padStart(2, "0"), Jt = String(_.getMinutes()).padStart(2, "0");
805
- be = `${A}-${S}-${ke}T${Zt}:${Jt}`;
804
+ const Jt = String(_.getHours()).padStart(2, "0"), Kt = String(_.getMinutes()).padStart(2, "0");
805
+ be = `${A}-${S}-${ke}T${Jt}:${Kt}`;
806
806
  }
807
807
  _e(be);
808
808
  }, v = () => {
@@ -881,7 +881,7 @@ const In = ({
881
881
  [
882
882
  F,
883
883
  o,
884
- ut,
884
+ pt,
885
885
  D,
886
886
  c,
887
887
  s.displayTpl,
@@ -895,40 +895,40 @@ const In = ({
895
895
  z,
896
896
  d
897
897
  ]
898
- ), [Ye, Ft] = ue(() => Date.now());
898
+ ), [Ye, St] = ue(() => Date.now());
899
899
  J(() => {
900
900
  if (!De)
901
901
  return;
902
902
  const e = window.setInterval(
903
- () => Ft(Date.now()),
904
- Math.max(100, tt)
903
+ () => St(Date.now()),
904
+ Math.max(100, nt)
905
905
  );
906
906
  return () => window.clearInterval(e);
907
- }, [De, tt]);
907
+ }, [De, nt]);
908
908
  const Te = ie(
909
- () => Pn(T, W, Ye),
909
+ () => Cn(T, W, Ye),
910
910
  [T, W, Ye]
911
- ), pt = B(0);
911
+ ), yt = B(0);
912
912
  J(() => {
913
913
  if (!se)
914
914
  return;
915
915
  const e = Te.getTime();
916
- e !== pt.current && (pt.current = e, se(Te));
916
+ e !== yt.current && (yt.current = e, se(Te));
917
917
  }, [Te, se]);
918
- const yt = ie(() => {
918
+ const mt = ie(() => {
919
919
  if (!De)
920
920
  return null;
921
921
  const e = Te.getTime() - Ye;
922
- return Ue ? Ue(e, Te) : (xn[Qe] ?? Nt)(e, nt ?? b("datetime.countdownDone", "Done"));
922
+ return Ue ? Ue(e, Te) : (Pn[et] ?? wt)(e, it ?? b("datetime.countdownDone", "Done"));
923
923
  }, [
924
924
  De,
925
925
  Te,
926
926
  Ye,
927
927
  Ue,
928
- Qe,
929
- nt,
928
+ et,
929
+ it,
930
930
  b
931
- ]), St = q(
931
+ ]), Ut = q(
932
932
  (e) => {
933
933
  if (c || o)
934
934
  return;
@@ -943,7 +943,7 @@ const In = ({
943
943
  F(be, Math.min(L, S.length + x.length));
944
944
  },
945
945
  [F, o, c, s.displayTpl, s.isoTpl, L]
946
- ), Ut = q(
946
+ ), Bt = q(
947
947
  (e) => {
948
948
  const n = e;
949
949
  if (n.inputType === "insertText" || n.inputType === "insertCompositionText" || n.inputType === "insertFromComposition") {
@@ -960,7 +960,7 @@ const In = ({
960
960
  }
961
961
  },
962
962
  [F, s.displayTpl, L]
963
- ), Bt = q(
963
+ ), jt = q(
964
964
  (e) => {
965
965
  if (c || o)
966
966
  return;
@@ -977,16 +977,16 @@ const In = ({
977
977
  F(a, a.length);
978
978
  },
979
979
  [F, o, c, s.displayTpl, s.isoTpl, L]
980
- ), mt = q(() => {
980
+ ), ft = q(() => {
981
981
  F("", 0), requestAnimationFrame(() => we.current?.focus());
982
- }, [F]), We = q(() => {
982
+ }, [F]), Ge = q(() => {
983
983
  if (o || c)
984
984
  return;
985
985
  if (P === "date" || P === "datetime-local" || P === "time") {
986
986
  He((a) => !a);
987
987
  return;
988
988
  }
989
- const e = ot.current;
989
+ const e = ct.current;
990
990
  if (!e)
991
991
  return;
992
992
  const n = e;
@@ -999,24 +999,24 @@ const In = ({
999
999
  }
1000
1000
  e.focus(), e.click();
1001
1001
  }, [o, c, P]), Ce = $e && !o && !c;
1002
- rn(
1002
+ ln(
1003
1003
  ["secondary"],
1004
1004
  () => {
1005
- We();
1005
+ Ge();
1006
1006
  },
1007
1007
  { ref: re, enabled: Ce }
1008
- ), ln(
1008
+ ), an(
1009
1009
  re,
1010
1010
  [{ intent: "secondary", label: b("controls.openPicker", "Open picker") }],
1011
1011
  { enabled: Ce }
1012
1012
  );
1013
- const jt = q(
1013
+ const Vt = q(
1014
1014
  (e) => {
1015
1015
  const n = e.target.value, a = ve(n, s.isoTpl), h = ne(s.displayTpl, s.isoTpl, a);
1016
1016
  ae.current = n, ge(h), V?.(n), requestAnimationFrame(() => we.current?.focus());
1017
1017
  },
1018
1018
  [V, s.displayTpl, s.isoTpl]
1019
- ), ft = q(() => {
1019
+ ), Mt = q(() => {
1020
1020
  if (o || c)
1021
1021
  return;
1022
1022
  const e = /* @__PURE__ */ new Date(), n = (v) => String(v).padStart(2, "0"), a = `${e.getFullYear()}-${n(e.getMonth() + 1)}-${n(e.getDate())}`, h = `${n(e.getHours())}:${n(e.getMinutes())}`, x = z ? `${h}:${n(e.getSeconds())}` : h;
@@ -1024,7 +1024,7 @@ const In = ({
1024
1024
  P === "time" ? C = x : P === "datetime-local" ? C = `${a}T${x}` : P === "month" ? C = `${e.getFullYear()}-${n(e.getMonth() + 1)}` : C = a;
1025
1025
  const M = ve(C, s.isoTpl);
1026
1026
  ae.current = C, ge(ne(s.displayTpl, s.isoTpl, M)), V?.(C);
1027
- }, [o, c, P, z, V, s.displayTpl, s.isoTpl]), ze = P === "date" || P === "datetime-local", Ge = (() => {
1027
+ }, [o, c, P, z, V, s.displayTpl, s.isoTpl]), ze = P === "date" || P === "datetime-local", Oe = (() => {
1028
1028
  const e = /^(\d{4}-\d{2}-\d{2})/.exec(T ?? "");
1029
1029
  return e ? e[1] : "";
1030
1030
  })(), te = Ae(T ?? "") ?? { hours: 0, minutes: 0, seconds: 0 }, Le = () => {
@@ -1034,39 +1034,39 @@ const In = ({
1034
1034
  const a = z ? `${k(n.hours)}:${k(n.minutes)}:${k(n.seconds)}` : `${k(n.hours)}:${k(n.minutes)}`;
1035
1035
  let h;
1036
1036
  P === "time" ? h = a : P === "datetime-local" ? h = `${e}T${a}` : h = e, _e(h);
1037
- }, Vt = (e) => {
1037
+ }, qt = (e) => {
1038
1038
  e && Fe(e, de ? te : { hours: 0, minutes: 0, seconds: 0 });
1039
- }, Mt = (e, n) => {
1040
- Fe(ze ? Ge || Le() : "", { ...te, [e]: n });
1041
- }, ht = (e) => e === "hours" ? 23 : 59, gt = (e) => e === "minutes" && d && d > 0 ? d : 1, qt = (e, n) => {
1042
- const a = ht(e), h = gt(e), x = a + 1, C = ((te[e] + n * h) % x + x) % x;
1043
- Mt(e, C);
1044
- }, Oe = (e, n, a) => /* @__PURE__ */ p(
1045
- In,
1039
+ }, ht = (e, n) => {
1040
+ Fe(ze ? Oe || Le() : "", { ...te, [e]: n });
1041
+ }, gt = (e) => e === "hours" ? 23 : 59, _t = (e) => e === "minutes" && d && d > 0 ? d : 1, Wt = (e, n) => {
1042
+ const a = gt(e), h = _t(e), x = a + 1, C = ((te[e] + n * h) % x + x) % x;
1043
+ ht(e, C);
1044
+ }, Xe = (e, n, a) => /* @__PURE__ */ p(
1045
+ Hn,
1046
1046
  {
1047
1047
  label: b(n, a),
1048
1048
  value: te[e],
1049
- max: ht(e),
1050
- step: gt(e),
1051
- onPick: (h) => Mt(e, h),
1052
- onStep: (h) => qt(e, h),
1053
- startHold: At,
1054
- stopHold: It
1049
+ max: gt(e),
1050
+ step: _t(e),
1051
+ onPick: (h) => ht(e, h),
1052
+ onStep: (h) => Wt(e, h),
1053
+ startHold: It,
1054
+ stopHold: Ht
1055
1055
  }
1056
- ), Wt = () => {
1056
+ ), Gt = () => {
1057
1057
  Fe(Le(), de ? te : { hours: 0, minutes: 0, seconds: 0 });
1058
1058
  }, Se = (() => {
1059
1059
  const e = Le(), n = $ && $.length >= 10 ? $.slice(0, 10) : $, a = E && E.length >= 10 ? E.slice(0, 10) : E;
1060
1060
  return !!(n && e < n || a && e > a);
1061
- })(), Gt = () => {
1061
+ })(), Ot = () => {
1062
1062
  He(!1), requestAnimationFrame(() => we.current?.focus());
1063
1063
  };
1064
- Dt(() => {
1064
+ Nt(() => {
1065
1065
  if (!he)
1066
1066
  return;
1067
1067
  const e = re.current?.getBoundingClientRect();
1068
- e && (ct({ left: e.left, top: e.bottom + 6 }), Ct(fn(re.current)));
1069
- }, [he]), J(() => {
1068
+ e && (st({ left: e.left, top: e.bottom + 6 }), At(We?.portalTarget ? "" : Mn(re.current)));
1069
+ }, [he, We?.portalTarget]), J(() => {
1070
1070
  if (!he)
1071
1071
  return;
1072
1072
  const e = (a) => {
@@ -1074,27 +1074,27 @@ const In = ({
1074
1074
  re.current?.contains(h) || je.current?.contains(h) || He(!1);
1075
1075
  }, n = () => {
1076
1076
  const a = re.current?.getBoundingClientRect();
1077
- a && ct({ left: a.left, top: a.bottom + 6 });
1077
+ a && st({ left: a.left, top: a.bottom + 6 });
1078
1078
  };
1079
1079
  return document.addEventListener("mousedown", e), window.addEventListener("scroll", n, !0), window.addEventListener("resize", n), () => {
1080
1080
  document.removeEventListener("mousedown", e), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
1081
1081
  };
1082
- }, [he]), an(je, {
1082
+ }, [he]), dn(je, {
1083
1083
  open: he,
1084
1084
  modal: !1,
1085
1085
  initialFocus: '.nice-calendar__grid [tabindex="0"], .nice-datetime-popup__spin-value',
1086
1086
  onClose: () => He(!1)
1087
1087
  });
1088
- const Ot = q(
1088
+ const Xt = q(
1089
1089
  (e) => {
1090
1090
  we.current = e, typeof Ne == "function" ? Ne(e) : Ne && (Ne.current = e);
1091
1091
  },
1092
1092
  [Ne]
1093
- ), _t = ie(() => {
1093
+ ), Tt = ie(() => {
1094
1094
  const e = [];
1095
- return Z && e.push(dn.submit), e.push({ key: "Esc", description: b("shortcuts.clearDate", "Clear value") }), e;
1096
- }, [Z, b]), Xt = P === "time";
1097
- return Pt ? null : /* @__PURE__ */ I(
1095
+ return Z && e.push(un.submit), e.push({ key: "Esc", description: b("shortcuts.clearDate", "Clear value") }), e;
1096
+ }, [Z, b]), Zt = P === "time";
1097
+ return Ct ? null : /* @__PURE__ */ I(
1098
1098
  "div",
1099
1099
  {
1100
1100
  className: `nice-field nice-field--${u}${f ? ` nice-field--label-${f}` : ""}${w === "right" ? " nice-field--error-right" : ""} ${Y ? "nice-field--loading" : ""} ${N || ""}`,
@@ -1112,11 +1112,11 @@ const In = ({
1112
1112
  t && /* @__PURE__ */ I(
1113
1113
  "label",
1114
1114
  {
1115
- htmlFor: it,
1115
+ htmlFor: ot,
1116
1116
  className: `nice-field__label ${l ? "nice-field__label--required" : ""}`,
1117
1117
  children: [
1118
1118
  t,
1119
- fe && _t.length > 0 && /* @__PURE__ */ p(un, { shortcuts: _t, size: "sm" })
1119
+ fe && Tt.length > 0 && /* @__PURE__ */ p(pn, { shortcuts: Tt, size: "sm" })
1120
1120
  ]
1121
1121
  }
1122
1122
  ),
@@ -1125,19 +1125,19 @@ const In = ({
1125
1125
  "div",
1126
1126
  {
1127
1127
  ref: re,
1128
- className: `nice-input nice-input--date nice-input--${u} nice-input--ds-${xt} ${i ? "nice-input--error" : ""} ${o ? "nice-input--disabled" : ""} ${c ? "nice-input--readonly" : ""}`,
1129
- style: { ...wt, position: "relative" },
1128
+ className: `nice-input nice-input--date nice-input--${u} nice-input--ds-${Pt} ${i ? "nice-input--error" : ""} ${o ? "nice-input--disabled" : ""} ${c ? "nice-input--readonly" : ""}`,
1129
+ style: { ...xt, position: "relative" },
1130
1130
  children: [
1131
1131
  /* @__PURE__ */ p(
1132
1132
  "input",
1133
1133
  {
1134
- ref: Ot,
1135
- id: it,
1134
+ ref: Xt,
1135
+ id: ot,
1136
1136
  className: "nice-input__native nice-masked-input",
1137
1137
  type: "text",
1138
1138
  name: y,
1139
- value: Ht,
1140
- placeholder: Rt,
1139
+ value: Rt,
1140
+ placeholder: Et,
1141
1141
  disabled: o || Y,
1142
1142
  readOnly: c,
1143
1143
  autoComplete: "off",
@@ -1150,21 +1150,21 @@ const In = ({
1150
1150
  "data-display-tpl": s.displayTpl,
1151
1151
  "data-iso-tpl": s.isoTpl,
1152
1152
  style: {
1153
- width: `${Et}ch`,
1153
+ width: `${Yt}ch`,
1154
1154
  fontFamily: "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",
1155
1155
  fontVariantNumeric: "tabular-nums"
1156
1156
  },
1157
- onBeforeInput: Ut,
1158
- onChange: Bt,
1157
+ onBeforeInput: Bt,
1158
+ onChange: jt,
1159
1159
  onBlur: H,
1160
1160
  onKeyDown: (e) => {
1161
1161
  if (Ce && e.altKey && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
1162
- e.preventDefault(), We();
1162
+ e.preventDefault(), Ge();
1163
1163
  return;
1164
1164
  }
1165
- Lt(e);
1165
+ Ft(e);
1166
1166
  },
1167
- onPaste: St
1167
+ onPaste: Ut
1168
1168
  }
1169
1169
  ),
1170
1170
  ee && /* @__PURE__ */ p(
@@ -1172,24 +1172,24 @@ const In = ({
1172
1172
  {
1173
1173
  type: "button",
1174
1174
  className: "nice-input__clear",
1175
- onClick: mt,
1175
+ onClick: ft,
1176
1176
  disabled: !T || o || c,
1177
1177
  "aria-label": b("controls.clear", "Clear"),
1178
1178
  tabIndex: T && !o && !c ? 0 : -1,
1179
1179
  children: /* @__PURE__ */ p(pe, { name: "close", size: 14 })
1180
1180
  }
1181
1181
  ),
1182
- $e && /* @__PURE__ */ I(Tt, { children: [
1182
+ $e && /* @__PURE__ */ I(kt, { children: [
1183
1183
  /* @__PURE__ */ p(
1184
1184
  "button",
1185
1185
  {
1186
1186
  type: "button",
1187
1187
  className: "nice-input__picker-trigger",
1188
- onClick: We,
1188
+ onClick: Ge,
1189
1189
  "aria-label": b("controls.openPicker", "Open picker"),
1190
1190
  tabIndex: -1,
1191
1191
  disabled: o || c,
1192
- children: Xt ? (
1192
+ children: Zt ? (
1193
1193
  /* Clock icon */
1194
1194
  /* @__PURE__ */ p(pe, { name: "clock", size: 16 })
1195
1195
  ) : (
@@ -1201,14 +1201,14 @@ const In = ({
1201
1201
  /* @__PURE__ */ p(
1202
1202
  "input",
1203
1203
  {
1204
- ref: ot,
1204
+ ref: ct,
1205
1205
  type: P,
1206
1206
  className: "nice-input__picker-companion",
1207
1207
  value: T ?? "",
1208
1208
  min: $,
1209
1209
  max: E,
1210
1210
  step: P === "time" || P === "datetime-local" ? z ? 1 : d ? d * 60 : void 0 : void 0,
1211
- onChange: jt,
1211
+ onChange: Vt,
1212
1212
  tabIndex: -1,
1213
1213
  "aria-hidden": "true",
1214
1214
  style: {
@@ -1230,23 +1230,23 @@ const In = ({
1230
1230
  {
1231
1231
  type: "button",
1232
1232
  className: "nice-input__ampm",
1233
- onClick: Yt,
1233
+ onClick: zt,
1234
1234
  disabled: !T,
1235
1235
  "aria-label": b("datetime.toggleAmPm", "Toggle AM/PM"),
1236
1236
  tabIndex: -1,
1237
- children: zt
1237
+ children: Lt
1238
1238
  }
1239
1239
  ),
1240
- m && !o && !c && /* @__PURE__ */ p("button", { type: "button", className: "nice-input__now", onClick: ft, tabIndex: -1, children: b("controls.now", "Now") })
1240
+ m && !o && !c && /* @__PURE__ */ p("button", { type: "button", className: "nice-input__now", onClick: Mt, tabIndex: -1, children: b("controls.now", "Now") })
1241
1241
  ]
1242
1242
  }
1243
1243
  ),
1244
- he && Ve && rt && mn(
1244
+ he && Ve && lt && fn(
1245
1245
  /* @__PURE__ */ I(
1246
1246
  "div",
1247
1247
  {
1248
1248
  ref: je,
1249
- className: `nice-datetime-popup${st ? ` ${st}` : ""}`,
1249
+ className: `nice-datetime-popup${rt ? ` ${rt}` : ""}`,
1250
1250
  style: {
1251
1251
  position: "fixed",
1252
1252
  left: Ve.left,
@@ -1258,10 +1258,10 @@ const In = ({
1258
1258
  children: [
1259
1259
  /* @__PURE__ */ I("div", { className: "nice-datetime-popup__body", children: [
1260
1260
  ze && /* @__PURE__ */ p("div", { className: "nice-datetime-popup__col nice-datetime-popup__col--date", children: /* @__PURE__ */ p(
1261
- Mn,
1261
+ hn,
1262
1262
  {
1263
- value: Ge,
1264
- onChange: Vt,
1263
+ value: Oe,
1264
+ onChange: qt,
1265
1265
  min: $ && $.length >= 10 ? $.slice(0, 10) : void 0,
1266
1266
  max: E && E.length >= 10 ? E.slice(0, 10) : void 0
1267
1267
  }
@@ -1304,12 +1304,12 @@ const In = ({
1304
1304
  }
1305
1305
  ),
1306
1306
  xe === "clock" ? /* @__PURE__ */ p(
1307
- Hn,
1307
+ Rn,
1308
1308
  {
1309
1309
  hours: te.hours,
1310
1310
  minutes: te.minutes,
1311
1311
  minuteStep: d,
1312
- onChange: (e, n) => Fe(ze ? Ge || Le() : "", {
1312
+ onChange: (e, n) => Fe(ze ? Oe || Le() : "", {
1313
1313
  ...te,
1314
1314
  hours: e,
1315
1315
  minutes: n
@@ -1317,12 +1317,12 @@ const In = ({
1317
1317
  t: b
1318
1318
  }
1319
1319
  ) : /* @__PURE__ */ I("div", { className: "nice-datetime-popup__time", role: "group", children: [
1320
- Oe("hours", "datetime.hours", "Hours"),
1320
+ Xe("hours", "datetime.hours", "Hours"),
1321
1321
  /* @__PURE__ */ p("span", { className: "nice-datetime-popup__time-sep", children: ":" }),
1322
- Oe("minutes", "datetime.minutes", "Minutes"),
1323
- z && /* @__PURE__ */ I(Tt, { children: [
1322
+ Xe("minutes", "datetime.minutes", "Minutes"),
1323
+ z && /* @__PURE__ */ I(kt, { children: [
1324
1324
  /* @__PURE__ */ p("span", { className: "nice-datetime-popup__time-sep", children: ":" }),
1325
- Oe("seconds", "datetime.seconds", "Seconds")
1325
+ Xe("seconds", "datetime.seconds", "Seconds")
1326
1326
  ] })
1327
1327
  ] })
1328
1328
  ] })
@@ -1333,7 +1333,7 @@ const In = ({
1333
1333
  {
1334
1334
  type: "button",
1335
1335
  className: "nice-datetime-popup__btn",
1336
- onClick: mt,
1336
+ onClick: ft,
1337
1337
  children: b("controls.clear", "Clear")
1338
1338
  }
1339
1339
  ),
@@ -1342,7 +1342,7 @@ const In = ({
1342
1342
  {
1343
1343
  type: "button",
1344
1344
  className: "nice-datetime-popup__btn",
1345
- onClick: Wt,
1345
+ onClick: Gt,
1346
1346
  disabled: Se,
1347
1347
  "aria-disabled": Se || void 0,
1348
1348
  children: b("controls.today", "Today")
@@ -1353,7 +1353,7 @@ const In = ({
1353
1353
  {
1354
1354
  type: "button",
1355
1355
  className: "nice-datetime-popup__btn",
1356
- onClick: ft,
1356
+ onClick: Mt,
1357
1357
  disabled: Se,
1358
1358
  "aria-disabled": Se || void 0,
1359
1359
  children: b("controls.now", "Now")
@@ -1364,7 +1364,7 @@ const In = ({
1364
1364
  {
1365
1365
  type: "button",
1366
1366
  className: "nice-datetime-popup__btn nice-datetime-popup__btn--primary",
1367
- onClick: Gt,
1367
+ onClick: Ot,
1368
1368
  children: b("controls.confirm", "Confirm")
1369
1369
  }
1370
1370
  )
@@ -1372,14 +1372,14 @@ const In = ({
1372
1372
  ]
1373
1373
  }
1374
1374
  ),
1375
- rt
1375
+ lt
1376
1376
  ),
1377
- De && yt != null && /* @__PURE__ */ I("span", { className: "nice-datetime__countdown", "aria-live": "polite", children: [
1378
- et && /* @__PURE__ */ I("span", { className: "nice-datetime__countdown-label", children: [
1379
- et,
1377
+ De && mt != null && /* @__PURE__ */ I("span", { className: "nice-datetime__countdown", "aria-live": "polite", children: [
1378
+ tt && /* @__PURE__ */ I("span", { className: "nice-datetime__countdown-label", children: [
1379
+ tt,
1380
1380
  " "
1381
1381
  ] }),
1382
- /* @__PURE__ */ p("span", { className: "nice-datetime__countdown-value", children: yt })
1382
+ /* @__PURE__ */ p("span", { className: "nice-datetime__countdown-value", children: mt })
1383
1383
  ] }),
1384
1384
  Y && /* @__PURE__ */ p("span", { className: "nice-field__spinner", children: /* @__PURE__ */ p("span", { className: "nice-spinner nice-spinner--sm" }) }),
1385
1385
  w === "right" && i && /* @__PURE__ */ p("div", { className: "nice-field__error", role: "alert", children: i }),
@@ -1396,5 +1396,5 @@ const In = ({
1396
1396
  );
1397
1397
  export {
1398
1398
  Un as NiceDateTimePicker,
1399
- Tn as getDefaultLocale
1399
+ kn as getDefaultLocale
1400
1400
  };