@sme.up/ketchup2 2.0.0-SNAPSHOT-20250708085903 → 2.0.0-SNAPSHOT-20250714090237
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/svg/clear.svg +1 -0
- package/dist/assets/svg/list.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts +1 -0
- package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +5 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.es.js +1161 -1133
- package/dist/types/data-structures.d.ts +1 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as He from "react";
|
|
2
|
-
import rt, { useState as G, useRef as
|
|
2
|
+
import rt, { useState as G, useRef as ue, useEffect as ne, useCallback as fe, useLayoutEffect as Fn, useId as Se, useMemo as Vn, createElement as Un } from "react";
|
|
3
3
|
import { createPortal as Wn } from "react-dom";
|
|
4
4
|
var qe = { exports: {} }, Fe = {};
|
|
5
5
|
/**
|
|
@@ -58,11 +58,11 @@ function Bn() {
|
|
|
58
58
|
return "Profiler";
|
|
59
59
|
case S:
|
|
60
60
|
return "StrictMode";
|
|
61
|
-
case
|
|
61
|
+
case g:
|
|
62
62
|
return "Suspense";
|
|
63
|
-
case k:
|
|
64
|
-
return "SuspenseList";
|
|
65
63
|
case L:
|
|
64
|
+
return "SuspenseList";
|
|
65
|
+
case k:
|
|
66
66
|
return "Activity";
|
|
67
67
|
}
|
|
68
68
|
if (typeof h == "object")
|
|
@@ -75,15 +75,15 @@ function Bn() {
|
|
|
75
75
|
return (h.displayName || "Context") + ".Provider";
|
|
76
76
|
case b:
|
|
77
77
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
78
|
-
case
|
|
79
|
-
var
|
|
80
|
-
return h = h.displayName, h || (h =
|
|
81
|
-
case
|
|
82
|
-
return
|
|
78
|
+
case x:
|
|
79
|
+
var v = h.render;
|
|
80
|
+
return h = h.displayName, h || (h = v.displayName || v.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
81
|
+
case j:
|
|
82
|
+
return v = h.displayName || null, v !== null ? v : n(h.type) || "Memo";
|
|
83
83
|
case O:
|
|
84
|
-
|
|
84
|
+
v = h._payload, h = h._init;
|
|
85
85
|
try {
|
|
86
|
-
return n(h(
|
|
86
|
+
return n(h(v));
|
|
87
87
|
} catch {
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -95,17 +95,17 @@ function Bn() {
|
|
|
95
95
|
function t(h) {
|
|
96
96
|
try {
|
|
97
97
|
e(h);
|
|
98
|
-
var
|
|
98
|
+
var v = !1;
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
v = !0;
|
|
101
101
|
}
|
|
102
|
-
if (
|
|
103
|
-
|
|
104
|
-
var $ =
|
|
102
|
+
if (v) {
|
|
103
|
+
v = console;
|
|
104
|
+
var $ = v.error, I = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
105
105
|
return $.call(
|
|
106
|
-
|
|
106
|
+
v,
|
|
107
107
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
|
|
108
|
+
I
|
|
109
109
|
), e(h);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,8 +114,8 @@ function Bn() {
|
|
|
114
114
|
if (typeof h == "object" && h !== null && h.$$typeof === O)
|
|
115
115
|
return "<...>";
|
|
116
116
|
try {
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
var v = n(h);
|
|
118
|
+
return v ? "<" + v + ">" : "<...>";
|
|
119
119
|
} catch {
|
|
120
120
|
return "<...>";
|
|
121
121
|
}
|
|
@@ -129,16 +129,16 @@ function Bn() {
|
|
|
129
129
|
}
|
|
130
130
|
function i(h) {
|
|
131
131
|
if (T.call(h, "key")) {
|
|
132
|
-
var
|
|
133
|
-
if (
|
|
132
|
+
var v = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
133
|
+
if (v && v.isReactWarning) return !1;
|
|
134
134
|
}
|
|
135
135
|
return h.key !== void 0;
|
|
136
136
|
}
|
|
137
|
-
function o(h,
|
|
137
|
+
function o(h, v) {
|
|
138
138
|
function $() {
|
|
139
|
-
|
|
139
|
+
H || (H = !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
|
+
v
|
|
142
142
|
));
|
|
143
143
|
}
|
|
144
144
|
$.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
@@ -148,17 +148,17 @@ function Bn() {
|
|
|
148
148
|
}
|
|
149
149
|
function l() {
|
|
150
150
|
var h = n(this.type);
|
|
151
|
-
return
|
|
151
|
+
return B[h] || (B[h] = !0, console.error(
|
|
152
152
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
153
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
154
154
|
}
|
|
155
|
-
function c(h,
|
|
156
|
-
return $ =
|
|
157
|
-
$$typeof:
|
|
155
|
+
function c(h, v, $, I, _, A, V, U) {
|
|
156
|
+
return $ = A.ref, h = {
|
|
157
|
+
$$typeof: y,
|
|
158
158
|
type: h,
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
159
|
+
key: v,
|
|
160
|
+
props: A,
|
|
161
|
+
_owner: _
|
|
162
162
|
}, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(h, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
164
|
get: l
|
|
@@ -176,68 +176,68 @@ function Bn() {
|
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
179
|
+
value: V
|
|
180
180
|
}), Object.defineProperty(h, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
184
|
+
value: U
|
|
185
185
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
186
186
|
}
|
|
187
|
-
function f(h,
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
u(
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function f(h, v, $, I, _, A, V, U) {
|
|
188
|
+
var W = v.children;
|
|
189
|
+
if (W !== void 0)
|
|
190
|
+
if (I)
|
|
191
|
+
if (P(W)) {
|
|
192
|
+
for (I = 0; I < W.length; I++)
|
|
193
|
+
u(W[I]);
|
|
194
|
+
Object.freeze && Object.freeze(W);
|
|
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 (T.call(
|
|
201
|
-
|
|
202
|
-
var J = Object.keys(
|
|
199
|
+
else u(W);
|
|
200
|
+
if (T.call(v, "key")) {
|
|
201
|
+
W = n(h);
|
|
202
|
+
var J = Object.keys(v).filter(function(se) {
|
|
203
203
|
return se !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
I = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", F[W + I] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
I,
|
|
213
|
+
W,
|
|
214
214
|
J,
|
|
215
|
-
|
|
216
|
-
), F[
|
|
215
|
+
W
|
|
216
|
+
), F[W + I] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
218
|
+
if (W = null, $ !== void 0 && (t($), W = "" + $), i(v) && (t(v.key), W = "" + v.key), "key" in v) {
|
|
219
219
|
$ = {};
|
|
220
|
-
for (var q in
|
|
221
|
-
q !== "key" && ($[q] =
|
|
222
|
-
} else $ =
|
|
223
|
-
return
|
|
220
|
+
for (var q in v)
|
|
221
|
+
q !== "key" && ($[q] = v[q]);
|
|
222
|
+
} else $ = v;
|
|
223
|
+
return W && o(
|
|
224
224
|
$,
|
|
225
225
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
226
226
|
), c(
|
|
227
227
|
h,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
W,
|
|
229
|
+
A,
|
|
230
|
+
_,
|
|
231
231
|
s(),
|
|
232
232
|
$,
|
|
233
|
-
|
|
234
|
-
|
|
233
|
+
V,
|
|
234
|
+
U
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function u(h) {
|
|
238
|
-
typeof h == "object" && h !== null && h.$$typeof ===
|
|
238
|
+
typeof h == "object" && h !== null && h.$$typeof === y && h._store && (h._store.validated = 1);
|
|
239
239
|
}
|
|
240
|
-
var p = rt,
|
|
240
|
+
var p = rt, y = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), C = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), D = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, P = Array.isArray, N = 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 h();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
248
|
+
var H, B = {}, z = p["react-stack-bottom-frame"].bind(
|
|
249
249
|
p,
|
|
250
250
|
a
|
|
251
|
-
)(),
|
|
252
|
-
Ve.Fragment = w, Ve.jsx = function(h,
|
|
253
|
-
var
|
|
251
|
+
)(), Z = N(r(a)), F = {};
|
|
252
|
+
Ve.Fragment = w, Ve.jsx = function(h, v, $, I, _) {
|
|
253
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
254
254
|
return f(
|
|
255
255
|
h,
|
|
256
|
-
|
|
256
|
+
v,
|
|
257
257
|
$,
|
|
258
258
|
!1,
|
|
259
|
+
I,
|
|
259
260
|
_,
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
P ? N(r(h)) : X
|
|
261
|
+
A ? Error("react-stack-top-frame") : z,
|
|
262
|
+
A ? N(r(h)) : Z
|
|
263
263
|
);
|
|
264
|
-
}, Ve.jsxs = function(h,
|
|
265
|
-
var
|
|
264
|
+
}, Ve.jsxs = function(h, v, $, I, _) {
|
|
265
|
+
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
266
266
|
return f(
|
|
267
267
|
h,
|
|
268
|
-
|
|
268
|
+
v,
|
|
269
269
|
$,
|
|
270
270
|
!0,
|
|
271
|
+
I,
|
|
271
272
|
_,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
P ? N(r(h)) : X
|
|
273
|
+
A ? Error("react-stack-top-frame") : z,
|
|
274
|
+
A ? N(r(h)) : Z
|
|
275
275
|
);
|
|
276
276
|
};
|
|
277
277
|
}()), Ve;
|
|
@@ -383,10 +383,10 @@ function zn() {
|
|
|
383
383
|
function i(u) {
|
|
384
384
|
if (!u || typeof u != "object")
|
|
385
385
|
throw new TypeError("argument obj is required");
|
|
386
|
-
var p = u.parameters,
|
|
387
|
-
if (!
|
|
386
|
+
var p = u.parameters, y = u.type;
|
|
387
|
+
if (!y || !a.test(y))
|
|
388
388
|
throw new TypeError("invalid type");
|
|
389
|
-
var d =
|
|
389
|
+
var d = y;
|
|
390
390
|
if (p && typeof p == "object")
|
|
391
391
|
for (var w, S = Object.keys(p).sort(), E = 0; E < S.length; E++) {
|
|
392
392
|
if (w = S[E], !t.test(w))
|
|
@@ -401,18 +401,18 @@ function zn() {
|
|
|
401
401
|
var p = typeof u == "object" ? l(u) : u;
|
|
402
402
|
if (typeof p != "string")
|
|
403
403
|
throw new TypeError("argument string is required to be a string");
|
|
404
|
-
var
|
|
404
|
+
var y = p.indexOf(";"), d = y !== -1 ? p.slice(0, y).trim() : p.trim();
|
|
405
405
|
if (!a.test(d))
|
|
406
406
|
throw new TypeError("invalid media type");
|
|
407
407
|
var w = new f(d.toLowerCase());
|
|
408
|
-
if (
|
|
408
|
+
if (y !== -1) {
|
|
409
409
|
var S, E, b;
|
|
410
|
-
for (n.lastIndex =
|
|
411
|
-
if (E.index !==
|
|
410
|
+
for (n.lastIndex = y; E = n.exec(p); ) {
|
|
411
|
+
if (E.index !== y)
|
|
412
412
|
throw new TypeError("invalid parameter format");
|
|
413
|
-
|
|
413
|
+
y += E[0].length, S = E[1].toLowerCase(), b = E[2], b.charCodeAt(0) === 34 && (b = b.slice(1, -1), b.indexOf("\\") !== -1 && (b = b.replace(r, "$1"))), w.parameters[S] = b;
|
|
414
414
|
}
|
|
415
|
-
if (
|
|
415
|
+
if (y !== p.length)
|
|
416
416
|
throw new TypeError("invalid parameter format");
|
|
417
417
|
}
|
|
418
418
|
return w;
|
|
@@ -467,17 +467,17 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
467
467
|
throw o;
|
|
468
468
|
}
|
|
469
469
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
470
|
-
},
|
|
471
|
-
|
|
470
|
+
}, we = {}, Bt = function(e, t) {
|
|
471
|
+
we[e] = we[e] || [], we[e].push(t);
|
|
472
472
|
}, Xn = function(e) {
|
|
473
473
|
for (var t = function(i, o) {
|
|
474
474
|
setTimeout(function() {
|
|
475
|
-
if (Array.isArray(
|
|
476
|
-
var l = Pe.get(e), c =
|
|
477
|
-
l instanceof SVGSVGElement && c(null, _n(l)), l instanceof Error && c(l), i ===
|
|
475
|
+
if (Array.isArray(we[e])) {
|
|
476
|
+
var l = Pe.get(e), c = we[e][i];
|
|
477
|
+
l instanceof SVGSVGElement && c(null, _n(l)), l instanceof Error && c(l), i === we[e].length - 1 && delete we[e];
|
|
478
478
|
}
|
|
479
479
|
}, 0);
|
|
480
|
-
}, r = 0, s =
|
|
480
|
+
}, r = 0, s = we[e].length; r < s; r++)
|
|
481
481
|
t(r);
|
|
482
482
|
}, Zn = function(e, t, r) {
|
|
483
483
|
if (Pe.has(e)) {
|
|
@@ -521,8 +521,8 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
521
521
|
}
|
|
522
522
|
var p = e.getAttribute("id");
|
|
523
523
|
p && u.setAttribute("id", p);
|
|
524
|
-
var
|
|
525
|
-
|
|
524
|
+
var y = e.getAttribute("title");
|
|
525
|
+
y && u.setAttribute("title", y);
|
|
526
526
|
var d = e.getAttribute("width");
|
|
527
527
|
d && u.setAttribute("width", d);
|
|
528
528
|
var w = e.getAttribute("height");
|
|
@@ -531,11 +531,11 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
531
531
|
u.setAttribute("class", S);
|
|
532
532
|
var E = e.getAttribute("style");
|
|
533
533
|
E && u.setAttribute("style", E), u.setAttribute("data-src", l);
|
|
534
|
-
var b = [].filter.call(e.attributes, function(
|
|
535
|
-
return /^data-\w[\w-]*$/.test(
|
|
534
|
+
var b = [].filter.call(e.attributes, function(Z) {
|
|
535
|
+
return /^data-\w[\w-]*$/.test(Z.name);
|
|
536
536
|
});
|
|
537
|
-
if (Array.prototype.forEach.call(b, function(
|
|
538
|
-
|
|
537
|
+
if (Array.prototype.forEach.call(b, function(Z) {
|
|
538
|
+
Z.name && Z.value && u.setAttribute(Z.name, Z.value);
|
|
539
539
|
}), r) {
|
|
540
540
|
var C = {
|
|
541
541
|
clipPath: ["clip-path"],
|
|
@@ -548,41 +548,41 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
548
548
|
path: [],
|
|
549
549
|
pattern: ["fill", "stroke"],
|
|
550
550
|
radialGradient: ["fill", "stroke"]
|
|
551
|
-
},
|
|
552
|
-
Object.keys(C).forEach(function(
|
|
553
|
-
|
|
554
|
-
for (var F = function(
|
|
555
|
-
|
|
556
|
-
var
|
|
557
|
-
Array.prototype.forEach.call(
|
|
558
|
-
|
|
559
|
-
for (var
|
|
560
|
-
var ae =
|
|
561
|
-
ae && !ae.match(new RegExp('url\\("?#' +
|
|
551
|
+
}, x, g, L, j, O;
|
|
552
|
+
Object.keys(C).forEach(function(Z) {
|
|
553
|
+
x = Z, L = C[Z], g = u.querySelectorAll(x + "[id]");
|
|
554
|
+
for (var F = function(I, _) {
|
|
555
|
+
j = g[I].id, O = j + "-" + tr();
|
|
556
|
+
var A;
|
|
557
|
+
Array.prototype.forEach.call(L, function(Y) {
|
|
558
|
+
A = u.querySelectorAll("[" + Y + '*="' + j + '"]');
|
|
559
|
+
for (var X = 0, re = A.length; X < re; X++) {
|
|
560
|
+
var ae = A[X].getAttribute(Y);
|
|
561
|
+
ae && !ae.match(new RegExp('url\\("?#' + j + '"?\\)')) || A[X].setAttribute(Y, "url(#" + O + ")");
|
|
562
562
|
}
|
|
563
563
|
});
|
|
564
|
-
for (var
|
|
565
|
-
var q =
|
|
566
|
-
q && q.toString() === "#" +
|
|
564
|
+
for (var V = u.querySelectorAll("[*|href]"), U = [], W = 0, J = V.length; W < J; W++) {
|
|
565
|
+
var q = V[W].getAttributeNS(yt, "href");
|
|
566
|
+
q && q.toString() === "#" + g[I].id && U.push(V[W]);
|
|
567
567
|
}
|
|
568
|
-
for (var se = 0, M =
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
}, h = 0,
|
|
568
|
+
for (var se = 0, M = U.length; se < M; se++)
|
|
569
|
+
U[se].setAttributeNS(yt, "href", "#" + O);
|
|
570
|
+
g[I].id = O;
|
|
571
|
+
}, h = 0, v = g.length; h < v; h++)
|
|
572
572
|
F(h);
|
|
573
573
|
});
|
|
574
574
|
}
|
|
575
575
|
u.removeAttribute("xmlns:a");
|
|
576
|
-
for (var
|
|
577
|
-
T =
|
|
576
|
+
for (var k = u.querySelectorAll("script"), R = [], D, T, P = 0, N = k.length; P < N; P++)
|
|
577
|
+
T = k[P].getAttribute("type"), (!T || T === "application/ecmascript" || T === "application/javascript" || T === "text/javascript") && (D = k[P].innerText || k[P].textContent, D && R.push(D), u.removeChild(k[P]));
|
|
578
578
|
if (R.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
579
|
-
for (var
|
|
580
|
-
new Function(R[
|
|
579
|
+
for (var H = 0, B = R.length; H < B; H++)
|
|
580
|
+
new Function(R[H])(window);
|
|
581
581
|
Gt[l] = !0;
|
|
582
582
|
}
|
|
583
583
|
var z = u.querySelectorAll("style");
|
|
584
|
-
if (Array.prototype.forEach.call(z, function(
|
|
585
|
-
|
|
584
|
+
if (Array.prototype.forEach.call(z, function(Z) {
|
|
585
|
+
Z.textContent += "";
|
|
586
586
|
}), u.setAttribute("xmlns", nr), u.setAttribute("xmlns:xlink", yt), i(u), !e.parentNode) {
|
|
587
587
|
ye.splice(ye.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
588
588
|
return;
|
|
@@ -593,16 +593,16 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
593
593
|
var r = t === void 0 ? {} : t, s = r.afterAll, a = s === void 0 ? function() {
|
|
594
594
|
} : s, i = r.afterEach, o = i === void 0 ? function() {
|
|
595
595
|
} : i, l = r.beforeEach, c = l === void 0 ? function() {
|
|
596
|
-
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts,
|
|
596
|
+
} : l, f = r.cacheRequests, u = f === void 0 ? !0 : f, p = r.evalScripts, y = p === void 0 ? "never" : p, d = r.httpRequestWithCredentials, w = d === void 0 ? !1 : d, S = r.renumerateIRIElements, E = S === void 0 ? !0 : S;
|
|
597
597
|
if (e && "length" in e)
|
|
598
|
-
for (var b = 0, C = 0,
|
|
599
|
-
Ht(e[C],
|
|
600
|
-
o(
|
|
598
|
+
for (var b = 0, C = 0, x = e.length; C < x; C++)
|
|
599
|
+
Ht(e[C], y, E, u, w, c, function(g, L) {
|
|
600
|
+
o(g, L), e && "length" in e && e.length === ++b && a(b);
|
|
601
601
|
});
|
|
602
|
-
else e ? Ht(e,
|
|
603
|
-
o(
|
|
602
|
+
else e ? Ht(e, y, E, u, w, c, function(g, L) {
|
|
603
|
+
o(g, L), a(1), e = null;
|
|
604
604
|
}) : a(0);
|
|
605
|
-
}, ze = { exports: {} }, Je = { exports: {} },
|
|
605
|
+
}, ze = { exports: {} }, Je = { exports: {} }, ee = {};
|
|
606
606
|
/** @license React v16.13.1
|
|
607
607
|
* react-is.production.min.js
|
|
608
608
|
*
|
|
@@ -613,71 +613,71 @@ var Jn = zn(), Pe = /* @__PURE__ */ new Map(), _n = function(e) {
|
|
|
613
613
|
*/
|
|
614
614
|
var qt;
|
|
615
615
|
function sr() {
|
|
616
|
-
if (qt) return
|
|
616
|
+
if (qt) return ee;
|
|
617
617
|
qt = 1;
|
|
618
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120,
|
|
619
|
-
function C(
|
|
620
|
-
if (typeof
|
|
621
|
-
var
|
|
622
|
-
switch (
|
|
618
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, d = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
619
|
+
function C(g) {
|
|
620
|
+
if (typeof g == "object" && g !== null) {
|
|
621
|
+
var L = g.$$typeof;
|
|
622
|
+
switch (L) {
|
|
623
623
|
case e:
|
|
624
|
-
switch (
|
|
624
|
+
switch (g = g.type, g) {
|
|
625
625
|
case l:
|
|
626
626
|
case c:
|
|
627
627
|
case r:
|
|
628
628
|
case a:
|
|
629
629
|
case s:
|
|
630
630
|
case u:
|
|
631
|
-
return
|
|
631
|
+
return g;
|
|
632
632
|
default:
|
|
633
|
-
switch (
|
|
633
|
+
switch (g = g && g.$$typeof, g) {
|
|
634
634
|
case o:
|
|
635
635
|
case f:
|
|
636
636
|
case d:
|
|
637
|
-
case
|
|
637
|
+
case y:
|
|
638
638
|
case i:
|
|
639
|
-
return
|
|
639
|
+
return g;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return L;
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
644
|
case t:
|
|
645
|
-
return
|
|
645
|
+
return L;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
return C(
|
|
651
|
-
}
|
|
652
|
-
return
|
|
653
|
-
return
|
|
654
|
-
},
|
|
655
|
-
return C(
|
|
656
|
-
},
|
|
657
|
-
return C(
|
|
658
|
-
},
|
|
659
|
-
return typeof
|
|
660
|
-
},
|
|
661
|
-
return C(
|
|
662
|
-
},
|
|
663
|
-
return C(
|
|
664
|
-
},
|
|
665
|
-
return C(
|
|
666
|
-
},
|
|
667
|
-
return C(
|
|
668
|
-
},
|
|
669
|
-
return C(
|
|
670
|
-
},
|
|
671
|
-
return C(
|
|
672
|
-
},
|
|
673
|
-
return C(
|
|
674
|
-
},
|
|
675
|
-
return C(
|
|
676
|
-
},
|
|
677
|
-
return typeof
|
|
678
|
-
},
|
|
649
|
+
function x(g) {
|
|
650
|
+
return C(g) === c;
|
|
651
|
+
}
|
|
652
|
+
return ee.AsyncMode = l, ee.ConcurrentMode = c, ee.ContextConsumer = o, ee.ContextProvider = i, ee.Element = e, ee.ForwardRef = f, ee.Fragment = r, ee.Lazy = d, ee.Memo = y, ee.Portal = t, ee.Profiler = a, ee.StrictMode = s, ee.Suspense = u, ee.isAsyncMode = function(g) {
|
|
653
|
+
return x(g) || C(g) === l;
|
|
654
|
+
}, ee.isConcurrentMode = x, ee.isContextConsumer = function(g) {
|
|
655
|
+
return C(g) === o;
|
|
656
|
+
}, ee.isContextProvider = function(g) {
|
|
657
|
+
return C(g) === i;
|
|
658
|
+
}, ee.isElement = function(g) {
|
|
659
|
+
return typeof g == "object" && g !== null && g.$$typeof === e;
|
|
660
|
+
}, ee.isForwardRef = function(g) {
|
|
661
|
+
return C(g) === f;
|
|
662
|
+
}, ee.isFragment = function(g) {
|
|
663
|
+
return C(g) === r;
|
|
664
|
+
}, ee.isLazy = function(g) {
|
|
665
|
+
return C(g) === d;
|
|
666
|
+
}, ee.isMemo = function(g) {
|
|
667
|
+
return C(g) === y;
|
|
668
|
+
}, ee.isPortal = function(g) {
|
|
669
|
+
return C(g) === t;
|
|
670
|
+
}, ee.isProfiler = function(g) {
|
|
671
|
+
return C(g) === a;
|
|
672
|
+
}, ee.isStrictMode = function(g) {
|
|
673
|
+
return C(g) === s;
|
|
674
|
+
}, ee.isSuspense = function(g) {
|
|
675
|
+
return C(g) === u;
|
|
676
|
+
}, ee.isValidElementType = function(g) {
|
|
677
|
+
return typeof g == "string" || typeof g == "function" || g === r || g === c || g === a || g === s || g === u || g === p || typeof g == "object" && g !== null && (g.$$typeof === d || g.$$typeof === y || g.$$typeof === i || g.$$typeof === o || g.$$typeof === f || g.$$typeof === S || g.$$typeof === E || g.$$typeof === b || g.$$typeof === w);
|
|
678
|
+
}, ee.typeOf = C, ee;
|
|
679
679
|
}
|
|
680
|
-
var
|
|
680
|
+
var te = {};
|
|
681
681
|
/** @license React v16.13.1
|
|
682
682
|
* react-is.development.js
|
|
683
683
|
*
|
|
@@ -689,32 +689,32 @@ var ee = {};
|
|
|
689
689
|
var Kt;
|
|
690
690
|
function ar() {
|
|
691
691
|
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
692
|
-
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120,
|
|
692
|
+
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, c = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, p = n ? Symbol.for("react.suspense_list") : 60120, y = n ? Symbol.for("react.memo") : 60115, d = n ? Symbol.for("react.lazy") : 60116, w = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, E = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
693
693
|
function C(M) {
|
|
694
694
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
695
|
-
M === r || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof ===
|
|
695
|
+
M === r || M === c || M === a || M === s || M === u || M === p || typeof M == "object" && M !== null && (M.$$typeof === d || M.$$typeof === y || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === S || M.$$typeof === E || M.$$typeof === b || M.$$typeof === w);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function x(M) {
|
|
698
698
|
if (typeof M == "object" && M !== null) {
|
|
699
699
|
var Y = M.$$typeof;
|
|
700
700
|
switch (Y) {
|
|
701
701
|
case e:
|
|
702
|
-
var
|
|
703
|
-
switch (
|
|
702
|
+
var X = M.type;
|
|
703
|
+
switch (X) {
|
|
704
704
|
case l:
|
|
705
705
|
case c:
|
|
706
706
|
case r:
|
|
707
707
|
case a:
|
|
708
708
|
case s:
|
|
709
709
|
case u:
|
|
710
|
-
return
|
|
710
|
+
return X;
|
|
711
711
|
default:
|
|
712
|
-
var re =
|
|
712
|
+
var re = X && X.$$typeof;
|
|
713
713
|
switch (re) {
|
|
714
714
|
case o:
|
|
715
715
|
case f:
|
|
716
716
|
case d:
|
|
717
|
-
case
|
|
717
|
+
case y:
|
|
718
718
|
case i:
|
|
719
719
|
return re;
|
|
720
720
|
default:
|
|
@@ -726,48 +726,48 @@ function ar() {
|
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var g = l, L = c, j = o, O = i, k = e, R = f, D = r, T = d, P = y, N = t, H = a, B = s, z = u, Z = !1;
|
|
730
730
|
function F(M) {
|
|
731
|
-
return
|
|
731
|
+
return Z || (Z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || x(M) === l;
|
|
732
732
|
}
|
|
733
733
|
function h(M) {
|
|
734
|
-
return
|
|
734
|
+
return x(M) === c;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
return
|
|
736
|
+
function v(M) {
|
|
737
|
+
return x(M) === o;
|
|
738
738
|
}
|
|
739
739
|
function $(M) {
|
|
740
|
-
return
|
|
740
|
+
return x(M) === i;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function I(M) {
|
|
743
743
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
745
|
+
function _(M) {
|
|
746
|
+
return x(M) === f;
|
|
747
|
+
}
|
|
748
|
+
function A(M) {
|
|
749
|
+
return x(M) === r;
|
|
747
750
|
}
|
|
748
|
-
function
|
|
749
|
-
return
|
|
751
|
+
function V(M) {
|
|
752
|
+
return x(M) === d;
|
|
750
753
|
}
|
|
751
754
|
function U(M) {
|
|
752
|
-
return
|
|
755
|
+
return x(M) === y;
|
|
753
756
|
}
|
|
754
757
|
function W(M) {
|
|
755
|
-
return
|
|
756
|
-
}
|
|
757
|
-
function V(M) {
|
|
758
|
-
return v(M) === t;
|
|
758
|
+
return x(M) === t;
|
|
759
759
|
}
|
|
760
760
|
function J(M) {
|
|
761
|
-
return
|
|
761
|
+
return x(M) === a;
|
|
762
762
|
}
|
|
763
763
|
function q(M) {
|
|
764
|
-
return
|
|
764
|
+
return x(M) === s;
|
|
765
765
|
}
|
|
766
766
|
function se(M) {
|
|
767
|
-
return
|
|
767
|
+
return x(M) === u;
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
}()),
|
|
769
|
+
te.AsyncMode = g, te.ConcurrentMode = L, te.ContextConsumer = j, te.ContextProvider = O, te.Element = k, te.ForwardRef = R, te.Fragment = D, te.Lazy = T, te.Memo = P, te.Portal = N, te.Profiler = H, te.StrictMode = B, te.Suspense = z, te.isAsyncMode = F, te.isConcurrentMode = h, te.isContextConsumer = v, te.isContextProvider = $, te.isElement = I, te.isForwardRef = _, te.isFragment = A, te.isLazy = V, te.isMemo = U, te.isPortal = W, te.isProfiler = J, te.isStrictMode = q, te.isSuspense = se, te.isValidElementType = C, te.typeOf = x;
|
|
770
|
+
}()), te;
|
|
771
771
|
}
|
|
772
772
|
var zt;
|
|
773
773
|
function Dn() {
|
|
@@ -872,9 +872,9 @@ function ir() {
|
|
|
872
872
|
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
873
873
|
), u instanceof Error && !(u.message in t)) {
|
|
874
874
|
t[u.message] = !0;
|
|
875
|
-
var
|
|
875
|
+
var y = c ? c() : "";
|
|
876
876
|
n(
|
|
877
|
-
"Failed " + o + " type: " + u.message + (
|
|
877
|
+
"Failed " + o + " type: " + u.message + (y ?? "")
|
|
878
878
|
);
|
|
879
879
|
}
|
|
880
880
|
}
|
|
@@ -904,11 +904,11 @@ function lr() {
|
|
|
904
904
|
return St = function(o, l) {
|
|
905
905
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
906
906
|
function u(h) {
|
|
907
|
-
var
|
|
908
|
-
if (typeof
|
|
909
|
-
return
|
|
907
|
+
var v = h && (c && h[c] || h[f]);
|
|
908
|
+
if (typeof v == "function")
|
|
909
|
+
return v;
|
|
910
910
|
}
|
|
911
|
-
var p = "<<anonymous>>",
|
|
911
|
+
var p = "<<anonymous>>", y = {
|
|
912
912
|
array: E("array"),
|
|
913
913
|
bigint: E("bigint"),
|
|
914
914
|
bool: E("boolean"),
|
|
@@ -919,219 +919,219 @@ function lr() {
|
|
|
919
919
|
symbol: E("symbol"),
|
|
920
920
|
any: b(),
|
|
921
921
|
arrayOf: C,
|
|
922
|
-
element:
|
|
923
|
-
elementType:
|
|
924
|
-
instanceOf:
|
|
922
|
+
element: x(),
|
|
923
|
+
elementType: g(),
|
|
924
|
+
instanceOf: L,
|
|
925
925
|
node: R(),
|
|
926
926
|
objectOf: O,
|
|
927
|
-
oneOf:
|
|
928
|
-
oneOfType:
|
|
927
|
+
oneOf: j,
|
|
928
|
+
oneOfType: k,
|
|
929
929
|
shape: T,
|
|
930
|
-
exact:
|
|
930
|
+
exact: P
|
|
931
931
|
};
|
|
932
|
-
function d(h,
|
|
933
|
-
return h ===
|
|
932
|
+
function d(h, v) {
|
|
933
|
+
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
934
934
|
}
|
|
935
|
-
function w(h,
|
|
936
|
-
this.message = h, this.data =
|
|
935
|
+
function w(h, v) {
|
|
936
|
+
this.message = h, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
937
937
|
}
|
|
938
938
|
w.prototype = Error.prototype;
|
|
939
939
|
function S(h) {
|
|
940
940
|
if (process.env.NODE_ENV !== "production")
|
|
941
|
-
var
|
|
942
|
-
function
|
|
943
|
-
if (
|
|
941
|
+
var v = {}, $ = 0;
|
|
942
|
+
function I(A, V, U, W, J, q, se) {
|
|
943
|
+
if (W = W || p, q = q || U, se !== t) {
|
|
944
944
|
if (l) {
|
|
945
945
|
var M = 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 M.name = "Invariant Violation", M;
|
|
949
949
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
950
|
-
var Y =
|
|
951
|
-
!
|
|
950
|
+
var Y = W + ":" + U;
|
|
951
|
+
!v[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
952
952
|
$ < 3 && (a(
|
|
953
|
-
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" +
|
|
954
|
-
),
|
|
953
|
+
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
954
|
+
), v[Y] = !0, $++);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
return U
|
|
957
|
+
return V[U] == null ? A ? V[U] === null ? new w("The " + J + " `" + q + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new w("The " + J + " `" + q + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(V, U, W, J, q);
|
|
958
958
|
}
|
|
959
|
-
var
|
|
960
|
-
return
|
|
959
|
+
var _ = I.bind(null, !1);
|
|
960
|
+
return _.isRequired = I.bind(null, !0), _;
|
|
961
961
|
}
|
|
962
962
|
function E(h) {
|
|
963
|
-
function
|
|
964
|
-
var
|
|
963
|
+
function v($, I, _, A, V, U) {
|
|
964
|
+
var W = $[I], J = B(W);
|
|
965
965
|
if (J !== h) {
|
|
966
|
-
var q = z(
|
|
966
|
+
var q = z(W);
|
|
967
967
|
return new w(
|
|
968
|
-
"Invalid " +
|
|
968
|
+
"Invalid " + A + " `" + V + "` of type " + ("`" + q + "` supplied to `" + _ + "`, expected ") + ("`" + h + "`."),
|
|
969
969
|
{ expectedType: h }
|
|
970
970
|
);
|
|
971
971
|
}
|
|
972
972
|
return null;
|
|
973
973
|
}
|
|
974
|
-
return S(
|
|
974
|
+
return S(v);
|
|
975
975
|
}
|
|
976
976
|
function b() {
|
|
977
977
|
return S(i);
|
|
978
978
|
}
|
|
979
979
|
function C(h) {
|
|
980
|
-
function
|
|
980
|
+
function v($, I, _, A, V) {
|
|
981
981
|
if (typeof h != "function")
|
|
982
|
-
return new w("Property `" +
|
|
983
|
-
var
|
|
984
|
-
if (!Array.isArray(
|
|
985
|
-
var
|
|
986
|
-
return new w("Invalid " +
|
|
982
|
+
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
983
|
+
var U = $[I];
|
|
984
|
+
if (!Array.isArray(U)) {
|
|
985
|
+
var W = B(U);
|
|
986
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an array."));
|
|
987
987
|
}
|
|
988
|
-
for (var J = 0; J <
|
|
989
|
-
var q = h(
|
|
988
|
+
for (var J = 0; J < U.length; J++) {
|
|
989
|
+
var q = h(U, J, _, A, V + "[" + J + "]", t);
|
|
990
990
|
if (q instanceof Error)
|
|
991
991
|
return q;
|
|
992
992
|
}
|
|
993
993
|
return null;
|
|
994
994
|
}
|
|
995
|
-
return S(
|
|
996
|
-
}
|
|
997
|
-
function
|
|
998
|
-
function h(
|
|
999
|
-
var
|
|
1000
|
-
if (!o(
|
|
1001
|
-
var
|
|
1002
|
-
return new w("Invalid " +
|
|
995
|
+
return S(v);
|
|
996
|
+
}
|
|
997
|
+
function x() {
|
|
998
|
+
function h(v, $, I, _, A) {
|
|
999
|
+
var V = v[$];
|
|
1000
|
+
if (!o(V)) {
|
|
1001
|
+
var U = B(V);
|
|
1002
|
+
return new w("Invalid " + _ + " `" + A + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected a single ReactElement."));
|
|
1003
1003
|
}
|
|
1004
1004
|
return null;
|
|
1005
1005
|
}
|
|
1006
1006
|
return S(h);
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
function h(
|
|
1010
|
-
var
|
|
1011
|
-
if (!n.isValidElementType(
|
|
1012
|
-
var
|
|
1013
|
-
return new w("Invalid " +
|
|
1008
|
+
function g() {
|
|
1009
|
+
function h(v, $, I, _, A) {
|
|
1010
|
+
var V = v[$];
|
|
1011
|
+
if (!n.isValidElementType(V)) {
|
|
1012
|
+
var U = B(V);
|
|
1013
|
+
return new w("Invalid " + _ + " `" + A + "` of type " + ("`" + U + "` supplied to `" + I + "`, expected a single ReactElement type."));
|
|
1014
1014
|
}
|
|
1015
1015
|
return null;
|
|
1016
1016
|
}
|
|
1017
1017
|
return S(h);
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
function
|
|
1021
|
-
if (!($[
|
|
1022
|
-
var
|
|
1023
|
-
return new w("Invalid " +
|
|
1019
|
+
function L(h) {
|
|
1020
|
+
function v($, I, _, A, V) {
|
|
1021
|
+
if (!($[I] instanceof h)) {
|
|
1022
|
+
var U = h.name || p, W = F($[I]);
|
|
1023
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected ") + ("instance of `" + U + "`."));
|
|
1024
1024
|
}
|
|
1025
1025
|
return null;
|
|
1026
1026
|
}
|
|
1027
|
-
return S(
|
|
1027
|
+
return S(v);
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function j(h) {
|
|
1030
1030
|
if (!Array.isArray(h))
|
|
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.")), i;
|
|
1034
|
-
function
|
|
1035
|
-
for (var
|
|
1036
|
-
if (d(
|
|
1034
|
+
function v($, I, _, A, V) {
|
|
1035
|
+
for (var U = $[I], W = 0; W < h.length; W++)
|
|
1036
|
+
if (d(U, h[W]))
|
|
1037
1037
|
return null;
|
|
1038
1038
|
var J = JSON.stringify(h, function(se, M) {
|
|
1039
1039
|
var Y = z(M);
|
|
1040
1040
|
return Y === "symbol" ? String(M) : M;
|
|
1041
1041
|
});
|
|
1042
|
-
return new w("Invalid " +
|
|
1042
|
+
return new w("Invalid " + A + " `" + V + "` of value `" + String(U) + "` " + ("supplied to `" + _ + "`, expected one of " + J + "."));
|
|
1043
1043
|
}
|
|
1044
|
-
return S(
|
|
1044
|
+
return S(v);
|
|
1045
1045
|
}
|
|
1046
1046
|
function O(h) {
|
|
1047
|
-
function
|
|
1047
|
+
function v($, I, _, A, V) {
|
|
1048
1048
|
if (typeof h != "function")
|
|
1049
|
-
return new w("Property `" +
|
|
1050
|
-
var
|
|
1051
|
-
if (
|
|
1052
|
-
return new w("Invalid " +
|
|
1053
|
-
for (var J in
|
|
1054
|
-
if (r(
|
|
1055
|
-
var q = h(
|
|
1049
|
+
return new w("Property `" + V + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
1050
|
+
var U = $[I], W = B(U);
|
|
1051
|
+
if (W !== "object")
|
|
1052
|
+
return new w("Invalid " + A + " `" + V + "` of type " + ("`" + W + "` supplied to `" + _ + "`, expected an object."));
|
|
1053
|
+
for (var J in U)
|
|
1054
|
+
if (r(U, J)) {
|
|
1055
|
+
var q = h(U, J, _, A, V + "." + J, t);
|
|
1056
1056
|
if (q instanceof Error)
|
|
1057
1057
|
return q;
|
|
1058
1058
|
}
|
|
1059
1059
|
return null;
|
|
1060
1060
|
}
|
|
1061
|
-
return S(
|
|
1061
|
+
return S(v);
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function k(h) {
|
|
1064
1064
|
if (!Array.isArray(h))
|
|
1065
1065
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1066
|
-
for (var
|
|
1067
|
-
var $ = h[
|
|
1066
|
+
for (var v = 0; v < h.length; v++) {
|
|
1067
|
+
var $ = h[v];
|
|
1068
1068
|
if (typeof $ != "function")
|
|
1069
1069
|
return a(
|
|
1070
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1070
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Z($) + " at index " + v + "."
|
|
1071
1071
|
), i;
|
|
1072
1072
|
}
|
|
1073
|
-
function _
|
|
1073
|
+
function I(_, A, V, U, W) {
|
|
1074
1074
|
for (var J = [], q = 0; q < h.length; q++) {
|
|
1075
|
-
var se = h[q], M = se(
|
|
1075
|
+
var se = h[q], M = se(_, A, V, U, W, t);
|
|
1076
1076
|
if (M == null)
|
|
1077
1077
|
return null;
|
|
1078
1078
|
M.data && r(M.data, "expectedType") && J.push(M.data.expectedType);
|
|
1079
1079
|
}
|
|
1080
1080
|
var Y = J.length > 0 ? ", expected one of type [" + J.join(", ") + "]" : "";
|
|
1081
|
-
return new w("Invalid " +
|
|
1081
|
+
return new w("Invalid " + U + " `" + W + "` supplied to " + ("`" + V + "`" + Y + "."));
|
|
1082
1082
|
}
|
|
1083
|
-
return S(
|
|
1083
|
+
return S(I);
|
|
1084
1084
|
}
|
|
1085
1085
|
function R() {
|
|
1086
|
-
function h(
|
|
1087
|
-
return N(
|
|
1086
|
+
function h(v, $, I, _, A) {
|
|
1087
|
+
return N(v[$]) ? null : new w("Invalid " + _ + " `" + A + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
|
|
1088
1088
|
}
|
|
1089
1089
|
return S(h);
|
|
1090
1090
|
}
|
|
1091
|
-
function D(h,
|
|
1091
|
+
function D(h, v, $, I, _) {
|
|
1092
1092
|
return new w(
|
|
1093
|
-
(h || "React class") + ": " +
|
|
1093
|
+
(h || "React class") + ": " + v + " type `" + $ + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
1094
1094
|
);
|
|
1095
1095
|
}
|
|
1096
1096
|
function T(h) {
|
|
1097
|
-
function
|
|
1098
|
-
var
|
|
1099
|
-
if (
|
|
1100
|
-
return new w("Invalid " +
|
|
1097
|
+
function v($, I, _, A, V) {
|
|
1098
|
+
var U = $[I], W = B(U);
|
|
1099
|
+
if (W !== "object")
|
|
1100
|
+
return new w("Invalid " + A + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1101
1101
|
for (var J in h) {
|
|
1102
1102
|
var q = h[J];
|
|
1103
1103
|
if (typeof q != "function")
|
|
1104
|
-
return D(
|
|
1105
|
-
var se = q(
|
|
1104
|
+
return D(_, A, V, J, z(q));
|
|
1105
|
+
var se = q(U, J, _, A, V + "." + J, t);
|
|
1106
1106
|
if (se)
|
|
1107
1107
|
return se;
|
|
1108
1108
|
}
|
|
1109
1109
|
return null;
|
|
1110
1110
|
}
|
|
1111
|
-
return S(
|
|
1112
|
-
}
|
|
1113
|
-
function
|
|
1114
|
-
function
|
|
1115
|
-
var
|
|
1116
|
-
if (
|
|
1117
|
-
return new w("Invalid " +
|
|
1118
|
-
var J = e({}, $[
|
|
1111
|
+
return S(v);
|
|
1112
|
+
}
|
|
1113
|
+
function P(h) {
|
|
1114
|
+
function v($, I, _, A, V) {
|
|
1115
|
+
var U = $[I], W = B(U);
|
|
1116
|
+
if (W !== "object")
|
|
1117
|
+
return new w("Invalid " + A + " `" + V + "` of type `" + W + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
1118
|
+
var J = e({}, $[I], h);
|
|
1119
1119
|
for (var q in J) {
|
|
1120
1120
|
var se = h[q];
|
|
1121
1121
|
if (r(h, q) && typeof se != "function")
|
|
1122
|
-
return D(
|
|
1122
|
+
return D(_, A, V, q, z(se));
|
|
1123
1123
|
if (!se)
|
|
1124
1124
|
return new w(
|
|
1125
|
-
"Invalid " +
|
|
1125
|
+
"Invalid " + A + " `" + V + "` key `" + q + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify($[I], null, " ") + `
|
|
1126
1126
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1127
1127
|
);
|
|
1128
|
-
var M = se(
|
|
1128
|
+
var M = se(U, q, _, A, V + "." + q, t);
|
|
1129
1129
|
if (M)
|
|
1130
1130
|
return M;
|
|
1131
1131
|
}
|
|
1132
1132
|
return null;
|
|
1133
1133
|
}
|
|
1134
|
-
return S(
|
|
1134
|
+
return S(v);
|
|
1135
1135
|
}
|
|
1136
1136
|
function N(h) {
|
|
1137
1137
|
switch (typeof h) {
|
|
@@ -1146,17 +1146,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1146
1146
|
return h.every(N);
|
|
1147
1147
|
if (h === null || o(h))
|
|
1148
1148
|
return !0;
|
|
1149
|
-
var
|
|
1150
|
-
if (
|
|
1151
|
-
var $ =
|
|
1152
|
-
if (
|
|
1153
|
-
for (; !(
|
|
1154
|
-
if (!N(
|
|
1149
|
+
var v = u(h);
|
|
1150
|
+
if (v) {
|
|
1151
|
+
var $ = v.call(h), I;
|
|
1152
|
+
if (v !== h.entries) {
|
|
1153
|
+
for (; !(I = $.next()).done; )
|
|
1154
|
+
if (!N(I.value))
|
|
1155
1155
|
return !1;
|
|
1156
1156
|
} else
|
|
1157
|
-
for (; !(
|
|
1158
|
-
var
|
|
1159
|
-
if (
|
|
1157
|
+
for (; !(I = $.next()).done; ) {
|
|
1158
|
+
var _ = I.value;
|
|
1159
|
+
if (_ && !N(_[1]))
|
|
1160
1160
|
return !1;
|
|
1161
1161
|
}
|
|
1162
1162
|
} else
|
|
@@ -1166,43 +1166,43 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1166
1166
|
return !1;
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return h === "symbol" ? !0 :
|
|
1169
|
+
function H(h, v) {
|
|
1170
|
+
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
var
|
|
1174
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1172
|
+
function B(h) {
|
|
1173
|
+
var v = typeof h;
|
|
1174
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : H(v, h) ? "symbol" : v;
|
|
1175
1175
|
}
|
|
1176
1176
|
function z(h) {
|
|
1177
1177
|
if (typeof h > "u" || h === null)
|
|
1178
1178
|
return "" + h;
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1179
|
+
var v = B(h);
|
|
1180
|
+
if (v === "object") {
|
|
1181
1181
|
if (h instanceof Date)
|
|
1182
1182
|
return "date";
|
|
1183
1183
|
if (h instanceof RegExp)
|
|
1184
1184
|
return "regexp";
|
|
1185
1185
|
}
|
|
1186
|
-
return
|
|
1186
|
+
return v;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
var
|
|
1190
|
-
switch (
|
|
1188
|
+
function Z(h) {
|
|
1189
|
+
var v = z(h);
|
|
1190
|
+
switch (v) {
|
|
1191
1191
|
case "array":
|
|
1192
1192
|
case "object":
|
|
1193
|
-
return "an " +
|
|
1193
|
+
return "an " + v;
|
|
1194
1194
|
case "boolean":
|
|
1195
1195
|
case "date":
|
|
1196
1196
|
case "regexp":
|
|
1197
|
-
return "a " +
|
|
1197
|
+
return "a " + v;
|
|
1198
1198
|
default:
|
|
1199
|
-
return
|
|
1199
|
+
return v;
|
|
1200
1200
|
}
|
|
1201
1201
|
}
|
|
1202
1202
|
function F(h) {
|
|
1203
1203
|
return !h.constructor || !h.constructor.name ? p : h.constructor.name;
|
|
1204
1204
|
}
|
|
1205
|
-
return
|
|
1205
|
+
return y.checkPropTypes = s, y.resetWarningCache = s.resetWarningCache, y.PropTypes = y, y;
|
|
1206
1206
|
}, St;
|
|
1207
1207
|
}
|
|
1208
1208
|
var Et, tn;
|
|
@@ -1290,11 +1290,11 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1290
1290
|
return t.renderSVG = function() {
|
|
1291
1291
|
var s = this;
|
|
1292
1292
|
if (this.reactWrapper instanceof fr(this.reactWrapper).Node) {
|
|
1293
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache,
|
|
1293
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, p = a.useRequestCache, y = this.props.onError, d = this.props.beforeInjection, w = this.props.afterInjection, S = this.props.wrapper, E, b;
|
|
1294
1294
|
S === "svg" ? (E = document.createElementNS(Xe, S), E.setAttribute("xmlns", Xe), E.setAttribute("xmlns:xlink", rn), b = document.createElementNS(Xe, S)) : (E = document.createElement(S), b = document.createElement(S)), E.appendChild(b), b.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(E);
|
|
1295
|
-
var C = function(
|
|
1295
|
+
var C = function(j) {
|
|
1296
1296
|
if (s.removeSVG(), !s._isMounted) {
|
|
1297
|
-
|
|
1297
|
+
y(j);
|
|
1298
1298
|
return;
|
|
1299
1299
|
}
|
|
1300
1300
|
s.setState(function() {
|
|
@@ -1303,11 +1303,11 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1303
1303
|
isLoading: !1
|
|
1304
1304
|
};
|
|
1305
1305
|
}, function() {
|
|
1306
|
-
|
|
1306
|
+
y(j);
|
|
1307
1307
|
});
|
|
1308
|
-
},
|
|
1309
|
-
if (
|
|
1310
|
-
C(
|
|
1308
|
+
}, x = function(j, O) {
|
|
1309
|
+
if (j) {
|
|
1310
|
+
C(j);
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
1313
|
s._isMounted && s.setState(function() {
|
|
@@ -1317,32 +1317,32 @@ var ie = /* @__PURE__ */ ur(), fr = function(e) {
|
|
|
1317
1317
|
}, function() {
|
|
1318
1318
|
try {
|
|
1319
1319
|
w(O);
|
|
1320
|
-
} catch (
|
|
1321
|
-
C(
|
|
1320
|
+
} catch (k) {
|
|
1321
|
+
C(k);
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
|
-
},
|
|
1325
|
-
if (
|
|
1326
|
-
var O =
|
|
1327
|
-
O &&
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1324
|
+
}, g = function(j) {
|
|
1325
|
+
if (j.setAttribute("role", "img"), i) {
|
|
1326
|
+
var O = j.querySelector(":scope > desc");
|
|
1327
|
+
O && j.removeChild(O);
|
|
1328
|
+
var k = document.createElement("desc");
|
|
1329
|
+
k.innerHTML = i, j.prepend(k);
|
|
1330
1330
|
}
|
|
1331
1331
|
if (u) {
|
|
1332
|
-
var R =
|
|
1333
|
-
R &&
|
|
1332
|
+
var R = j.querySelector(":scope > title");
|
|
1333
|
+
R && j.removeChild(R);
|
|
1334
1334
|
var D = document.createElement("title");
|
|
1335
|
-
D.innerHTML = u,
|
|
1335
|
+
D.innerHTML = u, j.prepend(D);
|
|
1336
1336
|
}
|
|
1337
1337
|
try {
|
|
1338
|
-
d(
|
|
1338
|
+
d(j);
|
|
1339
1339
|
} catch (T) {
|
|
1340
1340
|
C(T);
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
1343
|
rr(b, {
|
|
1344
|
-
afterEach:
|
|
1345
|
-
beforeEach:
|
|
1344
|
+
afterEach: x,
|
|
1345
|
+
beforeEach: g,
|
|
1346
1346
|
cacheRequests: p,
|
|
1347
1347
|
evalScripts: o,
|
|
1348
1348
|
httpRequestWithCredentials: l,
|
|
@@ -1420,7 +1420,7 @@ const ta = (n) => {
|
|
|
1420
1420
|
}, hr = (n) => {
|
|
1421
1421
|
const e = `${Ot.assets}/${n}`.replace(/\/+/g, "/");
|
|
1422
1422
|
return e.endsWith(".svg") ? e : e + ".svg";
|
|
1423
|
-
},
|
|
1423
|
+
}, ce = rt.memo(
|
|
1424
1424
|
({
|
|
1425
1425
|
icon: n,
|
|
1426
1426
|
width: e,
|
|
@@ -1436,18 +1436,18 @@ const ta = (n) => {
|
|
|
1436
1436
|
title: u,
|
|
1437
1437
|
tabIndex: p
|
|
1438
1438
|
}) => {
|
|
1439
|
-
const [
|
|
1439
|
+
const [y, d] = G(!1), w = (R) => R?.toLowerCase().endsWith(".svg") || !R?.includes("/"), S = (R) => R?.startsWith("http") || R?.startsWith("/"), E = {
|
|
1440
1440
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1441
1441
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1442
1442
|
}, b = (R) => {
|
|
1443
1443
|
!a && c && l && l(R);
|
|
1444
1444
|
}, C = (R) => {
|
|
1445
1445
|
!a && c && (R.key === "Enter" || R.key === " ") && (R.preventDefault(), b(R));
|
|
1446
|
-
},
|
|
1447
|
-
return
|
|
1446
|
+
}, x = y ? r : n, g = w(x), j = S(x) ? x : hr(`assets/svg/${x}`);
|
|
1447
|
+
return g ? /* @__PURE__ */ m.jsx(
|
|
1448
1448
|
kt,
|
|
1449
1449
|
{
|
|
1450
|
-
src:
|
|
1450
|
+
src: j,
|
|
1451
1451
|
onError: () => d(!0),
|
|
1452
1452
|
width: e || "1rem",
|
|
1453
1453
|
height: t || "1rem",
|
|
@@ -1464,7 +1464,7 @@ const ta = (n) => {
|
|
|
1464
1464
|
) : /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */ /* @__PURE__ */ m.jsx(
|
|
1465
1465
|
"img",
|
|
1466
1466
|
{
|
|
1467
|
-
src:
|
|
1467
|
+
src: x,
|
|
1468
1468
|
width: e || "16px",
|
|
1469
1469
|
height: t || "auto",
|
|
1470
1470
|
alt: u,
|
|
@@ -1488,7 +1488,7 @@ const ta = (n) => {
|
|
|
1488
1488
|
primary: "onPrimary",
|
|
1489
1489
|
danger: "onDanger",
|
|
1490
1490
|
base: "base"
|
|
1491
|
-
})[n],
|
|
1491
|
+
})[n], xe = ({
|
|
1492
1492
|
bindValue: n,
|
|
1493
1493
|
onClick: e,
|
|
1494
1494
|
ariaLabel: t,
|
|
@@ -1502,7 +1502,7 @@ const ta = (n) => {
|
|
|
1502
1502
|
showText: f = !0,
|
|
1503
1503
|
fullWidth: u = !1,
|
|
1504
1504
|
loading: p = !1,
|
|
1505
|
-
justify:
|
|
1505
|
+
justify: y = "center",
|
|
1506
1506
|
title: d,
|
|
1507
1507
|
optionalDisplayValue: w,
|
|
1508
1508
|
squared: S = !1,
|
|
@@ -1510,23 +1510,23 @@ const ta = (n) => {
|
|
|
1510
1510
|
active: b = !1,
|
|
1511
1511
|
buttonExt: C
|
|
1512
1512
|
}) => {
|
|
1513
|
-
const
|
|
1514
|
-
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
1513
|
+
const x = {
|
|
1514
|
+
container: `smp-button smp-button-container ${i ? `smp-button-${i}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${l ? `smp-buttonType-${l}` : ""} ${u ? "smp-button-fullWidth" : ""} smp-justifyContent-${y} ${S && !f ? "smp-button-squared" : ""} ${b ? "smp-buttonActive" : ""} ${C ? `smp-buttonExt-${C}` : ""}`
|
|
1515
1515
|
};
|
|
1516
1516
|
return /* @__PURE__ */ m.jsx(
|
|
1517
1517
|
"button",
|
|
1518
1518
|
{
|
|
1519
1519
|
"data-component": "button",
|
|
1520
1520
|
type: E ? "submit" : "button",
|
|
1521
|
-
className:
|
|
1521
|
+
className: x.container,
|
|
1522
1522
|
onClick: e,
|
|
1523
1523
|
"aria-label": t,
|
|
1524
1524
|
disabled: a,
|
|
1525
1525
|
"aria-busy": p,
|
|
1526
1526
|
title: d || w,
|
|
1527
|
-
children: p ? /* @__PURE__ */ m.jsx(
|
|
1527
|
+
children: p ? /* @__PURE__ */ m.jsx(ce, { icon: "spinner", state: an(o), spin: !0 }) : /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
|
|
1528
1528
|
r && c && /* @__PURE__ */ m.jsx(
|
|
1529
|
-
|
|
1529
|
+
ce,
|
|
1530
1530
|
{
|
|
1531
1531
|
icon: r,
|
|
1532
1532
|
placeholderIcon: s,
|
|
@@ -1586,7 +1586,7 @@ const ta = (n) => {
|
|
|
1586
1586
|
selectedIndex: r,
|
|
1587
1587
|
onTabChange: s
|
|
1588
1588
|
}) => {
|
|
1589
|
-
const [a, i] = G(r ?? 0), [o, l] = G(!1), [c, f] = G(!1), u =
|
|
1589
|
+
const [a, i] = G(r ?? 0), [o, l] = G(!1), [c, f] = G(!1), u = ue(null);
|
|
1590
1590
|
if (ne(() => {
|
|
1591
1591
|
const b = u.current;
|
|
1592
1592
|
if (!b) return;
|
|
@@ -1607,15 +1607,15 @@ const ta = (n) => {
|
|
|
1607
1607
|
scrollButtonRight: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonRight"]}`,
|
|
1608
1608
|
scrollButtonLeft: `${be["smp-tabbar-scroll-button"]} ${be["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1609
1609
|
active: be["smp-active"]
|
|
1610
|
-
},
|
|
1610
|
+
}, y = 100, d = 2, w = () => {
|
|
1611
1611
|
const b = u.current;
|
|
1612
1612
|
b && (l(b.scrollLeft > 0), f(
|
|
1613
1613
|
b.scrollLeft + b.clientWidth < b.scrollWidth - d
|
|
1614
1614
|
));
|
|
1615
1615
|
}, S = () => {
|
|
1616
|
-
u.current?.scrollBy({ left: -
|
|
1616
|
+
u.current?.scrollBy({ left: -y, behavior: "smooth" });
|
|
1617
1617
|
}, E = () => {
|
|
1618
|
-
u.current?.scrollBy({ left:
|
|
1618
|
+
u.current?.scrollBy({ left: y, behavior: "smooth" });
|
|
1619
1619
|
};
|
|
1620
1620
|
return /* @__PURE__ */ m.jsxs(
|
|
1621
1621
|
"div",
|
|
@@ -1625,7 +1625,7 @@ const ta = (n) => {
|
|
|
1625
1625
|
"data-component": "tab-bar",
|
|
1626
1626
|
children: [
|
|
1627
1627
|
o && /* @__PURE__ */ m.jsx("div", { className: p.scrollButtonLeft, children: /* @__PURE__ */ m.jsx(
|
|
1628
|
-
|
|
1628
|
+
xe,
|
|
1629
1629
|
{
|
|
1630
1630
|
bindValue: "",
|
|
1631
1631
|
optionalDisplayValue: "<",
|
|
@@ -1647,7 +1647,7 @@ const ta = (n) => {
|
|
|
1647
1647
|
},
|
|
1648
1648
|
children: [
|
|
1649
1649
|
b.icon && /* @__PURE__ */ m.jsx(
|
|
1650
|
-
|
|
1650
|
+
ce,
|
|
1651
1651
|
{
|
|
1652
1652
|
icon: b.icon,
|
|
1653
1653
|
placeholderIcon: b.placeholderIcon
|
|
@@ -1661,12 +1661,12 @@ const ta = (n) => {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
),
|
|
1663
1663
|
t && (a === C ? /* @__PURE__ */ m.jsx(
|
|
1664
|
-
|
|
1664
|
+
ce,
|
|
1665
1665
|
{
|
|
1666
1666
|
icon: "more_vert",
|
|
1667
1667
|
isInteractable: !0,
|
|
1668
|
-
onClick: (
|
|
1669
|
-
|
|
1668
|
+
onClick: (x) => {
|
|
1669
|
+
x.stopPropagation(), console.log("clicked icon");
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
) : /* @__PURE__ */ m.jsx("span", { style: { width: "1rem" } }))
|
|
@@ -1675,7 +1675,7 @@ const ta = (n) => {
|
|
|
1675
1675
|
C
|
|
1676
1676
|
)) }) }),
|
|
1677
1677
|
c && /* @__PURE__ */ m.jsx("div", { className: p.scrollButtonRight, children: /* @__PURE__ */ m.jsx(
|
|
1678
|
-
|
|
1678
|
+
xe,
|
|
1679
1679
|
{
|
|
1680
1680
|
bindValue: "",
|
|
1681
1681
|
optionalDisplayValue: ">",
|
|
@@ -1714,20 +1714,20 @@ const ta = (n) => {
|
|
|
1714
1714
|
e.sections ?? [],
|
|
1715
1715
|
Object.keys(s)
|
|
1716
1716
|
), l = (d) => d.reduce((w, S) => {
|
|
1717
|
-
let E = "", b = {}, C = {},
|
|
1718
|
-
return S.sections?.length ? (E = pe["smp-layout-section-grid"], b = l(S.sections), S.gridCols === void 0 && (
|
|
1717
|
+
let E = "", b = {}, C = {}, x = "";
|
|
1718
|
+
return S.sections?.length ? (E = pe["smp-layout-section-grid"], b = l(S.sections), S.gridCols === void 0 && (x = pe[S.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], S.horizontal || Ut(S.sections) ? C = Vt(
|
|
1719
1719
|
S.sections,
|
|
1720
1720
|
S.horizontal ? a : i
|
|
1721
1721
|
) : C = {
|
|
1722
1722
|
[a]: "auto",
|
|
1723
1723
|
[i]: "auto"
|
|
1724
|
-
})) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = pe["smp-layout-section-grid"],
|
|
1724
|
+
})) : S.content?.length && (S.gridCols !== void 0 && S.gridCols > 0 ? (E = pe["smp-layout-section-grid"], x = pe["smp-grid-template-cols"], C = {
|
|
1725
1725
|
[a]: `repeat(${S.gridCols}, 1fr)`
|
|
1726
1726
|
}) : E = pe["smp-layout-section-flex"]), {
|
|
1727
1727
|
...w,
|
|
1728
1728
|
...b,
|
|
1729
1729
|
[S.id]: {
|
|
1730
|
-
classes: `${E} ${pe[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
1730
|
+
classes: `${E} ${pe[S.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${x} ${S.justify ? `smp-justifyContent-${S.justify}` : ""} ${S.align ? `smp-alignItems-${S.align}` : ""}`,
|
|
1731
1731
|
styles: C
|
|
1732
1732
|
}
|
|
1733
1733
|
};
|
|
@@ -1745,7 +1745,7 @@ const ta = (n) => {
|
|
|
1745
1745
|
className: c[d.id].classes,
|
|
1746
1746
|
style: c[d.id].styles,
|
|
1747
1747
|
children: d.sections?.length ? d.sections.map((E) => p(E)) : d.content?.map(
|
|
1748
|
-
(E) =>
|
|
1748
|
+
(E) => y(E, d.justify, d.align)
|
|
1749
1749
|
)
|
|
1750
1750
|
},
|
|
1751
1751
|
`section-${d.id}`
|
|
@@ -1767,17 +1767,17 @@ const ta = (n) => {
|
|
|
1767
1767
|
},
|
|
1768
1768
|
`title-section-${d.id}`
|
|
1769
1769
|
) : S;
|
|
1770
|
-
},
|
|
1770
|
+
}, y = (d, w, S) => {
|
|
1771
1771
|
const E = s[d.id];
|
|
1772
1772
|
if (!E) return null;
|
|
1773
1773
|
const C = {
|
|
1774
1774
|
gridColumnStart: (d.colSpan && d.colSpan > 0 ? `span ${d.colSpan}` : d.colStart && d.colStart < 1 ? "1" : void 0) ?? d.colStart,
|
|
1775
1775
|
gridColumnEnd: d.colEnd && d.colEnd > 0 ? d.colEnd : void 0
|
|
1776
|
-
},
|
|
1776
|
+
}, x = `${pe["smp-layout-cell-container"]} ${w ? `smp-justifyContent-${w}` : ""} ${S ? `smp-alignItems-${S}` : ""}`;
|
|
1777
1777
|
return /* @__PURE__ */ m.jsx(
|
|
1778
1778
|
"div",
|
|
1779
1779
|
{
|
|
1780
|
-
className:
|
|
1780
|
+
className: x,
|
|
1781
1781
|
style: C,
|
|
1782
1782
|
"smp-id": d.id,
|
|
1783
1783
|
children: E
|
|
@@ -1807,7 +1807,7 @@ const ta = (n) => {
|
|
|
1807
1807
|
),
|
|
1808
1808
|
e.sectionsType ? p(o[t], !0) : o.map((d) => p(d))
|
|
1809
1809
|
] });
|
|
1810
|
-
},
|
|
1810
|
+
}, Q = {
|
|
1811
1811
|
AUTOCOMPLETE: "ACP",
|
|
1812
1812
|
BUTTON_LIST: "BTL",
|
|
1813
1813
|
BUTTON: "BTN",
|
|
@@ -1821,6 +1821,7 @@ const ta = (n) => {
|
|
|
1821
1821
|
INPUT_NUMBER: "INR",
|
|
1822
1822
|
MEMO: "MEM",
|
|
1823
1823
|
MULTI_AUTOCOMPLETE: "AML",
|
|
1824
|
+
MULTI_CONFIG: "CFM",
|
|
1824
1825
|
RADIO: "RAD",
|
|
1825
1826
|
SPOTLIGHT: "SPL",
|
|
1826
1827
|
SWITCH: "SWT",
|
|
@@ -1989,60 +1990,60 @@ function dt({
|
|
|
1989
1990
|
position: n = "bottom",
|
|
1990
1991
|
enabled: e = !0
|
|
1991
1992
|
}) {
|
|
1992
|
-
const t =
|
|
1993
|
+
const t = ue(null), r = ue(null), [s, a] = G(0), i = fe(() => {
|
|
1993
1994
|
const o = t.current, l = r.current;
|
|
1994
1995
|
if (!o || !l) return;
|
|
1995
1996
|
const { top: c, left: f, width: u, height: p } = o.getBoundingClientRect();
|
|
1996
1997
|
a(u);
|
|
1997
|
-
const
|
|
1998
|
-
if (d === 0 ||
|
|
1998
|
+
const y = l.offsetHeight, d = l.offsetWidth;
|
|
1999
|
+
if (d === 0 || y === 0) {
|
|
1999
2000
|
requestAnimationFrame(i);
|
|
2000
2001
|
return;
|
|
2001
2002
|
}
|
|
2002
2003
|
const w = window.scrollY, S = window.scrollX, E = window.innerWidth, b = window.innerHeight;
|
|
2003
|
-
let C = c + w,
|
|
2004
|
-
const
|
|
2005
|
-
top: c -
|
|
2006
|
-
bottom: c + p +
|
|
2004
|
+
let C = c + w, x = f + S, g = n;
|
|
2005
|
+
const L = {
|
|
2006
|
+
top: c - y < 0,
|
|
2007
|
+
bottom: c + p + y > b,
|
|
2007
2008
|
left: f - d < 0,
|
|
2008
2009
|
right: f + u + d > E
|
|
2009
2010
|
};
|
|
2010
2011
|
switch (n) {
|
|
2011
2012
|
case "top":
|
|
2012
|
-
|
|
2013
|
+
L.top && !L.bottom && (g = "bottom");
|
|
2013
2014
|
break;
|
|
2014
2015
|
case "bottom":
|
|
2015
|
-
|
|
2016
|
+
L.bottom && !L.top && (g = "top");
|
|
2016
2017
|
break;
|
|
2017
2018
|
case "left":
|
|
2018
|
-
|
|
2019
|
+
L.left && !L.right && (g = "right");
|
|
2019
2020
|
break;
|
|
2020
2021
|
case "right":
|
|
2021
|
-
|
|
2022
|
+
L.right && !L.left && (g = "left");
|
|
2022
2023
|
break;
|
|
2023
2024
|
}
|
|
2024
|
-
switch (
|
|
2025
|
+
switch (g) {
|
|
2025
2026
|
case "top":
|
|
2026
|
-
C = c + w -
|
|
2027
|
+
C = c + w - y;
|
|
2027
2028
|
break;
|
|
2028
2029
|
case "bottom":
|
|
2029
2030
|
C = c + w + p;
|
|
2030
2031
|
break;
|
|
2031
2032
|
case "left":
|
|
2032
|
-
|
|
2033
|
+
x = f + S - d;
|
|
2033
2034
|
break;
|
|
2034
2035
|
case "right":
|
|
2035
|
-
|
|
2036
|
+
x = f + S + u;
|
|
2036
2037
|
break;
|
|
2037
2038
|
}
|
|
2038
2039
|
C = Math.max(
|
|
2039
2040
|
w,
|
|
2040
|
-
Math.min(C, w + b -
|
|
2041
|
-
),
|
|
2041
|
+
Math.min(C, w + b - y)
|
|
2042
|
+
), x = Math.max(
|
|
2042
2043
|
S,
|
|
2043
|
-
Math.min(
|
|
2044
|
+
Math.min(x, S + E - d)
|
|
2044
2045
|
), requestAnimationFrame(() => {
|
|
2045
|
-
l.style.transform = `translate(${
|
|
2046
|
+
l.style.transform = `translate(${x}px, ${C}px)`, l.style.opacity = "1";
|
|
2046
2047
|
});
|
|
2047
2048
|
}, [n]);
|
|
2048
2049
|
return Fn(() => {
|
|
@@ -2114,82 +2115,94 @@ const Re = (n, e, t) => {
|
|
|
2114
2115
|
rotatedShapeIcon: f = !1,
|
|
2115
2116
|
ref: u,
|
|
2116
2117
|
inputRef: p,
|
|
2117
|
-
inputType:
|
|
2118
|
+
inputType: y = "text",
|
|
2118
2119
|
ariaLabel: d = "input field",
|
|
2119
2120
|
label: w,
|
|
2120
2121
|
helperText: S = !1,
|
|
2121
2122
|
error: E,
|
|
2122
2123
|
appearance: b = "base",
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2124
|
+
isClearable: C = !1,
|
|
2125
|
+
fullWidth: x = !1,
|
|
2126
|
+
_dataComponent: g = "textfield",
|
|
2127
|
+
min: L,
|
|
2128
|
+
max: j,
|
|
2129
|
+
step: O,
|
|
2130
|
+
inputMode: k = "text",
|
|
2131
|
+
width: R,
|
|
2132
|
+
autocomplete: D,
|
|
2133
|
+
size: T,
|
|
2134
|
+
maxLength: P,
|
|
2135
|
+
onBlur: N,
|
|
2136
|
+
onChange: H,
|
|
2135
2137
|
onKeyDown: B,
|
|
2136
|
-
onShapeIconClick:
|
|
2137
|
-
onClick:
|
|
2138
|
+
onShapeIconClick: z,
|
|
2139
|
+
onClick: Z
|
|
2138
2140
|
}) => {
|
|
2139
|
-
const
|
|
2140
|
-
|
|
2141
|
-
}, _ = {
|
|
2142
|
-
|
|
2143
|
-
|
|
2141
|
+
const F = Se(), h = `${F}-helper`, v = E ? "danger" : o, $ = S || !!E, I = (U) => {
|
|
2142
|
+
H?.(U.target.value);
|
|
2143
|
+
}, _ = () => {
|
|
2144
|
+
e && e != "" && H?.("");
|
|
2145
|
+
}, A = {
|
|
2146
|
+
wrapper: `${me["smp-textfield-wrapper"]} ${x ? me["smp-textfield-fullWidth"] : ""}`,
|
|
2147
|
+
container: `${me["smp-textfield"]} ${n ? me["smp-textfield-disabled"] : ""} ${r ? me["smp-textfield-placeholder"] : ""} ${i ? me[`smp-textfield-${i}`] : ""} ${v ? me[`smp-textfield-${v}`] : ""} ${b ? me[`smp-textfield-${b}`] : ""} ${s ? "" : me["smp-textfield-readOnly"]} ${c ? me["smp-textfield-top-right-indicator"] : ""}`,
|
|
2144
2148
|
input: `${me["smp-textfield-input"]}`
|
|
2145
2149
|
};
|
|
2146
2150
|
if (l && (l !== "notSelectable" || s)) {
|
|
2147
|
-
const
|
|
2148
|
-
|
|
2151
|
+
const U = me[`smp-textfield-variant-${l}`];
|
|
2152
|
+
U && (A.container += ` ${U}`);
|
|
2149
2153
|
}
|
|
2150
|
-
const
|
|
2151
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
2152
|
-
w && /* @__PURE__ */ m.jsx(Ee, { label: w, disabled: n, htmlFor:
|
|
2154
|
+
const V = R ? { "--smp-textField-width-base": R } : void 0;
|
|
2155
|
+
return /* @__PURE__ */ m.jsxs("div", { className: A.wrapper, "data-component": g, children: [
|
|
2156
|
+
w && /* @__PURE__ */ m.jsx(Ee, { label: w, disabled: n, htmlFor: F }),
|
|
2153
2157
|
/* @__PURE__ */ m.jsxs(
|
|
2154
2158
|
"div",
|
|
2155
2159
|
{
|
|
2156
|
-
className:
|
|
2160
|
+
className: A.container,
|
|
2157
2161
|
ref: u,
|
|
2158
|
-
style:
|
|
2162
|
+
style: V,
|
|
2159
2163
|
children: [
|
|
2160
|
-
t && /* @__PURE__ */ m.jsx(
|
|
2164
|
+
t && /* @__PURE__ */ m.jsx(ce, { icon: t, disabled: n }),
|
|
2161
2165
|
/* @__PURE__ */ m.jsx(
|
|
2162
2166
|
"input",
|
|
2163
2167
|
{
|
|
2164
|
-
id:
|
|
2165
|
-
type:
|
|
2168
|
+
id: F,
|
|
2169
|
+
type: y,
|
|
2166
2170
|
value: e,
|
|
2167
2171
|
placeholder: r,
|
|
2168
|
-
onChange:
|
|
2169
|
-
onBlur:
|
|
2170
|
-
className:
|
|
2172
|
+
onChange: I,
|
|
2173
|
+
onBlur: N,
|
|
2174
|
+
className: A.input,
|
|
2171
2175
|
disabled: n,
|
|
2172
2176
|
readOnly: !s,
|
|
2173
2177
|
onKeyDown: B,
|
|
2174
2178
|
"aria-label": d,
|
|
2175
2179
|
ref: p,
|
|
2176
|
-
"aria-describedby":
|
|
2177
|
-
min:
|
|
2178
|
-
max:
|
|
2179
|
-
step:
|
|
2180
|
-
inputMode:
|
|
2181
|
-
autoComplete:
|
|
2182
|
-
size:
|
|
2183
|
-
maxLength:
|
|
2184
|
-
onClick:
|
|
2180
|
+
"aria-describedby": $ ? h : void 0,
|
|
2181
|
+
min: L,
|
|
2182
|
+
max: j,
|
|
2183
|
+
step: O,
|
|
2184
|
+
inputMode: k,
|
|
2185
|
+
autoComplete: D,
|
|
2186
|
+
size: T,
|
|
2187
|
+
maxLength: P,
|
|
2188
|
+
onClick: Z
|
|
2189
|
+
}
|
|
2190
|
+
),
|
|
2191
|
+
C && /* @__PURE__ */ m.jsx(
|
|
2192
|
+
ce,
|
|
2193
|
+
{
|
|
2194
|
+
icon: "clear",
|
|
2195
|
+
onClick: () => _(),
|
|
2196
|
+
tabIndex: 0,
|
|
2197
|
+
isInteractable: !0
|
|
2185
2198
|
}
|
|
2186
2199
|
),
|
|
2187
2200
|
a && /* @__PURE__ */ m.jsx(
|
|
2188
|
-
|
|
2201
|
+
ce,
|
|
2189
2202
|
{
|
|
2190
2203
|
icon: a,
|
|
2191
2204
|
disabled: n,
|
|
2192
|
-
onClick:
|
|
2205
|
+
onClick: z,
|
|
2193
2206
|
rotated: f,
|
|
2194
2207
|
isInteractable: s,
|
|
2195
2208
|
tabIndex: 0
|
|
@@ -2198,13 +2211,13 @@ const Re = (n, e, t) => {
|
|
|
2198
2211
|
]
|
|
2199
2212
|
}
|
|
2200
2213
|
),
|
|
2201
|
-
|
|
2214
|
+
$ && /* @__PURE__ */ m.jsx(
|
|
2202
2215
|
$n,
|
|
2203
2216
|
{
|
|
2204
2217
|
helperText: E,
|
|
2205
2218
|
disabled: n,
|
|
2206
|
-
state:
|
|
2207
|
-
id:
|
|
2219
|
+
state: v,
|
|
2220
|
+
id: h
|
|
2208
2221
|
}
|
|
2209
2222
|
)
|
|
2210
2223
|
] });
|
|
@@ -2215,22 +2228,22 @@ function kn({
|
|
|
2215
2228
|
containerHeight: t,
|
|
2216
2229
|
overscan: r = 5
|
|
2217
2230
|
}) {
|
|
2218
|
-
const [s, a] = G(0), i =
|
|
2231
|
+
const [s, a] = G(0), i = ue(null), o = n.length * e, l = Math.max(0, Math.floor(s / e) - r), c = Math.min(
|
|
2219
2232
|
n.length - 1,
|
|
2220
2233
|
Math.floor((s + t) / e) + r
|
|
2221
2234
|
), f = [];
|
|
2222
|
-
for (let
|
|
2235
|
+
for (let y = l; y <= c; y++)
|
|
2223
2236
|
f.push({
|
|
2224
|
-
item: n[
|
|
2225
|
-
index:
|
|
2226
|
-
offsetTop:
|
|
2237
|
+
item: n[y],
|
|
2238
|
+
index: y,
|
|
2239
|
+
offsetTop: y * e
|
|
2227
2240
|
});
|
|
2228
|
-
const u =
|
|
2229
|
-
const d =
|
|
2241
|
+
const u = fe((y) => {
|
|
2242
|
+
const d = y.target.scrollTop;
|
|
2230
2243
|
a(d);
|
|
2231
|
-
}, []), p = (
|
|
2244
|
+
}, []), p = (y) => {
|
|
2232
2245
|
if (!i.current) return;
|
|
2233
|
-
const d =
|
|
2246
|
+
const d = y * e, w = d + e, S = i.current, E = S.scrollTop, b = E + t;
|
|
2234
2247
|
d < E ? S.scrollTop = d : w > b && (S.scrollTop = w - t);
|
|
2235
2248
|
};
|
|
2236
2249
|
return {
|
|
@@ -2293,23 +2306,23 @@ const Tr = 10, Ln = ({
|
|
|
2293
2306
|
onKeyDown: c,
|
|
2294
2307
|
isOpen: f
|
|
2295
2308
|
}) => {
|
|
2296
|
-
const [u, p] = G(""),
|
|
2309
|
+
const [u, p] = G(""), y = 40, [d, w] = G(
|
|
2297
2310
|
a !== null ? a : -1
|
|
2298
|
-
), [S, E] = G(o || 200), b =
|
|
2311
|
+
), [S, E] = G(o || 200), b = ue(null), C = s !== void 0 ? s : e.length > Tr, x = u ? e.filter(
|
|
2299
2312
|
(N) => N.label.toLowerCase().includes(u.toLowerCase())
|
|
2300
|
-
) : e,
|
|
2313
|
+
) : e, g = (N) => {
|
|
2301
2314
|
p(N);
|
|
2302
|
-
}, { virtualItems:
|
|
2303
|
-
items:
|
|
2304
|
-
itemHeight:
|
|
2315
|
+
}, { virtualItems: L, containerProps: j, innerProps: O, scrollToIndex: k } = kn({
|
|
2316
|
+
items: x,
|
|
2317
|
+
itemHeight: y,
|
|
2305
2318
|
containerHeight: 200,
|
|
2306
2319
|
overscan: 5
|
|
2307
2320
|
});
|
|
2308
2321
|
ne(() => {
|
|
2309
2322
|
a !== null && a !== d && w(a);
|
|
2310
2323
|
}, [a]), ne(() => {
|
|
2311
|
-
d >= 0 && d <
|
|
2312
|
-
}, [d,
|
|
2324
|
+
d >= 0 && d < x.length && k(d);
|
|
2325
|
+
}, [d, x]), ne(() => {
|
|
2313
2326
|
f && b?.current && b.current.focus();
|
|
2314
2327
|
}, [f, b]), ne(() => {
|
|
2315
2328
|
const N = Cr(e, t);
|
|
@@ -2318,15 +2331,15 @@ const Tr = 10, Ln = ({
|
|
|
2318
2331
|
const R = (N) => {
|
|
2319
2332
|
if (N.key === "ArrowDown" || N.key === "ArrowUp") {
|
|
2320
2333
|
N.preventDefault();
|
|
2321
|
-
let
|
|
2322
|
-
N.key === "ArrowDown" ?
|
|
2323
|
-
} else N.key === "Enter" ? d >= 0 && d <
|
|
2334
|
+
let H = d;
|
|
2335
|
+
N.key === "ArrowDown" ? H = d < x.length - 1 ? d + 1 : 0 : N.key === "ArrowUp" && (H = d > 0 ? d - 1 : x.length - 1), w(H);
|
|
2336
|
+
} else N.key === "Enter" ? d >= 0 && d < x.length && l?.(x[d]) : N.key === "Escape" && (N.preventDefault(), N.stopPropagation());
|
|
2324
2337
|
c && c(N);
|
|
2325
2338
|
}, D = (N) => {
|
|
2326
2339
|
R(N);
|
|
2327
2340
|
}, T = (N) => {
|
|
2328
2341
|
R(N);
|
|
2329
|
-
},
|
|
2342
|
+
}, P = {
|
|
2330
2343
|
wrapper: `${Qe["smp-list"]}`,
|
|
2331
2344
|
container: `${Qe["smp-list-container"]}`,
|
|
2332
2345
|
virtualScroll: `${Qe["smp-list-virtualScroll"]}`,
|
|
@@ -2337,7 +2350,7 @@ const Tr = 10, Ln = ({
|
|
|
2337
2350
|
{
|
|
2338
2351
|
id: n,
|
|
2339
2352
|
ref: r,
|
|
2340
|
-
className:
|
|
2353
|
+
className: P.wrapper,
|
|
2341
2354
|
"data-component": "list",
|
|
2342
2355
|
style: {
|
|
2343
2356
|
width: S,
|
|
@@ -2350,7 +2363,7 @@ const Tr = 10, Ln = ({
|
|
|
2350
2363
|
bindValue: u,
|
|
2351
2364
|
placeholder: "Search...",
|
|
2352
2365
|
fullWidth: !0,
|
|
2353
|
-
onChange:
|
|
2366
|
+
onChange: g,
|
|
2354
2367
|
onKeyDown: D,
|
|
2355
2368
|
inputRef: b
|
|
2356
2369
|
}
|
|
@@ -2358,14 +2371,14 @@ const Tr = 10, Ln = ({
|
|
|
2358
2371
|
/* @__PURE__ */ m.jsx(
|
|
2359
2372
|
"div",
|
|
2360
2373
|
{
|
|
2361
|
-
...
|
|
2362
|
-
className:
|
|
2374
|
+
...j,
|
|
2375
|
+
className: P.container,
|
|
2363
2376
|
tabIndex: 0,
|
|
2364
2377
|
role: "listbox",
|
|
2365
2378
|
"aria-label": "List",
|
|
2366
2379
|
onKeyDown: T,
|
|
2367
|
-
"aria-activedescendant": d >= 0 && d <
|
|
2368
|
-
children: /* @__PURE__ */ m.jsx("div", { ...O, className:
|
|
2380
|
+
"aria-activedescendant": d >= 0 && d < x.length ? x[d]?.id : void 0,
|
|
2381
|
+
children: /* @__PURE__ */ m.jsx("div", { ...O, className: P.virtualScroll, children: L.map(({ item: N, index: H, offsetTop: B }) => {
|
|
2369
2382
|
const z = i.includes(N.id);
|
|
2370
2383
|
return (
|
|
2371
2384
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2374,22 +2387,22 @@ const Tr = 10, Ln = ({
|
|
|
2374
2387
|
{
|
|
2375
2388
|
role: "option",
|
|
2376
2389
|
id: N.id,
|
|
2377
|
-
"aria-selected": d ===
|
|
2390
|
+
"aria-selected": d === H ? "true" : "false",
|
|
2378
2391
|
tabIndex: -1,
|
|
2379
|
-
className: `${
|
|
2392
|
+
className: `${P.listItem} ${d === H ? "selected-item" : ""}`,
|
|
2380
2393
|
"aria-label": N.id + "-" + N.label,
|
|
2381
2394
|
style: {
|
|
2382
|
-
height: `${
|
|
2383
|
-
lineHeight: `calc(${
|
|
2395
|
+
height: `${y}px`,
|
|
2396
|
+
lineHeight: `calc(${y}px - 2*2px)`,
|
|
2384
2397
|
// lineHeight - 2*padding
|
|
2385
|
-
transform: `translateY(${
|
|
2398
|
+
transform: `translateY(${B}px)`
|
|
2386
2399
|
},
|
|
2387
2400
|
onClick: () => {
|
|
2388
|
-
l?.(N), w(
|
|
2401
|
+
l?.(N), w(H);
|
|
2389
2402
|
},
|
|
2390
2403
|
children: [
|
|
2391
2404
|
Re(N.id, N.label, t),
|
|
2392
|
-
z && /* @__PURE__ */ m.jsx(
|
|
2405
|
+
z && /* @__PURE__ */ m.jsx(ce, { icon: "check", width: 16 })
|
|
2393
2406
|
]
|
|
2394
2407
|
},
|
|
2395
2408
|
N.id
|
|
@@ -2401,7 +2414,7 @@ const Tr = 10, Ln = ({
|
|
|
2401
2414
|
]
|
|
2402
2415
|
}
|
|
2403
2416
|
);
|
|
2404
|
-
},
|
|
2417
|
+
}, It = ({
|
|
2405
2418
|
displayMode: n,
|
|
2406
2419
|
bindValue: e,
|
|
2407
2420
|
optionalDisplayValue: t,
|
|
@@ -2418,7 +2431,7 @@ const Tr = 10, Ln = ({
|
|
|
2418
2431
|
);
|
|
2419
2432
|
}, [t, n]), /* @__PURE__ */ m.jsx(je, { ...r, bindValue: s });
|
|
2420
2433
|
}, Or = (n) => {
|
|
2421
|
-
const e =
|
|
2434
|
+
const e = ue(null);
|
|
2422
2435
|
return ne(() => () => {
|
|
2423
2436
|
e.current && clearTimeout(e.current);
|
|
2424
2437
|
}, []), (r) => {
|
|
@@ -2501,11 +2514,11 @@ const ht = (n, e, t) => {
|
|
|
2501
2514
|
}, jr = (n, e, t) => {
|
|
2502
2515
|
const r = lt(n, t);
|
|
2503
2516
|
return r !== void 0 ? r : lt(e, t);
|
|
2504
|
-
},
|
|
2517
|
+
}, In = (n, e, t) => {
|
|
2505
2518
|
for (const r in e)
|
|
2506
|
-
r !== "__proto__" && r !== "constructor" && (r in n ? K(n[r]) || n[r] instanceof String || K(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) :
|
|
2519
|
+
r !== "__proto__" && r !== "constructor" && (r in n ? K(n[r]) || n[r] instanceof String || K(e[r]) || e[r] instanceof String ? t && (n[r] = e[r]) : In(n[r], e[r], t) : n[r] = e[r]);
|
|
2507
2520
|
return n;
|
|
2508
|
-
},
|
|
2521
|
+
}, Ie = (n) => n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2509
2522
|
var $r = {
|
|
2510
2523
|
"&": "&",
|
|
2511
2524
|
"<": "<",
|
|
@@ -2527,11 +2540,11 @@ class Lr {
|
|
|
2527
2540
|
return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, r), this.regExpQueue.push(e), r;
|
|
2528
2541
|
}
|
|
2529
2542
|
}
|
|
2530
|
-
const
|
|
2543
|
+
const Ir = [" ", ",", "?", "!", ";"], Ar = new Lr(20), Pr = (n, e, t) => {
|
|
2531
2544
|
e = e || "", t = t || "";
|
|
2532
|
-
const r =
|
|
2545
|
+
const r = Ir.filter((i) => e.indexOf(i) < 0 && t.indexOf(i) < 0);
|
|
2533
2546
|
if (r.length === 0) return !0;
|
|
2534
|
-
const s =
|
|
2547
|
+
const s = Ar.getRegExp(`(${r.map((i) => i === "?" ? "\\?" : i).join("|")})`);
|
|
2535
2548
|
let a = !s.test(n);
|
|
2536
2549
|
if (!a) {
|
|
2537
2550
|
const i = n.indexOf(t);
|
|
@@ -2680,7 +2693,7 @@ class dn extends mt {
|
|
|
2680
2693
|
let o = [e, t];
|
|
2681
2694
|
e.indexOf(".") > -1 && (o = e.split("."), s = r, r = t, t = o[1]), this.addNamespaces(t);
|
|
2682
2695
|
let l = lt(this.data, o) || {};
|
|
2683
|
-
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ?
|
|
2696
|
+
i.skipCopy || (r = JSON.parse(JSON.stringify(r))), s ? In(l, r, a) : l = {
|
|
2684
2697
|
...l,
|
|
2685
2698
|
...r
|
|
2686
2699
|
}, fn(this.data, o, l), i.silent || this.emit("added", e, t, r);
|
|
@@ -2705,7 +2718,7 @@ class dn extends mt {
|
|
|
2705
2718
|
return this.data;
|
|
2706
2719
|
}
|
|
2707
2720
|
}
|
|
2708
|
-
var
|
|
2721
|
+
var An = {
|
|
2709
2722
|
processors: {},
|
|
2710
2723
|
addPostProcessor(n) {
|
|
2711
2724
|
this.processors[n.name] = n;
|
|
@@ -2784,75 +2797,75 @@ class ut extends mt {
|
|
|
2784
2797
|
usedNS: c,
|
|
2785
2798
|
usedParams: this.getUsedParamsDetails(s)
|
|
2786
2799
|
} : o;
|
|
2787
|
-
const
|
|
2788
|
-
let d =
|
|
2789
|
-
const w =
|
|
2800
|
+
const y = this.resolve(e, s);
|
|
2801
|
+
let d = y?.res;
|
|
2802
|
+
const w = y?.usedKey || o, S = y?.exactUsedKey || o, E = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, x = s.count !== void 0 && !K(s.count), g = ut.hasDefaultValue(s), L = x ? this.pluralResolver.getSuffix(u, s.count, s) : "", j = s.ordinal && x ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2790
2803
|
ordinal: !1
|
|
2791
|
-
}) : "", O =
|
|
2804
|
+
}) : "", O = x && !s.ordinal && s.count === 0, k = O && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${L}`] || s[`defaultValue${j}`] || s.defaultValue;
|
|
2792
2805
|
let R = d;
|
|
2793
|
-
C && !d &&
|
|
2806
|
+
C && !d && g && (R = k);
|
|
2794
2807
|
const D = hn(R), T = Object.prototype.toString.apply(R);
|
|
2795
2808
|
if (C && R && D && E.indexOf(T) < 0 && !(K(b) && Array.isArray(R))) {
|
|
2796
2809
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2797
2810
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2798
|
-
const
|
|
2811
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(w, R, {
|
|
2799
2812
|
...s,
|
|
2800
2813
|
ns: l
|
|
2801
2814
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2802
|
-
return a ? (
|
|
2815
|
+
return a ? (y.res = P, y.usedParams = this.getUsedParamsDetails(s), y) : P;
|
|
2803
2816
|
}
|
|
2804
2817
|
if (i) {
|
|
2805
|
-
const
|
|
2806
|
-
for (const
|
|
2807
|
-
if (Object.prototype.hasOwnProperty.call(R,
|
|
2808
|
-
const z = `${
|
|
2809
|
-
|
|
2818
|
+
const P = Array.isArray(R), N = P ? [] : {}, H = P ? S : w;
|
|
2819
|
+
for (const B in R)
|
|
2820
|
+
if (Object.prototype.hasOwnProperty.call(R, B)) {
|
|
2821
|
+
const z = `${H}${i}${B}`;
|
|
2822
|
+
g && !d ? N[B] = this.translate(z, {
|
|
2810
2823
|
...s,
|
|
2811
|
-
defaultValue: hn(
|
|
2824
|
+
defaultValue: hn(k) ? k[B] : void 0,
|
|
2812
2825
|
joinArrays: !1,
|
|
2813
2826
|
ns: l
|
|
2814
|
-
}) : N[
|
|
2827
|
+
}) : N[B] = this.translate(z, {
|
|
2815
2828
|
...s,
|
|
2816
2829
|
joinArrays: !1,
|
|
2817
2830
|
ns: l
|
|
2818
|
-
}), N[
|
|
2831
|
+
}), N[B] === z && (N[B] = R[B]);
|
|
2819
2832
|
}
|
|
2820
2833
|
d = N;
|
|
2821
2834
|
}
|
|
2822
2835
|
} else if (C && K(b) && Array.isArray(d))
|
|
2823
2836
|
d = d.join(b), d && (d = this.extendTranslation(d, e, s, r));
|
|
2824
2837
|
else {
|
|
2825
|
-
let
|
|
2826
|
-
!this.isValidLookup(d) &&
|
|
2827
|
-
const
|
|
2828
|
-
if (N ||
|
|
2829
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ?
|
|
2830
|
-
const
|
|
2838
|
+
let P = !1, N = !1;
|
|
2839
|
+
!this.isValidLookup(d) && g && (P = !0, d = k), this.isValidLookup(d) || (N = !0, d = o);
|
|
2840
|
+
const B = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && N ? void 0 : d, z = g && k !== d && this.options.updateMissing;
|
|
2841
|
+
if (N || P || z) {
|
|
2842
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? k : d), i) {
|
|
2843
|
+
const v = this.resolve(o, {
|
|
2831
2844
|
...s,
|
|
2832
2845
|
keySeparator: !1
|
|
2833
2846
|
});
|
|
2834
|
-
|
|
2847
|
+
v && v.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.");
|
|
2835
2848
|
}
|
|
2836
|
-
let
|
|
2849
|
+
let Z = [];
|
|
2837
2850
|
const F = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2838
2851
|
if (this.options.saveMissingTo === "fallback" && F && F[0])
|
|
2839
|
-
for (let
|
|
2840
|
-
|
|
2841
|
-
else this.options.saveMissingTo === "all" ?
|
|
2842
|
-
const h = (
|
|
2843
|
-
const
|
|
2844
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2852
|
+
for (let v = 0; v < F.length; v++)
|
|
2853
|
+
Z.push(F[v]);
|
|
2854
|
+
else this.options.saveMissingTo === "all" ? Z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : Z.push(s.lng || this.language);
|
|
2855
|
+
const h = (v, $, I) => {
|
|
2856
|
+
const _ = g && I !== d ? I : B;
|
|
2857
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, $, _, z, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(v, c, $, _, z, s), this.emit("missingKey", v, c, $, d);
|
|
2845
2858
|
};
|
|
2846
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2847
|
-
const $ = this.pluralResolver.getSuffixes(
|
|
2848
|
-
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((
|
|
2849
|
-
h([
|
|
2859
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && x ? Z.forEach((v) => {
|
|
2860
|
+
const $ = this.pluralResolver.getSuffixes(v, s);
|
|
2861
|
+
O && s[`defaultValue${this.options.pluralSeparator}zero`] && $.indexOf(`${this.options.pluralSeparator}zero`) < 0 && $.push(`${this.options.pluralSeparator}zero`), $.forEach((I) => {
|
|
2862
|
+
h([v], o + I, s[`defaultValue${I}`] || k);
|
|
2850
2863
|
});
|
|
2851
|
-
}) : h(
|
|
2864
|
+
}) : h(Z, o, k));
|
|
2852
2865
|
}
|
|
2853
|
-
d = this.extendTranslation(d, e, s,
|
|
2866
|
+
d = this.extendTranslation(d, e, s, y, r), N && d === o && this.options.appendNamespaceToMissingKey && (d = `${c}${f}${o}`), (N || P) && this.options.parseMissingKeyHandler && (d = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, P ? d : void 0, s));
|
|
2854
2867
|
}
|
|
2855
|
-
return a ? (
|
|
2868
|
+
return a ? (y.res = d, y.usedParams = this.getUsedParamsDetails(s), y) : d;
|
|
2856
2869
|
}
|
|
2857
2870
|
extendTranslation(e, t, r, s, a) {
|
|
2858
2871
|
if (this.i18nFormat?.parse)
|
|
@@ -2887,7 +2900,7 @@ class ut extends mt {
|
|
|
2887
2900
|
!r.lng && s && s.res && (r.lng = this.language || s.usedLng), r.nest !== !1 && (e = this.interpolator.nest(e, (...u) => a?.[0] === u[0] && !r.context ? (this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${t[0]}`), null) : this.translate(...u, t), r)), r.interpolation && this.interpolator.reset();
|
|
2888
2901
|
}
|
|
2889
2902
|
const i = r.postProcess || this.options.postProcess, o = K(i) ? [i] : i;
|
|
2890
|
-
return e != null && o?.length && r.applyPostProcessor !== !1 && (e =
|
|
2903
|
+
return e != null && o?.length && r.applyPostProcessor !== !1 && (e = An.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2891
2904
|
i18nResolved: {
|
|
2892
2905
|
...s,
|
|
2893
2906
|
usedParams: this.getUsedParamsDetails(r)
|
|
@@ -2903,7 +2916,7 @@ class ut extends mt {
|
|
|
2903
2916
|
s = f;
|
|
2904
2917
|
let u = c.namespaces;
|
|
2905
2918
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2906
|
-
const p = t.count !== void 0 && !K(t.count),
|
|
2919
|
+
const p = t.count !== void 0 && !K(t.count), y = p && !t.ordinal && t.count === 0, d = t.context !== void 0 && (K(t.context) || typeof t.context == "number") && t.context !== "", w = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2907
2920
|
u.forEach((S) => {
|
|
2908
2921
|
this.isValidLookup(r) || (o = S, !pn[`${w[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o) && (pn[`${w[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), w.forEach((E) => {
|
|
2909
2922
|
if (this.isValidLookup(r)) return;
|
|
@@ -2912,12 +2925,12 @@ class ut extends mt {
|
|
|
2912
2925
|
if (this.i18nFormat?.addLookupKeys)
|
|
2913
2926
|
this.i18nFormat.addLookupKeys(b, f, E, S, t);
|
|
2914
2927
|
else {
|
|
2915
|
-
let
|
|
2916
|
-
p && (
|
|
2917
|
-
const
|
|
2918
|
-
if (p && (b.push(f +
|
|
2919
|
-
const
|
|
2920
|
-
b.push(
|
|
2928
|
+
let x;
|
|
2929
|
+
p && (x = this.pluralResolver.getSuffix(E, t.count, t));
|
|
2930
|
+
const g = `${this.options.pluralSeparator}zero`, L = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2931
|
+
if (p && (b.push(f + x), t.ordinal && x.indexOf(L) === 0 && b.push(f + x.replace(L, this.options.pluralSeparator)), y && b.push(f + g)), d) {
|
|
2932
|
+
const j = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2933
|
+
b.push(j), p && (b.push(j + x), t.ordinal && x.indexOf(L) === 0 && b.push(j + x.replace(L, this.options.pluralSeparator)), y && b.push(j + g));
|
|
2921
2934
|
}
|
|
2922
2935
|
}
|
|
2923
2936
|
let C;
|
|
@@ -3110,14 +3123,14 @@ class Fr {
|
|
|
3110
3123
|
unescapeSuffix: f,
|
|
3111
3124
|
unescapePrefix: u,
|
|
3112
3125
|
nestingPrefix: p,
|
|
3113
|
-
nestingPrefixEscaped:
|
|
3126
|
+
nestingPrefixEscaped: y,
|
|
3114
3127
|
nestingSuffix: d,
|
|
3115
3128
|
nestingSuffixEscaped: w,
|
|
3116
3129
|
nestingOptionsSeparator: S,
|
|
3117
3130
|
maxReplaces: E,
|
|
3118
3131
|
alwaysFormat: b
|
|
3119
3132
|
} = e.interpolation;
|
|
3120
|
-
this.escape = t !== void 0 ? t : kr, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ?
|
|
3133
|
+
this.escape = t !== void 0 ? t : kr, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ie(a) : i || "{{", this.suffix = o ? Ie(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = p ? Ie(p) : y || Ie("$t("), this.nestingSuffix = d ? Ie(d) : w || Ie(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = E || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
|
3121
3134
|
}
|
|
3122
3135
|
reset() {
|
|
3123
3136
|
this.options && this.init(this.options);
|
|
@@ -3128,16 +3141,16 @@ class Fr {
|
|
|
3128
3141
|
}
|
|
3129
3142
|
interpolate(e, t, r, s) {
|
|
3130
3143
|
let a, i, o;
|
|
3131
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
3132
|
-
if (
|
|
3133
|
-
const E = bn(t, l,
|
|
3144
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (y) => {
|
|
3145
|
+
if (y.indexOf(this.formatSeparator) < 0) {
|
|
3146
|
+
const E = bn(t, l, y, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3134
3147
|
return this.alwaysFormat ? this.format(E, void 0, r, {
|
|
3135
3148
|
...s,
|
|
3136
3149
|
...t,
|
|
3137
|
-
interpolationkey:
|
|
3150
|
+
interpolationkey: y
|
|
3138
3151
|
}) : E;
|
|
3139
3152
|
}
|
|
3140
|
-
const d =
|
|
3153
|
+
const d = y.split(this.formatSeparator), w = d.shift().trim(), S = d.join(this.formatSeparator).trim();
|
|
3141
3154
|
return this.format(bn(t, l, w, this.options.keySeparator, this.options.ignoreJSONStructure), S, r, {
|
|
3142
3155
|
...s,
|
|
3143
3156
|
...t,
|
|
@@ -3148,12 +3161,12 @@ class Fr {
|
|
|
3148
3161
|
const f = s?.missingInterpolationHandler || this.options.missingInterpolationHandler, u = s?.interpolation?.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3149
3162
|
return [{
|
|
3150
3163
|
regex: this.regexpUnescape,
|
|
3151
|
-
safeValue: (
|
|
3164
|
+
safeValue: (y) => Ct(y)
|
|
3152
3165
|
}, {
|
|
3153
3166
|
regex: this.regexp,
|
|
3154
|
-
safeValue: (
|
|
3155
|
-
}].forEach((
|
|
3156
|
-
for (o = 0; a =
|
|
3167
|
+
safeValue: (y) => this.escapeValue ? Ct(this.escape(y)) : Ct(y)
|
|
3168
|
+
}].forEach((y) => {
|
|
3169
|
+
for (o = 0; a = y.regex.exec(e); ) {
|
|
3157
3170
|
const d = a[1].trim();
|
|
3158
3171
|
if (i = c(d), i === void 0)
|
|
3159
3172
|
if (typeof f == "function") {
|
|
@@ -3167,8 +3180,8 @@ class Fr {
|
|
|
3167
3180
|
} else
|
|
3168
3181
|
this.logger.warn(`missed to pass in variable ${d} for interpolating ${e}`), i = "";
|
|
3169
3182
|
else !K(i) && !this.useRawValueToEscape && (i = ln(i));
|
|
3170
|
-
const w =
|
|
3171
|
-
if (e = e.replace(a[0], w), u ? (
|
|
3183
|
+
const w = y.safeValue(i);
|
|
3184
|
+
if (e = e.replace(a[0], w), u ? (y.regex.lastIndex += i.length, y.regex.lastIndex -= a[0].length) : y.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3172
3185
|
break;
|
|
3173
3186
|
}
|
|
3174
3187
|
}), e;
|
|
@@ -3181,8 +3194,8 @@ class Fr {
|
|
|
3181
3194
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
3182
3195
|
let p = `{${u[1]}`;
|
|
3183
3196
|
l = u[0], p = this.interpolate(p, i);
|
|
3184
|
-
const
|
|
3185
|
-
((
|
|
3197
|
+
const y = p.match(/'/g), d = p.match(/"/g);
|
|
3198
|
+
((y?.length ?? 0) % 2 === 0 && !d || d.length % 2 !== 0) && (p = p.replace(/'/g, '"'));
|
|
3186
3199
|
try {
|
|
3187
3200
|
i = JSON.parse(p), c && (i = {
|
|
3188
3201
|
...c,
|
|
@@ -3302,8 +3315,8 @@ class Wr {
|
|
|
3302
3315
|
if (this.formats[c]) {
|
|
3303
3316
|
let u = o;
|
|
3304
3317
|
try {
|
|
3305
|
-
const p = s?.formatParams?.[s.interpolationkey] || {},
|
|
3306
|
-
u = this.formats[c](o,
|
|
3318
|
+
const p = s?.formatParams?.[s.interpolationkey] || {}, y = p.locale || p.lng || s.locale || s.lng || r;
|
|
3319
|
+
u = this.formats[c](o, y, {
|
|
3307
3320
|
...f,
|
|
3308
3321
|
...s,
|
|
3309
3322
|
...p
|
|
@@ -3550,12 +3563,12 @@ class Be extends mt {
|
|
|
3550
3563
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3551
3564
|
}), this.options.interpolation.format && this.options.interpolation.format !== r.interpolation.format && this.logger.warn("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), c && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = s(c), u.formatter.init && u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Fr(this.options), u.utils = {
|
|
3552
3565
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3553
|
-
}, u.backendConnector = new Br(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (
|
|
3554
|
-
this.emit(
|
|
3555
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ut(this.services, this.options), this.translator.on("*", (
|
|
3556
|
-
this.emit(
|
|
3557
|
-
}), this.modules.external.forEach((
|
|
3558
|
-
|
|
3566
|
+
}, u.backendConnector = new Br(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (y, ...d) => {
|
|
3567
|
+
this.emit(y, ...d);
|
|
3568
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new ut(this.services, this.options), this.translator.on("*", (y, ...d) => {
|
|
3569
|
+
this.emit(y, ...d);
|
|
3570
|
+
}), this.modules.external.forEach((y) => {
|
|
3571
|
+
y.init && y.init(this);
|
|
3559
3572
|
});
|
|
3560
3573
|
}
|
|
3561
3574
|
if (this.format = this.options.interpolation.format, t || (t = et), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3602,7 +3615,7 @@ class Be extends mt {
|
|
|
3602
3615
|
use(e) {
|
|
3603
3616
|
if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3604
3617
|
if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3605
|
-
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" &&
|
|
3618
|
+
return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && An.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
|
|
3606
3619
|
}
|
|
3607
3620
|
setResolvedLanguage(e) {
|
|
3608
3621
|
if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
|
|
@@ -3868,10 +3881,10 @@ oe.init({
|
|
|
3868
3881
|
});
|
|
3869
3882
|
const ls = (n, e, t, r) => oe.format(n, e, t || oe.language, r), cs = (n, e) => oe.t(n, e);
|
|
3870
3883
|
function $e() {
|
|
3871
|
-
const n =
|
|
3884
|
+
const n = fe(
|
|
3872
3885
|
(r, s, a, i) => ls(r, s, a || void 0, i),
|
|
3873
3886
|
[]
|
|
3874
|
-
), e =
|
|
3887
|
+
), e = fe(() => oe.languages[0], []), t = fe(
|
|
3875
3888
|
(r, s) => cs(r, s),
|
|
3876
3889
|
[]
|
|
3877
3890
|
);
|
|
@@ -3884,89 +3897,91 @@ const Pn = ({
|
|
|
3884
3897
|
options: t,
|
|
3885
3898
|
displayMode: r,
|
|
3886
3899
|
listDisplayMode: s = "Both",
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3900
|
+
isClearable: a = !1,
|
|
3901
|
+
minimumChars: i = 3,
|
|
3902
|
+
isEditable: o = !0,
|
|
3903
|
+
fun: l,
|
|
3904
|
+
_changeOnEnter: c = !1,
|
|
3905
|
+
onChange: f,
|
|
3906
|
+
onOptionsRequest: u,
|
|
3907
|
+
onBlur: p,
|
|
3908
|
+
_multiActiveIndex: y,
|
|
3909
|
+
...d
|
|
3896
3910
|
}) => {
|
|
3897
|
-
const
|
|
3911
|
+
const w = ue(null), [S, E] = G(n), [b, C] = G(e), { translate: x } = $e(), [g, L] = G(!1), [j, O] = G(t || []), [k, R] = G(0), [D, T] = G([n]), { anchorRef: P, targetRef: N, anchorWidth: H } = dt({
|
|
3898
3912
|
position: "bottom",
|
|
3899
|
-
enabled:
|
|
3900
|
-
}), B =
|
|
3901
|
-
|
|
3913
|
+
enabled: g
|
|
3914
|
+
}), B = fe(() => {
|
|
3915
|
+
L(!1), w?.current?.focus();
|
|
3902
3916
|
}, []);
|
|
3903
|
-
ht([
|
|
3904
|
-
const
|
|
3905
|
-
_.length >=
|
|
3906
|
-
},
|
|
3907
|
-
|
|
3908
|
-
if (
|
|
3909
|
-
const
|
|
3910
|
-
A
|
|
3917
|
+
ht([N], g, () => B());
|
|
3918
|
+
const z = Or(400), Z = (_) => {
|
|
3919
|
+
_.length >= i ? F(_) : B(), E(_), C(e), c || f?.(_, e);
|
|
3920
|
+
}, F = (_) => {
|
|
3921
|
+
z(async () => {
|
|
3922
|
+
if (l && u) {
|
|
3923
|
+
const A = await u(l, _);
|
|
3924
|
+
O(A), R(A.length > 0 ? 0 : -1), L(!0);
|
|
3911
3925
|
}
|
|
3912
3926
|
});
|
|
3913
|
-
},
|
|
3914
|
-
|
|
3915
|
-
},
|
|
3916
|
-
|
|
3917
|
-
const
|
|
3918
|
-
|
|
3919
|
-
}, x = (_) => {
|
|
3920
|
-
_.key === "Escape" && (B(), L(-1));
|
|
3927
|
+
}, h = () => {
|
|
3928
|
+
g || p?.();
|
|
3929
|
+
}, v = (_) => {
|
|
3930
|
+
c ? (E(""), C("")) : (E(_.id), C(_.label)), f?.(_.id, _.label);
|
|
3931
|
+
const A = j.findIndex((V) => V.id === _.id);
|
|
3932
|
+
R(A), T([_.id]), B();
|
|
3921
3933
|
}, $ = (_) => {
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3934
|
+
_.key === "Escape" && (B(), R(-1));
|
|
3935
|
+
}, I = (_) => {
|
|
3936
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), g)) {
|
|
3937
|
+
const A = _.key === "ArrowDown" ? (k + 1) % j.length : (k - 1 + j.length) % j.length;
|
|
3938
|
+
R(A);
|
|
3925
3939
|
}
|
|
3926
3940
|
switch (_.key) {
|
|
3927
3941
|
case "Enter":
|
|
3928
|
-
|
|
3942
|
+
k >= 0 && k < j.length ? v(j[k]) : c && (f?.(S, ""), B(), E(""), C(""));
|
|
3929
3943
|
break;
|
|
3930
3944
|
case "Escape":
|
|
3931
|
-
B(),
|
|
3945
|
+
B(), R(-1);
|
|
3932
3946
|
break;
|
|
3933
3947
|
}
|
|
3934
3948
|
};
|
|
3935
3949
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3936
3950
|
/* @__PURE__ */ m.jsx(
|
|
3937
|
-
|
|
3951
|
+
It,
|
|
3938
3952
|
{
|
|
3939
|
-
...
|
|
3940
|
-
bindValue:
|
|
3941
|
-
optionalDisplayValue:
|
|
3953
|
+
...d,
|
|
3954
|
+
bindValue: S,
|
|
3955
|
+
optionalDisplayValue: b,
|
|
3942
3956
|
displayMode: r,
|
|
3943
|
-
isEditable:
|
|
3957
|
+
isEditable: o,
|
|
3944
3958
|
shapeIcon: "magnify",
|
|
3945
|
-
placeholder:
|
|
3959
|
+
placeholder: x(
|
|
3946
3960
|
Te.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3947
3961
|
),
|
|
3948
|
-
ref:
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3962
|
+
ref: P,
|
|
3963
|
+
isClearable: a,
|
|
3964
|
+
inputRef: w,
|
|
3965
|
+
onChange: Z,
|
|
3966
|
+
onKeyDown: I,
|
|
3967
|
+
onBlur: h,
|
|
3968
|
+
onShapeIconClick: () => F(S),
|
|
3954
3969
|
"aria-autocomplete": "list"
|
|
3955
3970
|
}
|
|
3956
3971
|
),
|
|
3957
|
-
|
|
3972
|
+
g && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
3958
3973
|
Ln,
|
|
3959
3974
|
{
|
|
3960
|
-
options:
|
|
3975
|
+
options: j,
|
|
3961
3976
|
displayMode: s,
|
|
3962
|
-
onClick:
|
|
3963
|
-
ref:
|
|
3964
|
-
selectedIndex:
|
|
3965
|
-
activeIndex:
|
|
3966
|
-
width:
|
|
3977
|
+
onClick: v,
|
|
3978
|
+
ref: N,
|
|
3979
|
+
selectedIndex: k,
|
|
3980
|
+
activeIndex: y || D,
|
|
3981
|
+
width: H,
|
|
3967
3982
|
showFilter: !1,
|
|
3968
|
-
onKeyDown:
|
|
3969
|
-
isOpen:
|
|
3983
|
+
onKeyDown: $,
|
|
3984
|
+
isOpen: g
|
|
3970
3985
|
}
|
|
3971
3986
|
) })
|
|
3972
3987
|
] });
|
|
@@ -3984,7 +3999,7 @@ const Pn = ({
|
|
|
3984
3999
|
disabled: f,
|
|
3985
4000
|
justify: u,
|
|
3986
4001
|
squared: p,
|
|
3987
|
-
onClick:
|
|
4002
|
+
onClick: y,
|
|
3988
4003
|
onOptionsRequest: d
|
|
3989
4004
|
}) => {
|
|
3990
4005
|
const [w, S] = G(n);
|
|
@@ -3998,8 +4013,8 @@ const Pn = ({
|
|
|
3998
4013
|
}, [w, e, d]);
|
|
3999
4014
|
const E = {
|
|
4000
4015
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${r}`
|
|
4001
|
-
}, b = w?.map((C,
|
|
4002
|
-
const
|
|
4016
|
+
}, b = w?.map((C, x) => {
|
|
4017
|
+
const g = {
|
|
4003
4018
|
bindValue: C.id,
|
|
4004
4019
|
optionalDisplayValue: C.label,
|
|
4005
4020
|
fun: C.fun,
|
|
@@ -4014,10 +4029,10 @@ const Pn = ({
|
|
|
4014
4029
|
justify: u,
|
|
4015
4030
|
squared: p,
|
|
4016
4031
|
onClick: () => {
|
|
4017
|
-
|
|
4032
|
+
y?.(C.id, C.fun);
|
|
4018
4033
|
}
|
|
4019
4034
|
};
|
|
4020
|
-
return /* @__PURE__ */ m.jsx(
|
|
4035
|
+
return /* @__PURE__ */ m.jsx(xe, { ...g }, `button-${x}`);
|
|
4021
4036
|
});
|
|
4022
4037
|
return /* @__PURE__ */ m.jsx("div", { role: "list", "data-component": "button-list", className: E.container, children: b });
|
|
4023
4038
|
}, fs = {
|
|
@@ -4032,7 +4047,7 @@ const Pn = ({
|
|
|
4032
4047
|
onBlur: i,
|
|
4033
4048
|
variant: o = "checkbox"
|
|
4034
4049
|
}) => {
|
|
4035
|
-
const l =
|
|
4050
|
+
const l = Se(), c = (u) => {
|
|
4036
4051
|
s && a && a(u.target.checked);
|
|
4037
4052
|
}, f = {
|
|
4038
4053
|
wrapper: `${fs["smp-checkbox-wrapper"]}`
|
|
@@ -4052,7 +4067,7 @@ const Pn = ({
|
|
|
4052
4067
|
}
|
|
4053
4068
|
)
|
|
4054
4069
|
] });
|
|
4055
|
-
},
|
|
4070
|
+
}, At = ({
|
|
4056
4071
|
elements: n,
|
|
4057
4072
|
isEditable: e = !1,
|
|
4058
4073
|
displayMode: t = "Both",
|
|
@@ -4064,19 +4079,19 @@ const Pn = ({
|
|
|
4064
4079
|
const [o, l] = G(null), c = {
|
|
4065
4080
|
container: `${["smp-chips-container"]}`,
|
|
4066
4081
|
element: "smp-chips-element"
|
|
4067
|
-
}, f = (
|
|
4068
|
-
r?.(n.filter((d, w) => w !==
|
|
4069
|
-
}, u = (
|
|
4070
|
-
l(
|
|
4071
|
-
}, p = (
|
|
4072
|
-
if (o === null || o ===
|
|
4082
|
+
}, f = (y) => {
|
|
4083
|
+
r?.(n.filter((d, w) => w !== y));
|
|
4084
|
+
}, u = (y) => {
|
|
4085
|
+
l(y);
|
|
4086
|
+
}, p = (y) => {
|
|
4087
|
+
if (o === null || o === y) return;
|
|
4073
4088
|
const d = [...n], [w] = d.splice(o, 1);
|
|
4074
|
-
d.splice(
|
|
4089
|
+
d.splice(y, 0, w), r?.(d), l(null);
|
|
4075
4090
|
};
|
|
4076
|
-
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: n.flatMap((
|
|
4091
|
+
return /* @__PURE__ */ m.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: n.flatMap((y, d) => {
|
|
4077
4092
|
const w = Re(
|
|
4078
|
-
|
|
4079
|
-
|
|
4093
|
+
y.bindValue,
|
|
4094
|
+
y.optionalDisplayValue,
|
|
4080
4095
|
t
|
|
4081
4096
|
), S = /* @__PURE__ */ m.jsxs(
|
|
4082
4097
|
"div",
|
|
@@ -4091,10 +4106,10 @@ const Pn = ({
|
|
|
4091
4106
|
"--smp-chips-backgroundColor-base": a
|
|
4092
4107
|
},
|
|
4093
4108
|
children: [
|
|
4094
|
-
i && /* @__PURE__ */ m.jsx(
|
|
4109
|
+
i && /* @__PURE__ */ m.jsx(ce, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4095
4110
|
/* @__PURE__ */ m.jsx(_e, { variant: "label", bindValue: w, color: s }),
|
|
4096
4111
|
e && /* @__PURE__ */ m.jsx(
|
|
4097
|
-
|
|
4112
|
+
ce,
|
|
4098
4113
|
{
|
|
4099
4114
|
icon: "close",
|
|
4100
4115
|
isInteractable: !0,
|
|
@@ -4106,7 +4121,7 @@ const Pn = ({
|
|
|
4106
4121
|
},
|
|
4107
4122
|
`chip-${d}`
|
|
4108
4123
|
), E = i && d < n.length - 1 ? /* @__PURE__ */ m.jsx(
|
|
4109
|
-
|
|
4124
|
+
ce,
|
|
4110
4125
|
{
|
|
4111
4126
|
icon: "chevron-right",
|
|
4112
4127
|
color: s
|
|
@@ -4117,7 +4132,7 @@ const Pn = ({
|
|
|
4117
4132
|
}) });
|
|
4118
4133
|
};
|
|
4119
4134
|
function Pt(n, e) {
|
|
4120
|
-
const t =
|
|
4135
|
+
const t = ue(null);
|
|
4121
4136
|
ne(() => {
|
|
4122
4137
|
if (!n) return;
|
|
4123
4138
|
const r = typeof e == "object" && e !== null && "current" in e ? e.current : null;
|
|
@@ -4167,37 +4182,37 @@ const ps = ({
|
|
|
4167
4182
|
multiActiveIndex: c,
|
|
4168
4183
|
...f
|
|
4169
4184
|
}) => {
|
|
4170
|
-
const u =
|
|
4185
|
+
const u = ue(null), [p, y] = G(!1), [d, w] = G(t), [S, E] = G(-1), [b, C] = G([n]), x = Se(), { anchorRef: g, targetRef: L, anchorWidth: j } = dt({
|
|
4171
4186
|
position: "bottom",
|
|
4172
4187
|
enabled: p
|
|
4173
|
-
}), O =
|
|
4174
|
-
|
|
4188
|
+
}), O = fe(() => {
|
|
4189
|
+
y(!1), u?.current?.focus();
|
|
4175
4190
|
}, []);
|
|
4176
|
-
ht([
|
|
4177
|
-
const
|
|
4178
|
-
e?.(
|
|
4179
|
-
const N = d.findIndex((
|
|
4180
|
-
E(N), C([
|
|
4181
|
-
}, R = (
|
|
4182
|
-
|
|
4183
|
-
}, D = (
|
|
4184
|
-
(
|
|
4191
|
+
ht([L, g], p, () => O()), Pt(p, L);
|
|
4192
|
+
const k = (P) => {
|
|
4193
|
+
e?.(P.id, P.label);
|
|
4194
|
+
const N = d.findIndex((H) => H.id === P.id);
|
|
4195
|
+
E(N), C([P.id]), O();
|
|
4196
|
+
}, R = (P) => {
|
|
4197
|
+
P.key === "Escape" && (O(), E(-1));
|
|
4198
|
+
}, D = (P) => {
|
|
4199
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), T());
|
|
4185
4200
|
}, T = () => {
|
|
4186
|
-
s && (o && l ? p ?
|
|
4187
|
-
w(
|
|
4188
|
-
}) :
|
|
4201
|
+
s && (o && l ? p ? y(!1) : l(o, void 0).then((P) => {
|
|
4202
|
+
w(P), E(P.length > 0 ? 0 : -1), y(!0);
|
|
4203
|
+
}) : y((P) => !P));
|
|
4189
4204
|
};
|
|
4190
4205
|
return /* @__PURE__ */ m.jsxs(
|
|
4191
4206
|
"div",
|
|
4192
4207
|
{
|
|
4193
4208
|
role: "combobox",
|
|
4194
4209
|
"aria-expanded": p,
|
|
4195
|
-
"aria-controls":
|
|
4196
|
-
"aria-owns":
|
|
4210
|
+
"aria-controls": x,
|
|
4211
|
+
"aria-owns": x,
|
|
4197
4212
|
"data-component": "combobox",
|
|
4198
4213
|
children: [
|
|
4199
4214
|
/* @__PURE__ */ m.jsx(
|
|
4200
|
-
|
|
4215
|
+
It,
|
|
4201
4216
|
{
|
|
4202
4217
|
...f,
|
|
4203
4218
|
bindValue: n,
|
|
@@ -4209,7 +4224,7 @@ const ps = ({
|
|
|
4209
4224
|
shapeIcon: "arrow_drop_down",
|
|
4210
4225
|
rotatedShapeIcon: p,
|
|
4211
4226
|
isEditable: s,
|
|
4212
|
-
ref:
|
|
4227
|
+
ref: g,
|
|
4213
4228
|
inputRef: u,
|
|
4214
4229
|
"aria-autocomplete": "list",
|
|
4215
4230
|
variant: "notSelectable"
|
|
@@ -4218,15 +4233,15 @@ const ps = ({
|
|
|
4218
4233
|
p && /* @__PURE__ */ m.jsx(pt, { children: /* @__PURE__ */ m.jsx(
|
|
4219
4234
|
Ln,
|
|
4220
4235
|
{
|
|
4221
|
-
id:
|
|
4236
|
+
id: x,
|
|
4222
4237
|
options: d,
|
|
4223
4238
|
displayMode: i,
|
|
4224
|
-
ref:
|
|
4239
|
+
ref: L,
|
|
4225
4240
|
isOpen: p,
|
|
4226
4241
|
selectedIndex: S,
|
|
4227
4242
|
activeIndex: c || b,
|
|
4228
|
-
width:
|
|
4229
|
-
onClick:
|
|
4243
|
+
width: j,
|
|
4244
|
+
onClick: k,
|
|
4230
4245
|
onKeyDown: R
|
|
4231
4246
|
}
|
|
4232
4247
|
) })
|
|
@@ -4251,11 +4266,11 @@ function ms({
|
|
|
4251
4266
|
n || i() || /* @__PURE__ */ new Date()
|
|
4252
4267
|
), [f, u] = G(
|
|
4253
4268
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4254
|
-
), [p,
|
|
4269
|
+
), [p, y] = G(
|
|
4255
4270
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4256
4271
|
), [d, w] = G(
|
|
4257
4272
|
l ? l.getDate() : null
|
|
4258
|
-
), S =
|
|
4273
|
+
), S = ue(null), E = ue([]), b = [
|
|
4259
4274
|
a(he.JANUARY),
|
|
4260
4275
|
a(he.FEBRUARY),
|
|
4261
4276
|
a(he.MARCH),
|
|
@@ -4297,37 +4312,37 @@ function ms({
|
|
|
4297
4312
|
value: a(de.SATURDAY_SHORT),
|
|
4298
4313
|
full: a(de.SATURDAY)
|
|
4299
4314
|
}
|
|
4300
|
-
],
|
|
4301
|
-
const
|
|
4302
|
-
return
|
|
4303
|
-
}),
|
|
4304
|
-
|
|
4305
|
-
},
|
|
4306
|
-
f === 0 ? (u(11),
|
|
4307
|
-
},
|
|
4308
|
-
f === 11 ? (u(0),
|
|
4309
|
-
}, O = (F, h) => new Date(F, h + 1, 0).getDate(),
|
|
4315
|
+
], x = (F) => t.some((h) => {
|
|
4316
|
+
const v = h.start.getTime(), $ = h.end.getTime(), I = F.getTime();
|
|
4317
|
+
return I >= v && I <= $;
|
|
4318
|
+
}), g = (F) => {
|
|
4319
|
+
x(F) || (c(F), w(F.getDate()), e && e(Er(F)));
|
|
4320
|
+
}, L = () => {
|
|
4321
|
+
f === 0 ? (u(11), y(p - 1)) : u(f - 1), w(1);
|
|
4322
|
+
}, j = () => {
|
|
4323
|
+
f === 11 ? (u(0), y(p + 1)) : u(f + 1), w(1);
|
|
4324
|
+
}, O = (F, h) => new Date(F, h + 1, 0).getDate(), k = (F, h) => new Date(F, h, 1).getDay(), R = (F) => {
|
|
4310
4325
|
const h = N.findIndex(
|
|
4311
|
-
(
|
|
4326
|
+
(v) => v !== null && v.getDate() === F
|
|
4312
4327
|
);
|
|
4313
4328
|
h !== -1 && E.current[h] && (E.current[h]?.focus(), w(F));
|
|
4314
4329
|
}, D = (F, h) => {
|
|
4315
|
-
const
|
|
4316
|
-
if (!
|
|
4317
|
-
const $ = O(p, f),
|
|
4330
|
+
const v = N[h];
|
|
4331
|
+
if (!v) return;
|
|
4332
|
+
const $ = O(p, f), I = v.getDate();
|
|
4318
4333
|
switch (F.key) {
|
|
4319
4334
|
case "ArrowRight":
|
|
4320
4335
|
F.preventDefault();
|
|
4321
4336
|
{
|
|
4322
|
-
let
|
|
4323
|
-
if (
|
|
4324
|
-
const
|
|
4325
|
-
|
|
4337
|
+
let _ = I + 1, A = new Date(p, f, _);
|
|
4338
|
+
if (_ > $) {
|
|
4339
|
+
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4340
|
+
_ = 1, A = new Date(V, U, _), j(), setTimeout(() => {
|
|
4326
4341
|
T(1, "forward");
|
|
4327
4342
|
}, 0);
|
|
4328
4343
|
return;
|
|
4329
4344
|
}
|
|
4330
|
-
|
|
4345
|
+
x(A) ? T(_, "forward") : R(_);
|
|
4331
4346
|
}
|
|
4332
4347
|
break;
|
|
4333
4348
|
case "Tab":
|
|
@@ -4335,43 +4350,43 @@ function ms({
|
|
|
4335
4350
|
case "ArrowLeft":
|
|
4336
4351
|
F.preventDefault();
|
|
4337
4352
|
{
|
|
4338
|
-
let
|
|
4339
|
-
if (
|
|
4340
|
-
const
|
|
4341
|
-
|
|
4342
|
-
T(
|
|
4353
|
+
let _ = I - 1, A = new Date(p, f, _);
|
|
4354
|
+
if (_ < 1) {
|
|
4355
|
+
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1, W = O(V, U);
|
|
4356
|
+
_ = W, A = new Date(V, U, _), L(), setTimeout(() => {
|
|
4357
|
+
T(W, "backward");
|
|
4343
4358
|
}, 0);
|
|
4344
4359
|
return;
|
|
4345
4360
|
}
|
|
4346
|
-
|
|
4361
|
+
x(A) ? T(_, "backward") : R(_);
|
|
4347
4362
|
}
|
|
4348
4363
|
break;
|
|
4349
4364
|
case "ArrowUp":
|
|
4350
4365
|
F.preventDefault();
|
|
4351
4366
|
{
|
|
4352
|
-
let
|
|
4353
|
-
if (
|
|
4354
|
-
const
|
|
4355
|
-
|
|
4356
|
-
T(
|
|
4367
|
+
let _ = I - 7, A = new Date(p, f, _);
|
|
4368
|
+
if (_ < 1) {
|
|
4369
|
+
const V = f === 0 ? p - 1 : p, U = f === 0 ? 11 : f - 1;
|
|
4370
|
+
_ = O(V, U) + _, A = new Date(V, U, _), L(), setTimeout(() => {
|
|
4371
|
+
T(_, "backward");
|
|
4357
4372
|
}, 0);
|
|
4358
4373
|
return;
|
|
4359
4374
|
}
|
|
4360
|
-
|
|
4375
|
+
x(A) ? T(_, "backward") : R(_);
|
|
4361
4376
|
}
|
|
4362
4377
|
break;
|
|
4363
4378
|
case "ArrowDown":
|
|
4364
4379
|
F.preventDefault();
|
|
4365
4380
|
{
|
|
4366
|
-
let
|
|
4367
|
-
if (
|
|
4368
|
-
const
|
|
4369
|
-
|
|
4370
|
-
T(
|
|
4381
|
+
let _ = I + 7, A = new Date(p, f, _);
|
|
4382
|
+
if (_ > $) {
|
|
4383
|
+
const V = f === 11 ? p + 1 : p, U = f === 11 ? 0 : f + 1;
|
|
4384
|
+
_ = _ - $, A = new Date(V, U, _), j(), setTimeout(() => {
|
|
4385
|
+
T(_, "forward");
|
|
4371
4386
|
}, 0);
|
|
4372
4387
|
return;
|
|
4373
4388
|
}
|
|
4374
|
-
|
|
4389
|
+
x(A) ? T(_, "forward") : R(_);
|
|
4375
4390
|
}
|
|
4376
4391
|
break;
|
|
4377
4392
|
case "Home":
|
|
@@ -4381,74 +4396,74 @@ function ms({
|
|
|
4381
4396
|
F.preventDefault(), T($, "backward");
|
|
4382
4397
|
break;
|
|
4383
4398
|
case "PageUp":
|
|
4384
|
-
F.preventDefault(),
|
|
4385
|
-
const
|
|
4399
|
+
F.preventDefault(), L(), setTimeout(() => {
|
|
4400
|
+
const _ = O(
|
|
4386
4401
|
f === 0 ? p - 1 : p,
|
|
4387
4402
|
f === 0 ? 11 : f - 1
|
|
4388
|
-
),
|
|
4389
|
-
T(
|
|
4403
|
+
), A = Math.min(I, _);
|
|
4404
|
+
T(A, "forward");
|
|
4390
4405
|
}, 0);
|
|
4391
4406
|
break;
|
|
4392
4407
|
case "PageDown":
|
|
4393
|
-
F.preventDefault(),
|
|
4394
|
-
const
|
|
4408
|
+
F.preventDefault(), j(), setTimeout(() => {
|
|
4409
|
+
const _ = O(
|
|
4395
4410
|
f === 11 ? p + 1 : p,
|
|
4396
4411
|
f === 11 ? 0 : f + 1
|
|
4397
|
-
),
|
|
4398
|
-
T(
|
|
4412
|
+
), A = Math.min(I, _);
|
|
4413
|
+
T(A, "forward");
|
|
4399
4414
|
}, 0);
|
|
4400
4415
|
break;
|
|
4401
4416
|
case " ":
|
|
4402
4417
|
case "Space":
|
|
4403
|
-
if (v
|
|
4404
|
-
w(
|
|
4418
|
+
if (x(v)) return;
|
|
4419
|
+
w(v.getDate()), c(v);
|
|
4405
4420
|
break;
|
|
4406
4421
|
case "Enter":
|
|
4407
|
-
F.preventDefault(),
|
|
4422
|
+
F.preventDefault(), g(v);
|
|
4408
4423
|
break;
|
|
4409
4424
|
}
|
|
4410
4425
|
}, T = (F, h) => {
|
|
4411
|
-
const
|
|
4426
|
+
const v = O(p, f);
|
|
4412
4427
|
if (h === "forward") {
|
|
4413
|
-
for (let $ = F; $ <=
|
|
4414
|
-
const
|
|
4415
|
-
if (!
|
|
4428
|
+
for (let $ = F; $ <= v; $++) {
|
|
4429
|
+
const I = new Date(p, f, $);
|
|
4430
|
+
if (!x(I)) {
|
|
4416
4431
|
R($);
|
|
4417
4432
|
return;
|
|
4418
4433
|
}
|
|
4419
4434
|
}
|
|
4420
|
-
|
|
4435
|
+
j(), setTimeout(() => {
|
|
4421
4436
|
T(1, "forward");
|
|
4422
4437
|
}, 0);
|
|
4423
4438
|
} else {
|
|
4424
|
-
for (let
|
|
4425
|
-
const
|
|
4426
|
-
if (!
|
|
4427
|
-
R(
|
|
4439
|
+
for (let A = F; A >= 1; A--) {
|
|
4440
|
+
const V = new Date(p, f, A);
|
|
4441
|
+
if (!x(V)) {
|
|
4442
|
+
R(A);
|
|
4428
4443
|
return;
|
|
4429
4444
|
}
|
|
4430
4445
|
}
|
|
4431
|
-
const $ = f === 0 ? p - 1 : p,
|
|
4432
|
-
|
|
4433
|
-
T(
|
|
4446
|
+
const $ = f === 0 ? p - 1 : p, I = f === 0 ? 11 : f - 1, _ = O($, I);
|
|
4447
|
+
L(), setTimeout(() => {
|
|
4448
|
+
T(_, "backward");
|
|
4434
4449
|
}, 0);
|
|
4435
4450
|
}
|
|
4436
4451
|
}, N = (() => {
|
|
4437
|
-
const F = O(p, f), h =
|
|
4452
|
+
const F = O(p, f), h = k(p, f), v = [];
|
|
4438
4453
|
for (let $ = 0; $ < h; $++)
|
|
4439
|
-
|
|
4454
|
+
v.push(null);
|
|
4440
4455
|
for (let $ = 1; $ <= F; $++) {
|
|
4441
|
-
const
|
|
4442
|
-
|
|
4456
|
+
const I = new Date(p, f, $);
|
|
4457
|
+
v.push(I);
|
|
4443
4458
|
}
|
|
4444
|
-
return
|
|
4445
|
-
})(),
|
|
4446
|
-
let
|
|
4459
|
+
return v;
|
|
4460
|
+
})(), H = [];
|
|
4461
|
+
let B = [];
|
|
4447
4462
|
N.forEach((F, h) => {
|
|
4448
|
-
if (
|
|
4449
|
-
for (;
|
|
4450
|
-
|
|
4451
|
-
|
|
4463
|
+
if (B.push(F), B.length === 7 || h === N.length - 1) {
|
|
4464
|
+
for (; B.length < 7; )
|
|
4465
|
+
B.push(null);
|
|
4466
|
+
H.push(B), B = [];
|
|
4452
4467
|
}
|
|
4453
4468
|
}), ne(() => {
|
|
4454
4469
|
if (d !== null) {
|
|
@@ -4464,12 +4479,12 @@ function ms({
|
|
|
4464
4479
|
calendar: "smp-datepickercalendar",
|
|
4465
4480
|
table: "smp-datepickercalendar-table",
|
|
4466
4481
|
th: "smp-datepickercalendar-th",
|
|
4467
|
-
td: (F, h,
|
|
4482
|
+
td: (F, h, v, $) => `smp-datepickercalendar-td
|
|
4468
4483
|
${F ? "smp-datepickercalendar-td-today" : ""}
|
|
4469
4484
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4470
|
-
${
|
|
4485
|
+
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4471
4486
|
${$ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4472
|
-
},
|
|
4487
|
+
}, Z = () => `${b[f]} ${p.toString()}`;
|
|
4473
4488
|
return /* @__PURE__ */ m.jsxs(
|
|
4474
4489
|
"div",
|
|
4475
4490
|
{
|
|
@@ -4491,9 +4506,9 @@ function ms({
|
|
|
4491
4506
|
},
|
|
4492
4507
|
children: [
|
|
4493
4508
|
/* @__PURE__ */ m.jsx(
|
|
4494
|
-
|
|
4509
|
+
xe,
|
|
4495
4510
|
{
|
|
4496
|
-
onClick:
|
|
4511
|
+
onClick: L,
|
|
4497
4512
|
ariaLabel: a(Dt.PREVIOUS_MONTH),
|
|
4498
4513
|
optionalDisplayValue: "<",
|
|
4499
4514
|
appearance: "ghost",
|
|
@@ -4504,15 +4519,15 @@ function ms({
|
|
|
4504
4519
|
/* @__PURE__ */ m.jsx(
|
|
4505
4520
|
"div",
|
|
4506
4521
|
{
|
|
4507
|
-
"aria-label":
|
|
4522
|
+
"aria-label": Z(),
|
|
4508
4523
|
className: z.label,
|
|
4509
|
-
children:
|
|
4524
|
+
children: Z()
|
|
4510
4525
|
}
|
|
4511
4526
|
),
|
|
4512
4527
|
/* @__PURE__ */ m.jsx(
|
|
4513
|
-
|
|
4528
|
+
xe,
|
|
4514
4529
|
{
|
|
4515
|
-
onClick:
|
|
4530
|
+
onClick: j,
|
|
4516
4531
|
ariaLabel: a(Dt.NEXT_MONTH),
|
|
4517
4532
|
bindValue: ">",
|
|
4518
4533
|
optionalDisplayValue: ">",
|
|
@@ -4541,9 +4556,9 @@ function ms({
|
|
|
4541
4556
|
},
|
|
4542
4557
|
F.value
|
|
4543
4558
|
)) }) }),
|
|
4544
|
-
/* @__PURE__ */ m.jsx("tbody", { children:
|
|
4545
|
-
const
|
|
4546
|
-
if (
|
|
4559
|
+
/* @__PURE__ */ m.jsx("tbody", { children: H.map((F, h) => /* @__PURE__ */ m.jsx("tr", { children: F.map((v, $) => {
|
|
4560
|
+
const I = h * 7 + $;
|
|
4561
|
+
if (v === null)
|
|
4547
4562
|
return /* @__PURE__ */ m.jsx(
|
|
4548
4563
|
"td",
|
|
4549
4564
|
{
|
|
@@ -4556,28 +4571,28 @@ function ms({
|
|
|
4556
4571
|
},
|
|
4557
4572
|
`empty-${$}`
|
|
4558
4573
|
);
|
|
4559
|
-
const
|
|
4574
|
+
const _ = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), A = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), V = d === v.getDate(), U = x(v);
|
|
4560
4575
|
return /* @__PURE__ */ m.jsx(
|
|
4561
4576
|
"td",
|
|
4562
4577
|
{
|
|
4563
4578
|
role: "gridcell",
|
|
4564
|
-
"aria-selected":
|
|
4565
|
-
tabIndex:
|
|
4566
|
-
onClick: () =>
|
|
4567
|
-
onKeyDown: (
|
|
4568
|
-
"aria-label": `${
|
|
4569
|
-
"data-selected":
|
|
4570
|
-
"aria-disabled":
|
|
4571
|
-
ref: (
|
|
4572
|
-
E.current[
|
|
4579
|
+
"aria-selected": A,
|
|
4580
|
+
tabIndex: V ? 0 : -1,
|
|
4581
|
+
onClick: () => g(v),
|
|
4582
|
+
onKeyDown: (W) => D(W, I),
|
|
4583
|
+
"aria-label": `${v.getDate()} ${b[v.getMonth()]} ${v.getFullYear()}`,
|
|
4584
|
+
"data-selected": A,
|
|
4585
|
+
"aria-disabled": U,
|
|
4586
|
+
ref: (W) => {
|
|
4587
|
+
E.current[I] = W;
|
|
4573
4588
|
},
|
|
4574
4589
|
className: z.td(
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4590
|
+
_,
|
|
4591
|
+
A,
|
|
4592
|
+
V,
|
|
4593
|
+
U
|
|
4579
4594
|
),
|
|
4580
|
-
children:
|
|
4595
|
+
children: v.getDate()
|
|
4581
4596
|
},
|
|
4582
4597
|
`day-${$}`
|
|
4583
4598
|
);
|
|
@@ -4597,44 +4612,44 @@ const gs = ({
|
|
|
4597
4612
|
isEditable: s = !0,
|
|
4598
4613
|
...a
|
|
4599
4614
|
}) => {
|
|
4600
|
-
const i =
|
|
4615
|
+
const i = ue(null), [o, l] = G(!1), [c, f] = G(n || ""), [u, p] = G(""), { anchorRef: y, targetRef: d } = dt({
|
|
4601
4616
|
position: "bottom",
|
|
4602
4617
|
enabled: o
|
|
4603
|
-
}), w =
|
|
4618
|
+
}), w = fe(() => {
|
|
4604
4619
|
l(!1), i?.current?.focus();
|
|
4605
4620
|
}, []);
|
|
4606
|
-
ht([d,
|
|
4621
|
+
ht([d, y], o, () => {
|
|
4607
4622
|
w();
|
|
4608
4623
|
}), Pt(o, d);
|
|
4609
|
-
const { format: S, getCurrentLanguage: E } = $e(), b =
|
|
4610
|
-
(
|
|
4611
|
-
const R =
|
|
4624
|
+
const { format: S, getCurrentLanguage: E } = $e(), b = fe(
|
|
4625
|
+
(k) => {
|
|
4626
|
+
const R = k.length > 5 && xr(k, E()) || k, D = S(R, void 0, void 0, {
|
|
4612
4627
|
type: "date"
|
|
4613
|
-
}), T = typeof R != "string",
|
|
4628
|
+
}), T = typeof R != "string", P = T && R.toISOString().substring(0, 10) || "";
|
|
4614
4629
|
return {
|
|
4615
4630
|
isValid: T,
|
|
4616
4631
|
formattedDate: D,
|
|
4617
|
-
isoDate:
|
|
4632
|
+
isoDate: P,
|
|
4618
4633
|
normalizedDate: R
|
|
4619
4634
|
};
|
|
4620
4635
|
},
|
|
4621
4636
|
[E, S]
|
|
4622
4637
|
);
|
|
4623
4638
|
ne(() => {
|
|
4624
|
-
const { formattedDate:
|
|
4625
|
-
f(D && R || n), p(D &&
|
|
4639
|
+
const { formattedDate: k, isoDate: R, isValid: D } = b(n);
|
|
4640
|
+
f(D && R || n), p(D && k || n);
|
|
4626
4641
|
}, [n, S, b]);
|
|
4627
|
-
const C = () => l((
|
|
4628
|
-
|
|
4629
|
-
},
|
|
4630
|
-
k
|
|
4631
|
-
},
|
|
4632
|
-
const { isoDate: R, isValid: D } = b(
|
|
4633
|
-
t && t(D && R ||
|
|
4634
|
-
},
|
|
4635
|
-
p(
|
|
4636
|
-
}, O = (
|
|
4637
|
-
|
|
4642
|
+
const C = () => l((k) => !k), x = () => {
|
|
4643
|
+
L(u);
|
|
4644
|
+
}, g = (k) => {
|
|
4645
|
+
L(k), w();
|
|
4646
|
+
}, L = (k) => {
|
|
4647
|
+
const { isoDate: R, isValid: D } = b(k);
|
|
4648
|
+
t && t(D && R || k);
|
|
4649
|
+
}, j = (k) => {
|
|
4650
|
+
p(k);
|
|
4651
|
+
}, O = (k) => {
|
|
4652
|
+
k.key === "Enter" && (k.preventDefault(), L(u));
|
|
4638
4653
|
};
|
|
4639
4654
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "date-picker", children: [
|
|
4640
4655
|
/* @__PURE__ */ m.jsx(
|
|
@@ -4643,12 +4658,12 @@ const gs = ({
|
|
|
4643
4658
|
...a,
|
|
4644
4659
|
bindValue: u,
|
|
4645
4660
|
placeholder: e,
|
|
4646
|
-
onBlur:
|
|
4647
|
-
onChange:
|
|
4661
|
+
onBlur: x,
|
|
4662
|
+
onChange: j,
|
|
4648
4663
|
onKeyDown: O,
|
|
4649
4664
|
shapeIcon: "calendar",
|
|
4650
4665
|
onShapeIconClick: C,
|
|
4651
|
-
ref:
|
|
4666
|
+
ref: y,
|
|
4652
4667
|
inputRef: i,
|
|
4653
4668
|
isEditable: s,
|
|
4654
4669
|
size: 10,
|
|
@@ -4659,7 +4674,7 @@ const gs = ({
|
|
|
4659
4674
|
ms,
|
|
4660
4675
|
{
|
|
4661
4676
|
disabledDateRanges: r,
|
|
4662
|
-
onDateChange:
|
|
4677
|
+
onDateChange: g,
|
|
4663
4678
|
initialValue: Lt(c) && c || "",
|
|
4664
4679
|
targetRef: d
|
|
4665
4680
|
}
|
|
@@ -4679,17 +4694,17 @@ const gs = ({
|
|
|
4679
4694
|
onOptionsRequest: f,
|
|
4680
4695
|
onChange: u,
|
|
4681
4696
|
onBlur: p,
|
|
4682
|
-
...
|
|
4697
|
+
...y
|
|
4683
4698
|
}) => {
|
|
4684
4699
|
const d = n.map((E) => E.bindValue), w = (E, b) => {
|
|
4685
4700
|
const C = [...n];
|
|
4686
4701
|
if (E == "")
|
|
4687
4702
|
C.pop();
|
|
4688
4703
|
else {
|
|
4689
|
-
const
|
|
4690
|
-
(
|
|
4704
|
+
const x = C.findIndex(
|
|
4705
|
+
(g) => g.bindValue === E && g.optionalDisplayValue === b
|
|
4691
4706
|
);
|
|
4692
|
-
|
|
4707
|
+
x >= 0 ? C.splice(x, 1) : C.push({
|
|
4693
4708
|
bindValue: E,
|
|
4694
4709
|
optionalDisplayValue: b
|
|
4695
4710
|
});
|
|
@@ -4706,7 +4721,7 @@ const gs = ({
|
|
|
4706
4721
|
children: [
|
|
4707
4722
|
i && /* @__PURE__ */ m.jsx(Ee, { label: i, disabled: o }),
|
|
4708
4723
|
/* @__PURE__ */ m.jsx(
|
|
4709
|
-
|
|
4724
|
+
At,
|
|
4710
4725
|
{
|
|
4711
4726
|
elements: n,
|
|
4712
4727
|
displayMode: e,
|
|
@@ -4719,7 +4734,7 @@ const gs = ({
|
|
|
4719
4734
|
/* @__PURE__ */ m.jsx(
|
|
4720
4735
|
Pn,
|
|
4721
4736
|
{
|
|
4722
|
-
...
|
|
4737
|
+
...y,
|
|
4723
4738
|
bindValue: "",
|
|
4724
4739
|
fun: l,
|
|
4725
4740
|
isEditable: s,
|
|
@@ -4865,55 +4880,55 @@ const Ne = (n, e, t) => ({
|
|
|
4865
4880
|
onEnter: o,
|
|
4866
4881
|
...l
|
|
4867
4882
|
}) => {
|
|
4868
|
-
const { getCurrentLanguage: c } = $e(), f =
|
|
4883
|
+
const { getCurrentLanguage: c } = $e(), f = ue(null), u = c(), { groupingChar: p, decimalChar: y } = Vn(
|
|
4869
4884
|
() => ns(u, s),
|
|
4870
4885
|
[u, s]
|
|
4871
|
-
), d =
|
|
4872
|
-
(T,
|
|
4873
|
-
minimumFractionDigits:
|
|
4874
|
-
maximumFractionDigits:
|
|
4886
|
+
), d = fe(
|
|
4887
|
+
(T, P) => new Intl.NumberFormat(u, {
|
|
4888
|
+
minimumFractionDigits: P,
|
|
4889
|
+
maximumFractionDigits: P,
|
|
4875
4890
|
useGrouping: !0
|
|
4876
4891
|
}).format(T),
|
|
4877
4892
|
[u]
|
|
4878
|
-
), w =
|
|
4893
|
+
), w = fe(as, [p, y]), S = fe(ts, [n, e]), E = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [b, C] = G(E), [x, g] = G(
|
|
4879
4894
|
a != null ? d(a, b) : ""
|
|
4880
|
-
),
|
|
4895
|
+
), L = ue(a ?? null);
|
|
4881
4896
|
ne(() => {
|
|
4882
4897
|
if (a == null) {
|
|
4883
|
-
|
|
4898
|
+
g(""), L.current = null;
|
|
4884
4899
|
return;
|
|
4885
4900
|
}
|
|
4886
|
-
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0,
|
|
4887
|
-
|
|
4901
|
+
const T = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = T === 0 ? b : T;
|
|
4902
|
+
P !== b && C(P), g(d(a, P)), L.current = a;
|
|
4888
4903
|
}, [a, d]);
|
|
4889
|
-
const
|
|
4890
|
-
(T,
|
|
4904
|
+
const j = fe(
|
|
4905
|
+
(T, P = !1) => {
|
|
4891
4906
|
if (T.trim() === "") {
|
|
4892
|
-
|
|
4907
|
+
g(""), L.current = null, i?.(void 0, ""), P && o?.(void 0);
|
|
4893
4908
|
return;
|
|
4894
4909
|
}
|
|
4895
|
-
const N = w(T, p,
|
|
4910
|
+
const N = w(T, p, y);
|
|
4896
4911
|
if (isNaN(N))
|
|
4897
|
-
if (
|
|
4898
|
-
const
|
|
4899
|
-
|
|
4912
|
+
if (L.current != null) {
|
|
4913
|
+
const H = d(L.current, b);
|
|
4914
|
+
g(H);
|
|
4900
4915
|
} else
|
|
4901
|
-
|
|
4916
|
+
g("");
|
|
4902
4917
|
else {
|
|
4903
|
-
const
|
|
4918
|
+
const H = S(N, n, e), B = ss(
|
|
4904
4919
|
T,
|
|
4905
4920
|
p,
|
|
4906
|
-
|
|
4921
|
+
y
|
|
4907
4922
|
);
|
|
4908
|
-
C(
|
|
4909
|
-
const z = d(
|
|
4910
|
-
|
|
4923
|
+
C(B);
|
|
4924
|
+
const z = d(H, B);
|
|
4925
|
+
g(z), L.current = H, i?.(H, z), P && o?.(H);
|
|
4911
4926
|
}
|
|
4912
4927
|
},
|
|
4913
4928
|
[
|
|
4914
4929
|
w,
|
|
4915
4930
|
p,
|
|
4916
|
-
|
|
4931
|
+
y,
|
|
4917
4932
|
S,
|
|
4918
4933
|
n,
|
|
4919
4934
|
e,
|
|
@@ -4922,21 +4937,21 @@ const Ne = (n, e, t) => ({
|
|
|
4922
4937
|
o,
|
|
4923
4938
|
b
|
|
4924
4939
|
]
|
|
4925
|
-
), O = (T) =>
|
|
4940
|
+
), O = (T) => g(T), k = () => j(x), R = (T) => {
|
|
4926
4941
|
if (T.key === "Enter") {
|
|
4927
|
-
T.preventDefault(),
|
|
4942
|
+
T.preventDefault(), j(x, !0);
|
|
4928
4943
|
return;
|
|
4929
4944
|
}
|
|
4930
4945
|
if (T.key === "ArrowUp" || T.key === "ArrowDown") {
|
|
4931
4946
|
T.preventDefault();
|
|
4932
|
-
const
|
|
4933
|
-
|
|
4947
|
+
const P = T.key === "ArrowUp" ? 1 : -1, N = L.current ?? 0, H = S(N + P * t, n, e);
|
|
4948
|
+
j(d(H, b));
|
|
4934
4949
|
}
|
|
4935
4950
|
}, D = (T) => {
|
|
4936
4951
|
if (!T.currentTarget.contains(document.activeElement)) return;
|
|
4937
4952
|
T.preventDefault();
|
|
4938
|
-
const
|
|
4939
|
-
|
|
4953
|
+
const P = T.deltaY < 0 ? 1 : -1, N = L.current ?? 0, H = S(N + P * t, n, e);
|
|
4954
|
+
j(d(H, b));
|
|
4940
4955
|
};
|
|
4941
4956
|
return /* @__PURE__ */ m.jsx("div", { ref: f, "data-component": "input-number", onWheel: D, children: /* @__PURE__ */ m.jsx(
|
|
4942
4957
|
je,
|
|
@@ -4944,15 +4959,15 @@ const Ne = (n, e, t) => ({
|
|
|
4944
4959
|
...l,
|
|
4945
4960
|
"aria-valuemin": n,
|
|
4946
4961
|
"aria-valuemax": e,
|
|
4947
|
-
"aria-valuenow":
|
|
4948
|
-
bindValue:
|
|
4962
|
+
"aria-valuenow": L.current ?? void 0,
|
|
4963
|
+
bindValue: x,
|
|
4949
4964
|
inputType: "text",
|
|
4950
4965
|
inputMode: r,
|
|
4951
4966
|
min: n,
|
|
4952
4967
|
max: e,
|
|
4953
4968
|
step: t,
|
|
4954
4969
|
onChange: O,
|
|
4955
|
-
onBlur:
|
|
4970
|
+
onBlur: k,
|
|
4956
4971
|
onKeyDown: R
|
|
4957
4972
|
}
|
|
4958
4973
|
) });
|
|
@@ -5014,16 +5029,16 @@ const Cs = ({
|
|
|
5014
5029
|
error: f,
|
|
5015
5030
|
onBlur: u,
|
|
5016
5031
|
onKeyDown: p,
|
|
5017
|
-
rows:
|
|
5032
|
+
rows: y = 10,
|
|
5018
5033
|
cols: d = 35
|
|
5019
5034
|
}) => {
|
|
5020
|
-
const w =
|
|
5021
|
-
t?.(
|
|
5022
|
-
},
|
|
5035
|
+
const w = Se(), S = `${w}-helper`, E = f ? "danger" : s, b = c || !!f, C = (g) => {
|
|
5036
|
+
t?.(g.target.value);
|
|
5037
|
+
}, x = {
|
|
5023
5038
|
wrapper: "smp-textarea-wrapper",
|
|
5024
5039
|
container: `smp-textarea ${n ? "smp-textarea-disabled" : ""} ${r ? "smp-textarea-placeholder" : ""} ${E ? `smp-textarea-${E}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
5025
5040
|
};
|
|
5026
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
5041
|
+
return /* @__PURE__ */ m.jsxs("div", { className: x.wrapper, "data-component": "textarea", children: [
|
|
5027
5042
|
o && /* @__PURE__ */ m.jsx(Ee, { htmlFor: w, label: o, disabled: n }),
|
|
5028
5043
|
/* @__PURE__ */ m.jsx(
|
|
5029
5044
|
"textarea",
|
|
@@ -5033,14 +5048,14 @@ const Cs = ({
|
|
|
5033
5048
|
placeholder: r,
|
|
5034
5049
|
onChange: C,
|
|
5035
5050
|
onBlur: u,
|
|
5036
|
-
className:
|
|
5051
|
+
className: x.container,
|
|
5037
5052
|
disabled: n,
|
|
5038
5053
|
readOnly: !i,
|
|
5039
5054
|
onKeyDown: p,
|
|
5040
5055
|
"aria-label": o ? void 0 : l,
|
|
5041
5056
|
"aria-labelledby": o ? w : void 0,
|
|
5042
5057
|
"aria-describedby": b ? S : void 0,
|
|
5043
|
-
rows:
|
|
5058
|
+
rows: y,
|
|
5044
5059
|
cols: d
|
|
5045
5060
|
}
|
|
5046
5061
|
),
|
|
@@ -5056,7 +5071,7 @@ const Cs = ({
|
|
|
5056
5071
|
] });
|
|
5057
5072
|
};
|
|
5058
5073
|
var jt = /* @__PURE__ */ ((n) => (n.PAGE_DIRECTION = "pageDirection", n.LINE_DIRECTION = "lineDirection", n))(jt || {});
|
|
5059
|
-
const
|
|
5074
|
+
const Ae = {
|
|
5060
5075
|
"smp-radio": "_smp-radio_1fqe8_1",
|
|
5061
5076
|
"smp-radio-options-container": "_smp-radio-options-container_1fqe8_10",
|
|
5062
5077
|
"smp-radio-horizontal": "_smp-radio-horizontal_1fqe8_16",
|
|
@@ -5074,33 +5089,33 @@ const Ie = {
|
|
|
5074
5089
|
label: o,
|
|
5075
5090
|
...l
|
|
5076
5091
|
}) => {
|
|
5077
|
-
const [c, f] = G(s), u =
|
|
5092
|
+
const [c, f] = G(s), u = Se();
|
|
5078
5093
|
ne(() => {
|
|
5079
|
-
!c && a && i && a(i, void 0).then((
|
|
5080
|
-
console.error("Error during loading options (radio)",
|
|
5094
|
+
!c && a && i && a(i, void 0).then((g) => f(g)).catch((g) => {
|
|
5095
|
+
console.error("Error during loading options (radio)", g);
|
|
5081
5096
|
});
|
|
5082
5097
|
}, [c, a, i]);
|
|
5083
|
-
const p = parseInt(r ?? "", 10),
|
|
5084
|
-
container:
|
|
5085
|
-
optionsContainer: `${
|
|
5086
|
-
option: `${
|
|
5098
|
+
const p = parseInt(r ?? "", 10), y = t === jt.LINE_DIRECTION, d = y && !isNaN(p), w = d ? Ae["smp-radio-horizontal-grid"] : y ? Ae["smp-radio-horizontal"] : "", S = d ? { gridTemplateColumns: `repeat(${p}, 1fr)` } : void 0, E = {
|
|
5099
|
+
container: Ae["smp-radio"],
|
|
5100
|
+
optionsContainer: `${Ae["smp-radio-options-container"]} ${w}`,
|
|
5101
|
+
option: `${Ae["smp-radio-element"]} ${n ? Ae["smp-radio-disabled"] : ""}`
|
|
5087
5102
|
}, b = () => {
|
|
5088
5103
|
n || l.onBlur?.();
|
|
5089
|
-
}, C = (
|
|
5090
|
-
n || l.onChange?.(
|
|
5091
|
-
},
|
|
5104
|
+
}, C = (g) => {
|
|
5105
|
+
n || l.onChange?.(g.id, g.label);
|
|
5106
|
+
}, x = Se();
|
|
5092
5107
|
return /* @__PURE__ */ m.jsxs("div", { "smp-id": "radio-container", className: E.container, id: u, children: [
|
|
5093
5108
|
o && /* @__PURE__ */ m.jsx(Ee, { label: o, disabled: n, htmlFor: u }),
|
|
5094
|
-
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((
|
|
5109
|
+
/* @__PURE__ */ m.jsx("div", { className: E.optionsContainer, style: S, children: c?.map((g, L) => /* @__PURE__ */ m.jsxs("label", { className: E.option, children: [
|
|
5095
5110
|
/* @__PURE__ */ m.jsx(
|
|
5096
5111
|
"input",
|
|
5097
5112
|
{
|
|
5098
5113
|
type: "radio",
|
|
5099
|
-
name:
|
|
5100
|
-
value:
|
|
5114
|
+
name: x,
|
|
5115
|
+
value: g.id,
|
|
5101
5116
|
disabled: n,
|
|
5102
|
-
checked:
|
|
5103
|
-
onChange: () => C(
|
|
5117
|
+
checked: g.id === l.bindValue,
|
|
5118
|
+
onChange: () => C(g),
|
|
5104
5119
|
onBlur: b
|
|
5105
5120
|
}
|
|
5106
5121
|
),
|
|
@@ -5109,13 +5124,13 @@ const Ie = {
|
|
|
5109
5124
|
{
|
|
5110
5125
|
variant: "body",
|
|
5111
5126
|
bindValue: Re(
|
|
5112
|
-
|
|
5113
|
-
|
|
5127
|
+
g.id,
|
|
5128
|
+
g.label,
|
|
5114
5129
|
e
|
|
5115
5130
|
)
|
|
5116
5131
|
}
|
|
5117
5132
|
)
|
|
5118
|
-
] },
|
|
5133
|
+
] }, L)) })
|
|
5119
5134
|
] });
|
|
5120
5135
|
}, Os = ({
|
|
5121
5136
|
value: n,
|
|
@@ -5123,7 +5138,7 @@ const Ie = {
|
|
|
5123
5138
|
targetRef: t,
|
|
5124
5139
|
isOpen: r
|
|
5125
5140
|
}) => {
|
|
5126
|
-
const s =
|
|
5141
|
+
const s = ue(null);
|
|
5127
5142
|
ne(() => {
|
|
5128
5143
|
r && s?.current && s.current.focus();
|
|
5129
5144
|
}, [r, s]);
|
|
@@ -5185,44 +5200,44 @@ const Ie = {
|
|
|
5185
5200
|
isEditable: r = !0,
|
|
5186
5201
|
...s
|
|
5187
5202
|
}) => {
|
|
5188
|
-
const a =
|
|
5203
|
+
const a = ue(null), [i, o] = G(!1), [l, c] = G(n || ""), [f, u] = G(""), { anchorRef: p, targetRef: y } = dt({
|
|
5189
5204
|
position: "bottom",
|
|
5190
5205
|
enabled: i
|
|
5191
|
-
}), d =
|
|
5206
|
+
}), d = fe(() => {
|
|
5192
5207
|
o(!1), a?.current?.focus();
|
|
5193
5208
|
}, []);
|
|
5194
|
-
ht([
|
|
5195
|
-
const
|
|
5196
|
-
c(
|
|
5209
|
+
ht([y, p], i, () => o(!1)), Pt(i, y), ne(() => {
|
|
5210
|
+
const g = n || "", L = Cn(g) ? g : n || "";
|
|
5211
|
+
c(g), u(L);
|
|
5197
5212
|
}, [n]), ne(() => {
|
|
5198
|
-
const
|
|
5199
|
-
|
|
5213
|
+
const g = (L) => {
|
|
5214
|
+
L.key === "Escape" && o(!1);
|
|
5200
5215
|
};
|
|
5201
|
-
return i && document.addEventListener("keydown",
|
|
5202
|
-
document.removeEventListener("keydown",
|
|
5216
|
+
return i && document.addEventListener("keydown", g), () => {
|
|
5217
|
+
document.removeEventListener("keydown", g);
|
|
5203
5218
|
};
|
|
5204
5219
|
}, [i]);
|
|
5205
5220
|
const w = () => {
|
|
5206
|
-
r && o((
|
|
5207
|
-
}, S = (
|
|
5208
|
-
u(
|
|
5209
|
-
}, E = (
|
|
5210
|
-
const O = Rs(
|
|
5221
|
+
r && o((g) => !g);
|
|
5222
|
+
}, S = (g) => {
|
|
5223
|
+
u(g);
|
|
5224
|
+
}, E = (g, L, j) => {
|
|
5225
|
+
const O = Rs(g, L, j);
|
|
5211
5226
|
c(O), u(O), t?.(O), d();
|
|
5212
5227
|
}, b = () => {
|
|
5213
|
-
|
|
5214
|
-
}, C = (
|
|
5215
|
-
|
|
5216
|
-
},
|
|
5217
|
-
if (
|
|
5228
|
+
x(f);
|
|
5229
|
+
}, C = (g) => {
|
|
5230
|
+
g.key === "Enter" && (g.preventDefault(), x(f));
|
|
5231
|
+
}, x = (g) => {
|
|
5232
|
+
if (g.trim() === "") {
|
|
5218
5233
|
c(""), u(""), t?.("");
|
|
5219
5234
|
return;
|
|
5220
5235
|
}
|
|
5221
|
-
Cn(
|
|
5236
|
+
Cn(g) ? (c(g), u(g), t?.(g)) : u(g);
|
|
5222
5237
|
};
|
|
5223
5238
|
return /* @__PURE__ */ m.jsxs("div", { "data-component": "time-picker", children: [
|
|
5224
5239
|
/* @__PURE__ */ m.jsx(
|
|
5225
|
-
|
|
5240
|
+
It,
|
|
5226
5241
|
{
|
|
5227
5242
|
...s,
|
|
5228
5243
|
bindValue: f,
|
|
@@ -5242,7 +5257,7 @@ const Ie = {
|
|
|
5242
5257
|
{
|
|
5243
5258
|
value: _s(l),
|
|
5244
5259
|
onChange: E,
|
|
5245
|
-
targetRef:
|
|
5260
|
+
targetRef: y,
|
|
5246
5261
|
isOpen: i
|
|
5247
5262
|
}
|
|
5248
5263
|
) })
|
|
@@ -5300,7 +5315,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5300
5315
|
fun: o,
|
|
5301
5316
|
...l
|
|
5302
5317
|
}) => {
|
|
5303
|
-
const [c, f] = G(a), u =
|
|
5318
|
+
const [c, f] = G(a), u = Se(), p = (d) => {
|
|
5304
5319
|
e || l.onChange?.(d.id, d.label);
|
|
5305
5320
|
};
|
|
5306
5321
|
ne(() => {
|
|
@@ -5308,7 +5323,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5308
5323
|
console.error("Error during loading options (button group)", d);
|
|
5309
5324
|
});
|
|
5310
5325
|
}, [c, i, o]);
|
|
5311
|
-
const
|
|
5326
|
+
const y = {
|
|
5312
5327
|
container: `smp-button-group-container ${le(s) ? "smp-button-group-vertical" : ""}`,
|
|
5313
5328
|
optionsContainer: `smp-button-group-options-container ${le(s) ? "smp-button-group-vertical" : ""}`
|
|
5314
5329
|
};
|
|
@@ -5316,12 +5331,12 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5316
5331
|
"div",
|
|
5317
5332
|
{
|
|
5318
5333
|
"smp-id": "buttonGroup-container",
|
|
5319
|
-
className:
|
|
5334
|
+
className: y.container,
|
|
5320
5335
|
id: u,
|
|
5321
5336
|
children: [
|
|
5322
5337
|
t && /* @__PURE__ */ m.jsx(Ee, { label: t, disabled: e, htmlFor: u }),
|
|
5323
|
-
/* @__PURE__ */ m.jsx("div", { className:
|
|
5324
|
-
|
|
5338
|
+
/* @__PURE__ */ m.jsx("div", { className: y.optionsContainer, children: c?.map((d) => /* @__PURE__ */ m.jsx(
|
|
5339
|
+
xe,
|
|
5325
5340
|
{
|
|
5326
5341
|
appearance: "raised",
|
|
5327
5342
|
variant: "base",
|
|
@@ -5357,7 +5372,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5357
5372
|
onChange: f,
|
|
5358
5373
|
onClick: u,
|
|
5359
5374
|
onEnter: p,
|
|
5360
|
-
onBlur:
|
|
5375
|
+
onBlur: y,
|
|
5361
5376
|
onOptionsRequest: d,
|
|
5362
5377
|
onContextMenu: w,
|
|
5363
5378
|
isEditable: S,
|
|
@@ -5370,8 +5385,8 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5370
5385
|
icon: s,
|
|
5371
5386
|
fun: a,
|
|
5372
5387
|
data: r
|
|
5373
|
-
}, C = b.data && b.data.size && b.data.size >= 256 && (e === "ITX" || !e) ? "MEM" : e,
|
|
5374
|
-
onBlur:
|
|
5388
|
+
}, C = b.data && b.data.size && b.data.size >= 256 && (e === "ITX" || !e) ? "MEM" : e, x = {
|
|
5389
|
+
onBlur: y,
|
|
5375
5390
|
onOptionsRequest: d,
|
|
5376
5391
|
fun: a,
|
|
5377
5392
|
icon: s,
|
|
@@ -5381,123 +5396,136 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5381
5396
|
isEditable: S,
|
|
5382
5397
|
size: b.data && b.data.size ? b.data.size : b.data?.displayMode && Ss(b.data.displayMode || "CodeOnly"),
|
|
5383
5398
|
...r
|
|
5384
|
-
},
|
|
5399
|
+
}, g = (D, T, P) => yr(t) ? Ne(D, new it(t, T).getLegacyValue()) : br(t) ? Ne(D, new ft(t, T).getLegacyValue()) : Ne(D, T, P), L = (D, T) => Ne(
|
|
5385
5400
|
D,
|
|
5386
5401
|
new Ge(t, T, E).getLegacyValue()
|
|
5387
|
-
),
|
|
5402
|
+
), j = (D) => Ne(b, new ot(t, D).getLegacyValue()), O = (D) => ws(b, D), k = () => {
|
|
5388
5403
|
switch (C) {
|
|
5389
|
-
case
|
|
5404
|
+
case Q.AUTOCOMPLETE: {
|
|
5390
5405
|
const D = {
|
|
5391
|
-
...
|
|
5406
|
+
...x,
|
|
5392
5407
|
bindValue: t.k,
|
|
5393
5408
|
optionalDisplayValue: n,
|
|
5394
|
-
onChange: (T,
|
|
5395
|
-
f?.(
|
|
5409
|
+
onChange: (T, P) => {
|
|
5410
|
+
f?.(g(b, T, P));
|
|
5396
5411
|
}
|
|
5397
5412
|
};
|
|
5398
5413
|
return /* @__PURE__ */ m.jsx(Pn, { ...D });
|
|
5399
5414
|
}
|
|
5400
|
-
case
|
|
5415
|
+
case Q.BUTTON: {
|
|
5401
5416
|
const D = r?.label && typeof r.label == "string" ? r.label : void 0, T = {
|
|
5402
|
-
...
|
|
5417
|
+
...x,
|
|
5403
5418
|
bindValue: D || "",
|
|
5404
5419
|
showText: !!D,
|
|
5405
5420
|
title: n,
|
|
5406
5421
|
onClick: () => {
|
|
5407
|
-
u?.(
|
|
5422
|
+
u?.(g(b, t.k));
|
|
5423
|
+
}
|
|
5424
|
+
};
|
|
5425
|
+
return /* @__PURE__ */ m.jsx(xe, { ...T });
|
|
5426
|
+
}
|
|
5427
|
+
case Q.MULTI_CONFIG: {
|
|
5428
|
+
const D = {
|
|
5429
|
+
...x,
|
|
5430
|
+
bindValue: o || "",
|
|
5431
|
+
showText: !!o,
|
|
5432
|
+
title: n,
|
|
5433
|
+
icon: s ?? "list",
|
|
5434
|
+
onClick: () => {
|
|
5435
|
+
u?.(g(b, t.k));
|
|
5408
5436
|
}
|
|
5409
5437
|
};
|
|
5410
|
-
return /* @__PURE__ */ m.jsx(
|
|
5438
|
+
return /* @__PURE__ */ m.jsx(xe, { ...D });
|
|
5411
5439
|
}
|
|
5412
|
-
case
|
|
5440
|
+
case Q.BUTTON_LIST: {
|
|
5413
5441
|
const D = {
|
|
5414
|
-
...
|
|
5442
|
+
...x,
|
|
5415
5443
|
options: c,
|
|
5416
|
-
onClick: (T,
|
|
5417
|
-
const N = { ...b, fun:
|
|
5418
|
-
u?.(
|
|
5444
|
+
onClick: (T, P) => {
|
|
5445
|
+
const N = { ...b, fun: P };
|
|
5446
|
+
u?.(g(N, T));
|
|
5419
5447
|
}
|
|
5420
5448
|
};
|
|
5421
5449
|
return /* @__PURE__ */ m.jsx(us, { ...D });
|
|
5422
5450
|
}
|
|
5423
|
-
case
|
|
5451
|
+
case Q.CHIP: {
|
|
5424
5452
|
const D = {
|
|
5425
|
-
...
|
|
5453
|
+
...x,
|
|
5426
5454
|
elements: En(b)
|
|
5427
5455
|
};
|
|
5428
|
-
return /* @__PURE__ */ m.jsx(
|
|
5456
|
+
return /* @__PURE__ */ m.jsx(At, { ...D });
|
|
5429
5457
|
}
|
|
5430
|
-
case
|
|
5431
|
-
case
|
|
5432
|
-
const D = e ===
|
|
5433
|
-
...
|
|
5458
|
+
case Q.CHECKBOX:
|
|
5459
|
+
case Q.SWITCH: {
|
|
5460
|
+
const D = e === Q.SWITCH, T = {
|
|
5461
|
+
...x,
|
|
5434
5462
|
bindValue: ot.fromDataObj(t).getValue(),
|
|
5435
5463
|
optionalDisplayValue: n,
|
|
5436
|
-
onChange: (
|
|
5437
|
-
f?.(
|
|
5464
|
+
onChange: (P) => {
|
|
5465
|
+
f?.(j(P));
|
|
5438
5466
|
},
|
|
5439
5467
|
...D && { variant: "switch" }
|
|
5440
5468
|
};
|
|
5441
5469
|
return /* @__PURE__ */ m.jsx(ds, { ...T });
|
|
5442
5470
|
}
|
|
5443
|
-
case
|
|
5471
|
+
case Q.COMBOBOX: {
|
|
5444
5472
|
const D = {
|
|
5445
|
-
...
|
|
5473
|
+
...x,
|
|
5446
5474
|
bindValue: t.k,
|
|
5447
5475
|
optionalDisplayValue: n,
|
|
5448
|
-
onChange: (T,
|
|
5449
|
-
f?.(
|
|
5476
|
+
onChange: (T, P) => {
|
|
5477
|
+
f?.(g(b, T, P));
|
|
5450
5478
|
}
|
|
5451
5479
|
};
|
|
5452
5480
|
return /* @__PURE__ */ m.jsx(ps, { ...D });
|
|
5453
5481
|
}
|
|
5454
|
-
case
|
|
5482
|
+
case Q.DATE: {
|
|
5455
5483
|
const D = {
|
|
5456
|
-
...
|
|
5484
|
+
...x,
|
|
5457
5485
|
bindValue: it.fromDataObj(t).getValue(),
|
|
5458
5486
|
onChange: (T) => {
|
|
5459
|
-
f?.(
|
|
5487
|
+
f?.(g(b, T));
|
|
5460
5488
|
}
|
|
5461
5489
|
};
|
|
5462
5490
|
return /* @__PURE__ */ m.jsx(gs, { ...D });
|
|
5463
5491
|
}
|
|
5464
|
-
case
|
|
5465
|
-
case
|
|
5492
|
+
case Q.ICON:
|
|
5493
|
+
case Q.IMAGE: {
|
|
5466
5494
|
const D = {
|
|
5467
|
-
...
|
|
5495
|
+
...x,
|
|
5468
5496
|
icon: s,
|
|
5469
|
-
isInteractable: !!
|
|
5497
|
+
isInteractable: !!x.fun,
|
|
5470
5498
|
onClick: () => {
|
|
5471
|
-
u?.(
|
|
5499
|
+
u?.(g(b, t.k));
|
|
5472
5500
|
}
|
|
5473
5501
|
};
|
|
5474
|
-
return /* @__PURE__ */ m.jsx(
|
|
5502
|
+
return /* @__PURE__ */ m.jsx(ce, { ...D });
|
|
5475
5503
|
}
|
|
5476
|
-
case
|
|
5504
|
+
case Q.INPUT_NUMBER: {
|
|
5477
5505
|
const D = {
|
|
5478
|
-
...
|
|
5506
|
+
...x,
|
|
5479
5507
|
bindValue: Ge.fromDataObj(t, E).getValue(),
|
|
5480
5508
|
onChange: (T) => {
|
|
5481
|
-
f?.(
|
|
5509
|
+
f?.(L(b, T));
|
|
5482
5510
|
}
|
|
5483
5511
|
};
|
|
5484
5512
|
return /* @__PURE__ */ m.jsx(Es, { ...D });
|
|
5485
5513
|
}
|
|
5486
|
-
case
|
|
5487
|
-
case
|
|
5514
|
+
case Q.EDITOR:
|
|
5515
|
+
case Q.MEMO: {
|
|
5488
5516
|
const D = {
|
|
5489
|
-
...
|
|
5517
|
+
...x,
|
|
5490
5518
|
bindValue: t.k,
|
|
5491
5519
|
optionalDisplayValue: n,
|
|
5492
5520
|
onChange: (T) => {
|
|
5493
|
-
f?.(
|
|
5521
|
+
f?.(g(b, T));
|
|
5494
5522
|
}
|
|
5495
5523
|
};
|
|
5496
5524
|
return /* @__PURE__ */ m.jsx(Cs, { ...D });
|
|
5497
5525
|
}
|
|
5498
|
-
case
|
|
5526
|
+
case Q.MULTI_AUTOCOMPLETE: {
|
|
5499
5527
|
const D = {
|
|
5500
|
-
...
|
|
5528
|
+
...x,
|
|
5501
5529
|
elements: En(b),
|
|
5502
5530
|
onChange: (T) => {
|
|
5503
5531
|
f?.(O(T));
|
|
@@ -5505,70 +5533,70 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5505
5533
|
};
|
|
5506
5534
|
return /* @__PURE__ */ m.jsx(ys, { ...D });
|
|
5507
5535
|
}
|
|
5508
|
-
case
|
|
5536
|
+
case Q.PASSWORD: {
|
|
5509
5537
|
const D = {
|
|
5510
|
-
...
|
|
5538
|
+
...x,
|
|
5511
5539
|
bindValue: t.k,
|
|
5512
5540
|
onChange: (T) => {
|
|
5513
|
-
f?.(
|
|
5541
|
+
f?.(g(b, T));
|
|
5514
5542
|
}
|
|
5515
5543
|
};
|
|
5516
5544
|
return /* @__PURE__ */ m.jsx(bs, { ...D });
|
|
5517
5545
|
}
|
|
5518
|
-
case
|
|
5546
|
+
case Q.RADIO: {
|
|
5519
5547
|
const D = {
|
|
5520
|
-
...
|
|
5548
|
+
...x,
|
|
5521
5549
|
bindValue: t.k,
|
|
5522
|
-
onChange: (T,
|
|
5523
|
-
f?.(
|
|
5550
|
+
onChange: (T, P) => {
|
|
5551
|
+
f?.(g(b, T, P));
|
|
5524
5552
|
}
|
|
5525
5553
|
};
|
|
5526
5554
|
return /* @__PURE__ */ m.jsx(Ts, { ...D });
|
|
5527
5555
|
}
|
|
5528
|
-
case
|
|
5556
|
+
case Q.SPOTLIGHT: {
|
|
5529
5557
|
const D = {
|
|
5530
|
-
...
|
|
5558
|
+
...x,
|
|
5531
5559
|
bindValue: t.k,
|
|
5532
5560
|
onEnter: (T) => {
|
|
5533
|
-
p?.(
|
|
5561
|
+
p?.(g(b, T));
|
|
5534
5562
|
}
|
|
5535
5563
|
};
|
|
5536
5564
|
return /* @__PURE__ */ m.jsx(vs, { ...D });
|
|
5537
5565
|
}
|
|
5538
|
-
case
|
|
5566
|
+
case Q.TEXT_FIELD: {
|
|
5539
5567
|
const D = {
|
|
5540
|
-
...
|
|
5568
|
+
...x,
|
|
5541
5569
|
bindValue: t.k,
|
|
5542
5570
|
optionalDisplayValue: n,
|
|
5543
5571
|
onChange: (T) => {
|
|
5544
|
-
f?.(
|
|
5572
|
+
f?.(g(b, T));
|
|
5545
5573
|
}
|
|
5546
5574
|
};
|
|
5547
5575
|
return /* @__PURE__ */ m.jsx(je, { ...D });
|
|
5548
5576
|
}
|
|
5549
|
-
case
|
|
5577
|
+
case Q.BUTTON_GROUP: {
|
|
5550
5578
|
const D = {
|
|
5551
|
-
...
|
|
5579
|
+
...x,
|
|
5552
5580
|
bindValue: t.k,
|
|
5553
|
-
onChange: (T,
|
|
5554
|
-
f?.(
|
|
5581
|
+
onChange: (T, P) => {
|
|
5582
|
+
f?.(g(b, T, P));
|
|
5555
5583
|
}
|
|
5556
5584
|
};
|
|
5557
5585
|
return /* @__PURE__ */ m.jsx(ks, { ...D });
|
|
5558
5586
|
}
|
|
5559
|
-
case
|
|
5587
|
+
case Q.TIME: {
|
|
5560
5588
|
const D = {
|
|
5561
|
-
...
|
|
5589
|
+
...x,
|
|
5562
5590
|
bindValue: ft.fromDataObj(t).getValue(),
|
|
5563
5591
|
onChange: (T) => {
|
|
5564
|
-
f?.(
|
|
5592
|
+
f?.(g(b, T));
|
|
5565
5593
|
}
|
|
5566
5594
|
};
|
|
5567
5595
|
return /* @__PURE__ */ m.jsx(Ds, { ...D });
|
|
5568
5596
|
}
|
|
5569
5597
|
default: {
|
|
5570
5598
|
const D = {
|
|
5571
|
-
...
|
|
5599
|
+
...x,
|
|
5572
5600
|
bindValue: t.k,
|
|
5573
5601
|
optionalDisplayValue: n
|
|
5574
5602
|
};
|
|
@@ -5585,7 +5613,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5585
5613
|
onContextMenu: (D) => {
|
|
5586
5614
|
w && l && (D.preventDefault(), w(b, D.currentTarget));
|
|
5587
5615
|
},
|
|
5588
|
-
children:
|
|
5616
|
+
children: k()
|
|
5589
5617
|
}
|
|
5590
5618
|
);
|
|
5591
5619
|
}, na = ({
|
|
@@ -5594,7 +5622,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5594
5622
|
onEnter: t,
|
|
5595
5623
|
onContextMenu: r
|
|
5596
5624
|
}) => {
|
|
5597
|
-
const [s, a] = G(), i =
|
|
5625
|
+
const [s, a] = G(), i = fe(
|
|
5598
5626
|
(o) => {
|
|
5599
5627
|
if (!o.rows?.length || !o.columns?.length)
|
|
5600
5628
|
return {};
|
|
@@ -5603,14 +5631,14 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5603
5631
|
const u = l.cells[f.name], p = {
|
|
5604
5632
|
...u,
|
|
5605
5633
|
id: f.name,
|
|
5606
|
-
onChange: (
|
|
5634
|
+
onChange: (y) => {
|
|
5607
5635
|
a((d) => d && {
|
|
5608
5636
|
...d,
|
|
5609
5637
|
[f.name]: {
|
|
5610
5638
|
...d[f.name],
|
|
5611
5639
|
obj: {
|
|
5612
5640
|
...d[f.name].obj,
|
|
5613
|
-
k:
|
|
5641
|
+
k: y.obj.k
|
|
5614
5642
|
}
|
|
5615
5643
|
}
|
|
5616
5644
|
});
|
|
@@ -5620,11 +5648,11 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5620
5648
|
...u
|
|
5621
5649
|
});
|
|
5622
5650
|
},
|
|
5623
|
-
onEnter: (
|
|
5624
|
-
t && t(
|
|
5651
|
+
onEnter: (y) => {
|
|
5652
|
+
t && t(y);
|
|
5625
5653
|
},
|
|
5626
|
-
onContextMenu: (
|
|
5627
|
-
r && r(
|
|
5654
|
+
onContextMenu: (y, d) => {
|
|
5655
|
+
r && r(y, d);
|
|
5628
5656
|
}
|
|
5629
5657
|
};
|
|
5630
5658
|
return {
|
|
@@ -5655,22 +5683,22 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5655
5683
|
loadOptions: l,
|
|
5656
5684
|
onContextMenu: c
|
|
5657
5685
|
}) => {
|
|
5658
|
-
const [f, u] = G(), [p,
|
|
5659
|
-
(
|
|
5660
|
-
if (!
|
|
5686
|
+
const [f, u] = G(), [p, y] = G(t ?? !0), d = ue(null), w = s.trim() ? s : "100vh", S = fe(
|
|
5687
|
+
(x) => {
|
|
5688
|
+
if (!x?.rows?.length || !x?.columns?.length)
|
|
5661
5689
|
return {};
|
|
5662
|
-
const
|
|
5663
|
-
return
|
|
5664
|
-
const O =
|
|
5665
|
-
if (!O || !p && le(r) && O.shape !==
|
|
5666
|
-
return
|
|
5667
|
-
const
|
|
5690
|
+
const g = x.rows[0];
|
|
5691
|
+
return x.columns.filter((L) => L.visible ?? !0).reduce((L, j) => {
|
|
5692
|
+
const O = g.cells[j.name];
|
|
5693
|
+
if (!O || !p && le(r) && O.shape !== Q.BUTTON && O.shape !== Q.BUTTON_LIST)
|
|
5694
|
+
return L;
|
|
5695
|
+
const k = {
|
|
5668
5696
|
...O,
|
|
5669
|
-
id:
|
|
5697
|
+
id: j.name,
|
|
5670
5698
|
onChange: (R) => {
|
|
5671
5699
|
u((D) => {
|
|
5672
5700
|
const T = { ...D };
|
|
5673
|
-
return T?.[
|
|
5701
|
+
return T?.[j.name] && (T[j.name].obj.k = R.obj.k), T;
|
|
5674
5702
|
});
|
|
5675
5703
|
},
|
|
5676
5704
|
onClick: (R) => {
|
|
@@ -5683,24 +5711,24 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5683
5711
|
c && c(R, D);
|
|
5684
5712
|
}
|
|
5685
5713
|
};
|
|
5686
|
-
return l && O.shape ==
|
|
5714
|
+
return l && O.shape == Q.BUTTON_LIST && (k.onOptionsRequest = (R, D) => l(R, D).then(
|
|
5687
5715
|
(T) => Ls(T)
|
|
5688
|
-
)), !p && le(r) && (
|
|
5689
|
-
...
|
|
5716
|
+
)), !p && le(r) && (k.data = {
|
|
5717
|
+
...k.data,
|
|
5690
5718
|
showText: !1,
|
|
5691
5719
|
justify: "center",
|
|
5692
5720
|
squared: !0
|
|
5693
5721
|
}), {
|
|
5694
|
-
...
|
|
5695
|
-
[
|
|
5722
|
+
...L,
|
|
5723
|
+
[j.name]: k
|
|
5696
5724
|
};
|
|
5697
5725
|
}, {});
|
|
5698
5726
|
},
|
|
5699
5727
|
[p, r, a, i, l, c]
|
|
5700
|
-
), E =
|
|
5728
|
+
), E = fe(() => {
|
|
5701
5729
|
o?.();
|
|
5702
5730
|
}, [o]), b = () => {
|
|
5703
|
-
le(r) ?
|
|
5731
|
+
le(r) ? y((x) => !x) : (y(!1), o?.());
|
|
5704
5732
|
};
|
|
5705
5733
|
if (ne(() => {
|
|
5706
5734
|
u(S(n));
|
|
@@ -5711,15 +5739,15 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5711
5739
|
u(S(n));
|
|
5712
5740
|
return;
|
|
5713
5741
|
}
|
|
5714
|
-
const
|
|
5742
|
+
const x = getComputedStyle(d.current).getPropertyValue(
|
|
5715
5743
|
"--smp-drawer-slide-transition"
|
|
5716
5744
|
);
|
|
5717
|
-
let
|
|
5718
|
-
|
|
5745
|
+
let g = Number(x);
|
|
5746
|
+
x.endsWith("ms") ? g = parseFloat(x) : x.endsWith("s") && (g = parseFloat(x) * 1e3), setTimeout(() => {
|
|
5719
5747
|
u(S(n));
|
|
5720
|
-
},
|
|
5748
|
+
}, g / 2);
|
|
5721
5749
|
}, [p, r]), ne(() => {
|
|
5722
|
-
t !== void 0 && !le(r) &&
|
|
5750
|
+
t !== void 0 && !le(r) && y(t);
|
|
5723
5751
|
}, [r, t]), !n?.rows?.length || !n.columns?.length)
|
|
5724
5752
|
return null;
|
|
5725
5753
|
const C = {
|
|
@@ -5752,7 +5780,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5752
5780
|
children: /* @__PURE__ */ m.jsxs("div", { className: C.container, children: [
|
|
5753
5781
|
/* @__PURE__ */ m.jsxs("div", { className: C.containerHeader, children: [
|
|
5754
5782
|
e && /* @__PURE__ */ m.jsx("div", { className: C.containerLogo, children: /* @__PURE__ */ m.jsx(
|
|
5755
|
-
|
|
5783
|
+
ce,
|
|
5756
5784
|
{
|
|
5757
5785
|
icon: e,
|
|
5758
5786
|
title: "drawer_logo",
|
|
@@ -5761,7 +5789,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5761
5789
|
}
|
|
5762
5790
|
) }),
|
|
5763
5791
|
/* @__PURE__ */ m.jsx("div", { className: C.containerIcon, children: /* @__PURE__ */ m.jsx(
|
|
5764
|
-
|
|
5792
|
+
ce,
|
|
5765
5793
|
{
|
|
5766
5794
|
icon: le(r) ? "menu_close" : "close",
|
|
5767
5795
|
title: "drawer_icon",
|
|
@@ -5773,7 +5801,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5773
5801
|
}
|
|
5774
5802
|
) })
|
|
5775
5803
|
] }),
|
|
5776
|
-
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((
|
|
5804
|
+
/* @__PURE__ */ m.jsx("div", { className: C.containerLayout, children: /* @__PURE__ */ m.jsx(at, { layout: n.rows[0].layout, children: Object.values(f).map((x) => /* @__PURE__ */ m.jsx(Oe, { ...x })) }) })
|
|
5777
5805
|
] })
|
|
5778
5806
|
}
|
|
5779
5807
|
)
|
|
@@ -5792,7 +5820,7 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5792
5820
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5793
5821
|
NumberFormat: u,
|
|
5794
5822
|
ForceUM: p,
|
|
5795
|
-
UmColName:
|
|
5823
|
+
UmColName: y,
|
|
5796
5824
|
UmColor: d = "var(--smp-dashList-color-base)",
|
|
5797
5825
|
ForceValue: w,
|
|
5798
5826
|
ValueColName: S,
|
|
@@ -5800,9 +5828,9 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5800
5828
|
SelectLayout: b = "1",
|
|
5801
5829
|
onClick: C
|
|
5802
5830
|
}) => {
|
|
5803
|
-
const
|
|
5831
|
+
const x = "N/A", g = e?.columns || [], L = e?.rows || [], j = L.length > 0, O = "--smp-dashList-color", k = "smp-layout", R = "descr", D = "icon", T = "um", P = "value", N = i || "1em", H = "18px", B = "--smp-dashList-columns", z = "--smp-dashList-fontSize", Z = {
|
|
5804
5832
|
dash: (Y = "1") => {
|
|
5805
|
-
const
|
|
5833
|
+
const X = h(Y), re = X, ae = v(X, R), ke = v(X, D), Me = v(X, T), ge = v(X, P);
|
|
5806
5834
|
return {
|
|
5807
5835
|
container: re,
|
|
5808
5836
|
descr: ae,
|
|
@@ -5813,72 +5841,72 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5813
5841
|
},
|
|
5814
5842
|
dashList: `smp-dash-list ${le(a) ? "smp-dash-list-fill-space" : ""}
|
|
5815
5843
|
${le(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5816
|
-
}, { format: F } = $e(), h = (Y) => `${
|
|
5817
|
-
const
|
|
5818
|
-
if (
|
|
5819
|
-
const ae = Y.match(
|
|
5844
|
+
}, { format: F } = $e(), h = (Y) => `${k}-${Y}`, v = (Y, X) => `${Y}__${X}`, $ = (Y) => `${O}-${Y}`, I = (Y) => {
|
|
5845
|
+
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5846
|
+
if (X.test(Y)) {
|
|
5847
|
+
const ae = Y.match(X) || [];
|
|
5820
5848
|
if (ae?.length > 3)
|
|
5821
5849
|
return "rgb(" + ae[1] + "," + ae[2] + "," + ae[3] + ")";
|
|
5822
5850
|
}
|
|
5823
5851
|
return Y;
|
|
5824
|
-
},
|
|
5852
|
+
}, _ = (Y) => {
|
|
5825
5853
|
if (!u) return Y;
|
|
5826
|
-
const [
|
|
5854
|
+
const [X, re] = A(u).map(
|
|
5827
5855
|
(Le) => parseInt(Le || "0")
|
|
5828
5856
|
), ae = "0,0" + (re ? "." + "0".repeat(re) : ""), ke = F(Y, ae, "it");
|
|
5829
|
-
if (!
|
|
5857
|
+
if (!X) return ke;
|
|
5830
5858
|
const [Me, ge] = ke.split(",");
|
|
5831
5859
|
return Me + (ge ? `,${ge}` : "");
|
|
5832
|
-
},
|
|
5833
|
-
const
|
|
5860
|
+
}, A = (Y) => Y.includes(";") ? Y.split(";") : [Y], V = (Y) => {
|
|
5861
|
+
const X = (ae) => {
|
|
5834
5862
|
if (ae)
|
|
5835
5863
|
return Y?.cells[ae]?.obj.k;
|
|
5836
5864
|
}, re = (ae) => {
|
|
5837
|
-
if (!(
|
|
5838
|
-
return Y?.cells[
|
|
5865
|
+
if (!(g.length <= ae))
|
|
5866
|
+
return Y?.cells[g[ae].name]?.obj?.k;
|
|
5839
5867
|
};
|
|
5840
5868
|
return {
|
|
5841
|
-
descr: t ||
|
|
5842
|
-
icon: l ||
|
|
5843
|
-
um: p ||
|
|
5844
|
-
value: w ||
|
|
5869
|
+
descr: t || X(r) || re(2) || "",
|
|
5870
|
+
icon: l || X(c) || re(3) || "",
|
|
5871
|
+
um: p || X(y) || re(1) || "",
|
|
5872
|
+
value: w || X(S) || re(0) || ""
|
|
5845
5873
|
};
|
|
5846
|
-
},
|
|
5874
|
+
}, U = (Y) => {
|
|
5847
5875
|
C?.(Y);
|
|
5848
|
-
},
|
|
5849
|
-
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(),
|
|
5876
|
+
}, W = (Y, X) => {
|
|
5877
|
+
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(), U(X));
|
|
5850
5878
|
}, q = ((Y) => {
|
|
5851
|
-
const
|
|
5879
|
+
const X = Z.dash(Y);
|
|
5852
5880
|
return {
|
|
5853
|
-
className:
|
|
5854
|
-
descr: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5855
|
-
icon: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5856
|
-
|
|
5881
|
+
className: X,
|
|
5882
|
+
descr: (re) => /* @__PURE__ */ m.jsx("div", { className: X.descr, children: re }, `${Y}-${R}`),
|
|
5883
|
+
icon: (re) => /* @__PURE__ */ m.jsx("div", { className: X.icon, children: /* @__PURE__ */ m.jsx(
|
|
5884
|
+
ce,
|
|
5857
5885
|
{
|
|
5858
5886
|
color: f,
|
|
5859
|
-
height:
|
|
5887
|
+
height: H,
|
|
5860
5888
|
icon: re,
|
|
5861
|
-
width:
|
|
5889
|
+
width: H
|
|
5862
5890
|
}
|
|
5863
5891
|
) }, `${Y}-${D}`),
|
|
5864
|
-
um: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5865
|
-
value: (re) => /* @__PURE__ */ m.jsx("div", { className:
|
|
5892
|
+
um: (re) => /* @__PURE__ */ m.jsx("div", { className: X.um, children: re }, `${Y}-${T}`),
|
|
5893
|
+
value: (re) => /* @__PURE__ */ m.jsx("div", { className: X.value, children: re }, `${Y}-${P}`)
|
|
5866
5894
|
};
|
|
5867
5895
|
})(b), se = (Y) => {
|
|
5868
|
-
const { descr:
|
|
5869
|
-
[$(R)]:
|
|
5870
|
-
[$(T)]:
|
|
5871
|
-
[$(
|
|
5872
|
-
}, ge = [], Le =
|
|
5896
|
+
const { descr: X, icon: re, um: ae, value: ke } = V(Y), Me = {
|
|
5897
|
+
[$(R)]: I(s),
|
|
5898
|
+
[$(T)]: I(d),
|
|
5899
|
+
[$(P)]: I(E)
|
|
5900
|
+
}, ge = [], Le = _(ke);
|
|
5873
5901
|
switch (b) {
|
|
5874
5902
|
case "2":
|
|
5875
|
-
re && ge.push(q.icon(re)), ge.push(q.descr(
|
|
5903
|
+
re && ge.push(q.icon(re)), ge.push(q.descr(X)), ge.push(
|
|
5876
5904
|
q.value(ae ? Le + " " + ae : Le)
|
|
5877
5905
|
);
|
|
5878
5906
|
break;
|
|
5879
5907
|
default:
|
|
5880
5908
|
case "1":
|
|
5881
|
-
ge.push(q.descr(
|
|
5909
|
+
ge.push(q.descr(X)), ge.push(
|
|
5882
5910
|
q.value(ae ? Le + " " + ae : Le)
|
|
5883
5911
|
);
|
|
5884
5912
|
}
|
|
@@ -5889,24 +5917,24 @@ const Tn = /* @__PURE__ */ new Map([
|
|
|
5889
5917
|
role: "button",
|
|
5890
5918
|
style: Me,
|
|
5891
5919
|
tabIndex: 0,
|
|
5892
|
-
onClick: () =>
|
|
5893
|
-
onKeyDown: (Mn) =>
|
|
5920
|
+
onClick: () => U(Y),
|
|
5921
|
+
onKeyDown: (Mn) => W(Mn, Y),
|
|
5894
5922
|
children: ge
|
|
5895
5923
|
},
|
|
5896
5924
|
Y.rowId
|
|
5897
5925
|
);
|
|
5898
5926
|
}, M = {
|
|
5899
|
-
[
|
|
5927
|
+
[B]: String(n),
|
|
5900
5928
|
[z]: N
|
|
5901
5929
|
};
|
|
5902
|
-
return /* @__PURE__ */ m.jsx("div", { className:
|
|
5930
|
+
return /* @__PURE__ */ m.jsx("div", { className: Z.dashList, style: M, children: j ? L.map((Y) => se(Y)) : x });
|
|
5903
5931
|
}, tt = {
|
|
5904
5932
|
"smp-table": "_smp-table_1qmju_1",
|
|
5905
5933
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5906
5934
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5907
|
-
},
|
|
5908
|
-
rowContent:
|
|
5909
|
-
clickable:
|
|
5935
|
+
}, Is = "_rowContent_20wit_2", As = "_clickable_20wit_21", Ps = "_indent_20wit_26", Ns = "_toggle_20wit_32", Ms = "_cell_20wit_38", Fs = "_leftSection_20wit_46", Ce = {
|
|
5936
|
+
rowContent: Is,
|
|
5937
|
+
clickable: As,
|
|
5910
5938
|
indent: Ps,
|
|
5911
5939
|
toggle: Ns,
|
|
5912
5940
|
cell: Ms,
|
|
@@ -5940,8 +5968,8 @@ const Nn = ({
|
|
|
5940
5968
|
toggle: `${Ce.toggle}`,
|
|
5941
5969
|
indent: `${Ce.indent}`,
|
|
5942
5970
|
cell: `${Ce.cell}`
|
|
5943
|
-
},
|
|
5944
|
-
|
|
5971
|
+
}, y = (b) => /* @__PURE__ */ m.jsx(Oe, { ...b }), d = () => /* @__PURE__ */ m.jsx("span", { className: p.toggle, children: c && /* @__PURE__ */ m.jsx(
|
|
5972
|
+
ce,
|
|
5945
5973
|
{
|
|
5946
5974
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5947
5975
|
width: 16
|
|
@@ -5982,21 +6010,21 @@ const Nn = ({
|
|
|
5982
6010
|
]
|
|
5983
6011
|
}
|
|
5984
6012
|
),
|
|
5985
|
-
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([
|
|
6013
|
+
n.cells && Object.keys(n.cells).length > 0 && Object.entries(n.cells).map(([x, g]) => /* @__PURE__ */ m.jsx(
|
|
5986
6014
|
"td",
|
|
5987
6015
|
{
|
|
5988
6016
|
className: p.cell,
|
|
5989
6017
|
style: {
|
|
5990
|
-
width: e[
|
|
5991
|
-
minWidth: e[
|
|
6018
|
+
width: e[x],
|
|
6019
|
+
minWidth: e[x],
|
|
5992
6020
|
height: `${r}px`
|
|
5993
6021
|
},
|
|
5994
|
-
children:
|
|
5995
|
-
...
|
|
5996
|
-
id:
|
|
6022
|
+
children: y({
|
|
6023
|
+
...g,
|
|
6024
|
+
id: x
|
|
5997
6025
|
})
|
|
5998
6026
|
},
|
|
5999
|
-
Us(
|
|
6027
|
+
Us(g) || x
|
|
6000
6028
|
))
|
|
6001
6029
|
]
|
|
6002
6030
|
}
|
|
@@ -6037,7 +6065,7 @@ const Nn = ({
|
|
|
6037
6065
|
},
|
|
6038
6066
|
children: [
|
|
6039
6067
|
/* @__PURE__ */ m.jsx(
|
|
6040
|
-
|
|
6068
|
+
ce,
|
|
6041
6069
|
{
|
|
6042
6070
|
icon: a ? "arrow_drop_down" : "arrow_drop_right",
|
|
6043
6071
|
width: 16
|
|
@@ -6067,35 +6095,35 @@ function Gs(n, e, t, r) {
|
|
|
6067
6095
|
const s = [];
|
|
6068
6096
|
let a = 0;
|
|
6069
6097
|
return i(n, 0, []), { flatRows: s, offset: a };
|
|
6070
|
-
function i(u, p,
|
|
6098
|
+
function i(u, p, y) {
|
|
6071
6099
|
if (p >= e.length) {
|
|
6072
6100
|
f(u);
|
|
6073
6101
|
return;
|
|
6074
6102
|
}
|
|
6075
6103
|
const d = e[p].column, w = o(u, d);
|
|
6076
6104
|
for (const [S, E] of w) {
|
|
6077
|
-
const b = [...
|
|
6078
|
-
s.push(c(S, C, p,
|
|
6105
|
+
const b = [...y, S], C = l(b, p), x = r.has(C);
|
|
6106
|
+
s.push(c(S, C, p, x)), a += t, x && i(E, p + 1, b);
|
|
6079
6107
|
}
|
|
6080
6108
|
}
|
|
6081
6109
|
function o(u, p) {
|
|
6082
|
-
const
|
|
6110
|
+
const y = /* @__PURE__ */ new Map();
|
|
6083
6111
|
for (const d of u) {
|
|
6084
6112
|
const w = d.cells[p]?.decode ?? "N/D";
|
|
6085
|
-
|
|
6113
|
+
y.has(w) || y.set(w, []), y.get(w).push(d);
|
|
6086
6114
|
}
|
|
6087
|
-
return
|
|
6115
|
+
return y;
|
|
6088
6116
|
}
|
|
6089
6117
|
function l(u, p) {
|
|
6090
6118
|
return `group-${u.join("-")}-${p}`;
|
|
6091
6119
|
}
|
|
6092
|
-
function c(u, p,
|
|
6120
|
+
function c(u, p, y, d) {
|
|
6093
6121
|
return {
|
|
6094
6122
|
isGroup: !0,
|
|
6095
6123
|
value: u,
|
|
6096
6124
|
cells: {},
|
|
6097
6125
|
rowId: p,
|
|
6098
|
-
level:
|
|
6126
|
+
level: y,
|
|
6099
6127
|
isExpanded: d
|
|
6100
6128
|
};
|
|
6101
6129
|
}
|
|
@@ -6124,9 +6152,9 @@ const Hs = ({
|
|
|
6124
6152
|
onDragOver: a,
|
|
6125
6153
|
onDrop: s,
|
|
6126
6154
|
children: [
|
|
6127
|
-
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6155
|
+
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(ce, { icon: "groups" }) }),
|
|
6128
6156
|
/* @__PURE__ */ m.jsx("td", { children: /* @__PURE__ */ m.jsx(
|
|
6129
|
-
|
|
6157
|
+
At,
|
|
6130
6158
|
{
|
|
6131
6159
|
elements: i,
|
|
6132
6160
|
isEditable: t,
|
|
@@ -6195,7 +6223,7 @@ const Hs = ({
|
|
|
6195
6223
|
}) => {
|
|
6196
6224
|
const [i, o] = G(
|
|
6197
6225
|
n ?? { columns: [], rows: [] }
|
|
6198
|
-
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p =
|
|
6226
|
+
), [l, c] = G(r || []), [f, u] = G(/* @__PURE__ */ new Set()), p = ue(null), [y, d] = Ks({
|
|
6199
6227
|
columns: i?.columns ?? [],
|
|
6200
6228
|
rows: i?.rows ?? [],
|
|
6201
6229
|
containerRef: p,
|
|
@@ -6203,44 +6231,44 @@ const Hs = ({
|
|
|
6203
6231
|
});
|
|
6204
6232
|
ne(() => {
|
|
6205
6233
|
if (l?.length && n.rows) {
|
|
6206
|
-
const { flatRows:
|
|
6234
|
+
const { flatRows: j } = Gs(
|
|
6207
6235
|
n.rows,
|
|
6208
6236
|
l,
|
|
6209
6237
|
e,
|
|
6210
6238
|
f
|
|
6211
6239
|
);
|
|
6212
|
-
o({ ...n, rows:
|
|
6240
|
+
o({ ...n, rows: j });
|
|
6213
6241
|
} else
|
|
6214
6242
|
o(n);
|
|
6215
6243
|
}, [n, l, f, e]);
|
|
6216
|
-
const w = (
|
|
6217
|
-
c(Bs(
|
|
6218
|
-
}, S = (
|
|
6219
|
-
|
|
6220
|
-
const O =
|
|
6244
|
+
const w = (j) => {
|
|
6245
|
+
c(Bs(j, l));
|
|
6246
|
+
}, S = (j) => {
|
|
6247
|
+
j.preventDefault();
|
|
6248
|
+
const O = j.dataTransfer.getData("text/plain");
|
|
6221
6249
|
if (!O || l.some((D) => D.column === O))
|
|
6222
6250
|
return;
|
|
6223
6251
|
const R = [...l, { column: O, visible: !0 }];
|
|
6224
6252
|
c(R);
|
|
6225
|
-
}, E = (
|
|
6226
|
-
|
|
6227
|
-
}, { virtualItems: b, containerProps: C, innerProps:
|
|
6253
|
+
}, E = (j) => {
|
|
6254
|
+
j.preventDefault();
|
|
6255
|
+
}, { virtualItems: b, containerProps: C, innerProps: x } = kn({
|
|
6228
6256
|
items: i?.rows ?? [],
|
|
6229
6257
|
itemHeight: e,
|
|
6230
6258
|
containerHeight: t,
|
|
6231
6259
|
overscan: 5
|
|
6232
|
-
}),
|
|
6233
|
-
const
|
|
6234
|
-
const N =
|
|
6235
|
-
d((
|
|
6236
|
-
...
|
|
6237
|
-
[O]:
|
|
6260
|
+
}), g = (j, O) => {
|
|
6261
|
+
const k = j.clientX, R = y[O], D = (P) => {
|
|
6262
|
+
const N = P.clientX - k, H = Math.max(50, R + N);
|
|
6263
|
+
d((B) => ({
|
|
6264
|
+
...B,
|
|
6265
|
+
[O]: H
|
|
6238
6266
|
}));
|
|
6239
6267
|
}, T = () => {
|
|
6240
6268
|
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", T);
|
|
6241
6269
|
};
|
|
6242
6270
|
window.addEventListener("mousemove", D), window.addEventListener("mouseup", T);
|
|
6243
|
-
},
|
|
6271
|
+
}, L = {
|
|
6244
6272
|
smpTable: `${tt["smp-table"]}`,
|
|
6245
6273
|
headerCell: `${tt["smp-headerCell"]}`,
|
|
6246
6274
|
resizer: `${tt["smp-resizer"]}`
|
|
@@ -6248,7 +6276,7 @@ const Hs = ({
|
|
|
6248
6276
|
return i && /* @__PURE__ */ m.jsx(
|
|
6249
6277
|
"div",
|
|
6250
6278
|
{
|
|
6251
|
-
className:
|
|
6279
|
+
className: L.smpTable,
|
|
6252
6280
|
...C,
|
|
6253
6281
|
ref: p,
|
|
6254
6282
|
children: /* @__PURE__ */ m.jsxs("table", { children: [
|
|
@@ -6263,70 +6291,70 @@ const Hs = ({
|
|
|
6263
6291
|
}
|
|
6264
6292
|
),
|
|
6265
6293
|
/* @__PURE__ */ m.jsx("tr", { children: i.columns && i.columns?.map(
|
|
6266
|
-
(
|
|
6294
|
+
(j) => j.visible && /* @__PURE__ */ m.jsxs(
|
|
6267
6295
|
"th",
|
|
6268
6296
|
{
|
|
6269
|
-
className:
|
|
6297
|
+
className: L.headerCell,
|
|
6270
6298
|
draggable: !0,
|
|
6271
6299
|
onDragStart: (O) => {
|
|
6272
|
-
O.dataTransfer.setData("text/plain",
|
|
6300
|
+
O.dataTransfer.setData("text/plain", j.name);
|
|
6273
6301
|
},
|
|
6274
6302
|
style: {
|
|
6275
|
-
width:
|
|
6276
|
-
minWidth:
|
|
6277
|
-
maxWidth:
|
|
6303
|
+
width: y[j.name],
|
|
6304
|
+
minWidth: y[j.name],
|
|
6305
|
+
maxWidth: y[j.name]
|
|
6278
6306
|
},
|
|
6279
6307
|
children: [
|
|
6280
6308
|
/* @__PURE__ */ m.jsx(
|
|
6281
6309
|
_e,
|
|
6282
6310
|
{
|
|
6283
6311
|
variant: "title",
|
|
6284
|
-
bindValue:
|
|
6312
|
+
bindValue: j.title
|
|
6285
6313
|
}
|
|
6286
6314
|
),
|
|
6287
6315
|
/* @__PURE__ */ m.jsx(
|
|
6288
6316
|
"div",
|
|
6289
6317
|
{
|
|
6290
|
-
className:
|
|
6291
|
-
onMouseDown: (O) =>
|
|
6318
|
+
className: L.resizer,
|
|
6319
|
+
onMouseDown: (O) => g(O, j.name),
|
|
6292
6320
|
role: "region"
|
|
6293
6321
|
}
|
|
6294
6322
|
)
|
|
6295
6323
|
]
|
|
6296
6324
|
},
|
|
6297
|
-
|
|
6325
|
+
j.name
|
|
6298
6326
|
)
|
|
6299
6327
|
) })
|
|
6300
6328
|
] }),
|
|
6301
|
-
/* @__PURE__ */ m.jsx("tbody", { ...
|
|
6302
|
-
const R =
|
|
6303
|
-
return
|
|
6329
|
+
/* @__PURE__ */ m.jsx("tbody", { ...x, children: b.map(({ item: j, index: O, offsetTop: k }) => {
|
|
6330
|
+
const R = j.rowId || j.value || `${j.isGroup ? "group" : "row"}-${O}`;
|
|
6331
|
+
return j.isGroup ? /* @__PURE__ */ m.jsx(
|
|
6304
6332
|
Ws,
|
|
6305
6333
|
{
|
|
6306
|
-
label:
|
|
6334
|
+
label: j.value || "",
|
|
6307
6335
|
rowHeight: e,
|
|
6308
|
-
offsetTop:
|
|
6309
|
-
level:
|
|
6336
|
+
offsetTop: k,
|
|
6337
|
+
level: j.level,
|
|
6310
6338
|
onClick: () => {
|
|
6311
|
-
const D =
|
|
6339
|
+
const D = j.rowId;
|
|
6312
6340
|
D && u((T) => Ys(T, D));
|
|
6313
6341
|
},
|
|
6314
|
-
isExpanded:
|
|
6342
|
+
isExpanded: j.isExpanded
|
|
6315
6343
|
},
|
|
6316
6344
|
`group-${R}`
|
|
6317
6345
|
) : /* @__PURE__ */ m.jsx(
|
|
6318
6346
|
Nn,
|
|
6319
6347
|
{
|
|
6320
|
-
row:
|
|
6321
|
-
columnWidths:
|
|
6348
|
+
row: j,
|
|
6349
|
+
columnWidths: y,
|
|
6322
6350
|
rowHeight: e,
|
|
6323
|
-
offsetTop:
|
|
6351
|
+
offsetTop: k,
|
|
6324
6352
|
isGroup: !1
|
|
6325
6353
|
},
|
|
6326
6354
|
`row-${R}`
|
|
6327
6355
|
);
|
|
6328
6356
|
}) }),
|
|
6329
|
-
/* @__PURE__ */ m.jsx(qs, { columns: i.columns, columnWidths:
|
|
6357
|
+
/* @__PURE__ */ m.jsx(qs, { columns: i.columns, columnWidths: y })
|
|
6330
6358
|
] })
|
|
6331
6359
|
}
|
|
6332
6360
|
);
|
|
@@ -6348,16 +6376,16 @@ const Hs = ({
|
|
|
6348
6376
|
if (!n)
|
|
6349
6377
|
return;
|
|
6350
6378
|
const w = { ...n };
|
|
6351
|
-
return e && (w.shape = e), w.shape == null && (w.shape =
|
|
6379
|
+
return e && (w.shape = e), w.shape == null && (w.shape = Q.TEXT_FIELD), s && (w.obj = vr(s)), w;
|
|
6352
6380
|
});
|
|
6353
6381
|
}, [n, s, e]);
|
|
6354
|
-
const
|
|
6382
|
+
const y = {
|
|
6355
6383
|
container: `smp-field-container ${le(t) ? `smp-field-position-${r}` : ""}`
|
|
6356
6384
|
}, d = () => {
|
|
6357
6385
|
le(t) || o?.(f);
|
|
6358
6386
|
};
|
|
6359
6387
|
if (f)
|
|
6360
|
-
return /* @__PURE__ */ m.jsxs("div", { className:
|
|
6388
|
+
return /* @__PURE__ */ m.jsxs("div", { className: y.container, children: [
|
|
6361
6389
|
/* @__PURE__ */ m.jsx(
|
|
6362
6390
|
"div",
|
|
6363
6391
|
{
|
|
@@ -6384,7 +6412,7 @@ const Hs = ({
|
|
|
6384
6412
|
),
|
|
6385
6413
|
le(t) && //TODO: translation
|
|
6386
6414
|
/* @__PURE__ */ m.jsx(
|
|
6387
|
-
|
|
6415
|
+
xe,
|
|
6388
6416
|
{
|
|
6389
6417
|
optionalDisplayValue: "Confirm",
|
|
6390
6418
|
onClick: () => l?.(f),
|
|
@@ -6419,41 +6447,41 @@ const Hs = ({
|
|
|
6419
6447
|
onContextMenu: f,
|
|
6420
6448
|
onButtonClick: u
|
|
6421
6449
|
}) => {
|
|
6422
|
-
const [p,
|
|
6450
|
+
const [p, y] = G({}), { translate: d } = $e(), w = Se();
|
|
6423
6451
|
ne(() => {
|
|
6424
|
-
|
|
6452
|
+
y(x(n));
|
|
6425
6453
|
}, [n]);
|
|
6426
|
-
const S = (O,
|
|
6427
|
-
if (
|
|
6454
|
+
const S = (O, k) => {
|
|
6455
|
+
if (y((R) => ({
|
|
6428
6456
|
...R,
|
|
6429
6457
|
[O]: {
|
|
6430
6458
|
...R[O],
|
|
6431
6459
|
obj: {
|
|
6432
6460
|
...R[O].obj,
|
|
6433
|
-
k:
|
|
6461
|
+
k: k.obj.k
|
|
6434
6462
|
},
|
|
6435
|
-
decode:
|
|
6463
|
+
decode: k.decode,
|
|
6436
6464
|
data: {
|
|
6437
6465
|
...R[O].data,
|
|
6438
6466
|
error: void 0
|
|
6439
6467
|
},
|
|
6440
6468
|
// FIXME: remove this when webup.js will not use value
|
|
6441
|
-
value:
|
|
6469
|
+
value: k.obj.k
|
|
6442
6470
|
}
|
|
6443
|
-
})), s && (
|
|
6471
|
+
})), s && (k.shape == Q.CHECKBOX || k.shape == Q.SWITCH)) {
|
|
6444
6472
|
const R = structuredClone(p);
|
|
6445
|
-
R[O].obj.k =
|
|
6446
|
-
value:
|
|
6473
|
+
R[O].obj.k = k.obj.k, R[O].value = k.obj.k, o({
|
|
6474
|
+
value: g(R),
|
|
6447
6475
|
cell: O
|
|
6448
6476
|
});
|
|
6449
6477
|
}
|
|
6450
6478
|
}, E = (O) => {
|
|
6451
|
-
const
|
|
6479
|
+
const k = g(p);
|
|
6452
6480
|
o({
|
|
6453
|
-
value:
|
|
6481
|
+
value: k,
|
|
6454
6482
|
cell: O
|
|
6455
6483
|
});
|
|
6456
|
-
}, b = (O,
|
|
6484
|
+
}, b = (O, k) => {
|
|
6457
6485
|
u?.({
|
|
6458
6486
|
cellId: O,
|
|
6459
6487
|
currentState: {
|
|
@@ -6465,14 +6493,14 @@ const Hs = ({
|
|
|
6465
6493
|
}
|
|
6466
6494
|
]
|
|
6467
6495
|
},
|
|
6468
|
-
fun:
|
|
6496
|
+
fun: k || ""
|
|
6469
6497
|
});
|
|
6470
6498
|
}, C = async (O) => {
|
|
6471
6499
|
if (p[O].obj.k != n.rows[0].cells[O].obj.k && (p[O].inputSettings?.checkObject && c && ((await c({
|
|
6472
6500
|
obj: p[O].obj,
|
|
6473
6501
|
fun: p[O].fun,
|
|
6474
6502
|
cellId: O
|
|
6475
|
-
})).valid ||
|
|
6503
|
+
})).valid || y((R) => ({
|
|
6476
6504
|
...R,
|
|
6477
6505
|
[O]: {
|
|
6478
6506
|
...R[O],
|
|
@@ -6482,33 +6510,33 @@ const Hs = ({
|
|
|
6482
6510
|
}
|
|
6483
6511
|
}
|
|
6484
6512
|
}))), p[O].inputSettings?.checkValueOnExit)) {
|
|
6485
|
-
const
|
|
6513
|
+
const k = g(p);
|
|
6486
6514
|
l?.({
|
|
6487
|
-
value:
|
|
6515
|
+
value: k,
|
|
6488
6516
|
cell: O
|
|
6489
6517
|
});
|
|
6490
6518
|
}
|
|
6491
|
-
},
|
|
6519
|
+
}, x = (O) => {
|
|
6492
6520
|
if (!O.rows?.length || !O.columns?.length)
|
|
6493
6521
|
return {};
|
|
6494
|
-
const
|
|
6522
|
+
const k = O.rows?.[0];
|
|
6495
6523
|
return O.columns.filter((R) => R.visible ?? !0).reduce((R, D) => {
|
|
6496
6524
|
const T = {
|
|
6497
|
-
...
|
|
6525
|
+
...k.cells[D.name],
|
|
6498
6526
|
id: D.name,
|
|
6499
6527
|
label: D.title,
|
|
6500
6528
|
dSep: a,
|
|
6501
6529
|
data: {
|
|
6502
|
-
...
|
|
6530
|
+
...k.cells[D.name].data,
|
|
6503
6531
|
dSep: a
|
|
6504
6532
|
}
|
|
6505
6533
|
};
|
|
6506
|
-
return T.isEditable == null && (T.isEditable = !0), t && (T.isEditable = !1), T.isEditable && T.shape == null && (T.shape =
|
|
6534
|
+
return T.isEditable == null && (T.isEditable = !0), t && (T.isEditable = !1), T.isEditable && T.shape == null && (T.shape = Q.TEXT_FIELD), {
|
|
6507
6535
|
...R,
|
|
6508
6536
|
[D.name]: T
|
|
6509
6537
|
};
|
|
6510
6538
|
}, {});
|
|
6511
|
-
},
|
|
6539
|
+
}, g = (O) => ({
|
|
6512
6540
|
before: n,
|
|
6513
6541
|
after: {
|
|
6514
6542
|
type: "SmeupDataTable",
|
|
@@ -6519,7 +6547,7 @@ const Hs = ({
|
|
|
6519
6547
|
}
|
|
6520
6548
|
]
|
|
6521
6549
|
}
|
|
6522
|
-
}),
|
|
6550
|
+
}), L = n.setup?.commands?.map((O, k) => /* @__PURE__ */ Un(
|
|
6523
6551
|
Oe,
|
|
6524
6552
|
{
|
|
6525
6553
|
...O,
|
|
@@ -6527,18 +6555,18 @@ const Hs = ({
|
|
|
6527
6555
|
data: {
|
|
6528
6556
|
label: O.value
|
|
6529
6557
|
},
|
|
6530
|
-
id: `command-${
|
|
6531
|
-
key: `command-${
|
|
6532
|
-
shape:
|
|
6558
|
+
id: `command-${k}`,
|
|
6559
|
+
key: `command-${k}`,
|
|
6560
|
+
shape: Q.BUTTON,
|
|
6533
6561
|
onClick: () => E(O.obj.k)
|
|
6534
6562
|
}
|
|
6535
6563
|
)) || [];
|
|
6536
|
-
r ||
|
|
6564
|
+
r || L.unshift(
|
|
6537
6565
|
/* @__PURE__ */ m.jsx(
|
|
6538
6566
|
Oe,
|
|
6539
6567
|
{
|
|
6540
6568
|
decode: d(Te.CONFIRM_BUTTON),
|
|
6541
|
-
shape:
|
|
6569
|
+
shape: Q.BUTTON,
|
|
6542
6570
|
id: "",
|
|
6543
6571
|
obj: {
|
|
6544
6572
|
t: "",
|
|
@@ -6553,14 +6581,14 @@ const Hs = ({
|
|
|
6553
6581
|
"submit-command"
|
|
6554
6582
|
)
|
|
6555
6583
|
);
|
|
6556
|
-
const
|
|
6584
|
+
const j = {
|
|
6557
6585
|
smpForm: `${Zs["smp-form"]}`
|
|
6558
6586
|
};
|
|
6559
6587
|
return p && /* @__PURE__ */ m.jsxs(
|
|
6560
6588
|
"form",
|
|
6561
6589
|
{
|
|
6562
6590
|
"data-component": "input-panel",
|
|
6563
|
-
className:
|
|
6591
|
+
className: j.smpForm,
|
|
6564
6592
|
id: e || w,
|
|
6565
6593
|
onSubmit: (O) => {
|
|
6566
6594
|
O.preventDefault(), E();
|
|
@@ -6570,14 +6598,14 @@ const Hs = ({
|
|
|
6570
6598
|
Oe,
|
|
6571
6599
|
{
|
|
6572
6600
|
...O,
|
|
6573
|
-
onOptionsRequest: O.fun ? async (
|
|
6574
|
-
await i(
|
|
6601
|
+
onOptionsRequest: O.fun ? async (k, R) => Xs(
|
|
6602
|
+
await i(k, R, n, O.id)
|
|
6575
6603
|
) : void 0,
|
|
6576
|
-
onChange: (
|
|
6604
|
+
onChange: (k) => S(O.id, k),
|
|
6577
6605
|
onBlur: () => C(O.id),
|
|
6578
6606
|
onContextMenu: f,
|
|
6579
6607
|
onClick: () => {
|
|
6580
|
-
O.shape == "BTN" && b(O.id, O.fun);
|
|
6608
|
+
(O.shape == "BTN" || O.shape == "CFM") && b(O.id, O.fun);
|
|
6581
6609
|
},
|
|
6582
6610
|
data: {
|
|
6583
6611
|
...O.data,
|
|
@@ -6585,7 +6613,7 @@ const Hs = ({
|
|
|
6585
6613
|
}
|
|
6586
6614
|
}
|
|
6587
6615
|
)) }),
|
|
6588
|
-
|
|
6616
|
+
L.length > 0 && /* @__PURE__ */ m.jsx(
|
|
6589
6617
|
at,
|
|
6590
6618
|
{
|
|
6591
6619
|
layout: {
|
|
@@ -6594,13 +6622,13 @@ const Hs = ({
|
|
|
6594
6622
|
id: "1",
|
|
6595
6623
|
horizontal: !0,
|
|
6596
6624
|
justify: "start",
|
|
6597
|
-
content:
|
|
6625
|
+
content: L.map((O) => ({
|
|
6598
6626
|
id: O.props.id
|
|
6599
6627
|
}))
|
|
6600
6628
|
}
|
|
6601
6629
|
]
|
|
6602
6630
|
},
|
|
6603
|
-
children:
|
|
6631
|
+
children: L
|
|
6604
6632
|
}
|
|
6605
6633
|
)
|
|
6606
6634
|
]
|
|
@@ -6610,7 +6638,7 @@ const Hs = ({
|
|
|
6610
6638
|
export {
|
|
6611
6639
|
na as AppBar,
|
|
6612
6640
|
Pn as Autocomplete,
|
|
6613
|
-
|
|
6641
|
+
xe as Button,
|
|
6614
6642
|
us as ButtonList,
|
|
6615
6643
|
ds as Checkbox,
|
|
6616
6644
|
ps as Combobox,
|
|
@@ -6619,7 +6647,7 @@ export {
|
|
|
6619
6647
|
gs as DatePicker,
|
|
6620
6648
|
ra as Drawer,
|
|
6621
6649
|
oa as Field,
|
|
6622
|
-
|
|
6650
|
+
ce as Icon,
|
|
6623
6651
|
ia as InputPanel,
|
|
6624
6652
|
bs as Password,
|
|
6625
6653
|
gr as TabBar,
|