@sme.up/ketchup2 2.0.0-SNAPSHOT-20250625123048 → 2.0.0-SNAPSHOT-20250625153756
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/list/list-utils.d.ts +13 -0
- package/dist/basic-components/list/list-utils.d.ts.map +1 -0
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +1187 -1172
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var me = (r, e, t) => Fr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
|
4
4
|
import * as He from "react";
|
|
5
5
|
import nt, { useEffect as ne, useRef as ce, useState as K, useCallback as le, useLayoutEffect as Vr, useId as Be, useMemo as Yr, createElement as Ur } from "react";
|
|
6
6
|
import { createPortal as Wr } from "react-dom";
|
|
7
|
-
var Ge = { exports: {} },
|
|
7
|
+
var Ge = { exports: {} }, Ie = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.js
|
|
@@ -16,7 +16,7 @@ var Ge = { exports: {} }, Ne = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var Nt;
|
|
18
18
|
function Br() {
|
|
19
|
-
if (Nt) return
|
|
19
|
+
if (Nt) return Ie;
|
|
20
20
|
Nt = 1;
|
|
21
21
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
22
22
|
function t(n, s, a) {
|
|
@@ -34,9 +34,9 @@ function Br() {
|
|
|
34
34
|
props: a
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return Ie.Fragment = e, Ie.jsx = t, Ie.jsxs = t, Ie;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var Me = {};
|
|
40
40
|
/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-jsx-runtime.development.js
|
|
@@ -52,18 +52,18 @@ function Hr() {
|
|
|
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 === $ ? 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 w:
|
|
61
|
-
return "Profiler";
|
|
62
60
|
case T:
|
|
61
|
+
return "Profiler";
|
|
62
|
+
case E:
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case g:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case D:
|
|
67
67
|
return "SuspenseList";
|
|
68
68
|
case O:
|
|
69
69
|
return "Activity";
|
|
@@ -74,16 +74,16 @@ function Hr() {
|
|
|
74
74
|
), h.$$typeof) {
|
|
75
75
|
case p:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case j:
|
|
78
78
|
return (h.displayName || "Context") + ".Provider";
|
|
79
79
|
case b:
|
|
80
80
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case
|
|
81
|
+
case S:
|
|
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
84
|
case k:
|
|
85
85
|
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
86
|
-
case
|
|
86
|
+
case w:
|
|
87
87
|
x = h._payload, h = h._init;
|
|
88
88
|
try {
|
|
89
89
|
return r(h(x));
|
|
@@ -104,8 +104,8 @@ function Hr() {
|
|
|
104
104
|
}
|
|
105
105
|
if (x) {
|
|
106
106
|
x = console;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var R = x.error, A = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return R.call(
|
|
109
109
|
x,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
A
|
|
@@ -114,7 +114,7 @@ function Hr() {
|
|
|
114
114
|
}
|
|
115
115
|
function n(h) {
|
|
116
116
|
if (h === v) return "<>";
|
|
117
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
117
|
+
if (typeof h == "object" && h !== null && h.$$typeof === w)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
120
|
var x = r(h);
|
|
@@ -124,28 +124,28 @@ function Hr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = F.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function i(h) {
|
|
134
|
-
if (
|
|
134
|
+
if (P.call(h, "key")) {
|
|
135
135
|
var x = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
136
136
|
if (x && x.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
138
|
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
140
|
function o(h, x) {
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function R() {
|
|
142
|
+
N || (N = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
x
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
R.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: R,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
@@ -155,14 +155,14 @@ function Hr() {
|
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function u(h, x,
|
|
159
|
-
return
|
|
158
|
+
function u(h, x, R, A, _, L, U, W) {
|
|
159
|
+
return R = L.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: x,
|
|
163
163
|
props: L,
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
164
|
+
_owner: _
|
|
165
|
+
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: l
|
|
168
168
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -179,19 +179,19 @@ function Hr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: U
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
|
-
value:
|
|
187
|
+
value: W
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function c(h, x,
|
|
190
|
+
function c(h, x, R, A, _, L, U, W) {
|
|
191
191
|
var V = x.children;
|
|
192
192
|
if (V !== void 0)
|
|
193
193
|
if (A)
|
|
194
|
-
if (
|
|
194
|
+
if (C(V)) {
|
|
195
195
|
for (A = 0; A < V.length; A++)
|
|
196
196
|
f(V[A]);
|
|
197
197
|
Object.freeze && Object.freeze(V);
|
|
@@ -200,12 +200,12 @@ function Hr() {
|
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
202
|
else f(V);
|
|
203
|
-
if (
|
|
203
|
+
if (P.call(x, "key")) {
|
|
204
204
|
V = r(h);
|
|
205
205
|
var J = Object.keys(x).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
A = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}",
|
|
208
|
+
A = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", M[V + A] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -216,31 +216,31 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
V,
|
|
217
217
|
J,
|
|
218
218
|
V
|
|
219
|
-
),
|
|
219
|
+
), M[V + A] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (V = null,
|
|
222
|
-
|
|
221
|
+
if (V = null, R !== void 0 && (t(R), V = "" + R), i(x) && (t(x.key), V = "" + x.key), "key" in x) {
|
|
222
|
+
R = {};
|
|
223
223
|
for (var G in x)
|
|
224
|
-
G !== "key" && (
|
|
225
|
-
} else
|
|
224
|
+
G !== "key" && (R[G] = x[G]);
|
|
225
|
+
} else R = x;
|
|
226
226
|
return V && o(
|
|
227
|
-
|
|
227
|
+
R,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), u(
|
|
230
230
|
h,
|
|
231
231
|
V,
|
|
232
232
|
L,
|
|
233
|
-
|
|
233
|
+
_,
|
|
234
234
|
s(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
R,
|
|
236
|
+
U,
|
|
237
|
+
W
|
|
238
238
|
);
|
|
239
239
|
}
|
|
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 = nt, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"),
|
|
243
|
+
var d = nt, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), j = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), F = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, C = Array.isArray, Y = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
@@ -248,36 +248,36 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var N, H = {}, q = d["react-stack-bottom-frame"].bind(
|
|
252
252
|
d,
|
|
253
253
|
a
|
|
254
|
-
)(),
|
|
255
|
-
|
|
256
|
-
var L = 1e4 >
|
|
254
|
+
)(), X = Y(n(a)), M = {};
|
|
255
|
+
Me.Fragment = v, Me.jsx = function(h, x, R, A, _) {
|
|
256
|
+
var L = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return c(
|
|
258
258
|
h,
|
|
259
259
|
x,
|
|
260
|
-
|
|
260
|
+
R,
|
|
261
261
|
!1,
|
|
262
262
|
A,
|
|
263
|
-
|
|
263
|
+
_,
|
|
264
264
|
L ? Error("react-stack-top-frame") : q,
|
|
265
|
-
L ?
|
|
265
|
+
L ? Y(n(h)) : X
|
|
266
266
|
);
|
|
267
|
-
},
|
|
268
|
-
var L = 1e4 >
|
|
267
|
+
}, Me.jsxs = function(h, x, R, A, _) {
|
|
268
|
+
var L = 1e4 > F.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return c(
|
|
270
270
|
h,
|
|
271
271
|
x,
|
|
272
|
-
|
|
272
|
+
R,
|
|
273
273
|
!0,
|
|
274
274
|
A,
|
|
275
|
-
|
|
275
|
+
_,
|
|
276
276
|
L ? Error("react-stack-top-frame") : q,
|
|
277
|
-
L ?
|
|
277
|
+
L ? Y(n(h)) : X
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
|
-
}()),
|
|
280
|
+
}()), Me;
|
|
281
281
|
}
|
|
282
282
|
var Mt;
|
|
283
283
|
function Gr() {
|
|
@@ -365,19 +365,19 @@ const je = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
365
365
|
e.sections ?? [],
|
|
366
366
|
Object.keys(t)
|
|
367
367
|
), i = (d) => d.reduce((m, p) => {
|
|
368
|
-
var
|
|
369
|
-
let v = "",
|
|
370
|
-
return (
|
|
368
|
+
var j, S;
|
|
369
|
+
let v = "", E = {}, T = {}, b = "";
|
|
370
|
+
return (j = p.sections) != null && j.length ? (v = ge["smp-layout-section-grid"], E = i(p.sections), p.gridCols === void 0 && (b = ge[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (p.horizontal || Vt(p.sections)) && (T = Ft(
|
|
371
371
|
p.sections,
|
|
372
372
|
p.horizontal ? n : s
|
|
373
|
-
)))) : (
|
|
373
|
+
)))) : (S = p.content) != null && S.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (v = ge["smp-layout-section-grid"], b = ge["smp-grid-template-cols"], T = {
|
|
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
379
|
classes: `${v} ${ge[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${b} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
380
|
-
styles:
|
|
380
|
+
styles: T
|
|
381
381
|
}
|
|
382
382
|
};
|
|
383
383
|
}, {}), o = i(a), l = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, u = e.horizontal || Vt(e.sections || []) ? Ft(
|
|
@@ -391,8 +391,8 @@ const je = ({ 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) => c(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}`
|
|
@@ -417,7 +417,7 @@ const je = ({ 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 T = {
|
|
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
|
}, b = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${p ? `smp-alignItems-${p}` : ""}`;
|
|
@@ -425,7 +425,7 @@ const je = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
className: b,
|
|
428
|
-
style:
|
|
428
|
+
style: T,
|
|
429
429
|
"smp-id": d.id,
|
|
430
430
|
children: v
|
|
431
431
|
},
|
|
@@ -630,7 +630,7 @@ function pt({
|
|
|
630
630
|
requestAnimationFrame(i);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
let v = u + window.scrollY,
|
|
633
|
+
let v = u + window.scrollY, E = c + window.scrollX;
|
|
634
634
|
switch (r) {
|
|
635
635
|
case "top":
|
|
636
636
|
v -= m;
|
|
@@ -639,14 +639,14 @@ function pt({
|
|
|
639
639
|
v += d;
|
|
640
640
|
break;
|
|
641
641
|
case "left":
|
|
642
|
-
|
|
642
|
+
E -= p;
|
|
643
643
|
break;
|
|
644
644
|
case "right":
|
|
645
|
-
|
|
645
|
+
E += f;
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
requestAnimationFrame(() => {
|
|
649
|
-
l.style.transform = `translate(${
|
|
649
|
+
l.style.transform = `translate(${E}px, ${v}px)`, l.style.opacity = "1";
|
|
650
650
|
});
|
|
651
651
|
}, [r]);
|
|
652
652
|
return Vr(() => {
|
|
@@ -661,7 +661,7 @@ function pt({
|
|
|
661
661
|
};
|
|
662
662
|
}, [i, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
|
|
663
663
|
}
|
|
664
|
-
const
|
|
664
|
+
const ke = (r, e, t) => {
|
|
665
665
|
if (r == "")
|
|
666
666
|
return "";
|
|
667
667
|
if (t)
|
|
@@ -736,8 +736,8 @@ function nn() {
|
|
|
736
736
|
throw new TypeError("invalid type");
|
|
737
737
|
var p = m;
|
|
738
738
|
if (d && typeof d == "object")
|
|
739
|
-
for (var v,
|
|
740
|
-
if (v = T
|
|
739
|
+
for (var v, E = Object.keys(d).sort(), T = 0; T < E.length; T++) {
|
|
740
|
+
if (v = E[T], !t.test(v))
|
|
741
741
|
throw new TypeError("invalid parameter name");
|
|
742
742
|
p += "; " + v + "=" + u(d[v]);
|
|
743
743
|
}
|
|
@@ -754,11 +754,11 @@ function nn() {
|
|
|
754
754
|
throw new TypeError("invalid media type");
|
|
755
755
|
var v = new c(p.toLowerCase());
|
|
756
756
|
if (m !== -1) {
|
|
757
|
-
var
|
|
758
|
-
for (r.lastIndex = m;
|
|
759
|
-
if (
|
|
757
|
+
var E, T, b;
|
|
758
|
+
for (r.lastIndex = m; T = r.exec(d); ) {
|
|
759
|
+
if (T.index !== m)
|
|
760
760
|
throw new TypeError("invalid parameter format");
|
|
761
|
-
m +=
|
|
761
|
+
m += T[0].length, E = T[1].toLowerCase(), b = T[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(n, "$1"))), v.parameters[E] = b;
|
|
762
762
|
}
|
|
763
763
|
if (m !== d.length)
|
|
764
764
|
throw new TypeError("invalid parameter format");
|
|
@@ -875,17 +875,17 @@ var sn = nn(), $e = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
875
875
|
p && f.setAttribute("width", p);
|
|
876
876
|
var v = e.getAttribute("height");
|
|
877
877
|
v && f.setAttribute("height", v);
|
|
878
|
-
var
|
|
879
|
-
f.setAttribute("class",
|
|
880
|
-
var
|
|
881
|
-
|
|
882
|
-
var b = [].filter.call(e.attributes, function(
|
|
883
|
-
return /^data-\w[\w-]*$/.test(
|
|
878
|
+
var E = Array.from(new Set(yt(yt(yt([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
879
|
+
f.setAttribute("class", E);
|
|
880
|
+
var T = e.getAttribute("style");
|
|
881
|
+
T && f.setAttribute("style", T), f.setAttribute("data-src", l);
|
|
882
|
+
var b = [].filter.call(e.attributes, function(X) {
|
|
883
|
+
return /^data-\w[\w-]*$/.test(X.name);
|
|
884
884
|
});
|
|
885
|
-
if (Array.prototype.forEach.call(b, function(
|
|
886
|
-
|
|
885
|
+
if (Array.prototype.forEach.call(b, function(X) {
|
|
886
|
+
X.name && X.value && f.setAttribute(X.name, X.value);
|
|
887
887
|
}), n) {
|
|
888
|
-
var
|
|
888
|
+
var j = {
|
|
889
889
|
clipPath: ["clip-path"],
|
|
890
890
|
"color-profile": ["color-profile"],
|
|
891
891
|
cursor: ["cursor"],
|
|
@@ -896,41 +896,41 @@ var sn = nn(), $e = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
896
896
|
path: [],
|
|
897
897
|
pattern: ["fill", "stroke"],
|
|
898
898
|
radialGradient: ["fill", "stroke"]
|
|
899
|
-
},
|
|
900
|
-
Object.keys(
|
|
901
|
-
|
|
902
|
-
for (var
|
|
903
|
-
k = g[A].id,
|
|
899
|
+
}, S, g, D, k, w;
|
|
900
|
+
Object.keys(j).forEach(function(X) {
|
|
901
|
+
S = X, D = j[X], g = f.querySelectorAll(S + "[id]");
|
|
902
|
+
for (var M = function(A, _) {
|
|
903
|
+
k = g[A].id, w = k + "-" + un();
|
|
904
904
|
var L;
|
|
905
|
-
Array.prototype.forEach.call(
|
|
906
|
-
L = f.querySelectorAll("[" +
|
|
907
|
-
for (var
|
|
908
|
-
var se = L[
|
|
909
|
-
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || L[
|
|
905
|
+
Array.prototype.forEach.call(D, function(B) {
|
|
906
|
+
L = f.querySelectorAll("[" + B + '*="' + k + '"]');
|
|
907
|
+
for (var Z = 0, re = L.length; Z < re; Z++) {
|
|
908
|
+
var se = L[Z].getAttribute(B);
|
|
909
|
+
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || L[Z].setAttribute(B, "url(#" + w + ")");
|
|
910
910
|
}
|
|
911
911
|
});
|
|
912
|
-
for (var
|
|
913
|
-
var G =
|
|
914
|
-
G && G.toString() === "#" + g[A].id &&
|
|
912
|
+
for (var U = f.querySelectorAll("[*|href]"), W = [], V = 0, J = U.length; V < J; V++) {
|
|
913
|
+
var G = U[V].getAttributeNS(vt, "href");
|
|
914
|
+
G && G.toString() === "#" + g[A].id && W.push(U[V]);
|
|
915
915
|
}
|
|
916
|
-
for (var ae = 0,
|
|
917
|
-
|
|
918
|
-
g[A].id =
|
|
916
|
+
for (var ae = 0, I = W.length; ae < I; ae++)
|
|
917
|
+
W[ae].setAttributeNS(vt, "href", "#" + w);
|
|
918
|
+
g[A].id = w;
|
|
919
919
|
}, h = 0, x = g.length; h < x; h++)
|
|
920
|
-
|
|
920
|
+
M(h);
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
f.removeAttribute("xmlns:a");
|
|
924
|
-
for (var O = f.querySelectorAll("script"),
|
|
925
|
-
|
|
926
|
-
if (
|
|
927
|
-
for (var
|
|
928
|
-
new Function(
|
|
924
|
+
for (var O = f.querySelectorAll("script"), $ = [], F, P, C = 0, Y = O.length; C < Y; C++)
|
|
925
|
+
P = O[C].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (F = O[C].innerText || O[C].textContent, F && $.push(F), f.removeChild(O[C]));
|
|
926
|
+
if ($.length > 0 && (t === "always" || t === "once" && !Ht[l])) {
|
|
927
|
+
for (var N = 0, H = $.length; N < H; N++)
|
|
928
|
+
new Function($[N])(window);
|
|
929
929
|
Ht[l] = !0;
|
|
930
930
|
}
|
|
931
931
|
var q = f.querySelectorAll("style");
|
|
932
|
-
if (Array.prototype.forEach.call(q, function(
|
|
933
|
-
|
|
932
|
+
if (Array.prototype.forEach.call(q, function(X) {
|
|
933
|
+
X.textContent += "";
|
|
934
934
|
}), f.setAttribute("xmlns", fn), f.setAttribute("xmlns:xlink", vt), i(f), !e.parentNode) {
|
|
935
935
|
xe.splice(xe.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
936
936
|
return;
|
|
@@ -941,14 +941,14 @@ var sn = nn(), $e = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
941
941
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
942
942
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
943
943
|
} : i, l = n.beforeEach, u = l === void 0 ? function() {
|
|
944
|
-
} : l, c = n.cacheRequests, f = c === void 0 ? !0 : c, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p,
|
|
944
|
+
} : l, c = n.cacheRequests, f = c === void 0 ? !0 : c, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p, E = n.renumerateIRIElements, T = E === void 0 ? !0 : E;
|
|
945
945
|
if (e && "length" in e)
|
|
946
|
-
for (var b = 0,
|
|
947
|
-
Gt(e[
|
|
948
|
-
o(g,
|
|
946
|
+
for (var b = 0, j = 0, S = e.length; j < S; j++)
|
|
947
|
+
Gt(e[j], m, T, f, v, u, function(g, D) {
|
|
948
|
+
o(g, D), e && "length" in e && e.length === ++b && a(b);
|
|
949
949
|
});
|
|
950
|
-
else e ? Gt(e, m,
|
|
951
|
-
o(g,
|
|
950
|
+
else e ? Gt(e, m, T, f, v, u, function(g, D) {
|
|
951
|
+
o(g, D), a(1), e = null;
|
|
952
952
|
}) : a(0);
|
|
953
953
|
}, qe = { exports: {} }, Je = { exports: {} }, Q = {};
|
|
954
954
|
/** @license React v16.13.1
|
|
@@ -963,11 +963,11 @@ var zt;
|
|
|
963
963
|
function pn() {
|
|
964
964
|
if (zt) return Q;
|
|
965
965
|
zt = 1;
|
|
966
|
-
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, l = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, c = 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,
|
|
967
|
-
function
|
|
966
|
+
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, l = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, c = 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, T = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
|
|
967
|
+
function j(g) {
|
|
968
968
|
if (typeof g == "object" && g !== null) {
|
|
969
|
-
var
|
|
970
|
-
switch (
|
|
969
|
+
var D = g.$$typeof;
|
|
970
|
+
switch (D) {
|
|
971
971
|
case e:
|
|
972
972
|
switch (g = g.type, g) {
|
|
973
973
|
case l:
|
|
@@ -986,44 +986,44 @@ function pn() {
|
|
|
986
986
|
case i:
|
|
987
987
|
return g;
|
|
988
988
|
default:
|
|
989
|
-
return
|
|
989
|
+
return D;
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
case t:
|
|
993
|
-
return
|
|
993
|
+
return D;
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
return
|
|
997
|
+
function S(g) {
|
|
998
|
+
return j(g) === u;
|
|
999
999
|
}
|
|
1000
1000
|
return Q.AsyncMode = l, Q.ConcurrentMode = u, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = c, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = f, Q.isAsyncMode = function(g) {
|
|
1001
|
-
return
|
|
1002
|
-
}, Q.isConcurrentMode =
|
|
1003
|
-
return
|
|
1001
|
+
return S(g) || j(g) === l;
|
|
1002
|
+
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(g) {
|
|
1003
|
+
return j(g) === o;
|
|
1004
1004
|
}, Q.isContextProvider = function(g) {
|
|
1005
|
-
return
|
|
1005
|
+
return j(g) === i;
|
|
1006
1006
|
}, Q.isElement = function(g) {
|
|
1007
1007
|
return typeof g == "object" && g !== null && g.$$typeof === e;
|
|
1008
1008
|
}, Q.isForwardRef = function(g) {
|
|
1009
|
-
return
|
|
1009
|
+
return j(g) === c;
|
|
1010
1010
|
}, Q.isFragment = function(g) {
|
|
1011
|
-
return
|
|
1011
|
+
return j(g) === n;
|
|
1012
1012
|
}, Q.isLazy = function(g) {
|
|
1013
|
-
return
|
|
1013
|
+
return j(g) === p;
|
|
1014
1014
|
}, Q.isMemo = function(g) {
|
|
1015
|
-
return
|
|
1015
|
+
return j(g) === m;
|
|
1016
1016
|
}, Q.isPortal = function(g) {
|
|
1017
|
-
return
|
|
1017
|
+
return j(g) === t;
|
|
1018
1018
|
}, Q.isProfiler = function(g) {
|
|
1019
|
-
return
|
|
1019
|
+
return j(g) === a;
|
|
1020
1020
|
}, Q.isStrictMode = function(g) {
|
|
1021
|
-
return
|
|
1021
|
+
return j(g) === s;
|
|
1022
1022
|
}, Q.isSuspense = function(g) {
|
|
1023
|
-
return
|
|
1023
|
+
return j(g) === f;
|
|
1024
1024
|
}, Q.isValidElementType = function(g) {
|
|
1025
|
-
return typeof g == "string" || typeof g == "function" || g === n || g === u || g === a || g === s || g === f || g === d || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === m || g.$$typeof === i || g.$$typeof === o || g.$$typeof === c || g.$$typeof ===
|
|
1026
|
-
}, Q.typeOf =
|
|
1025
|
+
return typeof g == "string" || typeof g == "function" || g === n || g === u || g === a || g === s || g === f || g === d || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === m || g.$$typeof === i || g.$$typeof === o || g.$$typeof === c || g.$$typeof === E || g.$$typeof === T || g.$$typeof === b || g.$$typeof === v);
|
|
1026
|
+
}, Q.typeOf = j, Q;
|
|
1027
1027
|
}
|
|
1028
1028
|
var ee = {};
|
|
1029
1029
|
/** @license React v16.13.1
|
|
@@ -1037,27 +1037,27 @@ var ee = {};
|
|
|
1037
1037
|
var Kt;
|
|
1038
1038
|
function hn() {
|
|
1039
1039
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1040
|
-
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, l = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, c = 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,
|
|
1041
|
-
function
|
|
1042
|
-
return typeof
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1045
|
-
function
|
|
1046
|
-
if (typeof
|
|
1047
|
-
var
|
|
1048
|
-
switch (
|
|
1040
|
+
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, l = r ? Symbol.for("react.async_mode") : 60111, u = r ? Symbol.for("react.concurrent_mode") : 60111, c = 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, T = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
|
|
1041
|
+
function j(I) {
|
|
1042
|
+
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1043
|
+
I === n || I === u || I === a || I === s || I === f || I === d || typeof I == "object" && I !== null && (I.$$typeof === p || I.$$typeof === m || I.$$typeof === i || I.$$typeof === o || I.$$typeof === c || I.$$typeof === E || I.$$typeof === T || I.$$typeof === b || I.$$typeof === v);
|
|
1044
|
+
}
|
|
1045
|
+
function S(I) {
|
|
1046
|
+
if (typeof I == "object" && I !== null) {
|
|
1047
|
+
var B = I.$$typeof;
|
|
1048
|
+
switch (B) {
|
|
1049
1049
|
case e:
|
|
1050
|
-
var
|
|
1051
|
-
switch (
|
|
1050
|
+
var Z = I.type;
|
|
1051
|
+
switch (Z) {
|
|
1052
1052
|
case l:
|
|
1053
1053
|
case u:
|
|
1054
1054
|
case n:
|
|
1055
1055
|
case a:
|
|
1056
1056
|
case s:
|
|
1057
1057
|
case f:
|
|
1058
|
-
return
|
|
1058
|
+
return Z;
|
|
1059
1059
|
default:
|
|
1060
|
-
var re =
|
|
1060
|
+
var re = Z && Z.$$typeof;
|
|
1061
1061
|
switch (re) {
|
|
1062
1062
|
case o:
|
|
1063
1063
|
case c:
|
|
@@ -1066,55 +1066,55 @@ function hn() {
|
|
|
1066
1066
|
case i:
|
|
1067
1067
|
return re;
|
|
1068
1068
|
default:
|
|
1069
|
-
return
|
|
1069
|
+
return B;
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
case t:
|
|
1073
|
-
return
|
|
1073
|
+
return B;
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
|
-
var g = l,
|
|
1078
|
-
function
|
|
1079
|
-
return
|
|
1077
|
+
var g = l, D = u, k = o, w = i, O = e, $ = c, F = n, P = p, C = m, Y = t, N = a, H = s, q = f, X = !1;
|
|
1078
|
+
function M(I) {
|
|
1079
|
+
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(I) || S(I) === l;
|
|
1080
1080
|
}
|
|
1081
|
-
function h(
|
|
1082
|
-
return
|
|
1081
|
+
function h(I) {
|
|
1082
|
+
return S(I) === u;
|
|
1083
1083
|
}
|
|
1084
|
-
function x(
|
|
1085
|
-
return
|
|
1084
|
+
function x(I) {
|
|
1085
|
+
return S(I) === o;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return
|
|
1087
|
+
function R(I) {
|
|
1088
|
+
return S(I) === i;
|
|
1089
1089
|
}
|
|
1090
|
-
function A(
|
|
1091
|
-
return typeof
|
|
1090
|
+
function A(I) {
|
|
1091
|
+
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return
|
|
1093
|
+
function _(I) {
|
|
1094
|
+
return S(I) === c;
|
|
1095
1095
|
}
|
|
1096
|
-
function L(
|
|
1097
|
-
return
|
|
1096
|
+
function L(I) {
|
|
1097
|
+
return S(I) === n;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
return
|
|
1099
|
+
function U(I) {
|
|
1100
|
+
return S(I) === p;
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1103
|
-
return
|
|
1102
|
+
function W(I) {
|
|
1103
|
+
return S(I) === m;
|
|
1104
1104
|
}
|
|
1105
|
-
function V(
|
|
1106
|
-
return
|
|
1105
|
+
function V(I) {
|
|
1106
|
+
return S(I) === t;
|
|
1107
1107
|
}
|
|
1108
|
-
function J(
|
|
1109
|
-
return
|
|
1108
|
+
function J(I) {
|
|
1109
|
+
return S(I) === a;
|
|
1110
1110
|
}
|
|
1111
|
-
function G(
|
|
1112
|
-
return
|
|
1111
|
+
function G(I) {
|
|
1112
|
+
return S(I) === s;
|
|
1113
1113
|
}
|
|
1114
|
-
function ae(
|
|
1115
|
-
return
|
|
1114
|
+
function ae(I) {
|
|
1115
|
+
return S(I) === f;
|
|
1116
1116
|
}
|
|
1117
|
-
ee.AsyncMode = g, ee.ConcurrentMode =
|
|
1117
|
+
ee.AsyncMode = g, ee.ConcurrentMode = D, ee.ContextConsumer = k, ee.ContextProvider = w, ee.Element = O, ee.ForwardRef = $, ee.Fragment = F, ee.Lazy = P, ee.Memo = C, ee.Portal = Y, ee.Profiler = N, ee.StrictMode = H, ee.Suspense = q, ee.isAsyncMode = M, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = R, ee.isElement = A, ee.isForwardRef = _, ee.isFragment = L, ee.isLazy = U, ee.isMemo = W, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = j, ee.typeOf = S;
|
|
1118
1118
|
}()), ee;
|
|
1119
1119
|
}
|
|
1120
1120
|
var qt;
|
|
@@ -1257,25 +1257,25 @@ function yn() {
|
|
|
1257
1257
|
return x;
|
|
1258
1258
|
}
|
|
1259
1259
|
var d = "<<anonymous>>", m = {
|
|
1260
|
-
array:
|
|
1261
|
-
bigint:
|
|
1262
|
-
bool:
|
|
1263
|
-
func:
|
|
1264
|
-
number:
|
|
1265
|
-
object:
|
|
1266
|
-
string:
|
|
1267
|
-
symbol:
|
|
1260
|
+
array: T("array"),
|
|
1261
|
+
bigint: T("bigint"),
|
|
1262
|
+
bool: T("boolean"),
|
|
1263
|
+
func: T("function"),
|
|
1264
|
+
number: T("number"),
|
|
1265
|
+
object: T("object"),
|
|
1266
|
+
string: T("string"),
|
|
1267
|
+
symbol: T("symbol"),
|
|
1268
1268
|
any: b(),
|
|
1269
|
-
arrayOf:
|
|
1270
|
-
element:
|
|
1269
|
+
arrayOf: j,
|
|
1270
|
+
element: S(),
|
|
1271
1271
|
elementType: g(),
|
|
1272
|
-
instanceOf:
|
|
1273
|
-
node:
|
|
1274
|
-
objectOf:
|
|
1272
|
+
instanceOf: D,
|
|
1273
|
+
node: $(),
|
|
1274
|
+
objectOf: w,
|
|
1275
1275
|
oneOf: k,
|
|
1276
1276
|
oneOfType: O,
|
|
1277
|
-
shape:
|
|
1278
|
-
exact:
|
|
1277
|
+
shape: P,
|
|
1278
|
+
exact: C
|
|
1279
1279
|
};
|
|
1280
1280
|
function p(h, x) {
|
|
1281
1281
|
return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
|
|
@@ -1284,204 +1284,204 @@ function yn() {
|
|
|
1284
1284
|
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
1285
1285
|
}
|
|
1286
1286
|
v.prototype = Error.prototype;
|
|
1287
|
-
function
|
|
1287
|
+
function E(h) {
|
|
1288
1288
|
if (process.env.NODE_ENV !== "production")
|
|
1289
|
-
var x = {},
|
|
1290
|
-
function A(L,
|
|
1291
|
-
if (V = V || d, G = G ||
|
|
1289
|
+
var x = {}, R = 0;
|
|
1290
|
+
function A(L, U, W, V, J, G, ae) {
|
|
1291
|
+
if (V = V || d, G = G || W, ae !== t) {
|
|
1292
1292
|
if (l) {
|
|
1293
|
-
var
|
|
1293
|
+
var I = new Error(
|
|
1294
1294
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1295
1295
|
);
|
|
1296
|
-
throw
|
|
1296
|
+
throw I.name = "Invariant Violation", I;
|
|
1297
1297
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1298
|
-
var
|
|
1299
|
-
!x[
|
|
1300
|
-
|
|
1298
|
+
var B = V + ":" + W;
|
|
1299
|
+
!x[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1300
|
+
R < 3 && (a(
|
|
1301
1301
|
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1302
|
-
), x[
|
|
1302
|
+
), x[B] = !0, R++);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
return
|
|
1305
|
+
return U[W] == null ? L ? U[W] === null ? new v("The " + J + " `" + G + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new v("The " + J + " `" + G + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(U, W, V, J, G);
|
|
1306
1306
|
}
|
|
1307
|
-
var
|
|
1308
|
-
return
|
|
1307
|
+
var _ = A.bind(null, !1);
|
|
1308
|
+
return _.isRequired = A.bind(null, !0), _;
|
|
1309
1309
|
}
|
|
1310
|
-
function
|
|
1311
|
-
function x(
|
|
1312
|
-
var V =
|
|
1310
|
+
function T(h) {
|
|
1311
|
+
function x(R, A, _, L, U, W) {
|
|
1312
|
+
var V = R[A], J = H(V);
|
|
1313
1313
|
if (J !== h) {
|
|
1314
1314
|
var G = q(V);
|
|
1315
1315
|
return new v(
|
|
1316
|
-
"Invalid " + L + " `" +
|
|
1316
|
+
"Invalid " + L + " `" + U + "` of type " + ("`" + G + "` supplied to `" + _ + "`, expected ") + ("`" + h + "`."),
|
|
1317
1317
|
{ expectedType: h }
|
|
1318
1318
|
);
|
|
1319
1319
|
}
|
|
1320
1320
|
return null;
|
|
1321
1321
|
}
|
|
1322
|
-
return
|
|
1322
|
+
return E(x);
|
|
1323
1323
|
}
|
|
1324
1324
|
function b() {
|
|
1325
|
-
return
|
|
1325
|
+
return E(i);
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1328
|
-
function x(
|
|
1327
|
+
function j(h) {
|
|
1328
|
+
function x(R, A, _, L, U) {
|
|
1329
1329
|
if (typeof h != "function")
|
|
1330
|
-
return new v("Property `" +
|
|
1331
|
-
var
|
|
1332
|
-
if (!Array.isArray(
|
|
1333
|
-
var V = H(
|
|
1334
|
-
return new v("Invalid " + L + " `" +
|
|
1330
|
+
return new v("Property `" + U + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
1331
|
+
var W = R[A];
|
|
1332
|
+
if (!Array.isArray(W)) {
|
|
1333
|
+
var V = H(W);
|
|
1334
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + V + "` supplied to `" + _ + "`, expected an array."));
|
|
1335
1335
|
}
|
|
1336
|
-
for (var J = 0; J <
|
|
1337
|
-
var G = h(
|
|
1336
|
+
for (var J = 0; J < W.length; J++) {
|
|
1337
|
+
var G = h(W, J, _, L, U + "[" + J + "]", t);
|
|
1338
1338
|
if (G instanceof Error)
|
|
1339
1339
|
return G;
|
|
1340
1340
|
}
|
|
1341
1341
|
return null;
|
|
1342
1342
|
}
|
|
1343
|
-
return
|
|
1344
|
-
}
|
|
1345
|
-
function
|
|
1346
|
-
function h(x,
|
|
1347
|
-
var
|
|
1348
|
-
if (!o(
|
|
1349
|
-
var
|
|
1350
|
-
return new v("Invalid " +
|
|
1343
|
+
return E(x);
|
|
1344
|
+
}
|
|
1345
|
+
function S() {
|
|
1346
|
+
function h(x, R, A, _, L) {
|
|
1347
|
+
var U = x[R];
|
|
1348
|
+
if (!o(U)) {
|
|
1349
|
+
var W = H(U);
|
|
1350
|
+
return new v("Invalid " + _ + " `" + L + "` of type " + ("`" + W + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1351
1351
|
}
|
|
1352
1352
|
return null;
|
|
1353
1353
|
}
|
|
1354
|
-
return
|
|
1354
|
+
return E(h);
|
|
1355
1355
|
}
|
|
1356
1356
|
function g() {
|
|
1357
|
-
function h(x,
|
|
1358
|
-
var
|
|
1359
|
-
if (!r.isValidElementType(
|
|
1360
|
-
var
|
|
1361
|
-
return new v("Invalid " +
|
|
1357
|
+
function h(x, R, A, _, L) {
|
|
1358
|
+
var U = x[R];
|
|
1359
|
+
if (!r.isValidElementType(U)) {
|
|
1360
|
+
var W = H(U);
|
|
1361
|
+
return new v("Invalid " + _ + " `" + L + "` of type " + ("`" + W + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1362
1362
|
}
|
|
1363
1363
|
return null;
|
|
1364
1364
|
}
|
|
1365
|
-
return
|
|
1365
|
+
return E(h);
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1368
|
-
function x(
|
|
1369
|
-
if (!(
|
|
1370
|
-
var
|
|
1371
|
-
return new v("Invalid " + L + " `" +
|
|
1367
|
+
function D(h) {
|
|
1368
|
+
function x(R, A, _, L, U) {
|
|
1369
|
+
if (!(R[A] instanceof h)) {
|
|
1370
|
+
var W = h.name || d, V = M(R[A]);
|
|
1371
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + V + "` supplied to `" + _ + "`, expected ") + ("instance of `" + W + "`."));
|
|
1372
1372
|
}
|
|
1373
1373
|
return null;
|
|
1374
1374
|
}
|
|
1375
|
-
return
|
|
1375
|
+
return E(x);
|
|
1376
1376
|
}
|
|
1377
1377
|
function k(h) {
|
|
1378
1378
|
if (!Array.isArray(h))
|
|
1379
1379
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1380
1380
|
"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])."
|
|
1381
1381
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1382
|
-
function x(
|
|
1383
|
-
for (var
|
|
1384
|
-
if (p(
|
|
1382
|
+
function x(R, A, _, L, U) {
|
|
1383
|
+
for (var W = R[A], V = 0; V < h.length; V++)
|
|
1384
|
+
if (p(W, h[V]))
|
|
1385
1385
|
return null;
|
|
1386
|
-
var J = JSON.stringify(h, function(ae,
|
|
1387
|
-
var
|
|
1388
|
-
return
|
|
1386
|
+
var J = JSON.stringify(h, function(ae, I) {
|
|
1387
|
+
var B = q(I);
|
|
1388
|
+
return B === "symbol" ? String(I) : I;
|
|
1389
1389
|
});
|
|
1390
|
-
return new v("Invalid " + L + " `" +
|
|
1390
|
+
return new v("Invalid " + L + " `" + U + "` of value `" + String(W) + "` " + ("supplied to `" + _ + "`, expected one of " + J + "."));
|
|
1391
1391
|
}
|
|
1392
|
-
return
|
|
1392
|
+
return E(x);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1395
|
-
function x(
|
|
1394
|
+
function w(h) {
|
|
1395
|
+
function x(R, A, _, L, U) {
|
|
1396
1396
|
if (typeof h != "function")
|
|
1397
|
-
return new v("Property `" +
|
|
1398
|
-
var
|
|
1397
|
+
return new v("Property `" + U + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
1398
|
+
var W = R[A], V = H(W);
|
|
1399
1399
|
if (V !== "object")
|
|
1400
|
-
return new v("Invalid " + L + " `" +
|
|
1401
|
-
for (var J in
|
|
1402
|
-
if (n(
|
|
1403
|
-
var G = h(
|
|
1400
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + V + "` supplied to `" + _ + "`, expected an object."));
|
|
1401
|
+
for (var J in W)
|
|
1402
|
+
if (n(W, J)) {
|
|
1403
|
+
var G = h(W, J, _, L, U + "." + J, t);
|
|
1404
1404
|
if (G instanceof Error)
|
|
1405
1405
|
return G;
|
|
1406
1406
|
}
|
|
1407
1407
|
return null;
|
|
1408
1408
|
}
|
|
1409
|
-
return
|
|
1409
|
+
return E(x);
|
|
1410
1410
|
}
|
|
1411
1411
|
function O(h) {
|
|
1412
1412
|
if (!Array.isArray(h))
|
|
1413
1413
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1414
1414
|
for (var x = 0; x < h.length; x++) {
|
|
1415
|
-
var
|
|
1416
|
-
if (typeof
|
|
1415
|
+
var R = h[x];
|
|
1416
|
+
if (typeof R != "function")
|
|
1417
1417
|
return a(
|
|
1418
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1418
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(R) + " at index " + x + "."
|
|
1419
1419
|
), i;
|
|
1420
1420
|
}
|
|
1421
|
-
function A(
|
|
1421
|
+
function A(_, L, U, W, V) {
|
|
1422
1422
|
for (var J = [], G = 0; G < h.length; G++) {
|
|
1423
|
-
var ae = h[G],
|
|
1424
|
-
if (
|
|
1423
|
+
var ae = h[G], I = ae(_, L, U, W, V, t);
|
|
1424
|
+
if (I == null)
|
|
1425
1425
|
return null;
|
|
1426
|
-
|
|
1426
|
+
I.data && n(I.data, "expectedType") && J.push(I.data.expectedType);
|
|
1427
1427
|
}
|
|
1428
|
-
var
|
|
1429
|
-
return new v("Invalid " +
|
|
1428
|
+
var B = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1429
|
+
return new v("Invalid " + W + " `" + V + "` supplied to " + ("`" + U + "`" + B + "."));
|
|
1430
1430
|
}
|
|
1431
|
-
return
|
|
1431
|
+
return E(A);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
function h(x,
|
|
1435
|
-
return
|
|
1433
|
+
function $() {
|
|
1434
|
+
function h(x, R, A, _, L) {
|
|
1435
|
+
return Y(x[R]) ? null : new v("Invalid " + _ + " `" + L + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1436
1436
|
}
|
|
1437
|
-
return
|
|
1437
|
+
return E(h);
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1439
|
+
function F(h, x, R, A, _) {
|
|
1440
1440
|
return new v(
|
|
1441
|
-
(h || "React class") + ": " + x + " type `" +
|
|
1441
|
+
(h || "React class") + ": " + x + " type `" + R + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
1442
1442
|
);
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1445
|
-
function x(
|
|
1446
|
-
var
|
|
1444
|
+
function P(h) {
|
|
1445
|
+
function x(R, A, _, L, U) {
|
|
1446
|
+
var W = R[A], V = H(W);
|
|
1447
1447
|
if (V !== "object")
|
|
1448
|
-
return new v("Invalid " + L + " `" +
|
|
1448
|
+
return new v("Invalid " + L + " `" + U + "` of type `" + V + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1449
1449
|
for (var J in h) {
|
|
1450
1450
|
var G = h[J];
|
|
1451
1451
|
if (typeof G != "function")
|
|
1452
|
-
return
|
|
1453
|
-
var ae = G(
|
|
1452
|
+
return F(_, L, U, J, q(G));
|
|
1453
|
+
var ae = G(W, J, _, L, U + "." + J, t);
|
|
1454
1454
|
if (ae)
|
|
1455
1455
|
return ae;
|
|
1456
1456
|
}
|
|
1457
1457
|
return null;
|
|
1458
1458
|
}
|
|
1459
|
-
return
|
|
1459
|
+
return E(x);
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
function x(
|
|
1463
|
-
var
|
|
1461
|
+
function C(h) {
|
|
1462
|
+
function x(R, A, _, L, U) {
|
|
1463
|
+
var W = R[A], V = H(W);
|
|
1464
1464
|
if (V !== "object")
|
|
1465
|
-
return new v("Invalid " + L + " `" +
|
|
1466
|
-
var J = e({},
|
|
1465
|
+
return new v("Invalid " + L + " `" + U + "` of type `" + V + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1466
|
+
var J = e({}, R[A], h);
|
|
1467
1467
|
for (var G in J) {
|
|
1468
1468
|
var ae = h[G];
|
|
1469
1469
|
if (n(h, G) && typeof ae != "function")
|
|
1470
|
-
return
|
|
1470
|
+
return F(_, L, U, G, q(ae));
|
|
1471
1471
|
if (!ae)
|
|
1472
1472
|
return new v(
|
|
1473
|
-
"Invalid " + L + " `" +
|
|
1473
|
+
"Invalid " + L + " `" + U + "` key `" + G + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(R[A], null, " ") + `
|
|
1474
1474
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1475
1475
|
);
|
|
1476
|
-
var
|
|
1477
|
-
if (
|
|
1478
|
-
return
|
|
1476
|
+
var I = ae(W, G, _, L, U + "." + G, t);
|
|
1477
|
+
if (I)
|
|
1478
|
+
return I;
|
|
1479
1479
|
}
|
|
1480
1480
|
return null;
|
|
1481
1481
|
}
|
|
1482
|
-
return
|
|
1482
|
+
return E(x);
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Y(h) {
|
|
1485
1485
|
switch (typeof h) {
|
|
1486
1486
|
case "number":
|
|
1487
1487
|
case "string":
|
|
@@ -1491,20 +1491,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1491
1491
|
return !h;
|
|
1492
1492
|
case "object":
|
|
1493
1493
|
if (Array.isArray(h))
|
|
1494
|
-
return h.every(
|
|
1494
|
+
return h.every(Y);
|
|
1495
1495
|
if (h === null || o(h))
|
|
1496
1496
|
return !0;
|
|
1497
1497
|
var x = f(h);
|
|
1498
1498
|
if (x) {
|
|
1499
|
-
var
|
|
1499
|
+
var R = x.call(h), A;
|
|
1500
1500
|
if (x !== h.entries) {
|
|
1501
|
-
for (; !(A =
|
|
1502
|
-
if (!
|
|
1501
|
+
for (; !(A = R.next()).done; )
|
|
1502
|
+
if (!Y(A.value))
|
|
1503
1503
|
return !1;
|
|
1504
1504
|
} else
|
|
1505
|
-
for (; !(A =
|
|
1506
|
-
var
|
|
1507
|
-
if (
|
|
1505
|
+
for (; !(A = R.next()).done; ) {
|
|
1506
|
+
var _ = A.value;
|
|
1507
|
+
if (_ && !Y(_[1]))
|
|
1508
1508
|
return !1;
|
|
1509
1509
|
}
|
|
1510
1510
|
} else
|
|
@@ -1514,12 +1514,12 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1514
1514
|
return !1;
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function N(h, x) {
|
|
1518
1518
|
return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1519
1519
|
}
|
|
1520
1520
|
function H(h) {
|
|
1521
1521
|
var x = typeof h;
|
|
1522
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1522
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : N(x, h) ? "symbol" : x;
|
|
1523
1523
|
}
|
|
1524
1524
|
function q(h) {
|
|
1525
1525
|
if (typeof h > "u" || h === null)
|
|
@@ -1533,7 +1533,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1533
1533
|
}
|
|
1534
1534
|
return x;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function X(h) {
|
|
1537
1537
|
var x = q(h);
|
|
1538
1538
|
switch (x) {
|
|
1539
1539
|
case "array":
|
|
@@ -1547,7 +1547,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1547
1547
|
return x;
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function M(h) {
|
|
1551
1551
|
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1552
1552
|
}
|
|
1553
1553
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
@@ -1638,9 +1638,9 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1638
1638
|
return t.renderSVG = function() {
|
|
1639
1639
|
var s = this;
|
|
1640
1640
|
if (this.reactWrapper instanceof bn(this.reactWrapper).Node) {
|
|
1641
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, u = a.renumerateIRIElements, c = a.src, f = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection,
|
|
1642
|
-
|
|
1643
|
-
var
|
|
1641
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, u = a.renumerateIRIElements, c = a.src, f = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection, E = this.props.wrapper, T, b;
|
|
1642
|
+
E === "svg" ? (T = document.createElementNS(Xe, E), T.setAttribute("xmlns", Xe), T.setAttribute("xmlns:xlink", nr), b = document.createElementNS(Xe, E)) : (T = document.createElement(E), b = document.createElement(E)), T.appendChild(b), b.dataset.src = c, this.nonReactWrapper = this.reactWrapper.appendChild(T);
|
|
1643
|
+
var j = function(k) {
|
|
1644
1644
|
if (s.removeSVG(), !s._isMounted) {
|
|
1645
1645
|
m(k);
|
|
1646
1646
|
return;
|
|
@@ -1653,9 +1653,9 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1653
1653
|
}, function() {
|
|
1654
1654
|
m(k);
|
|
1655
1655
|
});
|
|
1656
|
-
},
|
|
1656
|
+
}, S = function(k, w) {
|
|
1657
1657
|
if (k) {
|
|
1658
|
-
|
|
1658
|
+
j(k);
|
|
1659
1659
|
return;
|
|
1660
1660
|
}
|
|
1661
1661
|
s._isMounted && s.setState(function() {
|
|
@@ -1664,32 +1664,32 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1664
1664
|
};
|
|
1665
1665
|
}, function() {
|
|
1666
1666
|
try {
|
|
1667
|
-
v(
|
|
1667
|
+
v(w);
|
|
1668
1668
|
} catch (O) {
|
|
1669
|
-
|
|
1669
|
+
j(O);
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
}, g = function(k) {
|
|
1673
1673
|
if (k.setAttribute("role", "img"), i) {
|
|
1674
|
-
var
|
|
1675
|
-
|
|
1674
|
+
var w = k.querySelector(":scope > desc");
|
|
1675
|
+
w && k.removeChild(w);
|
|
1676
1676
|
var O = document.createElement("desc");
|
|
1677
1677
|
O.innerHTML = i, k.prepend(O);
|
|
1678
1678
|
}
|
|
1679
1679
|
if (f) {
|
|
1680
|
-
var
|
|
1681
|
-
|
|
1682
|
-
var
|
|
1683
|
-
|
|
1680
|
+
var $ = k.querySelector(":scope > title");
|
|
1681
|
+
$ && k.removeChild($);
|
|
1682
|
+
var F = document.createElement("title");
|
|
1683
|
+
F.innerHTML = f, k.prepend(F);
|
|
1684
1684
|
}
|
|
1685
1685
|
try {
|
|
1686
1686
|
p(k);
|
|
1687
|
-
} catch (
|
|
1688
|
-
|
|
1687
|
+
} catch (P) {
|
|
1688
|
+
j(P);
|
|
1689
1689
|
}
|
|
1690
1690
|
};
|
|
1691
1691
|
dn(b, {
|
|
1692
|
-
afterEach:
|
|
1692
|
+
afterEach: S,
|
|
1693
1693
|
beforeEach: g,
|
|
1694
1694
|
cacheRequests: d,
|
|
1695
1695
|
evalScripts: o,
|
|
@@ -1763,7 +1763,7 @@ let Dt = {
|
|
|
1763
1763
|
assets: "/"
|
|
1764
1764
|
// Default for storybook isolation development
|
|
1765
1765
|
};
|
|
1766
|
-
const
|
|
1766
|
+
const Zs = (r) => {
|
|
1767
1767
|
Dt = { ...Dt, ...r };
|
|
1768
1768
|
}, sr = (r) => `${Dt.assets}/${r}`.replace(/\/+/g, "/"), fe = nt.memo(
|
|
1769
1769
|
({
|
|
@@ -1781,17 +1781,17 @@ const Xs = (r) => {
|
|
|
1781
1781
|
title: f,
|
|
1782
1782
|
tabIndex: d
|
|
1783
1783
|
}) => {
|
|
1784
|
-
const [m, p] = K(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")),
|
|
1784
|
+
const [m, p] = K(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")), T = sr(`assets/svg/${r}.svg`), b = sr(
|
|
1785
1785
|
`assets/svg/${n}.svg`
|
|
1786
|
-
),
|
|
1786
|
+
), j = {
|
|
1787
1787
|
img: `${u ? "smp-image-interactable" : ""}`,
|
|
1788
1788
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${u ? "smp-icon-interactable" : ""} ${c ? "smp-icon-spin" : ""}`
|
|
1789
|
-
},
|
|
1789
|
+
}, S = () => {
|
|
1790
1790
|
!a && u && l && l();
|
|
1791
|
-
}, g = (
|
|
1792
|
-
!a && u && (
|
|
1791
|
+
}, g = (D) => {
|
|
1792
|
+
!a && u && (D.key === "Enter" || D.key === " ") && (D.preventDefault(), S());
|
|
1793
1793
|
};
|
|
1794
|
-
return /* @__PURE__ */ y.jsx(y.Fragment, { children:
|
|
1794
|
+
return /* @__PURE__ */ y.jsx(y.Fragment, { children: E ? /* @__PURE__ */ y.jsx(
|
|
1795
1795
|
Ce,
|
|
1796
1796
|
{
|
|
1797
1797
|
src: r,
|
|
@@ -1803,8 +1803,8 @@ const Xs = (r) => {
|
|
|
1803
1803
|
role: "application",
|
|
1804
1804
|
fill: s,
|
|
1805
1805
|
"aria-disabled": a,
|
|
1806
|
-
className:
|
|
1807
|
-
onClick:
|
|
1806
|
+
className: j.svg,
|
|
1807
|
+
onClick: S,
|
|
1808
1808
|
onKeyDown: g,
|
|
1809
1809
|
tabIndex: d
|
|
1810
1810
|
}
|
|
@@ -1818,18 +1818,18 @@ const Xs = (r) => {
|
|
|
1818
1818
|
height: t || "auto",
|
|
1819
1819
|
alt: f,
|
|
1820
1820
|
onError: () => p(b),
|
|
1821
|
-
onClick:
|
|
1822
|
-
className:
|
|
1821
|
+
onClick: S,
|
|
1822
|
+
className: j.img,
|
|
1823
1823
|
title: f,
|
|
1824
|
-
onKeyDown: (
|
|
1825
|
-
(
|
|
1824
|
+
onKeyDown: (D) => {
|
|
1825
|
+
(D.key === "Enter" || D.key === " ") && S();
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
1828
|
)
|
|
1829
1829
|
) : /* @__PURE__ */ y.jsx(
|
|
1830
1830
|
Ce,
|
|
1831
1831
|
{
|
|
1832
|
-
src:
|
|
1832
|
+
src: T,
|
|
1833
1833
|
fallback: () => /* @__PURE__ */ y.jsx(Ce, { src: b, wrapper: "svg" }),
|
|
1834
1834
|
width: e || "1rem",
|
|
1835
1835
|
height: t || "1rem",
|
|
@@ -1838,8 +1838,8 @@ const Xs = (r) => {
|
|
|
1838
1838
|
role: "application",
|
|
1839
1839
|
fill: s,
|
|
1840
1840
|
"aria-disabled": a,
|
|
1841
|
-
className:
|
|
1842
|
-
onClick:
|
|
1841
|
+
className: j.svg,
|
|
1842
|
+
onClick: S,
|
|
1843
1843
|
onKeyDown: g,
|
|
1844
1844
|
tabIndex: d
|
|
1845
1845
|
}
|
|
@@ -1878,35 +1878,35 @@ const Xs = (r) => {
|
|
|
1878
1878
|
onShapeIconClick: m,
|
|
1879
1879
|
ref: p,
|
|
1880
1880
|
inputRef: v,
|
|
1881
|
-
onKeyDown:
|
|
1882
|
-
inputType:
|
|
1881
|
+
onKeyDown: E,
|
|
1882
|
+
inputType: T = "text",
|
|
1883
1883
|
ariaLabel: b = "input field",
|
|
1884
|
-
label:
|
|
1885
|
-
helperText:
|
|
1884
|
+
label: j,
|
|
1885
|
+
helperText: S = !1,
|
|
1886
1886
|
error: g,
|
|
1887
|
-
appearance:
|
|
1887
|
+
appearance: D = "base",
|
|
1888
1888
|
fullWidth: k = !1,
|
|
1889
|
-
_dataComponent:
|
|
1889
|
+
_dataComponent: w = "textfield",
|
|
1890
1890
|
min: O,
|
|
1891
|
-
max:
|
|
1892
|
-
step:
|
|
1893
|
-
inputMode:
|
|
1894
|
-
width:
|
|
1891
|
+
max: $,
|
|
1892
|
+
step: F,
|
|
1893
|
+
inputMode: P = "text",
|
|
1894
|
+
width: C
|
|
1895
1895
|
}) => {
|
|
1896
|
-
const
|
|
1897
|
-
s == null || s(
|
|
1896
|
+
const Y = Be(), N = `${Y}-helper`, H = g ? "danger" : u, q = g || u == "danger" ? "error" : o, X = S || !!g, M = (R) => {
|
|
1897
|
+
s == null || s(R.target.value);
|
|
1898
1898
|
}, h = {
|
|
1899
1899
|
wrapper: `${ye["smp-textfield-wrapper"]} ${k ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
1900
|
-
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${l ? ye[`smp-textfield-${l}`] : ""} ${H ? ye[`smp-textfield-${H}`] : ""} ${
|
|
1900
|
+
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${l ? ye[`smp-textfield-${l}`] : ""} ${H ? ye[`smp-textfield-${H}`] : ""} ${D ? ye[`smp-textfield-${D}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${f ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
1901
1901
|
input: `${ye["smp-textfield-input"]}`
|
|
1902
1902
|
};
|
|
1903
1903
|
if (c && (c !== "notSelectable" || i)) {
|
|
1904
|
-
const
|
|
1905
|
-
|
|
1904
|
+
const R = ye[`smp-textfield-variant-${c}`];
|
|
1905
|
+
R && (h.container += ` ${R}`);
|
|
1906
1906
|
}
|
|
1907
|
-
const x =
|
|
1908
|
-
return /* @__PURE__ */ y.jsxs("div", { className: h.wrapper, "data-component":
|
|
1909
|
-
|
|
1907
|
+
const x = C ? { "--smp-textField-width-base": C } : void 0;
|
|
1908
|
+
return /* @__PURE__ */ y.jsxs("div", { className: h.wrapper, "data-component": w, children: [
|
|
1909
|
+
j && /* @__PURE__ */ y.jsx(je, { label: j, disabled: r, htmlFor: Y }),
|
|
1910
1910
|
/* @__PURE__ */ y.jsxs(
|
|
1911
1911
|
"div",
|
|
1912
1912
|
{
|
|
@@ -1918,23 +1918,23 @@ const Xs = (r) => {
|
|
|
1918
1918
|
/* @__PURE__ */ y.jsx(
|
|
1919
1919
|
"input",
|
|
1920
1920
|
{
|
|
1921
|
-
id:
|
|
1922
|
-
type:
|
|
1921
|
+
id: Y,
|
|
1922
|
+
type: T,
|
|
1923
1923
|
value: e,
|
|
1924
1924
|
placeholder: a,
|
|
1925
|
-
onChange:
|
|
1925
|
+
onChange: M,
|
|
1926
1926
|
onBlur: n,
|
|
1927
1927
|
className: h.input,
|
|
1928
1928
|
disabled: r,
|
|
1929
1929
|
readOnly: !i,
|
|
1930
|
-
onKeyDown:
|
|
1930
|
+
onKeyDown: E,
|
|
1931
1931
|
"aria-label": b,
|
|
1932
1932
|
ref: v,
|
|
1933
|
-
"aria-describedby":
|
|
1933
|
+
"aria-describedby": X ? N : void 0,
|
|
1934
1934
|
min: O,
|
|
1935
|
-
max:
|
|
1936
|
-
step:
|
|
1937
|
-
inputMode:
|
|
1935
|
+
max: $,
|
|
1936
|
+
step: F,
|
|
1937
|
+
inputMode: P
|
|
1938
1938
|
}
|
|
1939
1939
|
),
|
|
1940
1940
|
q && /* @__PURE__ */ y.jsx(
|
|
@@ -1952,13 +1952,13 @@ const Xs = (r) => {
|
|
|
1952
1952
|
]
|
|
1953
1953
|
}
|
|
1954
1954
|
),
|
|
1955
|
-
|
|
1955
|
+
X && /* @__PURE__ */ y.jsx(
|
|
1956
1956
|
jr,
|
|
1957
1957
|
{
|
|
1958
1958
|
helperText: g,
|
|
1959
1959
|
disabled: r,
|
|
1960
1960
|
state: H,
|
|
1961
|
-
id:
|
|
1961
|
+
id: N
|
|
1962
1962
|
}
|
|
1963
1963
|
)
|
|
1964
1964
|
] });
|
|
@@ -1984,8 +1984,8 @@ function Pr({
|
|
|
1984
1984
|
a(p);
|
|
1985
1985
|
}, []), d = (m) => {
|
|
1986
1986
|
if (!i.current) return;
|
|
1987
|
-
const p = m * e, v = p + e,
|
|
1988
|
-
p <
|
|
1987
|
+
const p = m * e, v = p + e, E = i.current, T = E.scrollTop, b = T + t;
|
|
1988
|
+
p < T ? E.scrollTop = p : v > b && (E.scrollTop = v - t);
|
|
1989
1989
|
};
|
|
1990
1990
|
return {
|
|
1991
1991
|
virtualItems: c,
|
|
@@ -2017,13 +2017,25 @@ function Pr({
|
|
|
2017
2017
|
};
|
|
2018
2018
|
}
|
|
2019
2019
|
const Ze = {
|
|
2020
|
-
"smp-list": "_smp-
|
|
2021
|
-
"smp-list-container": "_smp-list-
|
|
2022
|
-
"smp-list-listItem": "_smp-list-
|
|
2023
|
-
}
|
|
2020
|
+
"smp-list": "_smp-list_6ni6l_1",
|
|
2021
|
+
"smp-list-container": "_smp-list-container_6ni6l_12",
|
|
2022
|
+
"smp-list-listItem": "_smp-list-listItem_6ni6l_17"
|
|
2023
|
+
};
|
|
2024
|
+
function En(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
2025
|
+
const a = document.createElement("canvas").getContext("2d");
|
|
2026
|
+
if (!a) return 200;
|
|
2027
|
+
a.font = t;
|
|
2028
|
+
let i = 0;
|
|
2029
|
+
for (const o of r) {
|
|
2030
|
+
const l = ke(o.id, o.label, e), u = a.measureText(l);
|
|
2031
|
+
i = Math.max(i, u.width);
|
|
2032
|
+
}
|
|
2033
|
+
return Math.ceil(i + n);
|
|
2034
|
+
}
|
|
2035
|
+
const Tn = 10, Cr = ({
|
|
2024
2036
|
id: r,
|
|
2025
2037
|
options: e,
|
|
2026
|
-
displayMode: t,
|
|
2038
|
+
displayMode: t = "Both",
|
|
2027
2039
|
ref: n,
|
|
2028
2040
|
showFilter: s,
|
|
2029
2041
|
selectedIndex: a = null,
|
|
@@ -2035,15 +2047,15 @@ const Ze = {
|
|
|
2035
2047
|
onKeyDown: u,
|
|
2036
2048
|
isOpen: c
|
|
2037
2049
|
}) => {
|
|
2038
|
-
var
|
|
2050
|
+
var Y;
|
|
2039
2051
|
const [f, d] = K(""), m = 24, [p, v] = K(
|
|
2040
2052
|
a !== null ? a : -1
|
|
2041
|
-
), T = s !== void 0 ? s : e.length >
|
|
2042
|
-
(
|
|
2043
|
-
) : e,
|
|
2044
|
-
d(
|
|
2045
|
-
}, { virtualItems:
|
|
2046
|
-
items:
|
|
2053
|
+
), [E, T] = K(o || 200), b = ce(null), j = s !== void 0 ? s : e.length > Tn, S = f ? e.filter(
|
|
2054
|
+
(N) => N.label.toLowerCase().includes(f.toLowerCase())
|
|
2055
|
+
) : e, g = (N) => {
|
|
2056
|
+
d(N);
|
|
2057
|
+
}, { virtualItems: D, containerProps: k, innerProps: w, scrollToIndex: O } = Pr({
|
|
2058
|
+
items: S,
|
|
2047
2059
|
itemHeight: m,
|
|
2048
2060
|
containerHeight: 200,
|
|
2049
2061
|
overscan: 5
|
|
@@ -2051,86 +2063,89 @@ const Ze = {
|
|
|
2051
2063
|
ne(() => {
|
|
2052
2064
|
a !== null && a !== p && v(a);
|
|
2053
2065
|
}, [a]), ne(() => {
|
|
2054
|
-
p >= 0 && p <
|
|
2055
|
-
}, [p,
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2066
|
+
p >= 0 && p < S.length && O(p);
|
|
2067
|
+
}, [p, S]), ne(() => {
|
|
2068
|
+
c && (b != null && b.current) && b.current.focus();
|
|
2069
|
+
}, [c, b]), ne(() => {
|
|
2070
|
+
const N = En(e, t);
|
|
2071
|
+
T(N);
|
|
2072
|
+
}, [e, t]);
|
|
2073
|
+
const $ = (N) => {
|
|
2074
|
+
if (N.key === "ArrowDown" || N.key === "ArrowUp") {
|
|
2075
|
+
N.preventDefault();
|
|
2076
|
+
let H = p;
|
|
2077
|
+
N.key === "ArrowDown" ? H = p < S.length - 1 ? p + 1 : 0 : N.key === "ArrowUp" && (H = p > 0 ? p - 1 : S.length - 1), v(H);
|
|
2078
|
+
} else N.key === "Enter" ? p >= 0 && p < S.length && (l == null || l(S[p])) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
2079
|
+
u && u(N);
|
|
2080
|
+
}, F = (N) => {
|
|
2081
|
+
$(N);
|
|
2082
|
+
}, P = (N) => {
|
|
2083
|
+
$(N);
|
|
2084
|
+
}, C = {
|
|
2068
2085
|
wrapper: `${Ze["smp-list"]}`,
|
|
2069
2086
|
container: `${Ze["smp-list-container"]}`,
|
|
2070
2087
|
virtualScroll: `${Ze["smp-list-virtualScroll"]}`,
|
|
2071
2088
|
listItem: `${Ze["smp-list-listItem"]}`
|
|
2072
|
-
}
|
|
2073
|
-
return
|
|
2074
|
-
c && (I != null && I.current) && I.current.focus();
|
|
2075
|
-
}, [c, I]), /* @__PURE__ */ y.jsxs(
|
|
2089
|
+
};
|
|
2090
|
+
return /* @__PURE__ */ y.jsxs(
|
|
2076
2091
|
"div",
|
|
2077
2092
|
{
|
|
2078
2093
|
id: r,
|
|
2079
2094
|
ref: n,
|
|
2080
|
-
className:
|
|
2095
|
+
className: C.wrapper,
|
|
2081
2096
|
"data-component": "list",
|
|
2082
2097
|
style: {
|
|
2083
|
-
width:
|
|
2098
|
+
width: E
|
|
2084
2099
|
},
|
|
2085
2100
|
children: [
|
|
2086
|
-
|
|
2101
|
+
j && /* @__PURE__ */ y.jsx(
|
|
2087
2102
|
Re,
|
|
2088
2103
|
{
|
|
2089
2104
|
bindValue: f,
|
|
2090
2105
|
placeholder: "Search...",
|
|
2091
|
-
onChange:
|
|
2092
|
-
onKeyDown:
|
|
2093
|
-
inputRef:
|
|
2106
|
+
onChange: g,
|
|
2107
|
+
onKeyDown: F,
|
|
2108
|
+
inputRef: b
|
|
2094
2109
|
}
|
|
2095
2110
|
),
|
|
2096
2111
|
/* @__PURE__ */ y.jsx(
|
|
2097
2112
|
"div",
|
|
2098
2113
|
{
|
|
2099
|
-
...
|
|
2100
|
-
className:
|
|
2114
|
+
...k,
|
|
2115
|
+
className: C.container,
|
|
2101
2116
|
tabIndex: 0,
|
|
2102
2117
|
role: "listbox",
|
|
2103
2118
|
"aria-label": "List",
|
|
2104
|
-
onKeyDown:
|
|
2105
|
-
"aria-activedescendant": p >= 0 && p <
|
|
2106
|
-
children: /* @__PURE__ */ y.jsx("div", { ...
|
|
2107
|
-
const
|
|
2119
|
+
onKeyDown: P,
|
|
2120
|
+
"aria-activedescendant": p >= 0 && p < S.length ? (Y = S[p]) == null ? void 0 : Y.id : void 0,
|
|
2121
|
+
children: /* @__PURE__ */ y.jsx("div", { ...w, className: C.virtualScroll, children: D.map(({ item: N, index: H, offsetTop: q }) => {
|
|
2122
|
+
const X = i.includes(N.id);
|
|
2108
2123
|
return (
|
|
2109
2124
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2110
2125
|
/* @__PURE__ */ y.jsxs(
|
|
2111
2126
|
"li",
|
|
2112
2127
|
{
|
|
2113
2128
|
role: "option",
|
|
2114
|
-
id:
|
|
2115
|
-
"aria-selected": p ===
|
|
2129
|
+
id: N.id,
|
|
2130
|
+
"aria-selected": p === H ? "true" : "false",
|
|
2116
2131
|
tabIndex: -1,
|
|
2117
|
-
className: `${
|
|
2118
|
-
"aria-label":
|
|
2132
|
+
className: `${C.listItem} ${p === H ? "selected-item" : ""}`,
|
|
2133
|
+
"aria-label": N.id + "-" + N.label,
|
|
2119
2134
|
style: {
|
|
2120
2135
|
height: `${m}px`,
|
|
2121
2136
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
2122
2137
|
// lineHeight - 2*padding
|
|
2123
|
-
transform: `translateY(${
|
|
2138
|
+
transform: `translateY(${q}px)`
|
|
2124
2139
|
},
|
|
2125
2140
|
onClick: () => {
|
|
2126
|
-
l == null || l(
|
|
2141
|
+
l == null || l(N), v(H);
|
|
2127
2142
|
},
|
|
2128
2143
|
children: [
|
|
2129
|
-
|
|
2130
|
-
|
|
2144
|
+
ke(N.id, N.label, t),
|
|
2145
|
+
X && /* @__PURE__ */ y.jsx(fe, { icon: "check", width: 16 })
|
|
2131
2146
|
]
|
|
2132
2147
|
},
|
|
2133
|
-
|
|
2148
|
+
N.id
|
|
2134
2149
|
)
|
|
2135
2150
|
);
|
|
2136
2151
|
}) })
|
|
@@ -2146,16 +2161,16 @@ const Ze = {
|
|
|
2146
2161
|
...n
|
|
2147
2162
|
}) => {
|
|
2148
2163
|
const [s, a] = K(
|
|
2149
|
-
|
|
2164
|
+
ke(e, t, r)
|
|
2150
2165
|
);
|
|
2151
2166
|
return ne(() => {
|
|
2152
2167
|
a(e);
|
|
2153
2168
|
}, [e]), ne(() => {
|
|
2154
2169
|
a(
|
|
2155
|
-
|
|
2170
|
+
ke(e, t, r)
|
|
2156
2171
|
);
|
|
2157
2172
|
}, [t, r]), /* @__PURE__ */ y.jsx(Re, { ...n, bindValue: s });
|
|
2158
|
-
},
|
|
2173
|
+
}, On = (r) => {
|
|
2159
2174
|
const e = ce(null);
|
|
2160
2175
|
return ne(() => () => {
|
|
2161
2176
|
e.current && clearTimeout(e.current);
|
|
@@ -2189,36 +2204,36 @@ const Ar = ({
|
|
|
2189
2204
|
_multiActiveIndex: d,
|
|
2190
2205
|
...m
|
|
2191
2206
|
}) => {
|
|
2192
|
-
const p = ce(null), [v,
|
|
2207
|
+
const p = ce(null), [v, E] = K(r), [T, b] = K(e), [j, S] = K(!1), [g, D] = K(t || []), [k, w] = K(0), [O, $] = K([r]), { anchorRef: F, targetRef: P, anchorWidth: C } = pt({
|
|
2193
2208
|
position: "bottom",
|
|
2194
|
-
enabled:
|
|
2195
|
-
}),
|
|
2209
|
+
enabled: j
|
|
2210
|
+
}), Y = le(() => {
|
|
2196
2211
|
var h;
|
|
2197
|
-
|
|
2212
|
+
S(!1), (h = p == null ? void 0 : p.current) == null || h.focus();
|
|
2198
2213
|
}, []);
|
|
2199
|
-
Ae(
|
|
2200
|
-
const
|
|
2201
|
-
h.length >= a ? l && f &&
|
|
2214
|
+
Ae(P, () => Y());
|
|
2215
|
+
const N = On(400), H = (h) => {
|
|
2216
|
+
h.length >= a ? l && f && N(async () => {
|
|
2202
2217
|
const x = await f(l, h);
|
|
2203
|
-
|
|
2204
|
-
}) :
|
|
2218
|
+
D(x), w(x.length > 0 ? 0 : -1), S(!0);
|
|
2219
|
+
}) : Y(), E(h), b(e), u || c == null || c(h, e);
|
|
2205
2220
|
}, q = (h) => {
|
|
2206
|
-
u ? (
|
|
2207
|
-
const x = g.findIndex((
|
|
2208
|
-
|
|
2209
|
-
},
|
|
2210
|
-
h.key === "Escape" && (
|
|
2211
|
-
},
|
|
2212
|
-
if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(),
|
|
2221
|
+
u ? (E(""), b("")) : (E(h.id), b(h.label)), c == null || c(h.id, h.label);
|
|
2222
|
+
const x = g.findIndex((R) => R.id === h.id);
|
|
2223
|
+
w(x), $([h.id]), Y();
|
|
2224
|
+
}, X = (h) => {
|
|
2225
|
+
h.key === "Escape" && (Y(), w(-1));
|
|
2226
|
+
}, M = (h) => {
|
|
2227
|
+
if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), j)) {
|
|
2213
2228
|
const x = h.key === "ArrowDown" ? (k + 1) % g.length : (k - 1 + g.length) % g.length;
|
|
2214
|
-
|
|
2229
|
+
w(x);
|
|
2215
2230
|
}
|
|
2216
2231
|
switch (h.key) {
|
|
2217
2232
|
case "Enter":
|
|
2218
|
-
k >= 0 && k < g.length ? q(g[k]) : u && (c == null || c(v, ""),
|
|
2233
|
+
k >= 0 && k < g.length ? q(g[k]) : u && (c == null || c(v, ""), Y(), E(""), b(""));
|
|
2219
2234
|
break;
|
|
2220
2235
|
case "Escape":
|
|
2221
|
-
|
|
2236
|
+
Y(), w(-1);
|
|
2222
2237
|
break;
|
|
2223
2238
|
}
|
|
2224
2239
|
};
|
|
@@ -2228,31 +2243,31 @@ const Ar = ({
|
|
|
2228
2243
|
{
|
|
2229
2244
|
...m,
|
|
2230
2245
|
bindValue: v,
|
|
2231
|
-
optionalDisplayValue:
|
|
2246
|
+
optionalDisplayValue: T,
|
|
2232
2247
|
displayMode: n,
|
|
2233
2248
|
isEditable: i,
|
|
2234
2249
|
shapeIcon: "magnify",
|
|
2235
2250
|
placeholder: o,
|
|
2236
|
-
ref:
|
|
2251
|
+
ref: F,
|
|
2237
2252
|
inputRef: p,
|
|
2238
2253
|
onChange: H,
|
|
2239
|
-
onKeyDown:
|
|
2254
|
+
onKeyDown: M,
|
|
2240
2255
|
"aria-autocomplete": "list"
|
|
2241
2256
|
}
|
|
2242
2257
|
),
|
|
2243
|
-
|
|
2258
|
+
j && /* @__PURE__ */ y.jsx(ht, { children: /* @__PURE__ */ y.jsx(
|
|
2244
2259
|
Cr,
|
|
2245
2260
|
{
|
|
2246
2261
|
options: g,
|
|
2247
2262
|
displayMode: s,
|
|
2248
2263
|
onClick: q,
|
|
2249
|
-
ref:
|
|
2264
|
+
ref: P,
|
|
2250
2265
|
selectedIndex: k,
|
|
2251
2266
|
activeIndex: d || O,
|
|
2252
|
-
width:
|
|
2267
|
+
width: C,
|
|
2253
2268
|
showFilter: !1,
|
|
2254
|
-
onKeyDown:
|
|
2255
|
-
isOpen:
|
|
2269
|
+
onKeyDown: X,
|
|
2270
|
+
isOpen: j
|
|
2256
2271
|
}
|
|
2257
2272
|
) })
|
|
2258
2273
|
] });
|
|
@@ -2284,14 +2299,14 @@ const Ar = ({
|
|
|
2284
2299
|
title: p,
|
|
2285
2300
|
optionalDisplayValue: v
|
|
2286
2301
|
}) => {
|
|
2287
|
-
const
|
|
2302
|
+
const E = {
|
|
2288
2303
|
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${m}`
|
|
2289
2304
|
};
|
|
2290
2305
|
return /* @__PURE__ */ y.jsx(
|
|
2291
2306
|
"button",
|
|
2292
2307
|
{
|
|
2293
2308
|
"data-component": "button",
|
|
2294
|
-
className:
|
|
2309
|
+
className: E.container,
|
|
2295
2310
|
onClick: t,
|
|
2296
2311
|
"aria-label": n,
|
|
2297
2312
|
disabled: a,
|
|
@@ -2312,7 +2327,7 @@ const Ar = ({
|
|
|
2312
2327
|
] })
|
|
2313
2328
|
}
|
|
2314
2329
|
);
|
|
2315
|
-
},
|
|
2330
|
+
}, jn = ({
|
|
2316
2331
|
options: r,
|
|
2317
2332
|
fun: e,
|
|
2318
2333
|
direction: t = "row",
|
|
@@ -2337,10 +2352,10 @@ const Ar = ({
|
|
|
2337
2352
|
);
|
|
2338
2353
|
});
|
|
2339
2354
|
}, [p, e, m]);
|
|
2340
|
-
const
|
|
2355
|
+
const E = {
|
|
2341
2356
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
2342
|
-
},
|
|
2343
|
-
const
|
|
2357
|
+
}, T = p == null ? void 0 : p.map((b, j) => {
|
|
2358
|
+
const S = {
|
|
2344
2359
|
bindValue: b.id,
|
|
2345
2360
|
optionalDisplayValue: b.label,
|
|
2346
2361
|
fun: b.fun,
|
|
@@ -2357,12 +2372,12 @@ const Ar = ({
|
|
|
2357
2372
|
d == null || d(b.id, b.fun);
|
|
2358
2373
|
}
|
|
2359
2374
|
};
|
|
2360
|
-
return /* @__PURE__ */ y.jsx(Ye, { ...
|
|
2375
|
+
return /* @__PURE__ */ y.jsx(Ye, { ...S }, `button-${j}`);
|
|
2361
2376
|
});
|
|
2362
|
-
return /* @__PURE__ */ y.jsx("div", { role: "list", "data-component": "button-list", className:
|
|
2363
|
-
},
|
|
2377
|
+
return /* @__PURE__ */ y.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: T });
|
|
2378
|
+
}, Rn = {
|
|
2364
2379
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
2365
|
-
},
|
|
2380
|
+
}, Dn = ({
|
|
2366
2381
|
bindValue: r,
|
|
2367
2382
|
_dataComponent: e = "checkbox",
|
|
2368
2383
|
disabled: t,
|
|
@@ -2375,7 +2390,7 @@ const Ar = ({
|
|
|
2375
2390
|
const l = Be(), u = (f) => {
|
|
2376
2391
|
s && a && a(f.target.checked);
|
|
2377
2392
|
}, c = {
|
|
2378
|
-
wrapper: `${
|
|
2393
|
+
wrapper: `${Rn["smp-checkbox-wrapper"]}`
|
|
2379
2394
|
};
|
|
2380
2395
|
return /* @__PURE__ */ y.jsxs("div", { className: c.wrapper, "data-component": e, children: [
|
|
2381
2396
|
n && /* @__PURE__ */ y.jsx(je, { label: n, disabled: t, htmlFor: l }),
|
|
@@ -2392,18 +2407,18 @@ const Ar = ({
|
|
|
2392
2407
|
}
|
|
2393
2408
|
)
|
|
2394
2409
|
] });
|
|
2395
|
-
},
|
|
2410
|
+
}, _n = {
|
|
2396
2411
|
titleLarge: "h2",
|
|
2397
2412
|
title: "h3",
|
|
2398
2413
|
body: "h6",
|
|
2399
2414
|
label: "label"
|
|
2400
|
-
},
|
|
2415
|
+
}, Le = ({
|
|
2401
2416
|
variant: r = "body",
|
|
2402
2417
|
bindValue: e,
|
|
2403
2418
|
color: t,
|
|
2404
2419
|
...n
|
|
2405
2420
|
}) => {
|
|
2406
|
-
const s =
|
|
2421
|
+
const s = _n[r], a = {
|
|
2407
2422
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
2408
2423
|
};
|
|
2409
2424
|
return /* @__PURE__ */ y.jsx(
|
|
@@ -2439,11 +2454,11 @@ const Ar = ({
|
|
|
2439
2454
|
p.splice(m, 0, v), n == null || n(p), l(null);
|
|
2440
2455
|
};
|
|
2441
2456
|
return /* @__PURE__ */ y.jsx("div", { className: u.container, role: "list", "data-component": "chip", children: r.flatMap((m, p) => {
|
|
2442
|
-
const v =
|
|
2457
|
+
const v = ke(
|
|
2443
2458
|
m.bindValue,
|
|
2444
2459
|
m.optionalDisplayValue,
|
|
2445
2460
|
t
|
|
2446
|
-
),
|
|
2461
|
+
), E = /* @__PURE__ */ y.jsxs(
|
|
2447
2462
|
"div",
|
|
2448
2463
|
{
|
|
2449
2464
|
className: u.element,
|
|
@@ -2457,7 +2472,7 @@ const Ar = ({
|
|
|
2457
2472
|
},
|
|
2458
2473
|
children: [
|
|
2459
2474
|
i && /* @__PURE__ */ y.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2460
|
-
/* @__PURE__ */ y.jsx(
|
|
2475
|
+
/* @__PURE__ */ y.jsx(Le, { variant: "label", bindValue: v, color: s }),
|
|
2461
2476
|
e && /* @__PURE__ */ y.jsx(
|
|
2462
2477
|
fe,
|
|
2463
2478
|
{
|
|
@@ -2470,7 +2485,7 @@ const Ar = ({
|
|
|
2470
2485
|
]
|
|
2471
2486
|
},
|
|
2472
2487
|
`chip-${p}`
|
|
2473
|
-
),
|
|
2488
|
+
), T = i && p < r.length - 1 ? /* @__PURE__ */ y.jsx(
|
|
2474
2489
|
fe,
|
|
2475
2490
|
{
|
|
2476
2491
|
icon: "chevron-right",
|
|
@@ -2478,7 +2493,7 @@ const Ar = ({
|
|
|
2478
2493
|
},
|
|
2479
2494
|
`separator-${p}`
|
|
2480
2495
|
) : null;
|
|
2481
|
-
return [
|
|
2496
|
+
return [E, T].filter(Boolean);
|
|
2482
2497
|
}) });
|
|
2483
2498
|
};
|
|
2484
2499
|
function Lt(r, e) {
|
|
@@ -2520,7 +2535,7 @@ function Lt(r, e) {
|
|
|
2520
2535
|
};
|
|
2521
2536
|
}, [r, e]);
|
|
2522
2537
|
}
|
|
2523
|
-
const
|
|
2538
|
+
const $n = ({
|
|
2524
2539
|
bindValue: r,
|
|
2525
2540
|
onChange: e,
|
|
2526
2541
|
options: t = [],
|
|
@@ -2533,25 +2548,25 @@ const _n = ({
|
|
|
2533
2548
|
multiActiveIndex: u,
|
|
2534
2549
|
...c
|
|
2535
2550
|
}) => {
|
|
2536
|
-
const f = ce(null), [d, m] = K(!1), [p, v] = K(t), [
|
|
2551
|
+
const f = ce(null), [d, m] = K(!1), [p, v] = K(t), [E, T] = K(-1), [b, j] = K([r]), S = Be(), { anchorRef: g, targetRef: D, anchorWidth: k } = pt({
|
|
2537
2552
|
position: "bottom",
|
|
2538
2553
|
enabled: d
|
|
2539
|
-
}),
|
|
2540
|
-
var
|
|
2541
|
-
m(!1), (
|
|
2554
|
+
}), w = le(() => {
|
|
2555
|
+
var C;
|
|
2556
|
+
m(!1), (C = f == null ? void 0 : f.current) == null || C.focus();
|
|
2542
2557
|
}, []);
|
|
2543
|
-
Ae(
|
|
2544
|
-
const O = (
|
|
2545
|
-
e == null || e(
|
|
2546
|
-
const
|
|
2547
|
-
|
|
2548
|
-
},
|
|
2549
|
-
|
|
2550
|
-
},
|
|
2551
|
-
(
|
|
2552
|
-
},
|
|
2553
|
-
o && l && l(o, void 0).then((
|
|
2554
|
-
v(
|
|
2558
|
+
Ae(D, () => w()), Lt(d, D);
|
|
2559
|
+
const O = (C) => {
|
|
2560
|
+
e == null || e(C.id, C.label);
|
|
2561
|
+
const Y = p.findIndex((N) => N.id === C.id);
|
|
2562
|
+
T(Y), j([C.id]), w();
|
|
2563
|
+
}, $ = (C) => {
|
|
2564
|
+
C.key === "Escape" && (w(), T(-1));
|
|
2565
|
+
}, F = (C) => {
|
|
2566
|
+
(C.key === "ArrowDown" || C.key === "ArrowUp") && (C.preventDefault(), P());
|
|
2567
|
+
}, P = () => {
|
|
2568
|
+
o && l && l(o, void 0).then((C) => {
|
|
2569
|
+
v(C), T(C.length > 0 ? 0 : -1), m(!0);
|
|
2555
2570
|
});
|
|
2556
2571
|
};
|
|
2557
2572
|
return /* @__PURE__ */ y.jsxs(
|
|
@@ -2559,8 +2574,8 @@ const _n = ({
|
|
|
2559
2574
|
{
|
|
2560
2575
|
role: "combobox",
|
|
2561
2576
|
"aria-expanded": d,
|
|
2562
|
-
"aria-controls":
|
|
2563
|
-
"aria-owns":
|
|
2577
|
+
"aria-controls": S,
|
|
2578
|
+
"aria-owns": S,
|
|
2564
2579
|
"data-component": "combobox",
|
|
2565
2580
|
children: [
|
|
2566
2581
|
/* @__PURE__ */ y.jsx(
|
|
@@ -2570,8 +2585,8 @@ const _n = ({
|
|
|
2570
2585
|
bindValue: r,
|
|
2571
2586
|
optionalDisplayValue: n,
|
|
2572
2587
|
displayMode: a,
|
|
2573
|
-
onShapeIconClick:
|
|
2574
|
-
onKeyDown:
|
|
2588
|
+
onShapeIconClick: P,
|
|
2589
|
+
onKeyDown: F,
|
|
2575
2590
|
shapeIcon: "arrow_drop_down",
|
|
2576
2591
|
rotatedShapeIcon: d,
|
|
2577
2592
|
isEditable: s,
|
|
@@ -2584,32 +2599,32 @@ const _n = ({
|
|
|
2584
2599
|
d && /* @__PURE__ */ y.jsx(ht, { children: /* @__PURE__ */ y.jsx(
|
|
2585
2600
|
Cr,
|
|
2586
2601
|
{
|
|
2587
|
-
id:
|
|
2602
|
+
id: S,
|
|
2588
2603
|
options: p,
|
|
2589
2604
|
displayMode: i,
|
|
2590
|
-
ref:
|
|
2605
|
+
ref: D,
|
|
2591
2606
|
isOpen: d,
|
|
2592
|
-
selectedIndex:
|
|
2607
|
+
selectedIndex: E,
|
|
2593
2608
|
activeIndex: u || b,
|
|
2594
2609
|
width: k,
|
|
2595
2610
|
onClick: O,
|
|
2596
|
-
onKeyDown:
|
|
2611
|
+
onKeyDown: $
|
|
2597
2612
|
}
|
|
2598
2613
|
) })
|
|
2599
2614
|
]
|
|
2600
2615
|
}
|
|
2601
2616
|
);
|
|
2602
|
-
}, z = (r) => typeof r == "string",
|
|
2617
|
+
}, z = (r) => typeof r == "string", Fe = () => {
|
|
2603
2618
|
let r, e;
|
|
2604
2619
|
const t = new Promise((n, s) => {
|
|
2605
2620
|
r = n, e = s;
|
|
2606
2621
|
});
|
|
2607
2622
|
return t.resolve = r, t.reject = e, t;
|
|
2608
|
-
}, or = (r) => r == null ? "" : "" + r,
|
|
2623
|
+
}, or = (r) => r == null ? "" : "" + r, Pn = (r, e, t) => {
|
|
2609
2624
|
r.forEach((n) => {
|
|
2610
2625
|
e[n] && (t[n] = e[n]);
|
|
2611
2626
|
});
|
|
2612
|
-
},
|
|
2627
|
+
}, Cn = /###/g, lr = (r) => r && r.indexOf("###") > -1 ? r.replace(Cn, ".") : r, cr = (r) => !r || z(r), Ve = (r, e, t) => {
|
|
2613
2628
|
const n = z(e) ? e.split(".") : e;
|
|
2614
2629
|
let s = 0;
|
|
2615
2630
|
for (; s < n.length - 1; ) {
|
|
@@ -2625,29 +2640,29 @@ const _n = ({
|
|
|
2625
2640
|
const {
|
|
2626
2641
|
obj: n,
|
|
2627
2642
|
k: s
|
|
2628
|
-
} =
|
|
2643
|
+
} = Ve(r, e, Object);
|
|
2629
2644
|
if (n !== void 0 || e.length === 1) {
|
|
2630
2645
|
n[s] = t;
|
|
2631
2646
|
return;
|
|
2632
2647
|
}
|
|
2633
|
-
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o =
|
|
2648
|
+
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = Ve(r, i, Object);
|
|
2634
2649
|
for (; o.obj === void 0 && i.length; )
|
|
2635
|
-
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o =
|
|
2650
|
+
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);
|
|
2636
2651
|
o.obj[`${o.k}.${a}`] = t;
|
|
2637
|
-
},
|
|
2652
|
+
}, An = (r, e, t, n) => {
|
|
2638
2653
|
const {
|
|
2639
2654
|
obj: s,
|
|
2640
2655
|
k: a
|
|
2641
|
-
} =
|
|
2656
|
+
} = Ve(r, e, Object);
|
|
2642
2657
|
s[a] = s[a] || [], s[a].push(t);
|
|
2643
2658
|
}, lt = (r, e) => {
|
|
2644
2659
|
const {
|
|
2645
2660
|
obj: t,
|
|
2646
2661
|
k: n
|
|
2647
|
-
} =
|
|
2662
|
+
} = Ve(r, e);
|
|
2648
2663
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2649
2664
|
return t[n];
|
|
2650
|
-
},
|
|
2665
|
+
}, kn = (r, e, t) => {
|
|
2651
2666
|
const n = lt(r, t);
|
|
2652
2667
|
return n !== void 0 ? n : lt(e, t);
|
|
2653
2668
|
}, kr = (r, e, t) => {
|
|
@@ -2655,7 +2670,7 @@ const _n = ({
|
|
|
2655
2670
|
n !== "__proto__" && n !== "constructor" && (n in r ? z(r[n]) || r[n] instanceof String || z(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : kr(r[n], e[n], t) : r[n] = e[n]);
|
|
2656
2671
|
return r;
|
|
2657
2672
|
}, _e = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2658
|
-
var
|
|
2673
|
+
var Ln = {
|
|
2659
2674
|
"&": "&",
|
|
2660
2675
|
"<": "<",
|
|
2661
2676
|
">": ">",
|
|
@@ -2663,8 +2678,8 @@ var kn = {
|
|
|
2663
2678
|
"'": "'",
|
|
2664
2679
|
"/": "/"
|
|
2665
2680
|
};
|
|
2666
|
-
const
|
|
2667
|
-
class
|
|
2681
|
+
const Nn = (r) => z(r) ? r.replace(/[&<>"'\/]/g, (e) => Ln[e]) : r;
|
|
2682
|
+
class In {
|
|
2668
2683
|
constructor(e) {
|
|
2669
2684
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
2670
2685
|
}
|
|
@@ -2676,11 +2691,11 @@ class Nn {
|
|
|
2676
2691
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
|
|
2677
2692
|
}
|
|
2678
2693
|
}
|
|
2679
|
-
const
|
|
2694
|
+
const Mn = [" ", ",", "?", "!", ";"], Fn = new In(20), Vn = (r, e, t) => {
|
|
2680
2695
|
e = e || "", t = t || "";
|
|
2681
|
-
const n =
|
|
2696
|
+
const n = Mn.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2682
2697
|
if (n.length === 0) return !0;
|
|
2683
|
-
const s =
|
|
2698
|
+
const s = Fn.getRegExp(`(${n.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2684
2699
|
let a = !s.test(r);
|
|
2685
2700
|
if (!a) {
|
|
2686
2701
|
const i = r.indexOf(t);
|
|
@@ -2707,7 +2722,7 @@ const In = [" ", ",", "?", "!", ";"], Mn = new Nn(20), Fn = (r, e, t) => {
|
|
|
2707
2722
|
s = i;
|
|
2708
2723
|
}
|
|
2709
2724
|
return s;
|
|
2710
|
-
}, Ue = (r) => r == null ? void 0 : r.replace("_", "-"),
|
|
2725
|
+
}, Ue = (r) => r == null ? void 0 : r.replace("_", "-"), Yn = {
|
|
2711
2726
|
type: "logger",
|
|
2712
2727
|
log(r) {
|
|
2713
2728
|
this.output("log", r);
|
|
@@ -2728,7 +2743,7 @@ class ct {
|
|
|
2728
2743
|
this.init(e, t);
|
|
2729
2744
|
}
|
|
2730
2745
|
init(e, t = {}) {
|
|
2731
|
-
this.prefix = t.prefix || "i18next:", this.logger = e ||
|
|
2746
|
+
this.prefix = t.prefix || "i18next:", this.logger = e || Yn, this.options = t, this.debug = t.debug;
|
|
2732
2747
|
}
|
|
2733
2748
|
log(...e) {
|
|
2734
2749
|
return this.forward(e, "log", "", !0);
|
|
@@ -2871,7 +2886,7 @@ var Lr = {
|
|
|
2871
2886
|
const dr = {}, pr = (r) => !z(r) && typeof r != "boolean" && typeof r != "number";
|
|
2872
2887
|
class ut extends mt {
|
|
2873
2888
|
constructor(e, t = {}) {
|
|
2874
|
-
super(),
|
|
2889
|
+
super(), Pn(["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");
|
|
2875
2890
|
}
|
|
2876
2891
|
changeLanguage(e) {
|
|
2877
2892
|
e && (this.language = e);
|
|
@@ -2891,7 +2906,7 @@ class ut extends mt {
|
|
|
2891
2906
|
n === void 0 && (n = ":");
|
|
2892
2907
|
const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
|
|
2893
2908
|
let a = t.ns || this.options.defaultNS || [];
|
|
2894
|
-
const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !
|
|
2909
|
+
const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Vn(e, n, s);
|
|
2895
2910
|
if (i && !o) {
|
|
2896
2911
|
const l = e.match(this.interpolator.nestingRegexp);
|
|
2897
2912
|
if (l && l.length > 0)
|
|
@@ -2940,46 +2955,46 @@ class ut extends mt {
|
|
|
2940
2955
|
} : o;
|
|
2941
2956
|
const m = this.resolve(e, s);
|
|
2942
2957
|
let p = m == null ? void 0 : m.res;
|
|
2943
|
-
const v = (m == null ? void 0 : m.usedKey) || o,
|
|
2958
|
+
const v = (m == null ? void 0 : m.usedKey) || o, E = (m == null ? void 0 : m.exactUsedKey) || o, T = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, j = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !z(s.count), g = ut.hasDefaultValue(s), D = S ? this.pluralResolver.getSuffix(f, s.count, s) : "", k = s.ordinal && S ? this.pluralResolver.getSuffix(f, s.count, {
|
|
2944
2959
|
ordinal: !1
|
|
2945
|
-
}) : "",
|
|
2946
|
-
let
|
|
2947
|
-
|
|
2948
|
-
const
|
|
2949
|
-
if (
|
|
2960
|
+
}) : "", w = S && !s.ordinal && s.count === 0, O = w && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2961
|
+
let $ = p;
|
|
2962
|
+
j && !p && g && ($ = O);
|
|
2963
|
+
const F = pr($), P = Object.prototype.toString.apply($);
|
|
2964
|
+
if (j && $ && F && T.indexOf(P) < 0 && !(z(b) && Array.isArray($))) {
|
|
2950
2965
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2951
2966
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2952
|
-
const
|
|
2967
|
+
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, $, {
|
|
2953
2968
|
...s,
|
|
2954
2969
|
ns: l
|
|
2955
2970
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2956
|
-
return a ? (m.res =
|
|
2971
|
+
return a ? (m.res = C, m.usedParams = this.getUsedParamsDetails(s), m) : C;
|
|
2957
2972
|
}
|
|
2958
2973
|
if (i) {
|
|
2959
|
-
const
|
|
2960
|
-
for (const H in
|
|
2961
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2962
|
-
const q = `${
|
|
2963
|
-
g && !p ?
|
|
2974
|
+
const C = Array.isArray($), Y = C ? [] : {}, N = C ? E : v;
|
|
2975
|
+
for (const H in $)
|
|
2976
|
+
if (Object.prototype.hasOwnProperty.call($, H)) {
|
|
2977
|
+
const q = `${N}${i}${H}`;
|
|
2978
|
+
g && !p ? Y[H] = this.translate(q, {
|
|
2964
2979
|
...s,
|
|
2965
2980
|
defaultValue: pr(O) ? O[H] : void 0,
|
|
2966
2981
|
joinArrays: !1,
|
|
2967
2982
|
ns: l
|
|
2968
|
-
}) :
|
|
2983
|
+
}) : Y[H] = this.translate(q, {
|
|
2969
2984
|
...s,
|
|
2970
2985
|
joinArrays: !1,
|
|
2971
2986
|
ns: l
|
|
2972
|
-
}),
|
|
2987
|
+
}), Y[H] === q && (Y[H] = $[H]);
|
|
2973
2988
|
}
|
|
2974
|
-
p =
|
|
2989
|
+
p = Y;
|
|
2975
2990
|
}
|
|
2976
|
-
} else if (
|
|
2991
|
+
} else if (j && z(b) && Array.isArray(p))
|
|
2977
2992
|
p = p.join(b), p && (p = this.extendTranslation(p, e, s, n));
|
|
2978
2993
|
else {
|
|
2979
|
-
let
|
|
2980
|
-
!this.isValidLookup(p) && g && (
|
|
2981
|
-
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2982
|
-
if (
|
|
2994
|
+
let C = !1, Y = !1;
|
|
2995
|
+
!this.isValidLookup(p) && g && (C = !0, p = O), this.isValidLookup(p) || (Y = !0, p = o);
|
|
2996
|
+
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && Y ? void 0 : p, q = g && O !== p && this.options.updateMissing;
|
|
2997
|
+
if (Y || C || q) {
|
|
2983
2998
|
if (this.logger.log(q ? "updateKey" : "missingKey", f, u, o, q ? O : p), i) {
|
|
2984
2999
|
const x = this.resolve(o, {
|
|
2985
3000
|
...s,
|
|
@@ -2987,25 +3002,25 @@ class ut extends mt {
|
|
|
2987
3002
|
});
|
|
2988
3003
|
x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2989
3004
|
}
|
|
2990
|
-
let
|
|
2991
|
-
const
|
|
2992
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2993
|
-
for (let x = 0; x <
|
|
2994
|
-
|
|
2995
|
-
else this.options.saveMissingTo === "all" ?
|
|
2996
|
-
const h = (x,
|
|
3005
|
+
let X = [];
|
|
3006
|
+
const M = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
3007
|
+
if (this.options.saveMissingTo === "fallback" && M && M[0])
|
|
3008
|
+
for (let x = 0; x < M.length; x++)
|
|
3009
|
+
X.push(M[x]);
|
|
3010
|
+
else this.options.saveMissingTo === "all" ? X = this.languageUtils.toResolveHierarchy(s.lng || this.language) : X.push(s.lng || this.language);
|
|
3011
|
+
const h = (x, R, A) => {
|
|
2997
3012
|
var L;
|
|
2998
|
-
const
|
|
2999
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, u,
|
|
3013
|
+
const _ = g && A !== p ? A : H;
|
|
3014
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, u, R, _, q, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(x, u, R, _, q, s), this.emit("missingKey", x, u, R, p);
|
|
3000
3015
|
};
|
|
3001
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
3002
|
-
const
|
|
3003
|
-
|
|
3016
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? X.forEach((x) => {
|
|
3017
|
+
const R = this.pluralResolver.getSuffixes(x, s);
|
|
3018
|
+
w && s[`defaultValue${this.options.pluralSeparator}zero`] && R.indexOf(`${this.options.pluralSeparator}zero`) < 0 && R.push(`${this.options.pluralSeparator}zero`), R.forEach((A) => {
|
|
3004
3019
|
h([x], o + A, s[`defaultValue${A}`] || O);
|
|
3005
3020
|
});
|
|
3006
|
-
}) : h(
|
|
3021
|
+
}) : h(X, o, O));
|
|
3007
3022
|
}
|
|
3008
|
-
p = this.extendTranslation(p, e, s, m, n),
|
|
3023
|
+
p = this.extendTranslation(p, e, s, m, n), Y && p === o && this.options.appendNamespaceToMissingKey && (p = `${u}${c}${o}`), (Y || C) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}${c}${o}` : o, C ? p : void 0, s));
|
|
3009
3024
|
}
|
|
3010
3025
|
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
3011
3026
|
}
|
|
@@ -3060,27 +3075,27 @@ class ut extends mt {
|
|
|
3060
3075
|
let f = u.namespaces;
|
|
3061
3076
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
3062
3077
|
const d = t.count !== void 0 && !z(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (z(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
3063
|
-
f.forEach((
|
|
3064
|
-
var
|
|
3065
|
-
this.isValidLookup(n) || (o =
|
|
3066
|
-
var
|
|
3078
|
+
f.forEach((E) => {
|
|
3079
|
+
var T, b;
|
|
3080
|
+
this.isValidLookup(n) || (o = E, !dr[`${v[0]}-${E}`] && ((T = this.utils) != null && T.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(o)) && (dr[`${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((j) => {
|
|
3081
|
+
var D;
|
|
3067
3082
|
if (this.isValidLookup(n)) return;
|
|
3068
|
-
i =
|
|
3069
|
-
const
|
|
3070
|
-
if ((
|
|
3071
|
-
this.i18nFormat.addLookupKeys(
|
|
3083
|
+
i = j;
|
|
3084
|
+
const S = [c];
|
|
3085
|
+
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
3086
|
+
this.i18nFormat.addLookupKeys(S, c, j, E, t);
|
|
3072
3087
|
else {
|
|
3073
3088
|
let k;
|
|
3074
|
-
d && (k = this.pluralResolver.getSuffix(
|
|
3075
|
-
const
|
|
3076
|
-
if (d && (
|
|
3077
|
-
const
|
|
3078
|
-
|
|
3089
|
+
d && (k = this.pluralResolver.getSuffix(j, t.count, t));
|
|
3090
|
+
const w = `${this.options.pluralSeparator}zero`, O = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3091
|
+
if (d && (S.push(c + k), t.ordinal && k.indexOf(O) === 0 && S.push(c + k.replace(O, this.options.pluralSeparator)), m && S.push(c + w)), p) {
|
|
3092
|
+
const $ = `${c}${this.options.contextSeparator}${t.context}`;
|
|
3093
|
+
S.push($), d && (S.push($ + k), t.ordinal && k.indexOf(O) === 0 && S.push($ + k.replace(O, this.options.pluralSeparator)), m && S.push($ + w));
|
|
3079
3094
|
}
|
|
3080
3095
|
}
|
|
3081
3096
|
let g;
|
|
3082
|
-
for (; g =
|
|
3083
|
-
this.isValidLookup(n) || (a = g, n = this.getResource(
|
|
3097
|
+
for (; g = S.pop(); )
|
|
3098
|
+
this.isValidLookup(n) || (a = g, n = this.getResource(j, E, g, t));
|
|
3084
3099
|
}));
|
|
3085
3100
|
});
|
|
3086
3101
|
}), {
|
|
@@ -3198,7 +3213,7 @@ const mr = {
|
|
|
3198
3213
|
pluralCategories: ["one", "other"]
|
|
3199
3214
|
})
|
|
3200
3215
|
};
|
|
3201
|
-
class
|
|
3216
|
+
class Un {
|
|
3202
3217
|
constructor(e, t = {}) {
|
|
3203
3218
|
this.languageUtils = e, this.options = t, this.logger = be.create("pluralResolver"), this.pluralRulesCache = {};
|
|
3204
3219
|
}
|
|
@@ -3246,10 +3261,10 @@ class Yn {
|
|
|
3246
3261
|
}
|
|
3247
3262
|
}
|
|
3248
3263
|
const yr = (r, e, t, n = ".", s = !0) => {
|
|
3249
|
-
let a =
|
|
3264
|
+
let a = kn(r, e, t);
|
|
3250
3265
|
return !a && s && z(t) && (a = _t(r, t, n), a === void 0 && (a = _t(e, t, n))), a;
|
|
3251
3266
|
}, Ot = (r) => r.replace(/\$/g, "$$$$");
|
|
3252
|
-
class
|
|
3267
|
+
class Wn {
|
|
3253
3268
|
constructor(e = {}) {
|
|
3254
3269
|
var t;
|
|
3255
3270
|
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);
|
|
@@ -3273,11 +3288,11 @@ class Un {
|
|
|
3273
3288
|
nestingPrefixEscaped: m,
|
|
3274
3289
|
nestingSuffix: p,
|
|
3275
3290
|
nestingSuffixEscaped: v,
|
|
3276
|
-
nestingOptionsSeparator:
|
|
3277
|
-
maxReplaces:
|
|
3291
|
+
nestingOptionsSeparator: E,
|
|
3292
|
+
maxReplaces: T,
|
|
3278
3293
|
alwaysFormat: b
|
|
3279
3294
|
} = e.interpolation;
|
|
3280
|
-
this.escape = t !== void 0 ? t :
|
|
3295
|
+
this.escape = t !== void 0 ? t : Nn, 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) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = d ? _e(d) : m || _e("$t("), this.nestingSuffix = p ? _e(p) : v || _e(")"), this.nestingOptionsSeparator = E || ",", this.maxReplaces = T || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
3281
3296
|
}
|
|
3282
3297
|
reset() {
|
|
3283
3298
|
this.options && this.init(this.options);
|
|
@@ -3298,11 +3313,11 @@ class Un {
|
|
|
3298
3313
|
interpolationkey: p
|
|
3299
3314
|
}) : b;
|
|
3300
3315
|
}
|
|
3301
|
-
const v = p.split(this.formatSeparator),
|
|
3302
|
-
return this.format(yr(t, l,
|
|
3316
|
+
const v = p.split(this.formatSeparator), E = v.shift().trim(), T = v.join(this.formatSeparator).trim();
|
|
3317
|
+
return this.format(yr(t, l, E, this.options.keySeparator, this.options.ignoreJSONStructure), T, n, {
|
|
3303
3318
|
...s,
|
|
3304
3319
|
...t,
|
|
3305
|
-
interpolationkey:
|
|
3320
|
+
interpolationkey: E
|
|
3306
3321
|
});
|
|
3307
3322
|
};
|
|
3308
3323
|
this.resetRegExp();
|
|
@@ -3318,8 +3333,8 @@ class Un {
|
|
|
3318
3333
|
const v = a[1].trim();
|
|
3319
3334
|
if (i = u(v), i === void 0)
|
|
3320
3335
|
if (typeof c == "function") {
|
|
3321
|
-
const
|
|
3322
|
-
i = z(
|
|
3336
|
+
const T = c(e, a, s);
|
|
3337
|
+
i = z(T) ? T : "";
|
|
3323
3338
|
} else if (s && Object.prototype.hasOwnProperty.call(s, v))
|
|
3324
3339
|
i = "";
|
|
3325
3340
|
else if (f) {
|
|
@@ -3328,8 +3343,8 @@ class Un {
|
|
|
3328
3343
|
} else
|
|
3329
3344
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), i = "";
|
|
3330
3345
|
else !z(i) && !this.useRawValueToEscape && (i = or(i));
|
|
3331
|
-
const
|
|
3332
|
-
if (e = e.replace(a[0],
|
|
3346
|
+
const E = p.safeValue(i);
|
|
3347
|
+
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)
|
|
3333
3348
|
break;
|
|
3334
3349
|
}
|
|
3335
3350
|
}), e;
|
|
@@ -3373,7 +3388,7 @@ class Un {
|
|
|
3373
3388
|
return e;
|
|
3374
3389
|
}
|
|
3375
3390
|
}
|
|
3376
|
-
const
|
|
3391
|
+
const Bn = (r) => {
|
|
3377
3392
|
let e = r.toLowerCase().trim();
|
|
3378
3393
|
const t = {};
|
|
3379
3394
|
if (r.indexOf("(") > -1) {
|
|
@@ -3403,8 +3418,8 @@ const Wn = (r) => {
|
|
|
3403
3418
|
let o = e[i];
|
|
3404
3419
|
return o || (o = r(Ue(n), s), e[i] = o), o(t);
|
|
3405
3420
|
};
|
|
3406
|
-
},
|
|
3407
|
-
class
|
|
3421
|
+
}, Hn = (r) => (e, t, n) => r(Ue(t), n)(e);
|
|
3422
|
+
class Gn {
|
|
3408
3423
|
constructor(e = {}) {
|
|
3409
3424
|
this.logger = be.create("formatter"), this.options = e, this.init(e);
|
|
3410
3425
|
}
|
|
@@ -3412,7 +3427,7 @@ class Hn {
|
|
|
3412
3427
|
interpolation: {}
|
|
3413
3428
|
}) {
|
|
3414
3429
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3415
|
-
const n = t.cacheInBuiltFormats ? vr :
|
|
3430
|
+
const n = t.cacheInBuiltFormats ? vr : Hn;
|
|
3416
3431
|
this.formats = {
|
|
3417
3432
|
number: n((s, a) => {
|
|
3418
3433
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3464,7 +3479,7 @@ class Hn {
|
|
|
3464
3479
|
const {
|
|
3465
3480
|
formatName: u,
|
|
3466
3481
|
formatOptions: c
|
|
3467
|
-
} =
|
|
3482
|
+
} = Bn(l);
|
|
3468
3483
|
if (this.formats[u]) {
|
|
3469
3484
|
let d = o;
|
|
3470
3485
|
try {
|
|
@@ -3484,10 +3499,10 @@ class Hn {
|
|
|
3484
3499
|
}, e);
|
|
3485
3500
|
}
|
|
3486
3501
|
}
|
|
3487
|
-
const
|
|
3502
|
+
const zn = (r, e) => {
|
|
3488
3503
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3489
3504
|
};
|
|
3490
|
-
class
|
|
3505
|
+
class Kn extends mt {
|
|
3491
3506
|
constructor(e, t, n, s = {}) {
|
|
3492
3507
|
var a, i;
|
|
3493
3508
|
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);
|
|
@@ -3520,7 +3535,7 @@ class zn extends mt {
|
|
|
3520
3535
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3521
3536
|
const o = {};
|
|
3522
3537
|
this.queue.forEach((l) => {
|
|
3523
|
-
|
|
3538
|
+
An(l.loaded, [a], i), zn(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
|
|
3524
3539
|
o[u] || (o[u] = {});
|
|
3525
3540
|
const c = l.loaded[u];
|
|
3526
3541
|
c.length && c.forEach((f) => {
|
|
@@ -3608,7 +3623,7 @@ class zn extends mt {
|
|
|
3608
3623
|
if (p.length < 6)
|
|
3609
3624
|
try {
|
|
3610
3625
|
let v;
|
|
3611
|
-
p.length === 5 ? v = p(e, t, n, s, m) : v = p(e, t, n, s), v && typeof v.then == "function" ? v.then((
|
|
3626
|
+
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);
|
|
3612
3627
|
} catch (v) {
|
|
3613
3628
|
o(v);
|
|
3614
3629
|
}
|
|
@@ -3680,7 +3695,7 @@ const xr = () => ({
|
|
|
3680
3695
|
var e, t;
|
|
3681
3696
|
return z(r.ns) && (r.ns = [r.ns]), z(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), z(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;
|
|
3682
3697
|
}, Qe = () => {
|
|
3683
|
-
},
|
|
3698
|
+
}, qn = (r) => {
|
|
3684
3699
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
3685
3700
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3686
3701
|
});
|
|
@@ -3689,7 +3704,7 @@ class We extends mt {
|
|
|
3689
3704
|
constructor(e = {}, t) {
|
|
3690
3705
|
if (super(), this.options = br(e), this.services = {}, this.logger = be, this.modules = {
|
|
3691
3706
|
external: []
|
|
3692
|
-
},
|
|
3707
|
+
}, qn(this), t && !this.isInitialized && !e.isClone) {
|
|
3693
3708
|
if (!this.options.initAsync)
|
|
3694
3709
|
return this.init(e, t), this;
|
|
3695
3710
|
setTimeout(() => {
|
|
@@ -3712,16 +3727,16 @@ class We extends mt {
|
|
|
3712
3727
|
if (!this.options.isClone) {
|
|
3713
3728
|
this.modules.logger ? be.init(s(this.modules.logger), this.options) : be.init(null, this.options);
|
|
3714
3729
|
let u;
|
|
3715
|
-
this.modules.formatter ? u = this.modules.formatter : u =
|
|
3730
|
+
this.modules.formatter ? u = this.modules.formatter : u = Gn;
|
|
3716
3731
|
const c = new hr(this.options);
|
|
3717
3732
|
this.store = new fr(this.options.resources, this.options);
|
|
3718
3733
|
const f = this.services;
|
|
3719
|
-
f.logger = be, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new
|
|
3734
|
+
f.logger = be, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new Un(c, {
|
|
3720
3735
|
prepend: this.options.pluralSeparator,
|
|
3721
3736
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3722
|
-
}), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(u), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
3737
|
+
}), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(u), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Wn(this.options), f.utils = {
|
|
3723
3738
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3724
|
-
}, f.backendConnector = new
|
|
3739
|
+
}, f.backendConnector = new Kn(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...m) => {
|
|
3725
3740
|
this.emit(d, ...m);
|
|
3726
3741
|
}), 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 ut(this.services, this.options), this.translator.on("*", (d, ...m) => {
|
|
3727
3742
|
this.emit(d, ...m);
|
|
@@ -3738,7 +3753,7 @@ class We extends mt {
|
|
|
3738
3753
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
|
|
3739
3754
|
this[u] = (...c) => (this.store[u](...c), this);
|
|
3740
3755
|
});
|
|
3741
|
-
const o =
|
|
3756
|
+
const o = Fe(), l = () => {
|
|
3742
3757
|
const u = (c, f) => {
|
|
3743
3758
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(f), t(c, f);
|
|
3744
3759
|
};
|
|
@@ -3766,7 +3781,7 @@ class We extends mt {
|
|
|
3766
3781
|
n(null);
|
|
3767
3782
|
}
|
|
3768
3783
|
reloadResources(e, t, n) {
|
|
3769
|
-
const s =
|
|
3784
|
+
const s = Fe();
|
|
3770
3785
|
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = Qe), this.services.backendConnector.reload(e, t, (a) => {
|
|
3771
3786
|
s.resolve(), n(a);
|
|
3772
3787
|
}), s;
|
|
@@ -3790,7 +3805,7 @@ class We extends mt {
|
|
|
3790
3805
|
}
|
|
3791
3806
|
changeLanguage(e, t) {
|
|
3792
3807
|
this.isLanguageChangingTo = e;
|
|
3793
|
-
const n =
|
|
3808
|
+
const n = Fe();
|
|
3794
3809
|
this.emit("languageChanging", e);
|
|
3795
3810
|
const s = (o) => {
|
|
3796
3811
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -3847,7 +3862,7 @@ class We extends mt {
|
|
|
3847
3862
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(n, e) && (!s || i(a, e)));
|
|
3848
3863
|
}
|
|
3849
3864
|
loadNamespaces(e, t) {
|
|
3850
|
-
const n =
|
|
3865
|
+
const n = Fe();
|
|
3851
3866
|
return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
|
|
3852
3867
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3853
3868
|
}), this.loadResources((s) => {
|
|
@@ -3855,7 +3870,7 @@ class We extends mt {
|
|
|
3855
3870
|
}), n) : (t && t(), Promise.resolve());
|
|
3856
3871
|
}
|
|
3857
3872
|
loadLanguages(e, t) {
|
|
3858
|
-
const n =
|
|
3873
|
+
const n = Fe();
|
|
3859
3874
|
z(e) && (e = [e]);
|
|
3860
3875
|
const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
3861
3876
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
|
|
@@ -3925,47 +3940,47 @@ ie.setDefaultNamespace;
|
|
|
3925
3940
|
ie.hasLoadedNamespace;
|
|
3926
3941
|
ie.loadNamespaces;
|
|
3927
3942
|
ie.loadLanguages;
|
|
3928
|
-
const
|
|
3943
|
+
const Jn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Xn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Zn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido" }, Qn = {
|
|
3929
3944
|
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" },
|
|
3930
|
-
Day:
|
|
3931
|
-
Month:
|
|
3932
|
-
Generic:
|
|
3933
|
-
},
|
|
3945
|
+
Day: Jn,
|
|
3946
|
+
Month: Xn,
|
|
3947
|
+
Generic: Zn
|
|
3948
|
+
}, es = { 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" }, ts = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, rs = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid" }, ns = {
|
|
3934
3949
|
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" },
|
|
3935
|
-
Day:
|
|
3936
|
-
Month:
|
|
3937
|
-
Generic:
|
|
3950
|
+
Day: es,
|
|
3951
|
+
Month: ts,
|
|
3952
|
+
Generic: rs
|
|
3938
3953
|
};
|
|
3939
3954
|
function Sr(r, e) {
|
|
3940
|
-
return new RegExp(
|
|
3955
|
+
return new RegExp(ss(r), e);
|
|
3941
3956
|
}
|
|
3942
|
-
function
|
|
3957
|
+
function ss(r) {
|
|
3943
3958
|
return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3944
3959
|
}
|
|
3945
|
-
const
|
|
3960
|
+
const as = (r, e, t) => {
|
|
3946
3961
|
let n = r;
|
|
3947
3962
|
return isNaN(n) || (e != null && (n = Math.max(n, e)), t != null && (n = Math.min(n, t))), n;
|
|
3948
|
-
},
|
|
3963
|
+
}, is = (r, e) => {
|
|
3949
3964
|
var i, o;
|
|
3950
3965
|
const n = Intl.NumberFormat(r).formatToParts(1000.1), s = ((i = n.find((l) => l.type === "group")) == null ? void 0 : i.value) ?? ",", a = e ?? ((o = n.find((l) => l.type === "decimal")) == null ? void 0 : o.value) ?? ".";
|
|
3951
3966
|
return { groupingChar: s, decimalChar: a };
|
|
3952
3967
|
};
|
|
3953
|
-
function
|
|
3968
|
+
function os(r, e, t, n) {
|
|
3954
3969
|
let s = e;
|
|
3955
|
-
const a =
|
|
3970
|
+
const a = us(r, t);
|
|
3956
3971
|
if (!s) {
|
|
3957
3972
|
const o = Math.abs(a);
|
|
3958
3973
|
o - Math.floor(o) ? s = "0,0.00" : s = "0,0";
|
|
3959
3974
|
}
|
|
3960
|
-
const i =
|
|
3975
|
+
const i = fs(s);
|
|
3961
3976
|
return new Intl.NumberFormat(n, i).format(a);
|
|
3962
3977
|
}
|
|
3963
|
-
const
|
|
3978
|
+
const ls = (r, e, t) => {
|
|
3964
3979
|
const n = r.lastIndexOf(t);
|
|
3965
3980
|
if (n !== -1) return r.length - n - 1;
|
|
3966
3981
|
const s = t === "." ? "," : ".", a = r.lastIndexOf(s);
|
|
3967
3982
|
return a !== -1 && !(s === e && r.length - a - 1 === 3) ? r.length - a - 1 : 0;
|
|
3968
|
-
},
|
|
3983
|
+
}, cs = (r, e, t) => {
|
|
3969
3984
|
if (!r) return NaN;
|
|
3970
3985
|
let n = r.replace(/\s/g, ""), s = t;
|
|
3971
3986
|
const a = (n.match(/\./g) || []).length, i = (n.match(/,/g) || []).length;
|
|
@@ -3978,7 +3993,7 @@ const os = (r, e, t) => {
|
|
|
3978
3993
|
const o = s === "." ? "," : ".";
|
|
3979
3994
|
return n = n.replace(new RegExp(`\\${o}`, "g"), ""), s !== "." && (n = n.replace(new RegExp(`\\${s}`, "g"), ".")), parseFloat(n);
|
|
3980
3995
|
};
|
|
3981
|
-
function
|
|
3996
|
+
function us(r, e, t, n, s) {
|
|
3982
3997
|
let a = r;
|
|
3983
3998
|
if (typeof a != "number") {
|
|
3984
3999
|
let o;
|
|
@@ -3989,7 +4004,7 @@ function cs(r, e, t, n, s) {
|
|
|
3989
4004
|
const i = Number(a);
|
|
3990
4005
|
return isNaN(i) ? NaN : i;
|
|
3991
4006
|
}
|
|
3992
|
-
function
|
|
4007
|
+
function fs(r) {
|
|
3993
4008
|
const e = {};
|
|
3994
4009
|
r.includes(",") ? e.useGrouping = !0 : e.useGrouping = !1;
|
|
3995
4010
|
const t = r.indexOf(".");
|
|
@@ -4019,7 +4034,7 @@ ie.init({
|
|
|
4019
4034
|
default:
|
|
4020
4035
|
case "number": {
|
|
4021
4036
|
const a = (n == null ? void 0 : n.inputIsLocalized) ?? !1;
|
|
4022
|
-
return
|
|
4037
|
+
return os(r, e, a, t);
|
|
4023
4038
|
}
|
|
4024
4039
|
}
|
|
4025
4040
|
} catch {
|
|
@@ -4029,39 +4044,39 @@ ie.init({
|
|
|
4029
4044
|
},
|
|
4030
4045
|
resources: {
|
|
4031
4046
|
en: {
|
|
4032
|
-
translation:
|
|
4047
|
+
translation: ns
|
|
4033
4048
|
},
|
|
4034
4049
|
it: {
|
|
4035
|
-
translation:
|
|
4050
|
+
translation: Qn
|
|
4036
4051
|
}
|
|
4037
4052
|
}
|
|
4038
4053
|
});
|
|
4039
|
-
const
|
|
4040
|
-
function
|
|
4054
|
+
const ds = (r, e, t, n) => ie.format(r, e, t || ie.language, n), ps = (r, e) => ie.t(r, e);
|
|
4055
|
+
function Ne() {
|
|
4041
4056
|
const r = le(
|
|
4042
|
-
(n, s, a, i) =>
|
|
4057
|
+
(n, s, a, i) => ds(n, s, a || void 0, i),
|
|
4043
4058
|
[]
|
|
4044
4059
|
), e = le(() => ie.languages[0], []), t = le(
|
|
4045
|
-
(n, s) =>
|
|
4060
|
+
(n, s) => ps(n, s),
|
|
4046
4061
|
[]
|
|
4047
4062
|
);
|
|
4048
4063
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
4049
4064
|
}
|
|
4050
4065
|
var gt = /* @__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))(gt || {}), 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 || {});
|
|
4051
|
-
const
|
|
4066
|
+
const hs = {
|
|
4052
4067
|
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
|
|
4053
4068
|
};
|
|
4054
|
-
function
|
|
4069
|
+
function ms({
|
|
4055
4070
|
selectedDate: r,
|
|
4056
4071
|
onDateChange: e,
|
|
4057
4072
|
disabledDateRanges: t = [],
|
|
4058
4073
|
initialValue: n,
|
|
4059
4074
|
targetRef: s
|
|
4060
4075
|
}) {
|
|
4061
|
-
const { translate: a } =
|
|
4076
|
+
const { translate: a } = Ne(), i = () => {
|
|
4062
4077
|
if (!n) return;
|
|
4063
|
-
const
|
|
4064
|
-
return isNaN(
|
|
4078
|
+
const M = new Date(n);
|
|
4079
|
+
return isNaN(M.getTime()) ? void 0 : M;
|
|
4065
4080
|
}, [o] = K(/* @__PURE__ */ new Date()), [l, u] = K(
|
|
4066
4081
|
r || i() || /* @__PURE__ */ new Date()
|
|
4067
4082
|
), [c, f] = K(
|
|
@@ -4070,7 +4085,7 @@ function hs({
|
|
|
4070
4085
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4071
4086
|
), [p, v] = K(
|
|
4072
4087
|
l ? l.getDate() : null
|
|
4073
|
-
),
|
|
4088
|
+
), E = ce(null), T = ce([]), b = [
|
|
4074
4089
|
a(pe.JANUARY),
|
|
4075
4090
|
a(pe.FEBRUARY),
|
|
4076
4091
|
a(pe.MARCH),
|
|
@@ -4083,7 +4098,7 @@ function hs({
|
|
|
4083
4098
|
a(pe.OCTOBER),
|
|
4084
4099
|
a(pe.NOVEMBER),
|
|
4085
4100
|
a(pe.DECEMBER)
|
|
4086
|
-
],
|
|
4101
|
+
], j = [
|
|
4087
4102
|
{
|
|
4088
4103
|
value: a(ue.SUNDAY_SHORT),
|
|
4089
4104
|
full: a(ue.SUNDAY)
|
|
@@ -4112,181 +4127,181 @@ function hs({
|
|
|
4112
4127
|
value: a(ue.SATURDAY_SHORT),
|
|
4113
4128
|
full: a(ue.SATURDAY)
|
|
4114
4129
|
}
|
|
4115
|
-
],
|
|
4116
|
-
const x = h.start.getTime(),
|
|
4117
|
-
return A >= x && A <=
|
|
4118
|
-
}), g = (
|
|
4119
|
-
|
|
4120
|
-
},
|
|
4130
|
+
], S = (M) => t.some((h) => {
|
|
4131
|
+
const x = h.start.getTime(), R = h.end.getTime(), A = M.getTime();
|
|
4132
|
+
return A >= x && A <= R;
|
|
4133
|
+
}), g = (M) => {
|
|
4134
|
+
S(M) || (u(M), v(M.getDate()), e && e(en(M)));
|
|
4135
|
+
}, D = () => {
|
|
4121
4136
|
c === 0 ? (f(11), m(d - 1)) : f(c - 1), v(1);
|
|
4122
4137
|
}, k = () => {
|
|
4123
4138
|
c === 11 ? (f(0), m(d + 1)) : f(c + 1), v(1);
|
|
4124
|
-
},
|
|
4139
|
+
}, w = (M, h) => new Date(M, h + 1, 0).getDate(), O = (M, h) => new Date(M, h, 1).getDay(), $ = (M) => {
|
|
4125
4140
|
var x;
|
|
4126
|
-
const h =
|
|
4127
|
-
(
|
|
4141
|
+
const h = Y.findIndex(
|
|
4142
|
+
(R) => R !== null && R.getDate() === M
|
|
4128
4143
|
);
|
|
4129
|
-
h !== -1 &&
|
|
4130
|
-
},
|
|
4131
|
-
const x =
|
|
4144
|
+
h !== -1 && T.current[h] && ((x = T.current[h]) == null || x.focus(), v(M));
|
|
4145
|
+
}, F = (M, h) => {
|
|
4146
|
+
const x = Y[h];
|
|
4132
4147
|
if (!x) return;
|
|
4133
|
-
const
|
|
4134
|
-
switch (
|
|
4148
|
+
const R = w(d, c), A = x.getDate();
|
|
4149
|
+
switch (M.key) {
|
|
4135
4150
|
case "ArrowRight":
|
|
4136
|
-
|
|
4151
|
+
M.preventDefault();
|
|
4137
4152
|
{
|
|
4138
|
-
let
|
|
4139
|
-
if (
|
|
4140
|
-
const
|
|
4141
|
-
|
|
4142
|
-
|
|
4153
|
+
let _ = A + 1, L = new Date(d, c, _);
|
|
4154
|
+
if (_ > R) {
|
|
4155
|
+
const U = c === 11 ? d + 1 : d, W = c === 11 ? 0 : c + 1;
|
|
4156
|
+
_ = 1, L = new Date(U, W, _), k(), setTimeout(() => {
|
|
4157
|
+
P(1, "forward");
|
|
4143
4158
|
}, 0);
|
|
4144
4159
|
return;
|
|
4145
4160
|
}
|
|
4146
|
-
|
|
4161
|
+
S(L) ? P(_, "forward") : $(_);
|
|
4147
4162
|
}
|
|
4148
4163
|
break;
|
|
4149
4164
|
case "Tab":
|
|
4150
4165
|
break;
|
|
4151
4166
|
case "ArrowLeft":
|
|
4152
|
-
|
|
4167
|
+
M.preventDefault();
|
|
4153
4168
|
{
|
|
4154
|
-
let
|
|
4155
|
-
if (
|
|
4156
|
-
const
|
|
4157
|
-
|
|
4158
|
-
|
|
4169
|
+
let _ = A - 1, L = new Date(d, c, _);
|
|
4170
|
+
if (_ < 1) {
|
|
4171
|
+
const U = c === 0 ? d - 1 : d, W = c === 0 ? 11 : c - 1, V = w(U, W);
|
|
4172
|
+
_ = V, L = new Date(U, W, _), D(), setTimeout(() => {
|
|
4173
|
+
P(V, "backward");
|
|
4159
4174
|
}, 0);
|
|
4160
4175
|
return;
|
|
4161
4176
|
}
|
|
4162
|
-
|
|
4177
|
+
S(L) ? P(_, "backward") : $(_);
|
|
4163
4178
|
}
|
|
4164
4179
|
break;
|
|
4165
4180
|
case "ArrowUp":
|
|
4166
|
-
|
|
4181
|
+
M.preventDefault();
|
|
4167
4182
|
{
|
|
4168
|
-
let
|
|
4169
|
-
if (
|
|
4170
|
-
const
|
|
4171
|
-
|
|
4172
|
-
|
|
4183
|
+
let _ = A - 7, L = new Date(d, c, _);
|
|
4184
|
+
if (_ < 1) {
|
|
4185
|
+
const U = c === 0 ? d - 1 : d, W = c === 0 ? 11 : c - 1;
|
|
4186
|
+
_ = w(U, W) + _, L = new Date(U, W, _), D(), setTimeout(() => {
|
|
4187
|
+
P(_, "backward");
|
|
4173
4188
|
}, 0);
|
|
4174
4189
|
return;
|
|
4175
4190
|
}
|
|
4176
|
-
|
|
4191
|
+
S(L) ? P(_, "backward") : $(_);
|
|
4177
4192
|
}
|
|
4178
4193
|
break;
|
|
4179
4194
|
case "ArrowDown":
|
|
4180
|
-
|
|
4195
|
+
M.preventDefault();
|
|
4181
4196
|
{
|
|
4182
|
-
let
|
|
4183
|
-
if (
|
|
4184
|
-
const
|
|
4185
|
-
|
|
4186
|
-
|
|
4197
|
+
let _ = A + 7, L = new Date(d, c, _);
|
|
4198
|
+
if (_ > R) {
|
|
4199
|
+
const U = c === 11 ? d + 1 : d, W = c === 11 ? 0 : c + 1;
|
|
4200
|
+
_ = _ - R, L = new Date(U, W, _), k(), setTimeout(() => {
|
|
4201
|
+
P(_, "forward");
|
|
4187
4202
|
}, 0);
|
|
4188
4203
|
return;
|
|
4189
4204
|
}
|
|
4190
|
-
|
|
4205
|
+
S(L) ? P(_, "forward") : $(_);
|
|
4191
4206
|
}
|
|
4192
4207
|
break;
|
|
4193
4208
|
case "Home":
|
|
4194
|
-
|
|
4209
|
+
M.preventDefault(), P(1, "forward");
|
|
4195
4210
|
break;
|
|
4196
4211
|
case "End":
|
|
4197
|
-
|
|
4212
|
+
M.preventDefault(), P(R, "backward");
|
|
4198
4213
|
break;
|
|
4199
4214
|
case "PageUp":
|
|
4200
|
-
|
|
4201
|
-
const
|
|
4215
|
+
M.preventDefault(), D(), setTimeout(() => {
|
|
4216
|
+
const _ = w(
|
|
4202
4217
|
c === 0 ? d - 1 : d,
|
|
4203
4218
|
c === 0 ? 11 : c - 1
|
|
4204
|
-
), L = Math.min(A,
|
|
4205
|
-
|
|
4219
|
+
), L = Math.min(A, _);
|
|
4220
|
+
P(L, "forward");
|
|
4206
4221
|
}, 0);
|
|
4207
4222
|
break;
|
|
4208
4223
|
case "PageDown":
|
|
4209
|
-
|
|
4210
|
-
const
|
|
4224
|
+
M.preventDefault(), k(), setTimeout(() => {
|
|
4225
|
+
const _ = w(
|
|
4211
4226
|
c === 11 ? d + 1 : d,
|
|
4212
4227
|
c === 11 ? 0 : c + 1
|
|
4213
|
-
), L = Math.min(A,
|
|
4214
|
-
|
|
4228
|
+
), L = Math.min(A, _);
|
|
4229
|
+
P(L, "forward");
|
|
4215
4230
|
}, 0);
|
|
4216
4231
|
break;
|
|
4217
4232
|
case " ":
|
|
4218
4233
|
case "Space":
|
|
4219
|
-
if (
|
|
4234
|
+
if (S(x)) return;
|
|
4220
4235
|
v(x.getDate()), u(x);
|
|
4221
4236
|
break;
|
|
4222
4237
|
case "Enter":
|
|
4223
|
-
|
|
4238
|
+
M.preventDefault(), g(x);
|
|
4224
4239
|
break;
|
|
4225
4240
|
}
|
|
4226
|
-
},
|
|
4227
|
-
const x =
|
|
4241
|
+
}, P = (M, h) => {
|
|
4242
|
+
const x = w(d, c);
|
|
4228
4243
|
if (h === "forward") {
|
|
4229
|
-
for (let
|
|
4230
|
-
const A = new Date(d, c,
|
|
4231
|
-
if (!
|
|
4232
|
-
|
|
4244
|
+
for (let R = M; R <= x; R++) {
|
|
4245
|
+
const A = new Date(d, c, R);
|
|
4246
|
+
if (!S(A)) {
|
|
4247
|
+
$(R);
|
|
4233
4248
|
return;
|
|
4234
4249
|
}
|
|
4235
4250
|
}
|
|
4236
4251
|
k(), setTimeout(() => {
|
|
4237
|
-
|
|
4252
|
+
P(1, "forward");
|
|
4238
4253
|
}, 0);
|
|
4239
4254
|
} else {
|
|
4240
|
-
for (let L =
|
|
4241
|
-
const
|
|
4242
|
-
if (!
|
|
4243
|
-
|
|
4255
|
+
for (let L = M; L >= 1; L--) {
|
|
4256
|
+
const U = new Date(d, c, L);
|
|
4257
|
+
if (!S(U)) {
|
|
4258
|
+
$(L);
|
|
4244
4259
|
return;
|
|
4245
4260
|
}
|
|
4246
4261
|
}
|
|
4247
|
-
const
|
|
4248
|
-
|
|
4249
|
-
|
|
4262
|
+
const R = c === 0 ? d - 1 : d, A = c === 0 ? 11 : c - 1, _ = w(R, A);
|
|
4263
|
+
D(), setTimeout(() => {
|
|
4264
|
+
P(_, "backward");
|
|
4250
4265
|
}, 0);
|
|
4251
4266
|
}
|
|
4252
|
-
},
|
|
4253
|
-
const
|
|
4254
|
-
for (let
|
|
4267
|
+
}, Y = (() => {
|
|
4268
|
+
const M = w(d, c), h = O(d, c), x = [];
|
|
4269
|
+
for (let R = 0; R < h; R++)
|
|
4255
4270
|
x.push(null);
|
|
4256
|
-
for (let
|
|
4257
|
-
const A = new Date(d, c,
|
|
4271
|
+
for (let R = 1; R <= M; R++) {
|
|
4272
|
+
const A = new Date(d, c, R);
|
|
4258
4273
|
x.push(A);
|
|
4259
4274
|
}
|
|
4260
4275
|
return x;
|
|
4261
|
-
})(),
|
|
4276
|
+
})(), N = [];
|
|
4262
4277
|
let H = [];
|
|
4263
|
-
|
|
4264
|
-
if (H.push(
|
|
4278
|
+
Y.forEach((M, h) => {
|
|
4279
|
+
if (H.push(M), H.length === 7 || h === Y.length - 1) {
|
|
4265
4280
|
for (; H.length < 7; )
|
|
4266
4281
|
H.push(null);
|
|
4267
|
-
|
|
4282
|
+
N.push(H), H = [];
|
|
4268
4283
|
}
|
|
4269
4284
|
}), ne(() => {
|
|
4270
|
-
var
|
|
4285
|
+
var M;
|
|
4271
4286
|
if (p !== null) {
|
|
4272
|
-
const h =
|
|
4287
|
+
const h = Y.findIndex(
|
|
4273
4288
|
(x) => x !== null && x.getDate() === p
|
|
4274
4289
|
);
|
|
4275
|
-
h !== -1 &&
|
|
4290
|
+
h !== -1 && T.current[h] && ((M = T.current[h]) == null || M.focus());
|
|
4276
4291
|
}
|
|
4277
|
-
}, [c, d, p,
|
|
4292
|
+
}, [c, d, p, Y]);
|
|
4278
4293
|
const q = {
|
|
4279
4294
|
label: "smp-datepickercalendar-label",
|
|
4280
|
-
wrapper: `smp-datepickercalendar ${
|
|
4295
|
+
wrapper: `smp-datepickercalendar ${hs["smp-datepickercalendar-position"]}`,
|
|
4281
4296
|
calendar: "smp-datepickercalendar",
|
|
4282
4297
|
table: "smp-datepickercalendar-table",
|
|
4283
4298
|
th: "smp-datepickercalendar-th",
|
|
4284
|
-
td: (
|
|
4285
|
-
${
|
|
4299
|
+
td: (M, h, x, R) => `smp-datepickercalendar-td
|
|
4300
|
+
${M ? "smp-datepickercalendar-td-today" : ""}
|
|
4286
4301
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4287
4302
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4288
|
-
${
|
|
4289
|
-
},
|
|
4303
|
+
${R ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4304
|
+
}, X = () => `${b[c]} ${d.toString()}`;
|
|
4290
4305
|
return /* @__PURE__ */ y.jsxs(
|
|
4291
4306
|
"div",
|
|
4292
4307
|
{
|
|
@@ -4310,7 +4325,7 @@ function hs({
|
|
|
4310
4325
|
/* @__PURE__ */ y.jsx(
|
|
4311
4326
|
Ye,
|
|
4312
4327
|
{
|
|
4313
|
-
onClick:
|
|
4328
|
+
onClick: D,
|
|
4314
4329
|
ariaLabel: a($t.PREVIOUS_MONTH),
|
|
4315
4330
|
optionalDisplayValue: "<",
|
|
4316
4331
|
appearance: "ghost",
|
|
@@ -4321,9 +4336,9 @@ function hs({
|
|
|
4321
4336
|
/* @__PURE__ */ y.jsx(
|
|
4322
4337
|
"div",
|
|
4323
4338
|
{
|
|
4324
|
-
"aria-label":
|
|
4339
|
+
"aria-label": X(),
|
|
4325
4340
|
className: q.label,
|
|
4326
|
-
children:
|
|
4341
|
+
children: X()
|
|
4327
4342
|
}
|
|
4328
4343
|
),
|
|
4329
4344
|
/* @__PURE__ */ y.jsx(
|
|
@@ -4343,23 +4358,23 @@ function hs({
|
|
|
4343
4358
|
/* @__PURE__ */ y.jsxs(
|
|
4344
4359
|
"table",
|
|
4345
4360
|
{
|
|
4346
|
-
ref:
|
|
4361
|
+
ref: E,
|
|
4347
4362
|
role: "grid",
|
|
4348
4363
|
"aria-label": `${a(gt.CALENDAR_FOR)} ${b[c]} ${d}`,
|
|
4349
4364
|
className: q.table,
|
|
4350
4365
|
children: [
|
|
4351
|
-
/* @__PURE__ */ y.jsx("thead", { children: /* @__PURE__ */ y.jsx("tr", { children:
|
|
4366
|
+
/* @__PURE__ */ y.jsx("thead", { children: /* @__PURE__ */ y.jsx("tr", { children: j.map((M) => /* @__PURE__ */ y.jsx(
|
|
4352
4367
|
"th",
|
|
4353
4368
|
{
|
|
4354
4369
|
scope: "col",
|
|
4355
|
-
abbr:
|
|
4370
|
+
abbr: M.full,
|
|
4356
4371
|
className: q.th,
|
|
4357
|
-
children:
|
|
4372
|
+
children: M.value
|
|
4358
4373
|
},
|
|
4359
|
-
|
|
4374
|
+
M.value
|
|
4360
4375
|
)) }) }),
|
|
4361
|
-
/* @__PURE__ */ y.jsx("tbody", { children:
|
|
4362
|
-
const A = h * 7 +
|
|
4376
|
+
/* @__PURE__ */ y.jsx("tbody", { children: N.map((M, h) => /* @__PURE__ */ y.jsx("tr", { children: M.map((x, R) => {
|
|
4377
|
+
const A = h * 7 + R;
|
|
4363
4378
|
if (x === null)
|
|
4364
4379
|
return /* @__PURE__ */ y.jsx(
|
|
4365
4380
|
"td",
|
|
@@ -4371,32 +4386,32 @@ function hs({
|
|
|
4371
4386
|
!0
|
|
4372
4387
|
)
|
|
4373
4388
|
},
|
|
4374
|
-
`empty-${
|
|
4389
|
+
`empty-${R}`
|
|
4375
4390
|
);
|
|
4376
|
-
const
|
|
4391
|
+
const _ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), U = p === x.getDate(), W = S(x);
|
|
4377
4392
|
return /* @__PURE__ */ y.jsx(
|
|
4378
4393
|
"td",
|
|
4379
4394
|
{
|
|
4380
4395
|
role: "gridcell",
|
|
4381
4396
|
"aria-selected": L,
|
|
4382
|
-
tabIndex:
|
|
4397
|
+
tabIndex: U ? 0 : -1,
|
|
4383
4398
|
onClick: () => g(x),
|
|
4384
|
-
onKeyDown: (V) =>
|
|
4399
|
+
onKeyDown: (V) => F(V, A),
|
|
4385
4400
|
"aria-label": `${x.getDate()} ${b[x.getMonth()]} ${x.getFullYear()}`,
|
|
4386
4401
|
"data-selected": L,
|
|
4387
|
-
"aria-disabled":
|
|
4402
|
+
"aria-disabled": W,
|
|
4388
4403
|
ref: (V) => {
|
|
4389
|
-
|
|
4404
|
+
T.current[A] = V;
|
|
4390
4405
|
},
|
|
4391
4406
|
className: q.td(
|
|
4392
|
-
|
|
4407
|
+
_,
|
|
4393
4408
|
L,
|
|
4394
|
-
|
|
4395
|
-
|
|
4409
|
+
U,
|
|
4410
|
+
W
|
|
4396
4411
|
),
|
|
4397
4412
|
children: x.getDate()
|
|
4398
4413
|
},
|
|
4399
|
-
`day-${
|
|
4414
|
+
`day-${R}`
|
|
4400
4415
|
);
|
|
4401
4416
|
}) }, `week-${h}`)) })
|
|
4402
4417
|
]
|
|
@@ -4406,7 +4421,7 @@ function hs({
|
|
|
4406
4421
|
}
|
|
4407
4422
|
);
|
|
4408
4423
|
}
|
|
4409
|
-
const
|
|
4424
|
+
const gs = ({
|
|
4410
4425
|
bindValue: r,
|
|
4411
4426
|
placeholder: e,
|
|
4412
4427
|
onChange: t,
|
|
@@ -4429,39 +4444,39 @@ const ms = ({
|
|
|
4429
4444
|
typeof m == "object" && m !== null && "current" in m
|
|
4430
4445
|
) {
|
|
4431
4446
|
const O = m.current.querySelector("input");
|
|
4432
|
-
O && O === document.activeElement &&
|
|
4447
|
+
O && O === document.activeElement && S();
|
|
4433
4448
|
}
|
|
4434
4449
|
v();
|
|
4435
4450
|
}), Lt(o, p);
|
|
4436
|
-
const { format:
|
|
4451
|
+
const { format: E, getCurrentLanguage: T } = Ne(), b = le(
|
|
4437
4452
|
(O) => {
|
|
4438
|
-
const
|
|
4453
|
+
const $ = O.length > 5 && Xr(O, T()) || O, F = E($, void 0, void 0, {
|
|
4439
4454
|
type: "date"
|
|
4440
|
-
}),
|
|
4455
|
+
}), P = typeof $ != "string", C = P && $.toISOString().substring(0, 10) || "";
|
|
4441
4456
|
return {
|
|
4442
|
-
isValid:
|
|
4443
|
-
formattedDate:
|
|
4444
|
-
isoDate:
|
|
4445
|
-
normalizedDate:
|
|
4457
|
+
isValid: P,
|
|
4458
|
+
formattedDate: F,
|
|
4459
|
+
isoDate: C,
|
|
4460
|
+
normalizedDate: $
|
|
4446
4461
|
};
|
|
4447
4462
|
},
|
|
4448
|
-
[
|
|
4463
|
+
[T, E]
|
|
4449
4464
|
);
|
|
4450
4465
|
ne(() => {
|
|
4451
|
-
const { formattedDate: O, isoDate:
|
|
4452
|
-
c(
|
|
4453
|
-
}, [r,
|
|
4454
|
-
const
|
|
4455
|
-
|
|
4466
|
+
const { formattedDate: O, isoDate: $, isValid: F } = b(r);
|
|
4467
|
+
c(F && $ || r), d(F && O || r);
|
|
4468
|
+
}, [r, E, b]);
|
|
4469
|
+
const j = () => l((O) => !O), S = () => {
|
|
4470
|
+
D(f);
|
|
4456
4471
|
}, g = (O) => {
|
|
4457
|
-
|
|
4458
|
-
},
|
|
4459
|
-
const { isoDate:
|
|
4460
|
-
t && t(
|
|
4472
|
+
D(O), v();
|
|
4473
|
+
}, D = (O) => {
|
|
4474
|
+
const { isoDate: $, isValid: F } = b(O);
|
|
4475
|
+
t && t(F && $ || O);
|
|
4461
4476
|
}, k = (O) => {
|
|
4462
4477
|
d(O);
|
|
4463
|
-
},
|
|
4464
|
-
O.key === "Enter" && (O.preventDefault(),
|
|
4478
|
+
}, w = (O) => {
|
|
4479
|
+
O.key === "Enter" && (O.preventDefault(), D(f));
|
|
4465
4480
|
};
|
|
4466
4481
|
return /* @__PURE__ */ y.jsxs("div", { "data-component": "date-picker", children: [
|
|
4467
4482
|
/* @__PURE__ */ y.jsx(
|
|
@@ -4470,18 +4485,18 @@ const ms = ({
|
|
|
4470
4485
|
...a,
|
|
4471
4486
|
bindValue: f,
|
|
4472
4487
|
placeholder: e,
|
|
4473
|
-
onBlur:
|
|
4488
|
+
onBlur: S,
|
|
4474
4489
|
onChange: k,
|
|
4475
|
-
onKeyDown:
|
|
4490
|
+
onKeyDown: w,
|
|
4476
4491
|
shapeIcon: "calendar",
|
|
4477
|
-
onShapeIconClick:
|
|
4492
|
+
onShapeIconClick: j,
|
|
4478
4493
|
ref: m,
|
|
4479
4494
|
inputRef: i,
|
|
4480
4495
|
isEditable: s
|
|
4481
4496
|
}
|
|
4482
4497
|
),
|
|
4483
4498
|
o && /* @__PURE__ */ y.jsx(ht, { children: /* @__PURE__ */ y.jsx(
|
|
4484
|
-
|
|
4499
|
+
ms,
|
|
4485
4500
|
{
|
|
4486
4501
|
disabledDateRanges: n,
|
|
4487
4502
|
onDateChange: g,
|
|
@@ -4490,7 +4505,7 @@ const ms = ({
|
|
|
4490
4505
|
}
|
|
4491
4506
|
) })
|
|
4492
4507
|
] });
|
|
4493
|
-
},
|
|
4508
|
+
}, ys = ({
|
|
4494
4509
|
elements: r,
|
|
4495
4510
|
displayMode: e,
|
|
4496
4511
|
minimumChars: t,
|
|
@@ -4505,17 +4520,17 @@ const ms = ({
|
|
|
4505
4520
|
onChange: f,
|
|
4506
4521
|
onBlur: d
|
|
4507
4522
|
}) => {
|
|
4508
|
-
const m = r.map((
|
|
4523
|
+
const m = r.map((E) => E.bindValue), p = (E, T) => {
|
|
4509
4524
|
const b = [...r];
|
|
4510
|
-
if (
|
|
4525
|
+
if (E == "")
|
|
4511
4526
|
b.pop();
|
|
4512
4527
|
else {
|
|
4513
|
-
const
|
|
4514
|
-
(
|
|
4528
|
+
const j = b.findIndex(
|
|
4529
|
+
(S) => S.bindValue === E && S.optionalDisplayValue === T
|
|
4515
4530
|
);
|
|
4516
|
-
|
|
4517
|
-
bindValue:
|
|
4518
|
-
optionalDisplayValue:
|
|
4531
|
+
j >= 0 ? b.splice(j, 1) : b.push({
|
|
4532
|
+
bindValue: E,
|
|
4533
|
+
optionalDisplayValue: T
|
|
4519
4534
|
});
|
|
4520
4535
|
}
|
|
4521
4536
|
f == null || f(b);
|
|
@@ -4535,8 +4550,8 @@ const ms = ({
|
|
|
4535
4550
|
elements: r,
|
|
4536
4551
|
displayMode: e,
|
|
4537
4552
|
isEditable: s,
|
|
4538
|
-
onChange: (
|
|
4539
|
-
f == null || f(
|
|
4553
|
+
onChange: (E) => {
|
|
4554
|
+
f == null || f(E);
|
|
4540
4555
|
}
|
|
4541
4556
|
}
|
|
4542
4557
|
),
|
|
@@ -4560,7 +4575,7 @@ const ms = ({
|
|
|
4560
4575
|
]
|
|
4561
4576
|
}
|
|
4562
4577
|
);
|
|
4563
|
-
},
|
|
4578
|
+
}, vs = ({ ...r }) => {
|
|
4564
4579
|
const [e, t] = K(!1), n = e ? "visibility-off" : "visibility";
|
|
4565
4580
|
return /* @__PURE__ */ y.jsx(
|
|
4566
4581
|
Re,
|
|
@@ -4573,8 +4588,8 @@ const ms = ({
|
|
|
4573
4588
|
"data-component": "password"
|
|
4574
4589
|
}
|
|
4575
4590
|
);
|
|
4576
|
-
},
|
|
4577
|
-
const [e, t] = K(r.bindValue), { translate: n } =
|
|
4591
|
+
}, xs = ({ ...r }) => {
|
|
4592
|
+
const [e, t] = K(r.bindValue), { translate: n } = Ne(), s = (a) => {
|
|
4578
4593
|
var i;
|
|
4579
4594
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4580
4595
|
};
|
|
@@ -4592,7 +4607,7 @@ const ms = ({
|
|
|
4592
4607
|
_dataComponent: "search-bar"
|
|
4593
4608
|
}
|
|
4594
4609
|
);
|
|
4595
|
-
},
|
|
4610
|
+
}, bs = ({
|
|
4596
4611
|
bindValue: r,
|
|
4597
4612
|
optionalDisplayValue: e,
|
|
4598
4613
|
label: t
|
|
@@ -4603,14 +4618,14 @@ const ms = ({
|
|
|
4603
4618
|
return t ? /* @__PURE__ */ y.jsxs("div", { className: n.wrapper, children: [
|
|
4604
4619
|
/* @__PURE__ */ y.jsx(je, { label: t }),
|
|
4605
4620
|
/* @__PURE__ */ y.jsx(
|
|
4606
|
-
|
|
4621
|
+
Le,
|
|
4607
4622
|
{
|
|
4608
4623
|
variant: "body",
|
|
4609
4624
|
bindValue: e || r
|
|
4610
4625
|
}
|
|
4611
4626
|
)
|
|
4612
4627
|
] }) : /* @__PURE__ */ y.jsx(
|
|
4613
|
-
|
|
4628
|
+
Le,
|
|
4614
4629
|
{
|
|
4615
4630
|
variant: "body",
|
|
4616
4631
|
bindValue: e || r
|
|
@@ -4657,7 +4672,7 @@ const Pe = (r, e, t) => ({
|
|
|
4657
4672
|
bindValue: n,
|
|
4658
4673
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4659
4674
|
}));
|
|
4660
|
-
},
|
|
4675
|
+
}, Ss = (r, e) => {
|
|
4661
4676
|
const t = new Oe(
|
|
4662
4677
|
r.obj,
|
|
4663
4678
|
e.map((s) => s.bindValue)
|
|
@@ -4666,7 +4681,7 @@ const Pe = (r, e, t) => ({
|
|
|
4666
4681
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4667
4682
|
).getLegacyValue();
|
|
4668
4683
|
return Pe(r, t, n);
|
|
4669
|
-
},
|
|
4684
|
+
}, ws = ({
|
|
4670
4685
|
min: r,
|
|
4671
4686
|
max: e,
|
|
4672
4687
|
step: t = 1,
|
|
@@ -4677,56 +4692,56 @@ const Pe = (r, e, t) => ({
|
|
|
4677
4692
|
onEnter: o,
|
|
4678
4693
|
...l
|
|
4679
4694
|
}) => {
|
|
4680
|
-
const { getCurrentLanguage: u } =
|
|
4681
|
-
() =>
|
|
4695
|
+
const { getCurrentLanguage: u } = Ne(), c = ce(null), f = u(), { groupingChar: d, decimalChar: m } = Yr(
|
|
4696
|
+
() => is(f, s),
|
|
4682
4697
|
[f, s]
|
|
4683
4698
|
), p = le(
|
|
4684
|
-
(
|
|
4685
|
-
minimumFractionDigits:
|
|
4686
|
-
maximumFractionDigits:
|
|
4699
|
+
(P, C) => new Intl.NumberFormat(f, {
|
|
4700
|
+
minimumFractionDigits: C,
|
|
4701
|
+
maximumFractionDigits: C,
|
|
4687
4702
|
useGrouping: !0
|
|
4688
|
-
}).format(
|
|
4703
|
+
}).format(P),
|
|
4689
4704
|
[f]
|
|
4690
|
-
), v = le(
|
|
4705
|
+
), v = le(cs, [d, m]), E = le(as, [r, e]), T = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, j] = K(T), [S, g] = K(
|
|
4691
4706
|
a != null ? p(a, b) : ""
|
|
4692
|
-
),
|
|
4707
|
+
), D = ce(a ?? null);
|
|
4693
4708
|
ne(() => {
|
|
4694
4709
|
if (a == null) {
|
|
4695
|
-
g(""),
|
|
4710
|
+
g(""), D.current = null;
|
|
4696
4711
|
return;
|
|
4697
4712
|
}
|
|
4698
|
-
const
|
|
4699
|
-
|
|
4713
|
+
const P = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, C = P === 0 ? b : P;
|
|
4714
|
+
C !== b && j(C), g(p(a, C)), D.current = a;
|
|
4700
4715
|
}, [a, p]);
|
|
4701
4716
|
const k = le(
|
|
4702
|
-
(
|
|
4703
|
-
if (
|
|
4704
|
-
g(""),
|
|
4717
|
+
(P, C = !1) => {
|
|
4718
|
+
if (P.trim() === "") {
|
|
4719
|
+
g(""), D.current = null, i == null || i(void 0, ""), C && (o == null || o(void 0));
|
|
4705
4720
|
return;
|
|
4706
4721
|
}
|
|
4707
|
-
const
|
|
4708
|
-
if (isNaN(
|
|
4709
|
-
if (
|
|
4710
|
-
const
|
|
4711
|
-
g(
|
|
4722
|
+
const Y = v(P, d, m);
|
|
4723
|
+
if (isNaN(Y))
|
|
4724
|
+
if (D.current != null) {
|
|
4725
|
+
const N = p(D.current, b);
|
|
4726
|
+
g(N);
|
|
4712
4727
|
} else
|
|
4713
4728
|
g("");
|
|
4714
4729
|
else {
|
|
4715
|
-
const
|
|
4716
|
-
|
|
4730
|
+
const N = E(Y, r, e), H = ls(
|
|
4731
|
+
P,
|
|
4717
4732
|
d,
|
|
4718
4733
|
m
|
|
4719
4734
|
);
|
|
4720
|
-
|
|
4721
|
-
const q = p(
|
|
4722
|
-
g(q),
|
|
4735
|
+
j(H);
|
|
4736
|
+
const q = p(N, H);
|
|
4737
|
+
g(q), D.current = N, i == null || i(N, q), C && (o == null || o(N));
|
|
4723
4738
|
}
|
|
4724
4739
|
},
|
|
4725
4740
|
[
|
|
4726
4741
|
v,
|
|
4727
4742
|
d,
|
|
4728
4743
|
m,
|
|
4729
|
-
|
|
4744
|
+
E,
|
|
4730
4745
|
r,
|
|
4731
4746
|
e,
|
|
4732
4747
|
p,
|
|
@@ -4734,38 +4749,38 @@ const Pe = (r, e, t) => ({
|
|
|
4734
4749
|
o,
|
|
4735
4750
|
b
|
|
4736
4751
|
]
|
|
4737
|
-
),
|
|
4738
|
-
if (
|
|
4739
|
-
|
|
4752
|
+
), w = (P) => g(P), O = () => k(S), $ = (P) => {
|
|
4753
|
+
if (P.key === "Enter") {
|
|
4754
|
+
P.preventDefault(), k(S, !0);
|
|
4740
4755
|
return;
|
|
4741
4756
|
}
|
|
4742
|
-
if (
|
|
4743
|
-
|
|
4744
|
-
const
|
|
4745
|
-
k(p(
|
|
4757
|
+
if (P.key === "ArrowUp" || P.key === "ArrowDown") {
|
|
4758
|
+
P.preventDefault();
|
|
4759
|
+
const C = P.key === "ArrowUp" ? 1 : -1, Y = D.current ?? 0, N = E(Y + C * t, r, e);
|
|
4760
|
+
k(p(N, b));
|
|
4746
4761
|
}
|
|
4747
|
-
},
|
|
4748
|
-
if (!
|
|
4749
|
-
|
|
4750
|
-
const
|
|
4751
|
-
k(p(
|
|
4762
|
+
}, F = (P) => {
|
|
4763
|
+
if (!P.currentTarget.contains(document.activeElement)) return;
|
|
4764
|
+
P.preventDefault();
|
|
4765
|
+
const C = P.deltaY < 0 ? 1 : -1, Y = D.current ?? 0, N = E(Y + C * t, r, e);
|
|
4766
|
+
k(p(N, b));
|
|
4752
4767
|
};
|
|
4753
|
-
return Ae(c, O), /* @__PURE__ */ y.jsx("div", { ref: c, "data-component": "input-number", onWheel:
|
|
4768
|
+
return Ae(c, O), /* @__PURE__ */ y.jsx("div", { ref: c, "data-component": "input-number", onWheel: F, children: /* @__PURE__ */ y.jsx(
|
|
4754
4769
|
Re,
|
|
4755
4770
|
{
|
|
4756
4771
|
...l,
|
|
4757
4772
|
"aria-valuemin": r,
|
|
4758
4773
|
"aria-valuemax": e,
|
|
4759
|
-
"aria-valuenow":
|
|
4760
|
-
bindValue:
|
|
4774
|
+
"aria-valuenow": D.current ?? void 0,
|
|
4775
|
+
bindValue: S,
|
|
4761
4776
|
inputType: "text",
|
|
4762
4777
|
inputMode: n,
|
|
4763
4778
|
min: r,
|
|
4764
4779
|
max: e,
|
|
4765
4780
|
step: t,
|
|
4766
|
-
onChange:
|
|
4781
|
+
onChange: w,
|
|
4767
4782
|
onBlur: O,
|
|
4768
|
-
onKeyDown:
|
|
4783
|
+
onKeyDown: $
|
|
4769
4784
|
}
|
|
4770
4785
|
) });
|
|
4771
4786
|
};
|
|
@@ -4809,7 +4824,7 @@ class ft {
|
|
|
4809
4824
|
return this.value;
|
|
4810
4825
|
}
|
|
4811
4826
|
}
|
|
4812
|
-
const
|
|
4827
|
+
const Es = ({
|
|
4813
4828
|
disabled: r,
|
|
4814
4829
|
bindValue: e,
|
|
4815
4830
|
onChange: t,
|
|
@@ -4824,8 +4839,8 @@ const ws = ({
|
|
|
4824
4839
|
onBlur: f,
|
|
4825
4840
|
onKeyDown: d
|
|
4826
4841
|
}) => {
|
|
4827
|
-
const m = Be(), p = `${m}-helper`, v = c ? "danger" : s,
|
|
4828
|
-
t == null || t(
|
|
4842
|
+
const m = Be(), p = `${m}-helper`, v = c ? "danger" : s, E = u || !!c, T = (j) => {
|
|
4843
|
+
t == null || t(j.target.value);
|
|
4829
4844
|
}, b = {
|
|
4830
4845
|
wrapper: "smp-textarea-wrapper",
|
|
4831
4846
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${v ? `smp-textarea-${v}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
@@ -4838,7 +4853,7 @@ const ws = ({
|
|
|
4838
4853
|
id: m,
|
|
4839
4854
|
value: e,
|
|
4840
4855
|
placeholder: n,
|
|
4841
|
-
onChange:
|
|
4856
|
+
onChange: T,
|
|
4842
4857
|
onBlur: f,
|
|
4843
4858
|
className: b.container,
|
|
4844
4859
|
disabled: r,
|
|
@@ -4846,10 +4861,10 @@ const ws = ({
|
|
|
4846
4861
|
onKeyDown: d,
|
|
4847
4862
|
"aria-label": o ? void 0 : l,
|
|
4848
4863
|
"aria-labelledby": o ? m : void 0,
|
|
4849
|
-
"aria-describedby":
|
|
4864
|
+
"aria-describedby": E ? p : void 0
|
|
4850
4865
|
}
|
|
4851
4866
|
),
|
|
4852
|
-
|
|
4867
|
+
E && /* @__PURE__ */ y.jsx(
|
|
4853
4868
|
jr,
|
|
4854
4869
|
{
|
|
4855
4870
|
id: p,
|
|
@@ -4864,7 +4879,7 @@ const ws = ({
|
|
|
4864
4879
|
"smp-radio-horizontal": "_smp-radio-horizontal_1vo2u_10",
|
|
4865
4880
|
"smp-radio-element": "_smp-radio-element_1vo2u_14",
|
|
4866
4881
|
"smp-radio-disabled": "_smp-radio-disabled_1vo2u_20"
|
|
4867
|
-
},
|
|
4882
|
+
}, Ts = ({
|
|
4868
4883
|
disabled: r = !1,
|
|
4869
4884
|
displayMode: e = "DescOnly",
|
|
4870
4885
|
horizontal: t = !1,
|
|
@@ -4906,10 +4921,10 @@ const ws = ({
|
|
|
4906
4921
|
}
|
|
4907
4922
|
),
|
|
4908
4923
|
/* @__PURE__ */ y.jsx(
|
|
4909
|
-
|
|
4924
|
+
Le,
|
|
4910
4925
|
{
|
|
4911
4926
|
variant: "body",
|
|
4912
|
-
bindValue:
|
|
4927
|
+
bindValue: ke(
|
|
4913
4928
|
p.id,
|
|
4914
4929
|
p.label,
|
|
4915
4930
|
e
|
|
@@ -4918,7 +4933,7 @@ const ws = ({
|
|
|
4918
4933
|
)
|
|
4919
4934
|
] }, v))
|
|
4920
4935
|
] });
|
|
4921
|
-
},
|
|
4936
|
+
}, Os = ({
|
|
4922
4937
|
value: r,
|
|
4923
4938
|
onChange: e,
|
|
4924
4939
|
targetRef: t,
|
|
@@ -4973,13 +4988,13 @@ const ws = ({
|
|
|
4973
4988
|
if (!e) return !1;
|
|
4974
4989
|
const [, t, n, s] = e, a = parseInt(t, 10), i = parseInt(n, 10), o = s ? parseInt(s, 10) : 0;
|
|
4975
4990
|
return a >= 0 && a <= 23 && i >= 0 && i <= 59 && (s === void 0 || o >= 0 && o <= 59);
|
|
4976
|
-
},
|
|
4991
|
+
}, js = (r) => {
|
|
4977
4992
|
const e = r.split(":").map((t) => parseInt(t, 10));
|
|
4978
4993
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
4979
|
-
},
|
|
4994
|
+
}, Rs = (r, e, t) => {
|
|
4980
4995
|
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") : "";
|
|
4981
4996
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
4982
|
-
},
|
|
4997
|
+
}, Ds = ({
|
|
4983
4998
|
bindValue: r,
|
|
4984
4999
|
placeholder: e = "HH:MM:SS",
|
|
4985
5000
|
onChange: t,
|
|
@@ -4994,11 +5009,11 @@ const ws = ({
|
|
|
4994
5009
|
o(!1), (g = a == null ? void 0 : a.current) == null || g.focus();
|
|
4995
5010
|
}, []);
|
|
4996
5011
|
Ae(m, () => o(!1)), Lt(i, m), ne(() => {
|
|
4997
|
-
const g = r || "",
|
|
4998
|
-
u(g), f(
|
|
5012
|
+
const g = r || "", D = Er(g) ? g : r || "";
|
|
5013
|
+
u(g), f(D);
|
|
4999
5014
|
}, [r]), ne(() => {
|
|
5000
|
-
const g = (
|
|
5001
|
-
|
|
5015
|
+
const g = (D) => {
|
|
5016
|
+
D.key === "Escape" && o(!1);
|
|
5002
5017
|
};
|
|
5003
5018
|
return i && document.addEventListener("keydown", g), () => {
|
|
5004
5019
|
document.removeEventListener("keydown", g);
|
|
@@ -5006,16 +5021,16 @@ const ws = ({
|
|
|
5006
5021
|
}, [i]);
|
|
5007
5022
|
const v = () => {
|
|
5008
5023
|
n && o((g) => !g);
|
|
5009
|
-
},
|
|
5024
|
+
}, E = (g) => {
|
|
5010
5025
|
f(g);
|
|
5011
|
-
},
|
|
5012
|
-
const
|
|
5013
|
-
u(
|
|
5026
|
+
}, T = (g, D, k) => {
|
|
5027
|
+
const w = Rs(g, D, k);
|
|
5028
|
+
u(w), f(w), t == null || t(w), p();
|
|
5014
5029
|
}, b = () => {
|
|
5015
|
-
|
|
5016
|
-
},
|
|
5017
|
-
g.key === "Enter" && (g.preventDefault(),
|
|
5018
|
-
},
|
|
5030
|
+
S(c);
|
|
5031
|
+
}, j = (g) => {
|
|
5032
|
+
g.key === "Enter" && (g.preventDefault(), S(c));
|
|
5033
|
+
}, S = (g) => {
|
|
5019
5034
|
if (g.trim() === "") {
|
|
5020
5035
|
u(""), f(""), t == null || t("");
|
|
5021
5036
|
return;
|
|
@@ -5029,9 +5044,9 @@ const ws = ({
|
|
|
5029
5044
|
...s,
|
|
5030
5045
|
bindValue: c,
|
|
5031
5046
|
placeholder: e,
|
|
5032
|
-
onChange:
|
|
5047
|
+
onChange: E,
|
|
5033
5048
|
onBlur: b,
|
|
5034
|
-
onKeyDown:
|
|
5049
|
+
onKeyDown: j,
|
|
5035
5050
|
shapeIcon: "clock",
|
|
5036
5051
|
onShapeIconClick: v,
|
|
5037
5052
|
isEditable: n,
|
|
@@ -5040,17 +5055,17 @@ const ws = ({
|
|
|
5040
5055
|
}
|
|
5041
5056
|
),
|
|
5042
5057
|
i && /* @__PURE__ */ y.jsx(ht, { children: /* @__PURE__ */ y.jsx(
|
|
5043
|
-
|
|
5058
|
+
Os,
|
|
5044
5059
|
{
|
|
5045
|
-
value:
|
|
5046
|
-
onChange:
|
|
5060
|
+
value: js(l),
|
|
5061
|
+
onChange: T,
|
|
5047
5062
|
targetRef: m,
|
|
5048
5063
|
isOpen: i
|
|
5049
5064
|
}
|
|
5050
5065
|
) })
|
|
5051
5066
|
] });
|
|
5052
5067
|
};
|
|
5053
|
-
function
|
|
5068
|
+
function _s(r) {
|
|
5054
5069
|
return typeof r == "string" && /^\d{6}$/.test(r);
|
|
5055
5070
|
}
|
|
5056
5071
|
class dt {
|
|
@@ -5082,7 +5097,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5082
5097
|
"I12",
|
|
5083
5098
|
{
|
|
5084
5099
|
legacyToIso(r) {
|
|
5085
|
-
return
|
|
5100
|
+
return _s(r) && `${r.substring(0, 2)}:${r.substring(2, 4)}:${r.substring(4, 6)}` || r;
|
|
5086
5101
|
},
|
|
5087
5102
|
isoToLegacy(r) {
|
|
5088
5103
|
return r.replaceAll(":", "") || r;
|
|
@@ -5106,9 +5121,9 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5106
5121
|
onBlur: m,
|
|
5107
5122
|
onOptionsRequest: p,
|
|
5108
5123
|
onContextMenu: v,
|
|
5109
|
-
isEditable:
|
|
5124
|
+
isEditable: E
|
|
5110
5125
|
}) => {
|
|
5111
|
-
const
|
|
5126
|
+
const T = {
|
|
5112
5127
|
obj: t,
|
|
5113
5128
|
shape: e,
|
|
5114
5129
|
decode: r,
|
|
@@ -5121,189 +5136,189 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5121
5136
|
icon: s,
|
|
5122
5137
|
tooltip: l,
|
|
5123
5138
|
label: o,
|
|
5124
|
-
isEditable:
|
|
5139
|
+
isEditable: E,
|
|
5125
5140
|
...n
|
|
5126
|
-
},
|
|
5127
|
-
|
|
5141
|
+
}, j = (w, O, $) => Kr(t) ? Pe(w, new it(t, O).getLegacyValue()) : qr(t) ? Pe(w, new dt(t, O).getLegacyValue()) : Pe(w, O, $), S = (w, O) => Pe(
|
|
5142
|
+
w,
|
|
5128
5143
|
new ft(t, O, ".").getLegacyValue()
|
|
5129
|
-
), g = (
|
|
5144
|
+
), g = (w) => Pe(T, new at(t, w).getLegacyValue()), D = (w) => Ss(T, w), k = () => {
|
|
5130
5145
|
switch (e) {
|
|
5131
5146
|
case te.AUTOCOMPLETE: {
|
|
5132
|
-
const
|
|
5147
|
+
const w = {
|
|
5133
5148
|
...b,
|
|
5134
5149
|
bindValue: t.k,
|
|
5135
5150
|
optionalDisplayValue: r,
|
|
5136
|
-
onChange: (O,
|
|
5137
|
-
c == null || c(
|
|
5151
|
+
onChange: (O, $) => {
|
|
5152
|
+
c == null || c(j(T, O, $));
|
|
5138
5153
|
}
|
|
5139
5154
|
};
|
|
5140
|
-
return /* @__PURE__ */ y.jsx(Ar, { ...
|
|
5155
|
+
return /* @__PURE__ */ y.jsx(Ar, { ...w });
|
|
5141
5156
|
}
|
|
5142
5157
|
case te.BUTTON: {
|
|
5143
|
-
const
|
|
5158
|
+
const w = {
|
|
5144
5159
|
...b,
|
|
5145
5160
|
bindValue: t.k,
|
|
5146
5161
|
optionalDisplayValue: r,
|
|
5147
5162
|
onClick: () => {
|
|
5148
|
-
f == null || f(
|
|
5163
|
+
f == null || f(j(T, t.k));
|
|
5149
5164
|
}
|
|
5150
5165
|
};
|
|
5151
|
-
return /* @__PURE__ */ y.jsx(Ye, { ...
|
|
5166
|
+
return /* @__PURE__ */ y.jsx(Ye, { ...w });
|
|
5152
5167
|
}
|
|
5153
5168
|
case te.BUTTON_LIST: {
|
|
5154
|
-
const
|
|
5169
|
+
const w = {
|
|
5155
5170
|
...b,
|
|
5156
5171
|
options: u,
|
|
5157
|
-
onClick: (O,
|
|
5158
|
-
const
|
|
5159
|
-
f == null || f(
|
|
5172
|
+
onClick: (O, $) => {
|
|
5173
|
+
const F = { ...T, fun: $ };
|
|
5174
|
+
f == null || f(j(F, O));
|
|
5160
5175
|
}
|
|
5161
5176
|
};
|
|
5162
|
-
return /* @__PURE__ */ y.jsx(
|
|
5177
|
+
return /* @__PURE__ */ y.jsx(jn, { ...w });
|
|
5163
5178
|
}
|
|
5164
5179
|
case te.CHIP: {
|
|
5165
|
-
const
|
|
5180
|
+
const w = {
|
|
5166
5181
|
...b,
|
|
5167
|
-
elements: wr(
|
|
5182
|
+
elements: wr(T)
|
|
5168
5183
|
};
|
|
5169
|
-
return /* @__PURE__ */ y.jsx(kt, { ...
|
|
5184
|
+
return /* @__PURE__ */ y.jsx(kt, { ...w });
|
|
5170
5185
|
}
|
|
5171
5186
|
case te.CHECKBOX:
|
|
5172
5187
|
case te.SWITCH: {
|
|
5173
|
-
const
|
|
5188
|
+
const w = e === te.SWITCH, O = {
|
|
5174
5189
|
...b,
|
|
5175
5190
|
bindValue: at.fromDataObj(t).getValue(),
|
|
5176
5191
|
optionalDisplayValue: r,
|
|
5177
|
-
onChange: (
|
|
5178
|
-
c == null || c(g(
|
|
5192
|
+
onChange: ($) => {
|
|
5193
|
+
c == null || c(g($));
|
|
5179
5194
|
},
|
|
5180
|
-
...
|
|
5195
|
+
...w && { variant: "switch" }
|
|
5181
5196
|
};
|
|
5182
|
-
return /* @__PURE__ */ y.jsx(
|
|
5197
|
+
return /* @__PURE__ */ y.jsx(Dn, { ...O });
|
|
5183
5198
|
}
|
|
5184
5199
|
case te.COMBOBOX: {
|
|
5185
|
-
const
|
|
5200
|
+
const w = {
|
|
5186
5201
|
...b,
|
|
5187
5202
|
bindValue: t.k,
|
|
5188
5203
|
optionalDisplayValue: r,
|
|
5189
|
-
onChange: (O,
|
|
5190
|
-
c == null || c(
|
|
5204
|
+
onChange: (O, $) => {
|
|
5205
|
+
c == null || c(j(T, O, $));
|
|
5191
5206
|
}
|
|
5192
5207
|
};
|
|
5193
|
-
return /* @__PURE__ */ y.jsx(
|
|
5208
|
+
return /* @__PURE__ */ y.jsx($n, { ...w });
|
|
5194
5209
|
}
|
|
5195
5210
|
case te.DATE: {
|
|
5196
|
-
const
|
|
5211
|
+
const w = {
|
|
5197
5212
|
...b,
|
|
5198
5213
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5199
5214
|
onChange: (O) => {
|
|
5200
|
-
c == null || c(
|
|
5215
|
+
c == null || c(j(T, O));
|
|
5201
5216
|
}
|
|
5202
5217
|
};
|
|
5203
|
-
return /* @__PURE__ */ y.jsx(
|
|
5218
|
+
return /* @__PURE__ */ y.jsx(gs, { ...w });
|
|
5204
5219
|
}
|
|
5205
5220
|
case te.ICON:
|
|
5206
5221
|
case te.IMAGE: {
|
|
5207
|
-
const
|
|
5222
|
+
const w = {
|
|
5208
5223
|
...b,
|
|
5209
5224
|
icon: s,
|
|
5210
5225
|
placeholderIcon: i,
|
|
5211
5226
|
isInteractable: !!b.fun,
|
|
5212
5227
|
onClick: () => {
|
|
5213
|
-
f == null || f(
|
|
5228
|
+
f == null || f(j(T, t.k));
|
|
5214
5229
|
}
|
|
5215
5230
|
};
|
|
5216
|
-
return /* @__PURE__ */ y.jsx(fe, { ...
|
|
5231
|
+
return /* @__PURE__ */ y.jsx(fe, { ...w });
|
|
5217
5232
|
}
|
|
5218
5233
|
case te.INPUT_NUMBER: {
|
|
5219
|
-
const
|
|
5234
|
+
const w = {
|
|
5220
5235
|
...b,
|
|
5221
5236
|
bindValue: ft.fromDataObj(t, ".").getValue(),
|
|
5222
5237
|
onChange: (O) => {
|
|
5223
|
-
c == null || c(
|
|
5238
|
+
c == null || c(S(T, O));
|
|
5224
5239
|
}
|
|
5225
5240
|
};
|
|
5226
|
-
return /* @__PURE__ */ y.jsx(
|
|
5241
|
+
return /* @__PURE__ */ y.jsx(ws, { ...w });
|
|
5227
5242
|
}
|
|
5228
5243
|
case te.MEMO: {
|
|
5229
|
-
const
|
|
5244
|
+
const w = {
|
|
5230
5245
|
...b,
|
|
5231
5246
|
bindValue: t.k,
|
|
5232
5247
|
optionalDisplayValue: r,
|
|
5233
5248
|
onChange: (O) => {
|
|
5234
|
-
c == null || c(
|
|
5249
|
+
c == null || c(j(T, O));
|
|
5235
5250
|
}
|
|
5236
5251
|
};
|
|
5237
|
-
return /* @__PURE__ */ y.jsx(
|
|
5252
|
+
return /* @__PURE__ */ y.jsx(Es, { ...w });
|
|
5238
5253
|
}
|
|
5239
5254
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5240
|
-
const
|
|
5255
|
+
const w = {
|
|
5241
5256
|
...b,
|
|
5242
|
-
elements: wr(
|
|
5257
|
+
elements: wr(T),
|
|
5243
5258
|
onChange: (O) => {
|
|
5244
|
-
c == null || c(
|
|
5259
|
+
c == null || c(D(O));
|
|
5245
5260
|
}
|
|
5246
5261
|
};
|
|
5247
|
-
return /* @__PURE__ */ y.jsx(
|
|
5262
|
+
return /* @__PURE__ */ y.jsx(ys, { ...w });
|
|
5248
5263
|
}
|
|
5249
5264
|
case te.PASSWORD: {
|
|
5250
|
-
const
|
|
5265
|
+
const w = {
|
|
5251
5266
|
...b,
|
|
5252
5267
|
bindValue: t.k,
|
|
5253
5268
|
onChange: (O) => {
|
|
5254
|
-
c == null || c(
|
|
5269
|
+
c == null || c(j(T, O));
|
|
5255
5270
|
}
|
|
5256
5271
|
};
|
|
5257
|
-
return /* @__PURE__ */ y.jsx(
|
|
5272
|
+
return /* @__PURE__ */ y.jsx(vs, { ...w });
|
|
5258
5273
|
}
|
|
5259
5274
|
case te.RADIO: {
|
|
5260
|
-
const
|
|
5275
|
+
const w = {
|
|
5261
5276
|
...b,
|
|
5262
5277
|
bindValue: t.k,
|
|
5263
|
-
onChange: (O,
|
|
5264
|
-
c == null || c(
|
|
5278
|
+
onChange: (O, $) => {
|
|
5279
|
+
c == null || c(j(T, O, $));
|
|
5265
5280
|
}
|
|
5266
5281
|
};
|
|
5267
|
-
return /* @__PURE__ */ y.jsx(
|
|
5282
|
+
return /* @__PURE__ */ y.jsx(Ts, { ...w });
|
|
5268
5283
|
}
|
|
5269
5284
|
case te.SPOTLIGHT: {
|
|
5270
|
-
const
|
|
5285
|
+
const w = {
|
|
5271
5286
|
...b,
|
|
5272
5287
|
bindValue: t.k,
|
|
5273
5288
|
onEnter: (O) => {
|
|
5274
|
-
d == null || d(
|
|
5289
|
+
d == null || d(j(T, O));
|
|
5275
5290
|
}
|
|
5276
5291
|
};
|
|
5277
|
-
return /* @__PURE__ */ y.jsx(
|
|
5292
|
+
return /* @__PURE__ */ y.jsx(xs, { ...w });
|
|
5278
5293
|
}
|
|
5279
5294
|
case te.TEXT_FIELD: {
|
|
5280
|
-
const
|
|
5295
|
+
const w = {
|
|
5281
5296
|
...b,
|
|
5282
5297
|
bindValue: t.k,
|
|
5283
5298
|
optionalDisplayValue: r,
|
|
5284
5299
|
onChange: (O) => {
|
|
5285
|
-
c == null || c(
|
|
5300
|
+
c == null || c(j(T, O));
|
|
5286
5301
|
}
|
|
5287
5302
|
};
|
|
5288
|
-
return /* @__PURE__ */ y.jsx(Re, { ...
|
|
5303
|
+
return /* @__PURE__ */ y.jsx(Re, { ...w });
|
|
5289
5304
|
}
|
|
5290
5305
|
case te.TIME: {
|
|
5291
|
-
const
|
|
5306
|
+
const w = {
|
|
5292
5307
|
...b,
|
|
5293
5308
|
bindValue: dt.fromDataObj(t).getValue(),
|
|
5294
5309
|
onChange: (O) => {
|
|
5295
|
-
c == null || c(
|
|
5310
|
+
c == null || c(j(T, O));
|
|
5296
5311
|
}
|
|
5297
5312
|
};
|
|
5298
|
-
return /* @__PURE__ */ y.jsx(
|
|
5313
|
+
return /* @__PURE__ */ y.jsx(Ds, { ...w });
|
|
5299
5314
|
}
|
|
5300
5315
|
default: {
|
|
5301
|
-
const
|
|
5316
|
+
const w = {
|
|
5302
5317
|
...b,
|
|
5303
5318
|
bindValue: t.k,
|
|
5304
5319
|
optionalDisplayValue: r
|
|
5305
5320
|
};
|
|
5306
|
-
return /* @__PURE__ */ y.jsx(
|
|
5321
|
+
return /* @__PURE__ */ y.jsx(bs, { ...w });
|
|
5307
5322
|
}
|
|
5308
5323
|
}
|
|
5309
5324
|
};
|
|
@@ -5311,13 +5326,13 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5311
5326
|
"span",
|
|
5312
5327
|
{
|
|
5313
5328
|
className: "smp-cell-wrapper",
|
|
5314
|
-
onContextMenu: (
|
|
5315
|
-
v && l && (
|
|
5329
|
+
onContextMenu: (w) => {
|
|
5330
|
+
v && l && (w.preventDefault(), v(T, w.currentTarget));
|
|
5316
5331
|
},
|
|
5317
5332
|
children: k()
|
|
5318
5333
|
}
|
|
5319
5334
|
);
|
|
5320
|
-
},
|
|
5335
|
+
}, Qs = ({
|
|
5321
5336
|
data: r,
|
|
5322
5337
|
onClick: e,
|
|
5323
5338
|
onEnter: t,
|
|
@@ -5331,17 +5346,17 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5331
5346
|
return {};
|
|
5332
5347
|
const c = u.rows[0];
|
|
5333
5348
|
return u.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5334
|
-
const v = c.cells[p.name],
|
|
5349
|
+
const v = c.cells[p.name], E = {
|
|
5335
5350
|
...v,
|
|
5336
5351
|
id: p.name,
|
|
5337
|
-
onChange: (
|
|
5352
|
+
onChange: (T) => {
|
|
5338
5353
|
a((b) => b && {
|
|
5339
5354
|
...b,
|
|
5340
5355
|
[p.name]: {
|
|
5341
5356
|
...b[p.name],
|
|
5342
5357
|
obj: {
|
|
5343
5358
|
...b[p.name].obj,
|
|
5344
|
-
k:
|
|
5359
|
+
k: T.obj.k
|
|
5345
5360
|
}
|
|
5346
5361
|
}
|
|
5347
5362
|
});
|
|
@@ -5351,16 +5366,16 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5351
5366
|
...v
|
|
5352
5367
|
});
|
|
5353
5368
|
},
|
|
5354
|
-
onEnter: (
|
|
5355
|
-
t && t(
|
|
5369
|
+
onEnter: (T) => {
|
|
5370
|
+
t && t(T);
|
|
5356
5371
|
},
|
|
5357
|
-
onContextMenu: (
|
|
5358
|
-
n && n(
|
|
5372
|
+
onContextMenu: (T, b) => {
|
|
5373
|
+
n && n(T, b);
|
|
5359
5374
|
}
|
|
5360
5375
|
};
|
|
5361
5376
|
return {
|
|
5362
5377
|
...m,
|
|
5363
|
-
[p.name]:
|
|
5378
|
+
[p.name]: E
|
|
5364
5379
|
};
|
|
5365
5380
|
}, {});
|
|
5366
5381
|
},
|
|
@@ -5369,7 +5384,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5369
5384
|
return ne(() => {
|
|
5370
5385
|
r && a(i(r));
|
|
5371
5386
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ y.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ y.jsx(st, { layout: r.rows[0].layout, children: Object.values(s).map((u) => /* @__PURE__ */ y.jsx(Te, { ...u })) }) });
|
|
5372
|
-
},
|
|
5387
|
+
}, $s = (r) => {
|
|
5373
5388
|
var e;
|
|
5374
5389
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5375
5390
|
var n, s;
|
|
@@ -5380,7 +5395,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5380
5395
|
icon: t.icon
|
|
5381
5396
|
};
|
|
5382
5397
|
}) : [];
|
|
5383
|
-
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r,
|
|
5398
|
+
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, ea = ({
|
|
5384
5399
|
data: r,
|
|
5385
5400
|
logo: e,
|
|
5386
5401
|
open: t,
|
|
@@ -5391,49 +5406,49 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5391
5406
|
onClose: o,
|
|
5392
5407
|
loadOptions: l
|
|
5393
5408
|
}) => {
|
|
5394
|
-
var
|
|
5409
|
+
var j, S;
|
|
5395
5410
|
const [u, c] = K(), [f, d] = K(t ?? !0), m = ce(null), p = s.trim() ? s : "100vh", v = le(
|
|
5396
5411
|
(g) => {
|
|
5397
|
-
var k,
|
|
5398
|
-
if (!((k = g == null ? void 0 : g.rows) != null && k.length) || !((
|
|
5412
|
+
var k, w;
|
|
5413
|
+
if (!((k = g == null ? void 0 : g.rows) != null && k.length) || !((w = g == null ? void 0 : g.columns) != null && w.length))
|
|
5399
5414
|
return {};
|
|
5400
|
-
const
|
|
5401
|
-
return g.columns.filter((O) => O.visible ?? !0).reduce((O,
|
|
5402
|
-
const
|
|
5403
|
-
if (!
|
|
5415
|
+
const D = g.rows[0];
|
|
5416
|
+
return g.columns.filter((O) => O.visible ?? !0).reduce((O, $) => {
|
|
5417
|
+
const F = D.cells[$.name];
|
|
5418
|
+
if (!F || !f && de(n) && F.shape !== te.BUTTON && F.shape !== te.BUTTON_LIST)
|
|
5404
5419
|
return O;
|
|
5405
|
-
const
|
|
5406
|
-
...
|
|
5407
|
-
id:
|
|
5408
|
-
onChange: (
|
|
5409
|
-
c((
|
|
5410
|
-
const
|
|
5411
|
-
return
|
|
5420
|
+
const P = {
|
|
5421
|
+
...F,
|
|
5422
|
+
id: $.name,
|
|
5423
|
+
onChange: (C) => {
|
|
5424
|
+
c((Y) => {
|
|
5425
|
+
const N = { ...Y };
|
|
5426
|
+
return N != null && N[$.name] && (N[$.name].obj.k = C.obj.k), N;
|
|
5412
5427
|
});
|
|
5413
5428
|
},
|
|
5414
|
-
onClick: (
|
|
5415
|
-
|
|
5429
|
+
onClick: (C) => {
|
|
5430
|
+
C.fun && a && a(C);
|
|
5416
5431
|
},
|
|
5417
|
-
onEnter: (
|
|
5418
|
-
i && i(
|
|
5432
|
+
onEnter: (C) => {
|
|
5433
|
+
i && i(C);
|
|
5419
5434
|
}
|
|
5420
5435
|
};
|
|
5421
|
-
return l &&
|
|
5422
|
-
(
|
|
5423
|
-
)), !f && de(n) && (
|
|
5424
|
-
...
|
|
5436
|
+
return l && F.shape == te.BUTTON_LIST && (P.onOptionsRequest = (C, Y) => l(C, Y).then(
|
|
5437
|
+
(N) => $s(N)
|
|
5438
|
+
)), !f && de(n) && (P.data = {
|
|
5439
|
+
...P.data,
|
|
5425
5440
|
showText: !1,
|
|
5426
5441
|
justify: "center"
|
|
5427
5442
|
}), {
|
|
5428
5443
|
...O,
|
|
5429
|
-
[
|
|
5444
|
+
[$.name]: P
|
|
5430
5445
|
};
|
|
5431
5446
|
}, {});
|
|
5432
5447
|
},
|
|
5433
5448
|
[f, n, a, i, l]
|
|
5434
|
-
),
|
|
5449
|
+
), E = le(() => {
|
|
5435
5450
|
o == null || o();
|
|
5436
|
-
}, [o]),
|
|
5451
|
+
}, [o]), T = () => {
|
|
5437
5452
|
de(n) ? d((g) => !g) : (d(!1), o == null || o());
|
|
5438
5453
|
};
|
|
5439
5454
|
if (ne(() => {
|
|
@@ -5448,13 +5463,13 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5448
5463
|
const g = getComputedStyle(m.current).getPropertyValue(
|
|
5449
5464
|
"--smp-drawer-slide-transition"
|
|
5450
5465
|
);
|
|
5451
|
-
let
|
|
5452
|
-
g.endsWith("ms") ?
|
|
5466
|
+
let D = Number(g);
|
|
5467
|
+
g.endsWith("ms") ? D = parseFloat(g) : g.endsWith("s") && (D = parseFloat(g) * 1e3), setTimeout(() => {
|
|
5453
5468
|
c(v(r));
|
|
5454
|
-
},
|
|
5469
|
+
}, D / 2);
|
|
5455
5470
|
}, [f, n]), ne(() => {
|
|
5456
5471
|
t !== void 0 && !de(n) && d(t);
|
|
5457
|
-
}, [n, t]), !((
|
|
5472
|
+
}, [n, t]), !((j = r == null ? void 0 : r.rows) != null && j.length) || !((S = r.columns) != null && S.length))
|
|
5458
5473
|
return null;
|
|
5459
5474
|
const b = {
|
|
5460
5475
|
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${f ? "smp-drawer-open" : ""} ${!de(n) && !f ? "smp-drawer-no-border" : ""}`,
|
|
@@ -5472,7 +5487,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5472
5487
|
"aria-hidden": "true",
|
|
5473
5488
|
"aria-label": "drawer-backdrop",
|
|
5474
5489
|
className: b.backdrop,
|
|
5475
|
-
onClick:
|
|
5490
|
+
onClick: E
|
|
5476
5491
|
}
|
|
5477
5492
|
),
|
|
5478
5493
|
/* @__PURE__ */ y.jsx(
|
|
@@ -5501,7 +5516,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5501
5516
|
title: "drawer_icon",
|
|
5502
5517
|
rotated: !f,
|
|
5503
5518
|
isInteractable: !0,
|
|
5504
|
-
onClick:
|
|
5519
|
+
onClick: T,
|
|
5505
5520
|
width: 20,
|
|
5506
5521
|
height: 20
|
|
5507
5522
|
}
|
|
@@ -5512,7 +5527,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5512
5527
|
}
|
|
5513
5528
|
)
|
|
5514
5529
|
] });
|
|
5515
|
-
},
|
|
5530
|
+
}, ta = ({
|
|
5516
5531
|
ColumnsNumber: r = 1,
|
|
5517
5532
|
data: e = {},
|
|
5518
5533
|
ForceText: t,
|
|
@@ -5529,14 +5544,14 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5529
5544
|
UmColName: m,
|
|
5530
5545
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5531
5546
|
ForceValue: v,
|
|
5532
|
-
ValueColName:
|
|
5533
|
-
ValueColor:
|
|
5547
|
+
ValueColName: E,
|
|
5548
|
+
ValueColor: T = "var(--smp-dashList-color-base)",
|
|
5534
5549
|
SelectLayout: b = "1",
|
|
5535
|
-
onClick:
|
|
5550
|
+
onClick: j
|
|
5536
5551
|
}) => {
|
|
5537
|
-
const
|
|
5538
|
-
dash: (
|
|
5539
|
-
const
|
|
5552
|
+
const S = "N/A", g = (e == null ? void 0 : e.columns) || [], D = (e == null ? void 0 : e.rows) || [], k = D.length > 0, w = "--smp-dashList-color", O = "smp-layout", $ = "descr", F = "icon", P = "um", C = "value", Y = i || "1em", N = "18px", H = "--smp-dashList-columns", q = "--smp-dashList-fontSize", X = {
|
|
5553
|
+
dash: (B = "1") => {
|
|
5554
|
+
const Z = h(B), re = Z, se = x(Z, $), he = x(Z, F), Se = x(Z, P), ve = x(Z, C);
|
|
5540
5555
|
return {
|
|
5541
5556
|
container: re,
|
|
5542
5557
|
descr: se,
|
|
@@ -5547,74 +5562,74 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5547
5562
|
},
|
|
5548
5563
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5549
5564
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5550
|
-
}, { format:
|
|
5551
|
-
const
|
|
5552
|
-
if (
|
|
5553
|
-
const se =
|
|
5565
|
+
}, { format: M } = Ne(), h = (B) => `${O}-${B}`, x = (B, Z) => `${B}__${Z}`, R = (B) => `${w}-${B}`, A = (B) => {
|
|
5566
|
+
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5567
|
+
if (Z.test(B)) {
|
|
5568
|
+
const se = B.match(Z) || [];
|
|
5554
5569
|
if ((se == null ? void 0 : se.length) > 3)
|
|
5555
5570
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5556
5571
|
}
|
|
5557
|
-
return
|
|
5558
|
-
},
|
|
5559
|
-
if (!f) return
|
|
5560
|
-
const [
|
|
5572
|
+
return B;
|
|
5573
|
+
}, _ = (B) => {
|
|
5574
|
+
if (!f) return B;
|
|
5575
|
+
const [Z, re] = L(f).map(
|
|
5561
5576
|
(De) => parseInt(De || "0")
|
|
5562
|
-
), se = "0,0" + (re ? "." + "0".repeat(re) : ""), he =
|
|
5563
|
-
if (!
|
|
5577
|
+
), se = "0,0" + (re ? "." + "0".repeat(re) : ""), he = M(B, se, "it");
|
|
5578
|
+
if (!Z) return he;
|
|
5564
5579
|
const [Se, ve] = he.split(",");
|
|
5565
5580
|
return Se + (ve ? `,${ve}` : "");
|
|
5566
|
-
}, L = (
|
|
5567
|
-
const
|
|
5581
|
+
}, L = (B) => B.includes(";") ? B.split(";") : [B], U = (B) => {
|
|
5582
|
+
const Z = (se) => {
|
|
5568
5583
|
var he;
|
|
5569
5584
|
if (se)
|
|
5570
|
-
return (he =
|
|
5585
|
+
return (he = B == null ? void 0 : B.cells[se]) == null ? void 0 : he.obj.k;
|
|
5571
5586
|
}, re = (se) => {
|
|
5572
5587
|
var he, Se;
|
|
5573
5588
|
if (!(g.length <= se))
|
|
5574
|
-
return (Se = (he =
|
|
5589
|
+
return (Se = (he = B == null ? void 0 : B.cells[g[se].name]) == null ? void 0 : he.obj) == null ? void 0 : Se.k;
|
|
5575
5590
|
};
|
|
5576
5591
|
return {
|
|
5577
|
-
descr: t ||
|
|
5578
|
-
icon: l ||
|
|
5579
|
-
um: d ||
|
|
5580
|
-
value: v ||
|
|
5592
|
+
descr: t || Z(n) || re(2) || "",
|
|
5593
|
+
icon: l || Z(u) || re(3) || "",
|
|
5594
|
+
um: d || Z(m) || re(1) || "",
|
|
5595
|
+
value: v || Z(E) || re(0) || ""
|
|
5581
5596
|
};
|
|
5582
|
-
},
|
|
5583
|
-
|
|
5584
|
-
}, V = (
|
|
5585
|
-
(
|
|
5586
|
-
}, G = ((
|
|
5587
|
-
const
|
|
5597
|
+
}, W = (B) => {
|
|
5598
|
+
j == null || j(B);
|
|
5599
|
+
}, V = (B, Z) => {
|
|
5600
|
+
(B.key === "Enter" || B.key === " ") && (B.preventDefault(), B.stopPropagation(), W(Z));
|
|
5601
|
+
}, G = ((B) => {
|
|
5602
|
+
const Z = X.dash(B);
|
|
5588
5603
|
return {
|
|
5589
|
-
className:
|
|
5590
|
-
descr: (re) => /* @__PURE__ */ y.jsx("div", { className:
|
|
5591
|
-
icon: (re) => /* @__PURE__ */ y.jsx("div", { className:
|
|
5604
|
+
className: Z,
|
|
5605
|
+
descr: (re) => /* @__PURE__ */ y.jsx("div", { className: Z.descr, children: re }, `${B}-${$}`),
|
|
5606
|
+
icon: (re) => /* @__PURE__ */ y.jsx("div", { className: Z.icon, children: /* @__PURE__ */ y.jsx(
|
|
5592
5607
|
fe,
|
|
5593
5608
|
{
|
|
5594
5609
|
color: c,
|
|
5595
|
-
height:
|
|
5610
|
+
height: N,
|
|
5596
5611
|
icon: re,
|
|
5597
|
-
width:
|
|
5612
|
+
width: N
|
|
5598
5613
|
}
|
|
5599
|
-
) }, `${
|
|
5600
|
-
um: (re) => /* @__PURE__ */ y.jsx("div", { className:
|
|
5601
|
-
value: (re) => /* @__PURE__ */ y.jsx("div", { className:
|
|
5614
|
+
) }, `${B}-${F}`),
|
|
5615
|
+
um: (re) => /* @__PURE__ */ y.jsx("div", { className: Z.um, children: re }, `${B}-${P}`),
|
|
5616
|
+
value: (re) => /* @__PURE__ */ y.jsx("div", { className: Z.value, children: re }, `${B}-${C}`)
|
|
5602
5617
|
};
|
|
5603
|
-
})(b), ae = (
|
|
5604
|
-
const { descr:
|
|
5605
|
-
[
|
|
5606
|
-
[
|
|
5607
|
-
[
|
|
5608
|
-
}, ve = [], De =
|
|
5618
|
+
})(b), ae = (B) => {
|
|
5619
|
+
const { descr: Z, icon: re, um: se, value: he } = U(B), Se = {
|
|
5620
|
+
[R($)]: A(s),
|
|
5621
|
+
[R(P)]: A(p),
|
|
5622
|
+
[R(C)]: A(T)
|
|
5623
|
+
}, ve = [], De = _(he);
|
|
5609
5624
|
switch (b) {
|
|
5610
5625
|
case "2":
|
|
5611
|
-
re && ve.push(G.icon(re)), ve.push(G.descr(
|
|
5626
|
+
re && ve.push(G.icon(re)), ve.push(G.descr(Z)), ve.push(
|
|
5612
5627
|
G.value(se ? De + " " + se : De)
|
|
5613
5628
|
);
|
|
5614
5629
|
break;
|
|
5615
5630
|
default:
|
|
5616
5631
|
case "1":
|
|
5617
|
-
ve.push(G.descr(
|
|
5632
|
+
ve.push(G.descr(Z)), ve.push(
|
|
5618
5633
|
G.value(se ? De + " " + se : De)
|
|
5619
5634
|
);
|
|
5620
5635
|
}
|
|
@@ -5625,36 +5640,36 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5625
5640
|
role: "button",
|
|
5626
5641
|
style: Se,
|
|
5627
5642
|
tabIndex: 0,
|
|
5628
|
-
onClick: () =>
|
|
5629
|
-
onKeyDown: (Ir) => V(Ir,
|
|
5643
|
+
onClick: () => W(B),
|
|
5644
|
+
onKeyDown: (Ir) => V(Ir, B),
|
|
5630
5645
|
children: ve
|
|
5631
5646
|
},
|
|
5632
|
-
|
|
5647
|
+
B.rowId
|
|
5633
5648
|
);
|
|
5634
|
-
},
|
|
5649
|
+
}, I = {
|
|
5635
5650
|
[H]: String(r),
|
|
5636
|
-
[q]:
|
|
5651
|
+
[q]: Y
|
|
5637
5652
|
};
|
|
5638
|
-
return /* @__PURE__ */ y.jsx("div", { className:
|
|
5653
|
+
return /* @__PURE__ */ y.jsx("div", { className: X.dashList, style: I, children: k ? D.map((B) => ae(B)) : S });
|
|
5639
5654
|
}, tt = {
|
|
5640
5655
|
"smp-table": "_smp-table_1qmju_1",
|
|
5641
5656
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5642
5657
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5643
|
-
},
|
|
5644
|
-
rowContent:
|
|
5645
|
-
clickable:
|
|
5646
|
-
indent:
|
|
5647
|
-
toggle:
|
|
5648
|
-
cell:
|
|
5649
|
-
leftSection:
|
|
5658
|
+
}, Ps = "_rowContent_20wit_2", Cs = "_clickable_20wit_21", As = "_indent_20wit_26", ks = "_toggle_20wit_32", Ls = "_cell_20wit_38", Ns = "_leftSection_20wit_46", Ee = {
|
|
5659
|
+
rowContent: Ps,
|
|
5660
|
+
clickable: Cs,
|
|
5661
|
+
indent: As,
|
|
5662
|
+
toggle: ks,
|
|
5663
|
+
cell: Ls,
|
|
5664
|
+
leftSection: Ns
|
|
5650
5665
|
};
|
|
5651
5666
|
function rt(r) {
|
|
5652
5667
|
return !!r && "children" in r;
|
|
5653
5668
|
}
|
|
5654
|
-
function
|
|
5669
|
+
function Is(r) {
|
|
5655
5670
|
return !rt(r);
|
|
5656
5671
|
}
|
|
5657
|
-
function
|
|
5672
|
+
function Ms(r) {
|
|
5658
5673
|
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5659
5674
|
let t = 0, n, s;
|
|
5660
5675
|
if (e.length === 0) return t.toString();
|
|
@@ -5677,7 +5692,7 @@ const Nr = ({
|
|
|
5677
5692
|
toggle: `${Ee.toggle}`,
|
|
5678
5693
|
indent: `${Ee.indent}`,
|
|
5679
5694
|
cell: `${Ee.cell}`
|
|
5680
|
-
}, m = (
|
|
5695
|
+
}, m = (j) => /* @__PURE__ */ y.jsx(Te, { ...j }), p = () => /* @__PURE__ */ y.jsx("span", { className: d.toggle, children: u && /* @__PURE__ */ y.jsx(
|
|
5681
5696
|
fe,
|
|
5682
5697
|
{
|
|
5683
5698
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5690,8 +5705,8 @@ const Nr = ({
|
|
|
5690
5705
|
style: { width: `${c}px` },
|
|
5691
5706
|
"aria-hidden": "true"
|
|
5692
5707
|
}
|
|
5693
|
-
),
|
|
5694
|
-
const
|
|
5708
|
+
), E = () => {
|
|
5709
|
+
const j = Is(r) ? "" : r.decode || (l ? "" : "Untitled"), S = s ?? n * t;
|
|
5695
5710
|
return /* @__PURE__ */ y.jsxs(
|
|
5696
5711
|
"tr",
|
|
5697
5712
|
{
|
|
@@ -5702,7 +5717,7 @@ const Nr = ({
|
|
|
5702
5717
|
style: {
|
|
5703
5718
|
height: `${n}px`,
|
|
5704
5719
|
lineHeight: `calc(${n}px - 2*2px)`,
|
|
5705
|
-
transform: `translateY(${
|
|
5720
|
+
transform: `translateY(${S}px)`
|
|
5706
5721
|
},
|
|
5707
5722
|
children: [
|
|
5708
5723
|
rt(r) && /* @__PURE__ */ y.jsxs(
|
|
@@ -5715,11 +5730,11 @@ const Nr = ({
|
|
|
5715
5730
|
children: [
|
|
5716
5731
|
v(),
|
|
5717
5732
|
p(),
|
|
5718
|
-
/* @__PURE__ */ y.jsx("span", { className: Ee.rowLabel, children:
|
|
5733
|
+
/* @__PURE__ */ y.jsx("span", { className: Ee.rowLabel, children: j })
|
|
5719
5734
|
]
|
|
5720
5735
|
}
|
|
5721
5736
|
),
|
|
5722
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([g,
|
|
5737
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([g, D]) => /* @__PURE__ */ y.jsx(
|
|
5723
5738
|
"td",
|
|
5724
5739
|
{
|
|
5725
5740
|
className: d.cell,
|
|
@@ -5729,24 +5744,24 @@ const Nr = ({
|
|
|
5729
5744
|
height: `${n}px`
|
|
5730
5745
|
},
|
|
5731
5746
|
children: m({
|
|
5732
|
-
...
|
|
5747
|
+
...D,
|
|
5733
5748
|
id: g
|
|
5734
5749
|
})
|
|
5735
5750
|
},
|
|
5736
|
-
|
|
5751
|
+
Ms(D) || g
|
|
5737
5752
|
))
|
|
5738
5753
|
]
|
|
5739
5754
|
}
|
|
5740
5755
|
);
|
|
5741
|
-
},
|
|
5742
|
-
var
|
|
5743
|
-
return a || !o ? null : /* @__PURE__ */ y.jsx(y.Fragment, { children: rt(r) && ((
|
|
5756
|
+
}, T = () => {
|
|
5757
|
+
var j;
|
|
5758
|
+
return a || !o ? null : /* @__PURE__ */ y.jsx(y.Fragment, { children: rt(r) && ((j = r.children) == null ? void 0 : j.map((S, g) => /* @__PURE__ */ y.jsx(Nr, { row: S, level: t + 1 }, `child-${g}`))) });
|
|
5744
5759
|
};
|
|
5745
5760
|
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
5746
|
-
|
|
5747
|
-
|
|
5761
|
+
E(),
|
|
5762
|
+
T()
|
|
5748
5763
|
] });
|
|
5749
|
-
},
|
|
5764
|
+
}, Fs = ({
|
|
5750
5765
|
label: r,
|
|
5751
5766
|
rowHeight: e = 28,
|
|
5752
5767
|
offsetTop: t = 0,
|
|
@@ -5783,18 +5798,18 @@ const Nr = ({
|
|
|
5783
5798
|
width: 16
|
|
5784
5799
|
}
|
|
5785
5800
|
),
|
|
5786
|
-
/* @__PURE__ */ y.jsx(
|
|
5801
|
+
/* @__PURE__ */ y.jsx(Le, { variant: "title", bindValue: r })
|
|
5787
5802
|
]
|
|
5788
5803
|
}
|
|
5789
5804
|
)
|
|
5790
5805
|
}
|
|
5791
5806
|
);
|
|
5792
5807
|
};
|
|
5793
|
-
function
|
|
5808
|
+
function Vs(r, e) {
|
|
5794
5809
|
const t = new Set(r);
|
|
5795
5810
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5796
5811
|
}
|
|
5797
|
-
function
|
|
5812
|
+
function Ys(r, e) {
|
|
5798
5813
|
return r.map((t) => {
|
|
5799
5814
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5800
5815
|
return {
|
|
@@ -5803,7 +5818,7 @@ function Vs(r, e) {
|
|
|
5803
5818
|
};
|
|
5804
5819
|
});
|
|
5805
5820
|
}
|
|
5806
|
-
function
|
|
5821
|
+
function Us(r, e, t, n) {
|
|
5807
5822
|
const s = [];
|
|
5808
5823
|
let a = 0;
|
|
5809
5824
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -5813,17 +5828,17 @@ function Ys(r, e, t, n) {
|
|
|
5813
5828
|
return;
|
|
5814
5829
|
}
|
|
5815
5830
|
const p = e[d].column, v = o(f, p);
|
|
5816
|
-
for (const [
|
|
5817
|
-
const b = [...m,
|
|
5818
|
-
s.push(u(
|
|
5831
|
+
for (const [E, T] of v) {
|
|
5832
|
+
const b = [...m, E], j = l(b, d), S = n.has(j);
|
|
5833
|
+
s.push(u(E, j, d, S)), a += t, S && i(T, d + 1, b);
|
|
5819
5834
|
}
|
|
5820
5835
|
}
|
|
5821
5836
|
function o(f, d) {
|
|
5822
5837
|
var p;
|
|
5823
5838
|
const m = /* @__PURE__ */ new Map();
|
|
5824
5839
|
for (const v of f) {
|
|
5825
|
-
const
|
|
5826
|
-
m.has(
|
|
5840
|
+
const E = ((p = v.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
5841
|
+
m.has(E) || m.set(E, []), m.get(E).push(v);
|
|
5827
5842
|
}
|
|
5828
5843
|
return m;
|
|
5829
5844
|
}
|
|
@@ -5845,7 +5860,7 @@ function Ys(r, e, t, n) {
|
|
|
5845
5860
|
s.push(d), a += t;
|
|
5846
5861
|
}
|
|
5847
5862
|
}
|
|
5848
|
-
const
|
|
5863
|
+
const Ws = ({
|
|
5849
5864
|
groups: r = [],
|
|
5850
5865
|
isDraggable: e = !0,
|
|
5851
5866
|
isEditable: t = !0,
|
|
@@ -5879,7 +5894,7 @@ const Us = ({
|
|
|
5879
5894
|
]
|
|
5880
5895
|
}
|
|
5881
5896
|
);
|
|
5882
|
-
},
|
|
5897
|
+
}, Bs = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ y.jsx("tfoot", { children: /* @__PURE__ */ y.jsx("tr", { children: r.map(
|
|
5883
5898
|
(t) => t.visible && /* @__PURE__ */ y.jsx(
|
|
5884
5899
|
"td",
|
|
5885
5900
|
{
|
|
@@ -5892,7 +5907,7 @@ const Us = ({
|
|
|
5892
5907
|
},
|
|
5893
5908
|
t.name
|
|
5894
5909
|
)
|
|
5895
|
-
) }) }),
|
|
5910
|
+
) }) }), Hs = ({
|
|
5896
5911
|
columns: r,
|
|
5897
5912
|
rows: e,
|
|
5898
5913
|
containerRef: t,
|
|
@@ -5918,8 +5933,8 @@ const Us = ({
|
|
|
5918
5933
|
if (!u.visible) continue;
|
|
5919
5934
|
const c = ((o = u.title) == null ? void 0 : o.length) || 0, f = Math.max(
|
|
5920
5935
|
...e.map((d) => {
|
|
5921
|
-
var m, p, v,
|
|
5922
|
-
return `${((p = (m = d.cells) == null ? void 0 : m[u.name]) == null ? void 0 : p.decode) || ((
|
|
5936
|
+
var m, p, v, E;
|
|
5937
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[u.name]) == null ? void 0 : p.decode) || ((E = (v = d.cells) == null ? void 0 : v[u.name]) == null ? void 0 : E.value) || ""}`.length;
|
|
5923
5938
|
}),
|
|
5924
5939
|
c
|
|
5925
5940
|
);
|
|
@@ -5929,7 +5944,7 @@ const Us = ({
|
|
|
5929
5944
|
}
|
|
5930
5945
|
}
|
|
5931
5946
|
}, [r, e, t, n]), [s, a];
|
|
5932
|
-
},
|
|
5947
|
+
}, ra = ({
|
|
5933
5948
|
data: r,
|
|
5934
5949
|
lineHeight: e = 28,
|
|
5935
5950
|
TableHeight: t = 400,
|
|
@@ -5941,7 +5956,7 @@ const Us = ({
|
|
|
5941
5956
|
var k;
|
|
5942
5957
|
const [i, o] = K(
|
|
5943
5958
|
r ?? { columns: [], rows: [] }
|
|
5944
|
-
), [l, u] = K(n || []), [c, f] = K(/* @__PURE__ */ new Set()), d = ce(null), [m, p] =
|
|
5959
|
+
), [l, u] = K(n || []), [c, f] = K(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = Hs({
|
|
5945
5960
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5946
5961
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5947
5962
|
containerRef: d,
|
|
@@ -5949,44 +5964,44 @@ const Us = ({
|
|
|
5949
5964
|
});
|
|
5950
5965
|
ne(() => {
|
|
5951
5966
|
if (l != null && l.length && r.rows) {
|
|
5952
|
-
const { flatRows:
|
|
5967
|
+
const { flatRows: w } = Us(
|
|
5953
5968
|
r.rows,
|
|
5954
5969
|
l,
|
|
5955
5970
|
e,
|
|
5956
5971
|
c
|
|
5957
5972
|
);
|
|
5958
|
-
o({ ...r, rows:
|
|
5973
|
+
o({ ...r, rows: w });
|
|
5959
5974
|
} else
|
|
5960
5975
|
o(r);
|
|
5961
5976
|
}, [r, l, c, e]);
|
|
5962
|
-
const v = (
|
|
5963
|
-
u(
|
|
5964
|
-
},
|
|
5965
|
-
|
|
5966
|
-
const O =
|
|
5967
|
-
if (!O || l.some((
|
|
5977
|
+
const v = (w) => {
|
|
5978
|
+
u(Ys(w, l));
|
|
5979
|
+
}, E = (w) => {
|
|
5980
|
+
w.preventDefault();
|
|
5981
|
+
const O = w.dataTransfer.getData("text/plain");
|
|
5982
|
+
if (!O || l.some((P) => P.column === O))
|
|
5968
5983
|
return;
|
|
5969
|
-
const
|
|
5970
|
-
u(
|
|
5971
|
-
},
|
|
5972
|
-
|
|
5973
|
-
}, { virtualItems: b, containerProps:
|
|
5984
|
+
const F = [...l, { column: O, visible: !0 }];
|
|
5985
|
+
u(F);
|
|
5986
|
+
}, T = (w) => {
|
|
5987
|
+
w.preventDefault();
|
|
5988
|
+
}, { virtualItems: b, containerProps: j, innerProps: S } = Pr({
|
|
5974
5989
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
5975
5990
|
itemHeight: e,
|
|
5976
5991
|
containerHeight: t,
|
|
5977
5992
|
overscan: 5
|
|
5978
|
-
}), g = (
|
|
5979
|
-
const
|
|
5980
|
-
const
|
|
5993
|
+
}), g = (w, O) => {
|
|
5994
|
+
const $ = w.clientX, F = m[O], P = (Y) => {
|
|
5995
|
+
const N = Y.clientX - $, H = Math.max(50, F + N);
|
|
5981
5996
|
p((q) => ({
|
|
5982
5997
|
...q,
|
|
5983
5998
|
[O]: H
|
|
5984
5999
|
}));
|
|
5985
|
-
},
|
|
5986
|
-
window.removeEventListener("mousemove",
|
|
6000
|
+
}, C = () => {
|
|
6001
|
+
window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", C);
|
|
5987
6002
|
};
|
|
5988
|
-
window.addEventListener("mousemove",
|
|
5989
|
-
},
|
|
6003
|
+
window.addEventListener("mousemove", P), window.addEventListener("mouseup", C);
|
|
6004
|
+
}, D = {
|
|
5990
6005
|
smpTable: `${tt["smp-table"]}`,
|
|
5991
6006
|
headerCell: `${tt["smp-headerCell"]}`,
|
|
5992
6007
|
resizer: `${tt["smp-resizer"]}`
|
|
@@ -5994,89 +6009,89 @@ const Us = ({
|
|
|
5994
6009
|
return i && /* @__PURE__ */ y.jsx(
|
|
5995
6010
|
"div",
|
|
5996
6011
|
{
|
|
5997
|
-
className:
|
|
5998
|
-
...
|
|
6012
|
+
className: D.smpTable,
|
|
6013
|
+
...j,
|
|
5999
6014
|
ref: d,
|
|
6000
6015
|
children: /* @__PURE__ */ y.jsxs("table", { children: [
|
|
6001
6016
|
/* @__PURE__ */ y.jsxs("thead", { children: [
|
|
6002
6017
|
(n || a) && /* @__PURE__ */ y.jsx(
|
|
6003
|
-
|
|
6018
|
+
Ws,
|
|
6004
6019
|
{
|
|
6005
6020
|
groups: l,
|
|
6006
6021
|
onChange: v,
|
|
6007
|
-
onDrop:
|
|
6008
|
-
onDragOver:
|
|
6022
|
+
onDrop: E,
|
|
6023
|
+
onDragOver: T
|
|
6009
6024
|
}
|
|
6010
6025
|
),
|
|
6011
6026
|
/* @__PURE__ */ y.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
|
|
6012
|
-
(
|
|
6027
|
+
(w) => w.visible && /* @__PURE__ */ y.jsxs(
|
|
6013
6028
|
"th",
|
|
6014
6029
|
{
|
|
6015
|
-
className:
|
|
6030
|
+
className: D.headerCell,
|
|
6016
6031
|
draggable: !0,
|
|
6017
6032
|
onDragStart: (O) => {
|
|
6018
|
-
O.dataTransfer.setData("text/plain",
|
|
6033
|
+
O.dataTransfer.setData("text/plain", w.name);
|
|
6019
6034
|
},
|
|
6020
6035
|
style: {
|
|
6021
|
-
width: m[
|
|
6022
|
-
minWidth: m[
|
|
6023
|
-
maxWidth: m[
|
|
6036
|
+
width: m[w.name],
|
|
6037
|
+
minWidth: m[w.name],
|
|
6038
|
+
maxWidth: m[w.name]
|
|
6024
6039
|
},
|
|
6025
6040
|
children: [
|
|
6026
6041
|
/* @__PURE__ */ y.jsx(
|
|
6027
|
-
|
|
6042
|
+
Le,
|
|
6028
6043
|
{
|
|
6029
6044
|
variant: "title",
|
|
6030
|
-
bindValue:
|
|
6045
|
+
bindValue: w.title
|
|
6031
6046
|
}
|
|
6032
6047
|
),
|
|
6033
6048
|
/* @__PURE__ */ y.jsx(
|
|
6034
6049
|
"div",
|
|
6035
6050
|
{
|
|
6036
|
-
className:
|
|
6037
|
-
onMouseDown: (O) => g(O,
|
|
6051
|
+
className: D.resizer,
|
|
6052
|
+
onMouseDown: (O) => g(O, w.name),
|
|
6038
6053
|
role: "region"
|
|
6039
6054
|
}
|
|
6040
6055
|
)
|
|
6041
6056
|
]
|
|
6042
6057
|
},
|
|
6043
|
-
|
|
6058
|
+
w.name
|
|
6044
6059
|
)
|
|
6045
6060
|
)) })
|
|
6046
6061
|
] }),
|
|
6047
|
-
/* @__PURE__ */ y.jsx("tbody", { ...
|
|
6048
|
-
const
|
|
6049
|
-
return
|
|
6050
|
-
|
|
6062
|
+
/* @__PURE__ */ y.jsx("tbody", { ...S, children: b.map(({ item: w, index: O, offsetTop: $ }) => {
|
|
6063
|
+
const F = w.rowId || w.value || `${w.isGroup ? "group" : "row"}-${O}`;
|
|
6064
|
+
return w.isGroup ? /* @__PURE__ */ y.jsx(
|
|
6065
|
+
Fs,
|
|
6051
6066
|
{
|
|
6052
|
-
label:
|
|
6067
|
+
label: w.value || "",
|
|
6053
6068
|
rowHeight: e,
|
|
6054
|
-
offsetTop:
|
|
6055
|
-
level:
|
|
6069
|
+
offsetTop: $,
|
|
6070
|
+
level: w.level,
|
|
6056
6071
|
onClick: () => {
|
|
6057
|
-
const
|
|
6058
|
-
|
|
6072
|
+
const P = w.rowId;
|
|
6073
|
+
P && f((C) => Vs(C, P));
|
|
6059
6074
|
},
|
|
6060
|
-
isExpanded:
|
|
6075
|
+
isExpanded: w.isExpanded
|
|
6061
6076
|
},
|
|
6062
|
-
`group-${
|
|
6077
|
+
`group-${F}`
|
|
6063
6078
|
) : /* @__PURE__ */ y.jsx(
|
|
6064
6079
|
Nr,
|
|
6065
6080
|
{
|
|
6066
|
-
row:
|
|
6081
|
+
row: w,
|
|
6067
6082
|
columnWidths: m,
|
|
6068
6083
|
rowHeight: e,
|
|
6069
|
-
offsetTop:
|
|
6084
|
+
offsetTop: $,
|
|
6070
6085
|
isGroup: !1
|
|
6071
6086
|
},
|
|
6072
|
-
`row-${
|
|
6087
|
+
`row-${F}`
|
|
6073
6088
|
);
|
|
6074
6089
|
}) }),
|
|
6075
|
-
/* @__PURE__ */ y.jsx(
|
|
6090
|
+
/* @__PURE__ */ y.jsx(Bs, { columns: i.columns, columnWidths: m })
|
|
6076
6091
|
] })
|
|
6077
6092
|
}
|
|
6078
6093
|
);
|
|
6079
|
-
},
|
|
6094
|
+
}, na = ({
|
|
6080
6095
|
data: r,
|
|
6081
6096
|
Type: e,
|
|
6082
6097
|
ShowSubmit: t = !1,
|
|
@@ -6138,18 +6153,18 @@ const Us = ({
|
|
|
6138
6153
|
}
|
|
6139
6154
|
)
|
|
6140
6155
|
] });
|
|
6141
|
-
},
|
|
6156
|
+
}, Gs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", zs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", Ks = (r) => Gs(r) ? r.children ? r.children.map(
|
|
6142
6157
|
(e) => ({
|
|
6143
6158
|
id: e.obj.k,
|
|
6144
6159
|
label: e.value ?? ""
|
|
6145
6160
|
})
|
|
6146
|
-
) : [] :
|
|
6161
|
+
) : [] : zs(r) ? r.rows.map((e) => {
|
|
6147
6162
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
6148
6163
|
return {
|
|
6149
6164
|
id: t[n].obj.k,
|
|
6150
6165
|
label: t[s].value || t[s].obj.k
|
|
6151
6166
|
};
|
|
6152
|
-
}) : [],
|
|
6167
|
+
}) : [], sa = ({
|
|
6153
6168
|
data: r,
|
|
6154
6169
|
readOnly: e = !1,
|
|
6155
6170
|
hiddenSubmitButton: t = !1,
|
|
@@ -6160,76 +6175,76 @@ const Us = ({
|
|
|
6160
6175
|
onCheckObj: o,
|
|
6161
6176
|
onContextMenu: l
|
|
6162
6177
|
}) => {
|
|
6163
|
-
var b,
|
|
6164
|
-
const [u, c] = K({}), { translate: f } =
|
|
6178
|
+
var b, j;
|
|
6179
|
+
const [u, c] = K({}), { translate: f } = Ne();
|
|
6165
6180
|
ne(() => {
|
|
6166
6181
|
c(v(r));
|
|
6167
6182
|
}, [r]);
|
|
6168
|
-
const d = (
|
|
6169
|
-
c((
|
|
6170
|
-
...
|
|
6171
|
-
[
|
|
6172
|
-
...
|
|
6183
|
+
const d = (S, g) => {
|
|
6184
|
+
c((D) => ({
|
|
6185
|
+
...D,
|
|
6186
|
+
[S]: {
|
|
6187
|
+
...D[S],
|
|
6173
6188
|
obj: {
|
|
6174
|
-
...
|
|
6189
|
+
...D[S].obj,
|
|
6175
6190
|
k: g.obj.k
|
|
6176
6191
|
},
|
|
6177
6192
|
decode: g.decode,
|
|
6178
6193
|
data: {
|
|
6179
|
-
...
|
|
6194
|
+
...D[S].data,
|
|
6180
6195
|
error: void 0
|
|
6181
6196
|
},
|
|
6182
6197
|
// FIXME: remove this when webup.js will not use value
|
|
6183
6198
|
value: g.obj.k
|
|
6184
6199
|
}
|
|
6185
6200
|
})), n && (g.shape == te.CHECKBOX || g.shape == te.SWITCH) && m();
|
|
6186
|
-
}, m = (
|
|
6187
|
-
const g =
|
|
6201
|
+
}, m = (S) => {
|
|
6202
|
+
const g = E();
|
|
6188
6203
|
a({
|
|
6189
6204
|
value: g,
|
|
6190
|
-
cell:
|
|
6205
|
+
cell: S
|
|
6191
6206
|
});
|
|
6192
|
-
}, p = async (
|
|
6193
|
-
var g,
|
|
6194
|
-
if (u[
|
|
6195
|
-
obj: u[
|
|
6196
|
-
fun: u[
|
|
6197
|
-
cellId:
|
|
6198
|
-
})).valid || c((
|
|
6199
|
-
...
|
|
6200
|
-
[
|
|
6201
|
-
...S
|
|
6207
|
+
}, p = async (S) => {
|
|
6208
|
+
var g, D;
|
|
6209
|
+
if (u[S].obj.k != r.rows[0].cells[S].obj.k && ((g = u[S].inputSettings) != null && g.checkObject && o && ((await o({
|
|
6210
|
+
obj: u[S].obj,
|
|
6211
|
+
fun: u[S].fun,
|
|
6212
|
+
cellId: S
|
|
6213
|
+
})).valid || c((w) => ({
|
|
6214
|
+
...w,
|
|
6215
|
+
[S]: {
|
|
6216
|
+
...w[S],
|
|
6202
6217
|
data: {
|
|
6203
|
-
...S
|
|
6218
|
+
...w[S].data,
|
|
6204
6219
|
error: f(gt.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6205
6220
|
}
|
|
6206
6221
|
}
|
|
6207
|
-
}))), (
|
|
6208
|
-
const k =
|
|
6222
|
+
}))), (D = u[S].inputSettings) != null && D.checkValueOnExit)) {
|
|
6223
|
+
const k = E();
|
|
6209
6224
|
i == null || i({
|
|
6210
6225
|
value: k,
|
|
6211
|
-
cell:
|
|
6226
|
+
cell: S
|
|
6212
6227
|
});
|
|
6213
6228
|
}
|
|
6214
|
-
}, v = (
|
|
6215
|
-
var
|
|
6216
|
-
if (!((
|
|
6229
|
+
}, v = (S) => {
|
|
6230
|
+
var D, k, w;
|
|
6231
|
+
if (!((D = S.rows) != null && D.length) || !((k = S.columns) != null && k.length))
|
|
6217
6232
|
return {};
|
|
6218
|
-
const g = (
|
|
6219
|
-
return
|
|
6220
|
-
const
|
|
6221
|
-
...g.cells[
|
|
6222
|
-
id:
|
|
6223
|
-
label:
|
|
6233
|
+
const g = (w = S.rows) == null ? void 0 : w[0];
|
|
6234
|
+
return S.columns.filter((O) => O.visible ?? !0).reduce((O, $) => {
|
|
6235
|
+
const F = {
|
|
6236
|
+
...g.cells[$.name],
|
|
6237
|
+
id: $.name,
|
|
6238
|
+
label: $.title
|
|
6224
6239
|
};
|
|
6225
|
-
return
|
|
6226
|
-
await s(
|
|
6227
|
-
)),
|
|
6240
|
+
return F.fun && (F.onOptionsRequest = async (P, C) => Ks(
|
|
6241
|
+
await s(P, C, r, $.name)
|
|
6242
|
+
)), F.isEditable == null && (F.isEditable = !0), e && (F.isEditable = !1), F.isEditable && F.shape == null && (F.shape = te.TEXT_FIELD), {
|
|
6228
6243
|
...O,
|
|
6229
|
-
[
|
|
6244
|
+
[$.name]: F
|
|
6230
6245
|
};
|
|
6231
6246
|
}, {});
|
|
6232
|
-
},
|
|
6247
|
+
}, E = () => ({
|
|
6233
6248
|
before: r,
|
|
6234
6249
|
after: {
|
|
6235
6250
|
type: "SmeupDataTable",
|
|
@@ -6240,18 +6255,18 @@ const Us = ({
|
|
|
6240
6255
|
}
|
|
6241
6256
|
]
|
|
6242
6257
|
}
|
|
6243
|
-
}),
|
|
6258
|
+
}), T = ((j = (b = r.setup) == null ? void 0 : b.commands) == null ? void 0 : j.map((S, g) => /* @__PURE__ */ Ur(
|
|
6244
6259
|
Te,
|
|
6245
6260
|
{
|
|
6246
|
-
...
|
|
6247
|
-
decode:
|
|
6261
|
+
...S,
|
|
6262
|
+
decode: S.value,
|
|
6248
6263
|
id: `command-${g}`,
|
|
6249
6264
|
key: `command-${g}`,
|
|
6250
6265
|
shape: te.BUTTON,
|
|
6251
|
-
onClick: () => m(
|
|
6266
|
+
onClick: () => m(S.obj.k)
|
|
6252
6267
|
}
|
|
6253
6268
|
))) || [];
|
|
6254
|
-
return t ||
|
|
6269
|
+
return t || T.unshift(
|
|
6255
6270
|
/* @__PURE__ */ y.jsx(
|
|
6256
6271
|
Te,
|
|
6257
6272
|
{
|
|
@@ -6274,18 +6289,18 @@ const Us = ({
|
|
|
6274
6289
|
style: {
|
|
6275
6290
|
padding: "1em 0"
|
|
6276
6291
|
},
|
|
6277
|
-
children: /* @__PURE__ */ y.jsx(st, { layout: r.rows[0].layout, children: Object.values(u).map((
|
|
6292
|
+
children: /* @__PURE__ */ y.jsx(st, { layout: r.rows[0].layout, children: Object.values(u).map((S) => /* @__PURE__ */ y.jsx(
|
|
6278
6293
|
Te,
|
|
6279
6294
|
{
|
|
6280
|
-
...
|
|
6281
|
-
onChange: (g) => d(
|
|
6282
|
-
onBlur: () => p(
|
|
6295
|
+
...S,
|
|
6296
|
+
onChange: (g) => d(S.id, g),
|
|
6297
|
+
onBlur: () => p(S.id),
|
|
6283
6298
|
onContextMenu: l
|
|
6284
6299
|
}
|
|
6285
6300
|
)) })
|
|
6286
6301
|
}
|
|
6287
6302
|
),
|
|
6288
|
-
|
|
6303
|
+
T.length > 0 && /* @__PURE__ */ y.jsx(
|
|
6289
6304
|
st,
|
|
6290
6305
|
{
|
|
6291
6306
|
layout: {
|
|
@@ -6294,32 +6309,32 @@ const Us = ({
|
|
|
6294
6309
|
id: "1",
|
|
6295
6310
|
horizontal: !0,
|
|
6296
6311
|
justify: "start",
|
|
6297
|
-
content:
|
|
6298
|
-
id:
|
|
6312
|
+
content: T.map((S) => ({
|
|
6313
|
+
id: S.props.id
|
|
6299
6314
|
}))
|
|
6300
6315
|
}
|
|
6301
6316
|
]
|
|
6302
6317
|
},
|
|
6303
|
-
children:
|
|
6318
|
+
children: T
|
|
6304
6319
|
}
|
|
6305
6320
|
)
|
|
6306
6321
|
] });
|
|
6307
6322
|
};
|
|
6308
6323
|
export {
|
|
6309
|
-
|
|
6324
|
+
Qs as AppBar,
|
|
6310
6325
|
Ar as Autocomplete,
|
|
6311
6326
|
Ye as Button,
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6327
|
+
jn as ButtonList,
|
|
6328
|
+
Dn as Checkbox,
|
|
6329
|
+
$n as Combobox,
|
|
6330
|
+
ta as DashList,
|
|
6331
|
+
ra as DataTableComponent,
|
|
6332
|
+
gs as DatePicker,
|
|
6333
|
+
ea as Drawer,
|
|
6334
|
+
na as Field,
|
|
6320
6335
|
fe as Icon,
|
|
6321
|
-
|
|
6322
|
-
|
|
6336
|
+
sa as InputPanel,
|
|
6337
|
+
vs as Password,
|
|
6323
6338
|
Re as Textfield,
|
|
6324
|
-
|
|
6339
|
+
Zs as configurePaths
|
|
6325
6340
|
};
|