@sme.up/ketchup2 2.0.0-SNAPSHOT-20250721134245 → 2.0.0-SNAPSHOT-20250722074515
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Qe from "react";
|
|
2
2
|
import ct, { useState as q, useRef as ie, useEffect as se, useCallback as oe, useLayoutEffect as rn, useId as je, useMemo as ze, createElement as nn } from "react";
|
|
3
3
|
import { createPortal as sn } from "react-dom";
|
|
4
|
-
var Ze = { exports: {} },
|
|
4
|
+
var Ze = { exports: {} }, Ye = {};
|
|
5
5
|
/**
|
|
6
6
|
* @license React
|
|
7
7
|
* react-jsx-runtime.production.js
|
|
@@ -13,7 +13,7 @@ var Ze = { exports: {} }, We = {};
|
|
|
13
13
|
*/
|
|
14
14
|
var Gt;
|
|
15
15
|
function an() {
|
|
16
|
-
if (Gt) return
|
|
16
|
+
if (Gt) return Ye;
|
|
17
17
|
Gt = 1;
|
|
18
18
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
19
19
|
function r(n, s, a) {
|
|
@@ -31,7 +31,7 @@ function an() {
|
|
|
31
31
|
props: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
return
|
|
34
|
+
return Ye.Fragment = e, Ye.jsx = r, Ye.jsxs = r, Ye;
|
|
35
35
|
}
|
|
36
36
|
var Ge = {};
|
|
37
37
|
/**
|
|
@@ -49,20 +49,20 @@ function on() {
|
|
|
49
49
|
function t(m) {
|
|
50
50
|
if (m == null) return null;
|
|
51
51
|
if (typeof m == "function")
|
|
52
|
-
return m.$$typeof ===
|
|
52
|
+
return m.$$typeof === P ? null : m.displayName || m.name || null;
|
|
53
53
|
if (typeof m == "string") return m;
|
|
54
54
|
switch (m) {
|
|
55
55
|
case x:
|
|
56
56
|
return "Fragment";
|
|
57
|
-
case
|
|
57
|
+
case S:
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case v:
|
|
60
60
|
return "StrictMode";
|
|
61
61
|
case b:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case
|
|
63
|
+
case j:
|
|
64
64
|
return "SuspenseList";
|
|
65
|
-
case
|
|
65
|
+
case I:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
68
|
if (typeof m == "object")
|
|
@@ -76,14 +76,14 @@ function on() {
|
|
|
76
76
|
case E:
|
|
77
77
|
return (m._context.displayName || "Context") + ".Consumer";
|
|
78
78
|
case y:
|
|
79
|
-
var
|
|
80
|
-
return m = m.displayName, m || (m =
|
|
79
|
+
var w = m.render;
|
|
80
|
+
return m = m.displayName, m || (m = w.displayName || w.name || "", m = m !== "" ? "ForwardRef(" + m + ")" : "ForwardRef"), m;
|
|
81
81
|
case N:
|
|
82
|
-
return
|
|
83
|
-
case
|
|
84
|
-
|
|
82
|
+
return w = m.displayName || null, w !== null ? w : t(m.type) || "Memo";
|
|
83
|
+
case V:
|
|
84
|
+
w = m._payload, m = m._init;
|
|
85
85
|
try {
|
|
86
|
-
return t(m(
|
|
86
|
+
return t(m(w));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,50 +95,50 @@ function on() {
|
|
|
95
95
|
function r(m) {
|
|
96
96
|
try {
|
|
97
97
|
e(m);
|
|
98
|
-
var
|
|
98
|
+
var w = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
w = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var D =
|
|
102
|
+
if (w) {
|
|
103
|
+
w = console;
|
|
104
|
+
var D = w.error, k = typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object";
|
|
105
105
|
return D.call(
|
|
106
|
-
|
|
106
|
+
w,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
k
|
|
109
109
|
), e(m);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
function n(m) {
|
|
113
113
|
if (m === x) return "<>";
|
|
114
|
-
if (typeof m == "object" && m !== null && m.$$typeof ===
|
|
114
|
+
if (typeof m == "object" && m !== null && m.$$typeof === V)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var w = t(m);
|
|
118
|
+
return w ? "<" + w + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function s() {
|
|
124
|
-
var m =
|
|
124
|
+
var m = $.A;
|
|
125
125
|
return m === null ? null : m.getOwner();
|
|
126
126
|
}
|
|
127
127
|
function a() {
|
|
128
128
|
return Error("react-stack-top-frame");
|
|
129
129
|
}
|
|
130
130
|
function o(m) {
|
|
131
|
-
if (
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
131
|
+
if (O.call(m, "key")) {
|
|
132
|
+
var w = Object.getOwnPropertyDescriptor(m, "key").get;
|
|
133
|
+
if (w && w.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return m.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function i(m,
|
|
137
|
+
function i(m, w) {
|
|
138
138
|
function D() {
|
|
139
|
-
|
|
139
|
+
W || (W = !0, console.error(
|
|
140
140
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
|
|
141
|
+
w
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
D.isReactWarning = !0, Object.defineProperty(m, "key", {
|
|
@@ -152,13 +152,13 @@ function on() {
|
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), m = this.props.ref, m !== void 0 ? m : null;
|
|
154
154
|
}
|
|
155
|
-
function c(m,
|
|
155
|
+
function c(m, w, D, k, R, F, U, G) {
|
|
156
156
|
return D = F.ref, m = {
|
|
157
157
|
$$typeof: g,
|
|
158
158
|
type: m,
|
|
159
|
-
key:
|
|
159
|
+
key: w,
|
|
160
160
|
props: F,
|
|
161
|
-
_owner:
|
|
161
|
+
_owner: R
|
|
162
162
|
}, (D !== void 0 ? D : null) !== null ? Object.defineProperty(m, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
@@ -176,7 +176,7 @@ function on() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: U
|
|
180
180
|
}), Object.defineProperty(m, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
@@ -184,60 +184,60 @@ function on() {
|
|
|
184
184
|
value: G
|
|
185
185
|
}), Object.freeze && (Object.freeze(m.props), Object.freeze(m)), m;
|
|
186
186
|
}
|
|
187
|
-
function d(m,
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (T(
|
|
192
|
-
for (
|
|
193
|
-
u(
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function d(m, w, D, k, R, F, U, G) {
|
|
188
|
+
var B = w.children;
|
|
189
|
+
if (B !== void 0)
|
|
190
|
+
if (k)
|
|
191
|
+
if (T(B)) {
|
|
192
|
+
for (k = 0; k < B.length; k++)
|
|
193
|
+
u(B[k]);
|
|
194
|
+
Object.freeze && Object.freeze(B);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else u(
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var Z = Object.keys(
|
|
203
|
-
return
|
|
199
|
+
else u(B);
|
|
200
|
+
if (O.call(w, "key")) {
|
|
201
|
+
B = t(m);
|
|
202
|
+
var Z = Object.keys(w).filter(function(Y) {
|
|
203
|
+
return Y !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
k = 0 < Z.length ? "{key: someKey, " + Z.join(": ..., ") + ": ...}" : "{key: someKey}", A[B + k] || (Z = 0 < Z.length ? "{" + Z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
k,
|
|
213
|
+
B,
|
|
214
214
|
Z,
|
|
215
|
-
|
|
216
|
-
),
|
|
215
|
+
B
|
|
216
|
+
), A[B + k] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (B = null, D !== void 0 && (r(D), B = "" + D), o(w) && (r(w.key), B = "" + w.key), "key" in w) {
|
|
219
219
|
D = {};
|
|
220
|
-
for (var K in
|
|
221
|
-
K !== "key" && (D[K] =
|
|
222
|
-
} else D =
|
|
223
|
-
return
|
|
220
|
+
for (var K in w)
|
|
221
|
+
K !== "key" && (D[K] = w[K]);
|
|
222
|
+
} else D = w;
|
|
223
|
+
return B && i(
|
|
224
224
|
D,
|
|
225
225
|
typeof m == "function" ? m.displayName || m.name || "Unknown" : m
|
|
226
226
|
), c(
|
|
227
227
|
m,
|
|
228
|
-
|
|
228
|
+
B,
|
|
229
229
|
F,
|
|
230
|
-
|
|
230
|
+
R,
|
|
231
231
|
s(),
|
|
232
232
|
D,
|
|
233
|
-
|
|
233
|
+
U,
|
|
234
234
|
G
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(m) {
|
|
238
238
|
typeof m == "object" && m !== null && m.$$typeof === g && m._store && (m._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var p = ct, g = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"),
|
|
240
|
+
var p = ct, g = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), C = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), V = Symbol.for("react.lazy"), I = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), $ = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, O = Object.prototype.hasOwnProperty, T = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
243
|
p = {
|
|
@@ -245,33 +245,33 @@ React keys must be passed directly to JSX without using spread:
|
|
|
245
245
|
return m();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
248
|
+
var W, H = {}, X = p["react-stack-bottom-frame"].bind(
|
|
249
249
|
p,
|
|
250
250
|
a
|
|
251
|
-
)(), Q =
|
|
252
|
-
Ge.Fragment = x, Ge.jsx = function(m,
|
|
253
|
-
var F = 1e4 >
|
|
251
|
+
)(), Q = _(n(a)), A = {};
|
|
252
|
+
Ge.Fragment = x, Ge.jsx = function(m, w, D, k, R) {
|
|
253
|
+
var F = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return d(
|
|
255
255
|
m,
|
|
256
|
-
|
|
256
|
+
w,
|
|
257
257
|
D,
|
|
258
258
|
!1,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
k,
|
|
260
|
+
R,
|
|
261
261
|
F ? Error("react-stack-top-frame") : X,
|
|
262
|
-
F ?
|
|
262
|
+
F ? _(n(m)) : Q
|
|
263
263
|
);
|
|
264
|
-
}, Ge.jsxs = function(m,
|
|
265
|
-
var F = 1e4 >
|
|
264
|
+
}, Ge.jsxs = function(m, w, D, k, R) {
|
|
265
|
+
var F = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return d(
|
|
267
267
|
m,
|
|
268
|
-
|
|
268
|
+
w,
|
|
269
269
|
D,
|
|
270
270
|
!0,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
k,
|
|
272
|
+
R,
|
|
273
273
|
F ? Error("react-stack-top-frame") : X,
|
|
274
|
-
F ?
|
|
274
|
+
F ? _(n(m)) : Q
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ge;
|
|
@@ -388,8 +388,8 @@ function fn() {
|
|
|
388
388
|
throw new TypeError("invalid type");
|
|
389
389
|
var f = g;
|
|
390
390
|
if (p && typeof p == "object")
|
|
391
|
-
for (var x, v = Object.keys(p).sort(),
|
|
392
|
-
if (x = v[
|
|
391
|
+
for (var x, v = Object.keys(p).sort(), S = 0; S < v.length; S++) {
|
|
392
|
+
if (x = v[S], !r.test(x))
|
|
393
393
|
throw new TypeError("invalid parameter name");
|
|
394
394
|
f += "; " + x + "=" + c(p[x]);
|
|
395
395
|
}
|
|
@@ -406,11 +406,11 @@ function fn() {
|
|
|
406
406
|
throw new TypeError("invalid media type");
|
|
407
407
|
var x = new d(f.toLowerCase());
|
|
408
408
|
if (g !== -1) {
|
|
409
|
-
var v,
|
|
410
|
-
for (t.lastIndex = g;
|
|
411
|
-
if (
|
|
409
|
+
var v, S, E;
|
|
410
|
+
for (t.lastIndex = g; S = t.exec(p); ) {
|
|
411
|
+
if (S.index !== g)
|
|
412
412
|
throw new TypeError("invalid parameter format");
|
|
413
|
-
g +=
|
|
413
|
+
g += S[0].length, v = S[1].toLowerCase(), E = S[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), x.parameters[v] = E;
|
|
414
414
|
}
|
|
415
415
|
if (g !== p.length)
|
|
416
416
|
throw new TypeError("invalid parameter format");
|
|
@@ -529,8 +529,8 @@ var pn = fn(), Ve = /* @__PURE__ */ new Map(), Fr = function(e) {
|
|
|
529
529
|
x && u.setAttribute("height", x);
|
|
530
530
|
var v = Array.from(new Set(xt(xt(xt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
531
531
|
u.setAttribute("class", v);
|
|
532
|
-
var
|
|
533
|
-
|
|
532
|
+
var S = e.getAttribute("style");
|
|
533
|
+
S && u.setAttribute("style", S), u.setAttribute("data-src", l);
|
|
534
534
|
var E = [].filter.call(e.attributes, function(Q) {
|
|
535
535
|
return /^data-\w[\w-]*$/.test(Q.name);
|
|
536
536
|
});
|
|
@@ -548,36 +548,36 @@ var pn = fn(), Ve = /* @__PURE__ */ new Map(), Fr = function(e) {
|
|
|
548
548
|
path: [],
|
|
549
549
|
pattern: ["fill", "stroke"],
|
|
550
550
|
radialGradient: ["fill", "stroke"]
|
|
551
|
-
}, y, b,
|
|
551
|
+
}, y, b, j, N, V;
|
|
552
552
|
Object.keys(C).forEach(function(Q) {
|
|
553
|
-
y = Q,
|
|
554
|
-
for (var
|
|
555
|
-
N = b[
|
|
553
|
+
y = Q, j = C[Q], b = u.querySelectorAll(y + "[id]");
|
|
554
|
+
for (var A = function(k, R) {
|
|
555
|
+
N = b[k].id, V = N + "-" + yn();
|
|
556
556
|
var F;
|
|
557
|
-
Array.prototype.forEach.call(
|
|
557
|
+
Array.prototype.forEach.call(j, function(M) {
|
|
558
558
|
F = u.querySelectorAll("[" + M + '*="' + N + '"]');
|
|
559
559
|
for (var z = 0, ee = F.length; z < ee; z++) {
|
|
560
560
|
var ae = F[z].getAttribute(M);
|
|
561
|
-
ae && !ae.match(new RegExp('url\\("?#' + N + '"?\\)')) || F[z].setAttribute(M, "url(#" +
|
|
561
|
+
ae && !ae.match(new RegExp('url\\("?#' + N + '"?\\)')) || F[z].setAttribute(M, "url(#" + V + ")");
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
|
-
for (var
|
|
565
|
-
var K =
|
|
566
|
-
K && K.toString() === "#" + b[
|
|
564
|
+
for (var U = u.querySelectorAll("[*|href]"), G = [], B = 0, Z = U.length; B < Z; B++) {
|
|
565
|
+
var K = U[B].getAttributeNS(wt, "href");
|
|
566
|
+
K && K.toString() === "#" + b[k].id && G.push(U[B]);
|
|
567
567
|
}
|
|
568
|
-
for (var
|
|
569
|
-
G[
|
|
570
|
-
b[
|
|
571
|
-
}, m = 0,
|
|
572
|
-
|
|
568
|
+
for (var Y = 0, L = G.length; Y < L; Y++)
|
|
569
|
+
G[Y].setAttributeNS(wt, "href", "#" + V);
|
|
570
|
+
b[k].id = V;
|
|
571
|
+
}, m = 0, w = b.length; m < w; m++)
|
|
572
|
+
A(m);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
u.removeAttribute("xmlns:a");
|
|
576
|
-
for (var
|
|
577
|
-
|
|
578
|
-
if (
|
|
579
|
-
for (var
|
|
580
|
-
new Function(
|
|
576
|
+
for (var I = u.querySelectorAll("script"), P = [], $, O, T = 0, _ = I.length; T < _; T++)
|
|
577
|
+
O = I[T].getAttribute("type"), (!O || O === "application/ecmascript" || O === "application/javascript" || O === "text/javascript") && ($ = I[T].innerText || I[T].textContent, $ && P.push($), u.removeChild(I[T]));
|
|
578
|
+
if (P.length > 0 && (r === "always" || r === "once" && !Zt[l])) {
|
|
579
|
+
for (var W = 0, H = P.length; W < H; W++)
|
|
580
|
+
new Function(P[W])(window);
|
|
581
581
|
Zt[l] = !0;
|
|
582
582
|
}
|
|
583
583
|
var X = u.querySelectorAll("style");
|
|
@@ -593,14 +593,14 @@ var pn = fn(), Ve = /* @__PURE__ */ new Map(), Fr = function(e) {
|
|
|
593
593
|
var n = r === void 0 ? {} : r, s = n.afterAll, a = s === void 0 ? function() {
|
|
594
594
|
} : s, o = n.afterEach, i = o === void 0 ? function() {
|
|
595
595
|
} : o, l = n.beforeEach, c = l === void 0 ? function() {
|
|
596
|
-
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, p = n.evalScripts, g = p === void 0 ? "never" : p, f = n.httpRequestWithCredentials, x = f === void 0 ? !1 : f, v = n.renumerateIRIElements,
|
|
596
|
+
} : l, d = n.cacheRequests, u = d === void 0 ? !0 : d, p = n.evalScripts, g = p === void 0 ? "never" : p, f = n.httpRequestWithCredentials, x = f === void 0 ? !1 : f, v = n.renumerateIRIElements, S = v === void 0 ? !0 : v;
|
|
597
597
|
if (e && "length" in e)
|
|
598
598
|
for (var E = 0, C = 0, y = e.length; C < y; C++)
|
|
599
|
-
er(e[C], g,
|
|
600
|
-
i(b,
|
|
599
|
+
er(e[C], g, S, u, x, c, function(b, j) {
|
|
600
|
+
i(b, j), e && "length" in e && e.length === ++E && a(E);
|
|
601
601
|
});
|
|
602
|
-
else e ? er(e, g,
|
|
603
|
-
i(b,
|
|
602
|
+
else e ? er(e, g, S, u, x, c, function(b, j) {
|
|
603
|
+
i(b, j), a(1), e = null;
|
|
604
604
|
}) : a(0);
|
|
605
605
|
}, tt = { exports: {} }, rt = { exports: {} }, re = {};
|
|
606
606
|
/** @license React v16.13.1
|
|
@@ -615,11 +615,11 @@ var tr;
|
|
|
615
615
|
function wn() {
|
|
616
616
|
if (tr) return re;
|
|
617
617
|
tr = 1;
|
|
618
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
618
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, S = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
|
|
619
619
|
function C(b) {
|
|
620
620
|
if (typeof b == "object" && b !== null) {
|
|
621
|
-
var
|
|
622
|
-
switch (
|
|
621
|
+
var j = b.$$typeof;
|
|
622
|
+
switch (j) {
|
|
623
623
|
case e:
|
|
624
624
|
switch (b = b.type, b) {
|
|
625
625
|
case l:
|
|
@@ -638,11 +638,11 @@ function wn() {
|
|
|
638
638
|
case o:
|
|
639
639
|
return b;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return j;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
case r:
|
|
645
|
-
return
|
|
645
|
+
return j;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
@@ -674,7 +674,7 @@ function wn() {
|
|
|
674
674
|
}, re.isSuspense = function(b) {
|
|
675
675
|
return C(b) === u;
|
|
676
676
|
}, re.isValidElementType = function(b) {
|
|
677
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === p || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === g || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === v || b.$$typeof ===
|
|
677
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === p || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === g || b.$$typeof === o || b.$$typeof === i || b.$$typeof === d || b.$$typeof === v || b.$$typeof === S || b.$$typeof === E || b.$$typeof === x);
|
|
678
678
|
}, re.typeOf = C, re;
|
|
679
679
|
}
|
|
680
680
|
var ne = {};
|
|
@@ -689,10 +689,10 @@ var ne = {};
|
|
|
689
689
|
var rr;
|
|
690
690
|
function Sn() {
|
|
691
691
|
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
692
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
|
692
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, x = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, S = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
|
|
693
693
|
function C(L) {
|
|
694
694
|
return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
695
|
-
L === n || L === c || L === a || L === s || L === u || L === p || typeof L == "object" && L !== null && (L.$$typeof === f || L.$$typeof === g || L.$$typeof === o || L.$$typeof === i || L.$$typeof === d || L.$$typeof === v || L.$$typeof ===
|
|
695
|
+
L === n || L === c || L === a || L === s || L === u || L === p || typeof L == "object" && L !== null && (L.$$typeof === f || L.$$typeof === g || L.$$typeof === o || L.$$typeof === i || L.$$typeof === d || L.$$typeof === v || L.$$typeof === S || L.$$typeof === E || L.$$typeof === x);
|
|
696
696
|
}
|
|
697
697
|
function y(L) {
|
|
698
698
|
if (typeof L == "object" && L !== null) {
|
|
@@ -726,35 +726,35 @@ function Sn() {
|
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
var b = l,
|
|
730
|
-
function
|
|
729
|
+
var b = l, j = c, N = i, V = o, I = e, P = d, $ = n, O = f, T = g, _ = r, W = a, H = s, X = u, Q = !1;
|
|
730
|
+
function A(L) {
|
|
731
731
|
return Q || (Q = !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.")), m(L) || y(L) === l;
|
|
732
732
|
}
|
|
733
733
|
function m(L) {
|
|
734
734
|
return y(L) === c;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function w(L) {
|
|
737
737
|
return y(L) === i;
|
|
738
738
|
}
|
|
739
739
|
function D(L) {
|
|
740
740
|
return y(L) === o;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function k(L) {
|
|
743
743
|
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function R(L) {
|
|
746
746
|
return y(L) === d;
|
|
747
747
|
}
|
|
748
748
|
function F(L) {
|
|
749
749
|
return y(L) === n;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function U(L) {
|
|
752
752
|
return y(L) === f;
|
|
753
753
|
}
|
|
754
754
|
function G(L) {
|
|
755
755
|
return y(L) === g;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function B(L) {
|
|
758
758
|
return y(L) === r;
|
|
759
759
|
}
|
|
760
760
|
function Z(L) {
|
|
@@ -763,10 +763,10 @@ function Sn() {
|
|
|
763
763
|
function K(L) {
|
|
764
764
|
return y(L) === s;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Y(L) {
|
|
767
767
|
return y(L) === u;
|
|
768
768
|
}
|
|
769
|
-
ne.AsyncMode = b, ne.ConcurrentMode =
|
|
769
|
+
ne.AsyncMode = b, ne.ConcurrentMode = j, ne.ContextConsumer = N, ne.ContextProvider = V, ne.Element = I, ne.ForwardRef = P, ne.Fragment = $, ne.Lazy = O, ne.Memo = T, ne.Portal = _, ne.Profiler = W, ne.StrictMode = H, ne.Suspense = X, ne.isAsyncMode = A, ne.isConcurrentMode = m, ne.isContextConsumer = w, ne.isContextProvider = D, ne.isElement = k, ne.isForwardRef = R, ne.isFragment = F, ne.isLazy = U, ne.isMemo = G, ne.isPortal = B, ne.isProfiler = Z, ne.isStrictMode = K, ne.isSuspense = Y, ne.isValidElementType = C, ne.typeOf = y;
|
|
770
770
|
}()), ne;
|
|
771
771
|
}
|
|
772
772
|
var nr;
|
|
@@ -904,236 +904,236 @@ function Tn() {
|
|
|
904
904
|
return Ot = function(i, l) {
|
|
905
905
|
var c = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
906
906
|
function u(m) {
|
|
907
|
-
var
|
|
908
|
-
if (typeof
|
|
909
|
-
return
|
|
907
|
+
var w = m && (c && m[c] || m[d]);
|
|
908
|
+
if (typeof w == "function")
|
|
909
|
+
return w;
|
|
910
910
|
}
|
|
911
911
|
var p = "<<anonymous>>", g = {
|
|
912
|
-
array:
|
|
913
|
-
bigint:
|
|
914
|
-
bool:
|
|
915
|
-
func:
|
|
916
|
-
number:
|
|
917
|
-
object:
|
|
918
|
-
string:
|
|
919
|
-
symbol:
|
|
912
|
+
array: S("array"),
|
|
913
|
+
bigint: S("bigint"),
|
|
914
|
+
bool: S("boolean"),
|
|
915
|
+
func: S("function"),
|
|
916
|
+
number: S("number"),
|
|
917
|
+
object: S("object"),
|
|
918
|
+
string: S("string"),
|
|
919
|
+
symbol: S("symbol"),
|
|
920
920
|
any: E(),
|
|
921
921
|
arrayOf: C,
|
|
922
922
|
element: y(),
|
|
923
923
|
elementType: b(),
|
|
924
|
-
instanceOf:
|
|
925
|
-
node:
|
|
926
|
-
objectOf:
|
|
924
|
+
instanceOf: j,
|
|
925
|
+
node: P(),
|
|
926
|
+
objectOf: V,
|
|
927
927
|
oneOf: N,
|
|
928
|
-
oneOfType:
|
|
929
|
-
shape:
|
|
928
|
+
oneOfType: I,
|
|
929
|
+
shape: O,
|
|
930
930
|
exact: T
|
|
931
931
|
};
|
|
932
|
-
function f(m,
|
|
933
|
-
return m ===
|
|
932
|
+
function f(m, w) {
|
|
933
|
+
return m === w ? m !== 0 || 1 / m === 1 / w : m !== m && w !== w;
|
|
934
934
|
}
|
|
935
|
-
function x(m,
|
|
936
|
-
this.message = m, this.data =
|
|
935
|
+
function x(m, w) {
|
|
936
|
+
this.message = m, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
|
|
937
937
|
}
|
|
938
938
|
x.prototype = Error.prototype;
|
|
939
939
|
function v(m) {
|
|
940
940
|
if (process.env.NODE_ENV !== "production")
|
|
941
|
-
var
|
|
942
|
-
function
|
|
943
|
-
if (
|
|
941
|
+
var w = {}, D = 0;
|
|
942
|
+
function k(F, U, G, B, Z, K, Y) {
|
|
943
|
+
if (B = B || p, K = K || G, Y !== r) {
|
|
944
944
|
if (l) {
|
|
945
945
|
var L = new Error(
|
|
946
946
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
947
947
|
);
|
|
948
948
|
throw L.name = "Invariant Violation", L;
|
|
949
949
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
950
|
-
var M =
|
|
951
|
-
!
|
|
950
|
+
var M = B + ":" + G;
|
|
951
|
+
!w[M] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
952
952
|
D < 3 && (a(
|
|
953
|
-
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" +
|
|
954
|
-
),
|
|
953
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + B + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
954
|
+
), w[M] = !0, D++);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
return
|
|
957
|
+
return U[G] == null ? F ? U[G] === null ? new x("The " + Z + " `" + K + "` is marked as required " + ("in `" + B + "`, but its value is `null`.")) : new x("The " + Z + " `" + K + "` is marked as required in " + ("`" + B + "`, but its value is `undefined`.")) : null : m(U, G, B, Z, K);
|
|
958
958
|
}
|
|
959
|
-
var
|
|
960
|
-
return
|
|
959
|
+
var R = k.bind(null, !1);
|
|
960
|
+
return R.isRequired = k.bind(null, !0), R;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
function
|
|
964
|
-
var
|
|
962
|
+
function S(m) {
|
|
963
|
+
function w(D, k, R, F, U, G) {
|
|
964
|
+
var B = D[k], Z = H(B);
|
|
965
965
|
if (Z !== m) {
|
|
966
|
-
var K = X(
|
|
966
|
+
var K = X(B);
|
|
967
967
|
return new x(
|
|
968
|
-
"Invalid " + F + " `" +
|
|
968
|
+
"Invalid " + F + " `" + U + "` of type " + ("`" + K + "` supplied to `" + R + "`, expected ") + ("`" + m + "`."),
|
|
969
969
|
{ expectedType: m }
|
|
970
970
|
);
|
|
971
971
|
}
|
|
972
972
|
return null;
|
|
973
973
|
}
|
|
974
|
-
return v(
|
|
974
|
+
return v(w);
|
|
975
975
|
}
|
|
976
976
|
function E() {
|
|
977
977
|
return v(o);
|
|
978
978
|
}
|
|
979
979
|
function C(m) {
|
|
980
|
-
function
|
|
980
|
+
function w(D, k, R, F, U) {
|
|
981
981
|
if (typeof m != "function")
|
|
982
|
-
return new x("Property `" +
|
|
983
|
-
var G = D[
|
|
982
|
+
return new x("Property `" + U + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
983
|
+
var G = D[k];
|
|
984
984
|
if (!Array.isArray(G)) {
|
|
985
|
-
var
|
|
986
|
-
return new x("Invalid " + F + " `" +
|
|
985
|
+
var B = H(G);
|
|
986
|
+
return new x("Invalid " + F + " `" + U + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected an array."));
|
|
987
987
|
}
|
|
988
988
|
for (var Z = 0; Z < G.length; Z++) {
|
|
989
|
-
var K = m(G, Z,
|
|
989
|
+
var K = m(G, Z, R, F, U + "[" + Z + "]", r);
|
|
990
990
|
if (K instanceof Error)
|
|
991
991
|
return K;
|
|
992
992
|
}
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
995
|
-
return v(
|
|
995
|
+
return v(w);
|
|
996
996
|
}
|
|
997
997
|
function y() {
|
|
998
|
-
function m(
|
|
999
|
-
var
|
|
1000
|
-
if (!i(
|
|
1001
|
-
var G = H(
|
|
1002
|
-
return new x("Invalid " +
|
|
998
|
+
function m(w, D, k, R, F) {
|
|
999
|
+
var U = w[D];
|
|
1000
|
+
if (!i(U)) {
|
|
1001
|
+
var G = H(U);
|
|
1002
|
+
return new x("Invalid " + R + " `" + F + "` of type " + ("`" + G + "` supplied to `" + k + "`, expected a single ReactElement."));
|
|
1003
1003
|
}
|
|
1004
1004
|
return null;
|
|
1005
1005
|
}
|
|
1006
1006
|
return v(m);
|
|
1007
1007
|
}
|
|
1008
1008
|
function b() {
|
|
1009
|
-
function m(
|
|
1010
|
-
var
|
|
1011
|
-
if (!t.isValidElementType(
|
|
1012
|
-
var G = H(
|
|
1013
|
-
return new x("Invalid " +
|
|
1009
|
+
function m(w, D, k, R, F) {
|
|
1010
|
+
var U = w[D];
|
|
1011
|
+
if (!t.isValidElementType(U)) {
|
|
1012
|
+
var G = H(U);
|
|
1013
|
+
return new x("Invalid " + R + " `" + F + "` of type " + ("`" + G + "` supplied to `" + k + "`, expected a single ReactElement type."));
|
|
1014
1014
|
}
|
|
1015
1015
|
return null;
|
|
1016
1016
|
}
|
|
1017
1017
|
return v(m);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
function
|
|
1021
|
-
if (!(D[
|
|
1022
|
-
var G = m.name || p,
|
|
1023
|
-
return new x("Invalid " + F + " `" +
|
|
1019
|
+
function j(m) {
|
|
1020
|
+
function w(D, k, R, F, U) {
|
|
1021
|
+
if (!(D[k] instanceof m)) {
|
|
1022
|
+
var G = m.name || p, B = A(D[k]);
|
|
1023
|
+
return new x("Invalid " + F + " `" + U + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected ") + ("instance of `" + G + "`."));
|
|
1024
1024
|
}
|
|
1025
1025
|
return null;
|
|
1026
1026
|
}
|
|
1027
|
-
return v(
|
|
1027
|
+
return v(w);
|
|
1028
1028
|
}
|
|
1029
1029
|
function N(m) {
|
|
1030
1030
|
if (!Array.isArray(m))
|
|
1031
1031
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1032
1032
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1033
1033
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1034
|
-
function
|
|
1035
|
-
for (var G = D[
|
|
1036
|
-
if (f(G, m[
|
|
1034
|
+
function w(D, k, R, F, U) {
|
|
1035
|
+
for (var G = D[k], B = 0; B < m.length; B++)
|
|
1036
|
+
if (f(G, m[B]))
|
|
1037
1037
|
return null;
|
|
1038
|
-
var Z = JSON.stringify(m, function(
|
|
1038
|
+
var Z = JSON.stringify(m, function(Y, L) {
|
|
1039
1039
|
var M = X(L);
|
|
1040
1040
|
return M === "symbol" ? String(L) : L;
|
|
1041
1041
|
});
|
|
1042
|
-
return new x("Invalid " + F + " `" +
|
|
1042
|
+
return new x("Invalid " + F + " `" + U + "` of value `" + String(G) + "` " + ("supplied to `" + R + "`, expected one of " + Z + "."));
|
|
1043
1043
|
}
|
|
1044
|
-
return v(
|
|
1044
|
+
return v(w);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1047
|
-
function
|
|
1046
|
+
function V(m) {
|
|
1047
|
+
function w(D, k, R, F, U) {
|
|
1048
1048
|
if (typeof m != "function")
|
|
1049
|
-
return new x("Property `" +
|
|
1050
|
-
var G = D[
|
|
1051
|
-
if (
|
|
1052
|
-
return new x("Invalid " + F + " `" +
|
|
1049
|
+
return new x("Property `" + U + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
1050
|
+
var G = D[k], B = H(G);
|
|
1051
|
+
if (B !== "object")
|
|
1052
|
+
return new x("Invalid " + F + " `" + U + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected an object."));
|
|
1053
1053
|
for (var Z in G)
|
|
1054
1054
|
if (n(G, Z)) {
|
|
1055
|
-
var K = m(G, Z,
|
|
1055
|
+
var K = m(G, Z, R, F, U + "." + Z, r);
|
|
1056
1056
|
if (K instanceof Error)
|
|
1057
1057
|
return K;
|
|
1058
1058
|
}
|
|
1059
1059
|
return null;
|
|
1060
1060
|
}
|
|
1061
|
-
return v(
|
|
1061
|
+
return v(w);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function I(m) {
|
|
1064
1064
|
if (!Array.isArray(m))
|
|
1065
1065
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
|
|
1066
|
-
for (var
|
|
1067
|
-
var D = m[
|
|
1066
|
+
for (var w = 0; w < m.length; w++) {
|
|
1067
|
+
var D = m[w];
|
|
1068
1068
|
if (typeof D != "function")
|
|
1069
1069
|
return a(
|
|
1070
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(D) + " at index " +
|
|
1070
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(D) + " at index " + w + "."
|
|
1071
1071
|
), o;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function k(R, F, U, G, B) {
|
|
1074
1074
|
for (var Z = [], K = 0; K < m.length; K++) {
|
|
1075
|
-
var
|
|
1075
|
+
var Y = m[K], L = Y(R, F, U, G, B, r);
|
|
1076
1076
|
if (L == null)
|
|
1077
1077
|
return null;
|
|
1078
1078
|
L.data && n(L.data, "expectedType") && Z.push(L.data.expectedType);
|
|
1079
1079
|
}
|
|
1080
1080
|
var M = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
|
|
1081
|
-
return new x("Invalid " + G + " `" +
|
|
1081
|
+
return new x("Invalid " + G + " `" + B + "` supplied to " + ("`" + U + "`" + M + "."));
|
|
1082
1082
|
}
|
|
1083
|
-
return v(
|
|
1083
|
+
return v(k);
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
function m(
|
|
1087
|
-
return
|
|
1085
|
+
function P() {
|
|
1086
|
+
function m(w, D, k, R, F) {
|
|
1087
|
+
return _(w[D]) ? null : new x("Invalid " + R + " `" + F + "` supplied to " + ("`" + k + "`, expected a ReactNode."));
|
|
1088
1088
|
}
|
|
1089
1089
|
return v(m);
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function $(m, w, D, k, R) {
|
|
1092
1092
|
return new x(
|
|
1093
|
-
(m || "React class") + ": " +
|
|
1093
|
+
(m || "React class") + ": " + w + " type `" + D + "." + k + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
function
|
|
1098
|
-
var G = D[
|
|
1099
|
-
if (
|
|
1100
|
-
return new x("Invalid " + F + " `" +
|
|
1096
|
+
function O(m) {
|
|
1097
|
+
function w(D, k, R, F, U) {
|
|
1098
|
+
var G = D[k], B = H(G);
|
|
1099
|
+
if (B !== "object")
|
|
1100
|
+
return new x("Invalid " + F + " `" + U + "` of type `" + B + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1101
1101
|
for (var Z in m) {
|
|
1102
1102
|
var K = m[Z];
|
|
1103
1103
|
if (typeof K != "function")
|
|
1104
|
-
return
|
|
1105
|
-
var
|
|
1106
|
-
if (
|
|
1107
|
-
return
|
|
1104
|
+
return $(R, F, U, Z, X(K));
|
|
1105
|
+
var Y = K(G, Z, R, F, U + "." + Z, r);
|
|
1106
|
+
if (Y)
|
|
1107
|
+
return Y;
|
|
1108
1108
|
}
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
1111
|
-
return v(
|
|
1111
|
+
return v(w);
|
|
1112
1112
|
}
|
|
1113
1113
|
function T(m) {
|
|
1114
|
-
function
|
|
1115
|
-
var G = D[
|
|
1116
|
-
if (
|
|
1117
|
-
return new x("Invalid " + F + " `" +
|
|
1118
|
-
var Z = e({}, D[
|
|
1114
|
+
function w(D, k, R, F, U) {
|
|
1115
|
+
var G = D[k], B = H(G);
|
|
1116
|
+
if (B !== "object")
|
|
1117
|
+
return new x("Invalid " + F + " `" + U + "` of type `" + B + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1118
|
+
var Z = e({}, D[k], m);
|
|
1119
1119
|
for (var K in Z) {
|
|
1120
|
-
var
|
|
1121
|
-
if (n(m, K) && typeof
|
|
1122
|
-
return
|
|
1123
|
-
if (!
|
|
1120
|
+
var Y = m[K];
|
|
1121
|
+
if (n(m, K) && typeof Y != "function")
|
|
1122
|
+
return $(R, F, U, K, X(Y));
|
|
1123
|
+
if (!Y)
|
|
1124
1124
|
return new x(
|
|
1125
|
-
"Invalid " + F + " `" +
|
|
1125
|
+
"Invalid " + F + " `" + U + "` key `" + K + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(D[k], null, " ") + `
|
|
1126
1126
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
1127
1127
|
);
|
|
1128
|
-
var L =
|
|
1128
|
+
var L = Y(G, K, R, F, U + "." + K, r);
|
|
1129
1129
|
if (L)
|
|
1130
1130
|
return L;
|
|
1131
1131
|
}
|
|
1132
1132
|
return null;
|
|
1133
1133
|
}
|
|
1134
|
-
return v(
|
|
1134
|
+
return v(w);
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function _(m) {
|
|
1137
1137
|
switch (typeof m) {
|
|
1138
1138
|
case "number":
|
|
1139
1139
|
case "string":
|
|
@@ -1143,20 +1143,20 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1143
1143
|
return !m;
|
|
1144
1144
|
case "object":
|
|
1145
1145
|
if (Array.isArray(m))
|
|
1146
|
-
return m.every(
|
|
1146
|
+
return m.every(_);
|
|
1147
1147
|
if (m === null || i(m))
|
|
1148
1148
|
return !0;
|
|
1149
|
-
var
|
|
1150
|
-
if (
|
|
1151
|
-
var D =
|
|
1152
|
-
if (
|
|
1153
|
-
for (; !(
|
|
1154
|
-
if (!
|
|
1149
|
+
var w = u(m);
|
|
1150
|
+
if (w) {
|
|
1151
|
+
var D = w.call(m), k;
|
|
1152
|
+
if (w !== m.entries) {
|
|
1153
|
+
for (; !(k = D.next()).done; )
|
|
1154
|
+
if (!_(k.value))
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
} else
|
|
1157
|
-
for (; !(
|
|
1158
|
-
var
|
|
1159
|
-
if (
|
|
1157
|
+
for (; !(k = D.next()).done; ) {
|
|
1158
|
+
var R = k.value;
|
|
1159
|
+
if (R && !_(R[1]))
|
|
1160
1160
|
return !1;
|
|
1161
1161
|
}
|
|
1162
1162
|
} else
|
|
@@ -1166,40 +1166,40 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
1166
1166
|
return !1;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return m === "symbol" ? !0 :
|
|
1169
|
+
function W(m, w) {
|
|
1170
|
+
return m === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
|
|
1171
1171
|
}
|
|
1172
1172
|
function H(m) {
|
|
1173
|
-
var
|
|
1174
|
-
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" :
|
|
1173
|
+
var w = typeof m;
|
|
1174
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : W(w, m) ? "symbol" : w;
|
|
1175
1175
|
}
|
|
1176
1176
|
function X(m) {
|
|
1177
1177
|
if (typeof m > "u" || m === null)
|
|
1178
1178
|
return "" + m;
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1179
|
+
var w = H(m);
|
|
1180
|
+
if (w === "object") {
|
|
1181
1181
|
if (m instanceof Date)
|
|
1182
1182
|
return "date";
|
|
1183
1183
|
if (m instanceof RegExp)
|
|
1184
1184
|
return "regexp";
|
|
1185
1185
|
}
|
|
1186
|
-
return
|
|
1186
|
+
return w;
|
|
1187
1187
|
}
|
|
1188
1188
|
function Q(m) {
|
|
1189
|
-
var
|
|
1190
|
-
switch (
|
|
1189
|
+
var w = X(m);
|
|
1190
|
+
switch (w) {
|
|
1191
1191
|
case "array":
|
|
1192
1192
|
case "object":
|
|
1193
|
-
return "an " +
|
|
1193
|
+
return "an " + w;
|
|
1194
1194
|
case "boolean":
|
|
1195
1195
|
case "date":
|
|
1196
1196
|
case "regexp":
|
|
1197
|
-
return "a " +
|
|
1197
|
+
return "a " + w;
|
|
1198
1198
|
default:
|
|
1199
|
-
return
|
|
1199
|
+
return w;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function A(m) {
|
|
1203
1203
|
return !m.constructor || !m.constructor.name ? p : m.constructor.name;
|
|
1204
1204
|
}
|
|
1205
1205
|
return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
|
|
@@ -1290,8 +1290,8 @@ var ce = /* @__PURE__ */ _n(), Rn = function(e) {
|
|
|
1290
1290
|
return r.renderSVG = function() {
|
|
1291
1291
|
var s = this;
|
|
1292
1292
|
if (this.reactWrapper instanceof Rn(this.reactWrapper).Node) {
|
|
1293
|
-
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, p = a.useRequestCache, g = this.props.onError, f = this.props.beforeInjection, x = this.props.afterInjection, v = this.props.wrapper,
|
|
1294
|
-
v === "svg" ? (
|
|
1293
|
+
var a = this.props, o = a.desc, i = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, d = a.src, u = a.title, p = a.useRequestCache, g = this.props.onError, f = this.props.beforeInjection, x = this.props.afterInjection, v = this.props.wrapper, S, E;
|
|
1294
|
+
v === "svg" ? (S = document.createElementNS(nt, v), S.setAttribute("xmlns", nt), S.setAttribute("xmlns:xlink", dr), E = document.createElementNS(nt, v)) : (S = document.createElement(v), E = document.createElement(v)), S.appendChild(E), E.dataset.src = d, this.nonReactWrapper = this.reactWrapper.appendChild(S);
|
|
1295
1295
|
var C = function(N) {
|
|
1296
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1297
1297
|
g(N);
|
|
@@ -1305,7 +1305,7 @@ var ce = /* @__PURE__ */ _n(), Rn = function(e) {
|
|
|
1305
1305
|
}, function() {
|
|
1306
1306
|
g(N);
|
|
1307
1307
|
});
|
|
1308
|
-
}, y = function(N,
|
|
1308
|
+
}, y = function(N, V) {
|
|
1309
1309
|
if (N) {
|
|
1310
1310
|
C(N);
|
|
1311
1311
|
return;
|
|
@@ -1316,28 +1316,28 @@ var ce = /* @__PURE__ */ _n(), Rn = function(e) {
|
|
|
1316
1316
|
};
|
|
1317
1317
|
}, function() {
|
|
1318
1318
|
try {
|
|
1319
|
-
x(
|
|
1320
|
-
} catch (
|
|
1321
|
-
C(
|
|
1319
|
+
x(V);
|
|
1320
|
+
} catch (I) {
|
|
1321
|
+
C(I);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
1324
|
}, b = function(N) {
|
|
1325
1325
|
if (N.setAttribute("role", "img"), o) {
|
|
1326
|
-
var
|
|
1327
|
-
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1326
|
+
var V = N.querySelector(":scope > desc");
|
|
1327
|
+
V && N.removeChild(V);
|
|
1328
|
+
var I = document.createElement("desc");
|
|
1329
|
+
I.innerHTML = o, N.prepend(I);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (u) {
|
|
1332
|
-
var
|
|
1333
|
-
|
|
1334
|
-
var
|
|
1335
|
-
|
|
1332
|
+
var P = N.querySelector(":scope > title");
|
|
1333
|
+
P && N.removeChild(P);
|
|
1334
|
+
var $ = document.createElement("title");
|
|
1335
|
+
$.innerHTML = u, N.prepend($);
|
|
1336
1336
|
}
|
|
1337
1337
|
try {
|
|
1338
1338
|
f(N);
|
|
1339
|
-
} catch (
|
|
1340
|
-
C(
|
|
1339
|
+
} catch (O) {
|
|
1340
|
+
C(O);
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
1343
|
xn(E, {
|
|
@@ -1411,14 +1411,14 @@ Mt.propTypes = {
|
|
|
1411
1411
|
useRequestCache: ce.bool,
|
|
1412
1412
|
wrapper: ce.oneOf(["div", "span", "svg"])
|
|
1413
1413
|
};
|
|
1414
|
-
let
|
|
1414
|
+
let Lt = {
|
|
1415
1415
|
assets: "/"
|
|
1416
1416
|
// Default for storybook isolation development
|
|
1417
1417
|
};
|
|
1418
1418
|
const Ca = (t) => {
|
|
1419
|
-
|
|
1419
|
+
Lt = { ...Lt, ...t };
|
|
1420
1420
|
}, $n = (t) => {
|
|
1421
|
-
const e = `${
|
|
1421
|
+
const e = `${Lt.assets}/${t}`.replace(/\/+/g, "/");
|
|
1422
1422
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1423
1423
|
}, ue = ct.memo(
|
|
1424
1424
|
({
|
|
@@ -1434,21 +1434,21 @@ const Ca = (t) => {
|
|
|
1434
1434
|
isInteractable: c = !1,
|
|
1435
1435
|
spin: d = !1,
|
|
1436
1436
|
title: u,
|
|
1437
|
-
tabIndex: p
|
|
1437
|
+
tabIndex: p,
|
|
1438
|
+
link: g
|
|
1438
1439
|
}) => {
|
|
1439
|
-
const [
|
|
1440
|
+
const [f, x] = q(!1), v = (O) => O?.toLowerCase().endsWith(".svg") || !O?.includes("/"), S = (O) => O?.startsWith("http") || O?.startsWith("/"), E = {
|
|
1440
1441
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1441
1442
|
svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${i ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${d ? "smp-icon-spin" : ""}`
|
|
1442
|
-
},
|
|
1443
|
-
!a && c && l && l(
|
|
1444
|
-
},
|
|
1445
|
-
!a && c && (
|
|
1446
|
-
},
|
|
1447
|
-
return b ? /* @__PURE__ */ h.jsx(
|
|
1443
|
+
}, C = (O) => {
|
|
1444
|
+
!a && c && l && l(O);
|
|
1445
|
+
}, y = (O) => {
|
|
1446
|
+
!a && c && (O.key === "Enter" || O.key === " ") && (O.preventDefault(), C(O));
|
|
1447
|
+
}, b = f ? n : t, j = v(b), V = S(b) ? b : $n(`assets/svg/${b}`), I = () => /* @__PURE__ */ h.jsx(
|
|
1448
1448
|
Mt,
|
|
1449
1449
|
{
|
|
1450
|
-
src:
|
|
1451
|
-
onError: () =>
|
|
1450
|
+
src: V,
|
|
1451
|
+
onError: () => x(!0),
|
|
1452
1452
|
width: e || "1rem",
|
|
1453
1453
|
height: r || "1rem",
|
|
1454
1454
|
wrapper: "svg",
|
|
@@ -1456,27 +1456,34 @@ const Ca = (t) => {
|
|
|
1456
1456
|
role: "application",
|
|
1457
1457
|
fill: s,
|
|
1458
1458
|
"aria-disabled": a,
|
|
1459
|
-
className:
|
|
1460
|
-
onClick:
|
|
1461
|
-
onKeyDown:
|
|
1459
|
+
className: E.svg,
|
|
1460
|
+
onClick: C,
|
|
1461
|
+
onKeyDown: y,
|
|
1462
1462
|
tabIndex: p
|
|
1463
1463
|
}
|
|
1464
|
-
)
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1464
|
+
), P = () => (
|
|
1465
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1466
|
+
/* @__PURE__ */ h.jsx(
|
|
1467
|
+
"img",
|
|
1468
|
+
{
|
|
1469
|
+
src: b,
|
|
1470
|
+
width: e || "16px",
|
|
1471
|
+
height: r || "auto",
|
|
1472
|
+
alt: u,
|
|
1473
|
+
onError: () => x(!0),
|
|
1474
|
+
onClick: C,
|
|
1475
|
+
className: E.img,
|
|
1476
|
+
title: u,
|
|
1477
|
+
onKeyDown: (O) => {
|
|
1478
|
+
(O.key === "Enter" || O.key === " ") && C(O);
|
|
1479
|
+
}
|
|
1477
1480
|
}
|
|
1478
|
-
|
|
1481
|
+
)
|
|
1479
1482
|
);
|
|
1483
|
+
return (() => {
|
|
1484
|
+
const O = g?.startsWith("https://") || g?.startsWith("http://") || g?.startsWith("#") || g?.startsWith("/"), T = j ? I() : P();
|
|
1485
|
+
return O ? /* @__PURE__ */ h.jsx("a", { href: g, children: T }) : T;
|
|
1486
|
+
})();
|
|
1480
1487
|
}
|
|
1481
1488
|
), fr = (t) => ({
|
|
1482
1489
|
extraSmall: 12,
|
|
@@ -1506,7 +1513,7 @@ const Ca = (t) => {
|
|
|
1506
1513
|
title: f,
|
|
1507
1514
|
optionalDisplayValue: x,
|
|
1508
1515
|
squared: v = !1,
|
|
1509
|
-
submit:
|
|
1516
|
+
submit: S = !1,
|
|
1510
1517
|
active: E = !1,
|
|
1511
1518
|
buttonExt: C
|
|
1512
1519
|
}) => {
|
|
@@ -1517,7 +1524,7 @@ const Ca = (t) => {
|
|
|
1517
1524
|
"button",
|
|
1518
1525
|
{
|
|
1519
1526
|
"data-component": "button",
|
|
1520
|
-
type:
|
|
1527
|
+
type: S ? "submit" : "button",
|
|
1521
1528
|
className: y.container,
|
|
1522
1529
|
onClick: e,
|
|
1523
1530
|
"aria-label": r,
|
|
@@ -1540,7 +1547,7 @@ const Ca = (t) => {
|
|
|
1540
1547
|
] })
|
|
1541
1548
|
}
|
|
1542
1549
|
);
|
|
1543
|
-
},
|
|
1550
|
+
}, Ln = {
|
|
1544
1551
|
titleLarge: "h2",
|
|
1545
1552
|
title: "h3",
|
|
1546
1553
|
body: "h6",
|
|
@@ -1551,7 +1558,7 @@ const Ca = (t) => {
|
|
|
1551
1558
|
color: r,
|
|
1552
1559
|
...n
|
|
1553
1560
|
}) => {
|
|
1554
|
-
const s =
|
|
1561
|
+
const s = Ln[t], a = {
|
|
1555
1562
|
container: `smp-typography ${t ? `smp-typography-${t}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
1556
1563
|
};
|
|
1557
1564
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -1579,7 +1586,7 @@ const Ca = (t) => {
|
|
|
1579
1586
|
"smp-tabbar-tab-base": "_smp-tabbar-tab-base_ly1md_86",
|
|
1580
1587
|
"smp-tabbar-tab-large": "_smp-tabbar-tab-large_ly1md_91",
|
|
1581
1588
|
"smp-tabbar-tab-extraLarge": "_smp-tabbar-tab-extraLarge_ly1md_96"
|
|
1582
|
-
},
|
|
1589
|
+
}, Nn = ({
|
|
1583
1590
|
data: t,
|
|
1584
1591
|
sizing: e = "large",
|
|
1585
1592
|
toolbar: r = !0,
|
|
@@ -1614,7 +1621,7 @@ const Ca = (t) => {
|
|
|
1614
1621
|
));
|
|
1615
1622
|
}, v = () => {
|
|
1616
1623
|
u.current?.scrollBy({ left: -g, behavior: "smooth" });
|
|
1617
|
-
},
|
|
1624
|
+
}, S = () => {
|
|
1618
1625
|
u.current?.scrollBy({ left: g, behavior: "smooth" });
|
|
1619
1626
|
};
|
|
1620
1627
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -1679,7 +1686,7 @@ const Ca = (t) => {
|
|
|
1679
1686
|
{
|
|
1680
1687
|
bindValue: "",
|
|
1681
1688
|
optionalDisplayValue: ">",
|
|
1682
|
-
onClick:
|
|
1689
|
+
onClick: S,
|
|
1683
1690
|
variant: "base",
|
|
1684
1691
|
sizing: e
|
|
1685
1692
|
}
|
|
@@ -1714,20 +1721,20 @@ const Ca = (t) => {
|
|
|
1714
1721
|
e.sections ?? [],
|
|
1715
1722
|
Object.keys(s)
|
|
1716
1723
|
), l = (f) => f.reduce((x, v) => {
|
|
1717
|
-
let
|
|
1718
|
-
return v.sections?.length ? (
|
|
1724
|
+
let S = "", E = {}, C = {}, y = "";
|
|
1725
|
+
return v.sections?.length ? (S = me["smp-layout-section-grid"], E = l(v.sections), v.gridCols === void 0 && (y = me[v.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], v.horizontal || Kt(v.sections) ? C = zt(
|
|
1719
1726
|
v.sections,
|
|
1720
1727
|
v.horizontal ? a : o
|
|
1721
1728
|
) : C = {
|
|
1722
1729
|
[a]: "auto",
|
|
1723
1730
|
[o]: "auto"
|
|
1724
|
-
})) : v.content?.length && (v.gridCols !== void 0 && v.gridCols > 0 ? (
|
|
1731
|
+
})) : v.content?.length && (v.gridCols !== void 0 && v.gridCols > 0 ? (S = me["smp-layout-section-grid"], y = me["smp-grid-template-cols"], C = {
|
|
1725
1732
|
[a]: `repeat(${v.gridCols}, 1fr)`
|
|
1726
|
-
}) :
|
|
1733
|
+
}) : S = me["smp-layout-section-flex"]), {
|
|
1727
1734
|
...x,
|
|
1728
1735
|
...E,
|
|
1729
1736
|
[v.id]: {
|
|
1730
|
-
classes: `${
|
|
1737
|
+
classes: `${S} ${me[v.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${y} ${v.justify ? `smp-justifyContent-${v.justify}` : ""} ${v.align ? `smp-alignItems-${v.align}` : ""}`,
|
|
1731
1738
|
styles: C
|
|
1732
1739
|
}
|
|
1733
1740
|
};
|
|
@@ -1744,8 +1751,8 @@ const Ca = (t) => {
|
|
|
1744
1751
|
"smp-id": `section-${f.id}`,
|
|
1745
1752
|
className: c[f.id].classes,
|
|
1746
1753
|
style: c[f.id].styles,
|
|
1747
|
-
children: f.sections?.length ? f.sections.map((
|
|
1748
|
-
(
|
|
1754
|
+
children: f.sections?.length ? f.sections.map((S) => p(S)) : f.content?.map(
|
|
1755
|
+
(S) => g(S, f.justify, f.align)
|
|
1749
1756
|
)
|
|
1750
1757
|
},
|
|
1751
1758
|
`section-${f.id}`
|
|
@@ -1768,8 +1775,8 @@ const Ca = (t) => {
|
|
|
1768
1775
|
`title-section-${f.id}`
|
|
1769
1776
|
) : v;
|
|
1770
1777
|
}, g = (f, x, v) => {
|
|
1771
|
-
const
|
|
1772
|
-
if (!
|
|
1778
|
+
const S = s[f.id];
|
|
1779
|
+
if (!S) return null;
|
|
1773
1780
|
const C = {
|
|
1774
1781
|
gridColumnStart: (f.colSpan && f.colSpan > 0 ? `span ${f.colSpan}` : f.colStart && f.colStart < 1 ? "1" : void 0) ?? f.colStart,
|
|
1775
1782
|
gridColumnEnd: f.colEnd && f.colEnd > 0 ? f.colEnd : void 0
|
|
@@ -1780,14 +1787,14 @@ const Ca = (t) => {
|
|
|
1780
1787
|
className: y,
|
|
1781
1788
|
style: C,
|
|
1782
1789
|
"smp-id": f.id,
|
|
1783
|
-
children:
|
|
1790
|
+
children: S
|
|
1784
1791
|
},
|
|
1785
1792
|
f.id
|
|
1786
1793
|
);
|
|
1787
1794
|
};
|
|
1788
1795
|
return /* @__PURE__ */ h.jsxs("div", { className: d, style: u, "smp-id": "layout", children: [
|
|
1789
1796
|
e.sectionsType === "tab" && e.sections && e?.sections.length > 1 && /* @__PURE__ */ h.jsx(
|
|
1790
|
-
|
|
1797
|
+
Nn,
|
|
1791
1798
|
{
|
|
1792
1799
|
data: {
|
|
1793
1800
|
type: "SmeupDataTree",
|
|
@@ -1894,13 +1901,13 @@ function Pn(t, e) {
|
|
|
1894
1901
|
case 6: {
|
|
1895
1902
|
i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), Number(n.substring(4)) >= 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
|
|
1896
1903
|
let d = 0, u = 0;
|
|
1897
|
-
return o === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : a === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)),
|
|
1904
|
+
return o === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : a === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)), Nt(i, u, parseInt(c)) && at(r) ? r : t;
|
|
1898
1905
|
}
|
|
1899
1906
|
case 7:
|
|
1900
1907
|
case 8: {
|
|
1901
1908
|
i = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), c = n.substring(4);
|
|
1902
1909
|
let d = 0, u = 0;
|
|
1903
|
-
return o === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : a === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)),
|
|
1910
|
+
return o === 0 ? (d = l, u = i - 1, r.setFullYear(parseInt(c), u, d)) : a === 0 && (d = i, u = l - 1, r.setFullYear(parseInt(c), u, d)), Nt(d, u, parseInt(c)) && at(r) ? r : t;
|
|
1904
1911
|
}
|
|
1905
1912
|
}
|
|
1906
1913
|
return t;
|
|
@@ -1914,9 +1921,9 @@ function at(t) {
|
|
|
1914
1921
|
function Fn(t) {
|
|
1915
1922
|
if (!/^\d{8}$/.test(t)) return !1;
|
|
1916
1923
|
const e = parseInt(t.slice(0, 4), 10), r = parseInt(t.slice(4, 6), 10), n = parseInt(t.slice(6, 8), 10);
|
|
1917
|
-
return
|
|
1924
|
+
return Nt(n, r - 1, e);
|
|
1918
1925
|
}
|
|
1919
|
-
function
|
|
1926
|
+
function Nt(t, e, r) {
|
|
1920
1927
|
const n = [
|
|
1921
1928
|
31,
|
|
1922
1929
|
// January
|
|
@@ -2003,26 +2010,26 @@ function Be({
|
|
|
2003
2010
|
requestAnimationFrame(o);
|
|
2004
2011
|
return;
|
|
2005
2012
|
}
|
|
2006
|
-
const x = window.scrollY, v = window.scrollX,
|
|
2013
|
+
const x = window.scrollY, v = window.scrollX, S = window.innerWidth, E = window.innerHeight;
|
|
2007
2014
|
let C = c + x, y = d + v, b = t;
|
|
2008
|
-
const
|
|
2015
|
+
const j = {
|
|
2009
2016
|
top: c - g < 0,
|
|
2010
2017
|
bottom: c + p + g > E,
|
|
2011
2018
|
left: d - f < 0,
|
|
2012
|
-
right: d + u + f >
|
|
2019
|
+
right: d + u + f > S
|
|
2013
2020
|
};
|
|
2014
2021
|
switch (t) {
|
|
2015
2022
|
case "top":
|
|
2016
|
-
|
|
2023
|
+
j.top && !j.bottom && (b = "bottom");
|
|
2017
2024
|
break;
|
|
2018
2025
|
case "bottom":
|
|
2019
|
-
|
|
2026
|
+
j.bottom && !j.top && (b = "top");
|
|
2020
2027
|
break;
|
|
2021
2028
|
case "left":
|
|
2022
|
-
|
|
2029
|
+
j.left && !j.right && (b = "right");
|
|
2023
2030
|
break;
|
|
2024
2031
|
case "right":
|
|
2025
|
-
|
|
2032
|
+
j.right && !j.left && (b = "left");
|
|
2026
2033
|
break;
|
|
2027
2034
|
}
|
|
2028
2035
|
switch (b) {
|
|
@@ -2044,7 +2051,7 @@ function Be({
|
|
|
2044
2051
|
Math.min(C, x + E - g)
|
|
2045
2052
|
), y = Math.max(
|
|
2046
2053
|
v,
|
|
2047
|
-
Math.min(y, v +
|
|
2054
|
+
Math.min(y, v + S - f)
|
|
2048
2055
|
), requestAnimationFrame(() => {
|
|
2049
2056
|
l.style.transform = `translate(${y}px, ${C}px)`, l.style.opacity = "1";
|
|
2050
2057
|
});
|
|
@@ -2122,46 +2129,46 @@ const Ie = (t, e, r) => {
|
|
|
2122
2129
|
inputType: f = "text",
|
|
2123
2130
|
ariaLabel: x = "input field",
|
|
2124
2131
|
label: v,
|
|
2125
|
-
helperText:
|
|
2132
|
+
helperText: S = !1,
|
|
2126
2133
|
error: E,
|
|
2127
2134
|
appearance: C = "base",
|
|
2128
2135
|
isClearable: y = !1,
|
|
2129
2136
|
fullWidth: b = !1,
|
|
2130
|
-
_dataComponent:
|
|
2137
|
+
_dataComponent: j = "textfield",
|
|
2131
2138
|
min: N,
|
|
2132
|
-
max:
|
|
2133
|
-
step:
|
|
2134
|
-
inputMode:
|
|
2135
|
-
width:
|
|
2136
|
-
autocomplete:
|
|
2139
|
+
max: V,
|
|
2140
|
+
step: I,
|
|
2141
|
+
inputMode: P = "text",
|
|
2142
|
+
width: $,
|
|
2143
|
+
autocomplete: O,
|
|
2137
2144
|
size: T,
|
|
2138
|
-
maxLength:
|
|
2139
|
-
onBlur:
|
|
2145
|
+
maxLength: _,
|
|
2146
|
+
onBlur: W,
|
|
2140
2147
|
onChange: H,
|
|
2141
2148
|
onKeyDown: X,
|
|
2142
2149
|
onShapeIconClick: Q,
|
|
2143
|
-
onClick:
|
|
2150
|
+
onClick: A
|
|
2144
2151
|
}) => {
|
|
2145
|
-
const m = je(),
|
|
2146
|
-
H?.(
|
|
2152
|
+
const m = je(), w = `${m}-helper`, D = E ? "danger" : l, k = S || !!E, R = (B) => {
|
|
2153
|
+
H?.(B.target.value);
|
|
2147
2154
|
}, F = () => {
|
|
2148
2155
|
r && r != "" && H?.("");
|
|
2149
|
-
},
|
|
2156
|
+
}, U = {
|
|
2150
2157
|
wrapper: `${be["smp-textfield-wrapper"]} ${b ? be["smp-textfield-fullWidth"] : ""}`,
|
|
2151
2158
|
container: `${be["smp-textfield"]} ${e ? be["smp-textfield-disabled"] : ""} ${s ? be["smp-textfield-placeholder"] : ""} ${i ? be[`smp-textfield-${i}`] : ""} ${D ? be[`smp-textfield-${D}`] : ""} ${C ? be[`smp-textfield-${C}`] : ""} ${a ? "" : be["smp-textfield-readOnly"]} ${d ? be["smp-textfield-top-right-indicator"] : ""}`,
|
|
2152
2159
|
input: `${be["smp-textfield-input"]}`
|
|
2153
2160
|
};
|
|
2154
2161
|
if (c && (c !== "notSelectable" || a)) {
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2162
|
+
const B = be[`smp-textfield-variant-${c}`];
|
|
2163
|
+
B && (U.container += ` ${B}`);
|
|
2157
2164
|
}
|
|
2158
|
-
const G =
|
|
2159
|
-
return /* @__PURE__ */ h.jsxs("div", { className:
|
|
2165
|
+
const G = $ ? { "--smp-textField-width-base": $ } : void 0;
|
|
2166
|
+
return /* @__PURE__ */ h.jsxs("div", { className: U.wrapper, "data-component": j, children: [
|
|
2160
2167
|
v && /* @__PURE__ */ h.jsx(De, { label: v, disabled: e, htmlFor: m }),
|
|
2161
2168
|
/* @__PURE__ */ h.jsxs(
|
|
2162
2169
|
"div",
|
|
2163
2170
|
{
|
|
2164
|
-
className:
|
|
2171
|
+
className: U.container,
|
|
2165
2172
|
ref: p,
|
|
2166
2173
|
style: G,
|
|
2167
2174
|
children: [
|
|
@@ -2174,23 +2181,23 @@ const Ie = (t, e, r) => {
|
|
|
2174
2181
|
type: f,
|
|
2175
2182
|
value: r,
|
|
2176
2183
|
placeholder: s,
|
|
2177
|
-
onChange:
|
|
2178
|
-
onBlur:
|
|
2179
|
-
className:
|
|
2184
|
+
onChange: R,
|
|
2185
|
+
onBlur: W,
|
|
2186
|
+
className: U.input,
|
|
2180
2187
|
disabled: e,
|
|
2181
2188
|
readOnly: !a,
|
|
2182
2189
|
onKeyDown: X,
|
|
2183
2190
|
"aria-label": x,
|
|
2184
2191
|
ref: g,
|
|
2185
|
-
"aria-describedby":
|
|
2192
|
+
"aria-describedby": k ? w : void 0,
|
|
2186
2193
|
min: N,
|
|
2187
|
-
max:
|
|
2188
|
-
step:
|
|
2189
|
-
inputMode:
|
|
2190
|
-
autoComplete:
|
|
2194
|
+
max: V,
|
|
2195
|
+
step: I,
|
|
2196
|
+
inputMode: P,
|
|
2197
|
+
autoComplete: O,
|
|
2191
2198
|
size: T,
|
|
2192
|
-
maxLength:
|
|
2193
|
-
onClick:
|
|
2199
|
+
maxLength: _,
|
|
2200
|
+
onClick: A
|
|
2194
2201
|
}
|
|
2195
2202
|
),
|
|
2196
2203
|
y && /* @__PURE__ */ h.jsx(
|
|
@@ -2216,18 +2223,18 @@ const Ie = (t, e, r) => {
|
|
|
2216
2223
|
]
|
|
2217
2224
|
}
|
|
2218
2225
|
),
|
|
2219
|
-
|
|
2226
|
+
k && /* @__PURE__ */ h.jsx(
|
|
2220
2227
|
Br,
|
|
2221
2228
|
{
|
|
2222
2229
|
helperText: E,
|
|
2223
2230
|
disabled: e,
|
|
2224
2231
|
state: D,
|
|
2225
|
-
id:
|
|
2232
|
+
id: w
|
|
2226
2233
|
}
|
|
2227
2234
|
)
|
|
2228
2235
|
] });
|
|
2229
2236
|
};
|
|
2230
|
-
function
|
|
2237
|
+
function Wr({
|
|
2231
2238
|
items: t,
|
|
2232
2239
|
itemHeight: e,
|
|
2233
2240
|
containerHeight: r,
|
|
@@ -2248,8 +2255,8 @@ function Yr({
|
|
|
2248
2255
|
a(f);
|
|
2249
2256
|
}, []), p = (g) => {
|
|
2250
2257
|
if (!o.current) return;
|
|
2251
|
-
const f = g * e, x = f + e, v = o.current,
|
|
2252
|
-
f <
|
|
2258
|
+
const f = g * e, x = f + e, v = o.current, S = v.scrollTop, E = S + r;
|
|
2259
|
+
f < S ? v.scrollTop = f : x > E && (v.scrollTop = x - r);
|
|
2253
2260
|
};
|
|
2254
2261
|
return {
|
|
2255
2262
|
virtualItems: d,
|
|
@@ -2296,7 +2303,7 @@ function Un(t, e, r = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2296
2303
|
}
|
|
2297
2304
|
return Math.ceil(o + n);
|
|
2298
2305
|
}
|
|
2299
|
-
const Bn = 10,
|
|
2306
|
+
const Bn = 10, Yr = ({
|
|
2300
2307
|
id: t,
|
|
2301
2308
|
options: e,
|
|
2302
2309
|
displayMode: r = "Both",
|
|
@@ -2313,11 +2320,11 @@ const Bn = 10, Wr = ({
|
|
|
2313
2320
|
}) => {
|
|
2314
2321
|
const [u, p] = q(""), g = 40, [f, x] = q(
|
|
2315
2322
|
a !== null ? a : -1
|
|
2316
|
-
), [v,
|
|
2317
|
-
(
|
|
2318
|
-
) : e, b = (
|
|
2319
|
-
p(
|
|
2320
|
-
}, { virtualItems:
|
|
2323
|
+
), [v, S] = q(i || 200), E = ie(null), C = s !== void 0 ? s : e.length > Bn, y = u ? e.filter(
|
|
2324
|
+
(_) => _.label.toLowerCase().includes(u.toLowerCase())
|
|
2325
|
+
) : e, b = (_) => {
|
|
2326
|
+
p(_);
|
|
2327
|
+
}, { virtualItems: j, containerProps: N, innerProps: V, scrollToIndex: I } = Wr({
|
|
2321
2328
|
items: y,
|
|
2322
2329
|
itemHeight: g,
|
|
2323
2330
|
containerHeight: 200,
|
|
@@ -2326,24 +2333,24 @@ const Bn = 10, Wr = ({
|
|
|
2326
2333
|
se(() => {
|
|
2327
2334
|
a !== null && a !== f && x(a);
|
|
2328
2335
|
}, [a]), se(() => {
|
|
2329
|
-
f >= 0 && f < y.length &&
|
|
2336
|
+
f >= 0 && f < y.length && I(f);
|
|
2330
2337
|
}, [f, y]), se(() => {
|
|
2331
2338
|
d && E?.current && E.current.focus();
|
|
2332
2339
|
}, [d, E]), se(() => {
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2340
|
+
const _ = Un(e, r);
|
|
2341
|
+
S(_);
|
|
2335
2342
|
}, [e, r]);
|
|
2336
|
-
const
|
|
2337
|
-
if (
|
|
2338
|
-
|
|
2339
|
-
let
|
|
2340
|
-
|
|
2341
|
-
} else
|
|
2342
|
-
c && c(
|
|
2343
|
-
},
|
|
2344
|
-
|
|
2345
|
-
},
|
|
2346
|
-
|
|
2343
|
+
const P = (_) => {
|
|
2344
|
+
if (_.key === "ArrowDown" || _.key === "ArrowUp") {
|
|
2345
|
+
_.preventDefault();
|
|
2346
|
+
let W = f;
|
|
2347
|
+
_.key === "ArrowDown" ? W = f < y.length - 1 ? f + 1 : 0 : _.key === "ArrowUp" && (W = f > 0 ? f - 1 : y.length - 1), x(W);
|
|
2348
|
+
} else _.key === "Enter" ? f >= 0 && f < y.length && l?.(y[f]) : _.key === "Escape" && (_.preventDefault(), _.stopPropagation());
|
|
2349
|
+
c && c(_);
|
|
2350
|
+
}, $ = (_) => {
|
|
2351
|
+
P(_);
|
|
2352
|
+
}, O = (_) => {
|
|
2353
|
+
P(_);
|
|
2347
2354
|
}, T = {
|
|
2348
2355
|
wrapper: `${ot["smp-list"]}`,
|
|
2349
2356
|
container: `${ot["smp-list-container"]}`,
|
|
@@ -2369,7 +2376,7 @@ const Bn = 10, Wr = ({
|
|
|
2369
2376
|
placeholder: "Search...",
|
|
2370
2377
|
fullWidth: !0,
|
|
2371
2378
|
onChange: b,
|
|
2372
|
-
onKeyDown:
|
|
2379
|
+
onKeyDown: $,
|
|
2373
2380
|
inputRef: E
|
|
2374
2381
|
}
|
|
2375
2382
|
),
|
|
@@ -2381,21 +2388,21 @@ const Bn = 10, Wr = ({
|
|
|
2381
2388
|
tabIndex: 0,
|
|
2382
2389
|
role: "listbox",
|
|
2383
2390
|
"aria-label": "List",
|
|
2384
|
-
onKeyDown:
|
|
2391
|
+
onKeyDown: O,
|
|
2385
2392
|
"aria-activedescendant": f >= 0 && f < y.length ? y[f]?.id : void 0,
|
|
2386
|
-
children: /* @__PURE__ */ h.jsx("div", { ...
|
|
2387
|
-
const X = o.includes(
|
|
2393
|
+
children: /* @__PURE__ */ h.jsx("div", { ...V, className: T.virtualScroll, children: j.map(({ item: _, index: W, offsetTop: H }) => {
|
|
2394
|
+
const X = o.includes(_.id);
|
|
2388
2395
|
return (
|
|
2389
2396
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2390
2397
|
/* @__PURE__ */ h.jsxs(
|
|
2391
2398
|
"li",
|
|
2392
2399
|
{
|
|
2393
2400
|
role: "option",
|
|
2394
|
-
id:
|
|
2395
|
-
"aria-selected": f ===
|
|
2401
|
+
id: _.id,
|
|
2402
|
+
"aria-selected": f === W ? "true" : "false",
|
|
2396
2403
|
tabIndex: -1,
|
|
2397
|
-
className: `${T.listItem} ${f ===
|
|
2398
|
-
"aria-label":
|
|
2404
|
+
className: `${T.listItem} ${f === W ? "selected-item" : ""}`,
|
|
2405
|
+
"aria-label": _.id + "-" + _.label,
|
|
2399
2406
|
style: {
|
|
2400
2407
|
height: `${g}px`,
|
|
2401
2408
|
lineHeight: `calc(${g}px - 2*2px)`,
|
|
@@ -2403,14 +2410,14 @@ const Bn = 10, Wr = ({
|
|
|
2403
2410
|
transform: `translateY(${H}px)`
|
|
2404
2411
|
},
|
|
2405
2412
|
onClick: () => {
|
|
2406
|
-
l?.(
|
|
2413
|
+
l?.(_), x(W);
|
|
2407
2414
|
},
|
|
2408
2415
|
children: [
|
|
2409
|
-
Ie(
|
|
2416
|
+
Ie(_.id, _.label, r),
|
|
2410
2417
|
X && /* @__PURE__ */ h.jsx(ue, { icon: "check", width: 16 })
|
|
2411
2418
|
]
|
|
2412
2419
|
},
|
|
2413
|
-
|
|
2420
|
+
_.id
|
|
2414
2421
|
)
|
|
2415
2422
|
);
|
|
2416
2423
|
}) })
|
|
@@ -2435,7 +2442,7 @@ const Bn = 10, Wr = ({
|
|
|
2435
2442
|
Ie(e, r, t)
|
|
2436
2443
|
);
|
|
2437
2444
|
}, [r, t]), /* @__PURE__ */ h.jsx($e, { ...n, bindValue: s });
|
|
2438
|
-
},
|
|
2445
|
+
}, Wn = (t) => {
|
|
2439
2446
|
const e = ie(null);
|
|
2440
2447
|
return se(() => () => {
|
|
2441
2448
|
e.current && clearTimeout(e.current);
|
|
@@ -2445,7 +2452,7 @@ const Bn = 10, Wr = ({
|
|
|
2445
2452
|
}, t);
|
|
2446
2453
|
};
|
|
2447
2454
|
};
|
|
2448
|
-
function
|
|
2455
|
+
function We({
|
|
2449
2456
|
children: t
|
|
2450
2457
|
}) {
|
|
2451
2458
|
const [e, r] = q(!1);
|
|
@@ -2474,7 +2481,7 @@ const yt = (t, e, r) => {
|
|
|
2474
2481
|
t = n, e = s;
|
|
2475
2482
|
});
|
|
2476
2483
|
return r.resolve = t, r.reject = e, r;
|
|
2477
|
-
}, mr = (t) => t == null ? "" : "" + t,
|
|
2484
|
+
}, mr = (t) => t == null ? "" : "" + t, Yn = (t, e, r) => {
|
|
2478
2485
|
t.forEach((n) => {
|
|
2479
2486
|
e[n] && (r[n] = e[n]);
|
|
2480
2487
|
});
|
|
@@ -2737,7 +2744,7 @@ var qr = {
|
|
|
2737
2744
|
const xr = {}, wr = (t) => !J(t) && typeof t != "boolean" && typeof t != "number";
|
|
2738
2745
|
class gt extends vt {
|
|
2739
2746
|
constructor(e, r = {}) {
|
|
2740
|
-
super(),
|
|
2747
|
+
super(), Yn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = we.create("translator");
|
|
2741
2748
|
}
|
|
2742
2749
|
changeLanguage(e) {
|
|
2743
2750
|
e && (this.language = e);
|
|
@@ -2804,71 +2811,71 @@ class gt extends vt {
|
|
|
2804
2811
|
} : i;
|
|
2805
2812
|
const g = this.resolve(e, s);
|
|
2806
2813
|
let f = g?.res;
|
|
2807
|
-
const x = g?.usedKey || i, v = g?.exactUsedKey || i,
|
|
2814
|
+
const x = g?.usedKey || i, v = g?.exactUsedKey || i, S = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, y = s.count !== void 0 && !J(s.count), b = gt.hasDefaultValue(s), j = y ? this.pluralResolver.getSuffix(u, s.count, s) : "", N = s.ordinal && y ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2808
2815
|
ordinal: !1
|
|
2809
|
-
}) : "",
|
|
2810
|
-
let
|
|
2811
|
-
C && !f && b && (
|
|
2812
|
-
const
|
|
2813
|
-
if (C &&
|
|
2816
|
+
}) : "", V = y && !s.ordinal && s.count === 0, I = V && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${N}`] || s.defaultValue;
|
|
2817
|
+
let P = f;
|
|
2818
|
+
C && !f && b && (P = I);
|
|
2819
|
+
const $ = wr(P), O = Object.prototype.toString.apply(P);
|
|
2820
|
+
if (C && P && $ && S.indexOf(O) < 0 && !(J(E) && Array.isArray(P))) {
|
|
2814
2821
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2815
2822
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2816
|
-
const T = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x,
|
|
2823
|
+
const T = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, P, {
|
|
2817
2824
|
...s,
|
|
2818
2825
|
ns: l
|
|
2819
2826
|
}) : `key '${i} (${this.language})' returned an object instead of string.`;
|
|
2820
2827
|
return a ? (g.res = T, g.usedParams = this.getUsedParamsDetails(s), g) : T;
|
|
2821
2828
|
}
|
|
2822
2829
|
if (o) {
|
|
2823
|
-
const T = Array.isArray(
|
|
2824
|
-
for (const H in
|
|
2825
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2826
|
-
const X = `${
|
|
2827
|
-
b && !f ?
|
|
2830
|
+
const T = Array.isArray(P), _ = T ? [] : {}, W = T ? v : x;
|
|
2831
|
+
for (const H in P)
|
|
2832
|
+
if (Object.prototype.hasOwnProperty.call(P, H)) {
|
|
2833
|
+
const X = `${W}${o}${H}`;
|
|
2834
|
+
b && !f ? _[H] = this.translate(X, {
|
|
2828
2835
|
...s,
|
|
2829
|
-
defaultValue: wr(
|
|
2836
|
+
defaultValue: wr(I) ? I[H] : void 0,
|
|
2830
2837
|
joinArrays: !1,
|
|
2831
2838
|
ns: l
|
|
2832
|
-
}) :
|
|
2839
|
+
}) : _[H] = this.translate(X, {
|
|
2833
2840
|
...s,
|
|
2834
2841
|
joinArrays: !1,
|
|
2835
2842
|
ns: l
|
|
2836
|
-
}),
|
|
2843
|
+
}), _[H] === X && (_[H] = P[H]);
|
|
2837
2844
|
}
|
|
2838
|
-
f =
|
|
2845
|
+
f = _;
|
|
2839
2846
|
}
|
|
2840
2847
|
} else if (C && J(E) && Array.isArray(f))
|
|
2841
2848
|
f = f.join(E), f && (f = this.extendTranslation(f, e, s, n));
|
|
2842
2849
|
else {
|
|
2843
|
-
let T = !1,
|
|
2844
|
-
!this.isValidLookup(f) && b && (T = !0, f =
|
|
2845
|
-
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2846
|
-
if (
|
|
2847
|
-
if (this.logger.log(X ? "updateKey" : "missingKey", u, c, i, X ?
|
|
2848
|
-
const
|
|
2850
|
+
let T = !1, _ = !1;
|
|
2851
|
+
!this.isValidLookup(f) && b && (T = !0, f = I), this.isValidLookup(f) || (_ = !0, f = i);
|
|
2852
|
+
const H = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && _ ? void 0 : f, X = b && I !== f && this.options.updateMissing;
|
|
2853
|
+
if (_ || T || X) {
|
|
2854
|
+
if (this.logger.log(X ? "updateKey" : "missingKey", u, c, i, X ? I : f), o) {
|
|
2855
|
+
const w = this.resolve(i, {
|
|
2849
2856
|
...s,
|
|
2850
2857
|
keySeparator: !1
|
|
2851
2858
|
});
|
|
2852
|
-
|
|
2859
|
+
w && w.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.");
|
|
2853
2860
|
}
|
|
2854
2861
|
let Q = [];
|
|
2855
|
-
const
|
|
2856
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2857
|
-
for (let
|
|
2858
|
-
Q.push(
|
|
2862
|
+
const A = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2863
|
+
if (this.options.saveMissingTo === "fallback" && A && A[0])
|
|
2864
|
+
for (let w = 0; w < A.length; w++)
|
|
2865
|
+
Q.push(A[w]);
|
|
2859
2866
|
else this.options.saveMissingTo === "all" ? Q = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Q.push(s.lng || this.language);
|
|
2860
|
-
const m = (
|
|
2861
|
-
const
|
|
2862
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2867
|
+
const m = (w, D, k) => {
|
|
2868
|
+
const R = b && k !== f ? k : H;
|
|
2869
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(w, c, D, R, X, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(w, c, D, R, X, s), this.emit("missingKey", w, c, D, f);
|
|
2863
2870
|
};
|
|
2864
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && y ? Q.forEach((
|
|
2865
|
-
const D = this.pluralResolver.getSuffixes(
|
|
2866
|
-
|
|
2867
|
-
m([
|
|
2871
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && y ? Q.forEach((w) => {
|
|
2872
|
+
const D = this.pluralResolver.getSuffixes(w, s);
|
|
2873
|
+
V && s[`defaultValue${this.options.pluralSeparator}zero`] && D.indexOf(`${this.options.pluralSeparator}zero`) < 0 && D.push(`${this.options.pluralSeparator}zero`), D.forEach((k) => {
|
|
2874
|
+
m([w], i + k, s[`defaultValue${k}`] || I);
|
|
2868
2875
|
});
|
|
2869
|
-
}) : m(Q, i,
|
|
2876
|
+
}) : m(Q, i, I));
|
|
2870
2877
|
}
|
|
2871
|
-
f = this.extendTranslation(f, e, s, g, n),
|
|
2878
|
+
f = this.extendTranslation(f, e, s, g, n), _ && f === i && this.options.appendNamespaceToMissingKey && (f = `${c}${d}${i}`), (_ || T) && this.options.parseMissingKeyHandler && (f = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${d}${i}` : i, T ? f : void 0, s));
|
|
2872
2879
|
}
|
|
2873
2880
|
return a ? (g.res = f, g.usedParams = this.getUsedParamsDetails(s), g) : f;
|
|
2874
2881
|
}
|
|
@@ -2923,24 +2930,24 @@ class gt extends vt {
|
|
|
2923
2930
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2924
2931
|
const p = r.count !== void 0 && !J(r.count), g = p && !r.ordinal && r.count === 0, f = r.context !== void 0 && (J(r.context) || typeof r.context == "number") && r.context !== "", x = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
|
2925
2932
|
u.forEach((v) => {
|
|
2926
|
-
this.isValidLookup(n) || (i = v, !xr[`${x[0]}-${v}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (xr[`${x[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), x.forEach((
|
|
2933
|
+
this.isValidLookup(n) || (i = v, !xr[`${x[0]}-${v}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(i) && (xr[`${x[0]}-${v}`] = !0, this.logger.warn(`key "${s}" for languages "${x.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), x.forEach((S) => {
|
|
2927
2934
|
if (this.isValidLookup(n)) return;
|
|
2928
|
-
o =
|
|
2935
|
+
o = S;
|
|
2929
2936
|
const E = [d];
|
|
2930
2937
|
if (this.i18nFormat?.addLookupKeys)
|
|
2931
|
-
this.i18nFormat.addLookupKeys(E, d,
|
|
2938
|
+
this.i18nFormat.addLookupKeys(E, d, S, v, r);
|
|
2932
2939
|
else {
|
|
2933
2940
|
let y;
|
|
2934
|
-
p && (y = this.pluralResolver.getSuffix(
|
|
2935
|
-
const b = `${this.options.pluralSeparator}zero`,
|
|
2936
|
-
if (p && (E.push(d + y), r.ordinal && y.indexOf(
|
|
2941
|
+
p && (y = this.pluralResolver.getSuffix(S, r.count, r));
|
|
2942
|
+
const b = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2943
|
+
if (p && (E.push(d + y), r.ordinal && y.indexOf(j) === 0 && E.push(d + y.replace(j, this.options.pluralSeparator)), g && E.push(d + b)), f) {
|
|
2937
2944
|
const N = `${d}${this.options.contextSeparator}${r.context}`;
|
|
2938
|
-
E.push(N), p && (E.push(N + y), r.ordinal && y.indexOf(
|
|
2945
|
+
E.push(N), p && (E.push(N + y), r.ordinal && y.indexOf(j) === 0 && E.push(N + y.replace(j, this.options.pluralSeparator)), g && E.push(N + b));
|
|
2939
2946
|
}
|
|
2940
2947
|
}
|
|
2941
2948
|
let C;
|
|
2942
2949
|
for (; C = E.pop(); )
|
|
2943
|
-
this.isValidLookup(n) || (a = C, n = this.getResource(
|
|
2950
|
+
this.isValidLookup(n) || (a = C, n = this.getResource(S, v, C, r));
|
|
2944
2951
|
}));
|
|
2945
2952
|
});
|
|
2946
2953
|
}), {
|
|
@@ -3132,10 +3139,10 @@ class rs {
|
|
|
3132
3139
|
nestingSuffix: f,
|
|
3133
3140
|
nestingSuffixEscaped: x,
|
|
3134
3141
|
nestingOptionsSeparator: v,
|
|
3135
|
-
maxReplaces:
|
|
3142
|
+
maxReplaces: S,
|
|
3136
3143
|
alwaysFormat: E
|
|
3137
3144
|
} = e.interpolation;
|
|
3138
|
-
this.escape = r !== void 0 ? r : Kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Fe(a) : o || "{{", this.suffix = i ? Fe(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? Fe(p) : g || Fe("$t("), this.nestingSuffix = f ? Fe(f) : x || Fe(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces =
|
|
3145
|
+
this.escape = r !== void 0 ? r : Kn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Fe(a) : o || "{{", this.suffix = i ? Fe(i) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = d ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : d || "", this.nestingPrefix = p ? Fe(p) : g || Fe("$t("), this.nestingSuffix = f ? Fe(f) : x || Fe(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
3139
3146
|
}
|
|
3140
3147
|
reset() {
|
|
3141
3148
|
this.options && this.init(this.options);
|
|
@@ -3148,12 +3155,12 @@ class rs {
|
|
|
3148
3155
|
let a, o, i;
|
|
3149
3156
|
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (g) => {
|
|
3150
3157
|
if (g.indexOf(this.formatSeparator) < 0) {
|
|
3151
|
-
const
|
|
3152
|
-
return this.alwaysFormat ? this.format(
|
|
3158
|
+
const S = Tr(r, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3159
|
+
return this.alwaysFormat ? this.format(S, void 0, n, {
|
|
3153
3160
|
...s,
|
|
3154
3161
|
...r,
|
|
3155
3162
|
interpolationkey: g
|
|
3156
|
-
}) :
|
|
3163
|
+
}) : S;
|
|
3157
3164
|
}
|
|
3158
3165
|
const f = g.split(this.formatSeparator), x = f.shift().trim(), v = f.join(this.formatSeparator).trim();
|
|
3159
3166
|
return this.format(Tr(r, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), v, n, {
|
|
@@ -3915,41 +3922,41 @@ const Hr = ({
|
|
|
3915
3922
|
_multiActiveIndex: g,
|
|
3916
3923
|
...f
|
|
3917
3924
|
}) => {
|
|
3918
|
-
const x = ie(null), [v,
|
|
3925
|
+
const x = ie(null), [v, S] = q(t), [E, C] = q(e), { translate: y } = Se(), [b, j] = q(!1), [N, V] = q(r || []), [I, P] = q(0), [$, O] = q([t]), { anchorRef: T, targetRef: _, anchorWidth: W } = Be({
|
|
3919
3926
|
position: "bottom",
|
|
3920
3927
|
enabled: b
|
|
3921
3928
|
}), H = oe(() => {
|
|
3922
|
-
|
|
3929
|
+
j(!1), x?.current?.focus();
|
|
3923
3930
|
}, []);
|
|
3924
|
-
yt([
|
|
3925
|
-
const X =
|
|
3926
|
-
|
|
3927
|
-
},
|
|
3931
|
+
yt([_], b, () => H());
|
|
3932
|
+
const X = Wn(400), Q = (R) => {
|
|
3933
|
+
R.length >= o ? A(R) : H(), S(R), C(e), c || d?.(R, e);
|
|
3934
|
+
}, A = (R) => {
|
|
3928
3935
|
X(async () => {
|
|
3929
3936
|
if (l && u) {
|
|
3930
|
-
const F = await u(l,
|
|
3931
|
-
|
|
3937
|
+
const F = await u(l, R);
|
|
3938
|
+
V(F), P(F.length > 0 ? 0 : -1), j(!0);
|
|
3932
3939
|
}
|
|
3933
3940
|
});
|
|
3934
3941
|
}, m = () => {
|
|
3935
3942
|
b || p?.();
|
|
3936
|
-
},
|
|
3937
|
-
c ? (
|
|
3938
|
-
const F = N.findIndex((
|
|
3939
|
-
|
|
3940
|
-
}, D = (
|
|
3941
|
-
|
|
3942
|
-
},
|
|
3943
|
-
if ((
|
|
3944
|
-
const F =
|
|
3945
|
-
|
|
3946
|
-
}
|
|
3947
|
-
switch (
|
|
3943
|
+
}, w = (R) => {
|
|
3944
|
+
c ? (S(""), C("")) : (S(R.id), C(R.label)), d?.(R.id, R.label);
|
|
3945
|
+
const F = N.findIndex((U) => U.id === R.id);
|
|
3946
|
+
P(F), O([R.id]), H();
|
|
3947
|
+
}, D = (R) => {
|
|
3948
|
+
R.key === "Escape" && (H(), P(-1));
|
|
3949
|
+
}, k = (R) => {
|
|
3950
|
+
if ((R.key === "ArrowDown" || R.key === "ArrowUp") && (R.preventDefault(), b)) {
|
|
3951
|
+
const F = R.key === "ArrowDown" ? (I + 1) % N.length : (I - 1 + N.length) % N.length;
|
|
3952
|
+
P(F);
|
|
3953
|
+
}
|
|
3954
|
+
switch (R.key) {
|
|
3948
3955
|
case "Enter":
|
|
3949
|
-
|
|
3956
|
+
I >= 0 && I < N.length ? w(N[I]) : c && (d?.(v, ""), H(), S(""), C(""));
|
|
3950
3957
|
break;
|
|
3951
3958
|
case "Escape":
|
|
3952
|
-
H(),
|
|
3959
|
+
H(), P(-1);
|
|
3953
3960
|
break;
|
|
3954
3961
|
}
|
|
3955
3962
|
};
|
|
@@ -3970,22 +3977,22 @@ const Hr = ({
|
|
|
3970
3977
|
isClearable: a,
|
|
3971
3978
|
inputRef: x,
|
|
3972
3979
|
onChange: Q,
|
|
3973
|
-
onKeyDown:
|
|
3980
|
+
onKeyDown: k,
|
|
3974
3981
|
onBlur: m,
|
|
3975
|
-
onShapeIconClick: () =>
|
|
3982
|
+
onShapeIconClick: () => A(v),
|
|
3976
3983
|
"aria-autocomplete": "list"
|
|
3977
3984
|
}
|
|
3978
3985
|
),
|
|
3979
|
-
b && /* @__PURE__ */ h.jsx(
|
|
3980
|
-
|
|
3986
|
+
b && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
3987
|
+
Yr,
|
|
3981
3988
|
{
|
|
3982
3989
|
options: N,
|
|
3983
3990
|
displayMode: s,
|
|
3984
|
-
onClick:
|
|
3985
|
-
ref:
|
|
3986
|
-
selectedIndex:
|
|
3987
|
-
activeIndex: g ||
|
|
3988
|
-
width:
|
|
3991
|
+
onClick: w,
|
|
3992
|
+
ref: _,
|
|
3993
|
+
selectedIndex: I,
|
|
3994
|
+
activeIndex: g || $,
|
|
3995
|
+
width: W,
|
|
3989
3996
|
showFilter: !1,
|
|
3990
3997
|
onKeyDown: D,
|
|
3991
3998
|
isOpen: b
|
|
@@ -4018,7 +4025,7 @@ const Hr = ({
|
|
|
4018
4025
|
);
|
|
4019
4026
|
});
|
|
4020
4027
|
}, [x, e, f]);
|
|
4021
|
-
const
|
|
4028
|
+
const S = {
|
|
4022
4029
|
container: `smp-button-list smp-button-list-${r} smp-justifyContent-${n}`
|
|
4023
4030
|
}, E = x?.map((C, y) => {
|
|
4024
4031
|
const b = {
|
|
@@ -4041,7 +4048,7 @@ const Hr = ({
|
|
|
4041
4048
|
};
|
|
4042
4049
|
return /* @__PURE__ */ h.jsx(fe, { ...b }, `button-${y}`);
|
|
4043
4050
|
});
|
|
4044
|
-
return /* @__PURE__ */ h.jsx("div", { role: "list", "data-component": "button-list", className:
|
|
4051
|
+
return /* @__PURE__ */ h.jsx("div", { role: "list", "data-component": "button-list", className: S.container, children: E });
|
|
4045
4052
|
}, Ds = {
|
|
4046
4053
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
4047
4054
|
}, Bt = ({
|
|
@@ -4074,7 +4081,7 @@ const Hr = ({
|
|
|
4074
4081
|
}
|
|
4075
4082
|
)
|
|
4076
4083
|
] });
|
|
4077
|
-
},
|
|
4084
|
+
}, Wt = ({
|
|
4078
4085
|
elements: t,
|
|
4079
4086
|
isEditable: e = !1,
|
|
4080
4087
|
displayMode: r = "Both",
|
|
@@ -4127,7 +4134,7 @@ const Hr = ({
|
|
|
4127
4134
|
]
|
|
4128
4135
|
},
|
|
4129
4136
|
`chip-${f}`
|
|
4130
|
-
),
|
|
4137
|
+
), S = o && f < t.length - 1 ? /* @__PURE__ */ h.jsx(
|
|
4131
4138
|
ue,
|
|
4132
4139
|
{
|
|
4133
4140
|
icon: "chevron-right",
|
|
@@ -4135,10 +4142,10 @@ const Hr = ({
|
|
|
4135
4142
|
},
|
|
4136
4143
|
`separator-${f}`
|
|
4137
4144
|
) : null;
|
|
4138
|
-
return [v,
|
|
4145
|
+
return [v, S].filter(Boolean);
|
|
4139
4146
|
}) });
|
|
4140
4147
|
};
|
|
4141
|
-
function
|
|
4148
|
+
function Yt(t, e) {
|
|
4142
4149
|
const r = ie(null);
|
|
4143
4150
|
se(() => {
|
|
4144
4151
|
if (!t) return;
|
|
@@ -4189,24 +4196,24 @@ const It = ({
|
|
|
4189
4196
|
multiActiveIndex: c,
|
|
4190
4197
|
...d
|
|
4191
4198
|
}) => {
|
|
4192
|
-
const u = ie(null), [p, g] = q(!1), [f, x] = q(r), [v,
|
|
4199
|
+
const u = ie(null), [p, g] = q(!1), [f, x] = q(r), [v, S] = q(-1), [E, C] = q([t]), y = je(), { anchorRef: b, targetRef: j, anchorWidth: N } = Be({
|
|
4193
4200
|
position: "bottom",
|
|
4194
4201
|
enabled: p
|
|
4195
|
-
}),
|
|
4202
|
+
}), V = oe(() => {
|
|
4196
4203
|
g(!1), u?.current?.focus();
|
|
4197
4204
|
}, []);
|
|
4198
|
-
yt([
|
|
4199
|
-
const
|
|
4205
|
+
yt([j, b], p, () => V()), Yt(p, j);
|
|
4206
|
+
const I = (T) => {
|
|
4200
4207
|
e?.(T.id, T.label);
|
|
4201
|
-
const
|
|
4202
|
-
|
|
4208
|
+
const _ = f.findIndex((W) => W.id === T.id);
|
|
4209
|
+
S(_), C([T.id]), V();
|
|
4210
|
+
}, P = (T) => {
|
|
4211
|
+
T.key === "Escape" && (V(), S(-1));
|
|
4203
4212
|
}, $ = (T) => {
|
|
4204
|
-
T.key === "
|
|
4205
|
-
},
|
|
4206
|
-
(T.key === "ArrowDown" || T.key === "ArrowUp") && (T.preventDefault(), j());
|
|
4207
|
-
}, j = () => {
|
|
4213
|
+
(T.key === "ArrowDown" || T.key === "ArrowUp") && (T.preventDefault(), O());
|
|
4214
|
+
}, O = () => {
|
|
4208
4215
|
s && (i && l ? p ? g(!1) : l(i, void 0).then((T) => {
|
|
4209
|
-
x(T),
|
|
4216
|
+
x(T), S(T.length > 0 ? 0 : -1), g(!0);
|
|
4210
4217
|
}) : g((T) => !T));
|
|
4211
4218
|
};
|
|
4212
4219
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -4225,9 +4232,9 @@ const It = ({
|
|
|
4225
4232
|
bindValue: t,
|
|
4226
4233
|
optionalDisplayValue: n,
|
|
4227
4234
|
displayMode: a,
|
|
4228
|
-
onShapeIconClick:
|
|
4229
|
-
onKeyDown:
|
|
4230
|
-
onClick:
|
|
4235
|
+
onShapeIconClick: O,
|
|
4236
|
+
onKeyDown: $,
|
|
4237
|
+
onClick: O,
|
|
4231
4238
|
shapeIcon: "arrow_drop_down",
|
|
4232
4239
|
rotatedShapeIcon: p,
|
|
4233
4240
|
isEditable: s,
|
|
@@ -4237,19 +4244,19 @@ const It = ({
|
|
|
4237
4244
|
variant: "notSelectable"
|
|
4238
4245
|
}
|
|
4239
4246
|
),
|
|
4240
|
-
p && /* @__PURE__ */ h.jsx(
|
|
4241
|
-
|
|
4247
|
+
p && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
4248
|
+
Yr,
|
|
4242
4249
|
{
|
|
4243
4250
|
id: y,
|
|
4244
4251
|
options: f,
|
|
4245
4252
|
displayMode: o,
|
|
4246
|
-
ref:
|
|
4253
|
+
ref: j,
|
|
4247
4254
|
isOpen: p,
|
|
4248
4255
|
selectedIndex: v,
|
|
4249
4256
|
activeIndex: c || E,
|
|
4250
4257
|
width: N,
|
|
4251
|
-
onClick:
|
|
4252
|
-
onKeyDown:
|
|
4258
|
+
onClick: I,
|
|
4259
|
+
onKeyDown: P
|
|
4253
4260
|
}
|
|
4254
4261
|
) })
|
|
4255
4262
|
]
|
|
@@ -4258,7 +4265,7 @@ const It = ({
|
|
|
4258
4265
|
}, $s = {
|
|
4259
4266
|
"smp-datepickercalendar-position": "_smp-datepickercalendar-position_1lf9g_1"
|
|
4260
4267
|
};
|
|
4261
|
-
function
|
|
4268
|
+
function Ls({
|
|
4262
4269
|
selectedDate: t,
|
|
4263
4270
|
onDateChange: e,
|
|
4264
4271
|
disabledDateRanges: r = [],
|
|
@@ -4267,8 +4274,8 @@ function Ns({
|
|
|
4267
4274
|
}) {
|
|
4268
4275
|
const { translate: a } = Se(), o = () => {
|
|
4269
4276
|
if (!n) return;
|
|
4270
|
-
const
|
|
4271
|
-
return isNaN(
|
|
4277
|
+
const A = new Date(n);
|
|
4278
|
+
return isNaN(A.getTime()) ? void 0 : A;
|
|
4272
4279
|
}, [i] = q(/* @__PURE__ */ new Date()), [l, c] = q(
|
|
4273
4280
|
t || o() || /* @__PURE__ */ new Date()
|
|
4274
4281
|
), [d, u] = q(
|
|
@@ -4277,7 +4284,7 @@ function Ns({
|
|
|
4277
4284
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4278
4285
|
), [f, x] = q(
|
|
4279
4286
|
l ? l.getDate() : null
|
|
4280
|
-
), v = ie(null),
|
|
4287
|
+
), v = ie(null), S = ie([]), E = [
|
|
4281
4288
|
a(ge.JANUARY),
|
|
4282
4289
|
a(ge.FEBRUARY),
|
|
4283
4290
|
a(ge.MARCH),
|
|
@@ -4319,177 +4326,177 @@ function Ns({
|
|
|
4319
4326
|
value: a(pe.SATURDAY_SHORT),
|
|
4320
4327
|
full: a(pe.SATURDAY)
|
|
4321
4328
|
}
|
|
4322
|
-
], y = (
|
|
4323
|
-
const
|
|
4324
|
-
return
|
|
4325
|
-
}), b = (
|
|
4326
|
-
y(
|
|
4327
|
-
},
|
|
4329
|
+
], y = (A) => r.some((m) => {
|
|
4330
|
+
const w = m.start.getTime(), D = m.end.getTime(), k = A.getTime();
|
|
4331
|
+
return k >= w && k <= D;
|
|
4332
|
+
}), b = (A) => {
|
|
4333
|
+
y(A) || (c(A), x(A.getDate()), e && e(Vn(A)));
|
|
4334
|
+
}, j = () => {
|
|
4328
4335
|
d === 0 ? (u(11), g(p - 1)) : u(d - 1), x(1);
|
|
4329
4336
|
}, N = () => {
|
|
4330
4337
|
d === 11 ? (u(0), g(p + 1)) : u(d + 1), x(1);
|
|
4331
|
-
},
|
|
4332
|
-
const m =
|
|
4333
|
-
(
|
|
4338
|
+
}, V = (A, m) => new Date(A, m + 1, 0).getDate(), I = (A, m) => new Date(A, m, 1).getDay(), P = (A) => {
|
|
4339
|
+
const m = _.findIndex(
|
|
4340
|
+
(w) => w !== null && w.getDate() === A
|
|
4334
4341
|
);
|
|
4335
|
-
m !== -1 &&
|
|
4336
|
-
},
|
|
4337
|
-
const
|
|
4338
|
-
if (!
|
|
4339
|
-
const D =
|
|
4340
|
-
switch (
|
|
4342
|
+
m !== -1 && S.current[m] && (S.current[m]?.focus(), x(A));
|
|
4343
|
+
}, $ = (A, m) => {
|
|
4344
|
+
const w = _[m];
|
|
4345
|
+
if (!w) return;
|
|
4346
|
+
const D = V(p, d), k = w.getDate();
|
|
4347
|
+
switch (A.key) {
|
|
4341
4348
|
case "ArrowRight":
|
|
4342
|
-
|
|
4349
|
+
A.preventDefault();
|
|
4343
4350
|
{
|
|
4344
|
-
let
|
|
4345
|
-
if (
|
|
4346
|
-
const
|
|
4347
|
-
|
|
4348
|
-
|
|
4351
|
+
let R = k + 1, F = new Date(p, d, R);
|
|
4352
|
+
if (R > D) {
|
|
4353
|
+
const U = d === 11 ? p + 1 : p, G = d === 11 ? 0 : d + 1;
|
|
4354
|
+
R = 1, F = new Date(U, G, R), N(), setTimeout(() => {
|
|
4355
|
+
O(1, "forward");
|
|
4349
4356
|
}, 0);
|
|
4350
4357
|
return;
|
|
4351
4358
|
}
|
|
4352
|
-
y(F) ?
|
|
4359
|
+
y(F) ? O(R, "forward") : P(R);
|
|
4353
4360
|
}
|
|
4354
4361
|
break;
|
|
4355
4362
|
case "Tab":
|
|
4356
4363
|
break;
|
|
4357
4364
|
case "ArrowLeft":
|
|
4358
|
-
|
|
4365
|
+
A.preventDefault();
|
|
4359
4366
|
{
|
|
4360
|
-
let
|
|
4361
|
-
if (
|
|
4362
|
-
const
|
|
4363
|
-
|
|
4364
|
-
|
|
4367
|
+
let R = k - 1, F = new Date(p, d, R);
|
|
4368
|
+
if (R < 1) {
|
|
4369
|
+
const U = d === 0 ? p - 1 : p, G = d === 0 ? 11 : d - 1, B = V(U, G);
|
|
4370
|
+
R = B, F = new Date(U, G, R), j(), setTimeout(() => {
|
|
4371
|
+
O(B, "backward");
|
|
4365
4372
|
}, 0);
|
|
4366
4373
|
return;
|
|
4367
4374
|
}
|
|
4368
|
-
y(F) ?
|
|
4375
|
+
y(F) ? O(R, "backward") : P(R);
|
|
4369
4376
|
}
|
|
4370
4377
|
break;
|
|
4371
4378
|
case "ArrowUp":
|
|
4372
|
-
|
|
4379
|
+
A.preventDefault();
|
|
4373
4380
|
{
|
|
4374
|
-
let
|
|
4375
|
-
if (
|
|
4376
|
-
const
|
|
4377
|
-
|
|
4378
|
-
|
|
4381
|
+
let R = k - 7, F = new Date(p, d, R);
|
|
4382
|
+
if (R < 1) {
|
|
4383
|
+
const U = d === 0 ? p - 1 : p, G = d === 0 ? 11 : d - 1;
|
|
4384
|
+
R = V(U, G) + R, F = new Date(U, G, R), j(), setTimeout(() => {
|
|
4385
|
+
O(R, "backward");
|
|
4379
4386
|
}, 0);
|
|
4380
4387
|
return;
|
|
4381
4388
|
}
|
|
4382
|
-
y(F) ?
|
|
4389
|
+
y(F) ? O(R, "backward") : P(R);
|
|
4383
4390
|
}
|
|
4384
4391
|
break;
|
|
4385
4392
|
case "ArrowDown":
|
|
4386
|
-
|
|
4393
|
+
A.preventDefault();
|
|
4387
4394
|
{
|
|
4388
|
-
let
|
|
4389
|
-
if (
|
|
4390
|
-
const
|
|
4391
|
-
|
|
4392
|
-
|
|
4395
|
+
let R = k + 7, F = new Date(p, d, R);
|
|
4396
|
+
if (R > D) {
|
|
4397
|
+
const U = d === 11 ? p + 1 : p, G = d === 11 ? 0 : d + 1;
|
|
4398
|
+
R = R - D, F = new Date(U, G, R), N(), setTimeout(() => {
|
|
4399
|
+
O(R, "forward");
|
|
4393
4400
|
}, 0);
|
|
4394
4401
|
return;
|
|
4395
4402
|
}
|
|
4396
|
-
y(F) ?
|
|
4403
|
+
y(F) ? O(R, "forward") : P(R);
|
|
4397
4404
|
}
|
|
4398
4405
|
break;
|
|
4399
4406
|
case "Home":
|
|
4400
|
-
|
|
4407
|
+
A.preventDefault(), O(1, "forward");
|
|
4401
4408
|
break;
|
|
4402
4409
|
case "End":
|
|
4403
|
-
|
|
4410
|
+
A.preventDefault(), O(D, "backward");
|
|
4404
4411
|
break;
|
|
4405
4412
|
case "PageUp":
|
|
4406
|
-
|
|
4407
|
-
const
|
|
4413
|
+
A.preventDefault(), j(), setTimeout(() => {
|
|
4414
|
+
const R = V(
|
|
4408
4415
|
d === 0 ? p - 1 : p,
|
|
4409
4416
|
d === 0 ? 11 : d - 1
|
|
4410
|
-
), F = Math.min(
|
|
4411
|
-
|
|
4417
|
+
), F = Math.min(k, R);
|
|
4418
|
+
O(F, "forward");
|
|
4412
4419
|
}, 0);
|
|
4413
4420
|
break;
|
|
4414
4421
|
case "PageDown":
|
|
4415
|
-
|
|
4416
|
-
const
|
|
4422
|
+
A.preventDefault(), N(), setTimeout(() => {
|
|
4423
|
+
const R = V(
|
|
4417
4424
|
d === 11 ? p + 1 : p,
|
|
4418
4425
|
d === 11 ? 0 : d + 1
|
|
4419
|
-
), F = Math.min(
|
|
4420
|
-
|
|
4426
|
+
), F = Math.min(k, R);
|
|
4427
|
+
O(F, "forward");
|
|
4421
4428
|
}, 0);
|
|
4422
4429
|
break;
|
|
4423
4430
|
case " ":
|
|
4424
4431
|
case "Space":
|
|
4425
|
-
if (y(
|
|
4426
|
-
x(
|
|
4432
|
+
if (y(w)) return;
|
|
4433
|
+
x(w.getDate()), c(w);
|
|
4427
4434
|
break;
|
|
4428
4435
|
case "Enter":
|
|
4429
|
-
|
|
4436
|
+
A.preventDefault(), b(w);
|
|
4430
4437
|
break;
|
|
4431
4438
|
}
|
|
4432
|
-
},
|
|
4433
|
-
const
|
|
4439
|
+
}, O = (A, m) => {
|
|
4440
|
+
const w = V(p, d);
|
|
4434
4441
|
if (m === "forward") {
|
|
4435
|
-
for (let D =
|
|
4436
|
-
const
|
|
4437
|
-
if (!y(
|
|
4438
|
-
|
|
4442
|
+
for (let D = A; D <= w; D++) {
|
|
4443
|
+
const k = new Date(p, d, D);
|
|
4444
|
+
if (!y(k)) {
|
|
4445
|
+
P(D);
|
|
4439
4446
|
return;
|
|
4440
4447
|
}
|
|
4441
4448
|
}
|
|
4442
4449
|
N(), setTimeout(() => {
|
|
4443
|
-
|
|
4450
|
+
O(1, "forward");
|
|
4444
4451
|
}, 0);
|
|
4445
4452
|
} else {
|
|
4446
|
-
for (let F =
|
|
4447
|
-
const
|
|
4448
|
-
if (!y(
|
|
4449
|
-
|
|
4453
|
+
for (let F = A; F >= 1; F--) {
|
|
4454
|
+
const U = new Date(p, d, F);
|
|
4455
|
+
if (!y(U)) {
|
|
4456
|
+
P(F);
|
|
4450
4457
|
return;
|
|
4451
4458
|
}
|
|
4452
4459
|
}
|
|
4453
|
-
const D = d === 0 ? p - 1 : p,
|
|
4454
|
-
|
|
4455
|
-
|
|
4460
|
+
const D = d === 0 ? p - 1 : p, k = d === 0 ? 11 : d - 1, R = V(D, k);
|
|
4461
|
+
j(), setTimeout(() => {
|
|
4462
|
+
O(R, "backward");
|
|
4456
4463
|
}, 0);
|
|
4457
4464
|
}
|
|
4458
|
-
},
|
|
4459
|
-
const
|
|
4465
|
+
}, _ = (() => {
|
|
4466
|
+
const A = V(p, d), m = I(p, d), w = [];
|
|
4460
4467
|
for (let D = 0; D < m; D++)
|
|
4461
|
-
|
|
4462
|
-
for (let D = 1; D <=
|
|
4463
|
-
const
|
|
4464
|
-
|
|
4468
|
+
w.push(null);
|
|
4469
|
+
for (let D = 1; D <= A; D++) {
|
|
4470
|
+
const k = new Date(p, d, D);
|
|
4471
|
+
w.push(k);
|
|
4465
4472
|
}
|
|
4466
|
-
return
|
|
4467
|
-
})(),
|
|
4473
|
+
return w;
|
|
4474
|
+
})(), W = [];
|
|
4468
4475
|
let H = [];
|
|
4469
|
-
|
|
4470
|
-
if (H.push(
|
|
4476
|
+
_.forEach((A, m) => {
|
|
4477
|
+
if (H.push(A), H.length === 7 || m === _.length - 1) {
|
|
4471
4478
|
for (; H.length < 7; )
|
|
4472
4479
|
H.push(null);
|
|
4473
|
-
|
|
4480
|
+
W.push(H), H = [];
|
|
4474
4481
|
}
|
|
4475
4482
|
}), se(() => {
|
|
4476
4483
|
if (f !== null) {
|
|
4477
|
-
const
|
|
4484
|
+
const A = _.findIndex(
|
|
4478
4485
|
(m) => m !== null && m.getDate() === f
|
|
4479
4486
|
);
|
|
4480
|
-
|
|
4487
|
+
A !== -1 && S.current[A] && S.current[A]?.focus();
|
|
4481
4488
|
}
|
|
4482
|
-
}, [d, p, f,
|
|
4489
|
+
}, [d, p, f, _]);
|
|
4483
4490
|
const X = {
|
|
4484
4491
|
label: "smp-datepickercalendar-label",
|
|
4485
4492
|
wrapper: `smp-datepickercalendar ${$s["smp-datepickercalendar-position"]}`,
|
|
4486
4493
|
calendar: "smp-datepickercalendar",
|
|
4487
4494
|
table: "smp-datepickercalendar-table",
|
|
4488
4495
|
th: "smp-datepickercalendar-th",
|
|
4489
|
-
td: (
|
|
4490
|
-
${
|
|
4496
|
+
td: (A, m, w, D) => `smp-datepickercalendar-td
|
|
4497
|
+
${A ? "smp-datepickercalendar-td-today" : ""}
|
|
4491
4498
|
${m ? "smp-datepickercalendar-td-selected" : ""}
|
|
4492
|
-
${
|
|
4499
|
+
${w ? "smp-datepickercalendar-td-focused" : ""}
|
|
4493
4500
|
${D ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4494
4501
|
}, Q = () => `${E[d]} ${p.toString()}`;
|
|
4495
4502
|
return /* @__PURE__ */ h.jsxs(
|
|
@@ -4515,7 +4522,7 @@ function Ns({
|
|
|
4515
4522
|
/* @__PURE__ */ h.jsx(
|
|
4516
4523
|
fe,
|
|
4517
4524
|
{
|
|
4518
|
-
onClick:
|
|
4525
|
+
onClick: j,
|
|
4519
4526
|
ariaLabel: a(At.PREVIOUS_MONTH),
|
|
4520
4527
|
optionalDisplayValue: "<",
|
|
4521
4528
|
appearance: "ghost",
|
|
@@ -4553,19 +4560,19 @@ function Ns({
|
|
|
4553
4560
|
"aria-label": `${a(Re.CALENDAR_FOR)} ${E[d]} ${p}`,
|
|
4554
4561
|
className: X.table,
|
|
4555
4562
|
children: [
|
|
4556
|
-
/* @__PURE__ */ h.jsx("thead", { children: /* @__PURE__ */ h.jsx("tr", { children: C.map((
|
|
4563
|
+
/* @__PURE__ */ h.jsx("thead", { children: /* @__PURE__ */ h.jsx("tr", { children: C.map((A) => /* @__PURE__ */ h.jsx(
|
|
4557
4564
|
"th",
|
|
4558
4565
|
{
|
|
4559
4566
|
scope: "col",
|
|
4560
|
-
abbr:
|
|
4567
|
+
abbr: A.full,
|
|
4561
4568
|
className: X.th,
|
|
4562
|
-
children:
|
|
4569
|
+
children: A.value
|
|
4563
4570
|
},
|
|
4564
|
-
|
|
4571
|
+
A.value
|
|
4565
4572
|
)) }) }),
|
|
4566
|
-
/* @__PURE__ */ h.jsx("tbody", { children:
|
|
4567
|
-
const
|
|
4568
|
-
if (
|
|
4573
|
+
/* @__PURE__ */ h.jsx("tbody", { children: W.map((A, m) => /* @__PURE__ */ h.jsx("tr", { children: A.map((w, D) => {
|
|
4574
|
+
const k = m * 7 + D;
|
|
4575
|
+
if (w === null)
|
|
4569
4576
|
return /* @__PURE__ */ h.jsx(
|
|
4570
4577
|
"td",
|
|
4571
4578
|
{
|
|
@@ -4578,28 +4585,28 @@ function Ns({
|
|
|
4578
4585
|
},
|
|
4579
4586
|
`empty-${D}`
|
|
4580
4587
|
);
|
|
4581
|
-
const
|
|
4588
|
+
const R = w.getDate() === i.getDate() && w.getMonth() === i.getMonth() && w.getFullYear() === i.getFullYear(), F = l && w.getDate() === l.getDate() && w.getMonth() === l.getMonth() && w.getFullYear() === l.getFullYear(), U = f === w.getDate(), G = y(w);
|
|
4582
4589
|
return /* @__PURE__ */ h.jsx(
|
|
4583
4590
|
"td",
|
|
4584
4591
|
{
|
|
4585
4592
|
role: "gridcell",
|
|
4586
4593
|
"aria-selected": F,
|
|
4587
|
-
tabIndex:
|
|
4588
|
-
onClick: () => b(
|
|
4589
|
-
onKeyDown: (
|
|
4590
|
-
"aria-label": `${
|
|
4594
|
+
tabIndex: U ? 0 : -1,
|
|
4595
|
+
onClick: () => b(w),
|
|
4596
|
+
onKeyDown: (B) => $(B, k),
|
|
4597
|
+
"aria-label": `${w.getDate()} ${E[w.getMonth()]} ${w.getFullYear()}`,
|
|
4591
4598
|
"data-selected": F,
|
|
4592
4599
|
"aria-disabled": G,
|
|
4593
|
-
ref: (
|
|
4594
|
-
|
|
4600
|
+
ref: (B) => {
|
|
4601
|
+
S.current[k] = B;
|
|
4595
4602
|
},
|
|
4596
4603
|
className: X.td(
|
|
4597
|
-
|
|
4604
|
+
R,
|
|
4598
4605
|
F,
|
|
4599
|
-
|
|
4606
|
+
U,
|
|
4600
4607
|
G
|
|
4601
4608
|
),
|
|
4602
|
-
children:
|
|
4609
|
+
children: w.getDate()
|
|
4603
4610
|
},
|
|
4604
4611
|
`day-${D}`
|
|
4605
4612
|
);
|
|
@@ -4627,36 +4634,36 @@ const zr = ({
|
|
|
4627
4634
|
}, []);
|
|
4628
4635
|
yt([f, g], i, () => {
|
|
4629
4636
|
x();
|
|
4630
|
-
}),
|
|
4631
|
-
const { format: v, getCurrentLanguage:
|
|
4632
|
-
(
|
|
4633
|
-
const
|
|
4637
|
+
}), Yt(i, f);
|
|
4638
|
+
const { format: v, getCurrentLanguage: S } = Se(), E = oe(
|
|
4639
|
+
(I) => {
|
|
4640
|
+
const P = I.length > 5 && Pn(I, S()) || I, $ = v(P, void 0, void 0, {
|
|
4634
4641
|
type: "date"
|
|
4635
|
-
}),
|
|
4642
|
+
}), O = typeof P != "string", T = O && P.toISOString().substring(0, 10) || "";
|
|
4636
4643
|
return {
|
|
4637
|
-
isValid:
|
|
4638
|
-
formattedDate:
|
|
4644
|
+
isValid: O,
|
|
4645
|
+
formattedDate: $,
|
|
4639
4646
|
isoDate: T,
|
|
4640
|
-
normalizedDate:
|
|
4647
|
+
normalizedDate: P
|
|
4641
4648
|
};
|
|
4642
4649
|
},
|
|
4643
|
-
[
|
|
4650
|
+
[S, v]
|
|
4644
4651
|
);
|
|
4645
4652
|
se(() => {
|
|
4646
|
-
const { formattedDate:
|
|
4647
|
-
d(
|
|
4653
|
+
const { formattedDate: I, isoDate: P, isValid: $ } = E(t);
|
|
4654
|
+
d($ && P || t), p($ && I || t);
|
|
4648
4655
|
}, [t, v, E]);
|
|
4649
|
-
const C = () => l((
|
|
4650
|
-
|
|
4651
|
-
}, b = (
|
|
4652
|
-
|
|
4653
|
-
},
|
|
4654
|
-
const { isoDate:
|
|
4655
|
-
r && r(
|
|
4656
|
-
}, N = (
|
|
4657
|
-
p(
|
|
4658
|
-
},
|
|
4659
|
-
|
|
4656
|
+
const C = () => l((I) => !I), y = () => {
|
|
4657
|
+
j(u);
|
|
4658
|
+
}, b = (I) => {
|
|
4659
|
+
j(I), x();
|
|
4660
|
+
}, j = (I) => {
|
|
4661
|
+
const { isoDate: P, isValid: $ } = E(I);
|
|
4662
|
+
r && r($ && P || I);
|
|
4663
|
+
}, N = (I) => {
|
|
4664
|
+
p(I);
|
|
4665
|
+
}, V = (I) => {
|
|
4666
|
+
I.key === "Enter" && (I.preventDefault(), j(u));
|
|
4660
4667
|
};
|
|
4661
4668
|
return /* @__PURE__ */ h.jsxs("div", { "data-component": "date-picker", children: [
|
|
4662
4669
|
/* @__PURE__ */ h.jsx(
|
|
@@ -4667,7 +4674,7 @@ const zr = ({
|
|
|
4667
4674
|
placeholder: e,
|
|
4668
4675
|
onBlur: y,
|
|
4669
4676
|
onChange: N,
|
|
4670
|
-
onKeyDown:
|
|
4677
|
+
onKeyDown: V,
|
|
4671
4678
|
shapeIcon: "calendar",
|
|
4672
4679
|
onShapeIconClick: C,
|
|
4673
4680
|
ref: g,
|
|
@@ -4677,8 +4684,8 @@ const zr = ({
|
|
|
4677
4684
|
maxLength: a.maxLength ? a.maxLength : 10
|
|
4678
4685
|
}
|
|
4679
4686
|
),
|
|
4680
|
-
i && /* @__PURE__ */ h.jsx(
|
|
4681
|
-
|
|
4687
|
+
i && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
4688
|
+
Ls,
|
|
4682
4689
|
{
|
|
4683
4690
|
disabledDateRanges: n,
|
|
4684
4691
|
onDateChange: b,
|
|
@@ -4687,7 +4694,7 @@ const zr = ({
|
|
|
4687
4694
|
}
|
|
4688
4695
|
) })
|
|
4689
4696
|
] });
|
|
4690
|
-
},
|
|
4697
|
+
}, Ns = ({
|
|
4691
4698
|
elements: t,
|
|
4692
4699
|
displayMode: e,
|
|
4693
4700
|
minimumChars: r,
|
|
@@ -4703,16 +4710,16 @@ const zr = ({
|
|
|
4703
4710
|
onBlur: p,
|
|
4704
4711
|
...g
|
|
4705
4712
|
}) => {
|
|
4706
|
-
const f = t.map((
|
|
4713
|
+
const f = t.map((S) => S.bindValue), x = (S, E) => {
|
|
4707
4714
|
const C = [...t];
|
|
4708
|
-
if (
|
|
4715
|
+
if (S == "")
|
|
4709
4716
|
C.pop();
|
|
4710
4717
|
else {
|
|
4711
4718
|
const y = C.findIndex(
|
|
4712
|
-
(b) => b.bindValue ===
|
|
4719
|
+
(b) => b.bindValue === S && b.optionalDisplayValue === E
|
|
4713
4720
|
);
|
|
4714
4721
|
y >= 0 ? C.splice(y, 1) : C.push({
|
|
4715
|
-
bindValue:
|
|
4722
|
+
bindValue: S,
|
|
4716
4723
|
optionalDisplayValue: E
|
|
4717
4724
|
});
|
|
4718
4725
|
}
|
|
@@ -4728,13 +4735,13 @@ const zr = ({
|
|
|
4728
4735
|
children: [
|
|
4729
4736
|
o && /* @__PURE__ */ h.jsx(De, { label: o, disabled: i }),
|
|
4730
4737
|
/* @__PURE__ */ h.jsx(
|
|
4731
|
-
|
|
4738
|
+
Wt,
|
|
4732
4739
|
{
|
|
4733
4740
|
elements: t,
|
|
4734
4741
|
displayMode: e,
|
|
4735
4742
|
isEditable: s,
|
|
4736
|
-
onChange: (
|
|
4737
|
-
u?.(
|
|
4743
|
+
onChange: (S) => {
|
|
4744
|
+
u?.(S);
|
|
4738
4745
|
}
|
|
4739
4746
|
}
|
|
4740
4747
|
),
|
|
@@ -4840,7 +4847,7 @@ class Pe {
|
|
|
4840
4847
|
return this.value.join(";");
|
|
4841
4848
|
}
|
|
4842
4849
|
}
|
|
4843
|
-
const
|
|
4850
|
+
const Ne = (t, e, r) => ({
|
|
4844
4851
|
obj: {
|
|
4845
4852
|
t: t.obj.t,
|
|
4846
4853
|
p: t.obj.p,
|
|
@@ -4864,7 +4871,7 @@ const Le = (t, e, r) => ({
|
|
|
4864
4871
|
t.obj,
|
|
4865
4872
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4866
4873
|
).getLegacyValue();
|
|
4867
|
-
return
|
|
4874
|
+
return Ne(t, r, n);
|
|
4868
4875
|
}, Fs = (t) => {
|
|
4869
4876
|
switch (t) {
|
|
4870
4877
|
case "CodeOnly":
|
|
@@ -4892,45 +4899,45 @@ const Le = (t, e, r) => ({
|
|
|
4892
4899
|
() => ws(u, s),
|
|
4893
4900
|
[u, s]
|
|
4894
4901
|
), f = oe(
|
|
4895
|
-
(
|
|
4902
|
+
(O, T) => new Intl.NumberFormat(u, {
|
|
4896
4903
|
minimumFractionDigits: T,
|
|
4897
4904
|
maximumFractionDigits: T,
|
|
4898
4905
|
useGrouping: !0
|
|
4899
|
-
}).format(
|
|
4906
|
+
}).format(O),
|
|
4900
4907
|
[u]
|
|
4901
|
-
), x = oe(Cs, [p, g]), v = oe(xs, [t, e]),
|
|
4908
|
+
), x = oe(Cs, [p, g]), v = oe(xs, [t, e]), S = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [E, C] = q(S), [y, b] = q(
|
|
4902
4909
|
a != null ? f(a, E) : ""
|
|
4903
|
-
),
|
|
4910
|
+
), j = ie(a ?? null);
|
|
4904
4911
|
se(() => {
|
|
4905
4912
|
if (a == null) {
|
|
4906
|
-
b(""),
|
|
4913
|
+
b(""), j.current = null;
|
|
4907
4914
|
return;
|
|
4908
4915
|
}
|
|
4909
|
-
const
|
|
4910
|
-
T !== E && C(T), b(f(a, T)),
|
|
4916
|
+
const O = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, T = O === 0 ? E : O;
|
|
4917
|
+
T !== E && C(T), b(f(a, T)), j.current = a;
|
|
4911
4918
|
}, [a, f]);
|
|
4912
4919
|
const N = oe(
|
|
4913
|
-
(
|
|
4914
|
-
if (
|
|
4915
|
-
b(""),
|
|
4920
|
+
(O, T = !1) => {
|
|
4921
|
+
if (O.trim() === "") {
|
|
4922
|
+
b(""), j.current = null, o?.(void 0, ""), T && i?.(void 0);
|
|
4916
4923
|
return;
|
|
4917
4924
|
}
|
|
4918
|
-
const
|
|
4919
|
-
if (isNaN(
|
|
4920
|
-
if (
|
|
4921
|
-
const
|
|
4922
|
-
b(
|
|
4925
|
+
const _ = x(O, p, g);
|
|
4926
|
+
if (isNaN(_))
|
|
4927
|
+
if (j.current != null) {
|
|
4928
|
+
const W = f(j.current, E);
|
|
4929
|
+
b(W);
|
|
4923
4930
|
} else
|
|
4924
4931
|
b("");
|
|
4925
4932
|
else {
|
|
4926
|
-
const
|
|
4927
|
-
|
|
4933
|
+
const W = v(_, t, e), H = Es(
|
|
4934
|
+
O,
|
|
4928
4935
|
p,
|
|
4929
4936
|
g
|
|
4930
4937
|
);
|
|
4931
4938
|
C(H);
|
|
4932
|
-
const X = f(
|
|
4933
|
-
b(X),
|
|
4939
|
+
const X = f(W, H);
|
|
4940
|
+
b(X), j.current = W, o?.(W, X), T && i?.(W);
|
|
4934
4941
|
}
|
|
4935
4942
|
},
|
|
4936
4943
|
[
|
|
@@ -4945,38 +4952,38 @@ const Le = (t, e, r) => ({
|
|
|
4945
4952
|
i,
|
|
4946
4953
|
E
|
|
4947
4954
|
]
|
|
4948
|
-
),
|
|
4949
|
-
if (
|
|
4950
|
-
|
|
4955
|
+
), V = (O) => b(O), I = () => N(y), P = (O) => {
|
|
4956
|
+
if (O.key === "Enter") {
|
|
4957
|
+
O.preventDefault(), N(y, !0);
|
|
4951
4958
|
return;
|
|
4952
4959
|
}
|
|
4953
|
-
if (
|
|
4954
|
-
|
|
4955
|
-
const T =
|
|
4956
|
-
N(f(
|
|
4957
|
-
}
|
|
4958
|
-
},
|
|
4959
|
-
if (!
|
|
4960
|
-
|
|
4961
|
-
const T =
|
|
4962
|
-
N(f(
|
|
4960
|
+
if (O.key === "ArrowUp" || O.key === "ArrowDown") {
|
|
4961
|
+
O.preventDefault();
|
|
4962
|
+
const T = O.key === "ArrowUp" ? 1 : -1, _ = j.current ?? 0, W = v(_ + T * r, t, e);
|
|
4963
|
+
N(f(W, E));
|
|
4964
|
+
}
|
|
4965
|
+
}, $ = (O) => {
|
|
4966
|
+
if (!O.currentTarget.contains(document.activeElement)) return;
|
|
4967
|
+
O.preventDefault();
|
|
4968
|
+
const T = O.deltaY < 0 ? 1 : -1, _ = j.current ?? 0, W = v(_ + T * r, t, e);
|
|
4969
|
+
N(f(W, E));
|
|
4963
4970
|
};
|
|
4964
|
-
return /* @__PURE__ */ h.jsx("div", { ref: d, "data-component": "input-number", onWheel:
|
|
4971
|
+
return /* @__PURE__ */ h.jsx("div", { ref: d, "data-component": "input-number", onWheel: $, children: /* @__PURE__ */ h.jsx(
|
|
4965
4972
|
$e,
|
|
4966
4973
|
{
|
|
4967
4974
|
...l,
|
|
4968
4975
|
"aria-valuemin": t,
|
|
4969
4976
|
"aria-valuemax": e,
|
|
4970
|
-
"aria-valuenow":
|
|
4977
|
+
"aria-valuenow": j.current ?? void 0,
|
|
4971
4978
|
bindValue: y,
|
|
4972
4979
|
inputType: "text",
|
|
4973
4980
|
inputMode: n,
|
|
4974
4981
|
min: t,
|
|
4975
4982
|
max: e,
|
|
4976
4983
|
step: r,
|
|
4977
|
-
onChange:
|
|
4978
|
-
onBlur:
|
|
4979
|
-
onKeyDown:
|
|
4984
|
+
onChange: V,
|
|
4985
|
+
onBlur: I,
|
|
4986
|
+
onKeyDown: P
|
|
4980
4987
|
}
|
|
4981
4988
|
) });
|
|
4982
4989
|
};
|
|
@@ -5040,11 +5047,11 @@ const Ms = ({
|
|
|
5040
5047
|
rows: g = 10,
|
|
5041
5048
|
cols: f = 35
|
|
5042
5049
|
}) => {
|
|
5043
|
-
const x = je(), v = `${x}-helper`,
|
|
5050
|
+
const x = je(), v = `${x}-helper`, S = d ? "danger" : s, E = c || !!d, C = (b) => {
|
|
5044
5051
|
r?.(b.target.value);
|
|
5045
5052
|
}, y = {
|
|
5046
5053
|
wrapper: "smp-textarea-wrapper",
|
|
5047
|
-
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
5054
|
+
container: `smp-textarea ${t ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${S ? `smp-textarea-${S}` : ""} ${a ? `smp-textarea-${a}` : ""} ${o ? "" : "smp-textarea-readOnly"}`
|
|
5048
5055
|
};
|
|
5049
5056
|
return /* @__PURE__ */ h.jsxs("div", { className: y.wrapper, "data-component": "textarea", children: [
|
|
5050
5057
|
i && /* @__PURE__ */ h.jsx(De, { htmlFor: x, label: i, disabled: t }),
|
|
@@ -5073,7 +5080,7 @@ const Ms = ({
|
|
|
5073
5080
|
id: v,
|
|
5074
5081
|
helperText: d,
|
|
5075
5082
|
disabled: t,
|
|
5076
|
-
state:
|
|
5083
|
+
state: S
|
|
5077
5084
|
}
|
|
5078
5085
|
)
|
|
5079
5086
|
] });
|
|
@@ -5103,7 +5110,7 @@ const Me = {
|
|
|
5103
5110
|
console.error("Error during loading options (radio)", b);
|
|
5104
5111
|
});
|
|
5105
5112
|
}, [c, a, o]);
|
|
5106
|
-
const p = parseInt(n ?? "", 10), g = r === Pt.LINE_DIRECTION, f = g && !isNaN(p), x = f ? Me["smp-radio-horizontal-grid"] : g ? Me["smp-radio-horizontal"] : "", v = f ? { gridTemplateColumns: `repeat(${p}, 1fr)` } : void 0,
|
|
5113
|
+
const p = parseInt(n ?? "", 10), g = r === Pt.LINE_DIRECTION, f = g && !isNaN(p), x = f ? Me["smp-radio-horizontal-grid"] : g ? Me["smp-radio-horizontal"] : "", v = f ? { gridTemplateColumns: `repeat(${p}, 1fr)` } : void 0, S = {
|
|
5107
5114
|
container: Me["smp-radio"],
|
|
5108
5115
|
optionsContainer: `${Me["smp-radio-options-container"]} ${x}`,
|
|
5109
5116
|
option: `${Me["smp-radio-element"]} ${t ? Me["smp-radio-disabled"] : ""}`
|
|
@@ -5112,9 +5119,9 @@ const Me = {
|
|
|
5112
5119
|
}, C = (b) => {
|
|
5113
5120
|
t || l.onChange?.(b.id, b.label);
|
|
5114
5121
|
}, y = je();
|
|
5115
|
-
return /* @__PURE__ */ h.jsxs("div", { "smp-id": "radio-container", className:
|
|
5122
|
+
return /* @__PURE__ */ h.jsxs("div", { "smp-id": "radio-container", className: S.container, id: u, children: [
|
|
5116
5123
|
i && /* @__PURE__ */ h.jsx(De, { label: i, disabled: t, htmlFor: u }),
|
|
5117
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
5124
|
+
/* @__PURE__ */ h.jsx("div", { className: S.optionsContainer, style: v, children: c?.map((b, j) => /* @__PURE__ */ h.jsxs("label", { className: S.option, children: [
|
|
5118
5125
|
/* @__PURE__ */ h.jsx(
|
|
5119
5126
|
"input",
|
|
5120
5127
|
{
|
|
@@ -5138,7 +5145,7 @@ const Me = {
|
|
|
5138
5145
|
)
|
|
5139
5146
|
}
|
|
5140
5147
|
)
|
|
5141
|
-
] },
|
|
5148
|
+
] }, j)) })
|
|
5142
5149
|
] });
|
|
5143
5150
|
}, Us = ({
|
|
5144
5151
|
value: t,
|
|
@@ -5198,10 +5205,10 @@ const Me = {
|
|
|
5198
5205
|
}, Bs = (t) => {
|
|
5199
5206
|
const e = t.split(":").map((r) => parseInt(r, 10));
|
|
5200
5207
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5201
|
-
},
|
|
5208
|
+
}, Ws = (t, e, r) => {
|
|
5202
5209
|
const n = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", a = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "";
|
|
5203
5210
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5204
|
-
},
|
|
5211
|
+
}, Ys = ({
|
|
5205
5212
|
bindValue: t,
|
|
5206
5213
|
placeholder: e = "HH:MM:SS",
|
|
5207
5214
|
onChange: r,
|
|
@@ -5214,12 +5221,12 @@ const Me = {
|
|
|
5214
5221
|
}), f = oe(() => {
|
|
5215
5222
|
i(!1), a?.current?.focus();
|
|
5216
5223
|
}, []);
|
|
5217
|
-
yt([g, p], o, () => i(!1)),
|
|
5218
|
-
const b = t || "",
|
|
5219
|
-
c(b), u(
|
|
5224
|
+
yt([g, p], o, () => i(!1)), Yt(o, g), se(() => {
|
|
5225
|
+
const b = t || "", j = $r(b) ? b : t || "";
|
|
5226
|
+
c(b), u(j);
|
|
5220
5227
|
}, [t]), se(() => {
|
|
5221
|
-
const b = (
|
|
5222
|
-
|
|
5228
|
+
const b = (j) => {
|
|
5229
|
+
j.key === "Escape" && i(!1);
|
|
5223
5230
|
};
|
|
5224
5231
|
return o && document.addEventListener("keydown", b), () => {
|
|
5225
5232
|
document.removeEventListener("keydown", b);
|
|
@@ -5229,9 +5236,9 @@ const Me = {
|
|
|
5229
5236
|
n && i((b) => !b);
|
|
5230
5237
|
}, v = (b) => {
|
|
5231
5238
|
u(b);
|
|
5232
|
-
},
|
|
5233
|
-
const
|
|
5234
|
-
c(
|
|
5239
|
+
}, S = (b, j, N) => {
|
|
5240
|
+
const V = Ws(b, j, N);
|
|
5241
|
+
c(V), u(V), r?.(V), f();
|
|
5235
5242
|
}, E = () => {
|
|
5236
5243
|
y(d);
|
|
5237
5244
|
}, C = (b) => {
|
|
@@ -5260,11 +5267,11 @@ const Me = {
|
|
|
5260
5267
|
inputRef: a
|
|
5261
5268
|
}
|
|
5262
5269
|
),
|
|
5263
|
-
o && /* @__PURE__ */ h.jsx(
|
|
5270
|
+
o && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
5264
5271
|
Us,
|
|
5265
5272
|
{
|
|
5266
5273
|
value: Bs(l),
|
|
5267
|
-
onChange:
|
|
5274
|
+
onChange: S,
|
|
5268
5275
|
targetRef: g,
|
|
5269
5276
|
isOpen: o
|
|
5270
5277
|
}
|
|
@@ -5281,13 +5288,13 @@ class bt {
|
|
|
5281
5288
|
this.class = e, this.time = r;
|
|
5282
5289
|
}
|
|
5283
5290
|
static fromDataObj(e) {
|
|
5284
|
-
const r =
|
|
5291
|
+
const r = Lr.get(`${e.t}${e.p}`);
|
|
5285
5292
|
if (r)
|
|
5286
5293
|
return new bt(e, r.legacyToIso(e.k));
|
|
5287
5294
|
throw new Error(`time creation from ${e.t}${e.p} not implemented yet`);
|
|
5288
5295
|
}
|
|
5289
5296
|
getLegacyValue() {
|
|
5290
|
-
const e =
|
|
5297
|
+
const e = Lr.get(`${this.class.t}${this.class.p}`);
|
|
5291
5298
|
if (e)
|
|
5292
5299
|
return e.isoToLegacy(this.time);
|
|
5293
5300
|
throw new Error(
|
|
@@ -5298,7 +5305,7 @@ class bt {
|
|
|
5298
5305
|
return this.time;
|
|
5299
5306
|
}
|
|
5300
5307
|
}
|
|
5301
|
-
const
|
|
5308
|
+
const Lr = /* @__PURE__ */ new Map([
|
|
5302
5309
|
[
|
|
5303
5310
|
"I12",
|
|
5304
5311
|
{
|
|
@@ -5384,7 +5391,7 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5384
5391
|
onEnter: f,
|
|
5385
5392
|
onBlur: x,
|
|
5386
5393
|
onOptionsRequest: v,
|
|
5387
|
-
onContextMenu:
|
|
5394
|
+
onContextMenu: S,
|
|
5388
5395
|
isEditable: E,
|
|
5389
5396
|
dSep: C = "."
|
|
5390
5397
|
}) => {
|
|
@@ -5398,7 +5405,7 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5398
5405
|
icon: a,
|
|
5399
5406
|
fun: o,
|
|
5400
5407
|
data: s
|
|
5401
|
-
}, b = y.data && y.data.size && y.data.size >= 256 && (r === "ITX" || !r) ? "MEM" : r,
|
|
5408
|
+
}, b = y.data && y.data.size && y.data.size >= 256 && (r === "ITX" || !r) ? "MEM" : r, j = {
|
|
5402
5409
|
id: t,
|
|
5403
5410
|
onBlur: x,
|
|
5404
5411
|
onOptionsRequest: v,
|
|
@@ -5410,29 +5417,29 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5410
5417
|
isEditable: E,
|
|
5411
5418
|
size: y.data && y.data.size ? y.data.size : y.data?.displayMode && Fs(y.data.displayMode || "CodeOnly"),
|
|
5412
5419
|
...s
|
|
5413
|
-
}, N = (T,
|
|
5420
|
+
}, N = (T, _, W) => kn(n) ? Ne(T, new pt(n, _).getLegacyValue()) : An(n) ? Ne(T, new bt(n, _).getLegacyValue()) : u?.forceUppercase ? Ne(
|
|
5414
5421
|
T,
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
) :
|
|
5422
|
+
_.toLocaleUpperCase(),
|
|
5423
|
+
W
|
|
5424
|
+
) : Ne(T, _, W), V = (T, _) => Ne(
|
|
5418
5425
|
T,
|
|
5419
|
-
new Xe(n,
|
|
5420
|
-
),
|
|
5426
|
+
new Xe(n, _, C).getLegacyValue()
|
|
5427
|
+
), I = (T) => Ne(y, new ft(n, T).getLegacyValue()), P = (T) => Ps(y, T), $ = () => {
|
|
5421
5428
|
switch (b) {
|
|
5422
5429
|
case te.AUTOCOMPLETE: {
|
|
5423
5430
|
const T = {
|
|
5424
|
-
...
|
|
5431
|
+
...j,
|
|
5425
5432
|
bindValue: y.obj.k,
|
|
5426
5433
|
optionalDisplayValue: e,
|
|
5427
|
-
onChange: (
|
|
5428
|
-
p?.(N(y,
|
|
5434
|
+
onChange: (_, W) => {
|
|
5435
|
+
p?.(N(y, _, W));
|
|
5429
5436
|
}
|
|
5430
5437
|
};
|
|
5431
5438
|
return /* @__PURE__ */ h.jsx(Hr, { ...T });
|
|
5432
5439
|
}
|
|
5433
5440
|
case te.BUTTON: {
|
|
5434
|
-
const T = s?.label && typeof s.label == "string" ? s.label : void 0,
|
|
5435
|
-
...
|
|
5441
|
+
const T = s?.label && typeof s.label == "string" ? s.label : void 0, _ = {
|
|
5442
|
+
...j,
|
|
5436
5443
|
bindValue: T || "",
|
|
5437
5444
|
showText: !!T,
|
|
5438
5445
|
title: e,
|
|
@@ -5440,11 +5447,11 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5440
5447
|
g?.(N(y, n.k));
|
|
5441
5448
|
}
|
|
5442
5449
|
};
|
|
5443
|
-
return /* @__PURE__ */ h.jsx(fe, { ...
|
|
5450
|
+
return /* @__PURE__ */ h.jsx(fe, { ..._ });
|
|
5444
5451
|
}
|
|
5445
5452
|
case te.MULTI_CONFIG: {
|
|
5446
5453
|
const T = {
|
|
5447
|
-
...
|
|
5454
|
+
...j,
|
|
5448
5455
|
bindValue: l || "",
|
|
5449
5456
|
showText: !!l,
|
|
5450
5457
|
title: e,
|
|
@@ -5457,52 +5464,52 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5457
5464
|
}
|
|
5458
5465
|
case te.BUTTON_LIST: {
|
|
5459
5466
|
const T = {
|
|
5460
|
-
...
|
|
5467
|
+
...j,
|
|
5461
5468
|
options: d,
|
|
5462
|
-
onClick: (
|
|
5463
|
-
const H = { ...y, fun:
|
|
5464
|
-
g?.(N(H,
|
|
5469
|
+
onClick: (_, W) => {
|
|
5470
|
+
const H = { ...y, fun: W };
|
|
5471
|
+
g?.(N(H, _));
|
|
5465
5472
|
}
|
|
5466
5473
|
};
|
|
5467
5474
|
return /* @__PURE__ */ h.jsx(js, { ...T });
|
|
5468
5475
|
}
|
|
5469
5476
|
case te.CHIP: {
|
|
5470
5477
|
const T = {
|
|
5471
|
-
...
|
|
5478
|
+
...j,
|
|
5472
5479
|
elements: Dr(y)
|
|
5473
5480
|
};
|
|
5474
|
-
return /* @__PURE__ */ h.jsx(
|
|
5481
|
+
return /* @__PURE__ */ h.jsx(Wt, { ...T });
|
|
5475
5482
|
}
|
|
5476
5483
|
case te.CHECKBOX:
|
|
5477
5484
|
case te.SWITCH: {
|
|
5478
|
-
const T = r === te.SWITCH,
|
|
5479
|
-
...
|
|
5485
|
+
const T = r === te.SWITCH, _ = {
|
|
5486
|
+
...j,
|
|
5480
5487
|
bindValue: ft.fromDataObj(n).getValue(),
|
|
5481
5488
|
optionalDisplayValue: e,
|
|
5482
|
-
onChange: (
|
|
5483
|
-
p?.(
|
|
5489
|
+
onChange: (W) => {
|
|
5490
|
+
p?.(I(W));
|
|
5484
5491
|
},
|
|
5485
5492
|
...T && { variant: "switch" }
|
|
5486
5493
|
};
|
|
5487
|
-
return /* @__PURE__ */ h.jsx(Bt, { ...
|
|
5494
|
+
return /* @__PURE__ */ h.jsx(Bt, { ..._ });
|
|
5488
5495
|
}
|
|
5489
5496
|
case te.COMBOBOX: {
|
|
5490
5497
|
const T = {
|
|
5491
|
-
...
|
|
5498
|
+
...j,
|
|
5492
5499
|
bindValue: y.obj.k,
|
|
5493
5500
|
optionalDisplayValue: e,
|
|
5494
|
-
onChange: (
|
|
5495
|
-
p?.(N(y,
|
|
5501
|
+
onChange: (_, W) => {
|
|
5502
|
+
p?.(N(y, _, W));
|
|
5496
5503
|
}
|
|
5497
5504
|
};
|
|
5498
5505
|
return /* @__PURE__ */ h.jsx(It, { ...T });
|
|
5499
5506
|
}
|
|
5500
5507
|
case te.DATE: {
|
|
5501
5508
|
const T = {
|
|
5502
|
-
...
|
|
5509
|
+
...j,
|
|
5503
5510
|
bindValue: pt.fromDataObj(n).getValue(),
|
|
5504
|
-
onChange: (
|
|
5505
|
-
p?.(N(y,
|
|
5511
|
+
onChange: (_) => {
|
|
5512
|
+
p?.(N(y, _));
|
|
5506
5513
|
}
|
|
5507
5514
|
};
|
|
5508
5515
|
return /* @__PURE__ */ h.jsx(zr, { ...T });
|
|
@@ -5510,9 +5517,9 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5510
5517
|
case te.ICON:
|
|
5511
5518
|
case te.IMAGE: {
|
|
5512
5519
|
const T = {
|
|
5513
|
-
...
|
|
5520
|
+
...j,
|
|
5514
5521
|
icon: a,
|
|
5515
|
-
isInteractable: !!
|
|
5522
|
+
isInteractable: !!j.fun,
|
|
5516
5523
|
onClick: () => {
|
|
5517
5524
|
g?.(N(y, n.k));
|
|
5518
5525
|
}
|
|
@@ -5521,10 +5528,10 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5521
5528
|
}
|
|
5522
5529
|
case te.INPUT_NUMBER: {
|
|
5523
5530
|
const T = {
|
|
5524
|
-
...
|
|
5531
|
+
...j,
|
|
5525
5532
|
bindValue: Xe.fromDataObj(n, C).getValue(),
|
|
5526
|
-
onChange: (
|
|
5527
|
-
p?.(
|
|
5533
|
+
onChange: (_) => {
|
|
5534
|
+
p?.(V(y, _));
|
|
5528
5535
|
}
|
|
5529
5536
|
};
|
|
5530
5537
|
return /* @__PURE__ */ h.jsx(Kr, { ...T });
|
|
@@ -5532,106 +5539,106 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5532
5539
|
case te.EDITOR:
|
|
5533
5540
|
case te.MEMO: {
|
|
5534
5541
|
const T = {
|
|
5535
|
-
...
|
|
5542
|
+
...j,
|
|
5536
5543
|
bindValue: n.k,
|
|
5537
5544
|
optionalDisplayValue: e,
|
|
5538
|
-
onChange: (
|
|
5539
|
-
p?.(N(y,
|
|
5545
|
+
onChange: (_) => {
|
|
5546
|
+
p?.(N(y, _));
|
|
5540
5547
|
}
|
|
5541
5548
|
};
|
|
5542
5549
|
return /* @__PURE__ */ h.jsx(Ms, { ...T });
|
|
5543
5550
|
}
|
|
5544
5551
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5545
5552
|
const T = {
|
|
5546
|
-
...
|
|
5553
|
+
...j,
|
|
5547
5554
|
elements: Dr(y),
|
|
5548
|
-
onChange: (
|
|
5549
|
-
p?.(
|
|
5555
|
+
onChange: (_) => {
|
|
5556
|
+
p?.(P(_));
|
|
5550
5557
|
}
|
|
5551
5558
|
};
|
|
5552
|
-
return /* @__PURE__ */ h.jsx(
|
|
5559
|
+
return /* @__PURE__ */ h.jsx(Ns, { ...T });
|
|
5553
5560
|
}
|
|
5554
5561
|
case te.PASSWORD: {
|
|
5555
5562
|
const T = {
|
|
5556
|
-
...
|
|
5563
|
+
...j,
|
|
5557
5564
|
bindValue: y.obj.k,
|
|
5558
|
-
onChange: (
|
|
5559
|
-
p?.(N(y,
|
|
5565
|
+
onChange: (_) => {
|
|
5566
|
+
p?.(N(y, _));
|
|
5560
5567
|
}
|
|
5561
5568
|
};
|
|
5562
5569
|
return /* @__PURE__ */ h.jsx(ks, { ...T });
|
|
5563
5570
|
}
|
|
5564
5571
|
case te.RADIO: {
|
|
5565
5572
|
const T = {
|
|
5566
|
-
...
|
|
5573
|
+
...j,
|
|
5567
5574
|
bindValue: n.k,
|
|
5568
|
-
onChange: (
|
|
5569
|
-
p?.(N(y,
|
|
5575
|
+
onChange: (_, W) => {
|
|
5576
|
+
p?.(N(y, _, W));
|
|
5570
5577
|
}
|
|
5571
5578
|
};
|
|
5572
5579
|
return /* @__PURE__ */ h.jsx(Vs, { ...T });
|
|
5573
5580
|
}
|
|
5574
5581
|
case te.SPOTLIGHT: {
|
|
5575
5582
|
const T = {
|
|
5576
|
-
...
|
|
5583
|
+
...j,
|
|
5577
5584
|
bindValue: y.obj.k,
|
|
5578
|
-
onEnter: (
|
|
5579
|
-
f?.(N(y,
|
|
5585
|
+
onEnter: (_) => {
|
|
5586
|
+
f?.(N(y, _));
|
|
5580
5587
|
}
|
|
5581
5588
|
};
|
|
5582
5589
|
return /* @__PURE__ */ h.jsx(As, { ...T });
|
|
5583
5590
|
}
|
|
5584
5591
|
case te.TEXT_FIELD: {
|
|
5585
5592
|
const T = {
|
|
5586
|
-
...
|
|
5593
|
+
...j,
|
|
5587
5594
|
bindValue: y.obj.k,
|
|
5588
5595
|
optionalDisplayValue: e,
|
|
5589
|
-
onChange: (
|
|
5590
|
-
p?.(N(y,
|
|
5596
|
+
onChange: (_) => {
|
|
5597
|
+
p?.(N(y, _));
|
|
5591
5598
|
}
|
|
5592
5599
|
};
|
|
5593
5600
|
return /* @__PURE__ */ h.jsx($e, { ...T });
|
|
5594
5601
|
}
|
|
5595
5602
|
case te.BUTTON_GROUP: {
|
|
5596
5603
|
const T = {
|
|
5597
|
-
...
|
|
5604
|
+
...j,
|
|
5598
5605
|
bindValue: n.k,
|
|
5599
|
-
onChange: (
|
|
5600
|
-
p?.(N(y,
|
|
5606
|
+
onChange: (_, W) => {
|
|
5607
|
+
p?.(N(y, _, W));
|
|
5601
5608
|
}
|
|
5602
5609
|
};
|
|
5603
5610
|
return /* @__PURE__ */ h.jsx(Jr, { ...T });
|
|
5604
5611
|
}
|
|
5605
5612
|
case te.TIME: {
|
|
5606
5613
|
const T = {
|
|
5607
|
-
...
|
|
5614
|
+
...j,
|
|
5608
5615
|
bindValue: bt.fromDataObj(n).getValue(),
|
|
5609
|
-
onChange: (
|
|
5610
|
-
p?.(N(y,
|
|
5616
|
+
onChange: (_) => {
|
|
5617
|
+
p?.(N(y, _));
|
|
5611
5618
|
}
|
|
5612
5619
|
};
|
|
5613
|
-
return /* @__PURE__ */ h.jsx(
|
|
5620
|
+
return /* @__PURE__ */ h.jsx(Ys, { ...T });
|
|
5614
5621
|
}
|
|
5615
5622
|
default: {
|
|
5616
5623
|
const T = {
|
|
5617
|
-
...
|
|
5624
|
+
...j,
|
|
5618
5625
|
bindValue: y.obj.k,
|
|
5619
5626
|
optionalDisplayValue: e
|
|
5620
5627
|
};
|
|
5621
5628
|
return /* @__PURE__ */ h.jsx(Is, { ...T });
|
|
5622
5629
|
}
|
|
5623
5630
|
}
|
|
5624
|
-
},
|
|
5631
|
+
}, O = {
|
|
5625
5632
|
wrapper: `${qs["smp-cell-wrapper"]}`
|
|
5626
5633
|
};
|
|
5627
5634
|
return /* @__PURE__ */ h.jsx(
|
|
5628
5635
|
"span",
|
|
5629
5636
|
{
|
|
5630
|
-
className:
|
|
5637
|
+
className: O.wrapper,
|
|
5631
5638
|
onContextMenu: (T) => {
|
|
5632
|
-
|
|
5639
|
+
S && c && (T.preventDefault(), S(y, T.currentTarget));
|
|
5633
5640
|
},
|
|
5634
|
-
children:
|
|
5641
|
+
children: $()
|
|
5635
5642
|
}
|
|
5636
5643
|
);
|
|
5637
5644
|
}, Ta = ({
|
|
@@ -5706,44 +5713,44 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5706
5713
|
if (!y?.rows?.length || !y?.columns?.length)
|
|
5707
5714
|
return {};
|
|
5708
5715
|
const b = y.rows[0];
|
|
5709
|
-
return y.columns.filter((
|
|
5710
|
-
const
|
|
5711
|
-
if (!
|
|
5712
|
-
return
|
|
5713
|
-
const
|
|
5714
|
-
...
|
|
5716
|
+
return y.columns.filter((j) => j.visible ?? !0).reduce((j, N) => {
|
|
5717
|
+
const V = b.cells[N.name];
|
|
5718
|
+
if (!V || !p && de(n) && V.shape !== te.BUTTON && V.shape !== te.BUTTON_LIST)
|
|
5719
|
+
return j;
|
|
5720
|
+
const I = {
|
|
5721
|
+
...V,
|
|
5715
5722
|
id: N.name,
|
|
5716
|
-
onChange: (
|
|
5717
|
-
u((
|
|
5718
|
-
const
|
|
5719
|
-
return
|
|
5723
|
+
onChange: (P) => {
|
|
5724
|
+
u(($) => {
|
|
5725
|
+
const O = { ...$ };
|
|
5726
|
+
return O?.[N.name] && (O[N.name].obj.k = P.obj.k), O;
|
|
5720
5727
|
});
|
|
5721
5728
|
},
|
|
5722
|
-
onClick: (
|
|
5723
|
-
|
|
5729
|
+
onClick: (P) => {
|
|
5730
|
+
P.fun && a && a(P);
|
|
5724
5731
|
},
|
|
5725
|
-
onEnter: (
|
|
5726
|
-
o && o(
|
|
5732
|
+
onEnter: (P) => {
|
|
5733
|
+
o && o(P);
|
|
5727
5734
|
},
|
|
5728
|
-
onContextMenu: (
|
|
5729
|
-
c && c(
|
|
5735
|
+
onContextMenu: (P, $) => {
|
|
5736
|
+
c && c(P, $);
|
|
5730
5737
|
}
|
|
5731
5738
|
};
|
|
5732
|
-
return l &&
|
|
5733
|
-
(
|
|
5734
|
-
)), !p && de(n) && (
|
|
5735
|
-
...
|
|
5739
|
+
return l && V.shape == te.BUTTON_LIST && (I.onOptionsRequest = (P, $) => l(P, $).then(
|
|
5740
|
+
(O) => Hs(O)
|
|
5741
|
+
)), !p && de(n) && (I.data = {
|
|
5742
|
+
...I.data,
|
|
5736
5743
|
showText: !1,
|
|
5737
5744
|
justify: "center",
|
|
5738
5745
|
squared: !0
|
|
5739
5746
|
}), {
|
|
5740
|
-
...
|
|
5741
|
-
[N.name]:
|
|
5747
|
+
...j,
|
|
5748
|
+
[N.name]: I
|
|
5742
5749
|
};
|
|
5743
5750
|
}, {});
|
|
5744
5751
|
},
|
|
5745
5752
|
[p, n, a, o, l, c]
|
|
5746
|
-
),
|
|
5753
|
+
), S = oe(() => {
|
|
5747
5754
|
i?.();
|
|
5748
5755
|
}, [i]), E = () => {
|
|
5749
5756
|
de(n) ? g((y) => !y) : (g(!1), i?.());
|
|
@@ -5784,7 +5791,7 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5784
5791
|
"aria-hidden": "true",
|
|
5785
5792
|
"aria-label": "drawer-backdrop",
|
|
5786
5793
|
className: C.backdrop,
|
|
5787
|
-
onClick:
|
|
5794
|
+
onClick: S
|
|
5788
5795
|
}
|
|
5789
5796
|
),
|
|
5790
5797
|
/* @__PURE__ */ h.jsx(
|
|
@@ -5842,24 +5849,24 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5842
5849
|
UmColor: f = "var(--smp-dashList-color-base)",
|
|
5843
5850
|
ForceValue: x,
|
|
5844
5851
|
ValueColName: v,
|
|
5845
|
-
ValueColor:
|
|
5852
|
+
ValueColor: S = "var(--smp-dashList-color-base)",
|
|
5846
5853
|
SelectLayout: E = "1",
|
|
5847
5854
|
onClick: C
|
|
5848
5855
|
}) => {
|
|
5849
|
-
const y = "N/A", b = e?.columns || [],
|
|
5856
|
+
const y = "N/A", b = e?.columns || [], j = e?.rows || [], N = j.length > 0, V = "--smp-dashList-color", I = "smp-layout", P = "descr", $ = "icon", O = "um", T = "value", _ = o || "1em", W = "18px", H = "--smp-dashList-columns", X = "--smp-dashList-fontSize", Q = {
|
|
5850
5857
|
dash: (M = "1") => {
|
|
5851
|
-
const z = m(M), ee = z, ae =
|
|
5858
|
+
const z = m(M), ee = z, ae = w(z, P), Ee = w(z, $), Le = w(z, O), he = w(z, T);
|
|
5852
5859
|
return {
|
|
5853
5860
|
container: ee,
|
|
5854
5861
|
descr: ae,
|
|
5855
5862
|
icon: Ee,
|
|
5856
|
-
um:
|
|
5863
|
+
um: Le,
|
|
5857
5864
|
value: he
|
|
5858
5865
|
};
|
|
5859
5866
|
},
|
|
5860
5867
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5861
5868
|
${de(i) ? "smp-dash-list-horizontal" : ""}`
|
|
5862
|
-
}, { format:
|
|
5869
|
+
}, { format: A } = Se(), m = (M) => `${I}-${M}`, w = (M, z) => `${M}__${z}`, D = (M) => `${V}-${M}`, k = (M) => {
|
|
5863
5870
|
const z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5864
5871
|
if (z.test(M)) {
|
|
5865
5872
|
const ae = M.match(z) || [];
|
|
@@ -5867,15 +5874,15 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5867
5874
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5868
5875
|
}
|
|
5869
5876
|
return M;
|
|
5870
|
-
},
|
|
5877
|
+
}, R = (M) => {
|
|
5871
5878
|
if (!u) return M;
|
|
5872
5879
|
const [z, ee] = F(u).map(
|
|
5873
5880
|
(Ce) => parseInt(Ce || "0")
|
|
5874
|
-
), ae = "0,0" + (ee ? "." + "0".repeat(ee) : ""), Ee =
|
|
5881
|
+
), ae = "0,0" + (ee ? "." + "0".repeat(ee) : ""), Ee = A(M, ae, "it");
|
|
5875
5882
|
if (!z) return Ee;
|
|
5876
|
-
const [
|
|
5877
|
-
return
|
|
5878
|
-
}, F = (M) => M.includes(";") ? M.split(";") : [M],
|
|
5883
|
+
const [Le, he] = Ee.split(",");
|
|
5884
|
+
return Le + (he ? `,${he}` : "");
|
|
5885
|
+
}, F = (M) => M.includes(";") ? M.split(";") : [M], U = (M) => {
|
|
5879
5886
|
const z = (ae) => {
|
|
5880
5887
|
if (ae)
|
|
5881
5888
|
return M?.cells[ae]?.obj.k;
|
|
@@ -5891,31 +5898,31 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5891
5898
|
};
|
|
5892
5899
|
}, G = (M) => {
|
|
5893
5900
|
C?.(M);
|
|
5894
|
-
},
|
|
5901
|
+
}, B = (M, z) => {
|
|
5895
5902
|
(M.key === "Enter" || M.key === " ") && (M.preventDefault(), M.stopPropagation(), G(z));
|
|
5896
5903
|
}, K = ((M) => {
|
|
5897
5904
|
const z = Q.dash(M);
|
|
5898
5905
|
return {
|
|
5899
5906
|
className: z,
|
|
5900
|
-
descr: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.descr, children: ee }, `${M}-${
|
|
5907
|
+
descr: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.descr, children: ee }, `${M}-${P}`),
|
|
5901
5908
|
icon: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.icon, children: /* @__PURE__ */ h.jsx(
|
|
5902
5909
|
ue,
|
|
5903
5910
|
{
|
|
5904
5911
|
color: d,
|
|
5905
|
-
height:
|
|
5912
|
+
height: W,
|
|
5906
5913
|
icon: ee,
|
|
5907
|
-
width:
|
|
5914
|
+
width: W
|
|
5908
5915
|
}
|
|
5909
|
-
) }, `${M}-${
|
|
5910
|
-
um: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.um, children: ee }, `${M}-${
|
|
5916
|
+
) }, `${M}-${$}`),
|
|
5917
|
+
um: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.um, children: ee }, `${M}-${O}`),
|
|
5911
5918
|
value: (ee) => /* @__PURE__ */ h.jsx("div", { className: z.value, children: ee }, `${M}-${T}`)
|
|
5912
5919
|
};
|
|
5913
|
-
})(E),
|
|
5914
|
-
const { descr: z, icon: ee, um: ae, value: Ee } =
|
|
5915
|
-
[D(
|
|
5916
|
-
[D(
|
|
5917
|
-
[D(T)]:
|
|
5918
|
-
}, he = [], Ce =
|
|
5920
|
+
})(E), Y = (M) => {
|
|
5921
|
+
const { descr: z, icon: ee, um: ae, value: Ee } = U(M), Le = {
|
|
5922
|
+
[D(P)]: k(s),
|
|
5923
|
+
[D(O)]: k(f),
|
|
5924
|
+
[D(T)]: k(S)
|
|
5925
|
+
}, he = [], Ce = R(Ee);
|
|
5919
5926
|
switch (E) {
|
|
5920
5927
|
case "2":
|
|
5921
5928
|
ee && he.push(K.icon(ee)), he.push(K.descr(z)), he.push(
|
|
@@ -5933,19 +5940,19 @@ const Nr = /* @__PURE__ */ new Map([
|
|
|
5933
5940
|
{
|
|
5934
5941
|
className: K.className.container,
|
|
5935
5942
|
role: "button",
|
|
5936
|
-
style:
|
|
5943
|
+
style: Le,
|
|
5937
5944
|
tabIndex: 0,
|
|
5938
5945
|
onClick: () => G(M),
|
|
5939
|
-
onKeyDown: (tn) =>
|
|
5946
|
+
onKeyDown: (tn) => B(tn, M),
|
|
5940
5947
|
children: he
|
|
5941
5948
|
},
|
|
5942
5949
|
M.rowId
|
|
5943
5950
|
);
|
|
5944
5951
|
}, L = {
|
|
5945
5952
|
[H]: String(t),
|
|
5946
|
-
[X]:
|
|
5953
|
+
[X]: _
|
|
5947
5954
|
};
|
|
5948
|
-
return /* @__PURE__ */ h.jsx("div", { className: Q.dashList, style: L, children: N ?
|
|
5955
|
+
return /* @__PURE__ */ h.jsx("div", { className: Q.dashList, style: L, children: N ? j.map((M) => Y(M)) : y });
|
|
5949
5956
|
}, Oe = {
|
|
5950
5957
|
"smp-table": "_smp-table_1kjdp_1",
|
|
5951
5958
|
"smp-headerCell": "_smp-headerCell_1kjdp_35",
|
|
@@ -5969,7 +5976,7 @@ function lt(t) {
|
|
|
5969
5976
|
function zs(t) {
|
|
5970
5977
|
return !lt(t);
|
|
5971
5978
|
}
|
|
5972
|
-
function
|
|
5979
|
+
function Nr(t) {
|
|
5973
5980
|
const e = JSON.stringify(t, Object.keys(t).sort());
|
|
5974
5981
|
let r = 0, n, s;
|
|
5975
5982
|
if (e.length === 0) return r.toString();
|
|
@@ -5996,7 +6003,7 @@ const Xr = ({
|
|
|
5996
6003
|
indent: `${Te["smp-row-indent"]}`,
|
|
5997
6004
|
cell: `${Te["smp-row-wrapperCell"]}`,
|
|
5998
6005
|
leftSection: `${Te["smp-row-leftSection"]}`
|
|
5999
|
-
},
|
|
6006
|
+
}, S = (N) => /* @__PURE__ */ h.jsx(ke, { ...N }), E = () => /* @__PURE__ */ h.jsx("span", { className: v.toggle, children: g && /* @__PURE__ */ h.jsx(
|
|
6000
6007
|
ue,
|
|
6001
6008
|
{
|
|
6002
6009
|
icon: c ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -6021,7 +6028,7 @@ const Xr = ({
|
|
|
6021
6028
|
}
|
|
6022
6029
|
);
|
|
6023
6030
|
}, b = () => {
|
|
6024
|
-
const N = zs(t) ? "" : t.decode || (p ? "" : "Untitled"),
|
|
6031
|
+
const N = zs(t) ? "" : t.decode || (p ? "" : "Untitled"), V = a ?? s * n;
|
|
6025
6032
|
return /* @__PURE__ */ h.jsxs(
|
|
6026
6033
|
"tr",
|
|
6027
6034
|
{
|
|
@@ -6032,7 +6039,7 @@ const Xr = ({
|
|
|
6032
6039
|
style: {
|
|
6033
6040
|
height: `${s}px`,
|
|
6034
6041
|
lineHeight: `calc(${s}px - 2*2px)`,
|
|
6035
|
-
transform: `translateY(${
|
|
6042
|
+
transform: `translateY(${V}px)`
|
|
6036
6043
|
},
|
|
6037
6044
|
children: [
|
|
6038
6045
|
o && /* @__PURE__ */ h.jsx(
|
|
@@ -6059,42 +6066,42 @@ const Xr = ({
|
|
|
6059
6066
|
]
|
|
6060
6067
|
}
|
|
6061
6068
|
),
|
|
6062
|
-
e && e.length > 0 ? e.map((
|
|
6063
|
-
const
|
|
6064
|
-
return
|
|
6069
|
+
e && e.length > 0 ? e.map((I) => {
|
|
6070
|
+
const P = t.cells?.[I.name];
|
|
6071
|
+
return P ? /* @__PURE__ */ h.jsx(
|
|
6065
6072
|
"td",
|
|
6066
6073
|
{
|
|
6067
6074
|
className: v.cell,
|
|
6068
6075
|
style: {
|
|
6069
|
-
width: r[
|
|
6070
|
-
minWidth: r[
|
|
6076
|
+
width: r[I.name],
|
|
6077
|
+
minWidth: r[I.name],
|
|
6071
6078
|
height: `${s}px`
|
|
6072
6079
|
},
|
|
6073
|
-
children:
|
|
6074
|
-
|
|
6075
|
-
id:
|
|
6080
|
+
children: S({
|
|
6081
|
+
...P,
|
|
6082
|
+
id: I.name
|
|
6076
6083
|
})
|
|
6077
6084
|
},
|
|
6078
|
-
|
|
6085
|
+
Nr(P) || I.name
|
|
6079
6086
|
) : null;
|
|
6080
|
-
}) : t.cells && Object.entries(t.cells).map(([
|
|
6087
|
+
}) : t.cells && Object.entries(t.cells).map(([I, P]) => /* @__PURE__ */ h.jsx(
|
|
6081
6088
|
"td",
|
|
6082
6089
|
{
|
|
6083
6090
|
className: v.cell,
|
|
6084
6091
|
style: {
|
|
6085
6092
|
height: `${s}px`
|
|
6086
6093
|
},
|
|
6087
|
-
children:
|
|
6088
|
-
|
|
6089
|
-
id:
|
|
6094
|
+
children: S({
|
|
6095
|
+
...P,
|
|
6096
|
+
id: I
|
|
6090
6097
|
})
|
|
6091
6098
|
},
|
|
6092
|
-
|
|
6099
|
+
Nr(P) || I
|
|
6093
6100
|
))
|
|
6094
6101
|
]
|
|
6095
6102
|
}
|
|
6096
6103
|
);
|
|
6097
|
-
},
|
|
6104
|
+
}, j = () => c || !u ? null : /* @__PURE__ */ h.jsx(h.Fragment, { children: lt(t) && t.children?.map((N, V) => /* @__PURE__ */ h.jsx(
|
|
6098
6105
|
Xr,
|
|
6099
6106
|
{
|
|
6100
6107
|
row: N,
|
|
@@ -6102,11 +6109,11 @@ const Xr = ({
|
|
|
6102
6109
|
columns: e,
|
|
6103
6110
|
columnWidths: r
|
|
6104
6111
|
},
|
|
6105
|
-
`child-${
|
|
6112
|
+
`child-${V}`
|
|
6106
6113
|
)) });
|
|
6107
6114
|
return /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
6108
6115
|
b(),
|
|
6109
|
-
|
|
6116
|
+
j()
|
|
6110
6117
|
] });
|
|
6111
6118
|
};
|
|
6112
6119
|
function Ks(t, e) {
|
|
@@ -6132,9 +6139,9 @@ function Xs(t, e, r, n) {
|
|
|
6132
6139
|
return;
|
|
6133
6140
|
}
|
|
6134
6141
|
const f = e[p].column, x = i(u, f);
|
|
6135
|
-
for (const [v,
|
|
6142
|
+
for (const [v, S] of x) {
|
|
6136
6143
|
const E = [...g, v], C = l(E, p), y = n.has(C);
|
|
6137
|
-
s.push(c(v, C, p, y)), a += r, y && o(
|
|
6144
|
+
s.push(c(v, C, p, y)), a += r, y && o(S, p + 1, E);
|
|
6138
6145
|
}
|
|
6139
6146
|
}
|
|
6140
6147
|
function i(u, p) {
|
|
@@ -6599,25 +6606,25 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6599
6606
|
currentColumnName: l,
|
|
6600
6607
|
hasButtonGroup: c = !0
|
|
6601
6608
|
}) => {
|
|
6602
|
-
const { translate: d } = Se(), u = (
|
|
6609
|
+
const { translate: d } = Se(), u = (S, E) => {
|
|
6603
6610
|
const C = [...t.filters];
|
|
6604
|
-
C[
|
|
6605
|
-
}, p = (
|
|
6611
|
+
C[S] = E, e({ ...t, filters: C });
|
|
6612
|
+
}, p = (S) => {
|
|
6606
6613
|
const E = [...t.filters];
|
|
6607
|
-
E.splice(
|
|
6614
|
+
E.splice(S, 1), e({ ...t, filters: E });
|
|
6608
6615
|
}, g = () => {
|
|
6609
|
-
const
|
|
6610
|
-
field:
|
|
6611
|
-
columnsType:
|
|
6616
|
+
const S = a[0], E = { id: "", label: "" }, C = {
|
|
6617
|
+
field: S,
|
|
6618
|
+
columnsType: S?.type || "string",
|
|
6612
6619
|
operator: E,
|
|
6613
6620
|
value: ""
|
|
6614
6621
|
};
|
|
6615
6622
|
e({ ...t, filters: [...t.filters, C] });
|
|
6616
6623
|
}, f = () => {
|
|
6617
|
-
let
|
|
6624
|
+
let S;
|
|
6618
6625
|
if (l) {
|
|
6619
6626
|
const C = a.find((b) => b.id === l), y = { id: "", label: "" };
|
|
6620
|
-
|
|
6627
|
+
S = {
|
|
6621
6628
|
field: C || a[0] || "",
|
|
6622
6629
|
columnsType: C?.type || a[0]?.type || "string",
|
|
6623
6630
|
operator: y,
|
|
@@ -6625,7 +6632,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6625
6632
|
};
|
|
6626
6633
|
} else {
|
|
6627
6634
|
const C = { id: "", label: "" };
|
|
6628
|
-
|
|
6635
|
+
S = {
|
|
6629
6636
|
field: a[0] || "",
|
|
6630
6637
|
columnsType: a[0]?.type || "string",
|
|
6631
6638
|
operator: C,
|
|
@@ -6634,11 +6641,11 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6634
6641
|
}
|
|
6635
6642
|
const E = {
|
|
6636
6643
|
logic: "and",
|
|
6637
|
-
filters: [
|
|
6644
|
+
filters: [S]
|
|
6638
6645
|
};
|
|
6639
6646
|
e({ ...t, filters: [...t.filters, E] });
|
|
6640
|
-
}, x = (
|
|
6641
|
-
e({ ...t, logic:
|
|
6647
|
+
}, x = (S) => {
|
|
6648
|
+
e({ ...t, logic: S });
|
|
6642
6649
|
}, v = {
|
|
6643
6650
|
filterGroup: `${Ue["smp-filter-group"]}`,
|
|
6644
6651
|
filterToolbar: `${Ue["smp-filter-toolbar"]}`,
|
|
@@ -6711,11 +6718,11 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6711
6718
|
)
|
|
6712
6719
|
] })
|
|
6713
6720
|
] }),
|
|
6714
|
-
/* @__PURE__ */ h.jsx("div", { className: v.filterList, children: t.filters.map((
|
|
6715
|
-
({ filter:
|
|
6721
|
+
/* @__PURE__ */ h.jsx("div", { className: v.filterList, children: t.filters.map((S, E) => ({ filter: S, index: E })).filter(({ filter: S }) => l ? "logic" in S ? S.filters.some((E) => "logic" in E ? !1 : E.field.id === l) : S.field.id === l : !0).map(
|
|
6722
|
+
({ filter: S, index: E }) => "logic" in S ? /* @__PURE__ */ h.jsx(
|
|
6716
6723
|
en,
|
|
6717
6724
|
{
|
|
6718
|
-
group:
|
|
6725
|
+
group: S,
|
|
6719
6726
|
onChange: (C) => u(E, C),
|
|
6720
6727
|
onDelete: () => p(E),
|
|
6721
6728
|
level: s + 1,
|
|
@@ -6729,7 +6736,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6729
6736
|
) : /* @__PURE__ */ h.jsx(
|
|
6730
6737
|
ma,
|
|
6731
6738
|
{
|
|
6732
|
-
filter:
|
|
6739
|
+
filter: S,
|
|
6733
6740
|
onChange: (C) => u(E, C),
|
|
6734
6741
|
onDelete: () => p(E),
|
|
6735
6742
|
fieldOptions: a,
|
|
@@ -6790,7 +6797,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6790
6797
|
children: [
|
|
6791
6798
|
/* @__PURE__ */ h.jsx(ue, { icon: "groups" }),
|
|
6792
6799
|
/* @__PURE__ */ h.jsx(
|
|
6793
|
-
|
|
6800
|
+
Wt,
|
|
6794
6801
|
{
|
|
6795
6802
|
elements: o,
|
|
6796
6803
|
isEditable: r,
|
|
@@ -6820,25 +6827,25 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6820
6827
|
onToggleFilter: f,
|
|
6821
6828
|
onToggleColumnFilter: x,
|
|
6822
6829
|
onFiltersChange: v,
|
|
6823
|
-
onResetFilters:
|
|
6830
|
+
onResetFilters: S,
|
|
6824
6831
|
onGroupChange: E,
|
|
6825
6832
|
onGroupDrop: C,
|
|
6826
6833
|
onGroupDragOver: y,
|
|
6827
6834
|
onMouseDown: b,
|
|
6828
|
-
onToggleAllRows:
|
|
6835
|
+
onToggleAllRows: j,
|
|
6829
6836
|
onSort: N,
|
|
6830
|
-
onDragStart:
|
|
6831
|
-
onDragOver:
|
|
6832
|
-
onDrop:
|
|
6837
|
+
onDragStart: V,
|
|
6838
|
+
onDragOver: I,
|
|
6839
|
+
onDrop: P
|
|
6833
6840
|
}) => {
|
|
6834
|
-
const
|
|
6841
|
+
const $ = ie({}), { anchorRef: O, targetRef: T } = Be({
|
|
6835
6842
|
position: "bottom",
|
|
6836
6843
|
enabled: a
|
|
6837
|
-
}), { anchorRef:
|
|
6844
|
+
}), { anchorRef: _, targetRef: W } = Be({
|
|
6838
6845
|
position: "bottom",
|
|
6839
6846
|
enabled: o !== null
|
|
6840
6847
|
}), H = oe(
|
|
6841
|
-
(
|
|
6848
|
+
(A) => ca(A, i),
|
|
6842
6849
|
[i]
|
|
6843
6850
|
), X = ze(
|
|
6844
6851
|
() => ua(i),
|
|
@@ -6852,7 +6859,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6852
6859
|
};
|
|
6853
6860
|
return /* @__PURE__ */ h.jsxs("thead", { children: [
|
|
6854
6861
|
/* @__PURE__ */ h.jsxs("tr", { className: Q.datatableToolbar, children: [
|
|
6855
|
-
/* @__PURE__ */ h.jsx("th", { children: /* @__PURE__ */ h.jsxs("div", { ref:
|
|
6862
|
+
/* @__PURE__ */ h.jsx("th", { children: /* @__PURE__ */ h.jsxs("div", { ref: O, className: Q.datatableFilter, children: [
|
|
6856
6863
|
/* @__PURE__ */ h.jsx(
|
|
6857
6864
|
fe,
|
|
6858
6865
|
{
|
|
@@ -6866,7 +6873,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6866
6873
|
(c || X > 0) && /* @__PURE__ */ h.jsx(h.Fragment, { children: /* @__PURE__ */ h.jsx(
|
|
6867
6874
|
fe,
|
|
6868
6875
|
{
|
|
6869
|
-
onClick:
|
|
6876
|
+
onClick: S,
|
|
6870
6877
|
bindValue: "Reset",
|
|
6871
6878
|
icon: "cancel",
|
|
6872
6879
|
appearance: "ghost",
|
|
@@ -6885,7 +6892,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6885
6892
|
}
|
|
6886
6893
|
)
|
|
6887
6894
|
] }),
|
|
6888
|
-
a && /* @__PURE__ */ h.jsx(
|
|
6895
|
+
a && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
6889
6896
|
Ar,
|
|
6890
6897
|
{
|
|
6891
6898
|
filters: i,
|
|
@@ -6902,39 +6909,39 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6902
6909
|
Bt,
|
|
6903
6910
|
{
|
|
6904
6911
|
bindValue: u,
|
|
6905
|
-
onChange:
|
|
6912
|
+
onChange: j
|
|
6906
6913
|
}
|
|
6907
6914
|
) }),
|
|
6908
6915
|
t && t?.map(
|
|
6909
|
-
(
|
|
6916
|
+
(A) => A.visible && /* @__PURE__ */ h.jsx(
|
|
6910
6917
|
"th",
|
|
6911
6918
|
{
|
|
6912
6919
|
draggable: !0,
|
|
6913
6920
|
role: "columnheader",
|
|
6914
|
-
onClick: () => N(
|
|
6915
|
-
onDragStart: () =>
|
|
6916
|
-
onDragOver:
|
|
6917
|
-
onDrop: () =>
|
|
6921
|
+
onClick: () => N(A.name),
|
|
6922
|
+
onDragStart: () => V(A.name),
|
|
6923
|
+
onDragOver: I,
|
|
6924
|
+
onDrop: () => P(A.name),
|
|
6918
6925
|
className: Q.headerCell,
|
|
6919
6926
|
style: {
|
|
6920
|
-
width: e[
|
|
6921
|
-
minWidth: e[
|
|
6922
|
-
maxWidth: e[
|
|
6927
|
+
width: e[A.name],
|
|
6928
|
+
minWidth: e[A.name],
|
|
6929
|
+
maxWidth: e[A.name]
|
|
6923
6930
|
},
|
|
6924
6931
|
children: /* @__PURE__ */ h.jsxs(
|
|
6925
6932
|
"div",
|
|
6926
6933
|
{
|
|
6927
6934
|
draggable: !0,
|
|
6928
6935
|
onDragStart: (m) => {
|
|
6929
|
-
m.dataTransfer.setData("text/plain",
|
|
6936
|
+
m.dataTransfer.setData("text/plain", A.name);
|
|
6930
6937
|
},
|
|
6931
6938
|
className: Q.headerCellContainer,
|
|
6932
6939
|
ref: (m) => {
|
|
6933
|
-
|
|
6940
|
+
$.current[A.name] = m, o === A.name && m && (typeof _ == "function" ? _(m) : _ && "current" in _ && (_.current = m));
|
|
6934
6941
|
},
|
|
6935
6942
|
children: [
|
|
6936
|
-
/* @__PURE__ */ h.jsx(Ae, { variant: "title", bindValue:
|
|
6937
|
-
p ===
|
|
6943
|
+
/* @__PURE__ */ h.jsx(Ae, { variant: "title", bindValue: A.title }),
|
|
6944
|
+
p === A.name ? /* @__PURE__ */ h.jsx(
|
|
6938
6945
|
fe,
|
|
6939
6946
|
{
|
|
6940
6947
|
icon: g === "asc" ? "arrow_up" : "arrow_down",
|
|
@@ -6948,20 +6955,20 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6948
6955
|
/* @__PURE__ */ h.jsx(
|
|
6949
6956
|
"span",
|
|
6950
6957
|
{
|
|
6951
|
-
className: `${H(
|
|
6958
|
+
className: `${H(A.name) ? Oe["smp-headerCell-iconNotification"] : ""}`,
|
|
6952
6959
|
children: /* @__PURE__ */ h.jsx(
|
|
6953
6960
|
ue,
|
|
6954
6961
|
{
|
|
6955
6962
|
icon: "filter_list",
|
|
6956
6963
|
onClick: (m) => {
|
|
6957
|
-
x(
|
|
6964
|
+
x(A.name), m.stopPropagation();
|
|
6958
6965
|
},
|
|
6959
6966
|
isInteractable: !0
|
|
6960
6967
|
}
|
|
6961
6968
|
)
|
|
6962
6969
|
}
|
|
6963
6970
|
),
|
|
6964
|
-
o ===
|
|
6971
|
+
o === A.name && /* @__PURE__ */ h.jsx(We, { children: /* @__PURE__ */ h.jsx(
|
|
6965
6972
|
Ar,
|
|
6966
6973
|
{
|
|
6967
6974
|
filters: i,
|
|
@@ -6970,18 +6977,18 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6970
6977
|
),
|
|
6971
6978
|
onChange: v,
|
|
6972
6979
|
hasSubGroups: !0,
|
|
6973
|
-
ref:
|
|
6980
|
+
ref: W,
|
|
6974
6981
|
hasSubFilters: !1,
|
|
6975
6982
|
currentColumnName: o,
|
|
6976
6983
|
hasButtonGroup: !1,
|
|
6977
|
-
onClose: () => x(
|
|
6984
|
+
onClose: () => x(A.name)
|
|
6978
6985
|
}
|
|
6979
6986
|
) }),
|
|
6980
6987
|
/* @__PURE__ */ h.jsx(
|
|
6981
6988
|
"div",
|
|
6982
6989
|
{
|
|
6983
6990
|
className: Q.resizer,
|
|
6984
|
-
onMouseDown: (m) => b(m,
|
|
6991
|
+
onMouseDown: (m) => b(m, A.name),
|
|
6985
6992
|
role: "region"
|
|
6986
6993
|
}
|
|
6987
6994
|
)
|
|
@@ -6989,7 +6996,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
6989
6996
|
}
|
|
6990
6997
|
)
|
|
6991
6998
|
},
|
|
6992
|
-
|
|
6999
|
+
A.name
|
|
6993
7000
|
)
|
|
6994
7001
|
)
|
|
6995
7002
|
] })
|
|
@@ -7006,34 +7013,34 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7006
7013
|
}) => {
|
|
7007
7014
|
const [l, c] = q(
|
|
7008
7015
|
t ?? { columns: [], rows: [] }
|
|
7009
|
-
), [d, u] = q(n || []), [p, g] = q(/* @__PURE__ */ new Set()), [f, x] = q(!1), [v,
|
|
7016
|
+
), [d, u] = q(n || []), [p, g] = q(/* @__PURE__ */ new Set()), [f, x] = q(!1), [v, S] = q(/* @__PURE__ */ new Set()), [E, C] = q(null), y = ze(() => Zs(t?.columns || []), [t?.columns]), [b, j] = q(() => kr(o, y)), N = ie(null), [V, I] = Qs({
|
|
7010
7017
|
columns: l?.columns ?? [],
|
|
7011
7018
|
rows: l?.rows ?? [],
|
|
7012
7019
|
containerRef: N,
|
|
7013
7020
|
sizingMode: s
|
|
7014
|
-
}), { handleDragStart:
|
|
7021
|
+
}), { handleDragStart: P, handleDragOver: $, handleDrop: O } = da(
|
|
7015
7022
|
l.columns,
|
|
7016
|
-
(
|
|
7023
|
+
(Y) => c((L) => ({ ...L, columns: Y }))
|
|
7017
7024
|
), T = ze(() => {
|
|
7018
|
-
const
|
|
7019
|
-
return
|
|
7020
|
-
}, [v, l.rows]), { sortBy:
|
|
7025
|
+
const Y = l.rows.map((L, M) => M);
|
|
7026
|
+
return Y.every((L) => v.has(L)) && Y.length > 0;
|
|
7027
|
+
}, [v, l.rows]), { sortBy: _, sortOrder: W, handleSort: H } = fa({
|
|
7021
7028
|
...l,
|
|
7022
7029
|
rows: l.rows
|
|
7023
|
-
}), { virtualItems: X, containerProps: Q, innerProps:
|
|
7030
|
+
}), { virtualItems: X, containerProps: Q, innerProps: A } = Wr({
|
|
7024
7031
|
items: l?.rows ?? [],
|
|
7025
7032
|
itemHeight: e,
|
|
7026
7033
|
containerHeight: r,
|
|
7027
7034
|
overscan: 5
|
|
7028
7035
|
});
|
|
7029
7036
|
se(() => {
|
|
7030
|
-
let
|
|
7031
|
-
b?.filters?.length > 0 && (
|
|
7032
|
-
let L =
|
|
7033
|
-
|
|
7034
|
-
{ ...t ?? { columns: [], rows: [] }, rows:
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
+
let Y = t?.rows ?? [];
|
|
7038
|
+
b?.filters?.length > 0 && (Y = na(Y, b));
|
|
7039
|
+
let L = Y;
|
|
7040
|
+
_ && (L = Zr(
|
|
7041
|
+
{ ...t ?? { columns: [], rows: [] }, rows: Y },
|
|
7042
|
+
_,
|
|
7043
|
+
W
|
|
7037
7044
|
).rows);
|
|
7038
7045
|
let M = L;
|
|
7039
7046
|
if (d?.length && L.length > 0) {
|
|
@@ -7055,32 +7062,32 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7055
7062
|
p,
|
|
7056
7063
|
e,
|
|
7057
7064
|
b,
|
|
7058
|
-
|
|
7059
|
-
|
|
7065
|
+
_,
|
|
7066
|
+
W
|
|
7060
7067
|
]);
|
|
7061
|
-
const m = oe((
|
|
7062
|
-
|
|
7063
|
-
}, []),
|
|
7064
|
-
|
|
7068
|
+
const m = oe((Y) => {
|
|
7069
|
+
j(Y);
|
|
7070
|
+
}, []), w = oe(() => {
|
|
7071
|
+
j(kr(o, y));
|
|
7065
7072
|
}, [o, y]), D = oe(() => {
|
|
7066
|
-
x((
|
|
7067
|
-
}, []),
|
|
7068
|
-
C((L) => L ===
|
|
7069
|
-
}, []),
|
|
7070
|
-
u(Js(
|
|
7071
|
-
}, F = (
|
|
7072
|
-
|
|
7073
|
-
const L =
|
|
7073
|
+
x((Y) => !Y);
|
|
7074
|
+
}, []), k = oe((Y) => {
|
|
7075
|
+
C((L) => L === Y ? null : Y);
|
|
7076
|
+
}, []), R = (Y) => {
|
|
7077
|
+
u(Js(Y, d));
|
|
7078
|
+
}, F = (Y) => {
|
|
7079
|
+
Y.preventDefault();
|
|
7080
|
+
const L = Y.dataTransfer.getData("text/plain");
|
|
7074
7081
|
if (!L || d.some((ee) => ee.column === L))
|
|
7075
7082
|
return;
|
|
7076
7083
|
const z = [...d, { column: L, visible: !0 }];
|
|
7077
7084
|
u(z);
|
|
7078
|
-
},
|
|
7079
|
-
|
|
7080
|
-
}, G = (
|
|
7081
|
-
const M =
|
|
7082
|
-
const
|
|
7083
|
-
|
|
7085
|
+
}, U = (Y) => {
|
|
7086
|
+
Y.preventDefault();
|
|
7087
|
+
}, G = (Y, L) => {
|
|
7088
|
+
const M = Y.clientX, z = V[L], ee = (Ee) => {
|
|
7089
|
+
const Le = Ee.clientX - M, he = Math.max(50, z + Le);
|
|
7090
|
+
I((Ce) => ({
|
|
7084
7091
|
...Ce,
|
|
7085
7092
|
[L]: he
|
|
7086
7093
|
}));
|
|
@@ -7088,14 +7095,14 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7088
7095
|
window.removeEventListener("mousemove", ee), window.removeEventListener("mouseup", ae);
|
|
7089
7096
|
};
|
|
7090
7097
|
window.addEventListener("mousemove", ee), window.addEventListener("mouseup", ae);
|
|
7091
|
-
},
|
|
7092
|
-
|
|
7098
|
+
}, B = (Y) => {
|
|
7099
|
+
S((L) => {
|
|
7093
7100
|
const M = new Set(L);
|
|
7094
|
-
return M.has(
|
|
7101
|
+
return M.has(Y) ? M.delete(Y) : M.add(Y), M;
|
|
7095
7102
|
});
|
|
7096
7103
|
}, Z = () => {
|
|
7097
|
-
const
|
|
7098
|
-
|
|
7104
|
+
const Y = l.rows.map((M, z) => z), L = Y.every((M) => v.has(M));
|
|
7105
|
+
S(L ? /* @__PURE__ */ new Set() : new Set(Y));
|
|
7099
7106
|
}, K = {
|
|
7100
7107
|
smpTable: `${Oe["smp-table"]}`
|
|
7101
7108
|
};
|
|
@@ -7110,7 +7117,7 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7110
7117
|
ba,
|
|
7111
7118
|
{
|
|
7112
7119
|
columns: l.columns,
|
|
7113
|
-
columnWidths:
|
|
7120
|
+
columnWidths: V,
|
|
7114
7121
|
groups: n,
|
|
7115
7122
|
groupState: d,
|
|
7116
7123
|
showGroupBar: a,
|
|
@@ -7121,58 +7128,58 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7121
7128
|
Filter: o,
|
|
7122
7129
|
enableSelection: i,
|
|
7123
7130
|
allVisibleRowsSelected: T,
|
|
7124
|
-
sortBy:
|
|
7125
|
-
sortOrder:
|
|
7131
|
+
sortBy: _,
|
|
7132
|
+
sortOrder: W,
|
|
7126
7133
|
onToggleFilter: D,
|
|
7127
|
-
onToggleColumnFilter:
|
|
7134
|
+
onToggleColumnFilter: k,
|
|
7128
7135
|
onFiltersChange: m,
|
|
7129
|
-
onResetFilters:
|
|
7130
|
-
onGroupChange:
|
|
7136
|
+
onResetFilters: w,
|
|
7137
|
+
onGroupChange: R,
|
|
7131
7138
|
onGroupDrop: F,
|
|
7132
|
-
onGroupDragOver:
|
|
7139
|
+
onGroupDragOver: U,
|
|
7133
7140
|
onMouseDown: G,
|
|
7134
7141
|
onToggleAllRows: Z,
|
|
7135
7142
|
onSort: H,
|
|
7136
|
-
onDragStart:
|
|
7137
|
-
onDragOver:
|
|
7138
|
-
onDrop:
|
|
7143
|
+
onDragStart: P,
|
|
7144
|
+
onDragOver: $,
|
|
7145
|
+
onDrop: O
|
|
7139
7146
|
}
|
|
7140
7147
|
),
|
|
7141
|
-
/* @__PURE__ */ h.jsx("tbody", { ...
|
|
7142
|
-
const z =
|
|
7143
|
-
return
|
|
7148
|
+
/* @__PURE__ */ h.jsx("tbody", { ...A, children: X.map(({ item: Y, index: L, offsetTop: M }) => {
|
|
7149
|
+
const z = Y.rowId || Y.value || `${Y.isGroup ? "group" : "row"}-${L}`;
|
|
7150
|
+
return Y.isGroup ? /* @__PURE__ */ h.jsx(
|
|
7144
7151
|
ha,
|
|
7145
7152
|
{
|
|
7146
|
-
label:
|
|
7153
|
+
label: Y.value || "",
|
|
7147
7154
|
rowHeight: e,
|
|
7148
7155
|
offsetTop: M,
|
|
7149
|
-
level:
|
|
7156
|
+
level: Y.level,
|
|
7150
7157
|
onClick: () => {
|
|
7151
|
-
const ee =
|
|
7158
|
+
const ee = Y.rowId;
|
|
7152
7159
|
ee && g((ae) => Ks(ae, ee));
|
|
7153
7160
|
},
|
|
7154
|
-
isExpanded:
|
|
7161
|
+
isExpanded: Y.isExpanded
|
|
7155
7162
|
},
|
|
7156
7163
|
`group-${z}`
|
|
7157
7164
|
) : /* @__PURE__ */ h.jsx(
|
|
7158
7165
|
Xr,
|
|
7159
7166
|
{
|
|
7160
|
-
row:
|
|
7167
|
+
row: Y,
|
|
7161
7168
|
columns: l.columns,
|
|
7162
|
-
columnWidths:
|
|
7169
|
+
columnWidths: V,
|
|
7163
7170
|
rowHeight: e,
|
|
7164
7171
|
offsetTop: M,
|
|
7165
7172
|
isGroup: !1,
|
|
7166
7173
|
enableSelection: i,
|
|
7167
7174
|
isSelected: v.has(L),
|
|
7168
7175
|
onToggleSelect: () => {
|
|
7169
|
-
|
|
7176
|
+
B(L);
|
|
7170
7177
|
}
|
|
7171
7178
|
},
|
|
7172
7179
|
`row-${z}`
|
|
7173
7180
|
);
|
|
7174
7181
|
}) }),
|
|
7175
|
-
/* @__PURE__ */ h.jsx(pa, { columns: l.columns, columnWidths:
|
|
7182
|
+
/* @__PURE__ */ h.jsx(pa, { columns: l.columns, columnWidths: V })
|
|
7176
7183
|
] })
|
|
7177
7184
|
}
|
|
7178
7185
|
);
|
|
@@ -7306,55 +7313,55 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7306
7313
|
onContextMenu: p,
|
|
7307
7314
|
onButtonClick: g
|
|
7308
7315
|
}) => {
|
|
7309
|
-
const f = ie(!1), x = ie([]), [v,
|
|
7316
|
+
const f = ie(!1), x = ie([]), [v, S] = q(
|
|
7310
7317
|
() => Ir(t, a, r)
|
|
7311
7318
|
), { translate: E } = Se(), C = je(), y = ie(null);
|
|
7312
7319
|
se(() => {
|
|
7313
|
-
f.current ?
|
|
7314
|
-
|
|
7320
|
+
f.current ? S(Ir(t, a, r)) : (f.current = !0, y.current && y.current.querySelectorAll('[type="text"]').forEach((O) => {
|
|
7321
|
+
O instanceof HTMLInputElement && x.current.push(O);
|
|
7315
7322
|
}));
|
|
7316
7323
|
}, [t]), se(() => {
|
|
7317
7324
|
o && y.current && x.current.length > 0 && x.current[0].focus();
|
|
7318
7325
|
}, [o]);
|
|
7319
|
-
const b = (
|
|
7320
|
-
if (
|
|
7326
|
+
const b = ($, O) => {
|
|
7327
|
+
if (S((T) => ({
|
|
7321
7328
|
...T,
|
|
7322
|
-
[
|
|
7323
|
-
...T[
|
|
7329
|
+
[$]: {
|
|
7330
|
+
...T[$],
|
|
7324
7331
|
obj: {
|
|
7325
|
-
...T[
|
|
7326
|
-
k:
|
|
7332
|
+
...T[$].obj,
|
|
7333
|
+
k: O.obj.k
|
|
7327
7334
|
},
|
|
7328
|
-
decode:
|
|
7335
|
+
decode: O.decode,
|
|
7329
7336
|
data: {
|
|
7330
|
-
...T[
|
|
7337
|
+
...T[$].data,
|
|
7331
7338
|
error: void 0
|
|
7332
7339
|
},
|
|
7333
7340
|
// FIXME: remove this when webup.js will not use value
|
|
7334
|
-
value:
|
|
7341
|
+
value: O.obj.k
|
|
7335
7342
|
}
|
|
7336
|
-
})), s && (
|
|
7343
|
+
})), s && (O.shape == te.CHECKBOX || O.shape == te.SWITCH)) {
|
|
7337
7344
|
const T = structuredClone(v);
|
|
7338
|
-
T[
|
|
7345
|
+
T[$].obj.k = O.obj.k, T[$].value = O.obj.k, c({
|
|
7339
7346
|
value: Dt(t, T),
|
|
7340
|
-
cell:
|
|
7347
|
+
cell: $
|
|
7341
7348
|
});
|
|
7342
7349
|
}
|
|
7343
|
-
if (i &&
|
|
7350
|
+
if (i && O.data?.maxLength && O.data.maxLength <= O.obj.k.length) {
|
|
7344
7351
|
const T = x.current.findIndex(
|
|
7345
|
-
(
|
|
7352
|
+
(_) => _.name == $
|
|
7346
7353
|
);
|
|
7347
7354
|
T < x.current.length - 1 && x.current[T + 1].focus();
|
|
7348
7355
|
}
|
|
7349
|
-
},
|
|
7350
|
-
const
|
|
7356
|
+
}, j = ($) => {
|
|
7357
|
+
const O = Dt(t, v);
|
|
7351
7358
|
c({
|
|
7352
|
-
value:
|
|
7353
|
-
cell:
|
|
7359
|
+
value: O,
|
|
7360
|
+
cell: $
|
|
7354
7361
|
});
|
|
7355
|
-
}, N = (
|
|
7362
|
+
}, N = ($, O) => {
|
|
7356
7363
|
g?.({
|
|
7357
|
-
cellId:
|
|
7364
|
+
cellId: $,
|
|
7358
7365
|
currentState: {
|
|
7359
7366
|
type: "SmeupDataTable",
|
|
7360
7367
|
columns: t.columns,
|
|
@@ -7364,44 +7371,44 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7364
7371
|
}
|
|
7365
7372
|
]
|
|
7366
7373
|
},
|
|
7367
|
-
fun:
|
|
7374
|
+
fun: O || ""
|
|
7368
7375
|
});
|
|
7369
|
-
},
|
|
7370
|
-
if (v[
|
|
7371
|
-
obj: v[
|
|
7372
|
-
fun: v[
|
|
7373
|
-
cellId:
|
|
7374
|
-
})).valid ||
|
|
7376
|
+
}, V = async ($) => {
|
|
7377
|
+
if (v[$].obj.k != t.rows[0].cells[$].obj.k && (v[$].inputSettings?.checkObject && u && ((await u({
|
|
7378
|
+
obj: v[$].obj,
|
|
7379
|
+
fun: v[$].fun,
|
|
7380
|
+
cellId: $
|
|
7381
|
+
})).valid || S((T) => ({
|
|
7375
7382
|
...T,
|
|
7376
|
-
[
|
|
7377
|
-
...T[
|
|
7383
|
+
[$]: {
|
|
7384
|
+
...T[$],
|
|
7378
7385
|
data: {
|
|
7379
|
-
...T[
|
|
7386
|
+
...T[$].data,
|
|
7380
7387
|
error: E(Re.CHECK_OBJECT_WRONG_VALIDATION)
|
|
7381
7388
|
}
|
|
7382
7389
|
}
|
|
7383
|
-
}))), v[
|
|
7384
|
-
const
|
|
7390
|
+
}))), v[$].inputSettings?.checkValueOnExit)) {
|
|
7391
|
+
const O = Dt(t, v);
|
|
7385
7392
|
d?.({
|
|
7386
|
-
value:
|
|
7387
|
-
cell:
|
|
7393
|
+
value: O,
|
|
7394
|
+
cell: $
|
|
7388
7395
|
});
|
|
7389
7396
|
}
|
|
7390
|
-
},
|
|
7397
|
+
}, I = t.setup?.commands?.map(($, O) => /* @__PURE__ */ nn(
|
|
7391
7398
|
ke,
|
|
7392
7399
|
{
|
|
7393
|
-
|
|
7394
|
-
decode:
|
|
7400
|
+
...$,
|
|
7401
|
+
decode: $.value,
|
|
7395
7402
|
data: {
|
|
7396
|
-
label:
|
|
7403
|
+
label: $.value
|
|
7397
7404
|
},
|
|
7398
|
-
id: `command-${
|
|
7399
|
-
key: `command-${
|
|
7405
|
+
id: `command-${O}`,
|
|
7406
|
+
key: `command-${O}`,
|
|
7400
7407
|
shape: te.BUTTON,
|
|
7401
|
-
onClick: () =>
|
|
7408
|
+
onClick: () => j($.obj.k)
|
|
7402
7409
|
}
|
|
7403
7410
|
)) || [];
|
|
7404
|
-
n ||
|
|
7411
|
+
n || I.unshift(
|
|
7405
7412
|
/* @__PURE__ */ h.jsx(
|
|
7406
7413
|
ke,
|
|
7407
7414
|
{
|
|
@@ -7421,40 +7428,40 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7421
7428
|
"submit-command"
|
|
7422
7429
|
)
|
|
7423
7430
|
);
|
|
7424
|
-
const
|
|
7431
|
+
const P = {
|
|
7425
7432
|
smpForm: `${wa["smp-form"]}`
|
|
7426
7433
|
};
|
|
7427
7434
|
return v && /* @__PURE__ */ h.jsxs(
|
|
7428
7435
|
"form",
|
|
7429
7436
|
{
|
|
7430
7437
|
"data-component": "input-panel",
|
|
7431
|
-
className:
|
|
7438
|
+
className: P.smpForm,
|
|
7432
7439
|
id: e || C,
|
|
7433
|
-
onSubmit: (
|
|
7434
|
-
|
|
7440
|
+
onSubmit: ($) => {
|
|
7441
|
+
$.preventDefault(), j();
|
|
7435
7442
|
},
|
|
7436
7443
|
ref: y,
|
|
7437
7444
|
children: [
|
|
7438
|
-
/* @__PURE__ */ h.jsx(dt, { layout: t.rows[0].layout, children: Object.values(v).map((
|
|
7445
|
+
/* @__PURE__ */ h.jsx(dt, { layout: t.rows[0].layout, children: Object.values(v).map(($) => /* @__PURE__ */ h.jsx(
|
|
7439
7446
|
ke,
|
|
7440
7447
|
{
|
|
7441
|
-
|
|
7442
|
-
onOptionsRequest:
|
|
7443
|
-
await l(
|
|
7448
|
+
...$,
|
|
7449
|
+
onOptionsRequest: $.fun ? async (O, T) => xa(
|
|
7450
|
+
await l(O, T, t, $.id)
|
|
7444
7451
|
) : void 0,
|
|
7445
|
-
onChange: (
|
|
7446
|
-
onBlur: () =>
|
|
7452
|
+
onChange: (O) => b($.id, O),
|
|
7453
|
+
onBlur: () => V($.id),
|
|
7447
7454
|
onContextMenu: p,
|
|
7448
7455
|
onClick: () => {
|
|
7449
|
-
(
|
|
7456
|
+
($.shape == "BTN" || $.shape == "CFM") && N($.id, $.fun);
|
|
7450
7457
|
},
|
|
7451
7458
|
data: {
|
|
7452
|
-
|
|
7459
|
+
...$.data,
|
|
7453
7460
|
autocomplete: "off"
|
|
7454
7461
|
}
|
|
7455
7462
|
}
|
|
7456
7463
|
)) }),
|
|
7457
|
-
|
|
7464
|
+
I.length > 0 && /* @__PURE__ */ h.jsx(
|
|
7458
7465
|
dt,
|
|
7459
7466
|
{
|
|
7460
7467
|
layout: {
|
|
@@ -7463,13 +7470,13 @@ const pa = ({ columns: t, columnWidths: e }) => /* @__PURE__ */ h.jsx("tfoot", {
|
|
|
7463
7470
|
id: "1",
|
|
7464
7471
|
horizontal: !0,
|
|
7465
7472
|
justify: "start",
|
|
7466
|
-
content:
|
|
7467
|
-
id:
|
|
7473
|
+
content: I.map(($) => ({
|
|
7474
|
+
id: $.props.id
|
|
7468
7475
|
}))
|
|
7469
7476
|
}
|
|
7470
7477
|
]
|
|
7471
7478
|
},
|
|
7472
|
-
children:
|
|
7479
|
+
children: I
|
|
7473
7480
|
}
|
|
7474
7481
|
)
|
|
7475
7482
|
]
|
|
@@ -7491,7 +7498,7 @@ export {
|
|
|
7491
7498
|
ue as Icon,
|
|
7492
7499
|
Da as InputPanel,
|
|
7493
7500
|
ks as Password,
|
|
7494
|
-
|
|
7501
|
+
Nn as TabBar,
|
|
7495
7502
|
$e as Textfield,
|
|
7496
7503
|
Ca as configurePaths
|
|
7497
7504
|
};
|