@sme.up/ketchup2 2.0.0-SNAPSHOT-20250626151844 → 2.0.0-SNAPSHOT-20250626154924
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ketchup2.es.js
CHANGED
|
@@ -52,20 +52,20 @@ function Hr() {
|
|
|
52
52
|
function r(h) {
|
|
53
53
|
if (h == null) return null;
|
|
54
54
|
if (typeof h == "function")
|
|
55
|
-
return h.$$typeof ===
|
|
55
|
+
return h.$$typeof === D ? null : h.displayName || h.name || null;
|
|
56
56
|
if (typeof h == "string") return h;
|
|
57
57
|
switch (h) {
|
|
58
58
|
case v:
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case E:
|
|
61
61
|
return "Profiler";
|
|
62
|
-
case
|
|
62
|
+
case w:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case y:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case R:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case T:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof h == "object")
|
|
@@ -104,8 +104,8 @@ function Hr() {
|
|
|
104
104
|
}
|
|
105
105
|
if (x) {
|
|
106
106
|
x = console;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var j = x.error, C = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return j.call(
|
|
109
109
|
x,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
111
|
C
|
|
@@ -124,7 +124,7 @@ function Hr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = N.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
@@ -138,31 +138,31 @@ function Hr() {
|
|
|
138
138
|
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
140
|
function o(h, x) {
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function j() {
|
|
142
|
+
I || (I = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
x
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
j.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: j,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function c() {
|
|
153
153
|
var h = r(this.type);
|
|
154
|
-
return
|
|
154
|
+
return W[h] || (W[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(h, x,
|
|
159
|
-
return
|
|
158
|
+
function l(h, x, j, C, $, L, U, B) {
|
|
159
|
+
return j = L.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: x,
|
|
163
163
|
props: L,
|
|
164
164
|
_owner: $
|
|
165
|
-
}, (
|
|
165
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: c
|
|
168
168
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -179,33 +179,33 @@ function Hr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: U
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
|
-
value:
|
|
187
|
+
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
190
|
+
function u(h, x, j, C, $, L, U, B) {
|
|
191
|
+
var Y = x.children;
|
|
192
|
+
if (Y !== void 0)
|
|
193
193
|
if (C)
|
|
194
|
-
if (A(
|
|
195
|
-
for (C = 0; C <
|
|
196
|
-
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
194
|
+
if (A(Y)) {
|
|
195
|
+
for (C = 0; C < Y.length; C++)
|
|
196
|
+
f(Y[C]);
|
|
197
|
+
Object.freeze && Object.freeze(Y);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
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
|
-
else
|
|
202
|
+
else f(Y);
|
|
203
203
|
if (P.call(x, "key")) {
|
|
204
|
-
|
|
204
|
+
Y = r(h);
|
|
205
205
|
var J = Object.keys(x).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
C = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[
|
|
208
|
+
C = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[Y + C] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -213,34 +213,34 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
215
|
C,
|
|
216
|
-
|
|
216
|
+
Y,
|
|
217
217
|
J,
|
|
218
|
-
|
|
219
|
-
), F[
|
|
218
|
+
Y
|
|
219
|
+
), F[Y + C] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (
|
|
222
|
-
|
|
221
|
+
if (Y = null, j !== void 0 && (t(j), Y = "" + j), i(x) && (t(x.key), Y = "" + x.key), "key" in x) {
|
|
222
|
+
j = {};
|
|
223
223
|
for (var G in x)
|
|
224
|
-
G !== "key" && (
|
|
225
|
-
} else
|
|
226
|
-
return
|
|
227
|
-
|
|
224
|
+
G !== "key" && (j[G] = x[G]);
|
|
225
|
+
} else j = x;
|
|
226
|
+
return Y && o(
|
|
227
|
+
j,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), l(
|
|
230
230
|
h,
|
|
231
|
-
|
|
231
|
+
Y,
|
|
232
232
|
L,
|
|
233
233
|
$,
|
|
234
234
|
s(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
235
|
+
j,
|
|
236
|
+
U,
|
|
237
|
+
B
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function f(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"),
|
|
243
|
+
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), N = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, P = Object.prototype.hasOwnProperty, A = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
@@ -248,33 +248,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var I, W = {}, z = d["react-stack-bottom-frame"].bind(
|
|
252
252
|
d,
|
|
253
253
|
a
|
|
254
|
-
)(), X =
|
|
255
|
-
Me.Fragment = v, Me.jsx = function(h, x,
|
|
256
|
-
var L = 1e4 >
|
|
257
|
-
return
|
|
254
|
+
)(), X = V(n(a)), F = {};
|
|
255
|
+
Me.Fragment = v, Me.jsx = function(h, x, j, C, $) {
|
|
256
|
+
var L = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
257
|
+
return u(
|
|
258
258
|
h,
|
|
259
259
|
x,
|
|
260
|
-
|
|
260
|
+
j,
|
|
261
261
|
!1,
|
|
262
262
|
C,
|
|
263
263
|
$,
|
|
264
264
|
L ? Error("react-stack-top-frame") : z,
|
|
265
|
-
L ?
|
|
265
|
+
L ? V(n(h)) : X
|
|
266
266
|
);
|
|
267
|
-
}, Me.jsxs = function(h, x,
|
|
268
|
-
var L = 1e4 >
|
|
269
|
-
return
|
|
267
|
+
}, Me.jsxs = function(h, x, j, C, $) {
|
|
268
|
+
var L = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
269
|
+
return u(
|
|
270
270
|
h,
|
|
271
271
|
x,
|
|
272
|
-
|
|
272
|
+
j,
|
|
273
273
|
!0,
|
|
274
274
|
C,
|
|
275
275
|
$,
|
|
276
276
|
L ? Error("react-stack-top-frame") : z,
|
|
277
|
-
L ?
|
|
277
|
+
L ? V(n(h)) : X
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Me;
|
|
@@ -283,12 +283,12 @@ var Mt;
|
|
|
283
283
|
function Gr() {
|
|
284
284
|
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? qe.exports = Br() : qe.exports = Hr()), qe.exports;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
286
|
+
var g = Gr();
|
|
287
287
|
const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
288
288
|
const n = {
|
|
289
289
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
290
290
|
};
|
|
291
|
-
return /* @__PURE__ */
|
|
291
|
+
return /* @__PURE__ */ g.jsx("label", { className: n.container, htmlFor: t, children: r });
|
|
292
292
|
}, ge = {
|
|
293
293
|
"smp-layout": "_smp-layout_pdvd2_1",
|
|
294
294
|
"smp-layout-horizontal": "_smp-layout-horizontal_pdvd2_9",
|
|
@@ -366,15 +366,15 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
366
366
|
Object.keys(t)
|
|
367
367
|
), i = (d) => d.reduce((m, p) => {
|
|
368
368
|
var O, S;
|
|
369
|
-
let v = "",
|
|
370
|
-
return (O = p.sections) != null && O.length ? (v = ge["smp-layout-section-grid"],
|
|
369
|
+
let v = "", w = {}, E = {}, b = "";
|
|
370
|
+
return (O = p.sections) != null && O.length ? (v = ge["smp-layout-section-grid"], w = i(p.sections), p.gridCols === void 0 && (b = ge[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (p.horizontal || Vt(p.sections)) && (E = Ft(
|
|
371
371
|
p.sections,
|
|
372
372
|
p.horizontal ? n : s
|
|
373
373
|
)))) : (S = p.content) != null && S.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (v = ge["smp-layout-section-grid"], b = ge["smp-grid-template-cols"], E = {
|
|
374
374
|
[n]: `repeat(${p.gridCols}, 1fr)`
|
|
375
375
|
}) : v = ge["smp-layout-section-flex"]), {
|
|
376
376
|
...m,
|
|
377
|
-
...
|
|
377
|
+
...w,
|
|
378
378
|
[p.id]: {
|
|
379
379
|
classes: `${v} ${ge[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${b} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
380
380
|
styles: E
|
|
@@ -383,30 +383,30 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
383
383
|
}, {}), o = i(a), c = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, l = e.horizontal || Vt(e.sections || []) ? Ft(
|
|
384
384
|
a,
|
|
385
385
|
e.horizontal ? n : s
|
|
386
|
-
) : {},
|
|
386
|
+
) : {}, u = (d) => {
|
|
387
387
|
var p, v;
|
|
388
|
-
const m = /* @__PURE__ */
|
|
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: (p = d.sections) != null && p.length ? d.sections.map((
|
|
395
|
-
(
|
|
394
|
+
children: (p = d.sections) != null && p.length ? d.sections.map((w) => u(w)) : (v = d.content) == null ? void 0 : v.map(
|
|
395
|
+
(w) => f(w, d.justify, d.align)
|
|
396
396
|
)
|
|
397
397
|
},
|
|
398
398
|
`section-${d.id}`
|
|
399
399
|
);
|
|
400
|
-
return d.title ? /* @__PURE__ */
|
|
400
|
+
return d.title ? /* @__PURE__ */ g.jsxs(
|
|
401
401
|
"div",
|
|
402
402
|
{
|
|
403
403
|
className: ge["smp-layout-section-with-title"],
|
|
404
404
|
children: [
|
|
405
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ g.jsx(
|
|
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__ */
|
|
409
|
+
children: /* @__PURE__ */ g.jsx(Re, { label: d.title })
|
|
410
410
|
}
|
|
411
411
|
),
|
|
412
412
|
m
|
|
@@ -414,14 +414,14 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
414
414
|
},
|
|
415
415
|
`title-section-${d.id}`
|
|
416
416
|
) : m;
|
|
417
|
-
},
|
|
417
|
+
}, f = (d, m, p) => {
|
|
418
418
|
const v = t[d.id];
|
|
419
419
|
if (!v) return null;
|
|
420
420
|
const E = {
|
|
421
421
|
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
422
422
|
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
423
423
|
}, b = `${ge["smp-layout-cell-container"]} ${m ? `smp-justifyContent-${m}` : ""} ${p ? `smp-alignItems-${p}` : ""}`;
|
|
424
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ g.jsx(
|
|
425
425
|
"div",
|
|
426
426
|
{
|
|
427
427
|
className: b,
|
|
@@ -432,7 +432,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
432
432
|
d.id
|
|
433
433
|
);
|
|
434
434
|
};
|
|
435
|
-
return /* @__PURE__ */
|
|
435
|
+
return /* @__PURE__ */ g.jsx("div", { className: c, style: l, "smp-id": "layout", children: a.map((d) => u(d)) });
|
|
436
436
|
}, te = {
|
|
437
437
|
AUTOCOMPLETE: "ACP",
|
|
438
438
|
BUTTON_LIST: "BTL",
|
|
@@ -492,9 +492,9 @@ class ot {
|
|
|
492
492
|
}
|
|
493
493
|
function Xr(r, e) {
|
|
494
494
|
if (Ct(r)) {
|
|
495
|
-
const
|
|
496
|
-
if (!isNaN(
|
|
497
|
-
return
|
|
495
|
+
const u = new Date(r);
|
|
496
|
+
if (!isNaN(u.getTime()))
|
|
497
|
+
return u;
|
|
498
498
|
}
|
|
499
499
|
const t = /* @__PURE__ */ new Date(), n = r.replaceAll("/", "").replaceAll("-", "");
|
|
500
500
|
let s = "DDMMYYYY";
|
|
@@ -511,14 +511,14 @@ function Xr(r, e) {
|
|
|
511
511
|
case 5:
|
|
512
512
|
case 6: {
|
|
513
513
|
o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? l = "19" + n.substring(4) : l = "20" + n.substring(4);
|
|
514
|
-
let
|
|
515
|
-
return i === 0 ? (
|
|
514
|
+
let u = 0, f = 0;
|
|
515
|
+
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), Rt(o, f, parseInt(l)) && ze(t) ? t : r;
|
|
516
516
|
}
|
|
517
517
|
case 7:
|
|
518
518
|
case 8: {
|
|
519
519
|
o = parseInt(n.substring(0, 2)), c = parseInt(n.substring(2, 4)), l = n.substring(4);
|
|
520
|
-
let
|
|
521
|
-
return i === 0 ? (
|
|
520
|
+
let u = 0, f = 0;
|
|
521
|
+
return i === 0 ? (u = c, f = o - 1, t.setFullYear(parseInt(l), f, u)) : a === 0 && (u = o, f = c - 1, t.setFullYear(parseInt(l), f, u)), Rt(u, f, parseInt(l)) && ze(t) ? t : r;
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
return r;
|
|
@@ -614,14 +614,14 @@ function ht({
|
|
|
614
614
|
const t = ce(null), n = ce(null), [s, a] = q(0), i = le(() => {
|
|
615
615
|
const o = t.current, c = n.current;
|
|
616
616
|
if (!o || !c) return;
|
|
617
|
-
const { top: l, left:
|
|
618
|
-
a(
|
|
617
|
+
const { top: l, left: u, width: f, height: d } = o.getBoundingClientRect();
|
|
618
|
+
a(f);
|
|
619
619
|
const m = c.offsetHeight, p = c.offsetWidth;
|
|
620
620
|
if (p === 0 || m === 0) {
|
|
621
621
|
requestAnimationFrame(i);
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
|
-
let v = l + window.scrollY,
|
|
624
|
+
let v = l + window.scrollY, w = u + window.scrollX;
|
|
625
625
|
switch (r) {
|
|
626
626
|
case "top":
|
|
627
627
|
v -= m;
|
|
@@ -630,22 +630,22 @@ function ht({
|
|
|
630
630
|
v += d;
|
|
631
631
|
break;
|
|
632
632
|
case "left":
|
|
633
|
-
|
|
633
|
+
w -= p;
|
|
634
634
|
break;
|
|
635
635
|
case "right":
|
|
636
|
-
|
|
636
|
+
w += f;
|
|
637
637
|
break;
|
|
638
638
|
}
|
|
639
639
|
requestAnimationFrame(() => {
|
|
640
|
-
c.style.transform = `translate(${
|
|
640
|
+
c.style.transform = `translate(${w}px, ${v}px)`, c.style.opacity = "1";
|
|
641
641
|
});
|
|
642
642
|
}, [r]);
|
|
643
643
|
return Vr(() => {
|
|
644
644
|
if (!e) return;
|
|
645
645
|
let o;
|
|
646
646
|
const c = () => {
|
|
647
|
-
const
|
|
648
|
-
|
|
647
|
+
const u = t.current, f = n.current;
|
|
648
|
+
u && f ? i() : o = requestAnimationFrame(c);
|
|
649
649
|
};
|
|
650
650
|
o = requestAnimationFrame(c);
|
|
651
651
|
const l = new MutationObserver(() => {
|
|
@@ -678,7 +678,7 @@ const Le = (r, e, t) => {
|
|
|
678
678
|
const s = {
|
|
679
679
|
container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${t ? `smp-helper-text-${t}` : ""}`
|
|
680
680
|
};
|
|
681
|
-
return /* @__PURE__ */
|
|
681
|
+
return /* @__PURE__ */ g.jsx("label", { className: s.container, id: n, children: r });
|
|
682
682
|
};
|
|
683
683
|
function tn(r, e) {
|
|
684
684
|
if (r == null) return {};
|
|
@@ -723,59 +723,59 @@ function nn() {
|
|
|
723
723
|
Ut = 1;
|
|
724
724
|
var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
725
725
|
Je.format = i, Je.parse = o;
|
|
726
|
-
function i(
|
|
727
|
-
if (!
|
|
726
|
+
function i(f) {
|
|
727
|
+
if (!f || typeof f != "object")
|
|
728
728
|
throw new TypeError("argument obj is required");
|
|
729
|
-
var d =
|
|
729
|
+
var d = f.parameters, m = f.type;
|
|
730
730
|
if (!m || !a.test(m))
|
|
731
731
|
throw new TypeError("invalid type");
|
|
732
732
|
var p = m;
|
|
733
733
|
if (d && typeof d == "object")
|
|
734
|
-
for (var v,
|
|
735
|
-
if (v =
|
|
734
|
+
for (var v, w = Object.keys(d).sort(), E = 0; E < w.length; E++) {
|
|
735
|
+
if (v = w[E], !t.test(v))
|
|
736
736
|
throw new TypeError("invalid parameter name");
|
|
737
737
|
p += "; " + v + "=" + l(d[v]);
|
|
738
738
|
}
|
|
739
739
|
return p;
|
|
740
740
|
}
|
|
741
|
-
function o(
|
|
742
|
-
if (!
|
|
741
|
+
function o(f) {
|
|
742
|
+
if (!f)
|
|
743
743
|
throw new TypeError("argument string is required");
|
|
744
|
-
var d = typeof
|
|
744
|
+
var d = typeof f == "object" ? c(f) : f;
|
|
745
745
|
if (typeof d != "string")
|
|
746
746
|
throw new TypeError("argument string is required to be a string");
|
|
747
747
|
var m = d.indexOf(";"), p = m !== -1 ? d.slice(0, m).trim() : d.trim();
|
|
748
748
|
if (!a.test(p))
|
|
749
749
|
throw new TypeError("invalid media type");
|
|
750
|
-
var v = new
|
|
750
|
+
var v = new u(p.toLowerCase());
|
|
751
751
|
if (m !== -1) {
|
|
752
|
-
var
|
|
752
|
+
var w, E, b;
|
|
753
753
|
for (r.lastIndex = m; E = r.exec(d); ) {
|
|
754
754
|
if (E.index !== m)
|
|
755
755
|
throw new TypeError("invalid parameter format");
|
|
756
|
-
m += E[0].length,
|
|
756
|
+
m += E[0].length, w = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(n, "$1"))), v.parameters[w] = b;
|
|
757
757
|
}
|
|
758
758
|
if (m !== d.length)
|
|
759
759
|
throw new TypeError("invalid parameter format");
|
|
760
760
|
}
|
|
761
761
|
return v;
|
|
762
762
|
}
|
|
763
|
-
function c(
|
|
763
|
+
function c(f) {
|
|
764
764
|
var d;
|
|
765
|
-
if (typeof
|
|
765
|
+
if (typeof f.getHeader == "function" ? d = f.getHeader("content-type") : typeof f.headers == "object" && (d = f.headers && f.headers["content-type"]), typeof d != "string")
|
|
766
766
|
throw new TypeError("content-type header is missing from object");
|
|
767
767
|
return d;
|
|
768
768
|
}
|
|
769
|
-
function l(
|
|
770
|
-
var d = String(
|
|
769
|
+
function l(f) {
|
|
770
|
+
var d = String(f);
|
|
771
771
|
if (t.test(d))
|
|
772
772
|
return d;
|
|
773
773
|
if (d.length > 0 && !e.test(d))
|
|
774
774
|
throw new TypeError("invalid parameter value");
|
|
775
775
|
return '"' + d.replace(s, "\\$1") + '"';
|
|
776
776
|
}
|
|
777
|
-
function f
|
|
778
|
-
this.parameters = /* @__PURE__ */ Object.create(null), this.type =
|
|
777
|
+
function u(f) {
|
|
778
|
+
this.parameters = /* @__PURE__ */ Object.create(null), this.type = f;
|
|
779
779
|
}
|
|
780
780
|
return Je;
|
|
781
781
|
}
|
|
@@ -857,28 +857,28 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
857
857
|
}
|
|
858
858
|
xe.push(e), e.setAttribute("src", "");
|
|
859
859
|
var l = s ? on : ln;
|
|
860
|
-
l(c, a, function(
|
|
861
|
-
if (!
|
|
862
|
-
xe.splice(xe.indexOf(e), 1), e = null, o(
|
|
860
|
+
l(c, a, function(u, f) {
|
|
861
|
+
if (!f) {
|
|
862
|
+
xe.splice(xe.indexOf(e), 1), e = null, o(u);
|
|
863
863
|
return;
|
|
864
864
|
}
|
|
865
865
|
var d = e.getAttribute("id");
|
|
866
|
-
d &&
|
|
866
|
+
d && f.setAttribute("id", d);
|
|
867
867
|
var m = e.getAttribute("title");
|
|
868
|
-
m &&
|
|
868
|
+
m && f.setAttribute("title", m);
|
|
869
869
|
var p = e.getAttribute("width");
|
|
870
|
-
p &&
|
|
870
|
+
p && f.setAttribute("width", p);
|
|
871
871
|
var v = e.getAttribute("height");
|
|
872
|
-
v &&
|
|
873
|
-
var
|
|
874
|
-
|
|
872
|
+
v && f.setAttribute("height", v);
|
|
873
|
+
var w = Array.from(new Set(yt(yt(yt([], (f.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
874
|
+
f.setAttribute("class", w);
|
|
875
875
|
var E = e.getAttribute("style");
|
|
876
|
-
E &&
|
|
876
|
+
E && f.setAttribute("style", E), f.setAttribute("data-src", c);
|
|
877
877
|
var b = [].filter.call(e.attributes, function(X) {
|
|
878
878
|
return /^data-\w[\w-]*$/.test(X.name);
|
|
879
879
|
});
|
|
880
880
|
if (Array.prototype.forEach.call(b, function(X) {
|
|
881
|
-
X.name && X.value &&
|
|
881
|
+
X.name && X.value && f.setAttribute(X.name, X.value);
|
|
882
882
|
}), n) {
|
|
883
883
|
var O = {
|
|
884
884
|
clipPath: ["clip-path"],
|
|
@@ -891,59 +891,59 @@ var sn = nn(), Ce = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
891
891
|
path: [],
|
|
892
892
|
pattern: ["fill", "stroke"],
|
|
893
893
|
radialGradient: ["fill", "stroke"]
|
|
894
|
-
}, S,
|
|
894
|
+
}, S, y, R, k, _;
|
|
895
895
|
Object.keys(O).forEach(function(X) {
|
|
896
|
-
S = X,
|
|
896
|
+
S = X, R = O[X], y = f.querySelectorAll(S + "[id]");
|
|
897
897
|
for (var F = function(C, $) {
|
|
898
|
-
k =
|
|
898
|
+
k = y[C].id, _ = k + "-" + un();
|
|
899
899
|
var L;
|
|
900
|
-
Array.prototype.forEach.call(
|
|
901
|
-
L =
|
|
900
|
+
Array.prototype.forEach.call(R, function(H) {
|
|
901
|
+
L = f.querySelectorAll("[" + H + '*="' + k + '"]');
|
|
902
902
|
for (var Z = 0, re = L.length; Z < re; Z++) {
|
|
903
|
-
var se = L[Z].getAttribute(
|
|
904
|
-
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || L[Z].setAttribute(
|
|
903
|
+
var se = L[Z].getAttribute(H);
|
|
904
|
+
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || L[Z].setAttribute(H, "url(#" + _ + ")");
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
|
-
for (var
|
|
908
|
-
var G = Y
|
|
909
|
-
G && G.toString() === "#" +
|
|
907
|
+
for (var U = f.querySelectorAll("[*|href]"), B = [], Y = 0, J = U.length; Y < J; Y++) {
|
|
908
|
+
var G = U[Y].getAttributeNS(vt, "href");
|
|
909
|
+
G && G.toString() === "#" + y[C].id && B.push(U[Y]);
|
|
910
910
|
}
|
|
911
|
-
for (var ae = 0, M =
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}, h = 0, x =
|
|
911
|
+
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
912
|
+
B[ae].setAttributeNS(vt, "href", "#" + _);
|
|
913
|
+
y[C].id = _;
|
|
914
|
+
}, h = 0, x = y.length; h < x; h++)
|
|
915
915
|
F(h);
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
|
|
919
|
-
for (var
|
|
920
|
-
P =
|
|
921
|
-
if (
|
|
922
|
-
for (var
|
|
923
|
-
new Function(
|
|
918
|
+
f.removeAttribute("xmlns:a");
|
|
919
|
+
for (var T = f.querySelectorAll("script"), D = [], N, P, A = 0, V = T.length; A < V; A++)
|
|
920
|
+
P = T[A].getAttribute("type"), (!P || P === "application/ecmascript" || P === "application/javascript" || P === "text/javascript") && (N = T[A].innerText || T[A].textContent, N && D.push(N), f.removeChild(T[A]));
|
|
921
|
+
if (D.length > 0 && (t === "always" || t === "once" && !Ht[c])) {
|
|
922
|
+
for (var I = 0, W = D.length; I < W; I++)
|
|
923
|
+
new Function(D[I])(window);
|
|
924
924
|
Ht[c] = !0;
|
|
925
925
|
}
|
|
926
|
-
var z =
|
|
926
|
+
var z = f.querySelectorAll("style");
|
|
927
927
|
if (Array.prototype.forEach.call(z, function(X) {
|
|
928
928
|
X.textContent += "";
|
|
929
|
-
}),
|
|
929
|
+
}), f.setAttribute("xmlns", fn), f.setAttribute("xmlns:xlink", vt), i(f), !e.parentNode) {
|
|
930
930
|
xe.splice(xe.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
931
931
|
return;
|
|
932
932
|
}
|
|
933
|
-
e.parentNode.replaceChild(
|
|
933
|
+
e.parentNode.replaceChild(f, e), xe.splice(xe.indexOf(e), 1), e = null, o(null, f);
|
|
934
934
|
});
|
|
935
935
|
}, dn = function(e, t) {
|
|
936
936
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
937
937
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
938
938
|
} : i, c = n.beforeEach, l = c === void 0 ? function() {
|
|
939
|
-
} : c,
|
|
939
|
+
} : c, u = n.cacheRequests, f = u === void 0 ? !0 : u, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, v = p === void 0 ? !1 : p, w = n.renumerateIRIElements, E = w === void 0 ? !0 : w;
|
|
940
940
|
if (e && "length" in e)
|
|
941
941
|
for (var b = 0, O = 0, S = e.length; O < S; O++)
|
|
942
|
-
Gt(e[O], m, E,
|
|
943
|
-
o(
|
|
942
|
+
Gt(e[O], m, E, f, v, l, function(y, R) {
|
|
943
|
+
o(y, R), e && "length" in e && e.length === ++b && a(b);
|
|
944
944
|
});
|
|
945
|
-
else e ? Gt(e, m, E,
|
|
946
|
-
o(
|
|
945
|
+
else e ? Gt(e, m, E, f, v, l, function(y, R) {
|
|
946
|
+
o(y, R), a(1), e = null;
|
|
947
947
|
}) : a(0);
|
|
948
948
|
}, Xe = { exports: {} }, Ze = { exports: {} }, Q = {};
|
|
949
949
|
/** @license React v16.13.1
|
|
@@ -958,66 +958,66 @@ var Kt;
|
|
|
958
958
|
function pn() {
|
|
959
959
|
if (Kt) return Q;
|
|
960
960
|
Kt = 1;
|
|
961
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111,
|
|
962
|
-
function O(
|
|
963
|
-
if (typeof
|
|
964
|
-
var
|
|
965
|
-
switch (
|
|
961
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, w = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
|
|
962
|
+
function O(y) {
|
|
963
|
+
if (typeof y == "object" && y !== null) {
|
|
964
|
+
var R = y.$$typeof;
|
|
965
|
+
switch (R) {
|
|
966
966
|
case e:
|
|
967
|
-
switch (
|
|
967
|
+
switch (y = y.type, y) {
|
|
968
968
|
case c:
|
|
969
969
|
case l:
|
|
970
970
|
case n:
|
|
971
971
|
case a:
|
|
972
972
|
case s:
|
|
973
|
-
case
|
|
974
|
-
return
|
|
973
|
+
case f:
|
|
974
|
+
return y;
|
|
975
975
|
default:
|
|
976
|
-
switch (
|
|
976
|
+
switch (y = y && y.$$typeof, y) {
|
|
977
977
|
case o:
|
|
978
|
-
case
|
|
978
|
+
case u:
|
|
979
979
|
case p:
|
|
980
980
|
case m:
|
|
981
981
|
case i:
|
|
982
|
-
return
|
|
982
|
+
return y;
|
|
983
983
|
default:
|
|
984
|
-
return
|
|
984
|
+
return R;
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
case t:
|
|
988
|
-
return
|
|
988
|
+
return R;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
|
-
function S(
|
|
993
|
-
return O(
|
|
994
|
-
}
|
|
995
|
-
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef =
|
|
996
|
-
return S(
|
|
997
|
-
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(
|
|
998
|
-
return O(
|
|
999
|
-
}, Q.isContextProvider = function(
|
|
1000
|
-
return O(
|
|
1001
|
-
}, Q.isElement = function(
|
|
1002
|
-
return typeof
|
|
1003
|
-
}, Q.isForwardRef = function(
|
|
1004
|
-
return O(
|
|
1005
|
-
}, Q.isFragment = function(
|
|
1006
|
-
return O(
|
|
1007
|
-
}, Q.isLazy = function(
|
|
1008
|
-
return O(
|
|
1009
|
-
}, Q.isMemo = function(
|
|
1010
|
-
return O(
|
|
1011
|
-
}, Q.isPortal = function(
|
|
1012
|
-
return O(
|
|
1013
|
-
}, Q.isProfiler = function(
|
|
1014
|
-
return O(
|
|
1015
|
-
}, Q.isStrictMode = function(
|
|
1016
|
-
return O(
|
|
1017
|
-
}, Q.isSuspense = function(
|
|
1018
|
-
return O(
|
|
1019
|
-
}, Q.isValidElementType = function(
|
|
1020
|
-
return typeof
|
|
992
|
+
function S(y) {
|
|
993
|
+
return O(y) === l;
|
|
994
|
+
}
|
|
995
|
+
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = f, Q.isAsyncMode = function(y) {
|
|
996
|
+
return S(y) || O(y) === c;
|
|
997
|
+
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(y) {
|
|
998
|
+
return O(y) === o;
|
|
999
|
+
}, Q.isContextProvider = function(y) {
|
|
1000
|
+
return O(y) === i;
|
|
1001
|
+
}, Q.isElement = function(y) {
|
|
1002
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
1003
|
+
}, Q.isForwardRef = function(y) {
|
|
1004
|
+
return O(y) === u;
|
|
1005
|
+
}, Q.isFragment = function(y) {
|
|
1006
|
+
return O(y) === n;
|
|
1007
|
+
}, Q.isLazy = function(y) {
|
|
1008
|
+
return O(y) === p;
|
|
1009
|
+
}, Q.isMemo = function(y) {
|
|
1010
|
+
return O(y) === m;
|
|
1011
|
+
}, Q.isPortal = function(y) {
|
|
1012
|
+
return O(y) === t;
|
|
1013
|
+
}, Q.isProfiler = function(y) {
|
|
1014
|
+
return O(y) === a;
|
|
1015
|
+
}, Q.isStrictMode = function(y) {
|
|
1016
|
+
return O(y) === s;
|
|
1017
|
+
}, Q.isSuspense = function(y) {
|
|
1018
|
+
return O(y) === f;
|
|
1019
|
+
}, Q.isValidElementType = function(y) {
|
|
1020
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === l || y === a || y === s || y === f || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === m || y.$$typeof === i || y.$$typeof === o || y.$$typeof === u || y.$$typeof === w || y.$$typeof === E || y.$$typeof === b || y.$$typeof === v);
|
|
1021
1021
|
}, Q.typeOf = O, Q;
|
|
1022
1022
|
}
|
|
1023
1023
|
var ee = {};
|
|
@@ -1032,15 +1032,15 @@ var ee = {};
|
|
|
1032
1032
|
var qt;
|
|
1033
1033
|
function hn() {
|
|
1034
1034
|
return qt || (qt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1035
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111,
|
|
1035
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, c = r ? Symbol.for("react.async_mode") : 60111, l = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, f = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, v = r ? Symbol.for("react.block") : 60121, w = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, b = r ? Symbol.for("react.scope") : 60119;
|
|
1036
1036
|
function O(M) {
|
|
1037
1037
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1038
|
-
M === n || M === l || M === a || M === s || M ===
|
|
1038
|
+
M === n || M === l || M === a || M === s || M === f || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === u || M.$$typeof === w || M.$$typeof === E || M.$$typeof === b || M.$$typeof === v);
|
|
1039
1039
|
}
|
|
1040
1040
|
function S(M) {
|
|
1041
1041
|
if (typeof M == "object" && M !== null) {
|
|
1042
|
-
var
|
|
1043
|
-
switch (
|
|
1042
|
+
var H = M.$$typeof;
|
|
1043
|
+
switch (H) {
|
|
1044
1044
|
case e:
|
|
1045
1045
|
var Z = M.type;
|
|
1046
1046
|
switch (Z) {
|
|
@@ -1049,27 +1049,27 @@ function hn() {
|
|
|
1049
1049
|
case n:
|
|
1050
1050
|
case a:
|
|
1051
1051
|
case s:
|
|
1052
|
-
case
|
|
1052
|
+
case f:
|
|
1053
1053
|
return Z;
|
|
1054
1054
|
default:
|
|
1055
1055
|
var re = Z && Z.$$typeof;
|
|
1056
1056
|
switch (re) {
|
|
1057
1057
|
case o:
|
|
1058
|
-
case
|
|
1058
|
+
case u:
|
|
1059
1059
|
case p:
|
|
1060
1060
|
case m:
|
|
1061
1061
|
case i:
|
|
1062
1062
|
return re;
|
|
1063
1063
|
default:
|
|
1064
|
-
return
|
|
1064
|
+
return H;
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
case t:
|
|
1068
|
-
return
|
|
1068
|
+
return H;
|
|
1069
1069
|
}
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1072
|
+
var y = c, R = l, k = o, _ = i, T = e, D = u, N = n, P = p, A = m, V = t, I = a, W = s, z = f, X = !1;
|
|
1073
1073
|
function F(M) {
|
|
1074
1074
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || S(M) === c;
|
|
1075
1075
|
}
|
|
@@ -1079,25 +1079,25 @@ function hn() {
|
|
|
1079
1079
|
function x(M) {
|
|
1080
1080
|
return S(M) === o;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function j(M) {
|
|
1083
1083
|
return S(M) === i;
|
|
1084
1084
|
}
|
|
1085
1085
|
function C(M) {
|
|
1086
1086
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
1087
1087
|
}
|
|
1088
1088
|
function $(M) {
|
|
1089
|
-
return S(M) ===
|
|
1089
|
+
return S(M) === u;
|
|
1090
1090
|
}
|
|
1091
1091
|
function L(M) {
|
|
1092
1092
|
return S(M) === n;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function U(M) {
|
|
1095
1095
|
return S(M) === p;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function B(M) {
|
|
1098
1098
|
return S(M) === m;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Y(M) {
|
|
1101
1101
|
return S(M) === t;
|
|
1102
1102
|
}
|
|
1103
1103
|
function J(M) {
|
|
@@ -1107,9 +1107,9 @@ function hn() {
|
|
|
1107
1107
|
return S(M) === s;
|
|
1108
1108
|
}
|
|
1109
1109
|
function ae(M) {
|
|
1110
|
-
return S(M) ===
|
|
1110
|
+
return S(M) === f;
|
|
1111
1111
|
}
|
|
1112
|
-
ee.AsyncMode =
|
|
1112
|
+
ee.AsyncMode = y, ee.ConcurrentMode = R, ee.ContextConsumer = k, ee.ContextProvider = _, ee.Element = T, ee.ForwardRef = D, ee.Fragment = N, ee.Lazy = P, ee.Memo = A, ee.Portal = V, ee.Profiler = I, ee.StrictMode = W, ee.Suspense = z, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = j, ee.isElement = C, ee.isForwardRef = $, ee.isFragment = L, ee.isLazy = U, ee.isMemo = B, ee.isPortal = Y, ee.isProfiler = J, ee.isStrictMode = G, ee.isSuspense = ae, ee.isValidElementType = O, ee.typeOf = S;
|
|
1113
1113
|
}()), ee;
|
|
1114
1114
|
}
|
|
1115
1115
|
var zt;
|
|
@@ -1140,24 +1140,24 @@ function mn() {
|
|
|
1140
1140
|
return !1;
|
|
1141
1141
|
for (var i = {}, o = 0; o < 10; o++)
|
|
1142
1142
|
i["_" + String.fromCharCode(o)] = o;
|
|
1143
|
-
var c = Object.getOwnPropertyNames(i).map(function(
|
|
1144
|
-
return i[
|
|
1143
|
+
var c = Object.getOwnPropertyNames(i).map(function(u) {
|
|
1144
|
+
return i[u];
|
|
1145
1145
|
});
|
|
1146
1146
|
if (c.join("") !== "0123456789")
|
|
1147
1147
|
return !1;
|
|
1148
1148
|
var l = {};
|
|
1149
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
1150
|
-
l[
|
|
1149
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
1150
|
+
l[u] = u;
|
|
1151
1151
|
}), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
|
|
1152
1152
|
} catch {
|
|
1153
1153
|
return !1;
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
return xt = s() ? Object.assign : function(a, i) {
|
|
1157
|
-
for (var o, c = n(a), l,
|
|
1158
|
-
o = Object(arguments[
|
|
1159
|
-
for (var
|
|
1160
|
-
e.call(o,
|
|
1157
|
+
for (var o, c = n(a), l, u = 1; u < arguments.length; u++) {
|
|
1158
|
+
o = Object(arguments[u]);
|
|
1159
|
+
for (var f in o)
|
|
1160
|
+
e.call(o, f) && (c[f] = o[f]);
|
|
1161
1161
|
if (r) {
|
|
1162
1162
|
l = r(o);
|
|
1163
1163
|
for (var d = 0; d < l.length; d++)
|
|
@@ -1197,27 +1197,27 @@ function gn() {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
function s(a, i, o, c, l) {
|
|
1199
1199
|
if (process.env.NODE_ENV !== "production") {
|
|
1200
|
-
for (var
|
|
1201
|
-
if (n(a,
|
|
1202
|
-
var
|
|
1200
|
+
for (var u in a)
|
|
1201
|
+
if (n(a, u)) {
|
|
1202
|
+
var f;
|
|
1203
1203
|
try {
|
|
1204
|
-
if (typeof a[
|
|
1204
|
+
if (typeof a[u] != "function") {
|
|
1205
1205
|
var d = Error(
|
|
1206
|
-
(c || "React class") + ": " + o + " type `" +
|
|
1206
|
+
(c || "React class") + ": " + o + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1207
1207
|
);
|
|
1208
1208
|
throw d.name = "Invariant Violation", d;
|
|
1209
1209
|
}
|
|
1210
|
-
|
|
1210
|
+
f = a[u](i, u, c, o, null, e);
|
|
1211
1211
|
} catch (p) {
|
|
1212
|
-
|
|
1212
|
+
f = p;
|
|
1213
1213
|
}
|
|
1214
|
-
if (
|
|
1215
|
-
(c || "React class") + ": type specification of " + o + " `" +
|
|
1216
|
-
),
|
|
1217
|
-
t[
|
|
1214
|
+
if (f && !(f instanceof Error) && r(
|
|
1215
|
+
(c || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1216
|
+
), f instanceof Error && !(f.message in t)) {
|
|
1217
|
+
t[f.message] = !0;
|
|
1218
1218
|
var m = l ? l() : "";
|
|
1219
1219
|
r(
|
|
1220
|
-
"Failed " + o + " type: " +
|
|
1220
|
+
"Failed " + o + " type: " + f.message + (m ?? "")
|
|
1221
1221
|
);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
@@ -1245,9 +1245,9 @@ function yn() {
|
|
|
1245
1245
|
return null;
|
|
1246
1246
|
}
|
|
1247
1247
|
return Et = function(o, c) {
|
|
1248
|
-
var l = typeof Symbol == "function" && Symbol.iterator,
|
|
1249
|
-
function
|
|
1250
|
-
var x = h && (l && h[l] || h[
|
|
1248
|
+
var l = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1249
|
+
function f(h) {
|
|
1250
|
+
var x = h && (l && h[l] || h[u]);
|
|
1251
1251
|
if (typeof x == "function")
|
|
1252
1252
|
return x;
|
|
1253
1253
|
}
|
|
@@ -1263,12 +1263,12 @@ function yn() {
|
|
|
1263
1263
|
any: b(),
|
|
1264
1264
|
arrayOf: O,
|
|
1265
1265
|
element: S(),
|
|
1266
|
-
elementType:
|
|
1267
|
-
instanceOf:
|
|
1268
|
-
node:
|
|
1266
|
+
elementType: y(),
|
|
1267
|
+
instanceOf: R,
|
|
1268
|
+
node: D(),
|
|
1269
1269
|
objectOf: _,
|
|
1270
1270
|
oneOf: k,
|
|
1271
|
-
oneOfType:
|
|
1271
|
+
oneOfType: T,
|
|
1272
1272
|
shape: P,
|
|
1273
1273
|
exact: A
|
|
1274
1274
|
};
|
|
@@ -1279,204 +1279,204 @@ function yn() {
|
|
|
1279
1279
|
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
1280
1280
|
}
|
|
1281
1281
|
v.prototype = Error.prototype;
|
|
1282
|
-
function
|
|
1282
|
+
function w(h) {
|
|
1283
1283
|
if (process.env.NODE_ENV !== "production")
|
|
1284
|
-
var x = {},
|
|
1285
|
-
function C(L,
|
|
1286
|
-
if (
|
|
1284
|
+
var x = {}, j = 0;
|
|
1285
|
+
function C(L, U, B, Y, J, G, ae) {
|
|
1286
|
+
if (Y = Y || d, G = G || B, ae !== t) {
|
|
1287
1287
|
if (c) {
|
|
1288
1288
|
var M = new Error(
|
|
1289
1289
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1290
1290
|
);
|
|
1291
1291
|
throw M.name = "Invariant Violation", M;
|
|
1292
1292
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1293
|
-
var
|
|
1294
|
-
!x[
|
|
1295
|
-
|
|
1296
|
-
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" +
|
|
1297
|
-
), x[
|
|
1293
|
+
var H = Y + ":" + B;
|
|
1294
|
+
!x[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1295
|
+
j < 3 && (a(
|
|
1296
|
+
"You are manually calling a React.PropTypes validation function for the `" + G + "` prop on `" + Y + "`. 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."
|
|
1297
|
+
), x[H] = !0, j++);
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
return
|
|
1300
|
+
return U[B] == null ? L ? U[B] === null ? new v("The " + J + " `" + G + "` is marked as required " + ("in `" + Y + "`, but its value is `null`.")) : new v("The " + J + " `" + G + "` is marked as required in " + ("`" + Y + "`, but its value is `undefined`.")) : null : h(U, B, Y, J, G);
|
|
1301
1301
|
}
|
|
1302
1302
|
var $ = C.bind(null, !1);
|
|
1303
1303
|
return $.isRequired = C.bind(null, !0), $;
|
|
1304
1304
|
}
|
|
1305
1305
|
function E(h) {
|
|
1306
|
-
function x(
|
|
1307
|
-
var
|
|
1306
|
+
function x(j, C, $, L, U, B) {
|
|
1307
|
+
var Y = j[C], J = W(Y);
|
|
1308
1308
|
if (J !== h) {
|
|
1309
|
-
var G = z(
|
|
1309
|
+
var G = z(Y);
|
|
1310
1310
|
return new v(
|
|
1311
|
-
"Invalid " + L + " `" +
|
|
1311
|
+
"Invalid " + L + " `" + U + "` of type " + ("`" + G + "` supplied to `" + $ + "`, expected ") + ("`" + h + "`."),
|
|
1312
1312
|
{ expectedType: h }
|
|
1313
1313
|
);
|
|
1314
1314
|
}
|
|
1315
1315
|
return null;
|
|
1316
1316
|
}
|
|
1317
|
-
return
|
|
1317
|
+
return w(x);
|
|
1318
1318
|
}
|
|
1319
1319
|
function b() {
|
|
1320
|
-
return
|
|
1320
|
+
return w(i);
|
|
1321
1321
|
}
|
|
1322
1322
|
function O(h) {
|
|
1323
|
-
function x(
|
|
1323
|
+
function x(j, C, $, L, U) {
|
|
1324
1324
|
if (typeof h != "function")
|
|
1325
|
-
return new v("Property `" +
|
|
1326
|
-
var
|
|
1327
|
-
if (!Array.isArray(
|
|
1328
|
-
var
|
|
1329
|
-
return new v("Invalid " + L + " `" +
|
|
1325
|
+
return new v("Property `" + U + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
1326
|
+
var B = j[C];
|
|
1327
|
+
if (!Array.isArray(B)) {
|
|
1328
|
+
var Y = W(B);
|
|
1329
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected an array."));
|
|
1330
1330
|
}
|
|
1331
|
-
for (var J = 0; J <
|
|
1332
|
-
var G = h(
|
|
1331
|
+
for (var J = 0; J < B.length; J++) {
|
|
1332
|
+
var G = h(B, J, $, L, U + "[" + J + "]", t);
|
|
1333
1333
|
if (G instanceof Error)
|
|
1334
1334
|
return G;
|
|
1335
1335
|
}
|
|
1336
1336
|
return null;
|
|
1337
1337
|
}
|
|
1338
|
-
return
|
|
1338
|
+
return w(x);
|
|
1339
1339
|
}
|
|
1340
1340
|
function S() {
|
|
1341
|
-
function h(x,
|
|
1342
|
-
var
|
|
1343
|
-
if (!o(
|
|
1344
|
-
var
|
|
1345
|
-
return new v("Invalid " + $ + " `" + L + "` of type " + ("`" +
|
|
1341
|
+
function h(x, j, C, $, L) {
|
|
1342
|
+
var U = x[j];
|
|
1343
|
+
if (!o(U)) {
|
|
1344
|
+
var B = W(U);
|
|
1345
|
+
return new v("Invalid " + $ + " `" + L + "` of type " + ("`" + B + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
1346
1346
|
}
|
|
1347
1347
|
return null;
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1350
|
-
}
|
|
1351
|
-
function
|
|
1352
|
-
function h(x,
|
|
1353
|
-
var
|
|
1354
|
-
if (!r.isValidElementType(
|
|
1355
|
-
var
|
|
1356
|
-
return new v("Invalid " + $ + " `" + L + "` of type " + ("`" +
|
|
1349
|
+
return w(h);
|
|
1350
|
+
}
|
|
1351
|
+
function y() {
|
|
1352
|
+
function h(x, j, C, $, L) {
|
|
1353
|
+
var U = x[j];
|
|
1354
|
+
if (!r.isValidElementType(U)) {
|
|
1355
|
+
var B = W(U);
|
|
1356
|
+
return new v("Invalid " + $ + " `" + L + "` of type " + ("`" + B + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
1357
1357
|
}
|
|
1358
1358
|
return null;
|
|
1359
1359
|
}
|
|
1360
|
-
return
|
|
1360
|
+
return w(h);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1363
|
-
function x(
|
|
1364
|
-
if (!(
|
|
1365
|
-
var
|
|
1366
|
-
return new v("Invalid " + L + " `" +
|
|
1362
|
+
function R(h) {
|
|
1363
|
+
function x(j, C, $, L, U) {
|
|
1364
|
+
if (!(j[C] instanceof h)) {
|
|
1365
|
+
var B = h.name || d, Y = F(j[C]);
|
|
1366
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected ") + ("instance of `" + B + "`."));
|
|
1367
1367
|
}
|
|
1368
1368
|
return null;
|
|
1369
1369
|
}
|
|
1370
|
-
return
|
|
1370
|
+
return w(x);
|
|
1371
1371
|
}
|
|
1372
1372
|
function k(h) {
|
|
1373
1373
|
if (!Array.isArray(h))
|
|
1374
1374
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1375
1375
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1376
1376
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1377
|
-
function x(
|
|
1378
|
-
for (var
|
|
1379
|
-
if (p(
|
|
1377
|
+
function x(j, C, $, L, U) {
|
|
1378
|
+
for (var B = j[C], Y = 0; Y < h.length; Y++)
|
|
1379
|
+
if (p(B, h[Y]))
|
|
1380
1380
|
return null;
|
|
1381
1381
|
var J = JSON.stringify(h, function(ae, M) {
|
|
1382
|
-
var
|
|
1383
|
-
return
|
|
1382
|
+
var H = z(M);
|
|
1383
|
+
return H === "symbol" ? String(M) : M;
|
|
1384
1384
|
});
|
|
1385
|
-
return new v("Invalid " + L + " `" +
|
|
1385
|
+
return new v("Invalid " + L + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + $ + "`, expected one of " + J + "."));
|
|
1386
1386
|
}
|
|
1387
|
-
return
|
|
1387
|
+
return w(x);
|
|
1388
1388
|
}
|
|
1389
1389
|
function _(h) {
|
|
1390
|
-
function x(
|
|
1390
|
+
function x(j, C, $, L, U) {
|
|
1391
1391
|
if (typeof h != "function")
|
|
1392
|
-
return new v("Property `" +
|
|
1393
|
-
var
|
|
1394
|
-
if (
|
|
1395
|
-
return new v("Invalid " + L + " `" +
|
|
1396
|
-
for (var J in
|
|
1397
|
-
if (n(
|
|
1398
|
-
var G = h(
|
|
1392
|
+
return new v("Property `" + U + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1393
|
+
var B = j[C], Y = W(B);
|
|
1394
|
+
if (Y !== "object")
|
|
1395
|
+
return new v("Invalid " + L + " `" + U + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected an object."));
|
|
1396
|
+
for (var J in B)
|
|
1397
|
+
if (n(B, J)) {
|
|
1398
|
+
var G = h(B, J, $, L, U + "." + J, t);
|
|
1399
1399
|
if (G instanceof Error)
|
|
1400
1400
|
return G;
|
|
1401
1401
|
}
|
|
1402
1402
|
return null;
|
|
1403
1403
|
}
|
|
1404
|
-
return
|
|
1404
|
+
return w(x);
|
|
1405
1405
|
}
|
|
1406
|
-
function
|
|
1406
|
+
function T(h) {
|
|
1407
1407
|
if (!Array.isArray(h))
|
|
1408
1408
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1409
1409
|
for (var x = 0; x < h.length; x++) {
|
|
1410
|
-
var
|
|
1411
|
-
if (typeof
|
|
1410
|
+
var j = h[x];
|
|
1411
|
+
if (typeof j != "function")
|
|
1412
1412
|
return a(
|
|
1413
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(
|
|
1413
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(j) + " at index " + x + "."
|
|
1414
1414
|
), i;
|
|
1415
1415
|
}
|
|
1416
|
-
function C($, L,
|
|
1416
|
+
function C($, L, U, B, Y) {
|
|
1417
1417
|
for (var J = [], G = 0; G < h.length; G++) {
|
|
1418
|
-
var ae = h[G], M = ae($, L,
|
|
1418
|
+
var ae = h[G], M = ae($, L, U, B, Y, t);
|
|
1419
1419
|
if (M == null)
|
|
1420
1420
|
return null;
|
|
1421
1421
|
M.data && n(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1422
1422
|
}
|
|
1423
|
-
var
|
|
1424
|
-
return new v("Invalid " +
|
|
1423
|
+
var H = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1424
|
+
return new v("Invalid " + B + " `" + Y + "` supplied to " + ("`" + U + "`" + H + "."));
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1426
|
+
return w(C);
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
function h(x,
|
|
1430
|
-
return
|
|
1428
|
+
function D() {
|
|
1429
|
+
function h(x, j, C, $, L) {
|
|
1430
|
+
return V(x[j]) ? null : new v("Invalid " + $ + " `" + L + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
1431
1431
|
}
|
|
1432
|
-
return
|
|
1432
|
+
return w(h);
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1434
|
+
function N(h, x, j, C, $) {
|
|
1435
1435
|
return new v(
|
|
1436
|
-
(h || "React class") + ": " + x + " type `" +
|
|
1436
|
+
(h || "React class") + ": " + x + " type `" + j + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1437
1437
|
);
|
|
1438
1438
|
}
|
|
1439
1439
|
function P(h) {
|
|
1440
|
-
function x(
|
|
1441
|
-
var
|
|
1442
|
-
if (
|
|
1443
|
-
return new v("Invalid " + L + " `" +
|
|
1440
|
+
function x(j, C, $, L, U) {
|
|
1441
|
+
var B = j[C], Y = W(B);
|
|
1442
|
+
if (Y !== "object")
|
|
1443
|
+
return new v("Invalid " + L + " `" + U + "` of type `" + Y + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1444
1444
|
for (var J in h) {
|
|
1445
1445
|
var G = h[J];
|
|
1446
1446
|
if (typeof G != "function")
|
|
1447
|
-
return
|
|
1448
|
-
var ae = G(
|
|
1447
|
+
return N($, L, U, J, z(G));
|
|
1448
|
+
var ae = G(B, J, $, L, U + "." + J, t);
|
|
1449
1449
|
if (ae)
|
|
1450
1450
|
return ae;
|
|
1451
1451
|
}
|
|
1452
1452
|
return null;
|
|
1453
1453
|
}
|
|
1454
|
-
return
|
|
1454
|
+
return w(x);
|
|
1455
1455
|
}
|
|
1456
1456
|
function A(h) {
|
|
1457
|
-
function x(
|
|
1458
|
-
var
|
|
1459
|
-
if (
|
|
1460
|
-
return new v("Invalid " + L + " `" +
|
|
1461
|
-
var J = e({},
|
|
1457
|
+
function x(j, C, $, L, U) {
|
|
1458
|
+
var B = j[C], Y = W(B);
|
|
1459
|
+
if (Y !== "object")
|
|
1460
|
+
return new v("Invalid " + L + " `" + U + "` of type `" + Y + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1461
|
+
var J = e({}, j[C], h);
|
|
1462
1462
|
for (var G in J) {
|
|
1463
1463
|
var ae = h[G];
|
|
1464
1464
|
if (n(h, G) && typeof ae != "function")
|
|
1465
|
-
return
|
|
1465
|
+
return N($, L, U, G, z(ae));
|
|
1466
1466
|
if (!ae)
|
|
1467
1467
|
return new v(
|
|
1468
|
-
"Invalid " + L + " `" +
|
|
1468
|
+
"Invalid " + L + " `" + U + "` key `" + G + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(j[C], null, " ") + `
|
|
1469
1469
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1470
1470
|
);
|
|
1471
|
-
var M = ae(
|
|
1471
|
+
var M = ae(B, G, $, L, U + "." + G, t);
|
|
1472
1472
|
if (M)
|
|
1473
1473
|
return M;
|
|
1474
1474
|
}
|
|
1475
1475
|
return null;
|
|
1476
1476
|
}
|
|
1477
|
-
return
|
|
1477
|
+
return w(x);
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function V(h) {
|
|
1480
1480
|
switch (typeof h) {
|
|
1481
1481
|
case "number":
|
|
1482
1482
|
case "string":
|
|
@@ -1486,20 +1486,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1486
1486
|
return !h;
|
|
1487
1487
|
case "object":
|
|
1488
1488
|
if (Array.isArray(h))
|
|
1489
|
-
return h.every(
|
|
1489
|
+
return h.every(V);
|
|
1490
1490
|
if (h === null || o(h))
|
|
1491
1491
|
return !0;
|
|
1492
|
-
var x =
|
|
1492
|
+
var x = f(h);
|
|
1493
1493
|
if (x) {
|
|
1494
|
-
var
|
|
1494
|
+
var j = x.call(h), C;
|
|
1495
1495
|
if (x !== h.entries) {
|
|
1496
|
-
for (; !(C =
|
|
1497
|
-
if (!
|
|
1496
|
+
for (; !(C = j.next()).done; )
|
|
1497
|
+
if (!V(C.value))
|
|
1498
1498
|
return !1;
|
|
1499
1499
|
} else
|
|
1500
|
-
for (; !(C =
|
|
1500
|
+
for (; !(C = j.next()).done; ) {
|
|
1501
1501
|
var $ = C.value;
|
|
1502
|
-
if ($ && !
|
|
1502
|
+
if ($ && !V($[1]))
|
|
1503
1503
|
return !1;
|
|
1504
1504
|
}
|
|
1505
1505
|
} else
|
|
@@ -1509,17 +1509,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1509
1509
|
return !1;
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function I(h, x) {
|
|
1513
1513
|
return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function W(h) {
|
|
1516
1516
|
var x = typeof h;
|
|
1517
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1517
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(x, h) ? "symbol" : x;
|
|
1518
1518
|
}
|
|
1519
1519
|
function z(h) {
|
|
1520
1520
|
if (typeof h > "u" || h === null)
|
|
1521
1521
|
return "" + h;
|
|
1522
|
-
var x =
|
|
1522
|
+
var x = W(h);
|
|
1523
1523
|
if (x === "object") {
|
|
1524
1524
|
if (h instanceof Date)
|
|
1525
1525
|
return "date";
|
|
@@ -1558,8 +1558,8 @@ function vn() {
|
|
|
1558
1558
|
function t() {
|
|
1559
1559
|
}
|
|
1560
1560
|
return t.resetWarningCache = e, Tt = function() {
|
|
1561
|
-
function n(i, o, c, l,
|
|
1562
|
-
if (
|
|
1561
|
+
function n(i, o, c, l, u, f) {
|
|
1562
|
+
if (f !== r) {
|
|
1563
1563
|
var d = new Error(
|
|
1564
1564
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1565
1565
|
);
|
|
@@ -1633,8 +1633,8 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1633
1633
|
return t.renderSVG = function() {
|
|
1634
1634
|
var s = this;
|
|
1635
1635
|
if (this.reactWrapper instanceof bn(this.reactWrapper).Node) {
|
|
1636
|
-
var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements,
|
|
1637
|
-
|
|
1636
|
+
var a = this.props, i = a.desc, o = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, u = a.src, f = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, v = this.props.afterInjection, w = this.props.wrapper, E, b;
|
|
1637
|
+
w === "svg" ? (E = document.createElementNS(Qe, w), E.setAttribute("xmlns", Qe), E.setAttribute("xmlns:xlink", nr), b = document.createElementNS(Qe, w)) : (E = document.createElement(w), b = document.createElement(w)), E.appendChild(b), b.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1638
1638
|
var O = function(k) {
|
|
1639
1639
|
if (s.removeSVG(), !s._isMounted) {
|
|
1640
1640
|
m(k);
|
|
@@ -1660,22 +1660,22 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1660
1660
|
}, function() {
|
|
1661
1661
|
try {
|
|
1662
1662
|
v(_);
|
|
1663
|
-
} catch (
|
|
1664
|
-
O(
|
|
1663
|
+
} catch (T) {
|
|
1664
|
+
O(T);
|
|
1665
1665
|
}
|
|
1666
1666
|
});
|
|
1667
|
-
},
|
|
1667
|
+
}, y = function(k) {
|
|
1668
1668
|
if (k.setAttribute("role", "img"), i) {
|
|
1669
1669
|
var _ = k.querySelector(":scope > desc");
|
|
1670
1670
|
_ && k.removeChild(_);
|
|
1671
|
-
var
|
|
1672
|
-
|
|
1671
|
+
var T = document.createElement("desc");
|
|
1672
|
+
T.innerHTML = i, k.prepend(T);
|
|
1673
1673
|
}
|
|
1674
|
-
if (
|
|
1675
|
-
var
|
|
1676
|
-
|
|
1677
|
-
var
|
|
1678
|
-
|
|
1674
|
+
if (f) {
|
|
1675
|
+
var D = k.querySelector(":scope > title");
|
|
1676
|
+
D && k.removeChild(D);
|
|
1677
|
+
var N = document.createElement("title");
|
|
1678
|
+
N.innerHTML = f, k.prepend(N);
|
|
1679
1679
|
}
|
|
1680
1680
|
try {
|
|
1681
1681
|
p(k);
|
|
@@ -1685,7 +1685,7 @@ var oe = /* @__PURE__ */ xn(), bn = function(e) {
|
|
|
1685
1685
|
};
|
|
1686
1686
|
dn(b, {
|
|
1687
1687
|
afterEach: S,
|
|
1688
|
-
beforeEach:
|
|
1688
|
+
beforeEach: y,
|
|
1689
1689
|
cacheRequests: d,
|
|
1690
1690
|
evalScripts: o,
|
|
1691
1691
|
httpRequestWithCredentials: c,
|
|
@@ -1772,70 +1772,70 @@ const Qs = (r) => {
|
|
|
1772
1772
|
rotated: o = !1,
|
|
1773
1773
|
onClick: c,
|
|
1774
1774
|
isInteractable: l = !1,
|
|
1775
|
-
spin:
|
|
1776
|
-
title:
|
|
1775
|
+
spin: u = !1,
|
|
1776
|
+
title: f,
|
|
1777
1777
|
tabIndex: d
|
|
1778
1778
|
}) => {
|
|
1779
|
-
const [m, p] = q(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")),
|
|
1779
|
+
const [m, p] = q(r), v = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), w = v && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), E = sr(`assets/svg/${r}.svg`), b = sr(
|
|
1780
1780
|
`assets/svg/${n}.svg`
|
|
1781
1781
|
), O = {
|
|
1782
1782
|
img: `${l ? "smp-image-interactable" : ""}`,
|
|
1783
|
-
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${
|
|
1783
|
+
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
|
|
1784
1784
|
}, S = () => {
|
|
1785
1785
|
!a && l && c && c();
|
|
1786
|
-
},
|
|
1787
|
-
!a && l && (
|
|
1786
|
+
}, y = (R) => {
|
|
1787
|
+
!a && l && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), S());
|
|
1788
1788
|
};
|
|
1789
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ g.jsx(g.Fragment, { children: w ? /* @__PURE__ */ g.jsx(
|
|
1790
1790
|
Ae,
|
|
1791
1791
|
{
|
|
1792
1792
|
src: r,
|
|
1793
|
-
fallback: () => /* @__PURE__ */
|
|
1793
|
+
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src: b, wrapper: "svg" }),
|
|
1794
1794
|
width: e || "1rem",
|
|
1795
1795
|
height: t || "1rem",
|
|
1796
1796
|
wrapper: "svg",
|
|
1797
|
-
title:
|
|
1797
|
+
title: f,
|
|
1798
1798
|
role: "application",
|
|
1799
1799
|
fill: s,
|
|
1800
1800
|
"aria-disabled": a,
|
|
1801
1801
|
className: O.svg,
|
|
1802
1802
|
onClick: S,
|
|
1803
|
-
onKeyDown:
|
|
1803
|
+
onKeyDown: y,
|
|
1804
1804
|
tabIndex: d
|
|
1805
1805
|
}
|
|
1806
1806
|
) : v ? (
|
|
1807
1807
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1808
|
-
/* @__PURE__ */
|
|
1808
|
+
/* @__PURE__ */ g.jsx(
|
|
1809
1809
|
"img",
|
|
1810
1810
|
{
|
|
1811
1811
|
src: m,
|
|
1812
1812
|
width: e || "16px",
|
|
1813
1813
|
height: t || "auto",
|
|
1814
|
-
alt:
|
|
1814
|
+
alt: f,
|
|
1815
1815
|
onError: () => p(b),
|
|
1816
1816
|
onClick: S,
|
|
1817
1817
|
className: O.img,
|
|
1818
|
-
title:
|
|
1819
|
-
onKeyDown: (
|
|
1820
|
-
(
|
|
1818
|
+
title: f,
|
|
1819
|
+
onKeyDown: (R) => {
|
|
1820
|
+
(R.key === "Enter" || R.key === " ") && S();
|
|
1821
1821
|
}
|
|
1822
1822
|
}
|
|
1823
1823
|
)
|
|
1824
|
-
) : /* @__PURE__ */
|
|
1824
|
+
) : /* @__PURE__ */ g.jsx(
|
|
1825
1825
|
Ae,
|
|
1826
1826
|
{
|
|
1827
1827
|
src: E,
|
|
1828
|
-
fallback: () => /* @__PURE__ */
|
|
1828
|
+
fallback: () => /* @__PURE__ */ g.jsx(Ae, { src: b, wrapper: "svg" }),
|
|
1829
1829
|
width: e || "1rem",
|
|
1830
1830
|
height: t || "1rem",
|
|
1831
1831
|
wrapper: "svg",
|
|
1832
|
-
title:
|
|
1832
|
+
title: f,
|
|
1833
1833
|
role: "application",
|
|
1834
1834
|
fill: s,
|
|
1835
1835
|
"aria-disabled": a,
|
|
1836
1836
|
className: O.svg,
|
|
1837
1837
|
onClick: S,
|
|
1838
|
-
onKeyDown:
|
|
1838
|
+
onKeyDown: y,
|
|
1839
1839
|
tabIndex: d
|
|
1840
1840
|
}
|
|
1841
1841
|
) });
|
|
@@ -1867,78 +1867,78 @@ const Qs = (r) => {
|
|
|
1867
1867
|
shapeIcon: o,
|
|
1868
1868
|
sizing: c,
|
|
1869
1869
|
state: l,
|
|
1870
|
-
variant:
|
|
1871
|
-
tooltip:
|
|
1870
|
+
variant: u,
|
|
1871
|
+
tooltip: f = !1,
|
|
1872
1872
|
rotatedShapeIcon: d = !1,
|
|
1873
1873
|
onShapeIconClick: m,
|
|
1874
1874
|
ref: p,
|
|
1875
1875
|
inputRef: v,
|
|
1876
|
-
onKeyDown:
|
|
1876
|
+
onKeyDown: w,
|
|
1877
1877
|
inputType: E = "text",
|
|
1878
1878
|
ariaLabel: b = "input field",
|
|
1879
1879
|
label: O,
|
|
1880
1880
|
helperText: S = !1,
|
|
1881
|
-
error:
|
|
1882
|
-
appearance:
|
|
1881
|
+
error: y,
|
|
1882
|
+
appearance: R = "base",
|
|
1883
1883
|
fullWidth: k = !1,
|
|
1884
1884
|
_dataComponent: _ = "textfield",
|
|
1885
|
-
min:
|
|
1886
|
-
max:
|
|
1887
|
-
step:
|
|
1885
|
+
min: T,
|
|
1886
|
+
max: D,
|
|
1887
|
+
step: N,
|
|
1888
1888
|
inputMode: P = "text",
|
|
1889
1889
|
width: A,
|
|
1890
|
-
autocomplete:
|
|
1891
|
-
size:
|
|
1892
|
-
maxLength:
|
|
1890
|
+
autocomplete: V,
|
|
1891
|
+
size: I,
|
|
1892
|
+
maxLength: W
|
|
1893
1893
|
}) => {
|
|
1894
|
-
const z = Ge(), X = `${z}-helper`, F =
|
|
1894
|
+
const z = Ge(), X = `${z}-helper`, F = y ? "danger" : l, h = y || l == "danger" ? "error" : o, x = S || !!y, j = (L) => {
|
|
1895
1895
|
s == null || s(L.target.value);
|
|
1896
1896
|
}, C = {
|
|
1897
1897
|
wrapper: `${ye["smp-textfield-wrapper"]} ${k ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
1898
|
-
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${c ? ye[`smp-textfield-${c}`] : ""} ${F ? ye[`smp-textfield-${F}`] : ""} ${
|
|
1898
|
+
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${a ? ye["smp-textfield-placeholder"] : ""} ${c ? ye[`smp-textfield-${c}`] : ""} ${F ? ye[`smp-textfield-${F}`] : ""} ${R ? ye[`smp-textfield-${R}`] : ""} ${i ? "" : ye["smp-textfield-readOnly"]} ${f ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
1899
1899
|
input: `${ye["smp-textfield-input"]}`
|
|
1900
1900
|
};
|
|
1901
|
-
if (
|
|
1902
|
-
const L = ye[`smp-textfield-variant-${
|
|
1901
|
+
if (u && (u !== "notSelectable" || i)) {
|
|
1902
|
+
const L = ye[`smp-textfield-variant-${u}`];
|
|
1903
1903
|
L && (C.container += ` ${L}`);
|
|
1904
1904
|
}
|
|
1905
1905
|
const $ = A ? { "--smp-textField-width-base": A } : void 0;
|
|
1906
|
-
return /* @__PURE__ */
|
|
1907
|
-
O && /* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ g.jsxs("div", { className: C.wrapper, "data-component": _, children: [
|
|
1907
|
+
O && /* @__PURE__ */ g.jsx(Re, { label: O, disabled: r, htmlFor: z }),
|
|
1908
|
+
/* @__PURE__ */ g.jsxs(
|
|
1909
1909
|
"div",
|
|
1910
1910
|
{
|
|
1911
1911
|
className: C.container,
|
|
1912
1912
|
ref: p,
|
|
1913
1913
|
style: $,
|
|
1914
1914
|
children: [
|
|
1915
|
-
t && /* @__PURE__ */
|
|
1916
|
-
/* @__PURE__ */
|
|
1915
|
+
t && /* @__PURE__ */ g.jsx(fe, { icon: t, disabled: r }),
|
|
1916
|
+
/* @__PURE__ */ g.jsx(
|
|
1917
1917
|
"input",
|
|
1918
1918
|
{
|
|
1919
1919
|
id: z,
|
|
1920
1920
|
type: E,
|
|
1921
1921
|
value: e,
|
|
1922
1922
|
placeholder: a,
|
|
1923
|
-
onChange:
|
|
1923
|
+
onChange: j,
|
|
1924
1924
|
onBlur: n,
|
|
1925
1925
|
className: C.input,
|
|
1926
1926
|
disabled: r,
|
|
1927
1927
|
readOnly: !i,
|
|
1928
|
-
onKeyDown:
|
|
1928
|
+
onKeyDown: w,
|
|
1929
1929
|
"aria-label": b,
|
|
1930
1930
|
ref: v,
|
|
1931
1931
|
"aria-describedby": x ? X : void 0,
|
|
1932
|
-
min:
|
|
1933
|
-
max:
|
|
1934
|
-
step:
|
|
1932
|
+
min: T,
|
|
1933
|
+
max: D,
|
|
1934
|
+
step: N,
|
|
1935
1935
|
inputMode: P,
|
|
1936
|
-
autoComplete:
|
|
1937
|
-
size:
|
|
1938
|
-
maxLength:
|
|
1936
|
+
autoComplete: V,
|
|
1937
|
+
size: I,
|
|
1938
|
+
maxLength: W
|
|
1939
1939
|
}
|
|
1940
1940
|
),
|
|
1941
|
-
h && /* @__PURE__ */
|
|
1941
|
+
h && /* @__PURE__ */ g.jsx(
|
|
1942
1942
|
fe,
|
|
1943
1943
|
{
|
|
1944
1944
|
icon: h,
|
|
@@ -1953,10 +1953,10 @@ const Qs = (r) => {
|
|
|
1953
1953
|
]
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
|
-
x && /* @__PURE__ */
|
|
1956
|
+
x && /* @__PURE__ */ g.jsx(
|
|
1957
1957
|
Rr,
|
|
1958
1958
|
{
|
|
1959
|
-
helperText:
|
|
1959
|
+
helperText: y,
|
|
1960
1960
|
disabled: r,
|
|
1961
1961
|
state: F,
|
|
1962
1962
|
id: X
|
|
@@ -1973,23 +1973,23 @@ function Cr({
|
|
|
1973
1973
|
const [s, a] = q(0), i = ce(null), o = r.length * e, c = Math.max(0, Math.floor(s / e) - n), l = Math.min(
|
|
1974
1974
|
r.length - 1,
|
|
1975
1975
|
Math.floor((s + t) / e) + n
|
|
1976
|
-
),
|
|
1976
|
+
), u = [];
|
|
1977
1977
|
for (let m = c; m <= l; m++)
|
|
1978
|
-
|
|
1978
|
+
u.push({
|
|
1979
1979
|
item: r[m],
|
|
1980
1980
|
index: m,
|
|
1981
1981
|
offsetTop: m * e
|
|
1982
1982
|
});
|
|
1983
|
-
const
|
|
1983
|
+
const f = le((m) => {
|
|
1984
1984
|
const p = m.target.scrollTop;
|
|
1985
1985
|
a(p);
|
|
1986
1986
|
}, []), d = (m) => {
|
|
1987
1987
|
if (!i.current) return;
|
|
1988
|
-
const p = m * e, v = p + e,
|
|
1989
|
-
p < E ?
|
|
1988
|
+
const p = m * e, v = p + e, w = i.current, E = w.scrollTop, b = E + t;
|
|
1989
|
+
p < E ? w.scrollTop = p : v > b && (w.scrollTop = v - t);
|
|
1990
1990
|
};
|
|
1991
1991
|
return {
|
|
1992
|
-
virtualItems:
|
|
1992
|
+
virtualItems: u,
|
|
1993
1993
|
containerProps: {
|
|
1994
1994
|
ref: i,
|
|
1995
1995
|
style: {
|
|
@@ -1998,7 +1998,7 @@ function Cr({
|
|
|
1998
1998
|
position: "relative",
|
|
1999
1999
|
willChange: "transform"
|
|
2000
2000
|
},
|
|
2001
|
-
onScroll:
|
|
2001
|
+
onScroll: f
|
|
2002
2002
|
},
|
|
2003
2003
|
innerProps: {
|
|
2004
2004
|
style: {
|
|
@@ -2046,16 +2046,16 @@ const Tn = 10, Pr = ({
|
|
|
2046
2046
|
width: o,
|
|
2047
2047
|
onClick: c,
|
|
2048
2048
|
onKeyDown: l,
|
|
2049
|
-
isOpen:
|
|
2049
|
+
isOpen: u
|
|
2050
2050
|
}) => {
|
|
2051
|
-
var
|
|
2052
|
-
const [
|
|
2051
|
+
var V;
|
|
2052
|
+
const [f, d] = q(""), m = 40, [p, v] = q(
|
|
2053
2053
|
a !== null ? a : -1
|
|
2054
|
-
), [
|
|
2055
|
-
(
|
|
2056
|
-
) : e,
|
|
2057
|
-
d(
|
|
2058
|
-
}, { virtualItems:
|
|
2054
|
+
), [w, E] = q(o || 200), b = ce(null), O = s !== void 0 ? s : e.length > Tn, S = f ? e.filter(
|
|
2055
|
+
(I) => I.label.toLowerCase().includes(f.toLowerCase())
|
|
2056
|
+
) : e, y = (I) => {
|
|
2057
|
+
d(I);
|
|
2058
|
+
}, { virtualItems: R, containerProps: k, innerProps: _, scrollToIndex: T } = Cr({
|
|
2059
2059
|
items: S,
|
|
2060
2060
|
itemHeight: m,
|
|
2061
2061
|
containerHeight: 200,
|
|
@@ -2064,31 +2064,31 @@ const Tn = 10, Pr = ({
|
|
|
2064
2064
|
ne(() => {
|
|
2065
2065
|
a !== null && a !== p && v(a);
|
|
2066
2066
|
}, [a]), ne(() => {
|
|
2067
|
-
p >= 0 && p < S.length &&
|
|
2067
|
+
p >= 0 && p < S.length && T(p);
|
|
2068
2068
|
}, [p, S]), ne(() => {
|
|
2069
|
-
|
|
2070
|
-
}, [
|
|
2071
|
-
const
|
|
2072
|
-
E(
|
|
2069
|
+
u && (b != null && b.current) && b.current.focus();
|
|
2070
|
+
}, [u, b]), ne(() => {
|
|
2071
|
+
const I = En(e, t);
|
|
2072
|
+
E(I);
|
|
2073
2073
|
}, [e, t]);
|
|
2074
|
-
const
|
|
2075
|
-
if (
|
|
2076
|
-
|
|
2077
|
-
let
|
|
2078
|
-
|
|
2079
|
-
} else
|
|
2080
|
-
l && l(
|
|
2081
|
-
},
|
|
2082
|
-
|
|
2083
|
-
}, P = (
|
|
2084
|
-
|
|
2074
|
+
const D = (I) => {
|
|
2075
|
+
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2076
|
+
I.preventDefault();
|
|
2077
|
+
let W = p;
|
|
2078
|
+
I.key === "ArrowDown" ? W = p < S.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (W = p > 0 ? p - 1 : S.length - 1), v(W);
|
|
2079
|
+
} else I.key === "Enter" ? p >= 0 && p < S.length && (c == null || c(S[p])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2080
|
+
l && l(I);
|
|
2081
|
+
}, N = (I) => {
|
|
2082
|
+
D(I);
|
|
2083
|
+
}, P = (I) => {
|
|
2084
|
+
D(I);
|
|
2085
2085
|
}, A = {
|
|
2086
2086
|
wrapper: `${et["smp-list"]}`,
|
|
2087
2087
|
container: `${et["smp-list-container"]}`,
|
|
2088
2088
|
virtualScroll: `${et["smp-list-virtualScroll"]}`,
|
|
2089
2089
|
listItem: `${et["smp-list-listItem"]}`
|
|
2090
2090
|
};
|
|
2091
|
-
return /* @__PURE__ */
|
|
2091
|
+
return /* @__PURE__ */ g.jsxs(
|
|
2092
2092
|
"div",
|
|
2093
2093
|
{
|
|
2094
2094
|
id: r,
|
|
@@ -2096,22 +2096,22 @@ const Tn = 10, Pr = ({
|
|
|
2096
2096
|
className: A.wrapper,
|
|
2097
2097
|
"data-component": "list",
|
|
2098
2098
|
style: {
|
|
2099
|
-
width:
|
|
2099
|
+
width: w,
|
|
2100
2100
|
minWidth: o
|
|
2101
2101
|
},
|
|
2102
2102
|
children: [
|
|
2103
|
-
O && /* @__PURE__ */
|
|
2103
|
+
O && /* @__PURE__ */ g.jsx(
|
|
2104
2104
|
De,
|
|
2105
2105
|
{
|
|
2106
|
-
bindValue:
|
|
2106
|
+
bindValue: f,
|
|
2107
2107
|
placeholder: "Search...",
|
|
2108
2108
|
fullWidth: !0,
|
|
2109
|
-
onChange:
|
|
2110
|
-
onKeyDown:
|
|
2109
|
+
onChange: y,
|
|
2110
|
+
onKeyDown: N,
|
|
2111
2111
|
inputRef: b
|
|
2112
2112
|
}
|
|
2113
2113
|
),
|
|
2114
|
-
/* @__PURE__ */
|
|
2114
|
+
/* @__PURE__ */ g.jsx(
|
|
2115
2115
|
"div",
|
|
2116
2116
|
{
|
|
2117
2117
|
...k,
|
|
@@ -2120,20 +2120,20 @@ const Tn = 10, Pr = ({
|
|
|
2120
2120
|
role: "listbox",
|
|
2121
2121
|
"aria-label": "List",
|
|
2122
2122
|
onKeyDown: P,
|
|
2123
|
-
"aria-activedescendant": p >= 0 && p < S.length ? (
|
|
2124
|
-
children: /* @__PURE__ */
|
|
2125
|
-
const X = i.includes(
|
|
2123
|
+
"aria-activedescendant": p >= 0 && p < S.length ? (V = S[p]) == null ? void 0 : V.id : void 0,
|
|
2124
|
+
children: /* @__PURE__ */ g.jsx("div", { ..._, className: A.virtualScroll, children: R.map(({ item: I, index: W, offsetTop: z }) => {
|
|
2125
|
+
const X = i.includes(I.id);
|
|
2126
2126
|
return (
|
|
2127
2127
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2128
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ g.jsxs(
|
|
2129
2129
|
"li",
|
|
2130
2130
|
{
|
|
2131
2131
|
role: "option",
|
|
2132
|
-
id:
|
|
2133
|
-
"aria-selected": p ===
|
|
2132
|
+
id: I.id,
|
|
2133
|
+
"aria-selected": p === W ? "true" : "false",
|
|
2134
2134
|
tabIndex: -1,
|
|
2135
|
-
className: `${A.listItem} ${p ===
|
|
2136
|
-
"aria-label":
|
|
2135
|
+
className: `${A.listItem} ${p === W ? "selected-item" : ""}`,
|
|
2136
|
+
"aria-label": I.id + "-" + I.label,
|
|
2137
2137
|
style: {
|
|
2138
2138
|
height: `${m}px`,
|
|
2139
2139
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
@@ -2141,14 +2141,14 @@ const Tn = 10, Pr = ({
|
|
|
2141
2141
|
transform: `translateY(${z}px)`
|
|
2142
2142
|
},
|
|
2143
2143
|
onClick: () => {
|
|
2144
|
-
c == null || c(
|
|
2144
|
+
c == null || c(I), v(W);
|
|
2145
2145
|
},
|
|
2146
2146
|
children: [
|
|
2147
|
-
Le(
|
|
2148
|
-
X && /* @__PURE__ */
|
|
2147
|
+
Le(I.id, I.label, t),
|
|
2148
|
+
X && /* @__PURE__ */ g.jsx(fe, { icon: "check", width: 16 })
|
|
2149
2149
|
]
|
|
2150
2150
|
},
|
|
2151
|
-
|
|
2151
|
+
I.id
|
|
2152
2152
|
)
|
|
2153
2153
|
);
|
|
2154
2154
|
}) })
|
|
@@ -2172,7 +2172,7 @@ const Tn = 10, Pr = ({
|
|
|
2172
2172
|
a(
|
|
2173
2173
|
Le(e, t, r)
|
|
2174
2174
|
);
|
|
2175
|
-
}, [t, r]), /* @__PURE__ */
|
|
2175
|
+
}, [t, r]), /* @__PURE__ */ g.jsx(De, { ...n, bindValue: s });
|
|
2176
2176
|
}, On = (r) => {
|
|
2177
2177
|
const e = ce(null);
|
|
2178
2178
|
return ne(() => () => {
|
|
@@ -2403,12 +2403,12 @@ class cr extends gt {
|
|
|
2403
2403
|
t > -1 && this.options.ns.splice(t, 1);
|
|
2404
2404
|
}
|
|
2405
2405
|
getResource(e, t, n, s = {}) {
|
|
2406
|
-
var l,
|
|
2406
|
+
var l, u;
|
|
2407
2407
|
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2408
2408
|
let o;
|
|
2409
2409
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : K(n) && a ? o.push(...n.split(a)) : o.push(n)));
|
|
2410
2410
|
const c = ut(this.data, o);
|
|
2411
|
-
return !c && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), c || !i || !K(n) ? c : _t((
|
|
2411
|
+
return !c && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), c || !i || !K(n) ? c : _t((u = (l = this.data) == null ? void 0 : l[e]) == null ? void 0 : u[t], n, a);
|
|
2412
2412
|
}
|
|
2413
2413
|
addResource(e, t, n, s, a = {
|
|
2414
2414
|
silent: !1
|
|
@@ -2521,68 +2521,68 @@ class dt extends gt {
|
|
|
2521
2521
|
key: o,
|
|
2522
2522
|
namespaces: c
|
|
2523
2523
|
} = this.extractFromKey(e[e.length - 1], s), l = c[c.length - 1];
|
|
2524
|
-
let
|
|
2525
|
-
|
|
2526
|
-
const
|
|
2527
|
-
if ((
|
|
2524
|
+
let u = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2525
|
+
u === void 0 && (u = ":");
|
|
2526
|
+
const f = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2527
|
+
if ((f == null ? void 0 : f.toLowerCase()) === "cimode")
|
|
2528
2528
|
return d ? a ? {
|
|
2529
|
-
res: `${l}${
|
|
2529
|
+
res: `${l}${u}${o}`,
|
|
2530
2530
|
usedKey: o,
|
|
2531
2531
|
exactUsedKey: o,
|
|
2532
|
-
usedLng:
|
|
2532
|
+
usedLng: f,
|
|
2533
2533
|
usedNS: l,
|
|
2534
2534
|
usedParams: this.getUsedParamsDetails(s)
|
|
2535
|
-
} : `${l}${
|
|
2535
|
+
} : `${l}${u}${o}` : a ? {
|
|
2536
2536
|
res: o,
|
|
2537
2537
|
usedKey: o,
|
|
2538
2538
|
exactUsedKey: o,
|
|
2539
|
-
usedLng:
|
|
2539
|
+
usedLng: f,
|
|
2540
2540
|
usedNS: l,
|
|
2541
2541
|
usedParams: this.getUsedParamsDetails(s)
|
|
2542
2542
|
} : o;
|
|
2543
2543
|
const m = this.resolve(e, s);
|
|
2544
2544
|
let p = m == null ? void 0 : m.res;
|
|
2545
|
-
const v = (m == null ? void 0 : m.usedKey) || o,
|
|
2545
|
+
const v = (m == null ? void 0 : m.usedKey) || o, w = (m == null ? void 0 : m.exactUsedKey) || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !K(s.count), y = dt.hasDefaultValue(s), R = S ? this.pluralResolver.getSuffix(f, s.count, s) : "", k = s.ordinal && S ? this.pluralResolver.getSuffix(f, s.count, {
|
|
2546
2546
|
ordinal: !1
|
|
2547
|
-
}) : "", _ = S && !s.ordinal && s.count === 0,
|
|
2548
|
-
let
|
|
2549
|
-
O && !p &&
|
|
2550
|
-
const
|
|
2551
|
-
if (O &&
|
|
2547
|
+
}) : "", _ = S && !s.ordinal && s.count === 0, T = _ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2548
|
+
let D = p;
|
|
2549
|
+
O && !p && y && (D = T);
|
|
2550
|
+
const N = fr(D), P = Object.prototype.toString.apply(D);
|
|
2551
|
+
if (O && D && N && E.indexOf(P) < 0 && !(K(b) && Array.isArray(D))) {
|
|
2552
2552
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2553
2553
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2554
|
-
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v,
|
|
2554
|
+
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(v, D, {
|
|
2555
2555
|
...s,
|
|
2556
2556
|
ns: c
|
|
2557
2557
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2558
2558
|
return a ? (m.res = A, m.usedParams = this.getUsedParamsDetails(s), m) : A;
|
|
2559
2559
|
}
|
|
2560
2560
|
if (i) {
|
|
2561
|
-
const A = Array.isArray(
|
|
2562
|
-
for (const
|
|
2563
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2564
|
-
const z = `${
|
|
2565
|
-
|
|
2561
|
+
const A = Array.isArray(D), V = A ? [] : {}, I = A ? w : v;
|
|
2562
|
+
for (const W in D)
|
|
2563
|
+
if (Object.prototype.hasOwnProperty.call(D, W)) {
|
|
2564
|
+
const z = `${I}${i}${W}`;
|
|
2565
|
+
y && !p ? V[W] = this.translate(z, {
|
|
2566
2566
|
...s,
|
|
2567
|
-
defaultValue: fr(
|
|
2567
|
+
defaultValue: fr(T) ? T[W] : void 0,
|
|
2568
2568
|
joinArrays: !1,
|
|
2569
2569
|
ns: c
|
|
2570
|
-
}) :
|
|
2570
|
+
}) : V[W] = this.translate(z, {
|
|
2571
2571
|
...s,
|
|
2572
2572
|
joinArrays: !1,
|
|
2573
2573
|
ns: c
|
|
2574
|
-
}),
|
|
2574
|
+
}), V[W] === z && (V[W] = D[W]);
|
|
2575
2575
|
}
|
|
2576
|
-
p =
|
|
2576
|
+
p = V;
|
|
2577
2577
|
}
|
|
2578
2578
|
} else if (O && K(b) && Array.isArray(p))
|
|
2579
2579
|
p = p.join(b), p && (p = this.extendTranslation(p, e, s, n));
|
|
2580
2580
|
else {
|
|
2581
|
-
let A = !1,
|
|
2582
|
-
!this.isValidLookup(p) &&
|
|
2583
|
-
const
|
|
2584
|
-
if (
|
|
2585
|
-
if (this.logger.log(z ? "updateKey" : "missingKey",
|
|
2581
|
+
let A = !1, V = !1;
|
|
2582
|
+
!this.isValidLookup(p) && y && (A = !0, p = T), this.isValidLookup(p) || (V = !0, p = o);
|
|
2583
|
+
const W = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && V ? void 0 : p, z = y && T !== p && this.options.updateMissing;
|
|
2584
|
+
if (V || A || z) {
|
|
2585
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", f, l, o, z ? T : p), i) {
|
|
2586
2586
|
const x = this.resolve(o, {
|
|
2587
2587
|
...s,
|
|
2588
2588
|
keySeparator: !1
|
|
@@ -2595,19 +2595,19 @@ class dt extends gt {
|
|
|
2595
2595
|
for (let x = 0; x < F.length; x++)
|
|
2596
2596
|
X.push(F[x]);
|
|
2597
2597
|
else this.options.saveMissingTo === "all" ? X = this.languageUtils.toResolveHierarchy(s.lng || this.language) : X.push(s.lng || this.language);
|
|
2598
|
-
const h = (x,
|
|
2598
|
+
const h = (x, j, C) => {
|
|
2599
2599
|
var L;
|
|
2600
|
-
const $ =
|
|
2601
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l,
|
|
2600
|
+
const $ = y && C !== p ? C : W;
|
|
2601
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, l, j, $, z, s) : (L = this.backendConnector) != null && L.saveMissing && this.backendConnector.saveMissing(x, l, j, $, z, s), this.emit("missingKey", x, l, j, p);
|
|
2602
2602
|
};
|
|
2603
2603
|
this.options.saveMissing && (this.options.saveMissingPlurals && S ? X.forEach((x) => {
|
|
2604
|
-
const
|
|
2605
|
-
_ && s[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2606
|
-
h([x], o + C, s[`defaultValue${C}`] ||
|
|
2604
|
+
const j = this.pluralResolver.getSuffixes(x, s);
|
|
2605
|
+
_ && s[`defaultValue${this.options.pluralSeparator}zero`] && j.indexOf(`${this.options.pluralSeparator}zero`) < 0 && j.push(`${this.options.pluralSeparator}zero`), j.forEach((C) => {
|
|
2606
|
+
h([x], o + C, s[`defaultValue${C}`] || T);
|
|
2607
2607
|
});
|
|
2608
|
-
}) : h(X, o,
|
|
2608
|
+
}) : h(X, o, T));
|
|
2609
2609
|
}
|
|
2610
|
-
p = this.extendTranslation(p, e, s, m, n),
|
|
2610
|
+
p = this.extendTranslation(p, e, s, m, n), V && p === o && this.options.appendNamespaceToMissingKey && (p = `${l}${u}${o}`), (V || A) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${l}${u}${o}` : o, A ? p : void 0, s));
|
|
2611
2611
|
}
|
|
2612
2612
|
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
2613
2613
|
}
|
|
@@ -2628,19 +2628,19 @@ class dt extends gt {
|
|
|
2628
2628
|
...n.interpolation
|
|
2629
2629
|
}
|
|
2630
2630
|
});
|
|
2631
|
-
const
|
|
2632
|
-
let
|
|
2633
|
-
if (
|
|
2631
|
+
const u = K(e) && (((l = n == null ? void 0 : n.interpolation) == null ? void 0 : l.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2632
|
+
let f;
|
|
2633
|
+
if (u) {
|
|
2634
2634
|
const m = e.match(this.interpolator.nestingRegexp);
|
|
2635
|
-
|
|
2635
|
+
f = m && m.length;
|
|
2636
2636
|
}
|
|
2637
2637
|
let d = n.replace && !K(n.replace) ? n.replace : n;
|
|
2638
2638
|
if (this.options.interpolation.defaultVariables && (d = {
|
|
2639
2639
|
...this.options.interpolation.defaultVariables,
|
|
2640
2640
|
...d
|
|
2641
|
-
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n),
|
|
2641
|
+
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), u) {
|
|
2642
2642
|
const m = e.match(this.interpolator.nestingRegexp), p = m && m.length;
|
|
2643
|
-
|
|
2643
|
+
f < p && (n.nest = !1);
|
|
2644
2644
|
}
|
|
2645
2645
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
2646
2646
|
}
|
|
@@ -2657,32 +2657,32 @@ class dt extends gt {
|
|
|
2657
2657
|
let n, s, a, i, o;
|
|
2658
2658
|
return K(e) && (e = [e]), e.forEach((c) => {
|
|
2659
2659
|
if (this.isValidLookup(n)) return;
|
|
2660
|
-
const l = this.extractFromKey(c, t),
|
|
2661
|
-
s =
|
|
2662
|
-
let
|
|
2663
|
-
this.options.fallbackNS && (
|
|
2660
|
+
const l = this.extractFromKey(c, t), u = l.key;
|
|
2661
|
+
s = u;
|
|
2662
|
+
let f = l.namespaces;
|
|
2663
|
+
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2664
2664
|
const d = t.count !== void 0 && !K(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", v = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2665
|
-
|
|
2665
|
+
f.forEach((w) => {
|
|
2666
2666
|
var E, b;
|
|
2667
|
-
this.isValidLookup(n) || (o =
|
|
2668
|
-
var
|
|
2667
|
+
this.isValidLookup(n) || (o = w, !ur[`${v[0]}-${w}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(o)) && (ur[`${v[0]}-${w}`] = !0, this.logger.warn(`key "${s}" for languages "${v.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), v.forEach((O) => {
|
|
2668
|
+
var R;
|
|
2669
2669
|
if (this.isValidLookup(n)) return;
|
|
2670
2670
|
i = O;
|
|
2671
|
-
const S = [
|
|
2672
|
-
if ((
|
|
2673
|
-
this.i18nFormat.addLookupKeys(S,
|
|
2671
|
+
const S = [u];
|
|
2672
|
+
if ((R = this.i18nFormat) != null && R.addLookupKeys)
|
|
2673
|
+
this.i18nFormat.addLookupKeys(S, u, O, w, t);
|
|
2674
2674
|
else {
|
|
2675
2675
|
let k;
|
|
2676
2676
|
d && (k = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2677
|
-
const _ = `${this.options.pluralSeparator}zero`,
|
|
2678
|
-
if (d && (S.push(
|
|
2679
|
-
const
|
|
2680
|
-
S.push(
|
|
2677
|
+
const _ = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2678
|
+
if (d && (S.push(u + k), t.ordinal && k.indexOf(T) === 0 && S.push(u + k.replace(T, this.options.pluralSeparator)), m && S.push(u + _)), p) {
|
|
2679
|
+
const D = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2680
|
+
S.push(D), d && (S.push(D + k), t.ordinal && k.indexOf(T) === 0 && S.push(D + k.replace(T, this.options.pluralSeparator)), m && S.push(D + _));
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
|
-
let
|
|
2684
|
-
for (;
|
|
2685
|
-
this.isValidLookup(n) || (a =
|
|
2683
|
+
let y;
|
|
2684
|
+
for (; y = S.pop(); )
|
|
2685
|
+
this.isValidLookup(n) || (a = y, n = this.getResource(O, w, y, t));
|
|
2686
2686
|
}));
|
|
2687
2687
|
});
|
|
2688
2688
|
}), {
|
|
@@ -2869,17 +2869,17 @@ class Mn {
|
|
|
2869
2869
|
suffix: o,
|
|
2870
2870
|
suffixEscaped: c,
|
|
2871
2871
|
formatSeparator: l,
|
|
2872
|
-
unescapeSuffix:
|
|
2873
|
-
unescapePrefix:
|
|
2872
|
+
unescapeSuffix: u,
|
|
2873
|
+
unescapePrefix: f,
|
|
2874
2874
|
nestingPrefix: d,
|
|
2875
2875
|
nestingPrefixEscaped: m,
|
|
2876
2876
|
nestingSuffix: p,
|
|
2877
2877
|
nestingSuffixEscaped: v,
|
|
2878
|
-
nestingOptionsSeparator:
|
|
2878
|
+
nestingOptionsSeparator: w,
|
|
2879
2879
|
maxReplaces: E,
|
|
2880
2880
|
alwaysFormat: b
|
|
2881
2881
|
} = e.interpolation;
|
|
2882
|
-
this.escape = t !== void 0 ? t : Cn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? $e(a) : i || "{{", this.suffix = o ? $e(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix =
|
|
2882
|
+
this.escape = t !== void 0 ? t : Cn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? $e(a) : i || "{{", this.suffix = o ? $e(o) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = u ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? $e(d) : m || $e("$t("), this.nestingSuffix = p ? $e(p) : v || $e(")"), this.nestingOptionsSeparator = w || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
2883
2883
|
}
|
|
2884
2884
|
reset() {
|
|
2885
2885
|
this.options && this.init(this.options);
|
|
@@ -2900,15 +2900,15 @@ class Mn {
|
|
|
2900
2900
|
interpolationkey: p
|
|
2901
2901
|
}) : b;
|
|
2902
2902
|
}
|
|
2903
|
-
const v = p.split(this.formatSeparator),
|
|
2904
|
-
return this.format(mr(t, c,
|
|
2903
|
+
const v = p.split(this.formatSeparator), w = v.shift().trim(), E = v.join(this.formatSeparator).trim();
|
|
2904
|
+
return this.format(mr(t, c, w, this.options.keySeparator, this.options.ignoreJSONStructure), E, n, {
|
|
2905
2905
|
...s,
|
|
2906
2906
|
...t,
|
|
2907
|
-
interpolationkey:
|
|
2907
|
+
interpolationkey: w
|
|
2908
2908
|
});
|
|
2909
2909
|
};
|
|
2910
2910
|
this.resetRegExp();
|
|
2911
|
-
const
|
|
2911
|
+
const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, f = ((m = s == null ? void 0 : s.interpolation) == null ? void 0 : m.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
2912
2912
|
return [{
|
|
2913
2913
|
regex: this.regexpUnescape,
|
|
2914
2914
|
safeValue: (p) => Ot(p)
|
|
@@ -2919,19 +2919,19 @@ class Mn {
|
|
|
2919
2919
|
for (o = 0; a = p.regex.exec(e); ) {
|
|
2920
2920
|
const v = a[1].trim();
|
|
2921
2921
|
if (i = l(v), i === void 0)
|
|
2922
|
-
if (typeof
|
|
2923
|
-
const E =
|
|
2922
|
+
if (typeof u == "function") {
|
|
2923
|
+
const E = u(e, a, s);
|
|
2924
2924
|
i = K(E) ? E : "";
|
|
2925
2925
|
} else if (s && Object.prototype.hasOwnProperty.call(s, v))
|
|
2926
2926
|
i = "";
|
|
2927
|
-
else if (
|
|
2927
|
+
else if (f) {
|
|
2928
2928
|
i = a[0];
|
|
2929
2929
|
continue;
|
|
2930
2930
|
} else
|
|
2931
2931
|
this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`), i = "";
|
|
2932
2932
|
else !K(i) && !this.useRawValueToEscape && (i = ar(i));
|
|
2933
|
-
const
|
|
2934
|
-
if (e = e.replace(a[0],
|
|
2933
|
+
const w = p.safeValue(i);
|
|
2934
|
+
if (e = e.replace(a[0], w), f ? (p.regex.lastIndex += i.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2935
2935
|
break;
|
|
2936
2936
|
}
|
|
2937
2937
|
}), e;
|
|
@@ -2939,11 +2939,11 @@ class Mn {
|
|
|
2939
2939
|
nest(e, t, n = {}) {
|
|
2940
2940
|
let s, a, i;
|
|
2941
2941
|
const o = (c, l) => {
|
|
2942
|
-
const
|
|
2943
|
-
if (c.indexOf(
|
|
2944
|
-
const
|
|
2945
|
-
let d = `{${
|
|
2946
|
-
c =
|
|
2942
|
+
const u = this.nestingOptionsSeparator;
|
|
2943
|
+
if (c.indexOf(u) < 0) return c;
|
|
2944
|
+
const f = c.split(new RegExp(`${u}[ ]*{`));
|
|
2945
|
+
let d = `{${f[1]}`;
|
|
2946
|
+
c = f[0], d = this.interpolate(d, i);
|
|
2947
2947
|
const m = d.match(/'/g), p = d.match(/"/g);
|
|
2948
2948
|
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !p || p.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
2949
2949
|
try {
|
|
@@ -2952,7 +2952,7 @@ class Mn {
|
|
|
2952
2952
|
...i
|
|
2953
2953
|
});
|
|
2954
2954
|
} catch (v) {
|
|
2955
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, v), `${c}${
|
|
2955
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${c}`, v), `${c}${u}${d}`;
|
|
2956
2956
|
}
|
|
2957
2957
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, c;
|
|
2958
2958
|
};
|
|
@@ -2963,11 +2963,11 @@ class Mn {
|
|
|
2963
2963
|
}, i = i.replace && !K(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
2964
2964
|
let l = !1;
|
|
2965
2965
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
2966
|
-
const
|
|
2967
|
-
s[1] =
|
|
2966
|
+
const u = s[1].split(this.formatSeparator).map((f) => f.trim());
|
|
2967
|
+
s[1] = u.shift(), c = u, l = !0;
|
|
2968
2968
|
}
|
|
2969
2969
|
if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !K(a)) return a;
|
|
2970
|
-
K(a) || (a = ar(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l && (a = c.reduce((
|
|
2970
|
+
K(a) || (a = ar(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l && (a = c.reduce((u, f) => this.format(u, f, n.lng, {
|
|
2971
2971
|
...n,
|
|
2972
2972
|
interpolationkey: s[1].trim()
|
|
2973
2973
|
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
@@ -2984,8 +2984,8 @@ const Fn = (r) => {
|
|
|
2984
2984
|
const s = n[1].substring(0, n[1].length - 1);
|
|
2985
2985
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((i) => {
|
|
2986
2986
|
if (i) {
|
|
2987
|
-
const [o, ...c] = i.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""),
|
|
2988
|
-
t[
|
|
2987
|
+
const [o, ...c] = i.split(":"), l = c.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
|
|
2988
|
+
t[u] || (t[u] = l), l === "false" && (t[u] = !1), l === "true" && (t[u] = !0), isNaN(l) || (t[u] = parseInt(l, 10));
|
|
2989
2989
|
}
|
|
2990
2990
|
});
|
|
2991
2991
|
}
|
|
@@ -3062,17 +3062,17 @@ class Yn {
|
|
|
3062
3062
|
a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
|
|
3063
3063
|
}
|
|
3064
3064
|
return a.reduce((o, c) => {
|
|
3065
|
-
var
|
|
3065
|
+
var f;
|
|
3066
3066
|
const {
|
|
3067
3067
|
formatName: l,
|
|
3068
|
-
formatOptions:
|
|
3068
|
+
formatOptions: u
|
|
3069
3069
|
} = Fn(c);
|
|
3070
3070
|
if (this.formats[l]) {
|
|
3071
3071
|
let d = o;
|
|
3072
3072
|
try {
|
|
3073
|
-
const m = ((
|
|
3073
|
+
const m = ((f = s == null ? void 0 : s.formatParams) == null ? void 0 : f[s.interpolationkey]) || {}, p = m.locale || m.lng || s.locale || s.lng || n;
|
|
3074
3074
|
d = this.formats[l](o, p, {
|
|
3075
|
-
...
|
|
3075
|
+
...u,
|
|
3076
3076
|
...s,
|
|
3077
3077
|
...m
|
|
3078
3078
|
});
|
|
@@ -3097,11 +3097,11 @@ class Wn extends gt {
|
|
|
3097
3097
|
queueLoad(e, t, n, s) {
|
|
3098
3098
|
const a = {}, i = {}, o = {}, c = {};
|
|
3099
3099
|
return e.forEach((l) => {
|
|
3100
|
-
let
|
|
3101
|
-
t.forEach((
|
|
3102
|
-
const d = `${l}|${
|
|
3103
|
-
!n.reload && this.store.hasResourceBundle(l,
|
|
3104
|
-
}),
|
|
3100
|
+
let u = !0;
|
|
3101
|
+
t.forEach((f) => {
|
|
3102
|
+
const d = `${l}|${f}`;
|
|
3103
|
+
!n.reload && this.store.hasResourceBundle(l, f) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, u = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), c[f] === void 0 && (c[f] = !0)));
|
|
3104
|
+
}), u || (o[l] = !0);
|
|
3105
3105
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3106
3106
|
pending: i,
|
|
3107
3107
|
pendingCount: Object.keys(i).length,
|
|
@@ -3124,9 +3124,9 @@ class Wn extends gt {
|
|
|
3124
3124
|
this.queue.forEach((c) => {
|
|
3125
3125
|
jn(c.loaded, [a], i), Un(c, e), t && c.errors.push(t), c.pendingCount === 0 && !c.done && (Object.keys(c.loaded).forEach((l) => {
|
|
3126
3126
|
o[l] || (o[l] = {});
|
|
3127
|
-
const
|
|
3128
|
-
|
|
3129
|
-
o[l][
|
|
3127
|
+
const u = c.loaded[l];
|
|
3128
|
+
u.length && u.forEach((f) => {
|
|
3129
|
+
o[l][f] === void 0 && (o[l][f] = !0);
|
|
3130
3130
|
});
|
|
3131
3131
|
}), c.done = !0, c.errors.length ? c.callback(c.errors) : c.callback());
|
|
3132
3132
|
}), this.emit("loaded", o), this.queue = this.queue.filter((c) => !c.done);
|
|
@@ -3145,23 +3145,23 @@ class Wn extends gt {
|
|
|
3145
3145
|
return;
|
|
3146
3146
|
}
|
|
3147
3147
|
this.readingCalls++;
|
|
3148
|
-
const o = (l,
|
|
3148
|
+
const o = (l, u) => {
|
|
3149
3149
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
3150
|
-
const
|
|
3151
|
-
this.read(
|
|
3150
|
+
const f = this.waitingReads.shift();
|
|
3151
|
+
this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
|
|
3152
3152
|
}
|
|
3153
|
-
if (l &&
|
|
3153
|
+
if (l && u && s < this.maxRetries) {
|
|
3154
3154
|
setTimeout(() => {
|
|
3155
3155
|
this.read.call(this, e, t, n, s + 1, a * 2, i);
|
|
3156
3156
|
}, a);
|
|
3157
3157
|
return;
|
|
3158
3158
|
}
|
|
3159
|
-
i(l,
|
|
3159
|
+
i(l, u);
|
|
3160
3160
|
}, c = this.backend[n].bind(this.backend);
|
|
3161
3161
|
if (c.length === 2) {
|
|
3162
3162
|
try {
|
|
3163
3163
|
const l = c(e, t);
|
|
3164
|
-
l && typeof l.then == "function" ? l.then((
|
|
3164
|
+
l && typeof l.then == "function" ? l.then((u) => o(null, u)).catch(o) : o(null, l);
|
|
3165
3165
|
} catch (l) {
|
|
3166
3166
|
o(l);
|
|
3167
3167
|
}
|
|
@@ -3196,8 +3196,8 @@ class Wn extends gt {
|
|
|
3196
3196
|
}
|
|
3197
3197
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3198
3198
|
}) {
|
|
3199
|
-
var c, l,
|
|
3200
|
-
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((
|
|
3199
|
+
var c, l, u, f, d;
|
|
3200
|
+
if ((l = (c = this.services) == null ? void 0 : c.utils) != null && l.hasLoadedNamespace && !((f = (u = this.services) == null ? void 0 : u.utils) != null && f.hasLoadedNamespace(t))) {
|
|
3201
3201
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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!!!");
|
|
3202
3202
|
return;
|
|
3203
3203
|
}
|
|
@@ -3210,7 +3210,7 @@ class Wn extends gt {
|
|
|
3210
3210
|
if (p.length < 6)
|
|
3211
3211
|
try {
|
|
3212
3212
|
let v;
|
|
3213
|
-
p.length === 5 ? v = p(e, t, n, s, m) : v = p(e, t, n, s), v && typeof v.then == "function" ? v.then((
|
|
3213
|
+
p.length === 5 ? v = p(e, t, n, s, m) : v = p(e, t, n, s), v && typeof v.then == "function" ? v.then((w) => o(null, w)).catch(o) : o(null, v);
|
|
3214
3214
|
} catch (v) {
|
|
3215
3215
|
o(v);
|
|
3216
3216
|
}
|
|
@@ -3315,17 +3315,17 @@ class We extends gt {
|
|
|
3315
3315
|
this.modules.logger ? be.init(s(this.modules.logger), this.options) : be.init(null, this.options);
|
|
3316
3316
|
let l;
|
|
3317
3317
|
this.modules.formatter ? l = this.modules.formatter : l = Yn;
|
|
3318
|
-
const
|
|
3318
|
+
const u = new dr(this.options);
|
|
3319
3319
|
this.store = new cr(this.options.resources, this.options);
|
|
3320
|
-
const
|
|
3321
|
-
|
|
3320
|
+
const f = this.services;
|
|
3321
|
+
f.logger = be, f.resourceStore = this.store, f.languageUtils = u, f.pluralResolver = new In(u, {
|
|
3322
3322
|
prepend: this.options.pluralSeparator,
|
|
3323
3323
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3324
|
-
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (
|
|
3324
|
+
}), l && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = s(l), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Mn(this.options), f.utils = {
|
|
3325
3325
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3326
|
-
},
|
|
3326
|
+
}, f.backendConnector = new Wn(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...m) => {
|
|
3327
3327
|
this.emit(d, ...m);
|
|
3328
|
-
}), this.modules.languageDetector && (
|
|
3328
|
+
}), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (d, ...m) => {
|
|
3329
3329
|
this.emit(d, ...m);
|
|
3330
3330
|
}), this.modules.external.forEach((d) => {
|
|
3331
3331
|
d.init && d.init(this);
|
|
@@ -3336,13 +3336,13 @@ class We extends gt {
|
|
|
3336
3336
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
3337
3337
|
}
|
|
3338
3338
|
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((l) => {
|
|
3339
|
-
this[l] = (...
|
|
3339
|
+
this[l] = (...u) => this.store[l](...u);
|
|
3340
3340
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
3341
|
-
this[l] = (...
|
|
3341
|
+
this[l] = (...u) => (this.store[l](...u), this);
|
|
3342
3342
|
});
|
|
3343
3343
|
const o = Fe(), c = () => {
|
|
3344
|
-
const l = (
|
|
3345
|
-
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(
|
|
3344
|
+
const l = (u, f) => {
|
|
3345
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(f), t(u, f);
|
|
3346
3346
|
};
|
|
3347
3347
|
if (this.languages && !this.isInitialized) return l(null, this.t.bind(this));
|
|
3348
3348
|
this.changeLanguage(this.options.lng, l);
|
|
@@ -3357,11 +3357,11 @@ class We extends gt {
|
|
|
3357
3357
|
if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
3358
3358
|
const o = [], c = (l) => {
|
|
3359
3359
|
if (!l || l === "cimode") return;
|
|
3360
|
-
this.services.languageUtils.toResolveHierarchy(l).forEach((
|
|
3361
|
-
|
|
3360
|
+
this.services.languageUtils.toResolveHierarchy(l).forEach((f) => {
|
|
3361
|
+
f !== "cimode" && o.indexOf(f) < 0 && o.push(f);
|
|
3362
3362
|
});
|
|
3363
3363
|
};
|
|
3364
|
-
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
|
3364
|
+
s ? c(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => c(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (l) => c(l)), this.services.backendConnector.load(o, this.options.ns, (l) => {
|
|
3365
3365
|
!l && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(l);
|
|
3366
3366
|
});
|
|
3367
3367
|
} else
|
|
@@ -3399,10 +3399,10 @@ class We extends gt {
|
|
|
3399
3399
|
}, a = (o, c) => {
|
|
3400
3400
|
c ? this.isLanguageChangingTo === e && (s(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, n.resolve((...l) => this.t(...l)), t && t(o, (...l) => this.t(...l));
|
|
3401
3401
|
}, i = (o) => {
|
|
3402
|
-
var
|
|
3402
|
+
var u, f;
|
|
3403
3403
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3404
3404
|
const c = K(o) ? o : o && o[0], l = this.store.hasLanguageSomeTranslations(c) ? c : this.services.languageUtils.getBestMatchFromCodes(K(o) ? [o] : o);
|
|
3405
|
-
l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (
|
|
3405
|
+
l && (this.language || s(l), this.translator.language || this.translator.changeLanguage(l), (f = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || f.call(u, l)), this.loadResources(l, (d) => {
|
|
3406
3406
|
a(d, l);
|
|
3407
3407
|
});
|
|
3408
3408
|
};
|
|
@@ -3415,8 +3415,8 @@ class We extends gt {
|
|
|
3415
3415
|
...i
|
|
3416
3416
|
}, c.lng = c.lng || s.lng, c.lngs = c.lngs || s.lngs, c.ns = c.ns || s.ns, c.keyPrefix !== "" && (c.keyPrefix = c.keyPrefix || n || s.keyPrefix);
|
|
3417
3417
|
const l = this.options.keySeparator || ".";
|
|
3418
|
-
let
|
|
3419
|
-
return c.keyPrefix && Array.isArray(a) ?
|
|
3418
|
+
let u;
|
|
3419
|
+
return c.keyPrefix && Array.isArray(a) ? u = a.map((f) => `${c.keyPrefix}${l}${f}`) : u = c.keyPrefix ? `${c.keyPrefix}${l}${a}` : a, this.t(u, c);
|
|
3420
3420
|
};
|
|
3421
3421
|
return K(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
|
|
3422
3422
|
}
|
|
@@ -3490,9 +3490,9 @@ class We extends gt {
|
|
|
3490
3490
|
}, n) {
|
|
3491
3491
|
const o = Object.keys(this.store.data).reduce((c, l) => (c[l] = {
|
|
3492
3492
|
...this.store.data[l]
|
|
3493
|
-
}, c[l] = Object.keys(c[l]).reduce((
|
|
3494
|
-
...c[l][
|
|
3495
|
-
},
|
|
3493
|
+
}, c[l] = Object.keys(c[l]).reduce((u, f) => (u[f] = {
|
|
3494
|
+
...c[l][f]
|
|
3495
|
+
}, u), c[l]), c), {});
|
|
3496
3496
|
a.store = new cr(o, s), a.services.resourceStore = a.store;
|
|
3497
3497
|
}
|
|
3498
3498
|
return a.translator = new dt(a.services, s), a.translator.on("*", (o, ...c) => {
|
|
@@ -3661,72 +3661,72 @@ const kr = ({
|
|
|
3661
3661
|
fun: o,
|
|
3662
3662
|
_changeOnEnter: c = !1,
|
|
3663
3663
|
onChange: l,
|
|
3664
|
-
onOptionsRequest:
|
|
3665
|
-
_multiActiveIndex:
|
|
3664
|
+
onOptionsRequest: u,
|
|
3665
|
+
_multiActiveIndex: f,
|
|
3666
3666
|
...d
|
|
3667
3667
|
}) => {
|
|
3668
|
-
const m = ce(null), [p, v] = q(r), [
|
|
3668
|
+
const m = ce(null), [p, v] = q(r), [w, E] = q(e), { translate: b } = je(), [O, S] = q(!1), [y, R] = q(t || []), [k, _] = q(0), [T, D] = q([r]), { anchorRef: N, targetRef: P, anchorWidth: A } = ht({
|
|
3669
3669
|
position: "bottom",
|
|
3670
3670
|
enabled: O
|
|
3671
|
-
}),
|
|
3671
|
+
}), V = le(() => {
|
|
3672
3672
|
var h;
|
|
3673
3673
|
S(!1), (h = m == null ? void 0 : m.current) == null || h.focus();
|
|
3674
3674
|
}, []);
|
|
3675
|
-
Ye(P, O, () =>
|
|
3676
|
-
const
|
|
3677
|
-
h.length >= a ? o &&
|
|
3678
|
-
const x = await
|
|
3679
|
-
|
|
3680
|
-
}) :
|
|
3675
|
+
Ye(P, O, () => V());
|
|
3676
|
+
const I = On(400), W = (h) => {
|
|
3677
|
+
h.length >= a ? o && u && I(async () => {
|
|
3678
|
+
const x = await u(o, h);
|
|
3679
|
+
R(x), _(x.length > 0 ? 0 : -1), S(!0);
|
|
3680
|
+
}) : V(), v(h), E(e), c || l == null || l(h, e);
|
|
3681
3681
|
}, z = (h) => {
|
|
3682
3682
|
c ? (v(""), E("")) : (v(h.id), E(h.label)), l == null || l(h.id, h.label);
|
|
3683
|
-
const x =
|
|
3684
|
-
_(x),
|
|
3683
|
+
const x = y.findIndex((j) => j.id === h.id);
|
|
3684
|
+
_(x), D([h.id]), V();
|
|
3685
3685
|
}, X = (h) => {
|
|
3686
|
-
h.key === "Escape" && (
|
|
3686
|
+
h.key === "Escape" && (V(), _(-1));
|
|
3687
3687
|
}, F = (h) => {
|
|
3688
3688
|
if ((h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), O)) {
|
|
3689
|
-
const x = h.key === "ArrowDown" ? (k + 1) %
|
|
3689
|
+
const x = h.key === "ArrowDown" ? (k + 1) % y.length : (k - 1 + y.length) % y.length;
|
|
3690
3690
|
_(x);
|
|
3691
3691
|
}
|
|
3692
3692
|
switch (h.key) {
|
|
3693
3693
|
case "Enter":
|
|
3694
|
-
k >= 0 && k <
|
|
3694
|
+
k >= 0 && k < y.length ? z(y[k]) : c && (l == null || l(p, ""), V(), v(""), E(""));
|
|
3695
3695
|
break;
|
|
3696
3696
|
case "Escape":
|
|
3697
|
-
|
|
3697
|
+
V(), _(-1);
|
|
3698
3698
|
break;
|
|
3699
3699
|
}
|
|
3700
3700
|
};
|
|
3701
|
-
return /* @__PURE__ */
|
|
3702
|
-
/* @__PURE__ */
|
|
3701
|
+
return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3702
|
+
/* @__PURE__ */ g.jsx(
|
|
3703
3703
|
At,
|
|
3704
3704
|
{
|
|
3705
3705
|
...d,
|
|
3706
3706
|
bindValue: p,
|
|
3707
|
-
optionalDisplayValue:
|
|
3707
|
+
optionalDisplayValue: w,
|
|
3708
3708
|
displayMode: n,
|
|
3709
3709
|
isEditable: i,
|
|
3710
3710
|
shapeIcon: "magnify",
|
|
3711
3711
|
placeholder: b(
|
|
3712
3712
|
ke.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3713
3713
|
),
|
|
3714
|
-
ref:
|
|
3714
|
+
ref: N,
|
|
3715
3715
|
inputRef: m,
|
|
3716
|
-
onChange:
|
|
3716
|
+
onChange: W,
|
|
3717
3717
|
onKeyDown: F,
|
|
3718
3718
|
"aria-autocomplete": "list"
|
|
3719
3719
|
}
|
|
3720
3720
|
),
|
|
3721
|
-
O && /* @__PURE__ */
|
|
3721
|
+
O && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3722
3722
|
Pr,
|
|
3723
3723
|
{
|
|
3724
|
-
options:
|
|
3724
|
+
options: y,
|
|
3725
3725
|
displayMode: s,
|
|
3726
3726
|
onClick: z,
|
|
3727
3727
|
ref: P,
|
|
3728
3728
|
selectedIndex: k,
|
|
3729
|
-
activeIndex:
|
|
3729
|
+
activeIndex: f || T,
|
|
3730
3730
|
width: A,
|
|
3731
3731
|
showFilter: !1,
|
|
3732
3732
|
onKeyDown: X,
|
|
@@ -3755,28 +3755,28 @@ const kr = ({
|
|
|
3755
3755
|
variant: o = "primary",
|
|
3756
3756
|
appearance: c = "raised",
|
|
3757
3757
|
showIcon: l = !0,
|
|
3758
|
-
showText:
|
|
3759
|
-
fullWidth:
|
|
3758
|
+
showText: u = !0,
|
|
3759
|
+
fullWidth: f = !1,
|
|
3760
3760
|
loading: d = !1,
|
|
3761
3761
|
justify: m = "center",
|
|
3762
3762
|
title: p,
|
|
3763
3763
|
optionalDisplayValue: v
|
|
3764
3764
|
}) => {
|
|
3765
|
-
const
|
|
3766
|
-
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${
|
|
3765
|
+
const w = {
|
|
3766
|
+
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${c ? `smp-buttonType-${c}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${m}`
|
|
3767
3767
|
};
|
|
3768
|
-
return /* @__PURE__ */
|
|
3768
|
+
return /* @__PURE__ */ g.jsx(
|
|
3769
3769
|
"button",
|
|
3770
3770
|
{
|
|
3771
3771
|
"data-component": "button",
|
|
3772
|
-
className:
|
|
3772
|
+
className: w.container,
|
|
3773
3773
|
onClick: t,
|
|
3774
3774
|
"aria-label": n,
|
|
3775
3775
|
disabled: a,
|
|
3776
3776
|
"aria-busy": d,
|
|
3777
3777
|
title: p || r || v,
|
|
3778
|
-
children: d ? /* @__PURE__ */
|
|
3779
|
-
s && l && /* @__PURE__ */
|
|
3778
|
+
children: d ? /* @__PURE__ */ g.jsx(fe, { icon: "spinner", state: Sr(o), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
3779
|
+
s && l && /* @__PURE__ */ g.jsx(
|
|
3780
3780
|
fe,
|
|
3781
3781
|
{
|
|
3782
3782
|
icon: s,
|
|
@@ -3786,7 +3786,7 @@ const kr = ({
|
|
|
3786
3786
|
height: br(i)
|
|
3787
3787
|
}
|
|
3788
3788
|
),
|
|
3789
|
-
|
|
3789
|
+
u && /* @__PURE__ */ g.jsx("span", { children: v || e })
|
|
3790
3790
|
] })
|
|
3791
3791
|
}
|
|
3792
3792
|
);
|
|
@@ -3801,8 +3801,8 @@ const kr = ({
|
|
|
3801
3801
|
showText: o,
|
|
3802
3802
|
showIcon: c,
|
|
3803
3803
|
fullWidth: l,
|
|
3804
|
-
disabled:
|
|
3805
|
-
justify:
|
|
3804
|
+
disabled: u,
|
|
3805
|
+
justify: f,
|
|
3806
3806
|
onClick: d,
|
|
3807
3807
|
onOptionsRequest: m
|
|
3808
3808
|
}) => {
|
|
@@ -3815,7 +3815,7 @@ const kr = ({
|
|
|
3815
3815
|
);
|
|
3816
3816
|
});
|
|
3817
3817
|
}, [p, e, m]);
|
|
3818
|
-
const
|
|
3818
|
+
const w = {
|
|
3819
3819
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
3820
3820
|
}, E = p == null ? void 0 : p.map((b, O) => {
|
|
3821
3821
|
const S = {
|
|
@@ -3828,16 +3828,16 @@ const kr = ({
|
|
|
3828
3828
|
showText: o,
|
|
3829
3829
|
showIcon: c,
|
|
3830
3830
|
fullWidth: l,
|
|
3831
|
-
disabled:
|
|
3831
|
+
disabled: u,
|
|
3832
3832
|
sizing: s,
|
|
3833
|
-
justify:
|
|
3833
|
+
justify: f,
|
|
3834
3834
|
onClick: () => {
|
|
3835
3835
|
d == null || d(b.id, b.fun);
|
|
3836
3836
|
}
|
|
3837
3837
|
};
|
|
3838
|
-
return /* @__PURE__ */
|
|
3838
|
+
return /* @__PURE__ */ g.jsx(Be, { ...S }, `button-${O}`);
|
|
3839
3839
|
});
|
|
3840
|
-
return /* @__PURE__ */
|
|
3840
|
+
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: w.container, children: E });
|
|
3841
3841
|
}, us = {
|
|
3842
3842
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
3843
3843
|
}, fs = ({
|
|
@@ -3850,14 +3850,14 @@ const kr = ({
|
|
|
3850
3850
|
onBlur: i,
|
|
3851
3851
|
variant: o = "checkbox"
|
|
3852
3852
|
}) => {
|
|
3853
|
-
const c = Ge(), l = (
|
|
3854
|
-
s && a && a(
|
|
3855
|
-
},
|
|
3853
|
+
const c = Ge(), l = (f) => {
|
|
3854
|
+
s && a && a(f.target.checked);
|
|
3855
|
+
}, u = {
|
|
3856
3856
|
wrapper: `${us["smp-checkbox-wrapper"]}`
|
|
3857
3857
|
};
|
|
3858
|
-
return /* @__PURE__ */
|
|
3859
|
-
n && /* @__PURE__ */
|
|
3860
|
-
/* @__PURE__ */
|
|
3858
|
+
return /* @__PURE__ */ g.jsxs("div", { className: u.wrapper, "data-component": e, children: [
|
|
3859
|
+
n && /* @__PURE__ */ g.jsx(Re, { label: n, disabled: t, htmlFor: c }),
|
|
3860
|
+
/* @__PURE__ */ g.jsx(
|
|
3861
3861
|
"input",
|
|
3862
3862
|
{
|
|
3863
3863
|
"data-component": "checkbox",
|
|
@@ -3884,7 +3884,7 @@ const kr = ({
|
|
|
3884
3884
|
const s = ds[r], a = {
|
|
3885
3885
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
3886
3886
|
};
|
|
3887
|
-
return /* @__PURE__ */
|
|
3887
|
+
return /* @__PURE__ */ g.jsx(
|
|
3888
3888
|
s,
|
|
3889
3889
|
{
|
|
3890
3890
|
className: a.container,
|
|
@@ -3907,48 +3907,48 @@ const kr = ({
|
|
|
3907
3907
|
const [o, c] = q(null), l = {
|
|
3908
3908
|
container: `${["smp-chips-container"]}`,
|
|
3909
3909
|
element: "smp-chips-element"
|
|
3910
|
-
}, f = (m) => {
|
|
3911
|
-
n == null || n(r.filter((p, v) => v !== m));
|
|
3912
3910
|
}, u = (m) => {
|
|
3911
|
+
n == null || n(r.filter((p, v) => v !== m));
|
|
3912
|
+
}, f = (m) => {
|
|
3913
3913
|
c(m);
|
|
3914
3914
|
}, d = (m) => {
|
|
3915
3915
|
if (o === null || o === m) return;
|
|
3916
3916
|
const p = [...r], [v] = p.splice(o, 1);
|
|
3917
3917
|
p.splice(m, 0, v), n == null || n(p), c(null);
|
|
3918
3918
|
};
|
|
3919
|
-
return /* @__PURE__ */
|
|
3919
|
+
return /* @__PURE__ */ g.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: r.flatMap((m, p) => {
|
|
3920
3920
|
const v = Le(
|
|
3921
3921
|
m.bindValue,
|
|
3922
3922
|
m.optionalDisplayValue,
|
|
3923
3923
|
t
|
|
3924
|
-
),
|
|
3924
|
+
), w = /* @__PURE__ */ g.jsxs(
|
|
3925
3925
|
"div",
|
|
3926
3926
|
{
|
|
3927
3927
|
className: l.element,
|
|
3928
3928
|
role: "listitem",
|
|
3929
3929
|
draggable: i,
|
|
3930
|
-
onDragStart: () =>
|
|
3930
|
+
onDragStart: () => f(p),
|
|
3931
3931
|
onDragOver: (b) => i && b.preventDefault(),
|
|
3932
3932
|
onDrop: () => i && d(p),
|
|
3933
3933
|
style: {
|
|
3934
3934
|
"--smp-chips-backgroundColor-base": a
|
|
3935
3935
|
},
|
|
3936
3936
|
children: [
|
|
3937
|
-
i && /* @__PURE__ */
|
|
3938
|
-
/* @__PURE__ */
|
|
3939
|
-
e && /* @__PURE__ */
|
|
3937
|
+
i && /* @__PURE__ */ g.jsx(fe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
3938
|
+
/* @__PURE__ */ g.jsx(Ne, { variant: "label", bindValue: v, color: s }),
|
|
3939
|
+
e && /* @__PURE__ */ g.jsx(
|
|
3940
3940
|
fe,
|
|
3941
3941
|
{
|
|
3942
3942
|
icon: "close",
|
|
3943
3943
|
isInteractable: !0,
|
|
3944
|
-
onClick: () =>
|
|
3944
|
+
onClick: () => u(p),
|
|
3945
3945
|
color: s
|
|
3946
3946
|
}
|
|
3947
3947
|
)
|
|
3948
3948
|
]
|
|
3949
3949
|
},
|
|
3950
3950
|
`chip-${p}`
|
|
3951
|
-
), E = i && p < r.length - 1 ? /* @__PURE__ */
|
|
3951
|
+
), E = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
3952
3952
|
fe,
|
|
3953
3953
|
{
|
|
3954
3954
|
icon: "chevron-right",
|
|
@@ -3956,7 +3956,7 @@ const kr = ({
|
|
|
3956
3956
|
},
|
|
3957
3957
|
`separator-${p}`
|
|
3958
3958
|
) : null;
|
|
3959
|
-
return [
|
|
3959
|
+
return [w, E].filter(Boolean);
|
|
3960
3960
|
}) });
|
|
3961
3961
|
};
|
|
3962
3962
|
function kt(r, e) {
|
|
@@ -3977,15 +3977,15 @@ function kt(r, e) {
|
|
|
3977
3977
|
})();
|
|
3978
3978
|
const i = (l) => {
|
|
3979
3979
|
if (l.key === "Escape" || l.key !== "Tab") return;
|
|
3980
|
-
const
|
|
3981
|
-
if (
|
|
3982
|
-
const
|
|
3983
|
-
l.shiftKey && document.activeElement ===
|
|
3980
|
+
const u = s();
|
|
3981
|
+
if (u.length === 0) return;
|
|
3982
|
+
const f = u[0], d = u[u.length - 1];
|
|
3983
|
+
l.shiftKey && document.activeElement === f ? (l.preventDefault(), d.focus()) : !l.shiftKey && document.activeElement === d && (l.preventDefault(), f.focus());
|
|
3984
3984
|
}, o = (l) => {
|
|
3985
3985
|
if (n && !n.contains(l.target)) {
|
|
3986
3986
|
l.preventDefault();
|
|
3987
|
-
const
|
|
3988
|
-
|
|
3987
|
+
const u = s();
|
|
3988
|
+
u.length > 0 && u[0].focus();
|
|
3989
3989
|
}
|
|
3990
3990
|
};
|
|
3991
3991
|
document.addEventListener("keydown", i), document.addEventListener("mousedown", o);
|
|
@@ -4009,30 +4009,30 @@ const ps = ({
|
|
|
4009
4009
|
fun: o,
|
|
4010
4010
|
onOptionsRequest: c,
|
|
4011
4011
|
multiActiveIndex: l,
|
|
4012
|
-
...
|
|
4012
|
+
...u
|
|
4013
4013
|
}) => {
|
|
4014
|
-
const
|
|
4014
|
+
const f = ce(null), [d, m] = q(!1), [p, v] = q(t), [w, E] = q(-1), [b, O] = q([r]), S = Ge(), { anchorRef: y, targetRef: R, anchorWidth: k } = ht({
|
|
4015
4015
|
position: "bottom",
|
|
4016
4016
|
enabled: d
|
|
4017
4017
|
}), _ = le(() => {
|
|
4018
4018
|
var A;
|
|
4019
|
-
m(!1), (A =
|
|
4019
|
+
m(!1), (A = f == null ? void 0 : f.current) == null || A.focus();
|
|
4020
4020
|
}, []);
|
|
4021
|
-
Ye(
|
|
4022
|
-
const
|
|
4021
|
+
Ye(R, d, () => _()), kt(d, R);
|
|
4022
|
+
const T = (A) => {
|
|
4023
4023
|
e == null || e(A.id, A.label);
|
|
4024
|
-
const
|
|
4025
|
-
E(
|
|
4026
|
-
},
|
|
4024
|
+
const V = p.findIndex((I) => I.id === A.id);
|
|
4025
|
+
E(V), O([A.id]), _();
|
|
4026
|
+
}, D = (A) => {
|
|
4027
4027
|
A.key === "Escape" && (_(), E(-1));
|
|
4028
|
-
},
|
|
4028
|
+
}, N = (A) => {
|
|
4029
4029
|
(A.key === "ArrowDown" || A.key === "ArrowUp") && (A.preventDefault(), P());
|
|
4030
4030
|
}, P = () => {
|
|
4031
4031
|
o && c && c(o, void 0).then((A) => {
|
|
4032
4032
|
v(A), E(A.length > 0 ? 0 : -1), m(!0);
|
|
4033
4033
|
});
|
|
4034
4034
|
};
|
|
4035
|
-
return /* @__PURE__ */
|
|
4035
|
+
return /* @__PURE__ */ g.jsxs(
|
|
4036
4036
|
"div",
|
|
4037
4037
|
{
|
|
4038
4038
|
role: "combobox",
|
|
@@ -4041,37 +4041,37 @@ const ps = ({
|
|
|
4041
4041
|
"aria-owns": S,
|
|
4042
4042
|
"data-component": "combobox",
|
|
4043
4043
|
children: [
|
|
4044
|
-
/* @__PURE__ */
|
|
4044
|
+
/* @__PURE__ */ g.jsx(
|
|
4045
4045
|
At,
|
|
4046
4046
|
{
|
|
4047
|
-
...
|
|
4047
|
+
...u,
|
|
4048
4048
|
bindValue: r,
|
|
4049
4049
|
optionalDisplayValue: n,
|
|
4050
4050
|
displayMode: a,
|
|
4051
4051
|
onShapeIconClick: P,
|
|
4052
|
-
onKeyDown:
|
|
4052
|
+
onKeyDown: N,
|
|
4053
4053
|
shapeIcon: "arrow_drop_down",
|
|
4054
4054
|
rotatedShapeIcon: d,
|
|
4055
4055
|
isEditable: s,
|
|
4056
|
-
ref:
|
|
4057
|
-
inputRef:
|
|
4056
|
+
ref: y,
|
|
4057
|
+
inputRef: f,
|
|
4058
4058
|
"aria-autocomplete": "list",
|
|
4059
4059
|
variant: "notSelectable"
|
|
4060
4060
|
}
|
|
4061
4061
|
),
|
|
4062
|
-
d && /* @__PURE__ */
|
|
4062
|
+
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4063
4063
|
Pr,
|
|
4064
4064
|
{
|
|
4065
4065
|
id: S,
|
|
4066
4066
|
options: p,
|
|
4067
4067
|
displayMode: i,
|
|
4068
|
-
ref:
|
|
4068
|
+
ref: R,
|
|
4069
4069
|
isOpen: d,
|
|
4070
|
-
selectedIndex:
|
|
4070
|
+
selectedIndex: w,
|
|
4071
4071
|
activeIndex: l || b,
|
|
4072
4072
|
width: k,
|
|
4073
|
-
onClick:
|
|
4074
|
-
onKeyDown:
|
|
4073
|
+
onClick: T,
|
|
4074
|
+
onKeyDown: D
|
|
4075
4075
|
}
|
|
4076
4076
|
) })
|
|
4077
4077
|
]
|
|
@@ -4093,13 +4093,13 @@ function ms({
|
|
|
4093
4093
|
return isNaN(F.getTime()) ? void 0 : F;
|
|
4094
4094
|
}, [o] = q(/* @__PURE__ */ new Date()), [c, l] = q(
|
|
4095
4095
|
r || i() || /* @__PURE__ */ new Date()
|
|
4096
|
-
), [
|
|
4096
|
+
), [u, f] = q(
|
|
4097
4097
|
c ? c.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4098
4098
|
), [d, m] = q(
|
|
4099
4099
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4100
4100
|
), [p, v] = q(
|
|
4101
4101
|
c ? c.getDate() : null
|
|
4102
|
-
),
|
|
4102
|
+
), w = ce(null), E = ce([]), b = [
|
|
4103
4103
|
a(pe.JANUARY),
|
|
4104
4104
|
a(pe.FEBRUARY),
|
|
4105
4105
|
a(pe.MARCH),
|
|
@@ -4142,37 +4142,37 @@ function ms({
|
|
|
4142
4142
|
full: a(ue.SATURDAY)
|
|
4143
4143
|
}
|
|
4144
4144
|
], S = (F) => t.some((h) => {
|
|
4145
|
-
const x = h.start.getTime(),
|
|
4146
|
-
return C >= x && C <=
|
|
4147
|
-
}),
|
|
4145
|
+
const x = h.start.getTime(), j = h.end.getTime(), C = F.getTime();
|
|
4146
|
+
return C >= x && C <= j;
|
|
4147
|
+
}), y = (F) => {
|
|
4148
4148
|
S(F) || (l(F), v(F.getDate()), e && e(en(F)));
|
|
4149
|
-
},
|
|
4150
|
-
|
|
4149
|
+
}, R = () => {
|
|
4150
|
+
u === 0 ? (f(11), m(d - 1)) : f(u - 1), v(1);
|
|
4151
4151
|
}, k = () => {
|
|
4152
|
-
|
|
4153
|
-
}, _ = (F, h) => new Date(F, h + 1, 0).getDate(),
|
|
4152
|
+
u === 11 ? (f(0), m(d + 1)) : f(u + 1), v(1);
|
|
4153
|
+
}, _ = (F, h) => new Date(F, h + 1, 0).getDate(), T = (F, h) => new Date(F, h, 1).getDay(), D = (F) => {
|
|
4154
4154
|
var x;
|
|
4155
|
-
const h =
|
|
4156
|
-
(
|
|
4155
|
+
const h = V.findIndex(
|
|
4156
|
+
(j) => j !== null && j.getDate() === F
|
|
4157
4157
|
);
|
|
4158
4158
|
h !== -1 && E.current[h] && ((x = E.current[h]) == null || x.focus(), v(F));
|
|
4159
|
-
},
|
|
4160
|
-
const x =
|
|
4159
|
+
}, N = (F, h) => {
|
|
4160
|
+
const x = V[h];
|
|
4161
4161
|
if (!x) return;
|
|
4162
|
-
const
|
|
4162
|
+
const j = _(d, u), C = x.getDate();
|
|
4163
4163
|
switch (F.key) {
|
|
4164
4164
|
case "ArrowRight":
|
|
4165
4165
|
F.preventDefault();
|
|
4166
4166
|
{
|
|
4167
|
-
let $ = C + 1, L = new Date(d,
|
|
4168
|
-
if ($ >
|
|
4169
|
-
const
|
|
4170
|
-
$ = 1, L = new Date(
|
|
4167
|
+
let $ = C + 1, L = new Date(d, u, $);
|
|
4168
|
+
if ($ > j) {
|
|
4169
|
+
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4170
|
+
$ = 1, L = new Date(U, B, $), k(), setTimeout(() => {
|
|
4171
4171
|
P(1, "forward");
|
|
4172
4172
|
}, 0);
|
|
4173
4173
|
return;
|
|
4174
4174
|
}
|
|
4175
|
-
S(L) ? P($, "forward") :
|
|
4175
|
+
S(L) ? P($, "forward") : D($);
|
|
4176
4176
|
}
|
|
4177
4177
|
break;
|
|
4178
4178
|
case "Tab":
|
|
@@ -4180,56 +4180,56 @@ function ms({
|
|
|
4180
4180
|
case "ArrowLeft":
|
|
4181
4181
|
F.preventDefault();
|
|
4182
4182
|
{
|
|
4183
|
-
let $ = C - 1, L = new Date(d,
|
|
4183
|
+
let $ = C - 1, L = new Date(d, u, $);
|
|
4184
4184
|
if ($ < 1) {
|
|
4185
|
-
const
|
|
4186
|
-
$ =
|
|
4187
|
-
P(
|
|
4185
|
+
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1, Y = _(U, B);
|
|
4186
|
+
$ = Y, L = new Date(U, B, $), R(), setTimeout(() => {
|
|
4187
|
+
P(Y, "backward");
|
|
4188
4188
|
}, 0);
|
|
4189
4189
|
return;
|
|
4190
4190
|
}
|
|
4191
|
-
S(L) ? P($, "backward") :
|
|
4191
|
+
S(L) ? P($, "backward") : D($);
|
|
4192
4192
|
}
|
|
4193
4193
|
break;
|
|
4194
4194
|
case "ArrowUp":
|
|
4195
4195
|
F.preventDefault();
|
|
4196
4196
|
{
|
|
4197
|
-
let $ = C - 7, L = new Date(d,
|
|
4197
|
+
let $ = C - 7, L = new Date(d, u, $);
|
|
4198
4198
|
if ($ < 1) {
|
|
4199
|
-
const
|
|
4200
|
-
$ = _(
|
|
4199
|
+
const U = u === 0 ? d - 1 : d, B = u === 0 ? 11 : u - 1;
|
|
4200
|
+
$ = _(U, B) + $, L = new Date(U, B, $), R(), setTimeout(() => {
|
|
4201
4201
|
P($, "backward");
|
|
4202
4202
|
}, 0);
|
|
4203
4203
|
return;
|
|
4204
4204
|
}
|
|
4205
|
-
S(L) ? P($, "backward") :
|
|
4205
|
+
S(L) ? P($, "backward") : D($);
|
|
4206
4206
|
}
|
|
4207
4207
|
break;
|
|
4208
4208
|
case "ArrowDown":
|
|
4209
4209
|
F.preventDefault();
|
|
4210
4210
|
{
|
|
4211
|
-
let $ = C + 7, L = new Date(d,
|
|
4212
|
-
if ($ >
|
|
4213
|
-
const
|
|
4214
|
-
$ = $ -
|
|
4211
|
+
let $ = C + 7, L = new Date(d, u, $);
|
|
4212
|
+
if ($ > j) {
|
|
4213
|
+
const U = u === 11 ? d + 1 : d, B = u === 11 ? 0 : u + 1;
|
|
4214
|
+
$ = $ - j, L = new Date(U, B, $), k(), setTimeout(() => {
|
|
4215
4215
|
P($, "forward");
|
|
4216
4216
|
}, 0);
|
|
4217
4217
|
return;
|
|
4218
4218
|
}
|
|
4219
|
-
S(L) ? P($, "forward") :
|
|
4219
|
+
S(L) ? P($, "forward") : D($);
|
|
4220
4220
|
}
|
|
4221
4221
|
break;
|
|
4222
4222
|
case "Home":
|
|
4223
4223
|
F.preventDefault(), P(1, "forward");
|
|
4224
4224
|
break;
|
|
4225
4225
|
case "End":
|
|
4226
|
-
F.preventDefault(), P(
|
|
4226
|
+
F.preventDefault(), P(j, "backward");
|
|
4227
4227
|
break;
|
|
4228
4228
|
case "PageUp":
|
|
4229
|
-
F.preventDefault(),
|
|
4229
|
+
F.preventDefault(), R(), setTimeout(() => {
|
|
4230
4230
|
const $ = _(
|
|
4231
|
-
|
|
4232
|
-
|
|
4231
|
+
u === 0 ? d - 1 : d,
|
|
4232
|
+
u === 0 ? 11 : u - 1
|
|
4233
4233
|
), L = Math.min(C, $);
|
|
4234
4234
|
P(L, "forward");
|
|
4235
4235
|
}, 0);
|
|
@@ -4237,8 +4237,8 @@ function ms({
|
|
|
4237
4237
|
case "PageDown":
|
|
4238
4238
|
F.preventDefault(), k(), setTimeout(() => {
|
|
4239
4239
|
const $ = _(
|
|
4240
|
-
|
|
4241
|
-
|
|
4240
|
+
u === 11 ? d + 1 : d,
|
|
4241
|
+
u === 11 ? 0 : u + 1
|
|
4242
4242
|
), L = Math.min(C, $);
|
|
4243
4243
|
P(L, "forward");
|
|
4244
4244
|
}, 0);
|
|
@@ -4249,16 +4249,16 @@ function ms({
|
|
|
4249
4249
|
v(x.getDate()), l(x);
|
|
4250
4250
|
break;
|
|
4251
4251
|
case "Enter":
|
|
4252
|
-
F.preventDefault(),
|
|
4252
|
+
F.preventDefault(), y(x);
|
|
4253
4253
|
break;
|
|
4254
4254
|
}
|
|
4255
4255
|
}, P = (F, h) => {
|
|
4256
|
-
const x = _(d,
|
|
4256
|
+
const x = _(d, u);
|
|
4257
4257
|
if (h === "forward") {
|
|
4258
|
-
for (let
|
|
4259
|
-
const C = new Date(d,
|
|
4258
|
+
for (let j = F; j <= x; j++) {
|
|
4259
|
+
const C = new Date(d, u, j);
|
|
4260
4260
|
if (!S(C)) {
|
|
4261
|
-
|
|
4261
|
+
D(j);
|
|
4262
4262
|
return;
|
|
4263
4263
|
}
|
|
4264
4264
|
}
|
|
@@ -4267,56 +4267,56 @@ function ms({
|
|
|
4267
4267
|
}, 0);
|
|
4268
4268
|
} else {
|
|
4269
4269
|
for (let L = F; L >= 1; L--) {
|
|
4270
|
-
const
|
|
4271
|
-
if (!S(
|
|
4272
|
-
|
|
4270
|
+
const U = new Date(d, u, L);
|
|
4271
|
+
if (!S(U)) {
|
|
4272
|
+
D(L);
|
|
4273
4273
|
return;
|
|
4274
4274
|
}
|
|
4275
4275
|
}
|
|
4276
|
-
const
|
|
4277
|
-
|
|
4276
|
+
const j = u === 0 ? d - 1 : d, C = u === 0 ? 11 : u - 1, $ = _(j, C);
|
|
4277
|
+
R(), setTimeout(() => {
|
|
4278
4278
|
P($, "backward");
|
|
4279
4279
|
}, 0);
|
|
4280
4280
|
}
|
|
4281
|
-
},
|
|
4282
|
-
const F = _(d,
|
|
4283
|
-
for (let
|
|
4281
|
+
}, V = (() => {
|
|
4282
|
+
const F = _(d, u), h = T(d, u), x = [];
|
|
4283
|
+
for (let j = 0; j < h; j++)
|
|
4284
4284
|
x.push(null);
|
|
4285
|
-
for (let
|
|
4286
|
-
const C = new Date(d,
|
|
4285
|
+
for (let j = 1; j <= F; j++) {
|
|
4286
|
+
const C = new Date(d, u, j);
|
|
4287
4287
|
x.push(C);
|
|
4288
4288
|
}
|
|
4289
4289
|
return x;
|
|
4290
|
-
})(),
|
|
4291
|
-
let
|
|
4292
|
-
|
|
4293
|
-
if (
|
|
4294
|
-
for (;
|
|
4295
|
-
|
|
4296
|
-
|
|
4290
|
+
})(), I = [];
|
|
4291
|
+
let W = [];
|
|
4292
|
+
V.forEach((F, h) => {
|
|
4293
|
+
if (W.push(F), W.length === 7 || h === V.length - 1) {
|
|
4294
|
+
for (; W.length < 7; )
|
|
4295
|
+
W.push(null);
|
|
4296
|
+
I.push(W), W = [];
|
|
4297
4297
|
}
|
|
4298
4298
|
}), ne(() => {
|
|
4299
4299
|
var F;
|
|
4300
4300
|
if (p !== null) {
|
|
4301
|
-
const h =
|
|
4301
|
+
const h = V.findIndex(
|
|
4302
4302
|
(x) => x !== null && x.getDate() === p
|
|
4303
4303
|
);
|
|
4304
4304
|
h !== -1 && E.current[h] && ((F = E.current[h]) == null || F.focus());
|
|
4305
4305
|
}
|
|
4306
|
-
}, [
|
|
4306
|
+
}, [u, d, p, V]);
|
|
4307
4307
|
const z = {
|
|
4308
4308
|
label: "smp-datepickercalendar-label",
|
|
4309
4309
|
wrapper: `smp-datepickercalendar ${hs["smp-datepickercalendar-position"]}`,
|
|
4310
4310
|
calendar: "smp-datepickercalendar",
|
|
4311
4311
|
table: "smp-datepickercalendar-table",
|
|
4312
4312
|
th: "smp-datepickercalendar-th",
|
|
4313
|
-
td: (F, h, x,
|
|
4313
|
+
td: (F, h, x, j) => `smp-datepickercalendar-td
|
|
4314
4314
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4315
4315
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4316
4316
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4317
|
-
${
|
|
4318
|
-
}, X = () => `${b[
|
|
4319
|
-
return /* @__PURE__ */
|
|
4317
|
+
${j ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4318
|
+
}, X = () => `${b[u]} ${d.toString()}`;
|
|
4319
|
+
return /* @__PURE__ */ g.jsxs(
|
|
4320
4320
|
"div",
|
|
4321
4321
|
{
|
|
4322
4322
|
className: z.wrapper,
|
|
@@ -4326,7 +4326,7 @@ function ms({
|
|
|
4326
4326
|
"aria-modal": "true",
|
|
4327
4327
|
"data-component": "datepicker-calendar",
|
|
4328
4328
|
children: [
|
|
4329
|
-
/* @__PURE__ */
|
|
4329
|
+
/* @__PURE__ */ g.jsxs(
|
|
4330
4330
|
"div",
|
|
4331
4331
|
{
|
|
4332
4332
|
style: {
|
|
@@ -4336,10 +4336,10 @@ function ms({
|
|
|
4336
4336
|
marginBottom: "16px"
|
|
4337
4337
|
},
|
|
4338
4338
|
children: [
|
|
4339
|
-
/* @__PURE__ */
|
|
4339
|
+
/* @__PURE__ */ g.jsx(
|
|
4340
4340
|
Be,
|
|
4341
4341
|
{
|
|
4342
|
-
onClick:
|
|
4342
|
+
onClick: R,
|
|
4343
4343
|
ariaLabel: a($t.PREVIOUS_MONTH),
|
|
4344
4344
|
optionalDisplayValue: "<",
|
|
4345
4345
|
appearance: "ghost",
|
|
@@ -4347,7 +4347,7 @@ function ms({
|
|
|
4347
4347
|
bindValue: "<"
|
|
4348
4348
|
}
|
|
4349
4349
|
),
|
|
4350
|
-
/* @__PURE__ */
|
|
4350
|
+
/* @__PURE__ */ g.jsx(
|
|
4351
4351
|
"div",
|
|
4352
4352
|
{
|
|
4353
4353
|
"aria-label": X(),
|
|
@@ -4355,7 +4355,7 @@ function ms({
|
|
|
4355
4355
|
children: X()
|
|
4356
4356
|
}
|
|
4357
4357
|
),
|
|
4358
|
-
/* @__PURE__ */
|
|
4358
|
+
/* @__PURE__ */ g.jsx(
|
|
4359
4359
|
Be,
|
|
4360
4360
|
{
|
|
4361
4361
|
onClick: k,
|
|
@@ -4369,15 +4369,15 @@ function ms({
|
|
|
4369
4369
|
]
|
|
4370
4370
|
}
|
|
4371
4371
|
),
|
|
4372
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ g.jsxs(
|
|
4373
4373
|
"table",
|
|
4374
4374
|
{
|
|
4375
|
-
ref:
|
|
4375
|
+
ref: w,
|
|
4376
4376
|
role: "grid",
|
|
4377
|
-
"aria-label": `${a(ke.CALENDAR_FOR)} ${b[
|
|
4377
|
+
"aria-label": `${a(ke.CALENDAR_FOR)} ${b[u]} ${d}`,
|
|
4378
4378
|
className: z.table,
|
|
4379
4379
|
children: [
|
|
4380
|
-
/* @__PURE__ */
|
|
4380
|
+
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: O.map((F) => /* @__PURE__ */ g.jsx(
|
|
4381
4381
|
"th",
|
|
4382
4382
|
{
|
|
4383
4383
|
scope: "col",
|
|
@@ -4387,10 +4387,10 @@ function ms({
|
|
|
4387
4387
|
},
|
|
4388
4388
|
F.value
|
|
4389
4389
|
)) }) }),
|
|
4390
|
-
/* @__PURE__ */
|
|
4391
|
-
const C = h * 7 +
|
|
4390
|
+
/* @__PURE__ */ g.jsx("tbody", { children: I.map((F, h) => /* @__PURE__ */ g.jsx("tr", { children: F.map((x, j) => {
|
|
4391
|
+
const C = h * 7 + j;
|
|
4392
4392
|
if (x === null)
|
|
4393
|
-
return /* @__PURE__ */
|
|
4393
|
+
return /* @__PURE__ */ g.jsx(
|
|
4394
4394
|
"td",
|
|
4395
4395
|
{
|
|
4396
4396
|
className: z.td(
|
|
@@ -4400,32 +4400,32 @@ function ms({
|
|
|
4400
4400
|
!0
|
|
4401
4401
|
)
|
|
4402
4402
|
},
|
|
4403
|
-
`empty-${
|
|
4403
|
+
`empty-${j}`
|
|
4404
4404
|
);
|
|
4405
|
-
const $ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = c && x.getDate() === c.getDate() && x.getMonth() === c.getMonth() && x.getFullYear() === c.getFullYear(),
|
|
4406
|
-
return /* @__PURE__ */
|
|
4405
|
+
const $ = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), L = c && x.getDate() === c.getDate() && x.getMonth() === c.getMonth() && x.getFullYear() === c.getFullYear(), U = p === x.getDate(), B = S(x);
|
|
4406
|
+
return /* @__PURE__ */ g.jsx(
|
|
4407
4407
|
"td",
|
|
4408
4408
|
{
|
|
4409
4409
|
role: "gridcell",
|
|
4410
4410
|
"aria-selected": L,
|
|
4411
|
-
tabIndex:
|
|
4412
|
-
onClick: () =>
|
|
4413
|
-
onKeyDown: (
|
|
4411
|
+
tabIndex: U ? 0 : -1,
|
|
4412
|
+
onClick: () => y(x),
|
|
4413
|
+
onKeyDown: (Y) => N(Y, C),
|
|
4414
4414
|
"aria-label": `${x.getDate()} ${b[x.getMonth()]} ${x.getFullYear()}`,
|
|
4415
4415
|
"data-selected": L,
|
|
4416
|
-
"aria-disabled":
|
|
4417
|
-
ref: (
|
|
4418
|
-
E.current[C] =
|
|
4416
|
+
"aria-disabled": B,
|
|
4417
|
+
ref: (Y) => {
|
|
4418
|
+
E.current[C] = Y;
|
|
4419
4419
|
},
|
|
4420
4420
|
className: z.td(
|
|
4421
4421
|
$,
|
|
4422
4422
|
L,
|
|
4423
|
-
|
|
4424
|
-
|
|
4423
|
+
U,
|
|
4424
|
+
B
|
|
4425
4425
|
),
|
|
4426
4426
|
children: x.getDate()
|
|
4427
4427
|
},
|
|
4428
|
-
`day-${
|
|
4428
|
+
`day-${j}`
|
|
4429
4429
|
);
|
|
4430
4430
|
}) }, `week-${h}`)) })
|
|
4431
4431
|
]
|
|
@@ -4443,12 +4443,12 @@ const gs = ({
|
|
|
4443
4443
|
isEditable: s = !0,
|
|
4444
4444
|
...a
|
|
4445
4445
|
}) => {
|
|
4446
|
-
const i = ce(null), [o, c] = q(!1), [l,
|
|
4446
|
+
const i = ce(null), [o, c] = q(!1), [l, u] = q(r || ""), [f, d] = q(""), { anchorRef: m, targetRef: p } = ht({
|
|
4447
4447
|
position: "bottom",
|
|
4448
4448
|
enabled: o
|
|
4449
4449
|
}), v = le(() => {
|
|
4450
|
-
var
|
|
4451
|
-
c(!1), (
|
|
4450
|
+
var T;
|
|
4451
|
+
c(!1), (T = i == null ? void 0 : i.current) == null || T.focus();
|
|
4452
4452
|
}, []);
|
|
4453
4453
|
Ye(p, o, () => {
|
|
4454
4454
|
v();
|
|
@@ -4457,47 +4457,47 @@ const gs = ({
|
|
|
4457
4457
|
// FIXME: Copied from useClickOutside.
|
|
4458
4458
|
typeof m == "object" && m !== null && "current" in m
|
|
4459
4459
|
) {
|
|
4460
|
-
const
|
|
4461
|
-
|
|
4460
|
+
const T = m.current.querySelector("input");
|
|
4461
|
+
T && T === document.activeElement && S();
|
|
4462
4462
|
}
|
|
4463
4463
|
v();
|
|
4464
4464
|
}), kt(o, p);
|
|
4465
|
-
const { format:
|
|
4466
|
-
(
|
|
4467
|
-
const
|
|
4465
|
+
const { format: w, getCurrentLanguage: E } = je(), b = le(
|
|
4466
|
+
(T) => {
|
|
4467
|
+
const D = T.length > 5 && Xr(T, E()) || T, N = w(D, void 0, void 0, {
|
|
4468
4468
|
type: "date"
|
|
4469
|
-
}), P = typeof
|
|
4469
|
+
}), P = typeof D != "string", A = P && D.toISOString().substring(0, 10) || "";
|
|
4470
4470
|
return {
|
|
4471
4471
|
isValid: P,
|
|
4472
|
-
formattedDate:
|
|
4472
|
+
formattedDate: N,
|
|
4473
4473
|
isoDate: A,
|
|
4474
|
-
normalizedDate:
|
|
4474
|
+
normalizedDate: D
|
|
4475
4475
|
};
|
|
4476
4476
|
},
|
|
4477
|
-
[E,
|
|
4477
|
+
[E, w]
|
|
4478
4478
|
);
|
|
4479
4479
|
ne(() => {
|
|
4480
|
-
const { formattedDate:
|
|
4481
|
-
|
|
4482
|
-
}, [r,
|
|
4483
|
-
const O = () => c((
|
|
4484
|
-
|
|
4485
|
-
},
|
|
4486
|
-
|
|
4487
|
-
},
|
|
4488
|
-
const { isoDate:
|
|
4489
|
-
t && t(
|
|
4490
|
-
}, k = (
|
|
4491
|
-
d(
|
|
4492
|
-
}, _ = (
|
|
4493
|
-
|
|
4480
|
+
const { formattedDate: T, isoDate: D, isValid: N } = b(r);
|
|
4481
|
+
u(N && D || r), d(N && T || r);
|
|
4482
|
+
}, [r, w, b]);
|
|
4483
|
+
const O = () => c((T) => !T), S = () => {
|
|
4484
|
+
R(f);
|
|
4485
|
+
}, y = (T) => {
|
|
4486
|
+
R(T), v();
|
|
4487
|
+
}, R = (T) => {
|
|
4488
|
+
const { isoDate: D, isValid: N } = b(T);
|
|
4489
|
+
t && t(N && D || T);
|
|
4490
|
+
}, k = (T) => {
|
|
4491
|
+
d(T);
|
|
4492
|
+
}, _ = (T) => {
|
|
4493
|
+
T.key === "Enter" && (T.preventDefault(), R(f));
|
|
4494
4494
|
};
|
|
4495
|
-
return /* @__PURE__ */
|
|
4496
|
-
/* @__PURE__ */
|
|
4495
|
+
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4496
|
+
/* @__PURE__ */ g.jsx(
|
|
4497
4497
|
De,
|
|
4498
4498
|
{
|
|
4499
4499
|
...a,
|
|
4500
|
-
bindValue:
|
|
4500
|
+
bindValue: f,
|
|
4501
4501
|
placeholder: e,
|
|
4502
4502
|
onBlur: S,
|
|
4503
4503
|
onChange: k,
|
|
@@ -4511,11 +4511,11 @@ const gs = ({
|
|
|
4511
4511
|
maxLength: a.maxLength ? a.maxLength : 10
|
|
4512
4512
|
}
|
|
4513
4513
|
),
|
|
4514
|
-
o && /* @__PURE__ */
|
|
4514
|
+
o && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4515
4515
|
ms,
|
|
4516
4516
|
{
|
|
4517
4517
|
disabledDateRanges: n,
|
|
4518
|
-
onDateChange:
|
|
4518
|
+
onDateChange: y,
|
|
4519
4519
|
initialValue: Ct(l) && l || "",
|
|
4520
4520
|
targetRef: p
|
|
4521
4521
|
}
|
|
@@ -4532,46 +4532,46 @@ const gs = ({
|
|
|
4532
4532
|
disabled: o,
|
|
4533
4533
|
fun: c,
|
|
4534
4534
|
error: l,
|
|
4535
|
-
onOptionsRequest:
|
|
4536
|
-
onChange:
|
|
4535
|
+
onOptionsRequest: u,
|
|
4536
|
+
onChange: f,
|
|
4537
4537
|
onBlur: d
|
|
4538
4538
|
}) => {
|
|
4539
|
-
const m = r.map((
|
|
4539
|
+
const m = r.map((w) => w.bindValue), p = (w, E) => {
|
|
4540
4540
|
const b = [...r];
|
|
4541
|
-
if (
|
|
4541
|
+
if (w == "")
|
|
4542
4542
|
b.pop();
|
|
4543
4543
|
else {
|
|
4544
4544
|
const O = b.findIndex(
|
|
4545
|
-
(S) => S.bindValue ===
|
|
4545
|
+
(S) => S.bindValue === w && S.optionalDisplayValue === E
|
|
4546
4546
|
);
|
|
4547
4547
|
O >= 0 ? b.splice(O, 1) : b.push({
|
|
4548
|
-
bindValue:
|
|
4548
|
+
bindValue: w,
|
|
4549
4549
|
optionalDisplayValue: E
|
|
4550
4550
|
});
|
|
4551
4551
|
}
|
|
4552
|
-
|
|
4552
|
+
f == null || f(b);
|
|
4553
4553
|
}, v = {
|
|
4554
4554
|
container: "smp-multipleAutocomplete-container"
|
|
4555
4555
|
};
|
|
4556
|
-
return /* @__PURE__ */
|
|
4556
|
+
return /* @__PURE__ */ g.jsxs(
|
|
4557
4557
|
"div",
|
|
4558
4558
|
{
|
|
4559
4559
|
className: v.container,
|
|
4560
4560
|
"data-component": "multiple-autocomplete",
|
|
4561
4561
|
children: [
|
|
4562
|
-
i && /* @__PURE__ */
|
|
4563
|
-
/* @__PURE__ */
|
|
4562
|
+
i && /* @__PURE__ */ g.jsx(Re, { label: i, disabled: o }),
|
|
4563
|
+
/* @__PURE__ */ g.jsx(
|
|
4564
4564
|
Lt,
|
|
4565
4565
|
{
|
|
4566
4566
|
elements: r,
|
|
4567
4567
|
displayMode: e,
|
|
4568
4568
|
isEditable: s,
|
|
4569
|
-
onChange: (
|
|
4570
|
-
|
|
4569
|
+
onChange: (w) => {
|
|
4570
|
+
f == null || f(w);
|
|
4571
4571
|
}
|
|
4572
4572
|
}
|
|
4573
4573
|
),
|
|
4574
|
-
/* @__PURE__ */
|
|
4574
|
+
/* @__PURE__ */ g.jsx(
|
|
4575
4575
|
kr,
|
|
4576
4576
|
{
|
|
4577
4577
|
bindValue: "",
|
|
@@ -4582,7 +4582,7 @@ const gs = ({
|
|
|
4582
4582
|
listDisplayMode: n,
|
|
4583
4583
|
minimumChars: t,
|
|
4584
4584
|
placeholder: a,
|
|
4585
|
-
onOptionsRequest:
|
|
4585
|
+
onOptionsRequest: u,
|
|
4586
4586
|
_multiActiveIndex: m,
|
|
4587
4587
|
error: l,
|
|
4588
4588
|
onBlur: d
|
|
@@ -4593,7 +4593,7 @@ const gs = ({
|
|
|
4593
4593
|
);
|
|
4594
4594
|
}, vs = ({ ...r }) => {
|
|
4595
4595
|
const [e, t] = q(!1), n = e ? "visibility-off" : "visibility";
|
|
4596
|
-
return /* @__PURE__ */
|
|
4596
|
+
return /* @__PURE__ */ g.jsx(
|
|
4597
4597
|
De,
|
|
4598
4598
|
{
|
|
4599
4599
|
...r,
|
|
@@ -4609,7 +4609,7 @@ const gs = ({
|
|
|
4609
4609
|
var i;
|
|
4610
4610
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4611
4611
|
};
|
|
4612
|
-
return /* @__PURE__ */
|
|
4612
|
+
return /* @__PURE__ */ g.jsx(
|
|
4613
4613
|
De,
|
|
4614
4614
|
{
|
|
4615
4615
|
...r,
|
|
@@ -4631,16 +4631,16 @@ const gs = ({
|
|
|
4631
4631
|
const n = {
|
|
4632
4632
|
wrapper: "smp-text-wrapper"
|
|
4633
4633
|
};
|
|
4634
|
-
return t ? /* @__PURE__ */
|
|
4635
|
-
/* @__PURE__ */
|
|
4636
|
-
/* @__PURE__ */
|
|
4634
|
+
return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
|
|
4635
|
+
/* @__PURE__ */ g.jsx(Re, { label: t }),
|
|
4636
|
+
/* @__PURE__ */ g.jsx(
|
|
4637
4637
|
Ne,
|
|
4638
4638
|
{
|
|
4639
4639
|
variant: "body",
|
|
4640
4640
|
bindValue: e || r
|
|
4641
4641
|
}
|
|
4642
4642
|
)
|
|
4643
|
-
] }) : /* @__PURE__ */
|
|
4643
|
+
] }) : /* @__PURE__ */ g.jsx(
|
|
4644
4644
|
Ne,
|
|
4645
4645
|
{
|
|
4646
4646
|
variant: "body",
|
|
@@ -4708,56 +4708,56 @@ const Pe = (r, e, t) => ({
|
|
|
4708
4708
|
onEnter: o,
|
|
4709
4709
|
...c
|
|
4710
4710
|
}) => {
|
|
4711
|
-
const { getCurrentLanguage: l } = je(),
|
|
4712
|
-
() => ts(
|
|
4713
|
-
[
|
|
4711
|
+
const { getCurrentLanguage: l } = je(), u = ce(null), f = l(), { groupingChar: d, decimalChar: m } = Yr(
|
|
4712
|
+
() => ts(f, s),
|
|
4713
|
+
[f, s]
|
|
4714
4714
|
), p = le(
|
|
4715
|
-
(P, A) => new Intl.NumberFormat(
|
|
4715
|
+
(P, A) => new Intl.NumberFormat(f, {
|
|
4716
4716
|
minimumFractionDigits: A,
|
|
4717
4717
|
maximumFractionDigits: A,
|
|
4718
4718
|
useGrouping: !0
|
|
4719
4719
|
}).format(P),
|
|
4720
|
-
[
|
|
4721
|
-
), v = le(ss, [d, m]),
|
|
4720
|
+
[f]
|
|
4721
|
+
), v = le(ss, [d, m]), w = le(es, [r, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, O] = q(E), [S, y] = q(
|
|
4722
4722
|
a != null ? p(a, b) : ""
|
|
4723
|
-
),
|
|
4723
|
+
), R = ce(a ?? null);
|
|
4724
4724
|
ne(() => {
|
|
4725
4725
|
if (a == null) {
|
|
4726
|
-
|
|
4726
|
+
y(""), R.current = null;
|
|
4727
4727
|
return;
|
|
4728
4728
|
}
|
|
4729
4729
|
const P = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = P === 0 ? b : P;
|
|
4730
|
-
A !== b && O(A),
|
|
4730
|
+
A !== b && O(A), y(p(a, A)), R.current = a;
|
|
4731
4731
|
}, [a, p]);
|
|
4732
4732
|
const k = le(
|
|
4733
4733
|
(P, A = !1) => {
|
|
4734
4734
|
if (P.trim() === "") {
|
|
4735
|
-
|
|
4735
|
+
y(""), R.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
|
|
4736
4736
|
return;
|
|
4737
4737
|
}
|
|
4738
|
-
const
|
|
4739
|
-
if (isNaN(
|
|
4740
|
-
if (
|
|
4741
|
-
const
|
|
4742
|
-
|
|
4738
|
+
const V = v(P, d, m);
|
|
4739
|
+
if (isNaN(V))
|
|
4740
|
+
if (R.current != null) {
|
|
4741
|
+
const I = p(R.current, b);
|
|
4742
|
+
y(I);
|
|
4743
4743
|
} else
|
|
4744
|
-
|
|
4744
|
+
y("");
|
|
4745
4745
|
else {
|
|
4746
|
-
const
|
|
4746
|
+
const I = w(V, r, e), W = ns(
|
|
4747
4747
|
P,
|
|
4748
4748
|
d,
|
|
4749
4749
|
m
|
|
4750
4750
|
);
|
|
4751
|
-
O(
|
|
4752
|
-
const z = p(
|
|
4753
|
-
|
|
4751
|
+
O(W);
|
|
4752
|
+
const z = p(I, W);
|
|
4753
|
+
y(z), R.current = I, i == null || i(I, z), A && (o == null || o(I));
|
|
4754
4754
|
}
|
|
4755
4755
|
},
|
|
4756
4756
|
[
|
|
4757
4757
|
v,
|
|
4758
4758
|
d,
|
|
4759
4759
|
m,
|
|
4760
|
-
|
|
4760
|
+
w,
|
|
4761
4761
|
r,
|
|
4762
4762
|
e,
|
|
4763
4763
|
p,
|
|
@@ -4765,29 +4765,29 @@ const Pe = (r, e, t) => ({
|
|
|
4765
4765
|
o,
|
|
4766
4766
|
b
|
|
4767
4767
|
]
|
|
4768
|
-
), _ = (P) =>
|
|
4768
|
+
), _ = (P) => y(P), T = () => k(S), D = (P) => {
|
|
4769
4769
|
if (P.key === "Enter") {
|
|
4770
4770
|
P.preventDefault(), k(S, !0);
|
|
4771
4771
|
return;
|
|
4772
4772
|
}
|
|
4773
4773
|
if (P.key === "ArrowUp" || P.key === "ArrowDown") {
|
|
4774
4774
|
P.preventDefault();
|
|
4775
|
-
const A = P.key === "ArrowUp" ? 1 : -1,
|
|
4776
|
-
k(p(
|
|
4775
|
+
const A = P.key === "ArrowUp" ? 1 : -1, V = R.current ?? 0, I = w(V + A * t, r, e);
|
|
4776
|
+
k(p(I, b));
|
|
4777
4777
|
}
|
|
4778
|
-
},
|
|
4778
|
+
}, N = (P) => {
|
|
4779
4779
|
if (!P.currentTarget.contains(document.activeElement)) return;
|
|
4780
4780
|
P.preventDefault();
|
|
4781
|
-
const A = P.deltaY < 0 ? 1 : -1,
|
|
4782
|
-
k(p(
|
|
4781
|
+
const A = P.deltaY < 0 ? 1 : -1, V = R.current ?? 0, I = w(V + A * t, r, e);
|
|
4782
|
+
k(p(I, b));
|
|
4783
4783
|
};
|
|
4784
|
-
return /* @__PURE__ */
|
|
4784
|
+
return /* @__PURE__ */ g.jsx("div", { ref: u, "data-component": "input-number", onWheel: N, children: /* @__PURE__ */ g.jsx(
|
|
4785
4785
|
De,
|
|
4786
4786
|
{
|
|
4787
4787
|
...c,
|
|
4788
4788
|
"aria-valuemin": r,
|
|
4789
4789
|
"aria-valuemax": e,
|
|
4790
|
-
"aria-valuenow":
|
|
4790
|
+
"aria-valuenow": R.current ?? void 0,
|
|
4791
4791
|
bindValue: S,
|
|
4792
4792
|
inputType: "text",
|
|
4793
4793
|
inputMode: n,
|
|
@@ -4795,8 +4795,8 @@ const Pe = (r, e, t) => ({
|
|
|
4795
4795
|
max: e,
|
|
4796
4796
|
step: t,
|
|
4797
4797
|
onChange: _,
|
|
4798
|
-
onBlur:
|
|
4799
|
-
onKeyDown:
|
|
4798
|
+
onBlur: T,
|
|
4799
|
+
onKeyDown: D
|
|
4800
4800
|
}
|
|
4801
4801
|
) });
|
|
4802
4802
|
};
|
|
@@ -4854,40 +4854,40 @@ const Es = ({
|
|
|
4854
4854
|
label: o,
|
|
4855
4855
|
ariaLabel: c,
|
|
4856
4856
|
helperText: l,
|
|
4857
|
-
error:
|
|
4858
|
-
onBlur:
|
|
4857
|
+
error: u,
|
|
4858
|
+
onBlur: f,
|
|
4859
4859
|
onKeyDown: d
|
|
4860
4860
|
}) => {
|
|
4861
|
-
const m = Ge(), p = `${m}-helper`, v =
|
|
4861
|
+
const m = Ge(), p = `${m}-helper`, v = u ? "danger" : s, w = l || !!u, E = (O) => {
|
|
4862
4862
|
t == null || t(O.target.value);
|
|
4863
4863
|
}, b = {
|
|
4864
4864
|
wrapper: "smp-textarea-wrapper",
|
|
4865
4865
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${v ? `smp-textarea-${v}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4866
4866
|
};
|
|
4867
|
-
return /* @__PURE__ */
|
|
4868
|
-
o && /* @__PURE__ */
|
|
4869
|
-
/* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ g.jsxs("div", { className: b.wrapper, "data-component": "textarea", children: [
|
|
4868
|
+
o && /* @__PURE__ */ g.jsx(Re, { htmlFor: m, label: o, disabled: r }),
|
|
4869
|
+
/* @__PURE__ */ g.jsx(
|
|
4870
4870
|
"textarea",
|
|
4871
4871
|
{
|
|
4872
4872
|
id: m,
|
|
4873
4873
|
value: e,
|
|
4874
4874
|
placeholder: n,
|
|
4875
4875
|
onChange: E,
|
|
4876
|
-
onBlur:
|
|
4876
|
+
onBlur: f,
|
|
4877
4877
|
className: b.container,
|
|
4878
4878
|
disabled: r,
|
|
4879
4879
|
readOnly: !i,
|
|
4880
4880
|
onKeyDown: d,
|
|
4881
4881
|
"aria-label": o ? void 0 : c,
|
|
4882
4882
|
"aria-labelledby": o ? m : void 0,
|
|
4883
|
-
"aria-describedby":
|
|
4883
|
+
"aria-describedby": w ? p : void 0
|
|
4884
4884
|
}
|
|
4885
4885
|
),
|
|
4886
|
-
|
|
4886
|
+
w && /* @__PURE__ */ g.jsx(
|
|
4887
4887
|
Rr,
|
|
4888
4888
|
{
|
|
4889
4889
|
id: p,
|
|
4890
|
-
helperText:
|
|
4890
|
+
helperText: u,
|
|
4891
4891
|
disabled: r,
|
|
4892
4892
|
state: v
|
|
4893
4893
|
}
|
|
@@ -4914,20 +4914,20 @@ const Es = ({
|
|
|
4914
4914
|
console.error("Error during loading options (radio)", p);
|
|
4915
4915
|
});
|
|
4916
4916
|
}, [c, s, a]);
|
|
4917
|
-
const
|
|
4917
|
+
const u = {
|
|
4918
4918
|
container: `${rt["smp-radio"]} ${t ? rt["smp-radio-horizontal"] : ""}`,
|
|
4919
4919
|
option: `${rt["smp-radio-element"]} ${r ? rt["smp-radio-disabled"] : ""}`
|
|
4920
|
-
},
|
|
4920
|
+
}, f = () => {
|
|
4921
4921
|
var p;
|
|
4922
4922
|
r || (p = o.onBlur) == null || p.call(o);
|
|
4923
4923
|
}, d = (p) => {
|
|
4924
4924
|
var v;
|
|
4925
4925
|
r || (v = o.onChange) == null || v.call(o, p.id, p.label);
|
|
4926
4926
|
}, m = Ge();
|
|
4927
|
-
return /* @__PURE__ */
|
|
4928
|
-
i && /* @__PURE__ */
|
|
4929
|
-
c == null ? void 0 : c.map((p, v) => /* @__PURE__ */
|
|
4930
|
-
/* @__PURE__ */
|
|
4927
|
+
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, children: [
|
|
4928
|
+
i && /* @__PURE__ */ g.jsx(Re, { label: i, disabled: r, htmlFor: "" }),
|
|
4929
|
+
c == null ? void 0 : c.map((p, v) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
4930
|
+
/* @__PURE__ */ g.jsx(
|
|
4931
4931
|
"input",
|
|
4932
4932
|
{
|
|
4933
4933
|
type: "radio",
|
|
@@ -4936,10 +4936,10 @@ const Es = ({
|
|
|
4936
4936
|
disabled: r,
|
|
4937
4937
|
checked: p.id === o.bindValue,
|
|
4938
4938
|
onChange: () => d(p),
|
|
4939
|
-
onBlur:
|
|
4939
|
+
onBlur: f
|
|
4940
4940
|
}
|
|
4941
4941
|
),
|
|
4942
|
-
/* @__PURE__ */
|
|
4942
|
+
/* @__PURE__ */ g.jsx(
|
|
4943
4943
|
Ne,
|
|
4944
4944
|
{
|
|
4945
4945
|
variant: "body",
|
|
@@ -4962,14 +4962,14 @@ const Es = ({
|
|
|
4962
4962
|
ne(() => {
|
|
4963
4963
|
n && (s != null && s.current) && s.current.focus();
|
|
4964
4964
|
}, [n, s]);
|
|
4965
|
-
const [a, i, o] = r, c = (l) => Array.from({ length: l }, (
|
|
4966
|
-
return /* @__PURE__ */
|
|
4965
|
+
const [a, i, o] = r, c = (l) => Array.from({ length: l }, (u, f) => /* @__PURE__ */ g.jsx("option", { value: f, children: f.toString().padStart(2, "0") }, f));
|
|
4966
|
+
return /* @__PURE__ */ g.jsxs(
|
|
4967
4967
|
"div",
|
|
4968
4968
|
{
|
|
4969
4969
|
className: "smp-timepicker-widget",
|
|
4970
4970
|
ref: t,
|
|
4971
4971
|
children: [
|
|
4972
|
-
/* @__PURE__ */
|
|
4972
|
+
/* @__PURE__ */ g.jsx(
|
|
4973
4973
|
"select",
|
|
4974
4974
|
{
|
|
4975
4975
|
value: a,
|
|
@@ -4980,7 +4980,7 @@ const Es = ({
|
|
|
4980
4980
|
}
|
|
4981
4981
|
),
|
|
4982
4982
|
":",
|
|
4983
|
-
/* @__PURE__ */
|
|
4983
|
+
/* @__PURE__ */ g.jsx(
|
|
4984
4984
|
"select",
|
|
4985
4985
|
{
|
|
4986
4986
|
value: i,
|
|
@@ -4990,7 +4990,7 @@ const Es = ({
|
|
|
4990
4990
|
}
|
|
4991
4991
|
),
|
|
4992
4992
|
":",
|
|
4993
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ g.jsx(
|
|
4994
4994
|
"select",
|
|
4995
4995
|
{
|
|
4996
4996
|
value: o || 0,
|
|
@@ -5020,50 +5020,50 @@ const Es = ({
|
|
|
5020
5020
|
isEditable: n = !0,
|
|
5021
5021
|
...s
|
|
5022
5022
|
}) => {
|
|
5023
|
-
const a = ce(null), [i, o] = q(!1), [c, l] = q(r || ""), [
|
|
5023
|
+
const a = ce(null), [i, o] = q(!1), [c, l] = q(r || ""), [u, f] = q(""), { anchorRef: d, targetRef: m } = ht({
|
|
5024
5024
|
position: "bottom",
|
|
5025
5025
|
enabled: i
|
|
5026
5026
|
}), p = le(() => {
|
|
5027
|
-
var
|
|
5028
|
-
o(!1), (
|
|
5027
|
+
var y;
|
|
5028
|
+
o(!1), (y = a == null ? void 0 : a.current) == null || y.focus();
|
|
5029
5029
|
}, []);
|
|
5030
5030
|
Ye(m, i, () => o(!1)), kt(i, m), ne(() => {
|
|
5031
|
-
const
|
|
5032
|
-
l(
|
|
5031
|
+
const y = r || "", R = Er(y) ? y : r || "";
|
|
5032
|
+
l(y), f(R);
|
|
5033
5033
|
}, [r]), ne(() => {
|
|
5034
|
-
const
|
|
5035
|
-
|
|
5034
|
+
const y = (R) => {
|
|
5035
|
+
R.key === "Escape" && o(!1);
|
|
5036
5036
|
};
|
|
5037
|
-
return i && document.addEventListener("keydown",
|
|
5038
|
-
document.removeEventListener("keydown",
|
|
5037
|
+
return i && document.addEventListener("keydown", y), () => {
|
|
5038
|
+
document.removeEventListener("keydown", y);
|
|
5039
5039
|
};
|
|
5040
5040
|
}, [i]);
|
|
5041
5041
|
const v = () => {
|
|
5042
|
-
n && o((
|
|
5043
|
-
},
|
|
5044
|
-
|
|
5045
|
-
}, E = (
|
|
5046
|
-
const _ = Ds(
|
|
5047
|
-
l(_),
|
|
5042
|
+
n && o((y) => !y);
|
|
5043
|
+
}, w = (y) => {
|
|
5044
|
+
f(y);
|
|
5045
|
+
}, E = (y, R, k) => {
|
|
5046
|
+
const _ = Ds(y, R, k);
|
|
5047
|
+
l(_), f(_), t == null || t(_), p();
|
|
5048
5048
|
}, b = () => {
|
|
5049
|
-
S(
|
|
5050
|
-
}, O = (
|
|
5051
|
-
|
|
5052
|
-
}, S = (
|
|
5053
|
-
if (
|
|
5054
|
-
l(""),
|
|
5049
|
+
S(u);
|
|
5050
|
+
}, O = (y) => {
|
|
5051
|
+
y.key === "Enter" && (y.preventDefault(), S(u));
|
|
5052
|
+
}, S = (y) => {
|
|
5053
|
+
if (y.trim() === "") {
|
|
5054
|
+
l(""), f(""), t == null || t("");
|
|
5055
5055
|
return;
|
|
5056
5056
|
}
|
|
5057
|
-
Er(
|
|
5057
|
+
Er(y) ? (l(y), f(y), t == null || t(y)) : f(y);
|
|
5058
5058
|
};
|
|
5059
|
-
return /* @__PURE__ */
|
|
5060
|
-
/* @__PURE__ */
|
|
5059
|
+
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5060
|
+
/* @__PURE__ */ g.jsx(
|
|
5061
5061
|
At,
|
|
5062
5062
|
{
|
|
5063
5063
|
...s,
|
|
5064
|
-
bindValue:
|
|
5064
|
+
bindValue: u,
|
|
5065
5065
|
placeholder: e,
|
|
5066
|
-
onChange:
|
|
5066
|
+
onChange: w,
|
|
5067
5067
|
onBlur: b,
|
|
5068
5068
|
onKeyDown: O,
|
|
5069
5069
|
shapeIcon: "clock",
|
|
@@ -5073,7 +5073,7 @@ const Es = ({
|
|
|
5073
5073
|
inputRef: a
|
|
5074
5074
|
}
|
|
5075
5075
|
),
|
|
5076
|
-
i && /* @__PURE__ */
|
|
5076
|
+
i && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
5077
5077
|
Os,
|
|
5078
5078
|
{
|
|
5079
5079
|
value: Rs(c),
|
|
@@ -5136,13 +5136,13 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5136
5136
|
label: o,
|
|
5137
5137
|
tooltip: c,
|
|
5138
5138
|
options: l,
|
|
5139
|
-
onChange:
|
|
5140
|
-
onClick:
|
|
5139
|
+
onChange: u,
|
|
5140
|
+
onClick: f,
|
|
5141
5141
|
onEnter: d,
|
|
5142
5142
|
onBlur: m,
|
|
5143
5143
|
onOptionsRequest: p,
|
|
5144
5144
|
onContextMenu: v,
|
|
5145
|
-
isEditable:
|
|
5145
|
+
isEditable: w
|
|
5146
5146
|
}) => {
|
|
5147
5147
|
const E = {
|
|
5148
5148
|
obj: t,
|
|
@@ -5157,200 +5157,200 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5157
5157
|
icon: s,
|
|
5158
5158
|
tooltip: c,
|
|
5159
5159
|
label: o,
|
|
5160
|
-
isEditable:
|
|
5160
|
+
isEditable: w,
|
|
5161
5161
|
...n
|
|
5162
|
-
}, O = (
|
|
5163
|
-
|
|
5164
|
-
new He(t,
|
|
5165
|
-
),
|
|
5162
|
+
}, O = (T, D, N) => qr(t) ? Pe(T, new lt(t, D).getLegacyValue()) : zr(t) ? Pe(T, new pt(t, D).getLegacyValue()) : Pe(T, D, N), S = (T, D) => Pe(
|
|
5163
|
+
T,
|
|
5164
|
+
new He(t, D, ".").getLegacyValue()
|
|
5165
|
+
), y = (T) => Pe(E, new ot(t, T).getLegacyValue()), R = (T) => Ss(E, T), k = () => {
|
|
5166
5166
|
switch (e) {
|
|
5167
5167
|
case te.AUTOCOMPLETE: {
|
|
5168
|
-
const
|
|
5168
|
+
const T = {
|
|
5169
5169
|
...b,
|
|
5170
5170
|
bindValue: t.k,
|
|
5171
5171
|
optionalDisplayValue: r,
|
|
5172
|
-
onChange: (
|
|
5173
|
-
|
|
5172
|
+
onChange: (D, N) => {
|
|
5173
|
+
u == null || u(O(E, D, N));
|
|
5174
5174
|
}
|
|
5175
5175
|
};
|
|
5176
|
-
return /* @__PURE__ */
|
|
5176
|
+
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
5177
5177
|
}
|
|
5178
5178
|
case te.BUTTON: {
|
|
5179
|
-
const
|
|
5179
|
+
const T = {
|
|
5180
5180
|
...b,
|
|
5181
5181
|
bindValue: t.k,
|
|
5182
5182
|
optionalDisplayValue: r,
|
|
5183
5183
|
onClick: () => {
|
|
5184
|
-
|
|
5184
|
+
f == null || f(O(E, t.k));
|
|
5185
5185
|
}
|
|
5186
5186
|
};
|
|
5187
|
-
return /* @__PURE__ */
|
|
5187
|
+
return /* @__PURE__ */ g.jsx(Be, { ...T });
|
|
5188
5188
|
}
|
|
5189
5189
|
case te.BUTTON_LIST: {
|
|
5190
|
-
const
|
|
5190
|
+
const T = {
|
|
5191
5191
|
...b,
|
|
5192
5192
|
options: l,
|
|
5193
|
-
onClick: (
|
|
5194
|
-
const P = { ...E, fun:
|
|
5195
|
-
|
|
5193
|
+
onClick: (D, N) => {
|
|
5194
|
+
const P = { ...E, fun: N };
|
|
5195
|
+
f == null || f(O(P, D));
|
|
5196
5196
|
}
|
|
5197
5197
|
};
|
|
5198
|
-
return /* @__PURE__ */
|
|
5198
|
+
return /* @__PURE__ */ g.jsx(cs, { ...T });
|
|
5199
5199
|
}
|
|
5200
5200
|
case te.CHIP: {
|
|
5201
|
-
const
|
|
5201
|
+
const T = {
|
|
5202
5202
|
...b,
|
|
5203
5203
|
elements: wr(E)
|
|
5204
5204
|
};
|
|
5205
|
-
return /* @__PURE__ */
|
|
5205
|
+
return /* @__PURE__ */ g.jsx(Lt, { ...T });
|
|
5206
5206
|
}
|
|
5207
5207
|
case te.CHECKBOX:
|
|
5208
5208
|
case te.SWITCH: {
|
|
5209
|
-
const
|
|
5209
|
+
const T = e === te.SWITCH, D = {
|
|
5210
5210
|
...b,
|
|
5211
5211
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5212
5212
|
optionalDisplayValue: r,
|
|
5213
|
-
onChange: (
|
|
5214
|
-
|
|
5213
|
+
onChange: (N) => {
|
|
5214
|
+
u == null || u(y(N));
|
|
5215
5215
|
},
|
|
5216
|
-
...
|
|
5216
|
+
...T && { variant: "switch" }
|
|
5217
5217
|
};
|
|
5218
|
-
return /* @__PURE__ */
|
|
5218
|
+
return /* @__PURE__ */ g.jsx(fs, { ...D });
|
|
5219
5219
|
}
|
|
5220
5220
|
case te.COMBOBOX: {
|
|
5221
|
-
const
|
|
5221
|
+
const T = {
|
|
5222
5222
|
...b,
|
|
5223
5223
|
bindValue: t.k,
|
|
5224
5224
|
optionalDisplayValue: r,
|
|
5225
|
-
onChange: (
|
|
5226
|
-
|
|
5225
|
+
onChange: (D, N) => {
|
|
5226
|
+
u == null || u(O(E, D, N));
|
|
5227
5227
|
}
|
|
5228
5228
|
};
|
|
5229
|
-
return /* @__PURE__ */
|
|
5229
|
+
return /* @__PURE__ */ g.jsx(ps, { ...T });
|
|
5230
5230
|
}
|
|
5231
5231
|
case te.DATE: {
|
|
5232
|
-
const
|
|
5232
|
+
const T = {
|
|
5233
5233
|
...b,
|
|
5234
5234
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5235
|
-
onChange: (
|
|
5236
|
-
|
|
5235
|
+
onChange: (D) => {
|
|
5236
|
+
u == null || u(O(E, D));
|
|
5237
5237
|
}
|
|
5238
5238
|
};
|
|
5239
|
-
return /* @__PURE__ */
|
|
5239
|
+
return /* @__PURE__ */ g.jsx(gs, { ...T });
|
|
5240
5240
|
}
|
|
5241
5241
|
case te.ICON:
|
|
5242
5242
|
case te.IMAGE: {
|
|
5243
|
-
const
|
|
5243
|
+
const T = {
|
|
5244
5244
|
...b,
|
|
5245
5245
|
icon: s,
|
|
5246
5246
|
placeholderIcon: i,
|
|
5247
5247
|
isInteractable: !!b.fun,
|
|
5248
5248
|
onClick: () => {
|
|
5249
|
-
|
|
5249
|
+
f == null || f(O(E, t.k));
|
|
5250
5250
|
}
|
|
5251
5251
|
};
|
|
5252
|
-
return /* @__PURE__ */
|
|
5252
|
+
return /* @__PURE__ */ g.jsx(fe, { ...T });
|
|
5253
5253
|
}
|
|
5254
5254
|
case te.INPUT_NUMBER: {
|
|
5255
|
-
const
|
|
5255
|
+
const T = {
|
|
5256
5256
|
...b,
|
|
5257
5257
|
bindValue: He.fromDataObj(t, ".").getValue(),
|
|
5258
|
-
onChange: (
|
|
5259
|
-
|
|
5258
|
+
onChange: (D) => {
|
|
5259
|
+
u == null || u(S(E, D));
|
|
5260
5260
|
}
|
|
5261
5261
|
};
|
|
5262
|
-
return /* @__PURE__ */
|
|
5262
|
+
return /* @__PURE__ */ g.jsx(ws, { ...T });
|
|
5263
5263
|
}
|
|
5264
5264
|
case te.MEMO: {
|
|
5265
|
-
const
|
|
5265
|
+
const T = {
|
|
5266
5266
|
...b,
|
|
5267
5267
|
bindValue: t.k,
|
|
5268
5268
|
optionalDisplayValue: r,
|
|
5269
|
-
onChange: (
|
|
5270
|
-
|
|
5269
|
+
onChange: (D) => {
|
|
5270
|
+
u == null || u(O(E, D));
|
|
5271
5271
|
}
|
|
5272
5272
|
};
|
|
5273
|
-
return /* @__PURE__ */
|
|
5273
|
+
return /* @__PURE__ */ g.jsx(Es, { ...T });
|
|
5274
5274
|
}
|
|
5275
5275
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5276
|
-
const
|
|
5276
|
+
const T = {
|
|
5277
5277
|
...b,
|
|
5278
5278
|
elements: wr(E),
|
|
5279
|
-
onChange: (
|
|
5280
|
-
|
|
5279
|
+
onChange: (D) => {
|
|
5280
|
+
u == null || u(R(D));
|
|
5281
5281
|
}
|
|
5282
5282
|
};
|
|
5283
|
-
return /* @__PURE__ */
|
|
5283
|
+
return /* @__PURE__ */ g.jsx(ys, { ...T });
|
|
5284
5284
|
}
|
|
5285
5285
|
case te.PASSWORD: {
|
|
5286
|
-
const
|
|
5286
|
+
const T = {
|
|
5287
5287
|
...b,
|
|
5288
5288
|
bindValue: t.k,
|
|
5289
|
-
onChange: (
|
|
5290
|
-
|
|
5289
|
+
onChange: (D) => {
|
|
5290
|
+
u == null || u(O(E, D));
|
|
5291
5291
|
}
|
|
5292
5292
|
};
|
|
5293
|
-
return /* @__PURE__ */
|
|
5293
|
+
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
5294
5294
|
}
|
|
5295
5295
|
case te.RADIO: {
|
|
5296
|
-
const
|
|
5296
|
+
const T = {
|
|
5297
5297
|
...b,
|
|
5298
5298
|
bindValue: t.k,
|
|
5299
|
-
onChange: (
|
|
5300
|
-
|
|
5299
|
+
onChange: (D, N) => {
|
|
5300
|
+
u == null || u(O(E, D, N));
|
|
5301
5301
|
}
|
|
5302
5302
|
};
|
|
5303
|
-
return /* @__PURE__ */
|
|
5303
|
+
return /* @__PURE__ */ g.jsx(Ts, { ...T });
|
|
5304
5304
|
}
|
|
5305
5305
|
case te.SPOTLIGHT: {
|
|
5306
|
-
const
|
|
5306
|
+
const T = {
|
|
5307
5307
|
...b,
|
|
5308
5308
|
bindValue: t.k,
|
|
5309
|
-
onEnter: (
|
|
5310
|
-
d == null || d(O(E,
|
|
5309
|
+
onEnter: (D) => {
|
|
5310
|
+
d == null || d(O(E, D));
|
|
5311
5311
|
}
|
|
5312
5312
|
};
|
|
5313
|
-
return /* @__PURE__ */
|
|
5313
|
+
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
5314
5314
|
}
|
|
5315
5315
|
case te.TEXT_FIELD: {
|
|
5316
|
-
const
|
|
5316
|
+
const T = {
|
|
5317
5317
|
...b,
|
|
5318
5318
|
bindValue: t.k,
|
|
5319
5319
|
optionalDisplayValue: r,
|
|
5320
|
-
onChange: (
|
|
5321
|
-
|
|
5320
|
+
onChange: (D) => {
|
|
5321
|
+
u == null || u(O(E, D));
|
|
5322
5322
|
}
|
|
5323
5323
|
};
|
|
5324
|
-
return /* @__PURE__ */
|
|
5324
|
+
return /* @__PURE__ */ g.jsx(De, { ...T });
|
|
5325
5325
|
}
|
|
5326
5326
|
case te.TIME: {
|
|
5327
|
-
const
|
|
5327
|
+
const T = {
|
|
5328
5328
|
...b,
|
|
5329
5329
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5330
|
-
onChange: (
|
|
5331
|
-
|
|
5330
|
+
onChange: (D) => {
|
|
5331
|
+
u == null || u(O(E, D));
|
|
5332
5332
|
}
|
|
5333
5333
|
};
|
|
5334
|
-
return /* @__PURE__ */
|
|
5334
|
+
return /* @__PURE__ */ g.jsx(js, { ...T });
|
|
5335
5335
|
}
|
|
5336
5336
|
default: {
|
|
5337
|
-
const
|
|
5337
|
+
const T = {
|
|
5338
5338
|
...b,
|
|
5339
5339
|
bindValue: t.k,
|
|
5340
5340
|
optionalDisplayValue: r
|
|
5341
5341
|
};
|
|
5342
|
-
return /* @__PURE__ */
|
|
5342
|
+
return /* @__PURE__ */ g.jsx(bs, { ...T });
|
|
5343
5343
|
}
|
|
5344
5344
|
}
|
|
5345
5345
|
}, _ = {
|
|
5346
5346
|
wrapper: `${$s["smp-cell-wrapper"]}`
|
|
5347
5347
|
};
|
|
5348
|
-
return /* @__PURE__ */
|
|
5348
|
+
return /* @__PURE__ */ g.jsx(
|
|
5349
5349
|
"span",
|
|
5350
5350
|
{
|
|
5351
5351
|
className: _.wrapper,
|
|
5352
|
-
onContextMenu: (
|
|
5353
|
-
v && c && (
|
|
5352
|
+
onContextMenu: (T) => {
|
|
5353
|
+
v && c && (T.preventDefault(), v(E, T.currentTarget));
|
|
5354
5354
|
},
|
|
5355
5355
|
children: k()
|
|
5356
5356
|
}
|
|
@@ -5364,12 +5364,12 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5364
5364
|
var o, c;
|
|
5365
5365
|
const [s, a] = q(), i = le(
|
|
5366
5366
|
(l) => {
|
|
5367
|
-
var
|
|
5368
|
-
if (!((
|
|
5367
|
+
var f, d;
|
|
5368
|
+
if (!((f = l.rows) != null && f.length) || !((d = l.columns) != null && d.length))
|
|
5369
5369
|
return {};
|
|
5370
|
-
const
|
|
5370
|
+
const u = l.rows[0];
|
|
5371
5371
|
return l.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5372
|
-
const v =
|
|
5372
|
+
const v = u.cells[p.name], w = {
|
|
5373
5373
|
...v,
|
|
5374
5374
|
id: p.name,
|
|
5375
5375
|
onChange: (E) => {
|
|
@@ -5398,7 +5398,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5398
5398
|
};
|
|
5399
5399
|
return {
|
|
5400
5400
|
...m,
|
|
5401
|
-
[p.name]:
|
|
5401
|
+
[p.name]: w
|
|
5402
5402
|
};
|
|
5403
5403
|
}, {});
|
|
5404
5404
|
},
|
|
@@ -5406,7 +5406,7 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5406
5406
|
);
|
|
5407
5407
|
return ne(() => {
|
|
5408
5408
|
r && a(i(r));
|
|
5409
|
-
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((c = r.columns) != null && c.length) ? null : s && /* @__PURE__ */
|
|
5409
|
+
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((c = r.columns) != null && c.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(s).map((l) => /* @__PURE__ */ g.jsx(Te, { ...l })) }) });
|
|
5410
5410
|
}, Cs = (r) => {
|
|
5411
5411
|
var e;
|
|
5412
5412
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
@@ -5427,103 +5427,107 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5427
5427
|
onClick: a,
|
|
5428
5428
|
onEnter: i,
|
|
5429
5429
|
onClose: o,
|
|
5430
|
-
loadOptions: c
|
|
5430
|
+
loadOptions: c,
|
|
5431
|
+
onContextMenu: l
|
|
5431
5432
|
}) => {
|
|
5432
|
-
var
|
|
5433
|
-
const [
|
|
5434
|
-
(
|
|
5435
|
-
var
|
|
5436
|
-
if (!((
|
|
5433
|
+
var S, y;
|
|
5434
|
+
const [u, f] = q(), [d, m] = q(t ?? !0), p = ce(null), v = s.trim() ? s : "100vh", w = le(
|
|
5435
|
+
(R) => {
|
|
5436
|
+
var _, T;
|
|
5437
|
+
if (!((_ = R == null ? void 0 : R.rows) != null && _.length) || !((T = R == null ? void 0 : R.columns) != null && T.length))
|
|
5437
5438
|
return {};
|
|
5438
|
-
const
|
|
5439
|
-
return
|
|
5440
|
-
const
|
|
5441
|
-
if (!
|
|
5442
|
-
return
|
|
5443
|
-
const
|
|
5444
|
-
...
|
|
5445
|
-
id:
|
|
5446
|
-
onChange: (
|
|
5447
|
-
f((
|
|
5448
|
-
const
|
|
5449
|
-
return
|
|
5439
|
+
const k = R.rows[0];
|
|
5440
|
+
return R.columns.filter((D) => D.visible ?? !0).reduce((D, N) => {
|
|
5441
|
+
const P = k.cells[N.name];
|
|
5442
|
+
if (!P || !d && de(n) && P.shape !== te.BUTTON && P.shape !== te.BUTTON_LIST)
|
|
5443
|
+
return D;
|
|
5444
|
+
const A = {
|
|
5445
|
+
...P,
|
|
5446
|
+
id: N.name,
|
|
5447
|
+
onChange: (V) => {
|
|
5448
|
+
f((I) => {
|
|
5449
|
+
const W = { ...I };
|
|
5450
|
+
return W != null && W[N.name] && (W[N.name].obj.k = V.obj.k), W;
|
|
5450
5451
|
});
|
|
5451
5452
|
},
|
|
5452
|
-
onClick: (
|
|
5453
|
-
|
|
5453
|
+
onClick: (V) => {
|
|
5454
|
+
V.fun && a && a(V);
|
|
5455
|
+
},
|
|
5456
|
+
onEnter: (V) => {
|
|
5457
|
+
i && i(V);
|
|
5454
5458
|
},
|
|
5455
|
-
|
|
5456
|
-
|
|
5459
|
+
onContextMenu: (V, I) => {
|
|
5460
|
+
l && l(V, I);
|
|
5457
5461
|
}
|
|
5458
5462
|
};
|
|
5459
|
-
return c &&
|
|
5460
|
-
(
|
|
5461
|
-
)), !
|
|
5462
|
-
...
|
|
5463
|
+
return c && P.shape == te.BUTTON_LIST && (A.onOptionsRequest = (V, I) => c(V, I).then(
|
|
5464
|
+
(W) => Cs(W)
|
|
5465
|
+
)), !d && de(n) && (A.data = {
|
|
5466
|
+
...A.data,
|
|
5463
5467
|
showText: !1,
|
|
5464
5468
|
justify: "center"
|
|
5465
5469
|
}), {
|
|
5466
|
-
...
|
|
5467
|
-
[
|
|
5470
|
+
...D,
|
|
5471
|
+
[N.name]: A
|
|
5468
5472
|
};
|
|
5469
5473
|
}, {});
|
|
5470
5474
|
},
|
|
5471
|
-
[
|
|
5472
|
-
),
|
|
5475
|
+
[d, n, a, i, c, l]
|
|
5476
|
+
), E = le(() => {
|
|
5473
5477
|
o == null || o();
|
|
5474
|
-
}, [o]),
|
|
5475
|
-
de(n) ?
|
|
5478
|
+
}, [o]), b = () => {
|
|
5479
|
+
de(n) ? m((R) => !R) : (m(!1), o == null || o());
|
|
5476
5480
|
};
|
|
5477
5481
|
if (ne(() => {
|
|
5478
|
-
f(
|
|
5482
|
+
f(w(r));
|
|
5479
5483
|
}, [r]), ne(() => {
|
|
5480
|
-
if (!
|
|
5484
|
+
if (!p.current)
|
|
5481
5485
|
return;
|
|
5482
5486
|
if (!de(n)) {
|
|
5483
|
-
f(
|
|
5487
|
+
f(w(r));
|
|
5484
5488
|
return;
|
|
5485
5489
|
}
|
|
5486
|
-
const
|
|
5490
|
+
const R = getComputedStyle(p.current).getPropertyValue(
|
|
5487
5491
|
"--smp-drawer-slide-transition"
|
|
5488
5492
|
);
|
|
5489
|
-
let
|
|
5490
|
-
|
|
5491
|
-
f(
|
|
5492
|
-
},
|
|
5493
|
-
}, [
|
|
5494
|
-
t !== void 0 && !de(n) &&
|
|
5495
|
-
}, [n, t]), !((
|
|
5493
|
+
let k = Number(R);
|
|
5494
|
+
R.endsWith("ms") ? k = parseFloat(R) : R.endsWith("s") && (k = parseFloat(R) * 1e3), setTimeout(() => {
|
|
5495
|
+
f(w(r));
|
|
5496
|
+
}, k / 2);
|
|
5497
|
+
}, [d, n]), ne(() => {
|
|
5498
|
+
t !== void 0 && !de(n) && m(t);
|
|
5499
|
+
}, [n, t]), !((S = r == null ? void 0 : r.rows) != null && S.length) || !((y = r.columns) != null && y.length))
|
|
5496
5500
|
return null;
|
|
5497
|
-
const
|
|
5498
|
-
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${
|
|
5501
|
+
const O = {
|
|
5502
|
+
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${d ? "smp-drawer-open" : ""} ${!de(n) && !d ? "smp-drawer-no-border" : ""}`,
|
|
5499
5503
|
container: "smp-drawer-container",
|
|
5500
5504
|
containerHeader: "smp-drawer-container-header",
|
|
5501
|
-
containerIcon: `${
|
|
5505
|
+
containerIcon: `${d ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
5502
5506
|
containerLayout: "smp-drawer-container-layout",
|
|
5503
5507
|
containerLogo: "smp-drawer-container-logo",
|
|
5504
|
-
backdrop: `smp-drawer-backdrop ${
|
|
5508
|
+
backdrop: `smp-drawer-backdrop ${d ? "smp-drawer-backdrop-open" : ""}`
|
|
5505
5509
|
};
|
|
5506
|
-
return
|
|
5507
|
-
!de(n) && /* @__PURE__ */
|
|
5510
|
+
return u && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5511
|
+
!de(n) && /* @__PURE__ */ g.jsx(
|
|
5508
5512
|
"div",
|
|
5509
5513
|
{
|
|
5510
5514
|
"aria-hidden": "true",
|
|
5511
5515
|
"aria-label": "drawer-backdrop",
|
|
5512
|
-
className:
|
|
5513
|
-
onClick:
|
|
5516
|
+
className: O.backdrop,
|
|
5517
|
+
onClick: E
|
|
5514
5518
|
}
|
|
5515
5519
|
),
|
|
5516
|
-
/* @__PURE__ */
|
|
5520
|
+
/* @__PURE__ */ g.jsx(
|
|
5517
5521
|
"aside",
|
|
5518
5522
|
{
|
|
5519
|
-
ref:
|
|
5520
|
-
className:
|
|
5521
|
-
style: { height:
|
|
5523
|
+
ref: p,
|
|
5524
|
+
className: O.drawer,
|
|
5525
|
+
style: { height: v },
|
|
5522
5526
|
"aria-label": "Drawer",
|
|
5523
5527
|
"smp-id": "drawer",
|
|
5524
|
-
children: /* @__PURE__ */
|
|
5525
|
-
/* @__PURE__ */
|
|
5526
|
-
e && /* @__PURE__ */
|
|
5528
|
+
children: /* @__PURE__ */ g.jsxs("div", { className: O.container, children: [
|
|
5529
|
+
/* @__PURE__ */ g.jsxs("div", { className: O.containerHeader, children: [
|
|
5530
|
+
e && /* @__PURE__ */ g.jsx("div", { className: O.containerLogo, children: /* @__PURE__ */ g.jsx(
|
|
5527
5531
|
fe,
|
|
5528
5532
|
{
|
|
5529
5533
|
icon: e,
|
|
@@ -5532,20 +5536,20 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5532
5536
|
height: 24
|
|
5533
5537
|
}
|
|
5534
5538
|
) }),
|
|
5535
|
-
/* @__PURE__ */
|
|
5539
|
+
/* @__PURE__ */ g.jsx("div", { className: O.containerIcon, children: /* @__PURE__ */ g.jsx(
|
|
5536
5540
|
fe,
|
|
5537
5541
|
{
|
|
5538
5542
|
icon: de(n) ? "menu_close" : "close",
|
|
5539
5543
|
title: "drawer_icon",
|
|
5540
|
-
rotated: !
|
|
5544
|
+
rotated: !d,
|
|
5541
5545
|
isInteractable: !0,
|
|
5542
|
-
onClick:
|
|
5546
|
+
onClick: b,
|
|
5543
5547
|
width: 20,
|
|
5544
5548
|
height: 20
|
|
5545
5549
|
}
|
|
5546
5550
|
) })
|
|
5547
5551
|
] }),
|
|
5548
|
-
/* @__PURE__ */
|
|
5552
|
+
/* @__PURE__ */ g.jsx("div", { className: O.containerLayout, children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(u).map((R) => /* @__PURE__ */ g.jsx(Te, { ...R })) }) })
|
|
5549
5553
|
] })
|
|
5550
5554
|
}
|
|
5551
5555
|
)
|
|
@@ -5561,20 +5565,20 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5561
5565
|
Horizontal: o,
|
|
5562
5566
|
ForceIcon: c,
|
|
5563
5567
|
IconColName: l,
|
|
5564
|
-
IconColor:
|
|
5565
|
-
NumberFormat:
|
|
5568
|
+
IconColor: u = "var(--smp-dashList-color-base)",
|
|
5569
|
+
NumberFormat: f,
|
|
5566
5570
|
ForceUM: d,
|
|
5567
5571
|
UmColName: m,
|
|
5568
5572
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5569
5573
|
ForceValue: v,
|
|
5570
|
-
ValueColName:
|
|
5574
|
+
ValueColName: w,
|
|
5571
5575
|
ValueColor: E = "var(--smp-dashList-color-base)",
|
|
5572
5576
|
SelectLayout: b = "1",
|
|
5573
5577
|
onClick: O
|
|
5574
5578
|
}) => {
|
|
5575
|
-
const S = "N/A",
|
|
5576
|
-
dash: (
|
|
5577
|
-
const Z = h(
|
|
5579
|
+
const S = "N/A", y = (e == null ? void 0 : e.columns) || [], R = (e == null ? void 0 : e.rows) || [], k = R.length > 0, _ = "--smp-dashList-color", T = "smp-layout", D = "descr", N = "icon", P = "um", A = "value", V = i || "1em", I = "18px", W = "--smp-dashList-columns", z = "--smp-dashList-fontSize", X = {
|
|
5580
|
+
dash: (H = "1") => {
|
|
5581
|
+
const Z = h(H), re = Z, se = x(Z, D), he = x(Z, N), Se = x(Z, P), ve = x(Z, A);
|
|
5578
5582
|
return {
|
|
5579
5583
|
container: re,
|
|
5580
5584
|
descr: se,
|
|
@@ -5585,64 +5589,64 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5585
5589
|
},
|
|
5586
5590
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5587
5591
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5588
|
-
}, { format: F } = je(), h = (
|
|
5592
|
+
}, { format: F } = je(), h = (H) => `${T}-${H}`, x = (H, Z) => `${H}__${Z}`, j = (H) => `${_}-${H}`, C = (H) => {
|
|
5589
5593
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5590
|
-
if (Z.test(
|
|
5591
|
-
const se =
|
|
5594
|
+
if (Z.test(H)) {
|
|
5595
|
+
const se = H.match(Z) || [];
|
|
5592
5596
|
if ((se == null ? void 0 : se.length) > 3)
|
|
5593
5597
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5594
5598
|
}
|
|
5595
|
-
return
|
|
5596
|
-
}, $ = (
|
|
5597
|
-
if (!
|
|
5598
|
-
const [Z, re] = L(
|
|
5599
|
+
return H;
|
|
5600
|
+
}, $ = (H) => {
|
|
5601
|
+
if (!f) return H;
|
|
5602
|
+
const [Z, re] = L(f).map(
|
|
5599
5603
|
(_e) => parseInt(_e || "0")
|
|
5600
|
-
), se = "0,0" + (re ? "." + "0".repeat(re) : ""), he = F(
|
|
5604
|
+
), se = "0,0" + (re ? "." + "0".repeat(re) : ""), he = F(H, se, "it");
|
|
5601
5605
|
if (!Z) return he;
|
|
5602
5606
|
const [Se, ve] = he.split(",");
|
|
5603
5607
|
return Se + (ve ? `,${ve}` : "");
|
|
5604
|
-
}, L = (
|
|
5608
|
+
}, L = (H) => H.includes(";") ? H.split(";") : [H], U = (H) => {
|
|
5605
5609
|
const Z = (se) => {
|
|
5606
5610
|
var he;
|
|
5607
5611
|
if (se)
|
|
5608
|
-
return (he =
|
|
5612
|
+
return (he = H == null ? void 0 : H.cells[se]) == null ? void 0 : he.obj.k;
|
|
5609
5613
|
}, re = (se) => {
|
|
5610
5614
|
var he, Se;
|
|
5611
|
-
if (!(
|
|
5612
|
-
return (Se = (he =
|
|
5615
|
+
if (!(y.length <= se))
|
|
5616
|
+
return (Se = (he = H == null ? void 0 : H.cells[y[se].name]) == null ? void 0 : he.obj) == null ? void 0 : Se.k;
|
|
5613
5617
|
};
|
|
5614
5618
|
return {
|
|
5615
5619
|
descr: t || Z(n) || re(2) || "",
|
|
5616
5620
|
icon: c || Z(l) || re(3) || "",
|
|
5617
5621
|
um: d || Z(m) || re(1) || "",
|
|
5618
|
-
value: v || Z(
|
|
5622
|
+
value: v || Z(w) || re(0) || ""
|
|
5619
5623
|
};
|
|
5620
|
-
},
|
|
5621
|
-
O == null || O(
|
|
5622
|
-
},
|
|
5623
|
-
(
|
|
5624
|
-
}, G = ((
|
|
5625
|
-
const Z = X.dash(
|
|
5624
|
+
}, B = (H) => {
|
|
5625
|
+
O == null || O(H);
|
|
5626
|
+
}, Y = (H, Z) => {
|
|
5627
|
+
(H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), B(Z));
|
|
5628
|
+
}, G = ((H) => {
|
|
5629
|
+
const Z = X.dash(H);
|
|
5626
5630
|
return {
|
|
5627
5631
|
className: Z,
|
|
5628
|
-
descr: (re) => /* @__PURE__ */
|
|
5629
|
-
icon: (re) => /* @__PURE__ */
|
|
5632
|
+
descr: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: re }, `${H}-${D}`),
|
|
5633
|
+
icon: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5630
5634
|
fe,
|
|
5631
5635
|
{
|
|
5632
|
-
color:
|
|
5633
|
-
height:
|
|
5636
|
+
color: u,
|
|
5637
|
+
height: I,
|
|
5634
5638
|
icon: re,
|
|
5635
|
-
width:
|
|
5639
|
+
width: I
|
|
5636
5640
|
}
|
|
5637
|
-
) }, `${
|
|
5638
|
-
um: (re) => /* @__PURE__ */
|
|
5639
|
-
value: (re) => /* @__PURE__ */
|
|
5641
|
+
) }, `${H}-${N}`),
|
|
5642
|
+
um: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: re }, `${H}-${P}`),
|
|
5643
|
+
value: (re) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: re }, `${H}-${A}`)
|
|
5640
5644
|
};
|
|
5641
|
-
})(b), ae = (
|
|
5642
|
-
const { descr: Z, icon: re, um: se, value: he } =
|
|
5643
|
-
[D
|
|
5644
|
-
[
|
|
5645
|
-
[
|
|
5645
|
+
})(b), ae = (H) => {
|
|
5646
|
+
const { descr: Z, icon: re, um: se, value: he } = U(H), Se = {
|
|
5647
|
+
[j(D)]: C(s),
|
|
5648
|
+
[j(P)]: C(p),
|
|
5649
|
+
[j(A)]: C(E)
|
|
5646
5650
|
}, ve = [], _e = $(he);
|
|
5647
5651
|
switch (b) {
|
|
5648
5652
|
case "2":
|
|
@@ -5656,24 +5660,24 @@ const Tr = /* @__PURE__ */ new Map([
|
|
|
5656
5660
|
G.value(se ? _e + " " + se : _e)
|
|
5657
5661
|
);
|
|
5658
5662
|
}
|
|
5659
|
-
return /* @__PURE__ */
|
|
5663
|
+
return /* @__PURE__ */ g.jsx(
|
|
5660
5664
|
"div",
|
|
5661
5665
|
{
|
|
5662
5666
|
className: G.className.container,
|
|
5663
5667
|
role: "button",
|
|
5664
5668
|
style: Se,
|
|
5665
5669
|
tabIndex: 0,
|
|
5666
|
-
onClick: () =>
|
|
5667
|
-
onKeyDown: (Ir) =>
|
|
5670
|
+
onClick: () => B(H),
|
|
5671
|
+
onKeyDown: (Ir) => Y(Ir, H),
|
|
5668
5672
|
children: ve
|
|
5669
5673
|
},
|
|
5670
|
-
|
|
5674
|
+
H.rowId
|
|
5671
5675
|
);
|
|
5672
5676
|
}, M = {
|
|
5673
|
-
[
|
|
5674
|
-
[z]:
|
|
5677
|
+
[W]: String(r),
|
|
5678
|
+
[z]: V
|
|
5675
5679
|
};
|
|
5676
|
-
return /* @__PURE__ */
|
|
5680
|
+
return /* @__PURE__ */ g.jsx("div", { className: X.dashList, style: M, children: k ? R.map((H) => ae(H)) : S });
|
|
5677
5681
|
}, nt = {
|
|
5678
5682
|
"smp-table": "_smp-table_1qmju_1",
|
|
5679
5683
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -5708,33 +5712,33 @@ const Nr = ({
|
|
|
5708
5712
|
offsetTop: s
|
|
5709
5713
|
}) => {
|
|
5710
5714
|
var b;
|
|
5711
|
-
const [a, i] = q(!1), o = st(r) && !!((b = r.children) != null && b.length), c = r.cells && Object.keys(r.cells).length > 0, l = o,
|
|
5715
|
+
const [a, i] = q(!1), o = st(r) && !!((b = r.children) != null && b.length), c = r.cells && Object.keys(r.cells).length > 0, l = o, u = t * 20, f = () => {
|
|
5712
5716
|
o && i(!a);
|
|
5713
5717
|
}, d = {
|
|
5714
5718
|
content: `${Ee.rowContent} ${o ? Ee.clickable : ""}`,
|
|
5715
5719
|
toggle: `${Ee.toggle}`,
|
|
5716
5720
|
indent: `${Ee.indent}`,
|
|
5717
5721
|
cell: `${Ee.cell}`
|
|
5718
|
-
}, m = (O) => /* @__PURE__ */
|
|
5722
|
+
}, m = (O) => /* @__PURE__ */ g.jsx(Te, { ...O }), p = () => /* @__PURE__ */ g.jsx("span", { className: d.toggle, children: l && /* @__PURE__ */ g.jsx(
|
|
5719
5723
|
fe,
|
|
5720
5724
|
{
|
|
5721
5725
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5722
5726
|
width: 16
|
|
5723
5727
|
}
|
|
5724
|
-
) }), v = () => /* @__PURE__ */
|
|
5728
|
+
) }), v = () => /* @__PURE__ */ g.jsx(
|
|
5725
5729
|
"span",
|
|
5726
5730
|
{
|
|
5727
5731
|
className: d.indent,
|
|
5728
|
-
style: { width: `${
|
|
5732
|
+
style: { width: `${u}px` },
|
|
5729
5733
|
"aria-hidden": "true"
|
|
5730
5734
|
}
|
|
5731
|
-
),
|
|
5735
|
+
), w = () => {
|
|
5732
5736
|
const O = Ms(r) ? "" : r.decode || (c ? "" : "Untitled"), S = s ?? n * t;
|
|
5733
|
-
return /* @__PURE__ */
|
|
5737
|
+
return /* @__PURE__ */ g.jsxs(
|
|
5734
5738
|
"tr",
|
|
5735
5739
|
{
|
|
5736
5740
|
className: d.content,
|
|
5737
|
-
onClick:
|
|
5741
|
+
onClick: f,
|
|
5738
5742
|
role: o ? "button" : "row",
|
|
5739
5743
|
"aria-expanded": o ? !a : void 0,
|
|
5740
5744
|
style: {
|
|
@@ -5743,7 +5747,7 @@ const Nr = ({
|
|
|
5743
5747
|
transform: `translateY(${S}px)`
|
|
5744
5748
|
},
|
|
5745
5749
|
children: [
|
|
5746
|
-
st(r) && /* @__PURE__ */
|
|
5750
|
+
st(r) && /* @__PURE__ */ g.jsxs(
|
|
5747
5751
|
"td",
|
|
5748
5752
|
{
|
|
5749
5753
|
className: Ee.leftSection,
|
|
@@ -5753,35 +5757,35 @@ const Nr = ({
|
|
|
5753
5757
|
children: [
|
|
5754
5758
|
v(),
|
|
5755
5759
|
p(),
|
|
5756
|
-
/* @__PURE__ */
|
|
5760
|
+
/* @__PURE__ */ g.jsx("span", { className: Ee.rowLabel, children: O })
|
|
5757
5761
|
]
|
|
5758
5762
|
}
|
|
5759
5763
|
),
|
|
5760
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([
|
|
5764
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([y, R]) => /* @__PURE__ */ g.jsx(
|
|
5761
5765
|
"td",
|
|
5762
5766
|
{
|
|
5763
5767
|
className: d.cell,
|
|
5764
5768
|
style: {
|
|
5765
|
-
width: e[
|
|
5766
|
-
minWidth: e[
|
|
5769
|
+
width: e[y],
|
|
5770
|
+
minWidth: e[y],
|
|
5767
5771
|
height: `${n}px`
|
|
5768
5772
|
},
|
|
5769
5773
|
children: m({
|
|
5770
|
-
...
|
|
5771
|
-
id:
|
|
5774
|
+
...R,
|
|
5775
|
+
id: y
|
|
5772
5776
|
})
|
|
5773
5777
|
},
|
|
5774
|
-
Fs(
|
|
5778
|
+
Fs(R) || y
|
|
5775
5779
|
))
|
|
5776
5780
|
]
|
|
5777
5781
|
}
|
|
5778
5782
|
);
|
|
5779
5783
|
}, E = () => {
|
|
5780
5784
|
var O;
|
|
5781
|
-
return a || !o ? null : /* @__PURE__ */
|
|
5785
|
+
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((O = r.children) == null ? void 0 : O.map((S, y) => /* @__PURE__ */ g.jsx(Nr, { row: S, level: t + 1 }, `child-${y}`))) });
|
|
5782
5786
|
};
|
|
5783
|
-
return /* @__PURE__ */
|
|
5784
|
-
|
|
5787
|
+
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5788
|
+
w(),
|
|
5785
5789
|
E()
|
|
5786
5790
|
] });
|
|
5787
5791
|
}, Vs = ({
|
|
@@ -5796,7 +5800,7 @@ const Nr = ({
|
|
|
5796
5800
|
tr: "smp-groupRow-tr",
|
|
5797
5801
|
td: "smp-groupRow-td"
|
|
5798
5802
|
};
|
|
5799
|
-
return /* @__PURE__ */
|
|
5803
|
+
return /* @__PURE__ */ g.jsx(
|
|
5800
5804
|
"tr",
|
|
5801
5805
|
{
|
|
5802
5806
|
className: i.tr,
|
|
@@ -5806,7 +5810,7 @@ const Nr = ({
|
|
|
5806
5810
|
lineHeight: `${e}px`
|
|
5807
5811
|
},
|
|
5808
5812
|
onClick: s,
|
|
5809
|
-
children: /* @__PURE__ */
|
|
5813
|
+
children: /* @__PURE__ */ g.jsxs(
|
|
5810
5814
|
"td",
|
|
5811
5815
|
{
|
|
5812
5816
|
className: i.td,
|
|
@@ -5814,14 +5818,14 @@ const Nr = ({
|
|
|
5814
5818
|
paddingLeft: 10 + n * 20
|
|
5815
5819
|
},
|
|
5816
5820
|
children: [
|
|
5817
|
-
/* @__PURE__ */
|
|
5821
|
+
/* @__PURE__ */ g.jsx(
|
|
5818
5822
|
fe,
|
|
5819
5823
|
{
|
|
5820
5824
|
icon: a ? "arrow_drop_down" : "arrow_drop_right",
|
|
5821
5825
|
width: 16
|
|
5822
5826
|
}
|
|
5823
5827
|
),
|
|
5824
|
-
/* @__PURE__ */
|
|
5828
|
+
/* @__PURE__ */ g.jsx(Ne, { variant: "title", bindValue: r })
|
|
5825
5829
|
]
|
|
5826
5830
|
}
|
|
5827
5831
|
)
|
|
@@ -5845,41 +5849,41 @@ function Ws(r, e, t, n) {
|
|
|
5845
5849
|
const s = [];
|
|
5846
5850
|
let a = 0;
|
|
5847
5851
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
5848
|
-
function i(
|
|
5852
|
+
function i(f, d, m) {
|
|
5849
5853
|
if (d >= e.length) {
|
|
5850
|
-
f
|
|
5854
|
+
u(f);
|
|
5851
5855
|
return;
|
|
5852
5856
|
}
|
|
5853
|
-
const p = e[d].column, v = o(
|
|
5854
|
-
for (const [
|
|
5855
|
-
const b = [...m,
|
|
5856
|
-
s.push(l(
|
|
5857
|
+
const p = e[d].column, v = o(f, p);
|
|
5858
|
+
for (const [w, E] of v) {
|
|
5859
|
+
const b = [...m, w], O = c(b, d), S = n.has(O);
|
|
5860
|
+
s.push(l(w, O, d, S)), a += t, S && i(E, d + 1, b);
|
|
5857
5861
|
}
|
|
5858
5862
|
}
|
|
5859
|
-
function o(
|
|
5863
|
+
function o(f, d) {
|
|
5860
5864
|
var p;
|
|
5861
5865
|
const m = /* @__PURE__ */ new Map();
|
|
5862
|
-
for (const v of
|
|
5863
|
-
const
|
|
5864
|
-
m.has(
|
|
5866
|
+
for (const v of f) {
|
|
5867
|
+
const w = ((p = v.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
5868
|
+
m.has(w) || m.set(w, []), m.get(w).push(v);
|
|
5865
5869
|
}
|
|
5866
5870
|
return m;
|
|
5867
5871
|
}
|
|
5868
|
-
function c(
|
|
5869
|
-
return `group-${
|
|
5872
|
+
function c(f, d) {
|
|
5873
|
+
return `group-${f.join("-")}-${d}`;
|
|
5870
5874
|
}
|
|
5871
|
-
function l(
|
|
5875
|
+
function l(f, d, m, p) {
|
|
5872
5876
|
return {
|
|
5873
5877
|
isGroup: !0,
|
|
5874
|
-
value:
|
|
5878
|
+
value: f,
|
|
5875
5879
|
cells: {},
|
|
5876
5880
|
rowId: d,
|
|
5877
5881
|
level: m,
|
|
5878
5882
|
isExpanded: p
|
|
5879
5883
|
};
|
|
5880
5884
|
}
|
|
5881
|
-
function f
|
|
5882
|
-
for (const d of
|
|
5885
|
+
function u(f) {
|
|
5886
|
+
for (const d of f)
|
|
5883
5887
|
s.push(d), a += t;
|
|
5884
5888
|
}
|
|
5885
5889
|
}
|
|
@@ -5896,15 +5900,15 @@ const Bs = ({
|
|
|
5896
5900
|
bindValue: o.column
|
|
5897
5901
|
})
|
|
5898
5902
|
);
|
|
5899
|
-
return /* @__PURE__ */
|
|
5903
|
+
return /* @__PURE__ */ g.jsxs(
|
|
5900
5904
|
"tr",
|
|
5901
5905
|
{
|
|
5902
5906
|
className: "smp-groupBar-container",
|
|
5903
5907
|
onDragOver: a,
|
|
5904
5908
|
onDrop: s,
|
|
5905
5909
|
children: [
|
|
5906
|
-
/* @__PURE__ */
|
|
5907
|
-
/* @__PURE__ */
|
|
5910
|
+
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(fe, { icon: "groups" }) }),
|
|
5911
|
+
/* @__PURE__ */ g.jsx("td", { children: /* @__PURE__ */ g.jsx(
|
|
5908
5912
|
Lt,
|
|
5909
5913
|
{
|
|
5910
5914
|
elements: i,
|
|
@@ -5917,8 +5921,8 @@ const Bs = ({
|
|
|
5917
5921
|
]
|
|
5918
5922
|
}
|
|
5919
5923
|
);
|
|
5920
|
-
}, Hs = ({ columns: r, columnWidths: e }) => /* @__PURE__ */
|
|
5921
|
-
(t) => t.visible && /* @__PURE__ */
|
|
5924
|
+
}, Hs = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ g.jsx("tfoot", { children: /* @__PURE__ */ g.jsx("tr", { children: r.map(
|
|
5925
|
+
(t) => t.visible && /* @__PURE__ */ g.jsx(
|
|
5922
5926
|
"td",
|
|
5923
5927
|
{
|
|
5924
5928
|
className: nt["smp-headerCell"],
|
|
@@ -5942,26 +5946,26 @@ const Bs = ({
|
|
|
5942
5946
|
if (!(!r || r.length === 0)) {
|
|
5943
5947
|
if (n === "fixed") {
|
|
5944
5948
|
const l = Object.fromEntries(
|
|
5945
|
-
r.map((
|
|
5949
|
+
r.map((u) => [u.name, 120])
|
|
5946
5950
|
);
|
|
5947
5951
|
a(l);
|
|
5948
5952
|
} else if (n === "fit-grid") {
|
|
5949
|
-
const c = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, l = r.filter((d) => d.visible !== !1),
|
|
5950
|
-
l.map((d) => [d.name,
|
|
5953
|
+
const c = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, l = r.filter((d) => d.visible !== !1), u = c / l.length, f = Object.fromEntries(
|
|
5954
|
+
l.map((d) => [d.name, u])
|
|
5951
5955
|
);
|
|
5952
|
-
a(
|
|
5956
|
+
a(f);
|
|
5953
5957
|
} else if (n === "fit-content") {
|
|
5954
5958
|
const c = {};
|
|
5955
5959
|
for (const l of r) {
|
|
5956
5960
|
if (!l.visible) continue;
|
|
5957
|
-
const
|
|
5961
|
+
const u = ((o = l.title) == null ? void 0 : o.length) || 0, f = Math.max(
|
|
5958
5962
|
...e.map((d) => {
|
|
5959
|
-
var m, p, v,
|
|
5960
|
-
return `${((p = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : p.decode) || ((
|
|
5963
|
+
var m, p, v, w;
|
|
5964
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[l.name]) == null ? void 0 : p.decode) || ((w = (v = d.cells) == null ? void 0 : v[l.name]) == null ? void 0 : w.value) || ""}`.length;
|
|
5961
5965
|
}),
|
|
5962
|
-
|
|
5966
|
+
u
|
|
5963
5967
|
);
|
|
5964
|
-
c[l.name] =
|
|
5968
|
+
c[l.name] = f * 8 + 24;
|
|
5965
5969
|
}
|
|
5966
5970
|
a(c);
|
|
5967
5971
|
}
|
|
@@ -5979,7 +5983,7 @@ const Bs = ({
|
|
|
5979
5983
|
var k;
|
|
5980
5984
|
const [i, o] = q(
|
|
5981
5985
|
r ?? { columns: [], rows: [] }
|
|
5982
|
-
), [c, l] = q(n || []), [
|
|
5986
|
+
), [c, l] = q(n || []), [u, f] = q(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = Gs({
|
|
5983
5987
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5984
5988
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5985
5989
|
containerRef: d,
|
|
@@ -5991,21 +5995,21 @@ const Bs = ({
|
|
|
5991
5995
|
r.rows,
|
|
5992
5996
|
c,
|
|
5993
5997
|
e,
|
|
5994
|
-
|
|
5998
|
+
u
|
|
5995
5999
|
);
|
|
5996
6000
|
o({ ...r, rows: _ });
|
|
5997
6001
|
} else
|
|
5998
6002
|
o(r);
|
|
5999
|
-
}, [r, c,
|
|
6003
|
+
}, [r, c, u, e]);
|
|
6000
6004
|
const v = (_) => {
|
|
6001
6005
|
l(Us(_, c));
|
|
6002
|
-
},
|
|
6006
|
+
}, w = (_) => {
|
|
6003
6007
|
_.preventDefault();
|
|
6004
|
-
const
|
|
6005
|
-
if (!
|
|
6008
|
+
const T = _.dataTransfer.getData("text/plain");
|
|
6009
|
+
if (!T || c.some((P) => P.column === T))
|
|
6006
6010
|
return;
|
|
6007
|
-
const
|
|
6008
|
-
l(
|
|
6011
|
+
const N = [...c, { column: T, visible: !0 }];
|
|
6012
|
+
l(N);
|
|
6009
6013
|
}, E = (_) => {
|
|
6010
6014
|
_.preventDefault();
|
|
6011
6015
|
}, { virtualItems: b, containerProps: O, innerProps: S } = Cr({
|
|
@@ -6013,47 +6017,47 @@ const Bs = ({
|
|
|
6013
6017
|
itemHeight: e,
|
|
6014
6018
|
containerHeight: t,
|
|
6015
6019
|
overscan: 5
|
|
6016
|
-
}),
|
|
6017
|
-
const
|
|
6018
|
-
const
|
|
6020
|
+
}), y = (_, T) => {
|
|
6021
|
+
const D = _.clientX, N = m[T], P = (V) => {
|
|
6022
|
+
const I = V.clientX - D, W = Math.max(50, N + I);
|
|
6019
6023
|
p((z) => ({
|
|
6020
6024
|
...z,
|
|
6021
|
-
[
|
|
6025
|
+
[T]: W
|
|
6022
6026
|
}));
|
|
6023
6027
|
}, A = () => {
|
|
6024
6028
|
window.removeEventListener("mousemove", P), window.removeEventListener("mouseup", A);
|
|
6025
6029
|
};
|
|
6026
6030
|
window.addEventListener("mousemove", P), window.addEventListener("mouseup", A);
|
|
6027
|
-
},
|
|
6031
|
+
}, R = {
|
|
6028
6032
|
smpTable: `${nt["smp-table"]}`,
|
|
6029
6033
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
6030
6034
|
resizer: `${nt["smp-resizer"]}`
|
|
6031
6035
|
};
|
|
6032
|
-
return i && /* @__PURE__ */
|
|
6036
|
+
return i && /* @__PURE__ */ g.jsx(
|
|
6033
6037
|
"div",
|
|
6034
6038
|
{
|
|
6035
|
-
className:
|
|
6039
|
+
className: R.smpTable,
|
|
6036
6040
|
...O,
|
|
6037
6041
|
ref: d,
|
|
6038
|
-
children: /* @__PURE__ */
|
|
6039
|
-
/* @__PURE__ */
|
|
6040
|
-
(n || a) && /* @__PURE__ */
|
|
6042
|
+
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6043
|
+
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6044
|
+
(n || a) && /* @__PURE__ */ g.jsx(
|
|
6041
6045
|
Bs,
|
|
6042
6046
|
{
|
|
6043
6047
|
groups: c,
|
|
6044
6048
|
onChange: v,
|
|
6045
|
-
onDrop:
|
|
6049
|
+
onDrop: w,
|
|
6046
6050
|
onDragOver: E
|
|
6047
6051
|
}
|
|
6048
6052
|
),
|
|
6049
|
-
/* @__PURE__ */
|
|
6050
|
-
(_) => _.visible && /* @__PURE__ */
|
|
6053
|
+
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
|
|
6054
|
+
(_) => _.visible && /* @__PURE__ */ g.jsxs(
|
|
6051
6055
|
"th",
|
|
6052
6056
|
{
|
|
6053
|
-
className:
|
|
6057
|
+
className: R.headerCell,
|
|
6054
6058
|
draggable: !0,
|
|
6055
|
-
onDragStart: (
|
|
6056
|
-
|
|
6059
|
+
onDragStart: (T) => {
|
|
6060
|
+
T.dataTransfer.setData("text/plain", _.name);
|
|
6057
6061
|
},
|
|
6058
6062
|
style: {
|
|
6059
6063
|
width: m[_.name],
|
|
@@ -6061,18 +6065,18 @@ const Bs = ({
|
|
|
6061
6065
|
maxWidth: m[_.name]
|
|
6062
6066
|
},
|
|
6063
6067
|
children: [
|
|
6064
|
-
/* @__PURE__ */
|
|
6068
|
+
/* @__PURE__ */ g.jsx(
|
|
6065
6069
|
Ne,
|
|
6066
6070
|
{
|
|
6067
6071
|
variant: "title",
|
|
6068
6072
|
bindValue: _.title
|
|
6069
6073
|
}
|
|
6070
6074
|
),
|
|
6071
|
-
/* @__PURE__ */
|
|
6075
|
+
/* @__PURE__ */ g.jsx(
|
|
6072
6076
|
"div",
|
|
6073
6077
|
{
|
|
6074
|
-
className:
|
|
6075
|
-
onMouseDown: (
|
|
6078
|
+
className: R.resizer,
|
|
6079
|
+
onMouseDown: (T) => y(T, _.name),
|
|
6076
6080
|
role: "region"
|
|
6077
6081
|
}
|
|
6078
6082
|
)
|
|
@@ -6082,35 +6086,35 @@ const Bs = ({
|
|
|
6082
6086
|
)
|
|
6083
6087
|
)) })
|
|
6084
6088
|
] }),
|
|
6085
|
-
/* @__PURE__ */
|
|
6086
|
-
const
|
|
6087
|
-
return _.isGroup ? /* @__PURE__ */
|
|
6089
|
+
/* @__PURE__ */ g.jsx("tbody", { ...S, children: b.map(({ item: _, index: T, offsetTop: D }) => {
|
|
6090
|
+
const N = _.rowId || _.value || `${_.isGroup ? "group" : "row"}-${T}`;
|
|
6091
|
+
return _.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6088
6092
|
Vs,
|
|
6089
6093
|
{
|
|
6090
6094
|
label: _.value || "",
|
|
6091
6095
|
rowHeight: e,
|
|
6092
|
-
offsetTop:
|
|
6096
|
+
offsetTop: D,
|
|
6093
6097
|
level: _.level,
|
|
6094
6098
|
onClick: () => {
|
|
6095
6099
|
const P = _.rowId;
|
|
6096
|
-
P &&
|
|
6100
|
+
P && f((A) => Ys(A, P));
|
|
6097
6101
|
},
|
|
6098
6102
|
isExpanded: _.isExpanded
|
|
6099
6103
|
},
|
|
6100
|
-
`group-${
|
|
6101
|
-
) : /* @__PURE__ */
|
|
6104
|
+
`group-${N}`
|
|
6105
|
+
) : /* @__PURE__ */ g.jsx(
|
|
6102
6106
|
Nr,
|
|
6103
6107
|
{
|
|
6104
6108
|
row: _,
|
|
6105
6109
|
columnWidths: m,
|
|
6106
6110
|
rowHeight: e,
|
|
6107
|
-
offsetTop:
|
|
6111
|
+
offsetTop: D,
|
|
6108
6112
|
isGroup: !1
|
|
6109
6113
|
},
|
|
6110
|
-
`row-${
|
|
6114
|
+
`row-${N}`
|
|
6111
6115
|
);
|
|
6112
6116
|
}) }),
|
|
6113
|
-
/* @__PURE__ */
|
|
6117
|
+
/* @__PURE__ */ g.jsx(Hs, { columns: i.columns, columnWidths: m })
|
|
6114
6118
|
] })
|
|
6115
6119
|
}
|
|
6116
6120
|
);
|
|
@@ -6126,9 +6130,9 @@ const Bs = ({
|
|
|
6126
6130
|
onClick: c,
|
|
6127
6131
|
onOptionsRequest: l
|
|
6128
6132
|
}) => {
|
|
6129
|
-
const [
|
|
6133
|
+
const [u, f] = q();
|
|
6130
6134
|
ne(() => {
|
|
6131
|
-
|
|
6135
|
+
f(() => {
|
|
6132
6136
|
if (!r)
|
|
6133
6137
|
return;
|
|
6134
6138
|
const v = { ...r };
|
|
@@ -6138,11 +6142,11 @@ const Bs = ({
|
|
|
6138
6142
|
const m = {
|
|
6139
6143
|
container: `smp-field-container ${de(t) ? `smp-field-position-${n}` : ""}`
|
|
6140
6144
|
}, p = () => {
|
|
6141
|
-
de(t) || o == null || o(
|
|
6145
|
+
de(t) || o == null || o(u);
|
|
6142
6146
|
};
|
|
6143
|
-
if (
|
|
6144
|
-
return /* @__PURE__ */
|
|
6145
|
-
/* @__PURE__ */
|
|
6147
|
+
if (u)
|
|
6148
|
+
return /* @__PURE__ */ g.jsxs("div", { className: m.container, children: [
|
|
6149
|
+
/* @__PURE__ */ g.jsx(
|
|
6146
6150
|
"div",
|
|
6147
6151
|
{
|
|
6148
6152
|
style: {
|
|
@@ -6151,12 +6155,12 @@ const Bs = ({
|
|
|
6151
6155
|
gap: "8px",
|
|
6152
6156
|
font: "var(--smp-fontLabel-base)"
|
|
6153
6157
|
},
|
|
6154
|
-
children: /* @__PURE__ */
|
|
6158
|
+
children: /* @__PURE__ */ g.jsx(
|
|
6155
6159
|
Te,
|
|
6156
6160
|
{
|
|
6157
|
-
...
|
|
6161
|
+
...u,
|
|
6158
6162
|
id: "FLD",
|
|
6159
|
-
onChange:
|
|
6163
|
+
onChange: f,
|
|
6160
6164
|
onOptionsRequest: l,
|
|
6161
6165
|
fun: r == null ? void 0 : r.fun,
|
|
6162
6166
|
onBlur: p,
|
|
@@ -6167,11 +6171,11 @@ const Bs = ({
|
|
|
6167
6171
|
}
|
|
6168
6172
|
),
|
|
6169
6173
|
de(t) && //TODO: translation
|
|
6170
|
-
/* @__PURE__ */
|
|
6174
|
+
/* @__PURE__ */ g.jsx(
|
|
6171
6175
|
Be,
|
|
6172
6176
|
{
|
|
6173
6177
|
optionalDisplayValue: "Confirm",
|
|
6174
|
-
onClick: () => c == null ? void 0 : c(
|
|
6178
|
+
onClick: () => c == null ? void 0 : c(u),
|
|
6175
6179
|
bindValue: "Confirm"
|
|
6176
6180
|
}
|
|
6177
6181
|
)
|
|
@@ -6199,75 +6203,75 @@ const Bs = ({
|
|
|
6199
6203
|
onContextMenu: c
|
|
6200
6204
|
}) => {
|
|
6201
6205
|
var b, O;
|
|
6202
|
-
const [l,
|
|
6206
|
+
const [l, u] = q({}), { translate: f } = je();
|
|
6203
6207
|
ne(() => {
|
|
6204
|
-
|
|
6208
|
+
u(v(r));
|
|
6205
6209
|
}, [r]);
|
|
6206
|
-
const d = (S,
|
|
6207
|
-
|
|
6208
|
-
...
|
|
6210
|
+
const d = (S, y) => {
|
|
6211
|
+
u((R) => ({
|
|
6212
|
+
...R,
|
|
6209
6213
|
[S]: {
|
|
6210
|
-
...
|
|
6214
|
+
...R[S],
|
|
6211
6215
|
obj: {
|
|
6212
|
-
...
|
|
6213
|
-
k:
|
|
6216
|
+
...R[S].obj,
|
|
6217
|
+
k: y.obj.k
|
|
6214
6218
|
},
|
|
6215
|
-
decode:
|
|
6219
|
+
decode: y.decode,
|
|
6216
6220
|
data: {
|
|
6217
|
-
...
|
|
6221
|
+
...R[S].data,
|
|
6218
6222
|
error: void 0
|
|
6219
6223
|
},
|
|
6220
6224
|
// FIXME: remove this when webup.js will not use value
|
|
6221
|
-
value:
|
|
6225
|
+
value: y.obj.k
|
|
6222
6226
|
}
|
|
6223
|
-
})), n && (
|
|
6227
|
+
})), n && (y.shape == te.CHECKBOX || y.shape == te.SWITCH) && m();
|
|
6224
6228
|
}, m = (S) => {
|
|
6225
|
-
const
|
|
6229
|
+
const y = w();
|
|
6226
6230
|
a({
|
|
6227
|
-
value:
|
|
6231
|
+
value: y,
|
|
6228
6232
|
cell: S
|
|
6229
6233
|
});
|
|
6230
6234
|
}, p = async (S) => {
|
|
6231
|
-
var
|
|
6232
|
-
if (l[S].obj.k != r.rows[0].cells[S].obj.k && ((
|
|
6235
|
+
var y, R;
|
|
6236
|
+
if (l[S].obj.k != r.rows[0].cells[S].obj.k && ((y = l[S].inputSettings) != null && y.checkObject && o && ((await o({
|
|
6233
6237
|
obj: l[S].obj,
|
|
6234
6238
|
fun: l[S].fun,
|
|
6235
6239
|
cellId: S
|
|
6236
|
-
})).valid ||
|
|
6240
|
+
})).valid || u((_) => ({
|
|
6237
6241
|
..._,
|
|
6238
6242
|
[S]: {
|
|
6239
6243
|
..._[S],
|
|
6240
6244
|
data: {
|
|
6241
6245
|
..._[S].data,
|
|
6242
|
-
error:
|
|
6246
|
+
error: f(ke.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6243
6247
|
}
|
|
6244
6248
|
}
|
|
6245
|
-
}))), (
|
|
6246
|
-
const k =
|
|
6249
|
+
}))), (R = l[S].inputSettings) != null && R.checkValueOnExit)) {
|
|
6250
|
+
const k = w();
|
|
6247
6251
|
i == null || i({
|
|
6248
6252
|
value: k,
|
|
6249
6253
|
cell: S
|
|
6250
6254
|
});
|
|
6251
6255
|
}
|
|
6252
6256
|
}, v = (S) => {
|
|
6253
|
-
var
|
|
6254
|
-
if (!((
|
|
6257
|
+
var R, k, _;
|
|
6258
|
+
if (!((R = S.rows) != null && R.length) || !((k = S.columns) != null && k.length))
|
|
6255
6259
|
return {};
|
|
6256
|
-
const
|
|
6257
|
-
return S.columns.filter((
|
|
6258
|
-
const
|
|
6259
|
-
...
|
|
6260
|
-
id:
|
|
6261
|
-
label:
|
|
6260
|
+
const y = (_ = S.rows) == null ? void 0 : _[0];
|
|
6261
|
+
return S.columns.filter((T) => T.visible ?? !0).reduce((T, D) => {
|
|
6262
|
+
const N = {
|
|
6263
|
+
...y.cells[D.name],
|
|
6264
|
+
id: D.name,
|
|
6265
|
+
label: D.title
|
|
6262
6266
|
};
|
|
6263
|
-
return
|
|
6264
|
-
await s(P, A, r,
|
|
6265
|
-
)),
|
|
6266
|
-
...
|
|
6267
|
-
[
|
|
6267
|
+
return N.fun && (N.onOptionsRequest = async (P, A) => zs(
|
|
6268
|
+
await s(P, A, r, D.name)
|
|
6269
|
+
)), N.isEditable == null && (N.isEditable = !0), e && (N.isEditable = !1), N.isEditable && N.shape == null && (N.shape = te.TEXT_FIELD), {
|
|
6270
|
+
...T,
|
|
6271
|
+
[D.name]: N
|
|
6268
6272
|
};
|
|
6269
6273
|
}, {});
|
|
6270
|
-
},
|
|
6274
|
+
}, w = () => ({
|
|
6271
6275
|
before: r,
|
|
6272
6276
|
after: {
|
|
6273
6277
|
type: "SmeupDataTable",
|
|
@@ -6278,23 +6282,23 @@ const Bs = ({
|
|
|
6278
6282
|
}
|
|
6279
6283
|
]
|
|
6280
6284
|
}
|
|
6281
|
-
}), E = ((O = (b = r.setup) == null ? void 0 : b.commands) == null ? void 0 : O.map((S,
|
|
6285
|
+
}), E = ((O = (b = r.setup) == null ? void 0 : b.commands) == null ? void 0 : O.map((S, y) => /* @__PURE__ */ Ur(
|
|
6282
6286
|
Te,
|
|
6283
6287
|
{
|
|
6284
6288
|
...S,
|
|
6285
6289
|
decode: S.value,
|
|
6286
|
-
id: `command-${
|
|
6287
|
-
key: `command-${
|
|
6290
|
+
id: `command-${y}`,
|
|
6291
|
+
key: `command-${y}`,
|
|
6288
6292
|
shape: te.BUTTON,
|
|
6289
6293
|
onClick: () => m(S.obj.k)
|
|
6290
6294
|
}
|
|
6291
6295
|
))) || [];
|
|
6292
6296
|
return t || E.unshift(
|
|
6293
|
-
/* @__PURE__ */
|
|
6297
|
+
/* @__PURE__ */ g.jsx(
|
|
6294
6298
|
Te,
|
|
6295
6299
|
{
|
|
6296
6300
|
onClick: () => m(),
|
|
6297
|
-
decode:
|
|
6301
|
+
decode: f(ke.CONFIRM_BUTTON),
|
|
6298
6302
|
shape: te.BUTTON,
|
|
6299
6303
|
id: "",
|
|
6300
6304
|
obj: {
|
|
@@ -6305,18 +6309,18 @@ const Bs = ({
|
|
|
6305
6309
|
},
|
|
6306
6310
|
"submit-command"
|
|
6307
6311
|
)
|
|
6308
|
-
), l && /* @__PURE__ */
|
|
6309
|
-
/* @__PURE__ */
|
|
6312
|
+
), l && /* @__PURE__ */ g.jsxs("div", { "data-component": "input-panel", children: [
|
|
6313
|
+
/* @__PURE__ */ g.jsx(
|
|
6310
6314
|
"div",
|
|
6311
6315
|
{
|
|
6312
6316
|
style: {
|
|
6313
6317
|
padding: "1em 0"
|
|
6314
6318
|
},
|
|
6315
|
-
children: /* @__PURE__ */
|
|
6319
|
+
children: /* @__PURE__ */ g.jsx(it, { layout: r.rows[0].layout, children: Object.values(l).map((S) => /* @__PURE__ */ g.jsx(
|
|
6316
6320
|
Te,
|
|
6317
6321
|
{
|
|
6318
6322
|
...S,
|
|
6319
|
-
onChange: (
|
|
6323
|
+
onChange: (y) => d(S.id, y),
|
|
6320
6324
|
onBlur: () => p(S.id),
|
|
6321
6325
|
onContextMenu: c,
|
|
6322
6326
|
data: {
|
|
@@ -6327,7 +6331,7 @@ const Bs = ({
|
|
|
6327
6331
|
)) })
|
|
6328
6332
|
}
|
|
6329
6333
|
),
|
|
6330
|
-
E.length > 0 && /* @__PURE__ */
|
|
6334
|
+
E.length > 0 && /* @__PURE__ */ g.jsx(
|
|
6331
6335
|
it,
|
|
6332
6336
|
{
|
|
6333
6337
|
layout: {
|