@akad/design-system 0.2.0-beta.13 → 0.2.0-beta.14
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/package.json +1 -1
- package/react/components/atoms/Button/Button.config.d.ts +10 -0
- package/react/components/atoms/Button/Button.d.ts +5 -1
- package/react/components/atoms/Card/Card.config.d.ts +10 -0
- package/react/components/atoms/Card/Card.d.ts +5 -1
- package/react/react-lib.js +855 -828
- package/react/react-lib.umd.cjs +4 -4
package/react/react-lib.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as D, Fragment as tt } from "react/jsx-runtime";
|
|
2
|
-
import be, { useMemo as
|
|
3
|
-
function kn(
|
|
4
|
-
return
|
|
2
|
+
import be, { useMemo as Se, useState as j, useEffect as J, useRef as Je, useCallback as Ae, useLayoutEffect as _n, createElement as vn } from "react";
|
|
3
|
+
function kn(i) {
|
|
4
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
5
5
|
}
|
|
6
6
|
var It = { exports: {} }, nt = { exports: {} }, U = {};
|
|
7
7
|
/** @license React v16.13.1
|
|
@@ -17,17 +17,17 @@ function bn() {
|
|
|
17
17
|
if (Lt)
|
|
18
18
|
return U;
|
|
19
19
|
Lt = 1;
|
|
20
|
-
var
|
|
20
|
+
var i = typeof Symbol == "function" && Symbol.for, e = i ? Symbol.for("react.element") : 60103, t = i ? Symbol.for("react.portal") : 60106, s = i ? Symbol.for("react.fragment") : 60107, n = i ? Symbol.for("react.strict_mode") : 60108, a = i ? Symbol.for("react.profiler") : 60114, r = i ? Symbol.for("react.provider") : 60109, l = i ? Symbol.for("react.context") : 60110, u = i ? Symbol.for("react.async_mode") : 60111, d = i ? Symbol.for("react.concurrent_mode") : 60111, h = i ? Symbol.for("react.forward_ref") : 60112, f = i ? Symbol.for("react.suspense") : 60113, _ = i ? Symbol.for("react.suspense_list") : 60120, v = i ? Symbol.for("react.memo") : 60115, S = i ? Symbol.for("react.lazy") : 60116, y = i ? Symbol.for("react.block") : 60121, m = i ? Symbol.for("react.fundamental") : 60117, F = i ? Symbol.for("react.responder") : 60118, P = i ? Symbol.for("react.scope") : 60119;
|
|
21
21
|
function A(p) {
|
|
22
22
|
if (typeof p == "object" && p !== null) {
|
|
23
|
-
var
|
|
24
|
-
switch (
|
|
23
|
+
var x = p.$$typeof;
|
|
24
|
+
switch (x) {
|
|
25
25
|
case e:
|
|
26
26
|
switch (p = p.type, p) {
|
|
27
27
|
case u:
|
|
28
28
|
case d:
|
|
29
29
|
case s:
|
|
30
|
-
case
|
|
30
|
+
case a:
|
|
31
31
|
case n:
|
|
32
32
|
case f:
|
|
33
33
|
return p;
|
|
@@ -35,25 +35,25 @@ function bn() {
|
|
|
35
35
|
switch (p = p && p.$$typeof, p) {
|
|
36
36
|
case l:
|
|
37
37
|
case h:
|
|
38
|
-
case
|
|
38
|
+
case S:
|
|
39
39
|
case v:
|
|
40
40
|
case r:
|
|
41
41
|
return p;
|
|
42
42
|
default:
|
|
43
|
-
return
|
|
43
|
+
return x;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
case t:
|
|
47
|
-
return
|
|
47
|
+
return x;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function E(p) {
|
|
52
52
|
return A(p) === d;
|
|
53
53
|
}
|
|
54
|
-
return U.AsyncMode = u, U.ConcurrentMode = d, U.ContextConsumer = l, U.ContextProvider = r, U.Element = e, U.ForwardRef = h, U.Fragment = s, U.Lazy =
|
|
55
|
-
return
|
|
56
|
-
}, U.isConcurrentMode =
|
|
54
|
+
return U.AsyncMode = u, U.ConcurrentMode = d, U.ContextConsumer = l, U.ContextProvider = r, U.Element = e, U.ForwardRef = h, U.Fragment = s, U.Lazy = S, U.Memo = v, U.Portal = t, U.Profiler = a, U.StrictMode = n, U.Suspense = f, U.isAsyncMode = function(p) {
|
|
55
|
+
return E(p) || A(p) === u;
|
|
56
|
+
}, U.isConcurrentMode = E, U.isContextConsumer = function(p) {
|
|
57
57
|
return A(p) === l;
|
|
58
58
|
}, U.isContextProvider = function(p) {
|
|
59
59
|
return A(p) === r;
|
|
@@ -64,19 +64,19 @@ function bn() {
|
|
|
64
64
|
}, U.isFragment = function(p) {
|
|
65
65
|
return A(p) === s;
|
|
66
66
|
}, U.isLazy = function(p) {
|
|
67
|
-
return A(p) ===
|
|
67
|
+
return A(p) === S;
|
|
68
68
|
}, U.isMemo = function(p) {
|
|
69
69
|
return A(p) === v;
|
|
70
70
|
}, U.isPortal = function(p) {
|
|
71
71
|
return A(p) === t;
|
|
72
72
|
}, U.isProfiler = function(p) {
|
|
73
|
-
return A(p) ===
|
|
73
|
+
return A(p) === a;
|
|
74
74
|
}, U.isStrictMode = function(p) {
|
|
75
75
|
return A(p) === n;
|
|
76
76
|
}, U.isSuspense = function(p) {
|
|
77
77
|
return A(p) === f;
|
|
78
78
|
}, U.isValidElementType = function(p) {
|
|
79
|
-
return typeof p == "string" || typeof p == "function" || p === s || p === d || p ===
|
|
79
|
+
return typeof p == "string" || typeof p == "function" || p === s || p === d || p === a || p === n || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === v || p.$$typeof === r || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === F || p.$$typeof === P || p.$$typeof === y);
|
|
80
80
|
}, U.typeOf = A, U;
|
|
81
81
|
}
|
|
82
82
|
var H = {};
|
|
@@ -89,24 +89,24 @@ var H = {};
|
|
|
89
89
|
* LICENSE file in the root directory of this source tree.
|
|
90
90
|
*/
|
|
91
91
|
var Pt;
|
|
92
|
-
function
|
|
92
|
+
function Sn() {
|
|
93
93
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
94
|
-
var
|
|
94
|
+
var i = typeof Symbol == "function" && Symbol.for, e = i ? Symbol.for("react.element") : 60103, t = i ? Symbol.for("react.portal") : 60106, s = i ? Symbol.for("react.fragment") : 60107, n = i ? Symbol.for("react.strict_mode") : 60108, a = i ? Symbol.for("react.profiler") : 60114, r = i ? Symbol.for("react.provider") : 60109, l = i ? Symbol.for("react.context") : 60110, u = i ? Symbol.for("react.async_mode") : 60111, d = i ? Symbol.for("react.concurrent_mode") : 60111, h = i ? Symbol.for("react.forward_ref") : 60112, f = i ? Symbol.for("react.suspense") : 60113, _ = i ? Symbol.for("react.suspense_list") : 60120, v = i ? Symbol.for("react.memo") : 60115, S = i ? Symbol.for("react.lazy") : 60116, y = i ? Symbol.for("react.block") : 60121, m = i ? Symbol.for("react.fundamental") : 60117, F = i ? Symbol.for("react.responder") : 60118, P = i ? Symbol.for("react.scope") : 60119;
|
|
95
95
|
function A(k) {
|
|
96
96
|
return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
97
|
-
k === s || k === d || k ===
|
|
97
|
+
k === s || k === d || k === a || k === n || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === S || k.$$typeof === v || k.$$typeof === r || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === F || k.$$typeof === P || k.$$typeof === y);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function E(k) {
|
|
100
100
|
if (typeof k == "object" && k !== null) {
|
|
101
|
-
var
|
|
102
|
-
switch (
|
|
101
|
+
var Ce = k.$$typeof;
|
|
102
|
+
switch (Ce) {
|
|
103
103
|
case e:
|
|
104
104
|
var st = k.type;
|
|
105
105
|
switch (st) {
|
|
106
106
|
case u:
|
|
107
107
|
case d:
|
|
108
108
|
case s:
|
|
109
|
-
case
|
|
109
|
+
case a:
|
|
110
110
|
case n:
|
|
111
111
|
case f:
|
|
112
112
|
return st;
|
|
@@ -115,65 +115,65 @@ function Cn() {
|
|
|
115
115
|
switch (Vt) {
|
|
116
116
|
case l:
|
|
117
117
|
case h:
|
|
118
|
-
case
|
|
118
|
+
case S:
|
|
119
119
|
case v:
|
|
120
120
|
case r:
|
|
121
121
|
return Vt;
|
|
122
122
|
default:
|
|
123
|
-
return
|
|
123
|
+
return Ce;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
case t:
|
|
127
|
-
return
|
|
127
|
+
return Ce;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
var p = u,
|
|
131
|
+
var p = u, x = d, R = l, W = r, I = e, se = h, ce = s, de = S, Fe = v, ye = t, Le = a, oe = n, _e = f, Ie = !1;
|
|
132
132
|
function Ne(k) {
|
|
133
|
-
return Ie || (Ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) ||
|
|
133
|
+
return Ie || (Ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || E(k) === u;
|
|
134
134
|
}
|
|
135
135
|
function g(k) {
|
|
136
|
-
return
|
|
136
|
+
return E(k) === d;
|
|
137
137
|
}
|
|
138
138
|
function b(k) {
|
|
139
|
-
return
|
|
139
|
+
return E(k) === l;
|
|
140
140
|
}
|
|
141
141
|
function V(k) {
|
|
142
|
-
return
|
|
142
|
+
return E(k) === r;
|
|
143
143
|
}
|
|
144
144
|
function N(k) {
|
|
145
145
|
return typeof k == "object" && k !== null && k.$$typeof === e;
|
|
146
146
|
}
|
|
147
147
|
function B(k) {
|
|
148
|
-
return
|
|
148
|
+
return E(k) === h;
|
|
149
149
|
}
|
|
150
150
|
function T(k) {
|
|
151
|
-
return
|
|
151
|
+
return E(k) === s;
|
|
152
152
|
}
|
|
153
153
|
function M(k) {
|
|
154
|
-
return
|
|
154
|
+
return E(k) === S;
|
|
155
155
|
}
|
|
156
156
|
function L(k) {
|
|
157
|
-
return
|
|
157
|
+
return E(k) === v;
|
|
158
158
|
}
|
|
159
159
|
function q(k) {
|
|
160
|
-
return
|
|
160
|
+
return E(k) === t;
|
|
161
161
|
}
|
|
162
162
|
function w(k) {
|
|
163
|
-
return
|
|
163
|
+
return E(k) === a;
|
|
164
164
|
}
|
|
165
165
|
function z(k) {
|
|
166
|
-
return
|
|
166
|
+
return E(k) === n;
|
|
167
167
|
}
|
|
168
168
|
function Q(k) {
|
|
169
|
-
return
|
|
169
|
+
return E(k) === f;
|
|
170
170
|
}
|
|
171
|
-
H.AsyncMode = p, H.ConcurrentMode =
|
|
171
|
+
H.AsyncMode = p, H.ConcurrentMode = x, H.ContextConsumer = R, H.ContextProvider = W, H.Element = I, H.ForwardRef = se, H.Fragment = ce, H.Lazy = de, H.Memo = Fe, H.Portal = ye, H.Profiler = Le, H.StrictMode = oe, H.Suspense = _e, H.isAsyncMode = Ne, H.isConcurrentMode = g, H.isContextConsumer = b, H.isContextProvider = V, H.isElement = N, H.isForwardRef = B, H.isFragment = T, H.isLazy = M, H.isMemo = L, H.isPortal = q, H.isProfiler = w, H.isStrictMode = z, H.isSuspense = Q, H.isValidElementType = A, H.typeOf = E;
|
|
172
172
|
}()), H;
|
|
173
173
|
}
|
|
174
174
|
var jt;
|
|
175
175
|
function qs() {
|
|
176
|
-
return jt || (jt = 1, process.env.NODE_ENV === "production" ? nt.exports = bn() : nt.exports =
|
|
176
|
+
return jt || (jt = 1, process.env.NODE_ENV === "production" ? nt.exports = bn() : nt.exports = Sn()), nt.exports;
|
|
177
177
|
}
|
|
178
178
|
/*
|
|
179
179
|
object-assign
|
|
@@ -181,22 +181,22 @@ object-assign
|
|
|
181
181
|
@license MIT
|
|
182
182
|
*/
|
|
183
183
|
var vt, zt;
|
|
184
|
-
function
|
|
184
|
+
function Cn() {
|
|
185
185
|
if (zt)
|
|
186
186
|
return vt;
|
|
187
187
|
zt = 1;
|
|
188
|
-
var
|
|
189
|
-
function s(
|
|
190
|
-
if (
|
|
188
|
+
var i = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
189
|
+
function s(a) {
|
|
190
|
+
if (a == null)
|
|
191
191
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
192
|
-
return Object(
|
|
192
|
+
return Object(a);
|
|
193
193
|
}
|
|
194
194
|
function n() {
|
|
195
195
|
try {
|
|
196
196
|
if (!Object.assign)
|
|
197
197
|
return !1;
|
|
198
|
-
var
|
|
199
|
-
if (
|
|
198
|
+
var a = new String("abc");
|
|
199
|
+
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
200
200
|
return !1;
|
|
201
201
|
for (var r = {}, l = 0; l < 10; l++)
|
|
202
202
|
r["_" + String.fromCharCode(l)] = l;
|
|
@@ -213,13 +213,13 @@ function Sn() {
|
|
|
213
213
|
return !1;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
return vt = n() ? Object.assign : function(
|
|
217
|
-
for (var l, u = s(
|
|
216
|
+
return vt = n() ? Object.assign : function(a, r) {
|
|
217
|
+
for (var l, u = s(a), d, h = 1; h < arguments.length; h++) {
|
|
218
218
|
l = Object(arguments[h]);
|
|
219
219
|
for (var f in l)
|
|
220
220
|
e.call(l, f) && (u[f] = l[f]);
|
|
221
|
-
if (
|
|
222
|
-
d =
|
|
221
|
+
if (i) {
|
|
222
|
+
d = i(l);
|
|
223
223
|
for (var _ = 0; _ < d.length; _++)
|
|
224
224
|
t.call(l, d[_]) && (u[d[_]] = l[d[_]]);
|
|
225
225
|
}
|
|
@@ -232,24 +232,24 @@ function Dt() {
|
|
|
232
232
|
if (qt)
|
|
233
233
|
return kt;
|
|
234
234
|
qt = 1;
|
|
235
|
-
var
|
|
236
|
-
return kt =
|
|
235
|
+
var i = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
236
|
+
return kt = i, kt;
|
|
237
237
|
}
|
|
238
238
|
var bt, Ut;
|
|
239
239
|
function Us() {
|
|
240
240
|
return Ut || (Ut = 1, bt = Function.call.bind(Object.prototype.hasOwnProperty)), bt;
|
|
241
241
|
}
|
|
242
|
-
var
|
|
242
|
+
var St, Ht;
|
|
243
243
|
function En() {
|
|
244
244
|
if (Ht)
|
|
245
|
-
return
|
|
245
|
+
return St;
|
|
246
246
|
Ht = 1;
|
|
247
|
-
var
|
|
247
|
+
var i = function() {
|
|
248
248
|
};
|
|
249
249
|
if (process.env.NODE_ENV !== "production") {
|
|
250
250
|
var e = Dt(), t = {}, s = Us();
|
|
251
|
-
|
|
252
|
-
var r = "Warning: " +
|
|
251
|
+
i = function(a) {
|
|
252
|
+
var r = "Warning: " + a;
|
|
253
253
|
typeof console < "u" && console.error(r);
|
|
254
254
|
try {
|
|
255
255
|
throw new Error(r);
|
|
@@ -257,28 +257,28 @@ function En() {
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function n(
|
|
260
|
+
function n(a, r, l, u, d) {
|
|
261
261
|
if (process.env.NODE_ENV !== "production") {
|
|
262
|
-
for (var h in
|
|
263
|
-
if (s(
|
|
262
|
+
for (var h in a)
|
|
263
|
+
if (s(a, h)) {
|
|
264
264
|
var f;
|
|
265
265
|
try {
|
|
266
|
-
if (typeof
|
|
266
|
+
if (typeof a[h] != "function") {
|
|
267
267
|
var _ = Error(
|
|
268
|
-
(u || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
|
268
|
+
(u || "React class") + ": " + l + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
269
269
|
);
|
|
270
270
|
throw _.name = "Invariant Violation", _;
|
|
271
271
|
}
|
|
272
|
-
f =
|
|
273
|
-
} catch (
|
|
274
|
-
f =
|
|
272
|
+
f = a[h](r, h, u, l, null, e);
|
|
273
|
+
} catch (S) {
|
|
274
|
+
f = S;
|
|
275
275
|
}
|
|
276
|
-
if (f && !(f instanceof Error) &&
|
|
276
|
+
if (f && !(f instanceof Error) && i(
|
|
277
277
|
(u || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
278
278
|
), f instanceof Error && !(f.message in t)) {
|
|
279
279
|
t[f.message] = !0;
|
|
280
280
|
var v = d ? d() : "";
|
|
281
|
-
|
|
281
|
+
i(
|
|
282
282
|
"Failed " + l + " type: " + f.message + (v ?? "")
|
|
283
283
|
);
|
|
284
284
|
}
|
|
@@ -287,16 +287,16 @@ function En() {
|
|
|
287
287
|
}
|
|
288
288
|
return n.resetWarningCache = function() {
|
|
289
289
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
290
|
-
},
|
|
290
|
+
}, St = n, St;
|
|
291
291
|
}
|
|
292
|
-
var
|
|
292
|
+
var Ct, Wt;
|
|
293
293
|
function xn() {
|
|
294
294
|
if (Wt)
|
|
295
|
-
return
|
|
295
|
+
return Ct;
|
|
296
296
|
Wt = 1;
|
|
297
|
-
var
|
|
297
|
+
var i = qs(), e = Cn(), t = Dt(), s = Us(), n = En(), a = function() {
|
|
298
298
|
};
|
|
299
|
-
process.env.NODE_ENV !== "production" && (
|
|
299
|
+
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
300
300
|
var u = "Warning: " + l;
|
|
301
301
|
typeof console < "u" && console.error(u);
|
|
302
302
|
try {
|
|
@@ -307,7 +307,7 @@ function xn() {
|
|
|
307
307
|
function r() {
|
|
308
308
|
return null;
|
|
309
309
|
}
|
|
310
|
-
return
|
|
310
|
+
return Ct = function(l, u) {
|
|
311
311
|
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
312
312
|
function f(g) {
|
|
313
313
|
var b = g && (d && g[d] || g[h]);
|
|
@@ -325,17 +325,17 @@ function xn() {
|
|
|
325
325
|
symbol: F("symbol"),
|
|
326
326
|
any: P(),
|
|
327
327
|
arrayOf: A,
|
|
328
|
-
element:
|
|
328
|
+
element: E(),
|
|
329
329
|
elementType: p(),
|
|
330
|
-
instanceOf:
|
|
330
|
+
instanceOf: x,
|
|
331
331
|
node: se(),
|
|
332
|
-
objectOf:
|
|
332
|
+
objectOf: W,
|
|
333
333
|
oneOf: R,
|
|
334
334
|
oneOfType: I,
|
|
335
335
|
shape: de,
|
|
336
336
|
exact: Fe
|
|
337
337
|
};
|
|
338
|
-
function
|
|
338
|
+
function S(g, b) {
|
|
339
339
|
return g === b ? g !== 0 || 1 / g === 1 / b : g !== g && b !== b;
|
|
340
340
|
}
|
|
341
341
|
function y(g, b) {
|
|
@@ -353,11 +353,11 @@ function xn() {
|
|
|
353
353
|
);
|
|
354
354
|
throw k.name = "Invariant Violation", k;
|
|
355
355
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
356
|
-
var
|
|
357
|
-
!b[
|
|
358
|
-
V < 3 && (
|
|
356
|
+
var Ce = q + ":" + L;
|
|
357
|
+
!b[Ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
358
|
+
V < 3 && (a(
|
|
359
359
|
"You are manually calling a React.PropTypes validation function for the `" + z + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
360
|
-
), b[
|
|
360
|
+
), b[Ce] = !0, V++);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
return M[L] == null ? T ? M[L] === null ? new y("The " + w + " `" + z + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new y("The " + w + " `" + z + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : g(M, L, q, w, z);
|
|
@@ -369,7 +369,7 @@ function xn() {
|
|
|
369
369
|
function b(V, N, B, T, M, L) {
|
|
370
370
|
var q = V[N], w = oe(q);
|
|
371
371
|
if (w !== g) {
|
|
372
|
-
var z =
|
|
372
|
+
var z = _e(q);
|
|
373
373
|
return new y(
|
|
374
374
|
"Invalid " + T + " `" + M + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected ") + ("`" + g + "`."),
|
|
375
375
|
{ expectedType: g }
|
|
@@ -400,7 +400,7 @@ function xn() {
|
|
|
400
400
|
}
|
|
401
401
|
return m(b);
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function E() {
|
|
404
404
|
function g(b, V, N, B, T) {
|
|
405
405
|
var M = b[V];
|
|
406
406
|
if (!l(M)) {
|
|
@@ -414,7 +414,7 @@ function xn() {
|
|
|
414
414
|
function p() {
|
|
415
415
|
function g(b, V, N, B, T) {
|
|
416
416
|
var M = b[V];
|
|
417
|
-
if (!
|
|
417
|
+
if (!i.isValidElementType(M)) {
|
|
418
418
|
var L = oe(M);
|
|
419
419
|
return new y("Invalid " + B + " `" + T + "` of type " + ("`" + L + "` supplied to `" + N + "`, expected a single ReactElement type."));
|
|
420
420
|
}
|
|
@@ -422,7 +422,7 @@ function xn() {
|
|
|
422
422
|
}
|
|
423
423
|
return m(g);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function x(g) {
|
|
426
426
|
function b(V, N, B, T, M) {
|
|
427
427
|
if (!(V[N] instanceof g)) {
|
|
428
428
|
var L = g.name || _, q = Ne(V[N]);
|
|
@@ -434,22 +434,22 @@ function xn() {
|
|
|
434
434
|
}
|
|
435
435
|
function R(g) {
|
|
436
436
|
if (!Array.isArray(g))
|
|
437
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
437
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
438
438
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
439
|
-
) :
|
|
439
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
440
440
|
function b(V, N, B, T, M) {
|
|
441
441
|
for (var L = V[N], q = 0; q < g.length; q++)
|
|
442
|
-
if (
|
|
442
|
+
if (S(L, g[q]))
|
|
443
443
|
return null;
|
|
444
444
|
var w = JSON.stringify(g, function(Q, k) {
|
|
445
|
-
var
|
|
446
|
-
return
|
|
445
|
+
var Ce = _e(k);
|
|
446
|
+
return Ce === "symbol" ? String(k) : k;
|
|
447
447
|
});
|
|
448
448
|
return new y("Invalid " + T + " `" + M + "` of value `" + String(L) + "` " + ("supplied to `" + B + "`, expected one of " + w + "."));
|
|
449
449
|
}
|
|
450
450
|
return m(b);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function W(g) {
|
|
453
453
|
function b(V, N, B, T, M) {
|
|
454
454
|
if (typeof g != "function")
|
|
455
455
|
return new y("Property `" + M + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
|
|
@@ -468,11 +468,11 @@ function xn() {
|
|
|
468
468
|
}
|
|
469
469
|
function I(g) {
|
|
470
470
|
if (!Array.isArray(g))
|
|
471
|
-
return process.env.NODE_ENV !== "production" &&
|
|
471
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
472
472
|
for (var b = 0; b < g.length; b++) {
|
|
473
473
|
var V = g[b];
|
|
474
474
|
if (typeof V != "function")
|
|
475
|
-
return
|
|
475
|
+
return a(
|
|
476
476
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ie(V) + " at index " + b + "."
|
|
477
477
|
), r;
|
|
478
478
|
}
|
|
@@ -483,14 +483,14 @@ function xn() {
|
|
|
483
483
|
return null;
|
|
484
484
|
k.data && s(k.data, "expectedType") && w.push(k.data.expectedType);
|
|
485
485
|
}
|
|
486
|
-
var
|
|
487
|
-
return new y("Invalid " + L + " `" + q + "` supplied to " + ("`" + M + "`" +
|
|
486
|
+
var Ce = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
|
|
487
|
+
return new y("Invalid " + L + " `" + q + "` supplied to " + ("`" + M + "`" + Ce + "."));
|
|
488
488
|
}
|
|
489
489
|
return m(N);
|
|
490
490
|
}
|
|
491
491
|
function se() {
|
|
492
492
|
function g(b, V, N, B, T) {
|
|
493
|
-
return
|
|
493
|
+
return ye(b[V]) ? null : new y("Invalid " + B + " `" + T + "` supplied to " + ("`" + N + "`, expected a ReactNode."));
|
|
494
494
|
}
|
|
495
495
|
return m(g);
|
|
496
496
|
}
|
|
@@ -507,7 +507,7 @@ function xn() {
|
|
|
507
507
|
for (var w in g) {
|
|
508
508
|
var z = g[w];
|
|
509
509
|
if (typeof z != "function")
|
|
510
|
-
return ce(B, T, M, w,
|
|
510
|
+
return ce(B, T, M, w, _e(z));
|
|
511
511
|
var Q = z(L, w, B, T, M + "." + w, t);
|
|
512
512
|
if (Q)
|
|
513
513
|
return Q;
|
|
@@ -525,7 +525,7 @@ function xn() {
|
|
|
525
525
|
for (var z in w) {
|
|
526
526
|
var Q = g[z];
|
|
527
527
|
if (s(g, z) && typeof Q != "function")
|
|
528
|
-
return ce(B, T, M, z,
|
|
528
|
+
return ce(B, T, M, z, _e(Q));
|
|
529
529
|
if (!Q)
|
|
530
530
|
return new y(
|
|
531
531
|
"Invalid " + T + " `" + M + "` key `" + z + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(V[N], null, " ") + `
|
|
@@ -539,7 +539,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
539
539
|
}
|
|
540
540
|
return m(b);
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function ye(g) {
|
|
543
543
|
switch (typeof g) {
|
|
544
544
|
case "number":
|
|
545
545
|
case "string":
|
|
@@ -549,7 +549,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
549
549
|
return !g;
|
|
550
550
|
case "object":
|
|
551
551
|
if (Array.isArray(g))
|
|
552
|
-
return g.every(
|
|
552
|
+
return g.every(ye);
|
|
553
553
|
if (g === null || l(g))
|
|
554
554
|
return !0;
|
|
555
555
|
var b = f(g);
|
|
@@ -557,12 +557,12 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
557
557
|
var V = b.call(g), N;
|
|
558
558
|
if (b !== g.entries) {
|
|
559
559
|
for (; !(N = V.next()).done; )
|
|
560
|
-
if (!
|
|
560
|
+
if (!ye(N.value))
|
|
561
561
|
return !1;
|
|
562
562
|
} else
|
|
563
563
|
for (; !(N = V.next()).done; ) {
|
|
564
564
|
var B = N.value;
|
|
565
|
-
if (B && !
|
|
565
|
+
if (B && !ye(B[1]))
|
|
566
566
|
return !1;
|
|
567
567
|
}
|
|
568
568
|
} else
|
|
@@ -579,7 +579,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
579
579
|
var b = typeof g;
|
|
580
580
|
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Le(b, g) ? "symbol" : b;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function _e(g) {
|
|
583
583
|
if (typeof g > "u" || g === null)
|
|
584
584
|
return "" + g;
|
|
585
585
|
var b = oe(g);
|
|
@@ -592,7 +592,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
592
592
|
return b;
|
|
593
593
|
}
|
|
594
594
|
function Ie(g) {
|
|
595
|
-
var b =
|
|
595
|
+
var b = _e(g);
|
|
596
596
|
switch (b) {
|
|
597
597
|
case "array":
|
|
598
598
|
case "object":
|
|
@@ -609,21 +609,21 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
|
609
609
|
return !g.constructor || !g.constructor.name ? _ : g.constructor.name;
|
|
610
610
|
}
|
|
611
611
|
return v.checkPropTypes = n, v.resetWarningCache = n.resetWarningCache, v.PropTypes = v, v;
|
|
612
|
-
},
|
|
612
|
+
}, Ct;
|
|
613
613
|
}
|
|
614
614
|
var Et, Yt;
|
|
615
615
|
function Tn() {
|
|
616
616
|
if (Yt)
|
|
617
617
|
return Et;
|
|
618
618
|
Yt = 1;
|
|
619
|
-
var
|
|
619
|
+
var i = Dt();
|
|
620
620
|
function e() {
|
|
621
621
|
}
|
|
622
622
|
function t() {
|
|
623
623
|
}
|
|
624
624
|
return t.resetWarningCache = e, Et = function() {
|
|
625
625
|
function s(r, l, u, d, h, f) {
|
|
626
|
-
if (f !==
|
|
626
|
+
if (f !== i) {
|
|
627
627
|
var _ = new Error(
|
|
628
628
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
629
629
|
);
|
|
@@ -634,7 +634,7 @@ function Tn() {
|
|
|
634
634
|
function n() {
|
|
635
635
|
return s;
|
|
636
636
|
}
|
|
637
|
-
var
|
|
637
|
+
var a = {
|
|
638
638
|
array: s,
|
|
639
639
|
bigint: s,
|
|
640
640
|
bool: s,
|
|
@@ -657,7 +657,7 @@ function Tn() {
|
|
|
657
657
|
checkPropTypes: t,
|
|
658
658
|
resetWarningCache: e
|
|
659
659
|
};
|
|
660
|
-
return
|
|
660
|
+
return a.PropTypes = a, a;
|
|
661
661
|
}, Et;
|
|
662
662
|
}
|
|
663
663
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -736,6 +736,14 @@ const o = /* @__PURE__ */ kn(Fn), Gt = {
|
|
|
736
736
|
fullSize: {
|
|
737
737
|
type: Boolean,
|
|
738
738
|
default: !1
|
|
739
|
+
},
|
|
740
|
+
gtmId: {
|
|
741
|
+
type: String,
|
|
742
|
+
default: "ds-button"
|
|
743
|
+
},
|
|
744
|
+
gtmLabel: {
|
|
745
|
+
type: String,
|
|
746
|
+
default: ""
|
|
739
747
|
}
|
|
740
748
|
}
|
|
741
749
|
}, Jt = {
|
|
@@ -854,18 +862,18 @@ const o = /* @__PURE__ */ kn(Fn), Gt = {
|
|
|
854
862
|
light: 300,
|
|
855
863
|
extralight: 200
|
|
856
864
|
}, K = ({
|
|
857
|
-
image:
|
|
865
|
+
image: i = ue.props.image.default,
|
|
858
866
|
color: e = ue.props.color.default,
|
|
859
867
|
className: t,
|
|
860
868
|
size: s = ue.props.size.default,
|
|
861
869
|
fill: n = ue.props.fill.default,
|
|
862
|
-
weight:
|
|
870
|
+
weight: a = ue.props.weight.default,
|
|
863
871
|
testId: r = ue.props.testId.default,
|
|
864
872
|
onClick: l = ue.props.onClick.default
|
|
865
873
|
}) => {
|
|
866
|
-
const u = "material-symbols-rounded", d = e && ue.props.color.options.find((f) => f === e) && `${ue.class}__color--${e}`, h =
|
|
867
|
-
fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'GRAD' 0,'wght' ${In[
|
|
868
|
-
}), [
|
|
874
|
+
const u = "material-symbols-rounded", d = e && ue.props.color.options.find((f) => f === e) && `${ue.class}__color--${e}`, h = Se(() => ({
|
|
875
|
+
fontVariationSettings: `'FILL' ${n ? 1 : 0}, 'GRAD' 0,'wght' ${In[a]}, 'opsz' 48`
|
|
876
|
+
}), [a, n]);
|
|
869
877
|
return /* @__PURE__ */ c(
|
|
870
878
|
"i",
|
|
871
879
|
{
|
|
@@ -880,7 +888,7 @@ const o = /* @__PURE__ */ kn(Fn), Gt = {
|
|
|
880
888
|
onClick: l,
|
|
881
889
|
style: h,
|
|
882
890
|
translate: "no",
|
|
883
|
-
children:
|
|
891
|
+
children: i
|
|
884
892
|
}
|
|
885
893
|
);
|
|
886
894
|
};
|
|
@@ -895,12 +903,12 @@ K.propTypes = {
|
|
|
895
903
|
};
|
|
896
904
|
K.displayName = "DsIcon";
|
|
897
905
|
const pt = ({
|
|
898
|
-
children:
|
|
906
|
+
children: i,
|
|
899
907
|
className: e,
|
|
900
908
|
onClick: t,
|
|
901
909
|
size: s = Y.props.size.default,
|
|
902
910
|
disabled: n = Y.props.disabled.default,
|
|
903
|
-
icon:
|
|
911
|
+
icon: a = Y.props.icon.default,
|
|
904
912
|
id: r = Y.props.id.default,
|
|
905
913
|
testId: l = Y.props.testId.default,
|
|
906
914
|
elevation: u,
|
|
@@ -908,35 +916,38 @@ const pt = ({
|
|
|
908
916
|
color: h = Y.props.color.default,
|
|
909
917
|
iconFill: f = Y.props.iconFill.default,
|
|
910
918
|
iconPosition: _ = Y.props.iconPosition.default,
|
|
911
|
-
fullSize: v = Y.props.fullSize.default
|
|
919
|
+
fullSize: v = Y.props.fullSize.default,
|
|
920
|
+
gtmId: S = Y.props.gtmId.default,
|
|
921
|
+
gtmLabel: y
|
|
912
922
|
}) => {
|
|
913
|
-
const
|
|
923
|
+
const m = s && Y.props.size.options.find((W) => W === s) ? `${Y.class}--${s}` : `${Y.class}__${Y.props.size.default}`, F = n && `${Y.class}--disabled`, P = `${Y.class}__${h}--${d}`, A = u && `${Y.class}--elevation-${u}`, E = a && `${Y.class}--with-icon`, p = v ? `${Y.class}--full-size` : "", x = _ === "right" ? `${Y.class}__icon` : `${Y.class}__icon--left`, R = _ === "right" ? `${Y.class}__text` : `${Y.class}__text--reversed`;
|
|
914
924
|
return /* @__PURE__ */ c(
|
|
915
925
|
"button",
|
|
916
926
|
{
|
|
917
927
|
className: [
|
|
918
928
|
Y.class,
|
|
919
|
-
|
|
920
|
-
y,
|
|
921
|
-
P,
|
|
922
|
-
C,
|
|
923
|
-
m,
|
|
929
|
+
p,
|
|
924
930
|
F,
|
|
931
|
+
m,
|
|
925
932
|
P,
|
|
926
|
-
|
|
927
|
-
|
|
933
|
+
A,
|
|
934
|
+
E,
|
|
935
|
+
e
|
|
936
|
+
].filter((W) => W).join(" "),
|
|
937
|
+
"data-gtmid": S,
|
|
928
938
|
"data-testid": l,
|
|
939
|
+
...y && { "data-gtmlabel": y },
|
|
929
940
|
disabled: n,
|
|
930
941
|
id: r,
|
|
931
942
|
onClick: n ? void 0 : t,
|
|
932
|
-
children: /* @__PURE__ */ D("span", { className: ["ds-button__text",
|
|
933
|
-
|
|
934
|
-
|
|
943
|
+
children: /* @__PURE__ */ D("span", { className: ["ds-button__text", R].join(" "), children: [
|
|
944
|
+
i,
|
|
945
|
+
a && /* @__PURE__ */ c(
|
|
935
946
|
K,
|
|
936
947
|
{
|
|
937
948
|
className: ["ds-button__icon", x].join(" "),
|
|
938
949
|
fill: f,
|
|
939
|
-
image:
|
|
950
|
+
image: a,
|
|
940
951
|
size: s
|
|
941
952
|
}
|
|
942
953
|
)
|
|
@@ -954,14 +965,16 @@ pt.propTypes = {
|
|
|
954
965
|
iconPosition: o.oneOf(Y.props.iconPosition.options),
|
|
955
966
|
testId: o.string,
|
|
956
967
|
id: o.string,
|
|
957
|
-
fullSize: o.bool
|
|
968
|
+
fullSize: o.bool,
|
|
969
|
+
gtmId: o.string,
|
|
970
|
+
gtmLabel: o.string
|
|
958
971
|
};
|
|
959
972
|
pt.displayName = "DsButton";
|
|
960
973
|
const On = {
|
|
961
974
|
name: "Caption",
|
|
962
975
|
class: "ds-caption"
|
|
963
976
|
}, Hs = ({
|
|
964
|
-
children:
|
|
977
|
+
children: i,
|
|
965
978
|
className: e,
|
|
966
979
|
testId: t = "ds-caption-test"
|
|
967
980
|
}) => /* @__PURE__ */ c(
|
|
@@ -969,7 +982,7 @@ const On = {
|
|
|
969
982
|
{
|
|
970
983
|
className: [On.class, e && e].filter((s) => s).join(" "),
|
|
971
984
|
"data-testid": t,
|
|
972
|
-
children:
|
|
985
|
+
children: i
|
|
973
986
|
}
|
|
974
987
|
);
|
|
975
988
|
Hs.propTypes = {
|
|
@@ -978,7 +991,7 @@ Hs.propTypes = {
|
|
|
978
991
|
testId: o.string
|
|
979
992
|
};
|
|
980
993
|
Hs.displayName = "DsCaption";
|
|
981
|
-
const
|
|
994
|
+
const at = {
|
|
982
995
|
None: "",
|
|
983
996
|
PrimaryDarker: "primary-darker",
|
|
984
997
|
PrimaryDark: "primary-dark",
|
|
@@ -1016,19 +1029,19 @@ const it = {
|
|
|
1016
1029
|
Info: "info",
|
|
1017
1030
|
InfoLight: "info-light",
|
|
1018
1031
|
InfoLighter: "info-lighter"
|
|
1019
|
-
},
|
|
1032
|
+
}, ge = {
|
|
1020
1033
|
name: "Card",
|
|
1021
1034
|
class: "ds-card",
|
|
1022
1035
|
props: {
|
|
1023
1036
|
backgroundColor: {
|
|
1024
1037
|
type: String,
|
|
1025
|
-
default:
|
|
1026
|
-
options: Object.values(
|
|
1038
|
+
default: at.None,
|
|
1039
|
+
options: Object.values(at)
|
|
1027
1040
|
},
|
|
1028
1041
|
borderColor: {
|
|
1029
1042
|
type: String,
|
|
1030
|
-
default:
|
|
1031
|
-
options: Object.values(
|
|
1043
|
+
default: at.None,
|
|
1044
|
+
options: Object.values(at)
|
|
1032
1045
|
},
|
|
1033
1046
|
elevation: {
|
|
1034
1047
|
type: Number,
|
|
@@ -1042,30 +1055,42 @@ const it = {
|
|
|
1042
1055
|
testId: {
|
|
1043
1056
|
type: String,
|
|
1044
1057
|
default: "ds-card"
|
|
1058
|
+
},
|
|
1059
|
+
gtmId: {
|
|
1060
|
+
type: String,
|
|
1061
|
+
default: "ds-card"
|
|
1062
|
+
},
|
|
1063
|
+
gtmLabel: {
|
|
1064
|
+
type: String,
|
|
1065
|
+
default: ""
|
|
1045
1066
|
}
|
|
1046
1067
|
}
|
|
1047
1068
|
}, Ws = ({
|
|
1048
|
-
id:
|
|
1049
|
-
testId: e =
|
|
1069
|
+
id: i,
|
|
1070
|
+
testId: e = ge.props.testId.default,
|
|
1050
1071
|
children: t,
|
|
1051
1072
|
className: s,
|
|
1052
|
-
elevation: n =
|
|
1053
|
-
backgroundColor:
|
|
1054
|
-
borderColor: r =
|
|
1073
|
+
elevation: n = ge.props.elevation.default,
|
|
1074
|
+
backgroundColor: a = ge.props.backgroundColor.default,
|
|
1075
|
+
borderColor: r = ge.props.borderColor.default,
|
|
1076
|
+
gtmId: l = ge.props.gtmId.default,
|
|
1077
|
+
gtmLabel: u
|
|
1055
1078
|
}) => {
|
|
1056
|
-
const
|
|
1079
|
+
const d = n && `${ge.class}--elevation-${n}`, h = r && `${ge.class}--border-${r}`, f = a && `${ge.class}--${a}`;
|
|
1057
1080
|
return /* @__PURE__ */ c(
|
|
1058
1081
|
"div",
|
|
1059
1082
|
{
|
|
1060
1083
|
className: [
|
|
1061
|
-
|
|
1084
|
+
ge.class,
|
|
1062
1085
|
s,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
].filter((
|
|
1086
|
+
d,
|
|
1087
|
+
h,
|
|
1088
|
+
f
|
|
1089
|
+
].filter((_) => _).join(" "),
|
|
1090
|
+
"data-gtmid": l,
|
|
1067
1091
|
"data-testid": e,
|
|
1068
|
-
|
|
1092
|
+
...u && { "data-gtmlabel": u },
|
|
1093
|
+
id: i,
|
|
1069
1094
|
children: t
|
|
1070
1095
|
}
|
|
1071
1096
|
);
|
|
@@ -1073,9 +1098,11 @@ const it = {
|
|
|
1073
1098
|
Ws.propTypes = {
|
|
1074
1099
|
id: o.string,
|
|
1075
1100
|
testId: o.string,
|
|
1076
|
-
backgroundColor: o.oneOf(
|
|
1077
|
-
borderColor: o.oneOf(
|
|
1078
|
-
elevation: o.oneOf(
|
|
1101
|
+
backgroundColor: o.oneOf(ge.props.backgroundColor.options),
|
|
1102
|
+
borderColor: o.oneOf(ge.props.borderColor.options),
|
|
1103
|
+
elevation: o.oneOf(ge.props.elevation.options),
|
|
1104
|
+
gtmId: o.string,
|
|
1105
|
+
gtmLabel: o.string
|
|
1079
1106
|
};
|
|
1080
1107
|
Ws.displayName = "DsCard";
|
|
1081
1108
|
const re = {
|
|
@@ -1117,25 +1144,25 @@ const re = {
|
|
|
1117
1144
|
}
|
|
1118
1145
|
}, Ys = be.forwardRef(
|
|
1119
1146
|
({
|
|
1120
|
-
id:
|
|
1147
|
+
id: i,
|
|
1121
1148
|
className: e,
|
|
1122
1149
|
name: t,
|
|
1123
1150
|
testId: s = re.props.testId.default,
|
|
1124
1151
|
label: n = re.props.label.default,
|
|
1125
|
-
description:
|
|
1152
|
+
description: a = re.props.description.default,
|
|
1126
1153
|
checked: r = re.props.checked.default,
|
|
1127
1154
|
disabled: l = re.props.checked.default,
|
|
1128
1155
|
changeByChecked: u = re.props.changeByChecked.default,
|
|
1129
1156
|
onChangeHandler: d
|
|
1130
1157
|
}, h) => {
|
|
1131
|
-
const f = u || !1, _ = r || !1, [v,
|
|
1158
|
+
const f = u || !1, _ = r || !1, [v, S] = j(_), y = {
|
|
1132
1159
|
image: v ? "check_box" : "check_box_outline_blank",
|
|
1133
1160
|
class: v ? `${re.class}__icon--checked` : `${re.class}__icon--unchecked`
|
|
1134
1161
|
}, m = l && `${re.class}--disabled`, F = (P) => {
|
|
1135
|
-
l || (
|
|
1162
|
+
l || (S((A) => !A), d && d(P));
|
|
1136
1163
|
};
|
|
1137
1164
|
return J(() => {
|
|
1138
|
-
f &&
|
|
1165
|
+
f && S(r);
|
|
1139
1166
|
}, [r, f]), /* @__PURE__ */ D(
|
|
1140
1167
|
"label",
|
|
1141
1168
|
{
|
|
@@ -1144,7 +1171,7 @@ const re = {
|
|
|
1144
1171
|
m,
|
|
1145
1172
|
e && e
|
|
1146
1173
|
].join(" "),
|
|
1147
|
-
htmlFor:
|
|
1174
|
+
htmlFor: i || t,
|
|
1148
1175
|
children: [
|
|
1149
1176
|
/* @__PURE__ */ c(
|
|
1150
1177
|
"input",
|
|
@@ -1152,7 +1179,7 @@ const re = {
|
|
|
1152
1179
|
checked: v,
|
|
1153
1180
|
className: `${re.class}__input`,
|
|
1154
1181
|
"data-testid": s,
|
|
1155
|
-
id:
|
|
1182
|
+
id: i || t,
|
|
1156
1183
|
name: t,
|
|
1157
1184
|
onChange: F,
|
|
1158
1185
|
ref: h,
|
|
@@ -1169,21 +1196,21 @@ const re = {
|
|
|
1169
1196
|
testId: `${s}-icon`
|
|
1170
1197
|
}
|
|
1171
1198
|
),
|
|
1172
|
-
(
|
|
1199
|
+
(a || n) && /* @__PURE__ */ D("div", { className: `${re.class}__label`, children: [
|
|
1173
1200
|
n && /* @__PURE__ */ c(
|
|
1174
1201
|
"label",
|
|
1175
1202
|
{
|
|
1176
1203
|
className: `${re.class}__label-title`,
|
|
1177
|
-
htmlFor:
|
|
1204
|
+
htmlFor: i || t,
|
|
1178
1205
|
children: n
|
|
1179
1206
|
}
|
|
1180
1207
|
),
|
|
1181
|
-
|
|
1208
|
+
a && /* @__PURE__ */ c(
|
|
1182
1209
|
"label",
|
|
1183
1210
|
{
|
|
1184
1211
|
className: `${re.class}__label-description`,
|
|
1185
|
-
htmlFor:
|
|
1186
|
-
children:
|
|
1212
|
+
htmlFor: i || t,
|
|
1213
|
+
children: a
|
|
1187
1214
|
}
|
|
1188
1215
|
)
|
|
1189
1216
|
] })
|
|
@@ -1220,7 +1247,7 @@ const ss = {
|
|
|
1220
1247
|
}
|
|
1221
1248
|
}
|
|
1222
1249
|
}, Bt = ({
|
|
1223
|
-
children:
|
|
1250
|
+
children: i,
|
|
1224
1251
|
testId: e = "ds-heading-test",
|
|
1225
1252
|
type: t = Xe.props.type.default,
|
|
1226
1253
|
className: s
|
|
@@ -1232,13 +1259,13 @@ const ss = {
|
|
|
1232
1259
|
"heading-4": "h4",
|
|
1233
1260
|
"heading-5": "h5",
|
|
1234
1261
|
"heading-6": "h6"
|
|
1235
|
-
},
|
|
1262
|
+
}, a = Xe.props.type.options.find((u) => u === t) && `${Xe.class}--${t}`, l = n[t];
|
|
1236
1263
|
return /* @__PURE__ */ c(
|
|
1237
1264
|
l,
|
|
1238
1265
|
{
|
|
1239
|
-
className: [Xe.class,
|
|
1266
|
+
className: [Xe.class, a, s && s].filter((u) => u).join(" "),
|
|
1240
1267
|
"data-testid": e,
|
|
1241
|
-
children:
|
|
1268
|
+
children: i
|
|
1242
1269
|
}
|
|
1243
1270
|
);
|
|
1244
1271
|
};
|
|
@@ -1252,7 +1279,7 @@ const ns = {
|
|
|
1252
1279
|
None: "",
|
|
1253
1280
|
Dashed: "dashed",
|
|
1254
1281
|
Dotted: "dotted"
|
|
1255
|
-
},
|
|
1282
|
+
}, as = {
|
|
1256
1283
|
None: "",
|
|
1257
1284
|
Small: "small",
|
|
1258
1285
|
Large: "large"
|
|
@@ -1267,20 +1294,20 @@ const ns = {
|
|
|
1267
1294
|
},
|
|
1268
1295
|
size: {
|
|
1269
1296
|
type: String,
|
|
1270
|
-
default:
|
|
1271
|
-
options: Object.values(
|
|
1297
|
+
default: as.None,
|
|
1298
|
+
options: Object.values(as)
|
|
1272
1299
|
}
|
|
1273
1300
|
}
|
|
1274
1301
|
};
|
|
1275
|
-
function
|
|
1276
|
-
const s = t.props[
|
|
1302
|
+
function is(i, e, t) {
|
|
1303
|
+
const s = t.props[i];
|
|
1277
1304
|
return s.options && s.options.some((n) => n === e) ? `${t.class}--${e}` : "";
|
|
1278
1305
|
}
|
|
1279
1306
|
const Gs = ({
|
|
1280
|
-
size:
|
|
1307
|
+
size: i = qe.props.size.default,
|
|
1281
1308
|
borderStyle: e = qe.props.borderStyle.default
|
|
1282
1309
|
}) => {
|
|
1283
|
-
const t =
|
|
1310
|
+
const t = is("size", i, qe), s = is("borderStyle", e, qe);
|
|
1284
1311
|
return /* @__PURE__ */ c(
|
|
1285
1312
|
"hr",
|
|
1286
1313
|
{
|
|
@@ -1293,75 +1320,75 @@ Gs.propTypes = {
|
|
|
1293
1320
|
borderStyle: o.oneOf(qe.props.borderStyle.options)
|
|
1294
1321
|
};
|
|
1295
1322
|
Gs.displayName = "DsHR";
|
|
1296
|
-
function $e(
|
|
1297
|
-
return typeof
|
|
1323
|
+
function $e(i) {
|
|
1324
|
+
return typeof i == "string" || i instanceof String;
|
|
1298
1325
|
}
|
|
1299
|
-
function rs(
|
|
1326
|
+
function rs(i) {
|
|
1300
1327
|
var e;
|
|
1301
|
-
return typeof
|
|
1328
|
+
return typeof i == "object" && i != null && (i == null || (e = i.constructor) == null ? void 0 : e.name) === "Object";
|
|
1302
1329
|
}
|
|
1303
|
-
function Xs(
|
|
1304
|
-
return Array.isArray(e) ? Xs(
|
|
1305
|
-
let [n,
|
|
1306
|
-
return e(
|
|
1330
|
+
function Xs(i, e) {
|
|
1331
|
+
return Array.isArray(e) ? Xs(i, (t, s) => e.includes(s)) : Object.entries(i).reduce((t, s) => {
|
|
1332
|
+
let [n, a] = s;
|
|
1333
|
+
return e(a, n) && (t[n] = a), t;
|
|
1307
1334
|
}, {});
|
|
1308
1335
|
}
|
|
1309
|
-
const
|
|
1336
|
+
const C = {
|
|
1310
1337
|
NONE: "NONE",
|
|
1311
1338
|
LEFT: "LEFT",
|
|
1312
1339
|
FORCE_LEFT: "FORCE_LEFT",
|
|
1313
1340
|
RIGHT: "RIGHT",
|
|
1314
1341
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
1315
1342
|
};
|
|
1316
|
-
function Dn(
|
|
1317
|
-
switch (
|
|
1318
|
-
case
|
|
1319
|
-
return
|
|
1320
|
-
case
|
|
1321
|
-
return
|
|
1343
|
+
function Dn(i) {
|
|
1344
|
+
switch (i) {
|
|
1345
|
+
case C.LEFT:
|
|
1346
|
+
return C.FORCE_LEFT;
|
|
1347
|
+
case C.RIGHT:
|
|
1348
|
+
return C.FORCE_RIGHT;
|
|
1322
1349
|
default:
|
|
1323
|
-
return
|
|
1350
|
+
return i;
|
|
1324
1351
|
}
|
|
1325
1352
|
}
|
|
1326
|
-
function xt(
|
|
1327
|
-
return
|
|
1353
|
+
function xt(i) {
|
|
1354
|
+
return i.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
1328
1355
|
}
|
|
1329
|
-
function ht(
|
|
1330
|
-
if (e ===
|
|
1356
|
+
function ht(i, e) {
|
|
1357
|
+
if (e === i)
|
|
1331
1358
|
return !0;
|
|
1332
|
-
const t = Array.isArray(e), s = Array.isArray(
|
|
1359
|
+
const t = Array.isArray(e), s = Array.isArray(i);
|
|
1333
1360
|
let n;
|
|
1334
1361
|
if (t && s) {
|
|
1335
|
-
if (e.length !=
|
|
1362
|
+
if (e.length != i.length)
|
|
1336
1363
|
return !1;
|
|
1337
1364
|
for (n = 0; n < e.length; n++)
|
|
1338
|
-
if (!ht(e[n],
|
|
1365
|
+
if (!ht(e[n], i[n]))
|
|
1339
1366
|
return !1;
|
|
1340
1367
|
return !0;
|
|
1341
1368
|
}
|
|
1342
1369
|
if (t != s)
|
|
1343
1370
|
return !1;
|
|
1344
|
-
if (e &&
|
|
1345
|
-
const
|
|
1346
|
-
if (
|
|
1347
|
-
return e.getTime() ==
|
|
1348
|
-
if (
|
|
1371
|
+
if (e && i && typeof e == "object" && typeof i == "object") {
|
|
1372
|
+
const a = e instanceof Date, r = i instanceof Date;
|
|
1373
|
+
if (a && r)
|
|
1374
|
+
return e.getTime() == i.getTime();
|
|
1375
|
+
if (a != r)
|
|
1349
1376
|
return !1;
|
|
1350
|
-
const l = e instanceof RegExp, u =
|
|
1377
|
+
const l = e instanceof RegExp, u = i instanceof RegExp;
|
|
1351
1378
|
if (l && u)
|
|
1352
|
-
return e.toString() ==
|
|
1379
|
+
return e.toString() == i.toString();
|
|
1353
1380
|
if (l != u)
|
|
1354
1381
|
return !1;
|
|
1355
1382
|
const d = Object.keys(e);
|
|
1356
1383
|
for (n = 0; n < d.length; n++)
|
|
1357
|
-
if (!Object.prototype.hasOwnProperty.call(
|
|
1384
|
+
if (!Object.prototype.hasOwnProperty.call(i, d[n]))
|
|
1358
1385
|
return !1;
|
|
1359
1386
|
for (n = 0; n < d.length; n++)
|
|
1360
|
-
if (!ht(
|
|
1387
|
+
if (!ht(i[d[n]], e[d[n]]))
|
|
1361
1388
|
return !1;
|
|
1362
1389
|
return !0;
|
|
1363
|
-
} else if (e &&
|
|
1364
|
-
return e.toString() ===
|
|
1390
|
+
} else if (e && i && typeof e == "function" && typeof i == "function")
|
|
1391
|
+
return e.toString() === i.toString();
|
|
1365
1392
|
return !1;
|
|
1366
1393
|
}
|
|
1367
1394
|
class Bn {
|
|
@@ -1407,52 +1434,52 @@ class Bn {
|
|
|
1407
1434
|
}
|
|
1408
1435
|
/** Remove direction */
|
|
1409
1436
|
get removeDirection() {
|
|
1410
|
-
return !this.removedCount || this.insertedCount ?
|
|
1411
|
-
this.oldSelection.end === this.oldSelection.start ?
|
|
1437
|
+
return !this.removedCount || this.insertedCount ? C.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
|
|
1438
|
+
this.oldSelection.end === this.oldSelection.start ? C.RIGHT : C.LEFT;
|
|
1412
1439
|
}
|
|
1413
1440
|
}
|
|
1414
|
-
function O(
|
|
1415
|
-
return new O.InputMask(
|
|
1441
|
+
function O(i, e) {
|
|
1442
|
+
return new O.InputMask(i, e);
|
|
1416
1443
|
}
|
|
1417
|
-
function Ks(
|
|
1418
|
-
if (
|
|
1444
|
+
function Ks(i) {
|
|
1445
|
+
if (i == null)
|
|
1419
1446
|
throw new Error("mask property should be defined");
|
|
1420
|
-
return
|
|
1447
|
+
return i instanceof RegExp ? O.MaskedRegExp : $e(i) ? O.MaskedPattern : i === Date ? O.MaskedDate : i === Number ? O.MaskedNumber : Array.isArray(i) || i === Array ? O.MaskedDynamic : O.Masked && i.prototype instanceof O.Masked ? i : O.Masked && i instanceof O.Masked ? i.constructor : i instanceof Function ? O.MaskedFunction : (console.warn("Mask not found for mask", i), O.Masked);
|
|
1421
1448
|
}
|
|
1422
|
-
function Qe(
|
|
1423
|
-
if (!
|
|
1449
|
+
function Qe(i) {
|
|
1450
|
+
if (!i)
|
|
1424
1451
|
throw new Error("Options in not defined");
|
|
1425
1452
|
if (O.Masked) {
|
|
1426
|
-
if (
|
|
1453
|
+
if (i.prototype instanceof O.Masked)
|
|
1427
1454
|
return {
|
|
1428
|
-
mask:
|
|
1455
|
+
mask: i
|
|
1429
1456
|
};
|
|
1430
1457
|
const {
|
|
1431
1458
|
mask: e = void 0,
|
|
1432
1459
|
...t
|
|
1433
|
-
} =
|
|
1434
|
-
mask:
|
|
1435
|
-
} : rs(
|
|
1460
|
+
} = i instanceof O.Masked ? {
|
|
1461
|
+
mask: i
|
|
1462
|
+
} : rs(i) && i.mask instanceof O.Masked ? i : {};
|
|
1436
1463
|
if (e) {
|
|
1437
1464
|
const s = e.mask;
|
|
1438
1465
|
return {
|
|
1439
|
-
...Xs(e, (n,
|
|
1466
|
+
...Xs(e, (n, a) => !a.startsWith("_")),
|
|
1440
1467
|
mask: e.constructor,
|
|
1441
1468
|
_mask: s,
|
|
1442
1469
|
...t
|
|
1443
1470
|
};
|
|
1444
1471
|
}
|
|
1445
1472
|
}
|
|
1446
|
-
return rs(
|
|
1447
|
-
...
|
|
1473
|
+
return rs(i) ? {
|
|
1474
|
+
...i
|
|
1448
1475
|
} : {
|
|
1449
|
-
mask:
|
|
1476
|
+
mask: i
|
|
1450
1477
|
};
|
|
1451
1478
|
}
|
|
1452
|
-
function Be(
|
|
1453
|
-
if (O.Masked &&
|
|
1454
|
-
return
|
|
1455
|
-
const e = Qe(
|
|
1479
|
+
function Be(i) {
|
|
1480
|
+
if (O.Masked && i instanceof O.Masked)
|
|
1481
|
+
return i;
|
|
1482
|
+
const e = Qe(i), t = Ks(e.mask);
|
|
1456
1483
|
if (!t)
|
|
1457
1484
|
throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
1458
1485
|
return e.mask === t && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new t(e);
|
|
@@ -1582,8 +1609,8 @@ class Zs extends gt {
|
|
|
1582
1609
|
return;
|
|
1583
1610
|
const s = this.rootElement.createRange();
|
|
1584
1611
|
s.setStart(this.input.firstChild || this.input, e), s.setEnd(this.input.lastChild || this.input, t);
|
|
1585
|
-
const n = this.rootElement,
|
|
1586
|
-
|
|
1612
|
+
const n = this.rootElement, a = n.getSelection && n.getSelection();
|
|
1613
|
+
a && (a.removeAllRanges(), a.addRange(s));
|
|
1587
1614
|
}
|
|
1588
1615
|
/** HTMLElement value */
|
|
1589
1616
|
get value() {
|
|
@@ -1729,8 +1756,8 @@ class Mn {
|
|
|
1729
1756
|
}
|
|
1730
1757
|
/** Syncronizes view from model value, fires change events */
|
|
1731
1758
|
updateControl(e) {
|
|
1732
|
-
const t = this.masked.unmaskedValue, s = this.masked.value, n = this.masked.rawInputValue,
|
|
1733
|
-
this._unmaskedValue = t, this._value = s, this._rawInputValue = n, this.el.value !==
|
|
1759
|
+
const t = this.masked.unmaskedValue, s = this.masked.value, n = this.masked.rawInputValue, a = this.displayValue, r = this.unmaskedValue !== t || this.value !== s || this._rawInputValue !== n;
|
|
1760
|
+
this._unmaskedValue = t, this._value = s, this._rawInputValue = n, this.el.value !== a && (this.el.value = a), e === "auto" ? this.alignCursor() : e != null && (this.cursorPos = e), r && this._fireChangeEvents(), !this._historyChanging && (r || this.history.isEmpty) && this.history.push({
|
|
1734
1761
|
unmaskedValue: t,
|
|
1735
1762
|
selection: {
|
|
1736
1763
|
start: this.selectionStart,
|
|
@@ -1743,8 +1770,8 @@ class Mn {
|
|
|
1743
1770
|
const {
|
|
1744
1771
|
mask: t,
|
|
1745
1772
|
...s
|
|
1746
|
-
} = e, n = !this.maskEquals(t),
|
|
1747
|
-
n && (this.mask = t),
|
|
1773
|
+
} = e, n = !this.maskEquals(t), a = this.masked.optionsIsChanged(s);
|
|
1774
|
+
n && (this.mask = t), a && this.masked.updateOptions(s), (n || a) && this.updateControl();
|
|
1748
1775
|
}
|
|
1749
1776
|
/** Updates cursor */
|
|
1750
1777
|
updateCursor(e) {
|
|
@@ -1766,7 +1793,7 @@ class Mn {
|
|
|
1766
1793
|
}
|
|
1767
1794
|
/** Aligns cursor to nearest available position */
|
|
1768
1795
|
alignCursor() {
|
|
1769
|
-
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,
|
|
1796
|
+
this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, C.LEFT));
|
|
1770
1797
|
}
|
|
1771
1798
|
/** Aligns cursor only if selection is empty */
|
|
1772
1799
|
alignCursorFriendly() {
|
|
@@ -1798,9 +1825,9 @@ class Mn {
|
|
|
1798
1825
|
}), s = this.masked.rawInputValue, n = this.masked.splice(t.startChangePos, t.removed.length, t.inserted, t.removeDirection, {
|
|
1799
1826
|
input: !0,
|
|
1800
1827
|
raw: !0
|
|
1801
|
-
}).offset,
|
|
1802
|
-
let r = this.masked.nearestInputPos(t.startChangePos + n,
|
|
1803
|
-
|
|
1828
|
+
}).offset, a = s === this.masked.rawInputValue ? t.removeDirection : C.NONE;
|
|
1829
|
+
let r = this.masked.nearestInputPos(t.startChangePos + n, a);
|
|
1830
|
+
a !== C.NONE && (r = this.masked.nearestInputPos(r, C.NONE)), this.updateControl(r), delete this._inputEvent;
|
|
1804
1831
|
}
|
|
1805
1832
|
/** Handles view change event and commits model value */
|
|
1806
1833
|
_onChange() {
|
|
@@ -1906,7 +1933,7 @@ class we {
|
|
|
1906
1933
|
return this.value = this.value.slice(0, -1), e;
|
|
1907
1934
|
}
|
|
1908
1935
|
}
|
|
1909
|
-
class
|
|
1936
|
+
class ae {
|
|
1910
1937
|
/** */
|
|
1911
1938
|
/** */
|
|
1912
1939
|
/** Transforms value before mask processing */
|
|
@@ -1922,7 +1949,7 @@ class ie {
|
|
|
1922
1949
|
/** */
|
|
1923
1950
|
constructor(e) {
|
|
1924
1951
|
this._value = "", this._update({
|
|
1925
|
-
...
|
|
1952
|
+
...ae.DEFAULTS,
|
|
1926
1953
|
...e
|
|
1927
1954
|
}), this._initialized = !0;
|
|
1928
1955
|
}
|
|
@@ -2024,35 +2051,35 @@ class ie {
|
|
|
2024
2051
|
_appendChar(e, t, s) {
|
|
2025
2052
|
t === void 0 && (t = {});
|
|
2026
2053
|
const n = this.state;
|
|
2027
|
-
let
|
|
2028
|
-
if ([e,
|
|
2054
|
+
let a;
|
|
2055
|
+
if ([e, a] = this.doPrepareChar(e, t), e && (a = a.aggregate(this._appendCharRaw(e, t)), !a.rawInserted && this.autofix === "pad")) {
|
|
2029
2056
|
const r = this.state;
|
|
2030
2057
|
this.state = n;
|
|
2031
2058
|
let l = this.pad(t);
|
|
2032
2059
|
const u = this._appendCharRaw(e, t);
|
|
2033
|
-
l = l.aggregate(u), u.rawInserted || l.equals(
|
|
2060
|
+
l = l.aggregate(u), u.rawInserted || l.equals(a) ? a = l : this.state = r;
|
|
2034
2061
|
}
|
|
2035
|
-
if (
|
|
2062
|
+
if (a.inserted) {
|
|
2036
2063
|
let r, l = this.doValidate(t) !== !1;
|
|
2037
2064
|
if (l && s != null) {
|
|
2038
2065
|
const u = this.state;
|
|
2039
2066
|
if (this.overwrite === !0) {
|
|
2040
2067
|
r = s.state;
|
|
2041
|
-
for (let h = 0; h <
|
|
2042
|
-
s.unshift(this.displayValue.length -
|
|
2068
|
+
for (let h = 0; h < a.rawInserted.length; ++h)
|
|
2069
|
+
s.unshift(this.displayValue.length - a.tailShift);
|
|
2043
2070
|
}
|
|
2044
2071
|
let d = this.appendTail(s);
|
|
2045
2072
|
if (l = d.rawInserted.length === s.toString().length, !(l && d.inserted) && this.overwrite === "shift") {
|
|
2046
2073
|
this.state = u, r = s.state;
|
|
2047
|
-
for (let h = 0; h <
|
|
2074
|
+
for (let h = 0; h < a.rawInserted.length; ++h)
|
|
2048
2075
|
s.shift();
|
|
2049
2076
|
d = this.appendTail(s), l = d.rawInserted.length === s.toString().length;
|
|
2050
2077
|
}
|
|
2051
2078
|
l && d.inserted && (this.state = u);
|
|
2052
2079
|
}
|
|
2053
|
-
l || (
|
|
2080
|
+
l || (a = new $(), this.state = n, s && r && (s.state = r));
|
|
2054
2081
|
}
|
|
2055
|
-
return
|
|
2082
|
+
return a;
|
|
2056
2083
|
}
|
|
2057
2084
|
/** Appends optional placeholder at the end */
|
|
2058
2085
|
_appendPlaceholder() {
|
|
@@ -2068,15 +2095,15 @@ class ie {
|
|
|
2068
2095
|
throw new Error("value should be string");
|
|
2069
2096
|
const n = $e(s) ? new we(String(s)) : s;
|
|
2070
2097
|
t != null && t.tail && (t._beforeTailState = this.state);
|
|
2071
|
-
let
|
|
2072
|
-
[e,
|
|
2098
|
+
let a;
|
|
2099
|
+
[e, a] = this.doPrepare(e, t);
|
|
2073
2100
|
for (let r = 0; r < e.length; ++r) {
|
|
2074
2101
|
const l = this._appendChar(e[r], t, n);
|
|
2075
2102
|
if (!l.rawInserted && !this.doSkipInvalid(e[r], t, n))
|
|
2076
2103
|
break;
|
|
2077
|
-
|
|
2104
|
+
a.aggregate(l);
|
|
2078
2105
|
}
|
|
2079
|
-
return (this.eager === !0 || this.eager === "append") && t != null && t.input && e &&
|
|
2106
|
+
return (this.eager === !0 || this.eager === "append") && t != null && t.input && e && a.aggregate(this._appendEager()), n != null && (a.tailShift += this.appendTail(n).tailShift), a;
|
|
2080
2107
|
}
|
|
2081
2108
|
remove(e, t) {
|
|
2082
2109
|
return e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), this._value = this.displayValue.slice(0, e) + this.displayValue.slice(t), new $();
|
|
@@ -2115,8 +2142,8 @@ class ie {
|
|
|
2115
2142
|
doCommit() {
|
|
2116
2143
|
this.commit && this.commit(this.value, this);
|
|
2117
2144
|
}
|
|
2118
|
-
splice(e, t, s, n,
|
|
2119
|
-
s === void 0 && (s = ""), n === void 0 && (n =
|
|
2145
|
+
splice(e, t, s, n, a) {
|
|
2146
|
+
s === void 0 && (s = ""), n === void 0 && (n = C.NONE), a === void 0 && (a = {
|
|
2120
2147
|
input: !0
|
|
2121
2148
|
});
|
|
2122
2149
|
const r = e + t, l = this.extractTail(r), u = this.eager === !0 || this.eager === "remove";
|
|
@@ -2126,16 +2153,16 @@ class ie {
|
|
|
2126
2153
|
}));
|
|
2127
2154
|
let h = e;
|
|
2128
2155
|
const f = new $();
|
|
2129
|
-
if (n !==
|
|
2130
|
-
if (n ===
|
|
2156
|
+
if (n !== C.NONE && (h = this.nearestInputPos(e, t > 1 && e !== 0 && !u ? C.NONE : n), f.tailShift = h - e), f.aggregate(this.remove(h)), u && n !== C.NONE && d === this.rawInputValue)
|
|
2157
|
+
if (n === C.FORCE_LEFT) {
|
|
2131
2158
|
let _;
|
|
2132
2159
|
for (; d === this.rawInputValue && (_ = this.displayValue.length); )
|
|
2133
2160
|
f.aggregate(new $({
|
|
2134
2161
|
tailShift: -1
|
|
2135
2162
|
})).aggregate(this.remove(_ - 1));
|
|
2136
2163
|
} else
|
|
2137
|
-
n ===
|
|
2138
|
-
return f.aggregate(this.append(s,
|
|
2164
|
+
n === C.FORCE_RIGHT && l.unshift();
|
|
2165
|
+
return f.aggregate(this.append(s, a, l));
|
|
2139
2166
|
}
|
|
2140
2167
|
maskEquals(e) {
|
|
2141
2168
|
return this.mask === e;
|
|
@@ -2145,17 +2172,17 @@ class ie {
|
|
|
2145
2172
|
}
|
|
2146
2173
|
typedValueEquals(e) {
|
|
2147
2174
|
const t = this.typedValue;
|
|
2148
|
-
return e === t ||
|
|
2175
|
+
return e === t || ae.EMPTY_VALUES.includes(e) && ae.EMPTY_VALUES.includes(t) || (this.format ? this.format(e, this) === this.format(this.typedValue, this) : !1);
|
|
2149
2176
|
}
|
|
2150
2177
|
pad(e) {
|
|
2151
2178
|
return new $();
|
|
2152
2179
|
}
|
|
2153
2180
|
}
|
|
2154
|
-
|
|
2181
|
+
ae.DEFAULTS = {
|
|
2155
2182
|
skipInvalid: !0
|
|
2156
2183
|
};
|
|
2157
|
-
|
|
2158
|
-
O.Masked =
|
|
2184
|
+
ae.EMPTY_VALUES = [void 0, null, ""];
|
|
2185
|
+
O.Masked = ae;
|
|
2159
2186
|
class Ue {
|
|
2160
2187
|
/** */
|
|
2161
2188
|
constructor(e, t) {
|
|
@@ -2187,10 +2214,10 @@ class Ue {
|
|
|
2187
2214
|
return new we(this.toString()).appendTo(e);
|
|
2188
2215
|
const t = new $();
|
|
2189
2216
|
for (let s = 0; s < this.chunks.length; ++s) {
|
|
2190
|
-
const n = this.chunks[s],
|
|
2217
|
+
const n = this.chunks[s], a = e._mapPosToBlock(e.displayValue.length), r = n.stop;
|
|
2191
2218
|
let l;
|
|
2192
2219
|
if (r != null && // if block not found or stop is behind lastBlock
|
|
2193
|
-
(!
|
|
2220
|
+
(!a || a.index <= r) && ((n instanceof Ue || // for continuous block also check if stop is exist
|
|
2194
2221
|
e._stops.indexOf(r) >= 0) && t.aggregate(e._appendPlaceholder(r)), l = n instanceof Ue && e._blocks[r]), l) {
|
|
2195
2222
|
const u = l.appendTail(n);
|
|
2196
2223
|
t.aggregate(u);
|
|
@@ -2219,8 +2246,8 @@ class Ue {
|
|
|
2219
2246
|
...s
|
|
2220
2247
|
} = e;
|
|
2221
2248
|
Object.assign(this, s), this.chunks = t.map((n) => {
|
|
2222
|
-
const
|
|
2223
|
-
return
|
|
2249
|
+
const a = "chunks" in n ? new Ue() : new we();
|
|
2250
|
+
return a.state = n, a;
|
|
2224
2251
|
});
|
|
2225
2252
|
}
|
|
2226
2253
|
unshift(e) {
|
|
@@ -2229,15 +2256,15 @@ class Ue {
|
|
|
2229
2256
|
const t = e != null ? e - this.from : e;
|
|
2230
2257
|
let s = 0;
|
|
2231
2258
|
for (; s < this.chunks.length; ) {
|
|
2232
|
-
const n = this.chunks[s],
|
|
2259
|
+
const n = this.chunks[s], a = n.unshift(t);
|
|
2233
2260
|
if (n.toString()) {
|
|
2234
|
-
if (!
|
|
2261
|
+
if (!a)
|
|
2235
2262
|
break;
|
|
2236
2263
|
++s;
|
|
2237
2264
|
} else
|
|
2238
2265
|
this.chunks.splice(s, 1);
|
|
2239
|
-
if (
|
|
2240
|
-
return
|
|
2266
|
+
if (a)
|
|
2267
|
+
return a;
|
|
2241
2268
|
}
|
|
2242
2269
|
return "";
|
|
2243
2270
|
}
|
|
@@ -2322,38 +2349,38 @@ class $n {
|
|
|
2322
2349
|
}
|
|
2323
2350
|
pushLeftBeforeFilled() {
|
|
2324
2351
|
return this._pushLeft(() => {
|
|
2325
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2352
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, C.FORCE_LEFT), this.offset !== 0))
|
|
2326
2353
|
return !0;
|
|
2327
2354
|
});
|
|
2328
2355
|
}
|
|
2329
2356
|
pushLeftBeforeInput() {
|
|
2330
2357
|
return this._pushLeft(() => {
|
|
2331
2358
|
if (!this.block.isFixed)
|
|
2332
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2359
|
+
return this.offset = this.block.nearestInputPos(this.offset, C.LEFT), !0;
|
|
2333
2360
|
});
|
|
2334
2361
|
}
|
|
2335
2362
|
pushLeftBeforeRequired() {
|
|
2336
2363
|
return this._pushLeft(() => {
|
|
2337
2364
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2338
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2365
|
+
return this.offset = this.block.nearestInputPos(this.offset, C.LEFT), !0;
|
|
2339
2366
|
});
|
|
2340
2367
|
}
|
|
2341
2368
|
pushRightBeforeFilled() {
|
|
2342
2369
|
return this._pushRight(() => {
|
|
2343
|
-
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset,
|
|
2370
|
+
if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, C.FORCE_RIGHT), this.offset !== this.block.value.length))
|
|
2344
2371
|
return !0;
|
|
2345
2372
|
});
|
|
2346
2373
|
}
|
|
2347
2374
|
pushRightBeforeInput() {
|
|
2348
2375
|
return this._pushRight(() => {
|
|
2349
2376
|
if (!this.block.isFixed)
|
|
2350
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2377
|
+
return this.offset = this.block.nearestInputPos(this.offset, C.NONE), !0;
|
|
2351
2378
|
});
|
|
2352
2379
|
}
|
|
2353
2380
|
pushRightBeforeRequired() {
|
|
2354
2381
|
return this._pushRight(() => {
|
|
2355
2382
|
if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
|
|
2356
|
-
return this.offset = this.block.nearestInputPos(this.offset,
|
|
2383
|
+
return this.offset = this.block.nearestInputPos(this.offset, C.NONE), !0;
|
|
2357
2384
|
});
|
|
2358
2385
|
}
|
|
2359
2386
|
}
|
|
@@ -2386,15 +2413,15 @@ class Js {
|
|
|
2386
2413
|
return e === void 0 && (e = 0), t === void 0 && (t = this._value.length), this._value = this._value.slice(0, e) + this._value.slice(t), this._value || (this._isRawInput = !1), new $();
|
|
2387
2414
|
}
|
|
2388
2415
|
nearestInputPos(e, t) {
|
|
2389
|
-
t === void 0 && (t =
|
|
2416
|
+
t === void 0 && (t = C.NONE);
|
|
2390
2417
|
const s = 0, n = this._value.length;
|
|
2391
2418
|
switch (t) {
|
|
2392
|
-
case
|
|
2393
|
-
case
|
|
2419
|
+
case C.LEFT:
|
|
2420
|
+
case C.FORCE_LEFT:
|
|
2394
2421
|
return s;
|
|
2395
|
-
case
|
|
2396
|
-
case
|
|
2397
|
-
case
|
|
2422
|
+
case C.NONE:
|
|
2423
|
+
case C.RIGHT:
|
|
2424
|
+
case C.FORCE_RIGHT:
|
|
2398
2425
|
default:
|
|
2399
2426
|
return n;
|
|
2400
2427
|
}
|
|
@@ -2414,11 +2441,11 @@ class Js {
|
|
|
2414
2441
|
_appendChar(e, t) {
|
|
2415
2442
|
if (t === void 0 && (t = {}), this.isFilled)
|
|
2416
2443
|
return new $();
|
|
2417
|
-
const s = this.eager === !0 || this.eager === "append",
|
|
2444
|
+
const s = this.eager === !0 || this.eager === "append", a = this.char === e && (this.isUnmasking || t.input || t.raw) && (!t.raw || !s) && !t.tail, r = new $({
|
|
2418
2445
|
inserted: this.char,
|
|
2419
|
-
rawInserted:
|
|
2446
|
+
rawInserted: a ? this.char : ""
|
|
2420
2447
|
});
|
|
2421
|
-
return this._value = this.char, this._isRawInput =
|
|
2448
|
+
return this._value = this.char, this._isRawInput = a && (t.raw || t.input), r;
|
|
2422
2449
|
}
|
|
2423
2450
|
_appendEager() {
|
|
2424
2451
|
return this._appendChar(this.char, {
|
|
@@ -2468,7 +2495,7 @@ class ft {
|
|
|
2468
2495
|
parent: t,
|
|
2469
2496
|
isOptional: s,
|
|
2470
2497
|
placeholderChar: n,
|
|
2471
|
-
displayChar:
|
|
2498
|
+
displayChar: a,
|
|
2472
2499
|
lazy: r,
|
|
2473
2500
|
eager: l,
|
|
2474
2501
|
...u
|
|
@@ -2477,7 +2504,7 @@ class ft {
|
|
|
2477
2504
|
parent: t,
|
|
2478
2505
|
isOptional: s,
|
|
2479
2506
|
placeholderChar: n,
|
|
2480
|
-
displayChar:
|
|
2507
|
+
displayChar: a,
|
|
2481
2508
|
lazy: r,
|
|
2482
2509
|
eager: l
|
|
2483
2510
|
});
|
|
@@ -2531,18 +2558,18 @@ class ft {
|
|
|
2531
2558
|
return e === void 0 && (e = 0), t === void 0 && (t = this.value.length), this.masked.extractInput(e, t, s);
|
|
2532
2559
|
}
|
|
2533
2560
|
nearestInputPos(e, t) {
|
|
2534
|
-
t === void 0 && (t =
|
|
2535
|
-
const s = 0, n = this.value.length,
|
|
2561
|
+
t === void 0 && (t = C.NONE);
|
|
2562
|
+
const s = 0, n = this.value.length, a = Math.min(Math.max(e, s), n);
|
|
2536
2563
|
switch (t) {
|
|
2537
|
-
case
|
|
2538
|
-
case
|
|
2539
|
-
return this.isComplete ?
|
|
2540
|
-
case
|
|
2541
|
-
case
|
|
2542
|
-
return this.isComplete ?
|
|
2543
|
-
case
|
|
2564
|
+
case C.LEFT:
|
|
2565
|
+
case C.FORCE_LEFT:
|
|
2566
|
+
return this.isComplete ? a : s;
|
|
2567
|
+
case C.RIGHT:
|
|
2568
|
+
case C.FORCE_RIGHT:
|
|
2569
|
+
return this.isComplete ? a : n;
|
|
2570
|
+
case C.NONE:
|
|
2544
2571
|
default:
|
|
2545
|
-
return
|
|
2572
|
+
return a;
|
|
2546
2573
|
}
|
|
2547
2574
|
}
|
|
2548
2575
|
totalInputPositions(e, t) {
|
|
@@ -2582,7 +2609,7 @@ ft.DEFAULT_DEFINITIONS = {
|
|
|
2582
2609
|
// http://stackoverflow.com/a/22075070
|
|
2583
2610
|
"*": /./
|
|
2584
2611
|
};
|
|
2585
|
-
class Vn extends
|
|
2612
|
+
class Vn extends ae {
|
|
2586
2613
|
/** */
|
|
2587
2614
|
/** Enable characters overwriting */
|
|
2588
2615
|
/** */
|
|
@@ -2597,7 +2624,7 @@ class Vn extends ie {
|
|
|
2597
2624
|
}
|
|
2598
2625
|
}
|
|
2599
2626
|
O.MaskedRegExp = Vn;
|
|
2600
|
-
class
|
|
2627
|
+
class ie extends ae {
|
|
2601
2628
|
/** */
|
|
2602
2629
|
/** */
|
|
2603
2630
|
/** Single char for empty input */
|
|
@@ -2609,7 +2636,7 @@ class ae extends ie {
|
|
|
2609
2636
|
/** */
|
|
2610
2637
|
constructor(e) {
|
|
2611
2638
|
super({
|
|
2612
|
-
...
|
|
2639
|
+
...ie.DEFAULTS,
|
|
2613
2640
|
...e,
|
|
2614
2641
|
definitions: Object.assign({}, ft.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
|
|
2615
2642
|
});
|
|
@@ -2627,16 +2654,16 @@ class ae extends ie {
|
|
|
2627
2654
|
if (!t || !e)
|
|
2628
2655
|
return;
|
|
2629
2656
|
let s = !1, n = !1;
|
|
2630
|
-
for (let
|
|
2657
|
+
for (let a = 0; a < t.length; ++a) {
|
|
2631
2658
|
if (this.blocks) {
|
|
2632
|
-
const d = t.slice(
|
|
2659
|
+
const d = t.slice(a), h = Object.keys(this.blocks).filter((_) => d.indexOf(_) === 0);
|
|
2633
2660
|
h.sort((_, v) => v.length - _.length);
|
|
2634
2661
|
const f = h[0];
|
|
2635
2662
|
if (f) {
|
|
2636
2663
|
const {
|
|
2637
2664
|
expose: _,
|
|
2638
2665
|
repeat: v,
|
|
2639
|
-
...
|
|
2666
|
+
...S
|
|
2640
2667
|
} = Qe(this.blocks[f]), y = {
|
|
2641
2668
|
lazy: this.lazy,
|
|
2642
2669
|
eager: this.eager,
|
|
@@ -2644,19 +2671,19 @@ class ae extends ie {
|
|
|
2644
2671
|
displayChar: this.displayChar,
|
|
2645
2672
|
overwrite: this.overwrite,
|
|
2646
2673
|
autofix: this.autofix,
|
|
2647
|
-
...
|
|
2674
|
+
...S,
|
|
2648
2675
|
repeat: v,
|
|
2649
2676
|
parent: this
|
|
2650
2677
|
}, m = v != null ? new O.RepeatBlock(
|
|
2651
2678
|
y
|
|
2652
2679
|
/* TODO */
|
|
2653
2680
|
) : Be(y);
|
|
2654
|
-
m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)),
|
|
2681
|
+
m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), a += f.length - 1;
|
|
2655
2682
|
continue;
|
|
2656
2683
|
}
|
|
2657
2684
|
}
|
|
2658
|
-
let r = t[
|
|
2659
|
-
if (r ===
|
|
2685
|
+
let r = t[a], l = r in e;
|
|
2686
|
+
if (r === ie.STOP_CHAR) {
|
|
2660
2687
|
this._stops.push(this._blocks.length);
|
|
2661
2688
|
continue;
|
|
2662
2689
|
}
|
|
@@ -2668,8 +2695,8 @@ class ae extends ie {
|
|
|
2668
2695
|
n = !n;
|
|
2669
2696
|
continue;
|
|
2670
2697
|
}
|
|
2671
|
-
if (r ===
|
|
2672
|
-
if (++
|
|
2698
|
+
if (r === ie.ESCAPE_CHAR) {
|
|
2699
|
+
if (++a, r = t[a], !r)
|
|
2673
2700
|
break;
|
|
2674
2701
|
l = !1;
|
|
2675
2702
|
}
|
|
@@ -2704,7 +2731,7 @@ class ae extends ie {
|
|
|
2704
2731
|
_blocks: t,
|
|
2705
2732
|
...s
|
|
2706
2733
|
} = e;
|
|
2707
|
-
this._blocks.forEach((n,
|
|
2734
|
+
this._blocks.forEach((n, a) => n.state = t[a]), super.state = s;
|
|
2708
2735
|
}
|
|
2709
2736
|
reset() {
|
|
2710
2737
|
super.reset(), this._blocks.forEach((e) => e.reset());
|
|
@@ -2771,10 +2798,10 @@ class ae extends ie {
|
|
|
2771
2798
|
return t;
|
|
2772
2799
|
this._blocks[s].isFilled && ++s;
|
|
2773
2800
|
for (let n = s; n < this._blocks.length; ++n) {
|
|
2774
|
-
const
|
|
2775
|
-
if (!
|
|
2801
|
+
const a = this._blocks[n]._appendEager();
|
|
2802
|
+
if (!a.inserted)
|
|
2776
2803
|
break;
|
|
2777
|
-
t.aggregate(
|
|
2804
|
+
t.aggregate(a);
|
|
2778
2805
|
}
|
|
2779
2806
|
return t;
|
|
2780
2807
|
}
|
|
@@ -2784,10 +2811,10 @@ class ae extends ie {
|
|
|
2784
2811
|
if (!s)
|
|
2785
2812
|
return n;
|
|
2786
2813
|
for (let r = s.index, l; l = this._blocks[r]; ++r) {
|
|
2787
|
-
var
|
|
2814
|
+
var a;
|
|
2788
2815
|
const u = l._appendChar(e, {
|
|
2789
2816
|
...t,
|
|
2790
|
-
_beforeTailState: (
|
|
2817
|
+
_beforeTailState: (a = t._beforeTailState) == null || (a = a._blocks) == null ? void 0 : a[r]
|
|
2791
2818
|
});
|
|
2792
2819
|
if (n.aggregate(u), u.consumed)
|
|
2793
2820
|
break;
|
|
@@ -2797,17 +2824,17 @@ class ae extends ie {
|
|
|
2797
2824
|
extractTail(e, t) {
|
|
2798
2825
|
e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length);
|
|
2799
2826
|
const s = new Ue();
|
|
2800
|
-
return e === t || this._forEachBlocksInRange(e, t, (n,
|
|
2827
|
+
return e === t || this._forEachBlocksInRange(e, t, (n, a, r, l) => {
|
|
2801
2828
|
const u = n.extractTail(r, l);
|
|
2802
|
-
u.stop = this._findStopBefore(
|
|
2829
|
+
u.stop = this._findStopBefore(a), u.from = this._blockStartPos(a), u instanceof Ue && (u.blockIndex = a), s.extend(u);
|
|
2803
2830
|
}), s;
|
|
2804
2831
|
}
|
|
2805
2832
|
extractInput(e, t, s) {
|
|
2806
2833
|
if (e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), s === void 0 && (s = {}), e === t)
|
|
2807
2834
|
return "";
|
|
2808
2835
|
let n = "";
|
|
2809
|
-
return this._forEachBlocksInRange(e, t, (
|
|
2810
|
-
n +=
|
|
2836
|
+
return this._forEachBlocksInRange(e, t, (a, r, l, u) => {
|
|
2837
|
+
n += a.extractInput(l, u, s);
|
|
2811
2838
|
}), n;
|
|
2812
2839
|
}
|
|
2813
2840
|
_findStopBefore(e) {
|
|
@@ -2829,8 +2856,8 @@ class ae extends ie {
|
|
|
2829
2856
|
const s = this._mapPosToBlock(this.displayValue.length);
|
|
2830
2857
|
if (!s)
|
|
2831
2858
|
return t;
|
|
2832
|
-
const n = s.index,
|
|
2833
|
-
return this._blocks.slice(n,
|
|
2859
|
+
const n = s.index, a = e ?? this._blocks.length;
|
|
2860
|
+
return this._blocks.slice(n, a).forEach((r) => {
|
|
2834
2861
|
if (!r.lazy || e != null) {
|
|
2835
2862
|
var l;
|
|
2836
2863
|
t.aggregate(r._appendPlaceholder((l = r._blocks) == null ? void 0 : l.length));
|
|
@@ -2841,11 +2868,11 @@ class ae extends ie {
|
|
|
2841
2868
|
_mapPosToBlock(e) {
|
|
2842
2869
|
let t = "";
|
|
2843
2870
|
for (let s = 0; s < this._blocks.length; ++s) {
|
|
2844
|
-
const n = this._blocks[s],
|
|
2871
|
+
const n = this._blocks[s], a = t.length;
|
|
2845
2872
|
if (t += n.displayValue, e <= t.length)
|
|
2846
2873
|
return {
|
|
2847
2874
|
index: s,
|
|
2848
|
-
offset: e -
|
|
2875
|
+
offset: e - a
|
|
2849
2876
|
};
|
|
2850
2877
|
}
|
|
2851
2878
|
}
|
|
@@ -2856,46 +2883,46 @@ class ae extends ie {
|
|
|
2856
2883
|
t === void 0 && (t = this.displayValue.length);
|
|
2857
2884
|
const n = this._mapPosToBlock(e);
|
|
2858
2885
|
if (n) {
|
|
2859
|
-
const
|
|
2860
|
-
if (s(this._blocks[n.index], n.index, l, u),
|
|
2861
|
-
for (let d = n.index + 1; d <
|
|
2886
|
+
const a = this._mapPosToBlock(t), r = a && n.index === a.index, l = n.offset, u = a && r ? a.offset : this._blocks[n.index].displayValue.length;
|
|
2887
|
+
if (s(this._blocks[n.index], n.index, l, u), a && !r) {
|
|
2888
|
+
for (let d = n.index + 1; d < a.index; ++d)
|
|
2862
2889
|
s(this._blocks[d], d, 0, this._blocks[d].displayValue.length);
|
|
2863
|
-
s(this._blocks[
|
|
2890
|
+
s(this._blocks[a.index], a.index, 0, a.offset);
|
|
2864
2891
|
}
|
|
2865
2892
|
}
|
|
2866
2893
|
}
|
|
2867
2894
|
remove(e, t) {
|
|
2868
2895
|
e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length);
|
|
2869
2896
|
const s = super.remove(e, t);
|
|
2870
|
-
return this._forEachBlocksInRange(e, t, (n,
|
|
2897
|
+
return this._forEachBlocksInRange(e, t, (n, a, r, l) => {
|
|
2871
2898
|
s.aggregate(n.remove(r, l));
|
|
2872
2899
|
}), s;
|
|
2873
2900
|
}
|
|
2874
2901
|
nearestInputPos(e, t) {
|
|
2875
|
-
if (t === void 0 && (t =
|
|
2902
|
+
if (t === void 0 && (t = C.NONE), !this._blocks.length)
|
|
2876
2903
|
return 0;
|
|
2877
2904
|
const s = new $n(this, e);
|
|
2878
|
-
if (t ===
|
|
2905
|
+
if (t === C.NONE)
|
|
2879
2906
|
return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
|
|
2880
|
-
if (t ===
|
|
2881
|
-
if (t ===
|
|
2907
|
+
if (t === C.LEFT || t === C.FORCE_LEFT) {
|
|
2908
|
+
if (t === C.LEFT) {
|
|
2882
2909
|
if (s.pushRightBeforeFilled(), s.ok && s.pos === e)
|
|
2883
2910
|
return e;
|
|
2884
2911
|
s.popState();
|
|
2885
2912
|
}
|
|
2886
|
-
if (s.pushLeftBeforeInput(), s.pushLeftBeforeRequired(), s.pushLeftBeforeFilled(), t ===
|
|
2913
|
+
if (s.pushLeftBeforeInput(), s.pushLeftBeforeRequired(), s.pushLeftBeforeFilled(), t === C.LEFT) {
|
|
2887
2914
|
if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= e || (s.popState(), s.ok && s.pos <= e))
|
|
2888
2915
|
return s.pos;
|
|
2889
2916
|
s.popState();
|
|
2890
2917
|
}
|
|
2891
|
-
return s.ok ? s.pos : t ===
|
|
2918
|
+
return s.ok ? s.pos : t === C.FORCE_LEFT ? 0 : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : 0);
|
|
2892
2919
|
}
|
|
2893
|
-
return t ===
|
|
2920
|
+
return t === C.RIGHT || t === C.FORCE_RIGHT ? (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.pushRightBeforeFilled() ? s.pos : t === C.FORCE_RIGHT ? this.displayValue.length : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : this.nearestInputPos(e, C.LEFT))) : e;
|
|
2894
2921
|
}
|
|
2895
2922
|
totalInputPositions(e, t) {
|
|
2896
2923
|
e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length);
|
|
2897
2924
|
let s = 0;
|
|
2898
|
-
return this._forEachBlocksInRange(e, t, (n,
|
|
2925
|
+
return this._forEachBlocksInRange(e, t, (n, a, r, l) => {
|
|
2899
2926
|
s += n.totalInputPositions(r, l);
|
|
2900
2927
|
}), s;
|
|
2901
2928
|
}
|
|
@@ -2913,17 +2940,17 @@ class ae extends ie {
|
|
|
2913
2940
|
return this._forEachBlocksInRange(0, this.displayValue.length, (s) => t.aggregate(s.pad(e))), t;
|
|
2914
2941
|
}
|
|
2915
2942
|
}
|
|
2916
|
-
|
|
2917
|
-
...
|
|
2943
|
+
ie.DEFAULTS = {
|
|
2944
|
+
...ae.DEFAULTS,
|
|
2918
2945
|
lazy: !0,
|
|
2919
2946
|
placeholderChar: "_"
|
|
2920
2947
|
};
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
O.MaskedPattern =
|
|
2926
|
-
class ct extends
|
|
2948
|
+
ie.STOP_CHAR = "`";
|
|
2949
|
+
ie.ESCAPE_CHAR = "\\";
|
|
2950
|
+
ie.InputDefinition = ft;
|
|
2951
|
+
ie.FixedDefinition = Js;
|
|
2952
|
+
O.MaskedPattern = ie;
|
|
2953
|
+
class ct extends ie {
|
|
2927
2954
|
/**
|
|
2928
2955
|
Optionally sets max length of pattern.
|
|
2929
2956
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -2944,10 +2971,10 @@ class ct extends ae {
|
|
|
2944
2971
|
to: t = this.to || 0,
|
|
2945
2972
|
from: s = this.from || 0,
|
|
2946
2973
|
maxLength: n = this.maxLength || 0,
|
|
2947
|
-
autofix:
|
|
2974
|
+
autofix: a = this.autofix,
|
|
2948
2975
|
...r
|
|
2949
2976
|
} = e;
|
|
2950
|
-
this.to = t, this.from = s, this.maxLength = Math.max(String(t).length, n), this.autofix =
|
|
2977
|
+
this.to = t, this.from = s, this.maxLength = Math.max(String(t).length, n), this.autofix = a;
|
|
2951
2978
|
const l = String(this.from).padStart(this.maxLength, "0"), u = String(this.to).padStart(this.maxLength, "0");
|
|
2952
2979
|
let d = 0;
|
|
2953
2980
|
for (; d < u.length && u[d] === l[d]; )
|
|
@@ -2959,8 +2986,8 @@ class ct extends ae {
|
|
|
2959
2986
|
}
|
|
2960
2987
|
boundaries(e) {
|
|
2961
2988
|
let t = "", s = "";
|
|
2962
|
-
const [, n,
|
|
2963
|
-
return
|
|
2989
|
+
const [, n, a] = e.match(/^(\D*)(\d*)(\D*)/) || [];
|
|
2990
|
+
return a && (t = "0".repeat(n.length) + a, s = "9".repeat(n.length) + a), t = t.padEnd(this.maxLength, "0"), s = s.padEnd(this.maxLength, "9"), [t, s];
|
|
2964
2991
|
}
|
|
2965
2992
|
doPrepareChar(e, t) {
|
|
2966
2993
|
t === void 0 && (t = {});
|
|
@@ -2970,15 +2997,15 @@ class ct extends ae {
|
|
|
2970
2997
|
_appendCharRaw(e, t) {
|
|
2971
2998
|
if (t === void 0 && (t = {}), !this.autofix || this.value.length + 1 > this.maxLength)
|
|
2972
2999
|
return super._appendCharRaw(e, t);
|
|
2973
|
-
const s = String(this.from).padStart(this.maxLength, "0"), n = String(this.to).padStart(this.maxLength, "0"), [
|
|
2974
|
-
return Number(r) < this.from ? super._appendCharRaw(s[this.value.length], t) : Number(
|
|
3000
|
+
const s = String(this.from).padStart(this.maxLength, "0"), n = String(this.to).padStart(this.maxLength, "0"), [a, r] = this.boundaries(this.value + e);
|
|
3001
|
+
return Number(r) < this.from ? super._appendCharRaw(s[this.value.length], t) : Number(a) > this.to ? !t.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], t).aggregate(this._appendCharRaw(e, t)) : super._appendCharRaw(n[this.value.length], t) : super._appendCharRaw(e, t);
|
|
2975
3002
|
}
|
|
2976
3003
|
doValidate(e) {
|
|
2977
3004
|
const t = this.value;
|
|
2978
3005
|
if (t.search(/[^0]/) === -1 && t.length <= this._matchFrom)
|
|
2979
3006
|
return !0;
|
|
2980
|
-
const [n,
|
|
2981
|
-
return this.from <= Number(
|
|
3007
|
+
const [n, a] = this.boundaries(t);
|
|
3008
|
+
return this.from <= Number(a) && Number(n) <= this.to && super.doValidate(e);
|
|
2982
3009
|
}
|
|
2983
3010
|
pad(e) {
|
|
2984
3011
|
const t = new $();
|
|
@@ -2987,15 +3014,15 @@ class ct extends ae {
|
|
|
2987
3014
|
const s = this.value, n = this.maxLength - this.value.length;
|
|
2988
3015
|
if (n) {
|
|
2989
3016
|
this.reset();
|
|
2990
|
-
for (let
|
|
3017
|
+
for (let a = 0; a < n; ++a)
|
|
2991
3018
|
t.aggregate(super._appendCharRaw("0", e));
|
|
2992
|
-
s.split("").forEach((
|
|
3019
|
+
s.split("").forEach((a) => this._appendCharRaw(a));
|
|
2993
3020
|
}
|
|
2994
3021
|
return t;
|
|
2995
3022
|
}
|
|
2996
3023
|
}
|
|
2997
3024
|
O.MaskedRange = ct;
|
|
2998
|
-
class De extends
|
|
3025
|
+
class De extends ie {
|
|
2999
3026
|
static extractPatternOptions(e) {
|
|
3000
3027
|
const {
|
|
3001
3028
|
mask: t,
|
|
@@ -3026,13 +3053,13 @@ class De extends ae {
|
|
|
3026
3053
|
mask: t,
|
|
3027
3054
|
pattern: s,
|
|
3028
3055
|
blocks: n,
|
|
3029
|
-
...
|
|
3056
|
+
...a
|
|
3030
3057
|
} = {
|
|
3031
3058
|
...De.DEFAULTS,
|
|
3032
3059
|
...e
|
|
3033
3060
|
}, r = Object.assign({}, De.GET_DEFAULT_BLOCKS());
|
|
3034
3061
|
e.min && (r.Y.from = e.min.getFullYear()), e.max && (r.Y.to = e.max.getFullYear()), e.min && e.max && r.Y.from === r.Y.to && (r.m.from = e.min.getMonth() + 1, r.m.to = e.max.getMonth() + 1, r.m.from === r.m.to && (r.d.from = e.min.getDate(), r.d.to = e.max.getDate())), Object.assign(r, this.blocks, n), super._update({
|
|
3035
|
-
...
|
|
3062
|
+
...a,
|
|
3036
3063
|
mask: $e(t) ? t : s,
|
|
3037
3064
|
blocks: r
|
|
3038
3065
|
});
|
|
@@ -3085,22 +3112,22 @@ De.GET_DEFAULT_BLOCKS = () => ({
|
|
|
3085
3112
|
}
|
|
3086
3113
|
});
|
|
3087
3114
|
De.DEFAULTS = {
|
|
3088
|
-
...
|
|
3115
|
+
...ie.DEFAULTS,
|
|
3089
3116
|
mask: Date,
|
|
3090
3117
|
pattern: "d{.}`m{.}`Y",
|
|
3091
|
-
format: (
|
|
3092
|
-
if (!
|
|
3118
|
+
format: (i, e) => {
|
|
3119
|
+
if (!i)
|
|
3093
3120
|
return "";
|
|
3094
|
-
const t = String(
|
|
3121
|
+
const t = String(i.getDate()).padStart(2, "0"), s = String(i.getMonth() + 1).padStart(2, "0"), n = i.getFullYear();
|
|
3095
3122
|
return [t, s, n].join(".");
|
|
3096
3123
|
},
|
|
3097
|
-
parse: (
|
|
3098
|
-
const [t, s, n] =
|
|
3124
|
+
parse: (i, e) => {
|
|
3125
|
+
const [t, s, n] = i.split(".").map(Number);
|
|
3099
3126
|
return new Date(n, s - 1, t);
|
|
3100
3127
|
}
|
|
3101
3128
|
};
|
|
3102
3129
|
O.MaskedDate = De;
|
|
3103
|
-
class yt extends
|
|
3130
|
+
class yt extends ae {
|
|
3104
3131
|
constructor(e) {
|
|
3105
3132
|
super({
|
|
3106
3133
|
...yt.DEFAULTS,
|
|
@@ -3115,13 +3142,13 @@ class yt extends ie {
|
|
|
3115
3142
|
const {
|
|
3116
3143
|
expose: s,
|
|
3117
3144
|
...n
|
|
3118
|
-
} = Qe(t),
|
|
3145
|
+
} = Qe(t), a = Be({
|
|
3119
3146
|
overwrite: this._overwrite,
|
|
3120
3147
|
eager: this._eager,
|
|
3121
3148
|
skipInvalid: this._skipInvalid,
|
|
3122
3149
|
...n
|
|
3123
3150
|
});
|
|
3124
|
-
return s && (this.exposeMask =
|
|
3151
|
+
return s && (this.exposeMask = a), a;
|
|
3125
3152
|
}) : []);
|
|
3126
3153
|
}
|
|
3127
3154
|
_appendCharRaw(e, t) {
|
|
@@ -3131,7 +3158,7 @@ class yt extends ie {
|
|
|
3131
3158
|
}
|
|
3132
3159
|
_applyDispatch(e, t, s) {
|
|
3133
3160
|
e === void 0 && (e = ""), t === void 0 && (t = {}), s === void 0 && (s = "");
|
|
3134
|
-
const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value,
|
|
3161
|
+
const n = t.tail && t._beforeTailState != null ? t._beforeTailState._value : this.value, a = this.rawInputValue, r = t.tail && t._beforeTailState != null ? t._beforeTailState._rawInputValue : a, l = a.slice(r.length), u = this.currentMask, d = new $(), h = u == null ? void 0 : u.state;
|
|
3135
3162
|
return this.currentMask = this.doDispatch(e, {
|
|
3136
3163
|
...t
|
|
3137
3164
|
}, s), this.currentMask && (this.currentMask !== u ? (this.currentMask.reset(), r && (this.currentMask.append(r, {
|
|
@@ -3170,8 +3197,8 @@ class yt extends ie {
|
|
|
3170
3197
|
t === void 0 && (t = {});
|
|
3171
3198
|
let [s, n] = super.doPrepare(e, t);
|
|
3172
3199
|
if (this.currentMask) {
|
|
3173
|
-
let
|
|
3174
|
-
[s,
|
|
3200
|
+
let a;
|
|
3201
|
+
[s, a] = super.doPrepare(s, this.currentMaskFlags(t)), n = n.aggregate(a);
|
|
3175
3202
|
}
|
|
3176
3203
|
return [s, n];
|
|
3177
3204
|
}
|
|
@@ -3179,8 +3206,8 @@ class yt extends ie {
|
|
|
3179
3206
|
t === void 0 && (t = {});
|
|
3180
3207
|
let [s, n] = super.doPrepareChar(e, t);
|
|
3181
3208
|
if (this.currentMask) {
|
|
3182
|
-
let
|
|
3183
|
-
[s,
|
|
3209
|
+
let a;
|
|
3210
|
+
[s, a] = super.doPrepareChar(s, this.currentMaskFlags(t)), n = n.aggregate(a);
|
|
3184
3211
|
}
|
|
3185
3212
|
return [s, n];
|
|
3186
3213
|
}
|
|
@@ -3241,9 +3268,9 @@ class yt extends ie {
|
|
|
3241
3268
|
compiledMasks: t,
|
|
3242
3269
|
currentMaskRef: s,
|
|
3243
3270
|
currentMask: n,
|
|
3244
|
-
...
|
|
3271
|
+
...a
|
|
3245
3272
|
} = e;
|
|
3246
|
-
t && this.compiledMasks.forEach((r, l) => r.state = t[l]), s != null && (this.currentMask = s, this.currentMask.state = n), super.state =
|
|
3273
|
+
t && this.compiledMasks.forEach((r, l) => r.state = t[l]), s != null && (this.currentMask = s, this.currentMask.state = n), super.state = a;
|
|
3247
3274
|
}
|
|
3248
3275
|
extractInput(e, t, s) {
|
|
3249
3276
|
return this.currentMask ? this.currentMask.extractInput(e, t, s) : "";
|
|
@@ -3287,9 +3314,9 @@ class yt extends ie {
|
|
|
3287
3314
|
return;
|
|
3288
3315
|
const {
|
|
3289
3316
|
mask: n,
|
|
3290
|
-
...
|
|
3317
|
+
...a
|
|
3291
3318
|
} = e[s];
|
|
3292
|
-
return ht(t,
|
|
3319
|
+
return ht(t, a) && t.maskEquals(n);
|
|
3293
3320
|
}) : super.maskEquals(e);
|
|
3294
3321
|
}
|
|
3295
3322
|
typedValueEquals(e) {
|
|
@@ -3298,25 +3325,25 @@ class yt extends ie {
|
|
|
3298
3325
|
}
|
|
3299
3326
|
}
|
|
3300
3327
|
yt.DEFAULTS = {
|
|
3301
|
-
...
|
|
3302
|
-
dispatch: (
|
|
3328
|
+
...ae.DEFAULTS,
|
|
3329
|
+
dispatch: (i, e, t, s) => {
|
|
3303
3330
|
if (!e.compiledMasks.length)
|
|
3304
3331
|
return;
|
|
3305
|
-
const n = e.rawInputValue,
|
|
3306
|
-
const u = e.currentMask === r, d = u ? r.displayValue.length : r.nearestInputPos(r.displayValue.length,
|
|
3332
|
+
const n = e.rawInputValue, a = e.compiledMasks.map((r, l) => {
|
|
3333
|
+
const u = e.currentMask === r, d = u ? r.displayValue.length : r.nearestInputPos(r.displayValue.length, C.FORCE_LEFT);
|
|
3307
3334
|
return r.rawInputValue !== n ? (r.reset(), r.append(n, {
|
|
3308
3335
|
raw: !0
|
|
3309
|
-
})) : u || r.remove(d), r.append(
|
|
3336
|
+
})) : u || r.remove(d), r.append(i, e.currentMaskFlags(t)), r.appendTail(s), {
|
|
3310
3337
|
index: l,
|
|
3311
3338
|
weight: r.rawInputValue.length,
|
|
3312
|
-
totalInputPositions: r.totalInputPositions(0, Math.max(d, r.nearestInputPos(r.displayValue.length,
|
|
3339
|
+
totalInputPositions: r.totalInputPositions(0, Math.max(d, r.nearestInputPos(r.displayValue.length, C.FORCE_LEFT)))
|
|
3313
3340
|
};
|
|
3314
3341
|
});
|
|
3315
|
-
return
|
|
3342
|
+
return a.sort((r, l) => l.weight - r.weight || l.totalInputPositions - r.totalInputPositions), e.compiledMasks[a[0].index];
|
|
3316
3343
|
}
|
|
3317
3344
|
};
|
|
3318
3345
|
O.MaskedDynamic = yt;
|
|
3319
|
-
class _t extends
|
|
3346
|
+
class _t extends ie {
|
|
3320
3347
|
constructor(e) {
|
|
3321
3348
|
super({
|
|
3322
3349
|
..._t.DEFAULTS,
|
|
@@ -3332,21 +3359,21 @@ class _t extends ae {
|
|
|
3332
3359
|
...s
|
|
3333
3360
|
} = e;
|
|
3334
3361
|
if (t) {
|
|
3335
|
-
const n = t.map((l) => l.length),
|
|
3336
|
-
s.mask = "*".repeat(
|
|
3362
|
+
const n = t.map((l) => l.length), a = Math.min(...n), r = Math.max(...n) - a;
|
|
3363
|
+
s.mask = "*".repeat(a), r && (s.mask += "[" + "*".repeat(r) + "]"), this.enum = t;
|
|
3337
3364
|
}
|
|
3338
3365
|
super._update(s);
|
|
3339
3366
|
}
|
|
3340
3367
|
_appendCharRaw(e, t) {
|
|
3341
3368
|
t === void 0 && (t = {});
|
|
3342
|
-
const s = Math.min(this.nearestInputPos(0,
|
|
3369
|
+
const s = Math.min(this.nearestInputPos(0, C.FORCE_RIGHT), this.value.length), n = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, s));
|
|
3343
3370
|
if (n.length) {
|
|
3344
3371
|
n.length === 1 && this._forEachBlocksInRange(0, this.value.length, (r, l) => {
|
|
3345
3372
|
const u = n[0][l];
|
|
3346
3373
|
l >= this.value.length || u === r.value || (r.reset(), r._appendChar(u, t));
|
|
3347
3374
|
});
|
|
3348
|
-
const
|
|
3349
|
-
return n.length === 1 && n[0].slice(this.unmaskedValue.length).split("").forEach((r) =>
|
|
3375
|
+
const a = super._appendCharRaw(n[0][this.value.length], t);
|
|
3376
|
+
return n.length === 1 && n[0].slice(this.unmaskedValue.length).split("").forEach((r) => a.aggregate(super._appendCharRaw(r))), a;
|
|
3350
3377
|
}
|
|
3351
3378
|
return new $({
|
|
3352
3379
|
skip: !this.isComplete
|
|
@@ -3358,23 +3385,23 @@ class _t extends ae {
|
|
|
3358
3385
|
remove(e, t) {
|
|
3359
3386
|
if (e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), e === t)
|
|
3360
3387
|
return new $();
|
|
3361
|
-
const s = Math.min(super.nearestInputPos(0,
|
|
3388
|
+
const s = Math.min(super.nearestInputPos(0, C.FORCE_RIGHT), this.value.length);
|
|
3362
3389
|
let n;
|
|
3363
3390
|
for (n = e; n >= 0 && !(this.enum.filter((l) => this.matchValue(l, this.value.slice(s, n), s)).length > 1); --n)
|
|
3364
3391
|
;
|
|
3365
|
-
const
|
|
3366
|
-
return
|
|
3392
|
+
const a = super.remove(n, t);
|
|
3393
|
+
return a.tailShift += n - e, a;
|
|
3367
3394
|
}
|
|
3368
3395
|
get isComplete() {
|
|
3369
3396
|
return this.enum.indexOf(this.value) >= 0;
|
|
3370
3397
|
}
|
|
3371
3398
|
}
|
|
3372
3399
|
_t.DEFAULTS = {
|
|
3373
|
-
...
|
|
3374
|
-
matchValue: (
|
|
3400
|
+
...ie.DEFAULTS,
|
|
3401
|
+
matchValue: (i, e, t) => i.indexOf(e, t) === t
|
|
3375
3402
|
};
|
|
3376
3403
|
O.MaskedEnum = _t;
|
|
3377
|
-
class Ln extends
|
|
3404
|
+
class Ln extends ae {
|
|
3378
3405
|
/** */
|
|
3379
3406
|
/** Enable characters overwriting */
|
|
3380
3407
|
/** */
|
|
@@ -3392,7 +3419,7 @@ class Ln extends ie {
|
|
|
3392
3419
|
}
|
|
3393
3420
|
O.MaskedFunction = Ln;
|
|
3394
3421
|
var Qs;
|
|
3395
|
-
class he extends
|
|
3422
|
+
class he extends ae {
|
|
3396
3423
|
/** Single char */
|
|
3397
3424
|
/** Single char */
|
|
3398
3425
|
/** Array of single chars */
|
|
@@ -3460,20 +3487,20 @@ class he extends ie {
|
|
|
3460
3487
|
t === void 0 && (t = {});
|
|
3461
3488
|
const s = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, n = this._separatorsCountFromSlice(s);
|
|
3462
3489
|
this._value = this._removeThousandsSeparators(this.value);
|
|
3463
|
-
const
|
|
3490
|
+
const a = this._value;
|
|
3464
3491
|
this._value += e;
|
|
3465
3492
|
const r = this.number;
|
|
3466
3493
|
let l = !isNaN(r), u = !1;
|
|
3467
3494
|
if (l) {
|
|
3468
3495
|
let _;
|
|
3469
|
-
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(he.UNMASKED_RADIX, this.radix), u || (u =
|
|
3496
|
+
this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(he.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !t.tail)) : l = !1), l && (l = !!this._value.match(this._numberRegExp));
|
|
3470
3497
|
}
|
|
3471
3498
|
let d;
|
|
3472
3499
|
l ? d = new $({
|
|
3473
|
-
inserted: this._value.slice(
|
|
3500
|
+
inserted: this._value.slice(a.length),
|
|
3474
3501
|
rawInserted: u ? "" : e,
|
|
3475
3502
|
skip: u
|
|
3476
|
-
}) : (this._value =
|
|
3503
|
+
}) : (this._value = a, d = new $()), this._value = this._insertThousandsSeparators(this._value);
|
|
3477
3504
|
const h = t.tail && t._beforeTailState ? t._beforeTailState._value : this._value, f = this._separatorsCountFromSlice(h);
|
|
3478
3505
|
return d.tailShift += (f - n) * this.thousandsSeparator.length, d;
|
|
3479
3506
|
}
|
|
@@ -3493,30 +3520,30 @@ class he extends ie {
|
|
|
3493
3520
|
}
|
|
3494
3521
|
remove(e, t) {
|
|
3495
3522
|
e === void 0 && (e = 0), t === void 0 && (t = this.displayValue.length), [e, t] = this._adjustRangeWithSeparators(e, t);
|
|
3496
|
-
const s = this.value.slice(0, e), n = this.value.slice(t),
|
|
3523
|
+
const s = this.value.slice(0, e), n = this.value.slice(t), a = this._separatorsCount(s.length);
|
|
3497
3524
|
this._value = this._insertThousandsSeparators(this._removeThousandsSeparators(s + n));
|
|
3498
3525
|
const r = this._separatorsCountFromSlice(s);
|
|
3499
3526
|
return new $({
|
|
3500
|
-
tailShift: (r -
|
|
3527
|
+
tailShift: (r - a) * this.thousandsSeparator.length
|
|
3501
3528
|
});
|
|
3502
3529
|
}
|
|
3503
3530
|
nearestInputPos(e, t) {
|
|
3504
3531
|
if (!this.thousandsSeparator)
|
|
3505
3532
|
return e;
|
|
3506
3533
|
switch (t) {
|
|
3507
|
-
case
|
|
3508
|
-
case
|
|
3509
|
-
case
|
|
3534
|
+
case C.NONE:
|
|
3535
|
+
case C.LEFT:
|
|
3536
|
+
case C.FORCE_LEFT: {
|
|
3510
3537
|
const s = this._findSeparatorAround(e - 1);
|
|
3511
3538
|
if (s >= 0) {
|
|
3512
3539
|
const n = s + this.thousandsSeparator.length;
|
|
3513
|
-
if (e < n || this.value.length <= n || t ===
|
|
3540
|
+
if (e < n || this.value.length <= n || t === C.FORCE_LEFT)
|
|
3514
3541
|
return s;
|
|
3515
3542
|
}
|
|
3516
3543
|
break;
|
|
3517
3544
|
}
|
|
3518
|
-
case
|
|
3519
|
-
case
|
|
3545
|
+
case C.RIGHT:
|
|
3546
|
+
case C.FORCE_RIGHT: {
|
|
3520
3547
|
const s = this._findSeparatorAround(e);
|
|
3521
3548
|
if (s >= 0)
|
|
3522
3549
|
return s + this.thousandsSeparator.length;
|
|
@@ -3536,7 +3563,7 @@ class he extends ie {
|
|
|
3536
3563
|
}
|
|
3537
3564
|
_normalizeZeros(e) {
|
|
3538
3565
|
const t = this._removeThousandsSeparators(e).split(this.radix);
|
|
3539
|
-
return t[0] = t[0].replace(/^(\D*)(0*)(\d*)/, (s, n,
|
|
3566
|
+
return t[0] = t[0].replace(/^(\D*)(0*)(\d*)/, (s, n, a, r) => n + r), e.length && !/\d$/.test(t[0]) && (t[0] = t[0] + "0"), t.length > 1 && (t[1] = t[1].replace(/0*$/, ""), t[1].length || (t.length = 1)), this._insertThousandsSeparators(t.join(this.radix));
|
|
3540
3567
|
}
|
|
3541
3568
|
_padFractionalZeros(e) {
|
|
3542
3569
|
if (!e)
|
|
@@ -3580,9 +3607,9 @@ class he extends ie {
|
|
|
3580
3607
|
}
|
|
3581
3608
|
Qs = he;
|
|
3582
3609
|
he.UNMASKED_RADIX = ".";
|
|
3583
|
-
he.EMPTY_VALUES = [...
|
|
3610
|
+
he.EMPTY_VALUES = [...ae.EMPTY_VALUES, 0];
|
|
3584
3611
|
he.DEFAULTS = {
|
|
3585
|
-
...
|
|
3612
|
+
...ae.DEFAULTS,
|
|
3586
3613
|
mask: Number,
|
|
3587
3614
|
radix: ",",
|
|
3588
3615
|
thousandsSeparator: "",
|
|
@@ -3593,7 +3620,7 @@ he.DEFAULTS = {
|
|
|
3593
3620
|
normalizeZeros: !0,
|
|
3594
3621
|
padFractionalZeros: !1,
|
|
3595
3622
|
parse: Number,
|
|
3596
|
-
format: (
|
|
3623
|
+
format: (i) => i.toLocaleString("en-US", {
|
|
3597
3624
|
useGrouping: !1,
|
|
3598
3625
|
maximumFractionDigits: 20
|
|
3599
3626
|
})
|
|
@@ -3604,18 +3631,18 @@ const Ot = {
|
|
|
3604
3631
|
UNMASKED: "unmaskedValue",
|
|
3605
3632
|
TYPED: "typedValue"
|
|
3606
3633
|
};
|
|
3607
|
-
function en(
|
|
3634
|
+
function en(i, e, t) {
|
|
3608
3635
|
e === void 0 && (e = Ot.MASKED), t === void 0 && (t = Ot.MASKED);
|
|
3609
|
-
const s = Be(
|
|
3610
|
-
return (n) => s.runIsolated((
|
|
3636
|
+
const s = Be(i);
|
|
3637
|
+
return (n) => s.runIsolated((a) => (a[e] = n, a[t]));
|
|
3611
3638
|
}
|
|
3612
|
-
function Pn(
|
|
3613
|
-
return en(e, t, s)(
|
|
3639
|
+
function Pn(i, e, t, s) {
|
|
3640
|
+
return en(e, t, s)(i);
|
|
3614
3641
|
}
|
|
3615
3642
|
O.PIPE_TYPE = Ot;
|
|
3616
3643
|
O.createPipe = en;
|
|
3617
3644
|
O.pipe = Pn;
|
|
3618
|
-
class jn extends
|
|
3645
|
+
class jn extends ie {
|
|
3619
3646
|
get repeatFrom() {
|
|
3620
3647
|
var e;
|
|
3621
3648
|
return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
|
|
@@ -3633,12 +3660,12 @@ class jn extends ae {
|
|
|
3633
3660
|
_update(e) {
|
|
3634
3661
|
var t, s, n;
|
|
3635
3662
|
const {
|
|
3636
|
-
repeat:
|
|
3663
|
+
repeat: a,
|
|
3637
3664
|
...r
|
|
3638
3665
|
} = Qe(e);
|
|
3639
3666
|
this._blockOpts = Object.assign({}, this._blockOpts, r);
|
|
3640
3667
|
const l = Be(this._blockOpts);
|
|
3641
|
-
this.repeat = (t = (s =
|
|
3668
|
+
this.repeat = (t = (s = a ?? l.repeat) != null ? s : this.repeat) != null ? t : 1 / 0, super._update({
|
|
3642
3669
|
mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((n = this._blocks) == null ? void 0 : n.length) || 0, this.repeatFrom)),
|
|
3643
3670
|
blocks: {
|
|
3644
3671
|
m: l
|
|
@@ -3661,13 +3688,13 @@ class jn extends ae {
|
|
|
3661
3688
|
t === void 0 && (t = {});
|
|
3662
3689
|
const s = new $();
|
|
3663
3690
|
for (
|
|
3664
|
-
let u = (n = (
|
|
3691
|
+
let u = (n = (a = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : a.index) != null ? n : Math.max(this._blocks.length - 1, 0), d, h;
|
|
3665
3692
|
// try to get a block or
|
|
3666
3693
|
// try to allocate a new block if not allocated already
|
|
3667
3694
|
d = (r = this._blocks[u]) != null ? r : h = !h && this._allocateBlock(u);
|
|
3668
3695
|
++u
|
|
3669
3696
|
) {
|
|
3670
|
-
var n,
|
|
3697
|
+
var n, a, r, l;
|
|
3671
3698
|
const f = d._appendChar(e, {
|
|
3672
3699
|
...t,
|
|
3673
3700
|
_beforeTailState: (l = t._beforeTailState) == null || (l = l._blocks) == null ? void 0 : l[u]
|
|
@@ -3684,11 +3711,11 @@ class jn extends ae {
|
|
|
3684
3711
|
_trimEmptyTail(e, t) {
|
|
3685
3712
|
var s, n;
|
|
3686
3713
|
e === void 0 && (e = 0);
|
|
3687
|
-
const
|
|
3714
|
+
const a = Math.max(((s = this._mapPosToBlock(e)) == null ? void 0 : s.index) || 0, this.repeatFrom, 0);
|
|
3688
3715
|
let r;
|
|
3689
3716
|
t != null && (r = (n = this._mapPosToBlock(t)) == null ? void 0 : n.index), r == null && (r = this._blocks.length - 1);
|
|
3690
3717
|
let l = 0;
|
|
3691
|
-
for (let u = r;
|
|
3718
|
+
for (let u = r; a <= u && !this._blocks[u].unmaskedValue; --u, ++l)
|
|
3692
3719
|
;
|
|
3693
3720
|
l && (this._blocks.splice(r - l + 1, l), this.mask = this.mask.slice(l));
|
|
3694
3721
|
}
|
|
@@ -3762,101 +3789,101 @@ const tn = {
|
|
|
3762
3789
|
inputRef: o.oneOfType([o.func, o.shape({
|
|
3763
3790
|
current: o.object
|
|
3764
3791
|
})])
|
|
3765
|
-
}, sn = Object.keys(tn).filter((
|
|
3766
|
-
function Un(
|
|
3792
|
+
}, sn = Object.keys(tn).filter((i) => i !== "value"), zn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], qn = sn.filter((i) => zn.indexOf(i) < 0);
|
|
3793
|
+
function Un(i) {
|
|
3767
3794
|
var e;
|
|
3768
3795
|
const t = (e = class extends be.Component {
|
|
3769
|
-
constructor(
|
|
3770
|
-
super(
|
|
3796
|
+
constructor(a) {
|
|
3797
|
+
super(a), this._inputRef = this._inputRef.bind(this);
|
|
3771
3798
|
}
|
|
3772
3799
|
componentDidMount() {
|
|
3773
3800
|
this.props.mask && this.initMask();
|
|
3774
3801
|
}
|
|
3775
3802
|
componentDidUpdate() {
|
|
3776
|
-
const
|
|
3803
|
+
const a = this.props, r = this._extractMaskOptionsFromProps(a);
|
|
3777
3804
|
if (r.mask)
|
|
3778
|
-
this.maskRef ? (this.maskRef.updateOptions(r), "value" in
|
|
3779
|
-
else if (this.destroyMask(), "value" in
|
|
3805
|
+
this.maskRef ? (this.maskRef.updateOptions(r), "value" in a && a.value !== void 0 && (this.maskValue = a.value)) : this.initMask(r);
|
|
3806
|
+
else if (this.destroyMask(), "value" in a && a.value !== void 0) {
|
|
3780
3807
|
var l;
|
|
3781
|
-
(l = this.element) != null && l.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent =
|
|
3808
|
+
(l = this.element) != null && l.isContentEditable && this.element.tagName !== "INPUT" && this.element.tagName !== "TEXTAREA" ? this.element.textContent = a.value : this.element.value = a.value;
|
|
3782
3809
|
}
|
|
3783
3810
|
}
|
|
3784
3811
|
componentWillUnmount() {
|
|
3785
3812
|
this.destroyMask();
|
|
3786
3813
|
}
|
|
3787
|
-
_inputRef(
|
|
3788
|
-
this.element =
|
|
3814
|
+
_inputRef(a) {
|
|
3815
|
+
this.element = a, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = a : this.props.inputRef(a));
|
|
3789
3816
|
}
|
|
3790
|
-
initMask(
|
|
3791
|
-
|
|
3817
|
+
initMask(a) {
|
|
3818
|
+
a === void 0 && (a = this._extractMaskOptionsFromProps(this.props)), this.maskRef = O(this.element, a).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
|
|
3792
3819
|
}
|
|
3793
3820
|
destroyMask() {
|
|
3794
3821
|
this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
|
|
3795
3822
|
}
|
|
3796
|
-
_extractMaskOptionsFromProps(
|
|
3823
|
+
_extractMaskOptionsFromProps(a) {
|
|
3797
3824
|
const {
|
|
3798
3825
|
...r
|
|
3799
|
-
} =
|
|
3826
|
+
} = a;
|
|
3800
3827
|
return Object.keys(r).filter((l) => qn.indexOf(l) < 0).forEach((l) => {
|
|
3801
3828
|
delete r[l];
|
|
3802
3829
|
}), r;
|
|
3803
3830
|
}
|
|
3804
|
-
_extractNonMaskProps(
|
|
3831
|
+
_extractNonMaskProps(a) {
|
|
3805
3832
|
const {
|
|
3806
3833
|
...r
|
|
3807
|
-
} =
|
|
3834
|
+
} = a;
|
|
3808
3835
|
return sn.forEach((l) => {
|
|
3809
3836
|
l !== "maxLength" && delete r[l];
|
|
3810
|
-
}), "defaultValue" in r || (r.defaultValue =
|
|
3837
|
+
}), "defaultValue" in r || (r.defaultValue = a.mask ? "" : r.value), delete r.value, r;
|
|
3811
3838
|
}
|
|
3812
3839
|
get maskValue() {
|
|
3813
3840
|
return this.maskRef ? this.props.unmask === "typed" ? this.maskRef.typedValue : this.props.unmask ? this.maskRef.unmaskedValue : this.maskRef.value : "";
|
|
3814
3841
|
}
|
|
3815
|
-
set maskValue(
|
|
3816
|
-
this.maskRef && (
|
|
3842
|
+
set maskValue(a) {
|
|
3843
|
+
this.maskRef && (a = a == null && this.props.unmask !== "typed" ? "" : a, this.props.unmask === "typed" ? this.maskRef.typedValue = a : this.props.unmask ? this.maskRef.unmaskedValue = a : this.maskRef.value = a);
|
|
3817
3844
|
}
|
|
3818
|
-
_onAccept(
|
|
3819
|
-
this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef,
|
|
3845
|
+
_onAccept(a) {
|
|
3846
|
+
this.props.onAccept && this.maskRef && this.props.onAccept(this.maskValue, this.maskRef, a);
|
|
3820
3847
|
}
|
|
3821
|
-
_onComplete(
|
|
3822
|
-
this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef,
|
|
3848
|
+
_onComplete(a) {
|
|
3849
|
+
this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, a);
|
|
3823
3850
|
}
|
|
3824
3851
|
render() {
|
|
3825
|
-
return be.createElement(
|
|
3852
|
+
return be.createElement(i, {
|
|
3826
3853
|
...this._extractNonMaskProps(this.props),
|
|
3827
3854
|
inputRef: this._inputRef
|
|
3828
3855
|
});
|
|
3829
3856
|
}
|
|
3830
|
-
}, e.displayName = void 0, e.propTypes = void 0, e), s =
|
|
3831
|
-
return t.displayName = "IMask(" + s + ")", t.propTypes = tn, be.forwardRef((n,
|
|
3857
|
+
}, e.displayName = void 0, e.propTypes = void 0, e), s = i.displayName || i.name || "Component";
|
|
3858
|
+
return t.displayName = "IMask(" + s + ")", t.propTypes = tn, be.forwardRef((n, a) => be.createElement(t, {
|
|
3832
3859
|
...n,
|
|
3833
|
-
ref:
|
|
3860
|
+
ref: a
|
|
3834
3861
|
}));
|
|
3835
3862
|
}
|
|
3836
|
-
const Hn = Un((
|
|
3863
|
+
const Hn = Un((i) => {
|
|
3837
3864
|
let {
|
|
3838
3865
|
inputRef: e,
|
|
3839
3866
|
...t
|
|
3840
|
-
} =
|
|
3867
|
+
} = i;
|
|
3841
3868
|
return be.createElement("input", {
|
|
3842
3869
|
...t,
|
|
3843
3870
|
ref: e
|
|
3844
3871
|
});
|
|
3845
|
-
}), Wn = (
|
|
3846
|
-
...
|
|
3872
|
+
}), Wn = (i, e) => be.createElement(Hn, {
|
|
3873
|
+
...i,
|
|
3847
3874
|
ref: e
|
|
3848
3875
|
});
|
|
3849
3876
|
be.forwardRef(Wn);
|
|
3850
|
-
function Yn(
|
|
3877
|
+
function Yn(i, e) {
|
|
3851
3878
|
let {
|
|
3852
3879
|
onAccept: t,
|
|
3853
3880
|
onComplete: s,
|
|
3854
3881
|
ref: n = Je(null),
|
|
3855
|
-
defaultValue:
|
|
3882
|
+
defaultValue: a,
|
|
3856
3883
|
defaultUnmaskedValue: r,
|
|
3857
3884
|
defaultTypedValue: l
|
|
3858
3885
|
} = e === void 0 ? {} : e;
|
|
3859
|
-
const u = Je(null), [d, h] = j({}), [f, _] = j(""), [v,
|
|
3886
|
+
const u = Je(null), [d, h] = j({}), [f, _] = j(""), [v, S] = j(""), [y, m] = j(), F = Ae(() => {
|
|
3860
3887
|
var p;
|
|
3861
3888
|
(p = u.current) == null || p.destroy(), u.current = null;
|
|
3862
3889
|
}, []), P = Ae(() => {
|
|
@@ -3865,49 +3892,49 @@ function Yn(a, e) {
|
|
|
3865
3892
|
value: p.value,
|
|
3866
3893
|
unmaskedValue: p.unmaskedValue,
|
|
3867
3894
|
typedValue: p.typedValue
|
|
3868
|
-
}), m(p.typedValue),
|
|
3895
|
+
}), m(p.typedValue), S(p.unmaskedValue), _(p.value));
|
|
3869
3896
|
}, []), A = Ae((p) => {
|
|
3870
|
-
const
|
|
3871
|
-
|
|
3872
|
-
}, [t]),
|
|
3897
|
+
const x = u.current;
|
|
3898
|
+
x && (P(), t == null || t(x.value, x, p));
|
|
3899
|
+
}, [t]), E = Ae((p) => u.current && (s == null ? void 0 : s(u.current.value, u.current, p)), [s]);
|
|
3873
3900
|
return J(() => {
|
|
3874
3901
|
const {
|
|
3875
3902
|
value: p,
|
|
3876
|
-
...
|
|
3903
|
+
...x
|
|
3877
3904
|
} = d, R = u.current;
|
|
3878
|
-
!R || f === void 0 || (p !== f && (R.value = f, R.value !== f && A()), h(
|
|
3905
|
+
!R || f === void 0 || (p !== f && (R.value = f, R.value !== f && A()), h(x));
|
|
3879
3906
|
}, [f]), J(() => {
|
|
3880
3907
|
const {
|
|
3881
3908
|
unmaskedValue: p,
|
|
3882
|
-
...
|
|
3909
|
+
...x
|
|
3883
3910
|
} = d, R = u.current;
|
|
3884
|
-
!R || v === void 0 || (p !== v && (R.unmaskedValue = v, R.unmaskedValue !== v && A()), h(
|
|
3911
|
+
!R || v === void 0 || (p !== v && (R.unmaskedValue = v, R.unmaskedValue !== v && A()), h(x));
|
|
3885
3912
|
}, [v]), J(() => {
|
|
3886
3913
|
const {
|
|
3887
3914
|
typedValue: p,
|
|
3888
|
-
...
|
|
3915
|
+
...x
|
|
3889
3916
|
} = d, R = u.current;
|
|
3890
|
-
!R || y === void 0 || (p !== y && (R.typedValue = y, R.masked.typedValueEquals(y) || A()), h(
|
|
3917
|
+
!R || y === void 0 || (p !== y && (R.typedValue = y, R.masked.typedValueEquals(y) || A()), h(x));
|
|
3891
3918
|
}, [y]), J(() => {
|
|
3892
3919
|
const p = n.current;
|
|
3893
|
-
if (!p || !(
|
|
3920
|
+
if (!p || !(i != null && i.mask))
|
|
3894
3921
|
return F();
|
|
3895
|
-
const
|
|
3896
|
-
|
|
3897
|
-
}, [
|
|
3922
|
+
const x = u.current;
|
|
3923
|
+
x ? x == null || x.updateOptions(i) : p && i != null && i.mask && (u.current = O(p, i), P(), a !== void 0 && _(a), r !== void 0 && S(r), l !== void 0 && m(l));
|
|
3924
|
+
}, [i, F, A]), J(() => {
|
|
3898
3925
|
if (!u.current)
|
|
3899
3926
|
return;
|
|
3900
3927
|
const p = u.current;
|
|
3901
|
-
return p.on("accept", A), p.on("complete",
|
|
3902
|
-
p.off("accept", A), p.off("complete",
|
|
3928
|
+
return p.on("accept", A), p.on("complete", E), () => {
|
|
3929
|
+
p.off("accept", A), p.off("complete", E);
|
|
3903
3930
|
};
|
|
3904
|
-
}, [A,
|
|
3931
|
+
}, [A, E]), J(() => F, [F]), {
|
|
3905
3932
|
ref: n,
|
|
3906
3933
|
maskRef: u,
|
|
3907
3934
|
value: f,
|
|
3908
3935
|
setValue: _,
|
|
3909
3936
|
unmaskedValue: v,
|
|
3910
|
-
setUnmaskedValue:
|
|
3937
|
+
setUnmaskedValue: S,
|
|
3911
3938
|
typedValue: y,
|
|
3912
3939
|
setTypedValue: m
|
|
3913
3940
|
};
|
|
@@ -4068,7 +4095,7 @@ const ls = {
|
|
|
4068
4095
|
},
|
|
4069
4096
|
"phone-br": {
|
|
4070
4097
|
mask: [{ mask: "(00) 0000-0000" }, { mask: "(00) 00000-0000" }],
|
|
4071
|
-
dispatch: (
|
|
4098
|
+
dispatch: (i, e) => (e.value + i).replace(/\D/g, "").length <= 10 ? e.compiledMasks[0] : e.compiledMasks[1]
|
|
4072
4099
|
}
|
|
4073
4100
|
}, fs = {
|
|
4074
4101
|
Top: "top",
|
|
@@ -4103,16 +4130,16 @@ const ls = {
|
|
|
4103
4130
|
}
|
|
4104
4131
|
}
|
|
4105
4132
|
}, We = ({
|
|
4106
|
-
children:
|
|
4133
|
+
children: i,
|
|
4107
4134
|
position: e = Ee.props.position.default,
|
|
4108
4135
|
placement: t = Ee.props.placement.default,
|
|
4109
4136
|
text: s = Ee.props.text.default,
|
|
4110
4137
|
testId: n = Ee.props.testId.default,
|
|
4111
|
-
className:
|
|
4138
|
+
className: a
|
|
4112
4139
|
}) => {
|
|
4113
4140
|
const r = Je(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), v = e && Ee.props.position.options.find(
|
|
4114
4141
|
(F) => F === e
|
|
4115
|
-
) && `${Ee.class}--${e}`,
|
|
4142
|
+
) && `${Ee.class}--${e}`, S = t && Ee.props.placement.options.find(
|
|
4116
4143
|
(F) => F === t
|
|
4117
4144
|
) && `${Ee.class}--${t}`;
|
|
4118
4145
|
let y;
|
|
@@ -4178,18 +4205,18 @@ const ls = {
|
|
|
4178
4205
|
return /* @__PURE__ */ D(
|
|
4179
4206
|
"div",
|
|
4180
4207
|
{
|
|
4181
|
-
className: [Ee.class,
|
|
4208
|
+
className: [Ee.class, a].join(" "),
|
|
4182
4209
|
"data-testid": n,
|
|
4183
4210
|
onMouseEnter: () => _(!0),
|
|
4184
4211
|
onMouseLeave: () => _(!1),
|
|
4185
4212
|
ref: r,
|
|
4186
4213
|
role: "tooltip",
|
|
4187
4214
|
children: [
|
|
4188
|
-
|
|
4215
|
+
i,
|
|
4189
4216
|
f && /* @__PURE__ */ c(
|
|
4190
4217
|
"div",
|
|
4191
4218
|
{
|
|
4192
|
-
className: [v,
|
|
4219
|
+
className: [v, S].filter((F) => F).join(" "),
|
|
4193
4220
|
children: /* @__PURE__ */ c(
|
|
4194
4221
|
"span",
|
|
4195
4222
|
{
|
|
@@ -4214,12 +4241,12 @@ We.propTypes = {
|
|
|
4214
4241
|
We.displayName = "DsTooltip";
|
|
4215
4242
|
const et = be.forwardRef(
|
|
4216
4243
|
({
|
|
4217
|
-
name:
|
|
4244
|
+
name: i,
|
|
4218
4245
|
testId: e = X.props.testId.default,
|
|
4219
4246
|
type: t = X.props.type.default,
|
|
4220
4247
|
animated: s = X.props.animated.default,
|
|
4221
4248
|
size: n = X.props.size.default,
|
|
4222
|
-
label:
|
|
4249
|
+
label: a,
|
|
4223
4250
|
placeholder: r,
|
|
4224
4251
|
value: l,
|
|
4225
4252
|
min: u,
|
|
@@ -4228,25 +4255,25 @@ const et = be.forwardRef(
|
|
|
4228
4255
|
tooltipPosition: f = X.props.tooltipPosition.default,
|
|
4229
4256
|
tooltipPlacement: _ = X.props.tooltipPlacement.default,
|
|
4230
4257
|
icon: v = X.props.icon.default,
|
|
4231
|
-
status:
|
|
4258
|
+
status: S = X.props.status.default,
|
|
4232
4259
|
feedback: y,
|
|
4233
4260
|
hasFeedback: m = X.props.hasFeedback.default,
|
|
4234
4261
|
noMargin: F = X.props.noMargin.default,
|
|
4235
4262
|
disabled: P = X.props.disabled.default,
|
|
4236
4263
|
className: A,
|
|
4237
|
-
mask:
|
|
4264
|
+
mask: E,
|
|
4238
4265
|
onChangeHandler: p = X.props.onChangeHandler.default,
|
|
4239
|
-
onBlurHandler:
|
|
4266
|
+
onBlurHandler: x,
|
|
4240
4267
|
onKeyDownHandler: R,
|
|
4241
|
-
onFocusHandler:
|
|
4268
|
+
onFocusHandler: W
|
|
4242
4269
|
}, I) => {
|
|
4243
|
-
const [se, ce] = j(!1), [de, Fe] = j(!1),
|
|
4244
|
-
if (
|
|
4270
|
+
const [se, ce] = j(!1), [de, Fe] = j(!1), ye = !!p && !!E, Le = (w, z, Q) => {
|
|
4271
|
+
if (ye && Q) {
|
|
4245
4272
|
const k = {
|
|
4246
4273
|
...Q,
|
|
4247
4274
|
target: {
|
|
4248
4275
|
...Q.target,
|
|
4249
|
-
name:
|
|
4276
|
+
name: i,
|
|
4250
4277
|
maskedValue: w,
|
|
4251
4278
|
value: z.unmaskedValue,
|
|
4252
4279
|
type: "text"
|
|
@@ -4254,36 +4281,36 @@ const et = be.forwardRef(
|
|
|
4254
4281
|
};
|
|
4255
4282
|
p(k);
|
|
4256
4283
|
}
|
|
4257
|
-
}, oe =
|
|
4258
|
-
...hs[
|
|
4284
|
+
}, oe = Se(() => typeof E == "object" ? { lazy: !0, ...E } : hs[E] ? {
|
|
4285
|
+
...hs[E],
|
|
4259
4286
|
min: u,
|
|
4260
4287
|
max: d,
|
|
4261
4288
|
lazy: !0
|
|
4262
|
-
} : { mask:
|
|
4289
|
+
} : { mask: E || "", min: u, max: d, lazy: !0 }, [E]), { ref: _e, setUnmaskedValue: Ie } = Yn(
|
|
4263
4290
|
oe,
|
|
4264
4291
|
{
|
|
4265
4292
|
onAccept: Le
|
|
4266
4293
|
}
|
|
4267
4294
|
), Ne = (w) => {
|
|
4268
|
-
p && !
|
|
4295
|
+
p && !ye && p(w);
|
|
4269
4296
|
}, g = (w) => {
|
|
4270
4297
|
R && R(w);
|
|
4271
4298
|
}, b = (w) => {
|
|
4272
|
-
ce(!1),
|
|
4299
|
+
ce(!1), x && x(w);
|
|
4273
4300
|
}, V = (w) => {
|
|
4274
|
-
ce(!0),
|
|
4301
|
+
ce(!0), W && W(w);
|
|
4275
4302
|
}, N = () => {
|
|
4276
4303
|
Fe((w) => !w);
|
|
4277
|
-
}, B =
|
|
4304
|
+
}, B = Se(() => de && t === "password" ? "text" : t, [de, t]), T = () => {
|
|
4278
4305
|
const w = [`${X.class}`];
|
|
4279
|
-
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`), F && w.push(`${X.class}--no-margin`), v && w.push(`${X.class}--with-icon`),
|
|
4280
|
-
}, M =
|
|
4306
|
+
return n && w.push(`${X.class}--${n}`), s && w.push(`${X.class}--animated`), F && w.push(`${X.class}--no-margin`), v && w.push(`${X.class}--with-icon`), S && w.push(`${X.class}--${S}`), A && w.push(A), w.join(" ");
|
|
4307
|
+
}, M = Se(() => {
|
|
4281
4308
|
const w = [`${X.class}__label`];
|
|
4282
4309
|
return (se || l) && w.push(`${X.class}__label--active`), w.join(" ");
|
|
4283
|
-
}, [l, se]), L = () => !s && r ? r : "", q = () =>
|
|
4310
|
+
}, [l, se]), L = () => !s && r ? r : "", q = () => S && S === "error" ? "info" : "check_circle";
|
|
4284
4311
|
return J(() => {
|
|
4285
|
-
|
|
4286
|
-
}, [l,
|
|
4312
|
+
E && Ie(l || "");
|
|
4313
|
+
}, [l, E, Ie]), /* @__PURE__ */ D("div", { className: T(), ref: I, children: [
|
|
4287
4314
|
m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: y && /* @__PURE__ */ D(tt, { children: [
|
|
4288
4315
|
/* @__PURE__ */ c(K, { image: q() }),
|
|
4289
4316
|
y
|
|
@@ -4294,23 +4321,23 @@ const et = be.forwardRef(
|
|
|
4294
4321
|
className: "ds-input__input",
|
|
4295
4322
|
"data-testid": e,
|
|
4296
4323
|
disabled: P,
|
|
4297
|
-
id:
|
|
4324
|
+
id: i,
|
|
4298
4325
|
max: d,
|
|
4299
4326
|
min: u,
|
|
4300
|
-
name:
|
|
4327
|
+
name: i,
|
|
4301
4328
|
onBlur: b,
|
|
4302
4329
|
onChange: Ne,
|
|
4303
4330
|
onFocus: V,
|
|
4304
4331
|
onInput: Ne,
|
|
4305
4332
|
onKeyDown: g,
|
|
4306
4333
|
placeholder: L(),
|
|
4307
|
-
ref:
|
|
4334
|
+
ref: _e,
|
|
4308
4335
|
type: B,
|
|
4309
|
-
...!
|
|
4336
|
+
...!E && { value: l || "" }
|
|
4310
4337
|
}
|
|
4311
4338
|
),
|
|
4312
|
-
/* @__PURE__ */ D("label", { className: M, htmlFor:
|
|
4313
|
-
|
|
4339
|
+
/* @__PURE__ */ D("label", { className: M, htmlFor: i, children: [
|
|
4340
|
+
a,
|
|
4314
4341
|
h && /* @__PURE__ */ c(
|
|
4315
4342
|
We,
|
|
4316
4343
|
{
|
|
@@ -4402,15 +4429,15 @@ const ms = {
|
|
|
4402
4429
|
}
|
|
4403
4430
|
}
|
|
4404
4431
|
}, Nt = ({
|
|
4405
|
-
id:
|
|
4432
|
+
id: i,
|
|
4406
4433
|
testId: e = pe.props.testId.default,
|
|
4407
4434
|
className: t,
|
|
4408
4435
|
size: s = pe.props.size.default,
|
|
4409
4436
|
opacity: n = pe.props.opacity.default,
|
|
4410
|
-
fullscreen:
|
|
4437
|
+
fullscreen: a = pe.props.fullscreen.default,
|
|
4411
4438
|
backgroundColor: r = pe.props.backgroundColor.default
|
|
4412
4439
|
}) => {
|
|
4413
|
-
const l = !
|
|
4440
|
+
const l = !a && `${pe.class}--absolute`, u = s && `${pe.class}__dots--${s}`, d = r && pe.props.backgroundColor.options.find(
|
|
4414
4441
|
(f) => f === r
|
|
4415
4442
|
) && `${pe.class}__background--${r}`, h = n && `${pe.class}__background--opacity`;
|
|
4416
4443
|
return /* @__PURE__ */ D(
|
|
@@ -4418,7 +4445,7 @@ const ms = {
|
|
|
4418
4445
|
{
|
|
4419
4446
|
className: [pe.class, t, l].filter((f) => f).join(" "),
|
|
4420
4447
|
"data-testid": e,
|
|
4421
|
-
id:
|
|
4448
|
+
id: i,
|
|
4422
4449
|
children: [
|
|
4423
4450
|
/* @__PURE__ */ c(
|
|
4424
4451
|
"div",
|
|
@@ -4492,12 +4519,12 @@ const Oe = {
|
|
|
4492
4519
|
}
|
|
4493
4520
|
}
|
|
4494
4521
|
}, nn = ({
|
|
4495
|
-
id:
|
|
4522
|
+
id: i,
|
|
4496
4523
|
label: e,
|
|
4497
4524
|
detail: t,
|
|
4498
4525
|
name: s,
|
|
4499
4526
|
testId: n = s || "ds-option-test",
|
|
4500
|
-
disabled:
|
|
4527
|
+
disabled: a = Oe.props.disabled.default,
|
|
4501
4528
|
value: r,
|
|
4502
4529
|
checked: l = Oe.props.checked.default,
|
|
4503
4530
|
onChangeHandler: u = Oe.props.onChangeHandler.default
|
|
@@ -4505,15 +4532,15 @@ const Oe = {
|
|
|
4505
4532
|
const [d] = j(Math.random());
|
|
4506
4533
|
return /* @__PURE__ */ D("div", { className: (() => {
|
|
4507
4534
|
const f = [Oe.class];
|
|
4508
|
-
return
|
|
4535
|
+
return a && f.push(`${Oe.class}--disabled`), f.join(" ");
|
|
4509
4536
|
})(), children: [
|
|
4510
4537
|
/* @__PURE__ */ c(
|
|
4511
4538
|
"input",
|
|
4512
4539
|
{
|
|
4513
4540
|
checked: l,
|
|
4514
4541
|
"data-testid": n,
|
|
4515
|
-
disabled:
|
|
4516
|
-
id:
|
|
4542
|
+
disabled: a,
|
|
4543
|
+
id: i || String(d),
|
|
4517
4544
|
name: s,
|
|
4518
4545
|
onChange: u,
|
|
4519
4546
|
type: "radio",
|
|
@@ -4533,7 +4560,7 @@ const Oe = {
|
|
|
4533
4560
|
"label",
|
|
4534
4561
|
{
|
|
4535
4562
|
className: `${Oe.class}__label`,
|
|
4536
|
-
htmlFor:
|
|
4563
|
+
htmlFor: i || String(d),
|
|
4537
4564
|
children: e
|
|
4538
4565
|
}
|
|
4539
4566
|
),
|
|
@@ -4541,7 +4568,7 @@ const Oe = {
|
|
|
4541
4568
|
"label",
|
|
4542
4569
|
{
|
|
4543
4570
|
className: `${Oe.class}__detail`,
|
|
4544
|
-
htmlFor:
|
|
4571
|
+
htmlFor: i || String(d),
|
|
4545
4572
|
children: t
|
|
4546
4573
|
}
|
|
4547
4574
|
)
|
|
@@ -4575,7 +4602,7 @@ const _s = {
|
|
|
4575
4602
|
}
|
|
4576
4603
|
}
|
|
4577
4604
|
}, Re = ({
|
|
4578
|
-
children:
|
|
4605
|
+
children: i,
|
|
4579
4606
|
className: e,
|
|
4580
4607
|
testId: t = "ds-paragraph-test",
|
|
4581
4608
|
type: s = dt.props.type.default
|
|
@@ -4584,9 +4611,9 @@ const _s = {
|
|
|
4584
4611
|
return /* @__PURE__ */ c(
|
|
4585
4612
|
"p",
|
|
4586
4613
|
{
|
|
4587
|
-
className: [dt.class, n, e && e].filter((
|
|
4614
|
+
className: [dt.class, n, e && e].filter((a) => a).join(" "),
|
|
4588
4615
|
"data-testid": t,
|
|
4589
|
-
children:
|
|
4616
|
+
children: i
|
|
4590
4617
|
}
|
|
4591
4618
|
);
|
|
4592
4619
|
};
|
|
@@ -4635,14 +4662,14 @@ const vs = {
|
|
|
4635
4662
|
}
|
|
4636
4663
|
}
|
|
4637
4664
|
}, ne = ({
|
|
4638
|
-
children:
|
|
4665
|
+
children: i,
|
|
4639
4666
|
flex: e = Tt.props.flex.default,
|
|
4640
4667
|
className: t = Tt.props.className.default
|
|
4641
4668
|
}) => {
|
|
4642
4669
|
const s = () => [Tt.class, t].join(" "), n = () => ({
|
|
4643
4670
|
flex: e
|
|
4644
4671
|
});
|
|
4645
|
-
return /* @__PURE__ */ c("div", { className: s(), style: n(), children:
|
|
4672
|
+
return /* @__PURE__ */ c("div", { className: s(), style: n(), children: i });
|
|
4646
4673
|
};
|
|
4647
4674
|
ne.propTypes = {
|
|
4648
4675
|
className: o.string,
|
|
@@ -4656,12 +4683,12 @@ const bs = {
|
|
|
4656
4683
|
Center: "center",
|
|
4657
4684
|
SpaceAround: "space-around",
|
|
4658
4685
|
SpaceBetween: "space-between"
|
|
4659
|
-
},
|
|
4686
|
+
}, Ss = {
|
|
4660
4687
|
Stretch: "stretch",
|
|
4661
4688
|
FlexStart: "flex-start",
|
|
4662
4689
|
FlexEnd: "flex-end",
|
|
4663
4690
|
Center: "center"
|
|
4664
|
-
},
|
|
4691
|
+
}, Cs = {
|
|
4665
4692
|
Row: "row",
|
|
4666
4693
|
Column: "column",
|
|
4667
4694
|
RowReverse: "row-reverse",
|
|
@@ -4694,15 +4721,15 @@ const bs = {
|
|
|
4694
4721
|
},
|
|
4695
4722
|
alignItems: {
|
|
4696
4723
|
type: String,
|
|
4697
|
-
default:
|
|
4724
|
+
default: Ss.Stretch,
|
|
4698
4725
|
required: !0,
|
|
4699
|
-
options: Object.values(
|
|
4726
|
+
options: Object.values(Ss)
|
|
4700
4727
|
},
|
|
4701
4728
|
flexDirection: {
|
|
4702
4729
|
type: String,
|
|
4703
|
-
default:
|
|
4730
|
+
default: Cs.Row,
|
|
4704
4731
|
required: !0,
|
|
4705
|
-
options: Object.values(
|
|
4732
|
+
options: Object.values(Cs)
|
|
4706
4733
|
},
|
|
4707
4734
|
flexWrap: {
|
|
4708
4735
|
type: String,
|
|
@@ -4729,12 +4756,12 @@ const bs = {
|
|
|
4729
4756
|
}
|
|
4730
4757
|
}
|
|
4731
4758
|
}, Ve = ({
|
|
4732
|
-
children:
|
|
4759
|
+
children: i,
|
|
4733
4760
|
className: e,
|
|
4734
4761
|
justifyContent: t = Pe.props.justifyContent.default,
|
|
4735
4762
|
alignItems: s = Pe.props.alignItems.default,
|
|
4736
4763
|
flexDirection: n = Pe.props.flexDirection.default,
|
|
4737
|
-
flexWrap:
|
|
4764
|
+
flexWrap: a = Pe.props.flexWrap.default,
|
|
4738
4765
|
width: r = Pe.props.width.default,
|
|
4739
4766
|
height: l,
|
|
4740
4767
|
gap: u
|
|
@@ -4747,12 +4774,12 @@ const bs = {
|
|
|
4747
4774
|
justifyContent: t,
|
|
4748
4775
|
alignItems: s,
|
|
4749
4776
|
flexDirection: n,
|
|
4750
|
-
flexWrap:
|
|
4777
|
+
flexWrap: a,
|
|
4751
4778
|
width: r,
|
|
4752
4779
|
height: l,
|
|
4753
4780
|
gap: u
|
|
4754
4781
|
});
|
|
4755
|
-
return /* @__PURE__ */ c("div", { className: d(), style: h(), children:
|
|
4782
|
+
return /* @__PURE__ */ c("div", { className: d(), style: h(), children: i });
|
|
4756
4783
|
};
|
|
4757
4784
|
Ve.propTypes = {
|
|
4758
4785
|
className: o.string,
|
|
@@ -4765,7 +4792,7 @@ Ve.propTypes = {
|
|
|
4765
4792
|
gap: o.string
|
|
4766
4793
|
};
|
|
4767
4794
|
Ve.displayName = "DsFlexLayout";
|
|
4768
|
-
const
|
|
4795
|
+
const it = {
|
|
4769
4796
|
None: "none",
|
|
4770
4797
|
Quark: "quark",
|
|
4771
4798
|
Nano: "nano",
|
|
@@ -4779,20 +4806,20 @@ const at = {
|
|
|
4779
4806
|
props: {
|
|
4780
4807
|
vertical: {
|
|
4781
4808
|
type: String,
|
|
4782
|
-
default:
|
|
4783
|
-
options: Object.values(
|
|
4809
|
+
default: it.None,
|
|
4810
|
+
options: Object.values(it)
|
|
4784
4811
|
},
|
|
4785
4812
|
horizontal: {
|
|
4786
4813
|
type: String,
|
|
4787
|
-
default:
|
|
4788
|
-
options: Object.values(
|
|
4814
|
+
default: it.None,
|
|
4815
|
+
options: Object.values(it)
|
|
4789
4816
|
}
|
|
4790
4817
|
}
|
|
4791
|
-
},
|
|
4792
|
-
vertical:
|
|
4818
|
+
}, me = ({
|
|
4819
|
+
vertical: i = Ke.props.vertical.default,
|
|
4793
4820
|
horizontal: e = Ke.props.horizontal.default
|
|
4794
4821
|
}) => {
|
|
4795
|
-
const t =
|
|
4822
|
+
const t = i && `ds-spacer__vertical--${i}`, s = e && `ds-spacer__horizontal--${e}`;
|
|
4796
4823
|
return /* @__PURE__ */ c(
|
|
4797
4824
|
"div",
|
|
4798
4825
|
{
|
|
@@ -4801,23 +4828,23 @@ const at = {
|
|
|
4801
4828
|
}
|
|
4802
4829
|
);
|
|
4803
4830
|
};
|
|
4804
|
-
|
|
4831
|
+
me.propTypes = {
|
|
4805
4832
|
vertical: o.oneOf(Ke.props.vertical.options),
|
|
4806
4833
|
horizontal: o.oneOf(Ke.props.horizontal.options)
|
|
4807
4834
|
};
|
|
4808
|
-
|
|
4835
|
+
me.displayName = "DsSpacer";
|
|
4809
4836
|
const an = ({
|
|
4810
|
-
label:
|
|
4837
|
+
label: i,
|
|
4811
4838
|
progress: e = ks.props.progress.default,
|
|
4812
4839
|
color: t = ks.props.color.default
|
|
4813
4840
|
}) => {
|
|
4814
|
-
const s =
|
|
4841
|
+
const s = Se(
|
|
4815
4842
|
() => e > 100 ? 100 : e < 0 ? 0 : e,
|
|
4816
4843
|
[e]
|
|
4817
|
-
), n =
|
|
4844
|
+
), n = Se(
|
|
4818
4845
|
() => `ds-progress__progress--${t}`,
|
|
4819
4846
|
[t]
|
|
4820
|
-
),
|
|
4847
|
+
), a = Se(() => t === "success-dark" ? "color__success--dark" : t === "warning" ? "color__warning--dark" : `color__${t}--default`, [t]);
|
|
4821
4848
|
return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ D(Ve, { flexDirection: "column", children: [
|
|
4822
4849
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
4823
4850
|
"div",
|
|
@@ -4844,8 +4871,8 @@ const an = ({
|
|
|
4844
4871
|
flexDirection: "column",
|
|
4845
4872
|
justifyContent: "center",
|
|
4846
4873
|
children: [
|
|
4847
|
-
/* @__PURE__ */ c(
|
|
4848
|
-
/* @__PURE__ */ c(tt, { children:
|
|
4874
|
+
/* @__PURE__ */ c(me, { vertical: "quark" }),
|
|
4875
|
+
/* @__PURE__ */ c(tt, { children: i && /* @__PURE__ */ c(Re, { className: a, children: i }) })
|
|
4849
4876
|
]
|
|
4850
4877
|
}
|
|
4851
4878
|
) })
|
|
@@ -4948,12 +4975,12 @@ const xs = {
|
|
|
4948
4975
|
}
|
|
4949
4976
|
}, rn = be.forwardRef(
|
|
4950
4977
|
({
|
|
4951
|
-
label:
|
|
4978
|
+
label: i,
|
|
4952
4979
|
className: e,
|
|
4953
4980
|
disabled: t = Z.props.disabled.default,
|
|
4954
4981
|
animated: s = Z.props.animated.default,
|
|
4955
4982
|
multiple: n = Z.props.multiple.default,
|
|
4956
|
-
testId:
|
|
4983
|
+
testId: a = Z.props.testId.default,
|
|
4957
4984
|
name: r,
|
|
4958
4985
|
options: l,
|
|
4959
4986
|
value: u,
|
|
@@ -4962,37 +4989,37 @@ const xs = {
|
|
|
4962
4989
|
onChangeHandler: f,
|
|
4963
4990
|
size: _ = Z.props.size.default,
|
|
4964
4991
|
status: v = Z.props.status.default,
|
|
4965
|
-
tooltip:
|
|
4992
|
+
tooltip: S,
|
|
4966
4993
|
tooltipPosition: y = Z.props.tooltipPosition.default,
|
|
4967
4994
|
tooltipPlacement: m = Z.props.tooltipPlacement.default,
|
|
4968
4995
|
feedback: F,
|
|
4969
4996
|
...P
|
|
4970
4997
|
}, A) => {
|
|
4971
|
-
const [
|
|
4998
|
+
const [E, p] = j(!1), x = (I) => {
|
|
4972
4999
|
p(!1), h && h(I, I.target.value), f && f(I, I.target.value);
|
|
4973
5000
|
}, R = () => {
|
|
4974
5001
|
const I = [Z.class, "select-placeholder"];
|
|
4975
|
-
return I.push(`${Z.class}--${_}`), v && I.push(`${Z.class}--${v}`),
|
|
4976
|
-
},
|
|
5002
|
+
return I.push(`${Z.class}--${_}`), v && I.push(`${Z.class}--${v}`), E && I.push(`${Z.class}--active`), t && I.push(`${Z.class}--disabled`), e && I.push(e), I.join(" ");
|
|
5003
|
+
}, W = Se(() => {
|
|
4977
5004
|
const I = [`${Z.class}__label`];
|
|
4978
|
-
return !s && I.push(`${Z.class}__label--not-animated`), u && I.push(`${Z.class}__label--has-value`), s && !u && !
|
|
5005
|
+
return !s && I.push(`${Z.class}__label--not-animated`), u && I.push(`${Z.class}__label--has-value`), s && !u && !S && I.push(`${Z.class}__label--hidden`), I.join(" ");
|
|
4979
5006
|
}, [u]);
|
|
4980
5007
|
return /* @__PURE__ */ D("div", { className: R(), "data-testid": "ds-select-component", children: [
|
|
4981
|
-
|
|
5008
|
+
i && /* @__PURE__ */ D(
|
|
4982
5009
|
"label",
|
|
4983
5010
|
{
|
|
4984
|
-
className:
|
|
5011
|
+
className: W,
|
|
4985
5012
|
"data-testid": "ds-label-id",
|
|
4986
5013
|
htmlFor: r,
|
|
4987
5014
|
children: [
|
|
4988
|
-
|
|
4989
|
-
|
|
5015
|
+
i,
|
|
5016
|
+
S && /* @__PURE__ */ c(
|
|
4990
5017
|
We,
|
|
4991
5018
|
{
|
|
4992
5019
|
className: `${Z.class}__tooltip`,
|
|
4993
5020
|
placement: m,
|
|
4994
5021
|
position: y,
|
|
4995
|
-
text:
|
|
5022
|
+
text: S,
|
|
4996
5023
|
children: /* @__PURE__ */ c(
|
|
4997
5024
|
K,
|
|
4998
5025
|
{
|
|
@@ -5008,19 +5035,19 @@ const xs = {
|
|
|
5008
5035
|
/* @__PURE__ */ D(
|
|
5009
5036
|
"select",
|
|
5010
5037
|
{
|
|
5011
|
-
"data-testid":
|
|
5038
|
+
"data-testid": a,
|
|
5012
5039
|
disabled: t,
|
|
5013
5040
|
id: r,
|
|
5014
5041
|
multiple: n,
|
|
5015
5042
|
name: r,
|
|
5016
5043
|
onBlur: () => p(!1),
|
|
5017
|
-
onChange: (I) =>
|
|
5044
|
+
onChange: (I) => x(I),
|
|
5018
5045
|
onFocus: () => p(!0),
|
|
5019
5046
|
ref: A,
|
|
5020
5047
|
value: u ?? "",
|
|
5021
5048
|
...P,
|
|
5022
5049
|
children: [
|
|
5023
|
-
(d || s) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ??
|
|
5050
|
+
(d || s) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? i }),
|
|
5024
5051
|
l == null ? void 0 : l.map((I, se) => {
|
|
5025
5052
|
var ce;
|
|
5026
5053
|
return "options" in I ? /* @__PURE__ */ c("optgroup", { label: I.label, children: (ce = I.options) == null ? void 0 : ce.map((de, Fe) => /* @__PURE__ */ c(
|
|
@@ -5092,18 +5119,18 @@ const Fs = {
|
|
|
5092
5119
|
}
|
|
5093
5120
|
}
|
|
5094
5121
|
}, Xn = ({
|
|
5095
|
-
children:
|
|
5122
|
+
children: i,
|
|
5096
5123
|
className: e,
|
|
5097
5124
|
testId: t = "ds-subtitle-test",
|
|
5098
5125
|
type: s
|
|
5099
5126
|
}) => {
|
|
5100
|
-
const n = At.props.type.options.find((
|
|
5127
|
+
const n = At.props.type.options.find((a) => a === s) && `${At.class}--${s}`;
|
|
5101
5128
|
return /* @__PURE__ */ c(
|
|
5102
5129
|
"p",
|
|
5103
5130
|
{
|
|
5104
|
-
className: [At.class, n, e && e].filter((
|
|
5131
|
+
className: [At.class, n, e && e].filter((a) => a).join(" "),
|
|
5105
5132
|
"data-testid": t,
|
|
5106
|
-
children:
|
|
5133
|
+
children: i
|
|
5107
5134
|
}
|
|
5108
5135
|
);
|
|
5109
5136
|
};
|
|
@@ -5213,12 +5240,12 @@ const Is = {
|
|
|
5213
5240
|
}
|
|
5214
5241
|
}, on = be.forwardRef(
|
|
5215
5242
|
({
|
|
5216
|
-
name:
|
|
5243
|
+
name: i,
|
|
5217
5244
|
testId: e = te.props.testId.default,
|
|
5218
5245
|
animated: t = te.props.animated.default,
|
|
5219
5246
|
size: s = te.props.size.default,
|
|
5220
5247
|
label: n,
|
|
5221
|
-
placeholder:
|
|
5248
|
+
placeholder: a,
|
|
5222
5249
|
value: r,
|
|
5223
5250
|
minLength: l,
|
|
5224
5251
|
maxLength: u,
|
|
@@ -5227,39 +5254,39 @@ const Is = {
|
|
|
5227
5254
|
status: f = te.props.status.default,
|
|
5228
5255
|
feedback: _,
|
|
5229
5256
|
disabled: v = te.props.disabled.default,
|
|
5230
|
-
required:
|
|
5257
|
+
required: S,
|
|
5231
5258
|
className: y,
|
|
5232
5259
|
resize: m = te.props.resize.default,
|
|
5233
5260
|
onChangeHandler: F,
|
|
5234
5261
|
onBlurHandler: P,
|
|
5235
5262
|
onKeyDownHandler: A,
|
|
5236
|
-
onFocusHandler:
|
|
5263
|
+
onFocusHandler: E,
|
|
5237
5264
|
rows: p = te.props.rows.default,
|
|
5238
|
-
cols:
|
|
5265
|
+
cols: x,
|
|
5239
5266
|
description: R,
|
|
5240
|
-
style:
|
|
5267
|
+
style: W
|
|
5241
5268
|
}, I) => {
|
|
5242
|
-
const [se, ce] = j(!1), [de, Fe] = j(0), [
|
|
5269
|
+
const [se, ce] = j(!1), [de, Fe] = j(0), [ye, Le] = j(Math.random());
|
|
5243
5270
|
J(() => {
|
|
5244
5271
|
r == null && Le(Math.random());
|
|
5245
5272
|
}, [r]);
|
|
5246
5273
|
const oe = (T) => {
|
|
5247
5274
|
Fe(T.target.value.length), F && F(T);
|
|
5248
|
-
},
|
|
5275
|
+
}, _e = (T) => {
|
|
5249
5276
|
A && A(T);
|
|
5250
5277
|
}, Ie = (T) => {
|
|
5251
5278
|
ce(!1), P && P(T);
|
|
5252
5279
|
}, Ne = (T) => {
|
|
5253
|
-
ce(!0),
|
|
5280
|
+
ce(!0), E && E(T);
|
|
5254
5281
|
}, g = () => {
|
|
5255
5282
|
const T = [`${te.class}`];
|
|
5256
5283
|
return s && T.push(`${te.class}--${s}`), t && T.push(`${te.class}--animated`), d && T.push(`${te.class}--with-icon`), f && T.push(`${te.class}--${f}`), y && T.push(y), T.join(" ");
|
|
5257
|
-
}, b =
|
|
5284
|
+
}, b = Se(() => {
|
|
5258
5285
|
const T = [`${te.class}__label`];
|
|
5259
5286
|
return (se || r) && T.push(`${te.class}__label--active`), T.join(" ");
|
|
5260
|
-
}, [r, se]), V = () => !t &&
|
|
5287
|
+
}, [r, se]), V = () => !t && a ? a : "", N = () => f && f === "error" ? "info" : "check_circle", B = {
|
|
5261
5288
|
resize: m,
|
|
5262
|
-
...
|
|
5289
|
+
...W || {}
|
|
5263
5290
|
};
|
|
5264
5291
|
return /* @__PURE__ */ D("div", { className: g(), children: [
|
|
5265
5292
|
R && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: R }),
|
|
@@ -5271,26 +5298,26 @@ const Is = {
|
|
|
5271
5298
|
"textarea",
|
|
5272
5299
|
{
|
|
5273
5300
|
className: "ds-textarea__textarea",
|
|
5274
|
-
cols:
|
|
5301
|
+
cols: x,
|
|
5275
5302
|
"data-testid": e,
|
|
5276
5303
|
defaultValue: r || "",
|
|
5277
5304
|
disabled: v,
|
|
5278
|
-
id:
|
|
5305
|
+
id: i,
|
|
5279
5306
|
maxLength: u,
|
|
5280
5307
|
minLength: l,
|
|
5281
|
-
name:
|
|
5308
|
+
name: i,
|
|
5282
5309
|
onBlur: Ie,
|
|
5283
5310
|
onChange: oe,
|
|
5284
5311
|
onFocus: Ne,
|
|
5285
|
-
onKeyDown:
|
|
5312
|
+
onKeyDown: _e,
|
|
5286
5313
|
placeholder: V(),
|
|
5287
5314
|
ref: I,
|
|
5288
|
-
required:
|
|
5315
|
+
required: S,
|
|
5289
5316
|
rows: p,
|
|
5290
5317
|
style: B
|
|
5291
5318
|
}
|
|
5292
5319
|
),
|
|
5293
|
-
/* @__PURE__ */ c("label", { className: b, htmlFor:
|
|
5320
|
+
/* @__PURE__ */ c("label", { className: b, htmlFor: i, children: n }),
|
|
5294
5321
|
u && /* @__PURE__ */ D("span", { className: "ds-textarea__count", children: [
|
|
5295
5322
|
de,
|
|
5296
5323
|
"/",
|
|
@@ -5305,7 +5332,7 @@ const Is = {
|
|
|
5305
5332
|
children: /* @__PURE__ */ c(K, { className: "ds-textarea__icon", image: h })
|
|
5306
5333
|
}
|
|
5307
5334
|
)
|
|
5308
|
-
] },
|
|
5335
|
+
] }, ye);
|
|
5309
5336
|
}
|
|
5310
5337
|
);
|
|
5311
5338
|
on.propTypes = {
|
|
@@ -5350,20 +5377,20 @@ const rt = {
|
|
|
5350
5377
|
}
|
|
5351
5378
|
}
|
|
5352
5379
|
}, Mt = ({
|
|
5353
|
-
children:
|
|
5380
|
+
children: i,
|
|
5354
5381
|
fluid: e = rt.props.fluid.default,
|
|
5355
5382
|
className: t,
|
|
5356
5383
|
style: s,
|
|
5357
5384
|
testId: n = rt.props.testId.default
|
|
5358
5385
|
}) => {
|
|
5359
|
-
const
|
|
5386
|
+
const a = e ? `${rt.class}--fluid` : rt.class;
|
|
5360
5387
|
return /* @__PURE__ */ c(
|
|
5361
5388
|
"div",
|
|
5362
5389
|
{
|
|
5363
|
-
className: [
|
|
5390
|
+
className: [a, t].filter((r) => r).join(" "),
|
|
5364
5391
|
"data-testid": n,
|
|
5365
5392
|
style: s,
|
|
5366
|
-
children:
|
|
5393
|
+
children: i
|
|
5367
5394
|
}
|
|
5368
5395
|
);
|
|
5369
5396
|
};
|
|
@@ -5375,8 +5402,8 @@ Mt.propTypes = {
|
|
|
5375
5402
|
testId: o.string
|
|
5376
5403
|
};
|
|
5377
5404
|
Mt.displayName = "DsContainer";
|
|
5378
|
-
const Rs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Kn = ({ children:
|
|
5379
|
-
const { row: t, col: s, mobileRow: n, mobileCol:
|
|
5405
|
+
const Rs = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, Kn = ({ children: i, grid: e }) => {
|
|
5406
|
+
const { row: t, col: s, mobileRow: n, mobileCol: a } = e, [r, l] = j(Rs());
|
|
5380
5407
|
J(() => {
|
|
5381
5408
|
const d = () => {
|
|
5382
5409
|
l(Rs());
|
|
@@ -5384,14 +5411,14 @@ const Rs = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
|
|
|
5384
5411
|
if (typeof window < "u")
|
|
5385
5412
|
return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
|
|
5386
5413
|
}, []);
|
|
5387
|
-
const u =
|
|
5414
|
+
const u = Se(() => r <= 768 ? {
|
|
5388
5415
|
gridRow: n || t,
|
|
5389
|
-
gridColumn:
|
|
5416
|
+
gridColumn: a || s
|
|
5390
5417
|
} : {
|
|
5391
5418
|
gridRow: t,
|
|
5392
5419
|
gridColumn: s
|
|
5393
|
-
}, [r, t, s, n,
|
|
5394
|
-
return /* @__PURE__ */ c("div", { style: u, children:
|
|
5420
|
+
}, [r, t, s, n, a]);
|
|
5421
|
+
return /* @__PURE__ */ c("div", { style: u, children: i });
|
|
5395
5422
|
};
|
|
5396
5423
|
Kn.displayName = "DsGridElement";
|
|
5397
5424
|
const Ns = {
|
|
@@ -5452,14 +5479,14 @@ const Ns = {
|
|
|
5452
5479
|
}
|
|
5453
5480
|
};
|
|
5454
5481
|
function Ms() {
|
|
5455
|
-
const { innerWidth:
|
|
5482
|
+
const { innerWidth: i, innerHeight: e } = window;
|
|
5456
5483
|
return {
|
|
5457
|
-
width:
|
|
5484
|
+
width: i,
|
|
5458
5485
|
height: e
|
|
5459
5486
|
};
|
|
5460
5487
|
}
|
|
5461
5488
|
function Zn() {
|
|
5462
|
-
const [
|
|
5489
|
+
const [i, e] = j(
|
|
5463
5490
|
Ms()
|
|
5464
5491
|
);
|
|
5465
5492
|
return J(() => {
|
|
@@ -5467,28 +5494,28 @@ function Zn() {
|
|
|
5467
5494
|
e(Ms());
|
|
5468
5495
|
}
|
|
5469
5496
|
return window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
5470
|
-
}, []),
|
|
5497
|
+
}, []), i;
|
|
5471
5498
|
}
|
|
5472
5499
|
const ln = ({
|
|
5473
|
-
children:
|
|
5500
|
+
children: i,
|
|
5474
5501
|
rows: e = ee.props.rows.default,
|
|
5475
5502
|
gap: t = ee.props.gap.default,
|
|
5476
5503
|
vGap: s = ee.props.vGap.default,
|
|
5477
5504
|
hGap: n = ee.props.hGap.default,
|
|
5478
|
-
horizontalAlign:
|
|
5505
|
+
horizontalAlign: a = ee.props.horizontalAlign.default,
|
|
5479
5506
|
verticalAlign: r = ee.props.verticalAlign.default,
|
|
5480
5507
|
width: l = ee.props.width.default,
|
|
5481
5508
|
height: u = ee.props.height.default
|
|
5482
5509
|
}) => {
|
|
5483
|
-
const d = s && `${ee.class}__v-gap--${t}`, h = n && `${ee.class}__h-gap--${t}`, f =
|
|
5484
|
-
(A) => A ===
|
|
5485
|
-
) ? `${ee.class}--h-${
|
|
5510
|
+
const d = s && `${ee.class}__v-gap--${t}`, h = n && `${ee.class}__h-gap--${t}`, f = a && ee.props.horizontalAlign.options.find(
|
|
5511
|
+
(A) => A === a
|
|
5512
|
+
) ? `${ee.class}--h-${a}` : null, _ = r && ee.props.verticalAlign.options.find(
|
|
5486
5513
|
(A) => A === r
|
|
5487
|
-
) ? `${ee.class}--v-${r}` : null, { width: v } = Zn(), [
|
|
5514
|
+
) ? `${ee.class}--v-${r}` : null, { width: v } = Zn(), [S, y] = j("auto");
|
|
5488
5515
|
J(() => {
|
|
5489
5516
|
v <= 768 ? y("6") : y("12");
|
|
5490
5517
|
}, [v]);
|
|
5491
|
-
const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((
|
|
5518
|
+
const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((E) => (E = E.trim(), E === "0" || E === "*" || E === "auto" ? "auto" : m(E) ? E + "fr" : E)).join(" "), P = () => `repeat(${S}, minmax(0, 1fr))`;
|
|
5492
5519
|
return /* @__PURE__ */ c(
|
|
5493
5520
|
"div",
|
|
5494
5521
|
{
|
|
@@ -5505,7 +5532,7 @@ const ln = ({
|
|
|
5505
5532
|
gridTemplateColumns: P(),
|
|
5506
5533
|
gridTemplateRows: F()
|
|
5507
5534
|
},
|
|
5508
|
-
children:
|
|
5535
|
+
children: i
|
|
5509
5536
|
}
|
|
5510
5537
|
);
|
|
5511
5538
|
};
|
|
@@ -5533,7 +5560,7 @@ const xe = {
|
|
|
5533
5560
|
Small: "sm",
|
|
5534
5561
|
Medium: "md",
|
|
5535
5562
|
Large: "lg"
|
|
5536
|
-
},
|
|
5563
|
+
}, ve = {
|
|
5537
5564
|
name: "Wrapper",
|
|
5538
5565
|
class: "ds-wrapper",
|
|
5539
5566
|
props: {
|
|
@@ -5564,26 +5591,26 @@ const xe = {
|
|
|
5564
5591
|
}
|
|
5565
5592
|
}
|
|
5566
5593
|
}, Ze = ({
|
|
5567
|
-
children:
|
|
5568
|
-
space: e =
|
|
5569
|
-
top: t =
|
|
5570
|
-
right: s =
|
|
5571
|
-
bottom: n =
|
|
5572
|
-
left:
|
|
5594
|
+
children: i,
|
|
5595
|
+
space: e = ve.props.space.default,
|
|
5596
|
+
top: t = ve.props.top.default,
|
|
5597
|
+
right: s = ve.props.right.default,
|
|
5598
|
+
bottom: n = ve.props.bottom.default,
|
|
5599
|
+
left: a = ve.props.left.default
|
|
5573
5600
|
}) => {
|
|
5574
|
-
const r = t && `${
|
|
5601
|
+
const r = t && `${ve.class}__top--${t}`, l = s && `${ve.class}__right--${s}`, u = n && `${ve.class}__bottom--${n}`, d = a && `${ve.class}__left--${a}`, h = e && `${ve.class}--${e}`;
|
|
5575
5602
|
return /* @__PURE__ */ c(
|
|
5576
5603
|
"div",
|
|
5577
5604
|
{
|
|
5578
5605
|
className: [
|
|
5579
|
-
|
|
5606
|
+
ve.class,
|
|
5580
5607
|
r,
|
|
5581
5608
|
l,
|
|
5582
5609
|
u,
|
|
5583
5610
|
d,
|
|
5584
5611
|
h
|
|
5585
5612
|
].filter((f) => f).join(" "),
|
|
5586
|
-
children:
|
|
5613
|
+
children: i
|
|
5587
5614
|
}
|
|
5588
5615
|
);
|
|
5589
5616
|
};
|
|
@@ -5627,17 +5654,17 @@ const wt = {
|
|
|
5627
5654
|
}
|
|
5628
5655
|
}
|
|
5629
5656
|
}, $t = ({
|
|
5630
|
-
title:
|
|
5657
|
+
title: i,
|
|
5631
5658
|
content: e,
|
|
5632
5659
|
onToggle: t,
|
|
5633
5660
|
active: s = He.props.active.default,
|
|
5634
5661
|
disabled: n = He.props.disabled.default
|
|
5635
5662
|
}) => {
|
|
5636
|
-
const
|
|
5663
|
+
const a = s && `${He.class}--active`;
|
|
5637
5664
|
return /* @__PURE__ */ D(
|
|
5638
5665
|
"li",
|
|
5639
5666
|
{
|
|
5640
|
-
className: [He.class,
|
|
5667
|
+
className: [He.class, a].filter((r) => r).join(" "),
|
|
5641
5668
|
children: [
|
|
5642
5669
|
/* @__PURE__ */ D(
|
|
5643
5670
|
"button",
|
|
@@ -5646,7 +5673,7 @@ const wt = {
|
|
|
5646
5673
|
disabled: n,
|
|
5647
5674
|
onClick: t,
|
|
5648
5675
|
children: [
|
|
5649
|
-
|
|
5676
|
+
i,
|
|
5650
5677
|
/* @__PURE__ */ c(
|
|
5651
5678
|
K,
|
|
5652
5679
|
{
|
|
@@ -5672,31 +5699,31 @@ $t.propTypes = {
|
|
|
5672
5699
|
};
|
|
5673
5700
|
$t.displayName = "DsAccordionItem";
|
|
5674
5701
|
const un = ({
|
|
5675
|
-
items:
|
|
5702
|
+
items: i = wt.props.items.default,
|
|
5676
5703
|
activeItem: e = wt.props.activeItem.default,
|
|
5677
5704
|
onClick: t
|
|
5678
5705
|
}) => {
|
|
5679
5706
|
const [s, n] = j(-1);
|
|
5680
5707
|
J(() => {
|
|
5681
|
-
|
|
5708
|
+
i.map((r, l) => {
|
|
5682
5709
|
r.active && n(l);
|
|
5683
5710
|
});
|
|
5684
|
-
}, [
|
|
5711
|
+
}, [i]), J(() => {
|
|
5685
5712
|
e != null && n(e);
|
|
5686
5713
|
}, [e]);
|
|
5687
|
-
const
|
|
5714
|
+
const a = (r) => {
|
|
5688
5715
|
if (s === r)
|
|
5689
5716
|
return t && t(-1), n(-1);
|
|
5690
5717
|
n(r), t && t(r);
|
|
5691
5718
|
};
|
|
5692
|
-
return /* @__PURE__ */ c("ul", { className: wt.class, children:
|
|
5719
|
+
return /* @__PURE__ */ c("ul", { className: wt.class, children: i.map((r, l) => /* @__PURE__ */ c(
|
|
5693
5720
|
$t,
|
|
5694
5721
|
{
|
|
5695
5722
|
active: s === l,
|
|
5696
5723
|
content: r.content,
|
|
5697
5724
|
disabled: r.disabled,
|
|
5698
5725
|
onToggle: () => {
|
|
5699
|
-
|
|
5726
|
+
a(l);
|
|
5700
5727
|
},
|
|
5701
5728
|
title: r.title
|
|
5702
5729
|
},
|
|
@@ -5709,11 +5736,11 @@ un.propTypes = {
|
|
|
5709
5736
|
};
|
|
5710
5737
|
un.displayName = "DsAccordion";
|
|
5711
5738
|
const Jn = ({
|
|
5712
|
-
title:
|
|
5739
|
+
title: i,
|
|
5713
5740
|
activeTags: e,
|
|
5714
5741
|
handleTagClose: t
|
|
5715
5742
|
}) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ D(tt, { children: [
|
|
5716
|
-
/* @__PURE__ */ c(Re, { className: "active-tags__title", children:
|
|
5743
|
+
/* @__PURE__ */ c(Re, { className: "active-tags__title", children: i }),
|
|
5717
5744
|
/* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((s, n) => /* @__PURE__ */ c(
|
|
5718
5745
|
We,
|
|
5719
5746
|
{
|
|
@@ -5759,19 +5786,19 @@ const Ye = {
|
|
|
5759
5786
|
class: "ds-carousel",
|
|
5760
5787
|
props: {}
|
|
5761
5788
|
}, Qn = ({
|
|
5762
|
-
slides:
|
|
5789
|
+
slides: i,
|
|
5763
5790
|
interval: e = 3e3,
|
|
5764
5791
|
imageHeight: t = 100,
|
|
5765
5792
|
imageWidth: s = 100,
|
|
5766
5793
|
imageMaxHeight: n,
|
|
5767
|
-
imageMaxWidth:
|
|
5794
|
+
imageMaxWidth: a
|
|
5768
5795
|
}) => {
|
|
5769
5796
|
const [r, l] = j(0), [u, d] = j(!1), h = Je(null);
|
|
5770
5797
|
J(() => (u || (h.current = setInterval(() => {
|
|
5771
|
-
l((v) => v ===
|
|
5798
|
+
l((v) => v === i.length - 1 ? 0 : v + 1);
|
|
5772
5799
|
}, e)), () => {
|
|
5773
5800
|
h.current && clearInterval(h.current);
|
|
5774
|
-
}), [u, e,
|
|
5801
|
+
}), [u, e, i.length]);
|
|
5775
5802
|
const f = () => d(!0), _ = () => d(!1);
|
|
5776
5803
|
return /* @__PURE__ */ D(
|
|
5777
5804
|
"div",
|
|
@@ -5789,37 +5816,37 @@ const Ye = {
|
|
|
5789
5816
|
height: t,
|
|
5790
5817
|
width: s,
|
|
5791
5818
|
maxHeight: n,
|
|
5792
|
-
maxWidth:
|
|
5819
|
+
maxWidth: a
|
|
5793
5820
|
},
|
|
5794
|
-
children:
|
|
5821
|
+
children: i.map((v, S) => /* @__PURE__ */ c(
|
|
5795
5822
|
"img",
|
|
5796
5823
|
{
|
|
5797
5824
|
alt: v.title,
|
|
5798
|
-
className: `${Ye.class}__image ${
|
|
5825
|
+
className: `${Ye.class}__image ${S === r ? "active" : "inactive"}`,
|
|
5799
5826
|
height: t,
|
|
5800
5827
|
src: v.image,
|
|
5801
5828
|
style: {
|
|
5802
5829
|
maxHeight: n,
|
|
5803
|
-
maxWidth:
|
|
5830
|
+
maxWidth: a
|
|
5804
5831
|
},
|
|
5805
5832
|
width: s
|
|
5806
5833
|
},
|
|
5807
|
-
|
|
5834
|
+
S
|
|
5808
5835
|
))
|
|
5809
5836
|
}
|
|
5810
5837
|
),
|
|
5811
|
-
/* @__PURE__ */ c(
|
|
5812
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Bt, { className: "color__primary--default", type: "heading-4", children:
|
|
5813
|
-
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Re, { type: "large", children:
|
|
5814
|
-
/* @__PURE__ */ c(
|
|
5815
|
-
/* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children:
|
|
5838
|
+
/* @__PURE__ */ c(me, { vertical: "xxs" }),
|
|
5839
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Bt, { className: "color__primary--default", type: "heading-4", children: i[r].title }) }),
|
|
5840
|
+
/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Re, { type: "large", children: i[r].description }) }),
|
|
5841
|
+
/* @__PURE__ */ c(me, { vertical: "xxs" }),
|
|
5842
|
+
/* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children: i.map((v, S) => /* @__PURE__ */ c(
|
|
5816
5843
|
"button",
|
|
5817
5844
|
{
|
|
5818
|
-
"aria-label": `Go to slide ${
|
|
5819
|
-
className: `dot ${r ===
|
|
5820
|
-
onClick: () => l(
|
|
5845
|
+
"aria-label": `Go to slide ${S + 1}`,
|
|
5846
|
+
className: `dot ${r === S ? "dot--active" : ""}`,
|
|
5847
|
+
onClick: () => l(S)
|
|
5821
5848
|
},
|
|
5822
|
-
|
|
5849
|
+
S
|
|
5823
5850
|
)) }) })
|
|
5824
5851
|
]
|
|
5825
5852
|
}
|
|
@@ -5844,7 +5871,7 @@ const $s = {
|
|
|
5844
5871
|
Small: "small",
|
|
5845
5872
|
Medium: "medium",
|
|
5846
5873
|
Large: "large"
|
|
5847
|
-
},
|
|
5874
|
+
}, G = {
|
|
5848
5875
|
name: "EditableSelect",
|
|
5849
5876
|
class: "ds-editable-select",
|
|
5850
5877
|
props: {
|
|
@@ -5921,39 +5948,39 @@ const $s = {
|
|
|
5921
5948
|
}
|
|
5922
5949
|
}
|
|
5923
5950
|
}
|
|
5924
|
-
},
|
|
5925
|
-
label:
|
|
5926
|
-
name: e =
|
|
5927
|
-
testId: t =
|
|
5928
|
-
value: s =
|
|
5929
|
-
options: n =
|
|
5930
|
-
size:
|
|
5931
|
-
onChangeHandler: r =
|
|
5932
|
-
onSelectHandler: l =
|
|
5933
|
-
icon: u =
|
|
5934
|
-
noOptionsMessage: d =
|
|
5935
|
-
disabled: h =
|
|
5936
|
-
status: f =
|
|
5937
|
-
onBlurHandler: _ =
|
|
5938
|
-
onFocusHandler: v =
|
|
5939
|
-
animated:
|
|
5940
|
-
placeholder: y =
|
|
5951
|
+
}, ea = ({
|
|
5952
|
+
label: i = G.props.label.default,
|
|
5953
|
+
name: e = G.props.name.default,
|
|
5954
|
+
testId: t = G.props.testId.default,
|
|
5955
|
+
value: s = G.props.value.default,
|
|
5956
|
+
options: n = G.props.options.default,
|
|
5957
|
+
size: a = G.props.size.default,
|
|
5958
|
+
onChangeHandler: r = G.props.onChangeHandler.default,
|
|
5959
|
+
onSelectHandler: l = G.props.onSelectHandler.default,
|
|
5960
|
+
icon: u = G.props.icon.default,
|
|
5961
|
+
noOptionsMessage: d = G.props.noOptionsMessage.default,
|
|
5962
|
+
disabled: h = G.props.disabled.default,
|
|
5963
|
+
status: f = G.props.status.default,
|
|
5964
|
+
onBlurHandler: _ = G.props.onBlurHandler.default,
|
|
5965
|
+
onFocusHandler: v = G.props.onFocusHandler.default,
|
|
5966
|
+
animated: S = G.props.animated.default,
|
|
5967
|
+
placeholder: y = G.props.placeholder.default,
|
|
5941
5968
|
loading: m
|
|
5942
5969
|
}) => {
|
|
5943
|
-
const [F, P] = j(!1), [A,
|
|
5970
|
+
const [F, P] = j(!1), [A, E] = j(s), p = (I) => {
|
|
5944
5971
|
r(I), (m == null && I.currentTarget.value.length || !m && I.currentTarget.value.length > 2) && P(!0);
|
|
5945
|
-
},
|
|
5946
|
-
l(I), _(),
|
|
5972
|
+
}, x = (I) => {
|
|
5973
|
+
l(I), _(), E(Math.random().toString()), P(!1);
|
|
5947
5974
|
}, R = (I) => {
|
|
5948
|
-
h ||
|
|
5975
|
+
h || x(I);
|
|
5949
5976
|
};
|
|
5950
5977
|
J(() => {
|
|
5951
5978
|
s.length === 0 && P(!1);
|
|
5952
5979
|
}, [s]);
|
|
5953
|
-
const
|
|
5980
|
+
const W = () => n.length > 0 ? n.map((I, se) => /* @__PURE__ */ c(
|
|
5954
5981
|
"button",
|
|
5955
5982
|
{
|
|
5956
|
-
className: `${
|
|
5983
|
+
className: `${G.class}__option ${G.class}__option--${a}`,
|
|
5957
5984
|
"data-testid": `ds-option-${I.id || I.label}`,
|
|
5958
5985
|
onClick: () => R(I),
|
|
5959
5986
|
children: I.label
|
|
@@ -5962,25 +5989,25 @@ const $s = {
|
|
|
5962
5989
|
)) : /* @__PURE__ */ c(
|
|
5963
5990
|
"div",
|
|
5964
5991
|
{
|
|
5965
|
-
className: `${
|
|
5992
|
+
className: `${G.class}__option ${G.class}__option--not-found--${a}`,
|
|
5966
5993
|
children: d
|
|
5967
5994
|
},
|
|
5968
5995
|
"no_option"
|
|
5969
5996
|
);
|
|
5970
|
-
return /* @__PURE__ */ D("div", { className: `${
|
|
5997
|
+
return /* @__PURE__ */ D("div", { className: `${G.class}__container`, children: [
|
|
5971
5998
|
/* @__PURE__ */ c(
|
|
5972
5999
|
et,
|
|
5973
6000
|
{
|
|
5974
|
-
animated:
|
|
5975
|
-
className: `${
|
|
6001
|
+
animated: S,
|
|
6002
|
+
className: `${G.class}__input`,
|
|
5976
6003
|
disabled: h,
|
|
5977
|
-
label:
|
|
6004
|
+
label: i,
|
|
5978
6005
|
name: e,
|
|
5979
6006
|
onBlurHandler: _,
|
|
5980
6007
|
onChangeHandler: p,
|
|
5981
6008
|
onFocusHandler: v,
|
|
5982
6009
|
placeholder: y,
|
|
5983
|
-
size:
|
|
6010
|
+
size: a,
|
|
5984
6011
|
status: f,
|
|
5985
6012
|
testId: t,
|
|
5986
6013
|
value: s
|
|
@@ -5990,28 +6017,28 @@ const $s = {
|
|
|
5990
6017
|
(u || m) && (m ? /* @__PURE__ */ c(
|
|
5991
6018
|
"div",
|
|
5992
6019
|
{
|
|
5993
|
-
className: `${
|
|
6020
|
+
className: `${G.class}__loading ${G.class}__loading--${a}`,
|
|
5994
6021
|
style: { width: "18px" },
|
|
5995
6022
|
children: /* @__PURE__ */ c(Nt, { fullscreen: !1 })
|
|
5996
6023
|
}
|
|
5997
6024
|
) : u && /* @__PURE__ */ c(
|
|
5998
6025
|
K,
|
|
5999
6026
|
{
|
|
6000
|
-
className: `${
|
|
6027
|
+
className: `${G.class}__icon ${G.class}__icon--${a}`,
|
|
6001
6028
|
image: u
|
|
6002
6029
|
}
|
|
6003
6030
|
)),
|
|
6004
6031
|
F && /* @__PURE__ */ c(
|
|
6005
6032
|
"div",
|
|
6006
6033
|
{
|
|
6007
|
-
className: `${
|
|
6034
|
+
className: `${G.class}__list ${G.class}__list--${a}`,
|
|
6008
6035
|
"data-testid": "ds-list",
|
|
6009
|
-
children:
|
|
6036
|
+
children: W()
|
|
6010
6037
|
}
|
|
6011
6038
|
)
|
|
6012
6039
|
] });
|
|
6013
6040
|
};
|
|
6014
|
-
|
|
6041
|
+
ea.displayName = "DsEditableSelect";
|
|
6015
6042
|
const Ge = {
|
|
6016
6043
|
name: "DsIndicator",
|
|
6017
6044
|
class: "ds-indicator",
|
|
@@ -6025,17 +6052,17 @@ const Ge = {
|
|
|
6025
6052
|
required: !0
|
|
6026
6053
|
}
|
|
6027
6054
|
}
|
|
6028
|
-
},
|
|
6029
|
-
length:
|
|
6055
|
+
}, da = ({
|
|
6056
|
+
length: i,
|
|
6030
6057
|
current: e = Ge.props.current.default
|
|
6031
6058
|
}) => {
|
|
6032
6059
|
const [t, s] = j(e), n = (r) => r < t ? `${Ge.class}__step--older` : r === t ? `${Ge.class}__step--active` : "";
|
|
6033
6060
|
J(() => {
|
|
6034
6061
|
s(e);
|
|
6035
6062
|
}, [e]);
|
|
6036
|
-
const
|
|
6037
|
-
for (let r = 0; r <
|
|
6038
|
-
|
|
6063
|
+
const a = [];
|
|
6064
|
+
for (let r = 0; r < i; r++)
|
|
6065
|
+
a.push(
|
|
6039
6066
|
/* @__PURE__ */ c(
|
|
6040
6067
|
"div",
|
|
6041
6068
|
{
|
|
@@ -6045,8 +6072,8 @@ const Ge = {
|
|
|
6045
6072
|
r
|
|
6046
6073
|
)
|
|
6047
6074
|
);
|
|
6048
|
-
return /* @__PURE__ */ c("div", { className: Ge.class, children:
|
|
6049
|
-
},
|
|
6075
|
+
return /* @__PURE__ */ c("div", { className: Ge.class, children: a });
|
|
6076
|
+
}, ta = {
|
|
6050
6077
|
name: "DsInlineEditable",
|
|
6051
6078
|
class: "ds-inline-editable",
|
|
6052
6079
|
props: {
|
|
@@ -6081,12 +6108,12 @@ const Ge = {
|
|
|
6081
6108
|
}
|
|
6082
6109
|
}
|
|
6083
6110
|
}, cn = ({
|
|
6084
|
-
name:
|
|
6111
|
+
name: i,
|
|
6085
6112
|
value: e,
|
|
6086
6113
|
prefix: t,
|
|
6087
6114
|
sufix: s,
|
|
6088
6115
|
min: n,
|
|
6089
|
-
max:
|
|
6116
|
+
max: a,
|
|
6090
6117
|
onChangeHandler: r
|
|
6091
6118
|
}) => {
|
|
6092
6119
|
const l = Je(null), [u, d] = j(!1), [h, f] = j("");
|
|
@@ -6097,24 +6124,24 @@ const Ge = {
|
|
|
6097
6124
|
m.key === "Enter" && v(m);
|
|
6098
6125
|
};
|
|
6099
6126
|
function v(m) {
|
|
6100
|
-
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (m.currentTarget.value = n, f(n)) :
|
|
6127
|
+
d(!1), r && (n && parseInt(n) >= parseInt(h === "" ? n : h) ? (m.currentTarget.value = n, f(n)) : a && parseInt(a) < parseInt(h) ? (m.currentTarget.value = a, f(a)) : m.currentTarget.value = h, r(m));
|
|
6101
6128
|
}
|
|
6102
|
-
const
|
|
6129
|
+
const S = (m) => {
|
|
6103
6130
|
f(m.currentTarget.value);
|
|
6104
6131
|
}, y = async () => {
|
|
6105
6132
|
var m;
|
|
6106
6133
|
await d(!0), (m = l.current) == null || m.focus();
|
|
6107
6134
|
};
|
|
6108
|
-
return /* @__PURE__ */ c("div", { className:
|
|
6135
|
+
return /* @__PURE__ */ c("div", { className: ta.class, children: u ? /* @__PURE__ */ c(
|
|
6109
6136
|
"input",
|
|
6110
6137
|
{
|
|
6111
6138
|
className: "ds-input__input",
|
|
6112
6139
|
"data-testid": "ds-input",
|
|
6113
|
-
max:
|
|
6140
|
+
max: a,
|
|
6114
6141
|
min: n,
|
|
6115
|
-
name:
|
|
6142
|
+
name: i,
|
|
6116
6143
|
onBlur: v,
|
|
6117
|
-
onChange:
|
|
6144
|
+
onChange: S,
|
|
6118
6145
|
onKeyDown: _,
|
|
6119
6146
|
ref: l,
|
|
6120
6147
|
type: "number",
|
|
@@ -6140,7 +6167,7 @@ cn.propTypes = {
|
|
|
6140
6167
|
value: o.string
|
|
6141
6168
|
};
|
|
6142
6169
|
cn.displayName = "DsInlineEditable";
|
|
6143
|
-
const
|
|
6170
|
+
const sa = [1, 2, 3, 4], Vs = {
|
|
6144
6171
|
Squared: "squared",
|
|
6145
6172
|
Rounded: "rounded"
|
|
6146
6173
|
}, fe = {
|
|
@@ -6149,7 +6176,7 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6149
6176
|
props: {
|
|
6150
6177
|
elevation: {
|
|
6151
6178
|
type: Number,
|
|
6152
|
-
options:
|
|
6179
|
+
options: sa
|
|
6153
6180
|
},
|
|
6154
6181
|
variant: {
|
|
6155
6182
|
type: String,
|
|
@@ -6170,12 +6197,12 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6170
6197
|
}
|
|
6171
6198
|
}
|
|
6172
6199
|
}, dn = ({
|
|
6173
|
-
className:
|
|
6200
|
+
className: i,
|
|
6174
6201
|
title: e,
|
|
6175
6202
|
content: t,
|
|
6176
6203
|
cancelBtnText: s = fe.props.cancelBtnText.default,
|
|
6177
6204
|
confirmBtnText: n = fe.props.confirmBtnText.default,
|
|
6178
|
-
variant:
|
|
6205
|
+
variant: a = fe.props.variant.default,
|
|
6179
6206
|
elevation: r,
|
|
6180
6207
|
isModalOpen: l = fe.props.isModalOpen.default,
|
|
6181
6208
|
onClose: u,
|
|
@@ -6183,22 +6210,22 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6183
6210
|
onConfirm: h,
|
|
6184
6211
|
...f
|
|
6185
6212
|
}) => {
|
|
6186
|
-
const _ =
|
|
6213
|
+
const _ = a && fe.props.variant.options.find((m) => m === a) ? `${fe.class}--${a}` : `${fe.class}--${fe.props.variant.default}`, v = r && `${fe.class}--elevation-${r}`, S = h || d, y = Ae(
|
|
6187
6214
|
(m) => {
|
|
6188
6215
|
m.keyCode === 27 && u();
|
|
6189
6216
|
},
|
|
6190
6217
|
[u]
|
|
6191
6218
|
);
|
|
6192
|
-
return J(() => (l && window && !
|
|
6219
|
+
return J(() => (l && window && !S && window.addEventListener("keyup", y), () => {
|
|
6193
6220
|
window.removeEventListener("keyup", y);
|
|
6194
|
-
}), [
|
|
6221
|
+
}), [S, y]), l ? /* @__PURE__ */ D(tt, { children: [
|
|
6195
6222
|
/* @__PURE__ */ c(
|
|
6196
6223
|
"div",
|
|
6197
6224
|
{
|
|
6198
6225
|
className: "ds-modal-overlay",
|
|
6199
6226
|
"data-testid": "ds-modal-overlay",
|
|
6200
6227
|
...f,
|
|
6201
|
-
onClick: () =>
|
|
6228
|
+
onClick: () => S ? () => {
|
|
6202
6229
|
} : u()
|
|
6203
6230
|
}
|
|
6204
6231
|
),
|
|
@@ -6209,11 +6236,11 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6209
6236
|
fe.class,
|
|
6210
6237
|
_,
|
|
6211
6238
|
v,
|
|
6212
|
-
|
|
6239
|
+
i && i
|
|
6213
6240
|
].filter((m) => m).join(" "),
|
|
6214
6241
|
"data-testid": "ds-modal",
|
|
6215
6242
|
children: [
|
|
6216
|
-
!
|
|
6243
|
+
!S && /* @__PURE__ */ c(
|
|
6217
6244
|
"button",
|
|
6218
6245
|
{
|
|
6219
6246
|
className: "ds-modal__closeBtn",
|
|
@@ -6224,11 +6251,11 @@ const si = [1, 2, 3, 4], Vs = {
|
|
|
6224
6251
|
),
|
|
6225
6252
|
/* @__PURE__ */ D("div", { className: "ds-modal__content", children: [
|
|
6226
6253
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__title", children: e }),
|
|
6227
|
-
e && /* @__PURE__ */ c(
|
|
6254
|
+
e && /* @__PURE__ */ c(me, { vertical: "xxxs" }),
|
|
6228
6255
|
/* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: t })
|
|
6229
6256
|
] }),
|
|
6230
|
-
|
|
6231
|
-
!
|
|
6257
|
+
S && /* @__PURE__ */ c(me, { vertical: "sm" }),
|
|
6258
|
+
!S && /* @__PURE__ */ c(me, { vertical: "xxs" }),
|
|
6232
6259
|
/* @__PURE__ */ D("div", { className: "ds-modal__cta", children: [
|
|
6233
6260
|
d && /* @__PURE__ */ c(
|
|
6234
6261
|
pt,
|
|
@@ -6315,18 +6342,18 @@ const Ls = {
|
|
|
6315
6342
|
default: "ds-notification"
|
|
6316
6343
|
}
|
|
6317
6344
|
}
|
|
6318
|
-
},
|
|
6345
|
+
}, na = {
|
|
6319
6346
|
success: "check",
|
|
6320
6347
|
danger: "error",
|
|
6321
6348
|
warning: "warning",
|
|
6322
6349
|
info: "info"
|
|
6323
6350
|
}, pn = ({
|
|
6324
|
-
className:
|
|
6351
|
+
className: i,
|
|
6325
6352
|
type: e = le.props.type.default,
|
|
6326
6353
|
variant: t = le.props.variant.default,
|
|
6327
6354
|
id: s,
|
|
6328
6355
|
children: n,
|
|
6329
|
-
message:
|
|
6356
|
+
message: a,
|
|
6330
6357
|
autoClose: r = le.props.autoClose.default,
|
|
6331
6358
|
autoCloseTimer: l = le.props.autoCloseTimer.default,
|
|
6332
6359
|
dismissible: u = le.props.dismissible.default,
|
|
@@ -6335,26 +6362,26 @@ const Ls = {
|
|
|
6335
6362
|
handleClose: f,
|
|
6336
6363
|
testId: _ = le.props.testId.default
|
|
6337
6364
|
}) => {
|
|
6338
|
-
const [v,
|
|
6365
|
+
const [v, S] = j(l), [y, m] = j(!1), [F, P] = j(!0), A = [
|
|
6339
6366
|
le.class,
|
|
6340
6367
|
e && `${le.class}--${e}`,
|
|
6341
6368
|
t && `${le.class}--${t}`,
|
|
6342
6369
|
d && `${le.class}--elevation-${d}`,
|
|
6343
|
-
|
|
6344
|
-
].join(" "),
|
|
6370
|
+
i && i
|
|
6371
|
+
].join(" "), E = () => S((W) => (W === 0 && P(!1), W - 100));
|
|
6345
6372
|
J(() => {
|
|
6346
6373
|
!r && !u && P(!0);
|
|
6347
|
-
let
|
|
6348
|
-
return !y && r && (
|
|
6349
|
-
clearInterval(
|
|
6374
|
+
let W;
|
|
6375
|
+
return !y && r && (W = setInterval(E, 100)), () => {
|
|
6376
|
+
clearInterval(W);
|
|
6350
6377
|
};
|
|
6351
6378
|
}, [y, r, l, F, u]);
|
|
6352
6379
|
const p = () => {
|
|
6353
6380
|
m(!0);
|
|
6354
|
-
},
|
|
6381
|
+
}, x = () => {
|
|
6355
6382
|
m(!1);
|
|
6356
|
-
}, R = (
|
|
6357
|
-
P(!1), f && f(
|
|
6383
|
+
}, R = (W) => {
|
|
6384
|
+
P(!1), f && f(W);
|
|
6358
6385
|
};
|
|
6359
6386
|
return F ? /* @__PURE__ */ D(
|
|
6360
6387
|
"div",
|
|
@@ -6363,7 +6390,7 @@ const Ls = {
|
|
|
6363
6390
|
"data-testid": _,
|
|
6364
6391
|
id: s,
|
|
6365
6392
|
onMouseEnter: p,
|
|
6366
|
-
onMouseLeave:
|
|
6393
|
+
onMouseLeave: x,
|
|
6367
6394
|
children: [
|
|
6368
6395
|
/* @__PURE__ */ c(Ze, { bottom: "nano", top: "nano", children: /* @__PURE__ */ D(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
|
|
6369
6396
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
@@ -6371,19 +6398,19 @@ const Ls = {
|
|
|
6371
6398
|
{
|
|
6372
6399
|
color: e,
|
|
6373
6400
|
fill: !0,
|
|
6374
|
-
image:
|
|
6401
|
+
image: na[e]
|
|
6375
6402
|
}
|
|
6376
6403
|
) }),
|
|
6377
|
-
/* @__PURE__ */ c(ne, { flex: "1", children: /* @__PURE__ */ c(Ze, { left: "none", right: "none", space: "nano", children: n ??
|
|
6404
|
+
/* @__PURE__ */ c(ne, { flex: "1", children: /* @__PURE__ */ c(Ze, { left: "none", right: "none", space: "nano", children: n ?? a }) }),
|
|
6378
6405
|
/* @__PURE__ */ c(ne, { children: u ? /* @__PURE__ */ c(
|
|
6379
6406
|
"div",
|
|
6380
6407
|
{
|
|
6381
6408
|
className: `${le.class}__button`,
|
|
6382
6409
|
"data-testid": `${_}-close`,
|
|
6383
|
-
onClick: (
|
|
6410
|
+
onClick: (W) => R(W),
|
|
6384
6411
|
children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(K, { image: "close" }) })
|
|
6385
6412
|
}
|
|
6386
|
-
) : /* @__PURE__ */ c(
|
|
6413
|
+
) : /* @__PURE__ */ c(me, { horizontal: "quark" }) })
|
|
6387
6414
|
] }) }),
|
|
6388
6415
|
h && r && /* @__PURE__ */ c(
|
|
6389
6416
|
"div",
|
|
@@ -6414,19 +6441,19 @@ const Ft = {
|
|
|
6414
6441
|
default: [
|
|
6415
6442
|
{
|
|
6416
6443
|
title: "Um número",
|
|
6417
|
-
rule: (
|
|
6444
|
+
rule: (i) => /\d/.test(i)
|
|
6418
6445
|
},
|
|
6419
6446
|
{
|
|
6420
6447
|
title: "Uma letra maiúscula",
|
|
6421
|
-
rule: (
|
|
6448
|
+
rule: (i) => /[A-Z]/.test(i)
|
|
6422
6449
|
},
|
|
6423
6450
|
{
|
|
6424
6451
|
title: "Um caractere especial. Ex: @#!?",
|
|
6425
|
-
rule: (
|
|
6452
|
+
rule: (i) => /[!@#$%^&*()+\-=_[\]{};':"\\|,.<>/?]/.test(i)
|
|
6426
6453
|
},
|
|
6427
6454
|
{
|
|
6428
6455
|
title: "Mínimo 8 caracteres",
|
|
6429
|
-
rule: (
|
|
6456
|
+
rule: (i) => i.length >= 8
|
|
6430
6457
|
}
|
|
6431
6458
|
]
|
|
6432
6459
|
},
|
|
@@ -6445,75 +6472,75 @@ const Ft = {
|
|
|
6445
6472
|
medium: "Médio",
|
|
6446
6473
|
weak: "Fraco"
|
|
6447
6474
|
}, hn = ({
|
|
6448
|
-
onChange:
|
|
6475
|
+
onChange: i,
|
|
6449
6476
|
validationList: e = Ft.props.validationList.default,
|
|
6450
6477
|
instructionLabel: t = Ft.props.instructionLabel.default,
|
|
6451
6478
|
testId: s = Ft.props.testId.default
|
|
6452
6479
|
}) => {
|
|
6453
|
-
const [n,
|
|
6480
|
+
const [n, a] = j(""), [r, l] = j(""), [u, d] = j([]), [h, f] = j({
|
|
6454
6481
|
score: 0,
|
|
6455
6482
|
color: "danger",
|
|
6456
6483
|
label: "Fraco"
|
|
6457
|
-
}), [_, v] = j(!1),
|
|
6484
|
+
}), [_, v] = j(!1), S = Ae(
|
|
6458
6485
|
(p) => {
|
|
6459
|
-
const
|
|
6486
|
+
const x = e.map(
|
|
6460
6487
|
(R) => R == null ? void 0 : R.rule(p)
|
|
6461
6488
|
);
|
|
6462
|
-
return d(
|
|
6489
|
+
return d(x), x;
|
|
6463
6490
|
},
|
|
6464
6491
|
[e]
|
|
6465
6492
|
), y = Ae(
|
|
6466
6493
|
(p) => {
|
|
6467
|
-
|
|
6468
|
-
const
|
|
6469
|
-
|
|
6494
|
+
a(p.currentTarget.value);
|
|
6495
|
+
const x = S(p.currentTarget.value), R = A(x);
|
|
6496
|
+
i({
|
|
6470
6497
|
password: p.currentTarget.value,
|
|
6471
6498
|
confirmationPassword: r,
|
|
6472
6499
|
isEqual: r === p.currentTarget.value,
|
|
6473
6500
|
feedback: R
|
|
6474
6501
|
});
|
|
6475
6502
|
},
|
|
6476
|
-
[r,
|
|
6503
|
+
[r, i, S]
|
|
6477
6504
|
), m = Ae(
|
|
6478
6505
|
(p) => {
|
|
6479
6506
|
l(p.currentTarget.value);
|
|
6480
|
-
const
|
|
6481
|
-
|
|
6507
|
+
const x = S(n), R = A(x);
|
|
6508
|
+
i({
|
|
6482
6509
|
password: n,
|
|
6483
6510
|
confirmationPassword: p.currentTarget.value,
|
|
6484
6511
|
isEqual: n === p.currentTarget.value,
|
|
6485
6512
|
feedback: R
|
|
6486
6513
|
});
|
|
6487
6514
|
},
|
|
6488
|
-
[n,
|
|
6489
|
-
), F =
|
|
6515
|
+
[n, i, S]
|
|
6516
|
+
), F = Se(() => n !== r && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [n, r, _]), P = Ae(
|
|
6490
6517
|
(p) => {
|
|
6491
|
-
const
|
|
6518
|
+
const x = {
|
|
6492
6519
|
score: p,
|
|
6493
6520
|
color: "danger",
|
|
6494
6521
|
label: lt.weak
|
|
6495
6522
|
};
|
|
6496
|
-
return p > 30 && p < 75 ? (
|
|
6523
|
+
return p > 30 && p < 75 ? (x.color = "warning", x.label = lt.medium) : p >= 75 && p < 100 ? (x.color = "success", x.label = lt.good) : p === 100 && (x.color = "success-dark", x.label = lt.strong), x;
|
|
6497
6524
|
},
|
|
6498
6525
|
[]
|
|
6499
6526
|
), A = Ae(
|
|
6500
6527
|
(p) => {
|
|
6501
|
-
const
|
|
6502
|
-
(
|
|
6503
|
-
let se =
|
|
6504
|
-
return I ? (se++, se) :
|
|
6528
|
+
const x = p.reduce(
|
|
6529
|
+
(W, I) => {
|
|
6530
|
+
let se = W;
|
|
6531
|
+
return I ? (se++, se) : W;
|
|
6505
6532
|
},
|
|
6506
6533
|
0
|
|
6507
6534
|
), R = P(
|
|
6508
|
-
|
|
6535
|
+
x * 100 / p.length
|
|
6509
6536
|
);
|
|
6510
6537
|
return f(R), R;
|
|
6511
6538
|
},
|
|
6512
6539
|
[P]
|
|
6513
|
-
),
|
|
6514
|
-
const R = u[
|
|
6540
|
+
), E = () => /* @__PURE__ */ c("ul", { children: e.map((p, x) => {
|
|
6541
|
+
const R = u[x] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
|
|
6515
6542
|
return /* @__PURE__ */ D("li", { className: R, children: [
|
|
6516
|
-
u[
|
|
6543
|
+
u[x] ? /* @__PURE__ */ c(
|
|
6517
6544
|
K,
|
|
6518
6545
|
{
|
|
6519
6546
|
color: "success-dark",
|
|
@@ -6521,9 +6548,9 @@ const Ft = {
|
|
|
6521
6548
|
testId: "ds-check-icon"
|
|
6522
6549
|
}
|
|
6523
6550
|
) : null,
|
|
6524
|
-
/* @__PURE__ */ c(
|
|
6551
|
+
/* @__PURE__ */ c(me, { horizontal: "quark" }),
|
|
6525
6552
|
/* @__PURE__ */ c(Re, { children: p.title })
|
|
6526
|
-
] },
|
|
6553
|
+
] }, x + p.title);
|
|
6527
6554
|
}) });
|
|
6528
6555
|
return /* @__PURE__ */ D(Ve, { className: "ds-password-confirmation", flexDirection: "column", children: [
|
|
6529
6556
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
@@ -6546,8 +6573,8 @@ const Ft = {
|
|
|
6546
6573
|
}
|
|
6547
6574
|
) }),
|
|
6548
6575
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Re, { children: t }) }),
|
|
6549
|
-
/* @__PURE__ */ c(ne, { children:
|
|
6550
|
-
/* @__PURE__ */ c(
|
|
6576
|
+
/* @__PURE__ */ c(ne, { children: E() }),
|
|
6577
|
+
/* @__PURE__ */ c(me, { vertical: "xxs" }),
|
|
6551
6578
|
/* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
|
|
6552
6579
|
et,
|
|
6553
6580
|
{
|
|
@@ -6572,7 +6599,7 @@ hn.propTypes = {
|
|
|
6572
6599
|
testId: o.string
|
|
6573
6600
|
};
|
|
6574
6601
|
hn.displayName = "DsPasswordConfirmation";
|
|
6575
|
-
const
|
|
6602
|
+
const ke = {
|
|
6576
6603
|
name: "DsStepper",
|
|
6577
6604
|
class: "ds-stepper",
|
|
6578
6605
|
props: {
|
|
@@ -6585,38 +6612,38 @@ const ve = {
|
|
|
6585
6612
|
default: 0
|
|
6586
6613
|
}
|
|
6587
6614
|
}
|
|
6588
|
-
},
|
|
6589
|
-
steps:
|
|
6590
|
-
selectedStep: e =
|
|
6615
|
+
}, aa = ({
|
|
6616
|
+
steps: i,
|
|
6617
|
+
selectedStep: e = ke.props.selectedStep.default,
|
|
6591
6618
|
onChange: t
|
|
6592
6619
|
}) => {
|
|
6593
|
-
const [s, n] = j(e),
|
|
6594
|
-
const u = [`${
|
|
6595
|
-
return l !== r && u.push(`${
|
|
6620
|
+
const [s, n] = j(e), a = (r, l) => {
|
|
6621
|
+
const u = [`${ke.class}__button`];
|
|
6622
|
+
return l !== r && u.push(`${ke.class}__button--round`), i[r] && i[r].disabled && u.push(`${ke.class}__button--disabled`), u.join(" ");
|
|
6596
6623
|
};
|
|
6597
6624
|
return J(() => {
|
|
6598
6625
|
n(e);
|
|
6599
6626
|
}, [e]), J(() => {
|
|
6600
6627
|
t(s);
|
|
6601
|
-
}, [s]), /* @__PURE__ */ D("div", { className:
|
|
6602
|
-
/* @__PURE__ */ D("span", { className: `${
|
|
6628
|
+
}, [s]), /* @__PURE__ */ D("div", { className: ke.class, children: [
|
|
6629
|
+
/* @__PURE__ */ D("span", { className: `${ke.class}__step-counter`, children: [
|
|
6603
6630
|
"Etapa ",
|
|
6604
6631
|
s + 1,
|
|
6605
6632
|
" de ",
|
|
6606
|
-
|
|
6633
|
+
i == null ? void 0 : i.length
|
|
6607
6634
|
] }),
|
|
6608
|
-
/* @__PURE__ */ c("div", { className: `${
|
|
6635
|
+
/* @__PURE__ */ c("div", { className: `${ke.class}__step`, children: i.map((r, l) => /* @__PURE__ */ c("div", { className: `${ke.class}__content`, children: /* @__PURE__ */ c(
|
|
6609
6636
|
"button",
|
|
6610
6637
|
{
|
|
6611
|
-
className:
|
|
6638
|
+
className: a(l, s),
|
|
6612
6639
|
"data-testid": `ds-button-${l}`,
|
|
6613
6640
|
disabled: r.disabled,
|
|
6614
6641
|
onClick: () => n(l),
|
|
6615
|
-
children: /* @__PURE__ */ D("span", { className: `${
|
|
6642
|
+
children: /* @__PURE__ */ D("span", { className: `${ke.class}__text`, children: [
|
|
6616
6643
|
s === l ? /* @__PURE__ */ c(Ze, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
|
|
6617
6644
|
K,
|
|
6618
6645
|
{
|
|
6619
|
-
className: `${
|
|
6646
|
+
className: `${ke.class}__icon`,
|
|
6620
6647
|
fill: !0,
|
|
6621
6648
|
image: r.icon,
|
|
6622
6649
|
testId: `ds-icon-${l}`
|
|
@@ -6624,7 +6651,7 @@ const ve = {
|
|
|
6624
6651
|
) }) : /* @__PURE__ */ c(
|
|
6625
6652
|
K,
|
|
6626
6653
|
{
|
|
6627
|
-
className: `${
|
|
6654
|
+
className: `${ke.class}__icon`,
|
|
6628
6655
|
fill: !0,
|
|
6629
6656
|
image: r.icon,
|
|
6630
6657
|
testId: `ds-icon-${l}`
|
|
@@ -6636,7 +6663,7 @@ const ve = {
|
|
|
6636
6663
|
) }, l)) })
|
|
6637
6664
|
] });
|
|
6638
6665
|
};
|
|
6639
|
-
|
|
6666
|
+
aa.displayName = "DsStepper";
|
|
6640
6667
|
const Te = {
|
|
6641
6668
|
name: "Table",
|
|
6642
6669
|
class: "ds-table",
|
|
@@ -6654,7 +6681,7 @@ const Te = {
|
|
|
6654
6681
|
default: []
|
|
6655
6682
|
}
|
|
6656
6683
|
}
|
|
6657
|
-
}, fn = ({ item:
|
|
6684
|
+
}, fn = ({ item: i, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Te.class}__row`, children: e.map((t, s) => {
|
|
6658
6685
|
const n = t.align && `${Te.class}__cell--align-${t.align}`;
|
|
6659
6686
|
return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
|
|
6660
6687
|
"div",
|
|
@@ -6663,32 +6690,32 @@ const Te = {
|
|
|
6663
6690
|
`${Te.class}__cell`,
|
|
6664
6691
|
n,
|
|
6665
6692
|
t.className
|
|
6666
|
-
].filter((
|
|
6667
|
-
children:
|
|
6693
|
+
].filter((a) => a).join(" "),
|
|
6694
|
+
children: i && i[`${t.name}`]
|
|
6668
6695
|
}
|
|
6669
6696
|
) }, s);
|
|
6670
6697
|
}) });
|
|
6671
6698
|
fn.displayName = "DsTableRow";
|
|
6672
|
-
const
|
|
6699
|
+
const ia = ({ columns: i, data: e, className: t }) => /* @__PURE__ */ c("div", { className: `${Te.class}__wrapper`, children: /* @__PURE__ */ D(
|
|
6673
6700
|
"table",
|
|
6674
6701
|
{
|
|
6675
6702
|
className: [`${Te.class}`, t].filter((s) => s).join(" "),
|
|
6676
6703
|
children: [
|
|
6677
|
-
/* @__PURE__ */ c("thead", { className: `${Te.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Te.class}__row`, children:
|
|
6704
|
+
/* @__PURE__ */ c("thead", { className: `${Te.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Te.class}__row`, children: i && i.map((s, n) => /* @__PURE__ */ c("th", { style: { width: s.size }, children: /* @__PURE__ */ c(
|
|
6678
6705
|
"div",
|
|
6679
6706
|
{
|
|
6680
6707
|
className: [
|
|
6681
6708
|
`${Te.class}__cell`,
|
|
6682
6709
|
s.align && `${Te.class}__cell--align-${s.align}`
|
|
6683
|
-
].filter((
|
|
6710
|
+
].filter((a) => a).join(" "),
|
|
6684
6711
|
children: s.label
|
|
6685
6712
|
}
|
|
6686
6713
|
) }, n)) }) }),
|
|
6687
|
-
/* @__PURE__ */ c("tbody", { className: `${Te.class}__body`, children: e && e.map((s, n) => /* @__PURE__ */ c(fn, { columns:
|
|
6714
|
+
/* @__PURE__ */ c("tbody", { className: `${Te.class}__body`, children: e && e.map((s, n) => /* @__PURE__ */ c(fn, { columns: i, item: s }, n)) })
|
|
6688
6715
|
]
|
|
6689
6716
|
}
|
|
6690
6717
|
) });
|
|
6691
|
-
|
|
6718
|
+
ia.displayName = "DsTable";
|
|
6692
6719
|
const js = {
|
|
6693
6720
|
None: "",
|
|
6694
6721
|
Primary: "primary",
|
|
@@ -6725,20 +6752,20 @@ const js = {
|
|
|
6725
6752
|
}
|
|
6726
6753
|
}
|
|
6727
6754
|
}
|
|
6728
|
-
},
|
|
6729
|
-
active:
|
|
6755
|
+
}, ra = ({
|
|
6756
|
+
active: i,
|
|
6730
6757
|
className: e,
|
|
6731
6758
|
color: t,
|
|
6732
6759
|
disabled: s,
|
|
6733
6760
|
name: n,
|
|
6734
|
-
index:
|
|
6761
|
+
index: a,
|
|
6735
6762
|
title: r,
|
|
6736
6763
|
onClick: l
|
|
6737
6764
|
}) => {
|
|
6738
6765
|
const u = [
|
|
6739
6766
|
`${Me.class}__tab`,
|
|
6740
6767
|
`${Me.class}__tab-color--${t}`,
|
|
6741
|
-
|
|
6768
|
+
i && `${Me.class}__tab--active`,
|
|
6742
6769
|
s && `${Me.class}__tab--disabled`,
|
|
6743
6770
|
e && e
|
|
6744
6771
|
].join(" "), d = (h) => {
|
|
@@ -6748,20 +6775,20 @@ const js = {
|
|
|
6748
6775
|
"div",
|
|
6749
6776
|
{
|
|
6750
6777
|
className: u,
|
|
6751
|
-
"data-testid": `ds-tab-${
|
|
6778
|
+
"data-testid": `ds-tab-${a}`,
|
|
6752
6779
|
id: n,
|
|
6753
|
-
onClick: () => d(
|
|
6780
|
+
onClick: () => d(a),
|
|
6754
6781
|
children: r
|
|
6755
6782
|
}
|
|
6756
6783
|
);
|
|
6757
|
-
},
|
|
6758
|
-
tabs:
|
|
6784
|
+
}, pa = ({
|
|
6785
|
+
tabs: i,
|
|
6759
6786
|
color: e,
|
|
6760
6787
|
selectedTab: t = Me.props.selectedTab.default,
|
|
6761
6788
|
className: s,
|
|
6762
6789
|
onChange: n
|
|
6763
6790
|
}) => {
|
|
6764
|
-
const [
|
|
6791
|
+
const [a, r] = j(t), l = (u) => {
|
|
6765
6792
|
r(u), n && n(u);
|
|
6766
6793
|
};
|
|
6767
6794
|
return J(() => r(t), [t]), /* @__PURE__ */ D(
|
|
@@ -6770,26 +6797,26 @@ const js = {
|
|
|
6770
6797
|
className: [Me.class, s && s].join(" "),
|
|
6771
6798
|
"data-testid": "ds-tabs",
|
|
6772
6799
|
children: [
|
|
6773
|
-
/* @__PURE__ */ c("div", { className: `${Me.class}__header`, children:
|
|
6774
|
-
|
|
6800
|
+
/* @__PURE__ */ c("div", { className: `${Me.class}__header`, children: i.map((u, d) => /* @__PURE__ */ vn(
|
|
6801
|
+
ra,
|
|
6775
6802
|
{
|
|
6776
6803
|
...u,
|
|
6777
|
-
active:
|
|
6804
|
+
active: a === d,
|
|
6778
6805
|
color: e,
|
|
6779
6806
|
index: d,
|
|
6780
6807
|
key: d,
|
|
6781
6808
|
onClick: () => l(d)
|
|
6782
6809
|
}
|
|
6783
6810
|
)) }),
|
|
6784
|
-
/* @__PURE__ */ c("div", { className: `${Me.class}__content`, children: a
|
|
6811
|
+
/* @__PURE__ */ c("div", { className: `${Me.class}__content`, children: i[a].content })
|
|
6785
6812
|
]
|
|
6786
6813
|
}
|
|
6787
6814
|
);
|
|
6788
6815
|
};
|
|
6789
|
-
function
|
|
6790
|
-
return /* @__PURE__ */ c("div", { "data-library":
|
|
6816
|
+
function oa({ library: i, children: e, theme: t }) {
|
|
6817
|
+
return /* @__PURE__ */ c("div", { "data-library": i, "data-theme": t, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
|
|
6791
6818
|
}
|
|
6792
|
-
|
|
6819
|
+
oa.propTypes = {
|
|
6793
6820
|
library: o.string,
|
|
6794
6821
|
children: o.node.isRequired,
|
|
6795
6822
|
theme: o.string
|
|
@@ -6820,21 +6847,21 @@ const zs = {
|
|
|
6820
6847
|
}
|
|
6821
6848
|
}
|
|
6822
6849
|
}, gn = ({
|
|
6823
|
-
className:
|
|
6850
|
+
className: i = ze.props.className.default,
|
|
6824
6851
|
position: e = ze.props.position.default,
|
|
6825
6852
|
fluid: t = ze.props.fluid.default,
|
|
6826
6853
|
notifications: s,
|
|
6827
6854
|
removeNotification: n
|
|
6828
6855
|
}) => {
|
|
6829
|
-
const
|
|
6856
|
+
const a = [
|
|
6830
6857
|
ze.class,
|
|
6831
6858
|
`${ze.class}--${e}`,
|
|
6832
6859
|
t && `${ze.class}--fluid`,
|
|
6833
|
-
|
|
6860
|
+
i && i
|
|
6834
6861
|
].join(" "), r = (l) => {
|
|
6835
6862
|
n && n(l);
|
|
6836
6863
|
};
|
|
6837
|
-
return /* @__PURE__ */ c("div", { className:
|
|
6864
|
+
return /* @__PURE__ */ c("div", { className: a, "data-testid": "ds-notification-list", children: s.map((l) => {
|
|
6838
6865
|
const u = l.autoClose ?? !0, d = l.autoCloseTimer ?? 4e3, h = l.dismissible ?? !0, f = l.elevation ?? 2, _ = l.progressBar ?? !0;
|
|
6839
6866
|
return /* @__PURE__ */ c(
|
|
6840
6867
|
pn,
|
|
@@ -6865,15 +6892,15 @@ const je = {
|
|
|
6865
6892
|
class: "ds-split-layout",
|
|
6866
6893
|
props: {}
|
|
6867
6894
|
}, mn = ({
|
|
6868
|
-
leftContent:
|
|
6895
|
+
leftContent: i,
|
|
6869
6896
|
rightContent: e,
|
|
6870
6897
|
leftBackgroundColor: t,
|
|
6871
6898
|
rightBackgroundColor: s,
|
|
6872
6899
|
reverseOnMobile: n = !1
|
|
6873
6900
|
}) => {
|
|
6874
|
-
const
|
|
6901
|
+
const a = t ? `${je.class}__content--${t}` : "", r = s ? `${je.class}__content--${s}` : "", l = n ? `${je.class}__content--mobile-order-2` : "", u = n ? `${je.class}__content--mobile-order-1` : "", d = `${je.class}__content ${a} ${l}`, h = `${je.class}__content ${r} ${u}`;
|
|
6875
6902
|
return /* @__PURE__ */ D("div", { className: je.class, children: [
|
|
6876
|
-
/* @__PURE__ */ c("div", { className: d, children:
|
|
6903
|
+
/* @__PURE__ */ c("div", { className: d, children: i }),
|
|
6877
6904
|
/* @__PURE__ */ c("div", { className: h, children: e })
|
|
6878
6905
|
] });
|
|
6879
6906
|
};
|
|
@@ -6890,7 +6917,7 @@ const ut = {
|
|
|
6890
6917
|
class: "ds-two-columns",
|
|
6891
6918
|
props: {}
|
|
6892
6919
|
}, yn = ({
|
|
6893
|
-
header:
|
|
6920
|
+
header: i,
|
|
6894
6921
|
main: e,
|
|
6895
6922
|
sidebar: t,
|
|
6896
6923
|
breadcrumb: s
|
|
@@ -6899,7 +6926,7 @@ const ut = {
|
|
|
6899
6926
|
/* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: s }) }),
|
|
6900
6927
|
/* @__PURE__ */ D("div", { className: `${ut.class}__content ds-grid__row`, children: [
|
|
6901
6928
|
/* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: /* @__PURE__ */ D(tt, { children: [
|
|
6902
|
-
/* @__PURE__ */ c("div", { className: `${ut.class}__header`, children:
|
|
6929
|
+
/* @__PURE__ */ c("div", { className: `${ut.class}__header`, children: i }),
|
|
6903
6930
|
/* @__PURE__ */ c("div", { className: `${ut.class}__main`, children: e })
|
|
6904
6931
|
] }) }),
|
|
6905
6932
|
/* @__PURE__ */ c(
|
|
@@ -6911,7 +6938,7 @@ const ut = {
|
|
|
6911
6938
|
)
|
|
6912
6939
|
] })
|
|
6913
6940
|
] }),
|
|
6914
|
-
/* @__PURE__ */ c(
|
|
6941
|
+
/* @__PURE__ */ c(me, { vertical: "sm" })
|
|
6915
6942
|
] });
|
|
6916
6943
|
yn.propTypes = {
|
|
6917
6944
|
breadcrumb: o.node,
|
|
@@ -6929,7 +6956,7 @@ export {
|
|
|
6929
6956
|
Qn as DsCarousel,
|
|
6930
6957
|
Ys as DsCheckbox,
|
|
6931
6958
|
Mt as DsContainer,
|
|
6932
|
-
|
|
6959
|
+
ea as DsEditableSelect,
|
|
6933
6960
|
ne as DsFlexElement,
|
|
6934
6961
|
Ve as DsFlexLayout,
|
|
6935
6962
|
Kn as DsGridElement,
|
|
@@ -6937,7 +6964,7 @@ export {
|
|
|
6937
6964
|
Gs as DsHR,
|
|
6938
6965
|
Bt as DsHeading,
|
|
6939
6966
|
K as DsIcon,
|
|
6940
|
-
|
|
6967
|
+
da as DsIndicator,
|
|
6941
6968
|
cn as DsInlineEditable,
|
|
6942
6969
|
et as DsInput,
|
|
6943
6970
|
Nt as DsLoading,
|
|
@@ -6949,15 +6976,15 @@ export {
|
|
|
6949
6976
|
hn as DsPasswordConfirmation,
|
|
6950
6977
|
an as DsProgress,
|
|
6951
6978
|
rn as DsSelect,
|
|
6952
|
-
|
|
6979
|
+
me as DsSpacer,
|
|
6953
6980
|
mn as DsSplitLayout,
|
|
6954
|
-
|
|
6981
|
+
aa as DsStepper,
|
|
6955
6982
|
Xn as DsSubtitle,
|
|
6956
|
-
|
|
6957
|
-
|
|
6983
|
+
ia as DsTable,
|
|
6984
|
+
pa as DsTabs,
|
|
6958
6985
|
on as DsTextArea,
|
|
6959
6986
|
We as DsTooltip,
|
|
6960
6987
|
yn as DsTwoColumns,
|
|
6961
6988
|
Ze as DsWrapper,
|
|
6962
|
-
|
|
6989
|
+
oa as ThemeProvider
|
|
6963
6990
|
};
|