@sme.up/ketchup2 2.0.0-SNAPSHOT-20250522155814 → 2.0.0-SNAPSHOT-20250523151811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Pr = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var xe = (n, e, t) =>
|
|
2
|
+
var Ar = (n, e, t) => e in n ? Pr(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var xe = (n, e, t) => Ar(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as Fe from "react";
|
|
5
|
-
import pr, { useEffect as de, useRef as _e, useState as Q, useCallback as Se, useLayoutEffect as $r, useId as
|
|
5
|
+
import pr, { useEffect as de, useRef as _e, useState as Q, useCallback as Se, useLayoutEffect as $r, useId as Cr } from "react";
|
|
6
6
|
var Ve = { exports: {} }, De = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
@@ -62,7 +62,7 @@ function kr() {
|
|
|
62
62
|
return "StrictMode";
|
|
63
63
|
case v:
|
|
64
64
|
return "Suspense";
|
|
65
|
-
case
|
|
65
|
+
case A:
|
|
66
66
|
return "SuspenseList";
|
|
67
67
|
case F:
|
|
68
68
|
return "Activity";
|
|
@@ -154,13 +154,13 @@ function kr() {
|
|
|
154
154
|
"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."
|
|
155
155
|
)), d = this.props.ref, d !== void 0 ? d : null;
|
|
156
156
|
}
|
|
157
|
-
function u(d, g, x, O,
|
|
157
|
+
function u(d, g, x, O, E, R, k, I) {
|
|
158
158
|
return x = R.ref, d = {
|
|
159
159
|
$$typeof: p,
|
|
160
160
|
type: d,
|
|
161
161
|
key: g,
|
|
162
162
|
props: R,
|
|
163
|
-
_owner:
|
|
163
|
+
_owner: E
|
|
164
164
|
}, (x !== void 0 ? x : null) !== null ? Object.defineProperty(d, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: l
|
|
@@ -186,25 +186,25 @@ function kr() {
|
|
|
186
186
|
value: I
|
|
187
187
|
}), Object.freeze && (Object.freeze(d.props), Object.freeze(d)), d;
|
|
188
188
|
}
|
|
189
|
-
function f(d, g, x, O,
|
|
190
|
-
var
|
|
191
|
-
if (
|
|
189
|
+
function f(d, g, x, O, E, R, k, I) {
|
|
190
|
+
var C = g.children;
|
|
191
|
+
if (C !== void 0)
|
|
192
192
|
if (O)
|
|
193
|
-
if (J(
|
|
194
|
-
for (O = 0; O <
|
|
195
|
-
c(
|
|
196
|
-
Object.freeze && Object.freeze(
|
|
193
|
+
if (J(C)) {
|
|
194
|
+
for (O = 0; O < C.length; O++)
|
|
195
|
+
c(C[O]);
|
|
196
|
+
Object.freeze && Object.freeze(C);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else c(
|
|
201
|
+
else c(C);
|
|
202
202
|
if (U.call(g, "key")) {
|
|
203
|
-
|
|
203
|
+
C = n(d);
|
|
204
204
|
var q = Object.keys(g).filter(function(re) {
|
|
205
205
|
return re !== "key";
|
|
206
206
|
});
|
|
207
|
-
O = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", L[
|
|
207
|
+
O = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", L[C + O] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -212,24 +212,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
212
212
|
let props = %s;
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
O,
|
|
215
|
-
|
|
215
|
+
C,
|
|
216
216
|
q,
|
|
217
|
-
|
|
218
|
-
), L[
|
|
217
|
+
C
|
|
218
|
+
), L[C + O] = !0);
|
|
219
219
|
}
|
|
220
|
-
if (
|
|
220
|
+
if (C = null, x !== void 0 && (t(x), C = "" + x), i(g) && (t(g.key), C = "" + g.key), "key" in g) {
|
|
221
221
|
x = {};
|
|
222
222
|
for (var W in g)
|
|
223
223
|
W !== "key" && (x[W] = g[W]);
|
|
224
224
|
} else x = g;
|
|
225
|
-
return
|
|
225
|
+
return C && o(
|
|
226
226
|
x,
|
|
227
227
|
typeof d == "function" ? d.displayName || d.name || "Unknown" : d
|
|
228
228
|
), u(
|
|
229
229
|
d,
|
|
230
|
-
|
|
230
|
+
C,
|
|
231
231
|
R,
|
|
232
|
-
|
|
232
|
+
E,
|
|
233
233
|
s(),
|
|
234
234
|
x,
|
|
235
235
|
k,
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function c(d) {
|
|
240
240
|
typeof d == "object" && d !== null && d.$$typeof === p && d._store && (d._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var h = pr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), T = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"),
|
|
242
|
+
var h = pr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), b = Symbol.for("react.consumer"), T = Symbol.for("react.context"), D = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), j = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), F = Symbol.for("react.activity"), $ = Symbol.for("react.client.reference"), M = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, U = Object.prototype.hasOwnProperty, J = Array.isArray, K = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
h = {
|
|
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
h,
|
|
252
252
|
a
|
|
253
253
|
)(), B = K(r(a)), L = {};
|
|
254
|
-
Pe.Fragment = y, Pe.jsx = function(d, g, x, O,
|
|
254
|
+
Pe.Fragment = y, Pe.jsx = function(d, g, x, O, E) {
|
|
255
255
|
var R = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return f(
|
|
257
257
|
d,
|
|
@@ -259,11 +259,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
259
259
|
x,
|
|
260
260
|
!1,
|
|
261
261
|
O,
|
|
262
|
-
|
|
262
|
+
E,
|
|
263
263
|
R ? Error("react-stack-top-frame") : V,
|
|
264
264
|
R ? K(r(d)) : B
|
|
265
265
|
);
|
|
266
|
-
}, Pe.jsxs = function(d, g, x, O,
|
|
266
|
+
}, Pe.jsxs = function(d, g, x, O, E) {
|
|
267
267
|
var R = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return f(
|
|
269
269
|
d,
|
|
@@ -271,7 +271,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
271
271
|
x,
|
|
272
272
|
!0,
|
|
273
273
|
O,
|
|
274
|
-
|
|
274
|
+
E,
|
|
275
275
|
R ? Error("react-stack-top-frame") : V,
|
|
276
276
|
R ? K(r(d)) : B
|
|
277
277
|
);
|
|
@@ -282,8 +282,8 @@ var Dt;
|
|
|
282
282
|
function jr() {
|
|
283
283
|
return Dt || (Dt = 1, process.env.NODE_ENV === "production" ? Ve.exports = Lr() : Ve.exports = kr()), Ve.exports;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
286
|
-
const
|
|
285
|
+
var _ = jr();
|
|
286
|
+
const ce = {
|
|
287
287
|
AUTOCOMPLETE: "ACP",
|
|
288
288
|
BUTTON: "BTN",
|
|
289
289
|
CHECKBOX: "CHK",
|
|
@@ -291,6 +291,7 @@ const ue = {
|
|
|
291
291
|
COMBOBOX: "CMB",
|
|
292
292
|
DATE: "CAL",
|
|
293
293
|
ICON: "ICO",
|
|
294
|
+
IMAGE: "IMG",
|
|
294
295
|
MULTI_AUTOCOMPLETE: "AML",
|
|
295
296
|
SPOTLIGHT: "SPL",
|
|
296
297
|
TEXT_FIELD: "ITX",
|
|
@@ -513,7 +514,7 @@ const Xe = (n, e, t) => {
|
|
|
513
514
|
return `${n} - ${e}`;
|
|
514
515
|
}
|
|
515
516
|
return n;
|
|
516
|
-
},
|
|
517
|
+
}, Ae = {
|
|
517
518
|
"smp-list": "_smp-list_1ux5k_1",
|
|
518
519
|
"smp-list-container": "_smp-list-container_1ux5k_18",
|
|
519
520
|
"smp-list-listItem": "_smp-list-listItem_1ux5k_23"
|
|
@@ -530,15 +531,15 @@ const Xe = (n, e, t) => {
|
|
|
530
531
|
const r = {
|
|
531
532
|
container: `${it["smp-helper-text"]} ${e ? it["smp-helper-text-disabled"] : ""} ${t ? it[`smp-helper-text-${t}`] : ""}`
|
|
532
533
|
};
|
|
533
|
-
return /* @__PURE__ */
|
|
534
|
-
},
|
|
534
|
+
return /* @__PURE__ */ _.jsx("span", { className: r.container, children: n });
|
|
535
|
+
}, At = {
|
|
535
536
|
"smp-label": "_smp-label_3ywt3_1",
|
|
536
537
|
"smp-label-disabled": "_smp-label-disabled_3ywt3_5"
|
|
537
538
|
}, hr = ({ label: n, disabled: e }) => {
|
|
538
539
|
const t = {
|
|
539
|
-
container: `${
|
|
540
|
+
container: `${At["smp-label"]} ${e ? At["smp-label-disabled"] : ""}`
|
|
540
541
|
};
|
|
541
|
-
return /* @__PURE__ */
|
|
542
|
+
return /* @__PURE__ */ _.jsx("span", { className: t.container, children: n });
|
|
542
543
|
};
|
|
543
544
|
function Wr(n, e) {
|
|
544
545
|
if (n == null) return {};
|
|
@@ -641,7 +642,7 @@ function qr() {
|
|
|
641
642
|
}
|
|
642
643
|
var Kr = qr(), Oe = /* @__PURE__ */ new Map(), mr = function(e) {
|
|
643
644
|
return e.cloneNode(!0);
|
|
644
|
-
},
|
|
645
|
+
}, Ct = function() {
|
|
645
646
|
return window.location.protocol === "file:";
|
|
646
647
|
}, gr = function(e, t, r) {
|
|
647
648
|
var s = new XMLHttpRequest();
|
|
@@ -657,8 +658,8 @@ var Kr = qr(), Oe = /* @__PURE__ */ new Map(), mr = function(e) {
|
|
|
657
658
|
}
|
|
658
659
|
if (s.readyState === 4) {
|
|
659
660
|
if (s.status === 404 || s.responseXML === null)
|
|
660
|
-
throw new Error(
|
|
661
|
-
if (s.status === 200 ||
|
|
661
|
+
throw new Error(Ct() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + e);
|
|
662
|
+
if (s.status === 200 || Ct() && s.status === 0)
|
|
662
663
|
r(null, s);
|
|
663
664
|
else
|
|
664
665
|
throw new Error("There was a problem injecting the SVG: " + s.status + " " + s.statusText);
|
|
@@ -670,17 +671,17 @@ var Kr = qr(), Oe = /* @__PURE__ */ new Map(), mr = function(e) {
|
|
|
670
671
|
throw o;
|
|
671
672
|
}
|
|
672
673
|
}, s.open("GET", e), s.withCredentials = t, s.overrideMimeType && s.overrideMimeType("text/xml"), s.send();
|
|
673
|
-
},
|
|
674
|
-
|
|
674
|
+
}, be = {}, Lt = function(e, t) {
|
|
675
|
+
be[e] = be[e] || [], be[e].push(t);
|
|
675
676
|
}, Br = function(e) {
|
|
676
677
|
for (var t = function(i, o) {
|
|
677
678
|
setTimeout(function() {
|
|
678
|
-
if (Array.isArray(
|
|
679
|
-
var l = Oe.get(e), u =
|
|
680
|
-
l instanceof SVGSVGElement && u(null, mr(l)), l instanceof Error && u(l), i ===
|
|
679
|
+
if (Array.isArray(be[e])) {
|
|
680
|
+
var l = Oe.get(e), u = be[e][i];
|
|
681
|
+
l instanceof SVGSVGElement && u(null, mr(l)), l instanceof Error && u(l), i === be[e].length - 1 && delete be[e];
|
|
681
682
|
}
|
|
682
683
|
}, 0);
|
|
683
|
-
}, r = 0, s =
|
|
684
|
+
}, r = 0, s = be[e].length; r < s; r++)
|
|
684
685
|
t(r);
|
|
685
686
|
}, zr = function(e, t, r) {
|
|
686
687
|
if (Oe.has(e)) {
|
|
@@ -751,22 +752,22 @@ var Kr = qr(), Oe = /* @__PURE__ */ new Map(), mr = function(e) {
|
|
|
751
752
|
path: [],
|
|
752
753
|
pattern: ["fill", "stroke"],
|
|
753
754
|
radialGradient: ["fill", "stroke"]
|
|
754
|
-
}, D, v,
|
|
755
|
+
}, D, v, A, j, Y;
|
|
755
756
|
Object.keys(T).forEach(function(B) {
|
|
756
|
-
D = B,
|
|
757
|
-
for (var L = function(O,
|
|
757
|
+
D = B, A = T[B], v = c.querySelectorAll(D + "[id]");
|
|
758
|
+
for (var L = function(O, E) {
|
|
758
759
|
j = v[O].id, Y = j + "-" + Xr();
|
|
759
760
|
var R;
|
|
760
|
-
Array.prototype.forEach.call(
|
|
761
|
+
Array.prototype.forEach.call(A, function(N) {
|
|
761
762
|
R = c.querySelectorAll("[" + N + '*="' + j + '"]');
|
|
762
763
|
for (var z = 0, ee = R.length; z < ee; z++) {
|
|
763
764
|
var te = R[z].getAttribute(N);
|
|
764
765
|
te && !te.match(new RegExp('url\\("?#' + j + '"?\\)')) || R[z].setAttribute(N, "url(#" + Y + ")");
|
|
765
766
|
}
|
|
766
767
|
});
|
|
767
|
-
for (var k = c.querySelectorAll("[*|href]"), I = [],
|
|
768
|
-
var W = k[
|
|
769
|
-
W && W.toString() === "#" + v[O].id && I.push(k[
|
|
768
|
+
for (var k = c.querySelectorAll("[*|href]"), I = [], C = 0, q = k.length; C < q; C++) {
|
|
769
|
+
var W = k[C].getAttributeNS(lt, "href");
|
|
770
|
+
W && W.toString() === "#" + v[O].id && I.push(k[C]);
|
|
770
771
|
}
|
|
771
772
|
for (var re = 0, P = I.length; re < P; re++)
|
|
772
773
|
I[re].setAttributeNS(lt, "href", "#" + Y);
|
|
@@ -799,11 +800,11 @@ var Kr = qr(), Oe = /* @__PURE__ */ new Map(), mr = function(e) {
|
|
|
799
800
|
} : l, f = r.cacheRequests, c = f === void 0 ? !0 : f, h = r.evalScripts, p = h === void 0 ? "never" : h, m = r.httpRequestWithCredentials, y = m === void 0 ? !1 : m, S = r.renumerateIRIElements, w = S === void 0 ? !0 : S;
|
|
800
801
|
if (e && "length" in e)
|
|
801
802
|
for (var b = 0, T = 0, D = e.length; T < D; T++)
|
|
802
|
-
jt(e[T], p, w, c, y, u, function(v,
|
|
803
|
-
o(v,
|
|
803
|
+
jt(e[T], p, w, c, y, u, function(v, A) {
|
|
804
|
+
o(v, A), e && "length" in e && e.length === ++b && a(b);
|
|
804
805
|
});
|
|
805
|
-
else e ? jt(e, p, w, c, y, u, function(v,
|
|
806
|
-
o(v,
|
|
806
|
+
else e ? jt(e, p, w, c, y, u, function(v, A) {
|
|
807
|
+
o(v, A), a(1), e = null;
|
|
807
808
|
}) : a(0);
|
|
808
809
|
}, We = { exports: {} }, He = { exports: {} }, X = {};
|
|
809
810
|
/** @license React v16.13.1
|
|
@@ -821,8 +822,8 @@ function en() {
|
|
|
821
822
|
var n = typeof Symbol == "function" && Symbol.for, e = n ? Symbol.for("react.element") : 60103, t = n ? Symbol.for("react.portal") : 60106, r = n ? Symbol.for("react.fragment") : 60107, s = n ? Symbol.for("react.strict_mode") : 60108, a = n ? Symbol.for("react.profiler") : 60114, i = n ? Symbol.for("react.provider") : 60109, o = n ? Symbol.for("react.context") : 60110, l = n ? Symbol.for("react.async_mode") : 60111, u = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, c = n ? Symbol.for("react.suspense") : 60113, h = n ? Symbol.for("react.suspense_list") : 60120, p = n ? Symbol.for("react.memo") : 60115, m = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, S = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, b = n ? Symbol.for("react.scope") : 60119;
|
|
822
823
|
function T(v) {
|
|
823
824
|
if (typeof v == "object" && v !== null) {
|
|
824
|
-
var
|
|
825
|
-
switch (
|
|
825
|
+
var A = v.$$typeof;
|
|
826
|
+
switch (A) {
|
|
826
827
|
case e:
|
|
827
828
|
switch (v = v.type, v) {
|
|
828
829
|
case l:
|
|
@@ -841,11 +842,11 @@ function en() {
|
|
|
841
842
|
case i:
|
|
842
843
|
return v;
|
|
843
844
|
default:
|
|
844
|
-
return
|
|
845
|
+
return A;
|
|
845
846
|
}
|
|
846
847
|
}
|
|
847
848
|
case t:
|
|
848
|
-
return
|
|
849
|
+
return A;
|
|
849
850
|
}
|
|
850
851
|
}
|
|
851
852
|
}
|
|
@@ -929,7 +930,7 @@ function tn() {
|
|
|
929
930
|
}
|
|
930
931
|
}
|
|
931
932
|
}
|
|
932
|
-
var v = l,
|
|
933
|
+
var v = l, A = u, j = o, Y = i, F = e, $ = f, M = r, U = m, J = p, K = t, ne = a, G = s, V = c, B = !1;
|
|
933
934
|
function L(P) {
|
|
934
935
|
return B || (B = !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.")), d(P) || D(P) === l;
|
|
935
936
|
}
|
|
@@ -945,7 +946,7 @@ function tn() {
|
|
|
945
946
|
function O(P) {
|
|
946
947
|
return typeof P == "object" && P !== null && P.$$typeof === e;
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
+
function E(P) {
|
|
949
950
|
return D(P) === f;
|
|
950
951
|
}
|
|
951
952
|
function R(P) {
|
|
@@ -957,7 +958,7 @@ function tn() {
|
|
|
957
958
|
function I(P) {
|
|
958
959
|
return D(P) === p;
|
|
959
960
|
}
|
|
960
|
-
function
|
|
961
|
+
function C(P) {
|
|
961
962
|
return D(P) === t;
|
|
962
963
|
}
|
|
963
964
|
function q(P) {
|
|
@@ -969,7 +970,7 @@ function tn() {
|
|
|
969
970
|
function re(P) {
|
|
970
971
|
return D(P) === c;
|
|
971
972
|
}
|
|
972
|
-
Z.AsyncMode = v, Z.ConcurrentMode =
|
|
973
|
+
Z.AsyncMode = v, Z.ConcurrentMode = A, Z.ContextConsumer = j, Z.ContextProvider = Y, Z.Element = F, Z.ForwardRef = $, Z.Fragment = M, Z.Lazy = U, Z.Memo = J, Z.Portal = K, Z.Profiler = ne, Z.StrictMode = G, Z.Suspense = V, Z.isAsyncMode = L, Z.isConcurrentMode = d, Z.isContextConsumer = g, Z.isContextProvider = x, Z.isElement = O, Z.isForwardRef = E, Z.isFragment = R, Z.isLazy = k, Z.isMemo = I, Z.isPortal = C, Z.isProfiler = q, Z.isStrictMode = W, Z.isSuspense = re, Z.isValidElementType = T, Z.typeOf = D;
|
|
973
974
|
}()), Z;
|
|
974
975
|
}
|
|
975
976
|
var Mt;
|
|
@@ -1124,7 +1125,7 @@ function sn() {
|
|
|
1124
1125
|
arrayOf: T,
|
|
1125
1126
|
element: D(),
|
|
1126
1127
|
elementType: v(),
|
|
1127
|
-
instanceOf:
|
|
1128
|
+
instanceOf: A,
|
|
1128
1129
|
node: $(),
|
|
1129
1130
|
objectOf: Y,
|
|
1130
1131
|
oneOf: j,
|
|
@@ -1142,33 +1143,33 @@ function sn() {
|
|
|
1142
1143
|
function S(d) {
|
|
1143
1144
|
if (process.env.NODE_ENV !== "production")
|
|
1144
1145
|
var g = {}, x = 0;
|
|
1145
|
-
function O(R, k, I,
|
|
1146
|
-
if (
|
|
1146
|
+
function O(R, k, I, C, q, W, re) {
|
|
1147
|
+
if (C = C || h, W = W || I, re !== t) {
|
|
1147
1148
|
if (l) {
|
|
1148
1149
|
var P = new Error(
|
|
1149
1150
|
"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"
|
|
1150
1151
|
);
|
|
1151
1152
|
throw P.name = "Invariant Violation", P;
|
|
1152
1153
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1153
|
-
var N =
|
|
1154
|
+
var N = C + ":" + I;
|
|
1154
1155
|
!g[N] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1155
1156
|
x < 3 && (a(
|
|
1156
|
-
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" +
|
|
1157
|
+
"You are manually calling a React.PropTypes validation function for the `" + W + "` prop on `" + C + "`. 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."
|
|
1157
1158
|
), g[N] = !0, x++);
|
|
1158
1159
|
}
|
|
1159
1160
|
}
|
|
1160
|
-
return k[I] == null ? R ? k[I] === null ? new y("The " + q + " `" + W + "` is marked as required " + ("in `" +
|
|
1161
|
+
return k[I] == null ? R ? k[I] === null ? new y("The " + q + " `" + W + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new y("The " + q + " `" + W + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : d(k, I, C, q, W);
|
|
1161
1162
|
}
|
|
1162
|
-
var
|
|
1163
|
-
return
|
|
1163
|
+
var E = O.bind(null, !1);
|
|
1164
|
+
return E.isRequired = O.bind(null, !0), E;
|
|
1164
1165
|
}
|
|
1165
1166
|
function w(d) {
|
|
1166
|
-
function g(x, O,
|
|
1167
|
-
var
|
|
1167
|
+
function g(x, O, E, R, k, I) {
|
|
1168
|
+
var C = x[O], q = G(C);
|
|
1168
1169
|
if (q !== d) {
|
|
1169
|
-
var W = V(
|
|
1170
|
+
var W = V(C);
|
|
1170
1171
|
return new y(
|
|
1171
|
-
"Invalid " + R + " `" + k + "` of type " + ("`" + W + "` supplied to `" +
|
|
1172
|
+
"Invalid " + R + " `" + k + "` of type " + ("`" + W + "` supplied to `" + E + "`, expected ") + ("`" + d + "`."),
|
|
1172
1173
|
{ expectedType: d }
|
|
1173
1174
|
);
|
|
1174
1175
|
}
|
|
@@ -1180,16 +1181,16 @@ function sn() {
|
|
|
1180
1181
|
return S(i);
|
|
1181
1182
|
}
|
|
1182
1183
|
function T(d) {
|
|
1183
|
-
function g(x, O,
|
|
1184
|
+
function g(x, O, E, R, k) {
|
|
1184
1185
|
if (typeof d != "function")
|
|
1185
|
-
return new y("Property `" + k + "` of component `" +
|
|
1186
|
+
return new y("Property `" + k + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
1186
1187
|
var I = x[O];
|
|
1187
1188
|
if (!Array.isArray(I)) {
|
|
1188
|
-
var
|
|
1189
|
-
return new y("Invalid " + R + " `" + k + "` of type " + ("`" +
|
|
1189
|
+
var C = G(I);
|
|
1190
|
+
return new y("Invalid " + R + " `" + k + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected an array."));
|
|
1190
1191
|
}
|
|
1191
1192
|
for (var q = 0; q < I.length; q++) {
|
|
1192
|
-
var W = d(I, q,
|
|
1193
|
+
var W = d(I, q, E, R, k + "[" + q + "]", t);
|
|
1193
1194
|
if (W instanceof Error)
|
|
1194
1195
|
return W;
|
|
1195
1196
|
}
|
|
@@ -1198,32 +1199,32 @@ function sn() {
|
|
|
1198
1199
|
return S(g);
|
|
1199
1200
|
}
|
|
1200
1201
|
function D() {
|
|
1201
|
-
function d(g, x, O,
|
|
1202
|
+
function d(g, x, O, E, R) {
|
|
1202
1203
|
var k = g[x];
|
|
1203
1204
|
if (!o(k)) {
|
|
1204
1205
|
var I = G(k);
|
|
1205
|
-
return new y("Invalid " +
|
|
1206
|
+
return new y("Invalid " + E + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
1206
1207
|
}
|
|
1207
1208
|
return null;
|
|
1208
1209
|
}
|
|
1209
1210
|
return S(d);
|
|
1210
1211
|
}
|
|
1211
1212
|
function v() {
|
|
1212
|
-
function d(g, x, O,
|
|
1213
|
+
function d(g, x, O, E, R) {
|
|
1213
1214
|
var k = g[x];
|
|
1214
1215
|
if (!n.isValidElementType(k)) {
|
|
1215
1216
|
var I = G(k);
|
|
1216
|
-
return new y("Invalid " +
|
|
1217
|
+
return new y("Invalid " + E + " `" + R + "` of type " + ("`" + I + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
1217
1218
|
}
|
|
1218
1219
|
return null;
|
|
1219
1220
|
}
|
|
1220
1221
|
return S(d);
|
|
1221
1222
|
}
|
|
1222
|
-
function
|
|
1223
|
-
function g(x, O,
|
|
1223
|
+
function A(d) {
|
|
1224
|
+
function g(x, O, E, R, k) {
|
|
1224
1225
|
if (!(x[O] instanceof d)) {
|
|
1225
|
-
var I = d.name || h,
|
|
1226
|
-
return new y("Invalid " + R + " `" + k + "` of type " + ("`" +
|
|
1226
|
+
var I = d.name || h, C = L(x[O]);
|
|
1227
|
+
return new y("Invalid " + R + " `" + k + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected ") + ("instance of `" + I + "`."));
|
|
1227
1228
|
}
|
|
1228
1229
|
return null;
|
|
1229
1230
|
}
|
|
@@ -1234,28 +1235,28 @@ function sn() {
|
|
|
1234
1235
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1235
1236
|
"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])."
|
|
1236
1237
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1237
|
-
function g(x, O,
|
|
1238
|
-
for (var I = x[O],
|
|
1239
|
-
if (m(I, d[
|
|
1238
|
+
function g(x, O, E, R, k) {
|
|
1239
|
+
for (var I = x[O], C = 0; C < d.length; C++)
|
|
1240
|
+
if (m(I, d[C]))
|
|
1240
1241
|
return null;
|
|
1241
1242
|
var q = JSON.stringify(d, function(re, P) {
|
|
1242
1243
|
var N = V(P);
|
|
1243
1244
|
return N === "symbol" ? String(P) : P;
|
|
1244
1245
|
});
|
|
1245
|
-
return new y("Invalid " + R + " `" + k + "` of value `" + String(I) + "` " + ("supplied to `" +
|
|
1246
|
+
return new y("Invalid " + R + " `" + k + "` of value `" + String(I) + "` " + ("supplied to `" + E + "`, expected one of " + q + "."));
|
|
1246
1247
|
}
|
|
1247
1248
|
return S(g);
|
|
1248
1249
|
}
|
|
1249
1250
|
function Y(d) {
|
|
1250
|
-
function g(x, O,
|
|
1251
|
+
function g(x, O, E, R, k) {
|
|
1251
1252
|
if (typeof d != "function")
|
|
1252
|
-
return new y("Property `" + k + "` of component `" +
|
|
1253
|
-
var I = x[O],
|
|
1254
|
-
if (
|
|
1255
|
-
return new y("Invalid " + R + " `" + k + "` of type " + ("`" +
|
|
1253
|
+
return new y("Property `" + k + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
1254
|
+
var I = x[O], C = G(I);
|
|
1255
|
+
if (C !== "object")
|
|
1256
|
+
return new y("Invalid " + R + " `" + k + "` of type " + ("`" + C + "` supplied to `" + E + "`, expected an object."));
|
|
1256
1257
|
for (var q in I)
|
|
1257
1258
|
if (r(I, q)) {
|
|
1258
|
-
var W = d(I, q,
|
|
1259
|
+
var W = d(I, q, E, R, k + "." + q, t);
|
|
1259
1260
|
if (W instanceof Error)
|
|
1260
1261
|
return W;
|
|
1261
1262
|
}
|
|
@@ -1273,39 +1274,39 @@ function sn() {
|
|
|
1273
1274
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + B(x) + " at index " + g + "."
|
|
1274
1275
|
), i;
|
|
1275
1276
|
}
|
|
1276
|
-
function O(
|
|
1277
|
+
function O(E, R, k, I, C) {
|
|
1277
1278
|
for (var q = [], W = 0; W < d.length; W++) {
|
|
1278
|
-
var re = d[W], P = re(
|
|
1279
|
+
var re = d[W], P = re(E, R, k, I, C, t);
|
|
1279
1280
|
if (P == null)
|
|
1280
1281
|
return null;
|
|
1281
1282
|
P.data && r(P.data, "expectedType") && q.push(P.data.expectedType);
|
|
1282
1283
|
}
|
|
1283
1284
|
var N = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
1284
|
-
return new y("Invalid " + I + " `" +
|
|
1285
|
+
return new y("Invalid " + I + " `" + C + "` supplied to " + ("`" + k + "`" + N + "."));
|
|
1285
1286
|
}
|
|
1286
1287
|
return S(O);
|
|
1287
1288
|
}
|
|
1288
1289
|
function $() {
|
|
1289
|
-
function d(g, x, O,
|
|
1290
|
-
return K(g[x]) ? null : new y("Invalid " +
|
|
1290
|
+
function d(g, x, O, E, R) {
|
|
1291
|
+
return K(g[x]) ? null : new y("Invalid " + E + " `" + R + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
1291
1292
|
}
|
|
1292
1293
|
return S(d);
|
|
1293
1294
|
}
|
|
1294
|
-
function M(d, g, x, O,
|
|
1295
|
+
function M(d, g, x, O, E) {
|
|
1295
1296
|
return new y(
|
|
1296
|
-
(d || "React class") + ": " + g + " type `" + x + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1297
|
+
(d || "React class") + ": " + g + " type `" + x + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
1297
1298
|
);
|
|
1298
1299
|
}
|
|
1299
1300
|
function U(d) {
|
|
1300
|
-
function g(x, O,
|
|
1301
|
-
var I = x[O],
|
|
1302
|
-
if (
|
|
1303
|
-
return new y("Invalid " + R + " `" + k + "` of type `" +
|
|
1301
|
+
function g(x, O, E, R, k) {
|
|
1302
|
+
var I = x[O], C = G(I);
|
|
1303
|
+
if (C !== "object")
|
|
1304
|
+
return new y("Invalid " + R + " `" + k + "` of type `" + C + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1304
1305
|
for (var q in d) {
|
|
1305
1306
|
var W = d[q];
|
|
1306
1307
|
if (typeof W != "function")
|
|
1307
|
-
return M(
|
|
1308
|
-
var re = W(I, q,
|
|
1308
|
+
return M(E, R, k, q, V(W));
|
|
1309
|
+
var re = W(I, q, E, R, k + "." + q, t);
|
|
1309
1310
|
if (re)
|
|
1310
1311
|
return re;
|
|
1311
1312
|
}
|
|
@@ -1314,21 +1315,21 @@ function sn() {
|
|
|
1314
1315
|
return S(g);
|
|
1315
1316
|
}
|
|
1316
1317
|
function J(d) {
|
|
1317
|
-
function g(x, O,
|
|
1318
|
-
var I = x[O],
|
|
1319
|
-
if (
|
|
1320
|
-
return new y("Invalid " + R + " `" + k + "` of type `" +
|
|
1318
|
+
function g(x, O, E, R, k) {
|
|
1319
|
+
var I = x[O], C = G(I);
|
|
1320
|
+
if (C !== "object")
|
|
1321
|
+
return new y("Invalid " + R + " `" + k + "` of type `" + C + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
1321
1322
|
var q = e({}, x[O], d);
|
|
1322
1323
|
for (var W in q) {
|
|
1323
1324
|
var re = d[W];
|
|
1324
1325
|
if (r(d, W) && typeof re != "function")
|
|
1325
|
-
return M(
|
|
1326
|
+
return M(E, R, k, W, V(re));
|
|
1326
1327
|
if (!re)
|
|
1327
1328
|
return new y(
|
|
1328
|
-
"Invalid " + R + " `" + k + "` key `" + W + "` supplied to `" +
|
|
1329
|
+
"Invalid " + R + " `" + k + "` key `" + W + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(x[O], null, " ") + `
|
|
1329
1330
|
Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
1330
1331
|
);
|
|
1331
|
-
var P = re(I, W,
|
|
1332
|
+
var P = re(I, W, E, R, k + "." + W, t);
|
|
1332
1333
|
if (P)
|
|
1333
1334
|
return P;
|
|
1334
1335
|
}
|
|
@@ -1358,8 +1359,8 @@ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
|
|
|
1358
1359
|
return !1;
|
|
1359
1360
|
} else
|
|
1360
1361
|
for (; !(O = x.next()).done; ) {
|
|
1361
|
-
var
|
|
1362
|
-
if (
|
|
1362
|
+
var E = O.value;
|
|
1363
|
+
if (E && !K(E[1]))
|
|
1363
1364
|
return !1;
|
|
1364
1365
|
}
|
|
1365
1366
|
} else
|
|
@@ -1631,7 +1632,7 @@ let bt = {
|
|
|
1631
1632
|
};
|
|
1632
1633
|
const cs = (n) => {
|
|
1633
1634
|
bt = { ...bt, ...n };
|
|
1634
|
-
}, Bt = (n) => `${bt.assets}/${n}`.replace(/\/+/g, "/"),
|
|
1635
|
+
}, Bt = (n) => `${bt.assets}/${n}`.replace(/\/+/g, "/"), ye = pr.memo(
|
|
1635
1636
|
({
|
|
1636
1637
|
icon: n,
|
|
1637
1638
|
width: e,
|
|
@@ -1652,20 +1653,27 @@ const cs = (n) => {
|
|
|
1652
1653
|
}, w = () => {
|
|
1653
1654
|
!a && l && l();
|
|
1654
1655
|
};
|
|
1655
|
-
return /* @__PURE__ */
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1656
|
+
return /* @__PURE__ */ _.jsx(_.Fragment, { children: p ? (
|
|
1657
|
+
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1658
|
+
/* @__PURE__ */ _.jsx(
|
|
1659
|
+
"img",
|
|
1660
|
+
{
|
|
1661
|
+
src: c,
|
|
1662
|
+
width: e || "16px",
|
|
1663
|
+
height: t || "auto",
|
|
1664
|
+
alt: n || "image",
|
|
1665
|
+
onError: () => h(y),
|
|
1666
|
+
onClick: w,
|
|
1667
|
+
onKeyDown: (b) => {
|
|
1668
|
+
(b.key === "Enter" || b.key === " ") && w();
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
)
|
|
1672
|
+
) : /* @__PURE__ */ _.jsx(
|
|
1665
1673
|
Qe,
|
|
1666
1674
|
{
|
|
1667
1675
|
src: m,
|
|
1668
|
-
fallback: () => /* @__PURE__ */
|
|
1676
|
+
fallback: () => /* @__PURE__ */ _.jsx(Qe, { src: y, wrapper: "svg" }),
|
|
1669
1677
|
width: e || "1rem",
|
|
1670
1678
|
height: t || "1rem",
|
|
1671
1679
|
wrapper: "svg",
|
|
@@ -1716,18 +1724,18 @@ const cs = (n) => {
|
|
|
1716
1724
|
error: D,
|
|
1717
1725
|
appearance: v = "base"
|
|
1718
1726
|
}) => {
|
|
1719
|
-
const
|
|
1727
|
+
const A = D ? "danger" : u, j = D || u == "danger" ? "error" : o, Y = T || !!D, F = (M) => {
|
|
1720
1728
|
a == null || a(M.target.value);
|
|
1721
1729
|
}, $ = {
|
|
1722
1730
|
wrapper: `${he["smp-textfield-wrapper"]}`,
|
|
1723
|
-
container: `${he["smp-textfield"]} ${n ? he["smp-textfield-disabled"] : ""} ${e ? he["smp-textfield-readOnly"] : ""} ${i ? he["smp-textfield-placeholder"] : ""} ${l ? he[`smp-textfield-${l}`] : ""} ${
|
|
1731
|
+
container: `${he["smp-textfield"]} ${n ? he["smp-textfield-disabled"] : ""} ${e ? he["smp-textfield-readOnly"] : ""} ${i ? he["smp-textfield-placeholder"] : ""} ${l ? he[`smp-textfield-${l}`] : ""} ${A ? he[`smp-textfield-${A}`] : ""} ${f ? he[`smp-textfield-variant-${f}`] : ""} ${v ? he[`smp-textfield-${v}`] : ""}`,
|
|
1724
1732
|
input: `${he["smp-textfield-input"]}`
|
|
1725
1733
|
};
|
|
1726
|
-
return /* @__PURE__ */
|
|
1727
|
-
b && /* @__PURE__ */
|
|
1728
|
-
/* @__PURE__ */
|
|
1729
|
-
r && /* @__PURE__ */
|
|
1730
|
-
/* @__PURE__ */
|
|
1734
|
+
return /* @__PURE__ */ _.jsxs("div", { className: $.wrapper, children: [
|
|
1735
|
+
b && /* @__PURE__ */ _.jsx(hr, { label: b, disabled: n }),
|
|
1736
|
+
/* @__PURE__ */ _.jsxs("div", { className: $.container, ref: p, children: [
|
|
1737
|
+
r && /* @__PURE__ */ _.jsx(ye, { icon: r, disabled: n }),
|
|
1738
|
+
/* @__PURE__ */ _.jsx(
|
|
1731
1739
|
"input",
|
|
1732
1740
|
{
|
|
1733
1741
|
type: S,
|
|
@@ -1743,23 +1751,23 @@ const cs = (n) => {
|
|
|
1743
1751
|
ref: m
|
|
1744
1752
|
}
|
|
1745
1753
|
),
|
|
1746
|
-
j && /* @__PURE__ */
|
|
1747
|
-
|
|
1754
|
+
j && /* @__PURE__ */ _.jsx(
|
|
1755
|
+
ye,
|
|
1748
1756
|
{
|
|
1749
1757
|
icon: j,
|
|
1750
1758
|
disabled: n,
|
|
1751
|
-
state:
|
|
1759
|
+
state: A,
|
|
1752
1760
|
onClick: h,
|
|
1753
1761
|
rotated: c
|
|
1754
1762
|
}
|
|
1755
1763
|
)
|
|
1756
1764
|
] }),
|
|
1757
|
-
Y && /* @__PURE__ */
|
|
1765
|
+
Y && /* @__PURE__ */ _.jsx(
|
|
1758
1766
|
Ur,
|
|
1759
1767
|
{
|
|
1760
1768
|
helperText: D,
|
|
1761
1769
|
disabled: n,
|
|
1762
|
-
state:
|
|
1770
|
+
state: A
|
|
1763
1771
|
}
|
|
1764
1772
|
)
|
|
1765
1773
|
] });
|
|
@@ -1849,7 +1857,7 @@ const dn = 10, br = ({
|
|
|
1849
1857
|
}, [a]), de(() => {
|
|
1850
1858
|
p >= 0 && p < S.length && v(p);
|
|
1851
1859
|
}, [p, S]);
|
|
1852
|
-
const
|
|
1860
|
+
const A = (M) => {
|
|
1853
1861
|
if (M.key === "ArrowDown" || M.key === "ArrowUp") {
|
|
1854
1862
|
M.preventDefault();
|
|
1855
1863
|
let U = p;
|
|
@@ -1857,16 +1865,16 @@ const dn = 10, br = ({
|
|
|
1857
1865
|
} else M.key === "Enter" ? p >= 0 && p < S.length && (l == null || l(S[p])) : M.key === "Escape" && (M.preventDefault(), M.stopPropagation());
|
|
1858
1866
|
u && u(M);
|
|
1859
1867
|
}, j = (M) => {
|
|
1860
|
-
|
|
1868
|
+
A(M);
|
|
1861
1869
|
}, Y = (M) => {
|
|
1862
|
-
|
|
1870
|
+
A(M);
|
|
1863
1871
|
}, F = {
|
|
1864
|
-
wrapper: `${
|
|
1865
|
-
container: `${
|
|
1866
|
-
virtualScroll: `${
|
|
1867
|
-
listItem: `${
|
|
1872
|
+
wrapper: `${Ae["smp-list"]}`,
|
|
1873
|
+
container: `${Ae["smp-list-container"]}`,
|
|
1874
|
+
virtualScroll: `${Ae["smp-list-virtualScroll"]}`,
|
|
1875
|
+
listItem: `${Ae["smp-list-listItem"]}`
|
|
1868
1876
|
};
|
|
1869
|
-
return /* @__PURE__ */
|
|
1877
|
+
return /* @__PURE__ */ _.jsxs(
|
|
1870
1878
|
"div",
|
|
1871
1879
|
{
|
|
1872
1880
|
id: n,
|
|
@@ -1876,7 +1884,7 @@ const dn = 10, br = ({
|
|
|
1876
1884
|
width: o
|
|
1877
1885
|
},
|
|
1878
1886
|
children: [
|
|
1879
|
-
y && /* @__PURE__ */
|
|
1887
|
+
y && /* @__PURE__ */ _.jsx(
|
|
1880
1888
|
Re,
|
|
1881
1889
|
{
|
|
1882
1890
|
bindValue: f,
|
|
@@ -1885,7 +1893,7 @@ const dn = 10, br = ({
|
|
|
1885
1893
|
onKeyDown: j
|
|
1886
1894
|
}
|
|
1887
1895
|
),
|
|
1888
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ _.jsx(
|
|
1889
1897
|
"div",
|
|
1890
1898
|
{
|
|
1891
1899
|
...T,
|
|
@@ -1895,18 +1903,18 @@ const dn = 10, br = ({
|
|
|
1895
1903
|
"aria-label": "List",
|
|
1896
1904
|
onKeyDown: Y,
|
|
1897
1905
|
"aria-activedescendant": p >= 0 && p < S.length ? ($ = S[p]) == null ? void 0 : $.id : void 0,
|
|
1898
|
-
children: /* @__PURE__ */
|
|
1906
|
+
children: /* @__PURE__ */ _.jsx("div", { ...D, className: F.virtualScroll, children: b.map(({ item: M, index: U, offsetTop: J }) => {
|
|
1899
1907
|
const K = i.includes(M.id);
|
|
1900
1908
|
return (
|
|
1901
1909
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
1902
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ _.jsxs(
|
|
1903
1911
|
"li",
|
|
1904
1912
|
{
|
|
1905
1913
|
role: "option",
|
|
1906
1914
|
id: M.id,
|
|
1907
1915
|
"aria-selected": p === U ? "true" : "false",
|
|
1908
1916
|
tabIndex: -1,
|
|
1909
|
-
className: `${F.listItem} ${p === U ?
|
|
1917
|
+
className: `${F.listItem} ${p === U ? Ae["selected-item"] : ""}`,
|
|
1910
1918
|
"aria-label": M.id + "-" + M.label,
|
|
1911
1919
|
style: {
|
|
1912
1920
|
height: `${h}px`,
|
|
@@ -1919,7 +1927,7 @@ const dn = 10, br = ({
|
|
|
1919
1927
|
},
|
|
1920
1928
|
children: [
|
|
1921
1929
|
Xe(M.id, M.label, t),
|
|
1922
|
-
K && /* @__PURE__ */
|
|
1930
|
+
K && /* @__PURE__ */ _.jsx(ye, { icon: "check", width: 16 })
|
|
1923
1931
|
]
|
|
1924
1932
|
},
|
|
1925
1933
|
M.id
|
|
@@ -1946,7 +1954,7 @@ const dn = 10, br = ({
|
|
|
1946
1954
|
a(
|
|
1947
1955
|
Xe(e, t, n)
|
|
1948
1956
|
);
|
|
1949
|
-
}, [t, n]), /* @__PURE__ */
|
|
1957
|
+
}, [t, n]), /* @__PURE__ */ _.jsx(Re, { ...r, bindValue: s });
|
|
1950
1958
|
}, pn = (n) => {
|
|
1951
1959
|
const e = _e(null);
|
|
1952
1960
|
return de(() => () => {
|
|
@@ -1971,7 +1979,7 @@ const dn = 10, br = ({
|
|
|
1971
1979
|
_multiActiveIndex: c,
|
|
1972
1980
|
...h
|
|
1973
1981
|
}) => {
|
|
1974
|
-
const [p, m] = Q(n), [y, S] = Q(e), [w, b] = Q(!1), [T, D] = Q(t || []), [v,
|
|
1982
|
+
const [p, m] = Q(n), [y, S] = Q(e), [w, b] = Q(!1), [T, D] = Q(t || []), [v, A] = Q(0), [j, Y] = Q([n]), { anchorRef: F, targetRef: $, anchorWidth: M } = Et({
|
|
1975
1983
|
position: "bottom",
|
|
1976
1984
|
enabled: w
|
|
1977
1985
|
});
|
|
@@ -1979,30 +1987,30 @@ const dn = 10, br = ({
|
|
|
1979
1987
|
const U = pn(400), J = (V) => {
|
|
1980
1988
|
V.length >= a ? o && f && U(async () => {
|
|
1981
1989
|
const B = await f(o, V);
|
|
1982
|
-
D(B),
|
|
1990
|
+
D(B), A(B.length > 0 ? 0 : -1), b(!0);
|
|
1983
1991
|
}) : b(!1), m(V), S(e), l || u == null || u(V, e);
|
|
1984
1992
|
}, K = (V) => {
|
|
1985
1993
|
l ? (m(""), S("")) : (m(V.id), S(V.label)), u == null || u(V.id, V.label);
|
|
1986
1994
|
const B = T.findIndex((L) => L.id === V.id);
|
|
1987
|
-
|
|
1995
|
+
A(B), Y([V.id]), b(!1);
|
|
1988
1996
|
}, ne = (V) => {
|
|
1989
|
-
V.key === "Escape" && (b(!1),
|
|
1997
|
+
V.key === "Escape" && (b(!1), A(-1));
|
|
1990
1998
|
}, G = (V) => {
|
|
1991
1999
|
if ((V.key === "ArrowDown" || V.key === "ArrowUp") && (V.preventDefault(), w)) {
|
|
1992
2000
|
const B = V.key === "ArrowDown" ? (v + 1) % T.length : (v - 1 + T.length) % T.length;
|
|
1993
|
-
|
|
2001
|
+
A(B);
|
|
1994
2002
|
}
|
|
1995
2003
|
switch (V.key) {
|
|
1996
2004
|
case "Enter":
|
|
1997
2005
|
v >= 0 && v < T.length ? K(T[v]) : l && (u == null || u(p, ""), b(!1), m(""), S(""));
|
|
1998
2006
|
break;
|
|
1999
2007
|
case "Escape":
|
|
2000
|
-
b(!1),
|
|
2008
|
+
b(!1), A(-1);
|
|
2001
2009
|
break;
|
|
2002
2010
|
}
|
|
2003
2011
|
};
|
|
2004
|
-
return /* @__PURE__ */
|
|
2005
|
-
/* @__PURE__ */
|
|
2012
|
+
return /* @__PURE__ */ _.jsxs("div", { children: [
|
|
2013
|
+
/* @__PURE__ */ _.jsx(
|
|
2006
2014
|
xr,
|
|
2007
2015
|
{
|
|
2008
2016
|
...h,
|
|
@@ -2017,7 +2025,7 @@ const dn = 10, br = ({
|
|
|
2017
2025
|
"aria-autocomplete": "list"
|
|
2018
2026
|
}
|
|
2019
2027
|
),
|
|
2020
|
-
w && /* @__PURE__ */
|
|
2028
|
+
w && /* @__PURE__ */ _.jsx(
|
|
2021
2029
|
br,
|
|
2022
2030
|
{
|
|
2023
2031
|
options: T,
|
|
@@ -2032,7 +2040,7 @@ const dn = 10, br = ({
|
|
|
2032
2040
|
}
|
|
2033
2041
|
)
|
|
2034
2042
|
] });
|
|
2035
|
-
},
|
|
2043
|
+
}, Ce = {
|
|
2036
2044
|
"smp-button-container": "_smp-button-container_1v5bs_1",
|
|
2037
2045
|
"smp-button-extraSmall": "_smp-button-extraSmall_1v5bs_65",
|
|
2038
2046
|
"smp-button-small": "_smp-button-small_1v5bs_70",
|
|
@@ -2061,7 +2069,7 @@ const dn = 10, br = ({
|
|
|
2061
2069
|
loading: c = !1
|
|
2062
2070
|
}) => {
|
|
2063
2071
|
const h = {
|
|
2064
|
-
container: `${
|
|
2072
|
+
container: `${Ce["smp-button-container"]} ${a ? Ce[`smp-button-${a}`] : ""} ${i ? Ce[`smp-buttonVariant-${i}`] : ""} ${o ? Ce[`smp-buttonType-${o}`] : ""} ${f ? Ce["smp-button-fullWidth"] : ""}`
|
|
2065
2073
|
}, p = (y) => ({
|
|
2066
2074
|
primary: "onPrimary",
|
|
2067
2075
|
danger: "onDanger",
|
|
@@ -2073,7 +2081,7 @@ const dn = 10, br = ({
|
|
|
2073
2081
|
large: 20,
|
|
2074
2082
|
extraLarge: 24
|
|
2075
2083
|
})[y];
|
|
2076
|
-
return /* @__PURE__ */
|
|
2084
|
+
return /* @__PURE__ */ _.jsx(
|
|
2077
2085
|
"button",
|
|
2078
2086
|
{
|
|
2079
2087
|
className: h.container,
|
|
@@ -2081,9 +2089,9 @@ const dn = 10, br = ({
|
|
|
2081
2089
|
"aria-label": t,
|
|
2082
2090
|
disabled: s,
|
|
2083
2091
|
"aria-busy": c,
|
|
2084
|
-
children: c ? /* @__PURE__ */
|
|
2085
|
-
r && l && /* @__PURE__ */
|
|
2086
|
-
|
|
2092
|
+
children: c ? /* @__PURE__ */ _.jsx(ye, { icon: "spinner", state: p(i), spin: !0 }) : /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
|
|
2093
|
+
r && l && /* @__PURE__ */ _.jsx(
|
|
2094
|
+
ye,
|
|
2087
2095
|
{
|
|
2088
2096
|
icon: r,
|
|
2089
2097
|
disabled: s,
|
|
@@ -2092,7 +2100,7 @@ const dn = 10, br = ({
|
|
|
2092
2100
|
height: m(a)
|
|
2093
2101
|
}
|
|
2094
2102
|
),
|
|
2095
|
-
u && n && /* @__PURE__ */
|
|
2103
|
+
u && n && /* @__PURE__ */ _.jsx("span", { children: n })
|
|
2096
2104
|
] })
|
|
2097
2105
|
}
|
|
2098
2106
|
);
|
|
@@ -2104,7 +2112,7 @@ const dn = 10, br = ({
|
|
|
2104
2112
|
const r = (s) => {
|
|
2105
2113
|
e && e(s.target.checked);
|
|
2106
2114
|
};
|
|
2107
|
-
return /* @__PURE__ */
|
|
2115
|
+
return /* @__PURE__ */ _.jsx(
|
|
2108
2116
|
"input",
|
|
2109
2117
|
{
|
|
2110
2118
|
type: "checkbox",
|
|
@@ -2133,7 +2141,7 @@ const dn = 10, br = ({
|
|
|
2133
2141
|
const r = mn[n], s = {
|
|
2134
2142
|
container: `${mt["smp-typography"]} ${n ? mt[`smp-typography-${n}`] : ""} ${t.disabled ? mt["smp-typography-disabled"] : ""}`
|
|
2135
2143
|
};
|
|
2136
|
-
return /* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ _.jsx(r, { className: s.container, disabled: t.disabled, children: e });
|
|
2137
2145
|
}, zt = {
|
|
2138
2146
|
"smp-chips-container": "_smp-chips-container_1i0jc_1",
|
|
2139
2147
|
"smp-chips-element": "_smp-chips-element_1i0jc_11"
|
|
@@ -2149,16 +2157,16 @@ const dn = 10, br = ({
|
|
|
2149
2157
|
}, a = (i) => {
|
|
2150
2158
|
r == null || r(n.filter((o, l) => l !== i));
|
|
2151
2159
|
};
|
|
2152
|
-
return /* @__PURE__ */
|
|
2160
|
+
return /* @__PURE__ */ _.jsx("div", { className: s.container, role: "list", children: n.map((i, o) => {
|
|
2153
2161
|
const l = Xe(
|
|
2154
2162
|
i.bindValue,
|
|
2155
2163
|
i.optionalDisplayValue,
|
|
2156
2164
|
t
|
|
2157
2165
|
);
|
|
2158
|
-
return /* @__PURE__ */
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
e && /* @__PURE__ */
|
|
2161
|
-
|
|
2166
|
+
return /* @__PURE__ */ _.jsxs("div", { className: s.element, role: "listitem", children: [
|
|
2167
|
+
/* @__PURE__ */ _.jsx(gn, { variant: "label", bindValue: l }),
|
|
2168
|
+
e && /* @__PURE__ */ _.jsx(
|
|
2169
|
+
ye,
|
|
2162
2170
|
{
|
|
2163
2171
|
icon: "close",
|
|
2164
2172
|
isInteractable: !0,
|
|
@@ -2219,12 +2227,12 @@ const yn = ({
|
|
|
2219
2227
|
multiActiveIndex: l,
|
|
2220
2228
|
...u
|
|
2221
2229
|
}) => {
|
|
2222
|
-
const [f, c] = Q(!1), [h, p] = Q(t), [m, y] = Q(-1), [S, w] = Q([n]), b =
|
|
2230
|
+
const [f, c] = Q(!1), [h, p] = Q(t), [m, y] = Q(-1), [S, w] = Q([n]), b = Cr(), { anchorRef: T, targetRef: D, anchorWidth: v } = Et({
|
|
2223
2231
|
position: "bottom",
|
|
2224
2232
|
enabled: f
|
|
2225
2233
|
});
|
|
2226
2234
|
Je(D, () => c(!1)), Er(f, D);
|
|
2227
|
-
const
|
|
2235
|
+
const A = ($) => {
|
|
2228
2236
|
e == null || e($.id, $.label);
|
|
2229
2237
|
const M = h.findIndex((U) => U.id === $.id);
|
|
2230
2238
|
y(M), w([$.id]), c(!1);
|
|
@@ -2237,7 +2245,7 @@ const yn = ({
|
|
|
2237
2245
|
p($), y($.length > 0 ? 0 : -1), c(!0);
|
|
2238
2246
|
});
|
|
2239
2247
|
};
|
|
2240
|
-
return /* @__PURE__ */
|
|
2248
|
+
return /* @__PURE__ */ _.jsxs(
|
|
2241
2249
|
"div",
|
|
2242
2250
|
{
|
|
2243
2251
|
role: "combobox",
|
|
@@ -2245,7 +2253,7 @@ const yn = ({
|
|
|
2245
2253
|
"aria-controls": b,
|
|
2246
2254
|
"aria-owns": b,
|
|
2247
2255
|
children: [
|
|
2248
|
-
/* @__PURE__ */
|
|
2256
|
+
/* @__PURE__ */ _.jsx(
|
|
2249
2257
|
xr,
|
|
2250
2258
|
{
|
|
2251
2259
|
...u,
|
|
@@ -2262,7 +2270,7 @@ const yn = ({
|
|
|
2262
2270
|
variant: "notSelectable"
|
|
2263
2271
|
}
|
|
2264
2272
|
),
|
|
2265
|
-
f && /* @__PURE__ */
|
|
2273
|
+
f && /* @__PURE__ */ _.jsx(
|
|
2266
2274
|
br,
|
|
2267
2275
|
{
|
|
2268
2276
|
id: b,
|
|
@@ -2272,7 +2280,7 @@ const yn = ({
|
|
|
2272
2280
|
selectedIndex: m,
|
|
2273
2281
|
activeIndex: l || S,
|
|
2274
2282
|
width: v,
|
|
2275
|
-
onClick:
|
|
2283
|
+
onClick: A,
|
|
2276
2284
|
onKeyDown: j
|
|
2277
2285
|
}
|
|
2278
2286
|
)
|
|
@@ -2620,9 +2628,9 @@ class nt extends st {
|
|
|
2620
2628
|
} : o;
|
|
2621
2629
|
const p = this.resolve(e, s);
|
|
2622
2630
|
let m = p == null ? void 0 : p.res;
|
|
2623
|
-
const y = (p == null ? void 0 : p.usedKey) || o, S = (p == null ? void 0 : p.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, D = s.count !== void 0 && !H(s.count), v = nt.hasDefaultValue(s),
|
|
2631
|
+
const y = (p == null ? void 0 : p.usedKey) || o, S = (p == null ? void 0 : p.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], b = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, T = !this.i18nFormat || this.i18nFormat.handleAsObject, D = s.count !== void 0 && !H(s.count), v = nt.hasDefaultValue(s), A = D ? this.pluralResolver.getSuffix(c, s.count, s) : "", j = s.ordinal && D ? this.pluralResolver.getSuffix(c, s.count, {
|
|
2624
2632
|
ordinal: !1
|
|
2625
|
-
}) : "", Y = D && !s.ordinal && s.count === 0, F = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${
|
|
2633
|
+
}) : "", Y = D && !s.ordinal && s.count === 0, F = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${A}`] || s[`defaultValue${j}`] || s.defaultValue;
|
|
2626
2634
|
let $ = m;
|
|
2627
2635
|
T && !m && v && ($ = F);
|
|
2628
2636
|
const M = tr($), U = Object.prototype.toString.apply($);
|
|
@@ -2675,8 +2683,8 @@ class nt extends st {
|
|
|
2675
2683
|
else this.options.saveMissingTo === "all" ? B = this.languageUtils.toResolveHierarchy(s.lng || this.language) : B.push(s.lng || this.language);
|
|
2676
2684
|
const d = (g, x, O) => {
|
|
2677
2685
|
var R;
|
|
2678
|
-
const
|
|
2679
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(g, u, x,
|
|
2686
|
+
const E = v && O !== m ? O : G;
|
|
2687
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(g, u, x, E, V, s) : (R = this.backendConnector) != null && R.saveMissing && this.backendConnector.saveMissing(g, u, x, E, V, s), this.emit("missingKey", g, u, x, m);
|
|
2680
2688
|
};
|
|
2681
2689
|
this.options.saveMissing && (this.options.saveMissingPlurals && D ? B.forEach((g) => {
|
|
2682
2690
|
const x = this.pluralResolver.getSuffixes(g, s);
|
|
@@ -2743,11 +2751,11 @@ class nt extends st {
|
|
|
2743
2751
|
c.forEach((S) => {
|
|
2744
2752
|
var w, b;
|
|
2745
2753
|
this.isValidLookup(r) || (o = S, !er[`${y[0]}-${S}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((b = this.utils) != null && b.hasLoadedNamespace(o)) && (er[`${y[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((T) => {
|
|
2746
|
-
var
|
|
2754
|
+
var A;
|
|
2747
2755
|
if (this.isValidLookup(r)) return;
|
|
2748
2756
|
i = T;
|
|
2749
2757
|
const D = [f];
|
|
2750
|
-
if ((
|
|
2758
|
+
if ((A = this.i18nFormat) != null && A.addLookupKeys)
|
|
2751
2759
|
this.i18nFormat.addLookupKeys(D, f, T, S, t);
|
|
2752
2760
|
else {
|
|
2753
2761
|
let j;
|
|
@@ -2929,7 +2937,7 @@ const ar = (n, e, t, r = ".", s = !0) => {
|
|
|
2929
2937
|
let a = Sn(n, e, t);
|
|
2930
2938
|
return !a && s && H(t) && (a = xt(n, t, r), a === void 0 && (a = xt(e, t, r))), a;
|
|
2931
2939
|
}, gt = (n) => n.replace(/\$/g, "$$$$");
|
|
2932
|
-
class
|
|
2940
|
+
class An {
|
|
2933
2941
|
constructor(e = {}) {
|
|
2934
2942
|
var t;
|
|
2935
2943
|
this.logger = ge.create("interpolator"), this.options = e, this.format = ((t = e == null ? void 0 : e.interpolation) == null ? void 0 : t.format) || ((r) => r), this.init(e);
|
|
@@ -3083,7 +3091,7 @@ const $n = (n) => {
|
|
|
3083
3091
|
let o = e[i];
|
|
3084
3092
|
return o || (o = n(Ne(r), s), e[i] = o), o(t);
|
|
3085
3093
|
};
|
|
3086
|
-
},
|
|
3094
|
+
}, Cn = (n) => (e, t, r) => n(Ne(t), r)(e);
|
|
3087
3095
|
class Ln {
|
|
3088
3096
|
constructor(e = {}) {
|
|
3089
3097
|
this.logger = ge.create("formatter"), this.options = e, this.init(e);
|
|
@@ -3092,7 +3100,7 @@ class Ln {
|
|
|
3092
3100
|
interpolation: {}
|
|
3093
3101
|
}) {
|
|
3094
3102
|
this.formatSeparator = t.interpolation.formatSeparator || ",";
|
|
3095
|
-
const r = t.cacheInBuiltFormats ? ir :
|
|
3103
|
+
const r = t.cacheInBuiltFormats ? ir : Cn;
|
|
3096
3104
|
this.formats = {
|
|
3097
3105
|
number: r((s, a) => {
|
|
3098
3106
|
const i = new Intl.NumberFormat(s, {
|
|
@@ -3399,7 +3407,7 @@ class Me extends st {
|
|
|
3399
3407
|
c.logger = ge, c.resourceStore = this.store, c.languageUtils = f, c.pluralResolver = new Pn(f, {
|
|
3400
3408
|
prepend: this.options.pluralSeparator,
|
|
3401
3409
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3402
|
-
}), u && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new
|
|
3410
|
+
}), u && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (c.formatter = s(u), c.formatter.init(c, this.options), this.options.interpolation.format = c.formatter.format.bind(c.formatter)), c.interpolator = new An(this.options), c.utils = {
|
|
3403
3411
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3404
3412
|
}, c.backendConnector = new jn(s(this.modules.backend), c.resourceStore, c, this.options), c.backendConnector.on("*", (h, ...p) => {
|
|
3405
3413
|
this.emit(h, ...p);
|
|
@@ -3778,7 +3786,7 @@ function Xn({
|
|
|
3778
3786
|
return O >= g && O <= x;
|
|
3779
3787
|
}), v = (L) => {
|
|
3780
3788
|
D(L) || (u(L), y(L.getDate()), e && e(Yr(L)));
|
|
3781
|
-
},
|
|
3789
|
+
}, A = () => {
|
|
3782
3790
|
f === 0 ? (c(11), p(h - 1)) : c(f - 1), y(1);
|
|
3783
3791
|
}, j = () => {
|
|
3784
3792
|
f === 11 ? (c(0), p(h + 1)) : c(f + 1), y(1);
|
|
@@ -3796,15 +3804,15 @@ function Xn({
|
|
|
3796
3804
|
case "ArrowRight":
|
|
3797
3805
|
L.preventDefault();
|
|
3798
3806
|
{
|
|
3799
|
-
let
|
|
3800
|
-
if (
|
|
3807
|
+
let E = O + 1, R = new Date(h, f, E);
|
|
3808
|
+
if (E > x) {
|
|
3801
3809
|
const k = f === 11 ? h + 1 : h, I = f === 11 ? 0 : f + 1;
|
|
3802
|
-
|
|
3810
|
+
E = 1, R = new Date(k, I, E), j(), setTimeout(() => {
|
|
3803
3811
|
U(1, "forward");
|
|
3804
3812
|
}, 0);
|
|
3805
3813
|
return;
|
|
3806
3814
|
}
|
|
3807
|
-
D(R) ? U(
|
|
3815
|
+
D(R) ? U(E, "forward") : $(E);
|
|
3808
3816
|
}
|
|
3809
3817
|
break;
|
|
3810
3818
|
case "Tab":
|
|
@@ -3812,43 +3820,43 @@ function Xn({
|
|
|
3812
3820
|
case "ArrowLeft":
|
|
3813
3821
|
L.preventDefault();
|
|
3814
3822
|
{
|
|
3815
|
-
let
|
|
3816
|
-
if (
|
|
3817
|
-
const k = f === 0 ? h - 1 : h, I = f === 0 ? 11 : f - 1,
|
|
3818
|
-
|
|
3819
|
-
U(
|
|
3823
|
+
let E = O - 1, R = new Date(h, f, E);
|
|
3824
|
+
if (E < 1) {
|
|
3825
|
+
const k = f === 0 ? h - 1 : h, I = f === 0 ? 11 : f - 1, C = Y(k, I);
|
|
3826
|
+
E = C, R = new Date(k, I, E), A(), setTimeout(() => {
|
|
3827
|
+
U(C, "backward");
|
|
3820
3828
|
}, 0);
|
|
3821
3829
|
return;
|
|
3822
3830
|
}
|
|
3823
|
-
D(R) ? U(
|
|
3831
|
+
D(R) ? U(E, "backward") : $(E);
|
|
3824
3832
|
}
|
|
3825
3833
|
break;
|
|
3826
3834
|
case "ArrowUp":
|
|
3827
3835
|
L.preventDefault();
|
|
3828
3836
|
{
|
|
3829
|
-
let
|
|
3830
|
-
if (
|
|
3837
|
+
let E = O - 7, R = new Date(h, f, E);
|
|
3838
|
+
if (E < 1) {
|
|
3831
3839
|
const k = f === 0 ? h - 1 : h, I = f === 0 ? 11 : f - 1;
|
|
3832
|
-
|
|
3833
|
-
U(
|
|
3840
|
+
E = Y(k, I) + E, R = new Date(k, I, E), A(), setTimeout(() => {
|
|
3841
|
+
U(E, "backward");
|
|
3834
3842
|
}, 0);
|
|
3835
3843
|
return;
|
|
3836
3844
|
}
|
|
3837
|
-
D(R) ? U(
|
|
3845
|
+
D(R) ? U(E, "backward") : $(E);
|
|
3838
3846
|
}
|
|
3839
3847
|
break;
|
|
3840
3848
|
case "ArrowDown":
|
|
3841
3849
|
L.preventDefault();
|
|
3842
3850
|
{
|
|
3843
|
-
let
|
|
3844
|
-
if (
|
|
3851
|
+
let E = O + 7, R = new Date(h, f, E);
|
|
3852
|
+
if (E > x) {
|
|
3845
3853
|
const k = f === 11 ? h + 1 : h, I = f === 11 ? 0 : f + 1;
|
|
3846
|
-
|
|
3847
|
-
U(
|
|
3854
|
+
E = E - x, R = new Date(k, I, E), j(), setTimeout(() => {
|
|
3855
|
+
U(E, "forward");
|
|
3848
3856
|
}, 0);
|
|
3849
3857
|
return;
|
|
3850
3858
|
}
|
|
3851
|
-
D(R) ? U(
|
|
3859
|
+
D(R) ? U(E, "forward") : $(E);
|
|
3852
3860
|
}
|
|
3853
3861
|
break;
|
|
3854
3862
|
case "Home":
|
|
@@ -3858,20 +3866,20 @@ function Xn({
|
|
|
3858
3866
|
L.preventDefault(), U(x, "backward");
|
|
3859
3867
|
break;
|
|
3860
3868
|
case "PageUp":
|
|
3861
|
-
L.preventDefault(),
|
|
3862
|
-
const
|
|
3869
|
+
L.preventDefault(), A(), setTimeout(() => {
|
|
3870
|
+
const E = Y(
|
|
3863
3871
|
f === 0 ? h - 1 : h,
|
|
3864
3872
|
f === 0 ? 11 : f - 1
|
|
3865
|
-
), R = Math.min(O,
|
|
3873
|
+
), R = Math.min(O, E);
|
|
3866
3874
|
U(R, "forward");
|
|
3867
3875
|
}, 0);
|
|
3868
3876
|
break;
|
|
3869
3877
|
case "PageDown":
|
|
3870
3878
|
L.preventDefault(), j(), setTimeout(() => {
|
|
3871
|
-
const
|
|
3879
|
+
const E = Y(
|
|
3872
3880
|
f === 11 ? h + 1 : h,
|
|
3873
3881
|
f === 11 ? 0 : f + 1
|
|
3874
|
-
), R = Math.min(O,
|
|
3882
|
+
), R = Math.min(O, E);
|
|
3875
3883
|
U(R, "forward");
|
|
3876
3884
|
}, 0);
|
|
3877
3885
|
break;
|
|
@@ -3905,9 +3913,9 @@ function Xn({
|
|
|
3905
3913
|
return;
|
|
3906
3914
|
}
|
|
3907
3915
|
}
|
|
3908
|
-
const x = f === 0 ? h - 1 : h, O = f === 0 ? 11 : f - 1,
|
|
3909
|
-
|
|
3910
|
-
U(
|
|
3916
|
+
const x = f === 0 ? h - 1 : h, O = f === 0 ? 11 : f - 1, E = Y(x, O);
|
|
3917
|
+
A(), setTimeout(() => {
|
|
3918
|
+
U(E, "backward");
|
|
3911
3919
|
}, 0);
|
|
3912
3920
|
}
|
|
3913
3921
|
}, K = (() => {
|
|
@@ -3948,7 +3956,7 @@ function Xn({
|
|
|
3948
3956
|
${g ? me["smp-datepickercalendar-td-focused"] : ""}
|
|
3949
3957
|
${x ? me["smp-datepickercalendar-td-disabled"] : ""}`
|
|
3950
3958
|
}, B = () => `${b[f]} ${h.toString()}`;
|
|
3951
|
-
return /* @__PURE__ */
|
|
3959
|
+
return /* @__PURE__ */ _.jsxs(
|
|
3952
3960
|
"div",
|
|
3953
3961
|
{
|
|
3954
3962
|
className: V.wrapper,
|
|
@@ -3957,7 +3965,7 @@ function Xn({
|
|
|
3957
3965
|
tabIndex: -1,
|
|
3958
3966
|
"aria-modal": "true",
|
|
3959
3967
|
children: [
|
|
3960
|
-
/* @__PURE__ */
|
|
3968
|
+
/* @__PURE__ */ _.jsxs(
|
|
3961
3969
|
"div",
|
|
3962
3970
|
{
|
|
3963
3971
|
style: {
|
|
@@ -3967,17 +3975,17 @@ function Xn({
|
|
|
3967
3975
|
marginBottom: "16px"
|
|
3968
3976
|
},
|
|
3969
3977
|
children: [
|
|
3970
|
-
/* @__PURE__ */
|
|
3978
|
+
/* @__PURE__ */ _.jsx(
|
|
3971
3979
|
et,
|
|
3972
3980
|
{
|
|
3973
|
-
onClick:
|
|
3981
|
+
onClick: A,
|
|
3974
3982
|
ariaLabel: a(St.PREVIOUS_MONTH),
|
|
3975
3983
|
bindValue: "<",
|
|
3976
3984
|
appearance: "ghost",
|
|
3977
3985
|
variant: "base"
|
|
3978
3986
|
}
|
|
3979
3987
|
),
|
|
3980
|
-
/* @__PURE__ */
|
|
3988
|
+
/* @__PURE__ */ _.jsx(
|
|
3981
3989
|
"div",
|
|
3982
3990
|
{
|
|
3983
3991
|
"aria-label": B(),
|
|
@@ -3985,7 +3993,7 @@ function Xn({
|
|
|
3985
3993
|
children: B()
|
|
3986
3994
|
}
|
|
3987
3995
|
),
|
|
3988
|
-
/* @__PURE__ */
|
|
3996
|
+
/* @__PURE__ */ _.jsx(
|
|
3989
3997
|
et,
|
|
3990
3998
|
{
|
|
3991
3999
|
onClick: j,
|
|
@@ -3998,7 +4006,7 @@ function Xn({
|
|
|
3998
4006
|
]
|
|
3999
4007
|
}
|
|
4000
4008
|
),
|
|
4001
|
-
/* @__PURE__ */
|
|
4009
|
+
/* @__PURE__ */ _.jsxs(
|
|
4002
4010
|
"table",
|
|
4003
4011
|
{
|
|
4004
4012
|
ref: S,
|
|
@@ -4006,7 +4014,7 @@ function Xn({
|
|
|
4006
4014
|
"aria-label": `${a(Tt.CALENDAR_FOR)} ${b[f]} ${h}`,
|
|
4007
4015
|
className: V.table,
|
|
4008
4016
|
children: [
|
|
4009
|
-
/* @__PURE__ */
|
|
4017
|
+
/* @__PURE__ */ _.jsx("thead", { children: /* @__PURE__ */ _.jsx("tr", { children: T.map((L) => /* @__PURE__ */ _.jsx(
|
|
4010
4018
|
"th",
|
|
4011
4019
|
{
|
|
4012
4020
|
scope: "col",
|
|
@@ -4016,10 +4024,10 @@ function Xn({
|
|
|
4016
4024
|
},
|
|
4017
4025
|
L.value
|
|
4018
4026
|
)) }) }),
|
|
4019
|
-
/* @__PURE__ */
|
|
4027
|
+
/* @__PURE__ */ _.jsx("tbody", { children: ne.map((L, d) => /* @__PURE__ */ _.jsx("tr", { children: L.map((g, x) => {
|
|
4020
4028
|
const O = d * 7 + x;
|
|
4021
4029
|
if (g === null)
|
|
4022
|
-
return /* @__PURE__ */
|
|
4030
|
+
return /* @__PURE__ */ _.jsx(
|
|
4023
4031
|
"td",
|
|
4024
4032
|
{
|
|
4025
4033
|
className: V.td(
|
|
@@ -4031,23 +4039,23 @@ function Xn({
|
|
|
4031
4039
|
},
|
|
4032
4040
|
`empty-${x}`
|
|
4033
4041
|
);
|
|
4034
|
-
const
|
|
4035
|
-
return /* @__PURE__ */
|
|
4042
|
+
const E = g.getDate() === o.getDate() && g.getMonth() === o.getMonth() && g.getFullYear() === o.getFullYear(), R = l && g.getDate() === l.getDate() && g.getMonth() === l.getMonth() && g.getFullYear() === l.getFullYear(), k = m === g.getDate(), I = D(g);
|
|
4043
|
+
return /* @__PURE__ */ _.jsx(
|
|
4036
4044
|
"td",
|
|
4037
4045
|
{
|
|
4038
4046
|
role: "gridcell",
|
|
4039
4047
|
"aria-selected": R,
|
|
4040
4048
|
tabIndex: k ? 0 : -1,
|
|
4041
4049
|
onClick: () => v(g),
|
|
4042
|
-
onKeyDown: (
|
|
4050
|
+
onKeyDown: (C) => M(C, O),
|
|
4043
4051
|
"aria-label": `${g.getDate()} ${b[g.getMonth()]} ${g.getFullYear()}`,
|
|
4044
4052
|
"data-selected": R,
|
|
4045
4053
|
"aria-disabled": I,
|
|
4046
|
-
ref: (
|
|
4047
|
-
w.current[O] =
|
|
4054
|
+
ref: (C) => {
|
|
4055
|
+
w.current[O] = C;
|
|
4048
4056
|
},
|
|
4049
4057
|
className: V.td(
|
|
4050
|
-
|
|
4058
|
+
E,
|
|
4051
4059
|
R,
|
|
4052
4060
|
k,
|
|
4053
4061
|
I
|
|
@@ -4082,13 +4090,13 @@ const Zn = ({
|
|
|
4082
4090
|
// FIXME: Copied from useClickOutside.
|
|
4083
4091
|
typeof c == "object" && c !== null && "current" in c
|
|
4084
4092
|
) {
|
|
4085
|
-
const
|
|
4086
|
-
|
|
4093
|
+
const A = c.current.querySelector("input");
|
|
4094
|
+
A && A === document.activeElement && w();
|
|
4087
4095
|
}
|
|
4088
4096
|
}), Er(a, h);
|
|
4089
4097
|
const { format: p, getCurrentLanguage: m } = at(), y = Se(
|
|
4090
|
-
(
|
|
4091
|
-
const j =
|
|
4098
|
+
(A) => {
|
|
4099
|
+
const j = A.length > 5 && Mr(A, m()) || A, Y = p(j, void 0, void 0, {
|
|
4092
4100
|
type: "date"
|
|
4093
4101
|
}), F = typeof j != "string", $ = F && j.toISOString().substring(0, 10) || "";
|
|
4094
4102
|
return {
|
|
@@ -4101,23 +4109,23 @@ const Zn = ({
|
|
|
4101
4109
|
[m, p]
|
|
4102
4110
|
);
|
|
4103
4111
|
de(() => {
|
|
4104
|
-
const { formattedDate:
|
|
4105
|
-
l(Y && j || n), f(Y &&
|
|
4112
|
+
const { formattedDate: A, isoDate: j, isValid: Y } = y(n);
|
|
4113
|
+
l(Y && j || n), f(Y && A || n);
|
|
4106
4114
|
}, [n, p, y]);
|
|
4107
|
-
const S = () => i((
|
|
4115
|
+
const S = () => i((A) => !A), w = () => {
|
|
4108
4116
|
T(u);
|
|
4109
|
-
}, b = (
|
|
4110
|
-
T(
|
|
4111
|
-
}, T = (
|
|
4112
|
-
const { isoDate: j, isValid: Y } = y(
|
|
4113
|
-
t && t(Y && j ||
|
|
4114
|
-
}, D = (
|
|
4115
|
-
f(
|
|
4116
|
-
}, v = (
|
|
4117
|
-
|
|
4117
|
+
}, b = (A) => {
|
|
4118
|
+
T(A), i(!1);
|
|
4119
|
+
}, T = (A) => {
|
|
4120
|
+
const { isoDate: j, isValid: Y } = y(A);
|
|
4121
|
+
t && t(Y && j || A);
|
|
4122
|
+
}, D = (A) => {
|
|
4123
|
+
f(A);
|
|
4124
|
+
}, v = (A) => {
|
|
4125
|
+
A.key === "Enter" && (A.preventDefault(), T(u));
|
|
4118
4126
|
};
|
|
4119
|
-
return /* @__PURE__ */
|
|
4120
|
-
/* @__PURE__ */
|
|
4127
|
+
return /* @__PURE__ */ _.jsxs("div", { children: [
|
|
4128
|
+
/* @__PURE__ */ _.jsx(
|
|
4121
4129
|
Re,
|
|
4122
4130
|
{
|
|
4123
4131
|
bindValue: u,
|
|
@@ -4131,7 +4139,7 @@ const Zn = ({
|
|
|
4131
4139
|
...s
|
|
4132
4140
|
}
|
|
4133
4141
|
),
|
|
4134
|
-
a && /* @__PURE__ */
|
|
4142
|
+
a && /* @__PURE__ */ _.jsx(
|
|
4135
4143
|
Xn,
|
|
4136
4144
|
{
|
|
4137
4145
|
disabledDateRanges: r,
|
|
@@ -4170,8 +4178,8 @@ const Zn = ({
|
|
|
4170
4178
|
}, f = {
|
|
4171
4179
|
container: `${Qn["smp-multipleAutocomplete-container"]}`
|
|
4172
4180
|
};
|
|
4173
|
-
return /* @__PURE__ */
|
|
4174
|
-
/* @__PURE__ */
|
|
4181
|
+
return /* @__PURE__ */ _.jsxs("div", { className: f.container, children: [
|
|
4182
|
+
/* @__PURE__ */ _.jsx(
|
|
4175
4183
|
_r,
|
|
4176
4184
|
{
|
|
4177
4185
|
elements: n,
|
|
@@ -4182,7 +4190,7 @@ const Zn = ({
|
|
|
4182
4190
|
}
|
|
4183
4191
|
}
|
|
4184
4192
|
),
|
|
4185
|
-
/* @__PURE__ */
|
|
4193
|
+
/* @__PURE__ */ _.jsx(
|
|
4186
4194
|
Sr,
|
|
4187
4195
|
{
|
|
4188
4196
|
bindValue: "",
|
|
@@ -4199,7 +4207,7 @@ const Zn = ({
|
|
|
4199
4207
|
] });
|
|
4200
4208
|
}, ts = ({ ...n }) => {
|
|
4201
4209
|
const [e, t] = Q(!1), r = e ? "visibility-off" : "visibility";
|
|
4202
|
-
return /* @__PURE__ */
|
|
4210
|
+
return /* @__PURE__ */ _.jsx(
|
|
4203
4211
|
Re,
|
|
4204
4212
|
{
|
|
4205
4213
|
...n,
|
|
@@ -4214,7 +4222,7 @@ const Zn = ({
|
|
|
4214
4222
|
var i;
|
|
4215
4223
|
a.key === "Enter" && (a.preventDefault(), (i = n.onEnter) == null || i.call(n, e));
|
|
4216
4224
|
};
|
|
4217
|
-
return /* @__PURE__ */
|
|
4225
|
+
return /* @__PURE__ */ _.jsx(
|
|
4218
4226
|
Re,
|
|
4219
4227
|
{
|
|
4220
4228
|
...n,
|
|
@@ -4304,7 +4312,7 @@ const Be = (n, e, t) => ({
|
|
|
4304
4312
|
...r
|
|
4305
4313
|
}, y = (b, T) => Ir(t) ? Be(p, new Ge(t, b).getLegacyValue()) : Be(p, b, T), S = (b) => Be(p, new ze(t, b).getLegacyValue()), w = (b) => ns(p, b);
|
|
4306
4314
|
switch (e) {
|
|
4307
|
-
case
|
|
4315
|
+
case ce.AUTOCOMPLETE: {
|
|
4308
4316
|
const b = {
|
|
4309
4317
|
...m,
|
|
4310
4318
|
bindValue: t.k,
|
|
@@ -4313,9 +4321,9 @@ const Be = (n, e, t) => ({
|
|
|
4313
4321
|
l == null || l(y(T, D));
|
|
4314
4322
|
}
|
|
4315
4323
|
};
|
|
4316
|
-
return /* @__PURE__ */
|
|
4324
|
+
return /* @__PURE__ */ _.jsx(Sr, { ...b });
|
|
4317
4325
|
}
|
|
4318
|
-
case
|
|
4326
|
+
case ce.BUTTON: {
|
|
4319
4327
|
const b = {
|
|
4320
4328
|
...m,
|
|
4321
4329
|
bindValue: t.k,
|
|
@@ -4324,9 +4332,9 @@ const Be = (n, e, t) => ({
|
|
|
4324
4332
|
u == null || u(y(t.k));
|
|
4325
4333
|
}
|
|
4326
4334
|
};
|
|
4327
|
-
return /* @__PURE__ */
|
|
4335
|
+
return /* @__PURE__ */ _.jsx(et, { ...b });
|
|
4328
4336
|
}
|
|
4329
|
-
case
|
|
4337
|
+
case ce.COMBOBOX: {
|
|
4330
4338
|
const b = {
|
|
4331
4339
|
...m,
|
|
4332
4340
|
bindValue: t.k,
|
|
@@ -4335,9 +4343,9 @@ const Be = (n, e, t) => ({
|
|
|
4335
4343
|
l == null || l(y(T, D));
|
|
4336
4344
|
}
|
|
4337
4345
|
};
|
|
4338
|
-
return /* @__PURE__ */
|
|
4346
|
+
return /* @__PURE__ */ _.jsx(yn, { ...b });
|
|
4339
4347
|
}
|
|
4340
|
-
case
|
|
4348
|
+
case ce.CHECKBOX: {
|
|
4341
4349
|
const b = {
|
|
4342
4350
|
...m,
|
|
4343
4351
|
bindValue: ze.fromDataObj(t).getValue(),
|
|
@@ -4346,16 +4354,16 @@ const Be = (n, e, t) => ({
|
|
|
4346
4354
|
l == null || l(S(T));
|
|
4347
4355
|
}
|
|
4348
4356
|
};
|
|
4349
|
-
return /* @__PURE__ */
|
|
4357
|
+
return /* @__PURE__ */ _.jsx(hn, { ...b });
|
|
4350
4358
|
}
|
|
4351
|
-
case
|
|
4359
|
+
case ce.CHIP: {
|
|
4352
4360
|
const b = {
|
|
4353
4361
|
...m,
|
|
4354
4362
|
elements: ur(p)
|
|
4355
4363
|
};
|
|
4356
|
-
return /* @__PURE__ */
|
|
4364
|
+
return /* @__PURE__ */ _.jsx(_r, { ...b });
|
|
4357
4365
|
}
|
|
4358
|
-
case
|
|
4366
|
+
case ce.DATE: {
|
|
4359
4367
|
const b = {
|
|
4360
4368
|
...m,
|
|
4361
4369
|
bindValue: Ge.fromDataObj(t).getValue(),
|
|
@@ -4363,9 +4371,20 @@ const Be = (n, e, t) => ({
|
|
|
4363
4371
|
l == null || l(y(T));
|
|
4364
4372
|
}
|
|
4365
4373
|
};
|
|
4366
|
-
return /* @__PURE__ */
|
|
4374
|
+
return /* @__PURE__ */ _.jsx(Zn, { ...b });
|
|
4375
|
+
}
|
|
4376
|
+
case ce.ICON: {
|
|
4377
|
+
const b = {
|
|
4378
|
+
...m,
|
|
4379
|
+
icon: s,
|
|
4380
|
+
placeholderIcon: i,
|
|
4381
|
+
onClick: () => {
|
|
4382
|
+
u == null || u(y(t.k));
|
|
4383
|
+
}
|
|
4384
|
+
};
|
|
4385
|
+
return /* @__PURE__ */ _.jsx(ye, { ...b });
|
|
4367
4386
|
}
|
|
4368
|
-
case
|
|
4387
|
+
case ce.IMAGE: {
|
|
4369
4388
|
const b = {
|
|
4370
4389
|
...m,
|
|
4371
4390
|
icon: s,
|
|
@@ -4374,9 +4393,9 @@ const Be = (n, e, t) => ({
|
|
|
4374
4393
|
u == null || u(y(t.k));
|
|
4375
4394
|
}
|
|
4376
4395
|
};
|
|
4377
|
-
return /* @__PURE__ */
|
|
4396
|
+
return /* @__PURE__ */ _.jsx(ye, { ...b });
|
|
4378
4397
|
}
|
|
4379
|
-
case
|
|
4398
|
+
case ce.MULTI_AUTOCOMPLETE: {
|
|
4380
4399
|
const b = {
|
|
4381
4400
|
...m,
|
|
4382
4401
|
elements: ur(p),
|
|
@@ -4384,9 +4403,9 @@ const Be = (n, e, t) => ({
|
|
|
4384
4403
|
l == null || l(w(T));
|
|
4385
4404
|
}
|
|
4386
4405
|
};
|
|
4387
|
-
return /* @__PURE__ */
|
|
4406
|
+
return /* @__PURE__ */ _.jsx(es, { ...b });
|
|
4388
4407
|
}
|
|
4389
|
-
case
|
|
4408
|
+
case ce.PASSWORD: {
|
|
4390
4409
|
const b = {
|
|
4391
4410
|
...m,
|
|
4392
4411
|
bindValue: t.k,
|
|
@@ -4394,9 +4413,9 @@ const Be = (n, e, t) => ({
|
|
|
4394
4413
|
l == null || l(y(T));
|
|
4395
4414
|
}
|
|
4396
4415
|
};
|
|
4397
|
-
return /* @__PURE__ */
|
|
4416
|
+
return /* @__PURE__ */ _.jsx(ts, { ...b });
|
|
4398
4417
|
}
|
|
4399
|
-
case
|
|
4418
|
+
case ce.SPOTLIGHT: {
|
|
4400
4419
|
const b = {
|
|
4401
4420
|
...m,
|
|
4402
4421
|
bindValue: t.k,
|
|
@@ -4404,9 +4423,9 @@ const Be = (n, e, t) => ({
|
|
|
4404
4423
|
f == null || f(y(T));
|
|
4405
4424
|
}
|
|
4406
4425
|
};
|
|
4407
|
-
return /* @__PURE__ */
|
|
4426
|
+
return /* @__PURE__ */ _.jsx(rs, { ...b });
|
|
4408
4427
|
}
|
|
4409
|
-
case
|
|
4428
|
+
case ce.TEXT_FIELD:
|
|
4410
4429
|
case void 0: {
|
|
4411
4430
|
const b = {
|
|
4412
4431
|
...m,
|
|
@@ -4415,7 +4434,7 @@ const Be = (n, e, t) => ({
|
|
|
4415
4434
|
l == null || l(y(T));
|
|
4416
4435
|
}
|
|
4417
4436
|
};
|
|
4418
|
-
return /* @__PURE__ */
|
|
4437
|
+
return /* @__PURE__ */ _.jsx(Re, { ...b });
|
|
4419
4438
|
}
|
|
4420
4439
|
}
|
|
4421
4440
|
}, ss = (n, e) => {
|
|
@@ -4468,7 +4487,7 @@ const Be = (n, e, t) => ({
|
|
|
4468
4487
|
}, as = ({ layout: n, cells: e }) => {
|
|
4469
4488
|
var f;
|
|
4470
4489
|
if (!((f = n.sections) != null && f.length))
|
|
4471
|
-
return /* @__PURE__ */
|
|
4490
|
+
return /* @__PURE__ */ _.jsx(_.Fragment, {});
|
|
4472
4491
|
const t = "--smp-grid-template-cols", r = Rr(n.sections, e), s = (c) => c == null ? void 0 : c.reduce((h, p) => {
|
|
4473
4492
|
var b, T;
|
|
4474
4493
|
let m = "", y = {}, S = {}, w = "";
|
|
@@ -4493,7 +4512,7 @@ const Be = (n, e, t) => ({
|
|
|
4493
4512
|
t
|
|
4494
4513
|
), l = (c) => {
|
|
4495
4514
|
var p;
|
|
4496
|
-
const h = /* @__PURE__ */
|
|
4515
|
+
const h = /* @__PURE__ */ _.jsx(
|
|
4497
4516
|
"div",
|
|
4498
4517
|
{
|
|
4499
4518
|
"smp-id": "section-" + c.id,
|
|
@@ -4505,12 +4524,12 @@ const Be = (n, e, t) => ({
|
|
|
4505
4524
|
},
|
|
4506
4525
|
"section-" + c.id
|
|
4507
4526
|
);
|
|
4508
|
-
return c.title ? /* @__PURE__ */
|
|
4509
|
-
/* @__PURE__ */
|
|
4527
|
+
return c.title ? /* @__PURE__ */ _.jsxs("div", { className: `${fe["smp-layout-section-with-title"]}`, children: [
|
|
4528
|
+
/* @__PURE__ */ _.jsx(
|
|
4510
4529
|
"span",
|
|
4511
4530
|
{
|
|
4512
4531
|
className: `${fe["smp-layout-section-title"]} ${c.hdsp ? `smp-justifyContent-${c.hdsp}` : ""} ${c.vdsp ? `smp-alignItems-${c.vdsp}` : ""}`,
|
|
4513
|
-
children: /* @__PURE__ */
|
|
4532
|
+
children: /* @__PURE__ */ _.jsx(hr, { label: c.title })
|
|
4514
4533
|
}
|
|
4515
4534
|
),
|
|
4516
4535
|
h
|
|
@@ -4520,18 +4539,18 @@ const Be = (n, e, t) => ({
|
|
|
4520
4539
|
gridColumnStart: S,
|
|
4521
4540
|
gridColumnEnd: w
|
|
4522
4541
|
}, T = `${fe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
|
|
4523
|
-
return /* @__PURE__ */
|
|
4542
|
+
return /* @__PURE__ */ _.jsx(
|
|
4524
4543
|
"div",
|
|
4525
4544
|
{
|
|
4526
4545
|
className: T,
|
|
4527
4546
|
style: { ...b },
|
|
4528
4547
|
"smp-id": c.id,
|
|
4529
|
-
children: h ? /* @__PURE__ */
|
|
4548
|
+
children: h ? /* @__PURE__ */ _.jsx(Or, { ...h }) : /* @__PURE__ */ _.jsx(_.Fragment, {})
|
|
4530
4549
|
},
|
|
4531
4550
|
c.id
|
|
4532
4551
|
);
|
|
4533
4552
|
};
|
|
4534
|
-
return /* @__PURE__ */
|
|
4553
|
+
return /* @__PURE__ */ _.jsx("div", { className: i.container, style: o, "smp-id": "layout", children: r == null ? void 0 : r.map((c) => l(c)) });
|
|
4535
4554
|
}, is = {
|
|
4536
4555
|
"smp-appbar": "_smp-appbar_u7bbt_1"
|
|
4537
4556
|
}, us = ({ data: n, onClick: e, onEnter: t }) => {
|
|
@@ -4576,7 +4595,7 @@ const Be = (n, e, t) => ({
|
|
|
4576
4595
|
);
|
|
4577
4596
|
return de(() => {
|
|
4578
4597
|
s(a(n));
|
|
4579
|
-
}, [n, a]), !((i = n == null ? void 0 : n.rows) != null && i.length) || !((o = n.columns) != null && o.length) ? null : r && /* @__PURE__ */
|
|
4598
|
+
}, [n, a]), !((i = n == null ? void 0 : n.rows) != null && i.length) || !((o = n.columns) != null && o.length) ? null : r && /* @__PURE__ */ _.jsx("header", { className: is["smp-appbar"], "aria-label": "App Bar", children: /* @__PURE__ */ _.jsx(as, { layout: n.rows[0].layout, cells: r }) });
|
|
4580
4599
|
}, ke = {
|
|
4581
4600
|
"smp-dash-list": "_smp-dash-list_ajkcc_1",
|
|
4582
4601
|
"smp-dash-list-fill-space": "_smp-dash-list-fill-space_ajkcc_25",
|
|
@@ -4610,15 +4629,15 @@ const Be = (n, e, t) => ({
|
|
|
4610
4629
|
SelectLayout: b = "1",
|
|
4611
4630
|
onClick: T
|
|
4612
4631
|
}) => {
|
|
4613
|
-
const D = "N/A", v = (e == null ? void 0 : e.columns) || [],
|
|
4632
|
+
const D = "N/A", v = (e == null ? void 0 : e.columns) || [], A = (e == null ? void 0 : e.rows) || [], j = A.length > 0, Y = "--smp-dashList-color", F = "smp-layout", $ = "descr", M = "icon", U = "um", J = "value", K = i || "1em", ne = "18px", G = "--smp-dashList-columns", V = "--smp-dashList-fontSize", B = {
|
|
4614
4633
|
dash: (N = "1") => {
|
|
4615
|
-
const z = d(N), ee = ke[z], te = g(z, $), le = g(z, M),
|
|
4634
|
+
const z = d(N), ee = ke[z], te = g(z, $), le = g(z, M), ve = g(z, U), ue = g(z, J);
|
|
4616
4635
|
return {
|
|
4617
4636
|
container: ee,
|
|
4618
4637
|
descr: te,
|
|
4619
4638
|
icon: le,
|
|
4620
|
-
um:
|
|
4621
|
-
value:
|
|
4639
|
+
um: ve,
|
|
4640
|
+
value: ue
|
|
4622
4641
|
};
|
|
4623
4642
|
},
|
|
4624
4643
|
dashList: `${ke["smp-dash-list"]} ${Ie(a) ? ke["smp-dash-list-fill-space"] : ""}
|
|
@@ -4631,23 +4650,23 @@ const Be = (n, e, t) => ({
|
|
|
4631
4650
|
return "rgb(" + te[1] + "," + te[2] + "," + te[3] + ")";
|
|
4632
4651
|
}
|
|
4633
4652
|
return N;
|
|
4634
|
-
},
|
|
4653
|
+
}, E = (N) => {
|
|
4635
4654
|
if (!c) return N;
|
|
4636
4655
|
const [z, ee] = R(c).map(
|
|
4637
4656
|
(we) => parseInt(we || "0")
|
|
4638
4657
|
), te = "0,0" + (ee ? "." + "0".repeat(ee) : ""), le = L(N, te, "it");
|
|
4639
4658
|
if (!z) return le;
|
|
4640
|
-
const [
|
|
4641
|
-
return
|
|
4659
|
+
const [ve, ue] = le.split(",");
|
|
4660
|
+
return ve + (ue ? `,${ue}` : "");
|
|
4642
4661
|
}, R = (N) => N.includes(";") ? N.split(";") : [N], k = (N) => {
|
|
4643
4662
|
const z = (te) => {
|
|
4644
4663
|
var le;
|
|
4645
4664
|
if (te)
|
|
4646
4665
|
return (le = N == null ? void 0 : N.cells[te]) == null ? void 0 : le.obj.k;
|
|
4647
4666
|
}, ee = (te) => {
|
|
4648
|
-
var le,
|
|
4667
|
+
var le, ve;
|
|
4649
4668
|
if (!(v.length <= te))
|
|
4650
|
-
return (
|
|
4669
|
+
return (ve = (le = N == null ? void 0 : N.cells[v[te].name]) == null ? void 0 : le.obj) == null ? void 0 : ve.k;
|
|
4651
4670
|
};
|
|
4652
4671
|
return {
|
|
4653
4672
|
descr: t || z(r) || ee(2) || "",
|
|
@@ -4657,15 +4676,15 @@ const Be = (n, e, t) => ({
|
|
|
4657
4676
|
};
|
|
4658
4677
|
}, I = (N) => {
|
|
4659
4678
|
T == null || T(N);
|
|
4660
|
-
},
|
|
4679
|
+
}, C = (N, z) => {
|
|
4661
4680
|
(N.key === "Enter" || N.key === " ") && (N.preventDefault(), N.stopPropagation(), I(z));
|
|
4662
4681
|
}, W = ((N) => {
|
|
4663
4682
|
const z = B.dash(N);
|
|
4664
4683
|
return {
|
|
4665
4684
|
className: z,
|
|
4666
|
-
descr: (ee) => /* @__PURE__ */
|
|
4667
|
-
icon: (ee) => /* @__PURE__ */
|
|
4668
|
-
|
|
4685
|
+
descr: (ee) => /* @__PURE__ */ _.jsx("div", { className: z.descr, children: ee }, `${N}-${$}`),
|
|
4686
|
+
icon: (ee) => /* @__PURE__ */ _.jsx("div", { className: z.icon, children: /* @__PURE__ */ _.jsx(
|
|
4687
|
+
ye,
|
|
4669
4688
|
{
|
|
4670
4689
|
color: f,
|
|
4671
4690
|
height: ne,
|
|
@@ -4673,37 +4692,37 @@ const Be = (n, e, t) => ({
|
|
|
4673
4692
|
width: ne
|
|
4674
4693
|
}
|
|
4675
4694
|
) }, `${N}-${M}`),
|
|
4676
|
-
um: (ee) => /* @__PURE__ */
|
|
4677
|
-
value: (ee) => /* @__PURE__ */
|
|
4695
|
+
um: (ee) => /* @__PURE__ */ _.jsx("div", { className: z.um, children: ee }, `${N}-${U}`),
|
|
4696
|
+
value: (ee) => /* @__PURE__ */ _.jsx("div", { className: z.value, children: ee }, `${N}-${J}`)
|
|
4678
4697
|
};
|
|
4679
4698
|
})(b), re = (N) => {
|
|
4680
|
-
const { descr: z, icon: ee, um: te, value: le } = k(N),
|
|
4699
|
+
const { descr: z, icon: ee, um: te, value: le } = k(N), ve = {
|
|
4681
4700
|
[x($)]: O(s),
|
|
4682
4701
|
[x(U)]: O(m),
|
|
4683
4702
|
[x(J)]: O(w)
|
|
4684
|
-
},
|
|
4703
|
+
}, ue = [], we = E(le);
|
|
4685
4704
|
switch (b) {
|
|
4686
4705
|
case "2":
|
|
4687
|
-
ee &&
|
|
4706
|
+
ee && ue.push(W.icon(ee)), ue.push(W.descr(z)), ue.push(
|
|
4688
4707
|
W.value(te ? we + " " + te : we)
|
|
4689
4708
|
);
|
|
4690
4709
|
break;
|
|
4691
4710
|
default:
|
|
4692
4711
|
case "1":
|
|
4693
|
-
|
|
4712
|
+
ue.push(W.descr(z)), ue.push(
|
|
4694
4713
|
W.value(te ? we + " " + te : we)
|
|
4695
4714
|
);
|
|
4696
4715
|
}
|
|
4697
|
-
return /* @__PURE__ */
|
|
4716
|
+
return /* @__PURE__ */ _.jsx(
|
|
4698
4717
|
"div",
|
|
4699
4718
|
{
|
|
4700
4719
|
className: W.className.container,
|
|
4701
4720
|
role: "button",
|
|
4702
|
-
style:
|
|
4721
|
+
style: ve,
|
|
4703
4722
|
tabIndex: 0,
|
|
4704
4723
|
onClick: () => I(N),
|
|
4705
|
-
onKeyDown: (Dr) =>
|
|
4706
|
-
children:
|
|
4724
|
+
onKeyDown: (Dr) => C(Dr, N),
|
|
4725
|
+
children: ue
|
|
4707
4726
|
},
|
|
4708
4727
|
N.id
|
|
4709
4728
|
);
|
|
@@ -4711,7 +4730,7 @@ const Be = (n, e, t) => ({
|
|
|
4711
4730
|
[G]: String(n),
|
|
4712
4731
|
[V]: K
|
|
4713
4732
|
};
|
|
4714
|
-
return /* @__PURE__ */
|
|
4733
|
+
return /* @__PURE__ */ _.jsx("div", { className: B.dashList, style: P, children: j ? A.map((N) => re(N)) : D });
|
|
4715
4734
|
}, dr = {
|
|
4716
4735
|
"smp-field-container": "_smp-field-container_2ay2r_1",
|
|
4717
4736
|
"smp-field-position-Left": "_smp-field-position-Left_2ay2r_6",
|
|
@@ -4743,8 +4762,8 @@ const Be = (n, e, t) => ({
|
|
|
4743
4762
|
Ie(t) || o == null || o(f);
|
|
4744
4763
|
};
|
|
4745
4764
|
if (f)
|
|
4746
|
-
return /* @__PURE__ */
|
|
4747
|
-
/* @__PURE__ */
|
|
4765
|
+
return /* @__PURE__ */ _.jsxs("div", { className: p.container, children: [
|
|
4766
|
+
/* @__PURE__ */ _.jsx(
|
|
4748
4767
|
"div",
|
|
4749
4768
|
{
|
|
4750
4769
|
style: {
|
|
@@ -4753,7 +4772,7 @@ const Be = (n, e, t) => ({
|
|
|
4753
4772
|
gap: "8px",
|
|
4754
4773
|
font: "var(--smp-fontLabel-base)"
|
|
4755
4774
|
},
|
|
4756
|
-
children: /* @__PURE__ */
|
|
4775
|
+
children: /* @__PURE__ */ _.jsx(
|
|
4757
4776
|
Or,
|
|
4758
4777
|
{
|
|
4759
4778
|
...f,
|
|
@@ -4768,7 +4787,7 @@ const Be = (n, e, t) => ({
|
|
|
4768
4787
|
}
|
|
4769
4788
|
),
|
|
4770
4789
|
Ie(t) && //TODO: translation
|
|
4771
|
-
/* @__PURE__ */
|
|
4790
|
+
/* @__PURE__ */ _.jsx(et, { bindValue: "Confirm", onClick: () => l == null ? void 0 : l(f) })
|
|
4772
4791
|
] });
|
|
4773
4792
|
};
|
|
4774
4793
|
export {
|
|
@@ -4780,7 +4799,7 @@ export {
|
|
|
4780
4799
|
fs as DashList,
|
|
4781
4800
|
Zn as DatePicker,
|
|
4782
4801
|
ds as Field,
|
|
4783
|
-
|
|
4802
|
+
ye as Icon,
|
|
4784
4803
|
ts as Password,
|
|
4785
4804
|
Re as Textfield,
|
|
4786
4805
|
cs as configurePaths
|