@sme.up/ketchup2 2.0.0-SNAPSHOT-20250701102314 → 2.0.0-SNAPSHOT-20250701135033
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/basic-components/cell/cell-types.d.ts +4 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +12 -12
- package/dist/ketchup2.es.js +1441 -1430
- package/dist/types/data-structures.d.ts +6 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -52,41 +52,41 @@ function Kr() {
|
|
|
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 === T ? null : h.displayName || h.name || null;
|
|
56
56
|
if (typeof h == "string") return h;
|
|
57
57
|
switch (h) {
|
|
58
58
|
case y:
|
|
59
59
|
return "Fragment";
|
|
60
|
-
case
|
|
60
|
+
case _:
|
|
61
61
|
return "Profiler";
|
|
62
|
-
case
|
|
62
|
+
case x:
|
|
63
63
|
return "StrictMode";
|
|
64
|
-
case
|
|
64
|
+
case b:
|
|
65
65
|
return "Suspense";
|
|
66
66
|
case j:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case O:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof h == "object")
|
|
72
72
|
switch (typeof h.tag == "number" && console.error(
|
|
73
73
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
74
74
|
), h.$$typeof) {
|
|
75
|
-
case
|
|
75
|
+
case p:
|
|
76
76
|
return "Portal";
|
|
77
|
-
case
|
|
77
|
+
case S:
|
|
78
78
|
return (h.displayName || "Context") + ".Provider";
|
|
79
|
-
case
|
|
79
|
+
case w:
|
|
80
80
|
return (h._context.displayName || "Context") + ".Consumer";
|
|
81
|
-
case
|
|
82
|
-
var
|
|
83
|
-
return h = h.displayName, h || (h =
|
|
81
|
+
case E:
|
|
82
|
+
var v = h.render;
|
|
83
|
+
return h = h.displayName, h || (h = v.displayName || v.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
84
|
case k:
|
|
85
|
-
return
|
|
86
|
-
case
|
|
87
|
-
|
|
85
|
+
return v = h.displayName || null, v !== null ? v : r(h.type) || "Memo";
|
|
86
|
+
case A:
|
|
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,71 +98,71 @@ function Kr() {
|
|
|
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
|
|
108
|
-
return
|
|
109
|
-
|
|
105
|
+
if (v) {
|
|
106
|
+
v = console;
|
|
107
|
+
var R = v.error, L = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return R.call(
|
|
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
|
+
L
|
|
112
112
|
), e(h);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function n(h) {
|
|
116
116
|
if (h === y) return "<>";
|
|
117
|
-
if (typeof h == "object" && h !== null && h.$$typeof ===
|
|
117
|
+
if (typeof h == "object" && h !== null && h.$$typeof === A)
|
|
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 = C.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 (D.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,
|
|
141
|
-
function
|
|
142
|
-
|
|
140
|
+
function o(h, v) {
|
|
141
|
+
function R() {
|
|
142
|
+
P || (P = !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
|
-
|
|
148
|
-
get:
|
|
147
|
+
R.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: R,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function l() {
|
|
153
153
|
var h = r(this.type);
|
|
154
|
-
return
|
|
154
|
+
return V[h] || (V[h] = !0, console.error(
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h,
|
|
159
|
-
return
|
|
158
|
+
function c(h, v, R, L, $, N, U, B) {
|
|
159
|
+
return R = N.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
|
-
key:
|
|
163
|
-
props:
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
162
|
+
key: v,
|
|
163
|
+
props: N,
|
|
164
|
+
_owner: $
|
|
165
|
+
}, (R !== void 0 ? R : null) !== null ? Object.defineProperty(h, "ref", {
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
get: l
|
|
168
168
|
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
@@ -187,52 +187,52 @@ function Kr() {
|
|
|
187
187
|
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h,
|
|
191
|
-
var W =
|
|
190
|
+
function f(h, v, R, L, $, N, U, B) {
|
|
191
|
+
var W = v.children;
|
|
192
192
|
if (W !== void 0)
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
u(W[
|
|
193
|
+
if (L)
|
|
194
|
+
if (I(W)) {
|
|
195
|
+
for (L = 0; L < W.length; L++)
|
|
196
|
+
u(W[L]);
|
|
197
197
|
Object.freeze && Object.freeze(W);
|
|
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 u(W);
|
|
203
|
-
if (
|
|
203
|
+
if (D.call(v, "key")) {
|
|
204
204
|
W = r(h);
|
|
205
|
-
var X = Object.keys(
|
|
205
|
+
var X = Object.keys(v).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
L = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[W + L] || (X = 0 < X.length ? "{" + X.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s {...props} />
|
|
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
|
+
L,
|
|
216
216
|
W,
|
|
217
217
|
X,
|
|
218
218
|
W
|
|
219
|
-
), Y[W +
|
|
219
|
+
), Y[W + L] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (W = null,
|
|
222
|
-
|
|
223
|
-
for (var K in
|
|
224
|
-
K !== "key" && (
|
|
225
|
-
} else
|
|
221
|
+
if (W = null, R !== void 0 && (t(R), W = "" + R), i(v) && (t(v.key), W = "" + v.key), "key" in v) {
|
|
222
|
+
R = {};
|
|
223
|
+
for (var K in v)
|
|
224
|
+
K !== "key" && (R[K] = v[K]);
|
|
225
|
+
} else R = v;
|
|
226
226
|
return W && o(
|
|
227
|
-
|
|
227
|
+
R,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
231
231
|
W,
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
N,
|
|
233
|
+
$,
|
|
234
234
|
s(),
|
|
235
|
-
|
|
235
|
+
R,
|
|
236
236
|
U,
|
|
237
237
|
B
|
|
238
238
|
);
|
|
@@ -240,41 +240,41 @@ React keys must be passed directly to JSX without using spread:
|
|
|
240
240
|
function u(h) {
|
|
241
241
|
typeof h == "object" && h !== null && h.$$typeof === m && h._store && (h._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), T = Symbol.for("react.client.reference"), C = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, I = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
d = {
|
|
247
247
|
"react-stack-bottom-frame": function(h) {
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
252
|
-
|
|
251
|
+
var P, V = {}, z = d["react-stack-bottom-frame"].bind(
|
|
252
|
+
d,
|
|
253
253
|
a
|
|
254
|
-
)(), J =
|
|
255
|
-
Ye.Fragment = y, Ye.jsx = function(h,
|
|
256
|
-
var
|
|
254
|
+
)(), J = F(n(a)), Y = {};
|
|
255
|
+
Ye.Fragment = y, Ye.jsx = function(h, v, R, L, $) {
|
|
256
|
+
var N = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
v,
|
|
260
|
+
R,
|
|
261
261
|
!1,
|
|
262
|
+
L,
|
|
262
263
|
$,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
P ? V(n(h)) : J
|
|
264
|
+
N ? Error("react-stack-top-frame") : z,
|
|
265
|
+
N ? F(n(h)) : J
|
|
266
266
|
);
|
|
267
|
-
}, Ye.jsxs = function(h,
|
|
268
|
-
var
|
|
267
|
+
}, Ye.jsxs = function(h, v, R, L, $) {
|
|
268
|
+
var N = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
|
-
|
|
272
|
-
|
|
271
|
+
v,
|
|
272
|
+
R,
|
|
273
273
|
!0,
|
|
274
|
+
L,
|
|
274
275
|
$,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
P ? V(n(h)) : J
|
|
276
|
+
N ? Error("react-stack-top-frame") : z,
|
|
277
|
+
N ? F(n(h)) : J
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ye;
|
|
@@ -386,53 +386,53 @@ function Zr() {
|
|
|
386
386
|
function i(u) {
|
|
387
387
|
if (!u || typeof u != "object")
|
|
388
388
|
throw new TypeError("argument obj is required");
|
|
389
|
-
var
|
|
389
|
+
var d = u.parameters, m = u.type;
|
|
390
390
|
if (!m || !a.test(m))
|
|
391
391
|
throw new TypeError("invalid type");
|
|
392
|
-
var
|
|
393
|
-
if (
|
|
394
|
-
for (var y,
|
|
395
|
-
if (y =
|
|
392
|
+
var p = m;
|
|
393
|
+
if (d && typeof d == "object")
|
|
394
|
+
for (var y, x = Object.keys(d).sort(), _ = 0; _ < x.length; _++) {
|
|
395
|
+
if (y = x[_], !t.test(y))
|
|
396
396
|
throw new TypeError("invalid parameter name");
|
|
397
|
-
|
|
397
|
+
p += "; " + y + "=" + c(d[y]);
|
|
398
398
|
}
|
|
399
|
-
return
|
|
399
|
+
return p;
|
|
400
400
|
}
|
|
401
401
|
function o(u) {
|
|
402
402
|
if (!u)
|
|
403
403
|
throw new TypeError("argument string is required");
|
|
404
|
-
var
|
|
405
|
-
if (typeof
|
|
404
|
+
var d = typeof u == "object" ? l(u) : u;
|
|
405
|
+
if (typeof d != "string")
|
|
406
406
|
throw new TypeError("argument string is required to be a string");
|
|
407
|
-
var m =
|
|
408
|
-
if (!a.test(
|
|
407
|
+
var m = d.indexOf(";"), p = m !== -1 ? d.slice(0, m).trim() : d.trim();
|
|
408
|
+
if (!a.test(p))
|
|
409
409
|
throw new TypeError("invalid media type");
|
|
410
|
-
var y = new f(
|
|
410
|
+
var y = new f(p.toLowerCase());
|
|
411
411
|
if (m !== -1) {
|
|
412
|
-
var
|
|
413
|
-
for (r.lastIndex = m;
|
|
414
|
-
if (
|
|
412
|
+
var x, _, w;
|
|
413
|
+
for (r.lastIndex = m; _ = r.exec(d); ) {
|
|
414
|
+
if (_.index !== m)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
416
|
-
m +=
|
|
416
|
+
m += _[0].length, x = _[1].toLowerCase(), w = _[2], w.charCodeAt(0) === 34 && (w = w.slice(1, -1), w.indexOf("\\") !== -1 && (w = w.replace(n, "$1"))), y.parameters[x] = w;
|
|
417
417
|
}
|
|
418
|
-
if (m !==
|
|
418
|
+
if (m !== d.length)
|
|
419
419
|
throw new TypeError("invalid parameter format");
|
|
420
420
|
}
|
|
421
421
|
return y;
|
|
422
422
|
}
|
|
423
423
|
function l(u) {
|
|
424
|
-
var
|
|
425
|
-
if (typeof u.getHeader == "function" ?
|
|
424
|
+
var d;
|
|
425
|
+
if (typeof u.getHeader == "function" ? d = u.getHeader("content-type") : typeof u.headers == "object" && (d = u.headers && u.headers["content-type"]), typeof d != "string")
|
|
426
426
|
throw new TypeError("content-type header is missing from object");
|
|
427
|
-
return
|
|
427
|
+
return d;
|
|
428
428
|
}
|
|
429
429
|
function c(u) {
|
|
430
|
-
var
|
|
431
|
-
if (t.test(
|
|
432
|
-
return
|
|
433
|
-
if (
|
|
430
|
+
var d = String(u);
|
|
431
|
+
if (t.test(d))
|
|
432
|
+
return d;
|
|
433
|
+
if (d.length > 0 && !e.test(d))
|
|
434
434
|
throw new TypeError("invalid parameter value");
|
|
435
|
-
return '"' +
|
|
435
|
+
return '"' + d.replace(s, "\\$1") + '"';
|
|
436
436
|
}
|
|
437
437
|
function f(u) {
|
|
438
438
|
this.parameters = /* @__PURE__ */ Object.create(null), this.type = u;
|
|
@@ -522,25 +522,25 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
522
522
|
ve.splice(ve.indexOf(e), 1), e = null, o(f);
|
|
523
523
|
return;
|
|
524
524
|
}
|
|
525
|
-
var
|
|
526
|
-
|
|
525
|
+
var d = e.getAttribute("id");
|
|
526
|
+
d && u.setAttribute("id", d);
|
|
527
527
|
var m = e.getAttribute("title");
|
|
528
528
|
m && u.setAttribute("title", m);
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
var p = e.getAttribute("width");
|
|
530
|
+
p && u.setAttribute("width", p);
|
|
531
531
|
var y = e.getAttribute("height");
|
|
532
532
|
y && u.setAttribute("height", y);
|
|
533
|
-
var
|
|
534
|
-
u.setAttribute("class",
|
|
535
|
-
var
|
|
536
|
-
|
|
537
|
-
var
|
|
533
|
+
var x = Array.from(new Set(bt(bt(bt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
534
|
+
u.setAttribute("class", x);
|
|
535
|
+
var _ = e.getAttribute("style");
|
|
536
|
+
_ && u.setAttribute("style", _), u.setAttribute("data-src", l);
|
|
537
|
+
var w = [].filter.call(e.attributes, function(J) {
|
|
538
538
|
return /^data-\w[\w-]*$/.test(J.name);
|
|
539
539
|
});
|
|
540
|
-
if (Array.prototype.forEach.call(
|
|
540
|
+
if (Array.prototype.forEach.call(w, function(J) {
|
|
541
541
|
J.name && J.value && u.setAttribute(J.name, J.value);
|
|
542
542
|
}), n) {
|
|
543
|
-
var
|
|
543
|
+
var S = {
|
|
544
544
|
clipPath: ["clip-path"],
|
|
545
545
|
"color-profile": ["color-profile"],
|
|
546
546
|
cursor: ["cursor"],
|
|
@@ -551,36 +551,36 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
551
551
|
path: [],
|
|
552
552
|
pattern: ["fill", "stroke"],
|
|
553
553
|
radialGradient: ["fill", "stroke"]
|
|
554
|
-
},
|
|
555
|
-
Object.keys(
|
|
556
|
-
|
|
557
|
-
for (var Y = function(
|
|
558
|
-
k =
|
|
559
|
-
var
|
|
554
|
+
}, E, b, j, k, A;
|
|
555
|
+
Object.keys(S).forEach(function(J) {
|
|
556
|
+
E = J, j = S[J], b = u.querySelectorAll(E + "[id]");
|
|
557
|
+
for (var Y = function(L, $) {
|
|
558
|
+
k = b[L].id, A = k + "-" + sn();
|
|
559
|
+
var N;
|
|
560
560
|
Array.prototype.forEach.call(j, function(H) {
|
|
561
|
-
|
|
562
|
-
for (var Z = 0, ne =
|
|
563
|
-
var se =
|
|
564
|
-
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) ||
|
|
561
|
+
N = u.querySelectorAll("[" + H + '*="' + k + '"]');
|
|
562
|
+
for (var Z = 0, ne = N.length; Z < ne; Z++) {
|
|
563
|
+
var se = N[Z].getAttribute(H);
|
|
564
|
+
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || N[Z].setAttribute(H, "url(#" + A + ")");
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
for (var U = u.querySelectorAll("[*|href]"), B = [], W = 0, X = U.length; W < X; W++) {
|
|
568
568
|
var K = U[W].getAttributeNS(vt, "href");
|
|
569
|
-
K && K.toString() === "#" +
|
|
569
|
+
K && K.toString() === "#" + b[L].id && B.push(U[W]);
|
|
570
570
|
}
|
|
571
571
|
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
572
|
-
B[ae].setAttributeNS(vt, "href", "#" +
|
|
573
|
-
|
|
574
|
-
}, h = 0,
|
|
572
|
+
B[ae].setAttributeNS(vt, "href", "#" + A);
|
|
573
|
+
b[L].id = A;
|
|
574
|
+
}, h = 0, v = b.length; h < v; h++)
|
|
575
575
|
Y(h);
|
|
576
576
|
});
|
|
577
577
|
}
|
|
578
578
|
u.removeAttribute("xmlns:a");
|
|
579
|
-
for (var
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
for (var
|
|
583
|
-
new Function(
|
|
579
|
+
for (var O = u.querySelectorAll("script"), T = [], C, D, I = 0, F = O.length; I < F; I++)
|
|
580
|
+
D = O[I].getAttribute("type"), (!D || D === "application/ecmascript" || D === "application/javascript" || D === "text/javascript") && (C = O[I].innerText || O[I].textContent, C && T.push(C), u.removeChild(O[I]));
|
|
581
|
+
if (T.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
582
|
+
for (var P = 0, V = T.length; P < V; P++)
|
|
583
|
+
new Function(T[P])(window);
|
|
584
584
|
Gt[l] = !0;
|
|
585
585
|
}
|
|
586
586
|
var z = u.querySelectorAll("style");
|
|
@@ -596,14 +596,14 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
596
596
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
597
597
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
598
598
|
} : i, l = n.beforeEach, c = l === void 0 ? function() {
|
|
599
|
-
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f,
|
|
599
|
+
} : l, f = n.cacheRequests, u = f === void 0 ? !0 : f, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, y = p === void 0 ? !1 : p, x = n.renumerateIRIElements, _ = x === void 0 ? !0 : x;
|
|
600
600
|
if (e && "length" in e)
|
|
601
|
-
for (var
|
|
602
|
-
Kt(e[
|
|
603
|
-
o(
|
|
601
|
+
for (var w = 0, S = 0, E = e.length; S < E; S++)
|
|
602
|
+
Kt(e[S], m, _, u, y, c, function(b, j) {
|
|
603
|
+
o(b, j), e && "length" in e && e.length === ++w && a(w);
|
|
604
604
|
});
|
|
605
|
-
else e ? Kt(e, m,
|
|
606
|
-
o(
|
|
605
|
+
else e ? Kt(e, m, _, u, y, c, function(b, j) {
|
|
606
|
+
o(b, j), a(1), e = null;
|
|
607
607
|
}) : a(0);
|
|
608
608
|
}, Xe = { exports: {} }, Ze = { exports: {} }, Q = {};
|
|
609
609
|
/** @license React v16.13.1
|
|
@@ -618,28 +618,28 @@ var qt;
|
|
|
618
618
|
function ln() {
|
|
619
619
|
if (qt) return Q;
|
|
620
620
|
qt = 1;
|
|
621
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113,
|
|
622
|
-
function
|
|
623
|
-
if (typeof
|
|
624
|
-
var j =
|
|
621
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, _ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
622
|
+
function S(b) {
|
|
623
|
+
if (typeof b == "object" && b !== null) {
|
|
624
|
+
var j = b.$$typeof;
|
|
625
625
|
switch (j) {
|
|
626
626
|
case e:
|
|
627
|
-
switch (
|
|
627
|
+
switch (b = b.type, b) {
|
|
628
628
|
case l:
|
|
629
629
|
case c:
|
|
630
630
|
case n:
|
|
631
631
|
case a:
|
|
632
632
|
case s:
|
|
633
633
|
case u:
|
|
634
|
-
return
|
|
634
|
+
return b;
|
|
635
635
|
default:
|
|
636
|
-
switch (
|
|
636
|
+
switch (b = b && b.$$typeof, b) {
|
|
637
637
|
case o:
|
|
638
638
|
case f:
|
|
639
|
-
case
|
|
639
|
+
case p:
|
|
640
640
|
case m:
|
|
641
641
|
case i:
|
|
642
|
-
return
|
|
642
|
+
return b;
|
|
643
643
|
default:
|
|
644
644
|
return j;
|
|
645
645
|
}
|
|
@@ -649,36 +649,36 @@ function ln() {
|
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
653
|
-
return
|
|
654
|
-
}
|
|
655
|
-
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy =
|
|
656
|
-
return
|
|
657
|
-
}, Q.isConcurrentMode =
|
|
658
|
-
return
|
|
659
|
-
}, Q.isContextProvider = function(
|
|
660
|
-
return
|
|
661
|
-
}, Q.isElement = function(
|
|
662
|
-
return typeof
|
|
663
|
-
}, Q.isForwardRef = function(
|
|
664
|
-
return
|
|
665
|
-
}, Q.isFragment = function(
|
|
666
|
-
return
|
|
667
|
-
}, Q.isLazy = function(
|
|
668
|
-
return
|
|
669
|
-
}, Q.isMemo = function(
|
|
670
|
-
return
|
|
671
|
-
}, Q.isPortal = function(
|
|
672
|
-
return
|
|
673
|
-
}, Q.isProfiler = function(
|
|
674
|
-
return
|
|
675
|
-
}, Q.isStrictMode = function(
|
|
676
|
-
return
|
|
677
|
-
}, Q.isSuspense = function(
|
|
678
|
-
return
|
|
679
|
-
}, Q.isValidElementType = function(
|
|
680
|
-
return typeof
|
|
681
|
-
}, Q.typeOf =
|
|
652
|
+
function E(b) {
|
|
653
|
+
return S(b) === c;
|
|
654
|
+
}
|
|
655
|
+
return Q.AsyncMode = l, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = f, Q.Fragment = n, Q.Lazy = p, Q.Memo = m, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = u, Q.isAsyncMode = function(b) {
|
|
656
|
+
return E(b) || S(b) === l;
|
|
657
|
+
}, Q.isConcurrentMode = E, Q.isContextConsumer = function(b) {
|
|
658
|
+
return S(b) === o;
|
|
659
|
+
}, Q.isContextProvider = function(b) {
|
|
660
|
+
return S(b) === i;
|
|
661
|
+
}, Q.isElement = function(b) {
|
|
662
|
+
return typeof b == "object" && b !== null && b.$$typeof === e;
|
|
663
|
+
}, Q.isForwardRef = function(b) {
|
|
664
|
+
return S(b) === f;
|
|
665
|
+
}, Q.isFragment = function(b) {
|
|
666
|
+
return S(b) === n;
|
|
667
|
+
}, Q.isLazy = function(b) {
|
|
668
|
+
return S(b) === p;
|
|
669
|
+
}, Q.isMemo = function(b) {
|
|
670
|
+
return S(b) === m;
|
|
671
|
+
}, Q.isPortal = function(b) {
|
|
672
|
+
return S(b) === t;
|
|
673
|
+
}, Q.isProfiler = function(b) {
|
|
674
|
+
return S(b) === a;
|
|
675
|
+
}, Q.isStrictMode = function(b) {
|
|
676
|
+
return S(b) === s;
|
|
677
|
+
}, Q.isSuspense = function(b) {
|
|
678
|
+
return S(b) === u;
|
|
679
|
+
}, Q.isValidElementType = function(b) {
|
|
680
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === d || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === m || b.$$typeof === i || b.$$typeof === o || b.$$typeof === f || b.$$typeof === x || b.$$typeof === _ || b.$$typeof === w || b.$$typeof === y);
|
|
681
|
+
}, Q.typeOf = S, Q;
|
|
682
682
|
}
|
|
683
683
|
var ee = {};
|
|
684
684
|
/** @license React v16.13.1
|
|
@@ -692,12 +692,12 @@ var ee = {};
|
|
|
692
692
|
var zt;
|
|
693
693
|
function cn() {
|
|
694
694
|
return zt || (zt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
695
|
-
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113,
|
|
696
|
-
function
|
|
695
|
+
var r = typeof Symbol == "function" && Symbol.for, e = r ? Symbol.for("react.element") : 60103, t = r ? Symbol.for("react.portal") : 60106, n = r ? Symbol.for("react.fragment") : 60107, s = r ? Symbol.for("react.strict_mode") : 60108, a = r ? Symbol.for("react.profiler") : 60114, i = r ? Symbol.for("react.provider") : 60109, o = r ? Symbol.for("react.context") : 60110, l = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, f = r ? Symbol.for("react.forward_ref") : 60112, u = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, m = r ? Symbol.for("react.memo") : 60115, p = r ? Symbol.for("react.lazy") : 60116, y = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, _ = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
696
|
+
function S(M) {
|
|
697
697
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
698
|
-
M === n || M === c || M === a || M === s || M === u || M ===
|
|
698
|
+
M === n || M === c || M === a || M === s || M === u || M === d || typeof M == "object" && M !== null && (M.$$typeof === p || M.$$typeof === m || M.$$typeof === i || M.$$typeof === o || M.$$typeof === f || M.$$typeof === x || M.$$typeof === _ || M.$$typeof === w || M.$$typeof === y);
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function E(M) {
|
|
701
701
|
if (typeof M == "object" && M !== null) {
|
|
702
702
|
var H = M.$$typeof;
|
|
703
703
|
switch (H) {
|
|
@@ -716,7 +716,7 @@ function cn() {
|
|
|
716
716
|
switch (ne) {
|
|
717
717
|
case o:
|
|
718
718
|
case f:
|
|
719
|
-
case
|
|
719
|
+
case p:
|
|
720
720
|
case m:
|
|
721
721
|
case i:
|
|
722
722
|
return ne;
|
|
@@ -729,47 +729,47 @@ function cn() {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
var
|
|
732
|
+
var b = l, j = c, k = o, A = i, O = e, T = f, C = n, D = p, I = m, F = t, P = a, V = s, z = u, J = !1;
|
|
733
733
|
function Y(M) {
|
|
734
|
-
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) ||
|
|
734
|
+
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || E(M) === l;
|
|
735
735
|
}
|
|
736
736
|
function h(M) {
|
|
737
|
-
return
|
|
737
|
+
return E(M) === c;
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
return
|
|
739
|
+
function v(M) {
|
|
740
|
+
return E(M) === o;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
return
|
|
742
|
+
function R(M) {
|
|
743
|
+
return E(M) === i;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function L(M) {
|
|
746
746
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
return
|
|
748
|
+
function $(M) {
|
|
749
|
+
return E(M) === f;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
return
|
|
751
|
+
function N(M) {
|
|
752
|
+
return E(M) === n;
|
|
753
753
|
}
|
|
754
754
|
function U(M) {
|
|
755
|
-
return
|
|
755
|
+
return E(M) === p;
|
|
756
756
|
}
|
|
757
757
|
function B(M) {
|
|
758
|
-
return
|
|
758
|
+
return E(M) === m;
|
|
759
759
|
}
|
|
760
760
|
function W(M) {
|
|
761
|
-
return
|
|
761
|
+
return E(M) === t;
|
|
762
762
|
}
|
|
763
763
|
function X(M) {
|
|
764
|
-
return
|
|
764
|
+
return E(M) === a;
|
|
765
765
|
}
|
|
766
766
|
function K(M) {
|
|
767
|
-
return
|
|
767
|
+
return E(M) === s;
|
|
768
768
|
}
|
|
769
769
|
function ae(M) {
|
|
770
|
-
return
|
|
770
|
+
return E(M) === u;
|
|
771
771
|
}
|
|
772
|
-
ee.AsyncMode =
|
|
772
|
+
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = A, ee.Element = O, ee.ForwardRef = T, ee.Fragment = C, ee.Lazy = D, ee.Memo = I, ee.Portal = F, ee.Profiler = P, ee.StrictMode = V, ee.Suspense = z, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = R, ee.isElement = L, ee.isForwardRef = $, ee.isFragment = N, ee.isLazy = U, ee.isMemo = B, ee.isPortal = W, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = S, ee.typeOf = E;
|
|
773
773
|
}()), ee;
|
|
774
774
|
}
|
|
775
775
|
var Jt;
|
|
@@ -820,8 +820,8 @@ function un() {
|
|
|
820
820
|
e.call(o, u) && (l[u] = o[u]);
|
|
821
821
|
if (r) {
|
|
822
822
|
c = r(o);
|
|
823
|
-
for (var
|
|
824
|
-
t.call(o, c[
|
|
823
|
+
for (var d = 0; d < c.length; d++)
|
|
824
|
+
t.call(o, c[d]) && (l[c[d]] = o[c[d]]);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
return l;
|
|
@@ -862,14 +862,14 @@ function fn() {
|
|
|
862
862
|
var u;
|
|
863
863
|
try {
|
|
864
864
|
if (typeof a[f] != "function") {
|
|
865
|
-
var
|
|
865
|
+
var d = Error(
|
|
866
866
|
(l || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
867
867
|
);
|
|
868
|
-
throw
|
|
868
|
+
throw d.name = "Invariant Violation", d;
|
|
869
869
|
}
|
|
870
870
|
u = a[f](i, f, l, o, null, e);
|
|
871
|
-
} catch (
|
|
872
|
-
u =
|
|
871
|
+
} catch (p) {
|
|
872
|
+
u = p;
|
|
873
873
|
}
|
|
874
874
|
if (u && !(u instanceof Error) && r(
|
|
875
875
|
(l || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -907,43 +907,43 @@ function dn() {
|
|
|
907
907
|
return Tt = function(o, l) {
|
|
908
908
|
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
909
909
|
function u(h) {
|
|
910
|
-
var
|
|
911
|
-
if (typeof
|
|
912
|
-
return
|
|
913
|
-
}
|
|
914
|
-
var
|
|
915
|
-
array:
|
|
916
|
-
bigint:
|
|
917
|
-
bool:
|
|
918
|
-
func:
|
|
919
|
-
number:
|
|
920
|
-
object:
|
|
921
|
-
string:
|
|
922
|
-
symbol:
|
|
923
|
-
any:
|
|
924
|
-
arrayOf:
|
|
925
|
-
element:
|
|
926
|
-
elementType:
|
|
910
|
+
var v = h && (c && h[c] || h[f]);
|
|
911
|
+
if (typeof v == "function")
|
|
912
|
+
return v;
|
|
913
|
+
}
|
|
914
|
+
var d = "<<anonymous>>", m = {
|
|
915
|
+
array: _("array"),
|
|
916
|
+
bigint: _("bigint"),
|
|
917
|
+
bool: _("boolean"),
|
|
918
|
+
func: _("function"),
|
|
919
|
+
number: _("number"),
|
|
920
|
+
object: _("object"),
|
|
921
|
+
string: _("string"),
|
|
922
|
+
symbol: _("symbol"),
|
|
923
|
+
any: w(),
|
|
924
|
+
arrayOf: S,
|
|
925
|
+
element: E(),
|
|
926
|
+
elementType: b(),
|
|
927
927
|
instanceOf: j,
|
|
928
|
-
node:
|
|
929
|
-
objectOf:
|
|
928
|
+
node: T(),
|
|
929
|
+
objectOf: A,
|
|
930
930
|
oneOf: k,
|
|
931
|
-
oneOfType:
|
|
932
|
-
shape:
|
|
933
|
-
exact:
|
|
931
|
+
oneOfType: O,
|
|
932
|
+
shape: D,
|
|
933
|
+
exact: I
|
|
934
934
|
};
|
|
935
|
-
function
|
|
936
|
-
return h ===
|
|
935
|
+
function p(h, v) {
|
|
936
|
+
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
937
937
|
}
|
|
938
|
-
function y(h,
|
|
939
|
-
this.message = h, this.data =
|
|
938
|
+
function y(h, v) {
|
|
939
|
+
this.message = h, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
|
|
940
940
|
}
|
|
941
941
|
y.prototype = Error.prototype;
|
|
942
|
-
function
|
|
942
|
+
function x(h) {
|
|
943
943
|
if (process.env.NODE_ENV !== "production")
|
|
944
|
-
var
|
|
945
|
-
function
|
|
946
|
-
if (W = W ||
|
|
944
|
+
var v = {}, R = 0;
|
|
945
|
+
function L(N, U, B, W, X, K, ae) {
|
|
946
|
+
if (W = W || d, K = K || B, ae !== t) {
|
|
947
947
|
if (l) {
|
|
948
948
|
var M = new Error(
|
|
949
949
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
@@ -951,131 +951,131 @@ function dn() {
|
|
|
951
951
|
throw M.name = "Invariant Violation", M;
|
|
952
952
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
953
953
|
var H = W + ":" + B;
|
|
954
|
-
!
|
|
955
|
-
|
|
954
|
+
!v[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
955
|
+
R < 3 && (a(
|
|
956
956
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + W + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
957
|
-
),
|
|
957
|
+
), v[H] = !0, R++);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
return U[B] == null ?
|
|
960
|
+
return U[B] == null ? N ? U[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + W + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + W + "`, but its value is `undefined`.")) : null : h(U, B, W, X, K);
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
return
|
|
962
|
+
var $ = L.bind(null, !1);
|
|
963
|
+
return $.isRequired = L.bind(null, !0), $;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
function
|
|
967
|
-
var W =
|
|
965
|
+
function _(h) {
|
|
966
|
+
function v(R, L, $, N, U, B) {
|
|
967
|
+
var W = R[L], X = V(W);
|
|
968
968
|
if (X !== h) {
|
|
969
969
|
var K = z(W);
|
|
970
970
|
return new y(
|
|
971
|
-
"Invalid " +
|
|
971
|
+
"Invalid " + N + " `" + U + "` of type " + ("`" + K + "` supplied to `" + $ + "`, expected ") + ("`" + h + "`."),
|
|
972
972
|
{ expectedType: h }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
975
975
|
return null;
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return x(v);
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
return
|
|
979
|
+
function w() {
|
|
980
|
+
return x(i);
|
|
981
981
|
}
|
|
982
|
-
function
|
|
983
|
-
function
|
|
982
|
+
function S(h) {
|
|
983
|
+
function v(R, L, $, N, U) {
|
|
984
984
|
if (typeof h != "function")
|
|
985
|
-
return new y("Property `" + U + "` of component `" +
|
|
986
|
-
var B =
|
|
985
|
+
return new y("Property `" + U + "` of component `" + $ + "` has invalid PropType notation inside arrayOf.");
|
|
986
|
+
var B = R[L];
|
|
987
987
|
if (!Array.isArray(B)) {
|
|
988
|
-
var W =
|
|
989
|
-
return new y("Invalid " +
|
|
988
|
+
var W = V(B);
|
|
989
|
+
return new y("Invalid " + N + " `" + U + "` of type " + ("`" + W + "` supplied to `" + $ + "`, expected an array."));
|
|
990
990
|
}
|
|
991
991
|
for (var X = 0; X < B.length; X++) {
|
|
992
|
-
var K = h(B, X,
|
|
992
|
+
var K = h(B, X, $, N, U + "[" + X + "]", t);
|
|
993
993
|
if (K instanceof Error)
|
|
994
994
|
return K;
|
|
995
995
|
}
|
|
996
996
|
return null;
|
|
997
997
|
}
|
|
998
|
-
return
|
|
998
|
+
return x(v);
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
function h(
|
|
1002
|
-
var U =
|
|
1000
|
+
function E() {
|
|
1001
|
+
function h(v, R, L, $, N) {
|
|
1002
|
+
var U = v[R];
|
|
1003
1003
|
if (!o(U)) {
|
|
1004
|
-
var B =
|
|
1005
|
-
return new y("Invalid " +
|
|
1004
|
+
var B = V(U);
|
|
1005
|
+
return new y("Invalid " + $ + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
|
-
return
|
|
1009
|
+
return x(h);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
function h(
|
|
1013
|
-
var U =
|
|
1011
|
+
function b() {
|
|
1012
|
+
function h(v, R, L, $, N) {
|
|
1013
|
+
var U = v[R];
|
|
1014
1014
|
if (!r.isValidElementType(U)) {
|
|
1015
|
-
var B =
|
|
1016
|
-
return new y("Invalid " +
|
|
1015
|
+
var B = V(U);
|
|
1016
|
+
return new y("Invalid " + $ + " `" + N + "` of type " + ("`" + B + "` supplied to `" + L + "`, expected a single ReactElement type."));
|
|
1017
1017
|
}
|
|
1018
1018
|
return null;
|
|
1019
1019
|
}
|
|
1020
|
-
return
|
|
1020
|
+
return x(h);
|
|
1021
1021
|
}
|
|
1022
1022
|
function j(h) {
|
|
1023
|
-
function
|
|
1024
|
-
if (!(
|
|
1025
|
-
var B = h.name ||
|
|
1026
|
-
return new y("Invalid " +
|
|
1023
|
+
function v(R, L, $, N, U) {
|
|
1024
|
+
if (!(R[L] instanceof h)) {
|
|
1025
|
+
var B = h.name || d, W = Y(R[L]);
|
|
1026
|
+
return new y("Invalid " + N + " `" + U + "` of type " + ("`" + W + "` supplied to `" + $ + "`, expected ") + ("instance of `" + B + "`."));
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
1030
|
-
return
|
|
1030
|
+
return x(v);
|
|
1031
1031
|
}
|
|
1032
1032
|
function k(h) {
|
|
1033
1033
|
if (!Array.isArray(h))
|
|
1034
1034
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1035
1035
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1036
1036
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1037
|
-
function
|
|
1038
|
-
for (var B =
|
|
1039
|
-
if (
|
|
1037
|
+
function v(R, L, $, N, U) {
|
|
1038
|
+
for (var B = R[L], W = 0; W < h.length; W++)
|
|
1039
|
+
if (p(B, h[W]))
|
|
1040
1040
|
return null;
|
|
1041
1041
|
var X = JSON.stringify(h, function(ae, M) {
|
|
1042
1042
|
var H = z(M);
|
|
1043
1043
|
return H === "symbol" ? String(M) : M;
|
|
1044
1044
|
});
|
|
1045
|
-
return new y("Invalid " +
|
|
1045
|
+
return new y("Invalid " + N + " `" + U + "` of value `" + String(B) + "` " + ("supplied to `" + $ + "`, expected one of " + X + "."));
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1047
|
+
return x(v);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
function
|
|
1049
|
+
function A(h) {
|
|
1050
|
+
function v(R, L, $, N, U) {
|
|
1051
1051
|
if (typeof h != "function")
|
|
1052
|
-
return new y("Property `" + U + "` of component `" +
|
|
1053
|
-
var B =
|
|
1052
|
+
return new y("Property `" + U + "` of component `" + $ + "` has invalid PropType notation inside objectOf.");
|
|
1053
|
+
var B = R[L], W = V(B);
|
|
1054
1054
|
if (W !== "object")
|
|
1055
|
-
return new y("Invalid " +
|
|
1055
|
+
return new y("Invalid " + N + " `" + U + "` of type " + ("`" + W + "` supplied to `" + $ + "`, expected an object."));
|
|
1056
1056
|
for (var X in B)
|
|
1057
1057
|
if (n(B, X)) {
|
|
1058
|
-
var K = h(B, X,
|
|
1058
|
+
var K = h(B, X, $, N, U + "." + X, t);
|
|
1059
1059
|
if (K instanceof Error)
|
|
1060
1060
|
return K;
|
|
1061
1061
|
}
|
|
1062
1062
|
return null;
|
|
1063
1063
|
}
|
|
1064
|
-
return
|
|
1064
|
+
return x(v);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function O(h) {
|
|
1067
1067
|
if (!Array.isArray(h))
|
|
1068
1068
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1069
|
-
for (var
|
|
1070
|
-
var
|
|
1071
|
-
if (typeof
|
|
1069
|
+
for (var v = 0; v < h.length; v++) {
|
|
1070
|
+
var R = h[v];
|
|
1071
|
+
if (typeof R != "function")
|
|
1072
1072
|
return a(
|
|
1073
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(
|
|
1073
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + J(R) + " at index " + v + "."
|
|
1074
1074
|
), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function L($, N, U, B, W) {
|
|
1077
1077
|
for (var X = [], K = 0; K < h.length; K++) {
|
|
1078
|
-
var ae = h[K], M = ae(
|
|
1078
|
+
var ae = h[K], M = ae($, N, U, B, W, t);
|
|
1079
1079
|
if (M == null)
|
|
1080
1080
|
return null;
|
|
1081
1081
|
M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
|
|
@@ -1083,60 +1083,60 @@ function dn() {
|
|
|
1083
1083
|
var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1084
1084
|
return new y("Invalid " + B + " `" + W + "` supplied to " + ("`" + U + "`" + H + "."));
|
|
1085
1085
|
}
|
|
1086
|
-
return
|
|
1086
|
+
return x(L);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
function h(
|
|
1090
|
-
return
|
|
1088
|
+
function T() {
|
|
1089
|
+
function h(v, R, L, $, N) {
|
|
1090
|
+
return F(v[R]) ? null : new y("Invalid " + $ + " `" + N + "` supplied to " + ("`" + L + "`, expected a ReactNode."));
|
|
1091
1091
|
}
|
|
1092
|
-
return
|
|
1092
|
+
return x(h);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function C(h, v, R, L, $) {
|
|
1095
1095
|
return new y(
|
|
1096
|
-
(h || "React class") + ": " +
|
|
1096
|
+
(h || "React class") + ": " + v + " type `" + R + "." + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + $ + "`."
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1100
|
-
function
|
|
1101
|
-
var B =
|
|
1099
|
+
function D(h) {
|
|
1100
|
+
function v(R, L, $, N, U) {
|
|
1101
|
+
var B = R[L], W = V(B);
|
|
1102
1102
|
if (W !== "object")
|
|
1103
|
-
return new y("Invalid " +
|
|
1103
|
+
return new y("Invalid " + N + " `" + U + "` of type `" + W + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1104
1104
|
for (var X in h) {
|
|
1105
1105
|
var K = h[X];
|
|
1106
1106
|
if (typeof K != "function")
|
|
1107
|
-
return
|
|
1108
|
-
var ae = K(B, X,
|
|
1107
|
+
return C($, N, U, X, z(K));
|
|
1108
|
+
var ae = K(B, X, $, N, U + "." + X, t);
|
|
1109
1109
|
if (ae)
|
|
1110
1110
|
return ae;
|
|
1111
1111
|
}
|
|
1112
1112
|
return null;
|
|
1113
1113
|
}
|
|
1114
|
-
return
|
|
1114
|
+
return x(v);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
function
|
|
1118
|
-
var B =
|
|
1116
|
+
function I(h) {
|
|
1117
|
+
function v(R, L, $, N, U) {
|
|
1118
|
+
var B = R[L], W = V(B);
|
|
1119
1119
|
if (W !== "object")
|
|
1120
|
-
return new y("Invalid " +
|
|
1121
|
-
var X = e({},
|
|
1120
|
+
return new y("Invalid " + N + " `" + U + "` of type `" + W + "` " + ("supplied to `" + $ + "`, expected `object`."));
|
|
1121
|
+
var X = e({}, R[L], h);
|
|
1122
1122
|
for (var K in X) {
|
|
1123
1123
|
var ae = h[K];
|
|
1124
1124
|
if (n(h, K) && typeof ae != "function")
|
|
1125
|
-
return
|
|
1125
|
+
return C($, N, U, K, z(ae));
|
|
1126
1126
|
if (!ae)
|
|
1127
1127
|
return new y(
|
|
1128
|
-
"Invalid " +
|
|
1128
|
+
"Invalid " + N + " `" + U + "` key `" + K + "` supplied to `" + $ + "`.\nBad object: " + JSON.stringify(R[L], null, " ") + `
|
|
1129
1129
|
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1130
1130
|
);
|
|
1131
|
-
var M = ae(B, K,
|
|
1131
|
+
var M = ae(B, K, $, N, U + "." + K, t);
|
|
1132
1132
|
if (M)
|
|
1133
1133
|
return M;
|
|
1134
1134
|
}
|
|
1135
1135
|
return null;
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return x(v);
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1139
|
+
function F(h) {
|
|
1140
1140
|
switch (typeof h) {
|
|
1141
1141
|
case "number":
|
|
1142
1142
|
case "string":
|
|
@@ -1146,20 +1146,20 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1146
1146
|
return !h;
|
|
1147
1147
|
case "object":
|
|
1148
1148
|
if (Array.isArray(h))
|
|
1149
|
-
return h.every(
|
|
1149
|
+
return h.every(F);
|
|
1150
1150
|
if (h === null || o(h))
|
|
1151
1151
|
return !0;
|
|
1152
|
-
var
|
|
1153
|
-
if (
|
|
1154
|
-
var
|
|
1155
|
-
if (
|
|
1156
|
-
for (; !(
|
|
1157
|
-
if (!
|
|
1152
|
+
var v = u(h);
|
|
1153
|
+
if (v) {
|
|
1154
|
+
var R = v.call(h), L;
|
|
1155
|
+
if (v !== h.entries) {
|
|
1156
|
+
for (; !(L = R.next()).done; )
|
|
1157
|
+
if (!F(L.value))
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
} else
|
|
1160
|
-
for (; !(
|
|
1161
|
-
var
|
|
1162
|
-
if (
|
|
1160
|
+
for (; !(L = R.next()).done; ) {
|
|
1161
|
+
var $ = L.value;
|
|
1162
|
+
if ($ && !F($[1]))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
} else
|
|
@@ -1169,41 +1169,41 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1169
1169
|
return !1;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return h === "symbol" ? !0 :
|
|
1172
|
+
function P(h, v) {
|
|
1173
|
+
return h === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
var
|
|
1177
|
-
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" :
|
|
1175
|
+
function V(h) {
|
|
1176
|
+
var v = typeof h;
|
|
1177
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : P(v, h) ? "symbol" : v;
|
|
1178
1178
|
}
|
|
1179
1179
|
function z(h) {
|
|
1180
1180
|
if (typeof h > "u" || h === null)
|
|
1181
1181
|
return "" + h;
|
|
1182
|
-
var
|
|
1183
|
-
if (
|
|
1182
|
+
var v = V(h);
|
|
1183
|
+
if (v === "object") {
|
|
1184
1184
|
if (h instanceof Date)
|
|
1185
1185
|
return "date";
|
|
1186
1186
|
if (h instanceof RegExp)
|
|
1187
1187
|
return "regexp";
|
|
1188
1188
|
}
|
|
1189
|
-
return
|
|
1189
|
+
return v;
|
|
1190
1190
|
}
|
|
1191
1191
|
function J(h) {
|
|
1192
|
-
var
|
|
1193
|
-
switch (
|
|
1192
|
+
var v = z(h);
|
|
1193
|
+
switch (v) {
|
|
1194
1194
|
case "array":
|
|
1195
1195
|
case "object":
|
|
1196
|
-
return "an " +
|
|
1196
|
+
return "an " + v;
|
|
1197
1197
|
case "boolean":
|
|
1198
1198
|
case "date":
|
|
1199
1199
|
case "regexp":
|
|
1200
|
-
return "a " +
|
|
1200
|
+
return "a " + v;
|
|
1201
1201
|
default:
|
|
1202
|
-
return
|
|
1202
|
+
return v;
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
function Y(h) {
|
|
1206
|
-
return !h.constructor || !h.constructor.name ?
|
|
1206
|
+
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1207
1207
|
}
|
|
1208
1208
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
1209
1209
|
}, Tt;
|
|
@@ -1220,10 +1220,10 @@ function pn() {
|
|
|
1220
1220
|
return t.resetWarningCache = e, Ot = function() {
|
|
1221
1221
|
function n(i, o, l, c, f, u) {
|
|
1222
1222
|
if (u !== r) {
|
|
1223
|
-
var
|
|
1223
|
+
var d = new Error(
|
|
1224
1224
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1225
1225
|
);
|
|
1226
|
-
throw
|
|
1226
|
+
throw d.name = "Invariant Violation", d;
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
n.isRequired = n;
|
|
@@ -1293,9 +1293,9 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1293
1293
|
return t.renderSVG = function() {
|
|
1294
1294
|
var s = this;
|
|
1295
1295
|
if (this.reactWrapper instanceof mn(this.reactWrapper).Node) {
|
|
1296
|
-
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title,
|
|
1297
|
-
|
|
1298
|
-
var
|
|
1296
|
+
var a = this.props, i = a.desc, o = a.evalScripts, l = a.httpRequestWithCredentials, c = a.renumerateIRIElements, f = a.src, u = a.title, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, y = this.props.afterInjection, x = this.props.wrapper, _, w;
|
|
1297
|
+
x === "svg" ? (_ = document.createElementNS(Qe, x), _.setAttribute("xmlns", Qe), _.setAttribute("xmlns:xlink", sr), w = document.createElementNS(Qe, x)) : (_ = document.createElement(x), w = document.createElement(x)), _.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(_);
|
|
1298
|
+
var S = function(k) {
|
|
1299
1299
|
if (s.removeSVG(), !s._isMounted) {
|
|
1300
1300
|
m(k);
|
|
1301
1301
|
return;
|
|
@@ -1308,9 +1308,9 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1308
1308
|
}, function() {
|
|
1309
1309
|
m(k);
|
|
1310
1310
|
});
|
|
1311
|
-
},
|
|
1311
|
+
}, E = function(k, A) {
|
|
1312
1312
|
if (k) {
|
|
1313
|
-
|
|
1313
|
+
S(k);
|
|
1314
1314
|
return;
|
|
1315
1315
|
}
|
|
1316
1316
|
s._isMounted && s.setState(function() {
|
|
@@ -1319,34 +1319,34 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1319
1319
|
};
|
|
1320
1320
|
}, function() {
|
|
1321
1321
|
try {
|
|
1322
|
-
y(
|
|
1323
|
-
} catch (
|
|
1324
|
-
|
|
1322
|
+
y(A);
|
|
1323
|
+
} catch (O) {
|
|
1324
|
+
S(O);
|
|
1325
1325
|
}
|
|
1326
1326
|
});
|
|
1327
|
-
},
|
|
1327
|
+
}, b = function(k) {
|
|
1328
1328
|
if (k.setAttribute("role", "img"), i) {
|
|
1329
|
-
var
|
|
1330
|
-
|
|
1331
|
-
var
|
|
1332
|
-
|
|
1329
|
+
var A = k.querySelector(":scope > desc");
|
|
1330
|
+
A && k.removeChild(A);
|
|
1331
|
+
var O = document.createElement("desc");
|
|
1332
|
+
O.innerHTML = i, k.prepend(O);
|
|
1333
1333
|
}
|
|
1334
1334
|
if (u) {
|
|
1335
|
-
var
|
|
1336
|
-
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1335
|
+
var T = k.querySelector(":scope > title");
|
|
1336
|
+
T && k.removeChild(T);
|
|
1337
|
+
var C = document.createElement("title");
|
|
1338
|
+
C.innerHTML = u, k.prepend(C);
|
|
1339
1339
|
}
|
|
1340
1340
|
try {
|
|
1341
|
-
|
|
1342
|
-
} catch (
|
|
1343
|
-
|
|
1341
|
+
p(k);
|
|
1342
|
+
} catch (D) {
|
|
1343
|
+
S(D);
|
|
1344
1344
|
}
|
|
1345
1345
|
};
|
|
1346
|
-
on(
|
|
1347
|
-
afterEach:
|
|
1348
|
-
beforeEach:
|
|
1349
|
-
cacheRequests:
|
|
1346
|
+
on(w, {
|
|
1347
|
+
afterEach: E,
|
|
1348
|
+
beforeEach: b,
|
|
1349
|
+
cacheRequests: d,
|
|
1350
1350
|
evalScripts: o,
|
|
1351
1351
|
httpRequestWithCredentials: l,
|
|
1352
1352
|
renumerateIRIElements: c
|
|
@@ -1434,23 +1434,23 @@ const ra = (r) => {
|
|
|
1434
1434
|
isInteractable: c = !1,
|
|
1435
1435
|
spin: f = !1,
|
|
1436
1436
|
title: u,
|
|
1437
|
-
tabIndex:
|
|
1437
|
+
tabIndex: d
|
|
1438
1438
|
}) => {
|
|
1439
|
-
const [m,
|
|
1439
|
+
const [m, p] = G(r), y = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), x = y && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), _ = ar(`assets/svg/${r}.svg`), w = ar(
|
|
1440
1440
|
`assets/svg/${n}.svg`
|
|
1441
|
-
),
|
|
1441
|
+
), S = {
|
|
1442
1442
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1443
1443
|
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${f ? "smp-icon-spin" : ""}`
|
|
1444
|
-
},
|
|
1444
|
+
}, E = () => {
|
|
1445
1445
|
!a && c && l && l();
|
|
1446
|
-
},
|
|
1447
|
-
!a && c && (j.key === "Enter" || j.key === " ") && (j.preventDefault(),
|
|
1446
|
+
}, b = (j) => {
|
|
1447
|
+
!a && c && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), E());
|
|
1448
1448
|
};
|
|
1449
|
-
return /* @__PURE__ */ g.jsx(g.Fragment, { children:
|
|
1449
|
+
return /* @__PURE__ */ g.jsx(g.Fragment, { children: x ? /* @__PURE__ */ g.jsx(
|
|
1450
1450
|
Me,
|
|
1451
1451
|
{
|
|
1452
1452
|
src: r,
|
|
1453
|
-
fallback: () => /* @__PURE__ */ g.jsx(Me, { src:
|
|
1453
|
+
fallback: () => /* @__PURE__ */ g.jsx(Me, { src: w, wrapper: "svg" }),
|
|
1454
1454
|
width: e || "1rem",
|
|
1455
1455
|
height: t || "1rem",
|
|
1456
1456
|
wrapper: "svg",
|
|
@@ -1458,10 +1458,10 @@ const ra = (r) => {
|
|
|
1458
1458
|
role: "application",
|
|
1459
1459
|
fill: s,
|
|
1460
1460
|
"aria-disabled": a,
|
|
1461
|
-
className:
|
|
1462
|
-
onClick:
|
|
1463
|
-
onKeyDown:
|
|
1464
|
-
tabIndex:
|
|
1461
|
+
className: S.svg,
|
|
1462
|
+
onClick: E,
|
|
1463
|
+
onKeyDown: b,
|
|
1464
|
+
tabIndex: d
|
|
1465
1465
|
}
|
|
1466
1466
|
) : y ? (
|
|
1467
1467
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
@@ -1472,20 +1472,20 @@ const ra = (r) => {
|
|
|
1472
1472
|
width: e || "16px",
|
|
1473
1473
|
height: t || "auto",
|
|
1474
1474
|
alt: u,
|
|
1475
|
-
onError: () =>
|
|
1476
|
-
onClick:
|
|
1477
|
-
className:
|
|
1475
|
+
onError: () => p(w),
|
|
1476
|
+
onClick: E,
|
|
1477
|
+
className: S.img,
|
|
1478
1478
|
title: u,
|
|
1479
1479
|
onKeyDown: (j) => {
|
|
1480
|
-
(j.key === "Enter" || j.key === " ") &&
|
|
1480
|
+
(j.key === "Enter" || j.key === " ") && E();
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
)
|
|
1484
1484
|
) : /* @__PURE__ */ g.jsx(
|
|
1485
1485
|
Me,
|
|
1486
1486
|
{
|
|
1487
|
-
src:
|
|
1488
|
-
fallback: () => /* @__PURE__ */ g.jsx(Me, { src:
|
|
1487
|
+
src: _,
|
|
1488
|
+
fallback: () => /* @__PURE__ */ g.jsx(Me, { src: w, wrapper: "svg" }),
|
|
1489
1489
|
width: e || "1rem",
|
|
1490
1490
|
height: t || "1rem",
|
|
1491
1491
|
wrapper: "svg",
|
|
@@ -1493,10 +1493,10 @@ const ra = (r) => {
|
|
|
1493
1493
|
role: "application",
|
|
1494
1494
|
fill: s,
|
|
1495
1495
|
"aria-disabled": a,
|
|
1496
|
-
className:
|
|
1497
|
-
onClick:
|
|
1498
|
-
onKeyDown:
|
|
1499
|
-
tabIndex:
|
|
1496
|
+
className: S.svg,
|
|
1497
|
+
onClick: E,
|
|
1498
|
+
onKeyDown: b,
|
|
1499
|
+
tabIndex: d
|
|
1500
1500
|
}
|
|
1501
1501
|
) });
|
|
1502
1502
|
}
|
|
@@ -1523,26 +1523,26 @@ const ra = (r) => {
|
|
|
1523
1523
|
showText: c = !0,
|
|
1524
1524
|
fullWidth: f = !1,
|
|
1525
1525
|
loading: u = !1,
|
|
1526
|
-
justify:
|
|
1526
|
+
justify: d = "center",
|
|
1527
1527
|
title: m,
|
|
1528
|
-
optionalDisplayValue:
|
|
1528
|
+
optionalDisplayValue: p,
|
|
1529
1529
|
squared: y = !1,
|
|
1530
|
-
submit:
|
|
1530
|
+
submit: x = !1
|
|
1531
1531
|
}) => {
|
|
1532
|
-
const
|
|
1533
|
-
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${
|
|
1532
|
+
const _ = {
|
|
1533
|
+
container: `smp-button smp-button-container ${a ? `smp-button-${a}` : ""} ${i ? `smp-buttonVariant-${i}` : ""} ${o ? `smp-buttonType-${o}` : ""} ${f ? "smp-button-fullWidth" : ""} smp-justifyContent-${d} ${y && !c ? "smp-button-squared" : ""}`
|
|
1534
1534
|
};
|
|
1535
1535
|
return /* @__PURE__ */ g.jsx(
|
|
1536
1536
|
"button",
|
|
1537
1537
|
{
|
|
1538
1538
|
"data-component": "button",
|
|
1539
|
-
type:
|
|
1540
|
-
className:
|
|
1539
|
+
type: x ? "submit" : "button",
|
|
1540
|
+
className: _.container,
|
|
1541
1541
|
onClick: e,
|
|
1542
1542
|
"aria-label": t,
|
|
1543
1543
|
disabled: s,
|
|
1544
1544
|
"aria-busy": u,
|
|
1545
|
-
title: m ||
|
|
1545
|
+
title: m || p,
|
|
1546
1546
|
children: u ? /* @__PURE__ */ g.jsx(le, { icon: "spinner", state: or(i), spin: !0 }) : /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
1547
1547
|
n && l && /* @__PURE__ */ g.jsx(
|
|
1548
1548
|
le,
|
|
@@ -1554,7 +1554,7 @@ const ra = (r) => {
|
|
|
1554
1554
|
height: ir(a)
|
|
1555
1555
|
}
|
|
1556
1556
|
),
|
|
1557
|
-
c && /* @__PURE__ */ g.jsx("span", { children:
|
|
1557
|
+
c && /* @__PURE__ */ g.jsx("span", { children: p || r })
|
|
1558
1558
|
] })
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
@@ -1604,14 +1604,14 @@ const ra = (r) => {
|
|
|
1604
1604
|
selectedIndex: n,
|
|
1605
1605
|
onTabChange: s
|
|
1606
1606
|
}) => {
|
|
1607
|
-
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1),
|
|
1607
|
+
const [a, i] = G(0), o = n ?? a, [l, c] = G(!1), [f, u] = G(!1), d = ce(null);
|
|
1608
1608
|
if (re(() => {
|
|
1609
|
-
const
|
|
1610
|
-
if (!
|
|
1611
|
-
|
|
1612
|
-
const
|
|
1613
|
-
return
|
|
1614
|
-
|
|
1609
|
+
const S = d.current;
|
|
1610
|
+
if (!S) return;
|
|
1611
|
+
x();
|
|
1612
|
+
const E = () => x();
|
|
1613
|
+
return S.addEventListener("scroll", E), window.addEventListener("resize", x), () => {
|
|
1614
|
+
S.removeEventListener("scroll", E), window.removeEventListener("resize", x);
|
|
1615
1615
|
};
|
|
1616
1616
|
}, []), !r.children || r.children.length === 0)
|
|
1617
1617
|
return /* @__PURE__ */ g.jsx("div", { className: "tab-bar-empty", children: "No tabs available" });
|
|
@@ -1623,17 +1623,17 @@ const ra = (r) => {
|
|
|
1623
1623
|
scrollButtonRight: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonRight"]}`,
|
|
1624
1624
|
scrollButtonLeft: `${xe["smp-tabbar-scroll-button"]} ${xe["smp-tabbar-scroll-buttonLeft"]}`,
|
|
1625
1625
|
active: xe["smp-active"]
|
|
1626
|
-
},
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1626
|
+
}, p = 100, y = 2, x = () => {
|
|
1627
|
+
const S = d.current;
|
|
1628
|
+
S && (c(S.scrollLeft > 0), u(
|
|
1629
|
+
S.scrollLeft + S.clientWidth < S.scrollWidth - y
|
|
1630
1630
|
));
|
|
1631
|
-
},
|
|
1632
|
-
var
|
|
1633
|
-
(
|
|
1634
|
-
},
|
|
1635
|
-
var
|
|
1636
|
-
(
|
|
1631
|
+
}, _ = () => {
|
|
1632
|
+
var S;
|
|
1633
|
+
(S = d.current) == null || S.scrollBy({ left: -p, behavior: "smooth" });
|
|
1634
|
+
}, w = () => {
|
|
1635
|
+
var S;
|
|
1636
|
+
(S = d.current) == null || S.scrollBy({ left: p, behavior: "smooth" });
|
|
1637
1637
|
};
|
|
1638
1638
|
return /* @__PURE__ */ g.jsxs(
|
|
1639
1639
|
"div",
|
|
@@ -1647,42 +1647,42 @@ const ra = (r) => {
|
|
|
1647
1647
|
{
|
|
1648
1648
|
bindValue: "",
|
|
1649
1649
|
optionalDisplayValue: "<",
|
|
1650
|
-
onClick:
|
|
1650
|
+
onClick: _,
|
|
1651
1651
|
variant: "base",
|
|
1652
1652
|
sizing: e
|
|
1653
1653
|
}
|
|
1654
1654
|
) }),
|
|
1655
|
-
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref:
|
|
1655
|
+
/* @__PURE__ */ g.jsx("div", { className: m.listWrapper, children: /* @__PURE__ */ g.jsx("div", { className: m.list, ref: d, role: "tablist", children: r.children.map((S, E) => /* @__PURE__ */ g.jsxs(
|
|
1656
1656
|
"button",
|
|
1657
1657
|
{
|
|
1658
1658
|
type: "button",
|
|
1659
|
-
className: `${
|
|
1659
|
+
className: `${E === a ? m.active : ""} ${m.tab} `,
|
|
1660
1660
|
role: "tab",
|
|
1661
|
-
"aria-selected":
|
|
1662
|
-
tabIndex:
|
|
1661
|
+
"aria-selected": E === o,
|
|
1662
|
+
tabIndex: E === o ? 0 : -1,
|
|
1663
1663
|
onClick: () => {
|
|
1664
|
-
s && s(
|
|
1664
|
+
s && s(E), i(E);
|
|
1665
1665
|
},
|
|
1666
1666
|
children: [
|
|
1667
|
-
|
|
1667
|
+
S.icon && /* @__PURE__ */ g.jsx(
|
|
1668
1668
|
le,
|
|
1669
1669
|
{
|
|
1670
|
-
icon:
|
|
1671
|
-
placeholderIcon:
|
|
1670
|
+
icon: S.icon,
|
|
1671
|
+
placeholderIcon: S.placeholderIcon
|
|
1672
1672
|
}
|
|
1673
1673
|
),
|
|
1674
1674
|
/* @__PURE__ */ g.jsx(
|
|
1675
1675
|
De,
|
|
1676
1676
|
{
|
|
1677
1677
|
variant: "body",
|
|
1678
|
-
bindValue:
|
|
1678
|
+
bindValue: S.decode || "Tab[object Object]"
|
|
1679
1679
|
}
|
|
1680
1680
|
),
|
|
1681
|
-
t && (o ===
|
|
1681
|
+
t && (o === E ? /* @__PURE__ */ g.jsx(
|
|
1682
1682
|
le,
|
|
1683
1683
|
{
|
|
1684
1684
|
icon: "more_vert",
|
|
1685
|
-
placeholderIcon:
|
|
1685
|
+
placeholderIcon: S.placeholderIcon,
|
|
1686
1686
|
isInteractable: !0,
|
|
1687
1687
|
onClick: () => {
|
|
1688
1688
|
console.log("clicked icon");
|
|
@@ -1691,14 +1691,14 @@ const ra = (r) => {
|
|
|
1691
1691
|
) : /* @__PURE__ */ g.jsx(le, { icon: "empty" }))
|
|
1692
1692
|
]
|
|
1693
1693
|
},
|
|
1694
|
-
|
|
1694
|
+
E
|
|
1695
1695
|
)) }) }),
|
|
1696
1696
|
f && /* @__PURE__ */ g.jsx("div", { className: m.scrollButtonRight, children: /* @__PURE__ */ g.jsx(
|
|
1697
1697
|
je,
|
|
1698
1698
|
{
|
|
1699
1699
|
bindValue: "",
|
|
1700
1700
|
optionalDisplayValue: ">",
|
|
1701
|
-
onClick:
|
|
1701
|
+
onClick: w,
|
|
1702
1702
|
variant: "base",
|
|
1703
1703
|
sizing: e
|
|
1704
1704
|
}
|
|
@@ -1726,46 +1726,46 @@ const ra = (r) => {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}) => {
|
|
1728
1728
|
const [t, n] = G(0), s = {};
|
|
1729
|
-
at.Children.forEach(r, (
|
|
1730
|
-
at.isValidElement(
|
|
1729
|
+
at.Children.forEach(r, (p) => {
|
|
1730
|
+
at.isValidElement(p) && (s[p.props.id] = p);
|
|
1731
1731
|
});
|
|
1732
1732
|
const a = "--smp-grid-template-cols", i = "--smp-grid-template-rows", o = Rr(
|
|
1733
1733
|
e.sections ?? [],
|
|
1734
1734
|
Object.keys(s)
|
|
1735
|
-
), l = (
|
|
1736
|
-
var
|
|
1737
|
-
let
|
|
1738
|
-
return (
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
)))) : (j =
|
|
1742
|
-
[a]: `repeat(${
|
|
1743
|
-
}) :
|
|
1735
|
+
), l = (p) => p.reduce((y, x) => {
|
|
1736
|
+
var b, j;
|
|
1737
|
+
let _ = "", w = {}, S = {}, E = "";
|
|
1738
|
+
return (b = x.sections) != null && b.length ? (_ = ge["smp-layout-section-grid"], w = l(x.sections), x.gridCols === void 0 && (E = ge[x.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"], (x.horizontal || Ut(x.sections)) && (S = Yt(
|
|
1739
|
+
x.sections,
|
|
1740
|
+
x.horizontal ? a : i
|
|
1741
|
+
)))) : (j = x.content) != null && j.length && (x.gridCols !== void 0 && x.gridCols > 0 ? (_ = ge["smp-layout-section-grid"], E = ge["smp-grid-template-cols"], S = {
|
|
1742
|
+
[a]: `repeat(${x.gridCols}, 1fr)`
|
|
1743
|
+
}) : _ = ge["smp-layout-section-flex"]), {
|
|
1744
1744
|
...y,
|
|
1745
|
-
...
|
|
1746
|
-
[
|
|
1747
|
-
classes: `${
|
|
1748
|
-
styles:
|
|
1745
|
+
...w,
|
|
1746
|
+
[x.id]: {
|
|
1747
|
+
classes: `${_} ${ge[x.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${E} ${x.justify ? `smp-justifyContent-${x.justify}` : ""} ${x.align ? `smp-alignItems-${x.align}` : ""}`,
|
|
1748
|
+
styles: S
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
1751
|
}, {}), c = l(o), f = `${ge["smp-layout"]} ${e.horizontal ? ge["smp-layout-horizontal"] : ge["smp-layout-vertical"]}`, u = e.horizontal || Ut(e.sections || []) ? Yt(
|
|
1752
1752
|
o,
|
|
1753
1753
|
e.horizontal ? a : i
|
|
1754
|
-
) : {},
|
|
1755
|
-
var
|
|
1756
|
-
const
|
|
1754
|
+
) : {}, d = (p, y) => {
|
|
1755
|
+
var _, w;
|
|
1756
|
+
const x = /* @__PURE__ */ g.jsx(
|
|
1757
1757
|
"div",
|
|
1758
1758
|
{
|
|
1759
|
-
"smp-id": `section-${
|
|
1760
|
-
className: c[
|
|
1761
|
-
style: c[
|
|
1762
|
-
children: (
|
|
1763
|
-
(
|
|
1759
|
+
"smp-id": `section-${p.id}`,
|
|
1760
|
+
className: c[p.id].classes,
|
|
1761
|
+
style: c[p.id].styles,
|
|
1762
|
+
children: (_ = p.sections) != null && _.length ? p.sections.map((S) => d(S)) : (w = p.content) == null ? void 0 : w.map(
|
|
1763
|
+
(S) => m(S, p.justify, p.align)
|
|
1764
1764
|
)
|
|
1765
1765
|
},
|
|
1766
|
-
`section-${
|
|
1766
|
+
`section-${p.id}`
|
|
1767
1767
|
);
|
|
1768
|
-
return
|
|
1768
|
+
return p.title && !y ? /* @__PURE__ */ g.jsxs(
|
|
1769
1769
|
"div",
|
|
1770
1770
|
{
|
|
1771
1771
|
className: ge["smp-layout-section-with-title"],
|
|
@@ -1773,31 +1773,31 @@ const ra = (r) => {
|
|
|
1773
1773
|
/* @__PURE__ */ g.jsx(
|
|
1774
1774
|
"span",
|
|
1775
1775
|
{
|
|
1776
|
-
className: `${ge["smp-layout-section-title"]} ${
|
|
1777
|
-
children: /* @__PURE__ */ g.jsx(Ce, { label:
|
|
1776
|
+
className: `${ge["smp-layout-section-title"]} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
1777
|
+
children: /* @__PURE__ */ g.jsx(Ce, { label: p.title })
|
|
1778
1778
|
}
|
|
1779
1779
|
),
|
|
1780
|
-
|
|
1780
|
+
x
|
|
1781
1781
|
]
|
|
1782
1782
|
},
|
|
1783
|
-
`title-section-${
|
|
1784
|
-
) :
|
|
1785
|
-
}, m = (
|
|
1786
|
-
const
|
|
1787
|
-
if (!
|
|
1788
|
-
const
|
|
1789
|
-
gridColumnStart: (
|
|
1790
|
-
gridColumnEnd:
|
|
1791
|
-
},
|
|
1783
|
+
`title-section-${p.id}`
|
|
1784
|
+
) : x;
|
|
1785
|
+
}, m = (p, y, x) => {
|
|
1786
|
+
const _ = s[p.id];
|
|
1787
|
+
if (!_) return null;
|
|
1788
|
+
const S = {
|
|
1789
|
+
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1790
|
+
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
1791
|
+
}, E = `${ge["smp-layout-cell-container"]} ${y ? `smp-justifyContent-${y}` : ""} ${x ? `smp-alignItems-${x}` : ""}`;
|
|
1792
1792
|
return /* @__PURE__ */ g.jsx(
|
|
1793
1793
|
"div",
|
|
1794
1794
|
{
|
|
1795
|
-
className:
|
|
1796
|
-
style:
|
|
1797
|
-
"smp-id":
|
|
1798
|
-
children:
|
|
1795
|
+
className: E,
|
|
1796
|
+
style: S,
|
|
1797
|
+
"smp-id": p.id,
|
|
1798
|
+
children: _
|
|
1799
1799
|
},
|
|
1800
|
-
|
|
1800
|
+
p.id
|
|
1801
1801
|
);
|
|
1802
1802
|
};
|
|
1803
1803
|
return /* @__PURE__ */ g.jsxs("div", { className: f, style: u, "smp-id": "layout", children: [
|
|
@@ -1806,8 +1806,8 @@ const ra = (r) => {
|
|
|
1806
1806
|
{
|
|
1807
1807
|
data: {
|
|
1808
1808
|
type: "SmeupDataTree",
|
|
1809
|
-
children: o.map((
|
|
1810
|
-
decode:
|
|
1809
|
+
children: o.map((p) => ({
|
|
1810
|
+
decode: p.title || p.id || "Tab",
|
|
1811
1811
|
obj: { t: "", p: "", k: "" },
|
|
1812
1812
|
placeholderIcon: "tab",
|
|
1813
1813
|
cells: {},
|
|
@@ -1820,7 +1820,7 @@ const ra = (r) => {
|
|
|
1820
1820
|
toolbar: !1
|
|
1821
1821
|
}
|
|
1822
1822
|
),
|
|
1823
|
-
e.sectionsType ?
|
|
1823
|
+
e.sectionsType ? d(o[t], !0) : o.map((p) => d(p))
|
|
1824
1824
|
] });
|
|
1825
1825
|
}, te = {
|
|
1826
1826
|
AUTOCOMPLETE: "ACP",
|
|
@@ -1830,6 +1830,7 @@ const ra = (r) => {
|
|
|
1830
1830
|
CHIP: "CHI",
|
|
1831
1831
|
COMBOBOX: "CMB",
|
|
1832
1832
|
DATE: "CAL",
|
|
1833
|
+
EDITOR: "EDT",
|
|
1833
1834
|
ICON: "ICO",
|
|
1834
1835
|
IMAGE: "IMG",
|
|
1835
1836
|
INPUT_NUMBER: "INR",
|
|
@@ -2003,30 +2004,30 @@ function ht({
|
|
|
2003
2004
|
const t = ce(null), n = ce(null), [s, a] = G(0), i = ue(() => {
|
|
2004
2005
|
const o = t.current, l = n.current;
|
|
2005
2006
|
if (!o || !l) return;
|
|
2006
|
-
const { top: c, left: f, width: u, height:
|
|
2007
|
+
const { top: c, left: f, width: u, height: d } = o.getBoundingClientRect();
|
|
2007
2008
|
a(u);
|
|
2008
|
-
const m = l.offsetHeight,
|
|
2009
|
-
if (
|
|
2009
|
+
const m = l.offsetHeight, p = l.offsetWidth;
|
|
2010
|
+
if (p === 0 || m === 0) {
|
|
2010
2011
|
requestAnimationFrame(i);
|
|
2011
2012
|
return;
|
|
2012
2013
|
}
|
|
2013
|
-
let y = c + window.scrollY,
|
|
2014
|
+
let y = c + window.scrollY, x = f + window.scrollX;
|
|
2014
2015
|
switch (r) {
|
|
2015
2016
|
case "top":
|
|
2016
2017
|
y -= m;
|
|
2017
2018
|
break;
|
|
2018
2019
|
case "bottom":
|
|
2019
|
-
y +=
|
|
2020
|
+
y += d;
|
|
2020
2021
|
break;
|
|
2021
2022
|
case "left":
|
|
2022
|
-
|
|
2023
|
+
x -= p;
|
|
2023
2024
|
break;
|
|
2024
2025
|
case "right":
|
|
2025
|
-
|
|
2026
|
+
x += u;
|
|
2026
2027
|
break;
|
|
2027
2028
|
}
|
|
2028
2029
|
requestAnimationFrame(() => {
|
|
2029
|
-
l.style.transform = `translate(${
|
|
2030
|
+
l.style.transform = `translate(${x}px, ${y}px)`, l.style.opacity = "1";
|
|
2030
2031
|
});
|
|
2031
2032
|
}, [r]);
|
|
2032
2033
|
return Ur(() => {
|
|
@@ -2097,49 +2098,49 @@ const Fe = (r, e, t) => {
|
|
|
2097
2098
|
tooltip: c = !1,
|
|
2098
2099
|
rotatedShapeIcon: f = !1,
|
|
2099
2100
|
ref: u,
|
|
2100
|
-
inputRef:
|
|
2101
|
+
inputRef: d,
|
|
2101
2102
|
inputType: m = "text",
|
|
2102
|
-
ariaLabel:
|
|
2103
|
+
ariaLabel: p = "input field",
|
|
2103
2104
|
label: y,
|
|
2104
|
-
helperText:
|
|
2105
|
-
error:
|
|
2106
|
-
appearance:
|
|
2107
|
-
fullWidth:
|
|
2108
|
-
_dataComponent:
|
|
2109
|
-
min:
|
|
2105
|
+
helperText: x = !1,
|
|
2106
|
+
error: _,
|
|
2107
|
+
appearance: w = "base",
|
|
2108
|
+
fullWidth: S = !1,
|
|
2109
|
+
_dataComponent: E = "textfield",
|
|
2110
|
+
min: b,
|
|
2110
2111
|
max: j,
|
|
2111
2112
|
step: k,
|
|
2112
|
-
inputMode:
|
|
2113
|
-
width:
|
|
2114
|
-
autocomplete:
|
|
2115
|
-
size:
|
|
2116
|
-
maxLength:
|
|
2117
|
-
onBlur:
|
|
2118
|
-
onChange:
|
|
2119
|
-
onKeyDown:
|
|
2120
|
-
onShapeIconClick:
|
|
2113
|
+
inputMode: A = "text",
|
|
2114
|
+
width: O,
|
|
2115
|
+
autocomplete: T,
|
|
2116
|
+
size: C,
|
|
2117
|
+
maxLength: D,
|
|
2118
|
+
onBlur: I,
|
|
2119
|
+
onChange: F,
|
|
2120
|
+
onKeyDown: P,
|
|
2121
|
+
onShapeIconClick: V,
|
|
2121
2122
|
onClick: z
|
|
2122
2123
|
}) => {
|
|
2123
|
-
const J = Re(), Y = `${J}-helper`, h =
|
|
2124
|
-
|
|
2125
|
-
},
|
|
2126
|
-
wrapper: `${ye["smp-textfield-wrapper"]} ${
|
|
2127
|
-
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${
|
|
2124
|
+
const J = Re(), Y = `${J}-helper`, h = _ ? "danger" : o, v = _ || o == "danger" ? "error" : a, R = x || !!_, L = (U) => {
|
|
2125
|
+
F == null || F(U.target.value);
|
|
2126
|
+
}, $ = {
|
|
2127
|
+
wrapper: `${ye["smp-textfield-wrapper"]} ${S ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
2128
|
+
container: `${ye["smp-textfield"]} ${r ? ye["smp-textfield-disabled"] : ""} ${n ? ye["smp-textfield-placeholder"] : ""} ${i ? ye[`smp-textfield-${i}`] : ""} ${h ? ye[`smp-textfield-${h}`] : ""} ${w ? ye[`smp-textfield-${w}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
2128
2129
|
input: `${ye["smp-textfield-input"]}`
|
|
2129
2130
|
};
|
|
2130
2131
|
if (l && (l !== "notSelectable" || s)) {
|
|
2131
2132
|
const U = ye[`smp-textfield-variant-${l}`];
|
|
2132
|
-
U && (
|
|
2133
|
+
U && ($.container += ` ${U}`);
|
|
2133
2134
|
}
|
|
2134
|
-
const
|
|
2135
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
2135
|
+
const N = O ? { "--smp-textField-width-base": O } : void 0;
|
|
2136
|
+
return /* @__PURE__ */ g.jsxs("div", { className: $.wrapper, "data-component": E, children: [
|
|
2136
2137
|
y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
|
|
2137
2138
|
/* @__PURE__ */ g.jsxs(
|
|
2138
2139
|
"div",
|
|
2139
2140
|
{
|
|
2140
|
-
className:
|
|
2141
|
+
className: $.container,
|
|
2141
2142
|
ref: u,
|
|
2142
|
-
style:
|
|
2143
|
+
style: N,
|
|
2143
2144
|
children: [
|
|
2144
2145
|
t && /* @__PURE__ */ g.jsx(le, { icon: t, disabled: r }),
|
|
2145
2146
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2149,32 +2150,32 @@ const Fe = (r, e, t) => {
|
|
|
2149
2150
|
type: m,
|
|
2150
2151
|
value: e,
|
|
2151
2152
|
placeholder: n,
|
|
2152
|
-
onChange:
|
|
2153
|
-
onBlur:
|
|
2154
|
-
className:
|
|
2153
|
+
onChange: L,
|
|
2154
|
+
onBlur: I,
|
|
2155
|
+
className: $.input,
|
|
2155
2156
|
disabled: r,
|
|
2156
2157
|
readOnly: !s,
|
|
2157
|
-
onKeyDown:
|
|
2158
|
-
"aria-label":
|
|
2159
|
-
ref:
|
|
2160
|
-
"aria-describedby":
|
|
2161
|
-
min:
|
|
2158
|
+
onKeyDown: P,
|
|
2159
|
+
"aria-label": p,
|
|
2160
|
+
ref: d,
|
|
2161
|
+
"aria-describedby": R ? Y : void 0,
|
|
2162
|
+
min: b,
|
|
2162
2163
|
max: j,
|
|
2163
2164
|
step: k,
|
|
2164
|
-
inputMode:
|
|
2165
|
-
autoComplete:
|
|
2166
|
-
size:
|
|
2167
|
-
maxLength:
|
|
2165
|
+
inputMode: A,
|
|
2166
|
+
autoComplete: T,
|
|
2167
|
+
size: C,
|
|
2168
|
+
maxLength: D,
|
|
2168
2169
|
onClick: z
|
|
2169
2170
|
}
|
|
2170
2171
|
),
|
|
2171
|
-
|
|
2172
|
+
v && /* @__PURE__ */ g.jsx(
|
|
2172
2173
|
le,
|
|
2173
2174
|
{
|
|
2174
|
-
icon:
|
|
2175
|
+
icon: v,
|
|
2175
2176
|
disabled: r,
|
|
2176
2177
|
state: h,
|
|
2177
|
-
onClick:
|
|
2178
|
+
onClick: V,
|
|
2178
2179
|
rotated: f,
|
|
2179
2180
|
isInteractable: s,
|
|
2180
2181
|
tabIndex: 0
|
|
@@ -2183,10 +2184,10 @@ const Fe = (r, e, t) => {
|
|
|
2183
2184
|
]
|
|
2184
2185
|
}
|
|
2185
2186
|
),
|
|
2186
|
-
|
|
2187
|
+
R && /* @__PURE__ */ g.jsx(
|
|
2187
2188
|
Lr,
|
|
2188
2189
|
{
|
|
2189
|
-
helperText:
|
|
2190
|
+
helperText: _,
|
|
2190
2191
|
disabled: r,
|
|
2191
2192
|
state: h,
|
|
2192
2193
|
id: Y
|
|
@@ -2211,12 +2212,12 @@ function Ar({
|
|
|
2211
2212
|
offsetTop: m * e
|
|
2212
2213
|
});
|
|
2213
2214
|
const u = ue((m) => {
|
|
2214
|
-
const
|
|
2215
|
-
a(
|
|
2216
|
-
}, []),
|
|
2215
|
+
const p = m.target.scrollTop;
|
|
2216
|
+
a(p);
|
|
2217
|
+
}, []), d = (m) => {
|
|
2217
2218
|
if (!i.current) return;
|
|
2218
|
-
const
|
|
2219
|
-
|
|
2219
|
+
const p = m * e, y = p + e, x = i.current, _ = x.scrollTop, w = _ + t;
|
|
2220
|
+
p < _ ? x.scrollTop = p : y > w && (x.scrollTop = y - t);
|
|
2220
2221
|
};
|
|
2221
2222
|
return {
|
|
2222
2223
|
virtualItems: f,
|
|
@@ -2244,7 +2245,7 @@ function Ar({
|
|
|
2244
2245
|
startIndex: l,
|
|
2245
2246
|
endIndex: c
|
|
2246
2247
|
},
|
|
2247
|
-
scrollToIndex:
|
|
2248
|
+
scrollToIndex: d
|
|
2248
2249
|
};
|
|
2249
2250
|
}
|
|
2250
2251
|
const tt = {
|
|
@@ -2278,41 +2279,41 @@ const jn = 10, Ir = ({
|
|
|
2278
2279
|
onKeyDown: c,
|
|
2279
2280
|
isOpen: f
|
|
2280
2281
|
}) => {
|
|
2281
|
-
var
|
|
2282
|
-
const [u,
|
|
2282
|
+
var F;
|
|
2283
|
+
const [u, d] = G(""), m = 40, [p, y] = G(
|
|
2283
2284
|
a !== null ? a : -1
|
|
2284
|
-
), [
|
|
2285
|
-
(
|
|
2286
|
-
) : e,
|
|
2287
|
-
|
|
2288
|
-
}, { virtualItems: j, containerProps: k, innerProps:
|
|
2289
|
-
items:
|
|
2285
|
+
), [x, _] = G(o || 200), w = ce(null), S = s !== void 0 ? s : e.length > jn, E = u ? e.filter(
|
|
2286
|
+
(P) => P.label.toLowerCase().includes(u.toLowerCase())
|
|
2287
|
+
) : e, b = (P) => {
|
|
2288
|
+
d(P);
|
|
2289
|
+
}, { virtualItems: j, containerProps: k, innerProps: A, scrollToIndex: O } = Ar({
|
|
2290
|
+
items: E,
|
|
2290
2291
|
itemHeight: m,
|
|
2291
2292
|
containerHeight: 200,
|
|
2292
2293
|
overscan: 5
|
|
2293
2294
|
});
|
|
2294
2295
|
re(() => {
|
|
2295
|
-
a !== null && a !==
|
|
2296
|
+
a !== null && a !== p && y(a);
|
|
2296
2297
|
}, [a]), re(() => {
|
|
2297
|
-
|
|
2298
|
-
}, [
|
|
2299
|
-
f && (
|
|
2300
|
-
}, [f,
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2298
|
+
p >= 0 && p < E.length && O(p);
|
|
2299
|
+
}, [p, E]), re(() => {
|
|
2300
|
+
f && (w != null && w.current) && w.current.focus();
|
|
2301
|
+
}, [f, w]), re(() => {
|
|
2302
|
+
const P = Rn(e, t);
|
|
2303
|
+
_(P);
|
|
2303
2304
|
}, [e, t]);
|
|
2304
|
-
const
|
|
2305
|
-
if (
|
|
2306
|
-
|
|
2307
|
-
let
|
|
2308
|
-
|
|
2309
|
-
} else
|
|
2310
|
-
c && c(
|
|
2311
|
-
},
|
|
2312
|
-
|
|
2313
|
-
},
|
|
2314
|
-
|
|
2315
|
-
},
|
|
2305
|
+
const T = (P) => {
|
|
2306
|
+
if (P.key === "ArrowDown" || P.key === "ArrowUp") {
|
|
2307
|
+
P.preventDefault();
|
|
2308
|
+
let V = p;
|
|
2309
|
+
P.key === "ArrowDown" ? V = p < E.length - 1 ? p + 1 : 0 : P.key === "ArrowUp" && (V = p > 0 ? p - 1 : E.length - 1), y(V);
|
|
2310
|
+
} else P.key === "Enter" ? p >= 0 && p < E.length && (l == null || l(E[p])) : P.key === "Escape" && (P.preventDefault(), P.stopPropagation());
|
|
2311
|
+
c && c(P);
|
|
2312
|
+
}, C = (P) => {
|
|
2313
|
+
T(P);
|
|
2314
|
+
}, D = (P) => {
|
|
2315
|
+
T(P);
|
|
2316
|
+
}, I = {
|
|
2316
2317
|
wrapper: `${tt["smp-list"]}`,
|
|
2317
2318
|
container: `${tt["smp-list-container"]}`,
|
|
2318
2319
|
virtualScroll: `${tt["smp-list-virtualScroll"]}`,
|
|
@@ -2323,47 +2324,47 @@ const jn = 10, Ir = ({
|
|
|
2323
2324
|
{
|
|
2324
2325
|
id: r,
|
|
2325
2326
|
ref: n,
|
|
2326
|
-
className:
|
|
2327
|
+
className: I.wrapper,
|
|
2327
2328
|
"data-component": "list",
|
|
2328
2329
|
style: {
|
|
2329
|
-
width:
|
|
2330
|
+
width: x,
|
|
2330
2331
|
minWidth: o
|
|
2331
2332
|
},
|
|
2332
2333
|
children: [
|
|
2333
|
-
|
|
2334
|
+
S && /* @__PURE__ */ g.jsx(
|
|
2334
2335
|
Le,
|
|
2335
2336
|
{
|
|
2336
2337
|
bindValue: u,
|
|
2337
2338
|
placeholder: "Search...",
|
|
2338
2339
|
fullWidth: !0,
|
|
2339
|
-
onChange:
|
|
2340
|
-
onKeyDown:
|
|
2341
|
-
inputRef:
|
|
2340
|
+
onChange: b,
|
|
2341
|
+
onKeyDown: C,
|
|
2342
|
+
inputRef: w
|
|
2342
2343
|
}
|
|
2343
2344
|
),
|
|
2344
2345
|
/* @__PURE__ */ g.jsx(
|
|
2345
2346
|
"div",
|
|
2346
2347
|
{
|
|
2347
2348
|
...k,
|
|
2348
|
-
className:
|
|
2349
|
+
className: I.container,
|
|
2349
2350
|
tabIndex: 0,
|
|
2350
2351
|
role: "listbox",
|
|
2351
2352
|
"aria-label": "List",
|
|
2352
|
-
onKeyDown:
|
|
2353
|
-
"aria-activedescendant":
|
|
2354
|
-
children: /* @__PURE__ */ g.jsx("div", { ...
|
|
2355
|
-
const J = i.includes(
|
|
2353
|
+
onKeyDown: D,
|
|
2354
|
+
"aria-activedescendant": p >= 0 && p < E.length ? (F = E[p]) == null ? void 0 : F.id : void 0,
|
|
2355
|
+
children: /* @__PURE__ */ g.jsx("div", { ...A, className: I.virtualScroll, children: j.map(({ item: P, index: V, offsetTop: z }) => {
|
|
2356
|
+
const J = i.includes(P.id);
|
|
2356
2357
|
return (
|
|
2357
2358
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
2358
2359
|
/* @__PURE__ */ g.jsxs(
|
|
2359
2360
|
"li",
|
|
2360
2361
|
{
|
|
2361
2362
|
role: "option",
|
|
2362
|
-
id:
|
|
2363
|
-
"aria-selected":
|
|
2363
|
+
id: P.id,
|
|
2364
|
+
"aria-selected": p === V ? "true" : "false",
|
|
2364
2365
|
tabIndex: -1,
|
|
2365
|
-
className: `${
|
|
2366
|
-
"aria-label":
|
|
2366
|
+
className: `${I.listItem} ${p === V ? "selected-item" : ""}`,
|
|
2367
|
+
"aria-label": P.id + "-" + P.label,
|
|
2367
2368
|
style: {
|
|
2368
2369
|
height: `${m}px`,
|
|
2369
2370
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
@@ -2371,14 +2372,14 @@ const jn = 10, Ir = ({
|
|
|
2371
2372
|
transform: `translateY(${z}px)`
|
|
2372
2373
|
},
|
|
2373
2374
|
onClick: () => {
|
|
2374
|
-
l == null || l(
|
|
2375
|
+
l == null || l(P), y(V);
|
|
2375
2376
|
},
|
|
2376
2377
|
children: [
|
|
2377
|
-
Fe(
|
|
2378
|
+
Fe(P.id, P.label, t),
|
|
2378
2379
|
J && /* @__PURE__ */ g.jsx(le, { icon: "check", width: 16 })
|
|
2379
2380
|
]
|
|
2380
2381
|
},
|
|
2381
|
-
|
|
2382
|
+
P.id
|
|
2382
2383
|
)
|
|
2383
2384
|
);
|
|
2384
2385
|
}) })
|
|
@@ -2758,9 +2759,9 @@ class dt extends yt {
|
|
|
2758
2759
|
} = this.extractFromKey(e[e.length - 1], s), c = l[l.length - 1];
|
|
2759
2760
|
let f = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2760
2761
|
f === void 0 && (f = ":");
|
|
2761
|
-
const u = s.lng || this.language,
|
|
2762
|
+
const u = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2762
2763
|
if ((u == null ? void 0 : u.toLowerCase()) === "cimode")
|
|
2763
|
-
return
|
|
2764
|
+
return d ? a ? {
|
|
2764
2765
|
res: `${c}${f}${o}`,
|
|
2765
2766
|
usedKey: o,
|
|
2766
2767
|
exactUsedKey: o,
|
|
@@ -2776,75 +2777,75 @@ class dt extends yt {
|
|
|
2776
2777
|
usedParams: this.getUsedParamsDetails(s)
|
|
2777
2778
|
} : o;
|
|
2778
2779
|
const m = this.resolve(e, s);
|
|
2779
|
-
let
|
|
2780
|
-
const y = (m == null ? void 0 : m.usedKey) || o,
|
|
2780
|
+
let p = m == null ? void 0 : m.res;
|
|
2781
|
+
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, _ = ["[object Number]", "[object Function]", "[object RegExp]"], w = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, E = s.count !== void 0 && !q(s.count), b = dt.hasDefaultValue(s), j = E ? this.pluralResolver.getSuffix(u, s.count, s) : "", k = s.ordinal && E ? this.pluralResolver.getSuffix(u, s.count, {
|
|
2781
2782
|
ordinal: !1
|
|
2782
|
-
}) : "",
|
|
2783
|
-
let
|
|
2784
|
-
|
|
2785
|
-
const
|
|
2786
|
-
if (
|
|
2783
|
+
}) : "", A = E && !s.ordinal && s.count === 0, O = A && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2784
|
+
let T = p;
|
|
2785
|
+
S && !p && b && (T = O);
|
|
2786
|
+
const C = mr(T), D = Object.prototype.toString.apply(T);
|
|
2787
|
+
if (S && T && C && _.indexOf(D) < 0 && !(q(w) && Array.isArray(T))) {
|
|
2787
2788
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2788
2789
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2789
|
-
const
|
|
2790
|
+
const I = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, T, {
|
|
2790
2791
|
...s,
|
|
2791
2792
|
ns: l
|
|
2792
2793
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2793
|
-
return a ? (m.res =
|
|
2794
|
+
return a ? (m.res = I, m.usedParams = this.getUsedParamsDetails(s), m) : I;
|
|
2794
2795
|
}
|
|
2795
2796
|
if (i) {
|
|
2796
|
-
const
|
|
2797
|
-
for (const
|
|
2798
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2799
|
-
const z = `${
|
|
2800
|
-
|
|
2797
|
+
const I = Array.isArray(T), F = I ? [] : {}, P = I ? x : y;
|
|
2798
|
+
for (const V in T)
|
|
2799
|
+
if (Object.prototype.hasOwnProperty.call(T, V)) {
|
|
2800
|
+
const z = `${P}${i}${V}`;
|
|
2801
|
+
b && !p ? F[V] = this.translate(z, {
|
|
2801
2802
|
...s,
|
|
2802
|
-
defaultValue: mr(
|
|
2803
|
+
defaultValue: mr(O) ? O[V] : void 0,
|
|
2803
2804
|
joinArrays: !1,
|
|
2804
2805
|
ns: l
|
|
2805
|
-
}) : V
|
|
2806
|
+
}) : F[V] = this.translate(z, {
|
|
2806
2807
|
...s,
|
|
2807
2808
|
joinArrays: !1,
|
|
2808
2809
|
ns: l
|
|
2809
|
-
}), V
|
|
2810
|
+
}), F[V] === z && (F[V] = T[V]);
|
|
2810
2811
|
}
|
|
2811
|
-
|
|
2812
|
+
p = F;
|
|
2812
2813
|
}
|
|
2813
|
-
} else if (
|
|
2814
|
-
|
|
2814
|
+
} else if (S && q(w) && Array.isArray(p))
|
|
2815
|
+
p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
|
|
2815
2816
|
else {
|
|
2816
|
-
let
|
|
2817
|
-
!this.isValidLookup(
|
|
2818
|
-
const
|
|
2819
|
-
if (
|
|
2820
|
-
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ?
|
|
2821
|
-
const
|
|
2817
|
+
let I = !1, F = !1;
|
|
2818
|
+
!this.isValidLookup(p) && b && (I = !0, p = O), this.isValidLookup(p) || (F = !0, p = o);
|
|
2819
|
+
const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, z = b && O !== p && this.options.updateMissing;
|
|
2820
|
+
if (F || I || z) {
|
|
2821
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", u, c, o, z ? O : p), i) {
|
|
2822
|
+
const v = this.resolve(o, {
|
|
2822
2823
|
...s,
|
|
2823
2824
|
keySeparator: !1
|
|
2824
2825
|
});
|
|
2825
|
-
|
|
2826
|
+
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.");
|
|
2826
2827
|
}
|
|
2827
2828
|
let J = [];
|
|
2828
2829
|
const Y = this.languageUtils.getFallbackCodes(this.options.fallbackLng, s.lng || this.language);
|
|
2829
2830
|
if (this.options.saveMissingTo === "fallback" && Y && Y[0])
|
|
2830
|
-
for (let
|
|
2831
|
-
J.push(Y[
|
|
2831
|
+
for (let v = 0; v < Y.length; v++)
|
|
2832
|
+
J.push(Y[v]);
|
|
2832
2833
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
|
|
2833
|
-
const h = (
|
|
2834
|
-
var
|
|
2835
|
-
const
|
|
2836
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
2834
|
+
const h = (v, R, L) => {
|
|
2835
|
+
var N;
|
|
2836
|
+
const $ = b && L !== p ? L : V;
|
|
2837
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, R, $, z, s) : (N = this.backendConnector) != null && N.saveMissing && this.backendConnector.saveMissing(v, c, R, $, z, s), this.emit("missingKey", v, c, R, p);
|
|
2837
2838
|
};
|
|
2838
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2841
|
-
h([
|
|
2839
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && E ? J.forEach((v) => {
|
|
2840
|
+
const R = this.pluralResolver.getSuffixes(v, s);
|
|
2841
|
+
A && s[`defaultValue${this.options.pluralSeparator}zero`] && R.indexOf(`${this.options.pluralSeparator}zero`) < 0 && R.push(`${this.options.pluralSeparator}zero`), R.forEach((L) => {
|
|
2842
|
+
h([v], o + L, s[`defaultValue${L}`] || O);
|
|
2842
2843
|
});
|
|
2843
|
-
}) : h(J, o,
|
|
2844
|
+
}) : h(J, o, O));
|
|
2844
2845
|
}
|
|
2845
|
-
|
|
2846
|
+
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F || I) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, I ? p : void 0, s));
|
|
2846
2847
|
}
|
|
2847
|
-
return a ? (m.res =
|
|
2848
|
+
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
2848
2849
|
}
|
|
2849
2850
|
extendTranslation(e, t, n, s, a) {
|
|
2850
2851
|
var l, c;
|
|
@@ -2869,13 +2870,13 @@ class dt extends yt {
|
|
|
2869
2870
|
const m = e.match(this.interpolator.nestingRegexp);
|
|
2870
2871
|
u = m && m.length;
|
|
2871
2872
|
}
|
|
2872
|
-
let
|
|
2873
|
-
if (this.options.interpolation.defaultVariables && (
|
|
2873
|
+
let d = n.replace && !q(n.replace) ? n.replace : n;
|
|
2874
|
+
if (this.options.interpolation.defaultVariables && (d = {
|
|
2874
2875
|
...this.options.interpolation.defaultVariables,
|
|
2875
|
-
...
|
|
2876
|
-
}), e = this.interpolator.interpolate(e,
|
|
2877
|
-
const m = e.match(this.interpolator.nestingRegexp),
|
|
2878
|
-
u <
|
|
2876
|
+
...d
|
|
2877
|
+
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), f) {
|
|
2878
|
+
const m = e.match(this.interpolator.nestingRegexp), p = m && m.length;
|
|
2879
|
+
u < p && (n.nest = !1);
|
|
2879
2880
|
}
|
|
2880
2881
|
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...m) => (a == null ? void 0 : a[0]) === m[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`), null) : this.translate(...m, t), n)), n.interpolation && this.interpolator.reset();
|
|
2881
2882
|
}
|
|
@@ -2896,28 +2897,28 @@ class dt extends yt {
|
|
|
2896
2897
|
s = f;
|
|
2897
2898
|
let u = c.namespaces;
|
|
2898
2899
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2899
|
-
const
|
|
2900
|
-
u.forEach((
|
|
2901
|
-
var
|
|
2902
|
-
this.isValidLookup(n) || (o =
|
|
2900
|
+
const d = t.count !== void 0 && !q(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (q(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2901
|
+
u.forEach((x) => {
|
|
2902
|
+
var _, w;
|
|
2903
|
+
this.isValidLookup(n) || (o = x, !hr[`${y[0]}-${x}`] && ((_ = this.utils) != null && _.hasLoadedNamespace) && !((w = this.utils) != null && w.hasLoadedNamespace(o)) && (hr[`${y[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((S) => {
|
|
2903
2904
|
var j;
|
|
2904
2905
|
if (this.isValidLookup(n)) return;
|
|
2905
|
-
i =
|
|
2906
|
-
const
|
|
2906
|
+
i = S;
|
|
2907
|
+
const E = [f];
|
|
2907
2908
|
if ((j = this.i18nFormat) != null && j.addLookupKeys)
|
|
2908
|
-
this.i18nFormat.addLookupKeys(
|
|
2909
|
+
this.i18nFormat.addLookupKeys(E, f, S, x, t);
|
|
2909
2910
|
else {
|
|
2910
2911
|
let k;
|
|
2911
|
-
|
|
2912
|
-
const
|
|
2913
|
-
if (
|
|
2914
|
-
const
|
|
2915
|
-
|
|
2912
|
+
d && (k = this.pluralResolver.getSuffix(S, t.count, t));
|
|
2913
|
+
const A = `${this.options.pluralSeparator}zero`, O = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2914
|
+
if (d && (E.push(f + k), t.ordinal && k.indexOf(O) === 0 && E.push(f + k.replace(O, this.options.pluralSeparator)), m && E.push(f + A)), p) {
|
|
2915
|
+
const T = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2916
|
+
E.push(T), d && (E.push(T + k), t.ordinal && k.indexOf(O) === 0 && E.push(T + k.replace(O, this.options.pluralSeparator)), m && E.push(T + A));
|
|
2916
2917
|
}
|
|
2917
2918
|
}
|
|
2918
|
-
let
|
|
2919
|
-
for (;
|
|
2920
|
-
this.isValidLookup(n) || (a =
|
|
2919
|
+
let b;
|
|
2920
|
+
for (; b = E.pop(); )
|
|
2921
|
+
this.isValidLookup(n) || (a = b, n = this.getResource(S, x, b, t));
|
|
2921
2922
|
}));
|
|
2922
2923
|
});
|
|
2923
2924
|
}), {
|
|
@@ -3106,15 +3107,15 @@ class Un {
|
|
|
3106
3107
|
formatSeparator: c,
|
|
3107
3108
|
unescapeSuffix: f,
|
|
3108
3109
|
unescapePrefix: u,
|
|
3109
|
-
nestingPrefix:
|
|
3110
|
+
nestingPrefix: d,
|
|
3110
3111
|
nestingPrefixEscaped: m,
|
|
3111
|
-
nestingSuffix:
|
|
3112
|
+
nestingSuffix: p,
|
|
3112
3113
|
nestingSuffixEscaped: y,
|
|
3113
|
-
nestingOptionsSeparator:
|
|
3114
|
-
maxReplaces:
|
|
3115
|
-
alwaysFormat:
|
|
3114
|
+
nestingOptionsSeparator: x,
|
|
3115
|
+
maxReplaces: _,
|
|
3116
|
+
alwaysFormat: w
|
|
3116
3117
|
} = e.interpolation;
|
|
3117
|
-
this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix =
|
|
3118
|
+
this.escape = t !== void 0 ? t : Pn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Pe(a) : i || "{{", this.suffix = o ? Pe(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Pe(d) : m || Pe("$t("), this.nestingSuffix = p ? Pe(p) : y || Pe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = _ || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
3118
3119
|
}
|
|
3119
3120
|
reset() {
|
|
3120
3121
|
this.options && this.init(this.options);
|
|
@@ -3126,37 +3127,37 @@ class Un {
|
|
|
3126
3127
|
interpolate(e, t, n, s) {
|
|
3127
3128
|
var m;
|
|
3128
3129
|
let a, i, o;
|
|
3129
|
-
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (
|
|
3130
|
-
if (
|
|
3131
|
-
const
|
|
3132
|
-
return this.alwaysFormat ? this.format(
|
|
3130
|
+
const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (p) => {
|
|
3131
|
+
if (p.indexOf(this.formatSeparator) < 0) {
|
|
3132
|
+
const w = vr(t, l, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3133
|
+
return this.alwaysFormat ? this.format(w, void 0, n, {
|
|
3133
3134
|
...s,
|
|
3134
3135
|
...t,
|
|
3135
|
-
interpolationkey:
|
|
3136
|
-
}) :
|
|
3136
|
+
interpolationkey: p
|
|
3137
|
+
}) : w;
|
|
3137
3138
|
}
|
|
3138
|
-
const y =
|
|
3139
|
-
return this.format(vr(t, l,
|
|
3139
|
+
const y = p.split(this.formatSeparator), x = y.shift().trim(), _ = y.join(this.formatSeparator).trim();
|
|
3140
|
+
return this.format(vr(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), _, n, {
|
|
3140
3141
|
...s,
|
|
3141
3142
|
...t,
|
|
3142
|
-
interpolationkey:
|
|
3143
|
+
interpolationkey: x
|
|
3143
3144
|
});
|
|
3144
3145
|
};
|
|
3145
3146
|
this.resetRegExp();
|
|
3146
3147
|
const f = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, u = ((m = s == null ? void 0 : s.interpolation) == null ? void 0 : m.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3147
3148
|
return [{
|
|
3148
3149
|
regex: this.regexpUnescape,
|
|
3149
|
-
safeValue: (
|
|
3150
|
+
safeValue: (p) => _t(p)
|
|
3150
3151
|
}, {
|
|
3151
3152
|
regex: this.regexp,
|
|
3152
|
-
safeValue: (
|
|
3153
|
-
}].forEach((
|
|
3154
|
-
for (o = 0; a =
|
|
3153
|
+
safeValue: (p) => this.escapeValue ? _t(this.escape(p)) : _t(p)
|
|
3154
|
+
}].forEach((p) => {
|
|
3155
|
+
for (o = 0; a = p.regex.exec(e); ) {
|
|
3155
3156
|
const y = a[1].trim();
|
|
3156
3157
|
if (i = c(y), i === void 0)
|
|
3157
3158
|
if (typeof f == "function") {
|
|
3158
|
-
const
|
|
3159
|
-
i = q(
|
|
3159
|
+
const _ = f(e, a, s);
|
|
3160
|
+
i = q(_) ? _ : "";
|
|
3160
3161
|
} else if (s && Object.prototype.hasOwnProperty.call(s, y))
|
|
3161
3162
|
i = "";
|
|
3162
3163
|
else if (u) {
|
|
@@ -3165,8 +3166,8 @@ class Un {
|
|
|
3165
3166
|
} else
|
|
3166
3167
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), i = "";
|
|
3167
3168
|
else !q(i) && !this.useRawValueToEscape && (i = cr(i));
|
|
3168
|
-
const
|
|
3169
|
-
if (e = e.replace(a[0],
|
|
3169
|
+
const x = p.safeValue(i);
|
|
3170
|
+
if (e = e.replace(a[0], x), u ? (p.regex.lastIndex += i.length, p.regex.lastIndex -= a[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3170
3171
|
break;
|
|
3171
3172
|
}
|
|
3172
3173
|
}), e;
|
|
@@ -3177,17 +3178,17 @@ class Un {
|
|
|
3177
3178
|
const f = this.nestingOptionsSeparator;
|
|
3178
3179
|
if (l.indexOf(f) < 0) return l;
|
|
3179
3180
|
const u = l.split(new RegExp(`${f}[ ]*{`));
|
|
3180
|
-
let
|
|
3181
|
-
l = u[0],
|
|
3182
|
-
const m =
|
|
3183
|
-
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !
|
|
3181
|
+
let d = `{${u[1]}`;
|
|
3182
|
+
l = u[0], d = this.interpolate(d, i);
|
|
3183
|
+
const m = d.match(/'/g), p = d.match(/"/g);
|
|
3184
|
+
(((m == null ? void 0 : m.length) ?? 0) % 2 === 0 && !p || p.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
3184
3185
|
try {
|
|
3185
|
-
i = JSON.parse(
|
|
3186
|
+
i = JSON.parse(d), c && (i = {
|
|
3186
3187
|
...c,
|
|
3187
3188
|
...i
|
|
3188
3189
|
});
|
|
3189
3190
|
} catch (y) {
|
|
3190
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${
|
|
3191
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${l}`, y), `${l}${f}${d}`;
|
|
3191
3192
|
}
|
|
3192
3193
|
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, l;
|
|
3193
3194
|
};
|
|
@@ -3303,10 +3304,10 @@ class Hn {
|
|
|
3303
3304
|
formatOptions: f
|
|
3304
3305
|
} = Wn(l);
|
|
3305
3306
|
if (this.formats[c]) {
|
|
3306
|
-
let
|
|
3307
|
+
let d = o;
|
|
3307
3308
|
try {
|
|
3308
|
-
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {},
|
|
3309
|
-
|
|
3309
|
+
const m = ((u = s == null ? void 0 : s.formatParams) == null ? void 0 : u[s.interpolationkey]) || {}, p = m.locale || m.lng || s.locale || s.lng || n;
|
|
3310
|
+
d = this.formats[c](o, p, {
|
|
3310
3311
|
...f,
|
|
3311
3312
|
...s,
|
|
3312
3313
|
...m
|
|
@@ -3314,7 +3315,7 @@ class Hn {
|
|
|
3314
3315
|
} catch (m) {
|
|
3315
3316
|
this.logger.warn(m);
|
|
3316
3317
|
}
|
|
3317
|
-
return
|
|
3318
|
+
return d;
|
|
3318
3319
|
} else
|
|
3319
3320
|
this.logger.warn(`there was no format function for ${c}`);
|
|
3320
3321
|
return o;
|
|
@@ -3334,8 +3335,8 @@ class Kn extends yt {
|
|
|
3334
3335
|
return e.forEach((c) => {
|
|
3335
3336
|
let f = !0;
|
|
3336
3337
|
t.forEach((u) => {
|
|
3337
|
-
const
|
|
3338
|
-
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[
|
|
3338
|
+
const d = `${c}|${u}`;
|
|
3339
|
+
!n.reload && this.store.hasResourceBundle(c, u) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, f = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), l[u] === void 0 && (l[u] = !0)));
|
|
3339
3340
|
}), f || (o[c] = !0);
|
|
3340
3341
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3341
3342
|
pending: i,
|
|
@@ -3431,26 +3432,26 @@ class Kn extends yt {
|
|
|
3431
3432
|
}
|
|
3432
3433
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3433
3434
|
}) {
|
|
3434
|
-
var l, c, f, u,
|
|
3435
|
+
var l, c, f, u, d;
|
|
3435
3436
|
if ((c = (l = this.services) == null ? void 0 : l.utils) != null && c.hasLoadedNamespace && !((u = (f = this.services) == null ? void 0 : f.utils) != null && u.hasLoadedNamespace(t))) {
|
|
3436
3437
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
3437
3438
|
return;
|
|
3438
3439
|
}
|
|
3439
3440
|
if (!(n == null || n === "")) {
|
|
3440
|
-
if ((
|
|
3441
|
+
if ((d = this.backend) != null && d.create) {
|
|
3441
3442
|
const m = {
|
|
3442
3443
|
...i,
|
|
3443
3444
|
isUpdate: a
|
|
3444
|
-
},
|
|
3445
|
-
if (
|
|
3445
|
+
}, p = this.backend.create.bind(this.backend);
|
|
3446
|
+
if (p.length < 6)
|
|
3446
3447
|
try {
|
|
3447
3448
|
let y;
|
|
3448
|
-
|
|
3449
|
+
p.length === 5 ? y = p(e, t, n, s, m) : y = p(e, t, n, s), y && typeof y.then == "function" ? y.then((x) => o(null, x)).catch(o) : o(null, y);
|
|
3449
3450
|
} catch (y) {
|
|
3450
3451
|
o(y);
|
|
3451
3452
|
}
|
|
3452
3453
|
else
|
|
3453
|
-
|
|
3454
|
+
p(e, t, n, s, o, m);
|
|
3454
3455
|
}
|
|
3455
3456
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3456
3457
|
}
|
|
@@ -3558,12 +3559,12 @@ class Ge extends yt {
|
|
|
3558
3559
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3559
3560
|
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (u.formatter = s(c), u.formatter.init(u, this.options), this.options.interpolation.format = u.formatter.format.bind(u.formatter)), u.interpolator = new Un(this.options), u.utils = {
|
|
3560
3561
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3561
|
-
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (
|
|
3562
|
-
this.emit(
|
|
3563
|
-
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (
|
|
3564
|
-
this.emit(
|
|
3565
|
-
}), this.modules.external.forEach((
|
|
3566
|
-
|
|
3562
|
+
}, u.backendConnector = new Kn(s(this.modules.backend), u.resourceStore, u, this.options), u.backendConnector.on("*", (d, ...m) => {
|
|
3563
|
+
this.emit(d, ...m);
|
|
3564
|
+
}), this.modules.languageDetector && (u.languageDetector = s(this.modules.languageDetector), u.languageDetector.init && u.languageDetector.init(u, this.options.detection, this.options)), this.modules.i18nFormat && (u.i18nFormat = s(this.modules.i18nFormat), u.i18nFormat.init && u.i18nFormat.init(this)), this.translator = new dt(this.services, this.options), this.translator.on("*", (d, ...m) => {
|
|
3565
|
+
this.emit(d, ...m);
|
|
3566
|
+
}), this.modules.external.forEach((d) => {
|
|
3567
|
+
d.init && d.init(this);
|
|
3567
3568
|
});
|
|
3568
3569
|
}
|
|
3569
3570
|
if (this.format = this.options.interpolation.format, t || (t = rt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
@@ -3637,8 +3638,8 @@ class Ge extends yt {
|
|
|
3637
3638
|
var f, u;
|
|
3638
3639
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3639
3640
|
const l = q(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(q(o) ? [o] : o);
|
|
3640
|
-
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (
|
|
3641
|
-
a(
|
|
3641
|
+
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (d) => {
|
|
3642
|
+
a(d, c);
|
|
3642
3643
|
});
|
|
3643
3644
|
};
|
|
3644
3645
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
|
|
@@ -3898,41 +3899,41 @@ const kr = ({
|
|
|
3898
3899
|
onChange: c,
|
|
3899
3900
|
onOptionsRequest: f,
|
|
3900
3901
|
onBlur: u,
|
|
3901
|
-
_multiActiveIndex:
|
|
3902
|
+
_multiActiveIndex: d,
|
|
3902
3903
|
...m
|
|
3903
3904
|
}) => {
|
|
3904
|
-
const
|
|
3905
|
+
const p = ce(null), [y, x] = G(r), [_, w] = G(e), { translate: S } = Ae(), [E, b] = G(!1), [j, k] = G(t || []), [A, O] = G(0), [T, C] = G([r]), { anchorRef: D, targetRef: I, anchorWidth: F } = ht({
|
|
3905
3906
|
position: "bottom",
|
|
3906
|
-
enabled:
|
|
3907
|
-
}),
|
|
3908
|
-
var
|
|
3909
|
-
|
|
3907
|
+
enabled: E
|
|
3908
|
+
}), P = ue(() => {
|
|
3909
|
+
var R;
|
|
3910
|
+
b(!1), (R = p == null ? void 0 : p.current) == null || R.focus();
|
|
3910
3911
|
}, []);
|
|
3911
|
-
gt([
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3914
|
-
const
|
|
3915
|
-
k(
|
|
3916
|
-
}) :
|
|
3912
|
+
gt([I], E, () => P());
|
|
3913
|
+
const V = Dn(400), z = (R) => {
|
|
3914
|
+
R.length >= a ? o && f && V(async () => {
|
|
3915
|
+
const L = await f(o, R);
|
|
3916
|
+
k(L), O(L.length > 0 ? 0 : -1), b(!0);
|
|
3917
|
+
}) : P(), x(R), w(e), l || c == null || c(R, e);
|
|
3917
3918
|
}, J = () => {
|
|
3918
|
-
|
|
3919
|
-
}, Y = (
|
|
3920
|
-
l ? (
|
|
3921
|
-
const
|
|
3922
|
-
|
|
3923
|
-
}, h = (
|
|
3924
|
-
|
|
3925
|
-
},
|
|
3926
|
-
if ((
|
|
3927
|
-
const
|
|
3928
|
-
|
|
3929
|
-
}
|
|
3930
|
-
switch (
|
|
3919
|
+
E || u == null || u();
|
|
3920
|
+
}, Y = (R) => {
|
|
3921
|
+
l ? (x(""), w("")) : (x(R.id), w(R.label)), c == null || c(R.id, R.label);
|
|
3922
|
+
const L = j.findIndex(($) => $.id === R.id);
|
|
3923
|
+
O(L), C([R.id]), P();
|
|
3924
|
+
}, h = (R) => {
|
|
3925
|
+
R.key === "Escape" && (P(), O(-1));
|
|
3926
|
+
}, v = (R) => {
|
|
3927
|
+
if ((R.key === "ArrowDown" || R.key === "ArrowUp") && (R.preventDefault(), E)) {
|
|
3928
|
+
const L = R.key === "ArrowDown" ? (A + 1) % j.length : (A - 1 + j.length) % j.length;
|
|
3929
|
+
O(L);
|
|
3930
|
+
}
|
|
3931
|
+
switch (R.key) {
|
|
3931
3932
|
case "Enter":
|
|
3932
|
-
|
|
3933
|
+
A >= 0 && A < j.length ? Y(j[A]) : l && (c == null || c(y, ""), P(), x(""), w(""));
|
|
3933
3934
|
break;
|
|
3934
3935
|
case "Escape":
|
|
3935
|
-
|
|
3936
|
+
P(), O(-1);
|
|
3936
3937
|
break;
|
|
3937
3938
|
}
|
|
3938
3939
|
};
|
|
@@ -3942,34 +3943,34 @@ const kr = ({
|
|
|
3942
3943
|
{
|
|
3943
3944
|
...m,
|
|
3944
3945
|
bindValue: y,
|
|
3945
|
-
optionalDisplayValue:
|
|
3946
|
+
optionalDisplayValue: _,
|
|
3946
3947
|
displayMode: n,
|
|
3947
3948
|
isEditable: i,
|
|
3948
3949
|
shapeIcon: "magnify",
|
|
3949
|
-
placeholder:
|
|
3950
|
+
placeholder: S(
|
|
3950
3951
|
Oe.AUTOCOMPLETE_DEFAULT_PLACEHOLDER
|
|
3951
3952
|
),
|
|
3952
|
-
ref:
|
|
3953
|
-
inputRef:
|
|
3953
|
+
ref: D,
|
|
3954
|
+
inputRef: p,
|
|
3954
3955
|
onChange: z,
|
|
3955
|
-
onKeyDown:
|
|
3956
|
+
onKeyDown: v,
|
|
3956
3957
|
onBlur: J,
|
|
3957
3958
|
"aria-autocomplete": "list"
|
|
3958
3959
|
}
|
|
3959
3960
|
),
|
|
3960
|
-
|
|
3961
|
+
E && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
3961
3962
|
Ir,
|
|
3962
3963
|
{
|
|
3963
3964
|
options: j,
|
|
3964
3965
|
displayMode: s,
|
|
3965
3966
|
onClick: Y,
|
|
3966
|
-
ref:
|
|
3967
|
-
selectedIndex:
|
|
3968
|
-
activeIndex:
|
|
3969
|
-
width:
|
|
3967
|
+
ref: I,
|
|
3968
|
+
selectedIndex: A,
|
|
3969
|
+
activeIndex: d || T,
|
|
3970
|
+
width: F,
|
|
3970
3971
|
showFilter: !1,
|
|
3971
3972
|
onKeyDown: h,
|
|
3972
|
-
isOpen:
|
|
3973
|
+
isOpen: E
|
|
3973
3974
|
}
|
|
3974
3975
|
) })
|
|
3975
3976
|
] });
|
|
@@ -3986,27 +3987,27 @@ const kr = ({
|
|
|
3986
3987
|
fullWidth: c,
|
|
3987
3988
|
disabled: f,
|
|
3988
3989
|
justify: u,
|
|
3989
|
-
squared:
|
|
3990
|
+
squared: d,
|
|
3990
3991
|
onClick: m,
|
|
3991
|
-
onOptionsRequest:
|
|
3992
|
+
onOptionsRequest: p
|
|
3992
3993
|
}) => {
|
|
3993
|
-
const [y,
|
|
3994
|
+
const [y, x] = G(r);
|
|
3994
3995
|
re(() => {
|
|
3995
|
-
!y &&
|
|
3996
|
+
!y && p && e && p(e, void 0).then((S) => x(S)).catch((S) => {
|
|
3996
3997
|
console.error(
|
|
3997
3998
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
3998
|
-
|
|
3999
|
+
S
|
|
3999
4000
|
);
|
|
4000
4001
|
});
|
|
4001
|
-
}, [y, e,
|
|
4002
|
-
const
|
|
4002
|
+
}, [y, e, p]);
|
|
4003
|
+
const _ = {
|
|
4003
4004
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
4004
|
-
},
|
|
4005
|
-
const
|
|
4006
|
-
bindValue:
|
|
4007
|
-
optionalDisplayValue:
|
|
4008
|
-
fun:
|
|
4009
|
-
icon:
|
|
4005
|
+
}, w = y == null ? void 0 : y.map((S, E) => {
|
|
4006
|
+
const b = {
|
|
4007
|
+
bindValue: S.id,
|
|
4008
|
+
optionalDisplayValue: S.label,
|
|
4009
|
+
fun: S.fun,
|
|
4010
|
+
icon: S.icon,
|
|
4010
4011
|
variant: a,
|
|
4011
4012
|
appearance: i,
|
|
4012
4013
|
showText: o,
|
|
@@ -4015,14 +4016,14 @@ const kr = ({
|
|
|
4015
4016
|
disabled: f,
|
|
4016
4017
|
sizing: s,
|
|
4017
4018
|
justify: u,
|
|
4018
|
-
squared:
|
|
4019
|
+
squared: d,
|
|
4019
4020
|
onClick: () => {
|
|
4020
|
-
m == null || m(
|
|
4021
|
+
m == null || m(S.id, S.fun);
|
|
4021
4022
|
}
|
|
4022
4023
|
};
|
|
4023
|
-
return /* @__PURE__ */ g.jsx(je, { ...
|
|
4024
|
+
return /* @__PURE__ */ g.jsx(je, { ...b }, `button-${E}`);
|
|
4024
4025
|
});
|
|
4025
|
-
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className:
|
|
4026
|
+
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: _.container, children: w });
|
|
4026
4027
|
}, hs = {
|
|
4027
4028
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
4028
4029
|
}, ms = ({
|
|
@@ -4068,28 +4069,28 @@ const kr = ({
|
|
|
4068
4069
|
container: `${["smp-chips-container"]}`,
|
|
4069
4070
|
element: "smp-chips-element"
|
|
4070
4071
|
}, f = (m) => {
|
|
4071
|
-
n == null || n(r.filter((
|
|
4072
|
+
n == null || n(r.filter((p, y) => y !== m));
|
|
4072
4073
|
}, u = (m) => {
|
|
4073
4074
|
l(m);
|
|
4074
|
-
},
|
|
4075
|
+
}, d = (m) => {
|
|
4075
4076
|
if (o === null || o === m) return;
|
|
4076
|
-
const
|
|
4077
|
-
|
|
4077
|
+
const p = [...r], [y] = p.splice(o, 1);
|
|
4078
|
+
p.splice(m, 0, y), n == null || n(p), l(null);
|
|
4078
4079
|
};
|
|
4079
|
-
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m,
|
|
4080
|
+
return /* @__PURE__ */ g.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((m, p) => {
|
|
4080
4081
|
const y = Fe(
|
|
4081
4082
|
m.bindValue,
|
|
4082
4083
|
m.optionalDisplayValue,
|
|
4083
4084
|
t
|
|
4084
|
-
),
|
|
4085
|
+
), x = /* @__PURE__ */ g.jsxs(
|
|
4085
4086
|
"div",
|
|
4086
4087
|
{
|
|
4087
4088
|
className: c.element,
|
|
4088
4089
|
role: "listitem",
|
|
4089
4090
|
draggable: i,
|
|
4090
|
-
onDragStart: () => u(
|
|
4091
|
-
onDragOver: (
|
|
4092
|
-
onDrop: () => i && p
|
|
4091
|
+
onDragStart: () => u(p),
|
|
4092
|
+
onDragOver: (w) => i && w.preventDefault(),
|
|
4093
|
+
onDrop: () => i && d(p),
|
|
4093
4094
|
style: {
|
|
4094
4095
|
"--smp-chips-backgroundColor-base": a
|
|
4095
4096
|
},
|
|
@@ -4101,22 +4102,22 @@ const kr = ({
|
|
|
4101
4102
|
{
|
|
4102
4103
|
icon: "close",
|
|
4103
4104
|
isInteractable: !0,
|
|
4104
|
-
onClick: () => f(
|
|
4105
|
+
onClick: () => f(p),
|
|
4105
4106
|
color: s
|
|
4106
4107
|
}
|
|
4107
4108
|
)
|
|
4108
4109
|
]
|
|
4109
4110
|
},
|
|
4110
|
-
`chip-${
|
|
4111
|
-
),
|
|
4111
|
+
`chip-${p}`
|
|
4112
|
+
), _ = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
4112
4113
|
le,
|
|
4113
4114
|
{
|
|
4114
4115
|
icon: "chevron-right",
|
|
4115
4116
|
color: s
|
|
4116
4117
|
},
|
|
4117
|
-
`separator-${
|
|
4118
|
+
`separator-${p}`
|
|
4118
4119
|
) : null;
|
|
4119
|
-
return [
|
|
4120
|
+
return [x, _].filter(Boolean);
|
|
4120
4121
|
}) });
|
|
4121
4122
|
};
|
|
4122
4123
|
function kt(r, e) {
|
|
@@ -4139,8 +4140,8 @@ function kt(r, e) {
|
|
|
4139
4140
|
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
4140
4141
|
const f = s();
|
|
4141
4142
|
if (f.length === 0) return;
|
|
4142
|
-
const u = f[0],
|
|
4143
|
-
c.shiftKey && document.activeElement === u ? (c.preventDefault(),
|
|
4143
|
+
const u = f[0], d = f[f.length - 1];
|
|
4144
|
+
c.shiftKey && document.activeElement === u ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), u.focus());
|
|
4144
4145
|
}, o = (c) => {
|
|
4145
4146
|
if (n && !n.contains(c.target)) {
|
|
4146
4147
|
c.preventDefault();
|
|
@@ -4171,34 +4172,34 @@ const gs = ({
|
|
|
4171
4172
|
multiActiveIndex: c,
|
|
4172
4173
|
...f
|
|
4173
4174
|
}) => {
|
|
4174
|
-
const u = ce(null), [
|
|
4175
|
+
const u = ce(null), [d, m] = G(!1), [p, y] = G(t), [x, _] = G(-1), [w, S] = G([r]), E = Re(), { anchorRef: b, targetRef: j, anchorWidth: k } = ht({
|
|
4175
4176
|
position: "bottom",
|
|
4176
|
-
enabled:
|
|
4177
|
-
}),
|
|
4178
|
-
var
|
|
4179
|
-
m(!1), (
|
|
4177
|
+
enabled: d
|
|
4178
|
+
}), A = ue(() => {
|
|
4179
|
+
var I;
|
|
4180
|
+
m(!1), (I = u == null ? void 0 : u.current) == null || I.focus();
|
|
4180
4181
|
}, []);
|
|
4181
|
-
gt([j,
|
|
4182
|
-
const
|
|
4183
|
-
e == null || e(
|
|
4184
|
-
const
|
|
4185
|
-
|
|
4186
|
-
},
|
|
4187
|
-
|
|
4188
|
-
},
|
|
4189
|
-
(
|
|
4190
|
-
},
|
|
4191
|
-
s && (o && l ?
|
|
4192
|
-
y(
|
|
4193
|
-
}) : m((
|
|
4182
|
+
gt([j, b], d, () => A()), kt(d, j);
|
|
4183
|
+
const O = (I) => {
|
|
4184
|
+
e == null || e(I.id, I.label);
|
|
4185
|
+
const F = p.findIndex((P) => P.id === I.id);
|
|
4186
|
+
_(F), S([I.id]), A();
|
|
4187
|
+
}, T = (I) => {
|
|
4188
|
+
I.key === "Escape" && (A(), _(-1));
|
|
4189
|
+
}, C = (I) => {
|
|
4190
|
+
(I.key === "ArrowDown" || I.key === "ArrowUp") && (I.preventDefault(), D());
|
|
4191
|
+
}, D = () => {
|
|
4192
|
+
s && (o && l ? d ? m(!1) : l(o, void 0).then((I) => {
|
|
4193
|
+
y(I), _(I.length > 0 ? 0 : -1), m(!0);
|
|
4194
|
+
}) : m((I) => !I));
|
|
4194
4195
|
};
|
|
4195
4196
|
return /* @__PURE__ */ g.jsxs(
|
|
4196
4197
|
"div",
|
|
4197
4198
|
{
|
|
4198
4199
|
role: "combobox",
|
|
4199
|
-
"aria-expanded":
|
|
4200
|
-
"aria-controls":
|
|
4201
|
-
"aria-owns":
|
|
4200
|
+
"aria-expanded": d,
|
|
4201
|
+
"aria-controls": E,
|
|
4202
|
+
"aria-owns": E,
|
|
4202
4203
|
"data-component": "combobox",
|
|
4203
4204
|
children: [
|
|
4204
4205
|
/* @__PURE__ */ g.jsx(
|
|
@@ -4208,31 +4209,31 @@ const gs = ({
|
|
|
4208
4209
|
bindValue: r,
|
|
4209
4210
|
optionalDisplayValue: n,
|
|
4210
4211
|
displayMode: a,
|
|
4211
|
-
onShapeIconClick:
|
|
4212
|
-
onKeyDown:
|
|
4213
|
-
onClick:
|
|
4212
|
+
onShapeIconClick: D,
|
|
4213
|
+
onKeyDown: C,
|
|
4214
|
+
onClick: D,
|
|
4214
4215
|
shapeIcon: "arrow_drop_down",
|
|
4215
|
-
rotatedShapeIcon:
|
|
4216
|
+
rotatedShapeIcon: d,
|
|
4216
4217
|
isEditable: s,
|
|
4217
|
-
ref:
|
|
4218
|
+
ref: b,
|
|
4218
4219
|
inputRef: u,
|
|
4219
4220
|
"aria-autocomplete": "list",
|
|
4220
4221
|
variant: "notSelectable"
|
|
4221
4222
|
}
|
|
4222
4223
|
),
|
|
4223
|
-
|
|
4224
|
+
d && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
4224
4225
|
Ir,
|
|
4225
4226
|
{
|
|
4226
|
-
id:
|
|
4227
|
-
options:
|
|
4227
|
+
id: E,
|
|
4228
|
+
options: p,
|
|
4228
4229
|
displayMode: i,
|
|
4229
4230
|
ref: j,
|
|
4230
|
-
isOpen:
|
|
4231
|
-
selectedIndex:
|
|
4232
|
-
activeIndex: c ||
|
|
4231
|
+
isOpen: d,
|
|
4232
|
+
selectedIndex: x,
|
|
4233
|
+
activeIndex: c || w,
|
|
4233
4234
|
width: k,
|
|
4234
|
-
onClick:
|
|
4235
|
-
onKeyDown:
|
|
4235
|
+
onClick: O,
|
|
4236
|
+
onKeyDown: T
|
|
4236
4237
|
}
|
|
4237
4238
|
) })
|
|
4238
4239
|
]
|
|
@@ -4256,11 +4257,11 @@ function bs({
|
|
|
4256
4257
|
r || i() || /* @__PURE__ */ new Date()
|
|
4257
4258
|
), [f, u] = G(
|
|
4258
4259
|
l ? l.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
4259
|
-
), [
|
|
4260
|
+
), [d, m] = G(
|
|
4260
4261
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4261
|
-
), [
|
|
4262
|
+
), [p, y] = G(
|
|
4262
4263
|
l ? l.getDate() : null
|
|
4263
|
-
),
|
|
4264
|
+
), x = ce(null), _ = ce([]), w = [
|
|
4264
4265
|
a(pe.JANUARY),
|
|
4265
4266
|
a(pe.FEBRUARY),
|
|
4266
4267
|
a(pe.MARCH),
|
|
@@ -4273,7 +4274,7 @@ function bs({
|
|
|
4273
4274
|
a(pe.OCTOBER),
|
|
4274
4275
|
a(pe.NOVEMBER),
|
|
4275
4276
|
a(pe.DECEMBER)
|
|
4276
|
-
],
|
|
4277
|
+
], S = [
|
|
4277
4278
|
{
|
|
4278
4279
|
value: a(fe.SUNDAY_SHORT),
|
|
4279
4280
|
full: a(fe.SUNDAY)
|
|
@@ -4302,38 +4303,38 @@ function bs({
|
|
|
4302
4303
|
value: a(fe.SATURDAY_SHORT),
|
|
4303
4304
|
full: a(fe.SATURDAY)
|
|
4304
4305
|
}
|
|
4305
|
-
],
|
|
4306
|
-
const
|
|
4307
|
-
return
|
|
4308
|
-
}),
|
|
4309
|
-
|
|
4306
|
+
], E = (Y) => t.some((h) => {
|
|
4307
|
+
const v = h.start.getTime(), R = h.end.getTime(), L = Y.getTime();
|
|
4308
|
+
return L >= v && L <= R;
|
|
4309
|
+
}), b = (Y) => {
|
|
4310
|
+
E(Y) || (c(Y), y(Y.getDate()), e && e(_n(Y)));
|
|
4310
4311
|
}, j = () => {
|
|
4311
|
-
f === 0 ? (u(11), m(
|
|
4312
|
+
f === 0 ? (u(11), m(d - 1)) : u(f - 1), y(1);
|
|
4312
4313
|
}, k = () => {
|
|
4313
|
-
f === 11 ? (u(0), m(
|
|
4314
|
-
},
|
|
4315
|
-
var
|
|
4316
|
-
const h =
|
|
4317
|
-
(
|
|
4314
|
+
f === 11 ? (u(0), m(d + 1)) : u(f + 1), y(1);
|
|
4315
|
+
}, A = (Y, h) => new Date(Y, h + 1, 0).getDate(), O = (Y, h) => new Date(Y, h, 1).getDay(), T = (Y) => {
|
|
4316
|
+
var v;
|
|
4317
|
+
const h = F.findIndex(
|
|
4318
|
+
(R) => R !== null && R.getDate() === Y
|
|
4318
4319
|
);
|
|
4319
|
-
h !== -1 &&
|
|
4320
|
-
},
|
|
4321
|
-
const
|
|
4322
|
-
if (!
|
|
4323
|
-
const
|
|
4320
|
+
h !== -1 && _.current[h] && ((v = _.current[h]) == null || v.focus(), y(Y));
|
|
4321
|
+
}, C = (Y, h) => {
|
|
4322
|
+
const v = F[h];
|
|
4323
|
+
if (!v) return;
|
|
4324
|
+
const R = A(d, f), L = v.getDate();
|
|
4324
4325
|
switch (Y.key) {
|
|
4325
4326
|
case "ArrowRight":
|
|
4326
4327
|
Y.preventDefault();
|
|
4327
4328
|
{
|
|
4328
|
-
let
|
|
4329
|
-
if (
|
|
4330
|
-
const U = f === 11 ?
|
|
4331
|
-
|
|
4332
|
-
|
|
4329
|
+
let $ = L + 1, N = new Date(d, f, $);
|
|
4330
|
+
if ($ > R) {
|
|
4331
|
+
const U = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4332
|
+
$ = 1, N = new Date(U, B, $), k(), setTimeout(() => {
|
|
4333
|
+
D(1, "forward");
|
|
4333
4334
|
}, 0);
|
|
4334
4335
|
return;
|
|
4335
4336
|
}
|
|
4336
|
-
|
|
4337
|
+
E(N) ? D($, "forward") : T($);
|
|
4337
4338
|
}
|
|
4338
4339
|
break;
|
|
4339
4340
|
case "Tab":
|
|
@@ -4341,142 +4342,142 @@ function bs({
|
|
|
4341
4342
|
case "ArrowLeft":
|
|
4342
4343
|
Y.preventDefault();
|
|
4343
4344
|
{
|
|
4344
|
-
let
|
|
4345
|
-
if (
|
|
4346
|
-
const U = f === 0 ?
|
|
4347
|
-
|
|
4348
|
-
|
|
4345
|
+
let $ = L - 1, N = new Date(d, f, $);
|
|
4346
|
+
if ($ < 1) {
|
|
4347
|
+
const U = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1, W = A(U, B);
|
|
4348
|
+
$ = W, N = new Date(U, B, $), j(), setTimeout(() => {
|
|
4349
|
+
D(W, "backward");
|
|
4349
4350
|
}, 0);
|
|
4350
4351
|
return;
|
|
4351
4352
|
}
|
|
4352
|
-
|
|
4353
|
+
E(N) ? D($, "backward") : T($);
|
|
4353
4354
|
}
|
|
4354
4355
|
break;
|
|
4355
4356
|
case "ArrowUp":
|
|
4356
4357
|
Y.preventDefault();
|
|
4357
4358
|
{
|
|
4358
|
-
let
|
|
4359
|
-
if (
|
|
4360
|
-
const U = f === 0 ?
|
|
4361
|
-
|
|
4362
|
-
|
|
4359
|
+
let $ = L - 7, N = new Date(d, f, $);
|
|
4360
|
+
if ($ < 1) {
|
|
4361
|
+
const U = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1;
|
|
4362
|
+
$ = A(U, B) + $, N = new Date(U, B, $), j(), setTimeout(() => {
|
|
4363
|
+
D($, "backward");
|
|
4363
4364
|
}, 0);
|
|
4364
4365
|
return;
|
|
4365
4366
|
}
|
|
4366
|
-
|
|
4367
|
+
E(N) ? D($, "backward") : T($);
|
|
4367
4368
|
}
|
|
4368
4369
|
break;
|
|
4369
4370
|
case "ArrowDown":
|
|
4370
4371
|
Y.preventDefault();
|
|
4371
4372
|
{
|
|
4372
|
-
let
|
|
4373
|
-
if (
|
|
4374
|
-
const U = f === 11 ?
|
|
4375
|
-
|
|
4376
|
-
|
|
4373
|
+
let $ = L + 7, N = new Date(d, f, $);
|
|
4374
|
+
if ($ > R) {
|
|
4375
|
+
const U = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4376
|
+
$ = $ - R, N = new Date(U, B, $), k(), setTimeout(() => {
|
|
4377
|
+
D($, "forward");
|
|
4377
4378
|
}, 0);
|
|
4378
4379
|
return;
|
|
4379
4380
|
}
|
|
4380
|
-
|
|
4381
|
+
E(N) ? D($, "forward") : T($);
|
|
4381
4382
|
}
|
|
4382
4383
|
break;
|
|
4383
4384
|
case "Home":
|
|
4384
|
-
Y.preventDefault(),
|
|
4385
|
+
Y.preventDefault(), D(1, "forward");
|
|
4385
4386
|
break;
|
|
4386
4387
|
case "End":
|
|
4387
|
-
Y.preventDefault(),
|
|
4388
|
+
Y.preventDefault(), D(R, "backward");
|
|
4388
4389
|
break;
|
|
4389
4390
|
case "PageUp":
|
|
4390
4391
|
Y.preventDefault(), j(), setTimeout(() => {
|
|
4391
|
-
const
|
|
4392
|
-
f === 0 ?
|
|
4392
|
+
const $ = A(
|
|
4393
|
+
f === 0 ? d - 1 : d,
|
|
4393
4394
|
f === 0 ? 11 : f - 1
|
|
4394
|
-
),
|
|
4395
|
-
|
|
4395
|
+
), N = Math.min(L, $);
|
|
4396
|
+
D(N, "forward");
|
|
4396
4397
|
}, 0);
|
|
4397
4398
|
break;
|
|
4398
4399
|
case "PageDown":
|
|
4399
4400
|
Y.preventDefault(), k(), setTimeout(() => {
|
|
4400
|
-
const
|
|
4401
|
-
f === 11 ?
|
|
4401
|
+
const $ = A(
|
|
4402
|
+
f === 11 ? d + 1 : d,
|
|
4402
4403
|
f === 11 ? 0 : f + 1
|
|
4403
|
-
),
|
|
4404
|
-
|
|
4404
|
+
), N = Math.min(L, $);
|
|
4405
|
+
D(N, "forward");
|
|
4405
4406
|
}, 0);
|
|
4406
4407
|
break;
|
|
4407
4408
|
case " ":
|
|
4408
4409
|
case "Space":
|
|
4409
|
-
if (
|
|
4410
|
-
y(
|
|
4410
|
+
if (E(v)) return;
|
|
4411
|
+
y(v.getDate()), c(v);
|
|
4411
4412
|
break;
|
|
4412
4413
|
case "Enter":
|
|
4413
|
-
Y.preventDefault(), v
|
|
4414
|
+
Y.preventDefault(), b(v);
|
|
4414
4415
|
break;
|
|
4415
4416
|
}
|
|
4416
|
-
},
|
|
4417
|
-
const
|
|
4417
|
+
}, D = (Y, h) => {
|
|
4418
|
+
const v = A(d, f);
|
|
4418
4419
|
if (h === "forward") {
|
|
4419
|
-
for (let
|
|
4420
|
-
const
|
|
4421
|
-
if (!
|
|
4422
|
-
R
|
|
4420
|
+
for (let R = Y; R <= v; R++) {
|
|
4421
|
+
const L = new Date(d, f, R);
|
|
4422
|
+
if (!E(L)) {
|
|
4423
|
+
T(R);
|
|
4423
4424
|
return;
|
|
4424
4425
|
}
|
|
4425
4426
|
}
|
|
4426
4427
|
k(), setTimeout(() => {
|
|
4427
|
-
|
|
4428
|
+
D(1, "forward");
|
|
4428
4429
|
}, 0);
|
|
4429
4430
|
} else {
|
|
4430
|
-
for (let
|
|
4431
|
-
const U = new Date(
|
|
4432
|
-
if (!
|
|
4433
|
-
|
|
4431
|
+
for (let N = Y; N >= 1; N--) {
|
|
4432
|
+
const U = new Date(d, f, N);
|
|
4433
|
+
if (!E(U)) {
|
|
4434
|
+
T(N);
|
|
4434
4435
|
return;
|
|
4435
4436
|
}
|
|
4436
4437
|
}
|
|
4437
|
-
const
|
|
4438
|
+
const R = f === 0 ? d - 1 : d, L = f === 0 ? 11 : f - 1, $ = A(R, L);
|
|
4438
4439
|
j(), setTimeout(() => {
|
|
4439
|
-
|
|
4440
|
+
D($, "backward");
|
|
4440
4441
|
}, 0);
|
|
4441
4442
|
}
|
|
4442
|
-
},
|
|
4443
|
-
const Y =
|
|
4444
|
-
for (let
|
|
4445
|
-
|
|
4446
|
-
for (let
|
|
4447
|
-
const
|
|
4448
|
-
|
|
4449
|
-
}
|
|
4450
|
-
return
|
|
4451
|
-
})(),
|
|
4452
|
-
let
|
|
4453
|
-
|
|
4454
|
-
if (
|
|
4455
|
-
for (;
|
|
4456
|
-
|
|
4457
|
-
|
|
4443
|
+
}, F = (() => {
|
|
4444
|
+
const Y = A(d, f), h = O(d, f), v = [];
|
|
4445
|
+
for (let R = 0; R < h; R++)
|
|
4446
|
+
v.push(null);
|
|
4447
|
+
for (let R = 1; R <= Y; R++) {
|
|
4448
|
+
const L = new Date(d, f, R);
|
|
4449
|
+
v.push(L);
|
|
4450
|
+
}
|
|
4451
|
+
return v;
|
|
4452
|
+
})(), P = [];
|
|
4453
|
+
let V = [];
|
|
4454
|
+
F.forEach((Y, h) => {
|
|
4455
|
+
if (V.push(Y), V.length === 7 || h === F.length - 1) {
|
|
4456
|
+
for (; V.length < 7; )
|
|
4457
|
+
V.push(null);
|
|
4458
|
+
P.push(V), V = [];
|
|
4458
4459
|
}
|
|
4459
4460
|
}), re(() => {
|
|
4460
4461
|
var Y;
|
|
4461
|
-
if (
|
|
4462
|
-
const h =
|
|
4463
|
-
(
|
|
4462
|
+
if (p !== null) {
|
|
4463
|
+
const h = F.findIndex(
|
|
4464
|
+
(v) => v !== null && v.getDate() === p
|
|
4464
4465
|
);
|
|
4465
|
-
h !== -1 &&
|
|
4466
|
+
h !== -1 && _.current[h] && ((Y = _.current[h]) == null || Y.focus());
|
|
4466
4467
|
}
|
|
4467
|
-
}, [f,
|
|
4468
|
+
}, [f, d, p, F]);
|
|
4468
4469
|
const z = {
|
|
4469
4470
|
label: "smp-datepickercalendar-label",
|
|
4470
4471
|
wrapper: `smp-datepickercalendar ${ys["smp-datepickercalendar-position"]}`,
|
|
4471
4472
|
calendar: "smp-datepickercalendar",
|
|
4472
4473
|
table: "smp-datepickercalendar-table",
|
|
4473
4474
|
th: "smp-datepickercalendar-th",
|
|
4474
|
-
td: (Y, h,
|
|
4475
|
+
td: (Y, h, v, R) => `smp-datepickercalendar-td
|
|
4475
4476
|
${Y ? "smp-datepickercalendar-td-today" : ""}
|
|
4476
4477
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4477
|
-
${
|
|
4478
|
-
${
|
|
4479
|
-
}, J = () => `${
|
|
4478
|
+
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4479
|
+
${R ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4480
|
+
}, J = () => `${w[f]} ${d.toString()}`;
|
|
4480
4481
|
return /* @__PURE__ */ g.jsxs(
|
|
4481
4482
|
"div",
|
|
4482
4483
|
{
|
|
@@ -4533,12 +4534,12 @@ function bs({
|
|
|
4533
4534
|
/* @__PURE__ */ g.jsxs(
|
|
4534
4535
|
"table",
|
|
4535
4536
|
{
|
|
4536
|
-
ref:
|
|
4537
|
+
ref: x,
|
|
4537
4538
|
role: "grid",
|
|
4538
|
-
"aria-label": `${a(Oe.CALENDAR_FOR)} ${
|
|
4539
|
+
"aria-label": `${a(Oe.CALENDAR_FOR)} ${w[f]} ${d}`,
|
|
4539
4540
|
className: z.table,
|
|
4540
4541
|
children: [
|
|
4541
|
-
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children:
|
|
4542
|
+
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: S.map((Y) => /* @__PURE__ */ g.jsx(
|
|
4542
4543
|
"th",
|
|
4543
4544
|
{
|
|
4544
4545
|
scope: "col",
|
|
@@ -4548,9 +4549,9 @@ function bs({
|
|
|
4548
4549
|
},
|
|
4549
4550
|
Y.value
|
|
4550
4551
|
)) }) }),
|
|
4551
|
-
/* @__PURE__ */ g.jsx("tbody", { children:
|
|
4552
|
-
const
|
|
4553
|
-
if (
|
|
4552
|
+
/* @__PURE__ */ g.jsx("tbody", { children: P.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((v, R) => {
|
|
4553
|
+
const L = h * 7 + R;
|
|
4554
|
+
if (v === null)
|
|
4554
4555
|
return /* @__PURE__ */ g.jsx(
|
|
4555
4556
|
"td",
|
|
4556
4557
|
{
|
|
@@ -4561,32 +4562,32 @@ function bs({
|
|
|
4561
4562
|
!0
|
|
4562
4563
|
)
|
|
4563
4564
|
},
|
|
4564
|
-
`empty-${
|
|
4565
|
+
`empty-${R}`
|
|
4565
4566
|
);
|
|
4566
|
-
const
|
|
4567
|
+
const $ = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), N = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), U = p === v.getDate(), B = E(v);
|
|
4567
4568
|
return /* @__PURE__ */ g.jsx(
|
|
4568
4569
|
"td",
|
|
4569
4570
|
{
|
|
4570
4571
|
role: "gridcell",
|
|
4571
|
-
"aria-selected":
|
|
4572
|
+
"aria-selected": N,
|
|
4572
4573
|
tabIndex: U ? 0 : -1,
|
|
4573
|
-
onClick: () => v
|
|
4574
|
-
onKeyDown: (W) =>
|
|
4575
|
-
"aria-label": `${
|
|
4576
|
-
"data-selected":
|
|
4574
|
+
onClick: () => b(v),
|
|
4575
|
+
onKeyDown: (W) => C(W, L),
|
|
4576
|
+
"aria-label": `${v.getDate()} ${w[v.getMonth()]} ${v.getFullYear()}`,
|
|
4577
|
+
"data-selected": N,
|
|
4577
4578
|
"aria-disabled": B,
|
|
4578
4579
|
ref: (W) => {
|
|
4579
|
-
|
|
4580
|
+
_.current[L] = W;
|
|
4580
4581
|
},
|
|
4581
4582
|
className: z.td(
|
|
4582
|
-
|
|
4583
|
-
|
|
4583
|
+
$,
|
|
4584
|
+
N,
|
|
4584
4585
|
U,
|
|
4585
4586
|
B
|
|
4586
4587
|
),
|
|
4587
|
-
children:
|
|
4588
|
+
children: v.getDate()
|
|
4588
4589
|
},
|
|
4589
|
-
`day-${
|
|
4590
|
+
`day-${R}`
|
|
4590
4591
|
);
|
|
4591
4592
|
}) }, `week-${h}`)) })
|
|
4592
4593
|
]
|
|
@@ -4604,45 +4605,45 @@ const vs = ({
|
|
|
4604
4605
|
isEditable: s = !0,
|
|
4605
4606
|
...a
|
|
4606
4607
|
}) => {
|
|
4607
|
-
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u,
|
|
4608
|
+
const i = ce(null), [o, l] = G(!1), [c, f] = G(r || ""), [u, d] = G(""), { anchorRef: m, targetRef: p } = ht({
|
|
4608
4609
|
position: "bottom",
|
|
4609
4610
|
enabled: o
|
|
4610
4611
|
}), y = ue(() => {
|
|
4611
|
-
var
|
|
4612
|
-
l(!1), (
|
|
4612
|
+
var O;
|
|
4613
|
+
l(!1), (O = i == null ? void 0 : i.current) == null || O.focus();
|
|
4613
4614
|
}, []);
|
|
4614
|
-
gt([
|
|
4615
|
+
gt([p, m], o, () => {
|
|
4615
4616
|
y();
|
|
4616
|
-
}), kt(o,
|
|
4617
|
-
const { format:
|
|
4618
|
-
(
|
|
4619
|
-
const
|
|
4617
|
+
}), kt(o, p);
|
|
4618
|
+
const { format: x, getCurrentLanguage: _ } = Ae(), w = ue(
|
|
4619
|
+
(O) => {
|
|
4620
|
+
const T = O.length > 5 && En(O, _()) || O, C = x(T, void 0, void 0, {
|
|
4620
4621
|
type: "date"
|
|
4621
|
-
}),
|
|
4622
|
+
}), D = typeof T != "string", I = D && T.toISOString().substring(0, 10) || "";
|
|
4622
4623
|
return {
|
|
4623
|
-
isValid:
|
|
4624
|
-
formattedDate:
|
|
4625
|
-
isoDate:
|
|
4626
|
-
normalizedDate:
|
|
4624
|
+
isValid: D,
|
|
4625
|
+
formattedDate: C,
|
|
4626
|
+
isoDate: I,
|
|
4627
|
+
normalizedDate: T
|
|
4627
4628
|
};
|
|
4628
4629
|
},
|
|
4629
|
-
[
|
|
4630
|
+
[_, x]
|
|
4630
4631
|
);
|
|
4631
4632
|
re(() => {
|
|
4632
|
-
const { formattedDate:
|
|
4633
|
-
f(
|
|
4634
|
-
}, [r,
|
|
4635
|
-
const
|
|
4633
|
+
const { formattedDate: O, isoDate: T, isValid: C } = w(r);
|
|
4634
|
+
f(C && T || r), d(C && O || r);
|
|
4635
|
+
}, [r, x, w]);
|
|
4636
|
+
const S = () => l((O) => !O), E = () => {
|
|
4636
4637
|
j(u);
|
|
4637
|
-
},
|
|
4638
|
-
j(
|
|
4639
|
-
}, j = (
|
|
4640
|
-
const { isoDate:
|
|
4641
|
-
t && t(
|
|
4642
|
-
}, k = (
|
|
4643
|
-
|
|
4644
|
-
},
|
|
4645
|
-
|
|
4638
|
+
}, b = (O) => {
|
|
4639
|
+
j(O), y();
|
|
4640
|
+
}, j = (O) => {
|
|
4641
|
+
const { isoDate: T, isValid: C } = w(O);
|
|
4642
|
+
t && t(C && T || O);
|
|
4643
|
+
}, k = (O) => {
|
|
4644
|
+
d(O);
|
|
4645
|
+
}, A = (O) => {
|
|
4646
|
+
O.key === "Enter" && (O.preventDefault(), j(u));
|
|
4646
4647
|
};
|
|
4647
4648
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4648
4649
|
/* @__PURE__ */ g.jsx(
|
|
@@ -4651,11 +4652,11 @@ const vs = ({
|
|
|
4651
4652
|
...a,
|
|
4652
4653
|
bindValue: u,
|
|
4653
4654
|
placeholder: e,
|
|
4654
|
-
onBlur:
|
|
4655
|
+
onBlur: E,
|
|
4655
4656
|
onChange: k,
|
|
4656
|
-
onKeyDown:
|
|
4657
|
+
onKeyDown: A,
|
|
4657
4658
|
shapeIcon: "calendar",
|
|
4658
|
-
onShapeIconClick:
|
|
4659
|
+
onShapeIconClick: S,
|
|
4659
4660
|
ref: m,
|
|
4660
4661
|
inputRef: i,
|
|
4661
4662
|
isEditable: s,
|
|
@@ -4667,9 +4668,9 @@ const vs = ({
|
|
|
4667
4668
|
bs,
|
|
4668
4669
|
{
|
|
4669
4670
|
disabledDateRanges: n,
|
|
4670
|
-
onDateChange:
|
|
4671
|
+
onDateChange: b,
|
|
4671
4672
|
initialValue: It(c) && c || "",
|
|
4672
|
-
targetRef:
|
|
4673
|
+
targetRef: p
|
|
4673
4674
|
}
|
|
4674
4675
|
) })
|
|
4675
4676
|
] });
|
|
@@ -4686,22 +4687,22 @@ const vs = ({
|
|
|
4686
4687
|
error: c,
|
|
4687
4688
|
onOptionsRequest: f,
|
|
4688
4689
|
onChange: u,
|
|
4689
|
-
onBlur:
|
|
4690
|
+
onBlur: d
|
|
4690
4691
|
}) => {
|
|
4691
|
-
const m = r.map((
|
|
4692
|
-
const
|
|
4693
|
-
if (
|
|
4694
|
-
|
|
4692
|
+
const m = r.map((x) => x.bindValue), p = (x, _) => {
|
|
4693
|
+
const w = [...r];
|
|
4694
|
+
if (x == "")
|
|
4695
|
+
w.pop();
|
|
4695
4696
|
else {
|
|
4696
|
-
const
|
|
4697
|
-
(
|
|
4697
|
+
const S = w.findIndex(
|
|
4698
|
+
(E) => E.bindValue === x && E.optionalDisplayValue === _
|
|
4698
4699
|
);
|
|
4699
|
-
|
|
4700
|
-
bindValue:
|
|
4701
|
-
optionalDisplayValue:
|
|
4700
|
+
S >= 0 ? w.splice(S, 1) : w.push({
|
|
4701
|
+
bindValue: x,
|
|
4702
|
+
optionalDisplayValue: _
|
|
4702
4703
|
});
|
|
4703
4704
|
}
|
|
4704
|
-
u == null || u(
|
|
4705
|
+
u == null || u(w);
|
|
4705
4706
|
}, y = {
|
|
4706
4707
|
container: "smp-multipleAutocomplete-container"
|
|
4707
4708
|
};
|
|
@@ -4718,8 +4719,8 @@ const vs = ({
|
|
|
4718
4719
|
elements: r,
|
|
4719
4720
|
displayMode: e,
|
|
4720
4721
|
isEditable: s,
|
|
4721
|
-
onChange: (
|
|
4722
|
-
u == null || u(
|
|
4722
|
+
onChange: (x) => {
|
|
4723
|
+
u == null || u(x);
|
|
4723
4724
|
}
|
|
4724
4725
|
}
|
|
4725
4726
|
),
|
|
@@ -4729,7 +4730,7 @@ const vs = ({
|
|
|
4729
4730
|
bindValue: "",
|
|
4730
4731
|
fun: l,
|
|
4731
4732
|
isEditable: s,
|
|
4732
|
-
onChange:
|
|
4733
|
+
onChange: p,
|
|
4733
4734
|
_changeOnEnter: !0,
|
|
4734
4735
|
listDisplayMode: n,
|
|
4735
4736
|
minimumChars: t,
|
|
@@ -4737,7 +4738,7 @@ const vs = ({
|
|
|
4737
4738
|
onOptionsRequest: f,
|
|
4738
4739
|
_multiActiveIndex: m,
|
|
4739
4740
|
error: c,
|
|
4740
|
-
onBlur:
|
|
4741
|
+
onBlur: d
|
|
4741
4742
|
}
|
|
4742
4743
|
)
|
|
4743
4744
|
]
|
|
@@ -4860,95 +4861,95 @@ const ke = (r, e, t) => ({
|
|
|
4860
4861
|
onEnter: o,
|
|
4861
4862
|
...l
|
|
4862
4863
|
}) => {
|
|
4863
|
-
const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar:
|
|
4864
|
+
const { getCurrentLanguage: c } = Ae(), f = ce(null), u = c(), { groupingChar: d, decimalChar: m } = Wr(
|
|
4864
4865
|
() => as(u, s),
|
|
4865
4866
|
[u, s]
|
|
4866
|
-
),
|
|
4867
|
-
(
|
|
4868
|
-
minimumFractionDigits:
|
|
4869
|
-
maximumFractionDigits:
|
|
4867
|
+
), p = ue(
|
|
4868
|
+
(D, I) => new Intl.NumberFormat(u, {
|
|
4869
|
+
minimumFractionDigits: I,
|
|
4870
|
+
maximumFractionDigits: I,
|
|
4870
4871
|
useGrouping: !0
|
|
4871
|
-
}).format(
|
|
4872
|
+
}).format(D),
|
|
4872
4873
|
[u]
|
|
4873
|
-
), y = ue(ls, [
|
|
4874
|
-
a != null ?
|
|
4874
|
+
), y = ue(ls, [d, m]), x = ue(ss, [r, e]), _ = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, S] = G(_), [E, b] = G(
|
|
4875
|
+
a != null ? p(a, w) : ""
|
|
4875
4876
|
), j = ce(a ?? null);
|
|
4876
4877
|
re(() => {
|
|
4877
4878
|
if (a == null) {
|
|
4878
|
-
|
|
4879
|
+
b(""), j.current = null;
|
|
4879
4880
|
return;
|
|
4880
4881
|
}
|
|
4881
|
-
const
|
|
4882
|
-
|
|
4883
|
-
}, [a,
|
|
4882
|
+
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, I = D === 0 ? w : D;
|
|
4883
|
+
I !== w && S(I), b(p(a, I)), j.current = a;
|
|
4884
|
+
}, [a, p]);
|
|
4884
4885
|
const k = ue(
|
|
4885
|
-
(
|
|
4886
|
-
if (
|
|
4887
|
-
|
|
4886
|
+
(D, I = !1) => {
|
|
4887
|
+
if (D.trim() === "") {
|
|
4888
|
+
b(""), j.current = null, i == null || i(void 0, ""), I && (o == null || o(void 0));
|
|
4888
4889
|
return;
|
|
4889
4890
|
}
|
|
4890
|
-
const
|
|
4891
|
-
if (isNaN(
|
|
4891
|
+
const F = y(D, d, m);
|
|
4892
|
+
if (isNaN(F))
|
|
4892
4893
|
if (j.current != null) {
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4894
|
+
const P = p(j.current, w);
|
|
4895
|
+
b(P);
|
|
4895
4896
|
} else
|
|
4896
|
-
|
|
4897
|
+
b("");
|
|
4897
4898
|
else {
|
|
4898
|
-
const
|
|
4899
|
-
|
|
4900
|
-
|
|
4899
|
+
const P = x(F, r, e), V = os(
|
|
4900
|
+
D,
|
|
4901
|
+
d,
|
|
4901
4902
|
m
|
|
4902
4903
|
);
|
|
4903
|
-
|
|
4904
|
-
const z =
|
|
4905
|
-
|
|
4904
|
+
S(V);
|
|
4905
|
+
const z = p(P, V);
|
|
4906
|
+
b(z), j.current = P, i == null || i(P, z), I && (o == null || o(P));
|
|
4906
4907
|
}
|
|
4907
4908
|
},
|
|
4908
4909
|
[
|
|
4909
4910
|
y,
|
|
4910
|
-
|
|
4911
|
+
d,
|
|
4911
4912
|
m,
|
|
4912
|
-
|
|
4913
|
+
x,
|
|
4913
4914
|
r,
|
|
4914
4915
|
e,
|
|
4915
|
-
|
|
4916
|
+
p,
|
|
4916
4917
|
i,
|
|
4917
4918
|
o,
|
|
4918
|
-
|
|
4919
|
+
w
|
|
4919
4920
|
]
|
|
4920
|
-
),
|
|
4921
|
-
if (
|
|
4922
|
-
|
|
4921
|
+
), A = (D) => b(D), O = () => k(E), T = (D) => {
|
|
4922
|
+
if (D.key === "Enter") {
|
|
4923
|
+
D.preventDefault(), k(E, !0);
|
|
4923
4924
|
return;
|
|
4924
4925
|
}
|
|
4925
|
-
if (
|
|
4926
|
-
|
|
4927
|
-
const
|
|
4928
|
-
k(
|
|
4926
|
+
if (D.key === "ArrowUp" || D.key === "ArrowDown") {
|
|
4927
|
+
D.preventDefault();
|
|
4928
|
+
const I = D.key === "ArrowUp" ? 1 : -1, F = j.current ?? 0, P = x(F + I * t, r, e);
|
|
4929
|
+
k(p(P, w));
|
|
4929
4930
|
}
|
|
4930
|
-
},
|
|
4931
|
-
if (!
|
|
4932
|
-
|
|
4933
|
-
const
|
|
4934
|
-
k(
|
|
4931
|
+
}, C = (D) => {
|
|
4932
|
+
if (!D.currentTarget.contains(document.activeElement)) return;
|
|
4933
|
+
D.preventDefault();
|
|
4934
|
+
const I = D.deltaY < 0 ? 1 : -1, F = j.current ?? 0, P = x(F + I * t, r, e);
|
|
4935
|
+
k(p(P, w));
|
|
4935
4936
|
};
|
|
4936
|
-
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel:
|
|
4937
|
+
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: C, children: /* @__PURE__ */ g.jsx(
|
|
4937
4938
|
Le,
|
|
4938
4939
|
{
|
|
4939
4940
|
...l,
|
|
4940
4941
|
"aria-valuemin": r,
|
|
4941
4942
|
"aria-valuemax": e,
|
|
4942
4943
|
"aria-valuenow": j.current ?? void 0,
|
|
4943
|
-
bindValue:
|
|
4944
|
+
bindValue: E,
|
|
4944
4945
|
inputType: "text",
|
|
4945
4946
|
inputMode: n,
|
|
4946
4947
|
min: r,
|
|
4947
4948
|
max: e,
|
|
4948
4949
|
step: t,
|
|
4949
|
-
onChange:
|
|
4950
|
-
onBlur:
|
|
4951
|
-
onKeyDown:
|
|
4950
|
+
onChange: A,
|
|
4951
|
+
onBlur: O,
|
|
4952
|
+
onKeyDown: T
|
|
4952
4953
|
}
|
|
4953
4954
|
) });
|
|
4954
4955
|
};
|
|
@@ -5008,17 +5009,17 @@ const _s = ({
|
|
|
5008
5009
|
helperText: c,
|
|
5009
5010
|
error: f,
|
|
5010
5011
|
onBlur: u,
|
|
5011
|
-
onKeyDown:
|
|
5012
|
+
onKeyDown: d,
|
|
5012
5013
|
rows: m = 10,
|
|
5013
|
-
cols:
|
|
5014
|
+
cols: p = 150
|
|
5014
5015
|
}) => {
|
|
5015
|
-
const y = Re(),
|
|
5016
|
-
t == null || t(
|
|
5017
|
-
},
|
|
5016
|
+
const y = Re(), x = `${y}-helper`, _ = f ? "danger" : s, w = c || !!f, S = (b) => {
|
|
5017
|
+
t == null || t(b.target.value);
|
|
5018
|
+
}, E = {
|
|
5018
5019
|
wrapper: "smp-textarea-wrapper",
|
|
5019
|
-
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
5020
|
+
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${_ ? `smp-textarea-${_}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
5020
5021
|
};
|
|
5021
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
5022
|
+
return /* @__PURE__ */ g.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
|
|
5022
5023
|
o && /* @__PURE__ */ g.jsx(Ce, { htmlFor: y, label: o, disabled: r }),
|
|
5023
5024
|
/* @__PURE__ */ g.jsx(
|
|
5024
5025
|
"textarea",
|
|
@@ -5026,26 +5027,26 @@ const _s = ({
|
|
|
5026
5027
|
id: y,
|
|
5027
5028
|
value: e,
|
|
5028
5029
|
placeholder: n,
|
|
5029
|
-
onChange:
|
|
5030
|
+
onChange: S,
|
|
5030
5031
|
onBlur: u,
|
|
5031
|
-
className:
|
|
5032
|
+
className: E.container,
|
|
5032
5033
|
disabled: r,
|
|
5033
5034
|
readOnly: !i,
|
|
5034
|
-
onKeyDown:
|
|
5035
|
+
onKeyDown: d,
|
|
5035
5036
|
"aria-label": o ? void 0 : l,
|
|
5036
5037
|
"aria-labelledby": o ? y : void 0,
|
|
5037
|
-
"aria-describedby":
|
|
5038
|
+
"aria-describedby": w ? x : void 0,
|
|
5038
5039
|
rows: m,
|
|
5039
|
-
cols:
|
|
5040
|
+
cols: p
|
|
5040
5041
|
}
|
|
5041
5042
|
),
|
|
5042
|
-
|
|
5043
|
+
w && /* @__PURE__ */ g.jsx(
|
|
5043
5044
|
Lr,
|
|
5044
5045
|
{
|
|
5045
|
-
id:
|
|
5046
|
+
id: x,
|
|
5046
5047
|
helperText: f,
|
|
5047
5048
|
disabled: r,
|
|
5048
|
-
state:
|
|
5049
|
+
state: _
|
|
5049
5050
|
}
|
|
5050
5051
|
)
|
|
5051
5052
|
] });
|
|
@@ -5077,26 +5078,26 @@ const We = {
|
|
|
5077
5078
|
container: We["smp-radio"],
|
|
5078
5079
|
optionsContainer: `${We["smp-radio-options-container"]} ${t == Lt.LINE_DIRECTION ? We["smp-radio-horizontal"] : ""}`,
|
|
5079
5080
|
option: `${We["smp-radio-element"]} ${r ? We["smp-radio-disabled"] : ""}`
|
|
5080
|
-
},
|
|
5081
|
+
}, d = () => {
|
|
5081
5082
|
var y;
|
|
5082
5083
|
r || (y = o.onBlur) == null || y.call(o);
|
|
5083
5084
|
}, m = (y) => {
|
|
5084
|
-
var
|
|
5085
|
-
r || (
|
|
5086
|
-
},
|
|
5085
|
+
var x;
|
|
5086
|
+
r || (x = o.onChange) == null || x.call(o, y.id, y.label);
|
|
5087
|
+
}, p = Re();
|
|
5087
5088
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, id: f, children: [
|
|
5088
5089
|
i && /* @__PURE__ */ g.jsx(Ce, { label: i, disabled: r, htmlFor: f }),
|
|
5089
|
-
/* @__PURE__ */ g.jsx("div", { className: u.optionsContainer, children: l == null ? void 0 : l.map((y,
|
|
5090
|
+
/* @__PURE__ */ g.jsx("div", { className: u.optionsContainer, children: l == null ? void 0 : l.map((y, x) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
5090
5091
|
/* @__PURE__ */ g.jsx(
|
|
5091
5092
|
"input",
|
|
5092
5093
|
{
|
|
5093
5094
|
type: "radio",
|
|
5094
|
-
name:
|
|
5095
|
+
name: p,
|
|
5095
5096
|
value: y.id,
|
|
5096
5097
|
disabled: r,
|
|
5097
5098
|
checked: y.id === o.bindValue,
|
|
5098
5099
|
onChange: () => m(y),
|
|
5099
|
-
onBlur:
|
|
5100
|
+
onBlur: d
|
|
5100
5101
|
}
|
|
5101
5102
|
),
|
|
5102
5103
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5110,7 +5111,7 @@ const We = {
|
|
|
5110
5111
|
)
|
|
5111
5112
|
}
|
|
5112
5113
|
)
|
|
5113
|
-
] },
|
|
5114
|
+
] }, x)) })
|
|
5114
5115
|
] });
|
|
5115
5116
|
}, js = ({
|
|
5116
5117
|
value: r,
|
|
@@ -5180,41 +5181,41 @@ const We = {
|
|
|
5180
5181
|
isEditable: n = !0,
|
|
5181
5182
|
...s
|
|
5182
5183
|
}) => {
|
|
5183
|
-
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef:
|
|
5184
|
+
const a = ce(null), [i, o] = G(!1), [l, c] = G(r || ""), [f, u] = G(""), { anchorRef: d, targetRef: m } = ht({
|
|
5184
5185
|
position: "bottom",
|
|
5185
5186
|
enabled: i
|
|
5186
|
-
}),
|
|
5187
|
-
var
|
|
5188
|
-
o(!1), (
|
|
5187
|
+
}), p = ue(() => {
|
|
5188
|
+
var b;
|
|
5189
|
+
o(!1), (b = a == null ? void 0 : a.current) == null || b.focus();
|
|
5189
5190
|
}, []);
|
|
5190
|
-
gt([m,
|
|
5191
|
-
const
|
|
5192
|
-
c(
|
|
5191
|
+
gt([m, d], i, () => o(!1)), kt(i, m), re(() => {
|
|
5192
|
+
const b = r || "", j = Or(b) ? b : r || "";
|
|
5193
|
+
c(b), u(j);
|
|
5193
5194
|
}, [r]), re(() => {
|
|
5194
|
-
const
|
|
5195
|
+
const b = (j) => {
|
|
5195
5196
|
j.key === "Escape" && o(!1);
|
|
5196
5197
|
};
|
|
5197
|
-
return i && document.addEventListener("keydown",
|
|
5198
|
-
document.removeEventListener("keydown",
|
|
5198
|
+
return i && document.addEventListener("keydown", b), () => {
|
|
5199
|
+
document.removeEventListener("keydown", b);
|
|
5199
5200
|
};
|
|
5200
5201
|
}, [i]);
|
|
5201
5202
|
const y = () => {
|
|
5202
|
-
n && o((
|
|
5203
|
-
},
|
|
5204
|
-
u(
|
|
5205
|
-
},
|
|
5206
|
-
const
|
|
5207
|
-
c(
|
|
5208
|
-
},
|
|
5209
|
-
|
|
5210
|
-
},
|
|
5211
|
-
|
|
5212
|
-
},
|
|
5213
|
-
if (
|
|
5203
|
+
n && o((b) => !b);
|
|
5204
|
+
}, x = (b) => {
|
|
5205
|
+
u(b);
|
|
5206
|
+
}, _ = (b, j, k) => {
|
|
5207
|
+
const A = $s(b, j, k);
|
|
5208
|
+
c(A), u(A), t == null || t(A), p();
|
|
5209
|
+
}, w = () => {
|
|
5210
|
+
E(f);
|
|
5211
|
+
}, S = (b) => {
|
|
5212
|
+
b.key === "Enter" && (b.preventDefault(), E(f));
|
|
5213
|
+
}, E = (b) => {
|
|
5214
|
+
if (b.trim() === "") {
|
|
5214
5215
|
c(""), u(""), t == null || t("");
|
|
5215
5216
|
return;
|
|
5216
5217
|
}
|
|
5217
|
-
Or(
|
|
5218
|
+
Or(b) ? (c(b), u(b), t == null || t(b)) : u(b);
|
|
5218
5219
|
};
|
|
5219
5220
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "time-picker", children: [
|
|
5220
5221
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5223,13 +5224,13 @@ const We = {
|
|
|
5223
5224
|
...s,
|
|
5224
5225
|
bindValue: f,
|
|
5225
5226
|
placeholder: e,
|
|
5226
|
-
onChange:
|
|
5227
|
-
onBlur:
|
|
5228
|
-
onKeyDown:
|
|
5227
|
+
onChange: x,
|
|
5228
|
+
onBlur: w,
|
|
5229
|
+
onKeyDown: S,
|
|
5229
5230
|
shapeIcon: "clock",
|
|
5230
5231
|
onShapeIconClick: y,
|
|
5231
5232
|
isEditable: n,
|
|
5232
|
-
ref:
|
|
5233
|
+
ref: d,
|
|
5233
5234
|
inputRef: a
|
|
5234
5235
|
}
|
|
5235
5236
|
),
|
|
@@ -5237,7 +5238,7 @@ const We = {
|
|
|
5237
5238
|
js,
|
|
5238
5239
|
{
|
|
5239
5240
|
value: Ds(l),
|
|
5240
|
-
onChange:
|
|
5241
|
+
onChange: _,
|
|
5241
5242
|
targetRef: m,
|
|
5242
5243
|
isOpen: i
|
|
5243
5244
|
}
|
|
@@ -5298,222 +5299,224 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5298
5299
|
options: c,
|
|
5299
5300
|
onChange: f,
|
|
5300
5301
|
onClick: u,
|
|
5301
|
-
onEnter:
|
|
5302
|
+
onEnter: d,
|
|
5302
5303
|
onBlur: m,
|
|
5303
|
-
onOptionsRequest:
|
|
5304
|
+
onOptionsRequest: p,
|
|
5304
5305
|
onContextMenu: y,
|
|
5305
|
-
isEditable:
|
|
5306
|
+
isEditable: x,
|
|
5307
|
+
dSep: _ = "."
|
|
5306
5308
|
}) => {
|
|
5307
|
-
const
|
|
5309
|
+
const w = {
|
|
5308
5310
|
obj: t,
|
|
5309
5311
|
shape: e,
|
|
5310
5312
|
decode: r,
|
|
5311
5313
|
icon: s,
|
|
5312
5314
|
fun: a
|
|
5313
|
-
},
|
|
5315
|
+
}, S = {
|
|
5314
5316
|
onBlur: m,
|
|
5315
|
-
onOptionsRequest:
|
|
5317
|
+
onOptionsRequest: p,
|
|
5316
5318
|
fun: a,
|
|
5317
5319
|
icon: s,
|
|
5318
5320
|
tooltip: l,
|
|
5319
5321
|
label: o,
|
|
5320
|
-
isEditable:
|
|
5322
|
+
isEditable: x,
|
|
5321
5323
|
...n
|
|
5322
|
-
},
|
|
5323
|
-
|
|
5324
|
-
new Ke(t,
|
|
5325
|
-
),
|
|
5324
|
+
}, E = (T, C, D) => xn(t) ? ke(T, new ct(t, C).getLegacyValue()) : Sn(t) ? ke(T, new pt(t, C).getLegacyValue()) : ke(T, C, D), b = (T, C) => ke(
|
|
5325
|
+
T,
|
|
5326
|
+
new Ke(t, C, _).getLegacyValue()
|
|
5327
|
+
), j = (T) => ke(w, new lt(t, T).getLegacyValue()), k = (T) => Ts(w, T), A = () => {
|
|
5326
5328
|
switch (e) {
|
|
5327
5329
|
case te.AUTOCOMPLETE: {
|
|
5328
|
-
const
|
|
5329
|
-
...
|
|
5330
|
+
const T = {
|
|
5331
|
+
...S,
|
|
5330
5332
|
bindValue: t.k,
|
|
5331
5333
|
optionalDisplayValue: r,
|
|
5332
|
-
onChange: (
|
|
5333
|
-
f == null || f(w
|
|
5334
|
+
onChange: (C, D) => {
|
|
5335
|
+
f == null || f(E(w, C, D));
|
|
5334
5336
|
}
|
|
5335
5337
|
};
|
|
5336
|
-
return /* @__PURE__ */ g.jsx(kr, { ...
|
|
5338
|
+
return /* @__PURE__ */ g.jsx(kr, { ...T });
|
|
5337
5339
|
}
|
|
5338
5340
|
case te.BUTTON: {
|
|
5339
|
-
const
|
|
5340
|
-
...
|
|
5341
|
+
const T = {
|
|
5342
|
+
...S,
|
|
5341
5343
|
bindValue: t.k,
|
|
5342
5344
|
optionalDisplayValue: n != null && n.label && typeof n.label == "string" ? n.label : void 0,
|
|
5343
5345
|
title: r,
|
|
5344
5346
|
onClick: () => {
|
|
5345
|
-
u == null || u(w
|
|
5347
|
+
u == null || u(E(w, t.k));
|
|
5346
5348
|
}
|
|
5347
5349
|
};
|
|
5348
|
-
return /* @__PURE__ */ g.jsx(je, { ...
|
|
5350
|
+
return /* @__PURE__ */ g.jsx(je, { ...T });
|
|
5349
5351
|
}
|
|
5350
5352
|
case te.BUTTON_LIST: {
|
|
5351
|
-
const
|
|
5352
|
-
...
|
|
5353
|
+
const T = {
|
|
5354
|
+
...S,
|
|
5353
5355
|
options: c,
|
|
5354
|
-
onClick: (
|
|
5355
|
-
const
|
|
5356
|
-
u == null || u(
|
|
5356
|
+
onClick: (C, D) => {
|
|
5357
|
+
const I = { ...w, fun: D };
|
|
5358
|
+
u == null || u(E(I, C));
|
|
5357
5359
|
}
|
|
5358
5360
|
};
|
|
5359
|
-
return /* @__PURE__ */ g.jsx(ps, { ...
|
|
5361
|
+
return /* @__PURE__ */ g.jsx(ps, { ...T });
|
|
5360
5362
|
}
|
|
5361
5363
|
case te.CHIP: {
|
|
5362
|
-
const
|
|
5363
|
-
...
|
|
5364
|
-
elements: Tr(
|
|
5364
|
+
const T = {
|
|
5365
|
+
...S,
|
|
5366
|
+
elements: Tr(w)
|
|
5365
5367
|
};
|
|
5366
|
-
return /* @__PURE__ */ g.jsx(Nt, { ...
|
|
5368
|
+
return /* @__PURE__ */ g.jsx(Nt, { ...T });
|
|
5367
5369
|
}
|
|
5368
5370
|
case te.CHECKBOX:
|
|
5369
5371
|
case te.SWITCH: {
|
|
5370
|
-
const
|
|
5371
|
-
...
|
|
5372
|
+
const T = e === te.SWITCH, C = {
|
|
5373
|
+
...S,
|
|
5372
5374
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5373
5375
|
optionalDisplayValue: r,
|
|
5374
|
-
onChange: (
|
|
5375
|
-
f == null || f(
|
|
5376
|
+
onChange: (D) => {
|
|
5377
|
+
f == null || f(j(D));
|
|
5376
5378
|
},
|
|
5377
|
-
...
|
|
5379
|
+
...T && { variant: "switch" }
|
|
5378
5380
|
};
|
|
5379
|
-
return /* @__PURE__ */ g.jsx(ms, { ...
|
|
5381
|
+
return /* @__PURE__ */ g.jsx(ms, { ...C });
|
|
5380
5382
|
}
|
|
5381
5383
|
case te.COMBOBOX: {
|
|
5382
|
-
const
|
|
5383
|
-
...
|
|
5384
|
+
const T = {
|
|
5385
|
+
...S,
|
|
5384
5386
|
bindValue: t.k,
|
|
5385
5387
|
optionalDisplayValue: r,
|
|
5386
|
-
onChange: (
|
|
5387
|
-
f == null || f(w
|
|
5388
|
+
onChange: (C, D) => {
|
|
5389
|
+
f == null || f(E(w, C, D));
|
|
5388
5390
|
}
|
|
5389
5391
|
};
|
|
5390
|
-
return /* @__PURE__ */ g.jsx(gs, { ...
|
|
5392
|
+
return /* @__PURE__ */ g.jsx(gs, { ...T });
|
|
5391
5393
|
}
|
|
5392
5394
|
case te.DATE: {
|
|
5393
|
-
const
|
|
5394
|
-
...
|
|
5395
|
+
const T = {
|
|
5396
|
+
...S,
|
|
5395
5397
|
bindValue: ct.fromDataObj(t).getValue(),
|
|
5396
|
-
onChange: (
|
|
5397
|
-
f == null || f(w
|
|
5398
|
+
onChange: (C) => {
|
|
5399
|
+
f == null || f(E(w, C));
|
|
5398
5400
|
}
|
|
5399
5401
|
};
|
|
5400
|
-
return /* @__PURE__ */ g.jsx(vs, { ...
|
|
5402
|
+
return /* @__PURE__ */ g.jsx(vs, { ...T });
|
|
5401
5403
|
}
|
|
5402
5404
|
case te.ICON:
|
|
5403
5405
|
case te.IMAGE: {
|
|
5404
|
-
const
|
|
5405
|
-
...
|
|
5406
|
+
const T = {
|
|
5407
|
+
...S,
|
|
5406
5408
|
icon: s,
|
|
5407
5409
|
placeholderIcon: i,
|
|
5408
|
-
isInteractable: !!
|
|
5410
|
+
isInteractable: !!S.fun,
|
|
5409
5411
|
onClick: () => {
|
|
5410
|
-
u == null || u(w
|
|
5412
|
+
u == null || u(E(w, t.k));
|
|
5411
5413
|
}
|
|
5412
5414
|
};
|
|
5413
|
-
return /* @__PURE__ */ g.jsx(le, { ...
|
|
5415
|
+
return /* @__PURE__ */ g.jsx(le, { ...T });
|
|
5414
5416
|
}
|
|
5415
5417
|
case te.INPUT_NUMBER: {
|
|
5416
|
-
const
|
|
5417
|
-
...
|
|
5418
|
-
bindValue: Ke.fromDataObj(t,
|
|
5419
|
-
onChange: (
|
|
5420
|
-
f == null || f(
|
|
5418
|
+
const T = {
|
|
5419
|
+
...S,
|
|
5420
|
+
bindValue: Ke.fromDataObj(t, _).getValue(),
|
|
5421
|
+
onChange: (C) => {
|
|
5422
|
+
f == null || f(b(w, C));
|
|
5421
5423
|
}
|
|
5422
5424
|
};
|
|
5423
|
-
return /* @__PURE__ */ g.jsx(Os, { ...
|
|
5425
|
+
return /* @__PURE__ */ g.jsx(Os, { ...T });
|
|
5424
5426
|
}
|
|
5427
|
+
case te.EDITOR:
|
|
5425
5428
|
case te.MEMO: {
|
|
5426
|
-
const
|
|
5427
|
-
...
|
|
5429
|
+
const T = {
|
|
5430
|
+
...S,
|
|
5428
5431
|
bindValue: t.k,
|
|
5429
5432
|
optionalDisplayValue: r,
|
|
5430
|
-
onChange: (
|
|
5431
|
-
f == null || f(w
|
|
5433
|
+
onChange: (C) => {
|
|
5434
|
+
f == null || f(E(w, C));
|
|
5432
5435
|
}
|
|
5433
5436
|
};
|
|
5434
|
-
return /* @__PURE__ */ g.jsx(_s, { ...
|
|
5437
|
+
return /* @__PURE__ */ g.jsx(_s, { ...T });
|
|
5435
5438
|
}
|
|
5436
5439
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5437
|
-
const
|
|
5438
|
-
...
|
|
5439
|
-
elements: Tr(
|
|
5440
|
-
onChange: (
|
|
5441
|
-
f == null || f(
|
|
5440
|
+
const T = {
|
|
5441
|
+
...S,
|
|
5442
|
+
elements: Tr(w),
|
|
5443
|
+
onChange: (C) => {
|
|
5444
|
+
f == null || f(k(C));
|
|
5442
5445
|
}
|
|
5443
5446
|
};
|
|
5444
|
-
return /* @__PURE__ */ g.jsx(xs, { ...
|
|
5447
|
+
return /* @__PURE__ */ g.jsx(xs, { ...T });
|
|
5445
5448
|
}
|
|
5446
5449
|
case te.PASSWORD: {
|
|
5447
|
-
const
|
|
5448
|
-
...
|
|
5450
|
+
const T = {
|
|
5451
|
+
...S,
|
|
5449
5452
|
bindValue: t.k,
|
|
5450
|
-
onChange: (
|
|
5451
|
-
f == null || f(w
|
|
5453
|
+
onChange: (C) => {
|
|
5454
|
+
f == null || f(E(w, C));
|
|
5452
5455
|
}
|
|
5453
5456
|
};
|
|
5454
|
-
return /* @__PURE__ */ g.jsx(Ss, { ...
|
|
5457
|
+
return /* @__PURE__ */ g.jsx(Ss, { ...T });
|
|
5455
5458
|
}
|
|
5456
5459
|
case te.RADIO: {
|
|
5457
|
-
const
|
|
5458
|
-
...
|
|
5460
|
+
const T = {
|
|
5461
|
+
...S,
|
|
5459
5462
|
bindValue: t.k,
|
|
5460
|
-
onChange: (
|
|
5461
|
-
f == null || f(w
|
|
5463
|
+
onChange: (C, D) => {
|
|
5464
|
+
f == null || f(E(w, C, D));
|
|
5462
5465
|
}
|
|
5463
5466
|
};
|
|
5464
|
-
return /* @__PURE__ */ g.jsx(Rs, { ...
|
|
5467
|
+
return /* @__PURE__ */ g.jsx(Rs, { ...T });
|
|
5465
5468
|
}
|
|
5466
5469
|
case te.SPOTLIGHT: {
|
|
5467
|
-
const
|
|
5468
|
-
...
|
|
5470
|
+
const T = {
|
|
5471
|
+
...S,
|
|
5469
5472
|
bindValue: t.k,
|
|
5470
|
-
onEnter: (
|
|
5471
|
-
|
|
5473
|
+
onEnter: (C) => {
|
|
5474
|
+
d == null || d(E(w, C));
|
|
5472
5475
|
}
|
|
5473
5476
|
};
|
|
5474
|
-
return /* @__PURE__ */ g.jsx(ws, { ...
|
|
5477
|
+
return /* @__PURE__ */ g.jsx(ws, { ...T });
|
|
5475
5478
|
}
|
|
5476
5479
|
case te.TEXT_FIELD: {
|
|
5477
|
-
const
|
|
5478
|
-
...
|
|
5480
|
+
const T = {
|
|
5481
|
+
...S,
|
|
5479
5482
|
bindValue: t.k,
|
|
5480
5483
|
optionalDisplayValue: r,
|
|
5481
|
-
onChange: (
|
|
5482
|
-
f == null || f(w
|
|
5484
|
+
onChange: (C) => {
|
|
5485
|
+
f == null || f(E(w, C));
|
|
5483
5486
|
}
|
|
5484
5487
|
};
|
|
5485
|
-
return /* @__PURE__ */ g.jsx(Le, { ...
|
|
5488
|
+
return /* @__PURE__ */ g.jsx(Le, { ...T });
|
|
5486
5489
|
}
|
|
5487
5490
|
case te.TIME: {
|
|
5488
|
-
const
|
|
5489
|
-
...
|
|
5491
|
+
const T = {
|
|
5492
|
+
...S,
|
|
5490
5493
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5491
|
-
onChange: (
|
|
5492
|
-
f == null || f(w
|
|
5494
|
+
onChange: (C) => {
|
|
5495
|
+
f == null || f(E(w, C));
|
|
5493
5496
|
}
|
|
5494
5497
|
};
|
|
5495
|
-
return /* @__PURE__ */ g.jsx(Cs, { ...
|
|
5498
|
+
return /* @__PURE__ */ g.jsx(Cs, { ...T });
|
|
5496
5499
|
}
|
|
5497
5500
|
default: {
|
|
5498
|
-
const
|
|
5499
|
-
...
|
|
5501
|
+
const T = {
|
|
5502
|
+
...S,
|
|
5500
5503
|
bindValue: t.k,
|
|
5501
5504
|
optionalDisplayValue: r
|
|
5502
5505
|
};
|
|
5503
|
-
return /* @__PURE__ */ g.jsx(Es, { ...
|
|
5506
|
+
return /* @__PURE__ */ g.jsx(Es, { ...T });
|
|
5504
5507
|
}
|
|
5505
5508
|
}
|
|
5506
|
-
},
|
|
5509
|
+
}, O = {
|
|
5507
5510
|
wrapper: `${As["smp-cell-wrapper"]}`
|
|
5508
5511
|
};
|
|
5509
5512
|
return /* @__PURE__ */ g.jsx(
|
|
5510
5513
|
"span",
|
|
5511
5514
|
{
|
|
5512
|
-
className:
|
|
5513
|
-
onContextMenu: (
|
|
5514
|
-
y && l && (
|
|
5515
|
+
className: O.wrapper,
|
|
5516
|
+
onContextMenu: (T) => {
|
|
5517
|
+
y && l && (T.preventDefault(), y(w, T.currentTarget));
|
|
5515
5518
|
},
|
|
5516
|
-
children:
|
|
5519
|
+
children: A()
|
|
5517
5520
|
}
|
|
5518
5521
|
);
|
|
5519
5522
|
}, na = ({
|
|
@@ -5525,22 +5528,22 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5525
5528
|
var o, l;
|
|
5526
5529
|
const [s, a] = G(), i = ue(
|
|
5527
5530
|
(c) => {
|
|
5528
|
-
var u,
|
|
5529
|
-
if (!((u = c.rows) != null && u.length) || !((
|
|
5531
|
+
var u, d;
|
|
5532
|
+
if (!((u = c.rows) != null && u.length) || !((d = c.columns) != null && d.length))
|
|
5530
5533
|
return {};
|
|
5531
5534
|
const f = c.rows[0];
|
|
5532
|
-
return c.columns.filter((m) => m.visible).reduce((m,
|
|
5533
|
-
const y = f.cells[
|
|
5535
|
+
return c.columns.filter((m) => m.visible).reduce((m, p) => {
|
|
5536
|
+
const y = f.cells[p.name], x = {
|
|
5534
5537
|
...y,
|
|
5535
|
-
id:
|
|
5536
|
-
onChange: (
|
|
5537
|
-
a((
|
|
5538
|
-
...
|
|
5539
|
-
[
|
|
5540
|
-
...
|
|
5538
|
+
id: p.name,
|
|
5539
|
+
onChange: (_) => {
|
|
5540
|
+
a((w) => w && {
|
|
5541
|
+
...w,
|
|
5542
|
+
[p.name]: {
|
|
5543
|
+
...w[p.name],
|
|
5541
5544
|
obj: {
|
|
5542
|
-
...
|
|
5543
|
-
k:
|
|
5545
|
+
...w[p.name].obj,
|
|
5546
|
+
k: _.obj.k
|
|
5544
5547
|
}
|
|
5545
5548
|
}
|
|
5546
5549
|
});
|
|
@@ -5550,16 +5553,16 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5550
5553
|
...y
|
|
5551
5554
|
});
|
|
5552
5555
|
},
|
|
5553
|
-
onEnter: (
|
|
5554
|
-
t && t(
|
|
5556
|
+
onEnter: (_) => {
|
|
5557
|
+
t && t(_);
|
|
5555
5558
|
},
|
|
5556
|
-
onContextMenu: (
|
|
5557
|
-
n && n(
|
|
5559
|
+
onContextMenu: (_, w) => {
|
|
5560
|
+
n && n(_, w);
|
|
5558
5561
|
}
|
|
5559
5562
|
};
|
|
5560
5563
|
return {
|
|
5561
5564
|
...m,
|
|
5562
|
-
[
|
|
5565
|
+
[p.name]: x
|
|
5563
5566
|
};
|
|
5564
5567
|
}, {});
|
|
5565
5568
|
},
|
|
@@ -5591,83 +5594,83 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5591
5594
|
loadOptions: l,
|
|
5592
5595
|
onContextMenu: c
|
|
5593
5596
|
}) => {
|
|
5594
|
-
var
|
|
5595
|
-
const [f, u] = G(), [
|
|
5597
|
+
var E, b;
|
|
5598
|
+
const [f, u] = G(), [d, m] = G(t ?? !0), p = ce(null), y = s.trim() ? s : "100vh", x = ue(
|
|
5596
5599
|
(j) => {
|
|
5597
|
-
var
|
|
5598
|
-
if (!((
|
|
5600
|
+
var A, O;
|
|
5601
|
+
if (!((A = j == null ? void 0 : j.rows) != null && A.length) || !((O = j == null ? void 0 : j.columns) != null && O.length))
|
|
5599
5602
|
return {};
|
|
5600
5603
|
const k = j.rows[0];
|
|
5601
|
-
return j.columns.filter((
|
|
5602
|
-
const
|
|
5603
|
-
if (!
|
|
5604
|
-
return
|
|
5605
|
-
const
|
|
5606
|
-
...
|
|
5607
|
-
id:
|
|
5608
|
-
onChange: (
|
|
5609
|
-
u((
|
|
5610
|
-
const
|
|
5611
|
-
return
|
|
5604
|
+
return j.columns.filter((T) => T.visible ?? !0).reduce((T, C) => {
|
|
5605
|
+
const D = k.cells[C.name];
|
|
5606
|
+
if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
|
|
5607
|
+
return T;
|
|
5608
|
+
const I = {
|
|
5609
|
+
...D,
|
|
5610
|
+
id: C.name,
|
|
5611
|
+
onChange: (F) => {
|
|
5612
|
+
u((P) => {
|
|
5613
|
+
const V = { ...P };
|
|
5614
|
+
return V != null && V[C.name] && (V[C.name].obj.k = F.obj.k), V;
|
|
5612
5615
|
});
|
|
5613
5616
|
},
|
|
5614
|
-
onClick: (
|
|
5615
|
-
|
|
5617
|
+
onClick: (F) => {
|
|
5618
|
+
F.fun && a && a(F);
|
|
5616
5619
|
},
|
|
5617
|
-
onEnter: (
|
|
5618
|
-
i && i(
|
|
5620
|
+
onEnter: (F) => {
|
|
5621
|
+
i && i(F);
|
|
5619
5622
|
},
|
|
5620
|
-
onContextMenu: (
|
|
5621
|
-
c && c(
|
|
5623
|
+
onContextMenu: (F, P) => {
|
|
5624
|
+
c && c(F, P);
|
|
5622
5625
|
}
|
|
5623
5626
|
};
|
|
5624
|
-
return l &&
|
|
5625
|
-
(
|
|
5626
|
-
)), !
|
|
5627
|
-
...
|
|
5627
|
+
return l && D.shape == te.BUTTON_LIST && (I.onOptionsRequest = (F, P) => l(F, P).then(
|
|
5628
|
+
(V) => Is(V)
|
|
5629
|
+
)), !d && de(n) && (I.data = {
|
|
5630
|
+
...I.data,
|
|
5628
5631
|
showText: !1,
|
|
5629
5632
|
justify: "center",
|
|
5630
5633
|
squared: !0
|
|
5631
5634
|
}), {
|
|
5632
|
-
...
|
|
5633
|
-
[
|
|
5635
|
+
...T,
|
|
5636
|
+
[C.name]: I
|
|
5634
5637
|
};
|
|
5635
5638
|
}, {});
|
|
5636
5639
|
},
|
|
5637
|
-
[
|
|
5638
|
-
),
|
|
5640
|
+
[d, n, a, i, l, c]
|
|
5641
|
+
), _ = ue(() => {
|
|
5639
5642
|
o == null || o();
|
|
5640
|
-
}, [o]),
|
|
5643
|
+
}, [o]), w = () => {
|
|
5641
5644
|
de(n) ? m((j) => !j) : (m(!1), o == null || o());
|
|
5642
5645
|
};
|
|
5643
5646
|
if (re(() => {
|
|
5644
|
-
u(
|
|
5647
|
+
u(x(r));
|
|
5645
5648
|
}, [r]), re(() => {
|
|
5646
|
-
if (!
|
|
5649
|
+
if (!p.current)
|
|
5647
5650
|
return;
|
|
5648
5651
|
if (!de(n)) {
|
|
5649
|
-
u(
|
|
5652
|
+
u(x(r));
|
|
5650
5653
|
return;
|
|
5651
5654
|
}
|
|
5652
|
-
const j = getComputedStyle(
|
|
5655
|
+
const j = getComputedStyle(p.current).getPropertyValue(
|
|
5653
5656
|
"--smp-drawer-slide-transition"
|
|
5654
5657
|
);
|
|
5655
5658
|
let k = Number(j);
|
|
5656
5659
|
j.endsWith("ms") ? k = parseFloat(j) : j.endsWith("s") && (k = parseFloat(j) * 1e3), setTimeout(() => {
|
|
5657
|
-
u(
|
|
5660
|
+
u(x(r));
|
|
5658
5661
|
}, k / 2);
|
|
5659
|
-
}, [
|
|
5662
|
+
}, [d, n]), re(() => {
|
|
5660
5663
|
t !== void 0 && !de(n) && m(t);
|
|
5661
|
-
}, [n, t]), !((
|
|
5664
|
+
}, [n, t]), !((E = r == null ? void 0 : r.rows) != null && E.length) || !((b = r.columns) != null && b.length))
|
|
5662
5665
|
return null;
|
|
5663
|
-
const
|
|
5664
|
-
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${
|
|
5666
|
+
const S = {
|
|
5667
|
+
drawer: `smp-drawer ${de(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${d ? "smp-drawer-open" : ""} ${!de(n) && !d ? "smp-drawer-no-border" : ""}`,
|
|
5665
5668
|
container: "smp-drawer-container",
|
|
5666
5669
|
containerHeader: "smp-drawer-container-header",
|
|
5667
|
-
containerIcon: `${
|
|
5670
|
+
containerIcon: `${d ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
5668
5671
|
containerLayout: "smp-drawer-container-layout",
|
|
5669
5672
|
containerLogo: "smp-drawer-container-logo",
|
|
5670
|
-
backdrop: `smp-drawer-backdrop ${
|
|
5673
|
+
backdrop: `smp-drawer-backdrop ${d ? "smp-drawer-backdrop-open" : ""}`
|
|
5671
5674
|
};
|
|
5672
5675
|
return f && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5673
5676
|
!de(n) && /* @__PURE__ */ g.jsx(
|
|
@@ -5675,21 +5678,21 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5675
5678
|
{
|
|
5676
5679
|
"aria-hidden": "true",
|
|
5677
5680
|
"aria-label": "drawer-backdrop",
|
|
5678
|
-
className:
|
|
5679
|
-
onClick:
|
|
5681
|
+
className: S.backdrop,
|
|
5682
|
+
onClick: _
|
|
5680
5683
|
}
|
|
5681
5684
|
),
|
|
5682
5685
|
/* @__PURE__ */ g.jsx(
|
|
5683
5686
|
"aside",
|
|
5684
5687
|
{
|
|
5685
|
-
ref:
|
|
5686
|
-
className:
|
|
5688
|
+
ref: p,
|
|
5689
|
+
className: S.drawer,
|
|
5687
5690
|
style: { height: y },
|
|
5688
5691
|
"aria-label": "Drawer",
|
|
5689
5692
|
"smp-id": "drawer",
|
|
5690
|
-
children: /* @__PURE__ */ g.jsxs("div", { className:
|
|
5691
|
-
/* @__PURE__ */ g.jsxs("div", { className:
|
|
5692
|
-
e && /* @__PURE__ */ g.jsx("div", { className:
|
|
5693
|
+
children: /* @__PURE__ */ g.jsxs("div", { className: S.container, children: [
|
|
5694
|
+
/* @__PURE__ */ g.jsxs("div", { className: S.containerHeader, children: [
|
|
5695
|
+
e && /* @__PURE__ */ g.jsx("div", { className: S.containerLogo, children: /* @__PURE__ */ g.jsx(
|
|
5693
5696
|
le,
|
|
5694
5697
|
{
|
|
5695
5698
|
icon: e,
|
|
@@ -5698,20 +5701,20 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5698
5701
|
height: 24
|
|
5699
5702
|
}
|
|
5700
5703
|
) }),
|
|
5701
|
-
/* @__PURE__ */ g.jsx("div", { className:
|
|
5704
|
+
/* @__PURE__ */ g.jsx("div", { className: S.containerIcon, children: /* @__PURE__ */ g.jsx(
|
|
5702
5705
|
le,
|
|
5703
5706
|
{
|
|
5704
5707
|
icon: de(n) ? "menu_close" : "close",
|
|
5705
5708
|
title: "drawer_icon",
|
|
5706
|
-
rotated: !
|
|
5709
|
+
rotated: !d,
|
|
5707
5710
|
isInteractable: !0,
|
|
5708
|
-
onClick:
|
|
5711
|
+
onClick: w,
|
|
5709
5712
|
width: 20,
|
|
5710
5713
|
height: 20
|
|
5711
5714
|
}
|
|
5712
5715
|
) })
|
|
5713
5716
|
] }),
|
|
5714
|
-
/* @__PURE__ */ g.jsx("div", { className:
|
|
5717
|
+
/* @__PURE__ */ g.jsx("div", { className: S.containerLayout, children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(f).map((j) => /* @__PURE__ */ g.jsx(_e, { ...j })) }) })
|
|
5715
5718
|
] })
|
|
5716
5719
|
}
|
|
5717
5720
|
)
|
|
@@ -5729,18 +5732,18 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5729
5732
|
IconColName: c,
|
|
5730
5733
|
IconColor: f = "var(--smp-dashList-color-base)",
|
|
5731
5734
|
NumberFormat: u,
|
|
5732
|
-
ForceUM:
|
|
5735
|
+
ForceUM: d,
|
|
5733
5736
|
UmColName: m,
|
|
5734
|
-
UmColor:
|
|
5737
|
+
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5735
5738
|
ForceValue: y,
|
|
5736
|
-
ValueColName:
|
|
5737
|
-
ValueColor:
|
|
5738
|
-
SelectLayout:
|
|
5739
|
-
onClick:
|
|
5739
|
+
ValueColName: x,
|
|
5740
|
+
ValueColor: _ = "var(--smp-dashList-color-base)",
|
|
5741
|
+
SelectLayout: w = "1",
|
|
5742
|
+
onClick: S
|
|
5740
5743
|
}) => {
|
|
5741
|
-
const
|
|
5744
|
+
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, A = "--smp-dashList-color", O = "smp-layout", T = "descr", C = "icon", D = "um", I = "value", F = i || "1em", P = "18px", V = "--smp-dashList-columns", z = "--smp-dashList-fontSize", J = {
|
|
5742
5745
|
dash: (H = "1") => {
|
|
5743
|
-
const Z = h(H), ne = Z, se =
|
|
5746
|
+
const Z = h(H), ne = Z, se = v(Z, T), he = v(Z, C), we = v(Z, D), be = v(Z, I);
|
|
5744
5747
|
return {
|
|
5745
5748
|
container: ne,
|
|
5746
5749
|
descr: se,
|
|
@@ -5751,7 +5754,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5751
5754
|
},
|
|
5752
5755
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5753
5756
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5754
|
-
}, { format: Y } = Ae(), h = (H) => `${
|
|
5757
|
+
}, { format: Y } = Ae(), h = (H) => `${O}-${H}`, v = (H, Z) => `${H}__${Z}`, R = (H) => `${A}-${H}`, L = (H) => {
|
|
5755
5758
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5756
5759
|
if (Z.test(H)) {
|
|
5757
5760
|
const se = H.match(Z) || [];
|
|
@@ -5759,58 +5762,58 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5759
5762
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5760
5763
|
}
|
|
5761
5764
|
return H;
|
|
5762
|
-
},
|
|
5765
|
+
}, $ = (H) => {
|
|
5763
5766
|
if (!u) return H;
|
|
5764
|
-
const [Z, ne] =
|
|
5767
|
+
const [Z, ne] = N(u).map(
|
|
5765
5768
|
(Ie) => parseInt(Ie || "0")
|
|
5766
5769
|
), se = "0,0" + (ne ? "." + "0".repeat(ne) : ""), he = Y(H, se, "it");
|
|
5767
5770
|
if (!Z) return he;
|
|
5768
5771
|
const [we, be] = he.split(",");
|
|
5769
5772
|
return we + (be ? `,${be}` : "");
|
|
5770
|
-
},
|
|
5773
|
+
}, N = (H) => H.includes(";") ? H.split(";") : [H], U = (H) => {
|
|
5771
5774
|
const Z = (se) => {
|
|
5772
5775
|
var he;
|
|
5773
5776
|
if (se)
|
|
5774
5777
|
return (he = H == null ? void 0 : H.cells[se]) == null ? void 0 : he.obj.k;
|
|
5775
5778
|
}, ne = (se) => {
|
|
5776
5779
|
var he, we;
|
|
5777
|
-
if (!(
|
|
5778
|
-
return (we = (he = H == null ? void 0 : H.cells[
|
|
5780
|
+
if (!(b.length <= se))
|
|
5781
|
+
return (we = (he = H == null ? void 0 : H.cells[b[se].name]) == null ? void 0 : he.obj) == null ? void 0 : we.k;
|
|
5779
5782
|
};
|
|
5780
5783
|
return {
|
|
5781
5784
|
descr: t || Z(n) || ne(2) || "",
|
|
5782
5785
|
icon: l || Z(c) || ne(3) || "",
|
|
5783
|
-
um:
|
|
5784
|
-
value: y || Z(
|
|
5786
|
+
um: d || Z(m) || ne(1) || "",
|
|
5787
|
+
value: y || Z(x) || ne(0) || ""
|
|
5785
5788
|
};
|
|
5786
5789
|
}, B = (H) => {
|
|
5787
|
-
|
|
5790
|
+
S == null || S(H);
|
|
5788
5791
|
}, W = (H, Z) => {
|
|
5789
5792
|
(H.key === "Enter" || H.key === " ") && (H.preventDefault(), H.stopPropagation(), B(Z));
|
|
5790
5793
|
}, K = ((H) => {
|
|
5791
5794
|
const Z = J.dash(H);
|
|
5792
5795
|
return {
|
|
5793
5796
|
className: Z,
|
|
5794
|
-
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${
|
|
5797
|
+
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${T}`),
|
|
5795
5798
|
icon: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5796
5799
|
le,
|
|
5797
5800
|
{
|
|
5798
5801
|
color: f,
|
|
5799
|
-
height:
|
|
5802
|
+
height: P,
|
|
5800
5803
|
icon: ne,
|
|
5801
|
-
width:
|
|
5804
|
+
width: P
|
|
5802
5805
|
}
|
|
5803
|
-
) }, `${H}-${
|
|
5804
|
-
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${
|
|
5805
|
-
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${
|
|
5806
|
+
) }, `${H}-${C}`),
|
|
5807
|
+
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${D}`),
|
|
5808
|
+
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${I}`)
|
|
5806
5809
|
};
|
|
5807
|
-
})(
|
|
5810
|
+
})(w), ae = (H) => {
|
|
5808
5811
|
const { descr: Z, icon: ne, um: se, value: he } = U(H), we = {
|
|
5809
|
-
[
|
|
5810
|
-
[
|
|
5811
|
-
[
|
|
5812
|
-
}, be = [], Ie =
|
|
5813
|
-
switch (
|
|
5812
|
+
[R(T)]: L(s),
|
|
5813
|
+
[R(D)]: L(p),
|
|
5814
|
+
[R(I)]: L(_)
|
|
5815
|
+
}, be = [], Ie = $(he);
|
|
5816
|
+
switch (w) {
|
|
5814
5817
|
case "2":
|
|
5815
5818
|
ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
|
|
5816
5819
|
K.value(se ? Ie + " " + se : Ie)
|
|
@@ -5836,10 +5839,10 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5836
5839
|
H.rowId
|
|
5837
5840
|
);
|
|
5838
5841
|
}, M = {
|
|
5839
|
-
[
|
|
5840
|
-
[z]:
|
|
5842
|
+
[V]: String(r),
|
|
5843
|
+
[z]: F
|
|
5841
5844
|
};
|
|
5842
|
-
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? j.map((H) => ae(H)) :
|
|
5845
|
+
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? j.map((H) => ae(H)) : E });
|
|
5843
5846
|
}, nt = {
|
|
5844
5847
|
"smp-table": "_smp-table_1qmju_1",
|
|
5845
5848
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
@@ -5873,15 +5876,15 @@ const Mr = ({
|
|
|
5873
5876
|
rowHeight: n = 26,
|
|
5874
5877
|
offsetTop: s
|
|
5875
5878
|
}) => {
|
|
5876
|
-
var
|
|
5877
|
-
const [a, i] = G(!1), o = st(r) && !!((
|
|
5879
|
+
var w;
|
|
5880
|
+
const [a, i] = G(!1), o = st(r) && !!((w = r.children) != null && w.length), l = r.cells && Object.keys(r.cells).length > 0, c = o, f = t * 20, u = () => {
|
|
5878
5881
|
o && i(!a);
|
|
5879
|
-
},
|
|
5882
|
+
}, d = {
|
|
5880
5883
|
content: `${Te.rowContent} ${o ? Te.clickable : ""}`,
|
|
5881
5884
|
toggle: `${Te.toggle}`,
|
|
5882
5885
|
indent: `${Te.indent}`,
|
|
5883
5886
|
cell: `${Te.cell}`
|
|
5884
|
-
}, m = (
|
|
5887
|
+
}, m = (S) => /* @__PURE__ */ g.jsx(_e, { ...S }), p = () => /* @__PURE__ */ g.jsx("span", { className: d.toggle, children: c && /* @__PURE__ */ g.jsx(
|
|
5885
5888
|
le,
|
|
5886
5889
|
{
|
|
5887
5890
|
icon: a ? "arrow_drop_right" : "arrow_drop_down",
|
|
@@ -5890,23 +5893,23 @@ const Mr = ({
|
|
|
5890
5893
|
) }), y = () => /* @__PURE__ */ g.jsx(
|
|
5891
5894
|
"span",
|
|
5892
5895
|
{
|
|
5893
|
-
className:
|
|
5896
|
+
className: d.indent,
|
|
5894
5897
|
style: { width: `${f}px` },
|
|
5895
5898
|
"aria-hidden": "true"
|
|
5896
5899
|
}
|
|
5897
|
-
),
|
|
5898
|
-
const
|
|
5900
|
+
), x = () => {
|
|
5901
|
+
const S = Ys(r) ? "" : r.decode || (l ? "" : "Untitled"), E = s ?? n * t;
|
|
5899
5902
|
return /* @__PURE__ */ g.jsxs(
|
|
5900
5903
|
"tr",
|
|
5901
5904
|
{
|
|
5902
|
-
className:
|
|
5905
|
+
className: d.content,
|
|
5903
5906
|
onClick: u,
|
|
5904
5907
|
role: o ? "button" : "row",
|
|
5905
5908
|
"aria-expanded": o ? !a : void 0,
|
|
5906
5909
|
style: {
|
|
5907
5910
|
height: `${n}px`,
|
|
5908
5911
|
lineHeight: `calc(${n}px - 2*2px)`,
|
|
5909
|
-
transform: `translateY(${
|
|
5912
|
+
transform: `translateY(${E}px)`
|
|
5910
5913
|
},
|
|
5911
5914
|
children: [
|
|
5912
5915
|
st(r) && /* @__PURE__ */ g.jsxs(
|
|
@@ -5918,37 +5921,37 @@ const Mr = ({
|
|
|
5918
5921
|
},
|
|
5919
5922
|
children: [
|
|
5920
5923
|
y(),
|
|
5921
|
-
|
|
5922
|
-
/* @__PURE__ */ g.jsx("span", { className: Te.rowLabel, children:
|
|
5924
|
+
p(),
|
|
5925
|
+
/* @__PURE__ */ g.jsx("span", { className: Te.rowLabel, children: S })
|
|
5923
5926
|
]
|
|
5924
5927
|
}
|
|
5925
5928
|
),
|
|
5926
|
-
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([
|
|
5929
|
+
r.cells && Object.keys(r.cells).length > 0 && Object.entries(r.cells).map(([b, j]) => /* @__PURE__ */ g.jsx(
|
|
5927
5930
|
"td",
|
|
5928
5931
|
{
|
|
5929
|
-
className:
|
|
5932
|
+
className: d.cell,
|
|
5930
5933
|
style: {
|
|
5931
|
-
width: e[
|
|
5932
|
-
minWidth: e[
|
|
5934
|
+
width: e[b],
|
|
5935
|
+
minWidth: e[b],
|
|
5933
5936
|
height: `${n}px`
|
|
5934
5937
|
},
|
|
5935
5938
|
children: m({
|
|
5936
5939
|
...j,
|
|
5937
|
-
id:
|
|
5940
|
+
id: b
|
|
5938
5941
|
})
|
|
5939
5942
|
},
|
|
5940
|
-
Us(j) ||
|
|
5943
|
+
Us(j) || b
|
|
5941
5944
|
))
|
|
5942
5945
|
]
|
|
5943
5946
|
}
|
|
5944
5947
|
);
|
|
5945
|
-
},
|
|
5946
|
-
var
|
|
5947
|
-
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((
|
|
5948
|
+
}, _ = () => {
|
|
5949
|
+
var S;
|
|
5950
|
+
return a || !o ? null : /* @__PURE__ */ g.jsx(g.Fragment, { children: st(r) && ((S = r.children) == null ? void 0 : S.map((E, b) => /* @__PURE__ */ g.jsx(Mr, { row: E, level: t + 1 }, `child-${b}`))) });
|
|
5948
5951
|
};
|
|
5949
5952
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5950
|
-
|
|
5951
|
-
|
|
5953
|
+
x(),
|
|
5954
|
+
_()
|
|
5952
5955
|
] });
|
|
5953
5956
|
}, Ws = ({
|
|
5954
5957
|
label: r,
|
|
@@ -6011,42 +6014,42 @@ function Gs(r, e, t, n) {
|
|
|
6011
6014
|
const s = [];
|
|
6012
6015
|
let a = 0;
|
|
6013
6016
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
6014
|
-
function i(u,
|
|
6015
|
-
if (
|
|
6017
|
+
function i(u, d, m) {
|
|
6018
|
+
if (d >= e.length) {
|
|
6016
6019
|
f(u);
|
|
6017
6020
|
return;
|
|
6018
6021
|
}
|
|
6019
|
-
const
|
|
6020
|
-
for (const [
|
|
6021
|
-
const
|
|
6022
|
-
s.push(c(
|
|
6022
|
+
const p = e[d].column, y = o(u, p);
|
|
6023
|
+
for (const [x, _] of y) {
|
|
6024
|
+
const w = [...m, x], S = l(w, d), E = n.has(S);
|
|
6025
|
+
s.push(c(x, S, d, E)), a += t, E && i(_, d + 1, w);
|
|
6023
6026
|
}
|
|
6024
6027
|
}
|
|
6025
|
-
function o(u,
|
|
6026
|
-
var
|
|
6028
|
+
function o(u, d) {
|
|
6029
|
+
var p;
|
|
6027
6030
|
const m = /* @__PURE__ */ new Map();
|
|
6028
6031
|
for (const y of u) {
|
|
6029
|
-
const
|
|
6030
|
-
m.has(
|
|
6032
|
+
const x = ((p = y.cells[d]) == null ? void 0 : p.decode) ?? "N/D";
|
|
6033
|
+
m.has(x) || m.set(x, []), m.get(x).push(y);
|
|
6031
6034
|
}
|
|
6032
6035
|
return m;
|
|
6033
6036
|
}
|
|
6034
|
-
function l(u,
|
|
6035
|
-
return `group-${u.join("-")}-${
|
|
6037
|
+
function l(u, d) {
|
|
6038
|
+
return `group-${u.join("-")}-${d}`;
|
|
6036
6039
|
}
|
|
6037
|
-
function c(u,
|
|
6040
|
+
function c(u, d, m, p) {
|
|
6038
6041
|
return {
|
|
6039
6042
|
isGroup: !0,
|
|
6040
6043
|
value: u,
|
|
6041
6044
|
cells: {},
|
|
6042
|
-
rowId:
|
|
6045
|
+
rowId: d,
|
|
6043
6046
|
level: m,
|
|
6044
|
-
isExpanded:
|
|
6047
|
+
isExpanded: p
|
|
6045
6048
|
};
|
|
6046
6049
|
}
|
|
6047
6050
|
function f(u) {
|
|
6048
|
-
for (const
|
|
6049
|
-
s.push(
|
|
6051
|
+
for (const d of u)
|
|
6052
|
+
s.push(d), a += t;
|
|
6050
6053
|
}
|
|
6051
6054
|
}
|
|
6052
6055
|
const Ks = ({
|
|
@@ -6112,8 +6115,8 @@ const Ks = ({
|
|
|
6112
6115
|
);
|
|
6113
6116
|
a(c);
|
|
6114
6117
|
} else if (n === "fit-grid") {
|
|
6115
|
-
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((
|
|
6116
|
-
c.map((
|
|
6118
|
+
const l = ((i = t.current) == null ? void 0 : i.offsetWidth) || 800, c = r.filter((d) => d.visible !== !1), f = l / c.length, u = Object.fromEntries(
|
|
6119
|
+
c.map((d) => [d.name, f])
|
|
6117
6120
|
);
|
|
6118
6121
|
a(u);
|
|
6119
6122
|
} else if (n === "fit-content") {
|
|
@@ -6121,9 +6124,9 @@ const Ks = ({
|
|
|
6121
6124
|
for (const c of r) {
|
|
6122
6125
|
if (!c.visible) continue;
|
|
6123
6126
|
const f = ((o = c.title) == null ? void 0 : o.length) || 0, u = Math.max(
|
|
6124
|
-
...e.map((
|
|
6125
|
-
var m,
|
|
6126
|
-
return `${((
|
|
6127
|
+
...e.map((d) => {
|
|
6128
|
+
var m, p, y, x;
|
|
6129
|
+
return `${((p = (m = d.cells) == null ? void 0 : m[c.name]) == null ? void 0 : p.decode) || ((x = (y = d.cells) == null ? void 0 : y[c.name]) == null ? void 0 : x.value) || ""}`.length;
|
|
6127
6130
|
}),
|
|
6128
6131
|
f
|
|
6129
6132
|
);
|
|
@@ -6145,51 +6148,51 @@ const Ks = ({
|
|
|
6145
6148
|
var k;
|
|
6146
6149
|
const [i, o] = G(
|
|
6147
6150
|
r ?? { columns: [], rows: [] }
|
|
6148
|
-
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()),
|
|
6151
|
+
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = zs({
|
|
6149
6152
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
6150
6153
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
6151
|
-
containerRef:
|
|
6154
|
+
containerRef: d,
|
|
6152
6155
|
sizingMode: s
|
|
6153
6156
|
});
|
|
6154
6157
|
re(() => {
|
|
6155
6158
|
if (l != null && l.length && r.rows) {
|
|
6156
|
-
const { flatRows:
|
|
6159
|
+
const { flatRows: A } = Gs(
|
|
6157
6160
|
r.rows,
|
|
6158
6161
|
l,
|
|
6159
6162
|
e,
|
|
6160
6163
|
f
|
|
6161
6164
|
);
|
|
6162
|
-
o({ ...r, rows:
|
|
6165
|
+
o({ ...r, rows: A });
|
|
6163
6166
|
} else
|
|
6164
6167
|
o(r);
|
|
6165
6168
|
}, [r, l, f, e]);
|
|
6166
|
-
const y = (
|
|
6167
|
-
c(Hs(
|
|
6168
|
-
},
|
|
6169
|
-
|
|
6170
|
-
const
|
|
6171
|
-
if (!
|
|
6169
|
+
const y = (A) => {
|
|
6170
|
+
c(Hs(A, l));
|
|
6171
|
+
}, x = (A) => {
|
|
6172
|
+
A.preventDefault();
|
|
6173
|
+
const O = A.dataTransfer.getData("text/plain");
|
|
6174
|
+
if (!O || l.some((D) => D.column === O))
|
|
6172
6175
|
return;
|
|
6173
|
-
const
|
|
6174
|
-
c(
|
|
6175
|
-
},
|
|
6176
|
-
|
|
6177
|
-
}, { virtualItems:
|
|
6176
|
+
const C = [...l, { column: O, visible: !0 }];
|
|
6177
|
+
c(C);
|
|
6178
|
+
}, _ = (A) => {
|
|
6179
|
+
A.preventDefault();
|
|
6180
|
+
}, { virtualItems: w, containerProps: S, innerProps: E } = Ar({
|
|
6178
6181
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
6179
6182
|
itemHeight: e,
|
|
6180
6183
|
containerHeight: t,
|
|
6181
6184
|
overscan: 5
|
|
6182
|
-
}),
|
|
6183
|
-
const
|
|
6184
|
-
const
|
|
6185
|
-
|
|
6185
|
+
}), b = (A, O) => {
|
|
6186
|
+
const T = A.clientX, C = m[O], D = (F) => {
|
|
6187
|
+
const P = F.clientX - T, V = Math.max(50, C + P);
|
|
6188
|
+
p((z) => ({
|
|
6186
6189
|
...z,
|
|
6187
|
-
[
|
|
6190
|
+
[O]: V
|
|
6188
6191
|
}));
|
|
6189
|
-
},
|
|
6190
|
-
window.removeEventListener("mousemove",
|
|
6192
|
+
}, I = () => {
|
|
6193
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", I);
|
|
6191
6194
|
};
|
|
6192
|
-
window.addEventListener("mousemove",
|
|
6195
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", I);
|
|
6193
6196
|
}, j = {
|
|
6194
6197
|
smpTable: `${nt["smp-table"]}`,
|
|
6195
6198
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
@@ -6199,8 +6202,8 @@ const Ks = ({
|
|
|
6199
6202
|
"div",
|
|
6200
6203
|
{
|
|
6201
6204
|
className: j.smpTable,
|
|
6202
|
-
...
|
|
6203
|
-
ref:
|
|
6205
|
+
...S,
|
|
6206
|
+
ref: d,
|
|
6204
6207
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6205
6208
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6206
6209
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
@@ -6208,72 +6211,72 @@ const Ks = ({
|
|
|
6208
6211
|
{
|
|
6209
6212
|
groups: l,
|
|
6210
6213
|
onChange: y,
|
|
6211
|
-
onDrop:
|
|
6212
|
-
onDragOver:
|
|
6214
|
+
onDrop: x,
|
|
6215
|
+
onDragOver: _
|
|
6213
6216
|
}
|
|
6214
6217
|
),
|
|
6215
6218
|
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
|
|
6216
|
-
(
|
|
6219
|
+
(A) => A.visible && /* @__PURE__ */ g.jsxs(
|
|
6217
6220
|
"th",
|
|
6218
6221
|
{
|
|
6219
6222
|
className: j.headerCell,
|
|
6220
6223
|
draggable: !0,
|
|
6221
|
-
onDragStart: (
|
|
6222
|
-
|
|
6224
|
+
onDragStart: (O) => {
|
|
6225
|
+
O.dataTransfer.setData("text/plain", A.name);
|
|
6223
6226
|
},
|
|
6224
6227
|
style: {
|
|
6225
|
-
width: m[
|
|
6226
|
-
minWidth: m[
|
|
6227
|
-
maxWidth: m[
|
|
6228
|
+
width: m[A.name],
|
|
6229
|
+
minWidth: m[A.name],
|
|
6230
|
+
maxWidth: m[A.name]
|
|
6228
6231
|
},
|
|
6229
6232
|
children: [
|
|
6230
6233
|
/* @__PURE__ */ g.jsx(
|
|
6231
6234
|
De,
|
|
6232
6235
|
{
|
|
6233
6236
|
variant: "title",
|
|
6234
|
-
bindValue:
|
|
6237
|
+
bindValue: A.title
|
|
6235
6238
|
}
|
|
6236
6239
|
),
|
|
6237
6240
|
/* @__PURE__ */ g.jsx(
|
|
6238
6241
|
"div",
|
|
6239
6242
|
{
|
|
6240
6243
|
className: j.resizer,
|
|
6241
|
-
onMouseDown: (
|
|
6244
|
+
onMouseDown: (O) => b(O, A.name),
|
|
6242
6245
|
role: "region"
|
|
6243
6246
|
}
|
|
6244
6247
|
)
|
|
6245
6248
|
]
|
|
6246
6249
|
},
|
|
6247
|
-
|
|
6250
|
+
A.name
|
|
6248
6251
|
)
|
|
6249
6252
|
)) })
|
|
6250
6253
|
] }),
|
|
6251
|
-
/* @__PURE__ */ g.jsx("tbody", { ...
|
|
6252
|
-
const
|
|
6253
|
-
return
|
|
6254
|
+
/* @__PURE__ */ g.jsx("tbody", { ...E, children: w.map(({ item: A, index: O, offsetTop: T }) => {
|
|
6255
|
+
const C = A.rowId || A.value || `${A.isGroup ? "group" : "row"}-${O}`;
|
|
6256
|
+
return A.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6254
6257
|
Ws,
|
|
6255
6258
|
{
|
|
6256
|
-
label:
|
|
6259
|
+
label: A.value || "",
|
|
6257
6260
|
rowHeight: e,
|
|
6258
|
-
offsetTop:
|
|
6259
|
-
level:
|
|
6261
|
+
offsetTop: T,
|
|
6262
|
+
level: A.level,
|
|
6260
6263
|
onClick: () => {
|
|
6261
|
-
const
|
|
6262
|
-
|
|
6264
|
+
const D = A.rowId;
|
|
6265
|
+
D && u((I) => Bs(I, D));
|
|
6263
6266
|
},
|
|
6264
|
-
isExpanded:
|
|
6267
|
+
isExpanded: A.isExpanded
|
|
6265
6268
|
},
|
|
6266
|
-
`group-${
|
|
6269
|
+
`group-${C}`
|
|
6267
6270
|
) : /* @__PURE__ */ g.jsx(
|
|
6268
6271
|
Mr,
|
|
6269
6272
|
{
|
|
6270
|
-
row:
|
|
6273
|
+
row: A,
|
|
6271
6274
|
columnWidths: m,
|
|
6272
6275
|
rowHeight: e,
|
|
6273
|
-
offsetTop:
|
|
6276
|
+
offsetTop: T,
|
|
6274
6277
|
isGroup: !1
|
|
6275
6278
|
},
|
|
6276
|
-
`row-${
|
|
6279
|
+
`row-${C}`
|
|
6277
6280
|
);
|
|
6278
6281
|
}) }),
|
|
6279
6282
|
/* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
|
|
@@ -6303,7 +6306,7 @@ const Ks = ({
|
|
|
6303
6306
|
}, [r, s, e]);
|
|
6304
6307
|
const m = {
|
|
6305
6308
|
container: `smp-field-container ${de(t) ? `smp-field-position-${n}` : ""}`
|
|
6306
|
-
},
|
|
6309
|
+
}, p = () => {
|
|
6307
6310
|
de(t) || o == null || o(f);
|
|
6308
6311
|
};
|
|
6309
6312
|
if (f)
|
|
@@ -6325,7 +6328,7 @@ const Ks = ({
|
|
|
6325
6328
|
onChange: u,
|
|
6326
6329
|
onOptionsRequest: c,
|
|
6327
6330
|
fun: r == null ? void 0 : r.fun,
|
|
6328
|
-
onBlur:
|
|
6331
|
+
onBlur: p,
|
|
6329
6332
|
label: a,
|
|
6330
6333
|
labelPosition: i
|
|
6331
6334
|
}
|
|
@@ -6367,123 +6370,128 @@ const Ks = ({
|
|
|
6367
6370
|
onContextMenu: f,
|
|
6368
6371
|
onButtonClick: u
|
|
6369
6372
|
}) => {
|
|
6370
|
-
var k,
|
|
6371
|
-
const [
|
|
6373
|
+
var k, A;
|
|
6374
|
+
const [d, m] = G({}), { translate: p } = Ae(), y = Re();
|
|
6372
6375
|
re(() => {
|
|
6373
|
-
m(
|
|
6376
|
+
m(E(r));
|
|
6374
6377
|
}, [r]);
|
|
6375
|
-
const
|
|
6376
|
-
m((
|
|
6377
|
-
...
|
|
6378
|
-
[
|
|
6379
|
-
...
|
|
6378
|
+
const x = (O, T) => {
|
|
6379
|
+
if (m((C) => ({
|
|
6380
|
+
...C,
|
|
6381
|
+
[O]: {
|
|
6382
|
+
...C[O],
|
|
6380
6383
|
obj: {
|
|
6381
|
-
...
|
|
6382
|
-
k:
|
|
6384
|
+
...C[O].obj,
|
|
6385
|
+
k: T.obj.k
|
|
6383
6386
|
},
|
|
6384
|
-
decode:
|
|
6387
|
+
decode: T.decode,
|
|
6385
6388
|
data: {
|
|
6386
|
-
...
|
|
6389
|
+
...C[O].data,
|
|
6387
6390
|
error: void 0
|
|
6388
6391
|
},
|
|
6389
6392
|
// FIXME: remove this when webup.js will not use value
|
|
6390
|
-
value:
|
|
6393
|
+
value: T.obj.k
|
|
6391
6394
|
}
|
|
6392
|
-
})), s && (
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
+
})), s && (T.shape == te.CHECKBOX || T.shape == te.SWITCH)) {
|
|
6396
|
+
const C = structuredClone(d);
|
|
6397
|
+
C[O].obj.k = T.obj.k, C[O].value = T.obj.k, o({
|
|
6398
|
+
value: b(C),
|
|
6399
|
+
cell: O
|
|
6400
|
+
});
|
|
6401
|
+
}
|
|
6402
|
+
}, _ = (O) => {
|
|
6403
|
+
const T = b(d);
|
|
6395
6404
|
o({
|
|
6396
|
-
value:
|
|
6397
|
-
cell:
|
|
6405
|
+
value: T,
|
|
6406
|
+
cell: O
|
|
6398
6407
|
});
|
|
6399
|
-
},
|
|
6408
|
+
}, w = (O, T) => {
|
|
6400
6409
|
u == null || u({
|
|
6401
|
-
cellId:
|
|
6410
|
+
cellId: O,
|
|
6402
6411
|
currentState: {
|
|
6403
6412
|
type: "SmeupDataTable",
|
|
6404
6413
|
columns: r.columns,
|
|
6405
6414
|
rows: [
|
|
6406
6415
|
{
|
|
6407
|
-
cells:
|
|
6416
|
+
cells: d
|
|
6408
6417
|
}
|
|
6409
6418
|
]
|
|
6410
6419
|
},
|
|
6411
|
-
fun:
|
|
6420
|
+
fun: T || ""
|
|
6412
6421
|
});
|
|
6413
|
-
},
|
|
6414
|
-
var
|
|
6415
|
-
if (
|
|
6416
|
-
obj:
|
|
6417
|
-
fun:
|
|
6418
|
-
cellId:
|
|
6419
|
-
})).valid || m((
|
|
6420
|
-
...
|
|
6421
|
-
[
|
|
6422
|
-
...
|
|
6422
|
+
}, S = async (O) => {
|
|
6423
|
+
var T, C;
|
|
6424
|
+
if (d[O].obj.k != r.rows[0].cells[O].obj.k && ((T = d[O].inputSettings) != null && T.checkObject && c && ((await c({
|
|
6425
|
+
obj: d[O].obj,
|
|
6426
|
+
fun: d[O].fun,
|
|
6427
|
+
cellId: O
|
|
6428
|
+
})).valid || m((I) => ({
|
|
6429
|
+
...I,
|
|
6430
|
+
[O]: {
|
|
6431
|
+
...I[O],
|
|
6423
6432
|
data: {
|
|
6424
|
-
...
|
|
6425
|
-
error:
|
|
6433
|
+
...I[O].data,
|
|
6434
|
+
error: p(Oe.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6426
6435
|
}
|
|
6427
6436
|
}
|
|
6428
|
-
}))), (
|
|
6429
|
-
const
|
|
6437
|
+
}))), (C = d[O].inputSettings) != null && C.checkValueOnExit)) {
|
|
6438
|
+
const D = b(d);
|
|
6430
6439
|
l == null || l({
|
|
6431
|
-
value:
|
|
6432
|
-
cell:
|
|
6440
|
+
value: D,
|
|
6441
|
+
cell: O
|
|
6433
6442
|
});
|
|
6434
6443
|
}
|
|
6435
|
-
},
|
|
6436
|
-
var
|
|
6437
|
-
if (!((
|
|
6444
|
+
}, E = (O) => {
|
|
6445
|
+
var C, D, I;
|
|
6446
|
+
if (!((C = O.rows) != null && C.length) || !((D = O.columns) != null && D.length))
|
|
6438
6447
|
return {};
|
|
6439
|
-
const
|
|
6440
|
-
return
|
|
6441
|
-
const
|
|
6442
|
-
...
|
|
6443
|
-
id:
|
|
6444
|
-
label:
|
|
6448
|
+
const T = (I = O.rows) == null ? void 0 : I[0];
|
|
6449
|
+
return O.columns.filter((F) => F.visible ?? !0).reduce((F, P) => {
|
|
6450
|
+
const V = {
|
|
6451
|
+
...T.cells[P.name],
|
|
6452
|
+
id: P.name,
|
|
6453
|
+
label: P.title,
|
|
6454
|
+
dSep: a,
|
|
6445
6455
|
data: {
|
|
6446
|
-
...
|
|
6456
|
+
...T.cells[P.name].data,
|
|
6447
6457
|
dSep: a
|
|
6448
6458
|
}
|
|
6449
6459
|
};
|
|
6450
|
-
return
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
...V,
|
|
6454
|
-
[I.name]: F
|
|
6460
|
+
return V.isEditable == null && (V.isEditable = !0), t && (V.isEditable = !1), V.isEditable && V.shape == null && (V.shape = te.TEXT_FIELD), {
|
|
6461
|
+
...F,
|
|
6462
|
+
[P.name]: V
|
|
6455
6463
|
};
|
|
6456
6464
|
}, {});
|
|
6457
|
-
},
|
|
6465
|
+
}, b = (O) => ({
|
|
6458
6466
|
before: r,
|
|
6459
6467
|
after: {
|
|
6460
6468
|
type: "SmeupDataTable",
|
|
6461
6469
|
columns: JSON.parse(JSON.stringify(r.columns)),
|
|
6462
6470
|
rows: [
|
|
6463
6471
|
{
|
|
6464
|
-
cells: JSON.parse(JSON.stringify(
|
|
6472
|
+
cells: JSON.parse(JSON.stringify(O))
|
|
6465
6473
|
}
|
|
6466
6474
|
]
|
|
6467
6475
|
}
|
|
6468
|
-
}), j = ((
|
|
6476
|
+
}), j = ((A = (k = r.setup) == null ? void 0 : k.commands) == null ? void 0 : A.map((O, T) => /* @__PURE__ */ Br(
|
|
6469
6477
|
_e,
|
|
6470
6478
|
{
|
|
6471
|
-
...
|
|
6472
|
-
decode:
|
|
6479
|
+
...O,
|
|
6480
|
+
decode: O.value,
|
|
6473
6481
|
data: {
|
|
6474
|
-
label:
|
|
6482
|
+
label: O.value
|
|
6475
6483
|
},
|
|
6476
|
-
id: `command-${
|
|
6477
|
-
key: `command-${
|
|
6484
|
+
id: `command-${T}`,
|
|
6485
|
+
key: `command-${T}`,
|
|
6478
6486
|
shape: te.BUTTON,
|
|
6479
|
-
onClick: () =>
|
|
6487
|
+
onClick: () => _(O.obj.k)
|
|
6480
6488
|
}
|
|
6481
6489
|
))) || [];
|
|
6482
6490
|
return n || j.unshift(
|
|
6483
6491
|
/* @__PURE__ */ g.jsx(
|
|
6484
6492
|
_e,
|
|
6485
6493
|
{
|
|
6486
|
-
decode:
|
|
6494
|
+
decode: p(Oe.CONFIRM_BUTTON),
|
|
6487
6495
|
shape: te.BUTTON,
|
|
6488
6496
|
id: "",
|
|
6489
6497
|
obj: {
|
|
@@ -6493,18 +6501,18 @@ const Ks = ({
|
|
|
6493
6501
|
},
|
|
6494
6502
|
data: {
|
|
6495
6503
|
submit: !0,
|
|
6496
|
-
label:
|
|
6504
|
+
label: p(Oe.CONFIRM_BUTTON)
|
|
6497
6505
|
}
|
|
6498
6506
|
},
|
|
6499
6507
|
"submit-command"
|
|
6500
6508
|
)
|
|
6501
|
-
),
|
|
6509
|
+
), d && /* @__PURE__ */ g.jsxs(
|
|
6502
6510
|
"form",
|
|
6503
6511
|
{
|
|
6504
6512
|
"data-component": "input-panel",
|
|
6505
6513
|
id: e || y,
|
|
6506
|
-
onSubmit: (
|
|
6507
|
-
|
|
6514
|
+
onSubmit: (O) => {
|
|
6515
|
+
O.preventDefault(), _();
|
|
6508
6516
|
},
|
|
6509
6517
|
children: [
|
|
6510
6518
|
/* @__PURE__ */ g.jsx(
|
|
@@ -6513,18 +6521,21 @@ const Ks = ({
|
|
|
6513
6521
|
style: {
|
|
6514
6522
|
padding: "1em 0"
|
|
6515
6523
|
},
|
|
6516
|
-
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(
|
|
6524
|
+
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((O) => /* @__PURE__ */ g.jsx(
|
|
6517
6525
|
_e,
|
|
6518
6526
|
{
|
|
6519
|
-
...
|
|
6520
|
-
|
|
6521
|
-
|
|
6527
|
+
...O,
|
|
6528
|
+
onOptionsRequest: O.fun ? async (T, C) => Zs(
|
|
6529
|
+
await i(T, C, r, O.id)
|
|
6530
|
+
) : void 0,
|
|
6531
|
+
onChange: (T) => x(O.id, T),
|
|
6532
|
+
onBlur: () => S(O.id),
|
|
6522
6533
|
onContextMenu: f,
|
|
6523
6534
|
onClick: () => {
|
|
6524
|
-
|
|
6535
|
+
O.shape == "BTN" && w(O.id, O.fun);
|
|
6525
6536
|
},
|
|
6526
6537
|
data: {
|
|
6527
|
-
...
|
|
6538
|
+
...O.data,
|
|
6528
6539
|
autocomplete: "off"
|
|
6529
6540
|
}
|
|
6530
6541
|
}
|
|
@@ -6540,8 +6551,8 @@ const Ks = ({
|
|
|
6540
6551
|
id: "1",
|
|
6541
6552
|
horizontal: !0,
|
|
6542
6553
|
justify: "start",
|
|
6543
|
-
content: j.map((
|
|
6544
|
-
id:
|
|
6554
|
+
content: j.map((O) => ({
|
|
6555
|
+
id: O.props.id
|
|
6545
6556
|
}))
|
|
6546
6557
|
}
|
|
6547
6558
|
]
|