@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.
- package/.eslintrc.json +2 -2
- package/.turbo/turbo-build.log +18 -19
- package/CHANGELOG.md +19 -1
- package/dist/index.d.mts +23 -767
- package/dist/index.d.ts +23 -767
- package/dist/index.js +279 -754
- package/dist/index.mjs +215 -688
- package/package.json +3 -1
- package/src/components/Alert.tsx +303 -303
- package/src/components/Avatar.tsx +55 -55
- package/src/components/Badge.tsx +128 -128
- package/src/components/Box.tsx +3 -3
- package/src/components/Button/index.tsx +12 -12
- package/src/components/Button/styledComponents.ts +250 -250
- package/src/components/ButtonGroup.tsx +484 -484
- package/src/components/Calendar/index.tsx +136 -132
- package/src/components/Calendar/styledComponents.ts +208 -208
- package/src/components/Card.tsx +69 -69
- package/src/components/CheckboxGroup.tsx +214 -214
- package/src/components/Container.tsx +39 -39
- package/src/components/Dropdown.tsx +167 -167
- package/src/components/Filter.tsx +164 -164
- package/src/components/Flex.tsx +118 -118
- package/src/components/Grid.tsx +137 -137
- package/src/components/Icon.tsx +47 -47
- package/src/components/Modal.tsx +88 -109
- package/src/components/RadioGroup.tsx +210 -210
- package/src/components/Section.tsx +33 -33
- package/src/components/Step.tsx +164 -164
- package/src/components/Switch.tsx +108 -108
- package/src/components/Text.tsx +30 -30
- package/src/components/TextField.tsx +299 -299
- package/src/components/TextareaField.tsx +101 -101
- package/src/components/TimePicker.tsx +239 -213
- package/src/hooks/useOnClickOutside.tsx +20 -20
- package/src/index.tsx +31 -31
- package/src/styles/index.ts +38 -38
- package/src/types/typographyValues.ts +178 -178
- package/tsconfig.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10,18 +10,18 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
10
10
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
11
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
12
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
-
var __spreadValues = (
|
|
14
|
-
for (var prop in
|
|
15
|
-
if (__hasOwnProp.call(
|
|
16
|
-
__defNormalProp(
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
17
|
if (__getOwnPropSymbols)
|
|
18
|
-
for (var prop of __getOwnPropSymbols(
|
|
19
|
-
if (__propIsEnum.call(
|
|
20
|
-
__defNormalProp(
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
21
|
}
|
|
22
|
-
return
|
|
22
|
+
return a;
|
|
23
23
|
};
|
|
24
|
-
var __spreadProps = (
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
25
|
var __objRest = (source, exclude) => {
|
|
26
26
|
var target = {};
|
|
27
27
|
for (var prop in source)
|
|
@@ -64,110 +64,110 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
64
64
|
var require_react_is_production_min = __commonJS({
|
|
65
65
|
"../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
|
|
66
66
|
"use strict";
|
|
67
|
-
var
|
|
68
|
-
var
|
|
69
|
-
var
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var q =
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var
|
|
83
|
-
var
|
|
84
|
-
var x =
|
|
85
|
-
var
|
|
86
|
-
function z(
|
|
87
|
-
if ("object" === typeof
|
|
88
|
-
var
|
|
89
|
-
switch (
|
|
90
|
-
case
|
|
91
|
-
switch (
|
|
92
|
-
case
|
|
93
|
-
case
|
|
94
|
-
case
|
|
95
|
-
case
|
|
96
|
-
case
|
|
97
|
-
case
|
|
98
|
-
return
|
|
67
|
+
var b = "function" === typeof Symbol && Symbol.for;
|
|
68
|
+
var c = b ? Symbol.for("react.element") : 60103;
|
|
69
|
+
var d = b ? Symbol.for("react.portal") : 60106;
|
|
70
|
+
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
71
|
+
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
72
|
+
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
73
|
+
var h = b ? Symbol.for("react.provider") : 60109;
|
|
74
|
+
var k = b ? Symbol.for("react.context") : 60110;
|
|
75
|
+
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
76
|
+
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
77
|
+
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
78
|
+
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
79
|
+
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
80
|
+
var r = b ? Symbol.for("react.memo") : 60115;
|
|
81
|
+
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
82
|
+
var v = b ? Symbol.for("react.block") : 60121;
|
|
83
|
+
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
84
|
+
var x = b ? Symbol.for("react.responder") : 60118;
|
|
85
|
+
var y = b ? Symbol.for("react.scope") : 60119;
|
|
86
|
+
function z(a) {
|
|
87
|
+
if ("object" === typeof a && null !== a) {
|
|
88
|
+
var u = a.$$typeof;
|
|
89
|
+
switch (u) {
|
|
90
|
+
case c:
|
|
91
|
+
switch (a = a.type, a) {
|
|
92
|
+
case l:
|
|
93
|
+
case m:
|
|
94
|
+
case e:
|
|
95
|
+
case g:
|
|
96
|
+
case f:
|
|
97
|
+
case p:
|
|
98
|
+
return a;
|
|
99
99
|
default:
|
|
100
|
-
switch (
|
|
101
|
-
case
|
|
102
|
-
case
|
|
103
|
-
case
|
|
104
|
-
case
|
|
105
|
-
case
|
|
106
|
-
return
|
|
100
|
+
switch (a = a && a.$$typeof, a) {
|
|
101
|
+
case k:
|
|
102
|
+
case n:
|
|
103
|
+
case t:
|
|
104
|
+
case r:
|
|
105
|
+
case h:
|
|
106
|
+
return a;
|
|
107
107
|
default:
|
|
108
|
-
return
|
|
108
|
+
return u;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
case
|
|
112
|
-
return
|
|
111
|
+
case d:
|
|
112
|
+
return u;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
function A(
|
|
117
|
-
return z(
|
|
118
|
-
}
|
|
119
|
-
exports2.AsyncMode =
|
|
120
|
-
exports2.ConcurrentMode =
|
|
121
|
-
exports2.ContextConsumer =
|
|
122
|
-
exports2.ContextProvider =
|
|
123
|
-
exports2.Element =
|
|
124
|
-
exports2.ForwardRef =
|
|
125
|
-
exports2.Fragment =
|
|
126
|
-
exports2.Lazy =
|
|
127
|
-
exports2.Memo =
|
|
128
|
-
exports2.Portal =
|
|
129
|
-
exports2.Profiler =
|
|
130
|
-
exports2.StrictMode =
|
|
131
|
-
exports2.Suspense =
|
|
132
|
-
exports2.isAsyncMode = function(
|
|
133
|
-
return A(
|
|
116
|
+
function A(a) {
|
|
117
|
+
return z(a) === m;
|
|
118
|
+
}
|
|
119
|
+
exports2.AsyncMode = l;
|
|
120
|
+
exports2.ConcurrentMode = m;
|
|
121
|
+
exports2.ContextConsumer = k;
|
|
122
|
+
exports2.ContextProvider = h;
|
|
123
|
+
exports2.Element = c;
|
|
124
|
+
exports2.ForwardRef = n;
|
|
125
|
+
exports2.Fragment = e;
|
|
126
|
+
exports2.Lazy = t;
|
|
127
|
+
exports2.Memo = r;
|
|
128
|
+
exports2.Portal = d;
|
|
129
|
+
exports2.Profiler = g;
|
|
130
|
+
exports2.StrictMode = f;
|
|
131
|
+
exports2.Suspense = p;
|
|
132
|
+
exports2.isAsyncMode = function(a) {
|
|
133
|
+
return A(a) || z(a) === l;
|
|
134
134
|
};
|
|
135
135
|
exports2.isConcurrentMode = A;
|
|
136
|
-
exports2.isContextConsumer = function(
|
|
137
|
-
return z(
|
|
136
|
+
exports2.isContextConsumer = function(a) {
|
|
137
|
+
return z(a) === k;
|
|
138
138
|
};
|
|
139
|
-
exports2.isContextProvider = function(
|
|
140
|
-
return z(
|
|
139
|
+
exports2.isContextProvider = function(a) {
|
|
140
|
+
return z(a) === h;
|
|
141
141
|
};
|
|
142
|
-
exports2.isElement = function(
|
|
143
|
-
return "object" === typeof
|
|
142
|
+
exports2.isElement = function(a) {
|
|
143
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
144
144
|
};
|
|
145
|
-
exports2.isForwardRef = function(
|
|
146
|
-
return z(
|
|
145
|
+
exports2.isForwardRef = function(a) {
|
|
146
|
+
return z(a) === n;
|
|
147
147
|
};
|
|
148
|
-
exports2.isFragment = function(
|
|
149
|
-
return z(
|
|
148
|
+
exports2.isFragment = function(a) {
|
|
149
|
+
return z(a) === e;
|
|
150
150
|
};
|
|
151
|
-
exports2.isLazy = function(
|
|
152
|
-
return z(
|
|
151
|
+
exports2.isLazy = function(a) {
|
|
152
|
+
return z(a) === t;
|
|
153
153
|
};
|
|
154
|
-
exports2.isMemo = function(
|
|
155
|
-
return z(
|
|
154
|
+
exports2.isMemo = function(a) {
|
|
155
|
+
return z(a) === r;
|
|
156
156
|
};
|
|
157
|
-
exports2.isPortal = function(
|
|
158
|
-
return z(
|
|
157
|
+
exports2.isPortal = function(a) {
|
|
158
|
+
return z(a) === d;
|
|
159
159
|
};
|
|
160
|
-
exports2.isProfiler = function(
|
|
161
|
-
return z(
|
|
160
|
+
exports2.isProfiler = function(a) {
|
|
161
|
+
return z(a) === g;
|
|
162
162
|
};
|
|
163
|
-
exports2.isStrictMode = function(
|
|
164
|
-
return z(
|
|
163
|
+
exports2.isStrictMode = function(a) {
|
|
164
|
+
return z(a) === f;
|
|
165
165
|
};
|
|
166
|
-
exports2.isSuspense = function(
|
|
167
|
-
return z(
|
|
166
|
+
exports2.isSuspense = function(a) {
|
|
167
|
+
return z(a) === p;
|
|
168
168
|
};
|
|
169
|
-
exports2.isValidElementType = function(
|
|
170
|
-
return "string" === typeof
|
|
169
|
+
exports2.isValidElementType = function(a) {
|
|
170
|
+
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);
|
|
171
171
|
};
|
|
172
172
|
exports2.typeOf = z;
|
|
173
173
|
}
|
|
@@ -364,11 +364,11 @@ var require_object_assign = __commonJS({
|
|
|
364
364
|
return false;
|
|
365
365
|
}
|
|
366
366
|
var test2 = {};
|
|
367
|
-
for (var
|
|
368
|
-
test2["_" + String.fromCharCode(
|
|
367
|
+
for (var i = 0; i < 10; i++) {
|
|
368
|
+
test2["_" + String.fromCharCode(i)] = i;
|
|
369
369
|
}
|
|
370
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(
|
|
371
|
-
return test2[
|
|
370
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
371
|
+
return test2[n];
|
|
372
372
|
});
|
|
373
373
|
if (order2.join("") !== "0123456789") {
|
|
374
374
|
return false;
|
|
@@ -389,8 +389,8 @@ var require_object_assign = __commonJS({
|
|
|
389
389
|
var from;
|
|
390
390
|
var to = toObject(target);
|
|
391
391
|
var symbols;
|
|
392
|
-
for (var
|
|
393
|
-
from = Object(arguments[
|
|
392
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
393
|
+
from = Object(arguments[s]);
|
|
394
394
|
for (var key in from) {
|
|
395
395
|
if (hasOwnProperty.call(from, key)) {
|
|
396
396
|
to[key] = from[key];
|
|
@@ -398,9 +398,9 @@ var require_object_assign = __commonJS({
|
|
|
398
398
|
}
|
|
399
399
|
if (getOwnPropertySymbols) {
|
|
400
400
|
symbols = getOwnPropertySymbols(from);
|
|
401
|
-
for (var
|
|
402
|
-
if (propIsEnumerable.call(from, symbols[
|
|
403
|
-
to[symbols[
|
|
401
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
402
|
+
if (propIsEnumerable.call(from, symbols[i])) {
|
|
403
|
+
to[symbols[i]] = from[symbols[i]];
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
}
|
|
@@ -550,11 +550,11 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
550
550
|
shape: createShapeTypeChecker,
|
|
551
551
|
exact: createStrictShapeTypeChecker
|
|
552
552
|
};
|
|
553
|
-
function is(x,
|
|
554
|
-
if (x ===
|
|
555
|
-
return x !== 0 || 1 / x === 1 /
|
|
553
|
+
function is(x, y) {
|
|
554
|
+
if (x === y) {
|
|
555
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
556
556
|
} else {
|
|
557
|
-
return x !== x &&
|
|
557
|
+
return x !== x && y !== y;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
function PropTypeError(message2, data) {
|
|
@@ -634,8 +634,8 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
634
634
|
var propType = getPropType(propValue);
|
|
635
635
|
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
636
636
|
}
|
|
637
|
-
for (var
|
|
638
|
-
var error = typeChecker(propValue,
|
|
637
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
638
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
639
639
|
if (error instanceof Error) {
|
|
640
640
|
return error;
|
|
641
641
|
}
|
|
@@ -692,8 +692,8 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
692
692
|
}
|
|
693
693
|
function validate(props, propName, componentName, location, propFullName) {
|
|
694
694
|
var propValue = props[propName];
|
|
695
|
-
for (var
|
|
696
|
-
if (is(propValue, expectedValues[
|
|
695
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
696
|
+
if (is(propValue, expectedValues[i])) {
|
|
697
697
|
return null;
|
|
698
698
|
}
|
|
699
699
|
}
|
|
@@ -735,19 +735,19 @@ var require_factoryWithTypeCheckers = __commonJS({
|
|
|
735
735
|
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
736
736
|
return emptyFunctionThatReturnsNull;
|
|
737
737
|
}
|
|
738
|
-
for (var
|
|
739
|
-
var checker = arrayOfTypeCheckers[
|
|
738
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
739
|
+
var checker = arrayOfTypeCheckers[i];
|
|
740
740
|
if (typeof checker !== "function") {
|
|
741
741
|
printWarning(
|
|
742
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " +
|
|
742
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
|
|
743
743
|
);
|
|
744
744
|
return emptyFunctionThatReturnsNull;
|
|
745
745
|
}
|
|
746
746
|
}
|
|
747
747
|
function validate(props, propName, componentName, location, propFullName) {
|
|
748
748
|
var expectedTypes = [];
|
|
749
|
-
for (var
|
|
750
|
-
var checker2 = arrayOfTypeCheckers[
|
|
749
|
+
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
750
|
+
var checker2 = arrayOfTypeCheckers[i2];
|
|
751
751
|
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
752
752
|
if (checkerResult == null) {
|
|
753
753
|
return null;
|
|
@@ -1047,10 +1047,8 @@ __export(index_exports, {
|
|
|
1047
1047
|
Grid: () => Grid,
|
|
1048
1048
|
GridStyled: () => GridStyled,
|
|
1049
1049
|
Icon: () => Icon,
|
|
1050
|
+
InputStyled: () => InputStyled,
|
|
1050
1051
|
Modal: () => Modal,
|
|
1051
|
-
ModalContentStyled: () => ModalContentStyled,
|
|
1052
|
-
ModalStyled: () => ModalStyled,
|
|
1053
|
-
ModalTitleStyled: () => ModalTitleStyled,
|
|
1054
1052
|
RadioGroup: () => RadioGroup,
|
|
1055
1053
|
RadioGroupStyled: () => RadioGroupStyled,
|
|
1056
1054
|
RadioItem: () => RadioItem,
|
|
@@ -2561,506 +2559,8 @@ function Flex2(_a) {
|
|
|
2561
2559
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(FlexStyled, __spreadProps(__spreadValues({}, props), { children }));
|
|
2562
2560
|
}
|
|
2563
2561
|
|
|
2564
|
-
// ../../node_modules/@react-input/mask/module/helpers-BtaZ0NTN.js
|
|
2565
|
-
function e(e5, t3) {
|
|
2566
|
-
(null == t3 || t3 > e5.length) && (t3 = e5.length);
|
|
2567
|
-
for (var r6 = 0, n5 = Array(t3); r6 < t3; r6++) n5[r6] = e5[r6];
|
|
2568
|
-
return n5;
|
|
2569
|
-
}
|
|
2570
|
-
function t(e5, t3, r6) {
|
|
2571
|
-
return t3 = i(t3), function(e6, t4) {
|
|
2572
|
-
if (t4 && ("object" == typeof t4 || "function" == typeof t4)) return t4;
|
|
2573
|
-
if (void 0 !== t4) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2574
|
-
return function(e7) {
|
|
2575
|
-
if (void 0 === e7) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2576
|
-
return e7;
|
|
2577
|
-
}(e6);
|
|
2578
|
-
}(e5, l() ? Reflect.construct(t3, r6 || [], i(e5).constructor) : t3.apply(e5, r6));
|
|
2579
|
-
}
|
|
2580
|
-
function r(e5, t3) {
|
|
2581
|
-
if (!(e5 instanceof t3)) throw new TypeError("Cannot call a class as a function");
|
|
2582
|
-
}
|
|
2583
|
-
function n(e5, t3, r6) {
|
|
2584
|
-
return Object.defineProperty(e5, "prototype", { writable: false }), e5;
|
|
2585
|
-
}
|
|
2586
|
-
function o(t3, r6) {
|
|
2587
|
-
var n5 = "undefined" != typeof Symbol && t3[Symbol.iterator] || t3["@@iterator"];
|
|
2588
|
-
if (!n5) {
|
|
2589
|
-
if (Array.isArray(t3) || (n5 = function(t4, r7) {
|
|
2590
|
-
if (t4) {
|
|
2591
|
-
if ("string" == typeof t4) return e(t4, r7);
|
|
2592
|
-
var n6 = {}.toString.call(t4).slice(8, -1);
|
|
2593
|
-
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;
|
|
2594
|
-
}
|
|
2595
|
-
}(t3)) || r6) {
|
|
2596
|
-
n5 && (t3 = n5);
|
|
2597
|
-
var o3 = 0, a4 = function() {
|
|
2598
|
-
};
|
|
2599
|
-
return { s: a4, n: function() {
|
|
2600
|
-
return o3 >= t3.length ? { done: true } : { done: false, value: t3[o3++] };
|
|
2601
|
-
}, e: function(e5) {
|
|
2602
|
-
throw e5;
|
|
2603
|
-
}, f: a4 };
|
|
2604
|
-
}
|
|
2605
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2606
|
-
}
|
|
2607
|
-
var c2, i3 = true, u3 = false;
|
|
2608
|
-
return { s: function() {
|
|
2609
|
-
n5 = n5.call(t3);
|
|
2610
|
-
}, n: function() {
|
|
2611
|
-
var e5 = n5.next();
|
|
2612
|
-
return i3 = e5.done, e5;
|
|
2613
|
-
}, e: function(e5) {
|
|
2614
|
-
u3 = true, c2 = e5;
|
|
2615
|
-
}, f: function() {
|
|
2616
|
-
try {
|
|
2617
|
-
i3 || null == n5.return || n5.return();
|
|
2618
|
-
} finally {
|
|
2619
|
-
if (u3) throw c2;
|
|
2620
|
-
}
|
|
2621
|
-
} };
|
|
2622
|
-
}
|
|
2623
|
-
function a(e5, t3, r6) {
|
|
2624
|
-
return (t3 = function(e6) {
|
|
2625
|
-
var t4 = function(e7, t5) {
|
|
2626
|
-
if ("object" != typeof e7 || !e7) return e7;
|
|
2627
|
-
var r7 = e7[Symbol.toPrimitive];
|
|
2628
|
-
if (void 0 !== r7) {
|
|
2629
|
-
var n5 = r7.call(e7, t5 || "default");
|
|
2630
|
-
if ("object" != typeof n5) return n5;
|
|
2631
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2632
|
-
}
|
|
2633
|
-
return ("string" === t5 ? String : Number)(e7);
|
|
2634
|
-
}(e6, "string");
|
|
2635
|
-
return "symbol" == typeof t4 ? t4 : t4 + "";
|
|
2636
|
-
}(t3)) in e5 ? Object.defineProperty(e5, t3, { value: r6, enumerable: true, configurable: true, writable: true }) : e5[t3] = r6, e5;
|
|
2637
|
-
}
|
|
2638
|
-
function i(e5) {
|
|
2639
|
-
return i = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e6) {
|
|
2640
|
-
return e6.__proto__ || Object.getPrototypeOf(e6);
|
|
2641
|
-
}, i(e5);
|
|
2642
|
-
}
|
|
2643
|
-
function u(e5, t3) {
|
|
2644
|
-
if ("function" != typeof t3 && null !== t3) throw new TypeError("Super expression must either be null or a function");
|
|
2645
|
-
e5.prototype = Object.create(t3 && t3.prototype, { constructor: { value: e5, writable: true, configurable: true } }), Object.defineProperty(e5, "prototype", { writable: false }), t3 && y(e5, t3);
|
|
2646
|
-
}
|
|
2647
|
-
function l() {
|
|
2648
|
-
try {
|
|
2649
|
-
var e5 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2650
|
-
}));
|
|
2651
|
-
} catch (e6) {
|
|
2652
|
-
}
|
|
2653
|
-
return (l = function() {
|
|
2654
|
-
return !!e5;
|
|
2655
|
-
})();
|
|
2656
|
-
}
|
|
2657
|
-
function f(e5, t3) {
|
|
2658
|
-
var r6 = Object.keys(e5);
|
|
2659
|
-
if (Object.getOwnPropertySymbols) {
|
|
2660
|
-
var n5 = Object.getOwnPropertySymbols(e5);
|
|
2661
|
-
t3 && (n5 = n5.filter(function(t4) {
|
|
2662
|
-
return Object.getOwnPropertyDescriptor(e5, t4).enumerable;
|
|
2663
|
-
})), r6.push.apply(r6, n5);
|
|
2664
|
-
}
|
|
2665
|
-
return r6;
|
|
2666
|
-
}
|
|
2667
|
-
function s(e5) {
|
|
2668
|
-
for (var t3 = 1; t3 < arguments.length; t3++) {
|
|
2669
|
-
var r6 = null != arguments[t3] ? arguments[t3] : {};
|
|
2670
|
-
t3 % 2 ? f(Object(r6), true).forEach(function(t4) {
|
|
2671
|
-
a(e5, t4, r6[t4]);
|
|
2672
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e5, Object.getOwnPropertyDescriptors(r6)) : f(Object(r6)).forEach(function(t4) {
|
|
2673
|
-
Object.defineProperty(e5, t4, Object.getOwnPropertyDescriptor(r6, t4));
|
|
2674
|
-
});
|
|
2675
|
-
}
|
|
2676
|
-
return e5;
|
|
2677
|
-
}
|
|
2678
|
-
function p(e5, t3) {
|
|
2679
|
-
if (null == e5) return {};
|
|
2680
|
-
var r6, n5, o3 = function(e6, t4) {
|
|
2681
|
-
if (null == e6) return {};
|
|
2682
|
-
var r7 = {};
|
|
2683
|
-
for (var n6 in e6) if ({}.hasOwnProperty.call(e6, n6)) {
|
|
2684
|
-
if (t4.includes(n6)) continue;
|
|
2685
|
-
r7[n6] = e6[n6];
|
|
2686
|
-
}
|
|
2687
|
-
return r7;
|
|
2688
|
-
}(e5, t3);
|
|
2689
|
-
if (Object.getOwnPropertySymbols) {
|
|
2690
|
-
var a4 = Object.getOwnPropertySymbols(e5);
|
|
2691
|
-
for (n5 = 0; n5 < a4.length; n5++) r6 = a4[n5], t3.includes(r6) || {}.propertyIsEnumerable.call(e5, r6) && (o3[r6] = e5[r6]);
|
|
2692
|
-
}
|
|
2693
|
-
return o3;
|
|
2694
|
-
}
|
|
2695
|
-
function y(e5, t3) {
|
|
2696
|
-
return y = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e6, t4) {
|
|
2697
|
-
return e6.__proto__ = t4, e6;
|
|
2698
|
-
}, y(e5, t3);
|
|
2699
|
-
}
|
|
2700
|
-
function b(e5, t3) {
|
|
2701
|
-
var r6, n5 = t3.replacementChars, a4 = t3.replacement, c2 = t3.separate, i3 = n5, u3 = "", l3 = o(e5);
|
|
2702
|
-
try {
|
|
2703
|
-
for (l3.s(); !(r6 = l3.n()).done; ) {
|
|
2704
|
-
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));
|
|
2705
|
-
(c2 && s3 === i3[0] || p3) && (i3 = i3.slice(1), u3 += s3);
|
|
2706
|
-
}
|
|
2707
|
-
} catch (e6) {
|
|
2708
|
-
l3.e(e6);
|
|
2709
|
-
} finally {
|
|
2710
|
-
l3.f();
|
|
2711
|
-
}
|
|
2712
|
-
return u3;
|
|
2713
|
-
}
|
|
2714
|
-
function v(e5, t3) {
|
|
2715
|
-
var r6, n5 = t3.mask, a4 = t3.replacement, c2 = t3.separate, i3 = t3.showMask, u3 = 0, l3 = "", f3 = o(n5);
|
|
2716
|
-
try {
|
|
2717
|
-
for (f3.s(); !(r6 = f3.n()).done; ) {
|
|
2718
|
-
var s3 = r6.value;
|
|
2719
|
-
if (!i3 && void 0 === e5[u3]) break;
|
|
2720
|
-
Object.prototype.hasOwnProperty.call(a4, s3) && void 0 !== e5[u3] ? l3 += e5[u3++] : l3 += s3;
|
|
2721
|
-
}
|
|
2722
|
-
} catch (e6) {
|
|
2723
|
-
f3.e(e6);
|
|
2724
|
-
} finally {
|
|
2725
|
-
f3.f();
|
|
2726
|
-
}
|
|
2727
|
-
if (c2 && !i3) {
|
|
2728
|
-
for (var p3 = n5.length - 1; p3 >= 0 && l3[p3] === n5[p3]; p3--) ;
|
|
2729
|
-
l3 = l3.slice(0, p3 + 1);
|
|
2730
|
-
}
|
|
2731
|
-
return l3;
|
|
2732
|
-
}
|
|
2733
|
-
function m(e5, t3) {
|
|
2734
|
-
for (var r6 = t3.mask, n5 = t3.replacement, o3 = [], a4 = 0; a4 < r6.length; a4++) {
|
|
2735
|
-
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";
|
|
2736
|
-
o3.push({ type: u3, value: i3, index: a4 });
|
|
2737
|
-
}
|
|
2738
|
-
return o3;
|
|
2739
|
-
}
|
|
2740
|
-
function O(e5) {
|
|
2741
|
-
return e5.length > 0 ? a({}, e5, /./) : {};
|
|
2742
|
-
}
|
|
2743
|
-
function h(e5, t3) {
|
|
2744
|
-
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++) {
|
|
2745
|
-
var p3 = Object.prototype.hasOwnProperty.call(c2, l3[s3]);
|
|
2746
|
-
p3 && void 0 !== u3[s3] && u3[s3] !== l3[s3] ? f3 += u3[s3] : p3 && i3 && (f3 += l3[s3]);
|
|
2747
|
-
}
|
|
2748
|
-
return f3;
|
|
2749
|
-
}
|
|
2750
|
-
function d(e5, t3) {
|
|
2751
|
-
var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5, a4 = RegExp("[^".concat(Object.keys(o3).join(""), "]"), "g");
|
|
2752
|
-
return v(b(e5, { replacementChars: r6.replace(a4, ""), replacement: o3, separate: false }), { mask: r6, replacement: o3, separate: false, showMask: false });
|
|
2753
|
-
}
|
|
2754
|
-
function g(e5, t3) {
|
|
2755
|
-
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");
|
|
2756
|
-
return b(a4, { replacementChars: r6.replace(c2, ""), replacement: o3, separate: false });
|
|
2757
|
-
}
|
|
2758
|
-
function j(e5, t3) {
|
|
2759
|
-
var r6 = t3.mask, n5 = t3.replacement, o3 = "string" == typeof n5 ? O(n5) : n5;
|
|
2760
|
-
return m(d(e5, { mask: r6, replacement: o3 }), { mask: r6, replacement: o3 });
|
|
2761
|
-
}
|
|
2762
|
-
var w = ["[", "]", "\\", "/", "^", "$", ".", "|", "?", "*", "+", "(", ")", "{", "}"];
|
|
2763
|
-
function P(e5) {
|
|
2764
|
-
return w.includes(e5) ? "\\".concat(e5) : e5;
|
|
2765
|
-
}
|
|
2766
|
-
function k(e5, t3) {
|
|
2767
|
-
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++) {
|
|
2768
|
-
var l3 = r6[u3];
|
|
2769
|
-
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 += "$");
|
|
2770
|
-
}
|
|
2771
|
-
return i3;
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
// ../../node_modules/@react-input/core/module/createProxy.js
|
|
2775
|
-
function r2(r6, e5) {
|
|
2776
|
-
return new Proxy(r6, { set: function(n5, t3, u3) {
|
|
2777
|
-
return "current" === t3 && (u3 !== r6.current && (null !== r6.current && e5.unregister(r6.current), null !== u3 && e5.register(u3)), n5[t3] = u3, true);
|
|
2778
|
-
} });
|
|
2779
|
-
}
|
|
2780
|
-
|
|
2781
|
-
// ../../node_modules/@react-input/core/module/helpers-C8k3UfPS.js
|
|
2782
|
-
function t2(t3, e5, r6) {
|
|
2783
|
-
return e5 = o2(e5), function(t4, e6) {
|
|
2784
|
-
if (e6 && ("object" == typeof e6 || "function" == typeof e6)) return e6;
|
|
2785
|
-
if (void 0 !== e6) throw new TypeError("Derived constructors may only return object or undefined");
|
|
2786
|
-
return function(t5) {
|
|
2787
|
-
if (void 0 === t5) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2788
|
-
return t5;
|
|
2789
|
-
}(t4);
|
|
2790
|
-
}(t3, i2() ? Reflect.construct(e5, r6 || [], o2(t3).constructor) : e5.apply(t3, r6));
|
|
2791
|
-
}
|
|
2792
|
-
function e2(t3, e5) {
|
|
2793
|
-
if (!(t3 instanceof e5)) throw new TypeError("Cannot call a class as a function");
|
|
2794
|
-
}
|
|
2795
|
-
function r3(t3, e5, r6) {
|
|
2796
|
-
return Object.defineProperty(t3, "prototype", { writable: false }), t3;
|
|
2797
|
-
}
|
|
2798
|
-
function n2(t3, e5, r6) {
|
|
2799
|
-
return (e5 = function(t4) {
|
|
2800
|
-
var e6 = function(t5, e7) {
|
|
2801
|
-
if ("object" != typeof t5 || !t5) return t5;
|
|
2802
|
-
var r7 = t5[Symbol.toPrimitive];
|
|
2803
|
-
if (void 0 !== r7) {
|
|
2804
|
-
var n5 = r7.call(t5, e7 || "default");
|
|
2805
|
-
if ("object" != typeof n5) return n5;
|
|
2806
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2807
|
-
}
|
|
2808
|
-
return ("string" === e7 ? String : Number)(t5);
|
|
2809
|
-
}(t4, "string");
|
|
2810
|
-
return "symbol" == typeof e6 ? e6 : e6 + "";
|
|
2811
|
-
}(e5)) in t3 ? Object.defineProperty(t3, e5, { value: r6, enumerable: true, configurable: true, writable: true }) : t3[e5] = r6, t3;
|
|
2812
|
-
}
|
|
2813
|
-
function o2(t3) {
|
|
2814
|
-
return o2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t4) {
|
|
2815
|
-
return t4.__proto__ || Object.getPrototypeOf(t4);
|
|
2816
|
-
}, o2(t3);
|
|
2817
|
-
}
|
|
2818
|
-
function u2(t3, e5) {
|
|
2819
|
-
if ("function" != typeof e5 && null !== e5) throw new TypeError("Super expression must either be null or a function");
|
|
2820
|
-
t3.prototype = Object.create(e5 && e5.prototype, { constructor: { value: t3, writable: true, configurable: true } }), Object.defineProperty(t3, "prototype", { writable: false }), e5 && a2(t3, e5);
|
|
2821
|
-
}
|
|
2822
|
-
function i2() {
|
|
2823
|
-
try {
|
|
2824
|
-
var t3 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
2825
|
-
}));
|
|
2826
|
-
} catch (t4) {
|
|
2827
|
-
}
|
|
2828
|
-
return (i2 = function() {
|
|
2829
|
-
return !!t3;
|
|
2830
|
-
})();
|
|
2831
|
-
}
|
|
2832
|
-
function c(t3, e5) {
|
|
2833
|
-
var r6 = Object.keys(t3);
|
|
2834
|
-
if (Object.getOwnPropertySymbols) {
|
|
2835
|
-
var n5 = Object.getOwnPropertySymbols(t3);
|
|
2836
|
-
e5 && (n5 = n5.filter(function(e6) {
|
|
2837
|
-
return Object.getOwnPropertyDescriptor(t3, e6).enumerable;
|
|
2838
|
-
})), r6.push.apply(r6, n5);
|
|
2839
|
-
}
|
|
2840
|
-
return r6;
|
|
2841
|
-
}
|
|
2842
|
-
function f2(t3) {
|
|
2843
|
-
for (var e5 = 1; e5 < arguments.length; e5++) {
|
|
2844
|
-
var r6 = null != arguments[e5] ? arguments[e5] : {};
|
|
2845
|
-
e5 % 2 ? c(Object(r6), true).forEach(function(e6) {
|
|
2846
|
-
n2(t3, e6, r6[e6]);
|
|
2847
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t3, Object.getOwnPropertyDescriptors(r6)) : c(Object(r6)).forEach(function(e6) {
|
|
2848
|
-
Object.defineProperty(t3, e6, Object.getOwnPropertyDescriptor(r6, e6));
|
|
2849
|
-
});
|
|
2850
|
-
}
|
|
2851
|
-
return t3;
|
|
2852
|
-
}
|
|
2853
|
-
function p2(t3, e5) {
|
|
2854
|
-
if (null == t3) return {};
|
|
2855
|
-
var r6, n5, o3 = function(t4, e6) {
|
|
2856
|
-
if (null == t4) return {};
|
|
2857
|
-
var r7 = {};
|
|
2858
|
-
for (var n6 in t4) if ({}.hasOwnProperty.call(t4, n6)) {
|
|
2859
|
-
if (e6.includes(n6)) continue;
|
|
2860
|
-
r7[n6] = t4[n6];
|
|
2861
|
-
}
|
|
2862
|
-
return r7;
|
|
2863
|
-
}(t3, e5);
|
|
2864
|
-
if (Object.getOwnPropertySymbols) {
|
|
2865
|
-
var u3 = Object.getOwnPropertySymbols(t3);
|
|
2866
|
-
for (n5 = 0; n5 < u3.length; n5++) r6 = u3[n5], e5.includes(r6) || {}.propertyIsEnumerable.call(t3, r6) && (o3[r6] = t3[r6]);
|
|
2867
|
-
}
|
|
2868
|
-
return o3;
|
|
2869
|
-
}
|
|
2870
|
-
function a2(t3, e5) {
|
|
2871
|
-
return a2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t4, e6) {
|
|
2872
|
-
return t4.__proto__ = e6, t4;
|
|
2873
|
-
}, a2(t3, e5);
|
|
2874
|
-
}
|
|
2875
|
-
function y2(t3) {
|
|
2876
|
-
var e5 = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
|
|
2877
|
-
return y2 = function(t4) {
|
|
2878
|
-
if (null === t4 || !function(t5) {
|
|
2879
|
-
try {
|
|
2880
|
-
return -1 !== Function.toString.call(t5).indexOf("[native code]");
|
|
2881
|
-
} catch (e6) {
|
|
2882
|
-
return "function" == typeof t5;
|
|
2883
|
-
}
|
|
2884
|
-
}(t4)) return t4;
|
|
2885
|
-
if ("function" != typeof t4) throw new TypeError("Super expression must either be null or a function");
|
|
2886
|
-
if (void 0 !== e5) {
|
|
2887
|
-
if (e5.has(t4)) return e5.get(t4);
|
|
2888
|
-
e5.set(t4, r6);
|
|
2889
|
-
}
|
|
2890
|
-
function r6() {
|
|
2891
|
-
return function(t5, e6, r7) {
|
|
2892
|
-
if (i2()) return Reflect.construct.apply(null, arguments);
|
|
2893
|
-
var n5 = [null];
|
|
2894
|
-
n5.push.apply(n5, e6);
|
|
2895
|
-
var o3 = new (t5.bind.apply(t5, n5))();
|
|
2896
|
-
return r7 && a2(o3, r7.prototype), o3;
|
|
2897
|
-
}(t4, arguments, o2(this).constructor);
|
|
2898
|
-
}
|
|
2899
|
-
return r6.prototype = Object.create(t4.prototype, { constructor: { value: r6, enumerable: false, writable: true, configurable: true } }), a2(r6, t4);
|
|
2900
|
-
}, y2(t3);
|
|
2901
|
-
}
|
|
2902
|
-
|
|
2903
|
-
// ../../node_modules/@react-input/core/module/SyntheticChangeError.js
|
|
2904
|
-
var n3 = function(t3) {
|
|
2905
|
-
function n5(r6) {
|
|
2906
|
-
var a4;
|
|
2907
|
-
return e2(this, n5), (a4 = t2(this, n5, [r6])).name = "SyntheticChangeError", a4;
|
|
2908
|
-
}
|
|
2909
|
-
return u2(n5, t3), r3(n5);
|
|
2910
|
-
}(y2(Error));
|
|
2911
|
-
|
|
2912
|
-
// ../../node_modules/@react-input/core/module/Input.js
|
|
2913
|
-
var l2;
|
|
2914
|
-
var a3 = ["options"];
|
|
2915
|
-
var r4 = ["text", "email", "tel", "search", "url"];
|
|
2916
|
-
var s2 = r3(function e3(l3) {
|
|
2917
|
-
var s3 = l3.init, c2 = l3.tracking;
|
|
2918
|
-
e2(this, e3);
|
|
2919
|
-
var u3 = /* @__PURE__ */ new WeakMap();
|
|
2920
|
-
this.register = function(e5) {
|
|
2921
|
-
var t3;
|
|
2922
|
-
if (r4.includes(e5.type)) {
|
|
2923
|
-
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");
|
|
2924
|
-
Object.defineProperty(e5, "value", f2(f2({}, b3), {}, { set: function(t4) {
|
|
2925
|
-
var n5;
|
|
2926
|
-
m2.value = t4, null == b3 || null === (n5 = b3.set) || void 0 === n5 || n5.call(e5, t4);
|
|
2927
|
-
} })), e5.value = E;
|
|
2928
|
-
var y4 = function() {
|
|
2929
|
-
var t4 = function() {
|
|
2930
|
-
var n5, o3;
|
|
2931
|
-
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);
|
|
2932
|
-
};
|
|
2933
|
-
S.id = window.setTimeout(t4);
|
|
2934
|
-
}, T = function() {
|
|
2935
|
-
window.clearTimeout(S.id), S.id = -1, S.cachedId = -1;
|
|
2936
|
-
}, k3 = function(t4) {
|
|
2937
|
-
try {
|
|
2938
|
-
var n5, l5;
|
|
2939
|
-
if (S.cachedId === S.id) throw new n3("The input selection has not been updated.");
|
|
2940
|
-
S.cachedId = S.id;
|
|
2941
|
-
var r6 = e5.value, s4 = e5.selectionStart, u4 = e5.selectionEnd;
|
|
2942
|
-
if (null === s4 || null === u4) throw new n3("The selection attributes have not been initialized.");
|
|
2943
|
-
var d3, v3 = m2.value;
|
|
2944
|
-
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.");
|
|
2945
|
-
var p4 = "", h3 = m2.selectionStart, f4 = m2.selectionEnd;
|
|
2946
|
-
if ("insert" === d3) p4 = r6.slice(m2.selectionStart, s4);
|
|
2947
|
-
else {
|
|
2948
|
-
var E2 = v3.length - r6.length;
|
|
2949
|
-
h3 = s4, f4 = s4 + E2;
|
|
2950
|
-
}
|
|
2951
|
-
w3.value !== v3 ? w3.options = w3.fallbackOptions : w3.fallbackOptions = w3.options;
|
|
2952
|
-
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);
|
|
2953
|
-
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);
|
|
2954
|
-
} catch (n6) {
|
|
2955
|
-
if (e5.value = m2.value, e5.setSelectionRange(m2.selectionStart, m2.selectionEnd), t4.preventDefault(), t4.stopPropagation(), "SyntheticChangeError" !== n6.name) throw n6;
|
|
2956
|
-
}
|
|
2957
|
-
};
|
|
2958
|
-
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 });
|
|
2959
|
-
} else "production" !== process.env.NODE_ENV && console.warn("Warn: The input element type does not match one of the types: ".concat(r4.join(", "), "."));
|
|
2960
|
-
}, this.unregister = function(e5) {
|
|
2961
|
-
var t3 = u3.get(e5);
|
|
2962
|
-
void 0 !== t3 && (e5.removeEventListener("focus", t3.onFocus), e5.removeEventListener("blur", t3.onBlur), e5.removeEventListener("input", t3.onInput), u3.delete(e5));
|
|
2963
|
-
};
|
|
2964
|
-
});
|
|
2965
|
-
l2 = s2, Object.defineProperty(l2.prototype, Symbol.toStringTag, { writable: false, enumerable: false, configurable: true, value: "Input" });
|
|
2966
|
-
|
|
2967
|
-
// ../../node_modules/@react-input/mask/module/useMask.js
|
|
2968
|
-
var import_react2 = require("react");
|
|
2969
|
-
|
|
2970
|
-
// ../../node_modules/@react-input/mask/module/Mask.js
|
|
2971
|
-
var k2 = function(e5) {
|
|
2972
|
-
return function() {
|
|
2973
|
-
for (var t3 = arguments.length, a4 = new Array(t3), n5 = 0; n5 < t3; n5++) a4[n5] = arguments[n5];
|
|
2974
|
-
return new e5("".concat(a4.join("\n\n"), "\n"));
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
var g2;
|
|
2978
|
-
var y3 = ["track", "modify"];
|
|
2979
|
-
function w2(e5) {
|
|
2980
|
-
var t3, a4, n5, r6;
|
|
2981
|
-
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 };
|
|
2982
|
-
}
|
|
2983
|
-
var b2 = function(g3) {
|
|
2984
|
-
function b3() {
|
|
2985
|
-
var t3, a4 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
|
2986
|
-
return r(this, b3), (t3 = t(this, b3, [{ init: function(e5) {
|
|
2987
|
-
var t4 = e5.initialValue, n5 = e5.controlled, r6 = w2(a4), i3 = r6.mask, l3 = r6.replacement, o3 = r6.separate, s3 = r6.showMask;
|
|
2988
|
-
return t4 = n5 || t4 ? t4 : s3 ? i3 : "", "production" !== process.env.NODE_ENV && function(e6) {
|
|
2989
|
-
var t5 = e6.initialValue, a5 = e6.mask, n6 = e6.replacement;
|
|
2990
|
-
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."));
|
|
2991
|
-
var r7 = Object.keys(n6).filter(function(e7) {
|
|
2992
|
-
return e7.length > 1;
|
|
2993
|
-
});
|
|
2994
|
-
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."));
|
|
2995
|
-
for (var i4 = a5.slice(0, t5.length), l4 = -1, o4 = 0; o4 < i4.length; o4++) {
|
|
2996
|
-
var s4 = Object.prototype.hasOwnProperty.call(n6, i4[o4]);
|
|
2997
|
-
if (!(i4[o4] === t5[o4] || s4 && n6[i4[o4]].test(t5[o4]))) {
|
|
2998
|
-
l4 = o4;
|
|
2999
|
-
break;
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
-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."));
|
|
3003
|
-
}({ initialValue: t4, mask: i3, replacement: l3 }), { value: t4, options: { mask: i3, replacement: l3, separate: o3 } };
|
|
3004
|
-
}, tracking: function(t4) {
|
|
3005
|
-
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);
|
|
3006
|
-
if (false === z) throw new n3("Custom tracking stop.");
|
|
3007
|
-
null === z ? l3 = "" : true !== z && void 0 !== z && (l3 = z);
|
|
3008
|
-
var C = null == g4 ? void 0 : g4(M);
|
|
3009
|
-
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);
|
|
3010
|
-
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, "");
|
|
3011
|
-
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.");
|
|
3012
|
-
if (V) {
|
|
3013
|
-
var I = O2.slice(o3, s3).replace(P2, ""), G = I.length - l3.length;
|
|
3014
|
-
G < 0 ? x = x.slice(-G) : G > 0 && (x = I.slice(-G) + x);
|
|
3015
|
-
}
|
|
3016
|
-
x && (x = b(x, { replacementChars: S, replacement: j2, separate: V }));
|
|
3017
|
-
var A = v(E + l3 + x, { mask: O2, replacement: j2, separate: V, showMask: T }), N = function(t5) {
|
|
3018
|
-
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) {
|
|
3019
|
-
var t6 = e5.type;
|
|
3020
|
-
return "input" === t6 || p3 && "replacement" === t6;
|
|
3021
|
-
}), 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;
|
|
3022
|
-
if ("insert" === i4) {
|
|
3023
|
-
if (void 0 !== h2) return h2 + 1;
|
|
3024
|
-
if (void 0 !== m3) return m3;
|
|
3025
|
-
if (void 0 !== v2) return v2 + 1;
|
|
3026
|
-
}
|
|
3027
|
-
if ("deleteForward" === i4) {
|
|
3028
|
-
if (void 0 !== m3) return m3;
|
|
3029
|
-
if (void 0 !== v2) return v2 + 1;
|
|
3030
|
-
}
|
|
3031
|
-
if ("deleteBackward" === i4) {
|
|
3032
|
-
if (void 0 !== v2) return v2 + 1;
|
|
3033
|
-
if (void 0 !== m3) return m3;
|
|
3034
|
-
}
|
|
3035
|
-
var f3 = l4.split("").findIndex(function(e5) {
|
|
3036
|
-
return Object.prototype.hasOwnProperty.call(u3, e5);
|
|
3037
|
-
});
|
|
3038
|
-
return -1 !== f3 ? f3 : l4.length;
|
|
3039
|
-
}({ inputType: n5, value: A, addedValue: l3, beforeChangeValue: E, mask: O2, replacement: j2, separate: V });
|
|
3040
|
-
return { value: A, selectionStart: N, selectionEnd: N, options: { mask: O2, replacement: j2, separate: V } };
|
|
3041
|
-
} }])).format = function(e5) {
|
|
3042
|
-
return d(e5, w2(a4));
|
|
3043
|
-
}, t3.formatToParts = function(e5) {
|
|
3044
|
-
return j(e5, w2(a4));
|
|
3045
|
-
}, t3.unformat = function(e5) {
|
|
3046
|
-
return g(e5, w2(a4));
|
|
3047
|
-
}, t3.generatePattern = function(e5) {
|
|
3048
|
-
return k(e5, w2(a4));
|
|
3049
|
-
}, t3;
|
|
3050
|
-
}
|
|
3051
|
-
return u(b3, s2), n(b3);
|
|
3052
|
-
}();
|
|
3053
|
-
g2 = b2, Object.defineProperty(g2.prototype, Symbol.toStringTag, { writable: false, enumerable: false, configurable: true, value: "Mask" });
|
|
3054
|
-
|
|
3055
|
-
// ../../node_modules/@react-input/mask/module/useMask.js
|
|
3056
|
-
function n4() {
|
|
3057
|
-
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 = (0, import_react2.useRef)(null), k3 = (0, import_react2.useRef)({ mask: c2, replacement: o3, showMask: m2, separate: s3, track: u3, modify: p3 });
|
|
3058
|
-
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, (0, import_react2.useMemo)(function() {
|
|
3059
|
-
return r2(i3, new b2(k3.current));
|
|
3060
|
-
}, []);
|
|
3061
|
-
}
|
|
3062
|
-
|
|
3063
2562
|
// src/components/TextField.tsx
|
|
2563
|
+
var import_mask = require("@react-input/mask");
|
|
3064
2564
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
3065
2565
|
var TextFieldStyled = styled(import_themes7.TextField.Root, {
|
|
3066
2566
|
height: "$40",
|
|
@@ -3220,8 +2720,8 @@ var InputAddon = styled(TextStyle, {
|
|
|
3220
2720
|
alignItems: "center",
|
|
3221
2721
|
lineHeight: 1
|
|
3222
2722
|
});
|
|
3223
|
-
var maskFormat =
|
|
3224
|
-
var maskUnformat =
|
|
2723
|
+
var maskFormat = import_mask.format;
|
|
2724
|
+
var maskUnformat = import_mask.unformat;
|
|
3225
2725
|
function TextField(_a) {
|
|
3226
2726
|
var _b = _a, {
|
|
3227
2727
|
children,
|
|
@@ -3244,7 +2744,7 @@ function TextField(_a) {
|
|
|
3244
2744
|
"textAlign",
|
|
3245
2745
|
"mask"
|
|
3246
2746
|
]);
|
|
3247
|
-
const maskRef = mask ?
|
|
2747
|
+
const maskRef = mask ? (0, import_mask.useMask)(mask) : void 0;
|
|
3248
2748
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Flex2, { gap: "0", css: { width: "100%" }, children: [
|
|
3249
2749
|
!!addon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(InputAddon, { typography: "labelSmall", children: addon }),
|
|
3250
2750
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
@@ -3985,7 +3485,7 @@ function DropdownMenuItem(_a) {
|
|
|
3985
3485
|
}
|
|
3986
3486
|
|
|
3987
3487
|
// src/components/Badge.tsx
|
|
3988
|
-
var
|
|
3488
|
+
var import_react2 = __toESM(require("react"));
|
|
3989
3489
|
var import_themes12 = require("@radix-ui/themes");
|
|
3990
3490
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3991
3491
|
var BadgeStyled = styled(import_themes12.Badge, {
|
|
@@ -4092,16 +3592,16 @@ var BadgeStyled = styled(import_themes12.Badge, {
|
|
|
4092
3592
|
});
|
|
4093
3593
|
function Badge(_a) {
|
|
4094
3594
|
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
4095
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children:
|
|
4096
|
-
if (
|
|
4097
|
-
return
|
|
3595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(BadgeStyled, __spreadProps(__spreadValues({}, props), { children: import_react2.default.Children.map(children, (child) => {
|
|
3596
|
+
if (import_react2.default.isValidElement(child)) {
|
|
3597
|
+
return import_react2.default.cloneElement(child, { size: props.size });
|
|
4098
3598
|
}
|
|
4099
3599
|
return child;
|
|
4100
3600
|
}) }));
|
|
4101
3601
|
}
|
|
4102
3602
|
|
|
4103
3603
|
// src/components/Modal.tsx
|
|
4104
|
-
var
|
|
3604
|
+
var import_radix_ui = require("radix-ui");
|
|
4105
3605
|
|
|
4106
3606
|
// src/components/Box.tsx
|
|
4107
3607
|
var import_themes13 = require("@radix-ui/themes");
|
|
@@ -4109,13 +3609,7 @@ var Box = import_themes13.Box;
|
|
|
4109
3609
|
|
|
4110
3610
|
// src/components/Modal.tsx
|
|
4111
3611
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
4112
|
-
var
|
|
4113
|
-
fontFamily: "$default",
|
|
4114
|
-
lineHeight: "$base",
|
|
4115
|
-
fontSize: "$13",
|
|
4116
|
-
borderRadius: "$sm"
|
|
4117
|
-
});
|
|
4118
|
-
var ModalContentStyled = styled(import_themes14.Dialog.Content, {
|
|
3612
|
+
var ModalContentStyled = styled(import_radix_ui.Dialog.Content, {
|
|
4119
3613
|
fontFamily: "$default",
|
|
4120
3614
|
lineHeight: "$base",
|
|
4121
3615
|
fontSize: "$13",
|
|
@@ -4123,11 +3617,22 @@ var ModalContentStyled = styled(import_themes14.Dialog.Content, {
|
|
|
4123
3617
|
width: "100%",
|
|
4124
3618
|
border: "1px solid $neutral",
|
|
4125
3619
|
borderRadius: "$2xl",
|
|
4126
|
-
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)"
|
|
3620
|
+
boxShadow: "0px 4px 4px 0px rgba(35, 53, 67, 0.08), 0px 2px 4px 0px rgba(35, 53, 67, 0.16)",
|
|
3621
|
+
position: "fixed",
|
|
3622
|
+
top: "50%",
|
|
3623
|
+
left: "50%",
|
|
3624
|
+
transform: "translate(-50%, -50%)",
|
|
3625
|
+
backgroundColor: "$dark50"
|
|
3626
|
+
});
|
|
3627
|
+
var ModalOverlay = styled(import_radix_ui.Dialog.Overlay, {
|
|
3628
|
+
position: "fixed",
|
|
3629
|
+
inset: 0,
|
|
3630
|
+
opacity: 1,
|
|
3631
|
+
backgroundColor: "rgba(0, 0, 0, .5)"
|
|
4127
3632
|
});
|
|
4128
3633
|
var ModalHeaderStyled = styled("div", {
|
|
4129
3634
|
borderBottom: "1px solid $neutral300",
|
|
4130
|
-
padding: "$
|
|
3635
|
+
padding: "$18 $24",
|
|
4131
3636
|
textAlign: "center",
|
|
4132
3637
|
position: "relative",
|
|
4133
3638
|
display: "flex",
|
|
@@ -4139,14 +3644,7 @@ var ModalIconClose = styled(Icon_default, {
|
|
|
4139
3644
|
right: "$24",
|
|
4140
3645
|
cursor: "pointer"
|
|
4141
3646
|
});
|
|
4142
|
-
var
|
|
4143
|
-
borderTop: "1px solid $neutral300",
|
|
4144
|
-
padding: "$16 $24",
|
|
4145
|
-
".modal-footer-flex": {
|
|
4146
|
-
justifyContent: "flex-end"
|
|
4147
|
-
}
|
|
4148
|
-
});
|
|
4149
|
-
var ModalTitleStyled = styled(import_themes14.Dialog.Title, {
|
|
3647
|
+
var ModalTitleStyled = styled(import_radix_ui.Dialog.Title, {
|
|
4150
3648
|
fontFamily: "$default",
|
|
4151
3649
|
lineHeight: "$base",
|
|
4152
3650
|
fontSize: "$18",
|
|
@@ -4155,30 +3653,26 @@ var ModalTitleStyled = styled(import_themes14.Dialog.Title, {
|
|
|
4155
3653
|
textTransform: "uppercase"
|
|
4156
3654
|
});
|
|
4157
3655
|
function Modal(_a) {
|
|
4158
|
-
var _b = _a, { children, title, trigger
|
|
4159
|
-
return /* @__PURE__ */ (0, import_jsx_runtime13.
|
|
4160
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
4161
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalContentStyled, { children: [
|
|
4162
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
|
|
4163
|
-
|
|
4164
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3656
|
+
var _b = _a, { children, title, trigger } = _b, props = __objRest(_b, ["children", "title", "trigger"]);
|
|
3657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_radix_ui.Dialog.Root, __spreadProps(__spreadValues({}, props), { children: [
|
|
3658
|
+
trigger && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Trigger, { asChild: true, children: trigger }),
|
|
3659
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalOverlay, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalContentStyled, { children: [
|
|
3660
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(ModalHeaderStyled, { children: [
|
|
3661
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalTitleStyled, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { typography: "headline6", fontWeight: "medium", children: title }) }),
|
|
3662
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_radix_ui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ModalIconClose, { name: "close", size: "xl" }) })
|
|
4165
3663
|
] }),
|
|
4166
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box, { children })
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
cancel && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_themes14.Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Button, { variant: "outlined", color: "neutral", children: cancelText ? cancelText : "cancelar" }) })
|
|
4170
|
-
] }) }) : null
|
|
4171
|
-
] })
|
|
4172
|
-
] })) });
|
|
3664
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box, { children })
|
|
3665
|
+
] }) }) })
|
|
3666
|
+
] }));
|
|
4173
3667
|
}
|
|
4174
3668
|
|
|
4175
3669
|
// src/components/Calendar/index.tsx
|
|
4176
|
-
var
|
|
3670
|
+
var import_react4 = require("react");
|
|
4177
3671
|
|
|
4178
3672
|
// src/hooks/useOnClickOutside.tsx
|
|
4179
|
-
var
|
|
3673
|
+
var import_react3 = require("react");
|
|
4180
3674
|
function useOnClickOutside(ref, handler) {
|
|
4181
|
-
(0,
|
|
3675
|
+
(0, import_react3.useEffect)(() => {
|
|
4182
3676
|
const listener = (event) => {
|
|
4183
3677
|
if (!ref.current || ref.current.contains(event.target)) {
|
|
4184
3678
|
return;
|
|
@@ -4201,8 +3695,8 @@ var import_react_day_picker = require("react-day-picker");
|
|
|
4201
3695
|
function buildFormatLongFn(args) {
|
|
4202
3696
|
return (options = {}) => {
|
|
4203
3697
|
const width = options.width ? String(options.width) : args.defaultWidth;
|
|
4204
|
-
const
|
|
4205
|
-
return
|
|
3698
|
+
const format3 = args.formats[width] || args.formats[args.defaultWidth];
|
|
3699
|
+
return format3;
|
|
4206
3700
|
};
|
|
4207
3701
|
}
|
|
4208
3702
|
|
|
@@ -4897,11 +4391,11 @@ var formatRelativeLocale2 = {
|
|
|
4897
4391
|
other: "P"
|
|
4898
4392
|
};
|
|
4899
4393
|
var formatRelative2 = (token, date, _baseDate, _options) => {
|
|
4900
|
-
const
|
|
4901
|
-
if (typeof
|
|
4902
|
-
return
|
|
4394
|
+
const format3 = formatRelativeLocale2[token];
|
|
4395
|
+
if (typeof format3 === "function") {
|
|
4396
|
+
return format3(date);
|
|
4903
4397
|
}
|
|
4904
|
-
return
|
|
4398
|
+
return format3;
|
|
4905
4399
|
};
|
|
4906
4400
|
|
|
4907
4401
|
// ../../node_modules/date-fns/locale/pt-BR/_lib/localize.js
|
|
@@ -6169,14 +5663,14 @@ function isProtectedDayOfYearToken(token) {
|
|
|
6169
5663
|
function isProtectedWeekYearToken(token) {
|
|
6170
5664
|
return weekYearTokenRE.test(token);
|
|
6171
5665
|
}
|
|
6172
|
-
function warnOrThrowProtectedError(token,
|
|
6173
|
-
const _message = message(token,
|
|
5666
|
+
function warnOrThrowProtectedError(token, format3, input) {
|
|
5667
|
+
const _message = message(token, format3, input);
|
|
6174
5668
|
console.warn(_message);
|
|
6175
5669
|
if (throwTokens.includes(token)) throw new RangeError(_message);
|
|
6176
5670
|
}
|
|
6177
|
-
function message(token,
|
|
5671
|
+
function message(token, format3, input) {
|
|
6178
5672
|
const subject = token[0] === "Y" ? "years" : "days of the month";
|
|
6179
|
-
return `Use \`${token.toLowerCase()}\` instead of \`${token}\` (in \`${
|
|
5673
|
+
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`;
|
|
6180
5674
|
}
|
|
6181
5675
|
|
|
6182
5676
|
// ../../node_modules/date-fns/format.js
|
|
@@ -6185,7 +5679,7 @@ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
|
|
|
6185
5679
|
var escapedStringRegExp = /^'([^]*?)'?$/;
|
|
6186
5680
|
var doubleQuoteRegExp = /''/g;
|
|
6187
5681
|
var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
|
|
6188
|
-
function
|
|
5682
|
+
function format2(date, formatStr, options) {
|
|
6189
5683
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
6190
5684
|
const defaultOptions2 = getDefaultOptions();
|
|
6191
5685
|
const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions2.locale) != null ? _b : enUS;
|
|
@@ -6460,8 +5954,8 @@ function parseTimezonePattern(pattern, dateString) {
|
|
|
6460
5954
|
function parseAnyDigitsSigned(dateString) {
|
|
6461
5955
|
return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);
|
|
6462
5956
|
}
|
|
6463
|
-
function parseNDigits(
|
|
6464
|
-
switch (
|
|
5957
|
+
function parseNDigits(n, dateString) {
|
|
5958
|
+
switch (n) {
|
|
6465
5959
|
case 1:
|
|
6466
5960
|
return parseNumericPattern(numericPatterns.singleDigit, dateString);
|
|
6467
5961
|
case 2:
|
|
@@ -6471,11 +5965,11 @@ function parseNDigits(n5, dateString) {
|
|
|
6471
5965
|
case 4:
|
|
6472
5966
|
return parseNumericPattern(numericPatterns.fourDigits, dateString);
|
|
6473
5967
|
default:
|
|
6474
|
-
return parseNumericPattern(new RegExp("^\\d{1," +
|
|
5968
|
+
return parseNumericPattern(new RegExp("^\\d{1," + n + "}"), dateString);
|
|
6475
5969
|
}
|
|
6476
5970
|
}
|
|
6477
|
-
function parseNDigitsSigned(
|
|
6478
|
-
switch (
|
|
5971
|
+
function parseNDigitsSigned(n, dateString) {
|
|
5972
|
+
switch (n) {
|
|
6479
5973
|
case 1:
|
|
6480
5974
|
return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);
|
|
6481
5975
|
case 2:
|
|
@@ -6485,7 +5979,7 @@ function parseNDigitsSigned(n5, dateString) {
|
|
|
6485
5979
|
case 4:
|
|
6486
5980
|
return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);
|
|
6487
5981
|
default:
|
|
6488
|
-
return parseNumericPattern(new RegExp("^-?\\d{1," +
|
|
5982
|
+
return parseNumericPattern(new RegExp("^-?\\d{1," + n + "}"), dateString);
|
|
6489
5983
|
}
|
|
6490
5984
|
}
|
|
6491
5985
|
function dayPeriodEnumToHours(dayPeriod) {
|
|
@@ -8061,8 +7555,8 @@ function parse(dateStr, formatStr, referenceDate, options) {
|
|
|
8061
7555
|
if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {
|
|
8062
7556
|
return invalidDate();
|
|
8063
7557
|
}
|
|
8064
|
-
const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((
|
|
8065
|
-
(priority) => setters.filter((setter) => setter.priority === priority).sort((
|
|
7558
|
+
const uniquePrioritySetters = setters.map((setter) => setter.priority).sort((a, b) => b - a).filter((priority, index, array) => array.indexOf(priority) === index).map(
|
|
7559
|
+
(priority) => setters.filter((setter) => setter.priority === priority).sort((a, b) => b.subPriority - a.subPriority)
|
|
8066
7560
|
).map((setterArray) => setterArray[0]);
|
|
8067
7561
|
let date = toDate(referenceDate, options == null ? void 0 : options.in);
|
|
8068
7562
|
if (isNaN(+date)) return invalidDate();
|
|
@@ -8314,23 +7808,23 @@ function Calendar(_a) {
|
|
|
8314
7808
|
"setSelected",
|
|
8315
7809
|
"position"
|
|
8316
7810
|
]);
|
|
8317
|
-
const [inputValue, setInputValue] = (0,
|
|
8318
|
-
const [showContainer, setShowCalendar] = (0,
|
|
8319
|
-
const dropdownRef = (0,
|
|
7811
|
+
const [inputValue, setInputValue] = (0, import_react4.useState)("");
|
|
7812
|
+
const [showContainer, setShowCalendar] = (0, import_react4.useState)(false);
|
|
7813
|
+
const dropdownRef = (0, import_react4.useRef)(null);
|
|
8320
7814
|
useOnClickOutside(dropdownRef, () => {
|
|
8321
7815
|
setShowCalendar(false);
|
|
8322
7816
|
});
|
|
8323
7817
|
const today = /* @__PURE__ */ new Date();
|
|
8324
7818
|
const maxDate = addYears(today, 20);
|
|
8325
|
-
(0,
|
|
7819
|
+
(0, import_react4.useEffect)(() => {
|
|
8326
7820
|
if (selected) {
|
|
8327
|
-
setInputValue(
|
|
7821
|
+
setInputValue(format2(selected, "dd/MM/yyyy"));
|
|
8328
7822
|
} else {
|
|
8329
7823
|
setInputValue("");
|
|
8330
7824
|
}
|
|
8331
7825
|
}, [selected]);
|
|
8332
|
-
const handleInputChange = (
|
|
8333
|
-
const masked = formatToDateMask(
|
|
7826
|
+
const handleInputChange = (e) => {
|
|
7827
|
+
const masked = formatToDateMask(e.target.value);
|
|
8334
7828
|
setInputValue(masked);
|
|
8335
7829
|
const parsed = parse(masked, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
8336
7830
|
if (isValid(parsed)) {
|
|
@@ -8340,18 +7834,25 @@ function Calendar(_a) {
|
|
|
8340
7834
|
}
|
|
8341
7835
|
};
|
|
8342
7836
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(CalendarStyled, __spreadProps(__spreadValues({}, props), { ref: dropdownRef, children: [
|
|
8343
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
8344
|
-
|
|
7837
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
7838
|
+
CalendarButtonStyled,
|
|
8345
7839
|
{
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8349
|
-
|
|
8350
|
-
|
|
8351
|
-
|
|
8352
|
-
|
|
7840
|
+
type: "button",
|
|
7841
|
+
onClick: () => setShowCalendar((prev) => !prev),
|
|
7842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
7843
|
+
TextField,
|
|
7844
|
+
{
|
|
7845
|
+
placeholder: "00/00/0000",
|
|
7846
|
+
type: "text",
|
|
7847
|
+
value: inputValue,
|
|
7848
|
+
onChange: handleInputChange,
|
|
7849
|
+
inputMode: "numeric",
|
|
7850
|
+
textAlign: "right",
|
|
7851
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TextFieldSlot, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Icon_default, { name: "calendar", size: "xl" }) })
|
|
7852
|
+
}
|
|
7853
|
+
)
|
|
8353
7854
|
}
|
|
8354
|
-
)
|
|
7855
|
+
),
|
|
8355
7856
|
showContainer && /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
8356
7857
|
CalendarContentStyled,
|
|
8357
7858
|
{
|
|
@@ -8376,6 +7877,7 @@ function Calendar(_a) {
|
|
|
8376
7877
|
{
|
|
8377
7878
|
variant: "text",
|
|
8378
7879
|
color: "brand",
|
|
7880
|
+
type: "button",
|
|
8379
7881
|
onClick: () => {
|
|
8380
7882
|
setShowCalendar(false);
|
|
8381
7883
|
},
|
|
@@ -8391,7 +7893,7 @@ function Calendar(_a) {
|
|
|
8391
7893
|
}
|
|
8392
7894
|
|
|
8393
7895
|
// src/components/TimePicker.tsx
|
|
8394
|
-
var
|
|
7896
|
+
var import_react5 = require("react");
|
|
8395
7897
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
8396
7898
|
var TimePickerStyled = styled("div", {
|
|
8397
7899
|
position: "relative",
|
|
@@ -8439,25 +7941,50 @@ var TimerPickerContentStyled = styled("div", {
|
|
|
8439
7941
|
textAlign: "center!important"
|
|
8440
7942
|
}
|
|
8441
7943
|
});
|
|
7944
|
+
var InputStyled = styled("input", {
|
|
7945
|
+
height: "$40",
|
|
7946
|
+
fontFamily: "$default",
|
|
7947
|
+
borderRadius: "$sm",
|
|
7948
|
+
boxSizing: "border-box",
|
|
7949
|
+
color: "$dark500",
|
|
7950
|
+
border: "1px solid $dark300",
|
|
7951
|
+
position: "relative",
|
|
7952
|
+
display: "flex",
|
|
7953
|
+
width: "100%",
|
|
7954
|
+
alignItems: "center",
|
|
7955
|
+
padding: "0",
|
|
7956
|
+
outline: "none",
|
|
7957
|
+
margin: 0,
|
|
7958
|
+
textAlign: "center",
|
|
7959
|
+
"&:has(input:focus)": {
|
|
7960
|
+
border: "2px solid $brand300"
|
|
7961
|
+
},
|
|
7962
|
+
"&:has(input:disabled)": {
|
|
7963
|
+
backgroundColor: "$dark100",
|
|
7964
|
+
color: "$dark400",
|
|
7965
|
+
border: "1px solid $dark200",
|
|
7966
|
+
cursor: "not-allowed"
|
|
7967
|
+
}
|
|
7968
|
+
});
|
|
8442
7969
|
function TimePicker({
|
|
8443
7970
|
selected,
|
|
8444
7971
|
setSelected,
|
|
8445
7972
|
position = "bottom"
|
|
8446
7973
|
}) {
|
|
8447
|
-
const [hours, setHours] = (0,
|
|
8448
|
-
const [minutes, setMinutes] = (0,
|
|
8449
|
-
const [isOpen, setIsOpen] = (0,
|
|
8450
|
-
const dropdownRef = (0,
|
|
7974
|
+
const [hours, setHours] = (0, import_react5.useState)("00");
|
|
7975
|
+
const [minutes, setMinutes] = (0, import_react5.useState)("00");
|
|
7976
|
+
const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
|
|
7977
|
+
const dropdownRef = (0, import_react5.useRef)(null);
|
|
8451
7978
|
useOnClickOutside(dropdownRef, () => setIsOpen(false));
|
|
8452
7979
|
const pad = (num) => String(num).padStart(2, "0");
|
|
8453
|
-
const handleInputValue = (0,
|
|
7980
|
+
const handleInputValue = (0, import_react5.useCallback)(
|
|
8454
7981
|
(time) => {
|
|
8455
7982
|
setSelected(time);
|
|
8456
7983
|
setIsOpen(false);
|
|
8457
7984
|
},
|
|
8458
7985
|
[setSelected]
|
|
8459
7986
|
);
|
|
8460
|
-
const handleIncrement = (0,
|
|
7987
|
+
const handleIncrement = (0, import_react5.useCallback)(
|
|
8461
7988
|
(type) => {
|
|
8462
7989
|
if (type === "hours") {
|
|
8463
7990
|
const next = (parseInt(hours) + 1) % 24;
|
|
@@ -8469,7 +7996,7 @@ function TimePicker({
|
|
|
8469
7996
|
},
|
|
8470
7997
|
[hours, minutes]
|
|
8471
7998
|
);
|
|
8472
|
-
const handleDecrement = (0,
|
|
7999
|
+
const handleDecrement = (0, import_react5.useCallback)(
|
|
8473
8000
|
(type) => {
|
|
8474
8001
|
if (type === "hours") {
|
|
8475
8002
|
const prev = (parseInt(hours) - 1 + 24) % 24;
|
|
@@ -8513,6 +8040,7 @@ function TimePicker({
|
|
|
8513
8040
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8514
8041
|
Button,
|
|
8515
8042
|
{
|
|
8043
|
+
type: "button",
|
|
8516
8044
|
variant: "text",
|
|
8517
8045
|
onClick: () => handleIncrement(unit),
|
|
8518
8046
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
@@ -8544,20 +8072,18 @@ function TimePicker({
|
|
|
8544
8072
|
}
|
|
8545
8073
|
),
|
|
8546
8074
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8547
|
-
|
|
8075
|
+
InputStyled,
|
|
8548
8076
|
{
|
|
8549
8077
|
value: unit === "hours" ? hours : minutes,
|
|
8550
|
-
onChange: (
|
|
8078
|
+
onChange: (e) => handleInputValue(e.target.value),
|
|
8551
8079
|
type: "text",
|
|
8552
|
-
placeholder: "00"
|
|
8553
|
-
typography: "labelSmall",
|
|
8554
|
-
fontWeight: "regular",
|
|
8555
|
-
textAlign: "center"
|
|
8080
|
+
placeholder: "00"
|
|
8556
8081
|
}
|
|
8557
8082
|
),
|
|
8558
8083
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8559
8084
|
Button,
|
|
8560
8085
|
{
|
|
8086
|
+
type: "button",
|
|
8561
8087
|
variant: "text",
|
|
8562
8088
|
onClick: () => handleDecrement(unit),
|
|
8563
8089
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
@@ -8597,6 +8123,7 @@ function TimePicker({
|
|
|
8597
8123
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TimePickerFooterStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
8598
8124
|
Button,
|
|
8599
8125
|
{
|
|
8126
|
+
type: "button",
|
|
8600
8127
|
variant: "text",
|
|
8601
8128
|
color: "brand",
|
|
8602
8129
|
onClick: () => handleInputValue(`${hours}:${minutes}`),
|
|
@@ -8612,9 +8139,9 @@ function TimePicker({
|
|
|
8612
8139
|
}
|
|
8613
8140
|
|
|
8614
8141
|
// src/components/Alert.tsx
|
|
8615
|
-
var
|
|
8142
|
+
var import_themes14 = require("@radix-ui/themes");
|
|
8616
8143
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
8617
|
-
var AlertDialogSimpleStyled = styled(
|
|
8144
|
+
var AlertDialogSimpleStyled = styled(import_themes14.AlertDialog.Content, {
|
|
8618
8145
|
fontFamily: "$default",
|
|
8619
8146
|
lineHeight: "$base",
|
|
8620
8147
|
fontSize: "$13",
|
|
@@ -8665,7 +8192,7 @@ var AlertDialogSimpleStyled = styled(import_themes15.AlertDialog.Content, {
|
|
|
8665
8192
|
color: "success"
|
|
8666
8193
|
}
|
|
8667
8194
|
});
|
|
8668
|
-
var AlertDialogCompleteStyled = styled(
|
|
8195
|
+
var AlertDialogCompleteStyled = styled(import_themes14.AlertDialog.Content, {
|
|
8669
8196
|
fontFamily: "$default",
|
|
8670
8197
|
lineHeight: "$base",
|
|
8671
8198
|
fontSize: "$13",
|
|
@@ -8688,11 +8215,11 @@ var AlertDialogCompleteStyled = styled(import_themes15.AlertDialog.Content, {
|
|
|
8688
8215
|
color: {}
|
|
8689
8216
|
}
|
|
8690
8217
|
});
|
|
8691
|
-
var AlertDialogDescriptionStyled = styled(
|
|
8218
|
+
var AlertDialogDescriptionStyled = styled(import_themes14.AlertDialog.Description, {
|
|
8692
8219
|
padding: 0,
|
|
8693
8220
|
margin: 0
|
|
8694
8221
|
});
|
|
8695
|
-
var AlertDialogTitleStyled = styled(
|
|
8222
|
+
var AlertDialogTitleStyled = styled(import_themes14.AlertDialog.Title, {
|
|
8696
8223
|
fontFamily: "$default",
|
|
8697
8224
|
lineHeight: "$base",
|
|
8698
8225
|
fontSize: "$20",
|
|
@@ -8728,15 +8255,15 @@ function Alert(_a) {
|
|
|
8728
8255
|
"simpleAlert"
|
|
8729
8256
|
]);
|
|
8730
8257
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
|
|
8731
|
-
simpleAlert && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8732
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8258
|
+
simpleAlert && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes14.AlertDialog.Root, { children: [
|
|
8259
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.AlertDialog.Trigger, { children: trigger }),
|
|
8733
8260
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_jsx_runtime16.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AlertDialogSimpleStyled, __spreadProps(__spreadValues({}, props), { children: [
|
|
8734
8261
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialogDescriptionStyled, { children: simpleAlert.description }),
|
|
8735
|
-
simpleAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8262
|
+
simpleAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { variant: "text", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon_default, { name: "close" }) }) })
|
|
8736
8263
|
] })) })
|
|
8737
8264
|
] }) }),
|
|
8738
|
-
completAlert && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8739
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8265
|
+
completAlert && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.Theme, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes14.AlertDialog.Root, { children: [
|
|
8266
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.AlertDialog.Trigger, { children: trigger }),
|
|
8740
8267
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AlertDialogCompleteStyled, { children: [
|
|
8741
8268
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AlertDialogRowStyled, { className: "le-alert-dialog-row", children: [
|
|
8742
8269
|
color === "success" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
@@ -8836,7 +8363,7 @@ function Alert(_a) {
|
|
|
8836
8363
|
] }),
|
|
8837
8364
|
completAlert.onAction || completAlert.cancel ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialoghrStyled, {}) : null,
|
|
8838
8365
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialogRowStyled, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Flex2, { gap: "10", justify: "end", width: "100%", children: [
|
|
8839
|
-
completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8366
|
+
completAlert.onAction && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.AlertDialog.Action, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8840
8367
|
Button,
|
|
8841
8368
|
{
|
|
8842
8369
|
variant: "contained",
|
|
@@ -8844,7 +8371,7 @@ function Alert(_a) {
|
|
|
8844
8371
|
children: completAlert.actionText || "Salvar"
|
|
8845
8372
|
}
|
|
8846
8373
|
) }),
|
|
8847
|
-
completAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
8374
|
+
completAlert.cancel && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_themes14.AlertDialog.Cancel, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Button, { variant: "outlined", color: "neutral", children: completAlert.cancelText || "Cancelar" }) })
|
|
8848
8375
|
] }) })
|
|
8849
8376
|
] })
|
|
8850
8377
|
] }) })
|
|
@@ -8852,9 +8379,9 @@ function Alert(_a) {
|
|
|
8852
8379
|
}
|
|
8853
8380
|
|
|
8854
8381
|
// src/components/Switch.tsx
|
|
8855
|
-
var
|
|
8382
|
+
var import_themes15 = require("@radix-ui/themes");
|
|
8856
8383
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
8857
|
-
var SwitchStyled = styled(
|
|
8384
|
+
var SwitchStyled = styled(import_themes15.Switch, {
|
|
8858
8385
|
all: "unset",
|
|
8859
8386
|
borderRadius: "$full",
|
|
8860
8387
|
position: "relative",
|
|
@@ -8951,15 +8478,15 @@ function Switch(props) {
|
|
|
8951
8478
|
}
|
|
8952
8479
|
|
|
8953
8480
|
// src/components/Step.tsx
|
|
8954
|
-
var
|
|
8955
|
-
var
|
|
8481
|
+
var import_react6 = __toESM(require("react"));
|
|
8482
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
8956
8483
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
8957
8484
|
var StepStyled = styled("div", {
|
|
8958
8485
|
fontFamily: "$default",
|
|
8959
8486
|
color: "$gray100",
|
|
8960
8487
|
letterSpacing: "0px"
|
|
8961
8488
|
});
|
|
8962
|
-
var StepTriggerStyled = styled(
|
|
8489
|
+
var StepTriggerStyled = styled(import_themes16.Tabs.Trigger, {
|
|
8963
8490
|
all: "unset",
|
|
8964
8491
|
position: "relative",
|
|
8965
8492
|
display: "flex",
|
|
@@ -9018,7 +8545,7 @@ var StepTriggerStyled = styled(import_themes17.Tabs.Trigger, {
|
|
|
9018
8545
|
backgroundColor: "$blue500"
|
|
9019
8546
|
}
|
|
9020
8547
|
});
|
|
9021
|
-
var StepListStyled = styled(
|
|
8548
|
+
var StepListStyled = styled(import_themes16.Tabs.List, {
|
|
9022
8549
|
display: "flex",
|
|
9023
8550
|
alignItems: "center",
|
|
9024
8551
|
justifyContent: "flex-start",
|
|
@@ -9026,7 +8553,7 @@ var StepListStyled = styled(import_themes17.Tabs.List, {
|
|
|
9026
8553
|
});
|
|
9027
8554
|
function Step(_a) {
|
|
9028
8555
|
var _b = _a, { children, defaultValue } = _b, props = __objRest(_b, ["children", "defaultValue"]);
|
|
9029
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
8556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes16.Tabs.Root, { defaultValue: String(defaultValue), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StepStyled, __spreadProps(__spreadValues({}, props), { children })) });
|
|
9030
8557
|
}
|
|
9031
8558
|
function StepTrigger(_a) {
|
|
9032
8559
|
var _b = _a, {
|
|
@@ -9057,7 +8584,7 @@ function StepContent(_a) {
|
|
|
9057
8584
|
"value",
|
|
9058
8585
|
"children"
|
|
9059
8586
|
]);
|
|
9060
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
8587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes16.Tabs.Content, __spreadProps(__spreadValues({ value: String(value) }, props), { children }));
|
|
9061
8588
|
}
|
|
9062
8589
|
function StepList(_a) {
|
|
9063
8590
|
var _b = _a, {
|
|
@@ -9067,9 +8594,9 @@ function StepList(_a) {
|
|
|
9067
8594
|
"children",
|
|
9068
8595
|
"currentStep"
|
|
9069
8596
|
]);
|
|
9070
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StepListStyled, __spreadProps(__spreadValues({}, props), { children:
|
|
9071
|
-
if (
|
|
9072
|
-
return
|
|
8597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(StepListStyled, __spreadProps(__spreadValues({}, props), { children: import_react6.default.Children.map(children, (child) => {
|
|
8598
|
+
if (import_react6.default.isValidElement(child) && child.type === StepTrigger) {
|
|
8599
|
+
return import_react6.default.cloneElement(child, { currentStep });
|
|
9073
8600
|
}
|
|
9074
8601
|
return child;
|
|
9075
8602
|
}) }));
|
|
@@ -9080,14 +8607,14 @@ function StepWrapper(_a) {
|
|
|
9080
8607
|
} = _b, props = __objRest(_b, [
|
|
9081
8608
|
"children"
|
|
9082
8609
|
]);
|
|
9083
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
8610
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes16.Box, __spreadProps(__spreadValues({}, props), { children }));
|
|
9084
8611
|
}
|
|
9085
8612
|
|
|
9086
8613
|
// src/components/Card.tsx
|
|
9087
|
-
var
|
|
9088
|
-
var
|
|
8614
|
+
var import_react7 = __toESM(require("react"));
|
|
8615
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
9089
8616
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
9090
|
-
var CardStyled = styled(
|
|
8617
|
+
var CardStyled = styled(import_themes17.Card, {
|
|
9091
8618
|
display: "flex",
|
|
9092
8619
|
flexDirection: "column",
|
|
9093
8620
|
width: "370px",
|
|
@@ -9124,25 +8651,25 @@ var CardStyled = styled(import_themes18.Card, {
|
|
|
9124
8651
|
}
|
|
9125
8652
|
}
|
|
9126
8653
|
});
|
|
9127
|
-
var CardContainer = styled(
|
|
8654
|
+
var CardContainer = styled(import_themes17.Box, {
|
|
9128
8655
|
display: "flex",
|
|
9129
8656
|
flexDirection: "row"
|
|
9130
8657
|
});
|
|
9131
8658
|
function Card(_a) {
|
|
9132
8659
|
var _b = _a, { asChild, children } = _b, props = __objRest(_b, ["asChild", "children"]);
|
|
9133
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardStyled, __spreadProps(__spreadValues({}, props), { children:
|
|
9134
|
-
if (
|
|
9135
|
-
return
|
|
8660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(CardStyled, __spreadProps(__spreadValues({}, props), { children: import_react7.default.Children.map(children, (child) => {
|
|
8661
|
+
if (import_react7.default.isValidElement(child)) {
|
|
8662
|
+
return import_react7.default.cloneElement(child, { size: props.size });
|
|
9136
8663
|
}
|
|
9137
8664
|
return child;
|
|
9138
8665
|
}) }));
|
|
9139
8666
|
}
|
|
9140
8667
|
|
|
9141
8668
|
// src/components/TextareaField.tsx
|
|
9142
|
-
var
|
|
9143
|
-
var
|
|
8669
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
8670
|
+
var import_react8 = require("react");
|
|
9144
8671
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
9145
|
-
var TextareaFieldStyle = styled(
|
|
8672
|
+
var TextareaFieldStyle = styled(import_themes18.TextArea, {
|
|
9146
8673
|
display: "flex",
|
|
9147
8674
|
width: "fit-content",
|
|
9148
8675
|
flex: 1,
|
|
@@ -9199,8 +8726,8 @@ var TextareaLimitIndicator = styled("div", {
|
|
|
9199
8726
|
});
|
|
9200
8727
|
function TextareaField(_a) {
|
|
9201
8728
|
var _b = _a, { maxLength } = _b, props = __objRest(_b, ["maxLength"]);
|
|
9202
|
-
const inputRef = (0,
|
|
9203
|
-
const badgeRef = (0,
|
|
8729
|
+
const inputRef = (0, import_react8.useRef)(null);
|
|
8730
|
+
const badgeRef = (0, import_react8.useRef)(null);
|
|
9204
8731
|
if (!maxLength) {
|
|
9205
8732
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TextareaContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(TextareaFieldStyle, __spreadProps(__spreadValues({}, props), { ref: inputRef })) });
|
|
9206
8733
|
}
|
|
@@ -9223,9 +8750,9 @@ function TextareaField(_a) {
|
|
|
9223
8750
|
}
|
|
9224
8751
|
|
|
9225
8752
|
// src/components/Grid.tsx
|
|
9226
|
-
var
|
|
8753
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
9227
8754
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
9228
|
-
var GridStyled = styled(
|
|
8755
|
+
var GridStyled = styled(import_themes19.Grid, {
|
|
9229
8756
|
display: "grid",
|
|
9230
8757
|
variants: {
|
|
9231
8758
|
display: {
|
|
@@ -9350,9 +8877,9 @@ function Grid(_a) {
|
|
|
9350
8877
|
}
|
|
9351
8878
|
|
|
9352
8879
|
// src/components/Container.tsx
|
|
9353
|
-
var
|
|
8880
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
9354
8881
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
9355
|
-
var ContainerStyled = styled(
|
|
8882
|
+
var ContainerStyled = styled(import_themes20.Container, {
|
|
9356
8883
|
variants: {
|
|
9357
8884
|
size: {
|
|
9358
8885
|
xs: { maxWidth: "576px" },
|
|
@@ -9385,9 +8912,9 @@ function Container(_a) {
|
|
|
9385
8912
|
}
|
|
9386
8913
|
|
|
9387
8914
|
// src/components/Section.tsx
|
|
9388
|
-
var
|
|
8915
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
9389
8916
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
9390
|
-
var SectionStyled = styled(
|
|
8917
|
+
var SectionStyled = styled(import_themes21.Section, {
|
|
9391
8918
|
variants: {
|
|
9392
8919
|
size: {
|
|
9393
8920
|
xs: { maxWidth: "576px" },
|
|
@@ -9450,10 +8977,8 @@ function Section(_a) {
|
|
|
9450
8977
|
Grid,
|
|
9451
8978
|
GridStyled,
|
|
9452
8979
|
Icon,
|
|
8980
|
+
InputStyled,
|
|
9453
8981
|
Modal,
|
|
9454
|
-
ModalContentStyled,
|
|
9455
|
-
ModalStyled,
|
|
9456
|
-
ModalTitleStyled,
|
|
9457
8982
|
RadioGroup,
|
|
9458
8983
|
RadioGroupStyled,
|
|
9459
8984
|
RadioItem,
|