@sme.up/ketchup2 2.0.0-SNAPSHOT-20250611105124 → 2.0.0-SNAPSHOT-20250611141848
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/basic-components/button/button-types.d.ts +7 -0
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button/button.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +9 -9
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +497 -490
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -35,7 +35,7 @@ function Rr() {
|
|
|
35
35
|
}
|
|
36
36
|
return Pe.Fragment = e, Pe.jsx = t, Pe.jsxs = t, Pe;
|
|
37
37
|
}
|
|
38
|
-
var
|
|
38
|
+
var Ae = {};
|
|
39
39
|
/**
|
|
40
40
|
* @license React
|
|
41
41
|
* react-jsx-runtime.development.js
|
|
@@ -56,7 +56,7 @@ function Dr() {
|
|
|
56
56
|
switch (p) {
|
|
57
57
|
case y:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case w:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case b:
|
|
62
62
|
return "StrictMode";
|
|
@@ -75,9 +75,9 @@ function Dr() {
|
|
|
75
75
|
return "Portal";
|
|
76
76
|
case P:
|
|
77
77
|
return (p.displayName || "Context") + ".Provider";
|
|
78
|
-
case
|
|
78
|
+
case T:
|
|
79
79
|
return (p._context.displayName || "Context") + ".Consumer";
|
|
80
|
-
case
|
|
80
|
+
case S:
|
|
81
81
|
var m = p.render;
|
|
82
82
|
return p = p.displayName, p || (p = m.displayName || m.name || "", p = p !== "" ? "ForwardRef(" + p + ")" : "ForwardRef"), p;
|
|
83
83
|
case C:
|
|
@@ -154,13 +154,13 @@ function Dr() {
|
|
|
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
|
)), p = this.props.ref, p !== void 0 ? p : null;
|
|
156
156
|
}
|
|
157
|
-
function l(p, m, E, R,
|
|
158
|
-
return E =
|
|
157
|
+
function l(p, m, E, R, O, A, N, M) {
|
|
158
|
+
return E = A.ref, p = {
|
|
159
159
|
$$typeof: h,
|
|
160
160
|
type: p,
|
|
161
161
|
key: m,
|
|
162
|
-
props:
|
|
163
|
-
_owner:
|
|
162
|
+
props: A,
|
|
163
|
+
_owner: O
|
|
164
164
|
}, (E !== void 0 ? E : null) !== null ? Object.defineProperty(p, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
get: c
|
|
@@ -186,7 +186,7 @@ function Dr() {
|
|
|
186
186
|
value: M
|
|
187
187
|
}), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
|
|
188
188
|
}
|
|
189
|
-
function f(p, m, E, R,
|
|
189
|
+
function f(p, m, E, R, O, A, N, M) {
|
|
190
190
|
var L = m.children;
|
|
191
191
|
if (L !== void 0)
|
|
192
192
|
if (R)
|
|
@@ -228,8 +228,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
228
228
|
), l(
|
|
229
229
|
p,
|
|
230
230
|
L,
|
|
231
|
-
|
|
232
|
-
|
|
231
|
+
A,
|
|
232
|
+
O,
|
|
233
233
|
s(),
|
|
234
234
|
E,
|
|
235
235
|
N,
|
|
@@ -239,7 +239,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
239
239
|
function u(p) {
|
|
240
240
|
typeof p == "object" && p !== null && p.$$typeof === h && p._store && (p._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var d = ar, h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"),
|
|
242
|
+
var d = ar, h = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), P = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), _ = Symbol.for("react.activity"), j = Symbol.for("react.client.reference"), k = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, B = Array.isArray, q = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
d = {
|
|
@@ -251,38 +251,38 @@ React keys must be passed directly to JSX without using spread:
|
|
|
251
251
|
d,
|
|
252
252
|
a
|
|
253
253
|
)(), z = q(r(a)), I = {};
|
|
254
|
-
|
|
255
|
-
var
|
|
254
|
+
Ae.Fragment = y, Ae.jsx = function(p, m, E, R, O) {
|
|
255
|
+
var A = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return f(
|
|
257
257
|
p,
|
|
258
258
|
m,
|
|
259
259
|
E,
|
|
260
260
|
!1,
|
|
261
261
|
R,
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
262
|
+
O,
|
|
263
|
+
A ? Error("react-stack-top-frame") : U,
|
|
264
|
+
A ? q(r(p)) : z
|
|
265
265
|
);
|
|
266
|
-
},
|
|
267
|
-
var
|
|
266
|
+
}, Ae.jsxs = function(p, m, E, R, O) {
|
|
267
|
+
var A = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return f(
|
|
269
269
|
p,
|
|
270
270
|
m,
|
|
271
271
|
E,
|
|
272
272
|
!0,
|
|
273
273
|
R,
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
O,
|
|
275
|
+
A ? Error("react-stack-top-frame") : U,
|
|
276
|
+
A ? q(r(p)) : z
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
|
-
}()),
|
|
279
|
+
}()), Ae;
|
|
280
280
|
}
|
|
281
281
|
var xt;
|
|
282
282
|
function Pr() {
|
|
283
283
|
return xt || (xt = 1, process.env.NODE_ENV === "production" ? Ne.exports = Rr() : Ne.exports = Dr()), Ne.exports;
|
|
284
284
|
}
|
|
285
|
-
var
|
|
285
|
+
var x = Pr();
|
|
286
286
|
const ie = {
|
|
287
287
|
AUTOCOMPLETE: "ACP",
|
|
288
288
|
BUTTON_LIST: "BTL",
|
|
@@ -297,7 +297,7 @@ const ie = {
|
|
|
297
297
|
SPOTLIGHT: "SPL",
|
|
298
298
|
TEXT_FIELD: "ITX",
|
|
299
299
|
PASSWORD: "PWD"
|
|
300
|
-
},
|
|
300
|
+
}, Ar = (n) => n.t == "D8", $r = (n) => {
|
|
301
301
|
if (n) {
|
|
302
302
|
const e = n.split(";");
|
|
303
303
|
if (e.length == 3)
|
|
@@ -523,12 +523,12 @@ const Ke = (n, e, t) => {
|
|
|
523
523
|
const r = {
|
|
524
524
|
container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${t ? `smp-helper-text-${t}` : ""}`
|
|
525
525
|
};
|
|
526
|
-
return /* @__PURE__ */
|
|
526
|
+
return /* @__PURE__ */ x.jsx("span", { className: r.container, children: n });
|
|
527
527
|
}, ir = ({ label: n, disabled: e }) => {
|
|
528
528
|
const t = {
|
|
529
529
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
530
530
|
};
|
|
531
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ x.jsx("span", { className: t.container, children: n });
|
|
532
532
|
};
|
|
533
533
|
function Nr(n, e) {
|
|
534
534
|
if (n == null) return {};
|
|
@@ -581,8 +581,8 @@ function Mr() {
|
|
|
581
581
|
throw new TypeError("invalid type");
|
|
582
582
|
var g = h;
|
|
583
583
|
if (d && typeof d == "object")
|
|
584
|
-
for (var y, b = Object.keys(d).sort(),
|
|
585
|
-
if (y = b[
|
|
584
|
+
for (var y, b = Object.keys(d).sort(), w = 0; w < b.length; w++) {
|
|
585
|
+
if (y = b[w], !t.test(y))
|
|
586
586
|
throw new TypeError("invalid parameter name");
|
|
587
587
|
g += "; " + y + "=" + l(d[y]);
|
|
588
588
|
}
|
|
@@ -599,11 +599,11 @@ function Mr() {
|
|
|
599
599
|
throw new TypeError("invalid media type");
|
|
600
600
|
var y = new f(g.toLowerCase());
|
|
601
601
|
if (h !== -1) {
|
|
602
|
-
var b,
|
|
603
|
-
for (n.lastIndex = h;
|
|
604
|
-
if (
|
|
602
|
+
var b, w, T;
|
|
603
|
+
for (n.lastIndex = h; w = n.exec(d); ) {
|
|
604
|
+
if (w.index !== h)
|
|
605
605
|
throw new TypeError("invalid parameter format");
|
|
606
|
-
h +=
|
|
606
|
+
h += w[0].length, b = w[1].toLowerCase(), T = w[2], T.charCodeAt(0) === 34 && (T = T.slice(1, -1), T.indexOf("\\") !== -1 && (T = T.replace(r, "$1"))), y.parameters[b] = T;
|
|
607
607
|
}
|
|
608
608
|
if (h !== d.length)
|
|
609
609
|
throw new TypeError("invalid parameter format");
|
|
@@ -722,12 +722,12 @@ var Fr = Mr(), Oe = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
722
722
|
y && u.setAttribute("height", y);
|
|
723
723
|
var b = Array.from(new Set(et(et(et([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
724
724
|
u.setAttribute("class", b);
|
|
725
|
-
var
|
|
726
|
-
|
|
727
|
-
var
|
|
725
|
+
var w = e.getAttribute("style");
|
|
726
|
+
w && u.setAttribute("style", w), u.setAttribute("data-src", c);
|
|
727
|
+
var T = [].filter.call(e.attributes, function(z) {
|
|
728
728
|
return /^data-\w[\w-]*$/.test(z.name);
|
|
729
729
|
});
|
|
730
|
-
if (Array.prototype.forEach.call(
|
|
730
|
+
if (Array.prototype.forEach.call(T, function(z) {
|
|
731
731
|
z.name && z.value && u.setAttribute(z.name, z.value);
|
|
732
732
|
}), r) {
|
|
733
733
|
var P = {
|
|
@@ -741,24 +741,24 @@ var Fr = Mr(), Oe = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
741
741
|
path: [],
|
|
742
742
|
pattern: ["fill", "stroke"],
|
|
743
743
|
radialGradient: ["fill", "stroke"]
|
|
744
|
-
},
|
|
744
|
+
}, S, v, D, C, Y;
|
|
745
745
|
Object.keys(P).forEach(function(z) {
|
|
746
|
-
|
|
747
|
-
for (var I = function(R,
|
|
746
|
+
S = z, D = P[z], v = u.querySelectorAll(S + "[id]");
|
|
747
|
+
for (var I = function(R, O) {
|
|
748
748
|
C = v[R].id, Y = C + "-" + Hr();
|
|
749
|
-
var
|
|
749
|
+
var A;
|
|
750
750
|
Array.prototype.forEach.call(D, function(F) {
|
|
751
|
-
|
|
752
|
-
for (var G = 0, te =
|
|
753
|
-
var re =
|
|
754
|
-
re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) ||
|
|
751
|
+
A = u.querySelectorAll("[" + F + '*="' + C + '"]');
|
|
752
|
+
for (var G = 0, te = A.length; G < te; G++) {
|
|
753
|
+
var re = A[G].getAttribute(F);
|
|
754
|
+
re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[G].setAttribute(F, "url(#" + Y + ")");
|
|
755
755
|
}
|
|
756
756
|
});
|
|
757
757
|
for (var N = u.querySelectorAll("[*|href]"), M = [], L = 0, K = N.length; L < K; L++) {
|
|
758
758
|
var W = N[L].getAttributeNS(tt, "href");
|
|
759
759
|
W && W.toString() === "#" + v[R].id && M.push(N[L]);
|
|
760
760
|
}
|
|
761
|
-
for (var ne = 0,
|
|
761
|
+
for (var ne = 0, $ = M.length; ne < $; ne++)
|
|
762
762
|
M[ne].setAttributeNS(tt, "href", "#" + Y);
|
|
763
763
|
v[R].id = Y;
|
|
764
764
|
}, p = 0, m = v.length; p < m; p++)
|
|
@@ -786,13 +786,13 @@ var Fr = Mr(), Oe = /* @__PURE__ */ new Map(), or = function(e) {
|
|
|
786
786
|
var r = t === void 0 ? {} : t, s = r.afterAll, a = s === void 0 ? function() {
|
|
787
787
|
} : s, o = r.afterEach, i = o === void 0 ? function() {
|
|
788
788
|
} : o, c = r.beforeEach, l = c === void 0 ? function() {
|
|
789
|
-
} : c, f = r.cacheRequests, u = f === void 0 ? !0 : f, d = r.evalScripts, h = d === void 0 ? "never" : d, g = r.httpRequestWithCredentials, y = g === void 0 ? !1 : g, b = r.renumerateIRIElements,
|
|
789
|
+
} : c, f = r.cacheRequests, u = f === void 0 ? !0 : f, d = r.evalScripts, h = d === void 0 ? "never" : d, g = r.httpRequestWithCredentials, y = g === void 0 ? !1 : g, b = r.renumerateIRIElements, w = b === void 0 ? !0 : b;
|
|
790
790
|
if (e && "length" in e)
|
|
791
|
-
for (var
|
|
792
|
-
Rt(e[P], h,
|
|
793
|
-
i(v, D), e && "length" in e && e.length === ++
|
|
791
|
+
for (var T = 0, P = 0, S = e.length; P < S; P++)
|
|
792
|
+
Rt(e[P], h, w, u, y, l, function(v, D) {
|
|
793
|
+
i(v, D), e && "length" in e && e.length === ++T && a(T);
|
|
794
794
|
});
|
|
795
|
-
else e ? Rt(e, h,
|
|
795
|
+
else e ? Rt(e, h, w, u, y, l, function(v, D) {
|
|
796
796
|
i(v, D), a(1), e = null;
|
|
797
797
|
}) : a(0);
|
|
798
798
|
}, Fe = { exports: {} }, Ve = { exports: {} }, Q = {};
|
|
@@ -808,7 +808,7 @@ var Dt;
|
|
|
808
808
|
function Kr() {
|
|
809
809
|
if (Dt) return Q;
|
|
810
810
|
Dt = 1;
|
|
811
|
-
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, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, l = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, d = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117,
|
|
811
|
+
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, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, l = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, d = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, T = n ? Symbol.for("react.scope") : 60119;
|
|
812
812
|
function P(v) {
|
|
813
813
|
if (typeof v == "object" && v !== null) {
|
|
814
814
|
var D = v.$$typeof;
|
|
@@ -839,12 +839,12 @@ function Kr() {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function S(v) {
|
|
843
843
|
return P(v) === l;
|
|
844
844
|
}
|
|
845
845
|
return Q.AsyncMode = c, Q.ConcurrentMode = l, Q.ContextConsumer = i, Q.ContextProvider = o, Q.Element = e, Q.ForwardRef = f, Q.Fragment = r, Q.Lazy = g, Q.Memo = h, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(v) {
|
|
846
|
-
return
|
|
847
|
-
}, Q.isConcurrentMode =
|
|
846
|
+
return S(v) || P(v) === c;
|
|
847
|
+
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(v) {
|
|
848
848
|
return P(v) === i;
|
|
849
849
|
}, Q.isContextProvider = function(v) {
|
|
850
850
|
return P(v) === o;
|
|
@@ -867,7 +867,7 @@ function Kr() {
|
|
|
867
867
|
}, Q.isSuspense = function(v) {
|
|
868
868
|
return P(v) === u;
|
|
869
869
|
}, Q.isValidElementType = function(v) {
|
|
870
|
-
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === a || v === s || v === u || v === d || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === o || v.$$typeof === i || v.$$typeof === f || v.$$typeof === b || v.$$typeof ===
|
|
870
|
+
return typeof v == "string" || typeof v == "function" || v === r || v === l || v === a || v === s || v === u || v === d || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === o || v.$$typeof === i || v.$$typeof === f || v.$$typeof === b || v.$$typeof === w || v.$$typeof === T || v.$$typeof === y);
|
|
871
871
|
}, Q.typeOf = P, Q;
|
|
872
872
|
}
|
|
873
873
|
var ee = {};
|
|
@@ -882,17 +882,17 @@ var ee = {};
|
|
|
882
882
|
var Pt;
|
|
883
883
|
function zr() {
|
|
884
884
|
return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
885
|
-
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, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, l = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, d = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117,
|
|
886
|
-
function P(
|
|
887
|
-
return typeof
|
|
888
|
-
|
|
889
|
-
}
|
|
890
|
-
function
|
|
891
|
-
if (typeof
|
|
892
|
-
var F =
|
|
885
|
+
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, o = n ? Symbol.for("react.provider") : 60109, i = n ? Symbol.for("react.context") : 60110, c = n ? Symbol.for("react.async_mode") : 60111, l = n ? Symbol.for("react.concurrent_mode") : 60111, f = n ? Symbol.for("react.forward_ref") : 60112, u = n ? Symbol.for("react.suspense") : 60113, d = n ? Symbol.for("react.suspense_list") : 60120, h = n ? Symbol.for("react.memo") : 60115, g = n ? Symbol.for("react.lazy") : 60116, y = n ? Symbol.for("react.block") : 60121, b = n ? Symbol.for("react.fundamental") : 60117, w = n ? Symbol.for("react.responder") : 60118, T = n ? Symbol.for("react.scope") : 60119;
|
|
886
|
+
function P($) {
|
|
887
|
+
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
888
|
+
$ === r || $ === l || $ === a || $ === s || $ === u || $ === d || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === h || $.$$typeof === o || $.$$typeof === i || $.$$typeof === f || $.$$typeof === b || $.$$typeof === w || $.$$typeof === T || $.$$typeof === y);
|
|
889
|
+
}
|
|
890
|
+
function S($) {
|
|
891
|
+
if (typeof $ == "object" && $ !== null) {
|
|
892
|
+
var F = $.$$typeof;
|
|
893
893
|
switch (F) {
|
|
894
894
|
case e:
|
|
895
|
-
var G =
|
|
895
|
+
var G = $.type;
|
|
896
896
|
switch (G) {
|
|
897
897
|
case c:
|
|
898
898
|
case l:
|
|
@@ -920,61 +920,61 @@ function zr() {
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
var v = c, D = l, C = i, Y = o, _ = e, j = f, k = r, V = g, B = h, q = t, Z = a, J = s, U = u, z = !1;
|
|
923
|
-
function I(
|
|
924
|
-
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(
|
|
923
|
+
function I($) {
|
|
924
|
+
return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p($) || S($) === c;
|
|
925
925
|
}
|
|
926
|
-
function p(
|
|
927
|
-
return
|
|
926
|
+
function p($) {
|
|
927
|
+
return S($) === l;
|
|
928
928
|
}
|
|
929
|
-
function m(
|
|
930
|
-
return
|
|
929
|
+
function m($) {
|
|
930
|
+
return S($) === i;
|
|
931
931
|
}
|
|
932
|
-
function E(
|
|
933
|
-
return
|
|
932
|
+
function E($) {
|
|
933
|
+
return S($) === o;
|
|
934
934
|
}
|
|
935
|
-
function R(
|
|
936
|
-
return typeof
|
|
935
|
+
function R($) {
|
|
936
|
+
return typeof $ == "object" && $ !== null && $.$$typeof === e;
|
|
937
937
|
}
|
|
938
|
-
function
|
|
939
|
-
return
|
|
938
|
+
function O($) {
|
|
939
|
+
return S($) === f;
|
|
940
940
|
}
|
|
941
|
-
function $
|
|
942
|
-
return
|
|
941
|
+
function A($) {
|
|
942
|
+
return S($) === r;
|
|
943
943
|
}
|
|
944
|
-
function N(
|
|
945
|
-
return
|
|
944
|
+
function N($) {
|
|
945
|
+
return S($) === g;
|
|
946
946
|
}
|
|
947
|
-
function M(
|
|
948
|
-
return
|
|
947
|
+
function M($) {
|
|
948
|
+
return S($) === h;
|
|
949
949
|
}
|
|
950
|
-
function L(
|
|
951
|
-
return
|
|
950
|
+
function L($) {
|
|
951
|
+
return S($) === t;
|
|
952
952
|
}
|
|
953
|
-
function K(
|
|
954
|
-
return
|
|
953
|
+
function K($) {
|
|
954
|
+
return S($) === a;
|
|
955
955
|
}
|
|
956
|
-
function W(
|
|
957
|
-
return
|
|
956
|
+
function W($) {
|
|
957
|
+
return S($) === s;
|
|
958
958
|
}
|
|
959
|
-
function ne(
|
|
960
|
-
return
|
|
959
|
+
function ne($) {
|
|
960
|
+
return S($) === u;
|
|
961
961
|
}
|
|
962
|
-
ee.AsyncMode = v, ee.ConcurrentMode = D, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = _, ee.ForwardRef = j, ee.Fragment = k, ee.Lazy = V, ee.Memo = B, ee.Portal = q, ee.Profiler = Z, ee.StrictMode = J, ee.Suspense = U, ee.isAsyncMode = I, ee.isConcurrentMode = p, ee.isContextConsumer = m, ee.isContextProvider = E, ee.isElement = R, ee.isForwardRef =
|
|
962
|
+
ee.AsyncMode = v, ee.ConcurrentMode = D, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = _, ee.ForwardRef = j, ee.Fragment = k, ee.Lazy = V, ee.Memo = B, ee.Portal = q, ee.Profiler = Z, ee.StrictMode = J, ee.Suspense = U, ee.isAsyncMode = I, ee.isConcurrentMode = p, ee.isContextConsumer = m, ee.isContextProvider = E, ee.isElement = R, ee.isForwardRef = O, ee.isFragment = A, ee.isLazy = N, ee.isMemo = M, ee.isPortal = L, ee.isProfiler = K, ee.isStrictMode = W, ee.isSuspense = ne, ee.isValidElementType = P, ee.typeOf = S;
|
|
963
963
|
}()), ee;
|
|
964
964
|
}
|
|
965
|
-
var
|
|
965
|
+
var At;
|
|
966
966
|
function cr() {
|
|
967
|
-
return
|
|
967
|
+
return At || (At = 1, process.env.NODE_ENV === "production" ? Ve.exports = Kr() : Ve.exports = zr()), Ve.exports;
|
|
968
968
|
}
|
|
969
969
|
/*
|
|
970
970
|
object-assign
|
|
971
971
|
(c) Sindre Sorhus
|
|
972
972
|
@license MIT
|
|
973
973
|
*/
|
|
974
|
-
var rt,
|
|
974
|
+
var rt, $t;
|
|
975
975
|
function Gr() {
|
|
976
|
-
if (
|
|
977
|
-
|
|
976
|
+
if ($t) return rt;
|
|
977
|
+
$t = 1;
|
|
978
978
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
979
979
|
function r(a) {
|
|
980
980
|
if (a == null)
|
|
@@ -1102,17 +1102,17 @@ function Xr() {
|
|
|
1102
1102
|
return m;
|
|
1103
1103
|
}
|
|
1104
1104
|
var d = "<<anonymous>>", h = {
|
|
1105
|
-
array:
|
|
1106
|
-
bigint:
|
|
1107
|
-
bool:
|
|
1108
|
-
func:
|
|
1109
|
-
number:
|
|
1110
|
-
object:
|
|
1111
|
-
string:
|
|
1112
|
-
symbol:
|
|
1113
|
-
any:
|
|
1105
|
+
array: w("array"),
|
|
1106
|
+
bigint: w("bigint"),
|
|
1107
|
+
bool: w("boolean"),
|
|
1108
|
+
func: w("function"),
|
|
1109
|
+
number: w("number"),
|
|
1110
|
+
object: w("object"),
|
|
1111
|
+
string: w("string"),
|
|
1112
|
+
symbol: w("symbol"),
|
|
1113
|
+
any: T(),
|
|
1114
1114
|
arrayOf: P,
|
|
1115
|
-
element:
|
|
1115
|
+
element: S(),
|
|
1116
1116
|
elementType: v(),
|
|
1117
1117
|
instanceOf: D,
|
|
1118
1118
|
node: j(),
|
|
@@ -1132,13 +1132,13 @@ function Xr() {
|
|
|
1132
1132
|
function b(p) {
|
|
1133
1133
|
if (process.env.NODE_ENV !== "production")
|
|
1134
1134
|
var m = {}, E = 0;
|
|
1135
|
-
function R(
|
|
1135
|
+
function R(A, N, M, L, K, W, ne) {
|
|
1136
1136
|
if (L = L || d, W = W || M, ne !== t) {
|
|
1137
1137
|
if (c) {
|
|
1138
|
-
var
|
|
1138
|
+
var $ = new Error(
|
|
1139
1139
|
"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"
|
|
1140
1140
|
);
|
|
1141
|
-
throw
|
|
1141
|
+
throw $.name = "Invariant Violation", $;
|
|
1142
1142
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1143
1143
|
var F = L + ":" + M;
|
|
1144
1144
|
!m[F] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
@@ -1147,18 +1147,18 @@ function Xr() {
|
|
|
1147
1147
|
), m[F] = !0, E++);
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
|
-
return N[M] == null ?
|
|
1150
|
+
return N[M] == null ? A ? N[M] === null ? new y("The " + K + " `" + W + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new y("The " + K + " `" + W + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : p(N, M, L, K, W);
|
|
1151
1151
|
}
|
|
1152
|
-
var
|
|
1153
|
-
return
|
|
1152
|
+
var O = R.bind(null, !1);
|
|
1153
|
+
return O.isRequired = R.bind(null, !0), O;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
function m(E, R,
|
|
1155
|
+
function w(p) {
|
|
1156
|
+
function m(E, R, O, A, N, M) {
|
|
1157
1157
|
var L = E[R], K = J(L);
|
|
1158
1158
|
if (K !== p) {
|
|
1159
1159
|
var W = U(L);
|
|
1160
1160
|
return new y(
|
|
1161
|
-
"Invalid " +
|
|
1161
|
+
"Invalid " + A + " `" + N + "` of type " + ("`" + W + "` supplied to `" + O + "`, expected ") + ("`" + p + "`."),
|
|
1162
1162
|
{ expectedType: p }
|
|
1163
1163
|
);
|
|
1164
1164
|
}
|
|
@@ -1166,20 +1166,20 @@ function Xr() {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
return b(m);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function T() {
|
|
1170
1170
|
return b(o);
|
|
1171
1171
|
}
|
|
1172
1172
|
function P(p) {
|
|
1173
|
-
function m(E, R,
|
|
1173
|
+
function m(E, R, O, A, N) {
|
|
1174
1174
|
if (typeof p != "function")
|
|
1175
|
-
return new y("Property `" + N + "` of component `" +
|
|
1175
|
+
return new y("Property `" + N + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
1176
1176
|
var M = E[R];
|
|
1177
1177
|
if (!Array.isArray(M)) {
|
|
1178
1178
|
var L = J(M);
|
|
1179
|
-
return new y("Invalid " +
|
|
1179
|
+
return new y("Invalid " + A + " `" + N + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected an array."));
|
|
1180
1180
|
}
|
|
1181
1181
|
for (var K = 0; K < M.length; K++) {
|
|
1182
|
-
var W = p(M, K,
|
|
1182
|
+
var W = p(M, K, O, A, N + "[" + K + "]", t);
|
|
1183
1183
|
if (W instanceof Error)
|
|
1184
1184
|
return W;
|
|
1185
1185
|
}
|
|
@@ -1187,33 +1187,33 @@ function Xr() {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
return b(m);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1191
|
-
function p(m, E, R,
|
|
1190
|
+
function S() {
|
|
1191
|
+
function p(m, E, R, O, A) {
|
|
1192
1192
|
var N = m[E];
|
|
1193
1193
|
if (!i(N)) {
|
|
1194
1194
|
var M = J(N);
|
|
1195
|
-
return new y("Invalid " +
|
|
1195
|
+
return new y("Invalid " + O + " `" + A + "` of type " + ("`" + M + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
1196
1196
|
}
|
|
1197
1197
|
return null;
|
|
1198
1198
|
}
|
|
1199
1199
|
return b(p);
|
|
1200
1200
|
}
|
|
1201
1201
|
function v() {
|
|
1202
|
-
function p(m, E, R,
|
|
1202
|
+
function p(m, E, R, O, A) {
|
|
1203
1203
|
var N = m[E];
|
|
1204
1204
|
if (!n.isValidElementType(N)) {
|
|
1205
1205
|
var M = J(N);
|
|
1206
|
-
return new y("Invalid " +
|
|
1206
|
+
return new y("Invalid " + O + " `" + A + "` of type " + ("`" + M + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
1207
1207
|
}
|
|
1208
1208
|
return null;
|
|
1209
1209
|
}
|
|
1210
1210
|
return b(p);
|
|
1211
1211
|
}
|
|
1212
1212
|
function D(p) {
|
|
1213
|
-
function m(E, R,
|
|
1213
|
+
function m(E, R, O, A, N) {
|
|
1214
1214
|
if (!(E[R] instanceof p)) {
|
|
1215
1215
|
var M = p.name || d, L = I(E[R]);
|
|
1216
|
-
return new y("Invalid " +
|
|
1216
|
+
return new y("Invalid " + A + " `" + N + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected ") + ("instance of `" + M + "`."));
|
|
1217
1217
|
}
|
|
1218
1218
|
return null;
|
|
1219
1219
|
}
|
|
@@ -1224,28 +1224,28 @@ function Xr() {
|
|
|
1224
1224
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1225
1225
|
"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])."
|
|
1226
1226
|
) : a("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1227
|
-
function m(E, R,
|
|
1227
|
+
function m(E, R, O, A, N) {
|
|
1228
1228
|
for (var M = E[R], L = 0; L < p.length; L++)
|
|
1229
1229
|
if (g(M, p[L]))
|
|
1230
1230
|
return null;
|
|
1231
|
-
var K = JSON.stringify(p, function(ne,
|
|
1232
|
-
var F = U(
|
|
1233
|
-
return F === "symbol" ? String(
|
|
1231
|
+
var K = JSON.stringify(p, function(ne, $) {
|
|
1232
|
+
var F = U($);
|
|
1233
|
+
return F === "symbol" ? String($) : $;
|
|
1234
1234
|
});
|
|
1235
|
-
return new y("Invalid " +
|
|
1235
|
+
return new y("Invalid " + A + " `" + N + "` of value `" + String(M) + "` " + ("supplied to `" + O + "`, expected one of " + K + "."));
|
|
1236
1236
|
}
|
|
1237
1237
|
return b(m);
|
|
1238
1238
|
}
|
|
1239
1239
|
function Y(p) {
|
|
1240
|
-
function m(E, R,
|
|
1240
|
+
function m(E, R, O, A, N) {
|
|
1241
1241
|
if (typeof p != "function")
|
|
1242
|
-
return new y("Property `" + N + "` of component `" +
|
|
1242
|
+
return new y("Property `" + N + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
1243
1243
|
var M = E[R], L = J(M);
|
|
1244
1244
|
if (L !== "object")
|
|
1245
|
-
return new y("Invalid " +
|
|
1245
|
+
return new y("Invalid " + A + " `" + N + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected an object."));
|
|
1246
1246
|
for (var K in M)
|
|
1247
1247
|
if (r(M, K)) {
|
|
1248
|
-
var W = p(M, K,
|
|
1248
|
+
var W = p(M, K, O, A, N + "." + K, t);
|
|
1249
1249
|
if (W instanceof Error)
|
|
1250
1250
|
return W;
|
|
1251
1251
|
}
|
|
@@ -1263,12 +1263,12 @@ function Xr() {
|
|
|
1263
1263
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + z(E) + " at index " + m + "."
|
|
1264
1264
|
), o;
|
|
1265
1265
|
}
|
|
1266
|
-
function R(
|
|
1266
|
+
function R(O, A, N, M, L) {
|
|
1267
1267
|
for (var K = [], W = 0; W < p.length; W++) {
|
|
1268
|
-
var ne = p[W],
|
|
1269
|
-
if (
|
|
1268
|
+
var ne = p[W], $ = ne(O, A, N, M, L, t);
|
|
1269
|
+
if ($ == null)
|
|
1270
1270
|
return null;
|
|
1271
|
-
|
|
1271
|
+
$.data && r($.data, "expectedType") && K.push($.data.expectedType);
|
|
1272
1272
|
}
|
|
1273
1273
|
var F = K.length > 0 ? ", expected one of type [" + K.join(", ") + "]" : "";
|
|
1274
1274
|
return new y("Invalid " + M + " `" + L + "` supplied to " + ("`" + N + "`" + F + "."));
|
|
@@ -1276,26 +1276,26 @@ function Xr() {
|
|
|
1276
1276
|
return b(R);
|
|
1277
1277
|
}
|
|
1278
1278
|
function j() {
|
|
1279
|
-
function p(m, E, R,
|
|
1280
|
-
return q(m[E]) ? null : new y("Invalid " +
|
|
1279
|
+
function p(m, E, R, O, A) {
|
|
1280
|
+
return q(m[E]) ? null : new y("Invalid " + O + " `" + A + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
1281
1281
|
}
|
|
1282
1282
|
return b(p);
|
|
1283
1283
|
}
|
|
1284
|
-
function k(p, m, E, R,
|
|
1284
|
+
function k(p, m, E, R, O) {
|
|
1285
1285
|
return new y(
|
|
1286
|
-
(p || "React class") + ": " + m + " type `" + E + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1286
|
+
(p || "React class") + ": " + m + " type `" + E + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
1287
1287
|
);
|
|
1288
1288
|
}
|
|
1289
1289
|
function V(p) {
|
|
1290
|
-
function m(E, R,
|
|
1290
|
+
function m(E, R, O, A, N) {
|
|
1291
1291
|
var M = E[R], L = J(M);
|
|
1292
1292
|
if (L !== "object")
|
|
1293
|
-
return new y("Invalid " +
|
|
1293
|
+
return new y("Invalid " + A + " `" + N + "` of type `" + L + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1294
1294
|
for (var K in p) {
|
|
1295
1295
|
var W = p[K];
|
|
1296
1296
|
if (typeof W != "function")
|
|
1297
|
-
return k(
|
|
1298
|
-
var ne = W(M, K,
|
|
1297
|
+
return k(O, A, N, K, U(W));
|
|
1298
|
+
var ne = W(M, K, O, A, N + "." + K, t);
|
|
1299
1299
|
if (ne)
|
|
1300
1300
|
return ne;
|
|
1301
1301
|
}
|
|
@@ -1304,23 +1304,23 @@ function Xr() {
|
|
|
1304
1304
|
return b(m);
|
|
1305
1305
|
}
|
|
1306
1306
|
function B(p) {
|
|
1307
|
-
function m(E, R,
|
|
1307
|
+
function m(E, R, O, A, N) {
|
|
1308
1308
|
var M = E[R], L = J(M);
|
|
1309
1309
|
if (L !== "object")
|
|
1310
|
-
return new y("Invalid " +
|
|
1310
|
+
return new y("Invalid " + A + " `" + N + "` of type `" + L + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
1311
1311
|
var K = e({}, E[R], p);
|
|
1312
1312
|
for (var W in K) {
|
|
1313
1313
|
var ne = p[W];
|
|
1314
1314
|
if (r(p, W) && typeof ne != "function")
|
|
1315
|
-
return k(
|
|
1315
|
+
return k(O, A, N, W, U(ne));
|
|
1316
1316
|
if (!ne)
|
|
1317
1317
|
return new y(
|
|
1318
|
-
"Invalid " +
|
|
1318
|
+
"Invalid " + A + " `" + N + "` key `" + W + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(E[R], null, " ") + `
|
|
1319
1319
|
Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
1320
1320
|
);
|
|
1321
|
-
var
|
|
1322
|
-
if (
|
|
1323
|
-
return
|
|
1321
|
+
var $ = ne(M, W, O, A, N + "." + W, t);
|
|
1322
|
+
if ($)
|
|
1323
|
+
return $;
|
|
1324
1324
|
}
|
|
1325
1325
|
return null;
|
|
1326
1326
|
}
|
|
@@ -1348,8 +1348,8 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1348
1348
|
return !1;
|
|
1349
1349
|
} else
|
|
1350
1350
|
for (; !(R = E.next()).done; ) {
|
|
1351
|
-
var
|
|
1352
|
-
if (
|
|
1351
|
+
var O = R.value;
|
|
1352
|
+
if (O && !q(O[1]))
|
|
1353
1353
|
return !1;
|
|
1354
1354
|
}
|
|
1355
1355
|
} else
|
|
@@ -1483,8 +1483,8 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1483
1483
|
return t.renderSVG = function() {
|
|
1484
1484
|
var s = this;
|
|
1485
1485
|
if (this.reactWrapper instanceof en(this.reactWrapper).Node) {
|
|
1486
|
-
var a = this.props, o = a.desc, i = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, h = this.props.onError, g = this.props.beforeInjection, y = this.props.afterInjection, b = this.props.wrapper,
|
|
1487
|
-
b === "svg" ? (
|
|
1486
|
+
var a = this.props, o = a.desc, i = a.evalScripts, c = a.httpRequestWithCredentials, l = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, h = this.props.onError, g = this.props.beforeInjection, y = this.props.afterInjection, b = this.props.wrapper, w, T;
|
|
1487
|
+
b === "svg" ? (w = document.createElementNS(Ye, b), w.setAttribute("xmlns", Ye), w.setAttribute("xmlns:xlink", _t), T = document.createElementNS(Ye, b)) : (w = document.createElement(b), T = document.createElement(b)), w.appendChild(T), T.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(w);
|
|
1488
1488
|
var P = function(C) {
|
|
1489
1489
|
if (s.removeSVG(), !s._isMounted) {
|
|
1490
1490
|
h(C);
|
|
@@ -1498,7 +1498,7 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1498
1498
|
}, function() {
|
|
1499
1499
|
h(C);
|
|
1500
1500
|
});
|
|
1501
|
-
},
|
|
1501
|
+
}, S = function(C, Y) {
|
|
1502
1502
|
if (C) {
|
|
1503
1503
|
P(C);
|
|
1504
1504
|
return;
|
|
@@ -1533,8 +1533,8 @@ var ae = /* @__PURE__ */ Qr(), en = function(e) {
|
|
|
1533
1533
|
P(V);
|
|
1534
1534
|
}
|
|
1535
1535
|
};
|
|
1536
|
-
qr(
|
|
1537
|
-
afterEach:
|
|
1536
|
+
qr(T, {
|
|
1537
|
+
afterEach: S,
|
|
1538
1538
|
beforeEach: v,
|
|
1539
1539
|
cacheRequests: d,
|
|
1540
1540
|
evalScripts: i,
|
|
@@ -1625,19 +1625,19 @@ const ts = (n) => {
|
|
|
1625
1625
|
spin: f = !1,
|
|
1626
1626
|
title: u
|
|
1627
1627
|
}) => {
|
|
1628
|
-
const [d, h] = X(n), g = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("/")), y = g && (n == null ? void 0 : n.toLowerCase().endsWith(".svg")), b = Mt(`assets/svg/${n}.svg`),
|
|
1628
|
+
const [d, h] = X(n), g = (n == null ? void 0 : n.startsWith("http")) || (n == null ? void 0 : n.startsWith("/")), y = g && (n == null ? void 0 : n.toLowerCase().endsWith(".svg")), b = Mt(`assets/svg/${n}.svg`), w = Mt(
|
|
1629
1629
|
`assets/svg/${r}.svg`
|
|
1630
|
-
),
|
|
1630
|
+
), T = {
|
|
1631
1631
|
img: `${l ? "smp-image-interactable" : ""}`,
|
|
1632
1632
|
svg: `smp-icon ${o ? `smp-icon-${o}` : ""} ${i ? "smp-icon-rotated" : ""} ${l ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1633
1633
|
}, P = () => {
|
|
1634
1634
|
!a && c && c();
|
|
1635
1635
|
};
|
|
1636
|
-
return /* @__PURE__ */
|
|
1636
|
+
return /* @__PURE__ */ x.jsx(x.Fragment, { children: y ? /* @__PURE__ */ x.jsx(
|
|
1637
1637
|
Re,
|
|
1638
1638
|
{
|
|
1639
1639
|
src: n,
|
|
1640
|
-
fallback: () => /* @__PURE__ */
|
|
1640
|
+
fallback: () => /* @__PURE__ */ x.jsx(Re, { src: w, wrapper: "svg" }),
|
|
1641
1641
|
width: e || "1rem",
|
|
1642
1642
|
height: t || "1rem",
|
|
1643
1643
|
wrapper: "svg",
|
|
@@ -1645,32 +1645,32 @@ const ts = (n) => {
|
|
|
1645
1645
|
role: "application",
|
|
1646
1646
|
fill: s,
|
|
1647
1647
|
"aria-disabled": a,
|
|
1648
|
-
className:
|
|
1648
|
+
className: T.svg,
|
|
1649
1649
|
onClick: P
|
|
1650
1650
|
}
|
|
1651
1651
|
) : g ? (
|
|
1652
1652
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1653
|
-
/* @__PURE__ */
|
|
1653
|
+
/* @__PURE__ */ x.jsx(
|
|
1654
1654
|
"img",
|
|
1655
1655
|
{
|
|
1656
1656
|
src: d,
|
|
1657
1657
|
width: e || "16px",
|
|
1658
1658
|
height: t || "auto",
|
|
1659
1659
|
alt: u,
|
|
1660
|
-
onError: () => h(
|
|
1660
|
+
onError: () => h(w),
|
|
1661
1661
|
onClick: P,
|
|
1662
|
-
className:
|
|
1662
|
+
className: T.img,
|
|
1663
1663
|
title: u,
|
|
1664
|
-
onKeyDown: (
|
|
1665
|
-
(
|
|
1664
|
+
onKeyDown: (S) => {
|
|
1665
|
+
(S.key === "Enter" || S.key === " ") && P();
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
)
|
|
1669
|
-
) : /* @__PURE__ */
|
|
1669
|
+
) : /* @__PURE__ */ x.jsx(
|
|
1670
1670
|
Re,
|
|
1671
1671
|
{
|
|
1672
1672
|
src: b,
|
|
1673
|
-
fallback: () => /* @__PURE__ */
|
|
1673
|
+
fallback: () => /* @__PURE__ */ x.jsx(Re, { src: w, wrapper: "svg" }),
|
|
1674
1674
|
width: e || "1rem",
|
|
1675
1675
|
height: t || "1rem",
|
|
1676
1676
|
wrapper: "svg",
|
|
@@ -1678,7 +1678,7 @@ const ts = (n) => {
|
|
|
1678
1678
|
role: "application",
|
|
1679
1679
|
fill: s,
|
|
1680
1680
|
"aria-disabled": a,
|
|
1681
|
-
className:
|
|
1681
|
+
className: T.svg,
|
|
1682
1682
|
onClick: P
|
|
1683
1683
|
}
|
|
1684
1684
|
) });
|
|
@@ -1701,33 +1701,33 @@ const ts = (n) => {
|
|
|
1701
1701
|
inputRef: g,
|
|
1702
1702
|
onKeyDown: y,
|
|
1703
1703
|
inputType: b = "text",
|
|
1704
|
-
ariaLabel:
|
|
1705
|
-
label:
|
|
1704
|
+
ariaLabel: w = "input field",
|
|
1705
|
+
label: T,
|
|
1706
1706
|
helperText: P = !1,
|
|
1707
|
-
error:
|
|
1707
|
+
error: S,
|
|
1708
1708
|
appearance: v = "base",
|
|
1709
1709
|
fullWidth: D = !1,
|
|
1710
1710
|
_dataComponent: C = "textfield",
|
|
1711
1711
|
width: Y
|
|
1712
1712
|
}) => {
|
|
1713
|
-
const _ =
|
|
1713
|
+
const _ = S ? "danger" : l, j = S || l == "danger" ? "error" : i, k = P || !!S, V = (Z) => {
|
|
1714
1714
|
a == null || a(Z.target.value);
|
|
1715
1715
|
}, B = {
|
|
1716
1716
|
wrapper: `smp-textfield-wrapper ${D ? "smp-textfield-fullWidth" : ""}`,
|
|
1717
1717
|
container: `smp-textfield ${n ? "smp-textfield-disabled" : ""} ${e ? "smp-textfield-readOnly" : ""} ${o ? "smp-textfield-placeholder" : ""} ${c ? `smp-textfield-${c}` : ""} ${_ ? `smp-textfield-${_}` : ""} ${f ? `smp-textfield-variant-${f}` : ""} ${v ? `smp-textfield-${v}` : ""}`,
|
|
1718
1718
|
input: "smp-textfield-input "
|
|
1719
1719
|
}, q = Y ? { "--smp-textField-width-base": Y } : void 0;
|
|
1720
|
-
return /* @__PURE__ */
|
|
1721
|
-
|
|
1722
|
-
/* @__PURE__ */
|
|
1720
|
+
return /* @__PURE__ */ x.jsxs("div", { className: B.wrapper, "data-component": C, children: [
|
|
1721
|
+
T && /* @__PURE__ */ x.jsx(ir, { label: T, disabled: n }),
|
|
1722
|
+
/* @__PURE__ */ x.jsxs(
|
|
1723
1723
|
"div",
|
|
1724
1724
|
{
|
|
1725
1725
|
className: B.container,
|
|
1726
1726
|
ref: h,
|
|
1727
1727
|
style: q,
|
|
1728
1728
|
children: [
|
|
1729
|
-
r && /* @__PURE__ */
|
|
1730
|
-
/* @__PURE__ */
|
|
1729
|
+
r && /* @__PURE__ */ x.jsx(pe, { icon: r, disabled: n }),
|
|
1730
|
+
/* @__PURE__ */ x.jsx(
|
|
1731
1731
|
"input",
|
|
1732
1732
|
{
|
|
1733
1733
|
type: b,
|
|
@@ -1739,11 +1739,11 @@ const ts = (n) => {
|
|
|
1739
1739
|
disabled: n,
|
|
1740
1740
|
readOnly: e,
|
|
1741
1741
|
onKeyDown: y,
|
|
1742
|
-
"aria-label":
|
|
1742
|
+
"aria-label": w,
|
|
1743
1743
|
ref: g
|
|
1744
1744
|
}
|
|
1745
1745
|
),
|
|
1746
|
-
j && /* @__PURE__ */
|
|
1746
|
+
j && /* @__PURE__ */ x.jsx(
|
|
1747
1747
|
pe,
|
|
1748
1748
|
{
|
|
1749
1749
|
icon: j,
|
|
@@ -1756,10 +1756,10 @@ const ts = (n) => {
|
|
|
1756
1756
|
]
|
|
1757
1757
|
}
|
|
1758
1758
|
),
|
|
1759
|
-
k && /* @__PURE__ */
|
|
1759
|
+
k && /* @__PURE__ */ x.jsx(
|
|
1760
1760
|
kr,
|
|
1761
1761
|
{
|
|
1762
|
-
helperText:
|
|
1762
|
+
helperText: S,
|
|
1763
1763
|
disabled: n,
|
|
1764
1764
|
state: _
|
|
1765
1765
|
}
|
|
@@ -1787,8 +1787,8 @@ function nn({
|
|
|
1787
1787
|
a(g);
|
|
1788
1788
|
}, []), d = (h) => {
|
|
1789
1789
|
if (!o.current) return;
|
|
1790
|
-
const g = h * e, y = g + e, b = o.current,
|
|
1791
|
-
g <
|
|
1790
|
+
const g = h * e, y = g + e, b = o.current, w = b.scrollTop, T = w + t;
|
|
1791
|
+
g < w ? b.scrollTop = g : y > T && (b.scrollTop = y - t);
|
|
1792
1792
|
};
|
|
1793
1793
|
return {
|
|
1794
1794
|
virtualItems: f,
|
|
@@ -1838,9 +1838,9 @@ const sn = 10, fr = ({
|
|
|
1838
1838
|
a !== null ? a : -1
|
|
1839
1839
|
), y = s !== void 0 ? s : e.length > sn, b = f ? e.filter(
|
|
1840
1840
|
(k) => k.label.toLowerCase().includes(f.toLowerCase())
|
|
1841
|
-
) : e,
|
|
1841
|
+
) : e, w = (k) => {
|
|
1842
1842
|
u(k);
|
|
1843
|
-
}, { virtualItems:
|
|
1843
|
+
}, { virtualItems: T, containerProps: P, innerProps: S, scrollToIndex: v } = nn({
|
|
1844
1844
|
items: b,
|
|
1845
1845
|
itemHeight: d,
|
|
1846
1846
|
containerHeight: 200,
|
|
@@ -1868,7 +1868,7 @@ const sn = 10, fr = ({
|
|
|
1868
1868
|
virtualScroll: "smp-list-virtualScroll",
|
|
1869
1869
|
listItem: "smp-list-listItem"
|
|
1870
1870
|
};
|
|
1871
|
-
return /* @__PURE__ */
|
|
1871
|
+
return /* @__PURE__ */ x.jsxs(
|
|
1872
1872
|
"div",
|
|
1873
1873
|
{
|
|
1874
1874
|
id: n,
|
|
@@ -1879,16 +1879,16 @@ const sn = 10, fr = ({
|
|
|
1879
1879
|
width: i
|
|
1880
1880
|
},
|
|
1881
1881
|
children: [
|
|
1882
|
-
y && /* @__PURE__ */
|
|
1882
|
+
y && /* @__PURE__ */ x.jsx(
|
|
1883
1883
|
De,
|
|
1884
1884
|
{
|
|
1885
1885
|
bindValue: f,
|
|
1886
1886
|
placeholder: "Search...",
|
|
1887
|
-
onChange:
|
|
1887
|
+
onChange: w,
|
|
1888
1888
|
onKeyDown: C
|
|
1889
1889
|
}
|
|
1890
1890
|
),
|
|
1891
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ x.jsx(
|
|
1892
1892
|
"div",
|
|
1893
1893
|
{
|
|
1894
1894
|
...P,
|
|
@@ -1898,11 +1898,11 @@ const sn = 10, fr = ({
|
|
|
1898
1898
|
"aria-label": "List",
|
|
1899
1899
|
onKeyDown: Y,
|
|
1900
1900
|
"aria-activedescendant": h >= 0 && h < b.length ? (j = b[h]) == null ? void 0 : j.id : void 0,
|
|
1901
|
-
children: /* @__PURE__ */
|
|
1901
|
+
children: /* @__PURE__ */ x.jsx("div", { ...S, className: _.virtualScroll, children: T.map(({ item: k, index: V, offsetTop: B }) => {
|
|
1902
1902
|
const q = o.includes(k.id);
|
|
1903
1903
|
return (
|
|
1904
1904
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
1905
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ x.jsxs(
|
|
1906
1906
|
"li",
|
|
1907
1907
|
{
|
|
1908
1908
|
role: "option",
|
|
@@ -1922,7 +1922,7 @@ const sn = 10, fr = ({
|
|
|
1922
1922
|
},
|
|
1923
1923
|
children: [
|
|
1924
1924
|
Ke(k.id, k.label, t),
|
|
1925
|
-
q && /* @__PURE__ */
|
|
1925
|
+
q && /* @__PURE__ */ x.jsx(pe, { icon: "check", width: 16 })
|
|
1926
1926
|
]
|
|
1927
1927
|
},
|
|
1928
1928
|
k.id
|
|
@@ -1949,7 +1949,7 @@ const sn = 10, fr = ({
|
|
|
1949
1949
|
a(
|
|
1950
1950
|
Ke(e, t, n)
|
|
1951
1951
|
);
|
|
1952
|
-
}, [t, n]), /* @__PURE__ */
|
|
1952
|
+
}, [t, n]), /* @__PURE__ */ x.jsx(De, { ...r, bindValue: s });
|
|
1953
1953
|
}, an = (n) => {
|
|
1954
1954
|
const e = xe(null);
|
|
1955
1955
|
return le(() => () => {
|
|
@@ -1974,38 +1974,38 @@ const sn = 10, fr = ({
|
|
|
1974
1974
|
_multiActiveIndex: u,
|
|
1975
1975
|
...d
|
|
1976
1976
|
}) => {
|
|
1977
|
-
const [h, g] = X(n), [y, b] = X(e), [
|
|
1977
|
+
const [h, g] = X(n), [y, b] = X(e), [w, T] = X(!1), [P, S] = X(t || []), [v, D] = X(0), [C, Y] = X([n]), { anchorRef: _, targetRef: j, anchorWidth: k } = gt({
|
|
1978
1978
|
position: "bottom",
|
|
1979
|
-
enabled:
|
|
1979
|
+
enabled: w
|
|
1980
1980
|
});
|
|
1981
|
-
qe(j, () =>
|
|
1981
|
+
qe(j, () => T(!1));
|
|
1982
1982
|
const V = an(400), B = (U) => {
|
|
1983
1983
|
U.length >= a ? i && f && V(async () => {
|
|
1984
1984
|
const z = await f(i, U);
|
|
1985
|
-
|
|
1986
|
-
}) :
|
|
1985
|
+
S(z), D(z.length > 0 ? 0 : -1), T(!0);
|
|
1986
|
+
}) : T(!1), g(U), b(e), c || l == null || l(U, e);
|
|
1987
1987
|
}, q = (U) => {
|
|
1988
1988
|
c ? (g(""), b("")) : (g(U.id), b(U.label)), l == null || l(U.id, U.label);
|
|
1989
1989
|
const z = P.findIndex((I) => I.id === U.id);
|
|
1990
|
-
D(z), Y([U.id]),
|
|
1990
|
+
D(z), Y([U.id]), T(!1);
|
|
1991
1991
|
}, Z = (U) => {
|
|
1992
|
-
U.key === "Escape" && (
|
|
1992
|
+
U.key === "Escape" && (T(!1), D(-1));
|
|
1993
1993
|
}, J = (U) => {
|
|
1994
|
-
if ((U.key === "ArrowDown" || U.key === "ArrowUp") && (U.preventDefault(),
|
|
1994
|
+
if ((U.key === "ArrowDown" || U.key === "ArrowUp") && (U.preventDefault(), w)) {
|
|
1995
1995
|
const z = U.key === "ArrowDown" ? (v + 1) % P.length : (v - 1 + P.length) % P.length;
|
|
1996
1996
|
D(z);
|
|
1997
1997
|
}
|
|
1998
1998
|
switch (U.key) {
|
|
1999
1999
|
case "Enter":
|
|
2000
|
-
v >= 0 && v < P.length ? q(P[v]) : c && (l == null || l(h, ""),
|
|
2000
|
+
v >= 0 && v < P.length ? q(P[v]) : c && (l == null || l(h, ""), T(!1), g(""), b(""));
|
|
2001
2001
|
break;
|
|
2002
2002
|
case "Escape":
|
|
2003
|
-
|
|
2003
|
+
T(!1), D(-1);
|
|
2004
2004
|
break;
|
|
2005
2005
|
}
|
|
2006
2006
|
};
|
|
2007
|
-
return /* @__PURE__ */
|
|
2008
|
-
/* @__PURE__ */
|
|
2007
|
+
return /* @__PURE__ */ x.jsxs("div", { "data-component": "autocomplete", children: [
|
|
2008
|
+
/* @__PURE__ */ x.jsx(
|
|
2009
2009
|
dr,
|
|
2010
2010
|
{
|
|
2011
2011
|
...d,
|
|
@@ -2020,7 +2020,7 @@ const sn = 10, fr = ({
|
|
|
2020
2020
|
"aria-autocomplete": "list"
|
|
2021
2021
|
}
|
|
2022
2022
|
),
|
|
2023
|
-
|
|
2023
|
+
w && /* @__PURE__ */ x.jsx(
|
|
2024
2024
|
fr,
|
|
2025
2025
|
{
|
|
2026
2026
|
options: P,
|
|
@@ -2058,24 +2058,25 @@ const sn = 10, fr = ({
|
|
|
2058
2058
|
showText: l = !0,
|
|
2059
2059
|
fullWidth: f = !1,
|
|
2060
2060
|
loading: u = !1,
|
|
2061
|
-
|
|
2062
|
-
|
|
2061
|
+
justify: d = "center",
|
|
2062
|
+
title: h,
|
|
2063
|
+
optionalDisplayValue: g
|
|
2063
2064
|
}) => {
|
|
2064
|
-
const
|
|
2065
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${i ? `smp-buttonType-${i}` : ""} ${f ? "smp-button-fullWidth" : ""}`
|
|
2065
|
+
const y = {
|
|
2066
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${o ? `smp-buttonVariant-${o}` : ""} ${i ? `smp-buttonType-${i}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${d}`
|
|
2066
2067
|
};
|
|
2067
|
-
return /* @__PURE__ */
|
|
2068
|
+
return /* @__PURE__ */ x.jsx(
|
|
2068
2069
|
"button",
|
|
2069
2070
|
{
|
|
2070
2071
|
"data-component": "button",
|
|
2071
|
-
className:
|
|
2072
|
+
className: y.container,
|
|
2072
2073
|
onClick: e,
|
|
2073
2074
|
"aria-label": t,
|
|
2074
2075
|
disabled: s,
|
|
2075
2076
|
"aria-busy": u,
|
|
2076
|
-
title:
|
|
2077
|
-
children: u ? /* @__PURE__ */
|
|
2078
|
-
r && c && /* @__PURE__ */
|
|
2077
|
+
title: h || n || g,
|
|
2078
|
+
children: u ? /* @__PURE__ */ x.jsx(pe, { icon: "spinner", state: Vt(o), spin: !0 }) : /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
2079
|
+
r && c && /* @__PURE__ */ x.jsx(
|
|
2079
2080
|
pe,
|
|
2080
2081
|
{
|
|
2081
2082
|
icon: r,
|
|
@@ -2085,7 +2086,7 @@ const sn = 10, fr = ({
|
|
|
2085
2086
|
height: Ft(a)
|
|
2086
2087
|
}
|
|
2087
2088
|
),
|
|
2088
|
-
l &&
|
|
2089
|
+
l && g && /* @__PURE__ */ x.jsx("span", { children: g })
|
|
2089
2090
|
] })
|
|
2090
2091
|
}
|
|
2091
2092
|
);
|
|
@@ -2101,26 +2102,27 @@ const sn = 10, fr = ({
|
|
|
2101
2102
|
showIcon: c,
|
|
2102
2103
|
fullWidth: l,
|
|
2103
2104
|
disabled: f,
|
|
2104
|
-
|
|
2105
|
-
|
|
2105
|
+
justify: u,
|
|
2106
|
+
onClick: d,
|
|
2107
|
+
onOptionsRequest: h
|
|
2106
2108
|
}) => {
|
|
2107
|
-
const [
|
|
2109
|
+
const [g, y] = X(n);
|
|
2108
2110
|
le(() => {
|
|
2109
|
-
!(
|
|
2111
|
+
!(g != null && g.length) && h && e && h(e, void 0).then((T) => y(T)).catch((T) => {
|
|
2110
2112
|
console.error(
|
|
2111
2113
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
2112
|
-
|
|
2114
|
+
T
|
|
2113
2115
|
);
|
|
2114
2116
|
});
|
|
2115
|
-
}, [
|
|
2116
|
-
const
|
|
2117
|
+
}, [g, e, h]);
|
|
2118
|
+
const b = {
|
|
2117
2119
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${r}`
|
|
2118
|
-
},
|
|
2119
|
-
const
|
|
2120
|
-
bindValue:
|
|
2121
|
-
optionalDisplayValue:
|
|
2122
|
-
fun:
|
|
2123
|
-
icon:
|
|
2120
|
+
}, w = g == null ? void 0 : g.map((T, P) => {
|
|
2121
|
+
const S = {
|
|
2122
|
+
bindValue: T.id,
|
|
2123
|
+
optionalDisplayValue: T.label,
|
|
2124
|
+
fun: T.fun,
|
|
2125
|
+
icon: T.icon,
|
|
2124
2126
|
variant: a,
|
|
2125
2127
|
appearance: o,
|
|
2126
2128
|
showText: i,
|
|
@@ -2128,13 +2130,14 @@ const sn = 10, fr = ({
|
|
|
2128
2130
|
fullWidth: l,
|
|
2129
2131
|
disabled: f,
|
|
2130
2132
|
sizing: s,
|
|
2133
|
+
justify: u,
|
|
2131
2134
|
onClick: () => {
|
|
2132
|
-
|
|
2135
|
+
d == null || d(T.id, T.fun);
|
|
2133
2136
|
}
|
|
2134
2137
|
};
|
|
2135
|
-
return /* @__PURE__ */
|
|
2138
|
+
return /* @__PURE__ */ x.jsx(Ce, { ...S }, `button-${P}`);
|
|
2136
2139
|
});
|
|
2137
|
-
return /* @__PURE__ */
|
|
2140
|
+
return /* @__PURE__ */ x.jsx("div", { role: "list", "data-component": "button-list", className: b.container, children: w });
|
|
2138
2141
|
}, ln = ({
|
|
2139
2142
|
bindValue: n,
|
|
2140
2143
|
onChange: e,
|
|
@@ -2143,7 +2146,7 @@ const sn = 10, fr = ({
|
|
|
2143
2146
|
const r = (s) => {
|
|
2144
2147
|
e && e(s.target.checked);
|
|
2145
2148
|
};
|
|
2146
|
-
return /* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ x.jsx(
|
|
2147
2150
|
"input",
|
|
2148
2151
|
{
|
|
2149
2152
|
"data-component": "checkbox",
|
|
@@ -2167,7 +2170,7 @@ const sn = 10, fr = ({
|
|
|
2167
2170
|
const s = cn[n], a = {
|
|
2168
2171
|
container: `smp-typography ${n ? `smp-typography-${n}` : ""} ${r.disabled ? "smp-typography-disabled" : ""}`
|
|
2169
2172
|
};
|
|
2170
|
-
return /* @__PURE__ */
|
|
2173
|
+
return /* @__PURE__ */ x.jsx(
|
|
2171
2174
|
s,
|
|
2172
2175
|
{
|
|
2173
2176
|
className: a.container,
|
|
@@ -2199,27 +2202,27 @@ const sn = 10, fr = ({
|
|
|
2199
2202
|
const g = [...n], [y] = g.splice(i, 1);
|
|
2200
2203
|
g.splice(h, 0, y), r == null || r(g), c(null);
|
|
2201
2204
|
};
|
|
2202
|
-
return /* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ x.jsx("div", { className: l.container, role: "list", "data-component": "chip", children: n.flatMap((h, g) => {
|
|
2203
2206
|
const y = Ke(
|
|
2204
2207
|
h.bindValue,
|
|
2205
2208
|
h.optionalDisplayValue,
|
|
2206
2209
|
t
|
|
2207
|
-
), b = /* @__PURE__ */
|
|
2210
|
+
), b = /* @__PURE__ */ x.jsxs(
|
|
2208
2211
|
"div",
|
|
2209
2212
|
{
|
|
2210
2213
|
className: l.element,
|
|
2211
2214
|
role: "listitem",
|
|
2212
2215
|
draggable: o,
|
|
2213
2216
|
onDragStart: () => u(g),
|
|
2214
|
-
onDragOver: (
|
|
2217
|
+
onDragOver: (T) => o && T.preventDefault(),
|
|
2215
2218
|
onDrop: () => o && d(g),
|
|
2216
2219
|
style: {
|
|
2217
2220
|
"--smp-chips-backgroundColor-base": a
|
|
2218
2221
|
},
|
|
2219
2222
|
children: [
|
|
2220
|
-
o && /* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
e && /* @__PURE__ */
|
|
2223
|
+
o && /* @__PURE__ */ x.jsx(pe, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2224
|
+
/* @__PURE__ */ x.jsx(un, { variant: "label", bindValue: y, color: s }),
|
|
2225
|
+
e && /* @__PURE__ */ x.jsx(
|
|
2223
2226
|
pe,
|
|
2224
2227
|
{
|
|
2225
2228
|
icon: "close",
|
|
@@ -2231,7 +2234,7 @@ const sn = 10, fr = ({
|
|
|
2231
2234
|
]
|
|
2232
2235
|
},
|
|
2233
2236
|
`chip-${g}`
|
|
2234
|
-
),
|
|
2237
|
+
), w = o && g < n.length - 1 ? /* @__PURE__ */ x.jsx(
|
|
2235
2238
|
pe,
|
|
2236
2239
|
{
|
|
2237
2240
|
icon: "chevron-right",
|
|
@@ -2239,7 +2242,7 @@ const sn = 10, fr = ({
|
|
|
2239
2242
|
},
|
|
2240
2243
|
`separator-${g}`
|
|
2241
2244
|
) : null;
|
|
2242
|
-
return [b,
|
|
2245
|
+
return [b, w].filter(Boolean);
|
|
2243
2246
|
}) });
|
|
2244
2247
|
};
|
|
2245
2248
|
function gr(n, e) {
|
|
@@ -2293,15 +2296,15 @@ const fn = ({
|
|
|
2293
2296
|
multiActiveIndex: c,
|
|
2294
2297
|
...l
|
|
2295
2298
|
}) => {
|
|
2296
|
-
const [f, u] = X(!1), [d, h] = X(t), [g, y] = X(-1), [b,
|
|
2299
|
+
const [f, u] = X(!1), [d, h] = X(t), [g, y] = X(-1), [b, w] = X([n]), T = Or(), { anchorRef: P, targetRef: S, anchorWidth: v } = gt({
|
|
2297
2300
|
position: "bottom",
|
|
2298
2301
|
enabled: f
|
|
2299
2302
|
});
|
|
2300
|
-
qe(
|
|
2303
|
+
qe(S, () => u(!1)), gr(f, S);
|
|
2301
2304
|
const D = (j) => {
|
|
2302
2305
|
e == null || e(j.id, j.label);
|
|
2303
2306
|
const k = d.findIndex((V) => V.id === j.id);
|
|
2304
|
-
y(k),
|
|
2307
|
+
y(k), w([j.id]), u(!1);
|
|
2305
2308
|
}, C = (j) => {
|
|
2306
2309
|
j.key === "Escape" && (u(!1), y(-1));
|
|
2307
2310
|
}, Y = (j) => {
|
|
@@ -2311,16 +2314,16 @@ const fn = ({
|
|
|
2311
2314
|
h(j), y(j.length > 0 ? 0 : -1), u(!0);
|
|
2312
2315
|
});
|
|
2313
2316
|
};
|
|
2314
|
-
return /* @__PURE__ */
|
|
2317
|
+
return /* @__PURE__ */ x.jsxs(
|
|
2315
2318
|
"div",
|
|
2316
2319
|
{
|
|
2317
2320
|
role: "combobox",
|
|
2318
2321
|
"aria-expanded": f,
|
|
2319
|
-
"aria-controls":
|
|
2320
|
-
"aria-owns":
|
|
2322
|
+
"aria-controls": T,
|
|
2323
|
+
"aria-owns": T,
|
|
2321
2324
|
"data-component": "combobox",
|
|
2322
2325
|
children: [
|
|
2323
|
-
/* @__PURE__ */
|
|
2326
|
+
/* @__PURE__ */ x.jsx(
|
|
2324
2327
|
dr,
|
|
2325
2328
|
{
|
|
2326
2329
|
...l,
|
|
@@ -2337,13 +2340,13 @@ const fn = ({
|
|
|
2337
2340
|
variant: "notSelectable"
|
|
2338
2341
|
}
|
|
2339
2342
|
),
|
|
2340
|
-
f && /* @__PURE__ */
|
|
2343
|
+
f && /* @__PURE__ */ x.jsx(
|
|
2341
2344
|
fr,
|
|
2342
2345
|
{
|
|
2343
|
-
id:
|
|
2346
|
+
id: T,
|
|
2344
2347
|
options: d,
|
|
2345
2348
|
displayMode: a,
|
|
2346
|
-
ref:
|
|
2349
|
+
ref: S,
|
|
2347
2350
|
selectedIndex: g,
|
|
2348
2351
|
activeIndex: c || b,
|
|
2349
2352
|
width: v,
|
|
@@ -2354,7 +2357,7 @@ const fn = ({
|
|
|
2354
2357
|
]
|
|
2355
2358
|
}
|
|
2356
2359
|
);
|
|
2357
|
-
}, H = (n) => typeof n == "string",
|
|
2360
|
+
}, H = (n) => typeof n == "string", $e = () => {
|
|
2358
2361
|
let n, e;
|
|
2359
2362
|
const t = new Promise((r, s) => {
|
|
2360
2363
|
n = r, e = s;
|
|
@@ -2695,13 +2698,13 @@ class Xe extends Ze {
|
|
|
2695
2698
|
} : i;
|
|
2696
2699
|
const h = this.resolve(e, s);
|
|
2697
2700
|
let g = h == null ? void 0 : h.res;
|
|
2698
|
-
const y = (h == null ? void 0 : h.usedKey) || i, b = (h == null ? void 0 : h.exactUsedKey) || i,
|
|
2701
|
+
const y = (h == null ? void 0 : h.usedKey) || i, b = (h == null ? void 0 : h.exactUsedKey) || i, w = ["[object Number]", "[object Function]", "[object RegExp]"], T = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, P = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !H(s.count), v = Xe.hasDefaultValue(s), D = S ? this.pluralResolver.getSuffix(u, s.count, s) : "", C = s.ordinal && S ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2699
2702
|
ordinal: !1
|
|
2700
|
-
}) : "", Y =
|
|
2703
|
+
}) : "", Y = S && !s.ordinal && s.count === 0, _ = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${D}`] || s[`defaultValue${C}`] || s.defaultValue;
|
|
2701
2704
|
let j = g;
|
|
2702
2705
|
P && !g && v && (j = _);
|
|
2703
2706
|
const k = Kt(j), V = Object.prototype.toString.apply(j);
|
|
2704
|
-
if (P && j && k &&
|
|
2707
|
+
if (P && j && k && w.indexOf(V) < 0 && !(H(T) && Array.isArray(j))) {
|
|
2705
2708
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2706
2709
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2707
2710
|
const B = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, j, {
|
|
@@ -2728,8 +2731,8 @@ class Xe extends Ze {
|
|
|
2728
2731
|
}
|
|
2729
2732
|
g = q;
|
|
2730
2733
|
}
|
|
2731
|
-
} else if (P && H(
|
|
2732
|
-
g = g.join(
|
|
2734
|
+
} else if (P && H(T) && Array.isArray(g))
|
|
2735
|
+
g = g.join(T), g && (g = this.extendTranslation(g, e, s, r));
|
|
2733
2736
|
else {
|
|
2734
2737
|
let B = !1, q = !1;
|
|
2735
2738
|
!this.isValidLookup(g) && v && (B = !0, g = _), this.isValidLookup(g) || (q = !0, g = i);
|
|
@@ -2749,11 +2752,11 @@ class Xe extends Ze {
|
|
|
2749
2752
|
z.push(I[m]);
|
|
2750
2753
|
else this.options.saveMissingTo === "all" ? z = this.languageUtils.toResolveHierarchy(s.lng || this.language) : z.push(s.lng || this.language);
|
|
2751
2754
|
const p = (m, E, R) => {
|
|
2752
|
-
var
|
|
2753
|
-
const
|
|
2754
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(m, l, E,
|
|
2755
|
+
var A;
|
|
2756
|
+
const O = v && R !== g ? R : J;
|
|
2757
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(m, l, E, O, U, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(m, l, E, O, U, s), this.emit("missingKey", m, l, E, g);
|
|
2755
2758
|
};
|
|
2756
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2759
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? z.forEach((m) => {
|
|
2757
2760
|
const E = this.pluralResolver.getSuffixes(m, s);
|
|
2758
2761
|
Y && s[`defaultValue${this.options.pluralSeparator}zero`] && E.indexOf(`${this.options.pluralSeparator}zero`) < 0 && E.push(`${this.options.pluralSeparator}zero`), E.forEach((R) => {
|
|
2759
2762
|
p([m], i + R, s[`defaultValue${R}`] || _);
|
|
@@ -2816,25 +2819,25 @@ class Xe extends Ze {
|
|
|
2816
2819
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2817
2820
|
const d = t.count !== void 0 && !H(t.count), h = d && !t.ordinal && t.count === 0, g = t.context !== void 0 && (H(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2818
2821
|
u.forEach((b) => {
|
|
2819
|
-
var
|
|
2820
|
-
this.isValidLookup(r) || (i = b, !qt[`${y[0]}-${b}`] && ((
|
|
2822
|
+
var w, T;
|
|
2823
|
+
this.isValidLookup(r) || (i = b, !qt[`${y[0]}-${b}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((T = this.utils) != null && T.hasLoadedNamespace(i)) && (qt[`${y[0]}-${b}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((P) => {
|
|
2821
2824
|
var D;
|
|
2822
2825
|
if (this.isValidLookup(r)) return;
|
|
2823
2826
|
o = P;
|
|
2824
|
-
const
|
|
2827
|
+
const S = [f];
|
|
2825
2828
|
if ((D = this.i18nFormat) != null && D.addLookupKeys)
|
|
2826
|
-
this.i18nFormat.addLookupKeys(
|
|
2829
|
+
this.i18nFormat.addLookupKeys(S, f, P, b, t);
|
|
2827
2830
|
else {
|
|
2828
2831
|
let C;
|
|
2829
2832
|
d && (C = this.pluralResolver.getSuffix(P, t.count, t));
|
|
2830
2833
|
const Y = `${this.options.pluralSeparator}zero`, _ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2831
|
-
if (d && (
|
|
2834
|
+
if (d && (S.push(f + C), t.ordinal && C.indexOf(_) === 0 && S.push(f + C.replace(_, this.options.pluralSeparator)), h && S.push(f + Y)), g) {
|
|
2832
2835
|
const j = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2833
|
-
|
|
2836
|
+
S.push(j), d && (S.push(j + C), t.ordinal && C.indexOf(_) === 0 && S.push(j + C.replace(_, this.options.pluralSeparator)), h && S.push(j + Y));
|
|
2834
2837
|
}
|
|
2835
2838
|
}
|
|
2836
2839
|
let v;
|
|
2837
|
-
for (; v =
|
|
2840
|
+
for (; v = S.pop(); )
|
|
2838
2841
|
this.isValidLookup(r) || (a = v, r = this.getResource(P, b, v, t));
|
|
2839
2842
|
}));
|
|
2840
2843
|
});
|
|
@@ -3029,10 +3032,10 @@ class Tn {
|
|
|
3029
3032
|
nestingSuffix: g,
|
|
3030
3033
|
nestingSuffixEscaped: y,
|
|
3031
3034
|
nestingOptionsSeparator: b,
|
|
3032
|
-
maxReplaces:
|
|
3033
|
-
alwaysFormat:
|
|
3035
|
+
maxReplaces: w,
|
|
3036
|
+
alwaysFormat: T
|
|
3034
3037
|
} = e.interpolation;
|
|
3035
|
-
this.escape = t !== void 0 ? t : yn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Te(a) : o || "{{", this.suffix = i ? Te(i) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Te(d) : h || Te("$t("), this.nestingSuffix = g ? Te(g) : y || Te(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces =
|
|
3038
|
+
this.escape = t !== void 0 ? t : yn, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Te(a) : o || "{{", this.suffix = i ? Te(i) : c || "}}", this.formatSeparator = l || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Te(d) : h || Te("$t("), this.nestingSuffix = g ? Te(g) : y || Te(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = T !== void 0 ? T : !1, this.resetRegExp();
|
|
3036
3039
|
}
|
|
3037
3040
|
reset() {
|
|
3038
3041
|
this.options && this.init(this.options);
|
|
@@ -3046,15 +3049,15 @@ class Tn {
|
|
|
3046
3049
|
let a, o, i;
|
|
3047
3050
|
const c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, l = (g) => {
|
|
3048
3051
|
if (g.indexOf(this.formatSeparator) < 0) {
|
|
3049
|
-
const
|
|
3050
|
-
return this.alwaysFormat ? this.format(
|
|
3052
|
+
const T = Xt(t, c, g, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3053
|
+
return this.alwaysFormat ? this.format(T, void 0, r, {
|
|
3051
3054
|
...s,
|
|
3052
3055
|
...t,
|
|
3053
3056
|
interpolationkey: g
|
|
3054
|
-
}) :
|
|
3057
|
+
}) : T;
|
|
3055
3058
|
}
|
|
3056
|
-
const y = g.split(this.formatSeparator), b = y.shift().trim(),
|
|
3057
|
-
return this.format(Xt(t, c, b, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
3059
|
+
const y = g.split(this.formatSeparator), b = y.shift().trim(), w = y.join(this.formatSeparator).trim();
|
|
3060
|
+
return this.format(Xt(t, c, b, this.options.keySeparator, this.options.ignoreJSONStructure), w, r, {
|
|
3058
3061
|
...s,
|
|
3059
3062
|
...t,
|
|
3060
3063
|
interpolationkey: b
|
|
@@ -3073,8 +3076,8 @@ class Tn {
|
|
|
3073
3076
|
const y = a[1].trim();
|
|
3074
3077
|
if (o = l(y), o === void 0)
|
|
3075
3078
|
if (typeof f == "function") {
|
|
3076
|
-
const
|
|
3077
|
-
o = H(
|
|
3079
|
+
const w = f(e, a, s);
|
|
3080
|
+
o = H(w) ? w : "";
|
|
3078
3081
|
} else if (s && Object.prototype.hasOwnProperty.call(s, y))
|
|
3079
3082
|
o = "";
|
|
3080
3083
|
else if (u) {
|
|
@@ -3242,7 +3245,7 @@ class Dn {
|
|
|
3242
3245
|
const Pn = (n, e) => {
|
|
3243
3246
|
n.pending[e] !== void 0 && (delete n.pending[e], n.pendingCount--);
|
|
3244
3247
|
};
|
|
3245
|
-
class
|
|
3248
|
+
class An extends Ze {
|
|
3246
3249
|
constructor(e, t, r, s = {}) {
|
|
3247
3250
|
var a, o;
|
|
3248
3251
|
super(), this.backend = e, this.store = t, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = me.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (o = (a = this.backend) == null ? void 0 : a.init) == null || o.call(a, r, s.backend, s);
|
|
@@ -3435,7 +3438,7 @@ const Qt = () => ({
|
|
|
3435
3438
|
var e, t;
|
|
3436
3439
|
return H(n.ns) && (n.ns = [n.ns]), H(n.fallbackLng) && (n.fallbackLng = [n.fallbackLng]), H(n.fallbackNS) && (n.fallbackNS = [n.fallbackNS]), ((t = (e = n.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (n.supportedLngs = n.supportedLngs.concat(["cimode"])), typeof n.initImmediate == "boolean" && (n.initAsync = n.initImmediate), n;
|
|
3437
3440
|
}, Ue = () => {
|
|
3438
|
-
},
|
|
3441
|
+
}, $n = (n) => {
|
|
3439
3442
|
Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t) => {
|
|
3440
3443
|
typeof n[t] == "function" && (n[t] = n[t].bind(n));
|
|
3441
3444
|
});
|
|
@@ -3444,7 +3447,7 @@ class Ie extends Ze {
|
|
|
3444
3447
|
constructor(e = {}, t) {
|
|
3445
3448
|
if (super(), this.options = er(e), this.services = {}, this.logger = me, this.modules = {
|
|
3446
3449
|
external: []
|
|
3447
|
-
},
|
|
3450
|
+
}, $n(this), t && !this.isInitialized && !e.isClone) {
|
|
3448
3451
|
if (!this.options.initAsync)
|
|
3449
3452
|
return this.init(e, t), this;
|
|
3450
3453
|
setTimeout(() => {
|
|
@@ -3476,7 +3479,7 @@ class Ie extends Ze {
|
|
|
3476
3479
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3477
3480
|
}), l && (!this.options.interpolation.format || this.options.interpolation.format === r.interpolation.format) && (u.formatter = s(l), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Tn(this.options), u.utils = {
|
|
3478
3481
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3479
|
-
}, u.backendConnector = new
|
|
3482
|
+
}, u.backendConnector = new An(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (d, ...h) => {
|
|
3480
3483
|
this.emit(d, ...h);
|
|
3481
3484
|
}), 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 Xe(this.services, this.options), this.translator.on("*", (d, ...h) => {
|
|
3482
3485
|
this.emit(d, ...h);
|
|
@@ -3493,7 +3496,7 @@ class Ie extends Ze {
|
|
|
3493
3496
|
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((l) => {
|
|
3494
3497
|
this[l] = (...f) => (this.store[l](...f), this);
|
|
3495
3498
|
});
|
|
3496
|
-
const i =
|
|
3499
|
+
const i = $e(), c = () => {
|
|
3497
3500
|
const l = (f, u) => {
|
|
3498
3501
|
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), i.resolve(u), t(f, u);
|
|
3499
3502
|
};
|
|
@@ -3521,7 +3524,7 @@ class Ie extends Ze {
|
|
|
3521
3524
|
r(null);
|
|
3522
3525
|
}
|
|
3523
3526
|
reloadResources(e, t, r) {
|
|
3524
|
-
const s =
|
|
3527
|
+
const s = $e();
|
|
3525
3528
|
return typeof e == "function" && (r = e, e = void 0), typeof t == "function" && (r = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), r || (r = Ue), this.services.backendConnector.reload(e, t, (a) => {
|
|
3526
3529
|
s.resolve(), r(a);
|
|
3527
3530
|
}), s;
|
|
@@ -3545,7 +3548,7 @@ class Ie extends Ze {
|
|
|
3545
3548
|
}
|
|
3546
3549
|
changeLanguage(e, t) {
|
|
3547
3550
|
this.isLanguageChangingTo = e;
|
|
3548
|
-
const r =
|
|
3551
|
+
const r = $e();
|
|
3549
3552
|
this.emit("languageChanging", e);
|
|
3550
3553
|
const s = (i) => {
|
|
3551
3554
|
this.language = i, this.languages = this.services.languageUtils.toResolveHierarchy(i), this.resolvedLanguage = void 0, this.setResolvedLanguage(i);
|
|
@@ -3602,7 +3605,7 @@ class Ie extends Ze {
|
|
|
3602
3605
|
return !!(this.hasResourceBundle(r, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || o(r, e) && (!s || o(a, e)));
|
|
3603
3606
|
}
|
|
3604
3607
|
loadNamespaces(e, t) {
|
|
3605
|
-
const r =
|
|
3608
|
+
const r = $e();
|
|
3606
3609
|
return this.options.ns ? (H(e) && (e = [e]), e.forEach((s) => {
|
|
3607
3610
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3608
3611
|
}), this.loadResources((s) => {
|
|
@@ -3610,7 +3613,7 @@ class Ie extends Ze {
|
|
|
3610
3613
|
}), r) : (t && t(), Promise.resolve());
|
|
3611
3614
|
}
|
|
3612
3615
|
loadLanguages(e, t) {
|
|
3613
|
-
const r =
|
|
3616
|
+
const r = $e();
|
|
3614
3617
|
H(e) && (e = [e]);
|
|
3615
3618
|
const s = this.options.preload || [], a = e.filter((o) => s.indexOf(o) < 0 && this.services.languageUtils.isSupportedCode(o));
|
|
3616
3619
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((o) => {
|
|
@@ -3776,7 +3779,7 @@ function Qe() {
|
|
|
3776
3779
|
);
|
|
3777
3780
|
return { format: n, getCurrentLanguage: e, translate: t };
|
|
3778
3781
|
}
|
|
3779
|
-
var yt = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n))(yt || {}), oe = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(oe || {}),
|
|
3782
|
+
var yt = /* @__PURE__ */ ((n) => (n.CALENDAR_FOR = "Date.CalendarFor", n.CLOSE = "Generic.Close", n.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", n))(yt || {}), oe = /* @__PURE__ */ ((n) => (n.MONDAY = "Day.Monday", n.MONDAY_SHORT = "Day.MondayShort", n.TUESDAY = "Day.Tuesday", n.TUESDAY_SHORT = "Day.TuesdayShort", n.WEDNESDAY = "Day.Wednesday", n.WEDNESDAY_SHORT = "Day.WednesdayShort", n.THURSDAY = "Day.Thursday", n.THURSDAY_SHORT = "Day.ThursdayShort", n.FRIDAY = "Day.Friday", n.FRIDAY_SHORT = "Day.FridayShort", n.SATURDAY = "Day.Saturday", n.SATURDAY_SHORT = "Day.SaturdayShort", n.SUNDAY = "Day.Sunday", n.SUNDAY_SHORT = "Day.SundayShort", n))(oe || {}), ue = /* @__PURE__ */ ((n) => (n.JANUARY = "Month.January", n.FEBRUARY = "Month.February", n.MARCH = "Month.March", n.APRIL = "Month.April", n.MAY = "Month.May", n.JUNE = "Month.June", n.JULY = "Month.July", n.AUGUST = "Month.August", n.SEPTEMBER = "Month.September", n.OCTOBER = "Month.October", n.NOVEMBER = "Month.November", n.DECEMBER = "Month.December", n))(ue || {}), pt = /* @__PURE__ */ ((n) => (n.PREVIOUS_DAY = "Date.PreviousDay", n.PREVIOUS_WEEK = "Date.PreviousWeek", n.PREVIOUS_MONTH = "Date.PreviousMonth", n.PREVIOUS_YEAR = "Date.PreviousYear", n.NEXT_DAY = "Date.NextDay", n.NEXT_WEEK = "Date.NextWeek", n.NEXT_MONTH = "Date.NextMonth", n.NEXT_YEAR = "Date.NextYear", n.YESTERDAY = "Date.Yesterday", n.TODAY = "Date.Today", n.TOMORROW = "Date.Tomorrow", n))(pt || {});
|
|
3780
3783
|
function Bn({
|
|
3781
3784
|
selectedDate: n,
|
|
3782
3785
|
onDateChange: e,
|
|
@@ -3796,19 +3799,19 @@ function Bn({
|
|
|
3796
3799
|
c ? c.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3797
3800
|
), [g, y] = X(
|
|
3798
3801
|
c ? c.getDate() : null
|
|
3799
|
-
), b = xe(null),
|
|
3800
|
-
a(
|
|
3801
|
-
a(
|
|
3802
|
-
a(
|
|
3803
|
-
a(
|
|
3804
|
-
a(
|
|
3805
|
-
a(
|
|
3806
|
-
a(
|
|
3807
|
-
a(
|
|
3808
|
-
a(
|
|
3809
|
-
a(
|
|
3810
|
-
a(
|
|
3811
|
-
a(
|
|
3802
|
+
), b = xe(null), w = xe([]), T = [
|
|
3803
|
+
a(ue.JANUARY),
|
|
3804
|
+
a(ue.FEBRUARY),
|
|
3805
|
+
a(ue.MARCH),
|
|
3806
|
+
a(ue.APRIL),
|
|
3807
|
+
a(ue.MAY),
|
|
3808
|
+
a(ue.JUNE),
|
|
3809
|
+
a(ue.JULY),
|
|
3810
|
+
a(ue.AUGUST),
|
|
3811
|
+
a(ue.SEPTEMBER),
|
|
3812
|
+
a(ue.OCTOBER),
|
|
3813
|
+
a(ue.NOVEMBER),
|
|
3814
|
+
a(ue.DECEMBER)
|
|
3812
3815
|
], P = [
|
|
3813
3816
|
{
|
|
3814
3817
|
value: a(oe.SUNDAY_SHORT),
|
|
@@ -3838,11 +3841,11 @@ function Bn({
|
|
|
3838
3841
|
value: a(oe.SATURDAY_SHORT),
|
|
3839
3842
|
full: a(oe.SATURDAY)
|
|
3840
3843
|
}
|
|
3841
|
-
],
|
|
3844
|
+
], S = (I) => t.some((p) => {
|
|
3842
3845
|
const m = p.start.getTime(), E = p.end.getTime(), R = I.getTime();
|
|
3843
3846
|
return R >= m && R <= E;
|
|
3844
3847
|
}), v = (I) => {
|
|
3845
|
-
|
|
3848
|
+
S(I) || (l(I), y(I.getDate()), e && e(Ir(I)));
|
|
3846
3849
|
}, D = () => {
|
|
3847
3850
|
f === 0 ? (u(11), h(d - 1)) : u(f - 1), y(1);
|
|
3848
3851
|
}, C = () => {
|
|
@@ -3852,7 +3855,7 @@ function Bn({
|
|
|
3852
3855
|
const p = q.findIndex(
|
|
3853
3856
|
(E) => E !== null && E.getDate() === I
|
|
3854
3857
|
);
|
|
3855
|
-
p !== -1 &&
|
|
3858
|
+
p !== -1 && w.current[p] && ((m = w.current[p]) == null || m.focus(), y(I));
|
|
3856
3859
|
}, k = (I, p) => {
|
|
3857
3860
|
const m = q[p];
|
|
3858
3861
|
if (!m) return;
|
|
@@ -3861,15 +3864,15 @@ function Bn({
|
|
|
3861
3864
|
case "ArrowRight":
|
|
3862
3865
|
I.preventDefault();
|
|
3863
3866
|
{
|
|
3864
|
-
let
|
|
3865
|
-
if (
|
|
3867
|
+
let O = R + 1, A = new Date(d, f, O);
|
|
3868
|
+
if (O > E) {
|
|
3866
3869
|
const N = f === 11 ? d + 1 : d, M = f === 11 ? 0 : f + 1;
|
|
3867
|
-
|
|
3870
|
+
O = 1, A = new Date(N, M, O), C(), setTimeout(() => {
|
|
3868
3871
|
V(1, "forward");
|
|
3869
3872
|
}, 0);
|
|
3870
3873
|
return;
|
|
3871
3874
|
}
|
|
3872
|
-
|
|
3875
|
+
S(A) ? V(O, "forward") : j(O);
|
|
3873
3876
|
}
|
|
3874
3877
|
break;
|
|
3875
3878
|
case "Tab":
|
|
@@ -3877,43 +3880,43 @@ function Bn({
|
|
|
3877
3880
|
case "ArrowLeft":
|
|
3878
3881
|
I.preventDefault();
|
|
3879
3882
|
{
|
|
3880
|
-
let
|
|
3881
|
-
if (
|
|
3883
|
+
let O = R - 1, A = new Date(d, f, O);
|
|
3884
|
+
if (O < 1) {
|
|
3882
3885
|
const N = f === 0 ? d - 1 : d, M = f === 0 ? 11 : f - 1, L = Y(N, M);
|
|
3883
|
-
|
|
3886
|
+
O = L, A = new Date(N, M, O), D(), setTimeout(() => {
|
|
3884
3887
|
V(L, "backward");
|
|
3885
3888
|
}, 0);
|
|
3886
3889
|
return;
|
|
3887
3890
|
}
|
|
3888
|
-
|
|
3891
|
+
S(A) ? V(O, "backward") : j(O);
|
|
3889
3892
|
}
|
|
3890
3893
|
break;
|
|
3891
3894
|
case "ArrowUp":
|
|
3892
3895
|
I.preventDefault();
|
|
3893
3896
|
{
|
|
3894
|
-
let
|
|
3895
|
-
if (
|
|
3897
|
+
let O = R - 7, A = new Date(d, f, O);
|
|
3898
|
+
if (O < 1) {
|
|
3896
3899
|
const N = f === 0 ? d - 1 : d, M = f === 0 ? 11 : f - 1;
|
|
3897
|
-
|
|
3898
|
-
V(
|
|
3900
|
+
O = Y(N, M) + O, A = new Date(N, M, O), D(), setTimeout(() => {
|
|
3901
|
+
V(O, "backward");
|
|
3899
3902
|
}, 0);
|
|
3900
3903
|
return;
|
|
3901
3904
|
}
|
|
3902
|
-
|
|
3905
|
+
S(A) ? V(O, "backward") : j(O);
|
|
3903
3906
|
}
|
|
3904
3907
|
break;
|
|
3905
3908
|
case "ArrowDown":
|
|
3906
3909
|
I.preventDefault();
|
|
3907
3910
|
{
|
|
3908
|
-
let
|
|
3909
|
-
if (
|
|
3911
|
+
let O = R + 7, A = new Date(d, f, O);
|
|
3912
|
+
if (O > E) {
|
|
3910
3913
|
const N = f === 11 ? d + 1 : d, M = f === 11 ? 0 : f + 1;
|
|
3911
|
-
|
|
3912
|
-
V(
|
|
3914
|
+
O = O - E, A = new Date(N, M, O), C(), setTimeout(() => {
|
|
3915
|
+
V(O, "forward");
|
|
3913
3916
|
}, 0);
|
|
3914
3917
|
return;
|
|
3915
3918
|
}
|
|
3916
|
-
|
|
3919
|
+
S(A) ? V(O, "forward") : j(O);
|
|
3917
3920
|
}
|
|
3918
3921
|
break;
|
|
3919
3922
|
case "Home":
|
|
@@ -3924,25 +3927,25 @@ function Bn({
|
|
|
3924
3927
|
break;
|
|
3925
3928
|
case "PageUp":
|
|
3926
3929
|
I.preventDefault(), D(), setTimeout(() => {
|
|
3927
|
-
const
|
|
3930
|
+
const O = Y(
|
|
3928
3931
|
f === 0 ? d - 1 : d,
|
|
3929
3932
|
f === 0 ? 11 : f - 1
|
|
3930
|
-
),
|
|
3931
|
-
V(
|
|
3933
|
+
), A = Math.min(R, O);
|
|
3934
|
+
V(A, "forward");
|
|
3932
3935
|
}, 0);
|
|
3933
3936
|
break;
|
|
3934
3937
|
case "PageDown":
|
|
3935
3938
|
I.preventDefault(), C(), setTimeout(() => {
|
|
3936
|
-
const
|
|
3939
|
+
const O = Y(
|
|
3937
3940
|
f === 11 ? d + 1 : d,
|
|
3938
3941
|
f === 11 ? 0 : f + 1
|
|
3939
|
-
),
|
|
3940
|
-
V(
|
|
3942
|
+
), A = Math.min(R, O);
|
|
3943
|
+
V(A, "forward");
|
|
3941
3944
|
}, 0);
|
|
3942
3945
|
break;
|
|
3943
3946
|
case " ":
|
|
3944
3947
|
case "Space":
|
|
3945
|
-
if (
|
|
3948
|
+
if (S(m)) return;
|
|
3946
3949
|
y(m.getDate()), l(m);
|
|
3947
3950
|
break;
|
|
3948
3951
|
case "Enter":
|
|
@@ -3954,7 +3957,7 @@ function Bn({
|
|
|
3954
3957
|
if (p === "forward") {
|
|
3955
3958
|
for (let E = I; E <= m; E++) {
|
|
3956
3959
|
const R = new Date(d, f, E);
|
|
3957
|
-
if (!
|
|
3960
|
+
if (!S(R)) {
|
|
3958
3961
|
j(E);
|
|
3959
3962
|
return;
|
|
3960
3963
|
}
|
|
@@ -3963,16 +3966,16 @@ function Bn({
|
|
|
3963
3966
|
V(1, "forward");
|
|
3964
3967
|
}, 0);
|
|
3965
3968
|
} else {
|
|
3966
|
-
for (let
|
|
3967
|
-
const N = new Date(d, f,
|
|
3968
|
-
if (!
|
|
3969
|
-
j(
|
|
3969
|
+
for (let A = I; A >= 1; A--) {
|
|
3970
|
+
const N = new Date(d, f, A);
|
|
3971
|
+
if (!S(N)) {
|
|
3972
|
+
j(A);
|
|
3970
3973
|
return;
|
|
3971
3974
|
}
|
|
3972
3975
|
}
|
|
3973
|
-
const E = f === 0 ? d - 1 : d, R = f === 0 ? 11 : f - 1,
|
|
3976
|
+
const E = f === 0 ? d - 1 : d, R = f === 0 ? 11 : f - 1, O = Y(E, R);
|
|
3974
3977
|
D(), setTimeout(() => {
|
|
3975
|
-
V(
|
|
3978
|
+
V(O, "backward");
|
|
3976
3979
|
}, 0);
|
|
3977
3980
|
}
|
|
3978
3981
|
}, q = (() => {
|
|
@@ -3998,7 +4001,7 @@ function Bn({
|
|
|
3998
4001
|
const p = q.findIndex(
|
|
3999
4002
|
(m) => m !== null && m.getDate() === g
|
|
4000
4003
|
);
|
|
4001
|
-
p !== -1 &&
|
|
4004
|
+
p !== -1 && w.current[p] && ((I = w.current[p]) == null || I.focus());
|
|
4002
4005
|
}
|
|
4003
4006
|
}, [f, d, g, q]);
|
|
4004
4007
|
const U = {
|
|
@@ -4012,8 +4015,8 @@ function Bn({
|
|
|
4012
4015
|
${p ? "smp-datepickercalendar-td-selected" : ""}
|
|
4013
4016
|
${m ? "smp-datepickercalendar-td-focused" : ""}
|
|
4014
4017
|
${E ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4015
|
-
}, z = () => `${
|
|
4016
|
-
return /* @__PURE__ */
|
|
4018
|
+
}, z = () => `${T[f]} ${d.toString()}`;
|
|
4019
|
+
return /* @__PURE__ */ x.jsxs(
|
|
4017
4020
|
"div",
|
|
4018
4021
|
{
|
|
4019
4022
|
className: U.wrapper,
|
|
@@ -4023,7 +4026,7 @@ function Bn({
|
|
|
4023
4026
|
"aria-modal": "true",
|
|
4024
4027
|
"data-component": "datepicker-calendar",
|
|
4025
4028
|
children: [
|
|
4026
|
-
/* @__PURE__ */
|
|
4029
|
+
/* @__PURE__ */ x.jsxs(
|
|
4027
4030
|
"div",
|
|
4028
4031
|
{
|
|
4029
4032
|
style: {
|
|
@@ -4033,7 +4036,7 @@ function Bn({
|
|
|
4033
4036
|
marginBottom: "16px"
|
|
4034
4037
|
},
|
|
4035
4038
|
children: [
|
|
4036
|
-
/* @__PURE__ */
|
|
4039
|
+
/* @__PURE__ */ x.jsx(
|
|
4037
4040
|
Ce,
|
|
4038
4041
|
{
|
|
4039
4042
|
onClick: D,
|
|
@@ -4043,7 +4046,7 @@ function Bn({
|
|
|
4043
4046
|
variant: "base"
|
|
4044
4047
|
}
|
|
4045
4048
|
),
|
|
4046
|
-
/* @__PURE__ */
|
|
4049
|
+
/* @__PURE__ */ x.jsx(
|
|
4047
4050
|
"div",
|
|
4048
4051
|
{
|
|
4049
4052
|
"aria-label": z(),
|
|
@@ -4051,7 +4054,7 @@ function Bn({
|
|
|
4051
4054
|
children: z()
|
|
4052
4055
|
}
|
|
4053
4056
|
),
|
|
4054
|
-
/* @__PURE__ */
|
|
4057
|
+
/* @__PURE__ */ x.jsx(
|
|
4055
4058
|
Ce,
|
|
4056
4059
|
{
|
|
4057
4060
|
onClick: C,
|
|
@@ -4064,15 +4067,15 @@ function Bn({
|
|
|
4064
4067
|
]
|
|
4065
4068
|
}
|
|
4066
4069
|
),
|
|
4067
|
-
/* @__PURE__ */
|
|
4070
|
+
/* @__PURE__ */ x.jsxs(
|
|
4068
4071
|
"table",
|
|
4069
4072
|
{
|
|
4070
4073
|
ref: b,
|
|
4071
4074
|
role: "grid",
|
|
4072
|
-
"aria-label": `${a(yt.CALENDAR_FOR)} ${
|
|
4075
|
+
"aria-label": `${a(yt.CALENDAR_FOR)} ${T[f]} ${d}`,
|
|
4073
4076
|
className: U.table,
|
|
4074
4077
|
children: [
|
|
4075
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ x.jsx("thead", { children: /* @__PURE__ */ x.jsx("tr", { children: P.map((I) => /* @__PURE__ */ x.jsx(
|
|
4076
4079
|
"th",
|
|
4077
4080
|
{
|
|
4078
4081
|
scope: "col",
|
|
@@ -4082,10 +4085,10 @@ function Bn({
|
|
|
4082
4085
|
},
|
|
4083
4086
|
I.value
|
|
4084
4087
|
)) }) }),
|
|
4085
|
-
/* @__PURE__ */
|
|
4088
|
+
/* @__PURE__ */ x.jsx("tbody", { children: Z.map((I, p) => /* @__PURE__ */ x.jsx("tr", { children: I.map((m, E) => {
|
|
4086
4089
|
const R = p * 7 + E;
|
|
4087
4090
|
if (m === null)
|
|
4088
|
-
return /* @__PURE__ */
|
|
4091
|
+
return /* @__PURE__ */ x.jsx(
|
|
4089
4092
|
"td",
|
|
4090
4093
|
{
|
|
4091
4094
|
className: U.td(
|
|
@@ -4097,24 +4100,24 @@ function Bn({
|
|
|
4097
4100
|
},
|
|
4098
4101
|
`empty-${E}`
|
|
4099
4102
|
);
|
|
4100
|
-
const
|
|
4101
|
-
return /* @__PURE__ */
|
|
4103
|
+
const O = m.getDate() === i.getDate() && m.getMonth() === i.getMonth() && m.getFullYear() === i.getFullYear(), A = c && m.getDate() === c.getDate() && m.getMonth() === c.getMonth() && m.getFullYear() === c.getFullYear(), N = g === m.getDate(), M = S(m);
|
|
4104
|
+
return /* @__PURE__ */ x.jsx(
|
|
4102
4105
|
"td",
|
|
4103
4106
|
{
|
|
4104
4107
|
role: "gridcell",
|
|
4105
|
-
"aria-selected":
|
|
4108
|
+
"aria-selected": A,
|
|
4106
4109
|
tabIndex: N ? 0 : -1,
|
|
4107
4110
|
onClick: () => v(m),
|
|
4108
4111
|
onKeyDown: (L) => k(L, R),
|
|
4109
|
-
"aria-label": `${m.getDate()} ${
|
|
4110
|
-
"data-selected":
|
|
4112
|
+
"aria-label": `${m.getDate()} ${T[m.getMonth()]} ${m.getFullYear()}`,
|
|
4113
|
+
"data-selected": A,
|
|
4111
4114
|
"aria-disabled": M,
|
|
4112
4115
|
ref: (L) => {
|
|
4113
|
-
|
|
4116
|
+
w.current[R] = L;
|
|
4114
4117
|
},
|
|
4115
4118
|
className: U.td(
|
|
4116
|
-
|
|
4117
|
-
|
|
4119
|
+
O,
|
|
4120
|
+
A,
|
|
4118
4121
|
N,
|
|
4119
4122
|
M
|
|
4120
4123
|
),
|
|
@@ -4149,7 +4152,7 @@ const qn = ({
|
|
|
4149
4152
|
typeof u == "object" && u !== null && "current" in u
|
|
4150
4153
|
) {
|
|
4151
4154
|
const D = u.current.querySelector("input");
|
|
4152
|
-
D && D === document.activeElement &&
|
|
4155
|
+
D && D === document.activeElement && w();
|
|
4153
4156
|
}
|
|
4154
4157
|
}), gr(a, d);
|
|
4155
4158
|
const { format: h, getCurrentLanguage: g } = Qe(), y = ye(
|
|
@@ -4170,26 +4173,26 @@ const qn = ({
|
|
|
4170
4173
|
const { formattedDate: D, isoDate: C, isValid: Y } = y(n);
|
|
4171
4174
|
c(Y && C || n), f(Y && D || n);
|
|
4172
4175
|
}, [n, h, y]);
|
|
4173
|
-
const b = () => o((D) => !D),
|
|
4176
|
+
const b = () => o((D) => !D), w = () => {
|
|
4174
4177
|
P(l);
|
|
4175
|
-
},
|
|
4178
|
+
}, T = (D) => {
|
|
4176
4179
|
P(D), o(!1);
|
|
4177
4180
|
}, P = (D) => {
|
|
4178
4181
|
const { isoDate: C, isValid: Y } = y(D);
|
|
4179
4182
|
t && t(Y && C || D);
|
|
4180
|
-
},
|
|
4183
|
+
}, S = (D) => {
|
|
4181
4184
|
f(D);
|
|
4182
4185
|
}, v = (D) => {
|
|
4183
4186
|
D.key === "Enter" && (D.preventDefault(), P(l));
|
|
4184
4187
|
};
|
|
4185
|
-
return /* @__PURE__ */
|
|
4186
|
-
/* @__PURE__ */
|
|
4188
|
+
return /* @__PURE__ */ x.jsxs("div", { "data-component": "date-picker", children: [
|
|
4189
|
+
/* @__PURE__ */ x.jsx(
|
|
4187
4190
|
De,
|
|
4188
4191
|
{
|
|
4189
4192
|
bindValue: l,
|
|
4190
4193
|
placeholder: e,
|
|
4191
|
-
onBlur:
|
|
4192
|
-
onChange:
|
|
4194
|
+
onBlur: w,
|
|
4195
|
+
onChange: S,
|
|
4193
4196
|
onKeyDown: v,
|
|
4194
4197
|
shapeIcon: "calendar",
|
|
4195
4198
|
onShapeIconClick: b,
|
|
@@ -4197,11 +4200,11 @@ const qn = ({
|
|
|
4197
4200
|
...s
|
|
4198
4201
|
}
|
|
4199
4202
|
),
|
|
4200
|
-
a && /* @__PURE__ */
|
|
4203
|
+
a && /* @__PURE__ */ x.jsx(
|
|
4201
4204
|
Bn,
|
|
4202
4205
|
{
|
|
4203
4206
|
disabledDateRanges: r,
|
|
4204
|
-
onDateChange:
|
|
4207
|
+
onDateChange: T,
|
|
4205
4208
|
initialValue: ht(i) && i || "",
|
|
4206
4209
|
targetRef: d
|
|
4207
4210
|
}
|
|
@@ -4234,13 +4237,13 @@ const qn = ({
|
|
|
4234
4237
|
}, f = {
|
|
4235
4238
|
container: "smp-multipleAutocomplete-container"
|
|
4236
4239
|
};
|
|
4237
|
-
return /* @__PURE__ */
|
|
4240
|
+
return /* @__PURE__ */ x.jsxs(
|
|
4238
4241
|
"div",
|
|
4239
4242
|
{
|
|
4240
4243
|
className: f.container,
|
|
4241
4244
|
"data-component": "multiple-autocomplete",
|
|
4242
4245
|
children: [
|
|
4243
|
-
/* @__PURE__ */
|
|
4246
|
+
/* @__PURE__ */ x.jsx(
|
|
4244
4247
|
hr,
|
|
4245
4248
|
{
|
|
4246
4249
|
elements: n,
|
|
@@ -4251,7 +4254,7 @@ const qn = ({
|
|
|
4251
4254
|
}
|
|
4252
4255
|
}
|
|
4253
4256
|
),
|
|
4254
|
-
/* @__PURE__ */
|
|
4257
|
+
/* @__PURE__ */ x.jsx(
|
|
4255
4258
|
pr,
|
|
4256
4259
|
{
|
|
4257
4260
|
bindValue: "",
|
|
@@ -4270,7 +4273,7 @@ const qn = ({
|
|
|
4270
4273
|
);
|
|
4271
4274
|
}, zn = ({ ...n }) => {
|
|
4272
4275
|
const [e, t] = X(!1), r = e ? "visibility-off" : "visibility";
|
|
4273
|
-
return /* @__PURE__ */
|
|
4276
|
+
return /* @__PURE__ */ x.jsx(
|
|
4274
4277
|
De,
|
|
4275
4278
|
{
|
|
4276
4279
|
...n,
|
|
@@ -4286,7 +4289,7 @@ const qn = ({
|
|
|
4286
4289
|
var o;
|
|
4287
4290
|
a.key === "Enter" && (a.preventDefault(), (o = n.onEnter) == null || o.call(n, e));
|
|
4288
4291
|
};
|
|
4289
|
-
return /* @__PURE__ */
|
|
4292
|
+
return /* @__PURE__ */ x.jsx(
|
|
4290
4293
|
De,
|
|
4291
4294
|
{
|
|
4292
4295
|
...n,
|
|
@@ -4381,133 +4384,133 @@ const We = (n, e, t) => ({
|
|
|
4381
4384
|
label: i,
|
|
4382
4385
|
isEditable: g,
|
|
4383
4386
|
...r
|
|
4384
|
-
},
|
|
4387
|
+
}, w = (S, v, D) => Ar(t) ? We(S, new Be(t, v).getLegacyValue()) : We(S, v, D), T = (S) => We(y, new He(t, S).getLegacyValue()), P = (S) => Jn(y, S);
|
|
4385
4388
|
switch (e) {
|
|
4386
4389
|
case ie.AUTOCOMPLETE: {
|
|
4387
|
-
const
|
|
4390
|
+
const S = {
|
|
4388
4391
|
...b,
|
|
4389
4392
|
bindValue: t.k,
|
|
4390
4393
|
optionalDisplayValue: n,
|
|
4391
4394
|
onChange: (v, D) => {
|
|
4392
|
-
l == null || l(
|
|
4395
|
+
l == null || l(w(y, v, D));
|
|
4393
4396
|
}
|
|
4394
4397
|
};
|
|
4395
|
-
return /* @__PURE__ */
|
|
4398
|
+
return /* @__PURE__ */ x.jsx(pr, { ...S });
|
|
4396
4399
|
}
|
|
4397
4400
|
case ie.BUTTON: {
|
|
4398
|
-
const
|
|
4401
|
+
const S = {
|
|
4399
4402
|
...b,
|
|
4400
4403
|
bindValue: t.k,
|
|
4401
4404
|
optionalDisplayValue: n,
|
|
4402
4405
|
onClick: () => {
|
|
4403
|
-
f == null || f(
|
|
4406
|
+
f == null || f(w(y, t.k));
|
|
4404
4407
|
}
|
|
4405
4408
|
};
|
|
4406
|
-
return /* @__PURE__ */
|
|
4409
|
+
return /* @__PURE__ */ x.jsx(Ce, { ...S });
|
|
4407
4410
|
}
|
|
4408
4411
|
case ie.BUTTON_LIST: {
|
|
4409
|
-
const
|
|
4412
|
+
const S = {
|
|
4410
4413
|
...b,
|
|
4411
4414
|
options: c,
|
|
4412
4415
|
onClick: (v, D) => {
|
|
4413
4416
|
const C = { ...y, fun: D };
|
|
4414
|
-
f == null || f(
|
|
4417
|
+
f == null || f(w(C, v));
|
|
4415
4418
|
}
|
|
4416
4419
|
};
|
|
4417
|
-
return /* @__PURE__ */
|
|
4420
|
+
return /* @__PURE__ */ x.jsx(on, { ...S });
|
|
4418
4421
|
}
|
|
4419
4422
|
case ie.COMBOBOX: {
|
|
4420
|
-
const
|
|
4423
|
+
const S = {
|
|
4421
4424
|
...b,
|
|
4422
4425
|
bindValue: t.k,
|
|
4423
4426
|
optionalDisplayValue: n,
|
|
4424
4427
|
onChange: (v, D) => {
|
|
4425
|
-
l == null || l(
|
|
4428
|
+
l == null || l(w(y, v, D));
|
|
4426
4429
|
}
|
|
4427
4430
|
};
|
|
4428
|
-
return /* @__PURE__ */
|
|
4431
|
+
return /* @__PURE__ */ x.jsx(fn, { ...S });
|
|
4429
4432
|
}
|
|
4430
4433
|
case ie.CHECKBOX: {
|
|
4431
|
-
const
|
|
4434
|
+
const S = {
|
|
4432
4435
|
...b,
|
|
4433
4436
|
bindValue: He.fromDataObj(t).getValue(),
|
|
4434
4437
|
optionalDisplayValue: n,
|
|
4435
4438
|
onChange: (v) => {
|
|
4436
|
-
l == null || l(
|
|
4439
|
+
l == null || l(T(v));
|
|
4437
4440
|
}
|
|
4438
4441
|
};
|
|
4439
|
-
return /* @__PURE__ */
|
|
4442
|
+
return /* @__PURE__ */ x.jsx(ln, { ...S });
|
|
4440
4443
|
}
|
|
4441
4444
|
case ie.CHIP: {
|
|
4442
|
-
const
|
|
4445
|
+
const S = {
|
|
4443
4446
|
...b,
|
|
4444
4447
|
elements: rr(y)
|
|
4445
4448
|
};
|
|
4446
|
-
return /* @__PURE__ */
|
|
4449
|
+
return /* @__PURE__ */ x.jsx(hr, { ...S });
|
|
4447
4450
|
}
|
|
4448
4451
|
case ie.DATE: {
|
|
4449
|
-
const
|
|
4452
|
+
const S = {
|
|
4450
4453
|
...b,
|
|
4451
4454
|
bindValue: Be.fromDataObj(t).getValue(),
|
|
4452
4455
|
onChange: (v) => {
|
|
4453
|
-
l == null || l(
|
|
4456
|
+
l == null || l(w(y, v));
|
|
4454
4457
|
}
|
|
4455
4458
|
};
|
|
4456
|
-
return /* @__PURE__ */
|
|
4459
|
+
return /* @__PURE__ */ x.jsx(qn, { ...S });
|
|
4457
4460
|
}
|
|
4458
4461
|
case ie.ICON:
|
|
4459
4462
|
case ie.IMAGE: {
|
|
4460
|
-
const
|
|
4463
|
+
const S = {
|
|
4461
4464
|
...b,
|
|
4462
4465
|
icon: s,
|
|
4463
4466
|
placeholderIcon: o,
|
|
4464
4467
|
isInteractable: !!b.fun,
|
|
4465
4468
|
onClick: () => {
|
|
4466
|
-
f == null || f(
|
|
4469
|
+
f == null || f(w(y, t.k));
|
|
4467
4470
|
}
|
|
4468
4471
|
};
|
|
4469
|
-
return /* @__PURE__ */
|
|
4472
|
+
return /* @__PURE__ */ x.jsx(pe, { ...S });
|
|
4470
4473
|
}
|
|
4471
4474
|
case ie.MULTI_AUTOCOMPLETE: {
|
|
4472
|
-
const
|
|
4475
|
+
const S = {
|
|
4473
4476
|
...b,
|
|
4474
4477
|
elements: rr(y),
|
|
4475
4478
|
onChange: (v) => {
|
|
4476
4479
|
l == null || l(P(v));
|
|
4477
4480
|
}
|
|
4478
4481
|
};
|
|
4479
|
-
return /* @__PURE__ */
|
|
4482
|
+
return /* @__PURE__ */ x.jsx(Kn, { ...S });
|
|
4480
4483
|
}
|
|
4481
4484
|
case ie.PASSWORD: {
|
|
4482
|
-
const
|
|
4485
|
+
const S = {
|
|
4483
4486
|
...b,
|
|
4484
4487
|
bindValue: t.k,
|
|
4485
4488
|
onChange: (v) => {
|
|
4486
|
-
l == null || l(
|
|
4489
|
+
l == null || l(w(y, v));
|
|
4487
4490
|
}
|
|
4488
4491
|
};
|
|
4489
|
-
return /* @__PURE__ */
|
|
4492
|
+
return /* @__PURE__ */ x.jsx(zn, { ...S });
|
|
4490
4493
|
}
|
|
4491
4494
|
case ie.SPOTLIGHT: {
|
|
4492
|
-
const
|
|
4495
|
+
const S = {
|
|
4493
4496
|
...b,
|
|
4494
4497
|
bindValue: t.k,
|
|
4495
4498
|
onEnter: (v) => {
|
|
4496
|
-
u == null || u(
|
|
4499
|
+
u == null || u(w(y, v));
|
|
4497
4500
|
}
|
|
4498
4501
|
};
|
|
4499
|
-
return /* @__PURE__ */
|
|
4502
|
+
return /* @__PURE__ */ x.jsx(Gn, { ...S });
|
|
4500
4503
|
}
|
|
4501
4504
|
case ie.TEXT_FIELD:
|
|
4502
4505
|
case void 0: {
|
|
4503
|
-
const
|
|
4506
|
+
const S = {
|
|
4504
4507
|
...b,
|
|
4505
4508
|
bindValue: t.k,
|
|
4506
4509
|
onChange: (v) => {
|
|
4507
|
-
l == null || l(
|
|
4510
|
+
l == null || l(w(y, v));
|
|
4508
4511
|
}
|
|
4509
4512
|
};
|
|
4510
|
-
return /* @__PURE__ */
|
|
4513
|
+
return /* @__PURE__ */ x.jsx(De, { ...S });
|
|
4511
4514
|
}
|
|
4512
4515
|
}
|
|
4513
4516
|
}, Xn = (n, e) => {
|
|
@@ -4563,21 +4566,21 @@ const We = (n, e, t) => ({
|
|
|
4563
4566
|
}, xr = ({ layout: n, cells: e }) => {
|
|
4564
4567
|
var u;
|
|
4565
4568
|
if (!((u = n.sections) != null && u.length))
|
|
4566
|
-
return /* @__PURE__ */
|
|
4569
|
+
return /* @__PURE__ */ x.jsx(x.Fragment, {});
|
|
4567
4570
|
const t = "--smp-grid-template-cols", r = "--smp-grid-template-rows", s = br(n.sections, e), a = (d) => d == null ? void 0 : d.reduce((h, g) => {
|
|
4568
|
-
var P,
|
|
4569
|
-
let y = "", b = {},
|
|
4570
|
-
return (P = g.sections) != null && P.length ? (y = de["smp-layout-section-grid"], b = a(g.sections), g.gridCols == null && (
|
|
4571
|
+
var P, S;
|
|
4572
|
+
let y = "", b = {}, w = {}, T = "";
|
|
4573
|
+
return (P = g.sections) != null && P.length ? (y = de["smp-layout-section-grid"], b = a(g.sections), g.gridCols == null && (T = `${de[g.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (g.horizontal || sr(g.sections)) && (w = nr(
|
|
4571
4574
|
g.sections,
|
|
4572
4575
|
g.horizontal ? t : r
|
|
4573
|
-
)))) : (
|
|
4576
|
+
)))) : (S = g.content) != null && S.length && (g.gridCols !== void 0 && g.gridCols > 0 ? (y = de["smp-layout-section-grid"], T = `${de["smp-grid-template-cols"]}`, w = {
|
|
4574
4577
|
[t]: `repeat(${g.gridCols}, 1fr)`
|
|
4575
4578
|
}) : y = de["smp-layout-section-flex"]), {
|
|
4576
4579
|
...h,
|
|
4577
4580
|
...b,
|
|
4578
4581
|
[g.id]: {
|
|
4579
|
-
classes: `${y} ${de[g.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${
|
|
4580
|
-
styles:
|
|
4582
|
+
classes: `${y} ${de[g.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${T} ${g.justify ? `smp-justifyContent-${g.justify}` : ""} ${g.align ? `smp-alignItems-${g.align}` : ""}`,
|
|
4583
|
+
styles: w
|
|
4581
4584
|
}
|
|
4582
4585
|
};
|
|
4583
4586
|
}, {}), o = a(s), i = {
|
|
@@ -4588,7 +4591,7 @@ const We = (n, e, t) => ({
|
|
|
4588
4591
|
n.horizontal ? t : r
|
|
4589
4592
|
) : {}, l = (d) => {
|
|
4590
4593
|
var g;
|
|
4591
|
-
const h = /* @__PURE__ */
|
|
4594
|
+
const h = /* @__PURE__ */ x.jsx(
|
|
4592
4595
|
"div",
|
|
4593
4596
|
{
|
|
4594
4597
|
"smp-id": "section-" + d.id,
|
|
@@ -4605,33 +4608,33 @@ const We = (n, e, t) => ({
|
|
|
4605
4608
|
},
|
|
4606
4609
|
"section-" + d.id
|
|
4607
4610
|
);
|
|
4608
|
-
return d.title ? /* @__PURE__ */
|
|
4609
|
-
/* @__PURE__ */
|
|
4611
|
+
return d.title ? /* @__PURE__ */ x.jsxs("div", { className: `${de["smp-layout-section-with-title"]}`, children: [
|
|
4612
|
+
/* @__PURE__ */ x.jsx(
|
|
4610
4613
|
"span",
|
|
4611
4614
|
{
|
|
4612
4615
|
className: `${de["smp-layout-section-title"]} ${d.justify ? `smp-justifyContent-${d.justify}` : ""} ${d.align ? `smp-alignItems-${d.align}` : ""}`,
|
|
4613
|
-
children: /* @__PURE__ */
|
|
4616
|
+
children: /* @__PURE__ */ x.jsx(ir, { label: d.title })
|
|
4614
4617
|
}
|
|
4615
4618
|
),
|
|
4616
4619
|
h
|
|
4617
4620
|
] }) : h;
|
|
4618
4621
|
}, f = (d, h, g, y) => {
|
|
4619
|
-
const b = d.colSpan !== void 0 ? d.colSpan > 0 ? d.colSpan : d.colStart !== void 0 && d.colStart < 1 ? 1 : null : null,
|
|
4620
|
-
gridColumnStart:
|
|
4621
|
-
gridColumnEnd:
|
|
4622
|
-
},
|
|
4623
|
-
return h ? /* @__PURE__ */
|
|
4622
|
+
const b = d.colSpan !== void 0 ? d.colSpan > 0 ? d.colSpan : d.colStart !== void 0 && d.colStart < 1 ? 1 : null : null, w = b !== null ? `span ${b}` : d.colStart, T = d.colEnd !== void 0 && d.colEnd > 0 ? d.colEnd : "", P = {
|
|
4623
|
+
gridColumnStart: w,
|
|
4624
|
+
gridColumnEnd: T
|
|
4625
|
+
}, S = `${de["smp-layout-cell-container"]} ${g ? `smp-justifyContent-${g}` : ""} ${y ? `smp-alignItems-${y}` : ""}`;
|
|
4626
|
+
return h ? /* @__PURE__ */ x.jsx(
|
|
4624
4627
|
"div",
|
|
4625
4628
|
{
|
|
4626
|
-
className:
|
|
4629
|
+
className: S,
|
|
4627
4630
|
style: { ...P },
|
|
4628
4631
|
"smp-id": d.id,
|
|
4629
|
-
children: /* @__PURE__ */
|
|
4632
|
+
children: /* @__PURE__ */ x.jsx(vr, { ...h })
|
|
4630
4633
|
},
|
|
4631
4634
|
d.id
|
|
4632
|
-
) : /* @__PURE__ */
|
|
4635
|
+
) : /* @__PURE__ */ x.jsx(x.Fragment, {});
|
|
4633
4636
|
};
|
|
4634
|
-
return /* @__PURE__ */
|
|
4637
|
+
return /* @__PURE__ */ x.jsx("div", { className: i.container, style: c, "smp-id": "layout", children: s == null ? void 0 : s.map((d) => l(d)) });
|
|
4635
4638
|
}, rs = ({ data: n, onClick: e, onEnter: t }) => {
|
|
4636
4639
|
var o, i;
|
|
4637
4640
|
const [r, s] = X(), a = ye(
|
|
@@ -4644,12 +4647,12 @@ const We = (n, e, t) => ({
|
|
|
4644
4647
|
const g = l.cells[h.name], y = {
|
|
4645
4648
|
...g,
|
|
4646
4649
|
onChange: (b) => {
|
|
4647
|
-
s((
|
|
4648
|
-
...
|
|
4650
|
+
s((w) => w && {
|
|
4651
|
+
...w,
|
|
4649
4652
|
[h.name]: {
|
|
4650
|
-
...
|
|
4653
|
+
...w[h.name],
|
|
4651
4654
|
obj: {
|
|
4652
|
-
...
|
|
4655
|
+
...w[h.name].obj,
|
|
4653
4656
|
k: b.obj.k
|
|
4654
4657
|
}
|
|
4655
4658
|
}
|
|
@@ -4674,8 +4677,8 @@ const We = (n, e, t) => ({
|
|
|
4674
4677
|
);
|
|
4675
4678
|
return le(() => {
|
|
4676
4679
|
s(a(n));
|
|
4677
|
-
}, [n, a]), !((o = n == null ? void 0 : n.rows) != null && o.length) || !((i = n.columns) != null && i.length) ? null : r && /* @__PURE__ */
|
|
4678
|
-
},
|
|
4680
|
+
}, [n, a]), !((o = n == null ? void 0 : n.rows) != null && o.length) || !((i = n.columns) != null && i.length) ? null : r && /* @__PURE__ */ x.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ x.jsx(xr, { layout: n.rows[0].layout, cells: r }) });
|
|
4681
|
+
}, ce = (n) => n == null ? !1 : typeof n == "string" ? n.toLocaleLowerCase() == "yes" : n, ns = ({
|
|
4679
4682
|
ColumnsNumber: n = 1,
|
|
4680
4683
|
data: e = {},
|
|
4681
4684
|
ForceText: t,
|
|
@@ -4693,11 +4696,11 @@ const We = (n, e, t) => ({
|
|
|
4693
4696
|
UmColor: g = "var(--smp-dashList-color-base)",
|
|
4694
4697
|
ForceValue: y,
|
|
4695
4698
|
ValueColName: b,
|
|
4696
|
-
ValueColor:
|
|
4697
|
-
SelectLayout:
|
|
4699
|
+
ValueColor: w = "var(--smp-dashList-color-base)",
|
|
4700
|
+
SelectLayout: T = "1",
|
|
4698
4701
|
onClick: P
|
|
4699
4702
|
}) => {
|
|
4700
|
-
const
|
|
4703
|
+
const S = "N/A", v = (e == null ? void 0 : e.columns) || [], D = (e == null ? void 0 : e.rows) || [], C = D.length > 0, Y = "--smp-dashList-color", _ = "smp-layout", j = "descr", k = "icon", V = "um", B = "value", q = o || "1em", Z = "18px", J = "--smp-dashList-columns", U = "--smp-dashList-fontSize", z = {
|
|
4701
4704
|
dash: (F = "1") => {
|
|
4702
4705
|
const G = p(F), te = G, re = m(G, j), fe = m(G, k), ve = m(G, V), he = m(G, B);
|
|
4703
4706
|
return {
|
|
@@ -4708,8 +4711,8 @@ const We = (n, e, t) => ({
|
|
|
4708
4711
|
value: he
|
|
4709
4712
|
};
|
|
4710
4713
|
},
|
|
4711
|
-
dashList: `smp-dash-list ${
|
|
4712
|
-
${
|
|
4714
|
+
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
4715
|
+
${ce(i) ? "smp-dash-list-horizontal" : ""}`
|
|
4713
4716
|
}, { format: I } = Qe(), p = (F) => `${_}-${F}`, m = (F, G) => `${F}__${G}`, E = (F) => `${Y}-${F}`, R = (F) => {
|
|
4714
4717
|
const G = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
4715
4718
|
if (G.test(F)) {
|
|
@@ -4718,15 +4721,15 @@ const We = (n, e, t) => ({
|
|
|
4718
4721
|
return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
|
|
4719
4722
|
}
|
|
4720
4723
|
return F;
|
|
4721
|
-
},
|
|
4724
|
+
}, O = (F) => {
|
|
4722
4725
|
if (!u) return F;
|
|
4723
|
-
const [G, te] =
|
|
4726
|
+
const [G, te] = A(u).map(
|
|
4724
4727
|
(Ee) => parseInt(Ee || "0")
|
|
4725
4728
|
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), fe = I(F, re, "it");
|
|
4726
4729
|
if (!G) return fe;
|
|
4727
4730
|
const [ve, he] = fe.split(",");
|
|
4728
4731
|
return ve + (he ? `,${he}` : "");
|
|
4729
|
-
},
|
|
4732
|
+
}, A = (F) => F.includes(";") ? F.split(";") : [F], N = (F) => {
|
|
4730
4733
|
const G = (re) => {
|
|
4731
4734
|
var fe;
|
|
4732
4735
|
if (re)
|
|
@@ -4750,8 +4753,8 @@ const We = (n, e, t) => ({
|
|
|
4750
4753
|
const G = z.dash(F);
|
|
4751
4754
|
return {
|
|
4752
4755
|
className: G,
|
|
4753
|
-
descr: (te) => /* @__PURE__ */
|
|
4754
|
-
icon: (te) => /* @__PURE__ */
|
|
4756
|
+
descr: (te) => /* @__PURE__ */ x.jsx("div", { className: G.descr, children: te }, `${F}-${j}`),
|
|
4757
|
+
icon: (te) => /* @__PURE__ */ x.jsx("div", { className: G.icon, children: /* @__PURE__ */ x.jsx(
|
|
4755
4758
|
pe,
|
|
4756
4759
|
{
|
|
4757
4760
|
color: f,
|
|
@@ -4760,16 +4763,16 @@ const We = (n, e, t) => ({
|
|
|
4760
4763
|
width: Z
|
|
4761
4764
|
}
|
|
4762
4765
|
) }, `${F}-${k}`),
|
|
4763
|
-
um: (te) => /* @__PURE__ */
|
|
4764
|
-
value: (te) => /* @__PURE__ */
|
|
4766
|
+
um: (te) => /* @__PURE__ */ x.jsx("div", { className: G.um, children: te }, `${F}-${V}`),
|
|
4767
|
+
value: (te) => /* @__PURE__ */ x.jsx("div", { className: G.value, children: te }, `${F}-${B}`)
|
|
4765
4768
|
};
|
|
4766
|
-
})(
|
|
4769
|
+
})(T), ne = (F) => {
|
|
4767
4770
|
const { descr: G, icon: te, um: re, value: fe } = N(F), ve = {
|
|
4768
4771
|
[E(j)]: R(s),
|
|
4769
4772
|
[E(V)]: R(g),
|
|
4770
|
-
[E(B)]: R(
|
|
4771
|
-
}, he = [], Ee =
|
|
4772
|
-
switch (
|
|
4773
|
+
[E(B)]: R(w)
|
|
4774
|
+
}, he = [], Ee = O(fe);
|
|
4775
|
+
switch (T) {
|
|
4773
4776
|
case "2":
|
|
4774
4777
|
te && he.push(W.icon(te)), he.push(W.descr(G)), he.push(
|
|
4775
4778
|
W.value(re ? Ee + " " + re : Ee)
|
|
@@ -4781,7 +4784,7 @@ const We = (n, e, t) => ({
|
|
|
4781
4784
|
W.value(re ? Ee + " " + re : Ee)
|
|
4782
4785
|
);
|
|
4783
4786
|
}
|
|
4784
|
-
return /* @__PURE__ */
|
|
4787
|
+
return /* @__PURE__ */ x.jsx(
|
|
4785
4788
|
"div",
|
|
4786
4789
|
{
|
|
4787
4790
|
className: W.className.container,
|
|
@@ -4794,11 +4797,11 @@ const We = (n, e, t) => ({
|
|
|
4794
4797
|
},
|
|
4795
4798
|
F.rowId
|
|
4796
4799
|
);
|
|
4797
|
-
},
|
|
4800
|
+
}, $ = {
|
|
4798
4801
|
[J]: String(n),
|
|
4799
4802
|
[U]: q
|
|
4800
4803
|
};
|
|
4801
|
-
return /* @__PURE__ */
|
|
4804
|
+
return /* @__PURE__ */ x.jsx("div", { className: z.dashList, style: $, children: C ? D.map((F) => ne(F)) : S });
|
|
4802
4805
|
}, Zn = (n) => {
|
|
4803
4806
|
var e;
|
|
4804
4807
|
return (e = n.children) != null && e.length ? n.children.map((t) => {
|
|
@@ -4821,7 +4824,7 @@ const We = (n, e, t) => ({
|
|
|
4821
4824
|
onClose: i,
|
|
4822
4825
|
loadOptions: c
|
|
4823
4826
|
}) => {
|
|
4824
|
-
var P,
|
|
4827
|
+
var P, S;
|
|
4825
4828
|
const [l, f] = X(), [u, d] = X(t ?? !0), h = xe(null), g = s.trim() ? s : "100vh", y = ye(
|
|
4826
4829
|
(v) => {
|
|
4827
4830
|
var C, Y;
|
|
@@ -4830,7 +4833,7 @@ const We = (n, e, t) => ({
|
|
|
4830
4833
|
const D = v.rows[0];
|
|
4831
4834
|
return v.columns.filter((_) => _.visible ?? !0).reduce((_, j) => {
|
|
4832
4835
|
const k = D.cells[j.name];
|
|
4833
|
-
if (!k || !u &&
|
|
4836
|
+
if (!k || !u && ce(r) && k.shape !== ie.BUTTON && k.shape !== ie.BUTTON_LIST)
|
|
4834
4837
|
return _;
|
|
4835
4838
|
const V = {
|
|
4836
4839
|
...k,
|
|
@@ -4849,7 +4852,11 @@ const We = (n, e, t) => ({
|
|
|
4849
4852
|
};
|
|
4850
4853
|
return c && k.shape == ie.BUTTON_LIST && (V.onOptionsRequest = (B, q) => c(B, q).then(
|
|
4851
4854
|
(Z) => Zn(Z)
|
|
4852
|
-
)), !u &&
|
|
4855
|
+
)), !u && ce(r) && (V.data = {
|
|
4856
|
+
...V.data,
|
|
4857
|
+
showText: !1,
|
|
4858
|
+
justify: "center"
|
|
4859
|
+
}), {
|
|
4853
4860
|
..._,
|
|
4854
4861
|
[j.name]: V
|
|
4855
4862
|
};
|
|
@@ -4858,15 +4865,15 @@ const We = (n, e, t) => ({
|
|
|
4858
4865
|
[u, r, a, o, c]
|
|
4859
4866
|
), b = ye(() => {
|
|
4860
4867
|
i == null || i();
|
|
4861
|
-
}, [i]),
|
|
4862
|
-
|
|
4868
|
+
}, [i]), w = () => {
|
|
4869
|
+
ce(r) ? d((v) => !v) : (d(!1), i == null || i());
|
|
4863
4870
|
};
|
|
4864
4871
|
if (le(() => {
|
|
4865
4872
|
f(y(n));
|
|
4866
4873
|
}, [n]), le(() => {
|
|
4867
4874
|
if (!h.current)
|
|
4868
4875
|
return;
|
|
4869
|
-
if (!
|
|
4876
|
+
if (!ce(r)) {
|
|
4870
4877
|
f(y(n));
|
|
4871
4878
|
return;
|
|
4872
4879
|
}
|
|
@@ -4878,11 +4885,11 @@ const We = (n, e, t) => ({
|
|
|
4878
4885
|
f(y(n));
|
|
4879
4886
|
}, D / 2);
|
|
4880
4887
|
}, [u, r]), le(() => {
|
|
4881
|
-
t !== void 0 && !
|
|
4882
|
-
}, [r, t]), !((P = n == null ? void 0 : n.rows) != null && P.length) || !((
|
|
4888
|
+
t !== void 0 && !ce(r) && d(t);
|
|
4889
|
+
}, [r, t]), !((P = n == null ? void 0 : n.rows) != null && P.length) || !((S = n.columns) != null && S.length))
|
|
4883
4890
|
return null;
|
|
4884
|
-
const
|
|
4885
|
-
drawer: `smp-drawer ${
|
|
4891
|
+
const T = {
|
|
4892
|
+
drawer: `smp-drawer ${ce(r) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${u ? "smp-drawer-open" : ""} ${!ce(r) && !u ? "smp-drawer-no-border" : ""}`,
|
|
4886
4893
|
container: "smp-drawer-container",
|
|
4887
4894
|
containerHeader: "smp-drawer-container-header",
|
|
4888
4895
|
containerIcon: `${u ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
@@ -4890,27 +4897,27 @@ const We = (n, e, t) => ({
|
|
|
4890
4897
|
containerLogo: "smp-drawer-container-logo",
|
|
4891
4898
|
backdrop: `smp-drawer-backdrop ${u ? "smp-drawer-backdrop-open" : ""}`
|
|
4892
4899
|
};
|
|
4893
|
-
return l && /* @__PURE__ */
|
|
4894
|
-
!
|
|
4900
|
+
return l && /* @__PURE__ */ x.jsxs(x.Fragment, { children: [
|
|
4901
|
+
!ce(r) && /* @__PURE__ */ x.jsx(
|
|
4895
4902
|
"div",
|
|
4896
4903
|
{
|
|
4897
4904
|
"aria-hidden": "true",
|
|
4898
4905
|
"aria-label": "drawer-backdrop",
|
|
4899
|
-
className:
|
|
4906
|
+
className: T.backdrop,
|
|
4900
4907
|
onClick: b
|
|
4901
4908
|
}
|
|
4902
4909
|
),
|
|
4903
|
-
/* @__PURE__ */
|
|
4910
|
+
/* @__PURE__ */ x.jsx(
|
|
4904
4911
|
"aside",
|
|
4905
4912
|
{
|
|
4906
4913
|
ref: h,
|
|
4907
|
-
className:
|
|
4914
|
+
className: T.drawer,
|
|
4908
4915
|
style: { height: g },
|
|
4909
4916
|
"aria-label": "Drawer",
|
|
4910
4917
|
"smp-id": "drawer",
|
|
4911
|
-
children: /* @__PURE__ */
|
|
4912
|
-
/* @__PURE__ */
|
|
4913
|
-
e && /* @__PURE__ */
|
|
4918
|
+
children: /* @__PURE__ */ x.jsxs("div", { className: T.container, children: [
|
|
4919
|
+
/* @__PURE__ */ x.jsxs("div", { className: T.containerHeader, children: [
|
|
4920
|
+
e && /* @__PURE__ */ x.jsx("div", { className: T.containerLogo, children: /* @__PURE__ */ x.jsx(
|
|
4914
4921
|
pe,
|
|
4915
4922
|
{
|
|
4916
4923
|
icon: e,
|
|
@@ -4919,20 +4926,20 @@ const We = (n, e, t) => ({
|
|
|
4919
4926
|
height: 24
|
|
4920
4927
|
}
|
|
4921
4928
|
) }),
|
|
4922
|
-
/* @__PURE__ */
|
|
4929
|
+
/* @__PURE__ */ x.jsx("div", { className: T.containerIcon, children: /* @__PURE__ */ x.jsx(
|
|
4923
4930
|
pe,
|
|
4924
4931
|
{
|
|
4925
|
-
icon:
|
|
4932
|
+
icon: ce(r) ? "menu_close" : "close",
|
|
4926
4933
|
title: "drawer_icon",
|
|
4927
4934
|
rotated: !u,
|
|
4928
4935
|
isInteractable: !0,
|
|
4929
|
-
onClick:
|
|
4936
|
+
onClick: w,
|
|
4930
4937
|
width: 20,
|
|
4931
4938
|
height: 20
|
|
4932
4939
|
}
|
|
4933
4940
|
) })
|
|
4934
4941
|
] }),
|
|
4935
|
-
/* @__PURE__ */
|
|
4942
|
+
/* @__PURE__ */ x.jsx("div", { className: T.containerLayout, children: /* @__PURE__ */ x.jsx(xr, { layout: n.rows[0].layout, cells: l }) })
|
|
4936
4943
|
] })
|
|
4937
4944
|
}
|
|
4938
4945
|
)
|
|
@@ -4953,17 +4960,17 @@ const We = (n, e, t) => ({
|
|
|
4953
4960
|
le(() => {
|
|
4954
4961
|
u(() => {
|
|
4955
4962
|
const y = { ...n };
|
|
4956
|
-
return e && (y.shape = e), s && (y.obj =
|
|
4963
|
+
return e && (y.shape = e), s && (y.obj = $r(s)), y;
|
|
4957
4964
|
});
|
|
4958
4965
|
}, [n, s, e]);
|
|
4959
4966
|
const h = {
|
|
4960
|
-
container: `smp-field-container ${
|
|
4967
|
+
container: `smp-field-container ${ce(t) ? `smp-field-position-${r}` : ""}`
|
|
4961
4968
|
}, g = () => {
|
|
4962
|
-
|
|
4969
|
+
ce(t) || i == null || i(f);
|
|
4963
4970
|
};
|
|
4964
4971
|
if (f)
|
|
4965
|
-
return /* @__PURE__ */
|
|
4966
|
-
/* @__PURE__ */
|
|
4972
|
+
return /* @__PURE__ */ x.jsxs("div", { className: h.container, children: [
|
|
4973
|
+
/* @__PURE__ */ x.jsx(
|
|
4967
4974
|
"div",
|
|
4968
4975
|
{
|
|
4969
4976
|
style: {
|
|
@@ -4972,7 +4979,7 @@ const We = (n, e, t) => ({
|
|
|
4972
4979
|
gap: "8px",
|
|
4973
4980
|
font: "var(--smp-fontLabel-base)"
|
|
4974
4981
|
},
|
|
4975
|
-
children: /* @__PURE__ */
|
|
4982
|
+
children: /* @__PURE__ */ x.jsx(
|
|
4976
4983
|
vr,
|
|
4977
4984
|
{
|
|
4978
4985
|
...f,
|
|
@@ -4986,8 +4993,8 @@ const We = (n, e, t) => ({
|
|
|
4986
4993
|
)
|
|
4987
4994
|
}
|
|
4988
4995
|
),
|
|
4989
|
-
|
|
4990
|
-
/* @__PURE__ */
|
|
4996
|
+
ce(t) && //TODO: translation
|
|
4997
|
+
/* @__PURE__ */ x.jsx(Ce, { bindValue: "Confirm", onClick: () => c == null ? void 0 : c(f) })
|
|
4991
4998
|
] });
|
|
4992
4999
|
};
|
|
4993
5000
|
export {
|