@sme.up/ketchup2 2.0.0-SNAPSHOT-20250618125320 → 2.0.0-SNAPSHOT-20250619133459
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/testAsset.d.ts +1 -1
- package/dist/components/data-table/assets/data-table-shapes.d.ts +1 -1
- package/dist/components/data-table/data-table-types.d.ts +4 -0
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/hooks/useColumnWidths.d.ts +28 -0
- package/dist/components/data-table/hooks/useColumnWidths.d.ts.map +1 -0
- package/dist/functional-components/footer/footer-types.d.ts +6 -0
- package/dist/functional-components/footer/footer-types.d.ts.map +1 -0
- package/dist/functional-components/footer/footer.d.ts +4 -0
- package/dist/functional-components/footer/footer.d.ts.map +1 -0
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +13 -13
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +1299 -1273
- package/dist/utils/hash.d.ts +1 -1
- package/dist/utils/hash.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Ar = Object.defineProperty;
|
|
|
2
2
|
var Lr = (r, e, t) => e in r ? Ar(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var we = (r, e, t) => Lr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import * as Fe from "react";
|
|
5
|
-
import yr, { useEffect as oe, useRef as xe, useState as
|
|
5
|
+
import yr, { useEffect as oe, useRef as xe, useState as J, useCallback as ve, useLayoutEffect as kr, useId as St } from "react";
|
|
6
6
|
import { createPortal as Ir } from "react-dom";
|
|
7
7
|
var Ve = { exports: {} }, Pe = {};
|
|
8
8
|
/**
|
|
@@ -52,7 +52,7 @@ function Mr() {
|
|
|
52
52
|
function r(h) {
|
|
53
53
|
if (h == null) return null;
|
|
54
54
|
if (typeof h == "function")
|
|
55
|
-
return h.$$typeof ===
|
|
55
|
+
return h.$$typeof === I ? null : h.displayName || h.name || null;
|
|
56
56
|
if (typeof h == "string") return h;
|
|
57
57
|
switch (h) {
|
|
58
58
|
case g:
|
|
@@ -63,9 +63,9 @@ function Mr() {
|
|
|
63
63
|
return "StrictMode";
|
|
64
64
|
case x:
|
|
65
65
|
return "Suspense";
|
|
66
|
-
case
|
|
66
|
+
case P:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case A:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof h == "object")
|
|
@@ -79,14 +79,14 @@ function Mr() {
|
|
|
79
79
|
case E:
|
|
80
80
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
81
|
case S:
|
|
82
|
-
var
|
|
83
|
-
return h = h.displayName, h || (h =
|
|
82
|
+
var v = h.render;
|
|
83
|
+
return h = h.displayName, h || (h = v.displayName || v.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
|
+
case _:
|
|
85
|
+
return v = h.displayName || null, v !== null ? v : r(h.type) || "Memo";
|
|
84
86
|
case $:
|
|
85
|
-
|
|
86
|
-
case Y:
|
|
87
|
-
y = h._payload, h = h._init;
|
|
87
|
+
v = h._payload, h = h._init;
|
|
88
88
|
try {
|
|
89
|
-
return r(h(
|
|
89
|
+
return r(h(v));
|
|
90
90
|
} catch {
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -98,50 +98,50 @@ function Mr() {
|
|
|
98
98
|
function t(h) {
|
|
99
99
|
try {
|
|
100
100
|
e(h);
|
|
101
|
-
var
|
|
101
|
+
var v = !1;
|
|
102
102
|
} catch {
|
|
103
|
-
|
|
103
|
+
v = !0;
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
var T =
|
|
105
|
+
if (v) {
|
|
106
|
+
v = console;
|
|
107
|
+
var T = v.error, D = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
108
|
return T.call(
|
|
109
|
-
|
|
109
|
+
v,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
111
|
+
D
|
|
112
112
|
), e(h);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function n(h) {
|
|
116
116
|
if (h === g) return "<>";
|
|
117
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
117
|
+
if (typeof h == "object" && h !== null && h.$$typeof === $)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
|
-
var
|
|
121
|
-
return
|
|
120
|
+
var v = r(h);
|
|
121
|
+
return v ? "<" + v + ">" : "<...>";
|
|
122
122
|
} catch {
|
|
123
123
|
return "<...>";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = j.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
131
131
|
return Error("react-stack-top-frame");
|
|
132
132
|
}
|
|
133
133
|
function i(h) {
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
134
|
+
if (M.call(h, "key")) {
|
|
135
|
+
var v = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
136
|
+
if (v && v.isReactWarning) return !1;
|
|
137
137
|
}
|
|
138
138
|
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
|
-
function o(h,
|
|
140
|
+
function o(h, v) {
|
|
141
141
|
function T() {
|
|
142
|
-
|
|
142
|
+
Z || (Z = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
|
-
|
|
144
|
+
v
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
147
|
T.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
@@ -155,12 +155,12 @@ function Mr() {
|
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h,
|
|
159
|
-
return T =
|
|
160
|
-
$$typeof:
|
|
158
|
+
function c(h, v, T, D, R, C, F, V) {
|
|
159
|
+
return T = C.ref, h = {
|
|
160
|
+
$$typeof: p,
|
|
161
161
|
type: h,
|
|
162
|
-
key:
|
|
163
|
-
props:
|
|
162
|
+
key: v,
|
|
163
|
+
props: C,
|
|
164
164
|
_owner: R
|
|
165
165
|
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
@@ -179,102 +179,102 @@ function Mr() {
|
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
182
|
+
value: F
|
|
183
183
|
}), Object.defineProperty(h, "_debugTask", {
|
|
184
184
|
configurable: !1,
|
|
185
185
|
enumerable: !1,
|
|
186
186
|
writable: !0,
|
|
187
|
-
value:
|
|
187
|
+
value: V
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h,
|
|
191
|
-
var N =
|
|
190
|
+
function f(h, v, T, D, R, C, F, V) {
|
|
191
|
+
var N = v.children;
|
|
192
192
|
if (N !== void 0)
|
|
193
|
-
if (
|
|
193
|
+
if (D)
|
|
194
194
|
if (U(N)) {
|
|
195
|
-
for (
|
|
196
|
-
l(N[
|
|
195
|
+
for (D = 0; D < N.length; D++)
|
|
196
|
+
l(N[D]);
|
|
197
197
|
Object.freeze && Object.freeze(N);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
200
200
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
201
|
);
|
|
202
202
|
else l(N);
|
|
203
|
-
if (
|
|
203
|
+
if (M.call(v, "key")) {
|
|
204
204
|
N = r(h);
|
|
205
|
-
var
|
|
205
|
+
var z = Object.keys(v).filter(function(se) {
|
|
206
206
|
return se !== "key";
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
D = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", k[N + D] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
212
212
|
React keys must be passed directly to JSX without using spread:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s key={someKey} {...props} />`,
|
|
215
|
-
|
|
215
|
+
D,
|
|
216
216
|
N,
|
|
217
|
-
|
|
217
|
+
z,
|
|
218
218
|
N
|
|
219
|
-
),
|
|
219
|
+
), k[N + D] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (N = null, T !== void 0 && (t(T), N = "" + T), i(
|
|
221
|
+
if (N = null, T !== void 0 && (t(T), N = "" + T), i(v) && (t(v.key), N = "" + v.key), "key" in v) {
|
|
222
222
|
T = {};
|
|
223
|
-
for (var
|
|
224
|
-
|
|
225
|
-
} else T =
|
|
223
|
+
for (var H in v)
|
|
224
|
+
H !== "key" && (T[H] = v[H]);
|
|
225
|
+
} else T = v;
|
|
226
226
|
return N && o(
|
|
227
227
|
T,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
231
231
|
N,
|
|
232
|
-
|
|
232
|
+
C,
|
|
233
233
|
R,
|
|
234
234
|
s(),
|
|
235
235
|
T,
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
F,
|
|
237
|
+
V
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function l(h) {
|
|
241
|
-
typeof h == "object" && h !== null && h.$$typeof ===
|
|
241
|
+
typeof h == "object" && h !== null && h.$$typeof === p && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var d = yr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), $ = Symbol.for("react.lazy"), A = Symbol.for("react.activity"), I = Symbol.for("react.client.reference"), j = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, M = Object.prototype.hasOwnProperty, U = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
d = {
|
|
247
247
|
"react-stack-bottom-frame": function(h) {
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var Z, q = {}, K = d["react-stack-bottom-frame"].bind(
|
|
252
|
+
d,
|
|
253
253
|
a
|
|
254
|
-
)(), W =
|
|
255
|
-
Ae.Fragment = g, Ae.jsx = function(h,
|
|
256
|
-
var
|
|
254
|
+
)(), W = B(n(a)), k = {};
|
|
255
|
+
Ae.Fragment = g, Ae.jsx = function(h, v, T, D, R) {
|
|
256
|
+
var C = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
|
-
|
|
259
|
+
v,
|
|
260
260
|
T,
|
|
261
261
|
!1,
|
|
262
|
-
|
|
262
|
+
D,
|
|
263
263
|
R,
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
C ? Error("react-stack-top-frame") : K,
|
|
265
|
+
C ? B(n(h)) : W
|
|
266
266
|
);
|
|
267
|
-
}, Ae.jsxs = function(h,
|
|
268
|
-
var
|
|
267
|
+
}, Ae.jsxs = function(h, v, T, D, R) {
|
|
268
|
+
var C = 1e4 > j.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
|
-
|
|
271
|
+
v,
|
|
272
272
|
T,
|
|
273
273
|
!0,
|
|
274
|
-
|
|
274
|
+
D,
|
|
275
275
|
R,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
C ? Error("react-stack-top-frame") : K,
|
|
277
|
+
C ? B(n(h)) : W
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ae;
|
|
@@ -283,7 +283,7 @@ var Pt;
|
|
|
283
283
|
function Fr() {
|
|
284
284
|
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ve.exports = Nr() : Ve.exports = Mr()), Ve.exports;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
286
|
+
var y = Fr();
|
|
287
287
|
const ne = {
|
|
288
288
|
AUTOCOMPLETE: "ACP",
|
|
289
289
|
BUTTON_LIST: "BTL",
|
|
@@ -316,14 +316,14 @@ const ne = {
|
|
|
316
316
|
k: ""
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
|
-
class
|
|
319
|
+
class Xe {
|
|
320
320
|
constructor(e, t) {
|
|
321
321
|
we(this, "class");
|
|
322
322
|
we(this, "value");
|
|
323
323
|
this.class = e, this.value = t;
|
|
324
324
|
}
|
|
325
325
|
static fromDataObj(e) {
|
|
326
|
-
return new
|
|
326
|
+
return new Xe(e, e.k == "1" || e.k == "true");
|
|
327
327
|
}
|
|
328
328
|
getValue() {
|
|
329
329
|
return this.value;
|
|
@@ -414,11 +414,11 @@ function gt(r, e, t) {
|
|
|
414
414
|
function Hr(r) {
|
|
415
415
|
return r % 4 === 0 && (r % 100 !== 0 || r % 400 === 0);
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function Gr(r) {
|
|
418
418
|
const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
|
|
419
419
|
return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
|
|
420
420
|
}
|
|
421
|
-
class
|
|
421
|
+
class Ze {
|
|
422
422
|
constructor(e, t) {
|
|
423
423
|
we(this, "class");
|
|
424
424
|
we(this, "date");
|
|
@@ -427,7 +427,7 @@ class Xe {
|
|
|
427
427
|
static fromDataObj(e) {
|
|
428
428
|
const t = At.get(`${e.t}${e.p}`);
|
|
429
429
|
if (t)
|
|
430
|
-
return new
|
|
430
|
+
return new Ze(e, t.legacyToIso(e.k));
|
|
431
431
|
throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
|
|
432
432
|
}
|
|
433
433
|
getLegacyValue() {
|
|
@@ -454,7 +454,7 @@ const At = /* @__PURE__ */ new Map([
|
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
]
|
|
457
|
-
]),
|
|
457
|
+
]), Qe = (r, e) => {
|
|
458
458
|
oe(() => {
|
|
459
459
|
const t = (n) => {
|
|
460
460
|
typeof r == "object" && r !== null && "current" in r && r.current && !r.current.contains(n.target) && e();
|
|
@@ -468,23 +468,23 @@ function Et({
|
|
|
468
468
|
position: r = "bottom",
|
|
469
469
|
enabled: e = !0
|
|
470
470
|
}) {
|
|
471
|
-
const t = xe(null), n = xe(null), [s, a] =
|
|
471
|
+
const t = xe(null), n = xe(null), [s, a] = J(0), i = ve(() => {
|
|
472
472
|
const o = t.current, u = n.current;
|
|
473
473
|
if (!o || !u) return;
|
|
474
|
-
const { top: c, left: f, width: l, height:
|
|
474
|
+
const { top: c, left: f, width: l, height: d } = o.getBoundingClientRect();
|
|
475
475
|
a(l);
|
|
476
|
-
const
|
|
477
|
-
if (m === 0 ||
|
|
476
|
+
const p = u.offsetHeight, m = u.offsetWidth;
|
|
477
|
+
if (m === 0 || p === 0) {
|
|
478
478
|
requestAnimationFrame(i);
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
481
|
let g = c + window.scrollY, b = f + window.scrollX;
|
|
482
482
|
switch (r) {
|
|
483
483
|
case "top":
|
|
484
|
-
g -=
|
|
484
|
+
g -= p;
|
|
485
485
|
break;
|
|
486
486
|
case "bottom":
|
|
487
|
-
g +=
|
|
487
|
+
g += d;
|
|
488
488
|
break;
|
|
489
489
|
case "left":
|
|
490
490
|
b -= m;
|
|
@@ -509,7 +509,7 @@ function Et({
|
|
|
509
509
|
};
|
|
510
510
|
}, [i, e]), { anchorRef: t, targetRef: n, anchorWidth: s };
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const et = (r, e, t) => {
|
|
513
513
|
if (r == "")
|
|
514
514
|
return "";
|
|
515
515
|
if (t)
|
|
@@ -531,14 +531,14 @@ const Qe = (r, e, t) => {
|
|
|
531
531
|
const s = {
|
|
532
532
|
container: `smp-helper-text ${e ? "smp-helper-text-disabled" : ""} ${t ? `smp-helper-text-${t}` : ""}`
|
|
533
533
|
};
|
|
534
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ y.jsx("label", { className: s.container, id: n, children: r });
|
|
535
535
|
}, $e = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
536
536
|
const n = {
|
|
537
537
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
538
538
|
};
|
|
539
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ y.jsx("label", { className: n.container, htmlFor: t, children: r });
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function Br(r, e) {
|
|
542
542
|
if (r == null) return {};
|
|
543
543
|
var t = {};
|
|
544
544
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
@@ -547,14 +547,14 @@ function Gr(r, e) {
|
|
|
547
547
|
}
|
|
548
548
|
return t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
551
|
-
return
|
|
550
|
+
function tt() {
|
|
551
|
+
return tt = Object.assign ? Object.assign.bind() : function(r) {
|
|
552
552
|
for (var e = 1; e < arguments.length; e++) {
|
|
553
553
|
var t = arguments[e];
|
|
554
554
|
for (var n in t) ({}).hasOwnProperty.call(t, n) && (r[n] = t[n]);
|
|
555
555
|
}
|
|
556
556
|
return r;
|
|
557
|
-
},
|
|
557
|
+
}, tt.apply(null, arguments);
|
|
558
558
|
}
|
|
559
559
|
function yt(r, e) {
|
|
560
560
|
return yt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
@@ -564,7 +564,7 @@ function yt(r, e) {
|
|
|
564
564
|
function qr(r, e) {
|
|
565
565
|
r.prototype = Object.create(e.prototype), r.prototype.constructor = r, yt(r, e);
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function ot(r, e, t) {
|
|
568
568
|
if (t || arguments.length === 2) for (var n = 0, s = e.length, a; n < s; n++)
|
|
569
569
|
(a || !(n in e)) && (a || (a = Array.prototype.slice.call(e, 0, n)), a[n] = e[n]);
|
|
570
570
|
return r.concat(a || Array.prototype.slice.call(e));
|
|
@@ -584,53 +584,53 @@ function Kr() {
|
|
|
584
584
|
function i(l) {
|
|
585
585
|
if (!l || typeof l != "object")
|
|
586
586
|
throw new TypeError("argument obj is required");
|
|
587
|
-
var
|
|
588
|
-
if (!
|
|
587
|
+
var d = l.parameters, p = l.type;
|
|
588
|
+
if (!p || !a.test(p))
|
|
589
589
|
throw new TypeError("invalid type");
|
|
590
|
-
var m =
|
|
591
|
-
if (
|
|
592
|
-
for (var g, b = Object.keys(
|
|
590
|
+
var m = p;
|
|
591
|
+
if (d && typeof d == "object")
|
|
592
|
+
for (var g, b = Object.keys(d).sort(), w = 0; w < b.length; w++) {
|
|
593
593
|
if (g = b[w], !t.test(g))
|
|
594
594
|
throw new TypeError("invalid parameter name");
|
|
595
|
-
m += "; " + g + "=" + c(
|
|
595
|
+
m += "; " + g + "=" + c(d[g]);
|
|
596
596
|
}
|
|
597
597
|
return m;
|
|
598
598
|
}
|
|
599
599
|
function o(l) {
|
|
600
600
|
if (!l)
|
|
601
601
|
throw new TypeError("argument string is required");
|
|
602
|
-
var
|
|
603
|
-
if (typeof
|
|
602
|
+
var d = typeof l == "object" ? u(l) : l;
|
|
603
|
+
if (typeof d != "string")
|
|
604
604
|
throw new TypeError("argument string is required to be a string");
|
|
605
|
-
var
|
|
605
|
+
var p = d.indexOf(";"), m = p !== -1 ? d.slice(0, p).trim() : d.trim();
|
|
606
606
|
if (!a.test(m))
|
|
607
607
|
throw new TypeError("invalid media type");
|
|
608
608
|
var g = new f(m.toLowerCase());
|
|
609
|
-
if (
|
|
609
|
+
if (p !== -1) {
|
|
610
610
|
var b, w, E;
|
|
611
|
-
for (r.lastIndex =
|
|
612
|
-
if (w.index !==
|
|
611
|
+
for (r.lastIndex = p; w = r.exec(d); ) {
|
|
612
|
+
if (w.index !== p)
|
|
613
613
|
throw new TypeError("invalid parameter format");
|
|
614
|
-
|
|
614
|
+
p += w[0].length, b = w[1].toLowerCase(), E = w[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[b] = E;
|
|
615
615
|
}
|
|
616
|
-
if (
|
|
616
|
+
if (p !== d.length)
|
|
617
617
|
throw new TypeError("invalid parameter format");
|
|
618
618
|
}
|
|
619
619
|
return g;
|
|
620
620
|
}
|
|
621
621
|
function u(l) {
|
|
622
|
-
var
|
|
623
|
-
if (typeof l.getHeader == "function" ?
|
|
622
|
+
var d;
|
|
623
|
+
if (typeof l.getHeader == "function" ? d = l.getHeader("content-type") : typeof l.headers == "object" && (d = l.headers && l.headers["content-type"]), typeof d != "string")
|
|
624
624
|
throw new TypeError("content-type header is missing from object");
|
|
625
|
-
return
|
|
625
|
+
return d;
|
|
626
626
|
}
|
|
627
627
|
function c(l) {
|
|
628
|
-
var
|
|
629
|
-
if (t.test(
|
|
630
|
-
return
|
|
631
|
-
if (
|
|
628
|
+
var d = String(l);
|
|
629
|
+
if (t.test(d))
|
|
630
|
+
return d;
|
|
631
|
+
if (d.length > 0 && !e.test(d))
|
|
632
632
|
throw new TypeError("invalid parameter value");
|
|
633
|
-
return '"' +
|
|
633
|
+
return '"' + d.replace(s, "\\$1") + '"';
|
|
634
634
|
}
|
|
635
635
|
function f(l) {
|
|
636
636
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = l;
|
|
@@ -703,7 +703,7 @@ var zr = Kr(), je = /* @__PURE__ */ new Map(), xr = function(e) {
|
|
|
703
703
|
});
|
|
704
704
|
}, Qr = 0, en = function() {
|
|
705
705
|
return ++Qr;
|
|
706
|
-
}, ge = [], Nt = {}, tn = "http://www.w3.org/2000/svg",
|
|
706
|
+
}, ge = [], Nt = {}, tn = "http://www.w3.org/2000/svg", lt = "http://www.w3.org/1999/xlink", Mt = function(e, t, n, s, a, i, o) {
|
|
707
707
|
var u = e.getAttribute("data-src") || e.getAttribute("src");
|
|
708
708
|
if (!u) {
|
|
709
709
|
o(new Error("Invalid data-src or src attribute"));
|
|
@@ -720,15 +720,15 @@ var zr = Kr(), je = /* @__PURE__ */ new Map(), xr = function(e) {
|
|
|
720
720
|
ge.splice(ge.indexOf(e), 1), e = null, o(f);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
|
|
725
|
-
var
|
|
726
|
-
|
|
723
|
+
var d = e.getAttribute("id");
|
|
724
|
+
d && l.setAttribute("id", d);
|
|
725
|
+
var p = e.getAttribute("title");
|
|
726
|
+
p && l.setAttribute("title", p);
|
|
727
727
|
var m = e.getAttribute("width");
|
|
728
728
|
m && l.setAttribute("width", m);
|
|
729
729
|
var g = e.getAttribute("height");
|
|
730
730
|
g && l.setAttribute("height", g);
|
|
731
|
-
var b = Array.from(new Set(
|
|
731
|
+
var b = Array.from(new Set(ot(ot(ot([], (l.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
732
732
|
l.setAttribute("class", b);
|
|
733
733
|
var w = e.getAttribute("style");
|
|
734
734
|
w && l.setAttribute("style", w), l.setAttribute("data-src", u);
|
|
@@ -749,42 +749,42 @@ var zr = Kr(), je = /* @__PURE__ */ new Map(), xr = function(e) {
|
|
|
749
749
|
path: [],
|
|
750
750
|
pattern: ["fill", "stroke"],
|
|
751
751
|
radialGradient: ["fill", "stroke"]
|
|
752
|
-
}, S, x,
|
|
752
|
+
}, S, x, P, _, $;
|
|
753
753
|
Object.keys(O).forEach(function(W) {
|
|
754
|
-
S = W,
|
|
755
|
-
for (var
|
|
756
|
-
|
|
757
|
-
var
|
|
758
|
-
Array.prototype.forEach.call(
|
|
759
|
-
|
|
760
|
-
for (var
|
|
761
|
-
var re =
|
|
762
|
-
re && !re.match(new RegExp('url\\("?#' +
|
|
754
|
+
S = W, P = O[W], x = l.querySelectorAll(S + "[id]");
|
|
755
|
+
for (var k = function(D, R) {
|
|
756
|
+
_ = x[D].id, $ = _ + "-" + en();
|
|
757
|
+
var C;
|
|
758
|
+
Array.prototype.forEach.call(P, function(Y) {
|
|
759
|
+
C = l.querySelectorAll("[" + Y + '*="' + _ + '"]');
|
|
760
|
+
for (var X = 0, te = C.length; X < te; X++) {
|
|
761
|
+
var re = C[X].getAttribute(Y);
|
|
762
|
+
re && !re.match(new RegExp('url\\("?#' + _ + '"?\\)')) || C[X].setAttribute(Y, "url(#" + $ + ")");
|
|
763
763
|
}
|
|
764
764
|
});
|
|
765
|
-
for (var
|
|
766
|
-
var
|
|
767
|
-
|
|
765
|
+
for (var F = l.querySelectorAll("[*|href]"), V = [], N = 0, z = F.length; N < z; N++) {
|
|
766
|
+
var H = F[N].getAttributeNS(lt, "href");
|
|
767
|
+
H && H.toString() === "#" + x[D].id && V.push(F[N]);
|
|
768
768
|
}
|
|
769
|
-
for (var se = 0,
|
|
770
|
-
|
|
771
|
-
x[
|
|
772
|
-
}, h = 0,
|
|
773
|
-
|
|
769
|
+
for (var se = 0, L = V.length; se < L; se++)
|
|
770
|
+
V[se].setAttributeNS(lt, "href", "#" + $);
|
|
771
|
+
x[D].id = $;
|
|
772
|
+
}, h = 0, v = x.length; h < v; h++)
|
|
773
|
+
k(h);
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
776
|
l.removeAttribute("xmlns:a");
|
|
777
|
-
for (var
|
|
778
|
-
|
|
779
|
-
if (
|
|
780
|
-
for (var
|
|
781
|
-
new Function(
|
|
777
|
+
for (var A = l.querySelectorAll("script"), I = [], j, M, U = 0, B = A.length; U < B; U++)
|
|
778
|
+
M = A[U].getAttribute("type"), (!M || M === "application/ecmascript" || M === "application/javascript" || M === "text/javascript") && (j = A[U].innerText || A[U].textContent, j && I.push(j), l.removeChild(A[U]));
|
|
779
|
+
if (I.length > 0 && (t === "always" || t === "once" && !Nt[u])) {
|
|
780
|
+
for (var Z = 0, q = I.length; Z < q; Z++)
|
|
781
|
+
new Function(I[Z])(window);
|
|
782
782
|
Nt[u] = !0;
|
|
783
783
|
}
|
|
784
784
|
var K = l.querySelectorAll("style");
|
|
785
785
|
if (Array.prototype.forEach.call(K, function(W) {
|
|
786
786
|
W.textContent += "";
|
|
787
|
-
}), l.setAttribute("xmlns", tn), l.setAttribute("xmlns:xlink",
|
|
787
|
+
}), l.setAttribute("xmlns", tn), l.setAttribute("xmlns:xlink", lt), i(l), !e.parentNode) {
|
|
788
788
|
ge.splice(ge.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
789
789
|
return;
|
|
790
790
|
}
|
|
@@ -794,14 +794,14 @@ var zr = Kr(), je = /* @__PURE__ */ new Map(), xr = function(e) {
|
|
|
794
794
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
795
795
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
796
796
|
} : i, u = n.beforeEach, c = u === void 0 ? function() {
|
|
797
|
-
} : u, f = n.cacheRequests, l = f === void 0 ? !0 : f,
|
|
797
|
+
} : u, f = n.cacheRequests, l = f === void 0 ? !0 : f, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, b = n.renumerateIRIElements, w = b === void 0 ? !0 : b;
|
|
798
798
|
if (e && "length" in e)
|
|
799
799
|
for (var E = 0, O = 0, S = e.length; O < S; O++)
|
|
800
|
-
Mt(e[O],
|
|
801
|
-
o(x,
|
|
800
|
+
Mt(e[O], p, w, l, g, c, function(x, P) {
|
|
801
|
+
o(x, P), e && "length" in e && e.length === ++E && a(E);
|
|
802
802
|
});
|
|
803
|
-
else e ? Mt(e,
|
|
804
|
-
o(x,
|
|
803
|
+
else e ? Mt(e, p, w, l, g, c, function(x, P) {
|
|
804
|
+
o(x, P), a(1), e = null;
|
|
805
805
|
}) : a(0);
|
|
806
806
|
}, We = { exports: {} }, He = { exports: {} }, Q = {};
|
|
807
807
|
/** @license React v16.13.1
|
|
@@ -816,11 +816,11 @@ var Ft;
|
|
|
816
816
|
function nn() {
|
|
817
817
|
if (Ft) return Q;
|
|
818
818
|
Ft = 1;
|
|
819
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113,
|
|
819
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, b = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
820
820
|
function O(x) {
|
|
821
821
|
if (typeof x == "object" && x !== null) {
|
|
822
|
-
var
|
|
823
|
-
switch (
|
|
822
|
+
var P = x.$$typeof;
|
|
823
|
+
switch (P) {
|
|
824
824
|
case e:
|
|
825
825
|
switch (x = x.type, x) {
|
|
826
826
|
case u:
|
|
@@ -835,22 +835,22 @@ function nn() {
|
|
|
835
835
|
case o:
|
|
836
836
|
case f:
|
|
837
837
|
case m:
|
|
838
|
-
case
|
|
838
|
+
case p:
|
|
839
839
|
case i:
|
|
840
840
|
return x;
|
|
841
841
|
default:
|
|
842
|
-
return
|
|
842
|
+
return P;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
case t:
|
|
846
|
-
return
|
|
846
|
+
return P;
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
849
|
}
|
|
850
850
|
function S(x) {
|
|
851
851
|
return O(x) === c;
|
|
852
852
|
}
|
|
853
|
-
return Q.AsyncMode = u, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = m, Q.Memo =
|
|
853
|
+
return Q.AsyncMode = u, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = m, Q.Memo = p, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(x) {
|
|
854
854
|
return S(x) || O(x) === u;
|
|
855
855
|
}, Q.isConcurrentMode = S, Q.isContextConsumer = function(x) {
|
|
856
856
|
return O(x) === o;
|
|
@@ -865,7 +865,7 @@ function nn() {
|
|
|
865
865
|
}, Q.isLazy = function(x) {
|
|
866
866
|
return O(x) === m;
|
|
867
867
|
}, Q.isMemo = function(x) {
|
|
868
|
-
return O(x) ===
|
|
868
|
+
return O(x) === p;
|
|
869
869
|
}, Q.isPortal = function(x) {
|
|
870
870
|
return O(x) === t;
|
|
871
871
|
}, Q.isProfiler = function(x) {
|
|
@@ -875,7 +875,7 @@ function nn() {
|
|
|
875
875
|
}, Q.isSuspense = function(x) {
|
|
876
876
|
return O(x) === l;
|
|
877
877
|
}, Q.isValidElementType = function(x) {
|
|
878
|
-
return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === s || x === l || x ===
|
|
878
|
+
return typeof x == "string" || typeof x == "function" || x === n || x === c || x === a || x === s || x === l || x === d || typeof x == "object" && x !== null && (x.$$typeof === m || x.$$typeof === p || x.$$typeof === i || x.$$typeof === o || x.$$typeof === f || x.$$typeof === b || x.$$typeof === w || x.$$typeof === E || x.$$typeof === g);
|
|
879
879
|
}, Q.typeOf = O, Q;
|
|
880
880
|
}
|
|
881
881
|
var ee = {};
|
|
@@ -890,84 +890,84 @@ var ee = {};
|
|
|
890
890
|
var Vt;
|
|
891
891
|
function sn() {
|
|
892
892
|
return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
893
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113,
|
|
894
|
-
function O(
|
|
895
|
-
return typeof
|
|
896
|
-
|
|
897
|
-
}
|
|
898
|
-
function S(
|
|
899
|
-
if (typeof
|
|
900
|
-
var
|
|
901
|
-
switch (
|
|
893
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, u = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, b = r ? Symbol.for("react.fundamental") : 60117, w = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
894
|
+
function O(L) {
|
|
895
|
+
return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
896
|
+
L === n || L === c || L === a || L === s || L === l || L === d || typeof L == "object" && L !== null && (L.$$typeof === m || L.$$typeof === p || L.$$typeof === i || L.$$typeof === o || L.$$typeof === f || L.$$typeof === b || L.$$typeof === w || L.$$typeof === E || L.$$typeof === g);
|
|
897
|
+
}
|
|
898
|
+
function S(L) {
|
|
899
|
+
if (typeof L == "object" && L !== null) {
|
|
900
|
+
var Y = L.$$typeof;
|
|
901
|
+
switch (Y) {
|
|
902
902
|
case e:
|
|
903
|
-
var
|
|
904
|
-
switch (
|
|
903
|
+
var X = L.type;
|
|
904
|
+
switch (X) {
|
|
905
905
|
case u:
|
|
906
906
|
case c:
|
|
907
907
|
case n:
|
|
908
908
|
case a:
|
|
909
909
|
case s:
|
|
910
910
|
case l:
|
|
911
|
-
return
|
|
911
|
+
return X;
|
|
912
912
|
default:
|
|
913
|
-
var te =
|
|
913
|
+
var te = X && X.$$typeof;
|
|
914
914
|
switch (te) {
|
|
915
915
|
case o:
|
|
916
916
|
case f:
|
|
917
917
|
case m:
|
|
918
|
-
case
|
|
918
|
+
case p:
|
|
919
919
|
case i:
|
|
920
920
|
return te;
|
|
921
921
|
default:
|
|
922
|
-
return
|
|
922
|
+
return Y;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
925
|
case t:
|
|
926
|
-
return
|
|
926
|
+
return Y;
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
var x = u,
|
|
931
|
-
function L
|
|
932
|
-
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(
|
|
930
|
+
var x = u, P = c, _ = o, $ = i, A = e, I = f, j = n, M = m, U = p, B = t, Z = a, q = s, K = l, W = !1;
|
|
931
|
+
function k(L) {
|
|
932
|
+
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(L) || S(L) === u;
|
|
933
933
|
}
|
|
934
|
-
function h(
|
|
935
|
-
return S(
|
|
934
|
+
function h(L) {
|
|
935
|
+
return S(L) === c;
|
|
936
936
|
}
|
|
937
|
-
function
|
|
938
|
-
return S(
|
|
937
|
+
function v(L) {
|
|
938
|
+
return S(L) === o;
|
|
939
939
|
}
|
|
940
|
-
function T(
|
|
941
|
-
return S(
|
|
940
|
+
function T(L) {
|
|
941
|
+
return S(L) === i;
|
|
942
942
|
}
|
|
943
|
-
function
|
|
944
|
-
return typeof
|
|
943
|
+
function D(L) {
|
|
944
|
+
return typeof L == "object" && L !== null && L.$$typeof === e;
|
|
945
945
|
}
|
|
946
|
-
function R(
|
|
947
|
-
return S(
|
|
946
|
+
function R(L) {
|
|
947
|
+
return S(L) === f;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
950
|
-
return S(
|
|
949
|
+
function C(L) {
|
|
950
|
+
return S(L) === n;
|
|
951
951
|
}
|
|
952
|
-
function
|
|
953
|
-
return S(
|
|
952
|
+
function F(L) {
|
|
953
|
+
return S(L) === m;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
return S(
|
|
955
|
+
function V(L) {
|
|
956
|
+
return S(L) === p;
|
|
957
957
|
}
|
|
958
|
-
function N(
|
|
959
|
-
return S(
|
|
958
|
+
function N(L) {
|
|
959
|
+
return S(L) === t;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return S(
|
|
961
|
+
function z(L) {
|
|
962
|
+
return S(L) === a;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
return S(
|
|
964
|
+
function H(L) {
|
|
965
|
+
return S(L) === s;
|
|
966
966
|
}
|
|
967
|
-
function se(
|
|
968
|
-
return S(
|
|
967
|
+
function se(L) {
|
|
968
|
+
return S(L) === l;
|
|
969
969
|
}
|
|
970
|
-
ee.AsyncMode = x, ee.ConcurrentMode =
|
|
970
|
+
ee.AsyncMode = x, ee.ConcurrentMode = P, ee.ContextConsumer = _, ee.ContextProvider = $, ee.Element = A, ee.ForwardRef = I, ee.Fragment = j, ee.Lazy = M, ee.Memo = U, ee.Portal = B, ee.Profiler = Z, ee.StrictMode = q, ee.Suspense = K, ee.isAsyncMode = k, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = T, ee.isElement = D, ee.isForwardRef = R, ee.isFragment = C, ee.isLazy = F, ee.isMemo = V, ee.isPortal = N, ee.isProfiler = z, ee.isStrictMode = H, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = S;
|
|
971
971
|
}()), ee;
|
|
972
972
|
}
|
|
973
973
|
var Yt;
|
|
@@ -979,9 +979,9 @@ object-assign
|
|
|
979
979
|
(c) Sindre Sorhus
|
|
980
980
|
@license MIT
|
|
981
981
|
*/
|
|
982
|
-
var
|
|
982
|
+
var ct, Ut;
|
|
983
983
|
function an() {
|
|
984
|
-
if (Ut) return
|
|
984
|
+
if (Ut) return ct;
|
|
985
985
|
Ut = 1;
|
|
986
986
|
var r = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
987
987
|
function n(a) {
|
|
@@ -1011,35 +1011,35 @@ function an() {
|
|
|
1011
1011
|
return !1;
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
return
|
|
1014
|
+
return ct = s() ? Object.assign : function(a, i) {
|
|
1015
1015
|
for (var o, u = n(a), c, f = 1; f < arguments.length; f++) {
|
|
1016
1016
|
o = Object(arguments[f]);
|
|
1017
1017
|
for (var l in o)
|
|
1018
1018
|
e.call(o, l) && (u[l] = o[l]);
|
|
1019
1019
|
if (r) {
|
|
1020
1020
|
c = r(o);
|
|
1021
|
-
for (var
|
|
1022
|
-
t.call(o, c[
|
|
1021
|
+
for (var d = 0; d < c.length; d++)
|
|
1022
|
+
t.call(o, c[d]) && (u[c[d]] = o[c[d]]);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
1025
|
return u;
|
|
1026
|
-
},
|
|
1026
|
+
}, ct;
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1028
|
+
var ut, Wt;
|
|
1029
1029
|
function Tt() {
|
|
1030
|
-
if (Wt) return
|
|
1030
|
+
if (Wt) return ut;
|
|
1031
1031
|
Wt = 1;
|
|
1032
1032
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
1033
|
-
return
|
|
1033
|
+
return ut = r, ut;
|
|
1034
1034
|
}
|
|
1035
|
-
var
|
|
1035
|
+
var ft, Ht;
|
|
1036
1036
|
function wr() {
|
|
1037
|
-
return Ht || (Ht = 1,
|
|
1037
|
+
return Ht || (Ht = 1, ft = Function.call.bind(Object.prototype.hasOwnProperty)), ft;
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var dt, Gt;
|
|
1040
1040
|
function on() {
|
|
1041
|
-
if (
|
|
1042
|
-
|
|
1041
|
+
if (Gt) return dt;
|
|
1042
|
+
Gt = 1;
|
|
1043
1043
|
var r = function() {
|
|
1044
1044
|
};
|
|
1045
1045
|
if (process.env.NODE_ENV !== "production") {
|
|
@@ -1060,10 +1060,10 @@ function on() {
|
|
|
1060
1060
|
var l;
|
|
1061
1061
|
try {
|
|
1062
1062
|
if (typeof a[f] != "function") {
|
|
1063
|
-
var
|
|
1063
|
+
var d = Error(
|
|
1064
1064
|
(u || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1065
1065
|
);
|
|
1066
|
-
throw
|
|
1066
|
+
throw d.name = "Invariant Violation", d;
|
|
1067
1067
|
}
|
|
1068
1068
|
l = a[f](i, f, u, o, null, e);
|
|
1069
1069
|
} catch (m) {
|
|
@@ -1073,9 +1073,9 @@ function on() {
|
|
|
1073
1073
|
(u || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1074
1074
|
), l instanceof Error && !(l.message in t)) {
|
|
1075
1075
|
t[l.message] = !0;
|
|
1076
|
-
var
|
|
1076
|
+
var p = c ? c() : "";
|
|
1077
1077
|
r(
|
|
1078
|
-
"Failed " + o + " type: " + l.message + (
|
|
1078
|
+
"Failed " + o + " type: " + l.message + (p ?? "")
|
|
1079
1079
|
);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
@@ -1083,12 +1083,12 @@ function on() {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
return s.resetWarningCache = function() {
|
|
1085
1085
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
1086
|
-
},
|
|
1086
|
+
}, dt = s, dt;
|
|
1087
1087
|
}
|
|
1088
|
-
var
|
|
1088
|
+
var pt, Bt;
|
|
1089
1089
|
function ln() {
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1090
|
+
if (Bt) return pt;
|
|
1091
|
+
Bt = 1;
|
|
1092
1092
|
var r = Sr(), e = an(), t = /* @__PURE__ */ Tt(), n = /* @__PURE__ */ wr(), s = /* @__PURE__ */ on(), a = function() {
|
|
1093
1093
|
};
|
|
1094
1094
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
@@ -1102,14 +1102,14 @@ function ln() {
|
|
|
1102
1102
|
function i() {
|
|
1103
1103
|
return null;
|
|
1104
1104
|
}
|
|
1105
|
-
return
|
|
1105
|
+
return pt = function(o, u) {
|
|
1106
1106
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
1107
1107
|
function l(h) {
|
|
1108
|
-
var
|
|
1109
|
-
if (typeof
|
|
1110
|
-
return
|
|
1108
|
+
var v = h && (c && h[c] || h[f]);
|
|
1109
|
+
if (typeof v == "function")
|
|
1110
|
+
return v;
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1112
|
+
var d = "<<anonymous>>", p = {
|
|
1113
1113
|
array: w("array"),
|
|
1114
1114
|
bigint: w("bigint"),
|
|
1115
1115
|
bool: w("boolean"),
|
|
@@ -1122,219 +1122,219 @@ function ln() {
|
|
|
1122
1122
|
arrayOf: O,
|
|
1123
1123
|
element: S(),
|
|
1124
1124
|
elementType: x(),
|
|
1125
|
-
instanceOf:
|
|
1126
|
-
node:
|
|
1127
|
-
objectOf:
|
|
1128
|
-
oneOf:
|
|
1129
|
-
oneOfType:
|
|
1130
|
-
shape:
|
|
1125
|
+
instanceOf: P,
|
|
1126
|
+
node: I(),
|
|
1127
|
+
objectOf: $,
|
|
1128
|
+
oneOf: _,
|
|
1129
|
+
oneOfType: A,
|
|
1130
|
+
shape: M,
|
|
1131
1131
|
exact: U
|
|
1132
1132
|
};
|
|
1133
|
-
function m(h,
|
|
1134
|
-
return h ===
|
|
1133
|
+
function m(h, v) {
|
|
1134
|
+
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
1135
1135
|
}
|
|
1136
|
-
function g(h,
|
|
1137
|
-
this.message = h, this.data =
|
|
1136
|
+
function g(h, v) {
|
|
1137
|
+
this.message = h, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
1138
1138
|
}
|
|
1139
1139
|
g.prototype = Error.prototype;
|
|
1140
1140
|
function b(h) {
|
|
1141
1141
|
if (process.env.NODE_ENV !== "production")
|
|
1142
|
-
var
|
|
1143
|
-
function
|
|
1144
|
-
if (N = N ||
|
|
1142
|
+
var v = {}, T = 0;
|
|
1143
|
+
function D(C, F, V, N, z, H, se) {
|
|
1144
|
+
if (N = N || d, H = H || V, se !== t) {
|
|
1145
1145
|
if (u) {
|
|
1146
|
-
var
|
|
1146
|
+
var L = new Error(
|
|
1147
1147
|
"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"
|
|
1148
1148
|
);
|
|
1149
|
-
throw
|
|
1149
|
+
throw L.name = "Invariant Violation", L;
|
|
1150
1150
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1151
|
-
var
|
|
1152
|
-
!
|
|
1151
|
+
var Y = N + ":" + V;
|
|
1152
|
+
!v[Y] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1153
1153
|
T < 3 && (a(
|
|
1154
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1155
|
-
),
|
|
1154
|
+
"You are manually calling a React.PropTypes validation function for the `" + H + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1155
|
+
), v[Y] = !0, T++);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
return
|
|
1158
|
+
return F[V] == null ? C ? F[V] === null ? new g("The " + z + " `" + H + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + z + " `" + H + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : h(F, V, N, z, H);
|
|
1159
1159
|
}
|
|
1160
|
-
var R =
|
|
1161
|
-
return R.isRequired =
|
|
1160
|
+
var R = D.bind(null, !1);
|
|
1161
|
+
return R.isRequired = D.bind(null, !0), R;
|
|
1162
1162
|
}
|
|
1163
1163
|
function w(h) {
|
|
1164
|
-
function
|
|
1165
|
-
var N = T[
|
|
1166
|
-
if (
|
|
1167
|
-
var
|
|
1164
|
+
function v(T, D, R, C, F, V) {
|
|
1165
|
+
var N = T[D], z = q(N);
|
|
1166
|
+
if (z !== h) {
|
|
1167
|
+
var H = K(N);
|
|
1168
1168
|
return new g(
|
|
1169
|
-
"Invalid " +
|
|
1169
|
+
"Invalid " + C + " `" + F + "` of type " + ("`" + H + "` supplied to `" + R + "`, expected ") + ("`" + h + "`."),
|
|
1170
1170
|
{ expectedType: h }
|
|
1171
1171
|
);
|
|
1172
1172
|
}
|
|
1173
1173
|
return null;
|
|
1174
1174
|
}
|
|
1175
|
-
return b(
|
|
1175
|
+
return b(v);
|
|
1176
1176
|
}
|
|
1177
1177
|
function E() {
|
|
1178
1178
|
return b(i);
|
|
1179
1179
|
}
|
|
1180
1180
|
function O(h) {
|
|
1181
|
-
function
|
|
1181
|
+
function v(T, D, R, C, F) {
|
|
1182
1182
|
if (typeof h != "function")
|
|
1183
|
-
return new g("Property `" +
|
|
1184
|
-
var
|
|
1185
|
-
if (!Array.isArray(
|
|
1186
|
-
var N = q(
|
|
1187
|
-
return new g("Invalid " +
|
|
1183
|
+
return new g("Property `" + F + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
1184
|
+
var V = T[D];
|
|
1185
|
+
if (!Array.isArray(V)) {
|
|
1186
|
+
var N = q(V);
|
|
1187
|
+
return new g("Invalid " + C + " `" + F + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an array."));
|
|
1188
1188
|
}
|
|
1189
|
-
for (var
|
|
1190
|
-
var
|
|
1191
|
-
if (
|
|
1192
|
-
return
|
|
1189
|
+
for (var z = 0; z < V.length; z++) {
|
|
1190
|
+
var H = h(V, z, R, C, F + "[" + z + "]", t);
|
|
1191
|
+
if (H instanceof Error)
|
|
1192
|
+
return H;
|
|
1193
1193
|
}
|
|
1194
1194
|
return null;
|
|
1195
1195
|
}
|
|
1196
|
-
return b(
|
|
1196
|
+
return b(v);
|
|
1197
1197
|
}
|
|
1198
1198
|
function S() {
|
|
1199
|
-
function h(
|
|
1200
|
-
var
|
|
1201
|
-
if (!o(
|
|
1202
|
-
var
|
|
1203
|
-
return new g("Invalid " + R + " `" +
|
|
1199
|
+
function h(v, T, D, R, C) {
|
|
1200
|
+
var F = v[T];
|
|
1201
|
+
if (!o(F)) {
|
|
1202
|
+
var V = q(F);
|
|
1203
|
+
return new g("Invalid " + R + " `" + C + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
1204
1204
|
}
|
|
1205
1205
|
return null;
|
|
1206
1206
|
}
|
|
1207
1207
|
return b(h);
|
|
1208
1208
|
}
|
|
1209
1209
|
function x() {
|
|
1210
|
-
function h(
|
|
1211
|
-
var
|
|
1212
|
-
if (!r.isValidElementType(
|
|
1213
|
-
var
|
|
1214
|
-
return new g("Invalid " + R + " `" +
|
|
1210
|
+
function h(v, T, D, R, C) {
|
|
1211
|
+
var F = v[T];
|
|
1212
|
+
if (!r.isValidElementType(F)) {
|
|
1213
|
+
var V = q(F);
|
|
1214
|
+
return new g("Invalid " + R + " `" + C + "` of type " + ("`" + V + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
1215
1215
|
}
|
|
1216
1216
|
return null;
|
|
1217
1217
|
}
|
|
1218
1218
|
return b(h);
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1221
|
-
function
|
|
1222
|
-
if (!(T[
|
|
1223
|
-
var
|
|
1224
|
-
return new g("Invalid " +
|
|
1220
|
+
function P(h) {
|
|
1221
|
+
function v(T, D, R, C, F) {
|
|
1222
|
+
if (!(T[D] instanceof h)) {
|
|
1223
|
+
var V = h.name || d, N = k(T[D]);
|
|
1224
|
+
return new g("Invalid " + C + " `" + F + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + V + "`."));
|
|
1225
1225
|
}
|
|
1226
1226
|
return null;
|
|
1227
1227
|
}
|
|
1228
|
-
return b(
|
|
1228
|
+
return b(v);
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function _(h) {
|
|
1231
1231
|
if (!Array.isArray(h))
|
|
1232
1232
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1233
1233
|
"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])."
|
|
1234
1234
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1235
|
-
function
|
|
1236
|
-
for (var
|
|
1237
|
-
if (m(
|
|
1235
|
+
function v(T, D, R, C, F) {
|
|
1236
|
+
for (var V = T[D], N = 0; N < h.length; N++)
|
|
1237
|
+
if (m(V, h[N]))
|
|
1238
1238
|
return null;
|
|
1239
|
-
var
|
|
1240
|
-
var
|
|
1241
|
-
return
|
|
1239
|
+
var z = JSON.stringify(h, function(se, L) {
|
|
1240
|
+
var Y = K(L);
|
|
1241
|
+
return Y === "symbol" ? String(L) : L;
|
|
1242
1242
|
});
|
|
1243
|
-
return new g("Invalid " +
|
|
1243
|
+
return new g("Invalid " + C + " `" + F + "` of value `" + String(V) + "` " + ("supplied to `" + R + "`, expected one of " + z + "."));
|
|
1244
1244
|
}
|
|
1245
|
-
return b(
|
|
1245
|
+
return b(v);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
function
|
|
1247
|
+
function $(h) {
|
|
1248
|
+
function v(T, D, R, C, F) {
|
|
1249
1249
|
if (typeof h != "function")
|
|
1250
|
-
return new g("Property `" +
|
|
1251
|
-
var
|
|
1250
|
+
return new g("Property `" + F + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
1251
|
+
var V = T[D], N = q(V);
|
|
1252
1252
|
if (N !== "object")
|
|
1253
|
-
return new g("Invalid " +
|
|
1254
|
-
for (var
|
|
1255
|
-
if (n(
|
|
1256
|
-
var
|
|
1257
|
-
if (
|
|
1258
|
-
return
|
|
1253
|
+
return new g("Invalid " + C + " `" + F + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an object."));
|
|
1254
|
+
for (var z in V)
|
|
1255
|
+
if (n(V, z)) {
|
|
1256
|
+
var H = h(V, z, R, C, F + "." + z, t);
|
|
1257
|
+
if (H instanceof Error)
|
|
1258
|
+
return H;
|
|
1259
1259
|
}
|
|
1260
1260
|
return null;
|
|
1261
1261
|
}
|
|
1262
|
-
return b(
|
|
1262
|
+
return b(v);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function A(h) {
|
|
1265
1265
|
if (!Array.isArray(h))
|
|
1266
1266
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1267
|
-
for (var
|
|
1268
|
-
var T = h[
|
|
1267
|
+
for (var v = 0; v < h.length; v++) {
|
|
1268
|
+
var T = h[v];
|
|
1269
1269
|
if (typeof T != "function")
|
|
1270
1270
|
return a(
|
|
1271
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " +
|
|
1271
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " + v + "."
|
|
1272
1272
|
), i;
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1275
|
-
for (var
|
|
1276
|
-
var se = h[
|
|
1277
|
-
if (
|
|
1274
|
+
function D(R, C, F, V, N) {
|
|
1275
|
+
for (var z = [], H = 0; H < h.length; H++) {
|
|
1276
|
+
var se = h[H], L = se(R, C, F, V, N, t);
|
|
1277
|
+
if (L == null)
|
|
1278
1278
|
return null;
|
|
1279
|
-
|
|
1279
|
+
L.data && n(L.data, "expectedType") && z.push(L.data.expectedType);
|
|
1280
1280
|
}
|
|
1281
|
-
var
|
|
1282
|
-
return new g("Invalid " +
|
|
1281
|
+
var Y = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
|
|
1282
|
+
return new g("Invalid " + V + " `" + N + "` supplied to " + ("`" + F + "`" + Y + "."));
|
|
1283
1283
|
}
|
|
1284
|
-
return b(
|
|
1284
|
+
return b(D);
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
function h(
|
|
1288
|
-
return
|
|
1286
|
+
function I() {
|
|
1287
|
+
function h(v, T, D, R, C) {
|
|
1288
|
+
return B(v[T]) ? null : new g("Invalid " + R + " `" + C + "` supplied to " + ("`" + D + "`, expected a ReactNode."));
|
|
1289
1289
|
}
|
|
1290
1290
|
return b(h);
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function j(h, v, T, D, R) {
|
|
1293
1293
|
return new g(
|
|
1294
|
-
(h || "React class") + ": " +
|
|
1294
|
+
(h || "React class") + ": " + v + " type `" + T + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1295
1295
|
);
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1298
|
-
function
|
|
1299
|
-
var
|
|
1297
|
+
function M(h) {
|
|
1298
|
+
function v(T, D, R, C, F) {
|
|
1299
|
+
var V = T[D], N = q(V);
|
|
1300
1300
|
if (N !== "object")
|
|
1301
|
-
return new g("Invalid " +
|
|
1302
|
-
for (var
|
|
1303
|
-
var
|
|
1304
|
-
if (typeof
|
|
1305
|
-
return
|
|
1306
|
-
var se =
|
|
1301
|
+
return new g("Invalid " + C + " `" + F + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1302
|
+
for (var z in h) {
|
|
1303
|
+
var H = h[z];
|
|
1304
|
+
if (typeof H != "function")
|
|
1305
|
+
return j(R, C, F, z, K(H));
|
|
1306
|
+
var se = H(V, z, R, C, F + "." + z, t);
|
|
1307
1307
|
if (se)
|
|
1308
1308
|
return se;
|
|
1309
1309
|
}
|
|
1310
1310
|
return null;
|
|
1311
1311
|
}
|
|
1312
|
-
return b(
|
|
1312
|
+
return b(v);
|
|
1313
1313
|
}
|
|
1314
1314
|
function U(h) {
|
|
1315
|
-
function
|
|
1316
|
-
var
|
|
1315
|
+
function v(T, D, R, C, F) {
|
|
1316
|
+
var V = T[D], N = q(V);
|
|
1317
1317
|
if (N !== "object")
|
|
1318
|
-
return new g("Invalid " +
|
|
1319
|
-
var
|
|
1320
|
-
for (var
|
|
1321
|
-
var se = h[
|
|
1322
|
-
if (n(h,
|
|
1323
|
-
return
|
|
1318
|
+
return new g("Invalid " + C + " `" + F + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1319
|
+
var z = e({}, T[D], h);
|
|
1320
|
+
for (var H in z) {
|
|
1321
|
+
var se = h[H];
|
|
1322
|
+
if (n(h, H) && typeof se != "function")
|
|
1323
|
+
return j(R, C, F, H, K(se));
|
|
1324
1324
|
if (!se)
|
|
1325
1325
|
return new g(
|
|
1326
|
-
"Invalid " +
|
|
1326
|
+
"Invalid " + C + " `" + F + "` key `" + H + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[D], null, " ") + `
|
|
1327
1327
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1328
1328
|
);
|
|
1329
|
-
var
|
|
1330
|
-
if (
|
|
1331
|
-
return
|
|
1329
|
+
var L = se(V, H, R, C, F + "." + H, t);
|
|
1330
|
+
if (L)
|
|
1331
|
+
return L;
|
|
1332
1332
|
}
|
|
1333
1333
|
return null;
|
|
1334
1334
|
}
|
|
1335
|
-
return b(
|
|
1335
|
+
return b(v);
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function B(h) {
|
|
1338
1338
|
switch (typeof h) {
|
|
1339
1339
|
case "number":
|
|
1340
1340
|
case "string":
|
|
@@ -1344,20 +1344,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1344
1344
|
return !h;
|
|
1345
1345
|
case "object":
|
|
1346
1346
|
if (Array.isArray(h))
|
|
1347
|
-
return h.every(
|
|
1347
|
+
return h.every(B);
|
|
1348
1348
|
if (h === null || o(h))
|
|
1349
1349
|
return !0;
|
|
1350
|
-
var
|
|
1351
|
-
if (
|
|
1352
|
-
var T =
|
|
1353
|
-
if (
|
|
1354
|
-
for (; !(
|
|
1355
|
-
if (!
|
|
1350
|
+
var v = l(h);
|
|
1351
|
+
if (v) {
|
|
1352
|
+
var T = v.call(h), D;
|
|
1353
|
+
if (v !== h.entries) {
|
|
1354
|
+
for (; !(D = T.next()).done; )
|
|
1355
|
+
if (!B(D.value))
|
|
1356
1356
|
return !1;
|
|
1357
1357
|
} else
|
|
1358
|
-
for (; !(
|
|
1359
|
-
var R =
|
|
1360
|
-
if (R && !
|
|
1358
|
+
for (; !(D = T.next()).done; ) {
|
|
1359
|
+
var R = D.value;
|
|
1360
|
+
if (R && !B(R[1]))
|
|
1361
1361
|
return !1;
|
|
1362
1362
|
}
|
|
1363
1363
|
} else
|
|
@@ -1367,61 +1367,61 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1367
1367
|
return !1;
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return h === "symbol" ? !0 :
|
|
1370
|
+
function Z(h, v) {
|
|
1371
|
+
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1372
1372
|
}
|
|
1373
1373
|
function q(h) {
|
|
1374
|
-
var
|
|
1375
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1374
|
+
var v = typeof h;
|
|
1375
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : Z(v, h) ? "symbol" : v;
|
|
1376
1376
|
}
|
|
1377
1377
|
function K(h) {
|
|
1378
1378
|
if (typeof h > "u" || h === null)
|
|
1379
1379
|
return "" + h;
|
|
1380
|
-
var
|
|
1381
|
-
if (
|
|
1380
|
+
var v = q(h);
|
|
1381
|
+
if (v === "object") {
|
|
1382
1382
|
if (h instanceof Date)
|
|
1383
1383
|
return "date";
|
|
1384
1384
|
if (h instanceof RegExp)
|
|
1385
1385
|
return "regexp";
|
|
1386
1386
|
}
|
|
1387
|
-
return
|
|
1387
|
+
return v;
|
|
1388
1388
|
}
|
|
1389
1389
|
function W(h) {
|
|
1390
|
-
var
|
|
1391
|
-
switch (
|
|
1390
|
+
var v = K(h);
|
|
1391
|
+
switch (v) {
|
|
1392
1392
|
case "array":
|
|
1393
1393
|
case "object":
|
|
1394
|
-
return "an " +
|
|
1394
|
+
return "an " + v;
|
|
1395
1395
|
case "boolean":
|
|
1396
1396
|
case "date":
|
|
1397
1397
|
case "regexp":
|
|
1398
|
-
return "a " +
|
|
1398
|
+
return "a " + v;
|
|
1399
1399
|
default:
|
|
1400
|
-
return
|
|
1400
|
+
return v;
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1404
|
-
return !h.constructor || !h.constructor.name ?
|
|
1403
|
+
function k(h) {
|
|
1404
|
+
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1405
1405
|
}
|
|
1406
|
-
return
|
|
1407
|
-
},
|
|
1406
|
+
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
1407
|
+
}, pt;
|
|
1408
1408
|
}
|
|
1409
|
-
var
|
|
1409
|
+
var ht, qt;
|
|
1410
1410
|
function cn() {
|
|
1411
|
-
if (qt) return
|
|
1411
|
+
if (qt) return ht;
|
|
1412
1412
|
qt = 1;
|
|
1413
1413
|
var r = /* @__PURE__ */ Tt();
|
|
1414
1414
|
function e() {
|
|
1415
1415
|
}
|
|
1416
1416
|
function t() {
|
|
1417
1417
|
}
|
|
1418
|
-
return t.resetWarningCache = e,
|
|
1418
|
+
return t.resetWarningCache = e, ht = function() {
|
|
1419
1419
|
function n(i, o, u, c, f, l) {
|
|
1420
1420
|
if (l !== r) {
|
|
1421
|
-
var
|
|
1421
|
+
var d = new Error(
|
|
1422
1422
|
"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"
|
|
1423
1423
|
);
|
|
1424
|
-
throw
|
|
1424
|
+
throw d.name = "Invariant Violation", d;
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
n.isRequired = n;
|
|
@@ -1452,7 +1452,7 @@ function cn() {
|
|
|
1452
1452
|
resetWarningCache: e
|
|
1453
1453
|
};
|
|
1454
1454
|
return a.PropTypes = a, a;
|
|
1455
|
-
},
|
|
1455
|
+
}, ht;
|
|
1456
1456
|
}
|
|
1457
1457
|
var Kt;
|
|
1458
1458
|
function un() {
|
|
@@ -1475,7 +1475,7 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1475
1475
|
if (e[s] !== t[s])
|
|
1476
1476
|
return !0;
|
|
1477
1477
|
return !1;
|
|
1478
|
-
}, pn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"],
|
|
1478
|
+
}, pn = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Ge = "http://www.w3.org/2000/svg", zt = "http://www.w3.org/1999/xlink", De = /* @__PURE__ */ function(r) {
|
|
1479
1479
|
function e() {
|
|
1480
1480
|
for (var n, s = arguments.length, a = new Array(s), i = 0; i < s; i++)
|
|
1481
1481
|
a[i] = arguments[i];
|
|
@@ -1491,11 +1491,11 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1491
1491
|
return t.renderSVG = function() {
|
|
1492
1492
|
var s = this;
|
|
1493
1493
|
if (this.reactWrapper instanceof fn(this.reactWrapper).Node) {
|
|
1494
|
-
var a = this.props, i = a.desc, o = a.evalScripts, u = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, l = a.title,
|
|
1495
|
-
b === "svg" ? (w = document.createElementNS(
|
|
1496
|
-
var O = function(
|
|
1494
|
+
var a = this.props, i = a.desc, o = a.evalScripts, u = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, b = this.props.wrapper, w, E;
|
|
1495
|
+
b === "svg" ? (w = document.createElementNS(Ge, b), w.setAttribute("xmlns", Ge), w.setAttribute("xmlns:xlink", zt), E = document.createElementNS(Ge, b)) : (w = document.createElement(b), E = document.createElement(b)), w.appendChild(E), E.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(w);
|
|
1496
|
+
var O = function(_) {
|
|
1497
1497
|
if (s.removeSVG(), !s._isMounted) {
|
|
1498
|
-
|
|
1498
|
+
p(_);
|
|
1499
1499
|
return;
|
|
1500
1500
|
}
|
|
1501
1501
|
s.setState(function() {
|
|
@@ -1504,11 +1504,11 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1504
1504
|
isLoading: !1
|
|
1505
1505
|
};
|
|
1506
1506
|
}, function() {
|
|
1507
|
-
|
|
1507
|
+
p(_);
|
|
1508
1508
|
});
|
|
1509
|
-
}, S = function(
|
|
1510
|
-
if (
|
|
1511
|
-
O(
|
|
1509
|
+
}, S = function(_, $) {
|
|
1510
|
+
if (_) {
|
|
1511
|
+
O(_);
|
|
1512
1512
|
return;
|
|
1513
1513
|
}
|
|
1514
1514
|
s._isMounted && s.setState(function() {
|
|
@@ -1517,34 +1517,34 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1517
1517
|
};
|
|
1518
1518
|
}, function() {
|
|
1519
1519
|
try {
|
|
1520
|
-
g(
|
|
1521
|
-
} catch (
|
|
1522
|
-
O(
|
|
1520
|
+
g($);
|
|
1521
|
+
} catch (A) {
|
|
1522
|
+
O(A);
|
|
1523
1523
|
}
|
|
1524
1524
|
});
|
|
1525
|
-
}, x = function(
|
|
1526
|
-
if (
|
|
1527
|
-
var
|
|
1528
|
-
|
|
1529
|
-
var
|
|
1530
|
-
|
|
1525
|
+
}, x = function(_) {
|
|
1526
|
+
if (_.setAttribute("role", "img"), i) {
|
|
1527
|
+
var $ = _.querySelector(":scope > desc");
|
|
1528
|
+
$ && _.removeChild($);
|
|
1529
|
+
var A = document.createElement("desc");
|
|
1530
|
+
A.innerHTML = i, _.prepend(A);
|
|
1531
1531
|
}
|
|
1532
1532
|
if (l) {
|
|
1533
|
-
var
|
|
1534
|
-
|
|
1535
|
-
var
|
|
1536
|
-
|
|
1533
|
+
var I = _.querySelector(":scope > title");
|
|
1534
|
+
I && _.removeChild(I);
|
|
1535
|
+
var j = document.createElement("title");
|
|
1536
|
+
j.innerHTML = l, _.prepend(j);
|
|
1537
1537
|
}
|
|
1538
1538
|
try {
|
|
1539
|
-
m(
|
|
1540
|
-
} catch (
|
|
1541
|
-
O(
|
|
1539
|
+
m(_);
|
|
1540
|
+
} catch (M) {
|
|
1541
|
+
O(M);
|
|
1542
1542
|
}
|
|
1543
1543
|
};
|
|
1544
1544
|
rn(E, {
|
|
1545
1545
|
afterEach: S,
|
|
1546
1546
|
beforeEach: x,
|
|
1547
|
-
cacheRequests:
|
|
1547
|
+
cacheRequests: d,
|
|
1548
1548
|
evalScripts: o,
|
|
1549
1549
|
httpRequestWithCredentials: u,
|
|
1550
1550
|
renumerateIRIElements: c
|
|
@@ -1557,7 +1557,7 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1557
1557
|
this._isMounted = !0, this.renderSVG();
|
|
1558
1558
|
}, t.componentDidUpdate = function(s) {
|
|
1559
1559
|
var a = this;
|
|
1560
|
-
dn(
|
|
1560
|
+
dn(tt({}, s), this.props) && this.setState(function() {
|
|
1561
1561
|
return a.initialState;
|
|
1562
1562
|
}, function() {
|
|
1563
1563
|
a.removeSVG(), a.renderSVG();
|
|
@@ -1571,11 +1571,11 @@ var ie = /* @__PURE__ */ un(), fn = function(e) {
|
|
|
1571
1571
|
s.httpRequestWithCredentials;
|
|
1572
1572
|
var i = s.loading;
|
|
1573
1573
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1574
|
-
var o = s.wrapper, u =
|
|
1575
|
-
return /* @__PURE__ */ Fe.createElement(c,
|
|
1574
|
+
var o = s.wrapper, u = Br(s, pn), c = o;
|
|
1575
|
+
return /* @__PURE__ */ Fe.createElement(c, tt({}, u, {
|
|
1576
1576
|
ref: this.refCallback
|
|
1577
1577
|
}, o === "svg" ? {
|
|
1578
|
-
xmlns:
|
|
1578
|
+
xmlns: Ge,
|
|
1579
1579
|
xmlnsXlink: zt
|
|
1580
1580
|
} : {}), this.state.isLoading && i && /* @__PURE__ */ Fe.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ Fe.createElement(a, null));
|
|
1581
1581
|
}, e;
|
|
@@ -1616,9 +1616,9 @@ let vt = {
|
|
|
1616
1616
|
assets: "/"
|
|
1617
1617
|
// Default for storybook isolation development
|
|
1618
1618
|
};
|
|
1619
|
-
const
|
|
1619
|
+
const Cs = (r) => {
|
|
1620
1620
|
vt = { ...vt, ...r };
|
|
1621
|
-
}, Jt = (r) => `${vt.assets}/${r}`.replace(/\/+/g, "/"),
|
|
1621
|
+
}, Jt = (r) => `${vt.assets}/${r}`.replace(/\/+/g, "/"), ce = yr.memo(
|
|
1622
1622
|
({
|
|
1623
1623
|
icon: r,
|
|
1624
1624
|
width: e,
|
|
@@ -1632,23 +1632,23 @@ const $s = (r) => {
|
|
|
1632
1632
|
isInteractable: c = !1,
|
|
1633
1633
|
spin: f = !1,
|
|
1634
1634
|
title: l,
|
|
1635
|
-
tabIndex:
|
|
1635
|
+
tabIndex: d
|
|
1636
1636
|
}) => {
|
|
1637
|
-
const [
|
|
1637
|
+
const [p, m] = J(r), g = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), b = g && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), w = Jt(`assets/svg/${r}.svg`), E = Jt(
|
|
1638
1638
|
`assets/svg/${n}.svg`
|
|
1639
1639
|
), O = {
|
|
1640
1640
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1641
1641
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1642
1642
|
}, S = () => {
|
|
1643
1643
|
!a && c && u && u();
|
|
1644
|
-
}, x = (
|
|
1645
|
-
!a && c && (
|
|
1644
|
+
}, x = (P) => {
|
|
1645
|
+
!a && c && (P.key === "Enter" || P.key === " ") && (P.preventDefault(), S());
|
|
1646
1646
|
};
|
|
1647
|
-
return /* @__PURE__ */
|
|
1647
|
+
return /* @__PURE__ */ y.jsx(y.Fragment, { children: b ? /* @__PURE__ */ y.jsx(
|
|
1648
1648
|
De,
|
|
1649
1649
|
{
|
|
1650
1650
|
src: r,
|
|
1651
|
-
fallback: () => /* @__PURE__ */
|
|
1651
|
+
fallback: () => /* @__PURE__ */ y.jsx(De, { src: E, wrapper: "svg" }),
|
|
1652
1652
|
width: e || "1rem",
|
|
1653
1653
|
height: t || "1rem",
|
|
1654
1654
|
wrapper: "svg",
|
|
@@ -1659,14 +1659,14 @@ const $s = (r) => {
|
|
|
1659
1659
|
className: O.svg,
|
|
1660
1660
|
onClick: S,
|
|
1661
1661
|
onKeyDown: x,
|
|
1662
|
-
tabIndex:
|
|
1662
|
+
tabIndex: d
|
|
1663
1663
|
}
|
|
1664
1664
|
) : g ? (
|
|
1665
1665
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1666
|
-
/* @__PURE__ */
|
|
1666
|
+
/* @__PURE__ */ y.jsx(
|
|
1667
1667
|
"img",
|
|
1668
1668
|
{
|
|
1669
|
-
src:
|
|
1669
|
+
src: p,
|
|
1670
1670
|
width: e || "16px",
|
|
1671
1671
|
height: t || "auto",
|
|
1672
1672
|
alt: l,
|
|
@@ -1674,16 +1674,16 @@ const $s = (r) => {
|
|
|
1674
1674
|
onClick: S,
|
|
1675
1675
|
className: O.img,
|
|
1676
1676
|
title: l,
|
|
1677
|
-
onKeyDown: (
|
|
1678
|
-
(
|
|
1677
|
+
onKeyDown: (P) => {
|
|
1678
|
+
(P.key === "Enter" || P.key === " ") && S();
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
)
|
|
1682
|
-
) : /* @__PURE__ */
|
|
1682
|
+
) : /* @__PURE__ */ y.jsx(
|
|
1683
1683
|
De,
|
|
1684
1684
|
{
|
|
1685
1685
|
src: w,
|
|
1686
|
-
fallback: () => /* @__PURE__ */
|
|
1686
|
+
fallback: () => /* @__PURE__ */ y.jsx(De, { src: E, wrapper: "svg" }),
|
|
1687
1687
|
width: e || "1rem",
|
|
1688
1688
|
height: t || "1rem",
|
|
1689
1689
|
wrapper: "svg",
|
|
@@ -1694,7 +1694,7 @@ const $s = (r) => {
|
|
|
1694
1694
|
className: O.svg,
|
|
1695
1695
|
onClick: S,
|
|
1696
1696
|
onKeyDown: x,
|
|
1697
|
-
tabIndex:
|
|
1697
|
+
tabIndex: d
|
|
1698
1698
|
}
|
|
1699
1699
|
) });
|
|
1700
1700
|
}
|
|
@@ -1726,8 +1726,8 @@ const $s = (r) => {
|
|
|
1726
1726
|
state: c,
|
|
1727
1727
|
variant: f,
|
|
1728
1728
|
rotatedShapeIcon: l = !1,
|
|
1729
|
-
onShapeIconClick:
|
|
1730
|
-
ref:
|
|
1729
|
+
onShapeIconClick: d,
|
|
1730
|
+
ref: p,
|
|
1731
1731
|
inputRef: m,
|
|
1732
1732
|
onKeyDown: g,
|
|
1733
1733
|
inputType: b = "text",
|
|
@@ -1736,57 +1736,57 @@ const $s = (r) => {
|
|
|
1736
1736
|
helperText: O = !1,
|
|
1737
1737
|
error: S,
|
|
1738
1738
|
appearance: x = "base",
|
|
1739
|
-
fullWidth:
|
|
1740
|
-
_dataComponent:
|
|
1741
|
-
width:
|
|
1739
|
+
fullWidth: P = !1,
|
|
1740
|
+
_dataComponent: _ = "textfield",
|
|
1741
|
+
width: $
|
|
1742
1742
|
}) => {
|
|
1743
|
-
const
|
|
1743
|
+
const A = St(), I = `${A}-helper`, j = S ? "danger" : c, M = S || c == "danger" ? "error" : o, U = O || !!S, B = (K) => {
|
|
1744
1744
|
s == null || s(K.target.value);
|
|
1745
|
-
},
|
|
1746
|
-
wrapper: `${me["smp-textfield-wrapper"]} ${
|
|
1747
|
-
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${a ? me["smp-textfield-placeholder"] : ""} ${u ? me[`smp-textfield-${u}`] : ""} ${
|
|
1745
|
+
}, Z = {
|
|
1746
|
+
wrapper: `${me["smp-textfield-wrapper"]} ${P ? me["smp-textfield-fullWidth"] : ""}`,
|
|
1747
|
+
container: `${me["smp-textfield"]} ${r ? me["smp-textfield-disabled"] : ""} ${a ? me["smp-textfield-placeholder"] : ""} ${u ? me[`smp-textfield-${u}`] : ""} ${j ? me[`smp-textfield-${j}`] : ""} ${x ? me[`smp-textfield-${x}`] : ""} ${i ? "" : me["smp-textfield-readOnly"]}`,
|
|
1748
1748
|
input: `${me["smp-textfield-input"]}`
|
|
1749
1749
|
};
|
|
1750
1750
|
if (f && (f !== "notSelectable" || i)) {
|
|
1751
1751
|
const K = me[`smp-textfield-variant-${f}`];
|
|
1752
|
-
K && (
|
|
1752
|
+
K && (Z.container += ` ${K}`);
|
|
1753
1753
|
}
|
|
1754
|
-
const q =
|
|
1755
|
-
return /* @__PURE__ */
|
|
1756
|
-
E && /* @__PURE__ */
|
|
1757
|
-
/* @__PURE__ */
|
|
1754
|
+
const q = $ ? { "--smp-textField-width-base": $ } : void 0;
|
|
1755
|
+
return /* @__PURE__ */ y.jsxs("div", { className: Z.wrapper, "data-component": _, children: [
|
|
1756
|
+
E && /* @__PURE__ */ y.jsx($e, { label: E, disabled: r, htmlFor: A }),
|
|
1757
|
+
/* @__PURE__ */ y.jsxs(
|
|
1758
1758
|
"div",
|
|
1759
1759
|
{
|
|
1760
|
-
className:
|
|
1761
|
-
ref:
|
|
1760
|
+
className: Z.container,
|
|
1761
|
+
ref: p,
|
|
1762
1762
|
style: q,
|
|
1763
1763
|
children: [
|
|
1764
|
-
t && /* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */
|
|
1764
|
+
t && /* @__PURE__ */ y.jsx(ce, { icon: t, disabled: r }),
|
|
1765
|
+
/* @__PURE__ */ y.jsx(
|
|
1766
1766
|
"input",
|
|
1767
1767
|
{
|
|
1768
|
-
id:
|
|
1768
|
+
id: A,
|
|
1769
1769
|
type: b,
|
|
1770
1770
|
value: e,
|
|
1771
1771
|
placeholder: a,
|
|
1772
|
-
onChange:
|
|
1772
|
+
onChange: B,
|
|
1773
1773
|
onBlur: n,
|
|
1774
|
-
className:
|
|
1774
|
+
className: Z.input,
|
|
1775
1775
|
disabled: r,
|
|
1776
1776
|
readOnly: !i,
|
|
1777
1777
|
onKeyDown: g,
|
|
1778
1778
|
"aria-label": w,
|
|
1779
1779
|
ref: m,
|
|
1780
|
-
"aria-describedby": U ?
|
|
1780
|
+
"aria-describedby": U ? I : void 0
|
|
1781
1781
|
}
|
|
1782
1782
|
),
|
|
1783
|
-
|
|
1784
|
-
|
|
1783
|
+
M && /* @__PURE__ */ y.jsx(
|
|
1784
|
+
ce,
|
|
1785
1785
|
{
|
|
1786
|
-
icon:
|
|
1786
|
+
icon: M,
|
|
1787
1787
|
disabled: r,
|
|
1788
|
-
state:
|
|
1789
|
-
onClick:
|
|
1788
|
+
state: j,
|
|
1789
|
+
onClick: d,
|
|
1790
1790
|
rotated: l,
|
|
1791
1791
|
isInteractable: i,
|
|
1792
1792
|
tabIndex: 0
|
|
@@ -1795,13 +1795,13 @@ const $s = (r) => {
|
|
|
1795
1795
|
]
|
|
1796
1796
|
}
|
|
1797
1797
|
),
|
|
1798
|
-
U && /* @__PURE__ */
|
|
1798
|
+
U && /* @__PURE__ */ y.jsx(
|
|
1799
1799
|
vr,
|
|
1800
1800
|
{
|
|
1801
1801
|
helperText: S,
|
|
1802
1802
|
disabled: r,
|
|
1803
|
-
state:
|
|
1804
|
-
id:
|
|
1803
|
+
state: j,
|
|
1804
|
+
id: I
|
|
1805
1805
|
}
|
|
1806
1806
|
)
|
|
1807
1807
|
] });
|
|
@@ -1812,22 +1812,22 @@ function Er({
|
|
|
1812
1812
|
containerHeight: t,
|
|
1813
1813
|
overscan: n = 5
|
|
1814
1814
|
}) {
|
|
1815
|
-
const [s, a] =
|
|
1815
|
+
const [s, a] = J(0), i = xe(null), o = r.length * e, u = Math.max(0, Math.floor(s / e) - n), c = Math.min(
|
|
1816
1816
|
r.length - 1,
|
|
1817
1817
|
Math.floor((s + t) / e) + n
|
|
1818
1818
|
), f = [];
|
|
1819
|
-
for (let
|
|
1819
|
+
for (let p = u; p <= c; p++)
|
|
1820
1820
|
f.push({
|
|
1821
|
-
item: r[
|
|
1822
|
-
index:
|
|
1823
|
-
offsetTop:
|
|
1821
|
+
item: r[p],
|
|
1822
|
+
index: p,
|
|
1823
|
+
offsetTop: p * e
|
|
1824
1824
|
});
|
|
1825
|
-
const l = ve((
|
|
1826
|
-
const m =
|
|
1825
|
+
const l = ve((p) => {
|
|
1826
|
+
const m = p.target.scrollTop;
|
|
1827
1827
|
a(m);
|
|
1828
|
-
}, []),
|
|
1828
|
+
}, []), d = (p) => {
|
|
1829
1829
|
if (!i.current) return;
|
|
1830
|
-
const m =
|
|
1830
|
+
const m = p * e, g = m + e, b = i.current, w = b.scrollTop, E = w + t;
|
|
1831
1831
|
m < w ? b.scrollTop = m : g > E && (b.scrollTop = g - t);
|
|
1832
1832
|
};
|
|
1833
1833
|
return {
|
|
@@ -1856,10 +1856,10 @@ function Er({
|
|
|
1856
1856
|
startIndex: u,
|
|
1857
1857
|
endIndex: c
|
|
1858
1858
|
},
|
|
1859
|
-
scrollToIndex:
|
|
1859
|
+
scrollToIndex: d
|
|
1860
1860
|
};
|
|
1861
1861
|
}
|
|
1862
|
-
const
|
|
1862
|
+
const Be = {
|
|
1863
1863
|
"smp-list": "_smp-list_t8eqj_1",
|
|
1864
1864
|
"smp-list-container": "_smp-list-container_t8eqj_10",
|
|
1865
1865
|
"smp-list-listItem": "_smp-list-listItem_t8eqj_15"
|
|
@@ -1877,99 +1877,99 @@ const Ge = {
|
|
|
1877
1877
|
onClick: u,
|
|
1878
1878
|
onKeyDown: c
|
|
1879
1879
|
}) => {
|
|
1880
|
-
var
|
|
1881
|
-
const [f, l] =
|
|
1880
|
+
var I;
|
|
1881
|
+
const [f, l] = J(""), d = 24, [p, m] = J(
|
|
1882
1882
|
a !== null ? a : -1
|
|
1883
1883
|
), g = s !== void 0 ? s : e.length > hn, b = f ? e.filter(
|
|
1884
|
-
(
|
|
1885
|
-
) : e, w = (
|
|
1886
|
-
l(
|
|
1884
|
+
(j) => j.label.toLowerCase().includes(f.toLowerCase())
|
|
1885
|
+
) : e, w = (j) => {
|
|
1886
|
+
l(j);
|
|
1887
1887
|
}, { virtualItems: E, containerProps: O, innerProps: S, scrollToIndex: x } = Er({
|
|
1888
1888
|
items: b,
|
|
1889
|
-
itemHeight:
|
|
1889
|
+
itemHeight: d,
|
|
1890
1890
|
containerHeight: 200,
|
|
1891
1891
|
overscan: 5
|
|
1892
1892
|
});
|
|
1893
1893
|
oe(() => {
|
|
1894
|
-
a !== null && a !==
|
|
1894
|
+
a !== null && a !== p && m(a);
|
|
1895
1895
|
}, [a]), oe(() => {
|
|
1896
|
-
|
|
1897
|
-
}, [
|
|
1898
|
-
const
|
|
1899
|
-
if (
|
|
1900
|
-
|
|
1901
|
-
let
|
|
1902
|
-
|
|
1903
|
-
} else
|
|
1904
|
-
c && c(
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1907
|
-
},
|
|
1908
|
-
|
|
1909
|
-
},
|
|
1910
|
-
wrapper: `${
|
|
1911
|
-
container: `${
|
|
1912
|
-
virtualScroll: `${
|
|
1913
|
-
listItem: `${
|
|
1896
|
+
p >= 0 && p < b.length && x(p);
|
|
1897
|
+
}, [p, b]);
|
|
1898
|
+
const P = (j) => {
|
|
1899
|
+
if (j.key === "ArrowDown" || j.key === "ArrowUp") {
|
|
1900
|
+
j.preventDefault();
|
|
1901
|
+
let M = p;
|
|
1902
|
+
j.key === "ArrowDown" ? M = p < b.length - 1 ? p + 1 : 0 : j.key === "ArrowUp" && (M = p > 0 ? p - 1 : b.length - 1), m(M);
|
|
1903
|
+
} else j.key === "Enter" ? p >= 0 && p < b.length && (u == null || u(b[p])) : j.key === "Escape" && (j.preventDefault(), j.stopPropagation());
|
|
1904
|
+
c && c(j);
|
|
1905
|
+
}, _ = (j) => {
|
|
1906
|
+
P(j);
|
|
1907
|
+
}, $ = (j) => {
|
|
1908
|
+
P(j);
|
|
1909
|
+
}, A = {
|
|
1910
|
+
wrapper: `${Be["smp-list"]}`,
|
|
1911
|
+
container: `${Be["smp-list-container"]}`,
|
|
1912
|
+
virtualScroll: `${Be["smp-list-virtualScroll"]}`,
|
|
1913
|
+
listItem: `${Be["smp-list-listItem"]}`
|
|
1914
1914
|
};
|
|
1915
|
-
return /* @__PURE__ */
|
|
1915
|
+
return /* @__PURE__ */ y.jsxs(
|
|
1916
1916
|
"div",
|
|
1917
1917
|
{
|
|
1918
1918
|
id: r,
|
|
1919
1919
|
ref: n,
|
|
1920
|
-
className:
|
|
1920
|
+
className: A.wrapper,
|
|
1921
1921
|
"data-component": "list",
|
|
1922
1922
|
style: {
|
|
1923
1923
|
width: o
|
|
1924
1924
|
},
|
|
1925
1925
|
children: [
|
|
1926
|
-
g && /* @__PURE__ */
|
|
1926
|
+
g && /* @__PURE__ */ y.jsx(
|
|
1927
1927
|
Ce,
|
|
1928
1928
|
{
|
|
1929
1929
|
bindValue: f,
|
|
1930
1930
|
placeholder: "Search...",
|
|
1931
1931
|
onChange: w,
|
|
1932
|
-
onKeyDown:
|
|
1932
|
+
onKeyDown: _
|
|
1933
1933
|
}
|
|
1934
1934
|
),
|
|
1935
|
-
/* @__PURE__ */
|
|
1935
|
+
/* @__PURE__ */ y.jsx(
|
|
1936
1936
|
"div",
|
|
1937
1937
|
{
|
|
1938
1938
|
...O,
|
|
1939
|
-
className:
|
|
1939
|
+
className: A.container,
|
|
1940
1940
|
tabIndex: 0,
|
|
1941
1941
|
role: "listbox",
|
|
1942
1942
|
"aria-label": "List",
|
|
1943
|
-
onKeyDown:
|
|
1944
|
-
"aria-activedescendant":
|
|
1945
|
-
children: /* @__PURE__ */
|
|
1946
|
-
const
|
|
1943
|
+
onKeyDown: $,
|
|
1944
|
+
"aria-activedescendant": p >= 0 && p < b.length ? (I = b[p]) == null ? void 0 : I.id : void 0,
|
|
1945
|
+
children: /* @__PURE__ */ y.jsx("div", { ...S, className: A.virtualScroll, children: E.map(({ item: j, index: M, offsetTop: U }) => {
|
|
1946
|
+
const B = i.includes(j.id);
|
|
1947
1947
|
return (
|
|
1948
1948
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
1949
|
-
/* @__PURE__ */
|
|
1949
|
+
/* @__PURE__ */ y.jsxs(
|
|
1950
1950
|
"li",
|
|
1951
1951
|
{
|
|
1952
1952
|
role: "option",
|
|
1953
|
-
id:
|
|
1954
|
-
"aria-selected":
|
|
1953
|
+
id: j.id,
|
|
1954
|
+
"aria-selected": p === M ? "true" : "false",
|
|
1955
1955
|
tabIndex: -1,
|
|
1956
|
-
className: `${
|
|
1957
|
-
"aria-label":
|
|
1956
|
+
className: `${A.listItem} ${p === M ? "selected-item" : ""}`,
|
|
1957
|
+
"aria-label": j.id + "-" + j.label,
|
|
1958
1958
|
style: {
|
|
1959
|
-
height: `${
|
|
1960
|
-
lineHeight: `calc(${
|
|
1959
|
+
height: `${d}px`,
|
|
1960
|
+
lineHeight: `calc(${d}px - 2*2px)`,
|
|
1961
1961
|
// lineHeight - 2*padding
|
|
1962
1962
|
transform: `translateY(${U}px)`
|
|
1963
1963
|
},
|
|
1964
1964
|
onClick: () => {
|
|
1965
|
-
u == null || u(
|
|
1965
|
+
u == null || u(j), m(M);
|
|
1966
1966
|
},
|
|
1967
1967
|
children: [
|
|
1968
|
-
|
|
1969
|
-
|
|
1968
|
+
et(j.id, j.label, t),
|
|
1969
|
+
B && /* @__PURE__ */ y.jsx(ce, { icon: "check", width: 16 })
|
|
1970
1970
|
]
|
|
1971
1971
|
},
|
|
1972
|
-
|
|
1972
|
+
j.id
|
|
1973
1973
|
)
|
|
1974
1974
|
);
|
|
1975
1975
|
}) })
|
|
@@ -1984,16 +1984,16 @@ const Ge = {
|
|
|
1984
1984
|
optionalDisplayValue: t,
|
|
1985
1985
|
...n
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const [s, a] =
|
|
1988
|
-
|
|
1987
|
+
const [s, a] = J(
|
|
1988
|
+
et(e, t, r)
|
|
1989
1989
|
);
|
|
1990
1990
|
return oe(() => {
|
|
1991
1991
|
a(e);
|
|
1992
1992
|
}, [e]), oe(() => {
|
|
1993
1993
|
a(
|
|
1994
|
-
|
|
1994
|
+
et(e, t, r)
|
|
1995
1995
|
);
|
|
1996
|
-
}, [t, r]), /* @__PURE__ */
|
|
1996
|
+
}, [t, r]), /* @__PURE__ */ y.jsx(Ce, { ...n, bindValue: s });
|
|
1997
1997
|
}, mn = (r) => {
|
|
1998
1998
|
const e = xe(null);
|
|
1999
1999
|
return oe(() => () => {
|
|
@@ -2007,7 +2007,7 @@ const Ge = {
|
|
|
2007
2007
|
function Ot({
|
|
2008
2008
|
children: r
|
|
2009
2009
|
}) {
|
|
2010
|
-
const [e, t] =
|
|
2010
|
+
const [e, t] = J(!1);
|
|
2011
2011
|
return oe(() => {
|
|
2012
2012
|
t(!0);
|
|
2013
2013
|
}, []), e ? Ir(r, document.body) : null;
|
|
@@ -2025,66 +2025,66 @@ const Rr = ({
|
|
|
2025
2025
|
_changeOnEnter: c = !1,
|
|
2026
2026
|
onChange: f,
|
|
2027
2027
|
onOptionsRequest: l,
|
|
2028
|
-
_multiActiveIndex:
|
|
2029
|
-
...
|
|
2028
|
+
_multiActiveIndex: d,
|
|
2029
|
+
...p
|
|
2030
2030
|
}) => {
|
|
2031
|
-
const [m, g] =
|
|
2031
|
+
const [m, g] = J(r), [b, w] = J(e), [E, O] = J(!1), [S, x] = J(t || []), [P, _] = J(0), [$, A] = J([r]), { anchorRef: I, targetRef: j, anchorWidth: M } = Et({
|
|
2032
2032
|
position: "bottom",
|
|
2033
2033
|
enabled: E
|
|
2034
2034
|
});
|
|
2035
|
-
|
|
2036
|
-
const U = mn(400),
|
|
2035
|
+
Qe(j, () => O(!1));
|
|
2036
|
+
const U = mn(400), B = (W) => {
|
|
2037
2037
|
W.length >= a ? u && l && U(async () => {
|
|
2038
|
-
const
|
|
2039
|
-
x(
|
|
2038
|
+
const k = await l(u, W);
|
|
2039
|
+
x(k), _(k.length > 0 ? 0 : -1), O(!0);
|
|
2040
2040
|
}) : O(!1), g(W), w(e), c || f == null || f(W, e);
|
|
2041
|
-
},
|
|
2041
|
+
}, Z = (W) => {
|
|
2042
2042
|
c ? (g(""), w("")) : (g(W.id), w(W.label)), f == null || f(W.id, W.label);
|
|
2043
|
-
const
|
|
2044
|
-
|
|
2043
|
+
const k = S.findIndex((h) => h.id === W.id);
|
|
2044
|
+
_(k), A([W.id]), O(!1);
|
|
2045
2045
|
}, q = (W) => {
|
|
2046
|
-
W.key === "Escape" && (O(!1),
|
|
2046
|
+
W.key === "Escape" && (O(!1), _(-1));
|
|
2047
2047
|
}, K = (W) => {
|
|
2048
2048
|
if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
|
|
2049
|
-
const
|
|
2050
|
-
|
|
2049
|
+
const k = W.key === "ArrowDown" ? (P + 1) % S.length : (P - 1 + S.length) % S.length;
|
|
2050
|
+
_(k);
|
|
2051
2051
|
}
|
|
2052
2052
|
switch (W.key) {
|
|
2053
2053
|
case "Enter":
|
|
2054
|
-
|
|
2054
|
+
P >= 0 && P < S.length ? Z(S[P]) : c && (f == null || f(m, ""), O(!1), g(""), w(""));
|
|
2055
2055
|
break;
|
|
2056
2056
|
case "Escape":
|
|
2057
|
-
O(!1),
|
|
2057
|
+
O(!1), _(-1);
|
|
2058
2058
|
break;
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
|
-
return /* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ y.jsxs("div", { "data-component": "autocomplete", children: [
|
|
2062
|
+
/* @__PURE__ */ y.jsx(
|
|
2063
2063
|
Or,
|
|
2064
2064
|
{
|
|
2065
|
-
...
|
|
2065
|
+
...p,
|
|
2066
2066
|
bindValue: m,
|
|
2067
2067
|
optionalDisplayValue: b,
|
|
2068
2068
|
displayMode: n,
|
|
2069
2069
|
isEditable: i,
|
|
2070
2070
|
shapeIcon: "magnify",
|
|
2071
2071
|
placeholder: o,
|
|
2072
|
-
ref:
|
|
2073
|
-
onChange:
|
|
2072
|
+
ref: I,
|
|
2073
|
+
onChange: B,
|
|
2074
2074
|
onKeyDown: K,
|
|
2075
2075
|
"aria-autocomplete": "list"
|
|
2076
2076
|
}
|
|
2077
2077
|
),
|
|
2078
|
-
E && /* @__PURE__ */
|
|
2078
|
+
E && /* @__PURE__ */ y.jsx(Ot, { children: /* @__PURE__ */ y.jsx(
|
|
2079
2079
|
Tr,
|
|
2080
2080
|
{
|
|
2081
2081
|
options: S,
|
|
2082
2082
|
displayMode: s,
|
|
2083
|
-
onClick:
|
|
2084
|
-
ref:
|
|
2085
|
-
selectedIndex:
|
|
2086
|
-
activeIndex:
|
|
2087
|
-
width:
|
|
2083
|
+
onClick: Z,
|
|
2084
|
+
ref: j,
|
|
2085
|
+
selectedIndex: P,
|
|
2086
|
+
activeIndex: d || $,
|
|
2087
|
+
width: M,
|
|
2088
2088
|
showFilter: !1,
|
|
2089
2089
|
onKeyDown: q
|
|
2090
2090
|
}
|
|
@@ -2113,14 +2113,14 @@ const Rr = ({
|
|
|
2113
2113
|
showText: c = !0,
|
|
2114
2114
|
fullWidth: f = !1,
|
|
2115
2115
|
loading: l = !1,
|
|
2116
|
-
justify:
|
|
2117
|
-
title:
|
|
2116
|
+
justify: d = "center",
|
|
2117
|
+
title: p,
|
|
2118
2118
|
optionalDisplayValue: m
|
|
2119
2119
|
}) => {
|
|
2120
2120
|
const g = {
|
|
2121
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
2121
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${d}`
|
|
2122
2122
|
};
|
|
2123
|
-
return /* @__PURE__ */
|
|
2123
|
+
return /* @__PURE__ */ y.jsx(
|
|
2124
2124
|
"button",
|
|
2125
2125
|
{
|
|
2126
2126
|
"data-component": "button",
|
|
@@ -2129,10 +2129,10 @@ const Rr = ({
|
|
|
2129
2129
|
"aria-label": t,
|
|
2130
2130
|
disabled: s,
|
|
2131
2131
|
"aria-busy": l,
|
|
2132
|
-
title:
|
|
2133
|
-
children: l ? /* @__PURE__ */
|
|
2134
|
-
n && u && /* @__PURE__ */
|
|
2135
|
-
|
|
2132
|
+
title: p || r || m,
|
|
2133
|
+
children: l ? /* @__PURE__ */ y.jsx(ce, { icon: "spinner", state: Zt(i), spin: !0 }) : /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
2134
|
+
n && u && /* @__PURE__ */ y.jsx(
|
|
2135
|
+
ce,
|
|
2136
2136
|
{
|
|
2137
2137
|
icon: n,
|
|
2138
2138
|
disabled: s,
|
|
@@ -2141,7 +2141,7 @@ const Rr = ({
|
|
|
2141
2141
|
height: Xt(a)
|
|
2142
2142
|
}
|
|
2143
2143
|
),
|
|
2144
|
-
c && m && /* @__PURE__ */
|
|
2144
|
+
c && m && /* @__PURE__ */ y.jsx("span", { children: m })
|
|
2145
2145
|
] })
|
|
2146
2146
|
}
|
|
2147
2147
|
);
|
|
@@ -2158,18 +2158,18 @@ const Rr = ({
|
|
|
2158
2158
|
fullWidth: c,
|
|
2159
2159
|
disabled: f,
|
|
2160
2160
|
justify: l,
|
|
2161
|
-
onClick:
|
|
2162
|
-
onOptionsRequest:
|
|
2161
|
+
onClick: d,
|
|
2162
|
+
onOptionsRequest: p
|
|
2163
2163
|
}) => {
|
|
2164
|
-
const [m, g] =
|
|
2164
|
+
const [m, g] = J(r);
|
|
2165
2165
|
oe(() => {
|
|
2166
|
-
!m &&
|
|
2166
|
+
!m && p && e && p(e, void 0).then((E) => g(E)).catch((E) => {
|
|
2167
2167
|
console.error(
|
|
2168
2168
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
2169
2169
|
E
|
|
2170
2170
|
);
|
|
2171
2171
|
});
|
|
2172
|
-
}, [m, e,
|
|
2172
|
+
}, [m, e, p]);
|
|
2173
2173
|
const b = {
|
|
2174
2174
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
2175
2175
|
}, w = m == null ? void 0 : m.map((E, O) => {
|
|
@@ -2187,12 +2187,12 @@ const Rr = ({
|
|
|
2187
2187
|
sizing: s,
|
|
2188
2188
|
justify: l,
|
|
2189
2189
|
onClick: () => {
|
|
2190
|
-
|
|
2190
|
+
d == null || d(E.id, E.fun);
|
|
2191
2191
|
}
|
|
2192
2192
|
};
|
|
2193
|
-
return /* @__PURE__ */
|
|
2193
|
+
return /* @__PURE__ */ y.jsx(_e, { ...S }, `button-${O}`);
|
|
2194
2194
|
});
|
|
2195
|
-
return /* @__PURE__ */
|
|
2195
|
+
return /* @__PURE__ */ y.jsx("div", { role: "list", "data-component": "button-list", className: b.container, children: w });
|
|
2196
2196
|
}, yn = ({
|
|
2197
2197
|
bindValue: r,
|
|
2198
2198
|
_dataComponent: e = "checkbox",
|
|
@@ -2207,9 +2207,9 @@ const Rr = ({
|
|
|
2207
2207
|
}, u = {
|
|
2208
2208
|
wrapper: "smp-checkbox-wrapper"
|
|
2209
2209
|
};
|
|
2210
|
-
return /* @__PURE__ */
|
|
2211
|
-
n && /* @__PURE__ */
|
|
2212
|
-
/* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ y.jsxs("div", { className: u.wrapper, "data-component": e, children: [
|
|
2211
|
+
n && /* @__PURE__ */ y.jsx($e, { label: n, disabled: t }),
|
|
2212
|
+
/* @__PURE__ */ y.jsx(
|
|
2213
2213
|
"input",
|
|
2214
2214
|
{
|
|
2215
2215
|
"data-component": "checkbox",
|
|
@@ -2234,7 +2234,7 @@ const Rr = ({
|
|
|
2234
2234
|
const s = vn[r], a = {
|
|
2235
2235
|
container: `smp-typography ${r ? `smp-typography-${r}` : ""} ${n.disabled ? "smp-typography-disabled" : ""}`
|
|
2236
2236
|
};
|
|
2237
|
-
return /* @__PURE__ */
|
|
2237
|
+
return /* @__PURE__ */ y.jsx(
|
|
2238
2238
|
s,
|
|
2239
2239
|
{
|
|
2240
2240
|
className: a.container,
|
|
@@ -2254,24 +2254,24 @@ const Rr = ({
|
|
|
2254
2254
|
backgroundColor: a,
|
|
2255
2255
|
isDraggable: i = !1
|
|
2256
2256
|
}) => {
|
|
2257
|
-
const [o, u] =
|
|
2257
|
+
const [o, u] = J(null), c = {
|
|
2258
2258
|
container: `${["smp-chips-container"]}`,
|
|
2259
2259
|
element: "smp-chips-element"
|
|
2260
|
-
}, f = (
|
|
2261
|
-
n == null || n(r.filter((m, g) => g !==
|
|
2262
|
-
}, l = (
|
|
2263
|
-
u(
|
|
2264
|
-
},
|
|
2265
|
-
if (o === null || o ===
|
|
2260
|
+
}, f = (p) => {
|
|
2261
|
+
n == null || n(r.filter((m, g) => g !== p));
|
|
2262
|
+
}, l = (p) => {
|
|
2263
|
+
u(p);
|
|
2264
|
+
}, d = (p) => {
|
|
2265
|
+
if (o === null || o === p) return;
|
|
2266
2266
|
const m = [...r], [g] = m.splice(o, 1);
|
|
2267
|
-
m.splice(
|
|
2267
|
+
m.splice(p, 0, g), n == null || n(m), u(null);
|
|
2268
2268
|
};
|
|
2269
|
-
return /* @__PURE__ */
|
|
2270
|
-
const g =
|
|
2271
|
-
|
|
2272
|
-
|
|
2269
|
+
return /* @__PURE__ */ y.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((p, m) => {
|
|
2270
|
+
const g = et(
|
|
2271
|
+
p.bindValue,
|
|
2272
|
+
p.optionalDisplayValue,
|
|
2273
2273
|
t
|
|
2274
|
-
), b = /* @__PURE__ */
|
|
2274
|
+
), b = /* @__PURE__ */ y.jsxs(
|
|
2275
2275
|
"div",
|
|
2276
2276
|
{
|
|
2277
2277
|
className: c.element,
|
|
@@ -2279,15 +2279,15 @@ const Rr = ({
|
|
|
2279
2279
|
draggable: i,
|
|
2280
2280
|
onDragStart: () => l(m),
|
|
2281
2281
|
onDragOver: (E) => i && E.preventDefault(),
|
|
2282
|
-
onDrop: () => i &&
|
|
2282
|
+
onDrop: () => i && d(m),
|
|
2283
2283
|
style: {
|
|
2284
2284
|
"--smp-chips-backgroundColor-base": a
|
|
2285
2285
|
},
|
|
2286
2286
|
children: [
|
|
2287
|
-
i && /* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
e && /* @__PURE__ */
|
|
2290
|
-
|
|
2287
|
+
i && /* @__PURE__ */ y.jsx(ce, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
2288
|
+
/* @__PURE__ */ y.jsx(Ie, { variant: "label", bindValue: g, color: s }),
|
|
2289
|
+
e && /* @__PURE__ */ y.jsx(
|
|
2290
|
+
ce,
|
|
2291
2291
|
{
|
|
2292
2292
|
icon: "close",
|
|
2293
2293
|
isInteractable: !0,
|
|
@@ -2298,8 +2298,8 @@ const Rr = ({
|
|
|
2298
2298
|
]
|
|
2299
2299
|
},
|
|
2300
2300
|
`chip-${m}`
|
|
2301
|
-
), w = i && m < r.length - 1 ? /* @__PURE__ */
|
|
2302
|
-
|
|
2301
|
+
), w = i && m < r.length - 1 ? /* @__PURE__ */ y.jsx(
|
|
2302
|
+
ce,
|
|
2303
2303
|
{
|
|
2304
2304
|
icon: "chevron-right",
|
|
2305
2305
|
color: s
|
|
@@ -2329,8 +2329,8 @@ function jr(r, e) {
|
|
|
2329
2329
|
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
2330
2330
|
const f = s();
|
|
2331
2331
|
if (f.length === 0) return;
|
|
2332
|
-
const l = f[0],
|
|
2333
|
-
c.shiftKey && document.activeElement === l ? (c.preventDefault(),
|
|
2332
|
+
const l = f[0], d = f[f.length - 1];
|
|
2333
|
+
c.shiftKey && document.activeElement === l ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), l.focus());
|
|
2334
2334
|
}, o = (c) => {
|
|
2335
2335
|
if (n && !n.contains(c.target)) {
|
|
2336
2336
|
c.preventDefault();
|
|
@@ -2361,25 +2361,25 @@ const xn = ({
|
|
|
2361
2361
|
multiActiveIndex: c,
|
|
2362
2362
|
...f
|
|
2363
2363
|
}) => {
|
|
2364
|
-
const [l,
|
|
2364
|
+
const [l, d] = J(!1), [p, m] = J(t), [g, b] = J(-1), [w, E] = J([r]), O = St(), { anchorRef: S, targetRef: x, anchorWidth: P } = Et({
|
|
2365
2365
|
position: "bottom",
|
|
2366
2366
|
enabled: l
|
|
2367
2367
|
});
|
|
2368
|
-
|
|
2369
|
-
const
|
|
2370
|
-
e == null || e(
|
|
2371
|
-
const
|
|
2372
|
-
b(
|
|
2373
|
-
},
|
|
2374
|
-
|
|
2375
|
-
},
|
|
2376
|
-
(
|
|
2377
|
-
},
|
|
2378
|
-
o && u && u(o, void 0).then((
|
|
2379
|
-
m(
|
|
2368
|
+
Qe(x, () => d(!1)), jr(l, x);
|
|
2369
|
+
const _ = (j) => {
|
|
2370
|
+
e == null || e(j.id, j.label);
|
|
2371
|
+
const M = p.findIndex((U) => U.id === j.id);
|
|
2372
|
+
b(M), E([j.id]), d(!1);
|
|
2373
|
+
}, $ = (j) => {
|
|
2374
|
+
j.key === "Escape" && (d(!1), b(-1));
|
|
2375
|
+
}, A = (j) => {
|
|
2376
|
+
(j.key === "ArrowDown" || j.key === "ArrowUp") && (j.preventDefault(), I());
|
|
2377
|
+
}, I = () => {
|
|
2378
|
+
o && u && u(o, void 0).then((j) => {
|
|
2379
|
+
m(j), b(j.length > 0 ? 0 : -1), d(!0);
|
|
2380
2380
|
});
|
|
2381
2381
|
};
|
|
2382
|
-
return /* @__PURE__ */
|
|
2382
|
+
return /* @__PURE__ */ y.jsxs(
|
|
2383
2383
|
"div",
|
|
2384
2384
|
{
|
|
2385
2385
|
role: "combobox",
|
|
@@ -2388,15 +2388,15 @@ const xn = ({
|
|
|
2388
2388
|
"aria-owns": O,
|
|
2389
2389
|
"data-component": "combobox",
|
|
2390
2390
|
children: [
|
|
2391
|
-
/* @__PURE__ */
|
|
2391
|
+
/* @__PURE__ */ y.jsx(
|
|
2392
2392
|
Or,
|
|
2393
2393
|
{
|
|
2394
2394
|
...f,
|
|
2395
2395
|
bindValue: r,
|
|
2396
2396
|
optionalDisplayValue: n,
|
|
2397
2397
|
displayMode: a,
|
|
2398
|
-
onShapeIconClick:
|
|
2399
|
-
onKeyDown:
|
|
2398
|
+
onShapeIconClick: I,
|
|
2399
|
+
onKeyDown: A,
|
|
2400
2400
|
shapeIcon: "arrow_drop_down",
|
|
2401
2401
|
rotatedShapeIcon: l,
|
|
2402
2402
|
isEditable: s,
|
|
@@ -2405,18 +2405,18 @@ const xn = ({
|
|
|
2405
2405
|
variant: "notSelectable"
|
|
2406
2406
|
}
|
|
2407
2407
|
),
|
|
2408
|
-
l && /* @__PURE__ */
|
|
2408
|
+
l && /* @__PURE__ */ y.jsx(Ot, { children: /* @__PURE__ */ y.jsx(
|
|
2409
2409
|
Tr,
|
|
2410
2410
|
{
|
|
2411
2411
|
id: O,
|
|
2412
|
-
options:
|
|
2412
|
+
options: p,
|
|
2413
2413
|
displayMode: i,
|
|
2414
2414
|
ref: x,
|
|
2415
2415
|
selectedIndex: g,
|
|
2416
2416
|
activeIndex: c || w,
|
|
2417
|
-
width:
|
|
2418
|
-
onClick:
|
|
2419
|
-
onKeyDown:
|
|
2417
|
+
width: P,
|
|
2418
|
+
onClick: _,
|
|
2419
|
+
onKeyDown: $
|
|
2420
2420
|
}
|
|
2421
2421
|
) })
|
|
2422
2422
|
]
|
|
@@ -2463,7 +2463,7 @@ const xn = ({
|
|
|
2463
2463
|
k: a
|
|
2464
2464
|
} = ke(r, e, Object);
|
|
2465
2465
|
s[a] = s[a] || [], s[a].push(t);
|
|
2466
|
-
},
|
|
2466
|
+
}, rt = (r, e) => {
|
|
2467
2467
|
const {
|
|
2468
2468
|
obj: t,
|
|
2469
2469
|
k: n
|
|
@@ -2471,8 +2471,8 @@ const xn = ({
|
|
|
2471
2471
|
if (t && Object.prototype.hasOwnProperty.call(t, n))
|
|
2472
2472
|
return t[n];
|
|
2473
2473
|
}, En = (r, e, t) => {
|
|
2474
|
-
const n =
|
|
2475
|
-
return n !== void 0 ? n :
|
|
2474
|
+
const n = rt(r, t);
|
|
2475
|
+
return n !== void 0 ? n : rt(e, t);
|
|
2476
2476
|
}, Dr = (r, e, t) => {
|
|
2477
2477
|
for (const n in e)
|
|
2478
2478
|
n !== "__proto__" && n !== "constructor" && (n in r ? G(r[n]) || r[n] instanceof String || G(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Dr(r[n], e[n], t) : r[n] = e[n]);
|
|
@@ -2546,7 +2546,7 @@ const jn = [" ", ",", "?", "!", ";"], Dn = new Rn(20), _n = (r, e, t) => {
|
|
|
2546
2546
|
(n = (t = console == null ? void 0 : console[r]) == null ? void 0 : t.apply) == null || n.call(t, console, e);
|
|
2547
2547
|
}
|
|
2548
2548
|
};
|
|
2549
|
-
class
|
|
2549
|
+
class nt {
|
|
2550
2550
|
constructor(e, t = {}) {
|
|
2551
2551
|
this.init(e, t);
|
|
2552
2552
|
}
|
|
@@ -2569,17 +2569,17 @@ class rt {
|
|
|
2569
2569
|
return s && !this.debug ? null : (G(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2570
2570
|
}
|
|
2571
2571
|
create(e) {
|
|
2572
|
-
return new
|
|
2572
|
+
return new nt(this.logger, {
|
|
2573
2573
|
prefix: `${this.prefix}:${e}:`,
|
|
2574
2574
|
...this.options
|
|
2575
2575
|
});
|
|
2576
2576
|
}
|
|
2577
2577
|
clone(e) {
|
|
2578
|
-
return e = e || this.options, e.prefix = e.prefix || this.prefix, new
|
|
2578
|
+
return e = e || this.options, e.prefix = e.prefix || this.prefix, new nt(this.logger, e);
|
|
2579
2579
|
}
|
|
2580
2580
|
}
|
|
2581
|
-
var ye = new
|
|
2582
|
-
class
|
|
2581
|
+
var ye = new nt();
|
|
2582
|
+
class at {
|
|
2583
2583
|
constructor() {
|
|
2584
2584
|
this.observers = {};
|
|
2585
2585
|
}
|
|
@@ -2609,7 +2609,7 @@ class st {
|
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
class nr extends
|
|
2612
|
+
class nr extends at {
|
|
2613
2613
|
constructor(e, t = {
|
|
2614
2614
|
ns: ["translation"],
|
|
2615
2615
|
defaultNS: "translation"
|
|
@@ -2628,7 +2628,7 @@ class nr extends st {
|
|
|
2628
2628
|
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2629
2629
|
let o;
|
|
2630
2630
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : G(n) && a ? o.push(...n.split(a)) : o.push(n)));
|
|
2631
|
-
const u =
|
|
2631
|
+
const u = rt(this.data, o);
|
|
2632
2632
|
return !u && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), u || !i || !G(n) ? u : xt((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], n, a);
|
|
2633
2633
|
}
|
|
2634
2634
|
addResource(e, t, n, s, a = {
|
|
@@ -2653,7 +2653,7 @@ class nr extends st {
|
|
|
2653
2653
|
}) {
|
|
2654
2654
|
let o = [e, t];
|
|
2655
2655
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2656
|
-
let u =
|
|
2656
|
+
let u = rt(this.data, o) || {};
|
|
2657
2657
|
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Dr(u, n, a) : u = {
|
|
2658
2658
|
...u,
|
|
2659
2659
|
...n
|
|
@@ -2692,7 +2692,7 @@ var _r = {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
};
|
|
2694
2694
|
const sr = {}, ar = (r) => !G(r) && typeof r != "boolean" && typeof r != "number";
|
|
2695
|
-
class
|
|
2695
|
+
class st extends at {
|
|
2696
2696
|
constructor(e, t = {}) {
|
|
2697
2697
|
super(), bn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = ye.create("translator");
|
|
2698
2698
|
}
|
|
@@ -2744,9 +2744,9 @@ class nt extends st {
|
|
|
2744
2744
|
} = this.extractFromKey(e[e.length - 1], s), c = u[u.length - 1];
|
|
2745
2745
|
let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2746
2746
|
f === void 0 && (f = ":");
|
|
2747
|
-
const l = s.lng || this.language,
|
|
2747
|
+
const l = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2748
2748
|
if ((l == null ? void 0 : l.toLowerCase()) === "cimode")
|
|
2749
|
-
return
|
|
2749
|
+
return d ? a ? {
|
|
2750
2750
|
res: `${c}${f}${o}`,
|
|
2751
2751
|
usedKey: o,
|
|
2752
2752
|
exactUsedKey: o,
|
|
@@ -2761,76 +2761,76 @@ class nt extends st {
|
|
|
2761
2761
|
usedNS: c,
|
|
2762
2762
|
usedParams: this.getUsedParamsDetails(s)
|
|
2763
2763
|
} : o;
|
|
2764
|
-
const
|
|
2765
|
-
let m =
|
|
2766
|
-
const g = (
|
|
2764
|
+
const p = this.resolve(e, s);
|
|
2765
|
+
let m = p == null ? void 0 : p.res;
|
|
2766
|
+
const g = (p == null ? void 0 : p.usedKey) || o, b = (p == null ? void 0 : p.exactUsedKey) || o, w = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, S = s.count !== void 0 && !G(s.count), x = st.hasDefaultValue(s), P = S ? this.pluralResolver.getSuffix(l, s.count, s) : "", _ = s.ordinal && S ? this.pluralResolver.getSuffix(l, s.count, {
|
|
2767
2767
|
ordinal: !1
|
|
2768
|
-
}) : "",
|
|
2769
|
-
let
|
|
2770
|
-
O && !m && x && (
|
|
2771
|
-
const
|
|
2772
|
-
if (O &&
|
|
2768
|
+
}) : "", $ = S && !s.ordinal && s.count === 0, A = $ && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${P}`] || s[`defaultValue${_}`] || s.defaultValue;
|
|
2769
|
+
let I = m;
|
|
2770
|
+
O && !m && x && (I = A);
|
|
2771
|
+
const j = ar(I), M = Object.prototype.toString.apply(I);
|
|
2772
|
+
if (O && I && j && w.indexOf(M) < 0 && !(G(E) && Array.isArray(I))) {
|
|
2773
2773
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2774
2774
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2775
|
-
const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g,
|
|
2775
|
+
const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, I, {
|
|
2776
2776
|
...s,
|
|
2777
2777
|
ns: u
|
|
2778
2778
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2779
|
-
return a ? (
|
|
2779
|
+
return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
|
|
2780
2780
|
}
|
|
2781
2781
|
if (i) {
|
|
2782
|
-
const U = Array.isArray(
|
|
2783
|
-
for (const q in
|
|
2784
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2785
|
-
const K = `${
|
|
2786
|
-
x && !m ?
|
|
2782
|
+
const U = Array.isArray(I), B = U ? [] : {}, Z = U ? b : g;
|
|
2783
|
+
for (const q in I)
|
|
2784
|
+
if (Object.prototype.hasOwnProperty.call(I, q)) {
|
|
2785
|
+
const K = `${Z}${i}${q}`;
|
|
2786
|
+
x && !m ? B[q] = this.translate(K, {
|
|
2787
2787
|
...s,
|
|
2788
|
-
defaultValue: ar(
|
|
2788
|
+
defaultValue: ar(A) ? A[q] : void 0,
|
|
2789
2789
|
joinArrays: !1,
|
|
2790
2790
|
ns: u
|
|
2791
|
-
}) :
|
|
2791
|
+
}) : B[q] = this.translate(K, {
|
|
2792
2792
|
...s,
|
|
2793
2793
|
joinArrays: !1,
|
|
2794
2794
|
ns: u
|
|
2795
|
-
}),
|
|
2795
|
+
}), B[q] === K && (B[q] = I[q]);
|
|
2796
2796
|
}
|
|
2797
|
-
m =
|
|
2797
|
+
m = B;
|
|
2798
2798
|
}
|
|
2799
2799
|
} else if (O && G(E) && Array.isArray(m))
|
|
2800
2800
|
m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
|
|
2801
2801
|
else {
|
|
2802
|
-
let U = !1,
|
|
2803
|
-
!this.isValidLookup(m) && x && (U = !0, m =
|
|
2804
|
-
const q = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
2805
|
-
if (
|
|
2806
|
-
if (this.logger.log(K ? "updateKey" : "missingKey", l, c, o, K ?
|
|
2807
|
-
const
|
|
2802
|
+
let U = !1, B = !1;
|
|
2803
|
+
!this.isValidLookup(m) && x && (U = !0, m = A), this.isValidLookup(m) || (B = !0, m = o);
|
|
2804
|
+
const q = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && B ? void 0 : m, K = x && A !== m && this.options.updateMissing;
|
|
2805
|
+
if (B || U || K) {
|
|
2806
|
+
if (this.logger.log(K ? "updateKey" : "missingKey", l, c, o, K ? A : m), i) {
|
|
2807
|
+
const v = this.resolve(o, {
|
|
2808
2808
|
...s,
|
|
2809
2809
|
keySeparator: !1
|
|
2810
2810
|
});
|
|
2811
|
-
|
|
2811
|
+
v && v.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2812
2812
|
}
|
|
2813
2813
|
let W = [];
|
|
2814
|
-
const
|
|
2815
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2816
|
-
for (let
|
|
2817
|
-
W.push(
|
|
2814
|
+
const k = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2815
|
+
if (this.options.saveMissingTo === "fallback" && k && k[0])
|
|
2816
|
+
for (let v = 0; v < k.length; v++)
|
|
2817
|
+
W.push(k[v]);
|
|
2818
2818
|
else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(s.lng || this.language) : W.push(s.lng || this.language);
|
|
2819
|
-
const h = (
|
|
2820
|
-
var
|
|
2821
|
-
const R = x &&
|
|
2822
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2819
|
+
const h = (v, T, D) => {
|
|
2820
|
+
var C;
|
|
2821
|
+
const R = x && D !== m ? D : q;
|
|
2822
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, T, R, K, s) : (C = this.backendConnector) != null && C.saveMissing && this.backendConnector.saveMissing(v, c, T, R, K, s), this.emit("missingKey", v, c, T, m);
|
|
2823
2823
|
};
|
|
2824
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((
|
|
2825
|
-
const T = this.pluralResolver.getSuffixes(
|
|
2826
|
-
|
|
2827
|
-
h([
|
|
2824
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && S ? W.forEach((v) => {
|
|
2825
|
+
const T = this.pluralResolver.getSuffixes(v, s);
|
|
2826
|
+
$ && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach((D) => {
|
|
2827
|
+
h([v], o + D, s[`defaultValue${D}`] || A);
|
|
2828
2828
|
});
|
|
2829
|
-
}) : h(W, o,
|
|
2829
|
+
}) : h(W, o, A));
|
|
2830
2830
|
}
|
|
2831
|
-
m = this.extendTranslation(m, e, s,
|
|
2831
|
+
m = this.extendTranslation(m, e, s, p, n), B && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${f}${o}`), (B || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, U ? m : void 0, s));
|
|
2832
2832
|
}
|
|
2833
|
-
return a ? (
|
|
2833
|
+
return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(s), p) : m;
|
|
2834
2834
|
}
|
|
2835
2835
|
extendTranslation(e, t, n, s, a) {
|
|
2836
2836
|
var u, c;
|
|
@@ -2852,18 +2852,18 @@ class nt extends st {
|
|
|
2852
2852
|
const f = G(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2853
2853
|
let l;
|
|
2854
2854
|
if (f) {
|
|
2855
|
-
const
|
|
2856
|
-
l =
|
|
2855
|
+
const p = e.match(this.interpolator.nestingRegexp);
|
|
2856
|
+
l = p && p.length;
|
|
2857
2857
|
}
|
|
2858
|
-
let
|
|
2859
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2858
|
+
let d = n.replace && !G(n.replace) ? n.replace : n;
|
|
2859
|
+
if (this.options.interpolation.defaultVariables && (d = {
|
|
2860
2860
|
...this.options.interpolation.defaultVariables,
|
|
2861
|
-
...
|
|
2862
|
-
}), e = this.interpolator.interpolate(e,
|
|
2863
|
-
const
|
|
2861
|
+
...d
|
|
2862
|
+
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), f) {
|
|
2863
|
+
const p = e.match(this.interpolator.nestingRegexp), m = p && p.length;
|
|
2864
2864
|
l < m && (n.nest = !1);
|
|
2865
2865
|
}
|
|
2866
|
-
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...
|
|
2866
|
+
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...p) => (a == null ? void 0 : a[0]) === p[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : this.translate(...p, t), n)), n.interpolation && this.interpolator.reset();
|
|
2867
2867
|
}
|
|
2868
2868
|
const i = n.postProcess || this.options.postProcess, o = G(i) ? [i] : i;
|
|
2869
2869
|
return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = _r.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
@@ -2882,23 +2882,23 @@ class nt extends st {
|
|
|
2882
2882
|
s = f;
|
|
2883
2883
|
let l = c.namespaces;
|
|
2884
2884
|
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
2885
|
-
const
|
|
2885
|
+
const d = t.count !== void 0 && !G(t.count), p = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2886
2886
|
l.forEach((b) => {
|
|
2887
2887
|
var w, E;
|
|
2888
2888
|
this.isValidLookup(n) || (o = b, !sr[`${g[0]}-${b}`] && ((w = this.utils) != null && w.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (sr[`${g[0]}-${b}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((O) => {
|
|
2889
|
-
var
|
|
2889
|
+
var P;
|
|
2890
2890
|
if (this.isValidLookup(n)) return;
|
|
2891
2891
|
i = O;
|
|
2892
2892
|
const S = [f];
|
|
2893
|
-
if ((
|
|
2893
|
+
if ((P = this.i18nFormat) != null && P.addLookupKeys)
|
|
2894
2894
|
this.i18nFormat.addLookupKeys(S, f, O, b, t);
|
|
2895
2895
|
else {
|
|
2896
|
-
let
|
|
2897
|
-
|
|
2898
|
-
const
|
|
2899
|
-
if (
|
|
2900
|
-
const
|
|
2901
|
-
S.push(
|
|
2896
|
+
let _;
|
|
2897
|
+
d && (_ = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2898
|
+
const $ = `${this.options.pluralSeparator}zero`, A = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2899
|
+
if (d && (S.push(f + _), t.ordinal && _.indexOf(A) === 0 && S.push(f + _.replace(A, this.options.pluralSeparator)), p && S.push(f + $)), m) {
|
|
2900
|
+
const I = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2901
|
+
S.push(I), d && (S.push(I + _), t.ordinal && _.indexOf(A) === 0 && S.push(I + _.replace(A, this.options.pluralSeparator)), p && S.push(I + $));
|
|
2902
2902
|
}
|
|
2903
2903
|
}
|
|
2904
2904
|
let x;
|
|
@@ -3071,7 +3071,7 @@ class Cn {
|
|
|
3071
3071
|
const cr = (r, e, t, n = ".", s = !0) => {
|
|
3072
3072
|
let a = En(r, e, t);
|
|
3073
3073
|
return !a && s && G(t) && (a = xt(r, t, n), a === void 0 && (a = xt(e, t, n))), a;
|
|
3074
|
-
},
|
|
3074
|
+
}, mt = (r) => r.replace(/\$/g, "$$$$");
|
|
3075
3075
|
class Pn {
|
|
3076
3076
|
constructor(e = {}) {
|
|
3077
3077
|
var t;
|
|
@@ -3092,15 +3092,15 @@ class Pn {
|
|
|
3092
3092
|
formatSeparator: c,
|
|
3093
3093
|
unescapeSuffix: f,
|
|
3094
3094
|
unescapePrefix: l,
|
|
3095
|
-
nestingPrefix:
|
|
3096
|
-
nestingPrefixEscaped:
|
|
3095
|
+
nestingPrefix: d,
|
|
3096
|
+
nestingPrefixEscaped: p,
|
|
3097
3097
|
nestingSuffix: m,
|
|
3098
3098
|
nestingSuffixEscaped: g,
|
|
3099
3099
|
nestingOptionsSeparator: b,
|
|
3100
3100
|
maxReplaces: w,
|
|
3101
3101
|
alwaysFormat: E
|
|
3102
3102
|
} = e.interpolation;
|
|
3103
|
-
this.escape = t !== void 0 ? t : On, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Re(a) : i || "{{", this.suffix = o ? Re(o) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix =
|
|
3103
|
+
this.escape = t !== void 0 ? t : On, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Re(a) : i || "{{", this.suffix = o ? Re(o) : u || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Re(d) : p || Re("$t("), this.nestingSuffix = m ? Re(m) : g || Re(")"), this.nestingOptionsSeparator = b || ",", this.maxReplaces = w || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
3104
3104
|
}
|
|
3105
3105
|
reset() {
|
|
3106
3106
|
this.options && this.init(this.options);
|
|
@@ -3110,7 +3110,7 @@ class Pn {
|
|
|
3110
3110
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
3111
3111
|
}
|
|
3112
3112
|
interpolate(e, t, n, s) {
|
|
3113
|
-
var
|
|
3113
|
+
var p;
|
|
3114
3114
|
let a, i, o;
|
|
3115
3115
|
const u = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
|
|
3116
3116
|
if (m.indexOf(this.formatSeparator) < 0) {
|
|
@@ -3129,13 +3129,13 @@ class Pn {
|
|
|
3129
3129
|
});
|
|
3130
3130
|
};
|
|
3131
3131
|
this.resetRegExp();
|
|
3132
|
-
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((
|
|
3132
|
+
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((p = s == null ? void 0 : s.interpolation) == null ? void 0 : p.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3133
3133
|
return [{
|
|
3134
3134
|
regex: this.regexpUnescape,
|
|
3135
|
-
safeValue: (m) =>
|
|
3135
|
+
safeValue: (m) => mt(m)
|
|
3136
3136
|
}, {
|
|
3137
3137
|
regex: this.regexp,
|
|
3138
|
-
safeValue: (m) => this.escapeValue ?
|
|
3138
|
+
safeValue: (m) => this.escapeValue ? mt(this.escape(m)) : mt(m)
|
|
3139
3139
|
}].forEach((m) => {
|
|
3140
3140
|
for (o = 0; a = m.regex.exec(e); ) {
|
|
3141
3141
|
const g = a[1].trim();
|
|
@@ -3163,17 +3163,17 @@ class Pn {
|
|
|
3163
3163
|
const f = this.nestingOptionsSeparator;
|
|
3164
3164
|
if (u.indexOf(f) < 0) return u;
|
|
3165
3165
|
const l = u.split(new RegExp(`${f}[ ]*{`));
|
|
3166
|
-
let
|
|
3167
|
-
u = l[0],
|
|
3168
|
-
const
|
|
3169
|
-
(((
|
|
3166
|
+
let d = `{${l[1]}`;
|
|
3167
|
+
u = l[0], d = this.interpolate(d, i);
|
|
3168
|
+
const p = d.match(/'/g), m = d.match(/"/g);
|
|
3169
|
+
(((p == null ? void 0 : p.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
3170
3170
|
try {
|
|
3171
|
-
i = JSON.parse(
|
|
3171
|
+
i = JSON.parse(d), c && (i = {
|
|
3172
3172
|
...c,
|
|
3173
3173
|
...i
|
|
3174
3174
|
});
|
|
3175
3175
|
} catch (g) {
|
|
3176
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, g), `${u}${f}${
|
|
3176
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, g), `${u}${f}${d}`;
|
|
3177
3177
|
}
|
|
3178
3178
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, u;
|
|
3179
3179
|
};
|
|
@@ -3289,18 +3289,18 @@ class kn {
|
|
|
3289
3289
|
formatOptions: f
|
|
3290
3290
|
} = An(u);
|
|
3291
3291
|
if (this.formats[c]) {
|
|
3292
|
-
let
|
|
3292
|
+
let d = o;
|
|
3293
3293
|
try {
|
|
3294
|
-
const
|
|
3295
|
-
|
|
3294
|
+
const p = ((l = s == null ? void 0 : s.formatParams) == null ? void 0 : l[s.interpolationkey]) || {}, m = p.locale || p.lng || s.locale || s.lng || n;
|
|
3295
|
+
d = this.formats[c](o, m, {
|
|
3296
3296
|
...f,
|
|
3297
3297
|
...s,
|
|
3298
|
-
...
|
|
3298
|
+
...p
|
|
3299
3299
|
});
|
|
3300
|
-
} catch (
|
|
3301
|
-
this.logger.warn(
|
|
3300
|
+
} catch (p) {
|
|
3301
|
+
this.logger.warn(p);
|
|
3302
3302
|
}
|
|
3303
|
-
return
|
|
3303
|
+
return d;
|
|
3304
3304
|
} else
|
|
3305
3305
|
this.logger.warn(`there was no format function for ${c}`);
|
|
3306
3306
|
return o;
|
|
@@ -3310,7 +3310,7 @@ class kn {
|
|
|
3310
3310
|
const In = (r, e) => {
|
|
3311
3311
|
r.pending[e] !== void 0 && (delete r.pending[e], r.pendingCount--);
|
|
3312
3312
|
};
|
|
3313
|
-
class Nn extends
|
|
3313
|
+
class Nn extends at {
|
|
3314
3314
|
constructor(e, t, n, s = {}) {
|
|
3315
3315
|
var a, i;
|
|
3316
3316
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = ye.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 = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
|
|
@@ -3320,8 +3320,8 @@ class Nn extends st {
|
|
|
3320
3320
|
return e.forEach((c) => {
|
|
3321
3321
|
let f = !0;
|
|
3322
3322
|
t.forEach((l) => {
|
|
3323
|
-
const
|
|
3324
|
-
!n.reload && this.store.hasResourceBundle(c, l) ? this.state[
|
|
3323
|
+
const d = `${c}|${l}`;
|
|
3324
|
+
!n.reload && this.store.hasResourceBundle(c, l) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, f = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), u[l] === void 0 && (u[l] = !0)));
|
|
3325
3325
|
}), f || (o[c] = !0);
|
|
3326
3326
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3327
3327
|
pending: i,
|
|
@@ -3417,26 +3417,26 @@ class Nn extends st {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3419
3419
|
}) {
|
|
3420
|
-
var u, c, f, l,
|
|
3420
|
+
var u, c, f, l, d;
|
|
3421
3421
|
if ((c = (u = this.services) == null ? void 0 : u.utils) != null && c.hasLoadedNamespace && !((l = (f = this.services) == null ? void 0 : f.utils) != null && l.hasLoadedNamespace(t))) {
|
|
3422
3422
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
3423
3423
|
return;
|
|
3424
3424
|
}
|
|
3425
3425
|
if (!(n == null || n === "")) {
|
|
3426
|
-
if ((
|
|
3427
|
-
const
|
|
3426
|
+
if ((d = this.backend) != null && d.create) {
|
|
3427
|
+
const p = {
|
|
3428
3428
|
...i,
|
|
3429
3429
|
isUpdate: a
|
|
3430
3430
|
}, m = this.backend.create.bind(this.backend);
|
|
3431
3431
|
if (m.length < 6)
|
|
3432
3432
|
try {
|
|
3433
3433
|
let g;
|
|
3434
|
-
m.length === 5 ? g = m(e, t, n, s,
|
|
3434
|
+
m.length === 5 ? g = m(e, t, n, s, p) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((b) => o(null, b)).catch(o) : o(null, g);
|
|
3435
3435
|
} catch (g) {
|
|
3436
3436
|
o(g);
|
|
3437
3437
|
}
|
|
3438
3438
|
else
|
|
3439
|
-
m(e, t, n, s, o,
|
|
3439
|
+
m(e, t, n, s, o, p);
|
|
3440
3440
|
}
|
|
3441
3441
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3442
3442
|
}
|
|
@@ -3508,7 +3508,7 @@ const fr = () => ({
|
|
|
3508
3508
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3509
3509
|
});
|
|
3510
3510
|
};
|
|
3511
|
-
class Me extends
|
|
3511
|
+
class Me extends at {
|
|
3512
3512
|
constructor(e = {}, t) {
|
|
3513
3513
|
if (super(), this.options = dr(e), this.services = {}, this.logger = ye, this.modules = {
|
|
3514
3514
|
external: []
|
|
@@ -3544,12 +3544,12 @@ class Me extends st {
|
|
|
3544
3544
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3545
3545
|
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Pn(this.options), l.utils = {
|
|
3546
3546
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3547
|
-
}, l.backendConnector = new Nn(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (
|
|
3548
|
-
this.emit(
|
|
3549
|
-
}), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new
|
|
3550
|
-
this.emit(
|
|
3551
|
-
}), this.modules.external.forEach((
|
|
3552
|
-
|
|
3547
|
+
}, l.backendConnector = new Nn(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (d, ...p) => {
|
|
3548
|
+
this.emit(d, ...p);
|
|
3549
|
+
}), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new st(this.services, this.options), this.translator.on("*", (d, ...p) => {
|
|
3550
|
+
this.emit(d, ...p);
|
|
3551
|
+
}), this.modules.external.forEach((d) => {
|
|
3552
|
+
d.init && d.init(this);
|
|
3553
3553
|
});
|
|
3554
3554
|
}
|
|
3555
3555
|
if (this.format = this.options.interpolation.format, t || (t = qe), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3623,8 +3623,8 @@ class Me extends st {
|
|
|
3623
3623
|
var f, l;
|
|
3624
3624
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3625
3625
|
const u = G(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(u) ? u : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
|
|
3626
|
-
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || l.call(f, c)), this.loadResources(c, (
|
|
3627
|
-
a(
|
|
3626
|
+
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || l.call(f, c)), this.loadResources(c, (d) => {
|
|
3627
|
+
a(d, c);
|
|
3628
3628
|
});
|
|
3629
3629
|
};
|
|
3630
3630
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
|
|
@@ -3716,7 +3716,7 @@ class Me extends st {
|
|
|
3716
3716
|
}, f), u[c]), u), {});
|
|
3717
3717
|
a.store = new nr(o, s), a.services.resourceStore = a.store;
|
|
3718
3718
|
}
|
|
3719
|
-
return a.translator = new
|
|
3719
|
+
return a.translator = new st(a.services, s), a.translator.on("*", (o, ...u) => {
|
|
3720
3720
|
a.emit(o, ...u);
|
|
3721
3721
|
}), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
|
|
3722
3722
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
@@ -3753,11 +3753,11 @@ const Fn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondaySh
|
|
|
3753
3753
|
Day: Fn,
|
|
3754
3754
|
Month: Vn,
|
|
3755
3755
|
Generic: Yn
|
|
3756
|
-
}, Wn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Hn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" },
|
|
3756
|
+
}, Wn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, Hn = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, Gn = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command" }, Bn = {
|
|
3757
3757
|
Date: { NextDay: "Next Day", NextMonth: "Next Month", NextWeek: "Next Week", NextYear: "Next Year", PreviousDay: "Previous Day", PreviousMonth: "Previous Month", PreviousWeek: "Previous Week", PreviousYear: "Previous Year", Today: "Today", Tomorrow: "Tomorrow", Yesterday: "Yesterday" },
|
|
3758
3758
|
Day: Wn,
|
|
3759
3759
|
Month: Hn,
|
|
3760
|
-
Generic:
|
|
3760
|
+
Generic: Gn
|
|
3761
3761
|
};
|
|
3762
3762
|
function pr(r, e) {
|
|
3763
3763
|
return new RegExp(qn(r), e);
|
|
@@ -3826,7 +3826,7 @@ ae.init({
|
|
|
3826
3826
|
},
|
|
3827
3827
|
resources: {
|
|
3828
3828
|
en: {
|
|
3829
|
-
translation:
|
|
3829
|
+
translation: Bn
|
|
3830
3830
|
},
|
|
3831
3831
|
it: {
|
|
3832
3832
|
translation: Un
|
|
@@ -3834,7 +3834,7 @@ ae.init({
|
|
|
3834
3834
|
}
|
|
3835
3835
|
});
|
|
3836
3836
|
const Xn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), Zn = (r, e) => ae.t(r, e);
|
|
3837
|
-
function
|
|
3837
|
+
function it() {
|
|
3838
3838
|
const r = ve(
|
|
3839
3839
|
(n, s, a, i) => Xn(n, s, a || void 0, i),
|
|
3840
3840
|
[]
|
|
@@ -3855,17 +3855,17 @@ function es({
|
|
|
3855
3855
|
initialValue: n,
|
|
3856
3856
|
targetRef: s
|
|
3857
3857
|
}) {
|
|
3858
|
-
const { translate: a } =
|
|
3858
|
+
const { translate: a } = it(), i = () => {
|
|
3859
3859
|
if (!n) return;
|
|
3860
|
-
const
|
|
3861
|
-
return isNaN(
|
|
3862
|
-
}, [o] =
|
|
3860
|
+
const k = new Date(n);
|
|
3861
|
+
return isNaN(k.getTime()) ? void 0 : k;
|
|
3862
|
+
}, [o] = J(/* @__PURE__ */ new Date()), [u, c] = J(
|
|
3863
3863
|
r || i() || /* @__PURE__ */ new Date()
|
|
3864
|
-
), [f, l] =
|
|
3864
|
+
), [f, l] = J(
|
|
3865
3865
|
u ? u.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
3866
|
-
), [
|
|
3866
|
+
), [d, p] = J(
|
|
3867
3867
|
u ? u.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3868
|
-
), [m, g] =
|
|
3868
|
+
), [m, g] = J(
|
|
3869
3869
|
u ? u.getDate() : null
|
|
3870
3870
|
), b = xe(null), w = xe([]), E = [
|
|
3871
3871
|
a(fe.JANUARY),
|
|
@@ -3909,182 +3909,182 @@ function es({
|
|
|
3909
3909
|
value: a(le.SATURDAY_SHORT),
|
|
3910
3910
|
full: a(le.SATURDAY)
|
|
3911
3911
|
}
|
|
3912
|
-
], S = (
|
|
3913
|
-
const
|
|
3914
|
-
return
|
|
3915
|
-
}), x = (
|
|
3916
|
-
S(
|
|
3917
|
-
},
|
|
3918
|
-
f === 0 ? (l(11), d
|
|
3919
|
-
},
|
|
3920
|
-
f === 11 ? (l(0), d
|
|
3921
|
-
},
|
|
3922
|
-
var
|
|
3923
|
-
const h =
|
|
3924
|
-
(T) => T !== null && T.getDate() ===
|
|
3912
|
+
], S = (k) => t.some((h) => {
|
|
3913
|
+
const v = h.start.getTime(), T = h.end.getTime(), D = k.getTime();
|
|
3914
|
+
return D >= v && D <= T;
|
|
3915
|
+
}), x = (k) => {
|
|
3916
|
+
S(k) || (c(k), g(k.getDate()), e && e(Gr(k)));
|
|
3917
|
+
}, P = () => {
|
|
3918
|
+
f === 0 ? (l(11), p(d - 1)) : l(f - 1), g(1);
|
|
3919
|
+
}, _ = () => {
|
|
3920
|
+
f === 11 ? (l(0), p(d + 1)) : l(f + 1), g(1);
|
|
3921
|
+
}, $ = (k, h) => new Date(k, h + 1, 0).getDate(), A = (k, h) => new Date(k, h, 1).getDay(), I = (k) => {
|
|
3922
|
+
var v;
|
|
3923
|
+
const h = B.findIndex(
|
|
3924
|
+
(T) => T !== null && T.getDate() === k
|
|
3925
3925
|
);
|
|
3926
|
-
h !== -1 && w.current[h] && ((
|
|
3927
|
-
},
|
|
3928
|
-
const
|
|
3929
|
-
if (!
|
|
3930
|
-
const T =
|
|
3931
|
-
switch (
|
|
3926
|
+
h !== -1 && w.current[h] && ((v = w.current[h]) == null || v.focus(), g(k));
|
|
3927
|
+
}, j = (k, h) => {
|
|
3928
|
+
const v = B[h];
|
|
3929
|
+
if (!v) return;
|
|
3930
|
+
const T = $(d, f), D = v.getDate();
|
|
3931
|
+
switch (k.key) {
|
|
3932
3932
|
case "ArrowRight":
|
|
3933
|
-
|
|
3933
|
+
k.preventDefault();
|
|
3934
3934
|
{
|
|
3935
|
-
let R =
|
|
3935
|
+
let R = D + 1, C = new Date(d, f, R);
|
|
3936
3936
|
if (R > T) {
|
|
3937
|
-
const
|
|
3938
|
-
R = 1,
|
|
3939
|
-
|
|
3937
|
+
const F = f === 11 ? d + 1 : d, V = f === 11 ? 0 : f + 1;
|
|
3938
|
+
R = 1, C = new Date(F, V, R), _(), setTimeout(() => {
|
|
3939
|
+
M(1, "forward");
|
|
3940
3940
|
}, 0);
|
|
3941
3941
|
return;
|
|
3942
3942
|
}
|
|
3943
|
-
S(
|
|
3943
|
+
S(C) ? M(R, "forward") : I(R);
|
|
3944
3944
|
}
|
|
3945
3945
|
break;
|
|
3946
3946
|
case "Tab":
|
|
3947
3947
|
break;
|
|
3948
3948
|
case "ArrowLeft":
|
|
3949
|
-
|
|
3949
|
+
k.preventDefault();
|
|
3950
3950
|
{
|
|
3951
|
-
let R =
|
|
3951
|
+
let R = D - 1, C = new Date(d, f, R);
|
|
3952
3952
|
if (R < 1) {
|
|
3953
|
-
const
|
|
3954
|
-
R = N,
|
|
3955
|
-
|
|
3953
|
+
const F = f === 0 ? d - 1 : d, V = f === 0 ? 11 : f - 1, N = $(F, V);
|
|
3954
|
+
R = N, C = new Date(F, V, R), P(), setTimeout(() => {
|
|
3955
|
+
M(N, "backward");
|
|
3956
3956
|
}, 0);
|
|
3957
3957
|
return;
|
|
3958
3958
|
}
|
|
3959
|
-
S(
|
|
3959
|
+
S(C) ? M(R, "backward") : I(R);
|
|
3960
3960
|
}
|
|
3961
3961
|
break;
|
|
3962
3962
|
case "ArrowUp":
|
|
3963
|
-
|
|
3963
|
+
k.preventDefault();
|
|
3964
3964
|
{
|
|
3965
|
-
let R =
|
|
3965
|
+
let R = D - 7, C = new Date(d, f, R);
|
|
3966
3966
|
if (R < 1) {
|
|
3967
|
-
const
|
|
3968
|
-
R =
|
|
3969
|
-
|
|
3967
|
+
const F = f === 0 ? d - 1 : d, V = f === 0 ? 11 : f - 1;
|
|
3968
|
+
R = $(F, V) + R, C = new Date(F, V, R), P(), setTimeout(() => {
|
|
3969
|
+
M(R, "backward");
|
|
3970
3970
|
}, 0);
|
|
3971
3971
|
return;
|
|
3972
3972
|
}
|
|
3973
|
-
S(
|
|
3973
|
+
S(C) ? M(R, "backward") : I(R);
|
|
3974
3974
|
}
|
|
3975
3975
|
break;
|
|
3976
3976
|
case "ArrowDown":
|
|
3977
|
-
|
|
3977
|
+
k.preventDefault();
|
|
3978
3978
|
{
|
|
3979
|
-
let R =
|
|
3979
|
+
let R = D + 7, C = new Date(d, f, R);
|
|
3980
3980
|
if (R > T) {
|
|
3981
|
-
const
|
|
3982
|
-
R = R - T,
|
|
3983
|
-
|
|
3981
|
+
const F = f === 11 ? d + 1 : d, V = f === 11 ? 0 : f + 1;
|
|
3982
|
+
R = R - T, C = new Date(F, V, R), _(), setTimeout(() => {
|
|
3983
|
+
M(R, "forward");
|
|
3984
3984
|
}, 0);
|
|
3985
3985
|
return;
|
|
3986
3986
|
}
|
|
3987
|
-
S(
|
|
3987
|
+
S(C) ? M(R, "forward") : I(R);
|
|
3988
3988
|
}
|
|
3989
3989
|
break;
|
|
3990
3990
|
case "Home":
|
|
3991
|
-
|
|
3991
|
+
k.preventDefault(), M(1, "forward");
|
|
3992
3992
|
break;
|
|
3993
3993
|
case "End":
|
|
3994
|
-
|
|
3994
|
+
k.preventDefault(), M(T, "backward");
|
|
3995
3995
|
break;
|
|
3996
3996
|
case "PageUp":
|
|
3997
|
-
|
|
3998
|
-
const R =
|
|
3999
|
-
f === 0 ?
|
|
3997
|
+
k.preventDefault(), P(), setTimeout(() => {
|
|
3998
|
+
const R = $(
|
|
3999
|
+
f === 0 ? d - 1 : d,
|
|
4000
4000
|
f === 0 ? 11 : f - 1
|
|
4001
|
-
),
|
|
4002
|
-
|
|
4001
|
+
), C = Math.min(D, R);
|
|
4002
|
+
M(C, "forward");
|
|
4003
4003
|
}, 0);
|
|
4004
4004
|
break;
|
|
4005
4005
|
case "PageDown":
|
|
4006
|
-
|
|
4007
|
-
const R =
|
|
4008
|
-
f === 11 ?
|
|
4006
|
+
k.preventDefault(), _(), setTimeout(() => {
|
|
4007
|
+
const R = $(
|
|
4008
|
+
f === 11 ? d + 1 : d,
|
|
4009
4009
|
f === 11 ? 0 : f + 1
|
|
4010
|
-
),
|
|
4011
|
-
|
|
4010
|
+
), C = Math.min(D, R);
|
|
4011
|
+
M(C, "forward");
|
|
4012
4012
|
}, 0);
|
|
4013
4013
|
break;
|
|
4014
4014
|
case " ":
|
|
4015
4015
|
case "Space":
|
|
4016
|
-
if (S(
|
|
4017
|
-
g(
|
|
4016
|
+
if (S(v)) return;
|
|
4017
|
+
g(v.getDate()), c(v);
|
|
4018
4018
|
break;
|
|
4019
4019
|
case "Enter":
|
|
4020
|
-
|
|
4020
|
+
k.preventDefault(), x(v);
|
|
4021
4021
|
break;
|
|
4022
4022
|
}
|
|
4023
|
-
},
|
|
4024
|
-
const
|
|
4023
|
+
}, M = (k, h) => {
|
|
4024
|
+
const v = $(d, f);
|
|
4025
4025
|
if (h === "forward") {
|
|
4026
|
-
for (let T =
|
|
4027
|
-
const
|
|
4028
|
-
if (!S(
|
|
4029
|
-
|
|
4026
|
+
for (let T = k; T <= v; T++) {
|
|
4027
|
+
const D = new Date(d, f, T);
|
|
4028
|
+
if (!S(D)) {
|
|
4029
|
+
I(T);
|
|
4030
4030
|
return;
|
|
4031
4031
|
}
|
|
4032
4032
|
}
|
|
4033
|
-
|
|
4034
|
-
|
|
4033
|
+
_(), setTimeout(() => {
|
|
4034
|
+
M(1, "forward");
|
|
4035
4035
|
}, 0);
|
|
4036
4036
|
} else {
|
|
4037
|
-
for (let
|
|
4038
|
-
const
|
|
4039
|
-
if (!S(
|
|
4040
|
-
C
|
|
4037
|
+
for (let C = k; C >= 1; C--) {
|
|
4038
|
+
const F = new Date(d, f, C);
|
|
4039
|
+
if (!S(F)) {
|
|
4040
|
+
I(C);
|
|
4041
4041
|
return;
|
|
4042
4042
|
}
|
|
4043
4043
|
}
|
|
4044
|
-
const T = f === 0 ?
|
|
4045
|
-
|
|
4046
|
-
|
|
4044
|
+
const T = f === 0 ? d - 1 : d, D = f === 0 ? 11 : f - 1, R = $(T, D);
|
|
4045
|
+
P(), setTimeout(() => {
|
|
4046
|
+
M(R, "backward");
|
|
4047
4047
|
}, 0);
|
|
4048
4048
|
}
|
|
4049
|
-
},
|
|
4050
|
-
const
|
|
4049
|
+
}, B = (() => {
|
|
4050
|
+
const k = $(d, f), h = A(d, f), v = [];
|
|
4051
4051
|
for (let T = 0; T < h; T++)
|
|
4052
|
-
|
|
4053
|
-
for (let T = 1; T <=
|
|
4054
|
-
const
|
|
4055
|
-
|
|
4052
|
+
v.push(null);
|
|
4053
|
+
for (let T = 1; T <= k; T++) {
|
|
4054
|
+
const D = new Date(d, f, T);
|
|
4055
|
+
v.push(D);
|
|
4056
4056
|
}
|
|
4057
|
-
return
|
|
4058
|
-
})(),
|
|
4057
|
+
return v;
|
|
4058
|
+
})(), Z = [];
|
|
4059
4059
|
let q = [];
|
|
4060
|
-
|
|
4061
|
-
if (q.push(
|
|
4060
|
+
B.forEach((k, h) => {
|
|
4061
|
+
if (q.push(k), q.length === 7 || h === B.length - 1) {
|
|
4062
4062
|
for (; q.length < 7; )
|
|
4063
4063
|
q.push(null);
|
|
4064
|
-
|
|
4064
|
+
Z.push(q), q = [];
|
|
4065
4065
|
}
|
|
4066
4066
|
}), oe(() => {
|
|
4067
|
-
var
|
|
4067
|
+
var k;
|
|
4068
4068
|
if (m !== null) {
|
|
4069
|
-
const h =
|
|
4070
|
-
(
|
|
4069
|
+
const h = B.findIndex(
|
|
4070
|
+
(v) => v !== null && v.getDate() === m
|
|
4071
4071
|
);
|
|
4072
|
-
h !== -1 && w.current[h] && ((
|
|
4072
|
+
h !== -1 && w.current[h] && ((k = w.current[h]) == null || k.focus());
|
|
4073
4073
|
}
|
|
4074
|
-
}, [f,
|
|
4074
|
+
}, [f, d, m, B]);
|
|
4075
4075
|
const K = {
|
|
4076
4076
|
label: "smp-datepickercalendar-label",
|
|
4077
4077
|
wrapper: `smp-datepickercalendar ${Qn["smp-datepickercalendar-position"]}`,
|
|
4078
4078
|
calendar: "smp-datepickercalendar",
|
|
4079
4079
|
table: "smp-datepickercalendar-table",
|
|
4080
4080
|
th: "smp-datepickercalendar-th",
|
|
4081
|
-
td: (
|
|
4082
|
-
${
|
|
4081
|
+
td: (k, h, v, T) => `smp-datepickercalendar-td
|
|
4082
|
+
${k ? "smp-datepickercalendar-td-today" : ""}
|
|
4083
4083
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4084
|
-
${
|
|
4084
|
+
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4085
4085
|
${T ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4086
|
-
}, W = () => `${E[f]} ${
|
|
4087
|
-
return /* @__PURE__ */
|
|
4086
|
+
}, W = () => `${E[f]} ${d.toString()}`;
|
|
4087
|
+
return /* @__PURE__ */ y.jsxs(
|
|
4088
4088
|
"div",
|
|
4089
4089
|
{
|
|
4090
4090
|
className: K.wrapper,
|
|
@@ -4094,7 +4094,7 @@ function es({
|
|
|
4094
4094
|
"aria-modal": "true",
|
|
4095
4095
|
"data-component": "datepicker-calendar",
|
|
4096
4096
|
children: [
|
|
4097
|
-
/* @__PURE__ */
|
|
4097
|
+
/* @__PURE__ */ y.jsxs(
|
|
4098
4098
|
"div",
|
|
4099
4099
|
{
|
|
4100
4100
|
style: {
|
|
@@ -4104,10 +4104,10 @@ function es({
|
|
|
4104
4104
|
marginBottom: "16px"
|
|
4105
4105
|
},
|
|
4106
4106
|
children: [
|
|
4107
|
-
/* @__PURE__ */
|
|
4107
|
+
/* @__PURE__ */ y.jsx(
|
|
4108
4108
|
_e,
|
|
4109
4109
|
{
|
|
4110
|
-
onClick:
|
|
4110
|
+
onClick: P,
|
|
4111
4111
|
ariaLabel: a(bt.PREVIOUS_MONTH),
|
|
4112
4112
|
optionalDisplayValue: "<",
|
|
4113
4113
|
appearance: "ghost",
|
|
@@ -4115,7 +4115,7 @@ function es({
|
|
|
4115
4115
|
bindValue: "<"
|
|
4116
4116
|
}
|
|
4117
4117
|
),
|
|
4118
|
-
/* @__PURE__ */
|
|
4118
|
+
/* @__PURE__ */ y.jsx(
|
|
4119
4119
|
"div",
|
|
4120
4120
|
{
|
|
4121
4121
|
"aria-label": W(),
|
|
@@ -4123,10 +4123,10 @@ function es({
|
|
|
4123
4123
|
children: W()
|
|
4124
4124
|
}
|
|
4125
4125
|
),
|
|
4126
|
-
/* @__PURE__ */
|
|
4126
|
+
/* @__PURE__ */ y.jsx(
|
|
4127
4127
|
_e,
|
|
4128
4128
|
{
|
|
4129
|
-
onClick:
|
|
4129
|
+
onClick: _,
|
|
4130
4130
|
ariaLabel: a(bt.NEXT_MONTH),
|
|
4131
4131
|
bindValue: ">",
|
|
4132
4132
|
optionalDisplayValue: ">",
|
|
@@ -4137,28 +4137,28 @@ function es({
|
|
|
4137
4137
|
]
|
|
4138
4138
|
}
|
|
4139
4139
|
),
|
|
4140
|
-
/* @__PURE__ */
|
|
4140
|
+
/* @__PURE__ */ y.jsxs(
|
|
4141
4141
|
"table",
|
|
4142
4142
|
{
|
|
4143
4143
|
ref: b,
|
|
4144
4144
|
role: "grid",
|
|
4145
|
-
"aria-label": `${a(jt.CALENDAR_FOR)} ${E[f]} ${
|
|
4145
|
+
"aria-label": `${a(jt.CALENDAR_FOR)} ${E[f]} ${d}`,
|
|
4146
4146
|
className: K.table,
|
|
4147
4147
|
children: [
|
|
4148
|
-
/* @__PURE__ */
|
|
4148
|
+
/* @__PURE__ */ y.jsx("thead", { children: /* @__PURE__ */ y.jsx("tr", { children: O.map((k) => /* @__PURE__ */ y.jsx(
|
|
4149
4149
|
"th",
|
|
4150
4150
|
{
|
|
4151
4151
|
scope: "col",
|
|
4152
|
-
abbr:
|
|
4152
|
+
abbr: k.full,
|
|
4153
4153
|
className: K.th,
|
|
4154
|
-
children:
|
|
4154
|
+
children: k.value
|
|
4155
4155
|
},
|
|
4156
|
-
|
|
4156
|
+
k.value
|
|
4157
4157
|
)) }) }),
|
|
4158
|
-
/* @__PURE__ */
|
|
4159
|
-
const
|
|
4160
|
-
if (
|
|
4161
|
-
return /* @__PURE__ */
|
|
4158
|
+
/* @__PURE__ */ y.jsx("tbody", { children: Z.map((k, h) => /* @__PURE__ */ y.jsx("tr", { children: k.map((v, T) => {
|
|
4159
|
+
const D = h * 7 + T;
|
|
4160
|
+
if (v === null)
|
|
4161
|
+
return /* @__PURE__ */ y.jsx(
|
|
4162
4162
|
"td",
|
|
4163
4163
|
{
|
|
4164
4164
|
className: K.td(
|
|
@@ -4170,28 +4170,28 @@ function es({
|
|
|
4170
4170
|
},
|
|
4171
4171
|
`empty-${T}`
|
|
4172
4172
|
);
|
|
4173
|
-
const R =
|
|
4174
|
-
return /* @__PURE__ */
|
|
4173
|
+
const R = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), C = u && v.getDate() === u.getDate() && v.getMonth() === u.getMonth() && v.getFullYear() === u.getFullYear(), F = m === v.getDate(), V = S(v);
|
|
4174
|
+
return /* @__PURE__ */ y.jsx(
|
|
4175
4175
|
"td",
|
|
4176
4176
|
{
|
|
4177
4177
|
role: "gridcell",
|
|
4178
|
-
"aria-selected":
|
|
4179
|
-
tabIndex:
|
|
4180
|
-
onClick: () => x(
|
|
4181
|
-
onKeyDown: (N) =>
|
|
4182
|
-
"aria-label": `${
|
|
4183
|
-
"data-selected":
|
|
4184
|
-
"aria-disabled":
|
|
4178
|
+
"aria-selected": C,
|
|
4179
|
+
tabIndex: F ? 0 : -1,
|
|
4180
|
+
onClick: () => x(v),
|
|
4181
|
+
onKeyDown: (N) => j(N, D),
|
|
4182
|
+
"aria-label": `${v.getDate()} ${E[v.getMonth()]} ${v.getFullYear()}`,
|
|
4183
|
+
"data-selected": C,
|
|
4184
|
+
"aria-disabled": V,
|
|
4185
4185
|
ref: (N) => {
|
|
4186
|
-
w.current[
|
|
4186
|
+
w.current[D] = N;
|
|
4187
4187
|
},
|
|
4188
4188
|
className: K.td(
|
|
4189
4189
|
R,
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4190
|
+
C,
|
|
4191
|
+
F,
|
|
4192
|
+
V
|
|
4193
4193
|
),
|
|
4194
|
-
children:
|
|
4194
|
+
children: v.getDate()
|
|
4195
4195
|
},
|
|
4196
4196
|
`day-${T}`
|
|
4197
4197
|
);
|
|
@@ -4211,74 +4211,74 @@ const ts = ({
|
|
|
4211
4211
|
isEditable: s = !0,
|
|
4212
4212
|
...a
|
|
4213
4213
|
}) => {
|
|
4214
|
-
const [i, o] =
|
|
4214
|
+
const [i, o] = J(!1), [u, c] = J(r || ""), [f, l] = J(""), { anchorRef: d, targetRef: p } = Et({
|
|
4215
4215
|
position: "bottom",
|
|
4216
4216
|
enabled: i
|
|
4217
4217
|
});
|
|
4218
|
-
|
|
4218
|
+
Qe(p, () => {
|
|
4219
4219
|
o(!1);
|
|
4220
|
-
}),
|
|
4220
|
+
}), Qe(d, () => {
|
|
4221
4221
|
if (
|
|
4222
4222
|
// FIXME: Copied from useClickOutside.
|
|
4223
|
-
typeof
|
|
4223
|
+
typeof d == "object" && d !== null && "current" in d
|
|
4224
4224
|
) {
|
|
4225
|
-
const
|
|
4226
|
-
|
|
4225
|
+
const _ = d.current.querySelector("input");
|
|
4226
|
+
_ && _ === document.activeElement && E();
|
|
4227
4227
|
}
|
|
4228
|
-
}), jr(i,
|
|
4229
|
-
const { format: m, getCurrentLanguage: g } =
|
|
4230
|
-
(
|
|
4231
|
-
const
|
|
4228
|
+
}), jr(i, p);
|
|
4229
|
+
const { format: m, getCurrentLanguage: g } = it(), b = ve(
|
|
4230
|
+
(_) => {
|
|
4231
|
+
const $ = _.length > 5 && Ur(_, g()) || _, A = m($, void 0, void 0, {
|
|
4232
4232
|
type: "date"
|
|
4233
|
-
}),
|
|
4233
|
+
}), I = typeof $ != "string", j = I && $.toISOString().substring(0, 10) || "";
|
|
4234
4234
|
return {
|
|
4235
|
-
isValid:
|
|
4236
|
-
formattedDate:
|
|
4237
|
-
isoDate:
|
|
4238
|
-
normalizedDate:
|
|
4235
|
+
isValid: I,
|
|
4236
|
+
formattedDate: A,
|
|
4237
|
+
isoDate: j,
|
|
4238
|
+
normalizedDate: $
|
|
4239
4239
|
};
|
|
4240
4240
|
},
|
|
4241
4241
|
[g, m]
|
|
4242
4242
|
);
|
|
4243
4243
|
oe(() => {
|
|
4244
|
-
const { formattedDate:
|
|
4245
|
-
c(
|
|
4244
|
+
const { formattedDate: _, isoDate: $, isValid: A } = b(r);
|
|
4245
|
+
c(A && $ || r), l(A && _ || r);
|
|
4246
4246
|
}, [r, m, b]);
|
|
4247
|
-
const w = () => o((
|
|
4247
|
+
const w = () => o((_) => !_), E = () => {
|
|
4248
4248
|
S(f);
|
|
4249
|
-
}, O = (
|
|
4250
|
-
S(
|
|
4251
|
-
}, S = (
|
|
4252
|
-
const { isoDate:
|
|
4253
|
-
t && t(
|
|
4254
|
-
}, x = (
|
|
4255
|
-
l(
|
|
4256
|
-
},
|
|
4257
|
-
|
|
4249
|
+
}, O = (_) => {
|
|
4250
|
+
S(_), o(!1);
|
|
4251
|
+
}, S = (_) => {
|
|
4252
|
+
const { isoDate: $, isValid: A } = b(_);
|
|
4253
|
+
t && t(A && $ || _);
|
|
4254
|
+
}, x = (_) => {
|
|
4255
|
+
l(_);
|
|
4256
|
+
}, P = (_) => {
|
|
4257
|
+
_.key === "Enter" && (_.preventDefault(), S(f));
|
|
4258
4258
|
};
|
|
4259
|
-
return /* @__PURE__ */
|
|
4260
|
-
/* @__PURE__ */
|
|
4259
|
+
return /* @__PURE__ */ y.jsxs("div", { "data-component": "date-picker", children: [
|
|
4260
|
+
/* @__PURE__ */ y.jsx(
|
|
4261
4261
|
Ce,
|
|
4262
4262
|
{
|
|
4263
4263
|
bindValue: f,
|
|
4264
4264
|
placeholder: e,
|
|
4265
4265
|
onBlur: E,
|
|
4266
4266
|
onChange: x,
|
|
4267
|
-
onKeyDown:
|
|
4267
|
+
onKeyDown: P,
|
|
4268
4268
|
shapeIcon: "calendar",
|
|
4269
4269
|
onShapeIconClick: w,
|
|
4270
|
-
ref:
|
|
4270
|
+
ref: d,
|
|
4271
4271
|
isEditable: s,
|
|
4272
4272
|
...a
|
|
4273
4273
|
}
|
|
4274
4274
|
),
|
|
4275
|
-
i && /* @__PURE__ */
|
|
4275
|
+
i && /* @__PURE__ */ y.jsx(Ot, { children: /* @__PURE__ */ y.jsx(
|
|
4276
4276
|
es,
|
|
4277
4277
|
{
|
|
4278
4278
|
disabledDateRanges: n,
|
|
4279
4279
|
onDateChange: O,
|
|
4280
4280
|
initialValue: wt(u) && u || "",
|
|
4281
|
-
targetRef:
|
|
4281
|
+
targetRef: p
|
|
4282
4282
|
}
|
|
4283
4283
|
) })
|
|
4284
4284
|
] });
|
|
@@ -4295,7 +4295,7 @@ const ts = ({
|
|
|
4295
4295
|
onOptionsRequest: c,
|
|
4296
4296
|
onChange: f
|
|
4297
4297
|
}) => {
|
|
4298
|
-
const l = r.map((m) => m.bindValue),
|
|
4298
|
+
const l = r.map((m) => m.bindValue), d = (m, g) => {
|
|
4299
4299
|
const b = [...r];
|
|
4300
4300
|
if (m == "")
|
|
4301
4301
|
b.pop();
|
|
@@ -4309,17 +4309,17 @@ const ts = ({
|
|
|
4309
4309
|
});
|
|
4310
4310
|
}
|
|
4311
4311
|
f == null || f(b);
|
|
4312
|
-
},
|
|
4312
|
+
}, p = {
|
|
4313
4313
|
container: "smp-multipleAutocomplete-container"
|
|
4314
4314
|
};
|
|
4315
|
-
return /* @__PURE__ */
|
|
4315
|
+
return /* @__PURE__ */ y.jsxs(
|
|
4316
4316
|
"div",
|
|
4317
4317
|
{
|
|
4318
|
-
className:
|
|
4318
|
+
className: p.container,
|
|
4319
4319
|
"data-component": "multiple-autocomplete",
|
|
4320
4320
|
children: [
|
|
4321
|
-
i && /* @__PURE__ */
|
|
4322
|
-
/* @__PURE__ */
|
|
4321
|
+
i && /* @__PURE__ */ y.jsx($e, { label: i, disabled: o }),
|
|
4322
|
+
/* @__PURE__ */ y.jsx(
|
|
4323
4323
|
Rt,
|
|
4324
4324
|
{
|
|
4325
4325
|
elements: r,
|
|
@@ -4330,13 +4330,13 @@ const ts = ({
|
|
|
4330
4330
|
}
|
|
4331
4331
|
}
|
|
4332
4332
|
),
|
|
4333
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ y.jsx(
|
|
4334
4334
|
Rr,
|
|
4335
4335
|
{
|
|
4336
4336
|
bindValue: "",
|
|
4337
4337
|
fun: u,
|
|
4338
4338
|
isEditable: s,
|
|
4339
|
-
onChange:
|
|
4339
|
+
onChange: d,
|
|
4340
4340
|
_changeOnEnter: !0,
|
|
4341
4341
|
listDisplayMode: n,
|
|
4342
4342
|
minimumChars: t,
|
|
@@ -4349,8 +4349,8 @@ const ts = ({
|
|
|
4349
4349
|
}
|
|
4350
4350
|
);
|
|
4351
4351
|
}, ns = ({ ...r }) => {
|
|
4352
|
-
const [e, t] =
|
|
4353
|
-
return /* @__PURE__ */
|
|
4352
|
+
const [e, t] = J(!1), n = e ? "visibility-off" : "visibility";
|
|
4353
|
+
return /* @__PURE__ */ y.jsx(
|
|
4354
4354
|
Ce,
|
|
4355
4355
|
{
|
|
4356
4356
|
...r,
|
|
@@ -4362,11 +4362,11 @@ const ts = ({
|
|
|
4362
4362
|
}
|
|
4363
4363
|
);
|
|
4364
4364
|
}, ss = ({ ...r }) => {
|
|
4365
|
-
const [e, t] =
|
|
4365
|
+
const [e, t] = J(r.bindValue), { translate: n } = it(), s = (a) => {
|
|
4366
4366
|
var i;
|
|
4367
4367
|
a.key === "Enter" && (a.preventDefault(), (i = r.onEnter) == null || i.call(r, e));
|
|
4368
4368
|
};
|
|
4369
|
-
return /* @__PURE__ */
|
|
4369
|
+
return /* @__PURE__ */ y.jsx(
|
|
4370
4370
|
Ce,
|
|
4371
4371
|
{
|
|
4372
4372
|
...r,
|
|
@@ -4388,16 +4388,16 @@ const ts = ({
|
|
|
4388
4388
|
const n = {
|
|
4389
4389
|
wrapper: "smp-text-wrapper"
|
|
4390
4390
|
};
|
|
4391
|
-
return t ? /* @__PURE__ */
|
|
4392
|
-
/* @__PURE__ */
|
|
4393
|
-
/* @__PURE__ */
|
|
4391
|
+
return t ? /* @__PURE__ */ y.jsxs("div", { className: n.wrapper, children: [
|
|
4392
|
+
/* @__PURE__ */ y.jsx($e, { label: t }),
|
|
4393
|
+
/* @__PURE__ */ y.jsx(
|
|
4394
4394
|
Ie,
|
|
4395
4395
|
{
|
|
4396
4396
|
variant: "body",
|
|
4397
4397
|
bindValue: e || r
|
|
4398
4398
|
}
|
|
4399
4399
|
)
|
|
4400
|
-
] }) : /* @__PURE__ */
|
|
4400
|
+
] }) : /* @__PURE__ */ y.jsx(
|
|
4401
4401
|
Ie,
|
|
4402
4402
|
{
|
|
4403
4403
|
variant: "body",
|
|
@@ -4467,20 +4467,20 @@ const Ke = (r, e, t) => ({
|
|
|
4467
4467
|
helperText: c,
|
|
4468
4468
|
error: f,
|
|
4469
4469
|
onBlur: l,
|
|
4470
|
-
onKeyDown:
|
|
4470
|
+
onKeyDown: d
|
|
4471
4471
|
}) => {
|
|
4472
|
-
const
|
|
4472
|
+
const p = St(), m = `${p}-helper`, g = f ? "danger" : s, b = c || !!f, w = (O) => {
|
|
4473
4473
|
t == null || t(O.target.value);
|
|
4474
4474
|
}, E = {
|
|
4475
4475
|
wrapper: "smp-textarea-wrapper",
|
|
4476
4476
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${g ? `smp-textarea-${g}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4477
4477
|
};
|
|
4478
|
-
return /* @__PURE__ */
|
|
4479
|
-
o && /* @__PURE__ */
|
|
4480
|
-
/* @__PURE__ */
|
|
4478
|
+
return /* @__PURE__ */ y.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
|
|
4479
|
+
o && /* @__PURE__ */ y.jsx($e, { htmlFor: p, label: o, disabled: r }),
|
|
4480
|
+
/* @__PURE__ */ y.jsx(
|
|
4481
4481
|
"textarea",
|
|
4482
4482
|
{
|
|
4483
|
-
id:
|
|
4483
|
+
id: p,
|
|
4484
4484
|
value: e,
|
|
4485
4485
|
placeholder: n,
|
|
4486
4486
|
onChange: w,
|
|
@@ -4488,13 +4488,13 @@ const Ke = (r, e, t) => ({
|
|
|
4488
4488
|
className: E.container,
|
|
4489
4489
|
disabled: r,
|
|
4490
4490
|
readOnly: !i,
|
|
4491
|
-
onKeyDown:
|
|
4491
|
+
onKeyDown: d,
|
|
4492
4492
|
"aria-label": o ? void 0 : u,
|
|
4493
|
-
"aria-labelledby": o ?
|
|
4493
|
+
"aria-labelledby": o ? p : void 0,
|
|
4494
4494
|
"aria-describedby": b ? m : void 0
|
|
4495
4495
|
}
|
|
4496
4496
|
),
|
|
4497
|
-
b && /* @__PURE__ */
|
|
4497
|
+
b && /* @__PURE__ */ y.jsx(
|
|
4498
4498
|
vr,
|
|
4499
4499
|
{
|
|
4500
4500
|
id: m,
|
|
@@ -4517,8 +4517,8 @@ const Ke = (r, e, t) => ({
|
|
|
4517
4517
|
onChange: c,
|
|
4518
4518
|
onClick: f,
|
|
4519
4519
|
onEnter: l,
|
|
4520
|
-
onBlur:
|
|
4521
|
-
onOptionsRequest:
|
|
4520
|
+
onBlur: d,
|
|
4521
|
+
onOptionsRequest: p,
|
|
4522
4522
|
isEditable: m
|
|
4523
4523
|
}) => {
|
|
4524
4524
|
const g = {
|
|
@@ -4528,25 +4528,25 @@ const Ke = (r, e, t) => ({
|
|
|
4528
4528
|
icon: s,
|
|
4529
4529
|
fun: a
|
|
4530
4530
|
}, b = {
|
|
4531
|
-
onBlur:
|
|
4532
|
-
onOptionsRequest:
|
|
4531
|
+
onBlur: d,
|
|
4532
|
+
onOptionsRequest: p,
|
|
4533
4533
|
fun: a,
|
|
4534
4534
|
icon: s,
|
|
4535
4535
|
label: o,
|
|
4536
4536
|
isEditable: m,
|
|
4537
4537
|
...n
|
|
4538
|
-
}, w = (S, x,
|
|
4538
|
+
}, w = (S, x, P) => Vr(t) ? Ke(S, new Ze(t, x).getLegacyValue()) : Ke(S, x, P), E = (S) => Ke(g, new Xe(t, S).getLegacyValue()), O = (S) => is(g, S);
|
|
4539
4539
|
switch (e) {
|
|
4540
4540
|
case ne.AUTOCOMPLETE: {
|
|
4541
4541
|
const S = {
|
|
4542
4542
|
...b,
|
|
4543
4543
|
bindValue: t.k,
|
|
4544
4544
|
optionalDisplayValue: r,
|
|
4545
|
-
onChange: (x,
|
|
4546
|
-
c == null || c(w(g, x,
|
|
4545
|
+
onChange: (x, P) => {
|
|
4546
|
+
c == null || c(w(g, x, P));
|
|
4547
4547
|
}
|
|
4548
4548
|
};
|
|
4549
|
-
return /* @__PURE__ */
|
|
4549
|
+
return /* @__PURE__ */ y.jsx(Rr, { ...S });
|
|
4550
4550
|
}
|
|
4551
4551
|
case ne.BUTTON: {
|
|
4552
4552
|
const S = {
|
|
@@ -4557,58 +4557,58 @@ const Ke = (r, e, t) => ({
|
|
|
4557
4557
|
f == null || f(w(g, t.k));
|
|
4558
4558
|
}
|
|
4559
4559
|
};
|
|
4560
|
-
return /* @__PURE__ */
|
|
4560
|
+
return /* @__PURE__ */ y.jsx(_e, { ...S });
|
|
4561
4561
|
}
|
|
4562
4562
|
case ne.BUTTON_LIST: {
|
|
4563
4563
|
const S = {
|
|
4564
4564
|
...b,
|
|
4565
4565
|
options: u,
|
|
4566
|
-
onClick: (x,
|
|
4567
|
-
const
|
|
4568
|
-
f == null || f(w(
|
|
4566
|
+
onClick: (x, P) => {
|
|
4567
|
+
const _ = { ...g, fun: P };
|
|
4568
|
+
f == null || f(w(_, x));
|
|
4569
4569
|
}
|
|
4570
4570
|
};
|
|
4571
|
-
return /* @__PURE__ */
|
|
4571
|
+
return /* @__PURE__ */ y.jsx(gn, { ...S });
|
|
4572
4572
|
}
|
|
4573
4573
|
case ne.COMBOBOX: {
|
|
4574
4574
|
const S = {
|
|
4575
4575
|
...b,
|
|
4576
4576
|
bindValue: t.k,
|
|
4577
4577
|
optionalDisplayValue: r,
|
|
4578
|
-
onChange: (x,
|
|
4579
|
-
c == null || c(w(g, x,
|
|
4578
|
+
onChange: (x, P) => {
|
|
4579
|
+
c == null || c(w(g, x, P));
|
|
4580
4580
|
}
|
|
4581
4581
|
};
|
|
4582
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ y.jsx(xn, { ...S });
|
|
4583
4583
|
}
|
|
4584
4584
|
case ne.SWITCH:
|
|
4585
4585
|
case ne.CHECKBOX: {
|
|
4586
4586
|
const S = {
|
|
4587
4587
|
...b,
|
|
4588
|
-
bindValue:
|
|
4588
|
+
bindValue: Xe.fromDataObj(t).getValue(),
|
|
4589
4589
|
optionalDisplayValue: r,
|
|
4590
4590
|
onChange: (x) => {
|
|
4591
4591
|
c == null || c(E(x));
|
|
4592
4592
|
}
|
|
4593
4593
|
};
|
|
4594
|
-
return /* @__PURE__ */
|
|
4594
|
+
return /* @__PURE__ */ y.jsx(yn, { ...S });
|
|
4595
4595
|
}
|
|
4596
4596
|
case ne.CHIP: {
|
|
4597
4597
|
const S = {
|
|
4598
4598
|
...b,
|
|
4599
4599
|
elements: hr(g)
|
|
4600
4600
|
};
|
|
4601
|
-
return /* @__PURE__ */
|
|
4601
|
+
return /* @__PURE__ */ y.jsx(Rt, { ...S });
|
|
4602
4602
|
}
|
|
4603
4603
|
case ne.DATE: {
|
|
4604
4604
|
const S = {
|
|
4605
4605
|
...b,
|
|
4606
|
-
bindValue:
|
|
4606
|
+
bindValue: Ze.fromDataObj(t).getValue(),
|
|
4607
4607
|
onChange: (x) => {
|
|
4608
4608
|
c == null || c(w(g, x));
|
|
4609
4609
|
}
|
|
4610
4610
|
};
|
|
4611
|
-
return /* @__PURE__ */
|
|
4611
|
+
return /* @__PURE__ */ y.jsx(ts, { ...S });
|
|
4612
4612
|
}
|
|
4613
4613
|
case ne.ICON:
|
|
4614
4614
|
case ne.IMAGE: {
|
|
@@ -4621,7 +4621,7 @@ const Ke = (r, e, t) => ({
|
|
|
4621
4621
|
f == null || f(w(g, t.k));
|
|
4622
4622
|
}
|
|
4623
4623
|
};
|
|
4624
|
-
return /* @__PURE__ */
|
|
4624
|
+
return /* @__PURE__ */ y.jsx(ce, { ...S });
|
|
4625
4625
|
}
|
|
4626
4626
|
case ne.MULTI_AUTOCOMPLETE: {
|
|
4627
4627
|
const S = {
|
|
@@ -4631,7 +4631,7 @@ const Ke = (r, e, t) => ({
|
|
|
4631
4631
|
c == null || c(O(x));
|
|
4632
4632
|
}
|
|
4633
4633
|
};
|
|
4634
|
-
return /* @__PURE__ */
|
|
4634
|
+
return /* @__PURE__ */ y.jsx(rs, { ...S });
|
|
4635
4635
|
}
|
|
4636
4636
|
case ne.MEMO: {
|
|
4637
4637
|
const S = {
|
|
@@ -4642,7 +4642,7 @@ const Ke = (r, e, t) => ({
|
|
|
4642
4642
|
c == null || c(w(g, x));
|
|
4643
4643
|
}
|
|
4644
4644
|
};
|
|
4645
|
-
return /* @__PURE__ */
|
|
4645
|
+
return /* @__PURE__ */ y.jsx(os, { ...S });
|
|
4646
4646
|
}
|
|
4647
4647
|
case ne.PASSWORD: {
|
|
4648
4648
|
const S = {
|
|
@@ -4652,7 +4652,7 @@ const Ke = (r, e, t) => ({
|
|
|
4652
4652
|
c == null || c(w(g, x));
|
|
4653
4653
|
}
|
|
4654
4654
|
};
|
|
4655
|
-
return /* @__PURE__ */
|
|
4655
|
+
return /* @__PURE__ */ y.jsx(ns, { ...S });
|
|
4656
4656
|
}
|
|
4657
4657
|
case ne.SPOTLIGHT: {
|
|
4658
4658
|
const S = {
|
|
@@ -4662,7 +4662,7 @@ const Ke = (r, e, t) => ({
|
|
|
4662
4662
|
l == null || l(w(g, x));
|
|
4663
4663
|
}
|
|
4664
4664
|
};
|
|
4665
|
-
return /* @__PURE__ */
|
|
4665
|
+
return /* @__PURE__ */ y.jsx(ss, { ...S });
|
|
4666
4666
|
}
|
|
4667
4667
|
case ne.TEXT_FIELD: {
|
|
4668
4668
|
const S = {
|
|
@@ -4673,7 +4673,7 @@ const Ke = (r, e, t) => ({
|
|
|
4673
4673
|
c == null || c(w(g, x));
|
|
4674
4674
|
}
|
|
4675
4675
|
};
|
|
4676
|
-
return /* @__PURE__ */
|
|
4676
|
+
return /* @__PURE__ */ y.jsx(Ce, { ...S });
|
|
4677
4677
|
}
|
|
4678
4678
|
default: {
|
|
4679
4679
|
const S = {
|
|
@@ -4681,7 +4681,7 @@ const Ke = (r, e, t) => ({
|
|
|
4681
4681
|
bindValue: t.k,
|
|
4682
4682
|
optionalDisplayValue: r
|
|
4683
4683
|
};
|
|
4684
|
-
return /* @__PURE__ */
|
|
4684
|
+
return /* @__PURE__ */ y.jsx(as, { ...S });
|
|
4685
4685
|
}
|
|
4686
4686
|
}
|
|
4687
4687
|
}, ls = (r, e) => {
|
|
@@ -4748,19 +4748,19 @@ const Ke = (r, e, t) => ({
|
|
|
4748
4748
|
]
|
|
4749
4749
|
}
|
|
4750
4750
|
}) => {
|
|
4751
|
-
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = $r(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((
|
|
4751
|
+
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = $r(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((d, p) => {
|
|
4752
4752
|
var E, O;
|
|
4753
4753
|
let m = "", g = {}, b = {}, w = "";
|
|
4754
|
-
return (E =
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
)))) : (O =
|
|
4758
|
-
[t]: `repeat(${
|
|
4754
|
+
return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (w = `${pe[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (p.horizontal || gr(p.sections)) && (b = mr(
|
|
4755
|
+
p.sections,
|
|
4756
|
+
p.horizontal ? t : n
|
|
4757
|
+
)))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"], w = `${pe["smp-grid-template-cols"]}`, b = {
|
|
4758
|
+
[t]: `repeat(${p.gridCols}, 1fr)`
|
|
4759
4759
|
}) : m = pe["smp-layout-section-flex"]), {
|
|
4760
|
-
...
|
|
4760
|
+
...d,
|
|
4761
4761
|
...g,
|
|
4762
|
-
[
|
|
4763
|
-
classes: `${m} ${pe[
|
|
4762
|
+
[p.id]: {
|
|
4763
|
+
classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${w} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
4764
4764
|
styles: b
|
|
4765
4765
|
}
|
|
4766
4766
|
};
|
|
@@ -4771,14 +4771,14 @@ const Ke = (r, e, t) => ({
|
|
|
4771
4771
|
s,
|
|
4772
4772
|
e.horizontal ? t : n
|
|
4773
4773
|
) : {}, c = (l) => {
|
|
4774
|
-
var
|
|
4775
|
-
const
|
|
4774
|
+
var p;
|
|
4775
|
+
const d = /* @__PURE__ */ y.jsx(
|
|
4776
4776
|
"div",
|
|
4777
4777
|
{
|
|
4778
4778
|
"smp-id": "section-" + l.id,
|
|
4779
4779
|
className: o.sections[l.id].classes,
|
|
4780
4780
|
style: o.sections[l.id].styles,
|
|
4781
|
-
children: (
|
|
4781
|
+
children: (p = l.sections) != null && p.length ? l.sections.map((m) => c(m)) : l.content.map(
|
|
4782
4782
|
(m) => f(
|
|
4783
4783
|
m,
|
|
4784
4784
|
r[m.id],
|
|
@@ -4789,51 +4789,51 @@ const Ke = (r, e, t) => ({
|
|
|
4789
4789
|
},
|
|
4790
4790
|
"section-" + l.id
|
|
4791
4791
|
);
|
|
4792
|
-
return l.title ? /* @__PURE__ */
|
|
4793
|
-
/* @__PURE__ */
|
|
4792
|
+
return l.title ? /* @__PURE__ */ y.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
|
|
4793
|
+
/* @__PURE__ */ y.jsx(
|
|
4794
4794
|
"span",
|
|
4795
4795
|
{
|
|
4796
4796
|
className: `${pe["smp-layout-section-title"]} ${l.justify ? `smp-justifyContent-${l.justify}` : ""} ${l.align ? `smp-alignItems-${l.align}` : ""}`,
|
|
4797
|
-
children: /* @__PURE__ */
|
|
4797
|
+
children: /* @__PURE__ */ y.jsx($e, { label: l.title })
|
|
4798
4798
|
}
|
|
4799
4799
|
),
|
|
4800
|
-
|
|
4801
|
-
] }) :
|
|
4802
|
-
}, f = (l,
|
|
4800
|
+
d
|
|
4801
|
+
] }) : d;
|
|
4802
|
+
}, f = (l, d, p, m) => {
|
|
4803
4803
|
const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, b = g !== null ? `span ${g}` : l.colStart, w = l.colEnd !== void 0 && l.colEnd > 0 ? l.colEnd : "", E = {
|
|
4804
4804
|
gridColumnStart: b,
|
|
4805
4805
|
gridColumnEnd: w
|
|
4806
|
-
}, O = `${pe["smp-layout-cell-container"]} ${
|
|
4807
|
-
return
|
|
4806
|
+
}, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
|
|
4807
|
+
return d ? /* @__PURE__ */ y.jsx(
|
|
4808
4808
|
"div",
|
|
4809
4809
|
{
|
|
4810
4810
|
className: O,
|
|
4811
4811
|
style: { ...E },
|
|
4812
4812
|
"smp-id": l.id,
|
|
4813
|
-
children: /* @__PURE__ */
|
|
4813
|
+
children: /* @__PURE__ */ y.jsx(Dt, { ...d })
|
|
4814
4814
|
},
|
|
4815
4815
|
l.id
|
|
4816
|
-
) : /* @__PURE__ */
|
|
4816
|
+
) : /* @__PURE__ */ y.jsx(y.Fragment, {});
|
|
4817
4817
|
};
|
|
4818
|
-
return /* @__PURE__ */
|
|
4819
|
-
},
|
|
4818
|
+
return /* @__PURE__ */ y.jsx("div", { className: o.container, style: u, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
|
|
4819
|
+
}, Ps = ({ data: r, onClick: e, onEnter: t }) => {
|
|
4820
4820
|
var i, o;
|
|
4821
|
-
const [n, s] =
|
|
4821
|
+
const [n, s] = J(), a = ve(
|
|
4822
4822
|
(u) => {
|
|
4823
4823
|
var f, l;
|
|
4824
4824
|
if (!((f = u.rows) != null && f.length) || !((l = u.columns) != null && l.length))
|
|
4825
4825
|
return {};
|
|
4826
4826
|
const c = u.rows[0];
|
|
4827
|
-
return u.columns.filter((
|
|
4828
|
-
const m = c.cells[
|
|
4827
|
+
return u.columns.filter((d) => d.visible).reduce((d, p) => {
|
|
4828
|
+
const m = c.cells[p.name], g = {
|
|
4829
4829
|
...m,
|
|
4830
4830
|
onChange: (b) => {
|
|
4831
4831
|
s((w) => w && {
|
|
4832
4832
|
...w,
|
|
4833
|
-
[
|
|
4834
|
-
...w[
|
|
4833
|
+
[p.name]: {
|
|
4834
|
+
...w[p.name],
|
|
4835
4835
|
obj: {
|
|
4836
|
-
...w[
|
|
4836
|
+
...w[p.name].obj,
|
|
4837
4837
|
k: b.obj.k
|
|
4838
4838
|
}
|
|
4839
4839
|
}
|
|
@@ -4849,8 +4849,8 @@ const Ke = (r, e, t) => ({
|
|
|
4849
4849
|
}
|
|
4850
4850
|
};
|
|
4851
4851
|
return {
|
|
4852
|
-
...
|
|
4853
|
-
[
|
|
4852
|
+
...d,
|
|
4853
|
+
[p.name]: g
|
|
4854
4854
|
};
|
|
4855
4855
|
}, {});
|
|
4856
4856
|
},
|
|
@@ -4858,7 +4858,7 @@ const Ke = (r, e, t) => ({
|
|
|
4858
4858
|
);
|
|
4859
4859
|
return oe(() => {
|
|
4860
4860
|
r && s(a(r));
|
|
4861
|
-
}, [r, a]), !((i = r == null ? void 0 : r.rows) != null && i.length) || !((o = r.columns) != null && o.length) ? null : n && /* @__PURE__ */
|
|
4861
|
+
}, [r, a]), !((i = r == null ? void 0 : r.rows) != null && i.length) || !((o = r.columns) != null && o.length) ? null : n && /* @__PURE__ */ y.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ y.jsx(_t, { layout: r.rows[0].layout, cells: n }) });
|
|
4862
4862
|
}, cs = (r) => {
|
|
4863
4863
|
var e;
|
|
4864
4864
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
@@ -4870,7 +4870,7 @@ const Ke = (r, e, t) => ({
|
|
|
4870
4870
|
icon: t.icon
|
|
4871
4871
|
};
|
|
4872
4872
|
}) : [];
|
|
4873
|
-
},
|
|
4873
|
+
}, ue = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, As = ({
|
|
4874
4874
|
data: r,
|
|
4875
4875
|
logo: e,
|
|
4876
4876
|
open: t,
|
|
@@ -4882,22 +4882,22 @@ const Ke = (r, e, t) => ({
|
|
|
4882
4882
|
loadOptions: u
|
|
4883
4883
|
}) => {
|
|
4884
4884
|
var O, S;
|
|
4885
|
-
const [c, f] =
|
|
4885
|
+
const [c, f] = J(), [l, d] = J(t ?? !0), p = xe(null), m = s.trim() ? s : "100vh", g = ve(
|
|
4886
4886
|
(x) => {
|
|
4887
|
-
var
|
|
4888
|
-
if (!((
|
|
4887
|
+
var _, $;
|
|
4888
|
+
if (!((_ = x == null ? void 0 : x.rows) != null && _.length) || !(($ = x == null ? void 0 : x.columns) != null && $.length))
|
|
4889
4889
|
return {};
|
|
4890
|
-
const
|
|
4891
|
-
return x.columns.filter((
|
|
4892
|
-
const
|
|
4893
|
-
if (!
|
|
4894
|
-
return
|
|
4895
|
-
const
|
|
4896
|
-
...
|
|
4890
|
+
const P = x.rows[0];
|
|
4891
|
+
return x.columns.filter((A) => A.visible ?? !0).reduce((A, I) => {
|
|
4892
|
+
const j = P.cells[I.name];
|
|
4893
|
+
if (!j || !l && ue(n) && j.shape !== ne.BUTTON && j.shape !== ne.BUTTON_LIST)
|
|
4894
|
+
return A;
|
|
4895
|
+
const M = {
|
|
4896
|
+
...j,
|
|
4897
4897
|
onChange: (U) => {
|
|
4898
|
-
f((
|
|
4899
|
-
const
|
|
4900
|
-
return
|
|
4898
|
+
f((B) => {
|
|
4899
|
+
const Z = { ...B };
|
|
4900
|
+
return Z != null && Z[I.name] && (Z[I.name].obj.k = U.obj.k), Z;
|
|
4901
4901
|
});
|
|
4902
4902
|
},
|
|
4903
4903
|
onClick: (U) => {
|
|
@@ -4907,15 +4907,15 @@ const Ke = (r, e, t) => ({
|
|
|
4907
4907
|
i && i(U);
|
|
4908
4908
|
}
|
|
4909
4909
|
};
|
|
4910
|
-
return u &&
|
|
4911
|
-
(
|
|
4912
|
-
)), !l &&
|
|
4913
|
-
...
|
|
4910
|
+
return u && j.shape == ne.BUTTON_LIST && (M.onOptionsRequest = (U, B) => u(U, B).then(
|
|
4911
|
+
(Z) => cs(Z)
|
|
4912
|
+
)), !l && ue(n) && (M.data = {
|
|
4913
|
+
...M.data,
|
|
4914
4914
|
showText: !1,
|
|
4915
4915
|
justify: "center"
|
|
4916
4916
|
}), {
|
|
4917
|
-
...
|
|
4918
|
-
[
|
|
4917
|
+
...A,
|
|
4918
|
+
[I.name]: M
|
|
4919
4919
|
};
|
|
4920
4920
|
}, {});
|
|
4921
4921
|
},
|
|
@@ -4923,30 +4923,30 @@ const Ke = (r, e, t) => ({
|
|
|
4923
4923
|
), b = ve(() => {
|
|
4924
4924
|
o == null || o();
|
|
4925
4925
|
}, [o]), w = () => {
|
|
4926
|
-
|
|
4926
|
+
ue(n) ? d((x) => !x) : (d(!1), o == null || o());
|
|
4927
4927
|
};
|
|
4928
4928
|
if (oe(() => {
|
|
4929
4929
|
f(g(r));
|
|
4930
4930
|
}, [r]), oe(() => {
|
|
4931
|
-
if (!
|
|
4931
|
+
if (!p.current)
|
|
4932
4932
|
return;
|
|
4933
|
-
if (!
|
|
4933
|
+
if (!ue(n)) {
|
|
4934
4934
|
f(g(r));
|
|
4935
4935
|
return;
|
|
4936
4936
|
}
|
|
4937
|
-
const x = getComputedStyle(
|
|
4937
|
+
const x = getComputedStyle(p.current).getPropertyValue(
|
|
4938
4938
|
"--smp-drawer-slide-transition"
|
|
4939
4939
|
);
|
|
4940
|
-
let
|
|
4941
|
-
x.endsWith("ms") ?
|
|
4940
|
+
let P = Number(x);
|
|
4941
|
+
x.endsWith("ms") ? P = parseFloat(x) : x.endsWith("s") && (P = parseFloat(x) * 1e3), setTimeout(() => {
|
|
4942
4942
|
f(g(r));
|
|
4943
|
-
},
|
|
4943
|
+
}, P / 2);
|
|
4944
4944
|
}, [l, n]), oe(() => {
|
|
4945
|
-
t !== void 0 && !
|
|
4945
|
+
t !== void 0 && !ue(n) && d(t);
|
|
4946
4946
|
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((S = r.columns) != null && S.length))
|
|
4947
4947
|
return null;
|
|
4948
4948
|
const E = {
|
|
4949
|
-
drawer: `smp-drawer ${
|
|
4949
|
+
drawer: `smp-drawer ${ue(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${l ? "smp-drawer-open" : ""} ${!ue(n) && !l ? "smp-drawer-no-border" : ""}`,
|
|
4950
4950
|
container: "smp-drawer-container",
|
|
4951
4951
|
containerHeader: "smp-drawer-container-header",
|
|
4952
4952
|
containerIcon: `${l ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
@@ -4954,8 +4954,8 @@ const Ke = (r, e, t) => ({
|
|
|
4954
4954
|
containerLogo: "smp-drawer-container-logo",
|
|
4955
4955
|
backdrop: `smp-drawer-backdrop ${l ? "smp-drawer-backdrop-open" : ""}`
|
|
4956
4956
|
};
|
|
4957
|
-
return c && /* @__PURE__ */
|
|
4958
|
-
!
|
|
4957
|
+
return c && /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
4958
|
+
!ue(n) && /* @__PURE__ */ y.jsx(
|
|
4959
4959
|
"div",
|
|
4960
4960
|
{
|
|
4961
4961
|
"aria-hidden": "true",
|
|
@@ -4964,18 +4964,18 @@ const Ke = (r, e, t) => ({
|
|
|
4964
4964
|
onClick: b
|
|
4965
4965
|
}
|
|
4966
4966
|
),
|
|
4967
|
-
/* @__PURE__ */
|
|
4967
|
+
/* @__PURE__ */ y.jsx(
|
|
4968
4968
|
"aside",
|
|
4969
4969
|
{
|
|
4970
|
-
ref:
|
|
4970
|
+
ref: p,
|
|
4971
4971
|
className: E.drawer,
|
|
4972
4972
|
style: { height: m },
|
|
4973
4973
|
"aria-label": "Drawer",
|
|
4974
4974
|
"smp-id": "drawer",
|
|
4975
|
-
children: /* @__PURE__ */
|
|
4976
|
-
/* @__PURE__ */
|
|
4977
|
-
e && /* @__PURE__ */
|
|
4978
|
-
|
|
4975
|
+
children: /* @__PURE__ */ y.jsxs("div", { className: E.container, children: [
|
|
4976
|
+
/* @__PURE__ */ y.jsxs("div", { className: E.containerHeader, children: [
|
|
4977
|
+
e && /* @__PURE__ */ y.jsx("div", { className: E.containerLogo, children: /* @__PURE__ */ y.jsx(
|
|
4978
|
+
ce,
|
|
4979
4979
|
{
|
|
4980
4980
|
icon: e,
|
|
4981
4981
|
title: "drawer_logo",
|
|
@@ -4983,10 +4983,10 @@ const Ke = (r, e, t) => ({
|
|
|
4983
4983
|
height: 24
|
|
4984
4984
|
}
|
|
4985
4985
|
) }),
|
|
4986
|
-
/* @__PURE__ */
|
|
4987
|
-
|
|
4986
|
+
/* @__PURE__ */ y.jsx("div", { className: E.containerIcon, children: /* @__PURE__ */ y.jsx(
|
|
4987
|
+
ce,
|
|
4988
4988
|
{
|
|
4989
|
-
icon:
|
|
4989
|
+
icon: ue(n) ? "menu_close" : "close",
|
|
4990
4990
|
title: "drawer_icon",
|
|
4991
4991
|
rotated: !l,
|
|
4992
4992
|
isInteractable: !0,
|
|
@@ -4996,12 +4996,12 @@ const Ke = (r, e, t) => ({
|
|
|
4996
4996
|
}
|
|
4997
4997
|
) })
|
|
4998
4998
|
] }),
|
|
4999
|
-
/* @__PURE__ */
|
|
4999
|
+
/* @__PURE__ */ y.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ y.jsx(_t, { layout: r.rows[0].layout, cells: c }) })
|
|
5000
5000
|
] })
|
|
5001
5001
|
}
|
|
5002
5002
|
)
|
|
5003
5003
|
] });
|
|
5004
|
-
},
|
|
5004
|
+
}, Ls = ({
|
|
5005
5005
|
ColumnsNumber: r = 1,
|
|
5006
5006
|
data: e = {},
|
|
5007
5007
|
ForceText: t,
|
|
@@ -5014,8 +5014,8 @@ const Ke = (r, e, t) => ({
|
|
|
5014
5014
|
IconColName: c,
|
|
5015
5015
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5016
5016
|
NumberFormat: l,
|
|
5017
|
-
ForceUM:
|
|
5018
|
-
UmColName:
|
|
5017
|
+
ForceUM: d,
|
|
5018
|
+
UmColName: p,
|
|
5019
5019
|
UmColor: m = "var(--smp-dashList-color-base)",
|
|
5020
5020
|
ForceValue: g,
|
|
5021
5021
|
ValueColName: b,
|
|
@@ -5023,9 +5023,9 @@ const Ke = (r, e, t) => ({
|
|
|
5023
5023
|
SelectLayout: E = "1",
|
|
5024
5024
|
onClick: O
|
|
5025
5025
|
}) => {
|
|
5026
|
-
const S = "N/A", x = (e == null ? void 0 : e.columns) || [],
|
|
5027
|
-
dash: (
|
|
5028
|
-
const
|
|
5026
|
+
const S = "N/A", x = (e == null ? void 0 : e.columns) || [], P = (e == null ? void 0 : e.rows) || [], _ = P.length > 0, $ = "--smp-dashList-color", A = "smp-layout", I = "descr", j = "icon", M = "um", U = "value", B = i || "1em", Z = "18px", q = "--smp-dashList-columns", K = "--smp-dashList-fontSize", W = {
|
|
5027
|
+
dash: (Y = "1") => {
|
|
5028
|
+
const X = h(Y), te = X, re = v(X, I), de = v(X, j), be = v(X, M), he = v(X, U);
|
|
5029
5029
|
return {
|
|
5030
5030
|
container: te,
|
|
5031
5031
|
descr: re,
|
|
@@ -5034,118 +5034,122 @@ const Ke = (r, e, t) => ({
|
|
|
5034
5034
|
value: he
|
|
5035
5035
|
};
|
|
5036
5036
|
},
|
|
5037
|
-
dashList: `smp-dash-list ${
|
|
5038
|
-
${
|
|
5039
|
-
}, { format:
|
|
5040
|
-
const
|
|
5041
|
-
if (
|
|
5042
|
-
const re =
|
|
5037
|
+
dashList: `smp-dash-list ${ue(a) ? "smp-dash-list-fill-space" : ""}
|
|
5038
|
+
${ue(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5039
|
+
}, { format: k } = it(), h = (Y) => `${A}-${Y}`, v = (Y, X) => `${Y}__${X}`, T = (Y) => `${$}-${Y}`, D = (Y) => {
|
|
5040
|
+
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5041
|
+
if (X.test(Y)) {
|
|
5042
|
+
const re = Y.match(X) || [];
|
|
5043
5043
|
if ((re == null ? void 0 : re.length) > 3)
|
|
5044
5044
|
return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
|
|
5045
5045
|
}
|
|
5046
|
-
return
|
|
5047
|
-
}, R = (
|
|
5048
|
-
if (!l) return
|
|
5049
|
-
const [
|
|
5046
|
+
return Y;
|
|
5047
|
+
}, R = (Y) => {
|
|
5048
|
+
if (!l) return Y;
|
|
5049
|
+
const [X, te] = C(l).map(
|
|
5050
5050
|
(Oe) => parseInt(Oe || "0")
|
|
5051
|
-
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de =
|
|
5052
|
-
if (!
|
|
5051
|
+
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = k(Y, re, "it");
|
|
5052
|
+
if (!X) return de;
|
|
5053
5053
|
const [be, he] = de.split(",");
|
|
5054
5054
|
return be + (he ? `,${he}` : "");
|
|
5055
|
-
},
|
|
5056
|
-
const
|
|
5055
|
+
}, C = (Y) => Y.includes(";") ? Y.split(";") : [Y], F = (Y) => {
|
|
5056
|
+
const X = (re) => {
|
|
5057
5057
|
var de;
|
|
5058
5058
|
if (re)
|
|
5059
|
-
return (de =
|
|
5059
|
+
return (de = Y == null ? void 0 : Y.cells[re]) == null ? void 0 : de.obj.k;
|
|
5060
5060
|
}, te = (re) => {
|
|
5061
5061
|
var de, be;
|
|
5062
5062
|
if (!(x.length <= re))
|
|
5063
|
-
return (be = (de =
|
|
5063
|
+
return (be = (de = Y == null ? void 0 : Y.cells[x[re].name]) == null ? void 0 : de.obj) == null ? void 0 : be.k;
|
|
5064
5064
|
};
|
|
5065
5065
|
return {
|
|
5066
|
-
descr: t ||
|
|
5067
|
-
icon: u ||
|
|
5068
|
-
um:
|
|
5069
|
-
value: g ||
|
|
5066
|
+
descr: t || X(n) || te(2) || "",
|
|
5067
|
+
icon: u || X(c) || te(3) || "",
|
|
5068
|
+
um: d || X(p) || te(1) || "",
|
|
5069
|
+
value: g || X(b) || te(0) || ""
|
|
5070
5070
|
};
|
|
5071
|
-
},
|
|
5072
|
-
O == null || O(
|
|
5073
|
-
}, N = (
|
|
5074
|
-
(
|
|
5075
|
-
},
|
|
5076
|
-
const
|
|
5071
|
+
}, V = (Y) => {
|
|
5072
|
+
O == null || O(Y);
|
|
5073
|
+
}, N = (Y, X) => {
|
|
5074
|
+
(Y.key === "Enter" || Y.key === " ") && (Y.preventDefault(), Y.stopPropagation(), V(X));
|
|
5075
|
+
}, H = ((Y) => {
|
|
5076
|
+
const X = W.dash(Y);
|
|
5077
5077
|
return {
|
|
5078
|
-
className:
|
|
5079
|
-
descr: (te) => /* @__PURE__ */
|
|
5080
|
-
icon: (te) => /* @__PURE__ */
|
|
5081
|
-
|
|
5078
|
+
className: X,
|
|
5079
|
+
descr: (te) => /* @__PURE__ */ y.jsx("div", { className: X.descr, children: te }, `${Y}-${I}`),
|
|
5080
|
+
icon: (te) => /* @__PURE__ */ y.jsx("div", { className: X.icon, children: /* @__PURE__ */ y.jsx(
|
|
5081
|
+
ce,
|
|
5082
5082
|
{
|
|
5083
5083
|
color: f,
|
|
5084
|
-
height:
|
|
5084
|
+
height: Z,
|
|
5085
5085
|
icon: te,
|
|
5086
|
-
width:
|
|
5086
|
+
width: Z
|
|
5087
5087
|
}
|
|
5088
|
-
) }, `${
|
|
5089
|
-
um: (te) => /* @__PURE__ */
|
|
5090
|
-
value: (te) => /* @__PURE__ */
|
|
5088
|
+
) }, `${Y}-${j}`),
|
|
5089
|
+
um: (te) => /* @__PURE__ */ y.jsx("div", { className: X.um, children: te }, `${Y}-${M}`),
|
|
5090
|
+
value: (te) => /* @__PURE__ */ y.jsx("div", { className: X.value, children: te }, `${Y}-${U}`)
|
|
5091
5091
|
};
|
|
5092
|
-
})(E), se = (
|
|
5093
|
-
const { descr:
|
|
5094
|
-
[T(
|
|
5095
|
-
[T(
|
|
5096
|
-
[T(U)]:
|
|
5092
|
+
})(E), se = (Y) => {
|
|
5093
|
+
const { descr: X, icon: te, um: re, value: de } = F(Y), be = {
|
|
5094
|
+
[T(I)]: D(s),
|
|
5095
|
+
[T(M)]: D(m),
|
|
5096
|
+
[T(U)]: D(w)
|
|
5097
5097
|
}, he = [], Oe = R(de);
|
|
5098
5098
|
switch (E) {
|
|
5099
5099
|
case "2":
|
|
5100
|
-
te && he.push(
|
|
5101
|
-
|
|
5100
|
+
te && he.push(H.icon(te)), he.push(H.descr(X)), he.push(
|
|
5101
|
+
H.value(re ? Oe + " " + re : Oe)
|
|
5102
5102
|
);
|
|
5103
5103
|
break;
|
|
5104
5104
|
default:
|
|
5105
5105
|
case "1":
|
|
5106
|
-
he.push(
|
|
5107
|
-
|
|
5106
|
+
he.push(H.descr(X)), he.push(
|
|
5107
|
+
H.value(re ? Oe + " " + re : Oe)
|
|
5108
5108
|
);
|
|
5109
5109
|
}
|
|
5110
|
-
return /* @__PURE__ */
|
|
5110
|
+
return /* @__PURE__ */ y.jsx(
|
|
5111
5111
|
"div",
|
|
5112
5112
|
{
|
|
5113
|
-
className:
|
|
5113
|
+
className: H.className.container,
|
|
5114
5114
|
role: "button",
|
|
5115
5115
|
style: be,
|
|
5116
5116
|
tabIndex: 0,
|
|
5117
|
-
onClick: () =>
|
|
5118
|
-
onKeyDown: (Pr) => N(Pr,
|
|
5117
|
+
onClick: () => V(Y),
|
|
5118
|
+
onKeyDown: (Pr) => N(Pr, Y),
|
|
5119
5119
|
children: he
|
|
5120
5120
|
},
|
|
5121
|
-
|
|
5121
|
+
Y.rowId
|
|
5122
5122
|
);
|
|
5123
|
-
},
|
|
5123
|
+
}, L = {
|
|
5124
5124
|
[q]: String(r),
|
|
5125
|
-
[K]:
|
|
5125
|
+
[K]: B
|
|
5126
5126
|
};
|
|
5127
|
-
return /* @__PURE__ */
|
|
5128
|
-
},
|
|
5129
|
-
"smp-table": "_smp-
|
|
5130
|
-
"smp-headerCell": "_smp-
|
|
5131
|
-
"smp-resizer": "_smp-
|
|
5132
|
-
}, us = "
|
|
5127
|
+
return /* @__PURE__ */ y.jsx("div", { className: W.dashList, style: L, children: _ ? P.map((Y) => se(Y)) : S });
|
|
5128
|
+
}, ze = {
|
|
5129
|
+
"smp-table": "_smp-table_1qmju_1",
|
|
5130
|
+
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5131
|
+
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5132
|
+
}, us = "_rowContent_20wit_2", fs = "_clickable_20wit_21", ds = "_indent_20wit_26", ps = "_toggle_20wit_32", hs = "_cell_20wit_38", ms = "_leftSection_20wit_46", Ee = {
|
|
5133
5133
|
rowContent: us,
|
|
5134
5134
|
clickable: fs,
|
|
5135
5135
|
indent: ds,
|
|
5136
5136
|
toggle: ps,
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
leftSection: gs
|
|
5137
|
+
cell: hs,
|
|
5138
|
+
leftSection: ms
|
|
5140
5139
|
};
|
|
5141
|
-
function
|
|
5140
|
+
function Je(r) {
|
|
5142
5141
|
return !!r && "children" in r;
|
|
5143
5142
|
}
|
|
5144
|
-
function
|
|
5145
|
-
return !
|
|
5143
|
+
function gs(r) {
|
|
5144
|
+
return !Je(r);
|
|
5146
5145
|
}
|
|
5147
|
-
function
|
|
5148
|
-
|
|
5146
|
+
function ys(r) {
|
|
5147
|
+
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5148
|
+
let t = 0, n, s;
|
|
5149
|
+
if (e.length === 0) return t.toString();
|
|
5150
|
+
for (n = 0; n < e.length; n++)
|
|
5151
|
+
s = e.charCodeAt(n), t = (t << 5) - t + s, t |= 0;
|
|
5152
|
+
return Math.abs(t).toString();
|
|
5149
5153
|
}
|
|
5150
5154
|
const Cr = ({
|
|
5151
5155
|
row: r,
|
|
@@ -5155,26 +5159,32 @@ const Cr = ({
|
|
|
5155
5159
|
offsetTop: s
|
|
5156
5160
|
}) => {
|
|
5157
5161
|
var E;
|
|
5158
|
-
const [a, i] =
|
|
5162
|
+
const [a, i] = J(!1), o = Je(r) && !!((E = r.children) != null && E.length), u = r.cells && Object.keys(r.cells).length > 0, c = o, f = t * 20, l = () => {
|
|
5159
5163
|
o && i(!a);
|
|
5160
|
-
},
|
|
5164
|
+
}, d = {
|
|
5161
5165
|
content: `${Ee.rowContent} ${o ? Ee.clickable : ""}`,
|
|
5162
5166
|
toggle: `${Ee.toggle}`,
|
|
5163
5167
|
indent: `${Ee.indent}`,
|
|
5164
5168
|
cell: `${Ee.cell}`
|
|
5165
|
-
},
|
|
5169
|
+
}, p = (O) => /* @__PURE__ */ y.jsx(Dt, { ...O }), m = () => /* @__PURE__ */ y.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ y.jsx(
|
|
5170
|
+
ce,
|
|
5171
|
+
{
|
|
5172
|
+
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
5173
|
+
width: 16
|
|
5174
|
+
}
|
|
5175
|
+
) }), g = () => /* @__PURE__ */ y.jsx(
|
|
5166
5176
|
"span",
|
|
5167
5177
|
{
|
|
5168
|
-
className:
|
|
5178
|
+
className: d.indent,
|
|
5169
5179
|
style: { width: `${f}px` },
|
|
5170
5180
|
"aria-hidden": "true"
|
|
5171
5181
|
}
|
|
5172
5182
|
), b = () => {
|
|
5173
|
-
const O =
|
|
5174
|
-
return /* @__PURE__ */
|
|
5183
|
+
const O = gs(r) ? "" : r.decode || (u ? "" : "Untitled"), S = s ?? n * t;
|
|
5184
|
+
return /* @__PURE__ */ y.jsxs(
|
|
5175
5185
|
"tr",
|
|
5176
5186
|
{
|
|
5177
|
-
className:
|
|
5187
|
+
className: d.content,
|
|
5178
5188
|
onClick: l,
|
|
5179
5189
|
role: o ? "button" : "row",
|
|
5180
5190
|
"aria-expanded": o ? !a : void 0,
|
|
@@ -5184,7 +5194,7 @@ const Cr = ({
|
|
|
5184
5194
|
transform: `translateY(${S}px)`
|
|
5185
5195
|
},
|
|
5186
5196
|
children: [
|
|
5187
|
-
|
|
5197
|
+
Je(r) && /* @__PURE__ */ y.jsxs(
|
|
5188
5198
|
"td",
|
|
5189
5199
|
{
|
|
5190
5200
|
className: Ee.leftSection,
|
|
@@ -5194,35 +5204,35 @@ const Cr = ({
|
|
|
5194
5204
|
children: [
|
|
5195
5205
|
g(),
|
|
5196
5206
|
m(),
|
|
5197
|
-
/* @__PURE__ */
|
|
5207
|
+
/* @__PURE__ */ y.jsx("span", { className: Ee.rowLabel, children: O })
|
|
5198
5208
|
]
|
|
5199
5209
|
}
|
|
5200
5210
|
),
|
|
5201
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([x,
|
|
5211
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([x, P]) => /* @__PURE__ */ y.jsx(
|
|
5202
5212
|
"td",
|
|
5203
5213
|
{
|
|
5204
|
-
className:
|
|
5214
|
+
className: d.cell,
|
|
5205
5215
|
style: {
|
|
5206
5216
|
width: e[x],
|
|
5207
5217
|
minWidth: e[x],
|
|
5208
5218
|
height: `${n}px`
|
|
5209
5219
|
},
|
|
5210
|
-
children:
|
|
5220
|
+
children: p(P)
|
|
5211
5221
|
},
|
|
5212
|
-
|
|
5222
|
+
ys(P) || x
|
|
5213
5223
|
))
|
|
5214
5224
|
]
|
|
5215
5225
|
}
|
|
5216
5226
|
);
|
|
5217
5227
|
}, w = () => {
|
|
5218
5228
|
var O;
|
|
5219
|
-
return a || !o ? null : /* @__PURE__ */
|
|
5229
|
+
return a || !o ? null : /* @__PURE__ */ y.jsx(y.Fragment, { children: Je(r) && ((O = r.children) == null ? void 0 : O.map((S, x) => /* @__PURE__ */ y.jsx(Cr, { row: S, level: t + 1 }, `child-${x}`))) });
|
|
5220
5230
|
};
|
|
5221
|
-
return /* @__PURE__ */
|
|
5231
|
+
return /* @__PURE__ */ y.jsxs(y.Fragment, { children: [
|
|
5222
5232
|
b(),
|
|
5223
5233
|
w()
|
|
5224
5234
|
] });
|
|
5225
|
-
},
|
|
5235
|
+
}, vs = ({
|
|
5226
5236
|
label: r,
|
|
5227
5237
|
rowHeight: e = 28,
|
|
5228
5238
|
offsetTop: t = 0,
|
|
@@ -5234,7 +5244,7 @@ const Cr = ({
|
|
|
5234
5244
|
tr: "smp-groupRow-tr",
|
|
5235
5245
|
td: "smp-groupRow-td"
|
|
5236
5246
|
};
|
|
5237
|
-
return /* @__PURE__ */
|
|
5247
|
+
return /* @__PURE__ */ y.jsx(
|
|
5238
5248
|
"tr",
|
|
5239
5249
|
{
|
|
5240
5250
|
className: i.tr,
|
|
@@ -5244,34 +5254,33 @@ const Cr = ({
|
|
|
5244
5254
|
lineHeight: `${e}px`
|
|
5245
5255
|
},
|
|
5246
5256
|
onClick: s,
|
|
5247
|
-
children: /* @__PURE__ */
|
|
5257
|
+
children: /* @__PURE__ */ y.jsxs(
|
|
5248
5258
|
"td",
|
|
5249
5259
|
{
|
|
5250
5260
|
className: i.td,
|
|
5251
5261
|
style: {
|
|
5252
5262
|
paddingLeft: 10 + n * 20
|
|
5253
|
-
// indentazione per livelli nidificati
|
|
5254
5263
|
},
|
|
5255
5264
|
children: [
|
|
5256
|
-
/* @__PURE__ */
|
|
5257
|
-
|
|
5265
|
+
/* @__PURE__ */ y.jsx(
|
|
5266
|
+
ce,
|
|
5258
5267
|
{
|
|
5259
5268
|
icon: a ? "arrow_drop_down" : "arrow_drop_right",
|
|
5260
5269
|
width: 16
|
|
5261
5270
|
}
|
|
5262
5271
|
),
|
|
5263
|
-
/* @__PURE__ */
|
|
5272
|
+
/* @__PURE__ */ y.jsx(Ie, { variant: "title", bindValue: r })
|
|
5264
5273
|
]
|
|
5265
5274
|
}
|
|
5266
5275
|
)
|
|
5267
5276
|
}
|
|
5268
5277
|
);
|
|
5269
5278
|
};
|
|
5270
|
-
function
|
|
5279
|
+
function xs(r, e) {
|
|
5271
5280
|
const t = new Set(r);
|
|
5272
5281
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
5273
5282
|
}
|
|
5274
|
-
function
|
|
5283
|
+
function bs(r, e) {
|
|
5275
5284
|
return r.map((t) => {
|
|
5276
5285
|
const n = e.find((s) => s.column === t.bindValue);
|
|
5277
5286
|
return {
|
|
@@ -5280,49 +5289,49 @@ function Ss(r, e) {
|
|
|
5280
5289
|
};
|
|
5281
5290
|
});
|
|
5282
5291
|
}
|
|
5283
|
-
function
|
|
5292
|
+
function Ss(r, e, t, n) {
|
|
5284
5293
|
const s = [];
|
|
5285
5294
|
let a = 0;
|
|
5286
5295
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
5287
|
-
function i(l,
|
|
5288
|
-
if (
|
|
5296
|
+
function i(l, d, p) {
|
|
5297
|
+
if (d >= e.length) {
|
|
5289
5298
|
f(l);
|
|
5290
5299
|
return;
|
|
5291
5300
|
}
|
|
5292
|
-
const m = e[
|
|
5301
|
+
const m = e[d].column, g = o(l, m);
|
|
5293
5302
|
for (const [b, w] of g) {
|
|
5294
|
-
const E = [...
|
|
5295
|
-
s.push(c(b, O,
|
|
5303
|
+
const E = [...p, b], O = u(E, d), S = n.has(O);
|
|
5304
|
+
s.push(c(b, O, d, S)), a += t, S && i(w, d + 1, E);
|
|
5296
5305
|
}
|
|
5297
5306
|
}
|
|
5298
|
-
function o(l,
|
|
5307
|
+
function o(l, d) {
|
|
5299
5308
|
var m;
|
|
5300
|
-
const
|
|
5309
|
+
const p = /* @__PURE__ */ new Map();
|
|
5301
5310
|
for (const g of l) {
|
|
5302
|
-
const b = ((m = g.cells[
|
|
5303
|
-
|
|
5311
|
+
const b = ((m = g.cells[d]) == null ? void 0 : m.decode) ?? "N/D";
|
|
5312
|
+
p.has(b) || p.set(b, []), p.get(b).push(g);
|
|
5304
5313
|
}
|
|
5305
|
-
return
|
|
5314
|
+
return p;
|
|
5306
5315
|
}
|
|
5307
|
-
function u(l,
|
|
5308
|
-
return `group-${l.join("-")}-${
|
|
5316
|
+
function u(l, d) {
|
|
5317
|
+
return `group-${l.join("-")}-${d}`;
|
|
5309
5318
|
}
|
|
5310
|
-
function c(l,
|
|
5319
|
+
function c(l, d, p, m) {
|
|
5311
5320
|
return {
|
|
5312
5321
|
isGroup: !0,
|
|
5313
5322
|
value: l,
|
|
5314
5323
|
cells: {},
|
|
5315
|
-
rowId:
|
|
5316
|
-
level:
|
|
5324
|
+
rowId: d,
|
|
5325
|
+
level: p,
|
|
5317
5326
|
isExpanded: m
|
|
5318
5327
|
};
|
|
5319
5328
|
}
|
|
5320
5329
|
function f(l) {
|
|
5321
|
-
for (const
|
|
5322
|
-
s.push(
|
|
5330
|
+
for (const d of l)
|
|
5331
|
+
s.push(d), a += t;
|
|
5323
5332
|
}
|
|
5324
5333
|
}
|
|
5325
|
-
const
|
|
5334
|
+
const ws = ({
|
|
5326
5335
|
groups: r = [],
|
|
5327
5336
|
isDraggable: e = !0,
|
|
5328
5337
|
isEditable: t = !0,
|
|
@@ -5335,15 +5344,15 @@ const Es = ({
|
|
|
5335
5344
|
bindValue: o.column
|
|
5336
5345
|
})
|
|
5337
5346
|
);
|
|
5338
|
-
return /* @__PURE__ */
|
|
5339
|
-
"
|
|
5347
|
+
return /* @__PURE__ */ y.jsxs(
|
|
5348
|
+
"tr",
|
|
5340
5349
|
{
|
|
5341
5350
|
className: "smp-groupBar-container",
|
|
5342
5351
|
onDragOver: a,
|
|
5343
5352
|
onDrop: s,
|
|
5344
5353
|
children: [
|
|
5345
|
-
/* @__PURE__ */
|
|
5346
|
-
/* @__PURE__ */
|
|
5354
|
+
/* @__PURE__ */ y.jsx("td", { children: /* @__PURE__ */ y.jsx(ce, { icon: "groups" }) }),
|
|
5355
|
+
/* @__PURE__ */ y.jsx("td", { children: /* @__PURE__ */ y.jsx(
|
|
5347
5356
|
Rt,
|
|
5348
5357
|
{
|
|
5349
5358
|
elements: i,
|
|
@@ -5352,191 +5361,208 @@ const Es = ({
|
|
|
5352
5361
|
displayMode: "CodeOnly",
|
|
5353
5362
|
onChange: n
|
|
5354
5363
|
}
|
|
5355
|
-
)
|
|
5364
|
+
) })
|
|
5356
5365
|
]
|
|
5357
5366
|
}
|
|
5358
5367
|
);
|
|
5359
|
-
},
|
|
5368
|
+
}, Es = ({ columns: r, columnWidths: e }) => /* @__PURE__ */ y.jsx("tfoot", { children: /* @__PURE__ */ y.jsx("tr", { children: r.map(
|
|
5369
|
+
(t) => t.visible && /* @__PURE__ */ y.jsx(
|
|
5370
|
+
"td",
|
|
5371
|
+
{
|
|
5372
|
+
className: ze["smp-headerCell"],
|
|
5373
|
+
style: {
|
|
5374
|
+
width: e[t.name],
|
|
5375
|
+
minWidth: e[t.name],
|
|
5376
|
+
maxWidth: e[t.name]
|
|
5377
|
+
}
|
|
5378
|
+
},
|
|
5379
|
+
t.name
|
|
5380
|
+
)
|
|
5381
|
+
) }) }), Ts = ({
|
|
5382
|
+
columns: r,
|
|
5383
|
+
rows: e,
|
|
5384
|
+
containerRef: t,
|
|
5385
|
+
sizingMode: n
|
|
5386
|
+
}) => {
|
|
5387
|
+
const [s, a] = J({});
|
|
5388
|
+
return oe(() => {
|
|
5389
|
+
var i, o;
|
|
5390
|
+
if (!(!r || r.length === 0)) {
|
|
5391
|
+
if (n === "fixed") {
|
|
5392
|
+
const c = Object.fromEntries(
|
|
5393
|
+
r.map((f) => [f.name, 120])
|
|
5394
|
+
);
|
|
5395
|
+
a(c);
|
|
5396
|
+
} else if (n === "fit-grid") {
|
|
5397
|
+
const u = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((d) => d.visible !== !1), f = u / c.length, l = Object.fromEntries(
|
|
5398
|
+
c.map((d) => [d.name, f])
|
|
5399
|
+
);
|
|
5400
|
+
a(l);
|
|
5401
|
+
} else if (n === "fit-content") {
|
|
5402
|
+
const u = {};
|
|
5403
|
+
for (const c of r) {
|
|
5404
|
+
if (!c.visible) continue;
|
|
5405
|
+
const f = ((o = c.title) == null ? void 0 : o.length) || 0, l = Math.max(
|
|
5406
|
+
...e.map((d) => {
|
|
5407
|
+
var p, m, g, b;
|
|
5408
|
+
return `${((m = (p = d.cells) == null ? void 0 : p[c.name]) == null ? void 0 : m.decode) || ((b = (g = d.cells) == null ? void 0 : g[c.name]) == null ? void 0 : b.value) || ""}`.length;
|
|
5409
|
+
}),
|
|
5410
|
+
f
|
|
5411
|
+
);
|
|
5412
|
+
u[c.name] = l * 8 + 24;
|
|
5413
|
+
}
|
|
5414
|
+
a(u);
|
|
5415
|
+
}
|
|
5416
|
+
}
|
|
5417
|
+
}, [r, e, t, n]), [s, a];
|
|
5418
|
+
}, ks = ({
|
|
5360
5419
|
data: r,
|
|
5361
5420
|
lineHeight: e = 28,
|
|
5362
5421
|
TableHeight: t = 400,
|
|
5363
5422
|
groups: n,
|
|
5364
5423
|
columnSizingMode: s = "fixed",
|
|
5365
5424
|
showGroupBar: a = !0
|
|
5425
|
+
// isEditable = false,
|
|
5366
5426
|
}) => {
|
|
5367
|
-
var
|
|
5368
|
-
const [i, o] =
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5427
|
+
var _;
|
|
5428
|
+
const [i, o] = J(
|
|
5429
|
+
r ?? { columns: [], rows: [] }
|
|
5430
|
+
), [u, c] = J(n || []), [f, l] = J(/* @__PURE__ */ new Set()), d = xe(null), [p, m] = Ts({
|
|
5431
|
+
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
5432
|
+
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
5433
|
+
containerRef: d,
|
|
5434
|
+
sizingMode: s
|
|
5435
|
+
});
|
|
5372
5436
|
oe(() => {
|
|
5373
|
-
var D;
|
|
5374
|
-
if (!i || !i.columns || i.columns.length)
|
|
5375
|
-
return;
|
|
5376
|
-
const j = ((D = g.current) == null ? void 0 : D.clientWidth) ?? 1e3;
|
|
5377
|
-
let C = {};
|
|
5378
|
-
switch (s) {
|
|
5379
|
-
case "fixed":
|
|
5380
|
-
C = Object.fromEntries(
|
|
5381
|
-
i.columns.map((k) => [k.name, 120])
|
|
5382
|
-
);
|
|
5383
|
-
break;
|
|
5384
|
-
case "fit-grid": {
|
|
5385
|
-
const k = i.columns.filter((H) => H.visible), U = Math.floor(j / k.length);
|
|
5386
|
-
C = Object.fromEntries(
|
|
5387
|
-
k.map((H) => [H.name, U])
|
|
5388
|
-
);
|
|
5389
|
-
break;
|
|
5390
|
-
}
|
|
5391
|
-
case "fit-content":
|
|
5392
|
-
C = Object.fromEntries(
|
|
5393
|
-
i.columns.map((k) => {
|
|
5394
|
-
const U = Math.max(
|
|
5395
|
-
...r.rows.map((W) => {
|
|
5396
|
-
var y;
|
|
5397
|
-
const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[k.name], h = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
|
|
5398
|
-
return h ? String(h).length : 0;
|
|
5399
|
-
}),
|
|
5400
|
-
0
|
|
5401
|
-
), H = k.title ? k.title.length : 0, z = Math.max(U, H);
|
|
5402
|
-
return [
|
|
5403
|
-
k.name,
|
|
5404
|
-
Math.max(50, z * 8 + 16)
|
|
5405
|
-
];
|
|
5406
|
-
})
|
|
5407
|
-
);
|
|
5408
|
-
break;
|
|
5409
|
-
}
|
|
5410
|
-
m(C);
|
|
5411
|
-
}, [s, r, i]), oe(() => {
|
|
5412
5437
|
if (u != null && u.length && r.rows) {
|
|
5413
|
-
const { flatRows:
|
|
5438
|
+
const { flatRows: $ } = Ss(
|
|
5414
5439
|
r.rows,
|
|
5415
5440
|
u,
|
|
5416
5441
|
e,
|
|
5417
5442
|
f
|
|
5418
5443
|
);
|
|
5419
|
-
o({ ...r, rows:
|
|
5444
|
+
o({ ...r, rows: $ });
|
|
5420
5445
|
} else
|
|
5421
5446
|
o(r);
|
|
5422
5447
|
}, [r, u, f, e]);
|
|
5423
|
-
const
|
|
5424
|
-
c(
|
|
5425
|
-
},
|
|
5426
|
-
|
|
5427
|
-
const
|
|
5428
|
-
if (!
|
|
5448
|
+
const g = ($) => {
|
|
5449
|
+
c(bs($, u));
|
|
5450
|
+
}, b = ($) => {
|
|
5451
|
+
$.preventDefault();
|
|
5452
|
+
const A = $.dataTransfer.getData("text/plain");
|
|
5453
|
+
if (!A || u.some((M) => M.column === A))
|
|
5429
5454
|
return;
|
|
5430
|
-
const
|
|
5431
|
-
c(
|
|
5432
|
-
},
|
|
5433
|
-
|
|
5434
|
-
}, { virtualItems:
|
|
5435
|
-
items: (i == null ? void 0 : i.rows)
|
|
5455
|
+
const j = [...u, { column: A, visible: !0 }];
|
|
5456
|
+
c(j);
|
|
5457
|
+
}, w = ($) => {
|
|
5458
|
+
$.preventDefault();
|
|
5459
|
+
}, { virtualItems: E, containerProps: O, innerProps: S } = Er({
|
|
5460
|
+
items: (i == null ? void 0 : i.rows) ?? [],
|
|
5436
5461
|
itemHeight: e,
|
|
5437
5462
|
containerHeight: t,
|
|
5438
5463
|
overscan: 5
|
|
5439
|
-
}),
|
|
5440
|
-
const
|
|
5441
|
-
const
|
|
5442
|
-
m((
|
|
5443
|
-
...
|
|
5444
|
-
[
|
|
5464
|
+
}), x = ($, A) => {
|
|
5465
|
+
const I = $.clientX, j = p[A], M = (B) => {
|
|
5466
|
+
const Z = B.clientX - I, q = Math.max(50, j + Z);
|
|
5467
|
+
m((K) => ({
|
|
5468
|
+
...K,
|
|
5469
|
+
[A]: q
|
|
5445
5470
|
}));
|
|
5446
|
-
},
|
|
5447
|
-
window.removeEventListener("mousemove",
|
|
5471
|
+
}, U = () => {
|
|
5472
|
+
window.removeEventListener("mousemove", M), window.removeEventListener("mouseup", U);
|
|
5448
5473
|
};
|
|
5449
|
-
window.addEventListener("mousemove",
|
|
5450
|
-
},
|
|
5451
|
-
smpTable: `${
|
|
5452
|
-
headerCell: `${
|
|
5453
|
-
resizer: `${
|
|
5474
|
+
window.addEventListener("mousemove", M), window.addEventListener("mouseup", U);
|
|
5475
|
+
}, P = {
|
|
5476
|
+
smpTable: `${ze["smp-table"]}`,
|
|
5477
|
+
headerCell: `${ze["smp-headerCell"]}`,
|
|
5478
|
+
resizer: `${ze["smp-resizer"]}`
|
|
5454
5479
|
};
|
|
5455
|
-
return i && /* @__PURE__ */
|
|
5480
|
+
return i && /* @__PURE__ */ y.jsx(
|
|
5456
5481
|
"div",
|
|
5457
5482
|
{
|
|
5458
|
-
className:
|
|
5459
|
-
...
|
|
5460
|
-
ref:
|
|
5461
|
-
children: /* @__PURE__ */
|
|
5462
|
-
/* @__PURE__ */
|
|
5463
|
-
(n || a) && /* @__PURE__ */
|
|
5464
|
-
|
|
5483
|
+
className: P.smpTable,
|
|
5484
|
+
...O,
|
|
5485
|
+
ref: d,
|
|
5486
|
+
children: /* @__PURE__ */ y.jsxs("table", { children: [
|
|
5487
|
+
/* @__PURE__ */ y.jsxs("thead", { children: [
|
|
5488
|
+
(n || a) && /* @__PURE__ */ y.jsx(
|
|
5489
|
+
ws,
|
|
5465
5490
|
{
|
|
5466
5491
|
groups: u,
|
|
5467
|
-
onChange:
|
|
5468
|
-
onDrop:
|
|
5469
|
-
onDragOver:
|
|
5492
|
+
onChange: g,
|
|
5493
|
+
onDrop: b,
|
|
5494
|
+
onDragOver: w
|
|
5470
5495
|
}
|
|
5471
5496
|
),
|
|
5472
|
-
/* @__PURE__ */
|
|
5473
|
-
(
|
|
5497
|
+
/* @__PURE__ */ y.jsx("tr", { children: i.columns && ((_ = i.columns) == null ? void 0 : _.map(
|
|
5498
|
+
($) => $.visible && /* @__PURE__ */ y.jsxs(
|
|
5474
5499
|
"th",
|
|
5475
5500
|
{
|
|
5476
|
-
className:
|
|
5501
|
+
className: P.headerCell,
|
|
5477
5502
|
draggable: !0,
|
|
5478
|
-
onDragStart: (
|
|
5479
|
-
|
|
5503
|
+
onDragStart: (A) => {
|
|
5504
|
+
A.dataTransfer.setData("text/plain", $.name);
|
|
5480
5505
|
},
|
|
5481
5506
|
style: {
|
|
5482
|
-
width:
|
|
5483
|
-
minWidth:
|
|
5484
|
-
maxWidth:
|
|
5507
|
+
width: p[$.name],
|
|
5508
|
+
minWidth: p[$.name],
|
|
5509
|
+
maxWidth: p[$.name]
|
|
5485
5510
|
},
|
|
5486
5511
|
children: [
|
|
5487
|
-
/* @__PURE__ */
|
|
5512
|
+
/* @__PURE__ */ y.jsx(
|
|
5488
5513
|
Ie,
|
|
5489
5514
|
{
|
|
5490
5515
|
variant: "title",
|
|
5491
|
-
bindValue:
|
|
5516
|
+
bindValue: $.title
|
|
5492
5517
|
}
|
|
5493
5518
|
),
|
|
5494
|
-
/* @__PURE__ */
|
|
5519
|
+
/* @__PURE__ */ y.jsx(
|
|
5495
5520
|
"div",
|
|
5496
5521
|
{
|
|
5497
|
-
className:
|
|
5498
|
-
onMouseDown: (
|
|
5522
|
+
className: P.resizer,
|
|
5523
|
+
onMouseDown: (A) => x(A, $.name),
|
|
5499
5524
|
role: "region"
|
|
5500
5525
|
}
|
|
5501
5526
|
)
|
|
5502
5527
|
]
|
|
5503
5528
|
},
|
|
5504
|
-
|
|
5529
|
+
$.name
|
|
5505
5530
|
)
|
|
5506
5531
|
)) })
|
|
5507
5532
|
] }),
|
|
5508
|
-
/* @__PURE__ */
|
|
5509
|
-
|
|
5510
|
-
|
|
5533
|
+
/* @__PURE__ */ y.jsx("tbody", { ...S, children: E.map(({ item: $, index: A, offsetTop: I }) => {
|
|
5534
|
+
const j = $.rowId || $.value || `${$.isGroup ? "group" : "row"}-${A}`;
|
|
5535
|
+
return $.isGroup ? /* @__PURE__ */ y.jsx(
|
|
5536
|
+
vs,
|
|
5511
5537
|
{
|
|
5512
|
-
label:
|
|
5538
|
+
label: $.value || "",
|
|
5513
5539
|
rowHeight: e,
|
|
5514
|
-
offsetTop:
|
|
5515
|
-
level:
|
|
5540
|
+
offsetTop: I,
|
|
5541
|
+
level: $.level,
|
|
5516
5542
|
onClick: () => {
|
|
5517
|
-
const
|
|
5518
|
-
|
|
5543
|
+
const M = $.rowId;
|
|
5544
|
+
M && l((U) => xs(U, M));
|
|
5519
5545
|
},
|
|
5520
|
-
isExpanded:
|
|
5546
|
+
isExpanded: $.isExpanded
|
|
5521
5547
|
},
|
|
5522
|
-
|
|
5523
|
-
) : /* @__PURE__ */
|
|
5548
|
+
`group-${j}`
|
|
5549
|
+
) : /* @__PURE__ */ y.jsx(
|
|
5524
5550
|
Cr,
|
|
5525
5551
|
{
|
|
5526
|
-
row:
|
|
5527
|
-
columnWidths:
|
|
5552
|
+
row: $,
|
|
5553
|
+
columnWidths: p,
|
|
5528
5554
|
rowHeight: e,
|
|
5529
|
-
offsetTop:
|
|
5555
|
+
offsetTop: I,
|
|
5530
5556
|
isGroup: !1
|
|
5531
5557
|
},
|
|
5532
|
-
|
|
5533
|
-
)
|
|
5534
|
-
) }),
|
|
5535
|
-
/* @__PURE__ */
|
|
5558
|
+
`row-${j}`
|
|
5559
|
+
);
|
|
5560
|
+
}) }),
|
|
5561
|
+
/* @__PURE__ */ y.jsx(Es, { columns: i.columns, columnWidths: p })
|
|
5536
5562
|
] })
|
|
5537
5563
|
}
|
|
5538
5564
|
);
|
|
5539
|
-
},
|
|
5565
|
+
}, Is = ({
|
|
5540
5566
|
data: r,
|
|
5541
5567
|
Type: e,
|
|
5542
5568
|
ShowSubmit: t = !1,
|
|
@@ -5548,7 +5574,7 @@ const Es = ({
|
|
|
5548
5574
|
onClick: u,
|
|
5549
5575
|
onOptionsRequest: c
|
|
5550
5576
|
}) => {
|
|
5551
|
-
const [f, l] =
|
|
5577
|
+
const [f, l] = J();
|
|
5552
5578
|
oe(() => {
|
|
5553
5579
|
l(() => {
|
|
5554
5580
|
if (!r)
|
|
@@ -5557,14 +5583,14 @@ const Es = ({
|
|
|
5557
5583
|
return e && (g.shape = e), g.shape == null && (g.shape = ne.TEXT_FIELD), s && (g.obj = Yr(s)), g;
|
|
5558
5584
|
});
|
|
5559
5585
|
}, [r, s, e]);
|
|
5560
|
-
const
|
|
5561
|
-
container: `smp-field-container ${
|
|
5586
|
+
const p = {
|
|
5587
|
+
container: `smp-field-container ${ue(t) ? `smp-field-position-${n}` : ""}`
|
|
5562
5588
|
}, m = () => {
|
|
5563
|
-
|
|
5589
|
+
ue(t) || o == null || o(f);
|
|
5564
5590
|
};
|
|
5565
5591
|
if (f)
|
|
5566
|
-
return /* @__PURE__ */
|
|
5567
|
-
/* @__PURE__ */
|
|
5592
|
+
return /* @__PURE__ */ y.jsxs("div", { className: p.container, children: [
|
|
5593
|
+
/* @__PURE__ */ y.jsx(
|
|
5568
5594
|
"div",
|
|
5569
5595
|
{
|
|
5570
5596
|
style: {
|
|
@@ -5573,7 +5599,7 @@ const Es = ({
|
|
|
5573
5599
|
gap: "8px",
|
|
5574
5600
|
font: "var(--smp-fontLabel-base)"
|
|
5575
5601
|
},
|
|
5576
|
-
children: /* @__PURE__ */
|
|
5602
|
+
children: /* @__PURE__ */ y.jsx(
|
|
5577
5603
|
Dt,
|
|
5578
5604
|
{
|
|
5579
5605
|
...f,
|
|
@@ -5587,8 +5613,8 @@ const Es = ({
|
|
|
5587
5613
|
)
|
|
5588
5614
|
}
|
|
5589
5615
|
),
|
|
5590
|
-
|
|
5591
|
-
/* @__PURE__ */
|
|
5616
|
+
ue(t) && //TODO: translation
|
|
5617
|
+
/* @__PURE__ */ y.jsx(
|
|
5592
5618
|
_e,
|
|
5593
5619
|
{
|
|
5594
5620
|
optionalDisplayValue: "Confirm",
|
|
@@ -5597,25 +5623,25 @@ const Es = ({
|
|
|
5597
5623
|
}
|
|
5598
5624
|
)
|
|
5599
5625
|
] });
|
|
5600
|
-
},
|
|
5626
|
+
}, Os = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", Rs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", js = (r) => Os(r) ? r.children ? r.children.map(
|
|
5601
5627
|
(e) => ({
|
|
5602
5628
|
id: e.obj.k,
|
|
5603
5629
|
label: e.value ?? ""
|
|
5604
5630
|
})
|
|
5605
|
-
) : [] :
|
|
5631
|
+
) : [] : Rs(r) ? r.rows.map((e) => {
|
|
5606
5632
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
5607
5633
|
return {
|
|
5608
5634
|
id: t[n].obj.k,
|
|
5609
5635
|
label: t[s].value || t[s].obj.k
|
|
5610
5636
|
};
|
|
5611
|
-
}) : [],
|
|
5637
|
+
}) : [], Ns = ({
|
|
5612
5638
|
data: r,
|
|
5613
5639
|
readOnly: e = !1,
|
|
5614
5640
|
hiddenSubmitButton: t = !1,
|
|
5615
5641
|
optionsHandler: n,
|
|
5616
5642
|
onSubmit: s
|
|
5617
5643
|
}) => {
|
|
5618
|
-
const [a, i] =
|
|
5644
|
+
const [a, i] = J({});
|
|
5619
5645
|
oe(() => {
|
|
5620
5646
|
i(u(r));
|
|
5621
5647
|
}, [r]);
|
|
@@ -5625,8 +5651,8 @@ const Es = ({
|
|
|
5625
5651
|
value: f
|
|
5626
5652
|
});
|
|
5627
5653
|
}, u = (f) => {
|
|
5628
|
-
var
|
|
5629
|
-
if (!((
|
|
5654
|
+
var d, p, m;
|
|
5655
|
+
if (!((d = f.rows) != null && d.length) || !((p = f.columns) != null && p.length))
|
|
5630
5656
|
return {};
|
|
5631
5657
|
const l = (m = f.rows) == null ? void 0 : m[0];
|
|
5632
5658
|
return f.columns.filter((g) => g.visible ?? !0).reduce((g, b) => {
|
|
@@ -5647,7 +5673,7 @@ const Es = ({
|
|
|
5647
5673
|
}));
|
|
5648
5674
|
}
|
|
5649
5675
|
};
|
|
5650
|
-
return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = async (E, O) =>
|
|
5676
|
+
return w.fun && (w.shape == ne.AUTOCOMPLETE || w.shape == ne.MULTI_AUTOCOMPLETE || w.shape == ne.COMBOBOX) && (w.onOptionsRequest = async (E, O) => js(
|
|
5651
5677
|
await n(E, O, r, b.name)
|
|
5652
5678
|
)), w.isEditable == null && (w.isEditable = !0), e && (w.isEditable = !1), w.isEditable && w.shape == null && (w.shape = ne.TEXT_FIELD), {
|
|
5653
5679
|
...g,
|
|
@@ -5666,7 +5692,7 @@ const Es = ({
|
|
|
5666
5692
|
]
|
|
5667
5693
|
}
|
|
5668
5694
|
});
|
|
5669
|
-
return a && /* @__PURE__ */
|
|
5695
|
+
return a && /* @__PURE__ */ y.jsxs(
|
|
5670
5696
|
"div",
|
|
5671
5697
|
{
|
|
5672
5698
|
"data-component": "input-panel",
|
|
@@ -5677,8 +5703,8 @@ const Es = ({
|
|
|
5677
5703
|
padding: "2rem"
|
|
5678
5704
|
},
|
|
5679
5705
|
children: [
|
|
5680
|
-
/* @__PURE__ */
|
|
5681
|
-
!t && /* @__PURE__ */
|
|
5706
|
+
/* @__PURE__ */ y.jsx(_t, { layout: r.rows[0].layout, cells: a }),
|
|
5707
|
+
!t && /* @__PURE__ */ y.jsx(
|
|
5682
5708
|
_e,
|
|
5683
5709
|
{
|
|
5684
5710
|
onClick: o,
|
|
@@ -5691,20 +5717,20 @@ const Es = ({
|
|
|
5691
5717
|
);
|
|
5692
5718
|
};
|
|
5693
5719
|
export {
|
|
5694
|
-
|
|
5720
|
+
Ps as AppBar,
|
|
5695
5721
|
Rr as Autocomplete,
|
|
5696
5722
|
_e as Button,
|
|
5697
5723
|
gn as ButtonList,
|
|
5698
5724
|
yn as Checkbox,
|
|
5699
5725
|
xn as Combobox,
|
|
5700
|
-
|
|
5701
|
-
|
|
5726
|
+
Ls as DashList,
|
|
5727
|
+
ks as DataTableComponent,
|
|
5702
5728
|
ts as DatePicker,
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5729
|
+
As as Drawer,
|
|
5730
|
+
Is as Field,
|
|
5731
|
+
ce as Icon,
|
|
5732
|
+
Ns as InputPanel,
|
|
5707
5733
|
ns as Password,
|
|
5708
5734
|
Ce as Textfield,
|
|
5709
|
-
|
|
5735
|
+
Cs as configurePaths
|
|
5710
5736
|
};
|