@konstructio/ui 0.1.2-alpha.44 → 0.1.2-alpha.47

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 (68) hide show
  1. package/dist/components/AlertDialog/AlertDialog.js +39 -37
  2. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
  3. package/dist/components/AlertDialog/components/index.js +1 -1
  4. package/dist/components/Badge/Badge.js +23 -26
  5. package/dist/components/Badge/Badge.variants.js +1 -1
  6. package/dist/components/Button/Button.variants.js +108 -98
  7. package/dist/components/Checkbox/Checkbox.js +104 -100
  8. package/dist/components/Checkbox/Checkbox.variants.js +30 -7
  9. package/dist/components/Counter/Counter.js +210 -0
  10. package/dist/components/Counter/Counter.variants.js +70 -0
  11. package/dist/components/Filter/Filter.js +1 -1
  12. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +9 -10
  13. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  14. package/dist/components/Filter/components/ResetButton/ResetButton.js +21 -32
  15. package/dist/components/Filter/events/index.js +3 -3
  16. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  17. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  18. package/dist/components/Input/Input.variants.js +10 -2
  19. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +4 -4
  20. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +16 -7
  21. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +92 -74
  22. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +53 -29
  23. package/dist/components/PhoneNumberInput/components/Wrapper.js +139 -120
  24. package/dist/components/Radio/Radio.js +47 -44
  25. package/dist/components/Radio/Radio.variants.js +12 -8
  26. package/dist/components/Select/Select.js +48 -0
  27. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +3 -3
  28. package/dist/components/{Dropdown → Select}/components/List/List.js +48 -43
  29. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +8 -5
  30. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.js +20 -20
  31. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +3 -2
  32. package/dist/components/{Dropdown → Select}/components/Wrapper.js +70 -70
  33. package/dist/components/Select/contexts/index.js +6 -0
  34. package/dist/components/{Dropdown/contexts/dropdown.context.js → Select/contexts/select.context.js} +2 -2
  35. package/dist/components/Select/contexts/select.hook.js +11 -0
  36. package/dist/components/Select/contexts/select.provider.js +58 -0
  37. package/dist/components/{Dropdown → Select}/hooks/useNavigationList.js +3 -3
  38. package/dist/components/{Dropdown/hooks/useDropdown.js → Select/hooks/useSelect.js} +33 -33
  39. package/dist/components/Switch/Switch.js +153 -125
  40. package/dist/components/Switch/Switch.variants.js +15 -6
  41. package/dist/components/TimePicker/TimePicker.variants.js +11 -6
  42. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
  43. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +50 -35
  44. package/dist/components/Typography/Typography.js +24 -28
  45. package/dist/components/Typography/Typography.variants.js +49 -46
  46. package/dist/components/VirtualizedTable/components/Actions/Actions.js +14 -14
  47. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +10 -10
  48. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +1 -1
  49. package/dist/components/index.js +84 -80
  50. package/dist/{index-CPU02rhe.js → index-D6KzX_ef.js} +13 -12
  51. package/dist/index.d.ts +134 -81
  52. package/dist/index.js +114 -110
  53. package/dist/package.json +4 -4
  54. package/dist/styles.css +1 -1
  55. package/dist/ui/civo-theme.css +6 -5
  56. package/dist/ui/theme.css +27 -0
  57. package/dist/x-BXShoIAM.js +8 -0
  58. package/package.json +4 -4
  59. package/dist/components/Dropdown/Dropdown.js +0 -48
  60. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  61. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -58
  62. package/dist/components/Dropdown/contexts/index.js +0 -6
  63. package/dist/components/NumberInput/NumberInput.js +0 -179
  64. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  65. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  66. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
  67. /package/dist/components/{Dropdown → Select}/constants/index.js +0 -0
  68. /package/dist/components/{Dropdown → Select}/constants/pagination.js +0 -0
@@ -1,19 +1,20 @@
1
1
  import "./FlagSelectorList/FlagSelectorList.js";
2
2
  import { jsxs as Z, jsx as V } from "react/jsx-runtime";
3
- import { i as Te } from "../../../index-BmVmDQGH.js";
4
- import { useRef as ee, useMemo as Ie, forwardRef as Ae, useId as Ne, useImperativeHandle as Be, useCallback as Re, useEffect as ce } from "react";
5
- import { cn as Ge } from "../../../utils/index.js";
6
- import { labelVariants as Le, phoneNumberInputVariants as Ve } from "../PhoneNumberInput.variants.js";
7
- import { usePhoneNumberContext as xe } from "../contexts/phone-number.hook.js";
8
- import { getPhoneMask as Ke } from "../utils/index.js";
9
- import { FlagContent as De } from "./FlagContent/FlagContent.js";
10
- import { FlagSelectorWrapper as Fe } from "./FlagSelectorWrapper/FlagSelectorWrapper.js";
11
- function se(e, t) {
3
+ import { i as Ae } from "../../../index-BmVmDQGH.js";
4
+ import { useRef as ee, useMemo as Ne, forwardRef as Be, useId as Re, useImperativeHandle as Ge, useCallback as Le, useEffect as ce } from "react";
5
+ import { Typography as se } from "../../Typography/Typography.js";
6
+ import { cn as pe } from "../../../utils/index.js";
7
+ import { labelVariants as Ve, phoneNumberInputVariants as xe } from "../PhoneNumberInput.variants.js";
8
+ import { usePhoneNumberContext as Ke } from "../contexts/phone-number.hook.js";
9
+ import { getPhoneMask as De } from "../utils/index.js";
10
+ import { FlagContent as Fe } from "./FlagContent/FlagContent.js";
11
+ import { FlagSelectorWrapper as Ue } from "./FlagSelectorWrapper/FlagSelectorWrapper.js";
12
+ function fe(e, t) {
12
13
  (t == null || t > e.length) && (t = e.length);
13
14
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
14
15
  return r;
15
16
  }
16
- function Ue(e, t, n) {
17
+ function $e(e, t, n) {
17
18
  return t = Y(t), (function(r, o) {
18
19
  if (o && (typeof o == "object" || typeof o == "function")) return o;
19
20
  if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
@@ -21,22 +22,22 @@ function Ue(e, t, n) {
21
22
  if (a === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
22
23
  return a;
23
24
  })(r);
24
- })(e, Oe() ? Reflect.construct(t, n || [], Y(e).constructor) : t.apply(e, n));
25
+ })(e, we() ? Reflect.construct(t, n || [], Y(e).constructor) : t.apply(e, n));
25
26
  }
