@sme.up/ketchup2 2.0.0-SNAPSHOT-20250701103402 → 2.0.0-SNAPSHOT-20250702073409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ketchup2.es.js
CHANGED
|
@@ -72,7 +72,7 @@ function Kr() {
|
|
|
72
72
|
switch (typeof h.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
74
|
), h.$$typeof) {
|
|
75
|
-
case
|
|
75
|
+
case p:
|
|
76
76
|
return "Portal";
|
|
77
77
|
case S:
|
|
78
78
|
return (h.displayName || "Context") + ".Provider";
|
|
@@ -124,7 +124,7 @@ function Kr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = $.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
@@ -139,7 +139,7 @@ function Kr() {
|
|
|
139
139
|
}
|
|
140
140
|
function o(h, v) {
|
|
141
141
|
function R() {
|
|
142
|
-
|
|
142
|
+
I || (I = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
v
|
|
145
145
|
));
|
|
@@ -151,17 +151,17 @@ function Kr() {
|
|
|
151
151
|
}
|
|
152
152
|
function l() {
|
|
153
153
|
var h = r(this.type);
|
|
154
|
-
return
|
|
154
|
+
return V[h] || (V[h] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h, v, R, L,
|
|
158
|
+
function c(h, v, R, L, C, N, W, B) {
|
|
159
159
|
return R = N.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: v,
|
|
163
163
|
props: N,
|
|
164
|
-
_owner:
|
|
164
|
+
_owner: C
|
|
165
165
|
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: l
|
|
@@ -179,7 +179,7 @@ function Kr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: W
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
@@ -187,25 +187,25 @@ function Kr() {
|
|
|
187
187
|
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h, v, R, L,
|
|
191
|
-
var
|
|
192
|
-
if (
|
|
190
|
+
function f(h, v, R, L, C, N, W, B) {
|
|
191
|
+
var U = v.children;
|
|
192
|
+
if (U !== void 0)
|
|
193
193
|
if (L)
|
|
194
|
-
if (
|
|
195
|
-
for (L = 0; L <
|
|
196
|
-
u(
|
|
197
|
-
Object.freeze && Object.freeze(
|
|
194
|
+
if (P(U)) {
|
|
195
|
+
for (L = 0; L < U.length; L++)
|
|
196
|
+
u(U[L]);
|
|
197
|
+
Object.freeze && Object.freeze(U);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
|
-
else u(
|
|
202
|
+
else u(U);
|
|
203
203
|
if (D.call(v, "key")) {
|
|
204
|
-
|
|
204
|
+
U = r(h);
|
|
205
205
|
var X = Object.keys(v).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[
|
|
208
|
+
L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[U + L] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
@@ -213,68 +213,68 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
215
|
L,
|
|
216
|
-
|
|
216
|
+
U,
|
|
217
217
|
X,
|
|
218
|
-
|
|
219
|
-
), Y[
|
|
218
|
+
U
|
|
219
|
+
), Y[U + L] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (
|
|
221
|
+
if (U = null, R !== void 0 && (t(R), U = "" + R), i(v) && (t(v.key), U = "" + v.key), "key" in v) {
|
|
222
222
|
R = {};
|
|
223
223
|
for (var K in v)
|
|
224
224
|
K !== "key" && (R[K] = v[K]);
|
|
225
225
|
} else R = v;
|
|
226
|
-
return
|
|
226
|
+
return U && o(
|
|
227
227
|
R,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
231
|
-
|
|
231
|
+
U,
|
|
232
232
|
N,
|
|
233
|
-
|
|
233
|
+
C,
|
|
234
234
|
s(),
|
|
235
235
|
R,
|
|
236
|
-
|
|
236
|
+
W,
|
|
237
237
|
B
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function u(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), $ = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, P = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
d = {
|
|
247
247
|
"react-stack-bottom-frame": function(h) {
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var I, V = {}, z = d["react-stack-bottom-frame"].bind(
|
|
252
|
+
d,
|
|
253
253
|
a
|
|
254
|
-
)(), J =
|
|
255
|
-
Ye.Fragment = y, Ye.jsx = function(h, v, R, L,
|
|
256
|
-
var N = 1e4 >
|
|
254
|
+
)(), J = F(n(a)), Y = {};
|
|
255
|
+
Ye.Fragment = y, Ye.jsx = function(h, v, R, L, C) {
|
|
256
|
+
var N = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
259
|
v,
|
|
260
260
|
R,
|
|
261
261
|
!1,
|
|
262
262
|
L,
|
|
263
|
-
|
|
263
|
+
C,
|
|
264
264
|
N ? Error("react-stack-top-frame") : z,
|
|
265
|
-
N ?
|
|
265
|
+
N ? F(n(h)) : J
|
|
266
266
|
);
|
|
267
|
-
}, Ye.jsxs = function(h, v, R, L,
|
|
268
|
-
var N = 1e4 >
|
|
267
|
+
}, Ye.jsxs = function(h, v, R, L, C) {
|
|
268
|
+
var N = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
271
|
v,
|
|
272
272
|
R,
|
|
273
273
|
!0,
|
|
274
274
|
L,
|
|
275
|
-
|
|
275
|
+
C,
|
|
276
276
|
N ? Error("react-stack-top-frame") : z,
|
|
277
|
-
N ?
|
|
277
|
+
N ? F(n(h)) : J
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ye;
|
|
@@ -386,53 +386,53 @@ function Zr() {
|
|
|
386
386
|
function i(u) {
|
|
387
387
|
if (!u || typeof u != "object")
|
|
388
388
|
throw new TypeError("argument obj is required");
|
|
389
|
-
var
|
|
389
|
+
var d = u.parameters, m = u.type;
|
|
390
390
|
if (!m || !a.test(m))
|
|
391
391
|
throw new TypeError("invalid type");
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
394
|
-
for (var y, x = Object.keys(
|
|
392
|
+
var p = m;
|
|
393
|
+
if (d && typeof d == "object")
|
|
394
|
+
for (var y, x = Object.keys(d).sort(), _ = 0; _ < x.length; _++) {
|
|
395
395
|
if (y = x[_], !t.test(y))
|
|
396
396
|
throw new TypeError("invalid parameter name");
|
|
397
|
-
|
|
397
|
+
p += "; " + y + "=" + c(d[y]);
|
|
398
398
|
}
|
|
399
|
-
return
|
|
399
|
+
return p;
|
|
400
400
|
}
|
|
401
401
|
function o(u) {
|
|
402
402
|
if (!u)
|
|
403
403
|
throw new TypeError("argument string is required");
|
|
404
|
-
var
|
|
405
|
-
if (typeof
|
|
404
|
+
var d = typeof u == "object" ? l(u) : u;
|
|
405
|
+
if (typeof d != "string")
|
|
406
406
|
throw new TypeError("argument string is required to be a string");
|
|
407
|
-
var m =
|
|
408
|
-
if (!a.test(
|
|
407
|
+
var m = d.indexOf(";"), p = m !== -1 ? d.slice(0, m).trim() : d.trim();
|
|
408
|
+
if (!a.test(p))
|
|
409
409
|
throw new TypeError("invalid media type");
|
|
410
|
-
var y = new f(
|
|
410
|
+
var y = new f(p.toLowerCase());
|
|
411
411
|
if (m !== -1) {
|
|
412
412
|
var x, _, w;
|
|
413
|
-
for (r.lastIndex = m; _ = r.exec(
|
|
413
|
+
for (r.lastIndex = m; _ = r.exec(d); ) {
|
|
414
414
|
if (_.index !== m)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
416
416
|
m += _[0].length, x = _[1].toLowerCase(), w = _[2], w.charCodeAt(0) === 34 && (w = w.slice(1, -1), w.indexOf("\\") !== -1 && (w = w.replace(n, "$1"))), y.parameters[x] = w;
|
|
417
417
|
}
|
|
418
|
-
if (m !==
|
|
418
|
+
if (m !== d.length)
|
|
419
419
|
throw new TypeError("invalid parameter format");
|
|
420
420
|
}
|
|
421
421
|
return y;
|
|
422
422
|
}
|
|
423
423
|
function l(u) {
|
|
424
|
-
var
|
|
425
|
-
if (typeof u.getHeader == "function" ?
|
|
424
|
+
var d;
|
|
425
|
+
if (typeof u.getHeader == "function" ? d = u.getHeader("content-type") : typeof u.headers == "object" && (d = u.headers && u.headers["content-type"]), typeof d != "string")
|
|
426
426
|
throw new TypeError("content-type header is missing from object");
|
|
427
|
-
return
|
|
427
|
+
return d;
|
|
428
428
|
}
|
|
429
429
|
function c(u) {
|
|
430
|
-
var
|
|
431
|
-
if (t.test(
|
|
432
|
-
return
|
|
433
|
-
if (
|
|
430
|
+
var d = String(u);
|
|
431
|
+
if (t.test(d))
|
|
432
|
+
return d;
|
|
433
|
+
if (d.length > 0 && !e.test(d))
|
|
434
434
|
throw new TypeError("invalid parameter value");
|
|
435
|
-
return '"' +
|
|
435
|
+
return '"' + d.replace(s, "\\$1") + '"';
|
|
436
436
|
}
|
|
437
437
|
function f(u) {
|
|
438
438
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = u;
|
|
@@ -522,12 +522,12 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
522
522
|
ve.splice(ve.indexOf(e), 1), e = null, o(f);
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
|
|
525
|
+
var d = e.getAttribute("id");
|
|
526
|
+
d && u.setAttribute("id", d);
|
|
527
527
|
var m = e.getAttribute("title");
|
|
528
528
|
m && u.setAttribute("title", m);
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
var p = e.getAttribute("width");
|
|
530
|
+
p && u.setAttribute("width", p);
|
|
531
531
|
var y = e.getAttribute("height");
|
|
532
532
|
y && u.setAttribute("height", y);
|
|
533
533
|
var x = Array.from(new Set(bt(bt(bt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
@@ -554,7 +554,7 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
554
554
|
}, E, b, j, k, A;
|
|
555
555
|
Object.keys(S).forEach(function(J) {
|
|
556
556
|
E = J, j = S[J], b = u.querySelectorAll(E + "[id]");
|
|
557
|
-
for (var Y = function(L,
|
|
557
|
+
for (var Y = function(L, C) {
|
|
558
558
|
k = b[L].id, A = k + "-" + sn();
|
|
559
559
|
var N;
|
|
560
560
|
Array.prototype.forEach.call(j, function(H) {
|
|
@@ -564,9 +564,9 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
564
564
|
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || N[Z].setAttribute(H, "url(#" + A + ")");
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
|
-
for (var
|
|
568
|
-
var K = U
|
|
569
|
-
K && K.toString() === "#" + b[L].id && B.push(U
|
|
567
|
+
for (var W = u.querySelectorAll("[*|href]"), B = [], U = 0, X = W.length; U < X; U++) {
|
|
568
|
+
var K = W[U].getAttributeNS(vt, "href");
|
|
569
|
+
K && K.toString() === "#" + b[L].id && B.push(W[U]);
|
|
570
570
|
}
|
|
571
571
|
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
572
572
|
B[ae].setAttributeNS(vt, "href", "#" + A);
|
|
@@ -576,11 +576,11 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
u.removeAttribute("xmlns:a");
|
|
579
|
-
for (var O = u.querySelectorAll("script"), T = [],
|
|
580
|
-
D = O[
|
|
579
|
+
for (var O = u.querySelectorAll("script"), T = [], $, D, P = 0, F = O.length; P < F; P++)
|
|
580
|
+
D = O[P].getAttribute("type"), (!D || D === "application/ecmascript" || D === "application/javascript" || D === "text/javascript") && ($ = O[P].innerText || O[P].textContent, $ && T.push($), u.removeChild(O[P]));
|
|
581
581
|
if (T.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
582
|
-
for (var
|
|
583
|
-
new Function(T[
|
|
582
|
+
for (var I = 0, V = T.length; I < V; I++)
|
|
583
|
+
new Function(T[I])(window);
|
|
584
584
|
Gt[l] = !0;
|
|
585
585
|
}
|
|
586
586
|
var z = u.querySelectorAll("style");
|
|
@@ -596,7 +596,7 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
596
596
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
597
597
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
598
598
|
} : i, l = n.beforeEach, c = l === void 0 ? function() {
|
|
599
|
-
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f,
|
|
599
|
+
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, y = p === void 0 ? !1 : p, x = n.renumerateIRIElements, _ = x === void 0 ? !0 : x;
|
|
600
600
|
if (e && "length" in e)
|
|
601
601
|
for (var w = 0, S = 0, E = e.length; S < E; S++)
|
|
602
602
|
Kt(e[S], m, _, u, y, c, function(b, j) {
|
|
@@ -618,7 +618,7 @@ var qt;
|
|
|
618
618
|
function ln() {
|
|
619
619
|
if (qt) return Q;
|
|
620
620
|
qt = 1;
|
|
621
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113,
|
|
621
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, _ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
622
622
|
function S(b) {
|
|
623
623
|
if (typeof b == "object" && b !== null) {
|
|
624
624
|
var j = b.$$typeof;
|
|
@@ -636,7 +636,7 @@ function ln() {
|
|
|
636
636
|
switch (b = b && b.$$typeof, b) {
|
|
637
637
|
case o:
|
|
638
638
|
case f:
|
|
639
|
-
case
|
|
639
|
+
case p:
|
|
640
640
|
case m:
|
|
641
641
|
case i:
|
|
642
642
|
return b;
|
|
@@ -652,7 +652,7 @@ function ln() {
|
|
|
652
652
|
function E(b) {
|
|
653
653
|
return S(b) === c;
|
|
654
654
|
}
|
|
655
|
-
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy =
|
|
655
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(b) {
|
|
656
656
|
return E(b) || S(b) === l;
|
|
657
657
|
}, Q.isConcurrentMode = E, Q.isContextConsumer = function(b) {
|
|
658
658
|
return S(b) === o;
|
|
@@ -665,7 +665,7 @@ function ln() {
|
|
|
665
665
|
}, Q.isFragment = function(b) {
|
|
666
666
|
return S(b) === n;
|
|
667
667
|
}, Q.isLazy = function(b) {
|
|
668
|
-
return S(b) ===
|
|
668
|
+
return S(b) === p;
|
|
669
669
|
}, Q.isMemo = function(b) {
|
|
670
670
|
return S(b) === m;
|
|
671
671
|
}, Q.isPortal = function(b) {
|
|
@@ -677,7 +677,7 @@ function ln() {
|
|
|
677
677
|
}, Q.isSuspense = function(b) {
|
|
678
678
|
return S(b) === u;
|
|
679
679
|
}, Q.isValidElementType = function(b) {
|
|
680
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b ===
|
|
680
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === d || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === m || b.$$typeof === i || b.$$typeof === o || b.$$typeof === f || b.$$typeof === x || b.$$typeof === _ || b.$$typeof === w || b.$$typeof === y);
|
|
681
681
|
}, Q.typeOf = S, Q;
|
|
682
682
|
}
|
|
683
683
|
var ee = {};
|
|
@@ -692,10 +692,10 @@ var ee = {};
|
|
|
692
692
|
var zt;
|
|
693
693
|
function cn() {
|
|
694
694
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
695
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113,
|
|
695
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, _ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
696
696
|
function S(M) {
|
|
697
697
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
698
|
-
M === n || M === c || M === a || M === s || M === u || M ===
|
|
698
|
+
M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === x || M.$$typeof === _ || M.$$typeof === w || M.$$typeof === y);
|
|
699
699
|
}
|
|
700
700
|
function E(M) {
|
|
701
701
|
if (typeof M == "object" && M !== null) {
|
|
@@ -716,7 +716,7 @@ function cn() {
|
|
|
716
716
|
switch (ne) {
|
|
717
717
|
case o:
|
|
718
718
|
case f:
|
|
719
|
-
case
|
|
719
|
+
case p:
|
|
720
720
|
case m:
|
|
721
721
|
case i:
|
|
722
722
|
return ne;
|
|
@@ -729,7 +729,7 @@ function cn() {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
var b = l, j = c, k = o, A = i, O = e, T = f,
|
|
732
|
+
var b = l, j = c, k = o, A = i, O = e, T = f, $ = n, D = p, P = m, F = t, I = a, V = s, z = u, J = !1;
|
|
733
733
|
function Y(M) {
|
|
734
734
|
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || E(M) === l;
|
|
735
735
|
}
|
|
@@ -745,19 +745,19 @@ function cn() {
|
|
|
745
745
|
function L(M) {
|
|
746
746
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function C(M) {
|
|
749
749
|
return E(M) === f;
|
|
750
750
|
}
|
|
751
751
|
function N(M) {
|
|
752
752
|
return E(M) === n;
|
|
753
753
|
}
|
|
754
|
-
function
|
|
755
|
-
return E(M) ===
|
|
754
|
+
function W(M) {
|
|
755
|
+
return E(M) === p;
|
|
756
756
|
}
|
|
757
757
|
function B(M) {
|
|
758
758
|
return E(M) === m;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function U(M) {
|
|
761
761
|
return E(M) === t;
|
|
762
762
|
}
|
|
763
763
|
function X(M) {
|
|
@@ -769,7 +769,7 @@ function cn() {
|
|
|
769
769
|
function ae(M) {
|
|
770
770
|
return E(M) === u;
|
|
771
771
|
}
|
|
772
|
-
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = A, ee.Element = O, ee.ForwardRef = T, ee.Fragment =
|
|
772
|
+
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = A, ee.Element = O, ee.ForwardRef = T, ee.Fragment = $, ee.Lazy = D, ee.Memo = P, ee.Portal = F, ee.Profiler = I, ee.StrictMode = V, ee.Suspense = z, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = R, ee.isElement = L, ee.isForwardRef = C, ee.isFragment = N, ee.isLazy = W, ee.isMemo = B, ee.isPortal = U, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = S, ee.typeOf = E;
|
|
773
773
|
}()), ee;
|
|
774
774
|
}
|
|
775
775
|
var Jt;
|
|
@@ -820,8 +820,8 @@ function un() {
|
|
|
820
820
|
e.call(o, u) && (l[u] = o[u]);
|
|
821
821
|
if (r) {
|
|
822
822
|
c = r(o);
|
|
823
|
-
for (var
|
|
824
|
-
t.call(o, c[
|
|
823
|
+
for (var d = 0; d < c.length; d++)
|
|
824
|
+
t.call(o, c[d]) && (l[c[d]] = o[c[d]]);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
return l;
|
|
@@ -862,14 +862,14 @@ function fn() {
|
|
|
862
862
|
var u;
|
|
863
863
|
try {
|
|
864
864
|
if (typeof a[f] != "function") {
|
|
865
|
-
var
|
|
865
|
+
var d = Error(
|
|
866
866
|
(l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
867
867
|
);
|
|
868
|
-
throw
|
|
868
|
+
throw d.name = "Invariant Violation", d;
|
|
869
869
|
}
|
|
870
870
|
u = a[f](i, f, l, o, null, e);
|
|
871
|
-
} catch (
|
|
872
|
-
u =
|
|
871
|
+
} catch (p) {
|
|
872
|
+
u = p;
|
|
873
873
|
}
|
|
874
874
|
if (u && !(u instanceof Error) && r(
|
|
875
875
|
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -911,7 +911,7 @@ function dn() {
|
|
|
911
911
|
if (typeof v == "function")
|
|
912
912
|
return v;
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var d = "<<anonymous>>", m = {
|
|
915
915
|
array: _("array"),
|
|
916
916
|
bigint: _("bigint"),
|
|
917
917
|
bool: _("boolean"),
|
|
@@ -930,9 +930,9 @@ function dn() {
|
|
|
930
930
|
oneOf: k,
|
|
931
931
|
oneOfType: O,
|
|
932
932
|
shape: D,
|
|
933
|
-
exact:
|
|
933
|
+
exact: P
|
|
934
934
|
};
|
|
935
|
-
function
|
|
935
|
+
function p(h, v) {
|
|
936
936
|
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
937
937
|
}
|
|
938
938
|
function y(h, v) {
|
|
@@ -942,33 +942,33 @@ function dn() {
|
|
|
942
942
|
function x(h) {
|
|
943
943
|
if (process.env.NODE_ENV !== "production")
|
|
944
944
|
var v = {}, R = 0;
|
|
945
|
-
function L(N,
|
|
946
|
-
if (
|
|
945
|
+
function L(N, W, B, U, X, K, ae) {
|
|
946
|
+
if (U = U || d, K = K || B, ae !== t) {
|
|
947
947
|
if (l) {
|
|
948
948
|
var M = new Error(
|
|
949
949
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
950
950
|
);
|
|
951
951
|
throw M.name = "Invariant Violation", M;
|
|
952
952
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
953
|
-
var H =
|
|
953
|
+
var H = U + ":" + B;
|
|
954
954
|
!v[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
955
955
|
R < 3 && (a(
|
|
956
|
-
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" +
|
|
956
|
+
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
957
957
|
), v[H] = !0, R++);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
return
|
|
960
|
+
return W[B] == null ? N ? W[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : h(W, B, U, X, K);
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
return
|
|
962
|
+
var C = L.bind(null, !1);
|
|
963
|
+
return C.isRequired = L.bind(null, !0), C;
|
|
964
964
|
}
|
|
965
965
|
function _(h) {
|
|
966
|
-
function v(R, L,
|
|
967
|
-
var
|
|
966
|
+
function v(R, L, C, N, W, B) {
|
|
967
|
+
var U = R[L], X = V(U);
|
|
968
968
|
if (X !== h) {
|
|
969
|
-
var K = z(
|
|
969
|
+
var K = z(U);
|
|
970
970
|
return new y(
|
|
971
|
-
"Invalid " + N + " `" +
|
|
971
|
+
"Invalid " + N + " `" + W + "` of type " + ("`" + K + "` supplied to `" + C + "`, expected ") + ("`" + h + "`."),
|
|
972
972
|
{ expectedType: h }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
@@ -980,16 +980,16 @@ function dn() {
|
|
|
980
980
|
return x(i);
|
|
981
981
|
}
|
|
982
982
|
function S(h) {
|
|
983
|
-
function v(R, L,
|
|
983
|
+
function v(R, L, C, N, W) {
|
|
984
984
|
if (typeof h != "function")
|
|
985
|
-
return new y("Property `" +
|
|
985
|
+
return new y("Property `" + W + "` of component `" + C + "` has invalid PropType notation inside arrayOf.");
|
|
986
986
|
var B = R[L];
|
|
987
987
|
if (!Array.isArray(B)) {
|
|
988
|
-
var
|
|
989
|
-
return new y("Invalid " + N + " `" +
|
|
988
|
+
var U = V(B);
|
|
989
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected an array."));
|
|
990
990
|
}
|
|
991
991
|
for (var X = 0; X < B.length; X++) {
|
|
992
|
-
var K = h(B, X,
|
|
992
|
+
var K = h(B, X, C, N, W + "[" + X + "]", t);
|
|
993
993
|
if (K instanceof Error)
|
|
994
994
|
return K;
|
|
995
995
|
}
|
|
@@ -998,32 +998,32 @@ function dn() {
|
|
|
998
998
|
return x(v);
|
|
999
999
|
}
|
|
1000
1000
|
function E() {
|
|
1001
|
-
function h(v, R, L,
|
|
1002
|
-
var
|
|
1003
|
-
if (!o(
|
|
1004
|
-
var B =
|
|
1005
|
-
return new y("Invalid " +
|
|
1001
|
+
function h(v, R, L, C, N) {
|
|
1002
|
+
var W = v[R];
|
|
1003
|
+
if (!o(W)) {
|
|
1004
|
+
var B = V(W);
|
|
1005
|
+
return new y("Invalid " + C + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
1009
|
return x(h);
|
|
1010
1010
|
}
|
|
1011
1011
|
function b() {
|
|
1012
|
-
function h(v, R, L,
|
|
1013
|
-
var
|
|
1014
|
-
if (!r.isValidElementType(
|
|
1015
|
-
var B =
|
|
1016
|
-
return new y("Invalid " +
|
|
1012
|
+
function h(v, R, L, C, N) {
|
|
1013
|
+
var W = v[R];
|
|
1014
|
+
if (!r.isValidElementType(W)) {
|
|
1015
|
+
var B = V(W);
|
|
1016
|
+
return new y("Invalid " + C + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
1017
1017
|
}
|
|
1018
1018
|
return null;
|
|
1019
1019
|
}
|
|
1020
1020
|
return x(h);
|
|
1021
1021
|
}
|
|
1022
1022
|
function j(h) {
|
|
1023
|
-
function v(R, L,
|
|
1023
|
+
function v(R, L, C, N, W) {
|
|
1024
1024
|
if (!(R[L] instanceof h)) {
|
|
1025
|
-
var B = h.name ||
|
|
1026
|
-
return new y("Invalid " + N + " `" +
|
|
1025
|
+
var B = h.name || d, U = Y(R[L]);
|
|
1026
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected ") + ("instance of `" + B + "`."));
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
@@ -1034,28 +1034,28 @@ function dn() {
|
|
|
1034
1034
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1035
1035
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1036
1036
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1037
|
-
function v(R, L,
|
|
1038
|
-
for (var B = R[L],
|
|
1039
|
-
if (
|
|
1037
|
+
function v(R, L, C, N, W) {
|
|
1038
|
+
for (var B = R[L], U = 0; U < h.length; U++)
|
|
1039
|
+
if (p(B, h[U]))
|
|
1040
1040
|
return null;
|
|
1041
1041
|
var X = JSON.stringify(h, function(ae, M) {
|
|
1042
1042
|
var H = z(M);
|
|
1043
1043
|
return H === "symbol" ? String(M) : M;
|
|
1044
1044
|
});
|
|
1045
|
-
return new y("Invalid " + N + " `" +
|
|
1045
|
+
return new y("Invalid " + N + " `" + W + "` of value `" + String(B) + "` " + ("supplied to `" + C + "`, expected one of " + X + "."));
|
|
1046
1046
|
}
|
|
1047
1047
|
return x(v);
|
|
1048
1048
|
}
|
|
1049
1049
|
function A(h) {
|
|
1050
|
-
function v(R, L,
|
|
1050
|
+
function v(R, L, C, N, W) {
|
|
1051
1051
|
if (typeof h != "function")
|
|
1052
|
-
return new y("Property `" +
|
|
1053
|
-
var B = R[L],
|
|
1054
|
-
if (
|
|
1055
|
-
return new y("Invalid " + N + " `" +
|
|
1052
|
+
return new y("Property `" + W + "` of component `" + C + "` has invalid PropType notation inside objectOf.");
|
|
1053
|
+
var B = R[L], U = V(B);
|
|
1054
|
+
if (U !== "object")
|
|
1055
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + C + "`, expected an object."));
|
|
1056
1056
|
for (var X in B)
|
|
1057
1057
|
if (n(B, X)) {
|
|
1058
|
-
var K = h(B, X,
|
|
1058
|
+
var K = h(B, X, C, N, W + "." + X, t);
|
|
1059
1059
|
if (K instanceof Error)
|
|
1060
1060
|
return K;
|
|
1061
1061
|
}
|
|
@@ -1073,39 +1073,39 @@ function dn() {
|
|
|
1073
1073
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(R) + " at index " + v + "."
|
|
1074
1074
|
), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function L(
|
|
1076
|
+
function L(C, N, W, B, U) {
|
|
1077
1077
|
for (var X = [], K = 0; K < h.length; K++) {
|
|
1078
|
-
var ae = h[K], M = ae(
|
|
1078
|
+
var ae = h[K], M = ae(C, N, W, B, U, t);
|
|
1079
1079
|
if (M == null)
|
|
1080
1080
|
return null;
|
|
1081
1081
|
M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
|
|
1082
1082
|
}
|
|
1083
1083
|
var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1084
|
-
return new y("Invalid " + B + " `" +
|
|
1084
|
+
return new y("Invalid " + B + " `" + U + "` supplied to " + ("`" + W + "`" + H + "."));
|
|
1085
1085
|
}
|
|
1086
1086
|
return x(L);
|
|
1087
1087
|
}
|
|
1088
1088
|
function T() {
|
|
1089
|
-
function h(v, R, L,
|
|
1090
|
-
return
|
|
1089
|
+
function h(v, R, L, C, N) {
|
|
1090
|
+
return F(v[R]) ? null : new y("Invalid " + C + " `" + N + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
1091
1091
|
}
|
|
1092
1092
|
return x(h);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function $(h, v, R, L, C) {
|
|
1095
1095
|
return new y(
|
|
1096
|
-
(h || "React class") + ": " + v + " type `" + R + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1096
|
+
(h || "React class") + ": " + v + " type `" + R + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + C + "`."
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
1099
|
function D(h) {
|
|
1100
|
-
function v(R, L,
|
|
1101
|
-
var B = R[L],
|
|
1102
|
-
if (
|
|
1103
|
-
return new y("Invalid " + N + " `" +
|
|
1100
|
+
function v(R, L, C, N, W) {
|
|
1101
|
+
var B = R[L], U = V(B);
|
|
1102
|
+
if (U !== "object")
|
|
1103
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1104
1104
|
for (var X in h) {
|
|
1105
1105
|
var K = h[X];
|
|
1106
1106
|
if (typeof K != "function")
|
|
1107
|
-
return C
|
|
1108
|
-
var ae = K(B, X,
|
|
1107
|
+
return $(C, N, W, X, z(K));
|
|
1108
|
+
var ae = K(B, X, C, N, W + "." + X, t);
|
|
1109
1109
|
if (ae)
|
|
1110
1110
|
return ae;
|
|
1111
1111
|
}
|
|
@@ -1113,22 +1113,22 @@ function dn() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return x(v);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
function v(R, L,
|
|
1118
|
-
var B = R[L],
|
|
1119
|
-
if (
|
|
1120
|
-
return new y("Invalid " + N + " `" +
|
|
1116
|
+
function P(h) {
|
|
1117
|
+
function v(R, L, C, N, W) {
|
|
1118
|
+
var B = R[L], U = V(B);
|
|
1119
|
+
if (U !== "object")
|
|
1120
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + C + "`, expected `object`."));
|
|
1121
1121
|
var X = e({}, R[L], h);
|
|
1122
1122
|
for (var K in X) {
|
|
1123
1123
|
var ae = h[K];
|
|
1124
1124
|
if (n(h, K) && typeof ae != "function")
|
|
1125
|
-
return C
|
|
1125
|
+
return $(C, N, W, K, z(ae));
|
|
1126
1126
|
if (!ae)
|
|
1127
1127
|
return new y(
|
|
1128
|
-
"Invalid " + N + " `" +
|
|
1128
|
+
"Invalid " + N + " `" + W + "` key `" + K + "` supplied to `" + C + "`.\nBad object: " + JSON.stringify(R[L], null, " ") + `
|
|
1129
1129
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1130
1130
|
);
|
|
1131
|
-
var M = ae(B, K,
|
|
1131
|
+
var M = ae(B, K, C, N, W + "." + K, t);
|
|
1132
1132
|
if (M)
|
|
1133
1133
|
return M;
|
|
1134
1134
|
}
|
|
@@ -1136,7 +1136,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1136
1136
|
}
|
|
1137
1137
|
return x(v);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function F(h) {
|
|
1140
1140
|
switch (typeof h) {
|
|
1141
1141
|
case "number":
|
|
1142
1142
|
case "string":
|
|
@@ -1146,7 +1146,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1146
1146
|
return !h;
|
|
1147
1147
|
case "object":
|
|
1148
1148
|
if (Array.isArray(h))
|
|
1149
|
-
return h.every(
|
|
1149
|
+
return h.every(F);
|
|
1150
1150
|
if (h === null || o(h))
|
|
1151
1151
|
return !0;
|
|
1152
1152
|
var v = u(h);
|
|
@@ -1154,12 +1154,12 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1154
1154
|
var R = v.call(h), L;
|
|
1155
1155
|
if (v !== h.entries) {
|
|
1156
1156
|
for (; !(L = R.next()).done; )
|
|
1157
|
-
if (!
|
|
1157
|
+
if (!F(L.value))
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
} else
|
|
1160
1160
|
for (; !(L = R.next()).done; ) {
|
|
1161
|
-
var
|
|
1162
|
-
if (
|
|
1161
|
+
var C = L.value;
|
|
1162
|
+
if (C && !F(C[1]))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
} else
|
|
@@ -1169,17 +1169,17 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function I(h, v) {
|
|
1173
1173
|
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function V(h) {
|
|
1176
1176
|
var v = typeof h;
|
|
1177
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1177
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(v, h) ? "symbol" : v;
|
|
1178
1178
|
}
|
|
1179
1179
|
function z(h) {
|
|
1180
1180
|
if (typeof h > "u" || h === null)
|
|
1181
1181
|
return "" + h;
|
|
1182
|
-
var v =
|
|
1182
|
+
var v = V(h);
|
|
1183
1183
|
if (v === "object") {
|
|
1184
1184
|
if (h instanceof Date)
|
|
1185
1185
|
return "date";
|
|
@@ -1203,7 +1203,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
function Y(h) {
|
|
1206
|
-
return !h.constructor || !h.constructor.name ?
|
|
1206
|
+
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1207
1207
|
}
|
|
1208
1208
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
1209
1209
|
}, Tt;
|
|
@@ -1220,10 +1220,10 @@ function pn() {
|
|
|
1220
1220
|
return t.resetWarningCache = e, Ot = function() {
|
|
1221
1221
|
function n(i, o, l, c, f, u) {
|
|
1222
1222
|
if (u !== r) {
|
|
1223
|
-
var
|
|
1223
|
+
var d = new Error(
|
|
1224
1224
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1225
1225
|
);
|
|
1226
|
-
throw
|
|
1226
|
+
throw d.name = "Invariant Violation", d;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
n.isRequired = n;
|
|
@@ -1293,7 +1293,7 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1293
1293
|
return t.renderSVG = function() {
|
|
1294
1294
|
var s = this;
|
|
1295
1295
|
if (this.reactWrapper instanceof mn(this.reactWrapper).Node) {
|
|
1296
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title,
|
|
1296
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, y = this.props.afterInjection, x = this.props.wrapper, _, w;
|
|
1297
1297
|
x === "svg" ? (_ = document.createElementNS(Qe, x), _.setAttribute("xmlns", Qe), _.setAttribute("xmlns:xlink", sr), w = document.createElementNS(Qe, x)) : (_ = document.createElement(x), w = document.createElement(x)), _.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(_);
|
|
1298
1298
|
var S = function(k) {
|
|
1299
1299
|
if (s.removeSVG(), !s._isMounted) {
|
|
@@ -1334,11 +1334,11 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1334
1334
|
if (u) {
|
|
1335
1335
|
var T = k.querySelector(":scope > title");
|
|
1336
1336
|
T && k.removeChild(T);
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1337
|
+
var $ = document.createElement("title");
|
|
1338
|
+
$.innerHTML = u, k.prepend($);
|
|
1339
1339
|
}
|
|
1340
1340
|
try {
|
|
1341
|
-
|
|
1341
|
+
p(k);
|
|
1342
1342
|
} catch (D) {
|
|
1343
1343
|
S(D);
|
|
1344
1344
|
}
|
|
@@ -1346,7 +1346,7 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1346
1346
|
on(w, {
|
|
1347
1347
|
afterEach: E,
|
|
1348
1348
|
beforeEach: b,
|
|
1349
|
-
cacheRequests:
|
|
1349
|
+
cacheRequests: d,
|
|
1350
1350
|
evalScripts: o,
|
|
1351
1351
|
httpRequestWithCredentials: l,
|
|
1352
1352
|
renumerateIRIElements: c
|
|
@@ -1434,9 +1434,9 @@ const ra = (r) => {
|
|
|
1434
1434
|
isInteractable: c = !1,
|
|
1435
1435
|
spin: f = !1,
|
|
1436
1436
|
title: u,
|
|
1437
|
-
tabIndex:
|
|
1437
|
+
tabIndex: d
|
|
1438
1438
|
}) => {
|
|
1439
|
-
const [m,
|
|
1439
|
+
const [m, p] = G(r), y = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = y && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), _ = ar(`assets/svg/${r}.svg`), w = ar(
|
|
1440
1440
|
`assets/svg/${n}.svg`
|
|
1441
1441
|
), S = {
|
|
1442
1442
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
@@ -1461,7 +1461,7 @@ const ra = (r) => {
|
|
|
1461
1461
|
className: S.svg,
|
|
1462
1462
|
onClick: E,
|
|
1463
1463
|
onKeyDown: b,
|
|
1464
|
-
tabIndex:
|
|
1464
|
+
tabIndex: d
|
|
1465
1465
|
}
|
|
1466
1466
|
) : y ? (
|
|
1467
1467
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
@@ -1472,7 +1472,7 @@ const ra = (r) => {
|
|
|
1472
1472
|
width: e || "16px",
|
|
1473
1473
|
height: t || "auto",
|
|
1474
1474
|
alt: u,
|
|
1475
|
-
onError: () =>
|
|
1475
|
+
onError: () => p(w),
|
|
1476
1476
|
onClick: E,
|
|
1477
1477
|
className: S.img,
|
|
1478
1478
|
title: u,
|
|
@@ -1496,7 +1496,7 @@ const ra = (r) => {
|
|
|
1496
1496
|
className: S.svg,
|
|
1497
1497
|
onClick: E,
|
|
1498
1498
|
onKeyDown: b,
|
|
1499
|
-
tabIndex:
|
|
1499
|
+
tabIndex: d
|
|
1500
1500
|
}
|
|
1501
1501
|
) });
|
|
1502
1502
|
}
|
|
@@ -1523,14 +1523,14 @@ const ra = (r) => {
|
|
|
1523
1523
|
showText: c = !0,
|
|
1524
1524
|
fullWidth: f = !1,
|
|
1525
1525
|
loading: u = !1,
|
|
1526
|
-
justify:
|
|
1526
|
+
justify: d = "center",
|
|
1527
1527
|
title: m,
|
|
1528
|
-
optionalDisplayValue:
|
|
1528
|
+
optionalDisplayValue: p,
|
|
1529
1529
|
squared: y = !1,
|
|
1530
1530
|
submit: x = !1
|
|
1531
1531
|
}) => {
|
|
1532
1532
|
const _ = {
|
|
1533
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
1533
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${d} ${y && !c ? "smp-button-squared" : ""}`
|
|
1534
1534
|
};
|
|
1535
1535
|
return /* @__PURE__ */ g.jsx(
|
|
1536
1536
|
"button",
|
|
@@ -1542,7 +1542,7 @@ const ra = (r) => {
|
|
|
1542
1542
|
"aria-label": t,
|
|
1543
1543
|
disabled: s,
|
|
1544
1544
|
"aria-busy": u,
|
|
1545
|
-
title: m ||
|
|
1545
|
+
title: m || p,
|
|
1546
1546
|
children: u ? /* @__PURE__ */ g.jsx(le, { icon: "spinner", state: or(i), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
1547
1547
|
n && l && /* @__PURE__ */ g.jsx(
|
|
1548
1548
|
le,
|
|
@@ -1554,7 +1554,7 @@ const ra = (r) => {
|
|
|
1554
1554
|
height: ir(a)
|
|
1555
1555
|
}
|
|
1556
1556
|
),
|
|
1557
|
-
c && /* @__PURE__ */ g.jsx("span", { children:
|
|
1557
|
+
c && /* @__PURE__ */ g.jsx("span", { children: p || r })
|
|
1558
1558
|
] })
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
@@ -1604,9 +1604,9 @@ const ra = (r) => {
|
|
|
1604
1604
|
selectedIndex: n,
|
|
1605
1605
|
onTabChange: s
|
|
1606
1606
|
}) => {
|
|
1607
|
-
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1),
|
|
1607
|
+
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1), d = ce(null);
|
|
1608
1608
|
if (re(() => {
|
|
1609
|
-
const S =
|
|
1609
|
+
const S = d.current;
|
|
1610
1610
|
if (!S) return;
|
|
1611
1611
|
x();
|
|
1612
1612
|
const E = () => x();
|
|
@@ -1623,17 +1623,17 @@ const ra = (r) => {
|
|
|
1623
1623
|
scrollButtonRight: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonRight"]}`,
|
|
1624
1624
|
scrollButtonLeft: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1625
1625
|
active: xe["smp-active"]
|
|
1626
|
-
},
|
|
1627
|
-
const S =
|
|
1626
|
+
}, p = 100, y = 2, x = () => {
|
|
1627
|
+
const S = d.current;
|
|
1628
1628
|
S && (c(S.scrollLeft > 0), u(
|
|
1629
1629
|
S.scrollLeft + S.clientWidth < S.scrollWidth - y
|
|
1630
1630
|
));
|
|
1631
1631
|
}, _ = () => {
|
|
1632
1632
|
var S;
|
|
1633
|
-
(S =
|
|
1633
|
+
(S = d.current) == null || S.scrollBy({ left: -p, behavior: "smooth" });
|
|
1634
1634
|
}, w = () => {
|
|
1635
1635
|
var S;
|
|
1636
|
-
(S =
|
|
1636
|
+
(S = d.current) == null || S.scrollBy({ left: p, behavior: "smooth" });
|
|
1637
1637
|
};
|
|
1638
1638
|
return /* @__PURE__ */ g.jsxs(
|
|
1639
1639
|
"div",
|
|
@@ -1652,7 +1652,7 @@ const ra = (r) => {
|
|
|
1652
1652
|
sizing: e
|
|
1653
1653
|
}
|
|
1654
1654
|
) }),
|
|
1655
|
-
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref:
|
|
1655
|
+
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref: d, role: "tablist", children: r.children.map((S, E) => /* @__PURE__ */ g.jsxs(
|
|
1656
1656
|
"button",
|
|
1657
1657
|
{
|
|
1658
1658
|
type: "button",
|
|
@@ -1726,13 +1726,13 @@ const ra = (r) => {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}) => {
|
|
1728
1728
|
const [t, n] = G(0), s = {};
|
|
1729
|
-
at.Children.forEach(r, (
|
|
1730
|
-
at.isValidElement(
|
|
1729
|
+
at.Children.forEach(r, (p) => {
|
|
1730
|
+
at.isValidElement(p) && (s[p.props.id] = p);
|
|
1731
1731
|
});
|
|
1732
1732
|
const a = "--smp-grid-template-cols", i = "--smp-grid-template-rows", o = Rr(
|
|
1733
1733
|
e.sections ?? [],
|
|
1734
1734
|
Object.keys(s)
|
|
1735
|
-
), l = (
|
|
1735
|
+
), l = (p) => p.reduce((y, x) => {
|
|
1736
1736
|
var b, j;
|
|
1737
1737
|
let _ = "", w = {}, S = {}, E = "";
|
|
1738
1738
|
return (b = x.sections) != null && b.length ? (_ = ge["smp-layout-section-grid"], w = l(x.sections), x.gridCols === void 0 && (E = ge[x.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (x.horizontal || Ut(x.sections)) && (S = Yt(
|
|
@@ -1751,21 +1751,21 @@ const ra = (r) => {
|
|
|
1751
1751
|
}, {}), c = l(o), f = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, u = e.horizontal || Ut(e.sections || []) ? Yt(
|
|
1752
1752
|
o,
|
|
1753
1753
|
e.horizontal ? a : i
|
|
1754
|
-
) : {},
|
|
1754
|
+
) : {}, d = (p, y) => {
|
|
1755
1755
|
var _, w;
|
|
1756
1756
|
const x = /* @__PURE__ */ g.jsx(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
|
-
"smp-id": `section-${
|
|
1760
|
-
className: c[
|
|
1761
|
-
style: c[
|
|
1762
|
-
children: (_ =
|
|
1763
|
-
(S) => m(S,
|
|
1759
|
+
"smp-id": `section-${p.id}`,
|
|
1760
|
+
className: c[p.id].classes,
|
|
1761
|
+
style: c[p.id].styles,
|
|
1762
|
+
children: (_ = p.sections) != null && _.length ? p.sections.map((S) => d(S)) : (w = p.content) == null ? void 0 : w.map(
|
|
1763
|
+
(S) => m(S, p.justify, p.align)
|
|
1764
1764
|
)
|
|
1765
1765
|
},
|
|
1766
|
-
`section-${
|
|
1766
|
+
`section-${p.id}`
|
|
1767
1767
|
);
|
|
1768
|
-
return
|
|
1768
|
+
return p.title && !y ? /* @__PURE__ */ g.jsxs(
|
|
1769
1769
|
"div",
|
|
1770
1770
|
{
|
|
1771
1771
|
className: ge["smp-layout-section-with-title"],
|
|
@@ -1773,31 +1773,31 @@ const ra = (r) => {
|
|
|
1773
1773
|
/* @__PURE__ */ g.jsx(
|
|
1774
1774
|
"span",
|
|
1775
1775
|
{
|
|
1776
|
-
className: `${ge["smp-layout-section-title"]} ${
|
|
1777
|
-
children: /* @__PURE__ */ g.jsx(Ce, { label:
|
|
1776
|
+
className: `${ge["smp-layout-section-title"]} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
1777
|
+
children: /* @__PURE__ */ g.jsx(Ce, { label: p.title })
|
|
1778
1778
|
}
|
|
1779
1779
|
),
|
|
1780
1780
|
x
|
|
1781
1781
|
]
|
|
1782
1782
|
},
|
|
1783
|
-
`title-section-${
|
|
1783
|
+
`title-section-${p.id}`
|
|
1784
1784
|
) : x;
|
|
1785
|
-
}, m = (
|
|
1786
|
-
const _ = s[
|
|
1785
|
+
}, m = (p, y, x) => {
|
|
1786
|
+
const _ = s[p.id];
|
|
1787
1787
|
if (!_) return null;
|
|
1788
1788
|
const S = {
|
|
1789
|
-
gridColumnStart: (
|
|
1790
|
-
gridColumnEnd:
|
|
1789
|
+
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1790
|
+
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
1791
1791
|
}, E = `${ge["smp-layout-cell-container"]} ${y ? `smp-justifyContent-${y}` : ""} ${x ? `smp-alignItems-${x}` : ""}`;
|
|
1792
1792
|
return /* @__PURE__ */ g.jsx(
|
|
1793
1793
|
"div",
|
|
1794
1794
|
{
|
|
1795
1795
|
className: E,
|
|
1796
1796
|
style: S,
|
|
1797
|
-
"smp-id":
|
|
1797
|
+
"smp-id": p.id,
|
|
1798
1798
|
children: _
|
|
1799
1799
|
},
|
|
1800
|
-
|
|
1800
|
+
p.id
|
|
1801
1801
|
);
|
|
1802
1802
|
};
|
|
1803
1803
|
return /* @__PURE__ */ g.jsxs("div", { className: f, style: u, "smp-id": "layout", children: [
|
|
@@ -1806,8 +1806,8 @@ const ra = (r) => {
|
|
|
1806
1806
|
{
|
|
1807
1807
|
data: {
|
|
1808
1808
|
type: "SmeupDataTree",
|
|
1809
|
-
children: o.map((
|
|
1810
|
-
decode:
|
|
1809
|
+
children: o.map((p) => ({
|
|
1810
|
+
decode: p.title || p.id || "Tab",
|
|
1811
1811
|
obj: { t: "", p: "", k: "" },
|
|
1812
1812
|
placeholderIcon: "tab",
|
|
1813
1813
|
cells: {},
|
|
@@ -1820,7 +1820,7 @@ const ra = (r) => {
|
|
|
1820
1820
|
toolbar: !1
|
|
1821
1821
|
}
|
|
1822
1822
|
),
|
|
1823
|
-
e.sectionsType ?
|
|
1823
|
+
e.sectionsType ? d(o[t], !0) : o.map((p) => d(p))
|
|
1824
1824
|
] });
|
|
1825
1825
|
}, te = {
|
|
1826
1826
|
AUTOCOMPLETE: "ACP",
|
|
@@ -1830,6 +1830,7 @@ const ra = (r) => {
|
|
|
1830
1830
|
CHIP: "CHI",
|
|
1831
1831
|
COMBOBOX: "CMB",
|
|
1832
1832
|
DATE: "CAL",
|
|
1833
|
+
EDITOR: "EDT",
|
|
1833
1834
|
ICON: "ICO",
|
|
1834
1835
|
IMAGE: "IMG",
|
|
1835
1836
|
INPUT_NUMBER: "INR",
|
|
@@ -1880,7 +1881,7 @@ class lt {
|
|
|
1880
1881
|
}
|
|
1881
1882
|
}
|
|
1882
1883
|
function En(r, e) {
|
|
1883
|
-
if (
|
|
1884
|
+
if (Pt(r)) {
|
|
1884
1885
|
const f = new Date(r);
|
|
1885
1886
|
if (!isNaN(f.getTime()))
|
|
1886
1887
|
return f;
|
|
@@ -1912,7 +1913,7 @@ function En(r, e) {
|
|
|
1912
1913
|
}
|
|
1913
1914
|
return r;
|
|
1914
1915
|
}
|
|
1915
|
-
function
|
|
1916
|
+
function Pt(r) {
|
|
1916
1917
|
return /^\d{4}-\d{2}-\d{2}$/.test(r) && r.length === 10;
|
|
1917
1918
|
}
|
|
1918
1919
|
function et(r) {
|
|
@@ -1991,7 +1992,7 @@ const lr = /* @__PURE__ */ new Map([
|
|
|
1991
1992
|
return Tn(r) && `${r.substring(0, 4)}-${r.substring(4, 6)}-${r.substring(6, 8)}` || r;
|
|
1992
1993
|
},
|
|
1993
1994
|
isoToLegacy(r) {
|
|
1994
|
-
return
|
|
1995
|
+
return Pt(r) && r.replaceAll("-", "") || r;
|
|
1995
1996
|
}
|
|
1996
1997
|
}
|
|
1997
1998
|
]
|
|
@@ -2003,10 +2004,10 @@ function ht({
|
|
|
2003
2004
|
const t = ce(null), n = ce(null), [s, a] = G(0), i = ue(() => {
|
|
2004
2005
|
const o = t.current, l = n.current;
|
|
2005
2006
|
if (!o || !l) return;
|
|
2006
|
-
const { top: c, left: f, width: u, height:
|
|
2007
|
+
const { top: c, left: f, width: u, height: d } = o.getBoundingClientRect();
|
|
2007
2008
|
a(u);
|
|
2008
|
-
const m = l.offsetHeight,
|
|
2009
|
-
if (
|
|
2009
|
+
const m = l.offsetHeight, p = l.offsetWidth;
|
|
2010
|
+
if (p === 0 || m === 0) {
|
|
2010
2011
|
requestAnimationFrame(i);
|
|
2011
2012
|
return;
|
|
2012
2013
|
}
|
|
@@ -2016,10 +2017,10 @@ function ht({
|
|
|
2016
2017
|
y -= m;
|
|
2017
2018
|
break;
|
|
2018
2019
|
case "bottom":
|
|
2019
|
-
y +=
|
|
2020
|
+
y += d;
|
|
2020
2021
|
break;
|
|
2021
2022
|
case "left":
|
|
2022
|
-
x -=
|
|
2023
|
+
x -= p;
|
|
2023
2024
|
break;
|
|
2024
2025
|
case "right":
|
|
2025
2026
|
x += u;
|
|
@@ -2097,9 +2098,9 @@ const Fe = (r, e, t) => {
|
|
|
2097
2098
|
tooltip: c = !1,
|
|
2098
2099
|
rotatedShapeIcon: f = !1,
|
|
2099
2100
|
ref: u,
|
|
2100
|
-
inputRef:
|
|
2101
|
+
inputRef: d,
|
|
2101
2102
|
inputType: m = "text",
|
|
2102
|
-
ariaLabel:
|
|
2103
|
+
ariaLabel: p = "input field",
|
|
2103
2104
|
label: y,
|
|
2104
2105
|
helperText: x = !1,
|
|
2105
2106
|
error: _,
|
|
@@ -2112,34 +2113,34 @@ const Fe = (r, e, t) => {
|
|
|
2112
2113
|
inputMode: A = "text",
|
|
2113
2114
|
width: O,
|
|
2114
2115
|
autocomplete: T,
|
|
2115
|
-
size:
|
|
2116
|
+
size: $,
|
|
2116
2117
|
maxLength: D,
|
|
2117
|
-
onBlur:
|
|
2118
|
-
onChange:
|
|
2119
|
-
onKeyDown:
|
|
2120
|
-
onShapeIconClick:
|
|
2118
|
+
onBlur: P,
|
|
2119
|
+
onChange: F,
|
|
2120
|
+
onKeyDown: I,
|
|
2121
|
+
onShapeIconClick: V,
|
|
2121
2122
|
onClick: z
|
|
2122
2123
|
}) => {
|
|
2123
|
-
const J = Re(), Y = `${J}-helper`, h = _ ? "danger" : o, v =
|
|
2124
|
-
|
|
2125
|
-
},
|
|
2124
|
+
const J = Re(), Y = `${J}-helper`, h = _ ? "danger" : o, v = x || !!_, R = (N) => {
|
|
2125
|
+
F == null || F(N.target.value);
|
|
2126
|
+
}, L = {
|
|
2126
2127
|
wrapper: `${ye["smp-textfield-wrapper"]} ${S ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
2127
2128
|
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${w ? ye[`smp-textfield-${w}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
2128
2129
|
input: `${ye["smp-textfield-input"]}`
|
|
2129
2130
|
};
|
|
2130
2131
|
if (l && (l !== "notSelectable" || s)) {
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2132
|
+
const N = ye[`smp-textfield-variant-${l}`];
|
|
2133
|
+
N && (L.container += ` ${N}`);
|
|
2133
2134
|
}
|
|
2134
|
-
const
|
|
2135
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
2135
|
+
const C = O ? { "--smp-textField-width-base": O } : void 0;
|
|
2136
|
+
return /* @__PURE__ */ g.jsxs("div", { className: L.wrapper, "data-component": E, children: [
|
|
2136
2137
|
y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
|
|
2137
2138
|
/* @__PURE__ */ g.jsxs(
|
|
2138
2139
|
"div",
|
|
2139
2140
|
{
|
|
2140
|
-
className:
|
|
2141
|
+
className: L.container,
|
|
2141
2142
|
ref: u,
|
|
2142
|
-
style:
|
|
2143
|
+
style: C,
|
|
2143
2144
|
children: [
|
|
2144
2145
|
t && /* @__PURE__ */ g.jsx(le, { icon: t, disabled: r }),
|
|
2145
2146
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2149,32 +2150,31 @@ const Fe = (r, e, t) => {
|
|
|
2149
2150
|
type: m,
|
|
2150
2151
|
value: e,
|
|
2151
2152
|
placeholder: n,
|
|
2152
|
-
onChange:
|
|
2153
|
-
onBlur:
|
|
2154
|
-
className:
|
|
2153
|
+
onChange: R,
|
|
2154
|
+
onBlur: P,
|
|
2155
|
+
className: L.input,
|
|
2155
2156
|
disabled: r,
|
|
2156
2157
|
readOnly: !s,
|
|
2157
|
-
onKeyDown:
|
|
2158
|
-
"aria-label":
|
|
2159
|
-
ref:
|
|
2160
|
-
"aria-describedby":
|
|
2158
|
+
onKeyDown: I,
|
|
2159
|
+
"aria-label": p,
|
|
2160
|
+
ref: d,
|
|
2161
|
+
"aria-describedby": v ? Y : void 0,
|
|
2161
2162
|
min: b,
|
|
2162
2163
|
max: j,
|
|
2163
2164
|
step: k,
|
|
2164
2165
|
inputMode: A,
|
|
2165
2166
|
autoComplete: T,
|
|
2166
|
-
size:
|
|
2167
|
+
size: $,
|
|
2167
2168
|
maxLength: D,
|
|
2168
2169
|
onClick: z
|
|
2169
2170
|
}
|
|
2170
2171
|
),
|
|
2171
|
-
|
|
2172
|
+
a && /* @__PURE__ */ g.jsx(
|
|
2172
2173
|
le,
|
|
2173
2174
|
{
|
|
2174
|
-
icon:
|
|
2175
|
+
icon: a,
|
|
2175
2176
|
disabled: r,
|
|
2176
|
-
|
|
2177
|
-
onClick: F,
|
|
2177
|
+
onClick: V,
|
|
2178
2178
|
rotated: f,
|
|
2179
2179
|
isInteractable: s,
|
|
2180
2180
|
tabIndex: 0
|
|
@@ -2183,7 +2183,7 @@ const Fe = (r, e, t) => {
|
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
2185
2185
|
),
|
|
2186
|
-
|
|
2186
|
+
v && /* @__PURE__ */ g.jsx(
|
|
2187
2187
|
Lr,
|
|
2188
2188
|
{
|
|
2189
2189
|
helperText: _,
|
|
@@ -2211,12 +2211,12 @@ function Ar({
|
|
|
2211
2211
|
offsetTop: m * e
|
|
2212
2212
|
});
|
|
2213
2213
|
const u = ue((m) => {
|
|
2214
|
-
const
|
|
2215
|
-
a(
|
|
2216
|
-
}, []),
|
|
2214
|
+
const p = m.target.scrollTop;
|
|
2215
|
+
a(p);
|
|
2216
|
+
}, []), d = (m) => {
|
|
2217
2217
|
if (!i.current) return;
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2218
|
+
const p = m * e, y = p + e, x = i.current, _ = x.scrollTop, w = _ + t;
|
|
2219
|
+
p < _ ? x.scrollTop = p : y > w && (x.scrollTop = y - t);
|
|
2220
2220
|
};
|
|
2221
2221
|
return {
|
|
2222
2222
|
virtualItems: f,
|
|
@@ -2244,7 +2244,7 @@ function Ar({
|
|
|
2244
2244
|
startIndex: l,
|
|
2245
2245
|
endIndex: c
|
|
2246
2246
|
},
|
|
2247
|
-
scrollToIndex:
|
|
2247
|
+
scrollToIndex: d
|
|
2248
2248
|
};
|
|
2249
2249
|
}
|
|
2250
2250
|
const tt = {
|
|
@@ -2263,7 +2263,7 @@ function Rn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
return Math.ceil(i + n);
|
|
2265
2265
|
}
|
|
2266
|
-
const jn = 10,
|
|
2266
|
+
const jn = 10, Pr = ({
|
|
2267
2267
|
id: r,
|
|
2268
2268
|
options: e,
|
|
2269
2269
|
displayMode: t = "Both",
|
|
@@ -2278,13 +2278,13 @@ const jn = 10, Ir = ({
|
|
|
2278
2278
|
onKeyDown: c,
|
|
2279
2279
|
isOpen: f
|
|
2280
2280
|
}) => {
|
|
2281
|
-
var
|
|
2282
|
-
const [u,
|
|
2281
|
+
var F;
|
|
2282
|
+
const [u, d] = G(""), m = 40, [p, y] = G(
|
|
2283
2283
|
a !== null ? a : -1
|
|
2284
2284
|
), [x, _] = G(o || 200), w = ce(null), S = s !== void 0 ? s : e.length > jn, E = u ? e.filter(
|
|
2285
|
-
(
|
|
2286
|
-
) : e, b = (
|
|
2287
|
-
|
|
2285
|
+
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2286
|
+
) : e, b = (I) => {
|
|
2287
|
+
d(I);
|
|
2288
2288
|
}, { virtualItems: j, containerProps: k, innerProps: A, scrollToIndex: O } = Ar({
|
|
2289
2289
|
items: E,
|
|
2290
2290
|
itemHeight: m,
|
|
@@ -2292,27 +2292,27 @@ const jn = 10, Ir = ({
|
|
|
2292
2292
|
overscan: 5
|
|
2293
2293
|
});
|
|
2294
2294
|
re(() => {
|
|
2295
|
-
a !== null && a !==
|
|
2295
|
+
a !== null && a !== p && y(a);
|
|
2296
2296
|
}, [a]), re(() => {
|
|
2297
|
-
|
|
2298
|
-
}, [
|
|
2297
|
+
p >= 0 && p < E.length && O(p);
|
|
2298
|
+
}, [p, E]), re(() => {
|
|
2299
2299
|
f && (w != null && w.current) && w.current.focus();
|
|
2300
2300
|
}, [f, w]), re(() => {
|
|
2301
|
-
const
|
|
2302
|
-
_(
|
|
2301
|
+
const I = Rn(e, t);
|
|
2302
|
+
_(I);
|
|
2303
2303
|
}, [e, t]);
|
|
2304
|
-
const T = (
|
|
2305
|
-
if (
|
|
2306
|
-
|
|
2307
|
-
let
|
|
2308
|
-
|
|
2309
|
-
} else
|
|
2310
|
-
c && c(
|
|
2311
|
-
},
|
|
2312
|
-
T(
|
|
2313
|
-
}, D = (
|
|
2314
|
-
T(
|
|
2315
|
-
},
|
|
2304
|
+
const T = (I) => {
|
|
2305
|
+
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2306
|
+
I.preventDefault();
|
|
2307
|
+
let V = p;
|
|
2308
|
+
I.key === "ArrowDown" ? V = p < E.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (V = p > 0 ? p - 1 : E.length - 1), y(V);
|
|
2309
|
+
} else I.key === "Enter" ? p >= 0 && p < E.length && (l == null || l(E[p])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2310
|
+
c && c(I);
|
|
2311
|
+
}, $ = (I) => {
|
|
2312
|
+
T(I);
|
|
2313
|
+
}, D = (I) => {
|
|
2314
|
+
T(I);
|
|
2315
|
+
}, P = {
|
|
2316
2316
|
wrapper: `${tt["smp-list"]}`,
|
|
2317
2317
|
container: `${tt["smp-list-container"]}`,
|
|
2318
2318
|
virtualScroll: `${tt["smp-list-virtualScroll"]}`,
|
|
@@ -2323,7 +2323,7 @@ const jn = 10, Ir = ({
|
|
|
2323
2323
|
{
|
|
2324
2324
|
id: r,
|
|
2325
2325
|
ref: n,
|
|
2326
|
-
className:
|
|
2326
|
+
className: P.wrapper,
|
|
2327
2327
|
"data-component": "list",
|
|
2328
2328
|
style: {
|
|
2329
2329
|
width: x,
|
|
@@ -2337,7 +2337,7 @@ const jn = 10, Ir = ({
|
|
|
2337
2337
|
placeholder: "Search...",
|
|
2338
2338
|
fullWidth: !0,
|
|
2339
2339
|
onChange: b,
|
|
2340
|
-
onKeyDown:
|
|
2340
|
+
onKeyDown: $,
|
|
2341
2341
|
inputRef: w
|
|
2342
2342
|
}
|
|
2343
2343
|
),
|
|
@@ -2345,25 +2345,25 @@ const jn = 10, Ir = ({
|
|
|
2345
2345
|
"div",
|
|
2346
2346
|
{
|
|
2347
2347
|
...k,
|
|
2348
|
-
className:
|
|
2348
|
+
className: P.container,
|
|
2349
2349
|
tabIndex: 0,
|
|
2350
2350
|
role: "listbox",
|
|
2351
2351
|
"aria-label": "List",
|
|
2352
2352
|
onKeyDown: D,
|
|
2353
|
-
"aria-activedescendant":
|
|
2354
|
-
children: /* @__PURE__ */ g.jsx("div", { ...A, className:
|
|
2355
|
-
const J = i.includes(
|
|
2353
|
+
"aria-activedescendant": p >= 0 && p < E.length ? (F = E[p]) == null ? void 0 : F.id : void 0,
|
|
2354
|
+
children: /* @__PURE__ */ g.jsx("div", { ...A, className: P.virtualScroll, children: j.map(({ item: I, index: V, offsetTop: z }) => {
|
|
2355
|
+
const J = i.includes(I.id);
|
|
2356
2356
|
return (
|
|
2357
2357
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2358
2358
|
/* @__PURE__ */ g.jsxs(
|
|
2359
2359
|
"li",
|
|
2360
2360
|
{
|
|
2361
2361
|
role: "option",
|
|
2362
|
-
id:
|
|
2363
|
-
"aria-selected":
|
|
2362
|
+
id: I.id,
|
|
2363
|
+
"aria-selected": p === V ? "true" : "false",
|
|
2364
2364
|
tabIndex: -1,
|
|
2365
|
-
className: `${
|
|
2366
|
-
"aria-label":
|
|
2365
|
+
className: `${P.listItem} ${p === V ? "selected-item" : ""}`,
|
|
2366
|
+
"aria-label": I.id + "-" + I.label,
|
|
2367
2367
|
style: {
|
|
2368
2368
|
height: `${m}px`,
|
|
2369
2369
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
@@ -2371,14 +2371,14 @@ const jn = 10, Ir = ({
|
|
|
2371
2371
|
transform: `translateY(${z}px)`
|
|
2372
2372
|
},
|
|
2373
2373
|
onClick: () => {
|
|
2374
|
-
l == null || l(
|
|
2374
|
+
l == null || l(I), y(V);
|
|
2375
2375
|
},
|
|
2376
2376
|
children: [
|
|
2377
|
-
Fe(
|
|
2377
|
+
Fe(I.id, I.label, t),
|
|
2378
2378
|
J && /* @__PURE__ */ g.jsx(le, { icon: "check", width: 16 })
|
|
2379
2379
|
]
|
|
2380
2380
|
},
|
|
2381
|
-
|
|
2381
|
+
I.id
|
|
2382
2382
|
)
|
|
2383
2383
|
);
|
|
2384
2384
|
}) })
|
|
@@ -2387,7 +2387,7 @@ const jn = 10, Ir = ({
|
|
|
2387
2387
|
]
|
|
2388
2388
|
}
|
|
2389
2389
|
);
|
|
2390
|
-
},
|
|
2390
|
+
}, It = ({
|
|
2391
2391
|
displayMode: r,
|
|
2392
2392
|
bindValue: e,
|
|
2393
2393
|
optionalDisplayValue: t,
|
|
@@ -2487,12 +2487,12 @@ const gt = (r, e, t) => {
|
|
|
2487
2487
|
}, An = (r, e, t) => {
|
|
2488
2488
|
const n = ut(r, t);
|
|
2489
2489
|
return n !== void 0 ? n : ut(e, t);
|
|
2490
|
-
},
|
|
2490
|
+
}, Ir = (r, e, t) => {
|
|
2491
2491
|
for (const n in e)
|
|
2492
|
-
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) :
|
|
2492
|
+
n !== "__proto__" && n !== "constructor" && (n in r ? q(r[n]) || r[n] instanceof String || q(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ir(r[n], e[n], t) : r[n] = e[n]);
|
|
2493
2493
|
return r;
|
|
2494
|
-
},
|
|
2495
|
-
var
|
|
2494
|
+
}, Ie = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2495
|
+
var Pn = {
|
|
2496
2496
|
"&": "&",
|
|
2497
2497
|
"<": "<",
|
|
2498
2498
|
">": ">",
|
|
@@ -2500,7 +2500,7 @@ var In = {
|
|
|
2500
2500
|
"'": "'",
|
|
2501
2501
|
"/": "/"
|
|
2502
2502
|
};
|
|
2503
|
-
const
|
|
2503
|
+
const In = (r) => q(r) ? r.replace(/[&<>"'\/]/g, (e) => Pn[e]) : r;
|
|
2504
2504
|
class Nn {
|
|
2505
2505
|
constructor(e) {
|
|
2506
2506
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -2668,7 +2668,7 @@ class pr extends yt {
|
|
|
2668
2668
|
let o = [e, t];
|
|
2669
2669
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2670
2670
|
let l = ut(this.data, o) || {};
|
|
2671
|
-
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ?
|
|
2671
|
+
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Ir(l, n, a) : l = {
|
|
2672
2672
|
...l,
|
|
2673
2673
|
...n
|
|
2674
2674
|
}, dr(this.data, o, l), i.silent || this.emit("added", e, t, n);
|
|
@@ -2758,9 +2758,9 @@ class dt extends yt {
|
|
|
2758
2758
|
} = this.extractFromKey(e[e.length - 1], s), c = l[l.length - 1];
|
|
2759
2759
|
let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2760
2760
|
f === void 0 && (f = ":");
|
|
2761
|
-
const u = s.lng || this.language,
|
|
2761
|
+
const u = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2762
2762
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
2763
|
-
return
|
|
2763
|
+
return d ? a ? {
|
|
2764
2764
|
res: `${c}${f}${o}`,
|
|
2765
2765
|
usedKey: o,
|
|
2766
2766
|
exactUsedKey: o,
|
|
@@ -2776,48 +2776,48 @@ class dt extends yt {
|
|
|
2776
2776
|
usedParams: this.getUsedParamsDetails(s)
|
|
2777
2777
|
} : o;
|
|
2778
2778
|
const m = this.resolve(e, s);
|
|
2779
|
-
let
|
|
2779
|
+
let p = m == null ? void 0 : m.res;
|
|
2780
2780
|
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, _ = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, E = s.count !== void 0 && !q(s.count), b = dt.hasDefaultValue(s), j = E ? this.pluralResolver.getSuffix(u, s.count, s) : "", k = s.ordinal && E ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2781
2781
|
ordinal: !1
|
|
2782
2782
|
}) : "", A = E && !s.ordinal && s.count === 0, O = A && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2783
|
-
let T =
|
|
2784
|
-
S && !
|
|
2785
|
-
const
|
|
2786
|
-
if (S && T &&
|
|
2783
|
+
let T = p;
|
|
2784
|
+
S && !p && b && (T = O);
|
|
2785
|
+
const $ = mr(T), D = Object.prototype.toString.apply(T);
|
|
2786
|
+
if (S && T && $ && _.indexOf(D) < 0 && !(q(w) && Array.isArray(T))) {
|
|
2787
2787
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2788
2788
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2789
|
-
const
|
|
2789
|
+
const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, T, {
|
|
2790
2790
|
...s,
|
|
2791
2791
|
ns: l
|
|
2792
2792
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2793
|
-
return a ? (m.res =
|
|
2793
|
+
return a ? (m.res = P, m.usedParams = this.getUsedParamsDetails(s), m) : P;
|
|
2794
2794
|
}
|
|
2795
2795
|
if (i) {
|
|
2796
|
-
const
|
|
2797
|
-
for (const
|
|
2798
|
-
if (Object.prototype.hasOwnProperty.call(T,
|
|
2799
|
-
const z = `${
|
|
2800
|
-
b && !
|
|
2796
|
+
const P = Array.isArray(T), F = P ? [] : {}, I = P ? x : y;
|
|
2797
|
+
for (const V in T)
|
|
2798
|
+
if (Object.prototype.hasOwnProperty.call(T, V)) {
|
|
2799
|
+
const z = `${I}${i}${V}`;
|
|
2800
|
+
b && !p ? F[V] = this.translate(z, {
|
|
2801
2801
|
...s,
|
|
2802
|
-
defaultValue: mr(O) ? O[
|
|
2802
|
+
defaultValue: mr(O) ? O[V] : void 0,
|
|
2803
2803
|
joinArrays: !1,
|
|
2804
2804
|
ns: l
|
|
2805
|
-
}) : V
|
|
2805
|
+
}) : F[V] = this.translate(z, {
|
|
2806
2806
|
...s,
|
|
2807
2807
|
joinArrays: !1,
|
|
2808
2808
|
ns: l
|
|
2809
|
-
}), V
|
|
2809
|
+
}), F[V] === z && (F[V] = T[V]);
|
|
2810
2810
|
}
|
|
2811
|
-
|
|
2811
|
+
p = F;
|
|
2812
2812
|
}
|
|
2813
|
-
} else if (S && q(w) && Array.isArray(
|
|
2814
|
-
|
|
2813
|
+
} else if (S && q(w) && Array.isArray(p))
|
|
2814
|
+
p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
|
|
2815
2815
|
else {
|
|
2816
|
-
let
|
|
2817
|
-
!this.isValidLookup(
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2820
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? O :
|
|
2816
|
+
let P = !1, F = !1;
|
|
2817
|
+
!this.isValidLookup(p) && b && (P = !0, p = O), this.isValidLookup(p) || (F = !0, p = o);
|
|
2818
|
+
const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, z = b && O !== p && this.options.updateMissing;
|
|
2819
|
+
if (F || P || z) {
|
|
2820
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? O : p), i) {
|
|
2821
2821
|
const v = this.resolve(o, {
|
|
2822
2822
|
...s,
|
|
2823
2823
|
keySeparator: !1
|
|
@@ -2832,8 +2832,8 @@ class dt extends yt {
|
|
|
2832
2832
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
|
|
2833
2833
|
const h = (v, R, L) => {
|
|
2834
2834
|
var N;
|
|
2835
|
-
const
|
|
2836
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, R,
|
|
2835
|
+
const C = b && L !== p ? L : V;
|
|
2836
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, R, C, z, s) : (N = this.backendConnector) != null && N.saveMissing && this.backendConnector.saveMissing(v, c, R, C, z, s), this.emit("missingKey", v, c, R, p);
|
|
2837
2837
|
};
|
|
2838
2838
|
this.options.saveMissing && (this.options.saveMissingPlurals && E ? J.forEach((v) => {
|
|
2839
2839
|
const R = this.pluralResolver.getSuffixes(v, s);
|
|
@@ -2842,9 +2842,9 @@ class dt extends yt {
|
|
|
2842
2842
|
});
|
|
2843
2843
|
}) : h(J, o, O));
|
|
2844
2844
|
}
|
|
2845
|
-
|
|
2845
|
+
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F || P) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, P ? p : void 0, s));
|
|
2846
2846
|
}
|
|
2847
|
-
return a ? (m.res =
|
|
2847
|
+
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
2848
2848
|
}
|
|
2849
2849
|
extendTranslation(e, t, n, s, a) {
|
|
2850
2850
|
var l, c;
|
|
@@ -2869,13 +2869,13 @@ class dt extends yt {
|
|
|
2869
2869
|
const m = e.match(this.interpolator.nestingRegexp);
|
|
2870
2870
|
u = m && m.length;
|
|
2871
2871
|
}
|
|
2872
|
-
let
|
|
2873
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2872
|
+
let d = n.replace && !q(n.replace) ? n.replace : n;
|
|
2873
|
+
if (this.options.interpolation.defaultVariables && (d = {
|
|
2874
2874
|
...this.options.interpolation.defaultVariables,
|
|
2875
|
-
...
|
|
2876
|
-
}), e = this.interpolator.interpolate(e,
|
|
2877
|
-
const m = e.match(this.interpolator.nestingRegexp),
|
|
2878
|
-
u <
|
|
2875
|
+
...d
|
|
2876
|
+
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), f) {
|
|
2877
|
+
const m = e.match(this.interpolator.nestingRegexp), p = m && m.length;
|
|
2878
|
+
u < p && (n.nest = !1);
|
|
2879
2879
|
}
|
|
2880
2880
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
2881
2881
|
}
|
|
@@ -2896,7 +2896,7 @@ class dt extends yt {
|
|
|
2896
2896
|
s = f;
|
|
2897
2897
|
let u = c.namespaces;
|
|
2898
2898
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2899
|
-
const
|
|
2899
|
+
const d = t.count !== void 0 && !q(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (q(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2900
2900
|
u.forEach((x) => {
|
|
2901
2901
|
var _, w;
|
|
2902
2902
|
this.isValidLookup(n) || (o = x, !hr[`${y[0]}-${x}`] && ((_ = this.utils) != null && _.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(o)) && (hr[`${y[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((S) => {
|
|
@@ -2908,11 +2908,11 @@ class dt extends yt {
|
|
|
2908
2908
|
this.i18nFormat.addLookupKeys(E, f, S, x, t);
|
|
2909
2909
|
else {
|
|
2910
2910
|
let k;
|
|
2911
|
-
|
|
2911
|
+
d && (k = this.pluralResolver.getSuffix(S, t.count, t));
|
|
2912
2912
|
const A = `${this.options.pluralSeparator}zero`, O = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2913
|
-
if (
|
|
2913
|
+
if (d && (E.push(f + k), t.ordinal && k.indexOf(O) === 0 && E.push(f + k.replace(O, this.options.pluralSeparator)), m && E.push(f + A)), p) {
|
|
2914
2914
|
const T = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2915
|
-
E.push(T),
|
|
2915
|
+
E.push(T), d && (E.push(T + k), t.ordinal && k.indexOf(O) === 0 && E.push(T + k.replace(O, this.options.pluralSeparator)), m && E.push(T + A));
|
|
2916
2916
|
}
|
|
2917
2917
|
}
|
|
2918
2918
|
let b;
|
|
@@ -3106,15 +3106,15 @@ class Un {
|
|
|
3106
3106
|
formatSeparator: c,
|
|
3107
3107
|
unescapeSuffix: f,
|
|
3108
3108
|
unescapePrefix: u,
|
|
3109
|
-
nestingPrefix:
|
|
3109
|
+
nestingPrefix: d,
|
|
3110
3110
|
nestingPrefixEscaped: m,
|
|
3111
|
-
nestingSuffix:
|
|
3111
|
+
nestingSuffix: p,
|
|
3112
3112
|
nestingSuffixEscaped: y,
|
|
3113
3113
|
nestingOptionsSeparator: x,
|
|
3114
3114
|
maxReplaces: _,
|
|
3115
3115
|
alwaysFormat: w
|
|
3116
3116
|
} = e.interpolation;
|
|
3117
|
-
this.escape = t !== void 0 ? t :
|
|
3117
|
+
this.escape = t !== void 0 ? t : In, this.escapeValue = n !== void 0 ? n : !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 = d ? Ie(d) : m || Ie("$t("), this.nestingSuffix = p ? Ie(p) : y || Ie(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
3118
3118
|
}
|
|
3119
3119
|
reset() {
|
|
3120
3120
|
this.options && this.init(this.options);
|
|
@@ -3126,16 +3126,16 @@ class Un {
|
|
|
3126
3126
|
interpolate(e, t, n, s) {
|
|
3127
3127
|
var m;
|
|
3128
3128
|
let a, i, o;
|
|
3129
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
3130
|
-
if (
|
|
3131
|
-
const w = vr(t, l,
|
|
3129
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (p) => {
|
|
3130
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3131
|
+
const w = vr(t, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3132
3132
|
return this.alwaysFormat ? this.format(w, void 0, n, {
|
|
3133
3133
|
...s,
|
|
3134
3134
|
...t,
|
|
3135
|
-
interpolationkey:
|
|
3135
|
+
interpolationkey: p
|
|
3136
3136
|
}) : w;
|
|
3137
3137
|
}
|
|
3138
|
-
const y =
|
|
3138
|
+
const y = p.split(this.formatSeparator), x = y.shift().trim(), _ = y.join(this.formatSeparator).trim();
|
|
3139
3139
|
return this.format(vr(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), _, n, {
|
|
3140
3140
|
...s,
|
|
3141
3141
|
...t,
|
|
@@ -3146,12 +3146,12 @@ class Un {
|
|
|
3146
3146
|
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((m = s == null ? void 0 : s.interpolation) == null ? void 0 : m.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3147
3147
|
return [{
|
|
3148
3148
|
regex: this.regexpUnescape,
|
|
3149
|
-
safeValue: (
|
|
3149
|
+
safeValue: (p) => _t(p)
|
|
3150
3150
|
}, {
|
|
3151
3151
|
regex: this.regexp,
|
|
3152
|
-
safeValue: (
|
|
3153
|
-
}].forEach((
|
|
3154
|
-
for (o = 0; a =
|
|
3152
|
+
safeValue: (p) => this.escapeValue ? _t(this.escape(p)) : _t(p)
|
|
3153
|
+
}].forEach((p) => {
|
|
3154
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
3155
3155
|
const y = a[1].trim();
|
|
3156
3156
|
if (i = c(y), i === void 0)
|
|
3157
3157
|
if (typeof f == "function") {
|
|
@@ -3165,8 +3165,8 @@ class Un {
|
|
|
3165
3165
|
} else
|
|
3166
3166
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), i = "";
|
|
3167
3167
|
else !q(i) && !this.useRawValueToEscape && (i = cr(i));
|
|
3168
|
-
const x =
|
|
3169
|
-
if (e = e.replace(a[0], x), u ? (
|
|
3168
|
+
const x = p.safeValue(i);
|
|
3169
|
+
if (e = e.replace(a[0], x), u ? (p.regex.lastIndex += i.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3170
3170
|
break;
|
|
3171
3171
|
}
|
|
3172
3172
|
}), e;
|
|
@@ -3177,17 +3177,17 @@ class Un {
|
|
|
3177
3177
|
const f = this.nestingOptionsSeparator;
|
|
3178
3178
|
if (l.indexOf(f) < 0) return l;
|
|
3179
3179
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
3180
|
-
let
|
|
3181
|
-
l = u[0],
|
|
3182
|
-
const m =
|
|
3183
|
-
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !
|
|
3180
|
+
let d = `{${u[1]}`;
|
|
3181
|
+
l = u[0], d = this.interpolate(d, i);
|
|
3182
|
+
const m = d.match(/'/g), p = d.match(/"/g);
|
|
3183
|
+
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !p || p.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
3184
3184
|
try {
|
|
3185
|
-
i = JSON.parse(
|
|
3185
|
+
i = JSON.parse(d), c && (i = {
|
|
3186
3186
|
...c,
|
|
3187
3187
|
...i
|
|
3188
3188
|
});
|
|
3189
3189
|
} catch (y) {
|
|
3190
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${
|
|
3190
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${d}`;
|
|
3191
3191
|
}
|
|
3192
3192
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, l;
|
|
3193
3193
|
};
|
|
@@ -3303,10 +3303,10 @@ class Hn {
|
|
|
3303
3303
|
formatOptions: f
|
|
3304
3304
|
} = Wn(l);
|
|
3305
3305
|
if (this.formats[c]) {
|
|
3306
|
-
let
|
|
3306
|
+
let d = o;
|
|
3307
3307
|
try {
|
|
3308
|
-
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {},
|
|
3309
|
-
|
|
3308
|
+
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {}, p = m.locale || m.lng || s.locale || s.lng || n;
|
|
3309
|
+
d = this.formats[c](o, p, {
|
|
3310
3310
|
...f,
|
|
3311
3311
|
...s,
|
|
3312
3312
|
...m
|
|
@@ -3314,7 +3314,7 @@ class Hn {
|
|
|
3314
3314
|
} catch (m) {
|
|
3315
3315
|
this.logger.warn(m);
|
|
3316
3316
|
}
|
|
3317
|
-
return
|
|
3317
|
+
return d;
|
|
3318
3318
|
} else
|
|
3319
3319
|
this.logger.warn(`there was no format function for ${c}`);
|
|
3320
3320
|
return o;
|
|
@@ -3334,8 +3334,8 @@ class Kn extends yt {
|
|
|
3334
3334
|
return e.forEach((c) => {
|
|
3335
3335
|
let f = !0;
|
|
3336
3336
|
t.forEach((u) => {
|
|
3337
|
-
const
|
|
3338
|
-
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[
|
|
3337
|
+
const d = `${c}|${u}`;
|
|
3338
|
+
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, f = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
3339
3339
|
}), f || (o[c] = !0);
|
|
3340
3340
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3341
3341
|
pending: i,
|
|
@@ -3431,26 +3431,26 @@ class Kn extends yt {
|
|
|
3431
3431
|
}
|
|
3432
3432
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3433
3433
|
}) {
|
|
3434
|
-
var l, c, f, u,
|
|
3434
|
+
var l, c, f, u, d;
|
|
3435
3435
|
if ((c = (l = this.services) == null ? void 0 : l.utils) != null && c.hasLoadedNamespace && !((u = (f = this.services) == null ? void 0 : f.utils) != null && u.hasLoadedNamespace(t))) {
|
|
3436
3436
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
3437
3437
|
return;
|
|
3438
3438
|
}
|
|
3439
3439
|
if (!(n == null || n === "")) {
|
|
3440
|
-
if ((
|
|
3440
|
+
if ((d = this.backend) != null && d.create) {
|
|
3441
3441
|
const m = {
|
|
3442
3442
|
...i,
|
|
3443
3443
|
isUpdate: a
|
|
3444
|
-
},
|
|
3445
|
-
if (
|
|
3444
|
+
}, p = this.backend.create.bind(this.backend);
|
|
3445
|
+
if (p.length < 6)
|
|
3446
3446
|
try {
|
|
3447
3447
|
let y;
|
|
3448
|
-
|
|
3448
|
+
p.length === 5 ? y = p(e, t, n, s, m) : y = p(e, t, n, s), y && typeof y.then == "function" ? y.then((x) => o(null, x)).catch(o) : o(null, y);
|
|
3449
3449
|
} catch (y) {
|
|
3450
3450
|
o(y);
|
|
3451
3451
|
}
|
|
3452
3452
|
else
|
|
3453
|
-
|
|
3453
|
+
p(e, t, n, s, o, m);
|
|
3454
3454
|
}
|
|
3455
3455
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3456
3456
|
}
|
|
@@ -3558,12 +3558,12 @@ class Ge extends yt {
|
|
|
3558
3558
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3559
3559
|
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Un(this.options), u.utils = {
|
|
3560
3560
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3561
|
-
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (
|
|
3562
|
-
this.emit(
|
|
3563
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (
|
|
3564
|
-
this.emit(
|
|
3565
|
-
}), this.modules.external.forEach((
|
|
3566
|
-
|
|
3561
|
+
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (d, ...m) => {
|
|
3562
|
+
this.emit(d, ...m);
|
|
3563
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (d, ...m) => {
|
|
3564
|
+
this.emit(d, ...m);
|
|
3565
|
+
}), this.modules.external.forEach((d) => {
|
|
3566
|
+
d.init && d.init(this);
|
|
3567
3567
|
});
|
|
3568
3568
|
}
|
|
3569
3569
|
if (this.format = this.options.interpolation.format, t || (t = rt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3637,8 +3637,8 @@ class Ge extends yt {
|
|
|
3637
3637
|
var f, u;
|
|
3638
3638
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3639
3639
|
const l = q(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(q(o) ? [o] : o);
|
|
3640
|
-
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (
|
|
3641
|
-
a(
|
|
3640
|
+
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (d) => {
|
|
3641
|
+
a(d, c);
|
|
3642
3642
|
});
|
|
3643
3643
|
};
|
|
3644
3644
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
|
|
@@ -3898,30 +3898,30 @@ const kr = ({
|
|
|
3898
3898
|
onChange: c,
|
|
3899
3899
|
onOptionsRequest: f,
|
|
3900
3900
|
onBlur: u,
|
|
3901
|
-
_multiActiveIndex:
|
|
3901
|
+
_multiActiveIndex: d,
|
|
3902
3902
|
...m
|
|
3903
3903
|
}) => {
|
|
3904
|
-
const
|
|
3904
|
+
const p = ce(null), [y, x] = G(r), [_, w] = G(e), { translate: S } = Ae(), [E, b] = G(!1), [j, k] = G(t || []), [A, O] = G(0), [T, $] = G([r]), { anchorRef: D, targetRef: P, anchorWidth: F } = ht({
|
|
3905
3905
|
position: "bottom",
|
|
3906
3906
|
enabled: E
|
|
3907
|
-
}),
|
|
3907
|
+
}), I = ue(() => {
|
|
3908
3908
|
var R;
|
|
3909
|
-
b(!1), (R =
|
|
3909
|
+
b(!1), (R = p == null ? void 0 : p.current) == null || R.focus();
|
|
3910
3910
|
}, []);
|
|
3911
|
-
gt([
|
|
3912
|
-
const
|
|
3913
|
-
R.length >= a ? o && f &&
|
|
3911
|
+
gt([P], E, () => I());
|
|
3912
|
+
const V = Dn(400), z = (R) => {
|
|
3913
|
+
R.length >= a ? o && f && V(async () => {
|
|
3914
3914
|
const L = await f(o, R);
|
|
3915
3915
|
k(L), O(L.length > 0 ? 0 : -1), b(!0);
|
|
3916
|
-
}) :
|
|
3916
|
+
}) : I(), x(R), w(e), l || c == null || c(R, e);
|
|
3917
3917
|
}, J = () => {
|
|
3918
3918
|
E || u == null || u();
|
|
3919
3919
|
}, Y = (R) => {
|
|
3920
3920
|
l ? (x(""), w("")) : (x(R.id), w(R.label)), c == null || c(R.id, R.label);
|
|
3921
|
-
const L = j.findIndex((
|
|
3922
|
-
O(L),
|
|
3921
|
+
const L = j.findIndex((C) => C.id === R.id);
|
|
3922
|
+
O(L), $([R.id]), I();
|
|
3923
3923
|
}, h = (R) => {
|
|
3924
|
-
R.key === "Escape" && (
|
|
3924
|
+
R.key === "Escape" && (I(), O(-1));
|
|
3925
3925
|
}, v = (R) => {
|
|
3926
3926
|
if ((R.key === "ArrowDown" || R.key === "ArrowUp") && (R.preventDefault(), E)) {
|
|
3927
3927
|
const L = R.key === "ArrowDown" ? (A + 1) % j.length : (A - 1 + j.length) % j.length;
|
|
@@ -3929,16 +3929,16 @@ const kr = ({
|
|
|
3929
3929
|
}
|
|
3930
3930
|
switch (R.key) {
|
|
3931
3931
|
case "Enter":
|
|
3932
|
-
A >= 0 && A < j.length ? Y(j[A]) : l && (c == null || c(y, ""),
|
|
3932
|
+
A >= 0 && A < j.length ? Y(j[A]) : l && (c == null || c(y, ""), I(), x(""), w(""));
|
|
3933
3933
|
break;
|
|
3934
3934
|
case "Escape":
|
|
3935
|
-
|
|
3935
|
+
I(), O(-1);
|
|
3936
3936
|
break;
|
|
3937
3937
|
}
|
|
3938
3938
|
};
|
|
3939
3939
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "autocomplete", children: [
|
|
3940
3940
|
/* @__PURE__ */ g.jsx(
|
|
3941
|
-
|
|
3941
|
+
It,
|
|
3942
3942
|
{
|
|
3943
3943
|
...m,
|
|
3944
3944
|
bindValue: y,
|
|
@@ -3950,7 +3950,7 @@ const kr = ({
|
|
|
3950
3950
|
Oe.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3951
3951
|
),
|
|
3952
3952
|
ref: D,
|
|
3953
|
-
inputRef:
|
|
3953
|
+
inputRef: p,
|
|
3954
3954
|
onChange: z,
|
|
3955
3955
|
onKeyDown: v,
|
|
3956
3956
|
onBlur: J,
|
|
@@ -3958,15 +3958,15 @@ const kr = ({
|
|
|
3958
3958
|
}
|
|
3959
3959
|
),
|
|
3960
3960
|
E && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3961
|
-
|
|
3961
|
+
Pr,
|
|
3962
3962
|
{
|
|
3963
3963
|
options: j,
|
|
3964
3964
|
displayMode: s,
|
|
3965
3965
|
onClick: Y,
|
|
3966
|
-
ref:
|
|
3966
|
+
ref: P,
|
|
3967
3967
|
selectedIndex: A,
|
|
3968
|
-
activeIndex:
|
|
3969
|
-
width:
|
|
3968
|
+
activeIndex: d || T,
|
|
3969
|
+
width: F,
|
|
3970
3970
|
showFilter: !1,
|
|
3971
3971
|
onKeyDown: h,
|
|
3972
3972
|
isOpen: E
|
|
@@ -3986,19 +3986,19 @@ const kr = ({
|
|
|
3986
3986
|
fullWidth: c,
|
|
3987
3987
|
disabled: f,
|
|
3988
3988
|
justify: u,
|
|
3989
|
-
squared:
|
|
3989
|
+
squared: d,
|
|
3990
3990
|
onClick: m,
|
|
3991
|
-
onOptionsRequest:
|
|
3991
|
+
onOptionsRequest: p
|
|
3992
3992
|
}) => {
|
|
3993
3993
|
const [y, x] = G(r);
|
|
3994
3994
|
re(() => {
|
|
3995
|
-
!y &&
|
|
3995
|
+
!y && p && e && p(e, void 0).then((S) => x(S)).catch((S) => {
|
|
3996
3996
|
console.error(
|
|
3997
3997
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
3998
3998
|
S
|
|
3999
3999
|
);
|
|
4000
4000
|
});
|
|
4001
|
-
}, [y, e,
|
|
4001
|
+
}, [y, e, p]);
|
|
4002
4002
|
const _ = {
|
|
4003
4003
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
4004
4004
|
}, w = y == null ? void 0 : y.map((S, E) => {
|
|
@@ -4015,7 +4015,7 @@ const kr = ({
|
|
|
4015
4015
|
disabled: f,
|
|
4016
4016
|
sizing: s,
|
|
4017
4017
|
justify: u,
|
|
4018
|
-
squared:
|
|
4018
|
+
squared: d,
|
|
4019
4019
|
onClick: () => {
|
|
4020
4020
|
m == null || m(S.id, S.fun);
|
|
4021
4021
|
}
|
|
@@ -4068,15 +4068,15 @@ const kr = ({
|
|
|
4068
4068
|
container: `${["smp-chips-container"]}`,
|
|
4069
4069
|
element: "smp-chips-element"
|
|
4070
4070
|
}, f = (m) => {
|
|
4071
|
-
n == null || n(r.filter((
|
|
4071
|
+
n == null || n(r.filter((p, y) => y !== m));
|
|
4072
4072
|
}, u = (m) => {
|
|
4073
4073
|
l(m);
|
|
4074
|
-
},
|
|
4074
|
+
}, d = (m) => {
|
|
4075
4075
|
if (o === null || o === m) return;
|
|
4076
|
-
const
|
|
4077
|
-
|
|
4076
|
+
const p = [...r], [y] = p.splice(o, 1);
|
|
4077
|
+
p.splice(m, 0, y), n == null || n(p), l(null);
|
|
4078
4078
|
};
|
|
4079
|
-
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m,
|
|
4079
|
+
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m, p) => {
|
|
4080
4080
|
const y = Fe(
|
|
4081
4081
|
m.bindValue,
|
|
4082
4082
|
m.optionalDisplayValue,
|
|
@@ -4087,9 +4087,9 @@ const kr = ({
|
|
|
4087
4087
|
className: c.element,
|
|
4088
4088
|
role: "listitem",
|
|
4089
4089
|
draggable: i,
|
|
4090
|
-
onDragStart: () => u(
|
|
4090
|
+
onDragStart: () => u(p),
|
|
4091
4091
|
onDragOver: (w) => i && w.preventDefault(),
|
|
4092
|
-
onDrop: () => i && p
|
|
4092
|
+
onDrop: () => i && d(p),
|
|
4093
4093
|
style: {
|
|
4094
4094
|
"--smp-chips-backgroundColor-base": a
|
|
4095
4095
|
},
|
|
@@ -4101,20 +4101,20 @@ const kr = ({
|
|
|
4101
4101
|
{
|
|
4102
4102
|
icon: "close",
|
|
4103
4103
|
isInteractable: !0,
|
|
4104
|
-
onClick: () => f(
|
|
4104
|
+
onClick: () => f(p),
|
|
4105
4105
|
color: s
|
|
4106
4106
|
}
|
|
4107
4107
|
)
|
|
4108
4108
|
]
|
|
4109
4109
|
},
|
|
4110
|
-
`chip-${
|
|
4111
|
-
), _ = i &&
|
|
4110
|
+
`chip-${p}`
|
|
4111
|
+
), _ = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
4112
4112
|
le,
|
|
4113
4113
|
{
|
|
4114
4114
|
icon: "chevron-right",
|
|
4115
4115
|
color: s
|
|
4116
4116
|
},
|
|
4117
|
-
`separator-${
|
|
4117
|
+
`separator-${p}`
|
|
4118
4118
|
) : null;
|
|
4119
4119
|
return [x, _].filter(Boolean);
|
|
4120
4120
|
}) });
|
|
@@ -4139,8 +4139,8 @@ function kt(r, e) {
|
|
|
4139
4139
|
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
4140
4140
|
const f = s();
|
|
4141
4141
|
if (f.length === 0) return;
|
|
4142
|
-
const u = f[0],
|
|
4143
|
-
c.shiftKey && document.activeElement === u ? (c.preventDefault(),
|
|
4142
|
+
const u = f[0], d = f[f.length - 1];
|
|
4143
|
+
c.shiftKey && document.activeElement === u ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), u.focus());
|
|
4144
4144
|
}, o = (c) => {
|
|
4145
4145
|
if (n && !n.contains(c.target)) {
|
|
4146
4146
|
c.preventDefault();
|
|
@@ -4171,48 +4171,48 @@ const gs = ({
|
|
|
4171
4171
|
multiActiveIndex: c,
|
|
4172
4172
|
...f
|
|
4173
4173
|
}) => {
|
|
4174
|
-
const u = ce(null), [
|
|
4174
|
+
const u = ce(null), [d, m] = G(!1), [p, y] = G(t), [x, _] = G(-1), [w, S] = G([r]), E = Re(), { anchorRef: b, targetRef: j, anchorWidth: k } = ht({
|
|
4175
4175
|
position: "bottom",
|
|
4176
|
-
enabled:
|
|
4176
|
+
enabled: d
|
|
4177
4177
|
}), A = ue(() => {
|
|
4178
|
-
var
|
|
4179
|
-
m(!1), (
|
|
4178
|
+
var P;
|
|
4179
|
+
m(!1), (P = u == null ? void 0 : u.current) == null || P.focus();
|
|
4180
4180
|
}, []);
|
|
4181
|
-
gt([j, b],
|
|
4182
|
-
const O = (
|
|
4183
|
-
e == null || e(
|
|
4184
|
-
const
|
|
4185
|
-
_(
|
|
4186
|
-
}, T = (
|
|
4187
|
-
|
|
4188
|
-
},
|
|
4189
|
-
(
|
|
4181
|
+
gt([j, b], d, () => A()), kt(d, j);
|
|
4182
|
+
const O = (P) => {
|
|
4183
|
+
e == null || e(P.id, P.label);
|
|
4184
|
+
const F = p.findIndex((I) => I.id === P.id);
|
|
4185
|
+
_(F), S([P.id]), A();
|
|
4186
|
+
}, T = (P) => {
|
|
4187
|
+
P.key === "Escape" && (A(), _(-1));
|
|
4188
|
+
}, $ = (P) => {
|
|
4189
|
+
(P.key === "ArrowDown" || P.key === "ArrowUp") && (P.preventDefault(), D());
|
|
4190
4190
|
}, D = () => {
|
|
4191
|
-
s && (o && l ?
|
|
4192
|
-
y(
|
|
4193
|
-
}) : m((
|
|
4191
|
+
s && (o && l ? d ? m(!1) : l(o, void 0).then((P) => {
|
|
4192
|
+
y(P), _(P.length > 0 ? 0 : -1), m(!0);
|
|
4193
|
+
}) : m((P) => !P));
|
|
4194
4194
|
};
|
|
4195
4195
|
return /* @__PURE__ */ g.jsxs(
|
|
4196
4196
|
"div",
|
|
4197
4197
|
{
|
|
4198
4198
|
role: "combobox",
|
|
4199
|
-
"aria-expanded":
|
|
4199
|
+
"aria-expanded": d,
|
|
4200
4200
|
"aria-controls": E,
|
|
4201
4201
|
"aria-owns": E,
|
|
4202
4202
|
"data-component": "combobox",
|
|
4203
4203
|
children: [
|
|
4204
4204
|
/* @__PURE__ */ g.jsx(
|
|
4205
|
-
|
|
4205
|
+
It,
|
|
4206
4206
|
{
|
|
4207
4207
|
...f,
|
|
4208
4208
|
bindValue: r,
|
|
4209
4209
|
optionalDisplayValue: n,
|
|
4210
4210
|
displayMode: a,
|
|
4211
4211
|
onShapeIconClick: D,
|
|
4212
|
-
onKeyDown:
|
|
4212
|
+
onKeyDown: $,
|
|
4213
4213
|
onClick: D,
|
|
4214
4214
|
shapeIcon: "arrow_drop_down",
|
|
4215
|
-
rotatedShapeIcon:
|
|
4215
|
+
rotatedShapeIcon: d,
|
|
4216
4216
|
isEditable: s,
|
|
4217
4217
|
ref: b,
|
|
4218
4218
|
inputRef: u,
|
|
@@ -4220,14 +4220,14 @@ const gs = ({
|
|
|
4220
4220
|
variant: "notSelectable"
|
|
4221
4221
|
}
|
|
4222
4222
|
),
|
|
4223
|
-
|
|
4224
|
-
|
|
4223
|
+
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4224
|
+
Pr,
|
|
4225
4225
|
{
|
|
4226
4226
|
id: E,
|
|
4227
|
-
options:
|
|
4227
|
+
options: p,
|
|
4228
4228
|
displayMode: i,
|
|
4229
4229
|
ref: j,
|
|
4230
|
-
isOpen:
|
|
4230
|
+
isOpen: d,
|
|
4231
4231
|
selectedIndex: x,
|
|
4232
4232
|
activeIndex: c || w,
|
|
4233
4233
|
width: k,
|
|
@@ -4256,9 +4256,9 @@ function bs({
|
|
|
4256
4256
|
r || i() || /* @__PURE__ */ new Date()
|
|
4257
4257
|
), [f, u] = G(
|
|
4258
4258
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4259
|
-
), [
|
|
4259
|
+
), [d, m] = G(
|
|
4260
4260
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4261
|
-
), [
|
|
4261
|
+
), [p, y] = G(
|
|
4262
4262
|
l ? l.getDate() : null
|
|
4263
4263
|
), x = ce(null), _ = ce([]), w = [
|
|
4264
4264
|
a(pe.JANUARY),
|
|
@@ -4308,32 +4308,32 @@ function bs({
|
|
|
4308
4308
|
}), b = (Y) => {
|
|
4309
4309
|
E(Y) || (c(Y), y(Y.getDate()), e && e(_n(Y)));
|
|
4310
4310
|
}, j = () => {
|
|
4311
|
-
f === 0 ? (u(11), m(
|
|
4311
|
+
f === 0 ? (u(11), m(d - 1)) : u(f - 1), y(1);
|
|
4312
4312
|
}, k = () => {
|
|
4313
|
-
f === 11 ? (u(0), m(
|
|
4313
|
+
f === 11 ? (u(0), m(d + 1)) : u(f + 1), y(1);
|
|
4314
4314
|
}, A = (Y, h) => new Date(Y, h + 1, 0).getDate(), O = (Y, h) => new Date(Y, h, 1).getDay(), T = (Y) => {
|
|
4315
4315
|
var v;
|
|
4316
|
-
const h =
|
|
4316
|
+
const h = F.findIndex(
|
|
4317
4317
|
(R) => R !== null && R.getDate() === Y
|
|
4318
4318
|
);
|
|
4319
4319
|
h !== -1 && _.current[h] && ((v = _.current[h]) == null || v.focus(), y(Y));
|
|
4320
|
-
},
|
|
4321
|
-
const v =
|
|
4320
|
+
}, $ = (Y, h) => {
|
|
4321
|
+
const v = F[h];
|
|
4322
4322
|
if (!v) return;
|
|
4323
|
-
const R = A(
|
|
4323
|
+
const R = A(d, f), L = v.getDate();
|
|
4324
4324
|
switch (Y.key) {
|
|
4325
4325
|
case "ArrowRight":
|
|
4326
4326
|
Y.preventDefault();
|
|
4327
4327
|
{
|
|
4328
|
-
let
|
|
4329
|
-
if (
|
|
4330
|
-
const
|
|
4331
|
-
|
|
4328
|
+
let C = L + 1, N = new Date(d, f, C);
|
|
4329
|
+
if (C > R) {
|
|
4330
|
+
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4331
|
+
C = 1, N = new Date(W, B, C), k(), setTimeout(() => {
|
|
4332
4332
|
D(1, "forward");
|
|
4333
4333
|
}, 0);
|
|
4334
4334
|
return;
|
|
4335
4335
|
}
|
|
4336
|
-
E(N) ? D(
|
|
4336
|
+
E(N) ? D(C, "forward") : T(C);
|
|
4337
4337
|
}
|
|
4338
4338
|
break;
|
|
4339
4339
|
case "Tab":
|
|
@@ -4341,43 +4341,43 @@ function bs({
|
|
|
4341
4341
|
case "ArrowLeft":
|
|
4342
4342
|
Y.preventDefault();
|
|
4343
4343
|
{
|
|
4344
|
-
let
|
|
4345
|
-
if (
|
|
4346
|
-
const
|
|
4347
|
-
|
|
4348
|
-
D(
|
|
4344
|
+
let C = L - 1, N = new Date(d, f, C);
|
|
4345
|
+
if (C < 1) {
|
|
4346
|
+
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1, U = A(W, B);
|
|
4347
|
+
C = U, N = new Date(W, B, C), j(), setTimeout(() => {
|
|
4348
|
+
D(U, "backward");
|
|
4349
4349
|
}, 0);
|
|
4350
4350
|
return;
|
|
4351
4351
|
}
|
|
4352
|
-
E(N) ? D(
|
|
4352
|
+
E(N) ? D(C, "backward") : T(C);
|
|
4353
4353
|
}
|
|
4354
4354
|
break;
|
|
4355
4355
|
case "ArrowUp":
|
|
4356
4356
|
Y.preventDefault();
|
|
4357
4357
|
{
|
|
4358
|
-
let
|
|
4359
|
-
if (
|
|
4360
|
-
const
|
|
4361
|
-
|
|
4362
|
-
D(
|
|
4358
|
+
let C = L - 7, N = new Date(d, f, C);
|
|
4359
|
+
if (C < 1) {
|
|
4360
|
+
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1;
|
|
4361
|
+
C = A(W, B) + C, N = new Date(W, B, C), j(), setTimeout(() => {
|
|
4362
|
+
D(C, "backward");
|
|
4363
4363
|
}, 0);
|
|
4364
4364
|
return;
|
|
4365
4365
|
}
|
|
4366
|
-
E(N) ? D(
|
|
4366
|
+
E(N) ? D(C, "backward") : T(C);
|
|
4367
4367
|
}
|
|
4368
4368
|
break;
|
|
4369
4369
|
case "ArrowDown":
|
|
4370
4370
|
Y.preventDefault();
|
|
4371
4371
|
{
|
|
4372
|
-
let
|
|
4373
|
-
if (
|
|
4374
|
-
const
|
|
4375
|
-
|
|
4376
|
-
D(
|
|
4372
|
+
let C = L + 7, N = new Date(d, f, C);
|
|
4373
|
+
if (C > R) {
|
|
4374
|
+
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4375
|
+
C = C - R, N = new Date(W, B, C), k(), setTimeout(() => {
|
|
4376
|
+
D(C, "forward");
|
|
4377
4377
|
}, 0);
|
|
4378
4378
|
return;
|
|
4379
4379
|
}
|
|
4380
|
-
E(N) ? D(
|
|
4380
|
+
E(N) ? D(C, "forward") : T(C);
|
|
4381
4381
|
}
|
|
4382
4382
|
break;
|
|
4383
4383
|
case "Home":
|
|
@@ -4388,19 +4388,19 @@ function bs({
|
|
|
4388
4388
|
break;
|
|
4389
4389
|
case "PageUp":
|
|
4390
4390
|
Y.preventDefault(), j(), setTimeout(() => {
|
|
4391
|
-
const
|
|
4392
|
-
f === 0 ?
|
|
4391
|
+
const C = A(
|
|
4392
|
+
f === 0 ? d - 1 : d,
|
|
4393
4393
|
f === 0 ? 11 : f - 1
|
|
4394
|
-
), N = Math.min(L,
|
|
4394
|
+
), N = Math.min(L, C);
|
|
4395
4395
|
D(N, "forward");
|
|
4396
4396
|
}, 0);
|
|
4397
4397
|
break;
|
|
4398
4398
|
case "PageDown":
|
|
4399
4399
|
Y.preventDefault(), k(), setTimeout(() => {
|
|
4400
|
-
const
|
|
4401
|
-
f === 11 ?
|
|
4400
|
+
const C = A(
|
|
4401
|
+
f === 11 ? d + 1 : d,
|
|
4402
4402
|
f === 11 ? 0 : f + 1
|
|
4403
|
-
), N = Math.min(L,
|
|
4403
|
+
), N = Math.min(L, C);
|
|
4404
4404
|
D(N, "forward");
|
|
4405
4405
|
}, 0);
|
|
4406
4406
|
break;
|
|
@@ -4414,10 +4414,10 @@ function bs({
|
|
|
4414
4414
|
break;
|
|
4415
4415
|
}
|
|
4416
4416
|
}, D = (Y, h) => {
|
|
4417
|
-
const v = A(
|
|
4417
|
+
const v = A(d, f);
|
|
4418
4418
|
if (h === "forward") {
|
|
4419
4419
|
for (let R = Y; R <= v; R++) {
|
|
4420
|
-
const L = new Date(
|
|
4420
|
+
const L = new Date(d, f, R);
|
|
4421
4421
|
if (!E(L)) {
|
|
4422
4422
|
T(R);
|
|
4423
4423
|
return;
|
|
@@ -4428,43 +4428,43 @@ function bs({
|
|
|
4428
4428
|
}, 0);
|
|
4429
4429
|
} else {
|
|
4430
4430
|
for (let N = Y; N >= 1; N--) {
|
|
4431
|
-
const
|
|
4432
|
-
if (!E(
|
|
4431
|
+
const W = new Date(d, f, N);
|
|
4432
|
+
if (!E(W)) {
|
|
4433
4433
|
T(N);
|
|
4434
4434
|
return;
|
|
4435
4435
|
}
|
|
4436
4436
|
}
|
|
4437
|
-
const R = f === 0 ?
|
|
4437
|
+
const R = f === 0 ? d - 1 : d, L = f === 0 ? 11 : f - 1, C = A(R, L);
|
|
4438
4438
|
j(), setTimeout(() => {
|
|
4439
|
-
D(
|
|
4439
|
+
D(C, "backward");
|
|
4440
4440
|
}, 0);
|
|
4441
4441
|
}
|
|
4442
|
-
},
|
|
4443
|
-
const Y = A(
|
|
4442
|
+
}, F = (() => {
|
|
4443
|
+
const Y = A(d, f), h = O(d, f), v = [];
|
|
4444
4444
|
for (let R = 0; R < h; R++)
|
|
4445
4445
|
v.push(null);
|
|
4446
4446
|
for (let R = 1; R <= Y; R++) {
|
|
4447
|
-
const L = new Date(
|
|
4447
|
+
const L = new Date(d, f, R);
|
|
4448
4448
|
v.push(L);
|
|
4449
4449
|
}
|
|
4450
4450
|
return v;
|
|
4451
|
-
})(),
|
|
4452
|
-
let
|
|
4453
|
-
|
|
4454
|
-
if (
|
|
4455
|
-
for (;
|
|
4456
|
-
|
|
4457
|
-
|
|
4451
|
+
})(), I = [];
|
|
4452
|
+
let V = [];
|
|
4453
|
+
F.forEach((Y, h) => {
|
|
4454
|
+
if (V.push(Y), V.length === 7 || h === F.length - 1) {
|
|
4455
|
+
for (; V.length < 7; )
|
|
4456
|
+
V.push(null);
|
|
4457
|
+
I.push(V), V = [];
|
|
4458
4458
|
}
|
|
4459
4459
|
}), re(() => {
|
|
4460
4460
|
var Y;
|
|
4461
|
-
if (
|
|
4462
|
-
const h =
|
|
4463
|
-
(v) => v !== null && v.getDate() ===
|
|
4461
|
+
if (p !== null) {
|
|
4462
|
+
const h = F.findIndex(
|
|
4463
|
+
(v) => v !== null && v.getDate() === p
|
|
4464
4464
|
);
|
|
4465
4465
|
h !== -1 && _.current[h] && ((Y = _.current[h]) == null || Y.focus());
|
|
4466
4466
|
}
|
|
4467
|
-
}, [f,
|
|
4467
|
+
}, [f, d, p, F]);
|
|
4468
4468
|
const z = {
|
|
4469
4469
|
label: "smp-datepickercalendar-label",
|
|
4470
4470
|
wrapper: `smp-datepickercalendar ${ys["smp-datepickercalendar-position"]}`,
|
|
@@ -4476,7 +4476,7 @@ function bs({
|
|
|
4476
4476
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4477
4477
|
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4478
4478
|
${R ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4479
|
-
}, J = () => `${w[f]} ${
|
|
4479
|
+
}, J = () => `${w[f]} ${d.toString()}`;
|
|
4480
4480
|
return /* @__PURE__ */ g.jsxs(
|
|
4481
4481
|
"div",
|
|
4482
4482
|
{
|
|
@@ -4535,7 +4535,7 @@ function bs({
|
|
|
4535
4535
|
{
|
|
4536
4536
|
ref: x,
|
|
4537
4537
|
role: "grid",
|
|
4538
|
-
"aria-label": `${a(Oe.CALENDAR_FOR)} ${w[f]} ${
|
|
4538
|
+
"aria-label": `${a(Oe.CALENDAR_FOR)} ${w[f]} ${d}`,
|
|
4539
4539
|
className: z.table,
|
|
4540
4540
|
children: [
|
|
4541
4541
|
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: S.map((Y) => /* @__PURE__ */ g.jsx(
|
|
@@ -4548,7 +4548,7 @@ function bs({
|
|
|
4548
4548
|
},
|
|
4549
4549
|
Y.value
|
|
4550
4550
|
)) }) }),
|
|
4551
|
-
/* @__PURE__ */ g.jsx("tbody", { children:
|
|
4551
|
+
/* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((v, R) => {
|
|
4552
4552
|
const L = h * 7 + R;
|
|
4553
4553
|
if (v === null)
|
|
4554
4554
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -4563,25 +4563,25 @@ function bs({
|
|
|
4563
4563
|
},
|
|
4564
4564
|
`empty-${R}`
|
|
4565
4565
|
);
|
|
4566
|
-
const
|
|
4566
|
+
const C = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), N = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), W = p === v.getDate(), B = E(v);
|
|
4567
4567
|
return /* @__PURE__ */ g.jsx(
|
|
4568
4568
|
"td",
|
|
4569
4569
|
{
|
|
4570
4570
|
role: "gridcell",
|
|
4571
4571
|
"aria-selected": N,
|
|
4572
|
-
tabIndex:
|
|
4572
|
+
tabIndex: W ? 0 : -1,
|
|
4573
4573
|
onClick: () => b(v),
|
|
4574
|
-
onKeyDown: (
|
|
4574
|
+
onKeyDown: (U) => $(U, L),
|
|
4575
4575
|
"aria-label": `${v.getDate()} ${w[v.getMonth()]} ${v.getFullYear()}`,
|
|
4576
4576
|
"data-selected": N,
|
|
4577
4577
|
"aria-disabled": B,
|
|
4578
|
-
ref: (
|
|
4579
|
-
_.current[L] =
|
|
4578
|
+
ref: (U) => {
|
|
4579
|
+
_.current[L] = U;
|
|
4580
4580
|
},
|
|
4581
4581
|
className: z.td(
|
|
4582
|
-
|
|
4582
|
+
C,
|
|
4583
4583
|
N,
|
|
4584
|
-
|
|
4584
|
+
W,
|
|
4585
4585
|
B
|
|
4586
4586
|
),
|
|
4587
4587
|
children: v.getDate()
|
|
@@ -4604,43 +4604,43 @@ const vs = ({
|
|
|
4604
4604
|
isEditable: s = !0,
|
|
4605
4605
|
...a
|
|
4606
4606
|
}) => {
|
|
4607
|
-
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u,
|
|
4607
|
+
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u, d] = G(""), { anchorRef: m, targetRef: p } = ht({
|
|
4608
4608
|
position: "bottom",
|
|
4609
4609
|
enabled: o
|
|
4610
4610
|
}), y = ue(() => {
|
|
4611
4611
|
var O;
|
|
4612
4612
|
l(!1), (O = i == null ? void 0 : i.current) == null || O.focus();
|
|
4613
4613
|
}, []);
|
|
4614
|
-
gt([
|
|
4614
|
+
gt([p, m], o, () => {
|
|
4615
4615
|
y();
|
|
4616
|
-
}), kt(o,
|
|
4616
|
+
}), kt(o, p);
|
|
4617
4617
|
const { format: x, getCurrentLanguage: _ } = Ae(), w = ue(
|
|
4618
4618
|
(O) => {
|
|
4619
|
-
const T = O.length > 5 && En(O, _()) || O,
|
|
4619
|
+
const T = O.length > 5 && En(O, _()) || O, $ = x(T, void 0, void 0, {
|
|
4620
4620
|
type: "date"
|
|
4621
|
-
}), D = typeof T != "string",
|
|
4621
|
+
}), D = typeof T != "string", P = D && T.toISOString().substring(0, 10) || "";
|
|
4622
4622
|
return {
|
|
4623
4623
|
isValid: D,
|
|
4624
|
-
formattedDate:
|
|
4625
|
-
isoDate:
|
|
4624
|
+
formattedDate: $,
|
|
4625
|
+
isoDate: P,
|
|
4626
4626
|
normalizedDate: T
|
|
4627
4627
|
};
|
|
4628
4628
|
},
|
|
4629
4629
|
[_, x]
|
|
4630
4630
|
);
|
|
4631
4631
|
re(() => {
|
|
4632
|
-
const { formattedDate: O, isoDate: T, isValid:
|
|
4633
|
-
f(
|
|
4632
|
+
const { formattedDate: O, isoDate: T, isValid: $ } = w(r);
|
|
4633
|
+
f($ && T || r), d($ && O || r);
|
|
4634
4634
|
}, [r, x, w]);
|
|
4635
4635
|
const S = () => l((O) => !O), E = () => {
|
|
4636
4636
|
j(u);
|
|
4637
4637
|
}, b = (O) => {
|
|
4638
4638
|
j(O), y();
|
|
4639
4639
|
}, j = (O) => {
|
|
4640
|
-
const { isoDate: T, isValid:
|
|
4641
|
-
t && t(
|
|
4640
|
+
const { isoDate: T, isValid: $ } = w(O);
|
|
4641
|
+
t && t($ && T || O);
|
|
4642
4642
|
}, k = (O) => {
|
|
4643
|
-
|
|
4643
|
+
d(O);
|
|
4644
4644
|
}, A = (O) => {
|
|
4645
4645
|
O.key === "Enter" && (O.preventDefault(), j(u));
|
|
4646
4646
|
};
|
|
@@ -4668,8 +4668,8 @@ const vs = ({
|
|
|
4668
4668
|
{
|
|
4669
4669
|
disabledDateRanges: n,
|
|
4670
4670
|
onDateChange: b,
|
|
4671
|
-
initialValue:
|
|
4672
|
-
targetRef:
|
|
4671
|
+
initialValue: Pt(c) && c || "",
|
|
4672
|
+
targetRef: p
|
|
4673
4673
|
}
|
|
4674
4674
|
) })
|
|
4675
4675
|
] });
|
|
@@ -4686,9 +4686,9 @@ const vs = ({
|
|
|
4686
4686
|
error: c,
|
|
4687
4687
|
onOptionsRequest: f,
|
|
4688
4688
|
onChange: u,
|
|
4689
|
-
onBlur:
|
|
4689
|
+
onBlur: d
|
|
4690
4690
|
}) => {
|
|
4691
|
-
const m = r.map((x) => x.bindValue),
|
|
4691
|
+
const m = r.map((x) => x.bindValue), p = (x, _) => {
|
|
4692
4692
|
const w = [...r];
|
|
4693
4693
|
if (x == "")
|
|
4694
4694
|
w.pop();
|
|
@@ -4729,7 +4729,7 @@ const vs = ({
|
|
|
4729
4729
|
bindValue: "",
|
|
4730
4730
|
fun: l,
|
|
4731
4731
|
isEditable: s,
|
|
4732
|
-
onChange:
|
|
4732
|
+
onChange: p,
|
|
4733
4733
|
_changeOnEnter: !0,
|
|
4734
4734
|
listDisplayMode: n,
|
|
4735
4735
|
minimumChars: t,
|
|
@@ -4737,7 +4737,7 @@ const vs = ({
|
|
|
4737
4737
|
onOptionsRequest: f,
|
|
4738
4738
|
_multiActiveIndex: m,
|
|
4739
4739
|
error: c,
|
|
4740
|
-
onBlur:
|
|
4740
|
+
onBlur: d
|
|
4741
4741
|
}
|
|
4742
4742
|
)
|
|
4743
4743
|
]
|
|
@@ -4860,59 +4860,59 @@ const ke = (r, e, t) => ({
|
|
|
4860
4860
|
onEnter: o,
|
|
4861
4861
|
...l
|
|
4862
4862
|
}) => {
|
|
4863
|
-
const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar:
|
|
4863
|
+
const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar: d, decimalChar: m } = Wr(
|
|
4864
4864
|
() => as(u, s),
|
|
4865
4865
|
[u, s]
|
|
4866
|
-
),
|
|
4867
|
-
(D,
|
|
4868
|
-
minimumFractionDigits:
|
|
4869
|
-
maximumFractionDigits:
|
|
4866
|
+
), p = ue(
|
|
4867
|
+
(D, P) => new Intl.NumberFormat(u, {
|
|
4868
|
+
minimumFractionDigits: P,
|
|
4869
|
+
maximumFractionDigits: P,
|
|
4870
4870
|
useGrouping: !0
|
|
4871
4871
|
}).format(D),
|
|
4872
4872
|
[u]
|
|
4873
|
-
), y = ue(ls, [
|
|
4874
|
-
a != null ?
|
|
4873
|
+
), y = ue(ls, [d, m]), x = ue(ss, [r, e]), _ = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, S] = G(_), [E, b] = G(
|
|
4874
|
+
a != null ? p(a, w) : ""
|
|
4875
4875
|
), j = ce(a ?? null);
|
|
4876
4876
|
re(() => {
|
|
4877
4877
|
if (a == null) {
|
|
4878
4878
|
b(""), j.current = null;
|
|
4879
4879
|
return;
|
|
4880
4880
|
}
|
|
4881
|
-
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0,
|
|
4882
|
-
|
|
4883
|
-
}, [a,
|
|
4881
|
+
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, P = D === 0 ? w : D;
|
|
4882
|
+
P !== w && S(P), b(p(a, P)), j.current = a;
|
|
4883
|
+
}, [a, p]);
|
|
4884
4884
|
const k = ue(
|
|
4885
|
-
(D,
|
|
4885
|
+
(D, P = !1) => {
|
|
4886
4886
|
if (D.trim() === "") {
|
|
4887
|
-
b(""), j.current = null, i == null || i(void 0, ""),
|
|
4887
|
+
b(""), j.current = null, i == null || i(void 0, ""), P && (o == null || o(void 0));
|
|
4888
4888
|
return;
|
|
4889
4889
|
}
|
|
4890
|
-
const
|
|
4891
|
-
if (isNaN(
|
|
4890
|
+
const F = y(D, d, m);
|
|
4891
|
+
if (isNaN(F))
|
|
4892
4892
|
if (j.current != null) {
|
|
4893
|
-
const
|
|
4894
|
-
b(
|
|
4893
|
+
const I = p(j.current, w);
|
|
4894
|
+
b(I);
|
|
4895
4895
|
} else
|
|
4896
4896
|
b("");
|
|
4897
4897
|
else {
|
|
4898
|
-
const
|
|
4898
|
+
const I = x(F, r, e), V = os(
|
|
4899
4899
|
D,
|
|
4900
|
-
|
|
4900
|
+
d,
|
|
4901
4901
|
m
|
|
4902
4902
|
);
|
|
4903
|
-
S(
|
|
4904
|
-
const z =
|
|
4905
|
-
b(z), j.current =
|
|
4903
|
+
S(V);
|
|
4904
|
+
const z = p(I, V);
|
|
4905
|
+
b(z), j.current = I, i == null || i(I, z), P && (o == null || o(I));
|
|
4906
4906
|
}
|
|
4907
4907
|
},
|
|
4908
4908
|
[
|
|
4909
4909
|
y,
|
|
4910
|
-
|
|
4910
|
+
d,
|
|
4911
4911
|
m,
|
|
4912
4912
|
x,
|
|
4913
4913
|
r,
|
|
4914
4914
|
e,
|
|
4915
|
-
|
|
4915
|
+
p,
|
|
4916
4916
|
i,
|
|
4917
4917
|
o,
|
|
4918
4918
|
w
|
|
@@ -4924,16 +4924,16 @@ const ke = (r, e, t) => ({
|
|
|
4924
4924
|
}
|
|
4925
4925
|
if (D.key === "ArrowUp" || D.key === "ArrowDown") {
|
|
4926
4926
|
D.preventDefault();
|
|
4927
|
-
const
|
|
4928
|
-
k(
|
|
4927
|
+
const P = D.key === "ArrowUp" ? 1 : -1, F = j.current ?? 0, I = x(F + P * t, r, e);
|
|
4928
|
+
k(p(I, w));
|
|
4929
4929
|
}
|
|
4930
|
-
},
|
|
4930
|
+
}, $ = (D) => {
|
|
4931
4931
|
if (!D.currentTarget.contains(document.activeElement)) return;
|
|
4932
4932
|
D.preventDefault();
|
|
4933
|
-
const
|
|
4934
|
-
k(
|
|
4933
|
+
const P = D.deltaY < 0 ? 1 : -1, F = j.current ?? 0, I = x(F + P * t, r, e);
|
|
4934
|
+
k(p(I, w));
|
|
4935
4935
|
};
|
|
4936
|
-
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel:
|
|
4936
|
+
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: $, children: /* @__PURE__ */ g.jsx(
|
|
4937
4937
|
Le,
|
|
4938
4938
|
{
|
|
4939
4939
|
...l,
|
|
@@ -5008,9 +5008,9 @@ const _s = ({
|
|
|
5008
5008
|
helperText: c,
|
|
5009
5009
|
error: f,
|
|
5010
5010
|
onBlur: u,
|
|
5011
|
-
onKeyDown:
|
|
5011
|
+
onKeyDown: d,
|
|
5012
5012
|
rows: m = 10,
|
|
5013
|
-
cols:
|
|
5013
|
+
cols: p = 150
|
|
5014
5014
|
}) => {
|
|
5015
5015
|
const y = Re(), x = `${y}-helper`, _ = f ? "danger" : s, w = c || !!f, S = (b) => {
|
|
5016
5016
|
t == null || t(b.target.value);
|
|
@@ -5031,12 +5031,12 @@ const _s = ({
|
|
|
5031
5031
|
className: E.container,
|
|
5032
5032
|
disabled: r,
|
|
5033
5033
|
readOnly: !i,
|
|
5034
|
-
onKeyDown:
|
|
5034
|
+
onKeyDown: d,
|
|
5035
5035
|
"aria-label": o ? void 0 : l,
|
|
5036
5036
|
"aria-labelledby": o ? y : void 0,
|
|
5037
5037
|
"aria-describedby": w ? x : void 0,
|
|
5038
5038
|
rows: m,
|
|
5039
|
-
cols:
|
|
5039
|
+
cols: p
|
|
5040
5040
|
}
|
|
5041
5041
|
),
|
|
5042
5042
|
w && /* @__PURE__ */ g.jsx(
|
|
@@ -5077,13 +5077,13 @@ const We = {
|
|
|
5077
5077
|
container: We["smp-radio"],
|
|
5078
5078
|
optionsContainer: `${We["smp-radio-options-container"]} ${t == Lt.LINE_DIRECTION ? We["smp-radio-horizontal"] : ""}`,
|
|
5079
5079
|
option: `${We["smp-radio-element"]} ${r ? We["smp-radio-disabled"] : ""}`
|
|
5080
|
-
},
|
|
5080
|
+
}, d = () => {
|
|
5081
5081
|
var y;
|
|
5082
5082
|
r || (y = o.onBlur) == null || y.call(o);
|
|
5083
5083
|
}, m = (y) => {
|
|
5084
5084
|
var x;
|
|
5085
5085
|
r || (x = o.onChange) == null || x.call(o, y.id, y.label);
|
|
5086
|
-
},
|
|
5086
|
+
}, p = Re();
|
|
5087
5087
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, id: f, children: [
|
|
5088
5088
|
i && /* @__PURE__ */ g.jsx(Ce, { label: i, disabled: r, htmlFor: f }),
|
|
5089
5089
|
/* @__PURE__ */ g.jsx("div", { className: u.optionsContainer, children: l == null ? void 0 : l.map((y, x) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
@@ -5091,12 +5091,12 @@ const We = {
|
|
|
5091
5091
|
"input",
|
|
5092
5092
|
{
|
|
5093
5093
|
type: "radio",
|
|
5094
|
-
name:
|
|
5094
|
+
name: p,
|
|
5095
5095
|
value: y.id,
|
|
5096
5096
|
disabled: r,
|
|
5097
5097
|
checked: y.id === o.bindValue,
|
|
5098
5098
|
onChange: () => m(y),
|
|
5099
|
-
onBlur:
|
|
5099
|
+
onBlur: d
|
|
5100
5100
|
}
|
|
5101
5101
|
),
|
|
5102
5102
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5180,14 +5180,14 @@ const We = {
|
|
|
5180
5180
|
isEditable: n = !0,
|
|
5181
5181
|
...s
|
|
5182
5182
|
}) => {
|
|
5183
|
-
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef:
|
|
5183
|
+
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef: d, targetRef: m } = ht({
|
|
5184
5184
|
position: "bottom",
|
|
5185
5185
|
enabled: i
|
|
5186
|
-
}),
|
|
5186
|
+
}), p = ue(() => {
|
|
5187
5187
|
var b;
|
|
5188
5188
|
o(!1), (b = a == null ? void 0 : a.current) == null || b.focus();
|
|
5189
5189
|
}, []);
|
|
5190
|
-
gt([m,
|
|
5190
|
+
gt([m, d], i, () => o(!1)), kt(i, m), re(() => {
|
|
5191
5191
|
const b = r || "", j = Or(b) ? b : r || "";
|
|
5192
5192
|
c(b), u(j);
|
|
5193
5193
|
}, [r]), re(() => {
|
|
@@ -5204,7 +5204,7 @@ const We = {
|
|
|
5204
5204
|
u(b);
|
|
5205
5205
|
}, _ = (b, j, k) => {
|
|
5206
5206
|
const A = $s(b, j, k);
|
|
5207
|
-
c(A), u(A), t == null || t(A),
|
|
5207
|
+
c(A), u(A), t == null || t(A), p();
|
|
5208
5208
|
}, w = () => {
|
|
5209
5209
|
E(f);
|
|
5210
5210
|
}, S = (b) => {
|
|
@@ -5218,7 +5218,7 @@ const We = {
|
|
|
5218
5218
|
};
|
|
5219
5219
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5220
5220
|
/* @__PURE__ */ g.jsx(
|
|
5221
|
-
|
|
5221
|
+
It,
|
|
5222
5222
|
{
|
|
5223
5223
|
...s,
|
|
5224
5224
|
bindValue: f,
|
|
@@ -5229,7 +5229,7 @@ const We = {
|
|
|
5229
5229
|
shapeIcon: "clock",
|
|
5230
5230
|
onShapeIconClick: y,
|
|
5231
5231
|
isEditable: n,
|
|
5232
|
-
ref:
|
|
5232
|
+
ref: d,
|
|
5233
5233
|
inputRef: a
|
|
5234
5234
|
}
|
|
5235
5235
|
),
|
|
@@ -5298,9 +5298,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5298
5298
|
options: c,
|
|
5299
5299
|
onChange: f,
|
|
5300
5300
|
onClick: u,
|
|
5301
|
-
onEnter:
|
|
5301
|
+
onEnter: d,
|
|
5302
5302
|
onBlur: m,
|
|
5303
|
-
onOptionsRequest:
|
|
5303
|
+
onOptionsRequest: p,
|
|
5304
5304
|
onContextMenu: y,
|
|
5305
5305
|
isEditable: x,
|
|
5306
5306
|
dSep: _ = "."
|
|
@@ -5313,16 +5313,16 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5313
5313
|
fun: a
|
|
5314
5314
|
}, S = {
|
|
5315
5315
|
onBlur: m,
|
|
5316
|
-
onOptionsRequest:
|
|
5316
|
+
onOptionsRequest: p,
|
|
5317
5317
|
fun: a,
|
|
5318
5318
|
icon: s,
|
|
5319
5319
|
tooltip: l,
|
|
5320
5320
|
label: o,
|
|
5321
5321
|
isEditable: x,
|
|
5322
5322
|
...n
|
|
5323
|
-
}, E = (T,
|
|
5323
|
+
}, E = (T, $, D) => xn(t) ? ke(T, new ct(t, $).getLegacyValue()) : Sn(t) ? ke(T, new pt(t, $).getLegacyValue()) : ke(T, $, D), b = (T, $) => ke(
|
|
5324
5324
|
T,
|
|
5325
|
-
new Ke(t,
|
|
5325
|
+
new Ke(t, $, _).getLegacyValue()
|
|
5326
5326
|
), j = (T) => ke(w, new lt(t, T).getLegacyValue()), k = (T) => Ts(w, T), A = () => {
|
|
5327
5327
|
switch (e) {
|
|
5328
5328
|
case te.AUTOCOMPLETE: {
|
|
@@ -5330,8 +5330,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5330
5330
|
...S,
|
|
5331
5331
|
bindValue: t.k,
|
|
5332
5332
|
optionalDisplayValue: r,
|
|
5333
|
-
onChange: (
|
|
5334
|
-
f == null || f(E(w,
|
|
5333
|
+
onChange: ($, D) => {
|
|
5334
|
+
f == null || f(E(w, $, D));
|
|
5335
5335
|
}
|
|
5336
5336
|
};
|
|
5337
5337
|
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
@@ -5352,9 +5352,9 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5352
5352
|
const T = {
|
|
5353
5353
|
...S,
|
|
5354
5354
|
options: c,
|
|
5355
|
-
onClick: (
|
|
5356
|
-
const
|
|
5357
|
-
u == null || u(E(
|
|
5355
|
+
onClick: ($, D) => {
|
|
5356
|
+
const P = { ...w, fun: D };
|
|
5357
|
+
u == null || u(E(P, $));
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
5360
5360
|
return /* @__PURE__ */ g.jsx(ps, { ...T });
|
|
@@ -5368,7 +5368,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5368
5368
|
}
|
|
5369
5369
|
case te.CHECKBOX:
|
|
5370
5370
|
case te.SWITCH: {
|
|
5371
|
-
const T = e === te.SWITCH,
|
|
5371
|
+
const T = e === te.SWITCH, $ = {
|
|
5372
5372
|
...S,
|
|
5373
5373
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5374
5374
|
optionalDisplayValue: r,
|
|
@@ -5377,15 +5377,15 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5377
5377
|
},
|
|
5378
5378
|
...T && { variant: "switch" }
|
|
5379
5379
|
};
|
|
5380
|
-
return /* @__PURE__ */ g.jsx(ms, {
|
|
5380
|
+
return /* @__PURE__ */ g.jsx(ms, { ...$ });
|
|
5381
5381
|
}
|
|
5382
5382
|
case te.COMBOBOX: {
|
|
5383
5383
|
const T = {
|
|
5384
5384
|
...S,
|
|
5385
5385
|
bindValue: t.k,
|
|
5386
5386
|
optionalDisplayValue: r,
|
|
5387
|
-
onChange: (
|
|
5388
|
-
f == null || f(E(w,
|
|
5387
|
+
onChange: ($, D) => {
|
|
5388
|
+
f == null || f(E(w, $, D));
|
|
5389
5389
|
}
|
|
5390
5390
|
};
|
|
5391
5391
|
return /* @__PURE__ */ g.jsx(gs, { ...T });
|
|
@@ -5394,8 +5394,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5394
5394
|
const T = {
|
|
5395
5395
|
...S,
|
|
5396
5396
|
bindValue: ct.fromDataObj(t).getValue(),
|
|
5397
|
-
onChange: (
|
|
5398
|
-
f == null || f(E(w,
|
|
5397
|
+
onChange: ($) => {
|
|
5398
|
+
f == null || f(E(w, $));
|
|
5399
5399
|
}
|
|
5400
5400
|
};
|
|
5401
5401
|
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
@@ -5417,19 +5417,20 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5417
5417
|
const T = {
|
|
5418
5418
|
...S,
|
|
5419
5419
|
bindValue: Ke.fromDataObj(t, _).getValue(),
|
|
5420
|
-
onChange: (
|
|
5421
|
-
f == null || f(b(w,
|
|
5420
|
+
onChange: ($) => {
|
|
5421
|
+
f == null || f(b(w, $));
|
|
5422
5422
|
}
|
|
5423
5423
|
};
|
|
5424
5424
|
return /* @__PURE__ */ g.jsx(Os, { ...T });
|
|
5425
5425
|
}
|
|
5426
|
+
case te.EDITOR:
|
|
5426
5427
|
case te.MEMO: {
|
|
5427
5428
|
const T = {
|
|
5428
5429
|
...S,
|
|
5429
5430
|
bindValue: t.k,
|
|
5430
5431
|
optionalDisplayValue: r,
|
|
5431
|
-
onChange: (
|
|
5432
|
-
f == null || f(E(w,
|
|
5432
|
+
onChange: ($) => {
|
|
5433
|
+
f == null || f(E(w, $));
|
|
5433
5434
|
}
|
|
5434
5435
|
};
|
|
5435
5436
|
return /* @__PURE__ */ g.jsx(_s, { ...T });
|
|
@@ -5438,8 +5439,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5438
5439
|
const T = {
|
|
5439
5440
|
...S,
|
|
5440
5441
|
elements: Tr(w),
|
|
5441
|
-
onChange: (
|
|
5442
|
-
f == null || f(k(
|
|
5442
|
+
onChange: ($) => {
|
|
5443
|
+
f == null || f(k($));
|
|
5443
5444
|
}
|
|
5444
5445
|
};
|
|
5445
5446
|
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
@@ -5448,8 +5449,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5448
5449
|
const T = {
|
|
5449
5450
|
...S,
|
|
5450
5451
|
bindValue: t.k,
|
|
5451
|
-
onChange: (
|
|
5452
|
-
f == null || f(E(w,
|
|
5452
|
+
onChange: ($) => {
|
|
5453
|
+
f == null || f(E(w, $));
|
|
5453
5454
|
}
|
|
5454
5455
|
};
|
|
5455
5456
|
return /* @__PURE__ */ g.jsx(Ss, { ...T });
|
|
@@ -5458,8 +5459,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5458
5459
|
const T = {
|
|
5459
5460
|
...S,
|
|
5460
5461
|
bindValue: t.k,
|
|
5461
|
-
onChange: (
|
|
5462
|
-
f == null || f(E(w,
|
|
5462
|
+
onChange: ($, D) => {
|
|
5463
|
+
f == null || f(E(w, $, D));
|
|
5463
5464
|
}
|
|
5464
5465
|
};
|
|
5465
5466
|
return /* @__PURE__ */ g.jsx(Rs, { ...T });
|
|
@@ -5468,8 +5469,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5468
5469
|
const T = {
|
|
5469
5470
|
...S,
|
|
5470
5471
|
bindValue: t.k,
|
|
5471
|
-
onEnter: (
|
|
5472
|
-
|
|
5472
|
+
onEnter: ($) => {
|
|
5473
|
+
d == null || d(E(w, $));
|
|
5473
5474
|
}
|
|
5474
5475
|
};
|
|
5475
5476
|
return /* @__PURE__ */ g.jsx(ws, { ...T });
|
|
@@ -5479,8 +5480,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5479
5480
|
...S,
|
|
5480
5481
|
bindValue: t.k,
|
|
5481
5482
|
optionalDisplayValue: r,
|
|
5482
|
-
onChange: (
|
|
5483
|
-
f == null || f(E(w,
|
|
5483
|
+
onChange: ($) => {
|
|
5484
|
+
f == null || f(E(w, $));
|
|
5484
5485
|
}
|
|
5485
5486
|
};
|
|
5486
5487
|
return /* @__PURE__ */ g.jsx(Le, { ...T });
|
|
@@ -5489,8 +5490,8 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5489
5490
|
const T = {
|
|
5490
5491
|
...S,
|
|
5491
5492
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5492
|
-
onChange: (
|
|
5493
|
-
f == null || f(E(w,
|
|
5493
|
+
onChange: ($) => {
|
|
5494
|
+
f == null || f(E(w, $));
|
|
5494
5495
|
}
|
|
5495
5496
|
};
|
|
5496
5497
|
return /* @__PURE__ */ g.jsx(Cs, { ...T });
|
|
@@ -5526,21 +5527,21 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5526
5527
|
var o, l;
|
|
5527
5528
|
const [s, a] = G(), i = ue(
|
|
5528
5529
|
(c) => {
|
|
5529
|
-
var u,
|
|
5530
|
-
if (!((u = c.rows) != null && u.length) || !((
|
|
5530
|
+
var u, d;
|
|
5531
|
+
if (!((u = c.rows) != null && u.length) || !((d = c.columns) != null && d.length))
|
|
5531
5532
|
return {};
|
|
5532
5533
|
const f = c.rows[0];
|
|
5533
|
-
return c.columns.filter((m) => m.visible).reduce((m,
|
|
5534
|
-
const y = f.cells[
|
|
5534
|
+
return c.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5535
|
+
const y = f.cells[p.name], x = {
|
|
5535
5536
|
...y,
|
|
5536
|
-
id:
|
|
5537
|
+
id: p.name,
|
|
5537
5538
|
onChange: (_) => {
|
|
5538
5539
|
a((w) => w && {
|
|
5539
5540
|
...w,
|
|
5540
|
-
[
|
|
5541
|
-
...w[
|
|
5541
|
+
[p.name]: {
|
|
5542
|
+
...w[p.name],
|
|
5542
5543
|
obj: {
|
|
5543
|
-
...w[
|
|
5544
|
+
...w[p.name].obj,
|
|
5544
5545
|
k: _.obj.k
|
|
5545
5546
|
}
|
|
5546
5547
|
}
|
|
@@ -5560,7 +5561,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5560
5561
|
};
|
|
5561
5562
|
return {
|
|
5562
5563
|
...m,
|
|
5563
|
-
[
|
|
5564
|
+
[p.name]: x
|
|
5564
5565
|
};
|
|
5565
5566
|
}, {});
|
|
5566
5567
|
},
|
|
@@ -5569,7 +5570,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5569
5570
|
return re(() => {
|
|
5570
5571
|
r && a(i(r));
|
|
5571
5572
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((c) => /* @__PURE__ */ g.jsx(_e, { ...c })) }) });
|
|
5572
|
-
},
|
|
5573
|
+
}, Ps = (r) => {
|
|
5573
5574
|
var e;
|
|
5574
5575
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5575
5576
|
var n, s;
|
|
@@ -5593,49 +5594,49 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5593
5594
|
onContextMenu: c
|
|
5594
5595
|
}) => {
|
|
5595
5596
|
var E, b;
|
|
5596
|
-
const [f, u] = G(), [
|
|
5597
|
+
const [f, u] = G(), [d, m] = G(t ?? !0), p = ce(null), y = s.trim() ? s : "100vh", x = ue(
|
|
5597
5598
|
(j) => {
|
|
5598
5599
|
var A, O;
|
|
5599
5600
|
if (!((A = j == null ? void 0 : j.rows) != null && A.length) || !((O = j == null ? void 0 : j.columns) != null && O.length))
|
|
5600
5601
|
return {};
|
|
5601
5602
|
const k = j.rows[0];
|
|
5602
|
-
return j.columns.filter((T) => T.visible ?? !0).reduce((T,
|
|
5603
|
-
const D = k.cells[
|
|
5604
|
-
if (!D || !
|
|
5603
|
+
return j.columns.filter((T) => T.visible ?? !0).reduce((T, $) => {
|
|
5604
|
+
const D = k.cells[$.name];
|
|
5605
|
+
if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
|
|
5605
5606
|
return T;
|
|
5606
|
-
const
|
|
5607
|
+
const P = {
|
|
5607
5608
|
...D,
|
|
5608
|
-
id:
|
|
5609
|
-
onChange: (
|
|
5610
|
-
u((
|
|
5611
|
-
const
|
|
5612
|
-
return
|
|
5609
|
+
id: $.name,
|
|
5610
|
+
onChange: (F) => {
|
|
5611
|
+
u((I) => {
|
|
5612
|
+
const V = { ...I };
|
|
5613
|
+
return V != null && V[$.name] && (V[$.name].obj.k = F.obj.k), V;
|
|
5613
5614
|
});
|
|
5614
5615
|
},
|
|
5615
|
-
onClick: (
|
|
5616
|
-
|
|
5616
|
+
onClick: (F) => {
|
|
5617
|
+
F.fun && a && a(F);
|
|
5617
5618
|
},
|
|
5618
|
-
onEnter: (
|
|
5619
|
-
i && i(
|
|
5619
|
+
onEnter: (F) => {
|
|
5620
|
+
i && i(F);
|
|
5620
5621
|
},
|
|
5621
|
-
onContextMenu: (
|
|
5622
|
-
c && c(
|
|
5622
|
+
onContextMenu: (F, I) => {
|
|
5623
|
+
c && c(F, I);
|
|
5623
5624
|
}
|
|
5624
5625
|
};
|
|
5625
|
-
return l && D.shape == te.BUTTON_LIST && (
|
|
5626
|
-
(
|
|
5627
|
-
)), !
|
|
5628
|
-
...
|
|
5626
|
+
return l && D.shape == te.BUTTON_LIST && (P.onOptionsRequest = (F, I) => l(F, I).then(
|
|
5627
|
+
(V) => Ps(V)
|
|
5628
|
+
)), !d && de(n) && (P.data = {
|
|
5629
|
+
...P.data,
|
|
5629
5630
|
showText: !1,
|
|
5630
5631
|
justify: "center",
|
|
5631
5632
|
squared: !0
|
|
5632
5633
|
}), {
|
|
5633
5634
|
...T,
|
|
5634
|
-
[
|
|
5635
|
+
[$.name]: P
|
|
5635
5636
|
};
|
|
5636
5637
|
}, {});
|
|
5637
5638
|
},
|
|
5638
|
-
[
|
|
5639
|
+
[d, n, a, i, l, c]
|
|
5639
5640
|
), _ = ue(() => {
|
|
5640
5641
|
o == null || o();
|
|
5641
5642
|
}, [o]), w = () => {
|
|
@@ -5644,31 +5645,31 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5644
5645
|
if (re(() => {
|
|
5645
5646
|
u(x(r));
|
|
5646
5647
|
}, [r]), re(() => {
|
|
5647
|
-
if (!
|
|
5648
|
+
if (!p.current)
|
|
5648
5649
|
return;
|
|
5649
5650
|
if (!de(n)) {
|
|
5650
5651
|
u(x(r));
|
|
5651
5652
|
return;
|
|
5652
5653
|
}
|
|
5653
|
-
const j = getComputedStyle(
|
|
5654
|
+
const j = getComputedStyle(p.current).getPropertyValue(
|
|
5654
5655
|
"--smp-drawer-slide-transition"
|
|
5655
5656
|
);
|
|
5656
5657
|
let k = Number(j);
|
|
5657
5658
|
j.endsWith("ms") ? k = parseFloat(j) : j.endsWith("s") && (k = parseFloat(j) * 1e3), setTimeout(() => {
|
|
5658
5659
|
u(x(r));
|
|
5659
5660
|
}, k / 2);
|
|
5660
|
-
}, [
|
|
5661
|
+
}, [d, n]), re(() => {
|
|
5661
5662
|
t !== void 0 && !de(n) && m(t);
|
|
5662
5663
|
}, [n, t]), !((E = r == null ? void 0 : r.rows) != null && E.length) || !((b = r.columns) != null && b.length))
|
|
5663
5664
|
return null;
|
|
5664
5665
|
const S = {
|
|
5665
|
-
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${
|
|
5666
|
+
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${d ? "smp-drawer-open" : ""} ${!de(n) && !d ? "smp-drawer-no-border" : ""}`,
|
|
5666
5667
|
container: "smp-drawer-container",
|
|
5667
5668
|
containerHeader: "smp-drawer-container-header",
|
|
5668
|
-
containerIcon: `${
|
|
5669
|
+
containerIcon: `${d ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
5669
5670
|
containerLayout: "smp-drawer-container-layout",
|
|
5670
5671
|
containerLogo: "smp-drawer-container-logo",
|
|
5671
|
-
backdrop: `smp-drawer-backdrop ${
|
|
5672
|
+
backdrop: `smp-drawer-backdrop ${d ? "smp-drawer-backdrop-open" : ""}`
|
|
5672
5673
|
};
|
|
5673
5674
|
return f && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5674
5675
|
!de(n) && /* @__PURE__ */ g.jsx(
|
|
@@ -5683,7 +5684,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5683
5684
|
/* @__PURE__ */ g.jsx(
|
|
5684
5685
|
"aside",
|
|
5685
5686
|
{
|
|
5686
|
-
ref:
|
|
5687
|
+
ref: p,
|
|
5687
5688
|
className: S.drawer,
|
|
5688
5689
|
style: { height: y },
|
|
5689
5690
|
"aria-label": "Drawer",
|
|
@@ -5704,7 +5705,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5704
5705
|
{
|
|
5705
5706
|
icon: de(n) ? "menu_close" : "close",
|
|
5706
5707
|
title: "drawer_icon",
|
|
5707
|
-
rotated: !
|
|
5708
|
+
rotated: !d,
|
|
5708
5709
|
isInteractable: !0,
|
|
5709
5710
|
onClick: w,
|
|
5710
5711
|
width: 20,
|
|
@@ -5730,18 +5731,18 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5730
5731
|
IconColName: c,
|
|
5731
5732
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5732
5733
|
NumberFormat: u,
|
|
5733
|
-
ForceUM:
|
|
5734
|
+
ForceUM: d,
|
|
5734
5735
|
UmColName: m,
|
|
5735
|
-
UmColor:
|
|
5736
|
+
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5736
5737
|
ForceValue: y,
|
|
5737
5738
|
ValueColName: x,
|
|
5738
5739
|
ValueColor: _ = "var(--smp-dashList-color-base)",
|
|
5739
5740
|
SelectLayout: w = "1",
|
|
5740
5741
|
onClick: S
|
|
5741
5742
|
}) => {
|
|
5742
|
-
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, A = "--smp-dashList-color", O = "smp-layout", T = "descr",
|
|
5743
|
+
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, A = "--smp-dashList-color", O = "smp-layout", T = "descr", $ = "icon", D = "um", P = "value", F = i || "1em", I = "18px", V = "--smp-dashList-columns", z = "--smp-dashList-fontSize", J = {
|
|
5743
5744
|
dash: (H = "1") => {
|
|
5744
|
-
const Z = h(H), ne = Z, se = v(Z, T), he = v(Z,
|
|
5745
|
+
const Z = h(H), ne = Z, se = v(Z, T), he = v(Z, $), we = v(Z, D), be = v(Z, P);
|
|
5745
5746
|
return {
|
|
5746
5747
|
container: ne,
|
|
5747
5748
|
descr: se,
|
|
@@ -5760,15 +5761,15 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5760
5761
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5761
5762
|
}
|
|
5762
5763
|
return H;
|
|
5763
|
-
},
|
|
5764
|
+
}, C = (H) => {
|
|
5764
5765
|
if (!u) return H;
|
|
5765
5766
|
const [Z, ne] = N(u).map(
|
|
5766
|
-
(
|
|
5767
|
+
(Pe) => parseInt(Pe || "0")
|
|
5767
5768
|
), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he = Y(H, se, "it");
|
|
5768
5769
|
if (!Z) return he;
|
|
5769
5770
|
const [we, be] = he.split(",");
|
|
5770
5771
|
return we + (be ? `,${be}` : "");
|
|
5771
|
-
}, N = (H) => H.includes(";") ? H.split(";") : [H],
|
|
5772
|
+
}, N = (H) => H.includes(";") ? H.split(";") : [H], W = (H) => {
|
|
5772
5773
|
const Z = (se) => {
|
|
5773
5774
|
var he;
|
|
5774
5775
|
if (se)
|
|
@@ -5781,12 +5782,12 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5781
5782
|
return {
|
|
5782
5783
|
descr: t || Z(n) || ne(2) || "",
|
|
5783
5784
|
icon: l || Z(c) || ne(3) || "",
|
|
5784
|
-
um:
|
|
5785
|
+
um: d || Z(m) || ne(1) || "",
|
|
5785
5786
|
value: y || Z(x) || ne(0) || ""
|
|
5786
5787
|
};
|
|
5787
5788
|
}, B = (H) => {
|
|
5788
5789
|
S == null || S(H);
|
|
5789
|
-
},
|
|
5790
|
+
}, U = (H, Z) => {
|
|
5790
5791
|
(H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), B(Z));
|
|
5791
5792
|
}, K = ((H) => {
|
|
5792
5793
|
const Z = J.dash(H);
|
|
@@ -5797,30 +5798,30 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5797
5798
|
le,
|
|
5798
5799
|
{
|
|
5799
5800
|
color: f,
|
|
5800
|
-
height:
|
|
5801
|
+
height: I,
|
|
5801
5802
|
icon: ne,
|
|
5802
|
-
width:
|
|
5803
|
+
width: I
|
|
5803
5804
|
}
|
|
5804
|
-
) }, `${H}-${
|
|
5805
|
+
) }, `${H}-${$}`),
|
|
5805
5806
|
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${D}`),
|
|
5806
|
-
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${
|
|
5807
|
+
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${P}`)
|
|
5807
5808
|
};
|
|
5808
5809
|
})(w), ae = (H) => {
|
|
5809
|
-
const { descr: Z, icon: ne, um: se, value: he } =
|
|
5810
|
+
const { descr: Z, icon: ne, um: se, value: he } = W(H), we = {
|
|
5810
5811
|
[R(T)]: L(s),
|
|
5811
|
-
[R(D)]: L(
|
|
5812
|
-
[R(
|
|
5813
|
-
}, be = [],
|
|
5812
|
+
[R(D)]: L(p),
|
|
5813
|
+
[R(P)]: L(_)
|
|
5814
|
+
}, be = [], Pe = C(he);
|
|
5814
5815
|
switch (w) {
|
|
5815
5816
|
case "2":
|
|
5816
5817
|
ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
|
|
5817
|
-
K.value(se ?
|
|
5818
|
+
K.value(se ? Pe + " " + se : Pe)
|
|
5818
5819
|
);
|
|
5819
5820
|
break;
|
|
5820
5821
|
default:
|
|
5821
5822
|
case "1":
|
|
5822
5823
|
be.push(K.descr(Z)), be.push(
|
|
5823
|
-
K.value(se ?
|
|
5824
|
+
K.value(se ? Pe + " " + se : Pe)
|
|
5824
5825
|
);
|
|
5825
5826
|
}
|
|
5826
5827
|
return /* @__PURE__ */ g.jsx(
|
|
@@ -5831,22 +5832,22 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5831
5832
|
style: we,
|
|
5832
5833
|
tabIndex: 0,
|
|
5833
5834
|
onClick: () => B(H),
|
|
5834
|
-
onKeyDown: (Fr) =>
|
|
5835
|
+
onKeyDown: (Fr) => U(Fr, H),
|
|
5835
5836
|
children: be
|
|
5836
5837
|
},
|
|
5837
5838
|
H.rowId
|
|
5838
5839
|
);
|
|
5839
5840
|
}, M = {
|
|
5840
|
-
[
|
|
5841
|
-
[z]:
|
|
5841
|
+
[V]: String(r),
|
|
5842
|
+
[z]: F
|
|
5842
5843
|
};
|
|
5843
5844
|
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? j.map((H) => ae(H)) : E });
|
|
5844
5845
|
}, nt = {
|
|
5845
5846
|
"smp-table": "_smp-table_1qmju_1",
|
|
5846
5847
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5847
5848
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5848
|
-
},
|
|
5849
|
-
rowContent:
|
|
5849
|
+
}, Is = "_rowContent_20wit_2", Ns = "_clickable_20wit_21", ks = "_indent_20wit_26", Ms = "_toggle_20wit_32", Fs = "_cell_20wit_38", Vs = "_leftSection_20wit_46", Te = {
|
|
5850
|
+
rowContent: Is,
|
|
5850
5851
|
clickable: Ns,
|
|
5851
5852
|
indent: ks,
|
|
5852
5853
|
toggle: Ms,
|
|
@@ -5877,12 +5878,12 @@ const Mr = ({
|
|
|
5877
5878
|
var w;
|
|
5878
5879
|
const [a, i] = G(!1), o = st(r) && !!((w = r.children) != null && w.length), l = r.cells && Object.keys(r.cells).length > 0, c = o, f = t * 20, u = () => {
|
|
5879
5880
|
o && i(!a);
|
|
5880
|
-
},
|
|
5881
|
+
}, d = {
|
|
5881
5882
|
content: `${Te.rowContent} ${o ? Te.clickable : ""}`,
|
|
5882
5883
|
toggle: `${Te.toggle}`,
|
|
5883
5884
|
indent: `${Te.indent}`,
|
|
5884
5885
|
cell: `${Te.cell}`
|
|
5885
|
-
}, m = (S) => /* @__PURE__ */ g.jsx(_e, { ...S }),
|
|
5886
|
+
}, m = (S) => /* @__PURE__ */ g.jsx(_e, { ...S }), p = () => /* @__PURE__ */ g.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ g.jsx(
|
|
5886
5887
|
le,
|
|
5887
5888
|
{
|
|
5888
5889
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5891,7 +5892,7 @@ const Mr = ({
|
|
|
5891
5892
|
) }), y = () => /* @__PURE__ */ g.jsx(
|
|
5892
5893
|
"span",
|
|
5893
5894
|
{
|
|
5894
|
-
className:
|
|
5895
|
+
className: d.indent,
|
|
5895
5896
|
style: { width: `${f}px` },
|
|
5896
5897
|
"aria-hidden": "true"
|
|
5897
5898
|
}
|
|
@@ -5900,7 +5901,7 @@ const Mr = ({
|
|
|
5900
5901
|
return /* @__PURE__ */ g.jsxs(
|
|
5901
5902
|
"tr",
|
|
5902
5903
|
{
|
|
5903
|
-
className:
|
|
5904
|
+
className: d.content,
|
|
5904
5905
|
onClick: u,
|
|
5905
5906
|
role: o ? "button" : "row",
|
|
5906
5907
|
"aria-expanded": o ? !a : void 0,
|
|
@@ -5919,7 +5920,7 @@ const Mr = ({
|
|
|
5919
5920
|
},
|
|
5920
5921
|
children: [
|
|
5921
5922
|
y(),
|
|
5922
|
-
|
|
5923
|
+
p(),
|
|
5923
5924
|
/* @__PURE__ */ g.jsx("span", { className: Te.rowLabel, children: S })
|
|
5924
5925
|
]
|
|
5925
5926
|
}
|
|
@@ -5927,7 +5928,7 @@ const Mr = ({
|
|
|
5927
5928
|
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, j]) => /* @__PURE__ */ g.jsx(
|
|
5928
5929
|
"td",
|
|
5929
5930
|
{
|
|
5930
|
-
className:
|
|
5931
|
+
className: d.cell,
|
|
5931
5932
|
style: {
|
|
5932
5933
|
width: e[b],
|
|
5933
5934
|
minWidth: e[b],
|
|
@@ -6012,42 +6013,42 @@ function Gs(r, e, t, n) {
|
|
|
6012
6013
|
const s = [];
|
|
6013
6014
|
let a = 0;
|
|
6014
6015
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
6015
|
-
function i(u,
|
|
6016
|
-
if (
|
|
6016
|
+
function i(u, d, m) {
|
|
6017
|
+
if (d >= e.length) {
|
|
6017
6018
|
f(u);
|
|
6018
6019
|
return;
|
|
6019
6020
|
}
|
|
6020
|
-
const
|
|
6021
|
+
const p = e[d].column, y = o(u, p);
|
|
6021
6022
|
for (const [x, _] of y) {
|
|
6022
|
-
const w = [...m, x], S = l(w,
|
|
6023
|
-
s.push(c(x, S,
|
|
6023
|
+
const w = [...m, x], S = l(w, d), E = n.has(S);
|
|
6024
|
+
s.push(c(x, S, d, E)), a += t, E && i(_, d + 1, w);
|
|
6024
6025
|
}
|
|
6025
6026
|
}
|
|
6026
|
-
function o(u,
|
|
6027
|
-
var
|
|
6027
|
+
function o(u, d) {
|
|
6028
|
+
var p;
|
|
6028
6029
|
const m = /* @__PURE__ */ new Map();
|
|
6029
6030
|
for (const y of u) {
|
|
6030
|
-
const x = ((
|
|
6031
|
+
const x = ((p = y.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
6031
6032
|
m.has(x) || m.set(x, []), m.get(x).push(y);
|
|
6032
6033
|
}
|
|
6033
6034
|
return m;
|
|
6034
6035
|
}
|
|
6035
|
-
function l(u,
|
|
6036
|
-
return `group-${u.join("-")}-${
|
|
6036
|
+
function l(u, d) {
|
|
6037
|
+
return `group-${u.join("-")}-${d}`;
|
|
6037
6038
|
}
|
|
6038
|
-
function c(u,
|
|
6039
|
+
function c(u, d, m, p) {
|
|
6039
6040
|
return {
|
|
6040
6041
|
isGroup: !0,
|
|
6041
6042
|
value: u,
|
|
6042
6043
|
cells: {},
|
|
6043
|
-
rowId:
|
|
6044
|
+
rowId: d,
|
|
6044
6045
|
level: m,
|
|
6045
|
-
isExpanded:
|
|
6046
|
+
isExpanded: p
|
|
6046
6047
|
};
|
|
6047
6048
|
}
|
|
6048
6049
|
function f(u) {
|
|
6049
|
-
for (const
|
|
6050
|
-
s.push(
|
|
6050
|
+
for (const d of u)
|
|
6051
|
+
s.push(d), a += t;
|
|
6051
6052
|
}
|
|
6052
6053
|
}
|
|
6053
6054
|
const Ks = ({
|
|
@@ -6113,8 +6114,8 @@ const Ks = ({
|
|
|
6113
6114
|
);
|
|
6114
6115
|
a(c);
|
|
6115
6116
|
} else if (n === "fit-grid") {
|
|
6116
|
-
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((
|
|
6117
|
-
c.map((
|
|
6117
|
+
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((d) => d.visible !== !1), f = l / c.length, u = Object.fromEntries(
|
|
6118
|
+
c.map((d) => [d.name, f])
|
|
6118
6119
|
);
|
|
6119
6120
|
a(u);
|
|
6120
6121
|
} else if (n === "fit-content") {
|
|
@@ -6122,9 +6123,9 @@ const Ks = ({
|
|
|
6122
6123
|
for (const c of r) {
|
|
6123
6124
|
if (!c.visible) continue;
|
|
6124
6125
|
const f = ((o = c.title) == null ? void 0 : o.length) || 0, u = Math.max(
|
|
6125
|
-
...e.map((
|
|
6126
|
-
var m,
|
|
6127
|
-
return `${((
|
|
6126
|
+
...e.map((d) => {
|
|
6127
|
+
var m, p, y, x;
|
|
6128
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[c.name]) == null ? void 0 : p.decode) || ((x = (y = d.cells) == null ? void 0 : y[c.name]) == null ? void 0 : x.value) || ""}`.length;
|
|
6128
6129
|
}),
|
|
6129
6130
|
f
|
|
6130
6131
|
);
|
|
@@ -6146,10 +6147,10 @@ const Ks = ({
|
|
|
6146
6147
|
var k;
|
|
6147
6148
|
const [i, o] = G(
|
|
6148
6149
|
r ?? { columns: [], rows: [] }
|
|
6149
|
-
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()),
|
|
6150
|
+
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = zs({
|
|
6150
6151
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
6151
6152
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
6152
|
-
containerRef:
|
|
6153
|
+
containerRef: d,
|
|
6153
6154
|
sizingMode: s
|
|
6154
6155
|
});
|
|
6155
6156
|
re(() => {
|
|
@@ -6171,8 +6172,8 @@ const Ks = ({
|
|
|
6171
6172
|
const O = A.dataTransfer.getData("text/plain");
|
|
6172
6173
|
if (!O || l.some((D) => D.column === O))
|
|
6173
6174
|
return;
|
|
6174
|
-
const
|
|
6175
|
-
c(
|
|
6175
|
+
const $ = [...l, { column: O, visible: !0 }];
|
|
6176
|
+
c($);
|
|
6176
6177
|
}, _ = (A) => {
|
|
6177
6178
|
A.preventDefault();
|
|
6178
6179
|
}, { virtualItems: w, containerProps: S, innerProps: E } = Ar({
|
|
@@ -6181,16 +6182,16 @@ const Ks = ({
|
|
|
6181
6182
|
containerHeight: t,
|
|
6182
6183
|
overscan: 5
|
|
6183
6184
|
}), b = (A, O) => {
|
|
6184
|
-
const T = A.clientX,
|
|
6185
|
-
const
|
|
6186
|
-
|
|
6185
|
+
const T = A.clientX, $ = m[O], D = (F) => {
|
|
6186
|
+
const I = F.clientX - T, V = Math.max(50, $ + I);
|
|
6187
|
+
p((z) => ({
|
|
6187
6188
|
...z,
|
|
6188
|
-
[O]:
|
|
6189
|
+
[O]: V
|
|
6189
6190
|
}));
|
|
6190
|
-
},
|
|
6191
|
-
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup",
|
|
6191
|
+
}, P = () => {
|
|
6192
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", P);
|
|
6192
6193
|
};
|
|
6193
|
-
window.addEventListener("mousemove", D), window.addEventListener("mouseup",
|
|
6194
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", P);
|
|
6194
6195
|
}, j = {
|
|
6195
6196
|
smpTable: `${nt["smp-table"]}`,
|
|
6196
6197
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
@@ -6201,7 +6202,7 @@ const Ks = ({
|
|
|
6201
6202
|
{
|
|
6202
6203
|
className: j.smpTable,
|
|
6203
6204
|
...S,
|
|
6204
|
-
ref:
|
|
6205
|
+
ref: d,
|
|
6205
6206
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6206
6207
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6207
6208
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
@@ -6250,7 +6251,7 @@ const Ks = ({
|
|
|
6250
6251
|
)) })
|
|
6251
6252
|
] }),
|
|
6252
6253
|
/* @__PURE__ */ g.jsx("tbody", { ...E, children: w.map(({ item: A, index: O, offsetTop: T }) => {
|
|
6253
|
-
const
|
|
6254
|
+
const $ = A.rowId || A.value || `${A.isGroup ? "group" : "row"}-${O}`;
|
|
6254
6255
|
return A.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6255
6256
|
Ws,
|
|
6256
6257
|
{
|
|
@@ -6260,11 +6261,11 @@ const Ks = ({
|
|
|
6260
6261
|
level: A.level,
|
|
6261
6262
|
onClick: () => {
|
|
6262
6263
|
const D = A.rowId;
|
|
6263
|
-
D && u((
|
|
6264
|
+
D && u((P) => Bs(P, D));
|
|
6264
6265
|
},
|
|
6265
6266
|
isExpanded: A.isExpanded
|
|
6266
6267
|
},
|
|
6267
|
-
`group-${
|
|
6268
|
+
`group-${$}`
|
|
6268
6269
|
) : /* @__PURE__ */ g.jsx(
|
|
6269
6270
|
Mr,
|
|
6270
6271
|
{
|
|
@@ -6274,7 +6275,7 @@ const Ks = ({
|
|
|
6274
6275
|
offsetTop: T,
|
|
6275
6276
|
isGroup: !1
|
|
6276
6277
|
},
|
|
6277
|
-
`row-${
|
|
6278
|
+
`row-${$}`
|
|
6278
6279
|
);
|
|
6279
6280
|
}) }),
|
|
6280
6281
|
/* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
|
|
@@ -6304,7 +6305,7 @@ const Ks = ({
|
|
|
6304
6305
|
}, [r, s, e]);
|
|
6305
6306
|
const m = {
|
|
6306
6307
|
container: `smp-field-container ${de(t) ? `smp-field-position-${n}` : ""}`
|
|
6307
|
-
},
|
|
6308
|
+
}, p = () => {
|
|
6308
6309
|
de(t) || o == null || o(f);
|
|
6309
6310
|
};
|
|
6310
6311
|
if (f)
|
|
@@ -6326,7 +6327,7 @@ const Ks = ({
|
|
|
6326
6327
|
onChange: u,
|
|
6327
6328
|
onOptionsRequest: c,
|
|
6328
6329
|
fun: r == null ? void 0 : r.fun,
|
|
6329
|
-
onBlur:
|
|
6330
|
+
onBlur: p,
|
|
6330
6331
|
label: a,
|
|
6331
6332
|
labelPosition: i
|
|
6332
6333
|
}
|
|
@@ -6369,30 +6370,36 @@ const Ks = ({
|
|
|
6369
6370
|
onButtonClick: u
|
|
6370
6371
|
}) => {
|
|
6371
6372
|
var k, A;
|
|
6372
|
-
const [
|
|
6373
|
+
const [d, m] = G({}), { translate: p } = Ae(), y = Re();
|
|
6373
6374
|
re(() => {
|
|
6374
6375
|
m(E(r));
|
|
6375
6376
|
}, [r]);
|
|
6376
6377
|
const x = (O, T) => {
|
|
6377
|
-
m((
|
|
6378
|
-
|
|
6378
|
+
if (m(($) => ({
|
|
6379
|
+
...$,
|
|
6379
6380
|
[O]: {
|
|
6380
|
-
|
|
6381
|
+
...$[O],
|
|
6381
6382
|
obj: {
|
|
6382
|
-
|
|
6383
|
+
...$[O].obj,
|
|
6383
6384
|
k: T.obj.k
|
|
6384
6385
|
},
|
|
6385
6386
|
decode: T.decode,
|
|
6386
6387
|
data: {
|
|
6387
|
-
|
|
6388
|
+
...$[O].data,
|
|
6388
6389
|
error: void 0
|
|
6389
6390
|
},
|
|
6390
6391
|
// FIXME: remove this when webup.js will not use value
|
|
6391
6392
|
value: T.obj.k
|
|
6392
6393
|
}
|
|
6393
|
-
})), s && (T.shape == te.CHECKBOX || T.shape == te.SWITCH)
|
|
6394
|
+
})), s && (T.shape == te.CHECKBOX || T.shape == te.SWITCH)) {
|
|
6395
|
+
const $ = structuredClone(d);
|
|
6396
|
+
$[O].obj.k = T.obj.k, $[O].value = T.obj.k, o({
|
|
6397
|
+
value: b($),
|
|
6398
|
+
cell: O
|
|
6399
|
+
});
|
|
6400
|
+
}
|
|
6394
6401
|
}, _ = (O) => {
|
|
6395
|
-
const T = b();
|
|
6402
|
+
const T = b(d);
|
|
6396
6403
|
o({
|
|
6397
6404
|
value: T,
|
|
6398
6405
|
cell: O
|
|
@@ -6405,65 +6412,63 @@ const Ks = ({
|
|
|
6405
6412
|
columns: r.columns,
|
|
6406
6413
|
rows: [
|
|
6407
6414
|
{
|
|
6408
|
-
cells:
|
|
6415
|
+
cells: d
|
|
6409
6416
|
}
|
|
6410
6417
|
]
|
|
6411
6418
|
},
|
|
6412
6419
|
fun: T || ""
|
|
6413
6420
|
});
|
|
6414
6421
|
}, S = async (O) => {
|
|
6415
|
-
var T,
|
|
6416
|
-
if (
|
|
6417
|
-
obj:
|
|
6418
|
-
fun:
|
|
6422
|
+
var T, $;
|
|
6423
|
+
if (d[O].obj.k != r.rows[0].cells[O].obj.k && ((T = d[O].inputSettings) != null && T.checkObject && c && ((await c({
|
|
6424
|
+
obj: d[O].obj,
|
|
6425
|
+
fun: d[O].fun,
|
|
6419
6426
|
cellId: O
|
|
6420
|
-
})).valid || m((
|
|
6421
|
-
...
|
|
6427
|
+
})).valid || m((P) => ({
|
|
6428
|
+
...P,
|
|
6422
6429
|
[O]: {
|
|
6423
|
-
...
|
|
6430
|
+
...P[O],
|
|
6424
6431
|
data: {
|
|
6425
|
-
...
|
|
6426
|
-
error:
|
|
6432
|
+
...P[O].data,
|
|
6433
|
+
error: p(Oe.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6427
6434
|
}
|
|
6428
6435
|
}
|
|
6429
|
-
}))), (
|
|
6430
|
-
const D = b();
|
|
6436
|
+
}))), ($ = d[O].inputSettings) != null && $.checkValueOnExit)) {
|
|
6437
|
+
const D = b(d);
|
|
6431
6438
|
l == null || l({
|
|
6432
6439
|
value: D,
|
|
6433
6440
|
cell: O
|
|
6434
6441
|
});
|
|
6435
6442
|
}
|
|
6436
6443
|
}, E = (O) => {
|
|
6437
|
-
var
|
|
6438
|
-
if (!((
|
|
6444
|
+
var $, D, P;
|
|
6445
|
+
if (!(($ = O.rows) != null && $.length) || !((D = O.columns) != null && D.length))
|
|
6439
6446
|
return {};
|
|
6440
|
-
const T = (
|
|
6441
|
-
return O.columns.filter((
|
|
6442
|
-
const
|
|
6443
|
-
...T.cells[
|
|
6444
|
-
id:
|
|
6445
|
-
label:
|
|
6447
|
+
const T = (P = O.rows) == null ? void 0 : P[0];
|
|
6448
|
+
return O.columns.filter((F) => F.visible ?? !0).reduce((F, I) => {
|
|
6449
|
+
const V = {
|
|
6450
|
+
...T.cells[I.name],
|
|
6451
|
+
id: I.name,
|
|
6452
|
+
label: I.title,
|
|
6446
6453
|
dSep: a,
|
|
6447
6454
|
data: {
|
|
6448
|
-
...T.cells[
|
|
6455
|
+
...T.cells[I.name].data,
|
|
6449
6456
|
dSep: a
|
|
6450
6457
|
}
|
|
6451
6458
|
};
|
|
6452
|
-
return
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
...V,
|
|
6456
|
-
[P.name]: F
|
|
6459
|
+
return V.isEditable == null && (V.isEditable = !0), t && (V.isEditable = !1), V.isEditable && V.shape == null && (V.shape = te.TEXT_FIELD), {
|
|
6460
|
+
...F,
|
|
6461
|
+
[I.name]: V
|
|
6457
6462
|
};
|
|
6458
6463
|
}, {});
|
|
6459
|
-
}, b = () => ({
|
|
6464
|
+
}, b = (O) => ({
|
|
6460
6465
|
before: r,
|
|
6461
6466
|
after: {
|
|
6462
6467
|
type: "SmeupDataTable",
|
|
6463
6468
|
columns: JSON.parse(JSON.stringify(r.columns)),
|
|
6464
6469
|
rows: [
|
|
6465
6470
|
{
|
|
6466
|
-
cells: JSON.parse(JSON.stringify(
|
|
6471
|
+
cells: JSON.parse(JSON.stringify(O))
|
|
6467
6472
|
}
|
|
6468
6473
|
]
|
|
6469
6474
|
}
|
|
@@ -6485,7 +6490,7 @@ const Ks = ({
|
|
|
6485
6490
|
/* @__PURE__ */ g.jsx(
|
|
6486
6491
|
_e,
|
|
6487
6492
|
{
|
|
6488
|
-
decode:
|
|
6493
|
+
decode: p(Oe.CONFIRM_BUTTON),
|
|
6489
6494
|
shape: te.BUTTON,
|
|
6490
6495
|
id: "",
|
|
6491
6496
|
obj: {
|
|
@@ -6495,12 +6500,12 @@ const Ks = ({
|
|
|
6495
6500
|
},
|
|
6496
6501
|
data: {
|
|
6497
6502
|
submit: !0,
|
|
6498
|
-
label:
|
|
6503
|
+
label: p(Oe.CONFIRM_BUTTON)
|
|
6499
6504
|
}
|
|
6500
6505
|
},
|
|
6501
6506
|
"submit-command"
|
|
6502
6507
|
)
|
|
6503
|
-
),
|
|
6508
|
+
), d && /* @__PURE__ */ g.jsxs(
|
|
6504
6509
|
"form",
|
|
6505
6510
|
{
|
|
6506
6511
|
"data-component": "input-panel",
|
|
@@ -6515,10 +6520,13 @@ const Ks = ({
|
|
|
6515
6520
|
style: {
|
|
6516
6521
|
padding: "1em 0"
|
|
6517
6522
|
},
|
|
6518
|
-
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(
|
|
6523
|
+
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((O) => /* @__PURE__ */ g.jsx(
|
|
6519
6524
|
_e,
|
|
6520
6525
|
{
|
|
6521
6526
|
...O,
|
|
6527
|
+
onOptionsRequest: O.fun ? async (T, $) => Zs(
|
|
6528
|
+
await i(T, $, r, O.id)
|
|
6529
|
+
) : void 0,
|
|
6522
6530
|
onChange: (T) => x(O.id, T),
|
|
6523
6531
|
onBlur: () => S(O.id),
|
|
6524
6532
|
onContextMenu: f,
|