@sme.up/ketchup2 2.0.0-SNAPSHOT-20250616143804 → 2.0.0-SNAPSHOT-20250616144705
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/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +5 -0
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/functional-components/layout/layout-types.d.ts +1 -1
- package/dist/functional-components/layout/layout-types.d.ts.map +1 -1
- package/dist/functional-components/layout/layout.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +10 -10
- package/dist/ketchup2.es.js +1158 -1147
- package/package.json +1 -1
package/dist/ketchup2.es.js
CHANGED
|
@@ -48,15 +48,15 @@ var Ae = {};
|
|
|
48
48
|
var Dt;
|
|
49
49
|
function _r() {
|
|
50
50
|
return Dt || (Dt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
-
function r(
|
|
52
|
-
if (
|
|
53
|
-
if (typeof
|
|
54
|
-
return
|
|
55
|
-
if (typeof
|
|
56
|
-
switch (
|
|
51
|
+
function r(h) {
|
|
52
|
+
if (h == null) return null;
|
|
53
|
+
if (typeof h == "function")
|
|
54
|
+
return h.$$typeof === P ? null : h.displayName || h.name || null;
|
|
55
|
+
if (typeof h == "string") return h;
|
|
56
|
+
switch (h) {
|
|
57
57
|
case g:
|
|
58
58
|
return "Fragment";
|
|
59
|
-
case
|
|
59
|
+
case S:
|
|
60
60
|
return "Profiler";
|
|
61
61
|
case x:
|
|
62
62
|
return "StrictMode";
|
|
@@ -67,144 +67,144 @@ function _r() {
|
|
|
67
67
|
case j:
|
|
68
68
|
return "Activity";
|
|
69
69
|
}
|
|
70
|
-
if (typeof
|
|
71
|
-
switch (typeof
|
|
70
|
+
if (typeof h == "object")
|
|
71
|
+
switch (typeof h.tag == "number" && console.error(
|
|
72
72
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
73
|
-
),
|
|
73
|
+
), h.$$typeof) {
|
|
74
74
|
case m:
|
|
75
75
|
return "Portal";
|
|
76
|
-
case
|
|
77
|
-
return (
|
|
76
|
+
case O:
|
|
77
|
+
return (h.displayName || "Context") + ".Provider";
|
|
78
78
|
case E:
|
|
79
|
-
return (
|
|
80
|
-
case
|
|
81
|
-
var y =
|
|
82
|
-
return
|
|
79
|
+
return (h._context.displayName || "Context") + ".Consumer";
|
|
80
|
+
case w:
|
|
81
|
+
var y = h.render;
|
|
82
|
+
return h = h.displayName, h || (h = y.displayName || y.name || "", h = h !== "" ? "ForwardRef(" + h + ")" : "ForwardRef"), h;
|
|
83
83
|
case C:
|
|
84
|
-
return y =
|
|
84
|
+
return y = h.displayName || null, y !== null ? y : r(h.type) || "Memo";
|
|
85
85
|
case Y:
|
|
86
|
-
y =
|
|
86
|
+
y = h._payload, h = h._init;
|
|
87
87
|
try {
|
|
88
|
-
return r(
|
|
88
|
+
return r(h(y));
|
|
89
89
|
} catch {
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
|
-
function e(
|
|
95
|
-
return "" +
|
|
94
|
+
function e(h) {
|
|
95
|
+
return "" + h;
|
|
96
96
|
}
|
|
97
|
-
function t(
|
|
97
|
+
function t(h) {
|
|
98
98
|
try {
|
|
99
|
-
e(
|
|
99
|
+
e(h);
|
|
100
100
|
var y = !1;
|
|
101
101
|
} catch {
|
|
102
102
|
y = !0;
|
|
103
103
|
}
|
|
104
104
|
if (y) {
|
|
105
105
|
y = console;
|
|
106
|
-
var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
106
|
+
var T = y.error, $ = typeof Symbol == "function" && Symbol.toStringTag && h[Symbol.toStringTag] || h.constructor.name || "Object";
|
|
107
107
|
return T.call(
|
|
108
108
|
y,
|
|
109
109
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
110
|
$
|
|
111
|
-
), e(
|
|
111
|
+
), e(h);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function n(
|
|
115
|
-
if (
|
|
116
|
-
if (typeof
|
|
114
|
+
function n(h) {
|
|
115
|
+
if (h === g) return "<>";
|
|
116
|
+
if (typeof h == "object" && h !== null && h.$$typeof === Y)
|
|
117
117
|
return "<...>";
|
|
118
118
|
try {
|
|
119
|
-
var y = r(
|
|
119
|
+
var y = r(h);
|
|
120
120
|
return y ? "<" + y + ">" : "<...>";
|
|
121
121
|
} catch {
|
|
122
122
|
return "<...>";
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
function s() {
|
|
126
|
-
var
|
|
127
|
-
return
|
|
126
|
+
var h = D.A;
|
|
127
|
+
return h === null ? null : h.getOwner();
|
|
128
128
|
}
|
|
129
129
|
function a() {
|
|
130
130
|
return Error("react-stack-top-frame");
|
|
131
131
|
}
|
|
132
|
-
function i(
|
|
133
|
-
if (_.call(
|
|
134
|
-
var y = Object.getOwnPropertyDescriptor(
|
|
132
|
+
function i(h) {
|
|
133
|
+
if (_.call(h, "key")) {
|
|
134
|
+
var y = Object.getOwnPropertyDescriptor(h, "key").get;
|
|
135
135
|
if (y && y.isReactWarning) return !1;
|
|
136
136
|
}
|
|
137
|
-
return
|
|
137
|
+
return h.key !== void 0;
|
|
138
138
|
}
|
|
139
|
-
function o(
|
|
139
|
+
function o(h, y) {
|
|
140
140
|
function T() {
|
|
141
|
-
|
|
141
|
+
K || (K = !0, console.error(
|
|
142
142
|
"%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)",
|
|
143
143
|
y
|
|
144
144
|
));
|
|
145
145
|
}
|
|
146
|
-
T.isReactWarning = !0, Object.defineProperty(
|
|
146
|
+
T.isReactWarning = !0, Object.defineProperty(h, "key", {
|
|
147
147
|
get: T,
|
|
148
148
|
configurable: !0
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
return
|
|
151
|
+
function f() {
|
|
152
|
+
var h = r(this.type);
|
|
153
|
+
return z[h] || (z[h] = !0, console.error(
|
|
154
154
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
155
|
-
)),
|
|
155
|
+
)), h = this.props.ref, h !== void 0 ? h : null;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return T = A.ref,
|
|
159
|
-
$$typeof:
|
|
160
|
-
type:
|
|
157
|
+
function c(h, y, T, $, R, A, M, F) {
|
|
158
|
+
return T = A.ref, h = {
|
|
159
|
+
$$typeof: p,
|
|
160
|
+
type: h,
|
|
161
161
|
key: y,
|
|
162
162
|
props: A,
|
|
163
|
-
_owner:
|
|
164
|
-
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(
|
|
163
|
+
_owner: R
|
|
164
|
+
}, (T !== void 0 ? T : null) !== null ? Object.defineProperty(h, "ref", {
|
|
165
165
|
enumerable: !1,
|
|
166
|
-
get:
|
|
167
|
-
}) : Object.defineProperty(
|
|
166
|
+
get: f
|
|
167
|
+
}) : Object.defineProperty(h, "ref", { enumerable: !1, value: null }), h._store = {}, Object.defineProperty(h._store, "validated", {
|
|
168
168
|
configurable: !1,
|
|
169
169
|
enumerable: !1,
|
|
170
170
|
writable: !0,
|
|
171
171
|
value: 0
|
|
172
|
-
}), Object.defineProperty(
|
|
172
|
+
}), Object.defineProperty(h, "_debugInfo", {
|
|
173
173
|
configurable: !1,
|
|
174
174
|
enumerable: !1,
|
|
175
175
|
writable: !0,
|
|
176
176
|
value: null
|
|
177
|
-
}), Object.defineProperty(
|
|
177
|
+
}), Object.defineProperty(h, "_debugStack", {
|
|
178
178
|
configurable: !1,
|
|
179
179
|
enumerable: !1,
|
|
180
180
|
writable: !0,
|
|
181
181
|
value: M
|
|
182
|
-
}), Object.defineProperty(
|
|
182
|
+
}), Object.defineProperty(h, "_debugTask", {
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
186
|
value: F
|
|
187
|
-
}), Object.freeze && (Object.freeze(
|
|
187
|
+
}), Object.freeze && (Object.freeze(h.props), Object.freeze(h)), h;
|
|
188
188
|
}
|
|
189
|
-
function u(
|
|
189
|
+
function u(h, y, T, $, R, A, M, F) {
|
|
190
190
|
var N = y.children;
|
|
191
191
|
if (N !== void 0)
|
|
192
192
|
if ($)
|
|
193
193
|
if (U(N)) {
|
|
194
194
|
for ($ = 0; $ < N.length; $++)
|
|
195
|
-
|
|
195
|
+
l(N[$]);
|
|
196
196
|
Object.freeze && Object.freeze(N);
|
|
197
197
|
} else
|
|
198
198
|
console.error(
|
|
199
199
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
200
200
|
);
|
|
201
|
-
else
|
|
201
|
+
else l(N);
|
|
202
202
|
if (_.call(y, "key")) {
|
|
203
|
-
N = r(
|
|
204
|
-
var
|
|
203
|
+
N = r(h);
|
|
204
|
+
var q = Object.keys(y).filter(function(se) {
|
|
205
205
|
return se !== "key";
|
|
206
206
|
});
|
|
207
|
-
$ = 0 <
|
|
207
|
+
$ = 0 < q.length ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}", L[N + $] || (q = 0 < q.length ? "{" + q.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
208
208
|
`A props object containing a "key" prop is being spread into JSX:
|
|
209
209
|
let props = %s;
|
|
210
210
|
<%s {...props} />
|
|
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
213
213
|
<%s key={someKey} {...props} />`,
|
|
214
214
|
$,
|
|
215
215
|
N,
|
|
216
|
-
|
|
216
|
+
q,
|
|
217
217
|
N
|
|
218
218
|
), L[N + $] = !0);
|
|
219
219
|
}
|
|
@@ -224,56 +224,56 @@ React keys must be passed directly to JSX without using spread:
|
|
|
224
224
|
} else T = y;
|
|
225
225
|
return N && o(
|
|
226
226
|
T,
|
|
227
|
-
typeof
|
|
228
|
-
),
|
|
229
|
-
|
|
227
|
+
typeof h == "function" ? h.displayName || h.name || "Unknown" : h
|
|
228
|
+
), c(
|
|
229
|
+
h,
|
|
230
230
|
N,
|
|
231
231
|
A,
|
|
232
|
-
|
|
232
|
+
R,
|
|
233
233
|
s(),
|
|
234
234
|
T,
|
|
235
235
|
M,
|
|
236
236
|
F
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
typeof
|
|
239
|
+
function l(h) {
|
|
240
|
+
typeof h == "object" && h !== null && h.$$typeof === p && h._store && (h._store.validated = 1);
|
|
241
241
|
}
|
|
242
|
-
var d = hr,
|
|
242
|
+
var d = hr, p = Symbol.for("react.transitional.element"), m = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), O = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), j = Symbol.for("react.activity"), P = Symbol.for("react.client.reference"), D = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, _ = Object.prototype.hasOwnProperty, U = Array.isArray, H = console.createTask ? console.createTask : function() {
|
|
243
243
|
return null;
|
|
244
244
|
};
|
|
245
245
|
d = {
|
|
246
|
-
"react-stack-bottom-frame": function(
|
|
247
|
-
return
|
|
246
|
+
"react-stack-bottom-frame": function(h) {
|
|
247
|
+
return h();
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
var
|
|
250
|
+
var K, z = {}, J = d["react-stack-bottom-frame"].bind(
|
|
251
251
|
d,
|
|
252
252
|
a
|
|
253
253
|
)(), W = H(n(a)), L = {};
|
|
254
|
-
Ae.Fragment = g, Ae.jsx = function(
|
|
254
|
+
Ae.Fragment = g, Ae.jsx = function(h, y, T, $, R) {
|
|
255
255
|
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
256
256
|
return u(
|
|
257
|
-
|
|
257
|
+
h,
|
|
258
258
|
y,
|
|
259
259
|
T,
|
|
260
260
|
!1,
|
|
261
261
|
$,
|
|
262
|
-
|
|
262
|
+
R,
|
|
263
263
|
A ? Error("react-stack-top-frame") : J,
|
|
264
|
-
A ? H(n(
|
|
264
|
+
A ? H(n(h)) : W
|
|
265
265
|
);
|
|
266
|
-
}, Ae.jsxs = function(
|
|
266
|
+
}, Ae.jsxs = function(h, y, T, $, R) {
|
|
267
267
|
var A = 1e4 > D.recentlyCreatedOwnerStacks++;
|
|
268
268
|
return u(
|
|
269
|
-
|
|
269
|
+
h,
|
|
270
270
|
y,
|
|
271
271
|
T,
|
|
272
272
|
!0,
|
|
273
273
|
$,
|
|
274
|
-
|
|
274
|
+
R,
|
|
275
275
|
A ? Error("react-stack-top-frame") : J,
|
|
276
|
-
A ? H(n(
|
|
276
|
+
A ? H(n(h)) : W
|
|
277
277
|
);
|
|
278
278
|
};
|
|
279
279
|
}()), Ae;
|
|
@@ -315,14 +315,14 @@ const ne = {
|
|
|
315
315
|
k: ""
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
|
-
class
|
|
318
|
+
class Ke {
|
|
319
319
|
constructor(e, t) {
|
|
320
320
|
Se(this, "class");
|
|
321
321
|
Se(this, "value");
|
|
322
322
|
this.class = e, this.value = t;
|
|
323
323
|
}
|
|
324
324
|
static fromDataObj(e) {
|
|
325
|
-
return new
|
|
325
|
+
return new Ke(e, e.k == "1" || e.k == "true");
|
|
326
326
|
}
|
|
327
327
|
getValue() {
|
|
328
328
|
return this.value;
|
|
@@ -347,25 +347,25 @@ function Mr(r, e) {
|
|
|
347
347
|
let s = "DDMMYYYY";
|
|
348
348
|
e === "en" && (s = "MMDDYYYY");
|
|
349
349
|
const a = s.indexOf("DD"), i = s.indexOf("MM");
|
|
350
|
-
let o = 0,
|
|
350
|
+
let o = 0, f = 0, c = "";
|
|
351
351
|
switch (n.length) {
|
|
352
352
|
case 1:
|
|
353
353
|
case 2:
|
|
354
354
|
return o = parseInt(n), t.setDate(o), Ve(t) ? t : r;
|
|
355
355
|
case 3:
|
|
356
356
|
case 4:
|
|
357
|
-
return o = parseInt(n.substring(0, 2)),
|
|
357
|
+
return o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), i === 0 ? (t.setMonth(o - 1), t.setDate(f)) : a === 0 && (t.setMonth(f - 1), t.setDate(o)), Ve(t) ? t : r;
|
|
358
358
|
case 5:
|
|
359
359
|
case 6: {
|
|
360
|
-
o = parseInt(n.substring(0, 2)),
|
|
361
|
-
let u = 0,
|
|
362
|
-
return i === 0 ? (u =
|
|
360
|
+
o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), Number(n.substring(4)) > 50 ? c = "19" + n.substring(4) : c = "20" + n.substring(4);
|
|
361
|
+
let u = 0, l = 0;
|
|
362
|
+
return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(o, l, parseInt(c)) && Ve(t) ? t : r;
|
|
363
363
|
}
|
|
364
364
|
case 7:
|
|
365
365
|
case 8: {
|
|
366
|
-
o = parseInt(n.substring(0, 2)),
|
|
367
|
-
let u = 0,
|
|
368
|
-
return i === 0 ? (u =
|
|
366
|
+
o = parseInt(n.substring(0, 2)), f = parseInt(n.substring(2, 4)), c = n.substring(4);
|
|
367
|
+
let u = 0, l = 0;
|
|
368
|
+
return i === 0 ? (u = f, l = o - 1, t.setFullYear(parseInt(c), l, u)) : a === 0 && (u = o, l = f - 1, t.setFullYear(parseInt(c), l, u)), ht(u, l, parseInt(c)) && Ve(t) ? t : r;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
return r;
|
|
@@ -417,7 +417,7 @@ function Yr(r) {
|
|
|
417
417
|
const e = r.getFullYear(), t = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
|
|
418
418
|
return isNaN(e) || isNaN(Number(t)) || isNaN(Number(n)) ? r.toString() : `${e}-${t}-${n}`;
|
|
419
419
|
}
|
|
420
|
-
class
|
|
420
|
+
class qe {
|
|
421
421
|
constructor(e, t) {
|
|
422
422
|
Se(this, "class");
|
|
423
423
|
Se(this, "date");
|
|
@@ -426,7 +426,7 @@ class ze {
|
|
|
426
426
|
static fromDataObj(e) {
|
|
427
427
|
const t = Ct.get(`${e.t}${e.p}`);
|
|
428
428
|
if (t)
|
|
429
|
-
return new
|
|
429
|
+
return new qe(e, t.legacyToIso(e.k));
|
|
430
430
|
throw new Error(`Date creation from ${e.t}${e.p} not implemented yet`);
|
|
431
431
|
}
|
|
432
432
|
getLegacyValue() {
|
|
@@ -468,19 +468,19 @@ function St({
|
|
|
468
468
|
enabled: e = !0
|
|
469
469
|
}) {
|
|
470
470
|
const t = ve(null), n = ve(null), [s, a] = Z(0), i = ye(() => {
|
|
471
|
-
const o = t.current,
|
|
472
|
-
if (!o || !
|
|
473
|
-
const { top:
|
|
474
|
-
a(
|
|
475
|
-
const
|
|
476
|
-
if (m === 0 ||
|
|
471
|
+
const o = t.current, f = n.current;
|
|
472
|
+
if (!o || !f) return;
|
|
473
|
+
const { top: c, left: u, width: l, height: d } = o.getBoundingClientRect();
|
|
474
|
+
a(l);
|
|
475
|
+
const p = f.offsetHeight, m = f.offsetWidth;
|
|
476
|
+
if (m === 0 || p === 0) {
|
|
477
477
|
requestAnimationFrame(i);
|
|
478
478
|
return;
|
|
479
479
|
}
|
|
480
|
-
let g =
|
|
480
|
+
let g = c + window.scrollY, x = u + window.scrollX;
|
|
481
481
|
switch (r) {
|
|
482
482
|
case "top":
|
|
483
|
-
g -=
|
|
483
|
+
g -= p;
|
|
484
484
|
break;
|
|
485
485
|
case "bottom":
|
|
486
486
|
g += d;
|
|
@@ -489,11 +489,11 @@ function St({
|
|
|
489
489
|
x -= m;
|
|
490
490
|
break;
|
|
491
491
|
case "right":
|
|
492
|
-
x +=
|
|
492
|
+
x += l;
|
|
493
493
|
break;
|
|
494
494
|
}
|
|
495
495
|
requestAnimationFrame(() => {
|
|
496
|
-
|
|
496
|
+
f.style.transform = `translate(${x}px, ${g}px)`;
|
|
497
497
|
});
|
|
498
498
|
}, [r]);
|
|
499
499
|
return Ar(() => {
|
|
@@ -576,59 +576,59 @@ function Hr() {
|
|
|
576
576
|
Pt = 1;
|
|
577
577
|
var r = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, e = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/, t = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, n = /\\([\u000b\u0020-\u00ff])/g, s = /([\\"])/g, a = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
578
578
|
Ye.format = i, Ye.parse = o;
|
|
579
|
-
function i(
|
|
580
|
-
if (!
|
|
579
|
+
function i(l) {
|
|
580
|
+
if (!l || typeof l != "object")
|
|
581
581
|
throw new TypeError("argument obj is required");
|
|
582
|
-
var d =
|
|
583
|
-
if (!
|
|
582
|
+
var d = l.parameters, p = l.type;
|
|
583
|
+
if (!p || !a.test(p))
|
|
584
584
|
throw new TypeError("invalid type");
|
|
585
|
-
var m =
|
|
585
|
+
var m = p;
|
|
586
586
|
if (d && typeof d == "object")
|
|
587
|
-
for (var g, x = Object.keys(d).sort(),
|
|
588
|
-
if (g = x[
|
|
587
|
+
for (var g, x = Object.keys(d).sort(), S = 0; S < x.length; S++) {
|
|
588
|
+
if (g = x[S], !t.test(g))
|
|
589
589
|
throw new TypeError("invalid parameter name");
|
|
590
|
-
m += "; " + g + "=" +
|
|
590
|
+
m += "; " + g + "=" + c(d[g]);
|
|
591
591
|
}
|
|
592
592
|
return m;
|
|
593
593
|
}
|
|
594
|
-
function o(
|
|
595
|
-
if (!
|
|
594
|
+
function o(l) {
|
|
595
|
+
if (!l)
|
|
596
596
|
throw new TypeError("argument string is required");
|
|
597
|
-
var d = typeof
|
|
597
|
+
var d = typeof l == "object" ? f(l) : l;
|
|
598
598
|
if (typeof d != "string")
|
|
599
599
|
throw new TypeError("argument string is required to be a string");
|
|
600
|
-
var
|
|
600
|
+
var p = d.indexOf(";"), m = p !== -1 ? d.slice(0, p).trim() : d.trim();
|
|
601
601
|
if (!a.test(m))
|
|
602
602
|
throw new TypeError("invalid media type");
|
|
603
603
|
var g = new u(m.toLowerCase());
|
|
604
|
-
if (
|
|
605
|
-
var x,
|
|
606
|
-
for (r.lastIndex =
|
|
607
|
-
if (
|
|
604
|
+
if (p !== -1) {
|
|
605
|
+
var x, S, E;
|
|
606
|
+
for (r.lastIndex = p; S = r.exec(d); ) {
|
|
607
|
+
if (S.index !== p)
|
|
608
608
|
throw new TypeError("invalid parameter format");
|
|
609
|
-
|
|
609
|
+
p += S[0].length, x = S[1].toLowerCase(), E = S[2], E.charCodeAt(0) === 34 && (E = E.slice(1, -1), E.indexOf("\\") !== -1 && (E = E.replace(n, "$1"))), g.parameters[x] = E;
|
|
610
610
|
}
|
|
611
|
-
if (
|
|
611
|
+
if (p !== d.length)
|
|
612
612
|
throw new TypeError("invalid parameter format");
|
|
613
613
|
}
|
|
614
614
|
return g;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function f(l) {
|
|
617
617
|
var d;
|
|
618
|
-
if (typeof
|
|
618
|
+
if (typeof l.getHeader == "function" ? d = l.getHeader("content-type") : typeof l.headers == "object" && (d = l.headers && l.headers["content-type"]), typeof d != "string")
|
|
619
619
|
throw new TypeError("content-type header is missing from object");
|
|
620
620
|
return d;
|
|
621
621
|
}
|
|
622
|
-
function l
|
|
623
|
-
var d = String(
|
|
622
|
+
function c(l) {
|
|
623
|
+
var d = String(l);
|
|
624
624
|
if (t.test(d))
|
|
625
625
|
return d;
|
|
626
626
|
if (d.length > 0 && !e.test(d))
|
|
627
627
|
throw new TypeError("invalid parameter value");
|
|
628
628
|
return '"' + d.replace(s, "\\$1") + '"';
|
|
629
629
|
}
|
|
630
|
-
function u(
|
|
631
|
-
this.parameters = /* @__PURE__ */ Object.create(null), this.type =
|
|
630
|
+
function u(l) {
|
|
631
|
+
this.parameters = /* @__PURE__ */ Object.create(null), this.type = l;
|
|
632
632
|
}
|
|
633
633
|
return Ye;
|
|
634
634
|
}
|
|
@@ -669,13 +669,13 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
669
669
|
for (var t = function(i, o) {
|
|
670
670
|
setTimeout(function() {
|
|
671
671
|
if (Array.isArray(xe[e])) {
|
|
672
|
-
var
|
|
673
|
-
|
|
672
|
+
var f = Re.get(e), c = xe[e][i];
|
|
673
|
+
f instanceof SVGSVGElement && c(null, gr(f)), f instanceof Error && c(f), i === xe[e].length - 1 && delete xe[e];
|
|
674
674
|
}
|
|
675
675
|
}, 0);
|
|
676
676
|
}, n = 0, s = xe[e].length; n < s; n++)
|
|
677
677
|
t(n);
|
|
678
|
-
},
|
|
678
|
+
}, zr = function(e, t, n) {
|
|
679
679
|
if (Re.has(e)) {
|
|
680
680
|
var s = Re.get(e);
|
|
681
681
|
if (s === void 0) {
|
|
@@ -691,16 +691,16 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
691
691
|
var o;
|
|
692
692
|
a ? Re.set(e, a) : ((o = i.responseXML) === null || o === void 0 ? void 0 : o.documentElement) instanceof SVGSVGElement && Re.set(e, i.responseXML.documentElement), Gr(e);
|
|
693
693
|
});
|
|
694
|
-
},
|
|
694
|
+
}, Kr = function(e, t, n) {
|
|
695
695
|
yr(e, t, function(s, a) {
|
|
696
696
|
var i;
|
|
697
697
|
s ? n(s) : ((i = a.responseXML) === null || i === void 0 ? void 0 : i.documentElement) instanceof SVGSVGElement && n(null, a.responseXML.documentElement);
|
|
698
698
|
});
|
|
699
|
-
},
|
|
700
|
-
return ++
|
|
699
|
+
}, qr = 0, Jr = function() {
|
|
700
|
+
return ++qr;
|
|
701
701
|
}, me = [], _t = {}, Xr = "http://www.w3.org/2000/svg", at = "http://www.w3.org/1999/xlink", It = function(e, t, n, s, a, i, o) {
|
|
702
|
-
var
|
|
703
|
-
if (!
|
|
702
|
+
var f = e.getAttribute("data-src") || e.getAttribute("src");
|
|
703
|
+
if (!f) {
|
|
704
704
|
o(new Error("Invalid data-src or src attribute"));
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
@@ -709,31 +709,31 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
711
|
me.push(e), e.setAttribute("src", "");
|
|
712
|
-
var
|
|
713
|
-
|
|
714
|
-
if (!
|
|
712
|
+
var c = s ? zr : Kr;
|
|
713
|
+
c(f, a, function(u, l) {
|
|
714
|
+
if (!l) {
|
|
715
715
|
me.splice(me.indexOf(e), 1), e = null, o(u);
|
|
716
716
|
return;
|
|
717
717
|
}
|
|
718
718
|
var d = e.getAttribute("id");
|
|
719
|
-
d &&
|
|
720
|
-
var
|
|
721
|
-
|
|
719
|
+
d && l.setAttribute("id", d);
|
|
720
|
+
var p = e.getAttribute("title");
|
|
721
|
+
p && l.setAttribute("title", p);
|
|
722
722
|
var m = e.getAttribute("width");
|
|
723
|
-
m &&
|
|
723
|
+
m && l.setAttribute("width", m);
|
|
724
724
|
var g = e.getAttribute("height");
|
|
725
|
-
g &&
|
|
726
|
-
var x = Array.from(new Set(st(st(st([], (
|
|
727
|
-
|
|
728
|
-
var
|
|
729
|
-
|
|
725
|
+
g && l.setAttribute("height", g);
|
|
726
|
+
var x = Array.from(new Set(st(st(st([], (l.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (e.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
727
|
+
l.setAttribute("class", x);
|
|
728
|
+
var S = e.getAttribute("style");
|
|
729
|
+
S && l.setAttribute("style", S), l.setAttribute("data-src", f);
|
|
730
730
|
var E = [].filter.call(e.attributes, function(W) {
|
|
731
731
|
return /^data-\w[\w-]*$/.test(W.name);
|
|
732
732
|
});
|
|
733
733
|
if (Array.prototype.forEach.call(E, function(W) {
|
|
734
|
-
W.name && W.value &&
|
|
734
|
+
W.name && W.value && l.setAttribute(W.name, W.value);
|
|
735
735
|
}), n) {
|
|
736
|
-
var
|
|
736
|
+
var O = {
|
|
737
737
|
clipPath: ["clip-path"],
|
|
738
738
|
"color-profile": ["color-profile"],
|
|
739
739
|
cursor: ["cursor"],
|
|
@@ -744,58 +744,58 @@ var Br = Hr(), Re = /* @__PURE__ */ new Map(), gr = function(e) {
|
|
|
744
744
|
path: [],
|
|
745
745
|
pattern: ["fill", "stroke"],
|
|
746
746
|
radialGradient: ["fill", "stroke"]
|
|
747
|
-
},
|
|
748
|
-
Object.keys(
|
|
749
|
-
|
|
750
|
-
for (var L = function($,
|
|
747
|
+
}, w, b, k, C, Y;
|
|
748
|
+
Object.keys(O).forEach(function(W) {
|
|
749
|
+
w = W, k = O[W], b = l.querySelectorAll(w + "[id]");
|
|
750
|
+
for (var L = function($, R) {
|
|
751
751
|
C = b[$].id, Y = C + "-" + Jr();
|
|
752
752
|
var A;
|
|
753
753
|
Array.prototype.forEach.call(k, function(V) {
|
|
754
|
-
A =
|
|
754
|
+
A = l.querySelectorAll("[" + V + '*="' + C + '"]');
|
|
755
755
|
for (var X = 0, te = A.length; X < te; X++) {
|
|
756
756
|
var re = A[X].getAttribute(V);
|
|
757
757
|
re && !re.match(new RegExp('url\\("?#' + C + '"?\\)')) || A[X].setAttribute(V, "url(#" + Y + ")");
|
|
758
758
|
}
|
|
759
759
|
});
|
|
760
|
-
for (var M =
|
|
760
|
+
for (var M = l.querySelectorAll("[*|href]"), F = [], N = 0, q = M.length; N < q; N++) {
|
|
761
761
|
var B = M[N].getAttributeNS(at, "href");
|
|
762
762
|
B && B.toString() === "#" + b[$].id && F.push(M[N]);
|
|
763
763
|
}
|
|
764
764
|
for (var se = 0, I = F.length; se < I; se++)
|
|
765
765
|
F[se].setAttributeNS(at, "href", "#" + Y);
|
|
766
766
|
b[$].id = Y;
|
|
767
|
-
},
|
|
768
|
-
L(
|
|
767
|
+
}, h = 0, y = b.length; h < y; h++)
|
|
768
|
+
L(h);
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
for (var j =
|
|
773
|
-
_ = j[U].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D),
|
|
774
|
-
if (P.length > 0 && (t === "always" || t === "once" && !_t[
|
|
775
|
-
for (var
|
|
776
|
-
new Function(P[
|
|
777
|
-
_t[
|
|
771
|
+
l.removeAttribute("xmlns:a");
|
|
772
|
+
for (var j = l.querySelectorAll("script"), P = [], D, _, U = 0, H = j.length; U < H; U++)
|
|
773
|
+
_ = j[U].getAttribute("type"), (!_ || _ === "application/ecmascript" || _ === "application/javascript" || _ === "text/javascript") && (D = j[U].innerText || j[U].textContent, D && P.push(D), l.removeChild(j[U]));
|
|
774
|
+
if (P.length > 0 && (t === "always" || t === "once" && !_t[f])) {
|
|
775
|
+
for (var K = 0, z = P.length; K < z; K++)
|
|
776
|
+
new Function(P[K])(window);
|
|
777
|
+
_t[f] = !0;
|
|
778
778
|
}
|
|
779
|
-
var J =
|
|
779
|
+
var J = l.querySelectorAll("style");
|
|
780
780
|
if (Array.prototype.forEach.call(J, function(W) {
|
|
781
781
|
W.textContent += "";
|
|
782
|
-
}),
|
|
782
|
+
}), l.setAttribute("xmlns", Xr), l.setAttribute("xmlns:xlink", at), i(l), !e.parentNode) {
|
|
783
783
|
me.splice(me.indexOf(e), 1), e = null, o(new Error("Parent node is null"));
|
|
784
784
|
return;
|
|
785
785
|
}
|
|
786
|
-
e.parentNode.replaceChild(
|
|
786
|
+
e.parentNode.replaceChild(l, e), me.splice(me.indexOf(e), 1), e = null, o(null, l);
|
|
787
787
|
});
|
|
788
788
|
}, Zr = function(e, t) {
|
|
789
789
|
var n = t === void 0 ? {} : t, s = n.afterAll, a = s === void 0 ? function() {
|
|
790
790
|
} : s, i = n.afterEach, o = i === void 0 ? function() {
|
|
791
|
-
} : i,
|
|
792
|
-
} :
|
|
791
|
+
} : i, f = n.beforeEach, c = f === void 0 ? function() {
|
|
792
|
+
} : f, u = n.cacheRequests, l = u === void 0 ? !0 : u, d = n.evalScripts, p = d === void 0 ? "never" : d, m = n.httpRequestWithCredentials, g = m === void 0 ? !1 : m, x = n.renumerateIRIElements, S = x === void 0 ? !0 : x;
|
|
793
793
|
if (e && "length" in e)
|
|
794
|
-
for (var E = 0,
|
|
795
|
-
It(e[
|
|
794
|
+
for (var E = 0, O = 0, w = e.length; O < w; O++)
|
|
795
|
+
It(e[O], p, S, l, g, c, function(b, k) {
|
|
796
796
|
o(b, k), e && "length" in e && e.length === ++E && a(E);
|
|
797
797
|
});
|
|
798
|
-
else e ? It(e,
|
|
798
|
+
else e ? It(e, p, S, l, g, c, function(b, k) {
|
|
799
799
|
o(b, k), a(1), e = null;
|
|
800
800
|
}) : a(0);
|
|
801
801
|
}, Ue = { exports: {} }, We = { exports: {} }, Q = {};
|
|
@@ -811,26 +811,26 @@ var kt;
|
|
|
811
811
|
function Qr() {
|
|
812
812
|
if (kt) return Q;
|
|
813
813
|
kt = 1;
|
|
814
|
-
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,
|
|
815
|
-
function
|
|
814
|
+
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, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
815
|
+
function O(b) {
|
|
816
816
|
if (typeof b == "object" && b !== null) {
|
|
817
817
|
var k = b.$$typeof;
|
|
818
818
|
switch (k) {
|
|
819
819
|
case e:
|
|
820
820
|
switch (b = b.type, b) {
|
|
821
|
+
case f:
|
|
821
822
|
case c:
|
|
822
|
-
case l:
|
|
823
823
|
case n:
|
|
824
824
|
case a:
|
|
825
825
|
case s:
|
|
826
|
-
case
|
|
826
|
+
case l:
|
|
827
827
|
return b;
|
|
828
828
|
default:
|
|
829
829
|
switch (b = b && b.$$typeof, b) {
|
|
830
830
|
case o:
|
|
831
831
|
case u:
|
|
832
832
|
case m:
|
|
833
|
-
case
|
|
833
|
+
case p:
|
|
834
834
|
case i:
|
|
835
835
|
return b;
|
|
836
836
|
default:
|
|
@@ -842,36 +842,36 @@ function Qr() {
|
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
return
|
|
845
|
+
function w(b) {
|
|
846
|
+
return O(b) === c;
|
|
847
847
|
}
|
|
848
|
-
return Q.AsyncMode =
|
|
849
|
-
return
|
|
850
|
-
}, Q.isConcurrentMode =
|
|
851
|
-
return
|
|
848
|
+
return Q.AsyncMode = f, Q.ConcurrentMode = c, Q.ContextConsumer = o, Q.ContextProvider = i, Q.Element = e, Q.ForwardRef = u, Q.Fragment = n, Q.Lazy = m, Q.Memo = p, Q.Portal = t, Q.Profiler = a, Q.StrictMode = s, Q.Suspense = l, Q.isAsyncMode = function(b) {
|
|
849
|
+
return w(b) || O(b) === f;
|
|
850
|
+
}, Q.isConcurrentMode = w, Q.isContextConsumer = function(b) {
|
|
851
|
+
return O(b) === o;
|
|
852
852
|
}, Q.isContextProvider = function(b) {
|
|
853
|
-
return
|
|
853
|
+
return O(b) === i;
|
|
854
854
|
}, Q.isElement = function(b) {
|
|
855
855
|
return typeof b == "object" && b !== null && b.$$typeof === e;
|
|
856
856
|
}, Q.isForwardRef = function(b) {
|
|
857
|
-
return
|
|
857
|
+
return O(b) === u;
|
|
858
858
|
}, Q.isFragment = function(b) {
|
|
859
|
-
return
|
|
859
|
+
return O(b) === n;
|
|
860
860
|
}, Q.isLazy = function(b) {
|
|
861
|
-
return
|
|
861
|
+
return O(b) === m;
|
|
862
862
|
}, Q.isMemo = function(b) {
|
|
863
|
-
return
|
|
863
|
+
return O(b) === p;
|
|
864
864
|
}, Q.isPortal = function(b) {
|
|
865
|
-
return
|
|
865
|
+
return O(b) === t;
|
|
866
866
|
}, Q.isProfiler = function(b) {
|
|
867
|
-
return
|
|
867
|
+
return O(b) === a;
|
|
868
868
|
}, Q.isStrictMode = function(b) {
|
|
869
|
-
return
|
|
869
|
+
return O(b) === s;
|
|
870
870
|
}, Q.isSuspense = function(b) {
|
|
871
|
-
return
|
|
871
|
+
return O(b) === l;
|
|
872
872
|
}, Q.isValidElementType = function(b) {
|
|
873
|
-
return typeof b == "string" || typeof b == "function" || b === n || b ===
|
|
874
|
-
}, Q.typeOf =
|
|
873
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === a || b === s || b === l || b === d || typeof b == "object" && b !== null && (b.$$typeof === m || b.$$typeof === p || b.$$typeof === i || b.$$typeof === o || b.$$typeof === u || b.$$typeof === x || b.$$typeof === S || b.$$typeof === E || b.$$typeof === g);
|
|
874
|
+
}, Q.typeOf = O, Q;
|
|
875
875
|
}
|
|
876
876
|
var ee = {};
|
|
877
877
|
/** @license React v16.13.1
|
|
@@ -885,24 +885,24 @@ var ee = {};
|
|
|
885
885
|
var Nt;
|
|
886
886
|
function en() {
|
|
887
887
|
return Nt || (Nt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
888
|
-
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,
|
|
889
|
-
function
|
|
888
|
+
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, f = r ? Symbol.for("react.async_mode") : 60111, c = r ? Symbol.for("react.concurrent_mode") : 60111, u = r ? Symbol.for("react.forward_ref") : 60112, l = r ? Symbol.for("react.suspense") : 60113, d = r ? Symbol.for("react.suspense_list") : 60120, p = r ? Symbol.for("react.memo") : 60115, m = r ? Symbol.for("react.lazy") : 60116, g = r ? Symbol.for("react.block") : 60121, x = r ? Symbol.for("react.fundamental") : 60117, S = r ? Symbol.for("react.responder") : 60118, E = r ? Symbol.for("react.scope") : 60119;
|
|
889
|
+
function O(I) {
|
|
890
890
|
return typeof I == "string" || typeof I == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
891
|
-
I === n || I ===
|
|
891
|
+
I === n || I === c || I === a || I === s || I === l || I === d || typeof I == "object" && I !== null && (I.$$typeof === m || I.$$typeof === p || I.$$typeof === i || I.$$typeof === o || I.$$typeof === u || I.$$typeof === x || I.$$typeof === S || I.$$typeof === E || I.$$typeof === g);
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function w(I) {
|
|
894
894
|
if (typeof I == "object" && I !== null) {
|
|
895
895
|
var V = I.$$typeof;
|
|
896
896
|
switch (V) {
|
|
897
897
|
case e:
|
|
898
898
|
var X = I.type;
|
|
899
899
|
switch (X) {
|
|
900
|
+
case f:
|
|
900
901
|
case c:
|
|
901
|
-
case l:
|
|
902
902
|
case n:
|
|
903
903
|
case a:
|
|
904
904
|
case s:
|
|
905
|
-
case
|
|
905
|
+
case l:
|
|
906
906
|
return X;
|
|
907
907
|
default:
|
|
908
908
|
var te = X && X.$$typeof;
|
|
@@ -910,7 +910,7 @@ function en() {
|
|
|
910
910
|
case o:
|
|
911
911
|
case u:
|
|
912
912
|
case m:
|
|
913
|
-
case
|
|
913
|
+
case p:
|
|
914
914
|
case i:
|
|
915
915
|
return te;
|
|
916
916
|
default:
|
|
@@ -922,47 +922,47 @@ function en() {
|
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
var b =
|
|
925
|
+
var b = f, k = c, C = o, Y = i, j = e, P = u, D = n, _ = m, U = p, H = t, K = a, z = s, J = l, W = !1;
|
|
926
926
|
function L(I) {
|
|
927
|
-
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
927
|
+
return W || (W = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), h(I) || w(I) === f;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
930
|
-
return
|
|
929
|
+
function h(I) {
|
|
930
|
+
return w(I) === c;
|
|
931
931
|
}
|
|
932
932
|
function y(I) {
|
|
933
|
-
return
|
|
933
|
+
return w(I) === o;
|
|
934
934
|
}
|
|
935
935
|
function T(I) {
|
|
936
|
-
return
|
|
936
|
+
return w(I) === i;
|
|
937
937
|
}
|
|
938
938
|
function $(I) {
|
|
939
939
|
return typeof I == "object" && I !== null && I.$$typeof === e;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
941
|
+
function R(I) {
|
|
942
|
+
return w(I) === u;
|
|
943
943
|
}
|
|
944
944
|
function A(I) {
|
|
945
|
-
return
|
|
945
|
+
return w(I) === n;
|
|
946
946
|
}
|
|
947
947
|
function M(I) {
|
|
948
|
-
return
|
|
948
|
+
return w(I) === m;
|
|
949
949
|
}
|
|
950
950
|
function F(I) {
|
|
951
|
-
return
|
|
951
|
+
return w(I) === p;
|
|
952
952
|
}
|
|
953
953
|
function N(I) {
|
|
954
|
-
return
|
|
954
|
+
return w(I) === t;
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
return
|
|
956
|
+
function q(I) {
|
|
957
|
+
return w(I) === a;
|
|
958
958
|
}
|
|
959
959
|
function B(I) {
|
|
960
|
-
return
|
|
960
|
+
return w(I) === s;
|
|
961
961
|
}
|
|
962
962
|
function se(I) {
|
|
963
|
-
return
|
|
963
|
+
return w(I) === l;
|
|
964
964
|
}
|
|
965
|
-
ee.AsyncMode = b, ee.ConcurrentMode = k, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = _, ee.Memo = U, ee.Portal = H, ee.Profiler =
|
|
965
|
+
ee.AsyncMode = b, ee.ConcurrentMode = k, ee.ContextConsumer = C, ee.ContextProvider = Y, ee.Element = j, ee.ForwardRef = P, ee.Fragment = D, ee.Lazy = _, ee.Memo = U, ee.Portal = H, ee.Profiler = K, ee.StrictMode = z, ee.Suspense = J, ee.isAsyncMode = L, ee.isConcurrentMode = h, ee.isContextConsumer = y, ee.isContextProvider = T, ee.isElement = $, ee.isForwardRef = R, ee.isFragment = A, ee.isLazy = M, ee.isMemo = F, ee.isPortal = N, ee.isProfiler = q, ee.isStrictMode = B, ee.isSuspense = se, ee.isValidElementType = O, ee.typeOf = w;
|
|
966
966
|
}()), ee;
|
|
967
967
|
}
|
|
968
968
|
var Mt;
|
|
@@ -993,31 +993,31 @@ function tn() {
|
|
|
993
993
|
return !1;
|
|
994
994
|
for (var i = {}, o = 0; o < 10; o++)
|
|
995
995
|
i["_" + String.fromCharCode(o)] = o;
|
|
996
|
-
var
|
|
996
|
+
var f = Object.getOwnPropertyNames(i).map(function(u) {
|
|
997
997
|
return i[u];
|
|
998
998
|
});
|
|
999
|
-
if (
|
|
999
|
+
if (f.join("") !== "0123456789")
|
|
1000
1000
|
return !1;
|
|
1001
|
-
var
|
|
1001
|
+
var c = {};
|
|
1002
1002
|
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
1003
|
-
|
|
1004
|
-
}), Object.keys(Object.assign({},
|
|
1003
|
+
c[u] = u;
|
|
1004
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
1005
1005
|
} catch {
|
|
1006
1006
|
return !1;
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
return it = s() ? Object.assign : function(a, i) {
|
|
1010
|
-
for (var o,
|
|
1010
|
+
for (var o, f = n(a), c, u = 1; u < arguments.length; u++) {
|
|
1011
1011
|
o = Object(arguments[u]);
|
|
1012
|
-
for (var
|
|
1013
|
-
e.call(o,
|
|
1012
|
+
for (var l in o)
|
|
1013
|
+
e.call(o, l) && (f[l] = o[l]);
|
|
1014
1014
|
if (r) {
|
|
1015
|
-
|
|
1016
|
-
for (var d = 0; d <
|
|
1017
|
-
t.call(o,
|
|
1015
|
+
c = r(o);
|
|
1016
|
+
for (var d = 0; d < c.length; d++)
|
|
1017
|
+
t.call(o, c[d]) && (f[c[d]] = o[c[d]]);
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
1020
|
-
return
|
|
1020
|
+
return f;
|
|
1021
1021
|
}, it;
|
|
1022
1022
|
}
|
|
1023
1023
|
var ot, Vt;
|
|
@@ -1048,29 +1048,29 @@ function rn() {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
|
-
function s(a, i, o,
|
|
1051
|
+
function s(a, i, o, f, c) {
|
|
1052
1052
|
if (process.env.NODE_ENV !== "production") {
|
|
1053
1053
|
for (var u in a)
|
|
1054
1054
|
if (n(a, u)) {
|
|
1055
|
-
var
|
|
1055
|
+
var l;
|
|
1056
1056
|
try {
|
|
1057
1057
|
if (typeof a[u] != "function") {
|
|
1058
1058
|
var d = Error(
|
|
1059
|
-
(
|
|
1059
|
+
(f || "React class") + ": " + o + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
1060
1060
|
);
|
|
1061
1061
|
throw d.name = "Invariant Violation", d;
|
|
1062
1062
|
}
|
|
1063
|
-
|
|
1063
|
+
l = a[u](i, u, f, o, null, e);
|
|
1064
1064
|
} catch (m) {
|
|
1065
|
-
|
|
1065
|
+
l = m;
|
|
1066
1066
|
}
|
|
1067
|
-
if (
|
|
1068
|
-
(
|
|
1069
|
-
),
|
|
1070
|
-
t[
|
|
1071
|
-
var
|
|
1067
|
+
if (l && !(l instanceof Error) && r(
|
|
1068
|
+
(f || "React class") + ": type specification of " + o + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof l + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
1069
|
+
), l instanceof Error && !(l.message in t)) {
|
|
1070
|
+
t[l.message] = !0;
|
|
1071
|
+
var p = c ? c() : "";
|
|
1072
1072
|
r(
|
|
1073
|
-
"Failed " + o + " type: " +
|
|
1073
|
+
"Failed " + o + " type: " + l.message + (p ?? "")
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1087,35 +1087,35 @@ function nn() {
|
|
|
1087
1087
|
var r = vr(), e = tn(), t = /* @__PURE__ */ wt(), n = /* @__PURE__ */ br(), s = /* @__PURE__ */ rn(), a = function() {
|
|
1088
1088
|
};
|
|
1089
1089
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
1090
|
-
var
|
|
1091
|
-
typeof console < "u" && console.error(
|
|
1090
|
+
var f = "Warning: " + o;
|
|
1091
|
+
typeof console < "u" && console.error(f);
|
|
1092
1092
|
try {
|
|
1093
|
-
throw new Error(
|
|
1093
|
+
throw new Error(f);
|
|
1094
1094
|
} catch {
|
|
1095
1095
|
}
|
|
1096
1096
|
});
|
|
1097
1097
|
function i() {
|
|
1098
1098
|
return null;
|
|
1099
1099
|
}
|
|
1100
|
-
return ut = function(o,
|
|
1101
|
-
var
|
|
1102
|
-
function
|
|
1103
|
-
var y =
|
|
1100
|
+
return ut = function(o, f) {
|
|
1101
|
+
var c = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
1102
|
+
function l(h) {
|
|
1103
|
+
var y = h && (c && h[c] || h[u]);
|
|
1104
1104
|
if (typeof y == "function")
|
|
1105
1105
|
return y;
|
|
1106
1106
|
}
|
|
1107
|
-
var d = "<<anonymous>>",
|
|
1108
|
-
array:
|
|
1109
|
-
bigint:
|
|
1110
|
-
bool:
|
|
1111
|
-
func:
|
|
1112
|
-
number:
|
|
1113
|
-
object:
|
|
1114
|
-
string:
|
|
1115
|
-
symbol:
|
|
1107
|
+
var d = "<<anonymous>>", p = {
|
|
1108
|
+
array: S("array"),
|
|
1109
|
+
bigint: S("bigint"),
|
|
1110
|
+
bool: S("boolean"),
|
|
1111
|
+
func: S("function"),
|
|
1112
|
+
number: S("number"),
|
|
1113
|
+
object: S("object"),
|
|
1114
|
+
string: S("string"),
|
|
1115
|
+
symbol: S("symbol"),
|
|
1116
1116
|
any: E(),
|
|
1117
|
-
arrayOf:
|
|
1118
|
-
element:
|
|
1117
|
+
arrayOf: O,
|
|
1118
|
+
element: w(),
|
|
1119
1119
|
elementType: b(),
|
|
1120
1120
|
instanceOf: k,
|
|
1121
1121
|
node: P(),
|
|
@@ -1125,19 +1125,19 @@ function nn() {
|
|
|
1125
1125
|
shape: _,
|
|
1126
1126
|
exact: U
|
|
1127
1127
|
};
|
|
1128
|
-
function m(
|
|
1129
|
-
return
|
|
1128
|
+
function m(h, y) {
|
|
1129
|
+
return h === y ? h !== 0 || 1 / h === 1 / y : h !== h && y !== y;
|
|
1130
1130
|
}
|
|
1131
|
-
function g(
|
|
1132
|
-
this.message =
|
|
1131
|
+
function g(h, y) {
|
|
1132
|
+
this.message = h, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
1133
1133
|
}
|
|
1134
1134
|
g.prototype = Error.prototype;
|
|
1135
|
-
function x(
|
|
1135
|
+
function x(h) {
|
|
1136
1136
|
if (process.env.NODE_ENV !== "production")
|
|
1137
1137
|
var y = {}, T = 0;
|
|
1138
|
-
function $(A, M, F, N,
|
|
1138
|
+
function $(A, M, F, N, q, B, se) {
|
|
1139
1139
|
if (N = N || d, B = B || F, se !== t) {
|
|
1140
|
-
if (
|
|
1140
|
+
if (f) {
|
|
1141
1141
|
var I = new Error(
|
|
1142
1142
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1143
1143
|
);
|
|
@@ -1150,19 +1150,19 @@ function nn() {
|
|
|
1150
1150
|
), y[V] = !0, T++);
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
|
-
return M[F] == null ? A ? M[F] === null ? new g("The " +
|
|
1153
|
+
return M[F] == null ? A ? M[F] === null ? new g("The " + q + " `" + B + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new g("The " + q + " `" + B + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : h(M, F, N, q, B);
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1156
|
-
return
|
|
1155
|
+
var R = $.bind(null, !1);
|
|
1156
|
+
return R.isRequired = $.bind(null, !0), R;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
function y(T, $,
|
|
1160
|
-
var N = T[$],
|
|
1161
|
-
if (
|
|
1158
|
+
function S(h) {
|
|
1159
|
+
function y(T, $, R, A, M, F) {
|
|
1160
|
+
var N = T[$], q = z(N);
|
|
1161
|
+
if (q !== h) {
|
|
1162
1162
|
var B = J(N);
|
|
1163
1163
|
return new g(
|
|
1164
|
-
"Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" +
|
|
1165
|
-
{ expectedType:
|
|
1164
|
+
"Invalid " + A + " `" + M + "` of type " + ("`" + B + "` supplied to `" + R + "`, expected ") + ("`" + h + "`."),
|
|
1165
|
+
{ expectedType: h }
|
|
1166
1166
|
);
|
|
1167
1167
|
}
|
|
1168
1168
|
return null;
|
|
@@ -1172,17 +1172,17 @@ function nn() {
|
|
|
1172
1172
|
function E() {
|
|
1173
1173
|
return x(i);
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
function y(T, $,
|
|
1177
|
-
if (typeof
|
|
1178
|
-
return new g("Property `" + M + "` of component `" +
|
|
1175
|
+
function O(h) {
|
|
1176
|
+
function y(T, $, R, A, M) {
|
|
1177
|
+
if (typeof h != "function")
|
|
1178
|
+
return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
|
|
1179
1179
|
var F = T[$];
|
|
1180
1180
|
if (!Array.isArray(F)) {
|
|
1181
|
-
var N =
|
|
1182
|
-
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" +
|
|
1181
|
+
var N = z(F);
|
|
1182
|
+
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an array."));
|
|
1183
1183
|
}
|
|
1184
|
-
for (var
|
|
1185
|
-
var B =
|
|
1184
|
+
for (var q = 0; q < F.length; q++) {
|
|
1185
|
+
var B = h(F, q, R, A, M + "[" + q + "]", t);
|
|
1186
1186
|
if (B instanceof Error)
|
|
1187
1187
|
return B;
|
|
1188
1188
|
}
|
|
@@ -1190,65 +1190,65 @@ function nn() {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
return x(y);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
function
|
|
1193
|
+
function w() {
|
|
1194
|
+
function h(y, T, $, R, A) {
|
|
1195
1195
|
var M = y[T];
|
|
1196
1196
|
if (!o(M)) {
|
|
1197
|
-
var F =
|
|
1198
|
-
return new g("Invalid " +
|
|
1197
|
+
var F = z(M);
|
|
1198
|
+
return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement."));
|
|
1199
1199
|
}
|
|
1200
1200
|
return null;
|
|
1201
1201
|
}
|
|
1202
|
-
return x(
|
|
1202
|
+
return x(h);
|
|
1203
1203
|
}
|
|
1204
1204
|
function b() {
|
|
1205
|
-
function
|
|
1205
|
+
function h(y, T, $, R, A) {
|
|
1206
1206
|
var M = y[T];
|
|
1207
1207
|
if (!r.isValidElementType(M)) {
|
|
1208
|
-
var F =
|
|
1209
|
-
return new g("Invalid " +
|
|
1208
|
+
var F = z(M);
|
|
1209
|
+
return new g("Invalid " + R + " `" + A + "` of type " + ("`" + F + "` supplied to `" + $ + "`, expected a single ReactElement type."));
|
|
1210
1210
|
}
|
|
1211
1211
|
return null;
|
|
1212
1212
|
}
|
|
1213
|
-
return x(
|
|
1213
|
+
return x(h);
|
|
1214
1214
|
}
|
|
1215
|
-
function k(
|
|
1216
|
-
function y(T, $,
|
|
1217
|
-
if (!(T[$] instanceof
|
|
1218
|
-
var F =
|
|
1219
|
-
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" +
|
|
1215
|
+
function k(h) {
|
|
1216
|
+
function y(T, $, R, A, M) {
|
|
1217
|
+
if (!(T[$] instanceof h)) {
|
|
1218
|
+
var F = h.name || d, N = L(T[$]);
|
|
1219
|
+
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected ") + ("instance of `" + F + "`."));
|
|
1220
1220
|
}
|
|
1221
1221
|
return null;
|
|
1222
1222
|
}
|
|
1223
1223
|
return x(y);
|
|
1224
1224
|
}
|
|
1225
|
-
function C(
|
|
1226
|
-
if (!Array.isArray(
|
|
1225
|
+
function C(h) {
|
|
1226
|
+
if (!Array.isArray(h))
|
|
1227
1227
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
1228
1228
|
"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])."
|
|
1229
1229
|
) : a("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
1230
|
-
function y(T, $,
|
|
1231
|
-
for (var F = T[$], N = 0; N <
|
|
1232
|
-
if (m(F,
|
|
1230
|
+
function y(T, $, R, A, M) {
|
|
1231
|
+
for (var F = T[$], N = 0; N < h.length; N++)
|
|
1232
|
+
if (m(F, h[N]))
|
|
1233
1233
|
return null;
|
|
1234
|
-
var
|
|
1234
|
+
var q = JSON.stringify(h, function(se, I) {
|
|
1235
1235
|
var V = J(I);
|
|
1236
1236
|
return V === "symbol" ? String(I) : I;
|
|
1237
1237
|
});
|
|
1238
|
-
return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" +
|
|
1238
|
+
return new g("Invalid " + A + " `" + M + "` of value `" + String(F) + "` " + ("supplied to `" + R + "`, expected one of " + q + "."));
|
|
1239
1239
|
}
|
|
1240
1240
|
return x(y);
|
|
1241
1241
|
}
|
|
1242
|
-
function Y(
|
|
1243
|
-
function y(T, $,
|
|
1244
|
-
if (typeof
|
|
1245
|
-
return new g("Property `" + M + "` of component `" +
|
|
1246
|
-
var F = T[$], N =
|
|
1242
|
+
function Y(h) {
|
|
1243
|
+
function y(T, $, R, A, M) {
|
|
1244
|
+
if (typeof h != "function")
|
|
1245
|
+
return new g("Property `" + M + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
|
|
1246
|
+
var F = T[$], N = z(F);
|
|
1247
1247
|
if (N !== "object")
|
|
1248
|
-
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" +
|
|
1249
|
-
for (var
|
|
1250
|
-
if (n(F,
|
|
1251
|
-
var B =
|
|
1248
|
+
return new g("Invalid " + A + " `" + M + "` of type " + ("`" + N + "` supplied to `" + R + "`, expected an object."));
|
|
1249
|
+
for (var q in F)
|
|
1250
|
+
if (n(F, q)) {
|
|
1251
|
+
var B = h(F, q, R, A, M + "." + q, t);
|
|
1252
1252
|
if (B instanceof Error)
|
|
1253
1253
|
return B;
|
|
1254
1254
|
}
|
|
@@ -1256,49 +1256,49 @@ function nn() {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return x(y);
|
|
1258
1258
|
}
|
|
1259
|
-
function j(
|
|
1260
|
-
if (!Array.isArray(
|
|
1259
|
+
function j(h) {
|
|
1260
|
+
if (!Array.isArray(h))
|
|
1261
1261
|
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
1262
|
-
for (var y = 0; y <
|
|
1263
|
-
var T =
|
|
1262
|
+
for (var y = 0; y < h.length; y++) {
|
|
1263
|
+
var T = h[y];
|
|
1264
1264
|
if (typeof T != "function")
|
|
1265
1265
|
return a(
|
|
1266
1266
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + W(T) + " at index " + y + "."
|
|
1267
1267
|
), i;
|
|
1268
1268
|
}
|
|
1269
|
-
function $(
|
|
1270
|
-
for (var
|
|
1271
|
-
var se =
|
|
1269
|
+
function $(R, A, M, F, N) {
|
|
1270
|
+
for (var q = [], B = 0; B < h.length; B++) {
|
|
1271
|
+
var se = h[B], I = se(R, A, M, F, N, t);
|
|
1272
1272
|
if (I == null)
|
|
1273
1273
|
return null;
|
|
1274
|
-
I.data && n(I.data, "expectedType") &&
|
|
1274
|
+
I.data && n(I.data, "expectedType") && q.push(I.data.expectedType);
|
|
1275
1275
|
}
|
|
1276
|
-
var V =
|
|
1276
|
+
var V = q.length > 0 ? ", expected one of type [" + q.join(", ") + "]" : "";
|
|
1277
1277
|
return new g("Invalid " + F + " `" + N + "` supplied to " + ("`" + M + "`" + V + "."));
|
|
1278
1278
|
}
|
|
1279
1279
|
return x($);
|
|
1280
1280
|
}
|
|
1281
1281
|
function P() {
|
|
1282
|
-
function
|
|
1283
|
-
return H(y[T]) ? null : new g("Invalid " +
|
|
1282
|
+
function h(y, T, $, R, A) {
|
|
1283
|
+
return H(y[T]) ? null : new g("Invalid " + R + " `" + A + "` supplied to " + ("`" + $ + "`, expected a ReactNode."));
|
|
1284
1284
|
}
|
|
1285
|
-
return x(
|
|
1285
|
+
return x(h);
|
|
1286
1286
|
}
|
|
1287
|
-
function D(
|
|
1287
|
+
function D(h, y, T, $, R) {
|
|
1288
1288
|
return new g(
|
|
1289
|
-
(
|
|
1289
|
+
(h || "React class") + ": " + y + " type `" + T + "." + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
|
|
1290
1290
|
);
|
|
1291
1291
|
}
|
|
1292
|
-
function _(
|
|
1293
|
-
function y(T, $,
|
|
1294
|
-
var F = T[$], N =
|
|
1292
|
+
function _(h) {
|
|
1293
|
+
function y(T, $, R, A, M) {
|
|
1294
|
+
var F = T[$], N = z(F);
|
|
1295
1295
|
if (N !== "object")
|
|
1296
|
-
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" +
|
|
1297
|
-
for (var
|
|
1298
|
-
var B =
|
|
1296
|
+
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1297
|
+
for (var q in h) {
|
|
1298
|
+
var B = h[q];
|
|
1299
1299
|
if (typeof B != "function")
|
|
1300
|
-
return D(
|
|
1301
|
-
var se = B(F,
|
|
1300
|
+
return D(R, A, M, q, J(B));
|
|
1301
|
+
var se = B(F, q, R, A, M + "." + q, t);
|
|
1302
1302
|
if (se)
|
|
1303
1303
|
return se;
|
|
1304
1304
|
}
|
|
@@ -1306,22 +1306,22 @@ function nn() {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
return x(y);
|
|
1308
1308
|
}
|
|
1309
|
-
function U(
|
|
1310
|
-
function y(T, $,
|
|
1311
|
-
var F = T[$], N =
|
|
1309
|
+
function U(h) {
|
|
1310
|
+
function y(T, $, R, A, M) {
|
|
1311
|
+
var F = T[$], N = z(F);
|
|
1312
1312
|
if (N !== "object")
|
|
1313
|
-
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" +
|
|
1314
|
-
var
|
|
1315
|
-
for (var B in
|
|
1316
|
-
var se =
|
|
1317
|
-
if (n(
|
|
1318
|
-
return D(
|
|
1313
|
+
return new g("Invalid " + A + " `" + M + "` of type `" + N + "` " + ("supplied to `" + R + "`, expected `object`."));
|
|
1314
|
+
var q = e({}, T[$], h);
|
|
1315
|
+
for (var B in q) {
|
|
1316
|
+
var se = h[B];
|
|
1317
|
+
if (n(h, B) && typeof se != "function")
|
|
1318
|
+
return D(R, A, M, B, J(se));
|
|
1319
1319
|
if (!se)
|
|
1320
1320
|
return new g(
|
|
1321
|
-
"Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" +
|
|
1322
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
1321
|
+
"Invalid " + A + " `" + M + "` key `" + B + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(T[$], null, " ") + `
|
|
1322
|
+
Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
|
|
1323
1323
|
);
|
|
1324
|
-
var I = se(F, B,
|
|
1324
|
+
var I = se(F, B, R, A, M + "." + B, t);
|
|
1325
1325
|
if (I)
|
|
1326
1326
|
return I;
|
|
1327
1327
|
}
|
|
@@ -1329,30 +1329,30 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1329
1329
|
}
|
|
1330
1330
|
return x(y);
|
|
1331
1331
|
}
|
|
1332
|
-
function H(
|
|
1333
|
-
switch (typeof
|
|
1332
|
+
function H(h) {
|
|
1333
|
+
switch (typeof h) {
|
|
1334
1334
|
case "number":
|
|
1335
1335
|
case "string":
|
|
1336
1336
|
case "undefined":
|
|
1337
1337
|
return !0;
|
|
1338
1338
|
case "boolean":
|
|
1339
|
-
return !
|
|
1339
|
+
return !h;
|
|
1340
1340
|
case "object":
|
|
1341
|
-
if (Array.isArray(
|
|
1342
|
-
return
|
|
1343
|
-
if (
|
|
1341
|
+
if (Array.isArray(h))
|
|
1342
|
+
return h.every(H);
|
|
1343
|
+
if (h === null || o(h))
|
|
1344
1344
|
return !0;
|
|
1345
|
-
var y =
|
|
1345
|
+
var y = l(h);
|
|
1346
1346
|
if (y) {
|
|
1347
|
-
var T = y.call(
|
|
1348
|
-
if (y !==
|
|
1347
|
+
var T = y.call(h), $;
|
|
1348
|
+
if (y !== h.entries) {
|
|
1349
1349
|
for (; !($ = T.next()).done; )
|
|
1350
1350
|
if (!H($.value))
|
|
1351
1351
|
return !1;
|
|
1352
1352
|
} else
|
|
1353
1353
|
for (; !($ = T.next()).done; ) {
|
|
1354
|
-
var
|
|
1355
|
-
if (
|
|
1354
|
+
var R = $.value;
|
|
1355
|
+
if (R && !H(R[1]))
|
|
1356
1356
|
return !1;
|
|
1357
1357
|
}
|
|
1358
1358
|
} else
|
|
@@ -1362,27 +1362,27 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1362
1362
|
return !1;
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1365
|
+
function K(h, y) {
|
|
1366
|
+
return h === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
var y = typeof
|
|
1370
|
-
return Array.isArray(
|
|
1368
|
+
function z(h) {
|
|
1369
|
+
var y = typeof h;
|
|
1370
|
+
return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : K(y, h) ? "symbol" : y;
|
|
1371
1371
|
}
|
|
1372
|
-
function J(
|
|
1373
|
-
if (typeof
|
|
1374
|
-
return "" +
|
|
1375
|
-
var y =
|
|
1372
|
+
function J(h) {
|
|
1373
|
+
if (typeof h > "u" || h === null)
|
|
1374
|
+
return "" + h;
|
|
1375
|
+
var y = z(h);
|
|
1376
1376
|
if (y === "object") {
|
|
1377
|
-
if (
|
|
1377
|
+
if (h instanceof Date)
|
|
1378
1378
|
return "date";
|
|
1379
|
-
if (
|
|
1379
|
+
if (h instanceof RegExp)
|
|
1380
1380
|
return "regexp";
|
|
1381
1381
|
}
|
|
1382
1382
|
return y;
|
|
1383
1383
|
}
|
|
1384
|
-
function W(
|
|
1385
|
-
var y = J(
|
|
1384
|
+
function W(h) {
|
|
1385
|
+
var y = J(h);
|
|
1386
1386
|
switch (y) {
|
|
1387
1387
|
case "array":
|
|
1388
1388
|
case "object":
|
|
@@ -1395,10 +1395,10 @@ Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
|
|
1395
1395
|
return y;
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
function L(
|
|
1399
|
-
return !
|
|
1398
|
+
function L(h) {
|
|
1399
|
+
return !h.constructor || !h.constructor.name ? d : h.constructor.name;
|
|
1400
1400
|
}
|
|
1401
|
-
return
|
|
1401
|
+
return p.checkPropTypes = s, p.resetWarningCache = s.resetWarningCache, p.PropTypes = p, p;
|
|
1402
1402
|
}, ut;
|
|
1403
1403
|
}
|
|
1404
1404
|
var ft, Ht;
|
|
@@ -1411,8 +1411,8 @@ function sn() {
|
|
|
1411
1411
|
function t() {
|
|
1412
1412
|
}
|
|
1413
1413
|
return t.resetWarningCache = e, ft = function() {
|
|
1414
|
-
function n(i, o,
|
|
1415
|
-
if (
|
|
1414
|
+
function n(i, o, f, c, u, l) {
|
|
1415
|
+
if (l !== r) {
|
|
1416
1416
|
var d = new Error(
|
|
1417
1417
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1418
1418
|
);
|
|
@@ -1486,11 +1486,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1486
1486
|
return t.renderSVG = function() {
|
|
1487
1487
|
var s = this;
|
|
1488
1488
|
if (this.reactWrapper instanceof on(this.reactWrapper).Node) {
|
|
1489
|
-
var a = this.props, i = a.desc, o = a.evalScripts,
|
|
1490
|
-
x === "svg" ? (
|
|
1491
|
-
var
|
|
1489
|
+
var a = this.props, i = a.desc, o = a.evalScripts, f = a.httpRequestWithCredentials, c = a.renumerateIRIElements, u = a.src, l = a.title, d = a.useRequestCache, p = this.props.onError, m = this.props.beforeInjection, g = this.props.afterInjection, x = this.props.wrapper, S, E;
|
|
1490
|
+
x === "svg" ? (S = document.createElementNS(He, x), S.setAttribute("xmlns", He), S.setAttribute("xmlns:xlink", Gt), E = document.createElementNS(He, x)) : (S = document.createElement(x), E = document.createElement(x)), S.appendChild(E), E.dataset.src = u, this.nonReactWrapper = this.reactWrapper.appendChild(S);
|
|
1491
|
+
var O = function(C) {
|
|
1492
1492
|
if (s.removeSVG(), !s._isMounted) {
|
|
1493
|
-
|
|
1493
|
+
p(C);
|
|
1494
1494
|
return;
|
|
1495
1495
|
}
|
|
1496
1496
|
s.setState(function() {
|
|
@@ -1499,11 +1499,11 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1499
1499
|
isLoading: !1
|
|
1500
1500
|
};
|
|
1501
1501
|
}, function() {
|
|
1502
|
-
|
|
1502
|
+
p(C);
|
|
1503
1503
|
});
|
|
1504
|
-
},
|
|
1504
|
+
}, w = function(C, Y) {
|
|
1505
1505
|
if (C) {
|
|
1506
|
-
|
|
1506
|
+
O(C);
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
1509
|
s._isMounted && s.setState(function() {
|
|
@@ -1514,7 +1514,7 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1514
1514
|
try {
|
|
1515
1515
|
g(Y);
|
|
1516
1516
|
} catch (j) {
|
|
1517
|
-
|
|
1517
|
+
O(j);
|
|
1518
1518
|
}
|
|
1519
1519
|
});
|
|
1520
1520
|
}, b = function(C) {
|
|
@@ -1524,25 +1524,25 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1524
1524
|
var j = document.createElement("desc");
|
|
1525
1525
|
j.innerHTML = i, C.prepend(j);
|
|
1526
1526
|
}
|
|
1527
|
-
if (
|
|
1527
|
+
if (l) {
|
|
1528
1528
|
var P = C.querySelector(":scope > title");
|
|
1529
1529
|
P && C.removeChild(P);
|
|
1530
1530
|
var D = document.createElement("title");
|
|
1531
|
-
D.innerHTML =
|
|
1531
|
+
D.innerHTML = l, C.prepend(D);
|
|
1532
1532
|
}
|
|
1533
1533
|
try {
|
|
1534
1534
|
m(C);
|
|
1535
1535
|
} catch (_) {
|
|
1536
|
-
|
|
1536
|
+
O(_);
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
Zr(E, {
|
|
1540
|
-
afterEach:
|
|
1540
|
+
afterEach: w,
|
|
1541
1541
|
beforeEach: b,
|
|
1542
1542
|
cacheRequests: d,
|
|
1543
1543
|
evalScripts: o,
|
|
1544
|
-
httpRequestWithCredentials:
|
|
1545
|
-
renumerateIRIElements:
|
|
1544
|
+
httpRequestWithCredentials: f,
|
|
1545
|
+
renumerateIRIElements: c
|
|
1546
1546
|
});
|
|
1547
1547
|
}
|
|
1548
1548
|
}, t.removeSVG = function() {
|
|
@@ -1566,8 +1566,8 @@ var ie = /* @__PURE__ */ an(), on = function(e) {
|
|
|
1566
1566
|
s.httpRequestWithCredentials;
|
|
1567
1567
|
var i = s.loading;
|
|
1568
1568
|
s.renumerateIRIElements, s.src, s.title, s.useRequestCache;
|
|
1569
|
-
var o = s.wrapper,
|
|
1570
|
-
return /* @__PURE__ */ Me.createElement(
|
|
1569
|
+
var o = s.wrapper, f = Ur(s, cn), c = o;
|
|
1570
|
+
return /* @__PURE__ */ Me.createElement(c, Ze({}, f, {
|
|
1571
1571
|
ref: this.refCallback
|
|
1572
1572
|
}, o === "svg" ? {
|
|
1573
1573
|
xmlns: He,
|
|
@@ -1613,7 +1613,7 @@ let gt = {
|
|
|
1613
1613
|
};
|
|
1614
1614
|
const Ss = (r) => {
|
|
1615
1615
|
gt = { ...gt, ...r };
|
|
1616
|
-
},
|
|
1616
|
+
}, zt = (r) => `${gt.assets}/${r}`.replace(/\/+/g, "/"), ue = hr.memo(
|
|
1617
1617
|
({
|
|
1618
1618
|
icon: r,
|
|
1619
1619
|
width: e,
|
|
@@ -1623,33 +1623,33 @@ const Ss = (r) => {
|
|
|
1623
1623
|
disabled: a,
|
|
1624
1624
|
state: i = "base",
|
|
1625
1625
|
rotated: o = !1,
|
|
1626
|
-
onClick:
|
|
1627
|
-
isInteractable:
|
|
1626
|
+
onClick: f,
|
|
1627
|
+
isInteractable: c = !1,
|
|
1628
1628
|
spin: u = !1,
|
|
1629
|
-
title:
|
|
1629
|
+
title: l
|
|
1630
1630
|
}) => {
|
|
1631
|
-
const [d,
|
|
1631
|
+
const [d, p] = Z(r), m = (r == null ? void 0 : r.startsWith("http")) || (r == null ? void 0 : r.startsWith("/")), g = m && (r == null ? void 0 : r.toLowerCase().endsWith(".svg")), x = zt(`assets/svg/${r}.svg`), S = zt(
|
|
1632
1632
|
`assets/svg/${n}.svg`
|
|
1633
1633
|
), E = {
|
|
1634
|
-
img: `${
|
|
1635
|
-
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${
|
|
1636
|
-
},
|
|
1637
|
-
!a &&
|
|
1634
|
+
img: `${c ? "smp-image-interactable" : ""}`,
|
|
1635
|
+
svg: `smp-icon ${i ? `smp-icon-${i}` : ""} ${o ? "smp-icon-rotated" : ""} ${c ? "smp-icon-interactable" : ""} ${u ? "smp-icon-spin" : ""}`
|
|
1636
|
+
}, O = () => {
|
|
1637
|
+
!a && c && f && f();
|
|
1638
1638
|
};
|
|
1639
1639
|
return /* @__PURE__ */ v.jsx(v.Fragment, { children: g ? /* @__PURE__ */ v.jsx(
|
|
1640
1640
|
je,
|
|
1641
1641
|
{
|
|
1642
1642
|
src: r,
|
|
1643
|
-
fallback: () => /* @__PURE__ */ v.jsx(je, { src:
|
|
1643
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: S, wrapper: "svg" }),
|
|
1644
1644
|
width: e || "1rem",
|
|
1645
1645
|
height: t || "1rem",
|
|
1646
1646
|
wrapper: "svg",
|
|
1647
|
-
title:
|
|
1647
|
+
title: l,
|
|
1648
1648
|
role: "application",
|
|
1649
1649
|
fill: s,
|
|
1650
1650
|
"aria-disabled": a,
|
|
1651
1651
|
className: E.svg,
|
|
1652
|
-
onClick:
|
|
1652
|
+
onClick: O
|
|
1653
1653
|
}
|
|
1654
1654
|
) : m ? (
|
|
1655
1655
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
@@ -1659,13 +1659,13 @@ const Ss = (r) => {
|
|
|
1659
1659
|
src: d,
|
|
1660
1660
|
width: e || "16px",
|
|
1661
1661
|
height: t || "auto",
|
|
1662
|
-
alt:
|
|
1663
|
-
onError: () =>
|
|
1664
|
-
onClick:
|
|
1662
|
+
alt: l,
|
|
1663
|
+
onError: () => p(S),
|
|
1664
|
+
onClick: O,
|
|
1665
1665
|
className: E.img,
|
|
1666
|
-
title:
|
|
1667
|
-
onKeyDown: (
|
|
1668
|
-
(
|
|
1666
|
+
title: l,
|
|
1667
|
+
onKeyDown: (w) => {
|
|
1668
|
+
(w.key === "Enter" || w.key === " ") && O();
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
1671
|
)
|
|
@@ -1673,16 +1673,16 @@ const Ss = (r) => {
|
|
|
1673
1673
|
je,
|
|
1674
1674
|
{
|
|
1675
1675
|
src: x,
|
|
1676
|
-
fallback: () => /* @__PURE__ */ v.jsx(je, { src:
|
|
1676
|
+
fallback: () => /* @__PURE__ */ v.jsx(je, { src: S, wrapper: "svg" }),
|
|
1677
1677
|
width: e || "1rem",
|
|
1678
1678
|
height: t || "1rem",
|
|
1679
1679
|
wrapper: "svg",
|
|
1680
|
-
title:
|
|
1680
|
+
title: l,
|
|
1681
1681
|
role: "application",
|
|
1682
1682
|
fill: s,
|
|
1683
1683
|
"aria-disabled": a,
|
|
1684
1684
|
className: E.svg,
|
|
1685
|
-
onClick:
|
|
1685
|
+
onClick: O
|
|
1686
1686
|
}
|
|
1687
1687
|
) });
|
|
1688
1688
|
}
|
|
@@ -1695,41 +1695,41 @@ const Ss = (r) => {
|
|
|
1695
1695
|
placeholder: a,
|
|
1696
1696
|
isEditable: i = !0,
|
|
1697
1697
|
shapeIcon: o,
|
|
1698
|
-
sizing:
|
|
1699
|
-
state:
|
|
1698
|
+
sizing: f,
|
|
1699
|
+
state: c,
|
|
1700
1700
|
variant: u,
|
|
1701
|
-
rotatedShapeIcon:
|
|
1701
|
+
rotatedShapeIcon: l = !1,
|
|
1702
1702
|
onShapeIconClick: d,
|
|
1703
|
-
ref:
|
|
1703
|
+
ref: p,
|
|
1704
1704
|
inputRef: m,
|
|
1705
1705
|
onKeyDown: g,
|
|
1706
1706
|
inputType: x = "text",
|
|
1707
|
-
ariaLabel:
|
|
1707
|
+
ariaLabel: S = "input field",
|
|
1708
1708
|
label: E,
|
|
1709
|
-
helperText:
|
|
1710
|
-
error:
|
|
1709
|
+
helperText: O = !1,
|
|
1710
|
+
error: w,
|
|
1711
1711
|
appearance: b = "base",
|
|
1712
1712
|
fullWidth: k = !1,
|
|
1713
1713
|
_dataComponent: C = "textfield",
|
|
1714
1714
|
width: Y
|
|
1715
1715
|
}) => {
|
|
1716
|
-
const j = bt(), P = `${j}-helper`, D =
|
|
1716
|
+
const j = bt(), P = `${j}-helper`, D = w ? "danger" : c, _ = w || c == "danger" ? "error" : o, U = O || !!w, H = (J) => {
|
|
1717
1717
|
s == null || s(J.target.value);
|
|
1718
|
-
},
|
|
1718
|
+
}, K = {
|
|
1719
1719
|
wrapper: `smp-textfield-wrapper ${k ? "smp-textfield-fullWidth" : ""}`,
|
|
1720
|
-
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${
|
|
1720
|
+
container: `smp-textfield ${r ? "smp-textfield-disabled" : ""} ${a ? "smp-textfield-placeholder" : ""} ${f ? `smp-textfield-${f}` : ""} ${D ? `smp-textfield-${D}` : ""} ${b ? `smp-textfield-${b}` : ""} ${i ? "" : "smp-textfield-readOnly"}`,
|
|
1721
1721
|
input: "smp-textfield-input "
|
|
1722
1722
|
};
|
|
1723
|
-
u && (u != "notSelectable" || i) && (
|
|
1724
|
-
const
|
|
1725
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
1723
|
+
u && (u != "notSelectable" || i) && (K.container += `smp-textfield-variant-${u}`);
|
|
1724
|
+
const z = Y ? { "--smp-textField-width-base": Y } : void 0;
|
|
1725
|
+
return /* @__PURE__ */ v.jsxs("div", { className: K.wrapper, "data-component": C, children: [
|
|
1726
1726
|
E && /* @__PURE__ */ v.jsx($e, { label: E, disabled: r, htmlFor: j }),
|
|
1727
1727
|
/* @__PURE__ */ v.jsxs(
|
|
1728
1728
|
"div",
|
|
1729
1729
|
{
|
|
1730
|
-
className:
|
|
1731
|
-
ref:
|
|
1732
|
-
style:
|
|
1730
|
+
className: K.container,
|
|
1731
|
+
ref: p,
|
|
1732
|
+
style: z,
|
|
1733
1733
|
children: [
|
|
1734
1734
|
t && /* @__PURE__ */ v.jsx(ue, { icon: t, disabled: r }),
|
|
1735
1735
|
/* @__PURE__ */ v.jsx(
|
|
@@ -1741,11 +1741,11 @@ const Ss = (r) => {
|
|
|
1741
1741
|
placeholder: a,
|
|
1742
1742
|
onChange: H,
|
|
1743
1743
|
onBlur: n,
|
|
1744
|
-
className:
|
|
1744
|
+
className: K.input,
|
|
1745
1745
|
disabled: r,
|
|
1746
1746
|
readOnly: !i,
|
|
1747
1747
|
onKeyDown: g,
|
|
1748
|
-
"aria-label":
|
|
1748
|
+
"aria-label": S,
|
|
1749
1749
|
ref: m,
|
|
1750
1750
|
"aria-describedby": U ? P : void 0
|
|
1751
1751
|
}
|
|
@@ -1757,7 +1757,7 @@ const Ss = (r) => {
|
|
|
1757
1757
|
disabled: r,
|
|
1758
1758
|
state: D,
|
|
1759
1759
|
onClick: d,
|
|
1760
|
-
rotated:
|
|
1760
|
+
rotated: l,
|
|
1761
1761
|
isInteractable: i
|
|
1762
1762
|
}
|
|
1763
1763
|
)
|
|
@@ -1767,7 +1767,7 @@ const Ss = (r) => {
|
|
|
1767
1767
|
U && /* @__PURE__ */ v.jsx(
|
|
1768
1768
|
mr,
|
|
1769
1769
|
{
|
|
1770
|
-
helperText:
|
|
1770
|
+
helperText: w,
|
|
1771
1771
|
disabled: r,
|
|
1772
1772
|
state: D,
|
|
1773
1773
|
id: P
|
|
@@ -1781,23 +1781,23 @@ function xr({
|
|
|
1781
1781
|
containerHeight: t,
|
|
1782
1782
|
overscan: n = 5
|
|
1783
1783
|
}) {
|
|
1784
|
-
const [s, a] = Z(0), i = ve(null), o = r.length * e,
|
|
1784
|
+
const [s, a] = Z(0), i = ve(null), o = r.length * e, f = Math.max(0, Math.floor(s / e) - n), c = Math.min(
|
|
1785
1785
|
r.length - 1,
|
|
1786
1786
|
Math.floor((s + t) / e) + n
|
|
1787
1787
|
), u = [];
|
|
1788
|
-
for (let
|
|
1788
|
+
for (let p = f; p <= c; p++)
|
|
1789
1789
|
u.push({
|
|
1790
|
-
item: r[
|
|
1791
|
-
index:
|
|
1792
|
-
offsetTop:
|
|
1790
|
+
item: r[p],
|
|
1791
|
+
index: p,
|
|
1792
|
+
offsetTop: p * e
|
|
1793
1793
|
});
|
|
1794
|
-
const
|
|
1795
|
-
const m =
|
|
1794
|
+
const l = ye((p) => {
|
|
1795
|
+
const m = p.target.scrollTop;
|
|
1796
1796
|
a(m);
|
|
1797
|
-
}, []), d = (
|
|
1797
|
+
}, []), d = (p) => {
|
|
1798
1798
|
if (!i.current) return;
|
|
1799
|
-
const m =
|
|
1800
|
-
m <
|
|
1799
|
+
const m = p * e, g = m + e, x = i.current, S = x.scrollTop, E = S + t;
|
|
1800
|
+
m < S ? x.scrollTop = m : g > E && (x.scrollTop = g - t);
|
|
1801
1801
|
};
|
|
1802
1802
|
return {
|
|
1803
1803
|
virtualItems: u,
|
|
@@ -1809,7 +1809,7 @@ function xr({
|
|
|
1809
1809
|
position: "relative",
|
|
1810
1810
|
willChange: "transform"
|
|
1811
1811
|
},
|
|
1812
|
-
onScroll:
|
|
1812
|
+
onScroll: l
|
|
1813
1813
|
},
|
|
1814
1814
|
innerProps: {
|
|
1815
1815
|
style: {
|
|
@@ -1822,8 +1822,8 @@ function xr({
|
|
|
1822
1822
|
scrollTop: s,
|
|
1823
1823
|
viewportHeight: t,
|
|
1824
1824
|
totalHeight: o,
|
|
1825
|
-
startIndex:
|
|
1826
|
-
endIndex:
|
|
1825
|
+
startIndex: f,
|
|
1826
|
+
endIndex: c
|
|
1827
1827
|
},
|
|
1828
1828
|
scrollToIndex: d
|
|
1829
1829
|
};
|
|
@@ -1839,34 +1839,34 @@ const un = 10, Sr = ({
|
|
|
1839
1839
|
activeIndex: i = [],
|
|
1840
1840
|
// active element
|
|
1841
1841
|
width: o,
|
|
1842
|
-
onClick:
|
|
1843
|
-
onKeyDown:
|
|
1842
|
+
onClick: f,
|
|
1843
|
+
onKeyDown: c
|
|
1844
1844
|
}) => {
|
|
1845
1845
|
var P;
|
|
1846
|
-
const [u,
|
|
1846
|
+
const [u, l] = Z(""), d = 24, [p, m] = Z(
|
|
1847
1847
|
a !== null ? a : -1
|
|
1848
1848
|
), g = s !== void 0 ? s : e.length > un, x = u ? e.filter(
|
|
1849
1849
|
(D) => D.label.toLowerCase().includes(u.toLowerCase())
|
|
1850
|
-
) : e,
|
|
1851
|
-
|
|
1852
|
-
}, { virtualItems: E, containerProps:
|
|
1850
|
+
) : e, S = (D) => {
|
|
1851
|
+
l(D);
|
|
1852
|
+
}, { virtualItems: E, containerProps: O, innerProps: w, scrollToIndex: b } = xr({
|
|
1853
1853
|
items: x,
|
|
1854
1854
|
itemHeight: d,
|
|
1855
1855
|
containerHeight: 200,
|
|
1856
1856
|
overscan: 5
|
|
1857
1857
|
});
|
|
1858
1858
|
oe(() => {
|
|
1859
|
-
a !== null && a !==
|
|
1859
|
+
a !== null && a !== p && m(a);
|
|
1860
1860
|
}, [a]), oe(() => {
|
|
1861
|
-
|
|
1862
|
-
}, [
|
|
1861
|
+
p >= 0 && p < x.length && b(p);
|
|
1862
|
+
}, [p, x]);
|
|
1863
1863
|
const k = (D) => {
|
|
1864
1864
|
if (D.key === "ArrowDown" || D.key === "ArrowUp") {
|
|
1865
1865
|
D.preventDefault();
|
|
1866
|
-
let _ =
|
|
1867
|
-
D.key === "ArrowDown" ? _ =
|
|
1868
|
-
} else D.key === "Enter" ?
|
|
1869
|
-
|
|
1866
|
+
let _ = p;
|
|
1867
|
+
D.key === "ArrowDown" ? _ = p < x.length - 1 ? p + 1 : 0 : D.key === "ArrowUp" && (_ = p > 0 ? p - 1 : x.length - 1), m(_);
|
|
1868
|
+
} else D.key === "Enter" ? p >= 0 && p < x.length && (f == null || f(x[p])) : D.key === "Escape" && (D.preventDefault(), D.stopPropagation());
|
|
1869
|
+
c && c(D);
|
|
1870
1870
|
}, C = (D) => {
|
|
1871
1871
|
k(D);
|
|
1872
1872
|
}, Y = (D) => {
|
|
@@ -1893,21 +1893,21 @@ const un = 10, Sr = ({
|
|
|
1893
1893
|
{
|
|
1894
1894
|
bindValue: u,
|
|
1895
1895
|
placeholder: "Search...",
|
|
1896
|
-
onChange:
|
|
1896
|
+
onChange: S,
|
|
1897
1897
|
onKeyDown: C
|
|
1898
1898
|
}
|
|
1899
1899
|
),
|
|
1900
1900
|
/* @__PURE__ */ v.jsx(
|
|
1901
1901
|
"div",
|
|
1902
1902
|
{
|
|
1903
|
-
...
|
|
1903
|
+
...O,
|
|
1904
1904
|
className: j.container,
|
|
1905
1905
|
tabIndex: 0,
|
|
1906
1906
|
role: "listbox",
|
|
1907
1907
|
"aria-label": "List",
|
|
1908
1908
|
onKeyDown: Y,
|
|
1909
|
-
"aria-activedescendant":
|
|
1910
|
-
children: /* @__PURE__ */ v.jsx("div", { ...
|
|
1909
|
+
"aria-activedescendant": p >= 0 && p < x.length ? (P = x[p]) == null ? void 0 : P.id : void 0,
|
|
1910
|
+
children: /* @__PURE__ */ v.jsx("div", { ...w, className: j.virtualScroll, children: E.map(({ item: D, index: _, offsetTop: U }) => {
|
|
1911
1911
|
const H = i.includes(D.id);
|
|
1912
1912
|
return (
|
|
1913
1913
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -1916,9 +1916,9 @@ const un = 10, Sr = ({
|
|
|
1916
1916
|
{
|
|
1917
1917
|
role: "option",
|
|
1918
1918
|
id: D.id,
|
|
1919
|
-
"aria-selected":
|
|
1919
|
+
"aria-selected": p === _ ? "true" : "false",
|
|
1920
1920
|
tabIndex: -1,
|
|
1921
|
-
className: `${j.listItem} ${
|
|
1921
|
+
className: `${j.listItem} ${p === _ ? "selected-item" : ""}`,
|
|
1922
1922
|
"aria-label": D.id + "-" + D.label,
|
|
1923
1923
|
style: {
|
|
1924
1924
|
height: `${d}px`,
|
|
@@ -1927,7 +1927,7 @@ const un = 10, Sr = ({
|
|
|
1927
1927
|
transform: `translateY(${U}px)`
|
|
1928
1928
|
},
|
|
1929
1929
|
onClick: () => {
|
|
1930
|
-
|
|
1930
|
+
f == null || f(D), m(_);
|
|
1931
1931
|
},
|
|
1932
1932
|
children: [
|
|
1933
1933
|
Xe(D.id, D.label, t),
|
|
@@ -1977,40 +1977,40 @@ const un = 10, Sr = ({
|
|
|
1977
1977
|
minimumChars: a = 3,
|
|
1978
1978
|
isEditable: i = !0,
|
|
1979
1979
|
placeholder: o,
|
|
1980
|
-
fun:
|
|
1981
|
-
_changeOnEnter:
|
|
1980
|
+
fun: f,
|
|
1981
|
+
_changeOnEnter: c = !1,
|
|
1982
1982
|
onChange: u,
|
|
1983
|
-
onOptionsRequest:
|
|
1983
|
+
onOptionsRequest: l,
|
|
1984
1984
|
_multiActiveIndex: d,
|
|
1985
|
-
...
|
|
1985
|
+
...p
|
|
1986
1986
|
}) => {
|
|
1987
|
-
const [m, g] = Z(r), [x,
|
|
1987
|
+
const [m, g] = Z(r), [x, S] = Z(e), [E, O] = Z(!1), [w, b] = Z(t || []), [k, C] = Z(0), [Y, j] = Z([r]), { anchorRef: P, targetRef: D, anchorWidth: _ } = St({
|
|
1988
1988
|
position: "bottom",
|
|
1989
1989
|
enabled: E
|
|
1990
1990
|
});
|
|
1991
|
-
Je(D, () =>
|
|
1991
|
+
Je(D, () => O(!1));
|
|
1992
1992
|
const U = fn(400), H = (W) => {
|
|
1993
|
-
W.length >= a ?
|
|
1994
|
-
const L = await f
|
|
1995
|
-
b(L), C(L.length > 0 ? 0 : -1),
|
|
1996
|
-
}) :
|
|
1997
|
-
}, q = (W) => {
|
|
1998
|
-
l ? (g(""), w("")) : (g(W.id), w(W.label)), u == null || u(W.id, W.label);
|
|
1999
|
-
const L = S.findIndex((p) => p.id === W.id);
|
|
2000
|
-
C(L), j([W.id]), R(!1);
|
|
1993
|
+
W.length >= a ? f && l && U(async () => {
|
|
1994
|
+
const L = await l(f, W);
|
|
1995
|
+
b(L), C(L.length > 0 ? 0 : -1), O(!0);
|
|
1996
|
+
}) : O(!1), g(W), S(e), c || u == null || u(W, e);
|
|
2001
1997
|
}, K = (W) => {
|
|
2002
|
-
|
|
1998
|
+
c ? (g(""), S("")) : (g(W.id), S(W.label)), u == null || u(W.id, W.label);
|
|
1999
|
+
const L = w.findIndex((h) => h.id === W.id);
|
|
2000
|
+
C(L), j([W.id]), O(!1);
|
|
2001
|
+
}, z = (W) => {
|
|
2002
|
+
W.key === "Escape" && (O(!1), C(-1));
|
|
2003
2003
|
}, J = (W) => {
|
|
2004
2004
|
if ((W.key === "ArrowDown" || W.key === "ArrowUp") && (W.preventDefault(), E)) {
|
|
2005
|
-
const L = W.key === "ArrowDown" ? (k + 1) %
|
|
2005
|
+
const L = W.key === "ArrowDown" ? (k + 1) % w.length : (k - 1 + w.length) % w.length;
|
|
2006
2006
|
C(L);
|
|
2007
2007
|
}
|
|
2008
2008
|
switch (W.key) {
|
|
2009
2009
|
case "Enter":
|
|
2010
|
-
k >= 0 && k <
|
|
2010
|
+
k >= 0 && k < w.length ? K(w[k]) : c && (u == null || u(m, ""), O(!1), g(""), S(""));
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "Escape":
|
|
2013
|
-
|
|
2013
|
+
O(!1), C(-1);
|
|
2014
2014
|
break;
|
|
2015
2015
|
}
|
|
2016
2016
|
};
|
|
@@ -2018,7 +2018,7 @@ const un = 10, Sr = ({
|
|
|
2018
2018
|
/* @__PURE__ */ v.jsx(
|
|
2019
2019
|
wr,
|
|
2020
2020
|
{
|
|
2021
|
-
...
|
|
2021
|
+
...p,
|
|
2022
2022
|
bindValue: m,
|
|
2023
2023
|
optionalDisplayValue: x,
|
|
2024
2024
|
displayMode: n,
|
|
@@ -2034,25 +2034,25 @@ const un = 10, Sr = ({
|
|
|
2034
2034
|
E && /* @__PURE__ */ v.jsx(
|
|
2035
2035
|
Sr,
|
|
2036
2036
|
{
|
|
2037
|
-
options:
|
|
2037
|
+
options: w,
|
|
2038
2038
|
displayMode: s,
|
|
2039
|
-
onClick:
|
|
2039
|
+
onClick: K,
|
|
2040
2040
|
ref: D,
|
|
2041
2041
|
selectedIndex: k,
|
|
2042
2042
|
activeIndex: d || Y,
|
|
2043
2043
|
width: _,
|
|
2044
2044
|
showFilter: !1,
|
|
2045
|
-
onKeyDown:
|
|
2045
|
+
onKeyDown: z
|
|
2046
2046
|
}
|
|
2047
2047
|
)
|
|
2048
2048
|
] });
|
|
2049
|
-
},
|
|
2049
|
+
}, Kt = (r) => ({
|
|
2050
2050
|
extraSmall: 12,
|
|
2051
2051
|
small: 14,
|
|
2052
2052
|
base: 18,
|
|
2053
2053
|
large: 20,
|
|
2054
2054
|
extraLarge: 24
|
|
2055
|
-
})[r],
|
|
2055
|
+
})[r], qt = (r) => ({
|
|
2056
2056
|
primary: "onPrimary",
|
|
2057
2057
|
danger: "onDanger",
|
|
2058
2058
|
base: "base"
|
|
@@ -2065,12 +2065,12 @@ const un = 10, Sr = ({
|
|
|
2065
2065
|
sizing: a = "base",
|
|
2066
2066
|
variant: i = "primary",
|
|
2067
2067
|
appearance: o = "raised",
|
|
2068
|
-
showIcon:
|
|
2069
|
-
showText:
|
|
2068
|
+
showIcon: f = !0,
|
|
2069
|
+
showText: c = !0,
|
|
2070
2070
|
fullWidth: u = !1,
|
|
2071
|
-
loading:
|
|
2071
|
+
loading: l = !1,
|
|
2072
2072
|
justify: d = "center",
|
|
2073
|
-
title:
|
|
2073
|
+
title: p,
|
|
2074
2074
|
optionalDisplayValue: m
|
|
2075
2075
|
}) => {
|
|
2076
2076
|
const g = {
|
|
@@ -2084,20 +2084,20 @@ const un = 10, Sr = ({
|
|
|
2084
2084
|
onClick: e,
|
|
2085
2085
|
"aria-label": t,
|
|
2086
2086
|
disabled: s,
|
|
2087
|
-
"aria-busy":
|
|
2088
|
-
title:
|
|
2089
|
-
children:
|
|
2090
|
-
n &&
|
|
2087
|
+
"aria-busy": l,
|
|
2088
|
+
title: p || r || m,
|
|
2089
|
+
children: l ? /* @__PURE__ */ v.jsx(ue, { icon: "spinner", state: qt(i), spin: !0 }) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
2090
|
+
n && f && /* @__PURE__ */ v.jsx(
|
|
2091
2091
|
ue,
|
|
2092
2092
|
{
|
|
2093
2093
|
icon: n,
|
|
2094
2094
|
disabled: s,
|
|
2095
|
-
state:
|
|
2096
|
-
width:
|
|
2097
|
-
height:
|
|
2095
|
+
state: qt(i),
|
|
2096
|
+
width: Kt(a),
|
|
2097
|
+
height: Kt(a)
|
|
2098
2098
|
}
|
|
2099
2099
|
),
|
|
2100
|
-
|
|
2100
|
+
c && m && /* @__PURE__ */ v.jsx("span", { children: m })
|
|
2101
2101
|
] })
|
|
2102
2102
|
}
|
|
2103
2103
|
);
|
|
@@ -2110,26 +2110,26 @@ const un = 10, Sr = ({
|
|
|
2110
2110
|
variant: a,
|
|
2111
2111
|
appearance: i,
|
|
2112
2112
|
showText: o,
|
|
2113
|
-
showIcon:
|
|
2114
|
-
fullWidth:
|
|
2113
|
+
showIcon: f,
|
|
2114
|
+
fullWidth: c,
|
|
2115
2115
|
disabled: u,
|
|
2116
|
-
justify:
|
|
2116
|
+
justify: l,
|
|
2117
2117
|
onClick: d,
|
|
2118
|
-
onOptionsRequest:
|
|
2118
|
+
onOptionsRequest: p
|
|
2119
2119
|
}) => {
|
|
2120
2120
|
const [m, g] = Z(r);
|
|
2121
2121
|
oe(() => {
|
|
2122
|
-
!m &&
|
|
2122
|
+
!m && p && e && p(e, void 0).then((E) => g(E)).catch((E) => {
|
|
2123
2123
|
console.error(
|
|
2124
2124
|
"Errore nel caricamento delle opzioni per ButtonList",
|
|
2125
2125
|
E
|
|
2126
2126
|
);
|
|
2127
2127
|
});
|
|
2128
|
-
}, [m, e,
|
|
2128
|
+
}, [m, e, p]);
|
|
2129
2129
|
const x = {
|
|
2130
2130
|
container: `smp-button-list smp-button-list-${t} smp-justifyContent-${n}`
|
|
2131
|
-
},
|
|
2132
|
-
const
|
|
2131
|
+
}, S = m == null ? void 0 : m.map((E, O) => {
|
|
2132
|
+
const w = {
|
|
2133
2133
|
bindValue: E.id,
|
|
2134
2134
|
optionalDisplayValue: E.label,
|
|
2135
2135
|
fun: E.fun,
|
|
@@ -2137,18 +2137,18 @@ const un = 10, Sr = ({
|
|
|
2137
2137
|
variant: a,
|
|
2138
2138
|
appearance: i,
|
|
2139
2139
|
showText: o,
|
|
2140
|
-
showIcon:
|
|
2141
|
-
fullWidth:
|
|
2140
|
+
showIcon: f,
|
|
2141
|
+
fullWidth: c,
|
|
2142
2142
|
disabled: u,
|
|
2143
2143
|
sizing: s,
|
|
2144
|
-
justify:
|
|
2144
|
+
justify: l,
|
|
2145
2145
|
onClick: () => {
|
|
2146
2146
|
d == null || d(E.id, E.fun);
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
|
-
return /* @__PURE__ */ v.jsx(De, { ...
|
|
2149
|
+
return /* @__PURE__ */ v.jsx(De, { ...w }, `button-${O}`);
|
|
2150
2150
|
});
|
|
2151
|
-
return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children:
|
|
2151
|
+
return /* @__PURE__ */ v.jsx("div", { role: "list", "data-component": "button-list", className: x.container, children: S });
|
|
2152
2152
|
}, pn = ({
|
|
2153
2153
|
bindValue: r,
|
|
2154
2154
|
_dataComponent: e = "checkbox",
|
|
@@ -2158,12 +2158,12 @@ const un = 10, Sr = ({
|
|
|
2158
2158
|
onChange: a,
|
|
2159
2159
|
onBlur: i
|
|
2160
2160
|
}) => {
|
|
2161
|
-
const o = (
|
|
2162
|
-
s && a && a(
|
|
2163
|
-
},
|
|
2161
|
+
const o = (c) => {
|
|
2162
|
+
s && a && a(c.target.checked);
|
|
2163
|
+
}, f = {
|
|
2164
2164
|
wrapper: "smp-checkbox-wrapper"
|
|
2165
2165
|
};
|
|
2166
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
2166
|
+
return /* @__PURE__ */ v.jsxs("div", { className: f.wrapper, "data-component": e, children: [
|
|
2167
2167
|
n && /* @__PURE__ */ v.jsx($e, { label: n, disabled: t }),
|
|
2168
2168
|
/* @__PURE__ */ v.jsx(
|
|
2169
2169
|
"input",
|
|
@@ -2210,30 +2210,30 @@ const un = 10, Sr = ({
|
|
|
2210
2210
|
backgroundColor: a,
|
|
2211
2211
|
isDraggable: i = !1
|
|
2212
2212
|
}) => {
|
|
2213
|
-
const [o,
|
|
2213
|
+
const [o, f] = Z(null), c = {
|
|
2214
2214
|
container: `${["smp-chips-container"]}`,
|
|
2215
2215
|
element: "smp-chips-element"
|
|
2216
|
-
}, u = (
|
|
2217
|
-
n == null || n(r.filter((m, g) => g !==
|
|
2218
|
-
},
|
|
2219
|
-
|
|
2220
|
-
}, d = (
|
|
2221
|
-
if (o === null || o ===
|
|
2216
|
+
}, u = (p) => {
|
|
2217
|
+
n == null || n(r.filter((m, g) => g !== p));
|
|
2218
|
+
}, l = (p) => {
|
|
2219
|
+
f(p);
|
|
2220
|
+
}, d = (p) => {
|
|
2221
|
+
if (o === null || o === p) return;
|
|
2222
2222
|
const m = [...r], [g] = m.splice(o, 1);
|
|
2223
|
-
m.splice(
|
|
2223
|
+
m.splice(p, 0, g), n == null || n(m), f(null);
|
|
2224
2224
|
};
|
|
2225
|
-
return /* @__PURE__ */ v.jsx("div", { className:
|
|
2225
|
+
return /* @__PURE__ */ v.jsx("div", { className: c.container, role: "list", "data-component": "chip", children: r.flatMap((p, m) => {
|
|
2226
2226
|
const g = Xe(
|
|
2227
|
-
|
|
2228
|
-
|
|
2227
|
+
p.bindValue,
|
|
2228
|
+
p.optionalDisplayValue,
|
|
2229
2229
|
t
|
|
2230
2230
|
), x = /* @__PURE__ */ v.jsxs(
|
|
2231
2231
|
"div",
|
|
2232
2232
|
{
|
|
2233
|
-
className:
|
|
2233
|
+
className: c.element,
|
|
2234
2234
|
role: "listitem",
|
|
2235
2235
|
draggable: i,
|
|
2236
|
-
onDragStart: () =>
|
|
2236
|
+
onDragStart: () => l(m),
|
|
2237
2237
|
onDragOver: (E) => i && E.preventDefault(),
|
|
2238
2238
|
onDrop: () => i && d(m),
|
|
2239
2239
|
style: {
|
|
@@ -2254,7 +2254,7 @@ const un = 10, Sr = ({
|
|
|
2254
2254
|
]
|
|
2255
2255
|
},
|
|
2256
2256
|
`chip-${m}`
|
|
2257
|
-
),
|
|
2257
|
+
), S = i && m < r.length - 1 ? /* @__PURE__ */ v.jsx(
|
|
2258
2258
|
ue,
|
|
2259
2259
|
{
|
|
2260
2260
|
icon: "chevron-right",
|
|
@@ -2262,7 +2262,7 @@ const un = 10, Sr = ({
|
|
|
2262
2262
|
},
|
|
2263
2263
|
`separator-${m}`
|
|
2264
2264
|
) : null;
|
|
2265
|
-
return [x,
|
|
2265
|
+
return [x, S].filter(Boolean);
|
|
2266
2266
|
}) });
|
|
2267
2267
|
};
|
|
2268
2268
|
function Tr(r, e) {
|
|
@@ -2276,30 +2276,30 @@ function Tr(r, e) {
|
|
|
2276
2276
|
n.querySelectorAll(
|
|
2277
2277
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2278
2278
|
)
|
|
2279
|
-
).filter((
|
|
2279
|
+
).filter((c) => !c.hasAttribute("disabled") && c.offsetParent !== null) : [];
|
|
2280
2280
|
(() => {
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2281
|
+
const c = s();
|
|
2282
|
+
c.length > 0 && requestAnimationFrame(() => c[0].focus());
|
|
2283
2283
|
})();
|
|
2284
|
-
const i = (
|
|
2285
|
-
if (
|
|
2284
|
+
const i = (c) => {
|
|
2285
|
+
if (c.key === "Escape" || c.key !== "Tab") return;
|
|
2286
2286
|
const u = s();
|
|
2287
2287
|
if (u.length === 0) return;
|
|
2288
|
-
const
|
|
2289
|
-
|
|
2290
|
-
}, o = (
|
|
2291
|
-
if (n && !n.contains(
|
|
2292
|
-
|
|
2288
|
+
const l = u[0], d = u[u.length - 1];
|
|
2289
|
+
c.shiftKey && document.activeElement === l ? (c.preventDefault(), d.focus()) : !c.shiftKey && document.activeElement === d && (c.preventDefault(), l.focus());
|
|
2290
|
+
}, o = (c) => {
|
|
2291
|
+
if (n && !n.contains(c.target)) {
|
|
2292
|
+
c.preventDefault();
|
|
2293
2293
|
const u = s();
|
|
2294
2294
|
u.length > 0 && u[0].focus();
|
|
2295
2295
|
}
|
|
2296
2296
|
};
|
|
2297
2297
|
document.addEventListener("keydown", i), document.addEventListener("mousedown", o);
|
|
2298
|
-
const
|
|
2298
|
+
const f = document.body.style.overflow;
|
|
2299
2299
|
return document.body.style.overflow = "hidden", () => {
|
|
2300
|
-
document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow =
|
|
2301
|
-
var
|
|
2302
|
-
(
|
|
2300
|
+
document.removeEventListener("keydown", i), document.removeEventListener("mousedown", o), document.body.style.overflow = f, t.current && requestAnimationFrame(() => {
|
|
2301
|
+
var c;
|
|
2302
|
+
(c = t.current) == null || c.focus();
|
|
2303
2303
|
});
|
|
2304
2304
|
};
|
|
2305
2305
|
}, [r, e]);
|
|
@@ -2313,25 +2313,25 @@ const mn = ({
|
|
|
2313
2313
|
displayMode: a,
|
|
2314
2314
|
listDisplayMode: i = "Both",
|
|
2315
2315
|
fun: o,
|
|
2316
|
-
onOptionsRequest:
|
|
2317
|
-
multiActiveIndex:
|
|
2316
|
+
onOptionsRequest: f,
|
|
2317
|
+
multiActiveIndex: c,
|
|
2318
2318
|
...u
|
|
2319
2319
|
}) => {
|
|
2320
|
-
const [
|
|
2320
|
+
const [l, d] = Z(!1), [p, m] = Z(t), [g, x] = Z(-1), [S, E] = Z([r]), O = bt(), { anchorRef: w, targetRef: b, anchorWidth: k } = St({
|
|
2321
2321
|
position: "bottom",
|
|
2322
|
-
enabled:
|
|
2322
|
+
enabled: l
|
|
2323
2323
|
});
|
|
2324
|
-
Je(b, () => d(!1)), Tr(
|
|
2324
|
+
Je(b, () => d(!1)), Tr(l, b);
|
|
2325
2325
|
const C = (D) => {
|
|
2326
2326
|
e == null || e(D.id, D.label);
|
|
2327
|
-
const _ =
|
|
2327
|
+
const _ = p.findIndex((U) => U.id === D.id);
|
|
2328
2328
|
x(_), E([D.id]), d(!1);
|
|
2329
2329
|
}, Y = (D) => {
|
|
2330
2330
|
D.key === "Escape" && (d(!1), x(-1));
|
|
2331
2331
|
}, j = (D) => {
|
|
2332
2332
|
(D.key === "ArrowDown" || D.key === "ArrowUp") && (D.preventDefault(), P());
|
|
2333
2333
|
}, P = () => {
|
|
2334
|
-
o &&
|
|
2334
|
+
o && f && f(o, void 0).then((D) => {
|
|
2335
2335
|
m(D), x(D.length > 0 ? 0 : -1), d(!0);
|
|
2336
2336
|
});
|
|
2337
2337
|
};
|
|
@@ -2339,9 +2339,9 @@ const mn = ({
|
|
|
2339
2339
|
"div",
|
|
2340
2340
|
{
|
|
2341
2341
|
role: "combobox",
|
|
2342
|
-
"aria-expanded":
|
|
2343
|
-
"aria-controls":
|
|
2344
|
-
"aria-owns":
|
|
2342
|
+
"aria-expanded": l,
|
|
2343
|
+
"aria-controls": O,
|
|
2344
|
+
"aria-owns": O,
|
|
2345
2345
|
"data-component": "combobox",
|
|
2346
2346
|
children: [
|
|
2347
2347
|
/* @__PURE__ */ v.jsx(
|
|
@@ -2354,22 +2354,22 @@ const mn = ({
|
|
|
2354
2354
|
onShapeIconClick: P,
|
|
2355
2355
|
onKeyDown: j,
|
|
2356
2356
|
shapeIcon: "arrow_drop_down",
|
|
2357
|
-
rotatedShapeIcon:
|
|
2357
|
+
rotatedShapeIcon: l,
|
|
2358
2358
|
isEditable: s,
|
|
2359
|
-
ref:
|
|
2359
|
+
ref: w,
|
|
2360
2360
|
"aria-autocomplete": "list",
|
|
2361
2361
|
variant: "notSelectable"
|
|
2362
2362
|
}
|
|
2363
2363
|
),
|
|
2364
|
-
|
|
2364
|
+
l && /* @__PURE__ */ v.jsx(
|
|
2365
2365
|
Sr,
|
|
2366
2366
|
{
|
|
2367
|
-
id:
|
|
2368
|
-
options:
|
|
2367
|
+
id: O,
|
|
2368
|
+
options: p,
|
|
2369
2369
|
displayMode: i,
|
|
2370
2370
|
ref: b,
|
|
2371
2371
|
selectedIndex: g,
|
|
2372
|
-
activeIndex:
|
|
2372
|
+
activeIndex: c || S,
|
|
2373
2373
|
width: k,
|
|
2374
2374
|
onClick: C,
|
|
2375
2375
|
onKeyDown: Y
|
|
@@ -2476,11 +2476,11 @@ const En = [" ", ",", "?", "!", ";"], Tn = new wn(20), On = (r, e, t) => {
|
|
|
2476
2476
|
if (!s || typeof s != "object")
|
|
2477
2477
|
return;
|
|
2478
2478
|
let i, o = "";
|
|
2479
|
-
for (let
|
|
2480
|
-
if (
|
|
2481
|
-
if (["string", "number", "boolean"].indexOf(typeof i) > -1 &&
|
|
2479
|
+
for (let f = a; f < n.length; ++f)
|
|
2480
|
+
if (f !== a && (o += t), o += n[f], i = s[o], i !== void 0) {
|
|
2481
|
+
if (["string", "number", "boolean"].indexOf(typeof i) > -1 && f < n.length - 1)
|
|
2482
2482
|
continue;
|
|
2483
|
-
a +=
|
|
2483
|
+
a += f - a + 1;
|
|
2484
2484
|
break;
|
|
2485
2485
|
}
|
|
2486
2486
|
s = i;
|
|
@@ -2580,12 +2580,12 @@ class er extends rt {
|
|
|
2580
2580
|
t > -1 && this.options.ns.splice(t, 1);
|
|
2581
2581
|
}
|
|
2582
2582
|
getResource(e, t, n, s = {}) {
|
|
2583
|
-
var
|
|
2583
|
+
var c, u;
|
|
2584
2584
|
const a = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, i = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
2585
2585
|
let o;
|
|
2586
2586
|
e.indexOf(".") > -1 ? o = e.split(".") : (o = [e, t], n && (Array.isArray(n) ? o.push(...n) : G(n) && a ? o.push(...n.split(a)) : o.push(n)));
|
|
2587
|
-
const
|
|
2588
|
-
return !
|
|
2587
|
+
const f = Qe(this.data, o);
|
|
2588
|
+
return !f && !t && !n && e.indexOf(".") > -1 && (e = o[0], t = o[1], n = o.slice(2).join(".")), f || !i || !G(n) ? f : yt((u = (c = this.data) == null ? void 0 : c[e]) == null ? void 0 : u[t], n, a);
|
|
2589
2589
|
}
|
|
2590
2590
|
addResource(e, t, n, s, a = {
|
|
2591
2591
|
silent: !1
|
|
@@ -2609,11 +2609,11 @@ class er extends rt {
|
|
|
2609
2609
|
}) {
|
|
2610
2610
|
let o = [e, t];
|
|
2611
2611
|
e.indexOf(".") > -1 && (o = e.split("."), s = n, n = t, t = o[1]), this.addNamespaces(t);
|
|
2612
|
-
let
|
|
2613
|
-
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(
|
|
2614
|
-
...
|
|
2612
|
+
let f = Qe(this.data, o) || {};
|
|
2613
|
+
i.skipCopy || (n = JSON.parse(JSON.stringify(n))), s ? Or(f, n, a) : f = {
|
|
2614
|
+
...f,
|
|
2615
2615
|
...n
|
|
2616
|
-
}, Qt(this.data, o,
|
|
2616
|
+
}, Qt(this.data, o, f), i.silent || this.emit("added", e, t, n);
|
|
2617
2617
|
}
|
|
2618
2618
|
removeResourceBundle(e, t) {
|
|
2619
2619
|
this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
|
|
@@ -2672,14 +2672,14 @@ class tt extends rt {
|
|
|
2672
2672
|
let a = t.ns || this.options.defaultNS || [];
|
|
2673
2673
|
const i = n && e.indexOf(n) > -1, o = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !On(e, n, s);
|
|
2674
2674
|
if (i && !o) {
|
|
2675
|
-
const
|
|
2676
|
-
if (
|
|
2675
|
+
const f = e.match(this.interpolator.nestingRegexp);
|
|
2676
|
+
if (f && f.length > 0)
|
|
2677
2677
|
return {
|
|
2678
2678
|
key: e,
|
|
2679
2679
|
namespaces: G(a) ? [a] : a
|
|
2680
2680
|
};
|
|
2681
|
-
const
|
|
2682
|
-
(n !== s || n === s && this.options.ns.indexOf(
|
|
2681
|
+
const c = e.split(n);
|
|
2682
|
+
(n !== s || n === s && this.options.ns.indexOf(c[0]) > -1) && (a = c.shift()), e = c.join(s);
|
|
2683
2683
|
}
|
|
2684
2684
|
return {
|
|
2685
2685
|
key: e,
|
|
@@ -2696,70 +2696,70 @@ class tt extends rt {
|
|
|
2696
2696
|
Array.isArray(e) || (e = [String(e)]);
|
|
2697
2697
|
const a = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
|
|
2698
2698
|
key: o,
|
|
2699
|
-
namespaces:
|
|
2700
|
-
} = this.extractFromKey(e[e.length - 1], s),
|
|
2699
|
+
namespaces: f
|
|
2700
|
+
} = this.extractFromKey(e[e.length - 1], s), c = f[f.length - 1];
|
|
2701
2701
|
let u = s.nsSeparator !== void 0 ? s.nsSeparator : this.options.nsSeparator;
|
|
2702
2702
|
u === void 0 && (u = ":");
|
|
2703
|
-
const
|
|
2704
|
-
if ((
|
|
2703
|
+
const l = s.lng || this.language, d = s.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
2704
|
+
if ((l == null ? void 0 : l.toLowerCase()) === "cimode")
|
|
2705
2705
|
return d ? a ? {
|
|
2706
|
-
res: `${
|
|
2706
|
+
res: `${c}${u}${o}`,
|
|
2707
2707
|
usedKey: o,
|
|
2708
2708
|
exactUsedKey: o,
|
|
2709
|
-
usedLng:
|
|
2710
|
-
usedNS:
|
|
2709
|
+
usedLng: l,
|
|
2710
|
+
usedNS: c,
|
|
2711
2711
|
usedParams: this.getUsedParamsDetails(s)
|
|
2712
|
-
} : `${
|
|
2712
|
+
} : `${c}${u}${o}` : a ? {
|
|
2713
2713
|
res: o,
|
|
2714
2714
|
usedKey: o,
|
|
2715
2715
|
exactUsedKey: o,
|
|
2716
|
-
usedLng:
|
|
2717
|
-
usedNS:
|
|
2716
|
+
usedLng: l,
|
|
2717
|
+
usedNS: c,
|
|
2718
2718
|
usedParams: this.getUsedParamsDetails(s)
|
|
2719
2719
|
} : o;
|
|
2720
|
-
const
|
|
2721
|
-
let m =
|
|
2722
|
-
const g = (
|
|
2720
|
+
const p = this.resolve(e, s);
|
|
2721
|
+
let m = p == null ? void 0 : p.res;
|
|
2722
|
+
const g = (p == null ? void 0 : p.usedKey) || o, x = (p == null ? void 0 : p.exactUsedKey) || o, S = ["[object Number]", "[object Function]", "[object RegExp]"], E = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, O = !this.i18nFormat || this.i18nFormat.handleAsObject, w = s.count !== void 0 && !G(s.count), b = tt.hasDefaultValue(s), k = w ? this.pluralResolver.getSuffix(l, s.count, s) : "", C = s.ordinal && w ? this.pluralResolver.getSuffix(l, s.count, {
|
|
2723
2723
|
ordinal: !1
|
|
2724
|
-
}) : "", Y =
|
|
2724
|
+
}) : "", Y = w && !s.ordinal && s.count === 0, j = Y && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${k}`] || s[`defaultValue${C}`] || s.defaultValue;
|
|
2725
2725
|
let P = m;
|
|
2726
|
-
|
|
2726
|
+
O && !m && b && (P = j);
|
|
2727
2727
|
const D = rr(P), _ = Object.prototype.toString.apply(P);
|
|
2728
|
-
if (
|
|
2728
|
+
if (O && P && D && S.indexOf(_) < 0 && !(G(E) && Array.isArray(P))) {
|
|
2729
2729
|
if (!s.returnObjects && !this.options.returnObjects) {
|
|
2730
2730
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
2731
2731
|
const U = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, P, {
|
|
2732
2732
|
...s,
|
|
2733
|
-
ns:
|
|
2733
|
+
ns: f
|
|
2734
2734
|
}) : `key '${o} (${this.language})' returned an object instead of string.`;
|
|
2735
|
-
return a ? (
|
|
2735
|
+
return a ? (p.res = U, p.usedParams = this.getUsedParamsDetails(s), p) : U;
|
|
2736
2736
|
}
|
|
2737
2737
|
if (i) {
|
|
2738
|
-
const U = Array.isArray(P), H = U ? [] : {},
|
|
2739
|
-
for (const
|
|
2740
|
-
if (Object.prototype.hasOwnProperty.call(P,
|
|
2741
|
-
const J = `${
|
|
2742
|
-
b && !m ? H[
|
|
2738
|
+
const U = Array.isArray(P), H = U ? [] : {}, K = U ? x : g;
|
|
2739
|
+
for (const z in P)
|
|
2740
|
+
if (Object.prototype.hasOwnProperty.call(P, z)) {
|
|
2741
|
+
const J = `${K}${i}${z}`;
|
|
2742
|
+
b && !m ? H[z] = this.translate(J, {
|
|
2743
2743
|
...s,
|
|
2744
|
-
defaultValue: rr(j) ? j[
|
|
2744
|
+
defaultValue: rr(j) ? j[z] : void 0,
|
|
2745
2745
|
joinArrays: !1,
|
|
2746
|
-
ns:
|
|
2747
|
-
}) : H[
|
|
2746
|
+
ns: f
|
|
2747
|
+
}) : H[z] = this.translate(J, {
|
|
2748
2748
|
...s,
|
|
2749
2749
|
joinArrays: !1,
|
|
2750
|
-
ns:
|
|
2751
|
-
}), H[
|
|
2750
|
+
ns: f
|
|
2751
|
+
}), H[z] === J && (H[z] = P[z]);
|
|
2752
2752
|
}
|
|
2753
2753
|
m = H;
|
|
2754
2754
|
}
|
|
2755
|
-
} else if (
|
|
2755
|
+
} else if (O && G(E) && Array.isArray(m))
|
|
2756
2756
|
m = m.join(E), m && (m = this.extendTranslation(m, e, s, n));
|
|
2757
2757
|
else {
|
|
2758
2758
|
let U = !1, H = !1;
|
|
2759
2759
|
!this.isValidLookup(m) && b && (U = !0, m = j), this.isValidLookup(m) || (H = !0, m = o);
|
|
2760
|
-
const
|
|
2760
|
+
const z = (s.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : m, J = b && j !== m && this.options.updateMissing;
|
|
2761
2761
|
if (H || U || J) {
|
|
2762
|
-
if (this.logger.log(J ? "updateKey" : "missingKey",
|
|
2762
|
+
if (this.logger.log(J ? "updateKey" : "missingKey", l, c, o, J ? j : m), i) {
|
|
2763
2763
|
const y = this.resolve(o, {
|
|
2764
2764
|
...s,
|
|
2765
2765
|
keySeparator: !1
|
|
@@ -2772,25 +2772,25 @@ class tt extends rt {
|
|
|
2772
2772
|
for (let y = 0; y < L.length; y++)
|
|
2773
2773
|
W.push(L[y]);
|
|
2774
2774
|
else this.options.saveMissingTo === "all" ? W = this.languageUtils.toResolveHierarchy(s.lng || this.language) : W.push(s.lng || this.language);
|
|
2775
|
-
const
|
|
2775
|
+
const h = (y, T, $) => {
|
|
2776
2776
|
var A;
|
|
2777
|
-
const
|
|
2778
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(y,
|
|
2777
|
+
const R = b && $ !== m ? $ : z;
|
|
2778
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(y, c, T, R, J, s) : (A = this.backendConnector) != null && A.saveMissing && this.backendConnector.saveMissing(y, c, T, R, J, s), this.emit("missingKey", y, c, T, m);
|
|
2779
2779
|
};
|
|
2780
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
|
2780
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && w ? W.forEach((y) => {
|
|
2781
2781
|
const T = this.pluralResolver.getSuffixes(y, s);
|
|
2782
2782
|
Y && s[`defaultValue${this.options.pluralSeparator}zero`] && T.indexOf(`${this.options.pluralSeparator}zero`) < 0 && T.push(`${this.options.pluralSeparator}zero`), T.forEach(($) => {
|
|
2783
|
-
|
|
2783
|
+
h([y], o + $, s[`defaultValue${$}`] || j);
|
|
2784
2784
|
});
|
|
2785
|
-
}) :
|
|
2785
|
+
}) : h(W, o, j));
|
|
2786
2786
|
}
|
|
2787
|
-
m = this.extendTranslation(m, e, s,
|
|
2787
|
+
m = this.extendTranslation(m, e, s, p, n), H && m === o && this.options.appendNamespaceToMissingKey && (m = `${c}${u}${o}`), (H || U) && this.options.parseMissingKeyHandler && (m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${c}${u}${o}` : o, U ? m : void 0, s));
|
|
2788
2788
|
}
|
|
2789
|
-
return a ? (
|
|
2789
|
+
return a ? (p.res = m, p.usedParams = this.getUsedParamsDetails(s), p) : m;
|
|
2790
2790
|
}
|
|
2791
2791
|
extendTranslation(e, t, n, s, a) {
|
|
2792
|
-
var
|
|
2793
|
-
if ((
|
|
2792
|
+
var f, c;
|
|
2793
|
+
if ((f = this.i18nFormat) != null && f.parse)
|
|
2794
2794
|
e = this.i18nFormat.parse(e, {
|
|
2795
2795
|
...this.options.interpolation.defaultVariables,
|
|
2796
2796
|
...n
|
|
@@ -2805,21 +2805,21 @@ class tt extends rt {
|
|
|
2805
2805
|
...n.interpolation
|
|
2806
2806
|
}
|
|
2807
2807
|
});
|
|
2808
|
-
const u = G(e) && (((
|
|
2809
|
-
let
|
|
2808
|
+
const u = G(e) && (((c = n == null ? void 0 : n.interpolation) == null ? void 0 : c.skipOnVariables) !== void 0 ? n.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
2809
|
+
let l;
|
|
2810
2810
|
if (u) {
|
|
2811
|
-
const
|
|
2812
|
-
|
|
2811
|
+
const p = e.match(this.interpolator.nestingRegexp);
|
|
2812
|
+
l = p && p.length;
|
|
2813
2813
|
}
|
|
2814
2814
|
let d = n.replace && !G(n.replace) ? n.replace : n;
|
|
2815
2815
|
if (this.options.interpolation.defaultVariables && (d = {
|
|
2816
2816
|
...this.options.interpolation.defaultVariables,
|
|
2817
2817
|
...d
|
|
2818
2818
|
}), e = this.interpolator.interpolate(e, d, n.lng || this.language || s.usedLng, n), u) {
|
|
2819
|
-
const
|
|
2820
|
-
|
|
2819
|
+
const p = e.match(this.interpolator.nestingRegexp), m = p && p.length;
|
|
2820
|
+
l < m && (n.nest = !1);
|
|
2821
2821
|
}
|
|
2822
|
-
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...
|
|
2822
|
+
!n.lng && s && s.res && (n.lng = this.language || s.usedLng), n.nest !== !1 && (e = this.interpolator.nest(e, (...p) => (a == null ? void 0 : a[0]) === p[0] && !n.context ? (this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${t[0]}`), null) : this.translate(...p, t), n)), n.interpolation && this.interpolator.reset();
|
|
2823
2823
|
}
|
|
2824
2824
|
const i = n.postProcess || this.options.postProcess, o = G(i) ? [i] : i;
|
|
2825
2825
|
return e != null && (o != null && o.length) && n.applyPostProcessor !== !1 && (e = Rr.handle(o, e, t, this.options && this.options.postProcessPassResolved ? {
|
|
@@ -2832,34 +2832,34 @@ class tt extends rt {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
resolve(e, t = {}) {
|
|
2834
2834
|
let n, s, a, i, o;
|
|
2835
|
-
return G(e) && (e = [e]), e.forEach((
|
|
2835
|
+
return G(e) && (e = [e]), e.forEach((f) => {
|
|
2836
2836
|
if (this.isValidLookup(n)) return;
|
|
2837
|
-
const
|
|
2837
|
+
const c = this.extractFromKey(f, t), u = c.key;
|
|
2838
2838
|
s = u;
|
|
2839
|
-
let
|
|
2840
|
-
this.options.fallbackNS && (
|
|
2841
|
-
const d = t.count !== void 0 && !G(t.count),
|
|
2842
|
-
|
|
2843
|
-
var
|
|
2844
|
-
this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((
|
|
2839
|
+
let l = c.namespaces;
|
|
2840
|
+
this.options.fallbackNS && (l = l.concat(this.options.fallbackNS));
|
|
2841
|
+
const d = t.count !== void 0 && !G(t.count), p = d && !t.ordinal && t.count === 0, m = t.context !== void 0 && (G(t.context) || typeof t.context == "number") && t.context !== "", g = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
|
|
2842
|
+
l.forEach((x) => {
|
|
2843
|
+
var S, E;
|
|
2844
|
+
this.isValidLookup(n) || (o = x, !tr[`${g[0]}-${x}`] && ((S = this.utils) != null && S.hasLoadedNamespace) && !((E = this.utils) != null && E.hasLoadedNamespace(o)) && (tr[`${g[0]}-${x}`] = !0, this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), g.forEach((O) => {
|
|
2845
2845
|
var k;
|
|
2846
2846
|
if (this.isValidLookup(n)) return;
|
|
2847
|
-
i =
|
|
2848
|
-
const
|
|
2847
|
+
i = O;
|
|
2848
|
+
const w = [u];
|
|
2849
2849
|
if ((k = this.i18nFormat) != null && k.addLookupKeys)
|
|
2850
|
-
this.i18nFormat.addLookupKeys(
|
|
2850
|
+
this.i18nFormat.addLookupKeys(w, u, O, x, t);
|
|
2851
2851
|
else {
|
|
2852
2852
|
let C;
|
|
2853
|
-
d && (C = this.pluralResolver.getSuffix(
|
|
2853
|
+
d && (C = this.pluralResolver.getSuffix(O, t.count, t));
|
|
2854
2854
|
const Y = `${this.options.pluralSeparator}zero`, j = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2855
|
-
if (d && (
|
|
2855
|
+
if (d && (w.push(u + C), t.ordinal && C.indexOf(j) === 0 && w.push(u + C.replace(j, this.options.pluralSeparator)), p && w.push(u + Y)), m) {
|
|
2856
2856
|
const P = `${u}${this.options.contextSeparator}${t.context}`;
|
|
2857
|
-
|
|
2857
|
+
w.push(P), d && (w.push(P + C), t.ordinal && C.indexOf(j) === 0 && w.push(P + C.replace(j, this.options.pluralSeparator)), p && w.push(P + Y));
|
|
2858
2858
|
}
|
|
2859
2859
|
}
|
|
2860
2860
|
let b;
|
|
2861
|
-
for (; b =
|
|
2862
|
-
this.isValidLookup(n) || (a = b, n = this.getResource(
|
|
2861
|
+
for (; b = w.pop(); )
|
|
2862
|
+
this.isValidLookup(n) || (a = b, n = this.getResource(O, x, b, t));
|
|
2863
2863
|
}));
|
|
2864
2864
|
});
|
|
2865
2865
|
}), {
|
|
@@ -3003,8 +3003,8 @@ class jn {
|
|
|
3003
3003
|
if (!Intl)
|
|
3004
3004
|
return this.logger.error("No Intl support, please use an Intl polyfill!"), ar;
|
|
3005
3005
|
if (!e.match(/-|_/)) return ar;
|
|
3006
|
-
const
|
|
3007
|
-
i = this.getRule(
|
|
3006
|
+
const f = this.languageUtils.getLanguagePartFromCode(e);
|
|
3007
|
+
i = this.getRule(f, t);
|
|
3008
3008
|
}
|
|
3009
3009
|
return this.pluralRulesCache[a] = i, i;
|
|
3010
3010
|
}
|
|
@@ -3044,19 +3044,19 @@ class Dn {
|
|
|
3044
3044
|
prefix: a,
|
|
3045
3045
|
prefixEscaped: i,
|
|
3046
3046
|
suffix: o,
|
|
3047
|
-
suffixEscaped:
|
|
3048
|
-
formatSeparator:
|
|
3047
|
+
suffixEscaped: f,
|
|
3048
|
+
formatSeparator: c,
|
|
3049
3049
|
unescapeSuffix: u,
|
|
3050
|
-
unescapePrefix:
|
|
3050
|
+
unescapePrefix: l,
|
|
3051
3051
|
nestingPrefix: d,
|
|
3052
|
-
nestingPrefixEscaped:
|
|
3052
|
+
nestingPrefixEscaped: p,
|
|
3053
3053
|
nestingSuffix: m,
|
|
3054
3054
|
nestingSuffixEscaped: g,
|
|
3055
3055
|
nestingOptionsSeparator: x,
|
|
3056
|
-
maxReplaces:
|
|
3056
|
+
maxReplaces: S,
|
|
3057
3057
|
alwaysFormat: E
|
|
3058
3058
|
} = e.interpolation;
|
|
3059
|
-
this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) :
|
|
3059
|
+
this.escape = t !== void 0 ? t : Sn, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = a ? Oe(a) : i || "{{", this.suffix = o ? Oe(o) : f || "}}", this.formatSeparator = c || ",", this.unescapePrefix = u ? "" : l || "-", this.unescapeSuffix = this.unescapePrefix ? "" : u || "", this.nestingPrefix = d ? Oe(d) : p || Oe("$t("), this.nestingSuffix = m ? Oe(m) : g || Oe(")"), this.nestingOptionsSeparator = x || ",", this.maxReplaces = S || 1e3, this.alwaysFormat = E !== void 0 ? E : !1, this.resetRegExp();
|
|
3060
3060
|
}
|
|
3061
3061
|
reset() {
|
|
3062
3062
|
this.options && this.init(this.options);
|
|
@@ -3066,26 +3066,26 @@ class Dn {
|
|
|
3066
3066
|
this.regexp = e(this.regexp, `${this.prefix}(.+?)${this.suffix}`), this.regexpUnescape = e(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`), this.nestingRegexp = e(this.nestingRegexp, `${this.nestingPrefix}(.+?)${this.nestingSuffix}`);
|
|
3067
3067
|
}
|
|
3068
3068
|
interpolate(e, t, n, s) {
|
|
3069
|
-
var
|
|
3069
|
+
var p;
|
|
3070
3070
|
let a, i, o;
|
|
3071
|
-
const
|
|
3071
|
+
const f = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (m) => {
|
|
3072
3072
|
if (m.indexOf(this.formatSeparator) < 0) {
|
|
3073
|
-
const E = ir(t,
|
|
3073
|
+
const E = ir(t, f, m, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
3074
3074
|
return this.alwaysFormat ? this.format(E, void 0, n, {
|
|
3075
3075
|
...s,
|
|
3076
3076
|
...t,
|
|
3077
3077
|
interpolationkey: m
|
|
3078
3078
|
}) : E;
|
|
3079
3079
|
}
|
|
3080
|
-
const g = m.split(this.formatSeparator), x = g.shift().trim(),
|
|
3081
|
-
return this.format(ir(t,
|
|
3080
|
+
const g = m.split(this.formatSeparator), x = g.shift().trim(), S = g.join(this.formatSeparator).trim();
|
|
3081
|
+
return this.format(ir(t, f, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, n, {
|
|
3082
3082
|
...s,
|
|
3083
3083
|
...t,
|
|
3084
3084
|
interpolationkey: x
|
|
3085
3085
|
});
|
|
3086
3086
|
};
|
|
3087
3087
|
this.resetRegExp();
|
|
3088
|
-
const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler,
|
|
3088
|
+
const u = (s == null ? void 0 : s.missingInterpolationHandler) || this.options.missingInterpolationHandler, l = ((p = s == null ? void 0 : s.interpolation) == null ? void 0 : p.skipOnVariables) !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
3089
3089
|
return [{
|
|
3090
3090
|
regex: this.regexpUnescape,
|
|
3091
3091
|
safeValue: (m) => dt(m)
|
|
@@ -3095,56 +3095,56 @@ class Dn {
|
|
|
3095
3095
|
}].forEach((m) => {
|
|
3096
3096
|
for (o = 0; a = m.regex.exec(e); ) {
|
|
3097
3097
|
const g = a[1].trim();
|
|
3098
|
-
if (i =
|
|
3098
|
+
if (i = c(g), i === void 0)
|
|
3099
3099
|
if (typeof u == "function") {
|
|
3100
|
-
const
|
|
3101
|
-
i = G(
|
|
3100
|
+
const S = u(e, a, s);
|
|
3101
|
+
i = G(S) ? S : "";
|
|
3102
3102
|
} else if (s && Object.prototype.hasOwnProperty.call(s, g))
|
|
3103
3103
|
i = "";
|
|
3104
|
-
else if (
|
|
3104
|
+
else if (l) {
|
|
3105
3105
|
i = a[0];
|
|
3106
3106
|
continue;
|
|
3107
3107
|
} else
|
|
3108
3108
|
this.logger.warn(`missed to pass in variable ${g} for interpolating ${e}`), i = "";
|
|
3109
3109
|
else !G(i) && !this.useRawValueToEscape && (i = Jt(i));
|
|
3110
3110
|
const x = m.safeValue(i);
|
|
3111
|
-
if (e = e.replace(a[0], x),
|
|
3111
|
+
if (e = e.replace(a[0], x), l ? (m.regex.lastIndex += i.length, m.regex.lastIndex -= a[0].length) : m.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
3112
3112
|
break;
|
|
3113
3113
|
}
|
|
3114
3114
|
}), e;
|
|
3115
3115
|
}
|
|
3116
3116
|
nest(e, t, n = {}) {
|
|
3117
3117
|
let s, a, i;
|
|
3118
|
-
const o = (
|
|
3118
|
+
const o = (f, c) => {
|
|
3119
3119
|
const u = this.nestingOptionsSeparator;
|
|
3120
|
-
if (
|
|
3121
|
-
const
|
|
3122
|
-
let d = `{${
|
|
3123
|
-
|
|
3124
|
-
const
|
|
3125
|
-
(((
|
|
3120
|
+
if (f.indexOf(u) < 0) return f;
|
|
3121
|
+
const l = f.split(new RegExp(`${u}[ ]*{`));
|
|
3122
|
+
let d = `{${l[1]}`;
|
|
3123
|
+
f = l[0], d = this.interpolate(d, i);
|
|
3124
|
+
const p = d.match(/'/g), m = d.match(/"/g);
|
|
3125
|
+
(((p == null ? void 0 : p.length) ?? 0) % 2 === 0 && !m || m.length % 2 !== 0) && (d = d.replace(/'/g, '"'));
|
|
3126
3126
|
try {
|
|
3127
|
-
i = JSON.parse(d),
|
|
3128
|
-
...
|
|
3127
|
+
i = JSON.parse(d), c && (i = {
|
|
3128
|
+
...c,
|
|
3129
3129
|
...i
|
|
3130
3130
|
});
|
|
3131
3131
|
} catch (g) {
|
|
3132
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
|
3132
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${f}`, g), `${f}${u}${d}`;
|
|
3133
3133
|
}
|
|
3134
|
-
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue,
|
|
3134
|
+
return i.defaultValue && i.defaultValue.indexOf(this.prefix) > -1 && delete i.defaultValue, f;
|
|
3135
3135
|
};
|
|
3136
3136
|
for (; s = this.nestingRegexp.exec(e); ) {
|
|
3137
|
-
let
|
|
3137
|
+
let f = [];
|
|
3138
3138
|
i = {
|
|
3139
3139
|
...n
|
|
3140
3140
|
}, i = i.replace && !G(i.replace) ? i.replace : i, i.applyPostProcessor = !1, delete i.defaultValue;
|
|
3141
|
-
let
|
|
3141
|
+
let c = !1;
|
|
3142
3142
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
|
3143
|
-
const u = s[1].split(this.formatSeparator).map((
|
|
3144
|
-
s[1] = u.shift(),
|
|
3143
|
+
const u = s[1].split(this.formatSeparator).map((l) => l.trim());
|
|
3144
|
+
s[1] = u.shift(), f = u, c = !0;
|
|
3145
3145
|
}
|
|
3146
3146
|
if (a = t(o.call(this, s[1].trim(), i), i), a && s[0] === e && !G(a)) return a;
|
|
3147
|
-
G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""),
|
|
3147
|
+
G(a) || (a = Jt(a)), a || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), a = ""), c && (a = f.reduce((u, l) => this.format(u, l, n.lng, {
|
|
3148
3148
|
...n,
|
|
3149
3149
|
interpolationkey: s[1].trim()
|
|
3150
3150
|
}), a.trim())), e = e.replace(s[0], a), this.regexp.lastIndex = 0;
|
|
@@ -3161,8 +3161,8 @@ const $n = (r) => {
|
|
|
3161
3161
|
const s = n[1].substring(0, n[1].length - 1);
|
|
3162
3162
|
e === "currency" && s.indexOf(":") < 0 ? t.currency || (t.currency = s.trim()) : e === "relativetime" && s.indexOf(":") < 0 ? t.range || (t.range = s.trim()) : s.split(";").forEach((i) => {
|
|
3163
3163
|
if (i) {
|
|
3164
|
-
const [o, ...
|
|
3165
|
-
t[u] || (t[u] =
|
|
3164
|
+
const [o, ...f] = i.split(":"), c = f.join(":").trim().replace(/^'+|'+$/g, ""), u = o.trim();
|
|
3165
|
+
t[u] || (t[u] = c), c === "false" && (t[u] = !1), c === "true" && (t[u] = !0), isNaN(c) || (t[u] = parseInt(c, 10));
|
|
3166
3166
|
}
|
|
3167
3167
|
});
|
|
3168
3168
|
}
|
|
@@ -3235,30 +3235,30 @@ class Pn {
|
|
|
3235
3235
|
format(e, t, n, s = {}) {
|
|
3236
3236
|
const a = t.split(this.formatSeparator);
|
|
3237
3237
|
if (a.length > 1 && a[0].indexOf("(") > 1 && a[0].indexOf(")") < 0 && a.find((o) => o.indexOf(")") > -1)) {
|
|
3238
|
-
const o = a.findIndex((
|
|
3238
|
+
const o = a.findIndex((f) => f.indexOf(")") > -1);
|
|
3239
3239
|
a[0] = [a[0], ...a.splice(1, o)].join(this.formatSeparator);
|
|
3240
3240
|
}
|
|
3241
|
-
return a.reduce((o,
|
|
3242
|
-
var
|
|
3241
|
+
return a.reduce((o, f) => {
|
|
3242
|
+
var l;
|
|
3243
3243
|
const {
|
|
3244
|
-
formatName:
|
|
3244
|
+
formatName: c,
|
|
3245
3245
|
formatOptions: u
|
|
3246
|
-
} = $n(
|
|
3247
|
-
if (this.formats[
|
|
3246
|
+
} = $n(f);
|
|
3247
|
+
if (this.formats[c]) {
|
|
3248
3248
|
let d = o;
|
|
3249
3249
|
try {
|
|
3250
|
-
const
|
|
3251
|
-
d = this.formats[
|
|
3250
|
+
const p = ((l = s == null ? void 0 : s.formatParams) == null ? void 0 : l[s.interpolationkey]) || {}, m = p.locale || p.lng || s.locale || s.lng || n;
|
|
3251
|
+
d = this.formats[c](o, m, {
|
|
3252
3252
|
...u,
|
|
3253
3253
|
...s,
|
|
3254
|
-
...
|
|
3254
|
+
...p
|
|
3255
3255
|
});
|
|
3256
|
-
} catch (
|
|
3257
|
-
this.logger.warn(
|
|
3256
|
+
} catch (p) {
|
|
3257
|
+
this.logger.warn(p);
|
|
3258
3258
|
}
|
|
3259
3259
|
return d;
|
|
3260
3260
|
} else
|
|
3261
|
-
this.logger.warn(`there was no format function for ${
|
|
3261
|
+
this.logger.warn(`there was no format function for ${c}`);
|
|
3262
3262
|
return o;
|
|
3263
3263
|
}, e);
|
|
3264
3264
|
}
|
|
@@ -3272,13 +3272,13 @@ class Ln extends rt {
|
|
|
3272
3272
|
super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = ge.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], (i = (a = this.backend) == null ? void 0 : a.init) == null || i.call(a, n, s.backend, s);
|
|
3273
3273
|
}
|
|
3274
3274
|
queueLoad(e, t, n, s) {
|
|
3275
|
-
const a = {}, i = {}, o = {},
|
|
3276
|
-
return e.forEach((
|
|
3275
|
+
const a = {}, i = {}, o = {}, f = {};
|
|
3276
|
+
return e.forEach((c) => {
|
|
3277
3277
|
let u = !0;
|
|
3278
|
-
t.forEach((
|
|
3279
|
-
const d = `${
|
|
3280
|
-
!n.reload && this.store.hasResourceBundle(
|
|
3281
|
-
}), u || (o[
|
|
3278
|
+
t.forEach((l) => {
|
|
3279
|
+
const d = `${c}|${l}`;
|
|
3280
|
+
!n.reload && this.store.hasResourceBundle(c, l) ? this.state[d] = 2 : this.state[d] < 0 || (this.state[d] === 1 ? i[d] === void 0 && (i[d] = !0) : (this.state[d] = 1, u = !1, i[d] === void 0 && (i[d] = !0), a[d] === void 0 && (a[d] = !0), f[l] === void 0 && (f[l] = !0)));
|
|
3281
|
+
}), u || (o[c] = !0);
|
|
3282
3282
|
}), (Object.keys(a).length || Object.keys(i).length) && this.queue.push({
|
|
3283
3283
|
pending: i,
|
|
3284
3284
|
pendingCount: Object.keys(i).length,
|
|
@@ -3289,7 +3289,7 @@ class Ln extends rt {
|
|
|
3289
3289
|
toLoad: Object.keys(a),
|
|
3290
3290
|
pending: Object.keys(i),
|
|
3291
3291
|
toLoadLanguages: Object.keys(o),
|
|
3292
|
-
toLoadNamespaces: Object.keys(
|
|
3292
|
+
toLoadNamespaces: Object.keys(f)
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
3295
|
loaded(e, t, n) {
|
|
@@ -3298,15 +3298,15 @@ class Ln extends rt {
|
|
|
3298
3298
|
skipCopy: !0
|
|
3299
3299
|
}), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
|
|
3300
3300
|
const o = {};
|
|
3301
|
-
this.queue.forEach((
|
|
3302
|
-
vn(
|
|
3303
|
-
o[
|
|
3304
|
-
const u =
|
|
3305
|
-
u.length && u.forEach((
|
|
3306
|
-
o[
|
|
3301
|
+
this.queue.forEach((f) => {
|
|
3302
|
+
vn(f.loaded, [a], i), An(f, e), t && f.errors.push(t), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach((c) => {
|
|
3303
|
+
o[c] || (o[c] = {});
|
|
3304
|
+
const u = f.loaded[c];
|
|
3305
|
+
u.length && u.forEach((l) => {
|
|
3306
|
+
o[c][l] === void 0 && (o[c][l] = !0);
|
|
3307
3307
|
});
|
|
3308
|
-
}),
|
|
3309
|
-
}), this.emit("loaded", o), this.queue = this.queue.filter((
|
|
3308
|
+
}), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
|
|
3309
|
+
}), this.emit("loaded", o), this.queue = this.queue.filter((f) => !f.done);
|
|
3310
3310
|
}
|
|
3311
3311
|
read(e, t, n, s = 0, a = this.retryTimeout, i) {
|
|
3312
3312
|
if (!e.length) return i(null, {});
|
|
@@ -3322,29 +3322,29 @@ class Ln extends rt {
|
|
|
3322
3322
|
return;
|
|
3323
3323
|
}
|
|
3324
3324
|
this.readingCalls++;
|
|
3325
|
-
const o = (
|
|
3325
|
+
const o = (c, u) => {
|
|
3326
3326
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
|
3327
|
-
const
|
|
3328
|
-
this.read(
|
|
3327
|
+
const l = this.waitingReads.shift();
|
|
3328
|
+
this.read(l.lng, l.ns, l.fcName, l.tried, l.wait, l.callback);
|
|
3329
3329
|
}
|
|
3330
|
-
if (
|
|
3330
|
+
if (c && u && s < this.maxRetries) {
|
|
3331
3331
|
setTimeout(() => {
|
|
3332
3332
|
this.read.call(this, e, t, n, s + 1, a * 2, i);
|
|
3333
3333
|
}, a);
|
|
3334
3334
|
return;
|
|
3335
3335
|
}
|
|
3336
|
-
i(
|
|
3337
|
-
},
|
|
3338
|
-
if (
|
|
3336
|
+
i(c, u);
|
|
3337
|
+
}, f = this.backend[n].bind(this.backend);
|
|
3338
|
+
if (f.length === 2) {
|
|
3339
3339
|
try {
|
|
3340
|
-
const
|
|
3341
|
-
|
|
3342
|
-
} catch (
|
|
3343
|
-
o(
|
|
3340
|
+
const c = f(e, t);
|
|
3341
|
+
c && typeof c.then == "function" ? c.then((u) => o(null, u)).catch(o) : o(null, c);
|
|
3342
|
+
} catch (c) {
|
|
3343
|
+
o(c);
|
|
3344
3344
|
}
|
|
3345
3345
|
return;
|
|
3346
3346
|
}
|
|
3347
|
-
return
|
|
3347
|
+
return f(e, t, o);
|
|
3348
3348
|
}
|
|
3349
3349
|
prepareLoading(e, t, n = {}, s) {
|
|
3350
3350
|
if (!this.backend)
|
|
@@ -3373,26 +3373,26 @@ class Ln extends rt {
|
|
|
3373
3373
|
}
|
|
3374
3374
|
saveMissing(e, t, n, s, a, i = {}, o = () => {
|
|
3375
3375
|
}) {
|
|
3376
|
-
var
|
|
3377
|
-
if ((
|
|
3376
|
+
var f, c, u, l, d;
|
|
3377
|
+
if ((c = (f = this.services) == null ? void 0 : f.utils) != null && c.hasLoadedNamespace && !((l = (u = this.services) == null ? void 0 : u.utils) != null && l.hasLoadedNamespace(t))) {
|
|
3378
3378
|
this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
3379
3379
|
return;
|
|
3380
3380
|
}
|
|
3381
3381
|
if (!(n == null || n === "")) {
|
|
3382
3382
|
if ((d = this.backend) != null && d.create) {
|
|
3383
|
-
const
|
|
3383
|
+
const p = {
|
|
3384
3384
|
...i,
|
|
3385
3385
|
isUpdate: a
|
|
3386
3386
|
}, m = this.backend.create.bind(this.backend);
|
|
3387
3387
|
if (m.length < 6)
|
|
3388
3388
|
try {
|
|
3389
3389
|
let g;
|
|
3390
|
-
m.length === 5 ? g = m(e, t, n, s,
|
|
3390
|
+
m.length === 5 ? g = m(e, t, n, s, p) : g = m(e, t, n, s), g && typeof g.then == "function" ? g.then((x) => o(null, x)).catch(o) : o(null, g);
|
|
3391
3391
|
} catch (g) {
|
|
3392
3392
|
o(g);
|
|
3393
3393
|
}
|
|
3394
3394
|
else
|
|
3395
|
-
m(e, t, n, s, o,
|
|
3395
|
+
m(e, t, n, s, o, p);
|
|
3396
3396
|
}
|
|
3397
3397
|
!e || !e[0] || this.store.addResource(e[0], t, n, s);
|
|
3398
3398
|
}
|
|
@@ -3487,44 +3487,44 @@ class Ne extends rt {
|
|
|
3487
3487
|
...n.interpolation,
|
|
3488
3488
|
...this.options.interpolation
|
|
3489
3489
|
}, e.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e.keySeparator), e.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e.nsSeparator);
|
|
3490
|
-
const s = (
|
|
3490
|
+
const s = (c) => c ? typeof c == "function" ? new c() : c : null;
|
|
3491
3491
|
if (!this.options.isClone) {
|
|
3492
3492
|
this.modules.logger ? ge.init(s(this.modules.logger), this.options) : ge.init(null, this.options);
|
|
3493
|
-
let
|
|
3494
|
-
this.modules.formatter ?
|
|
3493
|
+
let c;
|
|
3494
|
+
this.modules.formatter ? c = this.modules.formatter : c = Pn;
|
|
3495
3495
|
const u = new nr(this.options);
|
|
3496
3496
|
this.store = new er(this.options.resources, this.options);
|
|
3497
|
-
const
|
|
3498
|
-
|
|
3497
|
+
const l = this.services;
|
|
3498
|
+
l.logger = ge, l.resourceStore = this.store, l.languageUtils = u, l.pluralResolver = new jn(u, {
|
|
3499
3499
|
prepend: this.options.pluralSeparator,
|
|
3500
3500
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
3501
|
-
}),
|
|
3501
|
+
}), c && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (l.formatter = s(c), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Dn(this.options), l.utils = {
|
|
3502
3502
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
3503
|
-
},
|
|
3504
|
-
this.emit(d, ...
|
|
3505
|
-
}), this.modules.languageDetector && (
|
|
3506
|
-
this.emit(d, ...
|
|
3503
|
+
}, l.backendConnector = new Ln(s(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", (d, ...p) => {
|
|
3504
|
+
this.emit(d, ...p);
|
|
3505
|
+
}), this.modules.languageDetector && (l.languageDetector = s(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = s(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new tt(this.services, this.options), this.translator.on("*", (d, ...p) => {
|
|
3506
|
+
this.emit(d, ...p);
|
|
3507
3507
|
}), this.modules.external.forEach((d) => {
|
|
3508
3508
|
d.init && d.init(this);
|
|
3509
3509
|
});
|
|
3510
3510
|
}
|
|
3511
3511
|
if (this.format = this.options.interpolation.format, t || (t = Be), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3512
|
-
const
|
|
3513
|
-
|
|
3512
|
+
const c = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3513
|
+
c.length > 0 && c[0] !== "dev" && (this.options.lng = c[0]);
|
|
3514
3514
|
}
|
|
3515
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
|
3516
|
-
this[
|
|
3517
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
|
3518
|
-
this[
|
|
3515
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((c) => {
|
|
3516
|
+
this[c] = (...u) => this.store[c](...u);
|
|
3517
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((c) => {
|
|
3518
|
+
this[c] = (...u) => (this.store[c](...u), this);
|
|
3519
3519
|
});
|
|
3520
|
-
const o = Le(),
|
|
3521
|
-
const
|
|
3522
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(
|
|
3520
|
+
const o = Le(), f = () => {
|
|
3521
|
+
const c = (u, l) => {
|
|
3522
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), o.resolve(l), t(u, l);
|
|
3523
3523
|
};
|
|
3524
|
-
if (this.languages && !this.isInitialized) return
|
|
3525
|
-
this.changeLanguage(this.options.lng,
|
|
3524
|
+
if (this.languages && !this.isInitialized) return c(null, this.t.bind(this));
|
|
3525
|
+
this.changeLanguage(this.options.lng, c);
|
|
3526
3526
|
};
|
|
3527
|
-
return this.options.resources || !this.options.initAsync ?
|
|
3527
|
+
return this.options.resources || !this.options.initAsync ? f() : setTimeout(f, 0), o;
|
|
3528
3528
|
}
|
|
3529
3529
|
loadResources(e, t = Be) {
|
|
3530
3530
|
var a, i;
|
|
@@ -3532,14 +3532,14 @@ class Ne extends rt {
|
|
|
3532
3532
|
const s = G(e) ? e : this.language;
|
|
3533
3533
|
if (typeof e == "function" && (n = e), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3534
3534
|
if ((s == null ? void 0 : s.toLowerCase()) === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
3535
|
-
const o = [],
|
|
3536
|
-
if (!
|
|
3537
|
-
this.services.languageUtils.toResolveHierarchy(
|
|
3538
|
-
|
|
3535
|
+
const o = [], f = (c) => {
|
|
3536
|
+
if (!c || c === "cimode") return;
|
|
3537
|
+
this.services.languageUtils.toResolveHierarchy(c).forEach((l) => {
|
|
3538
|
+
l !== "cimode" && o.indexOf(l) < 0 && o.push(l);
|
|
3539
3539
|
});
|
|
3540
3540
|
};
|
|
3541
|
-
s ?
|
|
3542
|
-
!
|
|
3541
|
+
s ? f(s) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((u) => f(u)), (i = (a = this.options.preload) == null ? void 0 : a.forEach) == null || i.call(a, (c) => f(c)), this.services.backendConnector.load(o, this.options.ns, (c) => {
|
|
3542
|
+
!c && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), n(c);
|
|
3543
3543
|
});
|
|
3544
3544
|
} else
|
|
3545
3545
|
n(null);
|
|
@@ -3573,27 +3573,27 @@ class Ne extends rt {
|
|
|
3573
3573
|
this.emit("languageChanging", e);
|
|
3574
3574
|
const s = (o) => {
|
|
3575
3575
|
this.language = o, this.languages = this.services.languageUtils.toResolveHierarchy(o), this.resolvedLanguage = void 0, this.setResolvedLanguage(o);
|
|
3576
|
-
}, a = (o,
|
|
3577
|
-
|
|
3576
|
+
}, a = (o, f) => {
|
|
3577
|
+
f ? this.isLanguageChangingTo === e && (s(f), this.translator.changeLanguage(f), this.isLanguageChangingTo = void 0, this.emit("languageChanged", f), this.logger.log("languageChanged", f)) : this.isLanguageChangingTo = void 0, n.resolve((...c) => this.t(...c)), t && t(o, (...c) => this.t(...c));
|
|
3578
3578
|
}, i = (o) => {
|
|
3579
|
-
var u,
|
|
3579
|
+
var u, l;
|
|
3580
3580
|
!e && !o && this.services.languageDetector && (o = []);
|
|
3581
|
-
const
|
|
3582
|
-
|
|
3583
|
-
a(d,
|
|
3581
|
+
const f = G(o) ? o : o && o[0], c = this.store.hasLanguageSomeTranslations(f) ? f : this.services.languageUtils.getBestMatchFromCodes(G(o) ? [o] : o);
|
|
3582
|
+
c && (this.language || s(c), this.translator.language || this.translator.changeLanguage(c), (l = (u = this.services.languageDetector) == null ? void 0 : u.cacheUserLanguage) == null || l.call(u, c)), this.loadResources(c, (d) => {
|
|
3583
|
+
a(d, c);
|
|
3584
3584
|
});
|
|
3585
3585
|
};
|
|
3586
3586
|
return !e && this.services.languageDetector && !this.services.languageDetector.async ? i(this.services.languageDetector.detect()) : !e && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(i) : this.services.languageDetector.detect(i) : i(e), n;
|
|
3587
3587
|
}
|
|
3588
3588
|
getFixedT(e, t, n) {
|
|
3589
3589
|
const s = (a, i, ...o) => {
|
|
3590
|
-
let
|
|
3591
|
-
typeof i != "object" ?
|
|
3590
|
+
let f;
|
|
3591
|
+
typeof i != "object" ? f = this.options.overloadTranslationOptionHandler([a, i].concat(o)) : f = {
|
|
3592
3592
|
...i
|
|
3593
|
-
},
|
|
3594
|
-
const
|
|
3593
|
+
}, f.lng = f.lng || s.lng, f.lngs = f.lngs || s.lngs, f.ns = f.ns || s.ns, f.keyPrefix !== "" && (f.keyPrefix = f.keyPrefix || n || s.keyPrefix);
|
|
3594
|
+
const c = this.options.keySeparator || ".";
|
|
3595
3595
|
let u;
|
|
3596
|
-
return
|
|
3596
|
+
return f.keyPrefix && Array.isArray(a) ? u = a.map((l) => `${f.keyPrefix}${c}${l}`) : u = f.keyPrefix ? `${f.keyPrefix}${c}${a}` : a, this.t(u, f);
|
|
3597
3597
|
};
|
|
3598
3598
|
return G(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = n, s;
|
|
3599
3599
|
}
|
|
@@ -3615,9 +3615,9 @@ class Ne extends rt {
|
|
|
3615
3615
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
|
3616
3616
|
const n = t.lng || this.resolvedLanguage || this.languages[0], s = this.options ? this.options.fallbackLng : !1, a = this.languages[this.languages.length - 1];
|
|
3617
3617
|
if (n.toLowerCase() === "cimode") return !0;
|
|
3618
|
-
const i = (o,
|
|
3619
|
-
const
|
|
3620
|
-
return
|
|
3618
|
+
const i = (o, f) => {
|
|
3619
|
+
const c = this.services.backendConnector.state[`${o}|${f}`];
|
|
3620
|
+
return c === -1 || c === 0 || c === 2;
|
|
3621
3621
|
};
|
|
3622
3622
|
if (t.precheck) {
|
|
3623
3623
|
const o = t.precheck(this, i);
|
|
@@ -3665,15 +3665,15 @@ class Ne extends rt {
|
|
|
3665
3665
|
}, a.services.utils = {
|
|
3666
3666
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
3667
3667
|
}, n) {
|
|
3668
|
-
const o = Object.keys(this.store.data).reduce((
|
|
3669
|
-
...this.store.data[
|
|
3670
|
-
}, c
|
|
3671
|
-
...c[l]
|
|
3672
|
-
}, u), c
|
|
3668
|
+
const o = Object.keys(this.store.data).reduce((f, c) => (f[c] = {
|
|
3669
|
+
...this.store.data[c]
|
|
3670
|
+
}, f[c] = Object.keys(f[c]).reduce((u, l) => (u[l] = {
|
|
3671
|
+
...f[c][l]
|
|
3672
|
+
}, u), f[c]), f), {});
|
|
3673
3673
|
a.store = new er(o, s), a.services.resourceStore = a.store;
|
|
3674
3674
|
}
|
|
3675
|
-
return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...
|
|
3676
|
-
a.emit(o, ...
|
|
3675
|
+
return a.translator = new tt(a.services, s), a.translator.on("*", (o, ...f) => {
|
|
3676
|
+
a.emit(o, ...f);
|
|
3677
3677
|
}), a.init(s, t), a.translator.options = s, a.translator.backendConnector.services.utils = {
|
|
3678
3678
|
hasLoadedNamespace: a.hasLoadedNamespace.bind(a)
|
|
3679
3679
|
}, a;
|
|
@@ -3736,8 +3736,8 @@ function Bn(r, e, t, n, s) {
|
|
|
3736
3736
|
if (typeof a != "number") {
|
|
3737
3737
|
let o;
|
|
3738
3738
|
e && n === void 0 ? o = "," : o = ".";
|
|
3739
|
-
const
|
|
3740
|
-
a = a.replace(ur(
|
|
3739
|
+
const f = o == "." ? "," : ".";
|
|
3740
|
+
a = a.replace(ur(f, "g"), ""), a = a.replace(ur(o, "g"), "."), a = Number(a);
|
|
3741
3741
|
}
|
|
3742
3742
|
const i = Number(a);
|
|
3743
3743
|
return isNaN(i) ? NaN : i;
|
|
@@ -3789,19 +3789,19 @@ ae.init({
|
|
|
3789
3789
|
}
|
|
3790
3790
|
}
|
|
3791
3791
|
});
|
|
3792
|
-
const
|
|
3792
|
+
const zn = (r, e, t, n) => ae.format(r, e, t || ae.language, n), Kn = (r, e) => ae.t(r, e);
|
|
3793
3793
|
function nt() {
|
|
3794
3794
|
const r = ye(
|
|
3795
|
-
(n, s, a, i) =>
|
|
3795
|
+
(n, s, a, i) => zn(n, s, a || void 0, i),
|
|
3796
3796
|
[]
|
|
3797
3797
|
), e = ye(() => ae.languages[0], []), t = ye(
|
|
3798
|
-
(n, s) =>
|
|
3798
|
+
(n, s) => Kn(n, s),
|
|
3799
3799
|
[]
|
|
3800
3800
|
);
|
|
3801
3801
|
return { format: r, getCurrentLanguage: e, translate: t };
|
|
3802
3802
|
}
|
|
3803
3803
|
var Tt = /* @__PURE__ */ ((r) => (r.CALENDAR_FOR = "Date.CalendarFor", r.CLOSE = "Generic.Close", r.SPOTLIGHT_DEFAULT_PLACEHOLDER = "Generic.SpotlightDefaultPlaceholder", r))(Tt || {}), le = /* @__PURE__ */ ((r) => (r.MONDAY = "Day.Monday", r.MONDAY_SHORT = "Day.MondayShort", r.TUESDAY = "Day.Tuesday", r.TUESDAY_SHORT = "Day.TuesdayShort", r.WEDNESDAY = "Day.Wednesday", r.WEDNESDAY_SHORT = "Day.WednesdayShort", r.THURSDAY = "Day.Thursday", r.THURSDAY_SHORT = "Day.ThursdayShort", r.FRIDAY = "Day.Friday", r.FRIDAY_SHORT = "Day.FridayShort", r.SATURDAY = "Day.Saturday", r.SATURDAY_SHORT = "Day.SaturdayShort", r.SUNDAY = "Day.Sunday", r.SUNDAY_SHORT = "Day.SundayShort", r))(le || {}), fe = /* @__PURE__ */ ((r) => (r.JANUARY = "Month.January", r.FEBRUARY = "Month.February", r.MARCH = "Month.March", r.APRIL = "Month.April", r.MAY = "Month.May", r.JUNE = "Month.June", r.JULY = "Month.July", r.AUGUST = "Month.August", r.SEPTEMBER = "Month.September", r.OCTOBER = "Month.October", r.NOVEMBER = "Month.November", r.DECEMBER = "Month.December", r))(fe || {}), vt = /* @__PURE__ */ ((r) => (r.PREVIOUS_DAY = "Date.PreviousDay", r.PREVIOUS_WEEK = "Date.PreviousWeek", r.PREVIOUS_MONTH = "Date.PreviousMonth", r.PREVIOUS_YEAR = "Date.PreviousYear", r.NEXT_DAY = "Date.NextDay", r.NEXT_WEEK = "Date.NextWeek", r.NEXT_MONTH = "Date.NextMonth", r.NEXT_YEAR = "Date.NextYear", r.YESTERDAY = "Date.Yesterday", r.TODAY = "Date.Today", r.TOMORROW = "Date.Tomorrow", r))(vt || {});
|
|
3804
|
-
function
|
|
3804
|
+
function qn({
|
|
3805
3805
|
selectedDate: r,
|
|
3806
3806
|
onDateChange: e,
|
|
3807
3807
|
disabledDateRanges: t = [],
|
|
@@ -3812,15 +3812,15 @@ function zn({
|
|
|
3812
3812
|
if (!n) return;
|
|
3813
3813
|
const L = new Date(n);
|
|
3814
3814
|
return isNaN(L.getTime()) ? void 0 : L;
|
|
3815
|
-
}, [o] = Z(/* @__PURE__ */ new Date()), [
|
|
3815
|
+
}, [o] = Z(/* @__PURE__ */ new Date()), [f, c] = Z(
|
|
3816
3816
|
r || i() || /* @__PURE__ */ new Date()
|
|
3817
|
-
), [u,
|
|
3818
|
-
|
|
3819
|
-
), [d,
|
|
3820
|
-
|
|
3817
|
+
), [u, l] = Z(
|
|
3818
|
+
f ? f.getMonth() : (/* @__PURE__ */ new Date()).getMonth()
|
|
3819
|
+
), [d, p] = Z(
|
|
3820
|
+
f ? f.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear()
|
|
3821
3821
|
), [m, g] = Z(
|
|
3822
|
-
|
|
3823
|
-
), x = ve(null),
|
|
3822
|
+
f ? f.getDate() : null
|
|
3823
|
+
), x = ve(null), S = ve([]), E = [
|
|
3824
3824
|
a(fe.JANUARY),
|
|
3825
3825
|
a(fe.FEBRUARY),
|
|
3826
3826
|
a(fe.MARCH),
|
|
@@ -3833,7 +3833,7 @@ function zn({
|
|
|
3833
3833
|
a(fe.OCTOBER),
|
|
3834
3834
|
a(fe.NOVEMBER),
|
|
3835
3835
|
a(fe.DECEMBER)
|
|
3836
|
-
],
|
|
3836
|
+
], O = [
|
|
3837
3837
|
{
|
|
3838
3838
|
value: a(le.SUNDAY_SHORT),
|
|
3839
3839
|
full: a(le.SUNDAY)
|
|
@@ -3862,38 +3862,38 @@ function zn({
|
|
|
3862
3862
|
value: a(le.SATURDAY_SHORT),
|
|
3863
3863
|
full: a(le.SATURDAY)
|
|
3864
3864
|
}
|
|
3865
|
-
],
|
|
3866
|
-
const y =
|
|
3865
|
+
], w = (L) => t.some((h) => {
|
|
3866
|
+
const y = h.start.getTime(), T = h.end.getTime(), $ = L.getTime();
|
|
3867
3867
|
return $ >= y && $ <= T;
|
|
3868
3868
|
}), b = (L) => {
|
|
3869
|
-
|
|
3869
|
+
w(L) || (c(L), g(L.getDate()), e && e(Yr(L)));
|
|
3870
3870
|
}, k = () => {
|
|
3871
|
-
u === 0 ? (
|
|
3871
|
+
u === 0 ? (l(11), p(d - 1)) : l(u - 1), g(1);
|
|
3872
3872
|
}, C = () => {
|
|
3873
|
-
u === 11 ? (
|
|
3874
|
-
}, Y = (L,
|
|
3873
|
+
u === 11 ? (l(0), p(d + 1)) : l(u + 1), g(1);
|
|
3874
|
+
}, Y = (L, h) => new Date(L, h + 1, 0).getDate(), j = (L, h) => new Date(L, h, 1).getDay(), P = (L) => {
|
|
3875
3875
|
var y;
|
|
3876
|
-
const
|
|
3876
|
+
const h = H.findIndex(
|
|
3877
3877
|
(T) => T !== null && T.getDate() === L
|
|
3878
3878
|
);
|
|
3879
|
-
|
|
3880
|
-
}, D = (L,
|
|
3881
|
-
const y = H[
|
|
3879
|
+
h !== -1 && S.current[h] && ((y = S.current[h]) == null || y.focus(), g(L));
|
|
3880
|
+
}, D = (L, h) => {
|
|
3881
|
+
const y = H[h];
|
|
3882
3882
|
if (!y) return;
|
|
3883
3883
|
const T = Y(d, u), $ = y.getDate();
|
|
3884
3884
|
switch (L.key) {
|
|
3885
3885
|
case "ArrowRight":
|
|
3886
3886
|
L.preventDefault();
|
|
3887
3887
|
{
|
|
3888
|
-
let
|
|
3889
|
-
if (
|
|
3888
|
+
let R = $ + 1, A = new Date(d, u, R);
|
|
3889
|
+
if (R > T) {
|
|
3890
3890
|
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3891
|
-
|
|
3891
|
+
R = 1, A = new Date(M, F, R), C(), setTimeout(() => {
|
|
3892
3892
|
_(1, "forward");
|
|
3893
3893
|
}, 0);
|
|
3894
3894
|
return;
|
|
3895
3895
|
}
|
|
3896
|
-
|
|
3896
|
+
w(A) ? _(R, "forward") : P(R);
|
|
3897
3897
|
}
|
|
3898
3898
|
break;
|
|
3899
3899
|
case "Tab":
|
|
@@ -3901,43 +3901,43 @@ function zn({
|
|
|
3901
3901
|
case "ArrowLeft":
|
|
3902
3902
|
L.preventDefault();
|
|
3903
3903
|
{
|
|
3904
|
-
let
|
|
3905
|
-
if (
|
|
3904
|
+
let R = $ - 1, A = new Date(d, u, R);
|
|
3905
|
+
if (R < 1) {
|
|
3906
3906
|
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1, N = Y(M, F);
|
|
3907
|
-
|
|
3907
|
+
R = N, A = new Date(M, F, R), k(), setTimeout(() => {
|
|
3908
3908
|
_(N, "backward");
|
|
3909
3909
|
}, 0);
|
|
3910
3910
|
return;
|
|
3911
3911
|
}
|
|
3912
|
-
|
|
3912
|
+
w(A) ? _(R, "backward") : P(R);
|
|
3913
3913
|
}
|
|
3914
3914
|
break;
|
|
3915
3915
|
case "ArrowUp":
|
|
3916
3916
|
L.preventDefault();
|
|
3917
3917
|
{
|
|
3918
|
-
let
|
|
3919
|
-
if (
|
|
3918
|
+
let R = $ - 7, A = new Date(d, u, R);
|
|
3919
|
+
if (R < 1) {
|
|
3920
3920
|
const M = u === 0 ? d - 1 : d, F = u === 0 ? 11 : u - 1;
|
|
3921
|
-
|
|
3922
|
-
_(
|
|
3921
|
+
R = Y(M, F) + R, A = new Date(M, F, R), k(), setTimeout(() => {
|
|
3922
|
+
_(R, "backward");
|
|
3923
3923
|
}, 0);
|
|
3924
3924
|
return;
|
|
3925
3925
|
}
|
|
3926
|
-
|
|
3926
|
+
w(A) ? _(R, "backward") : P(R);
|
|
3927
3927
|
}
|
|
3928
3928
|
break;
|
|
3929
3929
|
case "ArrowDown":
|
|
3930
3930
|
L.preventDefault();
|
|
3931
3931
|
{
|
|
3932
|
-
let
|
|
3933
|
-
if (
|
|
3932
|
+
let R = $ + 7, A = new Date(d, u, R);
|
|
3933
|
+
if (R > T) {
|
|
3934
3934
|
const M = u === 11 ? d + 1 : d, F = u === 11 ? 0 : u + 1;
|
|
3935
|
-
|
|
3936
|
-
_(
|
|
3935
|
+
R = R - T, A = new Date(M, F, R), C(), setTimeout(() => {
|
|
3936
|
+
_(R, "forward");
|
|
3937
3937
|
}, 0);
|
|
3938
3938
|
return;
|
|
3939
3939
|
}
|
|
3940
|
-
|
|
3940
|
+
w(A) ? _(R, "forward") : P(R);
|
|
3941
3941
|
}
|
|
3942
3942
|
break;
|
|
3943
3943
|
case "Home":
|
|
@@ -3948,37 +3948,37 @@ function zn({
|
|
|
3948
3948
|
break;
|
|
3949
3949
|
case "PageUp":
|
|
3950
3950
|
L.preventDefault(), k(), setTimeout(() => {
|
|
3951
|
-
const
|
|
3951
|
+
const R = Y(
|
|
3952
3952
|
u === 0 ? d - 1 : d,
|
|
3953
3953
|
u === 0 ? 11 : u - 1
|
|
3954
|
-
), A = Math.min($,
|
|
3954
|
+
), A = Math.min($, R);
|
|
3955
3955
|
_(A, "forward");
|
|
3956
3956
|
}, 0);
|
|
3957
3957
|
break;
|
|
3958
3958
|
case "PageDown":
|
|
3959
3959
|
L.preventDefault(), C(), setTimeout(() => {
|
|
3960
|
-
const
|
|
3960
|
+
const R = Y(
|
|
3961
3961
|
u === 11 ? d + 1 : d,
|
|
3962
3962
|
u === 11 ? 0 : u + 1
|
|
3963
|
-
), A = Math.min($,
|
|
3963
|
+
), A = Math.min($, R);
|
|
3964
3964
|
_(A, "forward");
|
|
3965
3965
|
}, 0);
|
|
3966
3966
|
break;
|
|
3967
3967
|
case " ":
|
|
3968
3968
|
case "Space":
|
|
3969
|
-
if (
|
|
3970
|
-
g(y.getDate()),
|
|
3969
|
+
if (w(y)) return;
|
|
3970
|
+
g(y.getDate()), c(y);
|
|
3971
3971
|
break;
|
|
3972
3972
|
case "Enter":
|
|
3973
3973
|
L.preventDefault(), b(y);
|
|
3974
3974
|
break;
|
|
3975
3975
|
}
|
|
3976
|
-
}, _ = (L,
|
|
3976
|
+
}, _ = (L, h) => {
|
|
3977
3977
|
const y = Y(d, u);
|
|
3978
|
-
if (
|
|
3978
|
+
if (h === "forward") {
|
|
3979
3979
|
for (let T = L; T <= y; T++) {
|
|
3980
3980
|
const $ = new Date(d, u, T);
|
|
3981
|
-
if (!
|
|
3981
|
+
if (!w($)) {
|
|
3982
3982
|
P(T);
|
|
3983
3983
|
return;
|
|
3984
3984
|
}
|
|
@@ -3989,40 +3989,40 @@ function zn({
|
|
|
3989
3989
|
} else {
|
|
3990
3990
|
for (let A = L; A >= 1; A--) {
|
|
3991
3991
|
const M = new Date(d, u, A);
|
|
3992
|
-
if (!
|
|
3992
|
+
if (!w(M)) {
|
|
3993
3993
|
P(A);
|
|
3994
3994
|
return;
|
|
3995
3995
|
}
|
|
3996
3996
|
}
|
|
3997
|
-
const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1,
|
|
3997
|
+
const T = u === 0 ? d - 1 : d, $ = u === 0 ? 11 : u - 1, R = Y(T, $);
|
|
3998
3998
|
k(), setTimeout(() => {
|
|
3999
|
-
_(
|
|
3999
|
+
_(R, "backward");
|
|
4000
4000
|
}, 0);
|
|
4001
4001
|
}
|
|
4002
4002
|
}, H = (() => {
|
|
4003
|
-
const L = Y(d, u),
|
|
4004
|
-
for (let T = 0; T <
|
|
4003
|
+
const L = Y(d, u), h = j(d, u), y = [];
|
|
4004
|
+
for (let T = 0; T < h; T++)
|
|
4005
4005
|
y.push(null);
|
|
4006
4006
|
for (let T = 1; T <= L; T++) {
|
|
4007
4007
|
const $ = new Date(d, u, T);
|
|
4008
4008
|
y.push($);
|
|
4009
4009
|
}
|
|
4010
4010
|
return y;
|
|
4011
|
-
})(),
|
|
4012
|
-
let
|
|
4013
|
-
H.forEach((L,
|
|
4014
|
-
if (
|
|
4015
|
-
for (;
|
|
4016
|
-
|
|
4017
|
-
|
|
4011
|
+
})(), K = [];
|
|
4012
|
+
let z = [];
|
|
4013
|
+
H.forEach((L, h) => {
|
|
4014
|
+
if (z.push(L), z.length === 7 || h === H.length - 1) {
|
|
4015
|
+
for (; z.length < 7; )
|
|
4016
|
+
z.push(null);
|
|
4017
|
+
K.push(z), z = [];
|
|
4018
4018
|
}
|
|
4019
4019
|
}), oe(() => {
|
|
4020
4020
|
var L;
|
|
4021
4021
|
if (m !== null) {
|
|
4022
|
-
const
|
|
4022
|
+
const h = H.findIndex(
|
|
4023
4023
|
(y) => y !== null && y.getDate() === m
|
|
4024
4024
|
);
|
|
4025
|
-
|
|
4025
|
+
h !== -1 && S.current[h] && ((L = S.current[h]) == null || L.focus());
|
|
4026
4026
|
}
|
|
4027
4027
|
}, [u, d, m, H]);
|
|
4028
4028
|
const J = {
|
|
@@ -4031,9 +4031,9 @@ function zn({
|
|
|
4031
4031
|
calendar: "smp-datepickercalendar",
|
|
4032
4032
|
table: "smp-datepickercalendar-table",
|
|
4033
4033
|
th: "smp-datepickercalendar-th",
|
|
4034
|
-
td: (L,
|
|
4034
|
+
td: (L, h, y, T) => `smp-datepickercalendar-td
|
|
4035
4035
|
${L ? "smp-datepickercalendar-td-today" : ""}
|
|
4036
|
-
${
|
|
4036
|
+
${h ? "smp-datepickercalendar-td-selected" : ""}
|
|
4037
4037
|
${y ? "smp-datepickercalendar-td-focused" : ""}
|
|
4038
4038
|
${T ? "smp-datepickercalendar-td-disabled" : ""}`
|
|
4039
4039
|
}, W = () => `${E[u]} ${d.toString()}`;
|
|
@@ -4096,7 +4096,7 @@ function zn({
|
|
|
4096
4096
|
"aria-label": `${a(Tt.CALENDAR_FOR)} ${E[u]} ${d}`,
|
|
4097
4097
|
className: J.table,
|
|
4098
4098
|
children: [
|
|
4099
|
-
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children:
|
|
4099
|
+
/* @__PURE__ */ v.jsx("thead", { children: /* @__PURE__ */ v.jsx("tr", { children: O.map((L) => /* @__PURE__ */ v.jsx(
|
|
4100
4100
|
"th",
|
|
4101
4101
|
{
|
|
4102
4102
|
scope: "col",
|
|
@@ -4106,8 +4106,8 @@ function zn({
|
|
|
4106
4106
|
},
|
|
4107
4107
|
L.value
|
|
4108
4108
|
)) }) }),
|
|
4109
|
-
/* @__PURE__ */ v.jsx("tbody", { children:
|
|
4110
|
-
const $ =
|
|
4109
|
+
/* @__PURE__ */ v.jsx("tbody", { children: K.map((L, h) => /* @__PURE__ */ v.jsx("tr", { children: L.map((y, T) => {
|
|
4110
|
+
const $ = h * 7 + T;
|
|
4111
4111
|
if (y === null)
|
|
4112
4112
|
return /* @__PURE__ */ v.jsx(
|
|
4113
4113
|
"td",
|
|
@@ -4121,7 +4121,7 @@ function zn({
|
|
|
4121
4121
|
},
|
|
4122
4122
|
`empty-${T}`
|
|
4123
4123
|
);
|
|
4124
|
-
const
|
|
4124
|
+
const R = y.getDate() === o.getDate() && y.getMonth() === o.getMonth() && y.getFullYear() === o.getFullYear(), A = f && y.getDate() === f.getDate() && y.getMonth() === f.getMonth() && y.getFullYear() === f.getFullYear(), M = m === y.getDate(), F = w(y);
|
|
4125
4125
|
return /* @__PURE__ */ v.jsx(
|
|
4126
4126
|
"td",
|
|
4127
4127
|
{
|
|
@@ -4134,10 +4134,10 @@ function zn({
|
|
|
4134
4134
|
"data-selected": A,
|
|
4135
4135
|
"aria-disabled": F,
|
|
4136
4136
|
ref: (N) => {
|
|
4137
|
-
|
|
4137
|
+
S.current[$] = N;
|
|
4138
4138
|
},
|
|
4139
4139
|
className: J.td(
|
|
4140
|
-
|
|
4140
|
+
R,
|
|
4141
4141
|
A,
|
|
4142
4142
|
M,
|
|
4143
4143
|
F
|
|
@@ -4146,7 +4146,7 @@ function zn({
|
|
|
4146
4146
|
},
|
|
4147
4147
|
`day-${T}`
|
|
4148
4148
|
);
|
|
4149
|
-
}) }, `week-${
|
|
4149
|
+
}) }, `week-${h}`)) })
|
|
4150
4150
|
]
|
|
4151
4151
|
}
|
|
4152
4152
|
)
|
|
@@ -4162,11 +4162,11 @@ const Jn = ({
|
|
|
4162
4162
|
isEditable: s = !0,
|
|
4163
4163
|
...a
|
|
4164
4164
|
}) => {
|
|
4165
|
-
const [i, o] = Z(!1), [
|
|
4165
|
+
const [i, o] = Z(!1), [f, c] = Z(r || ""), [u, l] = Z(""), { anchorRef: d, targetRef: p } = St({
|
|
4166
4166
|
position: "bottom",
|
|
4167
4167
|
enabled: i
|
|
4168
4168
|
});
|
|
4169
|
-
Je(
|
|
4169
|
+
Je(p, () => {
|
|
4170
4170
|
o(!1);
|
|
4171
4171
|
}), Je(d, () => {
|
|
4172
4172
|
if (
|
|
@@ -4176,7 +4176,7 @@ const Jn = ({
|
|
|
4176
4176
|
const C = d.current.querySelector("input");
|
|
4177
4177
|
C && C === document.activeElement && E();
|
|
4178
4178
|
}
|
|
4179
|
-
}), Tr(i,
|
|
4179
|
+
}), Tr(i, p);
|
|
4180
4180
|
const { format: m, getCurrentLanguage: g } = nt(), x = ye(
|
|
4181
4181
|
(C) => {
|
|
4182
4182
|
const Y = C.length > 5 && Mr(C, g()) || C, j = m(Y, void 0, void 0, {
|
|
@@ -4193,19 +4193,19 @@ const Jn = ({
|
|
|
4193
4193
|
);
|
|
4194
4194
|
oe(() => {
|
|
4195
4195
|
const { formattedDate: C, isoDate: Y, isValid: j } = x(r);
|
|
4196
|
-
|
|
4196
|
+
c(j && Y || r), l(j && C || r);
|
|
4197
4197
|
}, [r, m, x]);
|
|
4198
|
-
const
|
|
4199
|
-
|
|
4200
|
-
},
|
|
4201
|
-
|
|
4202
|
-
},
|
|
4198
|
+
const S = () => o((C) => !C), E = () => {
|
|
4199
|
+
w(u);
|
|
4200
|
+
}, O = (C) => {
|
|
4201
|
+
w(C), o(!1);
|
|
4202
|
+
}, w = (C) => {
|
|
4203
4203
|
const { isoDate: Y, isValid: j } = x(C);
|
|
4204
4204
|
t && t(j && Y || C);
|
|
4205
4205
|
}, b = (C) => {
|
|
4206
|
-
|
|
4206
|
+
l(C);
|
|
4207
4207
|
}, k = (C) => {
|
|
4208
|
-
C.key === "Enter" && (C.preventDefault(),
|
|
4208
|
+
C.key === "Enter" && (C.preventDefault(), w(u));
|
|
4209
4209
|
};
|
|
4210
4210
|
return /* @__PURE__ */ v.jsxs("div", { "data-component": "date-picker", children: [
|
|
4211
4211
|
/* @__PURE__ */ v.jsx(
|
|
@@ -4217,19 +4217,19 @@ const Jn = ({
|
|
|
4217
4217
|
onChange: b,
|
|
4218
4218
|
onKeyDown: k,
|
|
4219
4219
|
shapeIcon: "calendar",
|
|
4220
|
-
onShapeIconClick:
|
|
4220
|
+
onShapeIconClick: S,
|
|
4221
4221
|
ref: d,
|
|
4222
4222
|
isEditable: s,
|
|
4223
4223
|
...a
|
|
4224
4224
|
}
|
|
4225
4225
|
),
|
|
4226
4226
|
i && /* @__PURE__ */ v.jsx(
|
|
4227
|
-
|
|
4227
|
+
qn,
|
|
4228
4228
|
{
|
|
4229
4229
|
disabledDateRanges: n,
|
|
4230
|
-
onDateChange:
|
|
4231
|
-
initialValue: xt(
|
|
4232
|
-
targetRef:
|
|
4230
|
+
onDateChange: O,
|
|
4231
|
+
initialValue: xt(f) && f || "",
|
|
4232
|
+
targetRef: p
|
|
4233
4233
|
}
|
|
4234
4234
|
)
|
|
4235
4235
|
] });
|
|
@@ -4242,31 +4242,31 @@ const Jn = ({
|
|
|
4242
4242
|
placeholder: a,
|
|
4243
4243
|
label: i,
|
|
4244
4244
|
disabled: o,
|
|
4245
|
-
fun:
|
|
4246
|
-
onOptionsRequest:
|
|
4245
|
+
fun: f,
|
|
4246
|
+
onOptionsRequest: c,
|
|
4247
4247
|
onChange: u
|
|
4248
4248
|
}) => {
|
|
4249
|
-
const
|
|
4249
|
+
const l = r.map((m) => m.bindValue), d = (m, g) => {
|
|
4250
4250
|
const x = [...r];
|
|
4251
4251
|
if (m == "")
|
|
4252
4252
|
x.pop();
|
|
4253
4253
|
else {
|
|
4254
|
-
const
|
|
4254
|
+
const S = x.findIndex(
|
|
4255
4255
|
(E) => E.bindValue === m && E.optionalDisplayValue === g
|
|
4256
4256
|
);
|
|
4257
|
-
|
|
4257
|
+
S >= 0 ? x.splice(S, 1) : x.push({
|
|
4258
4258
|
bindValue: m,
|
|
4259
4259
|
optionalDisplayValue: g
|
|
4260
4260
|
});
|
|
4261
4261
|
}
|
|
4262
4262
|
u == null || u(x);
|
|
4263
|
-
},
|
|
4263
|
+
}, p = {
|
|
4264
4264
|
container: "smp-multipleAutocomplete-container"
|
|
4265
4265
|
};
|
|
4266
4266
|
return /* @__PURE__ */ v.jsxs(
|
|
4267
4267
|
"div",
|
|
4268
4268
|
{
|
|
4269
|
-
className:
|
|
4269
|
+
className: p.container,
|
|
4270
4270
|
"data-component": "multiple-autocomplete",
|
|
4271
4271
|
children: [
|
|
4272
4272
|
i && /* @__PURE__ */ v.jsx($e, { label: i, disabled: o }),
|
|
@@ -4285,15 +4285,15 @@ const Jn = ({
|
|
|
4285
4285
|
Er,
|
|
4286
4286
|
{
|
|
4287
4287
|
bindValue: "",
|
|
4288
|
-
fun:
|
|
4288
|
+
fun: f,
|
|
4289
4289
|
isEditable: s,
|
|
4290
4290
|
onChange: d,
|
|
4291
4291
|
_changeOnEnter: !0,
|
|
4292
4292
|
listDisplayMode: n,
|
|
4293
4293
|
minimumChars: t,
|
|
4294
4294
|
placeholder: a,
|
|
4295
|
-
onOptionsRequest:
|
|
4296
|
-
_multiActiveIndex:
|
|
4295
|
+
onOptionsRequest: c,
|
|
4296
|
+
_multiActiveIndex: l
|
|
4297
4297
|
}
|
|
4298
4298
|
)
|
|
4299
4299
|
]
|
|
@@ -4414,34 +4414,34 @@ const Ge = (r, e, t) => ({
|
|
|
4414
4414
|
appearance: a,
|
|
4415
4415
|
isEditable: i,
|
|
4416
4416
|
label: o,
|
|
4417
|
-
ariaLabel:
|
|
4418
|
-
helperText:
|
|
4417
|
+
ariaLabel: f,
|
|
4418
|
+
helperText: c,
|
|
4419
4419
|
error: u,
|
|
4420
|
-
onBlur:
|
|
4420
|
+
onBlur: l,
|
|
4421
4421
|
onKeyDown: d
|
|
4422
4422
|
}) => {
|
|
4423
|
-
const
|
|
4424
|
-
t == null || t(
|
|
4423
|
+
const p = bt(), m = `${p}-helper`, g = u ? "danger" : s, x = c || !!u, S = (O) => {
|
|
4424
|
+
t == null || t(O.target.value);
|
|
4425
4425
|
}, E = {
|
|
4426
4426
|
wrapper: "smp-textarea-wrapper",
|
|
4427
4427
|
container: `smp-textarea ${r ? "smp-textarea-disabled" : ""} ${n ? "smp-textarea-placeholder" : ""} ${g ? `smp-textarea-${g}` : ""} ${a ? `smp-textarea-${a}` : ""} ${i ? "" : "smp-textarea-readOnly"}`
|
|
4428
4428
|
};
|
|
4429
4429
|
return /* @__PURE__ */ v.jsxs("div", { className: E.wrapper, "data-component": "textarea", children: [
|
|
4430
|
-
o && /* @__PURE__ */ v.jsx($e, { htmlFor:
|
|
4430
|
+
o && /* @__PURE__ */ v.jsx($e, { htmlFor: p, label: o, disabled: r }),
|
|
4431
4431
|
/* @__PURE__ */ v.jsx(
|
|
4432
4432
|
"textarea",
|
|
4433
4433
|
{
|
|
4434
|
-
id:
|
|
4434
|
+
id: p,
|
|
4435
4435
|
value: e,
|
|
4436
4436
|
placeholder: n,
|
|
4437
|
-
onChange:
|
|
4438
|
-
onBlur:
|
|
4437
|
+
onChange: S,
|
|
4438
|
+
onBlur: l,
|
|
4439
4439
|
className: E.container,
|
|
4440
4440
|
disabled: r,
|
|
4441
4441
|
readOnly: !i,
|
|
4442
4442
|
onKeyDown: d,
|
|
4443
|
-
"aria-label": o ? void 0 :
|
|
4444
|
-
"aria-labelledby": o ?
|
|
4443
|
+
"aria-label": o ? void 0 : f,
|
|
4444
|
+
"aria-labelledby": o ? p : void 0,
|
|
4445
4445
|
"aria-describedby": x ? m : void 0
|
|
4446
4446
|
}
|
|
4447
4447
|
),
|
|
@@ -4464,12 +4464,12 @@ const Ge = (r, e, t) => ({
|
|
|
4464
4464
|
fun: a,
|
|
4465
4465
|
placeholderIcon: i,
|
|
4466
4466
|
label: o,
|
|
4467
|
-
options:
|
|
4468
|
-
onChange:
|
|
4467
|
+
options: f,
|
|
4468
|
+
onChange: c,
|
|
4469
4469
|
onClick: u,
|
|
4470
|
-
onEnter:
|
|
4470
|
+
onEnter: l,
|
|
4471
4471
|
onBlur: d,
|
|
4472
|
-
onOptionsRequest:
|
|
4472
|
+
onOptionsRequest: p,
|
|
4473
4473
|
isEditable: m
|
|
4474
4474
|
}) => {
|
|
4475
4475
|
const g = {
|
|
@@ -4480,159 +4480,159 @@ const Ge = (r, e, t) => ({
|
|
|
4480
4480
|
fun: a
|
|
4481
4481
|
}, x = {
|
|
4482
4482
|
onBlur: d,
|
|
4483
|
-
onOptionsRequest:
|
|
4483
|
+
onOptionsRequest: p,
|
|
4484
4484
|
fun: a,
|
|
4485
4485
|
icon: s,
|
|
4486
4486
|
label: o,
|
|
4487
4487
|
isEditable: m,
|
|
4488
4488
|
...n
|
|
4489
|
-
},
|
|
4489
|
+
}, S = (w, b, k) => kr(t) ? Ge(w, new qe(t, b).getLegacyValue()) : Ge(w, b, k), E = (w) => Ge(g, new Ke(t, w).getLegacyValue()), O = (w) => ts(g, w);
|
|
4490
4490
|
switch (e) {
|
|
4491
4491
|
case ne.AUTOCOMPLETE: {
|
|
4492
|
-
const
|
|
4492
|
+
const w = {
|
|
4493
4493
|
...x,
|
|
4494
4494
|
bindValue: t.k,
|
|
4495
4495
|
optionalDisplayValue: r,
|
|
4496
4496
|
onChange: (b, k) => {
|
|
4497
|
-
|
|
4497
|
+
c == null || c(S(g, b, k));
|
|
4498
4498
|
}
|
|
4499
4499
|
};
|
|
4500
|
-
return /* @__PURE__ */ v.jsx(Er, { ...
|
|
4500
|
+
return /* @__PURE__ */ v.jsx(Er, { ...w });
|
|
4501
4501
|
}
|
|
4502
4502
|
case ne.BUTTON: {
|
|
4503
|
-
const
|
|
4503
|
+
const w = {
|
|
4504
4504
|
...x,
|
|
4505
4505
|
bindValue: t.k,
|
|
4506
4506
|
optionalDisplayValue: r,
|
|
4507
4507
|
onClick: () => {
|
|
4508
|
-
u == null || u(
|
|
4508
|
+
u == null || u(S(g, t.k));
|
|
4509
4509
|
}
|
|
4510
4510
|
};
|
|
4511
|
-
return /* @__PURE__ */ v.jsx(De, { ...
|
|
4511
|
+
return /* @__PURE__ */ v.jsx(De, { ...w });
|
|
4512
4512
|
}
|
|
4513
4513
|
case ne.BUTTON_LIST: {
|
|
4514
|
-
const
|
|
4514
|
+
const w = {
|
|
4515
4515
|
...x,
|
|
4516
|
-
options:
|
|
4516
|
+
options: f,
|
|
4517
4517
|
onClick: (b, k) => {
|
|
4518
4518
|
const C = { ...g, fun: k };
|
|
4519
|
-
u == null || u(
|
|
4519
|
+
u == null || u(S(C, b));
|
|
4520
4520
|
}
|
|
4521
4521
|
};
|
|
4522
|
-
return /* @__PURE__ */ v.jsx(dn, { ...
|
|
4522
|
+
return /* @__PURE__ */ v.jsx(dn, { ...w });
|
|
4523
4523
|
}
|
|
4524
4524
|
case ne.COMBOBOX: {
|
|
4525
|
-
const
|
|
4525
|
+
const w = {
|
|
4526
4526
|
...x,
|
|
4527
4527
|
bindValue: t.k,
|
|
4528
4528
|
optionalDisplayValue: r,
|
|
4529
4529
|
onChange: (b, k) => {
|
|
4530
|
-
|
|
4530
|
+
c == null || c(S(g, b, k));
|
|
4531
4531
|
}
|
|
4532
4532
|
};
|
|
4533
|
-
return /* @__PURE__ */ v.jsx(mn, { ...
|
|
4533
|
+
return /* @__PURE__ */ v.jsx(mn, { ...w });
|
|
4534
4534
|
}
|
|
4535
4535
|
case ne.SWITCH:
|
|
4536
4536
|
case ne.CHECKBOX: {
|
|
4537
|
-
const
|
|
4537
|
+
const w = {
|
|
4538
4538
|
...x,
|
|
4539
|
-
bindValue:
|
|
4539
|
+
bindValue: Ke.fromDataObj(t).getValue(),
|
|
4540
4540
|
optionalDisplayValue: r,
|
|
4541
4541
|
onChange: (b) => {
|
|
4542
|
-
|
|
4542
|
+
c == null || c(E(b));
|
|
4543
4543
|
}
|
|
4544
4544
|
};
|
|
4545
|
-
return /* @__PURE__ */ v.jsx(pn, { ...
|
|
4545
|
+
return /* @__PURE__ */ v.jsx(pn, { ...w });
|
|
4546
4546
|
}
|
|
4547
4547
|
case ne.CHIP: {
|
|
4548
|
-
const
|
|
4548
|
+
const w = {
|
|
4549
4549
|
...x,
|
|
4550
4550
|
elements: fr(g)
|
|
4551
4551
|
};
|
|
4552
|
-
return /* @__PURE__ */ v.jsx(Et, { ...
|
|
4552
|
+
return /* @__PURE__ */ v.jsx(Et, { ...w });
|
|
4553
4553
|
}
|
|
4554
4554
|
case ne.DATE: {
|
|
4555
|
-
const
|
|
4555
|
+
const w = {
|
|
4556
4556
|
...x,
|
|
4557
|
-
bindValue:
|
|
4557
|
+
bindValue: qe.fromDataObj(t).getValue(),
|
|
4558
4558
|
onChange: (b) => {
|
|
4559
|
-
|
|
4559
|
+
c == null || c(S(g, b));
|
|
4560
4560
|
}
|
|
4561
4561
|
};
|
|
4562
|
-
return /* @__PURE__ */ v.jsx(Jn, { ...
|
|
4562
|
+
return /* @__PURE__ */ v.jsx(Jn, { ...w });
|
|
4563
4563
|
}
|
|
4564
4564
|
case ne.ICON:
|
|
4565
4565
|
case ne.IMAGE: {
|
|
4566
|
-
const
|
|
4566
|
+
const w = {
|
|
4567
4567
|
...x,
|
|
4568
4568
|
icon: s,
|
|
4569
4569
|
placeholderIcon: i,
|
|
4570
4570
|
isInteractable: !!x.fun,
|
|
4571
4571
|
onClick: () => {
|
|
4572
|
-
u == null || u(
|
|
4572
|
+
u == null || u(S(g, t.k));
|
|
4573
4573
|
}
|
|
4574
4574
|
};
|
|
4575
|
-
return /* @__PURE__ */ v.jsx(ue, { ...
|
|
4575
|
+
return /* @__PURE__ */ v.jsx(ue, { ...w });
|
|
4576
4576
|
}
|
|
4577
4577
|
case ne.MULTI_AUTOCOMPLETE: {
|
|
4578
|
-
const
|
|
4578
|
+
const w = {
|
|
4579
4579
|
...x,
|
|
4580
4580
|
elements: fr(g),
|
|
4581
4581
|
onChange: (b) => {
|
|
4582
|
-
|
|
4582
|
+
c == null || c(O(b));
|
|
4583
4583
|
}
|
|
4584
4584
|
};
|
|
4585
|
-
return /* @__PURE__ */ v.jsx(Xn, { ...
|
|
4585
|
+
return /* @__PURE__ */ v.jsx(Xn, { ...w });
|
|
4586
4586
|
}
|
|
4587
4587
|
case ne.MEMO: {
|
|
4588
|
-
const
|
|
4588
|
+
const w = {
|
|
4589
4589
|
...x,
|
|
4590
4590
|
bindValue: t.k,
|
|
4591
4591
|
optionalDisplayValue: r,
|
|
4592
4592
|
onChange: (b) => {
|
|
4593
|
-
|
|
4593
|
+
c == null || c(S(g, b));
|
|
4594
4594
|
}
|
|
4595
4595
|
};
|
|
4596
|
-
return /* @__PURE__ */ v.jsx(rs, { ...
|
|
4596
|
+
return /* @__PURE__ */ v.jsx(rs, { ...w });
|
|
4597
4597
|
}
|
|
4598
4598
|
case ne.PASSWORD: {
|
|
4599
|
-
const
|
|
4599
|
+
const w = {
|
|
4600
4600
|
...x,
|
|
4601
4601
|
bindValue: t.k,
|
|
4602
4602
|
onChange: (b) => {
|
|
4603
|
-
|
|
4603
|
+
c == null || c(S(g, b));
|
|
4604
4604
|
}
|
|
4605
4605
|
};
|
|
4606
|
-
return /* @__PURE__ */ v.jsx(Zn, { ...
|
|
4606
|
+
return /* @__PURE__ */ v.jsx(Zn, { ...w });
|
|
4607
4607
|
}
|
|
4608
4608
|
case ne.SPOTLIGHT: {
|
|
4609
|
-
const
|
|
4609
|
+
const w = {
|
|
4610
4610
|
...x,
|
|
4611
4611
|
bindValue: t.k,
|
|
4612
4612
|
onEnter: (b) => {
|
|
4613
|
-
|
|
4613
|
+
l == null || l(S(g, b));
|
|
4614
4614
|
}
|
|
4615
4615
|
};
|
|
4616
|
-
return /* @__PURE__ */ v.jsx(Qn, { ...
|
|
4616
|
+
return /* @__PURE__ */ v.jsx(Qn, { ...w });
|
|
4617
4617
|
}
|
|
4618
4618
|
case ne.TEXT_FIELD: {
|
|
4619
|
-
const
|
|
4619
|
+
const w = {
|
|
4620
4620
|
...x,
|
|
4621
4621
|
bindValue: t.k,
|
|
4622
4622
|
optionalDisplayValue: r,
|
|
4623
4623
|
onChange: (b) => {
|
|
4624
|
-
|
|
4624
|
+
c == null || c(S(g, b));
|
|
4625
4625
|
}
|
|
4626
4626
|
};
|
|
4627
|
-
return /* @__PURE__ */ v.jsx(Ce, { ...
|
|
4627
|
+
return /* @__PURE__ */ v.jsx(Ce, { ...w });
|
|
4628
4628
|
}
|
|
4629
4629
|
default: {
|
|
4630
|
-
const
|
|
4630
|
+
const w = {
|
|
4631
4631
|
...x,
|
|
4632
4632
|
bindValue: t.k,
|
|
4633
4633
|
optionalDisplayValue: r
|
|
4634
4634
|
};
|
|
4635
|
-
return /* @__PURE__ */ v.jsx(es, { ...
|
|
4635
|
+
return /* @__PURE__ */ v.jsx(es, { ...w });
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
4638
|
}, ns = (r, e) => {
|
|
@@ -4650,13 +4650,13 @@ const Ge = (r, e, t) => ({
|
|
|
4650
4650
|
};
|
|
4651
4651
|
let n = t.sections, s = t.content;
|
|
4652
4652
|
return (i = t.content) != null && i.length && t.columns && +t.columns > 1 && (n = ns(
|
|
4653
|
-
t.content.filter((
|
|
4653
|
+
t.content.filter((f) => !!e[f.id]),
|
|
4654
4654
|
+t.columns
|
|
4655
4655
|
).map(
|
|
4656
|
-
(
|
|
4656
|
+
(f, c) => ({
|
|
4657
4657
|
...t,
|
|
4658
|
-
id: `${t.id}-${
|
|
4659
|
-
content:
|
|
4658
|
+
id: `${t.id}-${c}`,
|
|
4659
|
+
content: f,
|
|
4660
4660
|
gridCols: t.columns,
|
|
4661
4661
|
horizontal: !0
|
|
4662
4662
|
})
|
|
@@ -4685,96 +4685,106 @@ const Ge = (r, e, t) => ({
|
|
|
4685
4685
|
"smp-grid-template-rows": "_smp-grid-template-rows_xrjwg_48",
|
|
4686
4686
|
"smp-layout-section-with-title": "_smp-layout-section-with-title_xrjwg_52",
|
|
4687
4687
|
"smp-layout-section-title": "_smp-layout-section-title_xrjwg_58"
|
|
4688
|
-
}, Rt = ({
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4688
|
+
}, Rt = ({
|
|
4689
|
+
cells: r,
|
|
4690
|
+
layout: e = {
|
|
4691
|
+
horizontal: !1,
|
|
4692
|
+
sections: [
|
|
4693
|
+
{
|
|
4694
|
+
id: "1",
|
|
4695
|
+
content: Object.keys(r).map((t) => ({
|
|
4696
|
+
id: t
|
|
4697
|
+
}))
|
|
4698
|
+
}
|
|
4699
|
+
]
|
|
4700
|
+
}
|
|
4701
|
+
}) => {
|
|
4702
|
+
const t = "--smp-grid-template-cols", n = "--smp-grid-template-rows", s = jr(e.sections || [], r), a = (l) => l == null ? void 0 : l.reduce((d, p) => {
|
|
4703
|
+
var E, O;
|
|
4704
|
+
let m = "", g = {}, x = {}, S = "";
|
|
4705
|
+
return (E = p.sections) != null && E.length ? (m = pe["smp-layout-section-grid"], g = a(p.sections), p.gridCols == null && (S = `${pe[p.horizontal ? "smp-grid-template-cols" : "smp-grid-template-rows"]}`, (p.horizontal || pr(p.sections)) && (x = dr(
|
|
4706
|
+
p.sections,
|
|
4707
|
+
p.horizontal ? t : n
|
|
4708
|
+
)))) : (O = p.content) != null && O.length && (p.gridCols !== void 0 && p.gridCols > 0 ? (m = pe["smp-layout-section-grid"], S = `${pe["smp-grid-template-cols"]}`, x = {
|
|
4709
|
+
[t]: `repeat(${p.gridCols}, 1fr)`
|
|
4710
|
+
}) : m = pe["smp-layout-section-flex"]), {
|
|
4711
|
+
...d,
|
|
4712
|
+
...g,
|
|
4713
|
+
[p.id]: {
|
|
4714
|
+
classes: `${m} ${pe[p.horizontal ? "smp-layout-section-horizontal" : "smp-layout-section-vertical"]} ${S} ${p.justify ? `smp-justifyContent-${p.justify}` : ""} ${p.align ? `smp-alignItems-${p.align}` : ""}`,
|
|
4715
|
+
styles: x
|
|
4706
4716
|
}
|
|
4707
4717
|
};
|
|
4708
4718
|
}, {}), i = a(s), o = {
|
|
4709
|
-
container: `${pe["smp-layout"]} ${
|
|
4719
|
+
container: `${pe["smp-layout"]} ${e.horizontal ? pe["smp-layout-horizontal"] : pe["smp-layout-vertical"]}`,
|
|
4710
4720
|
sections: i
|
|
4711
|
-
},
|
|
4721
|
+
}, f = e.horizontal || pr(e.sections || []) ? dr(
|
|
4712
4722
|
s,
|
|
4713
|
-
|
|
4714
|
-
) : {},
|
|
4715
|
-
var
|
|
4716
|
-
const
|
|
4723
|
+
e.horizontal ? t : n
|
|
4724
|
+
) : {}, c = (l) => {
|
|
4725
|
+
var p;
|
|
4726
|
+
const d = /* @__PURE__ */ v.jsx(
|
|
4717
4727
|
"div",
|
|
4718
4728
|
{
|
|
4719
|
-
"smp-id": "section-" +
|
|
4720
|
-
className: o.sections[
|
|
4721
|
-
style: o.sections[
|
|
4722
|
-
children: (
|
|
4723
|
-
(
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4729
|
+
"smp-id": "section-" + l.id,
|
|
4730
|
+
className: o.sections[l.id].classes,
|
|
4731
|
+
style: o.sections[l.id].styles,
|
|
4732
|
+
children: (p = l.sections) != null && p.length ? l.sections.map((m) => c(m)) : l.content.map(
|
|
4733
|
+
(m) => u(
|
|
4734
|
+
m,
|
|
4735
|
+
r[m.id],
|
|
4736
|
+
l.justify,
|
|
4737
|
+
l.align
|
|
4728
4738
|
)
|
|
4729
4739
|
)
|
|
4730
4740
|
},
|
|
4731
|
-
"section-" +
|
|
4741
|
+
"section-" + l.id
|
|
4732
4742
|
);
|
|
4733
|
-
return
|
|
4743
|
+
return l.title ? /* @__PURE__ */ v.jsxs("div", { className: `${pe["smp-layout-section-with-title"]}`, children: [
|
|
4734
4744
|
/* @__PURE__ */ v.jsx(
|
|
4735
4745
|
"span",
|
|
4736
4746
|
{
|
|
4737
|
-
className: `${pe["smp-layout-section-title"]} ${
|
|
4738
|
-
children: /* @__PURE__ */ v.jsx($e, { label:
|
|
4747
|
+
className: `${pe["smp-layout-section-title"]} ${l.justify ? `smp-justifyContent-${l.justify}` : ""} ${l.align ? `smp-alignItems-${l.align}` : ""}`,
|
|
4748
|
+
children: /* @__PURE__ */ v.jsx($e, { label: l.title })
|
|
4739
4749
|
}
|
|
4740
4750
|
),
|
|
4741
|
-
|
|
4742
|
-
] }) :
|
|
4743
|
-
}, u = (d,
|
|
4744
|
-
const
|
|
4745
|
-
gridColumnStart:
|
|
4746
|
-
gridColumnEnd:
|
|
4747
|
-
},
|
|
4748
|
-
return
|
|
4751
|
+
d
|
|
4752
|
+
] }) : d;
|
|
4753
|
+
}, u = (l, d, p, m) => {
|
|
4754
|
+
const g = l.colSpan !== void 0 ? l.colSpan > 0 ? l.colSpan : l.colStart !== void 0 && l.colStart < 1 ? 1 : null : null, x = g !== null ? `span ${g}` : l.colStart, S = l.colEnd !== void 0 && l.colEnd > 0 ? l.colEnd : "", E = {
|
|
4755
|
+
gridColumnStart: x,
|
|
4756
|
+
gridColumnEnd: S
|
|
4757
|
+
}, O = `${pe["smp-layout-cell-container"]} ${p ? `smp-justifyContent-${p}` : ""} ${m ? `smp-alignItems-${m}` : ""}`;
|
|
4758
|
+
return d ? /* @__PURE__ */ v.jsx(
|
|
4749
4759
|
"div",
|
|
4750
4760
|
{
|
|
4751
|
-
className:
|
|
4752
|
-
style: { ...
|
|
4753
|
-
"smp-id":
|
|
4754
|
-
children: /* @__PURE__ */ v.jsx(Ot, { ...
|
|
4761
|
+
className: O,
|
|
4762
|
+
style: { ...E },
|
|
4763
|
+
"smp-id": l.id,
|
|
4764
|
+
children: /* @__PURE__ */ v.jsx(Ot, { ...d })
|
|
4755
4765
|
},
|
|
4756
|
-
|
|
4766
|
+
l.id
|
|
4757
4767
|
) : /* @__PURE__ */ v.jsx(v.Fragment, {});
|
|
4758
4768
|
};
|
|
4759
|
-
return /* @__PURE__ */ v.jsx("div", { className: o.container, style:
|
|
4769
|
+
return /* @__PURE__ */ v.jsx("div", { className: o.container, style: f, "smp-id": "layout", children: s == null ? void 0 : s.map((l) => c(l)) });
|
|
4760
4770
|
}, ws = ({ data: r, onClick: e, onEnter: t }) => {
|
|
4761
4771
|
var i, o;
|
|
4762
4772
|
const [n, s] = Z(), a = ye(
|
|
4763
|
-
(
|
|
4764
|
-
var u,
|
|
4765
|
-
if (!((u =
|
|
4773
|
+
(f) => {
|
|
4774
|
+
var u, l;
|
|
4775
|
+
if (!((u = f.rows) != null && u.length) || !((l = f.columns) != null && l.length))
|
|
4766
4776
|
return {};
|
|
4767
|
-
const
|
|
4768
|
-
return
|
|
4769
|
-
const m =
|
|
4777
|
+
const c = f.rows[0];
|
|
4778
|
+
return f.columns.filter((d) => d.visible).reduce((d, p) => {
|
|
4779
|
+
const m = c.cells[p.name], g = {
|
|
4770
4780
|
...m,
|
|
4771
4781
|
onChange: (x) => {
|
|
4772
|
-
s((
|
|
4773
|
-
...
|
|
4774
|
-
[
|
|
4775
|
-
...
|
|
4782
|
+
s((S) => S && {
|
|
4783
|
+
...S,
|
|
4784
|
+
[p.name]: {
|
|
4785
|
+
...S[p.name],
|
|
4776
4786
|
obj: {
|
|
4777
|
-
...
|
|
4787
|
+
...S[p.name].obj,
|
|
4778
4788
|
k: x.obj.k
|
|
4779
4789
|
}
|
|
4780
4790
|
}
|
|
@@ -4791,7 +4801,7 @@ const Ge = (r, e, t) => ({
|
|
|
4791
4801
|
};
|
|
4792
4802
|
return {
|
|
4793
4803
|
...d,
|
|
4794
|
-
[
|
|
4804
|
+
[p.name]: g
|
|
4795
4805
|
};
|
|
4796
4806
|
}, {});
|
|
4797
4807
|
},
|
|
@@ -4820,10 +4830,10 @@ const Ge = (r, e, t) => ({
|
|
|
4820
4830
|
onClick: a,
|
|
4821
4831
|
onEnter: i,
|
|
4822
4832
|
onClose: o,
|
|
4823
|
-
loadOptions:
|
|
4833
|
+
loadOptions: f
|
|
4824
4834
|
}) => {
|
|
4825
|
-
var
|
|
4826
|
-
const [
|
|
4835
|
+
var O, w;
|
|
4836
|
+
const [c, u] = Z(), [l, d] = Z(t ?? !0), p = ve(null), m = s.trim() ? s : "100vh", g = ye(
|
|
4827
4837
|
(b) => {
|
|
4828
4838
|
var C, Y;
|
|
4829
4839
|
if (!((C = b == null ? void 0 : b.rows) != null && C.length) || !((Y = b == null ? void 0 : b.columns) != null && Y.length))
|
|
@@ -4831,14 +4841,14 @@ const Ge = (r, e, t) => ({
|
|
|
4831
4841
|
const k = b.rows[0];
|
|
4832
4842
|
return b.columns.filter((j) => j.visible ?? !0).reduce((j, P) => {
|
|
4833
4843
|
const D = k.cells[P.name];
|
|
4834
|
-
if (!D || !
|
|
4844
|
+
if (!D || !l && ce(n) && D.shape !== ne.BUTTON && D.shape !== ne.BUTTON_LIST)
|
|
4835
4845
|
return j;
|
|
4836
4846
|
const _ = {
|
|
4837
4847
|
...D,
|
|
4838
4848
|
onChange: (U) => {
|
|
4839
4849
|
u((H) => {
|
|
4840
|
-
const
|
|
4841
|
-
return
|
|
4850
|
+
const K = { ...H };
|
|
4851
|
+
return K != null && K[P.name] && (K[P.name].obj.k = U.obj.k), K;
|
|
4842
4852
|
});
|
|
4843
4853
|
},
|
|
4844
4854
|
onClick: (U) => {
|
|
@@ -4848,9 +4858,9 @@ const Ge = (r, e, t) => ({
|
|
|
4848
4858
|
i && i(U);
|
|
4849
4859
|
}
|
|
4850
4860
|
};
|
|
4851
|
-
return
|
|
4852
|
-
(
|
|
4853
|
-
)), !
|
|
4861
|
+
return f && D.shape == ne.BUTTON_LIST && (_.onOptionsRequest = (U, H) => f(U, H).then(
|
|
4862
|
+
(K) => ss(K)
|
|
4863
|
+
)), !l && ce(n) && (_.data = {
|
|
4854
4864
|
..._.data,
|
|
4855
4865
|
showText: !1,
|
|
4856
4866
|
justify: "center"
|
|
@@ -4860,42 +4870,42 @@ const Ge = (r, e, t) => ({
|
|
|
4860
4870
|
};
|
|
4861
4871
|
}, {});
|
|
4862
4872
|
},
|
|
4863
|
-
[
|
|
4873
|
+
[l, n, a, i, f]
|
|
4864
4874
|
), x = ye(() => {
|
|
4865
4875
|
o == null || o();
|
|
4866
|
-
}, [o]),
|
|
4876
|
+
}, [o]), S = () => {
|
|
4867
4877
|
ce(n) ? d((b) => !b) : (d(!1), o == null || o());
|
|
4868
4878
|
};
|
|
4869
4879
|
if (oe(() => {
|
|
4870
4880
|
u(g(r));
|
|
4871
4881
|
}, [r]), oe(() => {
|
|
4872
|
-
if (!
|
|
4882
|
+
if (!p.current)
|
|
4873
4883
|
return;
|
|
4874
4884
|
if (!ce(n)) {
|
|
4875
4885
|
u(g(r));
|
|
4876
4886
|
return;
|
|
4877
4887
|
}
|
|
4878
|
-
const b = getComputedStyle(
|
|
4888
|
+
const b = getComputedStyle(p.current).getPropertyValue(
|
|
4879
4889
|
"--smp-drawer-slide-transition"
|
|
4880
4890
|
);
|
|
4881
4891
|
let k = Number(b);
|
|
4882
4892
|
b.endsWith("ms") ? k = parseFloat(b) : b.endsWith("s") && (k = parseFloat(b) * 1e3), setTimeout(() => {
|
|
4883
4893
|
u(g(r));
|
|
4884
4894
|
}, k / 2);
|
|
4885
|
-
}, [
|
|
4895
|
+
}, [l, n]), oe(() => {
|
|
4886
4896
|
t !== void 0 && !ce(n) && d(t);
|
|
4887
|
-
}, [n, t]), !((
|
|
4897
|
+
}, [n, t]), !((O = r == null ? void 0 : r.rows) != null && O.length) || !((w = r.columns) != null && w.length))
|
|
4888
4898
|
return null;
|
|
4889
4899
|
const E = {
|
|
4890
|
-
drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${
|
|
4900
|
+
drawer: `smp-drawer ${ce(n) ? "smp-drawer-minified" : "smp-drawer-fixed"} ${l ? "smp-drawer-open" : ""} ${!ce(n) && !l ? "smp-drawer-no-border" : ""}`,
|
|
4891
4901
|
container: "smp-drawer-container",
|
|
4892
4902
|
containerHeader: "smp-drawer-container-header",
|
|
4893
|
-
containerIcon: `${
|
|
4903
|
+
containerIcon: `${l ? "" : "smp-drawer-container-icon-close"} smp-drawer-container-icon`,
|
|
4894
4904
|
containerLayout: "smp-drawer-container-layout",
|
|
4895
4905
|
containerLogo: "smp-drawer-container-logo",
|
|
4896
|
-
backdrop: `smp-drawer-backdrop ${
|
|
4906
|
+
backdrop: `smp-drawer-backdrop ${l ? "smp-drawer-backdrop-open" : ""}`
|
|
4897
4907
|
};
|
|
4898
|
-
return
|
|
4908
|
+
return c && /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
4899
4909
|
!ce(n) && /* @__PURE__ */ v.jsx(
|
|
4900
4910
|
"div",
|
|
4901
4911
|
{
|
|
@@ -4908,7 +4918,7 @@ const Ge = (r, e, t) => ({
|
|
|
4908
4918
|
/* @__PURE__ */ v.jsx(
|
|
4909
4919
|
"aside",
|
|
4910
4920
|
{
|
|
4911
|
-
ref:
|
|
4921
|
+
ref: p,
|
|
4912
4922
|
className: E.drawer,
|
|
4913
4923
|
style: { height: m },
|
|
4914
4924
|
"aria-label": "Drawer",
|
|
@@ -4929,15 +4939,15 @@ const Ge = (r, e, t) => ({
|
|
|
4929
4939
|
{
|
|
4930
4940
|
icon: ce(n) ? "menu_close" : "close",
|
|
4931
4941
|
title: "drawer_icon",
|
|
4932
|
-
rotated: !
|
|
4942
|
+
rotated: !l,
|
|
4933
4943
|
isInteractable: !0,
|
|
4934
|
-
onClick:
|
|
4944
|
+
onClick: S,
|
|
4935
4945
|
width: 20,
|
|
4936
4946
|
height: 20
|
|
4937
4947
|
}
|
|
4938
4948
|
) })
|
|
4939
4949
|
] }),
|
|
4940
|
-
/* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells:
|
|
4950
|
+
/* @__PURE__ */ v.jsx("div", { className: E.containerLayout, children: /* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: c }) })
|
|
4941
4951
|
] })
|
|
4942
4952
|
}
|
|
4943
4953
|
)
|
|
@@ -4951,22 +4961,22 @@ const Ge = (r, e, t) => ({
|
|
|
4951
4961
|
Fillspace: a,
|
|
4952
4962
|
FontSize: i,
|
|
4953
4963
|
Horizontal: o,
|
|
4954
|
-
ForceIcon:
|
|
4955
|
-
IconColName:
|
|
4964
|
+
ForceIcon: f,
|
|
4965
|
+
IconColName: c,
|
|
4956
4966
|
IconColor: u = "var(--smp-dashList-color-base)",
|
|
4957
|
-
NumberFormat:
|
|
4967
|
+
NumberFormat: l,
|
|
4958
4968
|
ForceUM: d,
|
|
4959
|
-
UmColName:
|
|
4969
|
+
UmColName: p,
|
|
4960
4970
|
UmColor: m = "var(--smp-dashList-color-base)",
|
|
4961
4971
|
ForceValue: g,
|
|
4962
4972
|
ValueColName: x,
|
|
4963
|
-
ValueColor:
|
|
4973
|
+
ValueColor: S = "var(--smp-dashList-color-base)",
|
|
4964
4974
|
SelectLayout: E = "1",
|
|
4965
|
-
onClick:
|
|
4975
|
+
onClick: O
|
|
4966
4976
|
}) => {
|
|
4967
|
-
const
|
|
4977
|
+
const w = "N/A", b = (e == null ? void 0 : e.columns) || [], k = (e == null ? void 0 : e.rows) || [], C = k.length > 0, Y = "--smp-dashList-color", j = "smp-layout", P = "descr", D = "icon", _ = "um", U = "value", H = i || "1em", K = "18px", z = "--smp-dashList-columns", J = "--smp-dashList-fontSize", W = {
|
|
4968
4978
|
dash: (V = "1") => {
|
|
4969
|
-
const X =
|
|
4979
|
+
const X = h(V), te = X, re = y(X, P), de = y(X, D), be = y(X, _), he = y(X, U);
|
|
4970
4980
|
return {
|
|
4971
4981
|
container: te,
|
|
4972
4982
|
descr: re,
|
|
@@ -4977,7 +4987,7 @@ const Ge = (r, e, t) => ({
|
|
|
4977
4987
|
},
|
|
4978
4988
|
dashList: `smp-dash-list ${ce(a) ? "smp-dash-list-fill-space" : ""}
|
|
4979
4989
|
${ce(o) ? "smp-dash-list-horizontal" : ""}`
|
|
4980
|
-
}, { format: L } = nt(),
|
|
4990
|
+
}, { format: L } = nt(), h = (V) => `${j}-${V}`, y = (V, X) => `${V}__${X}`, T = (V) => `${Y}-${V}`, $ = (V) => {
|
|
4981
4991
|
const X = /R(\d{1,3})G(\d{1,3})B(\d{1,3})/;
|
|
4982
4992
|
if (X.test(V)) {
|
|
4983
4993
|
const re = V.match(X) || [];
|
|
@@ -4985,9 +4995,9 @@ const Ge = (r, e, t) => ({
|
|
|
4985
4995
|
return "rgb(" + re[1] + "," + re[2] + "," + re[3] + ")";
|
|
4986
4996
|
}
|
|
4987
4997
|
return V;
|
|
4988
|
-
},
|
|
4989
|
-
if (!
|
|
4990
|
-
const [X, te] = A(
|
|
4998
|
+
}, R = (V) => {
|
|
4999
|
+
if (!l) return V;
|
|
5000
|
+
const [X, te] = A(l).map(
|
|
4991
5001
|
(Te) => parseInt(Te || "0")
|
|
4992
5002
|
), re = "0,0" + (te ? "." + "0".repeat(te) : ""), de = L(V, re, "it");
|
|
4993
5003
|
if (!X) return de;
|
|
@@ -5005,12 +5015,12 @@ const Ge = (r, e, t) => ({
|
|
|
5005
5015
|
};
|
|
5006
5016
|
return {
|
|
5007
5017
|
descr: t || X(n) || te(2) || "",
|
|
5008
|
-
icon:
|
|
5009
|
-
um: d || X(
|
|
5018
|
+
icon: f || X(c) || te(3) || "",
|
|
5019
|
+
um: d || X(p) || te(1) || "",
|
|
5010
5020
|
value: g || X(x) || te(0) || ""
|
|
5011
5021
|
};
|
|
5012
5022
|
}, F = (V) => {
|
|
5013
|
-
|
|
5023
|
+
O == null || O(V);
|
|
5014
5024
|
}, N = (V, X) => {
|
|
5015
5025
|
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), V.stopPropagation(), F(X));
|
|
5016
5026
|
}, B = ((V) => {
|
|
@@ -5022,9 +5032,9 @@ const Ge = (r, e, t) => ({
|
|
|
5022
5032
|
ue,
|
|
5023
5033
|
{
|
|
5024
5034
|
color: u,
|
|
5025
|
-
height:
|
|
5035
|
+
height: K,
|
|
5026
5036
|
icon: te,
|
|
5027
|
-
width:
|
|
5037
|
+
width: K
|
|
5028
5038
|
}
|
|
5029
5039
|
) }, `${V}-${D}`),
|
|
5030
5040
|
um: (te) => /* @__PURE__ */ v.jsx("div", { className: X.um, children: te }, `${V}-${_}`),
|
|
@@ -5034,8 +5044,8 @@ const Ge = (r, e, t) => ({
|
|
|
5034
5044
|
const { descr: X, icon: te, um: re, value: de } = M(V), be = {
|
|
5035
5045
|
[T(P)]: $(s),
|
|
5036
5046
|
[T(_)]: $(m),
|
|
5037
|
-
[T(U)]: $(
|
|
5038
|
-
}, he = [], Te =
|
|
5047
|
+
[T(U)]: $(S)
|
|
5048
|
+
}, he = [], Te = R(de);
|
|
5039
5049
|
switch (E) {
|
|
5040
5050
|
case "2":
|
|
5041
5051
|
te && he.push(B.icon(te)), he.push(B.descr(X)), he.push(
|
|
@@ -5062,10 +5072,10 @@ const Ge = (r, e, t) => ({
|
|
|
5062
5072
|
V.rowId
|
|
5063
5073
|
);
|
|
5064
5074
|
}, I = {
|
|
5065
|
-
[
|
|
5075
|
+
[z]: String(r),
|
|
5066
5076
|
[J]: H
|
|
5067
5077
|
};
|
|
5068
|
-
return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? k.map((V) => se(V)) :
|
|
5078
|
+
return /* @__PURE__ */ v.jsx("div", { className: W.dashList, style: I, children: C ? k.map((V) => se(V)) : w });
|
|
5069
5079
|
}, pt = {
|
|
5070
5080
|
"smp-table": "_smp-table_8dmh0_1",
|
|
5071
5081
|
"smp-headerCell": "_smp-headerCell_8dmh0_35",
|
|
@@ -5079,11 +5089,11 @@ const Ge = (r, e, t) => ({
|
|
|
5079
5089
|
cell: us,
|
|
5080
5090
|
leftSection: fs
|
|
5081
5091
|
};
|
|
5082
|
-
function
|
|
5092
|
+
function ze(r) {
|
|
5083
5093
|
return !!r && "children" in r;
|
|
5084
5094
|
}
|
|
5085
5095
|
function ds(r) {
|
|
5086
|
-
return !
|
|
5096
|
+
return !ze(r);
|
|
5087
5097
|
}
|
|
5088
5098
|
function ps(r) {
|
|
5089
5099
|
return JSON.stringify(r).split("").reduce((e, t) => (e << 5) - e + t.charCodeAt(0) | 0, 0).toString();
|
|
@@ -5096,14 +5106,14 @@ const Dr = ({
|
|
|
5096
5106
|
offsetTop: s
|
|
5097
5107
|
}) => {
|
|
5098
5108
|
var E;
|
|
5099
|
-
const [a, i] = Z(!1), o =
|
|
5109
|
+
const [a, i] = Z(!1), o = ze(r) && !!((E = r.children) != null && E.length), f = r.cells && Object.keys(r.cells).length > 0, c = o, u = t * 20, l = () => {
|
|
5100
5110
|
o && i(!a);
|
|
5101
5111
|
}, d = {
|
|
5102
5112
|
content: `${we.rowContent} ${o ? we.clickable : ""}`,
|
|
5103
5113
|
toggle: `${we.toggle}`,
|
|
5104
5114
|
indent: `${we.indent}`,
|
|
5105
5115
|
cell: `${we.cell}`
|
|
5106
|
-
},
|
|
5116
|
+
}, p = (O) => /* @__PURE__ */ v.jsx(Ot, { ...O }), m = () => /* @__PURE__ */ v.jsx("span", { className: d.toggle, children: c ? a ? "▶" : "▼" : " " }), g = () => /* @__PURE__ */ v.jsx(
|
|
5107
5117
|
"span",
|
|
5108
5118
|
{
|
|
5109
5119
|
className: d.indent,
|
|
@@ -5111,21 +5121,21 @@ const Dr = ({
|
|
|
5111
5121
|
"aria-hidden": "true"
|
|
5112
5122
|
}
|
|
5113
5123
|
), x = () => {
|
|
5114
|
-
const
|
|
5124
|
+
const O = ds(r) ? "" : r.decode || (f ? "" : "Untitled"), w = s ?? n * t;
|
|
5115
5125
|
return /* @__PURE__ */ v.jsxs(
|
|
5116
5126
|
"tr",
|
|
5117
5127
|
{
|
|
5118
5128
|
className: d.content,
|
|
5119
|
-
onClick:
|
|
5129
|
+
onClick: l,
|
|
5120
5130
|
role: o ? "button" : "row",
|
|
5121
5131
|
"aria-expanded": o ? !a : void 0,
|
|
5122
5132
|
style: {
|
|
5123
5133
|
height: `${n}px`,
|
|
5124
5134
|
lineHeight: `calc(${n}px - 2*2px)`,
|
|
5125
|
-
transform: `translateY(${
|
|
5135
|
+
transform: `translateY(${w}px)`
|
|
5126
5136
|
},
|
|
5127
5137
|
children: [
|
|
5128
|
-
|
|
5138
|
+
ze(r) && /* @__PURE__ */ v.jsxs(
|
|
5129
5139
|
"td",
|
|
5130
5140
|
{
|
|
5131
5141
|
className: we.leftSection,
|
|
@@ -5135,7 +5145,7 @@ const Dr = ({
|
|
|
5135
5145
|
children: [
|
|
5136
5146
|
g(),
|
|
5137
5147
|
m(),
|
|
5138
|
-
/* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children:
|
|
5148
|
+
/* @__PURE__ */ v.jsx("span", { className: we.rowLabel, children: O })
|
|
5139
5149
|
]
|
|
5140
5150
|
}
|
|
5141
5151
|
),
|
|
@@ -5148,20 +5158,20 @@ const Dr = ({
|
|
|
5148
5158
|
minWidth: e[b],
|
|
5149
5159
|
height: `${n}px`
|
|
5150
5160
|
},
|
|
5151
|
-
children:
|
|
5161
|
+
children: p(k)
|
|
5152
5162
|
},
|
|
5153
5163
|
ps(k) || b
|
|
5154
5164
|
))
|
|
5155
5165
|
]
|
|
5156
5166
|
}
|
|
5157
5167
|
);
|
|
5158
|
-
},
|
|
5159
|
-
var
|
|
5160
|
-
return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children:
|
|
5168
|
+
}, S = () => {
|
|
5169
|
+
var O;
|
|
5170
|
+
return a || !o ? null : /* @__PURE__ */ v.jsx(v.Fragment, { children: ze(r) && ((O = r.children) == null ? void 0 : O.map((w, b) => /* @__PURE__ */ v.jsx(Dr, { row: w, level: t + 1 }, `child-${b}`))) });
|
|
5161
5171
|
};
|
|
5162
5172
|
return /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
|
|
5163
5173
|
x(),
|
|
5164
|
-
|
|
5174
|
+
S()
|
|
5165
5175
|
] });
|
|
5166
5176
|
}, hs = ({
|
|
5167
5177
|
label: r,
|
|
@@ -5225,41 +5235,41 @@ function ys(r, e, t, n) {
|
|
|
5225
5235
|
const s = [];
|
|
5226
5236
|
let a = 0;
|
|
5227
5237
|
return i(r, 0, []), { flatRows: s, offset: a };
|
|
5228
|
-
function i(
|
|
5238
|
+
function i(l, d, p) {
|
|
5229
5239
|
if (d >= e.length) {
|
|
5230
|
-
u(
|
|
5240
|
+
u(l);
|
|
5231
5241
|
return;
|
|
5232
5242
|
}
|
|
5233
|
-
const m = e[d].column, g = o(
|
|
5234
|
-
for (const [x,
|
|
5235
|
-
const E = [...
|
|
5236
|
-
s.push(
|
|
5243
|
+
const m = e[d].column, g = o(l, m);
|
|
5244
|
+
for (const [x, S] of g) {
|
|
5245
|
+
const E = [...p, x], O = f(E, d), w = n.has(O);
|
|
5246
|
+
s.push(c(x, O, d, w)), a += t, w && i(S, d + 1, E);
|
|
5237
5247
|
}
|
|
5238
5248
|
}
|
|
5239
|
-
function o(
|
|
5249
|
+
function o(l, d) {
|
|
5240
5250
|
var m;
|
|
5241
|
-
const
|
|
5242
|
-
for (const g of
|
|
5251
|
+
const p = /* @__PURE__ */ new Map();
|
|
5252
|
+
for (const g of l) {
|
|
5243
5253
|
const x = ((m = g.cells[d]) == null ? void 0 : m.decode) ?? "N/D";
|
|
5244
|
-
|
|
5254
|
+
p.has(x) || p.set(x, []), p.get(x).push(g);
|
|
5245
5255
|
}
|
|
5246
|
-
return
|
|
5256
|
+
return p;
|
|
5247
5257
|
}
|
|
5248
|
-
function
|
|
5249
|
-
return `group-${
|
|
5258
|
+
function f(l, d) {
|
|
5259
|
+
return `group-${l.join("-")}-${d}`;
|
|
5250
5260
|
}
|
|
5251
|
-
function l
|
|
5261
|
+
function c(l, d, p, m) {
|
|
5252
5262
|
return {
|
|
5253
5263
|
isGroup: !0,
|
|
5254
|
-
value:
|
|
5264
|
+
value: l,
|
|
5255
5265
|
cells: {},
|
|
5256
5266
|
rowId: d,
|
|
5257
|
-
level:
|
|
5267
|
+
level: p,
|
|
5258
5268
|
isExpanded: m
|
|
5259
5269
|
};
|
|
5260
5270
|
}
|
|
5261
|
-
function u(
|
|
5262
|
-
for (const d of
|
|
5271
|
+
function u(l) {
|
|
5272
|
+
for (const d of l)
|
|
5263
5273
|
s.push(d), a += t;
|
|
5264
5274
|
}
|
|
5265
5275
|
}
|
|
@@ -5306,10 +5316,10 @@ const vs = ({
|
|
|
5306
5316
|
showGroupBar: a = !0
|
|
5307
5317
|
}) => {
|
|
5308
5318
|
var Y;
|
|
5309
|
-
const [i, o] = Z(r), [
|
|
5319
|
+
const [i, o] = Z(r), [f, c] = Z(n || []), [u, l] = Z(/* @__PURE__ */ new Set()), d = i && i.columns ? Object.fromEntries(
|
|
5310
5320
|
i.columns.map((j) => [j.name, 120])
|
|
5311
5321
|
// ADD col.width to manage existing col width
|
|
5312
|
-
) : {}, [
|
|
5322
|
+
) : {}, [p, m] = Z(d), g = ve(null);
|
|
5313
5323
|
oe(() => {
|
|
5314
5324
|
var D;
|
|
5315
5325
|
if (!i || !i.columns || i.columns.length)
|
|
@@ -5335,14 +5345,14 @@ const vs = ({
|
|
|
5335
5345
|
const U = Math.max(
|
|
5336
5346
|
...r.rows.map((W) => {
|
|
5337
5347
|
var y;
|
|
5338
|
-
const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[_.name],
|
|
5339
|
-
return
|
|
5348
|
+
const L = (y = W == null ? void 0 : W.cells) == null ? void 0 : y[_.name], h = (L == null ? void 0 : L.decode) || (L == null ? void 0 : L.value);
|
|
5349
|
+
return h ? String(h).length : 0;
|
|
5340
5350
|
}),
|
|
5341
5351
|
0
|
|
5342
|
-
), H = _.title ? _.title.length : 0,
|
|
5352
|
+
), H = _.title ? _.title.length : 0, K = Math.max(U, H);
|
|
5343
5353
|
return [
|
|
5344
5354
|
_.name,
|
|
5345
|
-
Math.max(50,
|
|
5355
|
+
Math.max(50, K * 8 + 16)
|
|
5346
5356
|
];
|
|
5347
5357
|
})
|
|
5348
5358
|
);
|
|
@@ -5350,36 +5360,36 @@ const vs = ({
|
|
|
5350
5360
|
}
|
|
5351
5361
|
m(P);
|
|
5352
5362
|
}, [s, r, i]), oe(() => {
|
|
5353
|
-
if (
|
|
5363
|
+
if (f != null && f.length && r.rows) {
|
|
5354
5364
|
const { flatRows: j } = ys(
|
|
5355
5365
|
r.rows,
|
|
5356
|
-
|
|
5366
|
+
f,
|
|
5357
5367
|
e,
|
|
5358
5368
|
u
|
|
5359
5369
|
);
|
|
5360
5370
|
o({ ...r, rows: j });
|
|
5361
5371
|
} else
|
|
5362
5372
|
o(r);
|
|
5363
|
-
}, [r,
|
|
5373
|
+
}, [r, f, u, e]);
|
|
5364
5374
|
const x = (j) => {
|
|
5365
|
-
|
|
5366
|
-
},
|
|
5375
|
+
c(gs(j, f));
|
|
5376
|
+
}, S = (j) => {
|
|
5367
5377
|
j.preventDefault();
|
|
5368
5378
|
const P = j.dataTransfer.getData("text/plain");
|
|
5369
|
-
if (!P ||
|
|
5379
|
+
if (!P || f.some((U) => U.column === P))
|
|
5370
5380
|
return;
|
|
5371
|
-
const _ = [...
|
|
5372
|
-
|
|
5381
|
+
const _ = [...f, { column: P, visible: !0 }];
|
|
5382
|
+
c(_);
|
|
5373
5383
|
}, E = (j) => {
|
|
5374
5384
|
j.preventDefault();
|
|
5375
|
-
}, { virtualItems:
|
|
5385
|
+
}, { virtualItems: O, containerProps: w, innerProps: b } = xr({
|
|
5376
5386
|
items: (i == null ? void 0 : i.rows) || [],
|
|
5377
5387
|
itemHeight: e,
|
|
5378
5388
|
containerHeight: t,
|
|
5379
5389
|
overscan: 5
|
|
5380
5390
|
}), k = (j, P) => {
|
|
5381
|
-
const D = j.clientX, _ =
|
|
5382
|
-
const
|
|
5391
|
+
const D = j.clientX, _ = p[P], U = (K) => {
|
|
5392
|
+
const z = K.clientX - D, J = Math.max(50, _ + z);
|
|
5383
5393
|
m((W) => ({
|
|
5384
5394
|
...W,
|
|
5385
5395
|
[P]: J
|
|
@@ -5397,16 +5407,16 @@ const vs = ({
|
|
|
5397
5407
|
"div",
|
|
5398
5408
|
{
|
|
5399
5409
|
className: C.smpTable,
|
|
5400
|
-
...
|
|
5410
|
+
...w,
|
|
5401
5411
|
ref: g,
|
|
5402
5412
|
children: /* @__PURE__ */ v.jsxs("table", { children: [
|
|
5403
5413
|
/* @__PURE__ */ v.jsxs("thead", { children: [
|
|
5404
5414
|
(n || a) && /* @__PURE__ */ v.jsx(
|
|
5405
5415
|
vs,
|
|
5406
5416
|
{
|
|
5407
|
-
groups:
|
|
5417
|
+
groups: f,
|
|
5408
5418
|
onChange: x,
|
|
5409
|
-
onDrop:
|
|
5419
|
+
onDrop: S,
|
|
5410
5420
|
onDragOver: E
|
|
5411
5421
|
}
|
|
5412
5422
|
),
|
|
@@ -5420,9 +5430,9 @@ const vs = ({
|
|
|
5420
5430
|
P.dataTransfer.setData("text/plain", j.name);
|
|
5421
5431
|
},
|
|
5422
5432
|
style: {
|
|
5423
|
-
width:
|
|
5424
|
-
minWidth:
|
|
5425
|
-
maxWidth:
|
|
5433
|
+
width: p[j.name],
|
|
5434
|
+
minWidth: p[j.name],
|
|
5435
|
+
maxWidth: p[j.name]
|
|
5426
5436
|
},
|
|
5427
5437
|
children: [
|
|
5428
5438
|
/* @__PURE__ */ v.jsx(
|
|
@@ -5446,7 +5456,7 @@ const vs = ({
|
|
|
5446
5456
|
)
|
|
5447
5457
|
)) })
|
|
5448
5458
|
] }),
|
|
5449
|
-
/* @__PURE__ */ v.jsx("tbody", { ...b, children:
|
|
5459
|
+
/* @__PURE__ */ v.jsx("tbody", { ...b, children: O.map(
|
|
5450
5460
|
({ item: j, index: P, offsetTop: D }) => j.isGroup ? /* @__PURE__ */ v.jsx(
|
|
5451
5461
|
hs,
|
|
5452
5462
|
{
|
|
@@ -5456,7 +5466,7 @@ const vs = ({
|
|
|
5456
5466
|
level: j.level,
|
|
5457
5467
|
onClick: () => {
|
|
5458
5468
|
const _ = j.rowId;
|
|
5459
|
-
_ &&
|
|
5469
|
+
_ && l((U) => ms(U, _));
|
|
5460
5470
|
},
|
|
5461
5471
|
isExpanded: j.isExpanded
|
|
5462
5472
|
},
|
|
@@ -5465,7 +5475,7 @@ const vs = ({
|
|
|
5465
5475
|
Dr,
|
|
5466
5476
|
{
|
|
5467
5477
|
row: j,
|
|
5468
|
-
columnWidths:
|
|
5478
|
+
columnWidths: p,
|
|
5469
5479
|
rowHeight: e,
|
|
5470
5480
|
offsetTop: D,
|
|
5471
5481
|
isGroup: !1
|
|
@@ -5486,25 +5496,25 @@ const vs = ({
|
|
|
5486
5496
|
Label: a,
|
|
5487
5497
|
LabelPosition: i = "Left",
|
|
5488
5498
|
onBlur: o,
|
|
5489
|
-
onClick:
|
|
5490
|
-
onOptionsRequest:
|
|
5499
|
+
onClick: f,
|
|
5500
|
+
onOptionsRequest: c
|
|
5491
5501
|
}) => {
|
|
5492
|
-
const [u,
|
|
5502
|
+
const [u, l] = Z();
|
|
5493
5503
|
oe(() => {
|
|
5494
|
-
|
|
5504
|
+
l(() => {
|
|
5495
5505
|
if (!r)
|
|
5496
5506
|
return;
|
|
5497
5507
|
const g = { ...r };
|
|
5498
5508
|
return e && (g.shape = e), g.shape == null && (g.shape = ne.TEXT_FIELD), s && (g.obj = Nr(s)), g;
|
|
5499
5509
|
});
|
|
5500
5510
|
}, [r, s, e]);
|
|
5501
|
-
const
|
|
5511
|
+
const p = {
|
|
5502
5512
|
container: `smp-field-container ${ce(t) ? `smp-field-position-${n}` : ""}`
|
|
5503
5513
|
}, m = () => {
|
|
5504
5514
|
ce(t) || o == null || o(u);
|
|
5505
5515
|
};
|
|
5506
5516
|
if (u)
|
|
5507
|
-
return /* @__PURE__ */ v.jsxs("div", { className:
|
|
5517
|
+
return /* @__PURE__ */ v.jsxs("div", { className: p.container, children: [
|
|
5508
5518
|
/* @__PURE__ */ v.jsx(
|
|
5509
5519
|
"div",
|
|
5510
5520
|
{
|
|
@@ -5518,8 +5528,8 @@ const vs = ({
|
|
|
5518
5528
|
Ot,
|
|
5519
5529
|
{
|
|
5520
5530
|
...u,
|
|
5521
|
-
onChange:
|
|
5522
|
-
onOptionsRequest:
|
|
5531
|
+
onChange: l,
|
|
5532
|
+
onOptionsRequest: c,
|
|
5523
5533
|
fun: r == null ? void 0 : r.fun,
|
|
5524
5534
|
onBlur: m,
|
|
5525
5535
|
label: a,
|
|
@@ -5533,7 +5543,7 @@ const vs = ({
|
|
|
5533
5543
|
De,
|
|
5534
5544
|
{
|
|
5535
5545
|
optionalDisplayValue: "Confirm",
|
|
5536
|
-
onClick: () =>
|
|
5546
|
+
onClick: () => f == null ? void 0 : f(u),
|
|
5537
5547
|
bindValue: "Confirm"
|
|
5538
5548
|
}
|
|
5539
5549
|
)
|
|
@@ -5541,65 +5551,66 @@ const vs = ({
|
|
|
5541
5551
|
}, js = ({
|
|
5542
5552
|
data: r,
|
|
5543
5553
|
readOnly: e = !1,
|
|
5544
|
-
|
|
5545
|
-
|
|
5554
|
+
hiddenSubmitButton: t = !1,
|
|
5555
|
+
optionsHandler: n,
|
|
5556
|
+
onSubmit: s
|
|
5546
5557
|
}) => {
|
|
5547
|
-
const [
|
|
5558
|
+
const [a, i] = Z({});
|
|
5548
5559
|
oe(() => {
|
|
5549
|
-
|
|
5560
|
+
i(f(r));
|
|
5550
5561
|
}, [r]);
|
|
5551
|
-
const
|
|
5552
|
-
const
|
|
5553
|
-
|
|
5554
|
-
value:
|
|
5562
|
+
const o = () => {
|
|
5563
|
+
const u = c();
|
|
5564
|
+
s({
|
|
5565
|
+
value: u
|
|
5555
5566
|
});
|
|
5556
|
-
},
|
|
5557
|
-
var
|
|
5558
|
-
if (!((
|
|
5567
|
+
}, f = (u) => {
|
|
5568
|
+
var d, p, m;
|
|
5569
|
+
if (!((d = u.rows) != null && d.length) || !((p = u.columns) != null && p.length))
|
|
5559
5570
|
return {};
|
|
5560
|
-
const
|
|
5561
|
-
return
|
|
5562
|
-
const
|
|
5563
|
-
...
|
|
5564
|
-
label:
|
|
5565
|
-
onChange: (
|
|
5566
|
-
|
|
5567
|
-
...
|
|
5568
|
-
[
|
|
5569
|
-
...
|
|
5571
|
+
const l = (m = u.rows) == null ? void 0 : m[0];
|
|
5572
|
+
return u.columns.filter((g) => g.visible ?? !0).reduce((g, x) => {
|
|
5573
|
+
const S = {
|
|
5574
|
+
...l.cells[x.name],
|
|
5575
|
+
label: x.title,
|
|
5576
|
+
onChange: (E) => {
|
|
5577
|
+
i((O) => ({
|
|
5578
|
+
...O,
|
|
5579
|
+
[x.name]: {
|
|
5580
|
+
...O[x.name],
|
|
5570
5581
|
obj: {
|
|
5571
|
-
...
|
|
5572
|
-
k:
|
|
5582
|
+
...O[x.name].obj,
|
|
5583
|
+
k: E.obj.k
|
|
5573
5584
|
},
|
|
5574
|
-
decode:
|
|
5585
|
+
decode: E.decode
|
|
5575
5586
|
}
|
|
5576
5587
|
}));
|
|
5577
5588
|
}
|
|
5578
5589
|
};
|
|
5579
|
-
return
|
|
5580
|
-
...
|
|
5581
|
-
[
|
|
5590
|
+
return S.fun && (S.shape == ne.AUTOCOMPLETE || S.shape == ne.MULTI_AUTOCOMPLETE || S.shape == ne.COMBOBOX) && (S.onOptionsRequest = (E, O) => n(E, O, r, x.name)), S.isEditable == null && (S.isEditable = !0), e && (S.isEditable = !1), S.isEditable && S.shape == null && (S.shape = ne.TEXT_FIELD), {
|
|
5591
|
+
...g,
|
|
5592
|
+
[x.name]: S
|
|
5582
5593
|
};
|
|
5583
5594
|
}, {});
|
|
5584
5595
|
}, c = () => {
|
|
5585
|
-
const
|
|
5596
|
+
const u = {
|
|
5586
5597
|
columns: [...r.columns],
|
|
5587
5598
|
rows: [{ cells: {} }]
|
|
5588
5599
|
};
|
|
5589
|
-
return Object.entries(
|
|
5590
|
-
|
|
5600
|
+
return Object.entries(a).forEach(([l, d]) => {
|
|
5601
|
+
u.rows[0].cells[l] = {
|
|
5591
5602
|
obj: {
|
|
5592
|
-
...
|
|
5603
|
+
...d.obj
|
|
5593
5604
|
},
|
|
5594
|
-
decode:
|
|
5595
|
-
shape:
|
|
5605
|
+
decode: d.decode,
|
|
5606
|
+
shape: d.shape
|
|
5596
5607
|
};
|
|
5597
5608
|
}), {
|
|
5598
5609
|
before: r,
|
|
5599
|
-
after:
|
|
5610
|
+
after: u
|
|
5600
5611
|
};
|
|
5601
5612
|
};
|
|
5602
|
-
return
|
|
5613
|
+
return a && /* @__PURE__ */ v.jsxs(
|
|
5603
5614
|
"div",
|
|
5604
5615
|
{
|
|
5605
5616
|
"data-component": "input-panel",
|
|
@@ -5610,11 +5621,11 @@ const vs = ({
|
|
|
5610
5621
|
padding: "2rem"
|
|
5611
5622
|
},
|
|
5612
5623
|
children: [
|
|
5613
|
-
/* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells:
|
|
5614
|
-
/* @__PURE__ */ v.jsx(
|
|
5624
|
+
/* @__PURE__ */ v.jsx(Rt, { layout: r.rows[0].layout, cells: a }),
|
|
5625
|
+
!t && /* @__PURE__ */ v.jsx(
|
|
5615
5626
|
De,
|
|
5616
5627
|
{
|
|
5617
|
-
onClick:
|
|
5628
|
+
onClick: o,
|
|
5618
5629
|
bindValue: "submit",
|
|
5619
5630
|
optionalDisplayValue: "Submit"
|
|
5620
5631
|
}
|