@sme.up/ketchup2 2.0.0-SNAPSHOT-20250520081028 → 2.0.0-SNAPSHOT-20250520081534
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/assets/testAsset.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useDebounce.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.es.js +344 -341
- package/dist/utils/display-value.d.ts.map +1 -1
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/utils/translation.d.ts.map +1 -1
- package/package.json +44 -44
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 dr, { useState as Q, useCallback as
|
|
6
|
-
var Fe = { exports: {} },
|
|
5
|
+
import dr, { useState as Q, useCallback as Oe, useEffect as he, useRef as xe, useLayoutEffect as Rr, useId as Dr } from "react";
|
|
6
|
+
var Fe = { exports: {} }, Re = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
9
|
* react-jsx-runtime.production.js
|
|
@@ -13,10 +13,10 @@ var Fe = { exports: {} }, De = {};
|
|
|
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 Ot;
|
|
17
17
|
function Pr() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (Ot) return Re;
|
|
19
|
+
Ot = 1;
|
|
20
20
|
var n = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
21
21
|
function t(r, s, i) {
|
|
22
22
|
var a = null;
|
|
@@ -33,9 +33,9 @@ function Pr() {
|
|
|
33
33
|
props: i
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
return
|
|
36
|
+
return Re.Fragment = e, Re.jsx = t, Re.jsxs = t, Re;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var De = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -45,9 +45,9 @@ var Pe = {};
|
|
|
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 Tt;
|
|
49
49
|
function Ar() {
|
|
50
|
-
return
|
|
50
|
+
return Tt || (Tt = 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")
|
|
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
p,
|
|
252
252
|
i
|
|
253
253
|
)(), B = K(r(i)), k = {};
|
|
254
|
-
|
|
254
|
+
De.Fragment = y, De.jsx = function(d, m, b, _, S) {
|
|
255
255
|
var T = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return f(
|
|
257
257
|
d,
|
|
@@ -263,7 +263,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
263
263
|
T ? Error("react-stack-top-frame") : V,
|
|
264
264
|
T ? K(r(d)) : B
|
|
265
265
|
);
|
|
266
|
-
},
|
|
266
|
+
}, De.jsxs = function(d, m, b, _, S) {
|
|
267
267
|
var T = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return f(
|
|
269
269
|
d,
|
|
@@ -276,11 +276,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
276
276
|
T ? K(r(d)) : B
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
|
-
}()),
|
|
279
|
+
}()), De;
|
|
280
280
|
}
|
|
281
|
-
var
|
|
281
|
+
var Rt;
|
|
282
282
|
function Cr() {
|
|
283
|
-
return
|
|
283
|
+
return Rt || (Rt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Pr() : Fe.exports = Ar()), Fe.exports;
|
|
284
284
|
}
|
|
285
285
|
var w = Cr();
|
|
286
286
|
function Lr(n, e) {
|
|
@@ -301,15 +301,15 @@ function Be() {
|
|
|
301
301
|
return n;
|
|
302
302
|
}, Be.apply(null, arguments);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
return
|
|
304
|
+
function gt(n, e) {
|
|
305
|
+
return gt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
|
|
306
306
|
return t.__proto__ = r, t;
|
|
307
|
-
},
|
|
307
|
+
}, gt(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, gt(n, e);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function it(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,10 +320,10 @@ var Ve = {};
|
|
|
320
320
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
321
321
|
* MIT Licensed
|
|
322
322
|
*/
|
|
323
|
-
var
|
|
323
|
+
var Dt;
|
|
324
324
|
function $r() {
|
|
325
|
-
if (
|
|
326
|
-
|
|
325
|
+
if (Dt) return Ve;
|
|
326
|
+
Dt = 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
328
|
Ve.format = a, Ve.parse = o;
|
|
329
329
|
function a(u) {
|
|
@@ -382,9 +382,9 @@ function $r() {
|
|
|
382
382
|
}
|
|
383
383
|
return Ve;
|
|
384
384
|
}
|
|
385
|
-
var jr = $r(),
|
|
385
|
+
var jr = $r(), we = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
386
386
|
return e.cloneNode(!0);
|
|
387
|
-
},
|
|
387
|
+
}, Pt = function() {
|
|
388
388
|
return window.location.protocol === "file:";
|
|
389
389
|
}, hr = function(e, t, r) {
|
|
390
390
|
var s = new XMLHttpRequest();
|
|
@@ -400,8 +400,8 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
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(Pt() ? "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 || Pt() && 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);
|
|
@@ -413,23 +413,23 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
413
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 = {}, At = function(e, t) {
|
|
417
417
|
ye[e] = ye[e] || [], ye[e].push(t);
|
|
418
418
|
}, Ir = function(e) {
|
|
419
419
|
for (var t = function(a, o) {
|
|
420
420
|
setTimeout(function() {
|
|
421
421
|
if (Array.isArray(ye[e])) {
|
|
422
|
-
var l =
|
|
422
|
+
var l = we.get(e), c = ye[e][a];
|
|
423
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++)
|
|
427
427
|
t(r);
|
|
428
428
|
}, Nr = function(e, t, r) {
|
|
429
|
-
if (
|
|
430
|
-
var s =
|
|
429
|
+
if (we.has(e)) {
|
|
430
|
+
var s = we.get(e);
|
|
431
431
|
if (s === void 0) {
|
|
432
|
-
|
|
432
|
+
At(e, r);
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
if (s instanceof SVGSVGElement) {
|
|
@@ -437,9 +437,9 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
|
|
440
|
+
we.set(e, void 0), At(e, r), hr(e, t, function(i, a) {
|
|
441
441
|
var o;
|
|
442
|
-
i ?
|
|
442
|
+
i ? we.set(e, i) : ((o = a.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && we.set(e, a.responseXML.documentElement), Ir(e);
|
|
443
443
|
});
|
|
444
444
|
}, Mr = function(e, t, r) {
|
|
445
445
|
hr(e, t, function(s, i) {
|
|
@@ -448,7 +448,7 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
448
448
|
});
|
|
449
449
|
}, Fr = 0, Vr = function() {
|
|
450
450
|
return ++Fr;
|
|
451
|
-
}, fe = [],
|
|
451
|
+
}, fe = [], Ct = {}, Yr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", Lt = 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"));
|
|
@@ -473,7 +473,7 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
473
473
|
g && u.setAttribute("width", g);
|
|
474
474
|
var y = e.getAttribute("height");
|
|
475
475
|
y && u.setAttribute("height", y);
|
|
476
|
-
var E = Array.from(new Set(
|
|
476
|
+
var E = Array.from(new Set(it(it(it([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
477
477
|
u.setAttribute("class", E);
|
|
478
478
|
var R = e.getAttribute("style");
|
|
479
479
|
R && u.setAttribute("style", R), u.setAttribute("data-src", l);
|
|
@@ -508,11 +508,11 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
for (var $ = u.querySelectorAll("[*|href]"), I = [], L = 0, q = $.length; L < q; L++) {
|
|
511
|
-
var W = $[L].getAttributeNS(
|
|
511
|
+
var W = $[L].getAttributeNS(at, "href");
|
|
512
512
|
W && W.toString() === "#" + v[_].id && I.push($[L]);
|
|
513
513
|
}
|
|
514
514
|
for (var re = 0, P = I.length; re < P; re++)
|
|
515
|
-
I[re].setAttributeNS(
|
|
515
|
+
I[re].setAttributeNS(at, "href", "#" + Y);
|
|
516
516
|
v[_].id = Y;
|
|
517
517
|
}, d = 0, m = v.length; d < m; d++)
|
|
518
518
|
k(d);
|
|
@@ -521,15 +521,15 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
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" && !
|
|
524
|
+
if (C.length > 0 && (t === "always" || t === "once" && !Ct[l])) {
|
|
525
525
|
for (var ne = 0, z = C.length; ne < z; ne++)
|
|
526
526
|
new Function(C[ne])(window);
|
|
527
|
-
|
|
527
|
+
Ct[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",
|
|
532
|
+
}), u.setAttribute("xmlns", Yr), u.setAttribute("xmlns:xlink", at), a(u), !e.parentNode) {
|
|
533
533
|
fe.splice(fe.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
534
534
|
return;
|
|
535
535
|
}
|
|
@@ -542,10 +542,10 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = function(e) {
|
|
|
542
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
544
|
for (var x = 0, O = 0, D = e.length; O < D; O++)
|
|
545
|
-
|
|
545
|
+
Lt(e[O], h, R, u, y, c, function(v, A) {
|
|
546
546
|
o(v, A), e && "length" in e && e.length === ++x && i(x);
|
|
547
547
|
});
|
|
548
|
-
else e ?
|
|
548
|
+
else e ? Lt(e, h, R, u, y, c, function(v, A) {
|
|
549
549
|
o(v, A), i(1), e = null;
|
|
550
550
|
}) : i(0);
|
|
551
551
|
}, Ye = { exports: {} }, Ue = { exports: {} }, X = {};
|
|
@@ -557,10 +557,10 @@ var jr = $r(), Oe = /* @__PURE__ */ new Map(), pr = 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 kt;
|
|
561
561
|
function Wr() {
|
|
562
|
-
if (
|
|
563
|
-
|
|
562
|
+
if (kt) return X;
|
|
563
|
+
kt = 1;
|
|
564
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
565
|
function O(v) {
|
|
566
566
|
if (typeof v == "object" && v !== null) {
|
|
@@ -632,9 +632,9 @@ var Z = {};
|
|
|
632
632
|
* This source code is licensed under the MIT license found in the
|
|
633
633
|
* LICENSE file in the root directory of this source tree.
|
|
634
634
|
*/
|
|
635
|
-
var
|
|
635
|
+
var $t;
|
|
636
636
|
function Hr() {
|
|
637
|
-
return
|
|
637
|
+
return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
|
|
638
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
639
|
function O(P) {
|
|
640
640
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -715,19 +715,19 @@ function Hr() {
|
|
|
715
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
|
|
718
|
+
var jt;
|
|
719
719
|
function mr() {
|
|
720
|
-
return
|
|
720
|
+
return jt || (jt = 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 ot, It;
|
|
728
728
|
function qr() {
|
|
729
|
-
if (
|
|
730
|
-
|
|
729
|
+
if (It) return ot;
|
|
730
|
+
It = 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)
|
|
@@ -756,7 +756,7 @@ function qr() {
|
|
|
756
756
|
return !1;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
return
|
|
759
|
+
return ot = s() ? Object.assign : function(i, a) {
|
|
760
760
|
for (var o, l = r(i), c, f = 1; f < arguments.length; f++) {
|
|
761
761
|
o = Object(arguments[f]);
|
|
762
762
|
for (var u in o)
|
|
@@ -768,27 +768,27 @@ function qr() {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
return l;
|
|
771
|
-
},
|
|
771
|
+
}, ot;
|
|
772
772
|
}
|
|
773
|
-
var
|
|
774
|
-
function
|
|
775
|
-
if (
|
|
776
|
-
|
|
773
|
+
var lt, Nt;
|
|
774
|
+
function St() {
|
|
775
|
+
if (Nt) return lt;
|
|
776
|
+
Nt = 1;
|
|
777
777
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
778
|
-
return
|
|
778
|
+
return lt = n, lt;
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var ct, Mt;
|
|
781
781
|
function gr() {
|
|
782
|
-
return
|
|
782
|
+
return Mt || (Mt = 1, ct = Function.call.bind(Object.prototype.hasOwnProperty)), ct;
|
|
783
783
|
}
|
|
784
|
-
var
|
|
784
|
+
var ut, Ft;
|
|
785
785
|
function Kr() {
|
|
786
|
-
if (
|
|
787
|
-
|
|
786
|
+
if (Ft) return ut;
|
|
787
|
+
Ft = 1;
|
|
788
788
|
var n = function() {
|
|
789
789
|
};
|
|
790
790
|
if (process.env.NODE_ENV !== "production") {
|
|
791
|
-
var e = /* @__PURE__ */
|
|
791
|
+
var e = /* @__PURE__ */ St(), t = {}, r = /* @__PURE__ */ gr();
|
|
792
792
|
n = function(i) {
|
|
793
793
|
var a = "Warning: " + i;
|
|
794
794
|
typeof console < "u" && console.error(a);
|
|
@@ -828,13 +828,13 @@ function Kr() {
|
|
|
828
828
|
}
|
|
829
829
|
return s.resetWarningCache = function() {
|
|
830
830
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
831
|
-
},
|
|
831
|
+
}, ut = s, ut;
|
|
832
832
|
}
|
|
833
|
-
var
|
|
833
|
+
var ft, Vt;
|
|
834
834
|
function Br() {
|
|
835
|
-
if (
|
|
836
|
-
|
|
837
|
-
var n = mr(), e = qr(), t = /* @__PURE__ */
|
|
835
|
+
if (Vt) return ft;
|
|
836
|
+
Vt = 1;
|
|
837
|
+
var n = mr(), e = qr(), t = /* @__PURE__ */ St(), r = /* @__PURE__ */ gr(), s = /* @__PURE__ */ Kr(), i = function() {
|
|
838
838
|
};
|
|
839
839
|
process.env.NODE_ENV !== "production" && (i = function(o) {
|
|
840
840
|
var l = "Warning: " + o;
|
|
@@ -847,7 +847,7 @@ function Br() {
|
|
|
847
847
|
function a() {
|
|
848
848
|
return null;
|
|
849
849
|
}
|
|
850
|
-
return
|
|
850
|
+
return ft = 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]);
|
|
@@ -1149,18 +1149,18 @@ 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
|
+
}, ft;
|
|
1153
1153
|
}
|
|
1154
|
-
var
|
|
1154
|
+
var dt, Yt;
|
|
1155
1155
|
function Gr() {
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
var n = /* @__PURE__ */
|
|
1156
|
+
if (Yt) return dt;
|
|
1157
|
+
Yt = 1;
|
|
1158
|
+
var n = /* @__PURE__ */ St();
|
|
1159
1159
|
function e() {
|
|
1160
1160
|
}
|
|
1161
1161
|
function t() {
|
|
1162
1162
|
}
|
|
1163
|
-
return t.resetWarningCache = e,
|
|
1163
|
+
return t.resetWarningCache = e, dt = function() {
|
|
1164
1164
|
function r(a, o, l, c, f, u) {
|
|
1165
1165
|
if (u !== n) {
|
|
1166
1166
|
var p = new Error(
|
|
@@ -1197,12 +1197,12 @@ function Gr() {
|
|
|
1197
1197
|
resetWarningCache: e
|
|
1198
1198
|
};
|
|
1199
1199
|
return i.PropTypes = i, i;
|
|
1200
|
-
},
|
|
1200
|
+
}, dt;
|
|
1201
1201
|
}
|
|
1202
|
-
var
|
|
1202
|
+
var Ut;
|
|
1203
1203
|
function zr() {
|
|
1204
|
-
if (
|
|
1205
|
-
if (
|
|
1204
|
+
if (Ut) return Ye.exports;
|
|
1205
|
+
if (Ut = 1, process.env.NODE_ENV !== "production") {
|
|
1206
1206
|
var n = mr(), e = !0;
|
|
1207
1207
|
Ye.exports = /* @__PURE__ */ Br()(n.isElement, e);
|
|
1208
1208
|
} else
|
|
@@ -1220,7 +1220,7 @@ var ie = /* @__PURE__ */ zr(), 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", Wt = "http://www.w3.org/1999/xlink", Ge = /* @__PURE__ */ function(n) {
|
|
1224
1224
|
function e() {
|
|
1225
1225
|
for (var r, s = arguments.length, i = new Array(s), a = 0; a < s; a++)
|
|
1226
1226
|
i[a] = arguments[a];
|
|
@@ -1237,7 +1237,7 @@ var ie = /* @__PURE__ */ zr(), Jr = function(e) {
|
|
|
1237
1237
|
var s = this;
|
|
1238
1238
|
if (this.reactWrapper instanceof Jr(this.reactWrapper).Node) {
|
|
1239
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",
|
|
1240
|
+
E === "svg" ? (R = document.createElementNS(We, E), R.setAttribute("xmlns", We), R.setAttribute("xmlns:xlink", Wt), 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
1241
|
var O = function(j) {
|
|
1242
1242
|
if (s.removeSVG(), !s._isMounted) {
|
|
1243
1243
|
h(j);
|
|
@@ -1321,7 +1321,7 @@ var ie = /* @__PURE__ */ zr(), Jr = function(e) {
|
|
|
1321
1321
|
ref: this.refCallback
|
|
1322
1322
|
}, o === "svg" ? {
|
|
1323
1323
|
xmlns: We,
|
|
1324
|
-
xmlnsXlink:
|
|
1324
|
+
xmlnsXlink: Wt
|
|
1325
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);
|
|
@@ -1357,7 +1357,7 @@ Ge.propTypes = {
|
|
|
1357
1357
|
useRequestCache: ie.bool,
|
|
1358
1358
|
wrapper: ie.oneOf(["div", "span", "svg"])
|
|
1359
1359
|
};
|
|
1360
|
-
const
|
|
1360
|
+
const Pe = {
|
|
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 Ae = {
|
|
|
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 yt = {
|
|
1372
1372
|
assets: "/"
|
|
1373
1373
|
// Default for storybook isolation development
|
|
1374
1374
|
};
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
-
},
|
|
1375
|
+
const ss = (n) => {
|
|
1376
|
+
yt = { ...yt, ...n };
|
|
1377
|
+
}, Ht = (n) => `${yt.assets}/${n}`.replace(/\/+/g, "/"), ve = dr.memo(
|
|
1378
1378
|
({
|
|
1379
1379
|
icon: n,
|
|
1380
1380
|
width: e,
|
|
@@ -1388,10 +1388,10 @@ const ns = (n) => {
|
|
|
1388
1388
|
isInteractable: c = !1,
|
|
1389
1389
|
spin: f = !1
|
|
1390
1390
|
}) => {
|
|
1391
|
-
const [u, p] = Q(n), h = n.indexOf(".") > -1 || n.indexOf("/") > -1 || n.indexOf("\\") > -1, g =
|
|
1391
|
+
const [u, p] = Q(n), h = n.indexOf(".") > -1 || n.indexOf("/") > -1 || n.indexOf("\\") > -1, g = Ht(`assets/svg/${n}.svg`), y = Ht(
|
|
1392
1392
|
`assets/svg/${r}.svg`
|
|
1393
1393
|
), E = {
|
|
1394
|
-
svg: `${
|
|
1394
|
+
svg: `${Pe["smp-icon"]} ${a ? Pe[`smp-icon-${a}`] : ""} ${o ? Pe["smp-icon-rotated"] : ""} ${c ? Pe["smp-icon-interactable"] : ""} ${f ? Pe["smp-icon-spin"] : ""}`
|
|
1395
1395
|
}, R = () => {
|
|
1396
1396
|
!i && l && l();
|
|
1397
1397
|
};
|
|
@@ -1421,7 +1421,7 @@ const ns = (n) => {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
) });
|
|
1423
1423
|
}
|
|
1424
|
-
),
|
|
1424
|
+
), Ae = {
|
|
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,52 +1432,52 @@ const ns = (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", Ce = () => {
|
|
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
|
+
}, qt = (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, Kt = (n) => n && n.indexOf("###") > -1 ? n.replace(en, ".") : n, Bt = (n) => !n || H(n), $e = (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 (Bt(n)) return {};
|
|
1450
|
+
const i = Kt(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 Bt(n) ? {} : {
|
|
1454
1454
|
obj: n,
|
|
1455
|
-
k:
|
|
1455
|
+
k: Kt(r[s])
|
|
1456
1456
|
};
|
|
1457
|
-
},
|
|
1457
|
+
}, Gt = (n, e, t) => {
|
|
1458
1458
|
const {
|
|
1459
1459
|
obj: r,
|
|
1460
1460
|
k: s
|
|
1461
|
-
} =
|
|
1461
|
+
} = $e(n, e, Object);
|
|
1462
1462
|
if (r !== void 0 || e.length === 1) {
|
|
1463
1463
|
r[s] = t;
|
|
1464
1464
|
return;
|
|
1465
1465
|
}
|
|
1466
|
-
let i = e[e.length - 1], a = e.slice(0, e.length - 1), o =
|
|
1466
|
+
let i = e[e.length - 1], a = e.slice(0, e.length - 1), o = $e(n, a, Object);
|
|
1467
1467
|
for (; o.obj === void 0 && a.length; )
|
|
1468
|
-
i = `${a[a.length - 1]}.${i}`, a = a.slice(0, a.length - 1), o =
|
|
1468
|
+
i = `${a[a.length - 1]}.${i}`, a = a.slice(0, a.length - 1), o = $e(n, a, Object), o != null && o.obj && typeof o.obj[`${o.k}.${i}`] < "u" && (o.obj = void 0);
|
|
1469
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
|
+
} = $e(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
|
|
1480
|
-
} =
|
|
1480
|
+
} = $e(n, e);
|
|
1481
1481
|
if (t && Object.prototype.hasOwnProperty.call(t, r))
|
|
1482
1482
|
return t[r];
|
|
1483
1483
|
}, rn = (n, e, t) => {
|
|
@@ -1520,7 +1520,7 @@ const on = [" ", ",", "?", "!", ";"], ln = new an(20), cn = (n, e, t) => {
|
|
|
1520
1520
|
a > 0 && !s.test(n.substring(0, a)) && (i = !0);
|
|
1521
1521
|
}
|
|
1522
1522
|
return i;
|
|
1523
|
-
},
|
|
1523
|
+
}, vt = (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;
|
|
@@ -1540,7 +1540,7 @@ const on = [" ", ",", "?", "!", ";"], ln = new an(20), cn = (n, e, t) => {
|
|
|
1540
1540
|
s = a;
|
|
1541
1541
|
}
|
|
1542
1542
|
return s;
|
|
1543
|
-
},
|
|
1543
|
+
}, Ie = (n) => n == null ? void 0 : n.replace("_", "-"), un = {
|
|
1544
1544
|
type: "logger",
|
|
1545
1545
|
log(n) {
|
|
1546
1546
|
this.output("log", n);
|
|
@@ -1556,7 +1556,7 @@ const on = [" ", ",", "?", "!", ";"], ln = new an(20), cn = (n, e, t) => {
|
|
|
1556
1556
|
(r = (t = console == null ? void 0 : console[n]) == null ? void 0 : t.apply) == null || r.call(t, console, e);
|
|
1557
1557
|
}
|
|
1558
1558
|
};
|
|
1559
|
-
class
|
|
1559
|
+
class Je {
|
|
1560
1560
|
constructor(e, t = {}) {
|
|
1561
1561
|
this.init(e, t);
|
|
1562
1562
|
}
|
|
@@ -1579,17 +1579,17 @@ class Xe {
|
|
|
1579
1579
|
return s && !this.debug ? null : (H(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
1580
1580
|
}
|
|
1581
1581
|
create(e) {
|
|
1582
|
-
return new
|
|
1582
|
+
return new Je(this.logger, {
|
|
1583
1583
|
prefix: `${this.prefix}:${e}:`,
|
|
1584
1584
|
...this.options
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
clone(e) {
|
|
1588
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
1588
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new Je(this.logger, e);
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
var pe = new
|
|
1592
|
-
class
|
|
1591
|
+
var pe = new Je();
|
|
1592
|
+
class nt {
|
|
1593
1593
|
constructor() {
|
|
1594
1594
|
this.observers = {};
|
|
1595
1595
|
}
|
|
@@ -1619,7 +1619,7 @@ class st {
|
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
|
-
class
|
|
1622
|
+
class zt extends nt {
|
|
1623
1623
|
constructor(e, t = {
|
|
1624
1624
|
ns: ["translation"],
|
|
1625
1625
|
defaultNS: "translation"
|
|
@@ -1639,14 +1639,14 @@ class Jt extends st {
|
|
|
1639
1639
|
let o;
|
|
1640
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
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 :
|
|
1642
|
+
return !l && !t && !r && e.indexOf(".") > -1 && (e = o[0], t = o[1], r = o.slice(2).join(".")), l || !a || !H(r) ? l : vt((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
1647
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1648
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),
|
|
1649
|
+
r && (o = o.concat(a ? r.split(a) : r)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), Gt(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
|
|
@@ -1667,7 +1667,7 @@ class Jt extends st {
|
|
|
1667
1667
|
a.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? yr(l, r, i) : l = {
|
|
1668
1668
|
...l,
|
|
1669
1669
|
...r
|
|
1670
|
-
},
|
|
1670
|
+
}, Gt(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);
|
|
@@ -1701,8 +1701,8 @@ var vr = {
|
|
|
1701
1701
|
}), e;
|
|
1702
1702
|
}
|
|
1703
1703
|
};
|
|
1704
|
-
const
|
|
1705
|
-
class
|
|
1704
|
+
const Jt = {}, Xt = (n) => !H(n) && typeof n != "boolean" && typeof n != "number";
|
|
1705
|
+
class Xe extends nt {
|
|
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");
|
|
1708
1708
|
}
|
|
@@ -1773,12 +1773,12 @@ class Ze extends st {
|
|
|
1773
1773
|
} : o;
|
|
1774
1774
|
const h = this.resolve(e, s);
|
|
1775
1775
|
let g = h == null ? void 0 : h.res;
|
|
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 =
|
|
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 = Xe.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
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
1780
|
O && !g && v && (C = F);
|
|
1781
|
-
const M =
|
|
1781
|
+
const M = Xt(C), U = Object.prototype.toString.apply(C);
|
|
1782
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!");
|
|
@@ -1795,7 +1795,7 @@ class Ze extends st {
|
|
|
1795
1795
|
const V = `${ne}${a}${z}`;
|
|
1796
1796
|
v && !g ? K[z] = this.translate(V, {
|
|
1797
1797
|
...s,
|
|
1798
|
-
defaultValue:
|
|
1798
|
+
defaultValue: Xt(F) ? F[z] : void 0,
|
|
1799
1799
|
joinArrays: !1,
|
|
1800
1800
|
ns: l
|
|
1801
1801
|
}) : K[z] = this.translate(V, {
|
|
@@ -1895,7 +1895,7 @@ class Ze extends st {
|
|
|
1895
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
1897
|
var R, x;
|
|
1898
|
-
this.isValidLookup(r) || (o = E, !
|
|
1898
|
+
this.isValidLookup(r) || (o = E, !Jt[`${y[0]}-${E}`] && ((R = this.utils) != null && R.hasLoadedNamespace) && !((x = this.utils) != null && x.hasLoadedNamespace(o)) && (Jt[`${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
1899
|
var A;
|
|
1900
1900
|
if (this.isValidLookup(r)) return;
|
|
1901
1901
|
a = O;
|
|
@@ -1954,17 +1954,17 @@ class Ze extends st {
|
|
|
1954
1954
|
return !1;
|
|
1955
1955
|
}
|
|
1956
1956
|
}
|
|
1957
|
-
class
|
|
1957
|
+
class Zt {
|
|
1958
1958
|
constructor(e) {
|
|
1959
1959
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = pe.create("languageUtils");
|
|
1960
1960
|
}
|
|
1961
1961
|
getScriptPartFromCode(e) {
|
|
1962
|
-
if (e =
|
|
1962
|
+
if (e = Ie(e), !e || e.indexOf("-") < 0) return null;
|
|
1963
1963
|
const t = e.split("-");
|
|
1964
1964
|
return t.length === 2 || (t.pop(), t[t.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(t.join("-"));
|
|
1965
1965
|
}
|
|
1966
1966
|
getLanguagePartFromCode(e) {
|
|
1967
|
-
if (e =
|
|
1967
|
+
if (e = Ie(e), !e || e.indexOf("-") < 0) return e;
|
|
1968
1968
|
const t = e.split("-");
|
|
1969
1969
|
return this.formatLanguageCode(t[0]);
|
|
1970
1970
|
}
|
|
@@ -2018,14 +2018,14 @@ class Qt {
|
|
|
2018
2018
|
}), s;
|
|
2019
2019
|
}
|
|
2020
2020
|
}
|
|
2021
|
-
const
|
|
2021
|
+
const Qt = {
|
|
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
|
+
}, er = {
|
|
2029
2029
|
select: (n) => n === 1 ? "one" : "other",
|
|
2030
2030
|
resolvedOptions: () => ({
|
|
2031
2031
|
pluralCategories: ["one", "other"]
|
|
@@ -2042,7 +2042,7 @@ class fn {
|
|
|
2042
2042
|
this.pluralRulesCache = {};
|
|
2043
2043
|
}
|
|
2044
2044
|
getRule(e, t = {}) {
|
|
2045
|
-
const r =
|
|
2045
|
+
const r = Ie(e === "dev" ? "en" : e), s = t.ordinal ? "ordinal" : "cardinal", i = JSON.stringify({
|
|
2046
2046
|
cleanedCode: r,
|
|
2047
2047
|
type: s
|
|
2048
2048
|
});
|
|
@@ -2055,8 +2055,8 @@ class fn {
|
|
|
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!"), er;
|
|
2059
|
+
if (!e.match(/-|_/)) return er;
|
|
2060
2060
|
const l = this.languageUtils.getLanguagePartFromCode(e);
|
|
2061
2061
|
a = this.getRule(l, t);
|
|
2062
2062
|
}
|
|
@@ -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) => Qt[s] - Qt[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 tr = (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 = vt(n, t, r), i === void 0 && (i = vt(e, t, r))), i;
|
|
2084
|
+
}, pt = (n) => n.replace(/\$/g, "$$$$");
|
|
2085
2085
|
class dn {
|
|
2086
2086
|
constructor(e = {}) {
|
|
2087
2087
|
var t;
|
|
@@ -2124,7 +2124,7 @@ class dn {
|
|
|
2124
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 x =
|
|
2127
|
+
const x = tr(t, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2128
2128
|
return this.alwaysFormat ? this.format(x, void 0, r, {
|
|
2129
2129
|
...s,
|
|
2130
2130
|
...t,
|
|
@@ -2132,7 +2132,7 @@ class dn {
|
|
|
2132
2132
|
}) : x;
|
|
2133
2133
|
}
|
|
2134
2134
|
const y = g.split(this.formatSeparator), E = y.shift().trim(), R = y.join(this.formatSeparator).trim();
|
|
2135
|
-
return this.format(
|
|
2135
|
+
return this.format(tr(t, l, E, this.options.keySeparator, this.options.ignoreJSONStructure), R, r, {
|
|
2136
2136
|
...s,
|
|
2137
2137
|
...t,
|
|
2138
2138
|
interpolationkey: E
|
|
@@ -2142,10 +2142,10 @@ 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) => pt(g)
|
|
2146
2146
|
}, {
|
|
2147
2147
|
regex: this.regexp,
|
|
2148
|
-
safeValue: (g) => this.escapeValue ?
|
|
2148
|
+
safeValue: (g) => this.escapeValue ? pt(this.escape(g)) : pt(g)
|
|
2149
2149
|
}].forEach((g) => {
|
|
2150
2150
|
for (o = 0; i = g.regex.exec(e); ) {
|
|
2151
2151
|
const y = i[1].trim();
|
|
@@ -2160,7 +2160,7 @@ class dn {
|
|
|
2160
2160
|
continue;
|
|
2161
2161
|
} else
|
|
2162
2162
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), a = "";
|
|
2163
|
-
else !H(a) && !this.useRawValueToEscape && (a =
|
|
2163
|
+
else !H(a) && !this.useRawValueToEscape && (a = qt(a));
|
|
2164
2164
|
const E = g.safeValue(a);
|
|
2165
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;
|
|
@@ -2198,7 +2198,7 @@ class dn {
|
|
|
2198
2198
|
s[1] = f.shift(), l = f, c = !0;
|
|
2199
2199
|
}
|
|
2200
2200
|
if (i = t(o.call(this, s[1].trim(), a), a), i && s[0] === e && !H(i)) return i;
|
|
2201
|
-
H(i) || (i =
|
|
2201
|
+
H(i) || (i = qt(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;
|
|
@@ -2224,7 +2224,7 @@ const pn = (n) => {
|
|
|
2224
2224
|
formatName: e,
|
|
2225
2225
|
formatOptions: t
|
|
2226
2226
|
};
|
|
2227
|
-
},
|
|
2227
|
+
}, rr = (n) => {
|
|
2228
2228
|
const e = {};
|
|
2229
2229
|
return (t, r, s) => {
|
|
2230
2230
|
let i = s;
|
|
@@ -2234,55 +2234,57 @@ const pn = (n) => {
|
|
|
2234
2234
|
});
|
|
2235
2235
|
const a = r + JSON.stringify(i);
|
|
2236
2236
|
let o = e[a];
|
|
2237
|
-
return o || (o = n(
|
|
2237
|
+
return o || (o = n(Ie(r), s), e[a] = o), o(t);
|
|
2238
2238
|
};
|
|
2239
|
-
};
|
|
2240
|
-
class
|
|
2239
|
+
}, hn = (n) => (e, t, r) => n(Ie(t), r)(e);
|
|
2240
|
+
class mn {
|
|
2241
2241
|
constructor(e = {}) {
|
|
2242
|
-
this.logger = pe.create("formatter"), this.options = e, this.
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2242
|
+
this.logger = pe.create("formatter"), this.options = e, this.init(e);
|
|
2243
|
+
}
|
|
2244
|
+
init(e, t = {
|
|
2245
|
+
interpolation: {}
|
|
2246
|
+
}) {
|
|
2247
|
+
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
2248
|
+
const r = t.cacheInBuiltFormats ? rr : hn;
|
|
2249
|
+
this.formats = {
|
|
2250
|
+
number: r((s, i) => {
|
|
2251
|
+
const a = new Intl.NumberFormat(s, {
|
|
2252
|
+
...i
|
|
2246
2253
|
});
|
|
2247
|
-
return (
|
|
2254
|
+
return (o) => a.format(o);
|
|
2248
2255
|
}),
|
|
2249
|
-
currency:
|
|
2250
|
-
const
|
|
2251
|
-
...
|
|
2256
|
+
currency: r((s, i) => {
|
|
2257
|
+
const a = new Intl.NumberFormat(s, {
|
|
2258
|
+
...i,
|
|
2252
2259
|
style: "currency"
|
|
2253
2260
|
});
|
|
2254
|
-
return (
|
|
2261
|
+
return (o) => a.format(o);
|
|
2255
2262
|
}),
|
|
2256
|
-
datetime:
|
|
2257
|
-
const
|
|
2258
|
-
...
|
|
2263
|
+
datetime: r((s, i) => {
|
|
2264
|
+
const a = new Intl.DateTimeFormat(s, {
|
|
2265
|
+
...i
|
|
2259
2266
|
});
|
|
2260
|
-
return (
|
|
2267
|
+
return (o) => a.format(o);
|
|
2261
2268
|
}),
|
|
2262
|
-
relativetime:
|
|
2263
|
-
const
|
|
2264
|
-
...
|
|
2269
|
+
relativetime: r((s, i) => {
|
|
2270
|
+
const a = new Intl.RelativeTimeFormat(s, {
|
|
2271
|
+
...i
|
|
2265
2272
|
});
|
|
2266
|
-
return (
|
|
2273
|
+
return (o) => a.format(o, i.range || "day");
|
|
2267
2274
|
}),
|
|
2268
|
-
list:
|
|
2269
|
-
const
|
|
2270
|
-
...
|
|
2275
|
+
list: r((s, i) => {
|
|
2276
|
+
const a = new Intl.ListFormat(s, {
|
|
2277
|
+
...i
|
|
2271
2278
|
});
|
|
2272
|
-
return (
|
|
2279
|
+
return (o) => a.format(o);
|
|
2273
2280
|
})
|
|
2274
|
-
}
|
|
2275
|
-
}
|
|
2276
|
-
init(e, t = {
|
|
2277
|
-
interpolation: {}
|
|
2278
|
-
}) {
|
|
2279
|
-
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
2281
|
+
};
|
|
2280
2282
|
}
|
|
2281
2283
|
add(e, t) {
|
|
2282
2284
|
this.formats[e.toLowerCase().trim()] = t;
|
|
2283
2285
|
}
|
|
2284
2286
|
addCached(e, t) {
|
|
2285
|
-
this.formats[e.toLowerCase().trim()] =
|
|
2287
|
+
this.formats[e.toLowerCase().trim()] = rr(t);
|
|
2286
2288
|
}
|
|
2287
2289
|
format(e, t, r, s = {}) {
|
|
2288
2290
|
const i = t.split(this.formatSeparator);
|
|
@@ -2315,10 +2317,10 @@ class hn {
|
|
|
2315
2317
|
}, e);
|
|
2316
2318
|
}
|
|
2317
2319
|
}
|
|
2318
|
-
const
|
|
2320
|
+
const gn = (n, e) => {
|
|
2319
2321
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
2320
2322
|
};
|
|
2321
|
-
class
|
|
2323
|
+
class yn extends nt {
|
|
2322
2324
|
constructor(e, t, r, s = {}) {
|
|
2323
2325
|
var i, a;
|
|
2324
2326
|
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);
|
|
@@ -2351,7 +2353,7 @@ class gn extends st {
|
|
|
2351
2353
|
}), this.state[e] = t ? -1 : 2, t && r && (this.state[e] = 0);
|
|
2352
2354
|
const o = {};
|
|
2353
2355
|
this.queue.forEach((l) => {
|
|
2354
|
-
tn(l.loaded, [i], a),
|
|
2356
|
+
tn(l.loaded, [i], a), gn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
2355
2357
|
o[c] || (o[c] = {});
|
|
2356
2358
|
const f = l.loaded[c];
|
|
2357
2359
|
f.length && f.forEach((u) => {
|
|
@@ -2505,21 +2507,22 @@ const nr = () => ({
|
|
|
2505
2507
|
nestingOptionsSeparator: ",",
|
|
2506
2508
|
maxReplaces: 1e3,
|
|
2507
2509
|
skipOnVariables: !0
|
|
2508
|
-
}
|
|
2510
|
+
},
|
|
2511
|
+
cacheInBuiltFormats: !0
|
|
2509
2512
|
}), sr = (n) => {
|
|
2510
2513
|
var e, t;
|
|
2511
2514
|
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
2515
|
}, He = () => {
|
|
2513
|
-
},
|
|
2516
|
+
}, vn = (n) => {
|
|
2514
2517
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
2515
2518
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
2516
2519
|
});
|
|
2517
2520
|
};
|
|
2518
|
-
class Ne extends
|
|
2521
|
+
class Ne extends nt {
|
|
2519
2522
|
constructor(e = {}, t) {
|
|
2520
2523
|
if (super(), this.options = sr(e), this.services = {}, this.logger = pe, this.modules = {
|
|
2521
2524
|
external: []
|
|
2522
|
-
},
|
|
2525
|
+
}, vn(this), t && !this.isInitialized && !e.isClone) {
|
|
2523
2526
|
if (!this.options.initAsync)
|
|
2524
2527
|
return this.init(e, t), this;
|
|
2525
2528
|
setTimeout(() => {
|
|
@@ -2542,18 +2545,18 @@ class Ne extends st {
|
|
|
2542
2545
|
if (!this.options.isClone) {
|
|
2543
2546
|
this.modules.logger ? pe.init(s(this.modules.logger), this.options) : pe.init(null, this.options);
|
|
2544
2547
|
let c;
|
|
2545
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
2546
|
-
const f = new
|
|
2547
|
-
this.store = new
|
|
2548
|
+
this.modules.formatter ? c = this.modules.formatter : c = mn;
|
|
2549
|
+
const f = new Zt(this.options);
|
|
2550
|
+
this.store = new zt(this.options.resources, this.options);
|
|
2548
2551
|
const u = this.services;
|
|
2549
2552
|
u.logger = pe, u.resourceStore = this.store, u.languageUtils = f, u.pluralResolver = new fn(f, {
|
|
2550
2553
|
prepend: this.options.pluralSeparator,
|
|
2551
2554
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2552
2555
|
}), c && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = s(c), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new dn(this.options), u.utils = {
|
|
2553
2556
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2554
|
-
}, u.backendConnector = new
|
|
2557
|
+
}, u.backendConnector = new yn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (p, ...h) => {
|
|
2555
2558
|
this.emit(p, ...h);
|
|
2556
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new
|
|
2559
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new Xe(this.services, this.options), this.translator.on("*", (p, ...h) => {
|
|
2557
2560
|
this.emit(p, ...h);
|
|
2558
2561
|
}), this.modules.external.forEach((p) => {
|
|
2559
2562
|
p.init && p.init(this);
|
|
@@ -2568,7 +2571,7 @@ class Ne extends st {
|
|
|
2568
2571
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
2569
2572
|
this[c] = (...f) => (this.store[c](...f), this);
|
|
2570
2573
|
});
|
|
2571
|
-
const o =
|
|
2574
|
+
const o = Ce(), l = () => {
|
|
2572
2575
|
const c = (f, u) => {
|
|
2573
2576
|
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
2577
|
};
|
|
@@ -2596,7 +2599,7 @@ class Ne extends st {
|
|
|
2596
2599
|
r(null);
|
|
2597
2600
|
}
|
|
2598
2601
|
reloadResources(e, t, r) {
|
|
2599
|
-
const s =
|
|
2602
|
+
const s = Ce();
|
|
2600
2603
|
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
2604
|
s.resolve(), r(i);
|
|
2602
2605
|
}), s;
|
|
@@ -2620,7 +2623,7 @@ class Ne extends st {
|
|
|
2620
2623
|
}
|
|
2621
2624
|
changeLanguage(e, t) {
|
|
2622
2625
|
this.isLanguageChangingTo = e;
|
|
2623
|
-
const r =
|
|
2626
|
+
const r = Ce();
|
|
2624
2627
|
this.emit("languageChanging", e);
|
|
2625
2628
|
const s = (o) => {
|
|
2626
2629
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -2677,7 +2680,7 @@ class Ne extends st {
|
|
|
2677
2680
|
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, e) && (!s || a(i, e)));
|
|
2678
2681
|
}
|
|
2679
2682
|
loadNamespaces(e, t) {
|
|
2680
|
-
const r =
|
|
2683
|
+
const r = Ce();
|
|
2681
2684
|
return this.options.ns ? (H(e) && (e = [e]), e.forEach((s) => {
|
|
2682
2685
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
2683
2686
|
}), this.loadResources((s) => {
|
|
@@ -2685,7 +2688,7 @@ class Ne extends st {
|
|
|
2685
2688
|
}), r) : (t && t(), Promise.resolve());
|
|
2686
2689
|
}
|
|
2687
2690
|
loadLanguages(e, t) {
|
|
2688
|
-
const r =
|
|
2691
|
+
const r = Ce();
|
|
2689
2692
|
H(e) && (e = [e]);
|
|
2690
2693
|
const s = this.options.preload || [], i = e.filter((a) => s.indexOf(a) < 0 && this.services.languageUtils.isSupportedCode(a));
|
|
2691
2694
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -2695,7 +2698,7 @@ class Ne extends st {
|
|
|
2695
2698
|
dir(e) {
|
|
2696
2699
|
var s, i;
|
|
2697
2700
|
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
|
|
2701
|
+
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 Zt(nr());
|
|
2699
2702
|
return t.indexOf(r.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
2700
2703
|
}
|
|
2701
2704
|
static createInstance(e = {}, t) {
|
|
@@ -2721,9 +2724,9 @@ class Ne extends st {
|
|
|
2721
2724
|
}, l[c] = Object.keys(l[c]).reduce((f, u) => (f[u] = {
|
|
2722
2725
|
...l[c][u]
|
|
2723
2726
|
}, f), l[c]), l), {});
|
|
2724
|
-
i.store = new
|
|
2727
|
+
i.store = new zt(o, s), i.services.resourceStore = i.store;
|
|
2725
2728
|
}
|
|
2726
|
-
return i.translator = new
|
|
2729
|
+
return i.translator = new Xe(i.services, s), i.translator.on("*", (o, ...l) => {
|
|
2727
2730
|
i.emit(o, ...l);
|
|
2728
2731
|
}), i.init(s, t), i.translator.options = s, i.translator.backendConnector.services.utils = {
|
|
2729
2732
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
@@ -2755,34 +2758,34 @@ se.setDefaultNamespace;
|
|
|
2755
2758
|
se.hasLoadedNamespace;
|
|
2756
2759
|
se.loadNamespaces;
|
|
2757
2760
|
se.loadLanguages;
|
|
2758
|
-
const
|
|
2761
|
+
const bn = { 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" }, xn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Sn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando" }, En = {
|
|
2759
2762
|
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
|
-
Day:
|
|
2761
|
-
Month:
|
|
2762
|
-
Generic:
|
|
2763
|
-
},
|
|
2763
|
+
Day: bn,
|
|
2764
|
+
Month: xn,
|
|
2765
|
+
Generic: Sn
|
|
2766
|
+
}, _n = { 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" }, wn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, On = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, Tn = {
|
|
2764
2767
|
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
|
-
Day:
|
|
2766
|
-
Month:
|
|
2767
|
-
Generic:
|
|
2768
|
+
Day: _n,
|
|
2769
|
+
Month: wn,
|
|
2770
|
+
Generic: On
|
|
2768
2771
|
};
|
|
2769
2772
|
function ir(n, e) {
|
|
2770
|
-
return new RegExp(
|
|
2773
|
+
return new RegExp(Rn(n), e);
|
|
2771
2774
|
}
|
|
2772
|
-
function
|
|
2775
|
+
function Rn(n) {
|
|
2773
2776
|
return n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2774
2777
|
}
|
|
2775
|
-
function
|
|
2778
|
+
function Dn(n, e, t, r) {
|
|
2776
2779
|
let s = e;
|
|
2777
|
-
const i =
|
|
2780
|
+
const i = Pn(n, t);
|
|
2778
2781
|
if (!s) {
|
|
2779
2782
|
const o = Math.abs(i);
|
|
2780
2783
|
o - Math.floor(o) ? s = "0,0.00" : s = "0,0";
|
|
2781
2784
|
}
|
|
2782
|
-
const a =
|
|
2785
|
+
const a = An(s);
|
|
2783
2786
|
return new Intl.NumberFormat(r, a).format(i);
|
|
2784
2787
|
}
|
|
2785
|
-
function
|
|
2788
|
+
function Pn(n, e, t, r, s) {
|
|
2786
2789
|
let i = n;
|
|
2787
2790
|
if (typeof i != "number") {
|
|
2788
2791
|
let o;
|
|
@@ -2793,7 +2796,7 @@ function Dn(n, e, t, r, s) {
|
|
|
2793
2796
|
const a = Number(i);
|
|
2794
2797
|
return isNaN(a) ? NaN : a;
|
|
2795
2798
|
}
|
|
2796
|
-
function
|
|
2799
|
+
function An(n) {
|
|
2797
2800
|
const e = {};
|
|
2798
2801
|
n.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
|
|
2799
2802
|
const t = n.indexOf(".");
|
|
@@ -2823,7 +2826,7 @@ se.init({
|
|
|
2823
2826
|
default:
|
|
2824
2827
|
case "number": {
|
|
2825
2828
|
const i = (r == null ? void 0 : r.inputIsLocalized) ?? !1;
|
|
2826
|
-
return
|
|
2829
|
+
return Dn(n, e, i, t);
|
|
2827
2830
|
}
|
|
2828
2831
|
}
|
|
2829
2832
|
} catch {
|
|
@@ -2833,30 +2836,30 @@ se.init({
|
|
|
2833
2836
|
},
|
|
2834
2837
|
resources: {
|
|
2835
2838
|
en: {
|
|
2836
|
-
translation:
|
|
2839
|
+
translation: Tn
|
|
2837
2840
|
},
|
|
2838
2841
|
it: {
|
|
2839
|
-
translation:
|
|
2842
|
+
translation: En
|
|
2840
2843
|
}
|
|
2841
2844
|
}
|
|
2842
2845
|
});
|
|
2843
|
-
const
|
|
2844
|
-
function
|
|
2845
|
-
const n =
|
|
2846
|
-
(r, s, i, a) =>
|
|
2846
|
+
const Cn = (n, e, t, r) => se.format(n, e, t || se.language, r), Ln = (n, e) => se.t(n, e);
|
|
2847
|
+
function st() {
|
|
2848
|
+
const n = Oe(
|
|
2849
|
+
(r, s, i, a) => Cn(r, s, i || void 0, a),
|
|
2847
2850
|
[]
|
|
2848
|
-
), e =
|
|
2849
|
-
(r, s) =>
|
|
2851
|
+
), e = Oe(() => se.languages[0], []), t = Oe(
|
|
2852
|
+
(r, s) => Ln(r, s),
|
|
2850
2853
|
[]
|
|
2851
2854
|
);
|
|
2852
2855
|
return { format: n, getCurrentLanguage: e, translate: t };
|
|
2853
2856
|
}
|
|
2854
|
-
const
|
|
2857
|
+
const je = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" : n;
|
|
2855
2858
|
function ar(n) {
|
|
2856
2859
|
if (n)
|
|
2857
2860
|
return n.toLowerCase();
|
|
2858
2861
|
}
|
|
2859
|
-
const
|
|
2862
|
+
const is = ({
|
|
2860
2863
|
ColumnsNumber: n = 1,
|
|
2861
2864
|
data: e = {},
|
|
2862
2865
|
ForceText: t,
|
|
@@ -2880,7 +2883,7 @@ const ss = ({
|
|
|
2880
2883
|
}) => {
|
|
2881
2884
|
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
2885
|
dash: (N = "1") => {
|
|
2883
|
-
const G = d(N), ee =
|
|
2886
|
+
const G = d(N), ee = Ae[G], te = m(G, C), le = m(G, M), ge = m(G, U), ce = m(G, J);
|
|
2884
2887
|
return {
|
|
2885
2888
|
container: ee,
|
|
2886
2889
|
descr: te,
|
|
@@ -2889,9 +2892,9 @@ const ss = ({
|
|
|
2889
2892
|
value: ce
|
|
2890
2893
|
};
|
|
2891
2894
|
},
|
|
2892
|
-
dashList: `${
|
|
2893
|
-
${
|
|
2894
|
-
}, { format: k } =
|
|
2895
|
+
dashList: `${Ae["smp-dash-list"]} ${je(i) ? Ae["smp-dash-list-fill-space"] : ""}
|
|
2896
|
+
${je(o) ? Ae["smp-dash-list-horizontal"] : ""}`
|
|
2897
|
+
}, { format: k } = st(), d = (N) => `${F}-${N}`, m = (N, G) => Ae[`${N}__${G}`], b = (N) => `${Y}-${N}`, _ = (N) => {
|
|
2895
2898
|
const G = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
2896
2899
|
if (G.test(N)) {
|
|
2897
2900
|
const te = N.match(G) || [];
|
|
@@ -2992,7 +2995,7 @@ const ss = ({
|
|
|
2992
2995
|
SPOTLIGHT: "SPL",
|
|
2993
2996
|
TEXT_FIELD: "ITX",
|
|
2994
2997
|
PASSWORD: "PWD"
|
|
2995
|
-
},
|
|
2998
|
+
}, kn = (n) => n.t == "D8", $n = (n) => {
|
|
2996
2999
|
if (n) {
|
|
2997
3000
|
const e = n.split(";");
|
|
2998
3001
|
if (e.length == 3)
|
|
@@ -3008,14 +3011,14 @@ const ss = ({
|
|
|
3008
3011
|
k: ""
|
|
3009
3012
|
};
|
|
3010
3013
|
};
|
|
3011
|
-
class
|
|
3014
|
+
class Ze {
|
|
3012
3015
|
constructor(e, t) {
|
|
3013
3016
|
be(this, "class");
|
|
3014
3017
|
be(this, "value");
|
|
3015
3018
|
this.class = e, this.value = t;
|
|
3016
3019
|
}
|
|
3017
3020
|
static fromDataObj(e) {
|
|
3018
|
-
return new
|
|
3021
|
+
return new Ze(e, e.k == "1" || e.k == "true");
|
|
3019
3022
|
}
|
|
3020
3023
|
getValue() {
|
|
3021
3024
|
return this.value;
|
|
@@ -3030,8 +3033,8 @@ class Qe {
|
|
|
3030
3033
|
return this.value ? "true" : "false";
|
|
3031
3034
|
}
|
|
3032
3035
|
}
|
|
3033
|
-
function
|
|
3034
|
-
if (
|
|
3036
|
+
function jn(n, e) {
|
|
3037
|
+
if (Et(n)) {
|
|
3035
3038
|
const f = new Date(n);
|
|
3036
3039
|
if (!isNaN(f.getTime()))
|
|
3037
3040
|
return f;
|
|
@@ -3052,33 +3055,33 @@ function $n(n, e) {
|
|
|
3052
3055
|
case 6: {
|
|
3053
3056
|
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);
|
|
3054
3057
|
let f = 0, u = 0;
|
|
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)),
|
|
3058
|
+
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)), bt(o, u, parseInt(c)) && qe(t) ? t : n;
|
|
3056
3059
|
}
|
|
3057
3060
|
case 7:
|
|
3058
3061
|
case 8: {
|
|
3059
3062
|
o = parseInt(r.substring(0, 2)), l = parseInt(r.substring(2, 4)), c = r.substring(4);
|
|
3060
3063
|
let f = 0, u = 0;
|
|
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)),
|
|
3064
|
+
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)), bt(f, u, parseInt(c)) && qe(t) ? t : n;
|
|
3062
3065
|
}
|
|
3063
3066
|
}
|
|
3064
3067
|
return n;
|
|
3065
3068
|
}
|
|
3066
|
-
function
|
|
3069
|
+
function Et(n) {
|
|
3067
3070
|
return /^\d{4}-\d{2}-\d{2}$/.test(n) && n.length === 10;
|
|
3068
3071
|
}
|
|
3069
3072
|
function qe(n) {
|
|
3070
3073
|
return n instanceof Date && !isNaN(n.getTime());
|
|
3071
3074
|
}
|
|
3072
|
-
function
|
|
3075
|
+
function In(n) {
|
|
3073
3076
|
if (!/^\d{8}$/.test(n)) return !1;
|
|
3074
3077
|
const e = parseInt(n.slice(0, 4), 10), t = parseInt(n.slice(4, 6), 10), r = parseInt(n.slice(6, 8), 10);
|
|
3075
|
-
return
|
|
3078
|
+
return bt(r, t - 1, e);
|
|
3076
3079
|
}
|
|
3077
|
-
function
|
|
3080
|
+
function bt(n, e, t) {
|
|
3078
3081
|
const r = [
|
|
3079
3082
|
31,
|
|
3080
3083
|
// January
|
|
3081
|
-
|
|
3084
|
+
Nn(t) ? 29 : 28,
|
|
3082
3085
|
// February
|
|
3083
3086
|
31,
|
|
3084
3087
|
// March
|
|
@@ -3103,14 +3106,14 @@ function xt(n, e, t) {
|
|
|
3103
3106
|
];
|
|
3104
3107
|
return !(e < 0 || e > 11 || n < 1 || n > r[e]);
|
|
3105
3108
|
}
|
|
3106
|
-
function
|
|
3109
|
+
function Nn(n) {
|
|
3107
3110
|
return n % 4 === 0 && (n % 100 !== 0 || n % 400 === 0);
|
|
3108
3111
|
}
|
|
3109
|
-
function
|
|
3112
|
+
function Mn(n) {
|
|
3110
3113
|
const e = n.getFullYear(), t = String(n.getMonth() + 1).padStart(2, "0"), r = String(n.getDate()).padStart(2, "0");
|
|
3111
3114
|
return isNaN(e) || isNaN(Number(t)) || isNaN(Number(r)) ? n.toString() : `${e}-${t}-${r}`;
|
|
3112
3115
|
}
|
|
3113
|
-
class
|
|
3116
|
+
class Qe {
|
|
3114
3117
|
constructor(e, t) {
|
|
3115
3118
|
be(this, "class");
|
|
3116
3119
|
be(this, "date");
|
|
@@ -3119,7 +3122,7 @@ class et {
|
|
|
3119
3122
|
static fromDataObj(e) {
|
|
3120
3123
|
const t = or.get(`${e.t}${e.p}`);
|
|
3121
3124
|
if (t)
|
|
3122
|
-
return new
|
|
3125
|
+
return new Qe(e, t.legacyToIso(e.k));
|
|
3123
3126
|
throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
|
|
3124
3127
|
}
|
|
3125
3128
|
getLegacyValue() {
|
|
@@ -3139,14 +3142,14 @@ const or = /* @__PURE__ */ new Map([
|
|
|
3139
3142
|
"D8*YYMD",
|
|
3140
3143
|
{
|
|
3141
3144
|
legacyToIso(n) {
|
|
3142
|
-
return
|
|
3145
|
+
return In(n) && `${n.substring(0, 4)}-${n.substring(4, 6)}-${n.substring(6, 8)}` || n;
|
|
3143
3146
|
},
|
|
3144
3147
|
isoToLegacy(n) {
|
|
3145
|
-
return
|
|
3148
|
+
return Et(n) && n.replaceAll("-", "") || n;
|
|
3146
3149
|
}
|
|
3147
3150
|
}
|
|
3148
3151
|
]
|
|
3149
|
-
]),
|
|
3152
|
+
]), et = (n, e) => {
|
|
3150
3153
|
he(() => {
|
|
3151
3154
|
const t = (r) => {
|
|
3152
3155
|
typeof n == "object" && n !== null && "current" in n && n.current && !n.current.contains(r.target) && e();
|
|
@@ -3156,11 +3159,11 @@ const or = /* @__PURE__ */ new Map([
|
|
|
3156
3159
|
};
|
|
3157
3160
|
}, [n, e]);
|
|
3158
3161
|
};
|
|
3159
|
-
function
|
|
3162
|
+
function _t({
|
|
3160
3163
|
position: n = "bottom",
|
|
3161
3164
|
enabled: e = !0
|
|
3162
3165
|
}) {
|
|
3163
|
-
const t = xe(null), r = xe(null), [s, i] = Q(0), a =
|
|
3166
|
+
const t = xe(null), r = xe(null), [s, i] = Q(0), a = Oe(() => {
|
|
3164
3167
|
const o = t.current, l = r.current;
|
|
3165
3168
|
if (!o || !l) return;
|
|
3166
3169
|
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
@@ -3199,7 +3202,7 @@ function wt({
|
|
|
3199
3202
|
};
|
|
3200
3203
|
}, [a, e]), { anchorRef: t, targetRef: r, anchorWidth: s };
|
|
3201
3204
|
}
|
|
3202
|
-
const
|
|
3205
|
+
const tt = (n, e, t) => {
|
|
3203
3206
|
if (t)
|
|
3204
3207
|
switch (t) {
|
|
3205
3208
|
case "CodeOnly":
|
|
@@ -3210,28 +3213,28 @@ const rt = (n, e, t) => {
|
|
|
3210
3213
|
return `${n} - ${e}`;
|
|
3211
3214
|
}
|
|
3212
3215
|
return n;
|
|
3213
|
-
},
|
|
3216
|
+
}, Le = {
|
|
3214
3217
|
"smp-list": "_smp-list_1ux5k_1",
|
|
3215
3218
|
"smp-list-container": "_smp-list-container_1ux5k_18",
|
|
3216
3219
|
"smp-list-listItem": "_smp-list-listItem_1ux5k_23"
|
|
3217
|
-
},
|
|
3220
|
+
}, ht = {
|
|
3218
3221
|
"smp-helper-text": "_smp-helper-text_10pis_1",
|
|
3219
3222
|
"smp-helper-text-danger": "_smp-helper-text-danger_10pis_9",
|
|
3220
3223
|
"smp-helper-text-warning": "_smp-helper-text-warning_10pis_13",
|
|
3221
3224
|
"smp-helper-text-disabled": "_smp-helper-text-disabled_10pis_17"
|
|
3222
|
-
},
|
|
3225
|
+
}, Fn = ({
|
|
3223
3226
|
helperText: n,
|
|
3224
3227
|
disabled: e,
|
|
3225
3228
|
state: t
|
|
3226
3229
|
}) => {
|
|
3227
3230
|
const r = {
|
|
3228
|
-
container: `${
|
|
3231
|
+
container: `${ht["smp-helper-text"]} ${e ? ht["smp-helper-text-disabled"] : ""} ${t ? ht[`smp-helper-text-${t}`] : ""}`
|
|
3229
3232
|
};
|
|
3230
3233
|
return /* @__PURE__ */ w.jsx("span", { className: r.container, children: n });
|
|
3231
3234
|
}, lr = {
|
|
3232
3235
|
"smp-label": "_smp-label_3ywt3_1",
|
|
3233
3236
|
"smp-label-disabled": "_smp-label-disabled_3ywt3_5"
|
|
3234
|
-
},
|
|
3237
|
+
}, Vn = ({ label: n, disabled: e }) => {
|
|
3235
3238
|
const t = {
|
|
3236
3239
|
container: `${lr["smp-label"]} ${e ? lr["smp-label-disabled"] : ""}`
|
|
3237
3240
|
};
|
|
@@ -3249,7 +3252,7 @@ const rt = (n, e, t) => {
|
|
|
3249
3252
|
"smp-textfield-readOnly": "_smp-textfield-readOnly_1t99c_117",
|
|
3250
3253
|
"smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_1t99c_122",
|
|
3251
3254
|
"smp-textfield-disabled": "_smp-textfield-disabled_1t99c_132"
|
|
3252
|
-
},
|
|
3255
|
+
}, Te = ({
|
|
3253
3256
|
disabled: n,
|
|
3254
3257
|
readOnly: e,
|
|
3255
3258
|
bindValue: t,
|
|
@@ -3280,7 +3283,7 @@ const rt = (n, e, t) => {
|
|
|
3280
3283
|
input: `${me["smp-textfield-input"]}`
|
|
3281
3284
|
};
|
|
3282
3285
|
return /* @__PURE__ */ w.jsxs("div", { className: F.wrapper, children: [
|
|
3283
|
-
x && /* @__PURE__ */ w.jsx(
|
|
3286
|
+
x && /* @__PURE__ */ w.jsx(Vn, { label: x, disabled: n }),
|
|
3284
3287
|
/* @__PURE__ */ w.jsxs("div", { className: F.container, ref: h, children: [
|
|
3285
3288
|
r && /* @__PURE__ */ w.jsx(ve, { icon: r, disabled: n }),
|
|
3286
3289
|
/* @__PURE__ */ w.jsx(
|
|
@@ -3311,7 +3314,7 @@ const rt = (n, e, t) => {
|
|
|
3311
3314
|
)
|
|
3312
3315
|
] }),
|
|
3313
3316
|
j && /* @__PURE__ */ w.jsx(
|
|
3314
|
-
|
|
3317
|
+
Fn,
|
|
3315
3318
|
{
|
|
3316
3319
|
helperText: D,
|
|
3317
3320
|
disabled: n,
|
|
@@ -3320,7 +3323,7 @@ const rt = (n, e, t) => {
|
|
|
3320
3323
|
)
|
|
3321
3324
|
] });
|
|
3322
3325
|
};
|
|
3323
|
-
function
|
|
3326
|
+
function Yn({
|
|
3324
3327
|
items: n,
|
|
3325
3328
|
itemHeight: e,
|
|
3326
3329
|
containerHeight: t,
|
|
@@ -3336,7 +3339,7 @@ function Vn({
|
|
|
3336
3339
|
index: h,
|
|
3337
3340
|
offsetTop: h * e
|
|
3338
3341
|
});
|
|
3339
|
-
const u =
|
|
3342
|
+
const u = Oe((h) => {
|
|
3340
3343
|
const g = h.target.scrollTop;
|
|
3341
3344
|
i(g);
|
|
3342
3345
|
}, []), p = (h) => {
|
|
@@ -3373,7 +3376,7 @@ function Vn({
|
|
|
3373
3376
|
scrollToIndex: p
|
|
3374
3377
|
};
|
|
3375
3378
|
}
|
|
3376
|
-
const
|
|
3379
|
+
const Un = 10, br = ({
|
|
3377
3380
|
id: n,
|
|
3378
3381
|
options: e,
|
|
3379
3382
|
displayMode: t,
|
|
@@ -3390,11 +3393,11 @@ const Yn = 10, br = ({
|
|
|
3390
3393
|
var C;
|
|
3391
3394
|
const [f, u] = Q(""), p = 24, [h, g] = Q(
|
|
3392
3395
|
i !== null ? i : -1
|
|
3393
|
-
), y = s !== void 0 ? s : e.length >
|
|
3396
|
+
), y = s !== void 0 ? s : e.length > Un, E = f ? e.filter(
|
|
3394
3397
|
(M) => M.label.toLowerCase().includes(f.toLowerCase())
|
|
3395
3398
|
) : e, R = (M) => {
|
|
3396
3399
|
u(M);
|
|
3397
|
-
}, { virtualItems: x, containerProps: O, innerProps: D, scrollToIndex: v } =
|
|
3400
|
+
}, { virtualItems: x, containerProps: O, innerProps: D, scrollToIndex: v } = Yn({
|
|
3398
3401
|
items: E,
|
|
3399
3402
|
itemHeight: p,
|
|
3400
3403
|
containerHeight: 200,
|
|
@@ -3417,10 +3420,10 @@ const Yn = 10, br = ({
|
|
|
3417
3420
|
}, Y = (M) => {
|
|
3418
3421
|
A(M);
|
|
3419
3422
|
}, F = {
|
|
3420
|
-
wrapper: `${
|
|
3421
|
-
container: `${
|
|
3422
|
-
virtualScroll: `${
|
|
3423
|
-
listItem: `${
|
|
3423
|
+
wrapper: `${Le["smp-list"]}`,
|
|
3424
|
+
container: `${Le["smp-list-container"]}`,
|
|
3425
|
+
virtualScroll: `${Le["smp-list-virtualScroll"]}`,
|
|
3426
|
+
listItem: `${Le["smp-list-listItem"]}`
|
|
3424
3427
|
};
|
|
3425
3428
|
return /* @__PURE__ */ w.jsxs(
|
|
3426
3429
|
"div",
|
|
@@ -3433,7 +3436,7 @@ const Yn = 10, br = ({
|
|
|
3433
3436
|
},
|
|
3434
3437
|
children: [
|
|
3435
3438
|
y && /* @__PURE__ */ w.jsx(
|
|
3436
|
-
|
|
3439
|
+
Te,
|
|
3437
3440
|
{
|
|
3438
3441
|
bindValue: f,
|
|
3439
3442
|
placeholder: "Search...",
|
|
@@ -3462,7 +3465,7 @@ const Yn = 10, br = ({
|
|
|
3462
3465
|
id: M.id,
|
|
3463
3466
|
"aria-selected": h === U ? "true" : "false",
|
|
3464
3467
|
tabIndex: -1,
|
|
3465
|
-
className: `${F.listItem} ${h === U ?
|
|
3468
|
+
className: `${F.listItem} ${h === U ? Le["selected-item"] : ""}`,
|
|
3466
3469
|
"aria-label": M.id + "-" + M.label,
|
|
3467
3470
|
style: {
|
|
3468
3471
|
height: `${p}px`,
|
|
@@ -3474,7 +3477,7 @@ const Yn = 10, br = ({
|
|
|
3474
3477
|
l == null || l(M), g(U);
|
|
3475
3478
|
},
|
|
3476
3479
|
children: [
|
|
3477
|
-
|
|
3480
|
+
tt(M.id, M.label, t),
|
|
3478
3481
|
K && /* @__PURE__ */ w.jsx(ve, { icon: "check", width: 16 })
|
|
3479
3482
|
]
|
|
3480
3483
|
},
|
|
@@ -3494,16 +3497,16 @@ const Yn = 10, br = ({
|
|
|
3494
3497
|
...r
|
|
3495
3498
|
}) => {
|
|
3496
3499
|
const [s, i] = Q(
|
|
3497
|
-
|
|
3500
|
+
tt(e, t, n)
|
|
3498
3501
|
);
|
|
3499
3502
|
return he(() => {
|
|
3500
3503
|
i(e);
|
|
3501
3504
|
}, [e]), he(() => {
|
|
3502
3505
|
i(
|
|
3503
|
-
|
|
3506
|
+
tt(e, t, n)
|
|
3504
3507
|
);
|
|
3505
|
-
}, [t, n]), /* @__PURE__ */ w.jsx(
|
|
3506
|
-
},
|
|
3508
|
+
}, [t, n]), /* @__PURE__ */ w.jsx(Te, { ...r, bindValue: s });
|
|
3509
|
+
}, Wn = (n) => {
|
|
3507
3510
|
const e = xe(null);
|
|
3508
3511
|
return he(() => () => {
|
|
3509
3512
|
e.current && clearTimeout(e.current);
|
|
@@ -3527,12 +3530,12 @@ const Yn = 10, br = ({
|
|
|
3527
3530
|
_multiActiveIndex: u,
|
|
3528
3531
|
...p
|
|
3529
3532
|
}) => {
|
|
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 } =
|
|
3533
|
+
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 } = _t({
|
|
3531
3534
|
position: "bottom",
|
|
3532
3535
|
enabled: R
|
|
3533
3536
|
});
|
|
3534
|
-
|
|
3535
|
-
const U =
|
|
3537
|
+
et(C, () => x(!1));
|
|
3538
|
+
const U = Wn(400), J = (V) => {
|
|
3536
3539
|
V.length >= i ? o && f && U(async () => {
|
|
3537
3540
|
const B = await f(o, V);
|
|
3538
3541
|
D(B), A(B.length > 0 ? 0 : -1), x(!0);
|
|
@@ -3588,7 +3591,7 @@ const Yn = 10, br = ({
|
|
|
3588
3591
|
}
|
|
3589
3592
|
)
|
|
3590
3593
|
] });
|
|
3591
|
-
},
|
|
3594
|
+
}, ke = {
|
|
3592
3595
|
"smp-button-container": "_smp-button-container_pte2h_1",
|
|
3593
3596
|
"smp-button-extraSmall": "_smp-button-extraSmall_pte2h_51",
|
|
3594
3597
|
"smp-button-small": "_smp-button-small_pte2h_56",
|
|
@@ -3601,7 +3604,7 @@ const Yn = 10, br = ({
|
|
|
3601
3604
|
"smp-buttonVariant-primary": "_smp-buttonVariant-primary_pte2h_97",
|
|
3602
3605
|
"smp-buttonVariant-danger": "_smp-buttonVariant-danger_pte2h_111",
|
|
3603
3606
|
"smp-buttonType-ghost": "_smp-buttonType-ghost_pte2h_138"
|
|
3604
|
-
},
|
|
3607
|
+
}, rt = ({
|
|
3605
3608
|
bindValue: n,
|
|
3606
3609
|
onClick: e,
|
|
3607
3610
|
ariaLabel: t,
|
|
@@ -3617,7 +3620,7 @@ const Yn = 10, br = ({
|
|
|
3617
3620
|
loading: u = !1
|
|
3618
3621
|
}) => {
|
|
3619
3622
|
const p = {
|
|
3620
|
-
container: `${
|
|
3623
|
+
container: `${ke["smp-button-container"]} ${i ? ke[`smp-button-${i}`] : ""} ${a ? ke[`smp-buttonVariant-${a}`] : ""} ${o ? ke[`smp-buttonType-${o}`] : ""} ${f ? ke["smp-button-fullWidth"] : ""}`
|
|
3621
3624
|
}, h = (g) => ({
|
|
3622
3625
|
primary: "onPrimary",
|
|
3623
3626
|
danger: "onDanger",
|
|
@@ -3644,7 +3647,7 @@ const Yn = 10, br = ({
|
|
|
3644
3647
|
] })
|
|
3645
3648
|
}
|
|
3646
3649
|
);
|
|
3647
|
-
},
|
|
3650
|
+
}, Hn = ({
|
|
3648
3651
|
bindValue: n,
|
|
3649
3652
|
onChange: e,
|
|
3650
3653
|
onBlur: t
|
|
@@ -3661,25 +3664,25 @@ const Yn = 10, br = ({
|
|
|
3661
3664
|
onBlur: t
|
|
3662
3665
|
}
|
|
3663
3666
|
);
|
|
3664
|
-
},
|
|
3667
|
+
}, qn = {
|
|
3665
3668
|
titleLarge: "h2",
|
|
3666
3669
|
title: "h3",
|
|
3667
3670
|
body: "h6",
|
|
3668
3671
|
label: "label"
|
|
3669
|
-
},
|
|
3672
|
+
}, mt = {
|
|
3670
3673
|
"smp-typography": "_smp-typography_oznk3_1",
|
|
3671
3674
|
"smp-typography-body": "_smp-typography-body_oznk3_12",
|
|
3672
3675
|
"smp-typography-large": "_smp-typography-large_oznk3_16",
|
|
3673
3676
|
"smp-typography-titleLarge": "_smp-typography-titleLarge_oznk3_20",
|
|
3674
3677
|
"smp-typography-label": "_smp-typography-label_oznk3_24",
|
|
3675
3678
|
"smp-typography-disabled": "_smp-typography-disabled_oznk3_29"
|
|
3676
|
-
},
|
|
3679
|
+
}, Kn = ({
|
|
3677
3680
|
variant: n = "body",
|
|
3678
3681
|
bindValue: e,
|
|
3679
3682
|
...t
|
|
3680
3683
|
}) => {
|
|
3681
|
-
const r =
|
|
3682
|
-
container: `${
|
|
3684
|
+
const r = qn[n], s = {
|
|
3685
|
+
container: `${mt["smp-typography"]} ${n ? mt[`smp-typography-${n}`] : ""} ${t.disabled ? mt["smp-typography-disabled"] : ""}`
|
|
3683
3686
|
};
|
|
3684
3687
|
return /* @__PURE__ */ w.jsx(r, { className: s.container, disabled: t.disabled, children: e });
|
|
3685
3688
|
}, cr = {
|
|
@@ -3698,13 +3701,13 @@ const Yn = 10, br = ({
|
|
|
3698
3701
|
r == null || r(n.filter((o, l) => l !== a));
|
|
3699
3702
|
};
|
|
3700
3703
|
return /* @__PURE__ */ w.jsx("div", { className: s.container, role: "list", children: n.map((a, o) => {
|
|
3701
|
-
const l =
|
|
3704
|
+
const l = tt(
|
|
3702
3705
|
a.bindValue,
|
|
3703
3706
|
a.optionalDisplayValue,
|
|
3704
3707
|
t
|
|
3705
3708
|
);
|
|
3706
3709
|
return /* @__PURE__ */ w.jsxs("div", { className: s.element, role: "listitem", children: [
|
|
3707
|
-
/* @__PURE__ */ w.jsx(
|
|
3710
|
+
/* @__PURE__ */ w.jsx(Kn, { variant: "label", bindValue: l }),
|
|
3708
3711
|
e && /* @__PURE__ */ w.jsx(
|
|
3709
3712
|
ve,
|
|
3710
3713
|
{
|
|
@@ -3755,7 +3758,7 @@ function _r(n, e) {
|
|
|
3755
3758
|
};
|
|
3756
3759
|
}, [n, e]);
|
|
3757
3760
|
}
|
|
3758
|
-
const
|
|
3761
|
+
const Bn = ({
|
|
3759
3762
|
bindValue: n,
|
|
3760
3763
|
onChange: e,
|
|
3761
3764
|
options: t = [],
|
|
@@ -3767,11 +3770,11 @@ const Kn = ({
|
|
|
3767
3770
|
multiActiveIndex: l,
|
|
3768
3771
|
...c
|
|
3769
3772
|
}) => {
|
|
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 } =
|
|
3773
|
+
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 } = _t({
|
|
3771
3774
|
position: "bottom",
|
|
3772
3775
|
enabled: f
|
|
3773
3776
|
});
|
|
3774
|
-
|
|
3777
|
+
et(D, () => u(!1)), _r(f, D);
|
|
3775
3778
|
const A = (C) => {
|
|
3776
3779
|
e == null || e(C.id, C.label);
|
|
3777
3780
|
const M = p.findIndex((U) => U.id === C.id);
|
|
@@ -3828,7 +3831,7 @@ const Kn = ({
|
|
|
3828
3831
|
}
|
|
3829
3832
|
);
|
|
3830
3833
|
};
|
|
3831
|
-
var
|
|
3834
|
+
var wt = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n))(wt || {}), 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 || {}), xt = /* @__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))(xt || {});
|
|
3832
3835
|
const de = {
|
|
3833
3836
|
"smp-datepickercalendar": "_smp-datepickercalendar_u2io5_1",
|
|
3834
3837
|
"smp-datepickercalendar-table": "_smp-datepickercalendar-table_u2io5_30",
|
|
@@ -3839,14 +3842,14 @@ const de = {
|
|
|
3839
3842
|
"smp-datepickercalendar-td-focused": "_smp-datepickercalendar-td-focused_u2io5_83",
|
|
3840
3843
|
"smp-datepickercalendar-label": "_smp-datepickercalendar-label_u2io5_93"
|
|
3841
3844
|
};
|
|
3842
|
-
function
|
|
3845
|
+
function Gn({
|
|
3843
3846
|
selectedDate: n,
|
|
3844
3847
|
onDateChange: e,
|
|
3845
3848
|
disabledDateRanges: t = [],
|
|
3846
3849
|
initialValue: r,
|
|
3847
3850
|
targetRef: s
|
|
3848
3851
|
}) {
|
|
3849
|
-
const { translate: i } =
|
|
3852
|
+
const { translate: i } = st(), a = () => {
|
|
3850
3853
|
if (!r) return;
|
|
3851
3854
|
const k = new Date(r);
|
|
3852
3855
|
return isNaN(k.getTime()) ? void 0 : k;
|
|
@@ -3904,7 +3907,7 @@ function Bn({
|
|
|
3904
3907
|
const m = d.start.getTime(), b = d.end.getTime(), _ = k.getTime();
|
|
3905
3908
|
return _ >= m && _ <= b;
|
|
3906
3909
|
}), v = (k) => {
|
|
3907
|
-
D(k) || (c(k), y(k.getDate()), e && e(
|
|
3910
|
+
D(k) || (c(k), y(k.getDate()), e && e(Mn(k)));
|
|
3908
3911
|
}, A = () => {
|
|
3909
3912
|
f === 0 ? (u(11), h(p - 1)) : u(f - 1), y(1);
|
|
3910
3913
|
}, j = () => {
|
|
@@ -4095,10 +4098,10 @@ function Bn({
|
|
|
4095
4098
|
},
|
|
4096
4099
|
children: [
|
|
4097
4100
|
/* @__PURE__ */ w.jsx(
|
|
4098
|
-
|
|
4101
|
+
rt,
|
|
4099
4102
|
{
|
|
4100
4103
|
onClick: A,
|
|
4101
|
-
ariaLabel: i(
|
|
4104
|
+
ariaLabel: i(xt.PREVIOUS_MONTH),
|
|
4102
4105
|
bindValue: "<",
|
|
4103
4106
|
type: "ghost",
|
|
4104
4107
|
variant: "base"
|
|
@@ -4113,10 +4116,10 @@ function Bn({
|
|
|
4113
4116
|
}
|
|
4114
4117
|
),
|
|
4115
4118
|
/* @__PURE__ */ w.jsx(
|
|
4116
|
-
|
|
4119
|
+
rt,
|
|
4117
4120
|
{
|
|
4118
4121
|
onClick: j,
|
|
4119
|
-
ariaLabel: i(
|
|
4122
|
+
ariaLabel: i(xt.NEXT_MONTH),
|
|
4120
4123
|
bindValue: ">",
|
|
4121
4124
|
type: "ghost",
|
|
4122
4125
|
variant: "base"
|
|
@@ -4130,7 +4133,7 @@ function Bn({
|
|
|
4130
4133
|
{
|
|
4131
4134
|
ref: E,
|
|
4132
4135
|
role: "grid",
|
|
4133
|
-
"aria-label": `${i(
|
|
4136
|
+
"aria-label": `${i(wt.CALENDAR_FOR)} ${x[f]} ${p}`,
|
|
4134
4137
|
className: V.table,
|
|
4135
4138
|
children: [
|
|
4136
4139
|
/* @__PURE__ */ w.jsx("thead", { children: /* @__PURE__ */ w.jsx("tr", { children: O.map((k) => /* @__PURE__ */ w.jsx(
|
|
@@ -4191,20 +4194,20 @@ function Bn({
|
|
|
4191
4194
|
}
|
|
4192
4195
|
);
|
|
4193
4196
|
}
|
|
4194
|
-
const
|
|
4197
|
+
const zn = ({
|
|
4195
4198
|
bindValue: n,
|
|
4196
4199
|
placeholder: e,
|
|
4197
4200
|
onChange: t,
|
|
4198
4201
|
disabledDateRanges: r,
|
|
4199
4202
|
...s
|
|
4200
4203
|
}) => {
|
|
4201
|
-
const [i, a] = Q(!1), [o, l] = Q(n || ""), [c, f] = Q(""), { anchorRef: u, targetRef: p } =
|
|
4204
|
+
const [i, a] = Q(!1), [o, l] = Q(n || ""), [c, f] = Q(""), { anchorRef: u, targetRef: p } = _t({
|
|
4202
4205
|
position: "bottom",
|
|
4203
4206
|
enabled: i
|
|
4204
4207
|
});
|
|
4205
|
-
|
|
4208
|
+
et(p, () => {
|
|
4206
4209
|
a(!1);
|
|
4207
|
-
}),
|
|
4210
|
+
}), et(u, () => {
|
|
4208
4211
|
if (
|
|
4209
4212
|
// FIXME: Copied from useClickOutside.
|
|
4210
4213
|
typeof u == "object" && u !== null && "current" in u
|
|
@@ -4213,9 +4216,9 @@ const Gn = ({
|
|
|
4213
4216
|
A && A === document.activeElement && R();
|
|
4214
4217
|
}
|
|
4215
4218
|
}), _r(i, p);
|
|
4216
|
-
const { format: h, getCurrentLanguage: g } =
|
|
4219
|
+
const { format: h, getCurrentLanguage: g } = st(), y = Oe(
|
|
4217
4220
|
(A) => {
|
|
4218
|
-
const j = A.length > 5 &&
|
|
4221
|
+
const j = A.length > 5 && jn(A, g()) || A, Y = h(j, void 0, void 0, {
|
|
4219
4222
|
type: "date"
|
|
4220
4223
|
}), F = typeof j != "string", C = F && j.toISOString().substring(0, 10) || "";
|
|
4221
4224
|
return {
|
|
@@ -4245,7 +4248,7 @@ const Gn = ({
|
|
|
4245
4248
|
};
|
|
4246
4249
|
return /* @__PURE__ */ w.jsxs("div", { children: [
|
|
4247
4250
|
/* @__PURE__ */ w.jsx(
|
|
4248
|
-
|
|
4251
|
+
Te,
|
|
4249
4252
|
{
|
|
4250
4253
|
bindValue: c,
|
|
4251
4254
|
placeholder: e,
|
|
@@ -4259,18 +4262,18 @@ const Gn = ({
|
|
|
4259
4262
|
}
|
|
4260
4263
|
),
|
|
4261
4264
|
i && /* @__PURE__ */ w.jsx(
|
|
4262
|
-
|
|
4265
|
+
Gn,
|
|
4263
4266
|
{
|
|
4264
4267
|
disabledDateRanges: r,
|
|
4265
4268
|
onDateChange: x,
|
|
4266
|
-
initialValue:
|
|
4269
|
+
initialValue: Et(o) && o || "",
|
|
4267
4270
|
targetRef: p
|
|
4268
4271
|
}
|
|
4269
4272
|
)
|
|
4270
4273
|
] });
|
|
4271
|
-
},
|
|
4274
|
+
}, Jn = {
|
|
4272
4275
|
"smp-multipleAutocomplete-container": "_smp-multipleAutocomplete-container_1mtv2_1"
|
|
4273
|
-
},
|
|
4276
|
+
}, Xn = ({
|
|
4274
4277
|
elements: n,
|
|
4275
4278
|
displayMode: e,
|
|
4276
4279
|
minimumChars: t,
|
|
@@ -4295,7 +4298,7 @@ const Gn = ({
|
|
|
4295
4298
|
}
|
|
4296
4299
|
o == null || o(h);
|
|
4297
4300
|
}, f = {
|
|
4298
|
-
container: `${
|
|
4301
|
+
container: `${Jn["smp-multipleAutocomplete-container"]}`
|
|
4299
4302
|
};
|
|
4300
4303
|
return /* @__PURE__ */ w.jsxs("div", { className: f.container, children: [
|
|
4301
4304
|
/* @__PURE__ */ w.jsx(
|
|
@@ -4324,10 +4327,10 @@ const Gn = ({
|
|
|
4324
4327
|
}
|
|
4325
4328
|
)
|
|
4326
4329
|
] });
|
|
4327
|
-
},
|
|
4330
|
+
}, Zn = ({ ...n }) => {
|
|
4328
4331
|
const [e, t] = Q(!1), r = e ? "visibility-off" : "visibility";
|
|
4329
4332
|
return /* @__PURE__ */ w.jsx(
|
|
4330
|
-
|
|
4333
|
+
Te,
|
|
4331
4334
|
{
|
|
4332
4335
|
...n,
|
|
4333
4336
|
inputType: e ? "text" : "password",
|
|
@@ -4336,16 +4339,16 @@ const Gn = ({
|
|
|
4336
4339
|
ariaLabel: "password"
|
|
4337
4340
|
}
|
|
4338
4341
|
);
|
|
4339
|
-
},
|
|
4340
|
-
const [e, t] = Q(n.bindValue), { translate: r } =
|
|
4342
|
+
}, Qn = ({ ...n }) => {
|
|
4343
|
+
const [e, t] = Q(n.bindValue), { translate: r } = st(), s = (i) => {
|
|
4341
4344
|
var a;
|
|
4342
4345
|
i.key === "Enter" && (i.preventDefault(), (a = n.onEnter) == null || a.call(n, e));
|
|
4343
4346
|
};
|
|
4344
4347
|
return /* @__PURE__ */ w.jsx(
|
|
4345
|
-
|
|
4348
|
+
Te,
|
|
4346
4349
|
{
|
|
4347
4350
|
...n,
|
|
4348
|
-
placeholder: n.placeholder ? n.placeholder : r(
|
|
4351
|
+
placeholder: n.placeholder ? n.placeholder : r(wt.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
4349
4352
|
icon: "magnify",
|
|
4350
4353
|
inputType: "search",
|
|
4351
4354
|
bindValue: e,
|
|
@@ -4394,7 +4397,7 @@ const Ke = (n, e, t) => ({
|
|
|
4394
4397
|
bindValue: r,
|
|
4395
4398
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4396
4399
|
}));
|
|
4397
|
-
},
|
|
4400
|
+
}, es = (n, e) => {
|
|
4398
4401
|
const t = new Se(
|
|
4399
4402
|
n.obj,
|
|
4400
4403
|
e.map((s) => s.bindValue)
|
|
@@ -4403,7 +4406,7 @@ const Ke = (n, e, t) => ({
|
|
|
4403
4406
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4404
4407
|
).getLegacyValue();
|
|
4405
4408
|
return Ke(n, t, r);
|
|
4406
|
-
},
|
|
4409
|
+
}, ts = ({
|
|
4407
4410
|
decode: n,
|
|
4408
4411
|
shape: e,
|
|
4409
4412
|
obj: t,
|
|
@@ -4429,7 +4432,7 @@ const Ke = (n, e, t) => ({
|
|
|
4429
4432
|
icon: s,
|
|
4430
4433
|
label: o,
|
|
4431
4434
|
...r
|
|
4432
|
-
}, y = (x, O) =>
|
|
4435
|
+
}, y = (x, O) => kn(t) ? Ke(h, new Qe(t, x).getLegacyValue()) : Ke(h, x, O), E = (x) => Ke(h, new Ze(t, x).getLegacyValue()), R = (x) => es(h, x);
|
|
4433
4436
|
switch (e) {
|
|
4434
4437
|
case ue.AUTOCOMPLETE: {
|
|
4435
4438
|
const x = {
|
|
@@ -4451,7 +4454,7 @@ const Ke = (n, e, t) => ({
|
|
|
4451
4454
|
c == null || c(y(t.k));
|
|
4452
4455
|
}
|
|
4453
4456
|
};
|
|
4454
|
-
return /* @__PURE__ */ w.jsx(
|
|
4457
|
+
return /* @__PURE__ */ w.jsx(rt, { ...x });
|
|
4455
4458
|
}
|
|
4456
4459
|
case ue.COMBOBOX: {
|
|
4457
4460
|
const x = {
|
|
@@ -4462,18 +4465,18 @@ const Ke = (n, e, t) => ({
|
|
|
4462
4465
|
l == null || l(y(O, D));
|
|
4463
4466
|
}
|
|
4464
4467
|
};
|
|
4465
|
-
return /* @__PURE__ */ w.jsx(
|
|
4468
|
+
return /* @__PURE__ */ w.jsx(Bn, { ...x });
|
|
4466
4469
|
}
|
|
4467
4470
|
case ue.CHECKBOX: {
|
|
4468
4471
|
const x = {
|
|
4469
4472
|
...g,
|
|
4470
|
-
bindValue:
|
|
4473
|
+
bindValue: Ze.fromDataObj(t).getValue(),
|
|
4471
4474
|
optionalDisplayValue: n,
|
|
4472
4475
|
onChange: (O) => {
|
|
4473
4476
|
l == null || l(E(O));
|
|
4474
4477
|
}
|
|
4475
4478
|
};
|
|
4476
|
-
return /* @__PURE__ */ w.jsx(
|
|
4479
|
+
return /* @__PURE__ */ w.jsx(Hn, { ...x });
|
|
4477
4480
|
}
|
|
4478
4481
|
case ue.CHIP: {
|
|
4479
4482
|
const x = {
|
|
@@ -4485,12 +4488,12 @@ const Ke = (n, e, t) => ({
|
|
|
4485
4488
|
case ue.DATE: {
|
|
4486
4489
|
const x = {
|
|
4487
4490
|
...g,
|
|
4488
|
-
bindValue:
|
|
4491
|
+
bindValue: Qe.fromDataObj(t).getValue(),
|
|
4489
4492
|
onChange: (O) => {
|
|
4490
4493
|
l == null || l(y(O));
|
|
4491
4494
|
}
|
|
4492
4495
|
};
|
|
4493
|
-
return /* @__PURE__ */ w.jsx(
|
|
4496
|
+
return /* @__PURE__ */ w.jsx(zn, { ...x });
|
|
4494
4497
|
}
|
|
4495
4498
|
case ue.ICON: {
|
|
4496
4499
|
const x = {
|
|
@@ -4511,7 +4514,7 @@ const Ke = (n, e, t) => ({
|
|
|
4511
4514
|
l == null || l(R(O));
|
|
4512
4515
|
}
|
|
4513
4516
|
};
|
|
4514
|
-
return /* @__PURE__ */ w.jsx(
|
|
4517
|
+
return /* @__PURE__ */ w.jsx(Xn, { ...x });
|
|
4515
4518
|
}
|
|
4516
4519
|
case ue.PASSWORD: {
|
|
4517
4520
|
const x = {
|
|
@@ -4521,7 +4524,7 @@ const Ke = (n, e, t) => ({
|
|
|
4521
4524
|
l == null || l(y(O));
|
|
4522
4525
|
}
|
|
4523
4526
|
};
|
|
4524
|
-
return /* @__PURE__ */ w.jsx(
|
|
4527
|
+
return /* @__PURE__ */ w.jsx(Zn, { ...x });
|
|
4525
4528
|
}
|
|
4526
4529
|
case ue.SPOTLIGHT: {
|
|
4527
4530
|
const x = {
|
|
@@ -4531,7 +4534,7 @@ const Ke = (n, e, t) => ({
|
|
|
4531
4534
|
f == null || f(y(O));
|
|
4532
4535
|
}
|
|
4533
4536
|
};
|
|
4534
|
-
return /* @__PURE__ */ w.jsx(
|
|
4537
|
+
return /* @__PURE__ */ w.jsx(Qn, { ...x });
|
|
4535
4538
|
}
|
|
4536
4539
|
case ue.TEXT_FIELD:
|
|
4537
4540
|
case void 0: {
|
|
@@ -4542,7 +4545,7 @@ const Ke = (n, e, t) => ({
|
|
|
4542
4545
|
l == null || l(y(O));
|
|
4543
4546
|
}
|
|
4544
4547
|
};
|
|
4545
|
-
return /* @__PURE__ */ w.jsx(
|
|
4548
|
+
return /* @__PURE__ */ w.jsx(Te, { ...x });
|
|
4546
4549
|
}
|
|
4547
4550
|
}
|
|
4548
4551
|
}, fr = {
|
|
@@ -4551,7 +4554,7 @@ const Ke = (n, e, t) => ({
|
|
|
4551
4554
|
"smp-field-position-right": "_smp-field-position-right_nnmjb_10",
|
|
4552
4555
|
"smp-field-position-top": "_smp-field-position-top_nnmjb_14",
|
|
4553
4556
|
"smp-field-position-bottom": "_smp-field-position-bottom_nnmjb_18"
|
|
4554
|
-
},
|
|
4557
|
+
}, as = ({
|
|
4555
4558
|
data: n,
|
|
4556
4559
|
Type: e,
|
|
4557
4560
|
ShowSubmit: t = !1,
|
|
@@ -4567,13 +4570,13 @@ const Ke = (n, e, t) => ({
|
|
|
4567
4570
|
he(() => {
|
|
4568
4571
|
u(() => {
|
|
4569
4572
|
const y = { ...n };
|
|
4570
|
-
return e && (y.shape = e), s && (y.obj =
|
|
4573
|
+
return e && (y.shape = e), s && (y.obj = $n(s)), y;
|
|
4571
4574
|
});
|
|
4572
4575
|
}, [n, s, e]);
|
|
4573
|
-
const p =
|
|
4576
|
+
const p = je(t) ? fr[`smp-field-position-${ar(r)}`] : "", h = {
|
|
4574
4577
|
container: `${fr["smp-field-container"]} ${p}`
|
|
4575
4578
|
}, g = () => {
|
|
4576
|
-
|
|
4579
|
+
je(t) || o == null || o(f);
|
|
4577
4580
|
};
|
|
4578
4581
|
if (f)
|
|
4579
4582
|
return /* @__PURE__ */ w.jsxs("div", { className: h.container, children: [
|
|
@@ -4587,7 +4590,7 @@ const Ke = (n, e, t) => ({
|
|
|
4587
4590
|
font: "var(--smp-fontLabel-base)"
|
|
4588
4591
|
},
|
|
4589
4592
|
children: /* @__PURE__ */ w.jsx(
|
|
4590
|
-
|
|
4593
|
+
ts,
|
|
4591
4594
|
{
|
|
4592
4595
|
...f,
|
|
4593
4596
|
onChange: u,
|
|
@@ -4600,20 +4603,20 @@ const Ke = (n, e, t) => ({
|
|
|
4600
4603
|
)
|
|
4601
4604
|
}
|
|
4602
4605
|
),
|
|
4603
|
-
|
|
4604
|
-
/* @__PURE__ */ w.jsx(
|
|
4606
|
+
je(t) && //TODO: translation
|
|
4607
|
+
/* @__PURE__ */ w.jsx(rt, { bindValue: "Confirm", onClick: () => l == null ? void 0 : l(f) })
|
|
4605
4608
|
] });
|
|
4606
4609
|
};
|
|
4607
4610
|
export {
|
|
4608
4611
|
Sr as Autocomplete,
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4612
|
+
rt as Button,
|
|
4613
|
+
Hn as Checkbox,
|
|
4614
|
+
Bn as Combobox,
|
|
4615
|
+
is as DashList,
|
|
4616
|
+
zn as DatePicker,
|
|
4617
|
+
as as Field,
|
|
4615
4618
|
ve as Icon,
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
+
Zn as Password,
|
|
4620
|
+
Te as Textfield,
|
|
4621
|
+
ss as configurePaths
|
|
4619
4622
|
};
|