@sme.up/ketchup2 2.0.0-SNAPSHOT-20250702074628 → 2.0.0-SNAPSHOT-20250702100417
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/hooks/useFloating.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +840 -813
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Ke from "react";
|
|
2
|
-
import st, { useState as H, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Fr, useId as Te, useMemo as Vr, createElement as
|
|
3
|
-
import { createPortal as
|
|
2
|
+
import st, { useState as H, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Fr, useId as Te, useMemo as Vr, createElement as Wr } from "react";
|
|
3
|
+
import { createPortal as Yr } from "react-dom";
|
|
4
4
|
var ze = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
@@ -12,7 +12,7 @@ var ze = { exports: {} }, Fe = {};
|
|
|
12
12
|
* LICENSE file in the root directory of this source tree.
|
|
13
13
|
*/
|
|
14
14
|
var Nt;
|
|
15
|
-
function
|
|
15
|
+
function Ur() {
|
|
16
16
|
if (Nt) return Fe;
|
|
17
17
|
Nt = 1;
|
|
18
18
|
var r = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
@@ -58,9 +58,9 @@ function Br() {
|
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case S:
|
|
60
60
|
return "StrictMode";
|
|
61
|
-
case
|
|
61
|
+
case y:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case R:
|
|
64
64
|
return "SuspenseList";
|
|
65
65
|
case L:
|
|
66
66
|
return "Activity";
|
|
@@ -73,17 +73,17 @@ function Br() {
|
|
|
73
73
|
return "Portal";
|
|
74
74
|
case T:
|
|
75
75
|
return (h.displayName || "Context") + ".Provider";
|
|
76
|
-
case E:
|
|
77
|
-
return (h._context.displayName || "Context") + ".Consumer";
|
|
78
|
-
case x:
|
|
79
|
-
var y = h.render;
|
|
80
|
-
return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
76
|
case w:
|
|
82
|
-
return
|
|
83
|
-
case
|
|
84
|
-
|
|
77
|
+
return (h._context.displayName || "Context") + ".Consumer";
|
|
78
|
+
case v:
|
|
79
|
+
var x = h.render;
|
|
80
|
+
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
|
+
case E:
|
|
82
|
+
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
83
|
+
case D:
|
|
84
|
+
x = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
|
-
return r(h(
|
|
86
|
+
return r(h(x));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,27 +95,27 @@ function Br() {
|
|
|
95
95
|
function t(h) {
|
|
96
96
|
try {
|
|
97
97
|
e(h);
|
|
98
|
-
var
|
|
98
|
+
var x = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
x = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var _ =
|
|
102
|
+
if (x) {
|
|
103
|
+
x = console;
|
|
104
|
+
var _ = x.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
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
|
+
$
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function n(h) {
|
|
113
113
|
if (h === b) return "<>";
|
|
114
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
114
|
+
if (typeof h == "object" && h !== null && h.$$typeof === D)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var x = r(h);
|
|
118
|
+
return x ? "<" + x + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -129,16 +129,16 @@ function Br() {
|
|
|
129
129
|
}
|
|
130
130
|
function i(h) {
|
|
131
131
|
if (k.call(h, "key")) {
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
132
|
+
var x = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
133
|
+
if (x && x.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function o(h,
|
|
137
|
+
function o(h, x) {
|
|
138
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
144
|
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
@@ -152,13 +152,13 @@ function Br() {
|
|
|
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,
|
|
155
|
+
function c(h, x, _, $, j, P, W, Y) {
|
|
156
156
|
return _ = P.ref, h = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: h,
|
|
159
|
-
key:
|
|
159
|
+
key: x,
|
|
160
160
|
props: P,
|
|
161
|
-
_owner:
|
|
161
|
+
_owner: j
|
|
162
162
|
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
@@ -176,50 +176,50 @@ function Br() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: W
|
|
180
180
|
}), Object.defineProperty(h, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: Y
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function f(h,
|
|
188
|
-
var V =
|
|
187
|
+
function f(h, x, _, $, j, P, W, Y) {
|
|
188
|
+
var V = x.children;
|
|
189
189
|
if (V !== void 0)
|
|
190
|
-
if (
|
|
190
|
+
if ($)
|
|
191
191
|
if (N(V)) {
|
|
192
|
-
for (
|
|
193
|
-
u(V[
|
|
192
|
+
for ($ = 0; $ < V.length; $++)
|
|
193
|
+
u(V[$]);
|
|
194
194
|
Object.freeze && Object.freeze(V);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
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 (k.call(
|
|
200
|
+
if (k.call(x, "key")) {
|
|
201
201
|
V = r(h);
|
|
202
|
-
var J = Object.keys(
|
|
202
|
+
var J = Object.keys(x).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
$ = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[V + $] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
212
|
+
$,
|
|
213
213
|
V,
|
|
214
214
|
J,
|
|
215
215
|
V
|
|
216
|
-
), F[V +
|
|
216
|
+
), F[V + $] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (V = null, _ !== void 0 && (t(_), V = "" + _), i(
|
|
218
|
+
if (V = null, _ !== void 0 && (t(_), V = "" + _), i(x) && (t(x.key), V = "" + x.key), "key" in x) {
|
|
219
219
|
_ = {};
|
|
220
|
-
for (var K in
|
|
221
|
-
K !== "key" && (_[K] =
|
|
222
|
-
} else _ =
|
|
220
|
+
for (var K in x)
|
|
221
|
+
K !== "key" && (_[K] = x[K]);
|
|
222
|
+
} else _ = x;
|
|
223
223
|
return V && o(
|
|
224
224
|
_,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
@@ -227,17 +227,17 @@ React keys must be passed directly to JSX without using spread:
|
|
|
227
227
|
h,
|
|
228
228
|
V,
|
|
229
229
|
P,
|
|
230
|
-
|
|
230
|
+
j,
|
|
231
231
|
s(),
|
|
232
232
|
_,
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
W,
|
|
234
|
+
Y
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(h) {
|
|
238
238
|
typeof h == "object" && h !== null && h.$$typeof === g && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"),
|
|
240
|
+
var d = st, g = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), T = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), L = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), A = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, N = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
d = {
|
|
@@ -249,27 +249,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
d,
|
|
250
250
|
a
|
|
251
251
|
)(), Z = I(n(a)), F = {};
|
|
252
|
-
Ve.Fragment = b, Ve.jsx = function(h,
|
|
252
|
+
Ve.Fragment = b, Ve.jsx = function(h, x, _, $, j) {
|
|
253
253
|
var P = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
h,
|
|
256
|
-
|
|
256
|
+
x,
|
|
257
257
|
_,
|
|
258
258
|
!1,
|
|
259
|
+
$,
|
|
259
260
|
j,
|
|
260
|
-
D,
|
|
261
261
|
P ? Error("react-stack-top-frame") : q,
|
|
262
262
|
P ? I(n(h)) : Z
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h,
|
|
264
|
+
}, Ve.jsxs = function(h, x, _, $, j) {
|
|
265
265
|
var P = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
h,
|
|
268
|
-
|
|
268
|
+
x,
|
|
269
269
|
_,
|
|
270
270
|
!0,
|
|
271
|
+
$,
|
|
271
272
|
j,
|
|
272
|
-
D,
|
|
273
273
|
P ? Error("react-stack-top-frame") : q,
|
|
274
274
|
P ? I(n(h)) : Z
|
|
275
275
|
);
|
|
@@ -278,7 +278,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
}
|
|
279
279
|
var Ft;
|
|
280
280
|
function Hr() {
|
|
281
|
-
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports =
|
|
281
|
+
return Ft || (Ft = 1, process.env.NODE_ENV === "production" ? ze.exports = Ur() : ze.exports = Br()), ze.exports;
|
|
282
282
|
}
|
|
283
283
|
var m = Hr();
|
|
284
284
|
const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
@@ -335,7 +335,7 @@ const Re = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
|
335
335
|
return {
|
|
336
336
|
[e]: t
|
|
337
337
|
};
|
|
338
|
-
},
|
|
338
|
+
}, Wt = (r) => r.some((e) => e.dim && !e.dim.endsWith("%"));
|
|
339
339
|
function Kr(r, e) {
|
|
340
340
|
if (r == null) return {};
|
|
341
341
|
var t = {};
|
|
@@ -373,10 +373,10 @@ var qe = {};
|
|
|
373
373
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
374
374
|
* MIT Licensed
|
|
375
375
|
*/
|
|
376
|
-
var
|
|
376
|
+
var Yt;
|
|
377
377
|
function qr() {
|
|
378
|
-
if (
|
|
379
|
-
|
|
378
|
+
if (Yt) return qe;
|
|
379
|
+
Yt = 1;
|
|
380
380
|
var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
381
381
|
qe.format = i, qe.parse = o;
|
|
382
382
|
function i(u) {
|
|
@@ -405,11 +405,11 @@ function qr() {
|
|
|
405
405
|
throw new TypeError("invalid media type");
|
|
406
406
|
var b = new f(p.toLowerCase());
|
|
407
407
|
if (g !== -1) {
|
|
408
|
-
var S, O,
|
|
408
|
+
var S, O, w;
|
|
409
409
|
for (r.lastIndex = g; O = r.exec(d); ) {
|
|
410
410
|
if (O.index !== g)
|
|
411
411
|
throw new TypeError("invalid parameter format");
|
|
412
|
-
g += O[0].length, S = O[1].toLowerCase(),
|
|
412
|
+
g += O[0].length, S = O[1].toLowerCase(), w = O[2], w.charCodeAt(0) === 34 && (w = w.slice(1, -1), w.indexOf("\\") !== -1 && (w = w.replace(n, "$1"))), b.parameters[S] = w;
|
|
413
413
|
}
|
|
414
414
|
if (g !== d.length)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
@@ -437,7 +437,7 @@ function qr() {
|
|
|
437
437
|
}
|
|
438
438
|
var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
439
439
|
return e.cloneNode(!0);
|
|
440
|
-
},
|
|
440
|
+
}, Ut = function() {
|
|
441
441
|
return window.location.protocol === "file:";
|
|
442
442
|
}, Rr = function(e, t, n) {
|
|
443
443
|
var s = new XMLHttpRequest();
|
|
@@ -453,8 +453,8 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
453
453
|
}
|
|
454
454
|
if (s.readyState === 4) {
|
|
455
455
|
if (s.status === 404 || s.responseXML === null)
|
|
456
|
-
throw new Error(
|
|
457
|
-
if (s.status === 200 ||
|
|
456
|
+
throw new Error(Ut() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
457
|
+
if (s.status === 200 || Ut() && s.status === 0)
|
|
458
458
|
n(null, s);
|
|
459
459
|
else
|
|
460
460
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
@@ -530,10 +530,10 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
530
530
|
u.setAttribute("class", S);
|
|
531
531
|
var O = e.getAttribute("style");
|
|
532
532
|
O && u.setAttribute("style", O), u.setAttribute("data-src", l);
|
|
533
|
-
var
|
|
533
|
+
var w = [].filter.call(e.attributes, function(Z) {
|
|
534
534
|
return /^data-\w[\w-]*$/.test(Z.name);
|
|
535
535
|
});
|
|
536
|
-
if (Array.prototype.forEach.call(
|
|
536
|
+
if (Array.prototype.forEach.call(w, function(Z) {
|
|
537
537
|
Z.name && Z.value && u.setAttribute(Z.name, Z.value);
|
|
538
538
|
}), n) {
|
|
539
539
|
var T = {
|
|
@@ -547,27 +547,27 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
547
547
|
path: [],
|
|
548
548
|
pattern: ["fill", "stroke"],
|
|
549
549
|
radialGradient: ["fill", "stroke"]
|
|
550
|
-
},
|
|
550
|
+
}, v, y, R, E, D;
|
|
551
551
|
Object.keys(T).forEach(function(Z) {
|
|
552
|
-
|
|
553
|
-
for (var F = function(j
|
|
554
|
-
|
|
552
|
+
v = Z, R = T[Z], y = u.querySelectorAll(v + "[id]");
|
|
553
|
+
for (var F = function($, j) {
|
|
554
|
+
E = y[$].id, D = E + "-" + tn();
|
|
555
555
|
var P;
|
|
556
|
-
Array.prototype.forEach.call(
|
|
557
|
-
P = u.querySelectorAll("[" +
|
|
556
|
+
Array.prototype.forEach.call(R, function(U) {
|
|
557
|
+
P = u.querySelectorAll("[" + U + '*="' + E + '"]');
|
|
558
558
|
for (var X = 0, ne = P.length; X < ne; X++) {
|
|
559
|
-
var ae = P[X].getAttribute(
|
|
560
|
-
ae && !ae.match(new RegExp('url\\("?#' +
|
|
559
|
+
var ae = P[X].getAttribute(U);
|
|
560
|
+
ae && !ae.match(new RegExp('url\\("?#' + E + '"?\\)')) || P[X].setAttribute(U, "url(#" + D + ")");
|
|
561
561
|
}
|
|
562
562
|
});
|
|
563
|
-
for (var
|
|
564
|
-
var K =
|
|
565
|
-
K && K.toString() === "#" +
|
|
563
|
+
for (var W = u.querySelectorAll("[*|href]"), Y = [], V = 0, J = W.length; V < J; V++) {
|
|
564
|
+
var K = W[V].getAttributeNS(bt, "href");
|
|
565
|
+
K && K.toString() === "#" + y[$].id && Y.push(W[V]);
|
|
566
566
|
}
|
|
567
|
-
for (var se = 0, M =
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}, h = 0,
|
|
567
|
+
for (var se = 0, M = Y.length; se < M; se++)
|
|
568
|
+
Y[se].setAttributeNS(bt, "href", "#" + D);
|
|
569
|
+
y[$].id = D;
|
|
570
|
+
}, h = 0, x = y.length; h < x; h++)
|
|
571
571
|
F(h);
|
|
572
572
|
});
|
|
573
573
|
}
|
|
@@ -594,12 +594,12 @@ var Jr = qr(), Ae = /* @__PURE__ */ new Map(), _r = function(e) {
|
|
|
594
594
|
} : i, l = n.beforeEach, c = l === void 0 ? function() {
|
|
595
595
|
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, g = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, b = p === void 0 ? !1 : p, S = n.renumerateIRIElements, O = S === void 0 ? !0 : S;
|
|
596
596
|
if (e && "length" in e)
|
|
597
|
-
for (var
|
|
598
|
-
Gt(e[T], g, O, u, b, c, function(
|
|
599
|
-
o(
|
|
597
|
+
for (var w = 0, T = 0, v = e.length; T < v; T++)
|
|
598
|
+
Gt(e[T], g, O, u, b, c, function(y, R) {
|
|
599
|
+
o(y, R), e && "length" in e && e.length === ++w && a(w);
|
|
600
600
|
});
|
|
601
|
-
else e ? Gt(e, g, O, u, b, c, function(
|
|
602
|
-
o(
|
|
601
|
+
else e ? Gt(e, g, O, u, b, c, function(y, R) {
|
|
602
|
+
o(y, R), a(1), e = null;
|
|
603
603
|
}) : a(0);
|
|
604
604
|
}, Je = { exports: {} }, Xe = { exports: {} }, Q = {};
|
|
605
605
|
/** @license React v16.13.1
|
|
@@ -614,66 +614,66 @@ var Kt;
|
|
|
614
614
|
function sn() {
|
|
615
615
|
if (Kt) return Q;
|
|
616
616
|
Kt = 1;
|
|
617
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118,
|
|
618
|
-
function T(
|
|
619
|
-
if (typeof
|
|
620
|
-
var
|
|
621
|
-
switch (
|
|
617
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
618
|
+
function T(y) {
|
|
619
|
+
if (typeof y == "object" && y !== null) {
|
|
620
|
+
var R = y.$$typeof;
|
|
621
|
+
switch (R) {
|
|
622
622
|
case e:
|
|
623
|
-
switch (
|
|
623
|
+
switch (y = y.type, y) {
|
|
624
624
|
case l:
|
|
625
625
|
case c:
|
|
626
626
|
case n:
|
|
627
627
|
case a:
|
|
628
628
|
case s:
|
|
629
629
|
case u:
|
|
630
|
-
return
|
|
630
|
+
return y;
|
|
631
631
|
default:
|
|
632
|
-
switch (
|
|
632
|
+
switch (y = y && y.$$typeof, y) {
|
|
633
633
|
case o:
|
|
634
634
|
case f:
|
|
635
635
|
case p:
|
|
636
636
|
case g:
|
|
637
637
|
case i:
|
|
638
|
-
return
|
|
638
|
+
return y;
|
|
639
639
|
default:
|
|
640
|
-
return
|
|
640
|
+
return R;
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
case t:
|
|
644
|
-
return
|
|
644
|
+
return R;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
return T(
|
|
650
|
-
}
|
|
651
|
-
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(
|
|
652
|
-
return
|
|
653
|
-
}, Q.isConcurrentMode =
|
|
654
|
-
return T(
|
|
655
|
-
}, Q.isContextProvider = function(
|
|
656
|
-
return T(
|
|
657
|
-
}, Q.isElement = function(
|
|
658
|
-
return typeof
|
|
659
|
-
}, Q.isForwardRef = function(
|
|
660
|
-
return T(
|
|
661
|
-
}, Q.isFragment = function(
|
|
662
|
-
return T(
|
|
663
|
-
}, Q.isLazy = function(
|
|
664
|
-
return T(
|
|
665
|
-
}, Q.isMemo = function(
|
|
666
|
-
return T(
|
|
667
|
-
}, Q.isPortal = function(
|
|
668
|
-
return T(
|
|
669
|
-
}, Q.isProfiler = function(
|
|
670
|
-
return T(
|
|
671
|
-
}, Q.isStrictMode = function(
|
|
672
|
-
return T(
|
|
673
|
-
}, Q.isSuspense = function(
|
|
674
|
-
return T(
|
|
675
|
-
}, Q.isValidElementType = function(
|
|
676
|
-
return typeof
|
|
648
|
+
function v(y) {
|
|
649
|
+
return T(y) === c;
|
|
650
|
+
}
|
|
651
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(y) {
|
|
652
|
+
return v(y) || T(y) === l;
|
|
653
|
+
}, Q.isConcurrentMode = v, Q.isContextConsumer = function(y) {
|
|
654
|
+
return T(y) === o;
|
|
655
|
+
}, Q.isContextProvider = function(y) {
|
|
656
|
+
return T(y) === i;
|
|
657
|
+
}, Q.isElement = function(y) {
|
|
658
|
+
return typeof y == "object" && y !== null && y.$$typeof === e;
|
|
659
|
+
}, Q.isForwardRef = function(y) {
|
|
660
|
+
return T(y) === f;
|
|
661
|
+
}, Q.isFragment = function(y) {
|
|
662
|
+
return T(y) === n;
|
|
663
|
+
}, Q.isLazy = function(y) {
|
|
664
|
+
return T(y) === p;
|
|
665
|
+
}, Q.isMemo = function(y) {
|
|
666
|
+
return T(y) === g;
|
|
667
|
+
}, Q.isPortal = function(y) {
|
|
668
|
+
return T(y) === t;
|
|
669
|
+
}, Q.isProfiler = function(y) {
|
|
670
|
+
return T(y) === a;
|
|
671
|
+
}, Q.isStrictMode = function(y) {
|
|
672
|
+
return T(y) === s;
|
|
673
|
+
}, Q.isSuspense = function(y) {
|
|
674
|
+
return T(y) === u;
|
|
675
|
+
}, Q.isValidElementType = function(y) {
|
|
676
|
+
return typeof y == "string" || typeof y == "function" || y === n || y === c || y === a || y === s || y === u || y === d || typeof y == "object" && y !== null && (y.$$typeof === p || y.$$typeof === g || y.$$typeof === i || y.$$typeof === o || y.$$typeof === f || y.$$typeof === S || y.$$typeof === O || y.$$typeof === w || y.$$typeof === b);
|
|
677
677
|
}, Q.typeOf = T, Q;
|
|
678
678
|
}
|
|
679
679
|
var ee = {};
|
|
@@ -688,15 +688,15 @@ var ee = {};
|
|
|
688
688
|
var zt;
|
|
689
689
|
function an() {
|
|
690
690
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
691
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118,
|
|
691
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, g = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, b = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
692
692
|
function T(M) {
|
|
693
693
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
694
|
-
M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === O || M.$$typeof ===
|
|
694
|
+
M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === g || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === O || M.$$typeof === w || M.$$typeof === b);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function v(M) {
|
|
697
697
|
if (typeof M == "object" && M !== null) {
|
|
698
|
-
var
|
|
699
|
-
switch (
|
|
698
|
+
var U = M.$$typeof;
|
|
699
|
+
switch (U) {
|
|
700
700
|
case e:
|
|
701
701
|
var X = M.type;
|
|
702
702
|
switch (X) {
|
|
@@ -717,55 +717,55 @@ function an() {
|
|
|
717
717
|
case i:
|
|
718
718
|
return ne;
|
|
719
719
|
default:
|
|
720
|
-
return
|
|
720
|
+
return U;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
case t:
|
|
724
|
-
return
|
|
724
|
+
return U;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
var
|
|
728
|
+
var y = l, R = c, E = o, D = i, L = e, C = f, A = n, k = p, N = g, I = t, B = a, G = s, q = u, Z = !1;
|
|
729
729
|
function F(M) {
|
|
730
|
-
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) ||
|
|
730
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || v(M) === l;
|
|
731
731
|
}
|
|
732
732
|
function h(M) {
|
|
733
|
-
return
|
|
733
|
+
return v(M) === c;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
return
|
|
735
|
+
function x(M) {
|
|
736
|
+
return v(M) === o;
|
|
737
737
|
}
|
|
738
738
|
function _(M) {
|
|
739
|
-
return
|
|
739
|
+
return v(M) === i;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function $(M) {
|
|
742
742
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return
|
|
744
|
+
function j(M) {
|
|
745
|
+
return v(M) === f;
|
|
746
746
|
}
|
|
747
747
|
function P(M) {
|
|
748
|
-
return
|
|
748
|
+
return v(M) === n;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return
|
|
750
|
+
function W(M) {
|
|
751
|
+
return v(M) === p;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return
|
|
753
|
+
function Y(M) {
|
|
754
|
+
return v(M) === g;
|
|
755
755
|
}
|
|
756
756
|
function V(M) {
|
|
757
|
-
return
|
|
757
|
+
return v(M) === t;
|
|
758
758
|
}
|
|
759
759
|
function J(M) {
|
|
760
|
-
return
|
|
760
|
+
return v(M) === a;
|
|
761
761
|
}
|
|
762
762
|
function K(M) {
|
|
763
|
-
return
|
|
763
|
+
return v(M) === s;
|
|
764
764
|
}
|
|
765
765
|
function se(M) {
|
|
766
|
-
return
|
|
766
|
+
return v(M) === u;
|
|
767
767
|
}
|
|
768
|
-
ee.AsyncMode =
|
|
768
|
+
ee.AsyncMode = y, ee.ConcurrentMode = R, ee.ContextConsumer = E, ee.ContextProvider = D, ee.Element = L, ee.ForwardRef = C, ee.Fragment = A, ee.Lazy = k, ee.Memo = N, ee.Portal = I, ee.Profiler = B, ee.StrictMode = G, ee.Suspense = q, ee.isAsyncMode = F, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = _, ee.isElement = $, ee.isForwardRef = j, ee.isFragment = P, ee.isLazy = W, ee.isMemo = Y, ee.isPortal = V, ee.isProfiler = J, ee.isStrictMode = K, ee.isSuspense = se, ee.isValidElementType = T, ee.typeOf = v;
|
|
769
769
|
}()), ee;
|
|
770
770
|
}
|
|
771
771
|
var qt;
|
|
@@ -903,9 +903,9 @@ function cn() {
|
|
|
903
903
|
return Et = function(o, l) {
|
|
904
904
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
905
905
|
function u(h) {
|
|
906
|
-
var
|
|
907
|
-
if (typeof
|
|
908
|
-
return
|
|
906
|
+
var x = h && (c && h[c] || h[f]);
|
|
907
|
+
if (typeof x == "function")
|
|
908
|
+
return x;
|
|
909
909
|
}
|
|
910
910
|
var d = "<<anonymous>>", g = {
|
|
911
911
|
array: O("array"),
|
|
@@ -916,221 +916,221 @@ function cn() {
|
|
|
916
916
|
object: O("object"),
|
|
917
917
|
string: O("string"),
|
|
918
918
|
symbol: O("symbol"),
|
|
919
|
-
any:
|
|
919
|
+
any: w(),
|
|
920
920
|
arrayOf: T,
|
|
921
|
-
element:
|
|
922
|
-
elementType:
|
|
923
|
-
instanceOf:
|
|
921
|
+
element: v(),
|
|
922
|
+
elementType: y(),
|
|
923
|
+
instanceOf: R,
|
|
924
924
|
node: C(),
|
|
925
|
-
objectOf:
|
|
926
|
-
oneOf:
|
|
925
|
+
objectOf: D,
|
|
926
|
+
oneOf: E,
|
|
927
927
|
oneOfType: L,
|
|
928
928
|
shape: k,
|
|
929
929
|
exact: N
|
|
930
930
|
};
|
|
931
|
-
function p(h,
|
|
932
|
-
return h ===
|
|
931
|
+
function p(h, x) {
|
|
932
|
+
return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
|
|
933
933
|
}
|
|
934
|
-
function b(h,
|
|
935
|
-
this.message = h, this.data =
|
|
934
|
+
function b(h, x) {
|
|
935
|
+
this.message = h, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
936
936
|
}
|
|
937
937
|
b.prototype = Error.prototype;
|
|
938
938
|
function S(h) {
|
|
939
939
|
if (process.env.NODE_ENV !== "production")
|
|
940
|
-
var
|
|
941
|
-
function
|
|
942
|
-
if (V = V || d, K = K ||
|
|
940
|
+
var x = {}, _ = 0;
|
|
941
|
+
function $(P, W, Y, V, J, K, se) {
|
|
942
|
+
if (V = V || d, K = K || Y, se !== t) {
|
|
943
943
|
if (l) {
|
|
944
944
|
var M = new Error(
|
|
945
945
|
"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"
|
|
946
946
|
);
|
|
947
947
|
throw M.name = "Invariant Violation", M;
|
|
948
948
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
949
|
-
var
|
|
950
|
-
!
|
|
949
|
+
var U = V + ":" + Y;
|
|
950
|
+
!x[U] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
951
951
|
_ < 3 && (a(
|
|
952
952
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` 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."
|
|
953
|
-
),
|
|
953
|
+
), x[U] = !0, _++);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
return Y
|
|
956
|
+
return W[Y] == null ? P ? W[Y] === null ? new b("The " + J + " `" + K + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new b("The " + J + " `" + K + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : h(W, Y, V, J, K);
|
|
957
957
|
}
|
|
958
|
-
var
|
|
959
|
-
return
|
|
958
|
+
var j = $.bind(null, !1);
|
|
959
|
+
return j.isRequired = $.bind(null, !0), j;
|
|
960
960
|
}
|
|
961
961
|
function O(h) {
|
|
962
|
-
function
|
|
963
|
-
var V = _[
|
|
962
|
+
function x(_, $, j, P, W, Y) {
|
|
963
|
+
var V = _[$], J = G(V);
|
|
964
964
|
if (J !== h) {
|
|
965
965
|
var K = q(V);
|
|
966
966
|
return new b(
|
|
967
|
-
"Invalid " + P + " `" +
|
|
967
|
+
"Invalid " + P + " `" + W + "` of type " + ("`" + K + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
|
|
968
968
|
{ expectedType: h }
|
|
969
969
|
);
|
|
970
970
|
}
|
|
971
971
|
return null;
|
|
972
972
|
}
|
|
973
|
-
return S(
|
|
973
|
+
return S(x);
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function w() {
|
|
976
976
|
return S(i);
|
|
977
977
|
}
|
|
978
978
|
function T(h) {
|
|
979
|
-
function
|
|
979
|
+
function x(_, $, j, P, W) {
|
|
980
980
|
if (typeof h != "function")
|
|
981
|
-
return new b("Property `" +
|
|
982
|
-
var
|
|
983
|
-
if (!Array.isArray(
|
|
984
|
-
var V = G(
|
|
985
|
-
return new b("Invalid " + P + " `" +
|
|
981
|
+
return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
982
|
+
var Y = _[$];
|
|
983
|
+
if (!Array.isArray(Y)) {
|
|
984
|
+
var V = G(Y);
|
|
985
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an array."));
|
|
986
986
|
}
|
|
987
|
-
for (var J = 0; J <
|
|
988
|
-
var K = h(
|
|
987
|
+
for (var J = 0; J < Y.length; J++) {
|
|
988
|
+
var K = h(Y, J, j, P, W + "[" + J + "]", t);
|
|
989
989
|
if (K instanceof Error)
|
|
990
990
|
return K;
|
|
991
991
|
}
|
|
992
992
|
return null;
|
|
993
993
|
}
|
|
994
|
-
return S(
|
|
995
|
-
}
|
|
996
|
-
function
|
|
997
|
-
function h(
|
|
998
|
-
var
|
|
999
|
-
if (!o(
|
|
1000
|
-
var
|
|
1001
|
-
return new b("Invalid " +
|
|
994
|
+
return S(x);
|
|
995
|
+
}
|
|
996
|
+
function v() {
|
|
997
|
+
function h(x, _, $, j, P) {
|
|
998
|
+
var W = x[_];
|
|
999
|
+
if (!o(W)) {
|
|
1000
|
+
var Y = G(W);
|
|
1001
|
+
return new b("Invalid " + j + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
1002
1002
|
}
|
|
1003
1003
|
return null;
|
|
1004
1004
|
}
|
|
1005
1005
|
return S(h);
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
function h(
|
|
1009
|
-
var
|
|
1010
|
-
if (!r.isValidElementType(
|
|
1011
|
-
var
|
|
1012
|
-
return new b("Invalid " +
|
|
1007
|
+
function y() {
|
|
1008
|
+
function h(x, _, $, j, P) {
|
|
1009
|
+
var W = x[_];
|
|
1010
|
+
if (!r.isValidElementType(W)) {
|
|
1011
|
+
var Y = G(W);
|
|
1012
|
+
return new b("Invalid " + j + " `" + P + "` of type " + ("`" + Y + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
1013
1013
|
}
|
|
1014
1014
|
return null;
|
|
1015
1015
|
}
|
|
1016
1016
|
return S(h);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
function
|
|
1020
|
-
if (!(_[
|
|
1021
|
-
var
|
|
1022
|
-
return new b("Invalid " + P + " `" +
|
|
1018
|
+
function R(h) {
|
|
1019
|
+
function x(_, $, j, P, W) {
|
|
1020
|
+
if (!(_[$] instanceof h)) {
|
|
1021
|
+
var Y = h.name || d, V = F(_[$]);
|
|
1022
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected ") + ("instance of `" + Y + "`."));
|
|
1023
1023
|
}
|
|
1024
1024
|
return null;
|
|
1025
1025
|
}
|
|
1026
|
-
return S(
|
|
1026
|
+
return S(x);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function E(h) {
|
|
1029
1029
|
if (!Array.isArray(h))
|
|
1030
1030
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1031
1031
|
"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
1032
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1033
|
-
function
|
|
1034
|
-
for (var
|
|
1035
|
-
if (p(
|
|
1033
|
+
function x(_, $, j, P, W) {
|
|
1034
|
+
for (var Y = _[$], V = 0; V < h.length; V++)
|
|
1035
|
+
if (p(Y, h[V]))
|
|
1036
1036
|
return null;
|
|
1037
1037
|
var J = JSON.stringify(h, function(se, M) {
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1038
|
+
var U = q(M);
|
|
1039
|
+
return U === "symbol" ? String(M) : M;
|
|
1040
1040
|
});
|
|
1041
|
-
return new b("Invalid " + P + " `" +
|
|
1041
|
+
return new b("Invalid " + P + " `" + W + "` of value `" + String(Y) + "` " + ("supplied to `" + j + "`, expected one of " + J + "."));
|
|
1042
1042
|
}
|
|
1043
|
-
return S(
|
|
1043
|
+
return S(x);
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1046
|
-
function
|
|
1045
|
+
function D(h) {
|
|
1046
|
+
function x(_, $, j, P, W) {
|
|
1047
1047
|
if (typeof h != "function")
|
|
1048
|
-
return new b("Property `" +
|
|
1049
|
-
var
|
|
1048
|
+
return new b("Property `" + W + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1049
|
+
var Y = _[$], V = G(Y);
|
|
1050
1050
|
if (V !== "object")
|
|
1051
|
-
return new b("Invalid " + P + " `" +
|
|
1052
|
-
for (var J in
|
|
1053
|
-
if (n(
|
|
1054
|
-
var K = h(
|
|
1051
|
+
return new b("Invalid " + P + " `" + W + "` of type " + ("`" + V + "` supplied to `" + j + "`, expected an object."));
|
|
1052
|
+
for (var J in Y)
|
|
1053
|
+
if (n(Y, J)) {
|
|
1054
|
+
var K = h(Y, J, j, P, W + "." + J, t);
|
|
1055
1055
|
if (K instanceof Error)
|
|
1056
1056
|
return K;
|
|
1057
1057
|
}
|
|
1058
1058
|
return null;
|
|
1059
1059
|
}
|
|
1060
|
-
return S(
|
|
1060
|
+
return S(x);
|
|
1061
1061
|
}
|
|
1062
1062
|
function L(h) {
|
|
1063
1063
|
if (!Array.isArray(h))
|
|
1064
1064
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1065
|
-
for (var
|
|
1066
|
-
var _ = h[
|
|
1065
|
+
for (var x = 0; x < h.length; x++) {
|
|
1066
|
+
var _ = h[x];
|
|
1067
1067
|
if (typeof _ != "function")
|
|
1068
1068
|
return a(
|
|
1069
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(_) + " at index " +
|
|
1069
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z(_) + " at index " + x + "."
|
|
1070
1070
|
), i;
|
|
1071
1071
|
}
|
|
1072
|
-
function j
|
|
1072
|
+
function $(j, P, W, Y, V) {
|
|
1073
1073
|
for (var J = [], K = 0; K < h.length; K++) {
|
|
1074
|
-
var se = h[K], M = se(
|
|
1074
|
+
var se = h[K], M = se(j, P, W, Y, V, t);
|
|
1075
1075
|
if (M == null)
|
|
1076
1076
|
return null;
|
|
1077
1077
|
M.data && n(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1078
1078
|
}
|
|
1079
|
-
var
|
|
1080
|
-
return new b("Invalid " +
|
|
1079
|
+
var U = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1080
|
+
return new b("Invalid " + Y + " `" + V + "` supplied to " + ("`" + W + "`" + U + "."));
|
|
1081
1081
|
}
|
|
1082
|
-
return S(
|
|
1082
|
+
return S($);
|
|
1083
1083
|
}
|
|
1084
1084
|
function C() {
|
|
1085
|
-
function h(
|
|
1086
|
-
return I(
|
|
1085
|
+
function h(x, _, $, j, P) {
|
|
1086
|
+
return I(x[_]) ? null : new b("Invalid " + j + " `" + P + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
1087
1087
|
}
|
|
1088
1088
|
return S(h);
|
|
1089
1089
|
}
|
|
1090
|
-
function A(h,
|
|
1090
|
+
function A(h, x, _, $, j) {
|
|
1091
1091
|
return new b(
|
|
1092
|
-
(h || "React class") + ": " +
|
|
1092
|
+
(h || "React class") + ": " + x + " type `" + _ + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1093
1093
|
);
|
|
1094
1094
|
}
|
|
1095
1095
|
function k(h) {
|
|
1096
|
-
function
|
|
1097
|
-
var
|
|
1096
|
+
function x(_, $, j, P, W) {
|
|
1097
|
+
var Y = _[$], V = G(Y);
|
|
1098
1098
|
if (V !== "object")
|
|
1099
|
-
return new b("Invalid " + P + " `" +
|
|
1099
|
+
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1100
1100
|
for (var J in h) {
|
|
1101
1101
|
var K = h[J];
|
|
1102
1102
|
if (typeof K != "function")
|
|
1103
|
-
return A(
|
|
1104
|
-
var se = K(
|
|
1103
|
+
return A(j, P, W, J, q(K));
|
|
1104
|
+
var se = K(Y, J, j, P, W + "." + J, t);
|
|
1105
1105
|
if (se)
|
|
1106
1106
|
return se;
|
|
1107
1107
|
}
|
|
1108
1108
|
return null;
|
|
1109
1109
|
}
|
|
1110
|
-
return S(
|
|
1110
|
+
return S(x);
|
|
1111
1111
|
}
|
|
1112
1112
|
function N(h) {
|
|
1113
|
-
function
|
|
1114
|
-
var
|
|
1113
|
+
function x(_, $, j, P, W) {
|
|
1114
|
+
var Y = _[$], V = G(Y);
|
|
1115
1115
|
if (V !== "object")
|
|
1116
|
-
return new b("Invalid " + P + " `" +
|
|
1117
|
-
var J = e({}, _[
|
|
1116
|
+
return new b("Invalid " + P + " `" + W + "` of type `" + V + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1117
|
+
var J = e({}, _[$], h);
|
|
1118
1118
|
for (var K in J) {
|
|
1119
1119
|
var se = h[K];
|
|
1120
1120
|
if (n(h, K) && typeof se != "function")
|
|
1121
|
-
return A(
|
|
1121
|
+
return A(j, P, W, K, q(se));
|
|
1122
1122
|
if (!se)
|
|
1123
1123
|
return new b(
|
|
1124
|
-
"Invalid " + P + " `" +
|
|
1124
|
+
"Invalid " + P + " `" + W + "` key `" + K + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(_[$], null, " ") + `
|
|
1125
1125
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1126
1126
|
);
|
|
1127
|
-
var M = se(
|
|
1127
|
+
var M = se(Y, K, j, P, W + "." + K, t);
|
|
1128
1128
|
if (M)
|
|
1129
1129
|
return M;
|
|
1130
1130
|
}
|
|
1131
1131
|
return null;
|
|
1132
1132
|
}
|
|
1133
|
-
return S(
|
|
1133
|
+
return S(x);
|
|
1134
1134
|
}
|
|
1135
1135
|
function I(h) {
|
|
1136
1136
|
switch (typeof h) {
|
|
@@ -1145,17 +1145,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1145
1145
|
return h.every(I);
|
|
1146
1146
|
if (h === null || o(h))
|
|
1147
1147
|
return !0;
|
|
1148
|
-
var
|
|
1149
|
-
if (
|
|
1150
|
-
var _ =
|
|
1151
|
-
if (
|
|
1152
|
-
for (; !(
|
|
1153
|
-
if (!I(
|
|
1148
|
+
var x = u(h);
|
|
1149
|
+
if (x) {
|
|
1150
|
+
var _ = x.call(h), $;
|
|
1151
|
+
if (x !== h.entries) {
|
|
1152
|
+
for (; !($ = _.next()).done; )
|
|
1153
|
+
if (!I($.value))
|
|
1154
1154
|
return !1;
|
|
1155
1155
|
} else
|
|
1156
|
-
for (; !(
|
|
1157
|
-
var
|
|
1158
|
-
if (
|
|
1156
|
+
for (; !($ = _.next()).done; ) {
|
|
1157
|
+
var j = $.value;
|
|
1158
|
+
if (j && !I(j[1]))
|
|
1159
1159
|
return !1;
|
|
1160
1160
|
}
|
|
1161
1161
|
} else
|
|
@@ -1165,37 +1165,37 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1165
1165
|
return !1;
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
function B(h,
|
|
1169
|
-
return h === "symbol" ? !0 :
|
|
1168
|
+
function B(h, x) {
|
|
1169
|
+
return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1170
1170
|
}
|
|
1171
1171
|
function G(h) {
|
|
1172
|
-
var
|
|
1173
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(
|
|
1172
|
+
var x = typeof h;
|
|
1173
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : B(x, h) ? "symbol" : x;
|
|
1174
1174
|
}
|
|
1175
1175
|
function q(h) {
|
|
1176
1176
|
if (typeof h > "u" || h === null)
|
|
1177
1177
|
return "" + h;
|
|
1178
|
-
var
|
|
1179
|
-
if (
|
|
1178
|
+
var x = G(h);
|
|
1179
|
+
if (x === "object") {
|
|
1180
1180
|
if (h instanceof Date)
|
|
1181
1181
|
return "date";
|
|
1182
1182
|
if (h instanceof RegExp)
|
|
1183
1183
|
return "regexp";
|
|
1184
1184
|
}
|
|
1185
|
-
return
|
|
1185
|
+
return x;
|
|
1186
1186
|
}
|
|
1187
1187
|
function Z(h) {
|
|
1188
|
-
var
|
|
1189
|
-
switch (
|
|
1188
|
+
var x = q(h);
|
|
1189
|
+
switch (x) {
|
|
1190
1190
|
case "array":
|
|
1191
1191
|
case "object":
|
|
1192
|
-
return "an " +
|
|
1192
|
+
return "an " + x;
|
|
1193
1193
|
case "boolean":
|
|
1194
1194
|
case "date":
|
|
1195
1195
|
case "regexp":
|
|
1196
|
-
return "a " +
|
|
1196
|
+
return "a " + x;
|
|
1197
1197
|
default:
|
|
1198
|
-
return
|
|
1198
|
+
return x;
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
function F(h) {
|
|
@@ -1289,11 +1289,11 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
|
|
|
1289
1289
|
return t.renderSVG = function() {
|
|
1290
1290
|
var s = this;
|
|
1291
1291
|
if (this.reactWrapper instanceof dn(this.reactWrapper).Node) {
|
|
1292
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, S = this.props.wrapper, O,
|
|
1293
|
-
S === "svg" ? (O = document.createElementNS(Ze, S), O.setAttribute("xmlns", Ze), O.setAttribute("xmlns:xlink", nr),
|
|
1294
|
-
var T = function(
|
|
1292
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, g = this.props.onError, p = this.props.beforeInjection, b = this.props.afterInjection, S = this.props.wrapper, O, w;
|
|
1293
|
+
S === "svg" ? (O = document.createElementNS(Ze, S), O.setAttribute("xmlns", Ze), O.setAttribute("xmlns:xlink", nr), w = document.createElementNS(Ze, S)) : (O = document.createElement(S), w = document.createElement(S)), O.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(O);
|
|
1294
|
+
var T = function(E) {
|
|
1295
1295
|
if (s.removeSVG(), !s._isMounted) {
|
|
1296
|
-
g(
|
|
1296
|
+
g(E);
|
|
1297
1297
|
return;
|
|
1298
1298
|
}
|
|
1299
1299
|
s.setState(function() {
|
|
@@ -1302,11 +1302,11 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
|
|
|
1302
1302
|
isLoading: !1
|
|
1303
1303
|
};
|
|
1304
1304
|
}, function() {
|
|
1305
|
-
g(
|
|
1305
|
+
g(E);
|
|
1306
1306
|
});
|
|
1307
|
-
},
|
|
1308
|
-
if (
|
|
1309
|
-
T(
|
|
1307
|
+
}, v = function(E, D) {
|
|
1308
|
+
if (E) {
|
|
1309
|
+
T(E);
|
|
1310
1310
|
return;
|
|
1311
1311
|
}
|
|
1312
1312
|
s._isMounted && s.setState(function() {
|
|
@@ -1315,33 +1315,33 @@ var ie = /* @__PURE__ */ fn(), dn = function(e) {
|
|
|
1315
1315
|
};
|
|
1316
1316
|
}, function() {
|
|
1317
1317
|
try {
|
|
1318
|
-
b(
|
|
1318
|
+
b(D);
|
|
1319
1319
|
} catch (L) {
|
|
1320
1320
|
T(L);
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
|
-
},
|
|
1324
|
-
if (
|
|
1325
|
-
var
|
|
1326
|
-
|
|
1323
|
+
}, y = function(E) {
|
|
1324
|
+
if (E.setAttribute("role", "img"), i) {
|
|
1325
|
+
var D = E.querySelector(":scope > desc");
|
|
1326
|
+
D && E.removeChild(D);
|
|
1327
1327
|
var L = document.createElement("desc");
|
|
1328
|
-
L.innerHTML = i,
|
|
1328
|
+
L.innerHTML = i, E.prepend(L);
|
|
1329
1329
|
}
|
|
1330
1330
|
if (u) {
|
|
1331
|
-
var C =
|
|
1332
|
-
C &&
|
|
1331
|
+
var C = E.querySelector(":scope > title");
|
|
1332
|
+
C && E.removeChild(C);
|
|
1333
1333
|
var A = document.createElement("title");
|
|
1334
|
-
A.innerHTML = u,
|
|
1334
|
+
A.innerHTML = u, E.prepend(A);
|
|
1335
1335
|
}
|
|
1336
1336
|
try {
|
|
1337
|
-
p(
|
|
1337
|
+
p(E);
|
|
1338
1338
|
} catch (k) {
|
|
1339
1339
|
T(k);
|
|
1340
1340
|
}
|
|
1341
1341
|
};
|
|
1342
|
-
nn(
|
|
1343
|
-
afterEach:
|
|
1344
|
-
beforeEach:
|
|
1342
|
+
nn(w, {
|
|
1343
|
+
afterEach: v,
|
|
1344
|
+
beforeEach: y,
|
|
1345
1345
|
cacheRequests: d,
|
|
1346
1346
|
evalScripts: o,
|
|
1347
1347
|
httpRequestWithCredentials: l,
|
|
@@ -1432,21 +1432,21 @@ const Qs = (r) => {
|
|
|
1432
1432
|
title: u,
|
|
1433
1433
|
tabIndex: d
|
|
1434
1434
|
}) => {
|
|
1435
|
-
const [g, p] = H(r), b = r?.startsWith("http") || r?.startsWith("/"), S = b && r?.toLowerCase().endsWith(".svg"), O = sr(`assets/svg/${r}.svg`),
|
|
1435
|
+
const [g, p] = H(r), b = r?.startsWith("http") || r?.startsWith("/"), S = b && r?.toLowerCase().endsWith(".svg"), O = sr(`assets/svg/${r}.svg`), w = sr(
|
|
1436
1436
|
`assets/svg/${n}.svg`
|
|
1437
1437
|
), T = {
|
|
1438
1438
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1439
1439
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1440
|
-
},
|
|
1440
|
+
}, v = () => {
|
|
1441
1441
|
!a && c && l && l();
|
|
1442
|
-
},
|
|
1443
|
-
!a && c && (
|
|
1442
|
+
}, y = (R) => {
|
|
1443
|
+
!a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), v());
|
|
1444
1444
|
};
|
|
1445
1445
|
return /* @__PURE__ */ m.jsx(m.Fragment, { children: S ? /* @__PURE__ */ m.jsx(
|
|
1446
1446
|
Ie,
|
|
1447
1447
|
{
|
|
1448
1448
|
src: r,
|
|
1449
|
-
fallback: () => /* @__PURE__ */ m.jsx(Ie, { src:
|
|
1449
|
+
fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: w, wrapper: "svg" }),
|
|
1450
1450
|
width: e || "1rem",
|
|
1451
1451
|
height: t || "1rem",
|
|
1452
1452
|
wrapper: "svg",
|
|
@@ -1455,8 +1455,8 @@ const Qs = (r) => {
|
|
|
1455
1455
|
fill: s,
|
|
1456
1456
|
"aria-disabled": a,
|
|
1457
1457
|
className: T.svg,
|
|
1458
|
-
onClick:
|
|
1459
|
-
onKeyDown:
|
|
1458
|
+
onClick: v,
|
|
1459
|
+
onKeyDown: y,
|
|
1460
1460
|
tabIndex: d
|
|
1461
1461
|
}
|
|
1462
1462
|
) : b ? (
|
|
@@ -1468,12 +1468,12 @@ const Qs = (r) => {
|
|
|
1468
1468
|
width: e || "16px",
|
|
1469
1469
|
height: t || "auto",
|
|
1470
1470
|
alt: u,
|
|
1471
|
-
onError: () => p(
|
|
1472
|
-
onClick:
|
|
1471
|
+
onError: () => p(w),
|
|
1472
|
+
onClick: v,
|
|
1473
1473
|
className: T.img,
|
|
1474
1474
|
title: u,
|
|
1475
|
-
onKeyDown: (
|
|
1476
|
-
(
|
|
1475
|
+
onKeyDown: (R) => {
|
|
1476
|
+
(R.key === "Enter" || R.key === " ") && v();
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
)
|
|
@@ -1481,7 +1481,7 @@ const Qs = (r) => {
|
|
|
1481
1481
|
Ie,
|
|
1482
1482
|
{
|
|
1483
1483
|
src: O,
|
|
1484
|
-
fallback: () => /* @__PURE__ */ m.jsx(Ie, { src:
|
|
1484
|
+
fallback: () => /* @__PURE__ */ m.jsx(Ie, { src: w, wrapper: "svg" }),
|
|
1485
1485
|
width: e || "1rem",
|
|
1486
1486
|
height: t || "1rem",
|
|
1487
1487
|
wrapper: "svg",
|
|
@@ -1490,8 +1490,8 @@ const Qs = (r) => {
|
|
|
1490
1490
|
fill: s,
|
|
1491
1491
|
"aria-disabled": a,
|
|
1492
1492
|
className: T.svg,
|
|
1493
|
-
onClick:
|
|
1494
|
-
onKeyDown:
|
|
1493
|
+
onClick: v,
|
|
1494
|
+
onKeyDown: y,
|
|
1495
1495
|
tabIndex: d
|
|
1496
1496
|
}
|
|
1497
1497
|
) });
|
|
@@ -1605,9 +1605,9 @@ const Qs = (r) => {
|
|
|
1605
1605
|
const T = d.current;
|
|
1606
1606
|
if (!T) return;
|
|
1607
1607
|
S();
|
|
1608
|
-
const
|
|
1609
|
-
return T.addEventListener("scroll",
|
|
1610
|
-
T.removeEventListener("scroll",
|
|
1608
|
+
const v = () => S();
|
|
1609
|
+
return T.addEventListener("scroll", v), window.addEventListener("resize", S), () => {
|
|
1610
|
+
T.removeEventListener("scroll", v), window.removeEventListener("resize", S);
|
|
1611
1611
|
};
|
|
1612
1612
|
}, []), !r.children || r.children.length === 0)
|
|
1613
1613
|
return /* @__PURE__ */ m.jsx("div", { className: "tab-bar-empty", children: "No tabs available" });
|
|
@@ -1626,7 +1626,7 @@ const Qs = (r) => {
|
|
|
1626
1626
|
));
|
|
1627
1627
|
}, O = () => {
|
|
1628
1628
|
d.current?.scrollBy({ left: -p, behavior: "smooth" });
|
|
1629
|
-
},
|
|
1629
|
+
}, w = () => {
|
|
1630
1630
|
d.current?.scrollBy({ left: p, behavior: "smooth" });
|
|
1631
1631
|
};
|
|
1632
1632
|
return /* @__PURE__ */ m.jsxs(
|
|
@@ -1646,16 +1646,16 @@ const Qs = (r) => {
|
|
|
1646
1646
|
sizing: e
|
|
1647
1647
|
}
|
|
1648
1648
|
) }),
|
|
1649
|
-
/* @__PURE__ */ m.jsx("div", { className: g.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: g.list, ref: d, role: "tablist", children: r.children.map((T,
|
|
1649
|
+
/* @__PURE__ */ m.jsx("div", { className: g.listWrapper, children: /* @__PURE__ */ m.jsx("div", { className: g.list, ref: d, role: "tablist", children: r.children.map((T, v) => /* @__PURE__ */ m.jsxs(
|
|
1650
1650
|
"button",
|
|
1651
1651
|
{
|
|
1652
1652
|
type: "button",
|
|
1653
|
-
className: `${
|
|
1653
|
+
className: `${v === a ? g.active : ""} ${g.tab} `,
|
|
1654
1654
|
role: "tab",
|
|
1655
|
-
"aria-selected":
|
|
1656
|
-
tabIndex:
|
|
1655
|
+
"aria-selected": v === o,
|
|
1656
|
+
tabIndex: v === o ? 0 : -1,
|
|
1657
1657
|
onClick: () => {
|
|
1658
|
-
s && s(
|
|
1658
|
+
s && s(v), i(v);
|
|
1659
1659
|
},
|
|
1660
1660
|
children: [
|
|
1661
1661
|
T.icon && /* @__PURE__ */ m.jsx(
|
|
@@ -1672,7 +1672,7 @@ const Qs = (r) => {
|
|
|
1672
1672
|
bindValue: T.decode || "Tab[object Object]"
|
|
1673
1673
|
}
|
|
1674
1674
|
),
|
|
1675
|
-
t && (o ===
|
|
1675
|
+
t && (o === v ? /* @__PURE__ */ m.jsx(
|
|
1676
1676
|
le,
|
|
1677
1677
|
{
|
|
1678
1678
|
icon: "more_vert",
|
|
@@ -1684,14 +1684,14 @@ const Qs = (r) => {
|
|
|
1684
1684
|
) : /* @__PURE__ */ m.jsx(le, { icon: "empty" }))
|
|
1685
1685
|
]
|
|
1686
1686
|
},
|
|
1687
|
-
|
|
1687
|
+
v
|
|
1688
1688
|
)) }) }),
|
|
1689
1689
|
f && /* @__PURE__ */ m.jsx("div", { className: g.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
|
|
1690
1690
|
Ce,
|
|
1691
1691
|
{
|
|
1692
1692
|
bindValue: "",
|
|
1693
1693
|
optionalDisplayValue: ">",
|
|
1694
|
-
onClick:
|
|
1694
|
+
onClick: w,
|
|
1695
1695
|
variant: "base",
|
|
1696
1696
|
sizing: e
|
|
1697
1697
|
}
|
|
@@ -1726,21 +1726,21 @@ const Qs = (r) => {
|
|
|
1726
1726
|
e.sections ?? [],
|
|
1727
1727
|
Object.keys(s)
|
|
1728
1728
|
), l = (p) => p.reduce((b, S) => {
|
|
1729
|
-
let O = "",
|
|
1730
|
-
return S.sections?.length ? (O = he["smp-layout-section-grid"],
|
|
1729
|
+
let O = "", w = {}, T = {}, v = "";
|
|
1730
|
+
return S.sections?.length ? (O = he["smp-layout-section-grid"], w = l(S.sections), S.gridCols === void 0 && (v = he[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Wt(S.sections)) && (T = Vt(
|
|
1731
1731
|
S.sections,
|
|
1732
1732
|
S.horizontal ? a : i
|
|
1733
|
-
)))) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (O = he["smp-layout-section-grid"],
|
|
1733
|
+
)))) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (O = he["smp-layout-section-grid"], v = he["smp-grid-template-cols"], T = {
|
|
1734
1734
|
[a]: `repeat(${S.gridCols}, 1fr)`
|
|
1735
1735
|
}) : O = he["smp-layout-section-flex"]), {
|
|
1736
1736
|
...b,
|
|
1737
|
-
...
|
|
1737
|
+
...w,
|
|
1738
1738
|
[S.id]: {
|
|
1739
|
-
classes: `${O} ${he[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
1739
|
+
classes: `${O} ${he[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${v} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
|
|
1740
1740
|
styles: T
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
|
-
}, {}), c = l(o), f = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal ||
|
|
1743
|
+
}, {}), c = l(o), f = `${he["smp-layout"]} ${e.horizontal ? he["smp-layout-horizontal"] : he["smp-layout-vertical"]}`, u = e.horizontal || Wt(e.sections || []) ? Vt(
|
|
1744
1744
|
o,
|
|
1745
1745
|
e.horizontal ? a : i
|
|
1746
1746
|
) : {}, d = (p, b) => {
|
|
@@ -1779,11 +1779,11 @@ const Qs = (r) => {
|
|
|
1779
1779
|
const T = {
|
|
1780
1780
|
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1781
1781
|
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
1782
|
-
},
|
|
1782
|
+
}, v = `${he["smp-layout-cell-container"]} ${b ? `smp-justifyContent-${b}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
|
|
1783
1783
|
return /* @__PURE__ */ m.jsx(
|
|
1784
1784
|
"div",
|
|
1785
1785
|
{
|
|
1786
|
-
className:
|
|
1786
|
+
className: v,
|
|
1787
1787
|
style: T,
|
|
1788
1788
|
"smp-id": p.id,
|
|
1789
1789
|
children: O
|
|
@@ -2002,23 +2002,50 @@ function pt({
|
|
|
2002
2002
|
requestAnimationFrame(i);
|
|
2003
2003
|
return;
|
|
2004
2004
|
}
|
|
2005
|
-
|
|
2005
|
+
const b = window.scrollY, S = window.scrollX, O = window.innerWidth, w = window.innerHeight;
|
|
2006
|
+
let T = c + b, v = f + S, y = r;
|
|
2007
|
+
const R = {
|
|
2008
|
+
top: c - g < 0,
|
|
2009
|
+
bottom: c + d + g > w,
|
|
2010
|
+
left: f - p < 0,
|
|
2011
|
+
right: f + u + p > O
|
|
2012
|
+
};
|
|
2006
2013
|
switch (r) {
|
|
2007
2014
|
case "top":
|
|
2008
|
-
|
|
2015
|
+
R.top && !R.bottom && (y = "bottom");
|
|
2009
2016
|
break;
|
|
2010
2017
|
case "bottom":
|
|
2011
|
-
|
|
2018
|
+
R.bottom && !R.top && (y = "top");
|
|
2012
2019
|
break;
|
|
2013
2020
|
case "left":
|
|
2014
|
-
|
|
2021
|
+
R.left && !R.right && (y = "right");
|
|
2015
2022
|
break;
|
|
2016
2023
|
case "right":
|
|
2017
|
-
|
|
2024
|
+
R.right && !R.left && (y = "left");
|
|
2018
2025
|
break;
|
|
2019
2026
|
}
|
|
2020
|
-
|
|
2021
|
-
|
|
2027
|
+
switch (y) {
|
|
2028
|
+
case "top":
|
|
2029
|
+
T = c + b - g;
|
|
2030
|
+
break;
|
|
2031
|
+
case "bottom":
|
|
2032
|
+
T = c + b + d;
|
|
2033
|
+
break;
|
|
2034
|
+
case "left":
|
|
2035
|
+
v = f + S - p;
|
|
2036
|
+
break;
|
|
2037
|
+
case "right":
|
|
2038
|
+
v = f + S + u;
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
T = Math.max(
|
|
2042
|
+
b,
|
|
2043
|
+
Math.min(T, b + w - g)
|
|
2044
|
+
), v = Math.max(
|
|
2045
|
+
S,
|
|
2046
|
+
Math.min(v, S + O - p)
|
|
2047
|
+
), requestAnimationFrame(() => {
|
|
2048
|
+
l.style.transform = `translate(${v}px, ${T}px)`, l.style.opacity = "1";
|
|
2022
2049
|
});
|
|
2023
2050
|
}, [r]);
|
|
2024
2051
|
return Fr(() => {
|
|
@@ -2095,13 +2122,13 @@ const Ne = (r, e, t) => {
|
|
|
2095
2122
|
label: b,
|
|
2096
2123
|
helperText: S = !1,
|
|
2097
2124
|
error: O,
|
|
2098
|
-
appearance:
|
|
2125
|
+
appearance: w = "base",
|
|
2099
2126
|
fullWidth: T = !1,
|
|
2100
|
-
_dataComponent:
|
|
2101
|
-
min:
|
|
2102
|
-
max:
|
|
2103
|
-
step:
|
|
2104
|
-
inputMode:
|
|
2127
|
+
_dataComponent: v = "textfield",
|
|
2128
|
+
min: y,
|
|
2129
|
+
max: R,
|
|
2130
|
+
step: E,
|
|
2131
|
+
inputMode: D = "text",
|
|
2105
2132
|
width: L,
|
|
2106
2133
|
autocomplete: C,
|
|
2107
2134
|
size: A,
|
|
@@ -2112,26 +2139,26 @@ const Ne = (r, e, t) => {
|
|
|
2112
2139
|
onShapeIconClick: G,
|
|
2113
2140
|
onClick: q
|
|
2114
2141
|
}) => {
|
|
2115
|
-
const Z = Te(), F = `${Z}-helper`, h = O ? "danger" : o,
|
|
2142
|
+
const Z = Te(), F = `${Z}-helper`, h = O ? "danger" : o, x = S || !!O, _ = (P) => {
|
|
2116
2143
|
I?.(P.target.value);
|
|
2117
|
-
},
|
|
2144
|
+
}, $ = {
|
|
2118
2145
|
wrapper: `${me["smp-textfield-wrapper"]} ${T ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2119
|
-
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${
|
|
2146
|
+
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${n ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${h ? me[`smp-textfield-${h}`] : ""} ${w ? me[`smp-textfield-${w}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2120
2147
|
input: `${me["smp-textfield-input"]}`
|
|
2121
2148
|
};
|
|
2122
2149
|
if (l && (l !== "notSelectable" || s)) {
|
|
2123
2150
|
const P = me[`smp-textfield-variant-${l}`];
|
|
2124
|
-
P && (
|
|
2151
|
+
P && ($.container += ` ${P}`);
|
|
2125
2152
|
}
|
|
2126
|
-
const
|
|
2127
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2153
|
+
const j = L ? { "--smp-textField-width-base": L } : void 0;
|
|
2154
|
+
return /* @__PURE__ */ m.jsxs("div", { className: $.wrapper, "data-component": v, children: [
|
|
2128
2155
|
b && /* @__PURE__ */ m.jsx(Re, { label: b, disabled: r, htmlFor: Z }),
|
|
2129
2156
|
/* @__PURE__ */ m.jsxs(
|
|
2130
2157
|
"div",
|
|
2131
2158
|
{
|
|
2132
|
-
className:
|
|
2159
|
+
className: $.container,
|
|
2133
2160
|
ref: u,
|
|
2134
|
-
style:
|
|
2161
|
+
style: j,
|
|
2135
2162
|
children: [
|
|
2136
2163
|
t && /* @__PURE__ */ m.jsx(le, { icon: t, disabled: r }),
|
|
2137
2164
|
/* @__PURE__ */ m.jsx(
|
|
@@ -2143,17 +2170,17 @@ const Ne = (r, e, t) => {
|
|
|
2143
2170
|
placeholder: n,
|
|
2144
2171
|
onChange: _,
|
|
2145
2172
|
onBlur: N,
|
|
2146
|
-
className:
|
|
2173
|
+
className: $.input,
|
|
2147
2174
|
disabled: r,
|
|
2148
2175
|
readOnly: !s,
|
|
2149
2176
|
onKeyDown: B,
|
|
2150
2177
|
"aria-label": p,
|
|
2151
2178
|
ref: d,
|
|
2152
|
-
"aria-describedby":
|
|
2153
|
-
min:
|
|
2154
|
-
max:
|
|
2155
|
-
step:
|
|
2156
|
-
inputMode:
|
|
2179
|
+
"aria-describedby": x ? F : void 0,
|
|
2180
|
+
min: y,
|
|
2181
|
+
max: R,
|
|
2182
|
+
step: E,
|
|
2183
|
+
inputMode: D,
|
|
2157
2184
|
autoComplete: C,
|
|
2158
2185
|
size: A,
|
|
2159
2186
|
maxLength: k,
|
|
@@ -2174,7 +2201,7 @@ const Ne = (r, e, t) => {
|
|
|
2174
2201
|
]
|
|
2175
2202
|
}
|
|
2176
2203
|
),
|
|
2177
|
-
|
|
2204
|
+
x && /* @__PURE__ */ m.jsx(
|
|
2178
2205
|
$r,
|
|
2179
2206
|
{
|
|
2180
2207
|
helperText: O,
|
|
@@ -2206,8 +2233,8 @@ function kr({
|
|
|
2206
2233
|
a(p);
|
|
2207
2234
|
}, []), d = (g) => {
|
|
2208
2235
|
if (!i.current) return;
|
|
2209
|
-
const p = g * e, b = p + e, S = i.current, O = S.scrollTop,
|
|
2210
|
-
p < O ? S.scrollTop = p : b >
|
|
2236
|
+
const p = g * e, b = p + e, S = i.current, O = S.scrollTop, w = O + t;
|
|
2237
|
+
p < O ? S.scrollTop = p : b > w && (S.scrollTop = b - t);
|
|
2211
2238
|
};
|
|
2212
2239
|
return {
|
|
2213
2240
|
virtualItems: f,
|
|
@@ -2271,12 +2298,12 @@ const Cn = 10, Lr = ({
|
|
|
2271
2298
|
}) => {
|
|
2272
2299
|
const [u, d] = H(""), g = 40, [p, b] = H(
|
|
2273
2300
|
a !== null ? a : -1
|
|
2274
|
-
), [S, O] = H(o || 200),
|
|
2301
|
+
), [S, O] = H(o || 200), w = ce(null), T = s !== void 0 ? s : e.length > Cn, v = u ? e.filter(
|
|
2275
2302
|
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2276
|
-
) : e,
|
|
2303
|
+
) : e, y = (I) => {
|
|
2277
2304
|
d(I);
|
|
2278
|
-
}, { virtualItems:
|
|
2279
|
-
items:
|
|
2305
|
+
}, { virtualItems: R, containerProps: E, innerProps: D, scrollToIndex: L } = kr({
|
|
2306
|
+
items: v,
|
|
2280
2307
|
itemHeight: g,
|
|
2281
2308
|
containerHeight: 200,
|
|
2282
2309
|
overscan: 5
|
|
@@ -2284,10 +2311,10 @@ const Cn = 10, Lr = ({
|
|
|
2284
2311
|
re(() => {
|
|
2285
2312
|
a !== null && a !== p && b(a);
|
|
2286
2313
|
}, [a]), re(() => {
|
|
2287
|
-
p >= 0 && p <
|
|
2288
|
-
}, [p,
|
|
2289
|
-
f &&
|
|
2290
|
-
}, [f,
|
|
2314
|
+
p >= 0 && p < v.length && L(p);
|
|
2315
|
+
}, [p, v]), re(() => {
|
|
2316
|
+
f && w?.current && w.current.focus();
|
|
2317
|
+
}, [f, w]), re(() => {
|
|
2291
2318
|
const I = Tn(e, t);
|
|
2292
2319
|
O(I);
|
|
2293
2320
|
}, [e, t]);
|
|
@@ -2295,8 +2322,8 @@ const Cn = 10, Lr = ({
|
|
|
2295
2322
|
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2296
2323
|
I.preventDefault();
|
|
2297
2324
|
let B = p;
|
|
2298
|
-
I.key === "ArrowDown" ? B = p <
|
|
2299
|
-
} else I.key === "Enter" ? p >= 0 && p <
|
|
2325
|
+
I.key === "ArrowDown" ? B = p < v.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (B = p > 0 ? p - 1 : v.length - 1), b(B);
|
|
2326
|
+
} else I.key === "Enter" ? p >= 0 && p < v.length && l?.(v[p]) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2300
2327
|
c && c(I);
|
|
2301
2328
|
}, A = (I) => {
|
|
2302
2329
|
C(I);
|
|
@@ -2326,22 +2353,22 @@ const Cn = 10, Lr = ({
|
|
|
2326
2353
|
bindValue: u,
|
|
2327
2354
|
placeholder: "Search...",
|
|
2328
2355
|
fullWidth: !0,
|
|
2329
|
-
onChange:
|
|
2356
|
+
onChange: y,
|
|
2330
2357
|
onKeyDown: A,
|
|
2331
|
-
inputRef:
|
|
2358
|
+
inputRef: w
|
|
2332
2359
|
}
|
|
2333
2360
|
),
|
|
2334
2361
|
/* @__PURE__ */ m.jsx(
|
|
2335
2362
|
"div",
|
|
2336
2363
|
{
|
|
2337
|
-
...
|
|
2364
|
+
...E,
|
|
2338
2365
|
className: N.container,
|
|
2339
2366
|
tabIndex: 0,
|
|
2340
2367
|
role: "listbox",
|
|
2341
2368
|
"aria-label": "List",
|
|
2342
2369
|
onKeyDown: k,
|
|
2343
|
-
"aria-activedescendant": p >= 0 && p <
|
|
2344
|
-
children: /* @__PURE__ */ m.jsx("div", { ...
|
|
2370
|
+
"aria-activedescendant": p >= 0 && p < v.length ? v[p]?.id : void 0,
|
|
2371
|
+
children: /* @__PURE__ */ m.jsx("div", { ...D, className: N.virtualScroll, children: R.map(({ item: I, index: B, offsetTop: G }) => {
|
|
2345
2372
|
const q = i.includes(I.id);
|
|
2346
2373
|
return (
|
|
2347
2374
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2409,7 +2436,7 @@ function ht({
|
|
|
2409
2436
|
const [e, t] = H(!1);
|
|
2410
2437
|
return re(() => {
|
|
2411
2438
|
t(!0);
|
|
2412
|
-
}, []), e ?
|
|
2439
|
+
}, []), e ? Yr(r, document.body) : null;
|
|
2413
2440
|
}
|
|
2414
2441
|
const mt = (r, e, t) => {
|
|
2415
2442
|
re(() => {
|
|
@@ -2426,7 +2453,7 @@ const mt = (r, e, t) => {
|
|
|
2426
2453
|
document.removeEventListener("mousedown", n);
|
|
2427
2454
|
};
|
|
2428
2455
|
}, [r, t, e]);
|
|
2429
|
-
}, z = (r) => typeof r == "string",
|
|
2456
|
+
}, z = (r) => typeof r == "string", We = () => {
|
|
2430
2457
|
let r, e;
|
|
2431
2458
|
const t = new Promise((n, s) => {
|
|
2432
2459
|
r = n, e = s;
|
|
@@ -2436,7 +2463,7 @@ const mt = (r, e, t) => {
|
|
|
2436
2463
|
r.forEach((n) => {
|
|
2437
2464
|
e[n] && (t[n] = e[n]);
|
|
2438
2465
|
});
|
|
2439
|
-
}, Rn = /###/g, cr = (r) => r && r.indexOf("###") > -1 ? r.replace(Rn, ".") : r, ur = (r) => !r || z(r),
|
|
2466
|
+
}, Rn = /###/g, cr = (r) => r && r.indexOf("###") > -1 ? r.replace(Rn, ".") : r, ur = (r) => !r || z(r), Ue = (r, e, t) => {
|
|
2440
2467
|
const n = z(e) ? e.split(".") : e;
|
|
2441
2468
|
let s = 0;
|
|
2442
2469
|
for (; s < n.length - 1; ) {
|
|
@@ -2452,26 +2479,26 @@ const mt = (r, e, t) => {
|
|
|
2452
2479
|
const {
|
|
2453
2480
|
obj: n,
|
|
2454
2481
|
k: s
|
|
2455
|
-
} =
|
|
2482
|
+
} = Ue(r, e, Object);
|
|
2456
2483
|
if (n !== void 0 || e.length === 1) {
|
|
2457
2484
|
n[s] = t;
|
|
2458
2485
|
return;
|
|
2459
2486
|
}
|
|
2460
|
-
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o =
|
|
2487
|
+
let a = e[e.length - 1], i = e.slice(0, e.length - 1), o = Ue(r, i, Object);
|
|
2461
2488
|
for (; o.obj === void 0 && i.length; )
|
|
2462
|
-
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o =
|
|
2489
|
+
a = `${i[i.length - 1]}.${a}`, i = i.slice(0, i.length - 1), o = Ue(r, i, Object), o?.obj && typeof o.obj[`${o.k}.${a}`] < "u" && (o.obj = void 0);
|
|
2463
2490
|
o.obj[`${o.k}.${a}`] = t;
|
|
2464
2491
|
}, Dn = (r, e, t, n) => {
|
|
2465
2492
|
const {
|
|
2466
2493
|
obj: s,
|
|
2467
2494
|
k: a
|
|
2468
|
-
} =
|
|
2495
|
+
} = Ue(r, e, Object);
|
|
2469
2496
|
s[a] = s[a] || [], s[a].push(t);
|
|
2470
2497
|
}, ct = (r, e) => {
|
|
2471
2498
|
const {
|
|
2472
2499
|
obj: t,
|
|
2473
2500
|
k: n
|
|
2474
|
-
} =
|
|
2501
|
+
} = Ue(r, e);
|
|
2475
2502
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2476
2503
|
return t[n];
|
|
2477
2504
|
}, jn = (r, e, t) => {
|
|
@@ -2762,13 +2789,13 @@ class ft extends gt {
|
|
|
2762
2789
|
} : o;
|
|
2763
2790
|
const g = this.resolve(e, s);
|
|
2764
2791
|
let p = g?.res;
|
|
2765
|
-
const b = g?.usedKey || o, S = g?.exactUsedKey || o, O = ["[object Number]", "[object Function]", "[object RegExp]"],
|
|
2792
|
+
const b = g?.usedKey || o, S = g?.exactUsedKey || o, O = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, v = s.count !== void 0 && !z(s.count), y = ft.hasDefaultValue(s), R = v ? this.pluralResolver.getSuffix(u, s.count, s) : "", E = s.ordinal && v ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2766
2793
|
ordinal: !1
|
|
2767
|
-
}) : "",
|
|
2794
|
+
}) : "", D = v && !s.ordinal && s.count === 0, L = D && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${R}`] || s[`defaultValue${E}`] || s.defaultValue;
|
|
2768
2795
|
let C = p;
|
|
2769
|
-
T && !p &&
|
|
2796
|
+
T && !p && y && (C = L);
|
|
2770
2797
|
const A = hr(C), k = Object.prototype.toString.apply(C);
|
|
2771
|
-
if (T && C && A && O.indexOf(k) < 0 && !(z(
|
|
2798
|
+
if (T && C && A && O.indexOf(k) < 0 && !(z(w) && Array.isArray(C))) {
|
|
2772
2799
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2773
2800
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2774
2801
|
const N = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, C, {
|
|
@@ -2782,7 +2809,7 @@ class ft extends gt {
|
|
|
2782
2809
|
for (const G in C)
|
|
2783
2810
|
if (Object.prototype.hasOwnProperty.call(C, G)) {
|
|
2784
2811
|
const q = `${B}${i}${G}`;
|
|
2785
|
-
|
|
2812
|
+
y && !p ? I[G] = this.translate(q, {
|
|
2786
2813
|
...s,
|
|
2787
2814
|
defaultValue: hr(L) ? L[G] : void 0,
|
|
2788
2815
|
joinArrays: !1,
|
|
@@ -2795,34 +2822,34 @@ class ft extends gt {
|
|
|
2795
2822
|
}
|
|
2796
2823
|
p = I;
|
|
2797
2824
|
}
|
|
2798
|
-
} else if (T && z(
|
|
2799
|
-
p = p.join(
|
|
2825
|
+
} else if (T && z(w) && Array.isArray(p))
|
|
2826
|
+
p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
|
|
2800
2827
|
else {
|
|
2801
2828
|
let N = !1, I = !1;
|
|
2802
|
-
!this.isValidLookup(p) &&
|
|
2803
|
-
const G = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : p, q =
|
|
2829
|
+
!this.isValidLookup(p) && y && (N = !0, p = L), this.isValidLookup(p) || (I = !0, p = o);
|
|
2830
|
+
const G = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && I ? void 0 : p, q = y && L !== p && this.options.updateMissing;
|
|
2804
2831
|
if (I || N || q) {
|
|
2805
2832
|
if (this.logger.log(q ? "updateKey" : "missingKey", u, c, o, q ? L : p), i) {
|
|
2806
|
-
const
|
|
2833
|
+
const x = this.resolve(o, {
|
|
2807
2834
|
...s,
|
|
2808
2835
|
keySeparator: !1
|
|
2809
2836
|
});
|
|
2810
|
-
|
|
2837
|
+
x && x.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2811
2838
|
}
|
|
2812
2839
|
let Z = [];
|
|
2813
2840
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2814
2841
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
|
2815
|
-
for (let
|
|
2816
|
-
Z.push(F[
|
|
2842
|
+
for (let x = 0; x < F.length; x++)
|
|
2843
|
+
Z.push(F[x]);
|
|
2817
2844
|
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
|
|
2818
|
-
const h = (
|
|
2819
|
-
const
|
|
2820
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2845
|
+
const h = (x, _, $) => {
|
|
2846
|
+
const j = y && $ !== p ? $ : G;
|
|
2847
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, _, j, q, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(x, c, _, j, q, s), this.emit("missingKey", x, c, _, p);
|
|
2821
2848
|
};
|
|
2822
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2823
|
-
const _ = this.pluralResolver.getSuffixes(
|
|
2824
|
-
|
|
2825
|
-
h([
|
|
2849
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && v ? Z.forEach((x) => {
|
|
2850
|
+
const _ = this.pluralResolver.getSuffixes(x, s);
|
|
2851
|
+
D && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach(($) => {
|
|
2852
|
+
h([x], o + $, s[`defaultValue${$}`] || L);
|
|
2826
2853
|
});
|
|
2827
2854
|
}) : h(Z, o, L));
|
|
2828
2855
|
}
|
|
@@ -2884,20 +2911,20 @@ class ft extends gt {
|
|
|
2884
2911
|
this.isValidLookup(n) || (o = S, !pr[`${b[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pr[`${b[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${b.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), b.forEach((O) => {
|
|
2885
2912
|
if (this.isValidLookup(n)) return;
|
|
2886
2913
|
i = O;
|
|
2887
|
-
const
|
|
2914
|
+
const w = [f];
|
|
2888
2915
|
if (this.i18nFormat?.addLookupKeys)
|
|
2889
|
-
this.i18nFormat.addLookupKeys(
|
|
2916
|
+
this.i18nFormat.addLookupKeys(w, f, O, S, t);
|
|
2890
2917
|
else {
|
|
2891
|
-
let
|
|
2892
|
-
d && (
|
|
2893
|
-
const
|
|
2894
|
-
if (d && (
|
|
2895
|
-
const
|
|
2896
|
-
|
|
2918
|
+
let v;
|
|
2919
|
+
d && (v = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2920
|
+
const y = `${this.options.pluralSeparator}zero`, R = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2921
|
+
if (d && (w.push(f + v), t.ordinal && v.indexOf(R) === 0 && w.push(f + v.replace(R, this.options.pluralSeparator)), g && w.push(f + y)), p) {
|
|
2922
|
+
const E = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2923
|
+
w.push(E), d && (w.push(E + v), t.ordinal && v.indexOf(R) === 0 && w.push(E + v.replace(R, this.options.pluralSeparator)), g && w.push(E + y));
|
|
2897
2924
|
}
|
|
2898
2925
|
}
|
|
2899
2926
|
let T;
|
|
2900
|
-
for (; T =
|
|
2927
|
+
for (; T = w.pop(); )
|
|
2901
2928
|
this.isValidLookup(n) || (a = T, n = this.getResource(O, S, T, t));
|
|
2902
2929
|
}));
|
|
2903
2930
|
});
|
|
@@ -3091,9 +3118,9 @@ class Fn {
|
|
|
3091
3118
|
nestingSuffixEscaped: b,
|
|
3092
3119
|
nestingOptionsSeparator: S,
|
|
3093
3120
|
maxReplaces: O,
|
|
3094
|
-
alwaysFormat:
|
|
3121
|
+
alwaysFormat: w
|
|
3095
3122
|
} = e.interpolation;
|
|
3096
|
-
this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Le(a) : i || "{{", this.suffix = o ? Le(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Le(d) : g || Le("$t("), this.nestingSuffix = p ? Le(p) : b || Le(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = O || 1e3, this.alwaysFormat =
|
|
3123
|
+
this.escape = t !== void 0 ? t : kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Le(a) : i || "{{", this.suffix = o ? Le(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Le(d) : g || Le("$t("), this.nestingSuffix = p ? Le(p) : b || Le(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
3097
3124
|
}
|
|
3098
3125
|
reset() {
|
|
3099
3126
|
this.options && this.init(this.options);
|
|
@@ -3218,8 +3245,8 @@ const Vn = (r) => {
|
|
|
3218
3245
|
let o = e[i];
|
|
3219
3246
|
return o || (o = r(Be(n), s), e[i] = o), o(t);
|
|
3220
3247
|
};
|
|
3221
|
-
},
|
|
3222
|
-
class
|
|
3248
|
+
}, Wn = (r) => (e, t, n) => r(Be(t), n)(e);
|
|
3249
|
+
class Yn {
|
|
3223
3250
|
constructor(e = {}) {
|
|
3224
3251
|
this.logger = ve.create("formatter"), this.options = e, this.init(e);
|
|
3225
3252
|
}
|
|
@@ -3227,7 +3254,7 @@ class Un {
|
|
|
3227
3254
|
interpolation: {}
|
|
3228
3255
|
}) {
|
|
3229
3256
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3230
|
-
const n = t.cacheInBuiltFormats ? vr :
|
|
3257
|
+
const n = t.cacheInBuiltFormats ? vr : Wn;
|
|
3231
3258
|
this.formats = {
|
|
3232
3259
|
number: n((s, a) => {
|
|
3233
3260
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3298,7 +3325,7 @@ class Un {
|
|
|
3298
3325
|
}, e);
|
|
3299
3326
|
}
|
|
3300
3327
|
}
|
|
3301
|
-
const
|
|
3328
|
+
const Un = (r, e) => {
|
|
3302
3329
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3303
3330
|
};
|
|
3304
3331
|
class Bn extends gt {
|
|
@@ -3333,7 +3360,7 @@ class Bn extends gt {
|
|
|
3333
3360
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3334
3361
|
const o = {};
|
|
3335
3362
|
this.queue.forEach((l) => {
|
|
3336
|
-
Dn(l.loaded, [a], i),
|
|
3363
|
+
Dn(l.loaded, [a], i), Un(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((c) => {
|
|
3337
3364
|
o[c] || (o[c] = {});
|
|
3338
3365
|
const f = l.loaded[c];
|
|
3339
3366
|
f.length && f.forEach((u) => {
|
|
@@ -3521,7 +3548,7 @@ class He extends gt {
|
|
|
3521
3548
|
if (!this.options.isClone) {
|
|
3522
3549
|
this.modules.logger ? ve.init(s(this.modules.logger), this.options) : ve.init(null, this.options);
|
|
3523
3550
|
let c;
|
|
3524
|
-
this.modules.formatter ? c = this.modules.formatter : c =
|
|
3551
|
+
this.modules.formatter ? c = this.modules.formatter : c = Yn;
|
|
3525
3552
|
const f = new mr(this.options);
|
|
3526
3553
|
this.store = new dr(this.options.resources, this.options);
|
|
3527
3554
|
const u = this.services;
|
|
@@ -3547,7 +3574,7 @@ class He extends gt {
|
|
|
3547
3574
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
3548
3575
|
this[c] = (...f) => (this.store[c](...f), this);
|
|
3549
3576
|
});
|
|
3550
|
-
const o =
|
|
3577
|
+
const o = We(), l = () => {
|
|
3551
3578
|
const c = (f, u) => {
|
|
3552
3579
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(u), t(f, u);
|
|
3553
3580
|
};
|
|
@@ -3574,7 +3601,7 @@ class He extends gt {
|
|
|
3574
3601
|
n(null);
|
|
3575
3602
|
}
|
|
3576
3603
|
reloadResources(e, t, n) {
|
|
3577
|
-
const s =
|
|
3604
|
+
const s = We();
|
|
3578
3605
|
return typeof e == "function" && (n = e, e = void 0), typeof t == "function" && (n = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), n || (n = tt), this.services.backendConnector.reload(e, t, (a) => {
|
|
3579
3606
|
s.resolve(), n(a);
|
|
3580
3607
|
}), s;
|
|
@@ -3598,7 +3625,7 @@ class He extends gt {
|
|
|
3598
3625
|
}
|
|
3599
3626
|
changeLanguage(e, t) {
|
|
3600
3627
|
this.isLanguageChangingTo = e;
|
|
3601
|
-
const n =
|
|
3628
|
+
const n = We();
|
|
3602
3629
|
this.emit("languageChanging", e);
|
|
3603
3630
|
const s = (o) => {
|
|
3604
3631
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
@@ -3652,7 +3679,7 @@ class He extends gt {
|
|
|
3652
3679
|
return !!(this.hasResourceBundle(n, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || i(n, e) && (!s || i(a, e)));
|
|
3653
3680
|
}
|
|
3654
3681
|
loadNamespaces(e, t) {
|
|
3655
|
-
const n =
|
|
3682
|
+
const n = We();
|
|
3656
3683
|
return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
|
|
3657
3684
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3658
3685
|
}), this.loadResources((s) => {
|
|
@@ -3660,7 +3687,7 @@ class He extends gt {
|
|
|
3660
3687
|
}), n) : (t && t(), Promise.resolve());
|
|
3661
3688
|
}
|
|
3662
3689
|
loadLanguages(e, t) {
|
|
3663
|
-
const n =
|
|
3690
|
+
const n = We();
|
|
3664
3691
|
z(e) && (e = [e]);
|
|
3665
3692
|
const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
3666
3693
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
|
|
@@ -3867,34 +3894,34 @@ const Ir = ({
|
|
|
3867
3894
|
_multiActiveIndex: d,
|
|
3868
3895
|
...g
|
|
3869
3896
|
}) => {
|
|
3870
|
-
const p = ce(null), [b, S] = H(r), [O,
|
|
3897
|
+
const p = ce(null), [b, S] = H(r), [O, w] = H(e), { translate: T } = je(), [v, y] = H(!1), [R, E] = H(t || []), [D, L] = H(0), [C, A] = H([r]), { anchorRef: k, targetRef: N, anchorWidth: I } = pt({
|
|
3871
3898
|
position: "bottom",
|
|
3872
|
-
enabled:
|
|
3899
|
+
enabled: v
|
|
3873
3900
|
}), B = ue(() => {
|
|
3874
|
-
|
|
3901
|
+
y(!1), p?.current?.focus();
|
|
3875
3902
|
}, []);
|
|
3876
|
-
mt([N],
|
|
3903
|
+
mt([N], v, () => B());
|
|
3877
3904
|
const G = On(400), q = (_) => {
|
|
3878
3905
|
_.length >= a ? o && f && G(async () => {
|
|
3879
|
-
const
|
|
3880
|
-
|
|
3881
|
-
}) : B(), S(_),
|
|
3906
|
+
const $ = await f(o, _);
|
|
3907
|
+
E($), L($.length > 0 ? 0 : -1), y(!0);
|
|
3908
|
+
}) : B(), S(_), w(e), l || c?.(_, e);
|
|
3882
3909
|
}, Z = () => {
|
|
3883
|
-
|
|
3910
|
+
v || u?.();
|
|
3884
3911
|
}, F = (_) => {
|
|
3885
|
-
l ? (S(""),
|
|
3886
|
-
const
|
|
3887
|
-
L(
|
|
3912
|
+
l ? (S(""), w("")) : (S(_.id), w(_.label)), c?.(_.id, _.label);
|
|
3913
|
+
const $ = R.findIndex((j) => j.id === _.id);
|
|
3914
|
+
L($), A([_.id]), B();
|
|
3888
3915
|
}, h = (_) => {
|
|
3889
3916
|
_.key === "Escape" && (B(), L(-1));
|
|
3890
|
-
},
|
|
3891
|
-
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(),
|
|
3892
|
-
const
|
|
3893
|
-
L(
|
|
3917
|
+
}, x = (_) => {
|
|
3918
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), v)) {
|
|
3919
|
+
const $ = _.key === "ArrowDown" ? (D + 1) % R.length : (D - 1 + R.length) % R.length;
|
|
3920
|
+
L($);
|
|
3894
3921
|
}
|
|
3895
3922
|
switch (_.key) {
|
|
3896
3923
|
case "Enter":
|
|
3897
|
-
|
|
3924
|
+
D >= 0 && D < R.length ? F(R[D]) : l && (c?.(b, ""), B(), S(""), w(""));
|
|
3898
3925
|
break;
|
|
3899
3926
|
case "Escape":
|
|
3900
3927
|
B(), L(-1);
|
|
@@ -3917,24 +3944,24 @@ const Ir = ({
|
|
|
3917
3944
|
ref: k,
|
|
3918
3945
|
inputRef: p,
|
|
3919
3946
|
onChange: q,
|
|
3920
|
-
onKeyDown:
|
|
3947
|
+
onKeyDown: x,
|
|
3921
3948
|
onBlur: Z,
|
|
3922
3949
|
"aria-autocomplete": "list"
|
|
3923
3950
|
}
|
|
3924
3951
|
),
|
|
3925
|
-
|
|
3952
|
+
v && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
|
|
3926
3953
|
Lr,
|
|
3927
3954
|
{
|
|
3928
|
-
options:
|
|
3955
|
+
options: R,
|
|
3929
3956
|
displayMode: s,
|
|
3930
3957
|
onClick: F,
|
|
3931
3958
|
ref: N,
|
|
3932
|
-
selectedIndex:
|
|
3959
|
+
selectedIndex: D,
|
|
3933
3960
|
activeIndex: d || C,
|
|
3934
3961
|
width: I,
|
|
3935
3962
|
showFilter: !1,
|
|
3936
3963
|
onKeyDown: h,
|
|
3937
|
-
isOpen:
|
|
3964
|
+
isOpen: v
|
|
3938
3965
|
}
|
|
3939
3966
|
) })
|
|
3940
3967
|
] });
|
|
@@ -3966,8 +3993,8 @@ const Ir = ({
|
|
|
3966
3993
|
}, [b, e, p]);
|
|
3967
3994
|
const O = {
|
|
3968
3995
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
3969
|
-
},
|
|
3970
|
-
const
|
|
3996
|
+
}, w = b?.map((T, v) => {
|
|
3997
|
+
const y = {
|
|
3971
3998
|
bindValue: T.id,
|
|
3972
3999
|
optionalDisplayValue: T.label,
|
|
3973
4000
|
fun: T.fun,
|
|
@@ -3985,9 +4012,9 @@ const Ir = ({
|
|
|
3985
4012
|
g?.(T.id, T.fun);
|
|
3986
4013
|
}
|
|
3987
4014
|
};
|
|
3988
|
-
return /* @__PURE__ */ m.jsx(Ce, { ...
|
|
4015
|
+
return /* @__PURE__ */ m.jsx(Ce, { ...y }, `button-${v}`);
|
|
3989
4016
|
});
|
|
3990
|
-
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: O.container, children:
|
|
4017
|
+
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: O.container, children: w });
|
|
3991
4018
|
}, fs = {
|
|
3992
4019
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
3993
4020
|
}, ds = ({
|
|
@@ -4053,7 +4080,7 @@ const Ir = ({
|
|
|
4053
4080
|
role: "listitem",
|
|
4054
4081
|
draggable: i,
|
|
4055
4082
|
onDragStart: () => u(p),
|
|
4056
|
-
onDragOver: (
|
|
4083
|
+
onDragOver: (w) => i && w.preventDefault(),
|
|
4057
4084
|
onDrop: () => i && d(p),
|
|
4058
4085
|
style: {
|
|
4059
4086
|
"--smp-chips-backgroundColor-base": a
|
|
@@ -4135,19 +4162,19 @@ const ps = ({
|
|
|
4135
4162
|
multiActiveIndex: c,
|
|
4136
4163
|
...f
|
|
4137
4164
|
}) => {
|
|
4138
|
-
const u = ce(null), [d, g] = H(!1), [p, b] = H(t), [S, O] = H(-1), [
|
|
4165
|
+
const u = ce(null), [d, g] = H(!1), [p, b] = H(t), [S, O] = H(-1), [w, T] = H([r]), v = Te(), { anchorRef: y, targetRef: R, anchorWidth: E } = pt({
|
|
4139
4166
|
position: "bottom",
|
|
4140
4167
|
enabled: d
|
|
4141
|
-
}),
|
|
4168
|
+
}), D = ue(() => {
|
|
4142
4169
|
g(!1), u?.current?.focus();
|
|
4143
4170
|
}, []);
|
|
4144
|
-
mt([
|
|
4171
|
+
mt([R, y], d, () => D()), It(d, R);
|
|
4145
4172
|
const L = (N) => {
|
|
4146
4173
|
e?.(N.id, N.label);
|
|
4147
4174
|
const I = p.findIndex((B) => B.id === N.id);
|
|
4148
|
-
O(I), T([N.id]),
|
|
4175
|
+
O(I), T([N.id]), D();
|
|
4149
4176
|
}, C = (N) => {
|
|
4150
|
-
N.key === "Escape" && (
|
|
4177
|
+
N.key === "Escape" && (D(), O(-1));
|
|
4151
4178
|
}, A = (N) => {
|
|
4152
4179
|
(N.key === "ArrowDown" || N.key === "ArrowUp") && (N.preventDefault(), k());
|
|
4153
4180
|
}, k = () => {
|
|
@@ -4160,8 +4187,8 @@ const ps = ({
|
|
|
4160
4187
|
{
|
|
4161
4188
|
role: "combobox",
|
|
4162
4189
|
"aria-expanded": d,
|
|
4163
|
-
"aria-controls":
|
|
4164
|
-
"aria-owns":
|
|
4190
|
+
"aria-controls": v,
|
|
4191
|
+
"aria-owns": v,
|
|
4165
4192
|
"data-component": "combobox",
|
|
4166
4193
|
children: [
|
|
4167
4194
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4177,7 +4204,7 @@ const ps = ({
|
|
|
4177
4204
|
shapeIcon: "arrow_drop_down",
|
|
4178
4205
|
rotatedShapeIcon: d,
|
|
4179
4206
|
isEditable: s,
|
|
4180
|
-
ref:
|
|
4207
|
+
ref: y,
|
|
4181
4208
|
inputRef: u,
|
|
4182
4209
|
"aria-autocomplete": "list",
|
|
4183
4210
|
variant: "notSelectable"
|
|
@@ -4186,14 +4213,14 @@ const ps = ({
|
|
|
4186
4213
|
d && /* @__PURE__ */ m.jsx(ht, { children: /* @__PURE__ */ m.jsx(
|
|
4187
4214
|
Lr,
|
|
4188
4215
|
{
|
|
4189
|
-
id:
|
|
4216
|
+
id: v,
|
|
4190
4217
|
options: p,
|
|
4191
4218
|
displayMode: i,
|
|
4192
|
-
ref:
|
|
4219
|
+
ref: R,
|
|
4193
4220
|
isOpen: d,
|
|
4194
4221
|
selectedIndex: S,
|
|
4195
|
-
activeIndex: c ||
|
|
4196
|
-
width:
|
|
4222
|
+
activeIndex: c || w,
|
|
4223
|
+
width: E,
|
|
4197
4224
|
onClick: L,
|
|
4198
4225
|
onKeyDown: C
|
|
4199
4226
|
}
|
|
@@ -4223,7 +4250,7 @@ function ms({
|
|
|
4223
4250
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4224
4251
|
), [p, b] = H(
|
|
4225
4252
|
l ? l.getDate() : null
|
|
4226
|
-
), S = ce(null), O = ce([]),
|
|
4253
|
+
), S = ce(null), O = ce([]), w = [
|
|
4227
4254
|
a(pe.JANUARY),
|
|
4228
4255
|
a(pe.FEBRUARY),
|
|
4229
4256
|
a(pe.MARCH),
|
|
@@ -4265,37 +4292,37 @@ function ms({
|
|
|
4265
4292
|
value: a(fe.SATURDAY_SHORT),
|
|
4266
4293
|
full: a(fe.SATURDAY)
|
|
4267
4294
|
}
|
|
4268
|
-
],
|
|
4269
|
-
const
|
|
4270
|
-
return
|
|
4271
|
-
}),
|
|
4272
|
-
|
|
4273
|
-
},
|
|
4295
|
+
], v = (F) => t.some((h) => {
|
|
4296
|
+
const x = h.start.getTime(), _ = h.end.getTime(), $ = F.getTime();
|
|
4297
|
+
return $ >= x && $ <= _;
|
|
4298
|
+
}), y = (F) => {
|
|
4299
|
+
v(F) || (c(F), b(F.getDate()), e && e(En(F)));
|
|
4300
|
+
}, R = () => {
|
|
4274
4301
|
f === 0 ? (u(11), g(d - 1)) : u(f - 1), b(1);
|
|
4275
|
-
},
|
|
4302
|
+
}, E = () => {
|
|
4276
4303
|
f === 11 ? (u(0), g(d + 1)) : u(f + 1), b(1);
|
|
4277
|
-
},
|
|
4304
|
+
}, D = (F, h) => new Date(F, h + 1, 0).getDate(), L = (F, h) => new Date(F, h, 1).getDay(), C = (F) => {
|
|
4278
4305
|
const h = I.findIndex(
|
|
4279
|
-
(
|
|
4306
|
+
(x) => x !== null && x.getDate() === F
|
|
4280
4307
|
);
|
|
4281
4308
|
h !== -1 && O.current[h] && (O.current[h]?.focus(), b(F));
|
|
4282
4309
|
}, A = (F, h) => {
|
|
4283
|
-
const
|
|
4284
|
-
if (!
|
|
4285
|
-
const _ =
|
|
4310
|
+
const x = I[h];
|
|
4311
|
+
if (!x) return;
|
|
4312
|
+
const _ = D(d, f), $ = x.getDate();
|
|
4286
4313
|
switch (F.key) {
|
|
4287
4314
|
case "ArrowRight":
|
|
4288
4315
|
F.preventDefault();
|
|
4289
4316
|
{
|
|
4290
|
-
let
|
|
4291
|
-
if (
|
|
4292
|
-
const
|
|
4293
|
-
|
|
4317
|
+
let j = $ + 1, P = new Date(d, f, j);
|
|
4318
|
+
if (j > _) {
|
|
4319
|
+
const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
|
|
4320
|
+
j = 1, P = new Date(W, Y, j), E(), setTimeout(() => {
|
|
4294
4321
|
k(1, "forward");
|
|
4295
4322
|
}, 0);
|
|
4296
4323
|
return;
|
|
4297
4324
|
}
|
|
4298
|
-
|
|
4325
|
+
v(P) ? k(j, "forward") : C(j);
|
|
4299
4326
|
}
|
|
4300
4327
|
break;
|
|
4301
4328
|
case "Tab":
|
|
@@ -4303,43 +4330,43 @@ function ms({
|
|
|
4303
4330
|
case "ArrowLeft":
|
|
4304
4331
|
F.preventDefault();
|
|
4305
4332
|
{
|
|
4306
|
-
let
|
|
4307
|
-
if (
|
|
4308
|
-
const
|
|
4309
|
-
|
|
4333
|
+
let j = $ - 1, P = new Date(d, f, j);
|
|
4334
|
+
if (j < 1) {
|
|
4335
|
+
const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1, V = D(W, Y);
|
|
4336
|
+
j = V, P = new Date(W, Y, j), R(), setTimeout(() => {
|
|
4310
4337
|
k(V, "backward");
|
|
4311
4338
|
}, 0);
|
|
4312
4339
|
return;
|
|
4313
4340
|
}
|
|
4314
|
-
|
|
4341
|
+
v(P) ? k(j, "backward") : C(j);
|
|
4315
4342
|
}
|
|
4316
4343
|
break;
|
|
4317
4344
|
case "ArrowUp":
|
|
4318
4345
|
F.preventDefault();
|
|
4319
4346
|
{
|
|
4320
|
-
let
|
|
4321
|
-
if (
|
|
4322
|
-
const
|
|
4323
|
-
|
|
4324
|
-
k(
|
|
4347
|
+
let j = $ - 7, P = new Date(d, f, j);
|
|
4348
|
+
if (j < 1) {
|
|
4349
|
+
const W = f === 0 ? d - 1 : d, Y = f === 0 ? 11 : f - 1;
|
|
4350
|
+
j = D(W, Y) + j, P = new Date(W, Y, j), R(), setTimeout(() => {
|
|
4351
|
+
k(j, "backward");
|
|
4325
4352
|
}, 0);
|
|
4326
4353
|
return;
|
|
4327
4354
|
}
|
|
4328
|
-
|
|
4355
|
+
v(P) ? k(j, "backward") : C(j);
|
|
4329
4356
|
}
|
|
4330
4357
|
break;
|
|
4331
4358
|
case "ArrowDown":
|
|
4332
4359
|
F.preventDefault();
|
|
4333
4360
|
{
|
|
4334
|
-
let
|
|
4335
|
-
if (
|
|
4336
|
-
const
|
|
4337
|
-
|
|
4338
|
-
k(
|
|
4361
|
+
let j = $ + 7, P = new Date(d, f, j);
|
|
4362
|
+
if (j > _) {
|
|
4363
|
+
const W = f === 11 ? d + 1 : d, Y = f === 11 ? 0 : f + 1;
|
|
4364
|
+
j = j - _, P = new Date(W, Y, j), E(), setTimeout(() => {
|
|
4365
|
+
k(j, "forward");
|
|
4339
4366
|
}, 0);
|
|
4340
4367
|
return;
|
|
4341
4368
|
}
|
|
4342
|
-
|
|
4369
|
+
v(P) ? k(j, "forward") : C(j);
|
|
4343
4370
|
}
|
|
4344
4371
|
break;
|
|
4345
4372
|
case "Home":
|
|
@@ -4349,67 +4376,67 @@ function ms({
|
|
|
4349
4376
|
F.preventDefault(), k(_, "backward");
|
|
4350
4377
|
break;
|
|
4351
4378
|
case "PageUp":
|
|
4352
|
-
F.preventDefault(),
|
|
4353
|
-
const
|
|
4379
|
+
F.preventDefault(), R(), setTimeout(() => {
|
|
4380
|
+
const j = D(
|
|
4354
4381
|
f === 0 ? d - 1 : d,
|
|
4355
4382
|
f === 0 ? 11 : f - 1
|
|
4356
|
-
), P = Math.min(j
|
|
4383
|
+
), P = Math.min($, j);
|
|
4357
4384
|
k(P, "forward");
|
|
4358
4385
|
}, 0);
|
|
4359
4386
|
break;
|
|
4360
4387
|
case "PageDown":
|
|
4361
|
-
F.preventDefault(),
|
|
4362
|
-
const
|
|
4388
|
+
F.preventDefault(), E(), setTimeout(() => {
|
|
4389
|
+
const j = D(
|
|
4363
4390
|
f === 11 ? d + 1 : d,
|
|
4364
4391
|
f === 11 ? 0 : f + 1
|
|
4365
|
-
), P = Math.min(j
|
|
4392
|
+
), P = Math.min($, j);
|
|
4366
4393
|
k(P, "forward");
|
|
4367
4394
|
}, 0);
|
|
4368
4395
|
break;
|
|
4369
4396
|
case " ":
|
|
4370
4397
|
case "Space":
|
|
4371
|
-
if (x
|
|
4372
|
-
b(
|
|
4398
|
+
if (v(x)) return;
|
|
4399
|
+
b(x.getDate()), c(x);
|
|
4373
4400
|
break;
|
|
4374
4401
|
case "Enter":
|
|
4375
|
-
F.preventDefault(),
|
|
4402
|
+
F.preventDefault(), y(x);
|
|
4376
4403
|
break;
|
|
4377
4404
|
}
|
|
4378
4405
|
}, k = (F, h) => {
|
|
4379
|
-
const
|
|
4406
|
+
const x = D(d, f);
|
|
4380
4407
|
if (h === "forward") {
|
|
4381
|
-
for (let _ = F; _ <=
|
|
4382
|
-
const
|
|
4383
|
-
if (!
|
|
4408
|
+
for (let _ = F; _ <= x; _++) {
|
|
4409
|
+
const $ = new Date(d, f, _);
|
|
4410
|
+
if (!v($)) {
|
|
4384
4411
|
C(_);
|
|
4385
4412
|
return;
|
|
4386
4413
|
}
|
|
4387
4414
|
}
|
|
4388
|
-
|
|
4415
|
+
E(), setTimeout(() => {
|
|
4389
4416
|
k(1, "forward");
|
|
4390
4417
|
}, 0);
|
|
4391
4418
|
} else {
|
|
4392
4419
|
for (let P = F; P >= 1; P--) {
|
|
4393
|
-
const
|
|
4394
|
-
if (!
|
|
4420
|
+
const W = new Date(d, f, P);
|
|
4421
|
+
if (!v(W)) {
|
|
4395
4422
|
C(P);
|
|
4396
4423
|
return;
|
|
4397
4424
|
}
|
|
4398
4425
|
}
|
|
4399
|
-
const _ = f === 0 ? d - 1 : d,
|
|
4400
|
-
|
|
4401
|
-
k(
|
|
4426
|
+
const _ = f === 0 ? d - 1 : d, $ = f === 0 ? 11 : f - 1, j = D(_, $);
|
|
4427
|
+
R(), setTimeout(() => {
|
|
4428
|
+
k(j, "backward");
|
|
4402
4429
|
}, 0);
|
|
4403
4430
|
}
|
|
4404
4431
|
}, I = (() => {
|
|
4405
|
-
const F =
|
|
4432
|
+
const F = D(d, f), h = L(d, f), x = [];
|
|
4406
4433
|
for (let _ = 0; _ < h; _++)
|
|
4407
|
-
|
|
4434
|
+
x.push(null);
|
|
4408
4435
|
for (let _ = 1; _ <= F; _++) {
|
|
4409
|
-
const
|
|
4410
|
-
|
|
4436
|
+
const $ = new Date(d, f, _);
|
|
4437
|
+
x.push($);
|
|
4411
4438
|
}
|
|
4412
|
-
return
|
|
4439
|
+
return x;
|
|
4413
4440
|
})(), B = [];
|
|
4414
4441
|
let G = [];
|
|
4415
4442
|
I.forEach((F, h) => {
|
|
@@ -4432,12 +4459,12 @@ function ms({
|
|
|
4432
4459
|
calendar: "smp-datepickercalendar",
|
|
4433
4460
|
table: "smp-datepickercalendar-table",
|
|
4434
4461
|
th: "smp-datepickercalendar-th",
|
|
4435
|
-
td: (F, h,
|
|
4462
|
+
td: (F, h, x, _) => `smp-datepickercalendar-td
|
|
4436
4463
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4437
4464
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4438
|
-
${
|
|
4465
|
+
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4439
4466
|
${_ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4440
|
-
}, Z = () => `${
|
|
4467
|
+
}, Z = () => `${w[f]} ${d.toString()}`;
|
|
4441
4468
|
return /* @__PURE__ */ m.jsxs(
|
|
4442
4469
|
"div",
|
|
4443
4470
|
{
|
|
@@ -4461,7 +4488,7 @@ function ms({
|
|
|
4461
4488
|
/* @__PURE__ */ m.jsx(
|
|
4462
4489
|
Ce,
|
|
4463
4490
|
{
|
|
4464
|
-
onClick:
|
|
4491
|
+
onClick: R,
|
|
4465
4492
|
ariaLabel: a(jt.PREVIOUS_MONTH),
|
|
4466
4493
|
optionalDisplayValue: "<",
|
|
4467
4494
|
appearance: "ghost",
|
|
@@ -4480,7 +4507,7 @@ function ms({
|
|
|
4480
4507
|
/* @__PURE__ */ m.jsx(
|
|
4481
4508
|
Ce,
|
|
4482
4509
|
{
|
|
4483
|
-
onClick:
|
|
4510
|
+
onClick: E,
|
|
4484
4511
|
ariaLabel: a(jt.NEXT_MONTH),
|
|
4485
4512
|
bindValue: ">",
|
|
4486
4513
|
optionalDisplayValue: ">",
|
|
@@ -4496,7 +4523,7 @@ function ms({
|
|
|
4496
4523
|
{
|
|
4497
4524
|
ref: S,
|
|
4498
4525
|
role: "grid",
|
|
4499
|
-
"aria-label": `${a(we.CALENDAR_FOR)} ${
|
|
4526
|
+
"aria-label": `${a(we.CALENDAR_FOR)} ${w[f]} ${d}`,
|
|
4500
4527
|
className: q.table,
|
|
4501
4528
|
children: [
|
|
4502
4529
|
/* @__PURE__ */ m.jsx("thead", { children: /* @__PURE__ */ m.jsx("tr", { children: T.map((F) => /* @__PURE__ */ m.jsx(
|
|
@@ -4509,9 +4536,9 @@ function ms({
|
|
|
4509
4536
|
},
|
|
4510
4537
|
F.value
|
|
4511
4538
|
)) }) }),
|
|
4512
|
-
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((
|
|
4513
|
-
const
|
|
4514
|
-
if (
|
|
4539
|
+
/* @__PURE__ */ m.jsx("tbody", { children: B.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((x, _) => {
|
|
4540
|
+
const $ = h * 7 + _;
|
|
4541
|
+
if (x === null)
|
|
4515
4542
|
return /* @__PURE__ */ m.jsx(
|
|
4516
4543
|
"td",
|
|
4517
4544
|
{
|
|
@@ -4524,28 +4551,28 @@ function ms({
|
|
|
4524
4551
|
},
|
|
4525
4552
|
`empty-${_}`
|
|
4526
4553
|
);
|
|
4527
|
-
const
|
|
4554
|
+
const j = x.getDate() === o.getDate() && x.getMonth() === o.getMonth() && x.getFullYear() === o.getFullYear(), P = l && x.getDate() === l.getDate() && x.getMonth() === l.getMonth() && x.getFullYear() === l.getFullYear(), W = p === x.getDate(), Y = v(x);
|
|
4528
4555
|
return /* @__PURE__ */ m.jsx(
|
|
4529
4556
|
"td",
|
|
4530
4557
|
{
|
|
4531
4558
|
role: "gridcell",
|
|
4532
4559
|
"aria-selected": P,
|
|
4533
|
-
tabIndex:
|
|
4534
|
-
onClick: () =>
|
|
4535
|
-
onKeyDown: (V) => A(V,
|
|
4536
|
-
"aria-label": `${
|
|
4560
|
+
tabIndex: W ? 0 : -1,
|
|
4561
|
+
onClick: () => y(x),
|
|
4562
|
+
onKeyDown: (V) => A(V, $),
|
|
4563
|
+
"aria-label": `${x.getDate()} ${w[x.getMonth()]} ${x.getFullYear()}`,
|
|
4537
4564
|
"data-selected": P,
|
|
4538
|
-
"aria-disabled":
|
|
4565
|
+
"aria-disabled": Y,
|
|
4539
4566
|
ref: (V) => {
|
|
4540
|
-
O.current[
|
|
4567
|
+
O.current[$] = V;
|
|
4541
4568
|
},
|
|
4542
4569
|
className: q.td(
|
|
4543
|
-
|
|
4570
|
+
j,
|
|
4544
4571
|
P,
|
|
4545
|
-
|
|
4546
|
-
|
|
4572
|
+
W,
|
|
4573
|
+
Y
|
|
4547
4574
|
),
|
|
4548
|
-
children:
|
|
4575
|
+
children: x.getDate()
|
|
4549
4576
|
},
|
|
4550
4577
|
`day-${_}`
|
|
4551
4578
|
);
|
|
@@ -4574,7 +4601,7 @@ const gs = ({
|
|
|
4574
4601
|
mt([p, g], o, () => {
|
|
4575
4602
|
b();
|
|
4576
4603
|
}), It(o, p);
|
|
4577
|
-
const { format: S, getCurrentLanguage: O } = je(),
|
|
4604
|
+
const { format: S, getCurrentLanguage: O } = je(), w = ue(
|
|
4578
4605
|
(L) => {
|
|
4579
4606
|
const C = L.length > 5 && xn(L, O()) || L, A = S(C, void 0, void 0, {
|
|
4580
4607
|
type: "date"
|
|
@@ -4589,20 +4616,20 @@ const gs = ({
|
|
|
4589
4616
|
[O, S]
|
|
4590
4617
|
);
|
|
4591
4618
|
re(() => {
|
|
4592
|
-
const { formattedDate: L, isoDate: C, isValid: A } =
|
|
4619
|
+
const { formattedDate: L, isoDate: C, isValid: A } = w(r);
|
|
4593
4620
|
f(A && C || r), d(A && L || r);
|
|
4594
|
-
}, [r, S,
|
|
4595
|
-
const T = () => l((L) => !L),
|
|
4596
|
-
|
|
4597
|
-
},
|
|
4598
|
-
|
|
4599
|
-
},
|
|
4600
|
-
const { isoDate: C, isValid: A } =
|
|
4621
|
+
}, [r, S, w]);
|
|
4622
|
+
const T = () => l((L) => !L), v = () => {
|
|
4623
|
+
R(u);
|
|
4624
|
+
}, y = (L) => {
|
|
4625
|
+
R(L), b();
|
|
4626
|
+
}, R = (L) => {
|
|
4627
|
+
const { isoDate: C, isValid: A } = w(L);
|
|
4601
4628
|
t && t(A && C || L);
|
|
4602
|
-
},
|
|
4629
|
+
}, E = (L) => {
|
|
4603
4630
|
d(L);
|
|
4604
|
-
},
|
|
4605
|
-
L.key === "Enter" && (L.preventDefault(),
|
|
4631
|
+
}, D = (L) => {
|
|
4632
|
+
L.key === "Enter" && (L.preventDefault(), R(u));
|
|
4606
4633
|
};
|
|
4607
4634
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
4608
4635
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4611,9 +4638,9 @@ const gs = ({
|
|
|
4611
4638
|
...a,
|
|
4612
4639
|
bindValue: u,
|
|
4613
4640
|
placeholder: e,
|
|
4614
|
-
onBlur:
|
|
4615
|
-
onChange:
|
|
4616
|
-
onKeyDown:
|
|
4641
|
+
onBlur: v,
|
|
4642
|
+
onChange: E,
|
|
4643
|
+
onKeyDown: D,
|
|
4617
4644
|
shapeIcon: "calendar",
|
|
4618
4645
|
onShapeIconClick: T,
|
|
4619
4646
|
ref: g,
|
|
@@ -4627,7 +4654,7 @@ const gs = ({
|
|
|
4627
4654
|
ms,
|
|
4628
4655
|
{
|
|
4629
4656
|
disabledDateRanges: n,
|
|
4630
|
-
onDateChange:
|
|
4657
|
+
onDateChange: y,
|
|
4631
4658
|
initialValue: Lt(c) && c || "",
|
|
4632
4659
|
targetRef: p
|
|
4633
4660
|
}
|
|
@@ -4649,19 +4676,19 @@ const gs = ({
|
|
|
4649
4676
|
onBlur: d
|
|
4650
4677
|
}) => {
|
|
4651
4678
|
const g = r.map((S) => S.bindValue), p = (S, O) => {
|
|
4652
|
-
const
|
|
4679
|
+
const w = [...r];
|
|
4653
4680
|
if (S == "")
|
|
4654
|
-
|
|
4681
|
+
w.pop();
|
|
4655
4682
|
else {
|
|
4656
|
-
const T =
|
|
4657
|
-
(
|
|
4683
|
+
const T = w.findIndex(
|
|
4684
|
+
(v) => v.bindValue === S && v.optionalDisplayValue === O
|
|
4658
4685
|
);
|
|
4659
|
-
T >= 0 ?
|
|
4686
|
+
T >= 0 ? w.splice(T, 1) : w.push({
|
|
4660
4687
|
bindValue: S,
|
|
4661
4688
|
optionalDisplayValue: O
|
|
4662
4689
|
});
|
|
4663
4690
|
}
|
|
4664
|
-
u?.(
|
|
4691
|
+
u?.(w);
|
|
4665
4692
|
}, b = {
|
|
4666
4693
|
container: "smp-multipleAutocomplete-container"
|
|
4667
4694
|
};
|
|
@@ -4841,30 +4868,30 @@ const Pe = (r, e, t) => ({
|
|
|
4841
4868
|
useGrouping: !0
|
|
4842
4869
|
}).format(k),
|
|
4843
4870
|
[u]
|
|
4844
|
-
), b = ue(as, [d, g]), S = ue(ts, [r, e]), O = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [
|
|
4845
|
-
a != null ? p(a,
|
|
4846
|
-
),
|
|
4871
|
+
), b = ue(as, [d, g]), S = ue(ts, [r, e]), O = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, T] = H(O), [v, y] = H(
|
|
4872
|
+
a != null ? p(a, w) : ""
|
|
4873
|
+
), R = ce(a ?? null);
|
|
4847
4874
|
re(() => {
|
|
4848
4875
|
if (a == null) {
|
|
4849
|
-
|
|
4876
|
+
y(""), R.current = null;
|
|
4850
4877
|
return;
|
|
4851
4878
|
}
|
|
4852
|
-
const k = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, N = k === 0 ?
|
|
4853
|
-
N !==
|
|
4879
|
+
const k = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, N = k === 0 ? w : k;
|
|
4880
|
+
N !== w && T(N), y(p(a, N)), R.current = a;
|
|
4854
4881
|
}, [a, p]);
|
|
4855
|
-
const
|
|
4882
|
+
const E = ue(
|
|
4856
4883
|
(k, N = !1) => {
|
|
4857
4884
|
if (k.trim() === "") {
|
|
4858
|
-
|
|
4885
|
+
y(""), R.current = null, i?.(void 0, ""), N && o?.(void 0);
|
|
4859
4886
|
return;
|
|
4860
4887
|
}
|
|
4861
4888
|
const I = b(k, d, g);
|
|
4862
4889
|
if (isNaN(I))
|
|
4863
|
-
if (
|
|
4864
|
-
const B = p(
|
|
4865
|
-
|
|
4890
|
+
if (R.current != null) {
|
|
4891
|
+
const B = p(R.current, w);
|
|
4892
|
+
y(B);
|
|
4866
4893
|
} else
|
|
4867
|
-
|
|
4894
|
+
y("");
|
|
4868
4895
|
else {
|
|
4869
4896
|
const B = S(I, r, e), G = ss(
|
|
4870
4897
|
k,
|
|
@@ -4873,7 +4900,7 @@ const Pe = (r, e, t) => ({
|
|
|
4873
4900
|
);
|
|
4874
4901
|
T(G);
|
|
4875
4902
|
const q = p(B, G);
|
|
4876
|
-
|
|
4903
|
+
y(q), R.current = B, i?.(B, q), N && o?.(B);
|
|
4877
4904
|
}
|
|
4878
4905
|
},
|
|
4879
4906
|
[
|
|
@@ -4886,23 +4913,23 @@ const Pe = (r, e, t) => ({
|
|
|
4886
4913
|
p,
|
|
4887
4914
|
i,
|
|
4888
4915
|
o,
|
|
4889
|
-
|
|
4916
|
+
w
|
|
4890
4917
|
]
|
|
4891
|
-
),
|
|
4918
|
+
), D = (k) => y(k), L = () => E(v), C = (k) => {
|
|
4892
4919
|
if (k.key === "Enter") {
|
|
4893
|
-
k.preventDefault(),
|
|
4920
|
+
k.preventDefault(), E(v, !0);
|
|
4894
4921
|
return;
|
|
4895
4922
|
}
|
|
4896
4923
|
if (k.key === "ArrowUp" || k.key === "ArrowDown") {
|
|
4897
4924
|
k.preventDefault();
|
|
4898
|
-
const N = k.key === "ArrowUp" ? 1 : -1, I =
|
|
4899
|
-
|
|
4925
|
+
const N = k.key === "ArrowUp" ? 1 : -1, I = R.current ?? 0, B = S(I + N * t, r, e);
|
|
4926
|
+
E(p(B, w));
|
|
4900
4927
|
}
|
|
4901
4928
|
}, A = (k) => {
|
|
4902
4929
|
if (!k.currentTarget.contains(document.activeElement)) return;
|
|
4903
4930
|
k.preventDefault();
|
|
4904
|
-
const N = k.deltaY < 0 ? 1 : -1, I =
|
|
4905
|
-
|
|
4931
|
+
const N = k.deltaY < 0 ? 1 : -1, I = R.current ?? 0, B = S(I + N * t, r, e);
|
|
4932
|
+
E(p(B, w));
|
|
4906
4933
|
};
|
|
4907
4934
|
return /* @__PURE__ */ m.jsx("div", { ref: f, "data-component": "input-number", onWheel: A, children: /* @__PURE__ */ m.jsx(
|
|
4908
4935
|
De,
|
|
@@ -4910,14 +4937,14 @@ const Pe = (r, e, t) => ({
|
|
|
4910
4937
|
...l,
|
|
4911
4938
|
"aria-valuemin": r,
|
|
4912
4939
|
"aria-valuemax": e,
|
|
4913
|
-
"aria-valuenow":
|
|
4914
|
-
bindValue:
|
|
4940
|
+
"aria-valuenow": R.current ?? void 0,
|
|
4941
|
+
bindValue: v,
|
|
4915
4942
|
inputType: "text",
|
|
4916
4943
|
inputMode: n,
|
|
4917
4944
|
min: r,
|
|
4918
4945
|
max: e,
|
|
4919
4946
|
step: t,
|
|
4920
|
-
onChange:
|
|
4947
|
+
onChange: D,
|
|
4921
4948
|
onBlur: L,
|
|
4922
4949
|
onKeyDown: C
|
|
4923
4950
|
}
|
|
@@ -4983,13 +5010,13 @@ const Ts = ({
|
|
|
4983
5010
|
rows: g = 10,
|
|
4984
5011
|
cols: p = 35
|
|
4985
5012
|
}) => {
|
|
4986
|
-
const b = Te(), S = `${b}-helper`, O = f ? "danger" : s,
|
|
4987
|
-
t?.(
|
|
4988
|
-
},
|
|
5013
|
+
const b = Te(), S = `${b}-helper`, O = f ? "danger" : s, w = c || !!f, T = (y) => {
|
|
5014
|
+
t?.(y.target.value);
|
|
5015
|
+
}, v = {
|
|
4989
5016
|
wrapper: "smp-textarea-wrapper",
|
|
4990
5017
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${O ? `smp-textarea-${O}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4991
5018
|
};
|
|
4992
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
5019
|
+
return /* @__PURE__ */ m.jsxs("div", { className: v.wrapper, "data-component": "textarea", children: [
|
|
4993
5020
|
o && /* @__PURE__ */ m.jsx(Re, { htmlFor: b, label: o, disabled: r }),
|
|
4994
5021
|
/* @__PURE__ */ m.jsx(
|
|
4995
5022
|
"textarea",
|
|
@@ -4999,18 +5026,18 @@ const Ts = ({
|
|
|
4999
5026
|
placeholder: n,
|
|
5000
5027
|
onChange: T,
|
|
5001
5028
|
onBlur: u,
|
|
5002
|
-
className:
|
|
5029
|
+
className: v.container,
|
|
5003
5030
|
disabled: r,
|
|
5004
5031
|
readOnly: !i,
|
|
5005
5032
|
onKeyDown: d,
|
|
5006
5033
|
"aria-label": o ? void 0 : l,
|
|
5007
5034
|
"aria-labelledby": o ? b : void 0,
|
|
5008
|
-
"aria-describedby":
|
|
5035
|
+
"aria-describedby": w ? S : void 0,
|
|
5009
5036
|
rows: g,
|
|
5010
5037
|
cols: p
|
|
5011
5038
|
}
|
|
5012
5039
|
),
|
|
5013
|
-
|
|
5040
|
+
w && /* @__PURE__ */ m.jsx(
|
|
5014
5041
|
$r,
|
|
5015
5042
|
{
|
|
5016
5043
|
id: S,
|
|
@@ -5022,7 +5049,7 @@ const Ts = ({
|
|
|
5022
5049
|
] });
|
|
5023
5050
|
};
|
|
5024
5051
|
var $t = /* @__PURE__ */ ((r) => (r.PAGE_DIRECTION = "pageDirection", r.LINE_DIRECTION = "lineDirection", r))($t || {});
|
|
5025
|
-
const
|
|
5052
|
+
const Ye = {
|
|
5026
5053
|
"smp-radio": "_smp-radio_1wj31_1",
|
|
5027
5054
|
"smp-radio-options-container": "_smp-radio-options-container_1wj31_10",
|
|
5028
5055
|
"smp-radio-horizontal": "_smp-radio-horizontal_1wj31_16",
|
|
@@ -5045,9 +5072,9 @@ const Ue = {
|
|
|
5045
5072
|
});
|
|
5046
5073
|
}, [l, s, a]);
|
|
5047
5074
|
const u = {
|
|
5048
|
-
container:
|
|
5049
|
-
optionsContainer: `${
|
|
5050
|
-
option: `${
|
|
5075
|
+
container: Ye["smp-radio"],
|
|
5076
|
+
optionsContainer: `${Ye["smp-radio-options-container"]} ${t == $t.LINE_DIRECTION ? Ye["smp-radio-horizontal"] : ""}`,
|
|
5077
|
+
option: `${Ye["smp-radio-element"]} ${r ? Ye["smp-radio-disabled"] : ""}`
|
|
5051
5078
|
}, d = () => {
|
|
5052
5079
|
r || o.onBlur?.();
|
|
5053
5080
|
}, g = (b) => {
|
|
@@ -5156,33 +5183,33 @@ const Ue = {
|
|
|
5156
5183
|
o(!1), a?.current?.focus();
|
|
5157
5184
|
}, []);
|
|
5158
5185
|
mt([g, d], i, () => o(!1)), It(i, g), re(() => {
|
|
5159
|
-
const
|
|
5160
|
-
c(
|
|
5186
|
+
const y = r || "", R = Tr(y) ? y : r || "";
|
|
5187
|
+
c(y), u(R);
|
|
5161
5188
|
}, [r]), re(() => {
|
|
5162
|
-
const
|
|
5163
|
-
|
|
5189
|
+
const y = (R) => {
|
|
5190
|
+
R.key === "Escape" && o(!1);
|
|
5164
5191
|
};
|
|
5165
|
-
return i && document.addEventListener("keydown",
|
|
5166
|
-
document.removeEventListener("keydown",
|
|
5192
|
+
return i && document.addEventListener("keydown", y), () => {
|
|
5193
|
+
document.removeEventListener("keydown", y);
|
|
5167
5194
|
};
|
|
5168
5195
|
}, [i]);
|
|
5169
5196
|
const b = () => {
|
|
5170
|
-
n && o((
|
|
5171
|
-
}, S = (
|
|
5172
|
-
u(
|
|
5173
|
-
}, O = (
|
|
5174
|
-
const
|
|
5175
|
-
c(
|
|
5176
|
-
},
|
|
5177
|
-
|
|
5178
|
-
}, T = (
|
|
5179
|
-
|
|
5180
|
-
},
|
|
5181
|
-
if (
|
|
5197
|
+
n && o((y) => !y);
|
|
5198
|
+
}, S = (y) => {
|
|
5199
|
+
u(y);
|
|
5200
|
+
}, O = (y, R, E) => {
|
|
5201
|
+
const D = Rs(y, R, E);
|
|
5202
|
+
c(D), u(D), t?.(D), p();
|
|
5203
|
+
}, w = () => {
|
|
5204
|
+
v(f);
|
|
5205
|
+
}, T = (y) => {
|
|
5206
|
+
y.key === "Enter" && (y.preventDefault(), v(f));
|
|
5207
|
+
}, v = (y) => {
|
|
5208
|
+
if (y.trim() === "") {
|
|
5182
5209
|
c(""), u(""), t?.("");
|
|
5183
5210
|
return;
|
|
5184
5211
|
}
|
|
5185
|
-
Tr(
|
|
5212
|
+
Tr(y) ? (c(y), u(y), t?.(y)) : u(y);
|
|
5186
5213
|
};
|
|
5187
5214
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "time-picker", children: [
|
|
5188
5215
|
/* @__PURE__ */ m.jsx(
|
|
@@ -5192,7 +5219,7 @@ const Ue = {
|
|
|
5192
5219
|
bindValue: f,
|
|
5193
5220
|
placeholder: e,
|
|
5194
5221
|
onChange: S,
|
|
5195
|
-
onBlur:
|
|
5222
|
+
onBlur: w,
|
|
5196
5223
|
onKeyDown: T,
|
|
5197
5224
|
shapeIcon: "clock",
|
|
5198
5225
|
onShapeIconClick: b,
|
|
@@ -5273,7 +5300,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5273
5300
|
isEditable: S,
|
|
5274
5301
|
dSep: O = "."
|
|
5275
5302
|
}) => {
|
|
5276
|
-
const
|
|
5303
|
+
const w = {
|
|
5277
5304
|
obj: t,
|
|
5278
5305
|
shape: e,
|
|
5279
5306
|
decode: r,
|
|
@@ -5288,12 +5315,12 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5288
5315
|
tooltip: l,
|
|
5289
5316
|
label: o,
|
|
5290
5317
|
isEditable: S,
|
|
5291
|
-
size:
|
|
5318
|
+
size: w.data && w.data.size ? w.data.size : w.data?.displayMode && ws(w.data.displayMode || "CodeOnly"),
|
|
5292
5319
|
...n
|
|
5293
|
-
},
|
|
5320
|
+
}, v = (C, A, k) => yn(t) ? Pe(C, new lt(t, A).getLegacyValue()) : bn(t) ? Pe(C, new dt(t, A).getLegacyValue()) : Pe(C, A, k), y = (C, A) => Pe(
|
|
5294
5321
|
C,
|
|
5295
5322
|
new Ge(t, A, O).getLegacyValue()
|
|
5296
|
-
),
|
|
5323
|
+
), R = (C) => Pe(w, new it(t, C).getLegacyValue()), E = (C) => Ss(w, C), D = () => {
|
|
5297
5324
|
switch (e) {
|
|
5298
5325
|
case te.AUTOCOMPLETE: {
|
|
5299
5326
|
const C = {
|
|
@@ -5301,7 +5328,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5301
5328
|
bindValue: t.k,
|
|
5302
5329
|
optionalDisplayValue: r,
|
|
5303
5330
|
onChange: (A, k) => {
|
|
5304
|
-
f?.(
|
|
5331
|
+
f?.(v(w, A, k));
|
|
5305
5332
|
}
|
|
5306
5333
|
};
|
|
5307
5334
|
return /* @__PURE__ */ m.jsx(Ir, { ...C });
|
|
@@ -5313,7 +5340,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5313
5340
|
optionalDisplayValue: n?.label && typeof n.label == "string" ? n.label : void 0,
|
|
5314
5341
|
title: r,
|
|
5315
5342
|
onClick: () => {
|
|
5316
|
-
u?.(
|
|
5343
|
+
u?.(v(w, t.k));
|
|
5317
5344
|
}
|
|
5318
5345
|
};
|
|
5319
5346
|
return /* @__PURE__ */ m.jsx(Ce, { ...C });
|
|
@@ -5323,8 +5350,8 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5323
5350
|
...T,
|
|
5324
5351
|
options: c,
|
|
5325
5352
|
onClick: (A, k) => {
|
|
5326
|
-
const N = { ...
|
|
5327
|
-
u?.(
|
|
5353
|
+
const N = { ...w, fun: k };
|
|
5354
|
+
u?.(v(N, A));
|
|
5328
5355
|
}
|
|
5329
5356
|
};
|
|
5330
5357
|
return /* @__PURE__ */ m.jsx(us, { ...C });
|
|
@@ -5332,7 +5359,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5332
5359
|
case te.CHIP: {
|
|
5333
5360
|
const C = {
|
|
5334
5361
|
...T,
|
|
5335
|
-
elements: Er(
|
|
5362
|
+
elements: Er(w)
|
|
5336
5363
|
};
|
|
5337
5364
|
return /* @__PURE__ */ m.jsx(Pt, { ...C });
|
|
5338
5365
|
}
|
|
@@ -5343,7 +5370,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5343
5370
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5344
5371
|
optionalDisplayValue: r,
|
|
5345
5372
|
onChange: (k) => {
|
|
5346
|
-
f?.(
|
|
5373
|
+
f?.(R(k));
|
|
5347
5374
|
},
|
|
5348
5375
|
...C && { variant: "switch" }
|
|
5349
5376
|
};
|
|
@@ -5355,7 +5382,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5355
5382
|
bindValue: t.k,
|
|
5356
5383
|
optionalDisplayValue: r,
|
|
5357
5384
|
onChange: (A, k) => {
|
|
5358
|
-
f?.(
|
|
5385
|
+
f?.(v(w, A, k));
|
|
5359
5386
|
}
|
|
5360
5387
|
};
|
|
5361
5388
|
return /* @__PURE__ */ m.jsx(ps, { ...C });
|
|
@@ -5365,7 +5392,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5365
5392
|
...T,
|
|
5366
5393
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5367
5394
|
onChange: (A) => {
|
|
5368
|
-
f?.(
|
|
5395
|
+
f?.(v(w, A));
|
|
5369
5396
|
}
|
|
5370
5397
|
};
|
|
5371
5398
|
return /* @__PURE__ */ m.jsx(gs, { ...C });
|
|
@@ -5378,7 +5405,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5378
5405
|
placeholderIcon: i,
|
|
5379
5406
|
isInteractable: !!T.fun,
|
|
5380
5407
|
onClick: () => {
|
|
5381
|
-
u?.(
|
|
5408
|
+
u?.(v(w, t.k));
|
|
5382
5409
|
}
|
|
5383
5410
|
};
|
|
5384
5411
|
return /* @__PURE__ */ m.jsx(le, { ...C });
|
|
@@ -5388,7 +5415,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5388
5415
|
...T,
|
|
5389
5416
|
bindValue: Ge.fromDataObj(t, O).getValue(),
|
|
5390
5417
|
onChange: (A) => {
|
|
5391
|
-
f?.(
|
|
5418
|
+
f?.(y(w, A));
|
|
5392
5419
|
}
|
|
5393
5420
|
};
|
|
5394
5421
|
return /* @__PURE__ */ m.jsx(Es, { ...C });
|
|
@@ -5400,7 +5427,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5400
5427
|
bindValue: t.k,
|
|
5401
5428
|
optionalDisplayValue: r,
|
|
5402
5429
|
onChange: (A) => {
|
|
5403
|
-
f?.(
|
|
5430
|
+
f?.(v(w, A));
|
|
5404
5431
|
}
|
|
5405
5432
|
};
|
|
5406
5433
|
return /* @__PURE__ */ m.jsx(Ts, { ...C });
|
|
@@ -5408,9 +5435,9 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5408
5435
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5409
5436
|
const C = {
|
|
5410
5437
|
...T,
|
|
5411
|
-
elements: Er(
|
|
5438
|
+
elements: Er(w),
|
|
5412
5439
|
onChange: (A) => {
|
|
5413
|
-
f?.(
|
|
5440
|
+
f?.(E(A));
|
|
5414
5441
|
}
|
|
5415
5442
|
};
|
|
5416
5443
|
return /* @__PURE__ */ m.jsx(ys, { ...C });
|
|
@@ -5420,7 +5447,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5420
5447
|
...T,
|
|
5421
5448
|
bindValue: t.k,
|
|
5422
5449
|
onChange: (A) => {
|
|
5423
|
-
f?.(
|
|
5450
|
+
f?.(v(w, A));
|
|
5424
5451
|
}
|
|
5425
5452
|
};
|
|
5426
5453
|
return /* @__PURE__ */ m.jsx(bs, { ...C });
|
|
@@ -5430,7 +5457,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5430
5457
|
...T,
|
|
5431
5458
|
bindValue: t.k,
|
|
5432
5459
|
onChange: (A, k) => {
|
|
5433
|
-
f?.(
|
|
5460
|
+
f?.(v(w, A, k));
|
|
5434
5461
|
}
|
|
5435
5462
|
};
|
|
5436
5463
|
return /* @__PURE__ */ m.jsx(Cs, { ...C });
|
|
@@ -5440,7 +5467,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5440
5467
|
...T,
|
|
5441
5468
|
bindValue: t.k,
|
|
5442
5469
|
onEnter: (A) => {
|
|
5443
|
-
d?.(
|
|
5470
|
+
d?.(v(w, A));
|
|
5444
5471
|
}
|
|
5445
5472
|
};
|
|
5446
5473
|
return /* @__PURE__ */ m.jsx(vs, { ...C });
|
|
@@ -5451,7 +5478,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5451
5478
|
bindValue: t.k,
|
|
5452
5479
|
optionalDisplayValue: r,
|
|
5453
5480
|
onChange: (A) => {
|
|
5454
|
-
f?.(
|
|
5481
|
+
f?.(v(w, A));
|
|
5455
5482
|
}
|
|
5456
5483
|
};
|
|
5457
5484
|
return /* @__PURE__ */ m.jsx(De, { ...C });
|
|
@@ -5461,7 +5488,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5461
5488
|
...T,
|
|
5462
5489
|
bindValue: dt.fromDataObj(t).getValue(),
|
|
5463
5490
|
onChange: (A) => {
|
|
5464
|
-
f?.(
|
|
5491
|
+
f?.(v(w, A));
|
|
5465
5492
|
}
|
|
5466
5493
|
};
|
|
5467
5494
|
return /* @__PURE__ */ m.jsx(Ds, { ...C });
|
|
@@ -5483,9 +5510,9 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5483
5510
|
{
|
|
5484
5511
|
className: L.wrapper,
|
|
5485
5512
|
onContextMenu: (C) => {
|
|
5486
|
-
b && l && (C.preventDefault(), b(
|
|
5513
|
+
b && l && (C.preventDefault(), b(w, C.currentTarget));
|
|
5487
5514
|
},
|
|
5488
|
-
children:
|
|
5515
|
+
children: D()
|
|
5489
5516
|
}
|
|
5490
5517
|
);
|
|
5491
5518
|
}, ea = ({
|
|
@@ -5556,21 +5583,21 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5556
5583
|
onContextMenu: c
|
|
5557
5584
|
}) => {
|
|
5558
5585
|
const [f, u] = H(), [d, g] = H(t ?? !0), p = ce(null), b = s.trim() ? s : "100vh", S = ue(
|
|
5559
|
-
(
|
|
5560
|
-
if (!
|
|
5586
|
+
(v) => {
|
|
5587
|
+
if (!v?.rows?.length || !v?.columns?.length)
|
|
5561
5588
|
return {};
|
|
5562
|
-
const
|
|
5563
|
-
return
|
|
5564
|
-
const
|
|
5565
|
-
if (!
|
|
5566
|
-
return
|
|
5589
|
+
const y = v.rows[0];
|
|
5590
|
+
return v.columns.filter((R) => R.visible ?? !0).reduce((R, E) => {
|
|
5591
|
+
const D = y.cells[E.name];
|
|
5592
|
+
if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
|
|
5593
|
+
return R;
|
|
5567
5594
|
const L = {
|
|
5568
|
-
...
|
|
5569
|
-
id:
|
|
5595
|
+
...D,
|
|
5596
|
+
id: E.name,
|
|
5570
5597
|
onChange: (C) => {
|
|
5571
5598
|
u((A) => {
|
|
5572
5599
|
const k = { ...A };
|
|
5573
|
-
return k?.[
|
|
5600
|
+
return k?.[E.name] && (k[E.name].obj.k = C.obj.k), k;
|
|
5574
5601
|
});
|
|
5575
5602
|
},
|
|
5576
5603
|
onClick: (C) => {
|
|
@@ -5583,7 +5610,7 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5583
5610
|
c && c(C, A);
|
|
5584
5611
|
}
|
|
5585
5612
|
};
|
|
5586
|
-
return l &&
|
|
5613
|
+
return l && D.shape == te.BUTTON_LIST && (L.onOptionsRequest = (C, A) => l(C, A).then(
|
|
5587
5614
|
(k) => ks(k)
|
|
5588
5615
|
)), !d && de(n) && (L.data = {
|
|
5589
5616
|
...L.data,
|
|
@@ -5591,16 +5618,16 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5591
5618
|
justify: "center",
|
|
5592
5619
|
squared: !0
|
|
5593
5620
|
}), {
|
|
5594
|
-
|
|
5595
|
-
[
|
|
5621
|
+
...R,
|
|
5622
|
+
[E.name]: L
|
|
5596
5623
|
};
|
|
5597
5624
|
}, {});
|
|
5598
5625
|
},
|
|
5599
5626
|
[d, n, a, i, l, c]
|
|
5600
5627
|
), O = ue(() => {
|
|
5601
5628
|
o?.();
|
|
5602
|
-
}, [o]),
|
|
5603
|
-
de(n) ? g((
|
|
5629
|
+
}, [o]), w = () => {
|
|
5630
|
+
de(n) ? g((v) => !v) : (g(!1), o?.());
|
|
5604
5631
|
};
|
|
5605
5632
|
if (re(() => {
|
|
5606
5633
|
u(S(r));
|
|
@@ -5611,13 +5638,13 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5611
5638
|
u(S(r));
|
|
5612
5639
|
return;
|
|
5613
5640
|
}
|
|
5614
|
-
const
|
|
5641
|
+
const v = getComputedStyle(p.current).getPropertyValue(
|
|
5615
5642
|
"--smp-drawer-slide-transition"
|
|
5616
5643
|
);
|
|
5617
|
-
let
|
|
5618
|
-
|
|
5644
|
+
let y = Number(v);
|
|
5645
|
+
v.endsWith("ms") ? y = parseFloat(v) : v.endsWith("s") && (y = parseFloat(v) * 1e3), setTimeout(() => {
|
|
5619
5646
|
u(S(r));
|
|
5620
|
-
},
|
|
5647
|
+
}, y / 2);
|
|
5621
5648
|
}, [d, n]), re(() => {
|
|
5622
5649
|
t !== void 0 && !de(n) && g(t);
|
|
5623
5650
|
}, [n, t]), !r?.rows?.length || !r.columns?.length)
|
|
@@ -5667,13 +5694,13 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5667
5694
|
title: "drawer_icon",
|
|
5668
5695
|
rotated: !d,
|
|
5669
5696
|
isInteractable: !0,
|
|
5670
|
-
onClick:
|
|
5697
|
+
onClick: w,
|
|
5671
5698
|
width: 20,
|
|
5672
5699
|
height: 20
|
|
5673
5700
|
}
|
|
5674
5701
|
) })
|
|
5675
5702
|
] }),
|
|
5676
|
-
/* @__PURE__ */ m.jsx("div", { className: T.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((
|
|
5703
|
+
/* @__PURE__ */ m.jsx("div", { className: T.containerLayout, children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((v) => /* @__PURE__ */ m.jsx(Ee, { ...v })) }) })
|
|
5677
5704
|
] })
|
|
5678
5705
|
}
|
|
5679
5706
|
)
|
|
@@ -5697,12 +5724,12 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5697
5724
|
ForceValue: b,
|
|
5698
5725
|
ValueColName: S,
|
|
5699
5726
|
ValueColor: O = "var(--smp-dashList-color-base)",
|
|
5700
|
-
SelectLayout:
|
|
5727
|
+
SelectLayout: w = "1",
|
|
5701
5728
|
onClick: T
|
|
5702
5729
|
}) => {
|
|
5703
|
-
const
|
|
5704
|
-
dash: (
|
|
5705
|
-
const X = h(
|
|
5730
|
+
const v = "N/A", y = e?.columns || [], R = e?.rows || [], E = R.length > 0, D = "--smp-dashList-color", L = "smp-layout", C = "descr", A = "icon", k = "um", N = "value", I = i || "1em", B = "18px", G = "--smp-dashList-columns", q = "--smp-dashList-fontSize", Z = {
|
|
5731
|
+
dash: (U = "1") => {
|
|
5732
|
+
const X = h(U), ne = X, ae = x(X, C), $e = x(X, A), Me = x(X, k), ge = x(X, N);
|
|
5706
5733
|
return {
|
|
5707
5734
|
container: ne,
|
|
5708
5735
|
descr: ae,
|
|
@@ -5713,29 +5740,29 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5713
5740
|
},
|
|
5714
5741
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5715
5742
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5716
|
-
}, { format: F } = je(), h = (
|
|
5743
|
+
}, { format: F } = je(), h = (U) => `${L}-${U}`, x = (U, X) => `${U}__${X}`, _ = (U) => `${D}-${U}`, $ = (U) => {
|
|
5717
5744
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5718
|
-
if (X.test(
|
|
5719
|
-
const ae =
|
|
5745
|
+
if (X.test(U)) {
|
|
5746
|
+
const ae = U.match(X) || [];
|
|
5720
5747
|
if (ae?.length > 3)
|
|
5721
5748
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5722
5749
|
}
|
|
5723
|
-
return
|
|
5724
|
-
},
|
|
5725
|
-
if (!u) return
|
|
5750
|
+
return U;
|
|
5751
|
+
}, j = (U) => {
|
|
5752
|
+
if (!u) return U;
|
|
5726
5753
|
const [X, ne] = P(u).map(
|
|
5727
5754
|
(ke) => parseInt(ke || "0")
|
|
5728
|
-
), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), $e = F(
|
|
5755
|
+
), ae = "0,0" + (ne ? "." + "0".repeat(ne) : ""), $e = F(U, ae, "it");
|
|
5729
5756
|
if (!X) return $e;
|
|
5730
5757
|
const [Me, ge] = $e.split(",");
|
|
5731
5758
|
return Me + (ge ? `,${ge}` : "");
|
|
5732
|
-
}, P = (
|
|
5759
|
+
}, P = (U) => U.includes(";") ? U.split(";") : [U], W = (U) => {
|
|
5733
5760
|
const X = (ae) => {
|
|
5734
5761
|
if (ae)
|
|
5735
|
-
return
|
|
5762
|
+
return U?.cells[ae]?.obj.k;
|
|
5736
5763
|
}, ne = (ae) => {
|
|
5737
|
-
if (!(
|
|
5738
|
-
return
|
|
5764
|
+
if (!(y.length <= ae))
|
|
5765
|
+
return U?.cells[y[ae].name]?.obj?.k;
|
|
5739
5766
|
};
|
|
5740
5767
|
return {
|
|
5741
5768
|
descr: t || X(n) || ne(2) || "",
|
|
@@ -5743,15 +5770,15 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5743
5770
|
um: d || X(g) || ne(1) || "",
|
|
5744
5771
|
value: b || X(S) || ne(0) || ""
|
|
5745
5772
|
};
|
|
5746
|
-
},
|
|
5747
|
-
T?.(
|
|
5748
|
-
}, V = (
|
|
5749
|
-
(
|
|
5750
|
-
}, K = ((
|
|
5751
|
-
const X = Z.dash(
|
|
5773
|
+
}, Y = (U) => {
|
|
5774
|
+
T?.(U);
|
|
5775
|
+
}, V = (U, X) => {
|
|
5776
|
+
(U.key === "Enter" || U.key === " ") && (U.preventDefault(), U.stopPropagation(), Y(X));
|
|
5777
|
+
}, K = ((U) => {
|
|
5778
|
+
const X = Z.dash(U);
|
|
5752
5779
|
return {
|
|
5753
5780
|
className: X,
|
|
5754
|
-
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: ne }, `${
|
|
5781
|
+
descr: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: ne }, `${U}-${C}`),
|
|
5755
5782
|
icon: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.icon, children: /* @__PURE__ */ m.jsx(
|
|
5756
5783
|
le,
|
|
5757
5784
|
{
|
|
@@ -5760,17 +5787,17 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5760
5787
|
icon: ne,
|
|
5761
5788
|
width: B
|
|
5762
5789
|
}
|
|
5763
|
-
) }, `${
|
|
5764
|
-
um: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: ne }, `${
|
|
5765
|
-
value: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: ne }, `${
|
|
5790
|
+
) }, `${U}-${A}`),
|
|
5791
|
+
um: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: ne }, `${U}-${k}`),
|
|
5792
|
+
value: (ne) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: ne }, `${U}-${N}`)
|
|
5766
5793
|
};
|
|
5767
|
-
})(
|
|
5768
|
-
const { descr: X, icon: ne, um: ae, value: $e } =
|
|
5769
|
-
[_(C)]:
|
|
5770
|
-
[_(k)]:
|
|
5771
|
-
[_(N)]:
|
|
5772
|
-
}, ge = [], ke =
|
|
5773
|
-
switch (
|
|
5794
|
+
})(w), se = (U) => {
|
|
5795
|
+
const { descr: X, icon: ne, um: ae, value: $e } = W(U), Me = {
|
|
5796
|
+
[_(C)]: $(s),
|
|
5797
|
+
[_(k)]: $(p),
|
|
5798
|
+
[_(N)]: $(O)
|
|
5799
|
+
}, ge = [], ke = j($e);
|
|
5800
|
+
switch (w) {
|
|
5774
5801
|
case "2":
|
|
5775
5802
|
ne && ge.push(K.icon(ne)), ge.push(K.descr(X)), ge.push(
|
|
5776
5803
|
K.value(ae ? ke + " " + ae : ke)
|
|
@@ -5789,17 +5816,17 @@ const Cr = /* @__PURE__ */ new Map([
|
|
|
5789
5816
|
role: "button",
|
|
5790
5817
|
style: Me,
|
|
5791
5818
|
tabIndex: 0,
|
|
5792
|
-
onClick: () => U
|
|
5793
|
-
onKeyDown: (Mr) => V(Mr,
|
|
5819
|
+
onClick: () => Y(U),
|
|
5820
|
+
onKeyDown: (Mr) => V(Mr, U),
|
|
5794
5821
|
children: ge
|
|
5795
5822
|
},
|
|
5796
|
-
|
|
5823
|
+
U.rowId
|
|
5797
5824
|
);
|
|
5798
5825
|
}, M = {
|
|
5799
5826
|
[G]: String(r),
|
|
5800
5827
|
[q]: I
|
|
5801
5828
|
};
|
|
5802
|
-
return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children:
|
|
5829
|
+
return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children: E ? R.map((U) => se(U)) : v });
|
|
5803
5830
|
}, rt = {
|
|
5804
5831
|
"smp-table": "_smp-table_1qmju_1",
|
|
5805
5832
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -5840,7 +5867,7 @@ const Nr = ({
|
|
|
5840
5867
|
toggle: `${Se.toggle}`,
|
|
5841
5868
|
indent: `${Se.indent}`,
|
|
5842
5869
|
cell: `${Se.cell}`
|
|
5843
|
-
}, g = (
|
|
5870
|
+
}, g = (w) => /* @__PURE__ */ m.jsx(Ee, { ...w }), p = () => /* @__PURE__ */ m.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5844
5871
|
le,
|
|
5845
5872
|
{
|
|
5846
5873
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5854,7 +5881,7 @@ const Nr = ({
|
|
|
5854
5881
|
"aria-hidden": "true"
|
|
5855
5882
|
}
|
|
5856
5883
|
), S = () => {
|
|
5857
|
-
const
|
|
5884
|
+
const w = Fs(r) ? "" : r.decode || (l ? "" : "Untitled"), T = s ?? n * t;
|
|
5858
5885
|
return /* @__PURE__ */ m.jsxs(
|
|
5859
5886
|
"tr",
|
|
5860
5887
|
{
|
|
@@ -5878,35 +5905,35 @@ const Nr = ({
|
|
|
5878
5905
|
children: [
|
|
5879
5906
|
b(),
|
|
5880
5907
|
p(),
|
|
5881
|
-
/* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children:
|
|
5908
|
+
/* @__PURE__ */ m.jsx("span", { className: Se.rowLabel, children: w })
|
|
5882
5909
|
]
|
|
5883
5910
|
}
|
|
5884
5911
|
),
|
|
5885
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([
|
|
5912
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, y]) => /* @__PURE__ */ m.jsx(
|
|
5886
5913
|
"td",
|
|
5887
5914
|
{
|
|
5888
5915
|
className: d.cell,
|
|
5889
5916
|
style: {
|
|
5890
|
-
width: e[
|
|
5891
|
-
minWidth: e[
|
|
5917
|
+
width: e[v],
|
|
5918
|
+
minWidth: e[v],
|
|
5892
5919
|
height: `${n}px`
|
|
5893
5920
|
},
|
|
5894
5921
|
children: g({
|
|
5895
|
-
...
|
|
5896
|
-
id:
|
|
5922
|
+
...y,
|
|
5923
|
+
id: v
|
|
5897
5924
|
})
|
|
5898
5925
|
},
|
|
5899
|
-
Vs(
|
|
5926
|
+
Vs(y) || v
|
|
5900
5927
|
))
|
|
5901
5928
|
]
|
|
5902
5929
|
}
|
|
5903
5930
|
);
|
|
5904
|
-
}, O = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((
|
|
5931
|
+
}, O = () => a || !o ? null : /* @__PURE__ */ m.jsx(m.Fragment, { children: nt(r) && r.children?.map((w, T) => /* @__PURE__ */ m.jsx(Nr, { row: w, level: t + 1 }, `child-${T}`)) });
|
|
5905
5932
|
return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
5906
5933
|
S(),
|
|
5907
5934
|
O()
|
|
5908
5935
|
] });
|
|
5909
|
-
},
|
|
5936
|
+
}, Ws = ({
|
|
5910
5937
|
label: r,
|
|
5911
5938
|
rowHeight: e = 28,
|
|
5912
5939
|
offsetTop: t = 0,
|
|
@@ -5950,11 +5977,11 @@ const Nr = ({
|
|
|
5950
5977
|
}
|
|
5951
5978
|
);
|
|
5952
5979
|
};
|
|
5953
|
-
function
|
|
5980
|
+
function Ys(r, e) {
|
|
5954
5981
|
const t = new Set(r);
|
|
5955
5982
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5956
5983
|
}
|
|
5957
|
-
function
|
|
5984
|
+
function Us(r, e) {
|
|
5958
5985
|
return r.map((t) => {
|
|
5959
5986
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5960
5987
|
return {
|
|
@@ -5974,8 +6001,8 @@ function Bs(r, e, t, n) {
|
|
|
5974
6001
|
}
|
|
5975
6002
|
const p = e[d].column, b = o(u, p);
|
|
5976
6003
|
for (const [S, O] of b) {
|
|
5977
|
-
const
|
|
5978
|
-
s.push(c(S, T, d,
|
|
6004
|
+
const w = [...g, S], T = l(w, d), v = n.has(T);
|
|
6005
|
+
s.push(c(S, T, d, v)), a += t, v && i(O, d + 1, w);
|
|
5979
6006
|
}
|
|
5980
6007
|
}
|
|
5981
6008
|
function o(u, d) {
|
|
@@ -6103,44 +6130,44 @@ const Hs = ({
|
|
|
6103
6130
|
});
|
|
6104
6131
|
re(() => {
|
|
6105
6132
|
if (l?.length && r.rows) {
|
|
6106
|
-
const { flatRows:
|
|
6133
|
+
const { flatRows: E } = Bs(
|
|
6107
6134
|
r.rows,
|
|
6108
6135
|
l,
|
|
6109
6136
|
e,
|
|
6110
6137
|
f
|
|
6111
6138
|
);
|
|
6112
|
-
o({ ...r, rows:
|
|
6139
|
+
o({ ...r, rows: E });
|
|
6113
6140
|
} else
|
|
6114
6141
|
o(r);
|
|
6115
6142
|
}, [r, l, f, e]);
|
|
6116
|
-
const b = (
|
|
6117
|
-
c(
|
|
6118
|
-
}, S = (
|
|
6119
|
-
|
|
6120
|
-
const
|
|
6121
|
-
if (!
|
|
6143
|
+
const b = (E) => {
|
|
6144
|
+
c(Us(E, l));
|
|
6145
|
+
}, S = (E) => {
|
|
6146
|
+
E.preventDefault();
|
|
6147
|
+
const D = E.dataTransfer.getData("text/plain");
|
|
6148
|
+
if (!D || l.some((A) => A.column === D))
|
|
6122
6149
|
return;
|
|
6123
|
-
const C = [...l, { column:
|
|
6150
|
+
const C = [...l, { column: D, visible: !0 }];
|
|
6124
6151
|
c(C);
|
|
6125
|
-
}, O = (
|
|
6126
|
-
|
|
6127
|
-
}, { virtualItems:
|
|
6152
|
+
}, O = (E) => {
|
|
6153
|
+
E.preventDefault();
|
|
6154
|
+
}, { virtualItems: w, containerProps: T, innerProps: v } = kr({
|
|
6128
6155
|
items: i?.rows ?? [],
|
|
6129
6156
|
itemHeight: e,
|
|
6130
6157
|
containerHeight: t,
|
|
6131
6158
|
overscan: 5
|
|
6132
|
-
}),
|
|
6133
|
-
const L =
|
|
6159
|
+
}), y = (E, D) => {
|
|
6160
|
+
const L = E.clientX, C = g[D], A = (N) => {
|
|
6134
6161
|
const I = N.clientX - L, B = Math.max(50, C + I);
|
|
6135
6162
|
p((G) => ({
|
|
6136
6163
|
...G,
|
|
6137
|
-
[
|
|
6164
|
+
[D]: B
|
|
6138
6165
|
}));
|
|
6139
6166
|
}, k = () => {
|
|
6140
6167
|
window.removeEventListener("mousemove", A), window.removeEventListener("mouseup", k);
|
|
6141
6168
|
};
|
|
6142
6169
|
window.addEventListener("mousemove", A), window.addEventListener("mouseup", k);
|
|
6143
|
-
},
|
|
6170
|
+
}, R = {
|
|
6144
6171
|
smpTable: `${rt["smp-table"]}`,
|
|
6145
6172
|
headerCell: `${rt["smp-headerCell"]}`,
|
|
6146
6173
|
resizer: `${rt["smp-resizer"]}`
|
|
@@ -6148,7 +6175,7 @@ const Hs = ({
|
|
|
6148
6175
|
return i && /* @__PURE__ */ m.jsx(
|
|
6149
6176
|
"div",
|
|
6150
6177
|
{
|
|
6151
|
-
className:
|
|
6178
|
+
className: R.smpTable,
|
|
6152
6179
|
...T,
|
|
6153
6180
|
ref: d,
|
|
6154
6181
|
children: /* @__PURE__ */ m.jsxs("table", { children: [
|
|
@@ -6163,61 +6190,61 @@ const Hs = ({
|
|
|
6163
6190
|
}
|
|
6164
6191
|
),
|
|
6165
6192
|
/* @__PURE__ */ m.jsx("tr", { children: i.columns && i.columns?.map(
|
|
6166
|
-
(
|
|
6193
|
+
(E) => E.visible && /* @__PURE__ */ m.jsxs(
|
|
6167
6194
|
"th",
|
|
6168
6195
|
{
|
|
6169
|
-
className:
|
|
6196
|
+
className: R.headerCell,
|
|
6170
6197
|
draggable: !0,
|
|
6171
|
-
onDragStart: (
|
|
6172
|
-
|
|
6198
|
+
onDragStart: (D) => {
|
|
6199
|
+
D.dataTransfer.setData("text/plain", E.name);
|
|
6173
6200
|
},
|
|
6174
6201
|
style: {
|
|
6175
|
-
width: g[
|
|
6176
|
-
minWidth: g[
|
|
6177
|
-
maxWidth: g[
|
|
6202
|
+
width: g[E.name],
|
|
6203
|
+
minWidth: g[E.name],
|
|
6204
|
+
maxWidth: g[E.name]
|
|
6178
6205
|
},
|
|
6179
6206
|
children: [
|
|
6180
6207
|
/* @__PURE__ */ m.jsx(
|
|
6181
6208
|
Oe,
|
|
6182
6209
|
{
|
|
6183
6210
|
variant: "title",
|
|
6184
|
-
bindValue:
|
|
6211
|
+
bindValue: E.title
|
|
6185
6212
|
}
|
|
6186
6213
|
),
|
|
6187
6214
|
/* @__PURE__ */ m.jsx(
|
|
6188
6215
|
"div",
|
|
6189
6216
|
{
|
|
6190
|
-
className:
|
|
6191
|
-
onMouseDown: (
|
|
6217
|
+
className: R.resizer,
|
|
6218
|
+
onMouseDown: (D) => y(D, E.name),
|
|
6192
6219
|
role: "region"
|
|
6193
6220
|
}
|
|
6194
6221
|
)
|
|
6195
6222
|
]
|
|
6196
6223
|
},
|
|
6197
|
-
|
|
6224
|
+
E.name
|
|
6198
6225
|
)
|
|
6199
6226
|
) })
|
|
6200
6227
|
] }),
|
|
6201
|
-
/* @__PURE__ */ m.jsx("tbody", { ...
|
|
6202
|
-
const C =
|
|
6203
|
-
return
|
|
6204
|
-
|
|
6228
|
+
/* @__PURE__ */ m.jsx("tbody", { ...v, children: w.map(({ item: E, index: D, offsetTop: L }) => {
|
|
6229
|
+
const C = E.rowId || E.value || `${E.isGroup ? "group" : "row"}-${D}`;
|
|
6230
|
+
return E.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6231
|
+
Ws,
|
|
6205
6232
|
{
|
|
6206
|
-
label:
|
|
6233
|
+
label: E.value || "",
|
|
6207
6234
|
rowHeight: e,
|
|
6208
6235
|
offsetTop: L,
|
|
6209
|
-
level:
|
|
6236
|
+
level: E.level,
|
|
6210
6237
|
onClick: () => {
|
|
6211
|
-
const A =
|
|
6212
|
-
A && u((k) =>
|
|
6238
|
+
const A = E.rowId;
|
|
6239
|
+
A && u((k) => Ys(k, A));
|
|
6213
6240
|
},
|
|
6214
|
-
isExpanded:
|
|
6241
|
+
isExpanded: E.isExpanded
|
|
6215
6242
|
},
|
|
6216
6243
|
`group-${C}`
|
|
6217
6244
|
) : /* @__PURE__ */ m.jsx(
|
|
6218
6245
|
Nr,
|
|
6219
6246
|
{
|
|
6220
|
-
row:
|
|
6247
|
+
row: E,
|
|
6221
6248
|
columnWidths: g,
|
|
6222
6249
|
rowHeight: e,
|
|
6223
6250
|
offsetTop: L,
|
|
@@ -6319,41 +6346,41 @@ const Hs = ({
|
|
|
6319
6346
|
}) => {
|
|
6320
6347
|
const [d, g] = H({}), { translate: p } = je(), b = Te();
|
|
6321
6348
|
re(() => {
|
|
6322
|
-
g(
|
|
6349
|
+
g(v(r));
|
|
6323
6350
|
}, [r]);
|
|
6324
|
-
const S = (
|
|
6351
|
+
const S = (E, D) => {
|
|
6325
6352
|
if (g((L) => ({
|
|
6326
6353
|
...L,
|
|
6327
|
-
[
|
|
6328
|
-
...L[
|
|
6354
|
+
[E]: {
|
|
6355
|
+
...L[E],
|
|
6329
6356
|
obj: {
|
|
6330
|
-
...L[
|
|
6331
|
-
k:
|
|
6357
|
+
...L[E].obj,
|
|
6358
|
+
k: D.obj.k
|
|
6332
6359
|
},
|
|
6333
|
-
decode:
|
|
6360
|
+
decode: D.decode,
|
|
6334
6361
|
data: {
|
|
6335
|
-
...L[
|
|
6362
|
+
...L[E].data,
|
|
6336
6363
|
error: void 0
|
|
6337
6364
|
},
|
|
6338
6365
|
// FIXME: remove this when webup.js will not use value
|
|
6339
|
-
value:
|
|
6366
|
+
value: D.obj.k
|
|
6340
6367
|
}
|
|
6341
|
-
})), s && (
|
|
6368
|
+
})), s && (D.shape == te.CHECKBOX || D.shape == te.SWITCH)) {
|
|
6342
6369
|
const L = structuredClone(d);
|
|
6343
|
-
L[
|
|
6344
|
-
value:
|
|
6345
|
-
cell:
|
|
6370
|
+
L[E].obj.k = D.obj.k, L[E].value = D.obj.k, o({
|
|
6371
|
+
value: y(L),
|
|
6372
|
+
cell: E
|
|
6346
6373
|
});
|
|
6347
6374
|
}
|
|
6348
|
-
}, O = (
|
|
6349
|
-
const
|
|
6375
|
+
}, O = (E) => {
|
|
6376
|
+
const D = y(d);
|
|
6350
6377
|
o({
|
|
6351
|
-
value:
|
|
6352
|
-
cell:
|
|
6378
|
+
value: D,
|
|
6379
|
+
cell: E
|
|
6353
6380
|
});
|
|
6354
|
-
},
|
|
6381
|
+
}, w = (E, D) => {
|
|
6355
6382
|
u?.({
|
|
6356
|
-
cellId:
|
|
6383
|
+
cellId: E,
|
|
6357
6384
|
currentState: {
|
|
6358
6385
|
type: "SmeupDataTable",
|
|
6359
6386
|
columns: r.columns,
|
|
@@ -6363,41 +6390,41 @@ const Hs = ({
|
|
|
6363
6390
|
}
|
|
6364
6391
|
]
|
|
6365
6392
|
},
|
|
6366
|
-
fun:
|
|
6393
|
+
fun: D || ""
|
|
6367
6394
|
});
|
|
6368
|
-
}, T = async (
|
|
6369
|
-
if (d[
|
|
6370
|
-
obj: d[
|
|
6371
|
-
fun: d[
|
|
6372
|
-
cellId:
|
|
6395
|
+
}, T = async (E) => {
|
|
6396
|
+
if (d[E].obj.k != r.rows[0].cells[E].obj.k && (d[E].inputSettings?.checkObject && c && ((await c({
|
|
6397
|
+
obj: d[E].obj,
|
|
6398
|
+
fun: d[E].fun,
|
|
6399
|
+
cellId: E
|
|
6373
6400
|
})).valid || g((L) => ({
|
|
6374
6401
|
...L,
|
|
6375
|
-
[
|
|
6376
|
-
...L[
|
|
6402
|
+
[E]: {
|
|
6403
|
+
...L[E],
|
|
6377
6404
|
data: {
|
|
6378
|
-
...L[
|
|
6405
|
+
...L[E].data,
|
|
6379
6406
|
error: p(we.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6380
6407
|
}
|
|
6381
6408
|
}
|
|
6382
|
-
}))), d[
|
|
6383
|
-
const
|
|
6409
|
+
}))), d[E].inputSettings?.checkValueOnExit)) {
|
|
6410
|
+
const D = y(d);
|
|
6384
6411
|
l?.({
|
|
6385
|
-
value:
|
|
6386
|
-
cell:
|
|
6412
|
+
value: D,
|
|
6413
|
+
cell: E
|
|
6387
6414
|
});
|
|
6388
6415
|
}
|
|
6389
|
-
},
|
|
6390
|
-
if (!
|
|
6416
|
+
}, v = (E) => {
|
|
6417
|
+
if (!E.rows?.length || !E.columns?.length)
|
|
6391
6418
|
return {};
|
|
6392
|
-
const
|
|
6393
|
-
return
|
|
6419
|
+
const D = E.rows?.[0];
|
|
6420
|
+
return E.columns.filter((L) => L.visible ?? !0).reduce((L, C) => {
|
|
6394
6421
|
const A = {
|
|
6395
|
-
...
|
|
6422
|
+
...D.cells[C.name],
|
|
6396
6423
|
id: C.name,
|
|
6397
6424
|
label: C.title,
|
|
6398
6425
|
dSep: a,
|
|
6399
6426
|
data: {
|
|
6400
|
-
...
|
|
6427
|
+
...D.cells[C.name].data,
|
|
6401
6428
|
dSep: a
|
|
6402
6429
|
}
|
|
6403
6430
|
};
|
|
@@ -6406,32 +6433,32 @@ const Hs = ({
|
|
|
6406
6433
|
[C.name]: A
|
|
6407
6434
|
};
|
|
6408
6435
|
}, {});
|
|
6409
|
-
},
|
|
6436
|
+
}, y = (E) => ({
|
|
6410
6437
|
before: r,
|
|
6411
6438
|
after: {
|
|
6412
6439
|
type: "SmeupDataTable",
|
|
6413
6440
|
columns: JSON.parse(JSON.stringify(r.columns)),
|
|
6414
6441
|
rows: [
|
|
6415
6442
|
{
|
|
6416
|
-
cells: JSON.parse(JSON.stringify(
|
|
6443
|
+
cells: JSON.parse(JSON.stringify(E))
|
|
6417
6444
|
}
|
|
6418
6445
|
]
|
|
6419
6446
|
}
|
|
6420
|
-
}),
|
|
6447
|
+
}), R = r.setup?.commands?.map((E, D) => /* @__PURE__ */ Wr(
|
|
6421
6448
|
Ee,
|
|
6422
6449
|
{
|
|
6423
|
-
...
|
|
6424
|
-
decode:
|
|
6450
|
+
...E,
|
|
6451
|
+
decode: E.value,
|
|
6425
6452
|
data: {
|
|
6426
|
-
label:
|
|
6453
|
+
label: E.value
|
|
6427
6454
|
},
|
|
6428
|
-
id: `command-${
|
|
6429
|
-
key: `command-${
|
|
6455
|
+
id: `command-${D}`,
|
|
6456
|
+
key: `command-${D}`,
|
|
6430
6457
|
shape: te.BUTTON,
|
|
6431
|
-
onClick: () => O(
|
|
6458
|
+
onClick: () => O(E.obj.k)
|
|
6432
6459
|
}
|
|
6433
6460
|
)) || [];
|
|
6434
|
-
return n ||
|
|
6461
|
+
return n || R.unshift(
|
|
6435
6462
|
/* @__PURE__ */ m.jsx(
|
|
6436
6463
|
Ee,
|
|
6437
6464
|
{
|
|
@@ -6455,8 +6482,8 @@ const Hs = ({
|
|
|
6455
6482
|
{
|
|
6456
6483
|
"data-component": "input-panel",
|
|
6457
6484
|
id: e || b,
|
|
6458
|
-
onSubmit: (
|
|
6459
|
-
|
|
6485
|
+
onSubmit: (E) => {
|
|
6486
|
+
E.preventDefault(), O();
|
|
6460
6487
|
},
|
|
6461
6488
|
children: [
|
|
6462
6489
|
/* @__PURE__ */ m.jsx(
|
|
@@ -6465,28 +6492,28 @@ const Hs = ({
|
|
|
6465
6492
|
style: {
|
|
6466
6493
|
padding: "1em 0"
|
|
6467
6494
|
},
|
|
6468
|
-
children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((
|
|
6495
|
+
children: /* @__PURE__ */ m.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((E) => /* @__PURE__ */ m.jsx(
|
|
6469
6496
|
Ee,
|
|
6470
6497
|
{
|
|
6471
|
-
...
|
|
6472
|
-
onOptionsRequest:
|
|
6473
|
-
await i(
|
|
6498
|
+
...E,
|
|
6499
|
+
onOptionsRequest: E.fun ? async (D, L) => Js(
|
|
6500
|
+
await i(D, L, r, E.id)
|
|
6474
6501
|
) : void 0,
|
|
6475
|
-
onChange: (
|
|
6476
|
-
onBlur: () => T(
|
|
6502
|
+
onChange: (D) => S(E.id, D),
|
|
6503
|
+
onBlur: () => T(E.id),
|
|
6477
6504
|
onContextMenu: f,
|
|
6478
6505
|
onClick: () => {
|
|
6479
|
-
|
|
6506
|
+
E.shape == "BTN" && w(E.id, E.fun);
|
|
6480
6507
|
},
|
|
6481
6508
|
data: {
|
|
6482
|
-
...
|
|
6509
|
+
...E.data,
|
|
6483
6510
|
autocomplete: "off"
|
|
6484
6511
|
}
|
|
6485
6512
|
}
|
|
6486
6513
|
)) })
|
|
6487
6514
|
}
|
|
6488
6515
|
),
|
|
6489
|
-
|
|
6516
|
+
R.length > 0 && /* @__PURE__ */ m.jsx(
|
|
6490
6517
|
ot,
|
|
6491
6518
|
{
|
|
6492
6519
|
layout: {
|
|
@@ -6495,13 +6522,13 @@ const Hs = ({
|
|
|
6495
6522
|
id: "1",
|
|
6496
6523
|
horizontal: !0,
|
|
6497
6524
|
justify: "start",
|
|
6498
|
-
content:
|
|
6499
|
-
id:
|
|
6525
|
+
content: R.map((E) => ({
|
|
6526
|
+
id: E.props.id
|
|
6500
6527
|
}))
|
|
6501
6528
|
}
|
|
6502
6529
|
]
|
|
6503
6530
|
},
|
|
6504
|
-
children:
|
|
6531
|
+
children: R
|
|
6505
6532
|
}
|
|
6506
6533
|
)
|
|
6507
6534
|
]
|