@lets-events/react 8.0.0 → 10.0.0

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 (39) hide show
  1. package/.eslintrc.json +2 -2
  2. package/.turbo/turbo-build.log +18 -19
  3. package/CHANGELOG.md +19 -1
  4. package/dist/index.d.mts +23 -767
  5. package/dist/index.d.ts +23 -767
  6. package/dist/index.js +279 -754
  7. package/dist/index.mjs +215 -688
  8. package/package.json +3 -1
  9. package/src/components/Alert.tsx +303 -303
  10. package/src/components/Avatar.tsx +55 -55
  11. package/src/components/Badge.tsx +128 -128
  12. package/src/components/Box.tsx +3 -3
  13. package/src/components/Button/index.tsx +12 -12
  14. package/src/components/Button/styledComponents.ts +250 -250
  15. package/src/components/ButtonGroup.tsx +484 -484
  16. package/src/components/Calendar/index.tsx +136 -132
  17. package/src/components/Calendar/styledComponents.ts +208 -208
  18. package/src/components/Card.tsx +69 -69
  19. package/src/components/CheckboxGroup.tsx +214 -214
  20. package/src/components/Container.tsx +39 -39
  21. package/src/components/Dropdown.tsx +167 -167
  22. package/src/components/Filter.tsx +164 -164
  23. package/src/components/Flex.tsx +118 -118
  24. package/src/components/Grid.tsx +137 -137
  25. package/src/components/Icon.tsx +47 -47
  26. package/src/components/Modal.tsx +88 -109
  27. package/src/components/RadioGroup.tsx +210 -210
  28. package/src/components/Section.tsx +33 -33
  29. package/src/components/Step.tsx +164 -164
  30. package/src/components/Switch.tsx +108 -108
  31. package/src/components/Text.tsx +30 -30
  32. package/src/components/TextField.tsx +299 -299
  33. package/src/components/TextareaField.tsx +101 -101
  34. package/src/components/TimePicker.tsx +239 -213
  35. package/src/hooks/useOnClickOutside.tsx +20 -20
  36. package/src/index.tsx +31 -31
  37. package/src/styles/index.ts +38 -38
  38. package/src/types/typographyValues.ts +178 -178
  39. package/tsconfig.json +3 -3
package/dist/index.mjs CHANGED
@@ -9,18 +9,18 @@ var __getProtoOf = Object.getPrototypeOf;
9
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
10
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
11
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a4, b3) => {
13
- for (var prop in b3 || (b3 = {}))
14
- if (__hasOwnProp.call(b3, prop))
15
- __defNormalProp(a4, prop, b3[prop]);
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
16
  if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b3)) {
18
- if (__propIsEnum.call(b3, prop))
19
- __defNormalProp(a4, prop, b3[prop]);
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
20
  }
21
- return a4;
21
+ return a;
22
22
  };
