@sme.up/ketchup2 2.0.0-SNAPSHOT-20250630152733 → 2.0.0-SNAPSHOT-20250701084510
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +1188 -1183
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -52,7 +52,7 @@ function Kr() {
|
|
|
52
52
|
function r(h) {
|
|
53
53
|
if (h == null) return null;
|
|
54
54
|
if (typeof h == "function")
|
|
55
|
-
return h.$$typeof ===
|
|
55
|
+
return h.$$typeof === R ? null : h.displayName || h.name || null;
|
|
56
56
|
if (typeof h == "string") return h;
|
|
57
57
|
switch (h) {
|
|
58
58
|
case y:
|
|
@@ -61,18 +61,18 @@ function Kr() {
|
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case S:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case v:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case D:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case b:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof h == "object")
|
|
72
72
|
switch (typeof h.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
74
|
), h.$$typeof) {
|
|
75
|
-
case
|
|
75
|
+
case d:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case w:
|
|
78
78
|
return (h.displayName || "Context") + ".Provider";
|
|
@@ -81,7 +81,7 @@ function Kr() {
|
|
|
81
81
|
case O:
|
|
82
82
|
var x = h.render;
|
|
83
83
|
return h = h.displayName, h || (h = x.displayName || x.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
|
-
case
|
|
84
|
+
case k:
|
|
85
85
|
return x = h.displayName || null, x !== null ? x : r(h.type) || "Memo";
|
|
86
86
|
case C:
|
|
87
87
|
x = h._payload, h = h._init;
|
|
@@ -104,11 +104,11 @@ function Kr() {
|
|
|
104
104
|
}
|
|
105
105
|
if (x) {
|
|
106
106
|
x = console;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var _ = x.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return _.call(
|
|
109
109
|
x,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
111
|
+
$
|
|
112
112
|
), e(h);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -124,45 +124,45 @@ function Kr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = N.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function i(h) {
|
|
134
|
-
if (
|
|
134
|
+
if (L.call(h, "key")) {
|
|
135
135
|
var x = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
136
136
|
if (x && x.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
138
|
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
140
|
function o(h, x) {
|
|
141
|
-
function
|
|
142
|
-
|
|
141
|
+
function _() {
|
|
142
|
+
I || (I = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
x
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: _,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function l() {
|
|
153
153
|
var h = r(this.type);
|
|
154
|
-
return
|
|
154
|
+
return F[h] || (F[h] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h, x,
|
|
159
|
-
return
|
|
158
|
+
function c(h, x, _, $, j, P, U, B) {
|
|
159
|
+
return _ = P.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: x,
|
|
163
163
|
props: P,
|
|
164
164
|
_owner: j
|
|
165
|
-
}, (
|
|
165
|
+
}, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: l
|
|
168
168
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -179,7 +179,7 @@ function Kr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: U
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
@@ -187,44 +187,44 @@ function Kr() {
|
|
|
187
187
|
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h, x,
|
|
190
|
+
function f(h, x, _, $, j, P, U, B) {
|
|
191
191
|
var W = x.children;
|
|
192
192
|
if (W !== void 0)
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
u(W[
|
|
193
|
+
if ($)
|
|
194
|
+
if (A(W)) {
|
|
195
|
+
for ($ = 0; $ < W.length; $++)
|
|
196
|
+
u(W[$]);
|
|
197
197
|
Object.freeze && Object.freeze(W);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
202
|
else u(W);
|
|
203
|
-
if (
|
|
203
|
+
if (L.call(x, "key")) {
|
|
204
204
|
W = r(h);
|
|
205
205
|
var X = Object.keys(x).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
$ = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[W + $] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
212
212
|
React keys must be passed directly to JSX without using spread:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
215
|
+
$,
|
|
216
216
|
W,
|
|
217
217
|
X,
|
|
218
218
|
W
|
|
219
|
-
),
|
|
219
|
+
), Y[W + $] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (W = null,
|
|
222
|
-
|
|
221
|
+
if (W = null, _ !== void 0 && (t(_), W = "" + _), i(x) && (t(x.key), W = "" + x.key), "key" in x) {
|
|
222
|
+
_ = {};
|
|
223
223
|
for (var K in x)
|
|
224
|
-
K !== "key" && (
|
|
225
|
-
} else
|
|
224
|
+
K !== "key" && (_[K] = x[K]);
|
|
225
|
+
} else _ = x;
|
|
226
226
|
return W && o(
|
|
227
|
-
|
|
227
|
+
_,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
@@ -232,49 +232,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
P,
|
|
233
233
|
j,
|
|
234
234
|
s(),
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
_,
|
|
236
|
+
U,
|
|
237
237
|
B
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function u(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var p = at, m = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), w = Symbol.for("react.context"), O = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), N = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, A = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
p = {
|
|
247
247
|
"react-stack-bottom-frame": function(h) {
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var I, F = {}, z = p["react-stack-bottom-frame"].bind(
|
|
252
|
+
p,
|
|
253
253
|
a
|
|
254
|
-
)(), J =
|
|
255
|
-
Ye.Fragment = y, Ye.jsx = function(h, x,
|
|
256
|
-
var P = 1e4 >
|
|
254
|
+
)(), J = V(n(a)), Y = {};
|
|
255
|
+
Ye.Fragment = y, Ye.jsx = function(h, x, _, $, j) {
|
|
256
|
+
var P = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
259
|
x,
|
|
260
|
-
|
|
260
|
+
_,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
262
|
+
$,
|
|
263
263
|
j,
|
|
264
264
|
P ? Error("react-stack-top-frame") : z,
|
|
265
|
-
P ?
|
|
265
|
+
P ? V(n(h)) : J
|
|
266
266
|
);
|
|
267
|
-
}, Ye.jsxs = function(h, x,
|
|
268
|
-
var P = 1e4 >
|
|
267
|
+
}, Ye.jsxs = function(h, x, _, $, j) {
|
|
268
|
+
var P = 1e4 > N.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
271
|
x,
|
|
272
|
-
|
|
272
|
+
_,
|
|
273
273
|
!0,
|
|
274
|
-
|
|
274
|
+
$,
|
|
275
275
|
j,
|
|
276
276
|
P ? Error("react-stack-top-frame") : z,
|
|
277
|
-
P ?
|
|
277
|
+
P ? V(n(h)) : J
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ye;
|
|
@@ -386,53 +386,53 @@ function Zr() {
|
|
|
386
386
|
function i(u) {
|
|
387
387
|
if (!u || typeof u != "object")
|
|
388
388
|
throw new TypeError("argument obj is required");
|
|
389
|
-
var
|
|
389
|
+
var p = u.parameters, m = u.type;
|
|
390
390
|
if (!m || !a.test(m))
|
|
391
391
|
throw new TypeError("invalid type");
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
394
|
-
for (var y, S = Object.keys(
|
|
392
|
+
var d = m;
|
|
393
|
+
if (p && typeof p == "object")
|
|
394
|
+
for (var y, S = Object.keys(p).sort(), E = 0; E < S.length; E++) {
|
|
395
395
|
if (y = S[E], !t.test(y))
|
|
396
396
|
throw new TypeError("invalid parameter name");
|
|
397
|
-
|
|
397
|
+
d += "; " + y + "=" + c(p[y]);
|
|
398
398
|
}
|
|
399
|
-
return
|
|
399
|
+
return d;
|
|
400
400
|
}
|
|
401
401
|
function o(u) {
|
|
402
402
|
if (!u)
|
|
403
403
|
throw new TypeError("argument string is required");
|
|
404
|
-
var
|
|
405
|
-
if (typeof
|
|
404
|
+
var p = typeof u == "object" ? l(u) : u;
|
|
405
|
+
if (typeof p != "string")
|
|
406
406
|
throw new TypeError("argument string is required to be a string");
|
|
407
|
-
var m =
|
|
408
|
-
if (!a.test(
|
|
407
|
+
var m = p.indexOf(";"), d = m !== -1 ? p.slice(0, m).trim() : p.trim();
|
|
408
|
+
if (!a.test(d))
|
|
409
409
|
throw new TypeError("invalid media type");
|
|
410
|
-
var y = new f(
|
|
410
|
+
var y = new f(d.toLowerCase());
|
|
411
411
|
if (m !== -1) {
|
|
412
412
|
var S, E, T;
|
|
413
|
-
for (r.lastIndex = m; E = r.exec(
|
|
413
|
+
for (r.lastIndex = m; E = r.exec(p); ) {
|
|
414
414
|
if (E.index !== m)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
416
416
|
m += E[0].length, S = E[1].toLowerCase(), T = E[2], T.charCodeAt(0) === 34 && (T = T.slice(1, -1), T.indexOf("\\") !== -1 && (T = T.replace(n, "$1"))), y.parameters[S] = T;
|
|
417
417
|
}
|
|
418
|
-
if (m !==
|
|
418
|
+
if (m !== p.length)
|
|
419
419
|
throw new TypeError("invalid parameter format");
|
|
420
420
|
}
|
|
421
421
|
return y;
|
|
422
422
|
}
|
|
423
423
|
function l(u) {
|
|
424
|
-
var
|
|
425
|
-
if (typeof u.getHeader == "function" ?
|
|
424
|
+
var p;
|
|
425
|
+
if (typeof u.getHeader == "function" ? p = u.getHeader("content-type") : typeof u.headers == "object" && (p = u.headers && u.headers["content-type"]), typeof p != "string")
|
|
426
426
|
throw new TypeError("content-type header is missing from object");
|
|
427
|
-
return
|
|
427
|
+
return p;
|
|
428
428
|
}
|
|
429
429
|
function c(u) {
|
|
430
|
-
var
|
|
431
|
-
if (t.test(
|
|
432
|
-
return
|
|
433
|
-
if (
|
|
430
|
+
var p = String(u);
|
|
431
|
+
if (t.test(p))
|
|
432
|
+
return p;
|
|
433
|
+
if (p.length > 0 && !e.test(p))
|
|
434
434
|
throw new TypeError("invalid parameter value");
|
|
435
|
-
return '"' +
|
|
435
|
+
return '"' + p.replace(s, "\\$1") + '"';
|
|
436
436
|
}
|
|
437
437
|
function f(u) {
|
|
438
438
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = u;
|
|
@@ -522,12 +522,12 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
522
522
|
ve.splice(ve.indexOf(e), 1), e = null, o(f);
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
|
|
525
|
+
var p = e.getAttribute("id");
|
|
526
|
+
p && u.setAttribute("id", p);
|
|
527
527
|
var m = e.getAttribute("title");
|
|
528
528
|
m && u.setAttribute("title", m);
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
var d = e.getAttribute("width");
|
|
530
|
+
d && u.setAttribute("width", d);
|
|
531
531
|
var y = e.getAttribute("height");
|
|
532
532
|
y && u.setAttribute("height", y);
|
|
533
533
|
var S = Array.from(new Set(bt(bt(bt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
@@ -551,36 +551,36 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
551
551
|
path: [],
|
|
552
552
|
pattern: ["fill", "stroke"],
|
|
553
553
|
radialGradient: ["fill", "stroke"]
|
|
554
|
-
}, O,
|
|
554
|
+
}, O, v, D, k, C;
|
|
555
555
|
Object.keys(w).forEach(function(J) {
|
|
556
|
-
O = J,
|
|
557
|
-
for (var
|
|
558
|
-
|
|
556
|
+
O = J, D = w[J], v = u.querySelectorAll(O + "[id]");
|
|
557
|
+
for (var Y = function($, j) {
|
|
558
|
+
k = v[$].id, C = k + "-" + sn();
|
|
559
559
|
var P;
|
|
560
|
-
Array.prototype.forEach.call(
|
|
561
|
-
P = u.querySelectorAll("[" + H + '*="' +
|
|
560
|
+
Array.prototype.forEach.call(D, function(H) {
|
|
561
|
+
P = u.querySelectorAll("[" + H + '*="' + k + '"]');
|
|
562
562
|
for (var Z = 0, ne = P.length; Z < ne; Z++) {
|
|
563
563
|
var se = P[Z].getAttribute(H);
|
|
564
|
-
se && !se.match(new RegExp('url\\("?#' +
|
|
564
|
+
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || P[Z].setAttribute(H, "url(#" + C + ")");
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
for (var
|
|
568
|
-
var K =
|
|
569
|
-
K && K.toString() === "#" +
|
|
567
|
+
for (var U = u.querySelectorAll("[*|href]"), B = [], W = 0, X = U.length; W < X; W++) {
|
|
568
|
+
var K = U[W].getAttributeNS(vt, "href");
|
|
569
|
+
K && K.toString() === "#" + v[$].id && B.push(U[W]);
|
|
570
570
|
}
|
|
571
|
-
for (var ae = 0,
|
|
571
|
+
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
572
572
|
B[ae].setAttributeNS(vt, "href", "#" + C);
|
|
573
|
-
|
|
574
|
-
}, h = 0, x =
|
|
575
|
-
|
|
573
|
+
v[$].id = C;
|
|
574
|
+
}, h = 0, x = v.length; h < x; h++)
|
|
575
|
+
Y(h);
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
u.removeAttribute("xmlns:a");
|
|
579
|
-
for (var
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
for (var
|
|
583
|
-
new Function(
|
|
579
|
+
for (var b = u.querySelectorAll("script"), R = [], N, L, A = 0, V = b.length; A < V; A++)
|
|
580
|
+
L = b[A].getAttribute("type"), (!L || L === "application/ecmascript" || L === "application/javascript" || L === "text/javascript") && (N = b[A].innerText || b[A].textContent, N && R.push(N), u.removeChild(b[A]));
|
|
581
|
+
if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
582
|
+
for (var I = 0, F = R.length; I < F; I++)
|
|
583
|
+
new Function(R[I])(window);
|
|
584
584
|
Gt[l] = !0;
|
|
585
585
|
}
|
|
586
586
|
var z = u.querySelectorAll("style");
|
|
@@ -596,14 +596,14 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Dr = function(e) {
|
|
|
596
596
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
597
597
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
598
598
|
} : i, l = n.beforeEach, c = l === void 0 ? function() {
|
|
599
|
-
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f,
|
|
599
|
+
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, p = n.evalScripts, m = p === void 0 ? "never" : p, d = n.httpRequestWithCredentials, y = d === void 0 ? !1 : d, S = n.renumerateIRIElements, E = S === void 0 ? !0 : S;
|
|
600
600
|
if (e && "length" in e)
|
|
601
601
|
for (var T = 0, w = 0, O = e.length; w < O; w++)
|
|
602
|
-
Kt(e[w], m, E, u, y, c, function(
|
|
603
|
-
o(
|
|
602
|
+
Kt(e[w], m, E, u, y, c, function(v, D) {
|
|
603
|
+
o(v, D), e && "length" in e && e.length === ++T && a(T);
|
|
604
604
|
});
|
|
605
|
-
else e ? Kt(e, m, E, u, y, c, function(
|
|
606
|
-
o(
|
|
605
|
+
else e ? Kt(e, m, E, u, y, c, function(v, D) {
|
|
606
|
+
o(v, D), a(1), e = null;
|
|
607
607
|
}) : a(0);
|
|
608
608
|
}, Je = { exports: {} }, Xe = { exports: {} }, Q = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
@@ -618,66 +618,66 @@ var qt;
|
|
|
618
618
|
function ln() {
|
|
619
619
|
if (qt) return Q;
|
|
620
620
|
qt = 1;
|
|
621
|
-
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,
|
|
622
|
-
function w(
|
|
623
|
-
if (typeof
|
|
624
|
-
var
|
|
625
|
-
switch (
|
|
621
|
+
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, p = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, d = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, T = r ? Symbol.for("react.scope") : 60119;
|
|
622
|
+
function w(v) {
|
|
623
|
+
if (typeof v == "object" && v !== null) {
|
|
624
|
+
var D = v.$$typeof;
|
|
625
|
+
switch (D) {
|
|
626
626
|
case e:
|
|
627
|
-
switch (
|
|
627
|
+
switch (v = v.type, v) {
|
|
628
628
|
case l:
|
|
629
629
|
case c:
|
|
630
630
|
case n:
|
|
631
631
|
case a:
|
|
632
632
|
case s:
|
|
633
633
|
case u:
|
|
634
|
-
return
|
|
634
|
+
return v;
|
|
635
635
|
default:
|
|
636
|
-
switch (
|
|
636
|
+
switch (v = v && v.$$typeof, v) {
|
|
637
637
|
case o:
|
|
638
638
|
case f:
|
|
639
|
-
case
|
|
639
|
+
case d:
|
|
640
640
|
case m:
|
|
641
641
|
case i:
|
|
642
|
-
return
|
|
642
|
+
return v;
|
|
643
643
|
default:
|
|
644
|
-
return
|
|
644
|
+
return D;
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
case t:
|
|
648
|
-
return
|
|
648
|
+
return D;
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function O(
|
|
653
|
-
return w(
|
|
654
|
-
}
|
|
655
|
-
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy =
|
|
656
|
-
return O(
|
|
657
|
-
}, Q.isConcurrentMode = O, Q.isContextConsumer = function(
|
|
658
|
-
return w(
|
|
659
|
-
}, Q.isContextProvider = function(
|
|
660
|
-
return w(
|
|
661
|
-
}, Q.isElement = function(
|
|
662
|
-
return typeof
|
|
663
|
-
}, Q.isForwardRef = function(
|
|
664
|
-
return w(
|
|
665
|
-
}, Q.isFragment = function(
|
|
666
|
-
return w(
|
|
667
|
-
}, Q.isLazy = function(
|
|
668
|
-
return w(
|
|
669
|
-
}, Q.isMemo = function(
|
|
670
|
-
return w(
|
|
671
|
-
}, Q.isPortal = function(
|
|
672
|
-
return w(
|
|
673
|
-
}, Q.isProfiler = function(
|
|
674
|
-
return w(
|
|
675
|
-
}, Q.isStrictMode = function(
|
|
676
|
-
return w(
|
|
677
|
-
}, Q.isSuspense = function(
|
|
678
|
-
return w(
|
|
679
|
-
}, Q.isValidElementType = function(
|
|
680
|
-
return typeof
|
|
652
|
+
function O(v) {
|
|
653
|
+
return w(v) === c;
|
|
654
|
+
}
|
|
655
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = d, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(v) {
|
|
656
|
+
return O(v) || w(v) === l;
|
|
657
|
+
}, Q.isConcurrentMode = O, Q.isContextConsumer = function(v) {
|
|
658
|
+
return w(v) === o;
|
|
659
|
+
}, Q.isContextProvider = function(v) {
|
|
660
|
+
return w(v) === i;
|
|
661
|
+
}, Q.isElement = function(v) {
|
|
662
|
+
return typeof v == "object" && v !== null && v.$$typeof === e;
|
|
663
|
+
}, Q.isForwardRef = function(v) {
|
|
664
|
+
return w(v) === f;
|
|
665
|
+
}, Q.isFragment = function(v) {
|
|
666
|
+
return w(v) === n;
|
|
667
|
+
}, Q.isLazy = function(v) {
|
|
668
|
+
return w(v) === d;
|
|
669
|
+
}, Q.isMemo = function(v) {
|
|
670
|
+
return w(v) === m;
|
|
671
|
+
}, Q.isPortal = function(v) {
|
|
672
|
+
return w(v) === t;
|
|
673
|
+
}, Q.isProfiler = function(v) {
|
|
674
|
+
return w(v) === a;
|
|
675
|
+
}, Q.isStrictMode = function(v) {
|
|
676
|
+
return w(v) === s;
|
|
677
|
+
}, Q.isSuspense = function(v) {
|
|
678
|
+
return w(v) === u;
|
|
679
|
+
}, Q.isValidElementType = function(v) {
|
|
680
|
+
return typeof v == "string" || typeof v == "function" || v === n || v === c || v === a || v === s || v === u || v === p || typeof v == "object" && v !== null && (v.$$typeof === d || v.$$typeof === m || v.$$typeof === i || v.$$typeof === o || v.$$typeof === f || v.$$typeof === S || v.$$typeof === E || v.$$typeof === T || v.$$typeof === y);
|
|
681
681
|
}, Q.typeOf = w, Q;
|
|
682
682
|
}
|
|
683
683
|
var ee = {};
|
|
@@ -692,17 +692,17 @@ var ee = {};
|
|
|
692
692
|
var zt;
|
|
693
693
|
function cn() {
|
|
694
694
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
695
|
-
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,
|
|
696
|
-
function w(
|
|
697
|
-
return typeof
|
|
698
|
-
|
|
699
|
-
}
|
|
700
|
-
function O(
|
|
701
|
-
if (typeof
|
|
702
|
-
var H =
|
|
695
|
+
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, p = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, d = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, S = r ? Symbol.for("react.fundamental") : 60117, E = r ? Symbol.for("react.responder") : 60118, T = r ? Symbol.for("react.scope") : 60119;
|
|
696
|
+
function w(M) {
|
|
697
|
+
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
698
|
+
M === n || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === E || M.$$typeof === T || M.$$typeof === y);
|
|
699
|
+
}
|
|
700
|
+
function O(M) {
|
|
701
|
+
if (typeof M == "object" && M !== null) {
|
|
702
|
+
var H = M.$$typeof;
|
|
703
703
|
switch (H) {
|
|
704
704
|
case e:
|
|
705
|
-
var Z =
|
|
705
|
+
var Z = M.type;
|
|
706
706
|
switch (Z) {
|
|
707
707
|
case l:
|
|
708
708
|
case c:
|
|
@@ -716,7 +716,7 @@ function cn() {
|
|
|
716
716
|
switch (ne) {
|
|
717
717
|
case o:
|
|
718
718
|
case f:
|
|
719
|
-
case
|
|
719
|
+
case d:
|
|
720
720
|
case m:
|
|
721
721
|
case i:
|
|
722
722
|
return ne;
|
|
@@ -729,47 +729,47 @@ function cn() {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
var
|
|
733
|
-
function
|
|
734
|
-
return J || (J = !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(
|
|
732
|
+
var v = l, D = c, k = o, C = i, b = e, R = f, N = n, L = d, A = m, V = t, I = a, F = s, z = u, J = !1;
|
|
733
|
+
function Y(M) {
|
|
734
|
+
return J || (J = !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) || O(M) === l;
|
|
735
735
|
}
|
|
736
|
-
function h(
|
|
737
|
-
return O(
|
|
736
|
+
function h(M) {
|
|
737
|
+
return O(M) === c;
|
|
738
738
|
}
|
|
739
|
-
function x(
|
|
740
|
-
return O(
|
|
739
|
+
function x(M) {
|
|
740
|
+
return O(M) === o;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
return O(
|
|
742
|
+
function _(M) {
|
|
743
|
+
return O(M) === i;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
return typeof
|
|
745
|
+
function $(M) {
|
|
746
|
+
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
747
747
|
}
|
|
748
|
-
function j(
|
|
749
|
-
return O(
|
|
748
|
+
function j(M) {
|
|
749
|
+
return O(M) === f;
|
|
750
750
|
}
|
|
751
|
-
function P(
|
|
752
|
-
return O(
|
|
751
|
+
function P(M) {
|
|
752
|
+
return O(M) === n;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return O(
|
|
754
|
+
function U(M) {
|
|
755
|
+
return O(M) === d;
|
|
756
756
|
}
|
|
757
|
-
function B(
|
|
758
|
-
return O(
|
|
757
|
+
function B(M) {
|
|
758
|
+
return O(M) === m;
|
|
759
759
|
}
|
|
760
|
-
function W(
|
|
761
|
-
return O(
|
|
760
|
+
function W(M) {
|
|
761
|
+
return O(M) === t;
|
|
762
762
|
}
|
|
763
|
-
function X(
|
|
764
|
-
return O(
|
|
763
|
+
function X(M) {
|
|
764
|
+
return O(M) === a;
|
|
765
765
|
}
|
|
766
|
-
function K(
|
|
767
|
-
return O(
|
|
766
|
+
function K(M) {
|
|
767
|
+
return O(M) === s;
|
|
768
768
|
}
|
|
769
|
-
function ae(
|
|
770
|
-
return O(
|
|
769
|
+
function ae(M) {
|
|
770
|
+
return O(M) === u;
|
|
771
771
|
}
|
|
772
|
-
ee.AsyncMode =
|
|
772
|
+
ee.AsyncMode = v, ee.ConcurrentMode = D, ee.ContextConsumer = k, ee.ContextProvider = C, ee.Element = b, ee.ForwardRef = R, ee.Fragment = N, ee.Lazy = L, ee.Memo = A, ee.Portal = V, ee.Profiler = I, ee.StrictMode = F, ee.Suspense = z, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = x, ee.isContextProvider = _, ee.isElement = $, ee.isForwardRef = j, ee.isFragment = P, ee.isLazy = U, ee.isMemo = B, ee.isPortal = W, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = w, ee.typeOf = O;
|
|
773
773
|
}()), ee;
|
|
774
774
|
}
|
|
775
775
|
var Jt;
|
|
@@ -820,15 +820,15 @@ function un() {
|
|
|
820
820
|
e.call(o, u) && (l[u] = o[u]);
|
|
821
821
|
if (r) {
|
|
822
822
|
c = r(o);
|
|
823
|
-
for (var
|
|
824
|
-
t.call(o, c[
|
|
823
|
+
for (var p = 0; p < c.length; p++)
|
|
824
|
+
t.call(o, c[p]) && (l[c[p]] = o[c[p]]);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
return l;
|
|
828
828
|
}, xt;
|
|
829
829
|
}
|
|
830
830
|
var St, Zt;
|
|
831
|
-
function
|
|
831
|
+
function At() {
|
|
832
832
|
if (Zt) return St;
|
|
833
833
|
Zt = 1;
|
|
834
834
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -845,7 +845,7 @@ function fn() {
|
|
|
845
845
|
var r = function() {
|
|
846
846
|
};
|
|
847
847
|
if (process.env.NODE_ENV !== "production") {
|
|
848
|
-
var e = /* @__PURE__ */
|
|
848
|
+
var e = /* @__PURE__ */ At(), t = {}, n = /* @__PURE__ */ Cr();
|
|
849
849
|
r = function(a) {
|
|
850
850
|
var i = "Warning: " + a;
|
|
851
851
|
typeof console < "u" && console.error(i);
|
|
@@ -862,14 +862,14 @@ function fn() {
|
|
|
862
862
|
var u;
|
|
863
863
|
try {
|
|
864
864
|
if (typeof a[f] != "function") {
|
|
865
|
-
var
|
|
865
|
+
var p = Error(
|
|
866
866
|
(l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
867
867
|
);
|
|
868
|
-
throw
|
|
868
|
+
throw p.name = "Invariant Violation", p;
|
|
869
869
|
}
|
|
870
870
|
u = a[f](i, f, l, o, null, e);
|
|
871
|
-
} catch (
|
|
872
|
-
u =
|
|
871
|
+
} catch (d) {
|
|
872
|
+
u = d;
|
|
873
873
|
}
|
|
874
874
|
if (u && !(u instanceof Error) && r(
|
|
875
875
|
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -891,7 +891,7 @@ var Tt, tr;
|
|
|
891
891
|
function dn() {
|
|
892
892
|
if (tr) return Tt;
|
|
893
893
|
tr = 1;
|
|
894
|
-
var r = $r(), e = un(), t = /* @__PURE__ */
|
|
894
|
+
var r = $r(), e = un(), t = /* @__PURE__ */ At(), n = /* @__PURE__ */ Cr(), s = /* @__PURE__ */ fn(), a = function() {
|
|
895
895
|
};
|
|
896
896
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
897
897
|
var l = "Warning: " + o;
|
|
@@ -911,7 +911,7 @@ function dn() {
|
|
|
911
911
|
if (typeof x == "function")
|
|
912
912
|
return x;
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var p = "<<anonymous>>", m = {
|
|
915
915
|
array: E("array"),
|
|
916
916
|
bigint: E("bigint"),
|
|
917
917
|
bool: E("boolean"),
|
|
@@ -923,16 +923,16 @@ function dn() {
|
|
|
923
923
|
any: T(),
|
|
924
924
|
arrayOf: w,
|
|
925
925
|
element: O(),
|
|
926
|
-
elementType:
|
|
927
|
-
instanceOf:
|
|
928
|
-
node:
|
|
926
|
+
elementType: v(),
|
|
927
|
+
instanceOf: D,
|
|
928
|
+
node: R(),
|
|
929
929
|
objectOf: C,
|
|
930
|
-
oneOf:
|
|
931
|
-
oneOfType:
|
|
932
|
-
shape:
|
|
933
|
-
exact:
|
|
930
|
+
oneOf: k,
|
|
931
|
+
oneOfType: b,
|
|
932
|
+
shape: L,
|
|
933
|
+
exact: A
|
|
934
934
|
};
|
|
935
|
-
function
|
|
935
|
+
function d(h, x) {
|
|
936
936
|
return h === x ? h !== 0 || 1 / h === 1 / x : h !== h && x !== x;
|
|
937
937
|
}
|
|
938
938
|
function y(h, x) {
|
|
@@ -941,34 +941,34 @@ function dn() {
|
|
|
941
941
|
y.prototype = Error.prototype;
|
|
942
942
|
function S(h) {
|
|
943
943
|
if (process.env.NODE_ENV !== "production")
|
|
944
|
-
var x = {},
|
|
945
|
-
function
|
|
946
|
-
if (W = W ||
|
|
944
|
+
var x = {}, _ = 0;
|
|
945
|
+
function $(P, U, B, W, X, K, ae) {
|
|
946
|
+
if (W = W || p, K = K || B, ae !== t) {
|
|
947
947
|
if (l) {
|
|
948
|
-
var
|
|
948
|
+
var M = new Error(
|
|
949
949
|
"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"
|
|
950
950
|
);
|
|
951
|
-
throw
|
|
951
|
+
throw M.name = "Invariant Violation", M;
|
|
952
952
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
953
953
|
var H = W + ":" + B;
|
|
954
954
|
!x[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
955
|
-
|
|
955
|
+
_ < 3 && (a(
|
|
956
956
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + W + "`. 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."
|
|
957
|
-
), x[H] = !0,
|
|
957
|
+
), x[H] = !0, _++);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
return
|
|
960
|
+
return U[B] == null ? P ? U[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(U, B, W, X, K);
|
|
961
961
|
}
|
|
962
|
-
var j =
|
|
963
|
-
return j.isRequired =
|
|
962
|
+
var j = $.bind(null, !1);
|
|
963
|
+
return j.isRequired = $.bind(null, !0), j;
|
|
964
964
|
}
|
|
965
965
|
function E(h) {
|
|
966
|
-
function x(
|
|
967
|
-
var W =
|
|
966
|
+
function x(_, $, j, P, U, B) {
|
|
967
|
+
var W = _[$], X = F(W);
|
|
968
968
|
if (X !== h) {
|
|
969
969
|
var K = z(W);
|
|
970
970
|
return new y(
|
|
971
|
-
"Invalid " + P + " `" +
|
|
971
|
+
"Invalid " + P + " `" + U + "` of type " + ("`" + K + "` supplied to `" + j + "`, expected ") + ("`" + h + "`."),
|
|
972
972
|
{ expectedType: h }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
@@ -980,16 +980,16 @@ function dn() {
|
|
|
980
980
|
return S(i);
|
|
981
981
|
}
|
|
982
982
|
function w(h) {
|
|
983
|
-
function x(
|
|
983
|
+
function x(_, $, j, P, U) {
|
|
984
984
|
if (typeof h != "function")
|
|
985
|
-
return new y("Property `" +
|
|
986
|
-
var B =
|
|
985
|
+
return new y("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
986
|
+
var B = _[$];
|
|
987
987
|
if (!Array.isArray(B)) {
|
|
988
|
-
var W =
|
|
989
|
-
return new y("Invalid " + P + " `" +
|
|
988
|
+
var W = F(B);
|
|
989
|
+
return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an array."));
|
|
990
990
|
}
|
|
991
991
|
for (var X = 0; X < B.length; X++) {
|
|
992
|
-
var K = h(B, X, j, P,
|
|
992
|
+
var K = h(B, X, j, P, U + "[" + X + "]", t);
|
|
993
993
|
if (K instanceof Error)
|
|
994
994
|
return K;
|
|
995
995
|
}
|
|
@@ -998,64 +998,64 @@ function dn() {
|
|
|
998
998
|
return S(x);
|
|
999
999
|
}
|
|
1000
1000
|
function O() {
|
|
1001
|
-
function h(x,
|
|
1002
|
-
var
|
|
1003
|
-
if (!o(
|
|
1004
|
-
var B =
|
|
1005
|
-
return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" +
|
|
1001
|
+
function h(x, _, $, j, P) {
|
|
1002
|
+
var U = x[_];
|
|
1003
|
+
if (!o(U)) {
|
|
1004
|
+
var B = F(U);
|
|
1005
|
+
return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
1009
|
return S(h);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
function h(x,
|
|
1013
|
-
var
|
|
1014
|
-
if (!r.isValidElementType(
|
|
1015
|
-
var B =
|
|
1016
|
-
return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" +
|
|
1011
|
+
function v() {
|
|
1012
|
+
function h(x, _, $, j, P) {
|
|
1013
|
+
var U = x[_];
|
|
1014
|
+
if (!r.isValidElementType(U)) {
|
|
1015
|
+
var B = F(U);
|
|
1016
|
+
return new y("Invalid " + j + " `" + P + "` of type " + ("`" + B + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
1017
1017
|
}
|
|
1018
1018
|
return null;
|
|
1019
1019
|
}
|
|
1020
1020
|
return S(h);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
function x(
|
|
1024
|
-
if (!(
|
|
1025
|
-
var B = h.name ||
|
|
1026
|
-
return new y("Invalid " + P + " `" +
|
|
1022
|
+
function D(h) {
|
|
1023
|
+
function x(_, $, j, P, U) {
|
|
1024
|
+
if (!(_[$] instanceof h)) {
|
|
1025
|
+
var B = h.name || p, W = Y(_[$]);
|
|
1026
|
+
return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected ") + ("instance of `" + B + "`."));
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
1030
1030
|
return S(x);
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function k(h) {
|
|
1033
1033
|
if (!Array.isArray(h))
|
|
1034
1034
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1035
1035
|
"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])."
|
|
1036
1036
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1037
|
-
function x(
|
|
1038
|
-
for (var B =
|
|
1039
|
-
if (
|
|
1037
|
+
function x(_, $, j, P, U) {
|
|
1038
|
+
for (var B = _[$], W = 0; W < h.length; W++)
|
|
1039
|
+
if (d(B, h[W]))
|
|
1040
1040
|
return null;
|
|
1041
|
-
var X = JSON.stringify(h, function(ae,
|
|
1042
|
-
var H = z(
|
|
1043
|
-
return H === "symbol" ? String(
|
|
1041
|
+
var X = JSON.stringify(h, function(ae, M) {
|
|
1042
|
+
var H = z(M);
|
|
1043
|
+
return H === "symbol" ? String(M) : M;
|
|
1044
1044
|
});
|
|
1045
|
-
return new y("Invalid " + P + " `" +
|
|
1045
|
+
return new y("Invalid " + P + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + j + "`, expected one of " + X + "."));
|
|
1046
1046
|
}
|
|
1047
1047
|
return S(x);
|
|
1048
1048
|
}
|
|
1049
1049
|
function C(h) {
|
|
1050
|
-
function x(
|
|
1050
|
+
function x(_, $, j, P, U) {
|
|
1051
1051
|
if (typeof h != "function")
|
|
1052
|
-
return new y("Property `" +
|
|
1053
|
-
var B =
|
|
1052
|
+
return new y("Property `" + U + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
1053
|
+
var B = _[$], W = F(B);
|
|
1054
1054
|
if (W !== "object")
|
|
1055
|
-
return new y("Invalid " + P + " `" +
|
|
1055
|
+
return new y("Invalid " + P + " `" + U + "` of type " + ("`" + W + "` supplied to `" + j + "`, expected an object."));
|
|
1056
1056
|
for (var X in B)
|
|
1057
1057
|
if (n(B, X)) {
|
|
1058
|
-
var K = h(B, X, j, P,
|
|
1058
|
+
var K = h(B, X, j, P, U + "." + X, t);
|
|
1059
1059
|
if (K instanceof Error)
|
|
1060
1060
|
return K;
|
|
1061
1061
|
}
|
|
@@ -1063,49 +1063,49 @@ function dn() {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
return S(x);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function b(h) {
|
|
1067
1067
|
if (!Array.isArray(h))
|
|
1068
1068
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1069
1069
|
for (var x = 0; x < h.length; x++) {
|
|
1070
|
-
var
|
|
1071
|
-
if (typeof
|
|
1070
|
+
var _ = h[x];
|
|
1071
|
+
if (typeof _ != "function")
|
|
1072
1072
|
return a(
|
|
1073
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(
|
|
1073
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(_) + " at index " + x + "."
|
|
1074
1074
|
), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function $(j, P, U, B, W) {
|
|
1077
1077
|
for (var X = [], K = 0; K < h.length; K++) {
|
|
1078
|
-
var ae = h[K],
|
|
1079
|
-
if (
|
|
1078
|
+
var ae = h[K], M = ae(j, P, U, B, W, t);
|
|
1079
|
+
if (M == null)
|
|
1080
1080
|
return null;
|
|
1081
|
-
|
|
1081
|
+
M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
|
|
1082
1082
|
}
|
|
1083
1083
|
var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1084
|
-
return new y("Invalid " + B + " `" + W + "` supplied to " + ("`" +
|
|
1084
|
+
return new y("Invalid " + B + " `" + W + "` supplied to " + ("`" + U + "`" + H + "."));
|
|
1085
1085
|
}
|
|
1086
|
-
return S(
|
|
1086
|
+
return S($);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
function h(x,
|
|
1090
|
-
return
|
|
1088
|
+
function R() {
|
|
1089
|
+
function h(x, _, $, j, P) {
|
|
1090
|
+
return V(x[_]) ? null : new y("Invalid " + j + " `" + P + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
1091
1091
|
}
|
|
1092
1092
|
return S(h);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function N(h, x, _, $, j) {
|
|
1095
1095
|
return new y(
|
|
1096
|
-
(h || "React class") + ": " + x + " type `" +
|
|
1096
|
+
(h || "React class") + ": " + x + " type `" + _ + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
function x(
|
|
1101
|
-
var B =
|
|
1099
|
+
function L(h) {
|
|
1100
|
+
function x(_, $, j, P, U) {
|
|
1101
|
+
var B = _[$], W = F(B);
|
|
1102
1102
|
if (W !== "object")
|
|
1103
|
-
return new y("Invalid " + P + " `" +
|
|
1103
|
+
return new y("Invalid " + P + " `" + U + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1104
1104
|
for (var X in h) {
|
|
1105
1105
|
var K = h[X];
|
|
1106
1106
|
if (typeof K != "function")
|
|
1107
|
-
return
|
|
1108
|
-
var ae = K(B, X, j, P,
|
|
1107
|
+
return N(j, P, U, X, z(K));
|
|
1108
|
+
var ae = K(B, X, j, P, U + "." + X, t);
|
|
1109
1109
|
if (ae)
|
|
1110
1110
|
return ae;
|
|
1111
1111
|
}
|
|
@@ -1113,30 +1113,30 @@ function dn() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return S(x);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
function x(
|
|
1118
|
-
var B =
|
|
1116
|
+
function A(h) {
|
|
1117
|
+
function x(_, $, j, P, U) {
|
|
1118
|
+
var B = _[$], W = F(B);
|
|
1119
1119
|
if (W !== "object")
|
|
1120
|
-
return new y("Invalid " + P + " `" +
|
|
1121
|
-
var X = e({},
|
|
1120
|
+
return new y("Invalid " + P + " `" + U + "` of type `" + W + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
1121
|
+
var X = e({}, _[$], h);
|
|
1122
1122
|
for (var K in X) {
|
|
1123
1123
|
var ae = h[K];
|
|
1124
1124
|
if (n(h, K) && typeof ae != "function")
|
|
1125
|
-
return
|
|
1125
|
+
return N(j, P, U, K, z(ae));
|
|
1126
1126
|
if (!ae)
|
|
1127
1127
|
return new y(
|
|
1128
|
-
"Invalid " + P + " `" +
|
|
1128
|
+
"Invalid " + P + " `" + U + "` key `" + K + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(_[$], null, " ") + `
|
|
1129
1129
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1130
1130
|
);
|
|
1131
|
-
var
|
|
1132
|
-
if (
|
|
1133
|
-
return
|
|
1131
|
+
var M = ae(B, K, j, P, U + "." + K, t);
|
|
1132
|
+
if (M)
|
|
1133
|
+
return M;
|
|
1134
1134
|
}
|
|
1135
1135
|
return null;
|
|
1136
1136
|
}
|
|
1137
1137
|
return S(x);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function V(h) {
|
|
1140
1140
|
switch (typeof h) {
|
|
1141
1141
|
case "number":
|
|
1142
1142
|
case "string":
|
|
@@ -1146,20 +1146,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1146
1146
|
return !h;
|
|
1147
1147
|
case "object":
|
|
1148
1148
|
if (Array.isArray(h))
|
|
1149
|
-
return h.every(
|
|
1149
|
+
return h.every(V);
|
|
1150
1150
|
if (h === null || o(h))
|
|
1151
1151
|
return !0;
|
|
1152
1152
|
var x = u(h);
|
|
1153
1153
|
if (x) {
|
|
1154
|
-
var
|
|
1154
|
+
var _ = x.call(h), $;
|
|
1155
1155
|
if (x !== h.entries) {
|
|
1156
|
-
for (; !(
|
|
1157
|
-
if (!
|
|
1156
|
+
for (; !($ = _.next()).done; )
|
|
1157
|
+
if (!V($.value))
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
} else
|
|
1160
|
-
for (; !(
|
|
1161
|
-
var j =
|
|
1162
|
-
if (j && !
|
|
1160
|
+
for (; !($ = _.next()).done; ) {
|
|
1161
|
+
var j = $.value;
|
|
1162
|
+
if (j && !V(j[1]))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
} else
|
|
@@ -1169,17 +1169,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function I(h, x) {
|
|
1173
1173
|
return h === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function F(h) {
|
|
1176
1176
|
var x = typeof h;
|
|
1177
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1177
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(x, h) ? "symbol" : x;
|
|
1178
1178
|
}
|
|
1179
1179
|
function z(h) {
|
|
1180
1180
|
if (typeof h > "u" || h === null)
|
|
1181
1181
|
return "" + h;
|
|
1182
|
-
var x =
|
|
1182
|
+
var x = F(h);
|
|
1183
1183
|
if (x === "object") {
|
|
1184
1184
|
if (h instanceof Date)
|
|
1185
1185
|
return "date";
|
|
@@ -1202,8 +1202,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1202
1202
|
return x;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return !h.constructor || !h.constructor.name ?
|
|
1205
|
+
function Y(h) {
|
|
1206
|
+
return !h.constructor || !h.constructor.name ? p : h.constructor.name;
|
|
1207
1207
|
}
|
|
1208
1208
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
1209
1209
|
}, Tt;
|
|
@@ -1212,7 +1212,7 @@ var Ot, rr;
|
|
|
1212
1212
|
function pn() {
|
|
1213
1213
|
if (rr) return Ot;
|
|
1214
1214
|
rr = 1;
|
|
1215
|
-
var r = /* @__PURE__ */
|
|
1215
|
+
var r = /* @__PURE__ */ At();
|
|
1216
1216
|
function e() {
|
|
1217
1217
|
}
|
|
1218
1218
|
function t() {
|
|
@@ -1220,10 +1220,10 @@ function pn() {
|
|
|
1220
1220
|
return t.resetWarningCache = e, Ot = function() {
|
|
1221
1221
|
function n(i, o, l, c, f, u) {
|
|
1222
1222
|
if (u !== r) {
|
|
1223
|
-
var
|
|
1223
|
+
var p = new Error(
|
|
1224
1224
|
"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"
|
|
1225
1225
|
);
|
|
1226
|
-
throw
|
|
1226
|
+
throw p.name = "Invariant Violation", p;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
n.isRequired = n;
|
|
@@ -1293,11 +1293,11 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1293
1293
|
return t.renderSVG = function() {
|
|
1294
1294
|
var s = this;
|
|
1295
1295
|
if (this.reactWrapper instanceof mn(this.reactWrapper).Node) {
|
|
1296
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title,
|
|
1296
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache, m = this.props.onError, d = this.props.beforeInjection, y = this.props.afterInjection, S = this.props.wrapper, E, T;
|
|
1297
1297
|
S === "svg" ? (E = document.createElementNS(Ze, S), E.setAttribute("xmlns", Ze), E.setAttribute("xmlns:xlink", sr), T = document.createElementNS(Ze, S)) : (E = document.createElement(S), T = document.createElement(S)), E.appendChild(T), T.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1298
|
-
var w = function(
|
|
1298
|
+
var w = function(k) {
|
|
1299
1299
|
if (s.removeSVG(), !s._isMounted) {
|
|
1300
|
-
m(
|
|
1300
|
+
m(k);
|
|
1301
1301
|
return;
|
|
1302
1302
|
}
|
|
1303
1303
|
s.setState(function() {
|
|
@@ -1306,11 +1306,11 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1306
1306
|
isLoading: !1
|
|
1307
1307
|
};
|
|
1308
1308
|
}, function() {
|
|
1309
|
-
m(
|
|
1309
|
+
m(k);
|
|
1310
1310
|
});
|
|
1311
|
-
}, O = function(
|
|
1312
|
-
if (
|
|
1313
|
-
w(
|
|
1311
|
+
}, O = function(k, C) {
|
|
1312
|
+
if (k) {
|
|
1313
|
+
w(k);
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
1316
|
s._isMounted && s.setState(function() {
|
|
@@ -1320,33 +1320,33 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1320
1320
|
}, function() {
|
|
1321
1321
|
try {
|
|
1322
1322
|
y(C);
|
|
1323
|
-
} catch (
|
|
1324
|
-
w(
|
|
1323
|
+
} catch (b) {
|
|
1324
|
+
w(b);
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
|
-
},
|
|
1328
|
-
if (
|
|
1329
|
-
var C =
|
|
1330
|
-
C &&
|
|
1331
|
-
var
|
|
1332
|
-
|
|
1327
|
+
}, v = function(k) {
|
|
1328
|
+
if (k.setAttribute("role", "img"), i) {
|
|
1329
|
+
var C = k.querySelector(":scope > desc");
|
|
1330
|
+
C && k.removeChild(C);
|
|
1331
|
+
var b = document.createElement("desc");
|
|
1332
|
+
b.innerHTML = i, k.prepend(b);
|
|
1333
1333
|
}
|
|
1334
1334
|
if (u) {
|
|
1335
|
-
var
|
|
1336
|
-
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1335
|
+
var R = k.querySelector(":scope > title");
|
|
1336
|
+
R && k.removeChild(R);
|
|
1337
|
+
var N = document.createElement("title");
|
|
1338
|
+
N.innerHTML = u, k.prepend(N);
|
|
1339
1339
|
}
|
|
1340
1340
|
try {
|
|
1341
|
-
|
|
1342
|
-
} catch (
|
|
1343
|
-
w(
|
|
1341
|
+
d(k);
|
|
1342
|
+
} catch (L) {
|
|
1343
|
+
w(L);
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
1346
|
on(T, {
|
|
1347
1347
|
afterEach: O,
|
|
1348
|
-
beforeEach:
|
|
1349
|
-
cacheRequests:
|
|
1348
|
+
beforeEach: v,
|
|
1349
|
+
cacheRequests: p,
|
|
1350
1350
|
evalScripts: o,
|
|
1351
1351
|
httpRequestWithCredentials: l,
|
|
1352
1352
|
renumerateIRIElements: c
|
|
@@ -1434,17 +1434,17 @@ const ra = (r) => {
|
|
|
1434
1434
|
isInteractable: c = !1,
|
|
1435
1435
|
spin: f = !1,
|
|
1436
1436
|
title: u,
|
|
1437
|
-
tabIndex:
|
|
1437
|
+
tabIndex: p
|
|
1438
1438
|
}) => {
|
|
1439
|
-
const [m,
|
|
1439
|
+
const [m, d] = G(r), y = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), S = y && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), E = ar(`assets/svg/${r}.svg`), T = ar(
|
|
1440
1440
|
`assets/svg/${n}.svg`
|
|
1441
1441
|
), w = {
|
|
1442
1442
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1443
1443
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1444
1444
|
}, O = () => {
|
|
1445
1445
|
!a && c && l && l();
|
|
1446
|
-
},
|
|
1447
|
-
!a && c && (
|
|
1446
|
+
}, v = (D) => {
|
|
1447
|
+
!a && c && (D.key === "Enter" || D.key === " ") && (D.preventDefault(), O());
|
|
1448
1448
|
};
|
|
1449
1449
|
return /* @__PURE__ */ g.jsx(g.Fragment, { children: S ? /* @__PURE__ */ g.jsx(
|
|
1450
1450
|
Me,
|
|
@@ -1460,8 +1460,8 @@ const ra = (r) => {
|
|
|
1460
1460
|
"aria-disabled": a,
|
|
1461
1461
|
className: w.svg,
|
|
1462
1462
|
onClick: O,
|
|
1463
|
-
onKeyDown:
|
|
1464
|
-
tabIndex:
|
|
1463
|
+
onKeyDown: v,
|
|
1464
|
+
tabIndex: p
|
|
1465
1465
|
}
|
|
1466
1466
|
) : y ? (
|
|
1467
1467
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
@@ -1472,12 +1472,12 @@ const ra = (r) => {
|
|
|
1472
1472
|
width: e || "16px",
|
|
1473
1473
|
height: t || "auto",
|
|
1474
1474
|
alt: u,
|
|
1475
|
-
onError: () =>
|
|
1475
|
+
onError: () => d(T),
|
|
1476
1476
|
onClick: O,
|
|
1477
1477
|
className: w.img,
|
|
1478
1478
|
title: u,
|
|
1479
|
-
onKeyDown: (
|
|
1480
|
-
(
|
|
1479
|
+
onKeyDown: (D) => {
|
|
1480
|
+
(D.key === "Enter" || D.key === " ") && O();
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
)
|
|
@@ -1495,8 +1495,8 @@ const ra = (r) => {
|
|
|
1495
1495
|
"aria-disabled": a,
|
|
1496
1496
|
className: w.svg,
|
|
1497
1497
|
onClick: O,
|
|
1498
|
-
onKeyDown:
|
|
1499
|
-
tabIndex:
|
|
1498
|
+
onKeyDown: v,
|
|
1499
|
+
tabIndex: p
|
|
1500
1500
|
}
|
|
1501
1501
|
) });
|
|
1502
1502
|
}
|
|
@@ -1523,14 +1523,14 @@ const ra = (r) => {
|
|
|
1523
1523
|
showText: c = !0,
|
|
1524
1524
|
fullWidth: f = !1,
|
|
1525
1525
|
loading: u = !1,
|
|
1526
|
-
justify:
|
|
1526
|
+
justify: p = "center",
|
|
1527
1527
|
title: m,
|
|
1528
|
-
optionalDisplayValue:
|
|
1528
|
+
optionalDisplayValue: d,
|
|
1529
1529
|
squared: y = !1,
|
|
1530
1530
|
submit: S = !1
|
|
1531
1531
|
}) => {
|
|
1532
1532
|
const E = {
|
|
1533
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
1533
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${p} ${y && !c ? "smp-button-squared" : ""}`
|
|
1534
1534
|
};
|
|
1535
1535
|
return /* @__PURE__ */ g.jsx(
|
|
1536
1536
|
"button",
|
|
@@ -1542,7 +1542,7 @@ const ra = (r) => {
|
|
|
1542
1542
|
"aria-label": t,
|
|
1543
1543
|
disabled: s,
|
|
1544
1544
|
"aria-busy": u,
|
|
1545
|
-
title: m ||
|
|
1545
|
+
title: m || d,
|
|
1546
1546
|
children: u ? /* @__PURE__ */ g.jsx(le, { icon: "spinner", state: or(i), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
1547
1547
|
n && l && /* @__PURE__ */ g.jsx(
|
|
1548
1548
|
le,
|
|
@@ -1554,7 +1554,7 @@ const ra = (r) => {
|
|
|
1554
1554
|
height: ir(a)
|
|
1555
1555
|
}
|
|
1556
1556
|
),
|
|
1557
|
-
c && /* @__PURE__ */ g.jsx("span", { children:
|
|
1557
|
+
c && /* @__PURE__ */ g.jsx("span", { children: d || r })
|
|
1558
1558
|
] })
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
@@ -1604,9 +1604,9 @@ const ra = (r) => {
|
|
|
1604
1604
|
selectedIndex: n,
|
|
1605
1605
|
onTabChange: s
|
|
1606
1606
|
}) => {
|
|
1607
|
-
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1),
|
|
1607
|
+
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1), p = ce(null);
|
|
1608
1608
|
if (re(() => {
|
|
1609
|
-
const w =
|
|
1609
|
+
const w = p.current;
|
|
1610
1610
|
if (!w) return;
|
|
1611
1611
|
S();
|
|
1612
1612
|
const O = () => S();
|
|
@@ -1623,17 +1623,17 @@ const ra = (r) => {
|
|
|
1623
1623
|
scrollButtonRight: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonRight"]}`,
|
|
1624
1624
|
scrollButtonLeft: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1625
1625
|
active: xe["smp-active"]
|
|
1626
|
-
},
|
|
1627
|
-
const w =
|
|
1626
|
+
}, d = 100, y = 2, S = () => {
|
|
1627
|
+
const w = p.current;
|
|
1628
1628
|
w && (c(w.scrollLeft > 0), u(
|
|
1629
1629
|
w.scrollLeft + w.clientWidth < w.scrollWidth - y
|
|
1630
1630
|
));
|
|
1631
1631
|
}, E = () => {
|
|
1632
1632
|
var w;
|
|
1633
|
-
(w =
|
|
1633
|
+
(w = p.current) == null || w.scrollBy({ left: -d, behavior: "smooth" });
|
|
1634
1634
|
}, T = () => {
|
|
1635
1635
|
var w;
|
|
1636
|
-
(w =
|
|
1636
|
+
(w = p.current) == null || w.scrollBy({ left: d, behavior: "smooth" });
|
|
1637
1637
|
};
|
|
1638
1638
|
return /* @__PURE__ */ g.jsxs(
|
|
1639
1639
|
"div",
|
|
@@ -1652,7 +1652,7 @@ const ra = (r) => {
|
|
|
1652
1652
|
sizing: e
|
|
1653
1653
|
}
|
|
1654
1654
|
) }),
|
|
1655
|
-
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref:
|
|
1655
|
+
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref: p, role: "tablist", children: r.children.map((w, O) => /* @__PURE__ */ g.jsxs(
|
|
1656
1656
|
"button",
|
|
1657
1657
|
{
|
|
1658
1658
|
className: `${O === a ? m.active : ""} ${m.tab} `,
|
|
@@ -1725,19 +1725,19 @@ const ra = (r) => {
|
|
|
1725
1725
|
}
|
|
1726
1726
|
}) => {
|
|
1727
1727
|
const [t, n] = G(0), s = {};
|
|
1728
|
-
at.Children.forEach(r, (
|
|
1729
|
-
at.isValidElement(
|
|
1728
|
+
at.Children.forEach(r, (d) => {
|
|
1729
|
+
at.isValidElement(d) && (s[d.props.id] = d);
|
|
1730
1730
|
});
|
|
1731
1731
|
const a = "--smp-grid-template-cols", i = "--smp-grid-template-rows", o = Rr(
|
|
1732
1732
|
e.sections ?? [],
|
|
1733
1733
|
Object.keys(s)
|
|
1734
|
-
), l = (
|
|
1735
|
-
var
|
|
1734
|
+
), l = (d) => d.reduce((y, S) => {
|
|
1735
|
+
var v, D;
|
|
1736
1736
|
let E = "", T = {}, w = {}, O = "";
|
|
1737
|
-
return (
|
|
1737
|
+
return (v = S.sections) != null && v.length ? (E = ge["smp-layout-section-grid"], T = l(S.sections), S.gridCols === void 0 && (O = ge[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (S.horizontal || Ut(S.sections)) && (w = Yt(
|
|
1738
1738
|
S.sections,
|
|
1739
1739
|
S.horizontal ? a : i
|
|
1740
|
-
)))) : (
|
|
1740
|
+
)))) : (D = S.content) != null && D.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = ge["smp-layout-section-grid"], O = ge["smp-grid-template-cols"], w = {
|
|
1741
1741
|
[a]: `repeat(${S.gridCols}, 1fr)`
|
|
1742
1742
|
}) : E = ge["smp-layout-section-flex"]), {
|
|
1743
1743
|
...y,
|
|
@@ -1750,21 +1750,21 @@ const ra = (r) => {
|
|
|
1750
1750
|
}, {}), c = l(o), f = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, u = e.horizontal || Ut(e.sections || []) ? Yt(
|
|
1751
1751
|
o,
|
|
1752
1752
|
e.horizontal ? a : i
|
|
1753
|
-
) : {},
|
|
1753
|
+
) : {}, p = (d, y) => {
|
|
1754
1754
|
var E, T;
|
|
1755
1755
|
const S = /* @__PURE__ */ g.jsx(
|
|
1756
1756
|
"div",
|
|
1757
1757
|
{
|
|
1758
|
-
"smp-id": `section-${
|
|
1759
|
-
className: c[
|
|
1760
|
-
style: c[
|
|
1761
|
-
children: (E =
|
|
1762
|
-
(w) => m(w,
|
|
1758
|
+
"smp-id": `section-${d.id}`,
|
|
1759
|
+
className: c[d.id].classes,
|
|
1760
|
+
style: c[d.id].styles,
|
|
1761
|
+
children: (E = d.sections) != null && E.length ? d.sections.map((w) => p(w)) : (T = d.content) == null ? void 0 : T.map(
|
|
1762
|
+
(w) => m(w, d.justify, d.align)
|
|
1763
1763
|
)
|
|
1764
1764
|
},
|
|
1765
|
-
`section-${
|
|
1765
|
+
`section-${d.id}`
|
|
1766
1766
|
);
|
|
1767
|
-
return
|
|
1767
|
+
return d.title && !y ? /* @__PURE__ */ g.jsxs(
|
|
1768
1768
|
"div",
|
|
1769
1769
|
{
|
|
1770
1770
|
className: ge["smp-layout-section-with-title"],
|
|
@@ -1772,31 +1772,31 @@ const ra = (r) => {
|
|
|
1772
1772
|
/* @__PURE__ */ g.jsx(
|
|
1773
1773
|
"span",
|
|
1774
1774
|
{
|
|
1775
|
-
className: `${ge["smp-layout-section-title"]} ${
|
|
1776
|
-
children: /* @__PURE__ */ g.jsx(Ce, { label:
|
|
1775
|
+
className: `${ge["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
|
|
1776
|
+
children: /* @__PURE__ */ g.jsx(Ce, { label: d.title })
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
1779
|
S
|
|
1780
1780
|
]
|
|
1781
1781
|
},
|
|
1782
|
-
`title-section-${
|
|
1782
|
+
`title-section-${d.id}`
|
|
1783
1783
|
) : S;
|
|
1784
|
-
}, m = (
|
|
1785
|
-
const E = s[
|
|
1784
|
+
}, m = (d, y, S) => {
|
|
1785
|
+
const E = s[d.id];
|
|
1786
1786
|
if (!E) return null;
|
|
1787
1787
|
const w = {
|
|
1788
|
-
gridColumnStart: (
|
|
1789
|
-
gridColumnEnd:
|
|
1788
|
+
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
1789
|
+
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
1790
1790
|
}, O = `${ge["smp-layout-cell-container"]} ${y ? `smp-justifyContent-${y}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
|
|
1791
1791
|
return /* @__PURE__ */ g.jsx(
|
|
1792
1792
|
"div",
|
|
1793
1793
|
{
|
|
1794
1794
|
className: O,
|
|
1795
1795
|
style: w,
|
|
1796
|
-
"smp-id":
|
|
1796
|
+
"smp-id": d.id,
|
|
1797
1797
|
children: E
|
|
1798
1798
|
},
|
|
1799
|
-
|
|
1799
|
+
d.id
|
|
1800
1800
|
);
|
|
1801
1801
|
};
|
|
1802
1802
|
return /* @__PURE__ */ g.jsxs("div", { className: f, style: u, "smp-id": "layout", children: [
|
|
@@ -1805,8 +1805,8 @@ const ra = (r) => {
|
|
|
1805
1805
|
{
|
|
1806
1806
|
data: {
|
|
1807
1807
|
type: "SmeupDataTree",
|
|
1808
|
-
children: o.map((
|
|
1809
|
-
decode:
|
|
1808
|
+
children: o.map((d) => ({
|
|
1809
|
+
decode: d.title || d.id || "Tab",
|
|
1810
1810
|
obj: { t: "", p: "", k: "" },
|
|
1811
1811
|
placeholderIcon: "tab",
|
|
1812
1812
|
cells: {},
|
|
@@ -1819,7 +1819,7 @@ const ra = (r) => {
|
|
|
1819
1819
|
toolbar: !1
|
|
1820
1820
|
}
|
|
1821
1821
|
),
|
|
1822
|
-
e.sectionsType ?
|
|
1822
|
+
e.sectionsType ? p(o[t], !0) : o.map((d) => p(d))
|
|
1823
1823
|
] });
|
|
1824
1824
|
}, te = {
|
|
1825
1825
|
AUTOCOMPLETE: "ACP",
|
|
@@ -1879,7 +1879,7 @@ class lt {
|
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
1881
|
function En(r, e) {
|
|
1882
|
-
if (
|
|
1882
|
+
if (It(r)) {
|
|
1883
1883
|
const f = new Date(r);
|
|
1884
1884
|
if (!isNaN(f.getTime()))
|
|
1885
1885
|
return f;
|
|
@@ -1911,7 +1911,7 @@ function En(r, e) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
return r;
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function It(r) {
|
|
1915
1915
|
return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
|
|
1916
1916
|
}
|
|
1917
1917
|
function Qe(r) {
|
|
@@ -1990,7 +1990,7 @@ const lr = /* @__PURE__ */ new Map([
|
|
|
1990
1990
|
return Tn(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
|
|
1991
1991
|
},
|
|
1992
1992
|
isoToLegacy(r) {
|
|
1993
|
-
return
|
|
1993
|
+
return It(r) && r.replaceAll("-", "") || r;
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
1996
|
]
|
|
@@ -2002,10 +2002,10 @@ function ht({
|
|
|
2002
2002
|
const t = ce(null), n = ce(null), [s, a] = G(0), i = ue(() => {
|
|
2003
2003
|
const o = t.current, l = n.current;
|
|
2004
2004
|
if (!o || !l) return;
|
|
2005
|
-
const { top: c, left: f, width: u, height:
|
|
2005
|
+
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
2006
2006
|
a(u);
|
|
2007
|
-
const m = l.offsetHeight,
|
|
2008
|
-
if (
|
|
2007
|
+
const m = l.offsetHeight, d = l.offsetWidth;
|
|
2008
|
+
if (d === 0 || m === 0) {
|
|
2009
2009
|
requestAnimationFrame(i);
|
|
2010
2010
|
return;
|
|
2011
2011
|
}
|
|
@@ -2015,10 +2015,10 @@ function ht({
|
|
|
2015
2015
|
y -= m;
|
|
2016
2016
|
break;
|
|
2017
2017
|
case "bottom":
|
|
2018
|
-
y +=
|
|
2018
|
+
y += p;
|
|
2019
2019
|
break;
|
|
2020
2020
|
case "left":
|
|
2021
|
-
S -=
|
|
2021
|
+
S -= d;
|
|
2022
2022
|
break;
|
|
2023
2023
|
case "right":
|
|
2024
2024
|
S += u;
|
|
@@ -2096,41 +2096,41 @@ const Fe = (r, e, t) => {
|
|
|
2096
2096
|
tooltip: c = !1,
|
|
2097
2097
|
rotatedShapeIcon: f = !1,
|
|
2098
2098
|
ref: u,
|
|
2099
|
-
inputRef:
|
|
2099
|
+
inputRef: p,
|
|
2100
2100
|
inputType: m = "text",
|
|
2101
|
-
ariaLabel:
|
|
2101
|
+
ariaLabel: d = "input field",
|
|
2102
2102
|
label: y,
|
|
2103
2103
|
helperText: S = !1,
|
|
2104
2104
|
error: E,
|
|
2105
2105
|
appearance: T = "base",
|
|
2106
2106
|
fullWidth: w = !1,
|
|
2107
2107
|
_dataComponent: O = "textfield",
|
|
2108
|
-
min:
|
|
2109
|
-
max:
|
|
2110
|
-
step:
|
|
2108
|
+
min: v,
|
|
2109
|
+
max: D,
|
|
2110
|
+
step: k,
|
|
2111
2111
|
inputMode: C = "text",
|
|
2112
|
-
width:
|
|
2113
|
-
autocomplete:
|
|
2114
|
-
size:
|
|
2115
|
-
maxLength:
|
|
2116
|
-
onBlur:
|
|
2117
|
-
onChange:
|
|
2118
|
-
onKeyDown:
|
|
2119
|
-
onShapeIconClick:
|
|
2112
|
+
width: b,
|
|
2113
|
+
autocomplete: R,
|
|
2114
|
+
size: N,
|
|
2115
|
+
maxLength: L,
|
|
2116
|
+
onBlur: A,
|
|
2117
|
+
onChange: V,
|
|
2118
|
+
onKeyDown: I,
|
|
2119
|
+
onShapeIconClick: F,
|
|
2120
2120
|
onClick: z
|
|
2121
2121
|
}) => {
|
|
2122
|
-
const J = Re(),
|
|
2123
|
-
|
|
2122
|
+
const J = Re(), Y = `${J}-helper`, h = E ? "danger" : o, x = E || o == "danger" ? "error" : a, _ = S || !!E, $ = (U) => {
|
|
2123
|
+
V == null || V(U.target.value);
|
|
2124
2124
|
}, j = {
|
|
2125
2125
|
wrapper: `${ye["smp-textfield-wrapper"]} ${w ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
2126
2126
|
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${T ? ye[`smp-textfield-${T}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
2127
2127
|
input: `${ye["smp-textfield-input"]}`
|
|
2128
2128
|
};
|
|
2129
2129
|
if (l && (l !== "notSelectable" || s)) {
|
|
2130
|
-
const
|
|
2131
|
-
|
|
2130
|
+
const U = ye[`smp-textfield-variant-${l}`];
|
|
2131
|
+
U && (j.container += ` ${U}`);
|
|
2132
2132
|
}
|
|
2133
|
-
const P =
|
|
2133
|
+
const P = b ? { "--smp-textField-width-base": b } : void 0;
|
|
2134
2134
|
return /* @__PURE__ */ g.jsxs("div", { className: j.wrapper, "data-component": O, children: [
|
|
2135
2135
|
y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
|
|
2136
2136
|
/* @__PURE__ */ g.jsxs(
|
|
@@ -2148,22 +2148,22 @@ const Fe = (r, e, t) => {
|
|
|
2148
2148
|
type: m,
|
|
2149
2149
|
value: e,
|
|
2150
2150
|
placeholder: n,
|
|
2151
|
-
onChange:
|
|
2152
|
-
onBlur:
|
|
2151
|
+
onChange: $,
|
|
2152
|
+
onBlur: A,
|
|
2153
2153
|
className: j.input,
|
|
2154
2154
|
disabled: r,
|
|
2155
2155
|
readOnly: !s,
|
|
2156
|
-
onKeyDown:
|
|
2157
|
-
"aria-label":
|
|
2158
|
-
ref:
|
|
2159
|
-
"aria-describedby":
|
|
2160
|
-
min:
|
|
2161
|
-
max:
|
|
2162
|
-
step:
|
|
2156
|
+
onKeyDown: I,
|
|
2157
|
+
"aria-label": d,
|
|
2158
|
+
ref: p,
|
|
2159
|
+
"aria-describedby": _ ? Y : void 0,
|
|
2160
|
+
min: v,
|
|
2161
|
+
max: D,
|
|
2162
|
+
step: k,
|
|
2163
2163
|
inputMode: C,
|
|
2164
|
-
autoComplete:
|
|
2165
|
-
size:
|
|
2166
|
-
maxLength:
|
|
2164
|
+
autoComplete: R,
|
|
2165
|
+
size: N,
|
|
2166
|
+
maxLength: L,
|
|
2167
2167
|
onClick: z
|
|
2168
2168
|
}
|
|
2169
2169
|
),
|
|
@@ -2173,7 +2173,7 @@ const Fe = (r, e, t) => {
|
|
|
2173
2173
|
icon: x,
|
|
2174
2174
|
disabled: r,
|
|
2175
2175
|
state: h,
|
|
2176
|
-
onClick:
|
|
2176
|
+
onClick: F,
|
|
2177
2177
|
rotated: f,
|
|
2178
2178
|
isInteractable: s,
|
|
2179
2179
|
tabIndex: 0
|
|
@@ -2182,18 +2182,18 @@ const Fe = (r, e, t) => {
|
|
|
2182
2182
|
]
|
|
2183
2183
|
}
|
|
2184
2184
|
),
|
|
2185
|
-
|
|
2185
|
+
_ && /* @__PURE__ */ g.jsx(
|
|
2186
2186
|
Lr,
|
|
2187
2187
|
{
|
|
2188
2188
|
helperText: E,
|
|
2189
2189
|
disabled: r,
|
|
2190
2190
|
state: h,
|
|
2191
|
-
id:
|
|
2191
|
+
id: Y
|
|
2192
2192
|
}
|
|
2193
2193
|
)
|
|
2194
2194
|
] });
|
|
2195
2195
|
};
|
|
2196
|
-
function
|
|
2196
|
+
function Ar({
|
|
2197
2197
|
items: r,
|
|
2198
2198
|
itemHeight: e,
|
|
2199
2199
|
containerHeight: t,
|
|
@@ -2210,12 +2210,12 @@ function Ir({
|
|
|
2210
2210
|
offsetTop: m * e
|
|
2211
2211
|
});
|
|
2212
2212
|
const u = ue((m) => {
|
|
2213
|
-
const
|
|
2214
|
-
a(
|
|
2215
|
-
}, []),
|
|
2213
|
+
const d = m.target.scrollTop;
|
|
2214
|
+
a(d);
|
|
2215
|
+
}, []), p = (m) => {
|
|
2216
2216
|
if (!i.current) return;
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2217
|
+
const d = m * e, y = d + e, S = i.current, E = S.scrollTop, T = E + t;
|
|
2218
|
+
d < E ? S.scrollTop = d : y > T && (S.scrollTop = y - t);
|
|
2219
2219
|
};
|
|
2220
2220
|
return {
|
|
2221
2221
|
virtualItems: f,
|
|
@@ -2243,7 +2243,7 @@ function Ir({
|
|
|
2243
2243
|
startIndex: l,
|
|
2244
2244
|
endIndex: c
|
|
2245
2245
|
},
|
|
2246
|
-
scrollToIndex:
|
|
2246
|
+
scrollToIndex: p
|
|
2247
2247
|
};
|
|
2248
2248
|
}
|
|
2249
2249
|
const et = {
|
|
@@ -2262,7 +2262,7 @@ function Rn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2262
2262
|
}
|
|
2263
2263
|
return Math.ceil(i + n);
|
|
2264
2264
|
}
|
|
2265
|
-
const Dn = 10,
|
|
2265
|
+
const Dn = 10, Ir = ({
|
|
2266
2266
|
id: r,
|
|
2267
2267
|
options: e,
|
|
2268
2268
|
displayMode: t = "Both",
|
|
@@ -2277,41 +2277,41 @@ const Dn = 10, Ar = ({
|
|
|
2277
2277
|
onKeyDown: c,
|
|
2278
2278
|
isOpen: f
|
|
2279
2279
|
}) => {
|
|
2280
|
-
var
|
|
2281
|
-
const [u,
|
|
2280
|
+
var V;
|
|
2281
|
+
const [u, p] = G(""), m = 40, [d, y] = G(
|
|
2282
2282
|
a !== null ? a : -1
|
|
2283
2283
|
), [S, E] = G(o || 200), T = ce(null), w = s !== void 0 ? s : e.length > Dn, O = u ? e.filter(
|
|
2284
|
-
(
|
|
2285
|
-
) : e,
|
|
2286
|
-
|
|
2287
|
-
}, { virtualItems:
|
|
2284
|
+
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2285
|
+
) : e, v = (I) => {
|
|
2286
|
+
p(I);
|
|
2287
|
+
}, { virtualItems: D, containerProps: k, innerProps: C, scrollToIndex: b } = Ar({
|
|
2288
2288
|
items: O,
|
|
2289
2289
|
itemHeight: m,
|
|
2290
2290
|
containerHeight: 200,
|
|
2291
2291
|
overscan: 5
|
|
2292
2292
|
});
|
|
2293
2293
|
re(() => {
|
|
2294
|
-
a !== null && a !==
|
|
2294
|
+
a !== null && a !== d && y(a);
|
|
2295
2295
|
}, [a]), re(() => {
|
|
2296
|
-
|
|
2297
|
-
}, [
|
|
2296
|
+
d >= 0 && d < O.length && b(d);
|
|
2297
|
+
}, [d, O]), re(() => {
|
|
2298
2298
|
f && (T != null && T.current) && T.current.focus();
|
|
2299
2299
|
}, [f, T]), re(() => {
|
|
2300
|
-
const
|
|
2301
|
-
E(
|
|
2300
|
+
const I = Rn(e, t);
|
|
2301
|
+
E(I);
|
|
2302
2302
|
}, [e, t]);
|
|
2303
|
-
const
|
|
2304
|
-
if (
|
|
2305
|
-
|
|
2306
|
-
let
|
|
2307
|
-
|
|
2308
|
-
} else
|
|
2309
|
-
c && c(
|
|
2310
|
-
},
|
|
2311
|
-
|
|
2312
|
-
},
|
|
2313
|
-
|
|
2314
|
-
},
|
|
2303
|
+
const R = (I) => {
|
|
2304
|
+
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2305
|
+
I.preventDefault();
|
|
2306
|
+
let F = d;
|
|
2307
|
+
I.key === "ArrowDown" ? F = d < O.length - 1 ? d + 1 : 0 : I.key === "ArrowUp" && (F = d > 0 ? d - 1 : O.length - 1), y(F);
|
|
2308
|
+
} else I.key === "Enter" ? d >= 0 && d < O.length && (l == null || l(O[d])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2309
|
+
c && c(I);
|
|
2310
|
+
}, N = (I) => {
|
|
2311
|
+
R(I);
|
|
2312
|
+
}, L = (I) => {
|
|
2313
|
+
R(I);
|
|
2314
|
+
}, A = {
|
|
2315
2315
|
wrapper: `${et["smp-list"]}`,
|
|
2316
2316
|
container: `${et["smp-list-container"]}`,
|
|
2317
2317
|
virtualScroll: `${et["smp-list-virtualScroll"]}`,
|
|
@@ -2322,7 +2322,7 @@ const Dn = 10, Ar = ({
|
|
|
2322
2322
|
{
|
|
2323
2323
|
id: r,
|
|
2324
2324
|
ref: n,
|
|
2325
|
-
className:
|
|
2325
|
+
className: A.wrapper,
|
|
2326
2326
|
"data-component": "list",
|
|
2327
2327
|
style: {
|
|
2328
2328
|
width: S,
|
|
@@ -2335,34 +2335,34 @@ const Dn = 10, Ar = ({
|
|
|
2335
2335
|
bindValue: u,
|
|
2336
2336
|
placeholder: "Search...",
|
|
2337
2337
|
fullWidth: !0,
|
|
2338
|
-
onChange:
|
|
2339
|
-
onKeyDown:
|
|
2338
|
+
onChange: v,
|
|
2339
|
+
onKeyDown: N,
|
|
2340
2340
|
inputRef: T
|
|
2341
2341
|
}
|
|
2342
2342
|
),
|
|
2343
2343
|
/* @__PURE__ */ g.jsx(
|
|
2344
2344
|
"div",
|
|
2345
2345
|
{
|
|
2346
|
-
...
|
|
2347
|
-
className:
|
|
2346
|
+
...k,
|
|
2347
|
+
className: A.container,
|
|
2348
2348
|
tabIndex: 0,
|
|
2349
2349
|
role: "listbox",
|
|
2350
2350
|
"aria-label": "List",
|
|
2351
|
-
onKeyDown:
|
|
2352
|
-
"aria-activedescendant":
|
|
2353
|
-
children: /* @__PURE__ */ g.jsx("div", { ...C, className:
|
|
2354
|
-
const J = i.includes(
|
|
2351
|
+
onKeyDown: L,
|
|
2352
|
+
"aria-activedescendant": d >= 0 && d < O.length ? (V = O[d]) == null ? void 0 : V.id : void 0,
|
|
2353
|
+
children: /* @__PURE__ */ g.jsx("div", { ...C, className: A.virtualScroll, children: D.map(({ item: I, index: F, offsetTop: z }) => {
|
|
2354
|
+
const J = i.includes(I.id);
|
|
2355
2355
|
return (
|
|
2356
2356
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2357
2357
|
/* @__PURE__ */ g.jsxs(
|
|
2358
2358
|
"li",
|
|
2359
2359
|
{
|
|
2360
2360
|
role: "option",
|
|
2361
|
-
id:
|
|
2362
|
-
"aria-selected":
|
|
2361
|
+
id: I.id,
|
|
2362
|
+
"aria-selected": d === F ? "true" : "false",
|
|
2363
2363
|
tabIndex: -1,
|
|
2364
|
-
className: `${
|
|
2365
|
-
"aria-label":
|
|
2364
|
+
className: `${A.listItem} ${d === F ? "selected-item" : ""}`,
|
|
2365
|
+
"aria-label": I.id + "-" + I.label,
|
|
2366
2366
|
style: {
|
|
2367
2367
|
height: `${m}px`,
|
|
2368
2368
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
@@ -2370,14 +2370,14 @@ const Dn = 10, Ar = ({
|
|
|
2370
2370
|
transform: `translateY(${z}px)`
|
|
2371
2371
|
},
|
|
2372
2372
|
onClick: () => {
|
|
2373
|
-
l == null || l(
|
|
2373
|
+
l == null || l(I), y(F);
|
|
2374
2374
|
},
|
|
2375
2375
|
children: [
|
|
2376
|
-
Fe(
|
|
2376
|
+
Fe(I.id, I.label, t),
|
|
2377
2377
|
J && /* @__PURE__ */ g.jsx(le, { icon: "check", width: 16 })
|
|
2378
2378
|
]
|
|
2379
2379
|
},
|
|
2380
|
-
|
|
2380
|
+
I.id
|
|
2381
2381
|
)
|
|
2382
2382
|
);
|
|
2383
2383
|
}) })
|
|
@@ -2483,7 +2483,7 @@ const gt = (r, e, t) => {
|
|
|
2483
2483
|
} = We(r, e);
|
|
2484
2484
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2485
2485
|
return t[n];
|
|
2486
|
-
},
|
|
2486
|
+
}, An = (r, e, t) => {
|
|
2487
2487
|
const n = ut(r, t);
|
|
2488
2488
|
return n !== void 0 ? n : ut(e, t);
|
|
2489
2489
|
}, Pr = (r, e, t) => {
|
|
@@ -2491,7 +2491,7 @@ const gt = (r, e, t) => {
|
|
|
2491
2491
|
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Pr(r[n], e[n], t) : r[n] = e[n]);
|
|
2492
2492
|
return r;
|
|
2493
2493
|
}, Pe = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2494
|
-
var
|
|
2494
|
+
var In = {
|
|
2495
2495
|
"&": "&",
|
|
2496
2496
|
"<": "<",
|
|
2497
2497
|
">": ">",
|
|
@@ -2499,7 +2499,7 @@ var An = {
|
|
|
2499
2499
|
"'": "'",
|
|
2500
2500
|
"/": "/"
|
|
2501
2501
|
};
|
|
2502
|
-
const Pn = (r) => q(r) ? r.replace(/[&<>"'\/]/g, (e) =>
|
|
2502
|
+
const Pn = (r) => q(r) ? r.replace(/[&<>"'\/]/g, (e) => In[e]) : r;
|
|
2503
2503
|
class Nn {
|
|
2504
2504
|
constructor(e) {
|
|
2505
2505
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -2757,9 +2757,9 @@ class dt extends yt {
|
|
|
2757
2757
|
} = this.extractFromKey(e[e.length - 1], s), c = l[l.length - 1];
|
|
2758
2758
|
let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2759
2759
|
f === void 0 && (f = ":");
|
|
2760
|
-
const u = s.lng || this.language,
|
|
2760
|
+
const u = s.lng || this.language, p = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2761
2761
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
2762
|
-
return
|
|
2762
|
+
return p ? a ? {
|
|
2763
2763
|
res: `${c}${f}${o}`,
|
|
2764
2764
|
usedKey: o,
|
|
2765
2765
|
exactUsedKey: o,
|
|
@@ -2775,48 +2775,48 @@ class dt extends yt {
|
|
|
2775
2775
|
usedParams: this.getUsedParamsDetails(s)
|
|
2776
2776
|
} : o;
|
|
2777
2777
|
const m = this.resolve(e, s);
|
|
2778
|
-
let
|
|
2779
|
-
const y = (m == null ? void 0 : m.usedKey) || o, S = (m == null ? void 0 : m.exactUsedKey) || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !q(s.count),
|
|
2778
|
+
let d = m == null ? void 0 : m.res;
|
|
2779
|
+
const y = (m == null ? void 0 : m.usedKey) || o, S = (m == null ? void 0 : m.exactUsedKey) || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !q(s.count), v = dt.hasDefaultValue(s), D = O ? this.pluralResolver.getSuffix(u, s.count, s) : "", k = s.ordinal && O ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2780
2780
|
ordinal: !1
|
|
2781
|
-
}) : "", C = O && !s.ordinal && s.count === 0,
|
|
2782
|
-
let
|
|
2783
|
-
w && !
|
|
2784
|
-
const
|
|
2785
|
-
if (w &&
|
|
2781
|
+
}) : "", C = O && !s.ordinal && s.count === 0, b = C && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2782
|
+
let R = d;
|
|
2783
|
+
w && !d && v && (R = b);
|
|
2784
|
+
const N = mr(R), L = Object.prototype.toString.apply(R);
|
|
2785
|
+
if (w && R && N && E.indexOf(L) < 0 && !(q(T) && Array.isArray(R))) {
|
|
2786
2786
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2787
2787
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2788
|
-
const
|
|
2788
|
+
const A = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, R, {
|
|
2789
2789
|
...s,
|
|
2790
2790
|
ns: l
|
|
2791
2791
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2792
|
-
return a ? (m.res =
|
|
2792
|
+
return a ? (m.res = A, m.usedParams = this.getUsedParamsDetails(s), m) : A;
|
|
2793
2793
|
}
|
|
2794
2794
|
if (i) {
|
|
2795
|
-
const
|
|
2796
|
-
for (const
|
|
2797
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2798
|
-
const z = `${
|
|
2799
|
-
|
|
2795
|
+
const A = Array.isArray(R), V = A ? [] : {}, I = A ? S : y;
|
|
2796
|
+
for (const F in R)
|
|
2797
|
+
if (Object.prototype.hasOwnProperty.call(R, F)) {
|
|
2798
|
+
const z = `${I}${i}${F}`;
|
|
2799
|
+
v && !d ? V[F] = this.translate(z, {
|
|
2800
2800
|
...s,
|
|
2801
|
-
defaultValue: mr(
|
|
2801
|
+
defaultValue: mr(b) ? b[F] : void 0,
|
|
2802
2802
|
joinArrays: !1,
|
|
2803
2803
|
ns: l
|
|
2804
|
-
}) :
|
|
2804
|
+
}) : V[F] = this.translate(z, {
|
|
2805
2805
|
...s,
|
|
2806
2806
|
joinArrays: !1,
|
|
2807
2807
|
ns: l
|
|
2808
|
-
}),
|
|
2808
|
+
}), V[F] === z && (V[F] = R[F]);
|
|
2809
2809
|
}
|
|
2810
|
-
|
|
2810
|
+
d = V;
|
|
2811
2811
|
}
|
|
2812
|
-
} else if (w && q(T) && Array.isArray(
|
|
2813
|
-
|
|
2812
|
+
} else if (w && q(T) && Array.isArray(d))
|
|
2813
|
+
d = d.join(T), d && (d = this.extendTranslation(d, e, s, n));
|
|
2814
2814
|
else {
|
|
2815
|
-
let
|
|
2816
|
-
!this.isValidLookup(
|
|
2817
|
-
const
|
|
2818
|
-
if (
|
|
2819
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ?
|
|
2815
|
+
let A = !1, V = !1;
|
|
2816
|
+
!this.isValidLookup(d) && v && (A = !0, d = b), this.isValidLookup(d) || (V = !0, d = o);
|
|
2817
|
+
const F = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && V ? void 0 : d, z = v && b !== d && this.options.updateMissing;
|
|
2818
|
+
if (V || A || z) {
|
|
2819
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? b : d), i) {
|
|
2820
2820
|
const x = this.resolve(o, {
|
|
2821
2821
|
...s,
|
|
2822
2822
|
keySeparator: !1
|
|
@@ -2824,26 +2824,26 @@ class dt extends yt {
|
|
|
2824
2824
|
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.");
|
|
2825
2825
|
}
|
|
2826
2826
|
let J = [];
|
|
2827
|
-
const
|
|
2828
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2829
|
-
for (let x = 0; x <
|
|
2830
|
-
J.push(
|
|
2827
|
+
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2828
|
+
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
2829
|
+
for (let x = 0; x < Y.length; x++)
|
|
2830
|
+
J.push(Y[x]);
|
|
2831
2831
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
|
|
2832
|
-
const h = (x,
|
|
2832
|
+
const h = (x, _, $) => {
|
|
2833
2833
|
var P;
|
|
2834
|
-
const j =
|
|
2835
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c,
|
|
2834
|
+
const j = v && $ !== d ? $ : F;
|
|
2835
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(x, c, _, j, z, s) : (P = this.backendConnector) != null && P.saveMissing && this.backendConnector.saveMissing(x, c, _, j, z, s), this.emit("missingKey", x, c, _, d);
|
|
2836
2836
|
};
|
|
2837
2837
|
this.options.saveMissing && (this.options.saveMissingPlurals && O ? J.forEach((x) => {
|
|
2838
|
-
const
|
|
2839
|
-
C && s[`defaultValue${this.options.pluralSeparator}zero`] &&
|
|
2840
|
-
h([x], o +
|
|
2838
|
+
const _ = this.pluralResolver.getSuffixes(x, s);
|
|
2839
|
+
C && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach(($) => {
|
|
2840
|
+
h([x], o + $, s[`defaultValue${$}`] || b);
|
|
2841
2841
|
});
|
|
2842
|
-
}) : h(J, o,
|
|
2842
|
+
}) : h(J, o, b));
|
|
2843
2843
|
}
|
|
2844
|
-
|
|
2844
|
+
d = this.extendTranslation(d, e, s, m, n), V && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (V || A) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, A ? d : void 0, s));
|
|
2845
2845
|
}
|
|
2846
|
-
return a ? (m.res =
|
|
2846
|
+
return a ? (m.res = d, m.usedParams = this.getUsedParamsDetails(s), m) : d;
|
|
2847
2847
|
}
|
|
2848
2848
|
extendTranslation(e, t, n, s, a) {
|
|
2849
2849
|
var l, c;
|
|
@@ -2868,13 +2868,13 @@ class dt extends yt {
|
|
|
2868
2868
|
const m = e.match(this.interpolator.nestingRegexp);
|
|
2869
2869
|
u = m && m.length;
|
|
2870
2870
|
}
|
|
2871
|
-
let
|
|
2872
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2871
|
+
let p = n.replace && !q(n.replace) ? n.replace : n;
|
|
2872
|
+
if (this.options.interpolation.defaultVariables && (p = {
|
|
2873
2873
|
...this.options.interpolation.defaultVariables,
|
|
2874
|
-
...
|
|
2875
|
-
}), e = this.interpolator.interpolate(e,
|
|
2876
|
-
const m = e.match(this.interpolator.nestingRegexp),
|
|
2877
|
-
u <
|
|
2874
|
+
...p
|
|
2875
|
+
}), e = this.interpolator.interpolate(e, p, n.lng || this.language || s.usedLng, n), f) {
|
|
2876
|
+
const m = e.match(this.interpolator.nestingRegexp), d = m && m.length;
|
|
2877
|
+
u < d && (n.nest = !1);
|
|
2878
2878
|
}
|
|
2879
2879
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
2880
2880
|
}
|
|
@@ -2895,28 +2895,28 @@ class dt extends yt {
|
|
|
2895
2895
|
s = f;
|
|
2896
2896
|
let u = c.namespaces;
|
|
2897
2897
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2898
|
-
const
|
|
2898
|
+
const p = t.count !== void 0 && !q(t.count), m = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (q(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2899
2899
|
u.forEach((S) => {
|
|
2900
2900
|
var E, T;
|
|
2901
2901
|
this.isValidLookup(n) || (o = S, !hr[`${y[0]}-${S}`] && ((E = this.utils) != null && E.hasLoadedNamespace) && !((T = this.utils) != null && T.hasLoadedNamespace(o)) && (hr[`${y[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${y.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!!!")), y.forEach((w) => {
|
|
2902
|
-
var
|
|
2902
|
+
var D;
|
|
2903
2903
|
if (this.isValidLookup(n)) return;
|
|
2904
2904
|
i = w;
|
|
2905
2905
|
const O = [f];
|
|
2906
|
-
if ((
|
|
2906
|
+
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
2907
2907
|
this.i18nFormat.addLookupKeys(O, f, w, S, t);
|
|
2908
2908
|
else {
|
|
2909
|
-
let
|
|
2910
|
-
|
|
2911
|
-
const C = `${this.options.pluralSeparator}zero`,
|
|
2912
|
-
if (
|
|
2913
|
-
const
|
|
2914
|
-
O.push(
|
|
2909
|
+
let k;
|
|
2910
|
+
p && (k = this.pluralResolver.getSuffix(w, t.count, t));
|
|
2911
|
+
const C = `${this.options.pluralSeparator}zero`, b = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2912
|
+
if (p && (O.push(f + k), t.ordinal && k.indexOf(b) === 0 && O.push(f + k.replace(b, this.options.pluralSeparator)), m && O.push(f + C)), d) {
|
|
2913
|
+
const R = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2914
|
+
O.push(R), p && (O.push(R + k), t.ordinal && k.indexOf(b) === 0 && O.push(R + k.replace(b, this.options.pluralSeparator)), m && O.push(R + C));
|
|
2915
2915
|
}
|
|
2916
2916
|
}
|
|
2917
|
-
let
|
|
2918
|
-
for (;
|
|
2919
|
-
this.isValidLookup(n) || (a =
|
|
2917
|
+
let v;
|
|
2918
|
+
for (; v = O.pop(); )
|
|
2919
|
+
this.isValidLookup(n) || (a = v, n = this.getResource(w, S, v, t));
|
|
2920
2920
|
}));
|
|
2921
2921
|
});
|
|
2922
2922
|
}), {
|
|
@@ -3082,7 +3082,7 @@ class Yn {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
const vr = (r, e, t, n = ".", s = !0) => {
|
|
3085
|
-
let a =
|
|
3085
|
+
let a = An(r, e, t);
|
|
3086
3086
|
return !a && s && q(t) && (a = $t(r, t, n), a === void 0 && (a = $t(e, t, n))), a;
|
|
3087
3087
|
}, _t = (r) => r.replace(/\$/g, "$$$$");
|
|
3088
3088
|
class Un {
|
|
@@ -3105,15 +3105,15 @@ class Un {
|
|
|
3105
3105
|
formatSeparator: c,
|
|
3106
3106
|
unescapeSuffix: f,
|
|
3107
3107
|
unescapePrefix: u,
|
|
3108
|
-
nestingPrefix:
|
|
3108
|
+
nestingPrefix: p,
|
|
3109
3109
|
nestingPrefixEscaped: m,
|
|
3110
|
-
nestingSuffix:
|
|
3110
|
+
nestingSuffix: d,
|
|
3111
3111
|
nestingSuffixEscaped: y,
|
|
3112
3112
|
nestingOptionsSeparator: S,
|
|
3113
3113
|
maxReplaces: E,
|
|
3114
3114
|
alwaysFormat: T
|
|
3115
3115
|
} = e.interpolation;
|
|
3116
|
-
this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix =
|
|
3116
|
+
this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Pe(p) : m || Pe("$t("), this.nestingSuffix = d ? Pe(d) : y || Pe(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
|
|
3117
3117
|
}
|
|
3118
3118
|
reset() {
|
|
3119
3119
|
this.options && this.init(this.options);
|
|
@@ -3125,16 +3125,16 @@ class Un {
|
|
|
3125
3125
|
interpolate(e, t, n, s) {
|
|
3126
3126
|
var m;
|
|
3127
3127
|
let a, i, o;
|
|
3128
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
3129
|
-
if (
|
|
3130
|
-
const T = vr(t, l,
|
|
3128
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (d) => {
|
|
3129
|
+
if (d.indexOf(this.formatSeparator) < 0) {
|
|
3130
|
+
const T = vr(t, l, d, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3131
3131
|
return this.alwaysFormat ? this.format(T, void 0, n, {
|
|
3132
3132
|
...s,
|
|
3133
3133
|
...t,
|
|
3134
|
-
interpolationkey:
|
|
3134
|
+
interpolationkey: d
|
|
3135
3135
|
}) : T;
|
|
3136
3136
|
}
|
|
3137
|
-
const y =
|
|
3137
|
+
const y = d.split(this.formatSeparator), S = y.shift().trim(), E = y.join(this.formatSeparator).trim();
|
|
3138
3138
|
return this.format(vr(t, l, S, this.options.keySeparator, this.options.ignoreJSONStructure), E, n, {
|
|
3139
3139
|
...s,
|
|
3140
3140
|
...t,
|
|
@@ -3145,12 +3145,12 @@ class Un {
|
|
|
3145
3145
|
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((m = s == null ? void 0 : s.interpolation) == null ? void 0 : m.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3146
3146
|
return [{
|
|
3147
3147
|
regex: this.regexpUnescape,
|
|
3148
|
-
safeValue: (
|
|
3148
|
+
safeValue: (d) => _t(d)
|
|
3149
3149
|
}, {
|
|
3150
3150
|
regex: this.regexp,
|
|
3151
|
-
safeValue: (
|
|
3152
|
-
}].forEach((
|
|
3153
|
-
for (o = 0; a =
|
|
3151
|
+
safeValue: (d) => this.escapeValue ? _t(this.escape(d)) : _t(d)
|
|
3152
|
+
}].forEach((d) => {
|
|
3153
|
+
for (o = 0; a = d.regex.exec(e); ) {
|
|
3154
3154
|
const y = a[1].trim();
|
|
3155
3155
|
if (i = c(y), i === void 0)
|
|
3156
3156
|
if (typeof f == "function") {
|
|
@@ -3164,8 +3164,8 @@ class Un {
|
|
|
3164
3164
|
} else
|
|
3165
3165
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), i = "";
|
|
3166
3166
|
else !q(i) && !this.useRawValueToEscape && (i = cr(i));
|
|
3167
|
-
const S =
|
|
3168
|
-
if (e = e.replace(a[0], S), u ? (
|
|
3167
|
+
const S = d.safeValue(i);
|
|
3168
|
+
if (e = e.replace(a[0], S), u ? (d.regex.lastIndex += i.length, d.regex.lastIndex -= a[0].length) : d.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3169
3169
|
break;
|
|
3170
3170
|
}
|
|
3171
3171
|
}), e;
|
|
@@ -3176,17 +3176,17 @@ class Un {
|
|
|
3176
3176
|
const f = this.nestingOptionsSeparator;
|
|
3177
3177
|
if (l.indexOf(f) < 0) return l;
|
|
3178
3178
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
3179
|
-
let
|
|
3180
|
-
l = u[0],
|
|
3181
|
-
const m =
|
|
3182
|
-
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !
|
|
3179
|
+
let p = `{${u[1]}`;
|
|
3180
|
+
l = u[0], p = this.interpolate(p, i);
|
|
3181
|
+
const m = p.match(/'/g), d = p.match(/"/g);
|
|
3182
|
+
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
3183
3183
|
try {
|
|
3184
|
-
i = JSON.parse(
|
|
3184
|
+
i = JSON.parse(p), c && (i = {
|
|
3185
3185
|
...c,
|
|
3186
3186
|
...i
|
|
3187
3187
|
});
|
|
3188
3188
|
} catch (y) {
|
|
3189
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${
|
|
3189
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${p}`;
|
|
3190
3190
|
}
|
|
3191
3191
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, l;
|
|
3192
3192
|
};
|
|
@@ -3302,10 +3302,10 @@ class Hn {
|
|
|
3302
3302
|
formatOptions: f
|
|
3303
3303
|
} = Wn(l);
|
|
3304
3304
|
if (this.formats[c]) {
|
|
3305
|
-
let
|
|
3305
|
+
let p = o;
|
|
3306
3306
|
try {
|
|
3307
|
-
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {},
|
|
3308
|
-
|
|
3307
|
+
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {}, d = m.locale || m.lng || s.locale || s.lng || n;
|
|
3308
|
+
p = this.formats[c](o, d, {
|
|
3309
3309
|
...f,
|
|
3310
3310
|
...s,
|
|
3311
3311
|
...m
|
|
@@ -3313,7 +3313,7 @@ class Hn {
|
|
|
3313
3313
|
} catch (m) {
|
|
3314
3314
|
this.logger.warn(m);
|
|
3315
3315
|
}
|
|
3316
|
-
return
|
|
3316
|
+
return p;
|
|
3317
3317
|
} else
|
|
3318
3318
|
this.logger.warn(`there was no format function for ${c}`);
|
|
3319
3319
|
return o;
|
|
@@ -3333,8 +3333,8 @@ class Kn extends yt {
|
|
|
3333
3333
|
return e.forEach((c) => {
|
|
3334
3334
|
let f = !0;
|
|
3335
3335
|
t.forEach((u) => {
|
|
3336
|
-
const
|
|
3337
|
-
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[
|
|
3336
|
+
const p = `${c}|${u}`;
|
|
3337
|
+
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[p] = 2 : this.state[p] < 0 || (this.state[p] === 1 ? i[p] === void 0 && (i[p] = !0) : (this.state[p] = 1, f = !1, i[p] === void 0 && (i[p] = !0), a[p] === void 0 && (a[p] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
3338
3338
|
}), f || (o[c] = !0);
|
|
3339
3339
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3340
3340
|
pending: i,
|
|
@@ -3430,26 +3430,26 @@ class Kn extends yt {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3432
3432
|
}) {
|
|
3433
|
-
var l, c, f, u,
|
|
3433
|
+
var l, c, f, u, p;
|
|
3434
3434
|
if ((c = (l = this.services) == null ? void 0 : l.utils) != null && c.hasLoadedNamespace && !((u = (f = this.services) == null ? void 0 : f.utils) != null && u.hasLoadedNamespace(t))) {
|
|
3435
3435
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
3436
3436
|
return;
|
|
3437
3437
|
}
|
|
3438
3438
|
if (!(n == null || n === "")) {
|
|
3439
|
-
if ((
|
|
3439
|
+
if ((p = this.backend) != null && p.create) {
|
|
3440
3440
|
const m = {
|
|
3441
3441
|
...i,
|
|
3442
3442
|
isUpdate: a
|
|
3443
|
-
},
|
|
3444
|
-
if (
|
|
3443
|
+
}, d = this.backend.create.bind(this.backend);
|
|
3444
|
+
if (d.length < 6)
|
|
3445
3445
|
try {
|
|
3446
3446
|
let y;
|
|
3447
|
-
|
|
3447
|
+
d.length === 5 ? y = d(e, t, n, s, m) : y = d(e, t, n, s), y && typeof y.then == "function" ? y.then((S) => o(null, S)).catch(o) : o(null, y);
|
|
3448
3448
|
} catch (y) {
|
|
3449
3449
|
o(y);
|
|
3450
3450
|
}
|
|
3451
3451
|
else
|
|
3452
|
-
|
|
3452
|
+
d(e, t, n, s, o, m);
|
|
3453
3453
|
}
|
|
3454
3454
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3455
3455
|
}
|
|
@@ -3557,12 +3557,12 @@ class He extends yt {
|
|
|
3557
3557
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3558
3558
|
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Un(this.options), u.utils = {
|
|
3559
3559
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3560
|
-
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (
|
|
3561
|
-
this.emit(
|
|
3562
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (
|
|
3563
|
-
this.emit(
|
|
3564
|
-
}), this.modules.external.forEach((
|
|
3565
|
-
|
|
3560
|
+
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (p, ...m) => {
|
|
3561
|
+
this.emit(p, ...m);
|
|
3562
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (p, ...m) => {
|
|
3563
|
+
this.emit(p, ...m);
|
|
3564
|
+
}), this.modules.external.forEach((p) => {
|
|
3565
|
+
p.init && p.init(this);
|
|
3566
3566
|
});
|
|
3567
3567
|
}
|
|
3568
3568
|
if (this.format = this.options.interpolation.format, t || (t = tt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3636,8 +3636,8 @@ class He extends yt {
|
|
|
3636
3636
|
var f, u;
|
|
3637
3637
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3638
3638
|
const l = q(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(q(o) ? [o] : o);
|
|
3639
|
-
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (
|
|
3640
|
-
a(
|
|
3639
|
+
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (p) => {
|
|
3640
|
+
a(p, c);
|
|
3641
3641
|
});
|
|
3642
3642
|
};
|
|
3643
3643
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
|
|
@@ -3873,7 +3873,7 @@ ie.init({
|
|
|
3873
3873
|
}
|
|
3874
3874
|
});
|
|
3875
3875
|
const fs = (r, e, t, n) => ie.format(r, e, t || ie.language, n), ds = (r, e) => ie.t(r, e);
|
|
3876
|
-
function
|
|
3876
|
+
function Ae() {
|
|
3877
3877
|
const r = ue(
|
|
3878
3878
|
(n, s, a, i) => fs(n, s, a || void 0, i),
|
|
3879
3879
|
[]
|
|
@@ -3896,39 +3896,42 @@ const kr = ({
|
|
|
3896
3896
|
_changeOnEnter: l = !1,
|
|
3897
3897
|
onChange: c,
|
|
3898
3898
|
onOptionsRequest: f,
|
|
3899
|
-
|
|
3900
|
-
|
|
3899
|
+
onBlur: u,
|
|
3900
|
+
_multiActiveIndex: p,
|
|
3901
|
+
...m
|
|
3901
3902
|
}) => {
|
|
3902
|
-
const
|
|
3903
|
+
const d = ce(null), [y, S] = G(r), [E, T] = G(e), { translate: w } = Ae(), [O, v] = G(!1), [D, k] = G(t || []), [C, b] = G(0), [R, N] = G([r]), { anchorRef: L, targetRef: A, anchorWidth: V } = ht({
|
|
3903
3904
|
position: "bottom",
|
|
3904
|
-
enabled:
|
|
3905
|
-
}),
|
|
3906
|
-
var
|
|
3907
|
-
|
|
3905
|
+
enabled: O
|
|
3906
|
+
}), I = ue(() => {
|
|
3907
|
+
var _;
|
|
3908
|
+
v(!1), (_ = d == null ? void 0 : d.current) == null || _.focus();
|
|
3908
3909
|
}, []);
|
|
3909
|
-
gt([
|
|
3910
|
-
const
|
|
3911
|
-
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3914
|
-
}) :
|
|
3915
|
-
},
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
},
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3910
|
+
gt([A], O, () => I());
|
|
3911
|
+
const F = jn(400), z = (_) => {
|
|
3912
|
+
_.length >= a ? o && f && F(async () => {
|
|
3913
|
+
const $ = await f(o, _);
|
|
3914
|
+
k($), b($.length > 0 ? 0 : -1), v(!0);
|
|
3915
|
+
}) : I(), S(_), T(e), l || c == null || c(_, e);
|
|
3916
|
+
}, J = () => {
|
|
3917
|
+
O || u == null || u();
|
|
3918
|
+
}, Y = (_) => {
|
|
3919
|
+
l ? (S(""), T("")) : (S(_.id), T(_.label)), c == null || c(_.id, _.label);
|
|
3920
|
+
const $ = D.findIndex((j) => j.id === _.id);
|
|
3921
|
+
b($), N([_.id]), I();
|
|
3922
|
+
}, h = (_) => {
|
|
3923
|
+
_.key === "Escape" && (I(), b(-1));
|
|
3924
|
+
}, x = (_) => {
|
|
3925
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), O)) {
|
|
3926
|
+
const $ = _.key === "ArrowDown" ? (C + 1) % D.length : (C - 1 + D.length) % D.length;
|
|
3927
|
+
b($);
|
|
3928
|
+
}
|
|
3929
|
+
switch (_.key) {
|
|
3927
3930
|
case "Enter":
|
|
3928
|
-
|
|
3931
|
+
C >= 0 && C < D.length ? Y(D[C]) : l && (c == null || c(y, ""), I(), S(""), T(""));
|
|
3929
3932
|
break;
|
|
3930
3933
|
case "Escape":
|
|
3931
|
-
|
|
3934
|
+
I(), b(-1);
|
|
3932
3935
|
break;
|
|
3933
3936
|
}
|
|
3934
3937
|
};
|
|
@@ -3936,35 +3939,36 @@ const kr = ({
|
|
|
3936
3939
|
/* @__PURE__ */ g.jsx(
|
|
3937
3940
|
Pt,
|
|
3938
3941
|
{
|
|
3939
|
-
...
|
|
3940
|
-
bindValue:
|
|
3941
|
-
optionalDisplayValue:
|
|
3942
|
+
...m,
|
|
3943
|
+
bindValue: y,
|
|
3944
|
+
optionalDisplayValue: E,
|
|
3942
3945
|
displayMode: n,
|
|
3943
3946
|
isEditable: i,
|
|
3944
3947
|
shapeIcon: "magnify",
|
|
3945
|
-
placeholder:
|
|
3948
|
+
placeholder: w(
|
|
3946
3949
|
Oe.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3947
3950
|
),
|
|
3948
|
-
ref:
|
|
3949
|
-
inputRef:
|
|
3950
|
-
onChange:
|
|
3951
|
-
onKeyDown:
|
|
3951
|
+
ref: L,
|
|
3952
|
+
inputRef: d,
|
|
3953
|
+
onChange: z,
|
|
3954
|
+
onKeyDown: x,
|
|
3955
|
+
onBlur: J,
|
|
3952
3956
|
"aria-autocomplete": "list"
|
|
3953
3957
|
}
|
|
3954
3958
|
),
|
|
3955
|
-
|
|
3956
|
-
|
|
3959
|
+
O && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3960
|
+
Ir,
|
|
3957
3961
|
{
|
|
3958
|
-
options:
|
|
3962
|
+
options: D,
|
|
3959
3963
|
displayMode: s,
|
|
3960
|
-
onClick:
|
|
3961
|
-
ref:
|
|
3962
|
-
selectedIndex:
|
|
3963
|
-
activeIndex:
|
|
3964
|
-
width:
|
|
3964
|
+
onClick: Y,
|
|
3965
|
+
ref: A,
|
|
3966
|
+
selectedIndex: C,
|
|
3967
|
+
activeIndex: p || R,
|
|
3968
|
+
width: V,
|
|
3965
3969
|
showFilter: !1,
|
|
3966
|
-
onKeyDown:
|
|
3967
|
-
isOpen:
|
|
3970
|
+
onKeyDown: h,
|
|
3971
|
+
isOpen: O
|
|
3968
3972
|
}
|
|
3969
3973
|
) })
|
|
3970
3974
|
] });
|
|
@@ -3981,23 +3985,23 @@ const kr = ({
|
|
|
3981
3985
|
fullWidth: c,
|
|
3982
3986
|
disabled: f,
|
|
3983
3987
|
justify: u,
|
|
3984
|
-
squared:
|
|
3988
|
+
squared: p,
|
|
3985
3989
|
onClick: m,
|
|
3986
|
-
onOptionsRequest:
|
|
3990
|
+
onOptionsRequest: d
|
|
3987
3991
|
}) => {
|
|
3988
3992
|
const [y, S] = G(r);
|
|
3989
3993
|
re(() => {
|
|
3990
|
-
!y &&
|
|
3994
|
+
!y && d && e && d(e, void 0).then((w) => S(w)).catch((w) => {
|
|
3991
3995
|
console.error(
|
|
3992
3996
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
3993
3997
|
w
|
|
3994
3998
|
);
|
|
3995
3999
|
});
|
|
3996
|
-
}, [y, e,
|
|
4000
|
+
}, [y, e, d]);
|
|
3997
4001
|
const E = {
|
|
3998
4002
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
3999
4003
|
}, T = y == null ? void 0 : y.map((w, O) => {
|
|
4000
|
-
const
|
|
4004
|
+
const v = {
|
|
4001
4005
|
bindValue: w.id,
|
|
4002
4006
|
optionalDisplayValue: w.label,
|
|
4003
4007
|
fun: w.fun,
|
|
@@ -4010,12 +4014,12 @@ const kr = ({
|
|
|
4010
4014
|
disabled: f,
|
|
4011
4015
|
sizing: s,
|
|
4012
4016
|
justify: u,
|
|
4013
|
-
squared:
|
|
4017
|
+
squared: p,
|
|
4014
4018
|
onClick: () => {
|
|
4015
4019
|
m == null || m(w.id, w.fun);
|
|
4016
4020
|
}
|
|
4017
4021
|
};
|
|
4018
|
-
return /* @__PURE__ */ g.jsx(De, { ...
|
|
4022
|
+
return /* @__PURE__ */ g.jsx(De, { ...v }, `button-${O}`);
|
|
4019
4023
|
});
|
|
4020
4024
|
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: T });
|
|
4021
4025
|
}, hs = {
|
|
@@ -4063,15 +4067,15 @@ const kr = ({
|
|
|
4063
4067
|
container: `${["smp-chips-container"]}`,
|
|
4064
4068
|
element: "smp-chips-element"
|
|
4065
4069
|
}, f = (m) => {
|
|
4066
|
-
n == null || n(r.filter((
|
|
4070
|
+
n == null || n(r.filter((d, y) => y !== m));
|
|
4067
4071
|
}, u = (m) => {
|
|
4068
4072
|
l(m);
|
|
4069
|
-
},
|
|
4073
|
+
}, p = (m) => {
|
|
4070
4074
|
if (o === null || o === m) return;
|
|
4071
|
-
const
|
|
4072
|
-
|
|
4075
|
+
const d = [...r], [y] = d.splice(o, 1);
|
|
4076
|
+
d.splice(m, 0, y), n == null || n(d), l(null);
|
|
4073
4077
|
};
|
|
4074
|
-
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m,
|
|
4078
|
+
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m, d) => {
|
|
4075
4079
|
const y = Fe(
|
|
4076
4080
|
m.bindValue,
|
|
4077
4081
|
m.optionalDisplayValue,
|
|
@@ -4082,9 +4086,9 @@ const kr = ({
|
|
|
4082
4086
|
className: c.element,
|
|
4083
4087
|
role: "listitem",
|
|
4084
4088
|
draggable: i,
|
|
4085
|
-
onDragStart: () => u(
|
|
4089
|
+
onDragStart: () => u(d),
|
|
4086
4090
|
onDragOver: (T) => i && T.preventDefault(),
|
|
4087
|
-
onDrop: () => i && d
|
|
4091
|
+
onDrop: () => i && p(d),
|
|
4088
4092
|
style: {
|
|
4089
4093
|
"--smp-chips-backgroundColor-base": a
|
|
4090
4094
|
},
|
|
@@ -4096,20 +4100,20 @@ const kr = ({
|
|
|
4096
4100
|
{
|
|
4097
4101
|
icon: "close",
|
|
4098
4102
|
isInteractable: !0,
|
|
4099
|
-
onClick: () => f(
|
|
4103
|
+
onClick: () => f(d),
|
|
4100
4104
|
color: s
|
|
4101
4105
|
}
|
|
4102
4106
|
)
|
|
4103
4107
|
]
|
|
4104
4108
|
},
|
|
4105
|
-
`chip-${
|
|
4106
|
-
), E = i &&
|
|
4109
|
+
`chip-${d}`
|
|
4110
|
+
), E = i && d < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
4107
4111
|
le,
|
|
4108
4112
|
{
|
|
4109
4113
|
icon: "chevron-right",
|
|
4110
4114
|
color: s
|
|
4111
4115
|
},
|
|
4112
|
-
`separator-${
|
|
4116
|
+
`separator-${d}`
|
|
4113
4117
|
) : null;
|
|
4114
4118
|
return [S, E].filter(Boolean);
|
|
4115
4119
|
}) });
|
|
@@ -4134,8 +4138,8 @@ function kt(r, e) {
|
|
|
4134
4138
|
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
4135
4139
|
const f = s();
|
|
4136
4140
|
if (f.length === 0) return;
|
|
4137
|
-
const u = f[0],
|
|
4138
|
-
c.shiftKey && document.activeElement === u ? (c.preventDefault(),
|
|
4141
|
+
const u = f[0], p = f[f.length - 1];
|
|
4142
|
+
c.shiftKey && document.activeElement === u ? (c.preventDefault(), p.focus()) : !c.shiftKey && document.activeElement === p && (c.preventDefault(), u.focus());
|
|
4139
4143
|
}, o = (c) => {
|
|
4140
4144
|
if (n && !n.contains(c.target)) {
|
|
4141
4145
|
c.preventDefault();
|
|
@@ -4166,32 +4170,32 @@ const gs = ({
|
|
|
4166
4170
|
multiActiveIndex: c,
|
|
4167
4171
|
...f
|
|
4168
4172
|
}) => {
|
|
4169
|
-
const u = ce(null), [
|
|
4173
|
+
const u = ce(null), [p, m] = G(!1), [d, y] = G(t), [S, E] = G(-1), [T, w] = G([r]), O = Re(), { anchorRef: v, targetRef: D, anchorWidth: k } = ht({
|
|
4170
4174
|
position: "bottom",
|
|
4171
|
-
enabled:
|
|
4175
|
+
enabled: p
|
|
4172
4176
|
}), C = ue(() => {
|
|
4173
|
-
var
|
|
4174
|
-
m(!1), (
|
|
4177
|
+
var A;
|
|
4178
|
+
m(!1), (A = u == null ? void 0 : u.current) == null || A.focus();
|
|
4175
4179
|
}, []);
|
|
4176
|
-
gt([
|
|
4177
|
-
const
|
|
4178
|
-
e == null || e(
|
|
4179
|
-
const
|
|
4180
|
-
E(
|
|
4181
|
-
},
|
|
4182
|
-
|
|
4183
|
-
},
|
|
4184
|
-
(
|
|
4185
|
-
},
|
|
4186
|
-
s && (o && l ?
|
|
4187
|
-
y(
|
|
4188
|
-
}) : m((
|
|
4180
|
+
gt([D, v], p, () => C()), kt(p, D);
|
|
4181
|
+
const b = (A) => {
|
|
4182
|
+
e == null || e(A.id, A.label);
|
|
4183
|
+
const V = d.findIndex((I) => I.id === A.id);
|
|
4184
|
+
E(V), w([A.id]), C();
|
|
4185
|
+
}, R = (A) => {
|
|
4186
|
+
A.key === "Escape" && (C(), E(-1));
|
|
4187
|
+
}, N = (A) => {
|
|
4188
|
+
(A.key === "ArrowDown" || A.key === "ArrowUp") && (A.preventDefault(), L());
|
|
4189
|
+
}, L = () => {
|
|
4190
|
+
s && (o && l ? p ? m(!1) : l(o, void 0).then((A) => {
|
|
4191
|
+
y(A), E(A.length > 0 ? 0 : -1), m(!0);
|
|
4192
|
+
}) : m((A) => !A));
|
|
4189
4193
|
};
|
|
4190
4194
|
return /* @__PURE__ */ g.jsxs(
|
|
4191
4195
|
"div",
|
|
4192
4196
|
{
|
|
4193
4197
|
role: "combobox",
|
|
4194
|
-
"aria-expanded":
|
|
4198
|
+
"aria-expanded": p,
|
|
4195
4199
|
"aria-controls": O,
|
|
4196
4200
|
"aria-owns": O,
|
|
4197
4201
|
"data-component": "combobox",
|
|
@@ -4203,31 +4207,31 @@ const gs = ({
|
|
|
4203
4207
|
bindValue: r,
|
|
4204
4208
|
optionalDisplayValue: n,
|
|
4205
4209
|
displayMode: a,
|
|
4206
|
-
onShapeIconClick:
|
|
4207
|
-
onKeyDown:
|
|
4208
|
-
onClick:
|
|
4210
|
+
onShapeIconClick: L,
|
|
4211
|
+
onKeyDown: N,
|
|
4212
|
+
onClick: L,
|
|
4209
4213
|
shapeIcon: "arrow_drop_down",
|
|
4210
|
-
rotatedShapeIcon:
|
|
4214
|
+
rotatedShapeIcon: p,
|
|
4211
4215
|
isEditable: s,
|
|
4212
|
-
ref:
|
|
4216
|
+
ref: v,
|
|
4213
4217
|
inputRef: u,
|
|
4214
4218
|
"aria-autocomplete": "list",
|
|
4215
4219
|
variant: "notSelectable"
|
|
4216
4220
|
}
|
|
4217
4221
|
),
|
|
4218
|
-
|
|
4219
|
-
|
|
4222
|
+
p && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4223
|
+
Ir,
|
|
4220
4224
|
{
|
|
4221
4225
|
id: O,
|
|
4222
|
-
options:
|
|
4226
|
+
options: d,
|
|
4223
4227
|
displayMode: i,
|
|
4224
|
-
ref:
|
|
4225
|
-
isOpen:
|
|
4228
|
+
ref: D,
|
|
4229
|
+
isOpen: p,
|
|
4226
4230
|
selectedIndex: S,
|
|
4227
4231
|
activeIndex: c || T,
|
|
4228
|
-
width:
|
|
4229
|
-
onClick:
|
|
4230
|
-
onKeyDown:
|
|
4232
|
+
width: k,
|
|
4233
|
+
onClick: b,
|
|
4234
|
+
onKeyDown: R
|
|
4231
4235
|
}
|
|
4232
4236
|
) })
|
|
4233
4237
|
]
|
|
@@ -4243,17 +4247,17 @@ function bs({
|
|
|
4243
4247
|
initialValue: n,
|
|
4244
4248
|
targetRef: s
|
|
4245
4249
|
}) {
|
|
4246
|
-
const { translate: a } =
|
|
4250
|
+
const { translate: a } = Ae(), i = () => {
|
|
4247
4251
|
if (!n) return;
|
|
4248
|
-
const
|
|
4249
|
-
return isNaN(
|
|
4252
|
+
const Y = new Date(n);
|
|
4253
|
+
return isNaN(Y.getTime()) ? void 0 : Y;
|
|
4250
4254
|
}, [o] = G(/* @__PURE__ */ new Date()), [l, c] = G(
|
|
4251
4255
|
r || i() || /* @__PURE__ */ new Date()
|
|
4252
4256
|
), [f, u] = G(
|
|
4253
4257
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4254
|
-
), [
|
|
4258
|
+
), [p, m] = G(
|
|
4255
4259
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4256
|
-
), [
|
|
4260
|
+
), [d, y] = G(
|
|
4257
4261
|
l ? l.getDate() : null
|
|
4258
4262
|
), S = ce(null), E = ce([]), T = [
|
|
4259
4263
|
a(pe.JANUARY),
|
|
@@ -4297,106 +4301,106 @@ function bs({
|
|
|
4297
4301
|
value: a(fe.SATURDAY_SHORT),
|
|
4298
4302
|
full: a(fe.SATURDAY)
|
|
4299
4303
|
}
|
|
4300
|
-
], O = (
|
|
4301
|
-
const x = h.start.getTime(),
|
|
4302
|
-
return
|
|
4303
|
-
}),
|
|
4304
|
-
O(
|
|
4305
|
-
},
|
|
4306
|
-
f === 0 ? (u(11), m(
|
|
4307
|
-
},
|
|
4308
|
-
f === 11 ? (u(0), m(
|
|
4309
|
-
}, C = (
|
|
4304
|
+
], O = (Y) => t.some((h) => {
|
|
4305
|
+
const x = h.start.getTime(), _ = h.end.getTime(), $ = Y.getTime();
|
|
4306
|
+
return $ >= x && $ <= _;
|
|
4307
|
+
}), v = (Y) => {
|
|
4308
|
+
O(Y) || (c(Y), y(Y.getDate()), e && e(_n(Y)));
|
|
4309
|
+
}, D = () => {
|
|
4310
|
+
f === 0 ? (u(11), m(p - 1)) : u(f - 1), y(1);
|
|
4311
|
+
}, k = () => {
|
|
4312
|
+
f === 11 ? (u(0), m(p + 1)) : u(f + 1), y(1);
|
|
4313
|
+
}, C = (Y, h) => new Date(Y, h + 1, 0).getDate(), b = (Y, h) => new Date(Y, h, 1).getDay(), R = (Y) => {
|
|
4310
4314
|
var x;
|
|
4311
|
-
const h =
|
|
4312
|
-
(
|
|
4315
|
+
const h = V.findIndex(
|
|
4316
|
+
(_) => _ !== null && _.getDate() === Y
|
|
4313
4317
|
);
|
|
4314
|
-
h !== -1 && E.current[h] && ((x = E.current[h]) == null || x.focus(), y(
|
|
4315
|
-
},
|
|
4316
|
-
const x =
|
|
4318
|
+
h !== -1 && E.current[h] && ((x = E.current[h]) == null || x.focus(), y(Y));
|
|
4319
|
+
}, N = (Y, h) => {
|
|
4320
|
+
const x = V[h];
|
|
4317
4321
|
if (!x) return;
|
|
4318
|
-
const
|
|
4319
|
-
switch (
|
|
4322
|
+
const _ = C(p, f), $ = x.getDate();
|
|
4323
|
+
switch (Y.key) {
|
|
4320
4324
|
case "ArrowRight":
|
|
4321
|
-
|
|
4325
|
+
Y.preventDefault();
|
|
4322
4326
|
{
|
|
4323
|
-
let j =
|
|
4324
|
-
if (j >
|
|
4325
|
-
const
|
|
4326
|
-
j = 1, P = new Date(
|
|
4327
|
-
|
|
4327
|
+
let j = $ + 1, P = new Date(p, f, j);
|
|
4328
|
+
if (j > _) {
|
|
4329
|
+
const U = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
|
|
4330
|
+
j = 1, P = new Date(U, B, j), k(), setTimeout(() => {
|
|
4331
|
+
L(1, "forward");
|
|
4328
4332
|
}, 0);
|
|
4329
4333
|
return;
|
|
4330
4334
|
}
|
|
4331
|
-
O(P) ?
|
|
4335
|
+
O(P) ? L(j, "forward") : R(j);
|
|
4332
4336
|
}
|
|
4333
4337
|
break;
|
|
4334
4338
|
case "Tab":
|
|
4335
4339
|
break;
|
|
4336
4340
|
case "ArrowLeft":
|
|
4337
|
-
|
|
4341
|
+
Y.preventDefault();
|
|
4338
4342
|
{
|
|
4339
|
-
let j =
|
|
4343
|
+
let j = $ - 1, P = new Date(p, f, j);
|
|
4340
4344
|
if (j < 1) {
|
|
4341
|
-
const
|
|
4342
|
-
j = W, P = new Date(
|
|
4343
|
-
|
|
4345
|
+
const U = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1, W = C(U, B);
|
|
4346
|
+
j = W, P = new Date(U, B, j), D(), setTimeout(() => {
|
|
4347
|
+
L(W, "backward");
|
|
4344
4348
|
}, 0);
|
|
4345
4349
|
return;
|
|
4346
4350
|
}
|
|
4347
|
-
O(P) ?
|
|
4351
|
+
O(P) ? L(j, "backward") : R(j);
|
|
4348
4352
|
}
|
|
4349
4353
|
break;
|
|
4350
4354
|
case "ArrowUp":
|
|
4351
|
-
|
|
4355
|
+
Y.preventDefault();
|
|
4352
4356
|
{
|
|
4353
|
-
let j =
|
|
4357
|
+
let j = $ - 7, P = new Date(p, f, j);
|
|
4354
4358
|
if (j < 1) {
|
|
4355
|
-
const
|
|
4356
|
-
j = C(
|
|
4357
|
-
|
|
4359
|
+
const U = f === 0 ? p - 1 : p, B = f === 0 ? 11 : f - 1;
|
|
4360
|
+
j = C(U, B) + j, P = new Date(U, B, j), D(), setTimeout(() => {
|
|
4361
|
+
L(j, "backward");
|
|
4358
4362
|
}, 0);
|
|
4359
4363
|
return;
|
|
4360
4364
|
}
|
|
4361
|
-
O(P) ?
|
|
4365
|
+
O(P) ? L(j, "backward") : R(j);
|
|
4362
4366
|
}
|
|
4363
4367
|
break;
|
|
4364
4368
|
case "ArrowDown":
|
|
4365
|
-
|
|
4369
|
+
Y.preventDefault();
|
|
4366
4370
|
{
|
|
4367
|
-
let j =
|
|
4368
|
-
if (j >
|
|
4369
|
-
const
|
|
4370
|
-
j = j -
|
|
4371
|
-
|
|
4371
|
+
let j = $ + 7, P = new Date(p, f, j);
|
|
4372
|
+
if (j > _) {
|
|
4373
|
+
const U = f === 11 ? p + 1 : p, B = f === 11 ? 0 : f + 1;
|
|
4374
|
+
j = j - _, P = new Date(U, B, j), k(), setTimeout(() => {
|
|
4375
|
+
L(j, "forward");
|
|
4372
4376
|
}, 0);
|
|
4373
4377
|
return;
|
|
4374
4378
|
}
|
|
4375
|
-
O(P) ?
|
|
4379
|
+
O(P) ? L(j, "forward") : R(j);
|
|
4376
4380
|
}
|
|
4377
4381
|
break;
|
|
4378
4382
|
case "Home":
|
|
4379
|
-
|
|
4383
|
+
Y.preventDefault(), L(1, "forward");
|
|
4380
4384
|
break;
|
|
4381
4385
|
case "End":
|
|
4382
|
-
|
|
4386
|
+
Y.preventDefault(), L(_, "backward");
|
|
4383
4387
|
break;
|
|
4384
4388
|
case "PageUp":
|
|
4385
|
-
|
|
4389
|
+
Y.preventDefault(), D(), setTimeout(() => {
|
|
4386
4390
|
const j = C(
|
|
4387
|
-
f === 0 ?
|
|
4391
|
+
f === 0 ? p - 1 : p,
|
|
4388
4392
|
f === 0 ? 11 : f - 1
|
|
4389
|
-
), P = Math.min(
|
|
4390
|
-
|
|
4393
|
+
), P = Math.min($, j);
|
|
4394
|
+
L(P, "forward");
|
|
4391
4395
|
}, 0);
|
|
4392
4396
|
break;
|
|
4393
4397
|
case "PageDown":
|
|
4394
|
-
|
|
4398
|
+
Y.preventDefault(), k(), setTimeout(() => {
|
|
4395
4399
|
const j = C(
|
|
4396
|
-
f === 11 ?
|
|
4400
|
+
f === 11 ? p + 1 : p,
|
|
4397
4401
|
f === 11 ? 0 : f + 1
|
|
4398
|
-
), P = Math.min(
|
|
4399
|
-
|
|
4402
|
+
), P = Math.min($, j);
|
|
4403
|
+
L(P, "forward");
|
|
4400
4404
|
}, 0);
|
|
4401
4405
|
break;
|
|
4402
4406
|
case " ":
|
|
@@ -4405,73 +4409,73 @@ function bs({
|
|
|
4405
4409
|
y(x.getDate()), c(x);
|
|
4406
4410
|
break;
|
|
4407
4411
|
case "Enter":
|
|
4408
|
-
|
|
4412
|
+
Y.preventDefault(), v(x);
|
|
4409
4413
|
break;
|
|
4410
4414
|
}
|
|
4411
|
-
},
|
|
4412
|
-
const x = C(
|
|
4415
|
+
}, L = (Y, h) => {
|
|
4416
|
+
const x = C(p, f);
|
|
4413
4417
|
if (h === "forward") {
|
|
4414
|
-
for (let
|
|
4415
|
-
const
|
|
4416
|
-
if (!O(
|
|
4417
|
-
_
|
|
4418
|
+
for (let _ = Y; _ <= x; _++) {
|
|
4419
|
+
const $ = new Date(p, f, _);
|
|
4420
|
+
if (!O($)) {
|
|
4421
|
+
R(_);
|
|
4418
4422
|
return;
|
|
4419
4423
|
}
|
|
4420
4424
|
}
|
|
4421
|
-
|
|
4422
|
-
|
|
4425
|
+
k(), setTimeout(() => {
|
|
4426
|
+
L(1, "forward");
|
|
4423
4427
|
}, 0);
|
|
4424
4428
|
} else {
|
|
4425
|
-
for (let P =
|
|
4426
|
-
const
|
|
4427
|
-
if (!O(
|
|
4428
|
-
|
|
4429
|
+
for (let P = Y; P >= 1; P--) {
|
|
4430
|
+
const U = new Date(p, f, P);
|
|
4431
|
+
if (!O(U)) {
|
|
4432
|
+
R(P);
|
|
4429
4433
|
return;
|
|
4430
4434
|
}
|
|
4431
4435
|
}
|
|
4432
|
-
const
|
|
4433
|
-
|
|
4434
|
-
|
|
4436
|
+
const _ = f === 0 ? p - 1 : p, $ = f === 0 ? 11 : f - 1, j = C(_, $);
|
|
4437
|
+
D(), setTimeout(() => {
|
|
4438
|
+
L(j, "backward");
|
|
4435
4439
|
}, 0);
|
|
4436
4440
|
}
|
|
4437
|
-
},
|
|
4438
|
-
const
|
|
4439
|
-
for (let
|
|
4441
|
+
}, V = (() => {
|
|
4442
|
+
const Y = C(p, f), h = b(p, f), x = [];
|
|
4443
|
+
for (let _ = 0; _ < h; _++)
|
|
4440
4444
|
x.push(null);
|
|
4441
|
-
for (let
|
|
4442
|
-
const
|
|
4443
|
-
x.push(
|
|
4445
|
+
for (let _ = 1; _ <= Y; _++) {
|
|
4446
|
+
const $ = new Date(p, f, _);
|
|
4447
|
+
x.push($);
|
|
4444
4448
|
}
|
|
4445
4449
|
return x;
|
|
4446
|
-
})(),
|
|
4447
|
-
let
|
|
4448
|
-
|
|
4449
|
-
if (
|
|
4450
|
-
for (;
|
|
4451
|
-
|
|
4452
|
-
|
|
4450
|
+
})(), I = [];
|
|
4451
|
+
let F = [];
|
|
4452
|
+
V.forEach((Y, h) => {
|
|
4453
|
+
if (F.push(Y), F.length === 7 || h === V.length - 1) {
|
|
4454
|
+
for (; F.length < 7; )
|
|
4455
|
+
F.push(null);
|
|
4456
|
+
I.push(F), F = [];
|
|
4453
4457
|
}
|
|
4454
4458
|
}), re(() => {
|
|
4455
|
-
var
|
|
4456
|
-
if (
|
|
4457
|
-
const h =
|
|
4458
|
-
(x) => x !== null && x.getDate() ===
|
|
4459
|
+
var Y;
|
|
4460
|
+
if (d !== null) {
|
|
4461
|
+
const h = V.findIndex(
|
|
4462
|
+
(x) => x !== null && x.getDate() === d
|
|
4459
4463
|
);
|
|
4460
|
-
h !== -1 && E.current[h] && ((
|
|
4464
|
+
h !== -1 && E.current[h] && ((Y = E.current[h]) == null || Y.focus());
|
|
4461
4465
|
}
|
|
4462
|
-
}, [f,
|
|
4466
|
+
}, [f, p, d, V]);
|
|
4463
4467
|
const z = {
|
|
4464
4468
|
label: "smp-datepickercalendar-label",
|
|
4465
4469
|
wrapper: `smp-datepickercalendar ${ys["smp-datepickercalendar-position"]}`,
|
|
4466
4470
|
calendar: "smp-datepickercalendar",
|
|
4467
4471
|
table: "smp-datepickercalendar-table",
|
|
4468
4472
|
th: "smp-datepickercalendar-th",
|
|
4469
|
-
td: (
|
|
4470
|
-
${
|
|
4473
|
+
td: (Y, h, x, _) => `smp-datepickercalendar-td
|
|
4474
|
+
${Y ? "smp-datepickercalendar-td-today" : ""}
|
|
4471
4475
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4472
4476
|
${x ? "smp-datepickercalendar-td-focused" : ""}
|
|
4473
|
-
${
|
|
4474
|
-
}, J = () => `${T[f]} ${
|
|
4477
|
+
${_ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4478
|
+
}, J = () => `${T[f]} ${p.toString()}`;
|
|
4475
4479
|
return /* @__PURE__ */ g.jsxs(
|
|
4476
4480
|
"div",
|
|
4477
4481
|
{
|
|
@@ -4495,7 +4499,7 @@ function bs({
|
|
|
4495
4499
|
/* @__PURE__ */ g.jsx(
|
|
4496
4500
|
De,
|
|
4497
4501
|
{
|
|
4498
|
-
onClick:
|
|
4502
|
+
onClick: D,
|
|
4499
4503
|
ariaLabel: a(Ct.PREVIOUS_MONTH),
|
|
4500
4504
|
optionalDisplayValue: "<",
|
|
4501
4505
|
appearance: "ghost",
|
|
@@ -4514,7 +4518,7 @@ function bs({
|
|
|
4514
4518
|
/* @__PURE__ */ g.jsx(
|
|
4515
4519
|
De,
|
|
4516
4520
|
{
|
|
4517
|
-
onClick:
|
|
4521
|
+
onClick: k,
|
|
4518
4522
|
ariaLabel: a(Ct.NEXT_MONTH),
|
|
4519
4523
|
bindValue: ">",
|
|
4520
4524
|
optionalDisplayValue: ">",
|
|
@@ -4530,21 +4534,21 @@ function bs({
|
|
|
4530
4534
|
{
|
|
4531
4535
|
ref: S,
|
|
4532
4536
|
role: "grid",
|
|
4533
|
-
"aria-label": `${a(Oe.CALENDAR_FOR)} ${T[f]} ${
|
|
4537
|
+
"aria-label": `${a(Oe.CALENDAR_FOR)} ${T[f]} ${p}`,
|
|
4534
4538
|
className: z.table,
|
|
4535
4539
|
children: [
|
|
4536
|
-
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: w.map((
|
|
4540
|
+
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: w.map((Y) => /* @__PURE__ */ g.jsx(
|
|
4537
4541
|
"th",
|
|
4538
4542
|
{
|
|
4539
4543
|
scope: "col",
|
|
4540
|
-
abbr:
|
|
4544
|
+
abbr: Y.full,
|
|
4541
4545
|
className: z.th,
|
|
4542
|
-
children:
|
|
4546
|
+
children: Y.value
|
|
4543
4547
|
},
|
|
4544
|
-
|
|
4548
|
+
Y.value
|
|
4545
4549
|
)) }) }),
|
|
4546
|
-
/* @__PURE__ */ g.jsx("tbody", { children:
|
|
4547
|
-
const
|
|
4550
|
+
/* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((x, _) => {
|
|
4551
|
+
const $ = h * 7 + _;
|
|
4548
4552
|
if (x === null)
|
|
4549
4553
|
return /* @__PURE__ */ g.jsx(
|
|
4550
4554
|
"td",
|
|
@@ -4556,32 +4560,32 @@ function bs({
|
|
|
4556
4560
|
!0
|
|
4557
4561
|
)
|
|
4558
4562
|
},
|
|
4559
|
-
`empty-${
|
|
4563
|
+
`empty-${_}`
|
|
4560
4564
|
);
|
|
4561
|
-
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(),
|
|
4565
|
+
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(), U = d === x.getDate(), B = O(x);
|
|
4562
4566
|
return /* @__PURE__ */ g.jsx(
|
|
4563
4567
|
"td",
|
|
4564
4568
|
{
|
|
4565
4569
|
role: "gridcell",
|
|
4566
4570
|
"aria-selected": P,
|
|
4567
|
-
tabIndex:
|
|
4568
|
-
onClick: () =>
|
|
4569
|
-
onKeyDown: (W) =>
|
|
4571
|
+
tabIndex: U ? 0 : -1,
|
|
4572
|
+
onClick: () => v(x),
|
|
4573
|
+
onKeyDown: (W) => N(W, $),
|
|
4570
4574
|
"aria-label": `${x.getDate()} ${T[x.getMonth()]} ${x.getFullYear()}`,
|
|
4571
4575
|
"data-selected": P,
|
|
4572
4576
|
"aria-disabled": B,
|
|
4573
4577
|
ref: (W) => {
|
|
4574
|
-
E.current[
|
|
4578
|
+
E.current[$] = W;
|
|
4575
4579
|
},
|
|
4576
4580
|
className: z.td(
|
|
4577
4581
|
j,
|
|
4578
4582
|
P,
|
|
4579
|
-
|
|
4583
|
+
U,
|
|
4580
4584
|
B
|
|
4581
4585
|
),
|
|
4582
4586
|
children: x.getDate()
|
|
4583
4587
|
},
|
|
4584
|
-
`day-${
|
|
4588
|
+
`day-${_}`
|
|
4585
4589
|
);
|
|
4586
4590
|
}) }, `week-${h}`)) })
|
|
4587
4591
|
]
|
|
@@ -4599,45 +4603,45 @@ const vs = ({
|
|
|
4599
4603
|
isEditable: s = !0,
|
|
4600
4604
|
...a
|
|
4601
4605
|
}) => {
|
|
4602
|
-
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u,
|
|
4606
|
+
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u, p] = G(""), { anchorRef: m, targetRef: d } = ht({
|
|
4603
4607
|
position: "bottom",
|
|
4604
4608
|
enabled: o
|
|
4605
4609
|
}), y = ue(() => {
|
|
4606
|
-
var
|
|
4607
|
-
l(!1), (
|
|
4610
|
+
var b;
|
|
4611
|
+
l(!1), (b = i == null ? void 0 : i.current) == null || b.focus();
|
|
4608
4612
|
}, []);
|
|
4609
|
-
gt([
|
|
4613
|
+
gt([d, m], o, () => {
|
|
4610
4614
|
y();
|
|
4611
|
-
}), kt(o,
|
|
4612
|
-
const { format: S, getCurrentLanguage: E } =
|
|
4613
|
-
(
|
|
4614
|
-
const
|
|
4615
|
+
}), kt(o, d);
|
|
4616
|
+
const { format: S, getCurrentLanguage: E } = Ae(), T = ue(
|
|
4617
|
+
(b) => {
|
|
4618
|
+
const R = b.length > 5 && En(b, E()) || b, N = S(R, void 0, void 0, {
|
|
4615
4619
|
type: "date"
|
|
4616
|
-
}),
|
|
4620
|
+
}), L = typeof R != "string", A = L && R.toISOString().substring(0, 10) || "";
|
|
4617
4621
|
return {
|
|
4618
|
-
isValid:
|
|
4619
|
-
formattedDate:
|
|
4620
|
-
isoDate:
|
|
4621
|
-
normalizedDate:
|
|
4622
|
+
isValid: L,
|
|
4623
|
+
formattedDate: N,
|
|
4624
|
+
isoDate: A,
|
|
4625
|
+
normalizedDate: R
|
|
4622
4626
|
};
|
|
4623
4627
|
},
|
|
4624
4628
|
[E, S]
|
|
4625
4629
|
);
|
|
4626
4630
|
re(() => {
|
|
4627
|
-
const { formattedDate:
|
|
4628
|
-
f(
|
|
4631
|
+
const { formattedDate: b, isoDate: R, isValid: N } = T(r);
|
|
4632
|
+
f(N && R || r), p(N && b || r);
|
|
4629
4633
|
}, [r, S, T]);
|
|
4630
|
-
const w = () => l((
|
|
4631
|
-
|
|
4632
|
-
},
|
|
4633
|
-
|
|
4634
|
-
},
|
|
4635
|
-
const { isoDate:
|
|
4636
|
-
t && t(
|
|
4637
|
-
},
|
|
4638
|
-
|
|
4639
|
-
}, C = (
|
|
4640
|
-
|
|
4634
|
+
const w = () => l((b) => !b), O = () => {
|
|
4635
|
+
D(u);
|
|
4636
|
+
}, v = (b) => {
|
|
4637
|
+
D(b), y();
|
|
4638
|
+
}, D = (b) => {
|
|
4639
|
+
const { isoDate: R, isValid: N } = T(b);
|
|
4640
|
+
t && t(N && R || b);
|
|
4641
|
+
}, k = (b) => {
|
|
4642
|
+
p(b);
|
|
4643
|
+
}, C = (b) => {
|
|
4644
|
+
b.key === "Enter" && (b.preventDefault(), D(u));
|
|
4641
4645
|
};
|
|
4642
4646
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4643
4647
|
/* @__PURE__ */ g.jsx(
|
|
@@ -4647,7 +4651,7 @@ const vs = ({
|
|
|
4647
4651
|
bindValue: u,
|
|
4648
4652
|
placeholder: e,
|
|
4649
4653
|
onBlur: O,
|
|
4650
|
-
onChange:
|
|
4654
|
+
onChange: k,
|
|
4651
4655
|
onKeyDown: C,
|
|
4652
4656
|
shapeIcon: "calendar",
|
|
4653
4657
|
onShapeIconClick: w,
|
|
@@ -4662,9 +4666,9 @@ const vs = ({
|
|
|
4662
4666
|
bs,
|
|
4663
4667
|
{
|
|
4664
4668
|
disabledDateRanges: n,
|
|
4665
|
-
onDateChange:
|
|
4666
|
-
initialValue:
|
|
4667
|
-
targetRef:
|
|
4669
|
+
onDateChange: v,
|
|
4670
|
+
initialValue: It(c) && c || "",
|
|
4671
|
+
targetRef: d
|
|
4668
4672
|
}
|
|
4669
4673
|
) })
|
|
4670
4674
|
] });
|
|
@@ -4681,9 +4685,9 @@ const vs = ({
|
|
|
4681
4685
|
error: c,
|
|
4682
4686
|
onOptionsRequest: f,
|
|
4683
4687
|
onChange: u,
|
|
4684
|
-
onBlur:
|
|
4688
|
+
onBlur: p
|
|
4685
4689
|
}) => {
|
|
4686
|
-
const m = r.map((S) => S.bindValue),
|
|
4690
|
+
const m = r.map((S) => S.bindValue), d = (S, E) => {
|
|
4687
4691
|
const T = [...r];
|
|
4688
4692
|
if (S == "")
|
|
4689
4693
|
T.pop();
|
|
@@ -4724,7 +4728,7 @@ const vs = ({
|
|
|
4724
4728
|
bindValue: "",
|
|
4725
4729
|
fun: l,
|
|
4726
4730
|
isEditable: s,
|
|
4727
|
-
onChange:
|
|
4731
|
+
onChange: d,
|
|
4728
4732
|
_changeOnEnter: !0,
|
|
4729
4733
|
listDisplayMode: n,
|
|
4730
4734
|
minimumChars: t,
|
|
@@ -4732,7 +4736,7 @@ const vs = ({
|
|
|
4732
4736
|
onOptionsRequest: f,
|
|
4733
4737
|
_multiActiveIndex: m,
|
|
4734
4738
|
error: c,
|
|
4735
|
-
onBlur:
|
|
4739
|
+
onBlur: p
|
|
4736
4740
|
}
|
|
4737
4741
|
)
|
|
4738
4742
|
]
|
|
@@ -4752,7 +4756,7 @@ const vs = ({
|
|
|
4752
4756
|
}
|
|
4753
4757
|
);
|
|
4754
4758
|
}, ws = ({ ...r }) => {
|
|
4755
|
-
const [e, t] = G(r.bindValue), { translate: n } =
|
|
4759
|
+
const [e, t] = G(r.bindValue), { translate: n } = Ae(), s = (a) => {
|
|
4756
4760
|
var i;
|
|
4757
4761
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4758
4762
|
};
|
|
@@ -4855,86 +4859,86 @@ const ke = (r, e, t) => ({
|
|
|
4855
4859
|
onEnter: o,
|
|
4856
4860
|
...l
|
|
4857
4861
|
}) => {
|
|
4858
|
-
const { getCurrentLanguage: c } =
|
|
4862
|
+
const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar: p, decimalChar: m } = Wr(
|
|
4859
4863
|
() => as(u, s),
|
|
4860
4864
|
[u, s]
|
|
4861
|
-
),
|
|
4862
|
-
(
|
|
4863
|
-
minimumFractionDigits:
|
|
4864
|
-
maximumFractionDigits:
|
|
4865
|
+
), d = ue(
|
|
4866
|
+
(L, A) => new Intl.NumberFormat(u, {
|
|
4867
|
+
minimumFractionDigits: A,
|
|
4868
|
+
maximumFractionDigits: A,
|
|
4865
4869
|
useGrouping: !0
|
|
4866
|
-
}).format(
|
|
4870
|
+
}).format(L),
|
|
4867
4871
|
[u]
|
|
4868
|
-
), y = ue(ls, [
|
|
4869
|
-
a != null ?
|
|
4870
|
-
),
|
|
4872
|
+
), y = ue(ls, [p, m]), S = ue(ss, [r, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [T, w] = G(E), [O, v] = G(
|
|
4873
|
+
a != null ? d(a, T) : ""
|
|
4874
|
+
), D = ce(a ?? null);
|
|
4871
4875
|
re(() => {
|
|
4872
4876
|
if (a == null) {
|
|
4873
|
-
|
|
4877
|
+
v(""), D.current = null;
|
|
4874
4878
|
return;
|
|
4875
4879
|
}
|
|
4876
|
-
const
|
|
4877
|
-
|
|
4878
|
-
}, [a,
|
|
4879
|
-
const
|
|
4880
|
-
(
|
|
4881
|
-
if (
|
|
4882
|
-
|
|
4880
|
+
const L = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, A = L === 0 ? T : L;
|
|
4881
|
+
A !== T && w(A), v(d(a, A)), D.current = a;
|
|
4882
|
+
}, [a, d]);
|
|
4883
|
+
const k = ue(
|
|
4884
|
+
(L, A = !1) => {
|
|
4885
|
+
if (L.trim() === "") {
|
|
4886
|
+
v(""), D.current = null, i == null || i(void 0, ""), A && (o == null || o(void 0));
|
|
4883
4887
|
return;
|
|
4884
4888
|
}
|
|
4885
|
-
const
|
|
4886
|
-
if (isNaN(
|
|
4887
|
-
if (
|
|
4888
|
-
const
|
|
4889
|
-
|
|
4889
|
+
const V = y(L, p, m);
|
|
4890
|
+
if (isNaN(V))
|
|
4891
|
+
if (D.current != null) {
|
|
4892
|
+
const I = d(D.current, T);
|
|
4893
|
+
v(I);
|
|
4890
4894
|
} else
|
|
4891
|
-
|
|
4895
|
+
v("");
|
|
4892
4896
|
else {
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4895
|
-
|
|
4897
|
+
const I = S(V, r, e), F = os(
|
|
4898
|
+
L,
|
|
4899
|
+
p,
|
|
4896
4900
|
m
|
|
4897
4901
|
);
|
|
4898
|
-
w(
|
|
4899
|
-
const z =
|
|
4900
|
-
|
|
4902
|
+
w(F);
|
|
4903
|
+
const z = d(I, F);
|
|
4904
|
+
v(z), D.current = I, i == null || i(I, z), A && (o == null || o(I));
|
|
4901
4905
|
}
|
|
4902
4906
|
},
|
|
4903
4907
|
[
|
|
4904
4908
|
y,
|
|
4905
|
-
|
|
4909
|
+
p,
|
|
4906
4910
|
m,
|
|
4907
4911
|
S,
|
|
4908
4912
|
r,
|
|
4909
4913
|
e,
|
|
4910
|
-
|
|
4914
|
+
d,
|
|
4911
4915
|
i,
|
|
4912
4916
|
o,
|
|
4913
4917
|
T
|
|
4914
4918
|
]
|
|
4915
|
-
), C = (
|
|
4916
|
-
if (
|
|
4917
|
-
|
|
4919
|
+
), C = (L) => v(L), b = () => k(O), R = (L) => {
|
|
4920
|
+
if (L.key === "Enter") {
|
|
4921
|
+
L.preventDefault(), k(O, !0);
|
|
4918
4922
|
return;
|
|
4919
4923
|
}
|
|
4920
|
-
if (
|
|
4921
|
-
|
|
4922
|
-
const
|
|
4923
|
-
|
|
4924
|
+
if (L.key === "ArrowUp" || L.key === "ArrowDown") {
|
|
4925
|
+
L.preventDefault();
|
|
4926
|
+
const A = L.key === "ArrowUp" ? 1 : -1, V = D.current ?? 0, I = S(V + A * t, r, e);
|
|
4927
|
+
k(d(I, T));
|
|
4924
4928
|
}
|
|
4925
|
-
},
|
|
4926
|
-
if (
|
|
4927
|
-
|
|
4928
|
-
const
|
|
4929
|
-
|
|
4929
|
+
}, N = (L) => {
|
|
4930
|
+
if (!L.currentTarget.contains(document.activeElement)) return;
|
|
4931
|
+
L.preventDefault();
|
|
4932
|
+
const A = L.deltaY < 0 ? 1 : -1, V = D.current ?? 0, I = S(V + A * t, r, e);
|
|
4933
|
+
k(d(I, T));
|
|
4930
4934
|
};
|
|
4931
|
-
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel:
|
|
4935
|
+
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: N, children: /* @__PURE__ */ g.jsx(
|
|
4932
4936
|
Le,
|
|
4933
4937
|
{
|
|
4934
4938
|
...l,
|
|
4935
4939
|
"aria-valuemin": r,
|
|
4936
4940
|
"aria-valuemax": e,
|
|
4937
|
-
"aria-valuenow":
|
|
4941
|
+
"aria-valuenow": D.current ?? void 0,
|
|
4938
4942
|
bindValue: O,
|
|
4939
4943
|
inputType: "text",
|
|
4940
4944
|
inputMode: n,
|
|
@@ -4942,8 +4946,8 @@ const ke = (r, e, t) => ({
|
|
|
4942
4946
|
max: e,
|
|
4943
4947
|
step: t,
|
|
4944
4948
|
onChange: C,
|
|
4945
|
-
onBlur:
|
|
4946
|
-
onKeyDown:
|
|
4949
|
+
onBlur: b,
|
|
4950
|
+
onKeyDown: R
|
|
4947
4951
|
}
|
|
4948
4952
|
) });
|
|
4949
4953
|
};
|
|
@@ -5003,12 +5007,12 @@ const _s = ({
|
|
|
5003
5007
|
helperText: c,
|
|
5004
5008
|
error: f,
|
|
5005
5009
|
onBlur: u,
|
|
5006
|
-
onKeyDown:
|
|
5010
|
+
onKeyDown: p,
|
|
5007
5011
|
rows: m = 10,
|
|
5008
|
-
cols:
|
|
5012
|
+
cols: d = 150
|
|
5009
5013
|
}) => {
|
|
5010
|
-
const y = Re(), S = `${y}-helper`, E = f ? "danger" : s, T = c || !!f, w = (
|
|
5011
|
-
t == null || t(
|
|
5014
|
+
const y = Re(), S = `${y}-helper`, E = f ? "danger" : s, T = c || !!f, w = (v) => {
|
|
5015
|
+
t == null || t(v.target.value);
|
|
5012
5016
|
}, O = {
|
|
5013
5017
|
wrapper: "smp-textarea-wrapper",
|
|
5014
5018
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
@@ -5026,12 +5030,12 @@ const _s = ({
|
|
|
5026
5030
|
className: O.container,
|
|
5027
5031
|
disabled: r,
|
|
5028
5032
|
readOnly: !i,
|
|
5029
|
-
onKeyDown:
|
|
5033
|
+
onKeyDown: p,
|
|
5030
5034
|
"aria-label": o ? void 0 : l,
|
|
5031
5035
|
"aria-labelledby": o ? y : void 0,
|
|
5032
5036
|
"aria-describedby": T ? S : void 0,
|
|
5033
5037
|
rows: m,
|
|
5034
|
-
cols:
|
|
5038
|
+
cols: d
|
|
5035
5039
|
}
|
|
5036
5040
|
),
|
|
5037
5041
|
T && /* @__PURE__ */ g.jsx(
|
|
@@ -5070,13 +5074,13 @@ const rt = {
|
|
|
5070
5074
|
const u = {
|
|
5071
5075
|
container: `${rt["smp-radio"]} ${t == Lt.LINE_DIRECTION ? rt["smp-radio-horizontal"] : ""}`,
|
|
5072
5076
|
option: `${rt["smp-radio-element"]} ${r ? rt["smp-radio-disabled"] : ""}`
|
|
5073
|
-
},
|
|
5077
|
+
}, p = () => {
|
|
5074
5078
|
var y;
|
|
5075
5079
|
r || (y = o.onBlur) == null || y.call(o);
|
|
5076
5080
|
}, m = (y) => {
|
|
5077
5081
|
var S;
|
|
5078
5082
|
r || (S = o.onChange) == null || S.call(o, y.id, y.label);
|
|
5079
|
-
},
|
|
5083
|
+
}, d = Re();
|
|
5080
5084
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, id: f, children: [
|
|
5081
5085
|
i && /* @__PURE__ */ g.jsx(Ce, { label: i, disabled: r, htmlFor: f }),
|
|
5082
5086
|
l == null ? void 0 : l.map((y, S) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
@@ -5084,12 +5088,12 @@ const rt = {
|
|
|
5084
5088
|
"input",
|
|
5085
5089
|
{
|
|
5086
5090
|
type: "radio",
|
|
5087
|
-
name:
|
|
5091
|
+
name: d,
|
|
5088
5092
|
value: y.id,
|
|
5089
5093
|
disabled: r,
|
|
5090
5094
|
checked: y.id === o.bindValue,
|
|
5091
5095
|
onChange: () => m(y),
|
|
5092
|
-
onBlur:
|
|
5096
|
+
onBlur: p
|
|
5093
5097
|
}
|
|
5094
5098
|
),
|
|
5095
5099
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5173,41 +5177,41 @@ const rt = {
|
|
|
5173
5177
|
isEditable: n = !0,
|
|
5174
5178
|
...s
|
|
5175
5179
|
}) => {
|
|
5176
|
-
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef:
|
|
5180
|
+
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef: p, targetRef: m } = ht({
|
|
5177
5181
|
position: "bottom",
|
|
5178
5182
|
enabled: i
|
|
5179
|
-
}),
|
|
5180
|
-
var
|
|
5181
|
-
o(!1), (
|
|
5183
|
+
}), d = ue(() => {
|
|
5184
|
+
var v;
|
|
5185
|
+
o(!1), (v = a == null ? void 0 : a.current) == null || v.focus();
|
|
5182
5186
|
}, []);
|
|
5183
|
-
gt([m,
|
|
5184
|
-
const
|
|
5185
|
-
c(
|
|
5187
|
+
gt([m, p], i, () => o(!1)), kt(i, m), re(() => {
|
|
5188
|
+
const v = r || "", D = Or(v) ? v : r || "";
|
|
5189
|
+
c(v), u(D);
|
|
5186
5190
|
}, [r]), re(() => {
|
|
5187
|
-
const
|
|
5188
|
-
|
|
5191
|
+
const v = (D) => {
|
|
5192
|
+
D.key === "Escape" && o(!1);
|
|
5189
5193
|
};
|
|
5190
|
-
return i && document.addEventListener("keydown",
|
|
5191
|
-
document.removeEventListener("keydown",
|
|
5194
|
+
return i && document.addEventListener("keydown", v), () => {
|
|
5195
|
+
document.removeEventListener("keydown", v);
|
|
5192
5196
|
};
|
|
5193
5197
|
}, [i]);
|
|
5194
5198
|
const y = () => {
|
|
5195
|
-
n && o((
|
|
5196
|
-
}, S = (
|
|
5197
|
-
u(
|
|
5198
|
-
}, E = (
|
|
5199
|
-
const C = $s(
|
|
5200
|
-
c(C), u(C), t == null || t(C),
|
|
5199
|
+
n && o((v) => !v);
|
|
5200
|
+
}, S = (v) => {
|
|
5201
|
+
u(v);
|
|
5202
|
+
}, E = (v, D, k) => {
|
|
5203
|
+
const C = $s(v, D, k);
|
|
5204
|
+
c(C), u(C), t == null || t(C), d();
|
|
5201
5205
|
}, T = () => {
|
|
5202
5206
|
O(f);
|
|
5203
|
-
}, w = (
|
|
5204
|
-
|
|
5205
|
-
}, O = (
|
|
5206
|
-
if (
|
|
5207
|
+
}, w = (v) => {
|
|
5208
|
+
v.key === "Enter" && (v.preventDefault(), O(f));
|
|
5209
|
+
}, O = (v) => {
|
|
5210
|
+
if (v.trim() === "") {
|
|
5207
5211
|
c(""), u(""), t == null || t("");
|
|
5208
5212
|
return;
|
|
5209
5213
|
}
|
|
5210
|
-
Or(
|
|
5214
|
+
Or(v) ? (c(v), u(v), t == null || t(v)) : u(v);
|
|
5211
5215
|
};
|
|
5212
5216
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5213
5217
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5222,7 +5226,7 @@ const rt = {
|
|
|
5222
5226
|
shapeIcon: "clock",
|
|
5223
5227
|
onShapeIconClick: y,
|
|
5224
5228
|
isEditable: n,
|
|
5225
|
-
ref:
|
|
5229
|
+
ref: p,
|
|
5226
5230
|
inputRef: a
|
|
5227
5231
|
}
|
|
5228
5232
|
),
|
|
@@ -5276,7 +5280,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5276
5280
|
}
|
|
5277
5281
|
}
|
|
5278
5282
|
]
|
|
5279
|
-
]),
|
|
5283
|
+
]), As = {
|
|
5280
5284
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5281
5285
|
}, _e = ({
|
|
5282
5286
|
decode: r,
|
|
@@ -5291,9 +5295,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5291
5295
|
options: c,
|
|
5292
5296
|
onChange: f,
|
|
5293
5297
|
onClick: u,
|
|
5294
|
-
onEnter:
|
|
5298
|
+
onEnter: p,
|
|
5295
5299
|
onBlur: m,
|
|
5296
|
-
onOptionsRequest:
|
|
5300
|
+
onOptionsRequest: d,
|
|
5297
5301
|
onContextMenu: y,
|
|
5298
5302
|
isEditable: S
|
|
5299
5303
|
}) => {
|
|
@@ -5305,31 +5309,31 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5305
5309
|
fun: a
|
|
5306
5310
|
}, T = {
|
|
5307
5311
|
onBlur: m,
|
|
5308
|
-
onOptionsRequest:
|
|
5312
|
+
onOptionsRequest: d,
|
|
5309
5313
|
fun: a,
|
|
5310
5314
|
icon: s,
|
|
5311
5315
|
tooltip: l,
|
|
5312
5316
|
label: o,
|
|
5313
5317
|
isEditable: S,
|
|
5314
5318
|
...n
|
|
5315
|
-
}, w = (
|
|
5316
|
-
|
|
5317
|
-
new Ge(t,
|
|
5318
|
-
),
|
|
5319
|
+
}, w = (b, R, N) => xn(t) ? ke(b, new ct(t, R).getLegacyValue()) : Sn(t) ? ke(b, new pt(t, R).getLegacyValue()) : ke(b, R, N), O = (b, R) => ke(
|
|
5320
|
+
b,
|
|
5321
|
+
new Ge(t, R, ".").getLegacyValue()
|
|
5322
|
+
), v = (b) => ke(E, new lt(t, b).getLegacyValue()), D = (b) => Ts(E, b), k = () => {
|
|
5319
5323
|
switch (e) {
|
|
5320
5324
|
case te.AUTOCOMPLETE: {
|
|
5321
|
-
const
|
|
5325
|
+
const b = {
|
|
5322
5326
|
...T,
|
|
5323
5327
|
bindValue: t.k,
|
|
5324
5328
|
optionalDisplayValue: r,
|
|
5325
|
-
onChange: (
|
|
5326
|
-
f == null || f(w(E,
|
|
5329
|
+
onChange: (R, N) => {
|
|
5330
|
+
f == null || f(w(E, R, N));
|
|
5327
5331
|
}
|
|
5328
5332
|
};
|
|
5329
|
-
return /* @__PURE__ */ g.jsx(kr, { ...
|
|
5333
|
+
return /* @__PURE__ */ g.jsx(kr, { ...b });
|
|
5330
5334
|
}
|
|
5331
5335
|
case te.BUTTON: {
|
|
5332
|
-
const
|
|
5336
|
+
const b = {
|
|
5333
5337
|
...T,
|
|
5334
5338
|
bindValue: t.k,
|
|
5335
5339
|
optionalDisplayValue: n != null && n.label && typeof n.label == "string" ? n.label : void 0,
|
|
@@ -5338,63 +5342,63 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5338
5342
|
u == null || u(w(E, t.k));
|
|
5339
5343
|
}
|
|
5340
5344
|
};
|
|
5341
|
-
return /* @__PURE__ */ g.jsx(De, { ...
|
|
5345
|
+
return /* @__PURE__ */ g.jsx(De, { ...b });
|
|
5342
5346
|
}
|
|
5343
5347
|
case te.BUTTON_LIST: {
|
|
5344
|
-
const
|
|
5348
|
+
const b = {
|
|
5345
5349
|
...T,
|
|
5346
5350
|
options: c,
|
|
5347
|
-
onClick: (
|
|
5348
|
-
const
|
|
5349
|
-
u == null || u(w(
|
|
5351
|
+
onClick: (R, N) => {
|
|
5352
|
+
const L = { ...E, fun: N };
|
|
5353
|
+
u == null || u(w(L, R));
|
|
5350
5354
|
}
|
|
5351
5355
|
};
|
|
5352
|
-
return /* @__PURE__ */ g.jsx(ps, { ...
|
|
5356
|
+
return /* @__PURE__ */ g.jsx(ps, { ...b });
|
|
5353
5357
|
}
|
|
5354
5358
|
case te.CHIP: {
|
|
5355
|
-
const
|
|
5359
|
+
const b = {
|
|
5356
5360
|
...T,
|
|
5357
5361
|
elements: Tr(E)
|
|
5358
5362
|
};
|
|
5359
|
-
return /* @__PURE__ */ g.jsx(Nt, { ...
|
|
5363
|
+
return /* @__PURE__ */ g.jsx(Nt, { ...b });
|
|
5360
5364
|
}
|
|
5361
5365
|
case te.CHECKBOX:
|
|
5362
5366
|
case te.SWITCH: {
|
|
5363
|
-
const
|
|
5367
|
+
const b = e === te.SWITCH, R = {
|
|
5364
5368
|
...T,
|
|
5365
5369
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5366
5370
|
optionalDisplayValue: r,
|
|
5367
|
-
onChange: (
|
|
5368
|
-
f == null || f(
|
|
5371
|
+
onChange: (N) => {
|
|
5372
|
+
f == null || f(v(N));
|
|
5369
5373
|
},
|
|
5370
|
-
...
|
|
5374
|
+
...b && { variant: "switch" }
|
|
5371
5375
|
};
|
|
5372
|
-
return /* @__PURE__ */ g.jsx(ms, { ...
|
|
5376
|
+
return /* @__PURE__ */ g.jsx(ms, { ...R });
|
|
5373
5377
|
}
|
|
5374
5378
|
case te.COMBOBOX: {
|
|
5375
|
-
const
|
|
5379
|
+
const b = {
|
|
5376
5380
|
...T,
|
|
5377
5381
|
bindValue: t.k,
|
|
5378
5382
|
optionalDisplayValue: r,
|
|
5379
|
-
onChange: (
|
|
5380
|
-
f == null || f(w(E,
|
|
5383
|
+
onChange: (R, N) => {
|
|
5384
|
+
f == null || f(w(E, R, N));
|
|
5381
5385
|
}
|
|
5382
5386
|
};
|
|
5383
|
-
return /* @__PURE__ */ g.jsx(gs, { ...
|
|
5387
|
+
return /* @__PURE__ */ g.jsx(gs, { ...b });
|
|
5384
5388
|
}
|
|
5385
5389
|
case te.DATE: {
|
|
5386
|
-
const
|
|
5390
|
+
const b = {
|
|
5387
5391
|
...T,
|
|
5388
5392
|
bindValue: ct.fromDataObj(t).getValue(),
|
|
5389
|
-
onChange: (
|
|
5390
|
-
f == null || f(w(E,
|
|
5393
|
+
onChange: (R) => {
|
|
5394
|
+
f == null || f(w(E, R));
|
|
5391
5395
|
}
|
|
5392
5396
|
};
|
|
5393
|
-
return /* @__PURE__ */ g.jsx(vs, { ...
|
|
5397
|
+
return /* @__PURE__ */ g.jsx(vs, { ...b });
|
|
5394
5398
|
}
|
|
5395
5399
|
case te.ICON:
|
|
5396
5400
|
case te.IMAGE: {
|
|
5397
|
-
const
|
|
5401
|
+
const b = {
|
|
5398
5402
|
...T,
|
|
5399
5403
|
icon: s,
|
|
5400
5404
|
placeholderIcon: i,
|
|
@@ -5403,110 +5407,110 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5403
5407
|
u == null || u(w(E, t.k));
|
|
5404
5408
|
}
|
|
5405
5409
|
};
|
|
5406
|
-
return /* @__PURE__ */ g.jsx(le, { ...
|
|
5410
|
+
return /* @__PURE__ */ g.jsx(le, { ...b });
|
|
5407
5411
|
}
|
|
5408
5412
|
case te.INPUT_NUMBER: {
|
|
5409
|
-
const
|
|
5413
|
+
const b = {
|
|
5410
5414
|
...T,
|
|
5411
5415
|
bindValue: Ge.fromDataObj(t, ".").getValue(),
|
|
5412
|
-
onChange: (
|
|
5413
|
-
f == null || f(O(E,
|
|
5416
|
+
onChange: (R) => {
|
|
5417
|
+
f == null || f(O(E, R));
|
|
5414
5418
|
}
|
|
5415
5419
|
};
|
|
5416
|
-
return /* @__PURE__ */ g.jsx(Os, { ...
|
|
5420
|
+
return /* @__PURE__ */ g.jsx(Os, { ...b });
|
|
5417
5421
|
}
|
|
5418
5422
|
case te.MEMO: {
|
|
5419
|
-
const
|
|
5423
|
+
const b = {
|
|
5420
5424
|
...T,
|
|
5421
5425
|
bindValue: t.k,
|
|
5422
5426
|
optionalDisplayValue: r,
|
|
5423
|
-
onChange: (
|
|
5424
|
-
f == null || f(w(E,
|
|
5427
|
+
onChange: (R) => {
|
|
5428
|
+
f == null || f(w(E, R));
|
|
5425
5429
|
}
|
|
5426
5430
|
};
|
|
5427
|
-
return /* @__PURE__ */ g.jsx(_s, { ...
|
|
5431
|
+
return /* @__PURE__ */ g.jsx(_s, { ...b });
|
|
5428
5432
|
}
|
|
5429
5433
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5430
|
-
const
|
|
5434
|
+
const b = {
|
|
5431
5435
|
...T,
|
|
5432
5436
|
elements: Tr(E),
|
|
5433
|
-
onChange: (
|
|
5434
|
-
f == null || f(R
|
|
5437
|
+
onChange: (R) => {
|
|
5438
|
+
f == null || f(D(R));
|
|
5435
5439
|
}
|
|
5436
5440
|
};
|
|
5437
|
-
return /* @__PURE__ */ g.jsx(xs, { ...
|
|
5441
|
+
return /* @__PURE__ */ g.jsx(xs, { ...b });
|
|
5438
5442
|
}
|
|
5439
5443
|
case te.PASSWORD: {
|
|
5440
|
-
const
|
|
5444
|
+
const b = {
|
|
5441
5445
|
...T,
|
|
5442
5446
|
bindValue: t.k,
|
|
5443
|
-
onChange: (
|
|
5444
|
-
f == null || f(w(E,
|
|
5447
|
+
onChange: (R) => {
|
|
5448
|
+
f == null || f(w(E, R));
|
|
5445
5449
|
}
|
|
5446
5450
|
};
|
|
5447
|
-
return /* @__PURE__ */ g.jsx(Ss, { ...
|
|
5451
|
+
return /* @__PURE__ */ g.jsx(Ss, { ...b });
|
|
5448
5452
|
}
|
|
5449
5453
|
case te.RADIO: {
|
|
5450
|
-
const
|
|
5454
|
+
const b = {
|
|
5451
5455
|
...T,
|
|
5452
5456
|
bindValue: t.k,
|
|
5453
|
-
onChange: (
|
|
5454
|
-
f == null || f(w(E,
|
|
5457
|
+
onChange: (R, N) => {
|
|
5458
|
+
f == null || f(w(E, R, N));
|
|
5455
5459
|
}
|
|
5456
5460
|
};
|
|
5457
|
-
return /* @__PURE__ */ g.jsx(Rs, { ...
|
|
5461
|
+
return /* @__PURE__ */ g.jsx(Rs, { ...b });
|
|
5458
5462
|
}
|
|
5459
5463
|
case te.SPOTLIGHT: {
|
|
5460
|
-
const
|
|
5464
|
+
const b = {
|
|
5461
5465
|
...T,
|
|
5462
5466
|
bindValue: t.k,
|
|
5463
|
-
onEnter: (
|
|
5464
|
-
|
|
5467
|
+
onEnter: (R) => {
|
|
5468
|
+
p == null || p(w(E, R));
|
|
5465
5469
|
}
|
|
5466
5470
|
};
|
|
5467
|
-
return /* @__PURE__ */ g.jsx(ws, { ...
|
|
5471
|
+
return /* @__PURE__ */ g.jsx(ws, { ...b });
|
|
5468
5472
|
}
|
|
5469
5473
|
case te.TEXT_FIELD: {
|
|
5470
|
-
const
|
|
5474
|
+
const b = {
|
|
5471
5475
|
...T,
|
|
5472
5476
|
bindValue: t.k,
|
|
5473
5477
|
optionalDisplayValue: r,
|
|
5474
|
-
onChange: (
|
|
5475
|
-
f == null || f(w(E,
|
|
5478
|
+
onChange: (R) => {
|
|
5479
|
+
f == null || f(w(E, R));
|
|
5476
5480
|
}
|
|
5477
5481
|
};
|
|
5478
|
-
return /* @__PURE__ */ g.jsx(Le, { ...
|
|
5482
|
+
return /* @__PURE__ */ g.jsx(Le, { ...b });
|
|
5479
5483
|
}
|
|
5480
5484
|
case te.TIME: {
|
|
5481
|
-
const
|
|
5485
|
+
const b = {
|
|
5482
5486
|
...T,
|
|
5483
5487
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5484
|
-
onChange: (
|
|
5485
|
-
f == null || f(w(E,
|
|
5488
|
+
onChange: (R) => {
|
|
5489
|
+
f == null || f(w(E, R));
|
|
5486
5490
|
}
|
|
5487
5491
|
};
|
|
5488
|
-
return /* @__PURE__ */ g.jsx(Cs, { ...
|
|
5492
|
+
return /* @__PURE__ */ g.jsx(Cs, { ...b });
|
|
5489
5493
|
}
|
|
5490
5494
|
default: {
|
|
5491
|
-
const
|
|
5495
|
+
const b = {
|
|
5492
5496
|
...T,
|
|
5493
5497
|
bindValue: t.k,
|
|
5494
5498
|
optionalDisplayValue: r
|
|
5495
5499
|
};
|
|
5496
|
-
return /* @__PURE__ */ g.jsx(Es, { ...
|
|
5500
|
+
return /* @__PURE__ */ g.jsx(Es, { ...b });
|
|
5497
5501
|
}
|
|
5498
5502
|
}
|
|
5499
5503
|
}, C = {
|
|
5500
|
-
wrapper: `${
|
|
5504
|
+
wrapper: `${As["smp-cell-wrapper"]}`
|
|
5501
5505
|
};
|
|
5502
5506
|
return /* @__PURE__ */ g.jsx(
|
|
5503
5507
|
"span",
|
|
5504
5508
|
{
|
|
5505
5509
|
className: C.wrapper,
|
|
5506
|
-
onContextMenu: (
|
|
5507
|
-
y && l && (
|
|
5510
|
+
onContextMenu: (b) => {
|
|
5511
|
+
y && l && (b.preventDefault(), y(E, b.currentTarget));
|
|
5508
5512
|
},
|
|
5509
|
-
children:
|
|
5513
|
+
children: k()
|
|
5510
5514
|
}
|
|
5511
5515
|
);
|
|
5512
5516
|
}, na = ({
|
|
@@ -5518,21 +5522,21 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5518
5522
|
var o, l;
|
|
5519
5523
|
const [s, a] = G(), i = ue(
|
|
5520
5524
|
(c) => {
|
|
5521
|
-
var u,
|
|
5522
|
-
if (!((u = c.rows) != null && u.length) || !((
|
|
5525
|
+
var u, p;
|
|
5526
|
+
if (!((u = c.rows) != null && u.length) || !((p = c.columns) != null && p.length))
|
|
5523
5527
|
return {};
|
|
5524
5528
|
const f = c.rows[0];
|
|
5525
|
-
return c.columns.filter((m) => m.visible).reduce((m,
|
|
5526
|
-
const y = f.cells[
|
|
5529
|
+
return c.columns.filter((m) => m.visible).reduce((m, d) => {
|
|
5530
|
+
const y = f.cells[d.name], S = {
|
|
5527
5531
|
...y,
|
|
5528
|
-
id:
|
|
5532
|
+
id: d.name,
|
|
5529
5533
|
onChange: (E) => {
|
|
5530
5534
|
a((T) => T && {
|
|
5531
5535
|
...T,
|
|
5532
|
-
[
|
|
5533
|
-
...T[
|
|
5536
|
+
[d.name]: {
|
|
5537
|
+
...T[d.name],
|
|
5534
5538
|
obj: {
|
|
5535
|
-
...T[
|
|
5539
|
+
...T[d.name].obj,
|
|
5536
5540
|
k: E.obj.k
|
|
5537
5541
|
}
|
|
5538
5542
|
}
|
|
@@ -5552,7 +5556,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5552
5556
|
};
|
|
5553
5557
|
return {
|
|
5554
5558
|
...m,
|
|
5555
|
-
[
|
|
5559
|
+
[d.name]: S
|
|
5556
5560
|
};
|
|
5557
5561
|
}, {});
|
|
5558
5562
|
},
|
|
@@ -5561,7 +5565,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5561
5565
|
return re(() => {
|
|
5562
5566
|
r && a(i(r));
|
|
5563
5567
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((c) => /* @__PURE__ */ g.jsx(_e, { ...c })) }) });
|
|
5564
|
-
},
|
|
5568
|
+
}, Is = (r) => {
|
|
5565
5569
|
var e;
|
|
5566
5570
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5567
5571
|
var n, s;
|
|
@@ -5584,83 +5588,83 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5584
5588
|
loadOptions: l,
|
|
5585
5589
|
onContextMenu: c
|
|
5586
5590
|
}) => {
|
|
5587
|
-
var O,
|
|
5588
|
-
const [f, u] = G(), [
|
|
5589
|
-
(
|
|
5590
|
-
var C,
|
|
5591
|
-
if (!((C =
|
|
5591
|
+
var O, v;
|
|
5592
|
+
const [f, u] = G(), [p, m] = G(t ?? !0), d = ce(null), y = s.trim() ? s : "100vh", S = ue(
|
|
5593
|
+
(D) => {
|
|
5594
|
+
var C, b;
|
|
5595
|
+
if (!((C = D == null ? void 0 : D.rows) != null && C.length) || !((b = D == null ? void 0 : D.columns) != null && b.length))
|
|
5592
5596
|
return {};
|
|
5593
|
-
const
|
|
5594
|
-
return
|
|
5595
|
-
const
|
|
5596
|
-
if (
|
|
5597
|
-
return
|
|
5598
|
-
const
|
|
5599
|
-
|
|
5600
|
-
id:
|
|
5601
|
-
onChange: (
|
|
5602
|
-
u((
|
|
5603
|
-
const
|
|
5604
|
-
return
|
|
5597
|
+
const k = D.rows[0];
|
|
5598
|
+
return D.columns.filter((R) => R.visible ?? !0).reduce((R, N) => {
|
|
5599
|
+
const L = k.cells[N.name];
|
|
5600
|
+
if (!L || !p && de(n) && L.shape !== te.BUTTON && L.shape !== te.BUTTON_LIST)
|
|
5601
|
+
return R;
|
|
5602
|
+
const A = {
|
|
5603
|
+
...L,
|
|
5604
|
+
id: N.name,
|
|
5605
|
+
onChange: (V) => {
|
|
5606
|
+
u((I) => {
|
|
5607
|
+
const F = { ...I };
|
|
5608
|
+
return F != null && F[N.name] && (F[N.name].obj.k = V.obj.k), F;
|
|
5605
5609
|
});
|
|
5606
5610
|
},
|
|
5607
|
-
onClick: (
|
|
5608
|
-
|
|
5611
|
+
onClick: (V) => {
|
|
5612
|
+
V.fun && a && a(V);
|
|
5609
5613
|
},
|
|
5610
|
-
onEnter: (
|
|
5611
|
-
i && i(
|
|
5614
|
+
onEnter: (V) => {
|
|
5615
|
+
i && i(V);
|
|
5612
5616
|
},
|
|
5613
|
-
onContextMenu: (
|
|
5614
|
-
c && c(
|
|
5617
|
+
onContextMenu: (V, I) => {
|
|
5618
|
+
c && c(V, I);
|
|
5615
5619
|
}
|
|
5616
5620
|
};
|
|
5617
|
-
return l &&
|
|
5618
|
-
(
|
|
5619
|
-
)), !
|
|
5620
|
-
...
|
|
5621
|
+
return l && L.shape == te.BUTTON_LIST && (A.onOptionsRequest = (V, I) => l(V, I).then(
|
|
5622
|
+
(F) => Is(F)
|
|
5623
|
+
)), !p && de(n) && (A.data = {
|
|
5624
|
+
...A.data,
|
|
5621
5625
|
showText: !1,
|
|
5622
5626
|
justify: "center",
|
|
5623
5627
|
squared: !0
|
|
5624
5628
|
}), {
|
|
5625
|
-
...
|
|
5626
|
-
[
|
|
5629
|
+
...R,
|
|
5630
|
+
[N.name]: A
|
|
5627
5631
|
};
|
|
5628
5632
|
}, {});
|
|
5629
5633
|
},
|
|
5630
|
-
[
|
|
5634
|
+
[p, n, a, i, l, c]
|
|
5631
5635
|
), E = ue(() => {
|
|
5632
5636
|
o == null || o();
|
|
5633
5637
|
}, [o]), T = () => {
|
|
5634
|
-
de(n) ? m((
|
|
5638
|
+
de(n) ? m((D) => !D) : (m(!1), o == null || o());
|
|
5635
5639
|
};
|
|
5636
5640
|
if (re(() => {
|
|
5637
5641
|
u(S(r));
|
|
5638
5642
|
}, [r]), re(() => {
|
|
5639
|
-
if (!
|
|
5643
|
+
if (!d.current)
|
|
5640
5644
|
return;
|
|
5641
5645
|
if (!de(n)) {
|
|
5642
5646
|
u(S(r));
|
|
5643
5647
|
return;
|
|
5644
5648
|
}
|
|
5645
|
-
const
|
|
5649
|
+
const D = getComputedStyle(d.current).getPropertyValue(
|
|
5646
5650
|
"--smp-drawer-slide-transition"
|
|
5647
5651
|
);
|
|
5648
|
-
let
|
|
5649
|
-
|
|
5652
|
+
let k = Number(D);
|
|
5653
|
+
D.endsWith("ms") ? k = parseFloat(D) : D.endsWith("s") && (k = parseFloat(D) * 1e3), setTimeout(() => {
|
|
5650
5654
|
u(S(r));
|
|
5651
|
-
},
|
|
5652
|
-
}, [
|
|
5655
|
+
}, k / 2);
|
|
5656
|
+
}, [p, n]), re(() => {
|
|
5653
5657
|
t !== void 0 && !de(n) && m(t);
|
|
5654
|
-
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((
|
|
5658
|
+
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((v = r.columns) != null && v.length))
|
|
5655
5659
|
return null;
|
|
5656
5660
|
const w = {
|
|
5657
|
-
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${
|
|
5661
|
+
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${p ? "smp-drawer-open" : ""} ${!de(n) && !p ? "smp-drawer-no-border" : ""}`,
|
|
5658
5662
|
container: "smp-drawer-container",
|
|
5659
5663
|
containerHeader: "smp-drawer-container-header",
|
|
5660
|
-
containerIcon: `${
|
|
5664
|
+
containerIcon: `${p ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
5661
5665
|
containerLayout: "smp-drawer-container-layout",
|
|
5662
5666
|
containerLogo: "smp-drawer-container-logo",
|
|
5663
|
-
backdrop: `smp-drawer-backdrop ${
|
|
5667
|
+
backdrop: `smp-drawer-backdrop ${p ? "smp-drawer-backdrop-open" : ""}`
|
|
5664
5668
|
};
|
|
5665
5669
|
return f && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5666
5670
|
!de(n) && /* @__PURE__ */ g.jsx(
|
|
@@ -5675,7 +5679,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5675
5679
|
/* @__PURE__ */ g.jsx(
|
|
5676
5680
|
"aside",
|
|
5677
5681
|
{
|
|
5678
|
-
ref:
|
|
5682
|
+
ref: d,
|
|
5679
5683
|
className: w.drawer,
|
|
5680
5684
|
style: { height: y },
|
|
5681
5685
|
"aria-label": "Drawer",
|
|
@@ -5696,7 +5700,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5696
5700
|
{
|
|
5697
5701
|
icon: de(n) ? "menu_close" : "close",
|
|
5698
5702
|
title: "drawer_icon",
|
|
5699
|
-
rotated: !
|
|
5703
|
+
rotated: !p,
|
|
5700
5704
|
isInteractable: !0,
|
|
5701
5705
|
onClick: T,
|
|
5702
5706
|
width: 20,
|
|
@@ -5704,7 +5708,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5704
5708
|
}
|
|
5705
5709
|
) })
|
|
5706
5710
|
] }),
|
|
5707
|
-
/* @__PURE__ */ g.jsx("div", { className: w.containerLayout, children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((
|
|
5711
|
+
/* @__PURE__ */ g.jsx("div", { className: w.containerLayout, children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((D) => /* @__PURE__ */ g.jsx(_e, { ...D })) }) })
|
|
5708
5712
|
] })
|
|
5709
5713
|
}
|
|
5710
5714
|
)
|
|
@@ -5722,18 +5726,18 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5722
5726
|
IconColName: c,
|
|
5723
5727
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5724
5728
|
NumberFormat: u,
|
|
5725
|
-
ForceUM:
|
|
5729
|
+
ForceUM: p,
|
|
5726
5730
|
UmColName: m,
|
|
5727
|
-
UmColor:
|
|
5731
|
+
UmColor: d = "var(--smp-dashList-color-base)",
|
|
5728
5732
|
ForceValue: y,
|
|
5729
5733
|
ValueColName: S,
|
|
5730
5734
|
ValueColor: E = "var(--smp-dashList-color-base)",
|
|
5731
5735
|
SelectLayout: T = "1",
|
|
5732
5736
|
onClick: w
|
|
5733
5737
|
}) => {
|
|
5734
|
-
const O = "N/A",
|
|
5738
|
+
const O = "N/A", v = (e == null ? void 0 : e.columns) || [], D = (e == null ? void 0 : e.rows) || [], k = D.length > 0, C = "--smp-dashList-color", b = "smp-layout", R = "descr", N = "icon", L = "um", A = "value", V = i || "1em", I = "18px", F = "--smp-dashList-columns", z = "--smp-dashList-fontSize", J = {
|
|
5735
5739
|
dash: (H = "1") => {
|
|
5736
|
-
const Z = h(H), ne = Z, se = x(Z,
|
|
5740
|
+
const Z = h(H), ne = Z, se = x(Z, R), he = x(Z, N), we = x(Z, L), be = x(Z, A);
|
|
5737
5741
|
return {
|
|
5738
5742
|
container: ne,
|
|
5739
5743
|
descr: se,
|
|
@@ -5744,7 +5748,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5744
5748
|
},
|
|
5745
5749
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5746
5750
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5747
|
-
}, { format:
|
|
5751
|
+
}, { format: Y } = Ae(), h = (H) => `${b}-${H}`, x = (H, Z) => `${H}__${Z}`, _ = (H) => `${C}-${H}`, $ = (H) => {
|
|
5748
5752
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5749
5753
|
if (Z.test(H)) {
|
|
5750
5754
|
const se = H.match(Z) || [];
|
|
@@ -5755,25 +5759,25 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5755
5759
|
}, j = (H) => {
|
|
5756
5760
|
if (!u) return H;
|
|
5757
5761
|
const [Z, ne] = P(u).map(
|
|
5758
|
-
(
|
|
5759
|
-
), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he =
|
|
5762
|
+
(Ie) => parseInt(Ie || "0")
|
|
5763
|
+
), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he = Y(H, se, "it");
|
|
5760
5764
|
if (!Z) return he;
|
|
5761
5765
|
const [we, be] = he.split(",");
|
|
5762
5766
|
return we + (be ? `,${be}` : "");
|
|
5763
|
-
}, P = (H) => H.includes(";") ? H.split(";") : [H],
|
|
5767
|
+
}, P = (H) => H.includes(";") ? H.split(";") : [H], U = (H) => {
|
|
5764
5768
|
const Z = (se) => {
|
|
5765
5769
|
var he;
|
|
5766
5770
|
if (se)
|
|
5767
5771
|
return (he = H == null ? void 0 : H.cells[se]) == null ? void 0 : he.obj.k;
|
|
5768
5772
|
}, ne = (se) => {
|
|
5769
5773
|
var he, we;
|
|
5770
|
-
if (!(
|
|
5771
|
-
return (we = (he = H == null ? void 0 : H.cells[
|
|
5774
|
+
if (!(v.length <= se))
|
|
5775
|
+
return (we = (he = H == null ? void 0 : H.cells[v[se].name]) == null ? void 0 : he.obj) == null ? void 0 : we.k;
|
|
5772
5776
|
};
|
|
5773
5777
|
return {
|
|
5774
5778
|
descr: t || Z(n) || ne(2) || "",
|
|
5775
5779
|
icon: l || Z(c) || ne(3) || "",
|
|
5776
|
-
um:
|
|
5780
|
+
um: p || Z(m) || ne(1) || "",
|
|
5777
5781
|
value: y || Z(S) || ne(0) || ""
|
|
5778
5782
|
};
|
|
5779
5783
|
}, B = (H) => {
|
|
@@ -5784,35 +5788,35 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5784
5788
|
const Z = J.dash(H);
|
|
5785
5789
|
return {
|
|
5786
5790
|
className: Z,
|
|
5787
|
-
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${
|
|
5791
|
+
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${R}`),
|
|
5788
5792
|
icon: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5789
5793
|
le,
|
|
5790
5794
|
{
|
|
5791
5795
|
color: f,
|
|
5792
|
-
height:
|
|
5796
|
+
height: I,
|
|
5793
5797
|
icon: ne,
|
|
5794
|
-
width:
|
|
5798
|
+
width: I
|
|
5795
5799
|
}
|
|
5796
|
-
) }, `${H}-${
|
|
5797
|
-
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${
|
|
5798
|
-
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${
|
|
5800
|
+
) }, `${H}-${N}`),
|
|
5801
|
+
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${L}`),
|
|
5802
|
+
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${A}`)
|
|
5799
5803
|
};
|
|
5800
5804
|
})(T), ae = (H) => {
|
|
5801
|
-
const { descr: Z, icon: ne, um: se, value: he } =
|
|
5802
|
-
[
|
|
5803
|
-
[
|
|
5804
|
-
[
|
|
5805
|
-
}, be = [],
|
|
5805
|
+
const { descr: Z, icon: ne, um: se, value: he } = U(H), we = {
|
|
5806
|
+
[_(R)]: $(s),
|
|
5807
|
+
[_(L)]: $(d),
|
|
5808
|
+
[_(A)]: $(E)
|
|
5809
|
+
}, be = [], Ie = j(he);
|
|
5806
5810
|
switch (T) {
|
|
5807
5811
|
case "2":
|
|
5808
5812
|
ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
|
|
5809
|
-
K.value(se ?
|
|
5813
|
+
K.value(se ? Ie + " " + se : Ie)
|
|
5810
5814
|
);
|
|
5811
5815
|
break;
|
|
5812
5816
|
default:
|
|
5813
5817
|
case "1":
|
|
5814
5818
|
be.push(K.descr(Z)), be.push(
|
|
5815
|
-
K.value(se ?
|
|
5819
|
+
K.value(se ? Ie + " " + se : Ie)
|
|
5816
5820
|
);
|
|
5817
5821
|
}
|
|
5818
5822
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -5828,11 +5832,11 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5828
5832
|
},
|
|
5829
5833
|
H.rowId
|
|
5830
5834
|
);
|
|
5831
|
-
},
|
|
5832
|
-
[
|
|
5833
|
-
[z]:
|
|
5835
|
+
}, M = {
|
|
5836
|
+
[F]: String(r),
|
|
5837
|
+
[z]: V
|
|
5834
5838
|
};
|
|
5835
|
-
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style:
|
|
5839
|
+
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? D.map((H) => ae(H)) : O });
|
|
5836
5840
|
}, nt = {
|
|
5837
5841
|
"smp-table": "_smp-table_1qmju_1",
|
|
5838
5842
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -5869,12 +5873,12 @@ const Mr = ({
|
|
|
5869
5873
|
var T;
|
|
5870
5874
|
const [a, i] = G(!1), o = st(r) && !!((T = r.children) != null && T.length), l = r.cells && Object.keys(r.cells).length > 0, c = o, f = t * 20, u = () => {
|
|
5871
5875
|
o && i(!a);
|
|
5872
|
-
},
|
|
5876
|
+
}, p = {
|
|
5873
5877
|
content: `${Te.rowContent} ${o ? Te.clickable : ""}`,
|
|
5874
5878
|
toggle: `${Te.toggle}`,
|
|
5875
5879
|
indent: `${Te.indent}`,
|
|
5876
5880
|
cell: `${Te.cell}`
|
|
5877
|
-
}, m = (w) => /* @__PURE__ */ g.jsx(_e, { ...w }),
|
|
5881
|
+
}, m = (w) => /* @__PURE__ */ g.jsx(_e, { ...w }), d = () => /* @__PURE__ */ g.jsx("span", { className: p.toggle, children: c && /* @__PURE__ */ g.jsx(
|
|
5878
5882
|
le,
|
|
5879
5883
|
{
|
|
5880
5884
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5883,7 +5887,7 @@ const Mr = ({
|
|
|
5883
5887
|
) }), y = () => /* @__PURE__ */ g.jsx(
|
|
5884
5888
|
"span",
|
|
5885
5889
|
{
|
|
5886
|
-
className:
|
|
5890
|
+
className: p.indent,
|
|
5887
5891
|
style: { width: `${f}px` },
|
|
5888
5892
|
"aria-hidden": "true"
|
|
5889
5893
|
}
|
|
@@ -5892,7 +5896,7 @@ const Mr = ({
|
|
|
5892
5896
|
return /* @__PURE__ */ g.jsxs(
|
|
5893
5897
|
"tr",
|
|
5894
5898
|
{
|
|
5895
|
-
className:
|
|
5899
|
+
className: p.content,
|
|
5896
5900
|
onClick: u,
|
|
5897
5901
|
role: o ? "button" : "row",
|
|
5898
5902
|
"aria-expanded": o ? !a : void 0,
|
|
@@ -5911,33 +5915,33 @@ const Mr = ({
|
|
|
5911
5915
|
},
|
|
5912
5916
|
children: [
|
|
5913
5917
|
y(),
|
|
5914
|
-
|
|
5918
|
+
d(),
|
|
5915
5919
|
/* @__PURE__ */ g.jsx("span", { className: Te.rowLabel, children: w })
|
|
5916
5920
|
]
|
|
5917
5921
|
}
|
|
5918
5922
|
),
|
|
5919
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([
|
|
5923
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([v, D]) => /* @__PURE__ */ g.jsx(
|
|
5920
5924
|
"td",
|
|
5921
5925
|
{
|
|
5922
|
-
className:
|
|
5926
|
+
className: p.cell,
|
|
5923
5927
|
style: {
|
|
5924
|
-
width: e[
|
|
5925
|
-
minWidth: e[
|
|
5928
|
+
width: e[v],
|
|
5929
|
+
minWidth: e[v],
|
|
5926
5930
|
height: `${n}px`
|
|
5927
5931
|
},
|
|
5928
5932
|
children: m({
|
|
5929
|
-
...
|
|
5930
|
-
id:
|
|
5933
|
+
...D,
|
|
5934
|
+
id: v
|
|
5931
5935
|
})
|
|
5932
5936
|
},
|
|
5933
|
-
Us(
|
|
5937
|
+
Us(D) || v
|
|
5934
5938
|
))
|
|
5935
5939
|
]
|
|
5936
5940
|
}
|
|
5937
5941
|
);
|
|
5938
5942
|
}, E = () => {
|
|
5939
5943
|
var w;
|
|
5940
|
-
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((w = r.children) == null ? void 0 : w.map((O,
|
|
5944
|
+
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((w = r.children) == null ? void 0 : w.map((O, v) => /* @__PURE__ */ g.jsx(Mr, { row: O, level: t + 1 }, `child-${v}`))) });
|
|
5941
5945
|
};
|
|
5942
5946
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5943
5947
|
S(),
|
|
@@ -6004,42 +6008,42 @@ function Gs(r, e, t, n) {
|
|
|
6004
6008
|
const s = [];
|
|
6005
6009
|
let a = 0;
|
|
6006
6010
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
6007
|
-
function i(u,
|
|
6008
|
-
if (
|
|
6011
|
+
function i(u, p, m) {
|
|
6012
|
+
if (p >= e.length) {
|
|
6009
6013
|
f(u);
|
|
6010
6014
|
return;
|
|
6011
6015
|
}
|
|
6012
|
-
const
|
|
6016
|
+
const d = e[p].column, y = o(u, d);
|
|
6013
6017
|
for (const [S, E] of y) {
|
|
6014
|
-
const T = [...m, S], w = l(T,
|
|
6015
|
-
s.push(c(S, w,
|
|
6018
|
+
const T = [...m, S], w = l(T, p), O = n.has(w);
|
|
6019
|
+
s.push(c(S, w, p, O)), a += t, O && i(E, p + 1, T);
|
|
6016
6020
|
}
|
|
6017
6021
|
}
|
|
6018
|
-
function o(u,
|
|
6019
|
-
var
|
|
6022
|
+
function o(u, p) {
|
|
6023
|
+
var d;
|
|
6020
6024
|
const m = /* @__PURE__ */ new Map();
|
|
6021
6025
|
for (const y of u) {
|
|
6022
|
-
const S = ((
|
|
6026
|
+
const S = ((d = y.cells[p]) == null ? void 0 : d.decode) ?? "N/D";
|
|
6023
6027
|
m.has(S) || m.set(S, []), m.get(S).push(y);
|
|
6024
6028
|
}
|
|
6025
6029
|
return m;
|
|
6026
6030
|
}
|
|
6027
|
-
function l(u,
|
|
6028
|
-
return `group-${u.join("-")}-${
|
|
6031
|
+
function l(u, p) {
|
|
6032
|
+
return `group-${u.join("-")}-${p}`;
|
|
6029
6033
|
}
|
|
6030
|
-
function c(u,
|
|
6034
|
+
function c(u, p, m, d) {
|
|
6031
6035
|
return {
|
|
6032
6036
|
isGroup: !0,
|
|
6033
6037
|
value: u,
|
|
6034
6038
|
cells: {},
|
|
6035
|
-
rowId:
|
|
6039
|
+
rowId: p,
|
|
6036
6040
|
level: m,
|
|
6037
|
-
isExpanded:
|
|
6041
|
+
isExpanded: d
|
|
6038
6042
|
};
|
|
6039
6043
|
}
|
|
6040
6044
|
function f(u) {
|
|
6041
|
-
for (const
|
|
6042
|
-
s.push(
|
|
6045
|
+
for (const p of u)
|
|
6046
|
+
s.push(p), a += t;
|
|
6043
6047
|
}
|
|
6044
6048
|
}
|
|
6045
6049
|
const Ks = ({
|
|
@@ -6105,8 +6109,8 @@ const Ks = ({
|
|
|
6105
6109
|
);
|
|
6106
6110
|
a(c);
|
|
6107
6111
|
} else if (n === "fit-grid") {
|
|
6108
|
-
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((
|
|
6109
|
-
c.map((
|
|
6112
|
+
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((p) => p.visible !== !1), f = l / c.length, u = Object.fromEntries(
|
|
6113
|
+
c.map((p) => [p.name, f])
|
|
6110
6114
|
);
|
|
6111
6115
|
a(u);
|
|
6112
6116
|
} else if (n === "fit-content") {
|
|
@@ -6114,9 +6118,9 @@ const Ks = ({
|
|
|
6114
6118
|
for (const c of r) {
|
|
6115
6119
|
if (!c.visible) continue;
|
|
6116
6120
|
const f = ((o = c.title) == null ? void 0 : o.length) || 0, u = Math.max(
|
|
6117
|
-
...e.map((
|
|
6118
|
-
var m,
|
|
6119
|
-
return `${((
|
|
6121
|
+
...e.map((p) => {
|
|
6122
|
+
var m, d, y, S;
|
|
6123
|
+
return `${((d = (m = p.cells) == null ? void 0 : m[c.name]) == null ? void 0 : d.decode) || ((S = (y = p.cells) == null ? void 0 : y[c.name]) == null ? void 0 : S.value) || ""}`.length;
|
|
6120
6124
|
}),
|
|
6121
6125
|
f
|
|
6122
6126
|
);
|
|
@@ -6135,13 +6139,13 @@ const Ks = ({
|
|
|
6135
6139
|
showGroupBar: a = !0
|
|
6136
6140
|
// isEditable = false,
|
|
6137
6141
|
}) => {
|
|
6138
|
-
var
|
|
6142
|
+
var k;
|
|
6139
6143
|
const [i, o] = G(
|
|
6140
6144
|
r ?? { columns: [], rows: [] }
|
|
6141
|
-
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()),
|
|
6145
|
+
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ce(null), [m, d] = zs({
|
|
6142
6146
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
6143
6147
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
6144
|
-
containerRef:
|
|
6148
|
+
containerRef: p,
|
|
6145
6149
|
sizingMode: s
|
|
6146
6150
|
});
|
|
6147
6151
|
re(() => {
|
|
@@ -6160,30 +6164,30 @@ const Ks = ({
|
|
|
6160
6164
|
c(Hs(C, l));
|
|
6161
6165
|
}, S = (C) => {
|
|
6162
6166
|
C.preventDefault();
|
|
6163
|
-
const
|
|
6164
|
-
if (!
|
|
6167
|
+
const b = C.dataTransfer.getData("text/plain");
|
|
6168
|
+
if (!b || l.some((L) => L.column === b))
|
|
6165
6169
|
return;
|
|
6166
|
-
const
|
|
6167
|
-
c(
|
|
6170
|
+
const N = [...l, { column: b, visible: !0 }];
|
|
6171
|
+
c(N);
|
|
6168
6172
|
}, E = (C) => {
|
|
6169
6173
|
C.preventDefault();
|
|
6170
|
-
}, { virtualItems: T, containerProps: w, innerProps: O } =
|
|
6174
|
+
}, { virtualItems: T, containerProps: w, innerProps: O } = Ar({
|
|
6171
6175
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
6172
6176
|
itemHeight: e,
|
|
6173
6177
|
containerHeight: t,
|
|
6174
6178
|
overscan: 5
|
|
6175
|
-
}),
|
|
6176
|
-
const
|
|
6177
|
-
const
|
|
6178
|
-
|
|
6179
|
+
}), v = (C, b) => {
|
|
6180
|
+
const R = C.clientX, N = m[b], L = (V) => {
|
|
6181
|
+
const I = V.clientX - R, F = Math.max(50, N + I);
|
|
6182
|
+
d((z) => ({
|
|
6179
6183
|
...z,
|
|
6180
|
-
[
|
|
6184
|
+
[b]: F
|
|
6181
6185
|
}));
|
|
6182
|
-
},
|
|
6183
|
-
window.removeEventListener("mousemove",
|
|
6186
|
+
}, A = () => {
|
|
6187
|
+
window.removeEventListener("mousemove", L), window.removeEventListener("mouseup", A);
|
|
6184
6188
|
};
|
|
6185
|
-
window.addEventListener("mousemove",
|
|
6186
|
-
},
|
|
6189
|
+
window.addEventListener("mousemove", L), window.addEventListener("mouseup", A);
|
|
6190
|
+
}, D = {
|
|
6187
6191
|
smpTable: `${nt["smp-table"]}`,
|
|
6188
6192
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
6189
6193
|
resizer: `${nt["smp-resizer"]}`
|
|
@@ -6191,9 +6195,9 @@ const Ks = ({
|
|
|
6191
6195
|
return i && /* @__PURE__ */ g.jsx(
|
|
6192
6196
|
"div",
|
|
6193
6197
|
{
|
|
6194
|
-
className:
|
|
6198
|
+
className: D.smpTable,
|
|
6195
6199
|
...w,
|
|
6196
|
-
ref:
|
|
6200
|
+
ref: p,
|
|
6197
6201
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6198
6202
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6199
6203
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
@@ -6205,14 +6209,14 @@ const Ks = ({
|
|
|
6205
6209
|
onDragOver: E
|
|
6206
6210
|
}
|
|
6207
6211
|
),
|
|
6208
|
-
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((
|
|
6212
|
+
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
|
|
6209
6213
|
(C) => C.visible && /* @__PURE__ */ g.jsxs(
|
|
6210
6214
|
"th",
|
|
6211
6215
|
{
|
|
6212
|
-
className:
|
|
6216
|
+
className: D.headerCell,
|
|
6213
6217
|
draggable: !0,
|
|
6214
|
-
onDragStart: (
|
|
6215
|
-
|
|
6218
|
+
onDragStart: (b) => {
|
|
6219
|
+
b.dataTransfer.setData("text/plain", C.name);
|
|
6216
6220
|
},
|
|
6217
6221
|
style: {
|
|
6218
6222
|
width: m[C.name],
|
|
@@ -6230,8 +6234,8 @@ const Ks = ({
|
|
|
6230
6234
|
/* @__PURE__ */ g.jsx(
|
|
6231
6235
|
"div",
|
|
6232
6236
|
{
|
|
6233
|
-
className:
|
|
6234
|
-
onMouseDown: (
|
|
6237
|
+
className: D.resizer,
|
|
6238
|
+
onMouseDown: (b) => v(b, C.name),
|
|
6235
6239
|
role: "region"
|
|
6236
6240
|
}
|
|
6237
6241
|
)
|
|
@@ -6241,32 +6245,32 @@ const Ks = ({
|
|
|
6241
6245
|
)
|
|
6242
6246
|
)) })
|
|
6243
6247
|
] }),
|
|
6244
|
-
/* @__PURE__ */ g.jsx("tbody", { ...O, children: T.map(({ item: C, index:
|
|
6245
|
-
const
|
|
6248
|
+
/* @__PURE__ */ g.jsx("tbody", { ...O, children: T.map(({ item: C, index: b, offsetTop: R }) => {
|
|
6249
|
+
const N = C.rowId || C.value || `${C.isGroup ? "group" : "row"}-${b}`;
|
|
6246
6250
|
return C.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6247
6251
|
Ws,
|
|
6248
6252
|
{
|
|
6249
6253
|
label: C.value || "",
|
|
6250
6254
|
rowHeight: e,
|
|
6251
|
-
offsetTop:
|
|
6255
|
+
offsetTop: R,
|
|
6252
6256
|
level: C.level,
|
|
6253
6257
|
onClick: () => {
|
|
6254
|
-
const
|
|
6255
|
-
|
|
6258
|
+
const L = C.rowId;
|
|
6259
|
+
L && u((A) => Bs(A, L));
|
|
6256
6260
|
},
|
|
6257
6261
|
isExpanded: C.isExpanded
|
|
6258
6262
|
},
|
|
6259
|
-
`group-${
|
|
6263
|
+
`group-${N}`
|
|
6260
6264
|
) : /* @__PURE__ */ g.jsx(
|
|
6261
6265
|
Mr,
|
|
6262
6266
|
{
|
|
6263
6267
|
row: C,
|
|
6264
6268
|
columnWidths: m,
|
|
6265
6269
|
rowHeight: e,
|
|
6266
|
-
offsetTop:
|
|
6270
|
+
offsetTop: R,
|
|
6267
6271
|
isGroup: !1
|
|
6268
6272
|
},
|
|
6269
|
-
`row-${
|
|
6273
|
+
`row-${N}`
|
|
6270
6274
|
);
|
|
6271
6275
|
}) }),
|
|
6272
6276
|
/* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
|
|
@@ -6296,7 +6300,7 @@ const Ks = ({
|
|
|
6296
6300
|
}, [r, s, e]);
|
|
6297
6301
|
const m = {
|
|
6298
6302
|
container: `smp-field-container ${de(t) ? `smp-field-position-${n}` : ""}`
|
|
6299
|
-
},
|
|
6303
|
+
}, d = () => {
|
|
6300
6304
|
de(t) || o == null || o(f);
|
|
6301
6305
|
};
|
|
6302
6306
|
if (f)
|
|
@@ -6318,7 +6322,7 @@ const Ks = ({
|
|
|
6318
6322
|
onChange: u,
|
|
6319
6323
|
onOptionsRequest: c,
|
|
6320
6324
|
fun: r == null ? void 0 : r.fun,
|
|
6321
|
-
onBlur:
|
|
6325
|
+
onBlur: d,
|
|
6322
6326
|
label: a,
|
|
6323
6327
|
labelPosition: i
|
|
6324
6328
|
}
|
|
@@ -6360,123 +6364,123 @@ const Ks = ({
|
|
|
6360
6364
|
onContextMenu: f,
|
|
6361
6365
|
onButtonClick: u
|
|
6362
6366
|
}) => {
|
|
6363
|
-
var
|
|
6364
|
-
const [
|
|
6367
|
+
var k, C;
|
|
6368
|
+
const [p, m] = G({}), { translate: d } = Ae(), y = Re();
|
|
6365
6369
|
re(() => {
|
|
6366
6370
|
m(O(r));
|
|
6367
6371
|
}, [r]);
|
|
6368
|
-
const S = (
|
|
6369
|
-
m((
|
|
6370
|
-
...
|
|
6371
|
-
[
|
|
6372
|
-
...
|
|
6372
|
+
const S = (b, R) => {
|
|
6373
|
+
m((N) => ({
|
|
6374
|
+
...N,
|
|
6375
|
+
[b]: {
|
|
6376
|
+
...N[b],
|
|
6373
6377
|
obj: {
|
|
6374
|
-
...
|
|
6375
|
-
k:
|
|
6378
|
+
...N[b].obj,
|
|
6379
|
+
k: R.obj.k
|
|
6376
6380
|
},
|
|
6377
|
-
decode:
|
|
6381
|
+
decode: R.decode,
|
|
6378
6382
|
data: {
|
|
6379
|
-
...
|
|
6383
|
+
...N[b].data,
|
|
6380
6384
|
error: void 0
|
|
6381
6385
|
},
|
|
6382
6386
|
// FIXME: remove this when webup.js will not use value
|
|
6383
|
-
value:
|
|
6387
|
+
value: R.obj.k
|
|
6384
6388
|
}
|
|
6385
|
-
})), s && (
|
|
6386
|
-
}, E = (
|
|
6387
|
-
const
|
|
6389
|
+
})), s && (R.shape == te.CHECKBOX || R.shape == te.SWITCH) && E();
|
|
6390
|
+
}, E = (b) => {
|
|
6391
|
+
const R = v();
|
|
6388
6392
|
o({
|
|
6389
|
-
value:
|
|
6390
|
-
cell:
|
|
6393
|
+
value: R,
|
|
6394
|
+
cell: b
|
|
6391
6395
|
});
|
|
6392
|
-
}, T = (
|
|
6396
|
+
}, T = (b, R) => {
|
|
6393
6397
|
u == null || u({
|
|
6394
|
-
cellId:
|
|
6398
|
+
cellId: b,
|
|
6395
6399
|
currentState: {
|
|
6396
6400
|
type: "SmeupDataTable",
|
|
6397
6401
|
columns: r.columns,
|
|
6398
6402
|
rows: [
|
|
6399
6403
|
{
|
|
6400
|
-
cells:
|
|
6404
|
+
cells: p
|
|
6401
6405
|
}
|
|
6402
6406
|
]
|
|
6403
6407
|
},
|
|
6404
|
-
fun:
|
|
6408
|
+
fun: R || ""
|
|
6405
6409
|
});
|
|
6406
|
-
}, w = async (
|
|
6407
|
-
var
|
|
6408
|
-
if (
|
|
6409
|
-
obj:
|
|
6410
|
-
fun:
|
|
6411
|
-
cellId:
|
|
6412
|
-
})).valid || m((
|
|
6413
|
-
...
|
|
6414
|
-
[
|
|
6415
|
-
...
|
|
6410
|
+
}, w = async (b) => {
|
|
6411
|
+
var R, N;
|
|
6412
|
+
if (p[b].obj.k != r.rows[0].cells[b].obj.k && ((R = p[b].inputSettings) != null && R.checkObject && c && ((await c({
|
|
6413
|
+
obj: p[b].obj,
|
|
6414
|
+
fun: p[b].fun,
|
|
6415
|
+
cellId: b
|
|
6416
|
+
})).valid || m((A) => ({
|
|
6417
|
+
...A,
|
|
6418
|
+
[b]: {
|
|
6419
|
+
...A[b],
|
|
6416
6420
|
data: {
|
|
6417
|
-
...
|
|
6418
|
-
error:
|
|
6421
|
+
...A[b].data,
|
|
6422
|
+
error: d(Oe.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6419
6423
|
}
|
|
6420
6424
|
}
|
|
6421
|
-
}))), (
|
|
6422
|
-
const
|
|
6425
|
+
}))), (N = p[b].inputSettings) != null && N.checkValueOnExit)) {
|
|
6426
|
+
const L = v();
|
|
6423
6427
|
l == null || l({
|
|
6424
|
-
value:
|
|
6425
|
-
cell:
|
|
6428
|
+
value: L,
|
|
6429
|
+
cell: b
|
|
6426
6430
|
});
|
|
6427
6431
|
}
|
|
6428
|
-
}, O = (
|
|
6429
|
-
var
|
|
6430
|
-
if (!((
|
|
6432
|
+
}, O = (b) => {
|
|
6433
|
+
var N, L, A;
|
|
6434
|
+
if (!((N = b.rows) != null && N.length) || !((L = b.columns) != null && L.length))
|
|
6431
6435
|
return {};
|
|
6432
|
-
const
|
|
6433
|
-
return
|
|
6434
|
-
const
|
|
6435
|
-
...
|
|
6436
|
-
id:
|
|
6437
|
-
label:
|
|
6436
|
+
const R = (A = b.rows) == null ? void 0 : A[0];
|
|
6437
|
+
return b.columns.filter((V) => V.visible ?? !0).reduce((V, I) => {
|
|
6438
|
+
const F = {
|
|
6439
|
+
...R.cells[I.name],
|
|
6440
|
+
id: I.name,
|
|
6441
|
+
label: I.title,
|
|
6438
6442
|
data: {
|
|
6439
|
-
...
|
|
6443
|
+
...R.cells[I.name].data,
|
|
6440
6444
|
dSep: a
|
|
6441
6445
|
}
|
|
6442
6446
|
};
|
|
6443
|
-
return
|
|
6444
|
-
await i(z, J, r,
|
|
6445
|
-
)),
|
|
6446
|
-
...
|
|
6447
|
-
[
|
|
6447
|
+
return F.fun && (F.onOptionsRequest = async (z, J) => Zs(
|
|
6448
|
+
await i(z, J, r, I.name)
|
|
6449
|
+
)), F.isEditable == null && (F.isEditable = !0), t && (F.isEditable = !1), F.isEditable && F.shape == null && (F.shape = te.TEXT_FIELD), {
|
|
6450
|
+
...V,
|
|
6451
|
+
[I.name]: F
|
|
6448
6452
|
};
|
|
6449
6453
|
}, {});
|
|
6450
|
-
},
|
|
6454
|
+
}, v = () => ({
|
|
6451
6455
|
before: r,
|
|
6452
6456
|
after: {
|
|
6453
6457
|
type: "SmeupDataTable",
|
|
6454
6458
|
columns: JSON.parse(JSON.stringify(r.columns)),
|
|
6455
6459
|
rows: [
|
|
6456
6460
|
{
|
|
6457
|
-
cells: JSON.parse(JSON.stringify(
|
|
6461
|
+
cells: JSON.parse(JSON.stringify(p))
|
|
6458
6462
|
}
|
|
6459
6463
|
]
|
|
6460
6464
|
}
|
|
6461
|
-
}),
|
|
6465
|
+
}), D = ((C = (k = r.setup) == null ? void 0 : k.commands) == null ? void 0 : C.map((b, R) => /* @__PURE__ */ Br(
|
|
6462
6466
|
_e,
|
|
6463
6467
|
{
|
|
6464
|
-
...
|
|
6465
|
-
decode:
|
|
6468
|
+
...b,
|
|
6469
|
+
decode: b.value,
|
|
6466
6470
|
data: {
|
|
6467
|
-
label:
|
|
6471
|
+
label: b.value
|
|
6468
6472
|
},
|
|
6469
|
-
id: `command-${
|
|
6470
|
-
key: `command-${
|
|
6473
|
+
id: `command-${R}`,
|
|
6474
|
+
key: `command-${R}`,
|
|
6471
6475
|
shape: te.BUTTON,
|
|
6472
|
-
onClick: () => E(
|
|
6476
|
+
onClick: () => E(b.obj.k)
|
|
6473
6477
|
}
|
|
6474
6478
|
))) || [];
|
|
6475
|
-
return n ||
|
|
6479
|
+
return n || D.unshift(
|
|
6476
6480
|
/* @__PURE__ */ g.jsx(
|
|
6477
6481
|
_e,
|
|
6478
6482
|
{
|
|
6479
|
-
decode:
|
|
6483
|
+
decode: d(Oe.CONFIRM_BUTTON),
|
|
6480
6484
|
shape: te.BUTTON,
|
|
6481
6485
|
id: "",
|
|
6482
6486
|
obj: {
|
|
@@ -6486,18 +6490,18 @@ const Ks = ({
|
|
|
6486
6490
|
},
|
|
6487
6491
|
data: {
|
|
6488
6492
|
submit: !0,
|
|
6489
|
-
label:
|
|
6493
|
+
label: d(Oe.CONFIRM_BUTTON)
|
|
6490
6494
|
}
|
|
6491
6495
|
},
|
|
6492
6496
|
"submit-command"
|
|
6493
6497
|
)
|
|
6494
|
-
),
|
|
6498
|
+
), p && /* @__PURE__ */ g.jsxs(
|
|
6495
6499
|
"form",
|
|
6496
6500
|
{
|
|
6497
6501
|
"data-component": "input-panel",
|
|
6498
6502
|
id: e || y,
|
|
6499
|
-
onSubmit: (
|
|
6500
|
-
|
|
6503
|
+
onSubmit: (b) => {
|
|
6504
|
+
b.preventDefault(), E();
|
|
6501
6505
|
},
|
|
6502
6506
|
children: [
|
|
6503
6507
|
/* @__PURE__ */ g.jsx(
|
|
@@ -6506,25 +6510,25 @@ const Ks = ({
|
|
|
6506
6510
|
style: {
|
|
6507
6511
|
padding: "1em 0"
|
|
6508
6512
|
},
|
|
6509
|
-
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(
|
|
6513
|
+
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(p).map((b) => /* @__PURE__ */ g.jsx(
|
|
6510
6514
|
_e,
|
|
6511
6515
|
{
|
|
6512
|
-
...
|
|
6513
|
-
onChange: (
|
|
6514
|
-
onBlur: () => w(
|
|
6516
|
+
...b,
|
|
6517
|
+
onChange: (R) => S(b.id, R),
|
|
6518
|
+
onBlur: () => w(b.id),
|
|
6515
6519
|
onContextMenu: f,
|
|
6516
6520
|
onClick: () => {
|
|
6517
|
-
|
|
6521
|
+
b.shape == "BTN" && T(b.id, b.fun);
|
|
6518
6522
|
},
|
|
6519
6523
|
data: {
|
|
6520
|
-
...
|
|
6524
|
+
...b.data,
|
|
6521
6525
|
autocomplete: "off"
|
|
6522
6526
|
}
|
|
6523
6527
|
}
|
|
6524
6528
|
)) })
|
|
6525
6529
|
}
|
|
6526
6530
|
),
|
|
6527
|
-
|
|
6531
|
+
D.length > 0 && /* @__PURE__ */ g.jsx(
|
|
6528
6532
|
ot,
|
|
6529
6533
|
{
|
|
6530
6534
|
layout: {
|
|
@@ -6533,13 +6537,13 @@ const Ks = ({
|
|
|
6533
6537
|
id: "1",
|
|
6534
6538
|
horizontal: !0,
|
|
6535
6539
|
justify: "start",
|
|
6536
|
-
content:
|
|
6537
|
-
id:
|
|
6540
|
+
content: D.map((b) => ({
|
|
6541
|
+
id: b.props.id
|
|
6538
6542
|
}))
|
|
6539
6543
|
}
|
|
6540
6544
|
]
|
|
6541
6545
|
},
|
|
6542
|
-
children:
|
|
6546
|
+
children: D
|
|
6543
6547
|
}
|
|
6544
6548
|
)
|
|
6545
6549
|
]
|
|
@@ -6561,6 +6565,7 @@ export {
|
|
|
6561
6565
|
le as Icon,
|
|
6562
6566
|
la as InputPanel,
|
|
6563
6567
|
Ss as Password,
|
|
6568
|
+
vn as TabBar,
|
|
6564
6569
|
Le as Textfield,
|
|
6565
6570
|
ra as configurePaths
|
|
6566
6571
|
};
|