@sme.up/ketchup2 2.0.0-SNAPSHOT-20250704073042 → 2.0.0-SNAPSHOT-20250707103334
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/assets/layoutAssets.d.ts +1 -0
- package/dist/assets/layoutAssets.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/functional-components/layout/layout.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +8 -8
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +777 -773
- package/dist/types/data-structures.d.ts +1 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as He from "react";
|
|
2
2
|
import rt, { useState as G, useRef as le, useEffect as ne, useCallback as ue, useLayoutEffect as Fn, useId as Ce, useMemo as Vn, createElement as Un } from "react";
|
|
3
3
|
import { createPortal as Wn } from "react-dom";
|
|
4
|
-
var
|
|
4
|
+
var qe = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.js
|
|
@@ -52,15 +52,15 @@ function Bn() {
|
|
|
52
52
|
return h.$$typeof === R ? null : h.displayName || h.name || null;
|
|
53
53
|
if (typeof h == "string") return h;
|
|
54
54
|
switch (h) {
|
|
55
|
-
case
|
|
55
|
+
case w:
|
|
56
56
|
return "Fragment";
|
|
57
57
|
case E:
|
|
58
58
|
return "Profiler";
|
|
59
|
-
case
|
|
59
|
+
case S:
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case g:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case k:
|
|
64
64
|
return "SuspenseList";
|
|
65
65
|
case L:
|
|
66
66
|
return "Activity";
|
|
@@ -80,7 +80,7 @@ function Bn() {
|
|
|
80
80
|
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
81
|
case A:
|
|
82
82
|
return x = h.displayName || null, x !== null ? x : n(h.type) || "Memo";
|
|
83
|
-
case
|
|
83
|
+
case O:
|
|
84
84
|
x = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
86
|
return n(h(x));
|
|
@@ -101,8 +101,8 @@ function Bn() {
|
|
|
101
101
|
}
|
|
102
102
|
if (x) {
|
|
103
103
|
x = console;
|
|
104
|
-
var
|
|
105
|
-
return
|
|
104
|
+
var $ = x.error, _ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
|
+
return $.call(
|
|
106
106
|
x,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
108
|
_
|
|
@@ -110,8 +110,8 @@ function Bn() {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function r(h) {
|
|
113
|
-
if (h ===
|
|
114
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
113
|
+
if (h === w) return "<>";
|
|
114
|
+
if (typeof h == "object" && h !== null && h.$$typeof === O)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
117
|
var x = n(h);
|
|
@@ -128,21 +128,21 @@ function Bn() {
|
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
130
|
function o(h) {
|
|
131
|
-
if (
|
|
131
|
+
if (C.call(h, "key")) {
|
|
132
132
|
var x = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
133
133
|
if (x && x.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
137
|
function i(h, x) {
|
|
138
|
-
function
|
|
138
|
+
function $() {
|
|
139
139
|
B || (B = !0, console.error(
|
|
140
140
|
"%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)",
|
|
141
141
|
x
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
get:
|
|
144
|
+
$.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
145
|
+
get: $,
|
|
146
146
|
configurable: !0
|
|
147
147
|
});
|
|
148
148
|
}
|
|
@@ -152,14 +152,14 @@ function Bn() {
|
|
|
152
152
|
"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."
|
|
153
153
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
154
154
|
}
|
|
155
|
-
function c(h, x,
|
|
156
|
-
return
|
|
155
|
+
function c(h, x, $, _, j, I, U, W) {
|
|
156
|
+
return $ = I.ref, h = {
|
|
157
157
|
$$typeof: y,
|
|
158
158
|
type: h,
|
|
159
159
|
key: x,
|
|
160
160
|
props: I,
|
|
161
161
|
_owner: j
|
|
162
|
-
}, (
|
|
162
|
+
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
165
165
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -184,7 +184,7 @@ function Bn() {
|
|
|
184
184
|
value: W
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function d(h, x,
|
|
187
|
+
function d(h, x, $, _, j, I, U, W) {
|
|
188
188
|
var V = x.children;
|
|
189
189
|
if (V !== void 0)
|
|
190
190
|
if (_)
|
|
@@ -197,7 +197,7 @@ function Bn() {
|
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
199
|
else u(V);
|
|
200
|
-
if (
|
|
200
|
+
if (C.call(x, "key")) {
|
|
201
201
|
V = n(h);
|
|
202
202
|
var J = Object.keys(x).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
@@ -215,13 +215,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
215
|
V
|
|
216
216
|
), F[V + _] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (V = null,
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
218
|
+
if (V = null, $ !== void 0 && (t($), V = "" + $), o(x) && (t(x.key), V = "" + x.key), "key" in x) {
|
|
219
|
+
$ = {};
|
|
220
|
+
for (var q in x)
|
|
221
|
+
q !== "key" && ($[q] = x[q]);
|
|
222
|
+
} else $ = x;
|
|
223
223
|
return V && i(
|
|
224
|
-
|
|
224
|
+
$,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
@@ -229,7 +229,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
229
229
|
I,
|
|
230
230
|
j,
|
|
231
231
|
s(),
|
|
232
|
-
|
|
232
|
+
$,
|
|
233
233
|
U,
|
|
234
234
|
W
|
|
235
235
|
);
|
|
@@ -237,7 +237,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
237
237
|
function u(h) {
|
|
238
238
|
typeof h == "object" && h !== null && h.$$typeof === y && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var f = rt, y = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"),
|
|
240
|
+
var f = rt, y = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), T = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), D = f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, P = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
f = {
|
|
@@ -245,32 +245,32 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return h();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var B, H = {},
|
|
248
|
+
var B, H = {}, z = f["react-stack-bottom-frame"].bind(
|
|
249
249
|
f,
|
|
250
250
|
a
|
|
251
251
|
)(), X = N(r(a)), F = {};
|
|
252
|
-
Ve.Fragment =
|
|
252
|
+
Ve.Fragment = w, Ve.jsx = function(h, x, $, _, j) {
|
|
253
253
|
var I = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
255
255
|
h,
|
|
256
256
|
x,
|
|
257
|
-
|
|
257
|
+
$,
|
|
258
258
|
!1,
|
|
259
259
|
_,
|
|
260
260
|
j,
|
|
261
|
-
I ? Error("react-stack-top-frame") :
|
|
261
|
+
I ? Error("react-stack-top-frame") : z,
|
|
262
262
|
I ? N(r(h)) : X
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h, x,
|
|
264
|
+
}, Ve.jsxs = function(h, x, $, _, j) {
|
|
265
265
|
var I = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return d(
|
|
267
267
|
h,
|
|
268
268
|
x,
|
|
269
|
-
|
|
269
|
+
$,
|
|
270
270
|
!0,
|
|
271
271
|
_,
|
|
272
272
|
j,
|
|
273
|
-
I ? Error("react-stack-top-frame") :
|
|
273
|
+
I ? Error("react-stack-top-frame") : z,
|
|
274
274
|
I ? N(r(h)) : X
|
|
275
275
|
);
|
|
276
276
|
};
|
|
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
}
|
|
279
279
|
var Ft;
|
|
280
280
|
function Gn() {
|
|
281
|
-
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ?
|
|
281
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? qe.exports = Yn() : qe.exports = Bn()), qe.exports;
|
|
282
282
|
}
|
|
283
283
|
var m = Gn();
|
|
284
284
|
const De = ({ label: n, disabled: e, htmlFor: t }) => {
|
|
@@ -286,19 +286,20 @@ const De = ({ label: n, disabled: e, htmlFor: t }) => {
|
|
|
286
286
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
287
287
|
};
|
|
288
288
|
return /* @__PURE__ */ m.jsx("label", { className: r.container, htmlFor: t, children: n });
|
|
289
|
-
},
|
|
290
|
-
"smp-layout": "_smp-
|
|
291
|
-
"smp-layout-horizontal": "_smp-layout-
|
|
292
|
-
"smp-layout-vertical": "_smp-layout-
|
|
293
|
-
"smp-layout-section-grid": "_smp-layout-section-
|
|
294
|
-
"smp-layout-section-vertical": "_smp-layout-section-
|
|
295
|
-
"smp-layout-section-horizontal": "_smp-layout-section-
|
|
296
|
-
"smp-layout-cell-container": "_smp-layout-cell-
|
|
297
|
-
"smp-layout-section-flex": "_smp-layout-section-
|
|
298
|
-
"smp-grid-template-cols": "_smp-grid-template-
|
|
299
|
-
"smp-grid-template-rows": "_smp-grid-template-
|
|
300
|
-
"smp-layout-section-with-title": "_smp-layout-section-with-
|
|
301
|
-
"smp-layout-section-title": "_smp-layout-section-
|
|
289
|
+
}, pe = {
|
|
290
|
+
"smp-layout": "_smp-layout_wqmhx_1",
|
|
291
|
+
"smp-layout-horizontal": "_smp-layout-horizontal_wqmhx_9",
|
|
292
|
+
"smp-layout-vertical": "_smp-layout-vertical_wqmhx_15",
|
|
293
|
+
"smp-layout-section-grid": "_smp-layout-section-grid_wqmhx_20",
|
|
294
|
+
"smp-layout-section-vertical": "_smp-layout-section-vertical_wqmhx_24",
|
|
295
|
+
"smp-layout-section-horizontal": "_smp-layout-section-horizontal_wqmhx_28",
|
|
296
|
+
"smp-layout-cell-container": "_smp-layout-cell-container_wqmhx_33",
|
|
297
|
+
"smp-layout-section-flex": "_smp-layout-section-flex_wqmhx_37",
|
|
298
|
+
"smp-grid-template-cols": "_smp-grid-template-cols_wqmhx_55",
|
|
299
|
+
"smp-grid-template-rows": "_smp-grid-template-rows_wqmhx_59",
|
|
300
|
+
"smp-layout-section-with-title": "_smp-layout-section-with-title_wqmhx_63",
|
|
301
|
+
"smp-layout-section-title": "_smp-layout-section-title_wqmhx_69",
|
|
302
|
+
"smp-layout-inline": "_smp-layout-inline_wqmhx_75"
|
|
302
303
|
}, Hn = (n, e) => {
|
|
303
304
|
const t = [];
|
|
304
305
|
for (let r = 0; r < n.length; r += e)
|
|
@@ -336,7 +337,7 @@ const De = ({ label: n, disabled: e, htmlFor: t }) => {
|
|
|
336
337
|
[e]: t
|
|
337
338
|
};
|
|
338
339
|
}, Ut = (n) => n.some((e) => e.dim && !e.dim.endsWith("%"));
|
|
339
|
-
function
|
|
340
|
+
function qn(n, e) {
|
|
340
341
|
if (n == null) return {};
|
|
341
342
|
var t = {};
|
|
342
343
|
for (var r in n) if ({}.hasOwnProperty.call(n, r)) {
|
|
@@ -359,7 +360,7 @@ function Ct(n, e) {
|
|
|
359
360
|
return t.__proto__ = r, t;
|
|
360
361
|
}, Ct(n, e);
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Kn(n, e) {
|
|
363
364
|
n.prototype = Object.create(e.prototype), n.prototype.constructor = n, Ct(n, e);
|
|
364
365
|
}
|
|
365
366
|
function gt(n, e, t) {
|
|
@@ -367,18 +368,18 @@ function gt(n, e, t) {
|
|
|
367
368
|
(a || !(r in e)) && (a || (a = Array.prototype.slice.call(e, 0, r)), a[r] = e[r]);
|
|
368
369
|
return n.concat(a || Array.prototype.slice.call(e));
|
|
369
370
|
}
|
|
370
|
-
var
|
|
371
|
+
var Ke = {};
|
|
371
372
|
/*!
|
|
372
373
|
* content-type
|
|
373
374
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
374
375
|
* MIT Licensed
|
|
375
376
|
*/
|
|
376
377
|
var Wt;
|
|
377
|
-
function
|
|
378
|
-
if (Wt) return
|
|
378
|
+
function zn() {
|
|
379
|
+
if (Wt) return Ke;
|
|
379
380
|
Wt = 1;
|
|
380
381
|
var n = /; *([!#$%&'*+.^_`|~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-]+$/, r = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
381
|
-
|
|
382
|
+
Ke.format = o, Ke.parse = i;
|
|
382
383
|
function o(u) {
|
|
383
384
|
if (!u || typeof u != "object")
|
|
384
385
|
throw new TypeError("argument obj is required");
|
|
@@ -387,10 +388,10 @@ function qn() {
|
|
|
387
388
|
throw new TypeError("invalid type");
|
|
388
389
|
var p = y;
|
|
389
390
|
if (f && typeof f == "object")
|
|
390
|
-
for (var
|
|
391
|
-
if (
|
|
391
|
+
for (var w, S = Object.keys(f).sort(), E = 0; E < S.length; E++) {
|
|
392
|
+
if (w = S[E], !t.test(w))
|
|
392
393
|
throw new TypeError("invalid parameter name");
|
|
393
|
-
p += "; " +
|
|
394
|
+
p += "; " + w + "=" + c(f[w]);
|
|
394
395
|
}
|
|
395
396
|
return p;
|
|
396
397
|
}
|
|
@@ -403,18 +404,18 @@ function qn() {
|
|
|
403
404
|
var y = f.indexOf(";"), p = y !== -1 ? f.slice(0, y).trim() : f.trim();
|
|
404
405
|
if (!a.test(p))
|
|
405
406
|
throw new TypeError("invalid media type");
|
|
406
|
-
var
|
|
407
|
+
var w = new d(p.toLowerCase());
|
|
407
408
|
if (y !== -1) {
|
|
408
|
-
var
|
|
409
|
+
var S, E, b;
|
|
409
410
|
for (n.lastIndex = y; E = n.exec(f); ) {
|
|
410
411
|
if (E.index !== y)
|
|
411
412
|
throw new TypeError("invalid parameter format");
|
|
412
|
-
y += E[0].length,
|
|
413
|
+
y += E[0].length, S = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(r, "$1"))), w.parameters[S] = b;
|
|
413
414
|
}
|
|
414
415
|
if (y !== f.length)
|
|
415
416
|
throw new TypeError("invalid parameter format");
|
|
416
417
|
}
|
|
417
|
-
return
|
|
418
|
+
return w;
|
|
418
419
|
}
|
|
419
420
|
function l(u) {
|
|
420
421
|
var f;
|
|
@@ -433,9 +434,9 @@ function qn() {
|
|
|
433
434
|
function d(u) {
|
|
434
435
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = u;
|
|
435
436
|
}
|
|
436
|
-
return
|
|
437
|
+
return Ke;
|
|
437
438
|
}
|
|
438
|
-
var Jn =
|
|
439
|
+
var Jn = zn(), Ie = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
439
440
|
return e.cloneNode(!0);
|
|
440
441
|
}, Yt = function() {
|
|
441
442
|
return window.location.protocol === "file:";
|
|
@@ -524,10 +525,10 @@ var Jn = qn(), Ie = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
524
525
|
y && u.setAttribute("title", y);
|
|
525
526
|
var p = e.getAttribute("width");
|
|
526
527
|
p && u.setAttribute("width", p);
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
var
|
|
530
|
-
u.setAttribute("class",
|
|
528
|
+
var w = e.getAttribute("height");
|
|
529
|
+
w && u.setAttribute("height", w);
|
|
530
|
+
var S = Array.from(new Set(gt(gt(gt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
531
|
+
u.setAttribute("class", S);
|
|
531
532
|
var E = e.getAttribute("style");
|
|
532
533
|
E && u.setAttribute("style", E), u.setAttribute("data-src", l);
|
|
533
534
|
var b = [].filter.call(e.attributes, function(X) {
|
|
@@ -547,40 +548,40 @@ var Jn = qn(), Ie = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
547
548
|
path: [],
|
|
548
549
|
pattern: ["fill", "stroke"],
|
|
549
550
|
radialGradient: ["fill", "stroke"]
|
|
550
|
-
}, v, g,
|
|
551
|
+
}, v, g, k, A, O;
|
|
551
552
|
Object.keys(T).forEach(function(X) {
|
|
552
|
-
v = X,
|
|
553
|
+
v = X, k = T[X], g = u.querySelectorAll(v + "[id]");
|
|
553
554
|
for (var F = function(_, j) {
|
|
554
|
-
A = g[_].id,
|
|
555
|
+
A = g[_].id, O = A + "-" + tr();
|
|
555
556
|
var I;
|
|
556
|
-
Array.prototype.forEach.call(
|
|
557
|
+
Array.prototype.forEach.call(k, function(Y) {
|
|
557
558
|
I = u.querySelectorAll("[" + Y + '*="' + A + '"]');
|
|
558
559
|
for (var Z = 0, re = I.length; Z < re; Z++) {
|
|
559
560
|
var ae = I[Z].getAttribute(Y);
|
|
560
|
-
ae && !ae.match(new RegExp('url\\("?#' + A + '"?\\)')) || I[Z].setAttribute(Y, "url(#" +
|
|
561
|
+
ae && !ae.match(new RegExp('url\\("?#' + A + '"?\\)')) || I[Z].setAttribute(Y, "url(#" + O + ")");
|
|
561
562
|
}
|
|
562
563
|
});
|
|
563
564
|
for (var U = u.querySelectorAll("[*|href]"), W = [], V = 0, J = U.length; V < J; V++) {
|
|
564
|
-
var
|
|
565
|
-
|
|
565
|
+
var q = U[V].getAttributeNS(yt, "href");
|
|
566
|
+
q && q.toString() === "#" + g[_].id && W.push(U[V]);
|
|
566
567
|
}
|
|
567
568
|
for (var se = 0, M = W.length; se < M; se++)
|
|
568
|
-
W[se].setAttributeNS(yt, "href", "#" +
|
|
569
|
-
g[_].id =
|
|
569
|
+
W[se].setAttributeNS(yt, "href", "#" + O);
|
|
570
|
+
g[_].id = O;
|
|
570
571
|
}, h = 0, x = g.length; h < x; h++)
|
|
571
572
|
F(h);
|
|
572
573
|
});
|
|
573
574
|
}
|
|
574
575
|
u.removeAttribute("xmlns:a");
|
|
575
|
-
for (var L = u.querySelectorAll("script"), R = [], D,
|
|
576
|
-
|
|
576
|
+
for (var L = u.querySelectorAll("script"), R = [], D, C, P = 0, N = L.length; P < N; P++)
|
|
577
|
+
C = L[P].getAttribute("type"), (!C || C === "application/ecmascript" || C === "application/javascript" || C === "text/javascript") && (D = L[P].innerText || L[P].textContent, D && R.push(D), u.removeChild(L[P]));
|
|
577
578
|
if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
578
579
|
for (var B = 0, H = R.length; B < H; B++)
|
|
579
580
|
new Function(R[B])(window);
|
|
580
581
|
Gt[l] = !0;
|
|
581
582
|
}
|
|
582
|
-
var
|
|
583
|
-
if (Array.prototype.forEach.call(
|
|
583
|
+
var z = u.querySelectorAll("style");
|
|
584
|
+
if (Array.prototype.forEach.call(z, function(X) {
|
|
584
585
|
X.textContent += "";
|
|
585
586
|
}), u.setAttribute("xmlns", nr), u.setAttribute("xmlns:xlink", yt), o(u), !e.parentNode) {
|
|
586
587
|
ye.splice(ye.indexOf(e), 1), e = null, i(new Error("Parent node is null"));
|
|
@@ -592,16 +593,16 @@ var Jn = qn(), Ie = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
592
593
|
var r = t === void 0 ? {} : t, s = r.afterAll, a = s === void 0 ? function() {
|
|
593
594
|
} : s, o = r.afterEach, i = o === void 0 ? function() {
|
|
594
595
|
} : o, l = r.beforeEach, c = l === void 0 ? function() {
|
|
595
|
-
} : l, d = r.cacheRequests, u = d === void 0 ? !0 : d, f = r.evalScripts, y = f === void 0 ? "never" : f, p = r.httpRequestWithCredentials,
|
|
596
|
+
} : l, d = r.cacheRequests, u = d === void 0 ? !0 : d, f = r.evalScripts, y = f === void 0 ? "never" : f, p = r.httpRequestWithCredentials, w = p === void 0 ? !1 : p, S = r.renumerateIRIElements, E = S === void 0 ? !0 : S;
|
|
596
597
|
if (e && "length" in e)
|
|
597
598
|
for (var b = 0, T = 0, v = e.length; T < v; T++)
|
|
598
|
-
Ht(e[T], y, E, u,
|
|
599
|
-
i(g,
|
|
599
|
+
Ht(e[T], y, E, u, w, c, function(g, k) {
|
|
600
|
+
i(g, k), e && "length" in e && e.length === ++b && a(b);
|
|
600
601
|
});
|
|
601
|
-
else e ? Ht(e, y, E, u,
|
|
602
|
-
i(g,
|
|
602
|
+
else e ? Ht(e, y, E, u, w, c, function(g, k) {
|
|
603
|
+
i(g, k), a(1), e = null;
|
|
603
604
|
}) : a(0);
|
|
604
|
-
},
|
|
605
|
+
}, ze = { exports: {} }, Je = { exports: {} }, Q = {};
|
|
605
606
|
/** @license React v16.13.1
|
|
606
607
|
* react-is.production.min.js
|
|
607
608
|
*
|
|
@@ -610,15 +611,15 @@ var Jn = qn(), Ie = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
610
611
|
* This source code is licensed under the MIT license found in the
|
|
611
612
|
* LICENSE file in the root directory of this source tree.
|
|
612
613
|
*/
|
|
613
|
-
var
|
|
614
|
+
var qt;
|
|
614
615
|
function sr() {
|
|
615
|
-
if (
|
|
616
|
-
|
|
617
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, p = n ? Symbol.for("react.lazy") : 60116,
|
|
616
|
+
if (qt) return Q;
|
|
617
|
+
qt = 1;
|
|
618
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, p = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
618
619
|
function T(g) {
|
|
619
620
|
if (typeof g == "object" && g !== null) {
|
|
620
|
-
var
|
|
621
|
-
switch (
|
|
621
|
+
var k = g.$$typeof;
|
|
622
|
+
switch (k) {
|
|
622
623
|
case e:
|
|
623
624
|
switch (g = g.type, g) {
|
|
624
625
|
case l:
|
|
@@ -637,11 +638,11 @@ function sr() {
|
|
|
637
638
|
case o:
|
|
638
639
|
return g;
|
|
639
640
|
default:
|
|
640
|
-
return
|
|
641
|
+
return k;
|
|
641
642
|
}
|
|
642
643
|
}
|
|
643
644
|
case t:
|
|
644
|
-
return
|
|
645
|
+
return k;
|
|
645
646
|
}
|
|
646
647
|
}
|
|
647
648
|
}
|
|
@@ -673,7 +674,7 @@ function sr() {
|
|
|
673
674
|
}, Q.isSuspense = function(g) {
|
|
674
675
|
return T(g) === u;
|
|
675
676
|
}, Q.isValidElementType = function(g) {
|
|
676
|
-
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === a || g === s || g === u || g === f || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === y || g.$$typeof === o || g.$$typeof === i || g.$$typeof === d || g.$$typeof ===
|
|
677
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === a || g === s || g === u || g === f || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === y || g.$$typeof === o || g.$$typeof === i || g.$$typeof === d || g.$$typeof === S || g.$$typeof === E || g.$$typeof === b || g.$$typeof === w);
|
|
677
678
|
}, Q.typeOf = T, Q;
|
|
678
679
|
}
|
|
679
680
|
var ee = {};
|
|
@@ -685,13 +686,13 @@ var ee = {};
|
|
|
685
686
|
* This source code is licensed under the MIT license found in the
|
|
686
687
|
* LICENSE file in the root directory of this source tree.
|
|
687
688
|
*/
|
|
688
|
-
var
|
|
689
|
+
var Kt;
|
|
689
690
|
function ar() {
|
|
690
|
-
return
|
|
691
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, p = n ? Symbol.for("react.lazy") : 60116,
|
|
691
|
+
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
692
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, d = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, f = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, p = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
692
693
|
function T(M) {
|
|
693
694
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
694
|
-
M === r || M === c || M === a || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === y || M.$$typeof === o || M.$$typeof === i || M.$$typeof === d || M.$$typeof ===
|
|
695
|
+
M === r || M === c || M === a || M === s || M === u || M === f || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === y || M.$$typeof === o || M.$$typeof === i || M.$$typeof === d || M.$$typeof === S || M.$$typeof === E || M.$$typeof === b || M.$$typeof === w);
|
|
695
696
|
}
|
|
696
697
|
function v(M) {
|
|
697
698
|
if (typeof M == "object" && M !== null) {
|
|
@@ -725,7 +726,7 @@ function ar() {
|
|
|
725
726
|
}
|
|
726
727
|
}
|
|
727
728
|
}
|
|
728
|
-
var g = l,
|
|
729
|
+
var g = l, k = c, A = i, O = o, L = e, R = d, D = r, C = p, P = y, N = t, B = a, H = s, z = u, X = !1;
|
|
729
730
|
function F(M) {
|
|
730
731
|
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) || v(M) === l;
|
|
731
732
|
}
|
|
@@ -735,7 +736,7 @@ function ar() {
|
|
|
735
736
|
function x(M) {
|
|
736
737
|
return v(M) === i;
|
|
737
738
|
}
|
|
738
|
-
function
|
|
739
|
+
function $(M) {
|
|
739
740
|
return v(M) === o;
|
|
740
741
|
}
|
|
741
742
|
function _(M) {
|
|
@@ -759,18 +760,18 @@ function ar() {
|
|
|
759
760
|
function J(M) {
|
|
760
761
|
return v(M) === a;
|
|
761
762
|
}
|
|
762
|
-
function
|
|
763
|
+
function q(M) {
|
|
763
764
|
return v(M) === s;
|
|
764
765
|
}
|
|
765
766
|
function se(M) {
|
|
766
767
|
return v(M) === u;
|
|
767
768
|
}
|
|
768
|
-
ee.AsyncMode = g, ee.ConcurrentMode =
|
|
769
|
+
ee.AsyncMode = g, ee.ConcurrentMode = k, ee.ContextConsumer = A, ee.ContextProvider = O, ee.Element = L, ee.ForwardRef = R, ee.Fragment = D, ee.Lazy = C, ee.Memo = P, ee.Portal = N, ee.Profiler = B, ee.StrictMode = H, ee.Suspense = z, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = $, ee.isElement = _, ee.isForwardRef = j, ee.isFragment = I, ee.isLazy = U, ee.isMemo = W, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = q, ee.isSuspense = se, ee.isValidElementType = T, ee.typeOf = v;
|
|
769
770
|
}()), ee;
|
|
770
771
|
}
|
|
771
|
-
var
|
|
772
|
+
var zt;
|
|
772
773
|
function Dn() {
|
|
773
|
-
return
|
|
774
|
+
return zt || (zt = 1, process.env.NODE_ENV === "production" ? Je.exports = sr() : Je.exports = ar()), Je.exports;
|
|
774
775
|
}
|
|
775
776
|
/*
|
|
776
777
|
object-assign
|
|
@@ -824,7 +825,7 @@ function or() {
|
|
|
824
825
|
}, bt;
|
|
825
826
|
}
|
|
826
827
|
var vt, Xt;
|
|
827
|
-
function
|
|
828
|
+
function $t() {
|
|
828
829
|
if (Xt) return vt;
|
|
829
830
|
Xt = 1;
|
|
830
831
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -834,14 +835,14 @@ var xt, Zt;
|
|
|
834
835
|
function jn() {
|
|
835
836
|
return Zt || (Zt = 1, xt = Function.call.bind(Object.prototype.hasOwnProperty)), xt;
|
|
836
837
|
}
|
|
837
|
-
var
|
|
838
|
+
var wt, Qt;
|
|
838
839
|
function ir() {
|
|
839
|
-
if (Qt) return
|
|
840
|
+
if (Qt) return wt;
|
|
840
841
|
Qt = 1;
|
|
841
842
|
var n = function() {
|
|
842
843
|
};
|
|
843
844
|
if (process.env.NODE_ENV !== "production") {
|
|
844
|
-
var e = /* @__PURE__ */
|
|
845
|
+
var e = /* @__PURE__ */ $t(), t = {}, r = /* @__PURE__ */ jn();
|
|
845
846
|
n = function(a) {
|
|
846
847
|
var o = "Warning: " + a;
|
|
847
848
|
typeof console < "u" && console.error(o);
|
|
@@ -881,13 +882,13 @@ function ir() {
|
|
|
881
882
|
}
|
|
882
883
|
return s.resetWarningCache = function() {
|
|
883
884
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
884
|
-
},
|
|
885
|
+
}, wt = s, wt;
|
|
885
886
|
}
|
|
886
|
-
var
|
|
887
|
+
var St, en;
|
|
887
888
|
function lr() {
|
|
888
|
-
if (en) return
|
|
889
|
+
if (en) return St;
|
|
889
890
|
en = 1;
|
|
890
|
-
var n = Dn(), e = or(), t = /* @__PURE__ */
|
|
891
|
+
var n = Dn(), e = or(), t = /* @__PURE__ */ $t(), r = /* @__PURE__ */ jn(), s = /* @__PURE__ */ ir(), a = function() {
|
|
891
892
|
};
|
|
892
893
|
process.env.NODE_ENV !== "production" && (a = function(i) {
|
|
893
894
|
var l = "Warning: " + i;
|
|
@@ -900,7 +901,7 @@ function lr() {
|
|
|
900
901
|
function o() {
|
|
901
902
|
return null;
|
|
902
903
|
}
|
|
903
|
-
return
|
|
904
|
+
return St = function(i, l) {
|
|
904
905
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
905
906
|
function u(h) {
|
|
906
907
|
var x = h && (c && h[c] || h[d]);
|
|
@@ -920,26 +921,26 @@ function lr() {
|
|
|
920
921
|
arrayOf: T,
|
|
921
922
|
element: v(),
|
|
922
923
|
elementType: g(),
|
|
923
|
-
instanceOf:
|
|
924
|
+
instanceOf: k,
|
|
924
925
|
node: R(),
|
|
925
|
-
objectOf:
|
|
926
|
+
objectOf: O,
|
|
926
927
|
oneOf: A,
|
|
927
928
|
oneOfType: L,
|
|
928
|
-
shape:
|
|
929
|
+
shape: C,
|
|
929
930
|
exact: P
|
|
930
931
|
};
|
|
931
932
|
function p(h, x) {
|
|
932
933
|
return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
|
|
933
934
|
}
|
|
934
|
-
function
|
|
935
|
+
function w(h, x) {
|
|
935
936
|
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
936
937
|
}
|
|
937
|
-
|
|
938
|
-
function
|
|
938
|
+
w.prototype = Error.prototype;
|
|
939
|
+
function S(h) {
|
|
939
940
|
if (process.env.NODE_ENV !== "production")
|
|
940
|
-
var x = {},
|
|
941
|
-
function _(I, U, W, V, J,
|
|
942
|
-
if (V = V || f,
|
|
941
|
+
var x = {}, $ = 0;
|
|
942
|
+
function _(I, U, W, V, J, q, se) {
|
|
943
|
+
if (V = V || f, q = q || W, se !== t) {
|
|
943
944
|
if (l) {
|
|
944
945
|
var M = new Error(
|
|
945
946
|
"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"
|
|
@@ -948,189 +949,189 @@ function lr() {
|
|
|
948
949
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
949
950
|
var Y = V + ":" + W;
|
|
950
951
|
!x[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
951
|
-
|
|
952
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
953
|
-
), x[Y] = !0,
|
|
952
|
+
$ < 3 && (a(
|
|
953
|
+
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
954
|
+
), x[Y] = !0, $++);
|
|
954
955
|
}
|
|
955
956
|
}
|
|
956
|
-
return U[W] == null ? I ? U[W] === null ? new
|
|
957
|
+
return U[W] == null ? I ? U[W] === null ? new w("The " + J + " `" + q + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new w("The " + J + " `" + q + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(U, W, V, J, q);
|
|
957
958
|
}
|
|
958
959
|
var j = _.bind(null, !1);
|
|
959
960
|
return j.isRequired = _.bind(null, !0), j;
|
|
960
961
|
}
|
|
961
962
|
function E(h) {
|
|
962
|
-
function x(
|
|
963
|
-
var V =
|
|
963
|
+
function x($, _, j, I, U, W) {
|
|
964
|
+
var V = $[_], J = H(V);
|
|
964
965
|
if (J !== h) {
|
|
965
|
-
var
|
|
966
|
-
return new
|
|
967
|
-
"Invalid " + I + " `" + U + "` of type " + ("`" +
|
|
966
|
+
var q = z(V);
|
|
967
|
+
return new w(
|
|
968
|
+
"Invalid " + I + " `" + U + "` of type " + ("`" + q + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
|
|
968
969
|
{ expectedType: h }
|
|
969
970
|
);
|
|
970
971
|
}
|
|
971
972
|
return null;
|
|
972
973
|
}
|
|
973
|
-
return
|
|
974
|
+
return S(x);
|
|
974
975
|
}
|
|
975
976
|
function b() {
|
|
976
|
-
return
|
|
977
|
+
return S(o);
|
|
977
978
|
}
|
|
978
979
|
function T(h) {
|
|
979
|
-
function x(
|
|
980
|
+
function x($, _, j, I, U) {
|
|
980
981
|
if (typeof h != "function")
|
|
981
|
-
return new
|
|
982
|
-
var W =
|
|
982
|
+
return new w("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
983
|
+
var W = $[_];
|
|
983
984
|
if (!Array.isArray(W)) {
|
|
984
985
|
var V = H(W);
|
|
985
|
-
return new
|
|
986
|
+
return new w("Invalid " + I + " `" + U + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an array."));
|
|
986
987
|
}
|
|
987
988
|
for (var J = 0; J < W.length; J++) {
|
|
988
|
-
var
|
|
989
|
-
if (
|
|
990
|
-
return
|
|
989
|
+
var q = h(W, J, j, I, U + "[" + J + "]", t);
|
|
990
|
+
if (q instanceof Error)
|
|
991
|
+
return q;
|
|
991
992
|
}
|
|
992
993
|
return null;
|
|
993
994
|
}
|
|
994
|
-
return
|
|
995
|
+
return S(x);
|
|
995
996
|
}
|
|
996
997
|
function v() {
|
|
997
|
-
function h(x,
|
|
998
|
-
var U = x[
|
|
998
|
+
function h(x, $, _, j, I) {
|
|
999
|
+
var U = x[$];
|
|
999
1000
|
if (!i(U)) {
|
|
1000
1001
|
var W = H(U);
|
|
1001
|
-
return new
|
|
1002
|
+
return new w("Invalid " + j + " `" + I + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected a single ReactElement."));
|
|
1002
1003
|
}
|
|
1003
1004
|
return null;
|
|
1004
1005
|
}
|
|
1005
|
-
return
|
|
1006
|
+
return S(h);
|
|
1006
1007
|
}
|
|
1007
1008
|
function g() {
|
|
1008
|
-
function h(x,
|
|
1009
|
-
var U = x[
|
|
1009
|
+
function h(x, $, _, j, I) {
|
|
1010
|
+
var U = x[$];
|
|
1010
1011
|
if (!n.isValidElementType(U)) {
|
|
1011
1012
|
var W = H(U);
|
|
1012
|
-
return new
|
|
1013
|
+
return new w("Invalid " + j + " `" + I + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected a single ReactElement type."));
|
|
1013
1014
|
}
|
|
1014
1015
|
return null;
|
|
1015
1016
|
}
|
|
1016
|
-
return
|
|
1017
|
+
return S(h);
|
|
1017
1018
|
}
|
|
1018
|
-
function
|
|
1019
|
-
function x(
|
|
1020
|
-
if (!(
|
|
1021
|
-
var W = h.name || f, V = F(
|
|
1022
|
-
return new
|
|
1019
|
+
function k(h) {
|
|
1020
|
+
function x($, _, j, I, U) {
|
|
1021
|
+
if (!($[_] instanceof h)) {
|
|
1022
|
+
var W = h.name || f, V = F($[_]);
|
|
1023
|
+
return new w("Invalid " + I + " `" + U + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected ") + ("instance of `" + W + "`."));
|
|
1023
1024
|
}
|
|
1024
1025
|
return null;
|
|
1025
1026
|
}
|
|
1026
|
-
return
|
|
1027
|
+
return S(x);
|
|
1027
1028
|
}
|
|
1028
1029
|
function A(h) {
|
|
1029
1030
|
if (!Array.isArray(h))
|
|
1030
1031
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1031
1032
|
"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])."
|
|
1032
1033
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1033
|
-
function x(
|
|
1034
|
-
for (var W =
|
|
1034
|
+
function x($, _, j, I, U) {
|
|
1035
|
+
for (var W = $[_], V = 0; V < h.length; V++)
|
|
1035
1036
|
if (p(W, h[V]))
|
|
1036
1037
|
return null;
|
|
1037
1038
|
var J = JSON.stringify(h, function(se, M) {
|
|
1038
|
-
var Y =
|
|
1039
|
+
var Y = z(M);
|
|
1039
1040
|
return Y === "symbol" ? String(M) : M;
|
|
1040
1041
|
});
|
|
1041
|
-
return new
|
|
1042
|
+
return new w("Invalid " + I + " `" + U + "` of value `" + String(W) + "` " + ("supplied to `" + j + "`, expected one of " + J + "."));
|
|
1042
1043
|
}
|
|
1043
|
-
return
|
|
1044
|
+
return S(x);
|
|
1044
1045
|
}
|
|
1045
|
-
function
|
|
1046
|
-
function x(
|
|
1046
|
+
function O(h) {
|
|
1047
|
+
function x($, _, j, I, U) {
|
|
1047
1048
|
if (typeof h != "function")
|
|
1048
|
-
return new
|
|
1049
|
-
var W =
|
|
1049
|
+
return new w("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1050
|
+
var W = $[_], V = H(W);
|
|
1050
1051
|
if (V !== "object")
|
|
1051
|
-
return new
|
|
1052
|
+
return new w("Invalid " + I + " `" + U + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an object."));
|
|
1052
1053
|
for (var J in W)
|
|
1053
1054
|
if (r(W, J)) {
|
|
1054
|
-
var
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1055
|
+
var q = h(W, J, j, I, U + "." + J, t);
|
|
1056
|
+
if (q instanceof Error)
|
|
1057
|
+
return q;
|
|
1057
1058
|
}
|
|
1058
1059
|
return null;
|
|
1059
1060
|
}
|
|
1060
|
-
return
|
|
1061
|
+
return S(x);
|
|
1061
1062
|
}
|
|
1062
1063
|
function L(h) {
|
|
1063
1064
|
if (!Array.isArray(h))
|
|
1064
1065
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1065
1066
|
for (var x = 0; x < h.length; x++) {
|
|
1066
|
-
var
|
|
1067
|
-
if (typeof
|
|
1067
|
+
var $ = h[x];
|
|
1068
|
+
if (typeof $ != "function")
|
|
1068
1069
|
return a(
|
|
1069
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X(
|
|
1070
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + X($) + " at index " + x + "."
|
|
1070
1071
|
), o;
|
|
1071
1072
|
}
|
|
1072
1073
|
function _(j, I, U, W, V) {
|
|
1073
|
-
for (var J = [],
|
|
1074
|
-
var se = h[
|
|
1074
|
+
for (var J = [], q = 0; q < h.length; q++) {
|
|
1075
|
+
var se = h[q], M = se(j, I, U, W, V, t);
|
|
1075
1076
|
if (M == null)
|
|
1076
1077
|
return null;
|
|
1077
1078
|
M.data && r(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1078
1079
|
}
|
|
1079
1080
|
var Y = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1080
|
-
return new
|
|
1081
|
+
return new w("Invalid " + W + " `" + V + "` supplied to " + ("`" + U + "`" + Y + "."));
|
|
1081
1082
|
}
|
|
1082
|
-
return
|
|
1083
|
+
return S(_);
|
|
1083
1084
|
}
|
|
1084
1085
|
function R() {
|
|
1085
|
-
function h(x,
|
|
1086
|
-
return N(x[
|
|
1086
|
+
function h(x, $, _, j, I) {
|
|
1087
|
+
return N(x[$]) ? null : new w("Invalid " + j + " `" + I + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
|
|
1087
1088
|
}
|
|
1088
|
-
return
|
|
1089
|
+
return S(h);
|
|
1089
1090
|
}
|
|
1090
|
-
function D(h, x,
|
|
1091
|
-
return new
|
|
1092
|
-
(h || "React class") + ": " + x + " type `" +
|
|
1091
|
+
function D(h, x, $, _, j) {
|
|
1092
|
+
return new w(
|
|
1093
|
+
(h || "React class") + ": " + x + " type `" + $ + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1093
1094
|
);
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
-
function x(
|
|
1097
|
-
var W =
|
|
1096
|
+
function C(h) {
|
|
1097
|
+
function x($, _, j, I, U) {
|
|
1098
|
+
var W = $[_], V = H(W);
|
|
1098
1099
|
if (V !== "object")
|
|
1099
|
-
return new
|
|
1100
|
+
return new w("Invalid " + I + " `" + U + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1100
1101
|
for (var J in h) {
|
|
1101
|
-
var
|
|
1102
|
-
if (typeof
|
|
1103
|
-
return D(j, I, U, J, q
|
|
1104
|
-
var se =
|
|
1102
|
+
var q = h[J];
|
|
1103
|
+
if (typeof q != "function")
|
|
1104
|
+
return D(j, I, U, J, z(q));
|
|
1105
|
+
var se = q(W, J, j, I, U + "." + J, t);
|
|
1105
1106
|
if (se)
|
|
1106
1107
|
return se;
|
|
1107
1108
|
}
|
|
1108
1109
|
return null;
|
|
1109
1110
|
}
|
|
1110
|
-
return
|
|
1111
|
+
return S(x);
|
|
1111
1112
|
}
|
|
1112
1113
|
function P(h) {
|
|
1113
|
-
function x(
|
|
1114
|
-
var W =
|
|
1114
|
+
function x($, _, j, I, U) {
|
|
1115
|
+
var W = $[_], V = H(W);
|
|
1115
1116
|
if (V !== "object")
|
|
1116
|
-
return new
|
|
1117
|
-
var J = e({},
|
|
1118
|
-
for (var
|
|
1119
|
-
var se = h[
|
|
1120
|
-
if (r(h,
|
|
1121
|
-
return D(j, I, U,
|
|
1117
|
+
return new w("Invalid " + I + " `" + U + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1118
|
+
var J = e({}, $[_], h);
|
|
1119
|
+
for (var q in J) {
|
|
1120
|
+
var se = h[q];
|
|
1121
|
+
if (r(h, q) && typeof se != "function")
|
|
1122
|
+
return D(j, I, U, q, z(se));
|
|
1122
1123
|
if (!se)
|
|
1123
|
-
return new
|
|
1124
|
-
"Invalid " + I + " `" + U + "` key `" +
|
|
1124
|
+
return new w(
|
|
1125
|
+
"Invalid " + I + " `" + U + "` key `" + q + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify($[_], null, " ") + `
|
|
1125
1126
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1126
1127
|
);
|
|
1127
|
-
var M = se(W,
|
|
1128
|
+
var M = se(W, q, j, I, U + "." + q, t);
|
|
1128
1129
|
if (M)
|
|
1129
1130
|
return M;
|
|
1130
1131
|
}
|
|
1131
1132
|
return null;
|
|
1132
1133
|
}
|
|
1133
|
-
return
|
|
1134
|
+
return S(x);
|
|
1134
1135
|
}
|
|
1135
1136
|
function N(h) {
|
|
1136
1137
|
switch (typeof h) {
|
|
@@ -1147,13 +1148,13 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1147
1148
|
return !0;
|
|
1148
1149
|
var x = u(h);
|
|
1149
1150
|
if (x) {
|
|
1150
|
-
var
|
|
1151
|
+
var $ = x.call(h), _;
|
|
1151
1152
|
if (x !== h.entries) {
|
|
1152
|
-
for (; !(_ =
|
|
1153
|
+
for (; !(_ = $.next()).done; )
|
|
1153
1154
|
if (!N(_.value))
|
|
1154
1155
|
return !1;
|
|
1155
1156
|
} else
|
|
1156
|
-
for (; !(_ =
|
|
1157
|
+
for (; !(_ = $.next()).done; ) {
|
|
1157
1158
|
var j = _.value;
|
|
1158
1159
|
if (j && !N(j[1]))
|
|
1159
1160
|
return !1;
|
|
@@ -1172,7 +1173,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1172
1173
|
var x = typeof h;
|
|
1173
1174
|
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(x, h) ? "symbol" : x;
|
|
1174
1175
|
}
|
|
1175
|
-
function
|
|
1176
|
+
function z(h) {
|
|
1176
1177
|
if (typeof h > "u" || h === null)
|
|
1177
1178
|
return "" + h;
|
|
1178
1179
|
var x = H(h);
|
|
@@ -1185,7 +1186,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1185
1186
|
return x;
|
|
1186
1187
|
}
|
|
1187
1188
|
function X(h) {
|
|
1188
|
-
var x =
|
|
1189
|
+
var x = z(h);
|
|
1189
1190
|
switch (x) {
|
|
1190
1191
|
case "array":
|
|
1191
1192
|
case "object":
|
|
@@ -1202,13 +1203,13 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1202
1203
|
return !h.constructor || !h.constructor.name ? f : h.constructor.name;
|
|
1203
1204
|
}
|
|
1204
1205
|
return y.checkPropTypes = s, y.resetWarningCache = s.resetWarningCache, y.PropTypes = y, y;
|
|
1205
|
-
},
|
|
1206
|
+
}, St;
|
|
1206
1207
|
}
|
|
1207
1208
|
var Et, tn;
|
|
1208
1209
|
function cr() {
|
|
1209
1210
|
if (tn) return Et;
|
|
1210
1211
|
tn = 1;
|
|
1211
|
-
var n = /* @__PURE__ */
|
|
1212
|
+
var n = /* @__PURE__ */ $t();
|
|
1212
1213
|
function e() {
|
|
1213
1214
|
}
|
|
1214
1215
|
function t() {
|
|
@@ -1254,13 +1255,13 @@ function cr() {
|
|
|
1254
1255
|
}
|
|
1255
1256
|
var nn;
|
|
1256
1257
|
function ur() {
|
|
1257
|
-
if (nn) return
|
|
1258
|
+
if (nn) return ze.exports;
|
|
1258
1259
|
if (nn = 1, process.env.NODE_ENV !== "production") {
|
|
1259
1260
|
var n = Dn(), e = !0;
|
|
1260
|
-
|
|
1261
|
+
ze.exports = /* @__PURE__ */ lr()(n.isElement, e);
|
|
1261
1262
|
} else
|
|
1262
|
-
|
|
1263
|
-
return
|
|
1263
|
+
ze.exports = /* @__PURE__ */ cr()();
|
|
1264
|
+
return ze.exports;
|
|
1264
1265
|
}
|
|
1265
1266
|
var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
1266
1267
|
var t = e?.ownerDocument || document;
|
|
@@ -1273,7 +1274,7 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1273
1274
|
if (e[s] !== t[s])
|
|
1274
1275
|
return !0;
|
|
1275
1276
|
return !1;
|
|
1276
|
-
}, pr = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Xe = "http://www.w3.org/2000/svg", rn = "http://www.w3.org/1999/xlink",
|
|
1277
|
+
}, pr = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Xe = "http://www.w3.org/2000/svg", rn = "http://www.w3.org/1999/xlink", kt = /* @__PURE__ */ function(n) {
|
|
1277
1278
|
function e() {
|
|
1278
1279
|
for (var r, s = arguments.length, a = new Array(s), o = 0; o < s; o++)
|
|
1279
1280
|
a[o] = arguments[o];
|
|
@@ -1284,13 +1285,13 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1284
1285
|
r.reactWrapper = i;
|
|
1285
1286
|
}, r;
|
|
1286
1287
|
}
|
|
1287
|
-
|
|
1288
|
+
Kn(e, n);
|
|
1288
1289
|
var t = e.prototype;
|
|
1289
1290
|
return t.renderSVG = function() {
|
|
1290
1291
|
var s = this;
|
|
1291
1292
|
if (this.reactWrapper instanceof dr(this.reactWrapper).Node) {
|
|
1292
|
-
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, y = this.props.onError, p = this.props.beforeInjection,
|
|
1293
|
-
|
|
1293
|
+
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, f = a.useRequestCache, y = this.props.onError, p = this.props.beforeInjection, w = this.props.afterInjection, S = this.props.wrapper, E, b;
|
|
1294
|
+
S === "svg" ? (E = document.createElementNS(Xe, S), E.setAttribute("xmlns", Xe), E.setAttribute("xmlns:xlink", rn), b = document.createElementNS(Xe, S)) : (E = document.createElement(S), b = document.createElement(S)), E.appendChild(b), b.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1294
1295
|
var T = function(A) {
|
|
1295
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1296
1297
|
y(A);
|
|
@@ -1304,7 +1305,7 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1304
1305
|
}, function() {
|
|
1305
1306
|
y(A);
|
|
1306
1307
|
});
|
|
1307
|
-
}, v = function(A,
|
|
1308
|
+
}, v = function(A, O) {
|
|
1308
1309
|
if (A) {
|
|
1309
1310
|
T(A);
|
|
1310
1311
|
return;
|
|
@@ -1315,15 +1316,15 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1315
1316
|
};
|
|
1316
1317
|
}, function() {
|
|
1317
1318
|
try {
|
|
1318
|
-
|
|
1319
|
+
w(O);
|
|
1319
1320
|
} catch (L) {
|
|
1320
1321
|
T(L);
|
|
1321
1322
|
}
|
|
1322
1323
|
});
|
|
1323
1324
|
}, g = function(A) {
|
|
1324
1325
|
if (A.setAttribute("role", "img"), o) {
|
|
1325
|
-
var
|
|
1326
|
-
|
|
1326
|
+
var O = A.querySelector(":scope > desc");
|
|
1327
|
+
O && A.removeChild(O);
|
|
1327
1328
|
var L = document.createElement("desc");
|
|
1328
1329
|
L.innerHTML = o, A.prepend(L);
|
|
1329
1330
|
}
|
|
@@ -1335,8 +1336,8 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1335
1336
|
}
|
|
1336
1337
|
try {
|
|
1337
1338
|
p(A);
|
|
1338
|
-
} catch (
|
|
1339
|
-
T(
|
|
1339
|
+
} catch (C) {
|
|
1340
|
+
T(C);
|
|
1340
1341
|
}
|
|
1341
1342
|
};
|
|
1342
1343
|
rr(b, {
|
|
@@ -1369,7 +1370,7 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1369
1370
|
s.httpRequestWithCredentials;
|
|
1370
1371
|
var o = s.loading;
|
|
1371
1372
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1372
|
-
var i = s.wrapper, l =
|
|
1373
|
+
var i = s.wrapper, l = qn(s, pr), c = i;
|
|
1373
1374
|
return /* @__PURE__ */ He.createElement(c, st({}, l, {
|
|
1374
1375
|
ref: this.refCallback
|
|
1375
1376
|
}, i === "svg" ? {
|
|
@@ -1378,7 +1379,7 @@ var ie = /* @__PURE__ */ ur(), dr = function(e) {
|
|
|
1378
1379
|
} : {}), this.state.isLoading && o && /* @__PURE__ */ He.createElement(o, null), this.state.hasError && a && /* @__PURE__ */ He.createElement(a, null));
|
|
1379
1380
|
}, e;
|
|
1380
1381
|
}(He.Component);
|
|
1381
|
-
|
|
1382
|
+
kt.defaultProps = {
|
|
1382
1383
|
afterInjection: function() {
|
|
1383
1384
|
},
|
|
1384
1385
|
beforeInjection: function() {
|
|
@@ -1395,7 +1396,7 @@ $t.defaultProps = {
|
|
|
1395
1396
|
useRequestCache: !0,
|
|
1396
1397
|
wrapper: "div"
|
|
1397
1398
|
};
|
|
1398
|
-
|
|
1399
|
+
kt.propTypes = {
|
|
1399
1400
|
afterInjection: ie.func,
|
|
1400
1401
|
beforeInjection: ie.func,
|
|
1401
1402
|
desc: ie.string,
|
|
@@ -1435,16 +1436,16 @@ const ta = (n) => {
|
|
|
1435
1436
|
title: u,
|
|
1436
1437
|
tabIndex: f
|
|
1437
1438
|
}) => {
|
|
1438
|
-
const [y, p] = G(!1),
|
|
1439
|
+
const [y, p] = G(!1), w = (R) => R?.toLowerCase().endsWith(".svg") || !R?.includes("/"), S = (R) => R?.startsWith("http") || R?.startsWith("/"), E = {
|
|
1439
1440
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1440
1441
|
svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
|
|
1441
1442
|
}, b = (R) => {
|
|
1442
1443
|
!a && c && l && l(R);
|
|
1443
1444
|
}, T = (R) => {
|
|
1444
1445
|
!a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), b(R));
|
|
1445
|
-
}, v = y ? r : n, g =
|
|
1446
|
+
}, v = y ? r : n, g = w(v), A = S(v) ? v : hr(`assets/svg/${v}`);
|
|
1446
1447
|
return g ? /* @__PURE__ */ m.jsx(
|
|
1447
|
-
|
|
1448
|
+
kt,
|
|
1448
1449
|
{
|
|
1449
1450
|
src: A,
|
|
1450
1451
|
onError: () => p(!0),
|
|
@@ -1487,7 +1488,7 @@ const ta = (n) => {
|
|
|
1487
1488
|
primary: "onPrimary",
|
|
1488
1489
|
danger: "onDanger",
|
|
1489
1490
|
base: "base"
|
|
1490
|
-
})[n],
|
|
1491
|
+
})[n], we = ({
|
|
1491
1492
|
bindValue: n,
|
|
1492
1493
|
onClick: e,
|
|
1493
1494
|
ariaLabel: t,
|
|
@@ -1503,14 +1504,14 @@ const ta = (n) => {
|
|
|
1503
1504
|
loading: f = !1,
|
|
1504
1505
|
justify: y = "center",
|
|
1505
1506
|
title: p,
|
|
1506
|
-
optionalDisplayValue:
|
|
1507
|
-
squared:
|
|
1507
|
+
optionalDisplayValue: w,
|
|
1508
|
+
squared: S = !1,
|
|
1508
1509
|
submit: E = !1,
|
|
1509
1510
|
active: b = !1,
|
|
1510
1511
|
buttonExt: T
|
|
1511
1512
|
}) => {
|
|
1512
1513
|
const v = {
|
|
1513
|
-
container: `smp-button smp-button-container ${o ? `smp-button-${o}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${y} ${
|
|
1514
|
+
container: `smp-button smp-button-container ${o ? `smp-button-${o}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${y} ${S && !d ? "smp-button-squared" : ""} ${b ? "smp-buttonActive" : ""} ${T ? `smp-buttonExt-${T}` : ""}`
|
|
1514
1515
|
};
|
|
1515
1516
|
return /* @__PURE__ */ m.jsx(
|
|
1516
1517
|
"button",
|
|
@@ -1522,7 +1523,7 @@ const ta = (n) => {
|
|
|
1522
1523
|
"aria-label": t,
|
|
1523
1524
|
disabled: a,
|
|
1524
1525
|
"aria-busy": f,
|
|
1525
|
-
title: p ||
|
|
1526
|
+
title: p || w,
|
|
1526
1527
|
children: f ? /* @__PURE__ */ m.jsx(de, { icon: "spinner", state: an(i), spin: !0 }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1527
1528
|
r && c && /* @__PURE__ */ m.jsx(
|
|
1528
1529
|
de,
|
|
@@ -1535,7 +1536,7 @@ const ta = (n) => {
|
|
|
1535
1536
|
height: sn(o)
|
|
1536
1537
|
}
|
|
1537
1538
|
),
|
|
1538
|
-
d && /* @__PURE__ */ m.jsx("span", { children:
|
|
1539
|
+
d && /* @__PURE__ */ m.jsx("span", { children: w || n })
|
|
1539
1540
|
] })
|
|
1540
1541
|
}
|
|
1541
1542
|
);
|
|
@@ -1589,10 +1590,10 @@ const ta = (n) => {
|
|
|
1589
1590
|
if (ne(() => {
|
|
1590
1591
|
const b = u.current;
|
|
1591
1592
|
if (!b) return;
|
|
1592
|
-
|
|
1593
|
-
const T = () =>
|
|
1594
|
-
return b.addEventListener("scroll", T), window.addEventListener("resize",
|
|
1595
|
-
b.removeEventListener("scroll", T), window.removeEventListener("resize",
|
|
1593
|
+
w();
|
|
1594
|
+
const T = () => w();
|
|
1595
|
+
return b.addEventListener("scroll", T), window.addEventListener("resize", w), () => {
|
|
1596
|
+
b.removeEventListener("scroll", T), window.removeEventListener("resize", w);
|
|
1596
1597
|
};
|
|
1597
1598
|
}, []), ne(() => {
|
|
1598
1599
|
r !== void 0 && o(r);
|
|
@@ -1606,12 +1607,12 @@ const ta = (n) => {
|
|
|
1606
1607
|
scrollButtonRight: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonRight"]}`,
|
|
1607
1608
|
scrollButtonLeft: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1608
1609
|
active: be["smp-active"]
|
|
1609
|
-
}, y = 100, p = 2,
|
|
1610
|
+
}, y = 100, p = 2, w = () => {
|
|
1610
1611
|
const b = u.current;
|
|
1611
1612
|
b && (l(b.scrollLeft > 0), d(
|
|
1612
1613
|
b.scrollLeft + b.clientWidth < b.scrollWidth - p
|
|
1613
1614
|
));
|
|
1614
|
-
},
|
|
1615
|
+
}, S = () => {
|
|
1615
1616
|
u.current?.scrollBy({ left: -y, behavior: "smooth" });
|
|
1616
1617
|
}, E = () => {
|
|
1617
1618
|
u.current?.scrollBy({ left: y, behavior: "smooth" });
|
|
@@ -1624,11 +1625,11 @@ const ta = (n) => {
|
|
|
1624
1625
|
"data-component": "tab-bar",
|
|
1625
1626
|
children: [
|
|
1626
1627
|
i && /* @__PURE__ */ m.jsx("div", { className: f.scrollButtonLeft, children: /* @__PURE__ */ m.jsx(
|
|
1627
|
-
|
|
1628
|
+
we,
|
|
1628
1629
|
{
|
|
1629
1630
|
bindValue: "",
|
|
1630
1631
|
optionalDisplayValue: "<",
|
|
1631
|
-
onClick:
|
|
1632
|
+
onClick: S,
|
|
1632
1633
|
variant: "base",
|
|
1633
1634
|
sizing: e
|
|
1634
1635
|
}
|
|
@@ -1674,7 +1675,7 @@ const ta = (n) => {
|
|
|
1674
1675
|
T
|
|
1675
1676
|
)) }) }),
|
|
1676
1677
|
c && /* @__PURE__ */ m.jsx("div", { className: f.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
|
|
1677
|
-
|
|
1678
|
+
we,
|
|
1678
1679
|
{
|
|
1679
1680
|
bindValue: "",
|
|
1680
1681
|
optionalDisplayValue: ">",
|
|
@@ -1712,29 +1713,32 @@ const ta = (n) => {
|
|
|
1712
1713
|
const a = "--smp-grid-template-cols", o = "--smp-grid-template-rows", i = On(
|
|
1713
1714
|
e.sections ?? [],
|
|
1714
1715
|
Object.keys(s)
|
|
1715
|
-
), l = (p) => p.reduce((
|
|
1716
|
+
), l = (p) => p.reduce((w, S) => {
|
|
1716
1717
|
let E = "", b = {}, T = {}, v = "";
|
|
1717
|
-
return
|
|
1718
|
-
|
|
1719
|
-
|
|
1718
|
+
return S.sections?.length ? (E = pe["smp-layout-section-grid"], b = l(S.sections), S.gridCols === void 0 && (v = pe[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], S.horizontal || Ut(S.sections) ? T = Vt(
|
|
1719
|
+
S.sections,
|
|
1720
|
+
S.horizontal ? a : o
|
|
1720
1721
|
) : T = {
|
|
1721
1722
|
[a]: "auto",
|
|
1722
1723
|
[o]: "auto"
|
|
1723
|
-
})) :
|
|
1724
|
-
[a]: `repeat(${
|
|
1725
|
-
}) : E =
|
|
1726
|
-
...
|
|
1724
|
+
})) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = pe["smp-layout-section-grid"], v = pe["smp-grid-template-cols"], T = {
|
|
1725
|
+
[a]: `repeat(${S.gridCols}, 1fr)`
|
|
1726
|
+
}) : E = pe["smp-layout-section-flex"]), {
|
|
1727
|
+
...w,
|
|
1727
1728
|
...b,
|
|
1728
|
-
[
|
|
1729
|
-
classes: `${E} ${
|
|
1729
|
+
[S.id]: {
|
|
1730
|
+
classes: `${E} ${pe[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${v} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
|
|
1730
1731
|
styles: T
|
|
1731
1732
|
}
|
|
1732
1733
|
};
|
|
1733
|
-
}, {}), c = l(i), d = `${
|
|
1734
|
+
}, {}), c = l(i), d = `${pe["smp-layout"]} ${e.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]} ${e.inline ? pe["smp-layout-inline"] : ""}`;
|
|
1735
|
+
let u = {};
|
|
1736
|
+
(e.horizontal || Ut(e.sections || [])) && (u = Vt(
|
|
1734
1737
|
i,
|
|
1735
1738
|
e.horizontal ? a : o
|
|
1736
|
-
)
|
|
1737
|
-
|
|
1739
|
+
));
|
|
1740
|
+
const f = (p, w) => {
|
|
1741
|
+
const S = /* @__PURE__ */ m.jsx(
|
|
1738
1742
|
"div",
|
|
1739
1743
|
{
|
|
1740
1744
|
"smp-id": `section-${p.id}`,
|
|
@@ -1746,30 +1750,30 @@ const ta = (n) => {
|
|
|
1746
1750
|
},
|
|
1747
1751
|
`section-${p.id}`
|
|
1748
1752
|
);
|
|
1749
|
-
return p.title && !
|
|
1753
|
+
return p.title && !w ? /* @__PURE__ */ m.jsxs(
|
|
1750
1754
|
"div",
|
|
1751
1755
|
{
|
|
1752
|
-
className:
|
|
1756
|
+
className: pe["smp-layout-section-with-title"],
|
|
1753
1757
|
children: [
|
|
1754
1758
|
/* @__PURE__ */ m.jsx(
|
|
1755
1759
|
"span",
|
|
1756
1760
|
{
|
|
1757
|
-
className: `${
|
|
1761
|
+
className: `${pe["smp-layout-section-title"]} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
1758
1762
|
children: /* @__PURE__ */ m.jsx(De, { label: p.title })
|
|
1759
1763
|
}
|
|
1760
1764
|
),
|
|
1761
|
-
|
|
1765
|
+
S
|
|
1762
1766
|
]
|
|
1763
1767
|
},
|
|
1764
1768
|
`title-section-${p.id}`
|
|
1765
|
-
) :
|
|
1766
|
-
}, y = (p,
|
|
1769
|
+
) : S;
|
|
1770
|
+
}, y = (p, w, S) => {
|
|
1767
1771
|
const E = s[p.id];
|
|
1768
1772
|
if (!E) return null;
|
|
1769
1773
|
const T = {
|
|
1770
1774
|
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1771
1775
|
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
1772
|
-
}, v = `${
|
|
1776
|
+
}, v = `${pe["smp-layout-cell-container"]} ${w ? `smp-justifyContent-${w}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
|
|
1773
1777
|
return /* @__PURE__ */ m.jsx(
|
|
1774
1778
|
"div",
|
|
1775
1779
|
{
|
|
@@ -1901,7 +1905,7 @@ function Lt(n) {
|
|
|
1901
1905
|
function Ze(n) {
|
|
1902
1906
|
return n instanceof Date && !isNaN(n.getTime());
|
|
1903
1907
|
}
|
|
1904
|
-
function
|
|
1908
|
+
function wr(n) {
|
|
1905
1909
|
if (!/^\d{8}$/.test(n)) return !1;
|
|
1906
1910
|
const e = parseInt(n.slice(0, 4), 10), t = parseInt(n.slice(4, 6), 10), r = parseInt(n.slice(6, 8), 10);
|
|
1907
1911
|
return _t(r, t - 1, e);
|
|
@@ -1910,7 +1914,7 @@ function _t(n, e, t) {
|
|
|
1910
1914
|
const r = [
|
|
1911
1915
|
31,
|
|
1912
1916
|
// January
|
|
1913
|
-
|
|
1917
|
+
Sr(t) ? 29 : 28,
|
|
1914
1918
|
// February
|
|
1915
1919
|
31,
|
|
1916
1920
|
// March
|
|
@@ -1935,7 +1939,7 @@ function _t(n, e, t) {
|
|
|
1935
1939
|
];
|
|
1936
1940
|
return !(e < 0 || e > 11 || n < 1 || n > r[e]);
|
|
1937
1941
|
}
|
|
1938
|
-
function
|
|
1942
|
+
function Sr(n) {
|
|
1939
1943
|
return n % 4 === 0 && (n % 100 !== 0 || n % 400 === 0);
|
|
1940
1944
|
}
|
|
1941
1945
|
function Er(n) {
|
|
@@ -1971,7 +1975,7 @@ const on = /* @__PURE__ */ new Map([
|
|
|
1971
1975
|
"D8*YYMD",
|
|
1972
1976
|
{
|
|
1973
1977
|
legacyToIso(n) {
|
|
1974
|
-
return
|
|
1978
|
+
return wr(n) && `${n.substring(0, 4)}-${n.substring(4, 6)}-${n.substring(6, 8)}` || n;
|
|
1975
1979
|
},
|
|
1976
1980
|
isoToLegacy(n) {
|
|
1977
1981
|
return Lt(n) && n.replaceAll("-", "") || n;
|
|
@@ -1993,9 +1997,9 @@ function ft({
|
|
|
1993
1997
|
requestAnimationFrame(o);
|
|
1994
1998
|
return;
|
|
1995
1999
|
}
|
|
1996
|
-
const
|
|
1997
|
-
let T = c +
|
|
1998
|
-
const
|
|
2000
|
+
const w = window.scrollY, S = window.scrollX, E = window.innerWidth, b = window.innerHeight;
|
|
2001
|
+
let T = c + w, v = d + S, g = n;
|
|
2002
|
+
const k = {
|
|
1999
2003
|
top: c - y < 0,
|
|
2000
2004
|
bottom: c + f + y > b,
|
|
2001
2005
|
left: d - p < 0,
|
|
@@ -2003,38 +2007,38 @@ function ft({
|
|
|
2003
2007
|
};
|
|
2004
2008
|
switch (n) {
|
|
2005
2009
|
case "top":
|
|
2006
|
-
|
|
2010
|
+
k.top && !k.bottom && (g = "bottom");
|
|
2007
2011
|
break;
|
|
2008
2012
|
case "bottom":
|
|
2009
|
-
|
|
2013
|
+
k.bottom && !k.top && (g = "top");
|
|
2010
2014
|
break;
|
|
2011
2015
|
case "left":
|
|
2012
|
-
|
|
2016
|
+
k.left && !k.right && (g = "right");
|
|
2013
2017
|
break;
|
|
2014
2018
|
case "right":
|
|
2015
|
-
|
|
2019
|
+
k.right && !k.left && (g = "left");
|
|
2016
2020
|
break;
|
|
2017
2021
|
}
|
|
2018
2022
|
switch (g) {
|
|
2019
2023
|
case "top":
|
|
2020
|
-
T = c +
|
|
2024
|
+
T = c + w - y;
|
|
2021
2025
|
break;
|
|
2022
2026
|
case "bottom":
|
|
2023
|
-
T = c +
|
|
2027
|
+
T = c + w + f;
|
|
2024
2028
|
break;
|
|
2025
2029
|
case "left":
|
|
2026
|
-
v = d +
|
|
2030
|
+
v = d + S - p;
|
|
2027
2031
|
break;
|
|
2028
2032
|
case "right":
|
|
2029
|
-
v = d +
|
|
2033
|
+
v = d + S + u;
|
|
2030
2034
|
break;
|
|
2031
2035
|
}
|
|
2032
2036
|
T = Math.max(
|
|
2033
|
-
S,
|
|
2034
|
-
Math.min(T, S + b - y)
|
|
2035
|
-
), v = Math.max(
|
|
2036
2037
|
w,
|
|
2037
|
-
Math.min(
|
|
2038
|
+
Math.min(T, w + b - y)
|
|
2039
|
+
), v = Math.max(
|
|
2040
|
+
S,
|
|
2041
|
+
Math.min(v, S + E - p)
|
|
2038
2042
|
), requestAnimationFrame(() => {
|
|
2039
2043
|
l.style.transform = `translate(${v}px, ${T}px)`, l.style.opacity = "1";
|
|
2040
2044
|
});
|
|
@@ -2068,7 +2072,7 @@ const _e = (n, e, t) => {
|
|
|
2068
2072
|
return `${n} - ${e}`;
|
|
2069
2073
|
}
|
|
2070
2074
|
return n;
|
|
2071
|
-
},
|
|
2075
|
+
}, $n = ({
|
|
2072
2076
|
helperText: n,
|
|
2073
2077
|
disabled: e,
|
|
2074
2078
|
state: t,
|
|
@@ -2110,27 +2114,27 @@ const _e = (n, e, t) => {
|
|
|
2110
2114
|
inputRef: f,
|
|
2111
2115
|
inputType: y = "text",
|
|
2112
2116
|
ariaLabel: p = "input field",
|
|
2113
|
-
label:
|
|
2114
|
-
helperText:
|
|
2117
|
+
label: w,
|
|
2118
|
+
helperText: S = !1,
|
|
2115
2119
|
error: E,
|
|
2116
2120
|
appearance: b = "base",
|
|
2117
2121
|
fullWidth: T = !1,
|
|
2118
2122
|
_dataComponent: v = "textfield",
|
|
2119
2123
|
min: g,
|
|
2120
|
-
max:
|
|
2124
|
+
max: k,
|
|
2121
2125
|
step: A,
|
|
2122
|
-
inputMode:
|
|
2126
|
+
inputMode: O = "text",
|
|
2123
2127
|
width: L,
|
|
2124
2128
|
autocomplete: R,
|
|
2125
2129
|
size: D,
|
|
2126
|
-
maxLength:
|
|
2130
|
+
maxLength: C,
|
|
2127
2131
|
onBlur: P,
|
|
2128
2132
|
onChange: N,
|
|
2129
2133
|
onKeyDown: B,
|
|
2130
2134
|
onShapeIconClick: H,
|
|
2131
|
-
onClick:
|
|
2135
|
+
onClick: z
|
|
2132
2136
|
}) => {
|
|
2133
|
-
const X = Ce(), F = `${X}-helper`, h = E ? "danger" : i, x =
|
|
2137
|
+
const X = Ce(), F = `${X}-helper`, h = E ? "danger" : i, x = S || !!E, $ = (I) => {
|
|
2134
2138
|
N?.(I.target.value);
|
|
2135
2139
|
}, _ = {
|
|
2136
2140
|
wrapper: `${me["smp-textfield-wrapper"]} ${T ? me["smp-textfield-fullWidth"] : ""}`,
|
|
@@ -2143,7 +2147,7 @@ const _e = (n, e, t) => {
|
|
|
2143
2147
|
}
|
|
2144
2148
|
const j = L ? { "--smp-textField-width-base": L } : void 0;
|
|
2145
2149
|
return /* @__PURE__ */ m.jsxs("div", { className: _.wrapper, "data-component": v, children: [
|
|
2146
|
-
|
|
2150
|
+
w && /* @__PURE__ */ m.jsx(De, { label: w, disabled: n, htmlFor: X }),
|
|
2147
2151
|
/* @__PURE__ */ m.jsxs(
|
|
2148
2152
|
"div",
|
|
2149
2153
|
{
|
|
@@ -2159,7 +2163,7 @@ const _e = (n, e, t) => {
|
|
|
2159
2163
|
type: y,
|
|
2160
2164
|
value: e,
|
|
2161
2165
|
placeholder: r,
|
|
2162
|
-
onChange:
|
|
2166
|
+
onChange: $,
|
|
2163
2167
|
onBlur: P,
|
|
2164
2168
|
className: _.input,
|
|
2165
2169
|
disabled: n,
|
|
@@ -2169,13 +2173,13 @@ const _e = (n, e, t) => {
|
|
|
2169
2173
|
ref: f,
|
|
2170
2174
|
"aria-describedby": x ? F : void 0,
|
|
2171
2175
|
min: g,
|
|
2172
|
-
max:
|
|
2176
|
+
max: k,
|
|
2173
2177
|
step: A,
|
|
2174
|
-
inputMode:
|
|
2178
|
+
inputMode: O,
|
|
2175
2179
|
autoComplete: R,
|
|
2176
2180
|
size: D,
|
|
2177
|
-
maxLength:
|
|
2178
|
-
onClick:
|
|
2181
|
+
maxLength: C,
|
|
2182
|
+
onClick: z
|
|
2179
2183
|
}
|
|
2180
2184
|
),
|
|
2181
2185
|
a && /* @__PURE__ */ m.jsx(
|
|
@@ -2193,7 +2197,7 @@ const _e = (n, e, t) => {
|
|
|
2193
2197
|
}
|
|
2194
2198
|
),
|
|
2195
2199
|
x && /* @__PURE__ */ m.jsx(
|
|
2196
|
-
|
|
2200
|
+
$n,
|
|
2197
2201
|
{
|
|
2198
2202
|
helperText: E,
|
|
2199
2203
|
disabled: n,
|
|
@@ -2203,7 +2207,7 @@ const _e = (n, e, t) => {
|
|
|
2203
2207
|
)
|
|
2204
2208
|
] });
|
|
2205
2209
|
};
|
|
2206
|
-
function
|
|
2210
|
+
function kn({
|
|
2207
2211
|
items: n,
|
|
2208
2212
|
itemHeight: e,
|
|
2209
2213
|
containerHeight: t,
|
|
@@ -2224,8 +2228,8 @@ function $n({
|
|
|
2224
2228
|
a(p);
|
|
2225
2229
|
}, []), f = (y) => {
|
|
2226
2230
|
if (!o.current) return;
|
|
2227
|
-
const p = y * e,
|
|
2228
|
-
p < E ?
|
|
2231
|
+
const p = y * e, w = p + e, S = o.current, E = S.scrollTop, b = E + t;
|
|
2232
|
+
p < E ? S.scrollTop = p : w > b && (S.scrollTop = w - t);
|
|
2229
2233
|
};
|
|
2230
2234
|
return {
|
|
2231
2235
|
virtualItems: d,
|
|
@@ -2287,20 +2291,20 @@ const Cr = 10, Ln = ({
|
|
|
2287
2291
|
onKeyDown: c,
|
|
2288
2292
|
isOpen: d
|
|
2289
2293
|
}) => {
|
|
2290
|
-
const [u, f] = G(""), y = 40, [p,
|
|
2294
|
+
const [u, f] = G(""), y = 40, [p, w] = G(
|
|
2291
2295
|
a !== null ? a : -1
|
|
2292
|
-
), [
|
|
2296
|
+
), [S, E] = G(i || 200), b = le(null), T = s !== void 0 ? s : e.length > Cr, v = u ? e.filter(
|
|
2293
2297
|
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
2294
2298
|
) : e, g = (N) => {
|
|
2295
2299
|
f(N);
|
|
2296
|
-
}, { virtualItems:
|
|
2300
|
+
}, { virtualItems: k, containerProps: A, innerProps: O, scrollToIndex: L } = kn({
|
|
2297
2301
|
items: v,
|
|
2298
2302
|
itemHeight: y,
|
|
2299
2303
|
containerHeight: 200,
|
|
2300
2304
|
overscan: 5
|
|
2301
2305
|
});
|
|
2302
2306
|
ne(() => {
|
|
2303
|
-
a !== null && a !== p &&
|
|
2307
|
+
a !== null && a !== p && w(a);
|
|
2304
2308
|
}, [a]), ne(() => {
|
|
2305
2309
|
p >= 0 && p < v.length && L(p);
|
|
2306
2310
|
}, [p, v]), ne(() => {
|
|
@@ -2313,12 +2317,12 @@ const Cr = 10, Ln = ({
|
|
|
2313
2317
|
if (N.key === "ArrowDown" || N.key === "ArrowUp") {
|
|
2314
2318
|
N.preventDefault();
|
|
2315
2319
|
let B = p;
|
|
2316
|
-
N.key === "ArrowDown" ? B = p < v.length - 1 ? p + 1 : 0 : N.key === "ArrowUp" && (B = p > 0 ? p - 1 : v.length - 1),
|
|
2320
|
+
N.key === "ArrowDown" ? B = p < v.length - 1 ? p + 1 : 0 : N.key === "ArrowUp" && (B = p > 0 ? p - 1 : v.length - 1), w(B);
|
|
2317
2321
|
} else N.key === "Enter" ? p >= 0 && p < v.length && l?.(v[p]) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
2318
2322
|
c && c(N);
|
|
2319
2323
|
}, D = (N) => {
|
|
2320
2324
|
R(N);
|
|
2321
|
-
},
|
|
2325
|
+
}, C = (N) => {
|
|
2322
2326
|
R(N);
|
|
2323
2327
|
}, P = {
|
|
2324
2328
|
wrapper: `${Qe["smp-list"]}`,
|
|
@@ -2334,7 +2338,7 @@ const Cr = 10, Ln = ({
|
|
|
2334
2338
|
className: P.wrapper,
|
|
2335
2339
|
"data-component": "list",
|
|
2336
2340
|
style: {
|
|
2337
|
-
width:
|
|
2341
|
+
width: S,
|
|
2338
2342
|
minWidth: i
|
|
2339
2343
|
},
|
|
2340
2344
|
children: [
|
|
@@ -2357,10 +2361,10 @@ const Cr = 10, Ln = ({
|
|
|
2357
2361
|
tabIndex: 0,
|
|
2358
2362
|
role: "listbox",
|
|
2359
2363
|
"aria-label": "List",
|
|
2360
|
-
onKeyDown:
|
|
2364
|
+
onKeyDown: C,
|
|
2361
2365
|
"aria-activedescendant": p >= 0 && p < v.length ? v[p]?.id : void 0,
|
|
2362
|
-
children: /* @__PURE__ */ m.jsx("div", { ...
|
|
2363
|
-
const
|
|
2366
|
+
children: /* @__PURE__ */ m.jsx("div", { ...O, className: P.virtualScroll, children: k.map(({ item: N, index: B, offsetTop: H }) => {
|
|
2367
|
+
const z = o.includes(N.id);
|
|
2364
2368
|
return (
|
|
2365
2369
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2366
2370
|
/* @__PURE__ */ m.jsxs(
|
|
@@ -2379,11 +2383,11 @@ const Cr = 10, Ln = ({
|
|
|
2379
2383
|
transform: `translateY(${H}px)`
|
|
2380
2384
|
},
|
|
2381
2385
|
onClick: () => {
|
|
2382
|
-
l?.(N),
|
|
2386
|
+
l?.(N), w(B);
|
|
2383
2387
|
},
|
|
2384
2388
|
children: [
|
|
2385
2389
|
_e(N.id, N.label, t),
|
|
2386
|
-
|
|
2390
|
+
z && /* @__PURE__ */ m.jsx(de, { icon: "check", width: 16 })
|
|
2387
2391
|
]
|
|
2388
2392
|
},
|
|
2389
2393
|
N.id
|
|
@@ -2444,7 +2448,7 @@ const ht = (n, e, t) => {
|
|
|
2444
2448
|
document.removeEventListener("mousedown", r);
|
|
2445
2449
|
};
|
|
2446
2450
|
}, [n, t, e]);
|
|
2447
|
-
},
|
|
2451
|
+
}, K = (n) => typeof n == "string", Ue = () => {
|
|
2448
2452
|
let n, e;
|
|
2449
2453
|
const t = new Promise((r, s) => {
|
|
2450
2454
|
n = r, e = s;
|
|
@@ -2454,8 +2458,8 @@ const ht = (n, e, t) => {
|
|
|
2454
2458
|
n.forEach((r) => {
|
|
2455
2459
|
e[r] && (t[r] = e[r]);
|
|
2456
2460
|
});
|
|
2457
|
-
}, Rr = /###/g, cn = (n) => n && n.indexOf("###") > -1 ? n.replace(Rr, ".") : n, un = (n) => !n ||
|
|
2458
|
-
const r =
|
|
2461
|
+
}, Rr = /###/g, cn = (n) => n && n.indexOf("###") > -1 ? n.replace(Rr, ".") : n, un = (n) => !n || K(n), We = (n, e, t) => {
|
|
2462
|
+
const r = K(e) ? e.split(".") : e;
|
|
2459
2463
|
let s = 0;
|
|
2460
2464
|
for (; s < r.length - 1; ) {
|
|
2461
2465
|
if (un(n)) return {};
|
|
@@ -2497,10 +2501,10 @@ const ht = (n, e, t) => {
|
|
|
2497
2501
|
return r !== void 0 ? r : lt(e, t);
|
|
2498
2502
|
}, An = (n, e, t) => {
|
|
2499
2503
|
for (const r in e)
|
|
2500
|
-
r !== "__proto__" && r !== "constructor" && (r in n ?
|
|
2504
|
+
r !== "__proto__" && r !== "constructor" && (r in n ? K(n[r]) || n[r] instanceof String || K(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : An(n[r], e[r], t) : n[r] = e[r]);
|
|
2501
2505
|
return n;
|
|
2502
2506
|
}, Ae = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2503
|
-
var
|
|
2507
|
+
var $r = {
|
|
2504
2508
|
"&": "&",
|
|
2505
2509
|
"<": "<",
|
|
2506
2510
|
">": ">",
|
|
@@ -2508,7 +2512,7 @@ var kr = {
|
|
|
2508
2512
|
"'": "'",
|
|
2509
2513
|
"/": "/"
|
|
2510
2514
|
};
|
|
2511
|
-
const
|
|
2515
|
+
const kr = (n) => K(n) ? n.replace(/[&<>"'\/]/g, (e) => $r[e]) : n;
|
|
2512
2516
|
class Lr {
|
|
2513
2517
|
constructor(e) {
|
|
2514
2518
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -2587,7 +2591,7 @@ class ct {
|
|
|
2587
2591
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
2588
2592
|
}
|
|
2589
2593
|
forward(e, t, r, s) {
|
|
2590
|
-
return s && !this.debug ? null : (
|
|
2594
|
+
return s && !this.debug ? null : (K(e[0]) && (e[0] = `${r}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2591
2595
|
}
|
|
2592
2596
|
create(e) {
|
|
2593
2597
|
return new ct(this.logger, {
|
|
@@ -2647,9 +2651,9 @@ class fn extends mt {
|
|
|
2647
2651
|
getResource(e, t, r, s = {}) {
|
|
2648
2652
|
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, o = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2649
2653
|
let i;
|
|
2650
|
-
e.indexOf(".") > -1 ? i = e.split(".") : (i = [e, t], r && (Array.isArray(r) ? i.push(...r) :
|
|
2654
|
+
e.indexOf(".") > -1 ? i = e.split(".") : (i = [e, t], r && (Array.isArray(r) ? i.push(...r) : K(r) && a ? i.push(...r.split(a)) : i.push(r)));
|
|
2651
2655
|
const l = lt(this.data, i);
|
|
2652
|
-
return !l && !t && !r && e.indexOf(".") > -1 && (e = i[0], t = i[1], r = i.slice(2).join(".")), l || !o || !
|
|
2656
|
+
return !l && !t && !r && e.indexOf(".") > -1 && (e = i[0], t = i[1], r = i.slice(2).join(".")), l || !o || !K(r) ? l : Rt(this.data?.[e]?.[t], r, a);
|
|
2653
2657
|
}
|
|
2654
2658
|
addResource(e, t, r, s, a = {
|
|
2655
2659
|
silent: !1
|
|
@@ -2662,7 +2666,7 @@ class fn extends mt {
|
|
|
2662
2666
|
silent: !1
|
|
2663
2667
|
}) {
|
|
2664
2668
|
for (const a in r)
|
|
2665
|
-
(
|
|
2669
|
+
(K(r[a]) || Array.isArray(r[a])) && this.addResource(e, t, a, r[a], {
|
|
2666
2670
|
silent: !0
|
|
2667
2671
|
});
|
|
2668
2672
|
s.silent || this.emit("added", e, t, r);
|
|
@@ -2710,7 +2714,7 @@ var Pn = {
|
|
|
2710
2714
|
}), e;
|
|
2711
2715
|
}
|
|
2712
2716
|
};
|
|
2713
|
-
const pn = {}, hn = (n) => !
|
|
2717
|
+
const pn = {}, hn = (n) => !K(n) && typeof n != "boolean" && typeof n != "number";
|
|
2714
2718
|
class ut extends mt {
|
|
2715
2719
|
constructor(e, t = {}) {
|
|
2716
2720
|
super(), _r(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = ve.create("translator");
|
|
@@ -2737,14 +2741,14 @@ class ut extends mt {
|
|
|
2737
2741
|
if (l && l.length > 0)
|
|
2738
2742
|
return {
|
|
2739
2743
|
key: e,
|
|
2740
|
-
namespaces:
|
|
2744
|
+
namespaces: K(a) ? [a] : a
|
|
2741
2745
|
};
|
|
2742
2746
|
const c = e.split(r);
|
|
2743
2747
|
(r !== s || r === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
|
|
2744
2748
|
}
|
|
2745
2749
|
return {
|
|
2746
2750
|
key: e,
|
|
2747
|
-
namespaces:
|
|
2751
|
+
namespaces: K(a) ? [a] : a
|
|
2748
2752
|
};
|
|
2749
2753
|
}
|
|
2750
2754
|
translate(e, t, r) {
|
|
@@ -2780,47 +2784,47 @@ class ut extends mt {
|
|
|
2780
2784
|
} : i;
|
|
2781
2785
|
const y = this.resolve(e, s);
|
|
2782
2786
|
let p = y?.res;
|
|
2783
|
-
const
|
|
2787
|
+
const w = y?.usedKey || i, S = y?.exactUsedKey || i, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, v = s.count !== void 0 && !K(s.count), g = ut.hasDefaultValue(s), k = v ? this.pluralResolver.getSuffix(u, s.count, s) : "", A = s.ordinal && v ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2784
2788
|
ordinal: !1
|
|
2785
|
-
}) : "",
|
|
2789
|
+
}) : "", O = v && !s.ordinal && s.count === 0, L = O && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${k}`] || s[`defaultValue${A}`] || s.defaultValue;
|
|
2786
2790
|
let R = p;
|
|
2787
2791
|
T && !p && g && (R = L);
|
|
2788
|
-
const D = hn(R),
|
|
2789
|
-
if (T && R && D && E.indexOf(
|
|
2792
|
+
const D = hn(R), C = Object.prototype.toString.apply(R);
|
|
2793
|
+
if (T && R && D && E.indexOf(C) < 0 && !(K(b) && Array.isArray(R))) {
|
|
2790
2794
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2791
2795
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2792
|
-
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(
|
|
2796
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(w, R, {
|
|
2793
2797
|
...s,
|
|
2794
2798
|
ns: l
|
|
2795
2799
|
}) : `key '${i} (${this.language})' returned an object instead of string.`;
|
|
2796
2800
|
return a ? (y.res = P, y.usedParams = this.getUsedParamsDetails(s), y) : P;
|
|
2797
2801
|
}
|
|
2798
2802
|
if (o) {
|
|
2799
|
-
const P = Array.isArray(R), N = P ? [] : {}, B = P ?
|
|
2803
|
+
const P = Array.isArray(R), N = P ? [] : {}, B = P ? S : w;
|
|
2800
2804
|
for (const H in R)
|
|
2801
2805
|
if (Object.prototype.hasOwnProperty.call(R, H)) {
|
|
2802
|
-
const
|
|
2803
|
-
g && !p ? N[H] = this.translate(
|
|
2806
|
+
const z = `${B}${o}${H}`;
|
|
2807
|
+
g && !p ? N[H] = this.translate(z, {
|
|
2804
2808
|
...s,
|
|
2805
2809
|
defaultValue: hn(L) ? L[H] : void 0,
|
|
2806
2810
|
joinArrays: !1,
|
|
2807
2811
|
ns: l
|
|
2808
|
-
}) : N[H] = this.translate(
|
|
2812
|
+
}) : N[H] = this.translate(z, {
|
|
2809
2813
|
...s,
|
|
2810
2814
|
joinArrays: !1,
|
|
2811
2815
|
ns: l
|
|
2812
|
-
}), N[H] ===
|
|
2816
|
+
}), N[H] === z && (N[H] = R[H]);
|
|
2813
2817
|
}
|
|
2814
2818
|
p = N;
|
|
2815
2819
|
}
|
|
2816
|
-
} else if (T &&
|
|
2820
|
+
} else if (T && K(b) && Array.isArray(p))
|
|
2817
2821
|
p = p.join(b), p && (p = this.extendTranslation(p, e, s, r));
|
|
2818
2822
|
else {
|
|
2819
2823
|
let P = !1, N = !1;
|
|
2820
2824
|
!this.isValidLookup(p) && g && (P = !0, p = L), this.isValidLookup(p) || (N = !0, p = i);
|
|
2821
|
-
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p,
|
|
2822
|
-
if (N || P ||
|
|
2823
|
-
if (this.logger.log(
|
|
2825
|
+
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : p, z = g && L !== p && this.options.updateMissing;
|
|
2826
|
+
if (N || P || z) {
|
|
2827
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, i, z ? L : p), o) {
|
|
2824
2828
|
const x = this.resolve(i, {
|
|
2825
2829
|
...s,
|
|
2826
2830
|
keySeparator: !1
|
|
@@ -2833,13 +2837,13 @@ class ut extends mt {
|
|
|
2833
2837
|
for (let x = 0; x < F.length; x++)
|
|
2834
2838
|
X.push(F[x]);
|
|
2835
2839
|
else this.options.saveMissingTo === "all" ? X = this.languageUtils.toResolveHierarchy(s.lng || this.language) : X.push(s.lng || this.language);
|
|
2836
|
-
const h = (x,
|
|
2840
|
+
const h = (x, $, _) => {
|
|
2837
2841
|
const j = g && _ !== p ? _ : H;
|
|
2838
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c,
|
|
2842
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, $, j, z, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(x, c, $, j, z, s), this.emit("missingKey", x, c, $, p);
|
|
2839
2843
|
};
|
|
2840
2844
|
this.options.saveMissing && (this.options.saveMissingPlurals && v ? X.forEach((x) => {
|
|
2841
|
-
const
|
|
2842
|
-
|
|
2845
|
+
const $ = this.pluralResolver.getSuffixes(x, s);
|
|
2846
|
+
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((_) => {
|
|
2843
2847
|
h([x], i + _, s[`defaultValue${_}`] || L);
|
|
2844
2848
|
});
|
|
2845
2849
|
}) : h(X, i, L));
|
|
@@ -2864,13 +2868,13 @@ class ut extends mt {
|
|
|
2864
2868
|
...r.interpolation
|
|
2865
2869
|
}
|
|
2866
2870
|
});
|
|
2867
|
-
const l =
|
|
2871
|
+
const l = K(e) && (r?.interpolation?.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2868
2872
|
let c;
|
|
2869
2873
|
if (l) {
|
|
2870
2874
|
const u = e.match(this.interpolator.nestingRegexp);
|
|
2871
2875
|
c = u && u.length;
|
|
2872
2876
|
}
|
|
2873
|
-
let d = r.replace && !
|
|
2877
|
+
let d = r.replace && !K(r.replace) ? r.replace : r;
|
|
2874
2878
|
if (this.options.interpolation.defaultVariables && (d = {
|
|
2875
2879
|
...this.options.interpolation.defaultVariables,
|
|
2876
2880
|
...d
|
|
@@ -2880,7 +2884,7 @@ class ut extends mt {
|
|
|
2880
2884
|
}
|
|
2881
2885
|
!r.lng && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...u) => a?.[0] === u[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${t[0]}`), null) : this.translate(...u, t), r)), r.interpolation && this.interpolator.reset();
|
|
2882
2886
|
}
|
|
2883
|
-
const o = r.postProcess || this.options.postProcess, i =
|
|
2887
|
+
const o = r.postProcess || this.options.postProcess, i = K(o) ? [o] : o;
|
|
2884
2888
|
return e != null && i?.length && r.applyPostProcessor !== !1 && (e = Pn.handle(i, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2885
2889
|
i18nResolved: {
|
|
2886
2890
|
...s,
|
|
@@ -2891,32 +2895,32 @@ class ut extends mt {
|
|
|
2891
2895
|
}
|
|
2892
2896
|
resolve(e, t = {}) {
|
|
2893
2897
|
let r, s, a, o, i;
|
|
2894
|
-
return
|
|
2898
|
+
return K(e) && (e = [e]), e.forEach((l) => {
|
|
2895
2899
|
if (this.isValidLookup(r)) return;
|
|
2896
2900
|
const c = this.extractFromKey(l, t), d = c.key;
|
|
2897
2901
|
s = d;
|
|
2898
2902
|
let u = c.namespaces;
|
|
2899
2903
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2900
|
-
const f = t.count !== void 0 && !
|
|
2901
|
-
u.forEach((
|
|
2902
|
-
this.isValidLookup(r) || (i =
|
|
2904
|
+
const f = t.count !== void 0 && !K(t.count), y = f && !t.ordinal && t.count === 0, p = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", w = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2905
|
+
u.forEach((S) => {
|
|
2906
|
+
this.isValidLookup(r) || (i = S, !pn[`${w[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (pn[`${w[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${i}" 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!!!")), w.forEach((E) => {
|
|
2903
2907
|
if (this.isValidLookup(r)) return;
|
|
2904
2908
|
o = E;
|
|
2905
2909
|
const b = [d];
|
|
2906
2910
|
if (this.i18nFormat?.addLookupKeys)
|
|
2907
|
-
this.i18nFormat.addLookupKeys(b, d, E,
|
|
2911
|
+
this.i18nFormat.addLookupKeys(b, d, E, S, t);
|
|
2908
2912
|
else {
|
|
2909
2913
|
let v;
|
|
2910
2914
|
f && (v = this.pluralResolver.getSuffix(E, t.count, t));
|
|
2911
|
-
const g = `${this.options.pluralSeparator}zero`,
|
|
2912
|
-
if (f && (b.push(d + v), t.ordinal && v.indexOf(
|
|
2915
|
+
const g = `${this.options.pluralSeparator}zero`, k = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2916
|
+
if (f && (b.push(d + v), t.ordinal && v.indexOf(k) === 0 && b.push(d + v.replace(k, this.options.pluralSeparator)), y && b.push(d + g)), p) {
|
|
2913
2917
|
const A = `${d}${this.options.contextSeparator}${t.context}`;
|
|
2914
|
-
b.push(A), f && (b.push(A + v), t.ordinal && v.indexOf(
|
|
2918
|
+
b.push(A), f && (b.push(A + v), t.ordinal && v.indexOf(k) === 0 && b.push(A + v.replace(k, this.options.pluralSeparator)), y && b.push(A + g));
|
|
2915
2919
|
}
|
|
2916
2920
|
}
|
|
2917
2921
|
let T;
|
|
2918
2922
|
for (; T = b.pop(); )
|
|
2919
|
-
this.isValidLookup(r) || (a = T, r = this.getResource(E,
|
|
2923
|
+
this.isValidLookup(r) || (a = T, r = this.getResource(E, S, T, t));
|
|
2920
2924
|
}));
|
|
2921
2925
|
});
|
|
2922
2926
|
}), {
|
|
@@ -2934,7 +2938,7 @@ class ut extends mt {
|
|
|
2934
2938
|
return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e, t, r, s) : this.resourceStore.getResource(e, t, r, s);
|
|
2935
2939
|
}
|
|
2936
2940
|
getUsedParamsDetails(e = {}) {
|
|
2937
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !
|
|
2941
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], r = e.replace && !K(e.replace);
|
|
2938
2942
|
let s = r ? e.replace : e;
|
|
2939
2943
|
if (r && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
|
|
2940
2944
|
...this.options.interpolation.defaultVariables,
|
|
@@ -2971,7 +2975,7 @@ class mn {
|
|
|
2971
2975
|
return this.formatLanguageCode(t[0]);
|
|
2972
2976
|
}
|
|
2973
2977
|
formatLanguageCode(e) {
|
|
2974
|
-
if (
|
|
2978
|
+
if (K(e) && e.indexOf("-") > -1) {
|
|
2975
2979
|
let t;
|
|
2976
2980
|
try {
|
|
2977
2981
|
t = Intl.getCanonicalLocales(e)[0];
|
|
@@ -3006,7 +3010,7 @@ class mn {
|
|
|
3006
3010
|
}
|
|
3007
3011
|
getFallbackCodes(e, t) {
|
|
3008
3012
|
if (!e) return [];
|
|
3009
|
-
if (typeof e == "function" && (e = e(t)),
|
|
3013
|
+
if (typeof e == "function" && (e = e(t)), K(e) && (e = [e]), Array.isArray(e)) return e;
|
|
3010
3014
|
if (!t) return e.default || [];
|
|
3011
3015
|
let r = e[t];
|
|
3012
3016
|
return r || (r = e[this.getScriptPartFromCode(t)]), r || (r = e[this.formatLanguageCode(t)]), r || (r = e[this.getLanguagePartFromCode(t)]), r || (r = e.default), r || [];
|
|
@@ -3015,7 +3019,7 @@ class mn {
|
|
|
3015
3019
|
const r = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], a = (o) => {
|
|
3016
3020
|
o && (this.isSupportedCode(o) ? s.push(o) : this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`));
|
|
3017
3021
|
};
|
|
3018
|
-
return
|
|
3022
|
+
return K(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : K(e) && a(this.formatLanguageCode(e)), r.forEach((o) => {
|
|
3019
3023
|
s.indexOf(o) < 0 && a(this.formatLanguageCode(o));
|
|
3020
3024
|
}), s;
|
|
3021
3025
|
}
|
|
@@ -3082,7 +3086,7 @@ class Mr {
|
|
|
3082
3086
|
}
|
|
3083
3087
|
const bn = (n, e, t, r = ".", s = !0) => {
|
|
3084
3088
|
let a = jr(n, e, t);
|
|
3085
|
-
return !a && s &&
|
|
3089
|
+
return !a && s && K(t) && (a = Rt(n, t, r), a === void 0 && (a = Rt(e, t, r))), a;
|
|
3086
3090
|
}, Tt = (n) => n.replace(/\$/g, "$$$$");
|
|
3087
3091
|
class Fr {
|
|
3088
3092
|
constructor(e = {}) {
|
|
@@ -3106,12 +3110,12 @@ class Fr {
|
|
|
3106
3110
|
nestingPrefix: f,
|
|
3107
3111
|
nestingPrefixEscaped: y,
|
|
3108
3112
|
nestingSuffix: p,
|
|
3109
|
-
nestingSuffixEscaped:
|
|
3110
|
-
nestingOptionsSeparator:
|
|
3113
|
+
nestingSuffixEscaped: w,
|
|
3114
|
+
nestingOptionsSeparator: S,
|
|
3111
3115
|
maxReplaces: E,
|
|
3112
3116
|
alwaysFormat: b
|
|
3113
3117
|
} = e.interpolation;
|
|
3114
|
-
this.escape = t !== void 0 ? t :
|
|
3118
|
+
this.escape = t !== void 0 ? t : kr, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ae(a) : o || "{{", this.suffix = i ? Ae(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = f ? Ae(f) : y || Ae("$t("), this.nestingSuffix = p ? Ae(p) : w || Ae(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
3115
3119
|
}
|
|
3116
3120
|
reset() {
|
|
3117
3121
|
this.options && this.init(this.options);
|
|
@@ -3131,11 +3135,11 @@ class Fr {
|
|
|
3131
3135
|
interpolationkey: y
|
|
3132
3136
|
}) : E;
|
|
3133
3137
|
}
|
|
3134
|
-
const p = y.split(this.formatSeparator),
|
|
3135
|
-
return this.format(bn(t, l,
|
|
3138
|
+
const p = y.split(this.formatSeparator), w = p.shift().trim(), S = p.join(this.formatSeparator).trim();
|
|
3139
|
+
return this.format(bn(t, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), S, r, {
|
|
3136
3140
|
...s,
|
|
3137
3141
|
...t,
|
|
3138
|
-
interpolationkey:
|
|
3142
|
+
interpolationkey: w
|
|
3139
3143
|
});
|
|
3140
3144
|
};
|
|
3141
3145
|
this.resetRegExp();
|
|
@@ -3151,8 +3155,8 @@ class Fr {
|
|
|
3151
3155
|
const p = a[1].trim();
|
|
3152
3156
|
if (o = c(p), o === void 0)
|
|
3153
3157
|
if (typeof d == "function") {
|
|
3154
|
-
const
|
|
3155
|
-
o =
|
|
3158
|
+
const S = d(e, a, s);
|
|
3159
|
+
o = K(S) ? S : "";
|
|
3156
3160
|
} else if (s && Object.prototype.hasOwnProperty.call(s, p))
|
|
3157
3161
|
o = "";
|
|
3158
3162
|
else if (u) {
|
|
@@ -3160,9 +3164,9 @@ class Fr {
|
|
|
3160
3164
|
continue;
|
|
3161
3165
|
} else
|
|
3162
3166
|
this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`), o = "";
|
|
3163
|
-
else !
|
|
3164
|
-
const
|
|
3165
|
-
if (e = e.replace(a[0],
|
|
3167
|
+
else !K(o) && !this.useRawValueToEscape && (o = ln(o));
|
|
3168
|
+
const w = y.safeValue(o);
|
|
3169
|
+
if (e = e.replace(a[0], w), u ? (y.regex.lastIndex += o.length, y.regex.lastIndex -= a[0].length) : y.regex.lastIndex = 0, i++, i >= this.maxReplaces)
|
|
3166
3170
|
break;
|
|
3167
3171
|
}
|
|
3168
3172
|
}), e;
|
|
@@ -3182,8 +3186,8 @@ class Fr {
|
|
|
3182
3186
|
...c,
|
|
3183
3187
|
...o
|
|
3184
3188
|
});
|
|
3185
|
-
} catch (
|
|
3186
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`,
|
|
3189
|
+
} catch (w) {
|
|
3190
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, w), `${l}${d}${f}`;
|
|
3187
3191
|
}
|
|
3188
3192
|
return o.defaultValue && o.defaultValue.indexOf(this.prefix) > -1 && delete o.defaultValue, l;
|
|
3189
3193
|
};
|
|
@@ -3191,10 +3195,10 @@ class Fr {
|
|
|
3191
3195
|
let l = [];
|
|
3192
3196
|
o = {
|
|
3193
3197
|
...r
|
|
3194
|
-
}, o = o.replace && !
|
|
3198
|
+
}, o = o.replace && !K(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
|
|
3195
3199
|
const c = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
|
|
3196
|
-
if (c !== -1 && (l = s[1].slice(c).split(this.formatSeparator).map((d) => d.trim()).filter(Boolean), s[1] = s[1].slice(0, c)), a = t(i.call(this, s[1].trim(), o), o), a && s[0] === e && !
|
|
3197
|
-
|
|
3200
|
+
if (c !== -1 && (l = s[1].slice(c).split(this.formatSeparator).map((d) => d.trim()).filter(Boolean), s[1] = s[1].slice(0, c)), a = t(i.call(this, s[1].trim(), o), o), a && s[0] === e && !K(a)) return a;
|
|
3201
|
+
K(a) || (a = ln(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), l.length && (a = l.reduce((d, u) => this.format(d, u, r.lng, {
|
|
3198
3202
|
...r,
|
|
3199
3203
|
interpolationkey: s[1].trim()
|
|
3200
3204
|
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
@@ -3397,7 +3401,7 @@ class Br extends mt {
|
|
|
3397
3401
|
prepareLoading(e, t, r = {}, s) {
|
|
3398
3402
|
if (!this.backend)
|
|
3399
3403
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
|
|
3400
|
-
|
|
3404
|
+
K(e) && (e = this.languageUtils.toResolveHierarchy(e)), K(t) && (t = [t]);
|
|
3401
3405
|
const a = this.queueLoad(e, t, r, s);
|
|
3402
3406
|
if (!a.toLoad.length)
|
|
3403
3407
|
return a.pending.length || s(), null;
|
|
@@ -3480,7 +3484,7 @@ const xn = () => ({
|
|
|
3480
3484
|
appendNamespaceToCIMode: !1,
|
|
3481
3485
|
overloadTranslationOptionHandler: (n) => {
|
|
3482
3486
|
let e = {};
|
|
3483
|
-
if (typeof n[1] == "object" && (e = n[1]),
|
|
3487
|
+
if (typeof n[1] == "object" && (e = n[1]), K(n[1]) && (e.defaultValue = n[1]), K(n[2]) && (e.tDescription = n[2]), typeof n[2] == "object" || typeof n[3] == "object") {
|
|
3484
3488
|
const t = n[3] || n[2];
|
|
3485
3489
|
Object.keys(t).forEach((r) => {
|
|
3486
3490
|
e[r] = t[r];
|
|
@@ -3502,7 +3506,7 @@ const xn = () => ({
|
|
|
3502
3506
|
skipOnVariables: !0
|
|
3503
3507
|
},
|
|
3504
3508
|
cacheInBuiltFormats: !0
|
|
3505
|
-
}),
|
|
3509
|
+
}), wn = (n) => (K(n.ns) && (n.ns = [n.ns]), K(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), K(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), n.supportedLngs?.indexOf?.("cimode") < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n), et = () => {
|
|
3506
3510
|
}, Gr = (n) => {
|
|
3507
3511
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3508
3512
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
@@ -3510,7 +3514,7 @@ const xn = () => ({
|
|
|
3510
3514
|
};
|
|
3511
3515
|
class Be extends mt {
|
|
3512
3516
|
constructor(e = {}, t) {
|
|
3513
|
-
if (super(), this.options =
|
|
3517
|
+
if (super(), this.options = wn(e), this.services = {}, this.logger = ve, this.modules = {
|
|
3514
3518
|
external: []
|
|
3515
3519
|
}, Gr(this), t && !this.isInitialized && !e.isClone) {
|
|
3516
3520
|
if (!this.options.initAsync)
|
|
@@ -3521,12 +3525,12 @@ class Be extends mt {
|
|
|
3521
3525
|
}
|
|
3522
3526
|
}
|
|
3523
3527
|
init(e = {}, t) {
|
|
3524
|
-
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (
|
|
3528
|
+
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (K(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
3525
3529
|
const r = xn();
|
|
3526
3530
|
this.options = {
|
|
3527
3531
|
...r,
|
|
3528
3532
|
...this.options,
|
|
3529
|
-
...
|
|
3533
|
+
...wn(e)
|
|
3530
3534
|
}, this.options.interpolation = {
|
|
3531
3535
|
...r.interpolation,
|
|
3532
3536
|
...this.options.interpolation
|
|
@@ -3572,7 +3576,7 @@ class Be extends mt {
|
|
|
3572
3576
|
}
|
|
3573
3577
|
loadResources(e, t = et) {
|
|
3574
3578
|
let r = t;
|
|
3575
|
-
const s =
|
|
3579
|
+
const s = K(e) ? e : this.language;
|
|
3576
3580
|
if (typeof e == "function" && (r = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3577
3581
|
if (s?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return r();
|
|
3578
3582
|
const a = [], o = (i) => {
|
|
@@ -3620,7 +3624,7 @@ class Be extends mt {
|
|
|
3620
3624
|
l ? this.isLanguageChangingTo === e && (s(l), this.translator.changeLanguage(l), this.isLanguageChangingTo = void 0, this.emit("languageChanged", l), this.logger.log("languageChanged", l)) : this.isLanguageChangingTo = void 0, r.resolve((...c) => this.t(...c)), t && t(i, (...c) => this.t(...c));
|
|
3621
3625
|
}, o = (i) => {
|
|
3622
3626
|
!e && !i && this.services.languageDetector && (i = []);
|
|
3623
|
-
const l =
|
|
3627
|
+
const l = K(i) ? i : i && i[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(K(i) ? [i] : i);
|
|
3624
3628
|
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), this.services.languageDetector?.cacheUserLanguage?.(c)), this.loadResources(c, (d) => {
|
|
3625
3629
|
a(d, c);
|
|
3626
3630
|
});
|
|
@@ -3637,7 +3641,7 @@ class Be extends mt {
|
|
|
3637
3641
|
let d;
|
|
3638
3642
|
return l.keyPrefix && Array.isArray(a) ? d = a.map((u) => `${l.keyPrefix}${c}${u}`) : d = l.keyPrefix ? `${l.keyPrefix}${c}${a}` : a, this.t(d, l);
|
|
3639
3643
|
};
|
|
3640
|
-
return
|
|
3644
|
+
return K(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = r, s;
|
|
3641
3645
|
}
|
|
3642
3646
|
t(...e) {
|
|
3643
3647
|
return this.translator?.translate(...e);
|
|
@@ -3667,7 +3671,7 @@ class Be extends mt {
|
|
|
3667
3671
|
}
|
|
3668
3672
|
loadNamespaces(e, t) {
|
|
3669
3673
|
const r = Ue();
|
|
3670
|
-
return this.options.ns ? (
|
|
3674
|
+
return this.options.ns ? (K(e) && (e = [e]), e.forEach((s) => {
|
|
3671
3675
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3672
3676
|
}), this.loadResources((s) => {
|
|
3673
3677
|
r.resolve(), t && t(s);
|
|
@@ -3675,7 +3679,7 @@ class Be extends mt {
|
|
|
3675
3679
|
}
|
|
3676
3680
|
loadLanguages(e, t) {
|
|
3677
3681
|
const r = Ue();
|
|
3678
|
-
|
|
3682
|
+
K(e) && (e = [e]);
|
|
3679
3683
|
const s = this.options.preload || [], a = e.filter((o) => s.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
|
|
3680
3684
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((o) => {
|
|
3681
3685
|
r.resolve(), t && t(o);
|
|
@@ -3750,18 +3754,18 @@ oe.setDefaultNamespace;
|
|
|
3750
3754
|
oe.hasLoadedNamespace;
|
|
3751
3755
|
oe.loadNamespaces;
|
|
3752
3756
|
oe.loadLanguages;
|
|
3753
|
-
const Hr = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" },
|
|
3757
|
+
const Hr = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, qr = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Kr = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, zr = {
|
|
3754
3758
|
Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
|
|
3755
3759
|
Day: Hr,
|
|
3756
|
-
Month:
|
|
3757
|
-
Generic:
|
|
3760
|
+
Month: qr,
|
|
3761
|
+
Generic: Kr
|
|
3758
3762
|
}, Jr = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Xr = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Zr = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, Qr = {
|
|
3759
3763
|
Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
|
|
3760
3764
|
Day: Jr,
|
|
3761
3765
|
Month: Xr,
|
|
3762
3766
|
Generic: Zr
|
|
3763
3767
|
};
|
|
3764
|
-
function
|
|
3768
|
+
function Sn(n, e) {
|
|
3765
3769
|
return new RegExp(es(n), e);
|
|
3766
3770
|
}
|
|
3767
3771
|
function es(n) {
|
|
@@ -3808,7 +3812,7 @@ function os(n, e, t, r, s) {
|
|
|
3808
3812
|
let i;
|
|
3809
3813
|
e && r === void 0 ? i = "," : i = ".";
|
|
3810
3814
|
const l = i == "." ? "," : ".";
|
|
3811
|
-
a = a.replace(
|
|
3815
|
+
a = a.replace(Sn(l, "g"), ""), a = a.replace(Sn(i, "g"), "."), a = Number(a);
|
|
3812
3816
|
}
|
|
3813
3817
|
const o = Number(a);
|
|
3814
3818
|
return isNaN(o) ? NaN : o;
|
|
@@ -3856,12 +3860,12 @@ oe.init({
|
|
|
3856
3860
|
translation: Qr
|
|
3857
3861
|
},
|
|
3858
3862
|
it: {
|
|
3859
|
-
translation:
|
|
3863
|
+
translation: zr
|
|
3860
3864
|
}
|
|
3861
3865
|
}
|
|
3862
3866
|
});
|
|
3863
3867
|
const ls = (n, e, t, r) => oe.format(n, e, t || oe.language, r), cs = (n, e) => oe.t(n, e);
|
|
3864
|
-
function
|
|
3868
|
+
function $e() {
|
|
3865
3869
|
const n = ue(
|
|
3866
3870
|
(r, s, a, o) => ls(r, s, a || void 0, o),
|
|
3867
3871
|
[]
|
|
@@ -3871,7 +3875,7 @@ function ke() {
|
|
|
3871
3875
|
);
|
|
3872
3876
|
return { format: n, getCurrentLanguage: e, translate: t };
|
|
3873
3877
|
}
|
|
3874
|
-
var Ee = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", n.CONFIRM_BUTTON = "Generic.ConfirmButton", n.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", n))(Ee || {}), fe = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(fe || {}),
|
|
3878
|
+
var Ee = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n.CHECK_OBJECT_WRONG_VALIDATION = "Generic.CheckObjectWrongValidation", n.CONFIRM_BUTTON = "Generic.ConfirmButton", n.AUTOCOMPLETE_DEFAULT_PLACEHOLDER = "Generic.AutocompleteDefaultPlaceholder", n))(Ee || {}), fe = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(fe || {}), he = /* @__PURE__ */ ((n) => (n.JANUARY = "Month.January", n.FEBRUARY = "Month.February", n.MARCH = "Month.March", n.APRIL = "Month.April", n.MAY = "Month.May", n.JUNE = "Month.June", n.JULY = "Month.July", n.AUGUST = "Month.August", n.SEPTEMBER = "Month.September", n.OCTOBER = "Month.October", n.NOVEMBER = "Month.November", n.DECEMBER = "Month.December", n))(he || {}), Dt = /* @__PURE__ */ ((n) => (n.PREVIOUS_DAY = "Date.PreviousDay", n.PREVIOUS_WEEK = "Date.PreviousWeek", n.PREVIOUS_MONTH = "Date.PreviousMonth", n.PREVIOUS_YEAR = "Date.PreviousYear", n.NEXT_DAY = "Date.NextDay", n.NEXT_WEEK = "Date.NextWeek", n.NEXT_MONTH = "Date.NextMonth", n.NEXT_YEAR = "Date.NextYear", n.YESTERDAY = "Date.Yesterday", n.TODAY = "Date.Today", n.TOMORROW = "Date.Tomorrow", n))(Dt || {});
|
|
3875
3879
|
const In = ({
|
|
3876
3880
|
bindValue: n,
|
|
3877
3881
|
optionalDisplayValue: e,
|
|
@@ -3888,15 +3892,15 @@ const In = ({
|
|
|
3888
3892
|
_multiActiveIndex: f,
|
|
3889
3893
|
...y
|
|
3890
3894
|
}) => {
|
|
3891
|
-
const p = le(null), [
|
|
3895
|
+
const p = le(null), [w, S] = G(n), [E, b] = G(e), { translate: T } = $e(), [v, g] = G(!1), [k, A] = G(t || []), [O, L] = G(0), [R, D] = G([n]), { anchorRef: C, targetRef: P, anchorWidth: N } = ft({
|
|
3892
3896
|
position: "bottom",
|
|
3893
3897
|
enabled: v
|
|
3894
3898
|
}), B = ue(() => {
|
|
3895
3899
|
g(!1), p?.current?.focus();
|
|
3896
3900
|
}, []);
|
|
3897
3901
|
ht([P], v, () => B());
|
|
3898
|
-
const H = Or(400),
|
|
3899
|
-
_.length >= a ? X(_) : B(),
|
|
3902
|
+
const H = Or(400), z = (_) => {
|
|
3903
|
+
_.length >= a ? X(_) : B(), S(_), b(e), l || c?.(_, e);
|
|
3900
3904
|
}, X = (_) => {
|
|
3901
3905
|
H(async () => {
|
|
3902
3906
|
if (i && d) {
|
|
@@ -3907,19 +3911,19 @@ const In = ({
|
|
|
3907
3911
|
}, F = () => {
|
|
3908
3912
|
v || u?.();
|
|
3909
3913
|
}, h = (_) => {
|
|
3910
|
-
l ? (
|
|
3911
|
-
const j =
|
|
3914
|
+
l ? (S(""), b("")) : (S(_.id), b(_.label)), c?.(_.id, _.label);
|
|
3915
|
+
const j = k.findIndex((I) => I.id === _.id);
|
|
3912
3916
|
L(j), D([_.id]), B();
|
|
3913
3917
|
}, x = (_) => {
|
|
3914
3918
|
_.key === "Escape" && (B(), L(-1));
|
|
3915
|
-
},
|
|
3919
|
+
}, $ = (_) => {
|
|
3916
3920
|
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), v)) {
|
|
3917
|
-
const j = _.key === "ArrowDown" ? (
|
|
3921
|
+
const j = _.key === "ArrowDown" ? (O + 1) % k.length : (O - 1 + k.length) % k.length;
|
|
3918
3922
|
L(j);
|
|
3919
3923
|
}
|
|
3920
3924
|
switch (_.key) {
|
|
3921
3925
|
case "Enter":
|
|
3922
|
-
|
|
3926
|
+
O >= 0 && O < k.length ? h(k[O]) : l && (c?.(w, ""), B(), S(""), b(""));
|
|
3923
3927
|
break;
|
|
3924
3928
|
case "Escape":
|
|
3925
3929
|
B(), L(-1);
|
|
@@ -3931,7 +3935,7 @@ const In = ({
|
|
|
3931
3935
|
At,
|
|
3932
3936
|
{
|
|
3933
3937
|
...y,
|
|
3934
|
-
bindValue:
|
|
3938
|
+
bindValue: w,
|
|
3935
3939
|
optionalDisplayValue: E,
|
|
3936
3940
|
displayMode: r,
|
|
3937
3941
|
isEditable: o,
|
|
@@ -3939,23 +3943,23 @@ const In = ({
|
|
|
3939
3943
|
placeholder: T(
|
|
3940
3944
|
Ee.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3941
3945
|
),
|
|
3942
|
-
ref:
|
|
3946
|
+
ref: C,
|
|
3943
3947
|
inputRef: p,
|
|
3944
|
-
onChange:
|
|
3945
|
-
onKeyDown:
|
|
3948
|
+
onChange: z,
|
|
3949
|
+
onKeyDown: $,
|
|
3946
3950
|
onBlur: F,
|
|
3947
|
-
onShapeIconClick: () => X(
|
|
3951
|
+
onShapeIconClick: () => X(w),
|
|
3948
3952
|
"aria-autocomplete": "list"
|
|
3949
3953
|
}
|
|
3950
3954
|
),
|
|
3951
3955
|
v && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
3952
3956
|
Ln,
|
|
3953
3957
|
{
|
|
3954
|
-
options:
|
|
3958
|
+
options: k,
|
|
3955
3959
|
displayMode: s,
|
|
3956
3960
|
onClick: h,
|
|
3957
3961
|
ref: P,
|
|
3958
|
-
selectedIndex:
|
|
3962
|
+
selectedIndex: O,
|
|
3959
3963
|
activeIndex: f || R,
|
|
3960
3964
|
width: N,
|
|
3961
3965
|
showFilter: !1,
|
|
@@ -3981,18 +3985,18 @@ const In = ({
|
|
|
3981
3985
|
onClick: y,
|
|
3982
3986
|
onOptionsRequest: p
|
|
3983
3987
|
}) => {
|
|
3984
|
-
const [
|
|
3988
|
+
const [w, S] = G(n);
|
|
3985
3989
|
ne(() => {
|
|
3986
|
-
!
|
|
3990
|
+
!w && p && e && p(e, void 0).then((T) => S(T)).catch((T) => {
|
|
3987
3991
|
console.error(
|
|
3988
3992
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
3989
3993
|
T
|
|
3990
3994
|
);
|
|
3991
3995
|
});
|
|
3992
|
-
}, [
|
|
3996
|
+
}, [w, e, p]);
|
|
3993
3997
|
const E = {
|
|
3994
3998
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${r}`
|
|
3995
|
-
}, b =
|
|
3999
|
+
}, b = w?.map((T, v) => {
|
|
3996
4000
|
const g = {
|
|
3997
4001
|
bindValue: T.id,
|
|
3998
4002
|
optionalDisplayValue: T.label,
|
|
@@ -4011,7 +4015,7 @@ const In = ({
|
|
|
4011
4015
|
y?.(T.id, T.fun);
|
|
4012
4016
|
}
|
|
4013
4017
|
};
|
|
4014
|
-
return /* @__PURE__ */ m.jsx(
|
|
4018
|
+
return /* @__PURE__ */ m.jsx(we, { ...g }, `button-${v}`);
|
|
4015
4019
|
});
|
|
4016
4020
|
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: b });
|
|
4017
4021
|
}, ds = {
|
|
@@ -4059,20 +4063,20 @@ const In = ({
|
|
|
4059
4063
|
container: `${["smp-chips-container"]}`,
|
|
4060
4064
|
element: "smp-chips-element"
|
|
4061
4065
|
}, d = (y) => {
|
|
4062
|
-
r?.(n.filter((p,
|
|
4066
|
+
r?.(n.filter((p, w) => w !== y));
|
|
4063
4067
|
}, u = (y) => {
|
|
4064
4068
|
l(y);
|
|
4065
4069
|
}, f = (y) => {
|
|
4066
4070
|
if (i === null || i === y) return;
|
|
4067
|
-
const p = [...n], [
|
|
4068
|
-
p.splice(y, 0,
|
|
4071
|
+
const p = [...n], [w] = p.splice(i, 1);
|
|
4072
|
+
p.splice(y, 0, w), r?.(p), l(null);
|
|
4069
4073
|
};
|
|
4070
4074
|
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: n.flatMap((y, p) => {
|
|
4071
|
-
const
|
|
4075
|
+
const w = _e(
|
|
4072
4076
|
y.bindValue,
|
|
4073
4077
|
y.optionalDisplayValue,
|
|
4074
4078
|
t
|
|
4075
|
-
),
|
|
4079
|
+
), S = /* @__PURE__ */ m.jsxs(
|
|
4076
4080
|
"div",
|
|
4077
4081
|
{
|
|
4078
4082
|
className: c.element,
|
|
@@ -4086,7 +4090,7 @@ const In = ({
|
|
|
4086
4090
|
},
|
|
4087
4091
|
children: [
|
|
4088
4092
|
o && /* @__PURE__ */ m.jsx(de, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4089
|
-
/* @__PURE__ */ m.jsx(Oe, { variant: "label", bindValue:
|
|
4093
|
+
/* @__PURE__ */ m.jsx(Oe, { variant: "label", bindValue: w, color: s }),
|
|
4090
4094
|
e && /* @__PURE__ */ m.jsx(
|
|
4091
4095
|
de,
|
|
4092
4096
|
{
|
|
@@ -4107,7 +4111,7 @@ const In = ({
|
|
|
4107
4111
|
},
|
|
4108
4112
|
`separator-${p}`
|
|
4109
4113
|
) : null;
|
|
4110
|
-
return [
|
|
4114
|
+
return [S, E].filter(Boolean);
|
|
4111
4115
|
}) });
|
|
4112
4116
|
};
|
|
4113
4117
|
function It(n, e) {
|
|
@@ -4161,24 +4165,24 @@ const ps = ({
|
|
|
4161
4165
|
multiActiveIndex: c,
|
|
4162
4166
|
...d
|
|
4163
4167
|
}) => {
|
|
4164
|
-
const u = le(null), [f, y] = G(!1), [p,
|
|
4168
|
+
const u = le(null), [f, y] = G(!1), [p, w] = G(t), [S, E] = G(-1), [b, T] = G([n]), v = Ce(), { anchorRef: g, targetRef: k, anchorWidth: A } = ft({
|
|
4165
4169
|
position: "bottom",
|
|
4166
4170
|
enabled: f
|
|
4167
|
-
}),
|
|
4171
|
+
}), O = ue(() => {
|
|
4168
4172
|
y(!1), u?.current?.focus();
|
|
4169
4173
|
}, []);
|
|
4170
|
-
ht([
|
|
4174
|
+
ht([k, g], f, () => O()), It(f, k);
|
|
4171
4175
|
const L = (P) => {
|
|
4172
4176
|
e?.(P.id, P.label);
|
|
4173
4177
|
const N = p.findIndex((B) => B.id === P.id);
|
|
4174
|
-
E(N), T([P.id]),
|
|
4178
|
+
E(N), T([P.id]), O();
|
|
4175
4179
|
}, R = (P) => {
|
|
4176
|
-
P.key === "Escape" && (
|
|
4180
|
+
P.key === "Escape" && (O(), E(-1));
|
|
4177
4181
|
}, D = (P) => {
|
|
4178
|
-
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(),
|
|
4179
|
-
},
|
|
4182
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), C());
|
|
4183
|
+
}, C = () => {
|
|
4180
4184
|
s && (i && l ? f ? y(!1) : l(i, void 0).then((P) => {
|
|
4181
|
-
|
|
4185
|
+
w(P), E(P.length > 0 ? 0 : -1), y(!0);
|
|
4182
4186
|
}) : y((P) => !P));
|
|
4183
4187
|
};
|
|
4184
4188
|
return /* @__PURE__ */ m.jsxs(
|
|
@@ -4197,9 +4201,9 @@ const ps = ({
|
|
|
4197
4201
|
bindValue: n,
|
|
4198
4202
|
optionalDisplayValue: r,
|
|
4199
4203
|
displayMode: a,
|
|
4200
|
-
onShapeIconClick:
|
|
4204
|
+
onShapeIconClick: C,
|
|
4201
4205
|
onKeyDown: D,
|
|
4202
|
-
onClick:
|
|
4206
|
+
onClick: C,
|
|
4203
4207
|
shapeIcon: "arrow_drop_down",
|
|
4204
4208
|
rotatedShapeIcon: f,
|
|
4205
4209
|
isEditable: s,
|
|
@@ -4215,9 +4219,9 @@ const ps = ({
|
|
|
4215
4219
|
id: v,
|
|
4216
4220
|
options: p,
|
|
4217
4221
|
displayMode: o,
|
|
4218
|
-
ref:
|
|
4222
|
+
ref: k,
|
|
4219
4223
|
isOpen: f,
|
|
4220
|
-
selectedIndex:
|
|
4224
|
+
selectedIndex: S,
|
|
4221
4225
|
activeIndex: c || b,
|
|
4222
4226
|
width: A,
|
|
4223
4227
|
onClick: L,
|
|
@@ -4237,7 +4241,7 @@ function ms({
|
|
|
4237
4241
|
initialValue: r,
|
|
4238
4242
|
targetRef: s
|
|
4239
4243
|
}) {
|
|
4240
|
-
const { translate: a } =
|
|
4244
|
+
const { translate: a } = $e(), o = () => {
|
|
4241
4245
|
if (!r) return;
|
|
4242
4246
|
const F = new Date(r);
|
|
4243
4247
|
return isNaN(F.getTime()) ? void 0 : F;
|
|
@@ -4247,21 +4251,21 @@ function ms({
|
|
|
4247
4251
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4248
4252
|
), [f, y] = G(
|
|
4249
4253
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4250
|
-
), [p,
|
|
4254
|
+
), [p, w] = G(
|
|
4251
4255
|
l ? l.getDate() : null
|
|
4252
|
-
),
|
|
4253
|
-
a(
|
|
4254
|
-
a(
|
|
4255
|
-
a(
|
|
4256
|
-
a(
|
|
4257
|
-
a(
|
|
4258
|
-
a(
|
|
4259
|
-
a(
|
|
4260
|
-
a(
|
|
4261
|
-
a(
|
|
4262
|
-
a(
|
|
4263
|
-
a(
|
|
4264
|
-
a(
|
|
4256
|
+
), S = le(null), E = le([]), b = [
|
|
4257
|
+
a(he.JANUARY),
|
|
4258
|
+
a(he.FEBRUARY),
|
|
4259
|
+
a(he.MARCH),
|
|
4260
|
+
a(he.APRIL),
|
|
4261
|
+
a(he.MAY),
|
|
4262
|
+
a(he.JUNE),
|
|
4263
|
+
a(he.JULY),
|
|
4264
|
+
a(he.AUGUST),
|
|
4265
|
+
a(he.SEPTEMBER),
|
|
4266
|
+
a(he.OCTOBER),
|
|
4267
|
+
a(he.NOVEMBER),
|
|
4268
|
+
a(he.DECEMBER)
|
|
4265
4269
|
], T = [
|
|
4266
4270
|
{
|
|
4267
4271
|
value: a(fe.SUNDAY_SHORT),
|
|
@@ -4292,36 +4296,36 @@ function ms({
|
|
|
4292
4296
|
full: a(fe.SATURDAY)
|
|
4293
4297
|
}
|
|
4294
4298
|
], v = (F) => t.some((h) => {
|
|
4295
|
-
const x = h.start.getTime(),
|
|
4296
|
-
return _ >= x && _ <=
|
|
4299
|
+
const x = h.start.getTime(), $ = h.end.getTime(), _ = F.getTime();
|
|
4300
|
+
return _ >= x && _ <= $;
|
|
4297
4301
|
}), g = (F) => {
|
|
4298
|
-
v(F) || (c(F),
|
|
4299
|
-
},
|
|
4300
|
-
d === 0 ? (u(11), y(f - 1)) : u(d - 1),
|
|
4302
|
+
v(F) || (c(F), w(F.getDate()), e && e(Er(F)));
|
|
4303
|
+
}, k = () => {
|
|
4304
|
+
d === 0 ? (u(11), y(f - 1)) : u(d - 1), w(1);
|
|
4301
4305
|
}, A = () => {
|
|
4302
|
-
d === 11 ? (u(0), y(f + 1)) : u(d + 1),
|
|
4303
|
-
},
|
|
4306
|
+
d === 11 ? (u(0), y(f + 1)) : u(d + 1), w(1);
|
|
4307
|
+
}, O = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), R = (F) => {
|
|
4304
4308
|
const h = N.findIndex(
|
|
4305
4309
|
(x) => x !== null && x.getDate() === F
|
|
4306
4310
|
);
|
|
4307
|
-
h !== -1 && E.current[h] && (E.current[h]?.focus(),
|
|
4311
|
+
h !== -1 && E.current[h] && (E.current[h]?.focus(), w(F));
|
|
4308
4312
|
}, D = (F, h) => {
|
|
4309
4313
|
const x = N[h];
|
|
4310
4314
|
if (!x) return;
|
|
4311
|
-
const
|
|
4315
|
+
const $ = O(f, d), _ = x.getDate();
|
|
4312
4316
|
switch (F.key) {
|
|
4313
4317
|
case "ArrowRight":
|
|
4314
4318
|
F.preventDefault();
|
|
4315
4319
|
{
|
|
4316
4320
|
let j = _ + 1, I = new Date(f, d, j);
|
|
4317
|
-
if (j >
|
|
4321
|
+
if (j > $) {
|
|
4318
4322
|
const U = d === 11 ? f + 1 : f, W = d === 11 ? 0 : d + 1;
|
|
4319
4323
|
j = 1, I = new Date(U, W, j), A(), setTimeout(() => {
|
|
4320
|
-
|
|
4324
|
+
C(1, "forward");
|
|
4321
4325
|
}, 0);
|
|
4322
4326
|
return;
|
|
4323
4327
|
}
|
|
4324
|
-
v(I) ?
|
|
4328
|
+
v(I) ? C(j, "forward") : R(j);
|
|
4325
4329
|
}
|
|
4326
4330
|
break;
|
|
4327
4331
|
case "Tab":
|
|
@@ -4331,13 +4335,13 @@ function ms({
|
|
|
4331
4335
|
{
|
|
4332
4336
|
let j = _ - 1, I = new Date(f, d, j);
|
|
4333
4337
|
if (j < 1) {
|
|
4334
|
-
const U = d === 0 ? f - 1 : f, W = d === 0 ? 11 : d - 1, V =
|
|
4335
|
-
j = V, I = new Date(U, W, j),
|
|
4336
|
-
|
|
4338
|
+
const U = d === 0 ? f - 1 : f, W = d === 0 ? 11 : d - 1, V = O(U, W);
|
|
4339
|
+
j = V, I = new Date(U, W, j), k(), setTimeout(() => {
|
|
4340
|
+
C(V, "backward");
|
|
4337
4341
|
}, 0);
|
|
4338
4342
|
return;
|
|
4339
4343
|
}
|
|
4340
|
-
v(I) ?
|
|
4344
|
+
v(I) ? C(j, "backward") : R(j);
|
|
4341
4345
|
}
|
|
4342
4346
|
break;
|
|
4343
4347
|
case "ArrowUp":
|
|
@@ -4346,73 +4350,73 @@ function ms({
|
|
|
4346
4350
|
let j = _ - 7, I = new Date(f, d, j);
|
|
4347
4351
|
if (j < 1) {
|
|
4348
4352
|
const U = d === 0 ? f - 1 : f, W = d === 0 ? 11 : d - 1;
|
|
4349
|
-
j =
|
|
4350
|
-
|
|
4353
|
+
j = O(U, W) + j, I = new Date(U, W, j), k(), setTimeout(() => {
|
|
4354
|
+
C(j, "backward");
|
|
4351
4355
|
}, 0);
|
|
4352
4356
|
return;
|
|
4353
4357
|
}
|
|
4354
|
-
v(I) ?
|
|
4358
|
+
v(I) ? C(j, "backward") : R(j);
|
|
4355
4359
|
}
|
|
4356
4360
|
break;
|
|
4357
4361
|
case "ArrowDown":
|
|
4358
4362
|
F.preventDefault();
|
|
4359
4363
|
{
|
|
4360
4364
|
let j = _ + 7, I = new Date(f, d, j);
|
|
4361
|
-
if (j >
|
|
4365
|
+
if (j > $) {
|
|
4362
4366
|
const U = d === 11 ? f + 1 : f, W = d === 11 ? 0 : d + 1;
|
|
4363
|
-
j = j -
|
|
4364
|
-
|
|
4367
|
+
j = j - $, I = new Date(U, W, j), A(), setTimeout(() => {
|
|
4368
|
+
C(j, "forward");
|
|
4365
4369
|
}, 0);
|
|
4366
4370
|
return;
|
|
4367
4371
|
}
|
|
4368
|
-
v(I) ?
|
|
4372
|
+
v(I) ? C(j, "forward") : R(j);
|
|
4369
4373
|
}
|
|
4370
4374
|
break;
|
|
4371
4375
|
case "Home":
|
|
4372
|
-
F.preventDefault(),
|
|
4376
|
+
F.preventDefault(), C(1, "forward");
|
|
4373
4377
|
break;
|
|
4374
4378
|
case "End":
|
|
4375
|
-
F.preventDefault(),
|
|
4379
|
+
F.preventDefault(), C($, "backward");
|
|
4376
4380
|
break;
|
|
4377
4381
|
case "PageUp":
|
|
4378
|
-
F.preventDefault(),
|
|
4379
|
-
const j =
|
|
4382
|
+
F.preventDefault(), k(), setTimeout(() => {
|
|
4383
|
+
const j = O(
|
|
4380
4384
|
d === 0 ? f - 1 : f,
|
|
4381
4385
|
d === 0 ? 11 : d - 1
|
|
4382
4386
|
), I = Math.min(_, j);
|
|
4383
|
-
|
|
4387
|
+
C(I, "forward");
|
|
4384
4388
|
}, 0);
|
|
4385
4389
|
break;
|
|
4386
4390
|
case "PageDown":
|
|
4387
4391
|
F.preventDefault(), A(), setTimeout(() => {
|
|
4388
|
-
const j =
|
|
4392
|
+
const j = O(
|
|
4389
4393
|
d === 11 ? f + 1 : f,
|
|
4390
4394
|
d === 11 ? 0 : d + 1
|
|
4391
4395
|
), I = Math.min(_, j);
|
|
4392
|
-
|
|
4396
|
+
C(I, "forward");
|
|
4393
4397
|
}, 0);
|
|
4394
4398
|
break;
|
|
4395
4399
|
case " ":
|
|
4396
4400
|
case "Space":
|
|
4397
4401
|
if (v(x)) return;
|
|
4398
|
-
|
|
4402
|
+
w(x.getDate()), c(x);
|
|
4399
4403
|
break;
|
|
4400
4404
|
case "Enter":
|
|
4401
4405
|
F.preventDefault(), g(x);
|
|
4402
4406
|
break;
|
|
4403
4407
|
}
|
|
4404
|
-
},
|
|
4405
|
-
const x =
|
|
4408
|
+
}, C = (F, h) => {
|
|
4409
|
+
const x = O(f, d);
|
|
4406
4410
|
if (h === "forward") {
|
|
4407
|
-
for (let
|
|
4408
|
-
const _ = new Date(f, d,
|
|
4411
|
+
for (let $ = F; $ <= x; $++) {
|
|
4412
|
+
const _ = new Date(f, d, $);
|
|
4409
4413
|
if (!v(_)) {
|
|
4410
|
-
R(
|
|
4414
|
+
R($);
|
|
4411
4415
|
return;
|
|
4412
4416
|
}
|
|
4413
4417
|
}
|
|
4414
4418
|
A(), setTimeout(() => {
|
|
4415
|
-
|
|
4419
|
+
C(1, "forward");
|
|
4416
4420
|
}, 0);
|
|
4417
4421
|
} else {
|
|
4418
4422
|
for (let I = F; I >= 1; I--) {
|
|
@@ -4422,17 +4426,17 @@ function ms({
|
|
|
4422
4426
|
return;
|
|
4423
4427
|
}
|
|
4424
4428
|
}
|
|
4425
|
-
const
|
|
4426
|
-
|
|
4427
|
-
|
|
4429
|
+
const $ = d === 0 ? f - 1 : f, _ = d === 0 ? 11 : d - 1, j = O($, _);
|
|
4430
|
+
k(), setTimeout(() => {
|
|
4431
|
+
C(j, "backward");
|
|
4428
4432
|
}, 0);
|
|
4429
4433
|
}
|
|
4430
4434
|
}, N = (() => {
|
|
4431
|
-
const F =
|
|
4432
|
-
for (let
|
|
4435
|
+
const F = O(f, d), h = L(f, d), x = [];
|
|
4436
|
+
for (let $ = 0; $ < h; $++)
|
|
4433
4437
|
x.push(null);
|
|
4434
|
-
for (let
|
|
4435
|
-
const _ = new Date(f, d,
|
|
4438
|
+
for (let $ = 1; $ <= F; $++) {
|
|
4439
|
+
const _ = new Date(f, d, $);
|
|
4436
4440
|
x.push(_);
|
|
4437
4441
|
}
|
|
4438
4442
|
return x;
|
|
@@ -4452,22 +4456,22 @@ function ms({
|
|
|
4452
4456
|
F !== -1 && E.current[F] && E.current[F]?.focus();
|
|
4453
4457
|
}
|
|
4454
4458
|
}, [d, f, p, N]);
|
|
4455
|
-
const
|
|
4459
|
+
const z = {
|
|
4456
4460
|
label: "smp-datepickercalendar-label",
|
|
4457
4461
|
wrapper: `smp-datepickercalendar ${hs["smp-datepickercalendar-position"]}`,
|
|
4458
4462
|
calendar: "smp-datepickercalendar",
|
|
4459
4463
|
table: "smp-datepickercalendar-table",
|
|
4460
4464
|
th: "smp-datepickercalendar-th",
|
|
4461
|
-
td: (F, h, x,
|
|
4465
|
+
td: (F, h, x, $) => `smp-datepickercalendar-td
|
|
4462
4466
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4463
4467
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4464
4468
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4465
|
-
${
|
|
4469
|
+
${$ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4466
4470
|
}, X = () => `${b[d]} ${f.toString()}`;
|
|
4467
4471
|
return /* @__PURE__ */ m.jsxs(
|
|
4468
4472
|
"div",
|
|
4469
4473
|
{
|
|
4470
|
-
className:
|
|
4474
|
+
className: z.wrapper,
|
|
4471
4475
|
ref: s,
|
|
4472
4476
|
role: "dialog",
|
|
4473
4477
|
tabIndex: -1,
|
|
@@ -4485,9 +4489,9 @@ function ms({
|
|
|
4485
4489
|
},
|
|
4486
4490
|
children: [
|
|
4487
4491
|
/* @__PURE__ */ m.jsx(
|
|
4488
|
-
|
|
4492
|
+
we,
|
|
4489
4493
|
{
|
|
4490
|
-
onClick:
|
|
4494
|
+
onClick: k,
|
|
4491
4495
|
ariaLabel: a(Dt.PREVIOUS_MONTH),
|
|
4492
4496
|
optionalDisplayValue: "<",
|
|
4493
4497
|
appearance: "ghost",
|
|
@@ -4499,12 +4503,12 @@ function ms({
|
|
|
4499
4503
|
"div",
|
|
4500
4504
|
{
|
|
4501
4505
|
"aria-label": X(),
|
|
4502
|
-
className:
|
|
4506
|
+
className: z.label,
|
|
4503
4507
|
children: X()
|
|
4504
4508
|
}
|
|
4505
4509
|
),
|
|
4506
4510
|
/* @__PURE__ */ m.jsx(
|
|
4507
|
-
|
|
4511
|
+
we,
|
|
4508
4512
|
{
|
|
4509
4513
|
onClick: A,
|
|
4510
4514
|
ariaLabel: a(Dt.NEXT_MONTH),
|
|
@@ -4520,35 +4524,35 @@ function ms({
|
|
|
4520
4524
|
/* @__PURE__ */ m.jsxs(
|
|
4521
4525
|
"table",
|
|
4522
4526
|
{
|
|
4523
|
-
ref:
|
|
4527
|
+
ref: S,
|
|
4524
4528
|
role: "grid",
|
|
4525
4529
|
"aria-label": `${a(Ee.CALENDAR_FOR)} ${b[d]} ${f}`,
|
|
4526
|
-
className:
|
|
4530
|
+
className: z.table,
|
|
4527
4531
|
children: [
|
|
4528
4532
|
/* @__PURE__ */ m.jsx("thead", { children: /* @__PURE__ */ m.jsx("tr", { children: T.map((F) => /* @__PURE__ */ m.jsx(
|
|
4529
4533
|
"th",
|
|
4530
4534
|
{
|
|
4531
4535
|
scope: "col",
|
|
4532
4536
|
abbr: F.full,
|
|
4533
|
-
className:
|
|
4537
|
+
className: z.th,
|
|
4534
4538
|
children: F.value
|
|
4535
4539
|
},
|
|
4536
4540
|
F.value
|
|
4537
4541
|
)) }) }),
|
|
4538
|
-
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x,
|
|
4539
|
-
const _ = h * 7 +
|
|
4542
|
+
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x, $) => {
|
|
4543
|
+
const _ = h * 7 + $;
|
|
4540
4544
|
if (x === null)
|
|
4541
4545
|
return /* @__PURE__ */ m.jsx(
|
|
4542
4546
|
"td",
|
|
4543
4547
|
{
|
|
4544
|
-
className:
|
|
4548
|
+
className: z.td(
|
|
4545
4549
|
!1,
|
|
4546
4550
|
!1,
|
|
4547
4551
|
!1,
|
|
4548
4552
|
!0
|
|
4549
4553
|
)
|
|
4550
4554
|
},
|
|
4551
|
-
`empty-${
|
|
4555
|
+
`empty-${$}`
|
|
4552
4556
|
);
|
|
4553
4557
|
const j = x.getDate() === i.getDate() && x.getMonth() === i.getMonth() && x.getFullYear() === i.getFullYear(), I = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), U = p === x.getDate(), W = v(x);
|
|
4554
4558
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -4565,7 +4569,7 @@ function ms({
|
|
|
4565
4569
|
ref: (V) => {
|
|
4566
4570
|
E.current[_] = V;
|
|
4567
4571
|
},
|
|
4568
|
-
className:
|
|
4572
|
+
className: z.td(
|
|
4569
4573
|
j,
|
|
4570
4574
|
I,
|
|
4571
4575
|
U,
|
|
@@ -4573,7 +4577,7 @@ function ms({
|
|
|
4573
4577
|
),
|
|
4574
4578
|
children: x.getDate()
|
|
4575
4579
|
},
|
|
4576
|
-
`day-${
|
|
4580
|
+
`day-${$}`
|
|
4577
4581
|
);
|
|
4578
4582
|
}) }, `week-${h}`)) })
|
|
4579
4583
|
]
|
|
@@ -4594,41 +4598,41 @@ const gs = ({
|
|
|
4594
4598
|
const o = le(null), [i, l] = G(!1), [c, d] = G(n || ""), [u, f] = G(""), { anchorRef: y, targetRef: p } = ft({
|
|
4595
4599
|
position: "bottom",
|
|
4596
4600
|
enabled: i
|
|
4597
|
-
}),
|
|
4601
|
+
}), w = ue(() => {
|
|
4598
4602
|
l(!1), o?.current?.focus();
|
|
4599
4603
|
}, []);
|
|
4600
4604
|
ht([p, y], i, () => {
|
|
4601
|
-
|
|
4605
|
+
w();
|
|
4602
4606
|
}), It(i, p);
|
|
4603
|
-
const { format:
|
|
4607
|
+
const { format: S, getCurrentLanguage: E } = $e(), b = ue(
|
|
4604
4608
|
(L) => {
|
|
4605
|
-
const R = L.length > 5 && xr(L, E()) || L, D =
|
|
4609
|
+
const R = L.length > 5 && xr(L, E()) || L, D = S(R, void 0, void 0, {
|
|
4606
4610
|
type: "date"
|
|
4607
|
-
}),
|
|
4611
|
+
}), C = typeof R != "string", P = C && R.toISOString().substring(0, 10) || "";
|
|
4608
4612
|
return {
|
|
4609
|
-
isValid:
|
|
4613
|
+
isValid: C,
|
|
4610
4614
|
formattedDate: D,
|
|
4611
4615
|
isoDate: P,
|
|
4612
4616
|
normalizedDate: R
|
|
4613
4617
|
};
|
|
4614
4618
|
},
|
|
4615
|
-
[E,
|
|
4619
|
+
[E, S]
|
|
4616
4620
|
);
|
|
4617
4621
|
ne(() => {
|
|
4618
4622
|
const { formattedDate: L, isoDate: R, isValid: D } = b(n);
|
|
4619
4623
|
d(D && R || n), f(D && L || n);
|
|
4620
|
-
}, [n,
|
|
4624
|
+
}, [n, S, b]);
|
|
4621
4625
|
const T = () => l((L) => !L), v = () => {
|
|
4622
|
-
|
|
4626
|
+
k(u);
|
|
4623
4627
|
}, g = (L) => {
|
|
4624
|
-
|
|
4625
|
-
},
|
|
4628
|
+
k(L), w();
|
|
4629
|
+
}, k = (L) => {
|
|
4626
4630
|
const { isoDate: R, isValid: D } = b(L);
|
|
4627
4631
|
t && t(D && R || L);
|
|
4628
4632
|
}, A = (L) => {
|
|
4629
4633
|
f(L);
|
|
4630
|
-
},
|
|
4631
|
-
L.key === "Enter" && (L.preventDefault(),
|
|
4634
|
+
}, O = (L) => {
|
|
4635
|
+
L.key === "Enter" && (L.preventDefault(), k(u));
|
|
4632
4636
|
};
|
|
4633
4637
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
4634
4638
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4639,7 +4643,7 @@ const gs = ({
|
|
|
4639
4643
|
placeholder: e,
|
|
4640
4644
|
onBlur: v,
|
|
4641
4645
|
onChange: A,
|
|
4642
|
-
onKeyDown:
|
|
4646
|
+
onKeyDown: O,
|
|
4643
4647
|
shapeIcon: "calendar",
|
|
4644
4648
|
onShapeIconClick: T,
|
|
4645
4649
|
ref: y,
|
|
@@ -4675,7 +4679,7 @@ const gs = ({
|
|
|
4675
4679
|
onBlur: f,
|
|
4676
4680
|
...y
|
|
4677
4681
|
}) => {
|
|
4678
|
-
const p = n.map((E) => E.bindValue),
|
|
4682
|
+
const p = n.map((E) => E.bindValue), w = (E, b) => {
|
|
4679
4683
|
const T = [...n];
|
|
4680
4684
|
if (E == "")
|
|
4681
4685
|
T.pop();
|
|
@@ -4689,13 +4693,13 @@ const gs = ({
|
|
|
4689
4693
|
});
|
|
4690
4694
|
}
|
|
4691
4695
|
u?.(T);
|
|
4692
|
-
},
|
|
4696
|
+
}, S = {
|
|
4693
4697
|
container: "smp-multipleAutocomplete-container"
|
|
4694
4698
|
};
|
|
4695
4699
|
return /* @__PURE__ */ m.jsxs(
|
|
4696
4700
|
"div",
|
|
4697
4701
|
{
|
|
4698
|
-
className:
|
|
4702
|
+
className: S.container,
|
|
4699
4703
|
"data-component": "multiple-autocomplete",
|
|
4700
4704
|
children: [
|
|
4701
4705
|
o && /* @__PURE__ */ m.jsx(De, { label: o, disabled: i }),
|
|
@@ -4717,7 +4721,7 @@ const gs = ({
|
|
|
4717
4721
|
bindValue: "",
|
|
4718
4722
|
fun: l,
|
|
4719
4723
|
isEditable: s,
|
|
4720
|
-
onChange:
|
|
4724
|
+
onChange: w,
|
|
4721
4725
|
_changeOnEnter: !0,
|
|
4722
4726
|
listDisplayMode: r,
|
|
4723
4727
|
minimumChars: t,
|
|
@@ -4745,7 +4749,7 @@ const gs = ({
|
|
|
4745
4749
|
}
|
|
4746
4750
|
);
|
|
4747
4751
|
}, vs = ({ ...n }) => {
|
|
4748
|
-
const [e, t] = G(n.bindValue), { translate: r } =
|
|
4752
|
+
const [e, t] = G(n.bindValue), { translate: r } = $e(), s = (a) => {
|
|
4749
4753
|
a.key === "Enter" && (a.preventDefault(), n.onEnter?.(e));
|
|
4750
4754
|
};
|
|
4751
4755
|
return /* @__PURE__ */ m.jsx(
|
|
@@ -4827,7 +4831,7 @@ const Ne = (n, e, t) => ({
|
|
|
4827
4831
|
bindValue: r,
|
|
4828
4832
|
optionalDisplayValue: t.length >= s ? t[s] : ""
|
|
4829
4833
|
}));
|
|
4830
|
-
},
|
|
4834
|
+
}, ws = (n, e) => {
|
|
4831
4835
|
const t = new Re(
|
|
4832
4836
|
n.obj,
|
|
4833
4837
|
e.map((s) => s.bindValue)
|
|
@@ -4836,7 +4840,7 @@ const Ne = (n, e, t) => ({
|
|
|
4836
4840
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4837
4841
|
).getLegacyValue();
|
|
4838
4842
|
return Ne(n, t, r);
|
|
4839
|
-
},
|
|
4843
|
+
}, Ss = (n) => {
|
|
4840
4844
|
switch (n) {
|
|
4841
4845
|
case "CodeOnly":
|
|
4842
4846
|
return 15;
|
|
@@ -4859,56 +4863,56 @@ const Ne = (n, e, t) => ({
|
|
|
4859
4863
|
onEnter: i,
|
|
4860
4864
|
...l
|
|
4861
4865
|
}) => {
|
|
4862
|
-
const { getCurrentLanguage: c } =
|
|
4866
|
+
const { getCurrentLanguage: c } = $e(), d = le(null), u = c(), { groupingChar: f, decimalChar: y } = Vn(
|
|
4863
4867
|
() => ns(u, s),
|
|
4864
4868
|
[u, s]
|
|
4865
4869
|
), p = ue(
|
|
4866
|
-
(
|
|
4870
|
+
(C, P) => new Intl.NumberFormat(u, {
|
|
4867
4871
|
minimumFractionDigits: P,
|
|
4868
4872
|
maximumFractionDigits: P,
|
|
4869
4873
|
useGrouping: !0
|
|
4870
|
-
}).format(
|
|
4874
|
+
}).format(C),
|
|
4871
4875
|
[u]
|
|
4872
|
-
),
|
|
4876
|
+
), w = ue(as, [f, y]), S = ue(ts, [n, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, T] = G(E), [v, g] = G(
|
|
4873
4877
|
a != null ? p(a, b) : ""
|
|
4874
|
-
),
|
|
4878
|
+
), k = le(a ?? null);
|
|
4875
4879
|
ne(() => {
|
|
4876
4880
|
if (a == null) {
|
|
4877
|
-
g(""),
|
|
4881
|
+
g(""), k.current = null;
|
|
4878
4882
|
return;
|
|
4879
4883
|
}
|
|
4880
|
-
const
|
|
4881
|
-
P !== b && T(P), g(p(a, P)),
|
|
4884
|
+
const C = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = C === 0 ? b : C;
|
|
4885
|
+
P !== b && T(P), g(p(a, P)), k.current = a;
|
|
4882
4886
|
}, [a, p]);
|
|
4883
4887
|
const A = ue(
|
|
4884
|
-
(
|
|
4885
|
-
if (
|
|
4886
|
-
g(""),
|
|
4888
|
+
(C, P = !1) => {
|
|
4889
|
+
if (C.trim() === "") {
|
|
4890
|
+
g(""), k.current = null, o?.(void 0, ""), P && i?.(void 0);
|
|
4887
4891
|
return;
|
|
4888
4892
|
}
|
|
4889
|
-
const N =
|
|
4893
|
+
const N = w(C, f, y);
|
|
4890
4894
|
if (isNaN(N))
|
|
4891
|
-
if (
|
|
4892
|
-
const B = p(
|
|
4895
|
+
if (k.current != null) {
|
|
4896
|
+
const B = p(k.current, b);
|
|
4893
4897
|
g(B);
|
|
4894
4898
|
} else
|
|
4895
4899
|
g("");
|
|
4896
4900
|
else {
|
|
4897
|
-
const B =
|
|
4898
|
-
|
|
4901
|
+
const B = S(N, n, e), H = ss(
|
|
4902
|
+
C,
|
|
4899
4903
|
f,
|
|
4900
4904
|
y
|
|
4901
4905
|
);
|
|
4902
4906
|
T(H);
|
|
4903
|
-
const
|
|
4904
|
-
g(
|
|
4907
|
+
const z = p(B, H);
|
|
4908
|
+
g(z), k.current = B, o?.(B, z), P && i?.(B);
|
|
4905
4909
|
}
|
|
4906
4910
|
},
|
|
4907
4911
|
[
|
|
4908
|
-
|
|
4912
|
+
w,
|
|
4909
4913
|
f,
|
|
4910
4914
|
y,
|
|
4911
|
-
|
|
4915
|
+
S,
|
|
4912
4916
|
n,
|
|
4913
4917
|
e,
|
|
4914
4918
|
p,
|
|
@@ -4916,20 +4920,20 @@ const Ne = (n, e, t) => ({
|
|
|
4916
4920
|
i,
|
|
4917
4921
|
b
|
|
4918
4922
|
]
|
|
4919
|
-
),
|
|
4920
|
-
if (
|
|
4921
|
-
|
|
4923
|
+
), O = (C) => g(C), L = () => A(v), R = (C) => {
|
|
4924
|
+
if (C.key === "Enter") {
|
|
4925
|
+
C.preventDefault(), A(v, !0);
|
|
4922
4926
|
return;
|
|
4923
4927
|
}
|
|
4924
|
-
if (
|
|
4925
|
-
|
|
4926
|
-
const P =
|
|
4928
|
+
if (C.key === "ArrowUp" || C.key === "ArrowDown") {
|
|
4929
|
+
C.preventDefault();
|
|
4930
|
+
const P = C.key === "ArrowUp" ? 1 : -1, N = k.current ?? 0, B = S(N + P * t, n, e);
|
|
4927
4931
|
A(p(B, b));
|
|
4928
4932
|
}
|
|
4929
|
-
}, D = (
|
|
4930
|
-
if (!
|
|
4931
|
-
|
|
4932
|
-
const P =
|
|
4933
|
+
}, D = (C) => {
|
|
4934
|
+
if (!C.currentTarget.contains(document.activeElement)) return;
|
|
4935
|
+
C.preventDefault();
|
|
4936
|
+
const P = C.deltaY < 0 ? 1 : -1, N = k.current ?? 0, B = S(N + P * t, n, e);
|
|
4933
4937
|
A(p(B, b));
|
|
4934
4938
|
};
|
|
4935
4939
|
return /* @__PURE__ */ m.jsx("div", { ref: d, "data-component": "input-number", onWheel: D, children: /* @__PURE__ */ m.jsx(
|
|
@@ -4938,14 +4942,14 @@ const Ne = (n, e, t) => ({
|
|
|
4938
4942
|
...l,
|
|
4939
4943
|
"aria-valuemin": n,
|
|
4940
4944
|
"aria-valuemax": e,
|
|
4941
|
-
"aria-valuenow":
|
|
4945
|
+
"aria-valuenow": k.current ?? void 0,
|
|
4942
4946
|
bindValue: v,
|
|
4943
4947
|
inputType: "text",
|
|
4944
4948
|
inputMode: r,
|
|
4945
4949
|
min: n,
|
|
4946
4950
|
max: e,
|
|
4947
4951
|
step: t,
|
|
4948
|
-
onChange:
|
|
4952
|
+
onChange: O,
|
|
4949
4953
|
onBlur: L,
|
|
4950
4954
|
onKeyDown: R
|
|
4951
4955
|
}
|
|
@@ -5011,18 +5015,18 @@ const Ts = ({
|
|
|
5011
5015
|
rows: y = 10,
|
|
5012
5016
|
cols: p = 35
|
|
5013
5017
|
}) => {
|
|
5014
|
-
const
|
|
5018
|
+
const w = Ce(), S = `${w}-helper`, E = d ? "danger" : s, b = c || !!d, T = (g) => {
|
|
5015
5019
|
t?.(g.target.value);
|
|
5016
5020
|
}, v = {
|
|
5017
5021
|
wrapper: "smp-textarea-wrapper",
|
|
5018
5022
|
container: `smp-textarea ${n ? "smp-textarea-disabled" : ""} ${r ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${o ? "" : "smp-textarea-readOnly"}`
|
|
5019
5023
|
};
|
|
5020
5024
|
return /* @__PURE__ */ m.jsxs("div", { className: v.wrapper, "data-component": "textarea", children: [
|
|
5021
|
-
i && /* @__PURE__ */ m.jsx(De, { htmlFor:
|
|
5025
|
+
i && /* @__PURE__ */ m.jsx(De, { htmlFor: w, label: i, disabled: n }),
|
|
5022
5026
|
/* @__PURE__ */ m.jsx(
|
|
5023
5027
|
"textarea",
|
|
5024
5028
|
{
|
|
5025
|
-
id:
|
|
5029
|
+
id: w,
|
|
5026
5030
|
value: e,
|
|
5027
5031
|
placeholder: r,
|
|
5028
5032
|
onChange: T,
|
|
@@ -5032,16 +5036,16 @@ const Ts = ({
|
|
|
5032
5036
|
readOnly: !o,
|
|
5033
5037
|
onKeyDown: f,
|
|
5034
5038
|
"aria-label": i ? void 0 : l,
|
|
5035
|
-
"aria-labelledby": i ?
|
|
5036
|
-
"aria-describedby": b ?
|
|
5039
|
+
"aria-labelledby": i ? w : void 0,
|
|
5040
|
+
"aria-describedby": b ? S : void 0,
|
|
5037
5041
|
rows: y,
|
|
5038
5042
|
cols: p
|
|
5039
5043
|
}
|
|
5040
5044
|
),
|
|
5041
5045
|
b && /* @__PURE__ */ m.jsx(
|
|
5042
|
-
|
|
5046
|
+
$n,
|
|
5043
5047
|
{
|
|
5044
|
-
id:
|
|
5048
|
+
id: S,
|
|
5045
5049
|
helperText: d,
|
|
5046
5050
|
disabled: n,
|
|
5047
5051
|
state: E
|
|
@@ -5074,9 +5078,9 @@ const Pe = {
|
|
|
5074
5078
|
console.error("Error during loading options (radio)", g);
|
|
5075
5079
|
});
|
|
5076
5080
|
}, [c, a, o]);
|
|
5077
|
-
const f = parseInt(r ?? "", 10), y = t === jt.LINE_DIRECTION, p = y && !isNaN(f),
|
|
5081
|
+
const f = parseInt(r ?? "", 10), y = t === jt.LINE_DIRECTION, p = y && !isNaN(f), w = p ? Pe["smp-radio-horizontal-grid"] : y ? Pe["smp-radio-horizontal"] : "", S = p ? { gridTemplateColumns: `repeat(${f}, 1fr)` } : void 0, E = {
|
|
5078
5082
|
container: Pe["smp-radio"],
|
|
5079
|
-
optionsContainer: `${Pe["smp-radio-options-container"]} ${
|
|
5083
|
+
optionsContainer: `${Pe["smp-radio-options-container"]} ${w}`,
|
|
5080
5084
|
option: `${Pe["smp-radio-element"]} ${n ? Pe["smp-radio-disabled"] : ""}`
|
|
5081
5085
|
}, b = () => {
|
|
5082
5086
|
n || l.onBlur?.();
|
|
@@ -5085,7 +5089,7 @@ const Pe = {
|
|
|
5085
5089
|
}, v = Ce();
|
|
5086
5090
|
return /* @__PURE__ */ m.jsxs("div", { "smp-id": "radio-container", className: E.container, id: u, children: [
|
|
5087
5091
|
i && /* @__PURE__ */ m.jsx(De, { label: i, disabled: n, htmlFor: u }),
|
|
5088
|
-
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style:
|
|
5092
|
+
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((g, k) => /* @__PURE__ */ m.jsxs("label", { className: E.option, children: [
|
|
5089
5093
|
/* @__PURE__ */ m.jsx(
|
|
5090
5094
|
"input",
|
|
5091
5095
|
{
|
|
@@ -5109,7 +5113,7 @@ const Pe = {
|
|
|
5109
5113
|
)
|
|
5110
5114
|
}
|
|
5111
5115
|
)
|
|
5112
|
-
] },
|
|
5116
|
+
] }, k)) })
|
|
5113
5117
|
] });
|
|
5114
5118
|
}, Os = ({
|
|
5115
5119
|
value: n,
|
|
@@ -5186,23 +5190,23 @@ const Pe = {
|
|
|
5186
5190
|
i(!1), a?.current?.focus();
|
|
5187
5191
|
}, []);
|
|
5188
5192
|
ht([y, f], o, () => i(!1)), It(o, y), ne(() => {
|
|
5189
|
-
const g = n || "",
|
|
5190
|
-
c(g), u(
|
|
5193
|
+
const g = n || "", k = Tn(g) ? g : n || "";
|
|
5194
|
+
c(g), u(k);
|
|
5191
5195
|
}, [n]), ne(() => {
|
|
5192
|
-
const g = (
|
|
5193
|
-
|
|
5196
|
+
const g = (k) => {
|
|
5197
|
+
k.key === "Escape" && i(!1);
|
|
5194
5198
|
};
|
|
5195
5199
|
return o && document.addEventListener("keydown", g), () => {
|
|
5196
5200
|
document.removeEventListener("keydown", g);
|
|
5197
5201
|
};
|
|
5198
5202
|
}, [o]);
|
|
5199
|
-
const
|
|
5203
|
+
const w = () => {
|
|
5200
5204
|
r && i((g) => !g);
|
|
5201
|
-
},
|
|
5205
|
+
}, S = (g) => {
|
|
5202
5206
|
u(g);
|
|
5203
|
-
}, E = (g,
|
|
5204
|
-
const
|
|
5205
|
-
c(
|
|
5207
|
+
}, E = (g, k, A) => {
|
|
5208
|
+
const O = Rs(g, k, A);
|
|
5209
|
+
c(O), u(O), t?.(O), p();
|
|
5206
5210
|
}, b = () => {
|
|
5207
5211
|
v(d);
|
|
5208
5212
|
}, T = (g) => {
|
|
@@ -5221,11 +5225,11 @@ const Pe = {
|
|
|
5221
5225
|
...s,
|
|
5222
5226
|
bindValue: d,
|
|
5223
5227
|
placeholder: e,
|
|
5224
|
-
onChange:
|
|
5228
|
+
onChange: S,
|
|
5225
5229
|
onBlur: b,
|
|
5226
5230
|
onKeyDown: T,
|
|
5227
5231
|
shapeIcon: "clock",
|
|
5228
|
-
onShapeIconClick:
|
|
5232
|
+
onShapeIconClick: w,
|
|
5229
5233
|
isEditable: r,
|
|
5230
5234
|
ref: f,
|
|
5231
5235
|
inputRef: a
|
|
@@ -5281,9 +5285,9 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5281
5285
|
}
|
|
5282
5286
|
}
|
|
5283
5287
|
]
|
|
5284
|
-
]),
|
|
5288
|
+
]), $s = {
|
|
5285
5289
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5286
|
-
}, ce = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" || n.toLocaleLowerCase() == "true" : n,
|
|
5290
|
+
}, ce = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" || n.toLocaleLowerCase() == "true" : n, ks = ({
|
|
5287
5291
|
bindValue: n,
|
|
5288
5292
|
disabled: e = !1,
|
|
5289
5293
|
displayMode: t = "DescOnly",
|
|
@@ -5305,7 +5309,7 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5305
5309
|
container: `smp-button-group-container ${ce(r) ? "smp-button-group-vertical" : ""}`
|
|
5306
5310
|
};
|
|
5307
5311
|
return /* @__PURE__ */ m.jsx("div", { "smp-id": "buttonGroup-container", className: u.container, children: l?.map((f) => /* @__PURE__ */ m.jsx(
|
|
5308
|
-
|
|
5312
|
+
we,
|
|
5309
5313
|
{
|
|
5310
5314
|
appearance: "raised",
|
|
5311
5315
|
variant: "base",
|
|
@@ -5340,8 +5344,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5340
5344
|
onEnter: f,
|
|
5341
5345
|
onBlur: y,
|
|
5342
5346
|
onOptionsRequest: p,
|
|
5343
|
-
onContextMenu:
|
|
5344
|
-
isEditable:
|
|
5347
|
+
onContextMenu: w,
|
|
5348
|
+
isEditable: S,
|
|
5345
5349
|
dSep: E = "."
|
|
5346
5350
|
}) => {
|
|
5347
5351
|
const b = {
|
|
@@ -5359,44 +5363,44 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5359
5363
|
placeholderIcon: o,
|
|
5360
5364
|
tooltip: l,
|
|
5361
5365
|
label: i,
|
|
5362
|
-
isEditable:
|
|
5363
|
-
size: b.data && b.data.size ? b.data.size : b.data?.displayMode &&
|
|
5366
|
+
isEditable: S,
|
|
5367
|
+
size: b.data && b.data.size ? b.data.size : b.data?.displayMode && Ss(b.data.displayMode || "CodeOnly"),
|
|
5364
5368
|
...r
|
|
5365
|
-
}, g = (D,
|
|
5369
|
+
}, g = (D, C, P) => yr(t) ? Ne(D, new it(t, C).getLegacyValue()) : br(t) ? Ne(D, new dt(t, C).getLegacyValue()) : Ne(D, C, P), k = (D, C) => Ne(
|
|
5366
5370
|
D,
|
|
5367
|
-
new Ge(t,
|
|
5368
|
-
), A = (D) => Ne(b, new ot(t, D).getLegacyValue()),
|
|
5371
|
+
new Ge(t, C, E).getLegacyValue()
|
|
5372
|
+
), A = (D) => Ne(b, new ot(t, D).getLegacyValue()), O = (D) => ws(b, D), L = () => {
|
|
5369
5373
|
switch (T) {
|
|
5370
5374
|
case te.AUTOCOMPLETE: {
|
|
5371
5375
|
const D = {
|
|
5372
5376
|
...v,
|
|
5373
5377
|
bindValue: t.k,
|
|
5374
5378
|
optionalDisplayValue: n,
|
|
5375
|
-
onChange: (
|
|
5376
|
-
d?.(g(b,
|
|
5379
|
+
onChange: (C, P) => {
|
|
5380
|
+
d?.(g(b, C, P));
|
|
5377
5381
|
}
|
|
5378
5382
|
};
|
|
5379
5383
|
return /* @__PURE__ */ m.jsx(In, { ...D });
|
|
5380
5384
|
}
|
|
5381
5385
|
case te.BUTTON: {
|
|
5382
|
-
const D = {
|
|
5386
|
+
const D = r?.label && typeof r.label == "string" ? r.label : void 0, C = {
|
|
5383
5387
|
...v,
|
|
5384
|
-
bindValue:
|
|
5385
|
-
|
|
5388
|
+
bindValue: D || "",
|
|
5389
|
+
showText: !!D,
|
|
5386
5390
|
title: n,
|
|
5387
5391
|
onClick: () => {
|
|
5388
5392
|
u?.(g(b, t.k));
|
|
5389
5393
|
}
|
|
5390
5394
|
};
|
|
5391
|
-
return /* @__PURE__ */ m.jsx(
|
|
5395
|
+
return /* @__PURE__ */ m.jsx(we, { ...C });
|
|
5392
5396
|
}
|
|
5393
5397
|
case te.BUTTON_LIST: {
|
|
5394
5398
|
const D = {
|
|
5395
5399
|
...v,
|
|
5396
5400
|
options: c,
|
|
5397
|
-
onClick: (
|
|
5401
|
+
onClick: (C, P) => {
|
|
5398
5402
|
const N = { ...b, fun: P };
|
|
5399
|
-
u?.(g(N,
|
|
5403
|
+
u?.(g(N, C));
|
|
5400
5404
|
}
|
|
5401
5405
|
};
|
|
5402
5406
|
return /* @__PURE__ */ m.jsx(us, { ...D });
|
|
@@ -5410,7 +5414,7 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5410
5414
|
}
|
|
5411
5415
|
case te.CHECKBOX:
|
|
5412
5416
|
case te.SWITCH: {
|
|
5413
|
-
const D = e === te.SWITCH,
|
|
5417
|
+
const D = e === te.SWITCH, C = {
|
|
5414
5418
|
...v,
|
|
5415
5419
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5416
5420
|
optionalDisplayValue: n,
|
|
@@ -5419,15 +5423,15 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5419
5423
|
},
|
|
5420
5424
|
...D && { variant: "switch" }
|
|
5421
5425
|
};
|
|
5422
|
-
return /* @__PURE__ */ m.jsx(fs, { ...
|
|
5426
|
+
return /* @__PURE__ */ m.jsx(fs, { ...C });
|
|
5423
5427
|
}
|
|
5424
5428
|
case te.COMBOBOX: {
|
|
5425
5429
|
const D = {
|
|
5426
5430
|
...v,
|
|
5427
5431
|
bindValue: t.k,
|
|
5428
5432
|
optionalDisplayValue: n,
|
|
5429
|
-
onChange: (
|
|
5430
|
-
d?.(g(b,
|
|
5433
|
+
onChange: (C, P) => {
|
|
5434
|
+
d?.(g(b, C, P));
|
|
5431
5435
|
}
|
|
5432
5436
|
};
|
|
5433
5437
|
return /* @__PURE__ */ m.jsx(ps, { ...D });
|
|
@@ -5436,8 +5440,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5436
5440
|
const D = {
|
|
5437
5441
|
...v,
|
|
5438
5442
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5439
|
-
onChange: (
|
|
5440
|
-
d?.(g(b,
|
|
5443
|
+
onChange: (C) => {
|
|
5444
|
+
d?.(g(b, C));
|
|
5441
5445
|
}
|
|
5442
5446
|
};
|
|
5443
5447
|
return /* @__PURE__ */ m.jsx(gs, { ...D });
|
|
@@ -5458,8 +5462,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5458
5462
|
const D = {
|
|
5459
5463
|
...v,
|
|
5460
5464
|
bindValue: Ge.fromDataObj(t, E).getValue(),
|
|
5461
|
-
onChange: (
|
|
5462
|
-
d?.(
|
|
5465
|
+
onChange: (C) => {
|
|
5466
|
+
d?.(k(b, C));
|
|
5463
5467
|
}
|
|
5464
5468
|
};
|
|
5465
5469
|
return /* @__PURE__ */ m.jsx(Es, { ...D });
|
|
@@ -5470,8 +5474,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5470
5474
|
...v,
|
|
5471
5475
|
bindValue: t.k,
|
|
5472
5476
|
optionalDisplayValue: n,
|
|
5473
|
-
onChange: (
|
|
5474
|
-
d?.(g(b,
|
|
5477
|
+
onChange: (C) => {
|
|
5478
|
+
d?.(g(b, C));
|
|
5475
5479
|
}
|
|
5476
5480
|
};
|
|
5477
5481
|
return /* @__PURE__ */ m.jsx(Ts, { ...D });
|
|
@@ -5480,8 +5484,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5480
5484
|
const D = {
|
|
5481
5485
|
...v,
|
|
5482
5486
|
elements: En(b),
|
|
5483
|
-
onChange: (
|
|
5484
|
-
d?.(C
|
|
5487
|
+
onChange: (C) => {
|
|
5488
|
+
d?.(O(C));
|
|
5485
5489
|
}
|
|
5486
5490
|
};
|
|
5487
5491
|
return /* @__PURE__ */ m.jsx(ys, { ...D });
|
|
@@ -5490,8 +5494,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5490
5494
|
const D = {
|
|
5491
5495
|
...v,
|
|
5492
5496
|
bindValue: t.k,
|
|
5493
|
-
onChange: (
|
|
5494
|
-
d?.(g(b,
|
|
5497
|
+
onChange: (C) => {
|
|
5498
|
+
d?.(g(b, C));
|
|
5495
5499
|
}
|
|
5496
5500
|
};
|
|
5497
5501
|
return /* @__PURE__ */ m.jsx(bs, { ...D });
|
|
@@ -5500,8 +5504,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5500
5504
|
const D = {
|
|
5501
5505
|
...v,
|
|
5502
5506
|
bindValue: t.k,
|
|
5503
|
-
onChange: (
|
|
5504
|
-
d?.(g(b,
|
|
5507
|
+
onChange: (C, P) => {
|
|
5508
|
+
d?.(g(b, C, P));
|
|
5505
5509
|
}
|
|
5506
5510
|
};
|
|
5507
5511
|
return /* @__PURE__ */ m.jsx(Cs, { ...D });
|
|
@@ -5510,8 +5514,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5510
5514
|
const D = {
|
|
5511
5515
|
...v,
|
|
5512
5516
|
bindValue: t.k,
|
|
5513
|
-
onEnter: (
|
|
5514
|
-
f?.(g(b,
|
|
5517
|
+
onEnter: (C) => {
|
|
5518
|
+
f?.(g(b, C));
|
|
5515
5519
|
}
|
|
5516
5520
|
};
|
|
5517
5521
|
return /* @__PURE__ */ m.jsx(vs, { ...D });
|
|
@@ -5521,8 +5525,8 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5521
5525
|
...v,
|
|
5522
5526
|
bindValue: t.k,
|
|
5523
5527
|
optionalDisplayValue: n,
|
|
5524
|
-
onChange: (
|
|
5525
|
-
d?.(g(b,
|
|
5528
|
+
onChange: (C) => {
|
|
5529
|
+
d?.(g(b, C));
|
|
5526
5530
|
}
|
|
5527
5531
|
};
|
|
5528
5532
|
return /* @__PURE__ */ m.jsx(je, { ...D });
|
|
@@ -5531,18 +5535,18 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5531
5535
|
const D = {
|
|
5532
5536
|
...v,
|
|
5533
5537
|
bindValue: t.k,
|
|
5534
|
-
onChange: (
|
|
5535
|
-
d?.(g(b,
|
|
5538
|
+
onChange: (C, P) => {
|
|
5539
|
+
d?.(g(b, C, P));
|
|
5536
5540
|
}
|
|
5537
5541
|
};
|
|
5538
|
-
return /* @__PURE__ */ m.jsx(
|
|
5542
|
+
return /* @__PURE__ */ m.jsx(ks, { ...D });
|
|
5539
5543
|
}
|
|
5540
5544
|
case te.TIME: {
|
|
5541
5545
|
const D = {
|
|
5542
5546
|
...v,
|
|
5543
5547
|
bindValue: dt.fromDataObj(t).getValue(),
|
|
5544
|
-
onChange: (
|
|
5545
|
-
d?.(g(b,
|
|
5548
|
+
onChange: (C) => {
|
|
5549
|
+
d?.(g(b, C));
|
|
5546
5550
|
}
|
|
5547
5551
|
};
|
|
5548
5552
|
return /* @__PURE__ */ m.jsx(Ds, { ...D });
|
|
@@ -5557,14 +5561,14 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5557
5561
|
}
|
|
5558
5562
|
}
|
|
5559
5563
|
}, R = {
|
|
5560
|
-
wrapper: `${
|
|
5564
|
+
wrapper: `${$s["smp-cell-wrapper"]}`
|
|
5561
5565
|
};
|
|
5562
5566
|
return /* @__PURE__ */ m.jsx(
|
|
5563
5567
|
"span",
|
|
5564
5568
|
{
|
|
5565
5569
|
className: R.wrapper,
|
|
5566
5570
|
onContextMenu: (D) => {
|
|
5567
|
-
|
|
5571
|
+
w && l && (D.preventDefault(), w(b, D.currentTarget));
|
|
5568
5572
|
},
|
|
5569
5573
|
children: L()
|
|
5570
5574
|
}
|
|
@@ -5636,22 +5640,22 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5636
5640
|
loadOptions: l,
|
|
5637
5641
|
onContextMenu: c
|
|
5638
5642
|
}) => {
|
|
5639
|
-
const [d, u] = G(), [f, y] = G(t ?? !0), p = le(null),
|
|
5643
|
+
const [d, u] = G(), [f, y] = G(t ?? !0), p = le(null), w = s.trim() ? s : "100vh", S = ue(
|
|
5640
5644
|
(v) => {
|
|
5641
5645
|
if (!v?.rows?.length || !v?.columns?.length)
|
|
5642
5646
|
return {};
|
|
5643
5647
|
const g = v.rows[0];
|
|
5644
|
-
return v.columns.filter((
|
|
5645
|
-
const
|
|
5646
|
-
if (!
|
|
5647
|
-
return
|
|
5648
|
+
return v.columns.filter((k) => k.visible ?? !0).reduce((k, A) => {
|
|
5649
|
+
const O = g.cells[A.name];
|
|
5650
|
+
if (!O || !f && ce(r) && O.shape !== te.BUTTON && O.shape !== te.BUTTON_LIST)
|
|
5651
|
+
return k;
|
|
5648
5652
|
const L = {
|
|
5649
|
-
...
|
|
5653
|
+
...O,
|
|
5650
5654
|
id: A.name,
|
|
5651
5655
|
onChange: (R) => {
|
|
5652
5656
|
u((D) => {
|
|
5653
|
-
const
|
|
5654
|
-
return
|
|
5657
|
+
const C = { ...D };
|
|
5658
|
+
return C?.[A.name] && (C[A.name].obj.k = R.obj.k), C;
|
|
5655
5659
|
});
|
|
5656
5660
|
},
|
|
5657
5661
|
onClick: (R) => {
|
|
@@ -5664,15 +5668,15 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5664
5668
|
c && c(R, D);
|
|
5665
5669
|
}
|
|
5666
5670
|
};
|
|
5667
|
-
return l &&
|
|
5668
|
-
(
|
|
5671
|
+
return l && O.shape == te.BUTTON_LIST && (L.onOptionsRequest = (R, D) => l(R, D).then(
|
|
5672
|
+
(C) => Ls(C)
|
|
5669
5673
|
)), !f && ce(r) && (L.data = {
|
|
5670
5674
|
...L.data,
|
|
5671
5675
|
showText: !1,
|
|
5672
5676
|
justify: "center",
|
|
5673
5677
|
squared: !0
|
|
5674
5678
|
}), {
|
|
5675
|
-
|
|
5679
|
+
...k,
|
|
5676
5680
|
[A.name]: L
|
|
5677
5681
|
};
|
|
5678
5682
|
}, {});
|
|
@@ -5684,12 +5688,12 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5684
5688
|
ce(r) ? y((v) => !v) : (y(!1), i?.());
|
|
5685
5689
|
};
|
|
5686
5690
|
if (ne(() => {
|
|
5687
|
-
u(
|
|
5691
|
+
u(S(n));
|
|
5688
5692
|
}, [n]), ne(() => {
|
|
5689
5693
|
if (!p.current)
|
|
5690
5694
|
return;
|
|
5691
5695
|
if (!ce(r)) {
|
|
5692
|
-
u(
|
|
5696
|
+
u(S(n));
|
|
5693
5697
|
return;
|
|
5694
5698
|
}
|
|
5695
5699
|
const v = getComputedStyle(p.current).getPropertyValue(
|
|
@@ -5697,7 +5701,7 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5697
5701
|
);
|
|
5698
5702
|
let g = Number(v);
|
|
5699
5703
|
v.endsWith("ms") ? g = parseFloat(v) : v.endsWith("s") && (g = parseFloat(v) * 1e3), setTimeout(() => {
|
|
5700
|
-
u(
|
|
5704
|
+
u(S(n));
|
|
5701
5705
|
}, g / 2);
|
|
5702
5706
|
}, [f, r]), ne(() => {
|
|
5703
5707
|
t !== void 0 && !ce(r) && y(t);
|
|
@@ -5727,7 +5731,7 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5727
5731
|
{
|
|
5728
5732
|
ref: p,
|
|
5729
5733
|
className: T.drawer,
|
|
5730
|
-
style: { height:
|
|
5734
|
+
style: { height: w },
|
|
5731
5735
|
"aria-label": "Drawer",
|
|
5732
5736
|
"smp-id": "drawer",
|
|
5733
5737
|
children: /* @__PURE__ */ m.jsxs("div", { className: T.container, children: [
|
|
@@ -5775,26 +5779,26 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5775
5779
|
ForceUM: f,
|
|
5776
5780
|
UmColName: y,
|
|
5777
5781
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5778
|
-
ForceValue:
|
|
5779
|
-
ValueColName:
|
|
5782
|
+
ForceValue: w,
|
|
5783
|
+
ValueColName: S,
|
|
5780
5784
|
ValueColor: E = "var(--smp-dashList-color-base)",
|
|
5781
5785
|
SelectLayout: b = "1",
|
|
5782
5786
|
onClick: T
|
|
5783
5787
|
}) => {
|
|
5784
|
-
const v = "N/A", g = e?.columns || [],
|
|
5788
|
+
const v = "N/A", g = e?.columns || [], k = e?.rows || [], A = k.length > 0, O = "--smp-dashList-color", L = "smp-layout", R = "descr", D = "icon", C = "um", P = "value", N = o || "1em", B = "18px", H = "--smp-dashList-columns", z = "--smp-dashList-fontSize", X = {
|
|
5785
5789
|
dash: (Y = "1") => {
|
|
5786
|
-
const Z = h(Y), re = Z, ae = x(Z, R),
|
|
5790
|
+
const Z = h(Y), re = Z, ae = x(Z, R), ke = x(Z, D), Me = x(Z, C), ge = x(Z, P);
|
|
5787
5791
|
return {
|
|
5788
5792
|
container: re,
|
|
5789
5793
|
descr: ae,
|
|
5790
|
-
icon:
|
|
5794
|
+
icon: ke,
|
|
5791
5795
|
um: Me,
|
|
5792
5796
|
value: ge
|
|
5793
5797
|
};
|
|
5794
5798
|
},
|
|
5795
5799
|
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
5796
5800
|
${ce(i) ? "smp-dash-list-horizontal" : ""}`
|
|
5797
|
-
}, { format: F } =
|
|
5801
|
+
}, { format: F } = $e(), h = (Y) => `${L}-${Y}`, x = (Y, Z) => `${Y}__${Z}`, $ = (Y) => `${O}-${Y}`, _ = (Y) => {
|
|
5798
5802
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5799
5803
|
if (Z.test(Y)) {
|
|
5800
5804
|
const ae = Y.match(Z) || [];
|
|
@@ -5806,9 +5810,9 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5806
5810
|
if (!u) return Y;
|
|
5807
5811
|
const [Z, re] = I(u).map(
|
|
5808
5812
|
(Le) => parseInt(Le || "0")
|
|
5809
|
-
), ae = "0,0" + (re ? "." + "0".repeat(re) : ""),
|
|
5810
|
-
if (!Z) return
|
|
5811
|
-
const [Me, ge] =
|
|
5813
|
+
), ae = "0,0" + (re ? "." + "0".repeat(re) : ""), ke = F(Y, ae, "it");
|
|
5814
|
+
if (!Z) return ke;
|
|
5815
|
+
const [Me, ge] = ke.split(",");
|
|
5812
5816
|
return Me + (ge ? `,${ge}` : "");
|
|
5813
5817
|
}, I = (Y) => Y.includes(";") ? Y.split(";") : [Y], U = (Y) => {
|
|
5814
5818
|
const Z = (ae) => {
|
|
@@ -5822,13 +5826,13 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5822
5826
|
descr: t || Z(r) || re(2) || "",
|
|
5823
5827
|
icon: l || Z(c) || re(3) || "",
|
|
5824
5828
|
um: f || Z(y) || re(1) || "",
|
|
5825
|
-
value:
|
|
5829
|
+
value: w || Z(S) || re(0) || ""
|
|
5826
5830
|
};
|
|
5827
5831
|
}, W = (Y) => {
|
|
5828
5832
|
T?.(Y);
|
|
5829
5833
|
}, V = (Y, Z) => {
|
|
5830
5834
|
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(), W(Z));
|
|
5831
|
-
},
|
|
5835
|
+
}, q = ((Y) => {
|
|
5832
5836
|
const Z = X.dash(Y);
|
|
5833
5837
|
return {
|
|
5834
5838
|
className: Z,
|
|
@@ -5842,31 +5846,31 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5842
5846
|
width: B
|
|
5843
5847
|
}
|
|
5844
5848
|
) }, `${Y}-${D}`),
|
|
5845
|
-
um: (re) => /* @__PURE__ */ m.jsx("div", { className: Z.um, children: re }, `${Y}-${
|
|
5849
|
+
um: (re) => /* @__PURE__ */ m.jsx("div", { className: Z.um, children: re }, `${Y}-${C}`),
|
|
5846
5850
|
value: (re) => /* @__PURE__ */ m.jsx("div", { className: Z.value, children: re }, `${Y}-${P}`)
|
|
5847
5851
|
};
|
|
5848
5852
|
})(b), se = (Y) => {
|
|
5849
|
-
const { descr: Z, icon: re, um: ae, value:
|
|
5850
|
-
[
|
|
5851
|
-
[
|
|
5852
|
-
[
|
|
5853
|
-
}, ge = [], Le = j(
|
|
5853
|
+
const { descr: Z, icon: re, um: ae, value: ke } = U(Y), Me = {
|
|
5854
|
+
[$(R)]: _(s),
|
|
5855
|
+
[$(C)]: _(p),
|
|
5856
|
+
[$(P)]: _(E)
|
|
5857
|
+
}, ge = [], Le = j(ke);
|
|
5854
5858
|
switch (b) {
|
|
5855
5859
|
case "2":
|
|
5856
|
-
re && ge.push(
|
|
5857
|
-
|
|
5860
|
+
re && ge.push(q.icon(re)), ge.push(q.descr(Z)), ge.push(
|
|
5861
|
+
q.value(ae ? Le + " " + ae : Le)
|
|
5858
5862
|
);
|
|
5859
5863
|
break;
|
|
5860
5864
|
default:
|
|
5861
5865
|
case "1":
|
|
5862
|
-
ge.push(
|
|
5863
|
-
|
|
5866
|
+
ge.push(q.descr(Z)), ge.push(
|
|
5867
|
+
q.value(ae ? Le + " " + ae : Le)
|
|
5864
5868
|
);
|
|
5865
5869
|
}
|
|
5866
5870
|
return /* @__PURE__ */ m.jsx(
|
|
5867
5871
|
"div",
|
|
5868
5872
|
{
|
|
5869
|
-
className:
|
|
5873
|
+
className: q.className.container,
|
|
5870
5874
|
role: "button",
|
|
5871
5875
|
style: Me,
|
|
5872
5876
|
tabIndex: 0,
|
|
@@ -5878,14 +5882,14 @@ const Cn = /* @__PURE__ */ new Map([
|
|
|
5878
5882
|
);
|
|
5879
5883
|
}, M = {
|
|
5880
5884
|
[H]: String(n),
|
|
5881
|
-
[
|
|
5885
|
+
[z]: N
|
|
5882
5886
|
};
|
|
5883
|
-
return /* @__PURE__ */ m.jsx("div", { className: X.dashList, style: M, children: A ?
|
|
5887
|
+
return /* @__PURE__ */ m.jsx("div", { className: X.dashList, style: M, children: A ? k.map((Y) => se(Y)) : v });
|
|
5884
5888
|
}, tt = {
|
|
5885
5889
|
"smp-table": "_smp-table_1qmju_1",
|
|
5886
5890
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5887
5891
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5888
|
-
}, As = "_rowContent_20wit_2", Ps = "_clickable_20wit_21", Is = "_indent_20wit_26", Ns = "_toggle_20wit_32", Ms = "_cell_20wit_38", Fs = "_leftSection_20wit_46",
|
|
5892
|
+
}, As = "_rowContent_20wit_2", Ps = "_clickable_20wit_21", Is = "_indent_20wit_26", Ns = "_toggle_20wit_32", Ms = "_cell_20wit_38", Fs = "_leftSection_20wit_46", Se = {
|
|
5889
5893
|
rowContent: As,
|
|
5890
5894
|
clickable: Ps,
|
|
5891
5895
|
indent: Is,
|
|
@@ -5917,24 +5921,24 @@ const Nn = ({
|
|
|
5917
5921
|
const [a, o] = G(!1), i = nt(n) && !!n.children?.length, l = n.cells && Object.keys(n.cells).length > 0, c = i, d = t * 20, u = () => {
|
|
5918
5922
|
i && o(!a);
|
|
5919
5923
|
}, f = {
|
|
5920
|
-
content: `${
|
|
5921
|
-
toggle: `${
|
|
5922
|
-
indent: `${
|
|
5923
|
-
cell: `${
|
|
5924
|
+
content: `${Se.rowContent} ${i ? Se.clickable : ""}`,
|
|
5925
|
+
toggle: `${Se.toggle}`,
|
|
5926
|
+
indent: `${Se.indent}`,
|
|
5927
|
+
cell: `${Se.cell}`
|
|
5924
5928
|
}, y = (b) => /* @__PURE__ */ m.jsx(Te, { ...b }), p = () => /* @__PURE__ */ m.jsx("span", { className: f.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5925
5929
|
de,
|
|
5926
5930
|
{
|
|
5927
5931
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5928
5932
|
width: 16
|
|
5929
5933
|
}
|
|
5930
|
-
) }),
|
|
5934
|
+
) }), w = () => /* @__PURE__ */ m.jsx(
|
|
5931
5935
|
"span",
|
|
5932
5936
|
{
|
|
5933
5937
|
className: f.indent,
|
|
5934
5938
|
style: { width: `${d}px` },
|
|
5935
5939
|
"aria-hidden": "true"
|
|
5936
5940
|
}
|
|
5937
|
-
),
|
|
5941
|
+
), S = () => {
|
|
5938
5942
|
const b = Vs(n) ? "" : n.decode || (l ? "" : "Untitled"), T = s ?? r * t;
|
|
5939
5943
|
return /* @__PURE__ */ m.jsxs(
|
|
5940
5944
|
"tr",
|
|
@@ -5952,14 +5956,14 @@ const Nn = ({
|
|
|
5952
5956
|
nt(n) && /* @__PURE__ */ m.jsxs(
|
|
5953
5957
|
"td",
|
|
5954
5958
|
{
|
|
5955
|
-
className:
|
|
5959
|
+
className: Se.leftSection,
|
|
5956
5960
|
style: {
|
|
5957
5961
|
height: `${r}px`
|
|
5958
5962
|
},
|
|
5959
5963
|
children: [
|
|
5960
|
-
|
|
5964
|
+
w(),
|
|
5961
5965
|
p(),
|
|
5962
|
-
/* @__PURE__ */ m.jsx("span", { className:
|
|
5966
|
+
/* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children: b })
|
|
5963
5967
|
]
|
|
5964
5968
|
}
|
|
5965
5969
|
),
|
|
@@ -5984,7 +5988,7 @@ const Nn = ({
|
|
|
5984
5988
|
);
|
|
5985
5989
|
}, E = () => a || !i ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(n) && n.children?.map((b, T) => /* @__PURE__ */ m.jsx(Nn, { row: b, level: t + 1 }, `child-${T}`)) });
|
|
5986
5990
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5987
|
-
|
|
5991
|
+
S(),
|
|
5988
5992
|
E()
|
|
5989
5993
|
] });
|
|
5990
5994
|
}, Ws = ({
|
|
@@ -6053,17 +6057,17 @@ function Gs(n, e, t, r) {
|
|
|
6053
6057
|
d(u);
|
|
6054
6058
|
return;
|
|
6055
6059
|
}
|
|
6056
|
-
const p = e[f].column,
|
|
6057
|
-
for (const [
|
|
6058
|
-
const b = [...y,
|
|
6059
|
-
s.push(c(
|
|
6060
|
+
const p = e[f].column, w = i(u, p);
|
|
6061
|
+
for (const [S, E] of w) {
|
|
6062
|
+
const b = [...y, S], T = l(b, f), v = r.has(T);
|
|
6063
|
+
s.push(c(S, T, f, v)), a += t, v && o(E, f + 1, b);
|
|
6060
6064
|
}
|
|
6061
6065
|
}
|
|
6062
6066
|
function i(u, f) {
|
|
6063
6067
|
const y = /* @__PURE__ */ new Map();
|
|
6064
6068
|
for (const p of u) {
|
|
6065
|
-
const
|
|
6066
|
-
y.has(
|
|
6069
|
+
const w = p.cells[f]?.decode ?? "N/D";
|
|
6070
|
+
y.has(w) || y.set(w, []), y.get(w).push(p);
|
|
6067
6071
|
}
|
|
6068
6072
|
return y;
|
|
6069
6073
|
}
|
|
@@ -6119,7 +6123,7 @@ const Hs = ({
|
|
|
6119
6123
|
]
|
|
6120
6124
|
}
|
|
6121
6125
|
);
|
|
6122
|
-
},
|
|
6126
|
+
}, qs = ({ columns: n, columnWidths: e }) => /* @__PURE__ */ m.jsx("tfoot", { children: /* @__PURE__ */ m.jsx("tr", { children: n.map(
|
|
6123
6127
|
(t) => t.visible && /* @__PURE__ */ m.jsx(
|
|
6124
6128
|
"td",
|
|
6125
6129
|
{
|
|
@@ -6132,7 +6136,7 @@ const Hs = ({
|
|
|
6132
6136
|
},
|
|
6133
6137
|
t.name
|
|
6134
6138
|
)
|
|
6135
|
-
) }) }),
|
|
6139
|
+
) }) }), Ks = ({
|
|
6136
6140
|
columns: n,
|
|
6137
6141
|
rows: e,
|
|
6138
6142
|
containerRef: t,
|
|
@@ -6176,7 +6180,7 @@ const Hs = ({
|
|
|
6176
6180
|
}) => {
|
|
6177
6181
|
const [o, i] = G(
|
|
6178
6182
|
n ?? { columns: [], rows: [] }
|
|
6179
|
-
), [l, c] = G(r || []), [d, u] = G(/* @__PURE__ */ new Set()), f = le(null), [y, p] =
|
|
6183
|
+
), [l, c] = G(r || []), [d, u] = G(/* @__PURE__ */ new Set()), f = le(null), [y, p] = Ks({
|
|
6180
6184
|
columns: o?.columns ?? [],
|
|
6181
6185
|
rows: o?.rows ?? [],
|
|
6182
6186
|
containerRef: f,
|
|
@@ -6194,34 +6198,34 @@ const Hs = ({
|
|
|
6194
6198
|
} else
|
|
6195
6199
|
i(n);
|
|
6196
6200
|
}, [n, l, d, e]);
|
|
6197
|
-
const
|
|
6201
|
+
const w = (A) => {
|
|
6198
6202
|
c(Bs(A, l));
|
|
6199
|
-
},
|
|
6203
|
+
}, S = (A) => {
|
|
6200
6204
|
A.preventDefault();
|
|
6201
|
-
const
|
|
6202
|
-
if (!
|
|
6205
|
+
const O = A.dataTransfer.getData("text/plain");
|
|
6206
|
+
if (!O || l.some((D) => D.column === O))
|
|
6203
6207
|
return;
|
|
6204
|
-
const R = [...l, { column:
|
|
6208
|
+
const R = [...l, { column: O, visible: !0 }];
|
|
6205
6209
|
c(R);
|
|
6206
6210
|
}, E = (A) => {
|
|
6207
6211
|
A.preventDefault();
|
|
6208
|
-
}, { virtualItems: b, containerProps: T, innerProps: v } =
|
|
6212
|
+
}, { virtualItems: b, containerProps: T, innerProps: v } = kn({
|
|
6209
6213
|
items: o?.rows ?? [],
|
|
6210
6214
|
itemHeight: e,
|
|
6211
6215
|
containerHeight: t,
|
|
6212
6216
|
overscan: 5
|
|
6213
|
-
}), g = (A,
|
|
6214
|
-
const L = A.clientX, R = y[
|
|
6217
|
+
}), g = (A, O) => {
|
|
6218
|
+
const L = A.clientX, R = y[O], D = (P) => {
|
|
6215
6219
|
const N = P.clientX - L, B = Math.max(50, R + N);
|
|
6216
6220
|
p((H) => ({
|
|
6217
6221
|
...H,
|
|
6218
|
-
[
|
|
6222
|
+
[O]: B
|
|
6219
6223
|
}));
|
|
6220
|
-
},
|
|
6221
|
-
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup",
|
|
6224
|
+
}, C = () => {
|
|
6225
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", C);
|
|
6222
6226
|
};
|
|
6223
|
-
window.addEventListener("mousemove", D), window.addEventListener("mouseup",
|
|
6224
|
-
},
|
|
6227
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", C);
|
|
6228
|
+
}, k = {
|
|
6225
6229
|
smpTable: `${tt["smp-table"]}`,
|
|
6226
6230
|
headerCell: `${tt["smp-headerCell"]}`,
|
|
6227
6231
|
resizer: `${tt["smp-resizer"]}`
|
|
@@ -6229,7 +6233,7 @@ const Hs = ({
|
|
|
6229
6233
|
return o && /* @__PURE__ */ m.jsx(
|
|
6230
6234
|
"div",
|
|
6231
6235
|
{
|
|
6232
|
-
className:
|
|
6236
|
+
className: k.smpTable,
|
|
6233
6237
|
...T,
|
|
6234
6238
|
ref: f,
|
|
6235
6239
|
children: /* @__PURE__ */ m.jsxs("table", { children: [
|
|
@@ -6238,8 +6242,8 @@ const Hs = ({
|
|
|
6238
6242
|
Hs,
|
|
6239
6243
|
{
|
|
6240
6244
|
groups: l,
|
|
6241
|
-
onChange:
|
|
6242
|
-
onDrop:
|
|
6245
|
+
onChange: w,
|
|
6246
|
+
onDrop: S,
|
|
6243
6247
|
onDragOver: E
|
|
6244
6248
|
}
|
|
6245
6249
|
),
|
|
@@ -6247,10 +6251,10 @@ const Hs = ({
|
|
|
6247
6251
|
(A) => A.visible && /* @__PURE__ */ m.jsxs(
|
|
6248
6252
|
"th",
|
|
6249
6253
|
{
|
|
6250
|
-
className:
|
|
6254
|
+
className: k.headerCell,
|
|
6251
6255
|
draggable: !0,
|
|
6252
|
-
onDragStart: (
|
|
6253
|
-
|
|
6256
|
+
onDragStart: (O) => {
|
|
6257
|
+
O.dataTransfer.setData("text/plain", A.name);
|
|
6254
6258
|
},
|
|
6255
6259
|
style: {
|
|
6256
6260
|
width: y[A.name],
|
|
@@ -6268,8 +6272,8 @@ const Hs = ({
|
|
|
6268
6272
|
/* @__PURE__ */ m.jsx(
|
|
6269
6273
|
"div",
|
|
6270
6274
|
{
|
|
6271
|
-
className:
|
|
6272
|
-
onMouseDown: (
|
|
6275
|
+
className: k.resizer,
|
|
6276
|
+
onMouseDown: (O) => g(O, A.name),
|
|
6273
6277
|
role: "region"
|
|
6274
6278
|
}
|
|
6275
6279
|
)
|
|
@@ -6279,8 +6283,8 @@ const Hs = ({
|
|
|
6279
6283
|
)
|
|
6280
6284
|
) })
|
|
6281
6285
|
] }),
|
|
6282
|
-
/* @__PURE__ */ m.jsx("tbody", { ...v, children: b.map(({ item: A, index:
|
|
6283
|
-
const R = A.rowId || A.value || `${A.isGroup ? "group" : "row"}-${
|
|
6286
|
+
/* @__PURE__ */ m.jsx("tbody", { ...v, children: b.map(({ item: A, index: O, offsetTop: L }) => {
|
|
6287
|
+
const R = A.rowId || A.value || `${A.isGroup ? "group" : "row"}-${O}`;
|
|
6284
6288
|
return A.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6285
6289
|
Ws,
|
|
6286
6290
|
{
|
|
@@ -6290,7 +6294,7 @@ const Hs = ({
|
|
|
6290
6294
|
level: A.level,
|
|
6291
6295
|
onClick: () => {
|
|
6292
6296
|
const D = A.rowId;
|
|
6293
|
-
D && u((
|
|
6297
|
+
D && u((C) => Ys(C, D));
|
|
6294
6298
|
},
|
|
6295
6299
|
isExpanded: A.isExpanded
|
|
6296
6300
|
},
|
|
@@ -6307,7 +6311,7 @@ const Hs = ({
|
|
|
6307
6311
|
`row-${R}`
|
|
6308
6312
|
);
|
|
6309
6313
|
}) }),
|
|
6310
|
-
/* @__PURE__ */ m.jsx(
|
|
6314
|
+
/* @__PURE__ */ m.jsx(qs, { columns: o.columns, columnWidths: y })
|
|
6311
6315
|
] })
|
|
6312
6316
|
}
|
|
6313
6317
|
);
|
|
@@ -6328,8 +6332,8 @@ const Hs = ({
|
|
|
6328
6332
|
u(() => {
|
|
6329
6333
|
if (!n)
|
|
6330
6334
|
return;
|
|
6331
|
-
const
|
|
6332
|
-
return e && (
|
|
6335
|
+
const w = { ...n };
|
|
6336
|
+
return e && (w.shape = e), w.shape == null && (w.shape = te.TEXT_FIELD), s && (w.obj = vr(s)), w;
|
|
6333
6337
|
});
|
|
6334
6338
|
}, [n, s, e]);
|
|
6335
6339
|
const y = {
|
|
@@ -6365,7 +6369,7 @@ const Hs = ({
|
|
|
6365
6369
|
),
|
|
6366
6370
|
ce(t) && //TODO: translation
|
|
6367
6371
|
/* @__PURE__ */ m.jsx(
|
|
6368
|
-
|
|
6372
|
+
we,
|
|
6369
6373
|
{
|
|
6370
6374
|
optionalDisplayValue: "Confirm",
|
|
6371
6375
|
onClick: () => l?.(d),
|
|
@@ -6373,7 +6377,7 @@ const Hs = ({
|
|
|
6373
6377
|
}
|
|
6374
6378
|
)
|
|
6375
6379
|
] });
|
|
6376
|
-
},
|
|
6380
|
+
}, zs = (n) => n?.type === "SmeupDataTree", Js = (n) => n?.type === "SmeupDataTable", Xs = (n) => zs(n) ? n.children ? n.children.map(
|
|
6377
6381
|
(e) => ({
|
|
6378
6382
|
id: e.obj.k,
|
|
6379
6383
|
label: e.value ?? ""
|
|
@@ -6400,22 +6404,22 @@ const Hs = ({
|
|
|
6400
6404
|
onContextMenu: d,
|
|
6401
6405
|
onButtonClick: u
|
|
6402
6406
|
}) => {
|
|
6403
|
-
const [f, y] = G({}), { translate: p } =
|
|
6407
|
+
const [f, y] = G({}), { translate: p } = $e(), w = Ce();
|
|
6404
6408
|
ne(() => {
|
|
6405
6409
|
y(v(n));
|
|
6406
6410
|
}, [n]);
|
|
6407
|
-
const
|
|
6411
|
+
const S = (O, L) => {
|
|
6408
6412
|
if (y((R) => ({
|
|
6409
6413
|
...R,
|
|
6410
|
-
[
|
|
6411
|
-
...R[
|
|
6414
|
+
[O]: {
|
|
6415
|
+
...R[O],
|
|
6412
6416
|
obj: {
|
|
6413
|
-
...R[
|
|
6417
|
+
...R[O].obj,
|
|
6414
6418
|
k: L.obj.k
|
|
6415
6419
|
},
|
|
6416
6420
|
decode: L.decode,
|
|
6417
6421
|
data: {
|
|
6418
|
-
...R[
|
|
6422
|
+
...R[O].data,
|
|
6419
6423
|
error: void 0
|
|
6420
6424
|
},
|
|
6421
6425
|
// FIXME: remove this when webup.js will not use value
|
|
@@ -6423,20 +6427,20 @@ const Hs = ({
|
|
|
6423
6427
|
}
|
|
6424
6428
|
})), s && (L.shape == te.CHECKBOX || L.shape == te.SWITCH)) {
|
|
6425
6429
|
const R = structuredClone(f);
|
|
6426
|
-
R[
|
|
6430
|
+
R[O].obj.k = L.obj.k, R[O].value = L.obj.k, i({
|
|
6427
6431
|
value: g(R),
|
|
6428
|
-
cell:
|
|
6432
|
+
cell: O
|
|
6429
6433
|
});
|
|
6430
6434
|
}
|
|
6431
|
-
}, E = (
|
|
6435
|
+
}, E = (O) => {
|
|
6432
6436
|
const L = g(f);
|
|
6433
6437
|
i({
|
|
6434
6438
|
value: L,
|
|
6435
|
-
cell:
|
|
6439
|
+
cell: O
|
|
6436
6440
|
});
|
|
6437
|
-
}, b = (
|
|
6441
|
+
}, b = (O, L) => {
|
|
6438
6442
|
u?.({
|
|
6439
|
-
cellId:
|
|
6443
|
+
cellId: O,
|
|
6440
6444
|
currentState: {
|
|
6441
6445
|
type: "SmeupDataTable",
|
|
6442
6446
|
columns: n.columns,
|
|
@@ -6448,33 +6452,33 @@ const Hs = ({
|
|
|
6448
6452
|
},
|
|
6449
6453
|
fun: L || ""
|
|
6450
6454
|
});
|
|
6451
|
-
}, T = async (
|
|
6452
|
-
if (f[
|
|
6453
|
-
obj: f[
|
|
6454
|
-
fun: f[
|
|
6455
|
-
cellId:
|
|
6455
|
+
}, T = async (O) => {
|
|
6456
|
+
if (f[O].obj.k != n.rows[0].cells[O].obj.k && (f[O].inputSettings?.checkObject && c && ((await c({
|
|
6457
|
+
obj: f[O].obj,
|
|
6458
|
+
fun: f[O].fun,
|
|
6459
|
+
cellId: O
|
|
6456
6460
|
})).valid || y((R) => ({
|
|
6457
6461
|
...R,
|
|
6458
|
-
[
|
|
6459
|
-
...R[
|
|
6462
|
+
[O]: {
|
|
6463
|
+
...R[O],
|
|
6460
6464
|
data: {
|
|
6461
|
-
...R[
|
|
6465
|
+
...R[O].data,
|
|
6462
6466
|
error: p(Ee.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6463
6467
|
}
|
|
6464
6468
|
}
|
|
6465
|
-
}))), f[
|
|
6469
|
+
}))), f[O].inputSettings?.checkValueOnExit)) {
|
|
6466
6470
|
const L = g(f);
|
|
6467
6471
|
l?.({
|
|
6468
6472
|
value: L,
|
|
6469
|
-
cell:
|
|
6473
|
+
cell: O
|
|
6470
6474
|
});
|
|
6471
6475
|
}
|
|
6472
|
-
}, v = (
|
|
6473
|
-
if (!
|
|
6476
|
+
}, v = (O) => {
|
|
6477
|
+
if (!O.rows?.length || !O.columns?.length)
|
|
6474
6478
|
return {};
|
|
6475
|
-
const L =
|
|
6476
|
-
return
|
|
6477
|
-
const
|
|
6479
|
+
const L = O.rows?.[0];
|
|
6480
|
+
return O.columns.filter((R) => R.visible ?? !0).reduce((R, D) => {
|
|
6481
|
+
const C = {
|
|
6478
6482
|
...L.cells[D.name],
|
|
6479
6483
|
id: D.name,
|
|
6480
6484
|
label: D.title,
|
|
@@ -6484,37 +6488,37 @@ const Hs = ({
|
|
|
6484
6488
|
dSep: a
|
|
6485
6489
|
}
|
|
6486
6490
|
};
|
|
6487
|
-
return
|
|
6491
|
+
return C.isEditable == null && (C.isEditable = !0), t && (C.isEditable = !1), C.isEditable && C.shape == null && (C.shape = te.TEXT_FIELD), {
|
|
6488
6492
|
...R,
|
|
6489
|
-
[D.name]:
|
|
6493
|
+
[D.name]: C
|
|
6490
6494
|
};
|
|
6491
6495
|
}, {});
|
|
6492
|
-
}, g = (
|
|
6496
|
+
}, g = (O) => ({
|
|
6493
6497
|
before: n,
|
|
6494
6498
|
after: {
|
|
6495
6499
|
type: "SmeupDataTable",
|
|
6496
6500
|
columns: JSON.parse(JSON.stringify(n.columns)),
|
|
6497
6501
|
rows: [
|
|
6498
6502
|
{
|
|
6499
|
-
cells: JSON.parse(JSON.stringify(
|
|
6503
|
+
cells: JSON.parse(JSON.stringify(O))
|
|
6500
6504
|
}
|
|
6501
6505
|
]
|
|
6502
6506
|
}
|
|
6503
|
-
}),
|
|
6507
|
+
}), k = n.setup?.commands?.map((O, L) => /* @__PURE__ */ Un(
|
|
6504
6508
|
Te,
|
|
6505
6509
|
{
|
|
6506
|
-
...
|
|
6507
|
-
decode:
|
|
6510
|
+
...O,
|
|
6511
|
+
decode: O.value,
|
|
6508
6512
|
data: {
|
|
6509
|
-
label:
|
|
6513
|
+
label: O.value
|
|
6510
6514
|
},
|
|
6511
6515
|
id: `command-${L}`,
|
|
6512
6516
|
key: `command-${L}`,
|
|
6513
6517
|
shape: te.BUTTON,
|
|
6514
|
-
onClick: () => E(
|
|
6518
|
+
onClick: () => E(O.obj.k)
|
|
6515
6519
|
}
|
|
6516
6520
|
)) || [];
|
|
6517
|
-
r ||
|
|
6521
|
+
r || k.unshift(
|
|
6518
6522
|
/* @__PURE__ */ m.jsx(
|
|
6519
6523
|
Te,
|
|
6520
6524
|
{
|
|
@@ -6542,31 +6546,31 @@ const Hs = ({
|
|
|
6542
6546
|
{
|
|
6543
6547
|
"data-component": "input-panel",
|
|
6544
6548
|
className: A.smpForm,
|
|
6545
|
-
id: e ||
|
|
6546
|
-
onSubmit: (
|
|
6547
|
-
|
|
6549
|
+
id: e || w,
|
|
6550
|
+
onSubmit: (O) => {
|
|
6551
|
+
O.preventDefault(), E();
|
|
6548
6552
|
},
|
|
6549
6553
|
children: [
|
|
6550
|
-
/* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((
|
|
6554
|
+
/* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((O) => /* @__PURE__ */ m.jsx(
|
|
6551
6555
|
Te,
|
|
6552
6556
|
{
|
|
6553
|
-
...
|
|
6554
|
-
onOptionsRequest:
|
|
6555
|
-
await o(L, R, n,
|
|
6557
|
+
...O,
|
|
6558
|
+
onOptionsRequest: O.fun ? async (L, R) => Xs(
|
|
6559
|
+
await o(L, R, n, O.id)
|
|
6556
6560
|
) : void 0,
|
|
6557
|
-
onChange: (L) =>
|
|
6558
|
-
onBlur: () => T(
|
|
6561
|
+
onChange: (L) => S(O.id, L),
|
|
6562
|
+
onBlur: () => T(O.id),
|
|
6559
6563
|
onContextMenu: d,
|
|
6560
6564
|
onClick: () => {
|
|
6561
|
-
|
|
6565
|
+
O.shape == "BTN" && b(O.id, O.fun);
|
|
6562
6566
|
},
|
|
6563
6567
|
data: {
|
|
6564
|
-
...
|
|
6568
|
+
...O.data,
|
|
6565
6569
|
autocomplete: "off"
|
|
6566
6570
|
}
|
|
6567
6571
|
}
|
|
6568
6572
|
)) }),
|
|
6569
|
-
|
|
6573
|
+
k.length > 0 && /* @__PURE__ */ m.jsx(
|
|
6570
6574
|
at,
|
|
6571
6575
|
{
|
|
6572
6576
|
layout: {
|
|
@@ -6575,13 +6579,13 @@ const Hs = ({
|
|
|
6575
6579
|
id: "1",
|
|
6576
6580
|
horizontal: !0,
|
|
6577
6581
|
justify: "start",
|
|
6578
|
-
content:
|
|
6579
|
-
id:
|
|
6582
|
+
content: k.map((O) => ({
|
|
6583
|
+
id: O.props.id
|
|
6580
6584
|
}))
|
|
6581
6585
|
}
|
|
6582
6586
|
]
|
|
6583
6587
|
},
|
|
6584
|
-
children:
|
|
6588
|
+
children: k
|
|
6585
6589
|
}
|
|
6586
6590
|
)
|
|
6587
6591
|
]
|
|
@@ -6591,7 +6595,7 @@ const Hs = ({
|
|
|
6591
6595
|
export {
|
|
6592
6596
|
na as AppBar,
|
|
6593
6597
|
In as Autocomplete,
|
|
6594
|
-
|
|
6598
|
+
we as Button,
|
|
6595
6599
|
us as ButtonList,
|
|
6596
6600
|
fs as Checkbox,
|
|
6597
6601
|
ps as Combobox,
|