@kupola/kupola 1.7.2 → 1.7.3
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/kupola.cjs.js +17 -17
- package/dist/kupola.cjs.js.map +1 -1
- package/dist/kupola.esm.js +782 -796
- package/dist/kupola.esm.js.map +1 -1
- package/dist/kupola.umd.js +17 -17
- package/dist/kupola.umd.js.map +1 -1
- package/js/theme.js +0 -20
- package/package.json +1 -1
package/dist/kupola.esm.js
CHANGED
|
@@ -201,123 +201,123 @@ class ut {
|
|
|
201
201
|
console.error(`[KupolaLifecycle] Unhandled error in ${t.phase}:`, t.error);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
const
|
|
205
|
-
function
|
|
204
|
+
const Pa = new ut("app");
|
|
205
|
+
function $a(i = "app") {
|
|
206
206
|
return new ut(i);
|
|
207
207
|
}
|
|
208
|
-
const
|
|
208
|
+
const Me = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
209
209
|
function et(i) {
|
|
210
|
-
return
|
|
210
|
+
return Me.has(i);
|
|
211
211
|
}
|
|
212
212
|
function Te(i) {
|
|
213
213
|
return i ? i.trim() : "";
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ie(i) {
|
|
216
216
|
return i ? i.replace(/^\s+/, "") : "";
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Ae(i) {
|
|
219
219
|
return i ? i.replace(/\s+$/, "") : "";
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ze(i) {
|
|
222
222
|
return i ? i.toUpperCase() : "";
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Pe(i) {
|
|
225
225
|
return i ? i.toLowerCase() : "";
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function $e(i) {
|
|
228
228
|
return i ? i.charAt(0).toUpperCase() + i.slice(1) : "";
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Be(i) {
|
|
231
231
|
return i ? i.replace(/-(\w)/g, (t, e) => e ? e.toUpperCase() : "") : "";
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function qe(i) {
|
|
234
234
|
return i ? i.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "") : "";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Oe(i, t, e = " ") {
|
|
237
237
|
return (String(i) || "").padStart(t, e);
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Fe(i, t, e = " ") {
|
|
240
240
|
return (String(i) || "").padEnd(t, e);
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Ne(i, t, e = "...") {
|
|
243
243
|
return !i || i.length <= t ? i || "" : i.slice(0, t) + e;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Re(i, t, e) {
|
|
246
246
|
return i ? i.split(t).join(e) : "";
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Ve(i, t) {
|
|
249
249
|
return i ? i.replace(/\{\{(\w+)\}\}/g, (e, s) => t[s] !== void 0 ? t[s] : `{{${s}}}`) : "";
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function Ke(i, t) {
|
|
252
252
|
return (i || "").startsWith(t);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function We(i, t) {
|
|
255
255
|
return (i || "").endsWith(t);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ue(i, t) {
|
|
258
258
|
return (i || "").includes(t);
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function Ye(i, t) {
|
|
261
261
|
return (i || "").repeat(t);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Xe(i) {
|
|
264
264
|
return (i || "").split("").reverse().join("");
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function je(i, t) {
|
|
267
267
|
return !i || !t ? 0 : i.split(t).length - 1;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Je(i) {
|
|
270
270
|
if (!i) return "";
|
|
271
271
|
const t = document.createElement("div");
|
|
272
272
|
return t.textContent = i, t.innerHTML;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Ze(i) {
|
|
275
275
|
if (!i) return "";
|
|
276
276
|
const t = document.createElement("div");
|
|
277
277
|
return t.innerHTML = i, t.textContent;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function Ge(i = 8) {
|
|
280
280
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
281
281
|
let e = "";
|
|
282
282
|
for (let s = 0; s < i; s++)
|
|
283
283
|
e += t.charAt(Math.floor(Math.random() * t.length));
|
|
284
284
|
return e;
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function Qe() {
|
|
287
287
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
|
|
288
288
|
const t = Math.random() * 16 | 0;
|
|
289
289
|
return (i === "x" ? t : t & 3 | 8).toString(16);
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
292
|
+
const ts = { trim: Te, trimLeft: Ie, trimRight: Ae, toUpperCase: ze, toLowerCase: Pe, capitalize: $e, camelize: Be, hyphenate: qe, padStart: Oe, padEnd: Fe, truncate: Ne, replaceAll: Re, format: Ve, startsWith: Ke, endsWith: We, includes: Ue, repeat: Ye, reverse: Xe, countOccurrences: je, escapeHtml: Je, unescapeHtml: Ze, generateRandom: Ge, generateUUID: Qe };
|
|
293
|
+
function es(i) {
|
|
294
294
|
return Array.isArray(i);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function ss(i) {
|
|
297
297
|
return !i || i.length === 0;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function is(i) {
|
|
300
300
|
return i ? i.length : 0;
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ns(i, t) {
|
|
303
303
|
return i && i.length > 0 ? i[0] : t;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function rs(i, t) {
|
|
306
306
|
return i && i.length > 0 ? i[i.length - 1] : t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function as(i, t, e) {
|
|
309
309
|
return i && i[t] !== void 0 ? i[t] : e;
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function os(i, t, e) {
|
|
312
312
|
return i ? i.slice(t, e) : [];
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function ls(...i) {
|
|
315
315
|
return i.reduce((t, e) => t.concat(e || []), []);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function cs(i, t = ",") {
|
|
318
318
|
return i ? i.join(t) : "";
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function hs(i, t, e = 0) {
|
|
321
321
|
if (!i) return -1;
|
|
322
322
|
if (Number.isNaN(t)) {
|
|
323
323
|
for (let s = e; s < i.length; s++)
|
|
@@ -326,7 +326,7 @@ function ds(i, t, e = 0) {
|
|
|
326
326
|
}
|
|
327
327
|
return i.indexOf(t, e);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function ds(i, t, e) {
|
|
330
330
|
if (!i) return -1;
|
|
331
331
|
if (Number.isNaN(t)) {
|
|
332
332
|
const s = e !== void 0 ? e : i.length - 1;
|
|
@@ -336,78 +336,78 @@ function us(i, t, e) {
|
|
|
336
336
|
}
|
|
337
337
|
return i.lastIndexOf(t, e);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function us(i, t) {
|
|
340
340
|
return i ? i.includes(t) : !1;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function ps(i, ...t) {
|
|
343
343
|
return i && i.push(...t), i;
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function fs(i) {
|
|
346
346
|
return i ? i.pop() : void 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function ms(i) {
|
|
349
349
|
return i ? i.shift() : void 0;
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function gs(i, ...t) {
|
|
352
352
|
return i && i.unshift(...t), i;
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function _s(i, t) {
|
|
355
355
|
if (!i) return i;
|
|
356
356
|
const e = Number.isNaN(t) ? i.findIndex((s) => Number.isNaN(s)) : i.indexOf(t);
|
|
357
357
|
return e > -1 && i.splice(e, 1), i;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function ys(i, t) {
|
|
360
360
|
return !i || t < 0 || t >= i.length || i.splice(t, 1), i;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function vs(i, t, e) {
|
|
363
363
|
return i && (i.splice(t, 0, e), i);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function bs(i) {
|
|
366
366
|
return i ? i.slice().reverse() : [];
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function xs(i, t) {
|
|
369
369
|
return i ? i.slice().sort(t) : [];
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Es(i, t, e = "asc") {
|
|
372
372
|
return i ? i.slice().sort((s, n) => {
|
|
373
373
|
const r = typeof s == "object" ? s[t] : s, a = typeof n == "object" ? n[t] : n;
|
|
374
374
|
return r < a ? e === "asc" ? -1 : 1 : r > a ? e === "asc" ? 1 : -1 : 0;
|
|
375
375
|
}) : [];
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function ws(i, t) {
|
|
378
378
|
return i ? i.filter(t) : [];
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ks(i, t) {
|
|
381
381
|
return i ? i.map(t) : [];
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Cs(i, t, e) {
|
|
384
384
|
return i ? i.reduce(t, e) : e;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function Ss(i, t) {
|
|
387
387
|
i && i.forEach(t);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Ls(i, t) {
|
|
390
390
|
return i ? i.every(t) : !0;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Ds(i, t) {
|
|
393
393
|
return i ? i.some(t) : !1;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Hs(i, t) {
|
|
396
396
|
return i ? i.find(t) : void 0;
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Ms(i, t) {
|
|
399
399
|
return i ? i.findIndex(t) : -1;
|
|
400
400
|
}
|
|
401
401
|
function Ts(i, t = 1) {
|
|
402
402
|
return i ? i.flat(t) : [];
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(
|
|
404
|
+
function Ht(i) {
|
|
405
|
+
return i ? i.reduce((t, e) => Array.isArray(e) ? t.concat(Ht(e)) : t.concat(e), []) : [];
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Is(i) {
|
|
408
408
|
return i ? [...new Set(i)] : [];
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function As(i, t) {
|
|
411
411
|
if (!i) return [];
|
|
412
412
|
const e = /* @__PURE__ */ new Set();
|
|
413
413
|
return i.filter((s) => {
|
|
@@ -415,14 +415,14 @@ function zs(i, t) {
|
|
|
415
415
|
return e.has(n) ? !1 : (e.add(n), !0);
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function zs(i, t) {
|
|
419
419
|
if (!i || t <= 0) return [];
|
|
420
420
|
const e = [];
|
|
421
421
|
for (let s = 0; s < i.length; s += t)
|
|
422
422
|
e.push(i.slice(s, s + t));
|
|
423
423
|
return e;
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Ps(i) {
|
|
426
426
|
if (!i) return [];
|
|
427
427
|
const t = i.slice();
|
|
428
428
|
for (let e = t.length - 1; e > 0; e--) {
|
|
@@ -431,57 +431,57 @@ function $s(i) {
|
|
|
431
431
|
}
|
|
432
432
|
return t;
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function Mt(i) {
|
|
435
435
|
return i ? i.reduce((t, e) => t + (Number(e) || 0), 0) : 0;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return !i || i.length === 0 ? 0 :
|
|
437
|
+
function $s(i) {
|
|
438
|
+
return !i || i.length === 0 ? 0 : Mt(i) / i.length;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Bs(i) {
|
|
441
441
|
return i && i.length > 0 ? Math.max(...i) : -1 / 0;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function qs(i) {
|
|
444
444
|
return i && i.length > 0 ? Math.min(...i) : 1 / 0;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Os(...i) {
|
|
447
447
|
return i.length === 0 ? [] : i.reduce((t, e) => t.filter((s) => e && e.includes(s)));
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Fs(...i) {
|
|
450
450
|
return [...new Set(i.flat().filter(Boolean))];
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Ns(i, t) {
|
|
453
453
|
return i ? i.filter((e) => !t || !t.includes(e)) : [];
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Rs(...i) {
|
|
456
456
|
if (i.length === 0) return [];
|
|
457
457
|
const t = Math.max(...i.map((e) => e ? e.length : 0));
|
|
458
458
|
return Array.from({ length: t }, (e, s) => i.map((n) => n && n[s]));
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const Vs = { isArray: es, isEmpty: ss, size: is, first: ns, last: rs, get: as, slice: os, concat: ls, join: cs, indexOf: hs, lastIndexOf: ds, includes: us, push: ps, pop: fs, shift: ms, unshift: gs, remove: _s, removeAt: ys, insert: vs, reverse: bs, sort: xs, sortBy: Es, filter: ws, map: ks, reduce: Cs, forEach: Ss, every: Ls, some: Ds, find: Hs, findIndex: Ms, flat: Ts, flattenDeep: Ht, unique: Is, uniqueBy: As, chunk: zs, shuffle: Ps, sum: Mt, average: $s, max: Bs, min: qs, intersection: Os, union: Fs, difference: Ns, zip: Rs };
|
|
461
461
|
function ot(i) {
|
|
462
462
|
return i !== null && typeof i == "object" && !Array.isArray(i);
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function Ks(i) {
|
|
465
465
|
return !i || typeof i != "object" ? !0 : Object.keys(i).length === 0;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Ws(i) {
|
|
468
468
|
return i ? Object.keys(i) : [];
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Us(i) {
|
|
471
471
|
return i ? Object.values(i) : [];
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ys(i) {
|
|
474
474
|
return i ? Object.entries(i) : [];
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function Xs(i, t) {
|
|
477
477
|
return i ? Object.prototype.hasOwnProperty.call(i, t) : !1;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function js(i, t, e) {
|
|
480
480
|
if (!i) return e;
|
|
481
481
|
const s = t.split(".");
|
|
482
482
|
return s.some(et) ? e : s.reduce((n, r) => n && n[r], i) ?? e;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Js(i, t, e) {
|
|
485
485
|
if (!i || typeof i != "object") return i;
|
|
486
486
|
const s = t.split(".");
|
|
487
487
|
if (s.some(et)) return i;
|
|
@@ -491,18 +491,18 @@ function Zs(i, t, e) {
|
|
|
491
491
|
(!r[a] || typeof r[a] != "object") && (r[a] = {}), r = r[a];
|
|
492
492
|
}), r[n] = e, i;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Zs(i, t) {
|
|
495
495
|
return i ? t.reduce((e, s) => (i[s] !== void 0 && (e[s] = i[s]), e), {}) : {};
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Gs(i, t) {
|
|
498
498
|
return i ? Object.keys(i).reduce((e, s) => (t.includes(s) || (e[s] = i[s]), e), {}) : {};
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Tt(...i) {
|
|
501
501
|
return i.reduce((t, e) => (e && typeof e == "object" && Object.keys(e).forEach((s) => {
|
|
502
|
-
et(s) || (ot(e[s]) && ot(t[s]) ? t[s] =
|
|
502
|
+
et(s) || (ot(e[s]) && ot(t[s]) ? t[s] = Tt(t[s], e[s]) : t[s] = e[s]);
|
|
503
503
|
}), t), {});
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Qs(i) {
|
|
506
506
|
return i && JSON.parse(JSON.stringify(i));
|
|
507
507
|
}
|
|
508
508
|
function Y(i, t = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -527,154 +527,154 @@ function Y(i, t = /* @__PURE__ */ new WeakMap()) {
|
|
|
527
527
|
et(s) || (e[s] = Y(i[s], t));
|
|
528
528
|
}), e;
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ti(i, t) {
|
|
531
531
|
i && Object.keys(i).forEach((e) => t(i[e], e, i));
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function ei(i, t) {
|
|
534
534
|
if (!i) return {};
|
|
535
535
|
const e = {};
|
|
536
536
|
return Object.keys(i).forEach((s) => {
|
|
537
537
|
e[s] = t(i[s], s, i);
|
|
538
538
|
}), e;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function si(i, t) {
|
|
541
541
|
if (!i) return {};
|
|
542
542
|
const e = {};
|
|
543
543
|
return Object.keys(i).forEach((s) => {
|
|
544
544
|
t(i[s], s, i) && (e[s] = i[s]);
|
|
545
545
|
}), e;
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function ii(i, t, e) {
|
|
548
548
|
return i ? Object.keys(i).reduce((s, n) => t(s, i[n], n, i), e) : e;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function ni(i) {
|
|
551
551
|
return i ? Object.keys(i).map((t) => ({ key: t, value: i[t] })) : [];
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function ri(i, t, e) {
|
|
554
554
|
return i ? i.reduce((s, n) => {
|
|
555
555
|
const r = typeof n == "object" ? n[t] : n, a = e ? n[e] : n;
|
|
556
556
|
return r !== void 0 && (s[r] = a), s;
|
|
557
557
|
}, {}) : {};
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function ai(i) {
|
|
560
560
|
return i ? Object.keys(i).length : 0;
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function oi(i) {
|
|
563
563
|
if (!i) return {};
|
|
564
564
|
const t = {};
|
|
565
565
|
return Object.keys(i).forEach((e) => {
|
|
566
566
|
t[i[e]] = e;
|
|
567
567
|
}), t;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function It(i, t) {
|
|
570
570
|
if (i === t) return !0;
|
|
571
571
|
if (!i || !t || typeof i != "object" || typeof t != "object") return !1;
|
|
572
572
|
const e = Object.keys(i), s = Object.keys(t);
|
|
573
|
-
return e.length !== s.length ? !1 : e.every((n) =>
|
|
573
|
+
return e.length !== s.length ? !1 : e.every((n) => It(i[n], t[n]));
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function At(i) {
|
|
576
576
|
return i && (Object.freeze(i), Object.keys(i).forEach((t) => {
|
|
577
|
-
typeof i[t] == "object" &&
|
|
577
|
+
typeof i[t] == "object" && At(i[t]);
|
|
578
578
|
}), i);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function li(i) {
|
|
581
581
|
return i && Object.seal(i);
|
|
582
582
|
}
|
|
583
|
-
const
|
|
583
|
+
const ci = { isObject: ot, isEmpty: Ks, keys: Ws, values: Us, entries: Ys, has: Xs, get: js, set: Js, pick: Zs, omit: Gs, merge: Tt, clone: Qs, deepClone: Y, forEach: ti, map: ei, filter: si, reduce: ii, toArray: ni, fromArray: ri, size: ai, invert: oi, isEqual: It, freeze: At, seal: li };
|
|
584
584
|
function L(i) {
|
|
585
585
|
return typeof i == "number" && !isNaN(i);
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function hi(i) {
|
|
588
588
|
return Number.isInteger(i);
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function di(i) {
|
|
591
591
|
return L(i) && !Number.isInteger(i);
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function ui(i) {
|
|
594
594
|
return L(i) && i > 0;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function pi(i) {
|
|
597
597
|
return L(i) && i < 0;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function fi(i) {
|
|
600
600
|
return L(i) && i === 0;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function mi(i, t, e) {
|
|
603
603
|
return L(i) ? Math.min(Math.max(i, t), e) : i;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function gi(i, t = 0) {
|
|
606
606
|
if (!L(i)) return i;
|
|
607
607
|
const e = Math.pow(10, t);
|
|
608
608
|
return Math.round(i * e) / e;
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function _i(i) {
|
|
611
611
|
return L(i) ? Math.floor(i) : i;
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function yi(i) {
|
|
614
614
|
return L(i) ? Math.ceil(i) : i;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function vi(i) {
|
|
617
617
|
return L(i) ? Math.abs(i) : i;
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function bi(...i) {
|
|
620
620
|
const t = i.filter(L);
|
|
621
621
|
return t.length > 0 ? Math.min(...t) : void 0;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function xi(...i) {
|
|
624
624
|
const t = i.filter(L);
|
|
625
625
|
return t.length > 0 ? Math.max(...t) : void 0;
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function zt(...i) {
|
|
628
628
|
return i.flat().filter(L).reduce((e, s) => e + s, 0);
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function Ei(...i) {
|
|
631
631
|
const t = i.flat().filter(L);
|
|
632
|
-
return t.length > 0 ?
|
|
632
|
+
return t.length > 0 ? zt(t) / t.length : 0;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function Pt(i = 0, t = 1) {
|
|
635
635
|
return Math.random() * (t - i) + i;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
return Math.floor(
|
|
637
|
+
function wi(i, t) {
|
|
638
|
+
return Math.floor(Pt(i, t + 1));
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function ki(i, t = 2) {
|
|
641
641
|
return L(i) ? i.toFixed(t) : String(i);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Ci(i, t = "CNY", e = 2) {
|
|
644
644
|
return L(i) ? new Intl.NumberFormat("zh-CN", { style: "currency", currency: t, minimumFractionDigits: e, maximumFractionDigits: e }).format(i) : String(i);
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Si(i, t = 0) {
|
|
647
647
|
return L(i) ? `${(i * 100).toFixed(t)}%` : String(i);
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Li(i, t = 0) {
|
|
650
650
|
return L(i) ? i.toFixed(t) : String(i);
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function Di(i, t = 6) {
|
|
653
653
|
return L(i) ? i.toPrecision(t) : String(i);
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Hi(i) {
|
|
656
656
|
return Number.isNaN(i);
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function Mi(i) {
|
|
659
659
|
return Number.isFinite(i);
|
|
660
660
|
}
|
|
661
661
|
function Ti(i, t = 10) {
|
|
662
662
|
return Number.parseInt(i, t);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Ii(i) {
|
|
665
665
|
return Number.parseFloat(i);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Ai(i, t = 0) {
|
|
668
668
|
const e = Number(i);
|
|
669
669
|
return isNaN(e) ? t : e;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function zi(i, t, e = 0) {
|
|
672
672
|
return !L(i) || !L(t) || t === 0 ? e : i / t;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Pi(...i) {
|
|
675
675
|
return i.reduce((t, e) => !L(t) || !L(e) ? 0 : t * e, 1);
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const $i = { isNumber: L, isInteger: hi, isFloat: di, isPositive: ui, isNegative: pi, isZero: fi, clamp: mi, round: gi, floor: _i, ceil: yi, abs: vi, min: bi, max: xi, sum: zt, average: Ei, random: Pt, randomInt: wi, format: ki, formatCurrency: Ci, formatPercent: Si, toFixed: Li, toPrecision: Di, isNaN: Hi, isFinite: Mi, parseInt: Ti, parseFloat: Ii, toNumber: Ai, safeDivide: zi, safeMultiply: Pi };
|
|
678
678
|
function st() {
|
|
679
679
|
return Date.now();
|
|
680
680
|
}
|
|
@@ -682,51 +682,51 @@ function K() {
|
|
|
682
682
|
const i = /* @__PURE__ */ new Date();
|
|
683
683
|
return i.setHours(0, 0, 0, 0), i;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Bi() {
|
|
686
686
|
const i = K();
|
|
687
687
|
return i.setDate(i.getDate() + 1), i;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function qi() {
|
|
690
690
|
const i = K();
|
|
691
691
|
return i.setDate(i.getDate() - 1), i;
|
|
692
692
|
}
|
|
693
693
|
function w(i) {
|
|
694
694
|
return i instanceof Date && !isNaN(i.getTime());
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function $t(i) {
|
|
697
697
|
return w(i);
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Oi(i) {
|
|
700
700
|
const t = new Date(i);
|
|
701
|
-
return
|
|
701
|
+
return $t(t) ? t : null;
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Fi(i, t = "YYYY-MM-DD HH:mm:ss") {
|
|
704
704
|
if (!w(i)) return "";
|
|
705
705
|
const e = i.getFullYear(), s = String(i.getMonth() + 1).padStart(2, "0"), n = String(i.getDate()).padStart(2, "0"), r = String(i.getHours()).padStart(2, "0"), a = String(i.getMinutes()).padStart(2, "0"), o = String(i.getSeconds()).padStart(2, "0"), l = String(i.getMilliseconds()).padStart(3, "0"), h = ["日", "一", "二", "三", "四", "五", "六"][i.getDay()];
|
|
706
706
|
return t.replace("YYYY", e).replace("MM", s).replace("DD", n).replace("HH", r).replace("mm", a).replace("ss", o).replace("SSS", l).replace("D", i.getDate()).replace("M", i.getMonth() + 1).replace("H", i.getHours()).replace("m", i.getMinutes()).replace("s", i.getSeconds()).replace("W", h);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Ni(i) {
|
|
709
709
|
return w(i) ? i.toISOString() : "";
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Ri(i) {
|
|
712
712
|
return w(i) ? new Date(i.toUTCString()) : null;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Vi(i, t) {
|
|
715
715
|
if (!w(i)) return i;
|
|
716
716
|
const e = new Date(i);
|
|
717
717
|
return e.setDate(e.getDate() + t), e;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Ki(i, t) {
|
|
720
720
|
if (!w(i)) return i;
|
|
721
721
|
const e = new Date(i);
|
|
722
722
|
return e.setHours(e.getHours() + t), e;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
724
|
+
function Wi(i, t) {
|
|
725
725
|
if (!w(i)) return i;
|
|
726
726
|
const e = new Date(i);
|
|
727
727
|
return e.setMinutes(e.getMinutes() + t), e;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Ui(i, t) {
|
|
730
730
|
if (!w(i)) return i;
|
|
731
731
|
const e = new Date(i);
|
|
732
732
|
return e.setSeconds(e.getSeconds() + t), e;
|
|
@@ -738,85 +738,85 @@ function it(i, t) {
|
|
|
738
738
|
const s = new Date(t);
|
|
739
739
|
return s.setHours(0, 0, 0, 0), Math.floor((e.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24));
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Yi(i, t) {
|
|
742
742
|
return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60 * 60));
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Xi(i, t) {
|
|
745
745
|
return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / (1e3 * 60));
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function ji(i, t) {
|
|
748
748
|
return !w(i) || !w(t) ? 0 : Math.floor((i.getTime() - t.getTime()) / 1e3);
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ji(i) {
|
|
751
751
|
return w(i) ? it(i, K()) === 0 : !1;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function Zi(i) {
|
|
754
754
|
return w(i) ? it(i, K()) === -1 : !1;
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function Gi(i) {
|
|
757
757
|
return w(i) ? it(i, K()) === 1 : !1;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function Qi(i) {
|
|
760
760
|
return w(i) ? i.getTime() > st() : !1;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function tn(i) {
|
|
763
763
|
return w(i) ? i.getTime() < st() : !1;
|
|
764
764
|
}
|
|
765
|
-
function
|
|
765
|
+
function en(i) {
|
|
766
766
|
if (!w(i)) return !1;
|
|
767
767
|
const t = i.getFullYear();
|
|
768
768
|
return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function sn(i) {
|
|
771
771
|
return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0).getDate() : 0;
|
|
772
772
|
}
|
|
773
|
-
function
|
|
773
|
+
function nn(i) {
|
|
774
774
|
if (!w(i)) return 0;
|
|
775
775
|
const t = new Date(i.getFullYear(), 0, 1), e = i.getTime() - t.getTime();
|
|
776
776
|
return Math.ceil(e / (1e3 * 60 * 60 * 24 * 7));
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function rn(i) {
|
|
779
779
|
return w(i) ? Math.ceil((i.getMonth() + 1) / 3) : 0;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function an(i) {
|
|
782
782
|
if (!w(i)) return i;
|
|
783
783
|
const t = new Date(i);
|
|
784
784
|
return t.setHours(0, 0, 0, 0), t;
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function on(i) {
|
|
787
787
|
if (!w(i)) return i;
|
|
788
788
|
const t = new Date(i);
|
|
789
789
|
return t.setHours(23, 59, 59, 999), t;
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function ln(i) {
|
|
792
792
|
return w(i) ? new Date(i.getFullYear(), i.getMonth(), 1) : i;
|
|
793
793
|
}
|
|
794
|
-
function
|
|
794
|
+
function cn(i) {
|
|
795
795
|
return w(i) ? new Date(i.getFullYear(), i.getMonth() + 1, 0, 23, 59, 59, 999) : i;
|
|
796
796
|
}
|
|
797
|
-
function
|
|
797
|
+
function Bt(i, t = 1) {
|
|
798
798
|
if (!w(i)) return i;
|
|
799
799
|
const e = new Date(i), s = e.getDay(), n = s >= t ? s - t : s + (7 - t);
|
|
800
800
|
return e.setDate(e.getDate() - n), e.setHours(0, 0, 0, 0), e;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function hn(i, t = 1) {
|
|
803
803
|
if (!w(i)) return i;
|
|
804
|
-
const e =
|
|
804
|
+
const e = Bt(i, t), s = new Date(e);
|
|
805
805
|
return s.setDate(s.getDate() + 6), s.setHours(23, 59, 59, 999), s;
|
|
806
806
|
}
|
|
807
|
-
function
|
|
807
|
+
function dn(i) {
|
|
808
808
|
if (!w(i)) return 0;
|
|
809
809
|
const t = /* @__PURE__ */ new Date();
|
|
810
810
|
let e = t.getFullYear() - i.getFullYear();
|
|
811
811
|
return (t.getMonth() < i.getMonth() || t.getMonth() === i.getMonth() && t.getDate() < i.getDate()) && e--, Math.max(0, e);
|
|
812
812
|
}
|
|
813
|
-
function
|
|
813
|
+
function un(i) {
|
|
814
814
|
if (!w(i)) return "";
|
|
815
815
|
const e = st() - i.getTime(), s = 60 * 1e3, n = 60 * s, r = 24 * n, a = 7 * r, o = 30 * r, l = 365 * r;
|
|
816
816
|
return e < s ? "刚刚" : e < n ? `${Math.floor(e / s)}分钟前` : e < r ? `${Math.floor(e / n)}小时前` : e < a ? `${Math.floor(e / r)}天前` : e < o ? `${Math.floor(e / a)}周前` : e < l ? `${Math.floor(e / o)}个月前` : `${Math.floor(e / l)}年前`;
|
|
817
817
|
}
|
|
818
|
-
const
|
|
819
|
-
function
|
|
818
|
+
const pn = { now: st, today: K, tomorrow: Bi, yesterday: qi, isDate: w, isValid: $t, parse: Oi, format: Fi, toISO: Ni, toUTC: Ri, addDays: Vi, addHours: Ki, addMinutes: Wi, addSeconds: Ui, diffDays: it, diffHours: Yi, diffMinutes: Xi, diffSeconds: ji, isToday: Ji, isYesterday: Zi, isTomorrow: Gi, isFuture: Qi, isPast: tn, isLeapYear: en, getDaysInMonth: sn, getWeekOfYear: nn, getQuarter: rn, startOfDay: an, endOfDay: on, startOfMonth: ln, endOfMonth: cn, startOfWeek: Bt, endOfWeek: hn, getAge: dn, fromNow: un };
|
|
819
|
+
function fn(i, t, e = {}) {
|
|
820
820
|
let s = null, n = null, r = null, a = 0;
|
|
821
821
|
const o = e.leading || !1, l = e.trailing !== !1;
|
|
822
822
|
function c() {
|
|
@@ -835,7 +835,7 @@ function mn(i, t, e = {}) {
|
|
|
835
835
|
n = f, r = this, a = Date.now(), s ? (clearTimeout(s), s = setTimeout(d, u())) : h();
|
|
836
836
|
};
|
|
837
837
|
}
|
|
838
|
-
function
|
|
838
|
+
function mn(i, t, e = {}) {
|
|
839
839
|
let s = !1;
|
|
840
840
|
const n = e.trailing || !1;
|
|
841
841
|
let r = null, a = null;
|
|
@@ -848,31 +848,31 @@ function gn(i, t, e = {}) {
|
|
|
848
848
|
}, t));
|
|
849
849
|
};
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function gn(i) {
|
|
852
852
|
return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(i || "");
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function _n(i) {
|
|
855
855
|
return /^1[3-9]\d{9}$/.test(i || "");
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function yn(i) {
|
|
858
858
|
return /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w.-]*)*\/?$/.test(i || "");
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function qt(i) {
|
|
861
861
|
return /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(i || "");
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Ot(i) {
|
|
864
864
|
return /^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$/.test(i || "");
|
|
865
865
|
}
|
|
866
|
-
function
|
|
867
|
-
return
|
|
866
|
+
function vn(i) {
|
|
867
|
+
return qt(i) || Ot(i);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function bn(i) {
|
|
870
870
|
return /^[1-9]\d{5}(18|19|20)\d{2}(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[\dXx]$/.test(i || "");
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function xn(i) {
|
|
873
873
|
return /^[A-Z][0-9]{8}$|^[A-Z]{2}[0-9]{7}$/.test(i || "");
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function En(i) {
|
|
876
876
|
const t = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]{2})[0-9]{12}|3[47][0-9]{13})$/, e = i.replace(/\s/g, "");
|
|
877
877
|
if (!t.test(e)) return !1;
|
|
878
878
|
let s = 0, n = !1;
|
|
@@ -882,113 +882,113 @@ function wn(i) {
|
|
|
882
882
|
}
|
|
883
883
|
return s % 10 === 0;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Ft(i) {
|
|
886
886
|
return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(i || "");
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function Nt(i) {
|
|
889
889
|
const t = /^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/.exec(i || "");
|
|
890
890
|
return t ? t.slice(1).every((e) => parseInt(e) >= 0 && parseInt(e) <= 255) : !1;
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Rt(i) {
|
|
893
893
|
const t = /^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*([01]|0\.\d+)\)$/.exec(i || "");
|
|
894
894
|
if (!t) return !1;
|
|
895
895
|
const [, e, s, n, r] = t;
|
|
896
896
|
return parseInt(e) >= 0 && parseInt(e) <= 255 && parseInt(s) >= 0 && parseInt(s) <= 255 && parseInt(n) >= 0 && parseInt(n) <= 255 && parseFloat(r) >= 0 && parseFloat(r) <= 1;
|
|
897
897
|
}
|
|
898
|
-
function
|
|
899
|
-
return
|
|
898
|
+
function wn(i) {
|
|
899
|
+
return Ft(i) || Nt(i) || Rt(i);
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function kn(i) {
|
|
902
902
|
return !isNaN(new Date(i).getTime());
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Cn(i) {
|
|
905
905
|
try {
|
|
906
906
|
return JSON.parse(i), !0;
|
|
907
907
|
} catch {
|
|
908
908
|
return !1;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Sn(i) {
|
|
912
912
|
return !i || i.trim() === "";
|
|
913
913
|
}
|
|
914
|
-
function
|
|
914
|
+
function Ln(i) {
|
|
915
915
|
return /^\s+$/.test(i || "");
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Dn(i) {
|
|
918
918
|
return !isNaN(parseFloat(i)) && isFinite(i);
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function Hn(i) {
|
|
921
921
|
return /^-?\d+$/.test(i || "");
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Mn(i) {
|
|
924
924
|
return /^-?\d+\.\d+$/.test(i || "");
|
|
925
925
|
}
|
|
926
926
|
function Tn(i) {
|
|
927
927
|
const t = parseFloat(i);
|
|
928
928
|
return !isNaN(t) && t > 0;
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function In(i) {
|
|
931
931
|
const t = parseFloat(i);
|
|
932
932
|
return !isNaN(t) && t < 0;
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function An(i) {
|
|
935
935
|
return /^[a-zA-Z]+$/.test(i || "");
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function zn(i) {
|
|
938
938
|
return /^[a-zA-Z0-9]+$/.test(i || "");
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Pn(i) {
|
|
941
941
|
return /^[\u4e00-\u9fa5]+$/.test(i || "");
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function $n(i, t, e) {
|
|
944
944
|
const s = (i || "").length;
|
|
945
945
|
return s >= t && (e === void 0 || s <= e);
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function Bn(i, t) {
|
|
948
948
|
return (i || "").length >= t;
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function qn(i, t) {
|
|
951
951
|
return (i || "").length <= t;
|
|
952
952
|
}
|
|
953
|
-
function
|
|
953
|
+
function On(i, t) {
|
|
954
954
|
return t instanceof RegExp ? t.test(i || "") : !1;
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Fn(i, t) {
|
|
957
957
|
return String(i) === String(t);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Vt(i, t) {
|
|
960
960
|
return (i || "").includes(t);
|
|
961
961
|
}
|
|
962
|
-
function
|
|
963
|
-
return !
|
|
962
|
+
function Nn(i, t) {
|
|
963
|
+
return !Vt(i, t);
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function Rn(i) {
|
|
966
966
|
return Array.isArray(i);
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Vn(i, t, e) {
|
|
969
969
|
const s = i ? i.length : 0;
|
|
970
970
|
return s >= t && (e === void 0 || s <= e);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Kn(i, t) {
|
|
973
973
|
return i ? i.length >= t : !1;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Wn(i, t) {
|
|
976
976
|
return i ? i.length <= t : !1;
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function Un(i) {
|
|
979
979
|
return i !== null && typeof i == "object" && !Array.isArray(i);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Yn(i, t) {
|
|
982
982
|
return !i || !t || !Array.isArray(t) ? !1 : t.every((e) => Object.prototype.hasOwnProperty.call(i, e));
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function Xn(i, t) {
|
|
985
985
|
const e = {};
|
|
986
986
|
return Object.keys(t).forEach((s) => {
|
|
987
987
|
const n = i[s], r = t[s], a = [];
|
|
988
988
|
r.forEach((o) => {
|
|
989
989
|
if (typeof o == "string") {
|
|
990
990
|
const [l, ...c] = o.split(":");
|
|
991
|
-
|
|
991
|
+
Kt[l](n, ...c) || a.push(l);
|
|
992
992
|
} else if (typeof o == "function") {
|
|
993
993
|
const l = o(n, i);
|
|
994
994
|
l !== !0 && a.push(l || "validation_failed");
|
|
@@ -996,8 +996,8 @@ function jn(i, t) {
|
|
|
996
996
|
}), a.length > 0 && (e[s] = a);
|
|
997
997
|
}), { valid: Object.keys(e).length === 0, errors: e };
|
|
998
998
|
}
|
|
999
|
-
const
|
|
1000
|
-
function
|
|
999
|
+
const Kt = { isEmail: gn, isPhone: _n, isURL: yn, isIPv4: qt, isIPv6: Ot, isIP: vn, isIDCard: bn, isPassport: xn, isCreditCard: En, isHexColor: Ft, isRGB: Nt, isRGBA: Rt, isColor: wn, isDate: kn, isJSON: Cn, isEmpty: Sn, isWhitespace: Ln, isNumber: Dn, isInteger: Hn, isFloat: Mn, isPositive: Tn, isNegative: In, isAlpha: An, isAlphaNumeric: zn, isChinese: Pn, isLength: $n, minLength: Bn, maxLength: qn, matches: On, equals: Fn, contains: Vt, notContains: Nn, isArray: Rn, arrayLength: Vn, arrayMinLength: Kn, arrayMaxLength: Wn, isObject: Un, hasKeys: Yn, validate: Xn };
|
|
1000
|
+
function jn(i) {
|
|
1001
1001
|
const t = i ? String(i) : "", e = [1732584193, 4023233417, 2562383102, 271733878], s = [3614090360, 3905402710, 606105819, 3250441966, 4118548399, 1200080426, 2821735955, 4249261313, 1770035416, 2336552879, 4294925233, 2304563134, 1804603682, 4254626195, 2792965006, 1236535329, 4129170786, 3225465664, 643717713, 3921069994, 3593408605, 38016083, 3634488961, 3889429448, 568446438, 3275163606, 4107603335, 1163531501, 2850285829, 4243563512, 1735328473, 2368359562, 4294588738, 2272392833, 1839030562, 4259657740, 2763975236, 1272893353, 4139469664, 3200236656, 681279174, 3936430074, 3572445317, 76029189, 3654602809, 3873151461, 530742520, 3299628645, 4096336452, 1126891415, 2878612391, 4237533241, 1700485571, 2399980690, 4293915773, 2240044497, 1873313359, 4264355552, 2734768916, 1309151649, 4149444226, 3174756917, 718787259, 3951481745], n = [[7, 12, 17, 22], [5, 9, 14, 20], [4, 11, 16, 23], [6, 10, 15, 21]];
|
|
1002
1002
|
function r(d, u) {
|
|
1003
1003
|
return d << u | d >>> 32 - u;
|
|
@@ -1037,7 +1037,7 @@ function Jn(i) {
|
|
|
1037
1037
|
h += (d >>> 8 * u & 255).toString(16).padStart(2, "0");
|
|
1038
1038
|
}), h;
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Jn(i) {
|
|
1041
1041
|
const t = i ? String(i) : "", e = [1116352408, 1899447441, 3049323471, 3921009573, 961987163, 1508970993, 2453635748, 2870763221, 3624381080, 310598401, 607225278, 1426881987, 1925078388, 2162078206, 2614888103, 3248222580, 3835390401, 4022224774, 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, 2554220882, 2821834349, 2952996808, 3210313671, 3336571891, 3584528711, 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, 1695183700, 1986661051, 2177026350, 2456956037, 2730485921, 2820302411, 3259730800, 3345764771, 3516065817, 3600352804, 4094571909, 275423344, 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, 1747873779, 1955562222, 2024104815, 2227730452, 2361852424, 2428436474, 2756734187, 3204031479, 3329325298];
|
|
1042
1042
|
function s(c, h) {
|
|
1043
1043
|
return c >>> h | c << 32 - h;
|
|
@@ -1078,7 +1078,7 @@ function Zn(i) {
|
|
|
1078
1078
|
l += (c >>> 8 * h & 255).toString(16).padStart(2, "0");
|
|
1079
1079
|
}), l;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Zn(i) {
|
|
1082
1082
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1083
1083
|
let e = "", s = 0;
|
|
1084
1084
|
const n = i ? i.split("").map((r) => r.charCodeAt(0)) : [];
|
|
@@ -1088,7 +1088,7 @@ function Gn(i) {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
return e;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function Gn(i) {
|
|
1092
1092
|
const t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
1093
1093
|
let e = "", s = 0;
|
|
1094
1094
|
for (i = i.replace(/[^A-Za-z0-9+/=]/g, ""); s < i.length; ) {
|
|
@@ -1097,13 +1097,13 @@ function Qn(i) {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
return e;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Qn() {
|
|
1101
1101
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (i) => {
|
|
1102
1102
|
const t = Math.random() * 16 | 0;
|
|
1103
1103
|
return (i === "x" ? t : t & 3 | 8).toString(16);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
const
|
|
1106
|
+
const tr = { md5: jn, sha256: Jn, base64Encode: Zn, base64Decode: Gn, uuid: Qn }, B = /* @__PURE__ */ new Map();
|
|
1107
1107
|
async function Z(i, t = {}) {
|
|
1108
1108
|
const { crossOrigin: e = "anonymous" } = t;
|
|
1109
1109
|
return B.has(i) ? B.get(i) : new Promise((s, n) => {
|
|
@@ -1115,7 +1115,7 @@ async function Z(i, t = {}) {
|
|
|
1115
1115
|
}, r.src = i;
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
|
-
async function
|
|
1118
|
+
async function er(i, t = {}) {
|
|
1119
1119
|
const { parallel: e = !0 } = t;
|
|
1120
1120
|
if (e) return Promise.all(i.map((n) => Z(n, t)));
|
|
1121
1121
|
const s = [];
|
|
@@ -1123,7 +1123,7 @@ async function sr(i, t = {}) {
|
|
|
1123
1123
|
s.push(await Z(n, t));
|
|
1124
1124
|
return s;
|
|
1125
1125
|
}
|
|
1126
|
-
async function
|
|
1126
|
+
async function Wt(i, t = {}) {
|
|
1127
1127
|
const { type: e = "text/javascript", async: s = !0, defer: n = !1 } = t;
|
|
1128
1128
|
return B.has(i) ? B.get(i) : new Promise((r, a) => {
|
|
1129
1129
|
const o = document.createElement("script");
|
|
@@ -1134,7 +1134,7 @@ async function Yt(i, t = {}) {
|
|
|
1134
1134
|
}, o.src = i, document.head.appendChild(o);
|
|
1135
1135
|
});
|
|
1136
1136
|
}
|
|
1137
|
-
async function
|
|
1137
|
+
async function Ut(i, t = {}) {
|
|
1138
1138
|
const { media: e = "all" } = t;
|
|
1139
1139
|
return B.has(i) ? B.get(i) : new Promise((s, n) => {
|
|
1140
1140
|
const r = document.createElement("link");
|
|
@@ -1145,7 +1145,7 @@ async function Xt(i, t = {}) {
|
|
|
1145
1145
|
}, document.head.appendChild(r);
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
|
-
async function
|
|
1148
|
+
async function sr(i, t, e = {}) {
|
|
1149
1149
|
const { weight: s = "normal", style: n = "normal" } = e, r = new FontFace(i, `url(${t})`, { weight: s, style: n });
|
|
1150
1150
|
try {
|
|
1151
1151
|
return await r.load(), document.fonts.add(r), r;
|
|
@@ -1153,41 +1153,41 @@ async function ir(i, t, e = {}) {
|
|
|
1153
1153
|
throw new Error(`Failed to load font: ${i}`);
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
|
-
async function
|
|
1156
|
+
async function ir(i, t = "image") {
|
|
1157
1157
|
switch (t) {
|
|
1158
1158
|
case "image":
|
|
1159
1159
|
return Z(i);
|
|
1160
1160
|
case "script":
|
|
1161
|
-
return
|
|
1161
|
+
return Wt(i);
|
|
1162
1162
|
case "stylesheet":
|
|
1163
1163
|
case "style":
|
|
1164
|
-
return
|
|
1164
|
+
return Ut(i);
|
|
1165
1165
|
default:
|
|
1166
1166
|
throw new Error(`Unsupported preload type: ${t}`);
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function nr(i) {
|
|
1170
1170
|
return B.has(i);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function rr() {
|
|
1173
1173
|
B.clear();
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function ar(i) {
|
|
1176
1176
|
B.delete(i);
|
|
1177
1177
|
}
|
|
1178
|
-
const
|
|
1179
|
-
string:
|
|
1180
|
-
array:
|
|
1181
|
-
object:
|
|
1182
|
-
number:
|
|
1183
|
-
date:
|
|
1184
|
-
debounce:
|
|
1185
|
-
throttle:
|
|
1186
|
-
validator:
|
|
1187
|
-
crypto:
|
|
1188
|
-
preload:
|
|
1178
|
+
const or = { loadImage: Z, loadImages: er, loadScript: Wt, loadStylesheet: Ut, loadFont: sr, preload: ir, isLoaded: nr, clearCache: rr, clearCacheByUrl: ar }, Ba = {
|
|
1179
|
+
string: ts,
|
|
1180
|
+
array: Vs,
|
|
1181
|
+
object: ci,
|
|
1182
|
+
number: $i,
|
|
1183
|
+
date: pn,
|
|
1184
|
+
debounce: fn,
|
|
1185
|
+
throttle: mn,
|
|
1186
|
+
validator: Kt,
|
|
1187
|
+
crypto: tr,
|
|
1188
|
+
preload: or
|
|
1189
1189
|
};
|
|
1190
|
-
function
|
|
1190
|
+
function lr(i) {
|
|
1191
1191
|
if (!i) return "";
|
|
1192
1192
|
let t = String(i);
|
|
1193
1193
|
const e = /<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*>[\s\S]*?<\s*\/\s*\1\s*>|<\s*(script|iframe|object|embed|applet|form|base|link|meta|style)\b[^>]*\/?>/gi;
|
|
@@ -1197,20 +1197,20 @@ function cr(i) {
|
|
|
1197
1197
|
while (t !== s);
|
|
1198
1198
|
return t = t.replace(/\bon\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi, ""), t = t.replace(/(href|src|action|background)\s*=\s*(?:"[^"]*(?:javascript|vbscript|data)\s*:[^"]*"|'[^']*(?:javascript|vbscript|data)\s*:[^']*'|[^\s>]*(?:javascript|vbscript|data)\s*:[^\s>]*)/gi, '$1=""'), t = t.replace(/expression\s*\([^)]*\)/gi, ""), t;
|
|
1199
1199
|
}
|
|
1200
|
-
class
|
|
1200
|
+
class yt {
|
|
1201
1201
|
constructor() {
|
|
1202
1202
|
this.children = {}, this.keys = [];
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
class at {
|
|
1206
1206
|
constructor() {
|
|
1207
|
-
this.root = new
|
|
1207
|
+
this.root = new yt();
|
|
1208
1208
|
}
|
|
1209
1209
|
insert(t) {
|
|
1210
1210
|
let e = this.root;
|
|
1211
1211
|
const s = t.split(".");
|
|
1212
1212
|
s.forEach((n, r) => {
|
|
1213
|
-
e.children[n] || (e.children[n] = new
|
|
1213
|
+
e.children[n] || (e.children[n] = new yt()), e = e.children[n], r === s.length - 1 && e.keys.push(t);
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
1216
|
getSubKeys(t) {
|
|
@@ -1242,7 +1242,7 @@ const g = {
|
|
|
1242
1242
|
path: Symbol("reactive_path"),
|
|
1243
1243
|
isReactive: Symbol("reactive_is_reactive")
|
|
1244
1244
|
};
|
|
1245
|
-
class
|
|
1245
|
+
class cr {
|
|
1246
1246
|
constructor() {
|
|
1247
1247
|
this.rawData = {}, this.data = null, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new at(), this.updateQueue = /* @__PURE__ */ new Map(), this.isProcessing = !1, this.pendingComputed = /* @__PURE__ */ new Set(), this.persistedKeys = /* @__PURE__ */ new Map(), this.snapshots = [], this.snapshotLimit = 10, this._proxyCache = /* @__PURE__ */ new WeakMap(), this.createReactiveData();
|
|
1248
1248
|
}
|
|
@@ -1382,7 +1382,7 @@ class hr {
|
|
|
1382
1382
|
t.textContent !== String(e ?? "") && (t.textContent = e ?? "");
|
|
1383
1383
|
break;
|
|
1384
1384
|
case "html":
|
|
1385
|
-
const c =
|
|
1385
|
+
const c = lr(e);
|
|
1386
1386
|
t.innerHTML !== c && (t.innerHTML = c);
|
|
1387
1387
|
break;
|
|
1388
1388
|
case "value":
|
|
@@ -1709,7 +1709,7 @@ class hr {
|
|
|
1709
1709
|
}), this.persistedKeys.clear(), this.rawData = {}, this.observers = {}, this.elements = {}, this.computedProperties = {}, this.pathTrie = new at(), this.updateQueue.clear(), this.snapshots = [];
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
class
|
|
1712
|
+
class vt {
|
|
1713
1713
|
constructor(t, e = {}) {
|
|
1714
1714
|
this.name = t, this._stateKey = `__store_${t}__`;
|
|
1715
1715
|
const s = e.state ? e.state() : {};
|
|
@@ -1779,25 +1779,25 @@ class bt {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
|
-
class
|
|
1782
|
+
class hr {
|
|
1783
1783
|
constructor() {
|
|
1784
1784
|
this.stores = /* @__PURE__ */ new Map();
|
|
1785
1785
|
}
|
|
1786
1786
|
createStore(t, e) {
|
|
1787
|
-
const s = new
|
|
1787
|
+
const s = new vt(t, e);
|
|
1788
1788
|
return this.stores.set(t, s), s;
|
|
1789
1789
|
}
|
|
1790
1790
|
getStore(t) {
|
|
1791
1791
|
return this.stores.get(t);
|
|
1792
1792
|
}
|
|
1793
1793
|
registerStore(t) {
|
|
1794
|
-
t instanceof
|
|
1794
|
+
t instanceof vt && this.stores.set(t.name, t);
|
|
1795
1795
|
}
|
|
1796
1796
|
dispose() {
|
|
1797
1797
|
this.stores.clear();
|
|
1798
1798
|
}
|
|
1799
1799
|
}
|
|
1800
|
-
class
|
|
1800
|
+
class dr {
|
|
1801
1801
|
constructor() {
|
|
1802
1802
|
this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
|
|
1803
1803
|
}
|
|
@@ -1854,7 +1854,7 @@ class ur {
|
|
|
1854
1854
|
}), this.events = {}, this.delegatedEvents = {}, this.eventListeners = {};
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function I(i = null) {
|
|
1858
1858
|
const t = {
|
|
1859
1859
|
_value: i,
|
|
1860
1860
|
_subscribers: /* @__PURE__ */ new Set()
|
|
@@ -1874,12 +1874,12 @@ function T(i = null) {
|
|
|
1874
1874
|
}
|
|
1875
1875
|
}), t;
|
|
1876
1876
|
}
|
|
1877
|
-
const O = new
|
|
1878
|
-
function
|
|
1879
|
-
return
|
|
1877
|
+
const O = new cr(), qa = new dr(), Yt = new hr();
|
|
1878
|
+
function Oa(i, t) {
|
|
1879
|
+
return Yt.createStore(i, t);
|
|
1880
1880
|
}
|
|
1881
|
-
function
|
|
1882
|
-
return
|
|
1881
|
+
function Fa(i) {
|
|
1882
|
+
return Yt.getStore(i);
|
|
1883
1883
|
}
|
|
1884
1884
|
const M = {
|
|
1885
1885
|
paths: {
|
|
@@ -1976,15 +1976,15 @@ const M = {
|
|
|
1976
1976
|
silentErrors: !1
|
|
1977
1977
|
}
|
|
1978
1978
|
}, G = [];
|
|
1979
|
-
function
|
|
1979
|
+
function bt() {
|
|
1980
1980
|
if (typeof window < "u" && window.kupolaConfig)
|
|
1981
1981
|
try {
|
|
1982
|
-
|
|
1982
|
+
ft(M, window.kupolaConfig), Xt();
|
|
1983
1983
|
} catch (i) {
|
|
1984
1984
|
console.warn("[Kupola] Failed to parse window.kupolaConfig:", i);
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
|
-
function
|
|
1987
|
+
function Xt() {
|
|
1988
1988
|
G.forEach((i) => {
|
|
1989
1989
|
try {
|
|
1990
1990
|
i(M);
|
|
@@ -1993,33 +1993,33 @@ function Jt() {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function ur(i) {
|
|
1997
1997
|
typeof i == "function" && G.push(i);
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
1999
|
+
function Na(i) {
|
|
2000
2000
|
const t = G.indexOf(i);
|
|
2001
2001
|
t > -1 && G.splice(t, 1);
|
|
2002
2002
|
}
|
|
2003
|
-
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
2004
|
-
function
|
|
2005
|
-
|
|
2003
|
+
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", bt) : bt());
|
|
2004
|
+
function Ra(i) {
|
|
2005
|
+
ft(M, i), Xt();
|
|
2006
2006
|
}
|
|
2007
2007
|
function pt(i) {
|
|
2008
|
-
return i ?
|
|
2008
|
+
return i ? vr(M, i) : M;
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function jt() {
|
|
2011
2011
|
return M.paths.base + M.paths.icons.replace(/^\//, "");
|
|
2012
2012
|
}
|
|
2013
|
-
function
|
|
2013
|
+
function Va() {
|
|
2014
2014
|
return M.paths.base;
|
|
2015
2015
|
}
|
|
2016
|
-
function
|
|
2016
|
+
function pr() {
|
|
2017
2017
|
return M.theme.default;
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function fr() {
|
|
2020
2020
|
return M.theme.brand;
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function Ka() {
|
|
2023
2023
|
return M.http;
|
|
2024
2024
|
}
|
|
2025
2025
|
function j() {
|
|
@@ -2031,29 +2031,28 @@ function W() {
|
|
|
2031
2031
|
function nt() {
|
|
2032
2032
|
return M.security;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function mr() {
|
|
2035
2035
|
return M.performance;
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function gr() {
|
|
2038
2038
|
return M.message;
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2040
|
+
function _r() {
|
|
2041
2041
|
return M.notification;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function yr() {
|
|
2044
2044
|
return M.validation;
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function ft(i, t) {
|
|
2047
2047
|
for (const e in t)
|
|
2048
|
-
t[e] instanceof Object && e in i && i[e] instanceof Object ?
|
|
2048
|
+
t[e] instanceof Object && e in i && i[e] instanceof Object ? ft(i[e], t[e]) : i[e] = t[e];
|
|
2049
2049
|
return i;
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function vr(i, t) {
|
|
2052
2052
|
return t.split(".").reduce((e, s) => (e && e[s]) !== void 0 ? e[s] : void 0, i);
|
|
2053
2053
|
}
|
|
2054
|
-
const
|
|
2055
|
-
|
|
2056
|
-
pr((i) => {
|
|
2054
|
+
const Jt = "kupola-theme", Zt = "kupola-brand";
|
|
2055
|
+
ur((i) => {
|
|
2057
2056
|
const t = document.querySelector("[data-theme-toggle]");
|
|
2058
2057
|
if (t) {
|
|
2059
2058
|
const e = F();
|
|
@@ -2074,11 +2073,11 @@ const X = [
|
|
|
2074
2073
|
{ id: "roulan", name: "柔蓝", color: "#106898" }
|
|
2075
2074
|
];
|
|
2076
2075
|
function F() {
|
|
2077
|
-
return localStorage.getItem(
|
|
2076
|
+
return localStorage.getItem(Jt) || pr();
|
|
2078
2077
|
}
|
|
2079
2078
|
function Q(i) {
|
|
2080
2079
|
if (i !== "dark" && i !== "light") return;
|
|
2081
|
-
document.documentElement.setAttribute("data-theme", i), localStorage.setItem(
|
|
2080
|
+
document.documentElement.setAttribute("data-theme", i), localStorage.setItem(Jt, i);
|
|
2082
2081
|
const t = document.querySelector("[data-theme-toggle]");
|
|
2083
2082
|
if (t) {
|
|
2084
2083
|
t.setAttribute("data-current-theme", i);
|
|
@@ -2090,12 +2089,12 @@ function Q(i) {
|
|
|
2090
2089
|
}
|
|
2091
2090
|
}
|
|
2092
2091
|
function J() {
|
|
2093
|
-
return localStorage.getItem(
|
|
2092
|
+
return localStorage.getItem(Zt) || fr();
|
|
2094
2093
|
}
|
|
2095
2094
|
function lt(i) {
|
|
2096
2095
|
const t = X.find((n) => n.id === i);
|
|
2097
2096
|
if (!t) return;
|
|
2098
|
-
document.documentElement.setAttribute("data-brand", i), localStorage.setItem(
|
|
2097
|
+
document.documentElement.setAttribute("data-brand", i), localStorage.setItem(Zt, i);
|
|
2099
2098
|
const e = document.querySelector("[data-brand-toggle]");
|
|
2100
2099
|
if (e) {
|
|
2101
2100
|
e.setAttribute("data-current-brand", i);
|
|
@@ -2111,25 +2110,12 @@ function lt(i) {
|
|
|
2111
2110
|
function ct(i) {
|
|
2112
2111
|
const t = i.querySelector(".theme-icon");
|
|
2113
2112
|
if (t) {
|
|
2114
|
-
const e = F(), s =
|
|
2113
|
+
const e = F(), s = jt();
|
|
2115
2114
|
t.src = e === "dark" ? s + "sun.svg" : s + "moon.svg";
|
|
2116
2115
|
}
|
|
2117
2116
|
}
|
|
2118
|
-
function
|
|
2119
|
-
const i = document.querySelector("[data-theme-toggle]");
|
|
2120
|
-
if (!Et && (Et = !0, i)) {
|
|
2121
|
-
const o = i.querySelector(".theme-icon");
|
|
2122
|
-
if (o && o.src && ft() === "/icons/") {
|
|
2123
|
-
const c = o.src.substring(0, o.src.lastIndexOf("/") + 1), h = window.location.pathname.substring(0, window.location.pathname.lastIndexOf("/") + 1), d = c.replace(window.location.origin + h, "");
|
|
2124
|
-
d !== c && fr({
|
|
2125
|
-
paths: {
|
|
2126
|
-
icons: d,
|
|
2127
|
-
base: h
|
|
2128
|
-
}
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
const t = F();
|
|
2117
|
+
function br() {
|
|
2118
|
+
const i = document.querySelector("[data-theme-toggle]"), t = F();
|
|
2133
2119
|
Q(t);
|
|
2134
2120
|
const e = J();
|
|
2135
2121
|
if (lt(e), i) {
|
|
@@ -2167,19 +2153,19 @@ function Er() {
|
|
|
2167
2153
|
});
|
|
2168
2154
|
});
|
|
2169
2155
|
}
|
|
2170
|
-
function
|
|
2156
|
+
function Wa() {
|
|
2171
2157
|
const i = document.createElement("button");
|
|
2172
2158
|
i.setAttribute("data-theme-toggle", ""), i.setAttribute("data-current-theme", F()), i.className = "ds-btn ds-btn--ghost ds-btn--sm ds-btn--icon", i.style.position = "fixed", i.style.top = "16px", i.style.right = "16px", i.style.zIndex = "9999";
|
|
2173
2159
|
const t = document.createElement("img");
|
|
2174
2160
|
t.className = "theme-icon";
|
|
2175
|
-
const e =
|
|
2161
|
+
const e = jt();
|
|
2176
2162
|
return t.src = F() === "dark" ? e + "sun.svg" : e + "moon.svg", t.width = 14, t.height = 14, t.alt = "Toggle theme", i.appendChild(t), document.body.appendChild(i), i.onclick = function(s) {
|
|
2177
2163
|
s.preventDefault();
|
|
2178
2164
|
const r = F() === "dark" ? "light" : "dark";
|
|
2179
2165
|
Q(r);
|
|
2180
2166
|
}, i;
|
|
2181
2167
|
}
|
|
2182
|
-
function
|
|
2168
|
+
function Ua() {
|
|
2183
2169
|
const i = document.createElement("div");
|
|
2184
2170
|
i.id = "brand-picker-auto", i.style.position = "fixed", i.style.top = "56px", i.style.right = "16px", i.style.zIndex = "9998", i.style.display = "none", i.style.padding = "12px", i.style.width = "200px", i.style.gridTemplateColumns = "repeat(3, 1fr)", i.style.gap = "6px", i.style.backgroundColor = "var(--bg-base-secondary)", i.style.border = "1px solid var(--border-neutral-l1)", i.style.borderRadius = "8px", i.style.boxShadow = "0 4px 20px rgba(0, 0, 0, 0.2)", i.style.overflow = "hidden", X.forEach((a) => {
|
|
2185
2171
|
const o = document.createElement("button");
|
|
@@ -2210,7 +2196,7 @@ function Ya() {
|
|
|
2210
2196
|
});
|
|
2211
2197
|
}), { toggleBtn: t, container: i };
|
|
2212
2198
|
}
|
|
2213
|
-
function
|
|
2199
|
+
function Ya(i, t = {}) {
|
|
2214
2200
|
const s = nt()?.sanitizeHtml || {};
|
|
2215
2201
|
if (!s.enabled && !t.force)
|
|
2216
2202
|
return i;
|
|
@@ -2230,16 +2216,16 @@ function Xa(i, t = {}) {
|
|
|
2230
2216
|
});
|
|
2231
2217
|
}), o.body.innerHTML;
|
|
2232
2218
|
}
|
|
2233
|
-
function
|
|
2219
|
+
function Xa(i) {
|
|
2234
2220
|
if (typeof i != "string")
|
|
2235
2221
|
return i;
|
|
2236
2222
|
const t = document.createElement("div");
|
|
2237
2223
|
return t.textContent = i, t.innerHTML;
|
|
2238
2224
|
}
|
|
2239
|
-
function
|
|
2225
|
+
function ja(i) {
|
|
2240
2226
|
return typeof i != "string" ? i : new DOMParser().parseFromString(i, "text/html").body.textContent || "";
|
|
2241
2227
|
}
|
|
2242
|
-
function
|
|
2228
|
+
function Ja(i, t, e = {}) {
|
|
2243
2229
|
const n = nt()?.maskData || {};
|
|
2244
2230
|
if (!n.enabled && !e.force || i == null)
|
|
2245
2231
|
return i;
|
|
@@ -2249,7 +2235,7 @@ function Za(i, t, e = {}) {
|
|
|
2249
2235
|
const o = typeof a.regex == "string" ? new RegExp(a.regex) : a.regex;
|
|
2250
2236
|
return String(i).replace(o, a.replace);
|
|
2251
2237
|
}
|
|
2252
|
-
function
|
|
2238
|
+
function Za(i, t) {
|
|
2253
2239
|
const s = nt()?.secureId || {}, n = i || s.length || 16, r = s.charset || "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2254
2240
|
if (typeof crypto > "u" || !crypto.getRandomValues) {
|
|
2255
2241
|
let l = "";
|
|
@@ -2264,7 +2250,7 @@ function Ga(i, t) {
|
|
|
2264
2250
|
o += r[a[l] % r.length];
|
|
2265
2251
|
return t ? `${t}_${o}` : o;
|
|
2266
2252
|
}
|
|
2267
|
-
class
|
|
2253
|
+
class xr {
|
|
2268
2254
|
constructor() {
|
|
2269
2255
|
this.initializers = /* @__PURE__ */ new Map(), this.cleanupFunctions = /* @__PURE__ */ new Map(), this.processedElements = /* @__PURE__ */ new WeakSet(), this._dataAttrs = ["data-component"], this._cssClasses = [], this._cachedSelector = null;
|
|
2270
2256
|
}
|
|
@@ -2371,7 +2357,7 @@ class wr {
|
|
|
2371
2357
|
}), await Promise.all(n);
|
|
2372
2358
|
}
|
|
2373
2359
|
}
|
|
2374
|
-
const E = new
|
|
2360
|
+
const E = new xr(), Er = [
|
|
2375
2361
|
{ attr: "data-dropdown", cls: "ds-dropdown" },
|
|
2376
2362
|
{ attr: "data-select", cls: "ds-select" },
|
|
2377
2363
|
{ attr: "data-datepicker", cls: "ds-datepicker" },
|
|
@@ -2393,7 +2379,7 @@ const E = new wr(), kr = [
|
|
|
2393
2379
|
{ cls: "ds-notification" },
|
|
2394
2380
|
{ cls: "ds-message" }
|
|
2395
2381
|
];
|
|
2396
|
-
for (const i of
|
|
2382
|
+
for (const i of Er)
|
|
2397
2383
|
i.attr && !E._dataAttrs.includes(i.attr) && E._dataAttrs.push(i.attr), i.cls && !E._cssClasses.includes(i.cls) && E._cssClasses.push(i.cls);
|
|
2398
2384
|
class tt {
|
|
2399
2385
|
constructor(t) {
|
|
@@ -2530,7 +2516,7 @@ class tt {
|
|
|
2530
2516
|
setup() {
|
|
2531
2517
|
}
|
|
2532
2518
|
}
|
|
2533
|
-
function
|
|
2519
|
+
function xt(i, t) {
|
|
2534
2520
|
Object.keys(t).forEach((e) => {
|
|
2535
2521
|
if (e !== "constructor")
|
|
2536
2522
|
if (typeof t[e] == "function") {
|
|
@@ -2542,7 +2528,7 @@ function wt(i, t) {
|
|
|
2542
2528
|
i.prototype[e] = t[e];
|
|
2543
2529
|
});
|
|
2544
2530
|
}
|
|
2545
|
-
class
|
|
2531
|
+
class wr {
|
|
2546
2532
|
constructor() {
|
|
2547
2533
|
this.components = /* @__PURE__ */ new Map(), this.lazyComponents = /* @__PURE__ */ new Map(), this.loadedComponents = /* @__PURE__ */ new Map(), this.instances = /* @__PURE__ */ new Map(), this.observer = null, this.mixins = /* @__PURE__ */ new Map(), this.loadingPromises = /* @__PURE__ */ new Map();
|
|
2548
2534
|
}
|
|
@@ -2586,7 +2572,7 @@ class Cr {
|
|
|
2586
2572
|
useMixin(t, ...e) {
|
|
2587
2573
|
e.forEach((s) => {
|
|
2588
2574
|
const n = this.mixins.get(s);
|
|
2589
|
-
n &&
|
|
2575
|
+
n && xt(t, n);
|
|
2590
2576
|
});
|
|
2591
2577
|
}
|
|
2592
2578
|
async bootstrap(t = document) {
|
|
@@ -2627,7 +2613,7 @@ class Cr {
|
|
|
2627
2613
|
const n = t.getAttribute("data-mixins"), r = s;
|
|
2628
2614
|
n && n.split(",").forEach((o) => {
|
|
2629
2615
|
const l = this.mixins.get(o.trim());
|
|
2630
|
-
l &&
|
|
2616
|
+
l && xt(r, l);
|
|
2631
2617
|
});
|
|
2632
2618
|
const a = new r(t);
|
|
2633
2619
|
t.__kupolaInstance = a, this.instances.set(t, a), a.mount();
|
|
@@ -2672,41 +2658,41 @@ class Cr {
|
|
|
2672
2658
|
}), this.instances.clear(), this.components.clear(), this.mixins.clear();
|
|
2673
2659
|
}
|
|
2674
2660
|
}
|
|
2675
|
-
let
|
|
2676
|
-
typeof window < "u" && (
|
|
2677
|
-
function
|
|
2661
|
+
let T = null;
|
|
2662
|
+
typeof window < "u" && (T = new wr());
|
|
2663
|
+
function kr() {
|
|
2678
2664
|
if (nt().xssProtection && typeof document < "u") {
|
|
2679
2665
|
let t = document.querySelector('meta[http-equiv="X-XSS-Protection"]');
|
|
2680
2666
|
t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-XSS-Protection"), t.setAttribute("content", "1; mode=block"), document.head.insertBefore(t, document.head.firstChild)), t = document.querySelector('meta[http-equiv="X-Content-Type-Options"]'), t || (t = document.createElement("meta"), t.setAttribute("http-equiv", "X-Content-Type-Options"), t.setAttribute("content", "nosniff"), document.head.insertBefore(t, document.head.firstChild));
|
|
2681
2667
|
}
|
|
2682
2668
|
}
|
|
2683
|
-
async function
|
|
2669
|
+
async function Et() {
|
|
2684
2670
|
if (typeof window < "u") {
|
|
2685
|
-
|
|
2671
|
+
kr();
|
|
2686
2672
|
const i = pt();
|
|
2687
|
-
O.loadPersisted(), O.bind(),
|
|
2673
|
+
O.loadPersisted(), O.bind(), br(), i.components?.autoInit !== !1 && (await E.initializeAll(), T && await T.bootstrap());
|
|
2688
2674
|
}
|
|
2689
2675
|
}
|
|
2690
|
-
typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded",
|
|
2691
|
-
function
|
|
2692
|
-
|
|
2676
|
+
typeof document < "u" && document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", Et) : typeof window < "u" && setTimeout(Et, 0);
|
|
2677
|
+
function Ga(i, t) {
|
|
2678
|
+
T && T.register(i, t);
|
|
2693
2679
|
}
|
|
2694
|
-
function
|
|
2695
|
-
|
|
2680
|
+
function Qa(i, t) {
|
|
2681
|
+
T && T.registerLazy(i, t);
|
|
2696
2682
|
}
|
|
2697
|
-
function
|
|
2698
|
-
return
|
|
2683
|
+
function to(i) {
|
|
2684
|
+
return T ? T.bootstrap(i) : Promise.resolve();
|
|
2699
2685
|
}
|
|
2700
|
-
function
|
|
2701
|
-
|
|
2686
|
+
function eo(i, t) {
|
|
2687
|
+
T && T.defineMixin(i, t);
|
|
2702
2688
|
}
|
|
2703
|
-
function
|
|
2704
|
-
|
|
2689
|
+
function so(i, ...t) {
|
|
2690
|
+
T && T.useMixin(i, ...t);
|
|
2705
2691
|
}
|
|
2706
|
-
function
|
|
2692
|
+
function io(i, t) {
|
|
2707
2693
|
if (!t || typeof t != "object")
|
|
2708
2694
|
throw new Error(`defineComponent("${i}"): options must be an object`);
|
|
2709
|
-
t.componentClass ?
|
|
2695
|
+
t.componentClass ? T && T.register(i, t.componentClass) : t.lazy && T && T.registerLazy(i, t.lazy), t.init ? E.register(i, t.init, t.cleanup || null, {
|
|
2710
2696
|
dataAttribute: t.dataAttribute,
|
|
2711
2697
|
cssClass: t.cssClass
|
|
2712
2698
|
}) : (t.dataAttribute || t.cssClass) && E.register(i, () => {
|
|
@@ -2715,7 +2701,7 @@ function no(i, t) {
|
|
|
2715
2701
|
cssClass: t.cssClass
|
|
2716
2702
|
});
|
|
2717
2703
|
}
|
|
2718
|
-
class
|
|
2704
|
+
class Gt {
|
|
2719
2705
|
constructor(t = {}) {
|
|
2720
2706
|
const e = pt();
|
|
2721
2707
|
this.locales = t.locales || {}, this.currentLocale = t.defaultLocale || e.i18n?.locale || "zh-CN", this.fallbackLocale = t.fallbackLocale || e.i18n?.fallbackLocale || "en-US", this.delimiter = t.delimiter || ".", this.missingHandler = t.missingHandler || ((s) => (console.warn(`Missing translation: ${s}`), s)), this._initFromDOM();
|
|
@@ -2813,32 +2799,32 @@ class Qt {
|
|
|
2813
2799
|
return new Intl.RelativeTimeFormat(n, s).format(t, e);
|
|
2814
2800
|
}
|
|
2815
2801
|
}
|
|
2816
|
-
const R = new
|
|
2817
|
-
function
|
|
2818
|
-
return new
|
|
2802
|
+
const R = new Gt();
|
|
2803
|
+
function no(i) {
|
|
2804
|
+
return new Gt(i);
|
|
2819
2805
|
}
|
|
2820
|
-
function
|
|
2806
|
+
function ro(i, t = {}) {
|
|
2821
2807
|
return R.t(i, t);
|
|
2822
2808
|
}
|
|
2823
|
-
function
|
|
2809
|
+
function ao(i, t, e = {}) {
|
|
2824
2810
|
return R.n(i, t, e);
|
|
2825
2811
|
}
|
|
2826
|
-
function
|
|
2812
|
+
function oo(i) {
|
|
2827
2813
|
return R.setLocale(i);
|
|
2828
2814
|
}
|
|
2829
|
-
function
|
|
2815
|
+
function lo() {
|
|
2830
2816
|
return R.getLocale();
|
|
2831
2817
|
}
|
|
2832
|
-
function
|
|
2818
|
+
function co(i, t = {}) {
|
|
2833
2819
|
return R.formatDate(i, t);
|
|
2834
2820
|
}
|
|
2835
|
-
function
|
|
2821
|
+
function ho(i, t = {}) {
|
|
2836
2822
|
return R.formatNumber(i, t);
|
|
2837
2823
|
}
|
|
2838
|
-
function
|
|
2824
|
+
function uo(i, t, e = {}) {
|
|
2839
2825
|
return R.formatCurrency(i, t, e);
|
|
2840
2826
|
}
|
|
2841
|
-
class
|
|
2827
|
+
class Cr {
|
|
2842
2828
|
constructor() {
|
|
2843
2829
|
this._listeners = /* @__PURE__ */ new Map(), this._scopeListeners = /* @__PURE__ */ new Map();
|
|
2844
2830
|
}
|
|
@@ -2968,32 +2954,32 @@ class Lr {
|
|
|
2968
2954
|
this._listeners.clear(), this._scopeListeners.clear();
|
|
2969
2955
|
}
|
|
2970
2956
|
}
|
|
2971
|
-
const H = new
|
|
2972
|
-
function
|
|
2957
|
+
const H = new Cr();
|
|
2958
|
+
function po(i, t, e, s) {
|
|
2973
2959
|
return H.on(i, t, e, s);
|
|
2974
2960
|
}
|
|
2975
|
-
function
|
|
2961
|
+
function fo(i, t, e, s) {
|
|
2976
2962
|
return H.once(i, t, e, s);
|
|
2977
2963
|
}
|
|
2978
|
-
function
|
|
2964
|
+
function mo(i, t, e) {
|
|
2979
2965
|
H.off(i, t, e);
|
|
2980
2966
|
}
|
|
2981
|
-
function
|
|
2967
|
+
function go(i, t, e) {
|
|
2982
2968
|
return H.emit(i, t, e);
|
|
2983
2969
|
}
|
|
2984
|
-
function
|
|
2970
|
+
function _o(i, t) {
|
|
2985
2971
|
return H.emitGlobal(i, t);
|
|
2986
2972
|
}
|
|
2987
|
-
function
|
|
2973
|
+
function yo(i) {
|
|
2988
2974
|
H.offByScope(i);
|
|
2989
2975
|
}
|
|
2990
|
-
function
|
|
2976
|
+
function vo(i, t) {
|
|
2991
2977
|
H.offAll(i, t);
|
|
2992
2978
|
}
|
|
2993
|
-
function
|
|
2979
|
+
function bo(i, t) {
|
|
2994
2980
|
return H.getListenerCount(i, t);
|
|
2995
2981
|
}
|
|
2996
|
-
class
|
|
2982
|
+
class Sr {
|
|
2997
2983
|
constructor(t, e = {}) {
|
|
2998
2984
|
this.element = t, this.trigger = t.querySelector(".ds-dropdown__trigger"), this.menu = t.querySelector(".ds-dropdown__menu"), this.triggerText = this.trigger ? this.trigger.querySelector("span") : null, this.scope = `dropdown-${Math.random().toString(36).substr(2, 9)}`;
|
|
2999
2985
|
const s = j();
|
|
@@ -3128,26 +3114,26 @@ class Dr {
|
|
|
3128
3114
|
}), this._mouseenterHandler && this.menu.removeEventListener("mouseenter", this._mouseenterHandler), this._mouseleaveHandler && this.menu.removeEventListener("mouseleave", this._mouseleaveHandler)), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.appendToBody && this._originalParent && this._restoreMenuFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._itemClickHandler = null, this._keydownHandler = null, this._mouseenterHandler = null, this._mouseleaveHandler = null, this._triggerMouseenterHandler = null, this._triggerMouseleaveHandler = null, this._triggerKeydownHandler = null, this.element.__kupolaInitialized = !1);
|
|
3129
3115
|
}
|
|
3130
3116
|
}
|
|
3131
|
-
function
|
|
3117
|
+
function Qt(i, t) {
|
|
3132
3118
|
i._kupolaDropdown && i._kupolaDropdown.destroy();
|
|
3133
|
-
const e = new
|
|
3119
|
+
const e = new Sr(i, t);
|
|
3134
3120
|
e.init(), i._kupolaDropdown = e;
|
|
3135
3121
|
}
|
|
3136
|
-
function
|
|
3122
|
+
function xo(i = document) {
|
|
3137
3123
|
i.querySelectorAll(".ds-dropdown").forEach((t) => {
|
|
3138
|
-
|
|
3124
|
+
Qt(t);
|
|
3139
3125
|
});
|
|
3140
3126
|
}
|
|
3141
|
-
function
|
|
3127
|
+
function te(i) {
|
|
3142
3128
|
i._kupolaDropdown && (i._kupolaDropdown.destroy(), i._kupolaDropdown = null);
|
|
3143
3129
|
}
|
|
3144
|
-
function
|
|
3130
|
+
function Eo() {
|
|
3145
3131
|
document.querySelectorAll(".ds-dropdown").forEach((i) => {
|
|
3146
|
-
|
|
3132
|
+
te(i);
|
|
3147
3133
|
});
|
|
3148
3134
|
}
|
|
3149
|
-
E.register("dropdown",
|
|
3150
|
-
class
|
|
3135
|
+
E.register("dropdown", Qt, te);
|
|
3136
|
+
class Lr {
|
|
3151
3137
|
constructor(t, e = {}) {
|
|
3152
3138
|
this.element = t, this.trigger = t.querySelector(".ds-select__trigger"), this.valueEl = t.querySelector(".ds-select__value") || t.querySelector(".ds-select__trigger span"), this.optionsEl = t.querySelector(".ds-select__options") || t.querySelector(".ds-select__menu"), this.nativeSelect = t.querySelector("select"), this.icon = t.querySelector(".ds-select__icon"), this.scope = `select-${Math.random().toString(36).substr(2, 9)}`, this.multiple = e.multiple || t.hasAttribute("data-select-multiple"), this.searchable = e.searchable || t.hasAttribute("data-select-search"), this.clearable = e.clearable || t.hasAttribute("data-select-clear"), this.placeholder = e.placeholder || t.getAttribute("data-select-placeholder") || "", this.disabled = e.disabled || t.hasAttribute("data-select-disabled"), this.maxSelection = e.maxSelection || parseInt(t.getAttribute("data-select-max")) || 1 / 0, this.remoteMethod = e.remoteMethod || null, this.onChange = e.onChange || null, this.appendToBody = e.appendToBody !== !1, this.isOpen = !1, this.selectedValues = /* @__PURE__ */ new Set(), this.allOptions = [], this.filteredOptions = [], this.focusIndex = -1, this.searchInput = null, this.clearBtn = null, this.tagsWrap = null, this._originalParent = null, this._originalPosition = null, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._optionClickHandler = null, this._keydownHandler = null;
|
|
3153
3139
|
}
|
|
@@ -3393,20 +3379,20 @@ class Hr {
|
|
|
3393
3379
|
}), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this.searchInput && this.searchInput.remove(), this.clearBtn && this.clearBtn.remove(), this.tagsWrap && this.tagsWrap.remove(), this.appendToBody && this._originalParent && this._restoreOptionsFromBody(), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._optionClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
|
|
3394
3380
|
}
|
|
3395
3381
|
}
|
|
3396
|
-
function
|
|
3397
|
-
const e = new
|
|
3382
|
+
function ee(i, t) {
|
|
3383
|
+
const e = new Lr(i, t);
|
|
3398
3384
|
e.init(), i._kupolaSelect = e;
|
|
3399
3385
|
}
|
|
3400
|
-
function
|
|
3386
|
+
function wo(i = document) {
|
|
3401
3387
|
i.querySelectorAll(".ds-select").forEach((t) => {
|
|
3402
|
-
|
|
3388
|
+
ee(t);
|
|
3403
3389
|
});
|
|
3404
3390
|
}
|
|
3405
|
-
function
|
|
3391
|
+
function Dr(i) {
|
|
3406
3392
|
i._kupolaSelect && (i._kupolaSelect.destroy(), i._kupolaSelect = null);
|
|
3407
3393
|
}
|
|
3408
|
-
E.register("select",
|
|
3409
|
-
class
|
|
3394
|
+
E.register("select", ee, Dr);
|
|
3395
|
+
class Hr {
|
|
3410
3396
|
constructor(t, e = {}) {
|
|
3411
3397
|
this.element = t, this.input = t.querySelector("input"), this.endInput = t.querySelector(".ds-datepicker__end-input"), this.icon = t.querySelector(".ds-datepicker__icon"), this.calendarEl = t.querySelector(".ds-datepicker__calendar"), this.scope = `datepicker-${Math.random().toString(36).substr(2, 9)}`;
|
|
3412
3398
|
const s = j(), n = s.datepicker?.weekStart !== void 0 ? s.datepicker.weekStart : 1;
|
|
@@ -3669,20 +3655,20 @@ class Ir {
|
|
|
3669
3655
|
}), this.appendToBody && this._originalParent && this._restoreCalendarFromBody(), this._documentClickHandler = null, this._resizeHandler = null, this._documentClickListener = null, this._resizeListener = null, this._iconClickHandler = null, this._inputClickHandler = null, this._endInputClickHandler = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
|
|
3670
3656
|
}
|
|
3671
3657
|
}
|
|
3672
|
-
function
|
|
3673
|
-
const e = new
|
|
3658
|
+
function se(i, t) {
|
|
3659
|
+
const e = new Hr(i, t);
|
|
3674
3660
|
e.init(), i._kupolaDatepicker = e;
|
|
3675
3661
|
}
|
|
3676
|
-
function
|
|
3662
|
+
function ko(i = document) {
|
|
3677
3663
|
i.querySelectorAll(".ds-datepicker").forEach((t) => {
|
|
3678
|
-
|
|
3664
|
+
se(t);
|
|
3679
3665
|
});
|
|
3680
3666
|
}
|
|
3681
|
-
function
|
|
3667
|
+
function Mr(i) {
|
|
3682
3668
|
i._kupolaDatepicker && (i._kupolaDatepicker.destroy(), i._kupolaDatepicker = null);
|
|
3683
3669
|
}
|
|
3684
|
-
E.register("datepicker",
|
|
3685
|
-
class
|
|
3670
|
+
E.register("datepicker", se, Mr);
|
|
3671
|
+
class Tr {
|
|
3686
3672
|
constructor(t, e = {}) {
|
|
3687
3673
|
this.element = t, this.input = t.querySelector("input"), this.inputWrap = t.querySelector(".ds-timepicker__input-wrap"), this.panelEl = null, this.scope = `timepicker-${Math.random().toString(36).substr(2, 9)}`, this.showSeconds = e.showSeconds || t.hasAttribute("data-timepicker-seconds"), this.use12Hour = e.use12Hour || t.hasAttribute("data-timepicker-12h"), this.hourStep = e.hourStep || parseInt(t.getAttribute("data-timepicker-hour-step")) || 1, this.minuteStep = e.minuteStep || parseInt(t.getAttribute("data-timepicker-minute-step")) || 5, this.secondStep = e.secondStep || parseInt(t.getAttribute("data-timepicker-second-step")) || 5, this.minTime = e.minTime || t.getAttribute("data-timepicker-min") || null, this.maxTime = e.maxTime || t.getAttribute("data-timepicker-max") || null, this.disabledTime = e.disabledTime || null, this.placeholder = e.placeholder || t.getAttribute("data-timepicker-placeholder") || "", this.clearable = e.clearable || t.hasAttribute("data-timepicker-clear"), this.onChange = e.onChange || null, this.selectedHour = 12, this.selectedMinute = 0, this.selectedSecond = 0, this.isPM = !1, this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null;
|
|
3688
3674
|
}
|
|
@@ -3864,20 +3850,20 @@ class Ar {
|
|
|
3864
3850
|
this.element.__kupolaInitialized && (this.inputWrap && this._inputWrapClickHandler && this.inputWrap.removeEventListener("click", this._inputWrapClickHandler), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._resizeListener && this._resizeListener.unsubscribe ? this._resizeListener.unsubscribe() : this._resizeHandler && window.removeEventListener("resize", this._resizeHandler), this._keydownHandler && document.removeEventListener("keydown", this._keydownHandler), this.panelEl && (this.panelEl.remove(), this.panelEl = null), this._inputWrapClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._resizeHandler = null, this._resizeListener = null, this._keydownHandler = null, this.element.__kupolaInitialized = !1);
|
|
3865
3851
|
}
|
|
3866
3852
|
}
|
|
3867
|
-
function
|
|
3868
|
-
const e = new
|
|
3853
|
+
function ie(i, t) {
|
|
3854
|
+
const e = new Tr(i, t);
|
|
3869
3855
|
e.init(), i._kupolaTimepicker = e;
|
|
3870
3856
|
}
|
|
3871
|
-
function
|
|
3857
|
+
function Co(i = document) {
|
|
3872
3858
|
i.querySelectorAll(".ds-timepicker").forEach((t) => {
|
|
3873
|
-
|
|
3859
|
+
ie(t);
|
|
3874
3860
|
});
|
|
3875
3861
|
}
|
|
3876
|
-
function
|
|
3862
|
+
function Ir(i) {
|
|
3877
3863
|
i._kupolaTimepicker && (i._kupolaTimepicker.destroy(), i._kupolaTimepicker = null);
|
|
3878
3864
|
}
|
|
3879
|
-
E.register("timepicker",
|
|
3880
|
-
class
|
|
3865
|
+
E.register("timepicker", ie, Ir);
|
|
3866
|
+
class Ar {
|
|
3881
3867
|
constructor(t, e = {}) {
|
|
3882
3868
|
if (this.element = t, this.track = t.querySelector(".ds-slider__track"), this.fill = t.querySelector(".ds-slider__fill"), this.input = t.querySelector(".ds-slider__input"), this.valueEl = t.querySelector(".ds-slider__value"), this.range = e.range || t.hasAttribute("data-slider-range"), this.vertical = e.vertical || t.hasAttribute("data-slider-vertical"), this.disabled = e.disabled || t.hasAttribute("data-slider-disabled"), this.showTooltip = e.showTooltip !== !1, this.showMarks = e.marks || t.hasAttribute("data-slider-marks"), this.markStep = e.markStep || parseInt(t.getAttribute("data-slider-mark-step")) || 10, this.tooltipFormat = e.tooltipFormat || ((s) => s), this.onChange = e.onChange || null, this.onInput = e.onInput || null, this.inputEnd = t.querySelector(".ds-slider__input--end"), this.fillEnd = null, this.thumbStart = null, this.thumbEnd = null, this.tooltipStart = null, this.tooltipEnd = null, this.marksEl = null, this._listeners = [], this._isDragging = !1, this._activeThumb = null, !this.track || !this.fill)
|
|
3883
3869
|
throw new Error("Slider: Missing required elements");
|
|
@@ -4025,26 +4011,26 @@ class Pr {
|
|
|
4025
4011
|
this.disabled = !0, this.element.classList.add("is-disabled");
|
|
4026
4012
|
}
|
|
4027
4013
|
}
|
|
4028
|
-
function
|
|
4014
|
+
function ne(i, t) {
|
|
4029
4015
|
if (!i.__kupolaInitialized)
|
|
4030
4016
|
try {
|
|
4031
|
-
const e = new
|
|
4017
|
+
const e = new Ar(i, t);
|
|
4032
4018
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
4033
4019
|
} catch (e) {
|
|
4034
4020
|
console.error("[Slider] Error initializing:", e);
|
|
4035
4021
|
}
|
|
4036
4022
|
}
|
|
4037
|
-
function
|
|
4023
|
+
function zr(i) {
|
|
4038
4024
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
4039
4025
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4040
4026
|
}
|
|
4041
|
-
function
|
|
4027
|
+
function So() {
|
|
4042
4028
|
document.querySelectorAll(".ds-slider").forEach((i) => {
|
|
4043
|
-
|
|
4029
|
+
ne(i);
|
|
4044
4030
|
});
|
|
4045
4031
|
}
|
|
4046
|
-
E.register("slider",
|
|
4047
|
-
class
|
|
4032
|
+
E.register("slider", ne, zr);
|
|
4033
|
+
class Pr {
|
|
4048
4034
|
constructor(t, e = {}) {
|
|
4049
4035
|
this.element = t, this.track = t.querySelector(".ds-carousel__track"), this.items = t.querySelectorAll(".ds-carousel__item"), this.prevBtn = t.querySelector(".ds-carousel__prev"), this.nextBtn = t.querySelector(".ds-carousel__next"), this.indicators = t.querySelectorAll(".ds-carousel__indicator"), this.autoBtn = t.querySelector(".ds-carousel__auto"), this.mode = e.mode || t.getAttribute("data-carousel-mode") || "slide", this.vertical = e.vertical || t.hasAttribute("data-carousel-vertical"), this.autoPlay = e.autoPlay !== !1, this.interval = e.interval || parseInt(t.getAttribute("data-carousel-interval")) || 3e3, this.transitionDuration = e.transitionDuration || parseInt(t.getAttribute("data-carousel-duration")) || 500, this.loop = e.loop !== !1, this.pauseOnHover = e.pauseOnHover !== !1, this.swipe = e.swipe !== !1, this.swipeThreshold = e.swipeThreshold || 50, this.keyboardNav = e.keyboardNav || t.hasAttribute("data-carousel-keyboard"), this.onChange = e.onChange || null, this.currentIndex = 0, this.totalItems = this.items.length, this.autoPlayTimer = null, this.isAutoPlaying = !1, this.isTransitioning = !1, this.touchStartX = 0, this.touchStartY = 0, this.touchDeltaX = 0, this.touchDeltaY = 0, this.isSwiping = !1, this._mouseEnterHandler = () => {
|
|
4050
4036
|
this.pauseOnHover && this.stopAutoPlay();
|
|
@@ -4125,22 +4111,22 @@ class Br {
|
|
|
4125
4111
|
}), this._touchStartHandler && this.element.removeEventListener("touchstart", this._touchStartHandler), this._touchMoveHandler && this.element.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndHandler && this.element.removeEventListener("touchend", this._touchEndHandler), this._keydownHandler && this.element.removeEventListener("keydown", this._keydownHandler), this._prevClickHandler = null, this._nextClickHandler = null, this._autoClickHandler = null, this._indicatorClickHandlers = null;
|
|
4126
4112
|
}
|
|
4127
4113
|
}
|
|
4128
|
-
function
|
|
4114
|
+
function re(i, t) {
|
|
4129
4115
|
if (i.__kupolaInitialized) return;
|
|
4130
|
-
const e = new
|
|
4116
|
+
const e = new Pr(i, t);
|
|
4131
4117
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
4132
4118
|
}
|
|
4133
|
-
function
|
|
4119
|
+
function Lo(i = document) {
|
|
4134
4120
|
i.querySelectorAll(".ds-carousel").forEach((t) => {
|
|
4135
|
-
|
|
4121
|
+
re(t);
|
|
4136
4122
|
});
|
|
4137
4123
|
}
|
|
4138
|
-
function
|
|
4124
|
+
function $r(i) {
|
|
4139
4125
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
4140
4126
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4141
4127
|
}
|
|
4142
|
-
E.register("carousel",
|
|
4143
|
-
class
|
|
4128
|
+
E.register("carousel", re, $r);
|
|
4129
|
+
class Br {
|
|
4144
4130
|
constructor(t, e = {}) {
|
|
4145
4131
|
this.element = t, this.mask = t.querySelector(".ds-drawer-mask"), this.drawerEl = t.querySelector(".ds-drawer"), this.placement = e.placement || t.getAttribute("data-drawer-placement") || "right", this.width = e.width || t.getAttribute("data-drawer-width") || "400px", this.height = e.height || t.getAttribute("data-drawer-height") || "400px", this.escClose = e.escClose !== !1, this.maskClosable = e.maskClosable !== !1, this.showMask = e.showMask !== !1, this.onOpen = e.onOpen || null, this.onClose = e.onClose || null, this.onBeforeClose = e.onBeforeClose || null, this._keydownHandler = null, this._bindEvents();
|
|
4146
4132
|
}
|
|
@@ -4179,14 +4165,14 @@ class Or {
|
|
|
4179
4165
|
}
|
|
4180
4166
|
function ht(i, t) {
|
|
4181
4167
|
if (i.__kupolaInitialized) return;
|
|
4182
|
-
const e = new
|
|
4168
|
+
const e = new Br(i, t);
|
|
4183
4169
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
4184
4170
|
}
|
|
4185
|
-
function
|
|
4171
|
+
function qr(i) {
|
|
4186
4172
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
4187
4173
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4188
4174
|
}
|
|
4189
|
-
function
|
|
4175
|
+
function Do() {
|
|
4190
4176
|
document.querySelectorAll("[data-drawer]").forEach((i) => {
|
|
4191
4177
|
i.addEventListener("click", () => {
|
|
4192
4178
|
const t = i.getAttribute("data-drawer"), e = document.getElementById(t);
|
|
@@ -4201,7 +4187,7 @@ function Ho() {
|
|
|
4201
4187
|
t && ht(t);
|
|
4202
4188
|
});
|
|
4203
4189
|
}
|
|
4204
|
-
E.register("drawer", ht,
|
|
4190
|
+
E.register("drawer", ht, qr);
|
|
4205
4191
|
class $ {
|
|
4206
4192
|
constructor(t, e = {}) {
|
|
4207
4193
|
this.element = t, this.mask = t.querySelector(".ds-modal-mask"), this.modal = t.querySelector(".ds-modal"), this.closeBtn = t.querySelector(".ds-modal__close");
|
|
@@ -4238,7 +4224,7 @@ class $ {
|
|
|
4238
4224
|
}
|
|
4239
4225
|
}
|
|
4240
4226
|
$._openCount = 0;
|
|
4241
|
-
function
|
|
4227
|
+
function ae(i = {}) {
|
|
4242
4228
|
const {
|
|
4243
4229
|
title: t = "",
|
|
4244
4230
|
content: e = "",
|
|
@@ -4286,8 +4272,8 @@ function oe(i = {}) {
|
|
|
4286
4272
|
const z = C.querySelector(".ds-modal__body");
|
|
4287
4273
|
z && (s ? z.innerHTML = e : z.textContent = e);
|
|
4288
4274
|
const D = C.querySelector("[data-modal-confirm]"), q = C.querySelector("[data-modal-cancel]");
|
|
4289
|
-
let
|
|
4290
|
-
const
|
|
4275
|
+
let mt = !1;
|
|
4276
|
+
const gt = async () => {
|
|
4291
4277
|
if (p) {
|
|
4292
4278
|
D.disabled = !0, D.classList.add("is-loading");
|
|
4293
4279
|
try {
|
|
@@ -4300,52 +4286,52 @@ function oe(i = {}) {
|
|
|
4300
4286
|
return;
|
|
4301
4287
|
}
|
|
4302
4288
|
}
|
|
4303
|
-
|
|
4304
|
-
},
|
|
4289
|
+
mt = !0, k.close();
|
|
4290
|
+
}, _t = () => {
|
|
4305
4291
|
m && m(), k.close();
|
|
4306
4292
|
};
|
|
4307
|
-
D && D.addEventListener("click",
|
|
4308
|
-
const
|
|
4293
|
+
D && D.addEventListener("click", gt), q && q.addEventListener("click", _t);
|
|
4294
|
+
const Le = () => {
|
|
4309
4295
|
setTimeout(() => {
|
|
4310
|
-
D && D.removeEventListener("click",
|
|
4296
|
+
D && D.removeEventListener("click", gt), q && q.removeEventListener("click", _t), k.destroy(), C.remove(), _ && _(mt);
|
|
4311
4297
|
}, 300);
|
|
4312
|
-
},
|
|
4298
|
+
}, De = k.close.bind(k);
|
|
4313
4299
|
return k.close = () => {
|
|
4314
|
-
|
|
4300
|
+
De(), Le();
|
|
4315
4301
|
}, k.open(), y && setTimeout(() => y(), 50), k;
|
|
4316
4302
|
}
|
|
4317
|
-
function
|
|
4318
|
-
return typeof i == "string" && (i = { content: i }),
|
|
4303
|
+
function Ho(i) {
|
|
4304
|
+
return typeof i == "string" && (i = { content: i }), ae({
|
|
4319
4305
|
...i,
|
|
4320
4306
|
showCancel: !0,
|
|
4321
4307
|
showConfirm: !0
|
|
4322
4308
|
});
|
|
4323
4309
|
}
|
|
4324
|
-
function
|
|
4325
|
-
return typeof i == "string" && (i = { content: i }),
|
|
4310
|
+
function Mo(i) {
|
|
4311
|
+
return typeof i == "string" && (i = { content: i }), ae({
|
|
4326
4312
|
...i,
|
|
4327
4313
|
showCancel: !1,
|
|
4328
4314
|
showConfirm: !0
|
|
4329
4315
|
});
|
|
4330
4316
|
}
|
|
4331
|
-
function
|
|
4317
|
+
function oe(i) {
|
|
4332
4318
|
if (i.__kupolaInitialized)
|
|
4333
4319
|
return;
|
|
4334
4320
|
const t = new $(i);
|
|
4335
4321
|
i.__kupolaInstance = t, i.__kupolaInitialized = !0;
|
|
4336
4322
|
}
|
|
4337
|
-
function
|
|
4323
|
+
function Or(i) {
|
|
4338
4324
|
if (!i.__kupolaInitialized || !i.__kupolaInstance)
|
|
4339
4325
|
return;
|
|
4340
4326
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4341
4327
|
}
|
|
4342
4328
|
function To() {
|
|
4343
4329
|
document.querySelectorAll(".ds-modal-container").forEach((i) => {
|
|
4344
|
-
|
|
4330
|
+
oe(i);
|
|
4345
4331
|
});
|
|
4346
4332
|
}
|
|
4347
|
-
E.register("modal",
|
|
4348
|
-
class
|
|
4333
|
+
E.register("modal", oe, Or);
|
|
4334
|
+
class Io {
|
|
4349
4335
|
static normal(t = {}) {
|
|
4350
4336
|
return this._create({ type: "normal", ...t });
|
|
4351
4337
|
}
|
|
@@ -4410,7 +4396,7 @@ class Ao {
|
|
|
4410
4396
|
return c.classList.add("is-visible"), document.body.style.overflow = "hidden", h && h.addEventListener("click", p), d && d.addEventListener("click", m), c.addEventListener("click", f), document.addEventListener("keydown", u), { close: y };
|
|
4411
4397
|
}
|
|
4412
4398
|
}
|
|
4413
|
-
const
|
|
4399
|
+
const Ao = {
|
|
4414
4400
|
normal: function(i) {
|
|
4415
4401
|
this.show({ ...i, type: "normal" });
|
|
4416
4402
|
},
|
|
@@ -4427,7 +4413,7 @@ const zo = {
|
|
|
4427
4413
|
this.show({ ...i, type: "info" });
|
|
4428
4414
|
},
|
|
4429
4415
|
show: function(i) {
|
|
4430
|
-
const t =
|
|
4416
|
+
const t = _r(), { title: e, message: s, type: n = "normal", duration: r = t.duration, position: a = t.position } = i, o = document.createElement("div");
|
|
4431
4417
|
o.className = `ds-notification__item ds-notification__item--${n}`;
|
|
4432
4418
|
const l = {
|
|
4433
4419
|
normal: '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>',
|
|
@@ -4461,9 +4447,9 @@ const zo = {
|
|
|
4461
4447
|
}, r);
|
|
4462
4448
|
}
|
|
4463
4449
|
};
|
|
4464
|
-
function
|
|
4450
|
+
function zo() {
|
|
4465
4451
|
}
|
|
4466
|
-
const
|
|
4452
|
+
const Po = {
|
|
4467
4453
|
normal: function(i, t = {}) {
|
|
4468
4454
|
this.show(i, "normal", t);
|
|
4469
4455
|
},
|
|
@@ -4480,7 +4466,7 @@ const $o = {
|
|
|
4480
4466
|
this.show(i, "info", t);
|
|
4481
4467
|
},
|
|
4482
4468
|
show: function(i, t = "normal", e = {}) {
|
|
4483
|
-
const s =
|
|
4469
|
+
const s = gr(), { duration: n = s.duration, position: r = s.position } = e, a = s.maxCount || 5, o = document.createElement("div");
|
|
4484
4470
|
o.className = `ds-message__item ds-message__item--${t}`;
|
|
4485
4471
|
const l = {
|
|
4486
4472
|
normal: '<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>',
|
|
@@ -4511,12 +4497,12 @@ const $o = {
|
|
|
4511
4497
|
}, n);
|
|
4512
4498
|
}
|
|
4513
4499
|
};
|
|
4514
|
-
function
|
|
4500
|
+
function $o() {
|
|
4515
4501
|
}
|
|
4516
|
-
function
|
|
4502
|
+
function wt(i) {
|
|
4517
4503
|
return i ? i.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
4518
4504
|
}
|
|
4519
|
-
class
|
|
4505
|
+
class Fr {
|
|
4520
4506
|
constructor(t) {
|
|
4521
4507
|
this.element = t, this.dropzone = t.querySelector(".ds-fileupload__dropzone"), this.input = t.querySelector(".ds-fileupload__input"), this.list = t.querySelector(".ds-fileupload__list"), this.progress = t.querySelector(".ds-fileupload__preview"), this.files = [], this.maxSize = parseInt(t.getAttribute("data-max-size")) || 0, this.maxCount = parseInt(t.getAttribute("data-max-count")) || 0, this._listeners = [], this.init();
|
|
4522
4508
|
}
|
|
@@ -4572,7 +4558,7 @@ class Rr {
|
|
|
4572
4558
|
<div class="ds-fileupload__icon" style="width: 24px; height: 24px; border-radius: 4px;">
|
|
4573
4559
|
${s}
|
|
4574
4560
|
</div>
|
|
4575
|
-
<span class="ds-fileupload__filename">${this.truncateFilename(
|
|
4561
|
+
<span class="ds-fileupload__filename">${this.truncateFilename(wt(t.name))}</span>
|
|
4576
4562
|
<span class="ds-fileupload__size">${this.formatSize(t.size)}</span>
|
|
4577
4563
|
<button class="ds-fileupload__remove" type="button" aria-label="Remove file">
|
|
4578
4564
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
@@ -4624,7 +4610,7 @@ class Rr {
|
|
|
4624
4610
|
e.onload = (s) => {
|
|
4625
4611
|
const n = document.createElement("div");
|
|
4626
4612
|
n.className = "ds-fileupload__preview-item", n.innerHTML = `
|
|
4627
|
-
<img src="${s.target.result}" alt="${
|
|
4613
|
+
<img src="${s.target.result}" alt="${wt(t.name)}">
|
|
4628
4614
|
<button class="ds-fileupload__preview-remove" type="button" aria-label="Remove preview">
|
|
4629
4615
|
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
4630
4616
|
<path d="M18 6L6 18"/>
|
|
@@ -4674,22 +4660,22 @@ class Rr {
|
|
|
4674
4660
|
}), this._listeners = null, this.files = [], this.dropzone = null, this.input = null, this.list = null, this.progress = null, this.preview = null, this.element = null;
|
|
4675
4661
|
}
|
|
4676
4662
|
}
|
|
4677
|
-
function
|
|
4663
|
+
function le(i) {
|
|
4678
4664
|
if (i.__kupolaInitialized) return;
|
|
4679
|
-
const t = new
|
|
4665
|
+
const t = new Fr(i);
|
|
4680
4666
|
i.__kupolaInstance = t, i.__kupolaInitialized = !0;
|
|
4681
4667
|
}
|
|
4682
|
-
function
|
|
4668
|
+
function Nr(i) {
|
|
4683
4669
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
4684
4670
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4685
4671
|
}
|
|
4686
|
-
function
|
|
4672
|
+
function Bo() {
|
|
4687
4673
|
document.querySelectorAll(".ds-fileupload").forEach((i) => {
|
|
4688
|
-
|
|
4674
|
+
le(i);
|
|
4689
4675
|
});
|
|
4690
4676
|
}
|
|
4691
|
-
E.register("fileupload",
|
|
4692
|
-
class
|
|
4677
|
+
E.register("fileupload", le, Nr);
|
|
4678
|
+
class Rr {
|
|
4693
4679
|
constructor(t, e = {}) {
|
|
4694
4680
|
this.element = t, this.headers = [], this._listeners = [], this.accordion = e.accordion || t.hasAttribute("data-collapse-accordion"), this.animationDuration = e.animationDuration || parseInt(t.getAttribute("data-collapse-duration")) || 300, this.disabledItems = e.disabledItems || [], this.defaultExpanded = e.defaultExpanded || [], this._init();
|
|
4695
4681
|
}
|
|
@@ -4771,22 +4757,22 @@ class Kr {
|
|
|
4771
4757
|
this.headers[t] && (this.headers[t].isDisabled = !1, this.headers[t].item.classList.remove("is-disabled"));
|
|
4772
4758
|
}
|
|
4773
4759
|
}
|
|
4774
|
-
function
|
|
4760
|
+
function ce(i, t) {
|
|
4775
4761
|
if (i.__kupolaInitialized) return;
|
|
4776
|
-
const e = new
|
|
4762
|
+
const e = new Rr(i, t);
|
|
4777
4763
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
4778
4764
|
}
|
|
4779
|
-
function
|
|
4765
|
+
function Vr(i) {
|
|
4780
4766
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
4781
4767
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
4782
4768
|
}
|
|
4783
|
-
function
|
|
4769
|
+
function qo() {
|
|
4784
4770
|
document.querySelectorAll(".ds-collapse").forEach((i) => {
|
|
4785
|
-
|
|
4771
|
+
ce(i);
|
|
4786
4772
|
});
|
|
4787
4773
|
}
|
|
4788
|
-
E.register("collapse",
|
|
4789
|
-
class
|
|
4774
|
+
E.register("collapse", ce, Vr);
|
|
4775
|
+
class Kr {
|
|
4790
4776
|
constructor(t, e = {}) {
|
|
4791
4777
|
this.element = t, this.trigger = t.querySelector(".ds-color-picker__trigger"), this.panel = t.querySelector(".ds-color-picker__panel"), this.valueSpan = t.querySelector(".ds-color-picker__value"), this.customInput = t.querySelector(".ds-color-picker__input"), this.scope = `colorpicker-${Math.random().toString(36).substr(2, 9)}`, this.options = e, this.value = e.value || "#007bff", this.showAlpha = e.showAlpha !== !1, this.mode = e.mode || "hex", this.previousColors = e.previousColors || this._getStoredColors(), this.previousColorsLimit = e.previousColorsLimit || 12, this._triggerClickHandler = null, this._documentClickHandler = null, this._documentClickListener = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.hue = 210, this.saturation = 100, this.brightness = 50, this.alpha = 100, this._colorStringToHSB(this.value);
|
|
4792
4778
|
}
|
|
@@ -4951,20 +4937,20 @@ class Ur {
|
|
|
4951
4937
|
}), this._documentClickListener && this._documentClickListener.unsubscribe ? this._documentClickListener.unsubscribe() : this._documentClickHandler && document.removeEventListener("click", this._documentClickHandler), this._documentClickHandler = null, this._documentClickListener = null, this._triggerClickHandler = null, this._colorClickHandler = null, this._inputInputHandler = null, this._alphaChangeHandler = null, this._modeChangeHandler = null, this._hueChangeHandler = null, this._saturationChangeHandler = null, this._valueChangeHandler = null, this.element.__kupolaInitialized = !1;
|
|
4952
4938
|
}
|
|
4953
4939
|
}
|
|
4954
|
-
function
|
|
4955
|
-
const e = new
|
|
4940
|
+
function he(i, t) {
|
|
4941
|
+
const e = new Kr(i, t);
|
|
4956
4942
|
e.init(), i._kupolaColorPicker = e;
|
|
4957
4943
|
}
|
|
4958
|
-
function
|
|
4944
|
+
function Oo(i = document) {
|
|
4959
4945
|
i.querySelectorAll(".ds-color-picker").forEach((t) => {
|
|
4960
|
-
|
|
4946
|
+
he(t);
|
|
4961
4947
|
});
|
|
4962
4948
|
}
|
|
4963
|
-
function
|
|
4949
|
+
function Wr(i) {
|
|
4964
4950
|
i._kupolaColorPicker && (i._kupolaColorPicker.destroy(), i._kupolaColorPicker = null);
|
|
4965
4951
|
}
|
|
4966
|
-
E.register("color-picker",
|
|
4967
|
-
class
|
|
4952
|
+
E.register("color-picker", he, Wr);
|
|
4953
|
+
class Ur {
|
|
4968
4954
|
constructor(t, e = {}) {
|
|
4969
4955
|
if (this.element = t, this.titleEl = t.querySelector(".ds-calendar__title"), this.daysEl = t.querySelector(".ds-calendar__days"), this.prevBtn = t.querySelector(".ds-calendar__nav--prev"), this.nextBtn = t.querySelector(".ds-calendar__nav--next"), this.todayBtn = t.querySelector(".ds-calendar__nav--today"), this._listeners = [], !this.titleEl || !this.daysEl)
|
|
4970
4956
|
throw new Error("Calendar: Missing required elements");
|
|
@@ -5161,26 +5147,26 @@ class Xr {
|
|
|
5161
5147
|
this.isRangeMode = !this.isRangeMode, this.rangeStart = null, this.rangeEnd = null, this.render(), this._emitChange();
|
|
5162
5148
|
}
|
|
5163
5149
|
}
|
|
5164
|
-
function
|
|
5150
|
+
function de(i, t) {
|
|
5165
5151
|
if (!i.__kupolaInitialized)
|
|
5166
5152
|
try {
|
|
5167
|
-
const e = new
|
|
5153
|
+
const e = new Ur(i, t);
|
|
5168
5154
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
5169
5155
|
} catch (e) {
|
|
5170
5156
|
console.error("[Calendar] Error initializing:", e);
|
|
5171
5157
|
}
|
|
5172
5158
|
}
|
|
5173
|
-
function
|
|
5159
|
+
function Yr(i) {
|
|
5174
5160
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
5175
5161
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
5176
5162
|
}
|
|
5177
|
-
function
|
|
5163
|
+
function Fo() {
|
|
5178
5164
|
document.querySelectorAll(".ds-calendar").forEach((i) => {
|
|
5179
|
-
|
|
5165
|
+
de(i);
|
|
5180
5166
|
});
|
|
5181
5167
|
}
|
|
5182
|
-
E.register("calendar",
|
|
5183
|
-
class
|
|
5168
|
+
E.register("calendar", de, Yr);
|
|
5169
|
+
class Xr {
|
|
5184
5170
|
constructor(t, e = {}) {
|
|
5185
5171
|
this.element = t, this.input = t.querySelector(".ds-dynamic-tags__input"), this._listeners = [], this.maxCount = e.maxCount || parseInt(t.getAttribute("data-dynamic-tags-max")) || 1 / 0, this.allowDuplicates = e.allowDuplicates !== !1, this.color = e.color || t.getAttribute("data-dynamic-tags-color") || "default", this.init();
|
|
5186
5172
|
}
|
|
@@ -5326,22 +5312,22 @@ class Jr {
|
|
|
5326
5312
|
}), this._listeners = null, this.input = null, this.element = null;
|
|
5327
5313
|
}
|
|
5328
5314
|
}
|
|
5329
|
-
function
|
|
5315
|
+
function ue(i, t) {
|
|
5330
5316
|
if (i.__kupolaInitialized) return;
|
|
5331
|
-
const e = new
|
|
5317
|
+
const e = new Xr(i, t);
|
|
5332
5318
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
5333
5319
|
}
|
|
5334
|
-
function
|
|
5320
|
+
function jr(i) {
|
|
5335
5321
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
5336
5322
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
5337
5323
|
}
|
|
5338
|
-
function
|
|
5324
|
+
function No() {
|
|
5339
5325
|
document.querySelectorAll(".ds-dynamic-tags").forEach((i) => {
|
|
5340
|
-
|
|
5326
|
+
ue(i);
|
|
5341
5327
|
});
|
|
5342
5328
|
}
|
|
5343
|
-
E.register("dynamic-tags",
|
|
5344
|
-
class
|
|
5329
|
+
E.register("dynamic-tags", ue, jr);
|
|
5330
|
+
class pe {
|
|
5345
5331
|
constructor(t = {}) {
|
|
5346
5332
|
this.images = t.images || [], this.currentIndex = t.currentIndex || 0, this.overlay = null, this.closeHandler = this.close.bind(this), this.keyHandler = this.handleKeydown.bind(this), this.clickHandler = this.handleOverlayClick.bind(this), this.zoom = 1, this.rotation = 0, this.zoomStep = t.zoomStep || 0.2, this.minZoom = t.minZoom || 0.5, this.maxZoom = t.maxZoom || 3, this.init();
|
|
5347
5333
|
}
|
|
@@ -5533,18 +5519,18 @@ class fe {
|
|
|
5533
5519
|
}
|
|
5534
5520
|
}
|
|
5535
5521
|
let V = null;
|
|
5536
|
-
function
|
|
5537
|
-
V || (V = new
|
|
5522
|
+
function Ro() {
|
|
5523
|
+
V || (V = new pe()), document.querySelectorAll("[data-image-preview]").forEach((i) => {
|
|
5538
5524
|
i.addEventListener("click", () => {
|
|
5539
5525
|
const t = JSON.parse(i.getAttribute("data-image-preview")), e = parseInt(i.getAttribute("data-image-index")) || 0;
|
|
5540
5526
|
V.show(t, e);
|
|
5541
5527
|
});
|
|
5542
5528
|
});
|
|
5543
5529
|
}
|
|
5544
|
-
function
|
|
5545
|
-
V || (V = new
|
|
5530
|
+
function Vo(i, t = 0) {
|
|
5531
|
+
V || (V = new pe()), V.show(i, t);
|
|
5546
5532
|
}
|
|
5547
|
-
class
|
|
5533
|
+
class Jr {
|
|
5548
5534
|
constructor(t, e = {}) {
|
|
5549
5535
|
this.element = t, this.closeBtn = t.querySelector(".ds-tag__close"), this.checkbox = t.querySelector(".ds-tag__checkbox"), this.editInput = t.querySelector(".ds-tag__input"), this._listeners = [], this.color = e.color || t.getAttribute("data-tag-color") || "default", this.size = e.size || t.getAttribute("data-tag-size") || "default", this.checkable = e.checkable || t.hasAttribute("data-tag-checkable"), this.checked = e.checked || t.hasAttribute("data-tag-checked"), this.editable = e.editable || t.hasAttribute("data-tag-editable"), this.maxLength = e.maxLength || parseInt(t.getAttribute("data-tag-maxlength")) || 50, this.init();
|
|
5550
5536
|
}
|
|
@@ -5674,22 +5660,22 @@ class Gr {
|
|
|
5674
5660
|
}), this._listeners = [], this.closeBtn = null, this.checkbox = null, this.editInput = null, this.element = null;
|
|
5675
5661
|
}
|
|
5676
5662
|
}
|
|
5677
|
-
function
|
|
5663
|
+
function fe(i, t) {
|
|
5678
5664
|
if (i.__kupolaInitialized) return;
|
|
5679
|
-
const e = new
|
|
5665
|
+
const e = new Jr(i, t);
|
|
5680
5666
|
i.__kupolaInstance = e, i.__kupolaInitialized = !0;
|
|
5681
5667
|
}
|
|
5682
|
-
function
|
|
5668
|
+
function Zr(i) {
|
|
5683
5669
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
5684
5670
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
5685
5671
|
}
|
|
5686
|
-
function
|
|
5672
|
+
function Ko() {
|
|
5687
5673
|
document.querySelectorAll(".ds-tag").forEach((i) => {
|
|
5688
|
-
|
|
5674
|
+
fe(i);
|
|
5689
5675
|
});
|
|
5690
5676
|
}
|
|
5691
|
-
E.register("tag",
|
|
5692
|
-
class
|
|
5677
|
+
E.register("tag", fe, Zr);
|
|
5678
|
+
class Gr {
|
|
5693
5679
|
constructor(t) {
|
|
5694
5680
|
this.element = t, this.valueElement = t.querySelector(".ds-statcard__value"), this.progressFill = t.querySelector(".ds-statcard__progress-fill"), this.animated = !1, this._observer = null, this.init();
|
|
5695
5681
|
}
|
|
@@ -5749,22 +5735,22 @@ class ta {
|
|
|
5749
5735
|
this._observer && (this._observer.disconnect(), this._observer = null), this.animated = !1, this.valueElement = null, this.progressFill = null, this.element = null;
|
|
5750
5736
|
}
|
|
5751
5737
|
}
|
|
5752
|
-
function
|
|
5738
|
+
function me(i) {
|
|
5753
5739
|
if (i.__kupolaInitialized) return;
|
|
5754
|
-
const t = new
|
|
5740
|
+
const t = new Gr(i);
|
|
5755
5741
|
i.__kupolaInstance = t, i.__kupolaInitialized = !0;
|
|
5756
5742
|
}
|
|
5757
|
-
function
|
|
5743
|
+
function Qr(i) {
|
|
5758
5744
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
5759
5745
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
5760
5746
|
}
|
|
5761
|
-
function
|
|
5747
|
+
function Wo() {
|
|
5762
5748
|
document.querySelectorAll(".ds-statcard").forEach((i) => {
|
|
5763
|
-
|
|
5749
|
+
me(i);
|
|
5764
5750
|
});
|
|
5765
5751
|
}
|
|
5766
|
-
E.register("statcard",
|
|
5767
|
-
class
|
|
5752
|
+
E.register("statcard", me, Qr);
|
|
5753
|
+
class ta {
|
|
5768
5754
|
constructor(t, e = {}) {
|
|
5769
5755
|
this.element = t, this.data = e.data || [], this.startDate = e.startDate || this.getOneYearAgo(), this.endDate = e.endDate || /* @__PURE__ */ new Date(), this.cellSize = e.cellSize || 14, this.onCellClick = e.onCellClick || null, this.tooltip = null, this.baseColor = e.color || t.getAttribute("data-color") || "#22c55e", this._listeners = [], this.init();
|
|
5770
5756
|
}
|
|
@@ -5919,7 +5905,7 @@ class sa {
|
|
|
5919
5905
|
}), this._listeners = null, this.tooltip && this.tooltip.parentNode && this.tooltip.parentNode.removeChild(this.tooltip), this.tooltip = null, this.data = [], this.element = null;
|
|
5920
5906
|
}
|
|
5921
5907
|
}
|
|
5922
|
-
function
|
|
5908
|
+
function ge(i) {
|
|
5923
5909
|
if (i.__kupolaInitialized) return;
|
|
5924
5910
|
const t = i.getAttribute("data-heatmap-data");
|
|
5925
5911
|
let e = [];
|
|
@@ -5927,27 +5913,27 @@ function _e(i) {
|
|
|
5927
5913
|
try {
|
|
5928
5914
|
e = JSON.parse(t);
|
|
5929
5915
|
} catch {
|
|
5930
|
-
e =
|
|
5916
|
+
e = kt();
|
|
5931
5917
|
}
|
|
5932
5918
|
else
|
|
5933
|
-
e =
|
|
5934
|
-
const s = new
|
|
5919
|
+
e = kt();
|
|
5920
|
+
const s = new ta(i, {
|
|
5935
5921
|
data: e,
|
|
5936
5922
|
onCellClick: (n) => {
|
|
5937
5923
|
}
|
|
5938
5924
|
});
|
|
5939
5925
|
i.__kupolaInstance = s, i.__kupolaInitialized = !0;
|
|
5940
5926
|
}
|
|
5941
|
-
function
|
|
5927
|
+
function ea(i) {
|
|
5942
5928
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
5943
5929
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
5944
5930
|
}
|
|
5945
|
-
function
|
|
5931
|
+
function Uo() {
|
|
5946
5932
|
document.querySelectorAll(".ds-heatmap").forEach((i) => {
|
|
5947
|
-
|
|
5933
|
+
ge(i);
|
|
5948
5934
|
});
|
|
5949
5935
|
}
|
|
5950
|
-
function
|
|
5936
|
+
function kt() {
|
|
5951
5937
|
const i = [], t = /* @__PURE__ */ new Date(), e = /* @__PURE__ */ new Date();
|
|
5952
5938
|
e.setFullYear(e.getFullYear() - 1);
|
|
5953
5939
|
for (let s = new Date(e); s <= t; s.setDate(s.getDate() + 1)) {
|
|
@@ -5959,8 +5945,8 @@ function St() {
|
|
|
5959
5945
|
}
|
|
5960
5946
|
return i;
|
|
5961
5947
|
}
|
|
5962
|
-
E.register("heatmap",
|
|
5963
|
-
class
|
|
5948
|
+
E.register("heatmap", ge, ea);
|
|
5949
|
+
class sa {
|
|
5964
5950
|
constructor(t, e = {}) {
|
|
5965
5951
|
this.element = t, this.tooltipEl = null, this.options = e;
|
|
5966
5952
|
const s = j(), n = s.tooltip?.delay !== void 0 ? s.tooltip.delay : 300;
|
|
@@ -6061,20 +6047,20 @@ class na {
|
|
|
6061
6047
|
this.element.__kupolaInitialized && (this._showTimer && (clearTimeout(this._showTimer), this._showTimer = null), this._hideTimer && (clearTimeout(this._hideTimer), this._hideTimer = null), (this.trigger === "hover" || this.trigger === "focus") && (this.element.removeEventListener("mouseenter", this._showTooltip), this.element.removeEventListener("mouseleave", this._hideTooltip)), this.trigger === "click" && this.element.removeEventListener("click", this._clickHandler), (this.trigger === "focus" || this.trigger === "hover") && (this.element.removeEventListener("focus", this._showTooltip), this.element.removeEventListener("blur", this._hideTooltip)), this.mouseFollow && this.element.removeEventListener("mousemove", this._mouseMoveHandler), this.tooltipEl && (this.tooltipEl.remove(), this.tooltipEl = null), this.isVisible = !1, this._showTooltip = null, this._hideTooltip = null, this._clickHandler = null, this._mouseMoveHandler = null, this.element.__kupolaInitialized = !1);
|
|
6062
6048
|
}
|
|
6063
6049
|
}
|
|
6064
|
-
function
|
|
6065
|
-
const e = new
|
|
6050
|
+
function _e(i, t) {
|
|
6051
|
+
const e = new sa(i, t);
|
|
6066
6052
|
e.init(), i._kupolaTooltip = e;
|
|
6067
6053
|
}
|
|
6068
|
-
function
|
|
6054
|
+
function Yo(i = document) {
|
|
6069
6055
|
i.querySelectorAll("[data-tooltip]").forEach((t) => {
|
|
6070
|
-
|
|
6056
|
+
_e(t);
|
|
6071
6057
|
});
|
|
6072
6058
|
}
|
|
6073
|
-
function
|
|
6059
|
+
function ia(i) {
|
|
6074
6060
|
i._kupolaTooltip && (i._kupolaTooltip.destroy(), i._kupolaTooltip = null);
|
|
6075
6061
|
}
|
|
6076
|
-
E.register("tooltip",
|
|
6077
|
-
class
|
|
6062
|
+
E.register("tooltip", _e, ia);
|
|
6063
|
+
class na {
|
|
6078
6064
|
constructor() {
|
|
6079
6065
|
this.validators = {
|
|
6080
6066
|
required: this.validateRequired,
|
|
@@ -6300,7 +6286,7 @@ class aa {
|
|
|
6300
6286
|
}[t] || "Invalid input";
|
|
6301
6287
|
}
|
|
6302
6288
|
}
|
|
6303
|
-
const P = new
|
|
6289
|
+
const P = new na();
|
|
6304
6290
|
window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized = !0, document.addEventListener("DOMContentLoaded", () => {
|
|
6305
6291
|
document.querySelectorAll("form[data-validation]").forEach((i) => {
|
|
6306
6292
|
i.addEventListener("submit", async (t) => {
|
|
@@ -6330,7 +6316,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
|
|
|
6330
6316
|
r && r.focus();
|
|
6331
6317
|
}
|
|
6332
6318
|
}), i.querySelectorAll("[data-validate]").forEach((t) => {
|
|
6333
|
-
const e =
|
|
6319
|
+
const e = yr(), s = e.trigger || "blur", n = () => {
|
|
6334
6320
|
e.showErrors && setTimeout(() => {
|
|
6335
6321
|
const l = document.activeElement;
|
|
6336
6322
|
if (l && l.closest(".ds-select"))
|
|
@@ -6344,7 +6330,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
|
|
|
6344
6330
|
return (...d) => {
|
|
6345
6331
|
clearTimeout(h), h = setTimeout(() => l(...d), c);
|
|
6346
6332
|
};
|
|
6347
|
-
}, a =
|
|
6333
|
+
}, a = mr(), o = r(() => {
|
|
6348
6334
|
if (!e.showErrors)
|
|
6349
6335
|
return;
|
|
6350
6336
|
const l = P.getValue(t);
|
|
@@ -6356,7 +6342,7 @@ window.__kupolaValidationInitialized || (window.__kupolaValidationInitialized =
|
|
|
6356
6342
|
});
|
|
6357
6343
|
});
|
|
6358
6344
|
}));
|
|
6359
|
-
class
|
|
6345
|
+
class ra {
|
|
6360
6346
|
constructor(t, e = {}) {
|
|
6361
6347
|
this.element = t, this.data = e.data || [], this.itemHeight = e.itemHeight || 48, this.itemWidth = e.itemWidth || 200, this.bufferSize = e.bufferSize || 5, this.renderItem = e.renderItem || this.defaultRenderItem, this.onItemClick = e.onItemClick || null, this.onItemSelect = e.onItemSelect || null, this.onScroll = e.onScroll || null, this.onScrollEnd = e.onScrollEnd || null, this.selectedKey = e.selectedKey || null, this.keyField = e.keyField || "id", this.useDynamicHeight = e.useDynamicHeight || !1, this.dynamicHeightCache = /* @__PURE__ */ new Map(), this.estimatedHeight = e.estimatedHeight || 48, this.container = null, this.scrollbarTrack = null, this.scrollbarThumb = null, this.totalHeight = 0, this.startIndex = 0, this.endIndex = 0, this.isScrolling = !1, this.scrollTimeout = null, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.init();
|
|
6362
6348
|
}
|
|
@@ -6595,7 +6581,7 @@ class oa {
|
|
|
6595
6581
|
}), this.data = [], this.dynamicHeightCache.clear(), this.container.innerHTML = "", this._listeners = null, this._scrollHandler = null, this._thumbDragStartHandler = null, this._thumbDragMoveHandler = null, this._thumbDragEndHandler = null, this._wheelHandler = null, this.container = null, this.scrollbarThumb = null, this.element = null;
|
|
6596
6582
|
}
|
|
6597
6583
|
}
|
|
6598
|
-
function
|
|
6584
|
+
function Ct(i = 1e3) {
|
|
6599
6585
|
const t = [], e = ["Document", "Image", "Video", "Folder", "Archive", "Spreadsheet", "Presentation", "Code"];
|
|
6600
6586
|
for (let s = 1; s <= i; s++) {
|
|
6601
6587
|
const n = Math.floor(Math.random() * e.length), r = Math.floor(Math.random() * 1e4);
|
|
@@ -6608,7 +6594,7 @@ function Lt(i = 1e3) {
|
|
|
6608
6594
|
}
|
|
6609
6595
|
return t;
|
|
6610
6596
|
}
|
|
6611
|
-
function
|
|
6597
|
+
function aa(i) {
|
|
6612
6598
|
if (i.__kupolaInitialized) return;
|
|
6613
6599
|
const t = i.getAttribute("data-virtual-list");
|
|
6614
6600
|
let e = [];
|
|
@@ -6616,11 +6602,11 @@ function la(i) {
|
|
|
6616
6602
|
try {
|
|
6617
6603
|
e = JSON.parse(t);
|
|
6618
6604
|
} catch {
|
|
6619
|
-
e =
|
|
6605
|
+
e = Ct(1e3);
|
|
6620
6606
|
}
|
|
6621
6607
|
else
|
|
6622
|
-
e =
|
|
6623
|
-
const s = new
|
|
6608
|
+
e = Ct(1e3);
|
|
6609
|
+
const s = new ra(i, {
|
|
6624
6610
|
data: e,
|
|
6625
6611
|
onItemClick: (n) => {
|
|
6626
6612
|
},
|
|
@@ -6629,12 +6615,12 @@ function la(i) {
|
|
|
6629
6615
|
});
|
|
6630
6616
|
i.__kupolaInstance = s, i.__kupolaInitialized = !0;
|
|
6631
6617
|
}
|
|
6632
|
-
function
|
|
6618
|
+
function oa(i) {
|
|
6633
6619
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
6634
6620
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
6635
6621
|
}
|
|
6636
|
-
E.register("virtual-list",
|
|
6637
|
-
const
|
|
6622
|
+
E.register("virtual-list", aa, oa);
|
|
6623
|
+
const la = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="butt" stroke-linejoin="miter"', ye = {
|
|
6638
6624
|
globe: '<circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 0 20"/><path d="M12 2a15.3 15.3 0 0 0 0 20"/>',
|
|
6639
6625
|
dashboard: '<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>',
|
|
6640
6626
|
mouse: '<rect x="6" y="2" width="12" height="20" rx="6"/><line x1="12" y1="6" x2="12" y2="11"/>',
|
|
@@ -6744,19 +6730,19 @@ const ha = 'xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0
|
|
|
6744
6730
|
code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
|
|
6745
6731
|
apple: '<path fill="currentColor" stroke="none" d="M17.05 12.04c-.03-3.04 2.49-4.5 2.6-4.57-1.42-2.07-3.62-2.36-4.4-2.39-1.87-.19-3.65 1.1-4.6 1.1-.96 0-2.42-1.08-3.98-1.05-2.05.03-3.94 1.19-4.99 3.02-2.13 3.69-.54 9.13 1.53 12.12 1.01 1.46 2.21 3.1 3.78 3.04 1.52-.06 2.09-.98 3.93-.98 1.83 0 2.36.98 3.97.95 1.64-.03 2.68-1.49 3.68-2.96 1.16-1.7 1.64-3.35 1.66-3.43-.04-.02-3.18-1.22-3.21-4.85zM14.06 4.34c.83-1.01 1.39-2.41 1.24-3.81-1.2.05-2.65.8-3.51 1.8-.77.89-1.45 2.31-1.27 3.68 1.34.1 2.71-.68 3.54-1.67z"/>'
|
|
6746
6732
|
};
|
|
6747
|
-
function
|
|
6748
|
-
const s =
|
|
6749
|
-
return s ? `<svg ${
|
|
6733
|
+
function ve(i, t = 16, e = "0 0 24 24") {
|
|
6734
|
+
const s = ye[i];
|
|
6735
|
+
return s ? `<svg ${la.replace('width="16"', `width="${t}"`).replace('height="16"', `height="${t}"`).replace('viewBox="0 0 24 24"', `viewBox="${e}"`)}>${s}</svg>` : "";
|
|
6750
6736
|
}
|
|
6751
6737
|
function dt(i = document) {
|
|
6752
6738
|
i.querySelectorAll("[data-icon]").forEach((t) => {
|
|
6753
6739
|
const e = t.getAttribute("data-icon"), s = +t.getAttribute("data-size") || 16, n = t.getAttribute("data-viewbox") || "0 0 24 24";
|
|
6754
|
-
t.innerHTML =
|
|
6740
|
+
t.innerHTML = ve(e, s, n), t.classList.add("icon");
|
|
6755
6741
|
});
|
|
6756
6742
|
}
|
|
6757
|
-
const
|
|
6743
|
+
const Xo = { svg: ve, render: dt, PATHS: ye };
|
|
6758
6744
|
typeof document < "u" && (document.readyState !== "loading" ? dt() : document.addEventListener("DOMContentLoaded", () => dt()));
|
|
6759
|
-
class
|
|
6745
|
+
class ca {
|
|
6760
6746
|
constructor(t) {
|
|
6761
6747
|
this.element = t, this.hoursEl = t.querySelector(".ds-countdown__item--hours .ds-countdown__value"), this.minutesEl = t.querySelector(".ds-countdown__item--minutes .ds-countdown__value"), this.secondsEl = t.querySelector(".ds-countdown__item--seconds .ds-countdown__value"), this.endTime = this.parseEndTime(), this.interval = null, this.init();
|
|
6762
6748
|
}
|
|
@@ -6808,22 +6794,22 @@ class da {
|
|
|
6808
6794
|
this.stop(), this.hoursEl = null, this.minutesEl = null, this.secondsEl = null, this.element = null;
|
|
6809
6795
|
}
|
|
6810
6796
|
}
|
|
6811
|
-
function
|
|
6797
|
+
function be(i) {
|
|
6812
6798
|
if (i.__kupolaInitialized) return;
|
|
6813
|
-
const t = new
|
|
6799
|
+
const t = new ca(i);
|
|
6814
6800
|
i.__kupolaInstance = t, i.__kupolaInitialized = !0;
|
|
6815
6801
|
}
|
|
6816
|
-
function
|
|
6802
|
+
function ha(i) {
|
|
6817
6803
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
6818
6804
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
6819
6805
|
}
|
|
6820
|
-
function
|
|
6806
|
+
function jo() {
|
|
6821
6807
|
document.querySelectorAll(".ds-countdown").forEach((t) => {
|
|
6822
|
-
|
|
6808
|
+
be(t);
|
|
6823
6809
|
});
|
|
6824
6810
|
}
|
|
6825
|
-
E.register("countdown",
|
|
6826
|
-
class
|
|
6811
|
+
E.register("countdown", be, ha);
|
|
6812
|
+
class da {
|
|
6827
6813
|
constructor(t) {
|
|
6828
6814
|
if (this.element = t, this.minusBtn = t.querySelector(".ds-number-input__btn--decrease"), this.plusBtn = t.querySelector(".ds-number-input__btn--increase"), this.inputEl = t.querySelector(".ds-number-input__input"), this._listeners = [], !this.minusBtn || !this.plusBtn || !this.inputEl)
|
|
6829
6815
|
throw new Error("NumberInput: Missing required elements");
|
|
@@ -6874,26 +6860,26 @@ class pa {
|
|
|
6874
6860
|
}), this._listeners = null, this.minusBtn = null, this.plusBtn = null, this.inputEl = null, this.element = null;
|
|
6875
6861
|
}
|
|
6876
6862
|
}
|
|
6877
|
-
function
|
|
6863
|
+
function xe(i) {
|
|
6878
6864
|
if (!i.__kupolaInitialized)
|
|
6879
6865
|
try {
|
|
6880
|
-
const t = new
|
|
6866
|
+
const t = new da(i);
|
|
6881
6867
|
i.__kupolaInstance = t, i.__kupolaInitialized = !0;
|
|
6882
6868
|
} catch (t) {
|
|
6883
6869
|
console.error("[NumberInput] Error initializing:", t);
|
|
6884
6870
|
}
|
|
6885
6871
|
}
|
|
6886
|
-
function
|
|
6872
|
+
function ua(i) {
|
|
6887
6873
|
if (!i.__kupolaInitialized || !i.__kupolaInstance) return;
|
|
6888
6874
|
i.__kupolaInstance.destroy(), i.__kupolaInstance = null, i.__kupolaInitialized = !1;
|
|
6889
6875
|
}
|
|
6890
|
-
function
|
|
6876
|
+
function Jo() {
|
|
6891
6877
|
document.querySelectorAll(".ds-number-input").forEach((i) => {
|
|
6892
|
-
|
|
6878
|
+
xe(i);
|
|
6893
6879
|
});
|
|
6894
6880
|
}
|
|
6895
|
-
E.register("number-input",
|
|
6896
|
-
class
|
|
6881
|
+
E.register("number-input", xe, ua);
|
|
6882
|
+
class pa {
|
|
6897
6883
|
constructor(t) {
|
|
6898
6884
|
this.container = t, this.track = t.querySelector(".ds-slider-captcha__track"), this.btn = t.querySelector(".ds-slider-captcha__btn"), this.text = t.querySelector(".ds-slider-captcha__text"), this.progress = t.querySelector(".ds-slider-captcha__progress"), this.statusEl = t.querySelector(".ds-slider-captcha__status"), this.refreshBtn = t.querySelector(".ds-slider-captcha__refresh"), this.footerRefreshBtn = t.querySelector(".ds-slider-captcha__footer-refresh"), this.config = {
|
|
6899
6885
|
tolerance: 6,
|
|
@@ -7036,22 +7022,22 @@ class ma {
|
|
|
7036
7022
|
this.container._initialized && (this.btn && this._mouseDownHandler && this.btn.removeEventListener("mousedown", this._mouseDownHandler), this.btn && this._touchStartHandler && this.btn.removeEventListener("touchstart", this._touchStartHandler), this.refreshBtn && this.refreshBtn.removeEventListener("click", () => this.loadCaptcha()), this.footerRefreshBtn && this.footerRefreshBtn.removeEventListener("click", () => this.loadCaptcha()), this._mouseMoveListener && this._mouseMoveListener.unsubscribe ? this._mouseMoveListener.unsubscribe() : this._mouseMoveHandler && document.removeEventListener("mousemove", this._mouseMoveHandler), this._mouseUpListener && this._mouseUpListener.unsubscribe ? this._mouseUpListener.unsubscribe() : this._mouseUpHandler && document.removeEventListener("mouseup", this._mouseUpHandler), this._touchMoveListener && this._touchMoveListener.unsubscribe ? this._touchMoveListener.unsubscribe() : this._touchMoveHandler && document.removeEventListener("touchmove", this._touchMoveHandler), this._touchEndListener && this._touchEndListener.unsubscribe ? this._touchEndListener.unsubscribe() : this._touchEndHandler && document.removeEventListener("touchend", this._touchEndHandler), this.container._initialized = !1);
|
|
7037
7023
|
}
|
|
7038
7024
|
}
|
|
7039
|
-
function
|
|
7025
|
+
function fa() {
|
|
7040
7026
|
document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
|
|
7041
|
-
const t = new
|
|
7027
|
+
const t = new pa(i);
|
|
7042
7028
|
t.init(), i._kupolaSlideCaptcha = t;
|
|
7043
7029
|
});
|
|
7044
7030
|
}
|
|
7045
|
-
function
|
|
7031
|
+
function ma(i) {
|
|
7046
7032
|
i._kupolaSlideCaptcha && (i._kupolaSlideCaptcha.destroy(), i._kupolaSlideCaptcha = null);
|
|
7047
7033
|
}
|
|
7048
|
-
function
|
|
7034
|
+
function ga() {
|
|
7049
7035
|
document.querySelectorAll(".ds-slider-captcha").forEach((i) => {
|
|
7050
|
-
|
|
7036
|
+
ma(i);
|
|
7051
7037
|
});
|
|
7052
7038
|
}
|
|
7053
|
-
E.register("slide-captcha",
|
|
7054
|
-
class
|
|
7039
|
+
E.register("slide-captcha", fa, ga);
|
|
7040
|
+
class _a {
|
|
7055
7041
|
constructor(t) {
|
|
7056
7042
|
this.form = t, this.fields = [], this.validators = {}, this.errorMessages = {}, this._submitHandler = null, this._fieldHandlers = /* @__PURE__ */ new Map(), this._init();
|
|
7057
7043
|
}
|
|
@@ -7191,23 +7177,23 @@ class va {
|
|
|
7191
7177
|
}), this._submitHandler = null, this._fieldHandlers.clear(), this._fieldHandlers = null, this.fields = null, this.validators = null, this.errorMessages = null, this.form = null;
|
|
7192
7178
|
}
|
|
7193
7179
|
}
|
|
7194
|
-
function
|
|
7180
|
+
function ya(i) {
|
|
7195
7181
|
const t = document.querySelectorAll(i || ".ds-form");
|
|
7196
7182
|
return t.forEach((e) => {
|
|
7197
7183
|
if (e._kupolaForm) return;
|
|
7198
|
-
const s = new
|
|
7184
|
+
const s = new _a(e);
|
|
7199
7185
|
e._kupolaForm = s;
|
|
7200
7186
|
}), t.length;
|
|
7201
7187
|
}
|
|
7202
|
-
function
|
|
7188
|
+
function Zo(i) {
|
|
7203
7189
|
return i._kupolaForm;
|
|
7204
7190
|
}
|
|
7205
|
-
function
|
|
7191
|
+
function Go(i) {
|
|
7206
7192
|
const t = i._kupolaForm;
|
|
7207
7193
|
return t ? t.validate() : !1;
|
|
7208
7194
|
}
|
|
7209
|
-
E.register("form-validation",
|
|
7210
|
-
class
|
|
7195
|
+
E.register("form-validation", ya);
|
|
7196
|
+
class va {
|
|
7211
7197
|
constructor() {
|
|
7212
7198
|
this._queue = /* @__PURE__ */ new Set(), this._scheduled = !1, this._flushDepth = 0, this._maxDepth = 10;
|
|
7213
7199
|
}
|
|
@@ -7234,8 +7220,8 @@ class xa {
|
|
|
7234
7220
|
this._flushDepth--;
|
|
7235
7221
|
}
|
|
7236
7222
|
}
|
|
7237
|
-
const
|
|
7238
|
-
class
|
|
7223
|
+
const ba = new va();
|
|
7224
|
+
class xa {
|
|
7239
7225
|
constructor(t, e) {
|
|
7240
7226
|
this.data = t, this.createdAt = Date.now(), this.ttl = e;
|
|
7241
7227
|
}
|
|
@@ -7246,7 +7232,7 @@ class wa {
|
|
|
7246
7232
|
return !this.isFresh;
|
|
7247
7233
|
}
|
|
7248
7234
|
}
|
|
7249
|
-
class
|
|
7235
|
+
class Ee {
|
|
7250
7236
|
constructor() {
|
|
7251
7237
|
this._store = /* @__PURE__ */ new Map();
|
|
7252
7238
|
}
|
|
@@ -7255,7 +7241,7 @@ class we {
|
|
|
7255
7241
|
return e || null;
|
|
7256
7242
|
}
|
|
7257
7243
|
set(t, e, s = 6e4) {
|
|
7258
|
-
this._store.set(t, new
|
|
7244
|
+
this._store.set(t, new xa(e, s));
|
|
7259
7245
|
}
|
|
7260
7246
|
has(t) {
|
|
7261
7247
|
return this._store.has(t);
|
|
@@ -7278,15 +7264,15 @@ class N extends Error {
|
|
|
7278
7264
|
}
|
|
7279
7265
|
}
|
|
7280
7266
|
let rt = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
|
|
7281
|
-
function
|
|
7267
|
+
function Qo(i) {
|
|
7282
7268
|
if (!i || typeof i.fetch != "function")
|
|
7283
7269
|
throw new TypeError("[Kupola] configureHttpClient: client must provide a fetch function");
|
|
7284
7270
|
rt = i.fetch.bind(i);
|
|
7285
7271
|
}
|
|
7286
|
-
function
|
|
7272
|
+
function tl() {
|
|
7287
7273
|
return rt;
|
|
7288
7274
|
}
|
|
7289
|
-
function
|
|
7275
|
+
function el() {
|
|
7290
7276
|
rt = typeof globalThis < "u" && globalThis.fetch ? globalThis.fetch.bind(globalThis) : typeof window < "u" && window.fetch ? window.fetch.bind(window) : null;
|
|
7291
7277
|
}
|
|
7292
7278
|
class U {
|
|
@@ -7300,7 +7286,7 @@ class U {
|
|
|
7300
7286
|
};
|
|
7301
7287
|
}
|
|
7302
7288
|
notify() {
|
|
7303
|
-
|
|
7289
|
+
ba.schedule(() => {
|
|
7304
7290
|
this.subscribers.forEach((t) => {
|
|
7305
7291
|
try {
|
|
7306
7292
|
t();
|
|
@@ -7348,7 +7334,7 @@ class U {
|
|
|
7348
7334
|
this.subscribers = [], this.pending = null;
|
|
7349
7335
|
}
|
|
7350
7336
|
}
|
|
7351
|
-
class
|
|
7337
|
+
class Ea extends U {
|
|
7352
7338
|
constructor(t, e) {
|
|
7353
7339
|
super(t, e), this.method = t.method || "GET", this.headers = t.headers || {}, this.queryParams = t.query || {};
|
|
7354
7340
|
}
|
|
@@ -7378,7 +7364,7 @@ class ka extends U {
|
|
|
7378
7364
|
return typeof l.json == "function" ? await l.json() : l.data !== void 0 ? l.data : l;
|
|
7379
7365
|
}
|
|
7380
7366
|
}
|
|
7381
|
-
class
|
|
7367
|
+
class we extends U {
|
|
7382
7368
|
constructor(t, e) {
|
|
7383
7369
|
super(t, e), this.storageKey = t.source.replace("localStorage:", ""), this.defaultValue = t.default, this.sync = t.sync !== !1, this.sync && typeof window < "u" && (this._storageHandler = (s) => {
|
|
7384
7370
|
s.key === this.storageKey && (this.cache.delete(this.cacheKey), this.notify());
|
|
@@ -7405,7 +7391,7 @@ class ke extends U {
|
|
|
7405
7391
|
super.destroy(), this._storageHandler && window.removeEventListener("storage", this._storageHandler);
|
|
7406
7392
|
}
|
|
7407
7393
|
}
|
|
7408
|
-
class
|
|
7394
|
+
class wa extends U {
|
|
7409
7395
|
constructor(t, e) {
|
|
7410
7396
|
super(t, e), this.paramName = t.source.replace("route:", "");
|
|
7411
7397
|
}
|
|
@@ -7415,17 +7401,17 @@ class Ca extends U {
|
|
|
7415
7401
|
return e ? decodeURIComponent(e[1]) : new URLSearchParams(location.search).get(this.paramName) || "";
|
|
7416
7402
|
}
|
|
7417
7403
|
}
|
|
7418
|
-
class
|
|
7404
|
+
class ka extends U {
|
|
7419
7405
|
async fetch(t) {
|
|
7420
7406
|
return await this.config.source(t);
|
|
7421
7407
|
}
|
|
7422
7408
|
}
|
|
7423
|
-
class
|
|
7409
|
+
class Ca extends U {
|
|
7424
7410
|
async fetch() {
|
|
7425
7411
|
return this.config.source;
|
|
7426
7412
|
}
|
|
7427
7413
|
}
|
|
7428
|
-
class
|
|
7414
|
+
class ke extends U {
|
|
7429
7415
|
constructor(t, e) {
|
|
7430
7416
|
super(t, e), this.ws = null, this.reconnect = t.reconnect !== !1, this.reconnectDelay = t.reconnectDelay || 3e3, this._reconnectAttempt = 0, this._maxReconnectDelay = t.maxReconnectDelay || 3e4, this.messageHandler = null, this._connected = !1, this._destroyed = !1;
|
|
7431
7417
|
}
|
|
@@ -7465,21 +7451,21 @@ class Ce extends U {
|
|
|
7465
7451
|
this._destroyed = !0, super.destroy(), this.ws && (this.ws.onmessage = null, this.ws.onclose = null, this.ws.close(), this.ws = null);
|
|
7466
7452
|
}
|
|
7467
7453
|
}
|
|
7468
|
-
function
|
|
7454
|
+
function Ce(i, t) {
|
|
7469
7455
|
const e = i.source;
|
|
7470
|
-
return typeof e == "function" ? new
|
|
7456
|
+
return typeof e == "function" ? new ka(i, t) : typeof e == "string" && (e.startsWith("ws://") || e.startsWith("wss://")) ? new ke(i, t) : typeof e == "string" && (e.startsWith("/") || e.startsWith("http")) ? new Ea(i, t) : typeof e == "string" && e.startsWith("localStorage:") ? new we(i, t) : typeof e == "string" && e.startsWith("route:") ? new wa(i, t) : new Ca(i, t);
|
|
7471
7457
|
}
|
|
7472
|
-
function
|
|
7473
|
-
const e = {}, s = new
|
|
7458
|
+
function sl(i, t) {
|
|
7459
|
+
const e = {}, s = new Ee(), n = [];
|
|
7474
7460
|
for (const r in t) {
|
|
7475
7461
|
let p = function() {
|
|
7476
|
-
return
|
|
7462
|
+
return St(i);
|
|
7477
7463
|
}, a = t[r];
|
|
7478
7464
|
typeof a == "string" && (a = { source: a });
|
|
7479
7465
|
const o = {
|
|
7480
7466
|
...a,
|
|
7481
|
-
cacheKey: a.cacheKey || `${r}-${JSON.stringify(
|
|
7482
|
-
}, l =
|
|
7467
|
+
cacheKey: a.cacheKey || `${r}-${JSON.stringify(St(i))}`
|
|
7468
|
+
}, l = Ce(o, s), c = I(null), h = I(!0), d = I(null), u = I(null);
|
|
7483
7469
|
let f = 0;
|
|
7484
7470
|
async function m() {
|
|
7485
7471
|
const b = ++f;
|
|
@@ -7520,11 +7506,11 @@ function il(i, t) {
|
|
|
7520
7506
|
},
|
|
7521
7507
|
// For StorageSource
|
|
7522
7508
|
setValue(b) {
|
|
7523
|
-
l instanceof
|
|
7509
|
+
l instanceof we && (l.setValue(b), c.value = b);
|
|
7524
7510
|
},
|
|
7525
7511
|
// For WebSocketSource
|
|
7526
7512
|
send(b) {
|
|
7527
|
-
l instanceof
|
|
7513
|
+
l instanceof ke && l.send(b);
|
|
7528
7514
|
},
|
|
7529
7515
|
_source: l
|
|
7530
7516
|
};
|
|
@@ -7536,8 +7522,8 @@ function il(i, t) {
|
|
|
7536
7522
|
}
|
|
7537
7523
|
}, window.__kupolaDepInstances || (window.__kupolaDepInstances = []), window.__kupolaDepInstances.push(e), e;
|
|
7538
7524
|
}
|
|
7539
|
-
function
|
|
7540
|
-
const t = new
|
|
7525
|
+
function il(i) {
|
|
7526
|
+
const t = new Ee(), e = Ce(i, t), s = I(null), n = I(!0), r = I(null);
|
|
7541
7527
|
let a = 0;
|
|
7542
7528
|
async function o() {
|
|
7543
7529
|
const l = ++a;
|
|
@@ -7565,7 +7551,7 @@ function nl(i) {
|
|
|
7565
7551
|
}
|
|
7566
7552
|
};
|
|
7567
7553
|
}
|
|
7568
|
-
function
|
|
7554
|
+
function St(i) {
|
|
7569
7555
|
const t = {};
|
|
7570
7556
|
for (const e in i) {
|
|
7571
7557
|
const s = i[e];
|
|
@@ -7573,11 +7559,11 @@ function Dt(i) {
|
|
|
7573
7559
|
}
|
|
7574
7560
|
return t;
|
|
7575
7561
|
}
|
|
7576
|
-
function
|
|
7562
|
+
function nl() {
|
|
7577
7563
|
}
|
|
7578
|
-
class
|
|
7564
|
+
class Sa {
|
|
7579
7565
|
constructor(t, e = {}) {
|
|
7580
|
-
this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey =
|
|
7566
|
+
this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this.columns = (e.columns || []).map((s, n) => ({ ...s, _index: n })), this.rowKey = e.rowKey || "id", this._data = [], this._loading = !1, this.striped = e.striped !== !1, this.bordered = e.bordered || !1, this.hoverable = e.hoverable !== !1, this.compact = e.compact || !1, this.emptyText = e.emptyText || "暂无数据", this.loadingText = e.loadingText || "加载中...", this.multiSort = e.multiSort || !1, this._sorts = [], this._filterText = "", this._showPagination = e.pagination !== !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._pageSize = e.pageSize || 10, this._currentPage = 1, this._total = 0, this.selection = e.selection || null, this._selectedKeys = /* @__PURE__ */ new Set(), this.selectionColumnTitle = e.selectionColumnTitle || "", this.expandable = e.expandable || null, this._expandedKeys = /* @__PURE__ */ new Set(), this.expandColumnTitle = e.expandColumnTitle || "", this.editable = e.editable || !1, this._editingCell = null, this._editBuffer = {}, this.resizable = e.resizable || !1, this.draggable = e.draggable || !1, this._dragState = null, this.tree = e.tree || null, this._treeExpandedKeys = /* @__PURE__ */ new Set(), e.tree?.defaultExpandAll && (this._treeExpandAll = !0), this.virtualScroll = e.virtualScroll || null, this._scrollContainer = null, this._scrollHandler = null, this._resizeCleanups = [], this._filterDebounceTimer = null, this._reactiveCleanups = [], this.mergeCells = e.mergeCells || null, this.onSort = e.onSort || null, this.onPageChange = e.onPageChange || null, this.onRowClick = e.onRowClick || null, this.onFilter = e.onFilter || null, this.onSelect = e.onSelect || null, this.onExpand = e.onExpand || null, this.onEditSave = e.onEditSave || null, this.onEditCancel = e.onEditCancel || null, this.onRowDragEnd = e.onRowDragEnd || null, this.onColumnResize = e.onColumnResize || null, this.sortKey = I(null), this.sortOrder = I(null), this.currentPage = I(1), this.filterText = I(""), this.selectedKeys = I([]), this._init();
|
|
7581
7567
|
}
|
|
7582
7568
|
_init() {
|
|
7583
7569
|
this.element.classList.add("kupola-table-wrapper"), this.virtualScroll && this.element.classList.add("kupola-table-virtual-wrapper"), this.render();
|
|
@@ -8115,10 +8101,10 @@ class Da {
|
|
|
8115
8101
|
this._filterDebounceTimer && (clearTimeout(this._filterDebounceTimer), this._filterDebounceTimer = null), this._resizeCleanups.forEach((t) => t()), this._resizeCleanups = [], this._reactiveCleanups.forEach((t) => t.unsubscribe()), this._reactiveCleanups = [], this.element.innerHTML = "", this.element.classList.remove("kupola-table-wrapper", "kupola-table-virtual-wrapper"), this._data = [], this._virtualData = null, this._dragState = null, this._editingCell = null, this._editBuffer = {};
|
|
8116
8102
|
}
|
|
8117
8103
|
}
|
|
8118
|
-
function
|
|
8119
|
-
return new
|
|
8104
|
+
function Se(i, t) {
|
|
8105
|
+
return new Sa(i, t);
|
|
8120
8106
|
}
|
|
8121
|
-
function
|
|
8107
|
+
function rl() {
|
|
8122
8108
|
document.querySelectorAll("[data-kupola-table]").forEach((i) => {
|
|
8123
8109
|
const t = i.getAttribute("data-kupola-table");
|
|
8124
8110
|
let e = {};
|
|
@@ -8127,13 +8113,13 @@ function al() {
|
|
|
8127
8113
|
e = JSON.parse(t);
|
|
8128
8114
|
} catch {
|
|
8129
8115
|
}
|
|
8130
|
-
|
|
8116
|
+
Se(i, e);
|
|
8131
8117
|
});
|
|
8132
8118
|
}
|
|
8133
|
-
E.register("table",
|
|
8134
|
-
class
|
|
8119
|
+
E.register("table", Se);
|
|
8120
|
+
class La {
|
|
8135
8121
|
constructor(t, e = {}) {
|
|
8136
|
-
this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current =
|
|
8122
|
+
this.element = typeof t == "string" ? document.querySelector(t) : t, this.options = e, this._current = e.current || 1, this._total = e.total || 0, this._pageSize = e.pageSize || 10, this._maxPages = e.maxPages || 7, this._showTotal = e.showTotal !== !1, this._showSizeChanger = e.showSizeChanger || !1, this._pageSizes = e.pageSizes || [10, 20, 50, 100], this._simple = e.simple || !1, this.current = I(this._current), this.total = I(this._total), this.onChange = e.onChange || null, this.onPageSizeChange = e.onPageSizeChange || null, this._init();
|
|
8137
8123
|
}
|
|
8138
8124
|
_init() {
|
|
8139
8125
|
this.element.classList.add("kupola-pagination"), this.render();
|
|
@@ -8231,9 +8217,9 @@ class Ha {
|
|
|
8231
8217
|
this.element.innerHTML = "", this.element.classList.remove("kupola-pagination");
|
|
8232
8218
|
}
|
|
8233
8219
|
}
|
|
8234
|
-
let
|
|
8235
|
-
function
|
|
8236
|
-
if (
|
|
8220
|
+
let Lt = !1;
|
|
8221
|
+
function Da() {
|
|
8222
|
+
if (Lt || typeof document > "u") return;
|
|
8237
8223
|
const i = document.createElement("style");
|
|
8238
8224
|
i.textContent = `
|
|
8239
8225
|
.kupola-pagination { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
@@ -8249,13 +8235,13 @@ function Ma() {
|
|
|
8249
8235
|
.kupola-pagination-jumper { font-size: 14px; color: #666; }
|
|
8250
8236
|
.kupola-pagination-jumper input { width: 50px; height: 28px; margin: 0 4px; padding: 0 8px; border: 1px solid #d9d9d9; border-radius: 4px; text-align: center; font-size: 13px; }
|
|
8251
8237
|
.kupola-pagination-jumper input:focus { outline: none; border-color: #1890ff; }
|
|
8252
|
-
`, document.head.appendChild(i),
|
|
8238
|
+
`, document.head.appendChild(i), Lt = !0;
|
|
8253
8239
|
}
|
|
8254
|
-
function
|
|
8255
|
-
return
|
|
8240
|
+
function al(i, t) {
|
|
8241
|
+
return Da(), new La(i, t);
|
|
8256
8242
|
}
|
|
8257
|
-
let
|
|
8258
|
-
class
|
|
8243
|
+
let Dt = !1;
|
|
8244
|
+
class Ha extends HTMLElement {
|
|
8259
8245
|
static get observedAttributes() {
|
|
8260
8246
|
return ["open"];
|
|
8261
8247
|
}
|
|
@@ -8277,7 +8263,7 @@ class Ia extends HTMLElement {
|
|
|
8277
8263
|
}
|
|
8278
8264
|
}
|
|
8279
8265
|
}
|
|
8280
|
-
class
|
|
8266
|
+
class Ma extends HTMLElement {
|
|
8281
8267
|
static get observedAttributes() {
|
|
8282
8268
|
return ["title", "position"];
|
|
8283
8269
|
}
|
|
@@ -8292,7 +8278,7 @@ class Ta extends HTMLElement {
|
|
|
8292
8278
|
}
|
|
8293
8279
|
}
|
|
8294
8280
|
}
|
|
8295
|
-
class
|
|
8281
|
+
class Ta extends HTMLElement {
|
|
8296
8282
|
connectedCallback() {
|
|
8297
8283
|
this._render();
|
|
8298
8284
|
}
|
|
@@ -8310,13 +8296,13 @@ class Aa extends HTMLElement {
|
|
|
8310
8296
|
}), this.innerHTML = "", this.appendChild(t);
|
|
8311
8297
|
}
|
|
8312
8298
|
}
|
|
8313
|
-
class
|
|
8299
|
+
class Ia extends HTMLElement {
|
|
8314
8300
|
static get observedAttributes() {
|
|
8315
8301
|
return ["title"];
|
|
8316
8302
|
}
|
|
8317
8303
|
// Content is read by parent <k-collapse> during its connectedCallback
|
|
8318
8304
|
}
|
|
8319
|
-
class
|
|
8305
|
+
class Aa extends HTMLElement {
|
|
8320
8306
|
static get observedAttributes() {
|
|
8321
8307
|
return ["position", "open"];
|
|
8322
8308
|
}
|
|
@@ -8334,7 +8320,7 @@ class Pa extends HTMLElement {
|
|
|
8334
8320
|
}
|
|
8335
8321
|
}
|
|
8336
8322
|
}
|
|
8337
|
-
class
|
|
8323
|
+
class za extends HTMLElement {
|
|
8338
8324
|
static get observedAttributes() {
|
|
8339
8325
|
return ["title", "open"];
|
|
8340
8326
|
}
|
|
@@ -8377,234 +8363,234 @@ class $a extends HTMLElement {
|
|
|
8377
8363
|
this.removeAttribute("open");
|
|
8378
8364
|
}
|
|
8379
8365
|
}
|
|
8380
|
-
function
|
|
8381
|
-
if (
|
|
8382
|
-
|
|
8366
|
+
function ol() {
|
|
8367
|
+
if (Dt || typeof customElements > "u") return;
|
|
8368
|
+
Dt = !0;
|
|
8383
8369
|
const i = [
|
|
8384
|
-
["k-dropdown",
|
|
8385
|
-
["k-tooltip",
|
|
8386
|
-
["k-collapse",
|
|
8387
|
-
["k-collapse-item",
|
|
8388
|
-
["k-drawer",
|
|
8389
|
-
["k-modal",
|
|
8370
|
+
["k-dropdown", Ha],
|
|
8371
|
+
["k-tooltip", Ma],
|
|
8372
|
+
["k-collapse", Ta],
|
|
8373
|
+
["k-collapse-item", Ia],
|
|
8374
|
+
["k-drawer", Aa],
|
|
8375
|
+
["k-modal", za]
|
|
8390
8376
|
];
|
|
8391
8377
|
for (const [t, e] of i)
|
|
8392
8378
|
customElements.get(t) || customElements.define(t, e);
|
|
8393
8379
|
}
|
|
8394
8380
|
export {
|
|
8395
8381
|
X as BRAND_OPTIONS,
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8399
|
-
|
|
8400
|
-
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8382
|
+
xa as CacheEntry,
|
|
8383
|
+
Ee as CacheManager,
|
|
8384
|
+
Ur as Calendar,
|
|
8385
|
+
Pr as Carousel,
|
|
8386
|
+
Rr as Collapse,
|
|
8387
|
+
Kr as ColorPicker,
|
|
8388
|
+
xr as ComponentInitializerRegistry,
|
|
8389
|
+
ca as Countdown,
|
|
8390
|
+
Hr as Datepicker,
|
|
8405
8391
|
N as DependsError,
|
|
8406
8392
|
U as DependsSource,
|
|
8407
|
-
|
|
8408
|
-
|
|
8409
|
-
|
|
8410
|
-
|
|
8411
|
-
|
|
8412
|
-
|
|
8413
|
-
|
|
8414
|
-
|
|
8415
|
-
|
|
8416
|
-
|
|
8417
|
-
|
|
8393
|
+
Io as Dialog,
|
|
8394
|
+
Br as Drawer,
|
|
8395
|
+
Sr as Dropdown,
|
|
8396
|
+
Xr as DynamicTags,
|
|
8397
|
+
Ea as FetchedSource,
|
|
8398
|
+
Fr as FileUpload,
|
|
8399
|
+
ka as FunctionSource,
|
|
8400
|
+
Cr as GlobalEvents,
|
|
8401
|
+
ta as Heatmap,
|
|
8402
|
+
Xo as Icons,
|
|
8403
|
+
pe as ImagePreview,
|
|
8418
8404
|
tt as KupolaComponent,
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8405
|
+
wr as KupolaComponentRegistry,
|
|
8406
|
+
cr as KupolaDataBind,
|
|
8407
|
+
dr as KupolaEventBus,
|
|
8408
|
+
_a as KupolaForm,
|
|
8409
|
+
Gt as KupolaI18n,
|
|
8424
8410
|
ut as KupolaLifecycle,
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8411
|
+
La as KupolaPagination,
|
|
8412
|
+
vt as KupolaStore,
|
|
8413
|
+
hr as KupolaStoreManager,
|
|
8414
|
+
Sa as KupolaTable,
|
|
8415
|
+
Ba as KupolaUtils,
|
|
8416
|
+
na as KupolaValidator,
|
|
8417
|
+
Po as Message,
|
|
8432
8418
|
$ as Modal,
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8419
|
+
Ao as Notification,
|
|
8420
|
+
da as NumberInput,
|
|
8421
|
+
ye as PATHS,
|
|
8422
|
+
wa as RouteSource,
|
|
8423
|
+
va as Scheduler,
|
|
8424
|
+
Lr as Select,
|
|
8425
|
+
pa as SlideCaptcha,
|
|
8426
|
+
Ar as Slider,
|
|
8427
|
+
Gr as StatCard,
|
|
8428
|
+
Ca as StaticSource,
|
|
8429
|
+
we as StorageSource,
|
|
8430
|
+
Jr as Tag,
|
|
8431
|
+
Tr as Timepicker,
|
|
8432
|
+
sa as Tooltip,
|
|
8433
|
+
ra as VirtualList,
|
|
8434
|
+
ke as WebSocketSource,
|
|
8435
|
+
Mo as alertModal,
|
|
8436
|
+
xt as applyMixin,
|
|
8437
|
+
Vs as arrayUtils,
|
|
8438
|
+
to as bootstrapComponents,
|
|
8439
|
+
Eo as cleanupAllDropdowns,
|
|
8440
|
+
ga as cleanupAllSlideCaptchas,
|
|
8441
|
+
Yr as cleanupCalendar,
|
|
8442
|
+
$r as cleanupCarousel,
|
|
8443
|
+
Vr as cleanupCollapse,
|
|
8444
|
+
Wr as cleanupColorPicker,
|
|
8445
|
+
ha as cleanupCountdown,
|
|
8446
|
+
Mr as cleanupDatepicker,
|
|
8447
|
+
qr as cleanupDrawer,
|
|
8448
|
+
te as cleanupDropdown,
|
|
8449
|
+
jr as cleanupDynamicTags,
|
|
8450
|
+
Nr as cleanupFileUpload,
|
|
8451
|
+
ea as cleanupHeatmap,
|
|
8452
|
+
Or as cleanupModal,
|
|
8453
|
+
ua as cleanupNumberInput,
|
|
8454
|
+
Dr as cleanupSelect,
|
|
8455
|
+
ma as cleanupSlideCaptcha,
|
|
8456
|
+
zr as cleanupSlider,
|
|
8457
|
+
Qr as cleanupStatCard,
|
|
8458
|
+
Zr as cleanupTag,
|
|
8459
|
+
Ir as cleanupTimepicker,
|
|
8460
|
+
ia as cleanupTooltip,
|
|
8461
|
+
oa as cleanupVirtualList,
|
|
8462
|
+
nl as clearCache,
|
|
8463
|
+
Qo as configureHttpClient,
|
|
8464
|
+
Ho as confirmModal,
|
|
8465
|
+
Ua as createBrandPicker,
|
|
8466
|
+
no as createI18n,
|
|
8467
|
+
$a as createLifecycle,
|
|
8468
|
+
ae as createModal,
|
|
8469
|
+
Ce as createSource,
|
|
8470
|
+
Oa as createStore,
|
|
8471
|
+
Wa as createThemeToggle,
|
|
8472
|
+
tr as cryptoUtils,
|
|
8473
|
+
pn as dateUtils,
|
|
8474
|
+
fn as debounce,
|
|
8475
|
+
io as defineComponent,
|
|
8476
|
+
eo as defineMixin,
|
|
8477
|
+
go as emit,
|
|
8478
|
+
_o as emitGlobal,
|
|
8479
|
+
Xa as escapeHtml,
|
|
8480
|
+
uo as formatCurrency,
|
|
8481
|
+
co as formatDate,
|
|
8482
|
+
ho as formatNumber,
|
|
8483
|
+
Za as generateSecureId,
|
|
8484
|
+
Va as getBasePath,
|
|
8499
8485
|
J as getBrand,
|
|
8500
8486
|
pt as getConfig,
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8487
|
+
fr as getDefaultBrand,
|
|
8488
|
+
pr as getDefaultTheme,
|
|
8489
|
+
Zo as getFormInstance,
|
|
8490
|
+
tl as getHttpClient,
|
|
8491
|
+
Ka as getHttpConfig,
|
|
8492
|
+
jt as getIconsPath,
|
|
8493
|
+
bo as getListenerCount,
|
|
8494
|
+
lo as getLocale,
|
|
8495
|
+
gr as getMessageConfig,
|
|
8496
|
+
_r as getNotificationConfig,
|
|
8497
|
+
mr as getPerformanceConfig,
|
|
8512
8498
|
nt as getSecurityConfig,
|
|
8513
|
-
|
|
8499
|
+
Fa as getStore,
|
|
8514
8500
|
F as getTheme,
|
|
8515
8501
|
j as getUiConfig,
|
|
8516
|
-
|
|
8502
|
+
yr as getValidationConfig,
|
|
8517
8503
|
H as globalEvents,
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8504
|
+
rl as initAllTables,
|
|
8505
|
+
de as initCalendar,
|
|
8506
|
+
Fo as initCalendars,
|
|
8507
|
+
re as initCarousel,
|
|
8508
|
+
Lo as initCarousels,
|
|
8509
|
+
ce as initCollapse,
|
|
8510
|
+
qo as initCollapses,
|
|
8511
|
+
he as initColorPicker,
|
|
8512
|
+
Oo as initColorPickers,
|
|
8513
|
+
be as initCountdown,
|
|
8514
|
+
jo as initCountdowns,
|
|
8515
|
+
se as initDatepicker,
|
|
8516
|
+
ko as initDatepickers,
|
|
8531
8517
|
ht as initDrawer,
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8518
|
+
Do as initDrawers,
|
|
8519
|
+
Qt as initDropdown,
|
|
8520
|
+
xo as initDropdowns,
|
|
8521
|
+
ue as initDynamicTags,
|
|
8522
|
+
No as initDynamicTagsAll,
|
|
8523
|
+
le as initFileUpload,
|
|
8524
|
+
Bo as initFileUploads,
|
|
8525
|
+
ya as initFormValidation,
|
|
8526
|
+
ge as initHeatmap,
|
|
8527
|
+
Uo as initHeatmaps,
|
|
8528
|
+
Ro as initImagePreview,
|
|
8529
|
+
$o as initMessages,
|
|
8530
|
+
oe as initModal,
|
|
8545
8531
|
To as initModals,
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8532
|
+
zo as initNotifications,
|
|
8533
|
+
xe as initNumberInput,
|
|
8534
|
+
Jo as initNumberInputs,
|
|
8535
|
+
al as initPagination,
|
|
8536
|
+
ee as initSelect,
|
|
8537
|
+
wo as initSelects,
|
|
8538
|
+
fa as initSlideCaptchas,
|
|
8539
|
+
ne as initSlider,
|
|
8540
|
+
So as initSliders,
|
|
8541
|
+
me as initStatCard,
|
|
8542
|
+
Wo as initStatCards,
|
|
8543
|
+
Se as initTable,
|
|
8544
|
+
fe as initTag,
|
|
8545
|
+
Ko as initTags,
|
|
8546
|
+
br as initTheme,
|
|
8547
|
+
ie as initTimepicker,
|
|
8548
|
+
Co as initTimepickers,
|
|
8549
|
+
_e as initTooltip,
|
|
8550
|
+
Yo as initTooltips,
|
|
8551
|
+
aa as initVirtualList,
|
|
8552
|
+
Et as kupolaBootstrap,
|
|
8567
8553
|
O as kupolaData,
|
|
8568
|
-
|
|
8554
|
+
qa as kupolaEvents,
|
|
8569
8555
|
R as kupolaI18n,
|
|
8570
8556
|
E as kupolaInitializer,
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8557
|
+
Pa as kupolaLifecycle,
|
|
8558
|
+
T as kupolaRegistry,
|
|
8559
|
+
Yt as kupolaStoreManager,
|
|
8560
|
+
Ja as maskData,
|
|
8561
|
+
ao as n,
|
|
8562
|
+
$i as numberUtils,
|
|
8563
|
+
ci as objectUtils,
|
|
8564
|
+
mo as off,
|
|
8565
|
+
vo as offAll,
|
|
8566
|
+
yo as offByScope,
|
|
8567
|
+
Na as offConfigChange,
|
|
8568
|
+
po as on,
|
|
8569
|
+
ur as onConfigChange,
|
|
8570
|
+
fo as once,
|
|
8571
|
+
or as preloadUtils,
|
|
8572
|
+
I as ref,
|
|
8573
|
+
Ga as registerComponent,
|
|
8574
|
+
Qa as registerLazyComponent,
|
|
8575
|
+
ol as registerWebComponents,
|
|
8590
8576
|
dt as renderIcon,
|
|
8591
|
-
|
|
8592
|
-
|
|
8577
|
+
el as resetHttpClient,
|
|
8578
|
+
Ya as sanitizeHtml,
|
|
8593
8579
|
lt as setBrand,
|
|
8594
|
-
|
|
8595
|
-
|
|
8580
|
+
Ra as setConfig,
|
|
8581
|
+
oo as setLocale,
|
|
8596
8582
|
Q as setTheme,
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8603
|
-
|
|
8604
|
-
|
|
8605
|
-
|
|
8606
|
-
|
|
8583
|
+
Vo as showImagePreview,
|
|
8584
|
+
ts as stringUtils,
|
|
8585
|
+
ja as stripHtml,
|
|
8586
|
+
ve as svg,
|
|
8587
|
+
ro as t,
|
|
8588
|
+
mn as throttle,
|
|
8589
|
+
sl as useDeps,
|
|
8590
|
+
so as useMixin,
|
|
8591
|
+
il as useQuery,
|
|
8592
|
+
Go as validateForm,
|
|
8607
8593
|
P as validator,
|
|
8608
|
-
|
|
8594
|
+
Kt as validatorUtils
|
|
8609
8595
|
};
|
|
8610
8596
|
//# sourceMappingURL=kupola.esm.js.map
|