@sme.up/ketchup2 2.0.0-SNAPSHOT-20250519142626 → 2.0.0-SNAPSHOT-20250520071925
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/dist/basic-components/cell/cell-types.d.ts +2 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/searchbar/search-bar-types.d.ts +3 -0
- package/dist/basic-components/searchbar/search-bar-types.d.ts.map +1 -0
- package/dist/basic-components/searchbar/search-bar.d.ts +3 -0
- package/dist/basic-components/searchbar/search-bar.d.ts.map +1 -0
- package/dist/components/spotlight/spotlight-types.d.ts +8 -0
- package/dist/components/spotlight/spotlight-types.d.ts.map +1 -0
- package/dist/components/spotlight/spotlight.d.ts +3 -0
- package/dist/components/spotlight/spotlight.d.ts.map +1 -0
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +1256 -1226
- package/dist/locale/en/translation.json.d.ts +2 -1
- package/dist/locale/it/translation.json.d.ts +2 -1
- package/dist/types/data-structures.d.ts +1 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +2 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -2,8 +2,8 @@ var Or = Object.defineProperty;
|
|
|
2
2
|
var Tr = (n, e, t) => e in n ? Or(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
3
|
var be = (n, e, t) => Tr(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as Me from "react";
|
|
5
|
-
import
|
|
6
|
-
var Fe = { exports: {} },
|
|
5
|
+
import dr, { useState as Q, useCallback as Te, useEffect as he, useRef as xe, useLayoutEffect as Rr, useId as Dr } from "react";
|
|
6
|
+
var Fe = { exports: {} }, De = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.js
|
|
@@ -13,29 +13,29 @@ var Fe = { exports: {} }, Re = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var Tt;
|
|
17
17
|
function Pr() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (Tt) return De;
|
|
19
|
+
Tt = 1;
|
|
20
20
|
var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
21
21
|
function t(r, s, i) {
|
|
22
|
-
var
|
|
23
|
-
if (i !== void 0 && (
|
|
22
|
+
var a = null;
|
|
23
|
+
if (i !== void 0 && (a = "" + i), s.key !== void 0 && (a = "" + s.key), "key" in s) {
|
|
24
24
|
i = {};
|
|
25
|
-
for (var
|
|
26
|
-
|
|
25
|
+
for (var o in s)
|
|
26
|
+
o !== "key" && (i[o] = s[o]);
|
|
27
27
|
} else i = s;
|
|
28
28
|
return s = i.ref, {
|
|
29
29
|
$$typeof: n,
|
|
30
30
|
type: r,
|
|
31
|
-
key:
|
|
31
|
+
key: a,
|
|
32
32
|
ref: s !== void 0 ? s : null,
|
|
33
33
|
props: i
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return De.Fragment = e, De.jsx = t, De.jsxs = t, De;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var Pe = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -45,24 +45,24 @@ var De = {};
|
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
48
|
+
var Rt;
|
|
49
49
|
function Ar() {
|
|
50
|
-
return
|
|
50
|
+
return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function n(d) {
|
|
52
52
|
if (d == null) return null;
|
|
53
53
|
if (typeof d == "function")
|
|
54
54
|
return d.$$typeof === C ? null : d.displayName || d.name || null;
|
|
55
55
|
if (typeof d == "string") return d;
|
|
56
56
|
switch (d) {
|
|
57
|
-
case
|
|
57
|
+
case y:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case R:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case E:
|
|
62
62
|
return "StrictMode";
|
|
63
|
-
case
|
|
63
|
+
case v:
|
|
64
64
|
return "Suspense";
|
|
65
|
-
case
|
|
65
|
+
case A:
|
|
66
66
|
return "SuspenseList";
|
|
67
67
|
case F:
|
|
68
68
|
return "Activity";
|
|
@@ -73,14 +73,14 @@ function Ar() {
|
|
|
73
73
|
), d.$$typeof) {
|
|
74
74
|
case g:
|
|
75
75
|
return "Portal";
|
|
76
|
-
case
|
|
76
|
+
case O:
|
|
77
77
|
return (d.displayName || "Context") + ".Provider";
|
|
78
|
-
case
|
|
78
|
+
case x:
|
|
79
79
|
return (d._context.displayName || "Context") + ".Consumer";
|
|
80
80
|
case D:
|
|
81
81
|
var m = d.render;
|
|
82
82
|
return d = d.displayName, d || (d = m.displayName || m.name || "", d = d !== "" ? "ForwardRef(" + d + ")" : "ForwardRef"), d;
|
|
83
|
-
case
|
|
83
|
+
case j:
|
|
84
84
|
return m = d.displayName || null, m !== null ? m : n(d.type) || "Memo";
|
|
85
85
|
case Y:
|
|
86
86
|
m = d._payload, d = d._init;
|
|
@@ -103,8 +103,8 @@ function Ar() {
|
|
|
103
103
|
}
|
|
104
104
|
if (m) {
|
|
105
105
|
m = console;
|
|
106
|
-
var
|
|
107
|
-
return
|
|
106
|
+
var b = m.error, _ = typeof Symbol == "function" && Symbol.toStringTag && d[Symbol.toStringTag] || d.constructor.name || "Object";
|
|
107
|
+
return b.call(
|
|
108
108
|
m,
|
|
109
109
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
110
|
_
|
|
@@ -112,7 +112,7 @@ function Ar() {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
function r(d) {
|
|
115
|
-
if (d ===
|
|
115
|
+
if (d === y) return "<>";
|
|
116
116
|
if (typeof d == "object" && d !== null && d.$$typeof === Y)
|
|
117
117
|
return "<...>";
|
|
118
118
|
try {
|
|
@@ -129,39 +129,39 @@ function Ar() {
|
|
|
129
129
|
function i() {
|
|
130
130
|
return Error("react-stack-top-frame");
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function a(d) {
|
|
133
133
|
if (U.call(d, "key")) {
|
|
134
134
|
var m = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
135
135
|
if (m && m.isReactWarning) return !1;
|
|
136
136
|
}
|
|
137
137
|
return d.key !== void 0;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
function
|
|
139
|
+
function o(d, m) {
|
|
140
|
+
function b() {
|
|
141
141
|
ne || (ne = !0, console.error(
|
|
142
142
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
143
143
|
m
|
|
144
144
|
));
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
get:
|
|
146
|
+
b.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
147
|
+
get: b,
|
|
148
148
|
configurable: !0
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
function l() {
|
|
152
152
|
var d = n(this.type);
|
|
153
|
-
return
|
|
153
|
+
return z[d] || (z[d] = !0, console.error(
|
|
154
154
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
155
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
156
156
|
}
|
|
157
|
-
function c(d, m,
|
|
158
|
-
return
|
|
157
|
+
function c(d, m, b, _, S, T, $, I) {
|
|
158
|
+
return b = T.ref, d = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: d,
|
|
161
161
|
key: m,
|
|
162
162
|
props: T,
|
|
163
163
|
_owner: S
|
|
164
|
-
}, (
|
|
164
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(d, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
167
167
|
}) : Object.defineProperty(d, "ref", { enumerable: !1, value: null }), d._store = {}, Object.defineProperty(d._store, "validated", {
|
|
@@ -178,7 +178,7 @@ function Ar() {
|
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
|
-
value:
|
|
181
|
+
value: $
|
|
182
182
|
}), Object.defineProperty(d, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
@@ -186,25 +186,25 @@ function Ar() {
|
|
|
186
186
|
value: I
|
|
187
187
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
188
188
|
}
|
|
189
|
-
function f(d, m,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
189
|
+
function f(d, m, b, _, S, T, $, I) {
|
|
190
|
+
var L = m.children;
|
|
191
|
+
if (L !== void 0)
|
|
192
192
|
if (_)
|
|
193
|
-
if (J(
|
|
194
|
-
for (_ = 0; _ <
|
|
195
|
-
u(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
if (J(L)) {
|
|
194
|
+
for (_ = 0; _ < L.length; _++)
|
|
195
|
+
u(L[_]);
|
|
196
|
+
Object.freeze && Object.freeze(L);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else u(
|
|
201
|
+
else u(L);
|
|
202
202
|
if (U.call(m, "key")) {
|
|
203
|
-
|
|
203
|
+
L = n(d);
|
|
204
204
|
var q = Object.keys(m).filter(function(re) {
|
|
205
205
|
return re !== "key";
|
|
206
206
|
});
|
|
207
|
-
_ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", k[
|
|
207
|
+
_ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", k[L + _] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -212,34 +212,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
_,
|
|
215
|
-
|
|
215
|
+
L,
|
|
216
216
|
q,
|
|
217
|
-
|
|
218
|
-
), k[
|
|
217
|
+
L
|
|
218
|
+
), k[L + _] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
221
|
-
|
|
220
|
+
if (L = null, b !== void 0 && (t(b), L = "" + b), a(m) && (t(m.key), L = "" + m.key), "key" in m) {
|
|
221
|
+
b = {};
|
|
222
222
|
for (var W in m)
|
|
223
|
-
W !== "key" && (
|
|
224
|
-
} else
|
|
225
|
-
return
|
|
226
|
-
|
|
223
|
+
W !== "key" && (b[W] = m[W]);
|
|
224
|
+
} else b = m;
|
|
225
|
+
return L && o(
|
|
226
|
+
b,
|
|
227
227
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
228
228
|
), c(
|
|
229
229
|
d,
|
|
230
|
-
|
|
230
|
+
L,
|
|
231
231
|
T,
|
|
232
232
|
S,
|
|
233
233
|
s(),
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
b,
|
|
235
|
+
$,
|
|
236
236
|
I
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
239
|
function u(d) {
|
|
240
240
|
typeof d == "object" && d !== null && d.$$typeof === h && d._store && (d._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var p =
|
|
242
|
+
var p = dr, h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), O = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, J = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
p = {
|
|
@@ -247,28 +247,28 @@ React keys must be passed directly to JSX without using spread:
|
|
|
247
247
|
return d();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var ne,
|
|
250
|
+
var ne, z = {}, V = p["react-stack-bottom-frame"].bind(
|
|
251
251
|
p,
|
|
252
252
|
i
|
|
253
253
|
)(), B = K(r(i)), k = {};
|
|
254
|
-
|
|
254
|
+
Pe.Fragment = y, Pe.jsx = function(d, m, b, _, S) {
|
|
255
255
|
var T = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return f(
|
|
257
257
|
d,
|
|
258
258
|
m,
|
|
259
|
-
|
|
259
|
+
b,
|
|
260
260
|
!1,
|
|
261
261
|
_,
|
|
262
262
|
S,
|
|
263
263
|
T ? Error("react-stack-top-frame") : V,
|
|
264
264
|
T ? K(r(d)) : B
|
|
265
265
|
);
|
|
266
|
-
},
|
|
266
|
+
}, Pe.jsxs = function(d, m, b, _, S) {
|
|
267
267
|
var T = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return f(
|
|
269
269
|
d,
|
|
270
270
|
m,
|
|
271
|
-
|
|
271
|
+
b,
|
|
272
272
|
!0,
|
|
273
273
|
_,
|
|
274
274
|
S,
|
|
@@ -276,14 +276,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
T ? K(r(d)) : B
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
|
-
}()),
|
|
279
|
+
}()), Pe;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var Dt;
|
|
282
282
|
function Cr() {
|
|
283
|
-
return
|
|
283
|
+
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Pr() : Fe.exports = Ar()), Fe.exports;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
function
|
|
285
|
+
var w = Cr();
|
|
286
|
+
function Lr(n, e) {
|
|
287
287
|
if (n == null) return {};
|
|
288
288
|
var t = {};
|
|
289
289
|
for (var r in n) if ({}.hasOwnProperty.call(n, r)) {
|
|
@@ -301,15 +301,15 @@ function Be() {
|
|
|
301
301
|
return n;
|
|
302
302
|
}, Be.apply(null, arguments);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
return
|
|
304
|
+
function yt(n, e) {
|
|
305
|
+
return yt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
|
|
306
306
|
return t.__proto__ = r, t;
|
|
307
|
-
},
|
|
307
|
+
}, yt(n, e);
|
|
308
308
|
}
|
|
309
309
|
function kr(n, e) {
|
|
310
|
-
n.prototype = Object.create(e.prototype), n.prototype.constructor = n,
|
|
310
|
+
n.prototype = Object.create(e.prototype), n.prototype.constructor = n, yt(n, e);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function at(n, e, t) {
|
|
313
313
|
if (t || arguments.length === 2) for (var r = 0, s = e.length, i; r < s; r++)
|
|
314
314
|
(i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
|
|
315
315
|
return n.concat(i || Array.prototype.slice.call(e));
|
|
@@ -320,13 +320,13 @@ var Ve = {};
|
|
|
320
320
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
321
321
|
* MIT Licensed
|
|
322
322
|
*/
|
|
323
|
-
var
|
|
324
|
-
function
|
|
325
|
-
if (
|
|
326
|
-
|
|
323
|
+
var Pt;
|
|
324
|
+
function $r() {
|
|
325
|
+
if (Pt) return Ve;
|
|
326
|
+
Pt = 1;
|
|
327
327
|
var n = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, r = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, i = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
328
|
-
Ve.format =
|
|
329
|
-
function
|
|
328
|
+
Ve.format = a, Ve.parse = o;
|
|
329
|
+
function a(u) {
|
|
330
330
|
if (!u || typeof u != "object")
|
|
331
331
|
throw new TypeError("argument obj is required");
|
|
332
332
|
var p = u.parameters, h = u.type;
|
|
@@ -334,14 +334,14 @@ function jr() {
|
|
|
334
334
|
throw new TypeError("invalid type");
|
|
335
335
|
var g = h;
|
|
336
336
|
if (p && typeof p == "object")
|
|
337
|
-
for (var
|
|
338
|
-
if (
|
|
337
|
+
for (var y, E = Object.keys(p).sort(), R = 0; R < E.length; R++) {
|
|
338
|
+
if (y = E[R], !t.test(y))
|
|
339
339
|
throw new TypeError("invalid parameter name");
|
|
340
|
-
g += "; " +
|
|
340
|
+
g += "; " + y + "=" + c(p[y]);
|
|
341
341
|
}
|
|
342
342
|
return g;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function o(u) {
|
|
345
345
|
if (!u)
|
|
346
346
|
throw new TypeError("argument string is required");
|
|
347
347
|
var p = typeof u == "object" ? l(u) : u;
|
|
@@ -350,18 +350,18 @@ function jr() {
|
|
|
350
350
|
var h = p.indexOf(";"), g = h !== -1 ? p.slice(0, h).trim() : p.trim();
|
|
351
351
|
if (!i.test(g))
|
|
352
352
|
throw new TypeError("invalid media type");
|
|
353
|
-
var
|
|
353
|
+
var y = new f(g.toLowerCase());
|
|
354
354
|
if (h !== -1) {
|
|
355
|
-
var E,
|
|
356
|
-
for (n.lastIndex = h;
|
|
357
|
-
if (
|
|
355
|
+
var E, R, x;
|
|
356
|
+
for (n.lastIndex = h; R = n.exec(p); ) {
|
|
357
|
+
if (R.index !== h)
|
|
358
358
|
throw new TypeError("invalid parameter format");
|
|
359
|
-
h +=
|
|
359
|
+
h += R[0].length, E = R[1].toLowerCase(), x = R[2], x.charCodeAt(0) === 34 && (x = x.slice(1, -1), x.indexOf("\\") !== -1 && (x = x.replace(r, "$1"))), y.parameters[E] = x;
|
|
360
360
|
}
|
|
361
361
|
if (h !== p.length)
|
|
362
362
|
throw new TypeError("invalid parameter format");
|
|
363
363
|
}
|
|
364
|
-
return
|
|
364
|
+
return y;
|
|
365
365
|
}
|
|
366
366
|
function l(u) {
|
|
367
367
|
var p;
|
|
@@ -382,11 +382,11 @@ function jr() {
|
|
|
382
382
|
}
|
|
383
383
|
return Ve;
|
|
384
384
|
}
|
|
385
|
-
var
|
|
385
|
+
var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
386
386
|
return e.cloneNode(!0);
|
|
387
|
-
},
|
|
387
|
+
}, At = function() {
|
|
388
388
|
return window.location.protocol === "file:";
|
|
389
|
-
},
|
|
389
|
+
}, hr = function(e, t, r) {
|
|
390
390
|
var s = new XMLHttpRequest();
|
|
391
391
|
s.onreadystatechange = function() {
|
|
392
392
|
try {
|
|
@@ -394,33 +394,33 @@ var Lr = jr(), Oe = /* @__PURE__ */ new Map(), dr = function(e) {
|
|
|
394
394
|
var i = s.getResponseHeader("Content-Type");
|
|
395
395
|
if (!i)
|
|
396
396
|
throw new Error("Content type not found");
|
|
397
|
-
var
|
|
398
|
-
if (!(
|
|
399
|
-
throw new Error("Invalid content type: ".concat(
|
|
397
|
+
var a = jr.parse(i).type;
|
|
398
|
+
if (!(a === "image/svg+xml" || a === "text/plain"))
|
|
399
|
+
throw new Error("Invalid content type: ".concat(a));
|
|
400
400
|
}
|
|
401
401
|
if (s.readyState === 4) {
|
|
402
402
|
if (s.status === 404 || s.responseXML === null)
|
|
403
|
-
throw new Error(
|
|
404
|
-
if (s.status === 200 ||
|
|
403
|
+
throw new Error(At() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
404
|
+
if (s.status === 200 || At() && s.status === 0)
|
|
405
405
|
r(null, s);
|
|
406
406
|
else
|
|
407
407
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
408
408
|
}
|
|
409
|
-
} catch (
|
|
410
|
-
if (s.abort(),
|
|
411
|
-
r(
|
|
409
|
+
} catch (o) {
|
|
410
|
+
if (s.abort(), o instanceof Error)
|
|
411
|
+
r(o, s);
|
|
412
412
|
else
|
|
413
|
-
throw
|
|
413
|
+
throw o;
|
|
414
414
|
}
|
|
415
415
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
416
|
-
}, ye = {},
|
|
416
|
+
}, ye = {}, Ct = function(e, t) {
|
|
417
417
|
ye[e] = ye[e] || [], ye[e].push(t);
|
|
418
418
|
}, Ir = function(e) {
|
|
419
|
-
for (var t = function(
|
|
419
|
+
for (var t = function(a, o) {
|
|
420
420
|
setTimeout(function() {
|
|
421
421
|
if (Array.isArray(ye[e])) {
|
|
422
|
-
var l = Oe.get(e), c = ye[e][
|
|
423
|
-
l instanceof SVGSVGElement && c(null,
|
|
422
|
+
var l = Oe.get(e), c = ye[e][a];
|
|
423
|
+
l instanceof SVGSVGElement && c(null, pr(l)), l instanceof Error && c(l), a === ye[e].length - 1 && delete ye[e];
|
|
424
424
|
}
|
|
425
425
|
}, 0);
|
|
426
426
|
}, r = 0, s = ye[e].length; r < s; r++)
|
|
@@ -429,40 +429,40 @@ var Lr = jr(), Oe = /* @__PURE__ */ new Map(), dr = function(e) {
|
|
|
429
429
|
if (Oe.has(e)) {
|
|
430
430
|
var s = Oe.get(e);
|
|
431
431
|
if (s === void 0) {
|
|
432
|
-
|
|
432
|
+
Ct(e, r);
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
if (s instanceof SVGSVGElement) {
|
|
436
|
-
r(null,
|
|
436
|
+
r(null, pr(s));
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
Oe.set(e, void 0),
|
|
441
|
-
var
|
|
442
|
-
i ? Oe.set(e, i) : ((
|
|
440
|
+
Oe.set(e, void 0), Ct(e, r), hr(e, t, function(i, a) {
|
|
441
|
+
var o;
|
|
442
|
+
i ? Oe.set(e, i) : ((o = a.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Oe.set(e, a.responseXML.documentElement), Ir(e);
|
|
443
443
|
});
|
|
444
444
|
}, Mr = function(e, t, r) {
|
|
445
|
-
|
|
446
|
-
var
|
|
447
|
-
s ? r(s) : ((
|
|
445
|
+
hr(e, t, function(s, i) {
|
|
446
|
+
var a;
|
|
447
|
+
s ? r(s) : ((a = i.responseXML) === null || a === void 0 ? void 0 : a.documentElement) instanceof SVGSVGElement && r(null, i.responseXML.documentElement);
|
|
448
448
|
});
|
|
449
449
|
}, Fr = 0, Vr = function() {
|
|
450
450
|
return ++Fr;
|
|
451
|
-
},
|
|
451
|
+
}, fe = [], Lt = {}, Yr = "http://www.w3.org/2000/svg", ot = "http://www.w3.org/1999/xlink", kt = function(e, t, r, s, i, a, o) {
|
|
452
452
|
var l = e.getAttribute("data-src") || e.getAttribute("src");
|
|
453
453
|
if (!l) {
|
|
454
|
-
|
|
454
|
+
o(new Error("Invalid data-src or src attribute"));
|
|
455
455
|
return;
|
|
456
456
|
}
|
|
457
|
-
if (
|
|
458
|
-
|
|
457
|
+
if (fe.indexOf(e) !== -1) {
|
|
458
|
+
fe.splice(fe.indexOf(e), 1), e = null;
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
fe.push(e), e.setAttribute("src", "");
|
|
462
462
|
var c = s ? Nr : Mr;
|
|
463
463
|
c(l, i, function(f, u) {
|
|
464
464
|
if (!u) {
|
|
465
|
-
|
|
465
|
+
fe.splice(fe.indexOf(e), 1), e = null, o(f);
|
|
466
466
|
return;
|
|
467
467
|
}
|
|
468
468
|
var p = e.getAttribute("id");
|
|
@@ -471,19 +471,19 @@ var Lr = jr(), Oe = /* @__PURE__ */ new Map(), dr = function(e) {
|
|
|
471
471
|
h && u.setAttribute("title", h);
|
|
472
472
|
var g = e.getAttribute("width");
|
|
473
473
|
g && u.setAttribute("width", g);
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
var E = Array.from(new Set(
|
|
474
|
+
var y = e.getAttribute("height");
|
|
475
|
+
y && u.setAttribute("height", y);
|
|
476
|
+
var E = Array.from(new Set(at(at(at([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
477
477
|
u.setAttribute("class", E);
|
|
478
|
-
var
|
|
479
|
-
|
|
480
|
-
var
|
|
478
|
+
var R = e.getAttribute("style");
|
|
479
|
+
R && u.setAttribute("style", R), u.setAttribute("data-src", l);
|
|
480
|
+
var x = [].filter.call(e.attributes, function(B) {
|
|
481
481
|
return /^data-\w[\w-]*$/.test(B.name);
|
|
482
482
|
});
|
|
483
|
-
if (Array.prototype.forEach.call(
|
|
483
|
+
if (Array.prototype.forEach.call(x, function(B) {
|
|
484
484
|
B.name && B.value && u.setAttribute(B.name, B.value);
|
|
485
485
|
}), r) {
|
|
486
|
-
var
|
|
486
|
+
var O = {
|
|
487
487
|
clipPath: ["clip-path"],
|
|
488
488
|
"color-profile": ["color-profile"],
|
|
489
489
|
cursor: ["cursor"],
|
|
@@ -494,59 +494,59 @@ var Lr = jr(), Oe = /* @__PURE__ */ new Map(), dr = function(e) {
|
|
|
494
494
|
path: [],
|
|
495
495
|
pattern: ["fill", "stroke"],
|
|
496
496
|
radialGradient: ["fill", "stroke"]
|
|
497
|
-
}, D,
|
|
498
|
-
Object.keys(
|
|
499
|
-
D = B,
|
|
497
|
+
}, D, v, A, j, Y;
|
|
498
|
+
Object.keys(O).forEach(function(B) {
|
|
499
|
+
D = B, A = O[B], v = u.querySelectorAll(D + "[id]");
|
|
500
500
|
for (var k = function(_, S) {
|
|
501
|
-
|
|
501
|
+
j = v[_].id, Y = j + "-" + Vr();
|
|
502
502
|
var T;
|
|
503
|
-
Array.prototype.forEach.call(
|
|
504
|
-
T = u.querySelectorAll("[" + N + '*="' +
|
|
505
|
-
for (var
|
|
506
|
-
var te = T[
|
|
507
|
-
te && !te.match(new RegExp('url\\("?#' +
|
|
503
|
+
Array.prototype.forEach.call(A, function(N) {
|
|
504
|
+
T = u.querySelectorAll("[" + N + '*="' + j + '"]');
|
|
505
|
+
for (var G = 0, ee = T.length; G < ee; G++) {
|
|
506
|
+
var te = T[G].getAttribute(N);
|
|
507
|
+
te && !te.match(new RegExp('url\\("?#' + j + '"?\\)')) || T[G].setAttribute(N, "url(#" + Y + ")");
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
|
-
for (var
|
|
511
|
-
var W =
|
|
512
|
-
W && W.toString() === "#" +
|
|
510
|
+
for (var $ = u.querySelectorAll("[*|href]"), I = [], L = 0, q = $.length; L < q; L++) {
|
|
511
|
+
var W = $[L].getAttributeNS(ot, "href");
|
|
512
|
+
W && W.toString() === "#" + v[_].id && I.push($[L]);
|
|
513
513
|
}
|
|
514
|
-
for (var re = 0,
|
|
515
|
-
I[re].setAttributeNS(
|
|
516
|
-
|
|
517
|
-
}, d = 0, m =
|
|
514
|
+
for (var re = 0, P = I.length; re < P; re++)
|
|
515
|
+
I[re].setAttributeNS(ot, "href", "#" + Y);
|
|
516
|
+
v[_].id = Y;
|
|
517
|
+
}, d = 0, m = v.length; d < m; d++)
|
|
518
518
|
k(d);
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
u.removeAttribute("xmlns:a");
|
|
522
522
|
for (var F = u.querySelectorAll("script"), C = [], M, U, J = 0, K = F.length; J < K; J++)
|
|
523
523
|
U = F[J].getAttribute("type"), (!U || U === "application/ecmascript" || U === "application/javascript" || U === "text/javascript") && (M = F[J].innerText || F[J].textContent, M && C.push(M), u.removeChild(F[J]));
|
|
524
|
-
if (C.length > 0 && (t === "always" || t === "once" && !
|
|
525
|
-
for (var ne = 0,
|
|
524
|
+
if (C.length > 0 && (t === "always" || t === "once" && !Lt[l])) {
|
|
525
|
+
for (var ne = 0, z = C.length; ne < z; ne++)
|
|
526
526
|
new Function(C[ne])(window);
|
|
527
|
-
|
|
527
|
+
Lt[l] = !0;
|
|
528
528
|
}
|
|
529
529
|
var V = u.querySelectorAll("style");
|
|
530
530
|
if (Array.prototype.forEach.call(V, function(B) {
|
|
531
531
|
B.textContent += "";
|
|
532
|
-
}), u.setAttribute("xmlns", Yr), u.setAttribute("xmlns:xlink",
|
|
533
|
-
|
|
532
|
+
}), u.setAttribute("xmlns", Yr), u.setAttribute("xmlns:xlink", ot), a(u), !e.parentNode) {
|
|
533
|
+
fe.splice(fe.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
536
|
-
e.parentNode.replaceChild(u, e),
|
|
536
|
+
e.parentNode.replaceChild(u, e), fe.splice(fe.indexOf(e), 1), e = null, o(null, u);
|
|
537
537
|
});
|
|
538
538
|
}, Ur = function(e, t) {
|
|
539
539
|
var r = t === void 0 ? {} : t, s = r.afterAll, i = s === void 0 ? function() {
|
|
540
|
-
} : s,
|
|
541
|
-
} :
|
|
542
|
-
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts, h = p === void 0 ? "never" : p, g = r.httpRequestWithCredentials,
|
|
540
|
+
} : s, a = r.afterEach, o = a === void 0 ? function() {
|
|
541
|
+
} : a, l = r.beforeEach, c = l === void 0 ? function() {
|
|
542
|
+
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts, h = p === void 0 ? "never" : p, g = r.httpRequestWithCredentials, y = g === void 0 ? !1 : g, E = r.renumerateIRIElements, R = E === void 0 ? !0 : E;
|
|
543
543
|
if (e && "length" in e)
|
|
544
|
-
for (var
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
for (var x = 0, O = 0, D = e.length; O < D; O++)
|
|
545
|
+
kt(e[O], h, R, u, y, c, function(v, A) {
|
|
546
|
+
o(v, A), e && "length" in e && e.length === ++x && i(x);
|
|
547
547
|
});
|
|
548
|
-
else e ?
|
|
549
|
-
|
|
548
|
+
else e ? kt(e, h, R, u, y, c, function(v, A) {
|
|
549
|
+
o(v, A), i(1), e = null;
|
|
550
550
|
}) : i(0);
|
|
551
551
|
}, Ye = { exports: {} }, Ue = { exports: {} }, X = {};
|
|
552
552
|
/** @license React v16.13.1
|
|
@@ -557,71 +557,71 @@ var Lr = jr(), Oe = /* @__PURE__ */ new Map(), dr = function(e) {
|
|
|
557
557
|
* This source code is licensed under the MIT license found in the
|
|
558
558
|
* LICENSE file in the root directory of this source tree.
|
|
559
559
|
*/
|
|
560
|
-
var
|
|
560
|
+
var $t;
|
|
561
561
|
function Wr() {
|
|
562
|
-
if (
|
|
563
|
-
|
|
564
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114,
|
|
565
|
-
function
|
|
566
|
-
if (typeof
|
|
567
|
-
var
|
|
568
|
-
switch (
|
|
562
|
+
if ($t) return X;
|
|
563
|
+
$t = 1;
|
|
564
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, R = n ? Symbol.for("react.responder") : 60118, x = n ? Symbol.for("react.scope") : 60119;
|
|
565
|
+
function O(v) {
|
|
566
|
+
if (typeof v == "object" && v !== null) {
|
|
567
|
+
var A = v.$$typeof;
|
|
568
|
+
switch (A) {
|
|
569
569
|
case e:
|
|
570
|
-
switch (
|
|
570
|
+
switch (v = v.type, v) {
|
|
571
571
|
case l:
|
|
572
572
|
case c:
|
|
573
573
|
case r:
|
|
574
574
|
case i:
|
|
575
575
|
case s:
|
|
576
576
|
case u:
|
|
577
|
-
return
|
|
577
|
+
return v;
|
|
578
578
|
default:
|
|
579
|
-
switch (
|
|
580
|
-
case
|
|
579
|
+
switch (v = v && v.$$typeof, v) {
|
|
580
|
+
case o:
|
|
581
581
|
case f:
|
|
582
582
|
case g:
|
|
583
583
|
case h:
|
|
584
|
-
case
|
|
585
|
-
return
|
|
584
|
+
case a:
|
|
585
|
+
return v;
|
|
586
586
|
default:
|
|
587
|
-
return
|
|
587
|
+
return A;
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
case t:
|
|
591
|
-
return
|
|
591
|
+
return A;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function D(
|
|
596
|
-
return
|
|
597
|
-
}
|
|
598
|
-
return X.AsyncMode = l, X.ConcurrentMode = c, X.ContextConsumer =
|
|
599
|
-
return D(
|
|
600
|
-
}, X.isConcurrentMode = D, X.isContextConsumer = function(
|
|
601
|
-
return
|
|
602
|
-
}, X.isContextProvider = function(
|
|
603
|
-
return
|
|
604
|
-
}, X.isElement = function(
|
|
605
|
-
return typeof
|
|
606
|
-
}, X.isForwardRef = function(
|
|
607
|
-
return
|
|
608
|
-
}, X.isFragment = function(
|
|
609
|
-
return
|
|
610
|
-
}, X.isLazy = function(
|
|
611
|
-
return
|
|
612
|
-
}, X.isMemo = function(
|
|
613
|
-
return
|
|
614
|
-
}, X.isPortal = function(
|
|
615
|
-
return
|
|
616
|
-
}, X.isProfiler = function(
|
|
617
|
-
return
|
|
618
|
-
}, X.isStrictMode = function(
|
|
619
|
-
return
|
|
620
|
-
}, X.isSuspense = function(
|
|
621
|
-
return
|
|
622
|
-
}, X.isValidElementType = function(
|
|
623
|
-
return typeof
|
|
624
|
-
}, X.typeOf =
|
|
595
|
+
function D(v) {
|
|
596
|
+
return O(v) === c;
|
|
597
|
+
}
|
|
598
|
+
return X.AsyncMode = l, X.ConcurrentMode = c, X.ContextConsumer = o, X.ContextProvider = a, X.Element = e, X.ForwardRef = f, X.Fragment = r, X.Lazy = g, X.Memo = h, X.Portal = t, X.Profiler = i, X.StrictMode = s, X.Suspense = u, X.isAsyncMode = function(v) {
|
|
599
|
+
return D(v) || O(v) === l;
|
|
600
|
+
}, X.isConcurrentMode = D, X.isContextConsumer = function(v) {
|
|
601
|
+
return O(v) === o;
|
|
602
|
+
}, X.isContextProvider = function(v) {
|
|
603
|
+
return O(v) === a;
|
|
604
|
+
}, X.isElement = function(v) {
|
|
605
|
+
return typeof v == "object" && v !== null && v.$$typeof === e;
|
|
606
|
+
}, X.isForwardRef = function(v) {
|
|
607
|
+
return O(v) === f;
|
|
608
|
+
}, X.isFragment = function(v) {
|
|
609
|
+
return O(v) === r;
|
|
610
|
+
}, X.isLazy = function(v) {
|
|
611
|
+
return O(v) === g;
|
|
612
|
+
}, X.isMemo = function(v) {
|
|
613
|
+
return O(v) === h;
|
|
614
|
+
}, X.isPortal = function(v) {
|
|
615
|
+
return O(v) === t;
|
|
616
|
+
}, X.isProfiler = function(v) {
|
|
617
|
+
return O(v) === i;
|
|
618
|
+
}, X.isStrictMode = function(v) {
|
|
619
|
+
return O(v) === s;
|
|
620
|
+
}, X.isSuspense = function(v) {
|
|
621
|
+
return O(v) === u;
|
|
622
|
+
}, X.isValidElementType = function(v) {
|
|
623
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === c || v === i || v === s || v === u || v === p || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === a || v.$$typeof === o || v.$$typeof === f || v.$$typeof === E || v.$$typeof === R || v.$$typeof === x || v.$$typeof === y);
|
|
624
|
+
}, X.typeOf = O, X;
|
|
625
625
|
}
|
|
626
626
|
var Z = {};
|
|
627
627
|
/** @license React v16.13.1
|
|
@@ -635,34 +635,34 @@ var Z = {};
|
|
|
635
635
|
var jt;
|
|
636
636
|
function Hr() {
|
|
637
637
|
return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
638
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114,
|
|
639
|
-
function
|
|
640
|
-
return typeof
|
|
641
|
-
|
|
638
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, i = n ? Symbol.for("react.profiler") : 60114, a = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, E = n ? Symbol.for("react.fundamental") : 60117, R = n ? Symbol.for("react.responder") : 60118, x = n ? Symbol.for("react.scope") : 60119;
|
|
639
|
+
function O(P) {
|
|
640
|
+
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
641
|
+
P === r || P === c || P === i || P === s || P === u || P === p || typeof P == "object" && P !== null && (P.$$typeof === g || P.$$typeof === h || P.$$typeof === a || P.$$typeof === o || P.$$typeof === f || P.$$typeof === E || P.$$typeof === R || P.$$typeof === x || P.$$typeof === y);
|
|
642
642
|
}
|
|
643
|
-
function D(
|
|
644
|
-
if (typeof
|
|
645
|
-
var N =
|
|
643
|
+
function D(P) {
|
|
644
|
+
if (typeof P == "object" && P !== null) {
|
|
645
|
+
var N = P.$$typeof;
|
|
646
646
|
switch (N) {
|
|
647
647
|
case e:
|
|
648
|
-
var
|
|
649
|
-
switch (
|
|
648
|
+
var G = P.type;
|
|
649
|
+
switch (G) {
|
|
650
650
|
case l:
|
|
651
651
|
case c:
|
|
652
652
|
case r:
|
|
653
653
|
case i:
|
|
654
654
|
case s:
|
|
655
655
|
case u:
|
|
656
|
-
return
|
|
656
|
+
return G;
|
|
657
657
|
default:
|
|
658
|
-
var
|
|
659
|
-
switch (
|
|
660
|
-
case
|
|
658
|
+
var ee = G && G.$$typeof;
|
|
659
|
+
switch (ee) {
|
|
660
|
+
case o:
|
|
661
661
|
case f:
|
|
662
662
|
case g:
|
|
663
663
|
case h:
|
|
664
|
-
case
|
|
665
|
-
return
|
|
664
|
+
case a:
|
|
665
|
+
return ee;
|
|
666
666
|
default:
|
|
667
667
|
return N;
|
|
668
668
|
}
|
|
@@ -672,62 +672,62 @@ function Hr() {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
var
|
|
676
|
-
function k(
|
|
677
|
-
return B || (B = !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.")), d(
|
|
675
|
+
var v = l, A = c, j = o, Y = a, F = e, C = f, M = r, U = g, J = h, K = t, ne = i, z = s, V = u, B = !1;
|
|
676
|
+
function k(P) {
|
|
677
|
+
return B || (B = !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.")), d(P) || D(P) === l;
|
|
678
678
|
}
|
|
679
|
-
function d(
|
|
680
|
-
return D(
|
|
679
|
+
function d(P) {
|
|
680
|
+
return D(P) === c;
|
|
681
681
|
}
|
|
682
|
-
function m(
|
|
683
|
-
return D(
|
|
682
|
+
function m(P) {
|
|
683
|
+
return D(P) === o;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return D(
|
|
685
|
+
function b(P) {
|
|
686
|
+
return D(P) === a;
|
|
687
687
|
}
|
|
688
|
-
function _(
|
|
689
|
-
return typeof
|
|
688
|
+
function _(P) {
|
|
689
|
+
return typeof P == "object" && P !== null && P.$$typeof === e;
|
|
690
690
|
}
|
|
691
|
-
function S(
|
|
692
|
-
return D(
|
|
691
|
+
function S(P) {
|
|
692
|
+
return D(P) === f;
|
|
693
693
|
}
|
|
694
|
-
function T(
|
|
695
|
-
return D(
|
|
694
|
+
function T(P) {
|
|
695
|
+
return D(P) === r;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
698
|
-
return D(
|
|
697
|
+
function $(P) {
|
|
698
|
+
return D(P) === g;
|
|
699
699
|
}
|
|
700
|
-
function I(
|
|
701
|
-
return D(
|
|
700
|
+
function I(P) {
|
|
701
|
+
return D(P) === h;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
704
|
-
return D(
|
|
703
|
+
function L(P) {
|
|
704
|
+
return D(P) === t;
|
|
705
705
|
}
|
|
706
|
-
function q(
|
|
707
|
-
return D(
|
|
706
|
+
function q(P) {
|
|
707
|
+
return D(P) === i;
|
|
708
708
|
}
|
|
709
|
-
function W(
|
|
710
|
-
return D(
|
|
709
|
+
function W(P) {
|
|
710
|
+
return D(P) === s;
|
|
711
711
|
}
|
|
712
|
-
function re(
|
|
713
|
-
return D(
|
|
712
|
+
function re(P) {
|
|
713
|
+
return D(P) === u;
|
|
714
714
|
}
|
|
715
|
-
Z.AsyncMode =
|
|
715
|
+
Z.AsyncMode = v, Z.ConcurrentMode = A, Z.ContextConsumer = j, Z.ContextProvider = Y, Z.Element = F, Z.ForwardRef = C, Z.Fragment = M, Z.Lazy = U, Z.Memo = J, Z.Portal = K, Z.Profiler = ne, Z.StrictMode = z, Z.Suspense = V, Z.isAsyncMode = k, Z.isConcurrentMode = d, Z.isContextConsumer = m, Z.isContextProvider = b, Z.isElement = _, Z.isForwardRef = S, Z.isFragment = T, Z.isLazy = $, Z.isMemo = I, Z.isPortal = L, Z.isProfiler = q, Z.isStrictMode = W, Z.isSuspense = re, Z.isValidElementType = O, Z.typeOf = D;
|
|
716
716
|
}()), Z;
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
return
|
|
718
|
+
var It;
|
|
719
|
+
function mr() {
|
|
720
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Ue.exports = Wr() : Ue.exports = Hr()), Ue.exports;
|
|
721
721
|
}
|
|
722
722
|
/*
|
|
723
723
|
object-assign
|
|
724
724
|
(c) Sindre Sorhus
|
|
725
725
|
@license MIT
|
|
726
726
|
*/
|
|
727
|
-
var
|
|
727
|
+
var lt, Nt;
|
|
728
728
|
function qr() {
|
|
729
|
-
if (
|
|
730
|
-
|
|
729
|
+
if (Nt) return lt;
|
|
730
|
+
Nt = 1;
|
|
731
731
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
732
732
|
function r(i) {
|
|
733
733
|
if (i == null)
|
|
@@ -741,10 +741,10 @@ function qr() {
|
|
|
741
741
|
var i = new String("abc");
|
|
742
742
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
743
743
|
return !1;
|
|
744
|
-
for (var
|
|
745
|
-
|
|
746
|
-
var l = Object.getOwnPropertyNames(
|
|
747
|
-
return
|
|
744
|
+
for (var a = {}, o = 0; o < 10; o++)
|
|
745
|
+
a["_" + String.fromCharCode(o)] = o;
|
|
746
|
+
var l = Object.getOwnPropertyNames(a).map(function(f) {
|
|
747
|
+
return a[f];
|
|
748
748
|
});
|
|
749
749
|
if (l.join("") !== "0123456789")
|
|
750
750
|
return !1;
|
|
@@ -756,49 +756,49 @@ function qr() {
|
|
|
756
756
|
return !1;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
return
|
|
760
|
-
for (var
|
|
761
|
-
|
|
762
|
-
for (var u in
|
|
763
|
-
e.call(
|
|
759
|
+
return lt = s() ? Object.assign : function(i, a) {
|
|
760
|
+
for (var o, l = r(i), c, f = 1; f < arguments.length; f++) {
|
|
761
|
+
o = Object(arguments[f]);
|
|
762
|
+
for (var u in o)
|
|
763
|
+
e.call(o, u) && (l[u] = o[u]);
|
|
764
764
|
if (n) {
|
|
765
|
-
c = n(
|
|
765
|
+
c = n(o);
|
|
766
766
|
for (var p = 0; p < c.length; p++)
|
|
767
|
-
t.call(
|
|
767
|
+
t.call(o, c[p]) && (l[c[p]] = o[c[p]]);
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
return l;
|
|
771
|
-
},
|
|
772
|
-
}
|
|
773
|
-
var lt, Nt;
|
|
774
|
-
function St() {
|
|
775
|
-
if (Nt) return lt;
|
|
776
|
-
Nt = 1;
|
|
777
|
-
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
778
|
-
return lt = n, lt;
|
|
771
|
+
}, lt;
|
|
779
772
|
}
|
|
780
773
|
var ct, Mt;
|
|
781
|
-
function
|
|
782
|
-
|
|
774
|
+
function Et() {
|
|
775
|
+
if (Mt) return ct;
|
|
776
|
+
Mt = 1;
|
|
777
|
+
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
778
|
+
return ct = n, ct;
|
|
783
779
|
}
|
|
784
780
|
var ut, Ft;
|
|
781
|
+
function gr() {
|
|
782
|
+
return Ft || (Ft = 1, ut = Function.call.bind(Object.prototype.hasOwnProperty)), ut;
|
|
783
|
+
}
|
|
784
|
+
var ft, Vt;
|
|
785
785
|
function Kr() {
|
|
786
|
-
if (
|
|
787
|
-
|
|
786
|
+
if (Vt) return ft;
|
|
787
|
+
Vt = 1;
|
|
788
788
|
var n = function() {
|
|
789
789
|
};
|
|
790
790
|
if (process.env.NODE_ENV !== "production") {
|
|
791
|
-
var e = /* @__PURE__ */
|
|
791
|
+
var e = /* @__PURE__ */ Et(), t = {}, r = /* @__PURE__ */ gr();
|
|
792
792
|
n = function(i) {
|
|
793
|
-
var
|
|
794
|
-
typeof console < "u" && console.error(
|
|
793
|
+
var a = "Warning: " + i;
|
|
794
|
+
typeof console < "u" && console.error(a);
|
|
795
795
|
try {
|
|
796
|
-
throw new Error(
|
|
796
|
+
throw new Error(a);
|
|
797
797
|
} catch {
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
800
|
}
|
|
801
|
-
function s(i,
|
|
801
|
+
function s(i, a, o, l, c) {
|
|
802
802
|
if (process.env.NODE_ENV !== "production") {
|
|
803
803
|
for (var f in i)
|
|
804
804
|
if (r(i, f)) {
|
|
@@ -806,21 +806,21 @@ function Kr() {
|
|
|
806
806
|
try {
|
|
807
807
|
if (typeof i[f] != "function") {
|
|
808
808
|
var p = Error(
|
|
809
|
-
(l || "React class") + ": " +
|
|
809
|
+
(l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
810
810
|
);
|
|
811
811
|
throw p.name = "Invariant Violation", p;
|
|
812
812
|
}
|
|
813
|
-
u = i[f](
|
|
813
|
+
u = i[f](a, f, l, o, null, e);
|
|
814
814
|
} catch (g) {
|
|
815
815
|
u = g;
|
|
816
816
|
}
|
|
817
817
|
if (u && !(u instanceof Error) && n(
|
|
818
|
-
(l || "React class") + ": type specification of " +
|
|
818
|
+
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
819
819
|
), u instanceof Error && !(u.message in t)) {
|
|
820
820
|
t[u.message] = !0;
|
|
821
821
|
var h = c ? c() : "";
|
|
822
822
|
n(
|
|
823
|
-
"Failed " +
|
|
823
|
+
"Failed " + o + " type: " + u.message + (h ?? "")
|
|
824
824
|
);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
@@ -828,26 +828,26 @@ function Kr() {
|
|
|
828
828
|
}
|
|
829
829
|
return s.resetWarningCache = function() {
|
|
830
830
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
831
|
-
},
|
|
831
|
+
}, ft = s, ft;
|
|
832
832
|
}
|
|
833
|
-
var
|
|
833
|
+
var dt, Yt;
|
|
834
834
|
function Br() {
|
|
835
|
-
if (
|
|
836
|
-
|
|
837
|
-
var n =
|
|
835
|
+
if (Yt) return dt;
|
|
836
|
+
Yt = 1;
|
|
837
|
+
var n = mr(), e = qr(), t = /* @__PURE__ */ Et(), r = /* @__PURE__ */ gr(), s = /* @__PURE__ */ Kr(), i = function() {
|
|
838
838
|
};
|
|
839
|
-
process.env.NODE_ENV !== "production" && (i = function(
|
|
840
|
-
var l = "Warning: " +
|
|
839
|
+
process.env.NODE_ENV !== "production" && (i = function(o) {
|
|
840
|
+
var l = "Warning: " + o;
|
|
841
841
|
typeof console < "u" && console.error(l);
|
|
842
842
|
try {
|
|
843
843
|
throw new Error(l);
|
|
844
844
|
} catch {
|
|
845
845
|
}
|
|
846
846
|
});
|
|
847
|
-
function
|
|
847
|
+
function a() {
|
|
848
848
|
return null;
|
|
849
849
|
}
|
|
850
|
-
return
|
|
850
|
+
return dt = function(o, l) {
|
|
851
851
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
852
852
|
function u(d) {
|
|
853
853
|
var m = d && (c && d[c] || d[f]);
|
|
@@ -855,22 +855,22 @@ function Br() {
|
|
|
855
855
|
return m;
|
|
856
856
|
}
|
|
857
857
|
var p = "<<anonymous>>", h = {
|
|
858
|
-
array:
|
|
859
|
-
bigint:
|
|
860
|
-
bool:
|
|
861
|
-
func:
|
|
862
|
-
number:
|
|
863
|
-
object:
|
|
864
|
-
string:
|
|
865
|
-
symbol:
|
|
866
|
-
any:
|
|
867
|
-
arrayOf:
|
|
858
|
+
array: R("array"),
|
|
859
|
+
bigint: R("bigint"),
|
|
860
|
+
bool: R("boolean"),
|
|
861
|
+
func: R("function"),
|
|
862
|
+
number: R("number"),
|
|
863
|
+
object: R("object"),
|
|
864
|
+
string: R("string"),
|
|
865
|
+
symbol: R("symbol"),
|
|
866
|
+
any: x(),
|
|
867
|
+
arrayOf: O,
|
|
868
868
|
element: D(),
|
|
869
|
-
elementType:
|
|
870
|
-
instanceOf:
|
|
869
|
+
elementType: v(),
|
|
870
|
+
instanceOf: A,
|
|
871
871
|
node: C(),
|
|
872
872
|
objectOf: Y,
|
|
873
|
-
oneOf:
|
|
873
|
+
oneOf: j,
|
|
874
874
|
oneOfType: F,
|
|
875
875
|
shape: U,
|
|
876
876
|
exact: J
|
|
@@ -878,40 +878,40 @@ function Br() {
|
|
|
878
878
|
function g(d, m) {
|
|
879
879
|
return d === m ? d !== 0 || 1 / d === 1 / m : d !== d && m !== m;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function y(d, m) {
|
|
882
882
|
this.message = d, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
|
883
883
|
}
|
|
884
|
-
|
|
884
|
+
y.prototype = Error.prototype;
|
|
885
885
|
function E(d) {
|
|
886
886
|
if (process.env.NODE_ENV !== "production")
|
|
887
|
-
var m = {},
|
|
888
|
-
function _(T,
|
|
889
|
-
if (
|
|
887
|
+
var m = {}, b = 0;
|
|
888
|
+
function _(T, $, I, L, q, W, re) {
|
|
889
|
+
if (L = L || p, W = W || I, re !== t) {
|
|
890
890
|
if (l) {
|
|
891
|
-
var
|
|
891
|
+
var P = new Error(
|
|
892
892
|
"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"
|
|
893
893
|
);
|
|
894
|
-
throw
|
|
894
|
+
throw P.name = "Invariant Violation", P;
|
|
895
895
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
896
|
-
var N =
|
|
896
|
+
var N = L + ":" + I;
|
|
897
897
|
!m[N] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
898
|
-
|
|
899
|
-
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" +
|
|
900
|
-
), m[N] = !0,
|
|
898
|
+
b < 3 && (i(
|
|
899
|
+
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + L + "`. 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."
|
|
900
|
+
), m[N] = !0, b++);
|
|
901
901
|
}
|
|
902
902
|
}
|
|
903
|
-
return
|
|
903
|
+
return $[I] == null ? T ? $[I] === null ? new y("The " + q + " `" + W + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new y("The " + q + " `" + W + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : d($, I, L, q, W);
|
|
904
904
|
}
|
|
905
905
|
var S = _.bind(null, !1);
|
|
906
906
|
return S.isRequired = _.bind(null, !0), S;
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
function m(
|
|
910
|
-
var
|
|
908
|
+
function R(d) {
|
|
909
|
+
function m(b, _, S, T, $, I) {
|
|
910
|
+
var L = b[_], q = z(L);
|
|
911
911
|
if (q !== d) {
|
|
912
|
-
var W = V(
|
|
913
|
-
return new
|
|
914
|
-
"Invalid " + T + " `" +
|
|
912
|
+
var W = V(L);
|
|
913
|
+
return new y(
|
|
914
|
+
"Invalid " + T + " `" + $ + "` of type " + ("`" + W + "` supplied to `" + S + "`, expected ") + ("`" + d + "`."),
|
|
915
915
|
{ expectedType: d }
|
|
916
916
|
);
|
|
917
917
|
}
|
|
@@ -919,20 +919,20 @@ function Br() {
|
|
|
919
919
|
}
|
|
920
920
|
return E(m);
|
|
921
921
|
}
|
|
922
|
-
function
|
|
923
|
-
return E(
|
|
922
|
+
function x() {
|
|
923
|
+
return E(a);
|
|
924
924
|
}
|
|
925
|
-
function
|
|
926
|
-
function m(
|
|
925
|
+
function O(d) {
|
|
926
|
+
function m(b, _, S, T, $) {
|
|
927
927
|
if (typeof d != "function")
|
|
928
|
-
return new
|
|
929
|
-
var I =
|
|
928
|
+
return new y("Property `" + $ + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
929
|
+
var I = b[_];
|
|
930
930
|
if (!Array.isArray(I)) {
|
|
931
|
-
var
|
|
932
|
-
return new
|
|
931
|
+
var L = z(I);
|
|
932
|
+
return new y("Invalid " + T + " `" + $ + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected an array."));
|
|
933
933
|
}
|
|
934
934
|
for (var q = 0; q < I.length; q++) {
|
|
935
|
-
var W = d(I, q, S, T,
|
|
935
|
+
var W = d(I, q, S, T, $ + "[" + q + "]", t);
|
|
936
936
|
if (W instanceof Error)
|
|
937
937
|
return W;
|
|
938
938
|
}
|
|
@@ -941,64 +941,64 @@ function Br() {
|
|
|
941
941
|
return E(m);
|
|
942
942
|
}
|
|
943
943
|
function D() {
|
|
944
|
-
function d(m,
|
|
945
|
-
var
|
|
946
|
-
if (!
|
|
947
|
-
var I =
|
|
948
|
-
return new
|
|
944
|
+
function d(m, b, _, S, T) {
|
|
945
|
+
var $ = m[b];
|
|
946
|
+
if (!o($)) {
|
|
947
|
+
var I = z($);
|
|
948
|
+
return new y("Invalid " + S + " `" + T + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected a single ReactElement."));
|
|
949
949
|
}
|
|
950
950
|
return null;
|
|
951
951
|
}
|
|
952
952
|
return E(d);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
955
|
-
function d(m,
|
|
956
|
-
var
|
|
957
|
-
if (!n.isValidElementType(
|
|
958
|
-
var I =
|
|
959
|
-
return new
|
|
954
|
+
function v() {
|
|
955
|
+
function d(m, b, _, S, T) {
|
|
956
|
+
var $ = m[b];
|
|
957
|
+
if (!n.isValidElementType($)) {
|
|
958
|
+
var I = z($);
|
|
959
|
+
return new y("Invalid " + S + " `" + T + "` of type " + ("`" + I + "` supplied to `" + _ + "`, expected a single ReactElement type."));
|
|
960
960
|
}
|
|
961
961
|
return null;
|
|
962
962
|
}
|
|
963
963
|
return E(d);
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
function m(
|
|
967
|
-
if (!(
|
|
968
|
-
var I = d.name || p,
|
|
969
|
-
return new
|
|
965
|
+
function A(d) {
|
|
966
|
+
function m(b, _, S, T, $) {
|
|
967
|
+
if (!(b[_] instanceof d)) {
|
|
968
|
+
var I = d.name || p, L = k(b[_]);
|
|
969
|
+
return new y("Invalid " + T + " `" + $ + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected ") + ("instance of `" + I + "`."));
|
|
970
970
|
}
|
|
971
971
|
return null;
|
|
972
972
|
}
|
|
973
973
|
return E(m);
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function j(d) {
|
|
976
976
|
if (!Array.isArray(d))
|
|
977
977
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
978
978
|
"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])."
|
|
979
|
-
) : i("Invalid argument supplied to oneOf, expected an array.")),
|
|
980
|
-
function m(
|
|
981
|
-
for (var I =
|
|
982
|
-
if (g(I, d[
|
|
979
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), a;
|
|
980
|
+
function m(b, _, S, T, $) {
|
|
981
|
+
for (var I = b[_], L = 0; L < d.length; L++)
|
|
982
|
+
if (g(I, d[L]))
|
|
983
983
|
return null;
|
|
984
|
-
var q = JSON.stringify(d, function(re,
|
|
985
|
-
var N = V(
|
|
986
|
-
return N === "symbol" ? String(
|
|
984
|
+
var q = JSON.stringify(d, function(re, P) {
|
|
985
|
+
var N = V(P);
|
|
986
|
+
return N === "symbol" ? String(P) : P;
|
|
987
987
|
});
|
|
988
|
-
return new
|
|
988
|
+
return new y("Invalid " + T + " `" + $ + "` of value `" + String(I) + "` " + ("supplied to `" + S + "`, expected one of " + q + "."));
|
|
989
989
|
}
|
|
990
990
|
return E(m);
|
|
991
991
|
}
|
|
992
992
|
function Y(d) {
|
|
993
|
-
function m(
|
|
993
|
+
function m(b, _, S, T, $) {
|
|
994
994
|
if (typeof d != "function")
|
|
995
|
-
return new
|
|
996
|
-
var I =
|
|
997
|
-
if (
|
|
998
|
-
return new
|
|
995
|
+
return new y("Property `" + $ + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
996
|
+
var I = b[_], L = z(I);
|
|
997
|
+
if (L !== "object")
|
|
998
|
+
return new y("Invalid " + T + " `" + $ + "` of type " + ("`" + L + "` supplied to `" + S + "`, expected an object."));
|
|
999
999
|
for (var q in I)
|
|
1000
1000
|
if (r(I, q)) {
|
|
1001
|
-
var W = d(I, q, S, T,
|
|
1001
|
+
var W = d(I, q, S, T, $ + "." + q, t);
|
|
1002
1002
|
if (W instanceof Error)
|
|
1003
1003
|
return W;
|
|
1004
1004
|
}
|
|
@@ -1008,47 +1008,47 @@ function Br() {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
function F(d) {
|
|
1010
1010
|
if (!Array.isArray(d))
|
|
1011
|
-
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
1011
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), a;
|
|
1012
1012
|
for (var m = 0; m < d.length; m++) {
|
|
1013
|
-
var
|
|
1014
|
-
if (typeof
|
|
1013
|
+
var b = d[m];
|
|
1014
|
+
if (typeof b != "function")
|
|
1015
1015
|
return i(
|
|
1016
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(
|
|
1017
|
-
),
|
|
1016
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(b) + " at index " + m + "."
|
|
1017
|
+
), a;
|
|
1018
1018
|
}
|
|
1019
|
-
function _(S, T,
|
|
1019
|
+
function _(S, T, $, I, L) {
|
|
1020
1020
|
for (var q = [], W = 0; W < d.length; W++) {
|
|
1021
|
-
var re = d[W],
|
|
1022
|
-
if (
|
|
1021
|
+
var re = d[W], P = re(S, T, $, I, L, t);
|
|
1022
|
+
if (P == null)
|
|
1023
1023
|
return null;
|
|
1024
|
-
|
|
1024
|
+
P.data && r(P.data, "expectedType") && q.push(P.data.expectedType);
|
|
1025
1025
|
}
|
|
1026
1026
|
var N = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
1027
|
-
return new
|
|
1027
|
+
return new y("Invalid " + I + " `" + L + "` supplied to " + ("`" + $ + "`" + N + "."));
|
|
1028
1028
|
}
|
|
1029
1029
|
return E(_);
|
|
1030
1030
|
}
|
|
1031
1031
|
function C() {
|
|
1032
|
-
function d(m,
|
|
1033
|
-
return K(m[
|
|
1032
|
+
function d(m, b, _, S, T) {
|
|
1033
|
+
return K(m[b]) ? null : new y("Invalid " + S + " `" + T + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
|
|
1034
1034
|
}
|
|
1035
1035
|
return E(d);
|
|
1036
1036
|
}
|
|
1037
|
-
function M(d, m,
|
|
1038
|
-
return new
|
|
1039
|
-
(d || "React class") + ": " + m + " type `" +
|
|
1037
|
+
function M(d, m, b, _, S) {
|
|
1038
|
+
return new y(
|
|
1039
|
+
(d || "React class") + ": " + m + " type `" + b + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
1040
1040
|
);
|
|
1041
1041
|
}
|
|
1042
1042
|
function U(d) {
|
|
1043
|
-
function m(
|
|
1044
|
-
var I =
|
|
1045
|
-
if (
|
|
1046
|
-
return new
|
|
1043
|
+
function m(b, _, S, T, $) {
|
|
1044
|
+
var I = b[_], L = z(I);
|
|
1045
|
+
if (L !== "object")
|
|
1046
|
+
return new y("Invalid " + T + " `" + $ + "` of type `" + L + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1047
1047
|
for (var q in d) {
|
|
1048
1048
|
var W = d[q];
|
|
1049
1049
|
if (typeof W != "function")
|
|
1050
|
-
return M(S, T,
|
|
1051
|
-
var re = W(I, q, S, T,
|
|
1050
|
+
return M(S, T, $, q, V(W));
|
|
1051
|
+
var re = W(I, q, S, T, $ + "." + q, t);
|
|
1052
1052
|
if (re)
|
|
1053
1053
|
return re;
|
|
1054
1054
|
}
|
|
@@ -1057,23 +1057,23 @@ function Br() {
|
|
|
1057
1057
|
return E(m);
|
|
1058
1058
|
}
|
|
1059
1059
|
function J(d) {
|
|
1060
|
-
function m(
|
|
1061
|
-
var I =
|
|
1062
|
-
if (
|
|
1063
|
-
return new
|
|
1064
|
-
var q = e({},
|
|
1060
|
+
function m(b, _, S, T, $) {
|
|
1061
|
+
var I = b[_], L = z(I);
|
|
1062
|
+
if (L !== "object")
|
|
1063
|
+
return new y("Invalid " + T + " `" + $ + "` of type `" + L + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
1064
|
+
var q = e({}, b[_], d);
|
|
1065
1065
|
for (var W in q) {
|
|
1066
1066
|
var re = d[W];
|
|
1067
1067
|
if (r(d, W) && typeof re != "function")
|
|
1068
|
-
return M(S, T,
|
|
1068
|
+
return M(S, T, $, W, V(re));
|
|
1069
1069
|
if (!re)
|
|
1070
|
-
return new
|
|
1071
|
-
"Invalid " + T + " `" +
|
|
1070
|
+
return new y(
|
|
1071
|
+
"Invalid " + T + " `" + $ + "` key `" + W + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(b[_], null, " ") + `
|
|
1072
1072
|
Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
1073
1073
|
);
|
|
1074
|
-
var
|
|
1075
|
-
if (
|
|
1076
|
-
return
|
|
1074
|
+
var P = re(I, W, S, T, $ + "." + W, t);
|
|
1075
|
+
if (P)
|
|
1076
|
+
return P;
|
|
1077
1077
|
}
|
|
1078
1078
|
return null;
|
|
1079
1079
|
}
|
|
@@ -1090,17 +1090,17 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1090
1090
|
case "object":
|
|
1091
1091
|
if (Array.isArray(d))
|
|
1092
1092
|
return d.every(K);
|
|
1093
|
-
if (d === null ||
|
|
1093
|
+
if (d === null || o(d))
|
|
1094
1094
|
return !0;
|
|
1095
1095
|
var m = u(d);
|
|
1096
1096
|
if (m) {
|
|
1097
|
-
var
|
|
1097
|
+
var b = m.call(d), _;
|
|
1098
1098
|
if (m !== d.entries) {
|
|
1099
|
-
for (; !(_ =
|
|
1099
|
+
for (; !(_ = b.next()).done; )
|
|
1100
1100
|
if (!K(_.value))
|
|
1101
1101
|
return !1;
|
|
1102
1102
|
} else
|
|
1103
|
-
for (; !(_ =
|
|
1103
|
+
for (; !(_ = b.next()).done; ) {
|
|
1104
1104
|
var S = _.value;
|
|
1105
1105
|
if (S && !K(S[1]))
|
|
1106
1106
|
return !1;
|
|
@@ -1115,14 +1115,14 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1115
1115
|
function ne(d, m) {
|
|
1116
1116
|
return d === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1118
|
+
function z(d) {
|
|
1119
1119
|
var m = typeof d;
|
|
1120
1120
|
return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : ne(m, d) ? "symbol" : m;
|
|
1121
1121
|
}
|
|
1122
1122
|
function V(d) {
|
|
1123
1123
|
if (typeof d > "u" || d === null)
|
|
1124
1124
|
return "" + d;
|
|
1125
|
-
var m =
|
|
1125
|
+
var m = z(d);
|
|
1126
1126
|
if (m === "object") {
|
|
1127
1127
|
if (d instanceof Date)
|
|
1128
1128
|
return "date";
|
|
@@ -1149,19 +1149,19 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1149
1149
|
return !d.constructor || !d.constructor.name ? p : d.constructor.name;
|
|
1150
1150
|
}
|
|
1151
1151
|
return h.checkPropTypes = s, h.resetWarningCache = s.resetWarningCache, h.PropTypes = h, h;
|
|
1152
|
-
},
|
|
1152
|
+
}, dt;
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1155
|
-
function
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
var n = /* @__PURE__ */
|
|
1154
|
+
var pt, Ut;
|
|
1155
|
+
function Gr() {
|
|
1156
|
+
if (Ut) return pt;
|
|
1157
|
+
Ut = 1;
|
|
1158
|
+
var n = /* @__PURE__ */ Et();
|
|
1159
1159
|
function e() {
|
|
1160
1160
|
}
|
|
1161
1161
|
function t() {
|
|
1162
1162
|
}
|
|
1163
|
-
return t.resetWarningCache = e,
|
|
1164
|
-
function r(
|
|
1163
|
+
return t.resetWarningCache = e, pt = function() {
|
|
1164
|
+
function r(a, o, l, c, f, u) {
|
|
1165
1165
|
if (u !== n) {
|
|
1166
1166
|
var p = new Error(
|
|
1167
1167
|
"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"
|
|
@@ -1197,19 +1197,19 @@ function zr() {
|
|
|
1197
1197
|
resetWarningCache: e
|
|
1198
1198
|
};
|
|
1199
1199
|
return i.PropTypes = i, i;
|
|
1200
|
-
},
|
|
1200
|
+
}, pt;
|
|
1201
1201
|
}
|
|
1202
|
-
var
|
|
1203
|
-
function
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1206
|
-
var n =
|
|
1202
|
+
var Wt;
|
|
1203
|
+
function zr() {
|
|
1204
|
+
if (Wt) return Ye.exports;
|
|
1205
|
+
if (Wt = 1, process.env.NODE_ENV !== "production") {
|
|
1206
|
+
var n = mr(), e = !0;
|
|
1207
1207
|
Ye.exports = /* @__PURE__ */ Br()(n.isElement, e);
|
|
1208
1208
|
} else
|
|
1209
|
-
Ye.exports = /* @__PURE__ */
|
|
1209
|
+
Ye.exports = /* @__PURE__ */ Gr()();
|
|
1210
1210
|
return Ye.exports;
|
|
1211
1211
|
}
|
|
1212
|
-
var ie = /* @__PURE__ */
|
|
1212
|
+
var ie = /* @__PURE__ */ zr(), Jr = function(e) {
|
|
1213
1213
|
var t = (e == null ? void 0 : e.ownerDocument) || document;
|
|
1214
1214
|
return t.defaultView || window;
|
|
1215
1215
|
}, Xr = function(e, t) {
|
|
@@ -1220,15 +1220,15 @@ var ie = /* @__PURE__ */ Gr(), Jr = function(e) {
|
|
|
1220
1220
|
if (e[s] !== t[s])
|
|
1221
1221
|
return !0;
|
|
1222
1222
|
return !1;
|
|
1223
|
-
}, Zr = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], We = "http://www.w3.org/2000/svg",
|
|
1223
|
+
}, Zr = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], We = "http://www.w3.org/2000/svg", Ht = "http://www.w3.org/1999/xlink", Ge = /* @__PURE__ */ function(n) {
|
|
1224
1224
|
function e() {
|
|
1225
|
-
for (var r, s = arguments.length, i = new Array(s),
|
|
1226
|
-
i[
|
|
1225
|
+
for (var r, s = arguments.length, i = new Array(s), a = 0; a < s; a++)
|
|
1226
|
+
i[a] = arguments[a];
|
|
1227
1227
|
return r = n.call.apply(n, [this].concat(i)) || this, r.initialState = {
|
|
1228
1228
|
hasError: !1,
|
|
1229
1229
|
isLoading: !0
|
|
1230
|
-
}, r.state = r.initialState, r._isMounted = !1, r.reactWrapper = void 0, r.nonReactWrapper = void 0, r.refCallback = function(
|
|
1231
|
-
r.reactWrapper =
|
|
1230
|
+
}, r.state = r.initialState, r._isMounted = !1, r.reactWrapper = void 0, r.nonReactWrapper = void 0, r.refCallback = function(o) {
|
|
1231
|
+
r.reactWrapper = o;
|
|
1232
1232
|
}, r;
|
|
1233
1233
|
}
|
|
1234
1234
|
kr(e, n);
|
|
@@ -1236,11 +1236,11 @@ var ie = /* @__PURE__ */ Gr(), Jr = function(e) {
|
|
|
1236
1236
|
return t.renderSVG = function() {
|
|
1237
1237
|
var s = this;
|
|
1238
1238
|
if (this.reactWrapper instanceof Jr(this.reactWrapper).Node) {
|
|
1239
|
-
var i = this.props,
|
|
1240
|
-
E === "svg" ? (
|
|
1241
|
-
var
|
|
1239
|
+
var i = this.props, a = i.desc, o = i.evalScripts, l = i.httpRequestWithCredentials, c = i.renumerateIRIElements, f = i.src, u = i.title, p = i.useRequestCache, h = this.props.onError, g = this.props.beforeInjection, y = this.props.afterInjection, E = this.props.wrapper, R, x;
|
|
1240
|
+
E === "svg" ? (R = document.createElementNS(We, E), R.setAttribute("xmlns", We), R.setAttribute("xmlns:xlink", Ht), x = document.createElementNS(We, E)) : (R = document.createElement(E), x = document.createElement(E)), R.appendChild(x), x.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(R);
|
|
1241
|
+
var O = function(j) {
|
|
1242
1242
|
if (s.removeSVG(), !s._isMounted) {
|
|
1243
|
-
h(
|
|
1243
|
+
h(j);
|
|
1244
1244
|
return;
|
|
1245
1245
|
}
|
|
1246
1246
|
s.setState(function() {
|
|
@@ -1249,11 +1249,11 @@ var ie = /* @__PURE__ */ Gr(), Jr = function(e) {
|
|
|
1249
1249
|
isLoading: !1
|
|
1250
1250
|
};
|
|
1251
1251
|
}, function() {
|
|
1252
|
-
h(
|
|
1252
|
+
h(j);
|
|
1253
1253
|
});
|
|
1254
|
-
}, D = function(
|
|
1255
|
-
if (
|
|
1256
|
-
|
|
1254
|
+
}, D = function(j, Y) {
|
|
1255
|
+
if (j) {
|
|
1256
|
+
O(j);
|
|
1257
1257
|
return;
|
|
1258
1258
|
}
|
|
1259
1259
|
s._isMounted && s.setState(function() {
|
|
@@ -1262,35 +1262,35 @@ var ie = /* @__PURE__ */ Gr(), Jr = function(e) {
|
|
|
1262
1262
|
};
|
|
1263
1263
|
}, function() {
|
|
1264
1264
|
try {
|
|
1265
|
-
|
|
1265
|
+
y(Y);
|
|
1266
1266
|
} catch (F) {
|
|
1267
|
-
|
|
1267
|
+
O(F);
|
|
1268
1268
|
}
|
|
1269
1269
|
});
|
|
1270
|
-
},
|
|
1271
|
-
if (
|
|
1272
|
-
var Y =
|
|
1273
|
-
Y &&
|
|
1270
|
+
}, v = function(j) {
|
|
1271
|
+
if (j.setAttribute("role", "img"), a) {
|
|
1272
|
+
var Y = j.querySelector(":scope > desc");
|
|
1273
|
+
Y && j.removeChild(Y);
|
|
1274
1274
|
var F = document.createElement("desc");
|
|
1275
|
-
F.innerHTML =
|
|
1275
|
+
F.innerHTML = a, j.prepend(F);
|
|
1276
1276
|
}
|
|
1277
1277
|
if (u) {
|
|
1278
|
-
var C =
|
|
1279
|
-
C &&
|
|
1278
|
+
var C = j.querySelector(":scope > title");
|
|
1279
|
+
C && j.removeChild(C);
|
|
1280
1280
|
var M = document.createElement("title");
|
|
1281
|
-
M.innerHTML = u,
|
|
1281
|
+
M.innerHTML = u, j.prepend(M);
|
|
1282
1282
|
}
|
|
1283
1283
|
try {
|
|
1284
|
-
g(
|
|
1284
|
+
g(j);
|
|
1285
1285
|
} catch (U) {
|
|
1286
|
-
|
|
1286
|
+
O(U);
|
|
1287
1287
|
}
|
|
1288
1288
|
};
|
|
1289
|
-
Ur(
|
|
1289
|
+
Ur(x, {
|
|
1290
1290
|
afterEach: D,
|
|
1291
|
-
beforeEach:
|
|
1291
|
+
beforeEach: v,
|
|
1292
1292
|
cacheRequests: p,
|
|
1293
|
-
evalScripts:
|
|
1293
|
+
evalScripts: o,
|
|
1294
1294
|
httpRequestWithCredentials: l,
|
|
1295
1295
|
renumerateIRIElements: c
|
|
1296
1296
|
});
|
|
@@ -1314,18 +1314,18 @@ var ie = /* @__PURE__ */ Gr(), Jr = function(e) {
|
|
|
1314
1314
|
s.afterInjection, s.beforeInjection, s.desc, s.evalScripts;
|
|
1315
1315
|
var i = s.fallback;
|
|
1316
1316
|
s.httpRequestWithCredentials;
|
|
1317
|
-
var
|
|
1317
|
+
var a = s.loading;
|
|
1318
1318
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1319
|
-
var
|
|
1319
|
+
var o = s.wrapper, l = Lr(s, Zr), c = o;
|
|
1320
1320
|
return /* @__PURE__ */ Me.createElement(c, Be({}, l, {
|
|
1321
1321
|
ref: this.refCallback
|
|
1322
|
-
},
|
|
1322
|
+
}, o === "svg" ? {
|
|
1323
1323
|
xmlns: We,
|
|
1324
|
-
xmlnsXlink:
|
|
1325
|
-
} : {}), this.state.isLoading &&
|
|
1324
|
+
xmlnsXlink: Ht
|
|
1325
|
+
} : {}), this.state.isLoading && a && /* @__PURE__ */ Me.createElement(a, null), this.state.hasError && i && /* @__PURE__ */ Me.createElement(i, null));
|
|
1326
1326
|
}, e;
|
|
1327
1327
|
}(Me.Component);
|
|
1328
|
-
|
|
1328
|
+
Ge.defaultProps = {
|
|
1329
1329
|
afterInjection: function() {
|
|
1330
1330
|
},
|
|
1331
1331
|
beforeInjection: function() {
|
|
@@ -1342,7 +1342,7 @@ ze.defaultProps = {
|
|
|
1342
1342
|
useRequestCache: !0,
|
|
1343
1343
|
wrapper: "div"
|
|
1344
1344
|
};
|
|
1345
|
-
|
|
1345
|
+
Ge.propTypes = {
|
|
1346
1346
|
afterInjection: ie.func,
|
|
1347
1347
|
beforeInjection: ie.func,
|
|
1348
1348
|
desc: ie.string,
|
|
@@ -1357,7 +1357,7 @@ ze.propTypes = {
|
|
|
1357
1357
|
useRequestCache: ie.bool,
|
|
1358
1358
|
wrapper: ie.oneOf(["div", "span", "svg"])
|
|
1359
1359
|
};
|
|
1360
|
-
const
|
|
1360
|
+
const Ae = {
|
|
1361
1361
|
"smp-icon": "_smp-icon_ttsft_1",
|
|
1362
1362
|
"smp-icon-rotated": "_smp-icon-rotated_ttsft_15",
|
|
1363
1363
|
"smp-icon-base": "_smp-icon-base_ttsft_19",
|
|
@@ -1368,13 +1368,13 @@ const Pe = {
|
|
|
1368
1368
|
"smp-icon-onPrimary": "_smp-icon-onPrimary_ttsft_49",
|
|
1369
1369
|
"smp-icon-spin": "_smp-icon-spin_ttsft_53"
|
|
1370
1370
|
};
|
|
1371
|
-
let
|
|
1371
|
+
let vt = {
|
|
1372
1372
|
assets: "/"
|
|
1373
1373
|
// Default for storybook isolation development
|
|
1374
1374
|
};
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
-
},
|
|
1375
|
+
const ns = (n) => {
|
|
1376
|
+
vt = { ...vt, ...n };
|
|
1377
|
+
}, qt = (n) => `${vt.assets}/${n}`.replace(/\/+/g, "/"), ve = dr.memo(
|
|
1378
1378
|
({
|
|
1379
1379
|
icon: n,
|
|
1380
1380
|
width: e,
|
|
@@ -1382,33 +1382,33 @@ const rs = (n) => {
|
|
|
1382
1382
|
placeholderIcon: r,
|
|
1383
1383
|
color: s,
|
|
1384
1384
|
disabled: i,
|
|
1385
|
-
state:
|
|
1386
|
-
rotated:
|
|
1385
|
+
state: a = "base",
|
|
1386
|
+
rotated: o = !1,
|
|
1387
1387
|
onClick: l,
|
|
1388
1388
|
isInteractable: c = !1,
|
|
1389
1389
|
spin: f = !1
|
|
1390
1390
|
}) => {
|
|
1391
|
-
const [u, p] =
|
|
1391
|
+
const [u, p] = Q(n), h = n.indexOf(".") > -1 || n.indexOf("/") > -1 || n.indexOf("\\") > -1, g = qt(`assets/svg/${n}.svg`), y = qt(
|
|
1392
1392
|
`assets/svg/${r}.svg`
|
|
1393
1393
|
), E = {
|
|
1394
|
-
svg: `${
|
|
1395
|
-
},
|
|
1394
|
+
svg: `${Ae["smp-icon"]} ${a ? Ae[`smp-icon-${a}`] : ""} ${o ? Ae["smp-icon-rotated"] : ""} ${c ? Ae["smp-icon-interactable"] : ""} ${f ? Ae["smp-icon-spin"] : ""}`
|
|
1395
|
+
}, R = () => {
|
|
1396
1396
|
!i && l && l();
|
|
1397
1397
|
};
|
|
1398
|
-
return /* @__PURE__ */
|
|
1398
|
+
return /* @__PURE__ */ w.jsx(w.Fragment, { children: h ? /* @__PURE__ */ w.jsx(
|
|
1399
1399
|
"img",
|
|
1400
1400
|
{
|
|
1401
1401
|
src: u,
|
|
1402
1402
|
width: e || "16px",
|
|
1403
1403
|
height: t || "auto",
|
|
1404
1404
|
alt: n || "image",
|
|
1405
|
-
onError: () => p(
|
|
1405
|
+
onError: () => p(y)
|
|
1406
1406
|
}
|
|
1407
|
-
) : /* @__PURE__ */
|
|
1408
|
-
|
|
1407
|
+
) : /* @__PURE__ */ w.jsx(
|
|
1408
|
+
Ge,
|
|
1409
1409
|
{
|
|
1410
1410
|
src: g,
|
|
1411
|
-
fallback: () => /* @__PURE__ */
|
|
1411
|
+
fallback: () => /* @__PURE__ */ w.jsx(Ge, { src: y, wrapper: "svg" }),
|
|
1412
1412
|
width: e || "1rem",
|
|
1413
1413
|
height: t || "1rem",
|
|
1414
1414
|
wrapper: "svg",
|
|
@@ -1417,11 +1417,11 @@ const rs = (n) => {
|
|
|
1417
1417
|
fill: s,
|
|
1418
1418
|
"aria-disabled": i,
|
|
1419
1419
|
className: E.svg,
|
|
1420
|
-
onClick:
|
|
1420
|
+
onClick: R
|
|
1421
1421
|
}
|
|
1422
1422
|
) });
|
|
1423
1423
|
}
|
|
1424
|
-
),
|
|
1424
|
+
), Ce = {
|
|
1425
1425
|
"smp-dash-list": "_smp-dash-list_ajkcc_1",
|
|
1426
1426
|
"smp-dash-list-fill-space": "_smp-dash-list-fill-space_ajkcc_25",
|
|
1427
1427
|
"smp-dash-list-horizontal": "_smp-dash-list-horizontal_ajkcc_30",
|
|
@@ -1432,27 +1432,27 @@ const rs = (n) => {
|
|
|
1432
1432
|
"smp-layout-1__value": "_smp-layout-1__value_ajkcc_76",
|
|
1433
1433
|
"smp-layout-2__value": "_smp-layout-2__value_ajkcc_77",
|
|
1434
1434
|
"smp-layout-2__icon": "_smp-layout-2__icon_ajkcc_84"
|
|
1435
|
-
}, H = (n) => typeof n == "string",
|
|
1435
|
+
}, H = (n) => typeof n == "string", Le = () => {
|
|
1436
1436
|
let n, e;
|
|
1437
1437
|
const t = new Promise((r, s) => {
|
|
1438
1438
|
n = r, e = s;
|
|
1439
1439
|
});
|
|
1440
1440
|
return t.resolve = n, t.reject = e, t;
|
|
1441
|
-
},
|
|
1441
|
+
}, Kt = (n) => n == null ? "" : "" + n, Qr = (n, e, t) => {
|
|
1442
1442
|
n.forEach((r) => {
|
|
1443
1443
|
e[r] && (t[r] = e[r]);
|
|
1444
1444
|
});
|
|
1445
|
-
}, en = /###/g,
|
|
1445
|
+
}, en = /###/g, Bt = (n) => n && n.indexOf("###") > -1 ? n.replace(en, ".") : n, Gt = (n) => !n || H(n), je = (n, e, t) => {
|
|
1446
1446
|
const r = H(e) ? e.split(".") : e;
|
|
1447
1447
|
let s = 0;
|
|
1448
1448
|
for (; s < r.length - 1; ) {
|
|
1449
|
-
if (
|
|
1450
|
-
const i =
|
|
1449
|
+
if (Gt(n)) return {};
|
|
1450
|
+
const i = Bt(r[s]);
|
|
1451
1451
|
!n[i] && t && (n[i] = new t()), Object.prototype.hasOwnProperty.call(n, i) ? n = n[i] : n = {}, ++s;
|
|
1452
1452
|
}
|
|
1453
|
-
return
|
|
1453
|
+
return Gt(n) ? {} : {
|
|
1454
1454
|
obj: n,
|
|
1455
|
-
k:
|
|
1455
|
+
k: Bt(r[s])
|
|
1456
1456
|
};
|
|
1457
1457
|
}, zt = (n, e, t) => {
|
|
1458
1458
|
const {
|
|
@@ -1463,17 +1463,17 @@ const rs = (n) => {
|
|
|
1463
1463
|
r[s] = t;
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
|
-
let i = e[e.length - 1],
|
|
1467
|
-
for (;
|
|
1468
|
-
i = `${
|
|
1469
|
-
|
|
1466
|
+
let i = e[e.length - 1], a = e.slice(0, e.length - 1), o = je(n, a, Object);
|
|
1467
|
+
for (; o.obj === void 0 && a.length; )
|
|
1468
|
+
i = `${a[a.length - 1]}.${i}`, a = a.slice(0, a.length - 1), o = je(n, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${i}`] < "u" && (o.obj = void 0);
|
|
1469
|
+
o.obj[`${o.k}.${i}`] = t;
|
|
1470
1470
|
}, tn = (n, e, t, r) => {
|
|
1471
1471
|
const {
|
|
1472
1472
|
obj: s,
|
|
1473
1473
|
k: i
|
|
1474
1474
|
} = je(n, e, Object);
|
|
1475
1475
|
s[i] = s[i] || [], s[i].push(t);
|
|
1476
|
-
},
|
|
1476
|
+
}, ze = (n, e) => {
|
|
1477
1477
|
const {
|
|
1478
1478
|
obj: t,
|
|
1479
1479
|
k: r
|
|
@@ -1481,11 +1481,11 @@ const rs = (n) => {
|
|
|
1481
1481
|
if (t && Object.prototype.hasOwnProperty.call(t, r))
|
|
1482
1482
|
return t[r];
|
|
1483
1483
|
}, rn = (n, e, t) => {
|
|
1484
|
-
const r =
|
|
1485
|
-
return r !== void 0 ? r :
|
|
1486
|
-
},
|
|
1484
|
+
const r = ze(n, t);
|
|
1485
|
+
return r !== void 0 ? r : ze(e, t);
|
|
1486
|
+
}, yr = (n, e, t) => {
|
|
1487
1487
|
for (const r in e)
|
|
1488
|
-
r !== "__proto__" && r !== "constructor" && (r in n ? H(n[r]) || n[r] instanceof String || H(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) :
|
|
1488
|
+
r !== "__proto__" && r !== "constructor" && (r in n ? H(n[r]) || n[r] instanceof String || H(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : yr(n[r], e[r], t) : n[r] = e[r]);
|
|
1489
1489
|
return n;
|
|
1490
1490
|
}, _e = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1491
1491
|
var nn = {
|
|
@@ -1511,16 +1511,16 @@ class an {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
const on = [" ", ",", "?", "!", ";"], ln = new an(20), cn = (n, e, t) => {
|
|
1513
1513
|
e = e || "", t = t || "";
|
|
1514
|
-
const r = on.filter((
|
|
1514
|
+
const r = on.filter((a) => e.indexOf(a) < 0 && t.indexOf(a) < 0);
|
|
1515
1515
|
if (r.length === 0) return !0;
|
|
1516
|
-
const s = ln.getRegExp(`(${r.map((
|
|
1516
|
+
const s = ln.getRegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
1517
1517
|
let i = !s.test(n);
|
|
1518
1518
|
if (!i) {
|
|
1519
|
-
const
|
|
1520
|
-
|
|
1519
|
+
const a = n.indexOf(t);
|
|
1520
|
+
a > 0 && !s.test(n.substring(0, a)) && (i = !0);
|
|
1521
1521
|
}
|
|
1522
1522
|
return i;
|
|
1523
|
-
},
|
|
1523
|
+
}, bt = (n, e, t = ".") => {
|
|
1524
1524
|
if (!n) return;
|
|
1525
1525
|
if (n[e])
|
|
1526
1526
|
return Object.prototype.hasOwnProperty.call(n, e) ? n[e] : void 0;
|
|
@@ -1529,15 +1529,15 @@ const on = [" ", ",", "?", "!", ";"], ln = new an(20), cn = (n, e, t) => {
|
|
|
1529
1529
|
for (let i = 0; i < r.length; ) {
|
|
1530
1530
|
if (!s || typeof s != "object")
|
|
1531
1531
|
return;
|
|
1532
|
-
let
|
|
1532
|
+
let a, o = "";
|
|
1533
1533
|
for (let l = i; l < r.length; ++l)
|
|
1534
|
-
if (l !== i && (
|
|
1535
|
-
if (["string", "number", "boolean"].indexOf(typeof
|
|
1534
|
+
if (l !== i && (o += t), o += r[l], a = s[o], a !== void 0) {
|
|
1535
|
+
if (["string", "number", "boolean"].indexOf(typeof a) > -1 && l < r.length - 1)
|
|
1536
1536
|
continue;
|
|
1537
1537
|
i += l - i + 1;
|
|
1538
1538
|
break;
|
|
1539
1539
|
}
|
|
1540
|
-
s =
|
|
1540
|
+
s = a;
|
|
1541
1541
|
}
|
|
1542
1542
|
return s;
|
|
1543
1543
|
}, Je = (n) => n == null ? void 0 : n.replace("_", "-"), un = {
|
|
@@ -1611,15 +1611,15 @@ class st {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
emit(e, ...t) {
|
|
1613
1613
|
this.observers[e] && Array.from(this.observers[e].entries()).forEach(([s, i]) => {
|
|
1614
|
-
for (let
|
|
1614
|
+
for (let a = 0; a < i; a++)
|
|
1615
1615
|
s(...t);
|
|
1616
1616
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach(([s, i]) => {
|
|
1617
|
-
for (let
|
|
1617
|
+
for (let a = 0; a < i; a++)
|
|
1618
1618
|
s.apply(s, [e, ...t]);
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
class
|
|
1622
|
+
class Jt extends st {
|
|
1623
1623
|
constructor(e, t = {
|
|
1624
1624
|
ns: ["translation"],
|
|
1625
1625
|
defaultNS: "translation"
|
|
@@ -1635,18 +1635,18 @@ class Gt extends st {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
getResource(e, t, r, s = {}) {
|
|
1637
1637
|
var c, f;
|
|
1638
|
-
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator,
|
|
1639
|
-
let
|
|
1640
|
-
e.indexOf(".") > -1 ?
|
|
1641
|
-
const l =
|
|
1642
|
-
return !l && !t && !r && e.indexOf(".") > -1 && (e =
|
|
1638
|
+
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1639
|
+
let o;
|
|
1640
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], r && (Array.isArray(r) ? o.push(...r) : H(r) && i ? o.push(...r.split(i)) : o.push(r)));
|
|
1641
|
+
const l = ze(this.data, o);
|
|
1642
|
+
return !l && !t && !r && e.indexOf(".") > -1 && (e = o[0], t = o[1], r = o.slice(2).join(".")), l || !a || !H(r) ? l : bt((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], r, i);
|
|
1643
1643
|
}
|
|
1644
1644
|
addResource(e, t, r, s, i = {
|
|
1645
1645
|
silent: !1
|
|
1646
1646
|
}) {
|
|
1647
|
-
const
|
|
1648
|
-
let
|
|
1649
|
-
r && (
|
|
1647
|
+
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1648
|
+
let o = [e, t];
|
|
1649
|
+
r && (o = o.concat(a ? r.split(a) : r)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), zt(this.data, o, s), i.silent || this.emit("added", e, t, r, s);
|
|
1650
1650
|
}
|
|
1651
1651
|
addResources(e, t, r, s = {
|
|
1652
1652
|
silent: !1
|
|
@@ -1657,17 +1657,17 @@ class Gt extends st {
|
|
|
1657
1657
|
});
|
|
1658
1658
|
s.silent || this.emit("added", e, t, r);
|
|
1659
1659
|
}
|
|
1660
|
-
addResourceBundle(e, t, r, s, i,
|
|
1660
|
+
addResourceBundle(e, t, r, s, i, a = {
|
|
1661
1661
|
silent: !1,
|
|
1662
1662
|
skipCopy: !1
|
|
1663
1663
|
}) {
|
|
1664
|
-
let
|
|
1665
|
-
e.indexOf(".") > -1 && (
|
|
1666
|
-
let l =
|
|
1667
|
-
|
|
1664
|
+
let o = [e, t];
|
|
1665
|
+
e.indexOf(".") > -1 && (o = e.split("."), s = r, r = t, t = o[1]), this.addNamespaces(t);
|
|
1666
|
+
let l = ze(this.data, o) || {};
|
|
1667
|
+
a.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? yr(l, r, i) : l = {
|
|
1668
1668
|
...l,
|
|
1669
1669
|
...r
|
|
1670
|
-
}, zt(this.data,
|
|
1670
|
+
}, zt(this.data, o, l), a.silent || this.emit("added", e, t, r);
|
|
1671
1671
|
}
|
|
1672
1672
|
removeResourceBundle(e, t) {
|
|
1673
1673
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -1689,19 +1689,19 @@ class Gt extends st {
|
|
|
1689
1689
|
return this.data;
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
var
|
|
1692
|
+
var vr = {
|
|
1693
1693
|
processors: {},
|
|
1694
1694
|
addPostProcessor(n) {
|
|
1695
1695
|
this.processors[n.name] = n;
|
|
1696
1696
|
},
|
|
1697
1697
|
handle(n, e, t, r, s) {
|
|
1698
1698
|
return n.forEach((i) => {
|
|
1699
|
-
var
|
|
1700
|
-
e = ((
|
|
1699
|
+
var a;
|
|
1700
|
+
e = ((a = this.processors[i]) == null ? void 0 : a.process(e, t, r, s)) ?? e;
|
|
1701
1701
|
}), e;
|
|
1702
1702
|
}
|
|
1703
1703
|
};
|
|
1704
|
-
const
|
|
1704
|
+
const Xt = {}, Zt = (n) => !H(n) && typeof n != "boolean" && typeof n != "number";
|
|
1705
1705
|
class Ze extends st {
|
|
1706
1706
|
constructor(e, t = {}) {
|
|
1707
1707
|
super(), Qr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = pe.create("translator");
|
|
@@ -1724,8 +1724,8 @@ class Ze extends st {
|
|
|
1724
1724
|
r === void 0 && (r = ":");
|
|
1725
1725
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
1726
1726
|
let i = t.ns || this.options.defaultNS || [];
|
|
1727
|
-
const
|
|
1728
|
-
if (
|
|
1727
|
+
const a = r && e.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !cn(e, r, s);
|
|
1728
|
+
if (a && !o) {
|
|
1729
1729
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
1730
1730
|
if (l && l.length > 0)
|
|
1731
1731
|
return {
|
|
@@ -1748,8 +1748,8 @@ class Ze extends st {
|
|
|
1748
1748
|
...s
|
|
1749
1749
|
}), s || (s = {}), e == null) return "";
|
|
1750
1750
|
Array.isArray(e) || (e = [String(e)]);
|
|
1751
|
-
const i = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails,
|
|
1752
|
-
key:
|
|
1751
|
+
const i = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
|
|
1752
|
+
key: o,
|
|
1753
1753
|
namespaces: l
|
|
1754
1754
|
} = this.extractFromKey(e[e.length - 1], s), c = l[l.length - 1];
|
|
1755
1755
|
let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
@@ -1757,64 +1757,64 @@ class Ze extends st {
|
|
|
1757
1757
|
const u = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
1758
1758
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
1759
1759
|
return p ? i ? {
|
|
1760
|
-
res: `${c}${f}${
|
|
1761
|
-
usedKey:
|
|
1762
|
-
exactUsedKey:
|
|
1760
|
+
res: `${c}${f}${o}`,
|
|
1761
|
+
usedKey: o,
|
|
1762
|
+
exactUsedKey: o,
|
|
1763
1763
|
usedLng: u,
|
|
1764
1764
|
usedNS: c,
|
|
1765
1765
|
usedParams: this.getUsedParamsDetails(s)
|
|
1766
|
-
} : `${c}${f}${
|
|
1767
|
-
res:
|
|
1768
|
-
usedKey:
|
|
1769
|
-
exactUsedKey:
|
|
1766
|
+
} : `${c}${f}${o}` : i ? {
|
|
1767
|
+
res: o,
|
|
1768
|
+
usedKey: o,
|
|
1769
|
+
exactUsedKey: o,
|
|
1770
1770
|
usedLng: u,
|
|
1771
1771
|
usedNS: c,
|
|
1772
1772
|
usedParams: this.getUsedParamsDetails(s)
|
|
1773
|
-
} :
|
|
1773
|
+
} : o;
|
|
1774
1774
|
const h = this.resolve(e, s);
|
|
1775
1775
|
let g = h == null ? void 0 : h.res;
|
|
1776
|
-
const
|
|
1776
|
+
const y = (h == null ? void 0 : h.usedKey) || o, E = (h == null ? void 0 : h.exactUsedKey) || o, R = ["[object Number]", "[object Function]", "[object RegExp]"], x = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, D = s.count !== void 0 && !H(s.count), v = Ze.hasDefaultValue(s), A = D ? this.pluralResolver.getSuffix(u, s.count, s) : "", j = s.ordinal && D ? this.pluralResolver.getSuffix(u, s.count, {
|
|
1777
1777
|
ordinal: !1
|
|
1778
|
-
}) : "", Y = D && !s.ordinal && s.count === 0, F = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${
|
|
1778
|
+
}) : "", Y = D && !s.ordinal && s.count === 0, F = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${A}`] || s[`defaultValue${j}`] || s.defaultValue;
|
|
1779
1779
|
let C = g;
|
|
1780
|
-
|
|
1781
|
-
const M =
|
|
1782
|
-
if (
|
|
1780
|
+
O && !g && v && (C = F);
|
|
1781
|
+
const M = Zt(C), U = Object.prototype.toString.apply(C);
|
|
1782
|
+
if (O && C && M && R.indexOf(U) < 0 && !(H(x) && Array.isArray(C))) {
|
|
1783
1783
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
1784
1784
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
1785
|
-
const J = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
1785
|
+
const J = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, C, {
|
|
1786
1786
|
...s,
|
|
1787
1787
|
ns: l
|
|
1788
|
-
}) : `key '${
|
|
1788
|
+
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
1789
1789
|
return i ? (h.res = J, h.usedParams = this.getUsedParamsDetails(s), h) : J;
|
|
1790
1790
|
}
|
|
1791
|
-
if (
|
|
1792
|
-
const J = Array.isArray(C), K = J ? [] : {}, ne = J ? E :
|
|
1793
|
-
for (const
|
|
1794
|
-
if (Object.prototype.hasOwnProperty.call(C,
|
|
1795
|
-
const V = `${ne}${
|
|
1796
|
-
|
|
1791
|
+
if (a) {
|
|
1792
|
+
const J = Array.isArray(C), K = J ? [] : {}, ne = J ? E : y;
|
|
1793
|
+
for (const z in C)
|
|
1794
|
+
if (Object.prototype.hasOwnProperty.call(C, z)) {
|
|
1795
|
+
const V = `${ne}${a}${z}`;
|
|
1796
|
+
v && !g ? K[z] = this.translate(V, {
|
|
1797
1797
|
...s,
|
|
1798
|
-
defaultValue:
|
|
1798
|
+
defaultValue: Zt(F) ? F[z] : void 0,
|
|
1799
1799
|
joinArrays: !1,
|
|
1800
1800
|
ns: l
|
|
1801
|
-
}) : K[
|
|
1801
|
+
}) : K[z] = this.translate(V, {
|
|
1802
1802
|
...s,
|
|
1803
1803
|
joinArrays: !1,
|
|
1804
1804
|
ns: l
|
|
1805
|
-
}), K[
|
|
1805
|
+
}), K[z] === V && (K[z] = C[z]);
|
|
1806
1806
|
}
|
|
1807
1807
|
g = K;
|
|
1808
1808
|
}
|
|
1809
|
-
} else if (
|
|
1810
|
-
g = g.join(
|
|
1809
|
+
} else if (O && H(x) && Array.isArray(g))
|
|
1810
|
+
g = g.join(x), g && (g = this.extendTranslation(g, e, s, r));
|
|
1811
1811
|
else {
|
|
1812
1812
|
let J = !1, K = !1;
|
|
1813
|
-
!this.isValidLookup(g) &&
|
|
1814
|
-
const
|
|
1813
|
+
!this.isValidLookup(g) && v && (J = !0, g = F), this.isValidLookup(g) || (K = !0, g = o);
|
|
1814
|
+
const z = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && K ? void 0 : g, V = v && F !== g && this.options.updateMissing;
|
|
1815
1815
|
if (K || J || V) {
|
|
1816
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", u, c,
|
|
1817
|
-
const m = this.resolve(
|
|
1816
|
+
if (this.logger.log(V ? "updateKey" : "missingKey", u, c, o, V ? F : g), a) {
|
|
1817
|
+
const m = this.resolve(o, {
|
|
1818
1818
|
...s,
|
|
1819
1819
|
keySeparator: !1
|
|
1820
1820
|
});
|
|
@@ -1826,19 +1826,19 @@ class Ze extends st {
|
|
|
1826
1826
|
for (let m = 0; m < k.length; m++)
|
|
1827
1827
|
B.push(k[m]);
|
|
1828
1828
|
else this.options.saveMissingTo === "all" ? B = this.languageUtils.toResolveHierarchy(s.lng || this.language) : B.push(s.lng || this.language);
|
|
1829
|
-
const d = (m,
|
|
1829
|
+
const d = (m, b, _) => {
|
|
1830
1830
|
var T;
|
|
1831
|
-
const S =
|
|
1832
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(m, c,
|
|
1831
|
+
const S = v && _ !== g ? _ : z;
|
|
1832
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(m, c, b, S, V, s) : (T = this.backendConnector) != null && T.saveMissing && this.backendConnector.saveMissing(m, c, b, S, V, s), this.emit("missingKey", m, c, b, g);
|
|
1833
1833
|
};
|
|
1834
1834
|
this.options.saveMissing && (this.options.saveMissingPlurals && D ? B.forEach((m) => {
|
|
1835
|
-
const
|
|
1836
|
-
Y && s[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
1837
|
-
d([m],
|
|
1835
|
+
const b = this.pluralResolver.getSuffixes(m, s);
|
|
1836
|
+
Y && s[`defaultValue${this.options.pluralSeparator}zero`] && b.indexOf(`${this.options.pluralSeparator}zero`) < 0 && b.push(`${this.options.pluralSeparator}zero`), b.forEach((_) => {
|
|
1837
|
+
d([m], o + _, s[`defaultValue${_}`] || F);
|
|
1838
1838
|
});
|
|
1839
|
-
}) : d(B,
|
|
1839
|
+
}) : d(B, o, F));
|
|
1840
1840
|
}
|
|
1841
|
-
g = this.extendTranslation(g, e, s, h, r), K && g ===
|
|
1841
|
+
g = this.extendTranslation(g, e, s, h, r), K && g === o && this.options.appendNamespaceToMissingKey && (g = `${c}${f}${o}`), (K || J) && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, J ? g : void 0, s));
|
|
1842
1842
|
}
|
|
1843
1843
|
return i ? (h.res = g, h.usedParams = this.getUsedParamsDetails(s), h) : g;
|
|
1844
1844
|
}
|
|
@@ -1875,8 +1875,8 @@ class Ze extends st {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
!r.lng && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...h) => (i == null ? void 0 : i[0]) === h[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${t[0]}`), null) : this.translate(...h, t), r)), r.interpolation && this.interpolator.reset();
|
|
1877
1877
|
}
|
|
1878
|
-
const
|
|
1879
|
-
return e != null && (
|
|
1878
|
+
const a = r.postProcess || this.options.postProcess, o = H(a) ? [a] : a;
|
|
1879
|
+
return e != null && (o != null && o.length) && r.applyPostProcessor !== !1 && (e = vr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
1880
1880
|
i18nResolved: {
|
|
1881
1881
|
...s,
|
|
1882
1882
|
usedParams: this.getUsedParamsDetails(r)
|
|
@@ -1885,43 +1885,43 @@ class Ze extends st {
|
|
|
1885
1885
|
} : r, this)), e;
|
|
1886
1886
|
}
|
|
1887
1887
|
resolve(e, t = {}) {
|
|
1888
|
-
let r, s, i,
|
|
1888
|
+
let r, s, i, a, o;
|
|
1889
1889
|
return H(e) && (e = [e]), e.forEach((l) => {
|
|
1890
1890
|
if (this.isValidLookup(r)) return;
|
|
1891
1891
|
const c = this.extractFromKey(l, t), f = c.key;
|
|
1892
1892
|
s = f;
|
|
1893
1893
|
let u = c.namespaces;
|
|
1894
1894
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
1895
|
-
const p = t.count !== void 0 && !H(t.count), h = p && !t.ordinal && t.count === 0, g = t.context !== void 0 && (H(t.context) || typeof t.context == "number") && t.context !== "",
|
|
1895
|
+
const p = t.count !== void 0 && !H(t.count), h = p && !t.ordinal && t.count === 0, g = t.context !== void 0 && (H(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
1896
1896
|
u.forEach((E) => {
|
|
1897
|
-
var
|
|
1898
|
-
this.isValidLookup(r) || (
|
|
1899
|
-
var
|
|
1897
|
+
var R, x;
|
|
1898
|
+
this.isValidLookup(r) || (o = E, !Xt[`${y[0]}-${E}`] && ((R = this.utils) != null && R.hasLoadedNamespace) && !((x = this.utils) != null && x.hasLoadedNamespace(o)) && (Xt[`${y[0]}-${E}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((O) => {
|
|
1899
|
+
var A;
|
|
1900
1900
|
if (this.isValidLookup(r)) return;
|
|
1901
|
-
|
|
1901
|
+
a = O;
|
|
1902
1902
|
const D = [f];
|
|
1903
|
-
if ((
|
|
1904
|
-
this.i18nFormat.addLookupKeys(D, f,
|
|
1903
|
+
if ((A = this.i18nFormat) != null && A.addLookupKeys)
|
|
1904
|
+
this.i18nFormat.addLookupKeys(D, f, O, E, t);
|
|
1905
1905
|
else {
|
|
1906
|
-
let
|
|
1907
|
-
p && (
|
|
1906
|
+
let j;
|
|
1907
|
+
p && (j = this.pluralResolver.getSuffix(O, t.count, t));
|
|
1908
1908
|
const Y = `${this.options.pluralSeparator}zero`, F = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
1909
|
-
if (p && (D.push(f +
|
|
1909
|
+
if (p && (D.push(f + j), t.ordinal && j.indexOf(F) === 0 && D.push(f + j.replace(F, this.options.pluralSeparator)), h && D.push(f + Y)), g) {
|
|
1910
1910
|
const C = `${f}${this.options.contextSeparator}${t.context}`;
|
|
1911
|
-
D.push(C), p && (D.push(C +
|
|
1911
|
+
D.push(C), p && (D.push(C + j), t.ordinal && j.indexOf(F) === 0 && D.push(C + j.replace(F, this.options.pluralSeparator)), h && D.push(C + Y));
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
|
-
let
|
|
1915
|
-
for (;
|
|
1916
|
-
this.isValidLookup(r) || (i =
|
|
1914
|
+
let v;
|
|
1915
|
+
for (; v = D.pop(); )
|
|
1916
|
+
this.isValidLookup(r) || (i = v, r = this.getResource(O, E, v, t));
|
|
1917
1917
|
}));
|
|
1918
1918
|
});
|
|
1919
1919
|
}), {
|
|
1920
1920
|
res: r,
|
|
1921
1921
|
usedKey: s,
|
|
1922
1922
|
exactUsedKey: i,
|
|
1923
|
-
usedLng:
|
|
1924
|
-
usedNS:
|
|
1923
|
+
usedLng: a,
|
|
1924
|
+
usedNS: o
|
|
1925
1925
|
};
|
|
1926
1926
|
}
|
|
1927
1927
|
isValidLookup(e) {
|
|
@@ -1954,7 +1954,7 @@ class Ze extends st {
|
|
|
1954
1954
|
return !1;
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
class
|
|
1957
|
+
class Qt {
|
|
1958
1958
|
constructor(e) {
|
|
1959
1959
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = pe.create("languageUtils");
|
|
1960
1960
|
}
|
|
@@ -1995,10 +1995,10 @@ class Zt {
|
|
|
1995
1995
|
if (this.isSupportedCode(s)) return t = s;
|
|
1996
1996
|
const i = this.getLanguagePartFromCode(r);
|
|
1997
1997
|
if (this.isSupportedCode(i)) return t = i;
|
|
1998
|
-
t = this.options.supportedLngs.find((
|
|
1999
|
-
if (
|
|
2000
|
-
if (!(
|
|
2001
|
-
return
|
|
1998
|
+
t = this.options.supportedLngs.find((a) => {
|
|
1999
|
+
if (a === i) return a;
|
|
2000
|
+
if (!(a.indexOf("-") < 0 && i.indexOf("-") < 0) && (a.indexOf("-") > 0 && i.indexOf("-") < 0 && a.substring(0, a.indexOf("-")) === i || a.indexOf(i) === 0 && i.length > 1))
|
|
2001
|
+
return a;
|
|
2002
2002
|
});
|
|
2003
2003
|
}), t || (t = this.getFallbackCodes(this.options.fallbackLng)[0]), t;
|
|
2004
2004
|
}
|
|
@@ -2010,22 +2010,22 @@ class Zt {
|
|
|
2010
2010
|
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
|
|
2011
2011
|
}
|
|
2012
2012
|
toResolveHierarchy(e, t) {
|
|
2013
|
-
const r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], i = (
|
|
2014
|
-
|
|
2013
|
+
const r = this.getFallbackCodes(t || this.options.fallbackLng || [], e), s = [], i = (a) => {
|
|
2014
|
+
a && (this.isSupportedCode(a) ? s.push(a) : this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`));
|
|
2015
2015
|
};
|
|
2016
|
-
return H(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : H(e) && i(this.formatLanguageCode(e)), r.forEach((
|
|
2017
|
-
s.indexOf(
|
|
2016
|
+
return H(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && i(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && i(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && i(this.getLanguagePartFromCode(e))) : H(e) && i(this.formatLanguageCode(e)), r.forEach((a) => {
|
|
2017
|
+
s.indexOf(a) < 0 && i(this.formatLanguageCode(a));
|
|
2018
2018
|
}), s;
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
|
-
const
|
|
2021
|
+
const er = {
|
|
2022
2022
|
zero: 0,
|
|
2023
2023
|
one: 1,
|
|
2024
2024
|
two: 2,
|
|
2025
2025
|
few: 3,
|
|
2026
2026
|
many: 4,
|
|
2027
2027
|
other: 5
|
|
2028
|
-
},
|
|
2028
|
+
}, tr = {
|
|
2029
2029
|
select: (n) => n === 1 ? "one" : "other",
|
|
2030
2030
|
resolvedOptions: () => ({
|
|
2031
2031
|
pluralCategories: ["one", "other"]
|
|
@@ -2048,19 +2048,19 @@ class fn {
|
|
|
2048
2048
|
});
|
|
2049
2049
|
if (i in this.pluralRulesCache)
|
|
2050
2050
|
return this.pluralRulesCache[i];
|
|
2051
|
-
let
|
|
2051
|
+
let a;
|
|
2052
2052
|
try {
|
|
2053
|
-
|
|
2053
|
+
a = new Intl.PluralRules(r, {
|
|
2054
2054
|
type: s
|
|
2055
2055
|
});
|
|
2056
2056
|
} catch {
|
|
2057
2057
|
if (!Intl)
|
|
2058
|
-
return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
2059
|
-
if (!e.match(/-|_/)) return
|
|
2058
|
+
return this.logger.error("No Intl support, please use an Intl polyfill!"), tr;
|
|
2059
|
+
if (!e.match(/-|_/)) return tr;
|
|
2060
2060
|
const l = this.languageUtils.getLanguagePartFromCode(e);
|
|
2061
|
-
|
|
2061
|
+
a = this.getRule(l, t);
|
|
2062
2062
|
}
|
|
2063
|
-
return this.pluralRulesCache[i] =
|
|
2063
|
+
return this.pluralRulesCache[i] = a, a;
|
|
2064
2064
|
}
|
|
2065
2065
|
needsPlural(e, t = {}) {
|
|
2066
2066
|
let r = this.getRule(e, t);
|
|
@@ -2071,17 +2071,17 @@ class fn {
|
|
|
2071
2071
|
}
|
|
2072
2072
|
getSuffixes(e, t = {}) {
|
|
2073
2073
|
let r = this.getRule(e, t);
|
|
2074
|
-
return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
|
2074
|
+
return r || (r = this.getRule("dev", t)), r ? r.resolvedOptions().pluralCategories.sort((s, i) => er[s] - er[i]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
|
|
2075
2075
|
}
|
|
2076
2076
|
getSuffix(e, t, r = {}) {
|
|
2077
2077
|
const s = this.getRule(e, r);
|
|
2078
2078
|
return s ? `${this.options.prepend}${r.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, r));
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
|
-
const
|
|
2081
|
+
const rr = (n, e, t, r = ".", s = !0) => {
|
|
2082
2082
|
let i = rn(n, e, t);
|
|
2083
|
-
return !i && s && H(t) && (i =
|
|
2084
|
-
},
|
|
2083
|
+
return !i && s && H(t) && (i = bt(n, t, r), i === void 0 && (i = bt(e, t, r))), i;
|
|
2084
|
+
}, ht = (n) => n.replace(/\$/g, "$$$$");
|
|
2085
2085
|
class dn {
|
|
2086
2086
|
constructor(e = {}) {
|
|
2087
2087
|
var t;
|
|
@@ -2096,8 +2096,8 @@ class dn {
|
|
|
2096
2096
|
escapeValue: r,
|
|
2097
2097
|
useRawValueToEscape: s,
|
|
2098
2098
|
prefix: i,
|
|
2099
|
-
prefixEscaped:
|
|
2100
|
-
suffix:
|
|
2099
|
+
prefixEscaped: a,
|
|
2100
|
+
suffix: o,
|
|
2101
2101
|
suffixEscaped: l,
|
|
2102
2102
|
formatSeparator: c,
|
|
2103
2103
|
unescapeSuffix: f,
|
|
@@ -2105,12 +2105,12 @@ class dn {
|
|
|
2105
2105
|
nestingPrefix: p,
|
|
2106
2106
|
nestingPrefixEscaped: h,
|
|
2107
2107
|
nestingSuffix: g,
|
|
2108
|
-
nestingSuffixEscaped:
|
|
2108
|
+
nestingSuffixEscaped: y,
|
|
2109
2109
|
nestingOptionsSeparator: E,
|
|
2110
|
-
maxReplaces:
|
|
2111
|
-
alwaysFormat:
|
|
2110
|
+
maxReplaces: R,
|
|
2111
|
+
alwaysFormat: x
|
|
2112
2112
|
} = e.interpolation;
|
|
2113
|
-
this.escape = t !== void 0 ? t : sn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = i ? _e(i) :
|
|
2113
|
+
this.escape = t !== void 0 ? t : sn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = i ? _e(i) : a || "{{", this.suffix = o ? _e(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? _e(p) : h || _e("$t("), this.nestingSuffix = g ? _e(g) : y || _e(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = x !== void 0 ? x : !1, this.resetRegExp();
|
|
2114
2114
|
}
|
|
2115
2115
|
reset() {
|
|
2116
2116
|
this.options && this.init(this.options);
|
|
@@ -2121,18 +2121,18 @@ class dn {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
interpolate(e, t, r, s) {
|
|
2123
2123
|
var h;
|
|
2124
|
-
let i,
|
|
2124
|
+
let i, a, o;
|
|
2125
2125
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
|
|
2126
2126
|
if (g.indexOf(this.formatSeparator) < 0) {
|
|
2127
|
-
const
|
|
2128
|
-
return this.alwaysFormat ? this.format(
|
|
2127
|
+
const x = rr(t, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2128
|
+
return this.alwaysFormat ? this.format(x, void 0, r, {
|
|
2129
2129
|
...s,
|
|
2130
2130
|
...t,
|
|
2131
2131
|
interpolationkey: g
|
|
2132
|
-
}) :
|
|
2132
|
+
}) : x;
|
|
2133
2133
|
}
|
|
2134
|
-
const
|
|
2135
|
-
return this.format(
|
|
2134
|
+
const y = g.split(this.formatSeparator), E = y.shift().trim(), R = y.join(this.formatSeparator).trim();
|
|
2135
|
+
return this.format(rr(t, l, E, this.options.keySeparator, this.options.ignoreJSONStructure), R, r, {
|
|
2136
2136
|
...s,
|
|
2137
2137
|
...t,
|
|
2138
2138
|
interpolationkey: E
|
|
@@ -2142,63 +2142,63 @@ class dn {
|
|
|
2142
2142
|
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((h = s == null ? void 0 : s.interpolation) == null ? void 0 : h.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
2143
2143
|
return [{
|
|
2144
2144
|
regex: this.regexpUnescape,
|
|
2145
|
-
safeValue: (g) =>
|
|
2145
|
+
safeValue: (g) => ht(g)
|
|
2146
2146
|
}, {
|
|
2147
2147
|
regex: this.regexp,
|
|
2148
|
-
safeValue: (g) => this.escapeValue ?
|
|
2148
|
+
safeValue: (g) => this.escapeValue ? ht(this.escape(g)) : ht(g)
|
|
2149
2149
|
}].forEach((g) => {
|
|
2150
|
-
for (
|
|
2151
|
-
const
|
|
2152
|
-
if (
|
|
2150
|
+
for (o = 0; i = g.regex.exec(e); ) {
|
|
2151
|
+
const y = i[1].trim();
|
|
2152
|
+
if (a = c(y), a === void 0)
|
|
2153
2153
|
if (typeof f == "function") {
|
|
2154
|
-
const
|
|
2155
|
-
|
|
2156
|
-
} else if (s && Object.prototype.hasOwnProperty.call(s,
|
|
2157
|
-
|
|
2154
|
+
const R = f(e, i, s);
|
|
2155
|
+
a = H(R) ? R : "";
|
|
2156
|
+
} else if (s && Object.prototype.hasOwnProperty.call(s, y))
|
|
2157
|
+
a = "";
|
|
2158
2158
|
else if (u) {
|
|
2159
|
-
|
|
2159
|
+
a = i[0];
|
|
2160
2160
|
continue;
|
|
2161
2161
|
} else
|
|
2162
|
-
this.logger.warn(`missed to pass in variable ${
|
|
2163
|
-
else !H(
|
|
2164
|
-
const E = g.safeValue(
|
|
2165
|
-
if (e = e.replace(i[0], E), u ? (g.regex.lastIndex +=
|
|
2162
|
+
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), a = "";
|
|
2163
|
+
else !H(a) && !this.useRawValueToEscape && (a = Kt(a));
|
|
2164
|
+
const E = g.safeValue(a);
|
|
2165
|
+
if (e = e.replace(i[0], E), u ? (g.regex.lastIndex += a.length, g.regex.lastIndex -= i[0].length) : g.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2166
2166
|
break;
|
|
2167
2167
|
}
|
|
2168
2168
|
}), e;
|
|
2169
2169
|
}
|
|
2170
2170
|
nest(e, t, r = {}) {
|
|
2171
|
-
let s, i,
|
|
2172
|
-
const
|
|
2171
|
+
let s, i, a;
|
|
2172
|
+
const o = (l, c) => {
|
|
2173
2173
|
const f = this.nestingOptionsSeparator;
|
|
2174
2174
|
if (l.indexOf(f) < 0) return l;
|
|
2175
2175
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
2176
2176
|
let p = `{${u[1]}`;
|
|
2177
|
-
l = u[0], p = this.interpolate(p,
|
|
2177
|
+
l = u[0], p = this.interpolate(p, a);
|
|
2178
2178
|
const h = p.match(/'/g), g = p.match(/"/g);
|
|
2179
2179
|
(((h == null ? void 0 : h.length) ?? 0) % 2 === 0 && !g || g.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
2180
2180
|
try {
|
|
2181
|
-
|
|
2181
|
+
a = JSON.parse(p), c && (a = {
|
|
2182
2182
|
...c,
|
|
2183
|
-
...
|
|
2183
|
+
...a
|
|
2184
2184
|
});
|
|
2185
|
-
} catch (
|
|
2186
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`,
|
|
2185
|
+
} catch (y) {
|
|
2186
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${p}`;
|
|
2187
2187
|
}
|
|
2188
|
-
return
|
|
2188
|
+
return a.defaultValue && a.defaultValue.indexOf(this.prefix) > -1 && delete a.defaultValue, l;
|
|
2189
2189
|
};
|
|
2190
2190
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
2191
2191
|
let l = [];
|
|
2192
|
-
|
|
2192
|
+
a = {
|
|
2193
2193
|
...r
|
|
2194
|
-
},
|
|
2194
|
+
}, a = a.replace && !H(a.replace) ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
|
2195
2195
|
let c = !1;
|
|
2196
2196
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
2197
2197
|
const f = s[1].split(this.formatSeparator).map((u) => u.trim());
|
|
2198
2198
|
s[1] = f.shift(), l = f, c = !0;
|
|
2199
2199
|
}
|
|
2200
|
-
if (i = t(
|
|
2201
|
-
H(i) || (i =
|
|
2200
|
+
if (i = t(o.call(this, s[1].trim(), a), a), i && s[0] === e && !H(i)) return i;
|
|
2201
|
+
H(i) || (i = Kt(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), i = ""), c && (i = l.reduce((f, u) => this.format(f, u, r.lng, {
|
|
2202
2202
|
...r,
|
|
2203
2203
|
interpolationkey: s[1].trim()
|
|
2204
2204
|
}), i.trim())), e = e.replace(s[0], i), this.regexp.lastIndex = 0;
|
|
@@ -2213,9 +2213,9 @@ const pn = (n) => {
|
|
|
2213
2213
|
const r = n.split("(");
|
|
2214
2214
|
e = r[0].toLowerCase().trim();
|
|
2215
2215
|
const s = r[1].substring(0, r[1].length - 1);
|
|
2216
|
-
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((
|
|
2217
|
-
if (
|
|
2218
|
-
const [
|
|
2216
|
+
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((a) => {
|
|
2217
|
+
if (a) {
|
|
2218
|
+
const [o, ...l] = a.split(":"), c = l.join(":").trim().replace(/^'+|'+$/g, ""), f = o.trim();
|
|
2219
2219
|
t[f] || (t[f] = c), c === "false" && (t[f] = !1), c === "true" && (t[f] = !0), isNaN(c) || (t[f] = parseInt(c, 10));
|
|
2220
2220
|
}
|
|
2221
2221
|
});
|
|
@@ -2232,9 +2232,9 @@ const pn = (n) => {
|
|
|
2232
2232
|
...i,
|
|
2233
2233
|
[s.interpolationkey]: void 0
|
|
2234
2234
|
});
|
|
2235
|
-
const
|
|
2236
|
-
let
|
|
2237
|
-
return
|
|
2235
|
+
const a = r + JSON.stringify(i);
|
|
2236
|
+
let o = e[a];
|
|
2237
|
+
return o || (o = n(Je(r), s), e[a] = o), o(t);
|
|
2238
2238
|
};
|
|
2239
2239
|
};
|
|
2240
2240
|
class hn {
|
|
@@ -2286,21 +2286,21 @@ class hn {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
format(e, t, r, s = {}) {
|
|
2288
2288
|
const i = t.split(this.formatSeparator);
|
|
2289
|
-
if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((
|
|
2290
|
-
const
|
|
2291
|
-
i[0] = [i[0], ...i.splice(1,
|
|
2289
|
+
if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((o) => o.indexOf(")") > -1)) {
|
|
2290
|
+
const o = i.findIndex((l) => l.indexOf(")") > -1);
|
|
2291
|
+
i[0] = [i[0], ...i.splice(1, o)].join(this.formatSeparator);
|
|
2292
2292
|
}
|
|
2293
|
-
return i.reduce((
|
|
2293
|
+
return i.reduce((o, l) => {
|
|
2294
2294
|
var u;
|
|
2295
2295
|
const {
|
|
2296
2296
|
formatName: c,
|
|
2297
2297
|
formatOptions: f
|
|
2298
2298
|
} = pn(l);
|
|
2299
2299
|
if (this.formats[c]) {
|
|
2300
|
-
let p =
|
|
2300
|
+
let p = o;
|
|
2301
2301
|
try {
|
|
2302
2302
|
const h = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {}, g = h.locale || h.lng || s.locale || s.lng || r;
|
|
2303
|
-
p = this.formats[c](
|
|
2303
|
+
p = this.formats[c](o, g, {
|
|
2304
2304
|
...f,
|
|
2305
2305
|
...s,
|
|
2306
2306
|
...h
|
|
@@ -2311,7 +2311,7 @@ class hn {
|
|
|
2311
2311
|
return p;
|
|
2312
2312
|
} else
|
|
2313
2313
|
this.logger.warn(`there was no format function for ${c}`);
|
|
2314
|
-
return
|
|
2314
|
+
return o;
|
|
2315
2315
|
}, e);
|
|
2316
2316
|
}
|
|
2317
2317
|
}
|
|
@@ -2320,48 +2320,48 @@ const mn = (n, e) => {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
class gn extends st {
|
|
2322
2322
|
constructor(e, t, r, s = {}) {
|
|
2323
|
-
var i,
|
|
2324
|
-
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = pe.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (
|
|
2323
|
+
var i, a;
|
|
2324
|
+
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = pe.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (a = (i = this.backend) == null ? void 0 : i.init) == null || a.call(i, r, s.backend, s);
|
|
2325
2325
|
}
|
|
2326
2326
|
queueLoad(e, t, r, s) {
|
|
2327
|
-
const i = {},
|
|
2327
|
+
const i = {}, a = {}, o = {}, l = {};
|
|
2328
2328
|
return e.forEach((c) => {
|
|
2329
2329
|
let f = !0;
|
|
2330
2330
|
t.forEach((u) => {
|
|
2331
2331
|
const p = `${c}|${u}`;
|
|
2332
|
-
!r.reload && this.store.hasResourceBundle(c, u) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ?
|
|
2333
|
-
}), f || (
|
|
2334
|
-
}), (Object.keys(i).length || Object.keys(
|
|
2335
|
-
pending:
|
|
2336
|
-
pendingCount: Object.keys(
|
|
2332
|
+
!r.reload && this.store.hasResourceBundle(c, u) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? a[p] === void 0 && (a[p] = !0) : (this.state[p] = 1, f = !1, a[p] === void 0 && (a[p] = !0), i[p] === void 0 && (i[p] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
2333
|
+
}), f || (o[c] = !0);
|
|
2334
|
+
}), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
|
|
2335
|
+
pending: a,
|
|
2336
|
+
pendingCount: Object.keys(a).length,
|
|
2337
2337
|
loaded: {},
|
|
2338
2338
|
errors: [],
|
|
2339
2339
|
callback: s
|
|
2340
2340
|
}), {
|
|
2341
2341
|
toLoad: Object.keys(i),
|
|
2342
|
-
pending: Object.keys(
|
|
2343
|
-
toLoadLanguages: Object.keys(
|
|
2342
|
+
pending: Object.keys(a),
|
|
2343
|
+
toLoadLanguages: Object.keys(o),
|
|
2344
2344
|
toLoadNamespaces: Object.keys(l)
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
2347
|
loaded(e, t, r) {
|
|
2348
|
-
const s = e.split("|"), i = s[0],
|
|
2349
|
-
t && this.emit("failedLoading", i,
|
|
2348
|
+
const s = e.split("|"), i = s[0], a = s[1];
|
|
2349
|
+
t && this.emit("failedLoading", i, a, t), !t && r && this.store.addResourceBundle(i, a, r, void 0, void 0, {
|
|
2350
2350
|
skipCopy: !0
|
|
2351
2351
|
}), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
|
|
2352
|
-
const
|
|
2352
|
+
const o = {};
|
|
2353
2353
|
this.queue.forEach((l) => {
|
|
2354
|
-
tn(l.loaded, [i],
|
|
2355
|
-
|
|
2354
|
+
tn(l.loaded, [i], a), mn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
2355
|
+
o[c] || (o[c] = {});
|
|
2356
2356
|
const f = l.loaded[c];
|
|
2357
2357
|
f.length && f.forEach((u) => {
|
|
2358
|
-
|
|
2358
|
+
o[c][u] === void 0 && (o[c][u] = !0);
|
|
2359
2359
|
});
|
|
2360
2360
|
}), l.done = !0, l.errors.length ? l.callback(l.errors) : l.callback());
|
|
2361
|
-
}), this.emit("loaded",
|
|
2361
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((l) => !l.done);
|
|
2362
2362
|
}
|
|
2363
|
-
read(e, t, r, s = 0, i = this.retryTimeout,
|
|
2364
|
-
if (!e.length) return
|
|
2363
|
+
read(e, t, r, s = 0, i = this.retryTimeout, a) {
|
|
2364
|
+
if (!e.length) return a(null, {});
|
|
2365
2365
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
2366
2366
|
this.waitingReads.push({
|
|
2367
2367
|
lng: e,
|
|
@@ -2369,34 +2369,34 @@ class gn extends st {
|
|
|
2369
2369
|
fcName: r,
|
|
2370
2370
|
tried: s,
|
|
2371
2371
|
wait: i,
|
|
2372
|
-
callback:
|
|
2372
|
+
callback: a
|
|
2373
2373
|
});
|
|
2374
2374
|
return;
|
|
2375
2375
|
}
|
|
2376
2376
|
this.readingCalls++;
|
|
2377
|
-
const
|
|
2377
|
+
const o = (c, f) => {
|
|
2378
2378
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
2379
2379
|
const u = this.waitingReads.shift();
|
|
2380
2380
|
this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
|
|
2381
2381
|
}
|
|
2382
2382
|
if (c && f && s < this.maxRetries) {
|
|
2383
2383
|
setTimeout(() => {
|
|
2384
|
-
this.read.call(this, e, t, r, s + 1, i * 2,
|
|
2384
|
+
this.read.call(this, e, t, r, s + 1, i * 2, a);
|
|
2385
2385
|
}, i);
|
|
2386
2386
|
return;
|
|
2387
2387
|
}
|
|
2388
|
-
|
|
2388
|
+
a(c, f);
|
|
2389
2389
|
}, l = this.backend[r].bind(this.backend);
|
|
2390
2390
|
if (l.length === 2) {
|
|
2391
2391
|
try {
|
|
2392
2392
|
const c = l(e, t);
|
|
2393
|
-
c && typeof c.then == "function" ? c.then((f) =>
|
|
2393
|
+
c && typeof c.then == "function" ? c.then((f) => o(null, f)).catch(o) : o(null, c);
|
|
2394
2394
|
} catch (c) {
|
|
2395
|
-
|
|
2395
|
+
o(c);
|
|
2396
2396
|
}
|
|
2397
2397
|
return;
|
|
2398
2398
|
}
|
|
2399
|
-
return l(e, t,
|
|
2399
|
+
return l(e, t, o);
|
|
2400
2400
|
}
|
|
2401
2401
|
prepareLoading(e, t, r = {}, s) {
|
|
2402
2402
|
if (!this.backend)
|
|
@@ -2405,8 +2405,8 @@ class gn extends st {
|
|
|
2405
2405
|
const i = this.queueLoad(e, t, r, s);
|
|
2406
2406
|
if (!i.toLoad.length)
|
|
2407
2407
|
return i.pending.length || s(), null;
|
|
2408
|
-
i.toLoad.forEach((
|
|
2409
|
-
this.loadOne(
|
|
2408
|
+
i.toLoad.forEach((a) => {
|
|
2409
|
+
this.loadOne(a);
|
|
2410
2410
|
});
|
|
2411
2411
|
}
|
|
2412
2412
|
load(e, t, r) {
|
|
@@ -2419,11 +2419,11 @@ class gn extends st {
|
|
|
2419
2419
|
}
|
|
2420
2420
|
loadOne(e, t = "") {
|
|
2421
2421
|
const r = e.split("|"), s = r[0], i = r[1];
|
|
2422
|
-
this.read(s, i, "read", void 0, void 0, (
|
|
2423
|
-
|
|
2422
|
+
this.read(s, i, "read", void 0, void 0, (a, o) => {
|
|
2423
|
+
a && this.logger.warn(`${t}loading namespace ${i} for language ${s} failed`, a), !a && o && this.logger.log(`${t}loaded namespace ${i} for language ${s}`, o), this.loaded(e, a, o);
|
|
2424
2424
|
});
|
|
2425
2425
|
}
|
|
2426
|
-
saveMissing(e, t, r, s, i,
|
|
2426
|
+
saveMissing(e, t, r, s, i, a = {}, o = () => {
|
|
2427
2427
|
}) {
|
|
2428
2428
|
var l, c, f, u, p;
|
|
2429
2429
|
if ((c = (l = this.services) == null ? void 0 : l.utils) != null && c.hasLoadedNamespace && !((u = (f = this.services) == null ? void 0 : f.utils) != null && u.hasLoadedNamespace(t))) {
|
|
@@ -2433,24 +2433,24 @@ class gn extends st {
|
|
|
2433
2433
|
if (!(r == null || r === "")) {
|
|
2434
2434
|
if ((p = this.backend) != null && p.create) {
|
|
2435
2435
|
const h = {
|
|
2436
|
-
...
|
|
2436
|
+
...a,
|
|
2437
2437
|
isUpdate: i
|
|
2438
2438
|
}, g = this.backend.create.bind(this.backend);
|
|
2439
2439
|
if (g.length < 6)
|
|
2440
2440
|
try {
|
|
2441
|
-
let
|
|
2442
|
-
g.length === 5 ?
|
|
2443
|
-
} catch (
|
|
2444
|
-
|
|
2441
|
+
let y;
|
|
2442
|
+
g.length === 5 ? y = g(e, t, r, s, h) : y = g(e, t, r, s), y && typeof y.then == "function" ? y.then((E) => o(null, E)).catch(o) : o(null, y);
|
|
2443
|
+
} catch (y) {
|
|
2444
|
+
o(y);
|
|
2445
2445
|
}
|
|
2446
2446
|
else
|
|
2447
|
-
g(e, t, r, s,
|
|
2447
|
+
g(e, t, r, s, o, h);
|
|
2448
2448
|
}
|
|
2449
2449
|
!e || !e[0] || this.store.addResource(e[0], t, r, s);
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
const
|
|
2453
|
+
const nr = () => ({
|
|
2454
2454
|
debug: !1,
|
|
2455
2455
|
initAsync: !0,
|
|
2456
2456
|
ns: ["translation"],
|
|
@@ -2506,7 +2506,7 @@ const rr = () => ({
|
|
|
2506
2506
|
maxReplaces: 1e3,
|
|
2507
2507
|
skipOnVariables: !0
|
|
2508
2508
|
}
|
|
2509
|
-
}),
|
|
2509
|
+
}), sr = (n) => {
|
|
2510
2510
|
var e, t;
|
|
2511
2511
|
return H(n.ns) && (n.ns = [n.ns]), H(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), H(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
|
|
2512
2512
|
}, He = () => {
|
|
@@ -2515,9 +2515,9 @@ const rr = () => ({
|
|
|
2515
2515
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
2516
2516
|
});
|
|
2517
2517
|
};
|
|
2518
|
-
class
|
|
2518
|
+
class Ne extends st {
|
|
2519
2519
|
constructor(e = {}, t) {
|
|
2520
|
-
if (super(), this.options =
|
|
2520
|
+
if (super(), this.options = sr(e), this.services = {}, this.logger = pe, this.modules = {
|
|
2521
2521
|
external: []
|
|
2522
2522
|
}, yn(this), t && !this.isInitialized && !e.isClone) {
|
|
2523
2523
|
if (!this.options.initAsync)
|
|
@@ -2529,11 +2529,11 @@ class Ie extends st {
|
|
|
2529
2529
|
}
|
|
2530
2530
|
init(e = {}, t) {
|
|
2531
2531
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (H(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
2532
|
-
const r =
|
|
2532
|
+
const r = nr();
|
|
2533
2533
|
this.options = {
|
|
2534
2534
|
...r,
|
|
2535
2535
|
...this.options,
|
|
2536
|
-
...
|
|
2536
|
+
...sr(e)
|
|
2537
2537
|
}, this.options.interpolation = {
|
|
2538
2538
|
...r.interpolation,
|
|
2539
2539
|
...this.options.interpolation
|
|
@@ -2543,8 +2543,8 @@ class Ie extends st {
|
|
|
2543
2543
|
this.modules.logger ? pe.init(s(this.modules.logger), this.options) : pe.init(null, this.options);
|
|
2544
2544
|
let c;
|
|
2545
2545
|
this.modules.formatter ? c = this.modules.formatter : c = hn;
|
|
2546
|
-
const f = new
|
|
2547
|
-
this.store = new
|
|
2546
|
+
const f = new Qt(this.options);
|
|
2547
|
+
this.store = new Jt(this.options.resources, this.options);
|
|
2548
2548
|
const u = this.services;
|
|
2549
2549
|
u.logger = pe, u.resourceStore = this.store, u.languageUtils = f, u.pluralResolver = new fn(f, {
|
|
2550
2550
|
prepend: this.options.pluralSeparator,
|
|
@@ -2568,35 +2568,35 @@ class Ie extends st {
|
|
|
2568
2568
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
2569
2569
|
this[c] = (...f) => (this.store[c](...f), this);
|
|
2570
2570
|
});
|
|
2571
|
-
const
|
|
2571
|
+
const o = Le(), l = () => {
|
|
2572
2572
|
const c = (f, u) => {
|
|
2573
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options),
|
|
2573
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(u), t(f, u);
|
|
2574
2574
|
};
|
|
2575
2575
|
if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
|
|
2576
2576
|
this.changeLanguage(this.options.lng, c);
|
|
2577
2577
|
};
|
|
2578
|
-
return this.options.resources || !this.options.initAsync ? l() : setTimeout(l, 0),
|
|
2578
|
+
return this.options.resources || !this.options.initAsync ? l() : setTimeout(l, 0), o;
|
|
2579
2579
|
}
|
|
2580
2580
|
loadResources(e, t = He) {
|
|
2581
|
-
var i,
|
|
2581
|
+
var i, a;
|
|
2582
2582
|
let r = t;
|
|
2583
2583
|
const s = H(e) ? e : this.language;
|
|
2584
2584
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2585
2585
|
if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
2586
|
-
const
|
|
2586
|
+
const o = [], l = (c) => {
|
|
2587
2587
|
if (!c || c === "cimode") return;
|
|
2588
2588
|
this.services.languageUtils.toResolveHierarchy(c).forEach((u) => {
|
|
2589
|
-
u !== "cimode" &&
|
|
2589
|
+
u !== "cimode" && o.indexOf(u) < 0 && o.push(u);
|
|
2590
2590
|
});
|
|
2591
2591
|
};
|
|
2592
|
-
s ? l(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((f) => l(f)), (
|
|
2592
|
+
s ? l(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((f) => l(f)), (a = (i = this.options.preload) == null ? void 0 : i.forEach) == null || a.call(i, (c) => l(c)), this.services.backendConnector.load(o, this.options.ns, (c) => {
|
|
2593
2593
|
!c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(c);
|
|
2594
2594
|
});
|
|
2595
2595
|
} else
|
|
2596
2596
|
r(null);
|
|
2597
2597
|
}
|
|
2598
2598
|
reloadResources(e, t, r) {
|
|
2599
|
-
const s =
|
|
2599
|
+
const s = Le();
|
|
2600
2600
|
return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = He), this.services.backendConnector.reload(e, t, (i) => {
|
|
2601
2601
|
s.resolve(), r(i);
|
|
2602
2602
|
}), s;
|
|
@@ -2604,7 +2604,7 @@ class Ie extends st {
|
|
|
2604
2604
|
use(e) {
|
|
2605
2605
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2606
2606
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2607
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
2607
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && vr.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
2608
2608
|
}
|
|
2609
2609
|
setResolvedLanguage(e) {
|
|
2610
2610
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -2620,27 +2620,27 @@ class Ie extends st {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
changeLanguage(e, t) {
|
|
2622
2622
|
this.isLanguageChangingTo = e;
|
|
2623
|
-
const r =
|
|
2623
|
+
const r = Le();
|
|
2624
2624
|
this.emit("languageChanging", e);
|
|
2625
|
-
const s = (
|
|
2626
|
-
this.language =
|
|
2627
|
-
}, i = (
|
|
2628
|
-
l ? this.isLanguageChangingTo === e && (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(
|
|
2629
|
-
},
|
|
2625
|
+
const s = (o) => {
|
|
2626
|
+
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
2627
|
+
}, i = (o, l) => {
|
|
2628
|
+
l ? this.isLanguageChangingTo === e && (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(o, (...c) => this.t(...c));
|
|
2629
|
+
}, a = (o) => {
|
|
2630
2630
|
var f, u;
|
|
2631
|
-
!e && !
|
|
2632
|
-
const l = H(
|
|
2631
|
+
!e && !o && this.services.languageDetector && (o = []);
|
|
2632
|
+
const l = H(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(H(o) ? [o] : o);
|
|
2633
2633
|
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (p) => {
|
|
2634
2634
|
i(p, c);
|
|
2635
2635
|
});
|
|
2636
2636
|
};
|
|
2637
|
-
return !e && this.services.languageDetector && !this.services.languageDetector.async ?
|
|
2637
|
+
return !e && this.services.languageDetector && !this.services.languageDetector.async ? a(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(a) : this.services.languageDetector.detect(a) : a(e), r;
|
|
2638
2638
|
}
|
|
2639
2639
|
getFixedT(e, t, r) {
|
|
2640
|
-
const s = (i,
|
|
2640
|
+
const s = (i, a, ...o) => {
|
|
2641
2641
|
let l;
|
|
2642
|
-
typeof
|
|
2643
|
-
...
|
|
2642
|
+
typeof a != "object" ? l = this.options.overloadTranslationOptionHandler([i, a].concat(o)) : l = {
|
|
2643
|
+
...a
|
|
2644
2644
|
}, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || r || s.keyPrefix);
|
|
2645
2645
|
const c = this.options.keySeparator || ".";
|
|
2646
2646
|
let f;
|
|
@@ -2666,18 +2666,18 @@ class Ie extends st {
|
|
|
2666
2666
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
2667
2667
|
const r = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
|
|
2668
2668
|
if (r.toLowerCase() === "cimode") return !0;
|
|
2669
|
-
const
|
|
2670
|
-
const c = this.services.backendConnector.state[`${
|
|
2669
|
+
const a = (o, l) => {
|
|
2670
|
+
const c = this.services.backendConnector.state[`${o}|${l}`];
|
|
2671
2671
|
return c === -1 || c === 0 || c === 2;
|
|
2672
2672
|
};
|
|
2673
2673
|
if (t.precheck) {
|
|
2674
|
-
const
|
|
2675
|
-
if (
|
|
2674
|
+
const o = t.precheck(this, a);
|
|
2675
|
+
if (o !== void 0) return o;
|
|
2676
2676
|
}
|
|
2677
|
-
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages ||
|
|
2677
|
+
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, e) && (!s || a(i, e)));
|
|
2678
2678
|
}
|
|
2679
2679
|
loadNamespaces(e, t) {
|
|
2680
|
-
const r =
|
|
2680
|
+
const r = Le();
|
|
2681
2681
|
return this.options.ns ? (H(e) && (e = [e]), e.forEach((s) => {
|
|
2682
2682
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
2683
2683
|
}), this.loadResources((s) => {
|
|
@@ -2685,21 +2685,21 @@ class Ie extends st {
|
|
|
2685
2685
|
}), r) : (t && t(), Promise.resolve());
|
|
2686
2686
|
}
|
|
2687
2687
|
loadLanguages(e, t) {
|
|
2688
|
-
const r =
|
|
2688
|
+
const r = Le();
|
|
2689
2689
|
H(e) && (e = [e]);
|
|
2690
|
-
const s = this.options.preload || [], i = e.filter((
|
|
2691
|
-
return i.length ? (this.options.preload = s.concat(i), this.loadResources((
|
|
2692
|
-
r.resolve(), t && t(
|
|
2690
|
+
const s = this.options.preload || [], i = e.filter((a) => s.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
2691
|
+
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
2692
|
+
r.resolve(), t && t(a);
|
|
2693
2693
|
}), r) : (t && t(), Promise.resolve());
|
|
2694
2694
|
}
|
|
2695
2695
|
dir(e) {
|
|
2696
2696
|
var s, i;
|
|
2697
2697
|
if (e || (e = this.resolvedLanguage || (((s = this.languages) == null ? void 0 : s.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
2698
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((i = this.services) == null ? void 0 : i.languageUtils) || new
|
|
2698
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = ((i = this.services) == null ? void 0 : i.languageUtils) || new Qt(nr());
|
|
2699
2699
|
return t.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
2700
2700
|
}
|
|
2701
2701
|
static createInstance(e = {}, t) {
|
|
2702
|
-
return new
|
|
2702
|
+
return new Ne(e, t);
|
|
2703
2703
|
}
|
|
2704
2704
|
cloneInstance(e = {}, t = He) {
|
|
2705
2705
|
const r = e.forkResourceStore;
|
|
@@ -2708,23 +2708,23 @@ class Ie extends st {
|
|
|
2708
2708
|
...this.options,
|
|
2709
2709
|
...e,
|
|
2710
2710
|
isClone: !0
|
|
2711
|
-
}, i = new
|
|
2712
|
-
if ((e.debug !== void 0 || e.prefix !== void 0) && (i.logger = i.logger.clone(e)), ["store", "services", "language"].forEach((
|
|
2713
|
-
i[
|
|
2711
|
+
}, i = new Ne(s);
|
|
2712
|
+
if ((e.debug !== void 0 || e.prefix !== void 0) && (i.logger = i.logger.clone(e)), ["store", "services", "language"].forEach((o) => {
|
|
2713
|
+
i[o] = this[o];
|
|
2714
2714
|
}), i.services = {
|
|
2715
2715
|
...this.services
|
|
2716
2716
|
}, i.services.utils = {
|
|
2717
2717
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
2718
2718
|
}, r) {
|
|
2719
|
-
const
|
|
2719
|
+
const o = Object.keys(this.store.data).reduce((l, c) => (l[c] = {
|
|
2720
2720
|
...this.store.data[c]
|
|
2721
2721
|
}, l[c] = Object.keys(l[c]).reduce((f, u) => (f[u] = {
|
|
2722
2722
|
...l[c][u]
|
|
2723
2723
|
}, f), l[c]), l), {});
|
|
2724
|
-
i.store = new
|
|
2724
|
+
i.store = new Jt(o, s), i.services.resourceStore = i.store;
|
|
2725
2725
|
}
|
|
2726
|
-
return i.translator = new Ze(i.services, s), i.translator.on("*", (
|
|
2727
|
-
i.emit(
|
|
2726
|
+
return i.translator = new Ze(i.services, s), i.translator.on("*", (o, ...l) => {
|
|
2727
|
+
i.emit(o, ...l);
|
|
2728
2728
|
}), i.init(s, t), i.translator.options = s, i.translator.backendConnector.services.utils = {
|
|
2729
2729
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
2730
2730
|
}, i;
|
|
@@ -2739,8 +2739,8 @@ class Ie extends st {
|
|
|
2739
2739
|
};
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
|
-
const se =
|
|
2743
|
-
se.createInstance =
|
|
2742
|
+
const se = Ne.createInstance();
|
|
2743
|
+
se.createInstance = Ne.createInstance;
|
|
2744
2744
|
se.createInstance;
|
|
2745
2745
|
se.dir;
|
|
2746
2746
|
se.init;
|
|
@@ -2755,18 +2755,18 @@ se.setDefaultNamespace;
|
|
|
2755
2755
|
se.hasLoadedNamespace;
|
|
2756
2756
|
se.loadNamespaces;
|
|
2757
2757
|
se.loadLanguages;
|
|
2758
|
-
const vn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, bn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, xn = { CalendarFor: "Calendario per", Close: "Chiudi" }, Sn = {
|
|
2758
|
+
const vn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, bn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, xn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, Sn = {
|
|
2759
2759
|
Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
|
|
2760
2760
|
Day: vn,
|
|
2761
2761
|
Month: bn,
|
|
2762
2762
|
Generic: xn
|
|
2763
|
-
}, En = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, _n = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, wn = { CalendarFor: "Calendar for", Close: "Close" }, On = {
|
|
2763
|
+
}, En = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, _n = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, wn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, On = {
|
|
2764
2764
|
Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
|
|
2765
2765
|
Day: En,
|
|
2766
2766
|
Month: _n,
|
|
2767
2767
|
Generic: wn
|
|
2768
2768
|
};
|
|
2769
|
-
function
|
|
2769
|
+
function ir(n, e) {
|
|
2770
2770
|
return new RegExp(Tn(n), e);
|
|
2771
2771
|
}
|
|
2772
2772
|
function Tn(n) {
|
|
@@ -2776,22 +2776,22 @@ function Rn(n, e, t, r) {
|
|
|
2776
2776
|
let s = e;
|
|
2777
2777
|
const i = Dn(n, t);
|
|
2778
2778
|
if (!s) {
|
|
2779
|
-
const
|
|
2780
|
-
|
|
2779
|
+
const o = Math.abs(i);
|
|
2780
|
+
o - Math.floor(o) ? s = "0,0.00" : s = "0,0";
|
|
2781
2781
|
}
|
|
2782
|
-
const
|
|
2783
|
-
return new Intl.NumberFormat(r,
|
|
2782
|
+
const a = Pn(s);
|
|
2783
|
+
return new Intl.NumberFormat(r, a).format(i);
|
|
2784
2784
|
}
|
|
2785
2785
|
function Dn(n, e, t, r, s) {
|
|
2786
2786
|
let i = n;
|
|
2787
2787
|
if (typeof i != "number") {
|
|
2788
|
-
let
|
|
2789
|
-
e && r === void 0 ?
|
|
2790
|
-
const l =
|
|
2791
|
-
i = i.replace(
|
|
2788
|
+
let o;
|
|
2789
|
+
e && r === void 0 ? o = "," : o = ".";
|
|
2790
|
+
const l = o == "." ? "," : ".";
|
|
2791
|
+
i = i.replace(ir(l, "g"), ""), i = i.replace(ir(o, "g"), "."), i = Number(i);
|
|
2792
2792
|
}
|
|
2793
|
-
const
|
|
2794
|
-
return isNaN(
|
|
2793
|
+
const a = Number(i);
|
|
2794
|
+
return isNaN(a) ? NaN : a;
|
|
2795
2795
|
}
|
|
2796
2796
|
function Pn(n) {
|
|
2797
2797
|
const e = {};
|
|
@@ -2841,9 +2841,9 @@ se.init({
|
|
|
2841
2841
|
}
|
|
2842
2842
|
});
|
|
2843
2843
|
const An = (n, e, t, r) => se.format(n, e, t || se.language, r), Cn = (n, e) => se.t(n, e);
|
|
2844
|
-
function
|
|
2844
|
+
function it() {
|
|
2845
2845
|
const n = Te(
|
|
2846
|
-
(r, s, i,
|
|
2846
|
+
(r, s, i, a) => An(r, s, i || void 0, a),
|
|
2847
2847
|
[]
|
|
2848
2848
|
), e = Te(() => se.languages[0], []), t = Te(
|
|
2849
2849
|
(r, s) => Cn(r, s),
|
|
@@ -2851,20 +2851,20 @@ function Et() {
|
|
|
2851
2851
|
);
|
|
2852
2852
|
return { format: n, getCurrentLanguage: e, translate: t };
|
|
2853
2853
|
}
|
|
2854
|
-
const
|
|
2855
|
-
function
|
|
2854
|
+
const Ie = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" : n;
|
|
2855
|
+
function ar(n) {
|
|
2856
2856
|
if (n)
|
|
2857
2857
|
return n.toLowerCase();
|
|
2858
2858
|
}
|
|
2859
|
-
const
|
|
2859
|
+
const ss = ({
|
|
2860
2860
|
ColumnsNumber: n = 1,
|
|
2861
2861
|
data: e = {},
|
|
2862
2862
|
ForceText: t,
|
|
2863
2863
|
TextColName: r,
|
|
2864
2864
|
TextColor: s = "var(--smp-dashList-color-base)",
|
|
2865
2865
|
Fillspace: i,
|
|
2866
|
-
FontSize:
|
|
2867
|
-
Horizontal:
|
|
2866
|
+
FontSize: a,
|
|
2867
|
+
Horizontal: o,
|
|
2868
2868
|
ForceIcon: l,
|
|
2869
2869
|
IconColName: c,
|
|
2870
2870
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
@@ -2872,97 +2872,97 @@ const ns = ({
|
|
|
2872
2872
|
ForceUM: p,
|
|
2873
2873
|
UmColName: h,
|
|
2874
2874
|
UmColor: g = "var(--smp-dashList-color-base)",
|
|
2875
|
-
ForceValue:
|
|
2875
|
+
ForceValue: y,
|
|
2876
2876
|
ValueColName: E,
|
|
2877
|
-
ValueColor:
|
|
2878
|
-
SelectLayout:
|
|
2879
|
-
onClick:
|
|
2877
|
+
ValueColor: R = "var(--smp-dashList-color-base)",
|
|
2878
|
+
SelectLayout: x = "1",
|
|
2879
|
+
onClick: O
|
|
2880
2880
|
}) => {
|
|
2881
|
-
const D = "N/A",
|
|
2881
|
+
const D = "N/A", v = (e == null ? void 0 : e.columns) || [], A = (e == null ? void 0 : e.rows) || [], j = A.length > 0, Y = "--smp-dashList-color", F = "smp-layout", C = "descr", M = "icon", U = "um", J = "value", K = a || "1em", ne = "18px", z = "--smp-dashList-columns", V = "--smp-dashList-fontSize", B = {
|
|
2882
2882
|
dash: (N = "1") => {
|
|
2883
|
-
const
|
|
2883
|
+
const G = d(N), ee = Ce[G], te = m(G, C), le = m(G, M), ge = m(G, U), ce = m(G, J);
|
|
2884
2884
|
return {
|
|
2885
|
-
container:
|
|
2885
|
+
container: ee,
|
|
2886
2886
|
descr: te,
|
|
2887
2887
|
icon: le,
|
|
2888
2888
|
um: ge,
|
|
2889
2889
|
value: ce
|
|
2890
2890
|
};
|
|
2891
2891
|
},
|
|
2892
|
-
dashList: `${
|
|
2893
|
-
${
|
|
2894
|
-
}, { format: k } =
|
|
2895
|
-
const
|
|
2896
|
-
if (
|
|
2897
|
-
const te = N.match(
|
|
2892
|
+
dashList: `${Ce["smp-dash-list"]} ${Ie(i) ? Ce["smp-dash-list-fill-space"] : ""}
|
|
2893
|
+
${Ie(o) ? Ce["smp-dash-list-horizontal"] : ""}`
|
|
2894
|
+
}, { format: k } = it(), d = (N) => `${F}-${N}`, m = (N, G) => Ce[`${N}__${G}`], b = (N) => `${Y}-${N}`, _ = (N) => {
|
|
2895
|
+
const G = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
2896
|
+
if (G.test(N)) {
|
|
2897
|
+
const te = N.match(G) || [];
|
|
2898
2898
|
if ((te == null ? void 0 : te.length) > 3)
|
|
2899
2899
|
return "rgb(" + te[1] + "," + te[2] + "," + te[3] + ")";
|
|
2900
2900
|
}
|
|
2901
2901
|
return N;
|
|
2902
2902
|
}, S = (N) => {
|
|
2903
2903
|
if (!u) return N;
|
|
2904
|
-
const [
|
|
2904
|
+
const [G, ee] = T(u).map(
|
|
2905
2905
|
(Ee) => parseInt(Ee || "0")
|
|
2906
|
-
), te = "0,0" + (
|
|
2907
|
-
if (!
|
|
2906
|
+
), te = "0,0" + (ee ? "." + "0".repeat(ee) : ""), le = k(N, te, "it");
|
|
2907
|
+
if (!G) return le;
|
|
2908
2908
|
const [ge, ce] = le.split(",");
|
|
2909
2909
|
return ge + (ce ? `,${ce}` : "");
|
|
2910
|
-
}, T = (N) => N.includes(";") ? N.split(";") : [N],
|
|
2911
|
-
const
|
|
2910
|
+
}, T = (N) => N.includes(";") ? N.split(";") : [N], $ = (N) => {
|
|
2911
|
+
const G = (te) => {
|
|
2912
2912
|
var le;
|
|
2913
2913
|
if (te)
|
|
2914
2914
|
return (le = N == null ? void 0 : N.cells[te]) == null ? void 0 : le.obj.k;
|
|
2915
|
-
},
|
|
2915
|
+
}, ee = (te) => {
|
|
2916
2916
|
var le, ge;
|
|
2917
|
-
if (!(
|
|
2918
|
-
return (ge = (le = N == null ? void 0 : N.cells[
|
|
2917
|
+
if (!(v.length <= te))
|
|
2918
|
+
return (ge = (le = N == null ? void 0 : N.cells[v[te].name]) == null ? void 0 : le.obj) == null ? void 0 : ge.k;
|
|
2919
2919
|
};
|
|
2920
2920
|
return {
|
|
2921
|
-
descr: t ||
|
|
2922
|
-
icon: l ||
|
|
2923
|
-
um: p ||
|
|
2924
|
-
value:
|
|
2921
|
+
descr: t || G(r) || ee(2) || "",
|
|
2922
|
+
icon: l || G(c) || ee(3) || "",
|
|
2923
|
+
um: p || G(h) || ee(1) || "",
|
|
2924
|
+
value: y || G(E) || ee(0) || ""
|
|
2925
2925
|
};
|
|
2926
2926
|
}, I = (N) => {
|
|
2927
|
-
|
|
2928
|
-
},
|
|
2929
|
-
(N.key === "Enter" || N.key === " ") && (N.preventDefault(), N.stopPropagation(), I(
|
|
2927
|
+
O == null || O(N);
|
|
2928
|
+
}, L = (N, G) => {
|
|
2929
|
+
(N.key === "Enter" || N.key === " ") && (N.preventDefault(), N.stopPropagation(), I(G));
|
|
2930
2930
|
}, W = ((N) => {
|
|
2931
|
-
const
|
|
2931
|
+
const G = B.dash(N);
|
|
2932
2932
|
return {
|
|
2933
|
-
className:
|
|
2934
|
-
descr: (
|
|
2935
|
-
icon: (
|
|
2933
|
+
className: G,
|
|
2934
|
+
descr: (ee) => /* @__PURE__ */ w.jsx("div", { className: G.descr, children: ee }, `${N}-${C}`),
|
|
2935
|
+
icon: (ee) => /* @__PURE__ */ w.jsx("div", { className: G.icon, children: /* @__PURE__ */ w.jsx(
|
|
2936
2936
|
ve,
|
|
2937
2937
|
{
|
|
2938
2938
|
color: f,
|
|
2939
2939
|
height: ne,
|
|
2940
|
-
icon:
|
|
2940
|
+
icon: ee,
|
|
2941
2941
|
width: ne
|
|
2942
2942
|
}
|
|
2943
2943
|
) }, `${N}-${M}`),
|
|
2944
|
-
um: (
|
|
2945
|
-
value: (
|
|
2944
|
+
um: (ee) => /* @__PURE__ */ w.jsx("div", { className: G.um, children: ee }, `${N}-${U}`),
|
|
2945
|
+
value: (ee) => /* @__PURE__ */ w.jsx("div", { className: G.value, children: ee }, `${N}-${J}`)
|
|
2946
2946
|
};
|
|
2947
|
-
})(
|
|
2948
|
-
const { descr:
|
|
2949
|
-
[
|
|
2950
|
-
[
|
|
2951
|
-
[
|
|
2947
|
+
})(x), re = (N) => {
|
|
2948
|
+
const { descr: G, icon: ee, um: te, value: le } = $(N), ge = {
|
|
2949
|
+
[b(C)]: _(s),
|
|
2950
|
+
[b(U)]: _(g),
|
|
2951
|
+
[b(J)]: _(R)
|
|
2952
2952
|
}, ce = [], Ee = S(le);
|
|
2953
|
-
switch (
|
|
2953
|
+
switch (x) {
|
|
2954
2954
|
case "2":
|
|
2955
|
-
|
|
2955
|
+
ee && ce.push(W.icon(ee)), ce.push(W.descr(G)), ce.push(
|
|
2956
2956
|
W.value(te ? Ee + " " + te : Ee)
|
|
2957
2957
|
);
|
|
2958
2958
|
break;
|
|
2959
2959
|
default:
|
|
2960
2960
|
case "1":
|
|
2961
|
-
ce.push(W.descr(
|
|
2961
|
+
ce.push(W.descr(G)), ce.push(
|
|
2962
2962
|
W.value(te ? Ee + " " + te : Ee)
|
|
2963
2963
|
);
|
|
2964
2964
|
}
|
|
2965
|
-
return /* @__PURE__ */
|
|
2965
|
+
return /* @__PURE__ */ w.jsx(
|
|
2966
2966
|
"div",
|
|
2967
2967
|
{
|
|
2968
2968
|
className: W.className.container,
|
|
@@ -2970,17 +2970,17 @@ const ns = ({
|
|
|
2970
2970
|
style: ge,
|
|
2971
2971
|
tabIndex: 0,
|
|
2972
2972
|
onClick: () => I(N),
|
|
2973
|
-
onKeyDown: (wr) =>
|
|
2973
|
+
onKeyDown: (wr) => L(wr, N),
|
|
2974
2974
|
children: ce
|
|
2975
2975
|
},
|
|
2976
2976
|
N.id
|
|
2977
2977
|
);
|
|
2978
|
-
},
|
|
2979
|
-
[
|
|
2978
|
+
}, P = {
|
|
2979
|
+
[z]: String(n),
|
|
2980
2980
|
[V]: K
|
|
2981
2981
|
};
|
|
2982
|
-
return /* @__PURE__ */
|
|
2983
|
-
},
|
|
2982
|
+
return /* @__PURE__ */ w.jsx("div", { className: B.dashList, style: P, children: j ? A.map((N) => re(N)) : D });
|
|
2983
|
+
}, ue = {
|
|
2984
2984
|
AUTOCOMPLETE: "ACP",
|
|
2985
2985
|
BUTTON: "BTN",
|
|
2986
2986
|
CHECKBOX: "CHK",
|
|
@@ -2989,9 +2989,10 @@ const ns = ({
|
|
|
2989
2989
|
DATE: "CAL",
|
|
2990
2990
|
ICON: "ICO",
|
|
2991
2991
|
MULTI_AUTOCOMPLETE: "AML",
|
|
2992
|
+
SPOTLIGHT: "SPL",
|
|
2992
2993
|
TEXT_FIELD: "ITX",
|
|
2993
2994
|
PASSWORD: "PWD"
|
|
2994
|
-
},
|
|
2995
|
+
}, Ln = (n) => n.t == "D8", kn = (n) => {
|
|
2995
2996
|
if (n) {
|
|
2996
2997
|
const e = n.split(";");
|
|
2997
2998
|
if (e.length == 3)
|
|
@@ -3029,7 +3030,7 @@ class Qe {
|
|
|
3029
3030
|
return this.value ? "true" : "false";
|
|
3030
3031
|
}
|
|
3031
3032
|
}
|
|
3032
|
-
function
|
|
3033
|
+
function $n(n, e) {
|
|
3033
3034
|
if (_t(n)) {
|
|
3034
3035
|
const f = new Date(n);
|
|
3035
3036
|
if (!isNaN(f.getTime()))
|
|
@@ -3038,26 +3039,26 @@ function jn(n, e) {
|
|
|
3038
3039
|
const t = /* @__PURE__ */ new Date(), r = n.replaceAll("/", "").replaceAll("-", "");
|
|
3039
3040
|
let s = "DDMMYYYY";
|
|
3040
3041
|
e === "en" && (s = "MMDDYYYY");
|
|
3041
|
-
const i = s.indexOf("DD"),
|
|
3042
|
-
let
|
|
3042
|
+
const i = s.indexOf("DD"), a = s.indexOf("MM");
|
|
3043
|
+
let o = 0, l = 0, c = "";
|
|
3043
3044
|
switch (r.length) {
|
|
3044
3045
|
case 1:
|
|
3045
3046
|
case 2:
|
|
3046
|
-
return
|
|
3047
|
+
return o = parseInt(r), t.setDate(o), qe(t) ? t : n;
|
|
3047
3048
|
case 3:
|
|
3048
3049
|
case 4:
|
|
3049
|
-
return
|
|
3050
|
+
return o = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), a === 0 ? (t.setDate(l), t.setMonth(o - 1)) : i === 0 && (t.setDate(o), t.setMonth(l - 1)), qe(t) ? t : n;
|
|
3050
3051
|
case 5:
|
|
3051
3052
|
case 6: {
|
|
3052
|
-
|
|
3053
|
+
o = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), Number(r.substring(4)) > 50 ? c = "19" + r.substring(4) : c = "20" + r.substring(4);
|
|
3053
3054
|
let f = 0, u = 0;
|
|
3054
|
-
return
|
|
3055
|
+
return a === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : i === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)), xt(o, u, parseInt(c)) && qe(t) ? t : n;
|
|
3055
3056
|
}
|
|
3056
3057
|
case 7:
|
|
3057
3058
|
case 8: {
|
|
3058
|
-
|
|
3059
|
+
o = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), c = r.substring(4);
|
|
3059
3060
|
let f = 0, u = 0;
|
|
3060
|
-
return
|
|
3061
|
+
return a === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : i === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)), xt(f, u, parseInt(c)) && qe(t) ? t : n;
|
|
3061
3062
|
}
|
|
3062
3063
|
}
|
|
3063
3064
|
return n;
|
|
@@ -3068,12 +3069,12 @@ function _t(n) {
|
|
|
3068
3069
|
function qe(n) {
|
|
3069
3070
|
return n instanceof Date && !isNaN(n.getTime());
|
|
3070
3071
|
}
|
|
3071
|
-
function
|
|
3072
|
+
function jn(n) {
|
|
3072
3073
|
if (!/^\d{8}$/.test(n)) return !1;
|
|
3073
3074
|
const e = parseInt(n.slice(0, 4), 10), t = parseInt(n.slice(4, 6), 10), r = parseInt(n.slice(6, 8), 10);
|
|
3074
|
-
return
|
|
3075
|
+
return xt(r, t - 1, e);
|
|
3075
3076
|
}
|
|
3076
|
-
function
|
|
3077
|
+
function xt(n, e, t) {
|
|
3077
3078
|
const r = [
|
|
3078
3079
|
31,
|
|
3079
3080
|
// January
|
|
@@ -3116,13 +3117,13 @@ class et {
|
|
|
3116
3117
|
this.class = e, this.date = t;
|
|
3117
3118
|
}
|
|
3118
3119
|
static fromDataObj(e) {
|
|
3119
|
-
const t =
|
|
3120
|
+
const t = or.get(`${e.t}${e.p}`);
|
|
3120
3121
|
if (t)
|
|
3121
3122
|
return new et(e, t.legacyToIso(e.k));
|
|
3122
3123
|
throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
|
|
3123
3124
|
}
|
|
3124
3125
|
getLegacyValue() {
|
|
3125
|
-
const e =
|
|
3126
|
+
const e = or.get(`${this.class.t}${this.class.p}`);
|
|
3126
3127
|
if (e)
|
|
3127
3128
|
return e.isoToLegacy(this.date);
|
|
3128
3129
|
throw new Error(
|
|
@@ -3133,12 +3134,12 @@ class et {
|
|
|
3133
3134
|
return this.date;
|
|
3134
3135
|
}
|
|
3135
3136
|
}
|
|
3136
|
-
const
|
|
3137
|
+
const or = /* @__PURE__ */ new Map([
|
|
3137
3138
|
[
|
|
3138
3139
|
"D8*YYMD",
|
|
3139
3140
|
{
|
|
3140
3141
|
legacyToIso(n) {
|
|
3141
|
-
return
|
|
3142
|
+
return jn(n) && `${n.substring(0, 4)}-${n.substring(4, 6)}-${n.substring(6, 8)}` || n;
|
|
3142
3143
|
},
|
|
3143
3144
|
isoToLegacy(n) {
|
|
3144
3145
|
return _t(n) && n.replaceAll("-", "") || n;
|
|
@@ -3159,23 +3160,23 @@ function wt({
|
|
|
3159
3160
|
position: n = "bottom",
|
|
3160
3161
|
enabled: e = !0
|
|
3161
3162
|
}) {
|
|
3162
|
-
const t = xe(null), r = xe(null), [s, i] =
|
|
3163
|
-
const
|
|
3164
|
-
if (!
|
|
3165
|
-
const { top: c, left: f, width: u, height: p } =
|
|
3163
|
+
const t = xe(null), r = xe(null), [s, i] = Q(0), a = Te(() => {
|
|
3164
|
+
const o = t.current, l = r.current;
|
|
3165
|
+
if (!o || !l) return;
|
|
3166
|
+
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
3166
3167
|
i(u);
|
|
3167
3168
|
const h = l.offsetHeight, g = l.offsetWidth;
|
|
3168
3169
|
if (g === 0 || h === 0) {
|
|
3169
|
-
requestAnimationFrame(
|
|
3170
|
+
requestAnimationFrame(a);
|
|
3170
3171
|
return;
|
|
3171
3172
|
}
|
|
3172
|
-
let
|
|
3173
|
+
let y = c + window.scrollY, E = f + window.scrollX;
|
|
3173
3174
|
switch (n) {
|
|
3174
3175
|
case "top":
|
|
3175
|
-
|
|
3176
|
+
y -= h;
|
|
3176
3177
|
break;
|
|
3177
3178
|
case "bottom":
|
|
3178
|
-
|
|
3179
|
+
y += p;
|
|
3179
3180
|
break;
|
|
3180
3181
|
case "left":
|
|
3181
3182
|
E -= g;
|
|
@@ -3185,18 +3186,18 @@ function wt({
|
|
|
3185
3186
|
break;
|
|
3186
3187
|
}
|
|
3187
3188
|
requestAnimationFrame(() => {
|
|
3188
|
-
l.style.transform = `translate(${E}px, ${
|
|
3189
|
+
l.style.transform = `translate(${E}px, ${y}px)`;
|
|
3189
3190
|
});
|
|
3190
3191
|
}, [n]);
|
|
3191
3192
|
return Rr(() => {
|
|
3192
|
-
e && t.current && r.current &&
|
|
3193
|
-
const
|
|
3194
|
-
r.current &&
|
|
3193
|
+
e && t.current && r.current && a();
|
|
3194
|
+
const o = new MutationObserver(() => {
|
|
3195
|
+
r.current && a();
|
|
3195
3196
|
});
|
|
3196
|
-
return r.current &&
|
|
3197
|
-
window.removeEventListener("resize",
|
|
3197
|
+
return r.current && o.observe(r.current, { childList: !0, subtree: !0 }), window.addEventListener("resize", a), window.addEventListener("scroll", a, !0), () => {
|
|
3198
|
+
window.removeEventListener("resize", a), window.removeEventListener("scroll", a, !0), o.disconnect();
|
|
3198
3199
|
};
|
|
3199
|
-
}, [
|
|
3200
|
+
}, [a, e]), { anchorRef: t, targetRef: r, anchorWidth: s };
|
|
3200
3201
|
}
|
|
3201
3202
|
const rt = (n, e, t) => {
|
|
3202
3203
|
if (t)
|
|
@@ -3209,11 +3210,11 @@ const rt = (n, e, t) => {
|
|
|
3209
3210
|
return `${n} - ${e}`;
|
|
3210
3211
|
}
|
|
3211
3212
|
return n;
|
|
3212
|
-
},
|
|
3213
|
+
}, ke = {
|
|
3213
3214
|
"smp-list": "_smp-list_1ux5k_1",
|
|
3214
3215
|
"smp-list-container": "_smp-list-container_1ux5k_18",
|
|
3215
3216
|
"smp-list-listItem": "_smp-list-listItem_1ux5k_23"
|
|
3216
|
-
},
|
|
3217
|
+
}, mt = {
|
|
3217
3218
|
"smp-helper-text": "_smp-helper-text_10pis_1",
|
|
3218
3219
|
"smp-helper-text-danger": "_smp-helper-text-danger_10pis_9",
|
|
3219
3220
|
"smp-helper-text-warning": "_smp-helper-text-warning_10pis_13",
|
|
@@ -3224,39 +3225,39 @@ const rt = (n, e, t) => {
|
|
|
3224
3225
|
state: t
|
|
3225
3226
|
}) => {
|
|
3226
3227
|
const r = {
|
|
3227
|
-
container: `${
|
|
3228
|
+
container: `${mt["smp-helper-text"]} ${e ? mt["smp-helper-text-disabled"] : ""} ${t ? mt[`smp-helper-text-${t}`] : ""}`
|
|
3228
3229
|
};
|
|
3229
|
-
return /* @__PURE__ */
|
|
3230
|
-
},
|
|
3230
|
+
return /* @__PURE__ */ w.jsx("span", { className: r.container, children: n });
|
|
3231
|
+
}, lr = {
|
|
3231
3232
|
"smp-label": "_smp-label_3ywt3_1",
|
|
3232
3233
|
"smp-label-disabled": "_smp-label-disabled_3ywt3_5"
|
|
3233
3234
|
}, Fn = ({ label: n, disabled: e }) => {
|
|
3234
3235
|
const t = {
|
|
3235
|
-
container: `${
|
|
3236
|
+
container: `${lr["smp-label"]} ${e ? lr["smp-label-disabled"] : ""}`
|
|
3236
3237
|
};
|
|
3237
|
-
return /* @__PURE__ */
|
|
3238
|
+
return /* @__PURE__ */ w.jsx("span", { className: t.container, children: n });
|
|
3238
3239
|
}, me = {
|
|
3239
|
-
"smp-textfield-wrapper": "_smp-textfield-
|
|
3240
|
-
"smp-textfield": "_smp-
|
|
3241
|
-
"smp-textfield-extraSmall": "_smp-textfield-
|
|
3242
|
-
"smp-textfield-small": "_smp-textfield-
|
|
3243
|
-
"smp-textfield-medium": "_smp-textfield-
|
|
3244
|
-
"smp-textfield-large": "_smp-textfield-
|
|
3245
|
-
"smp-textfield-extraLarge": "_smp-textfield-
|
|
3246
|
-
"smp-textfield-input": "_smp-textfield-
|
|
3247
|
-
"smp-textfield-danger": "_smp-textfield-
|
|
3248
|
-
"smp-textfield-readOnly": "_smp-textfield-
|
|
3249
|
-
"smp-textfield-variant-notSelectable": "_smp-textfield-variant-
|
|
3250
|
-
"smp-textfield-disabled": "_smp-textfield-
|
|
3251
|
-
},
|
|
3240
|
+
"smp-textfield-wrapper": "_smp-textfield-wrapper_1t99c_4",
|
|
3241
|
+
"smp-textfield": "_smp-textfield_1t99c_4",
|
|
3242
|
+
"smp-textfield-extraSmall": "_smp-textfield-extraSmall_1t99c_63",
|
|
3243
|
+
"smp-textfield-small": "_smp-textfield-small_1t99c_68",
|
|
3244
|
+
"smp-textfield-medium": "_smp-textfield-medium_1t99c_73",
|
|
3245
|
+
"smp-textfield-large": "_smp-textfield-large_1t99c_78",
|
|
3246
|
+
"smp-textfield-extraLarge": "_smp-textfield-extraLarge_1t99c_83",
|
|
3247
|
+
"smp-textfield-input": "_smp-textfield-input_1t99c_89",
|
|
3248
|
+
"smp-textfield-danger": "_smp-textfield-danger_1t99c_113",
|
|
3249
|
+
"smp-textfield-readOnly": "_smp-textfield-readOnly_1t99c_117",
|
|
3250
|
+
"smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_1t99c_122",
|
|
3251
|
+
"smp-textfield-disabled": "_smp-textfield-disabled_1t99c_132"
|
|
3252
|
+
}, Re = ({
|
|
3252
3253
|
disabled: n,
|
|
3253
3254
|
readOnly: e,
|
|
3254
3255
|
bindValue: t,
|
|
3255
3256
|
icon: r,
|
|
3256
3257
|
onBlur: s,
|
|
3257
3258
|
onChange: i,
|
|
3258
|
-
placeholder:
|
|
3259
|
-
shapeIcon:
|
|
3259
|
+
placeholder: a,
|
|
3260
|
+
shapeIcon: o,
|
|
3260
3261
|
sizing: l,
|
|
3261
3262
|
state: c,
|
|
3262
3263
|
variant: f,
|
|
@@ -3264,57 +3265,57 @@ const rt = (n, e, t) => {
|
|
|
3264
3265
|
onShapeIconClick: p,
|
|
3265
3266
|
ref: h,
|
|
3266
3267
|
inputRef: g,
|
|
3267
|
-
onKeyDown:
|
|
3268
|
+
onKeyDown: y,
|
|
3268
3269
|
inputType: E = "text",
|
|
3269
|
-
ariaLabel:
|
|
3270
|
-
label:
|
|
3271
|
-
helperText:
|
|
3270
|
+
ariaLabel: R = "input field",
|
|
3271
|
+
label: x,
|
|
3272
|
+
helperText: O = !1,
|
|
3272
3273
|
error: D
|
|
3273
3274
|
}) => {
|
|
3274
|
-
const
|
|
3275
|
+
const v = D ? "danger" : c, A = D || c == "danger" ? "error" : o, j = O || !!D, Y = (C) => {
|
|
3275
3276
|
i == null || i(C.target.value);
|
|
3276
3277
|
}, F = {
|
|
3277
3278
|
wrapper: `${me["smp-textfield-wrapper"]}`,
|
|
3278
|
-
container: `${me["smp-textfield"]} ${n ? me["smp-textfield-disabled"] : ""} ${e ? me["smp-textfield-readOnly"] : ""} ${
|
|
3279
|
+
container: `${me["smp-textfield"]} ${n ? me["smp-textfield-disabled"] : ""} ${e ? me["smp-textfield-readOnly"] : ""} ${a ? me["smp-textfield-placeholder"] : ""} ${l ? me[`smp-textfield-${l}`] : ""} ${v ? me[`smp-textfield-${v}`] : ""} ${f ? me[`smp-textfield-variant-${f}`] : ""}`,
|
|
3279
3280
|
input: `${me["smp-textfield-input"]}`
|
|
3280
3281
|
};
|
|
3281
|
-
return /* @__PURE__ */
|
|
3282
|
-
|
|
3283
|
-
/* @__PURE__ */
|
|
3284
|
-
r && /* @__PURE__ */
|
|
3285
|
-
/* @__PURE__ */
|
|
3282
|
+
return /* @__PURE__ */ w.jsxs("div", { className: F.wrapper, children: [
|
|
3283
|
+
x && /* @__PURE__ */ w.jsx(Fn, { label: x, disabled: n }),
|
|
3284
|
+
/* @__PURE__ */ w.jsxs("div", { className: F.container, ref: h, children: [
|
|
3285
|
+
r && /* @__PURE__ */ w.jsx(ve, { icon: r, disabled: n }),
|
|
3286
|
+
/* @__PURE__ */ w.jsx(
|
|
3286
3287
|
"input",
|
|
3287
3288
|
{
|
|
3288
3289
|
type: E,
|
|
3289
3290
|
value: t,
|
|
3290
|
-
placeholder:
|
|
3291
|
+
placeholder: a,
|
|
3291
3292
|
onChange: Y,
|
|
3292
3293
|
onBlur: s,
|
|
3293
3294
|
className: F.input,
|
|
3294
3295
|
disabled: n,
|
|
3295
3296
|
readOnly: e,
|
|
3296
|
-
onKeyDown:
|
|
3297
|
-
"aria-label":
|
|
3297
|
+
onKeyDown: y,
|
|
3298
|
+
"aria-label": R,
|
|
3298
3299
|
ref: g
|
|
3299
3300
|
}
|
|
3300
3301
|
),
|
|
3301
|
-
|
|
3302
|
+
A && /* @__PURE__ */ w.jsx(
|
|
3302
3303
|
ve,
|
|
3303
3304
|
{
|
|
3304
|
-
icon:
|
|
3305
|
+
icon: A,
|
|
3305
3306
|
disabled: n,
|
|
3306
|
-
state:
|
|
3307
|
+
state: v,
|
|
3307
3308
|
onClick: p,
|
|
3308
3309
|
rotated: u
|
|
3309
3310
|
}
|
|
3310
3311
|
)
|
|
3311
3312
|
] }),
|
|
3312
|
-
|
|
3313
|
+
j && /* @__PURE__ */ w.jsx(
|
|
3313
3314
|
Mn,
|
|
3314
3315
|
{
|
|
3315
3316
|
helperText: D,
|
|
3316
3317
|
disabled: n,
|
|
3317
|
-
state:
|
|
3318
|
+
state: v
|
|
3318
3319
|
}
|
|
3319
3320
|
)
|
|
3320
3321
|
] });
|
|
@@ -3325,7 +3326,7 @@ function Vn({
|
|
|
3325
3326
|
containerHeight: t,
|
|
3326
3327
|
overscan: r = 5
|
|
3327
3328
|
}) {
|
|
3328
|
-
const [s, i] =
|
|
3329
|
+
const [s, i] = Q(0), a = xe(null), o = n.length * e, l = Math.max(0, Math.floor(s / e) - r), c = Math.min(
|
|
3329
3330
|
n.length - 1,
|
|
3330
3331
|
Math.floor((s + t) / e) + r
|
|
3331
3332
|
), f = [];
|
|
@@ -3339,14 +3340,14 @@ function Vn({
|
|
|
3339
3340
|
const g = h.target.scrollTop;
|
|
3340
3341
|
i(g);
|
|
3341
3342
|
}, []), p = (h) => {
|
|
3342
|
-
if (!
|
|
3343
|
-
const g = h * e,
|
|
3344
|
-
g <
|
|
3343
|
+
if (!a.current) return;
|
|
3344
|
+
const g = h * e, y = g + e, E = a.current, R = E.scrollTop, x = R + t;
|
|
3345
|
+
g < R ? E.scrollTop = g : y > x && (E.scrollTop = y - t);
|
|
3345
3346
|
};
|
|
3346
3347
|
return {
|
|
3347
3348
|
virtualItems: f,
|
|
3348
3349
|
containerProps: {
|
|
3349
|
-
ref:
|
|
3350
|
+
ref: a,
|
|
3350
3351
|
style: {
|
|
3351
3352
|
maxHeight: `${t}px`,
|
|
3352
3353
|
overflowY: "auto",
|
|
@@ -3357,7 +3358,7 @@ function Vn({
|
|
|
3357
3358
|
},
|
|
3358
3359
|
innerProps: {
|
|
3359
3360
|
style: {
|
|
3360
|
-
height: `${
|
|
3361
|
+
height: `${o}px`,
|
|
3361
3362
|
position: "relative",
|
|
3362
3363
|
width: "100%"
|
|
3363
3364
|
}
|
|
@@ -3365,14 +3366,14 @@ function Vn({
|
|
|
3365
3366
|
scrollInfo: {
|
|
3366
3367
|
scrollTop: s,
|
|
3367
3368
|
viewportHeight: t,
|
|
3368
|
-
totalHeight:
|
|
3369
|
+
totalHeight: o,
|
|
3369
3370
|
startIndex: l,
|
|
3370
3371
|
endIndex: c
|
|
3371
3372
|
},
|
|
3372
3373
|
scrollToIndex: p
|
|
3373
3374
|
};
|
|
3374
3375
|
}
|
|
3375
|
-
const Yn = 10,
|
|
3376
|
+
const Yn = 10, br = ({
|
|
3376
3377
|
id: n,
|
|
3377
3378
|
options: e,
|
|
3378
3379
|
displayMode: t,
|
|
@@ -3380,20 +3381,20 @@ const Yn = 10, vr = ({
|
|
|
3380
3381
|
showFilter: s,
|
|
3381
3382
|
selectedIndex: i = null,
|
|
3382
3383
|
// current outline element
|
|
3383
|
-
activeIndex:
|
|
3384
|
+
activeIndex: a = [],
|
|
3384
3385
|
// active element
|
|
3385
|
-
width:
|
|
3386
|
+
width: o,
|
|
3386
3387
|
onClick: l,
|
|
3387
3388
|
onKeyDown: c
|
|
3388
3389
|
}) => {
|
|
3389
3390
|
var C;
|
|
3390
|
-
const [f, u] =
|
|
3391
|
+
const [f, u] = Q(""), p = 24, [h, g] = Q(
|
|
3391
3392
|
i !== null ? i : -1
|
|
3392
|
-
),
|
|
3393
|
+
), y = s !== void 0 ? s : e.length > Yn, E = f ? e.filter(
|
|
3393
3394
|
(M) => M.label.toLowerCase().includes(f.toLowerCase())
|
|
3394
|
-
) : e,
|
|
3395
|
+
) : e, R = (M) => {
|
|
3395
3396
|
u(M);
|
|
3396
|
-
}, { virtualItems:
|
|
3397
|
+
}, { virtualItems: x, containerProps: O, innerProps: D, scrollToIndex: v } = Vn({
|
|
3397
3398
|
items: E,
|
|
3398
3399
|
itemHeight: p,
|
|
3399
3400
|
containerHeight: 200,
|
|
@@ -3402,66 +3403,66 @@ const Yn = 10, vr = ({
|
|
|
3402
3403
|
he(() => {
|
|
3403
3404
|
i !== null && i !== h && g(i);
|
|
3404
3405
|
}, [i]), he(() => {
|
|
3405
|
-
h >= 0 && h < E.length &&
|
|
3406
|
+
h >= 0 && h < E.length && v(h);
|
|
3406
3407
|
}, [h, E]);
|
|
3407
|
-
const
|
|
3408
|
+
const A = (M) => {
|
|
3408
3409
|
if (M.key === "ArrowDown" || M.key === "ArrowUp") {
|
|
3409
3410
|
M.preventDefault();
|
|
3410
3411
|
let U = h;
|
|
3411
3412
|
M.key === "ArrowDown" ? U = h < E.length - 1 ? h + 1 : 0 : M.key === "ArrowUp" && (U = h > 0 ? h - 1 : E.length - 1), g(U);
|
|
3412
3413
|
} else M.key === "Enter" ? h >= 0 && h < E.length && (l == null || l(E[h])) : M.key === "Escape" && (M.preventDefault(), M.stopPropagation());
|
|
3413
3414
|
c && c(M);
|
|
3414
|
-
},
|
|
3415
|
-
|
|
3415
|
+
}, j = (M) => {
|
|
3416
|
+
A(M);
|
|
3416
3417
|
}, Y = (M) => {
|
|
3417
|
-
|
|
3418
|
+
A(M);
|
|
3418
3419
|
}, F = {
|
|
3419
|
-
wrapper: `${
|
|
3420
|
-
container: `${
|
|
3421
|
-
virtualScroll: `${
|
|
3422
|
-
listItem: `${
|
|
3420
|
+
wrapper: `${ke["smp-list"]}`,
|
|
3421
|
+
container: `${ke["smp-list-container"]}`,
|
|
3422
|
+
virtualScroll: `${ke["smp-list-virtualScroll"]}`,
|
|
3423
|
+
listItem: `${ke["smp-list-listItem"]}`
|
|
3423
3424
|
};
|
|
3424
|
-
return /* @__PURE__ */
|
|
3425
|
+
return /* @__PURE__ */ w.jsxs(
|
|
3425
3426
|
"div",
|
|
3426
3427
|
{
|
|
3427
3428
|
id: n,
|
|
3428
3429
|
ref: r,
|
|
3429
3430
|
className: F.wrapper,
|
|
3430
3431
|
style: {
|
|
3431
|
-
width:
|
|
3432
|
+
width: o
|
|
3432
3433
|
},
|
|
3433
3434
|
children: [
|
|
3434
|
-
|
|
3435
|
-
|
|
3435
|
+
y && /* @__PURE__ */ w.jsx(
|
|
3436
|
+
Re,
|
|
3436
3437
|
{
|
|
3437
3438
|
bindValue: f,
|
|
3438
3439
|
placeholder: "Search...",
|
|
3439
|
-
onChange:
|
|
3440
|
-
onKeyDown:
|
|
3440
|
+
onChange: R,
|
|
3441
|
+
onKeyDown: j
|
|
3441
3442
|
}
|
|
3442
3443
|
),
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
+
/* @__PURE__ */ w.jsx(
|
|
3444
3445
|
"div",
|
|
3445
3446
|
{
|
|
3446
|
-
...
|
|
3447
|
+
...O,
|
|
3447
3448
|
className: F.container,
|
|
3448
3449
|
tabIndex: 0,
|
|
3449
3450
|
role: "listbox",
|
|
3450
3451
|
"aria-label": "List",
|
|
3451
3452
|
onKeyDown: Y,
|
|
3452
3453
|
"aria-activedescendant": h >= 0 && h < E.length ? (C = E[h]) == null ? void 0 : C.id : void 0,
|
|
3453
|
-
children: /* @__PURE__ */
|
|
3454
|
-
const K =
|
|
3454
|
+
children: /* @__PURE__ */ w.jsx("div", { ...D, className: F.virtualScroll, children: x.map(({ item: M, index: U, offsetTop: J }) => {
|
|
3455
|
+
const K = a.includes(M.id);
|
|
3455
3456
|
return (
|
|
3456
3457
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
3457
|
-
/* @__PURE__ */
|
|
3458
|
+
/* @__PURE__ */ w.jsxs(
|
|
3458
3459
|
"li",
|
|
3459
3460
|
{
|
|
3460
3461
|
role: "option",
|
|
3461
3462
|
id: M.id,
|
|
3462
3463
|
"aria-selected": h === U ? "true" : "false",
|
|
3463
3464
|
tabIndex: -1,
|
|
3464
|
-
className: `${F.listItem} ${h === U ?
|
|
3465
|
+
className: `${F.listItem} ${h === U ? ke["selected-item"] : ""}`,
|
|
3465
3466
|
"aria-label": M.id + "-" + M.label,
|
|
3466
3467
|
style: {
|
|
3467
3468
|
height: `${p}px`,
|
|
@@ -3474,7 +3475,7 @@ const Yn = 10, vr = ({
|
|
|
3474
3475
|
},
|
|
3475
3476
|
children: [
|
|
3476
3477
|
rt(M.id, M.label, t),
|
|
3477
|
-
K && /* @__PURE__ */
|
|
3478
|
+
K && /* @__PURE__ */ w.jsx(ve, { icon: "check", width: 16 })
|
|
3478
3479
|
]
|
|
3479
3480
|
},
|
|
3480
3481
|
M.id
|
|
@@ -3486,13 +3487,13 @@ const Yn = 10, vr = ({
|
|
|
3486
3487
|
]
|
|
3487
3488
|
}
|
|
3488
3489
|
);
|
|
3489
|
-
},
|
|
3490
|
+
}, xr = ({
|
|
3490
3491
|
displayMode: n,
|
|
3491
3492
|
bindValue: e,
|
|
3492
3493
|
optionalDisplayValue: t,
|
|
3493
3494
|
...r
|
|
3494
3495
|
}) => {
|
|
3495
|
-
const [s, i] =
|
|
3496
|
+
const [s, i] = Q(
|
|
3496
3497
|
rt(e, t, n)
|
|
3497
3498
|
);
|
|
3498
3499
|
return he(() => {
|
|
@@ -3501,7 +3502,7 @@ const Yn = 10, vr = ({
|
|
|
3501
3502
|
i(
|
|
3502
3503
|
rt(e, t, n)
|
|
3503
3504
|
);
|
|
3504
|
-
}, [t, n]), /* @__PURE__ */
|
|
3505
|
+
}, [t, n]), /* @__PURE__ */ w.jsx(Re, { ...r, bindValue: s });
|
|
3505
3506
|
}, Un = (n) => {
|
|
3506
3507
|
const e = xe(null);
|
|
3507
3508
|
return he(() => () => {
|
|
@@ -3511,83 +3512,83 @@ const Yn = 10, vr = ({
|
|
|
3511
3512
|
r();
|
|
3512
3513
|
}, n);
|
|
3513
3514
|
};
|
|
3514
|
-
},
|
|
3515
|
+
}, Sr = ({
|
|
3515
3516
|
bindValue: n,
|
|
3516
3517
|
optionalDisplayValue: e,
|
|
3517
3518
|
options: t,
|
|
3518
3519
|
displayMode: r,
|
|
3519
3520
|
listDisplayMode: s = "Both",
|
|
3520
3521
|
minimumChars: i = 3,
|
|
3521
|
-
placeholder:
|
|
3522
|
-
fun:
|
|
3522
|
+
placeholder: a,
|
|
3523
|
+
fun: o,
|
|
3523
3524
|
_changeOnEnter: l = !1,
|
|
3524
3525
|
onChange: c,
|
|
3525
3526
|
onOptionsRequest: f,
|
|
3526
3527
|
_multiActiveIndex: u,
|
|
3527
3528
|
...p
|
|
3528
3529
|
}) => {
|
|
3529
|
-
const [h, g] =
|
|
3530
|
+
const [h, g] = Q(n), [y, E] = Q(e), [R, x] = Q(!1), [O, D] = Q(t || []), [v, A] = Q(0), [j, Y] = Q([n]), { anchorRef: F, targetRef: C, anchorWidth: M } = wt({
|
|
3530
3531
|
position: "bottom",
|
|
3531
|
-
enabled:
|
|
3532
|
+
enabled: R
|
|
3532
3533
|
});
|
|
3533
|
-
tt(C, () =>
|
|
3534
|
+
tt(C, () => x(!1));
|
|
3534
3535
|
const U = Un(400), J = (V) => {
|
|
3535
|
-
V.length >= i ?
|
|
3536
|
-
const B = await f(
|
|
3537
|
-
D(B),
|
|
3538
|
-
}) :
|
|
3536
|
+
V.length >= i ? o && f && U(async () => {
|
|
3537
|
+
const B = await f(o, V);
|
|
3538
|
+
D(B), A(B.length > 0 ? 0 : -1), x(!0);
|
|
3539
|
+
}) : x(!1), g(V), E(e), l || c == null || c(V, e);
|
|
3539
3540
|
}, K = (V) => {
|
|
3540
3541
|
l ? (g(""), E("")) : (g(V.id), E(V.label)), c == null || c(V.id, V.label);
|
|
3541
|
-
const B =
|
|
3542
|
-
|
|
3542
|
+
const B = O.findIndex((k) => k.id === V.id);
|
|
3543
|
+
A(B), Y([V.id]), x(!1);
|
|
3543
3544
|
}, ne = (V) => {
|
|
3544
|
-
V.key === "Escape" && (
|
|
3545
|
-
},
|
|
3546
|
-
if ((V.key === "ArrowDown" || V.key === "ArrowUp") && (V.preventDefault(),
|
|
3547
|
-
const B = V.key === "ArrowDown" ? (
|
|
3548
|
-
|
|
3545
|
+
V.key === "Escape" && (x(!1), A(-1));
|
|
3546
|
+
}, z = (V) => {
|
|
3547
|
+
if ((V.key === "ArrowDown" || V.key === "ArrowUp") && (V.preventDefault(), R)) {
|
|
3548
|
+
const B = V.key === "ArrowDown" ? (v + 1) % O.length : (v - 1 + O.length) % O.length;
|
|
3549
|
+
A(B);
|
|
3549
3550
|
}
|
|
3550
3551
|
switch (V.key) {
|
|
3551
3552
|
case "Enter":
|
|
3552
|
-
|
|
3553
|
+
v >= 0 && v < O.length ? K(O[v]) : l && (c == null || c(h, ""), x(!1), g(""), E(""));
|
|
3553
3554
|
break;
|
|
3554
3555
|
case "Escape":
|
|
3555
|
-
|
|
3556
|
+
x(!1), A(-1);
|
|
3556
3557
|
break;
|
|
3557
3558
|
}
|
|
3558
3559
|
};
|
|
3559
|
-
return /* @__PURE__ */
|
|
3560
|
-
/* @__PURE__ */
|
|
3561
|
-
|
|
3560
|
+
return /* @__PURE__ */ w.jsxs("div", { children: [
|
|
3561
|
+
/* @__PURE__ */ w.jsx(
|
|
3562
|
+
xr,
|
|
3562
3563
|
{
|
|
3563
3564
|
...p,
|
|
3564
3565
|
bindValue: h,
|
|
3565
|
-
optionalDisplayValue:
|
|
3566
|
+
optionalDisplayValue: y,
|
|
3566
3567
|
displayMode: r,
|
|
3567
3568
|
shapeIcon: "magnify",
|
|
3568
|
-
placeholder:
|
|
3569
|
+
placeholder: a,
|
|
3569
3570
|
ref: F,
|
|
3570
3571
|
onChange: J,
|
|
3571
|
-
onKeyDown:
|
|
3572
|
+
onKeyDown: z,
|
|
3572
3573
|
"aria-autocomplete": "list"
|
|
3573
3574
|
}
|
|
3574
3575
|
),
|
|
3575
|
-
|
|
3576
|
-
|
|
3576
|
+
R && /* @__PURE__ */ w.jsx(
|
|
3577
|
+
br,
|
|
3577
3578
|
{
|
|
3578
|
-
options:
|
|
3579
|
+
options: O,
|
|
3579
3580
|
displayMode: s,
|
|
3580
3581
|
onClick: K,
|
|
3581
3582
|
ref: C,
|
|
3582
|
-
selectedIndex:
|
|
3583
|
-
activeIndex: u ||
|
|
3583
|
+
selectedIndex: v,
|
|
3584
|
+
activeIndex: u || j,
|
|
3584
3585
|
width: M,
|
|
3585
3586
|
showFilter: !1,
|
|
3586
3587
|
onKeyDown: ne
|
|
3587
3588
|
}
|
|
3588
3589
|
)
|
|
3589
3590
|
] });
|
|
3590
|
-
},
|
|
3591
|
+
}, $e = {
|
|
3591
3592
|
"smp-button-container": "_smp-button-container_pte2h_1",
|
|
3592
3593
|
"smp-button-extraSmall": "_smp-button-extraSmall_pte2h_51",
|
|
3593
3594
|
"smp-button-small": "_smp-button-small_pte2h_56",
|
|
@@ -3607,8 +3608,8 @@ const Yn = 10, vr = ({
|
|
|
3607
3608
|
icon: r,
|
|
3608
3609
|
disabled: s,
|
|
3609
3610
|
sizing: i = "base",
|
|
3610
|
-
variant:
|
|
3611
|
-
type:
|
|
3611
|
+
variant: a = "primary",
|
|
3612
|
+
type: o = "raised",
|
|
3612
3613
|
//FIXME: Type is sensitive value
|
|
3613
3614
|
showIcon: l = !0,
|
|
3614
3615
|
showText: c = !0,
|
|
@@ -3616,13 +3617,13 @@ const Yn = 10, vr = ({
|
|
|
3616
3617
|
loading: u = !1
|
|
3617
3618
|
}) => {
|
|
3618
3619
|
const p = {
|
|
3619
|
-
container: `${
|
|
3620
|
+
container: `${$e["smp-button-container"]} ${i ? $e[`smp-button-${i}`] : ""} ${a ? $e[`smp-buttonVariant-${a}`] : ""} ${o ? $e[`smp-buttonType-${o}`] : ""} ${f ? $e["smp-button-fullWidth"] : ""}`
|
|
3620
3621
|
}, h = (g) => ({
|
|
3621
3622
|
primary: "onPrimary",
|
|
3622
3623
|
danger: "onDanger",
|
|
3623
3624
|
base: "base"
|
|
3624
3625
|
})[g];
|
|
3625
|
-
return /* @__PURE__ */
|
|
3626
|
+
return /* @__PURE__ */ w.jsx(
|
|
3626
3627
|
"button",
|
|
3627
3628
|
{
|
|
3628
3629
|
className: p.container,
|
|
@@ -3630,16 +3631,16 @@ const Yn = 10, vr = ({
|
|
|
3630
3631
|
"aria-label": t,
|
|
3631
3632
|
disabled: s,
|
|
3632
3633
|
"aria-busy": u,
|
|
3633
|
-
children: u ? /* @__PURE__ */
|
|
3634
|
-
r && l && /* @__PURE__ */
|
|
3634
|
+
children: u ? /* @__PURE__ */ w.jsx(ve, { icon: "spinner", state: h(a), spin: !0 }) : /* @__PURE__ */ w.jsxs(w.Fragment, { children: [
|
|
3635
|
+
r && l && /* @__PURE__ */ w.jsx(
|
|
3635
3636
|
ve,
|
|
3636
3637
|
{
|
|
3637
3638
|
icon: r,
|
|
3638
3639
|
disabled: s,
|
|
3639
|
-
state: h(
|
|
3640
|
+
state: h(a)
|
|
3640
3641
|
}
|
|
3641
3642
|
),
|
|
3642
|
-
c && /* @__PURE__ */
|
|
3643
|
+
c && /* @__PURE__ */ w.jsx("span", { children: n })
|
|
3643
3644
|
] })
|
|
3644
3645
|
}
|
|
3645
3646
|
);
|
|
@@ -3651,7 +3652,7 @@ const Yn = 10, vr = ({
|
|
|
3651
3652
|
const r = (s) => {
|
|
3652
3653
|
e && e(s.target.checked);
|
|
3653
3654
|
};
|
|
3654
|
-
return /* @__PURE__ */
|
|
3655
|
+
return /* @__PURE__ */ w.jsx(
|
|
3655
3656
|
"input",
|
|
3656
3657
|
{
|
|
3657
3658
|
type: "checkbox",
|
|
@@ -3665,7 +3666,7 @@ const Yn = 10, vr = ({
|
|
|
3665
3666
|
title: "h3",
|
|
3666
3667
|
body: "h6",
|
|
3667
3668
|
label: "label"
|
|
3668
|
-
},
|
|
3669
|
+
}, gt = {
|
|
3669
3670
|
"smp-typography": "_smp-typography_oznk3_1",
|
|
3670
3671
|
"smp-typography-body": "_smp-typography-body_oznk3_12",
|
|
3671
3672
|
"smp-typography-large": "_smp-typography-large_oznk3_16",
|
|
@@ -3678,44 +3679,44 @@ const Yn = 10, vr = ({
|
|
|
3678
3679
|
...t
|
|
3679
3680
|
}) => {
|
|
3680
3681
|
const r = Hn[n], s = {
|
|
3681
|
-
container: `${
|
|
3682
|
+
container: `${gt["smp-typography"]} ${n ? gt[`smp-typography-${n}`] : ""} ${t.disabled ? gt["smp-typography-disabled"] : ""}`
|
|
3682
3683
|
};
|
|
3683
|
-
return /* @__PURE__ */
|
|
3684
|
-
},
|
|
3684
|
+
return /* @__PURE__ */ w.jsx(r, { className: s.container, disabled: t.disabled, children: e });
|
|
3685
|
+
}, cr = {
|
|
3685
3686
|
"smp-chips-container": "_smp-chips-container_g7dut_1",
|
|
3686
3687
|
"smp-chips-element": "_smp-chips-element_g7dut_9"
|
|
3687
|
-
},
|
|
3688
|
+
}, Er = ({
|
|
3688
3689
|
elements: n,
|
|
3689
3690
|
isEditable: e = !1,
|
|
3690
3691
|
displayMode: t = "Both",
|
|
3691
3692
|
onChange: r
|
|
3692
3693
|
}) => {
|
|
3693
3694
|
const s = {
|
|
3694
|
-
container: `${
|
|
3695
|
-
element: `${
|
|
3696
|
-
}, i = (
|
|
3697
|
-
r == null || r(n.filter((
|
|
3695
|
+
container: `${cr["smp-chips-container"]}`,
|
|
3696
|
+
element: `${cr["smp-chips-element"]}`
|
|
3697
|
+
}, i = (a) => {
|
|
3698
|
+
r == null || r(n.filter((o, l) => l !== a));
|
|
3698
3699
|
};
|
|
3699
|
-
return /* @__PURE__ */
|
|
3700
|
+
return /* @__PURE__ */ w.jsx("div", { className: s.container, role: "list", children: n.map((a, o) => {
|
|
3700
3701
|
const l = rt(
|
|
3701
|
-
|
|
3702
|
-
|
|
3702
|
+
a.bindValue,
|
|
3703
|
+
a.optionalDisplayValue,
|
|
3703
3704
|
t
|
|
3704
3705
|
);
|
|
3705
|
-
return /* @__PURE__ */
|
|
3706
|
-
/* @__PURE__ */
|
|
3707
|
-
e && /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ w.jsxs("div", { className: s.element, role: "listitem", children: [
|
|
3707
|
+
/* @__PURE__ */ w.jsx(qn, { variant: "label", bindValue: l }),
|
|
3708
|
+
e && /* @__PURE__ */ w.jsx(
|
|
3708
3709
|
ve,
|
|
3709
3710
|
{
|
|
3710
3711
|
icon: "close",
|
|
3711
3712
|
isInteractable: !0,
|
|
3712
|
-
onClick: () => i(
|
|
3713
|
+
onClick: () => i(o)
|
|
3713
3714
|
}
|
|
3714
3715
|
)
|
|
3715
|
-
] },
|
|
3716
|
+
] }, o);
|
|
3716
3717
|
}) });
|
|
3717
3718
|
};
|
|
3718
|
-
function
|
|
3719
|
+
function _r(n, e) {
|
|
3719
3720
|
const t = xe(null);
|
|
3720
3721
|
he(() => {
|
|
3721
3722
|
if (!n) return;
|
|
@@ -3731,23 +3732,23 @@ function Er(n, e) {
|
|
|
3731
3732
|
const c = s();
|
|
3732
3733
|
c.length > 0 && requestAnimationFrame(() => c[0].focus());
|
|
3733
3734
|
})();
|
|
3734
|
-
const
|
|
3735
|
+
const a = (c) => {
|
|
3735
3736
|
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
3736
3737
|
const f = s();
|
|
3737
3738
|
if (f.length === 0) return;
|
|
3738
3739
|
const u = f[0], p = f[f.length - 1];
|
|
3739
3740
|
c.shiftKey && document.activeElement === u ? (c.preventDefault(), p.focus()) : !c.shiftKey && document.activeElement === p && (c.preventDefault(), u.focus());
|
|
3740
|
-
},
|
|
3741
|
+
}, o = (c) => {
|
|
3741
3742
|
if (r && !r.contains(c.target)) {
|
|
3742
3743
|
c.preventDefault();
|
|
3743
3744
|
const f = s();
|
|
3744
3745
|
f.length > 0 && f[0].focus();
|
|
3745
3746
|
}
|
|
3746
3747
|
};
|
|
3747
|
-
document.addEventListener("keydown",
|
|
3748
|
+
document.addEventListener("keydown", a), document.addEventListener("mousedown", o);
|
|
3748
3749
|
const l = document.body.style.overflow;
|
|
3749
3750
|
return document.body.style.overflow = "hidden", () => {
|
|
3750
|
-
document.removeEventListener("keydown",
|
|
3751
|
+
document.removeEventListener("keydown", a), document.removeEventListener("mousedown", o), document.body.style.overflow = l, t.current && requestAnimationFrame(() => {
|
|
3751
3752
|
var c;
|
|
3752
3753
|
(c = t.current) == null || c.focus();
|
|
3753
3754
|
});
|
|
@@ -3761,39 +3762,39 @@ const Kn = ({
|
|
|
3761
3762
|
optionalDisplayValue: r,
|
|
3762
3763
|
displayMode: s,
|
|
3763
3764
|
listDisplayMode: i = "Both",
|
|
3764
|
-
fun:
|
|
3765
|
-
onOptionsRequest:
|
|
3765
|
+
fun: a,
|
|
3766
|
+
onOptionsRequest: o,
|
|
3766
3767
|
multiActiveIndex: l,
|
|
3767
3768
|
...c
|
|
3768
3769
|
}) => {
|
|
3769
|
-
const [f, u] =
|
|
3770
|
+
const [f, u] = Q(!1), [p, h] = Q(t), [g, y] = Q(-1), [E, R] = Q([n]), x = Dr(), { anchorRef: O, targetRef: D, anchorWidth: v } = wt({
|
|
3770
3771
|
position: "bottom",
|
|
3771
3772
|
enabled: f
|
|
3772
3773
|
});
|
|
3773
|
-
tt(D, () => u(!1)),
|
|
3774
|
-
const
|
|
3774
|
+
tt(D, () => u(!1)), _r(f, D);
|
|
3775
|
+
const A = (C) => {
|
|
3775
3776
|
e == null || e(C.id, C.label);
|
|
3776
3777
|
const M = p.findIndex((U) => U.id === C.id);
|
|
3777
|
-
|
|
3778
|
-
},
|
|
3779
|
-
C.key === "Escape" && (u(!1),
|
|
3778
|
+
y(M), R([C.id]), u(!1);
|
|
3779
|
+
}, j = (C) => {
|
|
3780
|
+
C.key === "Escape" && (u(!1), y(-1));
|
|
3780
3781
|
}, Y = (C) => {
|
|
3781
3782
|
(C.key === "ArrowDown" || C.key === "ArrowUp") && (C.preventDefault(), F());
|
|
3782
3783
|
}, F = () => {
|
|
3783
|
-
|
|
3784
|
-
h(C),
|
|
3784
|
+
a && o && o(a, void 0).then((C) => {
|
|
3785
|
+
h(C), y(C.length > 0 ? 0 : -1), u(!0);
|
|
3785
3786
|
});
|
|
3786
3787
|
};
|
|
3787
|
-
return /* @__PURE__ */
|
|
3788
|
+
return /* @__PURE__ */ w.jsxs(
|
|
3788
3789
|
"div",
|
|
3789
3790
|
{
|
|
3790
3791
|
role: "combobox",
|
|
3791
3792
|
"aria-expanded": f,
|
|
3792
|
-
"aria-controls":
|
|
3793
|
-
"aria-owns":
|
|
3793
|
+
"aria-controls": x,
|
|
3794
|
+
"aria-owns": x,
|
|
3794
3795
|
children: [
|
|
3795
|
-
/* @__PURE__ */
|
|
3796
|
-
|
|
3796
|
+
/* @__PURE__ */ w.jsx(
|
|
3797
|
+
xr,
|
|
3797
3798
|
{
|
|
3798
3799
|
...c,
|
|
3799
3800
|
bindValue: n,
|
|
@@ -3804,30 +3805,30 @@ const Kn = ({
|
|
|
3804
3805
|
shapeIcon: "arrow_drop_down",
|
|
3805
3806
|
rotatedShapeIcon: f,
|
|
3806
3807
|
readOnly: !0,
|
|
3807
|
-
ref:
|
|
3808
|
+
ref: O,
|
|
3808
3809
|
"aria-autocomplete": "list",
|
|
3809
3810
|
variant: "notSelectable"
|
|
3810
3811
|
}
|
|
3811
3812
|
),
|
|
3812
|
-
f && /* @__PURE__ */
|
|
3813
|
-
|
|
3813
|
+
f && /* @__PURE__ */ w.jsx(
|
|
3814
|
+
br,
|
|
3814
3815
|
{
|
|
3815
|
-
id:
|
|
3816
|
+
id: x,
|
|
3816
3817
|
options: p,
|
|
3817
3818
|
displayMode: i,
|
|
3818
3819
|
ref: D,
|
|
3819
3820
|
selectedIndex: g,
|
|
3820
3821
|
activeIndex: l || E,
|
|
3821
|
-
width:
|
|
3822
|
-
onClick:
|
|
3823
|
-
onKeyDown:
|
|
3822
|
+
width: v,
|
|
3823
|
+
onClick: A,
|
|
3824
|
+
onKeyDown: j
|
|
3824
3825
|
}
|
|
3825
3826
|
)
|
|
3826
3827
|
]
|
|
3827
3828
|
}
|
|
3828
3829
|
);
|
|
3829
3830
|
};
|
|
3830
|
-
var
|
|
3831
|
+
var Ot = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n))(Ot || {}), ae = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(ae || {}), oe = /* @__PURE__ */ ((n) => (n.JANUARY = "Month.January", n.FEBRUARY = "Month.February", n.MARCH = "Month.March", n.APRIL = "Month.April", n.MAY = "Month.May", n.JUNE = "Month.June", n.JULY = "Month.July", n.AUGUST = "Month.August", n.SEPTEMBER = "Month.September", n.OCTOBER = "Month.October", n.NOVEMBER = "Month.November", n.DECEMBER = "Month.December", n))(oe || {}), St = /* @__PURE__ */ ((n) => (n.PREVIOUS_DAY = "Date.PreviousDay", n.PREVIOUS_WEEK = "Date.PreviousWeek", n.PREVIOUS_MONTH = "Date.PreviousMonth", n.PREVIOUS_YEAR = "Date.PreviousYear", n.NEXT_DAY = "Date.NextDay", n.NEXT_WEEK = "Date.NextWeek", n.NEXT_MONTH = "Date.NextMonth", n.NEXT_YEAR = "Date.NextYear", n.YESTERDAY = "Date.Yesterday", n.TODAY = "Date.Today", n.TOMORROW = "Date.Tomorrow", n))(St || {});
|
|
3831
3832
|
const de = {
|
|
3832
3833
|
"smp-datepickercalendar": "_smp-datepickercalendar_u2io5_1",
|
|
3833
3834
|
"smp-datepickercalendar-table": "_smp-datepickercalendar-table_u2io5_30",
|
|
@@ -3845,19 +3846,19 @@ function Bn({
|
|
|
3845
3846
|
initialValue: r,
|
|
3846
3847
|
targetRef: s
|
|
3847
3848
|
}) {
|
|
3848
|
-
const { translate: i } =
|
|
3849
|
+
const { translate: i } = it(), a = () => {
|
|
3849
3850
|
if (!r) return;
|
|
3850
3851
|
const k = new Date(r);
|
|
3851
3852
|
return isNaN(k.getTime()) ? void 0 : k;
|
|
3852
|
-
}, [
|
|
3853
|
-
n ||
|
|
3854
|
-
), [f, u] =
|
|
3853
|
+
}, [o] = Q(/* @__PURE__ */ new Date()), [l, c] = Q(
|
|
3854
|
+
n || a() || /* @__PURE__ */ new Date()
|
|
3855
|
+
), [f, u] = Q(
|
|
3855
3856
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
3856
|
-
), [p, h] =
|
|
3857
|
+
), [p, h] = Q(
|
|
3857
3858
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3858
|
-
), [g,
|
|
3859
|
+
), [g, y] = Q(
|
|
3859
3860
|
l ? l.getDate() : null
|
|
3860
|
-
), E = xe(null),
|
|
3861
|
+
), E = xe(null), R = xe([]), x = [
|
|
3861
3862
|
i(oe.JANUARY),
|
|
3862
3863
|
i(oe.FEBRUARY),
|
|
3863
3864
|
i(oe.MARCH),
|
|
@@ -3870,7 +3871,7 @@ function Bn({
|
|
|
3870
3871
|
i(oe.OCTOBER),
|
|
3871
3872
|
i(oe.NOVEMBER),
|
|
3872
3873
|
i(oe.DECEMBER)
|
|
3873
|
-
],
|
|
3874
|
+
], O = [
|
|
3874
3875
|
{
|
|
3875
3876
|
value: i(ae.SUNDAY_SHORT),
|
|
3876
3877
|
full: i(ae.SUNDAY)
|
|
@@ -3900,32 +3901,32 @@ function Bn({
|
|
|
3900
3901
|
full: i(ae.SATURDAY)
|
|
3901
3902
|
}
|
|
3902
3903
|
], D = (k) => t.some((d) => {
|
|
3903
|
-
const m = d.start.getTime(),
|
|
3904
|
-
return _ >= m && _ <=
|
|
3905
|
-
}),
|
|
3906
|
-
D(k) || (c(k),
|
|
3907
|
-
},
|
|
3908
|
-
f === 0 ? (u(11), h(p - 1)) : u(f - 1),
|
|
3909
|
-
},
|
|
3910
|
-
f === 11 ? (u(0), h(p + 1)) : u(f + 1),
|
|
3904
|
+
const m = d.start.getTime(), b = d.end.getTime(), _ = k.getTime();
|
|
3905
|
+
return _ >= m && _ <= b;
|
|
3906
|
+
}), v = (k) => {
|
|
3907
|
+
D(k) || (c(k), y(k.getDate()), e && e(Nn(k)));
|
|
3908
|
+
}, A = () => {
|
|
3909
|
+
f === 0 ? (u(11), h(p - 1)) : u(f - 1), y(1);
|
|
3910
|
+
}, j = () => {
|
|
3911
|
+
f === 11 ? (u(0), h(p + 1)) : u(f + 1), y(1);
|
|
3911
3912
|
}, Y = (k, d) => new Date(k, d + 1, 0).getDate(), F = (k, d) => new Date(k, d, 1).getDay(), C = (k) => {
|
|
3912
3913
|
var m;
|
|
3913
3914
|
const d = K.findIndex(
|
|
3914
|
-
(
|
|
3915
|
+
(b) => b !== null && b.getDate() === k
|
|
3915
3916
|
);
|
|
3916
|
-
d !== -1 &&
|
|
3917
|
+
d !== -1 && R.current[d] && ((m = R.current[d]) == null || m.focus(), y(k));
|
|
3917
3918
|
}, M = (k, d) => {
|
|
3918
3919
|
const m = K[d];
|
|
3919
3920
|
if (!m) return;
|
|
3920
|
-
const
|
|
3921
|
+
const b = Y(p, f), _ = m.getDate();
|
|
3921
3922
|
switch (k.key) {
|
|
3922
3923
|
case "ArrowRight":
|
|
3923
3924
|
k.preventDefault();
|
|
3924
3925
|
{
|
|
3925
3926
|
let S = _ + 1, T = new Date(p, f, S);
|
|
3926
|
-
if (S >
|
|
3927
|
-
const
|
|
3928
|
-
S = 1, T = new Date(
|
|
3927
|
+
if (S > b) {
|
|
3928
|
+
const $ = f === 11 ? p + 1 : p, I = f === 11 ? 0 : f + 1;
|
|
3929
|
+
S = 1, T = new Date($, I, S), j(), setTimeout(() => {
|
|
3929
3930
|
U(1, "forward");
|
|
3930
3931
|
}, 0);
|
|
3931
3932
|
return;
|
|
@@ -3940,9 +3941,9 @@ function Bn({
|
|
|
3940
3941
|
{
|
|
3941
3942
|
let S = _ - 1, T = new Date(p, f, S);
|
|
3942
3943
|
if (S < 1) {
|
|
3943
|
-
const
|
|
3944
|
-
S =
|
|
3945
|
-
U(
|
|
3944
|
+
const $ = f === 0 ? p - 1 : p, I = f === 0 ? 11 : f - 1, L = Y($, I);
|
|
3945
|
+
S = L, T = new Date($, I, S), A(), setTimeout(() => {
|
|
3946
|
+
U(L, "backward");
|
|
3946
3947
|
}, 0);
|
|
3947
3948
|
return;
|
|
3948
3949
|
}
|
|
@@ -3954,8 +3955,8 @@ function Bn({
|
|
|
3954
3955
|
{
|
|
3955
3956
|
let S = _ - 7, T = new Date(p, f, S);
|
|
3956
3957
|
if (S < 1) {
|
|
3957
|
-
const
|
|
3958
|
-
S = Y(
|
|
3958
|
+
const $ = f === 0 ? p - 1 : p, I = f === 0 ? 11 : f - 1;
|
|
3959
|
+
S = Y($, I) + S, T = new Date($, I, S), A(), setTimeout(() => {
|
|
3959
3960
|
U(S, "backward");
|
|
3960
3961
|
}, 0);
|
|
3961
3962
|
return;
|
|
@@ -3967,9 +3968,9 @@ function Bn({
|
|
|
3967
3968
|
k.preventDefault();
|
|
3968
3969
|
{
|
|
3969
3970
|
let S = _ + 7, T = new Date(p, f, S);
|
|
3970
|
-
if (S >
|
|
3971
|
-
const
|
|
3972
|
-
S = S -
|
|
3971
|
+
if (S > b) {
|
|
3972
|
+
const $ = f === 11 ? p + 1 : p, I = f === 11 ? 0 : f + 1;
|
|
3973
|
+
S = S - b, T = new Date($, I, S), j(), setTimeout(() => {
|
|
3973
3974
|
U(S, "forward");
|
|
3974
3975
|
}, 0);
|
|
3975
3976
|
return;
|
|
@@ -3981,10 +3982,10 @@ function Bn({
|
|
|
3981
3982
|
k.preventDefault(), U(1, "forward");
|
|
3982
3983
|
break;
|
|
3983
3984
|
case "End":
|
|
3984
|
-
k.preventDefault(), U(
|
|
3985
|
+
k.preventDefault(), U(b, "backward");
|
|
3985
3986
|
break;
|
|
3986
3987
|
case "PageUp":
|
|
3987
|
-
k.preventDefault(),
|
|
3988
|
+
k.preventDefault(), A(), setTimeout(() => {
|
|
3988
3989
|
const S = Y(
|
|
3989
3990
|
f === 0 ? p - 1 : p,
|
|
3990
3991
|
f === 0 ? 11 : f - 1
|
|
@@ -3993,7 +3994,7 @@ function Bn({
|
|
|
3993
3994
|
}, 0);
|
|
3994
3995
|
break;
|
|
3995
3996
|
case "PageDown":
|
|
3996
|
-
k.preventDefault(),
|
|
3997
|
+
k.preventDefault(), j(), setTimeout(() => {
|
|
3997
3998
|
const S = Y(
|
|
3998
3999
|
f === 11 ? p + 1 : p,
|
|
3999
4000
|
f === 11 ? 0 : f + 1
|
|
@@ -4004,54 +4005,54 @@ function Bn({
|
|
|
4004
4005
|
case " ":
|
|
4005
4006
|
case "Space":
|
|
4006
4007
|
if (D(m)) return;
|
|
4007
|
-
|
|
4008
|
+
y(m.getDate()), c(m);
|
|
4008
4009
|
break;
|
|
4009
4010
|
case "Enter":
|
|
4010
|
-
k.preventDefault(),
|
|
4011
|
+
k.preventDefault(), v(m);
|
|
4011
4012
|
break;
|
|
4012
4013
|
}
|
|
4013
4014
|
}, U = (k, d) => {
|
|
4014
4015
|
const m = Y(p, f);
|
|
4015
4016
|
if (d === "forward") {
|
|
4016
|
-
for (let
|
|
4017
|
-
const _ = new Date(p, f,
|
|
4017
|
+
for (let b = k; b <= m; b++) {
|
|
4018
|
+
const _ = new Date(p, f, b);
|
|
4018
4019
|
if (!D(_)) {
|
|
4019
|
-
C(
|
|
4020
|
+
C(b);
|
|
4020
4021
|
return;
|
|
4021
4022
|
}
|
|
4022
4023
|
}
|
|
4023
|
-
|
|
4024
|
+
j(), setTimeout(() => {
|
|
4024
4025
|
U(1, "forward");
|
|
4025
4026
|
}, 0);
|
|
4026
4027
|
} else {
|
|
4027
4028
|
for (let T = k; T >= 1; T--) {
|
|
4028
|
-
const
|
|
4029
|
-
if (!D(
|
|
4029
|
+
const $ = new Date(p, f, T);
|
|
4030
|
+
if (!D($)) {
|
|
4030
4031
|
C(T);
|
|
4031
4032
|
return;
|
|
4032
4033
|
}
|
|
4033
4034
|
}
|
|
4034
|
-
const
|
|
4035
|
-
|
|
4035
|
+
const b = f === 0 ? p - 1 : p, _ = f === 0 ? 11 : f - 1, S = Y(b, _);
|
|
4036
|
+
A(), setTimeout(() => {
|
|
4036
4037
|
U(S, "backward");
|
|
4037
4038
|
}, 0);
|
|
4038
4039
|
}
|
|
4039
4040
|
}, K = (() => {
|
|
4040
4041
|
const k = Y(p, f), d = F(p, f), m = [];
|
|
4041
|
-
for (let
|
|
4042
|
+
for (let b = 0; b < d; b++)
|
|
4042
4043
|
m.push(null);
|
|
4043
|
-
for (let
|
|
4044
|
-
const _ = new Date(p, f,
|
|
4044
|
+
for (let b = 1; b <= k; b++) {
|
|
4045
|
+
const _ = new Date(p, f, b);
|
|
4045
4046
|
m.push(_);
|
|
4046
4047
|
}
|
|
4047
4048
|
return m;
|
|
4048
4049
|
})(), ne = [];
|
|
4049
|
-
let
|
|
4050
|
+
let z = [];
|
|
4050
4051
|
K.forEach((k, d) => {
|
|
4051
|
-
if (
|
|
4052
|
-
for (;
|
|
4053
|
-
|
|
4054
|
-
ne.push(
|
|
4052
|
+
if (z.push(k), z.length === 7 || d === K.length - 1) {
|
|
4053
|
+
for (; z.length < 7; )
|
|
4054
|
+
z.push(null);
|
|
4055
|
+
ne.push(z), z = [];
|
|
4055
4056
|
}
|
|
4056
4057
|
}), he(() => {
|
|
4057
4058
|
var k;
|
|
@@ -4059,7 +4060,7 @@ function Bn({
|
|
|
4059
4060
|
const d = K.findIndex(
|
|
4060
4061
|
(m) => m !== null && m.getDate() === g
|
|
4061
4062
|
);
|
|
4062
|
-
d !== -1 &&
|
|
4063
|
+
d !== -1 && R.current[d] && ((k = R.current[d]) == null || k.focus());
|
|
4063
4064
|
}
|
|
4064
4065
|
}, [f, p, g, K]);
|
|
4065
4066
|
const V = {
|
|
@@ -4068,13 +4069,13 @@ function Bn({
|
|
|
4068
4069
|
calendar: `${de["smp-datepickercalendar"]}`,
|
|
4069
4070
|
table: `${de["smp-datepickercalendar-table"]}`,
|
|
4070
4071
|
th: `${de["smp-datepickercalendar-th"]}`,
|
|
4071
|
-
td: (k, d, m,
|
|
4072
|
+
td: (k, d, m, b) => `${de["smp-datepickercalendar-td"]}
|
|
4072
4073
|
${k ? de["smp-datepickercalendar-td-today"] : ""}
|
|
4073
4074
|
${d ? de["smp-datepickercalendar-td-selected"] : ""}
|
|
4074
4075
|
${m ? de["smp-datepickercalendar-td-focused"] : ""}
|
|
4075
|
-
${
|
|
4076
|
-
}, B = () => `${
|
|
4077
|
-
return /* @__PURE__ */
|
|
4076
|
+
${b ? de["smp-datepickercalendar-td-disabled"] : ""}`
|
|
4077
|
+
}, B = () => `${x[f]} ${p.toString()}`;
|
|
4078
|
+
return /* @__PURE__ */ w.jsxs(
|
|
4078
4079
|
"div",
|
|
4079
4080
|
{
|
|
4080
4081
|
className: V.wrapper,
|
|
@@ -4083,7 +4084,7 @@ function Bn({
|
|
|
4083
4084
|
tabIndex: -1,
|
|
4084
4085
|
"aria-modal": "true",
|
|
4085
4086
|
children: [
|
|
4086
|
-
/* @__PURE__ */
|
|
4087
|
+
/* @__PURE__ */ w.jsxs(
|
|
4087
4088
|
"div",
|
|
4088
4089
|
{
|
|
4089
4090
|
style: {
|
|
@@ -4093,17 +4094,17 @@ function Bn({
|
|
|
4093
4094
|
marginBottom: "16px"
|
|
4094
4095
|
},
|
|
4095
4096
|
children: [
|
|
4096
|
-
/* @__PURE__ */
|
|
4097
|
+
/* @__PURE__ */ w.jsx(
|
|
4097
4098
|
nt,
|
|
4098
4099
|
{
|
|
4099
|
-
onClick:
|
|
4100
|
-
ariaLabel: i(
|
|
4100
|
+
onClick: A,
|
|
4101
|
+
ariaLabel: i(St.PREVIOUS_MONTH),
|
|
4101
4102
|
bindValue: "<",
|
|
4102
4103
|
type: "ghost",
|
|
4103
4104
|
variant: "base"
|
|
4104
4105
|
}
|
|
4105
4106
|
),
|
|
4106
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ w.jsx(
|
|
4107
4108
|
"div",
|
|
4108
4109
|
{
|
|
4109
4110
|
"aria-label": B(),
|
|
@@ -4111,11 +4112,11 @@ function Bn({
|
|
|
4111
4112
|
children: B()
|
|
4112
4113
|
}
|
|
4113
4114
|
),
|
|
4114
|
-
/* @__PURE__ */
|
|
4115
|
+
/* @__PURE__ */ w.jsx(
|
|
4115
4116
|
nt,
|
|
4116
4117
|
{
|
|
4117
|
-
onClick:
|
|
4118
|
-
ariaLabel: i(
|
|
4118
|
+
onClick: j,
|
|
4119
|
+
ariaLabel: i(St.NEXT_MONTH),
|
|
4119
4120
|
bindValue: ">",
|
|
4120
4121
|
type: "ghost",
|
|
4121
4122
|
variant: "base"
|
|
@@ -4124,15 +4125,15 @@ function Bn({
|
|
|
4124
4125
|
]
|
|
4125
4126
|
}
|
|
4126
4127
|
),
|
|
4127
|
-
/* @__PURE__ */
|
|
4128
|
+
/* @__PURE__ */ w.jsxs(
|
|
4128
4129
|
"table",
|
|
4129
4130
|
{
|
|
4130
4131
|
ref: E,
|
|
4131
4132
|
role: "grid",
|
|
4132
|
-
"aria-label": `${i(
|
|
4133
|
+
"aria-label": `${i(Ot.CALENDAR_FOR)} ${x[f]} ${p}`,
|
|
4133
4134
|
className: V.table,
|
|
4134
4135
|
children: [
|
|
4135
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ w.jsx("thead", { children: /* @__PURE__ */ w.jsx("tr", { children: O.map((k) => /* @__PURE__ */ w.jsx(
|
|
4136
4137
|
"th",
|
|
4137
4138
|
{
|
|
4138
4139
|
scope: "col",
|
|
@@ -4142,10 +4143,10 @@ function Bn({
|
|
|
4142
4143
|
},
|
|
4143
4144
|
k.value
|
|
4144
4145
|
)) }) }),
|
|
4145
|
-
/* @__PURE__ */
|
|
4146
|
-
const _ = d * 7 +
|
|
4146
|
+
/* @__PURE__ */ w.jsx("tbody", { children: ne.map((k, d) => /* @__PURE__ */ w.jsx("tr", { children: k.map((m, b) => {
|
|
4147
|
+
const _ = d * 7 + b;
|
|
4147
4148
|
if (m === null)
|
|
4148
|
-
return /* @__PURE__ */
|
|
4149
|
+
return /* @__PURE__ */ w.jsx(
|
|
4149
4150
|
"td",
|
|
4150
4151
|
{
|
|
4151
4152
|
className: V.td(
|
|
@@ -4155,32 +4156,32 @@ function Bn({
|
|
|
4155
4156
|
!0
|
|
4156
4157
|
)
|
|
4157
4158
|
},
|
|
4158
|
-
`empty-${
|
|
4159
|
+
`empty-${b}`
|
|
4159
4160
|
);
|
|
4160
|
-
const S = m.getDate() ===
|
|
4161
|
-
return /* @__PURE__ */
|
|
4161
|
+
const S = m.getDate() === o.getDate() && m.getMonth() === o.getMonth() && m.getFullYear() === o.getFullYear(), T = l && m.getDate() === l.getDate() && m.getMonth() === l.getMonth() && m.getFullYear() === l.getFullYear(), $ = g === m.getDate(), I = D(m);
|
|
4162
|
+
return /* @__PURE__ */ w.jsx(
|
|
4162
4163
|
"td",
|
|
4163
4164
|
{
|
|
4164
4165
|
role: "gridcell",
|
|
4165
4166
|
"aria-selected": T,
|
|
4166
|
-
tabIndex:
|
|
4167
|
-
onClick: () =>
|
|
4168
|
-
onKeyDown: (
|
|
4169
|
-
"aria-label": `${m.getDate()} ${
|
|
4167
|
+
tabIndex: $ ? 0 : -1,
|
|
4168
|
+
onClick: () => v(m),
|
|
4169
|
+
onKeyDown: (L) => M(L, _),
|
|
4170
|
+
"aria-label": `${m.getDate()} ${x[m.getMonth()]} ${m.getFullYear()}`,
|
|
4170
4171
|
"data-selected": T,
|
|
4171
4172
|
"aria-disabled": I,
|
|
4172
|
-
ref: (
|
|
4173
|
-
|
|
4173
|
+
ref: (L) => {
|
|
4174
|
+
R.current[_] = L;
|
|
4174
4175
|
},
|
|
4175
4176
|
className: V.td(
|
|
4176
4177
|
S,
|
|
4177
4178
|
T,
|
|
4178
|
-
|
|
4179
|
+
$,
|
|
4179
4180
|
I
|
|
4180
4181
|
),
|
|
4181
4182
|
children: m.getDate()
|
|
4182
4183
|
},
|
|
4183
|
-
`day-${
|
|
4184
|
+
`day-${b}`
|
|
4184
4185
|
);
|
|
4185
4186
|
}) }, `week-${d}`)) })
|
|
4186
4187
|
]
|
|
@@ -4190,84 +4191,84 @@ function Bn({
|
|
|
4190
4191
|
}
|
|
4191
4192
|
);
|
|
4192
4193
|
}
|
|
4193
|
-
const
|
|
4194
|
+
const Gn = ({
|
|
4194
4195
|
bindValue: n,
|
|
4195
4196
|
placeholder: e,
|
|
4196
4197
|
onChange: t,
|
|
4197
4198
|
disabledDateRanges: r,
|
|
4198
4199
|
...s
|
|
4199
4200
|
}) => {
|
|
4200
|
-
const [i,
|
|
4201
|
+
const [i, a] = Q(!1), [o, l] = Q(n || ""), [c, f] = Q(""), { anchorRef: u, targetRef: p } = wt({
|
|
4201
4202
|
position: "bottom",
|
|
4202
4203
|
enabled: i
|
|
4203
4204
|
});
|
|
4204
4205
|
tt(p, () => {
|
|
4205
|
-
|
|
4206
|
+
a(!1);
|
|
4206
4207
|
}), tt(u, () => {
|
|
4207
4208
|
if (
|
|
4208
4209
|
// FIXME: Copied from useClickOutside.
|
|
4209
4210
|
typeof u == "object" && u !== null && "current" in u
|
|
4210
4211
|
) {
|
|
4211
|
-
const
|
|
4212
|
-
|
|
4212
|
+
const A = u.current.querySelector("input");
|
|
4213
|
+
A && A === document.activeElement && R();
|
|
4213
4214
|
}
|
|
4214
|
-
}),
|
|
4215
|
-
const { format: h, getCurrentLanguage: g } =
|
|
4216
|
-
(
|
|
4217
|
-
const
|
|
4215
|
+
}), _r(i, p);
|
|
4216
|
+
const { format: h, getCurrentLanguage: g } = it(), y = Te(
|
|
4217
|
+
(A) => {
|
|
4218
|
+
const j = A.length > 5 && $n(A, g()) || A, Y = h(j, void 0, void 0, {
|
|
4218
4219
|
type: "date"
|
|
4219
|
-
}), F = typeof
|
|
4220
|
+
}), F = typeof j != "string", C = F && j.toISOString().substring(0, 10) || "";
|
|
4220
4221
|
return {
|
|
4221
4222
|
isValid: F,
|
|
4222
4223
|
formattedDate: Y,
|
|
4223
4224
|
isoDate: C,
|
|
4224
|
-
normalizedDate:
|
|
4225
|
+
normalizedDate: j
|
|
4225
4226
|
};
|
|
4226
4227
|
},
|
|
4227
4228
|
[g, h]
|
|
4228
4229
|
);
|
|
4229
4230
|
he(() => {
|
|
4230
|
-
const { formattedDate:
|
|
4231
|
-
l(Y &&
|
|
4232
|
-
}, [n, h,
|
|
4233
|
-
const E = () =>
|
|
4234
|
-
|
|
4235
|
-
},
|
|
4236
|
-
A
|
|
4237
|
-
},
|
|
4238
|
-
const { isoDate:
|
|
4239
|
-
t && t(Y &&
|
|
4240
|
-
}, D = (
|
|
4241
|
-
f(
|
|
4242
|
-
},
|
|
4243
|
-
|
|
4231
|
+
const { formattedDate: A, isoDate: j, isValid: Y } = y(n);
|
|
4232
|
+
l(Y && j || n), f(Y && A || n);
|
|
4233
|
+
}, [n, h, y]);
|
|
4234
|
+
const E = () => a((A) => !A), R = () => {
|
|
4235
|
+
O(c);
|
|
4236
|
+
}, x = (A) => {
|
|
4237
|
+
O(A), a(!1);
|
|
4238
|
+
}, O = (A) => {
|
|
4239
|
+
const { isoDate: j, isValid: Y } = y(A);
|
|
4240
|
+
t && t(Y && j || A);
|
|
4241
|
+
}, D = (A) => {
|
|
4242
|
+
f(A);
|
|
4243
|
+
}, v = (A) => {
|
|
4244
|
+
A.key === "Enter" && (A.preventDefault(), O(c));
|
|
4244
4245
|
};
|
|
4245
|
-
return /* @__PURE__ */
|
|
4246
|
-
/* @__PURE__ */
|
|
4247
|
-
|
|
4246
|
+
return /* @__PURE__ */ w.jsxs("div", { children: [
|
|
4247
|
+
/* @__PURE__ */ w.jsx(
|
|
4248
|
+
Re,
|
|
4248
4249
|
{
|
|
4249
4250
|
bindValue: c,
|
|
4250
4251
|
placeholder: e,
|
|
4251
|
-
onBlur:
|
|
4252
|
+
onBlur: R,
|
|
4252
4253
|
onChange: D,
|
|
4253
|
-
onKeyDown:
|
|
4254
|
+
onKeyDown: v,
|
|
4254
4255
|
shapeIcon: "calendar",
|
|
4255
4256
|
onShapeIconClick: E,
|
|
4256
4257
|
ref: u,
|
|
4257
4258
|
...s
|
|
4258
4259
|
}
|
|
4259
4260
|
),
|
|
4260
|
-
i && /* @__PURE__ */
|
|
4261
|
+
i && /* @__PURE__ */ w.jsx(
|
|
4261
4262
|
Bn,
|
|
4262
4263
|
{
|
|
4263
4264
|
disabledDateRanges: r,
|
|
4264
|
-
onDateChange:
|
|
4265
|
-
initialValue: _t(
|
|
4265
|
+
onDateChange: x,
|
|
4266
|
+
initialValue: _t(o) && o || "",
|
|
4266
4267
|
targetRef: p
|
|
4267
4268
|
}
|
|
4268
4269
|
)
|
|
4269
4270
|
] });
|
|
4270
|
-
},
|
|
4271
|
+
}, zn = {
|
|
4271
4272
|
"smp-multipleAutocomplete-container": "_smp-multipleAutocomplete-container_1mtv2_1"
|
|
4272
4273
|
}, Jn = ({
|
|
4273
4274
|
elements: n,
|
|
@@ -4276,8 +4277,8 @@ const zn = ({
|
|
|
4276
4277
|
listDisplayMode: r,
|
|
4277
4278
|
placeholder: s,
|
|
4278
4279
|
fun: i,
|
|
4279
|
-
onOptionsRequest:
|
|
4280
|
-
onChange:
|
|
4280
|
+
onOptionsRequest: a,
|
|
4281
|
+
onChange: o
|
|
4281
4282
|
}) => {
|
|
4282
4283
|
const l = n.map((u) => u.bindValue), c = (u, p) => {
|
|
4283
4284
|
const h = [...n];
|
|
@@ -4285,31 +4286,31 @@ const zn = ({
|
|
|
4285
4286
|
h.pop();
|
|
4286
4287
|
else {
|
|
4287
4288
|
const g = h.findIndex(
|
|
4288
|
-
(
|
|
4289
|
+
(y) => y.bindValue === u && y.optionalDisplayValue === p
|
|
4289
4290
|
);
|
|
4290
4291
|
g >= 0 ? h.splice(g, 1) : h.push({
|
|
4291
4292
|
bindValue: u,
|
|
4292
4293
|
optionalDisplayValue: p
|
|
4293
4294
|
});
|
|
4294
4295
|
}
|
|
4295
|
-
|
|
4296
|
+
o == null || o(h);
|
|
4296
4297
|
}, f = {
|
|
4297
|
-
container: `${
|
|
4298
|
+
container: `${zn["smp-multipleAutocomplete-container"]}`
|
|
4298
4299
|
};
|
|
4299
|
-
return /* @__PURE__ */
|
|
4300
|
-
/* @__PURE__ */
|
|
4301
|
-
|
|
4300
|
+
return /* @__PURE__ */ w.jsxs("div", { className: f.container, children: [
|
|
4301
|
+
/* @__PURE__ */ w.jsx(
|
|
4302
|
+
Er,
|
|
4302
4303
|
{
|
|
4303
4304
|
elements: n,
|
|
4304
4305
|
displayMode: e,
|
|
4305
4306
|
isEditable: !0,
|
|
4306
4307
|
onChange: (u) => {
|
|
4307
|
-
|
|
4308
|
+
o == null || o(u);
|
|
4308
4309
|
}
|
|
4309
4310
|
}
|
|
4310
4311
|
),
|
|
4311
|
-
/* @__PURE__ */
|
|
4312
|
-
|
|
4312
|
+
/* @__PURE__ */ w.jsx(
|
|
4313
|
+
Sr,
|
|
4313
4314
|
{
|
|
4314
4315
|
bindValue: "",
|
|
4315
4316
|
fun: i,
|
|
@@ -4318,15 +4319,15 @@ const zn = ({
|
|
|
4318
4319
|
listDisplayMode: r,
|
|
4319
4320
|
minimumChars: t,
|
|
4320
4321
|
placeholder: s,
|
|
4321
|
-
onOptionsRequest:
|
|
4322
|
+
onOptionsRequest: a,
|
|
4322
4323
|
_multiActiveIndex: l
|
|
4323
4324
|
}
|
|
4324
4325
|
)
|
|
4325
4326
|
] });
|
|
4326
4327
|
}, Xn = ({ ...n }) => {
|
|
4327
|
-
const [e, t] =
|
|
4328
|
-
return /* @__PURE__ */
|
|
4329
|
-
|
|
4328
|
+
const [e, t] = Q(!1), r = e ? "visibility-off" : "visibility";
|
|
4329
|
+
return /* @__PURE__ */ w.jsx(
|
|
4330
|
+
Re,
|
|
4330
4331
|
{
|
|
4331
4332
|
...n,
|
|
4332
4333
|
inputType: e ? "text" : "password",
|
|
@@ -4335,6 +4336,24 @@ const zn = ({
|
|
|
4335
4336
|
ariaLabel: "password"
|
|
4336
4337
|
}
|
|
4337
4338
|
);
|
|
4339
|
+
}, Zn = ({ ...n }) => {
|
|
4340
|
+
const [e, t] = Q(n.bindValue), { translate: r } = it(), s = (i) => {
|
|
4341
|
+
var a;
|
|
4342
|
+
i.key === "Enter" && (i.preventDefault(), (a = n.onEnter) == null || a.call(n, e));
|
|
4343
|
+
};
|
|
4344
|
+
return /* @__PURE__ */ w.jsx(
|
|
4345
|
+
Re,
|
|
4346
|
+
{
|
|
4347
|
+
...n,
|
|
4348
|
+
placeholder: n.placeholder ? n.placeholder : r(Ot.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
4349
|
+
icon: "magnify",
|
|
4350
|
+
inputType: "search",
|
|
4351
|
+
bindValue: e,
|
|
4352
|
+
onChange: t,
|
|
4353
|
+
onKeyDown: s,
|
|
4354
|
+
ariaLabel: "search bar"
|
|
4355
|
+
}
|
|
4356
|
+
);
|
|
4338
4357
|
};
|
|
4339
4358
|
class Se {
|
|
4340
4359
|
constructor(e, t) {
|
|
@@ -4369,13 +4388,13 @@ const Ke = (n, e, t) => ({
|
|
|
4369
4388
|
},
|
|
4370
4389
|
decode: t || n.decode,
|
|
4371
4390
|
shape: n.shape
|
|
4372
|
-
}),
|
|
4391
|
+
}), ur = (n) => {
|
|
4373
4392
|
const e = Se.fromDataObj(n.obj), t = n.decode ? Se.fromString(n.decode).getValue() : [];
|
|
4374
4393
|
return e.getValue().map((r, s) => ({
|
|
4375
4394
|
bindValue: r,
|
|
4376
4395
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4377
4396
|
}));
|
|
4378
|
-
},
|
|
4397
|
+
}, Qn = (n, e) => {
|
|
4379
4398
|
const t = new Se(
|
|
4380
4399
|
n.obj,
|
|
4381
4400
|
e.map((s) => s.bindValue)
|
|
@@ -4384,170 +4403,181 @@ const Ke = (n, e, t) => ({
|
|
|
4384
4403
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4385
4404
|
).getLegacyValue();
|
|
4386
4405
|
return Ke(n, t, r);
|
|
4387
|
-
},
|
|
4406
|
+
}, es = ({
|
|
4388
4407
|
decode: n,
|
|
4389
4408
|
shape: e,
|
|
4390
4409
|
obj: t,
|
|
4391
4410
|
data: r,
|
|
4392
4411
|
icon: s,
|
|
4393
4412
|
fun: i,
|
|
4394
|
-
placeholderIcon:
|
|
4395
|
-
label:
|
|
4413
|
+
placeholderIcon: a,
|
|
4414
|
+
label: o,
|
|
4396
4415
|
onChange: l,
|
|
4397
4416
|
onClick: c,
|
|
4398
|
-
|
|
4399
|
-
|
|
4417
|
+
onEnter: f,
|
|
4418
|
+
onBlur: u,
|
|
4419
|
+
onOptionsRequest: p
|
|
4400
4420
|
}) => {
|
|
4401
|
-
const
|
|
4421
|
+
const h = {
|
|
4402
4422
|
obj: t,
|
|
4403
4423
|
shape: e,
|
|
4404
4424
|
decode: n
|
|
4405
|
-
},
|
|
4406
|
-
onBlur:
|
|
4407
|
-
onOptionsRequest:
|
|
4425
|
+
}, g = {
|
|
4426
|
+
onBlur: u,
|
|
4427
|
+
onOptionsRequest: p,
|
|
4408
4428
|
fun: i,
|
|
4409
4429
|
icon: s,
|
|
4410
|
-
label:
|
|
4430
|
+
label: o,
|
|
4411
4431
|
...r
|
|
4412
|
-
},
|
|
4432
|
+
}, y = (x, O) => Ln(t) ? Ke(h, new et(t, x).getLegacyValue()) : Ke(h, x, O), E = (x) => Ke(h, new Qe(t, x).getLegacyValue()), R = (x) => Qn(h, x);
|
|
4413
4433
|
switch (e) {
|
|
4414
|
-
case
|
|
4415
|
-
const
|
|
4416
|
-
...
|
|
4434
|
+
case ue.AUTOCOMPLETE: {
|
|
4435
|
+
const x = {
|
|
4436
|
+
...g,
|
|
4417
4437
|
bindValue: t.k,
|
|
4418
4438
|
optionalDisplayValue: n,
|
|
4419
|
-
onChange: (
|
|
4420
|
-
l == null || l(
|
|
4439
|
+
onChange: (O, D) => {
|
|
4440
|
+
l == null || l(y(O, D));
|
|
4421
4441
|
}
|
|
4422
4442
|
};
|
|
4423
|
-
return /* @__PURE__ */
|
|
4443
|
+
return /* @__PURE__ */ w.jsx(Sr, { ...x });
|
|
4424
4444
|
}
|
|
4425
|
-
case
|
|
4426
|
-
const
|
|
4427
|
-
...
|
|
4445
|
+
case ue.BUTTON: {
|
|
4446
|
+
const x = {
|
|
4447
|
+
...g,
|
|
4428
4448
|
bindValue: t.k,
|
|
4429
4449
|
optionalDisplayValue: n,
|
|
4430
4450
|
onClick: () => {
|
|
4431
|
-
c == null || c(
|
|
4451
|
+
c == null || c(y(t.k));
|
|
4432
4452
|
}
|
|
4433
4453
|
};
|
|
4434
|
-
return /* @__PURE__ */
|
|
4454
|
+
return /* @__PURE__ */ w.jsx(nt, { ...x });
|
|
4435
4455
|
}
|
|
4436
|
-
case
|
|
4437
|
-
const
|
|
4438
|
-
...
|
|
4456
|
+
case ue.COMBOBOX: {
|
|
4457
|
+
const x = {
|
|
4458
|
+
...g,
|
|
4439
4459
|
bindValue: t.k,
|
|
4440
4460
|
optionalDisplayValue: n,
|
|
4441
|
-
onChange: (
|
|
4442
|
-
l == null || l(
|
|
4461
|
+
onChange: (O, D) => {
|
|
4462
|
+
l == null || l(y(O, D));
|
|
4443
4463
|
}
|
|
4444
4464
|
};
|
|
4445
|
-
return /* @__PURE__ */
|
|
4465
|
+
return /* @__PURE__ */ w.jsx(Kn, { ...x });
|
|
4446
4466
|
}
|
|
4447
|
-
case
|
|
4448
|
-
const
|
|
4449
|
-
...
|
|
4467
|
+
case ue.CHECKBOX: {
|
|
4468
|
+
const x = {
|
|
4469
|
+
...g,
|
|
4450
4470
|
bindValue: Qe.fromDataObj(t).getValue(),
|
|
4451
4471
|
optionalDisplayValue: n,
|
|
4452
|
-
onChange: (
|
|
4453
|
-
l == null || l(
|
|
4472
|
+
onChange: (O) => {
|
|
4473
|
+
l == null || l(E(O));
|
|
4454
4474
|
}
|
|
4455
4475
|
};
|
|
4456
|
-
return /* @__PURE__ */
|
|
4476
|
+
return /* @__PURE__ */ w.jsx(Wn, { ...x });
|
|
4457
4477
|
}
|
|
4458
|
-
case
|
|
4459
|
-
const
|
|
4460
|
-
...
|
|
4461
|
-
elements:
|
|
4478
|
+
case ue.CHIP: {
|
|
4479
|
+
const x = {
|
|
4480
|
+
...g,
|
|
4481
|
+
elements: ur(h)
|
|
4462
4482
|
};
|
|
4463
|
-
return /* @__PURE__ */
|
|
4483
|
+
return /* @__PURE__ */ w.jsx(Er, { ...x });
|
|
4464
4484
|
}
|
|
4465
|
-
case
|
|
4466
|
-
const
|
|
4467
|
-
...
|
|
4485
|
+
case ue.DATE: {
|
|
4486
|
+
const x = {
|
|
4487
|
+
...g,
|
|
4468
4488
|
bindValue: et.fromDataObj(t).getValue(),
|
|
4469
|
-
onChange: (
|
|
4470
|
-
l == null || l(
|
|
4489
|
+
onChange: (O) => {
|
|
4490
|
+
l == null || l(y(O));
|
|
4471
4491
|
}
|
|
4472
4492
|
};
|
|
4473
|
-
return /* @__PURE__ */
|
|
4493
|
+
return /* @__PURE__ */ w.jsx(Gn, { ...x });
|
|
4474
4494
|
}
|
|
4475
|
-
case
|
|
4476
|
-
const
|
|
4477
|
-
...
|
|
4495
|
+
case ue.ICON: {
|
|
4496
|
+
const x = {
|
|
4497
|
+
...g,
|
|
4478
4498
|
icon: s,
|
|
4479
|
-
placeholderIcon:
|
|
4499
|
+
placeholderIcon: a,
|
|
4480
4500
|
onClick: () => {
|
|
4481
|
-
c == null || c(
|
|
4501
|
+
c == null || c(y(t.k));
|
|
4502
|
+
}
|
|
4503
|
+
};
|
|
4504
|
+
return /* @__PURE__ */ w.jsx(ve, { ...x });
|
|
4505
|
+
}
|
|
4506
|
+
case ue.MULTI_AUTOCOMPLETE: {
|
|
4507
|
+
const x = {
|
|
4508
|
+
...g,
|
|
4509
|
+
elements: ur(h),
|
|
4510
|
+
onChange: (O) => {
|
|
4511
|
+
l == null || l(R(O));
|
|
4482
4512
|
}
|
|
4483
4513
|
};
|
|
4484
|
-
return /* @__PURE__ */
|
|
4514
|
+
return /* @__PURE__ */ w.jsx(Jn, { ...x });
|
|
4485
4515
|
}
|
|
4486
|
-
case
|
|
4487
|
-
const
|
|
4488
|
-
...
|
|
4489
|
-
|
|
4490
|
-
onChange: (
|
|
4491
|
-
l == null || l(
|
|
4516
|
+
case ue.PASSWORD: {
|
|
4517
|
+
const x = {
|
|
4518
|
+
...g,
|
|
4519
|
+
bindValue: t.k,
|
|
4520
|
+
onChange: (O) => {
|
|
4521
|
+
l == null || l(y(O));
|
|
4492
4522
|
}
|
|
4493
4523
|
};
|
|
4494
|
-
return /* @__PURE__ */
|
|
4524
|
+
return /* @__PURE__ */ w.jsx(Xn, { ...x });
|
|
4495
4525
|
}
|
|
4496
|
-
case
|
|
4497
|
-
const
|
|
4498
|
-
...
|
|
4526
|
+
case ue.SPOTLIGHT: {
|
|
4527
|
+
const x = {
|
|
4528
|
+
...g,
|
|
4499
4529
|
bindValue: t.k,
|
|
4500
|
-
|
|
4501
|
-
|
|
4530
|
+
onEnter: (O) => {
|
|
4531
|
+
f == null || f(y(O));
|
|
4502
4532
|
}
|
|
4503
4533
|
};
|
|
4504
|
-
return /* @__PURE__ */
|
|
4534
|
+
return /* @__PURE__ */ w.jsx(Zn, { ...x });
|
|
4505
4535
|
}
|
|
4506
|
-
case
|
|
4536
|
+
case ue.TEXT_FIELD:
|
|
4507
4537
|
case void 0: {
|
|
4508
|
-
const
|
|
4509
|
-
...
|
|
4538
|
+
const x = {
|
|
4539
|
+
...g,
|
|
4510
4540
|
bindValue: t.k,
|
|
4511
|
-
onChange: (
|
|
4512
|
-
l == null || l(
|
|
4541
|
+
onChange: (O) => {
|
|
4542
|
+
l == null || l(y(O));
|
|
4513
4543
|
}
|
|
4514
4544
|
};
|
|
4515
|
-
return /* @__PURE__ */
|
|
4545
|
+
return /* @__PURE__ */ w.jsx(Re, { ...x });
|
|
4516
4546
|
}
|
|
4517
4547
|
}
|
|
4518
|
-
},
|
|
4548
|
+
}, fr = {
|
|
4519
4549
|
"smp-field-container": "_smp-field-container_nnmjb_1",
|
|
4520
4550
|
"smp-field-position-left": "_smp-field-position-left_nnmjb_6",
|
|
4521
4551
|
"smp-field-position-right": "_smp-field-position-right_nnmjb_10",
|
|
4522
4552
|
"smp-field-position-top": "_smp-field-position-top_nnmjb_14",
|
|
4523
4553
|
"smp-field-position-bottom": "_smp-field-position-bottom_nnmjb_18"
|
|
4524
|
-
},
|
|
4554
|
+
}, is = ({
|
|
4525
4555
|
data: n,
|
|
4526
4556
|
Type: e,
|
|
4527
4557
|
ShowSubmit: t = !1,
|
|
4528
4558
|
SubmitPosition: r = "right",
|
|
4529
4559
|
DefaultValue: s,
|
|
4530
4560
|
Label: i,
|
|
4531
|
-
LabelPosition:
|
|
4532
|
-
onBlur:
|
|
4561
|
+
LabelPosition: a = "left",
|
|
4562
|
+
onBlur: o,
|
|
4533
4563
|
onClick: l,
|
|
4534
4564
|
onOptionsRequest: c
|
|
4535
4565
|
}) => {
|
|
4536
|
-
const [f, u] =
|
|
4566
|
+
const [f, u] = Q();
|
|
4537
4567
|
he(() => {
|
|
4538
4568
|
u(() => {
|
|
4539
|
-
const
|
|
4540
|
-
return e && (
|
|
4569
|
+
const y = { ...n };
|
|
4570
|
+
return e && (y.shape = e), s && (y.obj = kn(s)), y;
|
|
4541
4571
|
});
|
|
4542
4572
|
}, [n, s, e]);
|
|
4543
|
-
const p =
|
|
4544
|
-
container: `${
|
|
4573
|
+
const p = Ie(t) ? fr[`smp-field-position-${ar(r)}`] : "", h = {
|
|
4574
|
+
container: `${fr["smp-field-container"]} ${p}`
|
|
4545
4575
|
}, g = () => {
|
|
4546
|
-
|
|
4576
|
+
Ie(t) || o == null || o(f);
|
|
4547
4577
|
};
|
|
4548
4578
|
if (f)
|
|
4549
|
-
return /* @__PURE__ */
|
|
4550
|
-
/* @__PURE__ */
|
|
4579
|
+
return /* @__PURE__ */ w.jsxs("div", { className: h.container, children: [
|
|
4580
|
+
/* @__PURE__ */ w.jsx(
|
|
4551
4581
|
"div",
|
|
4552
4582
|
{
|
|
4553
4583
|
style: {
|
|
@@ -4556,8 +4586,8 @@ const Ke = (n, e, t) => ({
|
|
|
4556
4586
|
gap: "8px",
|
|
4557
4587
|
font: "var(--smp-fontLabel-base)"
|
|
4558
4588
|
},
|
|
4559
|
-
children: /* @__PURE__ */
|
|
4560
|
-
|
|
4589
|
+
children: /* @__PURE__ */ w.jsx(
|
|
4590
|
+
es,
|
|
4561
4591
|
{
|
|
4562
4592
|
...f,
|
|
4563
4593
|
onChange: u,
|
|
@@ -4565,25 +4595,25 @@ const Ke = (n, e, t) => ({
|
|
|
4565
4595
|
fun: n.fun,
|
|
4566
4596
|
onBlur: g,
|
|
4567
4597
|
label: i,
|
|
4568
|
-
labelPosition:
|
|
4598
|
+
labelPosition: ar(a)
|
|
4569
4599
|
}
|
|
4570
4600
|
)
|
|
4571
4601
|
}
|
|
4572
4602
|
),
|
|
4573
|
-
|
|
4574
|
-
/* @__PURE__ */
|
|
4603
|
+
Ie(t) && //TODO: translation
|
|
4604
|
+
/* @__PURE__ */ w.jsx(nt, { bindValue: "Confirm", onClick: () => l == null ? void 0 : l(f) })
|
|
4575
4605
|
] });
|
|
4576
4606
|
};
|
|
4577
4607
|
export {
|
|
4578
|
-
|
|
4608
|
+
Sr as Autocomplete,
|
|
4579
4609
|
nt as Button,
|
|
4580
4610
|
Wn as Checkbox,
|
|
4581
4611
|
Kn as Combobox,
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4612
|
+
ss as DashList,
|
|
4613
|
+
Gn as DatePicker,
|
|
4614
|
+
is as Field,
|
|
4585
4615
|
ve as Icon,
|
|
4586
4616
|
Xn as Password,
|
|
4587
|
-
|
|
4588
|
-
|
|
4617
|
+
Re as Textfield,
|
|
4618
|
+
ns as configurePaths
|
|
4589
4619
|
};
|