@sme.up/ketchup2 2.0.0-SNAPSHOT-20250624130438 → 2.0.0-SNAPSHOT-20250624144221
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/radio/radio.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +13 -13
- package/dist/ketchup2.es.js +653 -639
- 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 q, useCallback as le, useLayoutEffect as Vr, useId as We, useMemo as Yr } from "react";
|
|
6
6
|
import { createPortal as Ur } from "react-dom";
|
|
7
|
-
var Ge = { exports: {} },
|
|
7
|
+
var Ge = { exports: {} }, Ne = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.js
|
|
@@ -16,7 +16,7 @@ var Ge = { exports: {} }, ke = {};
|
|
|
16
16
|
*/
|
|
17
17
|
var Nt;
|
|
18
18
|
function Wr() {
|
|
19
|
-
if (Nt) return
|
|
19
|
+
if (Nt) return Ne;
|
|
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 Wr() {
|
|
|
34
34
|
props: a
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return
|
|
37
|
+
return Ne.Fragment = e, Ne.jsx = t, Ne.jsxs = t, Ne;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var Ie = {};
|
|
40
40
|
/**
|
|
41
41
|
* @license React
|
|
42
42
|
* react-jsx-runtime.development.js
|
|
@@ -49,13 +49,13 @@ var Ne = {};
|
|
|
49
49
|
var It;
|
|
50
50
|
function Br() {
|
|
51
51
|
return It || (It = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
|
-
function r(
|
|
53
|
-
if (
|
|
54
|
-
if (typeof
|
|
55
|
-
return
|
|
56
|
-
if (typeof
|
|
57
|
-
switch (
|
|
58
|
-
case
|
|
52
|
+
function r(h) {
|
|
53
|
+
if (h == null) return null;
|
|
54
|
+
if (typeof h == "function")
|
|
55
|
+
return h.$$typeof === k ? null : h.displayName || h.name || null;
|
|
56
|
+
if (typeof h == "string") return h;
|
|
57
|
+
switch (h) {
|
|
58
|
+
case x:
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case w:
|
|
61
61
|
return "Profiler";
|
|
@@ -68,127 +68,127 @@ function Br() {
|
|
|
68
68
|
case D:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
|
-
if (typeof
|
|
72
|
-
switch (typeof
|
|
71
|
+
if (typeof h == "object")
|
|
72
|
+
switch (typeof h.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
|
-
),
|
|
75
|
-
case
|
|
74
|
+
), h.$$typeof) {
|
|
75
|
+
case p:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case _:
|
|
78
|
-
return (
|
|
78
|
+
return (h.displayName || "Context") + ".Provider";
|
|
79
79
|
case S:
|
|
80
|
-
return (
|
|
80
|
+
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case O:
|
|
82
|
-
var
|
|
83
|
-
return
|
|
82
|
+
var b = h.render;
|
|
83
|
+
return h = h.displayName, h || (h = b.displayName || b.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
84
|
case E:
|
|
85
|
-
return
|
|
85
|
+
return b = h.displayName || null, b !== null ? b : r(h.type) || "Memo";
|
|
86
86
|
case T:
|
|
87
|
-
|
|
87
|
+
b = h._payload, h = h._init;
|
|
88
88
|
try {
|
|
89
|
-
return r(
|
|
89
|
+
return r(h(b));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
return null;
|
|
94
94
|
}
|
|
95
|
-
function e(
|
|
96
|
-
return "" +
|
|
95
|
+
function e(h) {
|
|
96
|
+
return "" + h;
|
|
97
97
|
}
|
|
98
|
-
function t(
|
|
98
|
+
function t(h) {
|
|
99
99
|
try {
|
|
100
|
-
e(
|
|
101
|
-
var
|
|
100
|
+
e(h);
|
|
101
|
+
var b = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
b = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var R =
|
|
105
|
+
if (b) {
|
|
106
|
+
b = console;
|
|
107
|
+
var R = b.error, A = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
108
|
return R.call(
|
|
109
|
-
|
|
109
|
+
b,
|
|
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
|
|
112
|
-
), e(
|
|
112
|
+
), e(h);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function n(
|
|
116
|
-
if (
|
|
117
|
-
if (typeof
|
|
115
|
+
function n(h) {
|
|
116
|
+
if (h === x) return "<>";
|
|
117
|
+
if (typeof h == "object" && h !== null && h.$$typeof === T)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var b = r(h);
|
|
121
|
+
return b ? "<" + b + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var
|
|
128
|
-
return
|
|
127
|
+
var h = W.A;
|
|
128
|
+
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
|
-
function i(
|
|
134
|
-
if (C.call(
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
133
|
+
function i(h) {
|
|
134
|
+
if (C.call(h, "key")) {
|
|
135
|
+
var b = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
136
|
+
if (b && b.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function o(
|
|
140
|
+
function o(h, b) {
|
|
141
141
|
function R() {
|
|
142
142
|
B || (B = !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
|
+
b
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
R.isReactWarning = !0, Object.defineProperty(
|
|
147
|
+
R.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
148
|
get: R,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
|
-
var
|
|
154
|
-
return H[
|
|
153
|
+
var h = r(this.type);
|
|
154
|
+
return H[h] || (H[h] = !0, console.error(
|
|
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 l(
|
|
159
|
-
return R = L.ref,
|
|
158
|
+
function l(h, b, R, A, $, L, V, Y) {
|
|
159
|
+
return R = L.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
|
-
type:
|
|
162
|
-
key:
|
|
161
|
+
type: h,
|
|
162
|
+
key: b,
|
|
163
163
|
props: L,
|
|
164
164
|
_owner: $
|
|
165
|
-
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(
|
|
165
|
+
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
168
|
-
}) : Object.defineProperty(
|
|
168
|
+
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: 0
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(h, "_debugInfo", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
177
|
value: null
|
|
178
|
-
}), Object.defineProperty(
|
|
178
|
+
}), Object.defineProperty(h, "_debugStack", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
182
|
value: V
|
|
183
|
-
}), Object.defineProperty(
|
|
183
|
+
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
187
|
value: Y
|
|
188
|
-
}), Object.freeze && (Object.freeze(
|
|
188
|
+
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(
|
|
191
|
-
var F =
|
|
190
|
+
function f(h, b, R, A, $, L, V, Y) {
|
|
191
|
+
var F = b.children;
|
|
192
192
|
if (F !== void 0)
|
|
193
193
|
if (A)
|
|
194
194
|
if (j(F)) {
|
|
@@ -200,9 +200,9 @@ function Br() {
|
|
|
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 u(F);
|
|
203
|
-
if (C.call(
|
|
204
|
-
F = r(
|
|
205
|
-
var J = Object.keys(
|
|
203
|
+
if (C.call(b, "key")) {
|
|
204
|
+
F = r(h);
|
|
205
|
+
var J = Object.keys(b).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
208
|
A = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", I[F + A] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -218,16 +218,16 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
F
|
|
219
219
|
), I[F + A] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (F = null, R !== void 0 && (t(R), F = "" + R), i(
|
|
221
|
+
if (F = null, R !== void 0 && (t(R), F = "" + R), i(b) && (t(b.key), F = "" + b.key), "key" in b) {
|
|
222
222
|
R = {};
|
|
223
|
-
for (var G in
|
|
224
|
-
G !== "key" && (R[G] =
|
|
225
|
-
} else R =
|
|
223
|
+
for (var G in b)
|
|
224
|
+
G !== "key" && (R[G] = b[G]);
|
|
225
|
+
} else R = b;
|
|
226
226
|
return F && o(
|
|
227
227
|
R,
|
|
228
|
-
typeof
|
|
228
|
+
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), l(
|
|
230
|
-
|
|
230
|
+
h,
|
|
231
231
|
F,
|
|
232
232
|
L,
|
|
233
233
|
$,
|
|
@@ -237,54 +237,54 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
Y
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function u(
|
|
241
|
-
typeof
|
|
240
|
+
function u(h) {
|
|
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"),
|
|
243
|
+
var d = nt, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), _ = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), W = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, j = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
247
|
-
"react-stack-bottom-frame": function(
|
|
248
|
-
return
|
|
247
|
+
"react-stack-bottom-frame": function(h) {
|
|
248
|
+
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
251
|
var B, H = {}, z = d["react-stack-bottom-frame"].bind(
|
|
252
252
|
d,
|
|
253
253
|
a
|
|
254
254
|
)(), Z = M(n(a)), I = {};
|
|
255
|
-
|
|
255
|
+
Ie.Fragment = x, Ie.jsx = function(h, b, R, A, $) {
|
|
256
256
|
var L = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
|
-
|
|
259
|
-
|
|
258
|
+
h,
|
|
259
|
+
b,
|
|
260
260
|
R,
|
|
261
261
|
!1,
|
|
262
262
|
A,
|
|
263
263
|
$,
|
|
264
264
|
L ? Error("react-stack-top-frame") : z,
|
|
265
|
-
L ? M(n(
|
|
265
|
+
L ? M(n(h)) : Z
|
|
266
266
|
);
|
|
267
|
-
},
|
|
267
|
+
}, Ie.jsxs = function(h, b, R, A, $) {
|
|
268
268
|
var L = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
h,
|
|
271
|
+
b,
|
|
272
272
|
R,
|
|
273
273
|
!0,
|
|
274
274
|
A,
|
|
275
275
|
$,
|
|
276
276
|
L ? Error("react-stack-top-frame") : z,
|
|
277
|
-
L ? M(n(
|
|
277
|
+
L ? M(n(h)) : Z
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
|
-
}()),
|
|
280
|
+
}()), Ie;
|
|
281
281
|
}
|
|
282
282
|
var Mt;
|
|
283
283
|
function Hr() {
|
|
284
284
|
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? Ge.exports = Wr() : Ge.exports = Br()), Ge.exports;
|
|
285
285
|
}
|
|
286
286
|
var g = Hr();
|
|
287
|
-
const
|
|
287
|
+
const Oe = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
288
288
|
const n = {
|
|
289
289
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
290
290
|
};
|
|
@@ -364,19 +364,19 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
364
364
|
const n = "--smp-grid-template-cols", s = "--smp-grid-template-rows", a = Or(
|
|
365
365
|
e.sections ?? [],
|
|
366
366
|
Object.keys(t)
|
|
367
|
-
), i = (d) => d.reduce((m,
|
|
367
|
+
), i = (d) => d.reduce((m, p) => {
|
|
368
368
|
var _, O;
|
|
369
|
-
let
|
|
370
|
-
return (_ =
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
)))) : (O =
|
|
374
|
-
[n]: `repeat(${
|
|
375
|
-
}) :
|
|
369
|
+
let x = "", v = {}, w = {}, S = "";
|
|
370
|
+
return (_ = p.sections) != null && _.length ? (x = ge["smp-layout-section-grid"], v = i(p.sections), p.gridCols === void 0 && (S = ge[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (p.horizontal || Vt(p.sections)) && (w = Ft(
|
|
371
|
+
p.sections,
|
|
372
|
+
p.horizontal ? n : s
|
|
373
|
+
)))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (x = ge["smp-layout-section-grid"], S = ge["smp-grid-template-cols"], w = {
|
|
374
|
+
[n]: `repeat(${p.gridCols}, 1fr)`
|
|
375
|
+
}) : x = ge["smp-layout-section-flex"]), {
|
|
376
376
|
...m,
|
|
377
377
|
...v,
|
|
378
|
-
[
|
|
379
|
-
classes: `${
|
|
378
|
+
[p.id]: {
|
|
379
|
+
classes: `${x} ${ge[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${S} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
380
380
|
styles: w
|
|
381
381
|
}
|
|
382
382
|
};
|
|
@@ -384,14 +384,14 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
384
384
|
a,
|
|
385
385
|
e.horizontal ? n : s
|
|
386
386
|
) : {}, f = (d) => {
|
|
387
|
-
var
|
|
387
|
+
var p, x;
|
|
388
388
|
const m = /* @__PURE__ */ g.jsx(
|
|
389
389
|
"div",
|
|
390
390
|
{
|
|
391
391
|
"smp-id": `section-${d.id}`,
|
|
392
392
|
className: o[d.id].classes,
|
|
393
393
|
style: o[d.id].styles,
|
|
394
|
-
children: (
|
|
394
|
+
children: (p = d.sections) != null && p.length ? d.sections.map((v) => f(v)) : (x = d.content) == null ? void 0 : x.map(
|
|
395
395
|
(v) => u(v, d.justify, d.align)
|
|
396
396
|
)
|
|
397
397
|
},
|
|
@@ -406,7 +406,7 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
406
406
|
"span",
|
|
407
407
|
{
|
|
408
408
|
className: `${ge["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
|
|
409
|
-
children: /* @__PURE__ */ g.jsx(
|
|
409
|
+
children: /* @__PURE__ */ g.jsx(Oe, { label: d.title })
|
|
410
410
|
}
|
|
411
411
|
),
|
|
412
412
|
m
|
|
@@ -414,20 +414,20 @@ const Ae = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
414
414
|
},
|
|
415
415
|
`title-section-${d.id}`
|
|
416
416
|
) : m;
|
|
417
|
-
}, u = (d, m,
|
|
418
|
-
const
|
|
419
|
-
if (!
|
|
417
|
+
}, u = (d, m, p) => {
|
|
418
|
+
const x = t[d.id];
|
|
419
|
+
if (!x) return null;
|
|
420
420
|
const w = {
|
|
421
421
|
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
422
422
|
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
423
|
-
}, S = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${
|
|
423
|
+
}, S = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${p ? `smp-alignItems-${p}` : ""}`;
|
|
424
424
|
return /* @__PURE__ */ g.jsx(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
className: S,
|
|
428
428
|
style: w,
|
|
429
429
|
"smp-id": d.id,
|
|
430
|
-
children:
|
|
430
|
+
children: x
|
|
431
431
|
},
|
|
432
432
|
d.id
|
|
433
433
|
);
|
|
@@ -606,7 +606,7 @@ const Yt = /* @__PURE__ */ new Map([
|
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
]
|
|
609
|
-
]),
|
|
609
|
+
]), Ce = (r, e) => {
|
|
610
610
|
ne(() => {
|
|
611
611
|
const t = (n) => {
|
|
612
612
|
typeof r == "object" && r !== null && "current" in r && r.current && !r.current.contains(n.target) && e();
|
|
@@ -625,28 +625,28 @@ function dt({
|
|
|
625
625
|
if (!o || !c) return;
|
|
626
626
|
const { top: l, left: f, width: u, height: d } = o.getBoundingClientRect();
|
|
627
627
|
a(u);
|
|
628
|
-
const m = c.offsetHeight,
|
|
629
|
-
if (
|
|
628
|
+
const m = c.offsetHeight, p = c.offsetWidth;
|
|
629
|
+
if (p === 0 || m === 0) {
|
|
630
630
|
requestAnimationFrame(i);
|
|
631
631
|
return;
|
|
632
632
|
}
|
|
633
|
-
let
|
|
633
|
+
let x = l + window.scrollY, v = f + window.scrollX;
|
|
634
634
|
switch (r) {
|
|
635
635
|
case "top":
|
|
636
|
-
|
|
636
|
+
x -= m;
|
|
637
637
|
break;
|
|
638
638
|
case "bottom":
|
|
639
|
-
|
|
639
|
+
x += d;
|
|
640
640
|
break;
|
|
641
641
|
case "left":
|
|
642
|
-
v -=
|
|
642
|
+
v -= p;
|
|
643
643
|
break;
|
|
644
644
|
case "right":
|
|
645
645
|
v += u;
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
requestAnimationFrame(() => {
|
|
649
|
-
c.style.transform = `translate(${v}px, ${
|
|
649
|
+
c.style.transform = `translate(${v}px, ${x}px)`, c.style.opacity = "1";
|
|
650
650
|
});
|
|
651
651
|
}, [r]);
|
|
652
652
|
return Vr(() => {
|
|
@@ -661,7 +661,7 @@ function dt({
|
|
|
661
661
|
};
|
|
662
662
|
}, [i, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
|
|
663
663
|
}
|
|
664
|
-
const
|
|
664
|
+
const Ve = (r, e, t) => {
|
|
665
665
|
if (r == "")
|
|
666
666
|
return "";
|
|
667
667
|
if (t)
|
|
@@ -734,14 +734,14 @@ function rn() {
|
|
|
734
734
|
var d = u.parameters, m = u.type;
|
|
735
735
|
if (!m || !a.test(m))
|
|
736
736
|
throw new TypeError("invalid type");
|
|
737
|
-
var
|
|
737
|
+
var p = m;
|
|
738
738
|
if (d && typeof d == "object")
|
|
739
|
-
for (var
|
|
740
|
-
if (
|
|
739
|
+
for (var x, v = Object.keys(d).sort(), w = 0; w < v.length; w++) {
|
|
740
|
+
if (x = v[w], !t.test(x))
|
|
741
741
|
throw new TypeError("invalid parameter name");
|
|
742
|
-
|
|
742
|
+
p += "; " + x + "=" + l(d[x]);
|
|
743
743
|
}
|
|
744
|
-
return
|
|
744
|
+
return p;
|
|
745
745
|
}
|
|
746
746
|
function o(u) {
|
|
747
747
|
if (!u)
|
|
@@ -749,21 +749,21 @@ function rn() {
|
|
|
749
749
|
var d = typeof u == "object" ? c(u) : u;
|
|
750
750
|
if (typeof d != "string")
|
|
751
751
|
throw new TypeError("argument string is required to be a string");
|
|
752
|
-
var m = d.indexOf(";"),
|
|
753
|
-
if (!a.test(
|
|
752
|
+
var m = d.indexOf(";"), p = m !== -1 ? d.slice(0, m).trim() : d.trim();
|
|
753
|
+
if (!a.test(p))
|
|
754
754
|
throw new TypeError("invalid media type");
|
|
755
|
-
var
|
|
755
|
+
var x = new f(p.toLowerCase());
|
|
756
756
|
if (m !== -1) {
|
|
757
757
|
var v, w, S;
|
|
758
758
|
for (r.lastIndex = m; w = r.exec(d); ) {
|
|
759
759
|
if (w.index !== m)
|
|
760
760
|
throw new TypeError("invalid parameter format");
|
|
761
|
-
m += w[0].length, v = w[1].toLowerCase(), S = w[2], S.charCodeAt(0) === 34 && (S = S.slice(1, -1), S.indexOf("\\") !== -1 && (S = S.replace(n, "$1"))),
|
|
761
|
+
m += w[0].length, v = w[1].toLowerCase(), S = w[2], S.charCodeAt(0) === 34 && (S = S.slice(1, -1), S.indexOf("\\") !== -1 && (S = S.replace(n, "$1"))), x.parameters[v] = S;
|
|
762
762
|
}
|
|
763
763
|
if (m !== d.length)
|
|
764
764
|
throw new TypeError("invalid parameter format");
|
|
765
765
|
}
|
|
766
|
-
return
|
|
766
|
+
return x;
|
|
767
767
|
}
|
|
768
768
|
function c(u) {
|
|
769
769
|
var d;
|
|
@@ -784,7 +784,7 @@ function rn() {
|
|
|
784
784
|
}
|
|
785
785
|
return qe;
|
|
786
786
|
}
|
|
787
|
-
var nn = rn(),
|
|
787
|
+
var nn = rn(), _e = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
788
788
|
return e.cloneNode(!0);
|
|
789
789
|
}, Wt = function() {
|
|
790
790
|
return window.location.protocol === "file:";
|
|
@@ -821,15 +821,15 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
821
821
|
for (var t = function(i, o) {
|
|
822
822
|
setTimeout(function() {
|
|
823
823
|
if (Array.isArray(we[e])) {
|
|
824
|
-
var c =
|
|
824
|
+
var c = _e.get(e), l = we[e][i];
|
|
825
825
|
c instanceof SVGSVGElement && l(null, Rr(c)), c instanceof Error && l(c), i === we[e].length - 1 && delete we[e];
|
|
826
826
|
}
|
|
827
827
|
}, 0);
|
|
828
828
|
}, n = 0, s = we[e].length; n < s; n++)
|
|
829
829
|
t(n);
|
|
830
830
|
}, an = function(e, t, n) {
|
|
831
|
-
if (
|
|
832
|
-
var s =
|
|
831
|
+
if (_e.has(e)) {
|
|
832
|
+
var s = _e.get(e);
|
|
833
833
|
if (s === void 0) {
|
|
834
834
|
Bt(e, n);
|
|
835
835
|
return;
|
|
@@ -839,9 +839,9 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
839
839
|
return;
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
|
|
842
|
+
_e.set(e, void 0), Bt(e, n), Dr(e, t, function(a, i) {
|
|
843
843
|
var o;
|
|
844
|
-
a ?
|
|
844
|
+
a ? _e.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && _e.set(e, i.responseXML.documentElement), sn(e);
|
|
845
845
|
});
|
|
846
846
|
}, on = function(e, t, n) {
|
|
847
847
|
Dr(e, t, function(s, a) {
|
|
@@ -871,10 +871,10 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
871
871
|
d && u.setAttribute("id", d);
|
|
872
872
|
var m = e.getAttribute("title");
|
|
873
873
|
m && u.setAttribute("title", m);
|
|
874
|
-
var
|
|
875
|
-
|
|
876
|
-
var
|
|
877
|
-
|
|
874
|
+
var p = e.getAttribute("width");
|
|
875
|
+
p && u.setAttribute("width", p);
|
|
876
|
+
var x = e.getAttribute("height");
|
|
877
|
+
x && u.setAttribute("height", x);
|
|
878
878
|
var v = Array.from(new Set(gt(gt(gt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
879
879
|
u.setAttribute("class", v);
|
|
880
880
|
var w = e.getAttribute("style");
|
|
@@ -916,8 +916,8 @@ var nn = rn(), De = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
|
916
916
|
for (var ae = 0, N = Y.length; ae < N; ae++)
|
|
917
917
|
Y[ae].setAttributeNS(yt, "href", "#" + T);
|
|
918
918
|
y[A].id = T;
|
|
919
|
-
},
|
|
920
|
-
I(
|
|
919
|
+
}, h = 0, b = y.length; h < b; h++)
|
|
920
|
+
I(h);
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
u.removeAttribute("xmlns:a");
|
|
@@ -941,13 +941,13 @@ var nn = rn(), De = /* @__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, c = n.beforeEach, l = c === void 0 ? function() {
|
|
944
|
-
} : c, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d,
|
|
944
|
+
} : c, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, x = p === void 0 ? !1 : p, v = n.renumerateIRIElements, w = v === void 0 ? !0 : v;
|
|
945
945
|
if (e && "length" in e)
|
|
946
946
|
for (var S = 0, _ = 0, O = e.length; _ < O; _++)
|
|
947
|
-
Gt(e[_], m, w, u,
|
|
947
|
+
Gt(e[_], m, w, u, x, l, function(y, P) {
|
|
948
948
|
o(y, P), e && "length" in e && e.length === ++S && a(S);
|
|
949
949
|
});
|
|
950
|
-
else e ? Gt(e, m, w, u,
|
|
950
|
+
else e ? Gt(e, m, w, u, x, l, function(y, P) {
|
|
951
951
|
o(y, P), a(1), e = null;
|
|
952
952
|
}) : a(0);
|
|
953
953
|
}, ze = { exports: {} }, Je = { exports: {} }, Q = {};
|
|
@@ -963,7 +963,7 @@ var Kt;
|
|
|
963
963
|
function dn() {
|
|
964
964
|
if (Kt) return Q;
|
|
965
965
|
Kt = 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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115,
|
|
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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = 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, x = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
|
|
967
967
|
function _(y) {
|
|
968
968
|
if (typeof y == "object" && y !== null) {
|
|
969
969
|
var P = y.$$typeof;
|
|
@@ -981,7 +981,7 @@ function dn() {
|
|
|
981
981
|
switch (y = y && y.$$typeof, y) {
|
|
982
982
|
case o:
|
|
983
983
|
case f:
|
|
984
|
-
case
|
|
984
|
+
case p:
|
|
985
985
|
case m:
|
|
986
986
|
case i:
|
|
987
987
|
return y;
|
|
@@ -997,7 +997,7 @@ function dn() {
|
|
|
997
997
|
function O(y) {
|
|
998
998
|
return _(y) === l;
|
|
999
999
|
}
|
|
1000
|
-
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy =
|
|
1000
|
+
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(y) {
|
|
1001
1001
|
return O(y) || _(y) === c;
|
|
1002
1002
|
}, Q.isConcurrentMode = O, Q.isContextConsumer = function(y) {
|
|
1003
1003
|
return _(y) === o;
|
|
@@ -1010,7 +1010,7 @@ function dn() {
|
|
|
1010
1010
|
}, Q.isFragment = function(y) {
|
|
1011
1011
|
return _(y) === n;
|
|
1012
1012
|
}, Q.isLazy = function(y) {
|
|
1013
|
-
return _(y) ===
|
|
1013
|
+
return _(y) === p;
|
|
1014
1014
|
}, Q.isMemo = function(y) {
|
|
1015
1015
|
return _(y) === m;
|
|
1016
1016
|
}, Q.isPortal = function(y) {
|
|
@@ -1022,7 +1022,7 @@ function dn() {
|
|
|
1022
1022
|
}, Q.isSuspense = function(y) {
|
|
1023
1023
|
return _(y) === u;
|
|
1024
1024
|
}, Q.isValidElementType = function(y) {
|
|
1025
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === u || y === d || typeof y == "object" && y !== null && (y.$$typeof ===
|
|
1025
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === u || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === m || y.$$typeof === i || y.$$typeof === o || y.$$typeof === f || y.$$typeof === v || y.$$typeof === w || y.$$typeof === S || y.$$typeof === x);
|
|
1026
1026
|
}, Q.typeOf = _, Q;
|
|
1027
1027
|
}
|
|
1028
1028
|
var ee = {};
|
|
@@ -1037,10 +1037,10 @@ var ee = {};
|
|
|
1037
1037
|
var qt;
|
|
1038
1038
|
function pn() {
|
|
1039
1039
|
return qt || (qt = 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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115,
|
|
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, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = 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, x = r ? Symbol.for("react.block") : 60121, v = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, S = r ? Symbol.for("react.scope") : 60119;
|
|
1041
1041
|
function _(N) {
|
|
1042
1042
|
return typeof N == "string" || typeof N == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1043
|
-
N === n || N === l || N === a || N === s || N === u || N === d || typeof N == "object" && N !== null && (N.$$typeof ===
|
|
1043
|
+
N === n || N === l || N === a || N === s || N === u || N === d || typeof N == "object" && N !== null && (N.$$typeof === p || N.$$typeof === m || N.$$typeof === i || N.$$typeof === o || N.$$typeof === f || N.$$typeof === v || N.$$typeof === w || N.$$typeof === S || N.$$typeof === x);
|
|
1044
1044
|
}
|
|
1045
1045
|
function O(N) {
|
|
1046
1046
|
if (typeof N == "object" && N !== null) {
|
|
@@ -1061,7 +1061,7 @@ function pn() {
|
|
|
1061
1061
|
switch (te) {
|
|
1062
1062
|
case o:
|
|
1063
1063
|
case f:
|
|
1064
|
-
case
|
|
1064
|
+
case p:
|
|
1065
1065
|
case m:
|
|
1066
1066
|
case i:
|
|
1067
1067
|
return te;
|
|
@@ -1074,14 +1074,14 @@ function pn() {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
|
-
var y = c, P = l, E = o, T = i, D = e, k = f, W = n, C =
|
|
1077
|
+
var y = c, P = l, E = o, T = i, D = e, k = f, W = n, C = p, j = m, M = t, B = a, H = s, z = u, Z = !1;
|
|
1078
1078
|
function I(N) {
|
|
1079
|
-
return Z || (Z = !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.")),
|
|
1079
|
+
return Z || (Z = !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(N) || O(N) === c;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function h(N) {
|
|
1082
1082
|
return O(N) === l;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function b(N) {
|
|
1085
1085
|
return O(N) === o;
|
|
1086
1086
|
}
|
|
1087
1087
|
function R(N) {
|
|
@@ -1097,7 +1097,7 @@ function pn() {
|
|
|
1097
1097
|
return O(N) === n;
|
|
1098
1098
|
}
|
|
1099
1099
|
function V(N) {
|
|
1100
|
-
return O(N) ===
|
|
1100
|
+
return O(N) === p;
|
|
1101
1101
|
}
|
|
1102
1102
|
function Y(N) {
|
|
1103
1103
|
return O(N) === m;
|
|
@@ -1114,7 +1114,7 @@ function pn() {
|
|
|
1114
1114
|
function ae(N) {
|
|
1115
1115
|
return O(N) === u;
|
|
1116
1116
|
}
|
|
1117
|
-
ee.AsyncMode = y, ee.ConcurrentMode = P, ee.ContextConsumer = E, ee.ContextProvider = T, ee.Element = D, ee.ForwardRef = k, ee.Fragment = W, ee.Lazy = C, ee.Memo = j, ee.Portal = M, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = z, ee.isAsyncMode = I, ee.isConcurrentMode =
|
|
1117
|
+
ee.AsyncMode = y, ee.ConcurrentMode = P, ee.ContextConsumer = E, ee.ContextProvider = T, ee.Element = D, ee.ForwardRef = k, ee.Fragment = W, ee.Lazy = C, ee.Memo = j, ee.Portal = M, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = z, ee.isAsyncMode = I, ee.isConcurrentMode = h, ee.isContextConsumer = b, ee.isContextProvider = R, ee.isElement = A, ee.isForwardRef = $, ee.isFragment = L, ee.isLazy = V, ee.isMemo = Y, ee.isPortal = F, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = _, ee.typeOf = O;
|
|
1118
1118
|
}()), ee;
|
|
1119
1119
|
}
|
|
1120
1120
|
var zt;
|
|
@@ -1213,8 +1213,8 @@ function mn() {
|
|
|
1213
1213
|
throw d.name = "Invariant Violation", d;
|
|
1214
1214
|
}
|
|
1215
1215
|
u = a[f](i, f, c, o, null, e);
|
|
1216
|
-
} catch (
|
|
1217
|
-
u =
|
|
1216
|
+
} catch (p) {
|
|
1217
|
+
u = p;
|
|
1218
1218
|
}
|
|
1219
1219
|
if (u && !(u instanceof Error) && r(
|
|
1220
1220
|
(c || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -1251,10 +1251,10 @@ function gn() {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
return wt = function(o, c) {
|
|
1253
1253
|
var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
1254
|
-
function u(
|
|
1255
|
-
var
|
|
1256
|
-
if (typeof
|
|
1257
|
-
return
|
|
1254
|
+
function u(h) {
|
|
1255
|
+
var b = h && (l && h[l] || h[f]);
|
|
1256
|
+
if (typeof b == "function")
|
|
1257
|
+
return b;
|
|
1258
1258
|
}
|
|
1259
1259
|
var d = "<<anonymous>>", m = {
|
|
1260
1260
|
array: w("array"),
|
|
@@ -1277,16 +1277,16 @@ function gn() {
|
|
|
1277
1277
|
shape: C,
|
|
1278
1278
|
exact: j
|
|
1279
1279
|
};
|
|
1280
|
-
function h
|
|
1281
|
-
return
|
|
1280
|
+
function p(h, b) {
|
|
1281
|
+
return h === b ? h !== 0 || 1 / h === 1 / b : h !== h && b !== b;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1284
|
-
this.message =
|
|
1283
|
+
function x(h, b) {
|
|
1284
|
+
this.message = h, this.data = b && typeof b == "object" ? b : {}, this.stack = "";
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1287
|
-
function v(
|
|
1286
|
+
x.prototype = Error.prototype;
|
|
1287
|
+
function v(h) {
|
|
1288
1288
|
if (process.env.NODE_ENV !== "production")
|
|
1289
|
-
var
|
|
1289
|
+
var b = {}, R = 0;
|
|
1290
1290
|
function A(L, V, Y, F, J, G, ae) {
|
|
1291
1291
|
if (F = F || d, G = G || Y, ae !== t) {
|
|
1292
1292
|
if (c) {
|
|
@@ -1296,158 +1296,158 @@ function gn() {
|
|
|
1296
1296
|
throw N.name = "Invariant Violation", N;
|
|
1297
1297
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1298
1298
|
var U = F + ":" + Y;
|
|
1299
|
-
!
|
|
1299
|
+
!b[U] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1300
1300
|
R < 3 && (a(
|
|
1301
1301
|
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + F + "`. 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
|
-
),
|
|
1302
|
+
), b[U] = !0, R++);
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
return V[Y] == null ? L ? V[Y] === null ? new
|
|
1305
|
+
return V[Y] == null ? L ? V[Y] === null ? new x("The " + J + " `" + G + "` is marked as required " + ("in `" + F + "`, but its value is `null`.")) : new x("The " + J + " `" + G + "` is marked as required in " + ("`" + F + "`, but its value is `undefined`.")) : null : h(V, Y, F, J, G);
|
|
1306
1306
|
}
|
|
1307
1307
|
var $ = A.bind(null, !1);
|
|
1308
1308
|
return $.isRequired = A.bind(null, !0), $;
|
|
1309
1309
|
}
|
|
1310
|
-
function w(
|
|
1311
|
-
function
|
|
1310
|
+
function w(h) {
|
|
1311
|
+
function b(R, A, $, L, V, Y) {
|
|
1312
1312
|
var F = R[A], J = H(F);
|
|
1313
|
-
if (J !==
|
|
1313
|
+
if (J !== h) {
|
|
1314
1314
|
var G = z(F);
|
|
1315
|
-
return new
|
|
1316
|
-
"Invalid " + L + " `" + V + "` of type " + ("`" + G + "` supplied to `" + $ + "`, expected ") + ("`" +
|
|
1317
|
-
{ expectedType:
|
|
1315
|
+
return new x(
|
|
1316
|
+
"Invalid " + L + " `" + V + "` of type " + ("`" + G + "` supplied to `" + $ + "`, expected ") + ("`" + h + "`."),
|
|
1317
|
+
{ expectedType: h }
|
|
1318
1318
|
);
|
|
1319
1319
|
}
|
|
1320
1320
|
return null;
|
|
1321
1321
|
}
|
|
1322
|
-
return v(
|
|
1322
|
+
return v(b);
|
|
1323
1323
|
}
|
|
1324
1324
|
function S() {
|
|
1325
1325
|
return v(i);
|
|
1326
1326
|
}
|
|
1327
|
-
function _(
|
|
1328
|
-
function
|
|
1329
|
-
if (typeof
|
|
1330
|
-
return new
|
|
1327
|
+
function _(h) {
|
|
1328
|
+
function b(R, A, $, L, V) {
|
|
1329
|
+
if (typeof h != "function")
|
|
1330
|
+
return new x("Property `" + V + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
1331
1331
|
var Y = R[A];
|
|
1332
1332
|
if (!Array.isArray(Y)) {
|
|
1333
1333
|
var F = H(Y);
|
|
1334
|
-
return new
|
|
1334
|
+
return new x("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected an array."));
|
|
1335
1335
|
}
|
|
1336
1336
|
for (var J = 0; J < Y.length; J++) {
|
|
1337
|
-
var G =
|
|
1337
|
+
var G = h(Y, J, $, L, V + "[" + J + "]", t);
|
|
1338
1338
|
if (G instanceof Error)
|
|
1339
1339
|
return G;
|
|
1340
1340
|
}
|
|
1341
1341
|
return null;
|
|
1342
1342
|
}
|
|
1343
|
-
return v(
|
|
1343
|
+
return v(b);
|
|
1344
1344
|
}
|
|
1345
1345
|
function O() {
|
|
1346
|
-
function
|
|
1347
|
-
var V =
|
|
1346
|
+
function h(b, R, A, $, L) {
|
|
1347
|
+
var V = b[R];
|
|
1348
1348
|
if (!o(V)) {
|
|
1349
1349
|
var Y = H(V);
|
|
1350
|
-
return new
|
|
1350
|
+
return new x("Invalid " + $ + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1351
1351
|
}
|
|
1352
1352
|
return null;
|
|
1353
1353
|
}
|
|
1354
|
-
return v(
|
|
1354
|
+
return v(h);
|
|
1355
1355
|
}
|
|
1356
1356
|
function y() {
|
|
1357
|
-
function
|
|
1358
|
-
var V =
|
|
1357
|
+
function h(b, R, A, $, L) {
|
|
1358
|
+
var V = b[R];
|
|
1359
1359
|
if (!r.isValidElementType(V)) {
|
|
1360
1360
|
var Y = H(V);
|
|
1361
|
-
return new
|
|
1361
|
+
return new x("Invalid " + $ + " `" + L + "` of type " + ("`" + Y + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1362
1362
|
}
|
|
1363
1363
|
return null;
|
|
1364
1364
|
}
|
|
1365
|
-
return v(
|
|
1365
|
+
return v(h);
|
|
1366
1366
|
}
|
|
1367
|
-
function P(
|
|
1368
|
-
function
|
|
1369
|
-
if (!(R[A] instanceof
|
|
1370
|
-
var Y =
|
|
1371
|
-
return new
|
|
1367
|
+
function P(h) {
|
|
1368
|
+
function b(R, A, $, L, V) {
|
|
1369
|
+
if (!(R[A] instanceof h)) {
|
|
1370
|
+
var Y = h.name || d, F = I(R[A]);
|
|
1371
|
+
return new x("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1372
1372
|
}
|
|
1373
1373
|
return null;
|
|
1374
1374
|
}
|
|
1375
|
-
return v(
|
|
1375
|
+
return v(b);
|
|
1376
1376
|
}
|
|
1377
|
-
function E(
|
|
1378
|
-
if (!Array.isArray(
|
|
1377
|
+
function E(h) {
|
|
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
|
|
1383
|
-
for (var Y = R[A], F = 0; F <
|
|
1384
|
-
if (
|
|
1382
|
+
function b(R, A, $, L, V) {
|
|
1383
|
+
for (var Y = R[A], F = 0; F < h.length; F++)
|
|
1384
|
+
if (p(Y, h[F]))
|
|
1385
1385
|
return null;
|
|
1386
|
-
var J = JSON.stringify(
|
|
1386
|
+
var J = JSON.stringify(h, function(ae, N) {
|
|
1387
1387
|
var U = z(N);
|
|
1388
1388
|
return U === "symbol" ? String(N) : N;
|
|
1389
1389
|
});
|
|
1390
|
-
return new
|
|
1390
|
+
return new x("Invalid " + L + " `" + V + "` of value `" + String(Y) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
|
|
1391
1391
|
}
|
|
1392
|
-
return v(
|
|
1392
|
+
return v(b);
|
|
1393
1393
|
}
|
|
1394
|
-
function T(
|
|
1395
|
-
function
|
|
1396
|
-
if (typeof
|
|
1397
|
-
return new
|
|
1394
|
+
function T(h) {
|
|
1395
|
+
function b(R, A, $, L, V) {
|
|
1396
|
+
if (typeof h != "function")
|
|
1397
|
+
return new x("Property `" + V + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1398
1398
|
var Y = R[A], F = H(Y);
|
|
1399
1399
|
if (F !== "object")
|
|
1400
|
-
return new
|
|
1400
|
+
return new x("Invalid " + L + " `" + V + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected an object."));
|
|
1401
1401
|
for (var J in Y)
|
|
1402
1402
|
if (n(Y, J)) {
|
|
1403
|
-
var G =
|
|
1403
|
+
var G = h(Y, J, $, L, V + "." + J, t);
|
|
1404
1404
|
if (G instanceof Error)
|
|
1405
1405
|
return G;
|
|
1406
1406
|
}
|
|
1407
1407
|
return null;
|
|
1408
1408
|
}
|
|
1409
|
-
return v(
|
|
1409
|
+
return v(b);
|
|
1410
1410
|
}
|
|
1411
|
-
function D(
|
|
1412
|
-
if (!Array.isArray(
|
|
1411
|
+
function D(h) {
|
|
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
|
-
for (var
|
|
1415
|
-
var R =
|
|
1414
|
+
for (var b = 0; b < h.length; b++) {
|
|
1415
|
+
var R = h[b];
|
|
1416
1416
|
if (typeof R != "function")
|
|
1417
1417
|
return a(
|
|
1418
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(R) + " at index " +
|
|
1418
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(R) + " at index " + b + "."
|
|
1419
1419
|
), i;
|
|
1420
1420
|
}
|
|
1421
1421
|
function A($, L, V, Y, F) {
|
|
1422
|
-
for (var J = [], G = 0; G <
|
|
1423
|
-
var ae =
|
|
1422
|
+
for (var J = [], G = 0; G < h.length; G++) {
|
|
1423
|
+
var ae = h[G], N = ae($, L, V, Y, F, t);
|
|
1424
1424
|
if (N == null)
|
|
1425
1425
|
return null;
|
|
1426
1426
|
N.data && n(N.data, "expectedType") && J.push(N.data.expectedType);
|
|
1427
1427
|
}
|
|
1428
1428
|
var U = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1429
|
-
return new
|
|
1429
|
+
return new x("Invalid " + Y + " `" + F + "` supplied to " + ("`" + V + "`" + U + "."));
|
|
1430
1430
|
}
|
|
1431
1431
|
return v(A);
|
|
1432
1432
|
}
|
|
1433
1433
|
function k() {
|
|
1434
|
-
function
|
|
1435
|
-
return M(
|
|
1434
|
+
function h(b, R, A, $, L) {
|
|
1435
|
+
return M(b[R]) ? null : new x("Invalid " + $ + " `" + L + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1436
1436
|
}
|
|
1437
|
-
return v(
|
|
1437
|
+
return v(h);
|
|
1438
1438
|
}
|
|
1439
|
-
function W(
|
|
1440
|
-
return new
|
|
1441
|
-
(
|
|
1439
|
+
function W(h, b, R, A, $) {
|
|
1440
|
+
return new x(
|
|
1441
|
+
(h || "React class") + ": " + b + " type `" + R + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1442
1442
|
);
|
|
1443
1443
|
}
|
|
1444
|
-
function C(
|
|
1445
|
-
function
|
|
1444
|
+
function C(h) {
|
|
1445
|
+
function b(R, A, $, L, V) {
|
|
1446
1446
|
var Y = R[A], F = H(Y);
|
|
1447
1447
|
if (F !== "object")
|
|
1448
|
-
return new
|
|
1449
|
-
for (var J in
|
|
1450
|
-
var G =
|
|
1448
|
+
return new x("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1449
|
+
for (var J in h) {
|
|
1450
|
+
var G = h[J];
|
|
1451
1451
|
if (typeof G != "function")
|
|
1452
1452
|
return W($, L, V, J, z(G));
|
|
1453
1453
|
var ae = G(Y, J, $, L, V + "." + J, t);
|
|
@@ -1456,22 +1456,22 @@ function gn() {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
return null;
|
|
1458
1458
|
}
|
|
1459
|
-
return v(
|
|
1459
|
+
return v(b);
|
|
1460
1460
|
}
|
|
1461
|
-
function j(
|
|
1462
|
-
function
|
|
1461
|
+
function j(h) {
|
|
1462
|
+
function b(R, A, $, L, V) {
|
|
1463
1463
|
var Y = R[A], F = H(Y);
|
|
1464
1464
|
if (F !== "object")
|
|
1465
|
-
return new
|
|
1466
|
-
var J = e({}, R[A],
|
|
1465
|
+
return new x("Invalid " + L + " `" + V + "` of type `" + F + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1466
|
+
var J = e({}, R[A], h);
|
|
1467
1467
|
for (var G in J) {
|
|
1468
|
-
var ae =
|
|
1469
|
-
if (n(
|
|
1468
|
+
var ae = h[G];
|
|
1469
|
+
if (n(h, G) && typeof ae != "function")
|
|
1470
1470
|
return W($, L, V, G, z(ae));
|
|
1471
1471
|
if (!ae)
|
|
1472
|
-
return new
|
|
1472
|
+
return new x(
|
|
1473
1473
|
"Invalid " + L + " `" + V + "` key `" + G + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(R[A], null, " ") + `
|
|
1474
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1474
|
+
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1475
1475
|
);
|
|
1476
1476
|
var N = ae(Y, G, $, L, V + "." + G, t);
|
|
1477
1477
|
if (N)
|
|
@@ -1479,25 +1479,25 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1479
1479
|
}
|
|
1480
1480
|
return null;
|
|
1481
1481
|
}
|
|
1482
|
-
return v(
|
|
1482
|
+
return v(b);
|
|
1483
1483
|
}
|
|
1484
|
-
function M(
|
|
1485
|
-
switch (typeof
|
|
1484
|
+
function M(h) {
|
|
1485
|
+
switch (typeof h) {
|
|
1486
1486
|
case "number":
|
|
1487
1487
|
case "string":
|
|
1488
1488
|
case "undefined":
|
|
1489
1489
|
return !0;
|
|
1490
1490
|
case "boolean":
|
|
1491
|
-
return !
|
|
1491
|
+
return !h;
|
|
1492
1492
|
case "object":
|
|
1493
|
-
if (Array.isArray(
|
|
1494
|
-
return
|
|
1495
|
-
if (
|
|
1493
|
+
if (Array.isArray(h))
|
|
1494
|
+
return h.every(M);
|
|
1495
|
+
if (h === null || o(h))
|
|
1496
1496
|
return !0;
|
|
1497
|
-
var
|
|
1498
|
-
if (
|
|
1499
|
-
var R =
|
|
1500
|
-
if (
|
|
1497
|
+
var b = u(h);
|
|
1498
|
+
if (b) {
|
|
1499
|
+
var R = b.call(h), A;
|
|
1500
|
+
if (b !== h.entries) {
|
|
1501
1501
|
for (; !(A = R.next()).done; )
|
|
1502
1502
|
if (!M(A.value))
|
|
1503
1503
|
return !1;
|
|
@@ -1514,41 +1514,41 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1514
1514
|
return !1;
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
|
-
function B(
|
|
1518
|
-
return
|
|
1517
|
+
function B(h, b) {
|
|
1518
|
+
return h === "symbol" ? !0 : b ? b["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && b instanceof Symbol : !1;
|
|
1519
1519
|
}
|
|
1520
|
-
function H(
|
|
1521
|
-
var
|
|
1522
|
-
return Array.isArray(
|
|
1520
|
+
function H(h) {
|
|
1521
|
+
var b = typeof h;
|
|
1522
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(b, h) ? "symbol" : b;
|
|
1523
1523
|
}
|
|
1524
|
-
function z(
|
|
1525
|
-
if (typeof
|
|
1526
|
-
return "" +
|
|
1527
|
-
var
|
|
1528
|
-
if (
|
|
1529
|
-
if (
|
|
1524
|
+
function z(h) {
|
|
1525
|
+
if (typeof h > "u" || h === null)
|
|
1526
|
+
return "" + h;
|
|
1527
|
+
var b = H(h);
|
|
1528
|
+
if (b === "object") {
|
|
1529
|
+
if (h instanceof Date)
|
|
1530
1530
|
return "date";
|
|
1531
|
-
if (
|
|
1531
|
+
if (h instanceof RegExp)
|
|
1532
1532
|
return "regexp";
|
|
1533
1533
|
}
|
|
1534
|
-
return
|
|
1534
|
+
return b;
|
|
1535
1535
|
}
|
|
1536
|
-
function Z(
|
|
1537
|
-
var
|
|
1538
|
-
switch (
|
|
1536
|
+
function Z(h) {
|
|
1537
|
+
var b = z(h);
|
|
1538
|
+
switch (b) {
|
|
1539
1539
|
case "array":
|
|
1540
1540
|
case "object":
|
|
1541
|
-
return "an " +
|
|
1541
|
+
return "an " + b;
|
|
1542
1542
|
case "boolean":
|
|
1543
1543
|
case "date":
|
|
1544
1544
|
case "regexp":
|
|
1545
|
-
return "a " +
|
|
1545
|
+
return "a " + b;
|
|
1546
1546
|
default:
|
|
1547
|
-
return
|
|
1547
|
+
return b;
|
|
1548
1548
|
}
|
|
1549
1549
|
}
|
|
1550
|
-
function I(
|
|
1551
|
-
return !
|
|
1550
|
+
function I(h) {
|
|
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;
|
|
1554
1554
|
}, wt;
|
|
@@ -1622,7 +1622,7 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
|
|
|
1622
1622
|
if (e[s] !== t[s])
|
|
1623
1623
|
return !0;
|
|
1624
1624
|
return !1;
|
|
1625
|
-
}, Sn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Xe = "http://www.w3.org/2000/svg", nr = "http://www.w3.org/1999/xlink",
|
|
1625
|
+
}, Sn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Xe = "http://www.w3.org/2000/svg", nr = "http://www.w3.org/1999/xlink", Pe = /* @__PURE__ */ function(r) {
|
|
1626
1626
|
function e() {
|
|
1627
1627
|
for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
|
|
1628
1628
|
a[i] = arguments[i];
|
|
@@ -1638,7 +1638,7 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
|
|
|
1638
1638
|
return t.renderSVG = function() {
|
|
1639
1639
|
var s = this;
|
|
1640
1640
|
if (this.reactWrapper instanceof xn(this.reactWrapper).Node) {
|
|
1641
|
-
var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError,
|
|
1641
|
+
var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, x = this.props.afterInjection, v = this.props.wrapper, w, S;
|
|
1642
1642
|
v === "svg" ? (w = document.createElementNS(Xe, v), w.setAttribute("xmlns", Xe), w.setAttribute("xmlns:xlink", nr), S = document.createElementNS(Xe, v)) : (w = document.createElement(v), S = document.createElement(v)), w.appendChild(S), S.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(w);
|
|
1643
1643
|
var _ = function(E) {
|
|
1644
1644
|
if (s.removeSVG(), !s._isMounted) {
|
|
@@ -1664,7 +1664,7 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
|
|
|
1664
1664
|
};
|
|
1665
1665
|
}, function() {
|
|
1666
1666
|
try {
|
|
1667
|
-
|
|
1667
|
+
x(T);
|
|
1668
1668
|
} catch (D) {
|
|
1669
1669
|
_(D);
|
|
1670
1670
|
}
|
|
@@ -1683,7 +1683,7 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
|
|
|
1683
1683
|
W.innerHTML = u, E.prepend(W);
|
|
1684
1684
|
}
|
|
1685
1685
|
try {
|
|
1686
|
-
|
|
1686
|
+
p(E);
|
|
1687
1687
|
} catch (C) {
|
|
1688
1688
|
_(C);
|
|
1689
1689
|
}
|
|
@@ -1727,7 +1727,7 @@ var oe = /* @__PURE__ */ vn(), xn = function(e) {
|
|
|
1727
1727
|
} : {}), this.state.isLoading && i && /* @__PURE__ */ He.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ He.createElement(a, null));
|
|
1728
1728
|
}, e;
|
|
1729
1729
|
}(He.Component);
|
|
1730
|
-
|
|
1730
|
+
Pe.defaultProps = {
|
|
1731
1731
|
afterInjection: function() {
|
|
1732
1732
|
},
|
|
1733
1733
|
beforeInjection: function() {
|
|
@@ -1744,7 +1744,7 @@ $e.defaultProps = {
|
|
|
1744
1744
|
useRequestCache: !0,
|
|
1745
1745
|
wrapper: "div"
|
|
1746
1746
|
};
|
|
1747
|
-
|
|
1747
|
+
Pe.propTypes = {
|
|
1748
1748
|
afterInjection: oe.func,
|
|
1749
1749
|
beforeInjection: oe.func,
|
|
1750
1750
|
desc: oe.string,
|
|
@@ -1781,7 +1781,7 @@ const Js = (r) => {
|
|
|
1781
1781
|
title: u,
|
|
1782
1782
|
tabIndex: d
|
|
1783
1783
|
}) => {
|
|
1784
|
-
const [m,
|
|
1784
|
+
const [m, p] = q(r), x = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), v = x && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = sr(`assets/svg/${r}.svg`), S = sr(
|
|
1785
1785
|
`assets/svg/${n}.svg`
|
|
1786
1786
|
), _ = {
|
|
1787
1787
|
img: `${l ? "smp-image-interactable" : ""}`,
|
|
@@ -1792,10 +1792,10 @@ const Js = (r) => {
|
|
|
1792
1792
|
!a && l && (P.key === "Enter" || P.key === " ") && (P.preventDefault(), O());
|
|
1793
1793
|
};
|
|
1794
1794
|
return /* @__PURE__ */ g.jsx(g.Fragment, { children: v ? /* @__PURE__ */ g.jsx(
|
|
1795
|
-
|
|
1795
|
+
Pe,
|
|
1796
1796
|
{
|
|
1797
1797
|
src: r,
|
|
1798
|
-
fallback: () => /* @__PURE__ */ g.jsx(
|
|
1798
|
+
fallback: () => /* @__PURE__ */ g.jsx(Pe, { src: S, wrapper: "svg" }),
|
|
1799
1799
|
width: e || "1rem",
|
|
1800
1800
|
height: t || "1rem",
|
|
1801
1801
|
wrapper: "svg",
|
|
@@ -1808,7 +1808,7 @@ const Js = (r) => {
|
|
|
1808
1808
|
onKeyDown: y,
|
|
1809
1809
|
tabIndex: d
|
|
1810
1810
|
}
|
|
1811
|
-
) :
|
|
1811
|
+
) : x ? (
|
|
1812
1812
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1813
1813
|
/* @__PURE__ */ g.jsx(
|
|
1814
1814
|
"img",
|
|
@@ -1817,7 +1817,7 @@ const Js = (r) => {
|
|
|
1817
1817
|
width: e || "16px",
|
|
1818
1818
|
height: t || "auto",
|
|
1819
1819
|
alt: u,
|
|
1820
|
-
onError: () =>
|
|
1820
|
+
onError: () => p(S),
|
|
1821
1821
|
onClick: O,
|
|
1822
1822
|
className: _.img,
|
|
1823
1823
|
title: u,
|
|
@@ -1827,10 +1827,10 @@ const Js = (r) => {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
)
|
|
1829
1829
|
) : /* @__PURE__ */ g.jsx(
|
|
1830
|
-
|
|
1830
|
+
Pe,
|
|
1831
1831
|
{
|
|
1832
1832
|
src: w,
|
|
1833
|
-
fallback: () => /* @__PURE__ */ g.jsx(
|
|
1833
|
+
fallback: () => /* @__PURE__ */ g.jsx(Pe, { src: S, wrapper: "svg" }),
|
|
1834
1834
|
width: e || "1rem",
|
|
1835
1835
|
height: t || "1rem",
|
|
1836
1836
|
wrapper: "svg",
|
|
@@ -1860,7 +1860,7 @@ const Js = (r) => {
|
|
|
1860
1860
|
"smp-textfield-variant-notSelectable": "_smp-textfield-variant-notSelectable_mmttf_99",
|
|
1861
1861
|
"smp-textfield-disabled": "_smp-textfield-disabled_mmttf_109",
|
|
1862
1862
|
"smp-textfield-fullWidth": "_smp-textfield-fullWidth_mmttf_118"
|
|
1863
|
-
},
|
|
1863
|
+
}, je = ({
|
|
1864
1864
|
disabled: r,
|
|
1865
1865
|
bindValue: e,
|
|
1866
1866
|
icon: t,
|
|
@@ -1875,8 +1875,8 @@ const Js = (r) => {
|
|
|
1875
1875
|
rotatedShapeIcon: u = !1,
|
|
1876
1876
|
onShapeIconClick: d,
|
|
1877
1877
|
ref: m,
|
|
1878
|
-
inputRef:
|
|
1879
|
-
onKeyDown:
|
|
1878
|
+
inputRef: p,
|
|
1879
|
+
onKeyDown: x,
|
|
1880
1880
|
inputType: v = "text",
|
|
1881
1881
|
ariaLabel: w = "input field",
|
|
1882
1882
|
label: S,
|
|
@@ -1891,26 +1891,26 @@ const Js = (r) => {
|
|
|
1891
1891
|
inputMode: W = "text",
|
|
1892
1892
|
width: C
|
|
1893
1893
|
}) => {
|
|
1894
|
-
const j = We(), M = `${j}-helper`, B = O ? "danger" : l, H = O || l == "danger" ? "error" : o, z = _ || !!O, Z = (
|
|
1895
|
-
s == null || s(
|
|
1894
|
+
const j = We(), M = `${j}-helper`, B = O ? "danger" : l, H = O || l == "danger" ? "error" : o, z = _ || !!O, Z = (b) => {
|
|
1895
|
+
s == null || s(b.target.value);
|
|
1896
1896
|
}, I = {
|
|
1897
1897
|
wrapper: `${ve["smp-textfield-wrapper"]} ${P ? ve["smp-textfield-fullWidth"] : ""}`,
|
|
1898
1898
|
container: `${ve["smp-textfield"]} ${r ? ve["smp-textfield-disabled"] : ""} ${a ? ve["smp-textfield-placeholder"] : ""} ${c ? ve[`smp-textfield-${c}`] : ""} ${B ? ve[`smp-textfield-${B}`] : ""} ${y ? ve[`smp-textfield-${y}`] : ""} ${i ? "" : ve["smp-textfield-readOnly"]}`,
|
|
1899
1899
|
input: `${ve["smp-textfield-input"]}`
|
|
1900
1900
|
};
|
|
1901
1901
|
if (f && (f !== "notSelectable" || i)) {
|
|
1902
|
-
const
|
|
1903
|
-
|
|
1902
|
+
const b = ve[`smp-textfield-variant-${f}`];
|
|
1903
|
+
b && (I.container += ` ${b}`);
|
|
1904
1904
|
}
|
|
1905
|
-
const
|
|
1905
|
+
const h = C ? { "--smp-textField-width-base": C } : void 0;
|
|
1906
1906
|
return /* @__PURE__ */ g.jsxs("div", { className: I.wrapper, "data-component": E, children: [
|
|
1907
|
-
S && /* @__PURE__ */ g.jsx(
|
|
1907
|
+
S && /* @__PURE__ */ g.jsx(Oe, { label: S, disabled: r, htmlFor: j }),
|
|
1908
1908
|
/* @__PURE__ */ g.jsxs(
|
|
1909
1909
|
"div",
|
|
1910
1910
|
{
|
|
1911
1911
|
className: I.container,
|
|
1912
1912
|
ref: m,
|
|
1913
|
-
style:
|
|
1913
|
+
style: h,
|
|
1914
1914
|
children: [
|
|
1915
1915
|
t && /* @__PURE__ */ g.jsx(fe, { icon: t, disabled: r }),
|
|
1916
1916
|
/* @__PURE__ */ g.jsx(
|
|
@@ -1925,9 +1925,9 @@ const Js = (r) => {
|
|
|
1925
1925
|
className: I.input,
|
|
1926
1926
|
disabled: r,
|
|
1927
1927
|
readOnly: !i,
|
|
1928
|
-
onKeyDown:
|
|
1928
|
+
onKeyDown: x,
|
|
1929
1929
|
"aria-label": w,
|
|
1930
|
-
ref:
|
|
1930
|
+
ref: p,
|
|
1931
1931
|
"aria-describedby": z ? M : void 0,
|
|
1932
1932
|
min: T,
|
|
1933
1933
|
max: D,
|
|
@@ -1978,12 +1978,12 @@ function Pr({
|
|
|
1978
1978
|
offsetTop: m * e
|
|
1979
1979
|
});
|
|
1980
1980
|
const u = le((m) => {
|
|
1981
|
-
const
|
|
1982
|
-
a(
|
|
1981
|
+
const p = m.target.scrollTop;
|
|
1982
|
+
a(p);
|
|
1983
1983
|
}, []), d = (m) => {
|
|
1984
1984
|
if (!i.current) return;
|
|
1985
|
-
const
|
|
1986
|
-
|
|
1985
|
+
const p = m * e, x = p + e, v = i.current, w = v.scrollTop, S = w + t;
|
|
1986
|
+
p < w ? v.scrollTop = p : x > S && (v.scrollTop = x - t);
|
|
1987
1987
|
};
|
|
1988
1988
|
return {
|
|
1989
1989
|
virtualItems: f,
|
|
@@ -2034,7 +2034,7 @@ const Ze = {
|
|
|
2034
2034
|
isOpen: f
|
|
2035
2035
|
}) => {
|
|
2036
2036
|
var C;
|
|
2037
|
-
const [u, d] = q(""), m = 24, [
|
|
2037
|
+
const [u, d] = q(""), m = 24, [p, x] = q(
|
|
2038
2038
|
a !== null ? a : -1
|
|
2039
2039
|
), v = s !== void 0 ? s : e.length > wn, w = u ? e.filter(
|
|
2040
2040
|
(j) => j.label.toLowerCase().includes(u.toLowerCase())
|
|
@@ -2047,16 +2047,16 @@ const Ze = {
|
|
|
2047
2047
|
overscan: 5
|
|
2048
2048
|
});
|
|
2049
2049
|
ne(() => {
|
|
2050
|
-
a !== null && a !==
|
|
2050
|
+
a !== null && a !== p && x(a);
|
|
2051
2051
|
}, [a]), ne(() => {
|
|
2052
|
-
|
|
2053
|
-
}, [
|
|
2052
|
+
p >= 0 && p < w.length && P(p);
|
|
2053
|
+
}, [p, w]);
|
|
2054
2054
|
const E = (j) => {
|
|
2055
2055
|
if (j.key === "ArrowDown" || j.key === "ArrowUp") {
|
|
2056
2056
|
j.preventDefault();
|
|
2057
|
-
let M =
|
|
2058
|
-
j.key === "ArrowDown" ? M =
|
|
2059
|
-
} else j.key === "Enter" ?
|
|
2057
|
+
let M = p;
|
|
2058
|
+
j.key === "ArrowDown" ? M = p < w.length - 1 ? p + 1 : 0 : j.key === "ArrowUp" && (M = p > 0 ? p - 1 : w.length - 1), x(M);
|
|
2059
|
+
} else j.key === "Enter" ? p >= 0 && p < w.length && (c == null || c(w[p])) : j.key === "Escape" && (j.preventDefault(), j.stopPropagation());
|
|
2060
2060
|
l && l(j);
|
|
2061
2061
|
}, T = (j) => {
|
|
2062
2062
|
E(j);
|
|
@@ -2082,7 +2082,7 @@ const Ze = {
|
|
|
2082
2082
|
},
|
|
2083
2083
|
children: [
|
|
2084
2084
|
v && /* @__PURE__ */ g.jsx(
|
|
2085
|
-
|
|
2085
|
+
je,
|
|
2086
2086
|
{
|
|
2087
2087
|
bindValue: u,
|
|
2088
2088
|
placeholder: "Search...",
|
|
@@ -2100,7 +2100,7 @@ const Ze = {
|
|
|
2100
2100
|
role: "listbox",
|
|
2101
2101
|
"aria-label": "List",
|
|
2102
2102
|
onKeyDown: D,
|
|
2103
|
-
"aria-activedescendant":
|
|
2103
|
+
"aria-activedescendant": p >= 0 && p < w.length ? (C = w[p]) == null ? void 0 : C.id : void 0,
|
|
2104
2104
|
children: /* @__PURE__ */ g.jsx("div", { ...y, className: k.virtualScroll, children: _.map(({ item: j, index: M, offsetTop: B }) => {
|
|
2105
2105
|
const H = i.includes(j.id);
|
|
2106
2106
|
return (
|
|
@@ -2110,9 +2110,9 @@ const Ze = {
|
|
|
2110
2110
|
{
|
|
2111
2111
|
role: "option",
|
|
2112
2112
|
id: j.id,
|
|
2113
|
-
"aria-selected":
|
|
2113
|
+
"aria-selected": p === M ? "true" : "false",
|
|
2114
2114
|
tabIndex: -1,
|
|
2115
|
-
className: `${k.listItem} ${
|
|
2115
|
+
className: `${k.listItem} ${p === M ? "selected-item" : ""}`,
|
|
2116
2116
|
"aria-label": j.id + "-" + j.label,
|
|
2117
2117
|
style: {
|
|
2118
2118
|
height: `${m}px`,
|
|
@@ -2121,10 +2121,10 @@ const Ze = {
|
|
|
2121
2121
|
transform: `translateY(${B}px)`
|
|
2122
2122
|
},
|
|
2123
2123
|
onClick: () => {
|
|
2124
|
-
c == null || c(j),
|
|
2124
|
+
c == null || c(j), x(M);
|
|
2125
2125
|
},
|
|
2126
2126
|
children: [
|
|
2127
|
-
|
|
2127
|
+
Ve(j.id, j.label, t),
|
|
2128
2128
|
H && /* @__PURE__ */ g.jsx(fe, { icon: "check", width: 16 })
|
|
2129
2129
|
]
|
|
2130
2130
|
},
|
|
@@ -2144,15 +2144,15 @@ const Ze = {
|
|
|
2144
2144
|
...n
|
|
2145
2145
|
}) => {
|
|
2146
2146
|
const [s, a] = q(
|
|
2147
|
-
|
|
2147
|
+
Ve(e, t, r)
|
|
2148
2148
|
);
|
|
2149
2149
|
return ne(() => {
|
|
2150
2150
|
a(e);
|
|
2151
2151
|
}, [e]), ne(() => {
|
|
2152
2152
|
a(
|
|
2153
|
-
|
|
2153
|
+
Ve(e, t, r)
|
|
2154
2154
|
);
|
|
2155
|
-
}, [t, r]), /* @__PURE__ */ g.jsx(
|
|
2155
|
+
}, [t, r]), /* @__PURE__ */ g.jsx(je, { ...n, bindValue: s });
|
|
2156
2156
|
}, En = (r) => {
|
|
2157
2157
|
const e = ce(null);
|
|
2158
2158
|
return ne(() => () => {
|
|
@@ -2187,33 +2187,33 @@ const Ar = ({
|
|
|
2187
2187
|
_multiActiveIndex: d,
|
|
2188
2188
|
...m
|
|
2189
2189
|
}) => {
|
|
2190
|
-
const
|
|
2190
|
+
const p = ce(null), [x, v] = q(r), [w, S] = q(e), [_, O] = q(!1), [y, P] = q(t || []), [E, T] = q(0), [D, k] = q([r]), { anchorRef: W, targetRef: C, anchorWidth: j } = dt({
|
|
2191
2191
|
position: "bottom",
|
|
2192
2192
|
enabled: _
|
|
2193
2193
|
}), M = le(() => {
|
|
2194
|
-
var
|
|
2195
|
-
O(!1), (
|
|
2194
|
+
var h;
|
|
2195
|
+
O(!1), (h = p == null ? void 0 : p.current) == null || h.focus();
|
|
2196
2196
|
}, []);
|
|
2197
|
-
|
|
2198
|
-
const B = En(400), H = (
|
|
2199
|
-
|
|
2200
|
-
const
|
|
2201
|
-
P(
|
|
2202
|
-
}) : M(), v(
|
|
2203
|
-
}, z = (
|
|
2204
|
-
l ? (v(""), S("")) : (v(
|
|
2205
|
-
const
|
|
2206
|
-
T(
|
|
2207
|
-
}, Z = (
|
|
2208
|
-
|
|
2209
|
-
}, I = (
|
|
2210
|
-
if ((
|
|
2211
|
-
const
|
|
2212
|
-
T(
|
|
2213
|
-
}
|
|
2214
|
-
switch (
|
|
2197
|
+
Ce(C, () => M());
|
|
2198
|
+
const B = En(400), H = (h) => {
|
|
2199
|
+
h.length >= a ? c && u && B(async () => {
|
|
2200
|
+
const b = await u(c, h);
|
|
2201
|
+
P(b), T(b.length > 0 ? 0 : -1), O(!0);
|
|
2202
|
+
}) : M(), v(h), S(e), l || f == null || f(h, e);
|
|
2203
|
+
}, z = (h) => {
|
|
2204
|
+
l ? (v(""), S("")) : (v(h.id), S(h.label)), f == null || f(h.id, h.label);
|
|
2205
|
+
const b = y.findIndex((R) => R.id === h.id);
|
|
2206
|
+
T(b), k([h.id]), M();
|
|
2207
|
+
}, Z = (h) => {
|
|
2208
|
+
h.key === "Escape" && (M(), T(-1));
|
|
2209
|
+
}, I = (h) => {
|
|
2210
|
+
if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), _)) {
|
|
2211
|
+
const b = h.key === "ArrowDown" ? (E + 1) % y.length : (E - 1 + y.length) % y.length;
|
|
2212
|
+
T(b);
|
|
2213
|
+
}
|
|
2214
|
+
switch (h.key) {
|
|
2215
2215
|
case "Enter":
|
|
2216
|
-
E >= 0 && E < y.length ? z(y[E]) : l && (f == null || f(
|
|
2216
|
+
E >= 0 && E < y.length ? z(y[E]) : l && (f == null || f(x, ""), M(), v(""), S(""));
|
|
2217
2217
|
break;
|
|
2218
2218
|
case "Escape":
|
|
2219
2219
|
M(), T(-1);
|
|
@@ -2225,14 +2225,14 @@ const Ar = ({
|
|
|
2225
2225
|
At,
|
|
2226
2226
|
{
|
|
2227
2227
|
...m,
|
|
2228
|
-
bindValue:
|
|
2228
|
+
bindValue: x,
|
|
2229
2229
|
optionalDisplayValue: w,
|
|
2230
2230
|
displayMode: n,
|
|
2231
2231
|
isEditable: i,
|
|
2232
2232
|
shapeIcon: "magnify",
|
|
2233
2233
|
placeholder: o,
|
|
2234
2234
|
ref: W,
|
|
2235
|
-
inputRef:
|
|
2235
|
+
inputRef: p,
|
|
2236
2236
|
onChange: H,
|
|
2237
2237
|
onKeyDown: I,
|
|
2238
2238
|
"aria-autocomplete": "list"
|
|
@@ -2264,7 +2264,7 @@ const Ar = ({
|
|
|
2264
2264
|
primary: "onPrimary",
|
|
2265
2265
|
danger: "onDanger",
|
|
2266
2266
|
base: "base"
|
|
2267
|
-
})[r],
|
|
2267
|
+
})[r], Ae = ({
|
|
2268
2268
|
label: r,
|
|
2269
2269
|
bindValue: e,
|
|
2270
2270
|
onClick: t,
|
|
@@ -2279,8 +2279,8 @@ const Ar = ({
|
|
|
2279
2279
|
fullWidth: u = !1,
|
|
2280
2280
|
loading: d = !1,
|
|
2281
2281
|
justify: m = "center",
|
|
2282
|
-
title:
|
|
2283
|
-
optionalDisplayValue:
|
|
2282
|
+
title: p,
|
|
2283
|
+
optionalDisplayValue: x
|
|
2284
2284
|
}) => {
|
|
2285
2285
|
const v = {
|
|
2286
2286
|
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${m}`
|
|
@@ -2294,7 +2294,7 @@ const Ar = ({
|
|
|
2294
2294
|
"aria-label": n,
|
|
2295
2295
|
disabled: a,
|
|
2296
2296
|
"aria-busy": d,
|
|
2297
|
-
title:
|
|
2297
|
+
title: p || r || x,
|
|
2298
2298
|
children: d ? /* @__PURE__ */ g.jsx(fe, { icon: "spinner", state: ir(o), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
2299
2299
|
s && l && /* @__PURE__ */ g.jsx(
|
|
2300
2300
|
fe,
|
|
@@ -2306,7 +2306,7 @@ const Ar = ({
|
|
|
2306
2306
|
height: ar(i)
|
|
2307
2307
|
}
|
|
2308
2308
|
),
|
|
2309
|
-
f && /* @__PURE__ */ g.jsx("span", { children:
|
|
2309
|
+
f && /* @__PURE__ */ g.jsx("span", { children: x || e })
|
|
2310
2310
|
] })
|
|
2311
2311
|
}
|
|
2312
2312
|
);
|
|
@@ -2326,18 +2326,18 @@ const Ar = ({
|
|
|
2326
2326
|
onClick: d,
|
|
2327
2327
|
onOptionsRequest: m
|
|
2328
2328
|
}) => {
|
|
2329
|
-
const [
|
|
2329
|
+
const [p, x] = q(r);
|
|
2330
2330
|
ne(() => {
|
|
2331
|
-
!
|
|
2331
|
+
!p && m && e && m(e, void 0).then((S) => x(S)).catch((S) => {
|
|
2332
2332
|
console.error(
|
|
2333
2333
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
2334
2334
|
S
|
|
2335
2335
|
);
|
|
2336
2336
|
});
|
|
2337
|
-
}, [
|
|
2337
|
+
}, [p, e, m]);
|
|
2338
2338
|
const v = {
|
|
2339
2339
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
2340
|
-
}, w =
|
|
2340
|
+
}, w = p == null ? void 0 : p.map((S, _) => {
|
|
2341
2341
|
const O = {
|
|
2342
2342
|
bindValue: S.id,
|
|
2343
2343
|
optionalDisplayValue: S.label,
|
|
@@ -2355,7 +2355,7 @@ const Ar = ({
|
|
|
2355
2355
|
d == null || d(S.id, S.fun);
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
|
-
return /* @__PURE__ */ g.jsx(
|
|
2358
|
+
return /* @__PURE__ */ g.jsx(Ae, { ...O }, `button-${_}`);
|
|
2359
2359
|
});
|
|
2360
2360
|
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: v.container, children: w });
|
|
2361
2361
|
}, On = {
|
|
@@ -2376,7 +2376,7 @@ const Ar = ({
|
|
|
2376
2376
|
wrapper: `${On["smp-checkbox-wrapper"]}`
|
|
2377
2377
|
};
|
|
2378
2378
|
return /* @__PURE__ */ g.jsxs("div", { className: f.wrapper, "data-component": e, children: [
|
|
2379
|
-
n && /* @__PURE__ */ g.jsx(
|
|
2379
|
+
n && /* @__PURE__ */ g.jsx(Oe, { label: n, disabled: t, htmlFor: c }),
|
|
2380
2380
|
/* @__PURE__ */ g.jsx(
|
|
2381
2381
|
"input",
|
|
2382
2382
|
{
|
|
@@ -2395,7 +2395,7 @@ const Ar = ({
|
|
|
2395
2395
|
title: "h3",
|
|
2396
2396
|
body: "h6",
|
|
2397
2397
|
label: "label"
|
|
2398
|
-
},
|
|
2398
|
+
}, Le = ({
|
|
2399
2399
|
variant: r = "body",
|
|
2400
2400
|
bindValue: e,
|
|
2401
2401
|
color: t,
|
|
@@ -2428,16 +2428,16 @@ const Ar = ({
|
|
|
2428
2428
|
container: `${["smp-chips-container"]}`,
|
|
2429
2429
|
element: "smp-chips-element"
|
|
2430
2430
|
}, f = (m) => {
|
|
2431
|
-
n == null || n(r.filter((
|
|
2431
|
+
n == null || n(r.filter((p, x) => x !== m));
|
|
2432
2432
|
}, u = (m) => {
|
|
2433
2433
|
c(m);
|
|
2434
2434
|
}, d = (m) => {
|
|
2435
2435
|
if (o === null || o === m) return;
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2436
|
+
const p = [...r], [x] = p.splice(o, 1);
|
|
2437
|
+
p.splice(m, 0, x), n == null || n(p), c(null);
|
|
2438
2438
|
};
|
|
2439
|
-
return /* @__PURE__ */ g.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((m,
|
|
2440
|
-
const
|
|
2439
|
+
return /* @__PURE__ */ g.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((m, p) => {
|
|
2440
|
+
const x = Ve(
|
|
2441
2441
|
m.bindValue,
|
|
2442
2442
|
m.optionalDisplayValue,
|
|
2443
2443
|
t
|
|
@@ -2447,34 +2447,34 @@ const Ar = ({
|
|
|
2447
2447
|
className: l.element,
|
|
2448
2448
|
role: "listitem",
|
|
2449
2449
|
draggable: i,
|
|
2450
|
-
onDragStart: () => u(
|
|
2450
|
+
onDragStart: () => u(p),
|
|
2451
2451
|
onDragOver: (S) => i && S.preventDefault(),
|
|
2452
|
-
onDrop: () => i && d(
|
|
2452
|
+
onDrop: () => i && d(p),
|
|
2453
2453
|
style: {
|
|
2454
2454
|
"--smp-chips-backgroundColor-base": a
|
|
2455
2455
|
},
|
|
2456
2456
|
children: [
|
|
2457
2457
|
i && /* @__PURE__ */ g.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2458
|
-
/* @__PURE__ */ g.jsx(
|
|
2458
|
+
/* @__PURE__ */ g.jsx(Le, { variant: "label", bindValue: x, color: s }),
|
|
2459
2459
|
e && /* @__PURE__ */ g.jsx(
|
|
2460
2460
|
fe,
|
|
2461
2461
|
{
|
|
2462
2462
|
icon: "close",
|
|
2463
2463
|
isInteractable: !0,
|
|
2464
|
-
onClick: () => f(
|
|
2464
|
+
onClick: () => f(p),
|
|
2465
2465
|
color: s
|
|
2466
2466
|
}
|
|
2467
2467
|
)
|
|
2468
2468
|
]
|
|
2469
2469
|
},
|
|
2470
|
-
`chip-${
|
|
2471
|
-
), w = i &&
|
|
2470
|
+
`chip-${p}`
|
|
2471
|
+
), w = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
2472
2472
|
fe,
|
|
2473
2473
|
{
|
|
2474
2474
|
icon: "chevron-right",
|
|
2475
2475
|
color: s
|
|
2476
2476
|
},
|
|
2477
|
-
`separator-${
|
|
2477
|
+
`separator-${p}`
|
|
2478
2478
|
) : null;
|
|
2479
2479
|
return [v, w].filter(Boolean);
|
|
2480
2480
|
}) });
|
|
@@ -2531,17 +2531,17 @@ const Dn = ({
|
|
|
2531
2531
|
multiActiveIndex: l,
|
|
2532
2532
|
...f
|
|
2533
2533
|
}) => {
|
|
2534
|
-
const u = ce(null), [d, m] = q(!1), [
|
|
2534
|
+
const u = ce(null), [d, m] = q(!1), [p, x] = q(t), [v, w] = q(-1), [S, _] = q([r]), O = We(), { anchorRef: y, targetRef: P, anchorWidth: E } = dt({
|
|
2535
2535
|
position: "bottom",
|
|
2536
2536
|
enabled: d
|
|
2537
2537
|
}), T = le(() => {
|
|
2538
2538
|
var j;
|
|
2539
2539
|
m(!1), (j = u == null ? void 0 : u.current) == null || j.focus();
|
|
2540
2540
|
}, []);
|
|
2541
|
-
|
|
2541
|
+
Ce(P, () => T()), kt(d, P);
|
|
2542
2542
|
const D = (j) => {
|
|
2543
2543
|
e == null || e(j.id, j.label);
|
|
2544
|
-
const M =
|
|
2544
|
+
const M = p.findIndex((B) => B.id === j.id);
|
|
2545
2545
|
w(M), _([j.id]), T();
|
|
2546
2546
|
}, k = (j) => {
|
|
2547
2547
|
j.key === "Escape" && (T(), w(-1));
|
|
@@ -2549,7 +2549,7 @@ const Dn = ({
|
|
|
2549
2549
|
(j.key === "ArrowDown" || j.key === "ArrowUp") && (j.preventDefault(), C());
|
|
2550
2550
|
}, C = () => {
|
|
2551
2551
|
o && c && c(o, void 0).then((j) => {
|
|
2552
|
-
|
|
2552
|
+
x(j), w(j.length > 0 ? 0 : -1), m(!0);
|
|
2553
2553
|
});
|
|
2554
2554
|
};
|
|
2555
2555
|
return /* @__PURE__ */ g.jsxs(
|
|
@@ -2583,7 +2583,7 @@ const Dn = ({
|
|
|
2583
2583
|
Cr,
|
|
2584
2584
|
{
|
|
2585
2585
|
id: O,
|
|
2586
|
-
options:
|
|
2586
|
+
options: p,
|
|
2587
2587
|
displayMode: i,
|
|
2588
2588
|
ref: P,
|
|
2589
2589
|
isOpen: d,
|
|
@@ -2597,7 +2597,7 @@ const Dn = ({
|
|
|
2597
2597
|
]
|
|
2598
2598
|
}
|
|
2599
2599
|
);
|
|
2600
|
-
}, K = (r) => typeof r == "string",
|
|
2600
|
+
}, K = (r) => typeof r == "string", Me = () => {
|
|
2601
2601
|
let r, e;
|
|
2602
2602
|
const t = new Promise((n, s) => {
|
|
2603
2603
|
r = n, e = s;
|
|
@@ -2607,7 +2607,7 @@ const Dn = ({
|
|
|
2607
2607
|
r.forEach((n) => {
|
|
2608
2608
|
e[n] && (t[n] = e[n]);
|
|
2609
2609
|
});
|
|
2610
|
-
}, $n = /###/g, lr = (r) => r && r.indexOf("###") > -1 ? r.replace($n, ".") : r, cr = (r) => !r || K(r),
|
|
2610
|
+
}, $n = /###/g, lr = (r) => r && r.indexOf("###") > -1 ? r.replace($n, ".") : r, cr = (r) => !r || K(r), Fe = (r, e, t) => {
|
|
2611
2611
|
const n = K(e) ? e.split(".") : e;
|
|
2612
2612
|
let s = 0;
|
|
2613
2613
|
for (; s < n.length - 1; ) {
|
|
@@ -2623,26 +2623,26 @@ const Dn = ({
|
|
|
2623
2623
|
const {
|
|
2624
2624
|
obj: n,
|
|
2625
2625
|
k: s
|
|
2626
|
-
} =
|
|
2626
|
+
} = Fe(r, e, Object);
|
|
2627
2627
|
if (n !== void 0 || e.length === 1) {
|
|
2628
2628
|
n[s] = t;
|
|
2629
2629
|
return;
|
|
2630
2630
|
}
|
|
2631
|
-
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o =
|
|
2631
|
+
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = Fe(r, i, Object);
|
|
2632
2632
|
for (; o.obj === void 0 && i.length; )
|
|
2633
|
-
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o =
|
|
2633
|
+
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = Fe(r, i, Object), o != null && o.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
2634
2634
|
o.obj[`${o.k}.${a}`] = t;
|
|
2635
2635
|
}, Pn = (r, e, t, n) => {
|
|
2636
2636
|
const {
|
|
2637
2637
|
obj: s,
|
|
2638
2638
|
k: a
|
|
2639
|
-
} =
|
|
2639
|
+
} = Fe(r, e, Object);
|
|
2640
2640
|
s[a] = s[a] || [], s[a].push(t);
|
|
2641
2641
|
}, ot = (r, e) => {
|
|
2642
2642
|
const {
|
|
2643
2643
|
obj: t,
|
|
2644
2644
|
k: n
|
|
2645
|
-
} =
|
|
2645
|
+
} = Fe(r, e);
|
|
2646
2646
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2647
2647
|
return t[n];
|
|
2648
2648
|
}, Cn = (r, e, t) => {
|
|
@@ -2652,7 +2652,7 @@ const Dn = ({
|
|
|
2652
2652
|
for (const n in e)
|
|
2653
2653
|
n !== "__proto__" && n !== "constructor" && (n in r ? K(r[n]) || r[n] instanceof String || K(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Lr(r[n], e[n], t) : r[n] = e[n]);
|
|
2654
2654
|
return r;
|
|
2655
|
-
},
|
|
2655
|
+
}, De = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2656
2656
|
var An = {
|
|
2657
2657
|
"&": "&",
|
|
2658
2658
|
"<": "<",
|
|
@@ -2937,28 +2937,28 @@ class ct extends ht {
|
|
|
2937
2937
|
usedParams: this.getUsedParamsDetails(s)
|
|
2938
2938
|
} : o;
|
|
2939
2939
|
const m = this.resolve(e, s);
|
|
2940
|
-
let
|
|
2941
|
-
const
|
|
2940
|
+
let p = m == null ? void 0 : m.res;
|
|
2941
|
+
const x = (m == null ? void 0 : m.usedKey) || o, v = (m == null ? void 0 : m.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], S = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, _ = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !K(s.count), y = ct.hasDefaultValue(s), P = O ? this.pluralResolver.getSuffix(u, s.count, s) : "", E = s.ordinal && O ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2942
2942
|
ordinal: !1
|
|
2943
2943
|
}) : "", T = O && !s.ordinal && s.count === 0, D = T && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${P}`] || s[`defaultValue${E}`] || s.defaultValue;
|
|
2944
|
-
let k =
|
|
2945
|
-
_ && !
|
|
2944
|
+
let k = p;
|
|
2945
|
+
_ && !p && y && (k = D);
|
|
2946
2946
|
const W = pr(k), C = Object.prototype.toString.apply(k);
|
|
2947
2947
|
if (_ && k && W && w.indexOf(C) < 0 && !(K(S) && Array.isArray(k))) {
|
|
2948
2948
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2949
2949
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2950
|
-
const j = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
2950
|
+
const j = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, k, {
|
|
2951
2951
|
...s,
|
|
2952
2952
|
ns: c
|
|
2953
2953
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2954
2954
|
return a ? (m.res = j, m.usedParams = this.getUsedParamsDetails(s), m) : j;
|
|
2955
2955
|
}
|
|
2956
2956
|
if (i) {
|
|
2957
|
-
const j = Array.isArray(k), M = j ? [] : {}, B = j ? v :
|
|
2957
|
+
const j = Array.isArray(k), M = j ? [] : {}, B = j ? v : x;
|
|
2958
2958
|
for (const H in k)
|
|
2959
2959
|
if (Object.prototype.hasOwnProperty.call(k, H)) {
|
|
2960
2960
|
const z = `${B}${i}${H}`;
|
|
2961
|
-
y && !
|
|
2961
|
+
y && !p ? M[H] = this.translate(z, {
|
|
2962
2962
|
...s,
|
|
2963
2963
|
defaultValue: pr(D) ? D[H] : void 0,
|
|
2964
2964
|
joinArrays: !1,
|
|
@@ -2969,43 +2969,43 @@ class ct extends ht {
|
|
|
2969
2969
|
ns: c
|
|
2970
2970
|
}), M[H] === z && (M[H] = k[H]);
|
|
2971
2971
|
}
|
|
2972
|
-
|
|
2972
|
+
p = M;
|
|
2973
2973
|
}
|
|
2974
|
-
} else if (_ && K(S) && Array.isArray(
|
|
2975
|
-
|
|
2974
|
+
} else if (_ && K(S) && Array.isArray(p))
|
|
2975
|
+
p = p.join(S), p && (p = this.extendTranslation(p, e, s, n));
|
|
2976
2976
|
else {
|
|
2977
2977
|
let j = !1, M = !1;
|
|
2978
|
-
!this.isValidLookup(
|
|
2979
|
-
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 :
|
|
2978
|
+
!this.isValidLookup(p) && y && (j = !0, p = D), this.isValidLookup(p) || (M = !0, p = o);
|
|
2979
|
+
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && M ? void 0 : p, z = y && D !== p && this.options.updateMissing;
|
|
2980
2980
|
if (M || j || z) {
|
|
2981
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, l, o, z ? D :
|
|
2982
|
-
const
|
|
2981
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, l, o, z ? D : p), i) {
|
|
2982
|
+
const b = this.resolve(o, {
|
|
2983
2983
|
...s,
|
|
2984
2984
|
keySeparator: !1
|
|
2985
2985
|
});
|
|
2986
|
-
|
|
2986
|
+
b && b.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.");
|
|
2987
2987
|
}
|
|
2988
2988
|
let Z = [];
|
|
2989
2989
|
const I = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2990
2990
|
if (this.options.saveMissingTo === "fallback" && I && I[0])
|
|
2991
|
-
for (let
|
|
2992
|
-
Z.push(I[
|
|
2991
|
+
for (let b = 0; b < I.length; b++)
|
|
2992
|
+
Z.push(I[b]);
|
|
2993
2993
|
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
|
|
2994
|
-
const
|
|
2994
|
+
const h = (b, R, A) => {
|
|
2995
2995
|
var L;
|
|
2996
|
-
const $ = y && A !==
|
|
2997
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2996
|
+
const $ = y && A !== p ? A : H;
|
|
2997
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(b, l, R, $, z, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(b, l, R, $, z, s), this.emit("missingKey", b, l, R, p);
|
|
2998
2998
|
};
|
|
2999
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && O ? Z.forEach((
|
|
3000
|
-
const R = this.pluralResolver.getSuffixes(
|
|
2999
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && O ? Z.forEach((b) => {
|
|
3000
|
+
const R = this.pluralResolver.getSuffixes(b, s);
|
|
3001
3001
|
T && s[`defaultValue${this.options.pluralSeparator}zero`] && R.indexOf(`${this.options.pluralSeparator}zero`) < 0 && R.push(`${this.options.pluralSeparator}zero`), R.forEach((A) => {
|
|
3002
|
-
|
|
3002
|
+
h([b], o + A, s[`defaultValue${A}`] || D);
|
|
3003
3003
|
});
|
|
3004
|
-
}) :
|
|
3004
|
+
}) : h(Z, o, D));
|
|
3005
3005
|
}
|
|
3006
|
-
|
|
3006
|
+
p = this.extendTranslation(p, e, s, m, n), M && p === o && this.options.appendNamespaceToMissingKey && (p = `${l}${f}${o}`), (M || j) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${f}${o}` : o, j ? p : void 0, s));
|
|
3007
3007
|
}
|
|
3008
|
-
return a ? (m.res =
|
|
3008
|
+
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
3009
3009
|
}
|
|
3010
3010
|
extendTranslation(e, t, n, s, a) {
|
|
3011
3011
|
var c, l;
|
|
@@ -3035,8 +3035,8 @@ class ct extends ht {
|
|
|
3035
3035
|
...this.options.interpolation.defaultVariables,
|
|
3036
3036
|
...d
|
|
3037
3037
|
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), f) {
|
|
3038
|
-
const m = e.match(this.interpolator.nestingRegexp),
|
|
3039
|
-
u <
|
|
3038
|
+
const m = e.match(this.interpolator.nestingRegexp), p = m && m.length;
|
|
3039
|
+
u < p && (n.nest = !1);
|
|
3040
3040
|
}
|
|
3041
3041
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
3042
3042
|
}
|
|
@@ -3057,10 +3057,10 @@ class ct extends ht {
|
|
|
3057
3057
|
s = f;
|
|
3058
3058
|
let u = l.namespaces;
|
|
3059
3059
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
3060
|
-
const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0,
|
|
3060
|
+
const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
3061
3061
|
u.forEach((v) => {
|
|
3062
3062
|
var w, S;
|
|
3063
|
-
this.isValidLookup(n) || (o = v, !dr[`${
|
|
3063
|
+
this.isValidLookup(n) || (o = v, !dr[`${x[0]}-${v}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((S = this.utils) != null && S.hasLoadedNamespace(o)) && (dr[`${x[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${x.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!!!")), x.forEach((_) => {
|
|
3064
3064
|
var P;
|
|
3065
3065
|
if (this.isValidLookup(n)) return;
|
|
3066
3066
|
i = _;
|
|
@@ -3071,7 +3071,7 @@ class ct extends ht {
|
|
|
3071
3071
|
let E;
|
|
3072
3072
|
d && (E = this.pluralResolver.getSuffix(_, t.count, t));
|
|
3073
3073
|
const T = `${this.options.pluralSeparator}zero`, D = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
3074
|
-
if (d && (O.push(f + E), t.ordinal && E.indexOf(D) === 0 && O.push(f + E.replace(D, this.options.pluralSeparator)), m && O.push(f + T)),
|
|
3074
|
+
if (d && (O.push(f + E), t.ordinal && E.indexOf(D) === 0 && O.push(f + E.replace(D, this.options.pluralSeparator)), m && O.push(f + T)), p) {
|
|
3075
3075
|
const k = `${f}${this.options.contextSeparator}${t.context}`;
|
|
3076
3076
|
O.push(k), d && (O.push(k + E), t.ordinal && E.indexOf(D) === 0 && O.push(k + E.replace(D, this.options.pluralSeparator)), m && O.push(k + T));
|
|
3077
3077
|
}
|
|
@@ -3269,13 +3269,13 @@ class Yn {
|
|
|
3269
3269
|
unescapePrefix: u,
|
|
3270
3270
|
nestingPrefix: d,
|
|
3271
3271
|
nestingPrefixEscaped: m,
|
|
3272
|
-
nestingSuffix:
|
|
3273
|
-
nestingSuffixEscaped:
|
|
3272
|
+
nestingSuffix: p,
|
|
3273
|
+
nestingSuffixEscaped: x,
|
|
3274
3274
|
nestingOptionsSeparator: v,
|
|
3275
3275
|
maxReplaces: w,
|
|
3276
3276
|
alwaysFormat: S
|
|
3277
3277
|
} = e.interpolation;
|
|
3278
|
-
this.escape = t !== void 0 ? t : Ln, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ?
|
|
3278
|
+
this.escape = t !== void 0 ? t : Ln, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? De(a) : i || "{{", this.suffix = o ? De(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? De(d) : m || De("$t("), this.nestingSuffix = p ? De(p) : x || De(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = S !== void 0 ? S : !1, this.resetRegExp();
|
|
3279
3279
|
}
|
|
3280
3280
|
reset() {
|
|
3281
3281
|
this.options && this.init(this.options);
|
|
@@ -3287,16 +3287,16 @@ class Yn {
|
|
|
3287
3287
|
interpolate(e, t, n, s) {
|
|
3288
3288
|
var m;
|
|
3289
3289
|
let a, i, o;
|
|
3290
|
-
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (
|
|
3291
|
-
if (
|
|
3292
|
-
const S = yr(t, c,
|
|
3290
|
+
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (p) => {
|
|
3291
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3292
|
+
const S = yr(t, c, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3293
3293
|
return this.alwaysFormat ? this.format(S, void 0, n, {
|
|
3294
3294
|
...s,
|
|
3295
3295
|
...t,
|
|
3296
|
-
interpolationkey:
|
|
3296
|
+
interpolationkey: p
|
|
3297
3297
|
}) : S;
|
|
3298
3298
|
}
|
|
3299
|
-
const
|
|
3299
|
+
const x = p.split(this.formatSeparator), v = x.shift().trim(), w = x.join(this.formatSeparator).trim();
|
|
3300
3300
|
return this.format(yr(t, c, v, this.options.keySeparator, this.options.ignoreJSONStructure), w, n, {
|
|
3301
3301
|
...s,
|
|
3302
3302
|
...t,
|
|
@@ -3307,27 +3307,27 @@ class Yn {
|
|
|
3307
3307
|
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((m = s == null ? void 0 : s.interpolation) == null ? void 0 : m.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3308
3308
|
return [{
|
|
3309
3309
|
regex: this.regexpUnescape,
|
|
3310
|
-
safeValue: (
|
|
3310
|
+
safeValue: (p) => Tt(p)
|
|
3311
3311
|
}, {
|
|
3312
3312
|
regex: this.regexp,
|
|
3313
|
-
safeValue: (
|
|
3314
|
-
}].forEach((
|
|
3315
|
-
for (o = 0; a =
|
|
3316
|
-
const
|
|
3317
|
-
if (i = l(
|
|
3313
|
+
safeValue: (p) => this.escapeValue ? Tt(this.escape(p)) : Tt(p)
|
|
3314
|
+
}].forEach((p) => {
|
|
3315
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
3316
|
+
const x = a[1].trim();
|
|
3317
|
+
if (i = l(x), i === void 0)
|
|
3318
3318
|
if (typeof f == "function") {
|
|
3319
3319
|
const w = f(e, a, s);
|
|
3320
3320
|
i = K(w) ? w : "";
|
|
3321
|
-
} else if (s && Object.prototype.hasOwnProperty.call(s,
|
|
3321
|
+
} else if (s && Object.prototype.hasOwnProperty.call(s, x))
|
|
3322
3322
|
i = "";
|
|
3323
3323
|
else if (u) {
|
|
3324
3324
|
i = a[0];
|
|
3325
3325
|
continue;
|
|
3326
3326
|
} else
|
|
3327
|
-
this.logger.warn(`missed to pass in variable ${
|
|
3327
|
+
this.logger.warn(`missed to pass in variable ${x} for interpolating ${e}`), i = "";
|
|
3328
3328
|
else !K(i) && !this.useRawValueToEscape && (i = or(i));
|
|
3329
|
-
const v =
|
|
3330
|
-
if (e = e.replace(a[0], v), u ? (
|
|
3329
|
+
const v = p.safeValue(i);
|
|
3330
|
+
if (e = e.replace(a[0], v), u ? (p.regex.lastIndex += i.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3331
3331
|
break;
|
|
3332
3332
|
}
|
|
3333
3333
|
}), e;
|
|
@@ -3340,15 +3340,15 @@ class Yn {
|
|
|
3340
3340
|
const u = c.split(new RegExp(`${f}[ ]*{`));
|
|
3341
3341
|
let d = `{${u[1]}`;
|
|
3342
3342
|
c = u[0], d = this.interpolate(d, i);
|
|
3343
|
-
const m = d.match(/'/g),
|
|
3344
|
-
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !
|
|
3343
|
+
const m = d.match(/'/g), p = d.match(/"/g);
|
|
3344
|
+
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !p || p.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
3345
3345
|
try {
|
|
3346
3346
|
i = JSON.parse(d), l && (i = {
|
|
3347
3347
|
...l,
|
|
3348
3348
|
...i
|
|
3349
3349
|
});
|
|
3350
|
-
} catch (
|
|
3351
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`,
|
|
3350
|
+
} catch (x) {
|
|
3351
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, x), `${c}${f}${d}`;
|
|
3352
3352
|
}
|
|
3353
3353
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
|
|
3354
3354
|
};
|
|
@@ -3466,8 +3466,8 @@ class Bn {
|
|
|
3466
3466
|
if (this.formats[l]) {
|
|
3467
3467
|
let d = o;
|
|
3468
3468
|
try {
|
|
3469
|
-
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {},
|
|
3470
|
-
d = this.formats[l](o,
|
|
3469
|
+
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {}, p = m.locale || m.lng || s.locale || s.lng || n;
|
|
3470
|
+
d = this.formats[l](o, p, {
|
|
3471
3471
|
...f,
|
|
3472
3472
|
...s,
|
|
3473
3473
|
...m
|
|
@@ -3602,16 +3602,16 @@ class Gn extends ht {
|
|
|
3602
3602
|
const m = {
|
|
3603
3603
|
...i,
|
|
3604
3604
|
isUpdate: a
|
|
3605
|
-
},
|
|
3606
|
-
if (
|
|
3605
|
+
}, p = this.backend.create.bind(this.backend);
|
|
3606
|
+
if (p.length < 6)
|
|
3607
3607
|
try {
|
|
3608
|
-
let
|
|
3609
|
-
|
|
3610
|
-
} catch (
|
|
3611
|
-
o(
|
|
3608
|
+
let x;
|
|
3609
|
+
p.length === 5 ? x = p(e, t, n, s, m) : x = p(e, t, n, s), x && typeof x.then == "function" ? x.then((v) => o(null, v)).catch(o) : o(null, x);
|
|
3610
|
+
} catch (x) {
|
|
3611
|
+
o(x);
|
|
3612
3612
|
}
|
|
3613
3613
|
else
|
|
3614
|
-
|
|
3614
|
+
p(e, t, n, s, o, m);
|
|
3615
3615
|
}
|
|
3616
3616
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3617
3617
|
}
|
|
@@ -3736,7 +3736,7 @@ class Ue extends ht {
|
|
|
3736
3736
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
3737
3737
|
this[l] = (...f) => (this.store[l](...f), this);
|
|
3738
3738
|
});
|
|
3739
|
-
const o =
|
|
3739
|
+
const o = Me(), c = () => {
|
|
3740
3740
|
const l = (f, u) => {
|
|
3741
3741
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(u), t(f, u);
|
|
3742
3742
|
};
|
|
@@ -3764,7 +3764,7 @@ class Ue extends ht {
|
|
|
3764
3764
|
n(null);
|
|
3765
3765
|
}
|
|
3766
3766
|
reloadResources(e, t, n) {
|
|
3767
|
-
const s =
|
|
3767
|
+
const s = Me();
|
|
3768
3768
|
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) => {
|
|
3769
3769
|
s.resolve(), n(a);
|
|
3770
3770
|
}), s;
|
|
@@ -3788,7 +3788,7 @@ class Ue extends ht {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
changeLanguage(e, t) {
|
|
3790
3790
|
this.isLanguageChangingTo = e;
|
|
3791
|
-
const n =
|
|
3791
|
+
const n = Me();
|
|
3792
3792
|
this.emit("languageChanging", e);
|
|
3793
3793
|
const s = (o) => {
|
|
3794
3794
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -3845,7 +3845,7 @@ class Ue extends ht {
|
|
|
3845
3845
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(n, e) && (!s || i(a, e)));
|
|
3846
3846
|
}
|
|
3847
3847
|
loadNamespaces(e, t) {
|
|
3848
|
-
const n =
|
|
3848
|
+
const n = Me();
|
|
3849
3849
|
return this.options.ns ? (K(e) && (e = [e]), e.forEach((s) => {
|
|
3850
3850
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3851
3851
|
}), this.loadResources((s) => {
|
|
@@ -3853,7 +3853,7 @@ class Ue extends ht {
|
|
|
3853
3853
|
}), n) : (t && t(), Promise.resolve());
|
|
3854
3854
|
}
|
|
3855
3855
|
loadLanguages(e, t) {
|
|
3856
|
-
const n =
|
|
3856
|
+
const n = Me();
|
|
3857
3857
|
K(e) && (e = [e]);
|
|
3858
3858
|
const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
3859
3859
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
|
|
@@ -4035,7 +4035,7 @@ ie.init({
|
|
|
4035
4035
|
}
|
|
4036
4036
|
});
|
|
4037
4037
|
const us = (r, e, t, n) => ie.format(r, e, t || ie.language, n), fs = (r, e) => ie.t(r, e);
|
|
4038
|
-
function
|
|
4038
|
+
function ke() {
|
|
4039
4039
|
const r = le(
|
|
4040
4040
|
(n, s, a, i) => us(n, s, a || void 0, i),
|
|
4041
4041
|
[]
|
|
@@ -4056,7 +4056,7 @@ function ps({
|
|
|
4056
4056
|
initialValue: n,
|
|
4057
4057
|
targetRef: s
|
|
4058
4058
|
}) {
|
|
4059
|
-
const { translate: a } =
|
|
4059
|
+
const { translate: a } = ke(), i = () => {
|
|
4060
4060
|
if (!n) return;
|
|
4061
4061
|
const I = new Date(n);
|
|
4062
4062
|
return isNaN(I.getTime()) ? void 0 : I;
|
|
@@ -4066,7 +4066,7 @@ function ps({
|
|
|
4066
4066
|
c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4067
4067
|
), [d, m] = q(
|
|
4068
4068
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4069
|
-
), [
|
|
4069
|
+
), [p, x] = q(
|
|
4070
4070
|
c ? c.getDate() : null
|
|
4071
4071
|
), v = ce(null), w = ce([]), S = [
|
|
4072
4072
|
a(pe.JANUARY),
|
|
@@ -4110,25 +4110,25 @@ function ps({
|
|
|
4110
4110
|
value: a(ue.SATURDAY_SHORT),
|
|
4111
4111
|
full: a(ue.SATURDAY)
|
|
4112
4112
|
}
|
|
4113
|
-
], O = (I) => t.some((
|
|
4114
|
-
const
|
|
4115
|
-
return A >=
|
|
4113
|
+
], O = (I) => t.some((h) => {
|
|
4114
|
+
const b = h.start.getTime(), R = h.end.getTime(), A = I.getTime();
|
|
4115
|
+
return A >= b && A <= R;
|
|
4116
4116
|
}), y = (I) => {
|
|
4117
|
-
O(I) || (l(I),
|
|
4117
|
+
O(I) || (l(I), x(I.getDate()), e && e(Qr(I)));
|
|
4118
4118
|
}, P = () => {
|
|
4119
|
-
f === 0 ? (u(11), m(d - 1)) : u(f - 1),
|
|
4119
|
+
f === 0 ? (u(11), m(d - 1)) : u(f - 1), x(1);
|
|
4120
4120
|
}, E = () => {
|
|
4121
|
-
f === 11 ? (u(0), m(d + 1)) : u(f + 1),
|
|
4122
|
-
}, T = (I,
|
|
4123
|
-
var
|
|
4124
|
-
const
|
|
4121
|
+
f === 11 ? (u(0), m(d + 1)) : u(f + 1), x(1);
|
|
4122
|
+
}, T = (I, h) => new Date(I, h + 1, 0).getDate(), D = (I, h) => new Date(I, h, 1).getDay(), k = (I) => {
|
|
4123
|
+
var b;
|
|
4124
|
+
const h = M.findIndex(
|
|
4125
4125
|
(R) => R !== null && R.getDate() === I
|
|
4126
4126
|
);
|
|
4127
|
-
|
|
4128
|
-
}, W = (I,
|
|
4129
|
-
const
|
|
4130
|
-
if (!
|
|
4131
|
-
const R = T(d, f), A =
|
|
4127
|
+
h !== -1 && w.current[h] && ((b = w.current[h]) == null || b.focus(), x(I));
|
|
4128
|
+
}, W = (I, h) => {
|
|
4129
|
+
const b = M[h];
|
|
4130
|
+
if (!b) return;
|
|
4131
|
+
const R = T(d, f), A = b.getDate();
|
|
4132
4132
|
switch (I.key) {
|
|
4133
4133
|
case "ArrowRight":
|
|
4134
4134
|
I.preventDefault();
|
|
@@ -4214,17 +4214,17 @@ function ps({
|
|
|
4214
4214
|
break;
|
|
4215
4215
|
case " ":
|
|
4216
4216
|
case "Space":
|
|
4217
|
-
if (O(
|
|
4218
|
-
b
|
|
4217
|
+
if (O(b)) return;
|
|
4218
|
+
x(b.getDate()), l(b);
|
|
4219
4219
|
break;
|
|
4220
4220
|
case "Enter":
|
|
4221
|
-
I.preventDefault(), y(
|
|
4221
|
+
I.preventDefault(), y(b);
|
|
4222
4222
|
break;
|
|
4223
4223
|
}
|
|
4224
|
-
}, C = (I,
|
|
4225
|
-
const
|
|
4226
|
-
if (
|
|
4227
|
-
for (let R = I; R <=
|
|
4224
|
+
}, C = (I, h) => {
|
|
4225
|
+
const b = T(d, f);
|
|
4226
|
+
if (h === "forward") {
|
|
4227
|
+
for (let R = I; R <= b; R++) {
|
|
4228
4228
|
const A = new Date(d, f, R);
|
|
4229
4229
|
if (!O(A)) {
|
|
4230
4230
|
k(R);
|
|
@@ -4248,41 +4248,41 @@ function ps({
|
|
|
4248
4248
|
}, 0);
|
|
4249
4249
|
}
|
|
4250
4250
|
}, M = (() => {
|
|
4251
|
-
const I = T(d, f),
|
|
4252
|
-
for (let R = 0; R <
|
|
4253
|
-
|
|
4251
|
+
const I = T(d, f), h = D(d, f), b = [];
|
|
4252
|
+
for (let R = 0; R < h; R++)
|
|
4253
|
+
b.push(null);
|
|
4254
4254
|
for (let R = 1; R <= I; R++) {
|
|
4255
4255
|
const A = new Date(d, f, R);
|
|
4256
|
-
|
|
4256
|
+
b.push(A);
|
|
4257
4257
|
}
|
|
4258
|
-
return
|
|
4258
|
+
return b;
|
|
4259
4259
|
})(), B = [];
|
|
4260
4260
|
let H = [];
|
|
4261
|
-
M.forEach((I,
|
|
4262
|
-
if (H.push(I), H.length === 7 ||
|
|
4261
|
+
M.forEach((I, h) => {
|
|
4262
|
+
if (H.push(I), H.length === 7 || h === M.length - 1) {
|
|
4263
4263
|
for (; H.length < 7; )
|
|
4264
4264
|
H.push(null);
|
|
4265
4265
|
B.push(H), H = [];
|
|
4266
4266
|
}
|
|
4267
4267
|
}), ne(() => {
|
|
4268
4268
|
var I;
|
|
4269
|
-
if (
|
|
4270
|
-
const
|
|
4271
|
-
(
|
|
4269
|
+
if (p !== null) {
|
|
4270
|
+
const h = M.findIndex(
|
|
4271
|
+
(b) => b !== null && b.getDate() === p
|
|
4272
4272
|
);
|
|
4273
|
-
|
|
4273
|
+
h !== -1 && w.current[h] && ((I = w.current[h]) == null || I.focus());
|
|
4274
4274
|
}
|
|
4275
|
-
}, [f, d,
|
|
4275
|
+
}, [f, d, p, M]);
|
|
4276
4276
|
const z = {
|
|
4277
4277
|
label: "smp-datepickercalendar-label",
|
|
4278
4278
|
wrapper: `smp-datepickercalendar ${ds["smp-datepickercalendar-position"]}`,
|
|
4279
4279
|
calendar: "smp-datepickercalendar",
|
|
4280
4280
|
table: "smp-datepickercalendar-table",
|
|
4281
4281
|
th: "smp-datepickercalendar-th",
|
|
4282
|
-
td: (I,
|
|
4282
|
+
td: (I, h, b, R) => `smp-datepickercalendar-td
|
|
4283
4283
|
${I ? "smp-datepickercalendar-td-today" : ""}
|
|
4284
|
-
${
|
|
4285
|
-
${
|
|
4284
|
+
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4285
|
+
${b ? "smp-datepickercalendar-td-focused" : ""}
|
|
4286
4286
|
${R ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4287
4287
|
}, Z = () => `${S[f]} ${d.toString()}`;
|
|
4288
4288
|
return /* @__PURE__ */ g.jsxs(
|
|
@@ -4306,7 +4306,7 @@ function ps({
|
|
|
4306
4306
|
},
|
|
4307
4307
|
children: [
|
|
4308
4308
|
/* @__PURE__ */ g.jsx(
|
|
4309
|
-
|
|
4309
|
+
Ae,
|
|
4310
4310
|
{
|
|
4311
4311
|
onClick: P,
|
|
4312
4312
|
ariaLabel: a(_t.PREVIOUS_MONTH),
|
|
@@ -4325,7 +4325,7 @@ function ps({
|
|
|
4325
4325
|
}
|
|
4326
4326
|
),
|
|
4327
4327
|
/* @__PURE__ */ g.jsx(
|
|
4328
|
-
|
|
4328
|
+
Ae,
|
|
4329
4329
|
{
|
|
4330
4330
|
onClick: E,
|
|
4331
4331
|
ariaLabel: a(_t.NEXT_MONTH),
|
|
@@ -4356,9 +4356,9 @@ function ps({
|
|
|
4356
4356
|
},
|
|
4357
4357
|
I.value
|
|
4358
4358
|
)) }) }),
|
|
4359
|
-
/* @__PURE__ */ g.jsx("tbody", { children: B.map((I,
|
|
4360
|
-
const A =
|
|
4361
|
-
if (
|
|
4359
|
+
/* @__PURE__ */ g.jsx("tbody", { children: B.map((I, h) => /* @__PURE__ */ g.jsx("tr", { children: I.map((b, R) => {
|
|
4360
|
+
const A = h * 7 + R;
|
|
4361
|
+
if (b === null)
|
|
4362
4362
|
return /* @__PURE__ */ g.jsx(
|
|
4363
4363
|
"td",
|
|
4364
4364
|
{
|
|
@@ -4371,16 +4371,16 @@ function ps({
|
|
|
4371
4371
|
},
|
|
4372
4372
|
`empty-${R}`
|
|
4373
4373
|
);
|
|
4374
|
-
const $ =
|
|
4374
|
+
const $ = b.getDate() === o.getDate() && b.getMonth() === o.getMonth() && b.getFullYear() === o.getFullYear(), L = c && b.getDate() === c.getDate() && b.getMonth() === c.getMonth() && b.getFullYear() === c.getFullYear(), V = p === b.getDate(), Y = O(b);
|
|
4375
4375
|
return /* @__PURE__ */ g.jsx(
|
|
4376
4376
|
"td",
|
|
4377
4377
|
{
|
|
4378
4378
|
role: "gridcell",
|
|
4379
4379
|
"aria-selected": L,
|
|
4380
4380
|
tabIndex: V ? 0 : -1,
|
|
4381
|
-
onClick: () => y(
|
|
4381
|
+
onClick: () => y(b),
|
|
4382
4382
|
onKeyDown: (F) => W(F, A),
|
|
4383
|
-
"aria-label": `${
|
|
4383
|
+
"aria-label": `${b.getDate()} ${S[b.getMonth()]} ${b.getFullYear()}`,
|
|
4384
4384
|
"data-selected": L,
|
|
4385
4385
|
"aria-disabled": Y,
|
|
4386
4386
|
ref: (F) => {
|
|
@@ -4392,11 +4392,11 @@ function ps({
|
|
|
4392
4392
|
V,
|
|
4393
4393
|
Y
|
|
4394
4394
|
),
|
|
4395
|
-
children:
|
|
4395
|
+
children: b.getDate()
|
|
4396
4396
|
},
|
|
4397
4397
|
`day-${R}`
|
|
4398
4398
|
);
|
|
4399
|
-
}) }, `week-${
|
|
4399
|
+
}) }, `week-${h}`)) })
|
|
4400
4400
|
]
|
|
4401
4401
|
}
|
|
4402
4402
|
)
|
|
@@ -4412,16 +4412,16 @@ const hs = ({
|
|
|
4412
4412
|
isEditable: s = !0,
|
|
4413
4413
|
...a
|
|
4414
4414
|
}) => {
|
|
4415
|
-
const i = ce(null), [o, c] = q(!1), [l, f] = q(r || ""), [u, d] = q(""), { anchorRef: m, targetRef:
|
|
4415
|
+
const i = ce(null), [o, c] = q(!1), [l, f] = q(r || ""), [u, d] = q(""), { anchorRef: m, targetRef: p } = dt({
|
|
4416
4416
|
position: "bottom",
|
|
4417
4417
|
enabled: o
|
|
4418
|
-
}),
|
|
4418
|
+
}), x = le(() => {
|
|
4419
4419
|
var D;
|
|
4420
4420
|
c(!1), (D = i == null ? void 0 : i.current) == null || D.focus();
|
|
4421
4421
|
}, []);
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
}),
|
|
4422
|
+
Ce(p, () => {
|
|
4423
|
+
x();
|
|
4424
|
+
}), Ce(m, () => {
|
|
4425
4425
|
if (
|
|
4426
4426
|
// FIXME: Copied from useClickOutside.
|
|
4427
4427
|
typeof m == "object" && m !== null && "current" in m
|
|
@@ -4429,9 +4429,9 @@ const hs = ({
|
|
|
4429
4429
|
const D = m.current.querySelector("input");
|
|
4430
4430
|
D && D === document.activeElement && O();
|
|
4431
4431
|
}
|
|
4432
|
-
|
|
4433
|
-
}), kt(o,
|
|
4434
|
-
const { format: v, getCurrentLanguage: w } =
|
|
4432
|
+
x();
|
|
4433
|
+
}), kt(o, p);
|
|
4434
|
+
const { format: v, getCurrentLanguage: w } = ke(), S = le(
|
|
4435
4435
|
(D) => {
|
|
4436
4436
|
const k = D.length > 5 && Jr(D, w()) || D, W = v(k, void 0, void 0, {
|
|
4437
4437
|
type: "date"
|
|
@@ -4452,7 +4452,7 @@ const hs = ({
|
|
|
4452
4452
|
const _ = () => c((D) => !D), O = () => {
|
|
4453
4453
|
P(u);
|
|
4454
4454
|
}, y = (D) => {
|
|
4455
|
-
P(D),
|
|
4455
|
+
P(D), x();
|
|
4456
4456
|
}, P = (D) => {
|
|
4457
4457
|
const { isoDate: k, isValid: W } = S(D);
|
|
4458
4458
|
t && t(W && k || D);
|
|
@@ -4463,7 +4463,7 @@ const hs = ({
|
|
|
4463
4463
|
};
|
|
4464
4464
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4465
4465
|
/* @__PURE__ */ g.jsx(
|
|
4466
|
-
|
|
4466
|
+
je,
|
|
4467
4467
|
{
|
|
4468
4468
|
...a,
|
|
4469
4469
|
bindValue: u,
|
|
@@ -4484,7 +4484,7 @@ const hs = ({
|
|
|
4484
4484
|
disabledDateRanges: n,
|
|
4485
4485
|
onDateChange: y,
|
|
4486
4486
|
initialValue: Pt(l) && l || "",
|
|
4487
|
-
targetRef:
|
|
4487
|
+
targetRef: p
|
|
4488
4488
|
}
|
|
4489
4489
|
) })
|
|
4490
4490
|
] });
|
|
@@ -4503,7 +4503,7 @@ const hs = ({
|
|
|
4503
4503
|
onChange: u,
|
|
4504
4504
|
onBlur: d
|
|
4505
4505
|
}) => {
|
|
4506
|
-
const m = r.map((v) => v.bindValue),
|
|
4506
|
+
const m = r.map((v) => v.bindValue), p = (v, w) => {
|
|
4507
4507
|
const S = [...r];
|
|
4508
4508
|
if (v == "")
|
|
4509
4509
|
S.pop();
|
|
@@ -4517,16 +4517,16 @@ const hs = ({
|
|
|
4517
4517
|
});
|
|
4518
4518
|
}
|
|
4519
4519
|
u == null || u(S);
|
|
4520
|
-
},
|
|
4520
|
+
}, x = {
|
|
4521
4521
|
container: "smp-multipleAutocomplete-container"
|
|
4522
4522
|
};
|
|
4523
4523
|
return /* @__PURE__ */ g.jsxs(
|
|
4524
4524
|
"div",
|
|
4525
4525
|
{
|
|
4526
|
-
className:
|
|
4526
|
+
className: x.container,
|
|
4527
4527
|
"data-component": "multiple-autocomplete",
|
|
4528
4528
|
children: [
|
|
4529
|
-
i && /* @__PURE__ */ g.jsx(
|
|
4529
|
+
i && /* @__PURE__ */ g.jsx(Oe, { label: i, disabled: o }),
|
|
4530
4530
|
/* @__PURE__ */ g.jsx(
|
|
4531
4531
|
Lt,
|
|
4532
4532
|
{
|
|
@@ -4544,7 +4544,7 @@ const hs = ({
|
|
|
4544
4544
|
bindValue: "",
|
|
4545
4545
|
fun: c,
|
|
4546
4546
|
isEditable: s,
|
|
4547
|
-
onChange:
|
|
4547
|
+
onChange: p,
|
|
4548
4548
|
_changeOnEnter: !0,
|
|
4549
4549
|
listDisplayMode: n,
|
|
4550
4550
|
minimumChars: t,
|
|
@@ -4561,7 +4561,7 @@ const hs = ({
|
|
|
4561
4561
|
}, gs = ({ ...r }) => {
|
|
4562
4562
|
const [e, t] = q(!1), n = e ? "visibility-off" : "visibility";
|
|
4563
4563
|
return /* @__PURE__ */ g.jsx(
|
|
4564
|
-
|
|
4564
|
+
je,
|
|
4565
4565
|
{
|
|
4566
4566
|
...r,
|
|
4567
4567
|
inputType: e ? "text" : "password",
|
|
@@ -4572,12 +4572,12 @@ const hs = ({
|
|
|
4572
4572
|
}
|
|
4573
4573
|
);
|
|
4574
4574
|
}, ys = ({ ...r }) => {
|
|
4575
|
-
const [e, t] = q(r.bindValue), { translate: n } =
|
|
4575
|
+
const [e, t] = q(r.bindValue), { translate: n } = ke(), s = (a) => {
|
|
4576
4576
|
var i;
|
|
4577
4577
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4578
4578
|
};
|
|
4579
4579
|
return /* @__PURE__ */ g.jsx(
|
|
4580
|
-
|
|
4580
|
+
je,
|
|
4581
4581
|
{
|
|
4582
4582
|
...r,
|
|
4583
4583
|
placeholder: r.placeholder ? r.placeholder : n(mt.SPOTLIGHT_DEFAULT_PLACEHOLDER),
|
|
@@ -4599,16 +4599,16 @@ const hs = ({
|
|
|
4599
4599
|
wrapper: "smp-text-wrapper"
|
|
4600
4600
|
};
|
|
4601
4601
|
return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
|
|
4602
|
-
/* @__PURE__ */ g.jsx(
|
|
4602
|
+
/* @__PURE__ */ g.jsx(Oe, { label: t }),
|
|
4603
4603
|
/* @__PURE__ */ g.jsx(
|
|
4604
|
-
|
|
4604
|
+
Le,
|
|
4605
4605
|
{
|
|
4606
4606
|
variant: "body",
|
|
4607
4607
|
bindValue: e || r
|
|
4608
4608
|
}
|
|
4609
4609
|
)
|
|
4610
4610
|
] }) : /* @__PURE__ */ g.jsx(
|
|
4611
|
-
|
|
4611
|
+
Le,
|
|
4612
4612
|
{
|
|
4613
4613
|
variant: "body",
|
|
4614
4614
|
bindValue: e || r
|
|
@@ -4640,7 +4640,7 @@ class Te {
|
|
|
4640
4640
|
return this.value.join(";");
|
|
4641
4641
|
}
|
|
4642
4642
|
}
|
|
4643
|
-
const
|
|
4643
|
+
const $e = (r, e, t) => ({
|
|
4644
4644
|
obj: {
|
|
4645
4645
|
t: r.obj.t,
|
|
4646
4646
|
p: r.obj.p,
|
|
@@ -4663,7 +4663,7 @@ const _e = (r, e, t) => ({
|
|
|
4663
4663
|
r.obj,
|
|
4664
4664
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4665
4665
|
).getLegacyValue();
|
|
4666
|
-
return
|
|
4666
|
+
return $e(r, t, n);
|
|
4667
4667
|
}, bs = ({
|
|
4668
4668
|
min: r,
|
|
4669
4669
|
max: e,
|
|
@@ -4675,18 +4675,18 @@ const _e = (r, e, t) => ({
|
|
|
4675
4675
|
onEnter: o,
|
|
4676
4676
|
...c
|
|
4677
4677
|
}) => {
|
|
4678
|
-
const { getCurrentLanguage: l } =
|
|
4678
|
+
const { getCurrentLanguage: l } = ke(), f = ce(null), u = l(), { groupingChar: d, decimalChar: m } = Yr(
|
|
4679
4679
|
() => ss(u, s),
|
|
4680
4680
|
[u, s]
|
|
4681
|
-
),
|
|
4681
|
+
), p = le(
|
|
4682
4682
|
(C, j) => new Intl.NumberFormat(u, {
|
|
4683
4683
|
minimumFractionDigits: j,
|
|
4684
4684
|
maximumFractionDigits: j,
|
|
4685
4685
|
useGrouping: !0
|
|
4686
4686
|
}).format(C),
|
|
4687
4687
|
[u]
|
|
4688
|
-
),
|
|
4689
|
-
a != null ?
|
|
4688
|
+
), x = le(os, [d, m]), v = le(ns, [r, e]), w = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [S, _] = q(w), [O, y] = q(
|
|
4689
|
+
a != null ? p(a, S) : ""
|
|
4690
4690
|
), P = ce(a ?? null);
|
|
4691
4691
|
ne(() => {
|
|
4692
4692
|
if (a == null) {
|
|
@@ -4694,18 +4694,18 @@ const _e = (r, e, t) => ({
|
|
|
4694
4694
|
return;
|
|
4695
4695
|
}
|
|
4696
4696
|
const C = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, j = C === 0 ? S : C;
|
|
4697
|
-
j !== S && _(j), y(
|
|
4698
|
-
}, [a,
|
|
4697
|
+
j !== S && _(j), y(p(a, j)), P.current = a;
|
|
4698
|
+
}, [a, p]);
|
|
4699
4699
|
const E = le(
|
|
4700
4700
|
(C, j = !1) => {
|
|
4701
4701
|
if (C.trim() === "") {
|
|
4702
4702
|
y(""), P.current = null, i == null || i(void 0, ""), j && (o == null || o(void 0));
|
|
4703
4703
|
return;
|
|
4704
4704
|
}
|
|
4705
|
-
const M =
|
|
4705
|
+
const M = x(C, d, m);
|
|
4706
4706
|
if (isNaN(M))
|
|
4707
4707
|
if (P.current != null) {
|
|
4708
|
-
const B =
|
|
4708
|
+
const B = p(P.current, S);
|
|
4709
4709
|
y(B);
|
|
4710
4710
|
} else
|
|
4711
4711
|
y("");
|
|
@@ -4716,18 +4716,18 @@ const _e = (r, e, t) => ({
|
|
|
4716
4716
|
m
|
|
4717
4717
|
);
|
|
4718
4718
|
_(H);
|
|
4719
|
-
const z =
|
|
4719
|
+
const z = p(B, H);
|
|
4720
4720
|
y(z), P.current = B, i == null || i(B, z), j && (o == null || o(B));
|
|
4721
4721
|
}
|
|
4722
4722
|
},
|
|
4723
4723
|
[
|
|
4724
|
-
|
|
4724
|
+
x,
|
|
4725
4725
|
d,
|
|
4726
4726
|
m,
|
|
4727
4727
|
v,
|
|
4728
4728
|
r,
|
|
4729
4729
|
e,
|
|
4730
|
-
|
|
4730
|
+
p,
|
|
4731
4731
|
i,
|
|
4732
4732
|
o,
|
|
4733
4733
|
S
|
|
@@ -4740,16 +4740,16 @@ const _e = (r, e, t) => ({
|
|
|
4740
4740
|
if (C.key === "ArrowUp" || C.key === "ArrowDown") {
|
|
4741
4741
|
C.preventDefault();
|
|
4742
4742
|
const j = C.key === "ArrowUp" ? 1 : -1, M = P.current ?? 0, B = v(M + j * t, r, e);
|
|
4743
|
-
E(
|
|
4743
|
+
E(p(B, S));
|
|
4744
4744
|
}
|
|
4745
4745
|
}, W = (C) => {
|
|
4746
4746
|
if (!C.currentTarget.contains(document.activeElement)) return;
|
|
4747
4747
|
C.preventDefault();
|
|
4748
4748
|
const j = C.deltaY < 0 ? 1 : -1, M = P.current ?? 0, B = v(M + j * t, r, e);
|
|
4749
|
-
E(
|
|
4749
|
+
E(p(B, S));
|
|
4750
4750
|
};
|
|
4751
|
-
return
|
|
4752
|
-
|
|
4751
|
+
return Ce(f, D), /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: W, children: /* @__PURE__ */ g.jsx(
|
|
4752
|
+
je,
|
|
4753
4753
|
{
|
|
4754
4754
|
...c,
|
|
4755
4755
|
"aria-valuemin": r,
|
|
@@ -4822,14 +4822,14 @@ const Ss = ({
|
|
|
4822
4822
|
onBlur: u,
|
|
4823
4823
|
onKeyDown: d
|
|
4824
4824
|
}) => {
|
|
4825
|
-
const m = We(),
|
|
4825
|
+
const m = We(), p = `${m}-helper`, x = f ? "danger" : s, v = l || !!f, w = (_) => {
|
|
4826
4826
|
t == null || t(_.target.value);
|
|
4827
4827
|
}, S = {
|
|
4828
4828
|
wrapper: "smp-textarea-wrapper",
|
|
4829
|
-
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
4829
|
+
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${x ? `smp-textarea-${x}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4830
4830
|
};
|
|
4831
4831
|
return /* @__PURE__ */ g.jsxs("div", { className: S.wrapper, "data-component": "textarea", children: [
|
|
4832
|
-
o && /* @__PURE__ */ g.jsx(
|
|
4832
|
+
o && /* @__PURE__ */ g.jsx(Oe, { htmlFor: m, label: o, disabled: r }),
|
|
4833
4833
|
/* @__PURE__ */ g.jsx(
|
|
4834
4834
|
"textarea",
|
|
4835
4835
|
{
|
|
@@ -4844,16 +4844,16 @@ const Ss = ({
|
|
|
4844
4844
|
onKeyDown: d,
|
|
4845
4845
|
"aria-label": o ? void 0 : c,
|
|
4846
4846
|
"aria-labelledby": o ? m : void 0,
|
|
4847
|
-
"aria-describedby": v ?
|
|
4847
|
+
"aria-describedby": v ? p : void 0
|
|
4848
4848
|
}
|
|
4849
4849
|
),
|
|
4850
4850
|
v && /* @__PURE__ */ g.jsx(
|
|
4851
4851
|
jr,
|
|
4852
4852
|
{
|
|
4853
|
-
id:
|
|
4853
|
+
id: p,
|
|
4854
4854
|
helperText: f,
|
|
4855
4855
|
disabled: r,
|
|
4856
|
-
state:
|
|
4856
|
+
state: x
|
|
4857
4857
|
}
|
|
4858
4858
|
)
|
|
4859
4859
|
] });
|
|
@@ -4869,39 +4869,53 @@ const Ss = ({
|
|
|
4869
4869
|
options: n,
|
|
4870
4870
|
onOptionsRequest: s,
|
|
4871
4871
|
fun: a,
|
|
4872
|
-
|
|
4872
|
+
label: i,
|
|
4873
|
+
...o
|
|
4873
4874
|
}) => {
|
|
4874
|
-
const [
|
|
4875
|
+
const [c, l] = q(n);
|
|
4875
4876
|
ne(() => {
|
|
4876
|
-
!
|
|
4877
|
-
console.error("Error during loading options (radio)",
|
|
4877
|
+
!c && s && a && s(a, void 0).then((p) => l(p)).catch((p) => {
|
|
4878
|
+
console.error("Error during loading options (radio)", p);
|
|
4878
4879
|
});
|
|
4879
|
-
}, [
|
|
4880
|
-
const
|
|
4880
|
+
}, [c, s, a]);
|
|
4881
|
+
const f = {
|
|
4881
4882
|
container: `${et["smp-radio"]} ${t ? et["smp-radio-horizontal"] : ""}`,
|
|
4882
4883
|
option: `${et["smp-radio-element"]} ${r ? et["smp-radio-disabled"] : ""}`
|
|
4883
|
-
},
|
|
4884
|
-
var
|
|
4885
|
-
r || (
|
|
4886
|
-
},
|
|
4887
|
-
var
|
|
4888
|
-
r || (
|
|
4889
|
-
},
|
|
4890
|
-
return /* @__PURE__ */ g.
|
|
4891
|
-
/* @__PURE__ */ g.jsx(
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4884
|
+
}, u = () => {
|
|
4885
|
+
var p;
|
|
4886
|
+
r || (p = o.onBlur) == null || p.call(o);
|
|
4887
|
+
}, d = (p) => {
|
|
4888
|
+
var x;
|
|
4889
|
+
r || (x = o.onChange) == null || x.call(o, p.id, p.label);
|
|
4890
|
+
}, m = We();
|
|
4891
|
+
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: f.container, children: [
|
|
4892
|
+
i && /* @__PURE__ */ g.jsx(Oe, { label: i, disabled: r, htmlFor: "" }),
|
|
4893
|
+
c == null ? void 0 : c.map((p, x) => /* @__PURE__ */ g.jsxs("label", { className: f.option, children: [
|
|
4894
|
+
/* @__PURE__ */ g.jsx(
|
|
4895
|
+
"input",
|
|
4896
|
+
{
|
|
4897
|
+
type: "radio",
|
|
4898
|
+
name: m,
|
|
4899
|
+
value: p.id,
|
|
4900
|
+
disabled: r,
|
|
4901
|
+
checked: p.id === o.bindValue,
|
|
4902
|
+
onChange: () => d(p),
|
|
4903
|
+
onBlur: u
|
|
4904
|
+
}
|
|
4905
|
+
),
|
|
4906
|
+
/* @__PURE__ */ g.jsx(
|
|
4907
|
+
Le,
|
|
4908
|
+
{
|
|
4909
|
+
variant: "body",
|
|
4910
|
+
bindValue: Ve(
|
|
4911
|
+
p.id,
|
|
4912
|
+
p.label,
|
|
4913
|
+
e
|
|
4914
|
+
)
|
|
4915
|
+
}
|
|
4916
|
+
)
|
|
4917
|
+
] }, x))
|
|
4918
|
+
] });
|
|
4905
4919
|
}, Es = ({
|
|
4906
4920
|
value: r,
|
|
4907
4921
|
onChange: e,
|
|
@@ -4973,11 +4987,11 @@ const Ss = ({
|
|
|
4973
4987
|
const a = ce(null), [i, o] = q(!1), [c, l] = q(r || ""), [f, u] = q(""), { anchorRef: d, targetRef: m } = dt({
|
|
4974
4988
|
position: "bottom",
|
|
4975
4989
|
enabled: i
|
|
4976
|
-
}),
|
|
4990
|
+
}), p = le(() => {
|
|
4977
4991
|
var y;
|
|
4978
4992
|
o(!1), (y = a == null ? void 0 : a.current) == null || y.focus();
|
|
4979
4993
|
}, []);
|
|
4980
|
-
|
|
4994
|
+
Ce(m, () => o(!1)), kt(i, m), ne(() => {
|
|
4981
4995
|
const y = r || "", P = Er(y) ? y : r || "";
|
|
4982
4996
|
l(y), u(P);
|
|
4983
4997
|
}, [r]), ne(() => {
|
|
@@ -4988,13 +5002,13 @@ const Ss = ({
|
|
|
4988
5002
|
document.removeEventListener("keydown", y);
|
|
4989
5003
|
};
|
|
4990
5004
|
}, [i]);
|
|
4991
|
-
const
|
|
5005
|
+
const x = () => {
|
|
4992
5006
|
n && o((y) => !y);
|
|
4993
5007
|
}, v = (y) => {
|
|
4994
5008
|
u(y);
|
|
4995
5009
|
}, w = (y, P, E) => {
|
|
4996
5010
|
const T = Os(y, P, E);
|
|
4997
|
-
l(T), u(T), t == null || t(T),
|
|
5011
|
+
l(T), u(T), t == null || t(T), p();
|
|
4998
5012
|
}, S = () => {
|
|
4999
5013
|
O(f);
|
|
5000
5014
|
}, _ = (y) => {
|
|
@@ -5017,7 +5031,7 @@ const Ss = ({
|
|
|
5017
5031
|
onBlur: S,
|
|
5018
5032
|
onKeyDown: _,
|
|
5019
5033
|
shapeIcon: "clock",
|
|
5020
|
-
onShapeIconClick:
|
|
5034
|
+
onShapeIconClick: x,
|
|
5021
5035
|
isEditable: n,
|
|
5022
5036
|
ref: d,
|
|
5023
5037
|
inputRef: a
|
|
@@ -5088,8 +5102,8 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5088
5102
|
onEnter: u,
|
|
5089
5103
|
onBlur: d,
|
|
5090
5104
|
onOptionsRequest: m,
|
|
5091
|
-
onContextMenu:
|
|
5092
|
-
isEditable:
|
|
5105
|
+
onContextMenu: p,
|
|
5106
|
+
isEditable: x
|
|
5093
5107
|
}) => {
|
|
5094
5108
|
const v = {
|
|
5095
5109
|
obj: t,
|
|
@@ -5103,12 +5117,12 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5103
5117
|
fun: a,
|
|
5104
5118
|
icon: s,
|
|
5105
5119
|
label: o,
|
|
5106
|
-
isEditable:
|
|
5120
|
+
isEditable: x,
|
|
5107
5121
|
...n
|
|
5108
|
-
}, S = (E, T, D) => Kr(t) ?
|
|
5122
|
+
}, S = (E, T, D) => Kr(t) ? $e(E, new at(t, T).getLegacyValue()) : qr(t) ? $e(E, new ft(t, T).getLegacyValue()) : $e(E, T, D), _ = (E, T) => $e(
|
|
5109
5123
|
E,
|
|
5110
5124
|
new ut(t, T, ".").getLegacyValue()
|
|
5111
|
-
), O = (E) =>
|
|
5125
|
+
), O = (E) => $e(v, new st(t, E).getLegacyValue()), y = (E) => xs(v, E), P = () => {
|
|
5112
5126
|
switch (e) {
|
|
5113
5127
|
case re.AUTOCOMPLETE: {
|
|
5114
5128
|
const E = {
|
|
@@ -5130,7 +5144,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5130
5144
|
f == null || f(S(v, t.k));
|
|
5131
5145
|
}
|
|
5132
5146
|
};
|
|
5133
|
-
return /* @__PURE__ */ g.jsx(
|
|
5147
|
+
return /* @__PURE__ */ g.jsx(Ae, { ...E });
|
|
5134
5148
|
}
|
|
5135
5149
|
case re.BUTTON_LIST: {
|
|
5136
5150
|
const E = {
|
|
@@ -5267,7 +5281,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5267
5281
|
l == null || l(S(v, T));
|
|
5268
5282
|
}
|
|
5269
5283
|
};
|
|
5270
|
-
return /* @__PURE__ */ g.jsx(
|
|
5284
|
+
return /* @__PURE__ */ g.jsx(je, { ...E });
|
|
5271
5285
|
}
|
|
5272
5286
|
case re.TIME: {
|
|
5273
5287
|
const E = {
|
|
@@ -5294,7 +5308,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5294
5308
|
{
|
|
5295
5309
|
className: "smp-cell-wrapper",
|
|
5296
5310
|
onContextMenu: (E) => {
|
|
5297
|
-
|
|
5311
|
+
p && (E.preventDefault(), p(v, E.currentTarget));
|
|
5298
5312
|
},
|
|
5299
5313
|
children: P()
|
|
5300
5314
|
}
|
|
@@ -5312,25 +5326,25 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5312
5326
|
if (!((u = l.rows) != null && u.length) || !((d = l.columns) != null && d.length))
|
|
5313
5327
|
return {};
|
|
5314
5328
|
const f = l.rows[0];
|
|
5315
|
-
return l.columns.filter((m) => m.visible).reduce((m,
|
|
5316
|
-
const
|
|
5317
|
-
...
|
|
5318
|
-
id:
|
|
5329
|
+
return l.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5330
|
+
const x = f.cells[p.name], v = {
|
|
5331
|
+
...x,
|
|
5332
|
+
id: p.name,
|
|
5319
5333
|
onChange: (w) => {
|
|
5320
5334
|
a((S) => S && {
|
|
5321
5335
|
...S,
|
|
5322
|
-
[
|
|
5323
|
-
...S[
|
|
5336
|
+
[p.name]: {
|
|
5337
|
+
...S[p.name],
|
|
5324
5338
|
obj: {
|
|
5325
|
-
...S[
|
|
5339
|
+
...S[p.name].obj,
|
|
5326
5340
|
k: w.obj.k
|
|
5327
5341
|
}
|
|
5328
5342
|
}
|
|
5329
5343
|
});
|
|
5330
5344
|
},
|
|
5331
5345
|
onClick: () => {
|
|
5332
|
-
|
|
5333
|
-
...
|
|
5346
|
+
x.fun && e && e({
|
|
5347
|
+
...x
|
|
5334
5348
|
});
|
|
5335
5349
|
},
|
|
5336
5350
|
onEnter: (w) => {
|
|
@@ -5342,7 +5356,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5342
5356
|
};
|
|
5343
5357
|
return {
|
|
5344
5358
|
...m,
|
|
5345
|
-
[
|
|
5359
|
+
[p.name]: v
|
|
5346
5360
|
};
|
|
5347
5361
|
}, {});
|
|
5348
5362
|
},
|
|
@@ -5374,7 +5388,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5374
5388
|
loadOptions: c
|
|
5375
5389
|
}) => {
|
|
5376
5390
|
var _, O;
|
|
5377
|
-
const [l, f] = q(), [u, d] = q(t ?? !0), m = ce(null),
|
|
5391
|
+
const [l, f] = q(), [u, d] = q(t ?? !0), m = ce(null), p = s.trim() ? s : "100vh", x = le(
|
|
5378
5392
|
(y) => {
|
|
5379
5393
|
var E, T;
|
|
5380
5394
|
if (!((E = y == null ? void 0 : y.rows) != null && E.length) || !((T = y == null ? void 0 : y.columns) != null && T.length))
|
|
@@ -5419,12 +5433,12 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5419
5433
|
de(n) ? d((y) => !y) : (d(!1), o == null || o());
|
|
5420
5434
|
};
|
|
5421
5435
|
if (ne(() => {
|
|
5422
|
-
f(
|
|
5436
|
+
f(x(r));
|
|
5423
5437
|
}, [r]), ne(() => {
|
|
5424
5438
|
if (!m.current)
|
|
5425
5439
|
return;
|
|
5426
5440
|
if (!de(n)) {
|
|
5427
|
-
f(
|
|
5441
|
+
f(x(r));
|
|
5428
5442
|
return;
|
|
5429
5443
|
}
|
|
5430
5444
|
const y = getComputedStyle(m.current).getPropertyValue(
|
|
@@ -5432,7 +5446,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5432
5446
|
);
|
|
5433
5447
|
let P = Number(y);
|
|
5434
5448
|
y.endsWith("ms") ? P = parseFloat(y) : y.endsWith("s") && (P = parseFloat(y) * 1e3), setTimeout(() => {
|
|
5435
|
-
f(
|
|
5449
|
+
f(x(r));
|
|
5436
5450
|
}, P / 2);
|
|
5437
5451
|
}, [u, n]), ne(() => {
|
|
5438
5452
|
t !== void 0 && !de(n) && d(t);
|
|
@@ -5462,7 +5476,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5462
5476
|
{
|
|
5463
5477
|
ref: m,
|
|
5464
5478
|
className: S.drawer,
|
|
5465
|
-
style: { height:
|
|
5479
|
+
style: { height: p },
|
|
5466
5480
|
"aria-label": "Drawer",
|
|
5467
5481
|
"smp-id": "drawer",
|
|
5468
5482
|
children: /* @__PURE__ */ g.jsxs("div", { className: S.container, children: [
|
|
@@ -5509,8 +5523,8 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5509
5523
|
NumberFormat: u,
|
|
5510
5524
|
ForceUM: d,
|
|
5511
5525
|
UmColName: m,
|
|
5512
|
-
UmColor:
|
|
5513
|
-
ForceValue:
|
|
5526
|
+
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5527
|
+
ForceValue: x,
|
|
5514
5528
|
ValueColName: v,
|
|
5515
5529
|
ValueColor: w = "var(--smp-dashList-color-base)",
|
|
5516
5530
|
SelectLayout: S = "1",
|
|
@@ -5518,7 +5532,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5518
5532
|
}) => {
|
|
5519
5533
|
const O = "N/A", y = (e == null ? void 0 : e.columns) || [], P = (e == null ? void 0 : e.rows) || [], E = P.length > 0, T = "--smp-dashList-color", D = "smp-layout", k = "descr", W = "icon", C = "um", j = "value", M = i || "1em", B = "18px", H = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
|
|
5520
5534
|
dash: (U = "1") => {
|
|
5521
|
-
const X =
|
|
5535
|
+
const X = h(U), te = X, se = b(X, k), he = b(X, W), Se = b(X, C), ye = b(X, j);
|
|
5522
5536
|
return {
|
|
5523
5537
|
container: te,
|
|
5524
5538
|
descr: se,
|
|
@@ -5529,7 +5543,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5529
5543
|
},
|
|
5530
5544
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5531
5545
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5532
|
-
}, { format: I } =
|
|
5546
|
+
}, { format: I } = ke(), h = (U) => `${D}-${U}`, b = (U, X) => `${U}__${X}`, R = (U) => `${T}-${U}`, A = (U) => {
|
|
5533
5547
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5534
5548
|
if (X.test(U)) {
|
|
5535
5549
|
const se = U.match(X) || [];
|
|
@@ -5540,7 +5554,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5540
5554
|
}, $ = (U) => {
|
|
5541
5555
|
if (!u) return U;
|
|
5542
5556
|
const [X, te] = L(u).map(
|
|
5543
|
-
(
|
|
5557
|
+
(Re) => parseInt(Re || "0")
|
|
5544
5558
|
), se = "0,0" + (te ? "." + "0".repeat(te) : ""), he = I(U, se, "it");
|
|
5545
5559
|
if (!X) return he;
|
|
5546
5560
|
const [Se, ye] = he.split(",");
|
|
@@ -5559,7 +5573,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5559
5573
|
descr: t || X(n) || te(2) || "",
|
|
5560
5574
|
icon: c || X(l) || te(3) || "",
|
|
5561
5575
|
um: d || X(m) || te(1) || "",
|
|
5562
|
-
value:
|
|
5576
|
+
value: x || X(v) || te(0) || ""
|
|
5563
5577
|
};
|
|
5564
5578
|
}, Y = (U) => {
|
|
5565
5579
|
_ == null || _(U);
|
|
@@ -5585,19 +5599,19 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5585
5599
|
})(S), ae = (U) => {
|
|
5586
5600
|
const { descr: X, icon: te, um: se, value: he } = V(U), Se = {
|
|
5587
5601
|
[R(k)]: A(s),
|
|
5588
|
-
[R(C)]: A(
|
|
5602
|
+
[R(C)]: A(p),
|
|
5589
5603
|
[R(j)]: A(w)
|
|
5590
|
-
}, ye = [],
|
|
5604
|
+
}, ye = [], Re = $(he);
|
|
5591
5605
|
switch (S) {
|
|
5592
5606
|
case "2":
|
|
5593
5607
|
te && ye.push(G.icon(te)), ye.push(G.descr(X)), ye.push(
|
|
5594
|
-
G.value(se ?
|
|
5608
|
+
G.value(se ? Re + " " + se : Re)
|
|
5595
5609
|
);
|
|
5596
5610
|
break;
|
|
5597
5611
|
default:
|
|
5598
5612
|
case "1":
|
|
5599
5613
|
ye.push(G.descr(X)), ye.push(
|
|
5600
|
-
G.value(se ?
|
|
5614
|
+
G.value(se ? Re + " " + se : Re)
|
|
5601
5615
|
);
|
|
5602
5616
|
}
|
|
5603
5617
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -5659,13 +5673,13 @@ const Nr = ({
|
|
|
5659
5673
|
toggle: `${Ee.toggle}`,
|
|
5660
5674
|
indent: `${Ee.indent}`,
|
|
5661
5675
|
cell: `${Ee.cell}`
|
|
5662
|
-
}, m = (_) => /* @__PURE__ */ g.jsx(Be, { ..._ }),
|
|
5676
|
+
}, m = (_) => /* @__PURE__ */ g.jsx(Be, { ..._ }), p = () => /* @__PURE__ */ g.jsx("span", { className: d.toggle, children: l && /* @__PURE__ */ g.jsx(
|
|
5663
5677
|
fe,
|
|
5664
5678
|
{
|
|
5665
5679
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5666
5680
|
width: 16
|
|
5667
5681
|
}
|
|
5668
|
-
) }),
|
|
5682
|
+
) }), x = () => /* @__PURE__ */ g.jsx(
|
|
5669
5683
|
"span",
|
|
5670
5684
|
{
|
|
5671
5685
|
className: d.indent,
|
|
@@ -5695,8 +5709,8 @@ const Nr = ({
|
|
|
5695
5709
|
height: `${n}px`
|
|
5696
5710
|
},
|
|
5697
5711
|
children: [
|
|
5698
|
-
|
|
5699
|
-
|
|
5712
|
+
x(),
|
|
5713
|
+
p(),
|
|
5700
5714
|
/* @__PURE__ */ g.jsx("span", { className: Ee.rowLabel, children: _ })
|
|
5701
5715
|
]
|
|
5702
5716
|
}
|
|
@@ -5765,7 +5779,7 @@ const Nr = ({
|
|
|
5765
5779
|
width: 16
|
|
5766
5780
|
}
|
|
5767
5781
|
),
|
|
5768
|
-
/* @__PURE__ */ g.jsx(
|
|
5782
|
+
/* @__PURE__ */ g.jsx(Le, { variant: "title", bindValue: r })
|
|
5769
5783
|
]
|
|
5770
5784
|
}
|
|
5771
5785
|
)
|
|
@@ -5794,32 +5808,32 @@ function Vs(r, e, t, n) {
|
|
|
5794
5808
|
f(u);
|
|
5795
5809
|
return;
|
|
5796
5810
|
}
|
|
5797
|
-
const
|
|
5798
|
-
for (const [v, w] of
|
|
5811
|
+
const p = e[d].column, x = o(u, p);
|
|
5812
|
+
for (const [v, w] of x) {
|
|
5799
5813
|
const S = [...m, v], _ = c(S, d), O = n.has(_);
|
|
5800
5814
|
s.push(l(v, _, d, O)), a += t, O && i(w, d + 1, S);
|
|
5801
5815
|
}
|
|
5802
5816
|
}
|
|
5803
5817
|
function o(u, d) {
|
|
5804
|
-
var
|
|
5818
|
+
var p;
|
|
5805
5819
|
const m = /* @__PURE__ */ new Map();
|
|
5806
|
-
for (const
|
|
5807
|
-
const v = ((
|
|
5808
|
-
m.has(v) || m.set(v, []), m.get(v).push(
|
|
5820
|
+
for (const x of u) {
|
|
5821
|
+
const v = ((p = x.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
5822
|
+
m.has(v) || m.set(v, []), m.get(v).push(x);
|
|
5809
5823
|
}
|
|
5810
5824
|
return m;
|
|
5811
5825
|
}
|
|
5812
5826
|
function c(u, d) {
|
|
5813
5827
|
return `group-${u.join("-")}-${d}`;
|
|
5814
5828
|
}
|
|
5815
|
-
function l(u, d, m,
|
|
5829
|
+
function l(u, d, m, p) {
|
|
5816
5830
|
return {
|
|
5817
5831
|
isGroup: !0,
|
|
5818
5832
|
value: u,
|
|
5819
5833
|
cells: {},
|
|
5820
5834
|
rowId: d,
|
|
5821
5835
|
level: m,
|
|
5822
|
-
isExpanded:
|
|
5836
|
+
isExpanded: p
|
|
5823
5837
|
};
|
|
5824
5838
|
}
|
|
5825
5839
|
function f(u) {
|
|
@@ -5900,8 +5914,8 @@ const Ys = ({
|
|
|
5900
5914
|
if (!l.visible) continue;
|
|
5901
5915
|
const f = ((o = l.title) == null ? void 0 : o.length) || 0, u = Math.max(
|
|
5902
5916
|
...e.map((d) => {
|
|
5903
|
-
var m,
|
|
5904
|
-
return `${((
|
|
5917
|
+
var m, p, x, v;
|
|
5918
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : p.decode) || ((v = (x = d.cells) == null ? void 0 : x[l.name]) == null ? void 0 : v.value) || ""}`.length;
|
|
5905
5919
|
}),
|
|
5906
5920
|
f
|
|
5907
5921
|
);
|
|
@@ -5923,7 +5937,7 @@ const Ys = ({
|
|
|
5923
5937
|
var E;
|
|
5924
5938
|
const [i, o] = q(
|
|
5925
5939
|
r ?? { columns: [], rows: [] }
|
|
5926
|
-
), [c, l] = q(n || []), [f, u] = q(/* @__PURE__ */ new Set()), d = ce(null), [m,
|
|
5940
|
+
), [c, l] = q(n || []), [f, u] = q(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = Ws({
|
|
5927
5941
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5928
5942
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5929
5943
|
containerRef: d,
|
|
@@ -5941,7 +5955,7 @@ const Ys = ({
|
|
|
5941
5955
|
} else
|
|
5942
5956
|
o(r);
|
|
5943
5957
|
}, [r, c, f, e]);
|
|
5944
|
-
const
|
|
5958
|
+
const x = (T) => {
|
|
5945
5959
|
l(Fs(T, c));
|
|
5946
5960
|
}, v = (T) => {
|
|
5947
5961
|
T.preventDefault();
|
|
@@ -5960,7 +5974,7 @@ const Ys = ({
|
|
|
5960
5974
|
}), y = (T, D) => {
|
|
5961
5975
|
const k = T.clientX, W = m[D], C = (M) => {
|
|
5962
5976
|
const B = M.clientX - k, H = Math.max(50, W + B);
|
|
5963
|
-
|
|
5977
|
+
p((z) => ({
|
|
5964
5978
|
...z,
|
|
5965
5979
|
[D]: H
|
|
5966
5980
|
}));
|
|
@@ -5985,7 +5999,7 @@ const Ys = ({
|
|
|
5985
5999
|
Ys,
|
|
5986
6000
|
{
|
|
5987
6001
|
groups: c,
|
|
5988
|
-
onChange:
|
|
6002
|
+
onChange: x,
|
|
5989
6003
|
onDrop: v,
|
|
5990
6004
|
onDragOver: w
|
|
5991
6005
|
}
|
|
@@ -6006,7 +6020,7 @@ const Ys = ({
|
|
|
6006
6020
|
},
|
|
6007
6021
|
children: [
|
|
6008
6022
|
/* @__PURE__ */ g.jsx(
|
|
6009
|
-
|
|
6023
|
+
Le,
|
|
6010
6024
|
{
|
|
6011
6025
|
variant: "title",
|
|
6012
6026
|
bindValue: T.title
|
|
@@ -6075,13 +6089,13 @@ const Ys = ({
|
|
|
6075
6089
|
u(() => {
|
|
6076
6090
|
if (!r)
|
|
6077
6091
|
return;
|
|
6078
|
-
const
|
|
6079
|
-
return e && (
|
|
6092
|
+
const x = { ...r };
|
|
6093
|
+
return e && (x.shape = e), x.shape == null && (x.shape = re.TEXT_FIELD), s && (x.obj = zr(s)), x;
|
|
6080
6094
|
});
|
|
6081
6095
|
}, [r, s, e]);
|
|
6082
6096
|
const m = {
|
|
6083
6097
|
container: `smp-field-container ${de(t) ? `smp-field-position-${n}` : ""}`
|
|
6084
|
-
},
|
|
6098
|
+
}, p = () => {
|
|
6085
6099
|
de(t) || o == null || o(f);
|
|
6086
6100
|
};
|
|
6087
6101
|
if (f)
|
|
@@ -6103,7 +6117,7 @@ const Ys = ({
|
|
|
6103
6117
|
onChange: u,
|
|
6104
6118
|
onOptionsRequest: l,
|
|
6105
6119
|
fun: r == null ? void 0 : r.fun,
|
|
6106
|
-
onBlur:
|
|
6120
|
+
onBlur: p,
|
|
6107
6121
|
label: a,
|
|
6108
6122
|
labelPosition: i
|
|
6109
6123
|
}
|
|
@@ -6112,7 +6126,7 @@ const Ys = ({
|
|
|
6112
6126
|
),
|
|
6113
6127
|
de(t) && //TODO: translation
|
|
6114
6128
|
/* @__PURE__ */ g.jsx(
|
|
6115
|
-
|
|
6129
|
+
Ae,
|
|
6116
6130
|
{
|
|
6117
6131
|
optionalDisplayValue: "Confirm",
|
|
6118
6132
|
onClick: () => c == null ? void 0 : c(f),
|
|
@@ -6141,9 +6155,9 @@ const Ys = ({
|
|
|
6141
6155
|
onCheck: i,
|
|
6142
6156
|
onCheckObj: o
|
|
6143
6157
|
}) => {
|
|
6144
|
-
const [c, l] = q({}), { translate: f } =
|
|
6158
|
+
const [c, l] = q({}), { translate: f } = ke();
|
|
6145
6159
|
ne(() => {
|
|
6146
|
-
l(
|
|
6160
|
+
l(p(r));
|
|
6147
6161
|
}, [r]);
|
|
6148
6162
|
const u = (v, w) => {
|
|
6149
6163
|
l((S) => ({
|
|
@@ -6162,7 +6176,7 @@ const Ys = ({
|
|
|
6162
6176
|
}
|
|
6163
6177
|
})), n && (w.shape == re.CHECKBOX || w.shape == re.SWITCH) && d();
|
|
6164
6178
|
}, d = () => {
|
|
6165
|
-
const v =
|
|
6179
|
+
const v = x();
|
|
6166
6180
|
a({
|
|
6167
6181
|
value: v
|
|
6168
6182
|
});
|
|
@@ -6182,13 +6196,13 @@ const Ys = ({
|
|
|
6182
6196
|
}
|
|
6183
6197
|
}
|
|
6184
6198
|
}))), (S = c[v].inputSettings) != null && S.checkValueOnExit) {
|
|
6185
|
-
const _ =
|
|
6199
|
+
const _ = x();
|
|
6186
6200
|
i == null || i({
|
|
6187
6201
|
value: _,
|
|
6188
6202
|
cell: v
|
|
6189
6203
|
});
|
|
6190
6204
|
}
|
|
6191
|
-
},
|
|
6205
|
+
}, p = (v) => {
|
|
6192
6206
|
var S, _, O;
|
|
6193
6207
|
if (!((S = v.rows) != null && S.length) || !((_ = v.columns) != null && _.length))
|
|
6194
6208
|
return {};
|
|
@@ -6206,7 +6220,7 @@ const Ys = ({
|
|
|
6206
6220
|
[P.name]: E
|
|
6207
6221
|
};
|
|
6208
6222
|
}, {});
|
|
6209
|
-
},
|
|
6223
|
+
}, x = () => ({
|
|
6210
6224
|
before: r,
|
|
6211
6225
|
after: {
|
|
6212
6226
|
type: "SmeupDataTable",
|
|
@@ -6238,7 +6252,7 @@ const Ys = ({
|
|
|
6238
6252
|
}
|
|
6239
6253
|
)) }),
|
|
6240
6254
|
!t && /* @__PURE__ */ g.jsx(
|
|
6241
|
-
|
|
6255
|
+
Ae,
|
|
6242
6256
|
{
|
|
6243
6257
|
onClick: d,
|
|
6244
6258
|
bindValue: "submit",
|
|
@@ -6252,7 +6266,7 @@ const Ys = ({
|
|
|
6252
6266
|
export {
|
|
6253
6267
|
Xs as AppBar,
|
|
6254
6268
|
Ar as Autocomplete,
|
|
6255
|
-
|
|
6269
|
+
Ae as Button,
|
|
6256
6270
|
Tn as ButtonList,
|
|
6257
6271
|
jn as Checkbox,
|
|
6258
6272
|
Dn as Combobox,
|
|
@@ -6264,6 +6278,6 @@ export {
|
|
|
6264
6278
|
fe as Icon,
|
|
6265
6279
|
ra as InputPanel,
|
|
6266
6280
|
gs as Password,
|
|
6267
|
-
|
|
6281
|
+
je as Textfield,
|
|
6268
6282
|
Js as configurePaths
|
|
6269
6283
|
};
|