@sme.up/ketchup2 2.0.0-SNAPSHOT-20250702073704 → 2.0.0-SNAPSHOT-20250702073840
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-utils.d.ts +7 -0
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +829 -815
- package/dist/types/data-structures.d.ts +3 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/global.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var Vr = Object.defineProperty;
|
|
2
2
|
var Yr = (r, e, t) => e in r ? Vr(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var me = (r, e, t) => Yr(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
-
import * as
|
|
5
|
-
import at, { useState as G, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Ur, useId as
|
|
4
|
+
import * as ze from "react";
|
|
5
|
+
import at, { useState as G, useRef as ce, useEffect as re, useCallback as ue, useLayoutEffect as Ur, useId as De, useMemo as Wr, createElement as Br } from "react";
|
|
6
6
|
import { createPortal as Hr } from "react-dom";
|
|
7
|
-
var
|
|
7
|
+
var qe = { exports: {} }, Ve = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-jsx-runtime.production.js
|
|
@@ -52,12 +52,12 @@ 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 === C ? 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 O:
|
|
61
61
|
return "Profiler";
|
|
62
62
|
case x:
|
|
63
63
|
return "StrictMode";
|
|
@@ -65,7 +65,7 @@ function Kr() {
|
|
|
65
65
|
return "Suspense";
|
|
66
66
|
case j:
|
|
67
67
|
return "SuspenseList";
|
|
68
|
-
case
|
|
68
|
+
case T:
|
|
69
69
|
return "Activity";
|
|
70
70
|
}
|
|
71
71
|
if (typeof h == "object")
|
|
@@ -83,7 +83,7 @@ function Kr() {
|
|
|
83
83
|
return h = h.displayName, h || (h = v.displayName || v.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
84
84
|
case k:
|
|
85
85
|
return v = h.displayName || null, v !== null ? v : r(h.type) || "Memo";
|
|
86
|
-
case
|
|
86
|
+
case P:
|
|
87
87
|
v = h._payload, h = h._init;
|
|
88
88
|
try {
|
|
89
89
|
return r(h(v));
|
|
@@ -104,17 +104,17 @@ function Kr() {
|
|
|
104
104
|
}
|
|
105
105
|
if (v) {
|
|
106
106
|
v = console;
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var _ = v.error, A = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
108
|
+
return _.call(
|
|
109
109
|
v,
|
|
110
110
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
111
|
-
|
|
111
|
+
A
|
|
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 === P)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
120
120
|
var v = r(h);
|
|
@@ -124,7 +124,7 @@ function Kr() {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
|
-
var h =
|
|
127
|
+
var h = R.A;
|
|
128
128
|
return h === null ? null : h.getOwner();
|
|
129
129
|
}
|
|
130
130
|
function a() {
|
|
@@ -138,14 +138,14 @@ function Kr() {
|
|
|
138
138
|
return h.key !== void 0;
|
|
139
139
|
}
|
|
140
140
|
function o(h, v) {
|
|
141
|
-
function
|
|
141
|
+
function _() {
|
|
142
142
|
I || (I = !0, console.error(
|
|
143
143
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
144
144
|
v
|
|
145
145
|
));
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
get:
|
|
147
|
+
_.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
148
|
+
get: _,
|
|
149
149
|
configurable: !0
|
|
150
150
|
});
|
|
151
151
|
}
|
|
@@ -155,14 +155,14 @@ function Kr() {
|
|
|
155
155
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
156
156
|
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
157
157
|
}
|
|
158
|
-
function c(h, v,
|
|
159
|
-
return
|
|
158
|
+
function c(h, v, _, A, L, N, W, B) {
|
|
159
|
+
return _ = N.ref, h = {
|
|
160
160
|
$$typeof: m,
|
|
161
161
|
type: h,
|
|
162
162
|
key: v,
|
|
163
163
|
props: N,
|
|
164
|
-
_owner:
|
|
165
|
-
}, (
|
|
164
|
+
_owner: L
|
|
165
|
+
}, (_ !== void 0 ? _ : 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,13 +187,13 @@ function Kr() {
|
|
|
187
187
|
value: B
|
|
188
188
|
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
189
189
|
}
|
|
190
|
-
function f(h, v,
|
|
190
|
+
function f(h, v, _, A, L, N, W, B) {
|
|
191
191
|
var U = v.children;
|
|
192
192
|
if (U !== void 0)
|
|
193
|
-
if (
|
|
194
|
-
if (
|
|
195
|
-
for (
|
|
196
|
-
u(U[
|
|
193
|
+
if (A)
|
|
194
|
+
if ($(U)) {
|
|
195
|
+
for (A = 0; A < U.length; A++)
|
|
196
|
+
u(U[A]);
|
|
197
197
|
Object.freeze && Object.freeze(U);
|
|
198
198
|
} else
|
|
199
199
|
console.error(
|
|
@@ -205,34 +205,34 @@ function Kr() {
|
|
|
205
205
|
var X = Object.keys(v).filter(function(ae) {
|
|
206
206
|
return ae !== "key";
|
|
207
207
|
});
|
|
208
|
-
|
|
208
|
+
A = 0 < X.length ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}", Y[U + A] || (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
|
+
A,
|
|
216
216
|
U,
|
|
217
217
|
X,
|
|
218
218
|
U
|
|
219
|
-
), Y[U +
|
|
219
|
+
), Y[U + A] = !0);
|
|
220
220
|
}
|
|
221
|
-
if (U = null,
|
|
222
|
-
|
|
221
|
+
if (U = null, _ !== void 0 && (t(_), U = "" + _), i(v) && (t(v.key), U = "" + v.key), "key" in v) {
|
|
222
|
+
_ = {};
|
|
223
223
|
for (var K in v)
|
|
224
|
-
K !== "key" && (
|
|
225
|
-
} else
|
|
224
|
+
K !== "key" && (_[K] = v[K]);
|
|
225
|
+
} else _ = v;
|
|
226
226
|
return U && o(
|
|
227
|
-
|
|
227
|
+
_,
|
|
228
228
|
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
229
229
|
), c(
|
|
230
230
|
h,
|
|
231
231
|
U,
|
|
232
232
|
N,
|
|
233
|
-
|
|
233
|
+
L,
|
|
234
234
|
s(),
|
|
235
|
-
|
|
235
|
+
_,
|
|
236
236
|
W,
|
|
237
237
|
B
|
|
238
238
|
);
|
|
@@ -240,7 +240,7 @@ 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 d = at, m = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"),
|
|
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"), O = 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"), P = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), C = Symbol.for("react.client.reference"), R = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, D = Object.prototype.hasOwnProperty, $ = Array.isArray, F = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
246
|
d = {
|
|
@@ -248,75 +248,75 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return h();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var I, V = {},
|
|
251
|
+
var I, V = {}, q = d["react-stack-bottom-frame"].bind(
|
|
252
252
|
d,
|
|
253
253
|
a
|
|
254
254
|
)(), J = F(n(a)), Y = {};
|
|
255
|
-
Ye.Fragment = y, Ye.jsx = function(h, v,
|
|
256
|
-
var N = 1e4 >
|
|
255
|
+
Ye.Fragment = y, Ye.jsx = function(h, v, _, A, L) {
|
|
256
|
+
var N = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
h,
|
|
259
259
|
v,
|
|
260
|
-
|
|
260
|
+
_,
|
|
261
261
|
!1,
|
|
262
|
+
A,
|
|
262
263
|
L,
|
|
263
|
-
|
|
264
|
-
N ? Error("react-stack-top-frame") : z,
|
|
264
|
+
N ? Error("react-stack-top-frame") : q,
|
|
265
265
|
N ? F(n(h)) : J
|
|
266
266
|
);
|
|
267
|
-
}, Ye.jsxs = function(h, v,
|
|
268
|
-
var N = 1e4 >
|
|
267
|
+
}, Ye.jsxs = function(h, v, _, A, L) {
|
|
268
|
+
var N = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
269
269
|
return f(
|
|
270
270
|
h,
|
|
271
271
|
v,
|
|
272
|
-
|
|
272
|
+
_,
|
|
273
273
|
!0,
|
|
274
|
+
A,
|
|
274
275
|
L,
|
|
275
|
-
|
|
276
|
-
N ? Error("react-stack-top-frame") : z,
|
|
276
|
+
N ? Error("react-stack-top-frame") : q,
|
|
277
277
|
N ? F(n(h)) : J
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), Ye;
|
|
281
281
|
}
|
|
282
282
|
var Vt;
|
|
283
|
-
function
|
|
284
|
-
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ?
|
|
283
|
+
function zr() {
|
|
284
|
+
return Vt || (Vt = 1, process.env.NODE_ENV === "production" ? qe.exports = Gr() : qe.exports = Kr()), qe.exports;
|
|
285
285
|
}
|
|
286
|
-
var g =
|
|
286
|
+
var g = zr();
|
|
287
287
|
const Ce = ({ label: r, disabled: e, htmlFor: t }) => {
|
|
288
288
|
const n = {
|
|
289
289
|
container: `smp-label ${e ? "smp-label-disabled" : ""}`
|
|
290
290
|
};
|
|
291
291
|
return /* @__PURE__ */ g.jsx("label", { className: n.container, htmlFor: t, children: r });
|
|
292
292
|
}, ge = {
|
|
293
|
-
"smp-layout": "_smp-
|
|
294
|
-
"smp-layout-horizontal": "_smp-layout-
|
|
295
|
-
"smp-layout-vertical": "_smp-layout-
|
|
296
|
-
"smp-layout-section-grid": "_smp-layout-section-
|
|
297
|
-
"smp-layout-section-vertical": "_smp-layout-section-
|
|
298
|
-
"smp-layout-section-horizontal": "_smp-layout-section-
|
|
299
|
-
"smp-layout-cell-container": "_smp-layout-cell-
|
|
300
|
-
"smp-layout-section-flex": "_smp-layout-section-
|
|
301
|
-
"smp-grid-template-cols": "_smp-grid-template-
|
|
302
|
-
"smp-grid-template-rows": "_smp-grid-template-
|
|
303
|
-
"smp-layout-section-with-title": "_smp-layout-section-with-
|
|
304
|
-
"smp-layout-section-title": "_smp-layout-section-
|
|
305
|
-
},
|
|
293
|
+
"smp-layout": "_smp-layout_fuh23_1",
|
|
294
|
+
"smp-layout-horizontal": "_smp-layout-horizontal_fuh23_9",
|
|
295
|
+
"smp-layout-vertical": "_smp-layout-vertical_fuh23_14",
|
|
296
|
+
"smp-layout-section-grid": "_smp-layout-section-grid_fuh23_19",
|
|
297
|
+
"smp-layout-section-vertical": "_smp-layout-section-vertical_fuh23_22",
|
|
298
|
+
"smp-layout-section-horizontal": "_smp-layout-section-horizontal_fuh23_26",
|
|
299
|
+
"smp-layout-cell-container": "_smp-layout-cell-container_fuh23_31",
|
|
300
|
+
"smp-layout-section-flex": "_smp-layout-section-flex_fuh23_35",
|
|
301
|
+
"smp-grid-template-cols": "_smp-grid-template-cols_fuh23_52",
|
|
302
|
+
"smp-grid-template-rows": "_smp-grid-template-rows_fuh23_56",
|
|
303
|
+
"smp-layout-section-with-title": "_smp-layout-section-with-title_fuh23_60",
|
|
304
|
+
"smp-layout-section-title": "_smp-layout-section-title_fuh23_66"
|
|
305
|
+
}, qr = (r, e) => {
|
|
306
306
|
const t = [];
|
|
307
307
|
for (let n = 0; n < r.length; n += e)
|
|
308
308
|
t.push(r.slice(n, n + e));
|
|
309
309
|
return t;
|
|
310
|
-
},
|
|
310
|
+
}, Dr = (r, e) => r.map((t) => {
|
|
311
311
|
var a, i;
|
|
312
312
|
if ((a = t.sections) != null && a.length)
|
|
313
313
|
return {
|
|
314
314
|
...t,
|
|
315
|
-
sections:
|
|
315
|
+
sections: Dr(t.sections, e),
|
|
316
316
|
content: t.content
|
|
317
317
|
};
|
|
318
318
|
let n = t.sections, s = t.content;
|
|
319
|
-
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n =
|
|
319
|
+
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = qr(
|
|
320
320
|
t.content.filter((l) => e.includes(l.id)),
|
|
321
321
|
+t.columns
|
|
322
322
|
).map(
|
|
@@ -358,13 +358,13 @@ function it() {
|
|
|
358
358
|
return r;
|
|
359
359
|
}, it.apply(null, arguments);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
return
|
|
361
|
+
function Dt(r, e) {
|
|
362
|
+
return Dt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
363
363
|
return t.__proto__ = n, t;
|
|
364
|
-
},
|
|
364
|
+
}, Dt(r, e);
|
|
365
365
|
}
|
|
366
366
|
function Xr(r, e) {
|
|
367
|
-
r.prototype = Object.create(e.prototype), r.prototype.constructor = r,
|
|
367
|
+
r.prototype = Object.create(e.prototype), r.prototype.constructor = r, Dt(r, e);
|
|
368
368
|
}
|
|
369
369
|
function bt(r, e, t) {
|
|
370
370
|
if (t || arguments.length === 2) for (var n = 0, s = e.length, a; n < s; n++)
|
|
@@ -391,8 +391,8 @@ function Zr() {
|
|
|
391
391
|
throw new TypeError("invalid type");
|
|
392
392
|
var p = m;
|
|
393
393
|
if (d && typeof d == "object")
|
|
394
|
-
for (var y, x = Object.keys(d).sort(),
|
|
395
|
-
if (y = x[
|
|
394
|
+
for (var y, x = Object.keys(d).sort(), O = 0; O < x.length; O++) {
|
|
395
|
+
if (y = x[O], !t.test(y))
|
|
396
396
|
throw new TypeError("invalid parameter name");
|
|
397
397
|
p += "; " + y + "=" + c(d[y]);
|
|
398
398
|
}
|
|
@@ -409,11 +409,11 @@ function Zr() {
|
|
|
409
409
|
throw new TypeError("invalid media type");
|
|
410
410
|
var y = new f(p.toLowerCase());
|
|
411
411
|
if (m !== -1) {
|
|
412
|
-
var x,
|
|
413
|
-
for (r.lastIndex = m;
|
|
414
|
-
if (
|
|
412
|
+
var x, O, w;
|
|
413
|
+
for (r.lastIndex = m; O = r.exec(d); ) {
|
|
414
|
+
if (O.index !== m)
|
|
415
415
|
throw new TypeError("invalid parameter format");
|
|
416
|
-
m +=
|
|
416
|
+
m += O[0].length, x = O[1].toLowerCase(), w = O[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
418
|
if (m !== d.length)
|
|
419
419
|
throw new TypeError("invalid parameter format");
|
|
@@ -439,11 +439,11 @@ function Zr() {
|
|
|
439
439
|
}
|
|
440
440
|
return Je;
|
|
441
441
|
}
|
|
442
|
-
var Qr = Zr(), Ne = /* @__PURE__ */ new Map(),
|
|
442
|
+
var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), Rr = function(e) {
|
|
443
443
|
return e.cloneNode(!0);
|
|
444
444
|
}, Bt = function() {
|
|
445
445
|
return window.location.protocol === "file:";
|
|
446
|
-
},
|
|
446
|
+
}, jr = function(e, t, n) {
|
|
447
447
|
var s = new XMLHttpRequest();
|
|
448
448
|
s.onreadystatechange = function() {
|
|
449
449
|
try {
|
|
@@ -477,7 +477,7 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
477
477
|
setTimeout(function() {
|
|
478
478
|
if (Array.isArray(Ee[e])) {
|
|
479
479
|
var l = Ne.get(e), c = Ee[e][i];
|
|
480
|
-
l instanceof SVGSVGElement && c(null,
|
|
480
|
+
l instanceof SVGSVGElement && c(null, Rr(l)), l instanceof Error && c(l), i === Ee[e].length - 1 && delete Ee[e];
|
|
481
481
|
}
|
|
482
482
|
}, 0);
|
|
483
483
|
}, n = 0, s = Ee[e].length; n < s; n++)
|
|
@@ -490,16 +490,16 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
490
490
|
return;
|
|
491
491
|
}
|
|
492
492
|
if (s instanceof SVGSVGElement) {
|
|
493
|
-
n(null,
|
|
493
|
+
n(null, Rr(s));
|
|
494
494
|
return;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
Ne.set(e, void 0), Ht(e, n),
|
|
497
|
+
Ne.set(e, void 0), Ht(e, n), jr(e, t, function(a, i) {
|
|
498
498
|
var o;
|
|
499
499
|
a ? Ne.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Ne.set(e, i.responseXML.documentElement), en(e);
|
|
500
500
|
});
|
|
501
501
|
}, rn = function(e, t, n) {
|
|
502
|
-
|
|
502
|
+
jr(e, t, function(s, a) {
|
|
503
503
|
var i;
|
|
504
504
|
s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
505
505
|
});
|
|
@@ -532,8 +532,8 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
532
532
|
y && u.setAttribute("height", y);
|
|
533
533
|
var x = Array.from(new Set(bt(bt(bt([], (u.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
534
534
|
u.setAttribute("class", x);
|
|
535
|
-
var
|
|
536
|
-
|
|
535
|
+
var O = e.getAttribute("style");
|
|
536
|
+
O && u.setAttribute("style", O), u.setAttribute("data-src", l);
|
|
537
537
|
var w = [].filter.call(e.attributes, function(J) {
|
|
538
538
|
return /^data-\w[\w-]*$/.test(J.name);
|
|
539
539
|
});
|
|
@@ -551,40 +551,40 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
551
551
|
path: [],
|
|
552
552
|
pattern: ["fill", "stroke"],
|
|
553
553
|
radialGradient: ["fill", "stroke"]
|
|
554
|
-
}, E, b, j, k,
|
|
554
|
+
}, E, b, j, k, P;
|
|
555
555
|
Object.keys(S).forEach(function(J) {
|
|
556
556
|
E = J, j = S[J], b = u.querySelectorAll(E + "[id]");
|
|
557
|
-
for (var Y = function(
|
|
558
|
-
k = b[
|
|
557
|
+
for (var Y = function(A, L) {
|
|
558
|
+
k = b[A].id, P = k + "-" + sn();
|
|
559
559
|
var N;
|
|
560
560
|
Array.prototype.forEach.call(j, function(H) {
|
|
561
561
|
N = u.querySelectorAll("[" + H + '*="' + k + '"]');
|
|
562
562
|
for (var Z = 0, ne = N.length; Z < ne; Z++) {
|
|
563
563
|
var se = N[Z].getAttribute(H);
|
|
564
|
-
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || N[Z].setAttribute(H, "url(#" +
|
|
564
|
+
se && !se.match(new RegExp('url\\("?#' + k + '"?\\)')) || N[Z].setAttribute(H, "url(#" + P + ")");
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
for (var W = u.querySelectorAll("[*|href]"), B = [], U = 0, X = W.length; U < X; U++) {
|
|
568
568
|
var K = W[U].getAttributeNS(vt, "href");
|
|
569
|
-
K && K.toString() === "#" + b[
|
|
569
|
+
K && K.toString() === "#" + b[A].id && B.push(W[U]);
|
|
570
570
|
}
|
|
571
571
|
for (var ae = 0, M = B.length; ae < M; ae++)
|
|
572
|
-
B[ae].setAttributeNS(vt, "href", "#" +
|
|
573
|
-
b[
|
|
572
|
+
B[ae].setAttributeNS(vt, "href", "#" + P);
|
|
573
|
+
b[A].id = P;
|
|
574
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
|
-
D =
|
|
581
|
-
if (
|
|
582
|
-
for (var I = 0, V =
|
|
583
|
-
new Function(
|
|
579
|
+
for (var T = u.querySelectorAll("script"), C = [], R, D, $ = 0, F = T.length; $ < F; $++)
|
|
580
|
+
D = T[$].getAttribute("type"), (!D || D === "application/ecmascript" || D === "application/javascript" || D === "text/javascript") && (R = T[$].innerText || T[$].textContent, R && C.push(R), u.removeChild(T[$]));
|
|
581
|
+
if (C.length > 0 && (t === "always" || t === "once" && !Gt[l])) {
|
|
582
|
+
for (var I = 0, V = C.length; I < V; I++)
|
|
583
|
+
new Function(C[I])(window);
|
|
584
584
|
Gt[l] = !0;
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
if (Array.prototype.forEach.call(
|
|
586
|
+
var q = u.querySelectorAll("style");
|
|
587
|
+
if (Array.prototype.forEach.call(q, function(J) {
|
|
588
588
|
J.textContent += "";
|
|
589
589
|
}), u.setAttribute("xmlns", an), u.setAttribute("xmlns:xlink", vt), i(u), !e.parentNode) {
|
|
590
590
|
ve.splice(ve.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
@@ -596,13 +596,13 @@ 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, d = n.evalScripts, m = d === void 0 ? "never" : d, p = n.httpRequestWithCredentials, y = p === void 0 ? !1 : p, x = n.renumerateIRIElements,
|
|
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, O = x === void 0 ? !0 : x;
|
|
600
600
|
if (e && "length" in e)
|
|
601
601
|
for (var w = 0, S = 0, E = e.length; S < E; S++)
|
|
602
|
-
Kt(e[S], m,
|
|
602
|
+
Kt(e[S], m, O, u, y, c, function(b, j) {
|
|
603
603
|
o(b, j), e && "length" in e && e.length === ++w && a(w);
|
|
604
604
|
});
|
|
605
|
-
else e ? Kt(e, m,
|
|
605
|
+
else e ? Kt(e, m, O, u, y, c, function(b, j) {
|
|
606
606
|
o(b, j), a(1), e = null;
|
|
607
607
|
}) : a(0);
|
|
608
608
|
}, Xe = { exports: {} }, Ze = { exports: {} }, Q = {};
|
|
@@ -614,11 +614,11 @@ var Qr = Zr(), Ne = /* @__PURE__ */ new Map(), jr = function(e) {
|
|
|
614
614
|
* This source code is licensed under the MIT license found in the
|
|
615
615
|
* LICENSE file in the root directory of this source tree.
|
|
616
616
|
*/
|
|
617
|
-
var
|
|
617
|
+
var zt;
|
|
618
618
|
function ln() {
|
|
619
|
-
if (
|
|
620
|
-
|
|
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,
|
|
619
|
+
if (zt) return Q;
|
|
620
|
+
zt = 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, 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, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
622
622
|
function S(b) {
|
|
623
623
|
if (typeof b == "object" && b !== null) {
|
|
624
624
|
var j = b.$$typeof;
|
|
@@ -677,7 +677,7 @@ function ln() {
|
|
|
677
677
|
}, Q.isSuspense = function(b) {
|
|
678
678
|
return S(b) === u;
|
|
679
679
|
}, Q.isValidElementType = function(b) {
|
|
680
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === u || b === 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 ===
|
|
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 === O || b.$$typeof === w || b.$$typeof === y);
|
|
681
681
|
}, Q.typeOf = S, Q;
|
|
682
682
|
}
|
|
683
683
|
var ee = {};
|
|
@@ -689,13 +689,13 @@ var ee = {};
|
|
|
689
689
|
* This source code is licensed under the MIT license found in the
|
|
690
690
|
* LICENSE file in the root directory of this source tree.
|
|
691
691
|
*/
|
|
692
|
-
var
|
|
692
|
+
var qt;
|
|
693
693
|
function cn() {
|
|
694
|
-
return
|
|
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,
|
|
694
|
+
return qt || (qt = 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, 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, O = r ? Symbol.for("react.responder") : 60118, w = r ? Symbol.for("react.scope") : 60119;
|
|
696
696
|
function S(M) {
|
|
697
697
|
return typeof M == "string" || typeof M == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
698
|
-
M === n || M === c || M === a || M === s || M === u || M === 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 ===
|
|
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 === O || M.$$typeof === w || M.$$typeof === y);
|
|
699
699
|
}
|
|
700
700
|
function E(M) {
|
|
701
701
|
if (typeof M == "object" && M !== null) {
|
|
@@ -729,7 +729,7 @@ function cn() {
|
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
var b = l, j = c, k = o,
|
|
732
|
+
var b = l, j = c, k = o, P = i, T = e, C = f, R = n, D = p, $ = m, F = t, I = a, V = s, q = u, J = !1;
|
|
733
733
|
function Y(M) {
|
|
734
734
|
return J || (J = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(M) || E(M) === l;
|
|
735
735
|
}
|
|
@@ -739,13 +739,13 @@ function cn() {
|
|
|
739
739
|
function v(M) {
|
|
740
740
|
return E(M) === o;
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function _(M) {
|
|
743
743
|
return E(M) === i;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function A(M) {
|
|
746
746
|
return typeof M == "object" && M !== null && M.$$typeof === e;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function L(M) {
|
|
749
749
|
return E(M) === f;
|
|
750
750
|
}
|
|
751
751
|
function N(M) {
|
|
@@ -769,7 +769,7 @@ function cn() {
|
|
|
769
769
|
function ae(M) {
|
|
770
770
|
return E(M) === u;
|
|
771
771
|
}
|
|
772
|
-
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider =
|
|
772
|
+
ee.AsyncMode = b, ee.ConcurrentMode = j, ee.ContextConsumer = k, ee.ContextProvider = P, ee.Element = T, ee.ForwardRef = C, ee.Fragment = R, ee.Lazy = D, ee.Memo = $, ee.Portal = F, ee.Profiler = I, ee.StrictMode = V, ee.Suspense = q, ee.isAsyncMode = Y, ee.isConcurrentMode = h, ee.isContextConsumer = v, ee.isContextProvider = _, ee.isElement = A, ee.isForwardRef = L, ee.isFragment = N, ee.isLazy = W, ee.isMemo = B, ee.isPortal = U, ee.isProfiler = X, ee.isStrictMode = K, ee.isSuspense = ae, ee.isValidElementType = S, ee.typeOf = E;
|
|
773
773
|
}()), ee;
|
|
774
774
|
}
|
|
775
775
|
var Jt;
|
|
@@ -912,25 +912,25 @@ function dn() {
|
|
|
912
912
|
return v;
|
|
913
913
|
}
|
|
914
914
|
var d = "<<anonymous>>", m = {
|
|
915
|
-
array:
|
|
916
|
-
bigint:
|
|
917
|
-
bool:
|
|
918
|
-
func:
|
|
919
|
-
number:
|
|
920
|
-
object:
|
|
921
|
-
string:
|
|
922
|
-
symbol:
|
|
915
|
+
array: O("array"),
|
|
916
|
+
bigint: O("bigint"),
|
|
917
|
+
bool: O("boolean"),
|
|
918
|
+
func: O("function"),
|
|
919
|
+
number: O("number"),
|
|
920
|
+
object: O("object"),
|
|
921
|
+
string: O("string"),
|
|
922
|
+
symbol: O("symbol"),
|
|
923
923
|
any: w(),
|
|
924
924
|
arrayOf: S,
|
|
925
925
|
element: E(),
|
|
926
926
|
elementType: b(),
|
|
927
927
|
instanceOf: j,
|
|
928
|
-
node:
|
|
929
|
-
objectOf:
|
|
928
|
+
node: C(),
|
|
929
|
+
objectOf: P,
|
|
930
930
|
oneOf: k,
|
|
931
|
-
oneOfType:
|
|
931
|
+
oneOfType: T,
|
|
932
932
|
shape: D,
|
|
933
|
-
exact:
|
|
933
|
+
exact: $
|
|
934
934
|
};
|
|
935
935
|
function p(h, v) {
|
|
936
936
|
return h === v ? h !== 0 || 1 / h === 1 / v : h !== h && v !== v;
|
|
@@ -941,8 +941,8 @@ function dn() {
|
|
|
941
941
|
y.prototype = Error.prototype;
|
|
942
942
|
function x(h) {
|
|
943
943
|
if (process.env.NODE_ENV !== "production")
|
|
944
|
-
var v = {},
|
|
945
|
-
function
|
|
944
|
+
var v = {}, _ = 0;
|
|
945
|
+
function A(N, W, B, U, X, K, ae) {
|
|
946
946
|
if (U = U || d, K = K || B, ae !== t) {
|
|
947
947
|
if (l) {
|
|
948
948
|
var M = new Error(
|
|
@@ -952,23 +952,23 @@ function dn() {
|
|
|
952
952
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
953
953
|
var H = U + ":" + B;
|
|
954
954
|
!v[H] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
955
|
-
|
|
955
|
+
_ < 3 && (a(
|
|
956
956
|
"You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
957
|
-
), v[H] = !0,
|
|
957
|
+
), v[H] = !0, _++);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
return W[B] == null ? N ? W[B] === null ? new y("The " + X + " `" + K + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new y("The " + X + " `" + K + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : h(W, B, U, X, K);
|
|
961
961
|
}
|
|
962
|
-
var
|
|
963
|
-
return
|
|
962
|
+
var L = A.bind(null, !1);
|
|
963
|
+
return L.isRequired = A.bind(null, !0), L;
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
function v(
|
|
967
|
-
var U =
|
|
965
|
+
function O(h) {
|
|
966
|
+
function v(_, A, L, N, W, B) {
|
|
967
|
+
var U = _[A], X = V(U);
|
|
968
968
|
if (X !== h) {
|
|
969
|
-
var K =
|
|
969
|
+
var K = q(U);
|
|
970
970
|
return new y(
|
|
971
|
-
"Invalid " + N + " `" + W + "` of type " + ("`" + K + "` supplied to `" +
|
|
971
|
+
"Invalid " + N + " `" + W + "` of type " + ("`" + K + "` supplied to `" + L + "`, expected ") + ("`" + h + "`."),
|
|
972
972
|
{ expectedType: h }
|
|
973
973
|
);
|
|
974
974
|
}
|
|
@@ -980,16 +980,16 @@ function dn() {
|
|
|
980
980
|
return x(i);
|
|
981
981
|
}
|
|
982
982
|
function S(h) {
|
|
983
|
-
function v(
|
|
983
|
+
function v(_, A, L, N, W) {
|
|
984
984
|
if (typeof h != "function")
|
|
985
|
-
return new y("Property `" + W + "` of component `" +
|
|
986
|
-
var B =
|
|
985
|
+
return new y("Property `" + W + "` of component `" + L + "` has invalid PropType notation inside arrayOf.");
|
|
986
|
+
var B = _[A];
|
|
987
987
|
if (!Array.isArray(B)) {
|
|
988
988
|
var U = V(B);
|
|
989
|
-
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" +
|
|
989
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + L + "`, 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, L, N, W + "[" + X + "]", t);
|
|
993
993
|
if (K instanceof Error)
|
|
994
994
|
return K;
|
|
995
995
|
}
|
|
@@ -998,32 +998,32 @@ function dn() {
|
|
|
998
998
|
return x(v);
|
|
999
999
|
}
|
|
1000
1000
|
function E() {
|
|
1001
|
-
function h(v,
|
|
1002
|
-
var W = v[
|
|
1001
|
+
function h(v, _, A, L, N) {
|
|
1002
|
+
var W = v[_];
|
|
1003
1003
|
if (!o(W)) {
|
|
1004
1004
|
var B = V(W);
|
|
1005
|
-
return new y("Invalid " +
|
|
1005
|
+
return new y("Invalid " + L + " `" + N + "` of type " + ("`" + B + "` supplied to `" + A + "`, expected a single ReactElement."));
|
|
1006
1006
|
}
|
|
1007
1007
|
return null;
|
|
1008
1008
|
}
|
|
1009
1009
|
return x(h);
|
|
1010
1010
|
}
|
|
1011
1011
|
function b() {
|
|
1012
|
-
function h(v,
|
|
1013
|
-
var W = v[
|
|
1012
|
+
function h(v, _, A, L, N) {
|
|
1013
|
+
var W = v[_];
|
|
1014
1014
|
if (!r.isValidElementType(W)) {
|
|
1015
1015
|
var B = V(W);
|
|
1016
|
-
return new y("Invalid " +
|
|
1016
|
+
return new y("Invalid " + L + " `" + N + "` of type " + ("`" + B + "` supplied to `" + A + "`, expected a single ReactElement type."));
|
|
1017
1017
|
}
|
|
1018
1018
|
return null;
|
|
1019
1019
|
}
|
|
1020
1020
|
return x(h);
|
|
1021
1021
|
}
|
|
1022
1022
|
function j(h) {
|
|
1023
|
-
function v(
|
|
1024
|
-
if (!(
|
|
1025
|
-
var B = h.name || d, U = Y(
|
|
1026
|
-
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" +
|
|
1023
|
+
function v(_, A, L, N, W) {
|
|
1024
|
+
if (!(_[A] instanceof h)) {
|
|
1025
|
+
var B = h.name || d, U = Y(_[A]);
|
|
1026
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + L + "`, expected ") + ("instance of `" + B + "`."));
|
|
1027
1027
|
}
|
|
1028
1028
|
return null;
|
|
1029
1029
|
}
|
|
@@ -1034,28 +1034,28 @@ function dn() {
|
|
|
1034
1034
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1035
1035
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1036
1036
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1037
|
-
function v(
|
|
1038
|
-
for (var B =
|
|
1037
|
+
function v(_, A, L, N, W) {
|
|
1038
|
+
for (var B = _[A], U = 0; U < h.length; U++)
|
|
1039
1039
|
if (p(B, h[U]))
|
|
1040
1040
|
return null;
|
|
1041
1041
|
var X = JSON.stringify(h, function(ae, M) {
|
|
1042
|
-
var H =
|
|
1042
|
+
var H = q(M);
|
|
1043
1043
|
return H === "symbol" ? String(M) : M;
|
|
1044
1044
|
});
|
|
1045
|
-
return new y("Invalid " + N + " `" + W + "` of value `" + String(B) + "` " + ("supplied to `" +
|
|
1045
|
+
return new y("Invalid " + N + " `" + W + "` of value `" + String(B) + "` " + ("supplied to `" + L + "`, expected one of " + X + "."));
|
|
1046
1046
|
}
|
|
1047
1047
|
return x(v);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
function v(
|
|
1049
|
+
function P(h) {
|
|
1050
|
+
function v(_, A, L, N, W) {
|
|
1051
1051
|
if (typeof h != "function")
|
|
1052
|
-
return new y("Property `" + W + "` of component `" +
|
|
1053
|
-
var B =
|
|
1052
|
+
return new y("Property `" + W + "` of component `" + L + "` has invalid PropType notation inside objectOf.");
|
|
1053
|
+
var B = _[A], U = V(B);
|
|
1054
1054
|
if (U !== "object")
|
|
1055
|
-
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" +
|
|
1055
|
+
return new y("Invalid " + N + " `" + W + "` of type " + ("`" + U + "` supplied to `" + L + "`, 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, L, N, W + "." + X, t);
|
|
1059
1059
|
if (K instanceof Error)
|
|
1060
1060
|
return K;
|
|
1061
1061
|
}
|
|
@@ -1063,19 +1063,19 @@ function dn() {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
return x(v);
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function T(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
1069
|
for (var v = 0; v < h.length; v++) {
|
|
1070
|
-
var
|
|
1071
|
-
if (typeof
|
|
1070
|
+
var _ = h[v];
|
|
1071
|
+
if (typeof _ != "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(_) + " at index " + v + "."
|
|
1074
1074
|
), i;
|
|
1075
1075
|
}
|
|
1076
|
-
function L
|
|
1076
|
+
function A(L, N, W, B, U) {
|
|
1077
1077
|
for (var X = [], K = 0; K < h.length; K++) {
|
|
1078
|
-
var ae = h[K], M = ae(
|
|
1078
|
+
var ae = h[K], M = ae(L, N, W, B, U, t);
|
|
1079
1079
|
if (M == null)
|
|
1080
1080
|
return null;
|
|
1081
1081
|
M.data && n(M.data, "expectedType") && X.push(M.data.expectedType);
|
|
@@ -1083,29 +1083,29 @@ function dn() {
|
|
|
1083
1083
|
var H = X.length > 0 ? ", expected one of type [" + X.join(", ") + "]" : "";
|
|
1084
1084
|
return new y("Invalid " + B + " `" + U + "` supplied to " + ("`" + W + "`" + H + "."));
|
|
1085
1085
|
}
|
|
1086
|
-
return x(
|
|
1086
|
+
return x(A);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
function h(v,
|
|
1090
|
-
return F(v[
|
|
1088
|
+
function C() {
|
|
1089
|
+
function h(v, _, A, L, N) {
|
|
1090
|
+
return F(v[_]) ? null : new y("Invalid " + L + " `" + N + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
1091
1091
|
}
|
|
1092
1092
|
return x(h);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function R(h, v, _, A, L) {
|
|
1095
1095
|
return new y(
|
|
1096
|
-
(h || "React class") + ": " + v + " type `" +
|
|
1096
|
+
(h || "React class") + ": " + v + " type `" + _ + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + L + "`."
|
|
1097
1097
|
);
|
|
1098
1098
|
}
|
|
1099
1099
|
function D(h) {
|
|
1100
|
-
function v(
|
|
1101
|
-
var B =
|
|
1100
|
+
function v(_, A, L, N, W) {
|
|
1101
|
+
var B = _[A], U = V(B);
|
|
1102
1102
|
if (U !== "object")
|
|
1103
|
-
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" +
|
|
1103
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + L + "`, 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 R(L, N, W, X, q(K));
|
|
1108
|
+
var ae = K(B, X, L, N, W + "." + X, t);
|
|
1109
1109
|
if (ae)
|
|
1110
1110
|
return ae;
|
|
1111
1111
|
}
|
|
@@ -1113,22 +1113,22 @@ function dn() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
return x(v);
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
function v(
|
|
1118
|
-
var B =
|
|
1116
|
+
function $(h) {
|
|
1117
|
+
function v(_, A, L, N, W) {
|
|
1118
|
+
var B = _[A], U = V(B);
|
|
1119
1119
|
if (U !== "object")
|
|
1120
|
-
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" +
|
|
1121
|
-
var X = e({},
|
|
1120
|
+
return new y("Invalid " + N + " `" + W + "` of type `" + U + "` " + ("supplied to `" + L + "`, expected `object`."));
|
|
1121
|
+
var X = e({}, _[A], 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 R(L, N, W, K, q(ae));
|
|
1126
1126
|
if (!ae)
|
|
1127
1127
|
return new y(
|
|
1128
|
-
"Invalid " + N + " `" + W + "` key `" + K + "` supplied to `" +
|
|
1128
|
+
"Invalid " + N + " `" + W + "` key `" + K + "` supplied to `" + L + "`.\nBad object: " + JSON.stringify(_[A], 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, L, N, W + "." + K, t);
|
|
1132
1132
|
if (M)
|
|
1133
1133
|
return M;
|
|
1134
1134
|
}
|
|
@@ -1151,15 +1151,15 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1151
1151
|
return !0;
|
|
1152
1152
|
var v = u(h);
|
|
1153
1153
|
if (v) {
|
|
1154
|
-
var
|
|
1154
|
+
var _ = v.call(h), A;
|
|
1155
1155
|
if (v !== h.entries) {
|
|
1156
|
-
for (; !(
|
|
1157
|
-
if (!F(
|
|
1156
|
+
for (; !(A = _.next()).done; )
|
|
1157
|
+
if (!F(A.value))
|
|
1158
1158
|
return !1;
|
|
1159
1159
|
} else
|
|
1160
|
-
for (; !(
|
|
1161
|
-
var
|
|
1162
|
-
if (
|
|
1160
|
+
for (; !(A = _.next()).done; ) {
|
|
1161
|
+
var L = A.value;
|
|
1162
|
+
if (L && !F(L[1]))
|
|
1163
1163
|
return !1;
|
|
1164
1164
|
}
|
|
1165
1165
|
} else
|
|
@@ -1176,7 +1176,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1176
1176
|
var v = typeof h;
|
|
1177
1177
|
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : I(v, h) ? "symbol" : v;
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function q(h) {
|
|
1180
1180
|
if (typeof h > "u" || h === null)
|
|
1181
1181
|
return "" + h;
|
|
1182
1182
|
var v = V(h);
|
|
@@ -1189,7 +1189,7 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
|
1189
1189
|
return v;
|
|
1190
1190
|
}
|
|
1191
1191
|
function J(h) {
|
|
1192
|
-
var v =
|
|
1192
|
+
var v = q(h);
|
|
1193
1193
|
switch (v) {
|
|
1194
1194
|
case "array":
|
|
1195
1195
|
case "object":
|
|
@@ -1293,8 +1293,8 @@ 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, d = a.useRequestCache, m = this.props.onError, p = this.props.beforeInjection, y = this.props.afterInjection, x = this.props.wrapper,
|
|
1297
|
-
x === "svg" ? (
|
|
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, O, w;
|
|
1297
|
+
x === "svg" ? (O = document.createElementNS(Qe, x), O.setAttribute("xmlns", Qe), O.setAttribute("xmlns:xlink", sr), w = document.createElementNS(Qe, x)) : (O = document.createElement(x), w = document.createElement(x)), O.appendChild(w), w.dataset.src = f, this.nonReactWrapper = this.reactWrapper.appendChild(O);
|
|
1298
1298
|
var S = function(k) {
|
|
1299
1299
|
if (s.removeSVG(), !s._isMounted) {
|
|
1300
1300
|
m(k);
|
|
@@ -1308,7 +1308,7 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1308
1308
|
}, function() {
|
|
1309
1309
|
m(k);
|
|
1310
1310
|
});
|
|
1311
|
-
}, E = function(k,
|
|
1311
|
+
}, E = function(k, P) {
|
|
1312
1312
|
if (k) {
|
|
1313
1313
|
S(k);
|
|
1314
1314
|
return;
|
|
@@ -1319,23 +1319,23 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1319
1319
|
};
|
|
1320
1320
|
}, function() {
|
|
1321
1321
|
try {
|
|
1322
|
-
y(
|
|
1323
|
-
} catch (
|
|
1324
|
-
S(
|
|
1322
|
+
y(P);
|
|
1323
|
+
} catch (T) {
|
|
1324
|
+
S(T);
|
|
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 P = k.querySelector(":scope > desc");
|
|
1330
|
+
P && k.removeChild(P);
|
|
1331
|
+
var T = document.createElement("desc");
|
|
1332
|
+
T.innerHTML = i, k.prepend(T);
|
|
1333
1333
|
}
|
|
1334
1334
|
if (u) {
|
|
1335
|
-
var
|
|
1336
|
-
|
|
1337
|
-
var
|
|
1338
|
-
|
|
1335
|
+
var C = k.querySelector(":scope > title");
|
|
1336
|
+
C && k.removeChild(C);
|
|
1337
|
+
var R = document.createElement("title");
|
|
1338
|
+
R.innerHTML = u, k.prepend(R);
|
|
1339
1339
|
}
|
|
1340
1340
|
try {
|
|
1341
1341
|
p(k);
|
|
@@ -1374,14 +1374,14 @@ var oe = /* @__PURE__ */ hn(), mn = function(e) {
|
|
|
1374
1374
|
var i = s.loading;
|
|
1375
1375
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1376
1376
|
var o = s.wrapper, l = Jr(s, yn), c = o;
|
|
1377
|
-
return /* @__PURE__ */
|
|
1377
|
+
return /* @__PURE__ */ ze.createElement(c, it({}, l, {
|
|
1378
1378
|
ref: this.refCallback
|
|
1379
1379
|
}, o === "svg" ? {
|
|
1380
1380
|
xmlns: Qe,
|
|
1381
1381
|
xmlnsXlink: sr
|
|
1382
|
-
} : {}), this.state.isLoading && i && /* @__PURE__ */
|
|
1382
|
+
} : {}), this.state.isLoading && i && /* @__PURE__ */ ze.createElement(i, null), this.state.hasError && a && /* @__PURE__ */ ze.createElement(a, null));
|
|
1383
1383
|
}, e;
|
|
1384
|
-
}(
|
|
1384
|
+
}(ze.Component);
|
|
1385
1385
|
Me.defaultProps = {
|
|
1386
1386
|
afterInjection: function() {
|
|
1387
1387
|
},
|
|
@@ -1414,13 +1414,13 @@ Me.propTypes = {
|
|
|
1414
1414
|
useRequestCache: oe.bool,
|
|
1415
1415
|
wrapper: oe.oneOf(["div", "span", "svg"])
|
|
1416
1416
|
};
|
|
1417
|
-
let
|
|
1417
|
+
let Rt = {
|
|
1418
1418
|
assets: "/"
|
|
1419
1419
|
// Default for storybook isolation development
|
|
1420
1420
|
};
|
|
1421
|
-
const
|
|
1422
|
-
|
|
1423
|
-
}, ar = (r) => `${
|
|
1421
|
+
const na = (r) => {
|
|
1422
|
+
Rt = { ...Rt, ...r };
|
|
1423
|
+
}, ar = (r) => `${Rt.assets}/${r}`.replace(/\/+/g, "/"), le = at.memo(
|
|
1424
1424
|
({
|
|
1425
1425
|
icon: r,
|
|
1426
1426
|
width: e,
|
|
@@ -1436,7 +1436,7 @@ const ra = (r) => {
|
|
|
1436
1436
|
title: u,
|
|
1437
1437
|
tabIndex: d
|
|
1438
1438
|
}) => {
|
|
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")),
|
|
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")), O = ar(`assets/svg/${r}.svg`), w = ar(
|
|
1440
1440
|
`assets/svg/${n}.svg`
|
|
1441
1441
|
), S = {
|
|
1442
1442
|
img: `${c ? "smp-image-interactable" : ""}`,
|
|
@@ -1484,7 +1484,7 @@ const ra = (r) => {
|
|
|
1484
1484
|
) : /* @__PURE__ */ g.jsx(
|
|
1485
1485
|
Me,
|
|
1486
1486
|
{
|
|
1487
|
-
src:
|
|
1487
|
+
src: O,
|
|
1488
1488
|
fallback: () => /* @__PURE__ */ g.jsx(Me, { src: w, wrapper: "svg" }),
|
|
1489
1489
|
width: e || "1rem",
|
|
1490
1490
|
height: t || "1rem",
|
|
@@ -1510,7 +1510,7 @@ const ra = (r) => {
|
|
|
1510
1510
|
primary: "onPrimary",
|
|
1511
1511
|
danger: "onDanger",
|
|
1512
1512
|
base: "base"
|
|
1513
|
-
})[r],
|
|
1513
|
+
})[r], Re = ({
|
|
1514
1514
|
bindValue: r,
|
|
1515
1515
|
onClick: e,
|
|
1516
1516
|
ariaLabel: t,
|
|
@@ -1529,7 +1529,7 @@ const ra = (r) => {
|
|
|
1529
1529
|
squared: y = !1,
|
|
1530
1530
|
submit: x = !1
|
|
1531
1531
|
}) => {
|
|
1532
|
-
const
|
|
1532
|
+
const O = {
|
|
1533
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(
|
|
@@ -1537,7 +1537,7 @@ const ra = (r) => {
|
|
|
1537
1537
|
{
|
|
1538
1538
|
"data-component": "button",
|
|
1539
1539
|
type: x ? "submit" : "button",
|
|
1540
|
-
className:
|
|
1540
|
+
className: O.container,
|
|
1541
1541
|
onClick: e,
|
|
1542
1542
|
"aria-label": t,
|
|
1543
1543
|
disabled: s,
|
|
@@ -1563,7 +1563,7 @@ const ra = (r) => {
|
|
|
1563
1563
|
title: "h3",
|
|
1564
1564
|
body: "h6",
|
|
1565
1565
|
label: "label"
|
|
1566
|
-
},
|
|
1566
|
+
}, je = ({
|
|
1567
1567
|
variant: r = "body",
|
|
1568
1568
|
bindValue: e,
|
|
1569
1569
|
color: t,
|
|
@@ -1628,7 +1628,7 @@ const ra = (r) => {
|
|
|
1628
1628
|
S && (c(S.scrollLeft > 0), u(
|
|
1629
1629
|
S.scrollLeft + S.clientWidth < S.scrollWidth - y
|
|
1630
1630
|
));
|
|
1631
|
-
},
|
|
1631
|
+
}, O = () => {
|
|
1632
1632
|
var S;
|
|
1633
1633
|
(S = d.current) == null || S.scrollBy({ left: -p, behavior: "smooth" });
|
|
1634
1634
|
}, w = () => {
|
|
@@ -1643,11 +1643,11 @@ const ra = (r) => {
|
|
|
1643
1643
|
"data-component": "tab-bar",
|
|
1644
1644
|
children: [
|
|
1645
1645
|
l && /* @__PURE__ */ g.jsx("div", { className: m.scrollButtonLeft, children: /* @__PURE__ */ g.jsx(
|
|
1646
|
-
|
|
1646
|
+
Re,
|
|
1647
1647
|
{
|
|
1648
1648
|
bindValue: "",
|
|
1649
1649
|
optionalDisplayValue: "<",
|
|
1650
|
-
onClick:
|
|
1650
|
+
onClick: O,
|
|
1651
1651
|
variant: "base",
|
|
1652
1652
|
sizing: e
|
|
1653
1653
|
}
|
|
@@ -1672,7 +1672,7 @@ const ra = (r) => {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
),
|
|
1674
1674
|
/* @__PURE__ */ g.jsx(
|
|
1675
|
-
|
|
1675
|
+
je,
|
|
1676
1676
|
{
|
|
1677
1677
|
variant: "body",
|
|
1678
1678
|
bindValue: S.decode || "Tab[object Object]"
|
|
@@ -1682,7 +1682,6 @@ const ra = (r) => {
|
|
|
1682
1682
|
le,
|
|
1683
1683
|
{
|
|
1684
1684
|
icon: "more_vert",
|
|
1685
|
-
placeholderIcon: S.placeholderIcon,
|
|
1686
1685
|
isInteractable: !0,
|
|
1687
1686
|
onClick: () => {
|
|
1688
1687
|
console.log("clicked icon");
|
|
@@ -1694,7 +1693,7 @@ const ra = (r) => {
|
|
|
1694
1693
|
E
|
|
1695
1694
|
)) }) }),
|
|
1696
1695
|
f && /* @__PURE__ */ g.jsx("div", { className: m.scrollButtonRight, children: /* @__PURE__ */ g.jsx(
|
|
1697
|
-
|
|
1696
|
+
Re,
|
|
1698
1697
|
{
|
|
1699
1698
|
bindValue: "",
|
|
1700
1699
|
optionalDisplayValue: ">",
|
|
@@ -1729,22 +1728,22 @@ const ra = (r) => {
|
|
|
1729
1728
|
at.Children.forEach(r, (p) => {
|
|
1730
1729
|
at.isValidElement(p) && (s[p.props.id] = p);
|
|
1731
1730
|
});
|
|
1732
|
-
const a = "--smp-grid-template-cols", i = "--smp-grid-template-rows", o =
|
|
1731
|
+
const a = "--smp-grid-template-cols", i = "--smp-grid-template-rows", o = Dr(
|
|
1733
1732
|
e.sections ?? [],
|
|
1734
1733
|
Object.keys(s)
|
|
1735
1734
|
), l = (p) => p.reduce((y, x) => {
|
|
1736
1735
|
var b, j;
|
|
1737
|
-
let
|
|
1738
|
-
return (b = x.sections) != null && b.length ? (
|
|
1736
|
+
let O = "", w = {}, S = {}, E = "";
|
|
1737
|
+
return (b = x.sections) != null && b.length ? (O = 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
1738
|
x.sections,
|
|
1740
1739
|
x.horizontal ? a : i
|
|
1741
|
-
)))) : (j = x.content) != null && j.length && (x.gridCols !== void 0 && x.gridCols > 0 ? (
|
|
1740
|
+
)))) : (j = x.content) != null && j.length && (x.gridCols !== void 0 && x.gridCols > 0 ? (O = ge["smp-layout-section-grid"], E = ge["smp-grid-template-cols"], S = {
|
|
1742
1741
|
[a]: `repeat(${x.gridCols}, 1fr)`
|
|
1743
|
-
}) :
|
|
1742
|
+
}) : O = ge["smp-layout-section-flex"]), {
|
|
1744
1743
|
...y,
|
|
1745
1744
|
...w,
|
|
1746
1745
|
[x.id]: {
|
|
1747
|
-
classes: `${
|
|
1746
|
+
classes: `${O} ${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
1747
|
styles: S
|
|
1749
1748
|
}
|
|
1750
1749
|
};
|
|
@@ -1752,14 +1751,14 @@ const ra = (r) => {
|
|
|
1752
1751
|
o,
|
|
1753
1752
|
e.horizontal ? a : i
|
|
1754
1753
|
) : {}, d = (p, y) => {
|
|
1755
|
-
var
|
|
1754
|
+
var O, w;
|
|
1756
1755
|
const x = /* @__PURE__ */ g.jsx(
|
|
1757
1756
|
"div",
|
|
1758
1757
|
{
|
|
1759
1758
|
"smp-id": `section-${p.id}`,
|
|
1760
1759
|
className: c[p.id].classes,
|
|
1761
1760
|
style: c[p.id].styles,
|
|
1762
|
-
children: (
|
|
1761
|
+
children: (O = p.sections) != null && O.length ? p.sections.map((S) => d(S)) : (w = p.content) == null ? void 0 : w.map(
|
|
1763
1762
|
(S) => m(S, p.justify, p.align)
|
|
1764
1763
|
)
|
|
1765
1764
|
},
|
|
@@ -1783,8 +1782,8 @@ const ra = (r) => {
|
|
|
1783
1782
|
`title-section-${p.id}`
|
|
1784
1783
|
) : x;
|
|
1785
1784
|
}, m = (p, y, x) => {
|
|
1786
|
-
const
|
|
1787
|
-
if (!
|
|
1785
|
+
const O = s[p.id];
|
|
1786
|
+
if (!O) return null;
|
|
1788
1787
|
const S = {
|
|
1789
1788
|
gridColumnStart: (p.colSpan && p.colSpan > 0 ? `span ${p.colSpan}` : p.colStart && p.colStart < 1 ? "1" : void 0) ?? p.colStart,
|
|
1790
1789
|
gridColumnEnd: p.colEnd && p.colEnd > 0 ? p.colEnd : void 0
|
|
@@ -1795,7 +1794,7 @@ const ra = (r) => {
|
|
|
1795
1794
|
className: E,
|
|
1796
1795
|
style: S,
|
|
1797
1796
|
"smp-id": p.id,
|
|
1798
|
-
children:
|
|
1797
|
+
children: O
|
|
1799
1798
|
},
|
|
1800
1799
|
p.id
|
|
1801
1800
|
);
|
|
@@ -1902,13 +1901,13 @@ function En(r, e) {
|
|
|
1902
1901
|
case 6: {
|
|
1903
1902
|
o = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
|
|
1904
1903
|
let f = 0, u = 0;
|
|
1905
|
-
return i === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : a === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)),
|
|
1904
|
+
return i === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : a === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)), jt(o, u, parseInt(c)) && et(t) ? t : r;
|
|
1906
1905
|
}
|
|
1907
1906
|
case 7:
|
|
1908
1907
|
case 8: {
|
|
1909
1908
|
o = parseInt(n.substring(0, 2)), l = parseInt(n.substring(2, 4)), c = n.substring(4);
|
|
1910
1909
|
let f = 0, u = 0;
|
|
1911
|
-
return i === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : a === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)),
|
|
1910
|
+
return i === 0 ? (f = l, u = o - 1, t.setFullYear(parseInt(c), u, f)) : a === 0 && (f = o, u = l - 1, t.setFullYear(parseInt(c), u, f)), jt(f, u, parseInt(c)) && et(t) ? t : r;
|
|
1912
1911
|
}
|
|
1913
1912
|
}
|
|
1914
1913
|
return r;
|
|
@@ -1922,9 +1921,9 @@ function et(r) {
|
|
|
1922
1921
|
function Tn(r) {
|
|
1923
1922
|
if (!/^\d{8}$/.test(r)) return !1;
|
|
1924
1923
|
const e = parseInt(r.slice(0, 4), 10), t = parseInt(r.slice(4, 6), 10), n = parseInt(r.slice(6, 8), 10);
|
|
1925
|
-
return
|
|
1924
|
+
return jt(n, t - 1, e);
|
|
1926
1925
|
}
|
|
1927
|
-
function
|
|
1926
|
+
function jt(r, e, t) {
|
|
1928
1927
|
const n = [
|
|
1929
1928
|
31,
|
|
1930
1929
|
// January
|
|
@@ -2103,44 +2102,44 @@ const Fe = (r, e, t) => {
|
|
|
2103
2102
|
ariaLabel: p = "input field",
|
|
2104
2103
|
label: y,
|
|
2105
2104
|
helperText: x = !1,
|
|
2106
|
-
error:
|
|
2105
|
+
error: O,
|
|
2107
2106
|
appearance: w = "base",
|
|
2108
2107
|
fullWidth: S = !1,
|
|
2109
2108
|
_dataComponent: E = "textfield",
|
|
2110
2109
|
min: b,
|
|
2111
2110
|
max: j,
|
|
2112
2111
|
step: k,
|
|
2113
|
-
inputMode:
|
|
2114
|
-
width:
|
|
2115
|
-
autocomplete:
|
|
2116
|
-
size:
|
|
2112
|
+
inputMode: P = "text",
|
|
2113
|
+
width: T,
|
|
2114
|
+
autocomplete: C,
|
|
2115
|
+
size: R,
|
|
2117
2116
|
maxLength: D,
|
|
2118
|
-
onBlur:
|
|
2117
|
+
onBlur: $,
|
|
2119
2118
|
onChange: F,
|
|
2120
2119
|
onKeyDown: I,
|
|
2121
2120
|
onShapeIconClick: V,
|
|
2122
|
-
onClick:
|
|
2121
|
+
onClick: q
|
|
2123
2122
|
}) => {
|
|
2124
|
-
const J =
|
|
2123
|
+
const J = De(), Y = `${J}-helper`, h = O ? "danger" : o, v = x || !!O, _ = (N) => {
|
|
2125
2124
|
F == null || F(N.target.value);
|
|
2126
|
-
},
|
|
2125
|
+
}, A = {
|
|
2127
2126
|
wrapper: `${ye["smp-textfield-wrapper"]} ${S ? ye["smp-textfield-fullWidth"] : ""}`,
|
|
2128
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}`] : ""} ${w ? ye[`smp-textfield-${w}`] : ""} ${s ? "" : ye["smp-textfield-readOnly"]} ${c ? ye["smp-textfield-top-right-indicator"] : ""}`,
|
|
2129
2128
|
input: `${ye["smp-textfield-input"]}`
|
|
2130
2129
|
};
|
|
2131
2130
|
if (l && (l !== "notSelectable" || s)) {
|
|
2132
2131
|
const N = ye[`smp-textfield-variant-${l}`];
|
|
2133
|
-
N && (
|
|
2132
|
+
N && (A.container += ` ${N}`);
|
|
2134
2133
|
}
|
|
2135
|
-
const
|
|
2136
|
-
return /* @__PURE__ */ g.jsxs("div", { className:
|
|
2134
|
+
const L = T ? { "--smp-textField-width-base": T } : void 0;
|
|
2135
|
+
return /* @__PURE__ */ g.jsxs("div", { className: A.wrapper, "data-component": E, children: [
|
|
2137
2136
|
y && /* @__PURE__ */ g.jsx(Ce, { label: y, disabled: r, htmlFor: J }),
|
|
2138
2137
|
/* @__PURE__ */ g.jsxs(
|
|
2139
2138
|
"div",
|
|
2140
2139
|
{
|
|
2141
|
-
className:
|
|
2140
|
+
className: A.container,
|
|
2142
2141
|
ref: u,
|
|
2143
|
-
style:
|
|
2142
|
+
style: L,
|
|
2144
2143
|
children: [
|
|
2145
2144
|
t && /* @__PURE__ */ g.jsx(le, { icon: t, disabled: r }),
|
|
2146
2145
|
/* @__PURE__ */ g.jsx(
|
|
@@ -2150,9 +2149,9 @@ const Fe = (r, e, t) => {
|
|
|
2150
2149
|
type: m,
|
|
2151
2150
|
value: e,
|
|
2152
2151
|
placeholder: n,
|
|
2153
|
-
onChange:
|
|
2154
|
-
onBlur:
|
|
2155
|
-
className:
|
|
2152
|
+
onChange: _,
|
|
2153
|
+
onBlur: $,
|
|
2154
|
+
className: A.input,
|
|
2156
2155
|
disabled: r,
|
|
2157
2156
|
readOnly: !s,
|
|
2158
2157
|
onKeyDown: I,
|
|
@@ -2162,11 +2161,11 @@ const Fe = (r, e, t) => {
|
|
|
2162
2161
|
min: b,
|
|
2163
2162
|
max: j,
|
|
2164
2163
|
step: k,
|
|
2165
|
-
inputMode:
|
|
2166
|
-
autoComplete:
|
|
2167
|
-
size:
|
|
2164
|
+
inputMode: P,
|
|
2165
|
+
autoComplete: C,
|
|
2166
|
+
size: R,
|
|
2168
2167
|
maxLength: D,
|
|
2169
|
-
onClick:
|
|
2168
|
+
onClick: q
|
|
2170
2169
|
}
|
|
2171
2170
|
),
|
|
2172
2171
|
a && /* @__PURE__ */ g.jsx(
|
|
@@ -2186,7 +2185,7 @@ const Fe = (r, e, t) => {
|
|
|
2186
2185
|
v && /* @__PURE__ */ g.jsx(
|
|
2187
2186
|
Lr,
|
|
2188
2187
|
{
|
|
2189
|
-
helperText:
|
|
2188
|
+
helperText: O,
|
|
2190
2189
|
disabled: r,
|
|
2191
2190
|
state: h,
|
|
2192
2191
|
id: Y
|
|
@@ -2215,8 +2214,8 @@ function Ar({
|
|
|
2215
2214
|
a(p);
|
|
2216
2215
|
}, []), d = (m) => {
|
|
2217
2216
|
if (!i.current) return;
|
|
2218
|
-
const p = m * e, y = p + e, x = i.current,
|
|
2219
|
-
p <
|
|
2217
|
+
const p = m * e, y = p + e, x = i.current, O = x.scrollTop, w = O + t;
|
|
2218
|
+
p < O ? x.scrollTop = p : y > w && (x.scrollTop = y - t);
|
|
2220
2219
|
};
|
|
2221
2220
|
return {
|
|
2222
2221
|
virtualItems: f,
|
|
@@ -2252,7 +2251,7 @@ const tt = {
|
|
|
2252
2251
|
"smp-list-container": "_smp-list-container_6ni6l_12",
|
|
2253
2252
|
"smp-list-listItem": "_smp-list-listItem_6ni6l_17"
|
|
2254
2253
|
};
|
|
2255
|
-
function
|
|
2254
|
+
function Dn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
2256
2255
|
const a = document.createElement("canvas").getContext("2d");
|
|
2257
2256
|
if (!a) return 200;
|
|
2258
2257
|
a.font = t;
|
|
@@ -2263,7 +2262,7 @@ function Rn(r, e, t = "14px IBM Plex Sans, sans-serif", n = 32) {
|
|
|
2263
2262
|
}
|
|
2264
2263
|
return Math.ceil(i + n);
|
|
2265
2264
|
}
|
|
2266
|
-
const
|
|
2265
|
+
const Rn = 10, Pr = ({
|
|
2267
2266
|
id: r,
|
|
2268
2267
|
options: e,
|
|
2269
2268
|
displayMode: t = "Both",
|
|
@@ -2281,11 +2280,11 @@ const jn = 10, Pr = ({
|
|
|
2281
2280
|
var F;
|
|
2282
2281
|
const [u, d] = G(""), m = 40, [p, y] = G(
|
|
2283
2282
|
a !== null ? a : -1
|
|
2284
|
-
), [x,
|
|
2283
|
+
), [x, O] = G(o || 200), w = ce(null), S = s !== void 0 ? s : e.length > Rn, E = u ? e.filter(
|
|
2285
2284
|
(I) => I.label.toLowerCase().includes(u.toLowerCase())
|
|
2286
2285
|
) : e, b = (I) => {
|
|
2287
2286
|
d(I);
|
|
2288
|
-
}, { virtualItems: j, containerProps: k, innerProps:
|
|
2287
|
+
}, { virtualItems: j, containerProps: k, innerProps: P, scrollToIndex: T } = Ar({
|
|
2289
2288
|
items: E,
|
|
2290
2289
|
itemHeight: m,
|
|
2291
2290
|
containerHeight: 200,
|
|
@@ -2294,25 +2293,25 @@ const jn = 10, Pr = ({
|
|
|
2294
2293
|
re(() => {
|
|
2295
2294
|
a !== null && a !== p && y(a);
|
|
2296
2295
|
}, [a]), re(() => {
|
|
2297
|
-
p >= 0 && p < E.length &&
|
|
2296
|
+
p >= 0 && p < E.length && T(p);
|
|
2298
2297
|
}, [p, E]), re(() => {
|
|
2299
2298
|
f && (w != null && w.current) && w.current.focus();
|
|
2300
2299
|
}, [f, w]), re(() => {
|
|
2301
|
-
const I =
|
|
2302
|
-
|
|
2300
|
+
const I = Dn(e, t);
|
|
2301
|
+
O(I);
|
|
2303
2302
|
}, [e, t]);
|
|
2304
|
-
const
|
|
2303
|
+
const C = (I) => {
|
|
2305
2304
|
if (I.key === "ArrowDown" || I.key === "ArrowUp") {
|
|
2306
2305
|
I.preventDefault();
|
|
2307
2306
|
let V = p;
|
|
2308
2307
|
I.key === "ArrowDown" ? V = p < E.length - 1 ? p + 1 : 0 : I.key === "ArrowUp" && (V = p > 0 ? p - 1 : E.length - 1), y(V);
|
|
2309
2308
|
} else I.key === "Enter" ? p >= 0 && p < E.length && (l == null || l(E[p])) : I.key === "Escape" && (I.preventDefault(), I.stopPropagation());
|
|
2310
2309
|
c && c(I);
|
|
2311
|
-
},
|
|
2312
|
-
|
|
2310
|
+
}, R = (I) => {
|
|
2311
|
+
C(I);
|
|
2313
2312
|
}, D = (I) => {
|
|
2314
|
-
|
|
2315
|
-
},
|
|
2313
|
+
C(I);
|
|
2314
|
+
}, $ = {
|
|
2316
2315
|
wrapper: `${tt["smp-list"]}`,
|
|
2317
2316
|
container: `${tt["smp-list-container"]}`,
|
|
2318
2317
|
virtualScroll: `${tt["smp-list-virtualScroll"]}`,
|
|
@@ -2323,7 +2322,7 @@ const jn = 10, Pr = ({
|
|
|
2323
2322
|
{
|
|
2324
2323
|
id: r,
|
|
2325
2324
|
ref: n,
|
|
2326
|
-
className:
|
|
2325
|
+
className: $.wrapper,
|
|
2327
2326
|
"data-component": "list",
|
|
2328
2327
|
style: {
|
|
2329
2328
|
width: x,
|
|
@@ -2337,7 +2336,7 @@ const jn = 10, Pr = ({
|
|
|
2337
2336
|
placeholder: "Search...",
|
|
2338
2337
|
fullWidth: !0,
|
|
2339
2338
|
onChange: b,
|
|
2340
|
-
onKeyDown:
|
|
2339
|
+
onKeyDown: R,
|
|
2341
2340
|
inputRef: w
|
|
2342
2341
|
}
|
|
2343
2342
|
),
|
|
@@ -2345,13 +2344,13 @@ const jn = 10, Pr = ({
|
|
|
2345
2344
|
"div",
|
|
2346
2345
|
{
|
|
2347
2346
|
...k,
|
|
2348
|
-
className:
|
|
2347
|
+
className: $.container,
|
|
2349
2348
|
tabIndex: 0,
|
|
2350
2349
|
role: "listbox",
|
|
2351
2350
|
"aria-label": "List",
|
|
2352
2351
|
onKeyDown: D,
|
|
2353
2352
|
"aria-activedescendant": p >= 0 && p < E.length ? (F = E[p]) == null ? void 0 : F.id : void 0,
|
|
2354
|
-
children: /* @__PURE__ */ g.jsx("div", { ...
|
|
2353
|
+
children: /* @__PURE__ */ g.jsx("div", { ...P, className: $.virtualScroll, children: j.map(({ item: I, index: V, offsetTop: q }) => {
|
|
2355
2354
|
const J = i.includes(I.id);
|
|
2356
2355
|
return (
|
|
2357
2356
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -2362,13 +2361,13 @@ const jn = 10, Pr = ({
|
|
|
2362
2361
|
id: I.id,
|
|
2363
2362
|
"aria-selected": p === V ? "true" : "false",
|
|
2364
2363
|
tabIndex: -1,
|
|
2365
|
-
className: `${
|
|
2364
|
+
className: `${$.listItem} ${p === V ? "selected-item" : ""}`,
|
|
2366
2365
|
"aria-label": I.id + "-" + I.label,
|
|
2367
2366
|
style: {
|
|
2368
2367
|
height: `${m}px`,
|
|
2369
2368
|
lineHeight: `calc(${m}px - 2*2px)`,
|
|
2370
2369
|
// lineHeight - 2*padding
|
|
2371
|
-
transform: `translateY(${
|
|
2370
|
+
transform: `translateY(${q}px)`
|
|
2372
2371
|
},
|
|
2373
2372
|
onClick: () => {
|
|
2374
2373
|
l == null || l(I), y(V);
|
|
@@ -2403,7 +2402,7 @@ const jn = 10, Pr = ({
|
|
|
2403
2402
|
Fe(e, t, r)
|
|
2404
2403
|
);
|
|
2405
2404
|
}, [t, r]), /* @__PURE__ */ g.jsx(Le, { ...n, bindValue: s });
|
|
2406
|
-
},
|
|
2405
|
+
}, jn = (r) => {
|
|
2407
2406
|
const e = ce(null);
|
|
2408
2407
|
return re(() => () => {
|
|
2409
2408
|
e.current && clearTimeout(e.current);
|
|
@@ -2436,7 +2435,7 @@ const gt = (r, e, t) => {
|
|
|
2436
2435
|
document.removeEventListener("mousedown", n);
|
|
2437
2436
|
};
|
|
2438
2437
|
}, [r, t, e]);
|
|
2439
|
-
},
|
|
2438
|
+
}, z = (r) => typeof r == "string", Ue = () => {
|
|
2440
2439
|
let r, e;
|
|
2441
2440
|
const t = new Promise((n, s) => {
|
|
2442
2441
|
r = n, e = s;
|
|
@@ -2446,8 +2445,8 @@ const gt = (r, e, t) => {
|
|
|
2446
2445
|
r.forEach((n) => {
|
|
2447
2446
|
e[n] && (t[n] = e[n]);
|
|
2448
2447
|
});
|
|
2449
|
-
}, Cn = /###/g, ur = (r) => r && r.indexOf("###") > -1 ? r.replace(Cn, ".") : r, fr = (r) => !r ||
|
|
2450
|
-
const n =
|
|
2448
|
+
}, Cn = /###/g, ur = (r) => r && r.indexOf("###") > -1 ? r.replace(Cn, ".") : r, fr = (r) => !r || z(r), Be = (r, e, t) => {
|
|
2449
|
+
const n = z(e) ? e.split(".") : e;
|
|
2451
2450
|
let s = 0;
|
|
2452
2451
|
for (; s < n.length - 1; ) {
|
|
2453
2452
|
if (fr(r)) return {};
|
|
@@ -2489,7 +2488,7 @@ const gt = (r, e, t) => {
|
|
|
2489
2488
|
return n !== void 0 ? n : ut(e, t);
|
|
2490
2489
|
}, Ir = (r, e, t) => {
|
|
2491
2490
|
for (const n in e)
|
|
2492
|
-
n !== "__proto__" && n !== "constructor" && (n in r ?
|
|
2491
|
+
n !== "__proto__" && n !== "constructor" && (n in r ? z(r[n]) || r[n] instanceof String || z(e[n]) || e[n] instanceof String ? t && (r[n] = e[n]) : Ir(r[n], e[n], t) : r[n] = e[n]);
|
|
2493
2492
|
return r;
|
|
2494
2493
|
}, Ie = (r) => r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2495
2494
|
var Pn = {
|
|
@@ -2500,7 +2499,7 @@ var Pn = {
|
|
|
2500
2499
|
"'": "'",
|
|
2501
2500
|
"/": "/"
|
|
2502
2501
|
};
|
|
2503
|
-
const In = (r) =>
|
|
2502
|
+
const In = (r) => z(r) ? r.replace(/[&<>"'\/]/g, (e) => Pn[e]) : r;
|
|
2504
2503
|
class Nn {
|
|
2505
2504
|
constructor(e) {
|
|
2506
2505
|
this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
|
|
@@ -2580,7 +2579,7 @@ class ft {
|
|
|
2580
2579
|
return this.forward(e, "warn", "WARNING DEPRECATED: ", !0);
|
|
2581
2580
|
}
|
|
2582
2581
|
forward(e, t, n, s) {
|
|
2583
|
-
return s && !this.debug ? null : (
|
|
2582
|
+
return s && !this.debug ? null : (z(e[0]) && (e[0] = `${n}${this.prefix} ${e[0]}`), this.logger[t](e));
|
|
2584
2583
|
}
|
|
2585
2584
|
create(e) {
|
|
2586
2585
|
return new ft(this.logger, {
|
|
@@ -2641,9 +2640,9 @@ class pr extends yt {
|
|
|
2641
2640
|
var c, f;
|
|
2642
2641
|
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2643
2642
|
let o;
|
|
2644
|
-
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) :
|
|
2643
|
+
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : z(n) && a ? o.push(...n.split(a)) : o.push(n)));
|
|
2645
2644
|
const l = ut(this.data, o);
|
|
2646
|
-
return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !
|
|
2645
|
+
return !l && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), l || !i || !z(n) ? l : $t((f = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : f[t], n, a);
|
|
2647
2646
|
}
|
|
2648
2647
|
addResource(e, t, n, s, a = {
|
|
2649
2648
|
silent: !1
|
|
@@ -2656,7 +2655,7 @@ class pr extends yt {
|
|
|
2656
2655
|
silent: !1
|
|
2657
2656
|
}) {
|
|
2658
2657
|
for (const a in n)
|
|
2659
|
-
(
|
|
2658
|
+
(z(n[a]) || Array.isArray(n[a])) && this.addResource(e, t, a, n[a], {
|
|
2660
2659
|
silent: !0
|
|
2661
2660
|
});
|
|
2662
2661
|
s.silent || this.emit("added", e, t, n);
|
|
@@ -2705,7 +2704,7 @@ var Nr = {
|
|
|
2705
2704
|
}), e;
|
|
2706
2705
|
}
|
|
2707
2706
|
};
|
|
2708
|
-
const hr = {}, mr = (r) => !
|
|
2707
|
+
const hr = {}, mr = (r) => !z(r) && typeof r != "boolean" && typeof r != "number";
|
|
2709
2708
|
class dt extends yt {
|
|
2710
2709
|
constructor(e, t = {}) {
|
|
2711
2710
|
super(), $n(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = Se.create("translator");
|
|
@@ -2734,14 +2733,14 @@ class dt extends yt {
|
|
|
2734
2733
|
if (l && l.length > 0)
|
|
2735
2734
|
return {
|
|
2736
2735
|
key: e,
|
|
2737
|
-
namespaces:
|
|
2736
|
+
namespaces: z(a) ? [a] : a
|
|
2738
2737
|
};
|
|
2739
2738
|
const c = e.split(n);
|
|
2740
2739
|
(n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
|
|
2741
2740
|
}
|
|
2742
2741
|
return {
|
|
2743
2742
|
key: e,
|
|
2744
|
-
namespaces:
|
|
2743
|
+
namespaces: z(a) ? [a] : a
|
|
2745
2744
|
};
|
|
2746
2745
|
}
|
|
2747
2746
|
translate(e, t, n) {
|
|
@@ -2777,47 +2776,47 @@ class dt extends yt {
|
|
|
2777
2776
|
} : o;
|
|
2778
2777
|
const m = this.resolve(e, s);
|
|
2779
2778
|
let p = m == null ? void 0 : m.res;
|
|
2780
|
-
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o,
|
|
2779
|
+
const y = (m == null ? void 0 : m.usedKey) || o, x = (m == null ? void 0 : m.exactUsedKey) || o, 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 && !z(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
2780
|
ordinal: !1
|
|
2782
|
-
}) : "",
|
|
2783
|
-
let
|
|
2784
|
-
S && !p && b && (
|
|
2785
|
-
const
|
|
2786
|
-
if (S &&
|
|
2781
|
+
}) : "", P = E && !s.ordinal && s.count === 0, T = P && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${k}`] || s.defaultValue;
|
|
2782
|
+
let C = p;
|
|
2783
|
+
S && !p && b && (C = T);
|
|
2784
|
+
const R = mr(C), D = Object.prototype.toString.apply(C);
|
|
2785
|
+
if (S && C && R && O.indexOf(D) < 0 && !(z(w) && Array.isArray(C))) {
|
|
2787
2786
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2788
2787
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2789
|
-
const
|
|
2788
|
+
const $ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(y, C, {
|
|
2790
2789
|
...s,
|
|
2791
2790
|
ns: l
|
|
2792
2791
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2793
|
-
return a ? (m.res =
|
|
2792
|
+
return a ? (m.res = $, m.usedParams = this.getUsedParamsDetails(s), m) : $;
|
|
2794
2793
|
}
|
|
2795
2794
|
if (i) {
|
|
2796
|
-
const
|
|
2797
|
-
for (const V in
|
|
2798
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
2799
|
-
const
|
|
2800
|
-
b && !p ? F[V] = this.translate(
|
|
2795
|
+
const $ = Array.isArray(C), F = $ ? [] : {}, I = $ ? x : y;
|
|
2796
|
+
for (const V in C)
|
|
2797
|
+
if (Object.prototype.hasOwnProperty.call(C, V)) {
|
|
2798
|
+
const q = `${I}${i}${V}`;
|
|
2799
|
+
b && !p ? F[V] = this.translate(q, {
|
|
2801
2800
|
...s,
|
|
2802
|
-
defaultValue: mr(
|
|
2801
|
+
defaultValue: mr(T) ? T[V] : void 0,
|
|
2803
2802
|
joinArrays: !1,
|
|
2804
2803
|
ns: l
|
|
2805
|
-
}) : F[V] = this.translate(
|
|
2804
|
+
}) : F[V] = this.translate(q, {
|
|
2806
2805
|
...s,
|
|
2807
2806
|
joinArrays: !1,
|
|
2808
2807
|
ns: l
|
|
2809
|
-
}), F[V] ===
|
|
2808
|
+
}), F[V] === q && (F[V] = C[V]);
|
|
2810
2809
|
}
|
|
2811
2810
|
p = F;
|
|
2812
2811
|
}
|
|
2813
|
-
} else if (S &&
|
|
2812
|
+
} else if (S && z(w) && Array.isArray(p))
|
|
2814
2813
|
p = p.join(w), p && (p = this.extendTranslation(p, e, s, n));
|
|
2815
2814
|
else {
|
|
2816
|
-
let
|
|
2817
|
-
!this.isValidLookup(p) && b && (
|
|
2818
|
-
const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p,
|
|
2819
|
-
if (F ||
|
|
2820
|
-
if (this.logger.log(
|
|
2815
|
+
let $ = !1, F = !1;
|
|
2816
|
+
!this.isValidLookup(p) && b && ($ = !0, p = T), this.isValidLookup(p) || (F = !0, p = o);
|
|
2817
|
+
const V = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : p, q = b && T !== p && this.options.updateMissing;
|
|
2818
|
+
if (F || $ || q) {
|
|
2819
|
+
if (this.logger.log(q ? "updateKey" : "missingKey", u, c, o, q ? T : p), i) {
|
|
2821
2820
|
const v = this.resolve(o, {
|
|
2822
2821
|
...s,
|
|
2823
2822
|
keySeparator: !1
|
|
@@ -2830,19 +2829,19 @@ class dt extends yt {
|
|
|
2830
2829
|
for (let v = 0; v < Y.length; v++)
|
|
2831
2830
|
J.push(Y[v]);
|
|
2832
2831
|
else this.options.saveMissingTo === "all" ? J = this.languageUtils.toResolveHierarchy(s.lng || this.language) : J.push(s.lng || this.language);
|
|
2833
|
-
const h = (v,
|
|
2832
|
+
const h = (v, _, A) => {
|
|
2834
2833
|
var N;
|
|
2835
|
-
const
|
|
2836
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c,
|
|
2834
|
+
const L = b && A !== p ? A : V;
|
|
2835
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(v, c, _, L, q, s) : (N = this.backendConnector) != null && N.saveMissing && this.backendConnector.saveMissing(v, c, _, L, q, s), this.emit("missingKey", v, c, _, p);
|
|
2837
2836
|
};
|
|
2838
2837
|
this.options.saveMissing && (this.options.saveMissingPlurals && E ? J.forEach((v) => {
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2841
|
-
h([v], o +
|
|
2838
|
+
const _ = this.pluralResolver.getSuffixes(v, s);
|
|
2839
|
+
P && s[`defaultValue${this.options.pluralSeparator}zero`] && _.indexOf(`${this.options.pluralSeparator}zero`) < 0 && _.push(`${this.options.pluralSeparator}zero`), _.forEach((A) => {
|
|
2840
|
+
h([v], o + A, s[`defaultValue${A}`] || T);
|
|
2842
2841
|
});
|
|
2843
|
-
}) : h(J, o,
|
|
2842
|
+
}) : h(J, o, T));
|
|
2844
2843
|
}
|
|
2845
|
-
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F ||
|
|
2844
|
+
p = this.extendTranslation(p, e, s, m, n), F && p === o && this.options.appendNamespaceToMissingKey && (p = `${c}${f}${o}`), (F || $) && this.options.parseMissingKeyHandler && (p = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${f}${o}` : o, $ ? p : void 0, s));
|
|
2846
2845
|
}
|
|
2847
2846
|
return a ? (m.res = p, m.usedParams = this.getUsedParamsDetails(s), m) : p;
|
|
2848
2847
|
}
|
|
@@ -2863,13 +2862,13 @@ class dt extends yt {
|
|
|
2863
2862
|
...n.interpolation
|
|
2864
2863
|
}
|
|
2865
2864
|
});
|
|
2866
|
-
const f =
|
|
2865
|
+
const f = z(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2867
2866
|
let u;
|
|
2868
2867
|
if (f) {
|
|
2869
2868
|
const m = e.match(this.interpolator.nestingRegexp);
|
|
2870
2869
|
u = m && m.length;
|
|
2871
2870
|
}
|
|
2872
|
-
let d = n.replace && !
|
|
2871
|
+
let d = n.replace && !z(n.replace) ? n.replace : n;
|
|
2873
2872
|
if (this.options.interpolation.defaultVariables && (d = {
|
|
2874
2873
|
...this.options.interpolation.defaultVariables,
|
|
2875
2874
|
...d
|
|
@@ -2879,7 +2878,7 @@ class dt extends yt {
|
|
|
2879
2878
|
}
|
|
2880
2879
|
!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
2880
|
}
|
|
2882
|
-
const i = n.postProcess || this.options.postProcess, o =
|
|
2881
|
+
const i = n.postProcess || this.options.postProcess, o = z(i) ? [i] : i;
|
|
2883
2882
|
return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Nr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
2884
2883
|
i18nResolved: {
|
|
2885
2884
|
...s,
|
|
@@ -2890,16 +2889,16 @@ class dt extends yt {
|
|
|
2890
2889
|
}
|
|
2891
2890
|
resolve(e, t = {}) {
|
|
2892
2891
|
let n, s, a, i, o;
|
|
2893
|
-
return
|
|
2892
|
+
return z(e) && (e = [e]), e.forEach((l) => {
|
|
2894
2893
|
if (this.isValidLookup(n)) return;
|
|
2895
2894
|
const c = this.extractFromKey(l, t), f = c.key;
|
|
2896
2895
|
s = f;
|
|
2897
2896
|
let u = c.namespaces;
|
|
2898
2897
|
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
|
2899
|
-
const d = t.count !== void 0 && !
|
|
2898
|
+
const d = t.count !== void 0 && !z(t.count), m = d && !t.ordinal && t.count === 0, p = t.context !== void 0 && (z(t.context) || typeof t.context == "number") && t.context !== "", y = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2900
2899
|
u.forEach((x) => {
|
|
2901
|
-
var
|
|
2902
|
-
this.isValidLookup(n) || (o = x, !hr[`${y[0]}-${x}`] && ((
|
|
2900
|
+
var O, w;
|
|
2901
|
+
this.isValidLookup(n) || (o = x, !hr[`${y[0]}-${x}`] && ((O = this.utils) != null && O.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
2902
|
var j;
|
|
2904
2903
|
if (this.isValidLookup(n)) return;
|
|
2905
2904
|
i = S;
|
|
@@ -2909,10 +2908,10 @@ class dt extends yt {
|
|
|
2909
2908
|
else {
|
|
2910
2909
|
let k;
|
|
2911
2910
|
d && (k = this.pluralResolver.getSuffix(S, t.count, t));
|
|
2912
|
-
const
|
|
2913
|
-
if (d && (E.push(f + k), t.ordinal && k.indexOf(
|
|
2914
|
-
const
|
|
2915
|
-
E.push(
|
|
2911
|
+
const P = `${this.options.pluralSeparator}zero`, T = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2912
|
+
if (d && (E.push(f + k), t.ordinal && k.indexOf(T) === 0 && E.push(f + k.replace(T, this.options.pluralSeparator)), m && E.push(f + P)), p) {
|
|
2913
|
+
const C = `${f}${this.options.contextSeparator}${t.context}`;
|
|
2914
|
+
E.push(C), d && (E.push(C + k), t.ordinal && k.indexOf(T) === 0 && E.push(C + k.replace(T, this.options.pluralSeparator)), m && E.push(C + P));
|
|
2916
2915
|
}
|
|
2917
2916
|
}
|
|
2918
2917
|
let b;
|
|
@@ -2936,7 +2935,7 @@ class dt extends yt {
|
|
|
2936
2935
|
return (a = this.i18nFormat) != null && a.getResource ? this.i18nFormat.getResource(e, t, n, s) : this.resourceStore.getResource(e, t, n, s);
|
|
2937
2936
|
}
|
|
2938
2937
|
getUsedParamsDetails(e = {}) {
|
|
2939
|
-
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !
|
|
2938
|
+
const t = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"], n = e.replace && !z(e.replace);
|
|
2940
2939
|
let s = n ? e.replace : e;
|
|
2941
2940
|
if (n && typeof e.count < "u" && (s.count = e.count), this.options.interpolation.defaultVariables && (s = {
|
|
2942
2941
|
...this.options.interpolation.defaultVariables,
|
|
@@ -2973,7 +2972,7 @@ class gr {
|
|
|
2973
2972
|
return this.formatLanguageCode(t[0]);
|
|
2974
2973
|
}
|
|
2975
2974
|
formatLanguageCode(e) {
|
|
2976
|
-
if (
|
|
2975
|
+
if (z(e) && e.indexOf("-") > -1) {
|
|
2977
2976
|
let t;
|
|
2978
2977
|
try {
|
|
2979
2978
|
t = Intl.getCanonicalLocales(e)[0];
|
|
@@ -3008,7 +3007,7 @@ class gr {
|
|
|
3008
3007
|
}
|
|
3009
3008
|
getFallbackCodes(e, t) {
|
|
3010
3009
|
if (!e) return [];
|
|
3011
|
-
if (typeof e == "function" && (e = e(t)),
|
|
3010
|
+
if (typeof e == "function" && (e = e(t)), z(e) && (e = [e]), Array.isArray(e)) return e;
|
|
3012
3011
|
if (!t) return e.default || [];
|
|
3013
3012
|
let n = e[t];
|
|
3014
3013
|
return n || (n = e[this.getScriptPartFromCode(t)]), n || (n = e[this.formatLanguageCode(t)]), n || (n = e[this.getLanguagePartFromCode(t)]), n || (n = e.default), n || [];
|
|
@@ -3017,7 +3016,7 @@ class gr {
|
|
|
3017
3016
|
const n = this.getFallbackCodes((t === !1 ? [] : t) || this.options.fallbackLng || [], e), s = [], a = (i) => {
|
|
3018
3017
|
i && (this.isSupportedCode(i) ? s.push(i) : this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`));
|
|
3019
3018
|
};
|
|
3020
|
-
return
|
|
3019
|
+
return z(e) && (e.indexOf("-") > -1 || e.indexOf("_") > -1) ? (this.options.load !== "languageOnly" && a(this.formatLanguageCode(e)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && a(this.getScriptPartFromCode(e)), this.options.load !== "currentOnly" && a(this.getLanguagePartFromCode(e))) : z(e) && a(this.formatLanguageCode(e)), n.forEach((i) => {
|
|
3021
3020
|
s.indexOf(i) < 0 && a(this.formatLanguageCode(i));
|
|
3022
3021
|
}), s;
|
|
3023
3022
|
}
|
|
@@ -3084,7 +3083,7 @@ class Yn {
|
|
|
3084
3083
|
}
|
|
3085
3084
|
const vr = (r, e, t, n = ".", s = !0) => {
|
|
3086
3085
|
let a = An(r, e, t);
|
|
3087
|
-
return !a && s &&
|
|
3086
|
+
return !a && s && z(t) && (a = $t(r, t, n), a === void 0 && (a = $t(e, t, n))), a;
|
|
3088
3087
|
}, _t = (r) => r.replace(/\$/g, "$$$$");
|
|
3089
3088
|
class Un {
|
|
3090
3089
|
constructor(e = {}) {
|
|
@@ -3111,10 +3110,10 @@ class Un {
|
|
|
3111
3110
|
nestingSuffix: p,
|
|
3112
3111
|
nestingSuffixEscaped: y,
|
|
3113
3112
|
nestingOptionsSeparator: x,
|
|
3114
|
-
maxReplaces:
|
|
3113
|
+
maxReplaces: O,
|
|
3115
3114
|
alwaysFormat: w
|
|
3116
3115
|
} = e.interpolation;
|
|
3117
|
-
this.escape = t !== void 0 ? t : In, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ie(a) : i || "{{", this.suffix = o ? Ie(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Ie(d) : m || Ie("$t("), this.nestingSuffix = p ? Ie(p) : y || Ie(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces =
|
|
3116
|
+
this.escape = t !== void 0 ? t : In, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Ie(a) : i || "{{", this.suffix = o ? Ie(o) : l || "}}", this.formatSeparator = c || ",", this.unescapePrefix = f ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : f || "", this.nestingPrefix = d ? Ie(d) : m || Ie("$t("), this.nestingSuffix = p ? Ie(p) : y || Ie(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = w !== void 0 ? w : !1, this.resetRegExp();
|
|
3118
3117
|
}
|
|
3119
3118
|
reset() {
|
|
3120
3119
|
this.options && this.init(this.options);
|
|
@@ -3135,8 +3134,8 @@ class Un {
|
|
|
3135
3134
|
interpolationkey: p
|
|
3136
3135
|
}) : w;
|
|
3137
3136
|
}
|
|
3138
|
-
const y = p.split(this.formatSeparator), x = y.shift().trim(),
|
|
3139
|
-
return this.format(vr(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure),
|
|
3137
|
+
const y = p.split(this.formatSeparator), x = y.shift().trim(), O = y.join(this.formatSeparator).trim();
|
|
3138
|
+
return this.format(vr(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), O, n, {
|
|
3140
3139
|
...s,
|
|
3141
3140
|
...t,
|
|
3142
3141
|
interpolationkey: x
|
|
@@ -3155,8 +3154,8 @@ class Un {
|
|
|
3155
3154
|
const y = a[1].trim();
|
|
3156
3155
|
if (i = c(y), i === void 0)
|
|
3157
3156
|
if (typeof f == "function") {
|
|
3158
|
-
const
|
|
3159
|
-
i =
|
|
3157
|
+
const O = f(e, a, s);
|
|
3158
|
+
i = z(O) ? O : "";
|
|
3160
3159
|
} else if (s && Object.prototype.hasOwnProperty.call(s, y))
|
|
3161
3160
|
i = "";
|
|
3162
3161
|
else if (u) {
|
|
@@ -3164,7 +3163,7 @@ class Un {
|
|
|
3164
3163
|
continue;
|
|
3165
3164
|
} else
|
|
3166
3165
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${e}`), i = "";
|
|
3167
|
-
else !
|
|
3166
|
+
else !z(i) && !this.useRawValueToEscape && (i = cr(i));
|
|
3168
3167
|
const x = p.safeValue(i);
|
|
3169
3168
|
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
3169
|
break;
|
|
@@ -3195,14 +3194,14 @@ class Un {
|
|
|
3195
3194
|
let l = [];
|
|
3196
3195
|
i = {
|
|
3197
3196
|
...n
|
|
3198
|
-
}, i = i.replace && !
|
|
3197
|
+
}, i = i.replace && !z(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
3199
3198
|
let c = !1;
|
|
3200
3199
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
3201
3200
|
const f = s[1].split(this.formatSeparator).map((u) => u.trim());
|
|
3202
3201
|
s[1] = f.shift(), l = f, c = !0;
|
|
3203
3202
|
}
|
|
3204
|
-
if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !
|
|
3205
|
-
|
|
3203
|
+
if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !z(a)) return a;
|
|
3204
|
+
z(a) || (a = cr(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = l.reduce((f, u) => this.format(f, u, n.lng, {
|
|
3206
3205
|
...n,
|
|
3207
3206
|
interpolationkey: s[1].trim()
|
|
3208
3207
|
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
@@ -3407,7 +3406,7 @@ class Kn extends yt {
|
|
|
3407
3406
|
prepareLoading(e, t, n = {}, s) {
|
|
3408
3407
|
if (!this.backend)
|
|
3409
3408
|
return this.logger.warn("No backend was added via i18next.use. Will not load resources."), s && s();
|
|
3410
|
-
|
|
3409
|
+
z(e) && (e = this.languageUtils.toResolveHierarchy(e)), z(t) && (t = [t]);
|
|
3411
3410
|
const a = this.queueLoad(e, t, n, s);
|
|
3412
3411
|
if (!a.toLoad.length)
|
|
3413
3412
|
return a.pending.length || s(), null;
|
|
@@ -3491,7 +3490,7 @@ const Sr = () => ({
|
|
|
3491
3490
|
appendNamespaceToCIMode: !1,
|
|
3492
3491
|
overloadTranslationOptionHandler: (r) => {
|
|
3493
3492
|
let e = {};
|
|
3494
|
-
if (typeof r[1] == "object" && (e = r[1]),
|
|
3493
|
+
if (typeof r[1] == "object" && (e = r[1]), z(r[1]) && (e.defaultValue = r[1]), z(r[2]) && (e.tDescription = r[2]), typeof r[2] == "object" || typeof r[3] == "object") {
|
|
3495
3494
|
const t = r[3] || r[2];
|
|
3496
3495
|
Object.keys(t).forEach((n) => {
|
|
3497
3496
|
e[n] = t[n];
|
|
@@ -3515,9 +3514,9 @@ const Sr = () => ({
|
|
|
3515
3514
|
cacheInBuiltFormats: !0
|
|
3516
3515
|
}), wr = (r) => {
|
|
3517
3516
|
var e, t;
|
|
3518
|
-
return
|
|
3517
|
+
return z(r.ns) && (r.ns = [r.ns]), z(r.fallbackLng) && (r.fallbackLng = [r.fallbackLng]), z(r.fallbackNS) && (r.fallbackNS = [r.fallbackNS]), ((t = (e = r.supportedLngs) == null ? void 0 : e.indexOf) == null ? void 0 : t.call(e, "cimode")) < 0 && (r.supportedLngs = r.supportedLngs.concat(["cimode"])), typeof r.initImmediate == "boolean" && (r.initAsync = r.initImmediate), r;
|
|
3519
3518
|
}, rt = () => {
|
|
3520
|
-
},
|
|
3519
|
+
}, zn = (r) => {
|
|
3521
3520
|
Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((t) => {
|
|
3522
3521
|
typeof r[t] == "function" && (r[t] = r[t].bind(r));
|
|
3523
3522
|
});
|
|
@@ -3526,7 +3525,7 @@ class Ge extends yt {
|
|
|
3526
3525
|
constructor(e = {}, t) {
|
|
3527
3526
|
if (super(), this.options = wr(e), this.services = {}, this.logger = Se, this.modules = {
|
|
3528
3527
|
external: []
|
|
3529
|
-
},
|
|
3528
|
+
}, zn(this), t && !this.isInitialized && !e.isClone) {
|
|
3530
3529
|
if (!this.options.initAsync)
|
|
3531
3530
|
return this.init(e, t), this;
|
|
3532
3531
|
setTimeout(() => {
|
|
@@ -3535,7 +3534,7 @@ class Ge extends yt {
|
|
|
3535
3534
|
}
|
|
3536
3535
|
}
|
|
3537
3536
|
init(e = {}, t) {
|
|
3538
|
-
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (
|
|
3537
|
+
this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (z(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
|
|
3539
3538
|
const n = Sr();
|
|
3540
3539
|
this.options = {
|
|
3541
3540
|
...n,
|
|
@@ -3587,7 +3586,7 @@ class Ge extends yt {
|
|
|
3587
3586
|
loadResources(e, t = rt) {
|
|
3588
3587
|
var a, i;
|
|
3589
3588
|
let n = t;
|
|
3590
|
-
const s =
|
|
3589
|
+
const s = z(e) ? e : this.language;
|
|
3591
3590
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3592
3591
|
if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
3593
3592
|
const o = [], l = (c) => {
|
|
@@ -3636,7 +3635,7 @@ class Ge extends yt {
|
|
|
3636
3635
|
}, i = (o) => {
|
|
3637
3636
|
var f, u;
|
|
3638
3637
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3639
|
-
const l =
|
|
3638
|
+
const l = z(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(l) ? l : this.services.languageUtils.getBestMatchFromCodes(z(o) ? [o] : o);
|
|
3640
3639
|
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (u = (f = this.services.languageDetector) == null ? void 0 : f.cacheUserLanguage) == null || u.call(f, c)), this.loadResources(c, (d) => {
|
|
3641
3640
|
a(d, c);
|
|
3642
3641
|
});
|
|
@@ -3653,7 +3652,7 @@ class Ge extends yt {
|
|
|
3653
3652
|
let f;
|
|
3654
3653
|
return l.keyPrefix && Array.isArray(a) ? f = a.map((u) => `${l.keyPrefix}${c}${u}`) : f = l.keyPrefix ? `${l.keyPrefix}${c}${a}` : a, this.t(f, l);
|
|
3655
3654
|
};
|
|
3656
|
-
return
|
|
3655
|
+
return z(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
|
|
3657
3656
|
}
|
|
3658
3657
|
t(...e) {
|
|
3659
3658
|
var t;
|
|
@@ -3685,7 +3684,7 @@ class Ge extends yt {
|
|
|
3685
3684
|
}
|
|
3686
3685
|
loadNamespaces(e, t) {
|
|
3687
3686
|
const n = Ue();
|
|
3688
|
-
return this.options.ns ? (
|
|
3687
|
+
return this.options.ns ? (z(e) && (e = [e]), e.forEach((s) => {
|
|
3689
3688
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3690
3689
|
}), this.loadResources((s) => {
|
|
3691
3690
|
n.resolve(), t && t(s);
|
|
@@ -3693,7 +3692,7 @@ class Ge extends yt {
|
|
|
3693
3692
|
}
|
|
3694
3693
|
loadLanguages(e, t) {
|
|
3695
3694
|
const n = Ue();
|
|
3696
|
-
|
|
3695
|
+
z(e) && (e = [e]);
|
|
3697
3696
|
const s = this.options.preload || [], a = e.filter((i) => s.indexOf(i) < 0 && this.services.languageUtils.isSupportedCode(i));
|
|
3698
3697
|
return a.length ? (this.options.preload = s.concat(a), this.loadResources((i) => {
|
|
3699
3698
|
n.resolve(), t && t(i);
|
|
@@ -3762,9 +3761,9 @@ ie.setDefaultNamespace;
|
|
|
3762
3761
|
ie.hasLoadedNamespace;
|
|
3763
3762
|
ie.loadNamespaces;
|
|
3764
3763
|
ie.loadLanguages;
|
|
3765
|
-
const
|
|
3764
|
+
const qn = { Friday: "Venerdì", FridayShort: "Ven", Monday: "Lunedì", MondayShort: "Lun", Saturday: "Sabato", SaturdayShort: "Sab", Sunday: "Domenica", SundayShort: "Dom", Tuesday: "Martedì", TuesdayShort: "Mar", Thursday: "Giovedì", ThursdayShort: "Gio", Wednesday: "Mercoledì", WednesdayShort: "Mer" }, Jn = { April: "Aprile", August: "Agosto", December: "Dicembre", February: "Febbraio", January: "Gennaio", June: "Giugno", July: "Luglio", March: "Marzo", May: "Maggio", October: "Ottobre", November: "Novembre", September: "Settembre" }, Xn = { CalendarFor: "Calendario per", Close: "Chiudi", SpotlightDefaultPlaceholder: "Esegui Comando", CheckObjectWrongValidation: "Oggetto non valido", ConfirmButton: "Conferma", AutocompleteDefaultPlaceholder: "Inserisci codice o descrizione" }, Zn = {
|
|
3766
3765
|
Date: { NextDay: "Giorno Successivo", NextMonth: "Mese Successivo", NextWeek: "Settimana Successiva", NextYear: "Anno Successivo", PreviousDay: "Giorno Precedente", PreviousMonth: "Mese Precedente", PreviousWeek: "Settimana Precedente", PreviousYear: "Anno Precedente", Today: "Oggi", Tomorrow: "Domani", Yesterday: "Ieri" },
|
|
3767
|
-
Day:
|
|
3766
|
+
Day: qn,
|
|
3768
3767
|
Month: Jn,
|
|
3769
3768
|
Generic: Xn
|
|
3770
3769
|
}, Qn = { Friday: "Friday", FridayShort: "Fri", Monday: "Monday", MondayShort: "Mon", Saturday: "Saturday", SaturdayShort: "Sat", Sunday: "Sunday", SundayShort: "Sun", Tuesday: "Tuesday", TuesdayShort: "Tue", Thursday: "Thursday", ThursdayShort: "Thu", Wednesday: "Wednesday", WednesdayShort: "Wed" }, es = { April: "April", August: "August", December: "December", February: "February", January: "January", July: "July", June: "June", March: "March", May: "May", November: "November", October: "October", September: "September" }, ts = { CalendarFor: "Calendar for", Close: "Close", SpotlightDefaultPlaceholder: "Execute Command", CheckObjectWrongValidation: "Object not valid", ConfirmButton: "Confirm", AutocompleteDefaultPlaceholder: "Type code or description" }, rs = {
|
|
@@ -3901,38 +3900,38 @@ const kr = ({
|
|
|
3901
3900
|
_multiActiveIndex: d,
|
|
3902
3901
|
...m
|
|
3903
3902
|
}) => {
|
|
3904
|
-
const p = ce(null), [y, x] = G(r), [
|
|
3903
|
+
const p = ce(null), [y, x] = G(r), [O, w] = G(e), { translate: S } = Ae(), [E, b] = G(!1), [j, k] = G(t || []), [P, T] = G(0), [C, R] = G([r]), { anchorRef: D, targetRef: $, anchorWidth: F } = ht({
|
|
3905
3904
|
position: "bottom",
|
|
3906
3905
|
enabled: E
|
|
3907
3906
|
}), I = ue(() => {
|
|
3908
|
-
var
|
|
3909
|
-
b(!1), (
|
|
3907
|
+
var _;
|
|
3908
|
+
b(!1), (_ = p == null ? void 0 : p.current) == null || _.focus();
|
|
3910
3909
|
}, []);
|
|
3911
|
-
gt([
|
|
3912
|
-
const V =
|
|
3913
|
-
|
|
3914
|
-
const
|
|
3915
|
-
k(
|
|
3916
|
-
}) : I(), x(
|
|
3910
|
+
gt([$], E, () => I());
|
|
3911
|
+
const V = jn(400), q = (_) => {
|
|
3912
|
+
_.length >= a ? o && f && V(async () => {
|
|
3913
|
+
const A = await f(o, _);
|
|
3914
|
+
k(A), T(A.length > 0 ? 0 : -1), b(!0);
|
|
3915
|
+
}) : I(), x(_), w(e), l || c == null || c(_, e);
|
|
3917
3916
|
}, J = () => {
|
|
3918
3917
|
E || u == null || u();
|
|
3919
|
-
}, Y = (
|
|
3920
|
-
l ? (x(""), w("")) : (x(
|
|
3921
|
-
const
|
|
3922
|
-
|
|
3923
|
-
}, h = (
|
|
3924
|
-
|
|
3925
|
-
}, v = (
|
|
3926
|
-
if ((
|
|
3927
|
-
const
|
|
3928
|
-
|
|
3929
|
-
}
|
|
3930
|
-
switch (
|
|
3918
|
+
}, Y = (_) => {
|
|
3919
|
+
l ? (x(""), w("")) : (x(_.id), w(_.label)), c == null || c(_.id, _.label);
|
|
3920
|
+
const A = j.findIndex((L) => L.id === _.id);
|
|
3921
|
+
T(A), R([_.id]), I();
|
|
3922
|
+
}, h = (_) => {
|
|
3923
|
+
_.key === "Escape" && (I(), T(-1));
|
|
3924
|
+
}, v = (_) => {
|
|
3925
|
+
if ((_.key === "ArrowDown" || _.key === "ArrowUp") && (_.preventDefault(), E)) {
|
|
3926
|
+
const A = _.key === "ArrowDown" ? (P + 1) % j.length : (P - 1 + j.length) % j.length;
|
|
3927
|
+
T(A);
|
|
3928
|
+
}
|
|
3929
|
+
switch (_.key) {
|
|
3931
3930
|
case "Enter":
|
|
3932
|
-
|
|
3931
|
+
P >= 0 && P < j.length ? Y(j[P]) : l && (c == null || c(y, ""), I(), x(""), w(""));
|
|
3933
3932
|
break;
|
|
3934
3933
|
case "Escape":
|
|
3935
|
-
I(),
|
|
3934
|
+
I(), T(-1);
|
|
3936
3935
|
break;
|
|
3937
3936
|
}
|
|
3938
3937
|
};
|
|
@@ -3942,7 +3941,7 @@ const kr = ({
|
|
|
3942
3941
|
{
|
|
3943
3942
|
...m,
|
|
3944
3943
|
bindValue: y,
|
|
3945
|
-
optionalDisplayValue:
|
|
3944
|
+
optionalDisplayValue: O,
|
|
3946
3945
|
displayMode: n,
|
|
3947
3946
|
isEditable: i,
|
|
3948
3947
|
shapeIcon: "magnify",
|
|
@@ -3951,7 +3950,7 @@ const kr = ({
|
|
|
3951
3950
|
),
|
|
3952
3951
|
ref: D,
|
|
3953
3952
|
inputRef: p,
|
|
3954
|
-
onChange:
|
|
3953
|
+
onChange: q,
|
|
3955
3954
|
onKeyDown: v,
|
|
3956
3955
|
onBlur: J,
|
|
3957
3956
|
"aria-autocomplete": "list"
|
|
@@ -3963,9 +3962,9 @@ const kr = ({
|
|
|
3963
3962
|
options: j,
|
|
3964
3963
|
displayMode: s,
|
|
3965
3964
|
onClick: Y,
|
|
3966
|
-
ref:
|
|
3967
|
-
selectedIndex:
|
|
3968
|
-
activeIndex: d ||
|
|
3965
|
+
ref: $,
|
|
3966
|
+
selectedIndex: P,
|
|
3967
|
+
activeIndex: d || C,
|
|
3969
3968
|
width: F,
|
|
3970
3969
|
showFilter: !1,
|
|
3971
3970
|
onKeyDown: h,
|
|
@@ -3999,7 +3998,7 @@ const kr = ({
|
|
|
3999
3998
|
);
|
|
4000
3999
|
});
|
|
4001
4000
|
}, [y, e, p]);
|
|
4002
|
-
const
|
|
4001
|
+
const O = {
|
|
4003
4002
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
4004
4003
|
}, w = y == null ? void 0 : y.map((S, E) => {
|
|
4005
4004
|
const b = {
|
|
@@ -4020,9 +4019,9 @@ const kr = ({
|
|
|
4020
4019
|
m == null || m(S.id, S.fun);
|
|
4021
4020
|
}
|
|
4022
4021
|
};
|
|
4023
|
-
return /* @__PURE__ */ g.jsx(
|
|
4022
|
+
return /* @__PURE__ */ g.jsx(Re, { ...b }, `button-${E}`);
|
|
4024
4023
|
});
|
|
4025
|
-
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className:
|
|
4024
|
+
return /* @__PURE__ */ g.jsx("div", { role: "list", "data-component": "button-list", className: O.container, children: w });
|
|
4026
4025
|
}, hs = {
|
|
4027
4026
|
"smp-checkbox-wrapper": "_smp-checkbox-wrapper_z14lq_2"
|
|
4028
4027
|
}, ms = ({
|
|
@@ -4035,7 +4034,7 @@ const kr = ({
|
|
|
4035
4034
|
onBlur: i,
|
|
4036
4035
|
variant: o = "checkbox"
|
|
4037
4036
|
}) => {
|
|
4038
|
-
const l =
|
|
4037
|
+
const l = De(), c = (u) => {
|
|
4039
4038
|
s && a && a(u.target.checked);
|
|
4040
4039
|
}, f = {
|
|
4041
4040
|
wrapper: `${hs["smp-checkbox-wrapper"]}`
|
|
@@ -4095,7 +4094,7 @@ const kr = ({
|
|
|
4095
4094
|
},
|
|
4096
4095
|
children: [
|
|
4097
4096
|
i && /* @__PURE__ */ g.jsx(le, { icon: "drag_indicator_horizontal", isInteractable: !0 }),
|
|
4098
|
-
/* @__PURE__ */ g.jsx(
|
|
4097
|
+
/* @__PURE__ */ g.jsx(je, { variant: "label", bindValue: y, color: s }),
|
|
4099
4098
|
e && /* @__PURE__ */ g.jsx(
|
|
4100
4099
|
le,
|
|
4101
4100
|
{
|
|
@@ -4108,7 +4107,7 @@ const kr = ({
|
|
|
4108
4107
|
]
|
|
4109
4108
|
},
|
|
4110
4109
|
`chip-${p}`
|
|
4111
|
-
),
|
|
4110
|
+
), O = i && p < r.length - 1 ? /* @__PURE__ */ g.jsx(
|
|
4112
4111
|
le,
|
|
4113
4112
|
{
|
|
4114
4113
|
icon: "chevron-right",
|
|
@@ -4116,7 +4115,7 @@ const kr = ({
|
|
|
4116
4115
|
},
|
|
4117
4116
|
`separator-${p}`
|
|
4118
4117
|
) : null;
|
|
4119
|
-
return [x,
|
|
4118
|
+
return [x, O].filter(Boolean);
|
|
4120
4119
|
}) });
|
|
4121
4120
|
};
|
|
4122
4121
|
function kt(r, e) {
|
|
@@ -4171,26 +4170,26 @@ const gs = ({
|
|
|
4171
4170
|
multiActiveIndex: c,
|
|
4172
4171
|
...f
|
|
4173
4172
|
}) => {
|
|
4174
|
-
const u = ce(null), [d, m] = G(!1), [p, y] = G(t), [x,
|
|
4173
|
+
const u = ce(null), [d, m] = G(!1), [p, y] = G(t), [x, O] = G(-1), [w, S] = G([r]), E = De(), { anchorRef: b, targetRef: j, anchorWidth: k } = ht({
|
|
4175
4174
|
position: "bottom",
|
|
4176
4175
|
enabled: d
|
|
4177
|
-
}),
|
|
4178
|
-
var
|
|
4179
|
-
m(!1), (
|
|
4176
|
+
}), P = ue(() => {
|
|
4177
|
+
var $;
|
|
4178
|
+
m(!1), ($ = u == null ? void 0 : u.current) == null || $.focus();
|
|
4180
4179
|
}, []);
|
|
4181
|
-
gt([j, b], d, () =>
|
|
4182
|
-
const
|
|
4183
|
-
e == null || e(
|
|
4184
|
-
const F = p.findIndex((I) => I.id ===
|
|
4185
|
-
|
|
4186
|
-
},
|
|
4187
|
-
|
|
4188
|
-
},
|
|
4189
|
-
(
|
|
4180
|
+
gt([j, b], d, () => P()), kt(d, j);
|
|
4181
|
+
const T = ($) => {
|
|
4182
|
+
e == null || e($.id, $.label);
|
|
4183
|
+
const F = p.findIndex((I) => I.id === $.id);
|
|
4184
|
+
O(F), S([$.id]), P();
|
|
4185
|
+
}, C = ($) => {
|
|
4186
|
+
$.key === "Escape" && (P(), O(-1));
|
|
4187
|
+
}, R = ($) => {
|
|
4188
|
+
($.key === "ArrowDown" || $.key === "ArrowUp") && ($.preventDefault(), D());
|
|
4190
4189
|
}, D = () => {
|
|
4191
|
-
s && (o && l ? d ? m(!1) : l(o, void 0).then((
|
|
4192
|
-
y(
|
|
4193
|
-
}) : m((
|
|
4190
|
+
s && (o && l ? d ? m(!1) : l(o, void 0).then(($) => {
|
|
4191
|
+
y($), O($.length > 0 ? 0 : -1), m(!0);
|
|
4192
|
+
}) : m(($) => !$));
|
|
4194
4193
|
};
|
|
4195
4194
|
return /* @__PURE__ */ g.jsxs(
|
|
4196
4195
|
"div",
|
|
@@ -4209,7 +4208,7 @@ const gs = ({
|
|
|
4209
4208
|
optionalDisplayValue: n,
|
|
4210
4209
|
displayMode: a,
|
|
4211
4210
|
onShapeIconClick: D,
|
|
4212
|
-
onKeyDown:
|
|
4211
|
+
onKeyDown: R,
|
|
4213
4212
|
onClick: D,
|
|
4214
4213
|
shapeIcon: "arrow_drop_down",
|
|
4215
4214
|
rotatedShapeIcon: d,
|
|
@@ -4231,8 +4230,8 @@ const gs = ({
|
|
|
4231
4230
|
selectedIndex: x,
|
|
4232
4231
|
activeIndex: c || w,
|
|
4233
4232
|
width: k,
|
|
4234
|
-
onClick:
|
|
4235
|
-
onKeyDown:
|
|
4233
|
+
onClick: T,
|
|
4234
|
+
onKeyDown: C
|
|
4236
4235
|
}
|
|
4237
4236
|
) })
|
|
4238
4237
|
]
|
|
@@ -4260,7 +4259,7 @@ function bs({
|
|
|
4260
4259
|
l ? l.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
4261
4260
|
), [p, y] = G(
|
|
4262
4261
|
l ? l.getDate() : null
|
|
4263
|
-
), x = ce(null),
|
|
4262
|
+
), x = ce(null), O = ce([]), w = [
|
|
4264
4263
|
a(pe.JANUARY),
|
|
4265
4264
|
a(pe.FEBRUARY),
|
|
4266
4265
|
a(pe.MARCH),
|
|
@@ -4303,37 +4302,37 @@ function bs({
|
|
|
4303
4302
|
full: a(fe.SATURDAY)
|
|
4304
4303
|
}
|
|
4305
4304
|
], E = (Y) => t.some((h) => {
|
|
4306
|
-
const v = h.start.getTime(),
|
|
4307
|
-
return
|
|
4305
|
+
const v = h.start.getTime(), _ = h.end.getTime(), A = Y.getTime();
|
|
4306
|
+
return A >= v && A <= _;
|
|
4308
4307
|
}), b = (Y) => {
|
|
4309
4308
|
E(Y) || (c(Y), y(Y.getDate()), e && e(_n(Y)));
|
|
4310
4309
|
}, j = () => {
|
|
4311
4310
|
f === 0 ? (u(11), m(d - 1)) : u(f - 1), y(1);
|
|
4312
4311
|
}, k = () => {
|
|
4313
4312
|
f === 11 ? (u(0), m(d + 1)) : u(f + 1), y(1);
|
|
4314
|
-
},
|
|
4313
|
+
}, P = (Y, h) => new Date(Y, h + 1, 0).getDate(), T = (Y, h) => new Date(Y, h, 1).getDay(), C = (Y) => {
|
|
4315
4314
|
var v;
|
|
4316
4315
|
const h = F.findIndex(
|
|
4317
|
-
(
|
|
4316
|
+
(_) => _ !== null && _.getDate() === Y
|
|
4318
4317
|
);
|
|
4319
|
-
h !== -1 &&
|
|
4320
|
-
},
|
|
4318
|
+
h !== -1 && O.current[h] && ((v = O.current[h]) == null || v.focus(), y(Y));
|
|
4319
|
+
}, R = (Y, h) => {
|
|
4321
4320
|
const v = F[h];
|
|
4322
4321
|
if (!v) return;
|
|
4323
|
-
const
|
|
4322
|
+
const _ = P(d, f), A = v.getDate();
|
|
4324
4323
|
switch (Y.key) {
|
|
4325
4324
|
case "ArrowRight":
|
|
4326
4325
|
Y.preventDefault();
|
|
4327
4326
|
{
|
|
4328
|
-
let
|
|
4329
|
-
if (
|
|
4327
|
+
let L = A + 1, N = new Date(d, f, L);
|
|
4328
|
+
if (L > _) {
|
|
4330
4329
|
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4331
|
-
|
|
4330
|
+
L = 1, N = new Date(W, B, L), k(), setTimeout(() => {
|
|
4332
4331
|
D(1, "forward");
|
|
4333
4332
|
}, 0);
|
|
4334
4333
|
return;
|
|
4335
4334
|
}
|
|
4336
|
-
E(N) ? D(
|
|
4335
|
+
E(N) ? D(L, "forward") : C(L);
|
|
4337
4336
|
}
|
|
4338
4337
|
break;
|
|
4339
4338
|
case "Tab":
|
|
@@ -4341,66 +4340,66 @@ function bs({
|
|
|
4341
4340
|
case "ArrowLeft":
|
|
4342
4341
|
Y.preventDefault();
|
|
4343
4342
|
{
|
|
4344
|
-
let
|
|
4345
|
-
if (
|
|
4346
|
-
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1, U =
|
|
4347
|
-
|
|
4343
|
+
let L = A - 1, N = new Date(d, f, L);
|
|
4344
|
+
if (L < 1) {
|
|
4345
|
+
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1, U = P(W, B);
|
|
4346
|
+
L = U, N = new Date(W, B, L), j(), setTimeout(() => {
|
|
4348
4347
|
D(U, "backward");
|
|
4349
4348
|
}, 0);
|
|
4350
4349
|
return;
|
|
4351
4350
|
}
|
|
4352
|
-
E(N) ? D(
|
|
4351
|
+
E(N) ? D(L, "backward") : C(L);
|
|
4353
4352
|
}
|
|
4354
4353
|
break;
|
|
4355
4354
|
case "ArrowUp":
|
|
4356
4355
|
Y.preventDefault();
|
|
4357
4356
|
{
|
|
4358
|
-
let
|
|
4359
|
-
if (
|
|
4357
|
+
let L = A - 7, N = new Date(d, f, L);
|
|
4358
|
+
if (L < 1) {
|
|
4360
4359
|
const W = f === 0 ? d - 1 : d, B = f === 0 ? 11 : f - 1;
|
|
4361
|
-
|
|
4362
|
-
D(
|
|
4360
|
+
L = P(W, B) + L, N = new Date(W, B, L), j(), setTimeout(() => {
|
|
4361
|
+
D(L, "backward");
|
|
4363
4362
|
}, 0);
|
|
4364
4363
|
return;
|
|
4365
4364
|
}
|
|
4366
|
-
E(N) ? D(
|
|
4365
|
+
E(N) ? D(L, "backward") : C(L);
|
|
4367
4366
|
}
|
|
4368
4367
|
break;
|
|
4369
4368
|
case "ArrowDown":
|
|
4370
4369
|
Y.preventDefault();
|
|
4371
4370
|
{
|
|
4372
|
-
let
|
|
4373
|
-
if (
|
|
4371
|
+
let L = A + 7, N = new Date(d, f, L);
|
|
4372
|
+
if (L > _) {
|
|
4374
4373
|
const W = f === 11 ? d + 1 : d, B = f === 11 ? 0 : f + 1;
|
|
4375
|
-
|
|
4376
|
-
D(
|
|
4374
|
+
L = L - _, N = new Date(W, B, L), k(), setTimeout(() => {
|
|
4375
|
+
D(L, "forward");
|
|
4377
4376
|
}, 0);
|
|
4378
4377
|
return;
|
|
4379
4378
|
}
|
|
4380
|
-
E(N) ? D(
|
|
4379
|
+
E(N) ? D(L, "forward") : C(L);
|
|
4381
4380
|
}
|
|
4382
4381
|
break;
|
|
4383
4382
|
case "Home":
|
|
4384
4383
|
Y.preventDefault(), D(1, "forward");
|
|
4385
4384
|
break;
|
|
4386
4385
|
case "End":
|
|
4387
|
-
Y.preventDefault(), D(
|
|
4386
|
+
Y.preventDefault(), D(_, "backward");
|
|
4388
4387
|
break;
|
|
4389
4388
|
case "PageUp":
|
|
4390
4389
|
Y.preventDefault(), j(), setTimeout(() => {
|
|
4391
|
-
const
|
|
4390
|
+
const L = P(
|
|
4392
4391
|
f === 0 ? d - 1 : d,
|
|
4393
4392
|
f === 0 ? 11 : f - 1
|
|
4394
|
-
), N = Math.min(
|
|
4393
|
+
), N = Math.min(A, L);
|
|
4395
4394
|
D(N, "forward");
|
|
4396
4395
|
}, 0);
|
|
4397
4396
|
break;
|
|
4398
4397
|
case "PageDown":
|
|
4399
4398
|
Y.preventDefault(), k(), setTimeout(() => {
|
|
4400
|
-
const
|
|
4399
|
+
const L = P(
|
|
4401
4400
|
f === 11 ? d + 1 : d,
|
|
4402
4401
|
f === 11 ? 0 : f + 1
|
|
4403
|
-
), N = Math.min(
|
|
4402
|
+
), N = Math.min(A, L);
|
|
4404
4403
|
D(N, "forward");
|
|
4405
4404
|
}, 0);
|
|
4406
4405
|
break;
|
|
@@ -4414,12 +4413,12 @@ function bs({
|
|
|
4414
4413
|
break;
|
|
4415
4414
|
}
|
|
4416
4415
|
}, D = (Y, h) => {
|
|
4417
|
-
const v =
|
|
4416
|
+
const v = P(d, f);
|
|
4418
4417
|
if (h === "forward") {
|
|
4419
|
-
for (let
|
|
4420
|
-
const
|
|
4421
|
-
if (!E(
|
|
4422
|
-
|
|
4418
|
+
for (let _ = Y; _ <= v; _++) {
|
|
4419
|
+
const A = new Date(d, f, _);
|
|
4420
|
+
if (!E(A)) {
|
|
4421
|
+
C(_);
|
|
4423
4422
|
return;
|
|
4424
4423
|
}
|
|
4425
4424
|
}
|
|
@@ -4430,22 +4429,22 @@ function bs({
|
|
|
4430
4429
|
for (let N = Y; N >= 1; N--) {
|
|
4431
4430
|
const W = new Date(d, f, N);
|
|
4432
4431
|
if (!E(W)) {
|
|
4433
|
-
|
|
4432
|
+
C(N);
|
|
4434
4433
|
return;
|
|
4435
4434
|
}
|
|
4436
4435
|
}
|
|
4437
|
-
const
|
|
4436
|
+
const _ = f === 0 ? d - 1 : d, A = f === 0 ? 11 : f - 1, L = P(_, A);
|
|
4438
4437
|
j(), setTimeout(() => {
|
|
4439
|
-
D(
|
|
4438
|
+
D(L, "backward");
|
|
4440
4439
|
}, 0);
|
|
4441
4440
|
}
|
|
4442
4441
|
}, F = (() => {
|
|
4443
|
-
const Y =
|
|
4444
|
-
for (let
|
|
4442
|
+
const Y = P(d, f), h = T(d, f), v = [];
|
|
4443
|
+
for (let _ = 0; _ < h; _++)
|
|
4445
4444
|
v.push(null);
|
|
4446
|
-
for (let
|
|
4447
|
-
const
|
|
4448
|
-
v.push(
|
|
4445
|
+
for (let _ = 1; _ <= Y; _++) {
|
|
4446
|
+
const A = new Date(d, f, _);
|
|
4447
|
+
v.push(A);
|
|
4449
4448
|
}
|
|
4450
4449
|
return v;
|
|
4451
4450
|
})(), I = [];
|
|
@@ -4462,25 +4461,25 @@ function bs({
|
|
|
4462
4461
|
const h = F.findIndex(
|
|
4463
4462
|
(v) => v !== null && v.getDate() === p
|
|
4464
4463
|
);
|
|
4465
|
-
h !== -1 &&
|
|
4464
|
+
h !== -1 && O.current[h] && ((Y = O.current[h]) == null || Y.focus());
|
|
4466
4465
|
}
|
|
4467
4466
|
}, [f, d, p, F]);
|
|
4468
|
-
const
|
|
4467
|
+
const q = {
|
|
4469
4468
|
label: "smp-datepickercalendar-label",
|
|
4470
4469
|
wrapper: `smp-datepickercalendar ${ys["smp-datepickercalendar-position"]}`,
|
|
4471
4470
|
calendar: "smp-datepickercalendar",
|
|
4472
4471
|
table: "smp-datepickercalendar-table",
|
|
4473
4472
|
th: "smp-datepickercalendar-th",
|
|
4474
|
-
td: (Y, h, v,
|
|
4473
|
+
td: (Y, h, v, _) => `smp-datepickercalendar-td
|
|
4475
4474
|
${Y ? "smp-datepickercalendar-td-today" : ""}
|
|
4476
4475
|
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4477
4476
|
${v ? "smp-datepickercalendar-td-focused" : ""}
|
|
4478
|
-
${
|
|
4477
|
+
${_ ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4479
4478
|
}, J = () => `${w[f]} ${d.toString()}`;
|
|
4480
4479
|
return /* @__PURE__ */ g.jsxs(
|
|
4481
4480
|
"div",
|
|
4482
4481
|
{
|
|
4483
|
-
className:
|
|
4482
|
+
className: q.wrapper,
|
|
4484
4483
|
ref: s,
|
|
4485
4484
|
role: "dialog",
|
|
4486
4485
|
tabIndex: -1,
|
|
@@ -4498,7 +4497,7 @@ function bs({
|
|
|
4498
4497
|
},
|
|
4499
4498
|
children: [
|
|
4500
4499
|
/* @__PURE__ */ g.jsx(
|
|
4501
|
-
|
|
4500
|
+
Re,
|
|
4502
4501
|
{
|
|
4503
4502
|
onClick: j,
|
|
4504
4503
|
ariaLabel: a(Ct.PREVIOUS_MONTH),
|
|
@@ -4512,12 +4511,12 @@ function bs({
|
|
|
4512
4511
|
"div",
|
|
4513
4512
|
{
|
|
4514
4513
|
"aria-label": J(),
|
|
4515
|
-
className:
|
|
4514
|
+
className: q.label,
|
|
4516
4515
|
children: J()
|
|
4517
4516
|
}
|
|
4518
4517
|
),
|
|
4519
4518
|
/* @__PURE__ */ g.jsx(
|
|
4520
|
-
|
|
4519
|
+
Re,
|
|
4521
4520
|
{
|
|
4522
4521
|
onClick: k,
|
|
4523
4522
|
ariaLabel: a(Ct.NEXT_MONTH),
|
|
@@ -4536,34 +4535,34 @@ function bs({
|
|
|
4536
4535
|
ref: x,
|
|
4537
4536
|
role: "grid",
|
|
4538
4537
|
"aria-label": `${a(Oe.CALENDAR_FOR)} ${w[f]} ${d}`,
|
|
4539
|
-
className:
|
|
4538
|
+
className: q.table,
|
|
4540
4539
|
children: [
|
|
4541
4540
|
/* @__PURE__ */ g.jsx("thead", { children: /* @__PURE__ */ g.jsx("tr", { children: S.map((Y) => /* @__PURE__ */ g.jsx(
|
|
4542
4541
|
"th",
|
|
4543
4542
|
{
|
|
4544
4543
|
scope: "col",
|
|
4545
4544
|
abbr: Y.full,
|
|
4546
|
-
className:
|
|
4545
|
+
className: q.th,
|
|
4547
4546
|
children: Y.value
|
|
4548
4547
|
},
|
|
4549
4548
|
Y.value
|
|
4550
4549
|
)) }) }),
|
|
4551
|
-
/* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((v,
|
|
4552
|
-
const
|
|
4550
|
+
/* @__PURE__ */ g.jsx("tbody", { children: I.map((Y, h) => /* @__PURE__ */ g.jsx("tr", { children: Y.map((v, _) => {
|
|
4551
|
+
const A = h * 7 + _;
|
|
4553
4552
|
if (v === null)
|
|
4554
4553
|
return /* @__PURE__ */ g.jsx(
|
|
4555
4554
|
"td",
|
|
4556
4555
|
{
|
|
4557
|
-
className:
|
|
4556
|
+
className: q.td(
|
|
4558
4557
|
!1,
|
|
4559
4558
|
!1,
|
|
4560
4559
|
!1,
|
|
4561
4560
|
!0
|
|
4562
4561
|
)
|
|
4563
4562
|
},
|
|
4564
|
-
`empty-${
|
|
4563
|
+
`empty-${_}`
|
|
4565
4564
|
);
|
|
4566
|
-
const
|
|
4565
|
+
const L = v.getDate() === o.getDate() && v.getMonth() === o.getMonth() && v.getFullYear() === o.getFullYear(), N = l && v.getDate() === l.getDate() && v.getMonth() === l.getMonth() && v.getFullYear() === l.getFullYear(), W = p === v.getDate(), B = E(v);
|
|
4567
4566
|
return /* @__PURE__ */ g.jsx(
|
|
4568
4567
|
"td",
|
|
4569
4568
|
{
|
|
@@ -4571,22 +4570,22 @@ function bs({
|
|
|
4571
4570
|
"aria-selected": N,
|
|
4572
4571
|
tabIndex: W ? 0 : -1,
|
|
4573
4572
|
onClick: () => b(v),
|
|
4574
|
-
onKeyDown: (U) =>
|
|
4573
|
+
onKeyDown: (U) => R(U, A),
|
|
4575
4574
|
"aria-label": `${v.getDate()} ${w[v.getMonth()]} ${v.getFullYear()}`,
|
|
4576
4575
|
"data-selected": N,
|
|
4577
4576
|
"aria-disabled": B,
|
|
4578
4577
|
ref: (U) => {
|
|
4579
|
-
|
|
4578
|
+
O.current[A] = U;
|
|
4580
4579
|
},
|
|
4581
|
-
className:
|
|
4582
|
-
|
|
4580
|
+
className: q.td(
|
|
4581
|
+
L,
|
|
4583
4582
|
N,
|
|
4584
4583
|
W,
|
|
4585
4584
|
B
|
|
4586
4585
|
),
|
|
4587
4586
|
children: v.getDate()
|
|
4588
4587
|
},
|
|
4589
|
-
`day-${
|
|
4588
|
+
`day-${_}`
|
|
4590
4589
|
);
|
|
4591
4590
|
}) }, `week-${h}`)) })
|
|
4592
4591
|
]
|
|
@@ -4608,41 +4607,41 @@ const vs = ({
|
|
|
4608
4607
|
position: "bottom",
|
|
4609
4608
|
enabled: o
|
|
4610
4609
|
}), y = ue(() => {
|
|
4611
|
-
var
|
|
4612
|
-
l(!1), (
|
|
4610
|
+
var T;
|
|
4611
|
+
l(!1), (T = i == null ? void 0 : i.current) == null || T.focus();
|
|
4613
4612
|
}, []);
|
|
4614
4613
|
gt([p, m], o, () => {
|
|
4615
4614
|
y();
|
|
4616
4615
|
}), kt(o, p);
|
|
4617
|
-
const { format: x, getCurrentLanguage:
|
|
4618
|
-
(
|
|
4619
|
-
const
|
|
4616
|
+
const { format: x, getCurrentLanguage: O } = Ae(), w = ue(
|
|
4617
|
+
(T) => {
|
|
4618
|
+
const C = T.length > 5 && En(T, O()) || T, R = x(C, void 0, void 0, {
|
|
4620
4619
|
type: "date"
|
|
4621
|
-
}), D = typeof
|
|
4620
|
+
}), D = typeof C != "string", $ = D && C.toISOString().substring(0, 10) || "";
|
|
4622
4621
|
return {
|
|
4623
4622
|
isValid: D,
|
|
4624
|
-
formattedDate:
|
|
4625
|
-
isoDate:
|
|
4626
|
-
normalizedDate:
|
|
4623
|
+
formattedDate: R,
|
|
4624
|
+
isoDate: $,
|
|
4625
|
+
normalizedDate: C
|
|
4627
4626
|
};
|
|
4628
4627
|
},
|
|
4629
|
-
[
|
|
4628
|
+
[O, x]
|
|
4630
4629
|
);
|
|
4631
4630
|
re(() => {
|
|
4632
|
-
const { formattedDate:
|
|
4633
|
-
f(
|
|
4631
|
+
const { formattedDate: T, isoDate: C, isValid: R } = w(r);
|
|
4632
|
+
f(R && C || r), d(R && T || r);
|
|
4634
4633
|
}, [r, x, w]);
|
|
4635
|
-
const S = () => l((
|
|
4634
|
+
const S = () => l((T) => !T), E = () => {
|
|
4636
4635
|
j(u);
|
|
4637
|
-
}, b = (
|
|
4638
|
-
j(
|
|
4639
|
-
}, j = (
|
|
4640
|
-
const { isoDate:
|
|
4641
|
-
t && t(
|
|
4642
|
-
}, k = (
|
|
4643
|
-
d(
|
|
4644
|
-
},
|
|
4645
|
-
|
|
4636
|
+
}, b = (T) => {
|
|
4637
|
+
j(T), y();
|
|
4638
|
+
}, j = (T) => {
|
|
4639
|
+
const { isoDate: C, isValid: R } = w(T);
|
|
4640
|
+
t && t(R && C || T);
|
|
4641
|
+
}, k = (T) => {
|
|
4642
|
+
d(T);
|
|
4643
|
+
}, P = (T) => {
|
|
4644
|
+
T.key === "Enter" && (T.preventDefault(), j(u));
|
|
4646
4645
|
};
|
|
4647
4646
|
return /* @__PURE__ */ g.jsxs("div", { "data-component": "date-picker", children: [
|
|
4648
4647
|
/* @__PURE__ */ g.jsx(
|
|
@@ -4653,7 +4652,7 @@ const vs = ({
|
|
|
4653
4652
|
placeholder: e,
|
|
4654
4653
|
onBlur: E,
|
|
4655
4654
|
onChange: k,
|
|
4656
|
-
onKeyDown:
|
|
4655
|
+
onKeyDown: P,
|
|
4657
4656
|
shapeIcon: "calendar",
|
|
4658
4657
|
onShapeIconClick: S,
|
|
4659
4658
|
ref: m,
|
|
@@ -4688,17 +4687,17 @@ const vs = ({
|
|
|
4688
4687
|
onChange: u,
|
|
4689
4688
|
onBlur: d
|
|
4690
4689
|
}) => {
|
|
4691
|
-
const m = r.map((x) => x.bindValue), p = (x,
|
|
4690
|
+
const m = r.map((x) => x.bindValue), p = (x, O) => {
|
|
4692
4691
|
const w = [...r];
|
|
4693
4692
|
if (x == "")
|
|
4694
4693
|
w.pop();
|
|
4695
4694
|
else {
|
|
4696
4695
|
const S = w.findIndex(
|
|
4697
|
-
(E) => E.bindValue === x && E.optionalDisplayValue ===
|
|
4696
|
+
(E) => E.bindValue === x && E.optionalDisplayValue === O
|
|
4698
4697
|
);
|
|
4699
4698
|
S >= 0 ? w.splice(S, 1) : w.push({
|
|
4700
4699
|
bindValue: x,
|
|
4701
|
-
optionalDisplayValue:
|
|
4700
|
+
optionalDisplayValue: O
|
|
4702
4701
|
});
|
|
4703
4702
|
}
|
|
4704
4703
|
u == null || u(w);
|
|
@@ -4786,14 +4785,14 @@ const vs = ({
|
|
|
4786
4785
|
return t ? /* @__PURE__ */ g.jsxs("div", { className: n.wrapper, children: [
|
|
4787
4786
|
/* @__PURE__ */ g.jsx(Ce, { label: t }),
|
|
4788
4787
|
/* @__PURE__ */ g.jsx(
|
|
4789
|
-
|
|
4788
|
+
je,
|
|
4790
4789
|
{
|
|
4791
4790
|
variant: "body",
|
|
4792
4791
|
bindValue: e || r
|
|
4793
4792
|
}
|
|
4794
4793
|
)
|
|
4795
4794
|
] }) : /* @__PURE__ */ g.jsx(
|
|
4796
|
-
|
|
4795
|
+
je,
|
|
4797
4796
|
{
|
|
4798
4797
|
variant: "body",
|
|
4799
4798
|
bindValue: e || r
|
|
@@ -4849,7 +4848,19 @@ const ke = (r, e, t) => ({
|
|
|
4849
4848
|
e.map((s) => s.optionalDisplayValue ? s.optionalDisplayValue : "")
|
|
4850
4849
|
).getLegacyValue();
|
|
4851
4850
|
return ke(r, t, n);
|
|
4852
|
-
}, Os = ({
|
|
4851
|
+
}, Os = (r) => {
|
|
4852
|
+
switch (r) {
|
|
4853
|
+
case "CodeOnly":
|
|
4854
|
+
return 15;
|
|
4855
|
+
case "Both":
|
|
4856
|
+
case "CodeAndDesc":
|
|
4857
|
+
case "DescAndCode":
|
|
4858
|
+
return 50;
|
|
4859
|
+
case "DescOnly":
|
|
4860
|
+
default:
|
|
4861
|
+
return 35;
|
|
4862
|
+
}
|
|
4863
|
+
}, _s = ({
|
|
4853
4864
|
min: r,
|
|
4854
4865
|
max: e,
|
|
4855
4866
|
step: t = 1,
|
|
@@ -4864,13 +4875,13 @@ const ke = (r, e, t) => ({
|
|
|
4864
4875
|
() => as(u, s),
|
|
4865
4876
|
[u, s]
|
|
4866
4877
|
), p = ue(
|
|
4867
|
-
(D,
|
|
4868
|
-
minimumFractionDigits:
|
|
4869
|
-
maximumFractionDigits:
|
|
4878
|
+
(D, $) => new Intl.NumberFormat(u, {
|
|
4879
|
+
minimumFractionDigits: $,
|
|
4880
|
+
maximumFractionDigits: $,
|
|
4870
4881
|
useGrouping: !0
|
|
4871
4882
|
}).format(D),
|
|
4872
4883
|
[u]
|
|
4873
|
-
), y = ue(ls, [d, m]), x = ue(ss, [r, e]),
|
|
4884
|
+
), y = ue(ls, [d, m]), x = ue(ss, [r, e]), O = a != null && a.toString().includes(".") ? a.toString().split(".")[1].length : 0, [w, S] = G(O), [E, b] = G(
|
|
4874
4885
|
a != null ? p(a, w) : ""
|
|
4875
4886
|
), j = ce(a ?? null);
|
|
4876
4887
|
re(() => {
|
|
@@ -4878,13 +4889,13 @@ const ke = (r, e, t) => ({
|
|
|
4878
4889
|
b(""), j.current = null;
|
|
4879
4890
|
return;
|
|
4880
4891
|
}
|
|
4881
|
-
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0,
|
|
4882
|
-
|
|
4892
|
+
const D = a.toString().includes(".") ? a.toString().split(".")[1].length : 0, $ = D === 0 ? w : D;
|
|
4893
|
+
$ !== w && S($), b(p(a, $)), j.current = a;
|
|
4883
4894
|
}, [a, p]);
|
|
4884
4895
|
const k = ue(
|
|
4885
|
-
(D,
|
|
4896
|
+
(D, $ = !1) => {
|
|
4886
4897
|
if (D.trim() === "") {
|
|
4887
|
-
b(""), j.current = null, i == null || i(void 0, ""),
|
|
4898
|
+
b(""), j.current = null, i == null || i(void 0, ""), $ && (o == null || o(void 0));
|
|
4888
4899
|
return;
|
|
4889
4900
|
}
|
|
4890
4901
|
const F = y(D, d, m);
|
|
@@ -4901,8 +4912,8 @@ const ke = (r, e, t) => ({
|
|
|
4901
4912
|
m
|
|
4902
4913
|
);
|
|
4903
4914
|
S(V);
|
|
4904
|
-
const
|
|
4905
|
-
b(
|
|
4915
|
+
const q = p(I, V);
|
|
4916
|
+
b(q), j.current = I, i == null || i(I, q), $ && (o == null || o(I));
|
|
4906
4917
|
}
|
|
4907
4918
|
},
|
|
4908
4919
|
[
|
|
@@ -4917,23 +4928,23 @@ const ke = (r, e, t) => ({
|
|
|
4917
4928
|
o,
|
|
4918
4929
|
w
|
|
4919
4930
|
]
|
|
4920
|
-
),
|
|
4931
|
+
), P = (D) => b(D), T = () => k(E), C = (D) => {
|
|
4921
4932
|
if (D.key === "Enter") {
|
|
4922
4933
|
D.preventDefault(), k(E, !0);
|
|
4923
4934
|
return;
|
|
4924
4935
|
}
|
|
4925
4936
|
if (D.key === "ArrowUp" || D.key === "ArrowDown") {
|
|
4926
4937
|
D.preventDefault();
|
|
4927
|
-
const
|
|
4938
|
+
const $ = D.key === "ArrowUp" ? 1 : -1, F = j.current ?? 0, I = x(F + $ * t, r, e);
|
|
4928
4939
|
k(p(I, w));
|
|
4929
4940
|
}
|
|
4930
|
-
},
|
|
4941
|
+
}, R = (D) => {
|
|
4931
4942
|
if (!D.currentTarget.contains(document.activeElement)) return;
|
|
4932
4943
|
D.preventDefault();
|
|
4933
|
-
const
|
|
4944
|
+
const $ = D.deltaY < 0 ? 1 : -1, F = j.current ?? 0, I = x(F + $ * t, r, e);
|
|
4934
4945
|
k(p(I, w));
|
|
4935
4946
|
};
|
|
4936
|
-
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel:
|
|
4947
|
+
return /* @__PURE__ */ g.jsx("div", { ref: f, "data-component": "input-number", onWheel: R, children: /* @__PURE__ */ g.jsx(
|
|
4937
4948
|
Le,
|
|
4938
4949
|
{
|
|
4939
4950
|
...l,
|
|
@@ -4946,9 +4957,9 @@ const ke = (r, e, t) => ({
|
|
|
4946
4957
|
min: r,
|
|
4947
4958
|
max: e,
|
|
4948
4959
|
step: t,
|
|
4949
|
-
onChange:
|
|
4950
|
-
onBlur:
|
|
4951
|
-
onKeyDown:
|
|
4960
|
+
onChange: P,
|
|
4961
|
+
onBlur: T,
|
|
4962
|
+
onKeyDown: C
|
|
4952
4963
|
}
|
|
4953
4964
|
) });
|
|
4954
4965
|
};
|
|
@@ -4995,7 +5006,7 @@ class Ke {
|
|
|
4995
5006
|
return this.value;
|
|
4996
5007
|
}
|
|
4997
5008
|
}
|
|
4998
|
-
const
|
|
5009
|
+
const Ds = ({
|
|
4999
5010
|
disabled: r,
|
|
5000
5011
|
bindValue: e,
|
|
5001
5012
|
onChange: t,
|
|
@@ -5010,13 +5021,13 @@ const _s = ({
|
|
|
5010
5021
|
onBlur: u,
|
|
5011
5022
|
onKeyDown: d,
|
|
5012
5023
|
rows: m = 10,
|
|
5013
|
-
cols: p =
|
|
5024
|
+
cols: p = 35
|
|
5014
5025
|
}) => {
|
|
5015
|
-
const y =
|
|
5026
|
+
const y = De(), x = `${y}-helper`, O = f ? "danger" : s, w = c || !!f, S = (b) => {
|
|
5016
5027
|
t == null || t(b.target.value);
|
|
5017
5028
|
}, E = {
|
|
5018
5029
|
wrapper: "smp-textarea-wrapper",
|
|
5019
|
-
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${
|
|
5030
|
+
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${O ? `smp-textarea-${O}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
5020
5031
|
};
|
|
5021
5032
|
return /* @__PURE__ */ g.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
|
|
5022
5033
|
o && /* @__PURE__ */ g.jsx(Ce, { htmlFor: y, label: o, disabled: r }),
|
|
@@ -5045,7 +5056,7 @@ const _s = ({
|
|
|
5045
5056
|
id: x,
|
|
5046
5057
|
helperText: f,
|
|
5047
5058
|
disabled: r,
|
|
5048
|
-
state:
|
|
5059
|
+
state: O
|
|
5049
5060
|
}
|
|
5050
5061
|
)
|
|
5051
5062
|
] });
|
|
@@ -5067,7 +5078,7 @@ const We = {
|
|
|
5067
5078
|
label: i,
|
|
5068
5079
|
...o
|
|
5069
5080
|
}) => {
|
|
5070
|
-
const [l, c] = G(n), f =
|
|
5081
|
+
const [l, c] = G(n), f = De();
|
|
5071
5082
|
re(() => {
|
|
5072
5083
|
!l && s && a && s(a, void 0).then((y) => c(y)).catch((y) => {
|
|
5073
5084
|
console.error("Error during loading options (radio)", y);
|
|
@@ -5083,7 +5094,7 @@ const We = {
|
|
|
5083
5094
|
}, m = (y) => {
|
|
5084
5095
|
var x;
|
|
5085
5096
|
r || (x = o.onChange) == null || x.call(o, y.id, y.label);
|
|
5086
|
-
}, p =
|
|
5097
|
+
}, p = De();
|
|
5087
5098
|
return /* @__PURE__ */ g.jsxs("div", { "smp-id": "radio-container", className: u.container, id: f, children: [
|
|
5088
5099
|
i && /* @__PURE__ */ g.jsx(Ce, { label: i, disabled: r, htmlFor: f }),
|
|
5089
5100
|
/* @__PURE__ */ g.jsx("div", { className: u.optionsContainer, children: l == null ? void 0 : l.map((y, x) => /* @__PURE__ */ g.jsxs("label", { className: u.option, children: [
|
|
@@ -5100,7 +5111,7 @@ const We = {
|
|
|
5100
5111
|
}
|
|
5101
5112
|
),
|
|
5102
5113
|
/* @__PURE__ */ g.jsx(
|
|
5103
|
-
|
|
5114
|
+
je,
|
|
5104
5115
|
{
|
|
5105
5116
|
variant: "body",
|
|
5106
5117
|
bindValue: Fe(
|
|
@@ -5167,13 +5178,13 @@ const We = {
|
|
|
5167
5178
|
if (!e) return !1;
|
|
5168
5179
|
const [, t, n, s] = e, a = parseInt(t, 10), i = parseInt(n, 10), o = s ? parseInt(s, 10) : 0;
|
|
5169
5180
|
return a >= 0 && a <= 23 && i >= 0 && i <= 59 && (s === void 0 || o >= 0 && o <= 59);
|
|
5170
|
-
},
|
|
5181
|
+
}, $s = (r) => {
|
|
5171
5182
|
const e = r.split(":").map((t) => parseInt(t, 10));
|
|
5172
5183
|
return [e[0] || 0, e[1] || 0, e[2] || 0];
|
|
5173
|
-
},
|
|
5184
|
+
}, Cs = (r, e, t) => {
|
|
5174
5185
|
const n = r != null && !isNaN(r) ? r.toString().padStart(2, "0") : "", s = e != null && !isNaN(e) ? e.toString().padStart(2, "0") : "", a = t != null && !isNaN(t) ? t.toString().padStart(2, "0") : "";
|
|
5175
5186
|
return n && s ? `${n}:${s}:${a}` : s ? `${s}:${a}` : a;
|
|
5176
|
-
},
|
|
5187
|
+
}, Ls = ({
|
|
5177
5188
|
bindValue: r,
|
|
5178
5189
|
placeholder: e = "HH:MM:SS",
|
|
5179
5190
|
onChange: t,
|
|
@@ -5202,9 +5213,9 @@ const We = {
|
|
|
5202
5213
|
n && o((b) => !b);
|
|
5203
5214
|
}, x = (b) => {
|
|
5204
5215
|
u(b);
|
|
5205
|
-
},
|
|
5206
|
-
const
|
|
5207
|
-
c(
|
|
5216
|
+
}, O = (b, j, k) => {
|
|
5217
|
+
const P = Cs(b, j, k);
|
|
5218
|
+
c(P), u(P), t == null || t(P), p();
|
|
5208
5219
|
}, w = () => {
|
|
5209
5220
|
E(f);
|
|
5210
5221
|
}, S = (b) => {
|
|
@@ -5236,15 +5247,15 @@ const We = {
|
|
|
5236
5247
|
i && /* @__PURE__ */ g.jsx(mt, { children: /* @__PURE__ */ g.jsx(
|
|
5237
5248
|
js,
|
|
5238
5249
|
{
|
|
5239
|
-
value:
|
|
5240
|
-
onChange:
|
|
5250
|
+
value: $s(l),
|
|
5251
|
+
onChange: O,
|
|
5241
5252
|
targetRef: m,
|
|
5242
5253
|
isOpen: i
|
|
5243
5254
|
}
|
|
5244
5255
|
) })
|
|
5245
5256
|
] });
|
|
5246
5257
|
};
|
|
5247
|
-
function
|
|
5258
|
+
function As(r) {
|
|
5248
5259
|
return typeof r == "string" && /^\d{6}$/.test(r);
|
|
5249
5260
|
}
|
|
5250
5261
|
class pt {
|
|
@@ -5276,14 +5287,14 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5276
5287
|
"I12",
|
|
5277
5288
|
{
|
|
5278
5289
|
legacyToIso(r) {
|
|
5279
|
-
return
|
|
5290
|
+
return As(r) && `${r.substring(0, 2)}:${r.substring(2, 4)}:${r.substring(4, 6)}` || r;
|
|
5280
5291
|
},
|
|
5281
5292
|
isoToLegacy(r) {
|
|
5282
5293
|
return r.replaceAll(":", "") || r;
|
|
5283
5294
|
}
|
|
5284
5295
|
}
|
|
5285
5296
|
]
|
|
5286
|
-
]),
|
|
5297
|
+
]), Ps = {
|
|
5287
5298
|
"smp-cell-wrapper": "_smp-cell-wrapper_mdlkz_1"
|
|
5288
5299
|
}, _e = ({
|
|
5289
5300
|
decode: r,
|
|
@@ -5303,14 +5314,16 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5303
5314
|
onOptionsRequest: p,
|
|
5304
5315
|
onContextMenu: y,
|
|
5305
5316
|
isEditable: x,
|
|
5306
|
-
dSep:
|
|
5317
|
+
dSep: O = "."
|
|
5307
5318
|
}) => {
|
|
5319
|
+
var C;
|
|
5308
5320
|
const w = {
|
|
5309
5321
|
obj: t,
|
|
5310
5322
|
shape: e,
|
|
5311
5323
|
decode: r,
|
|
5312
5324
|
icon: s,
|
|
5313
|
-
fun: a
|
|
5325
|
+
fun: a,
|
|
5326
|
+
data: n
|
|
5314
5327
|
}, S = {
|
|
5315
5328
|
onBlur: m,
|
|
5316
5329
|
onOptionsRequest: p,
|
|
@@ -5319,25 +5332,26 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5319
5332
|
tooltip: l,
|
|
5320
5333
|
label: o,
|
|
5321
5334
|
isEditable: x,
|
|
5335
|
+
size: w.data && w.data.size ? w.data.size : ((C = w.data) == null ? void 0 : C.displayMode) && Os(w.data.displayMode || "CodeOnly"),
|
|
5322
5336
|
...n
|
|
5323
|
-
}, E = (
|
|
5324
|
-
|
|
5325
|
-
new Ke(t,
|
|
5326
|
-
), j = (
|
|
5337
|
+
}, E = (R, D, $) => xn(t) ? ke(R, new ct(t, D).getLegacyValue()) : Sn(t) ? ke(R, new pt(t, D).getLegacyValue()) : ke(R, D, $), b = (R, D) => ke(
|
|
5338
|
+
R,
|
|
5339
|
+
new Ke(t, D, O).getLegacyValue()
|
|
5340
|
+
), j = (R) => ke(w, new lt(t, R).getLegacyValue()), k = (R) => Ts(w, R), P = () => {
|
|
5327
5341
|
switch (e) {
|
|
5328
5342
|
case te.AUTOCOMPLETE: {
|
|
5329
|
-
const
|
|
5343
|
+
const R = {
|
|
5330
5344
|
...S,
|
|
5331
5345
|
bindValue: t.k,
|
|
5332
5346
|
optionalDisplayValue: r,
|
|
5333
|
-
onChange: (
|
|
5334
|
-
f == null || f(E(w,
|
|
5347
|
+
onChange: (D, $) => {
|
|
5348
|
+
f == null || f(E(w, D, $));
|
|
5335
5349
|
}
|
|
5336
5350
|
};
|
|
5337
|
-
return /* @__PURE__ */ g.jsx(kr, { ...
|
|
5351
|
+
return /* @__PURE__ */ g.jsx(kr, { ...R });
|
|
5338
5352
|
}
|
|
5339
5353
|
case te.BUTTON: {
|
|
5340
|
-
const
|
|
5354
|
+
const R = {
|
|
5341
5355
|
...S,
|
|
5342
5356
|
bindValue: t.k,
|
|
5343
5357
|
optionalDisplayValue: n != null && n.label && typeof n.label == "string" ? n.label : void 0,
|
|
@@ -5346,63 +5360,63 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5346
5360
|
u == null || u(E(w, t.k));
|
|
5347
5361
|
}
|
|
5348
5362
|
};
|
|
5349
|
-
return /* @__PURE__ */ g.jsx(
|
|
5363
|
+
return /* @__PURE__ */ g.jsx(Re, { ...R });
|
|
5350
5364
|
}
|
|
5351
5365
|
case te.BUTTON_LIST: {
|
|
5352
|
-
const
|
|
5366
|
+
const R = {
|
|
5353
5367
|
...S,
|
|
5354
5368
|
options: c,
|
|
5355
|
-
onClick: (
|
|
5356
|
-
const
|
|
5357
|
-
u == null || u(E(
|
|
5369
|
+
onClick: (D, $) => {
|
|
5370
|
+
const F = { ...w, fun: $ };
|
|
5371
|
+
u == null || u(E(F, D));
|
|
5358
5372
|
}
|
|
5359
5373
|
};
|
|
5360
|
-
return /* @__PURE__ */ g.jsx(ps, { ...
|
|
5374
|
+
return /* @__PURE__ */ g.jsx(ps, { ...R });
|
|
5361
5375
|
}
|
|
5362
5376
|
case te.CHIP: {
|
|
5363
|
-
const
|
|
5377
|
+
const R = {
|
|
5364
5378
|
...S,
|
|
5365
5379
|
elements: Tr(w)
|
|
5366
5380
|
};
|
|
5367
|
-
return /* @__PURE__ */ g.jsx(Nt, { ...
|
|
5381
|
+
return /* @__PURE__ */ g.jsx(Nt, { ...R });
|
|
5368
5382
|
}
|
|
5369
5383
|
case te.CHECKBOX:
|
|
5370
5384
|
case te.SWITCH: {
|
|
5371
|
-
const
|
|
5385
|
+
const R = e === te.SWITCH, D = {
|
|
5372
5386
|
...S,
|
|
5373
5387
|
bindValue: lt.fromDataObj(t).getValue(),
|
|
5374
5388
|
optionalDisplayValue: r,
|
|
5375
|
-
onChange: (
|
|
5376
|
-
f == null || f(j(
|
|
5389
|
+
onChange: ($) => {
|
|
5390
|
+
f == null || f(j($));
|
|
5377
5391
|
},
|
|
5378
|
-
...
|
|
5392
|
+
...R && { variant: "switch" }
|
|
5379
5393
|
};
|
|
5380
|
-
return /* @__PURE__ */ g.jsx(ms, {
|
|
5394
|
+
return /* @__PURE__ */ g.jsx(ms, { ...D });
|
|
5381
5395
|
}
|
|
5382
5396
|
case te.COMBOBOX: {
|
|
5383
|
-
const
|
|
5397
|
+
const R = {
|
|
5384
5398
|
...S,
|
|
5385
5399
|
bindValue: t.k,
|
|
5386
5400
|
optionalDisplayValue: r,
|
|
5387
|
-
onChange: (
|
|
5388
|
-
f == null || f(E(w,
|
|
5401
|
+
onChange: (D, $) => {
|
|
5402
|
+
f == null || f(E(w, D, $));
|
|
5389
5403
|
}
|
|
5390
5404
|
};
|
|
5391
|
-
return /* @__PURE__ */ g.jsx(gs, { ...
|
|
5405
|
+
return /* @__PURE__ */ g.jsx(gs, { ...R });
|
|
5392
5406
|
}
|
|
5393
5407
|
case te.DATE: {
|
|
5394
|
-
const
|
|
5408
|
+
const R = {
|
|
5395
5409
|
...S,
|
|
5396
5410
|
bindValue: ct.fromDataObj(t).getValue(),
|
|
5397
|
-
onChange: (
|
|
5398
|
-
f == null || f(E(w,
|
|
5411
|
+
onChange: (D) => {
|
|
5412
|
+
f == null || f(E(w, D));
|
|
5399
5413
|
}
|
|
5400
5414
|
};
|
|
5401
|
-
return /* @__PURE__ */ g.jsx(vs, { ...
|
|
5415
|
+
return /* @__PURE__ */ g.jsx(vs, { ...R });
|
|
5402
5416
|
}
|
|
5403
5417
|
case te.ICON:
|
|
5404
5418
|
case te.IMAGE: {
|
|
5405
|
-
const
|
|
5419
|
+
const R = {
|
|
5406
5420
|
...S,
|
|
5407
5421
|
icon: s,
|
|
5408
5422
|
placeholderIcon: i,
|
|
@@ -5411,114 +5425,114 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5411
5425
|
u == null || u(E(w, t.k));
|
|
5412
5426
|
}
|
|
5413
5427
|
};
|
|
5414
|
-
return /* @__PURE__ */ g.jsx(le, { ...
|
|
5428
|
+
return /* @__PURE__ */ g.jsx(le, { ...R });
|
|
5415
5429
|
}
|
|
5416
5430
|
case te.INPUT_NUMBER: {
|
|
5417
|
-
const
|
|
5431
|
+
const R = {
|
|
5418
5432
|
...S,
|
|
5419
|
-
bindValue: Ke.fromDataObj(t,
|
|
5420
|
-
onChange: (
|
|
5421
|
-
f == null || f(b(w,
|
|
5433
|
+
bindValue: Ke.fromDataObj(t, O).getValue(),
|
|
5434
|
+
onChange: (D) => {
|
|
5435
|
+
f == null || f(b(w, D));
|
|
5422
5436
|
}
|
|
5423
5437
|
};
|
|
5424
|
-
return /* @__PURE__ */ g.jsx(
|
|
5438
|
+
return /* @__PURE__ */ g.jsx(_s, { ...R });
|
|
5425
5439
|
}
|
|
5426
5440
|
case te.EDITOR:
|
|
5427
5441
|
case te.MEMO: {
|
|
5428
|
-
const
|
|
5442
|
+
const R = {
|
|
5429
5443
|
...S,
|
|
5430
5444
|
bindValue: t.k,
|
|
5431
5445
|
optionalDisplayValue: r,
|
|
5432
|
-
onChange: (
|
|
5433
|
-
f == null || f(E(w,
|
|
5446
|
+
onChange: (D) => {
|
|
5447
|
+
f == null || f(E(w, D));
|
|
5434
5448
|
}
|
|
5435
5449
|
};
|
|
5436
|
-
return /* @__PURE__ */ g.jsx(
|
|
5450
|
+
return /* @__PURE__ */ g.jsx(Ds, { ...R });
|
|
5437
5451
|
}
|
|
5438
5452
|
case te.MULTI_AUTOCOMPLETE: {
|
|
5439
|
-
const
|
|
5453
|
+
const R = {
|
|
5440
5454
|
...S,
|
|
5441
5455
|
elements: Tr(w),
|
|
5442
|
-
onChange: (
|
|
5443
|
-
f == null || f(k(
|
|
5456
|
+
onChange: (D) => {
|
|
5457
|
+
f == null || f(k(D));
|
|
5444
5458
|
}
|
|
5445
5459
|
};
|
|
5446
|
-
return /* @__PURE__ */ g.jsx(xs, { ...
|
|
5460
|
+
return /* @__PURE__ */ g.jsx(xs, { ...R });
|
|
5447
5461
|
}
|
|
5448
5462
|
case te.PASSWORD: {
|
|
5449
|
-
const
|
|
5463
|
+
const R = {
|
|
5450
5464
|
...S,
|
|
5451
5465
|
bindValue: t.k,
|
|
5452
|
-
onChange: (
|
|
5453
|
-
f == null || f(E(w,
|
|
5466
|
+
onChange: (D) => {
|
|
5467
|
+
f == null || f(E(w, D));
|
|
5454
5468
|
}
|
|
5455
5469
|
};
|
|
5456
|
-
return /* @__PURE__ */ g.jsx(Ss, { ...
|
|
5470
|
+
return /* @__PURE__ */ g.jsx(Ss, { ...R });
|
|
5457
5471
|
}
|
|
5458
5472
|
case te.RADIO: {
|
|
5459
|
-
const
|
|
5473
|
+
const R = {
|
|
5460
5474
|
...S,
|
|
5461
5475
|
bindValue: t.k,
|
|
5462
|
-
onChange: (
|
|
5463
|
-
f == null || f(E(w,
|
|
5476
|
+
onChange: (D, $) => {
|
|
5477
|
+
f == null || f(E(w, D, $));
|
|
5464
5478
|
}
|
|
5465
5479
|
};
|
|
5466
|
-
return /* @__PURE__ */ g.jsx(Rs, { ...
|
|
5480
|
+
return /* @__PURE__ */ g.jsx(Rs, { ...R });
|
|
5467
5481
|
}
|
|
5468
5482
|
case te.SPOTLIGHT: {
|
|
5469
|
-
const
|
|
5483
|
+
const R = {
|
|
5470
5484
|
...S,
|
|
5471
5485
|
bindValue: t.k,
|
|
5472
|
-
onEnter: (
|
|
5473
|
-
d == null || d(E(w,
|
|
5486
|
+
onEnter: (D) => {
|
|
5487
|
+
d == null || d(E(w, D));
|
|
5474
5488
|
}
|
|
5475
5489
|
};
|
|
5476
|
-
return /* @__PURE__ */ g.jsx(ws, { ...
|
|
5490
|
+
return /* @__PURE__ */ g.jsx(ws, { ...R });
|
|
5477
5491
|
}
|
|
5478
5492
|
case te.TEXT_FIELD: {
|
|
5479
|
-
const
|
|
5493
|
+
const R = {
|
|
5480
5494
|
...S,
|
|
5481
5495
|
bindValue: t.k,
|
|
5482
5496
|
optionalDisplayValue: r,
|
|
5483
|
-
onChange: (
|
|
5484
|
-
f == null || f(E(w,
|
|
5497
|
+
onChange: (D) => {
|
|
5498
|
+
f == null || f(E(w, D));
|
|
5485
5499
|
}
|
|
5486
5500
|
};
|
|
5487
|
-
return /* @__PURE__ */ g.jsx(Le, { ...
|
|
5501
|
+
return /* @__PURE__ */ g.jsx(Le, { ...R });
|
|
5488
5502
|
}
|
|
5489
5503
|
case te.TIME: {
|
|
5490
|
-
const
|
|
5504
|
+
const R = {
|
|
5491
5505
|
...S,
|
|
5492
5506
|
bindValue: pt.fromDataObj(t).getValue(),
|
|
5493
|
-
onChange: (
|
|
5494
|
-
f == null || f(E(w,
|
|
5507
|
+
onChange: (D) => {
|
|
5508
|
+
f == null || f(E(w, D));
|
|
5495
5509
|
}
|
|
5496
5510
|
};
|
|
5497
|
-
return /* @__PURE__ */ g.jsx(
|
|
5511
|
+
return /* @__PURE__ */ g.jsx(Ls, { ...R });
|
|
5498
5512
|
}
|
|
5499
5513
|
default: {
|
|
5500
|
-
const
|
|
5514
|
+
const R = {
|
|
5501
5515
|
...S,
|
|
5502
5516
|
bindValue: t.k,
|
|
5503
5517
|
optionalDisplayValue: r
|
|
5504
5518
|
};
|
|
5505
|
-
return /* @__PURE__ */ g.jsx(Es, { ...
|
|
5519
|
+
return /* @__PURE__ */ g.jsx(Es, { ...R });
|
|
5506
5520
|
}
|
|
5507
5521
|
}
|
|
5508
|
-
},
|
|
5509
|
-
wrapper: `${
|
|
5522
|
+
}, T = {
|
|
5523
|
+
wrapper: `${Ps["smp-cell-wrapper"]}`
|
|
5510
5524
|
};
|
|
5511
5525
|
return /* @__PURE__ */ g.jsx(
|
|
5512
5526
|
"span",
|
|
5513
5527
|
{
|
|
5514
|
-
className:
|
|
5515
|
-
onContextMenu: (
|
|
5516
|
-
y && l && (
|
|
5528
|
+
className: T.wrapper,
|
|
5529
|
+
onContextMenu: (R) => {
|
|
5530
|
+
y && l && (R.preventDefault(), y(w, R.currentTarget));
|
|
5517
5531
|
},
|
|
5518
|
-
children:
|
|
5532
|
+
children: P()
|
|
5519
5533
|
}
|
|
5520
5534
|
);
|
|
5521
|
-
},
|
|
5535
|
+
}, sa = ({
|
|
5522
5536
|
data: r,
|
|
5523
5537
|
onClick: e,
|
|
5524
5538
|
onEnter: t,
|
|
@@ -5535,14 +5549,14 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5535
5549
|
const y = f.cells[p.name], x = {
|
|
5536
5550
|
...y,
|
|
5537
5551
|
id: p.name,
|
|
5538
|
-
onChange: (
|
|
5552
|
+
onChange: (O) => {
|
|
5539
5553
|
a((w) => w && {
|
|
5540
5554
|
...w,
|
|
5541
5555
|
[p.name]: {
|
|
5542
5556
|
...w[p.name],
|
|
5543
5557
|
obj: {
|
|
5544
5558
|
...w[p.name].obj,
|
|
5545
|
-
k:
|
|
5559
|
+
k: O.obj.k
|
|
5546
5560
|
}
|
|
5547
5561
|
}
|
|
5548
5562
|
});
|
|
@@ -5552,11 +5566,11 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5552
5566
|
...y
|
|
5553
5567
|
});
|
|
5554
5568
|
},
|
|
5555
|
-
onEnter: (
|
|
5556
|
-
t && t(
|
|
5569
|
+
onEnter: (O) => {
|
|
5570
|
+
t && t(O);
|
|
5557
5571
|
},
|
|
5558
|
-
onContextMenu: (
|
|
5559
|
-
n && n(
|
|
5572
|
+
onContextMenu: (O, w) => {
|
|
5573
|
+
n && n(O, w);
|
|
5560
5574
|
}
|
|
5561
5575
|
};
|
|
5562
5576
|
return {
|
|
@@ -5570,7 +5584,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5570
5584
|
return re(() => {
|
|
5571
5585
|
r && a(i(r));
|
|
5572
5586
|
}, [r, i]), !((o = r == null ? void 0 : r.rows) != null && o.length) || !((l = r.columns) != null && l.length) ? null : s && /* @__PURE__ */ g.jsx("header", { className: "smp-appbar", "aria-label": "App Bar", children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(s).map((c) => /* @__PURE__ */ g.jsx(_e, { ...c })) }) });
|
|
5573
|
-
},
|
|
5587
|
+
}, Is = (r) => {
|
|
5574
5588
|
var e;
|
|
5575
5589
|
return (e = r.children) != null && e.length ? r.children.map((t) => {
|
|
5576
5590
|
var n, s;
|
|
@@ -5581,7 +5595,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5581
5595
|
icon: t.icon
|
|
5582
5596
|
};
|
|
5583
5597
|
}) : [];
|
|
5584
|
-
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r,
|
|
5598
|
+
}, de = (r) => r == null ? !1 : typeof r == "string" ? r.toLocaleLowerCase() == "yes" : r, aa = ({
|
|
5585
5599
|
data: r,
|
|
5586
5600
|
logo: e,
|
|
5587
5601
|
open: t,
|
|
@@ -5596,21 +5610,21 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5596
5610
|
var E, b;
|
|
5597
5611
|
const [f, u] = G(), [d, m] = G(t ?? !0), p = ce(null), y = s.trim() ? s : "100vh", x = ue(
|
|
5598
5612
|
(j) => {
|
|
5599
|
-
var
|
|
5600
|
-
if (!((
|
|
5613
|
+
var P, T;
|
|
5614
|
+
if (!((P = j == null ? void 0 : j.rows) != null && P.length) || !((T = j == null ? void 0 : j.columns) != null && T.length))
|
|
5601
5615
|
return {};
|
|
5602
5616
|
const k = j.rows[0];
|
|
5603
|
-
return j.columns.filter((
|
|
5604
|
-
const D = k.cells[
|
|
5617
|
+
return j.columns.filter((C) => C.visible ?? !0).reduce((C, R) => {
|
|
5618
|
+
const D = k.cells[R.name];
|
|
5605
5619
|
if (!D || !d && de(n) && D.shape !== te.BUTTON && D.shape !== te.BUTTON_LIST)
|
|
5606
|
-
return
|
|
5607
|
-
const
|
|
5620
|
+
return C;
|
|
5621
|
+
const $ = {
|
|
5608
5622
|
...D,
|
|
5609
|
-
id:
|
|
5623
|
+
id: R.name,
|
|
5610
5624
|
onChange: (F) => {
|
|
5611
5625
|
u((I) => {
|
|
5612
5626
|
const V = { ...I };
|
|
5613
|
-
return V != null && V[
|
|
5627
|
+
return V != null && V[R.name] && (V[R.name].obj.k = F.obj.k), V;
|
|
5614
5628
|
});
|
|
5615
5629
|
},
|
|
5616
5630
|
onClick: (F) => {
|
|
@@ -5623,21 +5637,21 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5623
5637
|
c && c(F, I);
|
|
5624
5638
|
}
|
|
5625
5639
|
};
|
|
5626
|
-
return l && D.shape == te.BUTTON_LIST && (
|
|
5627
|
-
(V) =>
|
|
5628
|
-
)), !d && de(n) && (
|
|
5629
|
-
|
|
5640
|
+
return l && D.shape == te.BUTTON_LIST && ($.onOptionsRequest = (F, I) => l(F, I).then(
|
|
5641
|
+
(V) => Is(V)
|
|
5642
|
+
)), !d && de(n) && ($.data = {
|
|
5643
|
+
...$.data,
|
|
5630
5644
|
showText: !1,
|
|
5631
5645
|
justify: "center",
|
|
5632
5646
|
squared: !0
|
|
5633
5647
|
}), {
|
|
5634
|
-
...
|
|
5635
|
-
[
|
|
5648
|
+
...C,
|
|
5649
|
+
[R.name]: $
|
|
5636
5650
|
};
|
|
5637
5651
|
}, {});
|
|
5638
5652
|
},
|
|
5639
5653
|
[d, n, a, i, l, c]
|
|
5640
|
-
),
|
|
5654
|
+
), O = ue(() => {
|
|
5641
5655
|
o == null || o();
|
|
5642
5656
|
}, [o]), w = () => {
|
|
5643
5657
|
de(n) ? m((j) => !j) : (m(!1), o == null || o());
|
|
@@ -5678,7 +5692,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5678
5692
|
"aria-hidden": "true",
|
|
5679
5693
|
"aria-label": "drawer-backdrop",
|
|
5680
5694
|
className: S.backdrop,
|
|
5681
|
-
onClick:
|
|
5695
|
+
onClick: O
|
|
5682
5696
|
}
|
|
5683
5697
|
),
|
|
5684
5698
|
/* @__PURE__ */ g.jsx(
|
|
@@ -5718,7 +5732,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5718
5732
|
}
|
|
5719
5733
|
)
|
|
5720
5734
|
] });
|
|
5721
|
-
},
|
|
5735
|
+
}, ia = ({
|
|
5722
5736
|
ColumnsNumber: r = 1,
|
|
5723
5737
|
data: e = {},
|
|
5724
5738
|
ForceText: t,
|
|
@@ -5736,13 +5750,13 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5736
5750
|
UmColor: p = "var(--smp-dashList-color-base)",
|
|
5737
5751
|
ForceValue: y,
|
|
5738
5752
|
ValueColName: x,
|
|
5739
|
-
ValueColor:
|
|
5753
|
+
ValueColor: O = "var(--smp-dashList-color-base)",
|
|
5740
5754
|
SelectLayout: w = "1",
|
|
5741
5755
|
onClick: S
|
|
5742
5756
|
}) => {
|
|
5743
|
-
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0,
|
|
5757
|
+
const E = "N/A", b = (e == null ? void 0 : e.columns) || [], j = (e == null ? void 0 : e.rows) || [], k = j.length > 0, P = "--smp-dashList-color", T = "smp-layout", C = "descr", R = "icon", D = "um", $ = "value", F = i || "1em", I = "18px", V = "--smp-dashList-columns", q = "--smp-dashList-fontSize", J = {
|
|
5744
5758
|
dash: (H = "1") => {
|
|
5745
|
-
const Z = h(H), ne = Z, se = v(Z,
|
|
5759
|
+
const Z = h(H), ne = Z, se = v(Z, C), he = v(Z, R), we = v(Z, D), be = v(Z, $);
|
|
5746
5760
|
return {
|
|
5747
5761
|
container: ne,
|
|
5748
5762
|
descr: se,
|
|
@@ -5753,7 +5767,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5753
5767
|
},
|
|
5754
5768
|
dashList: `smp-dash-list ${de(a) ? "smp-dash-list-fill-space" : ""}
|
|
5755
5769
|
${de(o) ? "smp-dash-list-horizontal" : ""}`
|
|
5756
|
-
}, { format: Y } = Ae(), h = (H) => `${
|
|
5770
|
+
}, { format: Y } = Ae(), h = (H) => `${T}-${H}`, v = (H, Z) => `${H}__${Z}`, _ = (H) => `${P}-${H}`, A = (H) => {
|
|
5757
5771
|
const Z = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
5758
5772
|
if (Z.test(H)) {
|
|
5759
5773
|
const se = H.match(Z) || [];
|
|
@@ -5761,7 +5775,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5761
5775
|
return "rgb(" + se[1] + "," + se[2] + "," + se[3] + ")";
|
|
5762
5776
|
}
|
|
5763
5777
|
return H;
|
|
5764
|
-
},
|
|
5778
|
+
}, L = (H) => {
|
|
5765
5779
|
if (!u) return H;
|
|
5766
5780
|
const [Z, ne] = N(u).map(
|
|
5767
5781
|
(Pe) => parseInt(Pe || "0")
|
|
@@ -5793,7 +5807,7 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5793
5807
|
const Z = J.dash(H);
|
|
5794
5808
|
return {
|
|
5795
5809
|
className: Z,
|
|
5796
|
-
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${
|
|
5810
|
+
descr: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.descr, children: ne }, `${H}-${C}`),
|
|
5797
5811
|
icon: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.icon, children: /* @__PURE__ */ g.jsx(
|
|
5798
5812
|
le,
|
|
5799
5813
|
{
|
|
@@ -5802,16 +5816,16 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5802
5816
|
icon: ne,
|
|
5803
5817
|
width: I
|
|
5804
5818
|
}
|
|
5805
|
-
) }, `${H}-${
|
|
5819
|
+
) }, `${H}-${R}`),
|
|
5806
5820
|
um: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.um, children: ne }, `${H}-${D}`),
|
|
5807
|
-
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${
|
|
5821
|
+
value: (ne) => /* @__PURE__ */ g.jsx("div", { className: Z.value, children: ne }, `${H}-${$}`)
|
|
5808
5822
|
};
|
|
5809
5823
|
})(w), ae = (H) => {
|
|
5810
5824
|
const { descr: Z, icon: ne, um: se, value: he } = W(H), we = {
|
|
5811
|
-
[
|
|
5812
|
-
[
|
|
5813
|
-
[
|
|
5814
|
-
}, be = [], Pe =
|
|
5825
|
+
[_(C)]: A(s),
|
|
5826
|
+
[_(D)]: A(p),
|
|
5827
|
+
[_($)]: A(O)
|
|
5828
|
+
}, be = [], Pe = L(he);
|
|
5815
5829
|
switch (w) {
|
|
5816
5830
|
case "2":
|
|
5817
5831
|
ne && be.push(K.icon(ne)), be.push(K.descr(Z)), be.push(
|
|
@@ -5839,28 +5853,28 @@ const _r = /* @__PURE__ */ new Map([
|
|
|
5839
5853
|
);
|
|
5840
5854
|
}, M = {
|
|
5841
5855
|
[V]: String(r),
|
|
5842
|
-
[
|
|
5856
|
+
[q]: F
|
|
5843
5857
|
};
|
|
5844
5858
|
return /* @__PURE__ */ g.jsx("div", { className: J.dashList, style: M, children: k ? j.map((H) => ae(H)) : E });
|
|
5845
5859
|
}, nt = {
|
|
5846
5860
|
"smp-table": "_smp-table_1qmju_1",
|
|
5847
5861
|
"smp-headerCell": "_smp-headerCell_1qmju_35",
|
|
5848
5862
|
"smp-resizer": "_smp-resizer_1qmju_44"
|
|
5849
|
-
},
|
|
5850
|
-
rowContent:
|
|
5851
|
-
clickable:
|
|
5852
|
-
indent:
|
|
5853
|
-
toggle:
|
|
5854
|
-
cell:
|
|
5855
|
-
leftSection:
|
|
5863
|
+
}, Ns = "_rowContent_20wit_2", ks = "_clickable_20wit_21", Ms = "_indent_20wit_26", Fs = "_toggle_20wit_32", Vs = "_cell_20wit_38", Ys = "_leftSection_20wit_46", Te = {
|
|
5864
|
+
rowContent: Ns,
|
|
5865
|
+
clickable: ks,
|
|
5866
|
+
indent: Ms,
|
|
5867
|
+
toggle: Fs,
|
|
5868
|
+
cell: Vs,
|
|
5869
|
+
leftSection: Ys
|
|
5856
5870
|
};
|
|
5857
5871
|
function st(r) {
|
|
5858
5872
|
return !!r && "children" in r;
|
|
5859
5873
|
}
|
|
5860
|
-
function
|
|
5874
|
+
function Us(r) {
|
|
5861
5875
|
return !st(r);
|
|
5862
5876
|
}
|
|
5863
|
-
function
|
|
5877
|
+
function Ws(r) {
|
|
5864
5878
|
const e = JSON.stringify(r, Object.keys(r).sort());
|
|
5865
5879
|
let t = 0, n, s;
|
|
5866
5880
|
if (e.length === 0) return t.toString();
|
|
@@ -5897,7 +5911,7 @@ const Mr = ({
|
|
|
5897
5911
|
"aria-hidden": "true"
|
|
5898
5912
|
}
|
|
5899
5913
|
), x = () => {
|
|
5900
|
-
const S =
|
|
5914
|
+
const S = Us(r) ? "" : r.decode || (l ? "" : "Untitled"), E = s ?? n * t;
|
|
5901
5915
|
return /* @__PURE__ */ g.jsxs(
|
|
5902
5916
|
"tr",
|
|
5903
5917
|
{
|
|
@@ -5939,20 +5953,20 @@ const Mr = ({
|
|
|
5939
5953
|
id: b
|
|
5940
5954
|
})
|
|
5941
5955
|
},
|
|
5942
|
-
|
|
5956
|
+
Ws(j) || b
|
|
5943
5957
|
))
|
|
5944
5958
|
]
|
|
5945
5959
|
}
|
|
5946
5960
|
);
|
|
5947
|
-
},
|
|
5961
|
+
}, O = () => {
|
|
5948
5962
|
var S;
|
|
5949
5963
|
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}`))) });
|
|
5950
5964
|
};
|
|
5951
5965
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
5952
5966
|
x(),
|
|
5953
|
-
|
|
5967
|
+
O()
|
|
5954
5968
|
] });
|
|
5955
|
-
},
|
|
5969
|
+
}, Bs = ({
|
|
5956
5970
|
label: r,
|
|
5957
5971
|
rowHeight: e = 28,
|
|
5958
5972
|
offsetTop: t = 0,
|
|
@@ -5989,18 +6003,18 @@ const Mr = ({
|
|
|
5989
6003
|
width: 16
|
|
5990
6004
|
}
|
|
5991
6005
|
),
|
|
5992
|
-
/* @__PURE__ */ g.jsx(
|
|
6006
|
+
/* @__PURE__ */ g.jsx(je, { variant: "title", bindValue: r })
|
|
5993
6007
|
]
|
|
5994
6008
|
}
|
|
5995
6009
|
)
|
|
5996
6010
|
}
|
|
5997
6011
|
);
|
|
5998
6012
|
};
|
|
5999
|
-
function
|
|
6013
|
+
function Hs(r, e) {
|
|
6000
6014
|
const t = new Set(r);
|
|
6001
6015
|
return t.has(e) ? t.delete(e) : t.add(e), t;
|
|
6002
6016
|
}
|
|
6003
|
-
function
|
|
6017
|
+
function Gs(r, e) {
|
|
6004
6018
|
return r.map((t) => {
|
|
6005
6019
|
const n = e.find((s) => s.column === t.bindValue);
|
|
6006
6020
|
return {
|
|
@@ -6009,7 +6023,7 @@ function Hs(r, e) {
|
|
|
6009
6023
|
};
|
|
6010
6024
|
});
|
|
6011
6025
|
}
|
|
6012
|
-
function
|
|
6026
|
+
function Ks(r, e, t, n) {
|
|
6013
6027
|
const s = [];
|
|
6014
6028
|
let a = 0;
|
|
6015
6029
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
@@ -6019,9 +6033,9 @@ function Gs(r, e, t, n) {
|
|
|
6019
6033
|
return;
|
|
6020
6034
|
}
|
|
6021
6035
|
const p = e[d].column, y = o(u, p);
|
|
6022
|
-
for (const [x,
|
|
6036
|
+
for (const [x, O] of y) {
|
|
6023
6037
|
const w = [...m, x], S = l(w, d), E = n.has(S);
|
|
6024
|
-
s.push(c(x, S, d, E)), a += t, E && i(
|
|
6038
|
+
s.push(c(x, S, d, E)), a += t, E && i(O, d + 1, w);
|
|
6025
6039
|
}
|
|
6026
6040
|
}
|
|
6027
6041
|
function o(u, d) {
|
|
@@ -6051,7 +6065,7 @@ function Gs(r, e, t, n) {
|
|
|
6051
6065
|
s.push(d), a += t;
|
|
6052
6066
|
}
|
|
6053
6067
|
}
|
|
6054
|
-
const
|
|
6068
|
+
const zs = ({
|
|
6055
6069
|
groups: r = [],
|
|
6056
6070
|
isDraggable: e = !0,
|
|
6057
6071
|
isEditable: t = !0,
|
|
@@ -6098,7 +6112,7 @@ const Ks = ({
|
|
|
6098
6112
|
},
|
|
6099
6113
|
t.name
|
|
6100
6114
|
)
|
|
6101
|
-
) }) }),
|
|
6115
|
+
) }) }), Js = ({
|
|
6102
6116
|
columns: r,
|
|
6103
6117
|
rows: e,
|
|
6104
6118
|
containerRef: t,
|
|
@@ -6135,7 +6149,7 @@ const Ks = ({
|
|
|
6135
6149
|
}
|
|
6136
6150
|
}
|
|
6137
6151
|
}, [r, e, t, n]), [s, a];
|
|
6138
|
-
},
|
|
6152
|
+
}, oa = ({
|
|
6139
6153
|
data: r,
|
|
6140
6154
|
lineHeight: e = 28,
|
|
6141
6155
|
TableHeight: t = 400,
|
|
@@ -6147,7 +6161,7 @@ const Ks = ({
|
|
|
6147
6161
|
var k;
|
|
6148
6162
|
const [i, o] = G(
|
|
6149
6163
|
r ?? { columns: [], rows: [] }
|
|
6150
|
-
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), d = ce(null), [m, p] =
|
|
6164
|
+
), [l, c] = G(n || []), [f, u] = G(/* @__PURE__ */ new Set()), d = ce(null), [m, p] = Js({
|
|
6151
6165
|
columns: (i == null ? void 0 : i.columns) ?? [],
|
|
6152
6166
|
rows: (i == null ? void 0 : i.rows) ?? [],
|
|
6153
6167
|
containerRef: d,
|
|
@@ -6155,43 +6169,43 @@ const Ks = ({
|
|
|
6155
6169
|
});
|
|
6156
6170
|
re(() => {
|
|
6157
6171
|
if (l != null && l.length && r.rows) {
|
|
6158
|
-
const { flatRows:
|
|
6172
|
+
const { flatRows: P } = Ks(
|
|
6159
6173
|
r.rows,
|
|
6160
6174
|
l,
|
|
6161
6175
|
e,
|
|
6162
6176
|
f
|
|
6163
6177
|
);
|
|
6164
|
-
o({ ...r, rows:
|
|
6178
|
+
o({ ...r, rows: P });
|
|
6165
6179
|
} else
|
|
6166
6180
|
o(r);
|
|
6167
6181
|
}, [r, l, f, e]);
|
|
6168
|
-
const y = (
|
|
6169
|
-
c(
|
|
6170
|
-
}, x = (
|
|
6171
|
-
|
|
6172
|
-
const
|
|
6173
|
-
if (!
|
|
6182
|
+
const y = (P) => {
|
|
6183
|
+
c(Gs(P, l));
|
|
6184
|
+
}, x = (P) => {
|
|
6185
|
+
P.preventDefault();
|
|
6186
|
+
const T = P.dataTransfer.getData("text/plain");
|
|
6187
|
+
if (!T || l.some((D) => D.column === T))
|
|
6174
6188
|
return;
|
|
6175
|
-
const
|
|
6176
|
-
c(
|
|
6177
|
-
},
|
|
6178
|
-
|
|
6189
|
+
const R = [...l, { column: T, visible: !0 }];
|
|
6190
|
+
c(R);
|
|
6191
|
+
}, O = (P) => {
|
|
6192
|
+
P.preventDefault();
|
|
6179
6193
|
}, { virtualItems: w, containerProps: S, innerProps: E } = Ar({
|
|
6180
6194
|
items: (i == null ? void 0 : i.rows) ?? [],
|
|
6181
6195
|
itemHeight: e,
|
|
6182
6196
|
containerHeight: t,
|
|
6183
6197
|
overscan: 5
|
|
6184
|
-
}), b = (
|
|
6185
|
-
const
|
|
6186
|
-
const I = F.clientX -
|
|
6187
|
-
p((
|
|
6188
|
-
...
|
|
6189
|
-
[
|
|
6198
|
+
}), b = (P, T) => {
|
|
6199
|
+
const C = P.clientX, R = m[T], D = (F) => {
|
|
6200
|
+
const I = F.clientX - C, V = Math.max(50, R + I);
|
|
6201
|
+
p((q) => ({
|
|
6202
|
+
...q,
|
|
6203
|
+
[T]: V
|
|
6190
6204
|
}));
|
|
6191
|
-
},
|
|
6192
|
-
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup",
|
|
6205
|
+
}, $ = () => {
|
|
6206
|
+
window.removeEventListener("mousemove", D), window.removeEventListener("mouseup", $);
|
|
6193
6207
|
};
|
|
6194
|
-
window.addEventListener("mousemove", D), window.addEventListener("mouseup",
|
|
6208
|
+
window.addEventListener("mousemove", D), window.addEventListener("mouseup", $);
|
|
6195
6209
|
}, j = {
|
|
6196
6210
|
smpTable: `${nt["smp-table"]}`,
|
|
6197
6211
|
headerCell: `${nt["smp-headerCell"]}`,
|
|
@@ -6206,83 +6220,83 @@ const Ks = ({
|
|
|
6206
6220
|
children: /* @__PURE__ */ g.jsxs("table", { children: [
|
|
6207
6221
|
/* @__PURE__ */ g.jsxs("thead", { children: [
|
|
6208
6222
|
(n || a) && /* @__PURE__ */ g.jsx(
|
|
6209
|
-
|
|
6223
|
+
zs,
|
|
6210
6224
|
{
|
|
6211
6225
|
groups: l,
|
|
6212
6226
|
onChange: y,
|
|
6213
6227
|
onDrop: x,
|
|
6214
|
-
onDragOver:
|
|
6228
|
+
onDragOver: O
|
|
6215
6229
|
}
|
|
6216
6230
|
),
|
|
6217
6231
|
/* @__PURE__ */ g.jsx("tr", { children: i.columns && ((k = i.columns) == null ? void 0 : k.map(
|
|
6218
|
-
(
|
|
6232
|
+
(P) => P.visible && /* @__PURE__ */ g.jsxs(
|
|
6219
6233
|
"th",
|
|
6220
6234
|
{
|
|
6221
6235
|
className: j.headerCell,
|
|
6222
6236
|
draggable: !0,
|
|
6223
|
-
onDragStart: (
|
|
6224
|
-
|
|
6237
|
+
onDragStart: (T) => {
|
|
6238
|
+
T.dataTransfer.setData("text/plain", P.name);
|
|
6225
6239
|
},
|
|
6226
6240
|
style: {
|
|
6227
|
-
width: m[
|
|
6228
|
-
minWidth: m[
|
|
6229
|
-
maxWidth: m[
|
|
6241
|
+
width: m[P.name],
|
|
6242
|
+
minWidth: m[P.name],
|
|
6243
|
+
maxWidth: m[P.name]
|
|
6230
6244
|
},
|
|
6231
6245
|
children: [
|
|
6232
6246
|
/* @__PURE__ */ g.jsx(
|
|
6233
|
-
|
|
6247
|
+
je,
|
|
6234
6248
|
{
|
|
6235
6249
|
variant: "title",
|
|
6236
|
-
bindValue:
|
|
6250
|
+
bindValue: P.title
|
|
6237
6251
|
}
|
|
6238
6252
|
),
|
|
6239
6253
|
/* @__PURE__ */ g.jsx(
|
|
6240
6254
|
"div",
|
|
6241
6255
|
{
|
|
6242
6256
|
className: j.resizer,
|
|
6243
|
-
onMouseDown: (
|
|
6257
|
+
onMouseDown: (T) => b(T, P.name),
|
|
6244
6258
|
role: "region"
|
|
6245
6259
|
}
|
|
6246
6260
|
)
|
|
6247
6261
|
]
|
|
6248
6262
|
},
|
|
6249
|
-
|
|
6263
|
+
P.name
|
|
6250
6264
|
)
|
|
6251
6265
|
)) })
|
|
6252
6266
|
] }),
|
|
6253
|
-
/* @__PURE__ */ g.jsx("tbody", { ...E, children: w.map(({ item:
|
|
6254
|
-
const
|
|
6255
|
-
return
|
|
6256
|
-
|
|
6267
|
+
/* @__PURE__ */ g.jsx("tbody", { ...E, children: w.map(({ item: P, index: T, offsetTop: C }) => {
|
|
6268
|
+
const R = P.rowId || P.value || `${P.isGroup ? "group" : "row"}-${T}`;
|
|
6269
|
+
return P.isGroup ? /* @__PURE__ */ g.jsx(
|
|
6270
|
+
Bs,
|
|
6257
6271
|
{
|
|
6258
|
-
label:
|
|
6272
|
+
label: P.value || "",
|
|
6259
6273
|
rowHeight: e,
|
|
6260
|
-
offsetTop:
|
|
6261
|
-
level:
|
|
6274
|
+
offsetTop: C,
|
|
6275
|
+
level: P.level,
|
|
6262
6276
|
onClick: () => {
|
|
6263
|
-
const D =
|
|
6264
|
-
D && u((
|
|
6277
|
+
const D = P.rowId;
|
|
6278
|
+
D && u(($) => Hs($, D));
|
|
6265
6279
|
},
|
|
6266
|
-
isExpanded:
|
|
6280
|
+
isExpanded: P.isExpanded
|
|
6267
6281
|
},
|
|
6268
|
-
`group-${
|
|
6282
|
+
`group-${R}`
|
|
6269
6283
|
) : /* @__PURE__ */ g.jsx(
|
|
6270
6284
|
Mr,
|
|
6271
6285
|
{
|
|
6272
|
-
row:
|
|
6286
|
+
row: P,
|
|
6273
6287
|
columnWidths: m,
|
|
6274
6288
|
rowHeight: e,
|
|
6275
|
-
offsetTop:
|
|
6289
|
+
offsetTop: C,
|
|
6276
6290
|
isGroup: !1
|
|
6277
6291
|
},
|
|
6278
|
-
`row-${
|
|
6292
|
+
`row-${R}`
|
|
6279
6293
|
);
|
|
6280
6294
|
}) }),
|
|
6281
6295
|
/* @__PURE__ */ g.jsx(qs, { columns: i.columns, columnWidths: m })
|
|
6282
6296
|
] })
|
|
6283
6297
|
}
|
|
6284
6298
|
);
|
|
6285
|
-
},
|
|
6299
|
+
}, la = ({
|
|
6286
6300
|
data: r,
|
|
6287
6301
|
Type: e,
|
|
6288
6302
|
ShowSubmit: t = !1,
|
|
@@ -6336,7 +6350,7 @@ const Ks = ({
|
|
|
6336
6350
|
),
|
|
6337
6351
|
de(t) && //TODO: translation
|
|
6338
6352
|
/* @__PURE__ */ g.jsx(
|
|
6339
|
-
|
|
6353
|
+
Re,
|
|
6340
6354
|
{
|
|
6341
6355
|
optionalDisplayValue: "Confirm",
|
|
6342
6356
|
onClick: () => l == null ? void 0 : l(f),
|
|
@@ -6344,18 +6358,18 @@ const Ks = ({
|
|
|
6344
6358
|
}
|
|
6345
6359
|
)
|
|
6346
6360
|
] });
|
|
6347
|
-
},
|
|
6361
|
+
}, Xs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTree", Zs = (r) => (r == null ? void 0 : r.type) === "SmeupDataTable", Qs = (r) => Xs(r) ? r.children ? r.children.map(
|
|
6348
6362
|
(e) => ({
|
|
6349
6363
|
id: e.obj.k,
|
|
6350
6364
|
label: e.value ?? ""
|
|
6351
6365
|
})
|
|
6352
|
-
) : [] :
|
|
6366
|
+
) : [] : Zs(r) ? r.rows.map((e) => {
|
|
6353
6367
|
const t = e.cells || e.cells, [n, s] = Object.keys(t);
|
|
6354
6368
|
return {
|
|
6355
6369
|
id: t[n].obj.k,
|
|
6356
6370
|
label: t[s].value || t[s].obj.k
|
|
6357
6371
|
};
|
|
6358
|
-
}) : [],
|
|
6372
|
+
}) : [], ca = ({
|
|
6359
6373
|
data: r,
|
|
6360
6374
|
id: e,
|
|
6361
6375
|
readOnly: t = !1,
|
|
@@ -6369,44 +6383,44 @@ const Ks = ({
|
|
|
6369
6383
|
onContextMenu: f,
|
|
6370
6384
|
onButtonClick: u
|
|
6371
6385
|
}) => {
|
|
6372
|
-
var k,
|
|
6373
|
-
const [d, m] = G({}), { translate: p } = Ae(), y =
|
|
6386
|
+
var k, P;
|
|
6387
|
+
const [d, m] = G({}), { translate: p } = Ae(), y = De();
|
|
6374
6388
|
re(() => {
|
|
6375
6389
|
m(E(r));
|
|
6376
6390
|
}, [r]);
|
|
6377
|
-
const x = (
|
|
6378
|
-
if (m((
|
|
6379
|
-
|
|
6380
|
-
[
|
|
6381
|
-
|
|
6391
|
+
const x = (T, C) => {
|
|
6392
|
+
if (m((R) => ({
|
|
6393
|
+
...R,
|
|
6394
|
+
[T]: {
|
|
6395
|
+
...R[T],
|
|
6382
6396
|
obj: {
|
|
6383
|
-
|
|
6384
|
-
k:
|
|
6397
|
+
...R[T].obj,
|
|
6398
|
+
k: C.obj.k
|
|
6385
6399
|
},
|
|
6386
|
-
decode:
|
|
6400
|
+
decode: C.decode,
|
|
6387
6401
|
data: {
|
|
6388
|
-
|
|
6402
|
+
...R[T].data,
|
|
6389
6403
|
error: void 0
|
|
6390
6404
|
},
|
|
6391
6405
|
// FIXME: remove this when webup.js will not use value
|
|
6392
|
-
value:
|
|
6406
|
+
value: C.obj.k
|
|
6393
6407
|
}
|
|
6394
|
-
})), s && (
|
|
6395
|
-
const
|
|
6396
|
-
|
|
6397
|
-
value: b(
|
|
6398
|
-
cell:
|
|
6408
|
+
})), s && (C.shape == te.CHECKBOX || C.shape == te.SWITCH)) {
|
|
6409
|
+
const R = structuredClone(d);
|
|
6410
|
+
R[T].obj.k = C.obj.k, R[T].value = C.obj.k, o({
|
|
6411
|
+
value: b(R),
|
|
6412
|
+
cell: T
|
|
6399
6413
|
});
|
|
6400
6414
|
}
|
|
6401
|
-
},
|
|
6402
|
-
const
|
|
6415
|
+
}, O = (T) => {
|
|
6416
|
+
const C = b(d);
|
|
6403
6417
|
o({
|
|
6404
|
-
value:
|
|
6405
|
-
cell:
|
|
6418
|
+
value: C,
|
|
6419
|
+
cell: T
|
|
6406
6420
|
});
|
|
6407
|
-
}, w = (
|
|
6421
|
+
}, w = (T, C) => {
|
|
6408
6422
|
u == null || u({
|
|
6409
|
-
cellId:
|
|
6423
|
+
cellId: T,
|
|
6410
6424
|
currentState: {
|
|
6411
6425
|
type: "SmeupDataTable",
|
|
6412
6426
|
columns: r.columns,
|
|
@@ -6416,43 +6430,43 @@ const Ks = ({
|
|
|
6416
6430
|
}
|
|
6417
6431
|
]
|
|
6418
6432
|
},
|
|
6419
|
-
fun:
|
|
6433
|
+
fun: C || ""
|
|
6420
6434
|
});
|
|
6421
|
-
}, S = async (
|
|
6422
|
-
var
|
|
6423
|
-
if (d[
|
|
6424
|
-
obj: d[
|
|
6425
|
-
fun: d[
|
|
6426
|
-
cellId:
|
|
6427
|
-
})).valid || m((
|
|
6428
|
-
|
|
6429
|
-
[
|
|
6430
|
-
|
|
6435
|
+
}, S = async (T) => {
|
|
6436
|
+
var C, R;
|
|
6437
|
+
if (d[T].obj.k != r.rows[0].cells[T].obj.k && ((C = d[T].inputSettings) != null && C.checkObject && c && ((await c({
|
|
6438
|
+
obj: d[T].obj,
|
|
6439
|
+
fun: d[T].fun,
|
|
6440
|
+
cellId: T
|
|
6441
|
+
})).valid || m(($) => ({
|
|
6442
|
+
...$,
|
|
6443
|
+
[T]: {
|
|
6444
|
+
...$[T],
|
|
6431
6445
|
data: {
|
|
6432
|
-
|
|
6446
|
+
...$[T].data,
|
|
6433
6447
|
error: p(Oe.CHECK_OBJECT_WRONG_VALIDATION)
|
|
6434
6448
|
}
|
|
6435
6449
|
}
|
|
6436
|
-
}))), (
|
|
6450
|
+
}))), (R = d[T].inputSettings) != null && R.checkValueOnExit)) {
|
|
6437
6451
|
const D = b(d);
|
|
6438
6452
|
l == null || l({
|
|
6439
6453
|
value: D,
|
|
6440
|
-
cell:
|
|
6454
|
+
cell: T
|
|
6441
6455
|
});
|
|
6442
6456
|
}
|
|
6443
|
-
}, E = (
|
|
6444
|
-
var
|
|
6445
|
-
if (!((
|
|
6457
|
+
}, E = (T) => {
|
|
6458
|
+
var R, D, $;
|
|
6459
|
+
if (!((R = T.rows) != null && R.length) || !((D = T.columns) != null && D.length))
|
|
6446
6460
|
return {};
|
|
6447
|
-
const
|
|
6448
|
-
return
|
|
6461
|
+
const C = ($ = T.rows) == null ? void 0 : $[0];
|
|
6462
|
+
return T.columns.filter((F) => F.visible ?? !0).reduce((F, I) => {
|
|
6449
6463
|
const V = {
|
|
6450
|
-
...
|
|
6464
|
+
...C.cells[I.name],
|
|
6451
6465
|
id: I.name,
|
|
6452
6466
|
label: I.title,
|
|
6453
6467
|
dSep: a,
|
|
6454
6468
|
data: {
|
|
6455
|
-
...
|
|
6469
|
+
...C.cells[I.name].data,
|
|
6456
6470
|
dSep: a
|
|
6457
6471
|
}
|
|
6458
6472
|
};
|
|
@@ -6461,29 +6475,29 @@ const Ks = ({
|
|
|
6461
6475
|
[I.name]: V
|
|
6462
6476
|
};
|
|
6463
6477
|
}, {});
|
|
6464
|
-
}, b = (
|
|
6478
|
+
}, b = (T) => ({
|
|
6465
6479
|
before: r,
|
|
6466
6480
|
after: {
|
|
6467
6481
|
type: "SmeupDataTable",
|
|
6468
6482
|
columns: JSON.parse(JSON.stringify(r.columns)),
|
|
6469
6483
|
rows: [
|
|
6470
6484
|
{
|
|
6471
|
-
cells: JSON.parse(JSON.stringify(
|
|
6485
|
+
cells: JSON.parse(JSON.stringify(T))
|
|
6472
6486
|
}
|
|
6473
6487
|
]
|
|
6474
6488
|
}
|
|
6475
|
-
}), j = ((
|
|
6489
|
+
}), j = ((P = (k = r.setup) == null ? void 0 : k.commands) == null ? void 0 : P.map((T, C) => /* @__PURE__ */ Br(
|
|
6476
6490
|
_e,
|
|
6477
6491
|
{
|
|
6478
|
-
...
|
|
6479
|
-
decode:
|
|
6492
|
+
...T,
|
|
6493
|
+
decode: T.value,
|
|
6480
6494
|
data: {
|
|
6481
|
-
label:
|
|
6495
|
+
label: T.value
|
|
6482
6496
|
},
|
|
6483
|
-
id: `command-${
|
|
6484
|
-
key: `command-${
|
|
6497
|
+
id: `command-${C}`,
|
|
6498
|
+
key: `command-${C}`,
|
|
6485
6499
|
shape: te.BUTTON,
|
|
6486
|
-
onClick: () =>
|
|
6500
|
+
onClick: () => O(T.obj.k)
|
|
6487
6501
|
}
|
|
6488
6502
|
))) || [];
|
|
6489
6503
|
return n || j.unshift(
|
|
@@ -6510,8 +6524,8 @@ const Ks = ({
|
|
|
6510
6524
|
{
|
|
6511
6525
|
"data-component": "input-panel",
|
|
6512
6526
|
id: e || y,
|
|
6513
|
-
onSubmit: (
|
|
6514
|
-
|
|
6527
|
+
onSubmit: (T) => {
|
|
6528
|
+
T.preventDefault(), O();
|
|
6515
6529
|
},
|
|
6516
6530
|
children: [
|
|
6517
6531
|
/* @__PURE__ */ g.jsx(
|
|
@@ -6520,21 +6534,21 @@ const Ks = ({
|
|
|
6520
6534
|
style: {
|
|
6521
6535
|
padding: "1em 0"
|
|
6522
6536
|
},
|
|
6523
|
-
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((
|
|
6537
|
+
children: /* @__PURE__ */ g.jsx(ot, { layout: r.rows[0].layout, children: Object.values(d).map((T) => /* @__PURE__ */ g.jsx(
|
|
6524
6538
|
_e,
|
|
6525
6539
|
{
|
|
6526
|
-
...
|
|
6527
|
-
onOptionsRequest:
|
|
6528
|
-
await i(
|
|
6540
|
+
...T,
|
|
6541
|
+
onOptionsRequest: T.fun ? async (C, R) => Qs(
|
|
6542
|
+
await i(C, R, r, T.id)
|
|
6529
6543
|
) : void 0,
|
|
6530
|
-
onChange: (
|
|
6531
|
-
onBlur: () => S(
|
|
6544
|
+
onChange: (C) => x(T.id, C),
|
|
6545
|
+
onBlur: () => S(T.id),
|
|
6532
6546
|
onContextMenu: f,
|
|
6533
6547
|
onClick: () => {
|
|
6534
|
-
|
|
6548
|
+
T.shape == "BTN" && w(T.id, T.fun);
|
|
6535
6549
|
},
|
|
6536
6550
|
data: {
|
|
6537
|
-
...
|
|
6551
|
+
...T.data,
|
|
6538
6552
|
autocomplete: "off"
|
|
6539
6553
|
}
|
|
6540
6554
|
}
|
|
@@ -6550,8 +6564,8 @@ const Ks = ({
|
|
|
6550
6564
|
id: "1",
|
|
6551
6565
|
horizontal: !0,
|
|
6552
6566
|
justify: "start",
|
|
6553
|
-
content: j.map((
|
|
6554
|
-
id:
|
|
6567
|
+
content: j.map((T) => ({
|
|
6568
|
+
id: T.props.id
|
|
6555
6569
|
}))
|
|
6556
6570
|
}
|
|
6557
6571
|
]
|
|
@@ -6564,21 +6578,21 @@ const Ks = ({
|
|
|
6564
6578
|
);
|
|
6565
6579
|
};
|
|
6566
6580
|
export {
|
|
6567
|
-
|
|
6581
|
+
sa as AppBar,
|
|
6568
6582
|
kr as Autocomplete,
|
|
6569
|
-
|
|
6583
|
+
Re as Button,
|
|
6570
6584
|
ps as ButtonList,
|
|
6571
6585
|
ms as Checkbox,
|
|
6572
6586
|
gs as Combobox,
|
|
6573
|
-
|
|
6574
|
-
|
|
6587
|
+
ia as DashList,
|
|
6588
|
+
oa as DataTableComponent,
|
|
6575
6589
|
vs as DatePicker,
|
|
6576
|
-
|
|
6577
|
-
|
|
6590
|
+
aa as Drawer,
|
|
6591
|
+
la as Field,
|
|
6578
6592
|
le as Icon,
|
|
6579
|
-
|
|
6593
|
+
ca as InputPanel,
|
|
6580
6594
|
Ss as Password,
|
|
6581
6595
|
vn as TabBar,
|
|
6582
6596
|
Le as Textfield,
|
|
6583
|
-
|
|
6597
|
+
na as configurePaths
|
|
6584
6598
|
};
|