@sme.up/ketchup2 2.0.0-SNAPSHOT-20250627075216 → 2.0.0-SNAPSHOT-20250627102608
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,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var me = (r, e, t) =>
|
|
1
|
+
var Fr = Object.defineProperty;
|
|
2
|
+
var Vr = (r, e, t) => e in r ? Fr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var me = (r, e, t) => Vr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as Ke from "react";
|
|
5
|
-
import at, { useRef as ce, useState as q, useCallback as le, useLayoutEffect as
|
|
6
|
-
import { createPortal as
|
|
5
|
+
import at, { useRef as ce, useState as q, useCallback as le, useLayoutEffect as Yr, useId as Ge, useEffect as ne, useMemo as Ur, createElement as Wr } from "react";
|
|
6
|
+
import { createPortal as Br } from "react-dom";
|
|
7
7
|
var qe = { exports: {} }, Ie = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
@@ -14,10 +14,10 @@ var qe = { exports: {} }, Ie = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
17
|
+
var It;
|
|
18
|
+
function Hr() {
|
|
19
|
+
if (It) return Ie;
|
|
20
|
+
It = 1;
|
|
21
21
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
22
22
|
function t(n, s, a) {
|
|
23
23
|
var i = null;
|
|
@@ -46,13 +46,13 @@ var Me = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
49
|
+
var Mt;
|
|
50
|
+
function Gr() {
|
|
51
|
+
return Mt || (Mt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
52
|
function r(h) {
|
|
53
53
|
if (h == null) return null;
|
|
54
54
|
if (typeof h == "function")
|
|
55
|
-
return h.$$typeof ===
|
|
55
|
+
return h.$$typeof === R ? null : h.displayName || h.name || null;
|
|
56
56
|
if (typeof h == "string") return h;
|
|
57
57
|
switch (h) {
|
|
58
58
|
case v:
|
|
@@ -63,7 +63,7 @@ function Hr() {
|
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case y:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case D:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
case T:
|
|
69
69
|
return "Activity";
|
|
@@ -81,7 +81,7 @@ function Hr() {
|
|
|
81
81
|
case b:
|
|
82
82
|
var x = h.render;
|
|
83
83
|
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
|
-
case
|
|
84
|
+
case N:
|
|
85
85
|
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
86
86
|
case _:
|
|
87
87
|
x = h._payload, h = h._init;
|
|
@@ -124,7 +124,7 @@ function Hr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = k.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
@@ -240,7 +240,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function f(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), O = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"),
|
|
243
|
+
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), O = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), k = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, A = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
@@ -253,7 +253,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
253
253
|
a
|
|
254
254
|
)(), X = V(n(a)), F = {};
|
|
255
255
|
Me.Fragment = v, Me.jsx = function(h, x, j, C, $) {
|
|
256
|
-
var L = 1e4 >
|
|
256
|
+
var L = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return u(
|
|
258
258
|
h,
|
|
259
259
|
x,
|
|
@@ -265,7 +265,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
265
265
|
L ? V(n(h)) : X
|
|
266
266
|
);
|
|
267
267
|
}, Me.jsxs = function(h, x, j, C, $) {
|
|
268
|
-
var L = 1e4 >
|
|
268
|
+
var L = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return u(
|
|
270
270
|
h,
|
|
271
271
|
x,
|
|
@@ -279,12 +279,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
279
279
|
};
|
|
280
280
|
}()), Me;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
282
|
+
var Ft;
|
|
283
|
+
function Kr() {
|
|
284
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? qe.exports = Hr() : qe.exports = Gr()), qe.exports;
|
|
285
285
|
}
|
|
286
|
-
var g =
|
|
287
|
-
const
|
|
286
|
+
var g = Kr();
|
|
287
|
+
const De = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
288
288
|
const n = {
|
|
289
289
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
290
290
|
};
|
|
@@ -302,21 +302,21 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
302
302
|
"smp-grid-template-rows": "_smp-grid-template-rows_pdvd2_56",
|
|
303
303
|
"smp-layout-section-with-title": "_smp-layout-section-with-title_pdvd2_60",
|
|
304
304
|
"smp-layout-section-title": "_smp-layout-section-title_pdvd2_66"
|
|
305
|
-
},
|
|
305
|
+
}, qr = (r, e) => {
|
|
306
306
|
const t = [];
|
|
307
307
|
for (let n = 0; n < r.length; n += e)
|
|
308
308
|
t.push(r.slice(n, n + e));
|
|
309
309
|
return t;
|
|
310
|
-
},
|
|
310
|
+
}, Dr = (r, e) => r.map((t) => {
|
|
311
311
|
var a, i;
|
|
312
312
|
if ((a = t.sections) != null && a.length)
|
|
313
313
|
return {
|
|
314
314
|
...t,
|
|
315
|
-
sections:
|
|
315
|
+
sections: Dr(t.sections, e),
|
|
316
316
|
content: t.content
|
|
317
317
|
};
|
|
318
318
|
let n = t.sections, s = t.content;
|
|
319
|
-
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n =
|
|
319
|
+
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = qr(
|
|
320
320
|
t.content.filter((c) => e.includes(c.id)),
|
|
321
321
|
+t.columns
|
|
322
322
|
).map(
|
|
@@ -332,14 +332,14 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
332
332
|
sections: n,
|
|
333
333
|
content: s
|
|
334
334
|
};
|
|
335
|
-
}),
|
|
335
|
+
}), Vt = (r, e) => {
|
|
336
336
|
if (!e)
|
|
337
337
|
return {};
|
|
338
338
|
const t = r.some((n) => n.dim) ? r.map((n) => n.dim || "auto").join(" ") : `repeat(${r.length}, 1fr)`;
|
|
339
339
|
return {
|
|
340
340
|
[e]: t
|
|
341
341
|
};
|
|
342
|
-
},
|
|
342
|
+
}, Yt = (r) => r.some((e) => e.dim && !e.dim.endsWith("%")), it = ({
|
|
343
343
|
children: r,
|
|
344
344
|
layout: e = {
|
|
345
345
|
horizontal: !1,
|
|
@@ -361,13 +361,13 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
361
361
|
at.Children.forEach(r, (d) => {
|
|
362
362
|
at.isValidElement(d) && (t[d.props.id] = d);
|
|
363
363
|
});
|
|
364
|
-
const n = "--smp-grid-template-cols", s = "--smp-grid-template-rows", a =
|
|
364
|
+
const n = "--smp-grid-template-cols", s = "--smp-grid-template-rows", a = Dr(
|
|
365
365
|
e.sections ?? [],
|
|
366
366
|
Object.keys(t)
|
|
367
367
|
), i = (d) => d.reduce((m, p) => {
|
|
368
368
|
var O, b;
|
|
369
369
|
let v = "", E = {}, w = {}, S = "";
|
|
370
|
-
return (O = p.sections) != null && O.length ? (v = ge["smp-layout-section-grid"], E = i(p.sections), p.gridCols === void 0 && (S = ge[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (p.horizontal ||
|
|
370
|
+
return (O = p.sections) != null && O.length ? (v = ge["smp-layout-section-grid"], E = i(p.sections), p.gridCols === void 0 && (S = ge[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (p.horizontal || Yt(p.sections)) && (w = Vt(
|
|
371
371
|
p.sections,
|
|
372
372
|
p.horizontal ? n : s
|
|
373
373
|
)))) : (b = p.content) != null && b.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (v = ge["smp-layout-section-grid"], S = ge["smp-grid-template-cols"], w = {
|
|
@@ -380,7 +380,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
380
380
|
styles: w
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
|
-
}, {}), o = i(a), c = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, l = e.horizontal ||
|
|
383
|
+
}, {}), o = i(a), c = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, l = e.horizontal || Yt(e.sections || []) ? Vt(
|
|
384
384
|
a,
|
|
385
385
|
e.horizontal ? n : s
|
|
386
386
|
) : {}, u = (d) => {
|
|
@@ -406,7 +406,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
406
406
|
"span",
|
|
407
407
|
{
|
|
408
408
|
className: `${ge["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
|
|
409
|
-
children: /* @__PURE__ */ g.jsx(
|
|
409
|
+
children: /* @__PURE__ */ g.jsx(De, { label: d.title })
|
|
410
410
|
}
|
|
411
411
|
),
|
|
412
412
|
m
|
|
@@ -452,7 +452,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
452
452
|
TEXT_FIELD: "ITX",
|
|
453
453
|
TIME: "TIM",
|
|
454
454
|
PASSWORD: "PWD"
|
|
455
|
-
},
|
|
455
|
+
}, zr = (r) => r.t == "D8", Jr = (r) => r.t == "I1", Xr = (r) => {
|
|
456
456
|
if (r) {
|
|
457
457
|
const e = r.split(";");
|
|
458
458
|
if (e.length == 3)
|
|
@@ -490,8 +490,8 @@ class ot {
|
|
|
490
490
|
return this.value ? "true" : "false";
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
if (
|
|
493
|
+
function Zr(r, e) {
|
|
494
|
+
if (Pt(r)) {
|
|
495
495
|
const u = new Date(r);
|
|
496
496
|
if (!isNaN(u.getTime()))
|
|
497
497
|
return u;
|
|
@@ -512,33 +512,33 @@ function Xr(r, e) {
|
|
|
512
512
|
case 6: {
|
|
513
513
|
o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? l = "19" + n.substring(4) : l = "20" + n.substring(4);
|
|
514
514
|
let u = 0, f = 0;
|
|
515
|
-
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)),
|
|
515
|
+
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), Dt(o, f, parseInt(l)) && ze(t) ? t : r;
|
|
516
516
|
}
|
|
517
517
|
case 7:
|
|
518
518
|
case 8: {
|
|
519
519
|
o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), l = n.substring(4);
|
|
520
520
|
let u = 0, f = 0;
|
|
521
|
-
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)),
|
|
521
|
+
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), Dt(u, f, parseInt(l)) && ze(t) ? t : r;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
return r;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Pt(r) {
|
|
527
527
|
return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
|
|
528
528
|
}
|
|
529
529
|
function ze(r) {
|
|
530
530
|
return r instanceof Date && !isNaN(r.getTime());
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Qr(r) {
|
|
533
533
|
if (!/^\d{8}$/.test(r)) return !1;
|
|
534
534
|
const e = parseInt(r.slice(0, 4), 10), t = parseInt(r.slice(4, 6), 10), n = parseInt(r.slice(6, 8), 10);
|
|
535
|
-
return
|
|
535
|
+
return Dt(n, t - 1, e);
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Dt(r, e, t) {
|
|
538
538
|
const n = [
|
|
539
539
|
31,
|
|
540
540
|
// January
|
|
541
|
-
|
|
541
|
+
en(t) ? 29 : 28,
|
|
542
542
|
// February
|
|
543
543
|
31,
|
|
544
544
|
// March
|
|
@@ -563,10 +563,10 @@ function Rt(r, e, t) {
|
|
|
563
563
|
];
|
|
564
564
|
return !(e < 0 || e > 11 || r < 1 || r > n[e]);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function en(r) {
|
|
567
567
|
return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function tn(r) {
|
|
570
570
|
const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
|
|
571
571
|
return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
|
|
572
572
|
}
|
|
@@ -577,13 +577,13 @@ class lt {
|
|
|
577
577
|
this.class = e, this.date = t;
|
|
578
578
|
}
|
|
579
579
|
static fromDataObj(e) {
|
|
580
|
-
const t =
|
|
580
|
+
const t = Ut.get(`${e.t}${e.p}`);
|
|
581
581
|
if (t)
|
|
582
582
|
return new lt(e, t.legacyToIso(e.k));
|
|
583
583
|
throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
|
|
584
584
|
}
|
|
585
585
|
getLegacyValue() {
|
|
586
|
-
const e =
|
|
586
|
+
const e = Ut.get(`${this.class.t}${this.class.p}`);
|
|
587
587
|
if (e)
|
|
588
588
|
return e.isoToLegacy(this.date);
|
|
589
589
|
throw new Error(
|
|
@@ -594,15 +594,15 @@ class lt {
|
|
|
594
594
|
return this.date;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const Ut = /* @__PURE__ */ new Map([
|
|
598
598
|
[
|
|
599
599
|
"D8*YYMD",
|
|
600
600
|
{
|
|
601
601
|
legacyToIso(r) {
|
|
602
|
-
return
|
|
602
|
+
return Qr(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
|
|
603
603
|
},
|
|
604
604
|
isoToLegacy(r) {
|
|
605
|
-
return
|
|
605
|
+
return Pt(r) && r.replaceAll("-", "") || r;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
]
|
|
@@ -640,7 +640,7 @@ function ht({
|
|
|
640
640
|
c.style.transform = `translate(${E}px, ${v}px)`, c.style.opacity = "1";
|
|
641
641
|
});
|
|
642
642
|
}, [r]);
|
|
643
|
-
return
|
|
643
|
+
return Yr(() => {
|
|
644
644
|
if (!e) return;
|
|
645
645
|
let o;
|
|
646
646
|
const c = () => {
|
|
@@ -680,7 +680,7 @@ const Le = (r, e, t) => {
|
|
|
680
680
|
};
|
|
681
681
|
return /* @__PURE__ */ g.jsx("label", { className: s.container, id: n, children: r });
|
|
682
682
|
};
|
|
683
|
-
function
|
|
683
|
+
function rn(r, e) {
|
|
684
684
|
if (r == null) return {};
|
|
685
685
|
var t = {};
|
|
686
686
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -698,13 +698,13 @@ function ct() {
|
|
|
698
698
|
return r;
|
|
699
699
|
}, ct.apply(null, arguments);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function Rt(r, e) {
|
|
702
|
+
return Rt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
703
703
|
return t.__proto__ = n, t;
|
|
704
|
-
},
|
|
704
|
+
}, Rt(r, e);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
r.prototype = Object.create(e.prototype), r.prototype.constructor = r,
|
|
706
|
+
function nn(r, e) {
|
|
707
|
+
r.prototype = Object.create(e.prototype), r.prototype.constructor = r, Rt(r, e);
|
|
708
708
|
}
|
|
709
709
|
function yt(r, e, t) {
|
|
710
710
|
if (t || arguments.length === 2) for (var n = 0, s = e.length, a; n < s; n++)
|
|
@@ -717,10 +717,10 @@ var Je = {};
|
|
|
717
717
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
718
718
|
* MIT Licensed
|
|
719
719
|
*/
|
|
720
|
-
var
|
|
721
|
-
function
|
|
722
|
-
if (
|
|
723
|
-
|
|
720
|
+
var Wt;
|
|
721
|
+
function sn() {
|
|
722
|
+
if (Wt) return Je;
|
|
723
|
+
Wt = 1;
|
|
724
724
|
var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
725
725
|
Je.format = i, Je.parse = o;
|
|
726
726
|
function i(f) {
|
|
@@ -779,11 +779,11 @@ function nn() {
|
|
|
779
779
|
}
|
|
780
780
|
return Je;
|
|
781
781
|
}
|
|
782
|
-
var
|
|
782
|
+
var an = sn(), Ce = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
783
783
|
return e.cloneNode(!0);
|
|
784
|
-
},
|
|
784
|
+
}, Bt = function() {
|
|
785
785
|
return window.location.protocol === "file:";
|
|
786
|
-
},
|
|
786
|
+
}, _r = function(e, t, n) {
|
|
787
787
|
var s = new XMLHttpRequest();
|
|
788
788
|
s.onreadystatechange = function() {
|
|
789
789
|
try {
|
|
@@ -791,14 +791,14 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
791
791
|
var a = s.getResponseHeader("Content-Type");
|
|
792
792
|
if (!a)
|
|
793
793
|
throw new Error("Content type not found");
|
|
794
|
-
var i =
|
|
794
|
+
var i = an.parse(a).type;
|
|
795
795
|
if (!(i === "image/svg+xml" || i === "text/plain"))
|
|
796
796
|
throw new Error("Invalid content type: ".concat(i));
|
|
797
797
|
}
|
|
798
798
|
if (s.readyState === 4) {
|
|
799
799
|
if (s.status === 404 || s.responseXML === null)
|
|
800
|
-
throw new Error(
|
|
801
|
-
if (s.status === 200 ||
|
|
800
|
+
throw new Error(Bt() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
801
|
+
if (s.status === 200 || Bt() && s.status === 0)
|
|
802
802
|
n(null, s);
|
|
803
803
|
else
|
|
804
804
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
@@ -810,42 +810,42 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
810
810
|
throw o;
|
|
811
811
|
}
|
|
812
812
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
813
|
-
}, we = {},
|
|
813
|
+
}, we = {}, Ht = function(e, t) {
|
|
814
814
|
we[e] = we[e] || [], we[e].push(t);
|
|
815
|
-
},
|
|
815
|
+
}, on = function(e) {
|
|
816
816
|
for (var t = function(i, o) {
|
|
817
817
|
setTimeout(function() {
|
|
818
818
|
if (Array.isArray(we[e])) {
|
|
819
819
|
var c = Ce.get(e), l = we[e][i];
|
|
820
|
-
c instanceof SVGSVGElement && l(null,
|
|
820
|
+
c instanceof SVGSVGElement && l(null, jr(c)), c instanceof Error && l(c), i === we[e].length - 1 && delete we[e];
|
|
821
821
|
}
|
|
822
822
|
}, 0);
|
|
823
823
|
}, n = 0, s = we[e].length; n < s; n++)
|
|
824
824
|
t(n);
|
|
825
|
-
},
|
|
825
|
+
}, ln = function(e, t, n) {
|
|
826
826
|
if (Ce.has(e)) {
|
|
827
827
|
var s = Ce.get(e);
|
|
828
828
|
if (s === void 0) {
|
|
829
|
-
|
|
829
|
+
Ht(e, n);
|
|
830
830
|
return;
|
|
831
831
|
}
|
|
832
832
|
if (s instanceof SVGSVGElement) {
|
|
833
|
-
n(null,
|
|
833
|
+
n(null, jr(s));
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
836
|
}
|
|
837
|
-
Ce.set(e, void 0),
|
|
837
|
+
Ce.set(e, void 0), Ht(e, n), _r(e, t, function(a, i) {
|
|
838
838
|
var o;
|
|
839
|
-
a ? Ce.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Ce.set(e, i.responseXML.documentElement),
|
|
839
|
+
a ? Ce.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Ce.set(e, i.responseXML.documentElement), on(e);
|
|
840
840
|
});
|
|
841
|
-
},
|
|
842
|
-
|
|
841
|
+
}, cn = function(e, t, n) {
|
|
842
|
+
_r(e, t, function(s, a) {
|
|
843
843
|
var i;
|
|
844
844
|
s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
845
845
|
});
|
|
846
|
-
},
|
|
847
|
-
return ++
|
|
848
|
-
}, xe = [],
|
|
846
|
+
}, un = 0, fn = function() {
|
|
847
|
+
return ++un;
|
|
848
|
+
}, xe = [], Gt = {}, dn = "http://www.w3.org/2000/svg", vt = "http://www.w3.org/1999/xlink", Kt = function(e, t, n, s, a, i, o) {
|
|
849
849
|
var c = e.getAttribute("data-src") || e.getAttribute("src");
|
|
850
850
|
if (!c) {
|
|
851
851
|
o(new Error("Invalid data-src or src attribute"));
|
|
@@ -856,7 +856,7 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
856
856
|
return;
|
|
857
857
|
}
|
|
858
858
|
xe.push(e), e.setAttribute("src", "");
|
|
859
|
-
var l = s ?
|
|
859
|
+
var l = s ? ln : cn;
|
|
860
860
|
l(c, a, function(u, f) {
|
|
861
861
|
if (!f) {
|
|
862
862
|
xe.splice(xe.indexOf(e), 1), e = null, o(u);
|
|
@@ -891,17 +891,17 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
891
891
|
path: [],
|
|
892
892
|
pattern: ["fill", "stroke"],
|
|
893
893
|
radialGradient: ["fill", "stroke"]
|
|
894
|
-
}, b, y,
|
|
894
|
+
}, b, y, D, N, _;
|
|
895
895
|
Object.keys(O).forEach(function(X) {
|
|
896
|
-
b = X,
|
|
896
|
+
b = X, D = O[X], y = f.querySelectorAll(b + "[id]");
|
|
897
897
|
for (var F = function(C, $) {
|
|
898
|
-
|
|
898
|
+
N = y[C].id, _ = N + "-" + fn();
|
|
899
899
|
var L;
|
|
900
|
-
Array.prototype.forEach.call(
|
|
901
|
-
L = f.querySelectorAll("[" + H + '*="' +
|
|
900
|
+
Array.prototype.forEach.call(D, function(H) {
|
|
901
|
+
L = f.querySelectorAll("[" + H + '*="' + N + '"]');
|
|
902
902
|
for (var Z = 0, re = L.length; Z < re; Z++) {
|
|
903
903
|
var se = L[Z].getAttribute(H);
|
|
904
|
-
se && !se.match(new RegExp('url\\("?#' +
|
|
904
|
+
se && !se.match(new RegExp('url\\("?#' + N + '"?\\)')) || L[Z].setAttribute(H, "url(#" + _ + ")");
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
907
|
for (var U = f.querySelectorAll("[*|href]"), B = [], Y = 0, J = U.length; Y < J; Y++) {
|
|
@@ -916,34 +916,34 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
f.removeAttribute("xmlns:a");
|
|
919
|
-
for (var T = f.querySelectorAll("script"),
|
|
920
|
-
P = T[A].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (
|
|
921
|
-
if (
|
|
922
|
-
for (var I = 0, W =
|
|
923
|
-
new Function(
|
|
924
|
-
|
|
919
|
+
for (var T = f.querySelectorAll("script"), R = [], k, P, A = 0, V = T.length; A < V; A++)
|
|
920
|
+
P = T[A].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (k = T[A].innerText || T[A].textContent, k && R.push(k), f.removeChild(T[A]));
|
|
921
|
+
if (R.length > 0 && (t === "always" || t === "once" && !Gt[c])) {
|
|
922
|
+
for (var I = 0, W = R.length; I < W; I++)
|
|
923
|
+
new Function(R[I])(window);
|
|
924
|
+
Gt[c] = !0;
|
|
925
925
|
}
|
|
926
926
|
var z = f.querySelectorAll("style");
|
|
927
927
|
if (Array.prototype.forEach.call(z, function(X) {
|
|
928
928
|
X.textContent += "";
|
|
929
|
-
}), f.setAttribute("xmlns",
|
|
929
|
+
}), f.setAttribute("xmlns", dn), f.setAttribute("xmlns:xlink", vt), i(f), !e.parentNode) {
|
|
930
930
|
xe.splice(xe.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
931
931
|
return;
|
|
932
932
|
}
|
|
933
933
|
e.parentNode.replaceChild(f, e), xe.splice(xe.indexOf(e), 1), e = null, o(null, f);
|
|
934
934
|
});
|
|
935
|
-
},
|
|
935
|
+
}, pn = function(e, t) {
|
|
936
936
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
937
937
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
938
938
|
} : i, c = n.beforeEach, l = c === void 0 ? function() {
|
|
939
939
|
} : c, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p, E = n.renumerateIRIElements, w = E === void 0 ? !0 : E;
|
|
940
940
|
if (e && "length" in e)
|
|
941
941
|
for (var S = 0, O = 0, b = e.length; O < b; O++)
|
|
942
|
-
|
|
943
|
-
o(y,
|
|
942
|
+
Kt(e[O], m, w, f, v, l, function(y, D) {
|
|
943
|
+
o(y, D), e && "length" in e && e.length === ++S && a(S);
|
|
944
944
|
});
|
|
945
|
-
else e ?
|
|
946
|
-
o(y,
|
|
945
|
+
else e ? Kt(e, m, w, f, v, l, function(y, D) {
|
|
946
|
+
o(y, D), a(1), e = null;
|
|
947
947
|
}) : a(0);
|
|
948
948
|
}, Xe = { exports: {} }, Ze = { exports: {} }, Q = {};
|
|
949
949
|
/** @license React v16.13.1
|
|
@@ -954,15 +954,15 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
954
954
|
* This source code is licensed under the MIT license found in the
|
|
955
955
|
* LICENSE file in the root directory of this source tree.
|
|
956
956
|
*/
|
|
957
|
-
var
|
|
958
|
-
function
|
|
959
|
-
if (
|
|
960
|
-
|
|
957
|
+
var qt;
|
|
958
|
+
function hn() {
|
|
959
|
+
if (qt) return Q;
|
|
960
|
+
qt = 1;
|
|
961
961
|
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
|
|
962
962
|
function O(y) {
|
|
963
963
|
if (typeof y == "object" && y !== null) {
|
|
964
|
-
var
|
|
965
|
-
switch (
|
|
964
|
+
var D = y.$$typeof;
|
|
965
|
+
switch (D) {
|
|
966
966
|
case e:
|
|
967
967
|
switch (y = y.type, y) {
|
|
968
968
|
case c:
|
|
@@ -981,11 +981,11 @@ function pn() {
|
|
|
981
981
|
case i:
|
|
982
982
|
return y;
|
|
983
983
|
default:
|
|
984
|
-
return
|
|
984
|
+
return D;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
case t:
|
|
988
|
-
return
|
|
988
|
+
return D;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
}
|
|
@@ -1029,9 +1029,9 @@ var ee = {};
|
|
|
1029
1029
|
* This source code is licensed under the MIT license found in the
|
|
1030
1030
|
* LICENSE file in the root directory of this source tree.
|
|
1031
1031
|
*/
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1034
|
-
return
|
|
1032
|
+
var zt;
|
|
1033
|
+
function mn() {
|
|
1034
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1035
1035
|
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, E = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
|
|
1036
1036
|
function O(M) {
|
|
1037
1037
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -1069,7 +1069,7 @@ function hn() {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
var y = c,
|
|
1072
|
+
var y = c, D = l, N = o, _ = i, T = e, R = u, k = n, P = p, A = m, V = t, I = a, W = s, z = f, X = !1;
|
|
1073
1073
|
function F(M) {
|
|
1074
1074
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || b(M) === c;
|
|
1075
1075
|
}
|
|
@@ -1109,22 +1109,22 @@ function hn() {
|
|
|
1109
1109
|
function ae(M) {
|
|
1110
1110
|
return b(M) === f;
|
|
1111
1111
|
}
|
|
1112
|
-
ee.AsyncMode = y, ee.ConcurrentMode =
|
|
1112
|
+
ee.AsyncMode = y, ee.ConcurrentMode = D, ee.ContextConsumer = N, ee.ContextProvider = _, ee.Element = T, ee.ForwardRef = R, ee.Fragment = k, ee.Lazy = P, ee.Memo = A, ee.Portal = V, ee.Profiler = I, ee.StrictMode = W, ee.Suspense = z, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = j, ee.isElement = C, ee.isForwardRef = $, ee.isFragment = L, ee.isLazy = U, ee.isMemo = B, ee.isPortal = Y, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = O, ee.typeOf = b;
|
|
1113
1113
|
}()), ee;
|
|
1114
1114
|
}
|
|
1115
|
-
var
|
|
1116
|
-
function
|
|
1117
|
-
return
|
|
1115
|
+
var Jt;
|
|
1116
|
+
function $r() {
|
|
1117
|
+
return Jt || (Jt = 1, process.env.NODE_ENV === "production" ? Ze.exports = hn() : Ze.exports = mn()), Ze.exports;
|
|
1118
1118
|
}
|
|
1119
1119
|
/*
|
|
1120
1120
|
object-assign
|
|
1121
1121
|
(c) Sindre Sorhus
|
|
1122
1122
|
@license MIT
|
|
1123
1123
|
*/
|
|
1124
|
-
var xt,
|
|
1125
|
-
function
|
|
1126
|
-
if (
|
|
1127
|
-
|
|
1124
|
+
var xt, Xt;
|
|
1125
|
+
function gn() {
|
|
1126
|
+
if (Xt) return xt;
|
|
1127
|
+
Xt = 1;
|
|
1128
1128
|
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
1129
1129
|
function n(a) {
|
|
1130
1130
|
if (a == null)
|
|
@@ -1167,25 +1167,25 @@ function mn() {
|
|
|
1167
1167
|
return c;
|
|
1168
1168
|
}, xt;
|
|
1169
1169
|
}
|
|
1170
|
-
var bt,
|
|
1171
|
-
function
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1170
|
+
var bt, Zt;
|
|
1171
|
+
function At() {
|
|
1172
|
+
if (Zt) return bt;
|
|
1173
|
+
Zt = 1;
|
|
1174
1174
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1175
1175
|
return bt = r, bt;
|
|
1176
1176
|
}
|
|
1177
|
-
var St,
|
|
1178
|
-
function
|
|
1179
|
-
return
|
|
1177
|
+
var St, Qt;
|
|
1178
|
+
function Cr() {
|
|
1179
|
+
return Qt || (Qt = 1, St = Function.call.bind(Object.prototype.hasOwnProperty)), St;
|
|
1180
1180
|
}
|
|
1181
|
-
var wt,
|
|
1182
|
-
function
|
|
1183
|
-
if (
|
|
1184
|
-
|
|
1181
|
+
var wt, er;
|
|
1182
|
+
function yn() {
|
|
1183
|
+
if (er) return wt;
|
|
1184
|
+
er = 1;
|
|
1185
1185
|
var r = function() {
|
|
1186
1186
|
};
|
|
1187
1187
|
if (process.env.NODE_ENV !== "production") {
|
|
1188
|
-
var e = /* @__PURE__ */
|
|
1188
|
+
var e = /* @__PURE__ */ At(), t = {}, n = /* @__PURE__ */ Cr();
|
|
1189
1189
|
r = function(a) {
|
|
1190
1190
|
var i = "Warning: " + a;
|
|
1191
1191
|
typeof console < "u" && console.error(i);
|
|
@@ -1227,11 +1227,11 @@ function gn() {
|
|
|
1227
1227
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1228
1228
|
}, wt = s, wt;
|
|
1229
1229
|
}
|
|
1230
|
-
var Et,
|
|
1231
|
-
function
|
|
1232
|
-
if (
|
|
1233
|
-
|
|
1234
|
-
var r =
|
|
1230
|
+
var Et, tr;
|
|
1231
|
+
function vn() {
|
|
1232
|
+
if (tr) return Et;
|
|
1233
|
+
tr = 1;
|
|
1234
|
+
var r = $r(), e = gn(), t = /* @__PURE__ */ At(), n = /* @__PURE__ */ Cr(), s = /* @__PURE__ */ yn(), a = function() {
|
|
1235
1235
|
};
|
|
1236
1236
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
1237
1237
|
var c = "Warning: " + o;
|
|
@@ -1264,10 +1264,10 @@ function yn() {
|
|
|
1264
1264
|
arrayOf: O,
|
|
1265
1265
|
element: b(),
|
|
1266
1266
|
elementType: y(),
|
|
1267
|
-
instanceOf:
|
|
1268
|
-
node:
|
|
1267
|
+
instanceOf: D,
|
|
1268
|
+
node: R(),
|
|
1269
1269
|
objectOf: _,
|
|
1270
|
-
oneOf:
|
|
1270
|
+
oneOf: N,
|
|
1271
1271
|
oneOfType: T,
|
|
1272
1272
|
shape: P,
|
|
1273
1273
|
exact: A
|
|
@@ -1359,7 +1359,7 @@ function yn() {
|
|
|
1359
1359
|
}
|
|
1360
1360
|
return E(h);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function D(h) {
|
|
1363
1363
|
function x(j, C, $, L, U) {
|
|
1364
1364
|
if (!(j[C] instanceof h)) {
|
|
1365
1365
|
var B = h.name || d, Y = F(j[C]);
|
|
@@ -1369,7 +1369,7 @@ function yn() {
|
|
|
1369
1369
|
}
|
|
1370
1370
|
return E(x);
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function N(h) {
|
|
1373
1373
|
if (!Array.isArray(h))
|
|
1374
1374
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1375
1375
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -1425,13 +1425,13 @@ function yn() {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
return E(C);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function R() {
|
|
1429
1429
|
function h(x, j, C, $, L) {
|
|
1430
1430
|
return V(x[j]) ? null : new v("Invalid " + $ + " `" + L + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
1431
1431
|
}
|
|
1432
1432
|
return E(h);
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function k(h, x, j, C, $) {
|
|
1435
1435
|
return new v(
|
|
1436
1436
|
(h || "React class") + ": " + x + " type `" + j + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1437
1437
|
);
|
|
@@ -1444,7 +1444,7 @@ function yn() {
|
|
|
1444
1444
|
for (var J in h) {
|
|
1445
1445
|
var G = h[J];
|
|
1446
1446
|
if (typeof G != "function")
|
|
1447
|
-
return
|
|
1447
|
+
return k($, L, U, J, z(G));
|
|
1448
1448
|
var ae = G(B, J, $, L, U + "." + J, t);
|
|
1449
1449
|
if (ae)
|
|
1450
1450
|
return ae;
|
|
@@ -1462,7 +1462,7 @@ function yn() {
|
|
|
1462
1462
|
for (var G in J) {
|
|
1463
1463
|
var ae = h[G];
|
|
1464
1464
|
if (n(h, G) && typeof ae != "function")
|
|
1465
|
-
return
|
|
1465
|
+
return k($, L, U, G, z(ae));
|
|
1466
1466
|
if (!ae)
|
|
1467
1467
|
return new v(
|
|
1468
1468
|
"Invalid " + L + " `" + U + "` key `" + G + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(j[C], null, " ") + `
|
|
@@ -1548,11 +1548,11 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1548
1548
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
1549
1549
|
}, Et;
|
|
1550
1550
|
}
|
|
1551
|
-
var Tt,
|
|
1552
|
-
function
|
|
1553
|
-
if (
|
|
1554
|
-
|
|
1555
|
-
var r = /* @__PURE__ */
|
|
1551
|
+
var Tt, rr;
|
|
1552
|
+
function xn() {
|
|
1553
|
+
if (rr) return Tt;
|
|
1554
|
+
rr = 1;
|
|
1555
|
+
var r = /* @__PURE__ */ At();
|
|
1556
1556
|
function e() {
|
|
1557
1557
|
}
|
|
1558
1558
|
function t() {
|
|
@@ -1596,20 +1596,20 @@ function vn() {
|
|
|
1596
1596
|
return a.PropTypes = a, a;
|
|
1597
1597
|
}, Tt;
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1600
|
-
function
|
|
1601
|
-
if (
|
|
1602
|
-
if (
|
|
1603
|
-
var r =
|
|
1604
|
-
Xe.exports = /* @__PURE__ */
|
|
1599
|
+
var nr;
|
|
1600
|
+
function bn() {
|
|
1601
|
+
if (nr) return Xe.exports;
|
|
1602
|
+
if (nr = 1, process.env.NODE_ENV !== "production") {
|
|
1603
|
+
var r = $r(), e = !0;
|
|
1604
|
+
Xe.exports = /* @__PURE__ */ vn()(r.isElement, e);
|
|
1605
1605
|
} else
|
|
1606
|
-
Xe.exports = /* @__PURE__ */
|
|
1606
|
+
Xe.exports = /* @__PURE__ */ xn()();
|
|
1607
1607
|
return Xe.exports;
|
|
1608
1608
|
}
|
|
1609
|
-
var oe = /* @__PURE__ */
|
|
1609
|
+
var oe = /* @__PURE__ */ bn(), Sn = function(e) {
|
|
1610
1610
|
var t = (e == null ? void 0 : e.ownerDocument) || document;
|
|
1611
1611
|
return t.defaultView || window;
|
|
1612
|
-
},
|
|
1612
|
+
}, wn = function(e, t) {
|
|
1613
1613
|
for (var n in e)
|
|
1614
1614
|
if (!(n in t))
|
|
1615
1615
|
return !0;
|
|
@@ -1617,7 +1617,7 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1617
1617
|
if (e[s] !== t[s])
|
|
1618
1618
|
return !0;
|
|
1619
1619
|
return !1;
|
|
1620
|
-
},
|
|
1620
|
+
}, En = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Qe = "http://www.w3.org/2000/svg", sr = "http://www.w3.org/1999/xlink", Ae = /* @__PURE__ */ function(r) {
|
|
1621
1621
|
function e() {
|
|
1622
1622
|
for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
|
|
1623
1623
|
a[i] = arguments[i];
|
|
@@ -1628,16 +1628,16 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1628
1628
|
n.reactWrapper = o;
|
|
1629
1629
|
}, n;
|
|
1630
1630
|
}
|
|
1631
|
-
|
|
1631
|
+
nn(e, r);
|
|
1632
1632
|
var t = e.prototype;
|
|
1633
1633
|
return t.renderSVG = function() {
|
|
1634
1634
|
var s = this;
|
|
1635
|
-
if (this.reactWrapper instanceof
|
|
1635
|
+
if (this.reactWrapper instanceof Sn(this.reactWrapper).Node) {
|
|
1636
1636
|
var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, u = a.src, f = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection, E = this.props.wrapper, w, S;
|
|
1637
|
-
E === "svg" ? (w = document.createElementNS(Qe, E), w.setAttribute("xmlns", Qe), w.setAttribute("xmlns:xlink",
|
|
1638
|
-
var O = function(
|
|
1637
|
+
E === "svg" ? (w = document.createElementNS(Qe, E), w.setAttribute("xmlns", Qe), w.setAttribute("xmlns:xlink", sr), S = document.createElementNS(Qe, E)) : (w = document.createElement(E), S = document.createElement(E)), w.appendChild(S), S.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(w);
|
|
1638
|
+
var O = function(N) {
|
|
1639
1639
|
if (s.removeSVG(), !s._isMounted) {
|
|
1640
|
-
m(
|
|
1640
|
+
m(N);
|
|
1641
1641
|
return;
|
|
1642
1642
|
}
|
|
1643
1643
|
s.setState(function() {
|
|
@@ -1646,11 +1646,11 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1646
1646
|
isLoading: !1
|
|
1647
1647
|
};
|
|
1648
1648
|
}, function() {
|
|
1649
|
-
m(
|
|
1649
|
+
m(N);
|
|
1650
1650
|
});
|
|
1651
|
-
}, b = function(
|
|
1652
|
-
if (
|
|
1653
|
-
O(
|
|
1651
|
+
}, b = function(N, _) {
|
|
1652
|
+
if (N) {
|
|
1653
|
+
O(N);
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
1656
|
s._isMounted && s.setState(function() {
|
|
@@ -1664,26 +1664,26 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1664
1664
|
O(T);
|
|
1665
1665
|
}
|
|
1666
1666
|
});
|
|
1667
|
-
}, y = function(
|
|
1668
|
-
if (
|
|
1669
|
-
var _ =
|
|
1670
|
-
_ &&
|
|
1667
|
+
}, y = function(N) {
|
|
1668
|
+
if (N.setAttribute("role", "img"), i) {
|
|
1669
|
+
var _ = N.querySelector(":scope > desc");
|
|
1670
|
+
_ && N.removeChild(_);
|
|
1671
1671
|
var T = document.createElement("desc");
|
|
1672
|
-
T.innerHTML = i,
|
|
1672
|
+
T.innerHTML = i, N.prepend(T);
|
|
1673
1673
|
}
|
|
1674
1674
|
if (f) {
|
|
1675
|
-
var
|
|
1676
|
-
|
|
1677
|
-
var
|
|
1678
|
-
|
|
1675
|
+
var R = N.querySelector(":scope > title");
|
|
1676
|
+
R && N.removeChild(R);
|
|
1677
|
+
var k = document.createElement("title");
|
|
1678
|
+
k.innerHTML = f, N.prepend(k);
|
|
1679
1679
|
}
|
|
1680
1680
|
try {
|
|
1681
|
-
p(
|
|
1681
|
+
p(N);
|
|
1682
1682
|
} catch (P) {
|
|
1683
1683
|
O(P);
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
|
-
|
|
1686
|
+
pn(S, {
|
|
1687
1687
|
afterEach: b,
|
|
1688
1688
|
beforeEach: y,
|
|
1689
1689
|
cacheRequests: d,
|
|
@@ -1699,7 +1699,7 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1699
1699
|
this._isMounted = !0, this.renderSVG();
|
|
1700
1700
|
}, t.componentDidUpdate = function(s) {
|
|
1701
1701
|
var a = this;
|
|
1702
|
-
|
|
1702
|
+
wn(ct({}, s), this.props) && this.setState(function() {
|
|
1703
1703
|
return a.initialState;
|
|
1704
1704
|
}, function() {
|
|
1705
1705
|
a.removeSVG(), a.renderSVG();
|
|
@@ -1713,12 +1713,12 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1713
1713
|
s.httpRequestWithCredentials;
|
|
1714
1714
|
var i = s.loading;
|
|
1715
1715
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1716
|
-
var o = s.wrapper, c =
|
|
1716
|
+
var o = s.wrapper, c = rn(s, En), l = o;
|
|
1717
1717
|
return /* @__PURE__ */ Ke.createElement(l, ct({}, c, {
|
|
1718
1718
|
ref: this.refCallback
|
|
1719
1719
|
}, o === "svg" ? {
|
|
1720
1720
|
xmlns: Qe,
|
|
1721
|
-
xmlnsXlink:
|
|
1721
|
+
xmlnsXlink: sr
|
|
1722
1722
|
} : {}), this.state.isLoading && i && /* @__PURE__ */ Ke.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ Ke.createElement(a, null));
|
|
1723
1723
|
}, e;
|
|
1724
1724
|
}(Ke.Component);
|
|
@@ -1758,9 +1758,9 @@ let jt = {
|
|
|
1758
1758
|
assets: "/"
|
|
1759
1759
|
// Default for storybook isolation development
|
|
1760
1760
|
};
|
|
1761
|
-
const
|
|
1761
|
+
const ea = (r) => {
|
|
1762
1762
|
jt = { ...jt, ...r };
|
|
1763
|
-
},
|
|
1763
|
+
}, ar = (r) => `${jt.assets}/${r}`.replace(/\/+/g, "/"), fe = at.memo(
|
|
1764
1764
|
({
|
|
1765
1765
|
icon: r,
|
|
1766
1766
|
width: e,
|
|
@@ -1776,15 +1776,15 @@ const Qs = (r) => {
|
|
|
1776
1776
|
title: f,
|
|
1777
1777
|
tabIndex: d
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const [m, p] = q(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), E = v && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w =
|
|
1779
|
+
const [m, p] = q(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), E = v && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = ar(`assets/svg/${r}.svg`), S = ar(
|
|
1780
1780
|
`assets/svg/${n}.svg`
|
|
1781
1781
|
), O = {
|
|
1782
1782
|
img: `${l ? "smp-image-interactable" : ""}`,
|
|
1783
1783
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
|
|
1784
1784
|
}, b = () => {
|
|
1785
1785
|
!a && l && c && c();
|
|
1786
|
-
}, y = (
|
|
1787
|
-
!a && l && (
|
|
1786
|
+
}, y = (D) => {
|
|
1787
|
+
!a && l && (D.key === "Enter" || D.key === " ") && (D.preventDefault(), b());
|
|
1788
1788
|
};
|
|
1789
1789
|
return /* @__PURE__ */ g.jsx(g.Fragment, { children: E ? /* @__PURE__ */ g.jsx(
|
|
1790
1790
|
Ae,
|
|
@@ -1816,8 +1816,8 @@ const Qs = (r) => {
|
|
|
1816
1816
|
onClick: b,
|
|
1817
1817
|
className: O.img,
|
|
1818
1818
|
title: f,
|
|
1819
|
-
onKeyDown: (
|
|
1820
|
-
(
|
|
1819
|
+
onKeyDown: (D) => {
|
|
1820
|
+
(D.key === "Enter" || D.key === " ") && b();
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
)
|
|
@@ -1856,7 +1856,7 @@ const Qs = (r) => {
|
|
|
1856
1856
|
"smp-textfield-disabled": "_smp-textfield-disabled_prxya_110",
|
|
1857
1857
|
"smp-textfield-fullWidth": "_smp-textfield-fullWidth_prxya_119",
|
|
1858
1858
|
"smp-textfield-top-right-indicator": "_smp-textfield-top-right-indicator_prxya_123"
|
|
1859
|
-
},
|
|
1859
|
+
}, Re = ({
|
|
1860
1860
|
disabled: r,
|
|
1861
1861
|
bindValue: e,
|
|
1862
1862
|
icon: t,
|
|
@@ -1879,12 +1879,12 @@ const Qs = (r) => {
|
|
|
1879
1879
|
label: O,
|
|
1880
1880
|
helperText: b = !1,
|
|
1881
1881
|
error: y,
|
|
1882
|
-
appearance:
|
|
1883
|
-
fullWidth:
|
|
1882
|
+
appearance: D = "base",
|
|
1883
|
+
fullWidth: N = !1,
|
|
1884
1884
|
_dataComponent: _ = "textfield",
|
|
1885
1885
|
min: T,
|
|
1886
|
-
max:
|
|
1887
|
-
step:
|
|
1886
|
+
max: R,
|
|
1887
|
+
step: k,
|
|
1888
1888
|
inputMode: P = "text",
|
|
1889
1889
|
width: A,
|
|
1890
1890
|
autocomplete: V,
|
|
@@ -1894,8 +1894,8 @@ const Qs = (r) => {
|
|
|
1894
1894
|
const z = Ge(), X = `${z}-helper`, F = y ? "danger" : l, h = y || l == "danger" ? "error" : o, x = b || !!y, j = (L) => {
|
|
1895
1895
|
s == null || s(L.target.value);
|
|
1896
1896
|
}, C = {
|
|
1897
|
-
wrapper: `${ye["smp-textfield-wrapper"]} ${
|
|
1898
|
-
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${c ? ye[`smp-textfield-${c}`] : ""} ${F ? ye[`smp-textfield-${F}`] : ""} ${
|
|
1897
|
+
wrapper: `${ye["smp-textfield-wrapper"]} ${N ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
1898
|
+
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${c ? ye[`smp-textfield-${c}`] : ""} ${F ? ye[`smp-textfield-${F}`] : ""} ${D ? ye[`smp-textfield-${D}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${f ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
1899
1899
|
input: `${ye["smp-textfield-input"]}`
|
|
1900
1900
|
};
|
|
1901
1901
|
if (u && (u !== "notSelectable" || i)) {
|
|
@@ -1904,7 +1904,7 @@ const Qs = (r) => {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
const $ = A ? { "--smp-textField-width-base": A } : void 0;
|
|
1906
1906
|
return /* @__PURE__ */ g.jsxs("div", { className: C.wrapper, "data-component": _, children: [
|
|
1907
|
-
O && /* @__PURE__ */ g.jsx(
|
|
1907
|
+
O && /* @__PURE__ */ g.jsx(De, { label: O, disabled: r, htmlFor: z }),
|
|
1908
1908
|
/* @__PURE__ */ g.jsxs(
|
|
1909
1909
|
"div",
|
|
1910
1910
|
{
|
|
@@ -1930,8 +1930,8 @@ const Qs = (r) => {
|
|
|
1930
1930
|
ref: v,
|
|
1931
1931
|
"aria-describedby": x ? X : void 0,
|
|
1932
1932
|
min: T,
|
|
1933
|
-
max:
|
|
1934
|
-
step:
|
|
1933
|
+
max: R,
|
|
1934
|
+
step: k,
|
|
1935
1935
|
inputMode: P,
|
|
1936
1936
|
autoComplete: V,
|
|
1937
1937
|
size: I,
|
|
@@ -1964,7 +1964,7 @@ const Qs = (r) => {
|
|
|
1964
1964
|
)
|
|
1965
1965
|
] });
|
|
1966
1966
|
};
|
|
1967
|
-
function
|
|
1967
|
+
function Pr({
|
|
1968
1968
|
items: r,
|
|
1969
1969
|
itemHeight: e,
|
|
1970
1970
|
containerHeight: t,
|
|
@@ -2022,7 +2022,7 @@ const et = {
|
|
|
2022
2022
|
"smp-list-container": "_smp-list-container_6ni6l_12",
|
|
2023
2023
|
"smp-list-listItem": "_smp-list-listItem_6ni6l_17"
|
|
2024
2024
|
};
|
|
2025
|
-
function
|
|
2025
|
+
function Tn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
2026
2026
|
const a = document.createElement("canvas").getContext("2d");
|
|
2027
2027
|
if (!a) return 200;
|
|
2028
2028
|
a.font = t;
|
|
@@ -2033,7 +2033,7 @@ function En(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return Math.ceil(i + n);
|
|
2035
2035
|
}
|
|
2036
|
-
const
|
|
2036
|
+
const On = 10, Ar = ({
|
|
2037
2037
|
id: r,
|
|
2038
2038
|
options: e,
|
|
2039
2039
|
displayMode: t = "Both",
|
|
@@ -2051,11 +2051,11 @@ const Tn = 10, Pr = ({
|
|
|
2051
2051
|
var V;
|
|
2052
2052
|
const [f, d] = q(""), m = 40, [p, v] = q(
|
|
2053
2053
|
a !== null ? a : -1
|
|
2054
|
-
), [E, w] = q(o || 200), S = ce(null), O = s !== void 0 ? s : e.length >
|
|
2054
|
+
), [E, w] = q(o || 200), S = ce(null), O = s !== void 0 ? s : e.length > On, b = f ? e.filter(
|
|
2055
2055
|
(I) => I.label.toLowerCase().includes(f.toLowerCase())
|
|
2056
2056
|
) : e, y = (I) => {
|
|
2057
2057
|
d(I);
|
|
2058
|
-
}, { virtualItems:
|
|
2058
|
+
}, { virtualItems: D, containerProps: N, innerProps: _, scrollToIndex: T } = Pr({
|
|
2059
2059
|
items: b,
|
|
2060
2060
|
itemHeight: m,
|
|
2061
2061
|
containerHeight: 200,
|
|
@@ -2068,20 +2068,20 @@ const Tn = 10, Pr = ({
|
|
|
2068
2068
|
}, [p, b]), ne(() => {
|
|
2069
2069
|
u && (S != null && S.current) && S.current.focus();
|
|
2070
2070
|
}, [u, S]), ne(() => {
|
|
2071
|
-
const I =
|
|
2071
|
+
const I = Tn(e, t);
|
|
2072
2072
|
w(I);
|
|
2073
2073
|
}, [e, t]);
|
|
2074
|
-
const
|
|
2074
|
+
const R = (I) => {
|
|
2075
2075
|
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2076
2076
|
I.preventDefault();
|
|
2077
2077
|
let W = p;
|
|
2078
2078
|
I.key === "ArrowDown" ? W = p < b.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (W = p > 0 ? p - 1 : b.length - 1), v(W);
|
|
2079
2079
|
} else I.key === "Enter" ? p >= 0 && p < b.length && (c == null || c(b[p])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2080
2080
|
l && l(I);
|
|
2081
|
-
},
|
|
2082
|
-
|
|
2081
|
+
}, k = (I) => {
|
|
2082
|
+
R(I);
|
|
2083
2083
|
}, P = (I) => {
|
|
2084
|
-
|
|
2084
|
+
R(I);
|
|
2085
2085
|
}, A = {
|
|
2086
2086
|
wrapper: `${et["smp-list"]}`,
|
|
2087
2087
|
container: `${et["smp-list-container"]}`,
|
|
@@ -2101,27 +2101,27 @@ const Tn = 10, Pr = ({
|
|
|
2101
2101
|
},
|
|
2102
2102
|
children: [
|
|
2103
2103
|
O && /* @__PURE__ */ g.jsx(
|
|
2104
|
-
|
|
2104
|
+
Re,
|
|
2105
2105
|
{
|
|
2106
2106
|
bindValue: f,
|
|
2107
2107
|
placeholder: "Search...",
|
|
2108
2108
|
fullWidth: !0,
|
|
2109
2109
|
onChange: y,
|
|
2110
|
-
onKeyDown:
|
|
2110
|
+
onKeyDown: k,
|
|
2111
2111
|
inputRef: S
|
|
2112
2112
|
}
|
|
2113
2113
|
),
|
|
2114
2114
|
/* @__PURE__ */ g.jsx(
|
|
2115
2115
|
"div",
|
|
2116
2116
|
{
|
|
2117
|
-
...
|
|
2117
|
+
...N,
|
|
2118
2118
|
className: A.container,
|
|
2119
2119
|
tabIndex: 0,
|
|
2120
2120
|
role: "listbox",
|
|
2121
2121
|
"aria-label": "List",
|
|
2122
2122
|
onKeyDown: P,
|
|
2123
2123
|
"aria-activedescendant": p >= 0 && p < b.length ? (V = b[p]) == null ? void 0 : V.id : void 0,
|
|
2124
|
-
children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children:
|
|
2124
|
+
children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children: D.map(({ item: I, index: W, offsetTop: z }) => {
|
|
2125
2125
|
const X = i.includes(I.id);
|
|
2126
2126
|
return (
|
|
2127
2127
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2157,7 +2157,7 @@ const Tn = 10, Pr = ({
|
|
|
2157
2157
|
]
|
|
2158
2158
|
}
|
|
2159
2159
|
);
|
|
2160
|
-
},
|
|
2160
|
+
}, Lt = ({
|
|
2161
2161
|
displayMode: r,
|
|
2162
2162
|
bindValue: e,
|
|
2163
2163
|
optionalDisplayValue: t,
|
|
@@ -2172,8 +2172,8 @@ const Tn = 10, Pr = ({
|
|
|
2172
2172
|
a(
|
|
2173
2173
|
Le(e, t, r)
|
|
2174
2174
|
);
|
|
2175
|
-
}, [t, r]), /* @__PURE__ */ g.jsx(
|
|
2176
|
-
},
|
|
2175
|
+
}, [t, r]), /* @__PURE__ */ g.jsx(Re, { ...n, bindValue: s });
|
|
2176
|
+
}, Dn = (r) => {
|
|
2177
2177
|
const e = ce(null);
|
|
2178
2178
|
return ne(() => () => {
|
|
2179
2179
|
e.current && clearTimeout(e.current);
|
|
@@ -2189,7 +2189,7 @@ function mt({
|
|
|
2189
2189
|
const [e, t] = q(!1);
|
|
2190
2190
|
return ne(() => {
|
|
2191
2191
|
t(!0);
|
|
2192
|
-
}, []), e ?
|
|
2192
|
+
}, []), e ? Br(r, document.body) : null;
|
|
2193
2193
|
}
|
|
2194
2194
|
const Ye = (r, e, t) => {
|
|
2195
2195
|
ne(() => {
|
|
@@ -2207,23 +2207,23 @@ const Ye = (r, e, t) => {
|
|
|
2207
2207
|
r = n, e = s;
|
|
2208
2208
|
});
|
|
2209
2209
|
return t.resolve = r, t.reject = e, t;
|
|
2210
|
-
},
|
|
2210
|
+
}, ir = (r) => r == null ? "" : "" + r, Rn = (r, e, t) => {
|
|
2211
2211
|
r.forEach((n) => {
|
|
2212
2212
|
e[n] && (t[n] = e[n]);
|
|
2213
2213
|
});
|
|
2214
|
-
},
|
|
2214
|
+
}, jn = /###/g, or = (r) => r && r.indexOf("###") > -1 ? r.replace(jn, ".") : r, lr = (r) => !r || K(r), Ve = (r, e, t) => {
|
|
2215
2215
|
const n = K(e) ? e.split(".") : e;
|
|
2216
2216
|
let s = 0;
|
|
2217
2217
|
for (; s < n.length - 1; ) {
|
|
2218
|
-
if (
|
|
2219
|
-
const a =
|
|
2218
|
+
if (lr(r)) return {};
|
|
2219
|
+
const a = or(n[s]);
|
|
2220
2220
|
!r[a] && t && (r[a] = new t()), Object.prototype.hasOwnProperty.call(r, a) ? r = r[a] : r = {}, ++s;
|
|
2221
2221
|
}
|
|
2222
|
-
return
|
|
2222
|
+
return lr(r) ? {} : {
|
|
2223
2223
|
obj: r,
|
|
2224
|
-
k:
|
|
2224
|
+
k: or(n[s])
|
|
2225
2225
|
};
|
|
2226
|
-
},
|
|
2226
|
+
}, cr = (r, e, t) => {
|
|
2227
2227
|
const {
|
|
2228
2228
|
obj: n,
|
|
2229
2229
|
k: s
|
|
@@ -2236,7 +2236,7 @@ const Ye = (r, e, t) => {
|
|
|
2236
2236
|
for (; o.obj === void 0 && i.length; )
|
|
2237
2237
|
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = Ve(r, i, Object), o != null && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
2238
2238
|
o.obj[`${o.k}.${a}`] = t;
|
|
2239
|
-
},
|
|
2239
|
+
}, _n = (r, e, t, n) => {
|
|
2240
2240
|
const {
|
|
2241
2241
|
obj: s,
|
|
2242
2242
|
k: a
|
|
@@ -2249,15 +2249,15 @@ const Ye = (r, e, t) => {
|
|
|
2249
2249
|
} = Ve(r, e);
|
|
2250
2250
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2251
2251
|
return t[n];
|
|
2252
|
-
},
|
|
2252
|
+
}, $n = (r, e, t) => {
|
|
2253
2253
|
const n = ut(r, t);
|
|
2254
2254
|
return n !== void 0 ? n : ut(e, t);
|
|
2255
|
-
},
|
|
2255
|
+
}, Lr = (r, e, t) => {
|
|
2256
2256
|
for (const n in e)
|
|
2257
|
-
n !== "__proto__" && n !== "constructor" && (n in r ? K(r[n]) || r[n] instanceof String || K(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) :
|
|
2257
|
+
n !== "__proto__" && n !== "constructor" && (n in r ? K(r[n]) || r[n] instanceof String || K(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Lr(r[n], e[n], t) : r[n] = e[n]);
|
|
2258
2258
|
return r;
|
|
2259
2259
|
}, $e = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2260
|
-
var
|
|
2260
|
+
var Cn = {
|
|
2261
2261
|
"&": "&",
|
|
2262
2262
|
"<": "<",
|
|
2263
2263
|
">": ">",
|
|
@@ -2265,8 +2265,8 @@ var $n = {
|
|
|
2265
2265
|
"'": "'",
|
|
2266
2266
|
"/": "/"
|
|
2267
2267
|
};
|
|
2268
|
-
const
|
|
2269
|
-
class
|
|
2268
|
+
const Pn = (r) => K(r) ? r.replace(/[&<>"'\/]/g, (e) => Cn[e]) : r;
|
|
2269
|
+
class An {
|
|
2270
2270
|
constructor(e) {
|
|
2271
2271
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
2272
2272
|
}
|
|
@@ -2278,11 +2278,11 @@ class Pn {
|
|
|
2278
2278
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2279
2279
|
}
|
|
2280
2280
|
}
|
|
2281
|
-
const
|
|
2281
|
+
const Ln = [" ", ",", "?", "!", ";"], Nn = new An(20), kn = (r, e, t) => {
|
|
2282
2282
|
e = e || "", t = t || "";
|
|
2283
|
-
const n =
|
|
2283
|
+
const n = Ln.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2284
2284
|
if (n.length === 0) return !0;
|
|
2285
|
-
const s =
|
|
2285
|
+
const s = Nn.getRegExp(`(${n.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2286
2286
|
let a = !s.test(r);
|
|
2287
2287
|
if (!a) {
|
|
2288
2288
|
const i = r.indexOf(t);
|
|
@@ -2309,7 +2309,7 @@ const An = [" ", ",", "?", "!", ";"], Ln = new Pn(20), kn = (r, e, t) => {
|
|
|
2309
2309
|
s = i;
|
|
2310
2310
|
}
|
|
2311
2311
|
return s;
|
|
2312
|
-
}, Ue = (r) => r == null ? void 0 : r.replace("_", "-"),
|
|
2312
|
+
}, Ue = (r) => r == null ? void 0 : r.replace("_", "-"), In = {
|
|
2313
2313
|
type: "logger",
|
|
2314
2314
|
log(r) {
|
|
2315
2315
|
this.output("log", r);
|
|
@@ -2330,7 +2330,7 @@ class ft {
|
|
|
2330
2330
|
this.init(e, t);
|
|
2331
2331
|
}
|
|
2332
2332
|
init(e, t = {}) {
|
|
2333
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2333
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || In, this.options = t, this.debug = t.debug;
|
|
2334
2334
|
}
|
|
2335
2335
|
log(...e) {
|
|
2336
2336
|
return this.forward(e, "log", "", !0);
|
|
@@ -2388,7 +2388,7 @@ class gt {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
}
|
|
2390
2390
|
}
|
|
2391
|
-
class
|
|
2391
|
+
class ur extends gt {
|
|
2392
2392
|
constructor(e, t = {
|
|
2393
2393
|
ns: ["translation"],
|
|
2394
2394
|
defaultNS: "translation"
|
|
@@ -2415,7 +2415,7 @@ class cr extends gt {
|
|
|
2415
2415
|
}) {
|
|
2416
2416
|
const i = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator;
|
|
2417
2417
|
let o = [e, t];
|
|
2418
|
-
n && (o = o.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t),
|
|
2418
|
+
n && (o = o.concat(i ? n.split(i) : n)), e.indexOf(".") > -1 && (o = e.split("."), s = t, t = o[1]), this.addNamespaces(t), cr(this.data, o, s), a.silent || this.emit("added", e, t, n, s);
|
|
2419
2419
|
}
|
|
2420
2420
|
addResources(e, t, n, s = {
|
|
2421
2421
|
silent: !1
|
|
@@ -2433,10 +2433,10 @@ class cr extends gt {
|
|
|
2433
2433
|
let o = [e, t];
|
|
2434
2434
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2435
2435
|
let c = ut(this.data, o) || {};
|
|
2436
|
-
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ?
|
|
2436
|
+
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Lr(c, n, a) : c = {
|
|
2437
2437
|
...c,
|
|
2438
2438
|
...n
|
|
2439
|
-
},
|
|
2439
|
+
}, cr(this.data, o, c), i.silent || this.emit("added", e, t, n);
|
|
2440
2440
|
}
|
|
2441
2441
|
removeResourceBundle(e, t) {
|
|
2442
2442
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2458,7 +2458,7 @@ class cr extends gt {
|
|
|
2458
2458
|
return this.data;
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
var
|
|
2461
|
+
var Nr = {
|
|
2462
2462
|
processors: {},
|
|
2463
2463
|
addPostProcessor(r) {
|
|
2464
2464
|
this.processors[r.name] = r;
|
|
@@ -2470,7 +2470,7 @@ var Lr = {
|
|
|
2470
2470
|
}), e;
|
|
2471
2471
|
}
|
|
2472
2472
|
};
|
|
2473
|
-
const
|
|
2473
|
+
const fr = {}, dr = (r) => !K(r) && typeof r != "boolean" && typeof r != "number";
|
|
2474
2474
|
class dt extends gt {
|
|
2475
2475
|
constructor(e, t = {}) {
|
|
2476
2476
|
super(), Rn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = be.create("translator");
|
|
@@ -2542,36 +2542,36 @@ class dt extends gt {
|
|
|
2542
2542
|
} : o;
|
|
2543
2543
|
const m = this.resolve(e, s);
|
|
2544
2544
|
let p = m == null ? void 0 : m.res;
|
|
2545
|
-
const v = (m == null ? void 0 : m.usedKey) || o, E = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, b = s.count !== void 0 && !K(s.count), y = dt.hasDefaultValue(s),
|
|
2545
|
+
const v = (m == null ? void 0 : m.usedKey) || o, E = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, b = s.count !== void 0 && !K(s.count), y = dt.hasDefaultValue(s), D = b ? this.pluralResolver.getSuffix(f, s.count, s) : "", N = s.ordinal && b ? this.pluralResolver.getSuffix(f, s.count, {
|
|
2546
2546
|
ordinal: !1
|
|
2547
|
-
}) : "", _ = b && !s.ordinal && s.count === 0, T = _ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${
|
|
2548
|
-
let
|
|
2549
|
-
O && !p && y && (
|
|
2550
|
-
const
|
|
2551
|
-
if (O &&
|
|
2547
|
+
}) : "", _ = b && !s.ordinal && s.count === 0, T = _ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${N}`] || s.defaultValue;
|
|
2548
|
+
let R = p;
|
|
2549
|
+
O && !p && y && (R = T);
|
|
2550
|
+
const k = dr(R), P = Object.prototype.toString.apply(R);
|
|
2551
|
+
if (O && R && k && w.indexOf(P) < 0 && !(K(S) && Array.isArray(R))) {
|
|
2552
2552
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2553
2553
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2554
|
-
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v,
|
|
2554
|
+
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, R, {
|
|
2555
2555
|
...s,
|
|
2556
2556
|
ns: c
|
|
2557
2557
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2558
2558
|
return a ? (m.res = A, m.usedParams = this.getUsedParamsDetails(s), m) : A;
|
|
2559
2559
|
}
|
|
2560
2560
|
if (i) {
|
|
2561
|
-
const A = Array.isArray(
|
|
2562
|
-
for (const W in
|
|
2563
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2561
|
+
const A = Array.isArray(R), V = A ? [] : {}, I = A ? E : v;
|
|
2562
|
+
for (const W in R)
|
|
2563
|
+
if (Object.prototype.hasOwnProperty.call(R, W)) {
|
|
2564
2564
|
const z = `${I}${i}${W}`;
|
|
2565
2565
|
y && !p ? V[W] = this.translate(z, {
|
|
2566
2566
|
...s,
|
|
2567
|
-
defaultValue:
|
|
2567
|
+
defaultValue: dr(T) ? T[W] : void 0,
|
|
2568
2568
|
joinArrays: !1,
|
|
2569
2569
|
ns: c
|
|
2570
2570
|
}) : V[W] = this.translate(z, {
|
|
2571
2571
|
...s,
|
|
2572
2572
|
joinArrays: !1,
|
|
2573
2573
|
ns: c
|
|
2574
|
-
}), V[W] === z && (V[W] =
|
|
2574
|
+
}), V[W] === z && (V[W] = R[W]);
|
|
2575
2575
|
}
|
|
2576
2576
|
p = V;
|
|
2577
2577
|
}
|
|
@@ -2645,7 +2645,7 @@ class dt extends gt {
|
|
|
2645
2645
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
2646
2646
|
}
|
|
2647
2647
|
const i = n.postProcess || this.options.postProcess, o = K(i) ? [i] : i;
|
|
2648
|
-
return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e =
|
|
2648
|
+
return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Nr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2649
2649
|
i18nResolved: {
|
|
2650
2650
|
...s,
|
|
2651
2651
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -2664,20 +2664,20 @@ class dt extends gt {
|
|
|
2664
2664
|
const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2665
2665
|
f.forEach((E) => {
|
|
2666
2666
|
var w, S;
|
|
2667
|
-
this.isValidLookup(n) || (o = E, !
|
|
2668
|
-
var
|
|
2667
|
+
this.isValidLookup(n) || (o = E, !fr[`${v[0]}-${E}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(o)) && (fr[`${v[0]}-${E}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((O) => {
|
|
2668
|
+
var D;
|
|
2669
2669
|
if (this.isValidLookup(n)) return;
|
|
2670
2670
|
i = O;
|
|
2671
2671
|
const b = [u];
|
|
2672
|
-
if ((
|
|
2672
|
+
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
2673
2673
|
this.i18nFormat.addLookupKeys(b, u, O, E, t);
|
|
2674
2674
|
else {
|
|
2675
|
-
let
|
|
2676
|
-
d && (
|
|
2675
|
+
let N;
|
|
2676
|
+
d && (N = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2677
2677
|
const _ = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2678
|
-
if (d && (b.push(u +
|
|
2679
|
-
const
|
|
2680
|
-
b.push(
|
|
2678
|
+
if (d && (b.push(u + N), t.ordinal && N.indexOf(T) === 0 && b.push(u + N.replace(T, this.options.pluralSeparator)), m && b.push(u + _)), p) {
|
|
2679
|
+
const R = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2680
|
+
b.push(R), d && (b.push(R + N), t.ordinal && N.indexOf(T) === 0 && b.push(R + N.replace(T, this.options.pluralSeparator)), m && b.push(R + _));
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
let y;
|
|
@@ -2723,7 +2723,7 @@ class dt extends gt {
|
|
|
2723
2723
|
return !1;
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
|
-
class
|
|
2726
|
+
class pr {
|
|
2727
2727
|
constructor(e) {
|
|
2728
2728
|
this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = be.create("languageUtils");
|
|
2729
2729
|
}
|
|
@@ -2787,20 +2787,20 @@ class dr {
|
|
|
2787
2787
|
}), s;
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
const
|
|
2790
|
+
const hr = {
|
|
2791
2791
|
zero: 0,
|
|
2792
2792
|
one: 1,
|
|
2793
2793
|
two: 2,
|
|
2794
2794
|
few: 3,
|
|
2795
2795
|
many: 4,
|
|
2796
2796
|
other: 5
|
|
2797
|
-
},
|
|
2797
|
+
}, mr = {
|
|
2798
2798
|
select: (r) => r === 1 ? "one" : "other",
|
|
2799
2799
|
resolvedOptions: () => ({
|
|
2800
2800
|
pluralCategories: ["one", "other"]
|
|
2801
2801
|
})
|
|
2802
2802
|
};
|
|
2803
|
-
class
|
|
2803
|
+
class Mn {
|
|
2804
2804
|
constructor(e, t = {}) {
|
|
2805
2805
|
this.languageUtils = e, this.options = t, this.logger = be.create("pluralResolver"), this.pluralRulesCache = {};
|
|
2806
2806
|
}
|
|
@@ -2824,8 +2824,8 @@ class In {
|
|
|
2824
2824
|
});
|
|
2825
2825
|
} catch {
|
|
2826
2826
|
if (!Intl)
|
|
2827
|
-
return this.logger.error("No Intl support, please use an Intl polyfill!"),
|
|
2828
|
-
if (!e.match(/-|_/)) return
|
|
2827
|
+
return this.logger.error("No Intl support, please use an Intl polyfill!"), mr;
|
|
2828
|
+
if (!e.match(/-|_/)) return mr;
|
|
2829
2829
|
const c = this.languageUtils.getLanguagePartFromCode(e);
|
|
2830
2830
|
i = this.getRule(c, t);
|
|
2831
2831
|
}
|
|
@@ -2840,18 +2840,18 @@ class In {
|
|
|
2840
2840
|
}
|
|
2841
2841
|
getSuffixes(e, t = {}) {
|
|
2842
2842
|
let n = this.getRule(e, t);
|
|
2843
|
-
return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((s, a) =>
|
|
2843
|
+
return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((s, a) => hr[s] - hr[a]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
|
|
2844
2844
|
}
|
|
2845
2845
|
getSuffix(e, t, n = {}) {
|
|
2846
2846
|
const s = this.getRule(e, n);
|
|
2847
2847
|
return s ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
2850
|
-
const
|
|
2851
|
-
let a =
|
|
2850
|
+
const gr = (r, e, t, n = ".", s = !0) => {
|
|
2851
|
+
let a = $n(r, e, t);
|
|
2852
2852
|
return !a && s && K(t) && (a = _t(r, t, n), a === void 0 && (a = _t(e, t, n))), a;
|
|
2853
2853
|
}, Ot = (r) => r.replace(/\$/g, "$$$$");
|
|
2854
|
-
class
|
|
2854
|
+
class Fn {
|
|
2855
2855
|
constructor(e = {}) {
|
|
2856
2856
|
var t;
|
|
2857
2857
|
this.logger = be.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((n) => n), this.init(e);
|
|
@@ -2879,7 +2879,7 @@ class Mn {
|
|
|
2879
2879
|
maxReplaces: w,
|
|
2880
2880
|
alwaysFormat: S
|
|
2881
2881
|
} = e.interpolation;
|
|
2882
|
-
this.escape = t !== void 0 ? t :
|
|
2882
|
+
this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? $e(a) : i || "{{", this.suffix = o ? $e(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? $e(d) : m || $e("$t("), this.nestingSuffix = p ? $e(p) : v || $e(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
2883
2883
|
}
|
|
2884
2884
|
reset() {
|
|
2885
2885
|
this.options && this.init(this.options);
|
|
@@ -2893,7 +2893,7 @@ class Mn {
|
|
|
2893
2893
|
let a, i, o;
|
|
2894
2894
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (p) => {
|
|
2895
2895
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
2896
|
-
const S =
|
|
2896
|
+
const S = gr(t, c, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2897
2897
|
return this.alwaysFormat ? this.format(S, void 0, n, {
|
|
2898
2898
|
...s,
|
|
2899
2899
|
...t,
|
|
@@ -2901,7 +2901,7 @@ class Mn {
|
|
|
2901
2901
|
}) : S;
|
|
2902
2902
|
}
|
|
2903
2903
|
const v = p.split(this.formatSeparator), E = v.shift().trim(), w = v.join(this.formatSeparator).trim();
|
|
2904
|
-
return this.format(
|
|
2904
|
+
return this.format(gr(t, c, E, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
|
|
2905
2905
|
...s,
|
|
2906
2906
|
...t,
|
|
2907
2907
|
interpolationkey: E
|
|
@@ -2929,7 +2929,7 @@ class Mn {
|
|
|
2929
2929
|
continue;
|
|
2930
2930
|
} else
|
|
2931
2931
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), i = "";
|
|
2932
|
-
else !K(i) && !this.useRawValueToEscape && (i =
|
|
2932
|
+
else !K(i) && !this.useRawValueToEscape && (i = ir(i));
|
|
2933
2933
|
const E = p.safeValue(i);
|
|
2934
2934
|
if (e = e.replace(a[0], E), f ? (p.regex.lastIndex += i.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2935
2935
|
break;
|
|
@@ -2967,7 +2967,7 @@ class Mn {
|
|
|
2967
2967
|
s[1] = u.shift(), c = u, l = !0;
|
|
2968
2968
|
}
|
|
2969
2969
|
if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !K(a)) return a;
|
|
2970
|
-
K(a) || (a =
|
|
2970
|
+
K(a) || (a = ir(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l && (a = c.reduce((u, f) => this.format(u, f, n.lng, {
|
|
2971
2971
|
...n,
|
|
2972
2972
|
interpolationkey: s[1].trim()
|
|
2973
2973
|
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
@@ -2975,7 +2975,7 @@ class Mn {
|
|
|
2975
2975
|
return e;
|
|
2976
2976
|
}
|
|
2977
2977
|
}
|
|
2978
|
-
const
|
|
2978
|
+
const Vn = (r) => {
|
|
2979
2979
|
let e = r.toLowerCase().trim();
|
|
2980
2980
|
const t = {};
|
|
2981
2981
|
if (r.indexOf("(") > -1) {
|
|
@@ -2993,7 +2993,7 @@ const Fn = (r) => {
|
|
|
2993
2993
|
formatName: e,
|
|
2994
2994
|
formatOptions: t
|
|
2995
2995
|
};
|
|
2996
|
-
},
|
|
2996
|
+
}, yr = (r) => {
|
|
2997
2997
|
const e = {};
|
|
2998
2998
|
return (t, n, s) => {
|
|
2999
2999
|
let a = s;
|
|
@@ -3005,8 +3005,8 @@ const Fn = (r) => {
|
|
|
3005
3005
|
let o = e[i];
|
|
3006
3006
|
return o || (o = r(Ue(n), s), e[i] = o), o(t);
|
|
3007
3007
|
};
|
|
3008
|
-
},
|
|
3009
|
-
class
|
|
3008
|
+
}, Yn = (r) => (e, t, n) => r(Ue(t), n)(e);
|
|
3009
|
+
class Un {
|
|
3010
3010
|
constructor(e = {}) {
|
|
3011
3011
|
this.logger = be.create("formatter"), this.options = e, this.init(e);
|
|
3012
3012
|
}
|
|
@@ -3014,7 +3014,7 @@ class Yn {
|
|
|
3014
3014
|
interpolation: {}
|
|
3015
3015
|
}) {
|
|
3016
3016
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3017
|
-
const n = t.cacheInBuiltFormats ?
|
|
3017
|
+
const n = t.cacheInBuiltFormats ? yr : Yn;
|
|
3018
3018
|
this.formats = {
|
|
3019
3019
|
number: n((s, a) => {
|
|
3020
3020
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3053,7 +3053,7 @@ class Yn {
|
|
|
3053
3053
|
this.formats[e.toLowerCase().trim()] = t;
|
|
3054
3054
|
}
|
|
3055
3055
|
addCached(e, t) {
|
|
3056
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3056
|
+
this.formats[e.toLowerCase().trim()] = yr(t);
|
|
3057
3057
|
}
|
|
3058
3058
|
format(e, t, n, s = {}) {
|
|
3059
3059
|
const a = t.split(this.formatSeparator);
|
|
@@ -3066,7 +3066,7 @@ class Yn {
|
|
|
3066
3066
|
const {
|
|
3067
3067
|
formatName: l,
|
|
3068
3068
|
formatOptions: u
|
|
3069
|
-
} =
|
|
3069
|
+
} = Vn(c);
|
|
3070
3070
|
if (this.formats[l]) {
|
|
3071
3071
|
let d = o;
|
|
3072
3072
|
try {
|
|
@@ -3086,10 +3086,10 @@ class Yn {
|
|
|
3086
3086
|
}, e);
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
|
-
const
|
|
3089
|
+
const Wn = (r, e) => {
|
|
3090
3090
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3091
3091
|
};
|
|
3092
|
-
class
|
|
3092
|
+
class Bn extends gt {
|
|
3093
3093
|
constructor(e, t, n, s = {}) {
|
|
3094
3094
|
var a, i;
|
|
3095
3095
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = be.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 = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
|
|
@@ -3122,7 +3122,7 @@ class Wn extends gt {
|
|
|
3122
3122
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3123
3123
|
const o = {};
|
|
3124
3124
|
this.queue.forEach((c) => {
|
|
3125
|
-
|
|
3125
|
+
_n(c.loaded, [a], i), Wn(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
|
|
3126
3126
|
o[l] || (o[l] = {});
|
|
3127
3127
|
const u = c.loaded[l];
|
|
3128
3128
|
u.length && u.forEach((f) => {
|
|
@@ -3221,7 +3221,7 @@ class Wn extends gt {
|
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
}
|
|
3224
|
-
const
|
|
3224
|
+
const vr = () => ({
|
|
3225
3225
|
debug: !1,
|
|
3226
3226
|
initAsync: !0,
|
|
3227
3227
|
ns: ["translation"],
|
|
@@ -3278,20 +3278,20 @@ const yr = () => ({
|
|
|
3278
3278
|
skipOnVariables: !0
|
|
3279
3279
|
},
|
|
3280
3280
|
cacheInBuiltFormats: !0
|
|
3281
|
-
}),
|
|
3281
|
+
}), xr = (r) => {
|
|
3282
3282
|
var e, t;
|
|
3283
3283
|
return K(r.ns) && (r.ns = [r.ns]), K(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), K(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
|
|
3284
3284
|
}, tt = () => {
|
|
3285
|
-
},
|
|
3285
|
+
}, Hn = (r) => {
|
|
3286
3286
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
3287
3287
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3288
3288
|
});
|
|
3289
3289
|
};
|
|
3290
3290
|
class We extends gt {
|
|
3291
3291
|
constructor(e = {}, t) {
|
|
3292
|
-
if (super(), this.options =
|
|
3292
|
+
if (super(), this.options = xr(e), this.services = {}, this.logger = be, this.modules = {
|
|
3293
3293
|
external: []
|
|
3294
|
-
},
|
|
3294
|
+
}, Hn(this), t && !this.isInitialized && !e.isClone) {
|
|
3295
3295
|
if (!this.options.initAsync)
|
|
3296
3296
|
return this.init(e, t), this;
|
|
3297
3297
|
setTimeout(() => {
|
|
@@ -3301,11 +3301,11 @@ class We extends gt {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
init(e = {}, t) {
|
|
3303
3303
|
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (K(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
3304
|
-
const n =
|
|
3304
|
+
const n = vr();
|
|
3305
3305
|
this.options = {
|
|
3306
3306
|
...n,
|
|
3307
3307
|
...this.options,
|
|
3308
|
-
...
|
|
3308
|
+
...xr(e)
|
|
3309
3309
|
}, this.options.interpolation = {
|
|
3310
3310
|
...n.interpolation,
|
|
3311
3311
|
...this.options.interpolation
|
|
@@ -3314,16 +3314,16 @@ class We extends gt {
|
|
|
3314
3314
|
if (!this.options.isClone) {
|
|
3315
3315
|
this.modules.logger ? be.init(s(this.modules.logger), this.options) : be.init(null, this.options);
|
|
3316
3316
|
let l;
|
|
3317
|
-
this.modules.formatter ? l = this.modules.formatter : l =
|
|
3318
|
-
const u = new
|
|
3319
|
-
this.store = new
|
|
3317
|
+
this.modules.formatter ? l = this.modules.formatter : l = Un;
|
|
3318
|
+
const u = new pr(this.options);
|
|
3319
|
+
this.store = new ur(this.options.resources, this.options);
|
|
3320
3320
|
const f = this.services;
|
|
3321
|
-
f.logger = be, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new
|
|
3321
|
+
f.logger = be, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new Mn(u, {
|
|
3322
3322
|
prepend: this.options.pluralSeparator,
|
|
3323
3323
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3324
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
3324
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Fn(this.options), f.utils = {
|
|
3325
3325
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3326
|
-
}, f.backendConnector = new
|
|
3326
|
+
}, f.backendConnector = new Bn(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...m) => {
|
|
3327
3327
|
this.emit(d, ...m);
|
|
3328
3328
|
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (d, ...m) => {
|
|
3329
3329
|
this.emit(d, ...m);
|
|
@@ -3376,7 +3376,7 @@ class We extends gt {
|
|
|
3376
3376
|
use(e) {
|
|
3377
3377
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3378
3378
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3379
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3379
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && Nr.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3380
3380
|
}
|
|
3381
3381
|
setResolvedLanguage(e) {
|
|
3382
3382
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -3467,7 +3467,7 @@ class We extends gt {
|
|
|
3467
3467
|
dir(e) {
|
|
3468
3468
|
var s, a;
|
|
3469
3469
|
if (e || (e = this.resolvedLanguage || (((s = this.languages) == null ? void 0 : s.length) > 0 ? this.languages[0] : this.language)), !e) return "rtl";
|
|
3470
|
-
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((a = this.services) == null ? void 0 : a.languageUtils) || new
|
|
3470
|
+
const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = ((a = this.services) == null ? void 0 : a.languageUtils) || new pr(vr());
|
|
3471
3471
|
return t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3472
3472
|
}
|
|
3473
3473
|
static createInstance(e = {}, t) {
|
|
@@ -3493,7 +3493,7 @@ class We extends gt {
|
|
|
3493
3493
|
}, c[l] = Object.keys(c[l]).reduce((u, f) => (u[f] = {
|
|
3494
3494
|
...c[l][f]
|
|
3495
3495
|
}, u), c[l]), c), {});
|
|
3496
|
-
a.store = new
|
|
3496
|
+
a.store = new ur(o, s), a.services.resourceStore = a.store;
|
|
3497
3497
|
}
|
|
3498
3498
|
return a.translator = new dt(a.services, s), a.translator.on("*", (o, ...c) => {
|
|
3499
3499
|
a.emit(o, ...c);
|
|
@@ -3527,47 +3527,47 @@ ie.setDefaultNamespace;
|
|
|
3527
3527
|
ie.hasLoadedNamespace;
|
|
3528
3528
|
ie.loadNamespaces;
|
|
3529
3529
|
ie.loadLanguages;
|
|
3530
|
-
const
|
|
3530
|
+
const Gn = { 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" }, Kn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, qn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, zn = {
|
|
3531
3531
|
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" },
|
|
3532
|
-
Day:
|
|
3533
|
-
Month:
|
|
3534
|
-
Generic:
|
|
3535
|
-
},
|
|
3532
|
+
Day: Gn,
|
|
3533
|
+
Month: Kn,
|
|
3534
|
+
Generic: qn
|
|
3535
|
+
}, Jn = { 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" }, Xn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Zn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Qn = {
|
|
3536
3536
|
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" },
|
|
3537
|
-
Day:
|
|
3538
|
-
Month:
|
|
3539
|
-
Generic:
|
|
3537
|
+
Day: Jn,
|
|
3538
|
+
Month: Xn,
|
|
3539
|
+
Generic: Zn
|
|
3540
3540
|
};
|
|
3541
|
-
function
|
|
3542
|
-
return new RegExp(
|
|
3541
|
+
function br(r, e) {
|
|
3542
|
+
return new RegExp(es(r), e);
|
|
3543
3543
|
}
|
|
3544
|
-
function
|
|
3544
|
+
function es(r) {
|
|
3545
3545
|
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3546
3546
|
}
|
|
3547
|
-
const
|
|
3547
|
+
const ts = (r, e, t) => {
|
|
3548
3548
|
let n = r;
|
|
3549
3549
|
return isNaN(n) || (e != null && (n = Math.max(n, e)), t != null && (n = Math.min(n, t))), n;
|
|
3550
|
-
},
|
|
3550
|
+
}, rs = (r, e) => {
|
|
3551
3551
|
var i, o;
|
|
3552
3552
|
const n = Intl.NumberFormat(r).formatToParts(1000.1), s = ((i = n.find((c) => c.type === "group")) == null ? void 0 : i.value) ?? ",", a = e ?? ((o = n.find((c) => c.type === "decimal")) == null ? void 0 : o.value) ?? ".";
|
|
3553
3553
|
return { groupingChar: s, decimalChar: a };
|
|
3554
3554
|
};
|
|
3555
|
-
function
|
|
3555
|
+
function ns(r, e, t, n) {
|
|
3556
3556
|
let s = e;
|
|
3557
|
-
const a =
|
|
3557
|
+
const a = is(r, t);
|
|
3558
3558
|
if (!s) {
|
|
3559
3559
|
const o = Math.abs(a);
|
|
3560
3560
|
o - Math.floor(o) ? s = "0,0.00" : s = "0,0";
|
|
3561
3561
|
}
|
|
3562
|
-
const i =
|
|
3562
|
+
const i = os(s);
|
|
3563
3563
|
return new Intl.NumberFormat(n, i).format(a);
|
|
3564
3564
|
}
|
|
3565
|
-
const
|
|
3565
|
+
const ss = (r, e, t) => {
|
|
3566
3566
|
const n = r.lastIndexOf(t);
|
|
3567
3567
|
if (n !== -1) return r.length - n - 1;
|
|
3568
3568
|
const s = t === "." ? "," : ".", a = r.lastIndexOf(s);
|
|
3569
3569
|
return a !== -1 && !(s === e && r.length - a - 1 === 3) ? r.length - a - 1 : 0;
|
|
3570
|
-
},
|
|
3570
|
+
}, as = (r, e, t) => {
|
|
3571
3571
|
if (!r) return NaN;
|
|
3572
3572
|
let n = r.replace(/\s/g, ""), s = t;
|
|
3573
3573
|
const a = (n.match(/\./g) || []).length, i = (n.match(/,/g) || []).length;
|
|
@@ -3580,18 +3580,18 @@ const ns = (r, e, t) => {
|
|
|
3580
3580
|
const o = s === "." ? "," : ".";
|
|
3581
3581
|
return n = n.replace(new RegExp(`\\${o}`, "g"), ""), s !== "." && (n = n.replace(new RegExp(`\\${s}`, "g"), ".")), parseFloat(n);
|
|
3582
3582
|
};
|
|
3583
|
-
function
|
|
3583
|
+
function is(r, e, t, n, s) {
|
|
3584
3584
|
let a = r;
|
|
3585
3585
|
if (typeof a != "number") {
|
|
3586
3586
|
let o;
|
|
3587
3587
|
e && n === void 0 ? o = "," : o = ".";
|
|
3588
3588
|
const c = o == "." ? "," : ".";
|
|
3589
|
-
a = a.replace(
|
|
3589
|
+
a = a.replace(br(c, "g"), ""), a = a.replace(br(o, "g"), "."), a = Number(a);
|
|
3590
3590
|
}
|
|
3591
3591
|
const i = Number(a);
|
|
3592
3592
|
return isNaN(i) ? NaN : i;
|
|
3593
3593
|
}
|
|
3594
|
-
function
|
|
3594
|
+
function os(r) {
|
|
3595
3595
|
const e = {};
|
|
3596
3596
|
r.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
|
|
3597
3597
|
const t = r.indexOf(".");
|
|
@@ -3621,7 +3621,7 @@ ie.init({
|
|
|
3621
3621
|
default:
|
|
3622
3622
|
case "number": {
|
|
3623
3623
|
const a = (n == null ? void 0 : n.inputIsLocalized) ?? !1;
|
|
3624
|
-
return
|
|
3624
|
+
return ns(r, e, a, t);
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
3627
|
} catch {
|
|
@@ -3631,25 +3631,25 @@ ie.init({
|
|
|
3631
3631
|
},
|
|
3632
3632
|
resources: {
|
|
3633
3633
|
en: {
|
|
3634
|
-
translation:
|
|
3634
|
+
translation: Qn
|
|
3635
3635
|
},
|
|
3636
3636
|
it: {
|
|
3637
|
-
translation:
|
|
3637
|
+
translation: zn
|
|
3638
3638
|
}
|
|
3639
3639
|
}
|
|
3640
3640
|
});
|
|
3641
|
-
const
|
|
3641
|
+
const ls = (r, e, t, n) => ie.format(r, e, t || ie.language, n), cs = (r, e) => ie.t(r, e);
|
|
3642
3642
|
function je() {
|
|
3643
3643
|
const r = le(
|
|
3644
|
-
(n, s, a, i) =>
|
|
3644
|
+
(n, s, a, i) => ls(n, s, a || void 0, i),
|
|
3645
3645
|
[]
|
|
3646
3646
|
), e = le(() => ie.languages[0], []), t = le(
|
|
3647
|
-
(n, s) =>
|
|
3647
|
+
(n, s) => cs(n, s),
|
|
3648
3648
|
[]
|
|
3649
3649
|
);
|
|
3650
3650
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
3651
3651
|
}
|
|
3652
|
-
var
|
|
3652
|
+
var Ne = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", r.CONFIRM_BUTTON = "Generic.ConfirmButton", r.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", r))(Ne || {}), ue = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(ue || {}), pe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(pe || {}), $t = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))($t || {});
|
|
3653
3653
|
const kr = ({
|
|
3654
3654
|
bindValue: r,
|
|
3655
3655
|
optionalDisplayValue: e,
|
|
@@ -3665,7 +3665,7 @@ const kr = ({
|
|
|
3665
3665
|
_multiActiveIndex: f,
|
|
3666
3666
|
...d
|
|
3667
3667
|
}) => {
|
|
3668
|
-
const m = ce(null), [p, v] = q(r), [E, w] = q(e), { translate: S } = je(), [O, b] = q(!1), [y,
|
|
3668
|
+
const m = ce(null), [p, v] = q(r), [E, w] = q(e), { translate: S } = je(), [O, b] = q(!1), [y, D] = q(t || []), [N, _] = q(0), [T, R] = q([r]), { anchorRef: k, targetRef: P, anchorWidth: A } = ht({
|
|
3669
3669
|
position: "bottom",
|
|
3670
3670
|
enabled: O
|
|
3671
3671
|
}), V = le(() => {
|
|
@@ -3673,25 +3673,25 @@ const kr = ({
|
|
|
3673
3673
|
b(!1), (h = m == null ? void 0 : m.current) == null || h.focus();
|
|
3674
3674
|
}, []);
|
|
3675
3675
|
Ye(P, O, () => V());
|
|
3676
|
-
const I =
|
|
3676
|
+
const I = Dn(400), W = (h) => {
|
|
3677
3677
|
h.length >= a ? o && u && I(async () => {
|
|
3678
3678
|
const x = await u(o, h);
|
|
3679
|
-
|
|
3679
|
+
D(x), _(x.length > 0 ? 0 : -1), b(!0);
|
|
3680
3680
|
}) : V(), v(h), w(e), c || l == null || l(h, e);
|
|
3681
3681
|
}, z = (h) => {
|
|
3682
3682
|
c ? (v(""), w("")) : (v(h.id), w(h.label)), l == null || l(h.id, h.label);
|
|
3683
3683
|
const x = y.findIndex((j) => j.id === h.id);
|
|
3684
|
-
_(x),
|
|
3684
|
+
_(x), R([h.id]), V();
|
|
3685
3685
|
}, X = (h) => {
|
|
3686
3686
|
h.key === "Escape" && (V(), _(-1));
|
|
3687
3687
|
}, F = (h) => {
|
|
3688
3688
|
if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), O)) {
|
|
3689
|
-
const x = h.key === "ArrowDown" ? (
|
|
3689
|
+
const x = h.key === "ArrowDown" ? (N + 1) % y.length : (N - 1 + y.length) % y.length;
|
|
3690
3690
|
_(x);
|
|
3691
3691
|
}
|
|
3692
3692
|
switch (h.key) {
|
|
3693
3693
|
case "Enter":
|
|
3694
|
-
|
|
3694
|
+
N >= 0 && N < y.length ? z(y[N]) : c && (l == null || l(p, ""), V(), v(""), w(""));
|
|
3695
3695
|
break;
|
|
3696
3696
|
case "Escape":
|
|
3697
3697
|
V(), _(-1);
|
|
@@ -3700,7 +3700,7 @@ const kr = ({
|
|
|
3700
3700
|
};
|
|
3701
3701
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3702
3702
|
/* @__PURE__ */ g.jsx(
|
|
3703
|
-
|
|
3703
|
+
Lt,
|
|
3704
3704
|
{
|
|
3705
3705
|
...d,
|
|
3706
3706
|
bindValue: p,
|
|
@@ -3709,9 +3709,9 @@ const kr = ({
|
|
|
3709
3709
|
isEditable: i,
|
|
3710
3710
|
shapeIcon: "magnify",
|
|
3711
3711
|
placeholder: S(
|
|
3712
|
-
|
|
3712
|
+
Ne.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3713
3713
|
),
|
|
3714
|
-
ref:
|
|
3714
|
+
ref: k,
|
|
3715
3715
|
inputRef: m,
|
|
3716
3716
|
onChange: W,
|
|
3717
3717
|
onKeyDown: F,
|
|
@@ -3719,13 +3719,13 @@ const kr = ({
|
|
|
3719
3719
|
}
|
|
3720
3720
|
),
|
|
3721
3721
|
O && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3722
|
-
|
|
3722
|
+
Ar,
|
|
3723
3723
|
{
|
|
3724
3724
|
options: y,
|
|
3725
3725
|
displayMode: s,
|
|
3726
3726
|
onClick: z,
|
|
3727
3727
|
ref: P,
|
|
3728
|
-
selectedIndex:
|
|
3728
|
+
selectedIndex: N,
|
|
3729
3729
|
activeIndex: f || T,
|
|
3730
3730
|
width: A,
|
|
3731
3731
|
showFilter: !1,
|
|
@@ -3734,13 +3734,13 @@ const kr = ({
|
|
|
3734
3734
|
}
|
|
3735
3735
|
) })
|
|
3736
3736
|
] });
|
|
3737
|
-
},
|
|
3737
|
+
}, Sr = (r) => ({
|
|
3738
3738
|
extraSmall: 12,
|
|
3739
3739
|
small: 14,
|
|
3740
3740
|
base: 18,
|
|
3741
3741
|
large: 20,
|
|
3742
3742
|
extraLarge: 24
|
|
3743
|
-
})[r],
|
|
3743
|
+
})[r], wr = (r) => ({
|
|
3744
3744
|
primary: "onPrimary",
|
|
3745
3745
|
danger: "onDanger",
|
|
3746
3746
|
base: "base"
|
|
@@ -3776,22 +3776,22 @@ const kr = ({
|
|
|
3776
3776
|
disabled: a,
|
|
3777
3777
|
"aria-busy": d,
|
|
3778
3778
|
title: p || r || v,
|
|
3779
|
-
children: d ? /* @__PURE__ */ g.jsx(fe, { icon: "spinner", state:
|
|
3779
|
+
children: d ? /* @__PURE__ */ g.jsx(fe, { icon: "spinner", state: wr(o), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
3780
3780
|
s && l && /* @__PURE__ */ g.jsx(
|
|
3781
3781
|
fe,
|
|
3782
3782
|
{
|
|
3783
3783
|
icon: s,
|
|
3784
3784
|
disabled: a,
|
|
3785
|
-
state:
|
|
3786
|
-
width:
|
|
3787
|
-
height:
|
|
3785
|
+
state: wr(o),
|
|
3786
|
+
width: Sr(i),
|
|
3787
|
+
height: Sr(i)
|
|
3788
3788
|
}
|
|
3789
3789
|
),
|
|
3790
3790
|
u && /* @__PURE__ */ g.jsx("span", { children: v || e })
|
|
3791
3791
|
] })
|
|
3792
3792
|
}
|
|
3793
3793
|
);
|
|
3794
|
-
},
|
|
3794
|
+
}, us = ({
|
|
3795
3795
|
options: r,
|
|
3796
3796
|
fun: e,
|
|
3797
3797
|
direction: t = "row",
|
|
@@ -3841,9 +3841,9 @@ const kr = ({
|
|
|
3841
3841
|
return /* @__PURE__ */ g.jsx(Be, { ...y }, `button-${b}`);
|
|
3842
3842
|
});
|
|
3843
3843
|
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: w.container, children: S });
|
|
3844
|
-
},
|
|
3844
|
+
}, fs = {
|
|
3845
3845
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
3846
|
-
},
|
|
3846
|
+
}, ds = ({
|
|
3847
3847
|
bindValue: r,
|
|
3848
3848
|
_dataComponent: e = "checkbox",
|
|
3849
3849
|
disabled: t,
|
|
@@ -3856,10 +3856,10 @@ const kr = ({
|
|
|
3856
3856
|
const c = Ge(), l = (f) => {
|
|
3857
3857
|
s && a && a(f.target.checked);
|
|
3858
3858
|
}, u = {
|
|
3859
|
-
wrapper: `${
|
|
3859
|
+
wrapper: `${fs["smp-checkbox-wrapper"]}`
|
|
3860
3860
|
};
|
|
3861
3861
|
return /* @__PURE__ */ g.jsxs("div", { className: u.wrapper, "data-component": e, children: [
|
|
3862
|
-
n && /* @__PURE__ */ g.jsx(
|
|
3862
|
+
n && /* @__PURE__ */ g.jsx(De, { label: n, disabled: t, htmlFor: c }),
|
|
3863
3863
|
/* @__PURE__ */ g.jsx(
|
|
3864
3864
|
"input",
|
|
3865
3865
|
{
|
|
@@ -3873,18 +3873,18 @@ const kr = ({
|
|
|
3873
3873
|
}
|
|
3874
3874
|
)
|
|
3875
3875
|
] });
|
|
3876
|
-
},
|
|
3876
|
+
}, ps = {
|
|
3877
3877
|
titleLarge: "h2",
|
|
3878
3878
|
title: "h3",
|
|
3879
3879
|
body: "h6",
|
|
3880
3880
|
label: "label"
|
|
3881
|
-
},
|
|
3881
|
+
}, ke = ({
|
|
3882
3882
|
variant: r = "body",
|
|
3883
3883
|
bindValue: e,
|
|
3884
3884
|
color: t,
|
|
3885
3885
|
...n
|
|
3886
3886
|
}) => {
|
|
3887
|
-
const s =
|
|
3887
|
+
const s = ps[r], a = {
|
|
3888
3888
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
3889
3889
|
};
|
|
3890
3890
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -3898,7 +3898,7 @@ const kr = ({
|
|
|
3898
3898
|
children: e
|
|
3899
3899
|
}
|
|
3900
3900
|
);
|
|
3901
|
-
},
|
|
3901
|
+
}, Nt = ({
|
|
3902
3902
|
elements: r,
|
|
3903
3903
|
isEditable: e = !1,
|
|
3904
3904
|
displayMode: t = "Both",
|
|
@@ -3938,7 +3938,7 @@ const kr = ({
|
|
|
3938
3938
|
},
|
|
3939
3939
|
children: [
|
|
3940
3940
|
i && /* @__PURE__ */ g.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
3941
|
-
/* @__PURE__ */ g.jsx(
|
|
3941
|
+
/* @__PURE__ */ g.jsx(ke, { variant: "label", bindValue: v, color: s }),
|
|
3942
3942
|
e && /* @__PURE__ */ g.jsx(
|
|
3943
3943
|
fe,
|
|
3944
3944
|
{
|
|
@@ -4001,7 +4001,7 @@ function kt(r, e) {
|
|
|
4001
4001
|
};
|
|
4002
4002
|
}, [r, e]);
|
|
4003
4003
|
}
|
|
4004
|
-
const
|
|
4004
|
+
const hs = ({
|
|
4005
4005
|
bindValue: r,
|
|
4006
4006
|
onChange: e,
|
|
4007
4007
|
options: t = [],
|
|
@@ -4014,21 +4014,21 @@ const ps = ({
|
|
|
4014
4014
|
multiActiveIndex: l,
|
|
4015
4015
|
...u
|
|
4016
4016
|
}) => {
|
|
4017
|
-
const f = ce(null), [d, m] = q(!1), [p, v] = q(t), [E, w] = q(-1), [S, O] = q([r]), b = Ge(), { anchorRef: y, targetRef:
|
|
4017
|
+
const f = ce(null), [d, m] = q(!1), [p, v] = q(t), [E, w] = q(-1), [S, O] = q([r]), b = Ge(), { anchorRef: y, targetRef: D, anchorWidth: N } = ht({
|
|
4018
4018
|
position: "bottom",
|
|
4019
4019
|
enabled: d
|
|
4020
4020
|
}), _ = le(() => {
|
|
4021
4021
|
var A;
|
|
4022
4022
|
m(!1), (A = f == null ? void 0 : f.current) == null || A.focus();
|
|
4023
4023
|
}, []);
|
|
4024
|
-
Ye(
|
|
4024
|
+
Ye(D, d, () => _()), kt(d, D);
|
|
4025
4025
|
const T = (A) => {
|
|
4026
4026
|
e == null || e(A.id, A.label);
|
|
4027
4027
|
const V = p.findIndex((I) => I.id === A.id);
|
|
4028
4028
|
w(V), O([A.id]), _();
|
|
4029
|
-
},
|
|
4029
|
+
}, R = (A) => {
|
|
4030
4030
|
A.key === "Escape" && (_(), w(-1));
|
|
4031
|
-
},
|
|
4031
|
+
}, k = (A) => {
|
|
4032
4032
|
(A.key === "ArrowDown" || A.key === "ArrowUp") && (A.preventDefault(), P());
|
|
4033
4033
|
}, P = () => {
|
|
4034
4034
|
o && c && c(o, void 0).then((A) => {
|
|
@@ -4045,14 +4045,14 @@ const ps = ({
|
|
|
4045
4045
|
"data-component": "combobox",
|
|
4046
4046
|
children: [
|
|
4047
4047
|
/* @__PURE__ */ g.jsx(
|
|
4048
|
-
|
|
4048
|
+
Lt,
|
|
4049
4049
|
{
|
|
4050
4050
|
...u,
|
|
4051
4051
|
bindValue: r,
|
|
4052
4052
|
optionalDisplayValue: n,
|
|
4053
4053
|
displayMode: a,
|
|
4054
4054
|
onShapeIconClick: P,
|
|
4055
|
-
onKeyDown:
|
|
4055
|
+
onKeyDown: k,
|
|
4056
4056
|
shapeIcon: "arrow_drop_down",
|
|
4057
4057
|
rotatedShapeIcon: d,
|
|
4058
4058
|
isEditable: s,
|
|
@@ -4063,27 +4063,27 @@ const ps = ({
|
|
|
4063
4063
|
}
|
|
4064
4064
|
),
|
|
4065
4065
|
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4066
|
-
|
|
4066
|
+
Ar,
|
|
4067
4067
|
{
|
|
4068
4068
|
id: b,
|
|
4069
4069
|
options: p,
|
|
4070
4070
|
displayMode: i,
|
|
4071
|
-
ref:
|
|
4071
|
+
ref: D,
|
|
4072
4072
|
isOpen: d,
|
|
4073
4073
|
selectedIndex: E,
|
|
4074
4074
|
activeIndex: l || S,
|
|
4075
|
-
width:
|
|
4075
|
+
width: N,
|
|
4076
4076
|
onClick: T,
|
|
4077
|
-
onKeyDown:
|
|
4077
|
+
onKeyDown: R
|
|
4078
4078
|
}
|
|
4079
4079
|
) })
|
|
4080
4080
|
]
|
|
4081
4081
|
}
|
|
4082
4082
|
);
|
|
4083
|
-
},
|
|
4083
|
+
}, ms = {
|
|
4084
4084
|
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
|
|
4085
4085
|
};
|
|
4086
|
-
function
|
|
4086
|
+
function gs({
|
|
4087
4087
|
selectedDate: r,
|
|
4088
4088
|
onDateChange: e,
|
|
4089
4089
|
disabledDateRanges: t = [],
|
|
@@ -4148,18 +4148,18 @@ function ms({
|
|
|
4148
4148
|
const x = h.start.getTime(), j = h.end.getTime(), C = F.getTime();
|
|
4149
4149
|
return C >= x && C <= j;
|
|
4150
4150
|
}), y = (F) => {
|
|
4151
|
-
b(F) || (l(F), v(F.getDate()), e && e(
|
|
4152
|
-
},
|
|
4151
|
+
b(F) || (l(F), v(F.getDate()), e && e(tn(F)));
|
|
4152
|
+
}, D = () => {
|
|
4153
4153
|
u === 0 ? (f(11), m(d - 1)) : f(u - 1), v(1);
|
|
4154
|
-
},
|
|
4154
|
+
}, N = () => {
|
|
4155
4155
|
u === 11 ? (f(0), m(d + 1)) : f(u + 1), v(1);
|
|
4156
|
-
}, _ = (F, h) => new Date(F, h + 1, 0).getDate(), T = (F, h) => new Date(F, h, 1).getDay(),
|
|
4156
|
+
}, _ = (F, h) => new Date(F, h + 1, 0).getDate(), T = (F, h) => new Date(F, h, 1).getDay(), R = (F) => {
|
|
4157
4157
|
var x;
|
|
4158
4158
|
const h = V.findIndex(
|
|
4159
4159
|
(j) => j !== null && j.getDate() === F
|
|
4160
4160
|
);
|
|
4161
4161
|
h !== -1 && w.current[h] && ((x = w.current[h]) == null || x.focus(), v(F));
|
|
4162
|
-
},
|
|
4162
|
+
}, k = (F, h) => {
|
|
4163
4163
|
const x = V[h];
|
|
4164
4164
|
if (!x) return;
|
|
4165
4165
|
const j = _(d, u), C = x.getDate();
|
|
@@ -4170,12 +4170,12 @@ function ms({
|
|
|
4170
4170
|
let $ = C + 1, L = new Date(d, u, $);
|
|
4171
4171
|
if ($ > j) {
|
|
4172
4172
|
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4173
|
-
$ = 1, L = new Date(U, B, $),
|
|
4173
|
+
$ = 1, L = new Date(U, B, $), N(), setTimeout(() => {
|
|
4174
4174
|
P(1, "forward");
|
|
4175
4175
|
}, 0);
|
|
4176
4176
|
return;
|
|
4177
4177
|
}
|
|
4178
|
-
b(L) ? P($, "forward") :
|
|
4178
|
+
b(L) ? P($, "forward") : R($);
|
|
4179
4179
|
}
|
|
4180
4180
|
break;
|
|
4181
4181
|
case "Tab":
|
|
@@ -4186,12 +4186,12 @@ function ms({
|
|
|
4186
4186
|
let $ = C - 1, L = new Date(d, u, $);
|
|
4187
4187
|
if ($ < 1) {
|
|
4188
4188
|
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1, Y = _(U, B);
|
|
4189
|
-
$ = Y, L = new Date(U, B, $),
|
|
4189
|
+
$ = Y, L = new Date(U, B, $), D(), setTimeout(() => {
|
|
4190
4190
|
P(Y, "backward");
|
|
4191
4191
|
}, 0);
|
|
4192
4192
|
return;
|
|
4193
4193
|
}
|
|
4194
|
-
b(L) ? P($, "backward") :
|
|
4194
|
+
b(L) ? P($, "backward") : R($);
|
|
4195
4195
|
}
|
|
4196
4196
|
break;
|
|
4197
4197
|
case "ArrowUp":
|
|
@@ -4200,12 +4200,12 @@ function ms({
|
|
|
4200
4200
|
let $ = C - 7, L = new Date(d, u, $);
|
|
4201
4201
|
if ($ < 1) {
|
|
4202
4202
|
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1;
|
|
4203
|
-
$ = _(U, B) + $, L = new Date(U, B, $),
|
|
4203
|
+
$ = _(U, B) + $, L = new Date(U, B, $), D(), setTimeout(() => {
|
|
4204
4204
|
P($, "backward");
|
|
4205
4205
|
}, 0);
|
|
4206
4206
|
return;
|
|
4207
4207
|
}
|
|
4208
|
-
b(L) ? P($, "backward") :
|
|
4208
|
+
b(L) ? P($, "backward") : R($);
|
|
4209
4209
|
}
|
|
4210
4210
|
break;
|
|
4211
4211
|
case "ArrowDown":
|
|
@@ -4214,12 +4214,12 @@ function ms({
|
|
|
4214
4214
|
let $ = C + 7, L = new Date(d, u, $);
|
|
4215
4215
|
if ($ > j) {
|
|
4216
4216
|
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4217
|
-
$ = $ - j, L = new Date(U, B, $),
|
|
4217
|
+
$ = $ - j, L = new Date(U, B, $), N(), setTimeout(() => {
|
|
4218
4218
|
P($, "forward");
|
|
4219
4219
|
}, 0);
|
|
4220
4220
|
return;
|
|
4221
4221
|
}
|
|
4222
|
-
b(L) ? P($, "forward") :
|
|
4222
|
+
b(L) ? P($, "forward") : R($);
|
|
4223
4223
|
}
|
|
4224
4224
|
break;
|
|
4225
4225
|
case "Home":
|
|
@@ -4229,7 +4229,7 @@ function ms({
|
|
|
4229
4229
|
F.preventDefault(), P(j, "backward");
|
|
4230
4230
|
break;
|
|
4231
4231
|
case "PageUp":
|
|
4232
|
-
F.preventDefault(),
|
|
4232
|
+
F.preventDefault(), D(), setTimeout(() => {
|
|
4233
4233
|
const $ = _(
|
|
4234
4234
|
u === 0 ? d - 1 : d,
|
|
4235
4235
|
u === 0 ? 11 : u - 1
|
|
@@ -4238,7 +4238,7 @@ function ms({
|
|
|
4238
4238
|
}, 0);
|
|
4239
4239
|
break;
|
|
4240
4240
|
case "PageDown":
|
|
4241
|
-
F.preventDefault(),
|
|
4241
|
+
F.preventDefault(), N(), setTimeout(() => {
|
|
4242
4242
|
const $ = _(
|
|
4243
4243
|
u === 11 ? d + 1 : d,
|
|
4244
4244
|
u === 11 ? 0 : u + 1
|
|
@@ -4261,23 +4261,23 @@ function ms({
|
|
|
4261
4261
|
for (let j = F; j <= x; j++) {
|
|
4262
4262
|
const C = new Date(d, u, j);
|
|
4263
4263
|
if (!b(C)) {
|
|
4264
|
-
|
|
4264
|
+
R(j);
|
|
4265
4265
|
return;
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
|
-
|
|
4268
|
+
N(), setTimeout(() => {
|
|
4269
4269
|
P(1, "forward");
|
|
4270
4270
|
}, 0);
|
|
4271
4271
|
} else {
|
|
4272
4272
|
for (let L = F; L >= 1; L--) {
|
|
4273
4273
|
const U = new Date(d, u, L);
|
|
4274
4274
|
if (!b(U)) {
|
|
4275
|
-
|
|
4275
|
+
R(L);
|
|
4276
4276
|
return;
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
const j = u === 0 ? d - 1 : d, C = u === 0 ? 11 : u - 1, $ = _(j, C);
|
|
4280
|
-
|
|
4280
|
+
D(), setTimeout(() => {
|
|
4281
4281
|
P($, "backward");
|
|
4282
4282
|
}, 0);
|
|
4283
4283
|
}
|
|
@@ -4309,7 +4309,7 @@ function ms({
|
|
|
4309
4309
|
}, [u, d, p, V]);
|
|
4310
4310
|
const z = {
|
|
4311
4311
|
label: "smp-datepickercalendar-label",
|
|
4312
|
-
wrapper: `smp-datepickercalendar ${
|
|
4312
|
+
wrapper: `smp-datepickercalendar ${ms["smp-datepickercalendar-position"]}`,
|
|
4313
4313
|
calendar: "smp-datepickercalendar",
|
|
4314
4314
|
table: "smp-datepickercalendar-table",
|
|
4315
4315
|
th: "smp-datepickercalendar-th",
|
|
@@ -4342,7 +4342,7 @@ function ms({
|
|
|
4342
4342
|
/* @__PURE__ */ g.jsx(
|
|
4343
4343
|
Be,
|
|
4344
4344
|
{
|
|
4345
|
-
onClick:
|
|
4345
|
+
onClick: D,
|
|
4346
4346
|
ariaLabel: a($t.PREVIOUS_MONTH),
|
|
4347
4347
|
optionalDisplayValue: "<",
|
|
4348
4348
|
appearance: "ghost",
|
|
@@ -4361,7 +4361,7 @@ function ms({
|
|
|
4361
4361
|
/* @__PURE__ */ g.jsx(
|
|
4362
4362
|
Be,
|
|
4363
4363
|
{
|
|
4364
|
-
onClick:
|
|
4364
|
+
onClick: N,
|
|
4365
4365
|
ariaLabel: a($t.NEXT_MONTH),
|
|
4366
4366
|
bindValue: ">",
|
|
4367
4367
|
optionalDisplayValue: ">",
|
|
@@ -4377,7 +4377,7 @@ function ms({
|
|
|
4377
4377
|
{
|
|
4378
4378
|
ref: E,
|
|
4379
4379
|
role: "grid",
|
|
4380
|
-
"aria-label": `${a(
|
|
4380
|
+
"aria-label": `${a(Ne.CALENDAR_FOR)} ${S[u]} ${d}`,
|
|
4381
4381
|
className: z.table,
|
|
4382
4382
|
children: [
|
|
4383
4383
|
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: O.map((F) => /* @__PURE__ */ g.jsx(
|
|
@@ -4413,7 +4413,7 @@ function ms({
|
|
|
4413
4413
|
"aria-selected": L,
|
|
4414
4414
|
tabIndex: U ? 0 : -1,
|
|
4415
4415
|
onClick: () => y(x),
|
|
4416
|
-
onKeyDown: (Y) =>
|
|
4416
|
+
onKeyDown: (Y) => k(Y, C),
|
|
4417
4417
|
"aria-label": `${x.getDate()} ${S[x.getMonth()]} ${x.getFullYear()}`,
|
|
4418
4418
|
"data-selected": L,
|
|
4419
4419
|
"aria-disabled": B,
|
|
@@ -4438,7 +4438,7 @@ function ms({
|
|
|
4438
4438
|
}
|
|
4439
4439
|
);
|
|
4440
4440
|
}
|
|
4441
|
-
const
|
|
4441
|
+
const ys = ({
|
|
4442
4442
|
bindValue: r,
|
|
4443
4443
|
placeholder: e,
|
|
4444
4444
|
onChange: t,
|
|
@@ -4467,43 +4467,43 @@ const gs = ({
|
|
|
4467
4467
|
}), kt(o, p);
|
|
4468
4468
|
const { format: E, getCurrentLanguage: w } = je(), S = le(
|
|
4469
4469
|
(T) => {
|
|
4470
|
-
const
|
|
4470
|
+
const R = T.length > 5 && Zr(T, w()) || T, k = E(R, void 0, void 0, {
|
|
4471
4471
|
type: "date"
|
|
4472
|
-
}), P = typeof
|
|
4472
|
+
}), P = typeof R != "string", A = P && R.toISOString().substring(0, 10) || "";
|
|
4473
4473
|
return {
|
|
4474
4474
|
isValid: P,
|
|
4475
|
-
formattedDate:
|
|
4475
|
+
formattedDate: k,
|
|
4476
4476
|
isoDate: A,
|
|
4477
|
-
normalizedDate:
|
|
4477
|
+
normalizedDate: R
|
|
4478
4478
|
};
|
|
4479
4479
|
},
|
|
4480
4480
|
[w, E]
|
|
4481
4481
|
);
|
|
4482
4482
|
ne(() => {
|
|
4483
|
-
const { formattedDate: T, isoDate:
|
|
4484
|
-
u(
|
|
4483
|
+
const { formattedDate: T, isoDate: R, isValid: k } = S(r);
|
|
4484
|
+
u(k && R || r), d(k && T || r);
|
|
4485
4485
|
}, [r, E, S]);
|
|
4486
4486
|
const O = () => c((T) => !T), b = () => {
|
|
4487
|
-
|
|
4487
|
+
D(f);
|
|
4488
4488
|
}, y = (T) => {
|
|
4489
|
-
|
|
4490
|
-
},
|
|
4491
|
-
const { isoDate:
|
|
4492
|
-
t && t(
|
|
4493
|
-
},
|
|
4489
|
+
D(T), v();
|
|
4490
|
+
}, D = (T) => {
|
|
4491
|
+
const { isoDate: R, isValid: k } = S(T);
|
|
4492
|
+
t && t(k && R || T);
|
|
4493
|
+
}, N = (T) => {
|
|
4494
4494
|
d(T);
|
|
4495
4495
|
}, _ = (T) => {
|
|
4496
|
-
T.key === "Enter" && (T.preventDefault(),
|
|
4496
|
+
T.key === "Enter" && (T.preventDefault(), D(f));
|
|
4497
4497
|
};
|
|
4498
4498
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4499
4499
|
/* @__PURE__ */ g.jsx(
|
|
4500
|
-
|
|
4500
|
+
Re,
|
|
4501
4501
|
{
|
|
4502
4502
|
...a,
|
|
4503
4503
|
bindValue: f,
|
|
4504
4504
|
placeholder: e,
|
|
4505
4505
|
onBlur: b,
|
|
4506
|
-
onChange:
|
|
4506
|
+
onChange: N,
|
|
4507
4507
|
onKeyDown: _,
|
|
4508
4508
|
shapeIcon: "calendar",
|
|
4509
4509
|
onShapeIconClick: O,
|
|
@@ -4515,16 +4515,16 @@ const gs = ({
|
|
|
4515
4515
|
}
|
|
4516
4516
|
),
|
|
4517
4517
|
o && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4518
|
-
|
|
4518
|
+
gs,
|
|
4519
4519
|
{
|
|
4520
4520
|
disabledDateRanges: n,
|
|
4521
4521
|
onDateChange: y,
|
|
4522
|
-
initialValue:
|
|
4522
|
+
initialValue: Pt(l) && l || "",
|
|
4523
4523
|
targetRef: p
|
|
4524
4524
|
}
|
|
4525
4525
|
) })
|
|
4526
4526
|
] });
|
|
4527
|
-
},
|
|
4527
|
+
}, vs = ({
|
|
4528
4528
|
elements: r,
|
|
4529
4529
|
displayMode: e,
|
|
4530
4530
|
minimumChars: t,
|
|
@@ -4562,9 +4562,9 @@ const gs = ({
|
|
|
4562
4562
|
className: v.container,
|
|
4563
4563
|
"data-component": "multiple-autocomplete",
|
|
4564
4564
|
children: [
|
|
4565
|
-
i && /* @__PURE__ */ g.jsx(
|
|
4565
|
+
i && /* @__PURE__ */ g.jsx(De, { label: i, disabled: o }),
|
|
4566
4566
|
/* @__PURE__ */ g.jsx(
|
|
4567
|
-
|
|
4567
|
+
Nt,
|
|
4568
4568
|
{
|
|
4569
4569
|
elements: r,
|
|
4570
4570
|
displayMode: e,
|
|
@@ -4594,10 +4594,10 @@ const gs = ({
|
|
|
4594
4594
|
]
|
|
4595
4595
|
}
|
|
4596
4596
|
);
|
|
4597
|
-
},
|
|
4597
|
+
}, xs = ({ ...r }) => {
|
|
4598
4598
|
const [e, t] = q(!1), n = e ? "visibility-off" : "visibility";
|
|
4599
4599
|
return /* @__PURE__ */ g.jsx(
|
|
4600
|
-
|
|
4600
|
+
Re,
|
|
4601
4601
|
{
|
|
4602
4602
|
...r,
|
|
4603
4603
|
inputType: e ? "text" : "password",
|
|
@@ -4607,16 +4607,16 @@ const gs = ({
|
|
|
4607
4607
|
"data-component": "password"
|
|
4608
4608
|
}
|
|
4609
4609
|
);
|
|
4610
|
-
},
|
|
4610
|
+
}, bs = ({ ...r }) => {
|
|
4611
4611
|
const [e, t] = q(r.bindValue), { translate: n } = je(), s = (a) => {
|
|
4612
4612
|
var i;
|
|
4613
4613
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4614
4614
|
};
|
|
4615
4615
|
return /* @__PURE__ */ g.jsx(
|
|
4616
|
-
|
|
4616
|
+
Re,
|
|
4617
4617
|
{
|
|
4618
4618
|
...r,
|
|
4619
|
-
placeholder: r.placeholder ? r.placeholder : n(
|
|
4619
|
+
placeholder: r.placeholder ? r.placeholder : n(Ne.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
4620
4620
|
icon: "magnify",
|
|
4621
4621
|
inputType: "search",
|
|
4622
4622
|
bindValue: e,
|
|
@@ -4626,7 +4626,7 @@ const gs = ({
|
|
|
4626
4626
|
_dataComponent: "search-bar"
|
|
4627
4627
|
}
|
|
4628
4628
|
);
|
|
4629
|
-
},
|
|
4629
|
+
}, Ss = ({
|
|
4630
4630
|
bindValue: r,
|
|
4631
4631
|
optionalDisplayValue: e,
|
|
4632
4632
|
label: t
|
|
@@ -4635,16 +4635,16 @@ const gs = ({
|
|
|
4635
4635
|
wrapper: "smp-text-wrapper"
|
|
4636
4636
|
};
|
|
4637
4637
|
return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
|
|
4638
|
-
/* @__PURE__ */ g.jsx(
|
|
4638
|
+
/* @__PURE__ */ g.jsx(De, { label: t }),
|
|
4639
4639
|
/* @__PURE__ */ g.jsx(
|
|
4640
|
-
|
|
4640
|
+
ke,
|
|
4641
4641
|
{
|
|
4642
4642
|
variant: "body",
|
|
4643
4643
|
bindValue: e || r
|
|
4644
4644
|
}
|
|
4645
4645
|
)
|
|
4646
4646
|
] }) : /* @__PURE__ */ g.jsx(
|
|
4647
|
-
|
|
4647
|
+
ke,
|
|
4648
4648
|
{
|
|
4649
4649
|
variant: "body",
|
|
4650
4650
|
bindValue: e || r
|
|
@@ -4685,13 +4685,13 @@ const Pe = (r, e, t) => ({
|
|
|
4685
4685
|
decode: t ?? r.decode,
|
|
4686
4686
|
shape: r.shape,
|
|
4687
4687
|
fun: r.fun
|
|
4688
|
-
}),
|
|
4688
|
+
}), Er = (r) => {
|
|
4689
4689
|
const e = Oe.fromDataObj(r.obj), t = r.decode ? Oe.fromString(r.decode).getValue() : [];
|
|
4690
4690
|
return e.getValue().map((n, s) => ({
|
|
4691
4691
|
bindValue: n,
|
|
4692
4692
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4693
4693
|
}));
|
|
4694
|
-
},
|
|
4694
|
+
}, ws = (r, e) => {
|
|
4695
4695
|
const t = new Oe(
|
|
4696
4696
|
r.obj,
|
|
4697
4697
|
e.map((s) => s.bindValue)
|
|
@@ -4700,7 +4700,7 @@ const Pe = (r, e, t) => ({
|
|
|
4700
4700
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4701
4701
|
).getLegacyValue();
|
|
4702
4702
|
return Pe(r, t, n);
|
|
4703
|
-
},
|
|
4703
|
+
}, Es = ({
|
|
4704
4704
|
min: r,
|
|
4705
4705
|
max: e,
|
|
4706
4706
|
step: t = 1,
|
|
@@ -4711,8 +4711,8 @@ const Pe = (r, e, t) => ({
|
|
|
4711
4711
|
onEnter: o,
|
|
4712
4712
|
...c
|
|
4713
4713
|
}) => {
|
|
4714
|
-
const { getCurrentLanguage: l } = je(), u = ce(null), f = l(), { groupingChar: d, decimalChar: m } =
|
|
4715
|
-
() =>
|
|
4714
|
+
const { getCurrentLanguage: l } = je(), u = ce(null), f = l(), { groupingChar: d, decimalChar: m } = Ur(
|
|
4715
|
+
() => rs(f, s),
|
|
4716
4716
|
[f, s]
|
|
4717
4717
|
), p = le(
|
|
4718
4718
|
(P, A) => new Intl.NumberFormat(f, {
|
|
@@ -4721,39 +4721,39 @@ const Pe = (r, e, t) => ({
|
|
|
4721
4721
|
useGrouping: !0
|
|
4722
4722
|
}).format(P),
|
|
4723
4723
|
[f]
|
|
4724
|
-
), v = le(
|
|
4724
|
+
), v = le(as, [d, m]), E = le(ts, [r, e]), w = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [S, O] = q(w), [b, y] = q(
|
|
4725
4725
|
a != null ? p(a, S) : ""
|
|
4726
|
-
),
|
|
4726
|
+
), D = ce(a ?? null);
|
|
4727
4727
|
ne(() => {
|
|
4728
4728
|
if (a == null) {
|
|
4729
|
-
y(""),
|
|
4729
|
+
y(""), D.current = null;
|
|
4730
4730
|
return;
|
|
4731
4731
|
}
|
|
4732
4732
|
const P = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = P === 0 ? S : P;
|
|
4733
|
-
A !== S && O(A), y(p(a, A)),
|
|
4733
|
+
A !== S && O(A), y(p(a, A)), D.current = a;
|
|
4734
4734
|
}, [a, p]);
|
|
4735
|
-
const
|
|
4735
|
+
const N = le(
|
|
4736
4736
|
(P, A = !1) => {
|
|
4737
4737
|
if (P.trim() === "") {
|
|
4738
|
-
y(""),
|
|
4738
|
+
y(""), D.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
|
|
4739
4739
|
return;
|
|
4740
4740
|
}
|
|
4741
4741
|
const V = v(P, d, m);
|
|
4742
4742
|
if (isNaN(V))
|
|
4743
|
-
if (
|
|
4744
|
-
const I = p(
|
|
4743
|
+
if (D.current != null) {
|
|
4744
|
+
const I = p(D.current, S);
|
|
4745
4745
|
y(I);
|
|
4746
4746
|
} else
|
|
4747
4747
|
y("");
|
|
4748
4748
|
else {
|
|
4749
|
-
const I = E(V, r, e), W =
|
|
4749
|
+
const I = E(V, r, e), W = ss(
|
|
4750
4750
|
P,
|
|
4751
4751
|
d,
|
|
4752
4752
|
m
|
|
4753
4753
|
);
|
|
4754
4754
|
O(W);
|
|
4755
4755
|
const z = p(I, W);
|
|
4756
|
-
y(z),
|
|
4756
|
+
y(z), D.current = I, i == null || i(I, z), A && (o == null || o(I));
|
|
4757
4757
|
}
|
|
4758
4758
|
},
|
|
4759
4759
|
[
|
|
@@ -4768,29 +4768,29 @@ const Pe = (r, e, t) => ({
|
|
|
4768
4768
|
o,
|
|
4769
4769
|
S
|
|
4770
4770
|
]
|
|
4771
|
-
), _ = (P) => y(P), T = () =>
|
|
4771
|
+
), _ = (P) => y(P), T = () => N(b), R = (P) => {
|
|
4772
4772
|
if (P.key === "Enter") {
|
|
4773
|
-
P.preventDefault(),
|
|
4773
|
+
P.preventDefault(), N(b, !0);
|
|
4774
4774
|
return;
|
|
4775
4775
|
}
|
|
4776
4776
|
if (P.key === "ArrowUp" || P.key === "ArrowDown") {
|
|
4777
4777
|
P.preventDefault();
|
|
4778
|
-
const A = P.key === "ArrowUp" ? 1 : -1, V =
|
|
4779
|
-
|
|
4778
|
+
const A = P.key === "ArrowUp" ? 1 : -1, V = D.current ?? 0, I = E(V + A * t, r, e);
|
|
4779
|
+
N(p(I, S));
|
|
4780
4780
|
}
|
|
4781
|
-
},
|
|
4781
|
+
}, k = (P) => {
|
|
4782
4782
|
if (!P.currentTarget.contains(document.activeElement)) return;
|
|
4783
4783
|
P.preventDefault();
|
|
4784
|
-
const A = P.deltaY < 0 ? 1 : -1, V =
|
|
4785
|
-
|
|
4784
|
+
const A = P.deltaY < 0 ? 1 : -1, V = D.current ?? 0, I = E(V + A * t, r, e);
|
|
4785
|
+
N(p(I, S));
|
|
4786
4786
|
};
|
|
4787
|
-
return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel:
|
|
4788
|
-
|
|
4787
|
+
return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel: k, children: /* @__PURE__ */ g.jsx(
|
|
4788
|
+
Re,
|
|
4789
4789
|
{
|
|
4790
4790
|
...c,
|
|
4791
4791
|
"aria-valuemin": r,
|
|
4792
4792
|
"aria-valuemax": e,
|
|
4793
|
-
"aria-valuenow":
|
|
4793
|
+
"aria-valuenow": D.current ?? void 0,
|
|
4794
4794
|
bindValue: b,
|
|
4795
4795
|
inputType: "text",
|
|
4796
4796
|
inputMode: n,
|
|
@@ -4799,7 +4799,7 @@ const Pe = (r, e, t) => ({
|
|
|
4799
4799
|
step: t,
|
|
4800
4800
|
onChange: _,
|
|
4801
4801
|
onBlur: T,
|
|
4802
|
-
onKeyDown:
|
|
4802
|
+
onKeyDown: R
|
|
4803
4803
|
}
|
|
4804
4804
|
) });
|
|
4805
4805
|
};
|
|
@@ -4846,7 +4846,7 @@ class He {
|
|
|
4846
4846
|
return this.value;
|
|
4847
4847
|
}
|
|
4848
4848
|
}
|
|
4849
|
-
const
|
|
4849
|
+
const Ts = ({
|
|
4850
4850
|
disabled: r,
|
|
4851
4851
|
bindValue: e,
|
|
4852
4852
|
onChange: t,
|
|
@@ -4868,7 +4868,7 @@ const Es = ({
|
|
|
4868
4868
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${v ? `smp-textarea-${v}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4869
4869
|
};
|
|
4870
4870
|
return /* @__PURE__ */ g.jsxs("div", { className: S.wrapper, "data-component": "textarea", children: [
|
|
4871
|
-
o && /* @__PURE__ */ g.jsx(
|
|
4871
|
+
o && /* @__PURE__ */ g.jsx(De, { htmlFor: m, label: o, disabled: r }),
|
|
4872
4872
|
/* @__PURE__ */ g.jsx(
|
|
4873
4873
|
"textarea",
|
|
4874
4874
|
{
|
|
@@ -4896,15 +4896,17 @@ const Es = ({
|
|
|
4896
4896
|
}
|
|
4897
4897
|
)
|
|
4898
4898
|
] });
|
|
4899
|
-
}
|
|
4899
|
+
};
|
|
4900
|
+
var Ct = /* @__PURE__ */ ((r) => (r.PAGE_DIRECTION = "pageDirection", r.LINE_DIRECTION = "lineDirection", r))(Ct || {});
|
|
4901
|
+
const rt = {
|
|
4900
4902
|
"smp-radio": "_smp-radio_1vo2u_1",
|
|
4901
4903
|
"smp-radio-horizontal": "_smp-radio-horizontal_1vo2u_10",
|
|
4902
4904
|
"smp-radio-element": "_smp-radio-element_1vo2u_14",
|
|
4903
4905
|
"smp-radio-disabled": "_smp-radio-disabled_1vo2u_20"
|
|
4904
|
-
},
|
|
4906
|
+
}, Os = ({
|
|
4905
4907
|
disabled: r = !1,
|
|
4906
4908
|
displayMode: e = "DescOnly",
|
|
4907
|
-
|
|
4909
|
+
RadLay: t = Ct.PAGE_DIRECTION,
|
|
4908
4910
|
options: n,
|
|
4909
4911
|
onOptionsRequest: s,
|
|
4910
4912
|
fun: a,
|
|
@@ -4918,7 +4920,7 @@ const Es = ({
|
|
|
4918
4920
|
});
|
|
4919
4921
|
}, [c, s, a]);
|
|
4920
4922
|
const u = {
|
|
4921
|
-
container: `${rt["smp-radio"]} ${t ? rt["smp-radio-horizontal"] : ""}`,
|
|
4923
|
+
container: `${rt["smp-radio"]} ${t == Ct.LINE_DIRECTION ? rt["smp-radio-horizontal"] : ""}`,
|
|
4922
4924
|
option: `${rt["smp-radio-element"]} ${r ? rt["smp-radio-disabled"] : ""}`
|
|
4923
4925
|
}, f = () => {
|
|
4924
4926
|
var p;
|
|
@@ -4928,7 +4930,7 @@ const Es = ({
|
|
|
4928
4930
|
r || (v = o.onChange) == null || v.call(o, p.id, p.label);
|
|
4929
4931
|
}, m = Ge();
|
|
4930
4932
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, children: [
|
|
4931
|
-
i && /* @__PURE__ */ g.jsx(
|
|
4933
|
+
i && /* @__PURE__ */ g.jsx(De, { label: i, disabled: r, htmlFor: "" }),
|
|
4932
4934
|
c == null ? void 0 : c.map((p, v) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
4933
4935
|
/* @__PURE__ */ g.jsx(
|
|
4934
4936
|
"input",
|
|
@@ -4943,7 +4945,7 @@ const Es = ({
|
|
|
4943
4945
|
}
|
|
4944
4946
|
),
|
|
4945
4947
|
/* @__PURE__ */ g.jsx(
|
|
4946
|
-
|
|
4948
|
+
ke,
|
|
4947
4949
|
{
|
|
4948
4950
|
variant: "body",
|
|
4949
4951
|
bindValue: Le(
|
|
@@ -4955,7 +4957,7 @@ const Es = ({
|
|
|
4955
4957
|
)
|
|
4956
4958
|
] }, v))
|
|
4957
4959
|
] });
|
|
4958
|
-
},
|
|
4960
|
+
}, Ds = ({
|
|
4959
4961
|
value: r,
|
|
4960
4962
|
onChange: e,
|
|
4961
4963
|
targetRef: t,
|
|
@@ -5005,7 +5007,7 @@ const Es = ({
|
|
|
5005
5007
|
]
|
|
5006
5008
|
}
|
|
5007
5009
|
);
|
|
5008
|
-
},
|
|
5010
|
+
}, Tr = (r) => {
|
|
5009
5011
|
const e = r.match(/^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/);
|
|
5010
5012
|
if (!e) return !1;
|
|
5011
5013
|
const [, t, n, s] = e, a = parseInt(t, 10), i = parseInt(n, 10), o = s ? parseInt(s, 10) : 0;
|
|
@@ -5013,10 +5015,10 @@ const Es = ({
|
|
|
5013
5015
|
}, Rs = (r) => {
|
|
5014
5016
|
const e = r.split(":").map((t) => parseInt(t, 10));
|
|
5015
5017
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5016
|
-
},
|
|
5018
|
+
}, js = (r, e, t) => {
|
|
5017
5019
|
const n = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", a = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "";
|
|
5018
5020
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5019
|
-
},
|
|
5021
|
+
}, _s = ({
|
|
5020
5022
|
bindValue: r,
|
|
5021
5023
|
placeholder: e = "HH:MM:SS",
|
|
5022
5024
|
onChange: t,
|
|
@@ -5031,11 +5033,11 @@ const Es = ({
|
|
|
5031
5033
|
o(!1), (y = a == null ? void 0 : a.current) == null || y.focus();
|
|
5032
5034
|
}, []);
|
|
5033
5035
|
Ye(m, i, () => o(!1)), kt(i, m), ne(() => {
|
|
5034
|
-
const y = r || "",
|
|
5035
|
-
l(y), f(
|
|
5036
|
+
const y = r || "", D = Tr(y) ? y : r || "";
|
|
5037
|
+
l(y), f(D);
|
|
5036
5038
|
}, [r]), ne(() => {
|
|
5037
|
-
const y = (
|
|
5038
|
-
|
|
5039
|
+
const y = (D) => {
|
|
5040
|
+
D.key === "Escape" && o(!1);
|
|
5039
5041
|
};
|
|
5040
5042
|
return i && document.addEventListener("keydown", y), () => {
|
|
5041
5043
|
document.removeEventListener("keydown", y);
|
|
@@ -5045,8 +5047,8 @@ const Es = ({
|
|
|
5045
5047
|
n && o((y) => !y);
|
|
5046
5048
|
}, E = (y) => {
|
|
5047
5049
|
f(y);
|
|
5048
|
-
}, w = (y,
|
|
5049
|
-
const _ =
|
|
5050
|
+
}, w = (y, D, N) => {
|
|
5051
|
+
const _ = js(y, D, N);
|
|
5050
5052
|
l(_), f(_), t == null || t(_), p();
|
|
5051
5053
|
}, S = () => {
|
|
5052
5054
|
b(u);
|
|
@@ -5057,11 +5059,11 @@ const Es = ({
|
|
|
5057
5059
|
l(""), f(""), t == null || t("");
|
|
5058
5060
|
return;
|
|
5059
5061
|
}
|
|
5060
|
-
|
|
5062
|
+
Tr(y) ? (l(y), f(y), t == null || t(y)) : f(y);
|
|
5061
5063
|
};
|
|
5062
5064
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5063
5065
|
/* @__PURE__ */ g.jsx(
|
|
5064
|
-
|
|
5066
|
+
Lt,
|
|
5065
5067
|
{
|
|
5066
5068
|
...s,
|
|
5067
5069
|
bindValue: u,
|
|
@@ -5077,7 +5079,7 @@ const Es = ({
|
|
|
5077
5079
|
}
|
|
5078
5080
|
),
|
|
5079
5081
|
i && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
5080
|
-
|
|
5082
|
+
Ds,
|
|
5081
5083
|
{
|
|
5082
5084
|
value: Rs(c),
|
|
5083
5085
|
onChange: w,
|
|
@@ -5087,7 +5089,7 @@ const Es = ({
|
|
|
5087
5089
|
) })
|
|
5088
5090
|
] });
|
|
5089
5091
|
};
|
|
5090
|
-
function
|
|
5092
|
+
function $s(r) {
|
|
5091
5093
|
return typeof r == "string" && /^\d{6}$/.test(r);
|
|
5092
5094
|
}
|
|
5093
5095
|
class pt {
|
|
@@ -5097,13 +5099,13 @@ class pt {
|
|
|
5097
5099
|
this.class = e, this.time = t;
|
|
5098
5100
|
}
|
|
5099
5101
|
static fromDataObj(e) {
|
|
5100
|
-
const t =
|
|
5102
|
+
const t = Or.get(`${e.t}${e.p}`);
|
|
5101
5103
|
if (t)
|
|
5102
5104
|
return new pt(e, t.legacyToIso(e.k));
|
|
5103
5105
|
throw new Error(`time creation from ${e.t}${e.p} not implemented yet`);
|
|
5104
5106
|
}
|
|
5105
5107
|
getLegacyValue() {
|
|
5106
|
-
const e =
|
|
5108
|
+
const e = Or.get(`${this.class.t}${this.class.p}`);
|
|
5107
5109
|
if (e)
|
|
5108
5110
|
return e.isoToLegacy(this.time);
|
|
5109
5111
|
throw new Error(
|
|
@@ -5114,19 +5116,19 @@ class pt {
|
|
|
5114
5116
|
return this.time;
|
|
5115
5117
|
}
|
|
5116
5118
|
}
|
|
5117
|
-
const
|
|
5119
|
+
const Or = /* @__PURE__ */ new Map([
|
|
5118
5120
|
[
|
|
5119
5121
|
"I12",
|
|
5120
5122
|
{
|
|
5121
5123
|
legacyToIso(r) {
|
|
5122
|
-
return
|
|
5124
|
+
return $s(r) && `${r.substring(0, 2)}:${r.substring(2, 4)}:${r.substring(4, 6)}` || r;
|
|
5123
5125
|
},
|
|
5124
5126
|
isoToLegacy(r) {
|
|
5125
5127
|
return r.replaceAll(":", "") || r;
|
|
5126
5128
|
}
|
|
5127
5129
|
}
|
|
5128
5130
|
]
|
|
5129
|
-
]),
|
|
5131
|
+
]), Cs = {
|
|
5130
5132
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5131
5133
|
}, Te = ({
|
|
5132
5134
|
decode: r,
|
|
@@ -5162,18 +5164,18 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5162
5164
|
label: o,
|
|
5163
5165
|
isEditable: E,
|
|
5164
5166
|
...n
|
|
5165
|
-
}, O = (T,
|
|
5167
|
+
}, O = (T, R, k) => zr(t) ? Pe(T, new lt(t, R).getLegacyValue()) : Jr(t) ? Pe(T, new pt(t, R).getLegacyValue()) : Pe(T, R, k), b = (T, R) => Pe(
|
|
5166
5168
|
T,
|
|
5167
|
-
new He(t,
|
|
5168
|
-
), y = (T) => Pe(w, new ot(t, T).getLegacyValue()),
|
|
5169
|
+
new He(t, R, ".").getLegacyValue()
|
|
5170
|
+
), y = (T) => Pe(w, new ot(t, T).getLegacyValue()), D = (T) => ws(w, T), N = () => {
|
|
5169
5171
|
switch (e) {
|
|
5170
5172
|
case te.AUTOCOMPLETE: {
|
|
5171
5173
|
const T = {
|
|
5172
5174
|
...S,
|
|
5173
5175
|
bindValue: t.k,
|
|
5174
5176
|
optionalDisplayValue: r,
|
|
5175
|
-
onChange: (
|
|
5176
|
-
u == null || u(O(w,
|
|
5177
|
+
onChange: (R, k) => {
|
|
5178
|
+
u == null || u(O(w, R, k));
|
|
5177
5179
|
}
|
|
5178
5180
|
};
|
|
5179
5181
|
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
@@ -5193,53 +5195,53 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5193
5195
|
const T = {
|
|
5194
5196
|
...S,
|
|
5195
5197
|
options: l,
|
|
5196
|
-
onClick: (
|
|
5197
|
-
const P = { ...w, fun:
|
|
5198
|
-
f == null || f(O(P,
|
|
5198
|
+
onClick: (R, k) => {
|
|
5199
|
+
const P = { ...w, fun: k };
|
|
5200
|
+
f == null || f(O(P, R));
|
|
5199
5201
|
}
|
|
5200
5202
|
};
|
|
5201
|
-
return /* @__PURE__ */ g.jsx(
|
|
5203
|
+
return /* @__PURE__ */ g.jsx(us, { ...T });
|
|
5202
5204
|
}
|
|
5203
5205
|
case te.CHIP: {
|
|
5204
5206
|
const T = {
|
|
5205
5207
|
...S,
|
|
5206
|
-
elements:
|
|
5208
|
+
elements: Er(w)
|
|
5207
5209
|
};
|
|
5208
|
-
return /* @__PURE__ */ g.jsx(
|
|
5210
|
+
return /* @__PURE__ */ g.jsx(Nt, { ...T });
|
|
5209
5211
|
}
|
|
5210
5212
|
case te.CHECKBOX:
|
|
5211
5213
|
case te.SWITCH: {
|
|
5212
|
-
const T = e === te.SWITCH,
|
|
5214
|
+
const T = e === te.SWITCH, R = {
|
|
5213
5215
|
...S,
|
|
5214
5216
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5215
5217
|
optionalDisplayValue: r,
|
|
5216
|
-
onChange: (
|
|
5217
|
-
u == null || u(y(
|
|
5218
|
+
onChange: (k) => {
|
|
5219
|
+
u == null || u(y(k));
|
|
5218
5220
|
},
|
|
5219
5221
|
...T && { variant: "switch" }
|
|
5220
5222
|
};
|
|
5221
|
-
return /* @__PURE__ */ g.jsx(
|
|
5223
|
+
return /* @__PURE__ */ g.jsx(ds, { ...R });
|
|
5222
5224
|
}
|
|
5223
5225
|
case te.COMBOBOX: {
|
|
5224
5226
|
const T = {
|
|
5225
5227
|
...S,
|
|
5226
5228
|
bindValue: t.k,
|
|
5227
5229
|
optionalDisplayValue: r,
|
|
5228
|
-
onChange: (
|
|
5229
|
-
u == null || u(O(w,
|
|
5230
|
+
onChange: (R, k) => {
|
|
5231
|
+
u == null || u(O(w, R, k));
|
|
5230
5232
|
}
|
|
5231
5233
|
};
|
|
5232
|
-
return /* @__PURE__ */ g.jsx(
|
|
5234
|
+
return /* @__PURE__ */ g.jsx(hs, { ...T });
|
|
5233
5235
|
}
|
|
5234
5236
|
case te.DATE: {
|
|
5235
5237
|
const T = {
|
|
5236
5238
|
...S,
|
|
5237
5239
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5238
|
-
onChange: (
|
|
5239
|
-
u == null || u(O(w,
|
|
5240
|
+
onChange: (R) => {
|
|
5241
|
+
u == null || u(O(w, R));
|
|
5240
5242
|
}
|
|
5241
5243
|
};
|
|
5242
|
-
return /* @__PURE__ */ g.jsx(
|
|
5244
|
+
return /* @__PURE__ */ g.jsx(ys, { ...T });
|
|
5243
5245
|
}
|
|
5244
5246
|
case te.ICON:
|
|
5245
5247
|
case te.IMAGE: {
|
|
@@ -5258,83 +5260,83 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5258
5260
|
const T = {
|
|
5259
5261
|
...S,
|
|
5260
5262
|
bindValue: He.fromDataObj(t, ".").getValue(),
|
|
5261
|
-
onChange: (
|
|
5262
|
-
u == null || u(b(w,
|
|
5263
|
+
onChange: (R) => {
|
|
5264
|
+
u == null || u(b(w, R));
|
|
5263
5265
|
}
|
|
5264
5266
|
};
|
|
5265
|
-
return /* @__PURE__ */ g.jsx(
|
|
5267
|
+
return /* @__PURE__ */ g.jsx(Es, { ...T });
|
|
5266
5268
|
}
|
|
5267
5269
|
case te.MEMO: {
|
|
5268
5270
|
const T = {
|
|
5269
5271
|
...S,
|
|
5270
5272
|
bindValue: t.k,
|
|
5271
5273
|
optionalDisplayValue: r,
|
|
5272
|
-
onChange: (
|
|
5273
|
-
u == null || u(O(w,
|
|
5274
|
+
onChange: (R) => {
|
|
5275
|
+
u == null || u(O(w, R));
|
|
5274
5276
|
}
|
|
5275
5277
|
};
|
|
5276
|
-
return /* @__PURE__ */ g.jsx(
|
|
5278
|
+
return /* @__PURE__ */ g.jsx(Ts, { ...T });
|
|
5277
5279
|
}
|
|
5278
5280
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5279
5281
|
const T = {
|
|
5280
5282
|
...S,
|
|
5281
|
-
elements:
|
|
5282
|
-
onChange: (
|
|
5283
|
-
u == null || u(R
|
|
5283
|
+
elements: Er(w),
|
|
5284
|
+
onChange: (R) => {
|
|
5285
|
+
u == null || u(D(R));
|
|
5284
5286
|
}
|
|
5285
5287
|
};
|
|
5286
|
-
return /* @__PURE__ */ g.jsx(
|
|
5288
|
+
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
5287
5289
|
}
|
|
5288
5290
|
case te.PASSWORD: {
|
|
5289
5291
|
const T = {
|
|
5290
5292
|
...S,
|
|
5291
5293
|
bindValue: t.k,
|
|
5292
|
-
onChange: (
|
|
5293
|
-
u == null || u(O(w,
|
|
5294
|
+
onChange: (R) => {
|
|
5295
|
+
u == null || u(O(w, R));
|
|
5294
5296
|
}
|
|
5295
5297
|
};
|
|
5296
|
-
return /* @__PURE__ */ g.jsx(
|
|
5298
|
+
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
5297
5299
|
}
|
|
5298
5300
|
case te.RADIO: {
|
|
5299
5301
|
const T = {
|
|
5300
5302
|
...S,
|
|
5301
5303
|
bindValue: t.k,
|
|
5302
|
-
onChange: (
|
|
5303
|
-
u == null || u(O(w,
|
|
5304
|
+
onChange: (R, k) => {
|
|
5305
|
+
u == null || u(O(w, R, k));
|
|
5304
5306
|
}
|
|
5305
5307
|
};
|
|
5306
|
-
return /* @__PURE__ */ g.jsx(
|
|
5308
|
+
return /* @__PURE__ */ g.jsx(Os, { ...T });
|
|
5307
5309
|
}
|
|
5308
5310
|
case te.SPOTLIGHT: {
|
|
5309
5311
|
const T = {
|
|
5310
5312
|
...S,
|
|
5311
5313
|
bindValue: t.k,
|
|
5312
|
-
onEnter: (
|
|
5313
|
-
d == null || d(O(w,
|
|
5314
|
+
onEnter: (R) => {
|
|
5315
|
+
d == null || d(O(w, R));
|
|
5314
5316
|
}
|
|
5315
5317
|
};
|
|
5316
|
-
return /* @__PURE__ */ g.jsx(
|
|
5318
|
+
return /* @__PURE__ */ g.jsx(bs, { ...T });
|
|
5317
5319
|
}
|
|
5318
5320
|
case te.TEXT_FIELD: {
|
|
5319
5321
|
const T = {
|
|
5320
5322
|
...S,
|
|
5321
5323
|
bindValue: t.k,
|
|
5322
5324
|
optionalDisplayValue: r,
|
|
5323
|
-
onChange: (
|
|
5324
|
-
u == null || u(O(w,
|
|
5325
|
+
onChange: (R) => {
|
|
5326
|
+
u == null || u(O(w, R));
|
|
5325
5327
|
}
|
|
5326
5328
|
};
|
|
5327
|
-
return /* @__PURE__ */ g.jsx(
|
|
5329
|
+
return /* @__PURE__ */ g.jsx(Re, { ...T });
|
|
5328
5330
|
}
|
|
5329
5331
|
case te.TIME: {
|
|
5330
5332
|
const T = {
|
|
5331
5333
|
...S,
|
|
5332
5334
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5333
|
-
onChange: (
|
|
5334
|
-
u == null || u(O(w,
|
|
5335
|
+
onChange: (R) => {
|
|
5336
|
+
u == null || u(O(w, R));
|
|
5335
5337
|
}
|
|
5336
5338
|
};
|
|
5337
|
-
return /* @__PURE__ */ g.jsx(
|
|
5339
|
+
return /* @__PURE__ */ g.jsx(_s, { ...T });
|
|
5338
5340
|
}
|
|
5339
5341
|
default: {
|
|
5340
5342
|
const T = {
|
|
@@ -5342,11 +5344,11 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5342
5344
|
bindValue: t.k,
|
|
5343
5345
|
optionalDisplayValue: r
|
|
5344
5346
|
};
|
|
5345
|
-
return /* @__PURE__ */ g.jsx(
|
|
5347
|
+
return /* @__PURE__ */ g.jsx(Ss, { ...T });
|
|
5346
5348
|
}
|
|
5347
5349
|
}
|
|
5348
5350
|
}, _ = {
|
|
5349
|
-
wrapper: `${
|
|
5351
|
+
wrapper: `${Cs["smp-cell-wrapper"]}`
|
|
5350
5352
|
};
|
|
5351
5353
|
return /* @__PURE__ */ g.jsx(
|
|
5352
5354
|
"span",
|
|
@@ -5355,10 +5357,10 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5355
5357
|
onContextMenu: (T) => {
|
|
5356
5358
|
v && c && (T.preventDefault(), v(w, T.currentTarget));
|
|
5357
5359
|
},
|
|
5358
|
-
children:
|
|
5360
|
+
children: N()
|
|
5359
5361
|
}
|
|
5360
5362
|
);
|
|
5361
|
-
},
|
|
5363
|
+
}, ta = ({
|
|
5362
5364
|
data: r,
|
|
5363
5365
|
onClick: e,
|
|
5364
5366
|
onEnter: t,
|
|
@@ -5410,7 +5412,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5410
5412
|
return ne(() => {
|
|
5411
5413
|
r && a(i(r));
|
|
5412
5414
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((c = r.columns) != null && c.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(s).map((l) => /* @__PURE__ */ g.jsx(Te, { ...l })) }) });
|
|
5413
|
-
},
|
|
5415
|
+
}, Ps = (r) => {
|
|
5414
5416
|
var e;
|
|
5415
5417
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5416
5418
|
var n, s;
|
|
@@ -5421,7 +5423,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5421
5423
|
icon: t.icon
|
|
5422
5424
|
};
|
|
5423
5425
|
}) : [];
|
|
5424
|
-
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r,
|
|
5426
|
+
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, ra = ({
|
|
5425
5427
|
data: r,
|
|
5426
5428
|
logo: e,
|
|
5427
5429
|
open: t,
|
|
@@ -5435,22 +5437,22 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5435
5437
|
}) => {
|
|
5436
5438
|
var b, y;
|
|
5437
5439
|
const [u, f] = q(), [d, m] = q(t ?? !0), p = ce(null), v = s.trim() ? s : "100vh", E = le(
|
|
5438
|
-
(
|
|
5440
|
+
(D) => {
|
|
5439
5441
|
var _, T;
|
|
5440
|
-
if (!((_ =
|
|
5442
|
+
if (!((_ = D == null ? void 0 : D.rows) != null && _.length) || !((T = D == null ? void 0 : D.columns) != null && T.length))
|
|
5441
5443
|
return {};
|
|
5442
|
-
const
|
|
5443
|
-
return
|
|
5444
|
-
const P =
|
|
5444
|
+
const N = D.rows[0];
|
|
5445
|
+
return D.columns.filter((R) => R.visible ?? !0).reduce((R, k) => {
|
|
5446
|
+
const P = N.cells[k.name];
|
|
5445
5447
|
if (!P || !d && de(n) && P.shape !== te.BUTTON && P.shape !== te.BUTTON_LIST)
|
|
5446
|
-
return
|
|
5448
|
+
return R;
|
|
5447
5449
|
const A = {
|
|
5448
5450
|
...P,
|
|
5449
|
-
id:
|
|
5451
|
+
id: k.name,
|
|
5450
5452
|
onChange: (V) => {
|
|
5451
5453
|
f((I) => {
|
|
5452
5454
|
const W = { ...I };
|
|
5453
|
-
return W != null && W[
|
|
5455
|
+
return W != null && W[k.name] && (W[k.name].obj.k = V.obj.k), W;
|
|
5454
5456
|
});
|
|
5455
5457
|
},
|
|
5456
5458
|
onClick: (V) => {
|
|
@@ -5464,15 +5466,15 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5464
5466
|
}
|
|
5465
5467
|
};
|
|
5466
5468
|
return c && P.shape == te.BUTTON_LIST && (A.onOptionsRequest = (V, I) => c(V, I).then(
|
|
5467
|
-
(W) =>
|
|
5469
|
+
(W) => Ps(W)
|
|
5468
5470
|
)), !d && de(n) && (A.data = {
|
|
5469
5471
|
...A.data,
|
|
5470
5472
|
showText: !1,
|
|
5471
5473
|
justify: "center",
|
|
5472
5474
|
squared: !0
|
|
5473
5475
|
}), {
|
|
5474
|
-
...
|
|
5475
|
-
[
|
|
5476
|
+
...R,
|
|
5477
|
+
[k.name]: A
|
|
5476
5478
|
};
|
|
5477
5479
|
}, {});
|
|
5478
5480
|
},
|
|
@@ -5480,7 +5482,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5480
5482
|
), w = le(() => {
|
|
5481
5483
|
o == null || o();
|
|
5482
5484
|
}, [o]), S = () => {
|
|
5483
|
-
de(n) ? m((
|
|
5485
|
+
de(n) ? m((D) => !D) : (m(!1), o == null || o());
|
|
5484
5486
|
};
|
|
5485
5487
|
if (ne(() => {
|
|
5486
5488
|
f(E(r));
|
|
@@ -5491,13 +5493,13 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5491
5493
|
f(E(r));
|
|
5492
5494
|
return;
|
|
5493
5495
|
}
|
|
5494
|
-
const
|
|
5496
|
+
const D = getComputedStyle(p.current).getPropertyValue(
|
|
5495
5497
|
"--smp-drawer-slide-transition"
|
|
5496
5498
|
);
|
|
5497
|
-
let
|
|
5498
|
-
|
|
5499
|
+
let N = Number(D);
|
|
5500
|
+
D.endsWith("ms") ? N = parseFloat(D) : D.endsWith("s") && (N = parseFloat(D) * 1e3), setTimeout(() => {
|
|
5499
5501
|
f(E(r));
|
|
5500
|
-
},
|
|
5502
|
+
}, N / 2);
|
|
5501
5503
|
}, [d, n]), ne(() => {
|
|
5502
5504
|
t !== void 0 && !de(n) && m(t);
|
|
5503
5505
|
}, [n, t]), !((b = r == null ? void 0 : r.rows) != null && b.length) || !((y = r.columns) != null && y.length))
|
|
@@ -5553,12 +5555,12 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5553
5555
|
}
|
|
5554
5556
|
) })
|
|
5555
5557
|
] }),
|
|
5556
|
-
/* @__PURE__ */ g.jsx("div", { className: O.containerLayout, children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((
|
|
5558
|
+
/* @__PURE__ */ g.jsx("div", { className: O.containerLayout, children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((D) => /* @__PURE__ */ g.jsx(Te, { ...D })) }) })
|
|
5557
5559
|
] })
|
|
5558
5560
|
}
|
|
5559
5561
|
)
|
|
5560
5562
|
] });
|
|
5561
|
-
},
|
|
5563
|
+
}, na = ({
|
|
5562
5564
|
ColumnsNumber: r = 1,
|
|
5563
5565
|
data: e = {},
|
|
5564
5566
|
ForceText: t,
|
|
@@ -5580,9 +5582,9 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5580
5582
|
SelectLayout: S = "1",
|
|
5581
5583
|
onClick: O
|
|
5582
5584
|
}) => {
|
|
5583
|
-
const b = "N/A", y = (e == null ? void 0 : e.columns) || [],
|
|
5585
|
+
const b = "N/A", y = (e == null ? void 0 : e.columns) || [], D = (e == null ? void 0 : e.rows) || [], N = D.length > 0, _ = "--smp-dashList-color", T = "smp-layout", R = "descr", k = "icon", P = "um", A = "value", V = i || "1em", I = "18px", W = "--smp-dashList-columns", z = "--smp-dashList-fontSize", X = {
|
|
5584
5586
|
dash: (H = "1") => {
|
|
5585
|
-
const Z = h(H), re = Z, se = x(Z,
|
|
5587
|
+
const Z = h(H), re = Z, se = x(Z, R), he = x(Z, k), Se = x(Z, P), ve = x(Z, A);
|
|
5586
5588
|
return {
|
|
5587
5589
|
container: re,
|
|
5588
5590
|
descr: se,
|
|
@@ -5633,7 +5635,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5633
5635
|
const Z = X.dash(H);
|
|
5634
5636
|
return {
|
|
5635
5637
|
className: Z,
|
|
5636
|
-
descr: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: re }, `${H}-${
|
|
5638
|
+
descr: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: re }, `${H}-${R}`),
|
|
5637
5639
|
icon: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5638
5640
|
fe,
|
|
5639
5641
|
{
|
|
@@ -5642,13 +5644,13 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5642
5644
|
icon: re,
|
|
5643
5645
|
width: I
|
|
5644
5646
|
}
|
|
5645
|
-
) }, `${H}-${
|
|
5647
|
+
) }, `${H}-${k}`),
|
|
5646
5648
|
um: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: re }, `${H}-${P}`),
|
|
5647
5649
|
value: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: re }, `${H}-${A}`)
|
|
5648
5650
|
};
|
|
5649
5651
|
})(S), ae = (H) => {
|
|
5650
5652
|
const { descr: Z, icon: re, um: se, value: he } = U(H), Se = {
|
|
5651
|
-
[j(
|
|
5653
|
+
[j(R)]: C(s),
|
|
5652
5654
|
[j(P)]: C(p),
|
|
5653
5655
|
[j(A)]: C(w)
|
|
5654
5656
|
}, ve = [], _e = $(he);
|
|
@@ -5672,7 +5674,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5672
5674
|
style: Se,
|
|
5673
5675
|
tabIndex: 0,
|
|
5674
5676
|
onClick: () => B(H),
|
|
5675
|
-
onKeyDown: (
|
|
5677
|
+
onKeyDown: (Mr) => Y(Mr, H),
|
|
5676
5678
|
children: ve
|
|
5677
5679
|
},
|
|
5678
5680
|
H.rowId
|
|
@@ -5681,26 +5683,26 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5681
5683
|
[W]: String(r),
|
|
5682
5684
|
[z]: V
|
|
5683
5685
|
};
|
|
5684
|
-
return /* @__PURE__ */ g.jsx("div", { className: X.dashList, style: M, children:
|
|
5686
|
+
return /* @__PURE__ */ g.jsx("div", { className: X.dashList, style: M, children: N ? D.map((H) => ae(H)) : b });
|
|
5685
5687
|
}, nt = {
|
|
5686
5688
|
"smp-table": "_smp-table_1qmju_1",
|
|
5687
5689
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5688
5690
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5689
|
-
},
|
|
5690
|
-
rowContent:
|
|
5691
|
-
clickable:
|
|
5692
|
-
indent:
|
|
5691
|
+
}, As = "_rowContent_20wit_2", Ls = "_clickable_20wit_21", Ns = "_indent_20wit_26", ks = "_toggle_20wit_32", Is = "_cell_20wit_38", Ms = "_leftSection_20wit_46", Ee = {
|
|
5692
|
+
rowContent: As,
|
|
5693
|
+
clickable: Ls,
|
|
5694
|
+
indent: Ns,
|
|
5693
5695
|
toggle: ks,
|
|
5694
|
-
cell:
|
|
5695
|
-
leftSection:
|
|
5696
|
+
cell: Is,
|
|
5697
|
+
leftSection: Ms
|
|
5696
5698
|
};
|
|
5697
5699
|
function st(r) {
|
|
5698
5700
|
return !!r && "children" in r;
|
|
5699
5701
|
}
|
|
5700
|
-
function
|
|
5702
|
+
function Fs(r) {
|
|
5701
5703
|
return !st(r);
|
|
5702
5704
|
}
|
|
5703
|
-
function
|
|
5705
|
+
function Vs(r) {
|
|
5704
5706
|
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5705
5707
|
let t = 0, n, s;
|
|
5706
5708
|
if (e.length === 0) return t.toString();
|
|
@@ -5708,7 +5710,7 @@ function Fs(r) {
|
|
|
5708
5710
|
s = e.charCodeAt(n), t = (t << 5) - t + s, t |= 0;
|
|
5709
5711
|
return Math.abs(t).toString();
|
|
5710
5712
|
}
|
|
5711
|
-
const
|
|
5713
|
+
const Ir = ({
|
|
5712
5714
|
row: r,
|
|
5713
5715
|
columnWidths: e = {},
|
|
5714
5716
|
level: t = 0,
|
|
@@ -5737,7 +5739,7 @@ const Nr = ({
|
|
|
5737
5739
|
"aria-hidden": "true"
|
|
5738
5740
|
}
|
|
5739
5741
|
), E = () => {
|
|
5740
|
-
const O =
|
|
5742
|
+
const O = Fs(r) ? "" : r.decode || (c ? "" : "Untitled"), b = s ?? n * t;
|
|
5741
5743
|
return /* @__PURE__ */ g.jsxs(
|
|
5742
5744
|
"tr",
|
|
5743
5745
|
{
|
|
@@ -5765,7 +5767,7 @@ const Nr = ({
|
|
|
5765
5767
|
]
|
|
5766
5768
|
}
|
|
5767
5769
|
),
|
|
5768
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([y,
|
|
5770
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([y, D]) => /* @__PURE__ */ g.jsx(
|
|
5769
5771
|
"td",
|
|
5770
5772
|
{
|
|
5771
5773
|
className: d.cell,
|
|
@@ -5775,24 +5777,24 @@ const Nr = ({
|
|
|
5775
5777
|
height: `${n}px`
|
|
5776
5778
|
},
|
|
5777
5779
|
children: m({
|
|
5778
|
-
...
|
|
5780
|
+
...D,
|
|
5779
5781
|
id: y
|
|
5780
5782
|
})
|
|
5781
5783
|
},
|
|
5782
|
-
|
|
5784
|
+
Vs(D) || y
|
|
5783
5785
|
))
|
|
5784
5786
|
]
|
|
5785
5787
|
}
|
|
5786
5788
|
);
|
|
5787
5789
|
}, w = () => {
|
|
5788
5790
|
var O;
|
|
5789
|
-
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((O = r.children) == null ? void 0 : O.map((b, y) => /* @__PURE__ */ g.jsx(
|
|
5791
|
+
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((O = r.children) == null ? void 0 : O.map((b, y) => /* @__PURE__ */ g.jsx(Ir, { row: b, level: t + 1 }, `child-${y}`))) });
|
|
5790
5792
|
};
|
|
5791
5793
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5792
5794
|
E(),
|
|
5793
5795
|
w()
|
|
5794
5796
|
] });
|
|
5795
|
-
},
|
|
5797
|
+
}, Ys = ({
|
|
5796
5798
|
label: r,
|
|
5797
5799
|
rowHeight: e = 28,
|
|
5798
5800
|
offsetTop: t = 0,
|
|
@@ -5829,18 +5831,18 @@ const Nr = ({
|
|
|
5829
5831
|
width: 16
|
|
5830
5832
|
}
|
|
5831
5833
|
),
|
|
5832
|
-
/* @__PURE__ */ g.jsx(
|
|
5834
|
+
/* @__PURE__ */ g.jsx(ke, { variant: "title", bindValue: r })
|
|
5833
5835
|
]
|
|
5834
5836
|
}
|
|
5835
5837
|
)
|
|
5836
5838
|
}
|
|
5837
5839
|
);
|
|
5838
5840
|
};
|
|
5839
|
-
function
|
|
5841
|
+
function Us(r, e) {
|
|
5840
5842
|
const t = new Set(r);
|
|
5841
5843
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5842
5844
|
}
|
|
5843
|
-
function
|
|
5845
|
+
function Ws(r, e) {
|
|
5844
5846
|
return r.map((t) => {
|
|
5845
5847
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5846
5848
|
return {
|
|
@@ -5849,7 +5851,7 @@ function Us(r, e) {
|
|
|
5849
5851
|
};
|
|
5850
5852
|
});
|
|
5851
5853
|
}
|
|
5852
|
-
function
|
|
5854
|
+
function Bs(r, e, t, n) {
|
|
5853
5855
|
const s = [];
|
|
5854
5856
|
let a = 0;
|
|
5855
5857
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -5891,7 +5893,7 @@ function Ws(r, e, t, n) {
|
|
|
5891
5893
|
s.push(d), a += t;
|
|
5892
5894
|
}
|
|
5893
5895
|
}
|
|
5894
|
-
const
|
|
5896
|
+
const Hs = ({
|
|
5895
5897
|
groups: r = [],
|
|
5896
5898
|
isDraggable: e = !0,
|
|
5897
5899
|
isEditable: t = !0,
|
|
@@ -5913,7 +5915,7 @@ const Bs = ({
|
|
|
5913
5915
|
children: [
|
|
5914
5916
|
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(fe, { icon: "groups" }) }),
|
|
5915
5917
|
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(
|
|
5916
|
-
|
|
5918
|
+
Nt,
|
|
5917
5919
|
{
|
|
5918
5920
|
elements: i,
|
|
5919
5921
|
isEditable: t,
|
|
@@ -5925,7 +5927,7 @@ const Bs = ({
|
|
|
5925
5927
|
]
|
|
5926
5928
|
}
|
|
5927
5929
|
);
|
|
5928
|
-
},
|
|
5930
|
+
}, Gs = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ g.jsx("tfoot", { children: /* @__PURE__ */ g.jsx("tr", { children: r.map(
|
|
5929
5931
|
(t) => t.visible && /* @__PURE__ */ g.jsx(
|
|
5930
5932
|
"td",
|
|
5931
5933
|
{
|
|
@@ -5938,7 +5940,7 @@ const Bs = ({
|
|
|
5938
5940
|
},
|
|
5939
5941
|
t.name
|
|
5940
5942
|
)
|
|
5941
|
-
) }) }),
|
|
5943
|
+
) }) }), Ks = ({
|
|
5942
5944
|
columns: r,
|
|
5943
5945
|
rows: e,
|
|
5944
5946
|
containerRef: t,
|
|
@@ -5975,7 +5977,7 @@ const Bs = ({
|
|
|
5975
5977
|
}
|
|
5976
5978
|
}
|
|
5977
5979
|
}, [r, e, t, n]), [s, a];
|
|
5978
|
-
},
|
|
5980
|
+
}, sa = ({
|
|
5979
5981
|
data: r,
|
|
5980
5982
|
lineHeight: e = 28,
|
|
5981
5983
|
TableHeight: t = 400,
|
|
@@ -5984,10 +5986,10 @@ const Bs = ({
|
|
|
5984
5986
|
showGroupBar: a = !0
|
|
5985
5987
|
// isEditable = false,
|
|
5986
5988
|
}) => {
|
|
5987
|
-
var
|
|
5989
|
+
var N;
|
|
5988
5990
|
const [i, o] = q(
|
|
5989
5991
|
r ?? { columns: [], rows: [] }
|
|
5990
|
-
), [c, l] = q(n || []), [u, f] = q(/* @__PURE__ */ new Set()), d = ce(null), [m, p] =
|
|
5992
|
+
), [c, l] = q(n || []), [u, f] = q(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = Ks({
|
|
5991
5993
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5992
5994
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5993
5995
|
containerRef: d,
|
|
@@ -5995,7 +5997,7 @@ const Bs = ({
|
|
|
5995
5997
|
});
|
|
5996
5998
|
ne(() => {
|
|
5997
5999
|
if (c != null && c.length && r.rows) {
|
|
5998
|
-
const { flatRows: _ } =
|
|
6000
|
+
const { flatRows: _ } = Bs(
|
|
5999
6001
|
r.rows,
|
|
6000
6002
|
c,
|
|
6001
6003
|
e,
|
|
@@ -6006,24 +6008,24 @@ const Bs = ({
|
|
|
6006
6008
|
o(r);
|
|
6007
6009
|
}, [r, c, u, e]);
|
|
6008
6010
|
const v = (_) => {
|
|
6009
|
-
l(
|
|
6011
|
+
l(Ws(_, c));
|
|
6010
6012
|
}, E = (_) => {
|
|
6011
6013
|
_.preventDefault();
|
|
6012
6014
|
const T = _.dataTransfer.getData("text/plain");
|
|
6013
6015
|
if (!T || c.some((P) => P.column === T))
|
|
6014
6016
|
return;
|
|
6015
|
-
const
|
|
6016
|
-
l(
|
|
6017
|
+
const k = [...c, { column: T, visible: !0 }];
|
|
6018
|
+
l(k);
|
|
6017
6019
|
}, w = (_) => {
|
|
6018
6020
|
_.preventDefault();
|
|
6019
|
-
}, { virtualItems: S, containerProps: O, innerProps: b } =
|
|
6021
|
+
}, { virtualItems: S, containerProps: O, innerProps: b } = Pr({
|
|
6020
6022
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
6021
6023
|
itemHeight: e,
|
|
6022
6024
|
containerHeight: t,
|
|
6023
6025
|
overscan: 5
|
|
6024
6026
|
}), y = (_, T) => {
|
|
6025
|
-
const
|
|
6026
|
-
const I = V.clientX -
|
|
6027
|
+
const R = _.clientX, k = m[T], P = (V) => {
|
|
6028
|
+
const I = V.clientX - R, W = Math.max(50, k + I);
|
|
6027
6029
|
p((z) => ({
|
|
6028
6030
|
...z,
|
|
6029
6031
|
[T]: W
|
|
@@ -6032,7 +6034,7 @@ const Bs = ({
|
|
|
6032
6034
|
window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", A);
|
|
6033
6035
|
};
|
|
6034
6036
|
window.addEventListener("mousemove", P), window.addEventListener("mouseup", A);
|
|
6035
|
-
},
|
|
6037
|
+
}, D = {
|
|
6036
6038
|
smpTable: `${nt["smp-table"]}`,
|
|
6037
6039
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
6038
6040
|
resizer: `${nt["smp-resizer"]}`
|
|
@@ -6040,13 +6042,13 @@ const Bs = ({
|
|
|
6040
6042
|
return i && /* @__PURE__ */ g.jsx(
|
|
6041
6043
|
"div",
|
|
6042
6044
|
{
|
|
6043
|
-
className:
|
|
6045
|
+
className: D.smpTable,
|
|
6044
6046
|
...O,
|
|
6045
6047
|
ref: d,
|
|
6046
6048
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6047
6049
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6048
6050
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
6049
|
-
|
|
6051
|
+
Hs,
|
|
6050
6052
|
{
|
|
6051
6053
|
groups: c,
|
|
6052
6054
|
onChange: v,
|
|
@@ -6054,11 +6056,11 @@ const Bs = ({
|
|
|
6054
6056
|
onDragOver: w
|
|
6055
6057
|
}
|
|
6056
6058
|
),
|
|
6057
|
-
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((
|
|
6059
|
+
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((N = i.columns) == null ? void 0 : N.map(
|
|
6058
6060
|
(_) => _.visible && /* @__PURE__ */ g.jsxs(
|
|
6059
6061
|
"th",
|
|
6060
6062
|
{
|
|
6061
|
-
className:
|
|
6063
|
+
className: D.headerCell,
|
|
6062
6064
|
draggable: !0,
|
|
6063
6065
|
onDragStart: (T) => {
|
|
6064
6066
|
T.dataTransfer.setData("text/plain", _.name);
|
|
@@ -6070,7 +6072,7 @@ const Bs = ({
|
|
|
6070
6072
|
},
|
|
6071
6073
|
children: [
|
|
6072
6074
|
/* @__PURE__ */ g.jsx(
|
|
6073
|
-
|
|
6075
|
+
ke,
|
|
6074
6076
|
{
|
|
6075
6077
|
variant: "title",
|
|
6076
6078
|
bindValue: _.title
|
|
@@ -6079,7 +6081,7 @@ const Bs = ({
|
|
|
6079
6081
|
/* @__PURE__ */ g.jsx(
|
|
6080
6082
|
"div",
|
|
6081
6083
|
{
|
|
6082
|
-
className:
|
|
6084
|
+
className: D.resizer,
|
|
6083
6085
|
onMouseDown: (T) => y(T, _.name),
|
|
6084
6086
|
role: "region"
|
|
6085
6087
|
}
|
|
@@ -6090,39 +6092,39 @@ const Bs = ({
|
|
|
6090
6092
|
)
|
|
6091
6093
|
)) })
|
|
6092
6094
|
] }),
|
|
6093
|
-
/* @__PURE__ */ g.jsx("tbody", { ...b, children: S.map(({ item: _, index: T, offsetTop:
|
|
6094
|
-
const
|
|
6095
|
+
/* @__PURE__ */ g.jsx("tbody", { ...b, children: S.map(({ item: _, index: T, offsetTop: R }) => {
|
|
6096
|
+
const k = _.rowId || _.value || `${_.isGroup ? "group" : "row"}-${T}`;
|
|
6095
6097
|
return _.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6096
|
-
|
|
6098
|
+
Ys,
|
|
6097
6099
|
{
|
|
6098
6100
|
label: _.value || "",
|
|
6099
6101
|
rowHeight: e,
|
|
6100
|
-
offsetTop:
|
|
6102
|
+
offsetTop: R,
|
|
6101
6103
|
level: _.level,
|
|
6102
6104
|
onClick: () => {
|
|
6103
6105
|
const P = _.rowId;
|
|
6104
|
-
P && f((A) =>
|
|
6106
|
+
P && f((A) => Us(A, P));
|
|
6105
6107
|
},
|
|
6106
6108
|
isExpanded: _.isExpanded
|
|
6107
6109
|
},
|
|
6108
|
-
`group-${
|
|
6110
|
+
`group-${k}`
|
|
6109
6111
|
) : /* @__PURE__ */ g.jsx(
|
|
6110
|
-
|
|
6112
|
+
Ir,
|
|
6111
6113
|
{
|
|
6112
6114
|
row: _,
|
|
6113
6115
|
columnWidths: m,
|
|
6114
6116
|
rowHeight: e,
|
|
6115
|
-
offsetTop:
|
|
6117
|
+
offsetTop: R,
|
|
6116
6118
|
isGroup: !1
|
|
6117
6119
|
},
|
|
6118
|
-
`row-${
|
|
6120
|
+
`row-${k}`
|
|
6119
6121
|
);
|
|
6120
6122
|
}) }),
|
|
6121
|
-
/* @__PURE__ */ g.jsx(
|
|
6123
|
+
/* @__PURE__ */ g.jsx(Gs, { columns: i.columns, columnWidths: m })
|
|
6122
6124
|
] })
|
|
6123
6125
|
}
|
|
6124
6126
|
);
|
|
6125
|
-
},
|
|
6127
|
+
}, aa = ({
|
|
6126
6128
|
data: r,
|
|
6127
6129
|
Type: e,
|
|
6128
6130
|
ShowSubmit: t = !1,
|
|
@@ -6140,7 +6142,7 @@ const Bs = ({
|
|
|
6140
6142
|
if (!r)
|
|
6141
6143
|
return;
|
|
6142
6144
|
const v = { ...r };
|
|
6143
|
-
return e && (v.shape = e), v.shape == null && (v.shape = te.TEXT_FIELD), s && (v.obj =
|
|
6145
|
+
return e && (v.shape = e), v.shape == null && (v.shape = te.TEXT_FIELD), s && (v.obj = Xr(s)), v;
|
|
6144
6146
|
});
|
|
6145
6147
|
}, [r, s, e]);
|
|
6146
6148
|
const m = {
|
|
@@ -6184,18 +6186,18 @@ const Bs = ({
|
|
|
6184
6186
|
}
|
|
6185
6187
|
)
|
|
6186
6188
|
] });
|
|
6187
|
-
},
|
|
6189
|
+
}, qs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", zs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", Js = (r) => qs(r) ? r.children ? r.children.map(
|
|
6188
6190
|
(e) => ({
|
|
6189
6191
|
id: e.obj.k,
|
|
6190
6192
|
label: e.value ?? ""
|
|
6191
6193
|
})
|
|
6192
|
-
) : [] :
|
|
6194
|
+
) : [] : zs(r) ? r.rows.map((e) => {
|
|
6193
6195
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
6194
6196
|
return {
|
|
6195
6197
|
id: t[n].obj.k,
|
|
6196
6198
|
label: t[s].value || t[s].obj.k
|
|
6197
6199
|
};
|
|
6198
|
-
}) : [],
|
|
6200
|
+
}) : [], ia = ({
|
|
6199
6201
|
data: r,
|
|
6200
6202
|
readOnly: e = !1,
|
|
6201
6203
|
hiddenSubmitButton: t = !1,
|
|
@@ -6212,17 +6214,17 @@ const Bs = ({
|
|
|
6212
6214
|
u(v(r));
|
|
6213
6215
|
}, [r]);
|
|
6214
6216
|
const d = (b, y) => {
|
|
6215
|
-
u((
|
|
6216
|
-
...
|
|
6217
|
+
u((D) => ({
|
|
6218
|
+
...D,
|
|
6217
6219
|
[b]: {
|
|
6218
|
-
...
|
|
6220
|
+
...D[b],
|
|
6219
6221
|
obj: {
|
|
6220
|
-
...
|
|
6222
|
+
...D[b].obj,
|
|
6221
6223
|
k: y.obj.k
|
|
6222
6224
|
},
|
|
6223
6225
|
decode: y.decode,
|
|
6224
6226
|
data: {
|
|
6225
|
-
...
|
|
6227
|
+
...D[b].data,
|
|
6226
6228
|
error: void 0
|
|
6227
6229
|
},
|
|
6228
6230
|
// FIXME: remove this when webup.js will not use value
|
|
@@ -6236,7 +6238,7 @@ const Bs = ({
|
|
|
6236
6238
|
cell: b
|
|
6237
6239
|
});
|
|
6238
6240
|
}, p = async (b) => {
|
|
6239
|
-
var y,
|
|
6241
|
+
var y, D;
|
|
6240
6242
|
if (l[b].obj.k != r.rows[0].cells[b].obj.k && ((y = l[b].inputSettings) != null && y.checkObject && o && ((await o({
|
|
6241
6243
|
obj: l[b].obj,
|
|
6242
6244
|
fun: l[b].fun,
|
|
@@ -6247,32 +6249,32 @@ const Bs = ({
|
|
|
6247
6249
|
..._[b],
|
|
6248
6250
|
data: {
|
|
6249
6251
|
..._[b].data,
|
|
6250
|
-
error: f(
|
|
6252
|
+
error: f(Ne.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6251
6253
|
}
|
|
6252
6254
|
}
|
|
6253
|
-
}))), (
|
|
6254
|
-
const
|
|
6255
|
+
}))), (D = l[b].inputSettings) != null && D.checkValueOnExit)) {
|
|
6256
|
+
const N = E();
|
|
6255
6257
|
i == null || i({
|
|
6256
|
-
value:
|
|
6258
|
+
value: N,
|
|
6257
6259
|
cell: b
|
|
6258
6260
|
});
|
|
6259
6261
|
}
|
|
6260
6262
|
}, v = (b) => {
|
|
6261
|
-
var
|
|
6262
|
-
if (!((
|
|
6263
|
+
var D, N, _;
|
|
6264
|
+
if (!((D = b.rows) != null && D.length) || !((N = b.columns) != null && N.length))
|
|
6263
6265
|
return {};
|
|
6264
6266
|
const y = (_ = b.rows) == null ? void 0 : _[0];
|
|
6265
|
-
return b.columns.filter((T) => T.visible ?? !0).reduce((T,
|
|
6266
|
-
const
|
|
6267
|
-
...y.cells[
|
|
6268
|
-
id:
|
|
6269
|
-
label:
|
|
6267
|
+
return b.columns.filter((T) => T.visible ?? !0).reduce((T, R) => {
|
|
6268
|
+
const k = {
|
|
6269
|
+
...y.cells[R.name],
|
|
6270
|
+
id: R.name,
|
|
6271
|
+
label: R.title
|
|
6270
6272
|
};
|
|
6271
|
-
return
|
|
6272
|
-
await s(P, A, r,
|
|
6273
|
-
)),
|
|
6273
|
+
return k.fun && (k.onOptionsRequest = async (P, A) => Js(
|
|
6274
|
+
await s(P, A, r, R.name)
|
|
6275
|
+
)), k.isEditable == null && (k.isEditable = !0), e && (k.isEditable = !1), k.isEditable && k.shape == null && (k.shape = te.TEXT_FIELD), {
|
|
6274
6276
|
...T,
|
|
6275
|
-
[
|
|
6277
|
+
[R.name]: k
|
|
6276
6278
|
};
|
|
6277
6279
|
}, {});
|
|
6278
6280
|
}, E = () => ({
|
|
@@ -6286,7 +6288,7 @@ const Bs = ({
|
|
|
6286
6288
|
}
|
|
6287
6289
|
]
|
|
6288
6290
|
}
|
|
6289
|
-
}), w = ((O = (S = r.setup) == null ? void 0 : S.commands) == null ? void 0 : O.map((b, y) => /* @__PURE__ */
|
|
6291
|
+
}), w = ((O = (S = r.setup) == null ? void 0 : S.commands) == null ? void 0 : O.map((b, y) => /* @__PURE__ */ Wr(
|
|
6290
6292
|
Te,
|
|
6291
6293
|
{
|
|
6292
6294
|
...b,
|
|
@@ -6302,7 +6304,7 @@ const Bs = ({
|
|
|
6302
6304
|
Te,
|
|
6303
6305
|
{
|
|
6304
6306
|
onClick: () => m(),
|
|
6305
|
-
decode: f(
|
|
6307
|
+
decode: f(Ne.CONFIRM_BUTTON),
|
|
6306
6308
|
shape: te.BUTTON,
|
|
6307
6309
|
id: "",
|
|
6308
6310
|
obj: {
|
|
@@ -6356,20 +6358,20 @@ const Bs = ({
|
|
|
6356
6358
|
] });
|
|
6357
6359
|
};
|
|
6358
6360
|
export {
|
|
6359
|
-
|
|
6361
|
+
ta as AppBar,
|
|
6360
6362
|
kr as Autocomplete,
|
|
6361
6363
|
Be as Button,
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6364
|
+
us as ButtonList,
|
|
6365
|
+
ds as Checkbox,
|
|
6366
|
+
hs as Combobox,
|
|
6367
|
+
na as DashList,
|
|
6368
|
+
sa as DataTableComponent,
|
|
6369
|
+
ys as DatePicker,
|
|
6370
|
+
ra as Drawer,
|
|
6371
|
+
aa as Field,
|
|
6370
6372
|
fe as Icon,
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6373
|
+
ia as InputPanel,
|
|
6374
|
+
xs as Password,
|
|
6375
|
+
Re as Textfield,
|
|
6376
|
+
ea as configurePaths
|
|
6375
6377
|
};
|