26
- function $e(e, t) {
27
+ function ze(e, t) {
27
28
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
28
29
  }
29
- function ze(e, t, n) {
30
+ function He(e, t, n) {
30
31
  return Object.defineProperty(e, "prototype", { writable: !1 }), e;
31
32
  }
32
- function ge(e, t) {
33
+ function Oe(e, t) {
33
34
  var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
34
35
  if (!n) {
35
36
  if (Array.isArray(e) || (n = (function(i, c) {
36
37
  if (i) {
37
- if (typeof i == "string") return se(i, c);
38
+ if (typeof i == "string") return fe(i, c);
38
39
  var p = {}.toString.call(i).slice(8, -1);
39
- return p === "Object" && i.constructor && (p = i.constructor.name), p === "Map" || p === "Set" ? Array.from(i) : p === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p) ? se(i, c) : void 0;
40
+ return p === "Object" && i.constructor && (p = i.constructor.name), p === "Map" || p === "Set" ? Array.from(i) : p === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p) ? fe(i, c) : void 0;
40
41
  }
41
42
  })(e)) || t) {
42
43
  n && (e = n);
@@ -67,7 +68,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
67
68
  }
68
69
  } };
69
70
  }
70
- function be(e, t, n) {
71
+ function Se(e, t, n) {
71
72
  return (t = (function(r) {
72
73
  var o = (function(a, l) {
73
74
  if (typeof a != "object" || !a) return a;
@@ -87,21 +88,21 @@ function Y(e) {
87
88
  return t.__proto__ || Object.getPrototypeOf(t);
88
89
  }, Y(e);
89
90
  }
90
- function He(e, t) {
91
+ function _e(e, t) {
91
92
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
92
93
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && te(e, t);
93
94
  }
94
- function Oe() {
95
+ function we() {
95
96
  try {
96
97
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {
97
98
  })));
98
99
  } catch {
99
100
  }
100
- return (Oe = function() {
101
+ return (we = function() {
101
102
  return !!e;
102
103
  })();
103
104
  }
104
- function pe(e, t) {
105
+ function de(e, t) {
105
106
  var n = Object.keys(e);
106
107
  if (Object.getOwnPropertySymbols) {
107
108
  var r = Object.getOwnPropertySymbols(e);
@@ -114,15 +115,15 @@ function pe(e, t) {
114
115
  function J(e) {
115
116
  for (var t = 1; t < arguments.length; t++) {
116
117
  var n = arguments[t] != null ? arguments[t] : {};
117
- t % 2 ? pe(Object(n), !0).forEach((function(r) {
118
- be(e, r, n[r]);
119
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : pe(Object(n)).forEach((function(r) {
118
+ t % 2 ? de(Object(n), !0).forEach((function(r) {
119
+ Se(e, r, n[r]);
120
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : de(Object(n)).forEach((function(r) {
120
121
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
121
122
  }));
122
123
  }
123
124
  return e;
124
125
  }
125
- function _e(e, t) {
126
+ function We(e, t) {
126
127
  if (e == null) return {};
127
128
  var n, r, o = (function(l, u) {
128
129
  if (l == null) return {};
@@ -145,7 +146,7 @@ function te(e, t) {
145
146
  }, te(e, t);
146
147
  }
147
148
  function U(e, t) {
148
- var n, r = t.replacementChars, o = t.replacement, a = t.separate, l = r, u = "", i = ge(e);
149
+ var n, r = t.replacementChars, o = t.replacement, a = t.separate, l = r, u = "", i = Oe(e);
149
150
  try {
150
151
  for (i.s(); !(n = i.n()).done; ) {
151
152
  var c, p = n.value, f = !Object.prototype.hasOwnProperty.call(o, p) && ((c = o[l[0]]) === null || c === void 0 ? void 0 : c.test(p));
@@ -158,8 +159,8 @@ function U(e, t) {
158
159
  }
159
160
  return u;
160
161
  }
161
- function Se(e, t) {
162
- var n, r = t.mask, o = t.replacement, a = t.separate, l = t.showMask, u = 0, i = "", c = ge(r);
162
+ function ke(e, t) {
163
+ var n, r = t.mask, o = t.replacement, a = t.separate, l = t.showMask, u = 0, i = "", c = Oe(r);
163
164
  try {
164
165
  for (c.s(); !(n = c.n()).done; ) {
165
166
  var p = n.value;
@@ -177,7 +178,7 @@ function Se(e, t) {
177
178
  }
178
179
  return i;
179
180
  }
180
- function we(e, t) {
181
+ function Pe(e, t) {
181
182
  for (var n = t.mask, r = t.replacement, o = [], a = 0; a < n.length; a++) {
182
183
  var l, u = (l = e[a]) !== null && l !== void 0 ? l : n[a], i = Object.prototype.hasOwnProperty.call(r, u) ? "replacement" : e[a] !== void 0 && e[a] !== n[a] ? "input" : "mask";
183
184
  o.push({ type: i, value: u, index: a });
@@ -185,7 +186,7 @@ function we(e, t) {
185
186
  return o;
186
187
  }
187
188
  function K(e) {
188
- return e.length > 0 ? be({}, e, /./) : {};
189
+ return e.length > 0 ? Se({}, e, /./) : {};
189
190
  }
190
191
  function ne(e, t) {
191
192
  for (var n = t.start, r = n === void 0 ? 0 : n, o = t.end, a = t.mask, l = t.replacement, u = t.separate, i = e.slice(r, o), c = a.slice(r, o), p = "", f = 0; f < c.length; f++) {
@@ -194,35 +195,35 @@ function ne(e, t) {
194
195
  }
195
196
  return p;
196
197
  }
197
- function ke(e, t) {
198
+ function Me(e, t) {
198
199
  var n = t.mask, r = t.replacement, o = typeof r == "string" ? K(r) : r, a = RegExp("[^".concat(Object.keys(o).join(""), "]"), "g");
199
- return Se(U(e, { replacementChars: n.replace(a, ""), replacement: o, separate: !1 }), { mask: n, replacement: o, separate: !1, showMask: !1 });
200
+ return ke(U(e, { replacementChars: n.replace(a, ""), replacement: o, separate: !1 }), { mask: n, replacement: o, separate: !1, showMask: !1 });
200
201
  }
201
- function We(e, t) {
202
+ function Ze(e, t) {
202
203
  var n = t.mask, r = t.replacement, o = typeof r == "string" ? K(r) : r, a = ne(e, { mask: n, replacement: o, separate: !1 }), l = RegExp("[^".concat(Object.keys(o).join(""), "]"), "g");
203
204
  return U(a, { replacementChars: n.replace(l, ""), replacement: o, separate: !1 });
204
205
  }
205
- function Ze(e, t) {
206
+ function Je(e, t) {
206
207
  var n = t.mask, r = t.replacement, o = typeof r == "string" ? K(r) : r;
207
- return we(ke(e, { mask: n, replacement: o }), { mask: n, replacement: o });
208
+ return Pe(Me(e, { mask: n, replacement: o }), { mask: n, replacement: o });
208
209
  }
209
- var Je = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
210
- function fe(e) {
211
- return Je.includes(e) ? "\\".concat(e) : e;
210
+ var Ye = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
211
+ function me(e) {
212
+ return Ye.includes(e) ? "\\".concat(e) : e;
212
213
  }
213
- function Ye(e, t) {
214
+ function Qe(e, t) {
214
215
  for (var n = t.mask, r = t.replacement, o = typeof r == "string" ? K(r) : r, a = e === "partial" || e === "partial-inexact", l = e === "full" || e === "partial", u = "", i = 0; i < n.length; i++) {
215
216
  var c = n[i];
216
- i === 0 && (u = "^"), a && (u += "("), u += Object.prototype.hasOwnProperty.call(o, c) ? "".concat(l ? "(?!".concat(fe(c), ")") : "", "(").concat(o[c].source, ")") : fe(c), i === n.length - 1 && (a && (u += ")?".repeat(n.length)), u += "$");
217
+ i === 0 && (u = "^"), a && (u += "("), u += Object.prototype.hasOwnProperty.call(o, c) ? "".concat(l ? "(?!".concat(me(c), ")") : "", "(").concat(o[c].source, ")") : me(c), i === n.length - 1 && (a && (u += ")?".repeat(n.length)), u += "$");
217
218
  }
218
219
  return u;
219
220
  }
220
- function Qe(e, t) {
221
+ function qe(e, t) {
221
222
  return new Proxy(e, { set: function(n, r, o) {
222
223
  return r === "current" && (o !== e.current && (e.current !== null && t.unregister(e.current), o !== null && t.register(o)), n[r] = o, !0);
223
224
  } });
224
225
  }
225
- function qe(e, t, n) {
226
+ function Xe(e, t, n) {
226
227
  return t = z(t), (function(r, o) {
227
228
  if (o && (typeof o == "object" || typeof o == "function")) return o;
228
229
  if (o !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
@@ -232,13 +233,13 @@ function qe(e, t, n) {
232
233
  })(r);
233
234
  })(e, ae() ? Reflect.construct(t, n || [], z(e).constructor) : t.apply(e, n));
234
235
  }
235
- function Pe(e, t) {
236
+ function Ee(e, t) {
236
237
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
237
238
  }
238
- function Me(e, t, n) {
239
+ function Ce(e, t, n) {
239
240
  return Object.defineProperty(e, "prototype", { writable: !1 }), e;
240
241
  }
241
- function Xe(e, t, n) {
242
+ function et(e, t, n) {
242
243
  return (t = (function(r) {
243
244
  var o = (function(a, l) {
244
245
  if (typeof a != "object" || !a) return a;
@@ -258,7 +259,7 @@ function z(e) {
258
259
  return t.__proto__ || Object.getPrototypeOf(t);
259
260
  }, z(e);
260
261
  }
261
- function et(e, t) {
262
+ function tt(e, t) {
262
263
  if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
263
264
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && H(e, t);
264
265
  }
@@ -272,7 +273,7 @@ function ae() {
272
273
  return !!e;
273
274
  })();
274
275
  }
275
- function de(e, t) {
276
+ function ve(e, t) {
276
277
  var n = Object.keys(e);
277
278
  if (Object.getOwnPropertySymbols) {
278
279
  var r = Object.getOwnPropertySymbols(e);
@@ -282,18 +283,18 @@ function de(e, t) {
282
283
  }
283
284
  return n;
284
285
  }
285
- function ve(e) {
286
+ function he(e) {
286
287
  for (var t = 1; t < arguments.length; t++) {
287
288
  var n = arguments[t] != null ? arguments[t] : {};
288
- t % 2 ? de(Object(n), !0).forEach((function(r) {
289
- Xe(e, r, n[r]);
290
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : de(Object(n)).forEach((function(r) {
289
+ t % 2 ? ve(Object(n), !0).forEach((function(r) {
290
+ et(e, r, n[r]);
291
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ve(Object(n)).forEach((function(r) {
291
292
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
292
293
  }));
293
294
  }
294
295
  return e;
295
296
  }
296
- function tt(e, t) {
297
+ function nt(e, t) {
297
298
  if (e == null) return {};
298
299
  var n, r, o = (function(l, u) {
299
300
  if (l == null) return {};
@@ -345,34 +346,34 @@ function re(e) {
345
346
  var $ = (function(e) {
346
347
  function t(n) {
347
348
  var r;
348
- return Pe(this, t), (r = qe(this, t, [n])).name = "SyntheticChangeError", r;
349
+ return Ee(this, t), (r = Xe(this, t, [n])).name = "SyntheticChangeError", r;
349
350
  }
350
- return et(t, e), Me(t);
351
- })(re(Error)), me, nt = ["options"], he = ["text", "email", "tel", "search", "url"], Ee = Me((function e(t) {
351
+ return tt(t, e), Ce(t);
352
+ })(re(Error)), ye, rt = ["options"], ge = ["text", "email", "tel", "search", "url"], je = Ce((function e(t) {
352
353
  var n = t.init, r = t.tracking;
353
- Pe(this, e);
354
+ Ee(this, e);
354
355
  var o = /* @__PURE__ */ new WeakMap();
355
356
  this.register = function(a) {
356
357
  var l;
357
- if (he.includes(a.type)) {
358
- var u = (l = a._wrapperState) !== null && l !== void 0 ? l : {}, i = u.initialValue, c = i === void 0 ? "" : i, p = u.controlled, f = p !== void 0 && p, b = n({ initialValue: a.value || c, controlled: f }), M = b.value, j = b.options, h = { value: M, options: j, fallbackOptions: j }, v = { id: -1, cachedId: -1 }, s = { value: "", selectionStart: 0, selectionEnd: 0 }, O = Object.getOwnPropertyDescriptor("_valueTracker" in a ? a : HTMLInputElement.prototype, "value");
359
- Object.defineProperty(a, "value", ve(ve({}, O), {}, { set: function(y) {
360
- var m;
361
- s.value = y, O == null || (m = O.set) === null || m === void 0 || m.call(a, y);
358
+ if (ge.includes(a.type)) {
359
+ var u = (l = a._wrapperState) !== null && l !== void 0 ? l : {}, i = u.initialValue, c = i === void 0 ? "" : i, p = u.controlled, f = p !== void 0 && p, b = n({ initialValue: a.value || c, controlled: f }), M = b.value, j = b.options, h = { value: M, options: j, fallbackOptions: j }, m = { id: -1, cachedId: -1 }, s = { value: "", selectionStart: 0, selectionEnd: 0 }, O = Object.getOwnPropertyDescriptor("_valueTracker" in a ? a : HTMLInputElement.prototype, "value");
360
+ Object.defineProperty(a, "value", he(he({}, O), {}, { set: function(y) {
361
+ var v;
362
+ s.value = y, O == null || (v = O.set) === null || v === void 0 || v.call(a, y);
362
363
  } })), a.value = M;
363
364
  var S = function() {
364
365
  var y = function() {
365
- var m, k;
366
- s.selectionStart = (m = a.selectionStart) !== null && m !== void 0 ? m : 0, s.selectionEnd = (k = a.selectionEnd) !== null && k !== void 0 ? k : 0, v.id = window.setTimeout(y);
366
+ var v, k;
367
+ s.selectionStart = (v = a.selectionStart) !== null && v !== void 0 ? v : 0, s.selectionEnd = (k = a.selectionEnd) !== null && k !== void 0 ? k : 0, m.id = window.setTimeout(y);
367
368
  };
368
- v.id = window.setTimeout(y);
369
+ m.id = window.setTimeout(y);
369
370
  }, w = function() {
370
- window.clearTimeout(v.id), v.id = -1, v.cachedId = -1;
371
+ window.clearTimeout(m.id), m.id = -1, m.cachedId = -1;
371
372
  }, d = function(y) {
372
373
  try {
373
- var m, k;
374
- if (v.cachedId === v.id) throw new $("The input selection has not been updated.");
375
- v.cachedId = v.id;
374
+ var v, k;
375
+ if (m.cachedId === m.id) throw new $("The input selection has not been updated.");
376
+ m.cachedId = m.id;
376
377
  var P = a.value, g = a.selectionStart, T = a.selectionEnd;
377
378
  if (g === null || T === null) throw new $("The selection attributes have not been initialized.");
378
379
  var C, E = s.value;
@@ -384,20 +385,20 @@ var $ = (function(e) {
384
385
  N = g, B = g + D;
385
386
  }
386
387
  h.value !== E ? h.options = h.fallbackOptions : h.fallbackOptions = h.options;
387
- var F = h.options, R = r({ inputType: C, previousValue: E, previousOptions: F, value: P, addedValue: I, changeStart: N, changeEnd: B, selectionStart: g, selectionEnd: T }), _ = R.options, A = tt(R, nt);
388
- a.value = A.value, a.setSelectionRange(A.selectionStart, A.selectionEnd), h.value = A.value, h.options = _, s.selectionStart = A.selectionStart, s.selectionEnd = A.selectionEnd, (m = a._valueTracker) === null || m === void 0 || (k = m.setValue) === null || k === void 0 || k.call(m, E);
388
+ var F = h.options, R = r({ inputType: C, previousValue: E, previousOptions: F, value: P, addedValue: I, changeStart: N, changeEnd: B, selectionStart: g, selectionEnd: T }), _ = R.options, A = nt(R, rt);
389
+ a.value = A.value, a.setSelectionRange(A.selectionStart, A.selectionEnd), h.value = A.value, h.options = _, s.selectionStart = A.selectionStart, s.selectionEnd = A.selectionEnd, (v = a._valueTracker) === null || v === void 0 || (k = v.setValue) === null || k === void 0 || k.call(v, E);
389
390
  } catch (W) {
390
391
  if (a.value = s.value, a.setSelectionRange(s.selectionStart, s.selectionEnd), y.preventDefault(), y.stopPropagation(), W.name !== "SyntheticChangeError") throw W;
391
392
  }
392
393
  };
393
394
  document.activeElement === a && S(), a.addEventListener("focus", S), a.addEventListener("blur", w), a.addEventListener("input", d), o.set(a, { onFocus: S, onBlur: w, onInput: d });
394
- } else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(he.join(", "), "."));
395
+ } else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(ge.join(", "), "."));
395
396
  }, this.unregister = function(a) {
396
397
  var l = o.get(a);
397
398
  l !== void 0 && (a.removeEventListener("focus", l.onFocus), a.removeEventListener("blur", l.onBlur), a.removeEventListener("input", l.onInput), o.delete(a));
398
399
  };
399
400
  }));
400
- me = Ee, Object.defineProperty(me.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Input" });
401
+ ye = je, Object.defineProperty(ye.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Input" });
401
402
  var X = function(e) {
402
403
  return function() {
403
404
  for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
@@ -406,23 +407,23 @@ var X = function(e) {
406
407
  `), `
407
408
  `));
408
409
  };
409
- }, ye, rt = ["track", "modify"];
410
+ }, be, at = ["track", "modify"];
410
411
  function x(e) {
411
412
  var t, n, r, o;
412
413
  return { mask: (t = e.mask) !== null && t !== void 0 ? t : "", replacement: typeof e.replacement == "string" ? K(e.replacement) : (n = e.replacement) !== null && n !== void 0 ? n : {}, showMask: (r = e.showMask) !== null && r !== void 0 && r, separate: (o = e.separate) !== null && o !== void 0 && o, track: e.track, modify: e.modify };
413
414
  }
414
- var Ce = (function(e) {
415
+ var Te = (function(e) {
415
416
  function t() {
416
417
  var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
417
- return $e(this, t), (n = Ue(this, t, [{ init: function(o) {
418
+ return ze(this, t), (n = $e(this, t, [{ init: function(o) {
418
419
  var a = o.initialValue, l = o.controlled, u = x(r), i = u.mask, c = u.replacement, p = u.separate, f = u.showMask;
419
420
  return a = l || a ? a : f ? i : "", process.env.NODE_ENV !== "production" && (function(b) {
420
421
  var M = b.initialValue, j = b.mask, h = b.replacement;
421
422
  M.length > j.length && console.error(X(Error)("The initialized value of the `value` or `defaultValue` property is longer than the value specified in the `mask` property. Check the correctness of the initialized value in the specified property.", 'Invalid value: "'.concat(M, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
422
- var v = Object.keys(h).filter((function(d) {
423
+ var m = Object.keys(h).filter((function(d) {
423
424
  return d.length > 1;
424
425
  }));
425
- v.length > 0 && console.error(X(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(v.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
426
+ m.length > 0 && console.error(X(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(m.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
426
427
  for (var s = j.slice(0, M.length), O = -1, S = 0; S < s.length; S++) {
427
428
  var w = Object.prototype.hasOwnProperty.call(h, s[S]);
428
429
  if (!(s[S] === M[S] || w && h[s[S]].test(M[S]))) {
@@ -433,22 +434,22 @@ var Ce = (function(e) {
433
434
  O !== -1 && console.error(X(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(O, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(M, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
434
435
  })({ initialValue: a, mask: i, replacement: c }), { value: a, options: { mask: i, replacement: c, separate: p } };
435
436
  }, tracking: function(o) {
436
- var a = o.inputType, l = o.previousValue, u = o.previousOptions, i = o.addedValue, c = o.changeStart, p = o.changeEnd, f = x(r), b = f.track, M = f.modify, j = _e(f, rt), h = j.mask, v = j.replacement, s = j.showMask, O = j.separate, S = J(J({}, a === "insert" ? { inputType: a, data: i } : { inputType: a, data: null }), {}, { value: l, selectionStart: c, selectionEnd: p }), w = b?.(S);
437
+ var a = o.inputType, l = o.previousValue, u = o.previousOptions, i = o.addedValue, c = o.changeStart, p = o.changeEnd, f = x(r), b = f.track, M = f.modify, j = We(f, at), h = j.mask, m = j.replacement, s = j.showMask, O = j.separate, S = J(J({}, a === "insert" ? { inputType: a, data: i } : { inputType: a, data: null }), {}, { value: l, selectionStart: c, selectionEnd: p }), w = b?.(S);
437
438
  if (w === !1) throw new $("Custom tracking stop.");
438
439
  w === null ? i = "" : w !== !0 && w !== void 0 && (i = w);
439
440
  var d = M?.(S);
440
- d?.mask !== void 0 && (h = d.mask), d?.replacement !== void 0 && (v = typeof d?.replacement == "string" ? K(d?.replacement) : d.replacement), d?.showMask !== void 0 && (s = d.showMask), d?.separate !== void 0 && (O = d.separate);
441
- var y = ne(l, J({ end: c }, u)), m = ne(l, J({ start: p }, u)), k = RegExp("[^".concat(Object.keys(v).join(""), "]"), "g"), P = h.replace(k, "");
442
- if (y && (y = U(y, { replacementChars: P, replacement: v, separate: O }), P = P.slice(y.length)), i && (i = U(i, { replacementChars: P, replacement: v, separate: !1 }), P = P.slice(i.length)), a === "insert" && i === "") throw new $("The character does not match the key value of the `replacement` object.");
441
+ d?.mask !== void 0 && (h = d.mask), d?.replacement !== void 0 && (m = typeof d?.replacement == "string" ? K(d?.replacement) : d.replacement), d?.showMask !== void 0 && (s = d.showMask), d?.separate !== void 0 && (O = d.separate);
442
+ var y = ne(l, J({ end: c }, u)), v = ne(l, J({ start: p }, u)), k = RegExp("[^".concat(Object.keys(m).join(""), "]"), "g"), P = h.replace(k, "");
443
+ if (y && (y = U(y, { replacementChars: P, replacement: m, separate: O }), P = P.slice(y.length)), i && (i = U(i, { replacementChars: P, replacement: m, separate: !1 }), P = P.slice(i.length)), a === "insert" && i === "") throw new $("The character does not match the key value of the `replacement` object.");
443
444
  if (O) {
444
445
  var g = h.slice(c, p).replace(k, ""), T = g.length - i.length;
445
- T < 0 ? m = m.slice(-T) : T > 0 && (m = g.slice(-T) + m);
446
+ T < 0 ? v = v.slice(-T) : T > 0 && (v = g.slice(-T) + v);
446
447
  }
447
- m && (m = U(m, { replacementChars: P, replacement: v, separate: O }));
448
- var C = Se(y + i + m, { mask: h, replacement: v, separate: O, showMask: s }), E = (function(I) {
449
- var N, B, D, F = I.inputType, R = I.value, _ = I.addedValue, A = I.beforeChangeValue, W = I.mask, oe = I.replacement, je = I.separate, Q = we(R, { mask: W, replacement: oe }).filter((function(q) {
448
+ v && (v = U(v, { replacementChars: P, replacement: m, separate: O }));
449
+ var C = ke(y + i + v, { mask: h, replacement: m, separate: O, showMask: s }), E = (function(I) {
450
+ var N, B, D, F = I.inputType, R = I.value, _ = I.addedValue, A = I.beforeChangeValue, W = I.mask, oe = I.replacement, Ie = I.separate, Q = Pe(R, { mask: W, replacement: oe }).filter((function(q) {
450
451
  var ue = q.type;
451
- return ue === "input" || je && ue === "replacement";
452
+ return ue === "input" || Ie && ue === "replacement";
452
453
  })), ie = (N = Q[A.length + _.length - 1]) === null || N === void 0 ? void 0 : N.index, G = (B = Q[A.length - 1]) === null || B === void 0 ? void 0 : B.index, L = (D = Q[A.length + _.length]) === null || D === void 0 ? void 0 : D.index;
453
454
  if (F === "insert") {
454
455
  if (ie !== void 0) return ie + 1;
@@ -467,33 +468,33 @@ var Ce = (function(e) {
467
468
  return Object.prototype.hasOwnProperty.call(oe, q);
468
469
  }));
469
470
  return le !== -1 ? le : R.length;
470
- })({ inputType: a, value: C, addedValue: i, beforeChangeValue: y, mask: h, replacement: v, separate: O });
471
- return { value: C, selectionStart: E, selectionEnd: E, options: { mask: h, replacement: v, separate: O } };
471
+ })({ inputType: a, value: C, addedValue: i, beforeChangeValue: y, mask: h, replacement: m, separate: O });
472
+ return { value: C, selectionStart: E, selectionEnd: E, options: { mask: h, replacement: m, separate: O } };
472
473
  } }])).format = function(o) {
473
- return ke(o, x(r));
474
+ return Me(o, x(r));
474
475
  }, n.formatToParts = function(o) {
475
- return Ze(o, x(r));
476
+ return Je(o, x(r));
476
477
  }, n.unformat = function(o) {
477
- return We(o, x(r));
478
+ return Ze(o, x(r));
478
479
  }, n.generatePattern = function(o) {
479
- return Ye(o, x(r));
480
+ return Qe(o, x(r));
480
481
  }, n;
481
482
  }
482
- return He(t, Ee), ze(t);
483
+ return _e(t, je), He(t);
483
484
  })();
484
- ye = Ce, Object.defineProperty(ye.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
485
- function at() {
485
+ be = Te, Object.defineProperty(be.prototype, Symbol.toStringTag, { writable: !1, enumerable: !1, configurable: !0, value: "Mask" });
486
+ function ot() {
486
487
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.mask, n = e.replacement, r = e.showMask, o = e.separate, a = e.track, l = e.modify, u = ee(null), i = ee({ mask: t, replacement: n, showMask: r, separate: o, track: a, modify: l });
487
- return i.current.mask = t, i.current.replacement = n, i.current.showMask = r, i.current.separate = o, i.current.track = a, i.current.modify = l, Ie((function() {
488
- return Qe(u, new Ce(i.current));
488
+ return i.current.mask = t, i.current.replacement = n, i.current.showMask = r, i.current.separate = o, i.current.track = a, i.current.modify = l, Ne((function() {
489
+ return qe(u, new Te(i.current));
489
490
  }), []);
490
491
  }
491
- const ot = "en", it = { AF: "Afghanistan", AL: "Albania", DZ: "Algeria", AS: "American Samoa", AD: "Andorra", AO: "Angola", AI: "Anguilla", AQ: "Antarctica", AG: "Antigua and Barbuda", AR: "Argentina", AM: "Armenia", AW: "Aruba", AU: "Australia", AT: "Austria", AZ: "Azerbaijan", BS: "Bahamas", BH: "Bahrain", BD: "Bangladesh", BB: "Barbados", BY: "Belarus", BE: "Belgium", BZ: "Belize", BJ: "Benin", BM: "Bermuda", BT: "Bhutan", BO: "Bolivia", BA: "Bosnia and Herzegovina", BW: "Botswana", BV: "Bouvet Island", BR: "Brazil", IO: "British Indian Ocean Territory", BN: "Brunei Darussalam", BG: "Bulgaria", BF: "Burkina Faso", BI: "Burundi", KH: "Cambodia", CM: "Cameroon", CA: "Canada", CV: "Cape Verde", KY: "Cayman Islands", CF: "Central African Republic", TD: "Chad", CL: "Chile", CN: ["People's Republic of China", "China"], CX: "Christmas Island", CC: "Cocos (Keeling) Islands", CO: "Colombia", KM: "Comoros", CG: ["Republic of the Congo", "Congo"], CD: ["Democratic Republic of the Congo", "Congo"], CK: "Cook Islands", CR: "Costa Rica", CI: ["Cote d'Ivoire", "Côte d'Ivoire", "Ivory Coast"], HR: "Croatia", CU: "Cuba", CY: "Cyprus", CZ: ["Czech Republic", "Czechia"], DK: "Denmark", DJ: "Djibouti", DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: "Egypt", SV: "El Salvador", GQ: "Equatorial Guinea", ER: "Eritrea", EE: "Estonia", ET: "Ethiopia", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: "Fiji", FI: "Finland", FR: "France", GF: "French Guiana", PF: "French Polynesia", TF: "French Southern Territories", GA: "Gabon", GM: ["Republic of The Gambia", "The Gambia", "Gambia"], GE: "Georgia", DE: "Germany", GH: "Ghana", GI: "Gibraltar", GR: "Greece", GL: "Greenland", GD: "Grenada", GP: "Guadeloupe", GU: "Guam", GT: "Guatemala", GN: "Guinea", GW: "Guinea-Bissau", GY: "Guyana", HT: "Haiti", HM: "Heard Island and McDonald Islands", VA: "Holy See (Vatican City State)", HN: "Honduras", HK: "Hong Kong", HU: "Hungary", IS: "Iceland", IN: "India", ID: "Indonesia", IR: ["Islamic Republic of Iran", "Iran"], IQ: "Iraq", IE: "Ireland", IL: "Israel", IT: "Italy", JM: "Jamaica", JP: "Japan", JO: "Jordan", KZ: "Kazakhstan", KE: "Kenya", KI: "Kiribati", KP: "North Korea", KR: ["South Korea", "Korea, Republic of", "Republic of Korea"], KW: "Kuwait", KG: "Kyrgyzstan", LA: "Lao People's Democratic Republic", LV: "Latvia", LB: "Lebanon", LS: "Lesotho", LR: "Liberia", LY: "Libya", LI: "Liechtenstein", LT: "Lithuania", LU: "Luxembourg", MO: "Macao", MG: "Madagascar", MW: "Malawi", MY: "Malaysia", MV: "Maldives", ML: "Mali", MT: "Malta", MH: "Marshall Islands", MQ: "Martinique", MR: "Mauritania", MU: "Mauritius", YT: "Mayotte", MX: "Mexico", FM: "Micronesia, Federated States of", MD: "Moldova, Republic of", MC: "Monaco", MN: "Mongolia", MS: "Montserrat", MA: "Morocco", MZ: "Mozambique", MM: "Myanmar", NA: "Namibia", NR: "Nauru", NP: "Nepal", NL: ["Netherlands", "The Netherlands", "Netherlands (Kingdom of the)"], NC: "New Caledonia", NZ: "New Zealand", NI: "Nicaragua", NE: "Niger", NG: "Nigeria", NU: "Niue", NF: "Norfolk Island", MK: ["The Republic of North Macedonia", "North Macedonia"], MP: "Northern Mariana Islands", NO: "Norway", OM: "Oman", PK: "Pakistan", PW: "Palau", PS: ["State of Palestine", "Palestine"], PA: "Panama", PG: "Papua New Guinea", PY: "Paraguay", PE: "Peru", PH: "Philippines", PN: ["Pitcairn", "Pitcairn Islands"], PL: "Poland", PT: "Portugal", PR: "Puerto Rico", QA: "Qatar", RE: "Reunion", RO: "Romania", RU: ["Russian Federation", "Russia"], RW: "Rwanda", SH: "Saint Helena", KN: "Saint Kitts and Nevis", LC: "Saint Lucia", PM: "Saint Pierre and Miquelon", VC: "Saint Vincent and the Grenadines", WS: "Samoa", SM: "San Marino", ST: "Sao Tome and Principe", SA: "Saudi Arabia", SN: "Senegal", SC: "Seychelles", SL: "Sierra Leone", SG: "Singapore", SK: "Slovakia", SI: "Slovenia", SB: "Solomon Islands", SO: "Somalia", ZA: "South Africa", GS: "South Georgia and the South Sandwich Islands", ES: "Spain", LK: "Sri Lanka", SD: "Sudan", SR: "Suriname", SJ: "Svalbard and Jan Mayen", SZ: "Eswatini", SE: "Sweden", CH: "Switzerland", SY: "Syrian Arab Republic", TW: ["Taiwan, Province of China", "Taiwan"], TJ: "Tajikistan", TZ: ["United Republic of Tanzania", "Tanzania"], TH: "Thailand", TL: "Timor-Leste", TG: "Togo", TK: "Tokelau", TO: "Tonga", TT: "Trinidad and Tobago", TN: "Tunisia", TR: ["Türkiye", "Turkey"], TM: "Turkmenistan", TC: "Turks and Caicos Islands", TV: "Tuvalu", UG: "Uganda", UA: "Ukraine", AE: ["United Arab Emirates", "UAE"], GB: ["United Kingdom", "UK", "Great Britain"], US: ["United States of America", "United States", "USA", "U.S.A.", "US", "U.S."], UM: "United States Minor Outlying Islands", UY: "Uruguay", UZ: "Uzbekistan", VU: "Vanuatu", VE: "Venezuela", VN: "Vietnam", VG: "Virgin Islands, British", VI: "Virgin Islands, U.S.", WF: "Wallis and Futuna", EH: "Western Sahara", YE: "Yemen", ZM: "Zambia", ZW: "Zimbabwe", AX: ["Åland Islands", "Aland Islands"], BQ: "Bonaire, Sint Eustatius and Saba", CW: "Curaçao", GG: "Guernsey", IM: "Isle of Man", JE: "Jersey", ME: "Montenegro", BL: "Saint Barthélemy", MF: "Saint Martin (French part)", RS: "Serbia", SX: "Sint Maarten (Dutch part)", SS: "South Sudan", XK: "Kosovo" }, lt = {
492
- locale: ot,
493
- countries: it
492
+ const it = "en", lt = { AF: "Afghanistan", AL: "Albania", DZ: "Algeria", AS: "American Samoa", AD: "Andorra", AO: "Angola", AI: "Anguilla", AQ: "Antarctica", AG: "Antigua and Barbuda", AR: "Argentina", AM: "Armenia", AW: "Aruba", AU: "Australia", AT: "Austria", AZ: "Azerbaijan", BS: "Bahamas", BH: "Bahrain", BD: "Bangladesh", BB: "Barbados", BY: "Belarus", BE: "Belgium", BZ: "Belize", BJ: "Benin", BM: "Bermuda", BT: "Bhutan", BO: "Bolivia", BA: "Bosnia and Herzegovina", BW: "Botswana", BV: "Bouvet Island", BR: "Brazil", IO: "British Indian Ocean Territory", BN: "Brunei Darussalam", BG: "Bulgaria", BF: "Burkina Faso", BI: "Burundi", KH: "Cambodia", CM: "Cameroon", CA: "Canada", CV: "Cape Verde", KY: "Cayman Islands", CF: "Central African Republic", TD: "Chad", CL: "Chile", CN: ["People's Republic of China", "China"], CX: "Christmas Island", CC: "Cocos (Keeling) Islands", CO: "Colombia", KM: "Comoros", CG: ["Republic of the Congo", "Congo"], CD: ["Democratic Republic of the Congo", "Congo"], CK: "Cook Islands", CR: "Costa Rica", CI: ["Cote d'Ivoire", "Côte d'Ivoire", "Ivory Coast"], HR: "Croatia", CU: "Cuba", CY: "Cyprus", CZ: ["Czech Republic", "Czechia"], DK: "Denmark", DJ: "Djibouti", DM: "Dominica", DO: "Dominican Republic", EC: "Ecuador", EG: "Egypt", SV: "El Salvador", GQ: "Equatorial Guinea", ER: "Eritrea", EE: "Estonia", ET: "Ethiopia", FK: "Falkland Islands (Malvinas)", FO: "Faroe Islands", FJ: "Fiji", FI: "Finland", FR: "France", GF: "French Guiana", PF: "French Polynesia", TF: "French Southern Territories", GA: "Gabon", GM: ["Republic of The Gambia", "The Gambia", "Gambia"], GE: "Georgia", DE: "Germany", GH: "Ghana", GI: "Gibraltar", GR: "Greece", GL: "Greenland", GD: "Grenada", GP: "Guadeloupe", GU: "Guam", GT: "Guatemala", GN: "Guinea", GW: "Guinea-Bissau", GY: "Guyana", HT: "Haiti", HM: "Heard Island and McDonald Islands", VA: "Holy See (Vatican City State)", HN: "Honduras", HK: "Hong Kong", HU: "Hungary", IS: "Iceland", IN: "India", ID: "Indonesia", IR: ["Islamic Republic of Iran", "Iran"], IQ: "Iraq", IE: "Ireland", IL: "Israel", IT: "Italy", JM: "Jamaica", JP: "Japan", JO: "Jordan", KZ: "Kazakhstan", KE: "Kenya", KI: "Kiribati", KP: "North Korea", KR: ["South Korea", "Korea, Republic of", "Republic of Korea"], KW: "Kuwait", KG: "Kyrgyzstan", LA: "Lao People's Democratic Republic", LV: "Latvia", LB: "Lebanon", LS: "Lesotho", LR: "Liberia", LY: "Libya", LI: "Liechtenstein", LT: "Lithuania", LU: "Luxembourg", MO: "Macao", MG: "Madagascar", MW: "Malawi", MY: "Malaysia", MV: "Maldives", ML: "Mali", MT: "Malta", MH: "Marshall Islands", MQ: "Martinique", MR: "Mauritania", MU: "Mauritius", YT: "Mayotte", MX: "Mexico", FM: "Micronesia, Federated States of", MD: "Moldova, Republic of", MC: "Monaco", MN: "Mongolia", MS: "Montserrat", MA: "Morocco", MZ: "Mozambique", MM: "Myanmar", NA: "Namibia", NR: "Nauru", NP: "Nepal", NL: ["Netherlands", "The Netherlands", "Netherlands (Kingdom of the)"], NC: "New Caledonia", NZ: "New Zealand", NI: "Nicaragua", NE: "Niger", NG: "Nigeria", NU: "Niue", NF: "Norfolk Island", MK: ["The Republic of North Macedonia", "North Macedonia"], MP: "Northern Mariana Islands", NO: "Norway", OM: "Oman", PK: "Pakistan", PW: "Palau", PS: ["State of Palestine", "Palestine"], PA: "Panama", PG: "Papua New Guinea", PY: "Paraguay", PE: "Peru", PH: "Philippines", PN: ["Pitcairn", "Pitcairn Islands"], PL: "Poland", PT: "Portugal", PR: "Puerto Rico", QA: "Qatar", RE: "Reunion", RO: "Romania", RU: ["Russian Federation", "Russia"], RW: "Rwanda", SH: "Saint Helena", KN: "Saint Kitts and Nevis", LC: "Saint Lucia", PM: "Saint Pierre and Miquelon", VC: "Saint Vincent and the Grenadines", WS: "Samoa", SM: "San Marino", ST: "Sao Tome and Principe", SA: "Saudi Arabia", SN: "Senegal", SC: "Seychelles", SL: "Sierra Leone", SG: "Singapore", SK: "Slovakia", SI: "Slovenia", SB: "Solomon Islands", SO: "Somalia", ZA: "South Africa", GS: "South Georgia and the South Sandwich Islands", ES: "Spain", LK: "Sri Lanka", SD: "Sudan", SR: "Suriname", SJ: "Svalbard and Jan Mayen", SZ: "Eswatini", SE: "Sweden", CH: "Switzerland", SY: "Syrian Arab Republic", TW: ["Taiwan, Province of China", "Taiwan"], TJ: "Tajikistan", TZ: ["United Republic of Tanzania", "Tanzania"], TH: "Thailand", TL: "Timor-Leste", TG: "Togo", TK: "Tokelau", TO: "Tonga", TT: "Trinidad and Tobago", TN: "Tunisia", TR: ["Türkiye", "Turkey"], TM: "Turkmenistan", TC: "Turks and Caicos Islands", TV: "Tuvalu", UG: "Uganda", UA: "Ukraine", AE: ["United Arab Emirates", "UAE"], GB: ["United Kingdom", "UK", "Great Britain"], US: ["United States of America", "United States", "USA", "U.S.A.", "US", "U.S."], UM: "United States Minor Outlying Islands", UY: "Uruguay", UZ: "Uzbekistan", VU: "Vanuatu", VE: "Venezuela", VN: "Vietnam", VG: "Virgin Islands, British", VI: "Virgin Islands, U.S.", WF: "Wallis and Futuna", EH: "Western Sahara", YE: "Yemen", ZM: "Zambia", ZW: "Zimbabwe", AX: ["Åland Islands", "Aland Islands"], BQ: "Bonaire, Sint Eustatius and Saba", CW: "Curaçao", GG: "Guernsey", IM: "Isle of Man", JE: "Jersey", ME: "Montenegro", BL: "Saint Barthélemy", MF: "Saint Martin (French part)", RS: "Serbia", SX: "Sint Maarten (Dutch part)", SS: "South Sudan", XK: "Kosovo" }, ut = {
493
+ locale: it,
494
+ countries: lt
494
495
  };
495
- Te.registerLocale(lt);
496
- const gt = Ae(
496
+ Ae.registerLocale(ut);
497
+ const Ot = Be(
497
498
  ({
498
499
  disabled: e = !1,
499
500
  error: t,
@@ -511,18 +512,18 @@ const gt = Ae(
511
512
  showPlaceHolder: M,
512
513
  ...j
513
514
  }, h) => {
514
- const v = u ?? Ne(), s = ee(null), {
515
+ const m = u ?? Re(), s = ee(null), {
515
516
  isOpenSelector: O,
516
517
  value: S,
517
518
  selectedCountry: w,
518
519
  onChangeValue: d,
519
520
  handleOpenSelector: y
520
- } = xe(), m = typeof t == "string" && t.length >= 0, k = at({
521
- mask: Ke(w),
521
+ } = Ke(), v = typeof t == "string" && t.length >= 0, k = ot({
522
+ mask: De(w),
522
523
  replacement: { _: /\d/ }
523
524
  });
524
- Be(h, () => k.current, [k]);
525
- const P = Re(
525
+ Ge(h, () => k.current, [k]);
526
+ const P = Le(
526
527
  (g) => {
527
528
  g.target.value.startsWith(w.prefix) ? d(g.target.value) : d(`${w.prefix} `);
528
529
  },
@@ -555,8 +556,8 @@ const gt = Ae(
555
556
  a ? /* @__PURE__ */ Z(
556
557
  "label",
557
558
  {
558
- id: v,
559
- className: Le({ className: l }),
559
+ id: m,
560
+ className: Ve({ className: l }),
560
561
  onClick: () => !e && k.current?.focus(),
561
562
  children: [
562
563
  a,
@@ -569,21 +570,31 @@ const gt = Ae(
569
570
  {
570
571
  ref: s,
571
572
  "data-state": O ? "open" : "closed",
572
- className: Ve({
573
+ className: xe({
573
574
  className: b,
574
- variant: m ? "error" : "default"
575
+ variant: v ? "error" : "default"
575
576
  }),
576
577
  children: [
577
578
  /* @__PURE__ */ Z("div", { className: "p-2 flex items-center gap-2.5", children: [
578
- /* @__PURE__ */ V(De, {}),
579
+ /* @__PURE__ */ V(Fe, {}),
579
580
  /* @__PURE__ */ V(
580
581
  "input",
581
582
  {
582
- id: a ? v : void 0,
583
+ id: a ? m : void 0,
583
584
  ref: k,
584
585
  name: u,
585
586
  autoComplete: "off",
586
- className: "outline-0 w-full caret-slate-800 text-slate-800 bg-transparent dark:caret-slate-50 dark:text-slate-50 disabled:cursor-not-allowed disabled:opacity-50",
587
+ className: pe(
588
+ "outline-0",
589
+ "w-full",
590
+ "caret-slate-800",
591
+ "text-slate-800",
592
+ "bg-transparent",
593
+ "dark:caret-metal-50",
594
+ "dark:text-metal-50",
595
+ "disabled:cursor-not-allowed",
596
+ "disabled:opacity-50"
597
+ ),
587
598
  type: "tel",
588
599
  inputMode: "tel",
589
600
  value: S,
@@ -594,7 +605,7 @@ const gt = Ae(
594
605
  )
595
606
  ] }),
596
607
  O && /* @__PURE__ */ V(
597
- Fe,
608
+ Ue,
598
609
  {
599
610
  placeholder: i,
600
611
  showFlagOnSearch: c,
@@ -606,12 +617,20 @@ const gt = Ae(
606
617
  ]
607
618
  }
608
619
  ),
609
- t ? /* @__PURE__ */ V("span", { className: "text-xs text-red-700 dark:text-red-500", children: t }) : null,
620
+ t ? /* @__PURE__ */ V(
621
+ se,
622
+ {
623
+ component: "span",
624
+ className: "text-xs text-red-700 dark:text-red-500",
625
+ children: t
626
+ }
627
+ ) : null,
610
628
  !t && n ? /* @__PURE__ */ V(
611
- "span",
629
+ se,
612
630
  {
613
- className: Ge(
614
- "text-xs text-slate-600 dark:text-slate-200 kubefirst-dark:text-slate-200",
631
+ component: "span",
632
+ className: pe(
633
+ "text-xs kubefirst-dark:text-slate-200",
615
634
  r
616
635
  ),
617
636
  children: n
@@ -621,5 +640,5 @@ const gt = Ae(
621
640
  }
622
641
  );
623
642
  export {
624
- gt as Wrapper
643
+ Ot as Wrapper
625
644
  };