@sme.up/ketchup2 2.0.0-SNAPSHOT-20250731075301 → 2.0.0-SNAPSHOT-20250801085326
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/ketchup2.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as et from "react";
|
|
2
|
-
import pt, { useState as q, useRef as ce, useEffect as re, useCallback as oe, useLayoutEffect as
|
|
3
|
-
import { createPortal as
|
|
2
|
+
import pt, { useState as q, useRef as ce, useEffect as re, useCallback as oe, useLayoutEffect as dn, useId as De, useMemo as Ke, createElement as fn } from "react";
|
|
3
|
+
import { createPortal as pn } from "react-dom";
|
|
4
4
|
var tt = { exports: {} }, Ge = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,7 +12,7 @@ var tt = { exports: {} }, Ge = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Jt;
|
|
15
|
-
function
|
|
15
|
+
function hn() {
|
|
16
16
|
if (Jt) return Ge;
|
|
17
17
|
Jt = 1;
|
|
18
18
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
@@ -44,7 +44,7 @@ var qe = {};
|
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
45
|
*/
|
|
46
46
|
var Xt;
|
|
47
|
-
function
|
|
47
|
+
function mn() {
|
|
48
48
|
return Xt || (Xt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
49
|
function t(m) {
|
|
50
50
|
if (m == null) return null;
|
|
@@ -54,7 +54,7 @@ function hn() {
|
|
|
54
54
|
switch (m) {
|
|
55
55
|
case v:
|
|
56
56
|
return "Fragment";
|
|
57
|
-
case
|
|
57
|
+
case C:
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case w:
|
|
60
60
|
return "StrictMode";
|
|
@@ -71,7 +71,7 @@ function hn() {
|
|
|
71
71
|
), m.$$typeof) {
|
|
72
72
|
case p:
|
|
73
73
|
return "Portal";
|
|
74
|
-
case
|
|
74
|
+
case E:
|
|
75
75
|
return (m.displayName || "Context") + ".Provider";
|
|
76
76
|
case S:
|
|
77
77
|
return (m._context.displayName || "Context") + ".Consumer";
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function u(m) {
|
|
238
238
|
typeof m == "object" && m !== null && m.$$typeof === g && m._store && (m._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var f = pt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"),
|
|
240
|
+
var f = pt, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), R = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, O = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
f = {
|
|
@@ -277,10 +277,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
}()), qe;
|
|
278
278
|
}
|
|
279
279
|
var Qt;
|
|
280
|
-
function
|
|
281
|
-
return Qt || (Qt = 1, process.env.NODE_ENV === "production" ? tt.exports =
|
|
280
|
+
function gn() {
|
|
281
|
+
return Qt || (Qt = 1, process.env.NODE_ENV === "production" ? tt.exports = hn() : tt.exports = mn()), tt.exports;
|
|
282
282
|
}
|
|
283
|
-
var h =
|
|
283
|
+
var h = gn();
|
|
284
284
|
const $e = ({ label: t, disabled: e, htmlFor: r }) => {
|
|
285
285
|
const n = {
|
|
286
286
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
@@ -300,7 +300,7 @@ const $e = ({ label: t, disabled: e, htmlFor: r }) => {
|
|
|
300
300
|
"smp-layout-section-with-title": "_smp-layout-section-with-title_wqmhx_63",
|
|
301
301
|
"smp-layout-section-title": "_smp-layout-section-title_wqmhx_69",
|
|
302
302
|
"smp-layout-inline": "_smp-layout-inline_wqmhx_75"
|
|
303
|
-
},
|
|
303
|
+
}, bn = (t, e) => {
|
|
304
304
|
const r = [];
|
|
305
305
|
for (let n = 0; n < t.length; n += e)
|
|
306
306
|
r.push(t.slice(n, n + e));
|
|
@@ -313,7 +313,7 @@ const $e = ({ label: t, disabled: e, htmlFor: r }) => {
|
|
|
313
313
|
content: r.content
|
|
314
314
|
};
|
|
315
315
|
let n = r.sections, s = r.content;
|
|
316
|
-
return r.content?.length && r.columns && +r.columns > 1 && (n =
|
|
316
|
+
return r.content?.length && r.columns && +r.columns > 1 && (n = bn(
|
|
317
317
|
r.content.filter((o) => e.includes(o.id)),
|
|
318
318
|
+r.columns
|
|
319
319
|
).map(
|
|
@@ -337,7 +337,7 @@ const $e = ({ label: t, disabled: e, htmlFor: r }) => {
|
|
|
337
337
|
[e]: r
|
|
338
338
|
};
|
|
339
339
|
}, er = (t) => t.some((e) => e.dim && !e.dim.endsWith("%"));
|
|
340
|
-
function
|
|
340
|
+
function yn(t, e) {
|
|
341
341
|
if (t == null) return {};
|
|
342
342
|
var r = {};
|
|
343
343
|
for (var n in t) if ({}.hasOwnProperty.call(t, n)) {
|
|
@@ -360,7 +360,7 @@ function It(t, e) {
|
|
|
360
360
|
return r.__proto__ = n, r;
|
|
361
361
|
}, It(t, e);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function vn(t, e) {
|
|
364
364
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, It(t, e);
|
|
365
365
|
}
|
|
366
366
|
function Tt(t, e, r) {
|
|
@@ -375,7 +375,7 @@ var rt = {};
|
|
|
375
375
|
* MIT Licensed
|
|
376
376
|
*/
|
|
377
377
|
var tr;
|
|
378
|
-
function
|
|
378
|
+
function xn() {
|
|
379
379
|
if (tr) return rt;
|
|
380
380
|
tr = 1;
|
|
381
381
|
var t = /; *([!#$%&'*+.^_`|~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]+$/, r = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
@@ -388,8 +388,8 @@ function vn() {
|
|
|
388
388
|
throw new TypeError("invalid type");
|
|
389
389
|
var p = g;
|
|
390
390
|
if (f && typeof f == "object")
|
|
391
|
-
for (var v, w = Object.keys(f).sort(),
|
|
392
|
-
if (v = w[
|
|
391
|
+
for (var v, w = Object.keys(f).sort(), C = 0; C < w.length; C++) {
|
|
392
|
+
if (v = w[C], !r.test(v))
|
|
393
393
|
throw new TypeError("invalid parameter name");
|
|
394
394
|
p += "; " + v + "=" + c(f[v]);
|
|
395
395
|
}
|
|
@@ -406,11 +406,11 @@ function vn() {
|
|
|
406
406
|
throw new TypeError("invalid media type");
|
|
407
407
|
var v = new d(p.toLowerCase());
|
|
408
408
|
if (g !== -1) {
|
|
409
|
-
var w,
|
|
410
|
-
for (t.lastIndex = g;
|
|
411
|
-
if (
|
|
409
|
+
var w, C, S;
|
|
410
|
+
for (t.lastIndex = g; C = t.exec(f); ) {
|
|
411
|
+
if (C.index !== g)
|
|
412
412
|
throw new TypeError("invalid parameter format");
|
|
413
|
-
g +=
|
|
413
|
+
g += C[0].length, w = C[1].toLowerCase(), S = C[2], S.charCodeAt(0) === 34 && (S = S.slice(1, -1), S.indexOf("\\") !== -1 && (S = S.replace(n, "$1"))), v.parameters[w] = S;
|
|
414
414
|
}
|
|
415
415
|
if (g !== f.length)
|
|
416
416
|
throw new TypeError("invalid parameter format");
|
|
@@ -436,7 +436,7 @@ function vn() {
|
|
|
436
436
|
}
|
|
437
437
|
return rt;
|
|
438
438
|
}
|
|
439
|
-
var
|
|
439
|
+
var wn = xn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
440
440
|
return e.cloneNode(!0);
|
|
441
441
|
}, rr = function() {
|
|
442
442
|
return window.location.protocol === "file:";
|
|
@@ -448,7 +448,7 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
448
448
|
var a = s.getResponseHeader("Content-Type");
|
|
449
449
|
if (!a)
|
|
450
450
|
throw new Error("Content type not found");
|
|
451
|
-
var o =
|
|
451
|
+
var o = wn.parse(a).type;
|
|
452
452
|
if (!(o === "image/svg+xml" || o === "text/plain"))
|
|
453
453
|
throw new Error("Invalid content type: ".concat(o));
|
|
454
454
|
}
|
|
@@ -469,7 +469,7 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
469
469
|
}, s.open("GET", e), s.withCredentials = r, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
470
470
|
}, je = {}, nr = function(e, r) {
|
|
471
471
|
je[e] = je[e] || [], je[e].push(r);
|
|
472
|
-
},
|
|
472
|
+
}, Sn = function(e) {
|
|
473
473
|
for (var r = function(o, i) {
|
|
474
474
|
setTimeout(function() {
|
|
475
475
|
if (Array.isArray(je[e])) {
|
|
@@ -479,7 +479,7 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
479
479
|
}, 0);
|
|
480
480
|
}, n = 0, s = je[e].length; n < s; n++)
|
|
481
481
|
r(n);
|
|
482
|
-
},
|
|
482
|
+
}, En = function(e, r, n) {
|
|
483
483
|
if (Me.has(e)) {
|
|
484
484
|
var s = Me.get(e);
|
|
485
485
|
if (s === void 0) {
|
|
@@ -493,16 +493,16 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
493
493
|
}
|
|
494
494
|
Me.set(e, void 0), nr(e, n), Yr(e, r, function(a, o) {
|
|
495
495
|
var i;
|
|
496
|
-
a ? Me.set(e, a) : ((i = o.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Me.set(e, o.responseXML.documentElement),
|
|
496
|
+
a ? Me.set(e, a) : ((i = o.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && Me.set(e, o.responseXML.documentElement), Sn(e);
|
|
497
497
|
});
|
|
498
|
-
},
|
|
498
|
+
}, Cn = function(e, r, n) {
|
|
499
499
|
Yr(e, r, function(s, a) {
|
|
500
500
|
var o;
|
|
501
501
|
s ? n(s) : ((o = a.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
502
502
|
});
|
|
503
|
-
},
|
|
504
|
-
return ++
|
|
505
|
-
}, Se = [], sr = {},
|
|
503
|
+
}, Tn = 0, On = function() {
|
|
504
|
+
return ++Tn;
|
|
505
|
+
}, Se = [], sr = {}, _n = "http://www.w3.org/2000/svg", Ot = "http://www.w3.org/1999/xlink", ar = function(e, r, n, s, a, o, i) {
|
|
506
506
|
var l = e.getAttribute("data-src") || e.getAttribute("src");
|
|
507
507
|
if (!l) {
|
|
508
508
|
i(new Error("Invalid data-src or src attribute"));
|
|
@@ -513,7 +513,7 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
515
|
Se.push(e), e.setAttribute("src", "");
|
|
516
|
-
var c = s ?
|
|
516
|
+
var c = s ? En : Cn;
|
|
517
517
|
c(l, a, function(d, u) {
|
|
518
518
|
if (!u) {
|
|
519
519
|
Se.splice(Se.indexOf(e), 1), e = null, i(d);
|
|
@@ -529,15 +529,15 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
529
529
|
v && u.setAttribute("height", v);
|
|
530
530
|
var w = Array.from(new Set(Tt(Tt(Tt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
531
531
|
u.setAttribute("class", w);
|
|
532
|
-
var
|
|
533
|
-
|
|
532
|
+
var C = e.getAttribute("style");
|
|
533
|
+
C && u.setAttribute("style", C), u.setAttribute("data-src", l);
|
|
534
534
|
var S = [].filter.call(e.attributes, function(J) {
|
|
535
535
|
return /^data-\w[\w-]*$/.test(J.name);
|
|
536
536
|
});
|
|
537
537
|
if (Array.prototype.forEach.call(S, function(J) {
|
|
538
538
|
J.name && J.value && u.setAttribute(J.name, J.value);
|
|
539
539
|
}), n) {
|
|
540
|
-
var
|
|
540
|
+
var E = {
|
|
541
541
|
clipPath: ["clip-path"],
|
|
542
542
|
"color-profile": ["color-profile"],
|
|
543
543
|
cursor: ["cursor"],
|
|
@@ -549,10 +549,10 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
549
549
|
pattern: ["fill", "stroke"],
|
|
550
550
|
radialGradient: ["fill", "stroke"]
|
|
551
551
|
}, y, b, j, L, V;
|
|
552
|
-
Object.keys(
|
|
553
|
-
y = J, j =
|
|
552
|
+
Object.keys(E).forEach(function(J) {
|
|
553
|
+
y = J, j = E[J], b = u.querySelectorAll(y + "[id]");
|
|
554
554
|
for (var N = function(D, $) {
|
|
555
|
-
L = b[D].id, V = L + "-" +
|
|
555
|
+
L = b[D].id, V = L + "-" + On();
|
|
556
556
|
var A;
|
|
557
557
|
Array.prototype.forEach.call(j, function(G) {
|
|
558
558
|
A = u.querySelectorAll("[" + G + '*="' + L + '"]');
|
|
@@ -583,23 +583,23 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
583
583
|
var X = u.querySelectorAll("style");
|
|
584
584
|
if (Array.prototype.forEach.call(X, function(J) {
|
|
585
585
|
J.textContent += "";
|
|
586
|
-
}), u.setAttribute("xmlns",
|
|
586
|
+
}), u.setAttribute("xmlns", _n), u.setAttribute("xmlns:xlink", Ot), o(u), !e.parentNode) {
|
|
587
587
|
Se.splice(Se.indexOf(e), 1), e = null, i(new Error("Parent node is null"));
|
|
588
588
|
return;
|
|
589
589
|
}
|
|
590
590
|
e.parentNode.replaceChild(u, e), Se.splice(Se.indexOf(e), 1), e = null, i(null, u);
|
|
591
591
|
});
|
|
592
|
-
},
|
|
592
|
+
}, jn = function(e, r) {
|
|
593
593
|
var n = r === void 0 ? {} : r, s = n.afterAll, a = s === void 0 ? function() {
|
|
594
594
|
} : s, o = n.afterEach, i = o === void 0 ? function() {
|
|
595
595
|
} : o, l = n.beforeEach, c = l === void 0 ? function() {
|
|
596
|
-
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p, w = n.renumerateIRIElements,
|
|
596
|
+
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, f = n.evalScripts, g = f === void 0 ? "never" : f, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p, w = n.renumerateIRIElements, C = w === void 0 ? !0 : w;
|
|
597
597
|
if (e && "length" in e)
|
|
598
|
-
for (var S = 0,
|
|
599
|
-
ar(e[
|
|
598
|
+
for (var S = 0, E = 0, y = e.length; E < y; E++)
|
|
599
|
+
ar(e[E], g, C, u, v, c, function(b, j) {
|
|
600
600
|
i(b, j), e && "length" in e && e.length === ++S && a(S);
|
|
601
601
|
});
|
|
602
|
-
else e ? ar(e, g,
|
|
602
|
+
else e ? ar(e, g, C, u, v, c, function(b, j) {
|
|
603
603
|
i(b, j), a(1), e = null;
|
|
604
604
|
}) : a(0);
|
|
605
605
|
}, nt = { exports: {} }, st = { exports: {} }, ne = {};
|
|
@@ -612,11 +612,11 @@ var xn = vn(), Me = /* @__PURE__ */ new Map(), Wr = function(e) {
|
|
|
612
612
|
* LICENSE file in the root directory of this source tree.
|
|
613
613
|
*/
|
|
614
614
|
var or;
|
|
615
|
-
function
|
|
615
|
+
function Rn() {
|
|
616
616
|
if (or) return ne;
|
|
617
617
|
or = 1;
|
|
618
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117,
|
|
619
|
-
function
|
|
618
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
|
|
619
|
+
function E(b) {
|
|
620
620
|
if (typeof b == "object" && b !== null) {
|
|
621
621
|
var j = b.$$typeof;
|
|
622
622
|
switch (j) {
|
|
@@ -647,35 +647,35 @@ function jn() {
|
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
function y(b) {
|
|
650
|
-
return
|
|
650
|
+
return E(b) === c;
|
|
651
651
|
}
|
|
652
652
|
return ne.AsyncMode = l, ne.ConcurrentMode = c, ne.ContextConsumer = i, ne.ContextProvider = o, ne.Element = e, ne.ForwardRef = d, ne.Fragment = n, ne.Lazy = p, ne.Memo = g, ne.Portal = r, ne.Profiler = a, ne.StrictMode = s, ne.Suspense = u, ne.isAsyncMode = function(b) {
|
|
653
|
-
return y(b) ||
|
|
653
|
+
return y(b) || E(b) === l;
|
|
654
654
|
}, ne.isConcurrentMode = y, ne.isContextConsumer = function(b) {
|
|
655
|
-
return
|
|
655
|
+
return E(b) === i;
|
|
656
656
|
}, ne.isContextProvider = function(b) {
|
|
657
|
-
return
|
|
657
|
+
return E(b) === o;
|
|
658
658
|
}, ne.isElement = function(b) {
|
|
659
659
|
return typeof b == "object" && b !== null && b.$$typeof === e;
|
|
660
660
|
}, ne.isForwardRef = function(b) {
|
|
661
|
-
return
|
|
661
|
+
return E(b) === d;
|
|
662
662
|
}, ne.isFragment = function(b) {
|
|
663
|
-
return
|
|
663
|
+
return E(b) === n;
|
|
664
664
|
}, ne.isLazy = function(b) {
|
|
665
|
-
return
|
|
665
|
+
return E(b) === p;
|
|
666
666
|
}, ne.isMemo = function(b) {
|
|
667
|
-
return
|
|
667
|
+
return E(b) === g;
|
|
668
668
|
}, ne.isPortal = function(b) {
|
|
669
|
-
return
|
|
669
|
+
return E(b) === r;
|
|
670
670
|
}, ne.isProfiler = function(b) {
|
|
671
|
-
return
|
|
671
|
+
return E(b) === a;
|
|
672
672
|
}, ne.isStrictMode = function(b) {
|
|
673
|
-
return
|
|
673
|
+
return E(b) === s;
|
|
674
674
|
}, ne.isSuspense = function(b) {
|
|
675
|
-
return
|
|
675
|
+
return E(b) === u;
|
|
676
676
|
}, ne.isValidElementType = function(b) {
|
|
677
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === f || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === g || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === w || b.$$typeof ===
|
|
678
|
-
}, ne.typeOf =
|
|
677
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === f || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === g || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === w || b.$$typeof === C || b.$$typeof === S || b.$$typeof === v);
|
|
678
|
+
}, ne.typeOf = E, ne;
|
|
679
679
|
}
|
|
680
680
|
var se = {};
|
|
681
681
|
/** @license React v16.13.1
|
|
@@ -687,12 +687,12 @@ var se = {};
|
|
|
687
687
|
* LICENSE file in the root directory of this source tree.
|
|
688
688
|
*/
|
|
689
689
|
var ir;
|
|
690
|
-
function
|
|
690
|
+
function Dn() {
|
|
691
691
|
return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
|
|
692
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117,
|
|
693
|
-
function
|
|
692
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119;
|
|
693
|
+
function E(F) {
|
|
694
694
|
return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
695
|
-
F === n || F === c || F === a || F === s || F === u || F === f || typeof F == "object" && F !== null && (F.$$typeof === p || F.$$typeof === g || F.$$typeof === o || F.$$typeof === i || F.$$typeof === d || F.$$typeof === w || F.$$typeof ===
|
|
695
|
+
F === n || F === c || F === a || F === s || F === u || F === f || typeof F == "object" && F !== null && (F.$$typeof === p || F.$$typeof === g || F.$$typeof === o || F.$$typeof === i || F.$$typeof === d || F.$$typeof === w || F.$$typeof === C || F.$$typeof === S || F.$$typeof === v);
|
|
696
696
|
}
|
|
697
697
|
function y(F) {
|
|
698
698
|
if (typeof F == "object" && F !== null) {
|
|
@@ -766,12 +766,12 @@ function Rn() {
|
|
|
766
766
|
function ie(F) {
|
|
767
767
|
return y(F) === u;
|
|
768
768
|
}
|
|
769
|
-
se.AsyncMode = b, se.ConcurrentMode = j, se.ContextConsumer = L, se.ContextProvider = V, se.Element = I, se.ForwardRef = P, se.Fragment = R, se.Lazy = T, se.Memo = O, se.Portal = _, se.Profiler = M, se.StrictMode = H, se.Suspense = X, se.isAsyncMode = N, se.isConcurrentMode = m, se.isContextConsumer = x, se.isContextProvider = k, se.isElement = D, se.isForwardRef = $, se.isFragment = A, se.isLazy = Y, se.isMemo = B, se.isPortal = W, se.isProfiler = Z, se.isStrictMode = z, se.isSuspense = ie, se.isValidElementType =
|
|
769
|
+
se.AsyncMode = b, se.ConcurrentMode = j, se.ContextConsumer = L, se.ContextProvider = V, se.Element = I, se.ForwardRef = P, se.Fragment = R, se.Lazy = T, se.Memo = O, se.Portal = _, se.Profiler = M, se.StrictMode = H, se.Suspense = X, se.isAsyncMode = N, se.isConcurrentMode = m, se.isContextConsumer = x, se.isContextProvider = k, se.isElement = D, se.isForwardRef = $, se.isFragment = A, se.isLazy = Y, se.isMemo = B, se.isPortal = W, se.isProfiler = Z, se.isStrictMode = z, se.isSuspense = ie, se.isValidElementType = E, se.typeOf = y;
|
|
770
770
|
}()), se;
|
|
771
771
|
}
|
|
772
772
|
var lr;
|
|
773
773
|
function Gr() {
|
|
774
|
-
return lr || (lr = 1, process.env.NODE_ENV === "production" ? st.exports =
|
|
774
|
+
return lr || (lr = 1, process.env.NODE_ENV === "production" ? st.exports = Rn() : st.exports = Dn()), st.exports;
|
|
775
775
|
}
|
|
776
776
|
/*
|
|
777
777
|
object-assign
|
|
@@ -779,7 +779,7 @@ object-assign
|
|
|
779
779
|
@license MIT
|
|
780
780
|
*/
|
|
781
781
|
var _t, cr;
|
|
782
|
-
function
|
|
782
|
+
function kn() {
|
|
783
783
|
if (cr) return _t;
|
|
784
784
|
cr = 1;
|
|
785
785
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
@@ -836,7 +836,7 @@ function qr() {
|
|
|
836
836
|
return dr || (dr = 1, Rt = Function.call.bind(Object.prototype.hasOwnProperty)), Rt;
|
|
837
837
|
}
|
|
838
838
|
var Dt, fr;
|
|
839
|
-
function
|
|
839
|
+
function $n() {
|
|
840
840
|
if (fr) return Dt;
|
|
841
841
|
fr = 1;
|
|
842
842
|
var t = function() {
|
|
@@ -885,10 +885,10 @@ function kn() {
|
|
|
885
885
|
}, Dt = s, Dt;
|
|
886
886
|
}
|
|
887
887
|
var kt, pr;
|
|
888
|
-
function
|
|
888
|
+
function Nn() {
|
|
889
889
|
if (pr) return kt;
|
|
890
890
|
pr = 1;
|
|
891
|
-
var t = Gr(), e =
|
|
891
|
+
var t = Gr(), e = kn(), r = /* @__PURE__ */ Wt(), n = /* @__PURE__ */ qr(), s = /* @__PURE__ */ $n(), a = function() {
|
|
892
892
|
};
|
|
893
893
|
process.env.NODE_ENV !== "production" && (a = function(i) {
|
|
894
894
|
var l = "Warning: " + i;
|
|
@@ -909,16 +909,16 @@ function $n() {
|
|
|
909
909
|
return x;
|
|
910
910
|
}
|
|
911
911
|
var f = "<<anonymous>>", g = {
|
|
912
|
-
array:
|
|
913
|
-
bigint:
|
|
914
|
-
bool:
|
|
915
|
-
func:
|
|
916
|
-
number:
|
|
917
|
-
object:
|
|
918
|
-
string:
|
|
919
|
-
symbol:
|
|
912
|
+
array: C("array"),
|
|
913
|
+
bigint: C("bigint"),
|
|
914
|
+
bool: C("boolean"),
|
|
915
|
+
func: C("function"),
|
|
916
|
+
number: C("number"),
|
|
917
|
+
object: C("object"),
|
|
918
|
+
string: C("string"),
|
|
919
|
+
symbol: C("symbol"),
|
|
920
920
|
any: S(),
|
|
921
|
-
arrayOf:
|
|
921
|
+
arrayOf: E,
|
|
922
922
|
element: y(),
|
|
923
923
|
elementType: b(),
|
|
924
924
|
instanceOf: j,
|
|
@@ -959,7 +959,7 @@ function $n() {
|
|
|
959
959
|
var $ = D.bind(null, !1);
|
|
960
960
|
return $.isRequired = D.bind(null, !0), $;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function C(m) {
|
|
963
963
|
function x(k, D, $, A, Y, B) {
|
|
964
964
|
var W = k[D], Z = H(W);
|
|
965
965
|
if (Z !== m) {
|
|
@@ -976,7 +976,7 @@ function $n() {
|
|
|
976
976
|
function S() {
|
|
977
977
|
return w(o);
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function E(m) {
|
|
980
980
|
function x(k, D, $, A, Y) {
|
|
981
981
|
if (typeof m != "function")
|
|
982
982
|
return new v("Property `" + Y + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -1206,7 +1206,7 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1206
1206
|
}, kt;
|
|
1207
1207
|
}
|
|
1208
1208
|
var $t, hr;
|
|
1209
|
-
function
|
|
1209
|
+
function Ln() {
|
|
1210
1210
|
if (hr) return $t;
|
|
1211
1211
|
hr = 1;
|
|
1212
1212
|
var t = /* @__PURE__ */ Wt();
|
|
@@ -1254,19 +1254,19 @@ function Nn() {
|
|
|
1254
1254
|
}, $t;
|
|
1255
1255
|
}
|
|
1256
1256
|
var mr;
|
|
1257
|
-
function
|
|
1257
|
+
function An() {
|
|
1258
1258
|
if (mr) return nt.exports;
|
|
1259
1259
|
if (mr = 1, process.env.NODE_ENV !== "production") {
|
|
1260
1260
|
var t = Gr(), e = !0;
|
|
1261
|
-
nt.exports = /* @__PURE__ */
|
|
1261
|
+
nt.exports = /* @__PURE__ */ Nn()(t.isElement, e);
|
|
1262
1262
|
} else
|
|
1263
|
-
nt.exports = /* @__PURE__ */
|
|
1263
|
+
nt.exports = /* @__PURE__ */ Ln()();
|
|
1264
1264
|
return nt.exports;
|
|
1265
1265
|
}
|
|
1266
|
-
var pe = /* @__PURE__ */
|
|
1266
|
+
var pe = /* @__PURE__ */ An(), In = function(e) {
|
|
1267
1267
|
var r = e?.ownerDocument || document;
|
|
1268
1268
|
return r.defaultView || window;
|
|
1269
|
-
},
|
|
1269
|
+
}, Pn = function(e, r) {
|
|
1270
1270
|
for (var n in e)
|
|
1271
1271
|
if (!(n in r))
|
|
1272
1272
|
return !0;
|
|
@@ -1274,7 +1274,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1274
1274
|
if (e[s] !== r[s])
|
|
1275
1275
|
return !0;
|
|
1276
1276
|
return !1;
|
|
1277
|
-
},
|
|
1277
|
+
}, Fn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], at = "http://www.w3.org/2000/svg", gr = "http://www.w3.org/1999/xlink", Yt = /* @__PURE__ */ function(t) {
|
|
1278
1278
|
function e() {
|
|
1279
1279
|
for (var n, s = arguments.length, a = new Array(s), o = 0; o < s; o++)
|
|
1280
1280
|
a[o] = arguments[o];
|
|
@@ -1285,14 +1285,14 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1285
1285
|
n.reactWrapper = i;
|
|
1286
1286
|
}, n;
|
|
1287
1287
|
}
|
|
1288
|
-
|
|
1288
|
+
vn(e, t);
|
|
1289
1289
|
var r = e.prototype;
|
|
1290
1290
|
return r.renderSVG = function() {
|
|
1291
1291
|
var s = this;
|
|
1292
|
-
if (this.reactWrapper instanceof
|
|
1293
|
-
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection, w = this.props.wrapper,
|
|
1294
|
-
w === "svg" ? (
|
|
1295
|
-
var
|
|
1292
|
+
if (this.reactWrapper instanceof In(this.reactWrapper).Node) {
|
|
1293
|
+
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection, w = this.props.wrapper, C, S;
|
|
1294
|
+
w === "svg" ? (C = document.createElementNS(at, w), C.setAttribute("xmlns", at), C.setAttribute("xmlns:xlink", gr), S = document.createElementNS(at, w)) : (C = document.createElement(w), S = document.createElement(w)), C.appendChild(S), S.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(C);
|
|
1295
|
+
var E = function(L) {
|
|
1296
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1297
1297
|
g(L);
|
|
1298
1298
|
return;
|
|
@@ -1307,7 +1307,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1307
1307
|
});
|
|
1308
1308
|
}, y = function(L, V) {
|
|
1309
1309
|
if (L) {
|
|
1310
|
-
|
|
1310
|
+
E(L);
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
s._isMounted && s.setState(function() {
|
|
@@ -1318,7 +1318,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1318
1318
|
try {
|
|
1319
1319
|
v(V);
|
|
1320
1320
|
} catch (I) {
|
|
1321
|
-
|
|
1321
|
+
E(I);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
1324
|
}, b = function(L) {
|
|
@@ -1337,10 +1337,10 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1337
1337
|
try {
|
|
1338
1338
|
p(L);
|
|
1339
1339
|
} catch (T) {
|
|
1340
|
-
|
|
1340
|
+
E(T);
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
|
-
|
|
1343
|
+
jn(S, {
|
|
1344
1344
|
afterEach: y,
|
|
1345
1345
|
beforeEach: b,
|
|
1346
1346
|
cacheRequests: f,
|
|
@@ -1356,7 +1356,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1356
1356
|
this._isMounted = !0, this.renderSVG();
|
|
1357
1357
|
}, r.componentDidUpdate = function(s) {
|
|
1358
1358
|
var a = this;
|
|
1359
|
-
|
|
1359
|
+
Pn(ht({}, s), this.props) && this.setState(function() {
|
|
1360
1360
|
return a.initialState;
|
|
1361
1361
|
}, function() {
|
|
1362
1362
|
a.removeSVG(), a.renderSVG();
|
|
@@ -1370,7 +1370,7 @@ var pe = /* @__PURE__ */ Ln(), An = function(e) {
|
|
|
1370
1370
|
s.httpRequestWithCredentials;
|
|
1371
1371
|
var o = s.loading;
|
|
1372
1372
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1373
|
-
var i = s.wrapper, l =
|
|
1373
|
+
var i = s.wrapper, l = yn(s, Fn), c = i;
|
|
1374
1374
|
return /* @__PURE__ */ et.createElement(c, ht({}, l, {
|
|
1375
1375
|
ref: this.refCallback
|
|
1376
1376
|
}, i === "svg" ? {
|
|
@@ -1415,9 +1415,9 @@ let Pt = {
|
|
|
1415
1415
|
assets: "/"
|
|
1416
1416
|
// Default for storybook isolation development
|
|
1417
1417
|
};
|
|
1418
|
-
const
|
|
1418
|
+
const ka = (t) => {
|
|
1419
1419
|
Pt = { ...Pt, ...t };
|
|
1420
|
-
},
|
|
1420
|
+
}, Mn = (t) => {
|
|
1421
1421
|
const e = `${Pt.assets}/${t}`.replace(/\/+/g, "/");
|
|
1422
1422
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1423
1423
|
}, de = pt.memo(
|
|
@@ -1437,14 +1437,14 @@ const Da = (t) => {
|
|
|
1437
1437
|
tabIndex: f,
|
|
1438
1438
|
link: g
|
|
1439
1439
|
}) => {
|
|
1440
|
-
const [p, v] = q(!1), w = (T) => T?.toLowerCase().endsWith(".svg") || !T?.includes("/"),
|
|
1440
|
+
const [p, v] = q(!1), w = (T) => T?.toLowerCase().endsWith(".svg") || !T?.includes("/"), C = (T) => T?.startsWith("http") || T?.startsWith("/"), S = {
|
|
1441
1441
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1442
1442
|
svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
|
|
1443
|
-
},
|
|
1443
|
+
}, E = (T) => {
|
|
1444
1444
|
!a && c && l && l(T);
|
|
1445
1445
|
}, y = (T) => {
|
|
1446
|
-
!a && c && (T.key === "Enter" || T.key === " ") && (T.preventDefault(),
|
|
1447
|
-
}, b = p ? n : t, j = w(b), V =
|
|
1446
|
+
!a && c && (T.key === "Enter" || T.key === " ") && (T.preventDefault(), E(T));
|
|
1447
|
+
}, b = p ? n : t, j = w(b), V = C(b) ? b : Mn(`assets/svg/${b}`), I = () => /* @__PURE__ */ h.jsx(
|
|
1448
1448
|
Yt,
|
|
1449
1449
|
{
|
|
1450
1450
|
src: V,
|
|
@@ -1457,7 +1457,7 @@ const Da = (t) => {
|
|
|
1457
1457
|
fill: s,
|
|
1458
1458
|
"aria-disabled": a,
|
|
1459
1459
|
className: S.svg,
|
|
1460
|
-
onClick:
|
|
1460
|
+
onClick: E,
|
|
1461
1461
|
onKeyDown: y,
|
|
1462
1462
|
tabIndex: f
|
|
1463
1463
|
}
|
|
@@ -1471,11 +1471,11 @@ const Da = (t) => {
|
|
|
1471
1471
|
height: r || "auto",
|
|
1472
1472
|
alt: u,
|
|
1473
1473
|
onError: () => v(!0),
|
|
1474
|
-
onClick:
|
|
1474
|
+
onClick: E,
|
|
1475
1475
|
className: S.img,
|
|
1476
1476
|
title: u,
|
|
1477
1477
|
onKeyDown: (T) => {
|
|
1478
|
-
(T.key === "Enter" || T.key === " ") &&
|
|
1478
|
+
(T.key === "Enter" || T.key === " ") && E(T);
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
)
|
|
@@ -1513,18 +1513,18 @@ const Da = (t) => {
|
|
|
1513
1513
|
title: p,
|
|
1514
1514
|
optionalDisplayValue: v,
|
|
1515
1515
|
squared: w = !1,
|
|
1516
|
-
submit:
|
|
1516
|
+
submit: C = !1,
|
|
1517
1517
|
active: S = !1,
|
|
1518
|
-
buttonExt:
|
|
1518
|
+
buttonExt: E
|
|
1519
1519
|
}) => {
|
|
1520
1520
|
const y = {
|
|
1521
|
-
container: `smp-button smp-button-container ${o ? `smp-button-${o}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${g} ${w && !d ? "smp-button-squared" : ""} ${S ? "smp-buttonActive" : ""} ${
|
|
1521
|
+
container: `smp-button smp-button-container ${o ? `smp-button-${o}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${g} ${w && !d ? "smp-button-squared" : ""} ${S ? "smp-buttonActive" : ""} ${E ? `smp-buttonExt-${E}` : ""}`
|
|
1522
1522
|
};
|
|
1523
1523
|
return /* @__PURE__ */ h.jsx(
|
|
1524
1524
|
"button",
|
|
1525
1525
|
{
|
|
1526
1526
|
"data-component": "button",
|
|
1527
|
-
type:
|
|
1527
|
+
type: C ? "submit" : "button",
|
|
1528
1528
|
className: y.container,
|
|
1529
1529
|
onClick: e,
|
|
1530
1530
|
"aria-label": r,
|
|
@@ -1547,7 +1547,7 @@ const Da = (t) => {
|
|
|
1547
1547
|
] })
|
|
1548
1548
|
}
|
|
1549
1549
|
);
|
|
1550
|
-
},
|
|
1550
|
+
}, Vn = {
|
|
1551
1551
|
titleLarge: "h2",
|
|
1552
1552
|
title: "h3",
|
|
1553
1553
|
body: "h6",
|
|
@@ -1559,7 +1559,7 @@ const Da = (t) => {
|
|
|
1559
1559
|
role: n,
|
|
1560
1560
|
...s
|
|
1561
1561
|
}) => {
|
|
1562
|
-
const a =
|
|
1562
|
+
const a = Vn[t], o = {
|
|
1563
1563
|
container: `smp-typography ${t ? `smp-typography-${t}` : ""} ${s.disabled ? "smp-typography-disabled" : ""}`
|
|
1564
1564
|
};
|
|
1565
1565
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -1588,7 +1588,7 @@ const Da = (t) => {
|
|
|
1588
1588
|
"smp-tabbar-tab-base": "_smp-tabbar-tab-base_ly1md_86",
|
|
1589
1589
|
"smp-tabbar-tab-large": "_smp-tabbar-tab-large_ly1md_91",
|
|
1590
1590
|
"smp-tabbar-tab-extraLarge": "_smp-tabbar-tab-extraLarge_ly1md_96"
|
|
1591
|
-
},
|
|
1591
|
+
}, Un = ({
|
|
1592
1592
|
data: t,
|
|
1593
1593
|
sizing: e = "large",
|
|
1594
1594
|
toolbar: r = !0,
|
|
@@ -1600,9 +1600,9 @@ const Da = (t) => {
|
|
|
1600
1600
|
const S = u.current;
|
|
1601
1601
|
if (!S) return;
|
|
1602
1602
|
v();
|
|
1603
|
-
const
|
|
1604
|
-
return S.addEventListener("scroll",
|
|
1605
|
-
S.removeEventListener("scroll",
|
|
1603
|
+
const E = () => v();
|
|
1604
|
+
return S.addEventListener("scroll", E), window.addEventListener("resize", v), () => {
|
|
1605
|
+
S.removeEventListener("scroll", E), window.removeEventListener("resize", v);
|
|
1606
1606
|
};
|
|
1607
1607
|
}, []), re(() => {
|
|
1608
1608
|
n !== void 0 && o(n);
|
|
@@ -1623,7 +1623,7 @@ const Da = (t) => {
|
|
|
1623
1623
|
));
|
|
1624
1624
|
}, w = () => {
|
|
1625
1625
|
u.current?.scrollBy({ left: -g, behavior: "smooth" });
|
|
1626
|
-
},
|
|
1626
|
+
}, C = () => {
|
|
1627
1627
|
u.current?.scrollBy({ left: g, behavior: "smooth" });
|
|
1628
1628
|
};
|
|
1629
1629
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -1643,16 +1643,16 @@ const Da = (t) => {
|
|
|
1643
1643
|
sizing: e
|
|
1644
1644
|
}
|
|
1645
1645
|
) }),
|
|
1646
|
-
/* @__PURE__ */ h.jsx("div", { className: f.listWrapper, children: /* @__PURE__ */ h.jsx("div", { className: f.list, ref: u, role: "tablist", children: t.children.map((S,
|
|
1646
|
+
/* @__PURE__ */ h.jsx("div", { className: f.listWrapper, children: /* @__PURE__ */ h.jsx("div", { className: f.list, ref: u, role: "tablist", children: t.children.map((S, E) => /* @__PURE__ */ h.jsxs(
|
|
1647
1647
|
"button",
|
|
1648
1648
|
{
|
|
1649
1649
|
type: "button",
|
|
1650
|
-
className: `${
|
|
1650
|
+
className: `${E === a ? f.active : ""} ${f.tab} `,
|
|
1651
1651
|
role: "tab",
|
|
1652
|
-
"aria-selected":
|
|
1653
|
-
tabIndex:
|
|
1652
|
+
"aria-selected": E === a,
|
|
1653
|
+
tabIndex: E === a ? 0 : -1,
|
|
1654
1654
|
onClick: () => {
|
|
1655
|
-
s?.(
|
|
1655
|
+
s?.(E, S), o(E);
|
|
1656
1656
|
},
|
|
1657
1657
|
children: [
|
|
1658
1658
|
S.icon && /* @__PURE__ */ h.jsx(
|
|
@@ -1669,7 +1669,7 @@ const Da = (t) => {
|
|
|
1669
1669
|
bindValue: S.decode || "Tab[object Object]"
|
|
1670
1670
|
}
|
|
1671
1671
|
),
|
|
1672
|
-
r && (a ===
|
|
1672
|
+
r && (a === E ? /* @__PURE__ */ h.jsx(
|
|
1673
1673
|
de,
|
|
1674
1674
|
{
|
|
1675
1675
|
icon: "more_vert",
|
|
@@ -1681,14 +1681,14 @@ const Da = (t) => {
|
|
|
1681
1681
|
) : /* @__PURE__ */ h.jsx("span", { style: { width: "1rem" } }))
|
|
1682
1682
|
]
|
|
1683
1683
|
},
|
|
1684
|
-
|
|
1684
|
+
E
|
|
1685
1685
|
)) }) }),
|
|
1686
1686
|
c && /* @__PURE__ */ h.jsx("div", { className: f.scrollButtonRight, children: /* @__PURE__ */ h.jsx(
|
|
1687
1687
|
me,
|
|
1688
1688
|
{
|
|
1689
1689
|
bindValue: "",
|
|
1690
1690
|
optionalDisplayValue: ">",
|
|
1691
|
-
onClick:
|
|
1691
|
+
onClick: C,
|
|
1692
1692
|
variant: "base",
|
|
1693
1693
|
sizing: e
|
|
1694
1694
|
}
|
|
@@ -1723,21 +1723,21 @@ const Da = (t) => {
|
|
|
1723
1723
|
e.sections ?? [],
|
|
1724
1724
|
Object.keys(s)
|
|
1725
1725
|
), l = (p) => p.reduce((v, w) => {
|
|
1726
|
-
let
|
|
1727
|
-
return w.sections?.length ? (
|
|
1726
|
+
let C = "", S = {}, E = {}, y = "";
|
|
1727
|
+
return w.sections?.length ? (C = be["smp-layout-section-grid"], S = l(w.sections), w.gridCols === void 0 && (y = be[w.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], w.horizontal || er(w.sections) ? E = Zt(
|
|
1728
1728
|
w.sections,
|
|
1729
1729
|
w.horizontal ? a : o
|
|
1730
|
-
) :
|
|
1730
|
+
) : E = {
|
|
1731
1731
|
[a]: "auto",
|
|
1732
1732
|
[o]: "auto"
|
|
1733
|
-
})) : w.content?.length && (w.gridCols !== void 0 && w.gridCols > 0 ? (
|
|
1733
|
+
})) : w.content?.length && (w.gridCols !== void 0 && w.gridCols > 0 ? (C = be["smp-layout-section-grid"], y = be["smp-grid-template-cols"], E = {
|
|
1734
1734
|
[a]: `repeat(${w.gridCols}, 1fr)`
|
|
1735
|
-
}) :
|
|
1735
|
+
}) : C = be["smp-layout-section-flex"]), {
|
|
1736
1736
|
...v,
|
|
1737
1737
|
...S,
|
|
1738
1738
|
[w.id]: {
|
|
1739
|
-
classes: `${
|
|
1740
|
-
styles:
|
|
1739
|
+
classes: `${C} ${be[w.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${y} ${w.justify ? `smp-justifyContent-${w.justify}` : ""} ${w.align ? `smp-alignItems-${w.align}` : ""}`,
|
|
1740
|
+
styles: E
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
1743
|
}, {}), c = l(i), d = `${be["smp-layout"]} ${e.horizontal ? be["smp-layout-horizontal"] : be["smp-layout-vertical"]} ${e.inline ? be["smp-layout-inline"] : ""}`;
|
|
@@ -1753,8 +1753,8 @@ const Da = (t) => {
|
|
|
1753
1753
|
"smp-id": `section-${p.id}`,
|
|
1754
1754
|
className: c[p.id].classes,
|
|
1755
1755
|
style: c[p.id].styles,
|
|
1756
|
-
children: p.sections?.length ? p.sections.map((
|
|
1757
|
-
(
|
|
1756
|
+
children: p.sections?.length ? p.sections.map((C) => f(C)) : p.content?.map(
|
|
1757
|
+
(C) => g(C, p.justify, p.align)
|
|
1758
1758
|
)
|
|
1759
1759
|
},
|
|
1760
1760
|
`section-${p.id}`
|
|
@@ -1777,9 +1777,9 @@ const Da = (t) => {
|
|
|
1777
1777
|
`title-section-${p.id}`
|
|
1778
1778
|
) : w;
|
|
1779
1779
|
}, g = (p, v, w) => {
|
|
1780
|
-
const
|
|
1781
|
-
if (!
|
|
1782
|
-
const
|
|
1780
|
+
const C = s[p.id];
|
|
1781
|
+
if (!C) return null;
|
|
1782
|
+
const E = {
|
|
1783
1783
|
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1784
1784
|
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
1785
1785
|
}, y = `${be["smp-layout-cell-container"]} ${v ? `smp-justifyContent-${v}` : ""} ${w ? `smp-alignItems-${w}` : ""}`;
|
|
@@ -1787,16 +1787,16 @@ const Da = (t) => {
|
|
|
1787
1787
|
"div",
|
|
1788
1788
|
{
|
|
1789
1789
|
className: y,
|
|
1790
|
-
style:
|
|
1790
|
+
style: E,
|
|
1791
1791
|
"smp-id": p.id,
|
|
1792
|
-
children:
|
|
1792
|
+
children: C
|
|
1793
1793
|
},
|
|
1794
1794
|
p.id
|
|
1795
1795
|
);
|
|
1796
1796
|
};
|
|
1797
1797
|
return /* @__PURE__ */ h.jsxs("div", { className: d, style: u, "smp-id": "layout", children: [
|
|
1798
1798
|
e.sectionsType === "tab" && e.sections && e?.sections.length > 1 && /* @__PURE__ */ h.jsx(
|
|
1799
|
-
|
|
1799
|
+
Un,
|
|
1800
1800
|
{
|
|
1801
1801
|
data: {
|
|
1802
1802
|
type: "SmeupDataTree",
|
|
@@ -1842,7 +1842,7 @@ const Da = (t) => {
|
|
|
1842
1842
|
}, ot = {
|
|
1843
1843
|
DESC_ONLY: "DescOnly",
|
|
1844
1844
|
BOTH: "Both"
|
|
1845
|
-
},
|
|
1845
|
+
}, Bn = (t) => t.t == "D8", Wn = (t) => t.t == "I1", Yn = (t) => {
|
|
1846
1846
|
if (t) {
|
|
1847
1847
|
const e = t.split(";");
|
|
1848
1848
|
if (e.length == 3)
|
|
@@ -1880,7 +1880,7 @@ class gt {
|
|
|
1880
1880
|
return this.value ? "true" : "false";
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1883
|
+
function Gn(t, e) {
|
|
1884
1884
|
if (Gt(t)) {
|
|
1885
1885
|
const d = new Date(t);
|
|
1886
1886
|
if (!isNaN(d.getTime()))
|
|
@@ -1921,7 +1921,7 @@ function Gt(t) {
|
|
|
1921
1921
|
function it(t) {
|
|
1922
1922
|
return t instanceof Date && !isNaN(t.getTime());
|
|
1923
1923
|
}
|
|
1924
|
-
function
|
|
1924
|
+
function qn(t) {
|
|
1925
1925
|
if (!/^\d{8}$/.test(t)) return !1;
|
|
1926
1926
|
const e = parseInt(t.slice(0, 4), 10), r = parseInt(t.slice(4, 6), 10), n = parseInt(t.slice(6, 8), 10);
|
|
1927
1927
|
return Ft(n, r - 1, e);
|
|
@@ -1930,7 +1930,7 @@ function Ft(t, e, r) {
|
|
|
1930
1930
|
const n = [
|
|
1931
1931
|
31,
|
|
1932
1932
|
// January
|
|
1933
|
-
|
|
1933
|
+
Hn(r) ? 29 : 28,
|
|
1934
1934
|
// February
|
|
1935
1935
|
31,
|
|
1936
1936
|
// March
|
|
@@ -1955,10 +1955,10 @@ function Ft(t, e, r) {
|
|
|
1955
1955
|
];
|
|
1956
1956
|
return !(e < 0 || e > 11 || t < 1 || t > n[e]);
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Hn(t) {
|
|
1959
1959
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1961
|
+
function zn(t) {
|
|
1962
1962
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), n = String(t.getDate()).padStart(2, "0");
|
|
1963
1963
|
return isNaN(e) || isNaN(Number(r)) || isNaN(Number(n)) ? t.toString() : `${e}-${r}-${n}`;
|
|
1964
1964
|
}
|
|
@@ -1991,7 +1991,7 @@ const vr = /* @__PURE__ */ new Map([
|
|
|
1991
1991
|
"D8*YYMD",
|
|
1992
1992
|
{
|
|
1993
1993
|
legacyToIso(t) {
|
|
1994
|
-
return
|
|
1994
|
+
return qn(t) && `${t.substring(0, 4)}-${t.substring(4, 6)}-${t.substring(6, 8)}` || t;
|
|
1995
1995
|
},
|
|
1996
1996
|
isoToLegacy(t) {
|
|
1997
1997
|
return Gt(t) && t.replaceAll("-", "") || t;
|
|
@@ -2013,13 +2013,13 @@ function Be({
|
|
|
2013
2013
|
requestAnimationFrame(o);
|
|
2014
2014
|
return;
|
|
2015
2015
|
}
|
|
2016
|
-
const v = window.scrollY, w = window.scrollX,
|
|
2017
|
-
let
|
|
2016
|
+
const v = window.scrollY, w = window.scrollX, C = window.innerWidth, S = window.innerHeight;
|
|
2017
|
+
let E = c + v, y = d + w, b = t;
|
|
2018
2018
|
const j = {
|
|
2019
2019
|
top: c - g < 0,
|
|
2020
2020
|
bottom: c + f + g > S,
|
|
2021
2021
|
left: d - p < 0,
|
|
2022
|
-
right: d + u + p >
|
|
2022
|
+
right: d + u + p > C
|
|
2023
2023
|
};
|
|
2024
2024
|
switch (t) {
|
|
2025
2025
|
case "top":
|
|
@@ -2037,10 +2037,10 @@ function Be({
|
|
|
2037
2037
|
}
|
|
2038
2038
|
switch (b) {
|
|
2039
2039
|
case "top":
|
|
2040
|
-
|
|
2040
|
+
E = c + v - g;
|
|
2041
2041
|
break;
|
|
2042
2042
|
case "bottom":
|
|
2043
|
-
|
|
2043
|
+
E = c + v + f;
|
|
2044
2044
|
break;
|
|
2045
2045
|
case "left":
|
|
2046
2046
|
y = d + w - p;
|
|
@@ -2049,17 +2049,17 @@ function Be({
|
|
|
2049
2049
|
y = d + w + u;
|
|
2050
2050
|
break;
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2052
|
+
E = Math.max(
|
|
2053
2053
|
v,
|
|
2054
|
-
Math.min(
|
|
2054
|
+
Math.min(E, v + S - g)
|
|
2055
2055
|
), y = Math.max(
|
|
2056
2056
|
w,
|
|
2057
|
-
Math.min(y, w +
|
|
2057
|
+
Math.min(y, w + C - p)
|
|
2058
2058
|
), requestAnimationFrame(() => {
|
|
2059
|
-
l.style.transform = `translate(${y}px, ${
|
|
2059
|
+
l.style.transform = `translate(${y}px, ${E}px)`, l.style.opacity = "1";
|
|
2060
2060
|
});
|
|
2061
2061
|
}, [t]);
|
|
2062
|
-
return
|
|
2062
|
+
return dn(() => {
|
|
2063
2063
|
if (!e) return;
|
|
2064
2064
|
let i;
|
|
2065
2065
|
const l = () => {
|
|
@@ -2133,9 +2133,9 @@ const Ze = (t, e, r) => {
|
|
|
2133
2133
|
inputRef: p,
|
|
2134
2134
|
inputType: v = "text",
|
|
2135
2135
|
ariaLabel: w = "input field",
|
|
2136
|
-
label:
|
|
2136
|
+
label: C,
|
|
2137
2137
|
helperText: S = !1,
|
|
2138
|
-
error:
|
|
2138
|
+
error: E,
|
|
2139
2139
|
appearance: y = "base",
|
|
2140
2140
|
isClearable: b = !1,
|
|
2141
2141
|
fullWidth: j = !1,
|
|
@@ -2154,7 +2154,7 @@ const Ze = (t, e, r) => {
|
|
|
2154
2154
|
onShapeIconClick: N,
|
|
2155
2155
|
onClick: m
|
|
2156
2156
|
}) => {
|
|
2157
|
-
const x = De(), k = `${x}-helper`, D =
|
|
2157
|
+
const x = De(), k = `${x}-helper`, D = E ? "danger" : c, $ = S || !!E, A = (z) => {
|
|
2158
2158
|
X?.(z.target.value);
|
|
2159
2159
|
}, Y = () => {
|
|
2160
2160
|
r && r != "" && X?.("");
|
|
@@ -2219,7 +2219,7 @@ const Ze = (t, e, r) => {
|
|
|
2219
2219
|
)
|
|
2220
2220
|
] });
|
|
2221
2221
|
return /* @__PURE__ */ h.jsxs("div", { className: B.wrapper, "data-component": L, children: [
|
|
2222
|
-
|
|
2222
|
+
C && /* @__PURE__ */ h.jsx($e, { label: C, disabled: e, htmlFor: x }),
|
|
2223
2223
|
/* @__PURE__ */ h.jsxs("div", { className: B.decodeWrapper, children: [
|
|
2224
2224
|
Z,
|
|
2225
2225
|
/* @__PURE__ */ h.jsx(
|
|
@@ -2234,7 +2234,7 @@ const Ze = (t, e, r) => {
|
|
|
2234
2234
|
$ && /* @__PURE__ */ h.jsx(
|
|
2235
2235
|
Hr,
|
|
2236
2236
|
{
|
|
2237
|
-
helperText:
|
|
2237
|
+
helperText: E,
|
|
2238
2238
|
disabled: e,
|
|
2239
2239
|
state: D,
|
|
2240
2240
|
id: k
|
|
@@ -2263,8 +2263,8 @@ function zr({
|
|
|
2263
2263
|
a(p);
|
|
2264
2264
|
}, []), f = (g) => {
|
|
2265
2265
|
if (!o.current) return;
|
|
2266
|
-
const p = g * e, v = p + e, w = o.current,
|
|
2267
|
-
p <
|
|
2266
|
+
const p = g * e, v = p + e, w = o.current, C = w.scrollTop, S = C + r;
|
|
2267
|
+
p < C ? w.scrollTop = p : v > S && (w.scrollTop = v - r);
|
|
2268
2268
|
};
|
|
2269
2269
|
return {
|
|
2270
2270
|
virtualItems: d,
|
|
@@ -2300,7 +2300,7 @@ const lt = {
|
|
|
2300
2300
|
"smp-list-container": "_smp-list-container_nw7jc_12",
|
|
2301
2301
|
"smp-list-listItem": "_smp-list-listItem_nw7jc_17"
|
|
2302
2302
|
};
|
|
2303
|
-
function
|
|
2303
|
+
function Kn(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
2304
2304
|
const a = document.createElement("canvas").getContext("2d");
|
|
2305
2305
|
if (!a) return 200;
|
|
2306
2306
|
a.font = r;
|
|
@@ -2315,7 +2315,7 @@ function zn(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
return Math.ceil(o + n);
|
|
2317
2317
|
}
|
|
2318
|
-
const
|
|
2318
|
+
const Jn = 10, Kr = ({
|
|
2319
2319
|
id: t,
|
|
2320
2320
|
options: e,
|
|
2321
2321
|
displayMode: r = "Both",
|
|
@@ -2332,7 +2332,7 @@ const Kn = 10, Kr = ({
|
|
|
2332
2332
|
}) => {
|
|
2333
2333
|
const [u, f] = q(""), g = 40, [p, v] = q(
|
|
2334
2334
|
a !== null ? a : -1
|
|
2335
|
-
), [w,
|
|
2335
|
+
), [w, C] = q(i || 200), S = ce(null), E = s !== void 0 ? s : e.length > Jn, y = u ? e.filter(
|
|
2336
2336
|
(_) => _.decode?.toLowerCase()?.includes(u.toLowerCase())
|
|
2337
2337
|
) : e, b = (_) => {
|
|
2338
2338
|
f(_);
|
|
@@ -2349,8 +2349,8 @@ const Kn = 10, Kr = ({
|
|
|
2349
2349
|
}, [p, y]), re(() => {
|
|
2350
2350
|
d && S?.current && S.current.focus();
|
|
2351
2351
|
}, [d, S]), re(() => {
|
|
2352
|
-
const _ =
|
|
2353
|
-
|
|
2352
|
+
const _ = Kn(e, r);
|
|
2353
|
+
C(_);
|
|
2354
2354
|
}, [e, r]);
|
|
2355
2355
|
const P = (_) => {
|
|
2356
2356
|
if (_.key === "ArrowDown" || _.key === "ArrowUp") {
|
|
@@ -2381,7 +2381,7 @@ const Kn = 10, Kr = ({
|
|
|
2381
2381
|
minWidth: i
|
|
2382
2382
|
},
|
|
2383
2383
|
children: [
|
|
2384
|
-
|
|
2384
|
+
E && /* @__PURE__ */ h.jsx(
|
|
2385
2385
|
Oe,
|
|
2386
2386
|
{
|
|
2387
2387
|
bindValue: u,
|
|
@@ -2438,7 +2438,7 @@ const Kn = 10, Kr = ({
|
|
|
2438
2438
|
]
|
|
2439
2439
|
}
|
|
2440
2440
|
);
|
|
2441
|
-
},
|
|
2441
|
+
}, Xn = (t) => {
|
|
2442
2442
|
const e = ce(null);
|
|
2443
2443
|
return re(() => () => {
|
|
2444
2444
|
e.current && clearTimeout(e.current);
|
|
@@ -2454,7 +2454,7 @@ function We({
|
|
|
2454
2454
|
const [e, r] = q(!1);
|
|
2455
2455
|
return re(() => {
|
|
2456
2456
|
r(!0);
|
|
2457
|
-
}, []), e ?
|
|
2457
|
+
}, []), e ? pn(t, document.body) : null;
|
|
2458
2458
|
}
|
|
2459
2459
|
const St = (t, e, r) => {
|
|
2460
2460
|
re(() => {
|
|
@@ -2477,11 +2477,11 @@ const St = (t, e, r) => {
|
|
|
2477
2477
|
t = n, e = s;
|
|
2478
2478
|
});
|
|
2479
2479
|
return r.resolve = t, r.reject = e, r;
|
|
2480
|
-
}, xr = (t) => t == null ? "" : "" + t,
|
|
2480
|
+
}, xr = (t) => t == null ? "" : "" + t, Qn = (t, e, r) => {
|
|
2481
2481
|
t.forEach((n) => {
|
|
2482
2482
|
e[n] && (r[n] = e[n]);
|
|
2483
2483
|
});
|
|
2484
|
-
},
|
|
2484
|
+
}, Zn = /###/g, wr = (t) => t && t.indexOf("###") > -1 ? t.replace(Zn, ".") : t, Sr = (t) => !t || Q(t), ze = (t, e, r) => {
|
|
2485
2485
|
const n = Q(e) ? e.split(".") : e;
|
|
2486
2486
|
let s = 0;
|
|
2487
2487
|
for (; s < n.length - 1; ) {
|
|
@@ -2506,7 +2506,7 @@ const St = (t, e, r) => {
|
|
|
2506
2506
|
for (; i.obj === void 0 && o.length; )
|
|
2507
2507
|
a = `${o[o.length - 1]}.${a}`, o = o.slice(0, o.length - 1), i = ze(t, o, Object), i?.obj && typeof i.obj[`${i.k}.${a}`] < "u" && (i.obj = void 0);
|
|
2508
2508
|
i.obj[`${i.k}.${a}`] = r;
|
|
2509
|
-
},
|
|
2509
|
+
}, es = (t, e, r, n) => {
|
|
2510
2510
|
const {
|
|
2511
2511
|
obj: s,
|
|
2512
2512
|
k: a
|
|
@@ -2519,7 +2519,7 @@ const St = (t, e, r) => {
|
|
|
2519
2519
|
} = ze(t, e);
|
|
2520
2520
|
if (r && Object.prototype.hasOwnProperty.call(r, n))
|
|
2521
2521
|
return r[n];
|
|
2522
|
-
},
|
|
2522
|
+
}, ts = (t, e, r) => {
|
|
2523
2523
|
const n = yt(t, r);
|
|
2524
2524
|
return n !== void 0 ? n : yt(e, r);
|
|
2525
2525
|
}, Jr = (t, e, r) => {
|
|
@@ -2527,7 +2527,7 @@ const St = (t, e, r) => {
|
|
|
2527
2527
|
n !== "__proto__" && n !== "constructor" && (n in t ? Q(t[n]) || t[n] instanceof String || Q(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) : Jr(t[n], e[n], r) : t[n] = e[n]);
|
|
2528
2528
|
return t;
|
|
2529
2529
|
}, Pe = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2530
|
-
var
|
|
2530
|
+
var rs = {
|
|
2531
2531
|
"&": "&",
|
|
2532
2532
|
"<": "<",
|
|
2533
2533
|
">": ">",
|
|
@@ -2535,8 +2535,8 @@ var ts = {
|
|
|
2535
2535
|
"'": "'",
|
|
2536
2536
|
"/": "/"
|
|
2537
2537
|
};
|
|
2538
|
-
const
|
|
2539
|
-
class
|
|
2538
|
+
const ns = (t) => Q(t) ? t.replace(/[&<>"'\/]/g, (e) => rs[e]) : t;
|
|
2539
|
+
class ss {
|
|
2540
2540
|
constructor(e) {
|
|
2541
2541
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
2542
2542
|
}
|
|
@@ -2548,11 +2548,11 @@ class ns {
|
|
|
2548
2548
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2549
2549
|
}
|
|
2550
2550
|
}
|
|
2551
|
-
const
|
|
2551
|
+
const as = [" ", ",", "?", "!", ";"], os = new ss(20), is = (t, e, r) => {
|
|
2552
2552
|
e = e || "", r = r || "";
|
|
2553
|
-
const n =
|
|
2553
|
+
const n = as.filter((o) => e.indexOf(o) < 0 && r.indexOf(o) < 0);
|
|
2554
2554
|
if (n.length === 0) return !0;
|
|
2555
|
-
const s =
|
|
2555
|
+
const s = os.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
|
|
2556
2556
|
let a = !s.test(t);
|
|
2557
2557
|
if (!a) {
|
|
2558
2558
|
const o = t.indexOf(r);
|
|
@@ -2579,7 +2579,7 @@ const ss = [" ", ",", "?", "!", ";"], as = new ns(20), os = (t, e, r) => {
|
|
|
2579
2579
|
s = o;
|
|
2580
2580
|
}
|
|
2581
2581
|
return s;
|
|
2582
|
-
}, Je = (t) => t?.replace("_", "-"),
|
|
2582
|
+
}, Je = (t) => t?.replace("_", "-"), ls = {
|
|
2583
2583
|
type: "logger",
|
|
2584
2584
|
log(t) {
|
|
2585
2585
|
this.output("log", t);
|
|
@@ -2599,7 +2599,7 @@ class vt {
|
|
|
2599
2599
|
this.init(e, r);
|
|
2600
2600
|
}
|
|
2601
2601
|
init(e, r = {}) {
|
|
2602
|
-
this.prefix = r.prefix || "i18next:", this.logger = e ||
|
|
2602
|
+
this.prefix = r.prefix || "i18next:", this.logger = e || ls, this.options = r, this.debug = r.debug;
|
|
2603
2603
|
}
|
|
2604
2604
|
log(...e) {
|
|
2605
2605
|
return this.forward(e, "log", "", !0);
|
|
@@ -2740,7 +2740,7 @@ var Xr = {
|
|
|
2740
2740
|
const Tr = {}, Or = (t) => !Q(t) && typeof t != "boolean" && typeof t != "number";
|
|
2741
2741
|
class xt extends Et {
|
|
2742
2742
|
constructor(e, r = {}) {
|
|
2743
|
-
super(),
|
|
2743
|
+
super(), Qn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Te.create("translator");
|
|
2744
2744
|
}
|
|
2745
2745
|
changeLanguage(e) {
|
|
2746
2746
|
e && (this.language = e);
|
|
@@ -2758,7 +2758,7 @@ class xt extends Et {
|
|
|
2758
2758
|
n === void 0 && (n = ":");
|
|
2759
2759
|
const s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
|
|
2760
2760
|
let a = r.ns || this.options.defaultNS || [];
|
|
2761
|
-
const o = n && e.indexOf(n) > -1, i = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !
|
|
2761
|
+
const o = n && e.indexOf(n) > -1, i = !this.options.userDefinedKeySeparator && !r.keySeparator && !this.options.userDefinedNsSeparator && !r.nsSeparator && !is(e, n, s);
|
|
2762
2762
|
if (o && !i) {
|
|
2763
2763
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
2764
2764
|
if (l && l.length > 0)
|
|
@@ -2807,13 +2807,13 @@ class xt extends Et {
|
|
|
2807
2807
|
} : i;
|
|
2808
2808
|
const g = this.resolve(e, s);
|
|
2809
2809
|
let p = g?.res;
|
|
2810
|
-
const v = g?.usedKey || i, w = g?.exactUsedKey || i,
|
|
2810
|
+
const v = g?.usedKey || i, w = g?.exactUsedKey || i, C = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, y = s.count !== void 0 && !Q(s.count), b = xt.hasDefaultValue(s), j = y ? this.pluralResolver.getSuffix(u, s.count, s) : "", L = s.ordinal && y ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2811
2811
|
ordinal: !1
|
|
2812
2812
|
}) : "", V = y && !s.ordinal && s.count === 0, I = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${L}`] || s.defaultValue;
|
|
2813
2813
|
let P = p;
|
|
2814
|
-
|
|
2814
|
+
E && !p && b && (P = I);
|
|
2815
2815
|
const R = Or(P), T = Object.prototype.toString.apply(P);
|
|
2816
|
-
if (
|
|
2816
|
+
if (E && P && R && C.indexOf(T) < 0 && !(Q(S) && Array.isArray(P))) {
|
|
2817
2817
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2818
2818
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2819
2819
|
const O = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, P, {
|
|
@@ -2840,7 +2840,7 @@ class xt extends Et {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
p = _;
|
|
2842
2842
|
}
|
|
2843
|
-
} else if (
|
|
2843
|
+
} else if (E && Q(S) && Array.isArray(p))
|
|
2844
2844
|
p = p.join(S), p && (p = this.extendTranslation(p, e, s, n));
|
|
2845
2845
|
else {
|
|
2846
2846
|
let O = !1, _ = !1;
|
|
@@ -2926,24 +2926,24 @@ class xt extends Et {
|
|
|
2926
2926
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2927
2927
|
const f = r.count !== void 0 && !Q(r.count), g = f && !r.ordinal && r.count === 0, p = r.context !== void 0 && (Q(r.context) || typeof r.context == "number") && r.context !== "", v = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
|
2928
2928
|
u.forEach((w) => {
|
|
2929
|
-
this.isValidLookup(n) || (i = w, !Tr[`${v[0]}-${w}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (Tr[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), v.forEach((
|
|
2929
|
+
this.isValidLookup(n) || (i = w, !Tr[`${v[0]}-${w}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (Tr[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), v.forEach((C) => {
|
|
2930
2930
|
if (this.isValidLookup(n)) return;
|
|
2931
|
-
o =
|
|
2931
|
+
o = C;
|
|
2932
2932
|
const S = [d];
|
|
2933
2933
|
if (this.i18nFormat?.addLookupKeys)
|
|
2934
|
-
this.i18nFormat.addLookupKeys(S, d,
|
|
2934
|
+
this.i18nFormat.addLookupKeys(S, d, C, w, r);
|
|
2935
2935
|
else {
|
|
2936
2936
|
let y;
|
|
2937
|
-
f && (y = this.pluralResolver.getSuffix(
|
|
2937
|
+
f && (y = this.pluralResolver.getSuffix(C, r.count, r));
|
|
2938
2938
|
const b = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2939
2939
|
if (f && (S.push(d + y), r.ordinal && y.indexOf(j) === 0 && S.push(d + y.replace(j, this.options.pluralSeparator)), g && S.push(d + b)), p) {
|
|
2940
2940
|
const L = `${d}${this.options.contextSeparator}${r.context}`;
|
|
2941
2941
|
S.push(L), f && (S.push(L + y), r.ordinal && y.indexOf(j) === 0 && S.push(L + y.replace(j, this.options.pluralSeparator)), g && S.push(L + b));
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
2944
|
-
let
|
|
2945
|
-
for (;
|
|
2946
|
-
this.isValidLookup(n) || (a =
|
|
2944
|
+
let E;
|
|
2945
|
+
for (; E = S.pop(); )
|
|
2946
|
+
this.isValidLookup(n) || (a = E, n = this.getResource(C, w, E, r));
|
|
2947
2947
|
}));
|
|
2948
2948
|
});
|
|
2949
2949
|
}), {
|
|
@@ -3060,7 +3060,7 @@ const jr = {
|
|
|
3060
3060
|
pluralCategories: ["one", "other"]
|
|
3061
3061
|
})
|
|
3062
3062
|
};
|
|
3063
|
-
class
|
|
3063
|
+
class cs {
|
|
3064
3064
|
constructor(e, r = {}) {
|
|
3065
3065
|
this.languageUtils = e, this.options = r, this.logger = Te.create("pluralResolver"), this.pluralRulesCache = {};
|
|
3066
3066
|
}
|
|
@@ -3108,10 +3108,10 @@ class ls {
|
|
|
3108
3108
|
}
|
|
3109
3109
|
}
|
|
3110
3110
|
const Dr = (t, e, r, n = ".", s = !0) => {
|
|
3111
|
-
let a =
|
|
3111
|
+
let a = ts(t, e, r);
|
|
3112
3112
|
return !a && s && Q(r) && (a = Mt(t, r, n), a === void 0 && (a = Mt(e, r, n))), a;
|
|
3113
3113
|
}, Nt = (t) => t.replace(/\$/g, "$$$$");
|
|
3114
|
-
class
|
|
3114
|
+
class us {
|
|
3115
3115
|
constructor(e = {}) {
|
|
3116
3116
|
this.logger = Te.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((r) => r), this.init(e);
|
|
3117
3117
|
}
|
|
@@ -3135,10 +3135,10 @@ class cs {
|
|
|
3135
3135
|
nestingSuffix: p,
|
|
3136
3136
|
nestingSuffixEscaped: v,
|
|
3137
3137
|
nestingOptionsSeparator: w,
|
|
3138
|
-
maxReplaces:
|
|
3138
|
+
maxReplaces: C,
|
|
3139
3139
|
alwaysFormat: S
|
|
3140
3140
|
} = e.interpolation;
|
|
3141
|
-
this.escape = r !== void 0 ? r :
|
|
3141
|
+
this.escape = r !== void 0 ? r : ns, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : o || "{{", this.suffix = i ? Pe(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Pe(f) : g || Pe("$t("), this.nestingSuffix = p ? Pe(p) : v || Pe(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = C || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
3142
3142
|
}
|
|
3143
3143
|
reset() {
|
|
3144
3144
|
this.options && this.init(this.options);
|
|
@@ -3151,12 +3151,12 @@ class cs {
|
|
|
3151
3151
|
let a, o, i;
|
|
3152
3152
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
|
|
3153
3153
|
if (g.indexOf(this.formatSeparator) < 0) {
|
|
3154
|
-
const
|
|
3155
|
-
return this.alwaysFormat ? this.format(
|
|
3154
|
+
const C = Dr(r, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3155
|
+
return this.alwaysFormat ? this.format(C, void 0, n, {
|
|
3156
3156
|
...s,
|
|
3157
3157
|
...r,
|
|
3158
3158
|
interpolationkey: g
|
|
3159
|
-
}) :
|
|
3159
|
+
}) : C;
|
|
3160
3160
|
}
|
|
3161
3161
|
const p = g.split(this.formatSeparator), v = p.shift().trim(), w = p.join(this.formatSeparator).trim();
|
|
3162
3162
|
return this.format(Dr(r, l, v, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
|
|
@@ -3229,7 +3229,7 @@ class cs {
|
|
|
3229
3229
|
return e;
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
|
-
const
|
|
3232
|
+
const ds = (t) => {
|
|
3233
3233
|
let e = t.toLowerCase().trim();
|
|
3234
3234
|
const r = {};
|
|
3235
3235
|
if (t.indexOf("(") > -1) {
|
|
@@ -3259,8 +3259,8 @@ const us = (t) => {
|
|
|
3259
3259
|
let i = e[o];
|
|
3260
3260
|
return i || (i = t(Je(n), s), e[o] = i), i(r);
|
|
3261
3261
|
};
|
|
3262
|
-
},
|
|
3263
|
-
class
|
|
3262
|
+
}, fs = (t) => (e, r, n) => t(Je(r), n)(e);
|
|
3263
|
+
class ps {
|
|
3264
3264
|
constructor(e = {}) {
|
|
3265
3265
|
this.logger = Te.create("formatter"), this.options = e, this.init(e);
|
|
3266
3266
|
}
|
|
@@ -3268,7 +3268,7 @@ class fs {
|
|
|
3268
3268
|
interpolation: {}
|
|
3269
3269
|
}) {
|
|
3270
3270
|
this.formatSeparator = r.interpolation.formatSeparator || ",";
|
|
3271
|
-
const n = r.cacheInBuiltFormats ? kr :
|
|
3271
|
+
const n = r.cacheInBuiltFormats ? kr : fs;
|
|
3272
3272
|
this.formats = {
|
|
3273
3273
|
number: n((s, a) => {
|
|
3274
3274
|
const o = new Intl.NumberFormat(s, {
|
|
@@ -3319,7 +3319,7 @@ class fs {
|
|
|
3319
3319
|
const {
|
|
3320
3320
|
formatName: c,
|
|
3321
3321
|
formatOptions: d
|
|
3322
|
-
} =
|
|
3322
|
+
} = ds(l);
|
|
3323
3323
|
if (this.formats[c]) {
|
|
3324
3324
|
let u = i;
|
|
3325
3325
|
try {
|
|
@@ -3339,10 +3339,10 @@ class fs {
|
|
|
3339
3339
|
}, e);
|
|
3340
3340
|
}
|
|
3341
3341
|
}
|
|
3342
|
-
const
|
|
3342
|
+
const hs = (t, e) => {
|
|
3343
3343
|
t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--);
|
|
3344
3344
|
};
|
|
3345
|
-
class
|
|
3345
|
+
class ms extends Et {
|
|
3346
3346
|
constructor(e, r, n, s = {}) {
|
|
3347
3347
|
super(), this.backend = e, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = Te.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 = [], this.backend?.init?.(n, s.backend, s);
|
|
3348
3348
|
}
|
|
@@ -3374,7 +3374,7 @@ class hs extends Et {
|
|
|
3374
3374
|
}), this.state[e] = r ? -1 : 2, r && n && (this.state[e] = 0);
|
|
3375
3375
|
const i = {};
|
|
3376
3376
|
this.queue.forEach((l) => {
|
|
3377
|
-
|
|
3377
|
+
es(l.loaded, [a], o), hs(l, e), r && l.errors.push(r), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
3378
3378
|
i[c] || (i[c] = {});
|
|
3379
3379
|
const d = l.loaded[c];
|
|
3380
3380
|
d.length && d.forEach((u) => {
|
|
@@ -3530,7 +3530,7 @@ const $r = () => ({
|
|
|
3530
3530
|
},
|
|
3531
3531
|
cacheInBuiltFormats: !0
|
|
3532
3532
|
}), Nr = (t) => (Q(t.ns) && (t.ns = [t.ns]), Q(t.fallbackLng) && (t.fallbackLng = [t.fallbackLng]), Q(t.fallbackNS) && (t.fallbackNS = [t.fallbackNS]), t.supportedLngs?.indexOf?.("cimode") < 0 && (t.supportedLngs = t.supportedLngs.concat(["cimode"])), typeof t.initImmediate == "boolean" && (t.initAsync = t.initImmediate), t), ct = () => {
|
|
3533
|
-
},
|
|
3533
|
+
}, gs = (t) => {
|
|
3534
3534
|
Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((r) => {
|
|
3535
3535
|
typeof t[r] == "function" && (t[r] = t[r].bind(t));
|
|
3536
3536
|
});
|
|
@@ -3539,7 +3539,7 @@ class Xe extends Et {
|
|
|
3539
3539
|
constructor(e = {}, r) {
|
|
3540
3540
|
if (super(), this.options = Nr(e), this.services = {}, this.logger = Te, this.modules = {
|
|
3541
3541
|
external: []
|
|
3542
|
-
},
|
|
3542
|
+
}, gs(this), r && !this.isInitialized && !e.isClone) {
|
|
3543
3543
|
if (!this.options.initAsync)
|
|
3544
3544
|
return this.init(e, r), this;
|
|
3545
3545
|
setTimeout(() => {
|
|
@@ -3562,16 +3562,16 @@ class Xe extends Et {
|
|
|
3562
3562
|
if (!this.options.isClone) {
|
|
3563
3563
|
this.modules.logger ? Te.init(s(this.modules.logger), this.options) : Te.init(null, this.options);
|
|
3564
3564
|
let c;
|
|
3565
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
3565
|
+
this.modules.formatter ? c = this.modules.formatter : c = ps;
|
|
3566
3566
|
const d = new _r(this.options);
|
|
3567
3567
|
this.store = new Cr(this.options.resources, this.options);
|
|
3568
3568
|
const u = this.services;
|
|
3569
|
-
u.logger = Te, u.resourceStore = this.store, u.languageUtils = d, u.pluralResolver = new
|
|
3569
|
+
u.logger = Te, u.resourceStore = this.store, u.languageUtils = d, u.pluralResolver = new cs(d, {
|
|
3570
3570
|
prepend: this.options.pluralSeparator,
|
|
3571
3571
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3572
|
-
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new
|
|
3572
|
+
}), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new us(this.options), u.utils = {
|
|
3573
3573
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3574
|
-
}, u.backendConnector = new
|
|
3574
|
+
}, u.backendConnector = new ms(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (g, ...p) => {
|
|
3575
3575
|
this.emit(g, ...p);
|
|
3576
3576
|
}), 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 xt(this.services, this.options), this.translator.on("*", (g, ...p) => {
|
|
3577
3577
|
this.emit(g, ...p);
|
|
@@ -3778,48 +3778,48 @@ fe.setDefaultNamespace;
|
|
|
3778
3778
|
fe.hasLoadedNamespace;
|
|
3779
3779
|
fe.loadNamespaces;
|
|
3780
3780
|
fe.loadLanguages;
|
|
3781
|
-
const
|
|
3781
|
+
const bs = { 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" }, ys = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, vs = { AddSubGroup: "Aggiungi sottogruppo", AddFilter: "Aggiungi Filtro", Operator: { String: { Starts: "Inizia per", Contains: "Contiene", Equals: "È uguale a" }, Number: { Greater: "Maggiore di", GreaterOrEqual: "Maggiore o uguale a", Less: "Minore di", LessOrEqual: "Minore o uguale a", Equals: "Uguale a", NotEquals: "Diverso da" } } }, xs = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, ws = {
|
|
3782
3782
|
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" },
|
|
3783
|
-
Day:
|
|
3784
|
-
Month:
|
|
3785
|
-
FilterBuilder:
|
|
3786
|
-
Generic:
|
|
3787
|
-
},
|
|
3783
|
+
Day: bs,
|
|
3784
|
+
Month: ys,
|
|
3785
|
+
FilterBuilder: vs,
|
|
3786
|
+
Generic: xs
|
|
3787
|
+
}, Ss = { 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" }, Es = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Cs = { AddSubGroup: "Add Sub Group", AddFilter: "Add Filter", Operator: { String: { Starts: "Starts with", Contains: "Contains", Equals: "Equal to" }, Number: { Greater: "Greater than", GreaterOrEqual: "Greater or equal than", Less: "Less than", LessOrEqual: "Less or equal than", Equals: "Equal to", NotEquals: "Other than" } } }, Ts = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Os = {
|
|
3788
3788
|
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" },
|
|
3789
|
-
Day:
|
|
3790
|
-
Month:
|
|
3791
|
-
FilterBuilder:
|
|
3792
|
-
Generic:
|
|
3789
|
+
Day: Ss,
|
|
3790
|
+
Month: Es,
|
|
3791
|
+
FilterBuilder: Cs,
|
|
3792
|
+
Generic: Ts
|
|
3793
3793
|
};
|
|
3794
3794
|
function Lr(t, e) {
|
|
3795
|
-
return new RegExp(
|
|
3795
|
+
return new RegExp(_s(t), e);
|
|
3796
3796
|
}
|
|
3797
|
-
function
|
|
3797
|
+
function _s(t) {
|
|
3798
3798
|
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3799
3799
|
}
|
|
3800
|
-
const
|
|
3800
|
+
const js = (t, e, r) => {
|
|
3801
3801
|
let n = t;
|
|
3802
3802
|
return isNaN(n) || (e != null && (n = Math.max(n, e)), r != null && (n = Math.min(n, r))), n;
|
|
3803
|
-
},
|
|
3803
|
+
}, Rs = (t, e) => {
|
|
3804
3804
|
const n = Intl.NumberFormat(t).formatToParts(1000.1), s = n.find((o) => o.type === "group")?.value ?? ",", a = e ?? n.find((o) => o.type === "decimal")?.value ?? ".";
|
|
3805
3805
|
return { groupingChar: s, decimalChar: a };
|
|
3806
3806
|
};
|
|
3807
|
-
function
|
|
3807
|
+
function Ds(t, e, r, n) {
|
|
3808
3808
|
let s = e;
|
|
3809
|
-
const a =
|
|
3809
|
+
const a = Ns(t, r);
|
|
3810
3810
|
if (!s) {
|
|
3811
3811
|
const i = Math.abs(a);
|
|
3812
3812
|
i - Math.floor(i) ? s = "0,0.00" : s = "0,0";
|
|
3813
3813
|
}
|
|
3814
|
-
const o =
|
|
3814
|
+
const o = Ls(s);
|
|
3815
3815
|
return new Intl.NumberFormat(n, o).format(a);
|
|
3816
3816
|
}
|
|
3817
|
-
const
|
|
3817
|
+
const ks = (t, e, r) => {
|
|
3818
3818
|
const n = t.lastIndexOf(r);
|
|
3819
3819
|
if (n !== -1) return t.length - n - 1;
|
|
3820
3820
|
const s = r === "." ? "," : ".", a = t.lastIndexOf(s);
|
|
3821
3821
|
return a !== -1 && !(s === e && t.length - a - 1 === 3) ? t.length - a - 1 : 0;
|
|
3822
|
-
},
|
|
3822
|
+
}, $s = (t, e, r) => {
|
|
3823
3823
|
if (!t) return NaN;
|
|
3824
3824
|
let n = t.replace(/\s/g, ""), s = r;
|
|
3825
3825
|
const a = (n.match(/\./g) || []).length, o = (n.match(/,/g) || []).length;
|
|
@@ -3832,7 +3832,7 @@ const Ds = (t, e, r) => {
|
|
|
3832
3832
|
const i = s === "." ? "," : ".";
|
|
3833
3833
|
return n = n.replace(new RegExp(`\\${i}`, "g"), ""), s !== "." && (n = n.replace(new RegExp(`\\${s}`, "g"), ".")), parseFloat(n);
|
|
3834
3834
|
};
|
|
3835
|
-
function
|
|
3835
|
+
function Ns(t, e, r, n, s) {
|
|
3836
3836
|
let a = t;
|
|
3837
3837
|
if (typeof a != "number") {
|
|
3838
3838
|
let i;
|
|
@@ -3843,7 +3843,7 @@ function $s(t, e, r, n, s) {
|
|
|
3843
3843
|
const o = Number(a);
|
|
3844
3844
|
return isNaN(o) ? NaN : o;
|
|
3845
3845
|
}
|
|
3846
|
-
function
|
|
3846
|
+
function Ls(t) {
|
|
3847
3847
|
const e = {};
|
|
3848
3848
|
t.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
|
|
3849
3849
|
const r = t.indexOf(".");
|
|
@@ -3873,7 +3873,7 @@ fe.init({
|
|
|
3873
3873
|
default:
|
|
3874
3874
|
case "number": {
|
|
3875
3875
|
const a = n?.inputIsLocalized ?? !1;
|
|
3876
|
-
return
|
|
3876
|
+
return Ds(t, e, a, r);
|
|
3877
3877
|
}
|
|
3878
3878
|
}
|
|
3879
3879
|
} catch {
|
|
@@ -3883,31 +3883,31 @@ fe.init({
|
|
|
3883
3883
|
},
|
|
3884
3884
|
resources: {
|
|
3885
3885
|
en: {
|
|
3886
|
-
translation:
|
|
3886
|
+
translation: Os
|
|
3887
3887
|
},
|
|
3888
3888
|
it: {
|
|
3889
|
-
translation:
|
|
3889
|
+
translation: ws
|
|
3890
3890
|
}
|
|
3891
3891
|
}
|
|
3892
3892
|
});
|
|
3893
|
-
const
|
|
3893
|
+
const As = (t, e, r, n) => fe.format(t, e, r || fe.language, n), Is = (t, e) => fe.t(t, e);
|
|
3894
3894
|
function _e() {
|
|
3895
3895
|
const t = oe(
|
|
3896
|
-
(n, s, a, o) =>
|
|
3896
|
+
(n, s, a, o) => As(n, s, a || void 0, o),
|
|
3897
3897
|
[]
|
|
3898
3898
|
), e = oe(() => fe.languages[0], []), r = oe(
|
|
3899
|
-
(n, s) =>
|
|
3899
|
+
(n, s) => Is(n, s),
|
|
3900
3900
|
[]
|
|
3901
3901
|
);
|
|
3902
3902
|
return { format: t, getCurrentLanguage: e, translate: r };
|
|
3903
3903
|
}
|
|
3904
3904
|
var Re = /* @__PURE__ */ ((t) => (t.CALENDAR_FOR = "Date.CalendarFor", t.CLOSE = "Generic.Close", t.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", t.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", t.CONFIRM_BUTTON = "Generic.ConfirmButton", t.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", t))(Re || {}), we = /* @__PURE__ */ ((t) => (t.ADD_SUB_GROUP = "FilterBuilder.AddSubGroup", t.ADD_FILTER = "FilterBuilder.AddFilter", t.STRING_STARTS = "FilterBuilder.Operator.String.Starts", t.STRING_CONTAINS = "FilterBuilder.Operator.String.Contains", t.STRING_EQUALS = "FilterBuilder.Operator.String.Equals", t.NUMBER_EQUALS = "FilterBuilder.Operator.Number.Equals", t.NUMBER_NOTEQUALS = "FilterBuilder.Operator.Number.NotEquals", t.NUMBER_GREATER = "FilterBuilder.Operator.Number.Greater", t.NUMBER_GREATER_OR_EQUAL = "FilterBuilder.Operator.Number.GreaterOrEqual", t.NUMBER_LESS = "FilterBuilder.Operator.Number.Less", t.NUMBER_LESS_OR_EQUAL = "FilterBuilder.Operator.Number.LessOrEqual", t))(we || {}), ge = /* @__PURE__ */ ((t) => (t.MONDAY = "Day.Monday", t.MONDAY_SHORT = "Day.MondayShort", t.TUESDAY = "Day.Tuesday", t.TUESDAY_SHORT = "Day.TuesdayShort", t.WEDNESDAY = "Day.Wednesday", t.WEDNESDAY_SHORT = "Day.WednesdayShort", t.THURSDAY = "Day.Thursday", t.THURSDAY_SHORT = "Day.ThursdayShort", t.FRIDAY = "Day.Friday", t.FRIDAY_SHORT = "Day.FridayShort", t.SATURDAY = "Day.Saturday", t.SATURDAY_SHORT = "Day.SaturdayShort", t.SUNDAY = "Day.Sunday", t.SUNDAY_SHORT = "Day.SundayShort", t))(ge || {}), ve = /* @__PURE__ */ ((t) => (t.JANUARY = "Month.January", t.FEBRUARY = "Month.February", t.MARCH = "Month.March", t.APRIL = "Month.April", t.MAY = "Month.May", t.JUNE = "Month.June", t.JULY = "Month.July", t.AUGUST = "Month.August", t.SEPTEMBER = "Month.September", t.OCTOBER = "Month.October", t.NOVEMBER = "Month.November", t.DECEMBER = "Month.December", t))(ve || {}), Vt = /* @__PURE__ */ ((t) => (t.PREVIOUS_DAY = "Date.PreviousDay", t.PREVIOUS_WEEK = "Date.PreviousWeek", t.PREVIOUS_MONTH = "Date.PreviousMonth", t.PREVIOUS_YEAR = "Date.PreviousYear", t.NEXT_DAY = "Date.NextDay", t.NEXT_WEEK = "Date.NextWeek", t.NEXT_MONTH = "Date.NextMonth", t.NEXT_YEAR = "Date.NextYear", t.YESTERDAY = "Date.Yesterday", t.TODAY = "Date.Today", t.TOMORROW = "Date.Tomorrow", t))(Vt || {});
|
|
3905
|
-
const
|
|
3905
|
+
const Ps = (t) => t?.type === "SmeupDataTree", Fs = (t) => t?.type === "SmeupDataTable", dt = {
|
|
3906
3906
|
obj: { t: "", p: "", k: "" },
|
|
3907
3907
|
decode: "",
|
|
3908
3908
|
shape: void 0
|
|
3909
3909
|
}, Ye = (t) => {
|
|
3910
|
-
if (
|
|
3910
|
+
if (Fs(t)) {
|
|
3911
3911
|
const e = t, r = e.columns.filter((a) => a.visible !== !1), n = r[0]?.name ?? "", s = r[1]?.name ?? n;
|
|
3912
3912
|
return e.rows.reduce((a, o) => {
|
|
3913
3913
|
const i = {
|
|
@@ -3916,12 +3916,13 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
3916
3916
|
};
|
|
3917
3917
|
return [...a, i];
|
|
3918
3918
|
}, []);
|
|
3919
|
-
} else if (
|
|
3920
|
-
return t.children
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3919
|
+
} else if (Ps(t))
|
|
3920
|
+
return Qr(t.children ?? []);
|
|
3921
|
+
}, Qr = (t) => t?.map((e) => ({
|
|
3922
|
+
...e,
|
|
3923
|
+
decode: e.decode || e.value || e.obj?.k || "",
|
|
3924
|
+
children: Qr(e.children ?? [])
|
|
3925
|
+
})), ft = (t) => t.map((e) => ({
|
|
3925
3926
|
obj: {
|
|
3926
3927
|
t: "",
|
|
3927
3928
|
p: "",
|
|
@@ -3931,7 +3932,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
3931
3932
|
fun: e.fun,
|
|
3932
3933
|
icon: e.icon,
|
|
3933
3934
|
decode: e.label
|
|
3934
|
-
})),
|
|
3935
|
+
})), Zr = ({
|
|
3935
3936
|
bindValue: t,
|
|
3936
3937
|
optionalDisplayValue: e,
|
|
3937
3938
|
options: r,
|
|
@@ -3947,7 +3948,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
3947
3948
|
_multiActiveIndex: f,
|
|
3948
3949
|
...g
|
|
3949
3950
|
}) => {
|
|
3950
|
-
const p = ce(null), [v, w] = q(t), [
|
|
3951
|
+
const p = ce(null), [v, w] = q(t), [C, S] = q(e), { translate: E } = _e(), [y, b] = q(!1), [j, L] = q(
|
|
3951
3952
|
r || []
|
|
3952
3953
|
), [V, I] = q(0), [P, R] = q([t]), { anchorRef: T, targetRef: O, anchorWidth: _ } = Be({
|
|
3953
3954
|
position: "bottom",
|
|
@@ -3956,7 +3957,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
3956
3957
|
b(!1), p?.current?.focus();
|
|
3957
3958
|
}, []);
|
|
3958
3959
|
St([O], y, () => M());
|
|
3959
|
-
const H =
|
|
3960
|
+
const H = Xn(400), X = (D) => {
|
|
3960
3961
|
D.length >= a ? J(D) : M(), w(D), S(""), l || c?.(D, e);
|
|
3961
3962
|
}, J = (D) => {
|
|
3962
3963
|
H(async () => {
|
|
@@ -3995,10 +3996,10 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
3995
3996
|
{
|
|
3996
3997
|
...g,
|
|
3997
3998
|
bindValue: v,
|
|
3998
|
-
optionalDisplayValue:
|
|
3999
|
+
optionalDisplayValue: C,
|
|
3999
4000
|
isEditable: o,
|
|
4000
4001
|
shapeIcon: "magnify",
|
|
4001
|
-
placeholder:
|
|
4002
|
+
placeholder: E(
|
|
4002
4003
|
Re.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
4003
4004
|
),
|
|
4004
4005
|
ref: T,
|
|
@@ -4027,7 +4028,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4027
4028
|
}
|
|
4028
4029
|
) })
|
|
4029
4030
|
] });
|
|
4030
|
-
},
|
|
4031
|
+
}, Ms = ({
|
|
4031
4032
|
options: t,
|
|
4032
4033
|
fun: e,
|
|
4033
4034
|
direction: r = "row",
|
|
@@ -4047,22 +4048,22 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4047
4048
|
const [v, w] = q(t);
|
|
4048
4049
|
re(() => {
|
|
4049
4050
|
!v && p && e && p(e, void 0).then(
|
|
4050
|
-
(
|
|
4051
|
-
).catch((
|
|
4051
|
+
(E) => w(Ye(E))
|
|
4052
|
+
).catch((E) => {
|
|
4052
4053
|
console.error(
|
|
4053
4054
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
4054
|
-
|
|
4055
|
+
E
|
|
4055
4056
|
);
|
|
4056
4057
|
});
|
|
4057
4058
|
}, [v, e, p]);
|
|
4058
|
-
const
|
|
4059
|
+
const C = {
|
|
4059
4060
|
container: `smp-button-list smp-button-list-${r} smp-justifyContent-${n}`
|
|
4060
|
-
}, S = v?.map((
|
|
4061
|
+
}, S = v?.map((E, y) => {
|
|
4061
4062
|
const b = {
|
|
4062
|
-
bindValue:
|
|
4063
|
-
optionalDisplayValue:
|
|
4064
|
-
fun:
|
|
4065
|
-
icon:
|
|
4063
|
+
bindValue: E.obj.k,
|
|
4064
|
+
optionalDisplayValue: E.decode,
|
|
4065
|
+
fun: E.fun,
|
|
4066
|
+
icon: E.icon,
|
|
4066
4067
|
variant: a,
|
|
4067
4068
|
appearance: o,
|
|
4068
4069
|
showText: i,
|
|
@@ -4073,13 +4074,13 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4073
4074
|
justify: u,
|
|
4074
4075
|
squared: f,
|
|
4075
4076
|
onClick: () => {
|
|
4076
|
-
g?.(
|
|
4077
|
+
g?.(E.obj.k, E.fun);
|
|
4077
4078
|
}
|
|
4078
4079
|
};
|
|
4079
4080
|
return /* @__PURE__ */ h.jsx(me, { ...b }, `button-${y}`);
|
|
4080
4081
|
});
|
|
4081
|
-
return /* @__PURE__ */ h.jsx("div", { role: "list", "data-component": "button-list", className:
|
|
4082
|
-
},
|
|
4082
|
+
return /* @__PURE__ */ h.jsx("div", { role: "list", "data-component": "button-list", className: C.container, children: S });
|
|
4083
|
+
}, Vs = {
|
|
4083
4084
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_d8uan_2"
|
|
4084
4085
|
}, qt = ({
|
|
4085
4086
|
bindValue: t,
|
|
@@ -4094,7 +4095,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4094
4095
|
const l = De(), c = (u) => {
|
|
4095
4096
|
s && a && a(u.target.checked);
|
|
4096
4097
|
}, d = {
|
|
4097
|
-
wrapper: `${
|
|
4098
|
+
wrapper: `${Vs["smp-checkbox-wrapper"]}`
|
|
4098
4099
|
};
|
|
4099
4100
|
return /* @__PURE__ */ h.jsxs("div", { className: d.wrapper, "data-component": e, children: [
|
|
4100
4101
|
n && /* @__PURE__ */ h.jsx($e, { label: n, disabled: r, htmlFor: l }),
|
|
@@ -4164,7 +4165,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4164
4165
|
]
|
|
4165
4166
|
},
|
|
4166
4167
|
`chip-${p}`
|
|
4167
|
-
),
|
|
4168
|
+
), C = o && p < t.length - 1 ? /* @__PURE__ */ h.jsx(
|
|
4168
4169
|
de,
|
|
4169
4170
|
{
|
|
4170
4171
|
icon: "chevron-right",
|
|
@@ -4172,7 +4173,7 @@ const Is = (t) => t?.type === "SmeupDataTree", Ps = (t) => t?.type === "SmeupDat
|
|
|
4172
4173
|
},
|
|
4173
4174
|
`separator-${p}`
|
|
4174
4175
|
) : null;
|
|
4175
|
-
return [w,
|
|
4176
|
+
return [w, C].filter(Boolean);
|
|
4176
4177
|
}) });
|
|
4177
4178
|
};
|
|
4178
4179
|
function zt(t, e) {
|
|
@@ -4225,7 +4226,7 @@ const Ut = ({
|
|
|
4225
4226
|
multiActiveIndex: l,
|
|
4226
4227
|
...c
|
|
4227
4228
|
}) => {
|
|
4228
|
-
const d = ce(null), [u, f] = q(!1), [g, p] = q(r), [v, w] = q(-1), [
|
|
4229
|
+
const d = ce(null), [u, f] = q(!1), [g, p] = q(r), [v, w] = q(-1), [C, S] = q([t]), E = De(), { anchorRef: y, targetRef: b, anchorWidth: j } = Be({
|
|
4229
4230
|
position: "bottom",
|
|
4230
4231
|
enabled: u
|
|
4231
4232
|
}), L = oe(() => {
|
|
@@ -4251,8 +4252,8 @@ const Ut = ({
|
|
|
4251
4252
|
{
|
|
4252
4253
|
role: "combobox",
|
|
4253
4254
|
"aria-expanded": u,
|
|
4254
|
-
"aria-controls":
|
|
4255
|
-
"aria-owns":
|
|
4255
|
+
"aria-controls": E,
|
|
4256
|
+
"aria-owns": E,
|
|
4256
4257
|
"data-component": "combobox",
|
|
4257
4258
|
children: [
|
|
4258
4259
|
/* @__PURE__ */ h.jsx(
|
|
@@ -4276,13 +4277,13 @@ const Ut = ({
|
|
|
4276
4277
|
u && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
4277
4278
|
Kr,
|
|
4278
4279
|
{
|
|
4279
|
-
id:
|
|
4280
|
+
id: E,
|
|
4280
4281
|
options: g,
|
|
4281
4282
|
displayMode: a,
|
|
4282
4283
|
ref: b,
|
|
4283
4284
|
isOpen: u,
|
|
4284
4285
|
selectedIndex: v,
|
|
4285
|
-
activeIndex: l ||
|
|
4286
|
+
activeIndex: l || C,
|
|
4286
4287
|
width: j,
|
|
4287
4288
|
onClick: V,
|
|
4288
4289
|
onKeyDown: I
|
|
@@ -4291,10 +4292,10 @@ const Ut = ({
|
|
|
4291
4292
|
]
|
|
4292
4293
|
}
|
|
4293
4294
|
);
|
|
4294
|
-
},
|
|
4295
|
+
}, Us = {
|
|
4295
4296
|
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
|
|
4296
4297
|
};
|
|
4297
|
-
function
|
|
4298
|
+
function Bs({
|
|
4298
4299
|
selectedDate: t,
|
|
4299
4300
|
onDateChange: e,
|
|
4300
4301
|
disabledDateRanges: r = [],
|
|
@@ -4313,7 +4314,7 @@ function Us({
|
|
|
4313
4314
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4314
4315
|
), [p, v] = q(
|
|
4315
4316
|
l ? l.getDate() : null
|
|
4316
|
-
), w = ce(null),
|
|
4317
|
+
), w = ce(null), C = ce([]), S = [
|
|
4317
4318
|
a(ve.JANUARY),
|
|
4318
4319
|
a(ve.FEBRUARY),
|
|
4319
4320
|
a(ve.MARCH),
|
|
@@ -4326,7 +4327,7 @@ function Us({
|
|
|
4326
4327
|
a(ve.OCTOBER),
|
|
4327
4328
|
a(ve.NOVEMBER),
|
|
4328
4329
|
a(ve.DECEMBER)
|
|
4329
|
-
],
|
|
4330
|
+
], E = [
|
|
4330
4331
|
{
|
|
4331
4332
|
value: a(ge.SUNDAY_SHORT),
|
|
4332
4333
|
full: a(ge.SUNDAY)
|
|
@@ -4359,7 +4360,7 @@ function Us({
|
|
|
4359
4360
|
const x = m.start.getTime(), k = m.end.getTime(), D = N.getTime();
|
|
4360
4361
|
return D >= x && D <= k;
|
|
4361
4362
|
}), b = (N) => {
|
|
4362
|
-
y(N) || (c(N), v(N.getDate()), e && e(
|
|
4363
|
+
y(N) || (c(N), v(N.getDate()), e && e(zn(N)));
|
|
4363
4364
|
}, j = () => {
|
|
4364
4365
|
d === 0 ? (u(11), g(f - 1)) : u(d - 1), v(1);
|
|
4365
4366
|
}, L = () => {
|
|
@@ -4368,7 +4369,7 @@ function Us({
|
|
|
4368
4369
|
const m = _.findIndex(
|
|
4369
4370
|
(x) => x !== null && x.getDate() === N
|
|
4370
4371
|
);
|
|
4371
|
-
m !== -1 &&
|
|
4372
|
+
m !== -1 && C.current[m] && (C.current[m]?.focus(), v(N));
|
|
4372
4373
|
}, R = (N, m) => {
|
|
4373
4374
|
const x = _[m];
|
|
4374
4375
|
if (!x) return;
|
|
@@ -4513,12 +4514,12 @@ function Us({
|
|
|
4513
4514
|
const N = _.findIndex(
|
|
4514
4515
|
(m) => m !== null && m.getDate() === p
|
|
4515
4516
|
);
|
|
4516
|
-
N !== -1 &&
|
|
4517
|
+
N !== -1 && C.current[N] && C.current[N]?.focus();
|
|
4517
4518
|
}
|
|
4518
4519
|
}, [d, f, p, _]);
|
|
4519
4520
|
const X = {
|
|
4520
4521
|
label: "smp-datepickercalendar-label",
|
|
4521
|
-
wrapper: `smp-datepickercalendar ${
|
|
4522
|
+
wrapper: `smp-datepickercalendar ${Us["smp-datepickercalendar-position"]}`,
|
|
4522
4523
|
calendar: "smp-datepickercalendar",
|
|
4523
4524
|
table: "smp-datepickercalendar-table",
|
|
4524
4525
|
th: "smp-datepickercalendar-th",
|
|
@@ -4589,7 +4590,7 @@ function Us({
|
|
|
4589
4590
|
"aria-label": `${a(Re.CALENDAR_FOR)} ${S[d]} ${f}`,
|
|
4590
4591
|
className: X.table,
|
|
4591
4592
|
children: [
|
|
4592
|
-
/* @__PURE__ */ h.jsx("thead", { children: /* @__PURE__ */ h.jsx("tr", { children:
|
|
4593
|
+
/* @__PURE__ */ h.jsx("thead", { children: /* @__PURE__ */ h.jsx("tr", { children: E.map((N) => /* @__PURE__ */ h.jsx(
|
|
4593
4594
|
"th",
|
|
4594
4595
|
{
|
|
4595
4596
|
scope: "col",
|
|
@@ -4627,7 +4628,7 @@ function Us({
|
|
|
4627
4628
|
"data-selected": A,
|
|
4628
4629
|
"aria-disabled": B,
|
|
4629
4630
|
ref: (W) => {
|
|
4630
|
-
|
|
4631
|
+
C.current[D] = W;
|
|
4631
4632
|
},
|
|
4632
4633
|
className: X.td(
|
|
4633
4634
|
$,
|
|
@@ -4647,7 +4648,7 @@ function Us({
|
|
|
4647
4648
|
}
|
|
4648
4649
|
);
|
|
4649
4650
|
}
|
|
4650
|
-
const
|
|
4651
|
+
const en = ({
|
|
4651
4652
|
bindValue: t,
|
|
4652
4653
|
placeholder: e,
|
|
4653
4654
|
onChange: r,
|
|
@@ -4664,9 +4665,9 @@ const Zr = ({
|
|
|
4664
4665
|
St([p, g], i, () => {
|
|
4665
4666
|
v();
|
|
4666
4667
|
}), zt(i, p);
|
|
4667
|
-
const { format: w, getCurrentLanguage:
|
|
4668
|
+
const { format: w, getCurrentLanguage: C } = _e(), S = oe(
|
|
4668
4669
|
(I) => {
|
|
4669
|
-
const P = I.length > 5 &&
|
|
4670
|
+
const P = I.length > 5 && Gn(I, C()) || I, R = w(P, void 0, void 0, {
|
|
4670
4671
|
type: "date"
|
|
4671
4672
|
}), T = typeof P != "string", O = T && P.toISOString().substring(0, 10) || "";
|
|
4672
4673
|
return {
|
|
@@ -4676,13 +4677,13 @@ const Zr = ({
|
|
|
4676
4677
|
normalizedDate: P
|
|
4677
4678
|
};
|
|
4678
4679
|
},
|
|
4679
|
-
[
|
|
4680
|
+
[C, w]
|
|
4680
4681
|
);
|
|
4681
4682
|
re(() => {
|
|
4682
4683
|
const { formattedDate: I, isoDate: P, isValid: R } = S(t);
|
|
4683
4684
|
d(R && P || t), f(R && I || t);
|
|
4684
4685
|
}, [t, w, S]);
|
|
4685
|
-
const
|
|
4686
|
+
const E = () => l((I) => !I), y = () => {
|
|
4686
4687
|
j(u);
|
|
4687
4688
|
}, b = (I) => {
|
|
4688
4689
|
j(I), v();
|
|
@@ -4705,7 +4706,7 @@ const Zr = ({
|
|
|
4705
4706
|
onChange: L,
|
|
4706
4707
|
onKeyDown: V,
|
|
4707
4708
|
shapeIcon: "calendar",
|
|
4708
|
-
onShapeIconClick:
|
|
4709
|
+
onShapeIconClick: E,
|
|
4709
4710
|
ref: g,
|
|
4710
4711
|
inputRef: o,
|
|
4711
4712
|
isEditable: s,
|
|
@@ -4714,7 +4715,7 @@ const Zr = ({
|
|
|
4714
4715
|
}
|
|
4715
4716
|
),
|
|
4716
4717
|
i && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
4717
|
-
|
|
4718
|
+
Bs,
|
|
4718
4719
|
{
|
|
4719
4720
|
disabledDateRanges: n,
|
|
4720
4721
|
onDateChange: b,
|
|
@@ -4723,7 +4724,7 @@ const Zr = ({
|
|
|
4723
4724
|
}
|
|
4724
4725
|
) })
|
|
4725
4726
|
] });
|
|
4726
|
-
},
|
|
4727
|
+
}, Ws = ({
|
|
4727
4728
|
elements: t,
|
|
4728
4729
|
displayMode: e,
|
|
4729
4730
|
minimumChars: r,
|
|
@@ -4739,20 +4740,20 @@ const Zr = ({
|
|
|
4739
4740
|
onBlur: f,
|
|
4740
4741
|
...g
|
|
4741
4742
|
}) => {
|
|
4742
|
-
const p = t.map((
|
|
4743
|
-
const
|
|
4744
|
-
if (
|
|
4745
|
-
|
|
4743
|
+
const p = t.map((C) => C.bindValue), v = (C, S) => {
|
|
4744
|
+
const E = [...t];
|
|
4745
|
+
if (C == "")
|
|
4746
|
+
E.pop();
|
|
4746
4747
|
else {
|
|
4747
|
-
const y =
|
|
4748
|
-
(b) => b.bindValue ===
|
|
4748
|
+
const y = E.findIndex(
|
|
4749
|
+
(b) => b.bindValue === C && b.optionalDisplayValue === S
|
|
4749
4750
|
);
|
|
4750
|
-
y >= 0 ?
|
|
4751
|
-
bindValue:
|
|
4751
|
+
y >= 0 ? E.splice(y, 1) : E.push({
|
|
4752
|
+
bindValue: C,
|
|
4752
4753
|
optionalDisplayValue: S
|
|
4753
4754
|
});
|
|
4754
4755
|
}
|
|
4755
|
-
u?.(
|
|
4756
|
+
u?.(E);
|
|
4756
4757
|
}, w = {
|
|
4757
4758
|
container: "smp-multipleAutocomplete-container"
|
|
4758
4759
|
};
|
|
@@ -4769,13 +4770,13 @@ const Zr = ({
|
|
|
4769
4770
|
elements: t,
|
|
4770
4771
|
displayMode: e,
|
|
4771
4772
|
isEditable: s,
|
|
4772
|
-
onChange: (
|
|
4773
|
-
u?.(
|
|
4773
|
+
onChange: (C) => {
|
|
4774
|
+
u?.(C);
|
|
4774
4775
|
}
|
|
4775
4776
|
}
|
|
4776
4777
|
),
|
|
4777
4778
|
/* @__PURE__ */ h.jsx(
|
|
4778
|
-
|
|
4779
|
+
Zr,
|
|
4779
4780
|
{
|
|
4780
4781
|
...g,
|
|
4781
4782
|
bindValue: "",
|
|
@@ -4795,7 +4796,7 @@ const Zr = ({
|
|
|
4795
4796
|
]
|
|
4796
4797
|
}
|
|
4797
4798
|
);
|
|
4798
|
-
},
|
|
4799
|
+
}, Ys = ({ ...t }) => {
|
|
4799
4800
|
const [e, r] = q(!1), n = e ? "visibility-off" : "visibility";
|
|
4800
4801
|
return /* @__PURE__ */ h.jsx(
|
|
4801
4802
|
Oe,
|
|
@@ -4808,7 +4809,7 @@ const Zr = ({
|
|
|
4808
4809
|
"data-component": "password"
|
|
4809
4810
|
}
|
|
4810
4811
|
);
|
|
4811
|
-
},
|
|
4812
|
+
}, Gs = ({ ...t }) => {
|
|
4812
4813
|
const [e, r] = q(t.bindValue), { translate: n } = _e(), s = (o) => {
|
|
4813
4814
|
o.key === "Enter" && (o.preventDefault(), t.onEnter?.(e));
|
|
4814
4815
|
}, a = (o) => {
|
|
@@ -4828,7 +4829,7 @@ const Zr = ({
|
|
|
4828
4829
|
_dataComponent: "search-bar"
|
|
4829
4830
|
}
|
|
4830
4831
|
);
|
|
4831
|
-
},
|
|
4832
|
+
}, qs = ({
|
|
4832
4833
|
bindValue: t,
|
|
4833
4834
|
optionalDisplayValue: e,
|
|
4834
4835
|
label: r
|
|
@@ -4894,7 +4895,7 @@ const Le = (t, e, r) => ({
|
|
|
4894
4895
|
bindValue: n,
|
|
4895
4896
|
optionalDisplayValue: r.length >= s ? r[s] : ""
|
|
4896
4897
|
}));
|
|
4897
|
-
},
|
|
4898
|
+
}, Hs = (t, e) => {
|
|
4898
4899
|
const r = new Ie(
|
|
4899
4900
|
t.obj,
|
|
4900
4901
|
e.map((s) => s.bindValue)
|
|
@@ -4903,7 +4904,7 @@ const Le = (t, e, r) => ({
|
|
|
4903
4904
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4904
4905
|
).getLegacyValue();
|
|
4905
4906
|
return Le(t, r, n);
|
|
4906
|
-
},
|
|
4907
|
+
}, tn = ({
|
|
4907
4908
|
min: t,
|
|
4908
4909
|
max: e,
|
|
4909
4910
|
step: r = 1,
|
|
@@ -4915,7 +4916,7 @@ const Le = (t, e, r) => ({
|
|
|
4915
4916
|
...l
|
|
4916
4917
|
}) => {
|
|
4917
4918
|
const { getCurrentLanguage: c } = _e(), d = ce(null), u = c(), { groupingChar: f, decimalChar: g } = Ke(
|
|
4918
|
-
() =>
|
|
4919
|
+
() => Rs(u, s),
|
|
4919
4920
|
[u, s]
|
|
4920
4921
|
), p = oe(
|
|
4921
4922
|
(T, O) => new Intl.NumberFormat(u, {
|
|
@@ -4924,7 +4925,7 @@ const Le = (t, e, r) => ({
|
|
|
4924
4925
|
useGrouping: !0
|
|
4925
4926
|
}).format(T),
|
|
4926
4927
|
[u]
|
|
4927
|
-
), v = oe(
|
|
4928
|
+
), v = oe($s, [f, g]), w = oe(js, [t, e]), C = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [S, E] = q(C), [y, b] = q(
|
|
4928
4929
|
a != null ? p(a, S) : ""
|
|
4929
4930
|
), j = ce(a ?? null);
|
|
4930
4931
|
re(() => {
|
|
@@ -4933,7 +4934,7 @@ const Le = (t, e, r) => ({
|
|
|
4933
4934
|
return;
|
|
4934
4935
|
}
|
|
4935
4936
|
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, O = T === 0 ? S : T;
|
|
4936
|
-
O !== S &&
|
|
4937
|
+
O !== S && E(O), b(p(a, O)), j.current = a;
|
|
4937
4938
|
}, [a, p]);
|
|
4938
4939
|
const L = oe(
|
|
4939
4940
|
(T, O = !1) => {
|
|
@@ -4949,12 +4950,12 @@ const Le = (t, e, r) => ({
|
|
|
4949
4950
|
} else
|
|
4950
4951
|
b("");
|
|
4951
4952
|
else {
|
|
4952
|
-
const M = w(_, t, e), H =
|
|
4953
|
+
const M = w(_, t, e), H = ks(
|
|
4953
4954
|
T,
|
|
4954
4955
|
f,
|
|
4955
4956
|
g
|
|
4956
4957
|
);
|
|
4957
|
-
|
|
4958
|
+
E(H);
|
|
4958
4959
|
const X = p(M, H);
|
|
4959
4960
|
b(X), j.current = M, o?.(M, X), O && i?.(M);
|
|
4960
4961
|
}
|
|
@@ -5049,7 +5050,7 @@ class Qe {
|
|
|
5049
5050
|
return this.value;
|
|
5050
5051
|
}
|
|
5051
5052
|
}
|
|
5052
|
-
const
|
|
5053
|
+
const zs = ({
|
|
5053
5054
|
disabled: t,
|
|
5054
5055
|
bindValue: e,
|
|
5055
5056
|
onChange: r,
|
|
@@ -5066,11 +5067,11 @@ const Hs = ({
|
|
|
5066
5067
|
rows: g = 10,
|
|
5067
5068
|
cols: p = 35
|
|
5068
5069
|
}) => {
|
|
5069
|
-
const v = De(), w = `${v}-helper`,
|
|
5070
|
+
const v = De(), w = `${v}-helper`, C = d ? "danger" : s, S = c || !!d, E = (b) => {
|
|
5070
5071
|
r?.(b.target.value);
|
|
5071
5072
|
}, y = {
|
|
5072
5073
|
wrapper: "smp-textarea-wrapper",
|
|
5073
|
-
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
5074
|
+
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${C ? `smp-textarea-${C}` : ""} ${a ? `smp-textarea-${a}` : ""} ${o ? "" : "smp-textarea-readOnly"}`
|
|
5074
5075
|
};
|
|
5075
5076
|
return /* @__PURE__ */ h.jsxs("div", { className: y.wrapper, "data-component": "textarea", children: [
|
|
5076
5077
|
i && /* @__PURE__ */ h.jsx($e, { htmlFor: v, label: i, disabled: t }),
|
|
@@ -5080,7 +5081,7 @@ const Hs = ({
|
|
|
5080
5081
|
id: v,
|
|
5081
5082
|
value: e,
|
|
5082
5083
|
placeholder: n,
|
|
5083
|
-
onChange:
|
|
5084
|
+
onChange: E,
|
|
5084
5085
|
onBlur: u,
|
|
5085
5086
|
className: y.container,
|
|
5086
5087
|
disabled: t,
|
|
@@ -5099,7 +5100,7 @@ const Hs = ({
|
|
|
5099
5100
|
id: w,
|
|
5100
5101
|
helperText: d,
|
|
5101
5102
|
disabled: t,
|
|
5102
|
-
state:
|
|
5103
|
+
state: C
|
|
5103
5104
|
}
|
|
5104
5105
|
)
|
|
5105
5106
|
] });
|
|
@@ -5112,7 +5113,7 @@ const Fe = {
|
|
|
5112
5113
|
"smp-radio-element": "_smp-radio-element_1fqe8_20",
|
|
5113
5114
|
"smp-radio-disabled": "_smp-radio-disabled_1fqe8_26",
|
|
5114
5115
|
"smp-radio-horizontal-grid": "_smp-radio-horizontal-grid_1fqe8_32"
|
|
5115
|
-
},
|
|
5116
|
+
}, Ks = ({
|
|
5116
5117
|
disabled: t = !1,
|
|
5117
5118
|
displayMode: e = "DescOnly",
|
|
5118
5119
|
RadLay: r = Bt.PAGE_DIRECTION,
|
|
@@ -5131,18 +5132,18 @@ const Fe = {
|
|
|
5131
5132
|
console.error("Error during loading options (radio)", b);
|
|
5132
5133
|
});
|
|
5133
5134
|
}, [c, a, o]);
|
|
5134
|
-
const f = parseInt(n ?? "", 10), g = r === Bt.LINE_DIRECTION, p = g && !isNaN(f), v = p ? Fe["smp-radio-horizontal-grid"] : g ? Fe["smp-radio-horizontal"] : "", w = p ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0,
|
|
5135
|
+
const f = parseInt(n ?? "", 10), g = r === Bt.LINE_DIRECTION, p = g && !isNaN(f), v = p ? Fe["smp-radio-horizontal-grid"] : g ? Fe["smp-radio-horizontal"] : "", w = p ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0, C = {
|
|
5135
5136
|
container: Fe["smp-radio"],
|
|
5136
5137
|
optionsContainer: `${Fe["smp-radio-options-container"]} ${v}`,
|
|
5137
5138
|
option: `${Fe["smp-radio-element"]} ${t ? Fe["smp-radio-disabled"] : ""}`
|
|
5138
5139
|
}, S = () => {
|
|
5139
5140
|
t || l.onBlur?.();
|
|
5140
|
-
},
|
|
5141
|
+
}, E = (b) => {
|
|
5141
5142
|
t || l.onChange?.(b.obj.k, b.decode);
|
|
5142
5143
|
}, y = De();
|
|
5143
|
-
return /* @__PURE__ */ h.jsxs("div", { "smp-id": "radio-container", className:
|
|
5144
|
+
return /* @__PURE__ */ h.jsxs("div", { "smp-id": "radio-container", className: C.container, id: u, children: [
|
|
5144
5145
|
i && /* @__PURE__ */ h.jsx($e, { label: i, disabled: t, htmlFor: u }),
|
|
5145
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
5146
|
+
/* @__PURE__ */ h.jsx("div", { className: C.optionsContainer, style: w, children: c?.map((b, j) => /* @__PURE__ */ h.jsxs("label", { className: C.option, children: [
|
|
5146
5147
|
/* @__PURE__ */ h.jsx(
|
|
5147
5148
|
"input",
|
|
5148
5149
|
{
|
|
@@ -5151,7 +5152,7 @@ const Fe = {
|
|
|
5151
5152
|
value: b.obj.k,
|
|
5152
5153
|
disabled: t,
|
|
5153
5154
|
checked: b.obj.k === l.bindValue,
|
|
5154
|
-
onChange: () =>
|
|
5155
|
+
onChange: () => E(b),
|
|
5155
5156
|
onBlur: S
|
|
5156
5157
|
}
|
|
5157
5158
|
),
|
|
@@ -5168,7 +5169,7 @@ const Fe = {
|
|
|
5168
5169
|
)
|
|
5169
5170
|
] }, j)) })
|
|
5170
5171
|
] });
|
|
5171
|
-
},
|
|
5172
|
+
}, Js = ({
|
|
5172
5173
|
value: t,
|
|
5173
5174
|
onChange: e,
|
|
5174
5175
|
targetRef: r,
|
|
@@ -5223,13 +5224,13 @@ const Fe = {
|
|
|
5223
5224
|
if (!e) return !1;
|
|
5224
5225
|
const [, r, n, s] = e, a = parseInt(r, 10), o = parseInt(n, 10), i = s ? parseInt(s, 10) : 0;
|
|
5225
5226
|
return a >= 0 && a <= 23 && o >= 0 && o <= 59 && (s === void 0 || i >= 0 && i <= 59);
|
|
5226
|
-
},
|
|
5227
|
+
}, Xs = (t) => {
|
|
5227
5228
|
const e = t.split(":").map((r) => parseInt(r, 10));
|
|
5228
5229
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5229
|
-
},
|
|
5230
|
+
}, Qs = (t, e, r) => {
|
|
5230
5231
|
const n = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", a = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "";
|
|
5231
5232
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5232
|
-
},
|
|
5233
|
+
}, Zs = ({
|
|
5233
5234
|
bindValue: t,
|
|
5234
5235
|
placeholder: e = "HH:MM:SS",
|
|
5235
5236
|
onChange: r,
|
|
@@ -5257,12 +5258,12 @@ const Fe = {
|
|
|
5257
5258
|
n && i((b) => !b);
|
|
5258
5259
|
}, w = (b) => {
|
|
5259
5260
|
u(b);
|
|
5260
|
-
},
|
|
5261
|
-
const V =
|
|
5261
|
+
}, C = (b, j, L) => {
|
|
5262
|
+
const V = Qs(b, j, L);
|
|
5262
5263
|
c(V), u(V), r?.(V), p();
|
|
5263
5264
|
}, S = () => {
|
|
5264
5265
|
y(d);
|
|
5265
|
-
},
|
|
5266
|
+
}, E = (b) => {
|
|
5266
5267
|
b.key === "Enter" && (b.preventDefault(), y(d));
|
|
5267
5268
|
}, y = (b) => {
|
|
5268
5269
|
if (b.trim() === "") {
|
|
@@ -5280,7 +5281,7 @@ const Fe = {
|
|
|
5280
5281
|
placeholder: e,
|
|
5281
5282
|
onChange: w,
|
|
5282
5283
|
onBlur: S,
|
|
5283
|
-
onKeyDown:
|
|
5284
|
+
onKeyDown: E,
|
|
5284
5285
|
shapeIcon: "clock",
|
|
5285
5286
|
onShapeIconClick: v,
|
|
5286
5287
|
isEditable: n,
|
|
@@ -5289,17 +5290,17 @@ const Fe = {
|
|
|
5289
5290
|
}
|
|
5290
5291
|
),
|
|
5291
5292
|
o && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
5292
|
-
|
|
5293
|
+
Js,
|
|
5293
5294
|
{
|
|
5294
|
-
value:
|
|
5295
|
-
onChange:
|
|
5295
|
+
value: Xs(l),
|
|
5296
|
+
onChange: C,
|
|
5296
5297
|
targetRef: g,
|
|
5297
5298
|
isOpen: o
|
|
5298
5299
|
}
|
|
5299
5300
|
) })
|
|
5300
5301
|
] });
|
|
5301
5302
|
};
|
|
5302
|
-
function
|
|
5303
|
+
function ea(t) {
|
|
5303
5304
|
return typeof t == "string" && /^\d{6}$/.test(t);
|
|
5304
5305
|
}
|
|
5305
5306
|
class wt {
|
|
@@ -5331,16 +5332,16 @@ const Pr = /* @__PURE__ */ new Map([
|
|
|
5331
5332
|
"I12",
|
|
5332
5333
|
{
|
|
5333
5334
|
legacyToIso(t) {
|
|
5334
|
-
return
|
|
5335
|
+
return ea(t) && `${t.substring(0, 2)}:${t.substring(2, 4)}:${t.substring(4, 6)}` || t;
|
|
5335
5336
|
},
|
|
5336
5337
|
isoToLegacy(t) {
|
|
5337
5338
|
return t.replaceAll(":", "") || t;
|
|
5338
5339
|
}
|
|
5339
5340
|
}
|
|
5340
5341
|
]
|
|
5341
|
-
]),
|
|
5342
|
+
]), ta = {
|
|
5342
5343
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5343
|
-
}, ue = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t,
|
|
5344
|
+
}, ue = (t) => t == null ? !1 : typeof t == "string" ? t.toLocaleLowerCase() == "yes" || t.toLocaleLowerCase() == "true" : t, rn = ({
|
|
5344
5345
|
bindValue: t,
|
|
5345
5346
|
disabled: e = !1,
|
|
5346
5347
|
label: r,
|
|
@@ -5404,15 +5405,16 @@ function ut(t) {
|
|
|
5404
5405
|
return !Ve(t);
|
|
5405
5406
|
}
|
|
5406
5407
|
const Ce = {
|
|
5407
|
-
"smp-row": "_smp-
|
|
5408
|
-
"smp-row-selected": "_smp-row-
|
|
5409
|
-
"smp-row-data": "_smp-row-
|
|
5410
|
-
"smp-row-clickable": "_smp-row-
|
|
5411
|
-
"smp-row-indent": "_smp-row-
|
|
5412
|
-
"smp-row-toggle": "_smp-row-
|
|
5413
|
-
"smp-row-icon": "_smp-row-
|
|
5414
|
-
"smp-row-wrapperCell": "_smp-row-
|
|
5415
|
-
"smp-row-leftSection": "_smp-row-
|
|
5408
|
+
"smp-row": "_smp-row_1591l_2",
|
|
5409
|
+
"smp-row-selected": "_smp-row-selected_1591l_17",
|
|
5410
|
+
"smp-row-data": "_smp-row-data_1591l_26",
|
|
5411
|
+
"smp-row-clickable": "_smp-row-clickable_1591l_33",
|
|
5412
|
+
"smp-row-indent": "_smp-row-indent_1591l_38",
|
|
5413
|
+
"smp-row-toggle": "_smp-row-toggle_1591l_44",
|
|
5414
|
+
"smp-row-icon": "_smp-row-icon_1591l_49",
|
|
5415
|
+
"smp-row-wrapperCell": "_smp-row-wrapperCell_1591l_55",
|
|
5416
|
+
"smp-row-leftSection": "_smp-row-leftSection_1591l_62",
|
|
5417
|
+
"smp-row-node-label": "_smp-row-node-label_1591l_70"
|
|
5416
5418
|
}, Kt = ({
|
|
5417
5419
|
row: t,
|
|
5418
5420
|
columns: e,
|
|
@@ -5427,39 +5429,29 @@ const Ce = {
|
|
|
5427
5429
|
onNodeClick: d,
|
|
5428
5430
|
onContextMenu: u
|
|
5429
5431
|
}) => {
|
|
5430
|
-
const [f, g] = q(Ve(t)), p = Ve(t) && !!t.children?.length, v = t.cells && Object.keys(t.cells).length > 0, w = p,
|
|
5432
|
+
const [f, g] = q(Ve(t)), p = Ve(t) && !!t.children?.length, v = t.cells && Object.keys(t.cells).length > 0, w = p, C = n * 20, S = () => {
|
|
5431
5433
|
p && g(!f);
|
|
5432
|
-
},
|
|
5434
|
+
}, E = {
|
|
5433
5435
|
content: `${Ce["smp-row"]} ${ut(t) ? Ce["smp-row-data"] : ""} ${Ve(t) ? Ce["smp-row-clickable"] : ""} ${i ? Ce["smp-row-selected"] : ""}`,
|
|
5434
5436
|
toggle: `${Ce["smp-row-toggle"]} ${Ce["smp-row-icon"]}`,
|
|
5435
5437
|
indent: `${Ce["smp-row-indent"]}`,
|
|
5436
5438
|
cell: `${Ce["smp-row-wrapperCell"]}`,
|
|
5437
|
-
leftSection: `${Ce["smp-row-leftSection"]}
|
|
5439
|
+
leftSection: `${Ce["smp-row-leftSection"]}`,
|
|
5440
|
+
nodeLabel: Ce["smp-row-node-label"]
|
|
5438
5441
|
}, y = (R) => {
|
|
5439
5442
|
let T = R.shape;
|
|
5440
5443
|
return R.shape === "ACP" || R.shape === "CMB" || R.shape === "ITX" ? T = "LBL" : R.shape === "AML" && (T = "CHI"), /* @__PURE__ */ h.jsx(Ae, { ...R, shape: T, onContextMenu: u });
|
|
5441
|
-
}, b = () => /* @__PURE__ */ h.jsx("span", { className:
|
|
5444
|
+
}, b = () => /* @__PURE__ */ h.jsx("span", { className: E.toggle, children: w && /* @__PURE__ */ h.jsx(
|
|
5442
5445
|
de,
|
|
5443
5446
|
{
|
|
5444
5447
|
icon: f ? "arrow_drop_right" : "arrow_drop_down",
|
|
5445
5448
|
width: 16
|
|
5446
5449
|
}
|
|
5447
|
-
) }), j = (R) => /* @__PURE__ */ h.jsx(
|
|
5450
|
+
) }), j = (R, T) => /* @__PURE__ */ h.jsx("span", { className: E.toggle, children: /* @__PURE__ */ h.jsx(de, { icon: R, placeholderIcon: T, width: 16 }) }), L = () => /* @__PURE__ */ h.jsx(
|
|
5448
5451
|
"span",
|
|
5449
5452
|
{
|
|
5450
|
-
className:
|
|
5451
|
-
style: {
|
|
5452
|
-
...p && {
|
|
5453
|
-
paddingLeft: 0
|
|
5454
|
-
}
|
|
5455
|
-
},
|
|
5456
|
-
children: /* @__PURE__ */ h.jsx(de, { icon: R, width: 16 })
|
|
5457
|
-
}
|
|
5458
|
-
), L = () => /* @__PURE__ */ h.jsx(
|
|
5459
|
-
"span",
|
|
5460
|
-
{
|
|
5461
|
-
className: C.indent,
|
|
5462
|
-
style: { width: `${E}px` },
|
|
5453
|
+
className: E.indent,
|
|
5454
|
+
style: { width: `${C}px` },
|
|
5463
5455
|
"aria-hidden": "true"
|
|
5464
5456
|
}
|
|
5465
5457
|
), V = () => {
|
|
@@ -5484,7 +5476,7 @@ const Ce = {
|
|
|
5484
5476
|
return /* @__PURE__ */ h.jsxs(
|
|
5485
5477
|
"tr",
|
|
5486
5478
|
{
|
|
5487
|
-
className:
|
|
5479
|
+
className: E.content,
|
|
5488
5480
|
onClick: S,
|
|
5489
5481
|
role: Ve(t) ? "button" : "row",
|
|
5490
5482
|
"aria-expanded": p ? !f : void 0,
|
|
@@ -5493,7 +5485,7 @@ const Ce = {
|
|
|
5493
5485
|
o && /* @__PURE__ */ h.jsx(
|
|
5494
5486
|
"td",
|
|
5495
5487
|
{
|
|
5496
|
-
className:
|
|
5488
|
+
className: E.cell,
|
|
5497
5489
|
style: {
|
|
5498
5490
|
height: `${s}px`,
|
|
5499
5491
|
minWidth: 40,
|
|
@@ -5505,7 +5497,7 @@ const Ce = {
|
|
|
5505
5497
|
Ve(t) && /* @__PURE__ */ h.jsxs(
|
|
5506
5498
|
"td",
|
|
5507
5499
|
{
|
|
5508
|
-
className:
|
|
5500
|
+
className: E.leftSection,
|
|
5509
5501
|
style: {
|
|
5510
5502
|
height: `${s}px`
|
|
5511
5503
|
},
|
|
@@ -5513,8 +5505,8 @@ const Ce = {
|
|
|
5513
5505
|
children: [
|
|
5514
5506
|
L(),
|
|
5515
5507
|
b(),
|
|
5516
|
-
t.icon && j(t.icon),
|
|
5517
|
-
/* @__PURE__ */ h.jsx("span", { className:
|
|
5508
|
+
t.icon && j(t.icon, t.placeholderIcon),
|
|
5509
|
+
/* @__PURE__ */ h.jsx("span", { className: E.nodeLabel, children: R })
|
|
5518
5510
|
]
|
|
5519
5511
|
}
|
|
5520
5512
|
),
|
|
@@ -5523,7 +5515,7 @@ const Ce = {
|
|
|
5523
5515
|
return H ? /* @__PURE__ */ h.jsx(
|
|
5524
5516
|
"td",
|
|
5525
5517
|
{
|
|
5526
|
-
className:
|
|
5518
|
+
className: E.cell,
|
|
5527
5519
|
onClick: () => {
|
|
5528
5520
|
c?.(t, _.name);
|
|
5529
5521
|
},
|
|
@@ -5544,7 +5536,7 @@ const Ce = {
|
|
|
5544
5536
|
return H ? /* @__PURE__ */ h.jsx(
|
|
5545
5537
|
"td",
|
|
5546
5538
|
{
|
|
5547
|
-
className:
|
|
5539
|
+
className: E.cell,
|
|
5548
5540
|
style: {
|
|
5549
5541
|
height: `${s}px`
|
|
5550
5542
|
},
|
|
@@ -5575,13 +5567,17 @@ const Ce = {
|
|
|
5575
5567
|
I(),
|
|
5576
5568
|
P()
|
|
5577
5569
|
] });
|
|
5578
|
-
},
|
|
5570
|
+
}, ra = ({ fun: t, onOptionsRequest: e, onClick: r }) => {
|
|
5579
5571
|
const [n, s] = q(void 0);
|
|
5580
|
-
|
|
5581
|
-
!n && e && t && e(t, void 0).then((
|
|
5582
|
-
console.error("Errore nel caricamento delle opzioni per il Tree",
|
|
5572
|
+
re(() => {
|
|
5573
|
+
!n && e && t && e(t, void 0).then((o) => s(Ye(o))).catch((o) => {
|
|
5574
|
+
console.error("Errore nel caricamento delle opzioni per il Tree", o);
|
|
5583
5575
|
});
|
|
5584
|
-
}, [n, t, e])
|
|
5576
|
+
}, [n, t, e]);
|
|
5577
|
+
const a = {
|
|
5578
|
+
table: "smp-tree"
|
|
5579
|
+
};
|
|
5580
|
+
return n && n.length && /* @__PURE__ */ h.jsx("table", { className: a.table, children: /* @__PURE__ */ h.jsx("tbody", { children: n.map((o, i) => /* @__PURE__ */ h.jsx(Kt, { row: o, onNodeClick: r }, i)) }) });
|
|
5585
5581
|
}, Ae = ({
|
|
5586
5582
|
id: t,
|
|
5587
5583
|
decode: e,
|
|
@@ -5600,9 +5596,9 @@ const Ce = {
|
|
|
5600
5596
|
onEnter: p,
|
|
5601
5597
|
onBlur: v,
|
|
5602
5598
|
onOptionsRequest: w,
|
|
5603
|
-
onContextMenu:
|
|
5599
|
+
onContextMenu: C,
|
|
5604
5600
|
isEditable: S,
|
|
5605
|
-
dSep:
|
|
5601
|
+
dSep: E = "."
|
|
5606
5602
|
}) => {
|
|
5607
5603
|
const y = {
|
|
5608
5604
|
obj: {
|
|
@@ -5626,14 +5622,14 @@ const Ce = {
|
|
|
5626
5622
|
isEditable: S,
|
|
5627
5623
|
size: y.data && y.data.size ? y.data.size : 20,
|
|
5628
5624
|
...s
|
|
5629
|
-
}, L = (O, _, M) =>
|
|
5625
|
+
}, L = (O, _, M) => Bn(n) ? Le(O, new bt(n, _).getLegacyValue()) : Wn(n) ? Le(O, new wt(n, _).getLegacyValue()) : u?.forceUppercase ? Le(
|
|
5630
5626
|
O,
|
|
5631
5627
|
_.toLocaleUpperCase(),
|
|
5632
5628
|
M
|
|
5633
5629
|
) : Le(O, _, M), V = (O, _) => Le(
|
|
5634
5630
|
O,
|
|
5635
|
-
new Qe(n, _,
|
|
5636
|
-
), I = (O) => Le(y, new gt(n, O).getLegacyValue()), P = (O) =>
|
|
5631
|
+
new Qe(n, _, E).getLegacyValue()
|
|
5632
|
+
), I = (O) => Le(y, new gt(n, O).getLegacyValue()), P = (O) => Hs(y, O), R = () => {
|
|
5637
5633
|
switch (b) {
|
|
5638
5634
|
case te.AUTOCOMPLETE: {
|
|
5639
5635
|
const O = {
|
|
@@ -5644,7 +5640,7 @@ const Ce = {
|
|
|
5644
5640
|
f?.(L(y, _, M));
|
|
5645
5641
|
}
|
|
5646
5642
|
};
|
|
5647
|
-
return /* @__PURE__ */ h.jsx(
|
|
5643
|
+
return /* @__PURE__ */ h.jsx(Zr, { ...O });
|
|
5648
5644
|
}
|
|
5649
5645
|
case te.BUTTON: {
|
|
5650
5646
|
const O = s?.label && typeof s.label == "string" ? s.label : void 0, _ = {
|
|
@@ -5667,7 +5663,7 @@ const Ce = {
|
|
|
5667
5663
|
g?.(L(H, _));
|
|
5668
5664
|
}
|
|
5669
5665
|
};
|
|
5670
|
-
return /* @__PURE__ */ h.jsx(
|
|
5666
|
+
return /* @__PURE__ */ h.jsx(Ms, { ...O });
|
|
5671
5667
|
}
|
|
5672
5668
|
case te.CHIP: {
|
|
5673
5669
|
const O = {
|
|
@@ -5708,7 +5704,7 @@ const Ce = {
|
|
|
5708
5704
|
f?.(L(y, _));
|
|
5709
5705
|
}
|
|
5710
5706
|
};
|
|
5711
|
-
return /* @__PURE__ */ h.jsx(
|
|
5707
|
+
return /* @__PURE__ */ h.jsx(en, { ...O });
|
|
5712
5708
|
}
|
|
5713
5709
|
case te.ICON:
|
|
5714
5710
|
case te.IMAGE: {
|
|
@@ -5725,12 +5721,12 @@ const Ce = {
|
|
|
5725
5721
|
case te.INPUT_NUMBER: {
|
|
5726
5722
|
const O = {
|
|
5727
5723
|
...j,
|
|
5728
|
-
bindValue: Qe.fromDataObj(n,
|
|
5724
|
+
bindValue: Qe.fromDataObj(n, E).getValue(),
|
|
5729
5725
|
onChange: (_) => {
|
|
5730
5726
|
f?.(V(y, _));
|
|
5731
5727
|
}
|
|
5732
5728
|
};
|
|
5733
|
-
return /* @__PURE__ */ h.jsx(
|
|
5729
|
+
return /* @__PURE__ */ h.jsx(tn, { ...O });
|
|
5734
5730
|
}
|
|
5735
5731
|
case te.EDITOR:
|
|
5736
5732
|
case te.MEMO: {
|
|
@@ -5742,7 +5738,7 @@ const Ce = {
|
|
|
5742
5738
|
f?.(L(y, _));
|
|
5743
5739
|
}
|
|
5744
5740
|
};
|
|
5745
|
-
return /* @__PURE__ */ h.jsx(
|
|
5741
|
+
return /* @__PURE__ */ h.jsx(zs, { ...O });
|
|
5746
5742
|
}
|
|
5747
5743
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5748
5744
|
const O = {
|
|
@@ -5752,7 +5748,7 @@ const Ce = {
|
|
|
5752
5748
|
f?.(P(_));
|
|
5753
5749
|
}
|
|
5754
5750
|
};
|
|
5755
|
-
return /* @__PURE__ */ h.jsx(
|
|
5751
|
+
return /* @__PURE__ */ h.jsx(Ws, { ...O });
|
|
5756
5752
|
}
|
|
5757
5753
|
case te.MULTI_CONFIG: {
|
|
5758
5754
|
const O = {
|
|
@@ -5775,7 +5771,7 @@ const Ce = {
|
|
|
5775
5771
|
f?.(L(y, _));
|
|
5776
5772
|
}
|
|
5777
5773
|
};
|
|
5778
|
-
return /* @__PURE__ */ h.jsx(
|
|
5774
|
+
return /* @__PURE__ */ h.jsx(Ys, { ...O });
|
|
5779
5775
|
}
|
|
5780
5776
|
case te.RADIO: {
|
|
5781
5777
|
const O = {
|
|
@@ -5785,7 +5781,7 @@ const Ce = {
|
|
|
5785
5781
|
f?.(L(y, _, M));
|
|
5786
5782
|
}
|
|
5787
5783
|
};
|
|
5788
|
-
return /* @__PURE__ */ h.jsx(
|
|
5784
|
+
return /* @__PURE__ */ h.jsx(Ks, { ...O });
|
|
5789
5785
|
}
|
|
5790
5786
|
case te.SPOTLIGHT: {
|
|
5791
5787
|
const O = {
|
|
@@ -5798,7 +5794,7 @@ const Ce = {
|
|
|
5798
5794
|
f?.(L(y, _, M));
|
|
5799
5795
|
}
|
|
5800
5796
|
};
|
|
5801
|
-
return /* @__PURE__ */ h.jsx(
|
|
5797
|
+
return /* @__PURE__ */ h.jsx(Gs, { ...O });
|
|
5802
5798
|
}
|
|
5803
5799
|
case te.TEXT_FIELD: {
|
|
5804
5800
|
const O = {
|
|
@@ -5819,7 +5815,7 @@ const Ce = {
|
|
|
5819
5815
|
f?.(L(y, _, M));
|
|
5820
5816
|
}
|
|
5821
5817
|
};
|
|
5822
|
-
return /* @__PURE__ */ h.jsx(
|
|
5818
|
+
return /* @__PURE__ */ h.jsx(rn, { ...O });
|
|
5823
5819
|
}
|
|
5824
5820
|
case te.TIME: {
|
|
5825
5821
|
const O = {
|
|
@@ -5829,7 +5825,7 @@ const Ce = {
|
|
|
5829
5825
|
f?.(L(y, _));
|
|
5830
5826
|
}
|
|
5831
5827
|
};
|
|
5832
|
-
return /* @__PURE__ */ h.jsx(
|
|
5828
|
+
return /* @__PURE__ */ h.jsx(Zs, { ...O });
|
|
5833
5829
|
}
|
|
5834
5830
|
case te.TREE: {
|
|
5835
5831
|
const O = {
|
|
@@ -5838,7 +5834,7 @@ const Ce = {
|
|
|
5838
5834
|
g?.(_);
|
|
5839
5835
|
}
|
|
5840
5836
|
};
|
|
5841
|
-
return /* @__PURE__ */ h.jsx(
|
|
5837
|
+
return /* @__PURE__ */ h.jsx(ra, { ...O });
|
|
5842
5838
|
}
|
|
5843
5839
|
default: {
|
|
5844
5840
|
const O = {
|
|
@@ -5846,23 +5842,23 @@ const Ce = {
|
|
|
5846
5842
|
bindValue: y.obj.k,
|
|
5847
5843
|
optionalDisplayValue: e
|
|
5848
5844
|
};
|
|
5849
|
-
return /* @__PURE__ */ h.jsx(
|
|
5845
|
+
return /* @__PURE__ */ h.jsx(qs, { ...O });
|
|
5850
5846
|
}
|
|
5851
5847
|
}
|
|
5852
5848
|
}, T = {
|
|
5853
|
-
wrapper: `${
|
|
5849
|
+
wrapper: `${ta["smp-cell-wrapper"]}`
|
|
5854
5850
|
};
|
|
5855
5851
|
return /* @__PURE__ */ h.jsx(
|
|
5856
5852
|
"span",
|
|
5857
5853
|
{
|
|
5858
5854
|
className: T.wrapper,
|
|
5859
5855
|
onContextMenu: (O) => {
|
|
5860
|
-
|
|
5856
|
+
C && c && (O.preventDefault(), C(y, O.currentTarget));
|
|
5861
5857
|
},
|
|
5862
5858
|
children: R()
|
|
5863
5859
|
}
|
|
5864
5860
|
);
|
|
5865
|
-
},
|
|
5861
|
+
}, $a = ({
|
|
5866
5862
|
data: t,
|
|
5867
5863
|
onClick: e,
|
|
5868
5864
|
onEnter: r,
|
|
@@ -5912,7 +5908,7 @@ const Ce = {
|
|
|
5912
5908
|
return re(() => {
|
|
5913
5909
|
t && a(o(t));
|
|
5914
5910
|
}, [t, o]), !t?.rows?.length || !t.columns?.length ? null : s && /* @__PURE__ */ h.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ h.jsx(mt, { layout: t.rows[0].layout, children: Object.values(s).map((i) => /* @__PURE__ */ h.jsx(Ae, { ...i })) }) });
|
|
5915
|
-
},
|
|
5911
|
+
}, Na = ({
|
|
5916
5912
|
data: t,
|
|
5917
5913
|
logo: e,
|
|
5918
5914
|
open: r,
|
|
@@ -5965,7 +5961,7 @@ const Ce = {
|
|
|
5965
5961
|
}, {});
|
|
5966
5962
|
},
|
|
5967
5963
|
[f, n, a, o, l, c]
|
|
5968
|
-
),
|
|
5964
|
+
), C = oe(() => {
|
|
5969
5965
|
i?.();
|
|
5970
5966
|
}, [i]), S = () => {
|
|
5971
5967
|
ue(n) ? g((y) => !y) : (g(!1), i?.());
|
|
@@ -5990,7 +5986,7 @@ const Ce = {
|
|
|
5990
5986
|
r !== void 0 && !ue(n) && g(r);
|
|
5991
5987
|
}, [n, r]), !t?.rows?.length || !t.columns?.length)
|
|
5992
5988
|
return null;
|
|
5993
|
-
const
|
|
5989
|
+
const E = {
|
|
5994
5990
|
drawer: `smp-drawer ${ue(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!ue(n) && !f ? "smp-drawer-no-border" : ""}`,
|
|
5995
5991
|
container: "smp-drawer-container",
|
|
5996
5992
|
containerHeader: "smp-drawer-container-header",
|
|
@@ -6005,21 +6001,21 @@ const Ce = {
|
|
|
6005
6001
|
{
|
|
6006
6002
|
"aria-hidden": "true",
|
|
6007
6003
|
"aria-label": "drawer-backdrop",
|
|
6008
|
-
className:
|
|
6009
|
-
onClick:
|
|
6004
|
+
className: E.backdrop,
|
|
6005
|
+
onClick: C
|
|
6010
6006
|
}
|
|
6011
6007
|
),
|
|
6012
6008
|
/* @__PURE__ */ h.jsx(
|
|
6013
6009
|
"aside",
|
|
6014
6010
|
{
|
|
6015
6011
|
ref: p,
|
|
6016
|
-
className:
|
|
6012
|
+
className: E.drawer,
|
|
6017
6013
|
style: { height: v },
|
|
6018
6014
|
"aria-label": "Drawer",
|
|
6019
6015
|
"smp-id": "drawer",
|
|
6020
|
-
children: /* @__PURE__ */ h.jsxs("div", { className:
|
|
6021
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
6022
|
-
e && /* @__PURE__ */ h.jsx("div", { className:
|
|
6016
|
+
children: /* @__PURE__ */ h.jsxs("div", { className: E.container, children: [
|
|
6017
|
+
/* @__PURE__ */ h.jsxs("div", { className: E.containerHeader, children: [
|
|
6018
|
+
e && /* @__PURE__ */ h.jsx("div", { className: E.containerLogo, children: /* @__PURE__ */ h.jsx(
|
|
6023
6019
|
de,
|
|
6024
6020
|
{
|
|
6025
6021
|
icon: e,
|
|
@@ -6028,7 +6024,7 @@ const Ce = {
|
|
|
6028
6024
|
height: 24
|
|
6029
6025
|
}
|
|
6030
6026
|
) }),
|
|
6031
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
6027
|
+
/* @__PURE__ */ h.jsx("div", { className: E.containerIcon, children: /* @__PURE__ */ h.jsx(
|
|
6032
6028
|
de,
|
|
6033
6029
|
{
|
|
6034
6030
|
icon: ue(n) ? "menu_close" : "close",
|
|
@@ -6041,12 +6037,12 @@ const Ce = {
|
|
|
6041
6037
|
}
|
|
6042
6038
|
) })
|
|
6043
6039
|
] }),
|
|
6044
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
6040
|
+
/* @__PURE__ */ h.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ h.jsx(mt, { layout: t.rows[0].layout, children: Object.values(d).map((y) => /* @__PURE__ */ h.jsx(Ae, { ...y })) }) })
|
|
6045
6041
|
] })
|
|
6046
6042
|
}
|
|
6047
6043
|
)
|
|
6048
6044
|
] });
|
|
6049
|
-
},
|
|
6045
|
+
}, La = ({
|
|
6050
6046
|
ColumnsNumber: t = 1,
|
|
6051
6047
|
data: e = {},
|
|
6052
6048
|
ForceText: r,
|
|
@@ -6064,9 +6060,9 @@ const Ce = {
|
|
|
6064
6060
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
6065
6061
|
ForceValue: v,
|
|
6066
6062
|
ValueColName: w,
|
|
6067
|
-
ValueColor:
|
|
6063
|
+
ValueColor: C = "var(--smp-dashList-color-base)",
|
|
6068
6064
|
SelectLayout: S = "1",
|
|
6069
|
-
onClick:
|
|
6065
|
+
onClick: E
|
|
6070
6066
|
}) => {
|
|
6071
6067
|
const y = "N/A", b = e?.columns || [], j = e?.rows || [], L = j.length > 0, V = "--smp-dashList-color", I = "smp-layout", P = "descr", R = "icon", T = "um", O = "value", _ = o || "1em", M = "18px", H = "--smp-dashList-columns", X = "--smp-dashList-fontSize", J = {
|
|
6072
6068
|
dash: (G = "1") => {
|
|
@@ -6112,7 +6108,7 @@ const Ce = {
|
|
|
6112
6108
|
value: v || ee(w) || U(0) || ""
|
|
6113
6109
|
};
|
|
6114
6110
|
}, B = (G) => {
|
|
6115
|
-
|
|
6111
|
+
E?.(G);
|
|
6116
6112
|
}, W = (G, ee) => {
|
|
6117
6113
|
(G.key === "Enter" || G.key === " ") && (G.preventDefault(), G.stopPropagation(), B(ee));
|
|
6118
6114
|
}, z = ((G) => {
|
|
@@ -6136,7 +6132,7 @@ const Ce = {
|
|
|
6136
6132
|
const { descr: ee, icon: U, um: K, value: le } = Y(G), he = {
|
|
6137
6133
|
[k(P)]: D(s),
|
|
6138
6134
|
[k(T)]: D(p),
|
|
6139
|
-
[k(O)]: D(
|
|
6135
|
+
[k(O)]: D(C)
|
|
6140
6136
|
}, ae = [], xe = $(le);
|
|
6141
6137
|
switch (S) {
|
|
6142
6138
|
case "2":
|
|
@@ -6168,14 +6164,14 @@ const Ce = {
|
|
|
6168
6164
|
[X]: _
|
|
6169
6165
|
};
|
|
6170
6166
|
return /* @__PURE__ */ h.jsx("div", { className: J.dashList, style: F, children: L ? j.map((G) => ie(G)) : y });
|
|
6171
|
-
},
|
|
6167
|
+
}, nn = {
|
|
6172
6168
|
"smp-table": "_smp-table_v715o_1"
|
|
6173
6169
|
};
|
|
6174
|
-
function
|
|
6170
|
+
function na(t, e) {
|
|
6175
6171
|
const r = new Set(t);
|
|
6176
6172
|
return r.has(e) ? r.delete(e) : r.add(e), r;
|
|
6177
6173
|
}
|
|
6178
|
-
function
|
|
6174
|
+
function sa(t, e) {
|
|
6179
6175
|
return t.map((r) => {
|
|
6180
6176
|
const n = e.find((s) => s.column === r.bindValue);
|
|
6181
6177
|
return {
|
|
@@ -6184,7 +6180,7 @@ function na(t, e) {
|
|
|
6184
6180
|
};
|
|
6185
6181
|
});
|
|
6186
6182
|
}
|
|
6187
|
-
function
|
|
6183
|
+
function aa(t, e, r, n) {
|
|
6188
6184
|
const s = [];
|
|
6189
6185
|
let a = 0;
|
|
6190
6186
|
return o(t, 0, []), { flatRows: s, offset: a };
|
|
@@ -6194,9 +6190,9 @@ function sa(t, e, r, n) {
|
|
|
6194
6190
|
return;
|
|
6195
6191
|
}
|
|
6196
6192
|
const p = e[f].column, v = i(u, p);
|
|
6197
|
-
for (const [w,
|
|
6198
|
-
const S = [...g, w],
|
|
6199
|
-
s.push(c(w,
|
|
6193
|
+
for (const [w, C] of v) {
|
|
6194
|
+
const S = [...g, w], E = l(S, f), y = n.has(E);
|
|
6195
|
+
s.push(c(w, E, f, y)), a += r, y && o(C, f + 1, S);
|
|
6200
6196
|
}
|
|
6201
6197
|
}
|
|
6202
6198
|
function i(u, f) {
|
|
@@ -6225,7 +6221,7 @@ function sa(t, e, r, n) {
|
|
|
6225
6221
|
s.push(f), a += r;
|
|
6226
6222
|
}
|
|
6227
6223
|
}
|
|
6228
|
-
const
|
|
6224
|
+
const oa = ({
|
|
6229
6225
|
columns: t,
|
|
6230
6226
|
rows: e,
|
|
6231
6227
|
containerRef: r,
|
|
@@ -6259,7 +6255,7 @@ const aa = ({
|
|
|
6259
6255
|
}
|
|
6260
6256
|
}, [t, e, r, n]), [s, a];
|
|
6261
6257
|
};
|
|
6262
|
-
function
|
|
6258
|
+
function ia(t, e) {
|
|
6263
6259
|
return t.map((r) => ({
|
|
6264
6260
|
id: r.name,
|
|
6265
6261
|
label: r.title,
|
|
@@ -6267,17 +6263,17 @@ function oa(t, e) {
|
|
|
6267
6263
|
}));
|
|
6268
6264
|
}
|
|
6269
6265
|
function Fr(t, e) {
|
|
6270
|
-
return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ?
|
|
6266
|
+
return t ? typeof t == "object" && "logic" in t && "filters" in t ? t : typeof t == "string" ? la(t, e) : { logic: "and", filters: [] } : { logic: "and", filters: [] };
|
|
6271
6267
|
}
|
|
6272
|
-
function
|
|
6268
|
+
function la(t, e) {
|
|
6273
6269
|
const r = t.split("|").map((s) => s.trim()).filter(Boolean), n = [];
|
|
6274
6270
|
for (const s of r) {
|
|
6275
|
-
const a =
|
|
6271
|
+
const a = ca(s, e);
|
|
6276
6272
|
a && n.push(a);
|
|
6277
6273
|
}
|
|
6278
6274
|
return { logic: "and", filters: n };
|
|
6279
6275
|
}
|
|
6280
|
-
function
|
|
6276
|
+
function ca(t, e) {
|
|
6281
6277
|
if (!t.trim()) return null;
|
|
6282
6278
|
if (t.includes(";OR;")) {
|
|
6283
6279
|
const n = t.split(";OR;").map((l) => l.trim()).filter(Boolean);
|
|
@@ -6314,7 +6310,7 @@ function Lt(t, e, r, n) {
|
|
|
6314
6310
|
const c = {
|
|
6315
6311
|
...dt,
|
|
6316
6312
|
obj: { t: "", p: "", k: o }
|
|
6317
|
-
}, d =
|
|
6313
|
+
}, d = ua(i, l.type);
|
|
6318
6314
|
return {
|
|
6319
6315
|
field: l,
|
|
6320
6316
|
columnsType: l.type,
|
|
@@ -6322,7 +6318,7 @@ function Lt(t, e, r, n) {
|
|
|
6322
6318
|
value: d
|
|
6323
6319
|
};
|
|
6324
6320
|
}
|
|
6325
|
-
function
|
|
6321
|
+
function ua(t, e) {
|
|
6326
6322
|
switch (e) {
|
|
6327
6323
|
case "number":
|
|
6328
6324
|
return Number(t);
|
|
@@ -6332,38 +6328,38 @@ function ca(t, e) {
|
|
|
6332
6328
|
return t;
|
|
6333
6329
|
}
|
|
6334
6330
|
}
|
|
6335
|
-
function
|
|
6336
|
-
return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) =>
|
|
6331
|
+
function da(t, e) {
|
|
6332
|
+
return !e || "filters" in e && e.filters.length === 0 ? t : t.filter((r) => sn(e, r));
|
|
6337
6333
|
}
|
|
6338
|
-
function
|
|
6334
|
+
function sn(t, e) {
|
|
6339
6335
|
if ("filters" in t) {
|
|
6340
6336
|
const { logic: r, filters: n } = t;
|
|
6341
6337
|
if (n.length === 0) return !0;
|
|
6342
|
-
const s = n.map((a) =>
|
|
6338
|
+
const s = n.map((a) => sn(a, e));
|
|
6343
6339
|
return r === "and" ? s.every(Boolean) : s.some(Boolean);
|
|
6344
6340
|
}
|
|
6345
|
-
return
|
|
6341
|
+
return fa(t, e);
|
|
6346
6342
|
}
|
|
6347
|
-
function
|
|
6348
|
-
const { field: r, operator: n, value: s, columnsType: a } = t, o = e.cells?.[r.id], i =
|
|
6343
|
+
function fa(t, e) {
|
|
6344
|
+
const { field: r, operator: n, value: s, columnsType: a } = t, o = e.cells?.[r.id], i = pa(o);
|
|
6349
6345
|
if (i == null) return !1;
|
|
6350
6346
|
switch (a) {
|
|
6351
6347
|
case "string":
|
|
6352
|
-
return pa(i, n.obj.k, s);
|
|
6353
|
-
case "number":
|
|
6354
6348
|
return ha(i, n.obj.k, s);
|
|
6355
|
-
case "
|
|
6349
|
+
case "number":
|
|
6356
6350
|
return ma(i, n.obj.k, s);
|
|
6351
|
+
case "date":
|
|
6352
|
+
return ga(i, n.obj.k, s);
|
|
6357
6353
|
default:
|
|
6358
6354
|
return !1;
|
|
6359
6355
|
}
|
|
6360
6356
|
}
|
|
6361
|
-
function
|
|
6357
|
+
function pa(t) {
|
|
6362
6358
|
if (t == null || typeof t != "object") return t;
|
|
6363
6359
|
if ("value" in t) return t.value;
|
|
6364
6360
|
if ("decode" in t) return t.decode;
|
|
6365
6361
|
}
|
|
6366
|
-
function
|
|
6362
|
+
function ha(t, e, r) {
|
|
6367
6363
|
const n = String(t).toLowerCase(), s = String(r).toLowerCase();
|
|
6368
6364
|
switch (e.toLowerCase()) {
|
|
6369
6365
|
case "contains":
|
|
@@ -6378,7 +6374,7 @@ function pa(t, e, r) {
|
|
|
6378
6374
|
return !1;
|
|
6379
6375
|
}
|
|
6380
6376
|
}
|
|
6381
|
-
function
|
|
6377
|
+
function ma(t, e, r) {
|
|
6382
6378
|
const n = Number(t), s = Number(r);
|
|
6383
6379
|
if (isNaN(n) || isNaN(s)) return !1;
|
|
6384
6380
|
switch (e.toLowerCase()) {
|
|
@@ -6398,7 +6394,7 @@ function ha(t, e, r) {
|
|
|
6398
6394
|
return !1;
|
|
6399
6395
|
}
|
|
6400
6396
|
}
|
|
6401
|
-
function
|
|
6397
|
+
function ga(t, e, r) {
|
|
6402
6398
|
const n = new Date(t), s = new Date(r);
|
|
6403
6399
|
if (isNaN(n.getTime()) || isNaN(s.getTime())) return !1;
|
|
6404
6400
|
switch (e.toLowerCase()) {
|
|
@@ -6417,16 +6413,16 @@ function ma(t, e, r) {
|
|
|
6417
6413
|
return !1;
|
|
6418
6414
|
}
|
|
6419
6415
|
}
|
|
6420
|
-
const
|
|
6416
|
+
const ba = (t, e) => {
|
|
6421
6417
|
const r = (n) => n.filters.some(
|
|
6422
6418
|
(s) => "filters" in s ? r(s) : s.field.id === t && s.operator && s.value !== ""
|
|
6423
6419
|
);
|
|
6424
6420
|
return r(e);
|
|
6425
|
-
},
|
|
6421
|
+
}, ya = (t) => {
|
|
6426
6422
|
const e = (r) => r.filters.reduce((n, s) => "filters" in s ? n + e(s) : n + 1, 0);
|
|
6427
6423
|
return e(t);
|
|
6428
6424
|
};
|
|
6429
|
-
function
|
|
6425
|
+
function va(t, e) {
|
|
6430
6426
|
const r = ce(null), n = oe((o) => {
|
|
6431
6427
|
r.current = o;
|
|
6432
6428
|
}, []), s = oe((o) => {
|
|
@@ -6448,7 +6444,7 @@ function ya(t, e) {
|
|
|
6448
6444
|
handleDrop: a
|
|
6449
6445
|
};
|
|
6450
6446
|
}
|
|
6451
|
-
function
|
|
6447
|
+
function an(t, e, r) {
|
|
6452
6448
|
const n = [...t.rows].sort((s, a) => {
|
|
6453
6449
|
const o = s.cells[e]?.obj?.k, i = a.cells[e]?.obj?.k;
|
|
6454
6450
|
return o == null && i != null ? r === "asc" ? 1 : -1 : o != null && i == null ? r === "asc" ? -1 : 1 : o == null && i == null ? 0 : r === "asc" ? String(o).localeCompare(String(i)) : String(i).localeCompare(String(o));
|
|
@@ -6458,10 +6454,10 @@ function sn(t, e, r) {
|
|
|
6458
6454
|
rows: n
|
|
6459
6455
|
};
|
|
6460
6456
|
}
|
|
6461
|
-
function
|
|
6457
|
+
function xa(t) {
|
|
6462
6458
|
const [e, r] = q(null), [n, s] = q("asc");
|
|
6463
6459
|
return {
|
|
6464
|
-
sortedRows: Ke(() => e ?
|
|
6460
|
+
sortedRows: Ke(() => e ? an({ ...t, rows: t.rows }, e, n).rows : t.rows, [t, e, n]),
|
|
6465
6461
|
sortBy: e,
|
|
6466
6462
|
sortOrder: n,
|
|
6467
6463
|
handleSort: (i) => {
|
|
@@ -6469,11 +6465,11 @@ function va(t) {
|
|
|
6469
6465
|
}
|
|
6470
6466
|
};
|
|
6471
6467
|
}
|
|
6472
|
-
const
|
|
6468
|
+
const wa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", { children: /* @__PURE__ */ h.jsx("tr", { children: t.map(
|
|
6473
6469
|
(r) => r.visible && /* @__PURE__ */ h.jsx(
|
|
6474
6470
|
"td",
|
|
6475
6471
|
{
|
|
6476
|
-
className:
|
|
6472
|
+
className: nn["smp-headerCell"],
|
|
6477
6473
|
style: {
|
|
6478
6474
|
width: e[r.name],
|
|
6479
6475
|
minWidth: e[r.name],
|
|
@@ -6482,7 +6478,7 @@ const xa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6482
6478
|
},
|
|
6483
6479
|
r.name
|
|
6484
6480
|
)
|
|
6485
|
-
) }) }),
|
|
6481
|
+
) }) }), Sa = ({
|
|
6486
6482
|
label: t,
|
|
6487
6483
|
rowHeight: e = 28,
|
|
6488
6484
|
offsetTop: r = 0,
|
|
@@ -6526,10 +6522,10 @@ const xa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6526
6522
|
}
|
|
6527
6523
|
);
|
|
6528
6524
|
};
|
|
6529
|
-
function
|
|
6525
|
+
function Ea(t) {
|
|
6530
6526
|
return t.split("|");
|
|
6531
6527
|
}
|
|
6532
|
-
function
|
|
6528
|
+
function Ca(t, e) {
|
|
6533
6529
|
return t.columns.map((r) => ({
|
|
6534
6530
|
...r,
|
|
6535
6531
|
visible: e.includes(r.name)
|
|
@@ -6542,7 +6538,7 @@ const Ue = {
|
|
|
6542
6538
|
"smp-filter-list": "_smp-filter-list_1dest_24",
|
|
6543
6539
|
"smp-filter-toolbar": "_smp-filter-toolbar_1dest_31",
|
|
6544
6540
|
"smp-filter-actionButtons": "_smp-filter-actionButtons_1dest_41"
|
|
6545
|
-
},
|
|
6541
|
+
}, Ta = ({ filter: t, onChange: e, onDelete: r, fieldOptions: n, hasCurrentColumn: s }) => {
|
|
6546
6542
|
const { translate: a } = _e(), o = {
|
|
6547
6543
|
string: ft([
|
|
6548
6544
|
{ id: "st", label: a(we.STRING_STARTS) },
|
|
@@ -6606,7 +6602,7 @@ const Ue = {
|
|
|
6606
6602
|
);
|
|
6607
6603
|
case "number":
|
|
6608
6604
|
return /* @__PURE__ */ h.jsx(
|
|
6609
|
-
|
|
6605
|
+
tn,
|
|
6610
6606
|
{
|
|
6611
6607
|
bindValue: t.value,
|
|
6612
6608
|
onChange: c
|
|
@@ -6614,7 +6610,7 @@ const Ue = {
|
|
|
6614
6610
|
);
|
|
6615
6611
|
case "date":
|
|
6616
6612
|
return /* @__PURE__ */ h.jsx(
|
|
6617
|
-
|
|
6613
|
+
en,
|
|
6618
6614
|
{
|
|
6619
6615
|
bindValue: t.value,
|
|
6620
6616
|
onChange: c
|
|
@@ -6667,7 +6663,7 @@ const Ue = {
|
|
|
6667
6663
|
}
|
|
6668
6664
|
)
|
|
6669
6665
|
] });
|
|
6670
|
-
},
|
|
6666
|
+
}, on = ({
|
|
6671
6667
|
group: t,
|
|
6672
6668
|
onChange: e,
|
|
6673
6669
|
onDelete: r,
|
|
@@ -6679,46 +6675,46 @@ const Ue = {
|
|
|
6679
6675
|
currentColumnName: l,
|
|
6680
6676
|
hasButtonGroup: c = !0
|
|
6681
6677
|
}) => {
|
|
6682
|
-
const { translate: d } = _e(), u = (
|
|
6683
|
-
const
|
|
6684
|
-
C
|
|
6685
|
-
}, f = (
|
|
6678
|
+
const { translate: d } = _e(), u = (C, S) => {
|
|
6679
|
+
const E = [...t.filters];
|
|
6680
|
+
E[C] = S, e({ ...t, filters: E });
|
|
6681
|
+
}, f = (C) => {
|
|
6686
6682
|
const S = [...t.filters];
|
|
6687
|
-
S.splice(
|
|
6683
|
+
S.splice(C, 1), e({ ...t, filters: S });
|
|
6688
6684
|
}, g = () => {
|
|
6689
|
-
const
|
|
6690
|
-
field:
|
|
6691
|
-
columnsType:
|
|
6685
|
+
const C = a[0], S = { ...dt }, E = {
|
|
6686
|
+
field: C,
|
|
6687
|
+
columnsType: C?.type || "string",
|
|
6692
6688
|
operator: S,
|
|
6693
6689
|
value: ""
|
|
6694
6690
|
};
|
|
6695
|
-
e({ ...t, filters: [...t.filters,
|
|
6691
|
+
e({ ...t, filters: [...t.filters, E] });
|
|
6696
6692
|
}, p = () => {
|
|
6697
|
-
let
|
|
6693
|
+
let C;
|
|
6698
6694
|
if (l) {
|
|
6699
|
-
const
|
|
6700
|
-
|
|
6701
|
-
field:
|
|
6702
|
-
columnsType:
|
|
6695
|
+
const E = a.find((b) => b.id === l), y = { ...dt };
|
|
6696
|
+
C = {
|
|
6697
|
+
field: E || a[0] || "",
|
|
6698
|
+
columnsType: E?.type || a[0]?.type || "string",
|
|
6703
6699
|
operator: y,
|
|
6704
6700
|
value: ""
|
|
6705
6701
|
};
|
|
6706
6702
|
} else {
|
|
6707
|
-
const
|
|
6708
|
-
|
|
6703
|
+
const E = { ...dt };
|
|
6704
|
+
C = {
|
|
6709
6705
|
field: a[0] || "",
|
|
6710
6706
|
columnsType: a[0]?.type || "string",
|
|
6711
|
-
operator:
|
|
6707
|
+
operator: E,
|
|
6712
6708
|
value: ""
|
|
6713
6709
|
};
|
|
6714
6710
|
}
|
|
6715
6711
|
const S = {
|
|
6716
6712
|
logic: "and",
|
|
6717
|
-
filters: [
|
|
6713
|
+
filters: [C]
|
|
6718
6714
|
};
|
|
6719
6715
|
e({ ...t, filters: [...t.filters, S] });
|
|
6720
|
-
}, v = (
|
|
6721
|
-
e({ ...t, logic:
|
|
6716
|
+
}, v = (C) => {
|
|
6717
|
+
e({ ...t, logic: C });
|
|
6722
6718
|
}, w = {
|
|
6723
6719
|
filterGroup: `${Ue["smp-filter-group"]}`,
|
|
6724
6720
|
filterToolbar: `${Ue["smp-filter-toolbar"]}`,
|
|
@@ -6734,7 +6730,7 @@ const Ue = {
|
|
|
6734
6730
|
children: [
|
|
6735
6731
|
/* @__PURE__ */ h.jsxs("div", { className: w.filterToolbar, children: [
|
|
6736
6732
|
c && /* @__PURE__ */ h.jsx(
|
|
6737
|
-
|
|
6733
|
+
rn,
|
|
6738
6734
|
{
|
|
6739
6735
|
options: ft([
|
|
6740
6736
|
{ id: "and", label: "AND" },
|
|
@@ -6791,12 +6787,12 @@ const Ue = {
|
|
|
6791
6787
|
)
|
|
6792
6788
|
] })
|
|
6793
6789
|
] }),
|
|
6794
|
-
/* @__PURE__ */ h.jsx("div", { className: w.filterList, children: t.filters.map((
|
|
6795
|
-
({ filter:
|
|
6796
|
-
|
|
6790
|
+
/* @__PURE__ */ h.jsx("div", { className: w.filterList, children: t.filters.map((C, S) => ({ filter: C, index: S })).filter(({ filter: C }) => l ? "logic" in C ? C.filters.some((S) => "logic" in S ? !1 : S.field.id === l) : C.field.id === l : !0).map(
|
|
6791
|
+
({ filter: C, index: S }) => "logic" in C ? /* @__PURE__ */ h.jsx(
|
|
6792
|
+
on,
|
|
6797
6793
|
{
|
|
6798
|
-
group:
|
|
6799
|
-
onChange: (
|
|
6794
|
+
group: C,
|
|
6795
|
+
onChange: (E) => u(S, E),
|
|
6800
6796
|
onDelete: () => f(S),
|
|
6801
6797
|
level: s + 1,
|
|
6802
6798
|
fieldOptions: a,
|
|
@@ -6807,10 +6803,10 @@ const Ue = {
|
|
|
6807
6803
|
},
|
|
6808
6804
|
S
|
|
6809
6805
|
) : /* @__PURE__ */ h.jsx(
|
|
6810
|
-
|
|
6806
|
+
Ta,
|
|
6811
6807
|
{
|
|
6812
|
-
filter:
|
|
6813
|
-
onChange: (
|
|
6808
|
+
filter: C,
|
|
6809
|
+
onChange: (E) => u(S, E),
|
|
6814
6810
|
onDelete: () => f(S),
|
|
6815
6811
|
fieldOptions: a,
|
|
6816
6812
|
hasCurrentColumn: !!l
|
|
@@ -6836,7 +6832,7 @@ const Ue = {
|
|
|
6836
6832
|
filterWrapper: `${Ue["smp-filter-wrapper"]}`
|
|
6837
6833
|
};
|
|
6838
6834
|
return /* @__PURE__ */ h.jsx("div", { className: c.filterWrapper, ref: a, children: /* @__PURE__ */ h.jsx(
|
|
6839
|
-
|
|
6835
|
+
on,
|
|
6840
6836
|
{
|
|
6841
6837
|
group: t,
|
|
6842
6838
|
onChange: e,
|
|
@@ -6848,7 +6844,7 @@ const Ue = {
|
|
|
6848
6844
|
onClose: l
|
|
6849
6845
|
}
|
|
6850
6846
|
) });
|
|
6851
|
-
},
|
|
6847
|
+
}, Oa = ({
|
|
6852
6848
|
groups: t = [],
|
|
6853
6849
|
isDraggable: e = !0,
|
|
6854
6850
|
isEditable: r = !0,
|
|
@@ -6889,7 +6885,7 @@ const Ue = {
|
|
|
6889
6885
|
"smp-resizer": "_smp-resizer_laepr_34",
|
|
6890
6886
|
"smp-datatable-toolbar": "_smp-datatable-toolbar_laepr_52",
|
|
6891
6887
|
"smp-datatable-filter": "_smp-datatable-filter_laepr_53"
|
|
6892
|
-
},
|
|
6888
|
+
}, _a = ({
|
|
6893
6889
|
columns: t,
|
|
6894
6890
|
columnWidths: e,
|
|
6895
6891
|
groups: r,
|
|
@@ -6907,9 +6903,9 @@ const Ue = {
|
|
|
6907
6903
|
onToggleFilter: p,
|
|
6908
6904
|
onToggleColumnFilter: v,
|
|
6909
6905
|
onFiltersChange: w,
|
|
6910
|
-
onResetFilters:
|
|
6906
|
+
onResetFilters: C,
|
|
6911
6907
|
onGroupChange: S,
|
|
6912
|
-
onGroupDrop:
|
|
6908
|
+
onGroupDrop: E,
|
|
6913
6909
|
onGroupDragOver: y,
|
|
6914
6910
|
onMouseDown: b,
|
|
6915
6911
|
onToggleAllRows: j,
|
|
@@ -6925,10 +6921,10 @@ const Ue = {
|
|
|
6925
6921
|
position: "bottom",
|
|
6926
6922
|
enabled: o !== null
|
|
6927
6923
|
}), H = oe(
|
|
6928
|
-
(N) =>
|
|
6924
|
+
(N) => ba(N, i),
|
|
6929
6925
|
[i]
|
|
6930
6926
|
), X = Ke(
|
|
6931
|
-
() =>
|
|
6927
|
+
() => ya(i),
|
|
6932
6928
|
[i]
|
|
6933
6929
|
), J = {
|
|
6934
6930
|
headerCell: `${Ne["smp-headerCell"]}`,
|
|
@@ -6953,7 +6949,7 @@ const Ue = {
|
|
|
6953
6949
|
(c || X > 0) && /* @__PURE__ */ h.jsx(h.Fragment, { children: /* @__PURE__ */ h.jsx(
|
|
6954
6950
|
me,
|
|
6955
6951
|
{
|
|
6956
|
-
onClick:
|
|
6952
|
+
onClick: C,
|
|
6957
6953
|
bindValue: "Reset",
|
|
6958
6954
|
icon: "cancel",
|
|
6959
6955
|
appearance: "ghost",
|
|
@@ -6963,11 +6959,11 @@ const Ue = {
|
|
|
6963
6959
|
) })
|
|
6964
6960
|
] }) }),
|
|
6965
6961
|
(r || s) && /* @__PURE__ */ h.jsx(
|
|
6966
|
-
|
|
6962
|
+
Oa,
|
|
6967
6963
|
{
|
|
6968
6964
|
groups: n,
|
|
6969
6965
|
onChange: S,
|
|
6970
|
-
onDrop:
|
|
6966
|
+
onDrop: E,
|
|
6971
6967
|
onDragOver: y
|
|
6972
6968
|
}
|
|
6973
6969
|
)
|
|
@@ -7092,7 +7088,7 @@ const Ue = {
|
|
|
7092
7088
|
)
|
|
7093
7089
|
] })
|
|
7094
7090
|
] });
|
|
7095
|
-
},
|
|
7091
|
+
}, Aa = ({
|
|
7096
7092
|
data: t,
|
|
7097
7093
|
lineHeight: e = 28,
|
|
7098
7094
|
TableHeight: r = 400,
|
|
@@ -7107,20 +7103,20 @@ const Ue = {
|
|
|
7107
7103
|
onContextMenu: u
|
|
7108
7104
|
}) => {
|
|
7109
7105
|
const [f, g] = q(() => t ? {
|
|
7110
|
-
columns: l ?
|
|
7106
|
+
columns: l ? Ca(t, Ea(l)) : t.columns,
|
|
7111
7107
|
rows: t.rows ?? []
|
|
7112
|
-
} : { columns: [], rows: [] }), [p, v] = q(n || []), [w,
|
|
7108
|
+
} : { columns: [], rows: [] }), [p, v] = q(n || []), [w, C] = q(/* @__PURE__ */ new Set()), [S, E] = q(!1), [y, b] = q(/* @__PURE__ */ new Set()), [j, L] = q(null), V = Ke(() => ia(t?.columns || []), [t?.columns]), [I, P] = q(() => Fr(o, V)), R = ce(null), [T, O] = oa({
|
|
7113
7109
|
columns: f?.columns ?? [],
|
|
7114
7110
|
rows: f?.rows ?? [],
|
|
7115
7111
|
containerRef: R,
|
|
7116
7112
|
sizingMode: s
|
|
7117
|
-
}), { handleDragStart: _, handleDragOver: M, handleDrop: H } =
|
|
7113
|
+
}), { handleDragStart: _, handleDragOver: M, handleDrop: H } = va(
|
|
7118
7114
|
f.columns,
|
|
7119
7115
|
(U) => g((K) => ({ ...K, columns: U }))
|
|
7120
7116
|
), X = Ke(() => {
|
|
7121
7117
|
const U = f.rows.map((K, le) => le);
|
|
7122
7118
|
return U.every((K) => y.has(K)) && U.length > 0;
|
|
7123
|
-
}, [y, f.rows]), { sortBy: J, sortOrder: N, handleSort: m } =
|
|
7119
|
+
}, [y, f.rows]), { sortBy: J, sortOrder: N, handleSort: m } = xa({
|
|
7124
7120
|
...f,
|
|
7125
7121
|
rows: f.rows
|
|
7126
7122
|
}), { virtualItems: x, containerProps: k, innerProps: D } = zr({
|
|
@@ -7136,16 +7132,16 @@ const Ue = {
|
|
|
7136
7132
|
}
|
|
7137
7133
|
}, [y, i, f.rows, d]), re(() => {
|
|
7138
7134
|
let U = t?.rows ?? [];
|
|
7139
|
-
I?.filters?.length > 0 && (U =
|
|
7135
|
+
I?.filters?.length > 0 && (U = da(U, I));
|
|
7140
7136
|
let K = U;
|
|
7141
|
-
J && (K =
|
|
7137
|
+
J && (K = an(
|
|
7142
7138
|
{ ...t ?? { columns: [], rows: [] }, rows: U },
|
|
7143
7139
|
J,
|
|
7144
7140
|
N
|
|
7145
7141
|
).rows);
|
|
7146
7142
|
let le = K;
|
|
7147
7143
|
if (p?.length && K.length > 0) {
|
|
7148
|
-
const { flatRows: he } =
|
|
7144
|
+
const { flatRows: he } = aa(
|
|
7149
7145
|
K,
|
|
7150
7146
|
p,
|
|
7151
7147
|
e,
|
|
@@ -7171,11 +7167,11 @@ const Ue = {
|
|
|
7171
7167
|
}, []), A = oe(() => {
|
|
7172
7168
|
P(Fr(o, V));
|
|
7173
7169
|
}, [o, V]), Y = oe(() => {
|
|
7174
|
-
|
|
7170
|
+
E((U) => !U);
|
|
7175
7171
|
}, []), B = oe((U) => {
|
|
7176
7172
|
L((K) => K === U ? null : U);
|
|
7177
7173
|
}, []), W = (U) => {
|
|
7178
|
-
v(
|
|
7174
|
+
v(sa(U, p));
|
|
7179
7175
|
}, Z = (U) => {
|
|
7180
7176
|
U.preventDefault();
|
|
7181
7177
|
const K = U.dataTransfer.getData("text/plain");
|
|
@@ -7187,10 +7183,10 @@ const Ue = {
|
|
|
7187
7183
|
U.preventDefault();
|
|
7188
7184
|
}, ie = (U, K) => {
|
|
7189
7185
|
const le = U.clientX, he = T[K], ae = (Ct) => {
|
|
7190
|
-
const
|
|
7191
|
-
O((
|
|
7192
|
-
...
|
|
7193
|
-
[K]:
|
|
7186
|
+
const ln = Ct.clientX - le, cn = Math.max(50, he + ln);
|
|
7187
|
+
O((un) => ({
|
|
7188
|
+
...un,
|
|
7189
|
+
[K]: cn
|
|
7194
7190
|
}));
|
|
7195
7191
|
}, xe = () => {
|
|
7196
7192
|
window.removeEventListener("mousemove", ae), window.removeEventListener("mouseup", xe);
|
|
@@ -7205,7 +7201,7 @@ const Ue = {
|
|
|
7205
7201
|
const U = f.rows.map((K, le) => le);
|
|
7206
7202
|
F(U);
|
|
7207
7203
|
}, ee = {
|
|
7208
|
-
smpTable: `${
|
|
7204
|
+
smpTable: `${nn["smp-table"]}`
|
|
7209
7205
|
};
|
|
7210
7206
|
return f && /* @__PURE__ */ h.jsx(
|
|
7211
7207
|
"div",
|
|
@@ -7215,7 +7211,7 @@ const Ue = {
|
|
|
7215
7211
|
ref: R,
|
|
7216
7212
|
children: /* @__PURE__ */ h.jsxs("table", { children: [
|
|
7217
7213
|
/* @__PURE__ */ h.jsx(
|
|
7218
|
-
|
|
7214
|
+
_a,
|
|
7219
7215
|
{
|
|
7220
7216
|
columns: f.columns,
|
|
7221
7217
|
columnWidths: T,
|
|
@@ -7249,7 +7245,7 @@ const Ue = {
|
|
|
7249
7245
|
/* @__PURE__ */ h.jsx("tbody", { ...D, children: x.map(({ item: U, index: K, offsetTop: le }) => {
|
|
7250
7246
|
const he = U.id || U.value || `${U.isGroup ? "group" : "row"}-${K}`;
|
|
7251
7247
|
return U.isGroup ? /* @__PURE__ */ h.jsx(
|
|
7252
|
-
|
|
7248
|
+
Sa,
|
|
7253
7249
|
{
|
|
7254
7250
|
label: U.value || "",
|
|
7255
7251
|
rowHeight: e,
|
|
@@ -7257,7 +7253,7 @@ const Ue = {
|
|
|
7257
7253
|
level: U.level,
|
|
7258
7254
|
onClick: () => {
|
|
7259
7255
|
const ae = U.id;
|
|
7260
|
-
ae &&
|
|
7256
|
+
ae && C((xe) => na(xe, ae));
|
|
7261
7257
|
},
|
|
7262
7258
|
isExpanded: U.isExpanded
|
|
7263
7259
|
},
|
|
@@ -7282,11 +7278,11 @@ const Ue = {
|
|
|
7282
7278
|
`row-${he}`
|
|
7283
7279
|
);
|
|
7284
7280
|
}) }),
|
|
7285
|
-
/* @__PURE__ */ h.jsx(
|
|
7281
|
+
/* @__PURE__ */ h.jsx(wa, { columns: f.columns, columnWidths: T })
|
|
7286
7282
|
] })
|
|
7287
7283
|
}
|
|
7288
7284
|
);
|
|
7289
|
-
},
|
|
7285
|
+
}, Ia = ({
|
|
7290
7286
|
data: t,
|
|
7291
7287
|
Type: e,
|
|
7292
7288
|
ShowSubmit: r = !1,
|
|
@@ -7304,7 +7300,7 @@ const Ue = {
|
|
|
7304
7300
|
if (!t)
|
|
7305
7301
|
return;
|
|
7306
7302
|
const v = { ...t };
|
|
7307
|
-
return e && (v.shape = e), v.shape == null && (v.shape = te.TEXT_FIELD), s && (v.obj =
|
|
7303
|
+
return e && (v.shape = e), v.shape == null && (v.shape = te.TEXT_FIELD), s && (v.obj = Yn(s)), v;
|
|
7308
7304
|
});
|
|
7309
7305
|
}, [t, s, e]);
|
|
7310
7306
|
const g = {
|
|
@@ -7380,9 +7376,9 @@ const Ue = {
|
|
|
7380
7376
|
[a.name]: o
|
|
7381
7377
|
};
|
|
7382
7378
|
}, {});
|
|
7383
|
-
},
|
|
7379
|
+
}, ja = {
|
|
7384
7380
|
"smp-form": "_smp-form_9ox03_1"
|
|
7385
|
-
},
|
|
7381
|
+
}, Pa = ({
|
|
7386
7382
|
data: t,
|
|
7387
7383
|
id: e,
|
|
7388
7384
|
readOnly: r = !1,
|
|
@@ -7398,9 +7394,9 @@ const Ue = {
|
|
|
7398
7394
|
onContextMenu: f,
|
|
7399
7395
|
onButtonClick: g
|
|
7400
7396
|
}) => {
|
|
7401
|
-
const p = ce(!1), v = ce([]), [w,
|
|
7397
|
+
const p = ce(!1), v = ce([]), [w, C] = q(
|
|
7402
7398
|
() => Ur(t, a, r)
|
|
7403
|
-
), { translate: S } = _e(),
|
|
7399
|
+
), { translate: S } = _e(), E = De(), y = ce(null);
|
|
7404
7400
|
re(() => {
|
|
7405
7401
|
const R = y.current;
|
|
7406
7402
|
if (!R) return;
|
|
@@ -7417,14 +7413,14 @@ const Ue = {
|
|
|
7417
7413
|
);
|
|
7418
7414
|
};
|
|
7419
7415
|
}, []), re(() => {
|
|
7420
|
-
p.current ?
|
|
7416
|
+
p.current ? C(Ur(t, a, r)) : (p.current = !0, y.current && y.current.querySelectorAll('[type="text"]').forEach((T) => {
|
|
7421
7417
|
T instanceof HTMLInputElement && v.current.push(T);
|
|
7422
7418
|
}));
|
|
7423
7419
|
}, [t]), re(() => {
|
|
7424
7420
|
o && y.current && v.current.length > 0 && v.current[0].focus();
|
|
7425
7421
|
}, [o]);
|
|
7426
7422
|
const b = (R, T) => {
|
|
7427
|
-
if (
|
|
7423
|
+
if (C((O) => ({
|
|
7428
7424
|
...O,
|
|
7429
7425
|
[R]: {
|
|
7430
7426
|
...O[R],
|
|
@@ -7479,7 +7475,7 @@ const Ue = {
|
|
|
7479
7475
|
obj: w[R].obj,
|
|
7480
7476
|
fun: w[R].fun,
|
|
7481
7477
|
cellId: R
|
|
7482
|
-
})).valid ||
|
|
7478
|
+
})).valid || C((O) => ({
|
|
7483
7479
|
...O,
|
|
7484
7480
|
[R]: {
|
|
7485
7481
|
...O[R],
|
|
@@ -7495,7 +7491,7 @@ const Ue = {
|
|
|
7495
7491
|
cell: R
|
|
7496
7492
|
});
|
|
7497
7493
|
}
|
|
7498
|
-
}, I = t.setup?.commands?.map((R, T) => /* @__PURE__ */
|
|
7494
|
+
}, I = t.setup?.commands?.map((R, T) => /* @__PURE__ */ fn(
|
|
7499
7495
|
Ae,
|
|
7500
7496
|
{
|
|
7501
7497
|
...R,
|
|
@@ -7530,7 +7526,7 @@ const Ue = {
|
|
|
7530
7526
|
)
|
|
7531
7527
|
);
|
|
7532
7528
|
const P = {
|
|
7533
|
-
smpForm: `${
|
|
7529
|
+
smpForm: `${ja["smp-form"]}`
|
|
7534
7530
|
};
|
|
7535
7531
|
return w && // eslint-disable-next-line jsx-a11y/no-redundant-roles
|
|
7536
7532
|
/* @__PURE__ */ h.jsxs(
|
|
@@ -7538,7 +7534,7 @@ const Ue = {
|
|
|
7538
7534
|
{
|
|
7539
7535
|
"data-component": "input-panel",
|
|
7540
7536
|
className: P.smpForm,
|
|
7541
|
-
id: e ||
|
|
7537
|
+
id: e || E,
|
|
7542
7538
|
onSubmit: (R) => {
|
|
7543
7539
|
R.preventDefault(), j();
|
|
7544
7540
|
},
|
|
@@ -7585,22 +7581,22 @@ const Ue = {
|
|
|
7585
7581
|
);
|
|
7586
7582
|
};
|
|
7587
7583
|
export {
|
|
7588
|
-
|
|
7589
|
-
|
|
7584
|
+
$a as AppBar,
|
|
7585
|
+
Zr as Autocomplete,
|
|
7590
7586
|
me as Button,
|
|
7591
|
-
|
|
7587
|
+
Ms as ButtonList,
|
|
7592
7588
|
qt as Checkbox,
|
|
7593
7589
|
Ut as Combobox,
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7590
|
+
La as DashList,
|
|
7591
|
+
Aa as DataTableComponent,
|
|
7592
|
+
en as DatePicker,
|
|
7593
|
+
Na as Drawer,
|
|
7594
|
+
Ia as Field,
|
|
7599
7595
|
Vr as INPUT_PANEL_COMMAND_SUBMIT_EVENT_NAME,
|
|
7600
7596
|
de as Icon,
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7597
|
+
Pa as InputPanel,
|
|
7598
|
+
Ys as Password,
|
|
7599
|
+
Un as TabBar,
|
|
7604
7600
|
Oe as Textfield,
|
|
7605
|
-
|
|
7601
|
+
ka as configurePaths
|
|
7606
7602
|
};
|