23
- var __spreadProps = (a4, b3) => __defProps(a4, __getOwnPropDescs(b3));
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
24
  var __objRest = (source, exclude) => {
25
25
  var target = {};
26
26
  for (var prop in source)
@@ -58,110 +58,110 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
58
58
  var require_react_is_production_min = __commonJS({
59
59
  "../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
60
60
  "use strict";
61
- var b3 = "function" === typeof Symbol && Symbol.for;
62
- var c2 = b3 ? Symbol.for("react.element") : 60103;
63
- var d2 = b3 ? Symbol.for("react.portal") : 60106;
64
- var e5 = b3 ? Symbol.for("react.fragment") : 60107;
65
- var f3 = b3 ? Symbol.for("react.strict_mode") : 60108;
66
- var g3 = b3 ? Symbol.for("react.profiler") : 60114;
67
- var h2 = b3 ? Symbol.for("react.provider") : 60109;
68
- var k3 = b3 ? Symbol.for("react.context") : 60110;
69
- var l3 = b3 ? Symbol.for("react.async_mode") : 60111;
70
- var m2 = b3 ? Symbol.for("react.concurrent_mode") : 60111;
71
- var n5 = b3 ? Symbol.for("react.forward_ref") : 60112;
72
- var p3 = b3 ? Symbol.for("react.suspense") : 60113;
73
- var q = b3 ? Symbol.for("react.suspense_list") : 60120;
74
- var r6 = b3 ? Symbol.for("react.memo") : 60115;
75
- var t3 = b3 ? Symbol.for("react.lazy") : 60116;
76
- var v2 = b3 ? Symbol.for("react.block") : 60121;
77
- var w3 = b3 ? Symbol.for("react.fundamental") : 60117;
78
- var x = b3 ? Symbol.for("react.responder") : 60118;
79
- var y4 = b3 ? Symbol.for("react.scope") : 60119;
80
- function z(a4) {
81
- if ("object" === typeof a4 && null !== a4) {
82
- var u3 = a4.$$typeof;
83
- switch (u3) {
84
- case c2:
85
- switch (a4 = a4.type, a4) {
86
- case l3:
87
- case m2:
88
- case e5:
89
- case g3:
90
- case f3:
91
- case p3:
92
- return a4;
61
+ var b = "function" === typeof Symbol && Symbol.for;
62
+ var c = b ? Symbol.for("react.element") : 60103;
63
+ var d = b ? Symbol.for("react.portal") : 60106;
64
+ var e = b ? Symbol.for("react.fragment") : 60107;
65
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
66
+ var g = b ? Symbol.for("react.profiler") : 60114;
67
+ var h = b ? Symbol.for("react.provider") : 60109;
68
+ var k = b ? Symbol.for("react.context") : 60110;
69
+ var l = b ? Symbol.for("react.async_mode") : 60111;
70
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
71
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
72
+ var p = b ? Symbol.for("react.suspense") : 60113;
73
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
74
+ var r = b ? Symbol.for("react.memo") : 60115;
75
+ var t = b ? Symbol.for("react.lazy") : 60116;
76
+ var v = b ? Symbol.for("react.block") : 60121;
77
+ var w = b ? Symbol.for("react.fundamental") : 60117;
78
+ var x = b ? Symbol.for("react.responder") : 60118;
79
+ var y = b ? Symbol.for("react.scope") : 60119;
80
+ function z(a) {
81
+ if ("object" === typeof a && null !== a) {
82
+ var u = a.$$typeof;
83
+ switch (u) {
84
+ case c:
85
+ switch (a = a.type, a) {
86
+ case l:
87
+ case m:
88
+ case e:
89
+ case g:
90
+ case f:
91
+ case p:
92
+ return a;
93
93
  default:
94
- switch (a4 = a4 && a4.$$typeof, a4) {
95
- case k3:
96
- case n5:
97
- case t3:
98
- case r6:
99
- case h2:
100
- return a4;
94
+ switch (a = a && a.$$typeof, a) {
95
+ case k:
96
+ case n:
97
+ case t:
98
+ case r:
99
+ case h:
100
+ return a;
101
101
  default:
102
- return u3;
102
+ return u;
103
103
  }
104
104
  }
105
- case d2:
106
- return u3;
105
+ case d:
106
+ return u;
107
107
  }
108
108
  }
109
109
  }
110
- function A(a4) {
111
- return z(a4) === m2;
112
- }
113
- exports.AsyncMode = l3;
114
- exports.ConcurrentMode = m2;
115
- exports.ContextConsumer = k3;
116
- exports.ContextProvider = h2;
117
- exports.Element = c2;
118
- exports.ForwardRef = n5;
119
- exports.Fragment = e5;
120
- exports.Lazy = t3;
121
- exports.Memo = r6;
122
- exports.Portal = d2;
123
- exports.Profiler = g3;
124
- exports.StrictMode = f3;
125
- exports.Suspense = p3;
126
- exports.isAsyncMode = function(a4) {
127
- return A(a4) || z(a4) === l3;
110
+ function A(a) {
111
+ return z(a) === m;
112
+ }
113
+ exports.AsyncMode = l;
114
+ exports.ConcurrentMode = m;
115
+ exports.ContextConsumer = k;
116
+ exports.ContextProvider = h;
117
+ exports.Element = c;
118
+ exports.ForwardRef = n;
119
+ exports.Fragment = e;
120
+ exports.Lazy = t;
121
+ exports.Memo = r;
122
+ exports.Portal = d;
123
+ exports.Profiler = g;
124
+ exports.StrictMode = f;
125
+ exports.Suspense = p;
126
+ exports.isAsyncMode = function(a) {
127
+ return A(a) || z(a) === l;
128
128
  };
129
129
  exports.isConcurrentMode = A;
130
- exports.isContextConsumer = function(a4) {
131
- return z(a4) === k3;
130
+ exports.isContextConsumer = function(a) {
131
+ return z(a) === k;
132
132
  };
133
- exports.isContextProvider = function(a4) {
134
- return z(a4) === h2;
133
+ exports.isContextProvider = function(a) {
134
+ return z(a) === h;
135
135
  };
136
- exports.isElement = function(a4) {
137
- return "object" === typeof a4 && null !== a4 && a4.$$typeof === c2;
136
+ exports.isElement = function(a) {
137
+ return "object" === typeof a && null !== a && a.$$typeof === c;
138
138
  };
139
- exports.isForwardRef = function(a4) {
140
- return z(a4) === n5;
139
+ exports.isForwardRef = function(a) {
140
+ return z(a) === n;
141
141
  };
142
- exports.isFragment = function(a4) {
143
- return z(a4) === e5;
142
+ exports.isFragment = function(a) {
143
+ return z(a) === e;
144
144
  };
145
- exports.isLazy = function(a4) {
146
- return z(a4) === t3;
145
+ exports.isLazy = function(a) {
146
+ return z(a) === t;
147
147
  };
148
- exports.isMemo = function(a4) {
149
- return z(a4) === r6;
148
+ exports.isMemo = function(a) {
149
+ return z(a) === r;
150
150
  };
151
- exports.isPortal = function(a4) {
152
- return z(a4) === d2;
151
+ exports.isPortal = function(a) {
152
+ return z(a) === d;
153
153
  };
154
- exports.isProfiler = function(a4) {
155
- return z(a4) === g3;
154
+ exports.isProfiler = function(a) {
155
+ return z(a) === g;
156
156
  };
157
- exports.isStrictMode = function(a4) {
158
- return z(a4) === f3;
157
+ exports.isStrictMode = function(a) {
158
+ return z(a) === f;
159
159
  };
160
- exports.isSuspense = function(a4) {
161
- return z(a4) === p3;
160
+ exports.isSuspense = function(a) {
161
+ return z(a) === p;
162
162
  };
163
- exports.isValidElementType = function(a4) {
164
- return "string" === typeof a4 || "function" === typeof a4 || a4 === e5 || a4 === m2 || a4 === g3 || a4 === f3 || a4 === p3 || a4 === q || "object" === typeof a4 && null !== a4 && (a4.$$typeof === t3 || a4.$$typeof === r6 || a4.$$typeof === h2 || a4.$$typeof === k3 || a4.$$typeof === n5 || a4.$$typeof === w3 || a4.$$typeof === x || a4.$$typeof === y4 || a4.$$typeof === v2);
163
+ exports.isValidElementType = function(a) {
164
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
165
165
  };
166
166
  exports.typeOf = z;
167
167
  }
@@ -358,11 +358,11 @@ var require_object_assign = __commonJS({
358
358
  return false;
359
359
  }
360
360
  var test2 = {};
361
- for (var i3 = 0; i3 < 10; i3++) {
362
- test2["_" + String.fromCharCode(i3)] = i3;
361
+ for (var i = 0; i < 10; i++) {
362
+ test2["_" + String.fromCharCode(i)] = i;
363
363
  }
364
- var order2 = Object.getOwnPropertyNames(test2).map(function(n5) {
365
- return test2[n5];
364
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
365
+ return test2[n];
366
366
  });
367
367
  if (order2.join("") !== "0123456789") {
368
368
  return false;
@@ -383,8 +383,8 @@ var require_object_assign = __commonJS({
383
383
  var from;
384
384
  var to = toObject(target);
385
385
  var symbols;
386
- for (var s3 = 1; s3 < arguments.length; s3++) {
387
- from = Object(arguments[s3]);
386
+ for (var s = 1; s < arguments.length; s++) {
387
+ from = Object(arguments[s]);
388
388
  for (var key in from) {
389
389
  if (hasOwnProperty.call(from, key)) {
390
390
  to[key] = from[key];
@@ -392,9 +392,9 @@ var require_object_assign = __commonJS({
392
392
  }
393
393
  if (getOwnPropertySymbols) {
394
394
  symbols = getOwnPropertySymbols(from);
395
- for (var i3 = 0; i3 < symbols.length; i3++) {
396
- if (propIsEnumerable.call(from, symbols[i3])) {
397
- to[symbols[i3]] = from[symbols[i3]];
395
+ for (var i = 0; i < symbols.length; i++) {
396
+ if (propIsEnumerable.call(from, symbols[i])) {
397
+ to[symbols[i]] = from[symbols[i]];
398
398
  }
399
399
  }
400
400
  }
@@ -544,11 +544,11 @@ var require_factoryWithTypeCheckers = __commonJS({
544
544
  shape: createShapeTypeChecker,
545
545
  exact: createStrictShapeTypeChecker
546
546
  };
547
- function is(x, y4) {
548
- if (x === y4) {
549
- return x !== 0 || 1 / x === 1 / y4;
547
+ function is(x, y) {
548
+ if (x === y) {
549
+ return x !== 0 || 1 / x === 1 / y;
550
550
  } else {
551
- return x !== x && y4 !== y4;
551
+ return x !== x && y !== y;
552
552
  }
553
553
  }
554
554
  function PropTypeError(message2, data) {
@@ -628,8 +628,8 @@ var require_factoryWithTypeCheckers = __commonJS({
628
628
  var propType = getPropType(propValue);
629
629
  return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
630
630
  }
631
- for (var i3 = 0; i3 < propValue.length; i3++) {
632
- var error = typeChecker(propValue, i3, componentName, location, propFullName + "[" + i3 + "]", ReactPropTypesSecret);
631
+ for (var i = 0; i < propValue.length; i++) {
632
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
633
633
  if (error instanceof Error) {
634
634
  return error;
635
635
  }
@@ -686,8 +686,8 @@ var require_factoryWithTypeCheckers = __commonJS({
686
686
  }
687
687
  function validate(props, propName, componentName, location, propFullName) {
688
688
  var propValue = props[propName];
689
- for (var i3 = 0; i3 < expectedValues.length; i3++) {
690
- if (is(propValue, expectedValues[i3])) {
689
+ for (var i = 0; i < expectedValues.length; i++) {
690
+ if (is(propValue, expectedValues[i])) {
691
691
  return null;
692
692
  }
693
693
  }
@@ -729,19 +729,19 @@ var require_factoryWithTypeCheckers = __commonJS({
729
729
  process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
730
730
  return emptyFunctionThatReturnsNull;
731
731
  }
732
- for (var i3 = 0; i3 < arrayOfTypeCheckers.length; i3++) {
733
- var checker = arrayOfTypeCheckers[i3];
732
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
733
+ var checker = arrayOfTypeCheckers[i];
734
734
  if (typeof checker !== "function") {
735
735
  printWarning(
736
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i3 + "."
736
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
737
737
  );
738
738
  return emptyFunctionThatReturnsNull;
739
739
  }
740
740
  }
741
741
  function validate(props, propName, componentName, location, propFullName) {
742
742
  var expectedTypes = [];
743
- for (var i4 = 0; i4 < arrayOfTypeCheckers.length; i4++) {
744
- var checker2 = arrayOfTypeCheckers[i4];
743
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
744
+ var checker2 = arrayOfTypeCheckers[i2];
745
745
  var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
746
746
  if (checkerResult == null) {
747
747
  return null;
@@ -2481,506 +2481,8 @@ function Flex2(_a) {
2481
2481
  return /* @__PURE__ */ jsx6(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
2482
2482
  }
2483
2483
 
2484
- // ../../node_modules/@react-input/mask/module/helpers-BtaZ0NTN.js
2485
- function e(e5, t3) {
2486
- (null == t3 || t3 > e5.length) && (t3 = e5.length);
2487
- for (var r6 = 0, n5 = Array(t3); r6 < t3; r6++) n5[r6] = e5[r6];
2488
- return n5;
2489
- }
2490
- function t(e5, t3, r6) {
2491
- return t3 = i(t3), function(e6, t4) {
2492
- if (t4 && ("object" == typeof t4 || "function" == typeof t4)) return t4;
2493
- if (void 0 !== t4) throw new TypeError("Derived constructors may only return object or undefined");
2494
- return function(e7) {
2495
- if (void 0 === e7) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2496
- return e7;
2497
- }(e6);
2498
- }(e5, l() ? Reflect.construct(t3, r6 || [], i(e5).constructor) : t3.apply(e5, r6));
2499
- }
2500
- function r(e5, t3) {
2501
- if (!(e5 instanceof t3)) throw new TypeError("Cannot call a class as a function");
2502
- }
2503
- function n(e5, t3, r6) {
2504
- return Object.defineProperty(e5, "prototype", { writable: false }), e5;
2505
- }
2506
- function o(t3, r6) {
2507
- var n5 = "undefined" != typeof Symbol && t3[Symbol.iterator] || t3["@@iterator"];
2508
- if (!n5) {
2509
- if (Array.isArray(t3) || (n5 = function(t4, r7) {
2510
- if (t4) {
2511
- if ("string" == typeof t4) return e(t4, r7);
2512
- var n6 = {}.toString.call(t4).slice(8, -1);
2513
- return "Object" === n6 && t4.constructor && (n6 = t4.constructor.name), "Map" === n6 || "Set" === n6 ? Array.from(t4) : "Arguments" === n6 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n6) ? e(t4, r7) : void 0;
2514
- }
2515
- }(t3)) || r6) {
2516
- n5 && (t3 = n5);
2517
- var o3 = 0, a4 = function() {
2518
- };
2519
- return { s: a4, n: function() {
2520
- return o3 >= t3.length ? { done: true } : { done: false, value: t3[o3++] };
2521
- }, e: function(e5) {
2522
- throw e5;
2523
- }, f: a4 };
2524
- }
2525
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2526
- }
2527
- var c2, i3 = true, u3 = false;
2528
- return { s: function() {
2529
- n5 = n5.call(t3);
2530
- }, n: function() {
2531
- var e5 = n5.next();
2532
- return i3 = e5.done, e5;
2533
- }, e: function(e5) {
2534
- u3 = true, c2 = e5;
2535
- }, f: function() {
2536
- try {
2537
- i3 || null == n5.return || n5.return();
2538
- } finally {
2539
- if (u3) throw c2;
2540
- }
2541
- } };
2542
- }
2543
- function a(e5, t3, r6) {
2544
- return (t3 = function(e6) {
2545
- var t4 = function(e7, t5) {
2546
- if ("object" != typeof e7 || !e7) return e7;
2547
- var r7 = e7[Symbol.toPrimitive];
2548
- if (void 0 !== r7) {
2549
- var n5 = r7.call(e7, t5 || "default");
2550
- if ("object" != typeof n5) return n5;
2551
- throw new TypeError("@@toPrimitive must return a primitive value.");
2552
- }
2553
- return ("string" === t5 ? String : Number)(e7);
2554
- }(e6, "string");
2555
- return "symbol" == typeof t4 ? t4 : t4 + "";
2556
- }(t3)) in e5 ? Object.defineProperty(e5, t3, { value: r6, enumerable: true, configurable: true, writable: true }) : e5[t3] = r6, e5;
2557
- }
2558
- function i(e5) {
2559
- return i = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e6) {
2560
- return e6.__proto__ || Object.getPrototypeOf(e6);
2561
- }, i(e5);
2562
- }
2563
- function u(e5, t3) {
2564
- if ("function" != typeof t3 && null !== t3) throw new TypeError("Super expression must either be null or a function");
2565
- e5.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e5, writable: true, configurable: true } }), Object.defineProperty(e5, "prototype", { writable: false }), t3 && y(e5, t3);
2566
- }
2567
- function l() {
2568
- try {
2569
- var e5 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2570
- }));
2571
- } catch (e6) {
2572
- }
2573
- return (l = function() {
2574
- return !!e5;
2575
- })();
2576
- }
2577
- function f(e5, t3) {
2578
- var r6 = Object.keys(e5);
2579
- if (Object.getOwnPropertySymbols) {
2580
- var n5 = Object.getOwnPropertySymbols(e5);
2581
- t3 && (n5 = n5.filter(function(t4) {
2582
- return Object.getOwnPropertyDescriptor(e5, t4).enumerable;
2583
- })), r6.push.apply(r6, n5);
2584
- }
2585
- return r6;
2586
- }
2587
- function s(e5) {
2588
- for (var t3 = 1; t3 < arguments.length; t3++) {
2589
- var r6 = null != arguments[t3] ? arguments[t3] : {};
2590
- t3 % 2 ? f(Object(r6), true).forEach(function(t4) {
2591
- a(e5, t4, r6[t4]);
2592
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e5, Object.getOwnPropertyDescriptors(r6)) : f(Object(r6)).forEach(function(t4) {
2593
- Object.defineProperty(e5, t4, Object.getOwnPropertyDescriptor(r6, t4));
2594
- });
2595
- }
2596
- return e5;
2597
- }
2598
- function p(e5, t3) {
2599
- if (null == e5) return {};
2600
- var r6, n5, o3 = function(e6, t4) {
2601
- if (null == e6) return {};
2602
- var r7 = {};
2603
- for (var n6 in e6) if ({}.hasOwnProperty.call(e6, n6)) {
2604
- if (t4.includes(n6)) continue;
2605
- r7[n6] = e6[n6];
2606
- }
2607
- return r7;
2608
- }(e5, t3);
2609
- if (Object.getOwnPropertySymbols) {
2610
- var a4 = Object.getOwnPropertySymbols(e5);
2611
- for (n5 = 0; n5 < a4.length; n5++) r6 = a4[n5], t3.includes(r6) || {}.propertyIsEnumerable.call(e5, r6) && (o3[r6] = e5[r6]);
2612
- }
2613
- return o3;
2614
- }
2615
- function y(e5, t3) {
2616
- return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e6, t4) {
2617
- return e6.__proto__ = t4, e6;
2618
- }, y(e5, t3);
2619
- }
2620
- function b(e5, t3) {
2621
- var r6, n5 = t3.replacementChars, a4 = t3.replacement, c2 = t3.separate, i3 = n5, u3 = "", l3 = o(e5);
2622
- try {
2623
- for (l3.s(); !(r6 = l3.n()).done; ) {
2624
- var f3, s3 = r6.value, p3 = !Object.prototype.hasOwnProperty.call(a4, s3) && (null === (f3 = a4[i3[0]]) || void 0 === f3 ? void 0 : f3.test(s3));
2625
- (c2 && s3 === i3[0] || p3) && (i3 = i3.slice(1), u3 += s3);
2626
- }
2627
- } catch (e6) {
2628
- l3.e(e6);
2629
- } finally {
2630
- l3.f();
2631
- }
2632
- return u3;
2633
- }
2634
- function v(e5, t3) {
2635
- var r6, n5 = t3.mask, a4 = t3.replacement, c2 = t3.separate, i3 = t3.showMask, u3 = 0, l3 = "", f3 = o(n5);
2636
- try {
2637
- for (f3.s(); !(r6 = f3.n()).done; ) {
2638
- var s3 = r6.value;
2639
- if (!i3 && void 0 === e5[u3]) break;
2640
- Object.prototype.hasOwnProperty.call(a4, s3) && void 0 !== e5[u3] ? l3 += e5[u3++] : l3 += s3;
2641
- }
2642
- } catch (e6) {
2643
- f3.e(e6);
2644
- } finally {
2645
- f3.f();
2646
- }
2647
- if (c2 && !i3) {
2648
- for (var p3 = n5.length - 1; p3 >= 0 && l3[p3] === n5[p3]; p3--) ;
2649
- l3 = l3.slice(0, p3 + 1);
2650
- }
2651
- return l3;
2652
- }
2653
- function m(e5, t3) {
2654
- for (var r6 = t3.mask, n5 = t3.replacement, o3 = [], a4 = 0; a4 < r6.length; a4++) {
2655
- var c2, i3 = null !== (c2 = e5[a4]) && void 0 !== c2 ? c2 : r6[a4], u3 = Object.prototype.hasOwnProperty.call(n5, i3) ? "replacement" : void 0 !== e5[a4] && e5[a4] !== r6[a4] ? "input" : "mask";
2656
- o3.push({ type: u3, value: i3, index: a4 });
2657
- }
2658
- return o3;
2659
- }
2660
- function O(e5) {
2661
- return e5.length > 0 ? a({}, e5, /./) : {};
2662
- }
2663
- function h(e5, t3) {
2664
- for (var r6 = t3.start, n5 = void 0 === r6 ? 0 : r6, o3 = t3.end, a4 = t3.mask, c2 = t3.replacement, i3 = t3.separate, u3 = e5.slice(n5, o3), l3 = a4.slice(n5, o3), f3 = "", s3 = 0; s3 < l3.length; s3++) {
2665
- var p3 = Object.prototype.hasOwnProperty.call(c2, l3[s3]);
2666
- p3 && void 0 !== u3[s3] && u3[s3] !== l3[s3] ? f3 += u3[s3] : p3 && i3 && (f3 += l3[s3]);
2667
- }
2668
- return f3;
2669
- }
2670
- function d(e5, t3) {
2671
- var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5, a4 = RegExp("[^".concat(Object.keys(o3).join(""), "]"), "g");
2672
- return v(b(e5, { replacementChars: r6.replace(a4, ""), replacement: o3, separate: false }), { mask: r6, replacement: o3, separate: false, showMask: false });
2673
- }
2674
- function g(e5, t3) {
2675
- var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5, a4 = h(e5, { mask: r6, replacement: o3, separate: false }), c2 = RegExp("[^".concat(Object.keys(o3).join(""), "]"), "g");
2676
- return b(a4, { replacementChars: r6.replace(c2, ""), replacement: o3, separate: false });
2677
- }
2678
- function j(e5, t3) {
2679
- var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5;
2680
- return m(d(e5, { mask: r6, replacement: o3 }), { mask: r6, replacement: o3 });
2681
- }
2682
- var w = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
2683
- function P(e5) {
2684
- return w.includes(e5) ? "\\".concat(e5) : e5;
2685
- }
2686
- function k(e5, t3) {
2687
- for (var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5, a4 = "partial" === e5 || "partial-inexact" === e5, c2 = "full" === e5 || "partial" === e5, i3 = "", u3 = 0; u3 < r6.length; u3++) {
2688
- var l3 = r6[u3];
2689
- 0 === u3 && (i3 = "^"), a4 && (i3 += "("), i3 += Object.prototype.hasOwnProperty.call(o3, l3) ? "".concat(c2 ? "(?!".concat(P(l3), ")") : "", "(").concat(o3[l3].source, ")") : P(l3), u3 === r6.length - 1 && (a4 && (i3 += ")?".repeat(r6.length)), i3 += "$");
2690
- }
2691
- return i3;
2692
- }
2693
-
2694
- // ../../node_modules/@react-input/core/module/createProxy.js
2695
- function r2(r6, e5) {
2696
- return new Proxy(r6, { set: function(n5, t3, u3) {
2697
- return "current" === t3 && (u3 !== r6.current && (null !== r6.current && e5.unregister(r6.current), null !== u3 && e5.register(u3)), n5[t3] = u3, true);
2698
- } });
2699
- }
2700
-
2701
- // ../../node_modules/@react-input/core/module/helpers-C8k3UfPS.js
2702
- function t2(t3, e5, r6) {
2703
- return e5 = o2(e5), function(t4, e6) {
2704
- if (e6 && ("object" == typeof e6 || "function" == typeof e6)) return e6;
2705
- if (void 0 !== e6) throw new TypeError("Derived constructors may only return object or undefined");
2706
- return function(t5) {
2707
- if (void 0 === t5) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2708
- return t5;
2709
- }(t4);
2710
- }(t3, i2() ? Reflect.construct(e5, r6 || [], o2(t3).constructor) : e5.apply(t3, r6));
2711
- }
2712
- function e2(t3, e5) {
2713
- if (!(t3 instanceof e5)) throw new TypeError("Cannot call a class as a function");
2714
- }
2715
- function r3(t3, e5, r6) {
2716
- return Object.defineProperty(t3, "prototype", { writable: false }), t3;
2717
- }
2718
- function n2(t3, e5, r6) {
2719
- return (e5 = function(t4) {
2720
- var e6 = function(t5, e7) {
2721
- if ("object" != typeof t5 || !t5) return t5;
2722
- var r7 = t5[Symbol.toPrimitive];
2723
- if (void 0 !== r7) {
2724
- var n5 = r7.call(t5, e7 || "default");
2725
- if ("object" != typeof n5) return n5;
2726
- throw new TypeError("@@toPrimitive must return a primitive value.");
2727
- }
2728
- return ("string" === e7 ? String : Number)(t5);
2729
- }(t4, "string");
2730
- return "symbol" == typeof e6 ? e6 : e6 + "";
2731
- }(e5)) in t3 ? Object.defineProperty(t3, e5, { value: r6, enumerable: true, configurable: true, writable: true }) : t3[e5] = r6, t3;
2732
- }
2733
- function o2(t3) {
2734
- return o2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t4) {
2735
- return t4.__proto__ || Object.getPrototypeOf(t4);
2736
- }, o2(t3);
2737
- }
2738
- function u2(t3, e5) {
2739
- if ("function" != typeof e5 && null !== e5) throw new TypeError("Super expression must either be null or a function");
2740
- t3.prototype = Object.create(e5 && e5.prototype, { constructor: { value: t3, writable: true, configurable: true } }), Object.defineProperty(t3, "prototype", { writable: false }), e5 && a2(t3, e5);
2741
- }
2742
- function i2() {
2743
- try {
2744
- var t3 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2745
- }));
2746
- } catch (t4) {
2747
- }
2748
- return (i2 = function() {
2749
- return !!t3;
2750
- })();
2751
- }
2752
- function c(t3, e5) {
2753
- var r6 = Object.keys(t3);
2754
- if (Object.getOwnPropertySymbols) {
2755
- var n5 = Object.getOwnPropertySymbols(t3);
2756
- e5 && (n5 = n5.filter(function(e6) {
2757
- return Object.getOwnPropertyDescriptor(t3, e6).enumerable;
2758
- })), r6.push.apply(r6, n5);
2759
- }
2760
- return r6;
2761
- }
2762
- function f2(t3) {
2763
- for (var e5 = 1; e5 < arguments.length; e5++) {
2764
- var r6 = null != arguments[e5] ? arguments[e5] : {};
2765
- e5 % 2 ? c(Object(r6), true).forEach(function(e6) {
2766
- n2(t3, e6, r6[e6]);
2767
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(r6)) : c(Object(r6)).forEach(function(e6) {
2768
- Object.defineProperty(t3, e6, Object.getOwnPropertyDescriptor(r6, e6));
2769
- });
2770
- }
2771
- return t3;
2772
- }
2773
- function p2(t3, e5) {
2774
- if (null == t3) return {};
2775
- var r6, n5, o3 = function(t4, e6) {
2776
- if (null == t4) return {};
2777
- var r7 = {};
2778
- for (var n6 in t4) if ({}.hasOwnProperty.call(t4, n6)) {
2779
- if (e6.includes(n6)) continue;
2780
- r7[n6] = t4[n6];
2781
- }
2782
- return r7;
2783
- }(t3, e5);
2784
- if (Object.getOwnPropertySymbols) {
2785
- var u3 = Object.getOwnPropertySymbols(t3);
2786
- for (n5 = 0; n5 < u3.length; n5++) r6 = u3[n5], e5.includes(r6) || {}.propertyIsEnumerable.call(t3, r6) && (o3[r6] = t3[r6]);
2787
- }
2788
- return o3;
2789
- }
2790
- function a2(t3, e5) {
2791
- return a2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t4, e6) {
2792
- return t4.__proto__ = e6, t4;
2793
- }, a2(t3, e5);
2794
- }
2795
- function y2(t3) {
2796
- var e5 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
2797
- return y2 = function(t4) {
2798
- if (null === t4 || !function(t5) {
2799
- try {
2800
- return -1 !== Function.toString.call(t5).indexOf("[native code]");
2801
- } catch (e6) {
2802
- return "function" == typeof t5;
2803
- }
2804
- }(t4)) return t4;
2805
- if ("function" != typeof t4) throw new TypeError("Super expression must either be null or a function");
2806
- if (void 0 !== e5) {
2807
- if (e5.has(t4)) return e5.get(t4);
2808
- e5.set(t4, r6);
2809
- }
2810
- function r6() {
2811
- return function(t5, e6, r7) {
2812
- if (i2()) return Reflect.construct.apply(null, arguments);
2813
- var n5 = [null];
2814
- n5.push.apply(n5, e6);
2815
- var o3 = new (t5.bind.apply(t5, n5))();
2816
- return r7 && a2(o3, r7.prototype), o3;
2817
- }(t4, arguments, o2(this).constructor);
2818
- }
2819
- return r6.prototype = Object.create(t4.prototype, { constructor: { value: r6, enumerable: false, writable: true, configurable: true } }), a2(r6, t4);
2820
- }, y2(t3);
2821
- }
2822
-
2823
- // ../../node_modules/@react-input/core/module/SyntheticChangeError.js
2824
- var n3 = function(t3) {
2825
- function n5(r6) {
2826
- var a4;
2827
- return e2(this, n5), (a4 = t2(this, n5, [r6])).name = "SyntheticChangeError", a4;
2828
- }
2829
- return u2(n5, t3), r3(n5);
2830
- }(y2(Error));
2831
-
2832
- // ../../node_modules/@react-input/core/module/Input.js
2833
- var l2;
2834
- var a3 = ["options"];
2835
- var r4 = ["text", "email", "tel", "search", "url"];
2836
- var s2 = r3(function e3(l3) {
2837
- var s3 = l3.init, c2 = l3.tracking;
2838
- e2(this, e3);
2839
- var u3 = /* @__PURE__ */ new WeakMap();
2840
- this.register = function(e5) {
2841
- var t3;
2842
- if (r4.includes(e5.type)) {
2843
- var l4 = null !== (t3 = e5._wrapperState) && void 0 !== t3 ? t3 : {}, d2 = l4.initialValue, v2 = void 0 === d2 ? "" : d2, p3 = l4.controlled, h2 = void 0 !== p3 && p3, f3 = s3({ initialValue: e5.value || v2, controlled: h2 }), E = f3.value, g3 = f3.options, w3 = { value: E, options: g3, fallbackOptions: g3 }, S = { id: -1, cachedId: -1 }, m2 = { value: "", selectionStart: 0, selectionEnd: 0 }, b3 = Object.getOwnPropertyDescriptor("_valueTracker" in e5 ? e5 : HTMLInputElement.prototype, "value");
2844
- Object.defineProperty(e5, "value", f2(f2({}, b3), {}, { set: function(t4) {
2845
- var n5;
2846
- m2.value = t4, null == b3 || null === (n5 = b3.set) || void 0 === n5 || n5.call(e5, t4);
2847
- } })), e5.value = E;
2848
- var y4 = function() {
2849
- var t4 = function() {
2850
- var n5, o3;
2851
- m2.selectionStart = null !== (n5 = e5.selectionStart) && void 0 !== n5 ? n5 : 0, m2.selectionEnd = null !== (o3 = e5.selectionEnd) && void 0 !== o3 ? o3 : 0, S.id = window.setTimeout(t4);
2852
- };
2853
- S.id = window.setTimeout(t4);
2854
- }, T = function() {
2855
- window.clearTimeout(S.id), S.id = -1, S.cachedId = -1;
2856
- }, k3 = function(t4) {
2857
- try {
2858
- var n5, l5;
2859
- if (S.cachedId === S.id) throw new n3("The input selection has not been updated.");
2860
- S.cachedId = S.id;
2861
- var r6 = e5.value, s4 = e5.selectionStart, u4 = e5.selectionEnd;
2862
- if (null === s4 || null === u4) throw new n3("The selection attributes have not been initialized.");
2863
- var d3, v3 = m2.value;
2864
- if (void 0 === t4.inputType && (m2.selectionStart = 0, m2.selectionEnd = v3.length), s4 > m2.selectionStart ? d3 = "insert" : s4 <= m2.selectionStart && s4 < m2.selectionEnd ? d3 = "deleteBackward" : s4 === m2.selectionEnd && r6.length < v3.length && (d3 = "deleteForward"), void 0 === d3 || ("deleteBackward" === d3 || "deleteForward" === d3) && r6.length > v3.length) throw new n3("Input type detection error.");
2865
- var p4 = "", h3 = m2.selectionStart, f4 = m2.selectionEnd;
2866
- if ("insert" === d3) p4 = r6.slice(m2.selectionStart, s4);
2867
- else {
2868
- var E2 = v3.length - r6.length;
2869
- h3 = s4, f4 = s4 + E2;
2870
- }
2871
- w3.value !== v3 ? w3.options = w3.fallbackOptions : w3.fallbackOptions = w3.options;
2872
- var g4 = w3.options, b4 = c2({ inputType: d3, previousValue: v3, previousOptions: g4, value: r6, addedValue: p4, changeStart: h3, changeEnd: f4, selectionStart: s4, selectionEnd: u4 }), y5 = b4.options, T2 = p2(b4, a3);
2873
- e5.value = T2.value, e5.setSelectionRange(T2.selectionStart, T2.selectionEnd), w3.value = T2.value, w3.options = y5, m2.selectionStart = T2.selectionStart, m2.selectionEnd = T2.selectionEnd, null === (n5 = e5._valueTracker) || void 0 === n5 || null === (l5 = n5.setValue) || void 0 === l5 || l5.call(n5, v3);
2874
- } catch (n6) {
2875
- if (e5.value = m2.value, e5.setSelectionRange(m2.selectionStart, m2.selectionEnd), t4.preventDefault(), t4.stopPropagation(), "SyntheticChangeError" !== n6.name) throw n6;
2876
- }
2877
- };
2878
- document.activeElement === e5 && y4(), e5.addEventListener("focus", y4), e5.addEventListener("blur", T), e5.addEventListener("input", k3), u3.set(e5, { onFocus: y4, onBlur: T, onInput: k3 });
2879
- } else "production" !== process.env.NODE_ENV && console.warn("Warn: The input element type does not match one of the types: ".concat(r4.join(", "), "."));
2880
- }, this.unregister = function(e5) {
2881
- var t3 = u3.get(e5);
2882
- void 0 !== t3 && (e5.removeEventListener("focus", t3.onFocus), e5.removeEventListener("blur", t3.onBlur), e5.removeEventListener("input", t3.onInput), u3.delete(e5));
2883
- };
2884
- });
2885
- l2 = s2, Object.defineProperty(l2.prototype, Symbol.toStringTag, { writable: false, enumerable: false, configurable: true, value: "Input" });
2886
-
2887
- // ../../node_modules/@react-input/mask/module/useMask.js
2888
- import { useRef as r5, useMemo as e4 } from "react";
2889
-
2890
- // ../../node_modules/@react-input/mask/module/Mask.js
2891
- var k2 = function(e5) {
2892
- return function() {
2893
- for (var t3 = arguments.length, a4 = new Array(t3), n5 = 0; n5 < t3; n5++) a4[n5] = arguments[n5];
2894
- return new e5("".concat(a4.join("\n\n"), "\n"));
2895
- };
2896
- };
2897
- var g2;
2898
- var y3 = ["track", "modify"];
2899
- function w2(e5) {
2900
- var t3, a4, n5, r6;
2901
- return { mask: null !== (t3 = e5.mask) && void 0 !== t3 ? t3 : "", replacement: "string" == typeof e5.replacement ? O(e5.replacement) : null !== (a4 = e5.replacement) && void 0 !== a4 ? a4 : {}, showMask: null !== (n5 = e5.showMask) && void 0 !== n5 && n5, separate: null !== (r6 = e5.separate) && void 0 !== r6 && r6, track: e5.track, modify: e5.modify };
2902
- }
2903
- var b2 = function(g3) {
2904
- function b3() {
2905
- var t3, a4 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
2906
- return r(this, b3), (t3 = t(this, b3, [{ init: function(e5) {
2907
- var t4 = e5.initialValue, n5 = e5.controlled, r6 = w2(a4), i3 = r6.mask, l3 = r6.replacement, o3 = r6.separate, s3 = r6.showMask;
2908
- return t4 = n5 || t4 ? t4 : s3 ? i3 : "", "production" !== process.env.NODE_ENV && function(e6) {
2909
- var t5 = e6.initialValue, a5 = e6.mask, n6 = e6.replacement;
2910
- t5.length > a5.length && console.error(k2(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(t5, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
2911
- var r7 = Object.keys(n6).filter(function(e7) {
2912
- return e7.length > 1;
2913
- });
2914
- r7.length > 0 && console.error(k2(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(r7.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."));
2915
- for (var i4 = a5.slice(0, t5.length), l4 = -1, o4 = 0; o4 < i4.length; o4++) {
2916
- var s4 = Object.prototype.hasOwnProperty.call(n6, i4[o4]);
2917
- if (!(i4[o4] === t5[o4] || s4 && n6[i4[o4]].test(t5[o4]))) {
2918
- l4 = o4;
2919
- break;
2920
- }
2921
- }
2922
- -1 !== l4 && console.error(k2(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(l4, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(t5, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
2923
- }({ initialValue: t4, mask: i3, replacement: l3 }), { value: t4, options: { mask: i3, replacement: l3, separate: o3 } };
2924
- }, tracking: function(t4) {
2925
- var n5 = t4.inputType, r6 = t4.previousValue, i3 = t4.previousOptions, l3 = t4.addedValue, o3 = t4.changeStart, s3 = t4.changeEnd, m2 = w2(a4), k3 = m2.track, g4 = m2.modify, b4 = p(m2, y3), O2 = b4.mask, j2 = b4.replacement, T = b4.showMask, V = b4.separate, M = s(s({}, "insert" === n5 ? { inputType: n5, data: l3 } : { inputType: n5, data: null }), {}, { value: r6, selectionStart: o3, selectionEnd: s3 }), z = null == k3 ? void 0 : k3(M);
2926
- if (false === z) throw new n3("Custom tracking stop.");
2927
- null === z ? l3 = "" : true !== z && void 0 !== z && (l3 = z);
2928
- var C = null == g4 ? void 0 : g4(M);
2929
- void 0 !== (null == C ? void 0 : C.mask) && (O2 = C.mask), void 0 !== (null == C ? void 0 : C.replacement) && (j2 = "string" == typeof (null == C ? void 0 : C.replacement) ? O(null == C ? void 0 : C.replacement) : C.replacement), void 0 !== (null == C ? void 0 : C.showMask) && (T = C.showMask), void 0 !== (null == C ? void 0 : C.separate) && (V = C.separate);
2930
- var E = h(r6, s({ end: o3 }, i3)), x = h(r6, s({ start: s3 }, i3)), P2 = RegExp("[^".concat(Object.keys(j2).join(""), "]"), "g"), S = O2.replace(P2, "");
2931
- if (E && (E = b(E, { replacementChars: S, replacement: j2, separate: V }), S = S.slice(E.length)), l3 && (l3 = b(l3, { replacementChars: S, replacement: j2, separate: false }), S = S.slice(l3.length)), "insert" === n5 && "" === l3) throw new n3("The character does not match the key value of the `replacement` object.");
2932
- if (V) {
2933
- var I = O2.slice(o3, s3).replace(P2, ""), G = I.length - l3.length;
2934
- G < 0 ? x = x.slice(-G) : G > 0 && (x = I.slice(-G) + x);
2935
- }
2936
- x && (x = b(x, { replacementChars: S, replacement: j2, separate: V }));
2937
- var A = v(E + l3 + x, { mask: O2, replacement: j2, separate: V, showMask: T }), N = function(t5) {
2938
- var a5, n6, r7, i4 = t5.inputType, l4 = t5.value, o4 = t5.addedValue, s4 = t5.beforeChangeValue, c2 = t5.mask, u3 = t5.replacement, p3 = t5.separate, d2 = m(l4, { mask: c2, replacement: u3 }).filter(function(e5) {
2939
- var t6 = e5.type;
2940
- return "input" === t6 || p3 && "replacement" === t6;
2941
- }), h2 = null === (a5 = d2[s4.length + o4.length - 1]) || void 0 === a5 ? void 0 : a5.index, v2 = null === (n6 = d2[s4.length - 1]) || void 0 === n6 ? void 0 : n6.index, m3 = null === (r7 = d2[s4.length + o4.length]) || void 0 === r7 ? void 0 : r7.index;
2942
- if ("insert" === i4) {
2943
- if (void 0 !== h2) return h2 + 1;
2944
- if (void 0 !== m3) return m3;
2945
- if (void 0 !== v2) return v2 + 1;
2946
- }
2947
- if ("deleteForward" === i4) {
2948
- if (void 0 !== m3) return m3;
2949
- if (void 0 !== v2) return v2 + 1;
2950
- }
2951
- if ("deleteBackward" === i4) {
2952
- if (void 0 !== v2) return v2 + 1;
2953
- if (void 0 !== m3) return m3;
2954
- }
2955
- var f3 = l4.split("").findIndex(function(e5) {
2956
- return Object.prototype.hasOwnProperty.call(u3, e5);
2957
- });
2958
- return -1 !== f3 ? f3 : l4.length;
2959
- }({ inputType: n5, value: A, addedValue: l3, beforeChangeValue: E, mask: O2, replacement: j2, separate: V });
2960
- return { value: A, selectionStart: N, selectionEnd: N, options: { mask: O2, replacement: j2, separate: V } };
2961
- } }])).format = function(e5) {
2962
- return d(e5, w2(a4));
2963
- }, t3.formatToParts = function(e5) {
2964
- return j(e5, w2(a4));
2965
- }, t3.unformat = function(e5) {
2966
- return g(e5, w2(a4));
2967
- }, t3.generatePattern = function(e5) {
2968
- return k(e5, w2(a4));
2969
- }, t3;
2970
- }
2971
- return u(b3, s2), n(b3);
2972
- }();
2973
- g2 = b2, Object.defineProperty(g2.prototype, Symbol.toStringTag, { writable: false, enumerable: false, configurable: true, value: "Mask" });
2974
-
2975
- // ../../node_modules/@react-input/mask/module/useMask.js
2976
- function n4() {
2977
- var n5 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, c2 = n5.mask, o3 = n5.replacement, m2 = n5.showMask, s3 = n5.separate, u3 = n5.track, p3 = n5.modify, i3 = r5(null), k3 = r5({ mask: c2, replacement: o3, showMask: m2, separate: s3, track: u3, modify: p3 });
2978
- return k3.current.mask = c2, k3.current.replacement = o3, k3.current.showMask = m2, k3.current.separate = s3, k3.current.track = u3, k3.current.modify = p3, e4(function() {
2979
- return r2(i3, new b2(k3.current));
2980
- }, []);
2981
- }
2982
-
2983
2484
  // src/components/TextField.tsx
2485
+ import { format, useMask, unformat } from "@react-input/mask";
2984
2486
  import { jsx as jsx7, jsxs } from "react/jsx-runtime";
2985
2487
  var TextFieldStyled = styled(TextFieldRadix.Root, {
2986
2488
  height: "$40",
@@ -3140,8 +2642,8 @@ var InputAddon = styled(TextStyle, {
3140
2642
  alignItems: "center",
3141
2643
  lineHeight: 1
3142
2644
  });
3143
- var maskFormat = d;
3144
- var maskUnformat = g;
2645
+ var maskFormat = format;
2646
+ var maskUnformat = unformat;
3145
2647
  function TextField(_a) {
3146
2648
  var _b = _a, {
3147
2649
  children,
@@ -3164,7 +2666,7 @@ function TextField(_a) {
3164
2666
  "textAlign",
3165
2667
  "mask"
3166
2668
  ]);
3167
- const maskRef = mask ? n4(mask) : void 0;
2669
+ const maskRef = mask ? useMask(mask) : void 0;
3168
2670
  return /* @__PURE__ */ jsxs(Flex2, { gap: "0", css: { width: "100%" }, children: [
3169
2671
  !!addon && /* @__PURE__ */ jsx7(InputAddon, { typography: "labelSmall", children: addon }),
3170
2672
  /* @__PURE__ */ jsxs(
@@ -4021,7 +3523,7 @@ function Badge(_a) {
4021
3523
  }
4022
3524
 
4023
3525
  // src/components/Modal.tsx
4024
- import { Dialog as ModalRadix } from "@radix-ui/themes";
3526
+ import { Dialog as ModalRadix } from "radix-ui";
4025
3527
 
4026
3528
  // src/components/Box.tsx
4027
3529
  import { Box as BoxRadix } from "@radix-ui/themes";
@@ -4029,12 +3531,6 @@ var Box = BoxRadix;
4029
3531
 
4030
3532
  // src/components/Modal.tsx
4031
3533
  import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
4032
- var ModalStyled = styled("div", {
4033
- fontFamily: "$default",
4034
- lineHeight: "$base",
4035
- fontSize: "$13",
4036
- borderRadius: "$sm"
4037
- });
4038
3534
  var ModalContentStyled = styled(ModalRadix.Content, {
4039
3535
  fontFamily: "$default",
4040
3536
  lineHeight: "$base",
@@ -4043,11 +3539,22 @@ var ModalContentStyled = styled(ModalRadix.Content, {
4043
3539
  width: "100%",
4044
3540
  border: "1px solid $neutral",
4045
3541
  borderRadius: "$2xl",
4046
- boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)"
3542
+ boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
3543
+ position: "fixed",
3544
+ top: "50%",
3545
+ left: "50%",
3546
+ transform: "translate(-50%, -50%)",
3547
+ backgroundColor: "$dark50"
3548
+ });
3549
+ var ModalOverlay = styled(ModalRadix.Overlay, {
3550
+ position: "fixed",
3551
+ inset: 0,
3552
+ opacity: 1,
3553
+ backgroundColor: "rgba(0, 0, 0, .5)"
4047
3554
  });
4048
3555
  var ModalHeaderStyled = styled("div", {
4049
3556
  borderBottom: "1px solid $neutral300",
4050
- padding: "$16 $24",
3557
+ padding: "$18 $24",
4051
3558
  textAlign: "center",
4052
3559
  position: "relative",
4053
3560
  display: "flex",
@@ -4059,13 +3566,6 @@ var ModalIconClose = styled(Icon_default, {
4059
3566
  right: "$24",
4060
3567
  cursor: "pointer"
4061
3568
  });
4062
- var ModalFooterStyled = styled("div", {
4063
- borderTop: "1px solid $neutral300",
4064
- padding: "$16 $24",
4065
- ".modal-footer-flex": {
4066
- justifyContent: "flex-end"
4067
- }
4068
- });
4069
3569
  var ModalTitleStyled = styled(ModalRadix.Title, {
4070
3570
  fontFamily: "$default",
4071
3571
  lineHeight: "$base",
@@ -4075,21 +3575,17 @@ var ModalTitleStyled = styled(ModalRadix.Title, {
4075
3575
  textTransform: "uppercase"
4076
3576
  });
4077
3577
  function Modal(_a) {
4078
- var _b = _a, { children, title, trigger, cancel, cancelText, action, actionText, onAction } = _b, props = __objRest(_b, ["children", "title", "trigger", "cancel", "cancelText", "action", "actionText", "onAction"]);
4079
- return /* @__PURE__ */ jsx13(ModalRadix.Root, { children: /* @__PURE__ */ jsxs4(ModalStyled, __spreadProps(__spreadValues({}, props), { children: [
4080
- /* @__PURE__ */ jsx13(ModalRadix.Trigger, { children: trigger }),
4081
- /* @__PURE__ */ jsxs4(ModalContentStyled, { children: [
4082
- /* @__PURE__ */ jsxs4(ModalHeaderStyled, { children: [
4083
- title && /* @__PURE__ */ jsx13(ModalTitleStyled, { children: title }),
4084
- /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
3578
+ var _b = _a, { children, title, trigger } = _b, props = __objRest(_b, ["children", "title", "trigger"]);
3579
+ return /* @__PURE__ */ jsxs4(ModalRadix.Root, __spreadProps(__spreadValues({}, props), { children: [
3580
+ trigger && /* @__PURE__ */ jsx13(ModalRadix.Trigger, { asChild: true, children: trigger }),
3581
+ /* @__PURE__ */ jsx13(ModalRadix.Portal, { children: /* @__PURE__ */ jsx13(ModalOverlay, { children: /* @__PURE__ */ jsxs4(ModalContentStyled, { children: [
3582
+ title && /* @__PURE__ */ jsxs4(ModalHeaderStyled, { children: [
3583
+ /* @__PURE__ */ jsx13(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ jsx13(Text, { typography: "headline6", fontWeight: "medium", children: title }) }),
3584
+ /* @__PURE__ */ jsx13(ModalRadix.Close, { asChild: true, children: /* @__PURE__ */ jsx13(ModalIconClose, { name: "close", size: "xl" }) })
4085
3585
  ] }),
4086
- /* @__PURE__ */ jsx13(Box, { children }),
4087
- cancel || action ? /* @__PURE__ */ jsx13(ModalFooterStyled, { children: /* @__PURE__ */ jsxs4(Flex2, { gap: "10", justify: "end", width: "100%", className: "modal-footer-flex", children: [
4088
- action && onAction && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "contained", color: "brand", onClick: onAction, children: actionText ? actionText : "Salvar" }) }),
4089
- cancel && /* @__PURE__ */ jsx13(ModalRadix.Close, { children: /* @__PURE__ */ jsx13(Button, { variant: "outlined", color: "neutral", children: cancelText ? cancelText : "cancelar" }) })
4090
- ] }) }) : null
4091
- ] })
4092
- ] })) });
3586
+ /* @__PURE__ */ jsx13(Box, { children })
3587
+ ] }) }) })
3588
+ ] }));
4093
3589
  }
4094
3590
 
4095
3591
  // src/components/Calendar/index.tsx
@@ -4121,8 +3617,8 @@ import { DayPicker } from "react-day-picker";
4121
3617
  function buildFormatLongFn(args) {
4122
3618
  return (options = {}) => {
4123
3619
  const width = options.width ? String(options.width) : args.defaultWidth;
4124
- const format2 = args.formats[width] || args.formats[args.defaultWidth];
4125
- return format2;
3620
+ const format3 = args.formats[width] || args.formats[args.defaultWidth];
3621
+ return format3;
4126
3622
  };
4127
3623
  }
4128
3624
 
@@ -4817,11 +4313,11 @@ var formatRelativeLocale2 = {
4817
4313
  other: "P"
4818
4314
  };
4819
4315
  var formatRelative2 = (token, date, _baseDate, _options) => {
4820
- const format2 = formatRelativeLocale2[token];
4821
- if (typeof format2 === "function") {
4822
- return format2(date);
4316
+ const format3 = formatRelativeLocale2[token];
4317
+ if (typeof format3 === "function") {
4318
+ return format3(date);
4823
4319
  }
4824
- return format2;
4320
+ return format3;
4825
4321
  };
4826
4322
 
4827
4323
  // ../../node_modules/date-fns/locale/pt-BR/_lib/localize.js
@@ -6089,14 +5585,14 @@ function isProtectedDayOfYearToken(token) {
6089
5585
  function isProtectedWeekYearToken(token) {
6090
5586
  return weekYearTokenRE.test(token);
6091
5587
  }
6092
- function warnOrThrowProtectedError(token, format2, input) {
6093
- const _message = message(token, format2, input);
5588
+ function warnOrThrowProtectedError(token, format3, input) {
5589
+ const _message = message(token, format3, input);
6094
5590
  console.warn(_message);
6095
5591
  if (throwTokens.includes(token)) throw new RangeError(_message);
6096
5592
  }
6097
- function message(token, format2, input) {
5593
+ function message(token, format3, input) {
6098
5594
  const subject = token[0] === "Y" ? "years" : "days of the month";
6099
- return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format2}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
5595
+ return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${format3}\`) for formatting ${subject} to the input \`${input}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
6100
5596
  }
6101
5597
 
6102
5598
  // ../../node_modules/date-fns/format.js
@@ -6105,7 +5601,7 @@ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
6105
5601
  var escapedStringRegExp = /^'([^]*?)'?$/;
6106
5602
  var doubleQuoteRegExp = /''/g;
6107
5603
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
6108
- function format(date, formatStr, options) {
5604
+ function format2(date, formatStr, options) {
6109
5605
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
6110
5606
  const defaultOptions2 = getDefaultOptions();
6111
5607
  const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions2.locale) != null ? _b : enUS;
@@ -6380,8 +5876,8 @@ function parseTimezonePattern(pattern, dateString) {
6380
5876
  function parseAnyDigitsSigned(dateString) {
6381
5877
  return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
6382
5878
  }
6383
- function parseNDigits(n5, dateString) {
6384
- switch (n5) {
5879
+ function parseNDigits(n, dateString) {
5880
+ switch (n) {
6385
5881
  case 1:
6386
5882
  return parseNumericPattern(numericPatterns.singleDigit, dateString);
6387
5883
  case 2:
@@ -6391,11 +5887,11 @@ function parseNDigits(n5, dateString) {
6391
5887
  case 4:
6392
5888
  return parseNumericPattern(numericPatterns.fourDigits, dateString);
6393
5889
  default:
6394
- return parseNumericPattern(new RegExp("^\\d{1," + n5 + "}"), dateString);
5890
+ return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString);
6395
5891
  }
6396
5892
  }
6397
- function parseNDigitsSigned(n5, dateString) {
6398
- switch (n5) {
5893
+ function parseNDigitsSigned(n, dateString) {
5894
+ switch (n) {
6399
5895
  case 1:
6400
5896
  return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
6401
5897
  case 2:
@@ -6405,7 +5901,7 @@ function parseNDigitsSigned(n5, dateString) {
6405
5901
  case 4:
6406
5902
  return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
6407
5903
  default:
6408
- return parseNumericPattern(new RegExp("^-?\\d{1," + n5 + "}"), dateString);
5904
+ return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString);
6409
5905
  }
6410
5906
  }
6411
5907
  function dayPeriodEnumToHours(dayPeriod) {
@@ -7981,8 +7477,8 @@ function parse(dateStr, formatStr, referenceDate, options) {
7981
7477
  if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {
7982
7478
  return invalidDate();
7983
7479
  }
7984
- const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((a4, b3) => b3 - a4).filter((priority, index, array) => array.indexOf(priority) === index).map(
7985
- (priority) => setters.filter((setter) => setter.priority === priority).sort((a4, b3) => b3.subPriority - a4.subPriority)
7480
+ const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((a, b) => b - a).filter((priority, index, array) => array.indexOf(priority) === index).map(
7481
+ (priority) => setters.filter((setter) => setter.priority === priority).sort((a, b) => b.subPriority - a.subPriority)
7986
7482
  ).map((setterArray) => setterArray[0]);
7987
7483
  let date = toDate(referenceDate, options == null ? void 0 : options.in);
7988
7484
  if (isNaN(+date)) return invalidDate();
@@ -8244,13 +7740,13 @@ function Calendar(_a) {
8244
7740
  const maxDate = addYears(today, 20);
8245
7741
  useEffect2(() => {
8246
7742
  if (selected) {
8247
- setInputValue(format(selected, "dd/MM/yyyy"));
7743
+ setInputValue(format2(selected, "dd/MM/yyyy"));
8248
7744
  } else {
8249
7745
  setInputValue("");
8250
7746
  }
8251
7747
  }, [selected]);
8252
- const handleInputChange = (e5) => {
8253
- const masked = formatToDateMask(e5.target.value);
7748
+ const handleInputChange = (e) => {
7749
+ const masked = formatToDateMask(e.target.value);
8254
7750
  setInputValue(masked);
8255
7751
  const parsed = parse(masked, "dd/MM/yyyy", /* @__PURE__ */ new Date());
8256
7752
  if (isValid(parsed)) {
@@ -8260,18 +7756,25 @@ function Calendar(_a) {
8260
7756
  }
8261
7757
  };
8262
7758
  return /* @__PURE__ */ jsx14("div", { children: /* @__PURE__ */ jsxs5(CalendarStyled, __spreadProps(__spreadValues({}, props), { ref: dropdownRef, children: [
8263
- /* @__PURE__ */ jsx14(CalendarButtonStyled, { onClick: () => setShowCalendar((prev) => !prev), children: /* @__PURE__ */ jsx14(
8264
- TextField,
7759
+ /* @__PURE__ */ jsx14(
7760
+ CalendarButtonStyled,
8265
7761
  {
8266
- placeholder: "00/00/0000",
8267
- type: "text",
8268
- value: inputValue,
8269
- onChange: handleInputChange,
8270
- inputMode: "numeric",
8271
- textAlign: "right",
8272
- children: /* @__PURE__ */ jsx14(TextFieldSlot, { children: /* @__PURE__ */ jsx14(Icon_default, { name: "calendar", size: "xl" }) })
7762
+ type: "button",
7763
+ onClick: () => setShowCalendar((prev) => !prev),
7764
+ children: /* @__PURE__ */ jsx14(
7765
+ TextField,
7766
+ {
7767
+ placeholder: "00/00/0000",
7768
+ type: "text",
7769
+ value: inputValue,
7770
+ onChange: handleInputChange,
7771
+ inputMode: "numeric",
7772
+ textAlign: "right",
7773
+ children: /* @__PURE__ */ jsx14(TextFieldSlot, { children: /* @__PURE__ */ jsx14(Icon_default, { name: "calendar", size: "xl" }) })
7774
+ }
7775
+ )
8273
7776
  }
8274
- ) }),
7777
+ ),
8275
7778
  showContainer && /* @__PURE__ */ jsxs5(
8276
7779
  CalendarContentStyled,
8277
7780
  {
@@ -8296,6 +7799,7 @@ function Calendar(_a) {
8296
7799
  {
8297
7800
  variant: "text",
8298
7801
  color: "brand",
7802
+ type: "button",
8299
7803
  onClick: () => {
8300
7804
  setShowCalendar(false);
8301
7805
  },
@@ -8359,6 +7863,31 @@ var TimerPickerContentStyled = styled("div", {
8359
7863
  textAlign: "center!important"
8360
7864
  }
8361
7865
  });
7866
+ var InputStyled = styled("input", {
7867
+ height: "$40",
7868
+ fontFamily: "$default",
7869
+ borderRadius: "$sm",
7870
+ boxSizing: "border-box",
7871
+ color: "$dark500",
7872
+ border: "1px solid $dark300",
7873
+ position: "relative",
7874
+ display: "flex",
7875
+ width: "100%",
7876
+ alignItems: "center",
7877
+ padding: "0",
7878
+ outline: "none",
7879
+ margin: 0,
7880
+ textAlign: "center",
7881
+ "&:has(input:focus)": {
7882
+ border: "2px solid $brand300"
7883
+ },
7884
+ "&:has(input:disabled)": {
7885
+ backgroundColor: "$dark100",
7886
+ color: "$dark400",
7887
+ border: "1px solid $dark200",
7888
+ cursor: "not-allowed"
7889
+ }
7890
+ });
8362
7891
  function TimePicker({
8363
7892
  selected,
8364
7893
  setSelected,
@@ -8433,6 +7962,7 @@ function TimePicker({
8433
7962
  /* @__PURE__ */ jsx15(
8434
7963
  Button,
8435
7964
  {
7965
+ type: "button",
8436
7966
  variant: "text",
8437
7967
  onClick: () => handleIncrement(unit),
8438
7968
  children: /* @__PURE__ */ jsxs6(
@@ -8464,20 +7994,18 @@ function TimePicker({
8464
7994
  }
8465
7995
  ),
8466
7996
  /* @__PURE__ */ jsx15(
8467
- TextField,
7997
+ InputStyled,
8468
7998
  {
8469
7999
  value: unit === "hours" ? hours : minutes,
8470
- onChange: (e5) => handleInputValue(e5.target.value),
8000
+ onChange: (e) => handleInputValue(e.target.value),
8471
8001
  type: "text",
8472
- placeholder: "00",
8473
- typography: "labelSmall",
8474
- fontWeight: "regular",
8475
- textAlign: "center"
8002
+ placeholder: "00"
8476
8003
  }
8477
8004
  ),
8478
8005
  /* @__PURE__ */ jsx15(
8479
8006
  Button,
8480
8007
  {
8008
+ type: "button",
8481
8009
  variant: "text",
8482
8010
  onClick: () => handleDecrement(unit),
8483
8011
  children: /* @__PURE__ */ jsxs6(
@@ -8517,6 +8045,7 @@ function TimePicker({
8517
8045
  /* @__PURE__ */ jsx15(TimePickerFooterStyled, { children: /* @__PURE__ */ jsx15(
8518
8046
  Button,
8519
8047
  {
8048
+ type: "button",
8520
8049
  variant: "text",
8521
8050
  color: "brand",
8522
8051
  onClick: () => handleInputValue(`${hours}:${minutes}`),
@@ -9369,10 +8898,8 @@ export {
9369
8898
  Grid,
9370
8899
  GridStyled,
9371
8900
  Icon,
8901
+ InputStyled,
9372
8902
  Modal,
9373
- ModalContentStyled,
9374
- ModalStyled,
9375
- ModalTitleStyled,
9376
8903
  RadioGroup,
9377
8904
  RadioGroupStyled,
9378
8905
  RadioItem,