@sme.up/ketchup2 2.0.0-SNAPSHOT-20250626154924 → 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/basic-components/button/button-types.d.ts +6 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button/button.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/radio/radio-types.d.ts +5 -1
- package/dist/basic-components/radio/radio-types.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +976 -970
- package/package.json +1 -1
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,24 +46,24 @@ 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:
|
|
59
59
|
return "Fragment";
|
|
60
|
-
case E:
|
|
61
|
-
return "Profiler";
|
|
62
60
|
case w:
|
|
61
|
+
return "Profiler";
|
|
62
|
+
case E:
|
|
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";
|
|
@@ -76,12 +76,12 @@ function Hr() {
|
|
|
76
76
|
return "Portal";
|
|
77
77
|
case O:
|
|
78
78
|
return (h.displayName || "Context") + ".Provider";
|
|
79
|
-
case b:
|
|
80
|
-
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
79
|
case S:
|
|
80
|
+
return (h._context.displayName || "Context") + ".Consumer";
|
|
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"),
|
|
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,26 +361,26 @@ 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
|
-
var O,
|
|
369
|
-
let v = "",
|
|
370
|
-
return (O = p.sections) != null && O.length ? (v = ge["smp-layout-section-grid"],
|
|
368
|
+
var O, b;
|
|
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 || 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 = {
|
|
374
374
|
[n]: `repeat(${p.gridCols}, 1fr)`
|
|
375
375
|
}) : v = ge["smp-layout-section-flex"]), {
|
|
376
376
|
...m,
|
|
377
|
-
...
|
|
377
|
+
...E,
|
|
378
378
|
[p.id]: {
|
|
379
|
-
classes: `${v} ${ge[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
380
|
-
styles:
|
|
379
|
+
classes: `${v} ${ge[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${S} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
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) => {
|
|
@@ -391,8 +391,8 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
391
391
|
"smp-id": `section-${d.id}`,
|
|
392
392
|
className: o[d.id].classes,
|
|
393
393
|
style: o[d.id].styles,
|
|
394
|
-
children: (p = d.sections) != null && p.length ? d.sections.map((
|
|
395
|
-
(
|
|
394
|
+
children: (p = d.sections) != null && p.length ? d.sections.map((E) => u(E)) : (v = d.content) == null ? void 0 : v.map(
|
|
395
|
+
(E) => f(E, d.justify, d.align)
|
|
396
396
|
)
|
|
397
397
|
},
|
|
398
398
|
`section-${d.id}`
|
|
@@ -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
|
|
@@ -417,15 +417,15 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
417
417
|
}, f = (d, m, p) => {
|
|
418
418
|
const v = t[d.id];
|
|
419
419
|
if (!v) return null;
|
|
420
|
-
const
|
|
420
|
+
const w = {
|
|
421
421
|
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
422
422
|
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
423
|
-
},
|
|
423
|
+
}, S = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${p ? `smp-alignItems-${p}` : ""}`;
|
|
424
424
|
return /* @__PURE__ */ g.jsx(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
|
-
className:
|
|
428
|
-
style:
|
|
427
|
+
className: S,
|
|
428
|
+
style: w,
|
|
429
429
|
"smp-id": d.id,
|
|
430
430
|
children: v
|
|
431
431
|
},
|
|
@@ -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
|
]
|
|
@@ -621,7 +621,7 @@ function ht({
|
|
|
621
621
|
requestAnimationFrame(i);
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
|
-
let v = l + window.scrollY,
|
|
624
|
+
let v = l + window.scrollY, E = u + window.scrollX;
|
|
625
625
|
switch (r) {
|
|
626
626
|
case "top":
|
|
627
627
|
v -= m;
|
|
@@ -630,17 +630,17 @@ function ht({
|
|
|
630
630
|
v += d;
|
|
631
631
|
break;
|
|
632
632
|
case "left":
|
|
633
|
-
|
|
633
|
+
E -= p;
|
|
634
634
|
break;
|
|
635
635
|
case "right":
|
|
636
|
-
|
|
636
|
+
E += f;
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
639
|
requestAnimationFrame(() => {
|
|
640
|
-
c.style.transform = `translate(${
|
|
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) {
|
|
@@ -731,8 +731,8 @@ function nn() {
|
|
|
731
731
|
throw new TypeError("invalid type");
|
|
732
732
|
var p = m;
|
|
733
733
|
if (d && typeof d == "object")
|
|
734
|
-
for (var v,
|
|
735
|
-
if (v = w
|
|
734
|
+
for (var v, E = Object.keys(d).sort(), w = 0; w < E.length; w++) {
|
|
735
|
+
if (v = E[w], !t.test(v))
|
|
736
736
|
throw new TypeError("invalid parameter name");
|
|
737
737
|
p += "; " + v + "=" + l(d[v]);
|
|
738
738
|
}
|
|
@@ -749,11 +749,11 @@ function nn() {
|
|
|
749
749
|
throw new TypeError("invalid media type");
|
|
750
750
|
var v = new u(p.toLowerCase());
|
|
751
751
|
if (m !== -1) {
|
|
752
|
-
var
|
|
753
|
-
for (r.lastIndex = m;
|
|
754
|
-
if (
|
|
752
|
+
var E, w, S;
|
|
753
|
+
for (r.lastIndex = m; w = r.exec(d); ) {
|
|
754
|
+
if (w.index !== m)
|
|
755
755
|
throw new TypeError("invalid parameter format");
|
|
756
|
-
m +=
|
|
756
|
+
m += w[0].length, E = w[1].toLowerCase(), S = w[2], S.charCodeAt(0) === 34 && (S = S.slice(1, -1), S.indexOf("\\") !== -1 && (S = S.replace(n, "$1"))), v.parameters[E] = S;
|
|
757
757
|
}
|
|
758
758
|
if (m !== d.length)
|
|
759
759
|
throw new TypeError("invalid parameter format");
|
|
@@ -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);
|
|
@@ -870,14 +870,14 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
870
870
|
p && f.setAttribute("width", p);
|
|
871
871
|
var v = e.getAttribute("height");
|
|
872
872
|
v && f.setAttribute("height", v);
|
|
873
|
-
var
|
|
874
|
-
f.setAttribute("class",
|
|
875
|
-
var
|
|
876
|
-
|
|
877
|
-
var
|
|
873
|
+
var E = Array.from(new Set(yt(yt(yt([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
874
|
+
f.setAttribute("class", E);
|
|
875
|
+
var w = e.getAttribute("style");
|
|
876
|
+
w && f.setAttribute("style", w), f.setAttribute("data-src", c);
|
|
877
|
+
var S = [].filter.call(e.attributes, function(X) {
|
|
878
878
|
return /^data-\w[\w-]*$/.test(X.name);
|
|
879
879
|
});
|
|
880
|
-
if (Array.prototype.forEach.call(
|
|
880
|
+
if (Array.prototype.forEach.call(S, function(X) {
|
|
881
881
|
X.name && X.value && f.setAttribute(X.name, X.value);
|
|
882
882
|
}), n) {
|
|
883
883
|
var O = {
|
|
@@ -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
|
-
},
|
|
894
|
+
}, b, y, D, N, _;
|
|
895
895
|
Object.keys(O).forEach(function(X) {
|
|
896
|
-
|
|
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
|
-
} : 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,
|
|
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
|
-
for (var
|
|
942
|
-
|
|
943
|
-
o(y,
|
|
941
|
+
for (var S = 0, O = 0, b = e.length; O < b; O++)
|
|
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
|
-
|
|
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,
|
|
957
|
+
var qt;
|
|
958
|
+
function hn() {
|
|
959
|
+
if (qt) return Q;
|
|
960
|
+
qt = 1;
|
|
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,20 +981,20 @@ 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
|
}
|
|
992
|
-
function
|
|
992
|
+
function b(y) {
|
|
993
993
|
return O(y) === l;
|
|
994
994
|
}
|
|
995
995
|
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = f, Q.isAsyncMode = function(y) {
|
|
996
|
-
return
|
|
997
|
-
}, Q.isConcurrentMode =
|
|
996
|
+
return b(y) || O(y) === c;
|
|
997
|
+
}, Q.isConcurrentMode = b, Q.isContextConsumer = function(y) {
|
|
998
998
|
return O(y) === o;
|
|
999
999
|
}, Q.isContextProvider = function(y) {
|
|
1000
1000
|
return O(y) === i;
|
|
@@ -1017,7 +1017,7 @@ function pn() {
|
|
|
1017
1017
|
}, Q.isSuspense = function(y) {
|
|
1018
1018
|
return O(y) === f;
|
|
1019
1019
|
}, Q.isValidElementType = function(y) {
|
|
1020
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === f || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === m || y.$$typeof === i || y.$$typeof === o || y.$$typeof === u || y.$$typeof ===
|
|
1020
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === f || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === m || y.$$typeof === i || y.$$typeof === o || y.$$typeof === u || y.$$typeof === E || y.$$typeof === w || y.$$typeof === S || y.$$typeof === v);
|
|
1021
1021
|
}, Q.typeOf = O, Q;
|
|
1022
1022
|
}
|
|
1023
1023
|
var ee = {};
|
|
@@ -1029,15 +1029,15 @@ 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
|
|
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,
|
|
1032
|
+
var zt;
|
|
1033
|
+
function mn() {
|
|
1034
|
+
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
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.
|
|
1038
|
-
M === n || M === l || M === a || M === s || M === f || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === u || M.$$typeof ===
|
|
1038
|
+
M === n || M === l || M === a || M === s || M === f || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === u || M.$$typeof === E || M.$$typeof === w || M.$$typeof === S || M.$$typeof === v);
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function b(M) {
|
|
1041
1041
|
if (typeof M == "object" && M !== null) {
|
|
1042
1042
|
var H = M.$$typeof;
|
|
1043
1043
|
switch (H) {
|
|
@@ -1069,62 +1069,62 @@ 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
|
-
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) ||
|
|
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
|
}
|
|
1076
1076
|
function h(M) {
|
|
1077
|
-
return
|
|
1077
|
+
return b(M) === l;
|
|
1078
1078
|
}
|
|
1079
1079
|
function x(M) {
|
|
1080
|
-
return
|
|
1080
|
+
return b(M) === o;
|
|
1081
1081
|
}
|
|
1082
1082
|
function j(M) {
|
|
1083
|
-
return
|
|
1083
|
+
return b(M) === i;
|
|
1084
1084
|
}
|
|
1085
1085
|
function C(M) {
|
|
1086
1086
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
1087
1087
|
}
|
|
1088
1088
|
function $(M) {
|
|
1089
|
-
return
|
|
1089
|
+
return b(M) === u;
|
|
1090
1090
|
}
|
|
1091
1091
|
function L(M) {
|
|
1092
|
-
return
|
|
1092
|
+
return b(M) === n;
|
|
1093
1093
|
}
|
|
1094
1094
|
function U(M) {
|
|
1095
|
-
return
|
|
1095
|
+
return b(M) === p;
|
|
1096
1096
|
}
|
|
1097
1097
|
function B(M) {
|
|
1098
|
-
return
|
|
1098
|
+
return b(M) === m;
|
|
1099
1099
|
}
|
|
1100
1100
|
function Y(M) {
|
|
1101
|
-
return
|
|
1101
|
+
return b(M) === t;
|
|
1102
1102
|
}
|
|
1103
1103
|
function J(M) {
|
|
1104
|
-
return
|
|
1104
|
+
return b(M) === a;
|
|
1105
1105
|
}
|
|
1106
1106
|
function G(M) {
|
|
1107
|
-
return
|
|
1107
|
+
return b(M) === s;
|
|
1108
1108
|
}
|
|
1109
1109
|
function ae(M) {
|
|
1110
|
-
return
|
|
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;
|
|
@@ -1252,22 +1252,22 @@ function yn() {
|
|
|
1252
1252
|
return x;
|
|
1253
1253
|
}
|
|
1254
1254
|
var d = "<<anonymous>>", m = {
|
|
1255
|
-
array:
|
|
1256
|
-
bigint:
|
|
1257
|
-
bool:
|
|
1258
|
-
func:
|
|
1259
|
-
number:
|
|
1260
|
-
object:
|
|
1261
|
-
string:
|
|
1262
|
-
symbol:
|
|
1263
|
-
any:
|
|
1255
|
+
array: w("array"),
|
|
1256
|
+
bigint: w("bigint"),
|
|
1257
|
+
bool: w("boolean"),
|
|
1258
|
+
func: w("function"),
|
|
1259
|
+
number: w("number"),
|
|
1260
|
+
object: w("object"),
|
|
1261
|
+
string: w("string"),
|
|
1262
|
+
symbol: w("symbol"),
|
|
1263
|
+
any: S(),
|
|
1264
1264
|
arrayOf: O,
|
|
1265
|
-
element:
|
|
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
|
|
@@ -1279,7 +1279,7 @@ function yn() {
|
|
|
1279
1279
|
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
1280
1280
|
}
|
|
1281
1281
|
v.prototype = Error.prototype;
|
|
1282
|
-
function
|
|
1282
|
+
function E(h) {
|
|
1283
1283
|
if (process.env.NODE_ENV !== "production")
|
|
1284
1284
|
var x = {}, j = 0;
|
|
1285
1285
|
function C(L, U, B, Y, J, G, ae) {
|
|
@@ -1302,7 +1302,7 @@ function yn() {
|
|
|
1302
1302
|
var $ = C.bind(null, !1);
|
|
1303
1303
|
return $.isRequired = C.bind(null, !0), $;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function w(h) {
|
|
1306
1306
|
function x(j, C, $, L, U, B) {
|
|
1307
1307
|
var Y = j[C], J = W(Y);
|
|
1308
1308
|
if (J !== h) {
|
|
@@ -1314,10 +1314,10 @@ function yn() {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
return null;
|
|
1316
1316
|
}
|
|
1317
|
-
return
|
|
1317
|
+
return E(x);
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1319
|
+
function S() {
|
|
1320
|
+
return E(i);
|
|
1321
1321
|
}
|
|
1322
1322
|
function O(h) {
|
|
1323
1323
|
function x(j, C, $, L, U) {
|
|
@@ -1335,9 +1335,9 @@ function yn() {
|
|
|
1335
1335
|
}
|
|
1336
1336
|
return null;
|
|
1337
1337
|
}
|
|
1338
|
-
return
|
|
1338
|
+
return E(x);
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function b() {
|
|
1341
1341
|
function h(x, j, C, $, L) {
|
|
1342
1342
|
var U = x[j];
|
|
1343
1343
|
if (!o(U)) {
|
|
@@ -1346,7 +1346,7 @@ function yn() {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
return null;
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1349
|
+
return E(h);
|
|
1350
1350
|
}
|
|
1351
1351
|
function y() {
|
|
1352
1352
|
function h(x, j, C, $, L) {
|
|
@@ -1357,9 +1357,9 @@ function yn() {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
return null;
|
|
1359
1359
|
}
|
|
1360
|
-
return
|
|
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]);
|
|
@@ -1367,9 +1367,9 @@ function yn() {
|
|
|
1367
1367
|
}
|
|
1368
1368
|
return null;
|
|
1369
1369
|
}
|
|
1370
|
-
return
|
|
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])."
|
|
@@ -1384,7 +1384,7 @@ function yn() {
|
|
|
1384
1384
|
});
|
|
1385
1385
|
return new v("Invalid " + L + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
|
|
1386
1386
|
}
|
|
1387
|
-
return
|
|
1387
|
+
return E(x);
|
|
1388
1388
|
}
|
|
1389
1389
|
function _(h) {
|
|
1390
1390
|
function x(j, C, $, L, U) {
|
|
@@ -1401,7 +1401,7 @@ function yn() {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
return null;
|
|
1403
1403
|
}
|
|
1404
|
-
return
|
|
1404
|
+
return E(x);
|
|
1405
1405
|
}
|
|
1406
1406
|
function T(h) {
|
|
1407
1407
|
if (!Array.isArray(h))
|
|
@@ -1423,15 +1423,15 @@ function yn() {
|
|
|
1423
1423
|
var H = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1424
1424
|
return new v("Invalid " + B + " `" + Y + "` supplied to " + ("`" + U + "`" + H + "."));
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
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
|
-
return
|
|
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,14 +1444,14 @@ 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;
|
|
1451
1451
|
}
|
|
1452
1452
|
return null;
|
|
1453
1453
|
}
|
|
1454
|
-
return
|
|
1454
|
+
return E(x);
|
|
1455
1455
|
}
|
|
1456
1456
|
function A(h) {
|
|
1457
1457
|
function x(j, C, $, L, U) {
|
|
@@ -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, " ") + `
|
|
@@ -1474,7 +1474,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1474
1474
|
}
|
|
1475
1475
|
return null;
|
|
1476
1476
|
}
|
|
1477
|
-
return
|
|
1477
|
+
return E(x);
|
|
1478
1478
|
}
|
|
1479
1479
|
function V(h) {
|
|
1480
1480
|
switch (typeof h) {
|
|
@@ -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
|
|
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,
|
|
1637
|
-
|
|
1638
|
-
var O = function(
|
|
1635
|
+
if (this.reactWrapper instanceof Sn(this.reactWrapper).Node) {
|
|
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", 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
|
-
},
|
|
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,27 +1664,27 @@ 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
|
-
|
|
1687
|
-
afterEach:
|
|
1686
|
+
pn(S, {
|
|
1687
|
+
afterEach: b,
|
|
1688
1688
|
beforeEach: y,
|
|
1689
1689
|
cacheRequests: d,
|
|
1690
1690
|
evalScripts: o,
|
|
@@ -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,21 +1776,21 @@ 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("/")),
|
|
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
|
-
return /* @__PURE__ */ g.jsx(g.Fragment, { children:
|
|
1789
|
+
return /* @__PURE__ */ g.jsx(g.Fragment, { children: E ? /* @__PURE__ */ g.jsx(
|
|
1790
1790
|
Ae,
|
|
1791
1791
|
{
|
|
1792
1792
|
src: r,
|
|
1793
|
-
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src:
|
|
1793
|
+
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src: S, wrapper: "svg" }),
|
|
1794
1794
|
width: e || "1rem",
|
|
1795
1795
|
height: t || "1rem",
|
|
1796
1796
|
wrapper: "svg",
|
|
@@ -1799,7 +1799,7 @@ const Qs = (r) => {
|
|
|
1799
1799
|
fill: s,
|
|
1800
1800
|
"aria-disabled": a,
|
|
1801
1801
|
className: O.svg,
|
|
1802
|
-
onClick:
|
|
1802
|
+
onClick: b,
|
|
1803
1803
|
onKeyDown: y,
|
|
1804
1804
|
tabIndex: d
|
|
1805
1805
|
}
|
|
@@ -1812,20 +1812,20 @@ const Qs = (r) => {
|
|
|
1812
1812
|
width: e || "16px",
|
|
1813
1813
|
height: t || "auto",
|
|
1814
1814
|
alt: f,
|
|
1815
|
-
onError: () => p(
|
|
1816
|
-
onClick:
|
|
1815
|
+
onError: () => p(S),
|
|
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
|
)
|
|
1824
1824
|
) : /* @__PURE__ */ g.jsx(
|
|
1825
1825
|
Ae,
|
|
1826
1826
|
{
|
|
1827
|
-
src:
|
|
1828
|
-
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src:
|
|
1827
|
+
src: w,
|
|
1828
|
+
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src: S, wrapper: "svg" }),
|
|
1829
1829
|
width: e || "1rem",
|
|
1830
1830
|
height: t || "1rem",
|
|
1831
1831
|
wrapper: "svg",
|
|
@@ -1834,7 +1834,7 @@ const Qs = (r) => {
|
|
|
1834
1834
|
fill: s,
|
|
1835
1835
|
"aria-disabled": a,
|
|
1836
1836
|
className: O.svg,
|
|
1837
|
-
onClick:
|
|
1837
|
+
onClick: b,
|
|
1838
1838
|
onKeyDown: y,
|
|
1839
1839
|
tabIndex: d
|
|
1840
1840
|
}
|
|
@@ -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,
|
|
@@ -1873,29 +1873,29 @@ const Qs = (r) => {
|
|
|
1873
1873
|
onShapeIconClick: m,
|
|
1874
1874
|
ref: p,
|
|
1875
1875
|
inputRef: v,
|
|
1876
|
-
onKeyDown:
|
|
1877
|
-
inputType:
|
|
1878
|
-
ariaLabel:
|
|
1876
|
+
onKeyDown: E,
|
|
1877
|
+
inputType: w = "text",
|
|
1878
|
+
ariaLabel: S = "input field",
|
|
1879
1879
|
label: O,
|
|
1880
|
-
helperText:
|
|
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,
|
|
1891
1891
|
size: I,
|
|
1892
1892
|
maxLength: W
|
|
1893
1893
|
}) => {
|
|
1894
|
-
const z = Ge(), X = `${z}-helper`, F = y ? "danger" : l, h = y || l == "danger" ? "error" : o, x =
|
|
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
|
{
|
|
@@ -1917,7 +1917,7 @@ const Qs = (r) => {
|
|
|
1917
1917
|
"input",
|
|
1918
1918
|
{
|
|
1919
1919
|
id: z,
|
|
1920
|
-
type:
|
|
1920
|
+
type: w,
|
|
1921
1921
|
value: e,
|
|
1922
1922
|
placeholder: a,
|
|
1923
1923
|
onChange: j,
|
|
@@ -1925,13 +1925,13 @@ const Qs = (r) => {
|
|
|
1925
1925
|
className: C.input,
|
|
1926
1926
|
disabled: r,
|
|
1927
1927
|
readOnly: !i,
|
|
1928
|
-
onKeyDown:
|
|
1929
|
-
"aria-label":
|
|
1928
|
+
onKeyDown: E,
|
|
1929
|
+
"aria-label": S,
|
|
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,
|
|
@@ -1985,8 +1985,8 @@ function Cr({
|
|
|
1985
1985
|
a(p);
|
|
1986
1986
|
}, []), d = (m) => {
|
|
1987
1987
|
if (!i.current) return;
|
|
1988
|
-
const p = m * e, v = p + e,
|
|
1989
|
-
p <
|
|
1988
|
+
const p = m * e, v = p + e, E = i.current, w = E.scrollTop, S = w + t;
|
|
1989
|
+
p < w ? E.scrollTop = p : v > S && (E.scrollTop = v - t);
|
|
1990
1990
|
};
|
|
1991
1991
|
return {
|
|
1992
1992
|
virtualItems: u,
|
|
@@ -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,12 +2051,12 @@ 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
|
-
), [
|
|
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:
|
|
2059
|
-
items:
|
|
2058
|
+
}, { virtualItems: D, containerProps: N, innerProps: _, scrollToIndex: T } = Pr({
|
|
2059
|
+
items: b,
|
|
2060
2060
|
itemHeight: m,
|
|
2061
2061
|
containerHeight: 200,
|
|
2062
2062
|
overscan: 5
|
|
@@ -2064,24 +2064,24 @@ const Tn = 10, Pr = ({
|
|
|
2064
2064
|
ne(() => {
|
|
2065
2065
|
a !== null && a !== p && v(a);
|
|
2066
2066
|
}, [a]), ne(() => {
|
|
2067
|
-
p >= 0 && p <
|
|
2068
|
-
}, [p,
|
|
2069
|
-
u && (
|
|
2070
|
-
}, [u,
|
|
2071
|
-
const I =
|
|
2072
|
-
|
|
2067
|
+
p >= 0 && p < b.length && T(p);
|
|
2068
|
+
}, [p, b]), ne(() => {
|
|
2069
|
+
u && (S != null && S.current) && S.current.focus();
|
|
2070
|
+
}, [u, S]), ne(() => {
|
|
2071
|
+
const I = Tn(e, t);
|
|
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
|
-
I.key === "ArrowDown" ? W = p <
|
|
2079
|
-
} else I.key === "Enter" ? p >= 0 && p <
|
|
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
|
+
} 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"]}`,
|
|
@@ -2096,32 +2096,32 @@ const Tn = 10, Pr = ({
|
|
|
2096
2096
|
className: A.wrapper,
|
|
2097
2097
|
"data-component": "list",
|
|
2098
2098
|
style: {
|
|
2099
|
-
width:
|
|
2099
|
+
width: E,
|
|
2100
2100
|
minWidth: o
|
|
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:
|
|
2111
|
-
inputRef:
|
|
2110
|
+
onKeyDown: k,
|
|
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
|
-
"aria-activedescendant": p >= 0 && p <
|
|
2124
|
-
children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children:
|
|
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: 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,41 +2542,41 @@ 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,
|
|
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
|
-
}) : "", _ =
|
|
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
|
}
|
|
2578
|
-
} else if (O && K(
|
|
2579
|
-
p = p.join(
|
|
2578
|
+
} else if (O && K(S) && Array.isArray(p))
|
|
2579
|
+
p = p.join(S), p && (p = this.extendTranslation(p, e, s, n));
|
|
2580
2580
|
else {
|
|
2581
2581
|
let A = !1, V = !1;
|
|
2582
2582
|
!this.isValidLookup(p) && y && (A = !0, p = T), this.isValidLookup(p) || (V = !0, p = o);
|
|
@@ -2600,7 +2600,7 @@ class dt extends gt {
|
|
|
2600
2600
|
const $ = y && C !== p ? C : W;
|
|
2601
2601
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, j, $, z, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(x, l, j, $, z, s), this.emit("missingKey", x, l, j, p);
|
|
2602
2602
|
};
|
|
2603
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2603
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && b ? X.forEach((x) => {
|
|
2604
2604
|
const j = this.pluralResolver.getSuffixes(x, s);
|
|
2605
2605
|
_ && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((C) => {
|
|
2606
2606
|
h([x], o + C, s[`defaultValue${C}`] || T);
|
|
@@ -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)
|
|
@@ -2662,27 +2662,27 @@ class dt extends gt {
|
|
|
2662
2662
|
let f = l.namespaces;
|
|
2663
2663
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
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
|
-
f.forEach((
|
|
2666
|
-
var
|
|
2667
|
-
this.isValidLookup(n) || (o =
|
|
2668
|
-
var
|
|
2665
|
+
f.forEach((E) => {
|
|
2666
|
+
var w, S;
|
|
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
|
-
const
|
|
2672
|
-
if ((
|
|
2673
|
-
this.i18nFormat.addLookupKeys(
|
|
2671
|
+
const b = [u];
|
|
2672
|
+
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
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 && (
|
|
2679
|
-
const
|
|
2680
|
-
|
|
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;
|
|
2684
|
-
for (; y =
|
|
2685
|
-
this.isValidLookup(n) || (a = y, n = this.getResource(O,
|
|
2684
|
+
for (; y = b.pop(); )
|
|
2685
|
+
this.isValidLookup(n) || (a = y, n = this.getResource(O, E, y, t));
|
|
2686
2686
|
}));
|
|
2687
2687
|
});
|
|
2688
2688
|
}), {
|
|
@@ -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);
|
|
@@ -2875,11 +2875,11 @@ class Mn {
|
|
|
2875
2875
|
nestingPrefixEscaped: m,
|
|
2876
2876
|
nestingSuffix: p,
|
|
2877
2877
|
nestingSuffixEscaped: v,
|
|
2878
|
-
nestingOptionsSeparator:
|
|
2879
|
-
maxReplaces:
|
|
2880
|
-
alwaysFormat:
|
|
2878
|
+
nestingOptionsSeparator: E,
|
|
2879
|
+
maxReplaces: w,
|
|
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,18 +2893,18 @@ 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
|
|
2897
|
-
return this.alwaysFormat ? this.format(
|
|
2896
|
+
const S = gr(t, c, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2897
|
+
return this.alwaysFormat ? this.format(S, void 0, n, {
|
|
2898
2898
|
...s,
|
|
2899
2899
|
...t,
|
|
2900
2900
|
interpolationkey: p
|
|
2901
|
-
}) :
|
|
2901
|
+
}) : S;
|
|
2902
2902
|
}
|
|
2903
|
-
const v = p.split(this.formatSeparator),
|
|
2904
|
-
return this.format(
|
|
2903
|
+
const v = p.split(this.formatSeparator), E = v.shift().trim(), w = v.join(this.formatSeparator).trim();
|
|
2904
|
+
return this.format(gr(t, c, E, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
|
|
2905
2905
|
...s,
|
|
2906
2906
|
...t,
|
|
2907
|
-
interpolationkey:
|
|
2907
|
+
interpolationkey: E
|
|
2908
2908
|
});
|
|
2909
2909
|
};
|
|
2910
2910
|
this.resetRegExp();
|
|
@@ -2920,8 +2920,8 @@ class Mn {
|
|
|
2920
2920
|
const v = a[1].trim();
|
|
2921
2921
|
if (i = l(v), i === void 0)
|
|
2922
2922
|
if (typeof u == "function") {
|
|
2923
|
-
const
|
|
2924
|
-
i = K(
|
|
2923
|
+
const w = u(e, a, s);
|
|
2924
|
+
i = K(w) ? w : "";
|
|
2925
2925
|
} else if (s && Object.prototype.hasOwnProperty.call(s, v))
|
|
2926
2926
|
i = "";
|
|
2927
2927
|
else if (f) {
|
|
@@ -2929,9 +2929,9 @@ 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 =
|
|
2933
|
-
const
|
|
2934
|
-
if (e = e.replace(a[0],
|
|
2932
|
+
else !K(i) && !this.useRawValueToEscape && (i = ir(i));
|
|
2933
|
+
const E = p.safeValue(i);
|
|
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;
|
|
2936
2936
|
}
|
|
2937
2937
|
}), e;
|
|
@@ -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) => {
|
|
@@ -3210,7 +3210,7 @@ class Wn extends gt {
|
|
|
3210
3210
|
if (p.length < 6)
|
|
3211
3211
|
try {
|
|
3212
3212
|
let v;
|
|
3213
|
-
p.length === 5 ? v = p(e, t, n, s, m) : v = p(e, t, n, s), v && typeof v.then == "function" ? v.then((
|
|
3213
|
+
p.length === 5 ? v = p(e, t, n, s, m) : v = p(e, t, n, s), v && typeof v.then == "function" ? v.then((E) => o(null, E)).catch(o) : o(null, v);
|
|
3214
3214
|
} catch (v) {
|
|
3215
3215
|
o(v);
|
|
3216
3216
|
}
|
|
@@ -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,33 +3665,33 @@ const kr = ({
|
|
|
3665
3665
|
_multiActiveIndex: f,
|
|
3666
3666
|
...d
|
|
3667
3667
|
}) => {
|
|
3668
|
-
const m = ce(null), [p, v] = q(r), [
|
|
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(() => {
|
|
3672
3672
|
var h;
|
|
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
|
-
|
|
3680
|
-
}) : V(), v(h),
|
|
3679
|
+
D(x), _(x.length > 0 ? 0 : -1), b(!0);
|
|
3680
|
+
}) : V(), v(h), w(e), c || l == null || l(h, e);
|
|
3681
3681
|
}, z = (h) => {
|
|
3682
|
-
c ? (v(""),
|
|
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,18 +3700,18 @@ 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,
|
|
3707
|
-
optionalDisplayValue:
|
|
3707
|
+
optionalDisplayValue: E,
|
|
3708
3708
|
displayMode: n,
|
|
3709
3709
|
isEditable: i,
|
|
3710
3710
|
shapeIcon: "magnify",
|
|
3711
|
-
placeholder:
|
|
3712
|
-
|
|
3711
|
+
placeholder: S(
|
|
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"
|
|
@@ -3760,10 +3760,11 @@ const kr = ({
|
|
|
3760
3760
|
loading: d = !1,
|
|
3761
3761
|
justify: m = "center",
|
|
3762
3762
|
title: p,
|
|
3763
|
-
optionalDisplayValue: v
|
|
3763
|
+
optionalDisplayValue: v,
|
|
3764
|
+
squared: E = !1
|
|
3764
3765
|
}) => {
|
|
3765
3766
|
const w = {
|
|
3766
|
-
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${m}`
|
|
3767
|
+
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${m} ${E && !u ? "smp-button-squared" : ""}`
|
|
3767
3768
|
};
|
|
3768
3769
|
return /* @__PURE__ */ g.jsx(
|
|
3769
3770
|
"button",
|
|
@@ -3775,22 +3776,22 @@ const kr = ({
|
|
|
3775
3776
|
disabled: a,
|
|
3776
3777
|
"aria-busy": d,
|
|
3777
3778
|
title: p || r || v,
|
|
3778
|
-
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: [
|
|
3779
3780
|
s && l && /* @__PURE__ */ g.jsx(
|
|
3780
3781
|
fe,
|
|
3781
3782
|
{
|
|
3782
3783
|
icon: s,
|
|
3783
3784
|
disabled: a,
|
|
3784
|
-
state:
|
|
3785
|
-
width:
|
|
3786
|
-
height:
|
|
3785
|
+
state: wr(o),
|
|
3786
|
+
width: Sr(i),
|
|
3787
|
+
height: Sr(i)
|
|
3787
3788
|
}
|
|
3788
3789
|
),
|
|
3789
3790
|
u && /* @__PURE__ */ g.jsx("span", { children: v || e })
|
|
3790
3791
|
] })
|
|
3791
3792
|
}
|
|
3792
3793
|
);
|
|
3793
|
-
},
|
|
3794
|
+
}, us = ({
|
|
3794
3795
|
options: r,
|
|
3795
3796
|
fun: e,
|
|
3796
3797
|
direction: t = "row",
|
|
@@ -3803,26 +3804,27 @@ const kr = ({
|
|
|
3803
3804
|
fullWidth: l,
|
|
3804
3805
|
disabled: u,
|
|
3805
3806
|
justify: f,
|
|
3806
|
-
|
|
3807
|
-
|
|
3807
|
+
squared: d,
|
|
3808
|
+
onClick: m,
|
|
3809
|
+
onOptionsRequest: p
|
|
3808
3810
|
}) => {
|
|
3809
|
-
const [
|
|
3811
|
+
const [v, E] = q(r);
|
|
3810
3812
|
ne(() => {
|
|
3811
|
-
!
|
|
3813
|
+
!v && p && e && p(e, void 0).then((O) => E(O)).catch((O) => {
|
|
3812
3814
|
console.error(
|
|
3813
3815
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
3814
|
-
|
|
3816
|
+
O
|
|
3815
3817
|
);
|
|
3816
3818
|
});
|
|
3817
|
-
}, [
|
|
3819
|
+
}, [v, e, p]);
|
|
3818
3820
|
const w = {
|
|
3819
3821
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
3820
|
-
},
|
|
3821
|
-
const
|
|
3822
|
-
bindValue:
|
|
3823
|
-
optionalDisplayValue:
|
|
3824
|
-
fun:
|
|
3825
|
-
icon:
|
|
3822
|
+
}, S = v == null ? void 0 : v.map((O, b) => {
|
|
3823
|
+
const y = {
|
|
3824
|
+
bindValue: O.id,
|
|
3825
|
+
optionalDisplayValue: O.label,
|
|
3826
|
+
fun: O.fun,
|
|
3827
|
+
icon: O.icon,
|
|
3826
3828
|
variant: a,
|
|
3827
3829
|
appearance: i,
|
|
3828
3830
|
showText: o,
|
|
@@ -3831,16 +3833,17 @@ const kr = ({
|
|
|
3831
3833
|
disabled: u,
|
|
3832
3834
|
sizing: s,
|
|
3833
3835
|
justify: f,
|
|
3836
|
+
squared: d,
|
|
3834
3837
|
onClick: () => {
|
|
3835
|
-
|
|
3838
|
+
m == null || m(O.id, O.fun);
|
|
3836
3839
|
}
|
|
3837
3840
|
};
|
|
3838
|
-
return /* @__PURE__ */ g.jsx(Be, { ...
|
|
3841
|
+
return /* @__PURE__ */ g.jsx(Be, { ...y }, `button-${b}`);
|
|
3839
3842
|
});
|
|
3840
|
-
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: w.container, children:
|
|
3841
|
-
},
|
|
3843
|
+
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: w.container, children: S });
|
|
3844
|
+
}, fs = {
|
|
3842
3845
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
3843
|
-
},
|
|
3846
|
+
}, ds = ({
|
|
3844
3847
|
bindValue: r,
|
|
3845
3848
|
_dataComponent: e = "checkbox",
|
|
3846
3849
|
disabled: t,
|
|
@@ -3853,10 +3856,10 @@ const kr = ({
|
|
|
3853
3856
|
const c = Ge(), l = (f) => {
|
|
3854
3857
|
s && a && a(f.target.checked);
|
|
3855
3858
|
}, u = {
|
|
3856
|
-
wrapper: `${
|
|
3859
|
+
wrapper: `${fs["smp-checkbox-wrapper"]}`
|
|
3857
3860
|
};
|
|
3858
3861
|
return /* @__PURE__ */ g.jsxs("div", { className: u.wrapper, "data-component": e, children: [
|
|
3859
|
-
n && /* @__PURE__ */ g.jsx(
|
|
3862
|
+
n && /* @__PURE__ */ g.jsx(De, { label: n, disabled: t, htmlFor: c }),
|
|
3860
3863
|
/* @__PURE__ */ g.jsx(
|
|
3861
3864
|
"input",
|
|
3862
3865
|
{
|
|
@@ -3870,18 +3873,18 @@ const kr = ({
|
|
|
3870
3873
|
}
|
|
3871
3874
|
)
|
|
3872
3875
|
] });
|
|
3873
|
-
},
|
|
3876
|
+
}, ps = {
|
|
3874
3877
|
titleLarge: "h2",
|
|
3875
3878
|
title: "h3",
|
|
3876
3879
|
body: "h6",
|
|
3877
3880
|
label: "label"
|
|
3878
|
-
},
|
|
3881
|
+
}, ke = ({
|
|
3879
3882
|
variant: r = "body",
|
|
3880
3883
|
bindValue: e,
|
|
3881
3884
|
color: t,
|
|
3882
3885
|
...n
|
|
3883
3886
|
}) => {
|
|
3884
|
-
const s =
|
|
3887
|
+
const s = ps[r], a = {
|
|
3885
3888
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
3886
3889
|
};
|
|
3887
3890
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -3895,7 +3898,7 @@ const kr = ({
|
|
|
3895
3898
|
children: e
|
|
3896
3899
|
}
|
|
3897
3900
|
);
|
|
3898
|
-
},
|
|
3901
|
+
}, Nt = ({
|
|
3899
3902
|
elements: r,
|
|
3900
3903
|
isEditable: e = !1,
|
|
3901
3904
|
displayMode: t = "Both",
|
|
@@ -3921,21 +3924,21 @@ const kr = ({
|
|
|
3921
3924
|
m.bindValue,
|
|
3922
3925
|
m.optionalDisplayValue,
|
|
3923
3926
|
t
|
|
3924
|
-
),
|
|
3927
|
+
), E = /* @__PURE__ */ g.jsxs(
|
|
3925
3928
|
"div",
|
|
3926
3929
|
{
|
|
3927
3930
|
className: l.element,
|
|
3928
3931
|
role: "listitem",
|
|
3929
3932
|
draggable: i,
|
|
3930
3933
|
onDragStart: () => f(p),
|
|
3931
|
-
onDragOver: (
|
|
3934
|
+
onDragOver: (S) => i && S.preventDefault(),
|
|
3932
3935
|
onDrop: () => i && d(p),
|
|
3933
3936
|
style: {
|
|
3934
3937
|
"--smp-chips-backgroundColor-base": a
|
|
3935
3938
|
},
|
|
3936
3939
|
children: [
|
|
3937
3940
|
i && /* @__PURE__ */ g.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
3938
|
-
/* @__PURE__ */ g.jsx(
|
|
3941
|
+
/* @__PURE__ */ g.jsx(ke, { variant: "label", bindValue: v, color: s }),
|
|
3939
3942
|
e && /* @__PURE__ */ g.jsx(
|
|
3940
3943
|
fe,
|
|
3941
3944
|
{
|
|
@@ -3948,7 +3951,7 @@ const kr = ({
|
|
|
3948
3951
|
]
|
|
3949
3952
|
},
|
|
3950
3953
|
`chip-${p}`
|
|
3951
|
-
),
|
|
3954
|
+
), w = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
3952
3955
|
fe,
|
|
3953
3956
|
{
|
|
3954
3957
|
icon: "chevron-right",
|
|
@@ -3956,7 +3959,7 @@ const kr = ({
|
|
|
3956
3959
|
},
|
|
3957
3960
|
`separator-${p}`
|
|
3958
3961
|
) : null;
|
|
3959
|
-
return [
|
|
3962
|
+
return [E, w].filter(Boolean);
|
|
3960
3963
|
}) });
|
|
3961
3964
|
};
|
|
3962
3965
|
function kt(r, e) {
|
|
@@ -3998,7 +4001,7 @@ function kt(r, e) {
|
|
|
3998
4001
|
};
|
|
3999
4002
|
}, [r, e]);
|
|
4000
4003
|
}
|
|
4001
|
-
const
|
|
4004
|
+
const hs = ({
|
|
4002
4005
|
bindValue: r,
|
|
4003
4006
|
onChange: e,
|
|
4004
4007
|
options: t = [],
|
|
@@ -4011,25 +4014,25 @@ const ps = ({
|
|
|
4011
4014
|
multiActiveIndex: l,
|
|
4012
4015
|
...u
|
|
4013
4016
|
}) => {
|
|
4014
|
-
const f = ce(null), [d, m] = q(!1), [p, v] = q(t), [
|
|
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({
|
|
4015
4018
|
position: "bottom",
|
|
4016
4019
|
enabled: d
|
|
4017
4020
|
}), _ = le(() => {
|
|
4018
4021
|
var A;
|
|
4019
4022
|
m(!1), (A = f == null ? void 0 : f.current) == null || A.focus();
|
|
4020
4023
|
}, []);
|
|
4021
|
-
Ye(
|
|
4024
|
+
Ye(D, d, () => _()), kt(d, D);
|
|
4022
4025
|
const T = (A) => {
|
|
4023
4026
|
e == null || e(A.id, A.label);
|
|
4024
4027
|
const V = p.findIndex((I) => I.id === A.id);
|
|
4025
|
-
|
|
4026
|
-
},
|
|
4027
|
-
A.key === "Escape" && (_(),
|
|
4028
|
-
},
|
|
4028
|
+
w(V), O([A.id]), _();
|
|
4029
|
+
}, R = (A) => {
|
|
4030
|
+
A.key === "Escape" && (_(), w(-1));
|
|
4031
|
+
}, k = (A) => {
|
|
4029
4032
|
(A.key === "ArrowDown" || A.key === "ArrowUp") && (A.preventDefault(), P());
|
|
4030
4033
|
}, P = () => {
|
|
4031
4034
|
o && c && c(o, void 0).then((A) => {
|
|
4032
|
-
v(A),
|
|
4035
|
+
v(A), w(A.length > 0 ? 0 : -1), m(!0);
|
|
4033
4036
|
});
|
|
4034
4037
|
};
|
|
4035
4038
|
return /* @__PURE__ */ g.jsxs(
|
|
@@ -4037,19 +4040,19 @@ const ps = ({
|
|
|
4037
4040
|
{
|
|
4038
4041
|
role: "combobox",
|
|
4039
4042
|
"aria-expanded": d,
|
|
4040
|
-
"aria-controls":
|
|
4041
|
-
"aria-owns":
|
|
4043
|
+
"aria-controls": b,
|
|
4044
|
+
"aria-owns": b,
|
|
4042
4045
|
"data-component": "combobox",
|
|
4043
4046
|
children: [
|
|
4044
4047
|
/* @__PURE__ */ g.jsx(
|
|
4045
|
-
|
|
4048
|
+
Lt,
|
|
4046
4049
|
{
|
|
4047
4050
|
...u,
|
|
4048
4051
|
bindValue: r,
|
|
4049
4052
|
optionalDisplayValue: n,
|
|
4050
4053
|
displayMode: a,
|
|
4051
4054
|
onShapeIconClick: P,
|
|
4052
|
-
onKeyDown:
|
|
4055
|
+
onKeyDown: k,
|
|
4053
4056
|
shapeIcon: "arrow_drop_down",
|
|
4054
4057
|
rotatedShapeIcon: d,
|
|
4055
4058
|
isEditable: s,
|
|
@@ -4060,27 +4063,27 @@ const ps = ({
|
|
|
4060
4063
|
}
|
|
4061
4064
|
),
|
|
4062
4065
|
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4063
|
-
|
|
4066
|
+
Ar,
|
|
4064
4067
|
{
|
|
4065
|
-
id:
|
|
4068
|
+
id: b,
|
|
4066
4069
|
options: p,
|
|
4067
4070
|
displayMode: i,
|
|
4068
|
-
ref:
|
|
4071
|
+
ref: D,
|
|
4069
4072
|
isOpen: d,
|
|
4070
|
-
selectedIndex:
|
|
4071
|
-
activeIndex: l ||
|
|
4072
|
-
width:
|
|
4073
|
+
selectedIndex: E,
|
|
4074
|
+
activeIndex: l || S,
|
|
4075
|
+
width: N,
|
|
4073
4076
|
onClick: T,
|
|
4074
|
-
onKeyDown:
|
|
4077
|
+
onKeyDown: R
|
|
4075
4078
|
}
|
|
4076
4079
|
) })
|
|
4077
4080
|
]
|
|
4078
4081
|
}
|
|
4079
4082
|
);
|
|
4080
|
-
},
|
|
4083
|
+
}, ms = {
|
|
4081
4084
|
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
|
|
4082
4085
|
};
|
|
4083
|
-
function
|
|
4086
|
+
function gs({
|
|
4084
4087
|
selectedDate: r,
|
|
4085
4088
|
onDateChange: e,
|
|
4086
4089
|
disabledDateRanges: t = [],
|
|
@@ -4099,7 +4102,7 @@ function ms({
|
|
|
4099
4102
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4100
4103
|
), [p, v] = q(
|
|
4101
4104
|
c ? c.getDate() : null
|
|
4102
|
-
),
|
|
4105
|
+
), E = ce(null), w = ce([]), S = [
|
|
4103
4106
|
a(pe.JANUARY),
|
|
4104
4107
|
a(pe.FEBRUARY),
|
|
4105
4108
|
a(pe.MARCH),
|
|
@@ -4141,22 +4144,22 @@ function ms({
|
|
|
4141
4144
|
value: a(ue.SATURDAY_SHORT),
|
|
4142
4145
|
full: a(ue.SATURDAY)
|
|
4143
4146
|
}
|
|
4144
|
-
],
|
|
4147
|
+
], b = (F) => t.some((h) => {
|
|
4145
4148
|
const x = h.start.getTime(), j = h.end.getTime(), C = F.getTime();
|
|
4146
4149
|
return C >= x && C <= j;
|
|
4147
4150
|
}), y = (F) => {
|
|
4148
|
-
|
|
4149
|
-
},
|
|
4151
|
+
b(F) || (l(F), v(F.getDate()), e && e(tn(F)));
|
|
4152
|
+
}, D = () => {
|
|
4150
4153
|
u === 0 ? (f(11), m(d - 1)) : f(u - 1), v(1);
|
|
4151
|
-
},
|
|
4154
|
+
}, N = () => {
|
|
4152
4155
|
u === 11 ? (f(0), m(d + 1)) : f(u + 1), v(1);
|
|
4153
|
-
}, _ = (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) => {
|
|
4154
4157
|
var x;
|
|
4155
4158
|
const h = V.findIndex(
|
|
4156
4159
|
(j) => j !== null && j.getDate() === F
|
|
4157
4160
|
);
|
|
4158
|
-
h !== -1 &&
|
|
4159
|
-
},
|
|
4161
|
+
h !== -1 && w.current[h] && ((x = w.current[h]) == null || x.focus(), v(F));
|
|
4162
|
+
}, k = (F, h) => {
|
|
4160
4163
|
const x = V[h];
|
|
4161
4164
|
if (!x) return;
|
|
4162
4165
|
const j = _(d, u), C = x.getDate();
|
|
@@ -4167,12 +4170,12 @@ function ms({
|
|
|
4167
4170
|
let $ = C + 1, L = new Date(d, u, $);
|
|
4168
4171
|
if ($ > j) {
|
|
4169
4172
|
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4170
|
-
$ = 1, L = new Date(U, B, $),
|
|
4173
|
+
$ = 1, L = new Date(U, B, $), N(), setTimeout(() => {
|
|
4171
4174
|
P(1, "forward");
|
|
4172
4175
|
}, 0);
|
|
4173
4176
|
return;
|
|
4174
4177
|
}
|
|
4175
|
-
|
|
4178
|
+
b(L) ? P($, "forward") : R($);
|
|
4176
4179
|
}
|
|
4177
4180
|
break;
|
|
4178
4181
|
case "Tab":
|
|
@@ -4183,12 +4186,12 @@ function ms({
|
|
|
4183
4186
|
let $ = C - 1, L = new Date(d, u, $);
|
|
4184
4187
|
if ($ < 1) {
|
|
4185
4188
|
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1, Y = _(U, B);
|
|
4186
|
-
$ = Y, L = new Date(U, B, $),
|
|
4189
|
+
$ = Y, L = new Date(U, B, $), D(), setTimeout(() => {
|
|
4187
4190
|
P(Y, "backward");
|
|
4188
4191
|
}, 0);
|
|
4189
4192
|
return;
|
|
4190
4193
|
}
|
|
4191
|
-
|
|
4194
|
+
b(L) ? P($, "backward") : R($);
|
|
4192
4195
|
}
|
|
4193
4196
|
break;
|
|
4194
4197
|
case "ArrowUp":
|
|
@@ -4197,12 +4200,12 @@ function ms({
|
|
|
4197
4200
|
let $ = C - 7, L = new Date(d, u, $);
|
|
4198
4201
|
if ($ < 1) {
|
|
4199
4202
|
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1;
|
|
4200
|
-
$ = _(U, B) + $, L = new Date(U, B, $),
|
|
4203
|
+
$ = _(U, B) + $, L = new Date(U, B, $), D(), setTimeout(() => {
|
|
4201
4204
|
P($, "backward");
|
|
4202
4205
|
}, 0);
|
|
4203
4206
|
return;
|
|
4204
4207
|
}
|
|
4205
|
-
|
|
4208
|
+
b(L) ? P($, "backward") : R($);
|
|
4206
4209
|
}
|
|
4207
4210
|
break;
|
|
4208
4211
|
case "ArrowDown":
|
|
@@ -4211,12 +4214,12 @@ function ms({
|
|
|
4211
4214
|
let $ = C + 7, L = new Date(d, u, $);
|
|
4212
4215
|
if ($ > j) {
|
|
4213
4216
|
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4214
|
-
$ = $ - j, L = new Date(U, B, $),
|
|
4217
|
+
$ = $ - j, L = new Date(U, B, $), N(), setTimeout(() => {
|
|
4215
4218
|
P($, "forward");
|
|
4216
4219
|
}, 0);
|
|
4217
4220
|
return;
|
|
4218
4221
|
}
|
|
4219
|
-
|
|
4222
|
+
b(L) ? P($, "forward") : R($);
|
|
4220
4223
|
}
|
|
4221
4224
|
break;
|
|
4222
4225
|
case "Home":
|
|
@@ -4226,7 +4229,7 @@ function ms({
|
|
|
4226
4229
|
F.preventDefault(), P(j, "backward");
|
|
4227
4230
|
break;
|
|
4228
4231
|
case "PageUp":
|
|
4229
|
-
F.preventDefault(),
|
|
4232
|
+
F.preventDefault(), D(), setTimeout(() => {
|
|
4230
4233
|
const $ = _(
|
|
4231
4234
|
u === 0 ? d - 1 : d,
|
|
4232
4235
|
u === 0 ? 11 : u - 1
|
|
@@ -4235,7 +4238,7 @@ function ms({
|
|
|
4235
4238
|
}, 0);
|
|
4236
4239
|
break;
|
|
4237
4240
|
case "PageDown":
|
|
4238
|
-
F.preventDefault(),
|
|
4241
|
+
F.preventDefault(), N(), setTimeout(() => {
|
|
4239
4242
|
const $ = _(
|
|
4240
4243
|
u === 11 ? d + 1 : d,
|
|
4241
4244
|
u === 11 ? 0 : u + 1
|
|
@@ -4245,7 +4248,7 @@ function ms({
|
|
|
4245
4248
|
break;
|
|
4246
4249
|
case " ":
|
|
4247
4250
|
case "Space":
|
|
4248
|
-
if (
|
|
4251
|
+
if (b(x)) return;
|
|
4249
4252
|
v(x.getDate()), l(x);
|
|
4250
4253
|
break;
|
|
4251
4254
|
case "Enter":
|
|
@@ -4257,24 +4260,24 @@ function ms({
|
|
|
4257
4260
|
if (h === "forward") {
|
|
4258
4261
|
for (let j = F; j <= x; j++) {
|
|
4259
4262
|
const C = new Date(d, u, j);
|
|
4260
|
-
if (!
|
|
4261
|
-
|
|
4263
|
+
if (!b(C)) {
|
|
4264
|
+
R(j);
|
|
4262
4265
|
return;
|
|
4263
4266
|
}
|
|
4264
4267
|
}
|
|
4265
|
-
|
|
4268
|
+
N(), setTimeout(() => {
|
|
4266
4269
|
P(1, "forward");
|
|
4267
4270
|
}, 0);
|
|
4268
4271
|
} else {
|
|
4269
4272
|
for (let L = F; L >= 1; L--) {
|
|
4270
4273
|
const U = new Date(d, u, L);
|
|
4271
|
-
if (!
|
|
4272
|
-
|
|
4274
|
+
if (!b(U)) {
|
|
4275
|
+
R(L);
|
|
4273
4276
|
return;
|
|
4274
4277
|
}
|
|
4275
4278
|
}
|
|
4276
4279
|
const j = u === 0 ? d - 1 : d, C = u === 0 ? 11 : u - 1, $ = _(j, C);
|
|
4277
|
-
|
|
4280
|
+
D(), setTimeout(() => {
|
|
4278
4281
|
P($, "backward");
|
|
4279
4282
|
}, 0);
|
|
4280
4283
|
}
|
|
@@ -4301,12 +4304,12 @@ function ms({
|
|
|
4301
4304
|
const h = V.findIndex(
|
|
4302
4305
|
(x) => x !== null && x.getDate() === p
|
|
4303
4306
|
);
|
|
4304
|
-
h !== -1 &&
|
|
4307
|
+
h !== -1 && w.current[h] && ((F = w.current[h]) == null || F.focus());
|
|
4305
4308
|
}
|
|
4306
4309
|
}, [u, d, p, V]);
|
|
4307
4310
|
const z = {
|
|
4308
4311
|
label: "smp-datepickercalendar-label",
|
|
4309
|
-
wrapper: `smp-datepickercalendar ${
|
|
4312
|
+
wrapper: `smp-datepickercalendar ${ms["smp-datepickercalendar-position"]}`,
|
|
4310
4313
|
calendar: "smp-datepickercalendar",
|
|
4311
4314
|
table: "smp-datepickercalendar-table",
|
|
4312
4315
|
th: "smp-datepickercalendar-th",
|
|
@@ -4315,7 +4318,7 @@ function ms({
|
|
|
4315
4318
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4316
4319
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4317
4320
|
${j ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4318
|
-
}, X = () => `${
|
|
4321
|
+
}, X = () => `${S[u]} ${d.toString()}`;
|
|
4319
4322
|
return /* @__PURE__ */ g.jsxs(
|
|
4320
4323
|
"div",
|
|
4321
4324
|
{
|
|
@@ -4339,7 +4342,7 @@ function ms({
|
|
|
4339
4342
|
/* @__PURE__ */ g.jsx(
|
|
4340
4343
|
Be,
|
|
4341
4344
|
{
|
|
4342
|
-
onClick:
|
|
4345
|
+
onClick: D,
|
|
4343
4346
|
ariaLabel: a($t.PREVIOUS_MONTH),
|
|
4344
4347
|
optionalDisplayValue: "<",
|
|
4345
4348
|
appearance: "ghost",
|
|
@@ -4358,7 +4361,7 @@ function ms({
|
|
|
4358
4361
|
/* @__PURE__ */ g.jsx(
|
|
4359
4362
|
Be,
|
|
4360
4363
|
{
|
|
4361
|
-
onClick:
|
|
4364
|
+
onClick: N,
|
|
4362
4365
|
ariaLabel: a($t.NEXT_MONTH),
|
|
4363
4366
|
bindValue: ">",
|
|
4364
4367
|
optionalDisplayValue: ">",
|
|
@@ -4372,9 +4375,9 @@ function ms({
|
|
|
4372
4375
|
/* @__PURE__ */ g.jsxs(
|
|
4373
4376
|
"table",
|
|
4374
4377
|
{
|
|
4375
|
-
ref:
|
|
4378
|
+
ref: E,
|
|
4376
4379
|
role: "grid",
|
|
4377
|
-
"aria-label": `${a(
|
|
4380
|
+
"aria-label": `${a(Ne.CALENDAR_FOR)} ${S[u]} ${d}`,
|
|
4378
4381
|
className: z.table,
|
|
4379
4382
|
children: [
|
|
4380
4383
|
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: O.map((F) => /* @__PURE__ */ g.jsx(
|
|
@@ -4402,7 +4405,7 @@ function ms({
|
|
|
4402
4405
|
},
|
|
4403
4406
|
`empty-${j}`
|
|
4404
4407
|
);
|
|
4405
|
-
const $ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = c && x.getDate() === c.getDate() && x.getMonth() === c.getMonth() && x.getFullYear() === c.getFullYear(), U = p === x.getDate(), B =
|
|
4408
|
+
const $ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = c && x.getDate() === c.getDate() && x.getMonth() === c.getMonth() && x.getFullYear() === c.getFullYear(), U = p === x.getDate(), B = b(x);
|
|
4406
4409
|
return /* @__PURE__ */ g.jsx(
|
|
4407
4410
|
"td",
|
|
4408
4411
|
{
|
|
@@ -4410,12 +4413,12 @@ function ms({
|
|
|
4410
4413
|
"aria-selected": L,
|
|
4411
4414
|
tabIndex: U ? 0 : -1,
|
|
4412
4415
|
onClick: () => y(x),
|
|
4413
|
-
onKeyDown: (Y) =>
|
|
4414
|
-
"aria-label": `${x.getDate()} ${
|
|
4416
|
+
onKeyDown: (Y) => k(Y, C),
|
|
4417
|
+
"aria-label": `${x.getDate()} ${S[x.getMonth()]} ${x.getFullYear()}`,
|
|
4415
4418
|
"data-selected": L,
|
|
4416
4419
|
"aria-disabled": B,
|
|
4417
4420
|
ref: (Y) => {
|
|
4418
|
-
|
|
4421
|
+
w.current[C] = Y;
|
|
4419
4422
|
},
|
|
4420
4423
|
className: z.td(
|
|
4421
4424
|
$,
|
|
@@ -4435,7 +4438,7 @@ function ms({
|
|
|
4435
4438
|
}
|
|
4436
4439
|
);
|
|
4437
4440
|
}
|
|
4438
|
-
const
|
|
4441
|
+
const ys = ({
|
|
4439
4442
|
bindValue: r,
|
|
4440
4443
|
placeholder: e,
|
|
4441
4444
|
onChange: t,
|
|
@@ -4458,49 +4461,49 @@ const gs = ({
|
|
|
4458
4461
|
typeof m == "object" && m !== null && "current" in m
|
|
4459
4462
|
) {
|
|
4460
4463
|
const T = m.current.querySelector("input");
|
|
4461
|
-
T && T === document.activeElement &&
|
|
4464
|
+
T && T === document.activeElement && b();
|
|
4462
4465
|
}
|
|
4463
4466
|
v();
|
|
4464
4467
|
}), kt(o, p);
|
|
4465
|
-
const { format:
|
|
4468
|
+
const { format: E, getCurrentLanguage: w } = je(), S = le(
|
|
4466
4469
|
(T) => {
|
|
4467
|
-
const
|
|
4470
|
+
const R = T.length > 5 && Zr(T, w()) || T, k = E(R, void 0, void 0, {
|
|
4468
4471
|
type: "date"
|
|
4469
|
-
}), P = typeof
|
|
4472
|
+
}), P = typeof R != "string", A = P && R.toISOString().substring(0, 10) || "";
|
|
4470
4473
|
return {
|
|
4471
4474
|
isValid: P,
|
|
4472
|
-
formattedDate:
|
|
4475
|
+
formattedDate: k,
|
|
4473
4476
|
isoDate: A,
|
|
4474
|
-
normalizedDate:
|
|
4477
|
+
normalizedDate: R
|
|
4475
4478
|
};
|
|
4476
4479
|
},
|
|
4477
|
-
[
|
|
4480
|
+
[w, E]
|
|
4478
4481
|
);
|
|
4479
4482
|
ne(() => {
|
|
4480
|
-
const { formattedDate: T, isoDate:
|
|
4481
|
-
u(
|
|
4482
|
-
}, [r,
|
|
4483
|
-
const O = () => c((T) => !T),
|
|
4484
|
-
|
|
4483
|
+
const { formattedDate: T, isoDate: R, isValid: k } = S(r);
|
|
4484
|
+
u(k && R || r), d(k && T || r);
|
|
4485
|
+
}, [r, E, S]);
|
|
4486
|
+
const O = () => c((T) => !T), b = () => {
|
|
4487
|
+
D(f);
|
|
4485
4488
|
}, y = (T) => {
|
|
4486
|
-
|
|
4487
|
-
},
|
|
4488
|
-
const { isoDate:
|
|
4489
|
-
t && t(
|
|
4490
|
-
},
|
|
4489
|
+
D(T), v();
|
|
4490
|
+
}, D = (T) => {
|
|
4491
|
+
const { isoDate: R, isValid: k } = S(T);
|
|
4492
|
+
t && t(k && R || T);
|
|
4493
|
+
}, N = (T) => {
|
|
4491
4494
|
d(T);
|
|
4492
4495
|
}, _ = (T) => {
|
|
4493
|
-
T.key === "Enter" && (T.preventDefault(),
|
|
4496
|
+
T.key === "Enter" && (T.preventDefault(), D(f));
|
|
4494
4497
|
};
|
|
4495
4498
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4496
4499
|
/* @__PURE__ */ g.jsx(
|
|
4497
|
-
|
|
4500
|
+
Re,
|
|
4498
4501
|
{
|
|
4499
4502
|
...a,
|
|
4500
4503
|
bindValue: f,
|
|
4501
4504
|
placeholder: e,
|
|
4502
|
-
onBlur:
|
|
4503
|
-
onChange:
|
|
4505
|
+
onBlur: b,
|
|
4506
|
+
onChange: N,
|
|
4504
4507
|
onKeyDown: _,
|
|
4505
4508
|
shapeIcon: "calendar",
|
|
4506
4509
|
onShapeIconClick: O,
|
|
@@ -4512,16 +4515,16 @@ const gs = ({
|
|
|
4512
4515
|
}
|
|
4513
4516
|
),
|
|
4514
4517
|
o && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4515
|
-
|
|
4518
|
+
gs,
|
|
4516
4519
|
{
|
|
4517
4520
|
disabledDateRanges: n,
|
|
4518
4521
|
onDateChange: y,
|
|
4519
|
-
initialValue:
|
|
4522
|
+
initialValue: Pt(l) && l || "",
|
|
4520
4523
|
targetRef: p
|
|
4521
4524
|
}
|
|
4522
4525
|
) })
|
|
4523
4526
|
] });
|
|
4524
|
-
},
|
|
4527
|
+
}, vs = ({
|
|
4525
4528
|
elements: r,
|
|
4526
4529
|
displayMode: e,
|
|
4527
4530
|
minimumChars: t,
|
|
@@ -4536,20 +4539,20 @@ const gs = ({
|
|
|
4536
4539
|
onChange: f,
|
|
4537
4540
|
onBlur: d
|
|
4538
4541
|
}) => {
|
|
4539
|
-
const m = r.map((
|
|
4540
|
-
const
|
|
4541
|
-
if (
|
|
4542
|
-
|
|
4542
|
+
const m = r.map((E) => E.bindValue), p = (E, w) => {
|
|
4543
|
+
const S = [...r];
|
|
4544
|
+
if (E == "")
|
|
4545
|
+
S.pop();
|
|
4543
4546
|
else {
|
|
4544
|
-
const O =
|
|
4545
|
-
(
|
|
4547
|
+
const O = S.findIndex(
|
|
4548
|
+
(b) => b.bindValue === E && b.optionalDisplayValue === w
|
|
4546
4549
|
);
|
|
4547
|
-
O >= 0 ?
|
|
4548
|
-
bindValue:
|
|
4549
|
-
optionalDisplayValue:
|
|
4550
|
+
O >= 0 ? S.splice(O, 1) : S.push({
|
|
4551
|
+
bindValue: E,
|
|
4552
|
+
optionalDisplayValue: w
|
|
4550
4553
|
});
|
|
4551
4554
|
}
|
|
4552
|
-
f == null || f(
|
|
4555
|
+
f == null || f(S);
|
|
4553
4556
|
}, v = {
|
|
4554
4557
|
container: "smp-multipleAutocomplete-container"
|
|
4555
4558
|
};
|
|
@@ -4559,15 +4562,15 @@ const gs = ({
|
|
|
4559
4562
|
className: v.container,
|
|
4560
4563
|
"data-component": "multiple-autocomplete",
|
|
4561
4564
|
children: [
|
|
4562
|
-
i && /* @__PURE__ */ g.jsx(
|
|
4565
|
+
i && /* @__PURE__ */ g.jsx(De, { label: i, disabled: o }),
|
|
4563
4566
|
/* @__PURE__ */ g.jsx(
|
|
4564
|
-
|
|
4567
|
+
Nt,
|
|
4565
4568
|
{
|
|
4566
4569
|
elements: r,
|
|
4567
4570
|
displayMode: e,
|
|
4568
4571
|
isEditable: s,
|
|
4569
|
-
onChange: (
|
|
4570
|
-
f == null || f(
|
|
4572
|
+
onChange: (E) => {
|
|
4573
|
+
f == null || f(E);
|
|
4571
4574
|
}
|
|
4572
4575
|
}
|
|
4573
4576
|
),
|
|
@@ -4591,10 +4594,10 @@ const gs = ({
|
|
|
4591
4594
|
]
|
|
4592
4595
|
}
|
|
4593
4596
|
);
|
|
4594
|
-
},
|
|
4597
|
+
}, xs = ({ ...r }) => {
|
|
4595
4598
|
const [e, t] = q(!1), n = e ? "visibility-off" : "visibility";
|
|
4596
4599
|
return /* @__PURE__ */ g.jsx(
|
|
4597
|
-
|
|
4600
|
+
Re,
|
|
4598
4601
|
{
|
|
4599
4602
|
...r,
|
|
4600
4603
|
inputType: e ? "text" : "password",
|
|
@@ -4604,16 +4607,16 @@ const gs = ({
|
|
|
4604
4607
|
"data-component": "password"
|
|
4605
4608
|
}
|
|
4606
4609
|
);
|
|
4607
|
-
},
|
|
4610
|
+
}, bs = ({ ...r }) => {
|
|
4608
4611
|
const [e, t] = q(r.bindValue), { translate: n } = je(), s = (a) => {
|
|
4609
4612
|
var i;
|
|
4610
4613
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4611
4614
|
};
|
|
4612
4615
|
return /* @__PURE__ */ g.jsx(
|
|
4613
|
-
|
|
4616
|
+
Re,
|
|
4614
4617
|
{
|
|
4615
4618
|
...r,
|
|
4616
|
-
placeholder: r.placeholder ? r.placeholder : n(
|
|
4619
|
+
placeholder: r.placeholder ? r.placeholder : n(Ne.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
4617
4620
|
icon: "magnify",
|
|
4618
4621
|
inputType: "search",
|
|
4619
4622
|
bindValue: e,
|
|
@@ -4623,7 +4626,7 @@ const gs = ({
|
|
|
4623
4626
|
_dataComponent: "search-bar"
|
|
4624
4627
|
}
|
|
4625
4628
|
);
|
|
4626
|
-
},
|
|
4629
|
+
}, Ss = ({
|
|
4627
4630
|
bindValue: r,
|
|
4628
4631
|
optionalDisplayValue: e,
|
|
4629
4632
|
label: t
|
|
@@ -4632,16 +4635,16 @@ const gs = ({
|
|
|
4632
4635
|
wrapper: "smp-text-wrapper"
|
|
4633
4636
|
};
|
|
4634
4637
|
return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
|
|
4635
|
-
/* @__PURE__ */ g.jsx(
|
|
4638
|
+
/* @__PURE__ */ g.jsx(De, { label: t }),
|
|
4636
4639
|
/* @__PURE__ */ g.jsx(
|
|
4637
|
-
|
|
4640
|
+
ke,
|
|
4638
4641
|
{
|
|
4639
4642
|
variant: "body",
|
|
4640
4643
|
bindValue: e || r
|
|
4641
4644
|
}
|
|
4642
4645
|
)
|
|
4643
4646
|
] }) : /* @__PURE__ */ g.jsx(
|
|
4644
|
-
|
|
4647
|
+
ke,
|
|
4645
4648
|
{
|
|
4646
4649
|
variant: "body",
|
|
4647
4650
|
bindValue: e || r
|
|
@@ -4682,13 +4685,13 @@ const Pe = (r, e, t) => ({
|
|
|
4682
4685
|
decode: t ?? r.decode,
|
|
4683
4686
|
shape: r.shape,
|
|
4684
4687
|
fun: r.fun
|
|
4685
|
-
}),
|
|
4688
|
+
}), Er = (r) => {
|
|
4686
4689
|
const e = Oe.fromDataObj(r.obj), t = r.decode ? Oe.fromString(r.decode).getValue() : [];
|
|
4687
4690
|
return e.getValue().map((n, s) => ({
|
|
4688
4691
|
bindValue: n,
|
|
4689
4692
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4690
4693
|
}));
|
|
4691
|
-
},
|
|
4694
|
+
}, ws = (r, e) => {
|
|
4692
4695
|
const t = new Oe(
|
|
4693
4696
|
r.obj,
|
|
4694
4697
|
e.map((s) => s.bindValue)
|
|
@@ -4697,7 +4700,7 @@ const Pe = (r, e, t) => ({
|
|
|
4697
4700
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4698
4701
|
).getLegacyValue();
|
|
4699
4702
|
return Pe(r, t, n);
|
|
4700
|
-
},
|
|
4703
|
+
}, Es = ({
|
|
4701
4704
|
min: r,
|
|
4702
4705
|
max: e,
|
|
4703
4706
|
step: t = 1,
|
|
@@ -4708,8 +4711,8 @@ const Pe = (r, e, t) => ({
|
|
|
4708
4711
|
onEnter: o,
|
|
4709
4712
|
...c
|
|
4710
4713
|
}) => {
|
|
4711
|
-
const { getCurrentLanguage: l } = je(), u = ce(null), f = l(), { groupingChar: d, decimalChar: m } =
|
|
4712
|
-
() =>
|
|
4714
|
+
const { getCurrentLanguage: l } = je(), u = ce(null), f = l(), { groupingChar: d, decimalChar: m } = Ur(
|
|
4715
|
+
() => rs(f, s),
|
|
4713
4716
|
[f, s]
|
|
4714
4717
|
), p = le(
|
|
4715
4718
|
(P, A) => new Intl.NumberFormat(f, {
|
|
@@ -4718,77 +4721,77 @@ const Pe = (r, e, t) => ({
|
|
|
4718
4721
|
useGrouping: !0
|
|
4719
4722
|
}).format(P),
|
|
4720
4723
|
[f]
|
|
4721
|
-
), v = le(
|
|
4722
|
-
a != null ? p(a,
|
|
4723
|
-
),
|
|
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
|
+
a != null ? p(a, S) : ""
|
|
4726
|
+
), D = ce(a ?? null);
|
|
4724
4727
|
ne(() => {
|
|
4725
4728
|
if (a == null) {
|
|
4726
|
-
y(""),
|
|
4729
|
+
y(""), D.current = null;
|
|
4727
4730
|
return;
|
|
4728
4731
|
}
|
|
4729
|
-
const P = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = P === 0 ?
|
|
4730
|
-
A !==
|
|
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)), D.current = a;
|
|
4731
4734
|
}, [a, p]);
|
|
4732
|
-
const
|
|
4735
|
+
const N = le(
|
|
4733
4736
|
(P, A = !1) => {
|
|
4734
4737
|
if (P.trim() === "") {
|
|
4735
|
-
y(""),
|
|
4738
|
+
y(""), D.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
|
|
4736
4739
|
return;
|
|
4737
4740
|
}
|
|
4738
4741
|
const V = v(P, d, m);
|
|
4739
4742
|
if (isNaN(V))
|
|
4740
|
-
if (
|
|
4741
|
-
const I = p(
|
|
4743
|
+
if (D.current != null) {
|
|
4744
|
+
const I = p(D.current, S);
|
|
4742
4745
|
y(I);
|
|
4743
4746
|
} else
|
|
4744
4747
|
y("");
|
|
4745
4748
|
else {
|
|
4746
|
-
const I =
|
|
4749
|
+
const I = E(V, r, e), W = ss(
|
|
4747
4750
|
P,
|
|
4748
4751
|
d,
|
|
4749
4752
|
m
|
|
4750
4753
|
);
|
|
4751
4754
|
O(W);
|
|
4752
4755
|
const z = p(I, W);
|
|
4753
|
-
y(z),
|
|
4756
|
+
y(z), D.current = I, i == null || i(I, z), A && (o == null || o(I));
|
|
4754
4757
|
}
|
|
4755
4758
|
},
|
|
4756
4759
|
[
|
|
4757
4760
|
v,
|
|
4758
4761
|
d,
|
|
4759
4762
|
m,
|
|
4760
|
-
|
|
4763
|
+
E,
|
|
4761
4764
|
r,
|
|
4762
4765
|
e,
|
|
4763
4766
|
p,
|
|
4764
4767
|
i,
|
|
4765
4768
|
o,
|
|
4766
|
-
|
|
4769
|
+
S
|
|
4767
4770
|
]
|
|
4768
|
-
), _ = (P) => y(P), T = () =>
|
|
4771
|
+
), _ = (P) => y(P), T = () => N(b), R = (P) => {
|
|
4769
4772
|
if (P.key === "Enter") {
|
|
4770
|
-
P.preventDefault(),
|
|
4773
|
+
P.preventDefault(), N(b, !0);
|
|
4771
4774
|
return;
|
|
4772
4775
|
}
|
|
4773
4776
|
if (P.key === "ArrowUp" || P.key === "ArrowDown") {
|
|
4774
4777
|
P.preventDefault();
|
|
4775
|
-
const A = P.key === "ArrowUp" ? 1 : -1, V =
|
|
4776
|
-
|
|
4778
|
+
const A = P.key === "ArrowUp" ? 1 : -1, V = D.current ?? 0, I = E(V + A * t, r, e);
|
|
4779
|
+
N(p(I, S));
|
|
4777
4780
|
}
|
|
4778
|
-
},
|
|
4781
|
+
}, k = (P) => {
|
|
4779
4782
|
if (!P.currentTarget.contains(document.activeElement)) return;
|
|
4780
4783
|
P.preventDefault();
|
|
4781
|
-
const A = P.deltaY < 0 ? 1 : -1, V =
|
|
4782
|
-
|
|
4784
|
+
const A = P.deltaY < 0 ? 1 : -1, V = D.current ?? 0, I = E(V + A * t, r, e);
|
|
4785
|
+
N(p(I, S));
|
|
4783
4786
|
};
|
|
4784
|
-
return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel:
|
|
4785
|
-
|
|
4787
|
+
return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel: k, children: /* @__PURE__ */ g.jsx(
|
|
4788
|
+
Re,
|
|
4786
4789
|
{
|
|
4787
4790
|
...c,
|
|
4788
4791
|
"aria-valuemin": r,
|
|
4789
4792
|
"aria-valuemax": e,
|
|
4790
|
-
"aria-valuenow":
|
|
4791
|
-
bindValue:
|
|
4793
|
+
"aria-valuenow": D.current ?? void 0,
|
|
4794
|
+
bindValue: b,
|
|
4792
4795
|
inputType: "text",
|
|
4793
4796
|
inputMode: n,
|
|
4794
4797
|
min: r,
|
|
@@ -4796,7 +4799,7 @@ const Pe = (r, e, t) => ({
|
|
|
4796
4799
|
step: t,
|
|
4797
4800
|
onChange: _,
|
|
4798
4801
|
onBlur: T,
|
|
4799
|
-
onKeyDown:
|
|
4802
|
+
onKeyDown: R
|
|
4800
4803
|
}
|
|
4801
4804
|
) });
|
|
4802
4805
|
};
|
|
@@ -4843,7 +4846,7 @@ class He {
|
|
|
4843
4846
|
return this.value;
|
|
4844
4847
|
}
|
|
4845
4848
|
}
|
|
4846
|
-
const
|
|
4849
|
+
const Ts = ({
|
|
4847
4850
|
disabled: r,
|
|
4848
4851
|
bindValue: e,
|
|
4849
4852
|
onChange: t,
|
|
@@ -4858,32 +4861,32 @@ const Es = ({
|
|
|
4858
4861
|
onBlur: f,
|
|
4859
4862
|
onKeyDown: d
|
|
4860
4863
|
}) => {
|
|
4861
|
-
const m = Ge(), p = `${m}-helper`, v = u ? "danger" : s,
|
|
4864
|
+
const m = Ge(), p = `${m}-helper`, v = u ? "danger" : s, E = l || !!u, w = (O) => {
|
|
4862
4865
|
t == null || t(O.target.value);
|
|
4863
|
-
},
|
|
4866
|
+
}, S = {
|
|
4864
4867
|
wrapper: "smp-textarea-wrapper",
|
|
4865
4868
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${v ? `smp-textarea-${v}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4866
4869
|
};
|
|
4867
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
4868
|
-
o && /* @__PURE__ */ g.jsx(
|
|
4870
|
+
return /* @__PURE__ */ g.jsxs("div", { className: S.wrapper, "data-component": "textarea", children: [
|
|
4871
|
+
o && /* @__PURE__ */ g.jsx(De, { htmlFor: m, label: o, disabled: r }),
|
|
4869
4872
|
/* @__PURE__ */ g.jsx(
|
|
4870
4873
|
"textarea",
|
|
4871
4874
|
{
|
|
4872
4875
|
id: m,
|
|
4873
4876
|
value: e,
|
|
4874
4877
|
placeholder: n,
|
|
4875
|
-
onChange:
|
|
4878
|
+
onChange: w,
|
|
4876
4879
|
onBlur: f,
|
|
4877
|
-
className:
|
|
4880
|
+
className: S.container,
|
|
4878
4881
|
disabled: r,
|
|
4879
4882
|
readOnly: !i,
|
|
4880
4883
|
onKeyDown: d,
|
|
4881
4884
|
"aria-label": o ? void 0 : c,
|
|
4882
4885
|
"aria-labelledby": o ? m : void 0,
|
|
4883
|
-
"aria-describedby":
|
|
4886
|
+
"aria-describedby": E ? p : void 0
|
|
4884
4887
|
}
|
|
4885
4888
|
),
|
|
4886
|
-
|
|
4889
|
+
E && /* @__PURE__ */ g.jsx(
|
|
4887
4890
|
Rr,
|
|
4888
4891
|
{
|
|
4889
4892
|
id: p,
|
|
@@ -4893,15 +4896,17 @@ const Es = ({
|
|
|
4893
4896
|
}
|
|
4894
4897
|
)
|
|
4895
4898
|
] });
|
|
4896
|
-
}
|
|
4899
|
+
};
|
|
4900
|
+
var Ct = /* @__PURE__ */ ((r) => (r.PAGE_DIRECTION = "pageDirection", r.LINE_DIRECTION = "lineDirection", r))(Ct || {});
|
|
4901
|
+
const rt = {
|
|
4897
4902
|
"smp-radio": "_smp-radio_1vo2u_1",
|
|
4898
4903
|
"smp-radio-horizontal": "_smp-radio-horizontal_1vo2u_10",
|
|
4899
4904
|
"smp-radio-element": "_smp-radio-element_1vo2u_14",
|
|
4900
4905
|
"smp-radio-disabled": "_smp-radio-disabled_1vo2u_20"
|
|
4901
|
-
},
|
|
4906
|
+
}, Os = ({
|
|
4902
4907
|
disabled: r = !1,
|
|
4903
4908
|
displayMode: e = "DescOnly",
|
|
4904
|
-
|
|
4909
|
+
RadLay: t = Ct.PAGE_DIRECTION,
|
|
4905
4910
|
options: n,
|
|
4906
4911
|
onOptionsRequest: s,
|
|
4907
4912
|
fun: a,
|
|
@@ -4915,7 +4920,7 @@ const Es = ({
|
|
|
4915
4920
|
});
|
|
4916
4921
|
}, [c, s, a]);
|
|
4917
4922
|
const u = {
|
|
4918
|
-
container: `${rt["smp-radio"]} ${t ? rt["smp-radio-horizontal"] : ""}`,
|
|
4923
|
+
container: `${rt["smp-radio"]} ${t == Ct.LINE_DIRECTION ? rt["smp-radio-horizontal"] : ""}`,
|
|
4919
4924
|
option: `${rt["smp-radio-element"]} ${r ? rt["smp-radio-disabled"] : ""}`
|
|
4920
4925
|
}, f = () => {
|
|
4921
4926
|
var p;
|
|
@@ -4925,7 +4930,7 @@ const Es = ({
|
|
|
4925
4930
|
r || (v = o.onChange) == null || v.call(o, p.id, p.label);
|
|
4926
4931
|
}, m = Ge();
|
|
4927
4932
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, children: [
|
|
4928
|
-
i && /* @__PURE__ */ g.jsx(
|
|
4933
|
+
i && /* @__PURE__ */ g.jsx(De, { label: i, disabled: r, htmlFor: "" }),
|
|
4929
4934
|
c == null ? void 0 : c.map((p, v) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
4930
4935
|
/* @__PURE__ */ g.jsx(
|
|
4931
4936
|
"input",
|
|
@@ -4940,7 +4945,7 @@ const Es = ({
|
|
|
4940
4945
|
}
|
|
4941
4946
|
),
|
|
4942
4947
|
/* @__PURE__ */ g.jsx(
|
|
4943
|
-
|
|
4948
|
+
ke,
|
|
4944
4949
|
{
|
|
4945
4950
|
variant: "body",
|
|
4946
4951
|
bindValue: Le(
|
|
@@ -4952,7 +4957,7 @@ const Es = ({
|
|
|
4952
4957
|
)
|
|
4953
4958
|
] }, v))
|
|
4954
4959
|
] });
|
|
4955
|
-
},
|
|
4960
|
+
}, Ds = ({
|
|
4956
4961
|
value: r,
|
|
4957
4962
|
onChange: e,
|
|
4958
4963
|
targetRef: t,
|
|
@@ -5002,7 +5007,7 @@ const Es = ({
|
|
|
5002
5007
|
]
|
|
5003
5008
|
}
|
|
5004
5009
|
);
|
|
5005
|
-
},
|
|
5010
|
+
}, Tr = (r) => {
|
|
5006
5011
|
const e = r.match(/^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/);
|
|
5007
5012
|
if (!e) return !1;
|
|
5008
5013
|
const [, t, n, s] = e, a = parseInt(t, 10), i = parseInt(n, 10), o = s ? parseInt(s, 10) : 0;
|
|
@@ -5010,10 +5015,10 @@ const Es = ({
|
|
|
5010
5015
|
}, Rs = (r) => {
|
|
5011
5016
|
const e = r.split(":").map((t) => parseInt(t, 10));
|
|
5012
5017
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5013
|
-
},
|
|
5018
|
+
}, js = (r, e, t) => {
|
|
5014
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") : "";
|
|
5015
5020
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5016
|
-
},
|
|
5021
|
+
}, _s = ({
|
|
5017
5022
|
bindValue: r,
|
|
5018
5023
|
placeholder: e = "HH:MM:SS",
|
|
5019
5024
|
onChange: t,
|
|
@@ -5028,11 +5033,11 @@ const Es = ({
|
|
|
5028
5033
|
o(!1), (y = a == null ? void 0 : a.current) == null || y.focus();
|
|
5029
5034
|
}, []);
|
|
5030
5035
|
Ye(m, i, () => o(!1)), kt(i, m), ne(() => {
|
|
5031
|
-
const y = r || "",
|
|
5032
|
-
l(y), f(
|
|
5036
|
+
const y = r || "", D = Tr(y) ? y : r || "";
|
|
5037
|
+
l(y), f(D);
|
|
5033
5038
|
}, [r]), ne(() => {
|
|
5034
|
-
const y = (
|
|
5035
|
-
|
|
5039
|
+
const y = (D) => {
|
|
5040
|
+
D.key === "Escape" && o(!1);
|
|
5036
5041
|
};
|
|
5037
5042
|
return i && document.addEventListener("keydown", y), () => {
|
|
5038
5043
|
document.removeEventListener("keydown", y);
|
|
@@ -5040,31 +5045,31 @@ const Es = ({
|
|
|
5040
5045
|
}, [i]);
|
|
5041
5046
|
const v = () => {
|
|
5042
5047
|
n && o((y) => !y);
|
|
5043
|
-
},
|
|
5048
|
+
}, E = (y) => {
|
|
5044
5049
|
f(y);
|
|
5045
|
-
},
|
|
5046
|
-
const _ =
|
|
5050
|
+
}, w = (y, D, N) => {
|
|
5051
|
+
const _ = js(y, D, N);
|
|
5047
5052
|
l(_), f(_), t == null || t(_), p();
|
|
5048
|
-
},
|
|
5049
|
-
|
|
5053
|
+
}, S = () => {
|
|
5054
|
+
b(u);
|
|
5050
5055
|
}, O = (y) => {
|
|
5051
|
-
y.key === "Enter" && (y.preventDefault(),
|
|
5052
|
-
},
|
|
5056
|
+
y.key === "Enter" && (y.preventDefault(), b(u));
|
|
5057
|
+
}, b = (y) => {
|
|
5053
5058
|
if (y.trim() === "") {
|
|
5054
5059
|
l(""), f(""), t == null || t("");
|
|
5055
5060
|
return;
|
|
5056
5061
|
}
|
|
5057
|
-
|
|
5062
|
+
Tr(y) ? (l(y), f(y), t == null || t(y)) : f(y);
|
|
5058
5063
|
};
|
|
5059
5064
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5060
5065
|
/* @__PURE__ */ g.jsx(
|
|
5061
|
-
|
|
5066
|
+
Lt,
|
|
5062
5067
|
{
|
|
5063
5068
|
...s,
|
|
5064
5069
|
bindValue: u,
|
|
5065
5070
|
placeholder: e,
|
|
5066
|
-
onChange:
|
|
5067
|
-
onBlur:
|
|
5071
|
+
onChange: E,
|
|
5072
|
+
onBlur: S,
|
|
5068
5073
|
onKeyDown: O,
|
|
5069
5074
|
shapeIcon: "clock",
|
|
5070
5075
|
onShapeIconClick: v,
|
|
@@ -5074,17 +5079,17 @@ const Es = ({
|
|
|
5074
5079
|
}
|
|
5075
5080
|
),
|
|
5076
5081
|
i && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
5077
|
-
|
|
5082
|
+
Ds,
|
|
5078
5083
|
{
|
|
5079
5084
|
value: Rs(c),
|
|
5080
|
-
onChange:
|
|
5085
|
+
onChange: w,
|
|
5081
5086
|
targetRef: m,
|
|
5082
5087
|
isOpen: i
|
|
5083
5088
|
}
|
|
5084
5089
|
) })
|
|
5085
5090
|
] });
|
|
5086
5091
|
};
|
|
5087
|
-
function
|
|
5092
|
+
function $s(r) {
|
|
5088
5093
|
return typeof r == "string" && /^\d{6}$/.test(r);
|
|
5089
5094
|
}
|
|
5090
5095
|
class pt {
|
|
@@ -5094,13 +5099,13 @@ class pt {
|
|
|
5094
5099
|
this.class = e, this.time = t;
|
|
5095
5100
|
}
|
|
5096
5101
|
static fromDataObj(e) {
|
|
5097
|
-
const t =
|
|
5102
|
+
const t = Or.get(`${e.t}${e.p}`);
|
|
5098
5103
|
if (t)
|
|
5099
5104
|
return new pt(e, t.legacyToIso(e.k));
|
|
5100
5105
|
throw new Error(`time creation from ${e.t}${e.p} not implemented yet`);
|
|
5101
5106
|
}
|
|
5102
5107
|
getLegacyValue() {
|
|
5103
|
-
const e =
|
|
5108
|
+
const e = Or.get(`${this.class.t}${this.class.p}`);
|
|
5104
5109
|
if (e)
|
|
5105
5110
|
return e.isoToLegacy(this.time);
|
|
5106
5111
|
throw new Error(
|
|
@@ -5111,19 +5116,19 @@ class pt {
|
|
|
5111
5116
|
return this.time;
|
|
5112
5117
|
}
|
|
5113
5118
|
}
|
|
5114
|
-
const
|
|
5119
|
+
const Or = /* @__PURE__ */ new Map([
|
|
5115
5120
|
[
|
|
5116
5121
|
"I12",
|
|
5117
5122
|
{
|
|
5118
5123
|
legacyToIso(r) {
|
|
5119
|
-
return
|
|
5124
|
+
return $s(r) && `${r.substring(0, 2)}:${r.substring(2, 4)}:${r.substring(4, 6)}` || r;
|
|
5120
5125
|
},
|
|
5121
5126
|
isoToLegacy(r) {
|
|
5122
5127
|
return r.replaceAll(":", "") || r;
|
|
5123
5128
|
}
|
|
5124
5129
|
}
|
|
5125
5130
|
]
|
|
5126
|
-
]),
|
|
5131
|
+
]), Cs = {
|
|
5127
5132
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5128
5133
|
}, Te = ({
|
|
5129
5134
|
decode: r,
|
|
@@ -5142,220 +5147,220 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5142
5147
|
onBlur: m,
|
|
5143
5148
|
onOptionsRequest: p,
|
|
5144
5149
|
onContextMenu: v,
|
|
5145
|
-
isEditable:
|
|
5150
|
+
isEditable: E
|
|
5146
5151
|
}) => {
|
|
5147
|
-
const
|
|
5152
|
+
const w = {
|
|
5148
5153
|
obj: t,
|
|
5149
5154
|
shape: e,
|
|
5150
5155
|
decode: r,
|
|
5151
5156
|
icon: s,
|
|
5152
5157
|
fun: a
|
|
5153
|
-
},
|
|
5158
|
+
}, S = {
|
|
5154
5159
|
onBlur: m,
|
|
5155
5160
|
onOptionsRequest: p,
|
|
5156
5161
|
fun: a,
|
|
5157
5162
|
icon: s,
|
|
5158
5163
|
tooltip: c,
|
|
5159
5164
|
label: o,
|
|
5160
|
-
isEditable:
|
|
5165
|
+
isEditable: E,
|
|
5161
5166
|
...n
|
|
5162
|
-
}, 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(
|
|
5163
5168
|
T,
|
|
5164
|
-
new He(t,
|
|
5165
|
-
), y = (T) => Pe(
|
|
5169
|
+
new He(t, R, ".").getLegacyValue()
|
|
5170
|
+
), y = (T) => Pe(w, new ot(t, T).getLegacyValue()), D = (T) => ws(w, T), N = () => {
|
|
5166
5171
|
switch (e) {
|
|
5167
5172
|
case te.AUTOCOMPLETE: {
|
|
5168
5173
|
const T = {
|
|
5169
|
-
...
|
|
5174
|
+
...S,
|
|
5170
5175
|
bindValue: t.k,
|
|
5171
5176
|
optionalDisplayValue: r,
|
|
5172
|
-
onChange: (
|
|
5173
|
-
u == null || u(O(
|
|
5177
|
+
onChange: (R, k) => {
|
|
5178
|
+
u == null || u(O(w, R, k));
|
|
5174
5179
|
}
|
|
5175
5180
|
};
|
|
5176
5181
|
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
5177
5182
|
}
|
|
5178
5183
|
case te.BUTTON: {
|
|
5179
5184
|
const T = {
|
|
5180
|
-
...
|
|
5185
|
+
...S,
|
|
5181
5186
|
bindValue: t.k,
|
|
5182
5187
|
optionalDisplayValue: r,
|
|
5183
5188
|
onClick: () => {
|
|
5184
|
-
f == null || f(O(
|
|
5189
|
+
f == null || f(O(w, t.k));
|
|
5185
5190
|
}
|
|
5186
5191
|
};
|
|
5187
5192
|
return /* @__PURE__ */ g.jsx(Be, { ...T });
|
|
5188
5193
|
}
|
|
5189
5194
|
case te.BUTTON_LIST: {
|
|
5190
5195
|
const T = {
|
|
5191
|
-
...
|
|
5196
|
+
...S,
|
|
5192
5197
|
options: l,
|
|
5193
|
-
onClick: (
|
|
5194
|
-
const P = { ...
|
|
5195
|
-
f == null || f(O(P,
|
|
5198
|
+
onClick: (R, k) => {
|
|
5199
|
+
const P = { ...w, fun: k };
|
|
5200
|
+
f == null || f(O(P, R));
|
|
5196
5201
|
}
|
|
5197
5202
|
};
|
|
5198
|
-
return /* @__PURE__ */ g.jsx(
|
|
5203
|
+
return /* @__PURE__ */ g.jsx(us, { ...T });
|
|
5199
5204
|
}
|
|
5200
5205
|
case te.CHIP: {
|
|
5201
5206
|
const T = {
|
|
5202
|
-
...
|
|
5203
|
-
elements:
|
|
5207
|
+
...S,
|
|
5208
|
+
elements: Er(w)
|
|
5204
5209
|
};
|
|
5205
|
-
return /* @__PURE__ */ g.jsx(
|
|
5210
|
+
return /* @__PURE__ */ g.jsx(Nt, { ...T });
|
|
5206
5211
|
}
|
|
5207
5212
|
case te.CHECKBOX:
|
|
5208
5213
|
case te.SWITCH: {
|
|
5209
|
-
const T = e === te.SWITCH,
|
|
5210
|
-
...
|
|
5214
|
+
const T = e === te.SWITCH, R = {
|
|
5215
|
+
...S,
|
|
5211
5216
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5212
5217
|
optionalDisplayValue: r,
|
|
5213
|
-
onChange: (
|
|
5214
|
-
u == null || u(y(
|
|
5218
|
+
onChange: (k) => {
|
|
5219
|
+
u == null || u(y(k));
|
|
5215
5220
|
},
|
|
5216
5221
|
...T && { variant: "switch" }
|
|
5217
5222
|
};
|
|
5218
|
-
return /* @__PURE__ */ g.jsx(
|
|
5223
|
+
return /* @__PURE__ */ g.jsx(ds, { ...R });
|
|
5219
5224
|
}
|
|
5220
5225
|
case te.COMBOBOX: {
|
|
5221
5226
|
const T = {
|
|
5222
|
-
...
|
|
5227
|
+
...S,
|
|
5223
5228
|
bindValue: t.k,
|
|
5224
5229
|
optionalDisplayValue: r,
|
|
5225
|
-
onChange: (
|
|
5226
|
-
u == null || u(O(
|
|
5230
|
+
onChange: (R, k) => {
|
|
5231
|
+
u == null || u(O(w, R, k));
|
|
5227
5232
|
}
|
|
5228
5233
|
};
|
|
5229
|
-
return /* @__PURE__ */ g.jsx(
|
|
5234
|
+
return /* @__PURE__ */ g.jsx(hs, { ...T });
|
|
5230
5235
|
}
|
|
5231
5236
|
case te.DATE: {
|
|
5232
5237
|
const T = {
|
|
5233
|
-
...
|
|
5238
|
+
...S,
|
|
5234
5239
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5235
|
-
onChange: (
|
|
5236
|
-
u == null || u(O(
|
|
5240
|
+
onChange: (R) => {
|
|
5241
|
+
u == null || u(O(w, R));
|
|
5237
5242
|
}
|
|
5238
5243
|
};
|
|
5239
|
-
return /* @__PURE__ */ g.jsx(
|
|
5244
|
+
return /* @__PURE__ */ g.jsx(ys, { ...T });
|
|
5240
5245
|
}
|
|
5241
5246
|
case te.ICON:
|
|
5242
5247
|
case te.IMAGE: {
|
|
5243
5248
|
const T = {
|
|
5244
|
-
...
|
|
5249
|
+
...S,
|
|
5245
5250
|
icon: s,
|
|
5246
5251
|
placeholderIcon: i,
|
|
5247
|
-
isInteractable: !!
|
|
5252
|
+
isInteractable: !!S.fun,
|
|
5248
5253
|
onClick: () => {
|
|
5249
|
-
f == null || f(O(
|
|
5254
|
+
f == null || f(O(w, t.k));
|
|
5250
5255
|
}
|
|
5251
5256
|
};
|
|
5252
5257
|
return /* @__PURE__ */ g.jsx(fe, { ...T });
|
|
5253
5258
|
}
|
|
5254
5259
|
case te.INPUT_NUMBER: {
|
|
5255
5260
|
const T = {
|
|
5256
|
-
...
|
|
5261
|
+
...S,
|
|
5257
5262
|
bindValue: He.fromDataObj(t, ".").getValue(),
|
|
5258
|
-
onChange: (
|
|
5259
|
-
u == null || u(
|
|
5263
|
+
onChange: (R) => {
|
|
5264
|
+
u == null || u(b(w, R));
|
|
5260
5265
|
}
|
|
5261
5266
|
};
|
|
5262
|
-
return /* @__PURE__ */ g.jsx(
|
|
5267
|
+
return /* @__PURE__ */ g.jsx(Es, { ...T });
|
|
5263
5268
|
}
|
|
5264
5269
|
case te.MEMO: {
|
|
5265
5270
|
const T = {
|
|
5266
|
-
...
|
|
5271
|
+
...S,
|
|
5267
5272
|
bindValue: t.k,
|
|
5268
5273
|
optionalDisplayValue: r,
|
|
5269
|
-
onChange: (
|
|
5270
|
-
u == null || u(O(
|
|
5274
|
+
onChange: (R) => {
|
|
5275
|
+
u == null || u(O(w, R));
|
|
5271
5276
|
}
|
|
5272
5277
|
};
|
|
5273
|
-
return /* @__PURE__ */ g.jsx(
|
|
5278
|
+
return /* @__PURE__ */ g.jsx(Ts, { ...T });
|
|
5274
5279
|
}
|
|
5275
5280
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5276
5281
|
const T = {
|
|
5277
|
-
...
|
|
5278
|
-
elements:
|
|
5279
|
-
onChange: (
|
|
5280
|
-
u == null || u(R
|
|
5282
|
+
...S,
|
|
5283
|
+
elements: Er(w),
|
|
5284
|
+
onChange: (R) => {
|
|
5285
|
+
u == null || u(D(R));
|
|
5281
5286
|
}
|
|
5282
5287
|
};
|
|
5283
|
-
return /* @__PURE__ */ g.jsx(
|
|
5288
|
+
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
5284
5289
|
}
|
|
5285
5290
|
case te.PASSWORD: {
|
|
5286
5291
|
const T = {
|
|
5287
|
-
...
|
|
5292
|
+
...S,
|
|
5288
5293
|
bindValue: t.k,
|
|
5289
|
-
onChange: (
|
|
5290
|
-
u == null || u(O(
|
|
5294
|
+
onChange: (R) => {
|
|
5295
|
+
u == null || u(O(w, R));
|
|
5291
5296
|
}
|
|
5292
5297
|
};
|
|
5293
|
-
return /* @__PURE__ */ g.jsx(
|
|
5298
|
+
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
5294
5299
|
}
|
|
5295
5300
|
case te.RADIO: {
|
|
5296
5301
|
const T = {
|
|
5297
|
-
...
|
|
5302
|
+
...S,
|
|
5298
5303
|
bindValue: t.k,
|
|
5299
|
-
onChange: (
|
|
5300
|
-
u == null || u(O(
|
|
5304
|
+
onChange: (R, k) => {
|
|
5305
|
+
u == null || u(O(w, R, k));
|
|
5301
5306
|
}
|
|
5302
5307
|
};
|
|
5303
|
-
return /* @__PURE__ */ g.jsx(
|
|
5308
|
+
return /* @__PURE__ */ g.jsx(Os, { ...T });
|
|
5304
5309
|
}
|
|
5305
5310
|
case te.SPOTLIGHT: {
|
|
5306
5311
|
const T = {
|
|
5307
|
-
...
|
|
5312
|
+
...S,
|
|
5308
5313
|
bindValue: t.k,
|
|
5309
|
-
onEnter: (
|
|
5310
|
-
d == null || d(O(
|
|
5314
|
+
onEnter: (R) => {
|
|
5315
|
+
d == null || d(O(w, R));
|
|
5311
5316
|
}
|
|
5312
5317
|
};
|
|
5313
|
-
return /* @__PURE__ */ g.jsx(
|
|
5318
|
+
return /* @__PURE__ */ g.jsx(bs, { ...T });
|
|
5314
5319
|
}
|
|
5315
5320
|
case te.TEXT_FIELD: {
|
|
5316
5321
|
const T = {
|
|
5317
|
-
...
|
|
5322
|
+
...S,
|
|
5318
5323
|
bindValue: t.k,
|
|
5319
5324
|
optionalDisplayValue: r,
|
|
5320
|
-
onChange: (
|
|
5321
|
-
u == null || u(O(
|
|
5325
|
+
onChange: (R) => {
|
|
5326
|
+
u == null || u(O(w, R));
|
|
5322
5327
|
}
|
|
5323
5328
|
};
|
|
5324
|
-
return /* @__PURE__ */ g.jsx(
|
|
5329
|
+
return /* @__PURE__ */ g.jsx(Re, { ...T });
|
|
5325
5330
|
}
|
|
5326
5331
|
case te.TIME: {
|
|
5327
5332
|
const T = {
|
|
5328
|
-
...
|
|
5333
|
+
...S,
|
|
5329
5334
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5330
|
-
onChange: (
|
|
5331
|
-
u == null || u(O(
|
|
5335
|
+
onChange: (R) => {
|
|
5336
|
+
u == null || u(O(w, R));
|
|
5332
5337
|
}
|
|
5333
5338
|
};
|
|
5334
|
-
return /* @__PURE__ */ g.jsx(
|
|
5339
|
+
return /* @__PURE__ */ g.jsx(_s, { ...T });
|
|
5335
5340
|
}
|
|
5336
5341
|
default: {
|
|
5337
5342
|
const T = {
|
|
5338
|
-
...
|
|
5343
|
+
...S,
|
|
5339
5344
|
bindValue: t.k,
|
|
5340
5345
|
optionalDisplayValue: r
|
|
5341
5346
|
};
|
|
5342
|
-
return /* @__PURE__ */ g.jsx(
|
|
5347
|
+
return /* @__PURE__ */ g.jsx(Ss, { ...T });
|
|
5343
5348
|
}
|
|
5344
5349
|
}
|
|
5345
5350
|
}, _ = {
|
|
5346
|
-
wrapper: `${
|
|
5351
|
+
wrapper: `${Cs["smp-cell-wrapper"]}`
|
|
5347
5352
|
};
|
|
5348
5353
|
return /* @__PURE__ */ g.jsx(
|
|
5349
5354
|
"span",
|
|
5350
5355
|
{
|
|
5351
5356
|
className: _.wrapper,
|
|
5352
5357
|
onContextMenu: (T) => {
|
|
5353
|
-
v && c && (T.preventDefault(), v(
|
|
5358
|
+
v && c && (T.preventDefault(), v(w, T.currentTarget));
|
|
5354
5359
|
},
|
|
5355
|
-
children:
|
|
5360
|
+
children: N()
|
|
5356
5361
|
}
|
|
5357
5362
|
);
|
|
5358
|
-
},
|
|
5363
|
+
}, ta = ({
|
|
5359
5364
|
data: r,
|
|
5360
5365
|
onClick: e,
|
|
5361
5366
|
onEnter: t,
|
|
@@ -5369,17 +5374,17 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5369
5374
|
return {};
|
|
5370
5375
|
const u = l.rows[0];
|
|
5371
5376
|
return l.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5372
|
-
const v = u.cells[p.name],
|
|
5377
|
+
const v = u.cells[p.name], E = {
|
|
5373
5378
|
...v,
|
|
5374
5379
|
id: p.name,
|
|
5375
|
-
onChange: (
|
|
5376
|
-
a((
|
|
5377
|
-
...
|
|
5380
|
+
onChange: (w) => {
|
|
5381
|
+
a((S) => S && {
|
|
5382
|
+
...S,
|
|
5378
5383
|
[p.name]: {
|
|
5379
|
-
...
|
|
5384
|
+
...S[p.name],
|
|
5380
5385
|
obj: {
|
|
5381
|
-
...
|
|
5382
|
-
k:
|
|
5386
|
+
...S[p.name].obj,
|
|
5387
|
+
k: w.obj.k
|
|
5383
5388
|
}
|
|
5384
5389
|
}
|
|
5385
5390
|
});
|
|
@@ -5389,16 +5394,16 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5389
5394
|
...v
|
|
5390
5395
|
});
|
|
5391
5396
|
},
|
|
5392
|
-
onEnter: (
|
|
5393
|
-
t && t(
|
|
5397
|
+
onEnter: (w) => {
|
|
5398
|
+
t && t(w);
|
|
5394
5399
|
},
|
|
5395
|
-
onContextMenu: (
|
|
5396
|
-
n && n(
|
|
5400
|
+
onContextMenu: (w, S) => {
|
|
5401
|
+
n && n(w, S);
|
|
5397
5402
|
}
|
|
5398
5403
|
};
|
|
5399
5404
|
return {
|
|
5400
5405
|
...m,
|
|
5401
|
-
[p.name]:
|
|
5406
|
+
[p.name]: E
|
|
5402
5407
|
};
|
|
5403
5408
|
}, {});
|
|
5404
5409
|
},
|
|
@@ -5407,7 +5412,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5407
5412
|
return ne(() => {
|
|
5408
5413
|
r && a(i(r));
|
|
5409
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 })) }) });
|
|
5410
|
-
},
|
|
5415
|
+
}, Ps = (r) => {
|
|
5411
5416
|
var e;
|
|
5412
5417
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5413
5418
|
var n, s;
|
|
@@ -5418,7 +5423,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5418
5423
|
icon: t.icon
|
|
5419
5424
|
};
|
|
5420
5425
|
}) : [];
|
|
5421
|
-
}, 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 = ({
|
|
5422
5427
|
data: r,
|
|
5423
5428
|
logo: e,
|
|
5424
5429
|
open: t,
|
|
@@ -5430,24 +5435,24 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5430
5435
|
loadOptions: c,
|
|
5431
5436
|
onContextMenu: l
|
|
5432
5437
|
}) => {
|
|
5433
|
-
var
|
|
5434
|
-
const [u, f] = q(), [d, m] = q(t ?? !0), p = ce(null), v = s.trim() ? s : "100vh",
|
|
5435
|
-
(
|
|
5438
|
+
var b, y;
|
|
5439
|
+
const [u, f] = q(), [d, m] = q(t ?? !0), p = ce(null), v = s.trim() ? s : "100vh", E = le(
|
|
5440
|
+
(D) => {
|
|
5436
5441
|
var _, T;
|
|
5437
|
-
if (!((_ =
|
|
5442
|
+
if (!((_ = D == null ? void 0 : D.rows) != null && _.length) || !((T = D == null ? void 0 : D.columns) != null && T.length))
|
|
5438
5443
|
return {};
|
|
5439
|
-
const
|
|
5440
|
-
return
|
|
5441
|
-
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];
|
|
5442
5447
|
if (!P || !d && de(n) && P.shape !== te.BUTTON && P.shape !== te.BUTTON_LIST)
|
|
5443
|
-
return
|
|
5448
|
+
return R;
|
|
5444
5449
|
const A = {
|
|
5445
5450
|
...P,
|
|
5446
|
-
id:
|
|
5451
|
+
id: k.name,
|
|
5447
5452
|
onChange: (V) => {
|
|
5448
5453
|
f((I) => {
|
|
5449
5454
|
const W = { ...I };
|
|
5450
|
-
return W != null && W[
|
|
5455
|
+
return W != null && W[k.name] && (W[k.name].obj.k = V.obj.k), W;
|
|
5451
5456
|
});
|
|
5452
5457
|
},
|
|
5453
5458
|
onClick: (V) => {
|
|
@@ -5461,42 +5466,43 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5461
5466
|
}
|
|
5462
5467
|
};
|
|
5463
5468
|
return c && P.shape == te.BUTTON_LIST && (A.onOptionsRequest = (V, I) => c(V, I).then(
|
|
5464
|
-
(W) =>
|
|
5469
|
+
(W) => Ps(W)
|
|
5465
5470
|
)), !d && de(n) && (A.data = {
|
|
5466
5471
|
...A.data,
|
|
5467
5472
|
showText: !1,
|
|
5468
|
-
justify: "center"
|
|
5473
|
+
justify: "center",
|
|
5474
|
+
squared: !0
|
|
5469
5475
|
}), {
|
|
5470
|
-
...
|
|
5471
|
-
[
|
|
5476
|
+
...R,
|
|
5477
|
+
[k.name]: A
|
|
5472
5478
|
};
|
|
5473
5479
|
}, {});
|
|
5474
5480
|
},
|
|
5475
5481
|
[d, n, a, i, c, l]
|
|
5476
|
-
),
|
|
5482
|
+
), w = le(() => {
|
|
5477
5483
|
o == null || o();
|
|
5478
|
-
}, [o]),
|
|
5479
|
-
de(n) ? m((
|
|
5484
|
+
}, [o]), S = () => {
|
|
5485
|
+
de(n) ? m((D) => !D) : (m(!1), o == null || o());
|
|
5480
5486
|
};
|
|
5481
5487
|
if (ne(() => {
|
|
5482
|
-
f(
|
|
5488
|
+
f(E(r));
|
|
5483
5489
|
}, [r]), ne(() => {
|
|
5484
5490
|
if (!p.current)
|
|
5485
5491
|
return;
|
|
5486
5492
|
if (!de(n)) {
|
|
5487
|
-
f(
|
|
5493
|
+
f(E(r));
|
|
5488
5494
|
return;
|
|
5489
5495
|
}
|
|
5490
|
-
const
|
|
5496
|
+
const D = getComputedStyle(p.current).getPropertyValue(
|
|
5491
5497
|
"--smp-drawer-slide-transition"
|
|
5492
5498
|
);
|
|
5493
|
-
let
|
|
5494
|
-
|
|
5495
|
-
f(
|
|
5496
|
-
},
|
|
5499
|
+
let N = Number(D);
|
|
5500
|
+
D.endsWith("ms") ? N = parseFloat(D) : D.endsWith("s") && (N = parseFloat(D) * 1e3), setTimeout(() => {
|
|
5501
|
+
f(E(r));
|
|
5502
|
+
}, N / 2);
|
|
5497
5503
|
}, [d, n]), ne(() => {
|
|
5498
5504
|
t !== void 0 && !de(n) && m(t);
|
|
5499
|
-
}, [n, t]), !((
|
|
5505
|
+
}, [n, t]), !((b = r == null ? void 0 : r.rows) != null && b.length) || !((y = r.columns) != null && y.length))
|
|
5500
5506
|
return null;
|
|
5501
5507
|
const O = {
|
|
5502
5508
|
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${d ? "smp-drawer-open" : ""} ${!de(n) && !d ? "smp-drawer-no-border" : ""}`,
|
|
@@ -5514,7 +5520,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5514
5520
|
"aria-hidden": "true",
|
|
5515
5521
|
"aria-label": "drawer-backdrop",
|
|
5516
5522
|
className: O.backdrop,
|
|
5517
|
-
onClick:
|
|
5523
|
+
onClick: w
|
|
5518
5524
|
}
|
|
5519
5525
|
),
|
|
5520
5526
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5543,18 +5549,18 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5543
5549
|
title: "drawer_icon",
|
|
5544
5550
|
rotated: !d,
|
|
5545
5551
|
isInteractable: !0,
|
|
5546
|
-
onClick:
|
|
5552
|
+
onClick: S,
|
|
5547
5553
|
width: 20,
|
|
5548
5554
|
height: 20
|
|
5549
5555
|
}
|
|
5550
5556
|
) })
|
|
5551
5557
|
] }),
|
|
5552
|
-
/* @__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 })) }) })
|
|
5553
5559
|
] })
|
|
5554
5560
|
}
|
|
5555
5561
|
)
|
|
5556
5562
|
] });
|
|
5557
|
-
},
|
|
5563
|
+
}, na = ({
|
|
5558
5564
|
ColumnsNumber: r = 1,
|
|
5559
5565
|
data: e = {},
|
|
5560
5566
|
ForceText: t,
|
|
@@ -5571,14 +5577,14 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5571
5577
|
UmColName: m,
|
|
5572
5578
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5573
5579
|
ForceValue: v,
|
|
5574
|
-
ValueColName:
|
|
5575
|
-
ValueColor:
|
|
5576
|
-
SelectLayout:
|
|
5580
|
+
ValueColName: E,
|
|
5581
|
+
ValueColor: w = "var(--smp-dashList-color-base)",
|
|
5582
|
+
SelectLayout: S = "1",
|
|
5577
5583
|
onClick: O
|
|
5578
5584
|
}) => {
|
|
5579
|
-
const
|
|
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 = {
|
|
5580
5586
|
dash: (H = "1") => {
|
|
5581
|
-
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);
|
|
5582
5588
|
return {
|
|
5583
5589
|
container: re,
|
|
5584
5590
|
descr: se,
|
|
@@ -5619,7 +5625,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5619
5625
|
descr: t || Z(n) || re(2) || "",
|
|
5620
5626
|
icon: c || Z(l) || re(3) || "",
|
|
5621
5627
|
um: d || Z(m) || re(1) || "",
|
|
5622
|
-
value: v || Z(
|
|
5628
|
+
value: v || Z(E) || re(0) || ""
|
|
5623
5629
|
};
|
|
5624
5630
|
}, B = (H) => {
|
|
5625
5631
|
O == null || O(H);
|
|
@@ -5629,7 +5635,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5629
5635
|
const Z = X.dash(H);
|
|
5630
5636
|
return {
|
|
5631
5637
|
className: Z,
|
|
5632
|
-
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}`),
|
|
5633
5639
|
icon: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5634
5640
|
fe,
|
|
5635
5641
|
{
|
|
@@ -5638,17 +5644,17 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5638
5644
|
icon: re,
|
|
5639
5645
|
width: I
|
|
5640
5646
|
}
|
|
5641
|
-
) }, `${H}-${
|
|
5647
|
+
) }, `${H}-${k}`),
|
|
5642
5648
|
um: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: re }, `${H}-${P}`),
|
|
5643
5649
|
value: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: re }, `${H}-${A}`)
|
|
5644
5650
|
};
|
|
5645
|
-
})(
|
|
5651
|
+
})(S), ae = (H) => {
|
|
5646
5652
|
const { descr: Z, icon: re, um: se, value: he } = U(H), Se = {
|
|
5647
|
-
[j(
|
|
5653
|
+
[j(R)]: C(s),
|
|
5648
5654
|
[j(P)]: C(p),
|
|
5649
|
-
[j(A)]: C(
|
|
5655
|
+
[j(A)]: C(w)
|
|
5650
5656
|
}, ve = [], _e = $(he);
|
|
5651
|
-
switch (
|
|
5657
|
+
switch (S) {
|
|
5652
5658
|
case "2":
|
|
5653
5659
|
re && ve.push(G.icon(re)), ve.push(G.descr(Z)), ve.push(
|
|
5654
5660
|
G.value(se ? _e + " " + se : _e)
|
|
@@ -5668,7 +5674,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5668
5674
|
style: Se,
|
|
5669
5675
|
tabIndex: 0,
|
|
5670
5676
|
onClick: () => B(H),
|
|
5671
|
-
onKeyDown: (
|
|
5677
|
+
onKeyDown: (Mr) => Y(Mr, H),
|
|
5672
5678
|
children: ve
|
|
5673
5679
|
},
|
|
5674
5680
|
H.rowId
|
|
@@ -5677,26 +5683,26 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5677
5683
|
[W]: String(r),
|
|
5678
5684
|
[z]: V
|
|
5679
5685
|
};
|
|
5680
|
-
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 });
|
|
5681
5687
|
}, nt = {
|
|
5682
5688
|
"smp-table": "_smp-table_1qmju_1",
|
|
5683
5689
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5684
5690
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5685
|
-
},
|
|
5686
|
-
rowContent:
|
|
5687
|
-
clickable:
|
|
5688
|
-
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,
|
|
5689
5695
|
toggle: ks,
|
|
5690
|
-
cell:
|
|
5691
|
-
leftSection:
|
|
5696
|
+
cell: Is,
|
|
5697
|
+
leftSection: Ms
|
|
5692
5698
|
};
|
|
5693
5699
|
function st(r) {
|
|
5694
5700
|
return !!r && "children" in r;
|
|
5695
5701
|
}
|
|
5696
|
-
function
|
|
5702
|
+
function Fs(r) {
|
|
5697
5703
|
return !st(r);
|
|
5698
5704
|
}
|
|
5699
|
-
function
|
|
5705
|
+
function Vs(r) {
|
|
5700
5706
|
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5701
5707
|
let t = 0, n, s;
|
|
5702
5708
|
if (e.length === 0) return t.toString();
|
|
@@ -5704,15 +5710,15 @@ function Fs(r) {
|
|
|
5704
5710
|
s = e.charCodeAt(n), t = (t << 5) - t + s, t |= 0;
|
|
5705
5711
|
return Math.abs(t).toString();
|
|
5706
5712
|
}
|
|
5707
|
-
const
|
|
5713
|
+
const Ir = ({
|
|
5708
5714
|
row: r,
|
|
5709
5715
|
columnWidths: e = {},
|
|
5710
5716
|
level: t = 0,
|
|
5711
5717
|
rowHeight: n = 26,
|
|
5712
5718
|
offsetTop: s
|
|
5713
5719
|
}) => {
|
|
5714
|
-
var
|
|
5715
|
-
const [a, i] = q(!1), o = st(r) && !!((
|
|
5720
|
+
var S;
|
|
5721
|
+
const [a, i] = q(!1), o = st(r) && !!((S = r.children) != null && S.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, u = t * 20, f = () => {
|
|
5716
5722
|
o && i(!a);
|
|
5717
5723
|
}, d = {
|
|
5718
5724
|
content: `${Ee.rowContent} ${o ? Ee.clickable : ""}`,
|
|
@@ -5732,8 +5738,8 @@ const Nr = ({
|
|
|
5732
5738
|
style: { width: `${u}px` },
|
|
5733
5739
|
"aria-hidden": "true"
|
|
5734
5740
|
}
|
|
5735
|
-
),
|
|
5736
|
-
const O =
|
|
5741
|
+
), E = () => {
|
|
5742
|
+
const O = Fs(r) ? "" : r.decode || (c ? "" : "Untitled"), b = s ?? n * t;
|
|
5737
5743
|
return /* @__PURE__ */ g.jsxs(
|
|
5738
5744
|
"tr",
|
|
5739
5745
|
{
|
|
@@ -5744,7 +5750,7 @@ const Nr = ({
|
|
|
5744
5750
|
style: {
|
|
5745
5751
|
height: `${n}px`,
|
|
5746
5752
|
lineHeight: `calc(${n}px - 2*2px)`,
|
|
5747
|
-
transform: `translateY(${
|
|
5753
|
+
transform: `translateY(${b}px)`
|
|
5748
5754
|
},
|
|
5749
5755
|
children: [
|
|
5750
5756
|
st(r) && /* @__PURE__ */ g.jsxs(
|
|
@@ -5761,7 +5767,7 @@ const Nr = ({
|
|
|
5761
5767
|
]
|
|
5762
5768
|
}
|
|
5763
5769
|
),
|
|
5764
|
-
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(
|
|
5765
5771
|
"td",
|
|
5766
5772
|
{
|
|
5767
5773
|
className: d.cell,
|
|
@@ -5771,24 +5777,24 @@ const Nr = ({
|
|
|
5771
5777
|
height: `${n}px`
|
|
5772
5778
|
},
|
|
5773
5779
|
children: m({
|
|
5774
|
-
...
|
|
5780
|
+
...D,
|
|
5775
5781
|
id: y
|
|
5776
5782
|
})
|
|
5777
5783
|
},
|
|
5778
|
-
|
|
5784
|
+
Vs(D) || y
|
|
5779
5785
|
))
|
|
5780
5786
|
]
|
|
5781
5787
|
}
|
|
5782
5788
|
);
|
|
5783
|
-
},
|
|
5789
|
+
}, w = () => {
|
|
5784
5790
|
var O;
|
|
5785
|
-
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((O = r.children) == null ? void 0 : O.map((
|
|
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}`))) });
|
|
5786
5792
|
};
|
|
5787
5793
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5788
|
-
|
|
5789
|
-
|
|
5794
|
+
E(),
|
|
5795
|
+
w()
|
|
5790
5796
|
] });
|
|
5791
|
-
},
|
|
5797
|
+
}, Ys = ({
|
|
5792
5798
|
label: r,
|
|
5793
5799
|
rowHeight: e = 28,
|
|
5794
5800
|
offsetTop: t = 0,
|
|
@@ -5825,18 +5831,18 @@ const Nr = ({
|
|
|
5825
5831
|
width: 16
|
|
5826
5832
|
}
|
|
5827
5833
|
),
|
|
5828
|
-
/* @__PURE__ */ g.jsx(
|
|
5834
|
+
/* @__PURE__ */ g.jsx(ke, { variant: "title", bindValue: r })
|
|
5829
5835
|
]
|
|
5830
5836
|
}
|
|
5831
5837
|
)
|
|
5832
5838
|
}
|
|
5833
5839
|
);
|
|
5834
5840
|
};
|
|
5835
|
-
function
|
|
5841
|
+
function Us(r, e) {
|
|
5836
5842
|
const t = new Set(r);
|
|
5837
5843
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5838
5844
|
}
|
|
5839
|
-
function
|
|
5845
|
+
function Ws(r, e) {
|
|
5840
5846
|
return r.map((t) => {
|
|
5841
5847
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5842
5848
|
return {
|
|
@@ -5845,7 +5851,7 @@ function Us(r, e) {
|
|
|
5845
5851
|
};
|
|
5846
5852
|
});
|
|
5847
5853
|
}
|
|
5848
|
-
function
|
|
5854
|
+
function Bs(r, e, t, n) {
|
|
5849
5855
|
const s = [];
|
|
5850
5856
|
let a = 0;
|
|
5851
5857
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -5855,17 +5861,17 @@ function Ws(r, e, t, n) {
|
|
|
5855
5861
|
return;
|
|
5856
5862
|
}
|
|
5857
5863
|
const p = e[d].column, v = o(f, p);
|
|
5858
|
-
for (const [
|
|
5859
|
-
const
|
|
5860
|
-
s.push(l(
|
|
5864
|
+
for (const [E, w] of v) {
|
|
5865
|
+
const S = [...m, E], O = c(S, d), b = n.has(O);
|
|
5866
|
+
s.push(l(E, O, d, b)), a += t, b && i(w, d + 1, S);
|
|
5861
5867
|
}
|
|
5862
5868
|
}
|
|
5863
5869
|
function o(f, d) {
|
|
5864
5870
|
var p;
|
|
5865
5871
|
const m = /* @__PURE__ */ new Map();
|
|
5866
5872
|
for (const v of f) {
|
|
5867
|
-
const
|
|
5868
|
-
m.has(
|
|
5873
|
+
const E = ((p = v.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
5874
|
+
m.has(E) || m.set(E, []), m.get(E).push(v);
|
|
5869
5875
|
}
|
|
5870
5876
|
return m;
|
|
5871
5877
|
}
|
|
@@ -5887,7 +5893,7 @@ function Ws(r, e, t, n) {
|
|
|
5887
5893
|
s.push(d), a += t;
|
|
5888
5894
|
}
|
|
5889
5895
|
}
|
|
5890
|
-
const
|
|
5896
|
+
const Hs = ({
|
|
5891
5897
|
groups: r = [],
|
|
5892
5898
|
isDraggable: e = !0,
|
|
5893
5899
|
isEditable: t = !0,
|
|
@@ -5909,7 +5915,7 @@ const Bs = ({
|
|
|
5909
5915
|
children: [
|
|
5910
5916
|
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(fe, { icon: "groups" }) }),
|
|
5911
5917
|
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(
|
|
5912
|
-
|
|
5918
|
+
Nt,
|
|
5913
5919
|
{
|
|
5914
5920
|
elements: i,
|
|
5915
5921
|
isEditable: t,
|
|
@@ -5921,7 +5927,7 @@ const Bs = ({
|
|
|
5921
5927
|
]
|
|
5922
5928
|
}
|
|
5923
5929
|
);
|
|
5924
|
-
},
|
|
5930
|
+
}, Gs = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ g.jsx("tfoot", { children: /* @__PURE__ */ g.jsx("tr", { children: r.map(
|
|
5925
5931
|
(t) => t.visible && /* @__PURE__ */ g.jsx(
|
|
5926
5932
|
"td",
|
|
5927
5933
|
{
|
|
@@ -5934,7 +5940,7 @@ const Bs = ({
|
|
|
5934
5940
|
},
|
|
5935
5941
|
t.name
|
|
5936
5942
|
)
|
|
5937
|
-
) }) }),
|
|
5943
|
+
) }) }), Ks = ({
|
|
5938
5944
|
columns: r,
|
|
5939
5945
|
rows: e,
|
|
5940
5946
|
containerRef: t,
|
|
@@ -5960,8 +5966,8 @@ const Bs = ({
|
|
|
5960
5966
|
if (!l.visible) continue;
|
|
5961
5967
|
const u = ((o = l.title) == null ? void 0 : o.length) || 0, f = Math.max(
|
|
5962
5968
|
...e.map((d) => {
|
|
5963
|
-
var m, p, v,
|
|
5964
|
-
return `${((p = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : p.decode) || ((
|
|
5969
|
+
var m, p, v, E;
|
|
5970
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : p.decode) || ((E = (v = d.cells) == null ? void 0 : v[l.name]) == null ? void 0 : E.value) || ""}`.length;
|
|
5965
5971
|
}),
|
|
5966
5972
|
u
|
|
5967
5973
|
);
|
|
@@ -5971,7 +5977,7 @@ const Bs = ({
|
|
|
5971
5977
|
}
|
|
5972
5978
|
}
|
|
5973
5979
|
}, [r, e, t, n]), [s, a];
|
|
5974
|
-
},
|
|
5980
|
+
}, sa = ({
|
|
5975
5981
|
data: r,
|
|
5976
5982
|
lineHeight: e = 28,
|
|
5977
5983
|
TableHeight: t = 400,
|
|
@@ -5980,10 +5986,10 @@ const Bs = ({
|
|
|
5980
5986
|
showGroupBar: a = !0
|
|
5981
5987
|
// isEditable = false,
|
|
5982
5988
|
}) => {
|
|
5983
|
-
var
|
|
5989
|
+
var N;
|
|
5984
5990
|
const [i, o] = q(
|
|
5985
5991
|
r ?? { columns: [], rows: [] }
|
|
5986
|
-
), [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({
|
|
5987
5993
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5988
5994
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5989
5995
|
containerRef: d,
|
|
@@ -5991,7 +5997,7 @@ const Bs = ({
|
|
|
5991
5997
|
});
|
|
5992
5998
|
ne(() => {
|
|
5993
5999
|
if (c != null && c.length && r.rows) {
|
|
5994
|
-
const { flatRows: _ } =
|
|
6000
|
+
const { flatRows: _ } = Bs(
|
|
5995
6001
|
r.rows,
|
|
5996
6002
|
c,
|
|
5997
6003
|
e,
|
|
@@ -6002,24 +6008,24 @@ const Bs = ({
|
|
|
6002
6008
|
o(r);
|
|
6003
6009
|
}, [r, c, u, e]);
|
|
6004
6010
|
const v = (_) => {
|
|
6005
|
-
l(
|
|
6006
|
-
},
|
|
6011
|
+
l(Ws(_, c));
|
|
6012
|
+
}, E = (_) => {
|
|
6007
6013
|
_.preventDefault();
|
|
6008
6014
|
const T = _.dataTransfer.getData("text/plain");
|
|
6009
6015
|
if (!T || c.some((P) => P.column === T))
|
|
6010
6016
|
return;
|
|
6011
|
-
const
|
|
6012
|
-
l(
|
|
6013
|
-
},
|
|
6017
|
+
const k = [...c, { column: T, visible: !0 }];
|
|
6018
|
+
l(k);
|
|
6019
|
+
}, w = (_) => {
|
|
6014
6020
|
_.preventDefault();
|
|
6015
|
-
}, { virtualItems:
|
|
6021
|
+
}, { virtualItems: S, containerProps: O, innerProps: b } = Pr({
|
|
6016
6022
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
6017
6023
|
itemHeight: e,
|
|
6018
6024
|
containerHeight: t,
|
|
6019
6025
|
overscan: 5
|
|
6020
6026
|
}), y = (_, T) => {
|
|
6021
|
-
const
|
|
6022
|
-
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);
|
|
6023
6029
|
p((z) => ({
|
|
6024
6030
|
...z,
|
|
6025
6031
|
[T]: W
|
|
@@ -6028,7 +6034,7 @@ const Bs = ({
|
|
|
6028
6034
|
window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", A);
|
|
6029
6035
|
};
|
|
6030
6036
|
window.addEventListener("mousemove", P), window.addEventListener("mouseup", A);
|
|
6031
|
-
},
|
|
6037
|
+
}, D = {
|
|
6032
6038
|
smpTable: `${nt["smp-table"]}`,
|
|
6033
6039
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
6034
6040
|
resizer: `${nt["smp-resizer"]}`
|
|
@@ -6036,25 +6042,25 @@ const Bs = ({
|
|
|
6036
6042
|
return i && /* @__PURE__ */ g.jsx(
|
|
6037
6043
|
"div",
|
|
6038
6044
|
{
|
|
6039
|
-
className:
|
|
6045
|
+
className: D.smpTable,
|
|
6040
6046
|
...O,
|
|
6041
6047
|
ref: d,
|
|
6042
6048
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6043
6049
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6044
6050
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
6045
|
-
|
|
6051
|
+
Hs,
|
|
6046
6052
|
{
|
|
6047
6053
|
groups: c,
|
|
6048
6054
|
onChange: v,
|
|
6049
|
-
onDrop:
|
|
6050
|
-
onDragOver:
|
|
6055
|
+
onDrop: E,
|
|
6056
|
+
onDragOver: w
|
|
6051
6057
|
}
|
|
6052
6058
|
),
|
|
6053
|
-
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((
|
|
6059
|
+
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((N = i.columns) == null ? void 0 : N.map(
|
|
6054
6060
|
(_) => _.visible && /* @__PURE__ */ g.jsxs(
|
|
6055
6061
|
"th",
|
|
6056
6062
|
{
|
|
6057
|
-
className:
|
|
6063
|
+
className: D.headerCell,
|
|
6058
6064
|
draggable: !0,
|
|
6059
6065
|
onDragStart: (T) => {
|
|
6060
6066
|
T.dataTransfer.setData("text/plain", _.name);
|
|
@@ -6066,7 +6072,7 @@ const Bs = ({
|
|
|
6066
6072
|
},
|
|
6067
6073
|
children: [
|
|
6068
6074
|
/* @__PURE__ */ g.jsx(
|
|
6069
|
-
|
|
6075
|
+
ke,
|
|
6070
6076
|
{
|
|
6071
6077
|
variant: "title",
|
|
6072
6078
|
bindValue: _.title
|
|
@@ -6075,7 +6081,7 @@ const Bs = ({
|
|
|
6075
6081
|
/* @__PURE__ */ g.jsx(
|
|
6076
6082
|
"div",
|
|
6077
6083
|
{
|
|
6078
|
-
className:
|
|
6084
|
+
className: D.resizer,
|
|
6079
6085
|
onMouseDown: (T) => y(T, _.name),
|
|
6080
6086
|
role: "region"
|
|
6081
6087
|
}
|
|
@@ -6086,39 +6092,39 @@ const Bs = ({
|
|
|
6086
6092
|
)
|
|
6087
6093
|
)) })
|
|
6088
6094
|
] }),
|
|
6089
|
-
/* @__PURE__ */ g.jsx("tbody", { ...
|
|
6090
|
-
const
|
|
6095
|
+
/* @__PURE__ */ g.jsx("tbody", { ...b, children: S.map(({ item: _, index: T, offsetTop: R }) => {
|
|
6096
|
+
const k = _.rowId || _.value || `${_.isGroup ? "group" : "row"}-${T}`;
|
|
6091
6097
|
return _.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6092
|
-
|
|
6098
|
+
Ys,
|
|
6093
6099
|
{
|
|
6094
6100
|
label: _.value || "",
|
|
6095
6101
|
rowHeight: e,
|
|
6096
|
-
offsetTop:
|
|
6102
|
+
offsetTop: R,
|
|
6097
6103
|
level: _.level,
|
|
6098
6104
|
onClick: () => {
|
|
6099
6105
|
const P = _.rowId;
|
|
6100
|
-
P && f((A) =>
|
|
6106
|
+
P && f((A) => Us(A, P));
|
|
6101
6107
|
},
|
|
6102
6108
|
isExpanded: _.isExpanded
|
|
6103
6109
|
},
|
|
6104
|
-
`group-${
|
|
6110
|
+
`group-${k}`
|
|
6105
6111
|
) : /* @__PURE__ */ g.jsx(
|
|
6106
|
-
|
|
6112
|
+
Ir,
|
|
6107
6113
|
{
|
|
6108
6114
|
row: _,
|
|
6109
6115
|
columnWidths: m,
|
|
6110
6116
|
rowHeight: e,
|
|
6111
|
-
offsetTop:
|
|
6117
|
+
offsetTop: R,
|
|
6112
6118
|
isGroup: !1
|
|
6113
6119
|
},
|
|
6114
|
-
`row-${
|
|
6120
|
+
`row-${k}`
|
|
6115
6121
|
);
|
|
6116
6122
|
}) }),
|
|
6117
|
-
/* @__PURE__ */ g.jsx(
|
|
6123
|
+
/* @__PURE__ */ g.jsx(Gs, { columns: i.columns, columnWidths: m })
|
|
6118
6124
|
] })
|
|
6119
6125
|
}
|
|
6120
6126
|
);
|
|
6121
|
-
},
|
|
6127
|
+
}, aa = ({
|
|
6122
6128
|
data: r,
|
|
6123
6129
|
Type: e,
|
|
6124
6130
|
ShowSubmit: t = !1,
|
|
@@ -6136,7 +6142,7 @@ const Bs = ({
|
|
|
6136
6142
|
if (!r)
|
|
6137
6143
|
return;
|
|
6138
6144
|
const v = { ...r };
|
|
6139
|
-
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;
|
|
6140
6146
|
});
|
|
6141
6147
|
}, [r, s, e]);
|
|
6142
6148
|
const m = {
|
|
@@ -6180,18 +6186,18 @@ const Bs = ({
|
|
|
6180
6186
|
}
|
|
6181
6187
|
)
|
|
6182
6188
|
] });
|
|
6183
|
-
},
|
|
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(
|
|
6184
6190
|
(e) => ({
|
|
6185
6191
|
id: e.obj.k,
|
|
6186
6192
|
label: e.value ?? ""
|
|
6187
6193
|
})
|
|
6188
|
-
) : [] :
|
|
6194
|
+
) : [] : zs(r) ? r.rows.map((e) => {
|
|
6189
6195
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
6190
6196
|
return {
|
|
6191
6197
|
id: t[n].obj.k,
|
|
6192
6198
|
label: t[s].value || t[s].obj.k
|
|
6193
6199
|
};
|
|
6194
|
-
}) : [],
|
|
6200
|
+
}) : [], ia = ({
|
|
6195
6201
|
data: r,
|
|
6196
6202
|
readOnly: e = !1,
|
|
6197
6203
|
hiddenSubmitButton: t = !1,
|
|
@@ -6202,76 +6208,76 @@ const Bs = ({
|
|
|
6202
6208
|
onCheckObj: o,
|
|
6203
6209
|
onContextMenu: c
|
|
6204
6210
|
}) => {
|
|
6205
|
-
var
|
|
6211
|
+
var S, O;
|
|
6206
6212
|
const [l, u] = q({}), { translate: f } = je();
|
|
6207
6213
|
ne(() => {
|
|
6208
6214
|
u(v(r));
|
|
6209
6215
|
}, [r]);
|
|
6210
|
-
const d = (
|
|
6211
|
-
u((
|
|
6212
|
-
...
|
|
6213
|
-
[
|
|
6214
|
-
...
|
|
6216
|
+
const d = (b, y) => {
|
|
6217
|
+
u((D) => ({
|
|
6218
|
+
...D,
|
|
6219
|
+
[b]: {
|
|
6220
|
+
...D[b],
|
|
6215
6221
|
obj: {
|
|
6216
|
-
...
|
|
6222
|
+
...D[b].obj,
|
|
6217
6223
|
k: y.obj.k
|
|
6218
6224
|
},
|
|
6219
6225
|
decode: y.decode,
|
|
6220
6226
|
data: {
|
|
6221
|
-
...
|
|
6227
|
+
...D[b].data,
|
|
6222
6228
|
error: void 0
|
|
6223
6229
|
},
|
|
6224
6230
|
// FIXME: remove this when webup.js will not use value
|
|
6225
6231
|
value: y.obj.k
|
|
6226
6232
|
}
|
|
6227
6233
|
})), n && (y.shape == te.CHECKBOX || y.shape == te.SWITCH) && m();
|
|
6228
|
-
}, m = (
|
|
6229
|
-
const y =
|
|
6234
|
+
}, m = (b) => {
|
|
6235
|
+
const y = E();
|
|
6230
6236
|
a({
|
|
6231
6237
|
value: y,
|
|
6232
|
-
cell:
|
|
6238
|
+
cell: b
|
|
6233
6239
|
});
|
|
6234
|
-
}, p = async (
|
|
6235
|
-
var y,
|
|
6236
|
-
if (l[
|
|
6237
|
-
obj: l[
|
|
6238
|
-
fun: l[
|
|
6239
|
-
cellId:
|
|
6240
|
+
}, p = async (b) => {
|
|
6241
|
+
var y, D;
|
|
6242
|
+
if (l[b].obj.k != r.rows[0].cells[b].obj.k && ((y = l[b].inputSettings) != null && y.checkObject && o && ((await o({
|
|
6243
|
+
obj: l[b].obj,
|
|
6244
|
+
fun: l[b].fun,
|
|
6245
|
+
cellId: b
|
|
6240
6246
|
})).valid || u((_) => ({
|
|
6241
6247
|
..._,
|
|
6242
|
-
[
|
|
6243
|
-
..._[
|
|
6248
|
+
[b]: {
|
|
6249
|
+
..._[b],
|
|
6244
6250
|
data: {
|
|
6245
|
-
..._[
|
|
6246
|
-
error: f(
|
|
6251
|
+
..._[b].data,
|
|
6252
|
+
error: f(Ne.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6247
6253
|
}
|
|
6248
6254
|
}
|
|
6249
|
-
}))), (
|
|
6250
|
-
const
|
|
6255
|
+
}))), (D = l[b].inputSettings) != null && D.checkValueOnExit)) {
|
|
6256
|
+
const N = E();
|
|
6251
6257
|
i == null || i({
|
|
6252
|
-
value:
|
|
6253
|
-
cell:
|
|
6258
|
+
value: N,
|
|
6259
|
+
cell: b
|
|
6254
6260
|
});
|
|
6255
6261
|
}
|
|
6256
|
-
}, v = (
|
|
6257
|
-
var
|
|
6258
|
-
if (!((
|
|
6262
|
+
}, v = (b) => {
|
|
6263
|
+
var D, N, _;
|
|
6264
|
+
if (!((D = b.rows) != null && D.length) || !((N = b.columns) != null && N.length))
|
|
6259
6265
|
return {};
|
|
6260
|
-
const y = (_ =
|
|
6261
|
-
return
|
|
6262
|
-
const
|
|
6263
|
-
...y.cells[
|
|
6264
|
-
id:
|
|
6265
|
-
label:
|
|
6266
|
+
const y = (_ = b.rows) == null ? void 0 : _[0];
|
|
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
|
|
6266
6272
|
};
|
|
6267
|
-
return
|
|
6268
|
-
await s(P, A, r,
|
|
6269
|
-
)),
|
|
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), {
|
|
6270
6276
|
...T,
|
|
6271
|
-
[
|
|
6277
|
+
[R.name]: k
|
|
6272
6278
|
};
|
|
6273
6279
|
}, {});
|
|
6274
|
-
},
|
|
6280
|
+
}, E = () => ({
|
|
6275
6281
|
before: r,
|
|
6276
6282
|
after: {
|
|
6277
6283
|
type: "SmeupDataTable",
|
|
@@ -6282,23 +6288,23 @@ const Bs = ({
|
|
|
6282
6288
|
}
|
|
6283
6289
|
]
|
|
6284
6290
|
}
|
|
6285
|
-
}),
|
|
6291
|
+
}), w = ((O = (S = r.setup) == null ? void 0 : S.commands) == null ? void 0 : O.map((b, y) => /* @__PURE__ */ Wr(
|
|
6286
6292
|
Te,
|
|
6287
6293
|
{
|
|
6288
|
-
...
|
|
6289
|
-
decode:
|
|
6294
|
+
...b,
|
|
6295
|
+
decode: b.value,
|
|
6290
6296
|
id: `command-${y}`,
|
|
6291
6297
|
key: `command-${y}`,
|
|
6292
6298
|
shape: te.BUTTON,
|
|
6293
|
-
onClick: () => m(
|
|
6299
|
+
onClick: () => m(b.obj.k)
|
|
6294
6300
|
}
|
|
6295
6301
|
))) || [];
|
|
6296
|
-
return t ||
|
|
6302
|
+
return t || w.unshift(
|
|
6297
6303
|
/* @__PURE__ */ g.jsx(
|
|
6298
6304
|
Te,
|
|
6299
6305
|
{
|
|
6300
6306
|
onClick: () => m(),
|
|
6301
|
-
decode: f(
|
|
6307
|
+
decode: f(Ne.CONFIRM_BUTTON),
|
|
6302
6308
|
shape: te.BUTTON,
|
|
6303
6309
|
id: "",
|
|
6304
6310
|
obj: {
|
|
@@ -6316,22 +6322,22 @@ const Bs = ({
|
|
|
6316
6322
|
style: {
|
|
6317
6323
|
padding: "1em 0"
|
|
6318
6324
|
},
|
|
6319
|
-
children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(l).map((
|
|
6325
|
+
children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(l).map((b) => /* @__PURE__ */ g.jsx(
|
|
6320
6326
|
Te,
|
|
6321
6327
|
{
|
|
6322
|
-
...
|
|
6323
|
-
onChange: (y) => d(
|
|
6324
|
-
onBlur: () => p(
|
|
6328
|
+
...b,
|
|
6329
|
+
onChange: (y) => d(b.id, y),
|
|
6330
|
+
onBlur: () => p(b.id),
|
|
6325
6331
|
onContextMenu: c,
|
|
6326
6332
|
data: {
|
|
6327
|
-
...
|
|
6333
|
+
...b.data,
|
|
6328
6334
|
autocomplete: "off"
|
|
6329
6335
|
}
|
|
6330
6336
|
}
|
|
6331
6337
|
)) })
|
|
6332
6338
|
}
|
|
6333
6339
|
),
|
|
6334
|
-
|
|
6340
|
+
w.length > 0 && /* @__PURE__ */ g.jsx(
|
|
6335
6341
|
it,
|
|
6336
6342
|
{
|
|
6337
6343
|
layout: {
|
|
@@ -6340,32 +6346,32 @@ const Bs = ({
|
|
|
6340
6346
|
id: "1",
|
|
6341
6347
|
horizontal: !0,
|
|
6342
6348
|
justify: "start",
|
|
6343
|
-
content:
|
|
6344
|
-
id:
|
|
6349
|
+
content: w.map((b) => ({
|
|
6350
|
+
id: b.props.id
|
|
6345
6351
|
}))
|
|
6346
6352
|
}
|
|
6347
6353
|
]
|
|
6348
6354
|
},
|
|
6349
|
-
children:
|
|
6355
|
+
children: w
|
|
6350
6356
|
}
|
|
6351
6357
|
)
|
|
6352
6358
|
] });
|
|
6353
6359
|
};
|
|
6354
6360
|
export {
|
|
6355
|
-
|
|
6361
|
+
ta as AppBar,
|
|
6356
6362
|
kr as Autocomplete,
|
|
6357
6363
|
Be as Button,
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
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,
|
|
6366
6372
|
fe as Icon,
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6373
|
+
ia as InputPanel,
|
|
6374
|
+
xs as Password,
|
|
6375
|
+
Re as Textfield,
|
|
6376
|
+
ea as configurePaths
|
|
6371
6377
|
};
|