@interopio/home-ui-react 1.2.0 → 1.2.2
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/index.css +1 -1
- package/index.js +12 -12
- package/index.js.map +1 -1
- package/index.mjs +977 -930
- package/index.mjs.map +1 -1
- package/lib/home-app-workspace/after-tabs.d.ts +3 -0
- package/lib/home-app-workspace/group-header-buttons.d.ts +3 -0
- package/lib/home-app-workspace/useAddWindowButtonVisible.d.ts +1 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as a, jsxs as w, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import * as Je from "react";
|
|
3
|
-
import be, { forwardRef as lr, useState as
|
|
3
|
+
import be, { forwardRef as lr, useState as z, useContext as ne, useEffect as te, useCallback as he, useMemo as lt, useRef as Le, createContext as Vt, Component as _o, useReducer as jn } from "react";
|
|
4
4
|
import { IOConnectContext as ie, IOConnectProvider as ur } from "@interopio/react-hooks";
|
|
5
|
-
import ji, { getFrameId as Ui,
|
|
6
|
-
import * as
|
|
5
|
+
import ji, { getFrameId as Ui, showAddApplicationPopup as Fi, AddWindowButton as Wi, GroupHeaderButtons as Hi, Logo as Vi } from "@interopio/workspaces-ui-react";
|
|
6
|
+
import * as zi from "react-dom";
|
|
7
7
|
import Gt from "react-dom";
|
|
8
8
|
const Mt = (t) => "items" in t, Be = {
|
|
9
9
|
APPLICATION: "application",
|
|
@@ -61,7 +61,7 @@ const Mt = (t) => "items" in t, Be = {
|
|
|
61
61
|
}, Lo = (t) => t.title || t.name, tn = (t) => {
|
|
62
62
|
const e = Lo(t), n = t.userProperties.folder;
|
|
63
63
|
return n ? `${n}/${e}` : e;
|
|
64
|
-
},
|
|
64
|
+
}, Zi = (t, e) => dn.compare(tn(t), tn(e)), Bi = (t, e) => dn.compare(tn(e), tn(t)), $i = (t, e, n) => {
|
|
65
65
|
const { isSectionCollapsible: r, sortOrder: o = Ut.ASCENDING, ...i } = n;
|
|
66
66
|
return {
|
|
67
67
|
id: "applications-section",
|
|
@@ -69,8 +69,8 @@ const Mt = (t) => "items" in t, Be = {
|
|
|
69
69
|
items: dr({
|
|
70
70
|
items: t,
|
|
71
71
|
sortOrder: o,
|
|
72
|
-
ascendingCompare:
|
|
73
|
-
descendingCompare:
|
|
72
|
+
ascendingCompare: Zi,
|
|
73
|
+
descendingCompare: Bi
|
|
74
74
|
}).reduce((l, u) => {
|
|
75
75
|
const f = {
|
|
76
76
|
id: u.name,
|
|
@@ -87,7 +87,7 @@ const Mt = (t) => "items" in t, Be = {
|
|
|
87
87
|
...i
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
var
|
|
90
|
+
var Gi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Fn = {}, Ki = {
|
|
91
91
|
get exports() {
|
|
92
92
|
return Fn;
|
|
93
93
|
},
|
|
@@ -129,7 +129,7 @@ var Zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
129
129
|
}
|
|
130
130
|
t.exports ? (n.default = n, t.exports = n) : window.classNames = n;
|
|
131
131
|
})();
|
|
132
|
-
})(
|
|
132
|
+
})(Ki);
|
|
133
133
|
const G = Fn;
|
|
134
134
|
const Mo = (t) => t.key === "Enter" || t.key === " ", Ct = (t, e) => typeof t > "u" ? {} : {
|
|
135
135
|
tabIndex: 0,
|
|
@@ -201,7 +201,7 @@ function jo(t) {
|
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const qi = (t) => {
|
|
205
205
|
const {
|
|
206
206
|
className: e,
|
|
207
207
|
iconSrc: n,
|
|
@@ -214,12 +214,20 @@ const $i = (t) => {
|
|
|
214
214
|
} = t;
|
|
215
215
|
return /* @__PURE__ */ w("h4", { className: G(e, "io-list-header"), "data-testid": "base-section-header", ...l, children: [
|
|
216
216
|
c && /* @__PURE__ */ a(ce, { size: 8, name: "" }),
|
|
217
|
-
n ? /* @__PURE__ */ a(jo, { src: n, alt: `${o} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ a(ce, { name: r, "data-testid": "icon" }),
|
|
217
|
+
n ? /* @__PURE__ */ a(jo, { className: "section-img-icon", src: n, alt: `${o} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ a(ce, { className: "section-icon", name: r, "data-testid": "icon" }),
|
|
218
218
|
o,
|
|
219
|
-
s && /* @__PURE__ */ a(
|
|
219
|
+
s && /* @__PURE__ */ a(
|
|
220
|
+
ce,
|
|
221
|
+
{
|
|
222
|
+
className: G("collapse-icon", !i && "collapsed"),
|
|
223
|
+
name: "chevron-down",
|
|
224
|
+
size: 14,
|
|
225
|
+
"data-testid": "collapse-icon"
|
|
226
|
+
}
|
|
227
|
+
)
|
|
220
228
|
] });
|
|
221
|
-
},
|
|
222
|
-
const [t, e] =
|
|
229
|
+
}, Yi = () => {
|
|
230
|
+
const [t, e] = z([]), n = ne(ie);
|
|
223
231
|
return te(() => {
|
|
224
232
|
if (!n)
|
|
225
233
|
return;
|
|
@@ -237,8 +245,8 @@ const $i = (t) => {
|
|
|
237
245
|
}), s = [r, i, o];
|
|
238
246
|
return () => s.forEach((c) => c());
|
|
239
247
|
}, [n]), t;
|
|
240
|
-
},
|
|
241
|
-
const [t, e] =
|
|
248
|
+
}, Xi = () => {
|
|
249
|
+
const [t, e] = z({}), n = ne(ie);
|
|
242
250
|
return te(() => {
|
|
243
251
|
if (!n)
|
|
244
252
|
return;
|
|
@@ -260,8 +268,8 @@ const $i = (t) => {
|
|
|
260
268
|
}), i = [r, o];
|
|
261
269
|
return () => i.forEach((s) => s());
|
|
262
270
|
}, [n]), t;
|
|
263
|
-
}, Uo = "interopio_home_ui_selected_layout",
|
|
264
|
-
const [r, o] =
|
|
271
|
+
}, Uo = "interopio_home_ui_selected_layout", Ji = "interopio_home_ui_favorite_entities", Qi = "interopio_home_ui_user", fn = (t, e, n) => {
|
|
272
|
+
const [r, o] = z(() => {
|
|
265
273
|
try {
|
|
266
274
|
const c = window[t].getItem(e);
|
|
267
275
|
return c ? JSON.parse(c) : null;
|
|
@@ -303,21 +311,21 @@ var fe = function(t) {
|
|
|
303
311
|
return { ok: !0, result: t };
|
|
304
312
|
}, ue = function(t) {
|
|
305
313
|
return { ok: !1, error: t };
|
|
306
|
-
},
|
|
314
|
+
}, ea = function(t) {
|
|
307
315
|
return t.ok === !0 ? Promise.resolve(t.result) : Promise.reject(t.error);
|
|
308
|
-
},
|
|
316
|
+
}, ta = function(t, e) {
|
|
309
317
|
return e.ok === !0 ? e.result : t;
|
|
310
|
-
},
|
|
318
|
+
}, na = function(t) {
|
|
311
319
|
if (t.ok === !0)
|
|
312
320
|
return t.result;
|
|
313
321
|
throw t.error;
|
|
314
|
-
},
|
|
322
|
+
}, ra = function(t, e) {
|
|
315
323
|
return e.ok === !0 ? fe(t(e.result)) : e;
|
|
316
324
|
}, Dr = function(t, e, n) {
|
|
317
325
|
return e.ok === !1 ? e : n.ok === !1 ? n : fe(t(e.result, n.result));
|
|
318
326
|
}, xn = function(t, e) {
|
|
319
327
|
return e.ok === !0 ? e : ue(t(e.error));
|
|
320
|
-
},
|
|
328
|
+
}, oa = function(t, e) {
|
|
321
329
|
return e.ok === !0 ? t(e.result) : e;
|
|
322
330
|
};
|
|
323
331
|
/*! *****************************************************************************
|
|
@@ -344,7 +352,7 @@ var Wn = function() {
|
|
|
344
352
|
return e;
|
|
345
353
|
}, Wn.apply(this, arguments);
|
|
346
354
|
};
|
|
347
|
-
function
|
|
355
|
+
function ia(t, e) {
|
|
348
356
|
var n = {};
|
|
349
357
|
for (var r in t)
|
|
350
358
|
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
@@ -380,7 +388,7 @@ var Rt = function(t) {
|
|
|
380
388
|
return Array.isArray(t);
|
|
381
389
|
}, Kt = function(t) {
|
|
382
390
|
return typeof t == "object" && t !== null && !Rt(t);
|
|
383
|
-
},
|
|
391
|
+
}, aa = function(t) {
|
|
384
392
|
switch (typeof t) {
|
|
385
393
|
case "string":
|
|
386
394
|
return "a string";
|
|
@@ -395,14 +403,14 @@ var Rt = function(t) {
|
|
|
395
403
|
default:
|
|
396
404
|
return JSON.stringify(t);
|
|
397
405
|
}
|
|
398
|
-
},
|
|
399
|
-
return "expected " + t + ", got " +
|
|
400
|
-
},
|
|
406
|
+
}, ze = function(t, e) {
|
|
407
|
+
return "expected " + t + ", got " + aa(e);
|
|
408
|
+
}, _t = function(t) {
|
|
401
409
|
return t.map(function(e) {
|
|
402
410
|
return typeof e == "string" ? "." + e : "[" + e + "]";
|
|
403
411
|
}).join("");
|
|
404
412
|
}, It = function(t, e) {
|
|
405
|
-
var n = e.at, r =
|
|
413
|
+
var n = e.at, r = ia(e, ["at"]);
|
|
406
414
|
return Wn({ at: t + (n || "") }, r);
|
|
407
415
|
}, de = (
|
|
408
416
|
/** @class */
|
|
@@ -419,16 +427,16 @@ var Rt = function(t) {
|
|
|
419
427
|
};
|
|
420
428
|
}, n.decode(r));
|
|
421
429
|
}, this.runPromise = function(r) {
|
|
422
|
-
return
|
|
430
|
+
return ea(n.run(r));
|
|
423
431
|
}, this.runWithException = function(r) {
|
|
424
|
-
return
|
|
432
|
+
return na(n.run(r));
|
|
425
433
|
}, this.map = function(r) {
|
|
426
434
|
return new t(function(o) {
|
|
427
|
-
return
|
|
435
|
+
return ra(r, n.decode(o));
|
|
428
436
|
});
|
|
429
437
|
}, this.andThen = function(r) {
|
|
430
438
|
return new t(function(o) {
|
|
431
|
-
return
|
|
439
|
+
return oa(function(i) {
|
|
432
440
|
return r(i).decode(o);
|
|
433
441
|
}, n.decode(o));
|
|
434
442
|
});
|
|
@@ -440,15 +448,15 @@ var Rt = function(t) {
|
|
|
440
448
|
}
|
|
441
449
|
return t.string = function() {
|
|
442
450
|
return new t(function(e) {
|
|
443
|
-
return typeof e == "string" ? fe(e) : ue({ message:
|
|
451
|
+
return typeof e == "string" ? fe(e) : ue({ message: ze("a string", e) });
|
|
444
452
|
});
|
|
445
453
|
}, t.number = function() {
|
|
446
454
|
return new t(function(e) {
|
|
447
|
-
return typeof e == "number" ? fe(e) : ue({ message:
|
|
455
|
+
return typeof e == "number" ? fe(e) : ue({ message: ze("a number", e) });
|
|
448
456
|
});
|
|
449
457
|
}, t.boolean = function() {
|
|
450
458
|
return new t(function(e) {
|
|
451
|
-
return typeof e == "boolean" ? fe(e) : ue({ message:
|
|
459
|
+
return typeof e == "boolean" ? fe(e) : ue({ message: ze("a boolean", e) });
|
|
452
460
|
});
|
|
453
461
|
}, t.constant = function(e) {
|
|
454
462
|
return new t(function(n) {
|
|
@@ -468,7 +476,7 @@ var Rt = function(t) {
|
|
|
468
476
|
}
|
|
469
477
|
return fe(r);
|
|
470
478
|
} else
|
|
471
|
-
return Kt(n) ? fe(n) : ue({ message:
|
|
479
|
+
return Kt(n) ? fe(n) : ue({ message: ze("an object", n) });
|
|
472
480
|
});
|
|
473
481
|
}, t.array = function(e) {
|
|
474
482
|
return new t(function(n) {
|
|
@@ -484,7 +492,7 @@ var Rt = function(t) {
|
|
|
484
492
|
}, o, r(i, s));
|
|
485
493
|
}, fe([]));
|
|
486
494
|
} else
|
|
487
|
-
return Rt(n) ? fe(n) : ue({ message:
|
|
495
|
+
return Rt(n) ? fe(n) : ue({ message: ze("an array", n) });
|
|
488
496
|
});
|
|
489
497
|
}, t.tuple = function(e) {
|
|
490
498
|
return new t(function(n) {
|
|
@@ -502,7 +510,7 @@ var Rt = function(t) {
|
|
|
502
510
|
}
|
|
503
511
|
return fe(r);
|
|
504
512
|
} else
|
|
505
|
-
return ue({ message:
|
|
513
|
+
return ue({ message: ze("a tuple of length " + e.length, n) });
|
|
506
514
|
});
|
|
507
515
|
}, t.union = function(e, n) {
|
|
508
516
|
for (var r = [], o = 2; o < arguments.length; o++)
|
|
@@ -538,7 +546,7 @@ var Rt = function(t) {
|
|
|
538
546
|
}
|
|
539
547
|
return fe(r);
|
|
540
548
|
} else
|
|
541
|
-
return ue({ message:
|
|
549
|
+
return ue({ message: ze("an object", n) });
|
|
542
550
|
});
|
|
543
551
|
}, t.optional = function(e) {
|
|
544
552
|
return new t(function(n) {
|
|
@@ -563,30 +571,30 @@ var Rt = function(t) {
|
|
|
563
571
|
});
|
|
564
572
|
}, t.withDefault = function(e, n) {
|
|
565
573
|
return new t(function(r) {
|
|
566
|
-
return fe(
|
|
574
|
+
return fe(ta(e, n.decode(r)));
|
|
567
575
|
});
|
|
568
576
|
}, t.valueAt = function(e, n) {
|
|
569
577
|
return new t(function(r) {
|
|
570
578
|
for (var o = r, i = 0; i < e.length; i++) {
|
|
571
579
|
if (o === void 0)
|
|
572
580
|
return ue({
|
|
573
|
-
at:
|
|
581
|
+
at: _t(e.slice(0, i + 1)),
|
|
574
582
|
message: "path does not exist"
|
|
575
583
|
});
|
|
576
584
|
if (typeof e[i] == "string" && !Kt(o))
|
|
577
585
|
return ue({
|
|
578
|
-
at:
|
|
579
|
-
message:
|
|
586
|
+
at: _t(e.slice(0, i + 1)),
|
|
587
|
+
message: ze("an object", o)
|
|
580
588
|
});
|
|
581
589
|
if (typeof e[i] == "number" && !Rt(o))
|
|
582
590
|
return ue({
|
|
583
|
-
at:
|
|
584
|
-
message:
|
|
591
|
+
at: _t(e.slice(0, i + 1)),
|
|
592
|
+
message: ze("an array", o)
|
|
585
593
|
});
|
|
586
594
|
o = o[e[i]];
|
|
587
595
|
}
|
|
588
596
|
return xn(function(s) {
|
|
589
|
-
return o === void 0 ? { at:
|
|
597
|
+
return o === void 0 ? { at: _t(e), message: "path does not exist" } : It(_t(e), s);
|
|
590
598
|
}, n.decode(o));
|
|
591
599
|
});
|
|
592
600
|
}, t.succeed = function(e) {
|
|
@@ -603,39 +611,39 @@ var Rt = function(t) {
|
|
|
603
611
|
});
|
|
604
612
|
}, t;
|
|
605
613
|
}()
|
|
606
|
-
),
|
|
614
|
+
), Vn = de.string, sa = de.number, Fo = de.boolean, we = de.anyJson;
|
|
607
615
|
de.unknownJson;
|
|
608
616
|
var nn = de.constant, xe = de.object, Wo = de.array;
|
|
609
617
|
de.tuple;
|
|
610
618
|
de.dict;
|
|
611
|
-
var K = de.optional,
|
|
619
|
+
var K = de.optional, zn = de.oneOf;
|
|
612
620
|
de.union;
|
|
613
621
|
de.intersection;
|
|
614
622
|
de.withDefault;
|
|
615
623
|
de.valueAt;
|
|
616
624
|
de.succeed;
|
|
617
|
-
var
|
|
625
|
+
var ca = de.fail;
|
|
618
626
|
de.lazy;
|
|
619
|
-
const ye =
|
|
627
|
+
const ye = Vn().where((t) => t.length > 0, "Expected a non-empty string"), la = sa().where((t) => t >= 0, "Expected a non-negative number"), $e = (t, e) => {
|
|
620
628
|
const n = typeof t;
|
|
621
|
-
return n === "function" ? we() :
|
|
622
|
-
},
|
|
629
|
+
return n === "function" ? we() : ca(`The provided argument as ${e} should be of type function, provided: ${typeof n}`);
|
|
630
|
+
}, ua = xe({
|
|
623
631
|
name: ye,
|
|
624
632
|
displayName: K(ye),
|
|
625
633
|
disabled: K(Fo())
|
|
626
|
-
}),
|
|
634
|
+
}), da = xe({
|
|
627
635
|
id: ye,
|
|
628
636
|
title: ye,
|
|
629
637
|
description: K(ye),
|
|
630
|
-
icon: K(
|
|
631
|
-
iconSrc: K(
|
|
632
|
-
contextMenuActions: K(Wo(
|
|
638
|
+
icon: K(Vn()),
|
|
639
|
+
iconSrc: K(Vn()),
|
|
640
|
+
contextMenuActions: K(Wo(ua)),
|
|
633
641
|
type: ye
|
|
634
|
-
}),
|
|
642
|
+
}), fa = Wo(da), fr = () => {
|
|
635
643
|
const [t, e] = fn(
|
|
636
644
|
"localStorage",
|
|
637
|
-
|
|
638
|
-
|
|
645
|
+
Ji,
|
|
646
|
+
fa
|
|
639
647
|
), n = lt(() => t || [], [t]);
|
|
640
648
|
return { favoriteEntities: n, toggleFavorite: ({ isOpen: i, ...s }) => {
|
|
641
649
|
const c = n.find((u) => u.title === s.title && u.type === s.type), l = c ? n.filter((u) => u !== c) : [s, ...n];
|
|
@@ -644,18 +652,18 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
644
652
|
e(n.filter((s) => s.id !== i));
|
|
645
653
|
} };
|
|
646
654
|
}, Ho = () => {
|
|
647
|
-
const [t, e] =
|
|
655
|
+
const [t, e] = z(), n = ne(ie);
|
|
648
656
|
return te(() => {
|
|
649
657
|
if (!n)
|
|
650
658
|
return;
|
|
651
659
|
const r = Ui();
|
|
652
660
|
n.workspaces?.waitForFrame(r).then(e).catch((o) => console.error("Failed to get current frame", { error: o }));
|
|
653
661
|
}, [n]), t;
|
|
654
|
-
},
|
|
662
|
+
}, pa = () => {
|
|
655
663
|
const t = ne(ie);
|
|
656
664
|
return async (e) => t.interop.methods().every((n) => n.name !== e?.method) ? console.error("Interop method not found.") : await t.interop.invoke(e.method, e.params, e.target).catch((n) => console.error({ error: n }));
|
|
657
|
-
},
|
|
658
|
-
const [t, e] =
|
|
665
|
+
}, ha = () => {
|
|
666
|
+
const [t, e] = z([]), n = ne(ie);
|
|
659
667
|
return te(() => {
|
|
660
668
|
if (!n)
|
|
661
669
|
return;
|
|
@@ -672,8 +680,8 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
672
680
|
r = !0, o(), i();
|
|
673
681
|
};
|
|
674
682
|
}, [n]), t;
|
|
675
|
-
},
|
|
676
|
-
const [t, e] =
|
|
683
|
+
}, Vo = () => {
|
|
684
|
+
const [t, e] = z([]), n = ne(ie);
|
|
677
685
|
return te(() => {
|
|
678
686
|
if (!n)
|
|
679
687
|
return;
|
|
@@ -686,7 +694,7 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
686
694
|
r(), o();
|
|
687
695
|
};
|
|
688
696
|
}, [n]), t;
|
|
689
|
-
},
|
|
697
|
+
}, kn = ["None", "Low", "Medium", "High", "Critical"], ma = {
|
|
690
698
|
None: "#616161",
|
|
691
699
|
Low: "#7AC70C",
|
|
692
700
|
Medium: "#E0A900",
|
|
@@ -698,22 +706,22 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
698
706
|
}, jr = {
|
|
699
707
|
key: Zn.TIMESTAMP,
|
|
700
708
|
descending: !0
|
|
701
|
-
},
|
|
702
|
-
const n =
|
|
709
|
+
}, va = (t, e) => [...t].sort((n, r) => (e ? -1 : 1) * ((n.timestamp || 0) - (r.timestamp || 0))), ga = (t, e) => {
|
|
710
|
+
const n = kn[0];
|
|
703
711
|
return [...t].sort((r, o) => {
|
|
704
|
-
const i =
|
|
712
|
+
const i = kn.indexOf(r.severity || n), s = kn.indexOf(o.severity || n);
|
|
705
713
|
return (e ? -1 : 1) * (i - s);
|
|
706
714
|
});
|
|
707
|
-
},
|
|
708
|
-
[Zn.TIMESTAMP]:
|
|
709
|
-
[Zn.SEVERITY]:
|
|
710
|
-
},
|
|
711
|
-
const t =
|
|
715
|
+
}, ya = {
|
|
716
|
+
[Zn.TIMESTAMP]: va,
|
|
717
|
+
[Zn.SEVERITY]: ga
|
|
718
|
+
}, ba = () => {
|
|
719
|
+
const t = Vo(), [e, n] = z(jr), { key: r, descending: o } = e, i = lt(() => ya[r](t, o), [t, r, o]);
|
|
712
720
|
return { onNotificationsSort: he((c) => {
|
|
713
721
|
n((l) => ({ key: c, descending: l.key !== c ? jr.descending : !l.descending }));
|
|
714
722
|
}, []), sortedNotifications: i };
|
|
715
|
-
},
|
|
716
|
-
const [t, e] =
|
|
723
|
+
}, zo = () => {
|
|
724
|
+
const [t, e] = z([]);
|
|
717
725
|
return te(() => {
|
|
718
726
|
const n = ({ key: i }) => {
|
|
719
727
|
e((s) => s.includes(i) ? s : s.concat(i));
|
|
@@ -748,8 +756,8 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
748
756
|
},
|
|
749
757
|
[t]
|
|
750
758
|
);
|
|
751
|
-
},
|
|
752
|
-
const [e, n] =
|
|
759
|
+
}, wa = (t) => {
|
|
760
|
+
const [e, n] = z([]), [r, o] = z(!0), i = Le(null), s = ne(ie);
|
|
753
761
|
return te(() => {
|
|
754
762
|
const c = s?.search;
|
|
755
763
|
if (!c)
|
|
@@ -786,8 +794,8 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
786
794
|
const r = await t.workspaces?.getWorkspace((c) => c.isSelected === !0), o = r?.children[0];
|
|
787
795
|
return n === pn.CONTROL || !r || o?.type === "window" ? await t.appManager.application(e).start() : await (o?.type === "group" ? o : await (o || r).addGroup()).addWindow({ appName: e });
|
|
788
796
|
};
|
|
789
|
-
},
|
|
790
|
-
const [t, e] =
|
|
797
|
+
}, Ca = () => {
|
|
798
|
+
const [t, e] = z([]), n = ne(ie);
|
|
791
799
|
return te(() => {
|
|
792
800
|
if (!n || !n.workspaces)
|
|
793
801
|
return;
|
|
@@ -807,8 +815,8 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
807
815
|
});
|
|
808
816
|
};
|
|
809
817
|
}, [n, t]), t;
|
|
810
|
-
},
|
|
811
|
-
const [t, e] =
|
|
818
|
+
}, Oa = () => {
|
|
819
|
+
const [t, e] = z({}), n = ne(ie);
|
|
812
820
|
return te(() => {
|
|
813
821
|
if (!n)
|
|
814
822
|
return;
|
|
@@ -839,12 +847,12 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
839
847
|
}
|
|
840
848
|
})(), () => r.forEach((o) => o?.());
|
|
841
849
|
}, [n]), t;
|
|
842
|
-
},
|
|
850
|
+
}, Ea = (t) => {
|
|
843
851
|
const { io: e, item: n } = t;
|
|
844
852
|
e.appManager.application(n.id).start().catch((r) => {
|
|
845
853
|
console.error("Failed to start application: ", { error: r });
|
|
846
854
|
});
|
|
847
|
-
},
|
|
855
|
+
}, xa = (t) => {
|
|
848
856
|
const { io: e, item: n, frame: r } = t;
|
|
849
857
|
if (!e.workspaces)
|
|
850
858
|
return;
|
|
@@ -857,20 +865,20 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
857
865
|
i.addGroup().addWindow({ appName: n.id }), i.create().catch((s) => {
|
|
858
866
|
console.error("Failed to create workspace: ", { error: s });
|
|
859
867
|
});
|
|
860
|
-
},
|
|
861
|
-
openInNewWindow:
|
|
862
|
-
openInNewWorkspace:
|
|
868
|
+
}, ka = {
|
|
869
|
+
openInNewWindow: Ea,
|
|
870
|
+
openInNewWorkspace: xa
|
|
863
871
|
}, $o = () => {
|
|
864
872
|
const t = ne(ie), e = Ho();
|
|
865
873
|
return (n, r) => {
|
|
866
|
-
|
|
874
|
+
ka[r]({ io: t, item: n, frame: e });
|
|
867
875
|
};
|
|
868
|
-
},
|
|
876
|
+
}, Sa = (t) => {
|
|
869
877
|
const { io: e, item: n } = t;
|
|
870
878
|
e.workspaces && e.workspaces.restoreWorkspace(n.id, { newFrame: !0 }).catch((r) => {
|
|
871
879
|
console.error("Failed to open workspace in new frame: ", { error: r });
|
|
872
880
|
});
|
|
873
|
-
},
|
|
881
|
+
}, Pa = async (t) => {
|
|
874
882
|
const { io: e, item: n, removeFavorite: r } = t;
|
|
875
883
|
if (e.workspaces)
|
|
876
884
|
try {
|
|
@@ -878,30 +886,30 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
878
886
|
} catch (o) {
|
|
879
887
|
console.error("Failed to delete workspace: ", { error: o });
|
|
880
888
|
}
|
|
881
|
-
},
|
|
882
|
-
openInNewFrame:
|
|
883
|
-
delete:
|
|
889
|
+
}, Ta = {
|
|
890
|
+
openInNewFrame: Sa,
|
|
891
|
+
delete: Pa
|
|
884
892
|
}, Go = () => {
|
|
885
893
|
const t = ne(ie), { removeFavorite: e } = fr();
|
|
886
894
|
return (n, r) => {
|
|
887
|
-
|
|
895
|
+
Ta[r]({ io: t, item: n, removeFavorite: e });
|
|
888
896
|
};
|
|
889
|
-
},
|
|
897
|
+
}, _a = (t) => {
|
|
890
898
|
const { layout: e, setDefaultLayout: n } = t;
|
|
891
899
|
n({ name: e.name });
|
|
892
|
-
},
|
|
900
|
+
}, Ia = (t) => {
|
|
893
901
|
const { io: e, layout: n } = t;
|
|
894
902
|
e.layouts.remove("Global", n.name).catch((r) => {
|
|
895
903
|
console.error("Failed to delete layout: ", { error: r });
|
|
896
904
|
});
|
|
897
|
-
},
|
|
898
|
-
setAsDefault:
|
|
899
|
-
delete:
|
|
900
|
-
},
|
|
905
|
+
}, Na = {
|
|
906
|
+
setAsDefault: _a,
|
|
907
|
+
delete: Ia
|
|
908
|
+
}, Aa = () => {
|
|
901
909
|
const t = ne(ie);
|
|
902
910
|
return he(
|
|
903
911
|
(n, r, o) => {
|
|
904
|
-
|
|
912
|
+
Na[r]({
|
|
905
913
|
io: t,
|
|
906
914
|
layout: n,
|
|
907
915
|
setDefaultLayout: o
|
|
@@ -910,7 +918,7 @@ const ye = zn().where((t) => t.length > 0, "Expected a non-empty string"), aa =
|
|
|
910
918
|
[t]
|
|
911
919
|
);
|
|
912
920
|
};
|
|
913
|
-
var rn = {},
|
|
921
|
+
var rn = {}, Ra = {
|
|
914
922
|
get exports() {
|
|
915
923
|
return rn;
|
|
916
924
|
},
|
|
@@ -920,24 +928,24 @@ var rn = {}, Ia = {
|
|
|
920
928
|
};
|
|
921
929
|
(function(t, e) {
|
|
922
930
|
(function(n, r) {
|
|
923
|
-
var o = "1.0.35", i = "", s = "?", c = "function", l = "undefined", u = "object", f = "string", p = "major", d = "model", h = "name", m = "type", v = "vendor", g = "version", b = "architecture", x = "console", E = "mobile", O = "tablet", y = "smarttv",
|
|
931
|
+
var o = "1.0.35", i = "", s = "?", c = "function", l = "undefined", u = "object", f = "string", p = "major", d = "model", h = "name", m = "type", v = "vendor", g = "version", b = "architecture", x = "console", E = "mobile", O = "tablet", y = "smarttv", P = "wearable", I = "embedded", S = 350, N = "Amazon", L = "Apple", H = "ASUS", ae = "BlackBerry", re = "Browser", le = "Chrome", ke = "Edge", Q = "Firefox", oe = "Google", Pe = "Huawei", ve = "LG", k = "Microsoft", _ = "Motorola", M = "Opera", j = "Samsung", A = "Sharp", D = "Sony", R = "Xiaomi", U = "Zebra", V = "Facebook", $ = "Chromium OS", B = "Mac OS", se = function(Z, q) {
|
|
924
932
|
var F = {};
|
|
925
933
|
for (var ee in Z)
|
|
926
934
|
q[ee] && q[ee].length % 2 === 0 ? F[ee] = q[ee].concat(Z[ee]) : F[ee] = Z[ee];
|
|
927
935
|
return F;
|
|
928
|
-
},
|
|
936
|
+
}, T = function(Z) {
|
|
929
937
|
for (var q = {}, F = 0; F < Z.length; F++)
|
|
930
938
|
q[Z[F].toUpperCase()] = Z[F];
|
|
931
939
|
return q;
|
|
932
940
|
}, me = function(Z, q) {
|
|
933
|
-
return typeof Z === f ?
|
|
934
|
-
},
|
|
941
|
+
return typeof Z === f ? Te(q).indexOf(Te(Z)) !== -1 : !1;
|
|
942
|
+
}, Te = function(Z) {
|
|
935
943
|
return Z.toLowerCase();
|
|
936
944
|
}, dt = function(Z) {
|
|
937
945
|
return typeof Z === f ? Z.replace(/[^\d\.]/g, i).split(".")[0] : r;
|
|
938
946
|
}, ft = function(Z, q) {
|
|
939
947
|
if (typeof Z === f)
|
|
940
|
-
return Z = Z.replace(/^\s\s*/, i), typeof q === l ? Z : Z.substring(0,
|
|
948
|
+
return Z = Z.replace(/^\s\s*/, i), typeof q === l ? Z : Z.substring(0, S);
|
|
941
949
|
}, Ke = function(Z, q) {
|
|
942
950
|
for (var F = 0, ee, Ye, je, Y, W, Ue; F < q.length && !W; ) {
|
|
943
951
|
var En = q[F], Mr = q[F + 1];
|
|
@@ -947,7 +955,7 @@ var rn = {}, Ia = {
|
|
|
947
955
|
Ue = W[++Ye], Y = Mr[je], typeof Y === u && Y.length > 0 ? Y.length === 2 ? typeof Y[1] == c ? this[Y[0]] = Y[1].call(this, Ue) : this[Y[0]] = Y[1] : Y.length === 3 ? typeof Y[1] === c && !(Y[1].exec && Y[1].test) ? this[Y[0]] = Ue ? Y[1].call(this, Ue, Y[2]) : r : this[Y[0]] = Ue ? Ue.replace(Y[1], Y[2]) : r : Y.length === 4 && (this[Y[0]] = Ue ? Y[3].call(this, Ue.replace(Y[1], Y[2])) : r) : this[Y] = Ue || r;
|
|
948
956
|
F += 2;
|
|
949
957
|
}
|
|
950
|
-
},
|
|
958
|
+
}, Tt = function(Z, q) {
|
|
951
959
|
for (var F in q)
|
|
952
960
|
if (typeof q[F] === u && q[F].length > 0) {
|
|
953
961
|
for (var ee = 0; ee < q[F].length; ee++)
|
|
@@ -1140,7 +1148,7 @@ var rn = {}, Ia = {
|
|
|
1140
1148
|
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
1141
1149
|
// Facebook App for iOS & Android
|
|
1142
1150
|
],
|
|
1143
|
-
[[h,
|
|
1151
|
+
[[h, V], g],
|
|
1144
1152
|
[
|
|
1145
1153
|
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
1146
1154
|
// Kakao App
|
|
@@ -1198,7 +1206,7 @@ var rn = {}, Ia = {
|
|
|
1198
1206
|
/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i
|
|
1199
1207
|
// Safari < 3.0
|
|
1200
1208
|
],
|
|
1201
|
-
[h, [g,
|
|
1209
|
+
[h, [g, Tt, On]],
|
|
1202
1210
|
[
|
|
1203
1211
|
/(webkit|khtml)\/([\w\.]+)/i
|
|
1204
1212
|
],
|
|
@@ -1252,7 +1260,7 @@ var rn = {}, Ia = {
|
|
|
1252
1260
|
/(ia32(?=;))/i
|
|
1253
1261
|
// IA32 (quicktime)
|
|
1254
1262
|
],
|
|
1255
|
-
[[b,
|
|
1263
|
+
[[b, Te]],
|
|
1256
1264
|
[
|
|
1257
1265
|
/((?:i[346]|x)86)[;\)]/i
|
|
1258
1266
|
// IA32 (x86)
|
|
@@ -1277,7 +1285,7 @@ var rn = {}, Ia = {
|
|
|
1277
1285
|
/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i
|
|
1278
1286
|
// PowerPC
|
|
1279
1287
|
],
|
|
1280
|
-
[[b, /ower/, i,
|
|
1288
|
+
[[b, /ower/, i, Te]],
|
|
1281
1289
|
[
|
|
1282
1290
|
/(sun4\w)[;\)]/i
|
|
1283
1291
|
// SPARC
|
|
@@ -1287,7 +1295,7 @@ var rn = {}, Ia = {
|
|
|
1287
1295
|
/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i
|
|
1288
1296
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
1289
1297
|
],
|
|
1290
|
-
[[b,
|
|
1298
|
+
[[b, Te]]
|
|
1291
1299
|
],
|
|
1292
1300
|
device: [
|
|
1293
1301
|
[
|
|
@@ -1330,12 +1338,12 @@ var rn = {}, Ia = {
|
|
|
1330
1338
|
// Huawei
|
|
1331
1339
|
/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i
|
|
1332
1340
|
],
|
|
1333
|
-
[d, [v,
|
|
1341
|
+
[d, [v, Pe], [m, O]],
|
|
1334
1342
|
[
|
|
1335
1343
|
/(?:huawei|honor)([-\w ]+)[;\)]/i,
|
|
1336
1344
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
1337
1345
|
],
|
|
1338
|
-
[d, [v,
|
|
1346
|
+
[d, [v, Pe], [m, E]],
|
|
1339
1347
|
[
|
|
1340
1348
|
// Xiaomi
|
|
1341
1349
|
/\b(poco[\w ]+)(?: bui|\))/i,
|
|
@@ -1378,11 +1386,11 @@ var rn = {}, Ia = {
|
|
|
1378
1386
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
1379
1387
|
/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
1380
1388
|
],
|
|
1381
|
-
[d, [v,
|
|
1389
|
+
[d, [v, _], [m, E]],
|
|
1382
1390
|
[
|
|
1383
1391
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
1384
1392
|
],
|
|
1385
|
-
[d, [v,
|
|
1393
|
+
[d, [v, _], [m, O]],
|
|
1386
1394
|
[
|
|
1387
1395
|
// LG
|
|
1388
1396
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
@@ -1539,7 +1547,7 @@ var rn = {}, Ia = {
|
|
|
1539
1547
|
/(surface duo)/i
|
|
1540
1548
|
// Surface Duo
|
|
1541
1549
|
],
|
|
1542
|
-
[d, [v,
|
|
1550
|
+
[d, [v, k], [m, O]],
|
|
1543
1551
|
[
|
|
1544
1552
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
1545
1553
|
// Fairphone
|
|
@@ -1664,7 +1672,7 @@ var rn = {}, Ia = {
|
|
|
1664
1672
|
/(kin\.[onetw]{3})/i
|
|
1665
1673
|
// Microsoft Kin
|
|
1666
1674
|
],
|
|
1667
|
-
[[d, /\./g, " "], [v,
|
|
1675
|
+
[[d, /\./g, " "], [v, k], [m, E]],
|
|
1668
1676
|
[
|
|
1669
1677
|
/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
1670
1678
|
// Zebra
|
|
@@ -1763,7 +1771,7 @@ var rn = {}, Ia = {
|
|
|
1763
1771
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
1764
1772
|
// Microsoft Xbox
|
|
1765
1773
|
],
|
|
1766
|
-
[d, [v,
|
|
1774
|
+
[d, [v, k], [m, x]],
|
|
1767
1775
|
[
|
|
1768
1776
|
///////////////////
|
|
1769
1777
|
// WEARABLES
|
|
@@ -1771,26 +1779,26 @@ var rn = {}, Ia = {
|
|
|
1771
1779
|
/((pebble))app/i
|
|
1772
1780
|
// Pebble
|
|
1773
1781
|
],
|
|
1774
|
-
[v, d, [m,
|
|
1782
|
+
[v, d, [m, P]],
|
|
1775
1783
|
[
|
|
1776
1784
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
1777
1785
|
// Apple Watch
|
|
1778
1786
|
],
|
|
1779
|
-
[d, [v, L], [m,
|
|
1787
|
+
[d, [v, L], [m, P]],
|
|
1780
1788
|
[
|
|
1781
1789
|
/droid.+; (glass) \d/i
|
|
1782
1790
|
// Google Glass
|
|
1783
1791
|
],
|
|
1784
|
-
[d, [v, oe], [m,
|
|
1792
|
+
[d, [v, oe], [m, P]],
|
|
1785
1793
|
[
|
|
1786
1794
|
/droid.+; (wt63?0{2,3})\)/i
|
|
1787
1795
|
],
|
|
1788
|
-
[d, [v, U], [m,
|
|
1796
|
+
[d, [v, U], [m, P]],
|
|
1789
1797
|
[
|
|
1790
1798
|
/(quest( 2| pro)?)/i
|
|
1791
1799
|
// Oculus Quest
|
|
1792
1800
|
],
|
|
1793
|
-
[d, [v,
|
|
1801
|
+
[d, [v, V], [m, P]],
|
|
1794
1802
|
[
|
|
1795
1803
|
///////////////////
|
|
1796
1804
|
// EMBEDDED
|
|
@@ -1838,7 +1846,7 @@ var rn = {}, Ia = {
|
|
|
1838
1846
|
/windows.+ edge\/([\w\.]+)/i
|
|
1839
1847
|
// EdgeHTML
|
|
1840
1848
|
],
|
|
1841
|
-
[g, [h,
|
|
1849
|
+
[g, [h, ke + "HTML"]],
|
|
1842
1850
|
[
|
|
1843
1851
|
/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i
|
|
1844
1852
|
// Blink
|
|
@@ -1878,11 +1886,11 @@ var rn = {}, Ia = {
|
|
|
1878
1886
|
// Windows Phone
|
|
1879
1887
|
/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i
|
|
1880
1888
|
],
|
|
1881
|
-
[h, [g,
|
|
1889
|
+
[h, [g, Tt, De]],
|
|
1882
1890
|
[
|
|
1883
1891
|
/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i
|
|
1884
1892
|
],
|
|
1885
|
-
[[h, "Windows"], [g,
|
|
1893
|
+
[[h, "Windows"], [g, Tt, De]],
|
|
1886
1894
|
[
|
|
1887
1895
|
// iOS/macOS
|
|
1888
1896
|
/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -2031,35 +2039,35 @@ var rn = {}, Ia = {
|
|
|
2031
2039
|
}, this.getUA = function() {
|
|
2032
2040
|
return ee;
|
|
2033
2041
|
}, this.setUA = function(W) {
|
|
2034
|
-
return ee = typeof W === f && W.length >
|
|
2042
|
+
return ee = typeof W === f && W.length > S ? ft(W, S) : W, this;
|
|
2035
2043
|
}, this.setUA(ee), this;
|
|
2036
2044
|
};
|
|
2037
|
-
ge.VERSION = o, ge.BROWSER =
|
|
2038
|
-
var
|
|
2039
|
-
if (
|
|
2045
|
+
ge.VERSION = o, ge.BROWSER = T([h, g, p]), ge.CPU = T([b]), ge.DEVICE = T([d, v, m, x, E, y, O, P, I]), ge.ENGINE = ge.OS = T([h, g]), t.exports && (e = t.exports = ge), e.UAParser = ge;
|
|
2046
|
+
var Ve = typeof n !== l && (n.jQuery || n.Zepto);
|
|
2047
|
+
if (Ve && !Ve.ua) {
|
|
2040
2048
|
var qe = new ge();
|
|
2041
|
-
|
|
2049
|
+
Ve.ua = qe.getResult(), Ve.ua.get = function() {
|
|
2042
2050
|
return qe.getUA();
|
|
2043
|
-
},
|
|
2051
|
+
}, Ve.ua.set = function(Z) {
|
|
2044
2052
|
qe.setUA(Z);
|
|
2045
2053
|
var q = qe.getResult();
|
|
2046
2054
|
for (var F in q)
|
|
2047
|
-
|
|
2055
|
+
Ve.ua[F] = q[F];
|
|
2048
2056
|
};
|
|
2049
2057
|
}
|
|
2050
|
-
})(typeof window == "object" ? window :
|
|
2051
|
-
})(
|
|
2052
|
-
const
|
|
2058
|
+
})(typeof window == "object" ? window : Gi);
|
|
2059
|
+
})(Ra, rn);
|
|
2060
|
+
const La = new rn.UAParser(), hr = () => Je.useMemo(() => La.getBrowser(), []);
|
|
2053
2061
|
var Ur = function(e) {
|
|
2054
2062
|
return e.reduce(function(n, r) {
|
|
2055
2063
|
var o = r[0], i = r[1];
|
|
2056
2064
|
return n[o] = i, n;
|
|
2057
2065
|
}, {});
|
|
2058
|
-
}, Fr = typeof window < "u" && window.document && window.document.createElement ? Je.useLayoutEffect : Je.useEffect, Ce = "top", Ie = "bottom", Ne = "right", Oe = "left", hn = "auto",
|
|
2066
|
+
}, Fr = typeof window < "u" && window.document && window.document.createElement ? Je.useLayoutEffect : Je.useEffect, Ce = "top", Ie = "bottom", Ne = "right", Oe = "left", hn = "auto", zt = [Ce, Ie, Ne, Oe], Ot = "start", Ft = "end", Ma = "clippingParents", Ko = "viewport", Nt = "popper", Da = "reference", Wr = /* @__PURE__ */ zt.reduce(function(t, e) {
|
|
2059
2067
|
return t.concat([e + "-" + Ot, e + "-" + Ft]);
|
|
2060
|
-
}, []), qo = /* @__PURE__ */ [].concat(
|
|
2068
|
+
}, []), qo = /* @__PURE__ */ [].concat(zt, [hn]).reduce(function(t, e) {
|
|
2061
2069
|
return t.concat([e, e + "-" + Ot, e + "-" + Ft]);
|
|
2062
|
-
}, []),
|
|
2070
|
+
}, []), ja = "beforeRead", Ua = "read", Fa = "afterRead", Wa = "beforeMain", Ha = "main", Va = "afterMain", za = "beforeWrite", Za = "write", Ba = "afterWrite", Bn = [ja, Ua, Fa, Wa, Ha, Va, za, Za, Ba];
|
|
2063
2071
|
function He(t) {
|
|
2064
2072
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
2065
2073
|
}
|
|
@@ -2076,7 +2084,7 @@ function ct(t) {
|
|
|
2076
2084
|
var e = Ae(t).Element;
|
|
2077
2085
|
return t instanceof e || t instanceof Element;
|
|
2078
2086
|
}
|
|
2079
|
-
function
|
|
2087
|
+
function Se(t) {
|
|
2080
2088
|
var e = Ae(t).HTMLElement;
|
|
2081
2089
|
return t instanceof e || t instanceof HTMLElement;
|
|
2082
2090
|
}
|
|
@@ -2086,17 +2094,17 @@ function mr(t) {
|
|
|
2086
2094
|
var e = Ae(t).ShadowRoot;
|
|
2087
2095
|
return t instanceof e || t instanceof ShadowRoot;
|
|
2088
2096
|
}
|
|
2089
|
-
function
|
|
2097
|
+
function $a(t) {
|
|
2090
2098
|
var e = t.state;
|
|
2091
2099
|
Object.keys(e.elements).forEach(function(n) {
|
|
2092
2100
|
var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
|
|
2093
|
-
!
|
|
2101
|
+
!Se(i) || !He(i) || (Object.assign(i.style, r), Object.keys(o).forEach(function(s) {
|
|
2094
2102
|
var c = o[s];
|
|
2095
2103
|
c === !1 ? i.removeAttribute(s) : i.setAttribute(s, c === !0 ? "" : c);
|
|
2096
2104
|
}));
|
|
2097
2105
|
});
|
|
2098
2106
|
}
|
|
2099
|
-
function
|
|
2107
|
+
function Ga(t) {
|
|
2100
2108
|
var e = t.state, n = {
|
|
2101
2109
|
popper: {
|
|
2102
2110
|
position: e.options.strategy,
|
|
@@ -2114,18 +2122,18 @@ function Za(t) {
|
|
|
2114
2122
|
var o = e.elements[r], i = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), c = s.reduce(function(l, u) {
|
|
2115
2123
|
return l[u] = "", l;
|
|
2116
2124
|
}, {});
|
|
2117
|
-
!
|
|
2125
|
+
!Se(o) || !He(o) || (Object.assign(o.style, c), Object.keys(i).forEach(function(l) {
|
|
2118
2126
|
o.removeAttribute(l);
|
|
2119
2127
|
}));
|
|
2120
2128
|
});
|
|
2121
2129
|
};
|
|
2122
2130
|
}
|
|
2123
|
-
const
|
|
2131
|
+
const Ka = {
|
|
2124
2132
|
name: "applyStyles",
|
|
2125
2133
|
enabled: !0,
|
|
2126
2134
|
phase: "write",
|
|
2127
|
-
fn:
|
|
2128
|
-
effect:
|
|
2135
|
+
fn: $a,
|
|
2136
|
+
effect: Ga,
|
|
2129
2137
|
requires: ["computeStyles"]
|
|
2130
2138
|
};
|
|
2131
2139
|
function Re(t) {
|
|
@@ -2144,7 +2152,7 @@ function Yo() {
|
|
|
2144
2152
|
function xt(t, e, n) {
|
|
2145
2153
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
2146
2154
|
var r = t.getBoundingClientRect(), o = 1, i = 1;
|
|
2147
|
-
e &&
|
|
2155
|
+
e && Se(t) && (o = t.offsetWidth > 0 && Et(r.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && Et(r.height) / t.offsetHeight || 1);
|
|
2148
2156
|
var s = ct(t) ? Ae(t) : window, c = s.visualViewport, l = !Yo() && n, u = (r.left + (l && c ? c.offsetLeft : 0)) / o, f = (r.top + (l && c ? c.offsetTop : 0)) / i, p = r.width / o, d = r.height / i;
|
|
2149
2157
|
return {
|
|
2150
2158
|
width: p,
|
|
@@ -2183,7 +2191,7 @@ function Xo(t, e) {
|
|
|
2183
2191
|
function Me(t) {
|
|
2184
2192
|
return Ae(t).getComputedStyle(t);
|
|
2185
2193
|
}
|
|
2186
|
-
function
|
|
2194
|
+
function qa(t) {
|
|
2187
2195
|
return ["table", "td", "th"].indexOf(He(t)) >= 0;
|
|
2188
2196
|
}
|
|
2189
2197
|
function Qe(t) {
|
|
@@ -2205,18 +2213,18 @@ function mn(t) {
|
|
|
2205
2213
|
);
|
|
2206
2214
|
}
|
|
2207
2215
|
function Hr(t) {
|
|
2208
|
-
return !
|
|
2216
|
+
return !Se(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
2209
2217
|
Me(t).position === "fixed" ? null : t.offsetParent;
|
|
2210
2218
|
}
|
|
2211
|
-
function
|
|
2219
|
+
function Ya(t) {
|
|
2212
2220
|
var e = /firefox/i.test($n()), n = /Trident/i.test($n());
|
|
2213
|
-
if (n &&
|
|
2221
|
+
if (n && Se(t)) {
|
|
2214
2222
|
var r = Me(t);
|
|
2215
2223
|
if (r.position === "fixed")
|
|
2216
2224
|
return null;
|
|
2217
2225
|
}
|
|
2218
2226
|
var o = mn(t);
|
|
2219
|
-
for (mr(o) && (o = o.host);
|
|
2227
|
+
for (mr(o) && (o = o.host); Se(o) && ["html", "body"].indexOf(He(o)) < 0; ) {
|
|
2220
2228
|
var i = Me(o);
|
|
2221
2229
|
if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
|
|
2222
2230
|
return o;
|
|
@@ -2225,9 +2233,9 @@ function Ga(t) {
|
|
|
2225
2233
|
return null;
|
|
2226
2234
|
}
|
|
2227
2235
|
function Zt(t) {
|
|
2228
|
-
for (var e = Ae(t), n = Hr(t); n &&
|
|
2236
|
+
for (var e = Ae(t), n = Hr(t); n && qa(n) && Me(n).position === "static"; )
|
|
2229
2237
|
n = Hr(n);
|
|
2230
|
-
return n && (He(n) === "html" || He(n) === "body" && Me(n).position === "static") ? e : n ||
|
|
2238
|
+
return n && (He(n) === "html" || He(n) === "body" && Me(n).position === "static") ? e : n || Ya(t) || e;
|
|
2231
2239
|
}
|
|
2232
2240
|
function gr(t) {
|
|
2233
2241
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
@@ -2235,7 +2243,7 @@ function gr(t) {
|
|
|
2235
2243
|
function Dt(t, e, n) {
|
|
2236
2244
|
return st(t, on(e, n));
|
|
2237
2245
|
}
|
|
2238
|
-
function
|
|
2246
|
+
function Xa(t, e, n) {
|
|
2239
2247
|
var r = Dt(t, e, n);
|
|
2240
2248
|
return r > n ? n : r;
|
|
2241
2249
|
}
|
|
@@ -2255,54 +2263,54 @@ function ei(t, e) {
|
|
|
2255
2263
|
return n[r] = t, n;
|
|
2256
2264
|
}, {});
|
|
2257
2265
|
}
|
|
2258
|
-
var
|
|
2266
|
+
var Ja = function(e, n) {
|
|
2259
2267
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
2260
2268
|
placement: n.placement
|
|
2261
|
-
})) : e, Qo(typeof e != "number" ? e : ei(e,
|
|
2269
|
+
})) : e, Qo(typeof e != "number" ? e : ei(e, zt));
|
|
2262
2270
|
};
|
|
2263
|
-
function
|
|
2271
|
+
function Qa(t) {
|
|
2264
2272
|
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, c = Re(n.placement), l = gr(c), u = [Oe, Ne].indexOf(c) >= 0, f = u ? "height" : "width";
|
|
2265
2273
|
if (!(!i || !s)) {
|
|
2266
|
-
var p =
|
|
2267
|
-
n.modifiersData[r] = (e = {}, e[
|
|
2274
|
+
var p = Ja(o.padding, n), d = vr(i), h = l === "y" ? Ce : Oe, m = l === "y" ? Ie : Ne, v = n.rects.reference[f] + n.rects.reference[l] - s[l] - n.rects.popper[f], g = s[l] - n.rects.reference[l], b = Zt(i), x = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, E = v / 2 - g / 2, O = p[h], y = x - d[f] - p[m], P = x / 2 - d[f] / 2 + E, I = Dt(O, P, y), S = l;
|
|
2275
|
+
n.modifiersData[r] = (e = {}, e[S] = I, e.centerOffset = I - P, e);
|
|
2268
2276
|
}
|
|
2269
2277
|
}
|
|
2270
|
-
function
|
|
2278
|
+
function es(t) {
|
|
2271
2279
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
2272
2280
|
if (o != null && !(typeof o == "string" && (o = e.elements.popper.querySelector(o), !o))) {
|
|
2273
|
-
if (process.env.NODE_ENV !== "production" && (
|
|
2281
|
+
if (process.env.NODE_ENV !== "production" && (Se(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !Xo(e.elements.popper, o)) {
|
|
2274
2282
|
process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
2275
2283
|
return;
|
|
2276
2284
|
}
|
|
2277
2285
|
e.elements.arrow = o;
|
|
2278
2286
|
}
|
|
2279
2287
|
}
|
|
2280
|
-
const
|
|
2288
|
+
const ts = {
|
|
2281
2289
|
name: "arrow",
|
|
2282
2290
|
enabled: !0,
|
|
2283
2291
|
phase: "main",
|
|
2284
|
-
fn:
|
|
2285
|
-
effect:
|
|
2292
|
+
fn: Qa,
|
|
2293
|
+
effect: es,
|
|
2286
2294
|
requires: ["popperOffsets"],
|
|
2287
2295
|
requiresIfExists: ["preventOverflow"]
|
|
2288
2296
|
};
|
|
2289
|
-
function
|
|
2297
|
+
function kt(t) {
|
|
2290
2298
|
return t.split("-")[1];
|
|
2291
2299
|
}
|
|
2292
|
-
var
|
|
2300
|
+
var ns = {
|
|
2293
2301
|
top: "auto",
|
|
2294
2302
|
right: "auto",
|
|
2295
2303
|
bottom: "auto",
|
|
2296
2304
|
left: "auto"
|
|
2297
2305
|
};
|
|
2298
|
-
function
|
|
2306
|
+
function rs(t) {
|
|
2299
2307
|
var e = t.x, n = t.y, r = window, o = r.devicePixelRatio || 1;
|
|
2300
2308
|
return {
|
|
2301
2309
|
x: Et(e * o) / o || 0,
|
|
2302
2310
|
y: Et(n * o) / o || 0
|
|
2303
2311
|
};
|
|
2304
2312
|
}
|
|
2305
|
-
function
|
|
2313
|
+
function Vr(t) {
|
|
2306
2314
|
var e, n = t.popper, r = t.popperRect, o = t.placement, i = t.variation, s = t.offsets, c = t.position, l = t.gpuAcceleration, u = t.adaptive, f = t.roundOffsets, p = t.isFixed, d = s.x, h = d === void 0 ? 0 : d, m = s.y, v = m === void 0 ? 0 : m, g = typeof f == "function" ? f({
|
|
2307
2315
|
x: h,
|
|
2308
2316
|
y: v
|
|
@@ -2313,27 +2321,27 @@ function zr(t) {
|
|
|
2313
2321
|
h = g.x, v = g.y;
|
|
2314
2322
|
var b = s.hasOwnProperty("x"), x = s.hasOwnProperty("y"), E = Oe, O = Ce, y = window;
|
|
2315
2323
|
if (u) {
|
|
2316
|
-
var
|
|
2317
|
-
if (
|
|
2324
|
+
var P = Zt(n), I = "clientHeight", S = "clientWidth";
|
|
2325
|
+
if (P === Ae(n) && (P = Qe(n), Me(P).position !== "static" && c === "absolute" && (I = "scrollHeight", S = "scrollWidth")), P = P, o === Ce || (o === Oe || o === Ne) && i === Ft) {
|
|
2318
2326
|
O = Ie;
|
|
2319
|
-
var N = p &&
|
|
2327
|
+
var N = p && P === y && y.visualViewport ? y.visualViewport.height : (
|
|
2320
2328
|
// $FlowFixMe[prop-missing]
|
|
2321
|
-
|
|
2329
|
+
P[I]
|
|
2322
2330
|
);
|
|
2323
2331
|
v -= N - r.height, v *= l ? 1 : -1;
|
|
2324
2332
|
}
|
|
2325
2333
|
if (o === Oe || (o === Ce || o === Ie) && i === Ft) {
|
|
2326
2334
|
E = Ne;
|
|
2327
|
-
var L = p &&
|
|
2335
|
+
var L = p && P === y && y.visualViewport ? y.visualViewport.width : (
|
|
2328
2336
|
// $FlowFixMe[prop-missing]
|
|
2329
|
-
|
|
2337
|
+
P[S]
|
|
2330
2338
|
);
|
|
2331
2339
|
h -= L - r.width, h *= l ? 1 : -1;
|
|
2332
2340
|
}
|
|
2333
2341
|
}
|
|
2334
2342
|
var H = Object.assign({
|
|
2335
2343
|
position: c
|
|
2336
|
-
}, u &&
|
|
2344
|
+
}, u && ns), ae = f === !0 ? rs({
|
|
2337
2345
|
x: h,
|
|
2338
2346
|
y: v
|
|
2339
2347
|
}) : {
|
|
@@ -2346,7 +2354,7 @@ function zr(t) {
|
|
|
2346
2354
|
}
|
|
2347
2355
|
return Object.assign({}, H, (e = {}, e[O] = x ? v + "px" : "", e[E] = b ? h + "px" : "", e.transform = "", e));
|
|
2348
2356
|
}
|
|
2349
|
-
function
|
|
2357
|
+
function os(t) {
|
|
2350
2358
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, s = i === void 0 ? !0 : i, c = n.roundOffsets, l = c === void 0 ? !0 : c;
|
|
2351
2359
|
if (process.env.NODE_ENV !== "production") {
|
|
2352
2360
|
var u = Me(e.elements.popper).transitionProperty || "";
|
|
@@ -2360,18 +2368,18 @@ function ts(t) {
|
|
|
2360
2368
|
}
|
|
2361
2369
|
var f = {
|
|
2362
2370
|
placement: Re(e.placement),
|
|
2363
|
-
variation:
|
|
2371
|
+
variation: kt(e.placement),
|
|
2364
2372
|
popper: e.elements.popper,
|
|
2365
2373
|
popperRect: e.rects.popper,
|
|
2366
2374
|
gpuAcceleration: o,
|
|
2367
2375
|
isFixed: e.options.strategy === "fixed"
|
|
2368
2376
|
};
|
|
2369
|
-
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper,
|
|
2377
|
+
e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Vr(Object.assign({}, f, {
|
|
2370
2378
|
offsets: e.modifiersData.popperOffsets,
|
|
2371
2379
|
position: e.options.strategy,
|
|
2372
2380
|
adaptive: s,
|
|
2373
2381
|
roundOffsets: l
|
|
2374
|
-
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow,
|
|
2382
|
+
})))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Vr(Object.assign({}, f, {
|
|
2375
2383
|
offsets: e.modifiersData.arrow,
|
|
2376
2384
|
position: "absolute",
|
|
2377
2385
|
adaptive: !1,
|
|
@@ -2380,17 +2388,17 @@ function ts(t) {
|
|
|
2380
2388
|
"data-popper-placement": e.placement
|
|
2381
2389
|
});
|
|
2382
2390
|
}
|
|
2383
|
-
const
|
|
2391
|
+
const is = {
|
|
2384
2392
|
name: "computeStyles",
|
|
2385
2393
|
enabled: !0,
|
|
2386
2394
|
phase: "beforeWrite",
|
|
2387
|
-
fn:
|
|
2395
|
+
fn: os,
|
|
2388
2396
|
data: {}
|
|
2389
2397
|
};
|
|
2390
2398
|
var qt = {
|
|
2391
2399
|
passive: !0
|
|
2392
2400
|
};
|
|
2393
|
-
function
|
|
2401
|
+
function as(t) {
|
|
2394
2402
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, s = r.resize, c = s === void 0 ? !0 : s, l = Ae(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
2395
2403
|
return i && u.forEach(function(f) {
|
|
2396
2404
|
f.addEventListener("scroll", n.update, qt);
|
|
@@ -2400,16 +2408,16 @@ function rs(t) {
|
|
|
2400
2408
|
}), c && l.removeEventListener("resize", n.update, qt);
|
|
2401
2409
|
};
|
|
2402
2410
|
}
|
|
2403
|
-
const
|
|
2411
|
+
const ss = {
|
|
2404
2412
|
name: "eventListeners",
|
|
2405
2413
|
enabled: !0,
|
|
2406
2414
|
phase: "write",
|
|
2407
2415
|
fn: function() {
|
|
2408
2416
|
},
|
|
2409
|
-
effect:
|
|
2417
|
+
effect: as,
|
|
2410
2418
|
data: {}
|
|
2411
2419
|
};
|
|
2412
|
-
var
|
|
2420
|
+
var cs = {
|
|
2413
2421
|
left: "right",
|
|
2414
2422
|
right: "left",
|
|
2415
2423
|
bottom: "top",
|
|
@@ -2417,16 +2425,16 @@ var is = {
|
|
|
2417
2425
|
};
|
|
2418
2426
|
function Jt(t) {
|
|
2419
2427
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
2420
|
-
return
|
|
2428
|
+
return cs[e];
|
|
2421
2429
|
});
|
|
2422
2430
|
}
|
|
2423
|
-
var
|
|
2431
|
+
var ls = {
|
|
2424
2432
|
start: "end",
|
|
2425
2433
|
end: "start"
|
|
2426
2434
|
};
|
|
2427
|
-
function
|
|
2435
|
+
function zr(t) {
|
|
2428
2436
|
return t.replace(/start|end/g, function(e) {
|
|
2429
|
-
return
|
|
2437
|
+
return ls[e];
|
|
2430
2438
|
});
|
|
2431
2439
|
}
|
|
2432
2440
|
function yr(t) {
|
|
@@ -2439,7 +2447,7 @@ function yr(t) {
|
|
|
2439
2447
|
function br(t) {
|
|
2440
2448
|
return xt(Qe(t)).left + yr(t).scrollLeft;
|
|
2441
2449
|
}
|
|
2442
|
-
function
|
|
2450
|
+
function us(t, e) {
|
|
2443
2451
|
var n = Ae(t), r = Qe(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, c = 0, l = 0;
|
|
2444
2452
|
if (o) {
|
|
2445
2453
|
i = o.width, s = o.height;
|
|
@@ -2453,7 +2461,7 @@ function ss(t, e) {
|
|
|
2453
2461
|
y: l
|
|
2454
2462
|
};
|
|
2455
2463
|
}
|
|
2456
|
-
function
|
|
2464
|
+
function ds(t) {
|
|
2457
2465
|
var e, n = Qe(t), r = yr(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = st(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = st(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + br(t), l = -r.scrollTop;
|
|
2458
2466
|
return Me(o || n).direction === "rtl" && (c += st(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
2459
2467
|
width: i,
|
|
@@ -2467,7 +2475,7 @@ function wr(t) {
|
|
|
2467
2475
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
2468
2476
|
}
|
|
2469
2477
|
function ti(t) {
|
|
2470
|
-
return ["html", "body", "#document"].indexOf(He(t)) >= 0 ? t.ownerDocument.body :
|
|
2478
|
+
return ["html", "body", "#document"].indexOf(He(t)) >= 0 ? t.ownerDocument.body : Se(t) && wr(t) ? t : ti(mn(t));
|
|
2471
2479
|
}
|
|
2472
2480
|
function jt(t, e) {
|
|
2473
2481
|
var n;
|
|
@@ -2486,28 +2494,28 @@ function Gn(t) {
|
|
|
2486
2494
|
bottom: t.y + t.height
|
|
2487
2495
|
});
|
|
2488
2496
|
}
|
|
2489
|
-
function
|
|
2497
|
+
function fs(t, e) {
|
|
2490
2498
|
var n = xt(t, !1, e === "fixed");
|
|
2491
2499
|
return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
2492
2500
|
}
|
|
2493
2501
|
function Zr(t, e, n) {
|
|
2494
|
-
return e === Ko ? Gn(
|
|
2502
|
+
return e === Ko ? Gn(us(t, n)) : ct(e) ? fs(e, n) : Gn(ds(Qe(t)));
|
|
2495
2503
|
}
|
|
2496
|
-
function
|
|
2497
|
-
var e = jt(mn(t)), n = ["absolute", "fixed"].indexOf(Me(t).position) >= 0, r = n &&
|
|
2504
|
+
function ps(t) {
|
|
2505
|
+
var e = jt(mn(t)), n = ["absolute", "fixed"].indexOf(Me(t).position) >= 0, r = n && Se(t) ? Zt(t) : t;
|
|
2498
2506
|
return ct(r) ? e.filter(function(o) {
|
|
2499
2507
|
return ct(o) && Xo(o, r) && He(o) !== "body";
|
|
2500
2508
|
}) : [];
|
|
2501
2509
|
}
|
|
2502
|
-
function
|
|
2503
|
-
var o = e === "clippingParents" ?
|
|
2510
|
+
function hs(t, e, n, r) {
|
|
2511
|
+
var o = e === "clippingParents" ? ps(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], c = i.reduce(function(l, u) {
|
|
2504
2512
|
var f = Zr(t, u, r);
|
|
2505
2513
|
return l.top = st(f.top, l.top), l.right = on(f.right, l.right), l.bottom = on(f.bottom, l.bottom), l.left = st(f.left, l.left), l;
|
|
2506
2514
|
}, Zr(t, s, r));
|
|
2507
2515
|
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
2508
2516
|
}
|
|
2509
2517
|
function ni(t) {
|
|
2510
|
-
var e = t.reference, n = t.element, r = t.placement, o = r ? Re(r) : null, i = r ?
|
|
2518
|
+
var e = t.reference, n = t.element, r = t.placement, o = r ? Re(r) : null, i = r ? kt(r) : null, s = e.x + e.width / 2 - n.width / 2, c = e.y + e.height / 2 - n.height / 2, l;
|
|
2511
2519
|
switch (o) {
|
|
2512
2520
|
case Ce:
|
|
2513
2521
|
l = {
|
|
@@ -2555,12 +2563,12 @@ function ni(t) {
|
|
|
2555
2563
|
}
|
|
2556
2564
|
function Wt(t, e) {
|
|
2557
2565
|
e === void 0 && (e = {});
|
|
2558
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ?
|
|
2559
|
-
reference:
|
|
2566
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ? Ma : c, u = n.rootBoundary, f = u === void 0 ? Ko : u, p = n.elementContext, d = p === void 0 ? Nt : p, h = n.altBoundary, m = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, b = Qo(typeof g != "number" ? g : ei(g, zt)), x = d === Nt ? Da : Nt, E = t.rects.popper, O = t.elements[m ? x : d], y = hs(ct(O) ? O : O.contextElement || Qe(t.elements.popper), l, f, s), P = xt(t.elements.reference), I = ni({
|
|
2567
|
+
reference: P,
|
|
2560
2568
|
element: E,
|
|
2561
2569
|
strategy: "absolute",
|
|
2562
2570
|
placement: o
|
|
2563
|
-
}),
|
|
2571
|
+
}), S = Gn(Object.assign({}, E, I)), N = d === Nt ? S : P, L = {
|
|
2564
2572
|
top: y.top - N.top + b.top,
|
|
2565
2573
|
bottom: N.bottom - y.bottom + b.bottom,
|
|
2566
2574
|
left: y.left - N.left + b.left,
|
|
@@ -2569,17 +2577,17 @@ function Wt(t, e) {
|
|
|
2569
2577
|
if (d === Nt && H) {
|
|
2570
2578
|
var ae = H[o];
|
|
2571
2579
|
Object.keys(L).forEach(function(re) {
|
|
2572
|
-
var le = [Ne, Ie].indexOf(re) >= 0 ? 1 : -1,
|
|
2573
|
-
L[re] += ae[
|
|
2580
|
+
var le = [Ne, Ie].indexOf(re) >= 0 ? 1 : -1, ke = [Ce, Ie].indexOf(re) >= 0 ? "y" : "x";
|
|
2581
|
+
L[re] += ae[ke] * le;
|
|
2574
2582
|
});
|
|
2575
2583
|
}
|
|
2576
2584
|
return L;
|
|
2577
2585
|
}
|
|
2578
|
-
function
|
|
2586
|
+
function ms(t, e) {
|
|
2579
2587
|
e === void 0 && (e = {});
|
|
2580
|
-
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, s = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? qo : l, f =
|
|
2581
|
-
return
|
|
2582
|
-
}) :
|
|
2588
|
+
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, s = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? qo : l, f = kt(r), p = f ? c ? Wr : Wr.filter(function(m) {
|
|
2589
|
+
return kt(m) === f;
|
|
2590
|
+
}) : zt, d = p.filter(function(m) {
|
|
2583
2591
|
return u.indexOf(m) >= 0;
|
|
2584
2592
|
});
|
|
2585
2593
|
d.length === 0 && (d = p, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
|
|
@@ -2595,17 +2603,17 @@ function fs(t, e) {
|
|
|
2595
2603
|
return h[m] - h[v];
|
|
2596
2604
|
});
|
|
2597
2605
|
}
|
|
2598
|
-
function
|
|
2606
|
+
function vs(t) {
|
|
2599
2607
|
if (Re(t) === hn)
|
|
2600
2608
|
return [];
|
|
2601
2609
|
var e = Jt(t);
|
|
2602
|
-
return [
|
|
2610
|
+
return [zr(t), e, zr(e)];
|
|
2603
2611
|
}
|
|
2604
|
-
function
|
|
2612
|
+
function gs(t) {
|
|
2605
2613
|
var e = t.state, n = t.options, r = t.name;
|
|
2606
2614
|
if (!e.modifiersData[r]._skip) {
|
|
2607
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, c = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, f = n.boundary, p = n.rootBoundary, d = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, b = Re(g), x = b === g, E = l || (x || !m ? [Jt(g)] :
|
|
2608
|
-
return A.concat(Re(D) === hn ?
|
|
2615
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, c = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, f = n.boundary, p = n.rootBoundary, d = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, v = n.allowedAutoPlacements, g = e.options.placement, b = Re(g), x = b === g, E = l || (x || !m ? [Jt(g)] : vs(g)), O = [g].concat(E).reduce(function(A, D) {
|
|
2616
|
+
return A.concat(Re(D) === hn ? ms(e, {
|
|
2609
2617
|
placement: D,
|
|
2610
2618
|
boundary: f,
|
|
2611
2619
|
rootBoundary: p,
|
|
@@ -2613,48 +2621,48 @@ function hs(t) {
|
|
|
2613
2621
|
flipVariations: m,
|
|
2614
2622
|
allowedAutoPlacements: v
|
|
2615
2623
|
}) : D);
|
|
2616
|
-
}, []), y = e.rects.reference,
|
|
2617
|
-
var H = O[L], ae = Re(H), re =
|
|
2624
|
+
}, []), y = e.rects.reference, P = e.rects.popper, I = /* @__PURE__ */ new Map(), S = !0, N = O[0], L = 0; L < O.length; L++) {
|
|
2625
|
+
var H = O[L], ae = Re(H), re = kt(H) === Ot, le = [Ce, Ie].indexOf(ae) >= 0, ke = le ? "width" : "height", Q = Wt(e, {
|
|
2618
2626
|
placement: H,
|
|
2619
2627
|
boundary: f,
|
|
2620
2628
|
rootBoundary: p,
|
|
2621
2629
|
altBoundary: d,
|
|
2622
2630
|
padding: u
|
|
2623
2631
|
}), oe = le ? re ? Ne : Oe : re ? Ie : Ce;
|
|
2624
|
-
y[
|
|
2625
|
-
var
|
|
2626
|
-
if (i && ve.push(Q[ae] <= 0), c && ve.push(Q[oe] <= 0, Q[
|
|
2632
|
+
y[ke] > P[ke] && (oe = Jt(oe));
|
|
2633
|
+
var Pe = Jt(oe), ve = [];
|
|
2634
|
+
if (i && ve.push(Q[ae] <= 0), c && ve.push(Q[oe] <= 0, Q[Pe] <= 0), ve.every(function(A) {
|
|
2627
2635
|
return A;
|
|
2628
2636
|
})) {
|
|
2629
|
-
N = H,
|
|
2637
|
+
N = H, S = !1;
|
|
2630
2638
|
break;
|
|
2631
2639
|
}
|
|
2632
2640
|
I.set(H, ve);
|
|
2633
2641
|
}
|
|
2634
|
-
if (
|
|
2635
|
-
for (var
|
|
2642
|
+
if (S)
|
|
2643
|
+
for (var k = m ? 3 : 1, _ = function(D) {
|
|
2636
2644
|
var R = O.find(function(U) {
|
|
2637
|
-
var
|
|
2638
|
-
if (
|
|
2639
|
-
return
|
|
2645
|
+
var V = I.get(U);
|
|
2646
|
+
if (V)
|
|
2647
|
+
return V.slice(0, D).every(function($) {
|
|
2640
2648
|
return $;
|
|
2641
2649
|
});
|
|
2642
2650
|
});
|
|
2643
2651
|
if (R)
|
|
2644
2652
|
return N = R, "break";
|
|
2645
|
-
}, M =
|
|
2646
|
-
var j =
|
|
2653
|
+
}, M = k; M > 0; M--) {
|
|
2654
|
+
var j = _(M);
|
|
2647
2655
|
if (j === "break")
|
|
2648
2656
|
break;
|
|
2649
2657
|
}
|
|
2650
2658
|
e.placement !== N && (e.modifiersData[r]._skip = !0, e.placement = N, e.reset = !0);
|
|
2651
2659
|
}
|
|
2652
2660
|
}
|
|
2653
|
-
const
|
|
2661
|
+
const ys = {
|
|
2654
2662
|
name: "flip",
|
|
2655
2663
|
enabled: !0,
|
|
2656
2664
|
phase: "main",
|
|
2657
|
-
fn:
|
|
2665
|
+
fn: gs,
|
|
2658
2666
|
requiresIfExists: ["offset"],
|
|
2659
2667
|
data: {
|
|
2660
2668
|
_skip: !1
|
|
@@ -2676,7 +2684,7 @@ function $r(t) {
|
|
|
2676
2684
|
return t[e] >= 0;
|
|
2677
2685
|
});
|
|
2678
2686
|
}
|
|
2679
|
-
function
|
|
2687
|
+
function bs(t) {
|
|
2680
2688
|
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, s = Wt(e, {
|
|
2681
2689
|
elementContext: "reference"
|
|
2682
2690
|
}), c = Wt(e, {
|
|
@@ -2692,14 +2700,14 @@ function vs(t) {
|
|
|
2692
2700
|
"data-popper-escaped": p
|
|
2693
2701
|
});
|
|
2694
2702
|
}
|
|
2695
|
-
const
|
|
2703
|
+
const ws = {
|
|
2696
2704
|
name: "hide",
|
|
2697
2705
|
enabled: !0,
|
|
2698
2706
|
phase: "main",
|
|
2699
2707
|
requiresIfExists: ["preventOverflow"],
|
|
2700
|
-
fn:
|
|
2708
|
+
fn: bs
|
|
2701
2709
|
};
|
|
2702
|
-
function
|
|
2710
|
+
function Cs(t, e, n) {
|
|
2703
2711
|
var r = Re(t), o = [Oe, Ce].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
|
|
2704
2712
|
placement: t
|
|
2705
2713
|
})) : n, s = i[0], c = i[1];
|
|
@@ -2711,20 +2719,20 @@ function ys(t, e, n) {
|
|
|
2711
2719
|
y: c
|
|
2712
2720
|
};
|
|
2713
2721
|
}
|
|
2714
|
-
function
|
|
2722
|
+
function Os(t) {
|
|
2715
2723
|
var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, s = qo.reduce(function(f, p) {
|
|
2716
|
-
return f[p] =
|
|
2724
|
+
return f[p] = Cs(p, e.rects, i), f;
|
|
2717
2725
|
}, {}), c = s[e.placement], l = c.x, u = c.y;
|
|
2718
2726
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += u), e.modifiersData[r] = s;
|
|
2719
2727
|
}
|
|
2720
|
-
const
|
|
2728
|
+
const Es = {
|
|
2721
2729
|
name: "offset",
|
|
2722
2730
|
enabled: !0,
|
|
2723
2731
|
phase: "main",
|
|
2724
2732
|
requires: ["popperOffsets"],
|
|
2725
|
-
fn:
|
|
2733
|
+
fn: Os
|
|
2726
2734
|
};
|
|
2727
|
-
function
|
|
2735
|
+
function xs(t) {
|
|
2728
2736
|
var e = t.state, n = t.name;
|
|
2729
2737
|
e.modifiersData[n] = ni({
|
|
2730
2738
|
reference: e.rects.reference,
|
|
@@ -2733,23 +2741,23 @@ function Cs(t) {
|
|
|
2733
2741
|
placement: e.placement
|
|
2734
2742
|
});
|
|
2735
2743
|
}
|
|
2736
|
-
const
|
|
2744
|
+
const ks = {
|
|
2737
2745
|
name: "popperOffsets",
|
|
2738
2746
|
enabled: !0,
|
|
2739
2747
|
phase: "read",
|
|
2740
|
-
fn:
|
|
2748
|
+
fn: xs,
|
|
2741
2749
|
data: {}
|
|
2742
2750
|
};
|
|
2743
|
-
function
|
|
2751
|
+
function Ss(t) {
|
|
2744
2752
|
return t === "x" ? "y" : "x";
|
|
2745
2753
|
}
|
|
2746
|
-
function
|
|
2754
|
+
function Ps(t) {
|
|
2747
2755
|
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, c = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.padding, d = n.tether, h = d === void 0 ? !0 : d, m = n.tetherOffset, v = m === void 0 ? 0 : m, g = Wt(e, {
|
|
2748
2756
|
boundary: l,
|
|
2749
2757
|
rootBoundary: u,
|
|
2750
2758
|
padding: p,
|
|
2751
2759
|
altBoundary: f
|
|
2752
|
-
}), b = Re(e.placement), x =
|
|
2760
|
+
}), b = Re(e.placement), x = kt(e.placement), E = !x, O = gr(b), y = Ss(O), P = e.modifiersData.popperOffsets, I = e.rects.reference, S = e.rects.popper, N = typeof v == "function" ? v(Object.assign({}, e.rects, {
|
|
2753
2761
|
placement: e.placement
|
|
2754
2762
|
})) : v, L = typeof N == "number" ? {
|
|
2755
2763
|
mainAxis: N,
|
|
@@ -2761,44 +2769,44 @@ function xs(t) {
|
|
|
2761
2769
|
x: 0,
|
|
2762
2770
|
y: 0
|
|
2763
2771
|
};
|
|
2764
|
-
if (
|
|
2772
|
+
if (P) {
|
|
2765
2773
|
if (i) {
|
|
2766
|
-
var re, le = O === "y" ? Ce : Oe,
|
|
2774
|
+
var re, le = O === "y" ? Ce : Oe, ke = O === "y" ? Ie : Ne, Q = O === "y" ? "height" : "width", oe = P[O], Pe = oe + g[le], ve = oe - g[ke], k = h ? -S[Q] / 2 : 0, _ = x === Ot ? I[Q] : S[Q], M = x === Ot ? -S[Q] : -I[Q], j = e.elements.arrow, A = h && j ? vr(j) : {
|
|
2767
2775
|
width: 0,
|
|
2768
2776
|
height: 0
|
|
2769
|
-
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Jo(), R = D[le], U = D[
|
|
2770
|
-
|
|
2777
|
+
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Jo(), R = D[le], U = D[ke], V = Dt(0, I[Q], A[Q]), $ = E ? I[Q] / 2 - k - V - R - L.mainAxis : _ - V - R - L.mainAxis, B = E ? -I[Q] / 2 + k + V + U + L.mainAxis : M + V + U + L.mainAxis, se = e.elements.arrow && Zt(e.elements.arrow), T = se ? O === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, me = (re = H?.[O]) != null ? re : 0, Te = oe + $ - me - T, dt = oe + B - me, ft = Dt(h ? on(Pe, Te) : Pe, oe, h ? st(ve, dt) : ve);
|
|
2778
|
+
P[O] = ft, ae[O] = ft - oe;
|
|
2771
2779
|
}
|
|
2772
2780
|
if (c) {
|
|
2773
|
-
var Ke,
|
|
2774
|
-
|
|
2781
|
+
var Ke, Tt = O === "x" ? Ce : Oe, On = O === "x" ? Ie : Ne, De = P[y], et = y === "y" ? "height" : "width", ge = De + g[Tt], Ve = De - g[On], qe = [Ce, Oe].indexOf(b) !== -1, Z = (Ke = H?.[y]) != null ? Ke : 0, q = qe ? ge : De - I[et] - S[et] - Z + L.altAxis, F = qe ? De + I[et] + S[et] - Z - L.altAxis : Ve, ee = h && qe ? Xa(q, De, F) : Dt(h ? q : ge, De, h ? F : Ve);
|
|
2782
|
+
P[y] = ee, ae[y] = ee - De;
|
|
2775
2783
|
}
|
|
2776
2784
|
e.modifiersData[r] = ae;
|
|
2777
2785
|
}
|
|
2778
2786
|
}
|
|
2779
|
-
const
|
|
2787
|
+
const Ts = {
|
|
2780
2788
|
name: "preventOverflow",
|
|
2781
2789
|
enabled: !0,
|
|
2782
2790
|
phase: "main",
|
|
2783
|
-
fn:
|
|
2791
|
+
fn: Ps,
|
|
2784
2792
|
requiresIfExists: ["offset"]
|
|
2785
2793
|
};
|
|
2786
|
-
function
|
|
2794
|
+
function _s(t) {
|
|
2787
2795
|
return {
|
|
2788
2796
|
scrollLeft: t.scrollLeft,
|
|
2789
2797
|
scrollTop: t.scrollTop
|
|
2790
2798
|
};
|
|
2791
2799
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return t === Ae(t) || !
|
|
2800
|
+
function Is(t) {
|
|
2801
|
+
return t === Ae(t) || !Se(t) ? yr(t) : _s(t);
|
|
2794
2802
|
}
|
|
2795
|
-
function
|
|
2803
|
+
function Ns(t) {
|
|
2796
2804
|
var e = t.getBoundingClientRect(), n = Et(e.width) / t.offsetWidth || 1, r = Et(e.height) / t.offsetHeight || 1;
|
|
2797
2805
|
return n !== 1 || r !== 1;
|
|
2798
2806
|
}
|
|
2799
|
-
function
|
|
2807
|
+
function As(t, e, n) {
|
|
2800
2808
|
n === void 0 && (n = !1);
|
|
2801
|
-
var r =
|
|
2809
|
+
var r = Se(e), o = Se(e) && Ns(e), i = Qe(e), s = xt(t, o, n), c = {
|
|
2802
2810
|
scrollLeft: 0,
|
|
2803
2811
|
scrollTop: 0
|
|
2804
2812
|
}, l = {
|
|
@@ -2806,14 +2814,14 @@ function Ts(t, e, n) {
|
|
|
2806
2814
|
y: 0
|
|
2807
2815
|
};
|
|
2808
2816
|
return (r || !r && !n) && ((He(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
2809
|
-
wr(i)) && (c =
|
|
2817
|
+
wr(i)) && (c = Is(e)), Se(e) ? (l = xt(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = br(i))), {
|
|
2810
2818
|
x: s.left + c.scrollLeft - l.x,
|
|
2811
2819
|
y: s.top + c.scrollTop - l.y,
|
|
2812
2820
|
width: s.width,
|
|
2813
2821
|
height: s.height
|
|
2814
2822
|
};
|
|
2815
2823
|
}
|
|
2816
|
-
function
|
|
2824
|
+
function Rs(t) {
|
|
2817
2825
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
2818
2826
|
t.forEach(function(i) {
|
|
2819
2827
|
e.set(i.name, i);
|
|
@@ -2832,15 +2840,15 @@ function Is(t) {
|
|
|
2832
2840
|
n.has(i.name) || o(i);
|
|
2833
2841
|
}), r;
|
|
2834
2842
|
}
|
|
2835
|
-
function
|
|
2836
|
-
var e =
|
|
2843
|
+
function Ls(t) {
|
|
2844
|
+
var e = Rs(t);
|
|
2837
2845
|
return Bn.reduce(function(n, r) {
|
|
2838
2846
|
return n.concat(e.filter(function(o) {
|
|
2839
2847
|
return o.phase === r;
|
|
2840
2848
|
}));
|
|
2841
2849
|
}, []);
|
|
2842
2850
|
}
|
|
2843
|
-
function
|
|
2851
|
+
function Ms(t) {
|
|
2844
2852
|
var e;
|
|
2845
2853
|
return function() {
|
|
2846
2854
|
return e || (e = new Promise(function(n) {
|
|
@@ -2857,8 +2865,8 @@ function Xe(t) {
|
|
|
2857
2865
|
return o.replace(/%s/, i);
|
|
2858
2866
|
}, t);
|
|
2859
2867
|
}
|
|
2860
|
-
var tt = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
2861
|
-
function
|
|
2868
|
+
var tt = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Ds = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Gr = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
2869
|
+
function js(t) {
|
|
2862
2870
|
t.forEach(function(e) {
|
|
2863
2871
|
[].concat(Object.keys(e), Gr).filter(function(n, r, o) {
|
|
2864
2872
|
return o.indexOf(n) === r;
|
|
@@ -2896,12 +2904,12 @@ function Ls(t) {
|
|
|
2896
2904
|
e.requires && e.requires.forEach(function(r) {
|
|
2897
2905
|
t.find(function(o) {
|
|
2898
2906
|
return o.name === r;
|
|
2899
|
-
}) == null && console.error(Xe(
|
|
2907
|
+
}) == null && console.error(Xe(Ds, String(e.name), r, r));
|
|
2900
2908
|
});
|
|
2901
2909
|
});
|
|
2902
2910
|
});
|
|
2903
2911
|
}
|
|
2904
|
-
function
|
|
2912
|
+
function Us(t, e) {
|
|
2905
2913
|
var n = /* @__PURE__ */ new Set();
|
|
2906
2914
|
return t.filter(function(r) {
|
|
2907
2915
|
var o = e(r);
|
|
@@ -2909,7 +2917,7 @@ function Ms(t, e) {
|
|
|
2909
2917
|
return n.add(o), !0;
|
|
2910
2918
|
});
|
|
2911
2919
|
}
|
|
2912
|
-
function
|
|
2920
|
+
function Fs(t) {
|
|
2913
2921
|
var e = t.reduce(function(n, r) {
|
|
2914
2922
|
var o = n[r.name];
|
|
2915
2923
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -2921,7 +2929,7 @@ function Ds(t) {
|
|
|
2921
2929
|
return e[n];
|
|
2922
2930
|
});
|
|
2923
2931
|
}
|
|
2924
|
-
var Kr = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",
|
|
2932
|
+
var Kr = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Ws = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", qr = {
|
|
2925
2933
|
placement: "bottom",
|
|
2926
2934
|
modifiers: [],
|
|
2927
2935
|
strategy: "absolute"
|
|
@@ -2933,7 +2941,7 @@ function Yr() {
|
|
|
2933
2941
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
2934
2942
|
});
|
|
2935
2943
|
}
|
|
2936
|
-
function
|
|
2944
|
+
function Hs(t) {
|
|
2937
2945
|
t === void 0 && (t = {});
|
|
2938
2946
|
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? qr : o;
|
|
2939
2947
|
return function(c, l, u) {
|
|
@@ -2957,23 +2965,23 @@ function Us(t) {
|
|
|
2957
2965
|
reference: ct(c) ? jt(c) : c.contextElement ? jt(c.contextElement) : [],
|
|
2958
2966
|
popper: jt(l)
|
|
2959
2967
|
};
|
|
2960
|
-
var E =
|
|
2968
|
+
var E = Ls(Fs([].concat(r, f.options.modifiers)));
|
|
2961
2969
|
if (f.orderedModifiers = E.filter(function(H) {
|
|
2962
2970
|
return H.enabled;
|
|
2963
2971
|
}), process.env.NODE_ENV !== "production") {
|
|
2964
|
-
var O =
|
|
2972
|
+
var O = Us([].concat(E, f.options.modifiers), function(H) {
|
|
2965
2973
|
var ae = H.name;
|
|
2966
2974
|
return ae;
|
|
2967
2975
|
});
|
|
2968
|
-
if (
|
|
2976
|
+
if (js(O), Re(f.options.placement) === hn) {
|
|
2969
2977
|
var y = f.orderedModifiers.find(function(H) {
|
|
2970
2978
|
var ae = H.name;
|
|
2971
2979
|
return ae === "flip";
|
|
2972
2980
|
});
|
|
2973
2981
|
y || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
2974
2982
|
}
|
|
2975
|
-
var
|
|
2976
|
-
[I,
|
|
2983
|
+
var P = Me(l), I = P.marginTop, S = P.marginRight, N = P.marginBottom, L = P.marginLeft;
|
|
2984
|
+
[I, S, N, L].some(function(H) {
|
|
2977
2985
|
return parseFloat(H);
|
|
2978
2986
|
}) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
2979
2987
|
}
|
|
@@ -2992,21 +3000,21 @@ function Us(t) {
|
|
|
2992
3000
|
return;
|
|
2993
3001
|
}
|
|
2994
3002
|
f.rects = {
|
|
2995
|
-
reference:
|
|
3003
|
+
reference: As(x, Zt(E), f.options.strategy === "fixed"),
|
|
2996
3004
|
popper: vr(E)
|
|
2997
3005
|
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(H) {
|
|
2998
3006
|
return f.modifiersData[H.name] = Object.assign({}, H.data);
|
|
2999
3007
|
});
|
|
3000
3008
|
for (var O = 0, y = 0; y < f.orderedModifiers.length; y++) {
|
|
3001
3009
|
if (process.env.NODE_ENV !== "production" && (O += 1, O > 100)) {
|
|
3002
|
-
console.error(
|
|
3010
|
+
console.error(Ws);
|
|
3003
3011
|
break;
|
|
3004
3012
|
}
|
|
3005
3013
|
if (f.reset === !0) {
|
|
3006
3014
|
f.reset = !1, y = -1;
|
|
3007
3015
|
continue;
|
|
3008
3016
|
}
|
|
3009
|
-
var
|
|
3017
|
+
var P = f.orderedModifiers[y], I = P.fn, S = P.options, N = S === void 0 ? {} : S, L = P.name;
|
|
3010
3018
|
typeof I == "function" && (f = I({
|
|
3011
3019
|
state: f,
|
|
3012
3020
|
options: N,
|
|
@@ -3018,7 +3026,7 @@ function Us(t) {
|
|
|
3018
3026
|
},
|
|
3019
3027
|
// Async and optimistically optimized update – it will not be executed if
|
|
3020
3028
|
// not necessary (debounced to run at most once-per-tick)
|
|
3021
|
-
update:
|
|
3029
|
+
update: Ms(function() {
|
|
3022
3030
|
return new Promise(function(g) {
|
|
3023
3031
|
h.forceUpdate(), g(f);
|
|
3024
3032
|
});
|
|
@@ -3041,9 +3049,9 @@ function Us(t) {
|
|
|
3041
3049
|
name: b,
|
|
3042
3050
|
instance: h,
|
|
3043
3051
|
options: E
|
|
3044
|
-
}),
|
|
3052
|
+
}), P = function() {
|
|
3045
3053
|
};
|
|
3046
|
-
p.push(y ||
|
|
3054
|
+
p.push(y || P);
|
|
3047
3055
|
}
|
|
3048
3056
|
});
|
|
3049
3057
|
}
|
|
@@ -3055,9 +3063,9 @@ function Us(t) {
|
|
|
3055
3063
|
return h;
|
|
3056
3064
|
};
|
|
3057
3065
|
}
|
|
3058
|
-
var
|
|
3059
|
-
defaultModifiers:
|
|
3060
|
-
}),
|
|
3066
|
+
var Vs = [ss, ks, is, Ka, Es, ys, Ts, ts, ws], zs = /* @__PURE__ */ Hs({
|
|
3067
|
+
defaultModifiers: Vs
|
|
3068
|
+
}), Zs = typeof Element < "u", Bs = typeof Map == "function", $s = typeof Set == "function", Gs = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
3061
3069
|
function Qt(t, e) {
|
|
3062
3070
|
if (t === e)
|
|
3063
3071
|
return !0;
|
|
@@ -3074,7 +3082,7 @@ function Qt(t, e) {
|
|
|
3074
3082
|
return !0;
|
|
3075
3083
|
}
|
|
3076
3084
|
var i;
|
|
3077
|
-
if (
|
|
3085
|
+
if (Bs && t instanceof Map && e instanceof Map) {
|
|
3078
3086
|
if (t.size !== e.size)
|
|
3079
3087
|
return !1;
|
|
3080
3088
|
for (i = t.entries(); !(r = i.next()).done; )
|
|
@@ -3085,7 +3093,7 @@ function Qt(t, e) {
|
|
|
3085
3093
|
return !1;
|
|
3086
3094
|
return !0;
|
|
3087
3095
|
}
|
|
3088
|
-
if (
|
|
3096
|
+
if ($s && t instanceof Set && e instanceof Set) {
|
|
3089
3097
|
if (t.size !== e.size)
|
|
3090
3098
|
return !1;
|
|
3091
3099
|
for (i = t.entries(); !(r = i.next()).done; )
|
|
@@ -3093,7 +3101,7 @@ function Qt(t, e) {
|
|
|
3093
3101
|
return !1;
|
|
3094
3102
|
return !0;
|
|
3095
3103
|
}
|
|
3096
|
-
if (
|
|
3104
|
+
if (Gs && ArrayBuffer.isView(t) && ArrayBuffer.isView(e)) {
|
|
3097
3105
|
if (n = t.length, n != e.length)
|
|
3098
3106
|
return !1;
|
|
3099
3107
|
for (r = n; r-- !== 0; )
|
|
@@ -3112,7 +3120,7 @@ function Qt(t, e) {
|
|
|
3112
3120
|
for (r = n; r-- !== 0; )
|
|
3113
3121
|
if (!Object.prototype.hasOwnProperty.call(e, o[r]))
|
|
3114
3122
|
return !1;
|
|
3115
|
-
if (
|
|
3123
|
+
if (Zs && t instanceof Element)
|
|
3116
3124
|
return !1;
|
|
3117
3125
|
for (r = n; r-- !== 0; )
|
|
3118
3126
|
if (!((o[r] === "_owner" || o[r] === "__v" || o[r] === "__o") && t.$$typeof) && !Qt(t[o[r]], e[o[r]]))
|
|
@@ -3121,7 +3129,7 @@ function Qt(t, e) {
|
|
|
3121
3129
|
}
|
|
3122
3130
|
return t !== t && e !== e;
|
|
3123
3131
|
}
|
|
3124
|
-
var
|
|
3132
|
+
var Ks = function(e, n) {
|
|
3125
3133
|
try {
|
|
3126
3134
|
return Qt(e, n);
|
|
3127
3135
|
} catch (r) {
|
|
@@ -3129,13 +3137,13 @@ var Bs = function(e, n) {
|
|
|
3129
3137
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
3130
3138
|
throw r;
|
|
3131
3139
|
}
|
|
3132
|
-
},
|
|
3140
|
+
}, qs = [], Ys = function(e, n, r) {
|
|
3133
3141
|
r === void 0 && (r = {});
|
|
3134
3142
|
var o = Je.useRef(null), i = {
|
|
3135
3143
|
onFirstUpdate: r.onFirstUpdate,
|
|
3136
3144
|
placement: r.placement || "bottom",
|
|
3137
3145
|
strategy: r.strategy || "absolute",
|
|
3138
|
-
modifiers: r.modifiers ||
|
|
3146
|
+
modifiers: r.modifiers || qs
|
|
3139
3147
|
}, s = Je.useState({
|
|
3140
3148
|
styles: {
|
|
3141
3149
|
popper: {
|
|
@@ -3155,7 +3163,7 @@ var Bs = function(e, n) {
|
|
|
3155
3163
|
phase: "write",
|
|
3156
3164
|
fn: function(h) {
|
|
3157
3165
|
var m = h.state, v = Object.keys(m.elements);
|
|
3158
|
-
|
|
3166
|
+
zi.flushSync(function() {
|
|
3159
3167
|
l({
|
|
3160
3168
|
styles: Ur(v.map(function(g) {
|
|
3161
3169
|
return [g, m.styles[g] || {}];
|
|
@@ -3178,13 +3186,13 @@ var Bs = function(e, n) {
|
|
|
3178
3186
|
enabled: !1
|
|
3179
3187
|
}])
|
|
3180
3188
|
};
|
|
3181
|
-
return
|
|
3189
|
+
return Ks(o.current, d) ? o.current || d : (o.current = d, d);
|
|
3182
3190
|
}, [i.onFirstUpdate, i.placement, i.strategy, i.modifiers, u]), p = Je.useRef();
|
|
3183
3191
|
return Fr(function() {
|
|
3184
3192
|
p.current && p.current.setOptions(f);
|
|
3185
3193
|
}, [f]), Fr(function() {
|
|
3186
3194
|
if (!(e == null || n == null)) {
|
|
3187
|
-
var d = r.createPopper ||
|
|
3195
|
+
var d = r.createPopper || zs, h = d(e, n, f);
|
|
3188
3196
|
return p.current = h, function() {
|
|
3189
3197
|
h.destroy(), p.current = null;
|
|
3190
3198
|
};
|
|
@@ -3197,8 +3205,8 @@ var Bs = function(e, n) {
|
|
|
3197
3205
|
forceUpdate: p.current ? p.current.forceUpdate : null
|
|
3198
3206
|
};
|
|
3199
3207
|
};
|
|
3200
|
-
const
|
|
3201
|
-
const { actions: n, className: r, onClose: o, onActionItemClick: i, ...s } = t, c = Le({}), [l, u] =
|
|
3208
|
+
const Xs = lr((t, e) => {
|
|
3209
|
+
const { actions: n, className: r, onClose: o, onActionItemClick: i, ...s } = t, c = Le({}), [l, u] = z(0), f = (p) => {
|
|
3202
3210
|
c.current[p]?.focus(), u(p);
|
|
3203
3211
|
};
|
|
3204
3212
|
return te(() => {
|
|
@@ -3234,7 +3242,7 @@ const Ks = lr((t, e) => {
|
|
|
3234
3242
|
);
|
|
3235
3243
|
});
|
|
3236
3244
|
function ri(t) {
|
|
3237
|
-
const { iconName: e, iconSize: n, actions: r, onActionItemClick: o, isTabStop: i } = t, [s, c] =
|
|
3245
|
+
const { iconName: e, iconSize: n, actions: r, onActionItemClick: o, isTabStop: i } = t, [s, c] = z(!1), [l, u] = z(null), [f, p] = z(null), { styles: d, attributes: h } = Ys(l, f, {
|
|
3238
3246
|
placement: "bottom-end"
|
|
3239
3247
|
});
|
|
3240
3248
|
te(() => {
|
|
@@ -3267,7 +3275,7 @@ function ri(t) {
|
|
|
3267
3275
|
}
|
|
3268
3276
|
),
|
|
3269
3277
|
s && /* @__PURE__ */ a(
|
|
3270
|
-
|
|
3278
|
+
Xs,
|
|
3271
3279
|
{
|
|
3272
3280
|
actions: r,
|
|
3273
3281
|
style: d.popper,
|
|
@@ -3281,7 +3289,7 @@ function ri(t) {
|
|
|
3281
3289
|
)
|
|
3282
3290
|
] });
|
|
3283
3291
|
}
|
|
3284
|
-
const
|
|
3292
|
+
const Js = (t) => {
|
|
3285
3293
|
const { className: e, isFavoritismEnabled: n = !0, item: r, onClick: o, onKeyDown: i, focused: s, ...c } = t, { favoriteEntities: l, toggleFavorite: u } = fr(), { description: f, icon: p = "application", iconSrc: d, isOpen: h = !1, title: m, contextMenuActions: v } = r, g = n && l.some((b) => b.type === r.type && b.title === r.title);
|
|
3286
3294
|
return /* @__PURE__ */ w(
|
|
3287
3295
|
"div",
|
|
@@ -3301,7 +3309,7 @@ const qs = (t) => {
|
|
|
3301
3309
|
children: [
|
|
3302
3310
|
/* @__PURE__ */ w("div", { className: "io-list-row", children: [
|
|
3303
3311
|
/* @__PURE__ */ a(ce, { size: 8, name: h ? "check" : "", "data-testid": "open-check-icon" }),
|
|
3304
|
-
d ? /* @__PURE__ */ a(jo, { src: d, alt: `${m} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ a(ce, { size: 14, name: p, "data-testid": "icon" }),
|
|
3312
|
+
d ? /* @__PURE__ */ a(jo, { className: "section-img-icon", src: d, alt: `${m} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ a(ce, { className: "section-icon", size: 14, name: p, "data-testid": "icon" }),
|
|
3305
3313
|
/* @__PURE__ */ a("span", { className: "title", "data-testid": "title", children: m }),
|
|
3306
3314
|
h && /* @__PURE__ */ a("span", { className: "opened", "data-testid": "opened-label", children: "Opened" }),
|
|
3307
3315
|
v && v.length > 0 && /* @__PURE__ */ a(
|
|
@@ -3334,8 +3342,8 @@ const qs = (t) => {
|
|
|
3334
3342
|
);
|
|
3335
3343
|
}, oi = xe({
|
|
3336
3344
|
name: ye
|
|
3337
|
-
}), ii = "Welcome",
|
|
3338
|
-
const [t, e] =
|
|
3345
|
+
}), ii = "Welcome", Qs = 5, ec = () => {
|
|
3346
|
+
const [t, e] = z(null), [n, r] = fn(
|
|
3339
3347
|
"sessionStorage",
|
|
3340
3348
|
Uo,
|
|
3341
3349
|
oi
|
|
@@ -3363,13 +3371,13 @@ const qs = (t) => {
|
|
|
3363
3371
|
setDefaultLayout: c,
|
|
3364
3372
|
setSelectedLayout: r
|
|
3365
3373
|
};
|
|
3366
|
-
}, ai =
|
|
3374
|
+
}, ai = Vt(void 0), Pt = () => {
|
|
3367
3375
|
const t = ne(ai);
|
|
3368
3376
|
if (t === void 0)
|
|
3369
3377
|
throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");
|
|
3370
3378
|
return t;
|
|
3371
|
-
},
|
|
3372
|
-
const { defaultLayout: r, selectedLayout: o, setDefaultLayout: i, setSelectedLayout: s } =
|
|
3379
|
+
}, tc = ({ children: t, setOpen: e, isOpen: n }) => {
|
|
3380
|
+
const { defaultLayout: r, selectedLayout: o, setDefaultLayout: i, setSelectedLayout: s } = ec(), l = {
|
|
3373
3381
|
close: he(() => e(!1), [e]),
|
|
3374
3382
|
isOpen: n,
|
|
3375
3383
|
defaultLayout: r,
|
|
@@ -3386,7 +3394,7 @@ var C = {}, Xr = {
|
|
|
3386
3394
|
set exports(t) {
|
|
3387
3395
|
C = t;
|
|
3388
3396
|
}
|
|
3389
|
-
}, an = {},
|
|
3397
|
+
}, an = {}, nc = {
|
|
3390
3398
|
get exports() {
|
|
3391
3399
|
return an;
|
|
3392
3400
|
},
|
|
@@ -3403,15 +3411,15 @@ var C = {}, Xr = {
|
|
|
3403
3411
|
* LICENSE file in the root directory of this source tree.
|
|
3404
3412
|
*/
|
|
3405
3413
|
var Jr;
|
|
3406
|
-
function
|
|
3414
|
+
function rc() {
|
|
3407
3415
|
if (Jr)
|
|
3408
3416
|
return X;
|
|
3409
3417
|
Jr = 1;
|
|
3410
3418
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
3411
3419
|
function E(y) {
|
|
3412
3420
|
if (typeof y == "object" && y !== null) {
|
|
3413
|
-
var
|
|
3414
|
-
switch (
|
|
3421
|
+
var P = y.$$typeof;
|
|
3422
|
+
switch (P) {
|
|
3415
3423
|
case e:
|
|
3416
3424
|
switch (y = y.type, y) {
|
|
3417
3425
|
case l:
|
|
@@ -3430,11 +3438,11 @@ function ec() {
|
|
|
3430
3438
|
case s:
|
|
3431
3439
|
return y;
|
|
3432
3440
|
default:
|
|
3433
|
-
return
|
|
3441
|
+
return P;
|
|
3434
3442
|
}
|
|
3435
3443
|
}
|
|
3436
3444
|
case n:
|
|
3437
|
-
return
|
|
3445
|
+
return P;
|
|
3438
3446
|
}
|
|
3439
3447
|
}
|
|
3440
3448
|
}
|
|
@@ -3479,29 +3487,29 @@ var J = {};
|
|
|
3479
3487
|
* LICENSE file in the root directory of this source tree.
|
|
3480
3488
|
*/
|
|
3481
3489
|
var Qr;
|
|
3482
|
-
function
|
|
3490
|
+
function oc() {
|
|
3483
3491
|
return Qr || (Qr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3484
3492
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, p = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, m = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, g = t ? Symbol.for("react.fundamental") : 60117, b = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
3485
|
-
function E(
|
|
3486
|
-
return typeof
|
|
3487
|
-
|
|
3493
|
+
function E(T) {
|
|
3494
|
+
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
3495
|
+
T === r || T === u || T === i || T === o || T === p || T === d || typeof T == "object" && T !== null && (T.$$typeof === m || T.$$typeof === h || T.$$typeof === s || T.$$typeof === c || T.$$typeof === f || T.$$typeof === g || T.$$typeof === b || T.$$typeof === x || T.$$typeof === v);
|
|
3488
3496
|
}
|
|
3489
|
-
function O(
|
|
3490
|
-
if (typeof
|
|
3491
|
-
var me =
|
|
3497
|
+
function O(T) {
|
|
3498
|
+
if (typeof T == "object" && T !== null) {
|
|
3499
|
+
var me = T.$$typeof;
|
|
3492
3500
|
switch (me) {
|
|
3493
3501
|
case e:
|
|
3494
|
-
var
|
|
3495
|
-
switch (
|
|
3502
|
+
var Te = T.type;
|
|
3503
|
+
switch (Te) {
|
|
3496
3504
|
case l:
|
|
3497
3505
|
case u:
|
|
3498
3506
|
case r:
|
|
3499
3507
|
case i:
|
|
3500
3508
|
case o:
|
|
3501
3509
|
case p:
|
|
3502
|
-
return
|
|
3510
|
+
return Te;
|
|
3503
3511
|
default:
|
|
3504
|
-
var dt =
|
|
3512
|
+
var dt = Te && Te.$$typeof;
|
|
3505
3513
|
switch (dt) {
|
|
3506
3514
|
case c:
|
|
3507
3515
|
case f:
|
|
@@ -3518,64 +3526,64 @@ function tc() {
|
|
|
3518
3526
|
}
|
|
3519
3527
|
}
|
|
3520
3528
|
}
|
|
3521
|
-
var y = l,
|
|
3522
|
-
function ve(
|
|
3523
|
-
return
|
|
3529
|
+
var y = l, P = u, I = c, S = s, N = e, L = f, H = r, ae = m, re = h, le = n, ke = i, Q = o, oe = p, Pe = !1;
|
|
3530
|
+
function ve(T) {
|
|
3531
|
+
return Pe || (Pe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(T) || O(T) === l;
|
|
3524
3532
|
}
|
|
3525
|
-
function
|
|
3526
|
-
return O(
|
|
3533
|
+
function k(T) {
|
|
3534
|
+
return O(T) === u;
|
|
3527
3535
|
}
|
|
3528
|
-
function T
|
|
3529
|
-
return O(
|
|
3536
|
+
function _(T) {
|
|
3537
|
+
return O(T) === c;
|
|
3530
3538
|
}
|
|
3531
|
-
function M(
|
|
3532
|
-
return O(
|
|
3539
|
+
function M(T) {
|
|
3540
|
+
return O(T) === s;
|
|
3533
3541
|
}
|
|
3534
|
-
function j(
|
|
3535
|
-
return typeof
|
|
3542
|
+
function j(T) {
|
|
3543
|
+
return typeof T == "object" && T !== null && T.$$typeof === e;
|
|
3536
3544
|
}
|
|
3537
|
-
function A(
|
|
3538
|
-
return O(
|
|
3545
|
+
function A(T) {
|
|
3546
|
+
return O(T) === f;
|
|
3539
3547
|
}
|
|
3540
|
-
function D(
|
|
3541
|
-
return O(
|
|
3548
|
+
function D(T) {
|
|
3549
|
+
return O(T) === r;
|
|
3542
3550
|
}
|
|
3543
|
-
function R(
|
|
3544
|
-
return O(
|
|
3551
|
+
function R(T) {
|
|
3552
|
+
return O(T) === m;
|
|
3545
3553
|
}
|
|
3546
|
-
function U(
|
|
3547
|
-
return O(
|
|
3554
|
+
function U(T) {
|
|
3555
|
+
return O(T) === h;
|
|
3548
3556
|
}
|
|
3549
|
-
function
|
|
3550
|
-
return O(
|
|
3557
|
+
function V(T) {
|
|
3558
|
+
return O(T) === n;
|
|
3551
3559
|
}
|
|
3552
|
-
function $(
|
|
3553
|
-
return O(
|
|
3560
|
+
function $(T) {
|
|
3561
|
+
return O(T) === i;
|
|
3554
3562
|
}
|
|
3555
|
-
function B(
|
|
3556
|
-
return O(
|
|
3563
|
+
function B(T) {
|
|
3564
|
+
return O(T) === o;
|
|
3557
3565
|
}
|
|
3558
|
-
function se(
|
|
3559
|
-
return O(
|
|
3566
|
+
function se(T) {
|
|
3567
|
+
return O(T) === p;
|
|
3560
3568
|
}
|
|
3561
|
-
J.AsyncMode = y, J.ConcurrentMode =
|
|
3569
|
+
J.AsyncMode = y, J.ConcurrentMode = P, J.ContextConsumer = I, J.ContextProvider = S, J.Element = N, J.ForwardRef = L, J.Fragment = H, J.Lazy = ae, J.Memo = re, J.Portal = le, J.Profiler = ke, J.StrictMode = Q, J.Suspense = oe, J.isAsyncMode = ve, J.isConcurrentMode = k, J.isContextConsumer = _, J.isContextProvider = M, J.isElement = j, J.isForwardRef = A, J.isFragment = D, J.isLazy = R, J.isMemo = U, J.isPortal = V, J.isProfiler = $, J.isStrictMode = B, J.isSuspense = se, J.isValidElementType = E, J.typeOf = O;
|
|
3562
3570
|
}()), J;
|
|
3563
3571
|
}
|
|
3564
3572
|
var eo;
|
|
3565
3573
|
function si() {
|
|
3566
3574
|
return eo || (eo = 1, function(t) {
|
|
3567
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
3568
|
-
}(
|
|
3575
|
+
process.env.NODE_ENV === "production" ? t.exports = rc() : t.exports = oc();
|
|
3576
|
+
}(nc)), an;
|
|
3569
3577
|
}
|
|
3570
3578
|
/*
|
|
3571
3579
|
object-assign
|
|
3572
3580
|
(c) Sindre Sorhus
|
|
3573
3581
|
@license MIT
|
|
3574
3582
|
*/
|
|
3575
|
-
var
|
|
3576
|
-
function
|
|
3583
|
+
var Sn, to;
|
|
3584
|
+
function ic() {
|
|
3577
3585
|
if (to)
|
|
3578
|
-
return
|
|
3586
|
+
return Sn;
|
|
3579
3587
|
to = 1;
|
|
3580
3588
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
3581
3589
|
function r(i) {
|
|
@@ -3605,7 +3613,7 @@ function nc() {
|
|
|
3605
3613
|
return !1;
|
|
3606
3614
|
}
|
|
3607
3615
|
}
|
|
3608
|
-
return
|
|
3616
|
+
return Sn = o() ? Object.assign : function(i, s) {
|
|
3609
3617
|
for (var c, l = r(i), u, f = 1; f < arguments.length; f++) {
|
|
3610
3618
|
c = Object(arguments[f]);
|
|
3611
3619
|
for (var p in c)
|
|
@@ -3617,24 +3625,24 @@ function nc() {
|
|
|
3617
3625
|
}
|
|
3618
3626
|
}
|
|
3619
3627
|
return l;
|
|
3620
|
-
},
|
|
3628
|
+
}, Sn;
|
|
3621
3629
|
}
|
|
3622
|
-
var
|
|
3630
|
+
var Pn, no;
|
|
3623
3631
|
function Cr() {
|
|
3624
3632
|
if (no)
|
|
3625
|
-
return
|
|
3633
|
+
return Pn;
|
|
3626
3634
|
no = 1;
|
|
3627
3635
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
3628
|
-
return
|
|
3636
|
+
return Pn = t, Pn;
|
|
3629
3637
|
}
|
|
3630
|
-
var
|
|
3638
|
+
var Tn, ro;
|
|
3631
3639
|
function ci() {
|
|
3632
|
-
return ro || (ro = 1,
|
|
3640
|
+
return ro || (ro = 1, Tn = Function.call.bind(Object.prototype.hasOwnProperty)), Tn;
|
|
3633
3641
|
}
|
|
3634
|
-
var
|
|
3635
|
-
function
|
|
3642
|
+
var _n, oo;
|
|
3643
|
+
function ac() {
|
|
3636
3644
|
if (oo)
|
|
3637
|
-
return
|
|
3645
|
+
return _n;
|
|
3638
3646
|
oo = 1;
|
|
3639
3647
|
var t = function() {
|
|
3640
3648
|
};
|
|
@@ -3679,14 +3687,14 @@ function rc() {
|
|
|
3679
3687
|
}
|
|
3680
3688
|
return o.resetWarningCache = function() {
|
|
3681
3689
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
3682
|
-
},
|
|
3690
|
+
}, _n = o, _n;
|
|
3683
3691
|
}
|
|
3684
3692
|
var In, io;
|
|
3685
|
-
function
|
|
3693
|
+
function sc() {
|
|
3686
3694
|
if (io)
|
|
3687
3695
|
return In;
|
|
3688
3696
|
io = 1;
|
|
3689
|
-
var t = si(), e =
|
|
3697
|
+
var t = si(), e = ic(), n = Cr(), r = ci(), o = ac(), i = function() {
|
|
3690
3698
|
};
|
|
3691
3699
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
3692
3700
|
var l = "Warning: " + c;
|
|
@@ -3701,10 +3709,10 @@ function oc() {
|
|
|
3701
3709
|
}
|
|
3702
3710
|
return In = function(c, l) {
|
|
3703
3711
|
var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
3704
|
-
function p(
|
|
3705
|
-
var
|
|
3706
|
-
if (typeof
|
|
3707
|
-
return
|
|
3712
|
+
function p(k) {
|
|
3713
|
+
var _ = k && (u && k[u] || k[f]);
|
|
3714
|
+
if (typeof _ == "function")
|
|
3715
|
+
return _;
|
|
3708
3716
|
}
|
|
3709
3717
|
var d = "<<anonymous>>", h = {
|
|
3710
3718
|
array: b("array"),
|
|
@@ -3719,185 +3727,185 @@ function oc() {
|
|
|
3719
3727
|
arrayOf: E,
|
|
3720
3728
|
element: O(),
|
|
3721
3729
|
elementType: y(),
|
|
3722
|
-
instanceOf:
|
|
3730
|
+
instanceOf: P,
|
|
3723
3731
|
node: L(),
|
|
3724
|
-
objectOf:
|
|
3732
|
+
objectOf: S,
|
|
3725
3733
|
oneOf: I,
|
|
3726
3734
|
oneOfType: N,
|
|
3727
3735
|
shape: ae,
|
|
3728
3736
|
exact: re
|
|
3729
3737
|
};
|
|
3730
|
-
function m(
|
|
3731
|
-
return
|
|
3738
|
+
function m(k, _) {
|
|
3739
|
+
return k === _ ? k !== 0 || 1 / k === 1 / _ : k !== k && _ !== _;
|
|
3732
3740
|
}
|
|
3733
|
-
function v(
|
|
3734
|
-
this.message =
|
|
3741
|
+
function v(k, _) {
|
|
3742
|
+
this.message = k, this.data = _ && typeof _ == "object" ? _ : {}, this.stack = "";
|
|
3735
3743
|
}
|
|
3736
3744
|
v.prototype = Error.prototype;
|
|
3737
|
-
function g(
|
|
3745
|
+
function g(k) {
|
|
3738
3746
|
if (process.env.NODE_ENV !== "production")
|
|
3739
|
-
var
|
|
3740
|
-
function j(D, R, U,
|
|
3741
|
-
if (
|
|
3747
|
+
var _ = {}, M = 0;
|
|
3748
|
+
function j(D, R, U, V, $, B, se) {
|
|
3749
|
+
if (V = V || d, B = B || U, se !== n) {
|
|
3742
3750
|
if (l) {
|
|
3743
|
-
var
|
|
3751
|
+
var T = new Error(
|
|
3744
3752
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
3745
3753
|
);
|
|
3746
|
-
throw
|
|
3754
|
+
throw T.name = "Invariant Violation", T;
|
|
3747
3755
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3748
|
-
var me =
|
|
3749
|
-
!
|
|
3756
|
+
var me = V + ":" + U;
|
|
3757
|
+
!_[me] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3750
3758
|
M < 3 && (i(
|
|
3751
|
-
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" +
|
|
3752
|
-
),
|
|
3759
|
+
"You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
3760
|
+
), _[me] = !0, M++);
|
|
3753
3761
|
}
|
|
3754
3762
|
}
|
|
3755
|
-
return R[U] == null ? D ? R[U] === null ? new v("The " + $ + " `" + B + "` is marked as required " + ("in `" +
|
|
3763
|
+
return R[U] == null ? D ? R[U] === null ? new v("The " + $ + " `" + B + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new v("The " + $ + " `" + B + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : k(R, U, V, $, B);
|
|
3756
3764
|
}
|
|
3757
3765
|
var A = j.bind(null, !1);
|
|
3758
3766
|
return A.isRequired = j.bind(null, !0), A;
|
|
3759
3767
|
}
|
|
3760
|
-
function b(
|
|
3761
|
-
function
|
|
3762
|
-
var
|
|
3763
|
-
if ($ !==
|
|
3764
|
-
var B = oe(
|
|
3768
|
+
function b(k) {
|
|
3769
|
+
function _(M, j, A, D, R, U) {
|
|
3770
|
+
var V = M[j], $ = Q(V);
|
|
3771
|
+
if ($ !== k) {
|
|
3772
|
+
var B = oe(V);
|
|
3765
3773
|
return new v(
|
|
3766
|
-
"Invalid " + D + " `" + R + "` of type " + ("`" + B + "` supplied to `" + A + "`, expected ") + ("`" +
|
|
3767
|
-
{ expectedType:
|
|
3774
|
+
"Invalid " + D + " `" + R + "` of type " + ("`" + B + "` supplied to `" + A + "`, expected ") + ("`" + k + "`."),
|
|
3775
|
+
{ expectedType: k }
|
|
3768
3776
|
);
|
|
3769
3777
|
}
|
|
3770
3778
|
return null;
|
|
3771
3779
|
}
|
|
3772
|
-
return g(
|
|
3780
|
+
return g(_);
|
|
3773
3781
|
}
|
|
3774
3782
|
function x() {
|
|
3775
3783
|
return g(s);
|
|
3776
3784
|
}
|
|
3777
|
-
function E(
|
|
3778
|
-
function
|
|
3779
|
-
if (typeof
|
|
3785
|
+
function E(k) {
|
|
3786
|
+
function _(M, j, A, D, R) {
|
|
3787
|
+
if (typeof k != "function")
|
|
3780
3788
|
return new v("Property `" + R + "` of component `" + A + "` has invalid PropType notation inside arrayOf.");
|
|
3781
3789
|
var U = M[j];
|
|
3782
3790
|
if (!Array.isArray(U)) {
|
|
3783
|
-
var
|
|
3784
|
-
return new v("Invalid " + D + " `" + R + "` of type " + ("`" +
|
|
3791
|
+
var V = Q(U);
|
|
3792
|
+
return new v("Invalid " + D + " `" + R + "` of type " + ("`" + V + "` supplied to `" + A + "`, expected an array."));
|
|
3785
3793
|
}
|
|
3786
3794
|
for (var $ = 0; $ < U.length; $++) {
|
|
3787
|
-
var B =
|
|
3795
|
+
var B = k(U, $, A, D, R + "[" + $ + "]", n);
|
|
3788
3796
|
if (B instanceof Error)
|
|
3789
3797
|
return B;
|
|
3790
3798
|
}
|
|
3791
3799
|
return null;
|
|
3792
3800
|
}
|
|
3793
|
-
return g(
|
|
3801
|
+
return g(_);
|
|
3794
3802
|
}
|
|
3795
3803
|
function O() {
|
|
3796
|
-
function
|
|
3797
|
-
var R =
|
|
3804
|
+
function k(_, M, j, A, D) {
|
|
3805
|
+
var R = _[M];
|
|
3798
3806
|
if (!c(R)) {
|
|
3799
3807
|
var U = Q(R);
|
|
3800
3808
|
return new v("Invalid " + A + " `" + D + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected a single ReactElement."));
|
|
3801
3809
|
}
|
|
3802
3810
|
return null;
|
|
3803
3811
|
}
|
|
3804
|
-
return g(
|
|
3812
|
+
return g(k);
|
|
3805
3813
|
}
|
|
3806
3814
|
function y() {
|
|
3807
|
-
function
|
|
3808
|
-
var R =
|
|
3815
|
+
function k(_, M, j, A, D) {
|
|
3816
|
+
var R = _[M];
|
|
3809
3817
|
if (!t.isValidElementType(R)) {
|
|
3810
3818
|
var U = Q(R);
|
|
3811
3819
|
return new v("Invalid " + A + " `" + D + "` of type " + ("`" + U + "` supplied to `" + j + "`, expected a single ReactElement type."));
|
|
3812
3820
|
}
|
|
3813
3821
|
return null;
|
|
3814
3822
|
}
|
|
3815
|
-
return g(
|
|
3823
|
+
return g(k);
|
|
3816
3824
|
}
|
|
3817
|
-
function
|
|
3818
|
-
function
|
|
3819
|
-
if (!(M[j] instanceof
|
|
3820
|
-
var U =
|
|
3821
|
-
return new v("Invalid " + D + " `" + R + "` of type " + ("`" +
|
|
3825
|
+
function P(k) {
|
|
3826
|
+
function _(M, j, A, D, R) {
|
|
3827
|
+
if (!(M[j] instanceof k)) {
|
|
3828
|
+
var U = k.name || d, V = ve(M[j]);
|
|
3829
|
+
return new v("Invalid " + D + " `" + R + "` of type " + ("`" + V + "` supplied to `" + A + "`, expected ") + ("instance of `" + U + "`."));
|
|
3822
3830
|
}
|
|
3823
3831
|
return null;
|
|
3824
3832
|
}
|
|
3825
|
-
return g(
|
|
3833
|
+
return g(_);
|
|
3826
3834
|
}
|
|
3827
|
-
function I(
|
|
3828
|
-
if (!Array.isArray(
|
|
3835
|
+
function I(k) {
|
|
3836
|
+
if (!Array.isArray(k))
|
|
3829
3837
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
3830
3838
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
3831
3839
|
) : i("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3832
|
-
function
|
|
3833
|
-
for (var U = M[j],
|
|
3834
|
-
if (m(U,
|
|
3840
|
+
function _(M, j, A, D, R) {
|
|
3841
|
+
for (var U = M[j], V = 0; V < k.length; V++)
|
|
3842
|
+
if (m(U, k[V]))
|
|
3835
3843
|
return null;
|
|
3836
|
-
var $ = JSON.stringify(
|
|
3837
|
-
var me = oe(
|
|
3838
|
-
return me === "symbol" ? String(
|
|
3844
|
+
var $ = JSON.stringify(k, function(se, T) {
|
|
3845
|
+
var me = oe(T);
|
|
3846
|
+
return me === "symbol" ? String(T) : T;
|
|
3839
3847
|
});
|
|
3840
3848
|
return new v("Invalid " + D + " `" + R + "` of value `" + String(U) + "` " + ("supplied to `" + A + "`, expected one of " + $ + "."));
|
|
3841
3849
|
}
|
|
3842
|
-
return g(
|
|
3850
|
+
return g(_);
|
|
3843
3851
|
}
|
|
3844
|
-
function k
|
|
3845
|
-
function
|
|
3846
|
-
if (typeof
|
|
3852
|
+
function S(k) {
|
|
3853
|
+
function _(M, j, A, D, R) {
|
|
3854
|
+
if (typeof k != "function")
|
|
3847
3855
|
return new v("Property `" + R + "` of component `" + A + "` has invalid PropType notation inside objectOf.");
|
|
3848
|
-
var U = M[j],
|
|
3849
|
-
if (
|
|
3850
|
-
return new v("Invalid " + D + " `" + R + "` of type " + ("`" +
|
|
3856
|
+
var U = M[j], V = Q(U);
|
|
3857
|
+
if (V !== "object")
|
|
3858
|
+
return new v("Invalid " + D + " `" + R + "` of type " + ("`" + V + "` supplied to `" + A + "`, expected an object."));
|
|
3851
3859
|
for (var $ in U)
|
|
3852
3860
|
if (r(U, $)) {
|
|
3853
|
-
var B =
|
|
3861
|
+
var B = k(U, $, A, D, R + "." + $, n);
|
|
3854
3862
|
if (B instanceof Error)
|
|
3855
3863
|
return B;
|
|
3856
3864
|
}
|
|
3857
3865
|
return null;
|
|
3858
3866
|
}
|
|
3859
|
-
return g(
|
|
3867
|
+
return g(_);
|
|
3860
3868
|
}
|
|
3861
|
-
function N(
|
|
3862
|
-
if (!Array.isArray(
|
|
3869
|
+
function N(k) {
|
|
3870
|
+
if (!Array.isArray(k))
|
|
3863
3871
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
3864
|
-
for (var
|
|
3865
|
-
var M =
|
|
3872
|
+
for (var _ = 0; _ < k.length; _++) {
|
|
3873
|
+
var M = k[_];
|
|
3866
3874
|
if (typeof M != "function")
|
|
3867
3875
|
return i(
|
|
3868
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
3876
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Pe(M) + " at index " + _ + "."
|
|
3869
3877
|
), s;
|
|
3870
3878
|
}
|
|
3871
|
-
function j(A, D, R, U,
|
|
3872
|
-
for (var $ = [], B = 0; B <
|
|
3873
|
-
var se =
|
|
3874
|
-
if (
|
|
3879
|
+
function j(A, D, R, U, V) {
|
|
3880
|
+
for (var $ = [], B = 0; B < k.length; B++) {
|
|
3881
|
+
var se = k[B], T = se(A, D, R, U, V, n);
|
|
3882
|
+
if (T == null)
|
|
3875
3883
|
return null;
|
|
3876
|
-
|
|
3884
|
+
T.data && r(T.data, "expectedType") && $.push(T.data.expectedType);
|
|
3877
3885
|
}
|
|
3878
3886
|
var me = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
3879
|
-
return new v("Invalid " + U + " `" +
|
|
3887
|
+
return new v("Invalid " + U + " `" + V + "` supplied to " + ("`" + R + "`" + me + "."));
|
|
3880
3888
|
}
|
|
3881
3889
|
return g(j);
|
|
3882
3890
|
}
|
|
3883
3891
|
function L() {
|
|
3884
|
-
function
|
|
3885
|
-
return le(
|
|
3892
|
+
function k(_, M, j, A, D) {
|
|
3893
|
+
return le(_[M]) ? null : new v("Invalid " + A + " `" + D + "` supplied to " + ("`" + j + "`, expected a ReactNode."));
|
|
3886
3894
|
}
|
|
3887
|
-
return g(
|
|
3895
|
+
return g(k);
|
|
3888
3896
|
}
|
|
3889
|
-
function H(
|
|
3897
|
+
function H(k, _, M, j, A) {
|
|
3890
3898
|
return new v(
|
|
3891
|
-
(
|
|
3899
|
+
(k || "React class") + ": " + _ + " type `" + M + "." + j + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + A + "`."
|
|
3892
3900
|
);
|
|
3893
3901
|
}
|
|
3894
|
-
function ae(
|
|
3895
|
-
function
|
|
3896
|
-
var U = M[j],
|
|
3897
|
-
if (
|
|
3898
|
-
return new v("Invalid " + D + " `" + R + "` of type `" +
|
|
3899
|
-
for (var $ in
|
|
3900
|
-
var B =
|
|
3902
|
+
function ae(k) {
|
|
3903
|
+
function _(M, j, A, D, R) {
|
|
3904
|
+
var U = M[j], V = Q(U);
|
|
3905
|
+
if (V !== "object")
|
|
3906
|
+
return new v("Invalid " + D + " `" + R + "` of type `" + V + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3907
|
+
for (var $ in k) {
|
|
3908
|
+
var B = k[$];
|
|
3901
3909
|
if (typeof B != "function")
|
|
3902
3910
|
return H(A, D, R, $, oe(B));
|
|
3903
3911
|
var se = B(U, $, A, D, R + "." + $, n);
|
|
@@ -3906,48 +3914,48 @@ function oc() {
|
|
|
3906
3914
|
}
|
|
3907
3915
|
return null;
|
|
3908
3916
|
}
|
|
3909
|
-
return g(
|
|
3910
|
-
}
|
|
3911
|
-
function re(
|
|
3912
|
-
function
|
|
3913
|
-
var U = M[j],
|
|
3914
|
-
if (
|
|
3915
|
-
return new v("Invalid " + D + " `" + R + "` of type `" +
|
|
3916
|
-
var $ = e({}, M[j],
|
|
3917
|
+
return g(_);
|
|
3918
|
+
}
|
|
3919
|
+
function re(k) {
|
|
3920
|
+
function _(M, j, A, D, R) {
|
|
3921
|
+
var U = M[j], V = Q(U);
|
|
3922
|
+
if (V !== "object")
|
|
3923
|
+
return new v("Invalid " + D + " `" + R + "` of type `" + V + "` " + ("supplied to `" + A + "`, expected `object`."));
|
|
3924
|
+
var $ = e({}, M[j], k);
|
|
3917
3925
|
for (var B in $) {
|
|
3918
|
-
var se =
|
|
3919
|
-
if (r(
|
|
3926
|
+
var se = k[B];
|
|
3927
|
+
if (r(k, B) && typeof se != "function")
|
|
3920
3928
|
return H(A, D, R, B, oe(se));
|
|
3921
3929
|
if (!se)
|
|
3922
3930
|
return new v(
|
|
3923
3931
|
"Invalid " + D + " `" + R + "` key `" + B + "` supplied to `" + A + "`.\nBad object: " + JSON.stringify(M[j], null, " ") + `
|
|
3924
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
3932
|
+
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
3925
3933
|
);
|
|
3926
|
-
var
|
|
3927
|
-
if (
|
|
3928
|
-
return
|
|
3934
|
+
var T = se(U, B, A, D, R + "." + B, n);
|
|
3935
|
+
if (T)
|
|
3936
|
+
return T;
|
|
3929
3937
|
}
|
|
3930
3938
|
return null;
|
|
3931
3939
|
}
|
|
3932
|
-
return g(
|
|
3940
|
+
return g(_);
|
|
3933
3941
|
}
|
|
3934
|
-
function le(
|
|
3935
|
-
switch (typeof
|
|
3942
|
+
function le(k) {
|
|
3943
|
+
switch (typeof k) {
|
|
3936
3944
|
case "number":
|
|
3937
3945
|
case "string":
|
|
3938
3946
|
case "undefined":
|
|
3939
3947
|
return !0;
|
|
3940
3948
|
case "boolean":
|
|
3941
|
-
return !
|
|
3949
|
+
return !k;
|
|
3942
3950
|
case "object":
|
|
3943
|
-
if (Array.isArray(
|
|
3944
|
-
return
|
|
3945
|
-
if (
|
|
3951
|
+
if (Array.isArray(k))
|
|
3952
|
+
return k.every(le);
|
|
3953
|
+
if (k === null || c(k))
|
|
3946
3954
|
return !0;
|
|
3947
|
-
var
|
|
3948
|
-
if (
|
|
3949
|
-
var M =
|
|
3950
|
-
if (
|
|
3955
|
+
var _ = p(k);
|
|
3956
|
+
if (_) {
|
|
3957
|
+
var M = _.call(k), j;
|
|
3958
|
+
if (_ !== k.entries) {
|
|
3951
3959
|
for (; !(j = M.next()).done; )
|
|
3952
3960
|
if (!le(j.value))
|
|
3953
3961
|
return !1;
|
|
@@ -3964,47 +3972,47 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
|
|
|
3964
3972
|
return !1;
|
|
3965
3973
|
}
|
|
3966
3974
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return
|
|
3975
|
+
function ke(k, _) {
|
|
3976
|
+
return k === "symbol" ? !0 : _ ? _["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && _ instanceof Symbol : !1;
|
|
3969
3977
|
}
|
|
3970
|
-
function Q(
|
|
3971
|
-
var
|
|
3972
|
-
return Array.isArray(
|
|
3978
|
+
function Q(k) {
|
|
3979
|
+
var _ = typeof k;
|
|
3980
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : ke(_, k) ? "symbol" : _;
|
|
3973
3981
|
}
|
|
3974
|
-
function oe(
|
|
3975
|
-
if (typeof
|
|
3976
|
-
return "" +
|
|
3977
|
-
var
|
|
3978
|
-
if (
|
|
3979
|
-
if (
|
|
3982
|
+
function oe(k) {
|
|
3983
|
+
if (typeof k > "u" || k === null)
|
|
3984
|
+
return "" + k;
|
|
3985
|
+
var _ = Q(k);
|
|
3986
|
+
if (_ === "object") {
|
|
3987
|
+
if (k instanceof Date)
|
|
3980
3988
|
return "date";
|
|
3981
|
-
if (
|
|
3989
|
+
if (k instanceof RegExp)
|
|
3982
3990
|
return "regexp";
|
|
3983
3991
|
}
|
|
3984
|
-
return
|
|
3992
|
+
return _;
|
|
3985
3993
|
}
|
|
3986
|
-
function
|
|
3987
|
-
var
|
|
3988
|
-
switch (
|
|
3994
|
+
function Pe(k) {
|
|
3995
|
+
var _ = oe(k);
|
|
3996
|
+
switch (_) {
|
|
3989
3997
|
case "array":
|
|
3990
3998
|
case "object":
|
|
3991
|
-
return "an " +
|
|
3999
|
+
return "an " + _;
|
|
3992
4000
|
case "boolean":
|
|
3993
4001
|
case "date":
|
|
3994
4002
|
case "regexp":
|
|
3995
|
-
return "a " +
|
|
4003
|
+
return "a " + _;
|
|
3996
4004
|
default:
|
|
3997
|
-
return
|
|
4005
|
+
return _;
|
|
3998
4006
|
}
|
|
3999
4007
|
}
|
|
4000
|
-
function ve(
|
|
4001
|
-
return !
|
|
4008
|
+
function ve(k) {
|
|
4009
|
+
return !k.constructor || !k.constructor.name ? d : k.constructor.name;
|
|
4002
4010
|
}
|
|
4003
4011
|
return h.checkPropTypes = o, h.resetWarningCache = o.resetWarningCache, h.PropTypes = h, h;
|
|
4004
4012
|
}, In;
|
|
4005
4013
|
}
|
|
4006
4014
|
var Nn, ao;
|
|
4007
|
-
function
|
|
4015
|
+
function cc() {
|
|
4008
4016
|
if (ao)
|
|
4009
4017
|
return Nn;
|
|
4010
4018
|
ao = 1;
|
|
@@ -4053,10 +4061,10 @@ function ic() {
|
|
|
4053
4061
|
}, Nn;
|
|
4054
4062
|
}
|
|
4055
4063
|
if (process.env.NODE_ENV !== "production") {
|
|
4056
|
-
var
|
|
4057
|
-
Xr.exports =
|
|
4064
|
+
var lc = si(), uc = !0;
|
|
4065
|
+
Xr.exports = sc()(lc.isElement, uc);
|
|
4058
4066
|
} else
|
|
4059
|
-
Xr.exports =
|
|
4067
|
+
Xr.exports = cc()();
|
|
4060
4068
|
function Kn(t) {
|
|
4061
4069
|
return Kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4062
4070
|
return typeof e;
|
|
@@ -4064,31 +4072,31 @@ function Kn(t) {
|
|
|
4064
4072
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4065
4073
|
}, Kn(t);
|
|
4066
4074
|
}
|
|
4067
|
-
var
|
|
4075
|
+
var dc;
|
|
4068
4076
|
function Bt() {
|
|
4069
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
4077
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : dc;
|
|
4070
4078
|
return e ? t.split(" ").map(function(n) {
|
|
4071
4079
|
return e[n] || n;
|
|
4072
4080
|
}).join(" ") : t;
|
|
4073
4081
|
}
|
|
4074
|
-
function
|
|
4082
|
+
function fc(t, e) {
|
|
4075
4083
|
var n = {};
|
|
4076
4084
|
return Object.keys(t).forEach(function(r) {
|
|
4077
4085
|
e.indexOf(r) === -1 && (n[r] = t[r]);
|
|
4078
4086
|
}), n;
|
|
4079
4087
|
}
|
|
4080
|
-
function
|
|
4088
|
+
function pc(t, e) {
|
|
4081
4089
|
for (var n = Array.isArray(e) ? e : [e], r = n.length, o, i = {}; r > 0; )
|
|
4082
4090
|
r -= 1, o = n[r], i[o] = t[o];
|
|
4083
4091
|
return i;
|
|
4084
4092
|
}
|
|
4085
|
-
var
|
|
4093
|
+
var hc = (typeof window > "u" ? "undefined" : Kn(window)) === "object" && window.Element || function() {
|
|
4086
4094
|
};
|
|
4087
|
-
function
|
|
4088
|
-
if (!(t[e] instanceof
|
|
4095
|
+
function mc(t, e, n) {
|
|
4096
|
+
if (!(t[e] instanceof hc))
|
|
4089
4097
|
return new Error("Invalid prop `" + e + "` supplied to `" + n + "`. Expected prop to be an instance of Element. Validation failed.");
|
|
4090
4098
|
}
|
|
4091
|
-
C.oneOfType([C.string, C.func,
|
|
4099
|
+
C.oneOfType([C.string, C.func, mc, C.shape({
|
|
4092
4100
|
current: C.any
|
|
4093
4101
|
})]);
|
|
4094
4102
|
var vn = C.oneOfType([C.func, C.string, C.shape({
|
|
@@ -4097,7 +4105,7 @@ var vn = C.oneOfType([C.func, C.string, C.shape({
|
|
|
4097
4105
|
}), C.arrayOf(C.oneOfType([C.func, C.string, C.shape({
|
|
4098
4106
|
$$typeof: C.symbol,
|
|
4099
4107
|
render: C.func
|
|
4100
|
-
})]))]),
|
|
4108
|
+
})]))]), vc = {
|
|
4101
4109
|
Fade: 150,
|
|
4102
4110
|
// $transition-fade
|
|
4103
4111
|
Collapse: 350,
|
|
@@ -4113,7 +4121,7 @@ var vn = C.oneOfType([C.func, C.string, C.shape({
|
|
|
4113
4121
|
ENTERED: "entered",
|
|
4114
4122
|
EXITING: "exiting",
|
|
4115
4123
|
EXITED: "exited"
|
|
4116
|
-
},
|
|
4124
|
+
}, gc = ["className", "cssModule", "variant", "innerRef"];
|
|
4117
4125
|
function qn() {
|
|
4118
4126
|
return qn = Object.assign ? Object.assign.bind() : function(t) {
|
|
4119
4127
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4134,24 +4142,24 @@ function co(t, e) {
|
|
|
4134
4142
|
}
|
|
4135
4143
|
return n;
|
|
4136
4144
|
}
|
|
4137
|
-
function
|
|
4145
|
+
function yc(t) {
|
|
4138
4146
|
for (var e = 1; e < arguments.length; e++) {
|
|
4139
4147
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
4140
4148
|
e % 2 ? co(Object(n), !0).forEach(function(r) {
|
|
4141
|
-
|
|
4149
|
+
bc(t, r, n[r]);
|
|
4142
4150
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : co(Object(n)).forEach(function(r) {
|
|
4143
4151
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4144
4152
|
});
|
|
4145
4153
|
}
|
|
4146
4154
|
return t;
|
|
4147
4155
|
}
|
|
4148
|
-
function
|
|
4156
|
+
function bc(t, e, n) {
|
|
4149
4157
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
4150
4158
|
}
|
|
4151
|
-
function
|
|
4159
|
+
function wc(t, e) {
|
|
4152
4160
|
if (t == null)
|
|
4153
4161
|
return {};
|
|
4154
|
-
var n =
|
|
4162
|
+
var n = Cc(t, e), r, o;
|
|
4155
4163
|
if (Object.getOwnPropertySymbols) {
|
|
4156
4164
|
var i = Object.getOwnPropertySymbols(t);
|
|
4157
4165
|
for (o = 0; o < i.length; o++)
|
|
@@ -4159,7 +4167,7 @@ function gc(t, e) {
|
|
|
4159
4167
|
}
|
|
4160
4168
|
return n;
|
|
4161
4169
|
}
|
|
4162
|
-
function
|
|
4170
|
+
function Cc(t, e) {
|
|
4163
4171
|
if (t == null)
|
|
4164
4172
|
return {};
|
|
4165
4173
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4167,7 +4175,7 @@ function yc(t, e) {
|
|
|
4167
4175
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4168
4176
|
return n;
|
|
4169
4177
|
}
|
|
4170
|
-
var
|
|
4178
|
+
var Oc = {
|
|
4171
4179
|
/** Disable the button if needed */
|
|
4172
4180
|
active: C.bool,
|
|
4173
4181
|
/** Aria label */
|
|
@@ -4183,17 +4191,17 @@ var bc = {
|
|
|
4183
4191
|
function li(t) {
|
|
4184
4192
|
var e = t.className;
|
|
4185
4193
|
t.cssModule;
|
|
4186
|
-
var n = t.variant, r = t.innerRef, o =
|
|
4194
|
+
var n = t.variant, r = t.innerRef, o = wc(t, gc), i = Bt(G(e, "btn-close", n && "btn-close-".concat(n)));
|
|
4187
4195
|
return /* @__PURE__ */ be.createElement("button", qn({
|
|
4188
4196
|
ref: r,
|
|
4189
4197
|
type: "button",
|
|
4190
4198
|
className: i
|
|
4191
|
-
},
|
|
4199
|
+
}, yc({
|
|
4192
4200
|
"aria-label": "close"
|
|
4193
4201
|
}, o)));
|
|
4194
4202
|
}
|
|
4195
|
-
li.propTypes =
|
|
4196
|
-
var
|
|
4203
|
+
li.propTypes = Oc;
|
|
4204
|
+
var Ec = ["active", "aria-label", "block", "className", "close", "cssModule", "color", "outline", "size", "tag", "innerRef"];
|
|
4197
4205
|
function Yn() {
|
|
4198
4206
|
return Yn = Object.assign ? Object.assign.bind() : function(t) {
|
|
4199
4207
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4204,10 +4212,10 @@ function Yn() {
|
|
|
4204
4212
|
return t;
|
|
4205
4213
|
}, Yn.apply(this, arguments);
|
|
4206
4214
|
}
|
|
4207
|
-
function
|
|
4215
|
+
function xc(t, e) {
|
|
4208
4216
|
if (t == null)
|
|
4209
4217
|
return {};
|
|
4210
|
-
var n =
|
|
4218
|
+
var n = kc(t, e), r, o;
|
|
4211
4219
|
if (Object.getOwnPropertySymbols) {
|
|
4212
4220
|
var i = Object.getOwnPropertySymbols(t);
|
|
4213
4221
|
for (o = 0; o < i.length; o++)
|
|
@@ -4215,7 +4223,7 @@ function Cc(t, e) {
|
|
|
4215
4223
|
}
|
|
4216
4224
|
return n;
|
|
4217
4225
|
}
|
|
4218
|
-
function
|
|
4226
|
+
function kc(t, e) {
|
|
4219
4227
|
if (t == null)
|
|
4220
4228
|
return {};
|
|
4221
4229
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4223,7 +4231,7 @@ function Oc(t, e) {
|
|
|
4223
4231
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4224
4232
|
return n;
|
|
4225
4233
|
}
|
|
4226
|
-
var
|
|
4234
|
+
var Sc = {
|
|
4227
4235
|
/** Manually set the visual state of the button to active */
|
|
4228
4236
|
active: C.bool,
|
|
4229
4237
|
/** Aria label */
|
|
@@ -4259,7 +4267,7 @@ function gn(t) {
|
|
|
4259
4267
|
}
|
|
4260
4268
|
if (t.onClick)
|
|
4261
4269
|
return t.onClick(x);
|
|
4262
|
-
}, [t.onClick, t.disabled]), n = t.active, r = t["aria-label"], o = t.block, i = t.className, s = t.close, c = t.cssModule, l = t.color, u = l === void 0 ? "secondary" : l, f = t.outline, p = t.size, d = t.tag, h = d === void 0 ? "button" : d, m = t.innerRef, v =
|
|
4270
|
+
}, [t.onClick, t.disabled]), n = t.active, r = t["aria-label"], o = t.block, i = t.className, s = t.close, c = t.cssModule, l = t.color, u = l === void 0 ? "secondary" : l, f = t.outline, p = t.size, d = t.tag, h = d === void 0 ? "button" : d, m = t.innerRef, v = xc(t, Ec);
|
|
4263
4271
|
if (s)
|
|
4264
4272
|
return /* @__PURE__ */ be.createElement(li, v);
|
|
4265
4273
|
var g = "btn".concat(f ? "-outline" : "", "-").concat(u), b = Bt(G(i, "btn", g, p ? "btn-".concat(p) : !1, o ? "d-block w-100" : !1, {
|
|
@@ -4275,8 +4283,8 @@ function gn(t) {
|
|
|
4275
4283
|
"aria-label": r
|
|
4276
4284
|
}));
|
|
4277
4285
|
}
|
|
4278
|
-
gn.propTypes =
|
|
4279
|
-
function
|
|
4286
|
+
gn.propTypes = Sc;
|
|
4287
|
+
function Pc(t, e) {
|
|
4280
4288
|
if (t == null)
|
|
4281
4289
|
return {};
|
|
4282
4290
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4289,13 +4297,13 @@ function Xn(t, e) {
|
|
|
4289
4297
|
return r.__proto__ = o, r;
|
|
4290
4298
|
}, Xn(t, e);
|
|
4291
4299
|
}
|
|
4292
|
-
function
|
|
4300
|
+
function Tc(t, e) {
|
|
4293
4301
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Xn(t, e);
|
|
4294
4302
|
}
|
|
4295
4303
|
const lo = {
|
|
4296
4304
|
disabled: !1
|
|
4297
4305
|
};
|
|
4298
|
-
var
|
|
4306
|
+
var _c = process.env.NODE_ENV !== "production" ? C.oneOfType([C.number, C.shape({
|
|
4299
4307
|
enter: C.number,
|
|
4300
4308
|
exit: C.number,
|
|
4301
4309
|
appear: C.number
|
|
@@ -4313,10 +4321,10 @@ process.env.NODE_ENV !== "production" && C.oneOfType([C.string, C.shape({
|
|
|
4313
4321
|
exitActive: C.string
|
|
4314
4322
|
})]);
|
|
4315
4323
|
const ui = be.createContext(null);
|
|
4316
|
-
var
|
|
4324
|
+
var Ic = function(e) {
|
|
4317
4325
|
return e.scrollTop;
|
|
4318
4326
|
}, Lt = "unmounted", nt = "exited", rt = "entering", gt = "entered", Jn = "exiting", Ge = /* @__PURE__ */ function(t) {
|
|
4319
|
-
|
|
4327
|
+
Tc(e, t);
|
|
4320
4328
|
function e(r, o) {
|
|
4321
4329
|
var i;
|
|
4322
4330
|
i = t.call(this, r, o) || this;
|
|
@@ -4355,7 +4363,7 @@ var _c = function(e) {
|
|
|
4355
4363
|
if (this.cancelNextCallback(), i === rt) {
|
|
4356
4364
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
4357
4365
|
var s = this.props.nodeRef ? this.props.nodeRef.current : Gt.findDOMNode(this);
|
|
4358
|
-
s &&
|
|
4366
|
+
s && Ic(s);
|
|
4359
4367
|
}
|
|
4360
4368
|
this.performEnter(o);
|
|
4361
4369
|
} else
|
|
@@ -4435,7 +4443,7 @@ var _c = function(e) {
|
|
|
4435
4443
|
return null;
|
|
4436
4444
|
var i = this.props, s = i.children;
|
|
4437
4445
|
i.in, i.mountOnEnter, i.unmountOnExit, i.appear, i.enter, i.exit, i.timeout, i.addEndListener, i.onEnter, i.onEntering, i.onEntered, i.onExit, i.onExiting, i.onExited, i.nodeRef;
|
|
4438
|
-
var c =
|
|
4446
|
+
var c = Pc(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
4439
4447
|
return (
|
|
4440
4448
|
// allows for nested Transitions
|
|
4441
4449
|
/* @__PURE__ */ be.createElement(ui.Provider, {
|
|
@@ -4541,7 +4549,7 @@ Ge.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4541
4549
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
4542
4550
|
*/
|
|
4543
4551
|
timeout: function(e) {
|
|
4544
|
-
var n =
|
|
4552
|
+
var n = _c;
|
|
4545
4553
|
e.addEndListener || (n = n.isRequired);
|
|
4546
4554
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
4547
4555
|
o[i - 1] = arguments[i];
|
|
@@ -4643,7 +4651,7 @@ function Qn(t) {
|
|
|
4643
4651
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4644
4652
|
}, Qn(t);
|
|
4645
4653
|
}
|
|
4646
|
-
var
|
|
4654
|
+
var Nc = ["tag", "horizontal", "isOpen", "className", "navbar", "cssModule", "children", "innerRef"], ht;
|
|
4647
4655
|
function sn() {
|
|
4648
4656
|
return sn = Object.assign ? Object.assign.bind() : function(t) {
|
|
4649
4657
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4654,10 +4662,10 @@ function sn() {
|
|
|
4654
4662
|
return t;
|
|
4655
4663
|
}, sn.apply(this, arguments);
|
|
4656
4664
|
}
|
|
4657
|
-
function
|
|
4665
|
+
function Ac(t, e) {
|
|
4658
4666
|
if (t == null)
|
|
4659
4667
|
return {};
|
|
4660
|
-
var n =
|
|
4668
|
+
var n = Rc(t, e), r, o;
|
|
4661
4669
|
if (Object.getOwnPropertySymbols) {
|
|
4662
4670
|
var i = Object.getOwnPropertySymbols(t);
|
|
4663
4671
|
for (o = 0; o < i.length; o++)
|
|
@@ -4665,7 +4673,7 @@ function Tc(t, e) {
|
|
|
4665
4673
|
}
|
|
4666
4674
|
return n;
|
|
4667
4675
|
}
|
|
4668
|
-
function
|
|
4676
|
+
function Rc(t, e) {
|
|
4669
4677
|
if (t == null)
|
|
4670
4678
|
return {};
|
|
4671
4679
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4673,7 +4681,7 @@ function Ic(t, e) {
|
|
|
4673
4681
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4674
4682
|
return n;
|
|
4675
4683
|
}
|
|
4676
|
-
function
|
|
4684
|
+
function Lc(t, e) {
|
|
4677
4685
|
if (!(t instanceof e))
|
|
4678
4686
|
throw new TypeError("Cannot call a class as a function");
|
|
4679
4687
|
}
|
|
@@ -4683,10 +4691,10 @@ function uo(t, e) {
|
|
|
4683
4691
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
4684
4692
|
}
|
|
4685
4693
|
}
|
|
4686
|
-
function
|
|
4694
|
+
function Mc(t, e, n) {
|
|
4687
4695
|
return e && uo(t.prototype, e), n && uo(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4688
4696
|
}
|
|
4689
|
-
function
|
|
4697
|
+
function Dc(t, e) {
|
|
4690
4698
|
if (typeof e != "function" && e !== null)
|
|
4691
4699
|
throw new TypeError("Super expression must either be null or a function");
|
|
4692
4700
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && er(t, e);
|
|
@@ -4696,8 +4704,8 @@ function er(t, e) {
|
|
|
4696
4704
|
return r.__proto__ = o, r;
|
|
4697
4705
|
}, er(t, e);
|
|
4698
4706
|
}
|
|
4699
|
-
function
|
|
4700
|
-
var e =
|
|
4707
|
+
function jc(t) {
|
|
4708
|
+
var e = Fc();
|
|
4701
4709
|
return function() {
|
|
4702
4710
|
var r = cn(t), o;
|
|
4703
4711
|
if (e) {
|
|
@@ -4705,10 +4713,10 @@ function Lc(t) {
|
|
|
4705
4713
|
o = Reflect.construct(r, arguments, i);
|
|
4706
4714
|
} else
|
|
4707
4715
|
o = r.apply(this, arguments);
|
|
4708
|
-
return
|
|
4716
|
+
return Uc(this, o);
|
|
4709
4717
|
};
|
|
4710
4718
|
}
|
|
4711
|
-
function
|
|
4719
|
+
function Uc(t, e) {
|
|
4712
4720
|
if (e && (Qn(e) === "object" || typeof e == "function"))
|
|
4713
4721
|
return e;
|
|
4714
4722
|
if (e !== void 0)
|
|
@@ -4720,7 +4728,7 @@ function di(t) {
|
|
|
4720
4728
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4721
4729
|
return t;
|
|
4722
4730
|
}
|
|
4723
|
-
function
|
|
4731
|
+
function Fc() {
|
|
4724
4732
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
4725
4733
|
return !1;
|
|
4726
4734
|
if (typeof Proxy == "function")
|
|
@@ -4747,7 +4755,7 @@ function fo(t, e) {
|
|
|
4747
4755
|
}
|
|
4748
4756
|
return n;
|
|
4749
4757
|
}
|
|
4750
|
-
function
|
|
4758
|
+
function St(t) {
|
|
4751
4759
|
for (var e = 1; e < arguments.length; e++) {
|
|
4752
4760
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
4753
4761
|
e % 2 ? fo(Object(n), !0).forEach(function(r) {
|
|
@@ -4761,7 +4769,7 @@ function kt(t) {
|
|
|
4761
4769
|
function bt(t, e, n) {
|
|
4762
4770
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
4763
4771
|
}
|
|
4764
|
-
var
|
|
4772
|
+
var Wc = St(St({}, Or.propTypes), {}, {
|
|
4765
4773
|
/** Make content animation appear horizontally */
|
|
4766
4774
|
horizontal: C.bool,
|
|
4767
4775
|
/** Set if Collapse is open or closed */
|
|
@@ -4777,30 +4785,30 @@ var jc = kt(kt({}, Or.propTypes), {}, {
|
|
|
4777
4785
|
innerRef: C.shape({
|
|
4778
4786
|
current: C.object
|
|
4779
4787
|
})
|
|
4780
|
-
}),
|
|
4788
|
+
}), Hc = St(St({}, Or.defaultProps), {}, {
|
|
4781
4789
|
horizontal: !1,
|
|
4782
4790
|
isOpen: !1,
|
|
4783
4791
|
appear: !1,
|
|
4784
4792
|
enter: !0,
|
|
4785
4793
|
exit: !0,
|
|
4786
4794
|
tag: "div",
|
|
4787
|
-
timeout:
|
|
4788
|
-
}),
|
|
4789
|
-
function
|
|
4790
|
-
return
|
|
4795
|
+
timeout: vc.Collapse
|
|
4796
|
+
}), Vc = (ht = {}, bt(ht, Yt.ENTERING, "collapsing"), bt(ht, Yt.ENTERED, "collapse show"), bt(ht, Yt.EXITING, "collapsing"), bt(ht, Yt.EXITED, "collapse"), ht);
|
|
4797
|
+
function zc(t) {
|
|
4798
|
+
return Vc[t] || "collapse";
|
|
4791
4799
|
}
|
|
4792
4800
|
var Er = /* @__PURE__ */ function(t) {
|
|
4793
|
-
|
|
4794
|
-
var e =
|
|
4801
|
+
Dc(n, t);
|
|
4802
|
+
var e = jc(n);
|
|
4795
4803
|
function n(r) {
|
|
4796
4804
|
var o;
|
|
4797
|
-
return
|
|
4805
|
+
return Lc(this, n), o = e.call(this, r), o.state = {
|
|
4798
4806
|
dimension: null
|
|
4799
4807
|
}, o.nodeRef = r.innerRef || /* @__PURE__ */ be.createRef(), ["onEntering", "onEntered", "onExit", "onExiting", "onExited"].forEach(function(i) {
|
|
4800
4808
|
o[i] = o[i].bind(di(o));
|
|
4801
4809
|
}), o;
|
|
4802
4810
|
}
|
|
4803
|
-
return
|
|
4811
|
+
return Mc(n, [{
|
|
4804
4812
|
key: "onEntering",
|
|
4805
4813
|
value: function(o, i) {
|
|
4806
4814
|
var s = this.getNode();
|
|
@@ -4855,7 +4863,7 @@ var Er = /* @__PURE__ */ function(t) {
|
|
|
4855
4863
|
value: function() {
|
|
4856
4864
|
var o = this, i = this.props, s = i.tag, c = i.horizontal, l = i.isOpen, u = i.className, f = i.navbar, p = i.cssModule, d = i.children;
|
|
4857
4865
|
i.innerRef;
|
|
4858
|
-
var h =
|
|
4866
|
+
var h = Ac(i, Nc), m = this.state.dimension, v = pc(h, so), g = fc(h, so);
|
|
4859
4867
|
return /* @__PURE__ */ be.createElement(Or, sn({}, v, {
|
|
4860
4868
|
in: l,
|
|
4861
4869
|
nodeRef: this.nodeRef,
|
|
@@ -4865,18 +4873,18 @@ var Er = /* @__PURE__ */ function(t) {
|
|
|
4865
4873
|
onExiting: this.onExiting,
|
|
4866
4874
|
onExited: this.onExited
|
|
4867
4875
|
}), function(b) {
|
|
4868
|
-
var x =
|
|
4876
|
+
var x = zc(b), E = Bt(G(u, c && "collapse-horizontal", x, f && "navbar-collapse"), p), O = m === null ? null : bt({}, c ? "width" : "height", m);
|
|
4869
4877
|
return /* @__PURE__ */ be.createElement(s, sn({}, g, {
|
|
4870
|
-
style:
|
|
4878
|
+
style: St(St({}, g.style), O),
|
|
4871
4879
|
className: E,
|
|
4872
4880
|
ref: o.nodeRef
|
|
4873
4881
|
}), d);
|
|
4874
4882
|
});
|
|
4875
4883
|
}
|
|
4876
4884
|
}]), n;
|
|
4877
|
-
}(
|
|
4878
|
-
Er.propTypes =
|
|
4879
|
-
Er.defaultProps =
|
|
4885
|
+
}(_o);
|
|
4886
|
+
Er.propTypes = Wc;
|
|
4887
|
+
Er.defaultProps = Hc;
|
|
4880
4888
|
const fi = Er;
|
|
4881
4889
|
function tr(t) {
|
|
4882
4890
|
return tr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
@@ -4885,7 +4893,7 @@ function tr(t) {
|
|
|
4885
4893
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4886
4894
|
}, tr(t);
|
|
4887
4895
|
}
|
|
4888
|
-
var
|
|
4896
|
+
var Zc = ["className", "cssModule", "tag", "innerRef"];
|
|
4889
4897
|
function nr() {
|
|
4890
4898
|
return nr = Object.assign ? Object.assign.bind() : function(t) {
|
|
4891
4899
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4896,10 +4904,10 @@ function nr() {
|
|
|
4896
4904
|
return t;
|
|
4897
4905
|
}, nr.apply(this, arguments);
|
|
4898
4906
|
}
|
|
4899
|
-
function
|
|
4907
|
+
function Bc(t, e) {
|
|
4900
4908
|
if (t == null)
|
|
4901
4909
|
return {};
|
|
4902
|
-
var n =
|
|
4910
|
+
var n = $c(t, e), r, o;
|
|
4903
4911
|
if (Object.getOwnPropertySymbols) {
|
|
4904
4912
|
var i = Object.getOwnPropertySymbols(t);
|
|
4905
4913
|
for (o = 0; o < i.length; o++)
|
|
@@ -4907,7 +4915,7 @@ function zc(t, e) {
|
|
|
4907
4915
|
}
|
|
4908
4916
|
return n;
|
|
4909
4917
|
}
|
|
4910
|
-
function
|
|
4918
|
+
function $c(t, e) {
|
|
4911
4919
|
if (t == null)
|
|
4912
4920
|
return {};
|
|
4913
4921
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4915,7 +4923,7 @@ function Vc(t, e) {
|
|
|
4915
4923
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4916
4924
|
return n;
|
|
4917
4925
|
}
|
|
4918
|
-
function
|
|
4926
|
+
function Gc(t, e) {
|
|
4919
4927
|
if (!(t instanceof e))
|
|
4920
4928
|
throw new TypeError("Cannot call a class as a function");
|
|
4921
4929
|
}
|
|
@@ -4925,10 +4933,10 @@ function po(t, e) {
|
|
|
4925
4933
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
4926
4934
|
}
|
|
4927
4935
|
}
|
|
4928
|
-
function
|
|
4936
|
+
function Kc(t, e, n) {
|
|
4929
4937
|
return e && po(t.prototype, e), n && po(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4930
4938
|
}
|
|
4931
|
-
function
|
|
4939
|
+
function qc(t, e) {
|
|
4932
4940
|
if (typeof e != "function" && e !== null)
|
|
4933
4941
|
throw new TypeError("Super expression must either be null or a function");
|
|
4934
4942
|
t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && rr(t, e);
|
|
@@ -4938,8 +4946,8 @@ function rr(t, e) {
|
|
|
4938
4946
|
return r.__proto__ = o, r;
|
|
4939
4947
|
}, rr(t, e);
|
|
4940
4948
|
}
|
|
4941
|
-
function
|
|
4942
|
-
var e =
|
|
4949
|
+
function Yc(t) {
|
|
4950
|
+
var e = Jc();
|
|
4943
4951
|
return function() {
|
|
4944
4952
|
var r = ln(t), o;
|
|
4945
4953
|
if (e) {
|
|
@@ -4947,10 +4955,10 @@ function Gc(t) {
|
|
|
4947
4955
|
o = Reflect.construct(r, arguments, i);
|
|
4948
4956
|
} else
|
|
4949
4957
|
o = r.apply(this, arguments);
|
|
4950
|
-
return
|
|
4958
|
+
return Xc(this, o);
|
|
4951
4959
|
};
|
|
4952
4960
|
}
|
|
4953
|
-
function
|
|
4961
|
+
function Xc(t, e) {
|
|
4954
4962
|
if (e && (tr(e) === "object" || typeof e == "function"))
|
|
4955
4963
|
return e;
|
|
4956
4964
|
if (e !== void 0)
|
|
@@ -4962,7 +4970,7 @@ function or(t) {
|
|
|
4962
4970
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4963
4971
|
return t;
|
|
4964
4972
|
}
|
|
4965
|
-
function
|
|
4973
|
+
function Jc() {
|
|
4966
4974
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
4967
4975
|
return !1;
|
|
4968
4976
|
if (typeof Proxy == "function")
|
|
@@ -4979,20 +4987,20 @@ function ln(t) {
|
|
|
4979
4987
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
4980
4988
|
}, ln(t);
|
|
4981
4989
|
}
|
|
4982
|
-
var
|
|
4990
|
+
var Qc = {
|
|
4983
4991
|
children: C.node,
|
|
4984
4992
|
tag: vn,
|
|
4985
4993
|
innerRef: C.oneOfType([C.object, C.func, C.string]),
|
|
4986
4994
|
className: C.string,
|
|
4987
4995
|
cssModule: C.object
|
|
4988
4996
|
}, pi = /* @__PURE__ */ function(t) {
|
|
4989
|
-
|
|
4990
|
-
var e =
|
|
4997
|
+
qc(n, t);
|
|
4998
|
+
var e = Yc(n);
|
|
4991
4999
|
function n(r) {
|
|
4992
5000
|
var o;
|
|
4993
|
-
return
|
|
5001
|
+
return Gc(this, n), o = e.call(this, r), o.getRef = o.getRef.bind(or(o)), o.submit = o.submit.bind(or(o)), o;
|
|
4994
5002
|
}
|
|
4995
|
-
return
|
|
5003
|
+
return Kc(n, [{
|
|
4996
5004
|
key: "getRef",
|
|
4997
5005
|
value: function(o) {
|
|
4998
5006
|
this.props.innerRef && this.props.innerRef(o), this.ref = o;
|
|
@@ -5005,17 +5013,17 @@ var Yc = {
|
|
|
5005
5013
|
}, {
|
|
5006
5014
|
key: "render",
|
|
5007
5015
|
value: function() {
|
|
5008
|
-
var o = this.props, i = o.className, s = o.cssModule, c = o.tag, l = c === void 0 ? "form" : c, u = o.innerRef, f =
|
|
5016
|
+
var o = this.props, i = o.className, s = o.cssModule, c = o.tag, l = c === void 0 ? "form" : c, u = o.innerRef, f = Bc(o, Zc), p = Bt(i, s);
|
|
5009
5017
|
return /* @__PURE__ */ be.createElement(l, nr({}, f, {
|
|
5010
5018
|
ref: u,
|
|
5011
5019
|
className: p
|
|
5012
5020
|
}));
|
|
5013
5021
|
}
|
|
5014
5022
|
}]), n;
|
|
5015
|
-
}(
|
|
5016
|
-
pi.propTypes =
|
|
5023
|
+
}(_o);
|
|
5024
|
+
pi.propTypes = Qc;
|
|
5017
5025
|
const hi = pi;
|
|
5018
|
-
var
|
|
5026
|
+
var el = ["className", "cssModule", "row", "disabled", "check", "inline", "floating", "noMargin", "tag", "switch"];
|
|
5019
5027
|
function ir() {
|
|
5020
5028
|
return ir = Object.assign ? Object.assign.bind() : function(t) {
|
|
5021
5029
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -5026,10 +5034,10 @@ function ir() {
|
|
|
5026
5034
|
return t;
|
|
5027
5035
|
}, ir.apply(this, arguments);
|
|
5028
5036
|
}
|
|
5029
|
-
function
|
|
5037
|
+
function tl(t, e) {
|
|
5030
5038
|
if (t == null)
|
|
5031
5039
|
return {};
|
|
5032
|
-
var n =
|
|
5040
|
+
var n = nl(t, e), r, o;
|
|
5033
5041
|
if (Object.getOwnPropertySymbols) {
|
|
5034
5042
|
var i = Object.getOwnPropertySymbols(t);
|
|
5035
5043
|
for (o = 0; o < i.length; o++)
|
|
@@ -5037,7 +5045,7 @@ function Jc(t, e) {
|
|
|
5037
5045
|
}
|
|
5038
5046
|
return n;
|
|
5039
5047
|
}
|
|
5040
|
-
function
|
|
5048
|
+
function nl(t, e) {
|
|
5041
5049
|
if (t == null)
|
|
5042
5050
|
return {};
|
|
5043
5051
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -5045,7 +5053,7 @@ function Qc(t, e) {
|
|
|
5045
5053
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
5046
5054
|
return n;
|
|
5047
5055
|
}
|
|
5048
|
-
var
|
|
5056
|
+
var rl = {
|
|
5049
5057
|
children: C.node,
|
|
5050
5058
|
row: C.bool,
|
|
5051
5059
|
check: C.bool,
|
|
@@ -5059,27 +5067,27 @@ var el = {
|
|
|
5059
5067
|
cssModule: C.object
|
|
5060
5068
|
};
|
|
5061
5069
|
function ar(t) {
|
|
5062
|
-
var e = t.className, n = t.cssModule, r = t.row, o = t.disabled, i = t.check, s = t.inline, c = t.floating, l = t.noMargin, u = t.tag, f = u === void 0 ? "div" : u, p = t.switch, d =
|
|
5070
|
+
var e = t.className, n = t.cssModule, r = t.row, o = t.disabled, i = t.check, s = t.inline, c = t.floating, l = t.noMargin, u = t.tag, f = u === void 0 ? "div" : u, p = t.switch, d = tl(t, el), h = i || p, m = Bt(G(e, r ? "row" : !1, h ? "form-check" : !1, p ? "form-switch" : !1, h || l ? !1 : "mb-3", h && s ? "form-check-inline" : !1, h && o ? "disabled" : !1, c && "form-floating"), n);
|
|
5063
5071
|
return f === "fieldset" && (d.disabled = o), /* @__PURE__ */ be.createElement(f, ir({}, d, {
|
|
5064
5072
|
className: m
|
|
5065
5073
|
}));
|
|
5066
5074
|
}
|
|
5067
|
-
ar.propTypes =
|
|
5075
|
+
ar.propTypes = rl;
|
|
5068
5076
|
const xr = (t) => {
|
|
5069
|
-
const { config: e, isFavoritismEnabled: n, level: r = 1, onItemClick: o } = t, { isCollapsible: i, showAllItems: s, displayCount: c =
|
|
5077
|
+
const { config: e, isFavoritismEnabled: n, level: r = 1, onItemClick: o } = t, { isCollapsible: i, showAllItems: s, displayCount: c = Qs } = e, l = Pt(), u = zo(), [f, p] = z(1), [d, h] = z(0), [m, v] = z(!1), g = Le({}), b = e.items.filter((S) => Mt(S)), x = e.items.filter((S) => !Mt(S)), E = s ? x : x.slice(0, f * c);
|
|
5070
5078
|
te(() => {
|
|
5071
5079
|
l.isOpen || p(1);
|
|
5072
5080
|
}, [l.isOpen]);
|
|
5073
5081
|
const O = () => {
|
|
5074
|
-
p((
|
|
5075
|
-
}, y = [...b, ...E],
|
|
5076
|
-
g.current[
|
|
5082
|
+
p((S) => S + 1);
|
|
5083
|
+
}, y = [...b, ...E], P = (S) => {
|
|
5084
|
+
g.current[S]?.querySelector("[tabIndex]")?.focus(), h(S);
|
|
5077
5085
|
}, I = () => {
|
|
5078
|
-
i && v((
|
|
5086
|
+
i && v((S) => !S);
|
|
5079
5087
|
};
|
|
5080
5088
|
return /* @__PURE__ */ w("li", { className: "section", children: [
|
|
5081
5089
|
/* @__PURE__ */ a(
|
|
5082
|
-
|
|
5090
|
+
qi,
|
|
5083
5091
|
{
|
|
5084
5092
|
iconSrc: e.iconSrc,
|
|
5085
5093
|
iconName: e.iconName,
|
|
@@ -5094,22 +5102,22 @@ const xr = (t) => {
|
|
|
5094
5102
|
}
|
|
5095
5103
|
),
|
|
5096
5104
|
/* @__PURE__ */ w(fi, { isOpen: i ? m : !0, tag: "ul", children: [
|
|
5097
|
-
y.map((
|
|
5105
|
+
y.map((S, N) => Mt(S) ? /* @__PURE__ */ a(
|
|
5098
5106
|
xr,
|
|
5099
5107
|
{
|
|
5100
|
-
config:
|
|
5108
|
+
config: S,
|
|
5101
5109
|
isFavoritismEnabled: n,
|
|
5102
5110
|
level: r + 1,
|
|
5103
5111
|
onItemClick: o
|
|
5104
5112
|
},
|
|
5105
|
-
|
|
5113
|
+
S.id
|
|
5106
5114
|
) : /* @__PURE__ */ a("li", { ref: (L) => g.current[N] = L, children: /* @__PURE__ */ a(
|
|
5107
|
-
|
|
5115
|
+
Js,
|
|
5108
5116
|
{
|
|
5109
5117
|
isFavoritismEnabled: n,
|
|
5110
|
-
item:
|
|
5118
|
+
item: S,
|
|
5111
5119
|
onClick: (L, H) => o?.(L, {
|
|
5112
|
-
item:
|
|
5120
|
+
item: S,
|
|
5113
5121
|
modifier: u,
|
|
5114
5122
|
selectedContextMenuActionName: H?.name
|
|
5115
5123
|
}),
|
|
@@ -5117,7 +5125,7 @@ const xr = (t) => {
|
|
|
5117
5125
|
onKeyDown: (L) => {
|
|
5118
5126
|
Do({
|
|
5119
5127
|
event: L,
|
|
5120
|
-
moveFocus:
|
|
5128
|
+
moveFocus: P,
|
|
5121
5129
|
currentIndex: d,
|
|
5122
5130
|
min: 0,
|
|
5123
5131
|
max: y.length - 1
|
|
@@ -5125,8 +5133,8 @@ const xr = (t) => {
|
|
|
5125
5133
|
},
|
|
5126
5134
|
focused: d === N
|
|
5127
5135
|
},
|
|
5128
|
-
|
|
5129
|
-
) },
|
|
5136
|
+
S.id || N
|
|
5137
|
+
) }, S.id || N)),
|
|
5130
5138
|
!s && e.items.length - b.length > c * f && /* @__PURE__ */ a("li", { "data-testid": "more-li-element", children: /* @__PURE__ */ a(
|
|
5131
5139
|
"div",
|
|
5132
5140
|
{
|
|
@@ -5143,23 +5151,23 @@ const xr = (t) => {
|
|
|
5143
5151
|
) })
|
|
5144
5152
|
] })
|
|
5145
5153
|
] });
|
|
5146
|
-
}, mi = (t) => `${t.type}-${t.id}`,
|
|
5154
|
+
}, mi = (t) => `${t.type}-${t.id}`, ol = (t, e) => vi(t)[e], vi = (t) => t.reduce((e, n) => Mt(n) ? { ...e, ...vi(n.items) } : { ...e, [mi(n)]: n }, {}), gi = Vt(void 0), il = () => {
|
|
5147
5155
|
const t = ne(gi);
|
|
5148
5156
|
if (t === void 0)
|
|
5149
5157
|
throw new Error("useSection must be used within a SectionProvider");
|
|
5150
5158
|
return t;
|
|
5151
|
-
},
|
|
5152
|
-
const [e, n] =
|
|
5159
|
+
}, al = ({ children: t }) => {
|
|
5160
|
+
const [e, n] = z(null);
|
|
5153
5161
|
return /* @__PURE__ */ a(gi.Provider, { value: [e, n], children: t });
|
|
5154
|
-
},
|
|
5155
|
-
const [n, r] =
|
|
5162
|
+
}, kr = ({ config: t, onItemClick: e }) => {
|
|
5163
|
+
const [n, r] = il(), o = Pt(), i = zo(), s = (c, l) => {
|
|
5156
5164
|
const { item: u, selectedContextMenuActionName: f } = l;
|
|
5157
5165
|
r({ itemName: mi(u), selectedContextMenuActionName: f });
|
|
5158
5166
|
};
|
|
5159
5167
|
return te(() => {
|
|
5160
5168
|
if (!e || !n)
|
|
5161
5169
|
return;
|
|
5162
|
-
const { itemName: c, selectedContextMenuActionName: l } = n, u =
|
|
5170
|
+
const { itemName: c, selectedContextMenuActionName: l } = n, u = ol(t.items, c);
|
|
5163
5171
|
u && (e({
|
|
5164
5172
|
item: u,
|
|
5165
5173
|
modifier: i,
|
|
@@ -5167,8 +5175,8 @@ const xr = (t) => {
|
|
|
5167
5175
|
}), r(null), i !== pn.SHIFT && o.close());
|
|
5168
5176
|
}, [n, t.items, o, e, i, r]), /* @__PURE__ */ a(xr, { config: t, onItemClick: s });
|
|
5169
5177
|
};
|
|
5170
|
-
function
|
|
5171
|
-
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, s =
|
|
5178
|
+
function sl(t) {
|
|
5179
|
+
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, s = Yi(), c = Xi(), l = Bo(), u = $o(), f = lt(() => $i(s, c, {
|
|
5172
5180
|
...{
|
|
5173
5181
|
displayCount: e,
|
|
5174
5182
|
showAllItems: o
|
|
@@ -5177,7 +5185,7 @@ function ol(t) {
|
|
|
5177
5185
|
isSectionCollapsible: r,
|
|
5178
5186
|
sortOrder: i
|
|
5179
5187
|
}), [s, c, e, n, r, o, i]);
|
|
5180
|
-
return /* @__PURE__ */ a(
|
|
5188
|
+
return /* @__PURE__ */ a(kr, { config: f, onItemClick: (d) => {
|
|
5181
5189
|
const { item: h, modifier: m, selectedContextMenuActionName: v } = d;
|
|
5182
5190
|
if (!v)
|
|
5183
5191
|
return l(h.id, m).catch((g) => {
|
|
@@ -5186,18 +5194,18 @@ function ol(t) {
|
|
|
5186
5194
|
u(h, v);
|
|
5187
5195
|
} });
|
|
5188
5196
|
}
|
|
5189
|
-
const
|
|
5197
|
+
const cl = {
|
|
5190
5198
|
value: "data:image/svg+xml,%3Csvg width='5041' height='1232' viewBox='0 0 5041 1232' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_879_362)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M548.6 178H439.6C368.7 178 310 199.5 269.3 244.5C228.6 289.3 206.7 356 206.7 444.3C206.7 532.6 228.6 599.5 269.3 644.2C310.2 689.2 368.7 710.7 439.6 710.7H548.6C619 710.7 677.6 689.2 718.6 644.2C759.5 599.4 781.6 532.6 781.6 444.2C781.6 355.8 759.5 289 718.6 244.2C677.7 199.3 619 177.7 548.6 177.7V178ZM449.5 293.8H538.9C582.2 293.8 611.9 305.2 631.1 328.3C650.5 351.8 660.5 389.2 660.5 444.4C660.5 499.6 650.5 536.7 631.1 560C612 583 582.2 594.1 538.9 594.1H449.5C405.6 594.1 375.9 583 356.9 560C337.6 536.8 327.7 499.7 327.7 444.5C327.7 389.3 337.4 351.9 356.8 328.4C375.9 305.2 405.6 293.8 449.5 293.8Z' fill='white'/%3E%3Cpath d='M0.700195 189.8C0.700195 183.1 6.10017 177.7 12.8002 177.7H108.6C115.3 177.7 120.7 183.1 120.7 189.8V698.6C120.7 705.3 115.3 710.7 108.6 710.7H12.8002C6.10017 710.7 0.700195 705.3 0.700195 698.6V189.8Z' fill='white'/%3E%3Cpath d='M0.700195 11.9002C0.700195 5.7002 5.70018 0.700195 11.9002 0.700195H109.6C115.7 0.700195 120.7 5.7002 120.7 11.9002V109.5C120.7 115.7 115.7 120.7 109.5 120.7H11.9002C5.70018 120.7 0.700195 115.7 0.700195 109.5V11.9002Z' fill='%23007BE5'/%3E%3Cpath d='M827.7 601.9C827.7 595.7 832.7 590.7 838.9 590.7H936.6C942.8 590.7 947.8 595.7 947.8 601.9V699.5C947.8 705.7 942.8 710.7 936.6 710.7H838.9C832.7 710.7 827.7 705.7 827.7 699.5V601.9Z' fill='%23007BE5'/%3E%3Cpath d='M4363.9 293.2C4320.2 293.2 4290.6 304.6 4271.6 327.8C4252.3 351.4 4242.5 388.8 4242.5 444C4242.5 499.2 4252.3 536.4 4271.5 559.7C4290.5 582.6 4320 593.8 4363.8 593.8H4614.7C4622.4 593.8 4628.7 600.1 4628.7 607.8V696.7C4628.7 704.4 4622.4 710.7 4614.7 710.7H4354.1C4283.3 710.7 4224.9 689.1 4184.1 644.1C4143.5 599.3 4121.6 532.4 4121.6 444C4121.6 355.6 4143.5 288.7 4184.1 243.9C4224.8 199 4283.3 177.3 4354.1 177.3H4614.7C4622.4 177.3 4628.7 183.6 4628.7 191.3V279.3C4628.7 287 4622.4 293.3 4614.7 293.3H4363.9V293.2Z' fill='white'/%3E%3Cpath d='M1302.6 165.3C1240.1 165.3 1197 180.9 1169.3 213.3C1141.3 246 1127.4 297.6 1127.4 372.9C1127.4 447.7 1141.1 499 1169 531.6C1196.6 563.9 1239.7 579.5 1302.7 579.5H1552.5C1560.2 579.5 1566.5 585.8 1566.5 593.5V697.1C1566.5 704.8 1560.2 711.1 1552.5 711.1H1302.7C1204.7 711.1 1127.5 683.4 1075 626.4C1022.4 569.7 995.7 484.8 995.7 372.9C995.7 260.5 1022.7 175.4 1075.2 118.4C1127.9 61.3001 1205 33.6001 1302.6 33.6001H1552.4C1560.1 33.6001 1566.4 39.9001 1566.4 47.6001V151.2C1566.4 158.9 1560.1 165.2 1552.4 165.2H1302.6V165.3Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M1953.6 177.7H1844.8C1774 177.7 1715.6 199.3 1674.8 244.3C1634.2 289.1 1612.3 356 1612.3 444.4C1612.3 532.8 1634.2 599.7 1674.8 644.5C1715.5 689.4 1774 711.1 1844.8 711.1H1953.6C2023.9 711.1 2082.4 689.5 2123.2 644.5C2163.9 599.7 2186 532.8 2186 444.3C2186 355.8 2163.9 289 2123.2 244.1C2082.3 199.3 2023.9 177.7 1953.6 177.7ZM1854.6 293.7H1943.8C1987 293.7 2016.6 305.1 2035.8 328.3C2055.2 351.9 2065.2 389.3 2065.2 444.5C2065.2 499.7 2055.2 536.8 2035.8 560.2C2016.7 583.2 1987.1 594.3 1943.8 594.3H1854.6C1810.8 594.3 1781.3 583.1 1762.3 560.2C1743 536.9 1733.3 499.8 1733.3 444.5C1733.3 389.3 1743.1 351.9 1762.4 328.3C1781.3 305 1810.9 293.7 1854.6 293.7Z' fill='white'/%3E%3Cpath d='M2679.7 411.6C2679.7 372.5 2668.5 343.5 2645.4 324C2622.1 304.3 2585.3 293.2 2531.9 293.2H2378.4C2375.5 293.2 2374.9 293.9 2374.8 294C2374.5 294.4 2373.6 295.8 2373.6 299.8V696.7C2373.6 704.4 2367.3 710.7 2359.6 710.7H2267.7C2260 710.7 2253.7 704.4 2253.7 696.7V265.6C2253.7 234.7 2258.8 212 2272.6 197.2C2286.5 182.2 2307.5 177.3 2334.2 177.3H2531.8C2620.7 177.3 2688 198.4 2733.3 238.9C2778.7 279.5 2800.5 338.6 2800.5 411.7V696.7C2800.5 704.4 2794.2 710.7 2786.5 710.7H2693.7C2686 710.7 2679.7 704.4 2679.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M3304.7 411.6C3304.7 372.5 3293.5 343.5 3270.4 324C3247.1 304.3 3210.3 293.2 3156.9 293.2H3003.4C3000.5 293.2 2999.9 293.9 2999.8 294C2999.5 294.4 2998.6 295.8 2998.6 299.8V696.7C2998.6 704.4 2992.3 710.7 2984.6 710.7H2892.7C2885 710.7 2878.7 704.4 2878.7 696.7V265.6C2878.7 234.7 2883.8 212 2897.6 197.2C2911.5 182.2 2932.5 177.3 2959.2 177.3H3156.8C3245.7 177.3 3313 198.4 3358.3 238.9C3403.7 279.5 3425.5 338.6 3425.5 411.7V696.7C3425.5 704.4 3419.2 710.7 3411.5 710.7H3318.7C3311 710.7 3304.7 704.4 3304.7 696.7V411.6Z' fill='white'/%3E%3Cpath d='M4906.1 292.2C4898.4 292.2 4892.1 298.5 4892.1 306.2V529.2C4892.1 557.5 4897.2 574.3 4906.4 584.1C4915.4 593.8 4930 598.6 4953.7 598.6H5019.2C5026.9 598.6 5033.2 604.9 5033.2 612.6V695.7C5033.2 703.4 5026.9 709.7 5019.2 709.7H4932.1C4877.9 709.7 4836.8 698.8 4809.7 668.6C4782.8 638.6 4771.3 591.5 4771.3 523.4V306.2C4771.3 298.5 4765 292.2 4757.3 292.2H4714.7C4707 292.2 4700.7 285.9 4700.7 278.2V190.2C4700.7 182.5 4707 176.2 4714.7 176.2H4757.3C4765 176.2 4771.3 169.9 4771.3 162.2V67.7002C4771.3 60.0002 4777.6 53.7002 4785.3 53.7002H4878.2C4885.9 53.7002 4892.2 60.0002 4892.2 67.7002V162.2C4892.2 169.9 4898.5 176.2 4906.2 176.2H5021.3C5029 176.2 5035.3 182.5 5035.3 190.2V278.2C5035.3 285.9 5029 292.2 5021.3 292.2H4906.1Z' fill='white'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M4024.4 607.2C4024.4 599.5 4018.1 593.2 4010.4 593.2H3699.9C3672.9 593.2 3655.3 586 3644.6 575.2C3633.8 564.4 3628.6 548.8 3628.6 529.7V514.5C3628.6 506.8 3634.9 500.5 3642.6 500.5H3866.6C3931.2 500.5 3977.4 486.9 4007.5 459.6C4037.7 432.2 4050.1 392.3 4050.1 343.5C4050.1 292.2 4036.8 250.1 4006.4 220.9C3976.1 191.7 3930.1 176.8 3867.7 176.8H3700.1C3633.9 176.8 3586.5 195.4 3555.6 227.8C3524.8 260.1 3511.8 305 3511.8 355.3V531.7C3511.8 582 3524.9 626.9 3555.6 659.2C3586.5 691.6 3633.9 710.2 3700.1 710.2H4010.6C4018.3 710.2 4024.6 703.9 4024.6 696.2V607.2H4024.4ZM3863.5 403.1H3642.5C3634.8 403.1 3628.5 396.8 3628.5 389.1V356.2C3628.5 337.6 3633.7 321.9 3644.6 311C3655.4 300.1 3672.9 292.7 3699.9 292.7H3866.5C3890.7 292.7 3906.9 298.8 3916.9 308.2C3926.9 317.5 3932 331.3 3932 349.4C3932 367.1 3927.3 380 3917.4 388.6C3907.4 397.4 3890.5 403.1 3863.5 403.1Z' fill='white'/%3E%3Cpath d='M2918.9 872.3C3001.9 872.3 3036.9 909.9 3036.9 966.3C3036.9 1012.2 3013.9 1036.8 2973.2 1047.2C3014.4 1058.2 3037.9 1083.7 3037.9 1129.7C3037.9 1186.1 3003.5 1224.7 2920.5 1224.7H2755.6C2741.5 1224.7 2734.2 1217.9 2734.2 1203.8V893.2C2734.2 879.1 2741.5 872.3 2755.6 872.3H2918.9ZM2765.4 1033.1H2918.9C2976.8 1033.1 3005 1014.8 3005 970.5C3005 929.8 2979.4 903.7 2919.4 903.7H2771.2C2767.5 903.7 2765.5 905.3 2765.5 909.4V1033.1H2765.4ZM2765.4 1187.6C2765.4 1191.8 2767.5 1193.3 2771.1 1193.3H2921C2979.5 1193.3 3006.1 1168.2 3006.1 1125.4C3006.1 1081 2976.9 1060.2 2921 1060.2H2765.5V1187.6H2765.4Z' fill='white'/%3E%3Cpath d='M3294 956.9V985.6H3182.8C3148.9 985.6 3135.3 1000.7 3135.3 1033.6V1224.6H3106.1V1029.9C3106.1 979.8 3125.4 956.8 3176.6 956.8H3294V956.9Z' fill='white'/%3E%3Cpath d='M3489.1 956.9C3562.2 956.9 3608.6 1001.3 3608.6 1091C3608.6 1181.3 3562.1 1224.6 3489.1 1224.6H3431.2C3357.6 1224.6 3311.7 1181.3 3311.7 1091C3311.7 1001.2 3357.6 956.9 3431.2 956.9H3489.1ZM3433.3 985.6C3374.3 985.6 3340.9 1019 3340.9 1091C3340.9 1163.5 3374.3 1196.4 3433.3 1196.4H3487.1C3546.1 1196.4 3579.5 1163.5 3579.5 1091C3579.5 1019 3546.1 985.6 3487.1 985.6H3433.3Z' fill='white'/%3E%3Cpath d='M3674.4 956.9L3706.8 1176.6C3709.4 1195.4 3716.2 1204.3 3737.1 1204.3C3758.5 1204.3 3767.4 1195.4 3771.5 1180.3L3821.6 995.5C3829.4 966.8 3849.3 951.7 3884.2 951.7C3919.1 951.7 3937.4 966.8 3945.3 995.5L3994.9 1180.3C3999.1 1195.4 4007.9 1204.3 4029.3 1204.3C4050.2 1204.3 4056.4 1195.4 4059.6 1176.6L4093.5 956.9H4125.3L4089.3 1179.8C4084.6 1210.6 4069.5 1231 4028.2 1231C3992.7 1231 3975 1216.4 3966.6 1185.1L3917 1000.9C3912.8 985.2 3900.8 978.5 3883.6 978.5C3865.9 978.5 3854.9 985.3 3850.7 1000.9L3799.6 1185.1C3790.7 1216.4 3773.5 1231 3737.5 1231C3695.2 1231 3682.2 1210.1 3677.5 1179.8L3643.1 956.9H3674.4Z' fill='white'/%3E%3Cpath d='M4417.6 956.9V985.6H4260C4219.8 985.6 4203.6 1003.3 4203.6 1032.1C4203.6 1057.2 4216.1 1077.5 4263.6 1077.5H4338.8C4410.8 1077.5 4428.6 1110.9 4428.6 1149.5C4428.6 1194.9 4404.6 1224.7 4344 1224.7H4178V1196.5H4344C4384.2 1196.5 4399.8 1178.2 4399.8 1149.5C4399.8 1124.4 4387.8 1103.6 4339.8 1103.6H4264.6C4193.1 1103.6 4174.8 1069.2 4174.8 1030C4174.8 985.1 4198.8 956.9 4259.4 956.9H4417.6Z' fill='white'/%3E%3Cpath d='M4685.4 956.9C4749.1 956.9 4775.7 986.6 4775.7 1036.8C4775.7 1084.8 4751.2 1111.4 4684.9 1111.4H4526.2V1135.9C4526.2 1170.3 4545 1196.4 4593.5 1196.4H4762.1V1224.6H4593.5C4524.6 1224.6 4497.5 1187.5 4497.5 1136.4V1045.1C4497.5 995 4524.6 956.9 4593.5 956.9H4685.4ZM4526.2 1087.4H4684.3C4729.7 1087.4 4746.9 1069.7 4746.9 1037.8C4746.9 1005.4 4728.6 985.6 4685.3 985.6H4593.4C4544.9 985.6 4526.1 1011.2 4526.1 1045.6V1087.4H4526.2Z' fill='white'/%3E%3Cpath d='M5040.3 956.9V985.6H4929.1C4895.2 985.6 4881.6 1000.7 4881.6 1033.6V1224.6H4852.4V1029.9C4852.4 979.8 4871.7 956.8 4922.9 956.8H5040.3V956.9Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_879_362'%3E%3Crect width='5041' height='1231' fill='white' transform='translate(0 0.700195)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A"
|
|
5191
|
-
},
|
|
5192
|
-
loginPageLogo:
|
|
5193
|
-
},
|
|
5199
|
+
}, ll = {
|
|
5200
|
+
loginPageLogo: cl
|
|
5201
|
+
}, ul = "256px", $t = ({ logoSrc: t = ll.loginPageLogo.value, width: e = ul, className: n = "logo" }) => /* @__PURE__ */ a("img", { width: e, src: t, className: n, alt: "Login logo" });
|
|
5194
5202
|
const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) => /* @__PURE__ */ w("div", { className: "info-card", children: [
|
|
5195
5203
|
o && /* @__PURE__ */ a("h1", { className: "info-card-title", children: o }),
|
|
5196
5204
|
r && /* @__PURE__ */ a("div", { className: "info-card-image", children: /* @__PURE__ */ a(r, {}) }),
|
|
5197
5205
|
n && /* @__PURE__ */ a("h3", { className: "info-card-heading", children: n }),
|
|
5198
5206
|
/* @__PURE__ */ a("p", { className: "info-card-description", children: e }),
|
|
5199
5207
|
t
|
|
5200
|
-
] }),
|
|
5208
|
+
] }), dl = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", width: 222, height: 130, fill: "none", ...t, children: [
|
|
5201
5209
|
/* @__PURE__ */ a("g", { filter: "url(#a)", children: /* @__PURE__ */ a("path", { fill: "url(#b)", d: "M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z" }) }),
|
|
5202
5210
|
/* @__PURE__ */ a("path", { fill: "#3C3E3F", d: "M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z" }),
|
|
5203
5211
|
/* @__PURE__ */ a("path", { stroke: "url(#c)", d: "M16 23.5h189" }),
|
|
@@ -5251,7 +5259,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5251
5259
|
/* @__PURE__ */ a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_816_102831", result: "shape" })
|
|
5252
5260
|
] })
|
|
5253
5261
|
] })
|
|
5254
|
-
] }),
|
|
5262
|
+
] }), fl = (t) => /* @__PURE__ */ w(
|
|
5255
5263
|
"svg",
|
|
5256
5264
|
{
|
|
5257
5265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5311,7 +5319,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5311
5319
|
)
|
|
5312
5320
|
]
|
|
5313
5321
|
}
|
|
5314
|
-
),
|
|
5322
|
+
), pl = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...t, children: [
|
|
5315
5323
|
/* @__PURE__ */ w("defs", { children: [
|
|
5316
5324
|
/* @__PURE__ */ w(
|
|
5317
5325
|
"radialGradient",
|
|
@@ -5477,7 +5485,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5477
5485
|
transform: "translate(-4.6 -5)"
|
|
5478
5486
|
}
|
|
5479
5487
|
)
|
|
5480
|
-
] }),
|
|
5488
|
+
] }), hl = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 75.591 75.591", ...t, children: [
|
|
5481
5489
|
/* @__PURE__ */ w(
|
|
5482
5490
|
"linearGradient",
|
|
5483
5491
|
{
|
|
@@ -5523,7 +5531,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5523
5531
|
transform: "matrix(1.3333 0 0 -1.3333 0 107.2)"
|
|
5524
5532
|
}
|
|
5525
5533
|
)
|
|
5526
|
-
] }),
|
|
5534
|
+
] }), ml = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", width: 182, height: 121, fill: "none", ...t, children: [
|
|
5527
5535
|
/* @__PURE__ */ a("path", { fill: "url(#a)", d: "M114.092 103.689h-46.36v11.541h46.36v-11.541Z" }),
|
|
5528
5536
|
/* @__PURE__ */ a("path", { fill: "#828589", d: "M134.371 115.23H47.446v5.771h86.925v-5.771Z" }),
|
|
5529
5537
|
/* @__PURE__ */ a("rect", { width: 180.555, height: 103.984, x: 0.723, fill: "url(#b)", rx: 8 }),
|
|
@@ -5571,7 +5579,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5571
5579
|
/* @__PURE__ */ a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_2206_37806", result: "shape" })
|
|
5572
5580
|
] })
|
|
5573
5581
|
] })
|
|
5574
|
-
] }),
|
|
5582
|
+
] }), vl = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", width: 196, height: 130, fill: "none", ...t, children: [
|
|
5575
5583
|
/* @__PURE__ */ a("g", { filter: "url(#a)", children: /* @__PURE__ */ a("path", { fill: "url(#b)", d: "M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z" }) }),
|
|
5576
5584
|
/* @__PURE__ */ a("path", { fill: "#3C3E3F", d: "M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z" }),
|
|
5577
5585
|
/* @__PURE__ */ a("path", { stroke: "url(#c)", d: "M16 51.906h163" }),
|
|
@@ -5670,7 +5678,7 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5670
5678
|
/* @__PURE__ */ a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_834_102897", result: "shape" })
|
|
5671
5679
|
] })
|
|
5672
5680
|
] })
|
|
5673
|
-
] }),
|
|
5681
|
+
] }), gl = (t) => /* @__PURE__ */ w("svg", { xmlns: "http://www.w3.org/2000/svg", width: 247, height: 143, fill: "none", ...t, children: [
|
|
5674
5682
|
/* @__PURE__ */ a("path", { fill: "url(#a)", d: "M144.369 125.689h-46.36v11.541h46.36v-11.541Z" }),
|
|
5675
5683
|
/* @__PURE__ */ a("path", { fill: "#828589", d: "M164.648 137.23H77.724v5.771h86.924v-5.771Z" }),
|
|
5676
5684
|
/* @__PURE__ */ a("rect", { width: 180.555, height: 103.984, x: 31, y: 22, fill: "url(#b)", rx: 8 }),
|
|
@@ -5907,15 +5915,15 @@ const yn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5907
5915
|
/* @__PURE__ */ a("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_807_102718", result: "shape" })
|
|
5908
5916
|
] })
|
|
5909
5917
|
] })
|
|
5910
|
-
] }),
|
|
5911
|
-
{ name: "Google Chrome", Image:
|
|
5912
|
-
{ name: "Microsoft Edge", Image:
|
|
5913
|
-
{ name: "Opera", Image:
|
|
5918
|
+
] }), yl = [
|
|
5919
|
+
{ name: "Google Chrome", Image: fl, url: "https://www.google.com/chrome/" },
|
|
5920
|
+
{ name: "Microsoft Edge", Image: pl, url: "https://www.microsoft.com/en-us/edge/download" },
|
|
5921
|
+
{ name: "Opera", Image: hl, url: "https://www.opera.com/browsers/opera" }
|
|
5914
5922
|
];
|
|
5915
5923
|
const yi = ({ className: t, children: e, Logo: n }) => /* @__PURE__ */ a("div", { className: G("info-page-container", t), children: /* @__PURE__ */ w("div", { className: "info-page-wrapper", children: [
|
|
5916
5924
|
/* @__PURE__ */ a(n, { className: "mb-32" }),
|
|
5917
5925
|
e
|
|
5918
|
-
] }) }),
|
|
5926
|
+
] }) }), bl = ({ supportEmail: t }) => /* @__PURE__ */ w("p", { className: "additional-information", children: [
|
|
5919
5927
|
"For more information, visit the io.Connect Browser",
|
|
5920
5928
|
/* @__PURE__ */ a("br", {}),
|
|
5921
5929
|
/* @__PURE__ */ a(
|
|
@@ -5937,23 +5945,23 @@ const yi = ({ className: t, children: e, Logo: n }) => /* @__PURE__ */ a("div",
|
|
|
5937
5945
|
"."
|
|
5938
5946
|
] })
|
|
5939
5947
|
] });
|
|
5940
|
-
const
|
|
5948
|
+
const wl = ({ components: { Logo: t = $t } = {}, supportEmail: e }) => {
|
|
5941
5949
|
const { name: n, version: r } = hr(), o = "Hmm... It seems that your browser isn’t supported.", i = `We're sorry, but ${n} ${r} isn’t supported.
|
|
5942
5950
|
For best experience, we recommend using the latest version of one of the
|
|
5943
5951
|
following browsers:`;
|
|
5944
5952
|
return /* @__PURE__ */ w(yi, { className: "browser-not-supported", Logo: t, children: [
|
|
5945
5953
|
/* @__PURE__ */ a(yn, { title: o, description: i }),
|
|
5946
|
-
/* @__PURE__ */ a("ul", { className: "browsers-list", children:
|
|
5954
|
+
/* @__PURE__ */ a("ul", { className: "browsers-list", children: yl.map(({ Image: s, name: c, url: l }) => /* @__PURE__ */ w("li", { onClick: () => window.open(l, "_blank", "noopener,noreferrer"), children: [
|
|
5947
5955
|
/* @__PURE__ */ a("div", { className: "browsers-list-image", children: /* @__PURE__ */ a(s, {}) }),
|
|
5948
5956
|
/* @__PURE__ */ a("div", { children: c })
|
|
5949
5957
|
] }, c)) }),
|
|
5950
|
-
/* @__PURE__ */ a(
|
|
5958
|
+
/* @__PURE__ */ a(bl, { supportEmail: e })
|
|
5951
5959
|
] });
|
|
5952
5960
|
};
|
|
5953
5961
|
function bn({ children: t, className: e, color: n, ...r }) {
|
|
5954
5962
|
return /* @__PURE__ */ a("button", { className: G(e, "io-btn", n), ...r, children: t });
|
|
5955
5963
|
}
|
|
5956
|
-
function
|
|
5964
|
+
function Sr(t) {
|
|
5957
5965
|
const { className: e, items: n, onItemClick: r, ...o } = t;
|
|
5958
5966
|
return /* @__PURE__ */ a("div", { className: G("io-btn-group", e), ...o, children: n.map((i, s) => {
|
|
5959
5967
|
const { onClick: c, ...l } = i;
|
|
@@ -5969,7 +5977,7 @@ function kr(t) {
|
|
|
5969
5977
|
);
|
|
5970
5978
|
}) });
|
|
5971
5979
|
}
|
|
5972
|
-
const
|
|
5980
|
+
const Cl = (t, e) => {
|
|
5973
5981
|
const { isSectionCollapsible: n, sortOrder: r = Ut.DISABLED, ...o } = e;
|
|
5974
5982
|
return {
|
|
5975
5983
|
id: "favorites-section",
|
|
@@ -5984,8 +5992,8 @@ const yl = (t, e) => {
|
|
|
5984
5992
|
isCollapsible: n,
|
|
5985
5993
|
...o
|
|
5986
5994
|
};
|
|
5987
|
-
},
|
|
5988
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = fr(), s = lt(() =>
|
|
5995
|
+
}, Ol = (t) => {
|
|
5996
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = fr(), s = lt(() => Cl(i, {
|
|
5989
5997
|
...{
|
|
5990
5998
|
displayCount: e,
|
|
5991
5999
|
showAllItems: r
|
|
@@ -5993,22 +6001,22 @@ const yl = (t, e) => {
|
|
|
5993
6001
|
isSectionCollapsible: n,
|
|
5994
6002
|
sortOrder: o
|
|
5995
6003
|
}), [i, e, n, r, o]);
|
|
5996
|
-
return i.length > 0 ? /* @__PURE__ */ a(
|
|
6004
|
+
return i.length > 0 ? /* @__PURE__ */ a(kr, { config: s }) : null;
|
|
5997
6005
|
}, it = {
|
|
5998
6006
|
WINDOW_MANAGEMENT: "window-management",
|
|
5999
6007
|
NOTIFICATIONS: "notifications"
|
|
6000
|
-
},
|
|
6008
|
+
}, El = () => Promise.all(
|
|
6001
6009
|
Object.values(it).map(async (t) => {
|
|
6002
6010
|
const e = await navigator.permissions.query({ name: t });
|
|
6003
6011
|
return e.stableName = t, e;
|
|
6004
6012
|
})
|
|
6005
|
-
), bi =
|
|
6013
|
+
), bi = Vt(void 0), ut = () => {
|
|
6006
6014
|
const t = ne(bi);
|
|
6007
6015
|
if (t === void 0)
|
|
6008
6016
|
throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");
|
|
6009
6017
|
return t;
|
|
6010
|
-
},
|
|
6011
|
-
const [e, n] =
|
|
6018
|
+
}, xl = ({ children: t }) => {
|
|
6019
|
+
const [e, n] = z([]), r = e.length === 0, o = {
|
|
6012
6020
|
isDenied: !r && e.some(({ state: s }) => s === "denied"),
|
|
6013
6021
|
isLoading: r,
|
|
6014
6022
|
isSetupCompleted: !r && e.every(({ state: s }) => s === "granted"),
|
|
@@ -6016,7 +6024,7 @@ const yl = (t, e) => {
|
|
|
6016
6024
|
}, i = Le(!1);
|
|
6017
6025
|
return te(() => {
|
|
6018
6026
|
let s = !1;
|
|
6019
|
-
const c =
|
|
6027
|
+
const c = El().then((l) => {
|
|
6020
6028
|
if (s)
|
|
6021
6029
|
return;
|
|
6022
6030
|
n(l);
|
|
@@ -6055,7 +6063,7 @@ var sr = function(t, e) {
|
|
|
6055
6063
|
Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
6056
6064
|
}, sr(t, e);
|
|
6057
6065
|
};
|
|
6058
|
-
function
|
|
6066
|
+
function kl(t, e) {
|
|
6059
6067
|
if (typeof e != "function" && e !== null)
|
|
6060
6068
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
6061
6069
|
sr(t, e);
|
|
@@ -6074,7 +6082,7 @@ var pe = function() {
|
|
|
6074
6082
|
return e;
|
|
6075
6083
|
}, pe.apply(this, arguments);
|
|
6076
6084
|
};
|
|
6077
|
-
function
|
|
6085
|
+
function Sl(t, e) {
|
|
6078
6086
|
var n = {};
|
|
6079
6087
|
for (var r in t)
|
|
6080
6088
|
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
@@ -6187,13 +6195,13 @@ function Fe(t, e) {
|
|
|
6187
6195
|
return n;
|
|
6188
6196
|
}
|
|
6189
6197
|
var wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6190
|
-
function
|
|
6198
|
+
function Pr(t) {
|
|
6191
6199
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6192
6200
|
}
|
|
6193
|
-
function
|
|
6201
|
+
function Tr(t, e) {
|
|
6194
6202
|
return t(e = { exports: {} }, e.exports), e.exports;
|
|
6195
6203
|
}
|
|
6196
|
-
var ot =
|
|
6204
|
+
var ot = Tr(function(t, e) {
|
|
6197
6205
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6198
6206
|
var n = function() {
|
|
6199
6207
|
function r() {
|
|
@@ -6224,8 +6232,8 @@ var ot = Pr(function(t, e) {
|
|
|
6224
6232
|
return n.getInstance();
|
|
6225
6233
|
};
|
|
6226
6234
|
});
|
|
6227
|
-
|
|
6228
|
-
var
|
|
6235
|
+
Pr(ot);
|
|
6236
|
+
var Pl = Pr(Tr(function(t, e) {
|
|
6229
6237
|
var n = wt && wt.__awaiter || function(l, u, f, p) {
|
|
6230
6238
|
return new (f || (f = Promise))(function(d, h) {
|
|
6231
6239
|
function m(b) {
|
|
@@ -6444,21 +6452,21 @@ var xl = _r(Pr(function(t, e) {
|
|
|
6444
6452
|
}();
|
|
6445
6453
|
e.default = c;
|
|
6446
6454
|
}));
|
|
6447
|
-
const
|
|
6448
|
-
class
|
|
6455
|
+
const Tl = { timeoutInSeconds: 60 }, wi = { name: "auth0-spa-js", version: "2.0.4" }, Ci = () => Date.now();
|
|
6456
|
+
class _e extends Error {
|
|
6449
6457
|
constructor(e, n) {
|
|
6450
|
-
super(n), this.error = e, this.error_description = n, Object.setPrototypeOf(this,
|
|
6458
|
+
super(n), this.error = e, this.error_description = n, Object.setPrototypeOf(this, _e.prototype);
|
|
6451
6459
|
}
|
|
6452
6460
|
static fromPayload({ error: e, error_description: n }) {
|
|
6453
|
-
return new
|
|
6461
|
+
return new _e(e, n);
|
|
6454
6462
|
}
|
|
6455
6463
|
}
|
|
6456
|
-
class
|
|
6464
|
+
class _r extends _e {
|
|
6457
6465
|
constructor(e, n, r, o = null) {
|
|
6458
|
-
super(e, n), this.state = r, this.appState = o, Object.setPrototypeOf(this,
|
|
6466
|
+
super(e, n), this.state = r, this.appState = o, Object.setPrototypeOf(this, _r.prototype);
|
|
6459
6467
|
}
|
|
6460
6468
|
}
|
|
6461
|
-
class Ht extends
|
|
6469
|
+
class Ht extends _e {
|
|
6462
6470
|
constructor() {
|
|
6463
6471
|
super("timeout", "Timeout"), Object.setPrototypeOf(this, Ht.prototype);
|
|
6464
6472
|
}
|
|
@@ -6468,17 +6476,17 @@ class Ir extends Ht {
|
|
|
6468
6476
|
super(), this.popup = e, Object.setPrototypeOf(this, Ir.prototype);
|
|
6469
6477
|
}
|
|
6470
6478
|
}
|
|
6471
|
-
class Nr extends
|
|
6479
|
+
class Nr extends _e {
|
|
6472
6480
|
constructor(e) {
|
|
6473
6481
|
super("cancelled", "Popup closed"), this.popup = e, Object.setPrototypeOf(this, Nr.prototype);
|
|
6474
6482
|
}
|
|
6475
6483
|
}
|
|
6476
|
-
class Ar extends
|
|
6484
|
+
class Ar extends _e {
|
|
6477
6485
|
constructor(e, n, r) {
|
|
6478
6486
|
super(e, n), this.mfa_token = r, Object.setPrototypeOf(this, Ar.prototype);
|
|
6479
6487
|
}
|
|
6480
6488
|
}
|
|
6481
|
-
class wn extends
|
|
6489
|
+
class wn extends _e {
|
|
6482
6490
|
constructor(e, n) {
|
|
6483
6491
|
super("missing_refresh_token", `Missing Refresh Token (audience: '${ho(e, ["default"])}', scope: '${ho(n)}')`), this.audience = e, this.scope = n, Object.setPrototypeOf(this, wn.prototype);
|
|
6484
6492
|
}
|
|
@@ -6493,20 +6501,20 @@ const en = () => window.crypto, An = () => {
|
|
|
6493
6501
|
}, mo = (t) => btoa(t), cr = (t) => {
|
|
6494
6502
|
var { clientId: e } = t, n = Fe(t, ["clientId"]);
|
|
6495
6503
|
return new URLSearchParams(((r) => Object.keys(r).filter((o) => r[o] !== void 0).reduce((o, i) => Object.assign(Object.assign({}, o), { [i]: r[i] }), {}))(Object.assign({ client_id: e }, n))).toString();
|
|
6496
|
-
}, vo = (t) => ((e) => decodeURIComponent(atob(e).split("").map((n) => "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g, "/").replace(/-/g, "+")),
|
|
6504
|
+
}, vo = (t) => ((e) => decodeURIComponent(atob(e).split("").map((n) => "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g, "/").replace(/-/g, "+")), _l = async (t, e) => {
|
|
6497
6505
|
const n = await fetch(t, e);
|
|
6498
6506
|
return { ok: n.ok, json: await n.json() };
|
|
6499
|
-
},
|
|
6507
|
+
}, Il = async (t, e, n) => {
|
|
6500
6508
|
const r = new AbortController();
|
|
6501
6509
|
let o;
|
|
6502
|
-
return e.signal = r.signal, Promise.race([
|
|
6510
|
+
return e.signal = r.signal, Promise.race([_l(t, e), new Promise((i, s) => {
|
|
6503
6511
|
o = setTimeout(() => {
|
|
6504
6512
|
r.abort(), s(new Error("Timeout when executing 'fetch'"));
|
|
6505
6513
|
}, n);
|
|
6506
6514
|
})]).finally(() => {
|
|
6507
6515
|
clearTimeout(o);
|
|
6508
6516
|
});
|
|
6509
|
-
},
|
|
6517
|
+
}, Nl = async (t, e, n, r, o, i, s) => {
|
|
6510
6518
|
return c = { auth: { audience: e, scope: n }, timeout: o, fetchUrl: t, fetchOptions: r, useFormData: s }, l = i, new Promise(function(u, f) {
|
|
6511
6519
|
const p = new MessageChannel();
|
|
6512
6520
|
p.port1.onmessage = function(d) {
|
|
@@ -6514,27 +6522,27 @@ const en = () => window.crypto, An = () => {
|
|
|
6514
6522
|
}, l.postMessage(c, [p.port2]);
|
|
6515
6523
|
});
|
|
6516
6524
|
var c, l;
|
|
6517
|
-
},
|
|
6518
|
-
async function
|
|
6525
|
+
}, Al = async (t, e, n, r, o, i, s = 1e4) => o ? Nl(t, e, n, r, s, o, i) : Il(t, r, s);
|
|
6526
|
+
async function Rl(t, e) {
|
|
6519
6527
|
var { baseUrl: n, timeout: r, audience: o, scope: i, auth0Client: s, useFormData: c } = t, l = Fe(t, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
|
|
6520
6528
|
const u = c ? cr(l) : JSON.stringify(l);
|
|
6521
6529
|
return await async function(f, p, d, h, m, v, g) {
|
|
6522
6530
|
let b, x = null;
|
|
6523
|
-
for (let
|
|
6531
|
+
for (let S = 0; S < 3; S++)
|
|
6524
6532
|
try {
|
|
6525
|
-
b = await
|
|
6533
|
+
b = await Al(f, d, h, m, v, g, p), x = null;
|
|
6526
6534
|
break;
|
|
6527
6535
|
} catch (N) {
|
|
6528
6536
|
x = N;
|
|
6529
6537
|
}
|
|
6530
6538
|
if (x)
|
|
6531
6539
|
throw x;
|
|
6532
|
-
const E = b.json, { error: O, error_description: y } = E,
|
|
6540
|
+
const E = b.json, { error: O, error_description: y } = E, P = Fe(E, ["error", "error_description"]), { ok: I } = b;
|
|
6533
6541
|
if (!I) {
|
|
6534
|
-
const
|
|
6535
|
-
throw O === "mfa_required" ? new Ar(O,
|
|
6542
|
+
const S = y || `HTTP error. Unable to fetch ${f}`;
|
|
6543
|
+
throw O === "mfa_required" ? new Ar(O, S, P.mfa_token) : O === "missing_refresh_token" ? new wn(d, h) : new _e(O || "request_error", S);
|
|
6536
6544
|
}
|
|
6537
|
-
return
|
|
6545
|
+
return P;
|
|
6538
6546
|
}(`${n}/oauth/token`, r, o || "default", i, { method: "POST", body: u, headers: { "Content-Type": c ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(s || wi)) } }, e, c);
|
|
6539
6547
|
}
|
|
6540
6548
|
const Xt = (...t) => {
|
|
@@ -6557,7 +6565,7 @@ class We {
|
|
|
6557
6565
|
return new We({ scope: n, audience: r, clientId: o });
|
|
6558
6566
|
}
|
|
6559
6567
|
}
|
|
6560
|
-
class
|
|
6568
|
+
class Ll {
|
|
6561
6569
|
set(e, n) {
|
|
6562
6570
|
localStorage.setItem(e, JSON.stringify(n));
|
|
6563
6571
|
}
|
|
@@ -6593,7 +6601,7 @@ class Oi {
|
|
|
6593
6601
|
}();
|
|
6594
6602
|
}
|
|
6595
6603
|
}
|
|
6596
|
-
class
|
|
6604
|
+
class Ml {
|
|
6597
6605
|
constructor(e, n, r) {
|
|
6598
6606
|
this.cache = e, this.keyManifest = n, this.nowProvider = r || Ci;
|
|
6599
6607
|
}
|
|
@@ -6657,7 +6665,7 @@ class Al {
|
|
|
6657
6665
|
})[0];
|
|
6658
6666
|
}
|
|
6659
6667
|
}
|
|
6660
|
-
class
|
|
6668
|
+
class Dl {
|
|
6661
6669
|
constructor(e, n) {
|
|
6662
6670
|
this.storage = e, this.clientId = n, this.storageKey = `a0.spajs.txs.${this.clientId}`, this.transaction = this.storage.get(this.storageKey);
|
|
6663
6671
|
}
|
|
@@ -6671,7 +6679,7 @@ class Rl {
|
|
|
6671
6679
|
delete this.transaction, this.storage.remove(this.storageKey);
|
|
6672
6680
|
}
|
|
6673
6681
|
}
|
|
6674
|
-
const At = (t) => typeof t == "number",
|
|
6682
|
+
const At = (t) => typeof t == "number", jl = ["iss", "aud", "exp", "nbf", "iat", "jti", "azp", "nonce", "auth_time", "at_hash", "c_hash", "acr", "amr", "sub_jwk", "cnf", "sip_from_tag", "sip_date", "sip_callid", "sip_cseq_num", "sip_via_branch", "orig", "dest", "mky", "events", "toe", "txn", "rph", "sid", "vot", "vtm"], Ul = (t) => {
|
|
6675
6683
|
if (!t.id_token)
|
|
6676
6684
|
throw new Error("ID token is required but missing");
|
|
6677
6685
|
const e = ((i) => {
|
|
@@ -6680,7 +6688,7 @@ const At = (t) => typeof t == "number", Ll = ["iss", "aud", "exp", "nbf", "iat",
|
|
|
6680
6688
|
throw new Error("ID token could not be decoded");
|
|
6681
6689
|
const f = JSON.parse(vo(l)), p = { __raw: i }, d = {};
|
|
6682
6690
|
return Object.keys(f).forEach((h) => {
|
|
6683
|
-
p[h] = f[h],
|
|
6691
|
+
p[h] = f[h], jl.includes(h) || (d[h] = f[h]);
|
|
6684
6692
|
}), { encoded: { header: c, payload: l, signature: u }, header: JSON.parse(vo(c)), claims: p, user: d };
|
|
6685
6693
|
})(t.id_token);
|
|
6686
6694
|
if (!e.claims.iss)
|
|
@@ -6737,7 +6745,7 @@ const At = (t) => typeof t == "number", Ll = ["iss", "aud", "exp", "nbf", "iat",
|
|
|
6737
6745
|
}
|
|
6738
6746
|
return e;
|
|
6739
6747
|
};
|
|
6740
|
-
var at =
|
|
6748
|
+
var at = Tr(function(t, e) {
|
|
6741
6749
|
var n = wt && wt.__assign || function() {
|
|
6742
6750
|
return n = Object.assign || function(l) {
|
|
6743
6751
|
for (var u, f = 1, p = arguments.length; f < p; f++)
|
|
@@ -6784,10 +6792,10 @@ var at = Pr(function(t, e) {
|
|
|
6784
6792
|
c(l, "", n(n({}, u), { expires: -1 }));
|
|
6785
6793
|
};
|
|
6786
6794
|
});
|
|
6787
|
-
|
|
6788
|
-
var
|
|
6795
|
+
Pr(at), at.encode, at.parse, at.getAll;
|
|
6796
|
+
var Fl = at.get, Ei = at.set, xi = at.remove;
|
|
6789
6797
|
const yt = { get(t) {
|
|
6790
|
-
const e =
|
|
6798
|
+
const e = Fl(t);
|
|
6791
6799
|
if (e !== void 0)
|
|
6792
6800
|
return JSON.parse(e);
|
|
6793
6801
|
}, save(t, e, n) {
|
|
@@ -6796,7 +6804,7 @@ const yt = { get(t) {
|
|
|
6796
6804
|
}, remove(t, e) {
|
|
6797
6805
|
let n = {};
|
|
6798
6806
|
e?.cookieDomain && (n.domain = e.cookieDomain), xi(t, n);
|
|
6799
|
-
} },
|
|
6807
|
+
} }, Wl = { get(t) {
|
|
6800
6808
|
return yt.get(t) || yt.get(`_legacy_${t}`);
|
|
6801
6809
|
}, save(t, e, n) {
|
|
6802
6810
|
let r = {};
|
|
@@ -6804,7 +6812,7 @@ const yt = { get(t) {
|
|
|
6804
6812
|
}, remove(t, e) {
|
|
6805
6813
|
let n = {};
|
|
6806
6814
|
e?.cookieDomain && (n.domain = e.cookieDomain), xi(t, n), yt.remove(t, e), yt.remove(`_legacy_${t}`, e);
|
|
6807
|
-
} },
|
|
6815
|
+
} }, Hl = { get(t) {
|
|
6808
6816
|
if (typeof sessionStorage > "u")
|
|
6809
6817
|
return;
|
|
6810
6818
|
const e = sessionStorage.getItem(t);
|
|
@@ -6814,7 +6822,7 @@ const yt = { get(t) {
|
|
|
6814
6822
|
}, remove(t) {
|
|
6815
6823
|
sessionStorage.removeItem(t);
|
|
6816
6824
|
} };
|
|
6817
|
-
function
|
|
6825
|
+
function Vl(t, e, n) {
|
|
6818
6826
|
var r = e === void 0 ? null : e, o = function(l, u) {
|
|
6819
6827
|
var f = atob(l);
|
|
6820
6828
|
if (u) {
|
|
@@ -6827,11 +6835,11 @@ function Fl(t, e, n) {
|
|
|
6827
6835
|
`, 10) + 1, s = o.substring(i) + (r ? "//# sourceMappingURL=" + r : ""), c = new Blob([s], { type: "application/javascript" });
|
|
6828
6836
|
return URL.createObjectURL(c);
|
|
6829
6837
|
}
|
|
6830
|
-
var go, yo, bo, Rn,
|
|
6831
|
-
return Rn = Rn ||
|
|
6838
|
+
var go, yo, bo, Rn, zl = (go = "Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==", yo = null, bo = !1, function(t) {
|
|
6839
|
+
return Rn = Rn || Vl(go, yo, bo), new Worker(Rn, t);
|
|
6832
6840
|
});
|
|
6833
6841
|
const Ln = {};
|
|
6834
|
-
class
|
|
6842
|
+
class Zl {
|
|
6835
6843
|
constructor(e, n) {
|
|
6836
6844
|
this.cache = e, this.clientId = n, this.manifestKey = this.createManifestKeyFrom(this.clientId);
|
|
6837
6845
|
}
|
|
@@ -6857,11 +6865,11 @@ class Hl {
|
|
|
6857
6865
|
return `@@auth0spajs@@::${e}`;
|
|
6858
6866
|
}
|
|
6859
6867
|
}
|
|
6860
|
-
const
|
|
6868
|
+
const Bl = { memory: () => new Oi().enclosedCache, localstorage: () => new Ll() }, wo = (t) => Bl[t], Co = (t) => {
|
|
6861
6869
|
const { openUrl: e, onRedirect: n } = t, r = Fe(t, ["openUrl", "onRedirect"]);
|
|
6862
6870
|
return Object.assign(Object.assign({}, r), { openUrl: e === !1 || e ? e : n });
|
|
6863
|
-
}, Mn = new
|
|
6864
|
-
class
|
|
6871
|
+
}, Mn = new Pl();
|
|
6872
|
+
class $l {
|
|
6865
6873
|
constructor(e) {
|
|
6866
6874
|
let n, r;
|
|
6867
6875
|
if (this.userCache = new Oi().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
|
|
@@ -6880,10 +6888,10 @@ class Vl {
|
|
|
6880
6888
|
throw new Error(`Invalid cache location "${n}"`);
|
|
6881
6889
|
r = wo(n)();
|
|
6882
6890
|
}
|
|
6883
|
-
this.httpTimeoutMs = e.httpTimeoutInSeconds ? 1e3 * e.httpTimeoutInSeconds : 1e4, this.cookieStorage = e.legacySameSiteCookie === !1 ? yt :
|
|
6884
|
-
const o = e.useCookiesForTransactions ? this.cookieStorage :
|
|
6891
|
+
this.httpTimeoutMs = e.httpTimeoutInSeconds ? 1e3 * e.httpTimeoutInSeconds : 1e4, this.cookieStorage = e.legacySameSiteCookie === !1 ? yt : Wl, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((s) => `auth0.${s}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = e.sessionCheckExpiryDays || 1;
|
|
6892
|
+
const o = e.useCookiesForTransactions ? this.cookieStorage : Hl;
|
|
6885
6893
|
var i;
|
|
6886
|
-
this.scope = Xt("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new
|
|
6894
|
+
this.scope = Xt("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new Dl(o, this.options.clientId), this.nowProvider = this.options.nowProvider || Ci, this.cacheManager = new Ml(r, r.allKeys ? void 0 : new Zl(r, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((s, c) => s ? s.startsWith("https://") ? s : `https://${s}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.worker = new zl());
|
|
6887
6895
|
}
|
|
6888
6896
|
_url(e) {
|
|
6889
6897
|
const n = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || wi)));
|
|
@@ -6894,7 +6902,7 @@ class Vl {
|
|
|
6894
6902
|
}
|
|
6895
6903
|
async _verifyIdToken(e, n, r) {
|
|
6896
6904
|
const o = await this.nowProvider();
|
|
6897
|
-
return
|
|
6905
|
+
return Ul({ iss: this.tokenIssuer, aud: this.options.clientId, id_token: e, nonce: n, organizationId: r, leeway: this.options.leeway, max_age: (i = this.options.authorizationParams.max_age, typeof i != "string" ? i : parseInt(i, 10) || void 0), now: o });
|
|
6898
6906
|
var i;
|
|
6899
6907
|
}
|
|
6900
6908
|
_processOrgIdHint(e) {
|
|
@@ -6929,7 +6937,7 @@ class Vl {
|
|
|
6929
6937
|
f = function(h) {
|
|
6930
6938
|
if (h.data && h.data.type === "authorization_response") {
|
|
6931
6939
|
if (clearTimeout(d), clearInterval(p), window.removeEventListener("message", f, !1), c.popup.close(), h.data.response.error)
|
|
6932
|
-
return u(
|
|
6940
|
+
return u(_e.fromPayload(h.data.response));
|
|
6933
6941
|
l(h.data.response);
|
|
6934
6942
|
}
|
|
6935
6943
|
}, window.addEventListener("message", f);
|
|
@@ -6968,7 +6976,7 @@ class Vl {
|
|
|
6968
6976
|
if (!c)
|
|
6969
6977
|
throw new Error("Invalid state");
|
|
6970
6978
|
if (this.transactionManager.remove(), i)
|
|
6971
|
-
throw new
|
|
6979
|
+
throw new _r(i, s || i, r, c.appState);
|
|
6972
6980
|
if (!c.code_verifier || c.state && c.state !== r)
|
|
6973
6981
|
throw new Error("Invalid state");
|
|
6974
6982
|
const l = c.organizationId, u = c.nonce, f = c.redirect_uri;
|
|
@@ -7026,7 +7034,7 @@ class Vl {
|
|
|
7026
7034
|
async getTokenWithPopup(e = {}, n = {}) {
|
|
7027
7035
|
var r;
|
|
7028
7036
|
const o = Object.assign(Object.assign({}, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: Xt(this.scope, (r = e.authorizationParams) === null || r === void 0 ? void 0 : r.scope) }) });
|
|
7029
|
-
return n = Object.assign(Object.assign({},
|
|
7037
|
+
return n = Object.assign(Object.assign({}, Tl), n), await this.loginWithPopup(o, n), (await this.cacheManager.get(new We({ scope: o.authorizationParams.scope, audience: o.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
|
|
7030
7038
|
}
|
|
7031
7039
|
async isAuthenticated() {
|
|
7032
7040
|
return !!await this.getUser();
|
|
@@ -7048,7 +7056,7 @@ class Vl {
|
|
|
7048
7056
|
const { url: o, state: i, nonce: s, code_verifier: c, redirect_uri: l, scope: u, audience: f } = await this._prepareAuthorizeUrl(n, { response_mode: "web_message" }, window.location.origin);
|
|
7049
7057
|
try {
|
|
7050
7058
|
if (window.crossOriginIsolated)
|
|
7051
|
-
throw new
|
|
7059
|
+
throw new _e("login_required", "The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
|
|
7052
7060
|
const p = e.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, d = await ((m, v, g = 60) => new Promise((b, x) => {
|
|
7053
7061
|
const E = window.document.createElement("iframe");
|
|
7054
7062
|
E.setAttribute("width", "0"), E.setAttribute("height", "0"), E.style.display = "none";
|
|
@@ -7056,14 +7064,14 @@ class Vl {
|
|
|
7056
7064
|
window.document.body.contains(E) && (window.document.body.removeChild(E), window.removeEventListener("message", y, !1));
|
|
7057
7065
|
};
|
|
7058
7066
|
let y;
|
|
7059
|
-
const
|
|
7067
|
+
const P = setTimeout(() => {
|
|
7060
7068
|
x(new Ht()), O();
|
|
7061
7069
|
}, 1e3 * g);
|
|
7062
7070
|
y = function(I) {
|
|
7063
7071
|
if (I.origin != v || !I.data || I.data.type !== "authorization_response")
|
|
7064
7072
|
return;
|
|
7065
|
-
const
|
|
7066
|
-
|
|
7073
|
+
const S = I.source;
|
|
7074
|
+
S && S.close(), I.data.response.error ? x(_e.fromPayload(I.data.response)) : b(I.data.response), clearTimeout(P), window.removeEventListener("message", y, !1), setTimeout(O, 2e3);
|
|
7067
7075
|
}, window.addEventListener("message", y, !1), window.document.body.appendChild(E), E.setAttribute("src", m);
|
|
7068
7076
|
}))(o, this.domainUrl, p);
|
|
7069
7077
|
if (i !== d.state)
|
|
@@ -7107,35 +7115,35 @@ class Vl {
|
|
|
7107
7115
|
}
|
|
7108
7116
|
}
|
|
7109
7117
|
async _requestToken(e, n) {
|
|
7110
|
-
const { nonceIn: r, organizationId: o } = n || {}, i = await
|
|
7118
|
+
const { nonceIn: r, organizationId: o } = n || {}, i = await Rl(Object.assign({ baseUrl: this.domainUrl, client_id: this.options.clientId, auth0Client: this.options.auth0Client, useFormData: this.options.useFormData, timeout: this.httpTimeoutMs }, e), this.worker), s = await this._verifyIdToken(i.id_token, r, o);
|
|
7111
7119
|
return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({}, i), { decodedToken: s, scope: e.scope, audience: e.audience || "default" }), i.scope ? { oauthTokenScope: i.scope } : null), { client_id: this.options.clientId })), this.cookieStorage.save(this.isAuthenticatedCookieName, !0, { daysUntilExpire: this.sessionCheckExpiryDays, cookieDomain: this.options.cookieDomain }), this._processOrgIdHint(s.claims.org_id), Object.assign(Object.assign({}, i), { decodedToken: s });
|
|
7112
7120
|
}
|
|
7113
7121
|
}
|
|
7114
|
-
var
|
|
7122
|
+
var ki = {
|
|
7115
7123
|
isAuthenticated: !1,
|
|
7116
7124
|
isLoading: !0
|
|
7117
7125
|
}, Ze = function() {
|
|
7118
7126
|
throw new Error("You forgot to wrap your component in <Auth0Provider>.");
|
|
7119
|
-
},
|
|
7127
|
+
}, Gl = pe(pe({}, ki), { buildAuthorizeUrl: Ze, buildLogoutUrl: Ze, getAccessTokenSilently: Ze, getAccessTokenWithPopup: Ze, getIdTokenClaims: Ze, loginWithRedirect: Ze, loginWithPopup: Ze, logout: Ze, handleRedirectCallback: Ze }), Si = Vt(Gl), Kl = (
|
|
7120
7128
|
/** @class */
|
|
7121
7129
|
function(t) {
|
|
7122
|
-
|
|
7130
|
+
kl(e, t);
|
|
7123
7131
|
function e(n, r) {
|
|
7124
7132
|
var o = t.call(this, r || n) || this;
|
|
7125
7133
|
return o.error = n, o.error_description = r, Object.setPrototypeOf(o, e.prototype), o;
|
|
7126
7134
|
}
|
|
7127
7135
|
return e;
|
|
7128
7136
|
}(Error)
|
|
7129
|
-
),
|
|
7130
|
-
return t === void 0 && (t = window.location.search), (
|
|
7131
|
-
},
|
|
7137
|
+
), ql = /[?&]code=[^&]+/, Yl = /[?&]state=[^&]+/, Xl = /[?&]error=[^&]+/, Jl = function(t) {
|
|
7138
|
+
return t === void 0 && (t = window.location.search), (ql.test(t) || Xl.test(t)) && Yl.test(t);
|
|
7139
|
+
}, Pi = function(t) {
|
|
7132
7140
|
return function(e) {
|
|
7133
|
-
return "error" in e ? new
|
|
7141
|
+
return "error" in e ? new Kl(e.error, e.error_description) : e instanceof Error ? e : new Error(t);
|
|
7134
7142
|
};
|
|
7135
|
-
}, Oo =
|
|
7143
|
+
}, Oo = Pi("Login failed"), Dn = Pi("Get access token failed"), Ti = function(t) {
|
|
7136
7144
|
var e;
|
|
7137
7145
|
t?.redirectUri && (console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"), t.authorizationParams = t.authorizationParams || {}, t.authorizationParams.redirect_uri = t.redirectUri, delete t.redirectUri), !((e = t?.authorizationParams) === null || e === void 0) && e.redirectUri && (console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"), t.authorizationParams.redirect_uri = t.authorizationParams.redirectUri, delete t.authorizationParams.redirectUri);
|
|
7138
|
-
},
|
|
7146
|
+
}, Ql = function(t, e) {
|
|
7139
7147
|
switch (e.type) {
|
|
7140
7148
|
case "LOGIN_POPUP_STARTED":
|
|
7141
7149
|
return pe(pe({}, t), { isLoading: !0 });
|
|
@@ -7150,39 +7158,39 @@ var Si = {
|
|
|
7150
7158
|
case "ERROR":
|
|
7151
7159
|
return pe(pe({}, t), { isLoading: !1, error: e.error });
|
|
7152
7160
|
}
|
|
7153
|
-
},
|
|
7154
|
-
return
|
|
7161
|
+
}, eu = function(t) {
|
|
7162
|
+
return Ti(t), pe(pe({}, t), { auth0Client: {
|
|
7155
7163
|
name: "auth0-react",
|
|
7156
7164
|
version: "2.0.1"
|
|
7157
7165
|
} });
|
|
7158
|
-
},
|
|
7166
|
+
}, tu = function(t) {
|
|
7159
7167
|
window.history.replaceState({}, document.title, t?.returnTo || window.location.pathname);
|
|
7160
|
-
},
|
|
7161
|
-
var e = t.children, n = t.skipRedirectCallback, r = t.onRedirectCallback, o = r === void 0 ?
|
|
7162
|
-
return new
|
|
7163
|
-
})[0], u = jn(
|
|
7168
|
+
}, nu = function(t) {
|
|
7169
|
+
var e = t.children, n = t.skipRedirectCallback, r = t.onRedirectCallback, o = r === void 0 ? tu : r, i = t.context, s = i === void 0 ? Si : i, c = Sl(t, ["children", "skipRedirectCallback", "onRedirectCallback", "context"]), l = z(function() {
|
|
7170
|
+
return new $l(eu(c));
|
|
7171
|
+
})[0], u = jn(Ql, ki), f = u[0], p = u[1], d = Le(!1);
|
|
7164
7172
|
te(function() {
|
|
7165
7173
|
d.current || (d.current = !0, function() {
|
|
7166
7174
|
return mt(void 0, void 0, void 0, function() {
|
|
7167
|
-
var y,
|
|
7168
|
-
return vt(this, function(
|
|
7169
|
-
switch (
|
|
7175
|
+
var y, P, I;
|
|
7176
|
+
return vt(this, function(S) {
|
|
7177
|
+
switch (S.label) {
|
|
7170
7178
|
case 0:
|
|
7171
|
-
return
|
|
7179
|
+
return S.trys.push([0, 7, , 8]), y = void 0, Jl() && !n ? [4, l.handleRedirectCallback()] : [3, 3];
|
|
7172
7180
|
case 1:
|
|
7173
|
-
return
|
|
7181
|
+
return P = S.sent().appState, [4, l.getUser()];
|
|
7174
7182
|
case 2:
|
|
7175
|
-
return y =
|
|
7183
|
+
return y = S.sent(), o(P, y), [3, 6];
|
|
7176
7184
|
case 3:
|
|
7177
7185
|
return [4, l.checkSession()];
|
|
7178
7186
|
case 4:
|
|
7179
|
-
return
|
|
7187
|
+
return S.sent(), [4, l.getUser()];
|
|
7180
7188
|
case 5:
|
|
7181
|
-
y =
|
|
7189
|
+
y = S.sent(), S.label = 6;
|
|
7182
7190
|
case 6:
|
|
7183
7191
|
return p({ type: "INITIALISED", user: y }), [3, 8];
|
|
7184
7192
|
case 7:
|
|
7185
|
-
return I =
|
|
7193
|
+
return I = S.sent(), p({ type: "ERROR", error: Oo(I) }), [3, 8];
|
|
7186
7194
|
case 8:
|
|
7187
7195
|
return [
|
|
7188
7196
|
2
|
|
@@ -7194,16 +7202,16 @@ var Si = {
|
|
|
7194
7202
|
}());
|
|
7195
7203
|
}, [l, o, n]);
|
|
7196
7204
|
var h = he(function(y) {
|
|
7197
|
-
return
|
|
7198
|
-
}, [l]), m = he(function(y,
|
|
7205
|
+
return Ti(y), l.loginWithRedirect(y);
|
|
7206
|
+
}, [l]), m = he(function(y, P) {
|
|
7199
7207
|
return mt(void 0, void 0, void 0, function() {
|
|
7200
|
-
var I,
|
|
7208
|
+
var I, S;
|
|
7201
7209
|
return vt(this, function(N) {
|
|
7202
7210
|
switch (N.label) {
|
|
7203
7211
|
case 0:
|
|
7204
7212
|
p({ type: "LOGIN_POPUP_STARTED" }), N.label = 1;
|
|
7205
7213
|
case 1:
|
|
7206
|
-
return N.trys.push([1, 3, , 4]), [4, l.loginWithPopup(y,
|
|
7214
|
+
return N.trys.push([1, 3, , 4]), [4, l.loginWithPopup(y, P)];
|
|
7207
7215
|
case 2:
|
|
7208
7216
|
return N.sent(), [3, 4];
|
|
7209
7217
|
case 3:
|
|
@@ -7214,7 +7222,7 @@ var Si = {
|
|
|
7214
7222
|
case 4:
|
|
7215
7223
|
return [4, l.getUser()];
|
|
7216
7224
|
case 5:
|
|
7217
|
-
return
|
|
7225
|
+
return S = N.sent(), p({ type: "LOGIN_POPUP_COMPLETE", user: S }), [
|
|
7218
7226
|
2
|
|
7219
7227
|
/*return*/
|
|
7220
7228
|
];
|
|
@@ -7223,12 +7231,12 @@ var Si = {
|
|
|
7223
7231
|
});
|
|
7224
7232
|
}, [l]), v = he(function(y) {
|
|
7225
7233
|
return y === void 0 && (y = {}), mt(void 0, void 0, void 0, function() {
|
|
7226
|
-
return vt(this, function(
|
|
7227
|
-
switch (
|
|
7234
|
+
return vt(this, function(P) {
|
|
7235
|
+
switch (P.label) {
|
|
7228
7236
|
case 0:
|
|
7229
7237
|
return [4, l.logout(y)];
|
|
7230
7238
|
case 1:
|
|
7231
|
-
return
|
|
7239
|
+
return P.sent(), (y.openUrl || y.openUrl === !1) && p({ type: "LOGOUT" }), [
|
|
7232
7240
|
2
|
|
7233
7241
|
/*return*/
|
|
7234
7242
|
];
|
|
@@ -7239,42 +7247,42 @@ var Si = {
|
|
|
7239
7247
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7240
7248
|
function(y) {
|
|
7241
7249
|
return mt(void 0, void 0, void 0, function() {
|
|
7242
|
-
var
|
|
7250
|
+
var P, I, S, N;
|
|
7243
7251
|
return vt(this, function(L) {
|
|
7244
7252
|
switch (L.label) {
|
|
7245
7253
|
case 0:
|
|
7246
7254
|
return L.trys.push([0, 2, 3, 5]), [4, l.getTokenSilently(y)];
|
|
7247
7255
|
case 1:
|
|
7248
|
-
return
|
|
7256
|
+
return P = L.sent(), [3, 5];
|
|
7249
7257
|
case 2:
|
|
7250
7258
|
throw I = L.sent(), Dn(I);
|
|
7251
7259
|
case 3:
|
|
7252
|
-
return
|
|
7260
|
+
return S = p, N = {
|
|
7253
7261
|
type: "GET_ACCESS_TOKEN_COMPLETE"
|
|
7254
7262
|
}, [4, l.getUser()];
|
|
7255
7263
|
case 4:
|
|
7256
|
-
return
|
|
7264
|
+
return S.apply(void 0, [(N.user = L.sent(), N)]), [
|
|
7257
7265
|
7
|
|
7258
7266
|
/*endfinally*/
|
|
7259
7267
|
];
|
|
7260
7268
|
case 5:
|
|
7261
|
-
return [2,
|
|
7269
|
+
return [2, P];
|
|
7262
7270
|
}
|
|
7263
7271
|
});
|
|
7264
7272
|
});
|
|
7265
7273
|
},
|
|
7266
7274
|
[l]
|
|
7267
|
-
), b = he(function(y,
|
|
7275
|
+
), b = he(function(y, P) {
|
|
7268
7276
|
return mt(void 0, void 0, void 0, function() {
|
|
7269
|
-
var I,
|
|
7277
|
+
var I, S, N, L;
|
|
7270
7278
|
return vt(this, function(H) {
|
|
7271
7279
|
switch (H.label) {
|
|
7272
7280
|
case 0:
|
|
7273
|
-
return H.trys.push([0, 2, 3, 5]), [4, l.getTokenWithPopup(y,
|
|
7281
|
+
return H.trys.push([0, 2, 3, 5]), [4, l.getTokenWithPopup(y, P)];
|
|
7274
7282
|
case 1:
|
|
7275
7283
|
return I = H.sent(), [3, 5];
|
|
7276
7284
|
case 2:
|
|
7277
|
-
throw
|
|
7285
|
+
throw S = H.sent(), Dn(S);
|
|
7278
7286
|
case 3:
|
|
7279
7287
|
return N = p, L = {
|
|
7280
7288
|
type: "GET_ACCESS_TOKEN_COMPLETE"
|
|
@@ -7293,7 +7301,7 @@ var Si = {
|
|
|
7293
7301
|
return l.getIdTokenClaims();
|
|
7294
7302
|
}, [l]), E = he(function(y) {
|
|
7295
7303
|
return mt(void 0, void 0, void 0, function() {
|
|
7296
|
-
var
|
|
7304
|
+
var P, I, S;
|
|
7297
7305
|
return vt(this, function(N) {
|
|
7298
7306
|
switch (N.label) {
|
|
7299
7307
|
case 0:
|
|
@@ -7301,13 +7309,13 @@ var Si = {
|
|
|
7301
7309
|
case 1:
|
|
7302
7310
|
return [2, N.sent()];
|
|
7303
7311
|
case 2:
|
|
7304
|
-
throw
|
|
7312
|
+
throw P = N.sent(), Dn(P);
|
|
7305
7313
|
case 3:
|
|
7306
|
-
return I = p,
|
|
7314
|
+
return I = p, S = {
|
|
7307
7315
|
type: "HANDLE_REDIRECT_COMPLETE"
|
|
7308
7316
|
}, [4, l.getUser()];
|
|
7309
7317
|
case 4:
|
|
7310
|
-
return I.apply(void 0, [(
|
|
7318
|
+
return I.apply(void 0, [(S.user = N.sent(), S)]), [
|
|
7311
7319
|
7
|
|
7312
7320
|
/*endfinally*/
|
|
7313
7321
|
];
|
|
@@ -7332,8 +7340,8 @@ var Si = {
|
|
|
7332
7340
|
E
|
|
7333
7341
|
]);
|
|
7334
7342
|
return be.createElement(s.Provider, { value: O }, e);
|
|
7335
|
-
},
|
|
7336
|
-
return t === void 0 && (t =
|
|
7343
|
+
}, ru = function(t) {
|
|
7344
|
+
return t === void 0 && (t = Si), ne(t);
|
|
7337
7345
|
};
|
|
7338
7346
|
const un = {
|
|
7339
7347
|
[it.WINDOW_MANAGEMENT]: {
|
|
@@ -7343,7 +7351,7 @@ const un = {
|
|
|
7343
7351
|
default: "To allow window management, click the icon to the left of the address bar."
|
|
7344
7352
|
},
|
|
7345
7353
|
label: "Allow window management",
|
|
7346
|
-
Image:
|
|
7354
|
+
Image: gl,
|
|
7347
7355
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7348
7356
|
window.getScreenDetails().catch(async () => {
|
|
7349
7357
|
const { state: n } = await navigator.permissions.query({ name: it.WINDOW_MANAGEMENT });
|
|
@@ -7360,7 +7368,7 @@ const un = {
|
|
|
7360
7368
|
edge: 'To allow browser notifications, click the icon to the left of the address bar, or the "Bell" icon to the right of the address bar.'
|
|
7361
7369
|
},
|
|
7362
7370
|
label: "Allow browser notifications",
|
|
7363
|
-
Image:
|
|
7371
|
+
Image: dl,
|
|
7364
7372
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7365
7373
|
Notification.requestPermission().then(async () => {
|
|
7366
7374
|
const { state: n } = await navigator.permissions.query({ name: it.NOTIFICATIONS });
|
|
@@ -7368,10 +7376,10 @@ const un = {
|
|
|
7368
7376
|
}).finally(e);
|
|
7369
7377
|
}
|
|
7370
7378
|
}
|
|
7371
|
-
},
|
|
7379
|
+
}, ou = {
|
|
7372
7380
|
edgeNotificationsPermissionTimeout: 15e3
|
|
7373
7381
|
};
|
|
7374
|
-
const
|
|
7382
|
+
const iu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE__ */ a("ul", { className: "permissions-list", children: Object.entries(un).map(([n, r], o) => {
|
|
7375
7383
|
const i = t(n), s = e.find(({ stableName: c }) => c === n);
|
|
7376
7384
|
return /* @__PURE__ */ w("li", { className: G("permissions-list-item", i && "active"), children: [
|
|
7377
7385
|
/* @__PURE__ */ a("div", { children: s?.state === "granted" ? /* @__PURE__ */ a(ce, { name: "check" }) : /* @__PURE__ */ w(Ee, { children: [
|
|
@@ -7383,7 +7391,7 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7383
7391
|
] }) }),
|
|
7384
7392
|
r.label
|
|
7385
7393
|
] }, n);
|
|
7386
|
-
}) }),
|
|
7394
|
+
}) }), au = ({ onReopenPromptClick: t }) => /* @__PURE__ */ a(yn, { description: /* @__PURE__ */ w(Ee, { children: [
|
|
7387
7395
|
'Please, click "Allow" when the browser prompt appears.',
|
|
7388
7396
|
/* @__PURE__ */ a("br", {}),
|
|
7389
7397
|
/* @__PURE__ */ w("strong", { children: [
|
|
@@ -7391,7 +7399,7 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7391
7399
|
/* @__PURE__ */ a("br", {}),
|
|
7392
7400
|
"address bar to manually grant the permission."
|
|
7393
7401
|
] })
|
|
7394
|
-
] }), Image:
|
|
7402
|
+
] }), Image: ml, title: "Something went wrong!", children: /* @__PURE__ */ a(gn, { className: "io-btn-primary permissions-prompt-button", onClick: t, children: "Reopen the Prompt" }) }), _i = ({ deniedPermissionName: t }) => {
|
|
7395
7403
|
const { permission: e } = ut(), r = hr().name?.toLowerCase() || "", o = Object.values(e.statuses).filter(
|
|
7396
7404
|
(s) => s.stableName === t || s.state === "denied"
|
|
7397
7405
|
);
|
|
@@ -7399,12 +7407,12 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7399
7407
|
"The current browser settings block critical functionalities of io.Connect Browser.",
|
|
7400
7408
|
/* @__PURE__ */ a("br", {}),
|
|
7401
7409
|
"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."
|
|
7402
|
-
] }), Image:
|
|
7403
|
-
},
|
|
7410
|
+
] }), Image: vl, title: "Setup Was Unsuccessful", children: /* @__PURE__ */ a("ul", { className: "permissions-guidelines-list", children: o.map((s, c) => /* @__PURE__ */ a("li", { children: un[s.stableName].guidelines[r] || un[s.stableName].guidelines.default }, c)) }) });
|
|
7411
|
+
}, su = ({
|
|
7404
7412
|
edgeNotificationsPermissionTimeout: t,
|
|
7405
7413
|
isNotificationsPermissionPromptOpen: e
|
|
7406
7414
|
}) => {
|
|
7407
|
-
const { name: n } = hr(), { permission: r } = ut(), [o, i] =
|
|
7415
|
+
const { name: n } = hr(), { permission: r } = ut(), [o, i] = z(!1);
|
|
7408
7416
|
return te(() => {
|
|
7409
7417
|
if (!e || n !== "Edge")
|
|
7410
7418
|
return;
|
|
@@ -7419,8 +7427,8 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7419
7427
|
}, [o, r.statuses]), {
|
|
7420
7428
|
hasEdgeNotificationsPermissionError: o
|
|
7421
7429
|
};
|
|
7422
|
-
}, Cn = () => /* @__PURE__ */ a("span", { className: "loader" }),
|
|
7423
|
-
const { permission: e } = ut(), [n, r] =
|
|
7430
|
+
}, Cn = () => /* @__PURE__ */ a("span", { className: "loader" }), cu = ({ settings: t }) => {
|
|
7431
|
+
const { permission: e } = ut(), [n, r] = z(!1), [o, i] = z(!1), s = e.statuses.find(({ state: p }) => p === "prompt"), { hasEdgeNotificationsPermissionError: c } = su({
|
|
7424
7432
|
edgeNotificationsPermissionTimeout: t.edgeNotificationsPermissionTimeout,
|
|
7425
7433
|
isNotificationsPermissionPromptOpen: o && s?.stableName === it.NOTIFICATIONS
|
|
7426
7434
|
});
|
|
@@ -7429,18 +7437,18 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7429
7437
|
'The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.'
|
|
7430
7438
|
);
|
|
7431
7439
|
if (c)
|
|
7432
|
-
return /* @__PURE__ */ a(
|
|
7440
|
+
return /* @__PURE__ */ a(_i, { deniedPermissionName: "notifications" });
|
|
7433
7441
|
const l = un[s.stableName], u = () => {
|
|
7434
7442
|
i(!0), l.openPermissionsPrompt({
|
|
7435
7443
|
handleDeferredPermission: () => r(!0),
|
|
7436
7444
|
handlePermissionsPromptClose: () => i(!1)
|
|
7437
7445
|
});
|
|
7438
7446
|
};
|
|
7439
|
-
return n ? /* @__PURE__ */ a(
|
|
7447
|
+
return n ? /* @__PURE__ */ a(au, { onReopenPromptClick: () => {
|
|
7440
7448
|
r(!1), u();
|
|
7441
7449
|
} }) : /* @__PURE__ */ w(yn, { description: l.description, heading: l.heading, Image: l.Image, title: "First-Time User Setup", children: [
|
|
7442
7450
|
/* @__PURE__ */ a(
|
|
7443
|
-
|
|
7451
|
+
iu,
|
|
7444
7452
|
{
|
|
7445
7453
|
isActiveItem: (p) => p === s.stableName,
|
|
7446
7454
|
permissionStatuses: e.statuses
|
|
@@ -7458,39 +7466,39 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7458
7466
|
),
|
|
7459
7467
|
o && /* @__PURE__ */ a(Cn, {})
|
|
7460
7468
|
] });
|
|
7461
|
-
},
|
|
7469
|
+
}, lu = ({ settings: t }) => {
|
|
7462
7470
|
const { permission: e } = ut();
|
|
7463
7471
|
return e.isLoading ? /* @__PURE__ */ w(Ee, { children: [
|
|
7464
7472
|
/* @__PURE__ */ a("div", { className: "mb-32", children: "Checking browser permissions ..." }),
|
|
7465
7473
|
/* @__PURE__ */ a(Cn, {})
|
|
7466
|
-
] }) : e.isDenied ? /* @__PURE__ */ a(
|
|
7467
|
-
}, Rr = ({ components: { Logo: t = $t } = {}, settings: e = {} }) => /* @__PURE__ */ a(yi, { Logo: t, children: /* @__PURE__ */ a(
|
|
7474
|
+
] }) : e.isDenied ? /* @__PURE__ */ a(_i, {}) : /* @__PURE__ */ a(cu, { settings: t });
|
|
7475
|
+
}, Rr = ({ components: { Logo: t = $t } = {}, settings: e = {} }) => /* @__PURE__ */ a(yi, { Logo: t, children: /* @__PURE__ */ a(lu, { settings: { ...ou, ...e } }) }), uu = ({ components: t, className: e }) => {
|
|
7468
7476
|
const n = t?.Logo || $t;
|
|
7469
7477
|
return /* @__PURE__ */ a("div", { className: "logout-backdrop", children: /* @__PURE__ */ w("div", { className: G(e, "logout-container flex flex-column ai-center"), children: [
|
|
7470
7478
|
/* @__PURE__ */ a(n, {}),
|
|
7471
7479
|
/* @__PURE__ */ a("h1", { className: "text-center mb-8", children: "Logging out..." }),
|
|
7472
7480
|
/* @__PURE__ */ a(Cn, {})
|
|
7473
7481
|
] }) });
|
|
7474
|
-
},
|
|
7482
|
+
}, du = ({ onLogin: t }) => /* @__PURE__ */ a(hi, { children: /* @__PURE__ */ a(bn, { onClick: t, className: "io-btn-primary", children: "Log In" }) }), Ii = ({ className: t = "text-center mb-3", text: e = "Making Your Work Flow" }) => /* @__PURE__ */ w(Ee, { children: [
|
|
7475
7483
|
/* @__PURE__ */ a("h1", { className: t, children: e }),
|
|
7476
7484
|
/* @__PURE__ */ a("p", { children: "Integrate apps, simplify user experiences and accelerate digital transformation." })
|
|
7477
7485
|
] }), Ni = () => /* @__PURE__ */ w(Ee, { children: [
|
|
7478
7486
|
/* @__PURE__ */ a("h1", { className: "text-center mb-8", children: "Verifying credentials..." }),
|
|
7479
7487
|
/* @__PURE__ */ a(Cn, {})
|
|
7480
|
-
] }),
|
|
7488
|
+
] }), fu = ({ className: t, onLogin: e, isLoading: n, components: r }) => {
|
|
7481
7489
|
const o = r?.Logo || $t, i = r?.Heading || Ii;
|
|
7482
7490
|
return /* @__PURE__ */ w("div", { className: G(t, "login-container flex flex-column ai-center"), children: [
|
|
7483
7491
|
/* @__PURE__ */ a(o, {}),
|
|
7484
7492
|
n ? /* @__PURE__ */ a(Ni, {}) : /* @__PURE__ */ w(Ee, { children: [
|
|
7485
7493
|
/* @__PURE__ */ a(i, {}),
|
|
7486
|
-
/* @__PURE__ */ a(
|
|
7494
|
+
/* @__PURE__ */ a(du, { onLogin: e })
|
|
7487
7495
|
] })
|
|
7488
7496
|
] });
|
|
7489
7497
|
}, Eo = (t, e) => {
|
|
7490
7498
|
const n = e.value, r = n.trim().length > 3;
|
|
7491
7499
|
return { value: n, isValid: r };
|
|
7492
|
-
},
|
|
7493
|
-
const [i, s] = jn(Eo, { value: "", isValid: !1 }), [c, l] = jn(Eo, { value: "", isValid: !1 }), [u, f] =
|
|
7500
|
+
}, pu = ({ onLogin: t, setIsLoading: e, loginError: n, setLoginError: r, userInputName: o }) => {
|
|
7501
|
+
const [i, s] = jn(Eo, { value: "", isValid: !1 }), [c, l] = jn(Eo, { value: "", isValid: !1 }), [u, f] = z(!1), [p, d] = z(!1), { isValid: h } = i, { isValid: m } = c, v = h && m, g = (y) => s({ value: y.target.value }), b = (y) => l({ value: y.target.value }), x = () => {
|
|
7494
7502
|
h || f(!0);
|
|
7495
7503
|
}, E = () => {
|
|
7496
7504
|
m || d(!0);
|
|
@@ -7500,8 +7508,8 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7500
7508
|
e(!0);
|
|
7501
7509
|
try {
|
|
7502
7510
|
await t(i.value, c.value);
|
|
7503
|
-
} catch (
|
|
7504
|
-
r(
|
|
7511
|
+
} catch (P) {
|
|
7512
|
+
r(P);
|
|
7505
7513
|
}
|
|
7506
7514
|
e(!1);
|
|
7507
7515
|
}
|
|
@@ -7552,14 +7560,14 @@ const nu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7552
7560
|
] })
|
|
7553
7561
|
] });
|
|
7554
7562
|
};
|
|
7555
|
-
const
|
|
7556
|
-
const [o, i] =
|
|
7563
|
+
const hu = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
7564
|
+
const [o, i] = z(!1), [s, c] = z(null), l = n?.Logo || $t, u = n?.Heading || Ii;
|
|
7557
7565
|
return /* @__PURE__ */ w("div", { className: G(t, "login-container simple-login flex flex-column ai-center"), children: [
|
|
7558
7566
|
/* @__PURE__ */ a(l, {}),
|
|
7559
7567
|
o ? /* @__PURE__ */ a(Ni, {}) : /* @__PURE__ */ w(Ee, { children: [
|
|
7560
7568
|
/* @__PURE__ */ a(u, {}),
|
|
7561
7569
|
/* @__PURE__ */ a(
|
|
7562
|
-
|
|
7570
|
+
pu,
|
|
7563
7571
|
{
|
|
7564
7572
|
onLogin: e,
|
|
7565
7573
|
setIsLoading: i,
|
|
@@ -7570,25 +7578,59 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7570
7578
|
)
|
|
7571
7579
|
] })
|
|
7572
7580
|
] });
|
|
7573
|
-
},
|
|
7581
|
+
}, mu = xe({
|
|
7574
7582
|
id: ye,
|
|
7575
7583
|
username: K(ye),
|
|
7576
7584
|
email: K(ye),
|
|
7577
7585
|
firstName: K(ye),
|
|
7578
7586
|
lastName: K(ye),
|
|
7579
7587
|
avatarUrl: K(ye)
|
|
7580
|
-
}),
|
|
7588
|
+
}), vu = (t) => {
|
|
7581
7589
|
const { onLogout: e, user: n, launchpad: r, icon: o } = t;
|
|
7582
|
-
return /* @__PURE__ */ a(
|
|
7583
|
-
}, Ai =
|
|
7590
|
+
return /* @__PURE__ */ a(sd, { user: n, onLogout: e, icon: o, components: r?.components });
|
|
7591
|
+
}, Ai = Vt(void 0), gu = () => {
|
|
7584
7592
|
const t = ne(Ai);
|
|
7585
7593
|
if (t === void 0)
|
|
7586
7594
|
throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");
|
|
7587
7595
|
return t;
|
|
7588
|
-
},
|
|
7589
|
-
const { HeaderLogoArea: t, workspaceLogoProps: e } =
|
|
7590
|
-
return t ? /* @__PURE__ */ a(t, { ...e }) : /* @__PURE__ */ a(
|
|
7591
|
-
}
|
|
7596
|
+
}, yu = () => {
|
|
7597
|
+
const { HeaderLogoArea: t, workspaceLogoProps: e } = gu();
|
|
7598
|
+
return t ? /* @__PURE__ */ a(t, { ...e }) : /* @__PURE__ */ a(vu, { ...e });
|
|
7599
|
+
};
|
|
7600
|
+
function bu(t, e) {
|
|
7601
|
+
const [n, r] = z(!0), o = ne(ie);
|
|
7602
|
+
return te(() => {
|
|
7603
|
+
let i;
|
|
7604
|
+
return (async () => {
|
|
7605
|
+
if (!o.workspaces)
|
|
7606
|
+
return;
|
|
7607
|
+
let s;
|
|
7608
|
+
try {
|
|
7609
|
+
s = await o.workspaces.getWorkspaceById(t);
|
|
7610
|
+
} catch (l) {
|
|
7611
|
+
console.warn(l);
|
|
7612
|
+
return;
|
|
7613
|
+
}
|
|
7614
|
+
const c = s.getAllGroups().find((l) => l.id === e);
|
|
7615
|
+
c && (i = await c.onLockConfigurationChanged(({ showAddWindowButton: l }) => {
|
|
7616
|
+
l !== void 0 && r(l);
|
|
7617
|
+
}), r(!!c.showAddWindowButton));
|
|
7618
|
+
})(), () => i?.();
|
|
7619
|
+
}, [t, e, o.workspaces]), n;
|
|
7620
|
+
}
|
|
7621
|
+
const wu = ({ groupId: t, workspaceId: e }) => {
|
|
7622
|
+
const n = bu(e, t), r = he(
|
|
7623
|
+
(o) => {
|
|
7624
|
+
Fi({
|
|
7625
|
+
bounds: o,
|
|
7626
|
+
groupId: t,
|
|
7627
|
+
workspaceId: e
|
|
7628
|
+
});
|
|
7629
|
+
},
|
|
7630
|
+
[t, e]
|
|
7631
|
+
);
|
|
7632
|
+
return n && /* @__PURE__ */ a(Wi, { title: "Add App", visible: n, showPopup: r });
|
|
7633
|
+
}, Cu = (t) => /* @__PURE__ */ a(Hi, { ...t, addWindow: { visible: !1, showPopup: t.addWindow.showPopup } }), Lr = ({ onLogout: t, user: e, workspaces: n, launchpad: r }) => {
|
|
7592
7634
|
const o = n?.HeaderLogoArea, i = { onLogout: t, user: e, launchpad: r };
|
|
7593
7635
|
return /* @__PURE__ */ a(Ai.Provider, { value: { workspaceLogoProps: i, HeaderLogoArea: o }, children: /* @__PURE__ */ a(
|
|
7594
7636
|
ji,
|
|
@@ -7597,7 +7639,12 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7597
7639
|
...n?.components,
|
|
7598
7640
|
header: {
|
|
7599
7641
|
...n?.components?.header,
|
|
7600
|
-
LogoComponent:
|
|
7642
|
+
LogoComponent: yu
|
|
7643
|
+
},
|
|
7644
|
+
groupHeader: {
|
|
7645
|
+
AfterTabsComponent: wu,
|
|
7646
|
+
ButtonsComponent: Cu,
|
|
7647
|
+
...n?.components?.groupHeader
|
|
7601
7648
|
}
|
|
7602
7649
|
}
|
|
7603
7650
|
}
|
|
@@ -7611,8 +7658,8 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7611
7658
|
user: t.browserPlatform?.config?.user ?? { username: e }
|
|
7612
7659
|
}
|
|
7613
7660
|
}
|
|
7614
|
-
}),
|
|
7615
|
-
const { setupFlow: e, ioConnectConfig: n } = t, r = t.login, { permission: o } = ut(), [i, s] = fn("localStorage",
|
|
7661
|
+
}), Ou = ({ config: t }) => {
|
|
7662
|
+
const { setupFlow: e, ioConnectConfig: n } = t, r = t.login, { permission: o } = ut(), [i, s] = fn("localStorage", Qi, mu), [c, l] = z(!1), u = he(
|
|
7616
7663
|
async (p, d) => {
|
|
7617
7664
|
const h = await r.onLogin(p, d);
|
|
7618
7665
|
s(h);
|
|
@@ -7621,85 +7668,85 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7621
7668
|
), f = he(() => {
|
|
7622
7669
|
l(!0), r.onLogout?.(), s(null);
|
|
7623
7670
|
}, [r, s]);
|
|
7624
|
-
return c ? /* @__PURE__ */ a(
|
|
7625
|
-
},
|
|
7626
|
-
const { setupFlow: e, ioConnectConfig: n } = t, { permission: r } = ut(), o =
|
|
7671
|
+
return c ? /* @__PURE__ */ a(uu, { components: r.components }) : i ? !o.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(ur, { settings: Ri(n, i.id), children: /* @__PURE__ */ a(Lr, { workspaces: t?.workspaces, launchpad: t?.launchpad, onLogout: f, user: i }) }) : /* @__PURE__ */ a(hu, { onLogin: u, components: r.components, userInputName: r.userInputName });
|
|
7672
|
+
}, Eu = ({ config: t }) => {
|
|
7673
|
+
const { setupFlow: e, ioConnectConfig: n } = t, { permission: r } = ut(), o = ru(), i = lt(
|
|
7627
7674
|
() => o.user?.email ? { username: o.user.name, id: o.user.email } : null,
|
|
7628
7675
|
[o.user]
|
|
7629
7676
|
);
|
|
7630
|
-
return i ? !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(ur, { settings: Ri(n, i.id), children: /* @__PURE__ */ a(Lr, { workspaces: t.workspaces, launchpad: t.launchpad, onLogout: o.logout, user: i }) }) : /* @__PURE__ */ a(
|
|
7631
|
-
},
|
|
7677
|
+
return i ? !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(ur, { settings: Ri(n, i.id), children: /* @__PURE__ */ a(Lr, { workspaces: t.workspaces, launchpad: t.launchpad, onLogout: o.logout, user: i }) }) : /* @__PURE__ */ a(fu, { isLoading: o.isLoading, onLogin: o.loginWithPopup, components: t.login.components });
|
|
7678
|
+
}, xu = ({ config: t }) => {
|
|
7632
7679
|
const { setupFlow: e, ioConnectConfig: n } = t, { permission: r } = ut();
|
|
7633
7680
|
return !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ a(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ a(ur, { settings: n, children: /* @__PURE__ */ a(Lr, { workspaces: t.workspaces, launchpad: t.launchpad }) });
|
|
7634
7681
|
}, Li = xe({
|
|
7635
7682
|
Logo: K(we().andThen((t) => $e(t, "Logo"))),
|
|
7636
7683
|
Heading: K(we().andThen((t) => $e(t, "Heading")))
|
|
7637
|
-
}),
|
|
7684
|
+
}), ku = xe({
|
|
7638
7685
|
type: nn("auth0"),
|
|
7639
7686
|
providerOptions: we(),
|
|
7640
7687
|
components: K(Li)
|
|
7641
|
-
}),
|
|
7688
|
+
}), Su = xe({
|
|
7642
7689
|
type: nn("simple"),
|
|
7643
7690
|
onLogin: we().andThen((t) => $e(t, "onLogin")),
|
|
7644
7691
|
onLogout: K(we().andThen((t) => $e(t, "onLogout"))),
|
|
7645
7692
|
userInputName: K(ye),
|
|
7646
7693
|
components: K(Li)
|
|
7647
|
-
}),
|
|
7648
|
-
edgeNotificationsPermissionTimeout: K(
|
|
7649
|
-
}),
|
|
7694
|
+
}), Pu = zn(ku, Su), Tu = xe({
|
|
7695
|
+
edgeNotificationsPermissionTimeout: K(la)
|
|
7696
|
+
}), _u = xe({
|
|
7650
7697
|
Logo: K(we().andThen((t) => $e(t, "Logo")))
|
|
7651
|
-
}),
|
|
7698
|
+
}), Iu = xe({
|
|
7652
7699
|
enabled: K(Fo()),
|
|
7653
|
-
components: K(
|
|
7654
|
-
settings: K(
|
|
7655
|
-
}),
|
|
7700
|
+
components: K(_u),
|
|
7701
|
+
settings: K(Tu)
|
|
7702
|
+
}), Nu = xe({
|
|
7656
7703
|
components: K(we()),
|
|
7657
7704
|
HeaderLogoArea: K(we().andThen((t) => $e(t, "HeaderLogoArea")))
|
|
7658
|
-
}),
|
|
7705
|
+
}), Au = xe({
|
|
7659
7706
|
sections: K(we()),
|
|
7660
7707
|
Sections: K(we().andThen((t) => $e(t, "Sections"))),
|
|
7661
7708
|
NotificationsPanel: K(
|
|
7662
|
-
|
|
7709
|
+
zn(
|
|
7663
7710
|
we().andThen((t) => $e(t, "NotificationsPanel")),
|
|
7664
7711
|
nn(null)
|
|
7665
7712
|
)
|
|
7666
7713
|
),
|
|
7667
7714
|
UserPanel: K(
|
|
7668
|
-
|
|
7715
|
+
zn(
|
|
7669
7716
|
we().andThen((t) => $e(t, "UserPanel")),
|
|
7670
7717
|
nn(null)
|
|
7671
7718
|
)
|
|
7672
7719
|
)
|
|
7673
|
-
}),
|
|
7674
|
-
components: K(
|
|
7675
|
-
}),
|
|
7720
|
+
}), Ru = xe({
|
|
7721
|
+
components: K(Au)
|
|
7722
|
+
}), Lu = xe({
|
|
7676
7723
|
ioConnectConfig: we(),
|
|
7677
|
-
login: K(
|
|
7678
|
-
setupFlow: K(
|
|
7679
|
-
workspaces: K(
|
|
7680
|
-
launchpad: K(
|
|
7681
|
-
}),
|
|
7682
|
-
const e =
|
|
7724
|
+
login: K(Pu),
|
|
7725
|
+
setupFlow: K(Iu),
|
|
7726
|
+
workspaces: K(Nu),
|
|
7727
|
+
launchpad: K(Ru)
|
|
7728
|
+
}), Mu = ({ config: t }) => {
|
|
7729
|
+
const e = Lu.runWithException(t), n = e.login, r = e.launchpad?.components;
|
|
7683
7730
|
if (r?.sections && r?.Sections)
|
|
7684
7731
|
throw new Error("Launchpad sections are overspecified. Please provide either a JSX element or a React component.");
|
|
7685
7732
|
if (n?.type === "simple")
|
|
7686
|
-
return /* @__PURE__ */ a(
|
|
7733
|
+
return /* @__PURE__ */ a(Ou, { config: e });
|
|
7687
7734
|
if (n?.type === "auth0") {
|
|
7688
7735
|
const { providerOptions: o } = n;
|
|
7689
7736
|
return /* @__PURE__ */ a(
|
|
7690
|
-
|
|
7737
|
+
nu,
|
|
7691
7738
|
{
|
|
7692
7739
|
...o,
|
|
7693
7740
|
authorizationParams: {
|
|
7694
7741
|
...o.authorizationParams,
|
|
7695
7742
|
redirect_uri: o.authorizationParams?.redirect_uri ?? window.location.origin
|
|
7696
7743
|
},
|
|
7697
|
-
children: /* @__PURE__ */ a(
|
|
7744
|
+
children: /* @__PURE__ */ a(Eu, { config: e })
|
|
7698
7745
|
}
|
|
7699
7746
|
);
|
|
7700
7747
|
}
|
|
7701
|
-
return /* @__PURE__ */ a(
|
|
7702
|
-
},
|
|
7748
|
+
return /* @__PURE__ */ a(xu, { config: e });
|
|
7749
|
+
}, Du = () => "getScreenDetails" in window, pd = ({ config: t }) => Du() ? /* @__PURE__ */ a(xl, { children: /* @__PURE__ */ a(Mu, { config: t }) }) : /* @__PURE__ */ a(wl, {}), Mi = (t) => t?.split(" ").map((e) => e[0]?.toUpperCase()).join(""), ju = lr((t, e) => {
|
|
7703
7750
|
const { onSearch: n, searchTerm: r, onClear: o } = t, i = ne(ie);
|
|
7704
7751
|
return te(() => {
|
|
7705
7752
|
!i || !i.search || i.search.setDebounceMS(450);
|
|
@@ -7715,7 +7762,7 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7715
7762
|
}
|
|
7716
7763
|
)
|
|
7717
7764
|
] });
|
|
7718
|
-
}),
|
|
7765
|
+
}), Uu = (t) => t.reduce((e, n) => {
|
|
7719
7766
|
const { type: r } = n, o = n.id || n.displayName;
|
|
7720
7767
|
if (!o || r.name === Be.LAYOUT)
|
|
7721
7768
|
return e;
|
|
@@ -7748,8 +7795,8 @@ const du = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7748
7795
|
}
|
|
7749
7796
|
];
|
|
7750
7797
|
}, []);
|
|
7751
|
-
function
|
|
7752
|
-
const { resultsToRender: e, isLoading: n } =
|
|
7798
|
+
function Fu(t) {
|
|
7799
|
+
const { resultsToRender: e, isLoading: n } = wa(t.searchTerm), r = Pt(), o = pa(), i = Zo(), s = Bo(), c = Uu(e), l = $o(), u = Go(), f = (d, h) => {
|
|
7753
7800
|
const m = d.type === Be.APPLICATION ? l : d.type === Be.WORKSPACE ? u : null;
|
|
7754
7801
|
m && m(d, h);
|
|
7755
7802
|
}, p = async (d, h) => {
|
|
@@ -7762,7 +7809,7 @@ function Ru(t) {
|
|
|
7762
7809
|
};
|
|
7763
7810
|
return n ? /* @__PURE__ */ a("p", { style: { padding: "12px 24px" }, children: "Loading..." }) : e.length === 0 ? /* @__PURE__ */ a("p", { style: { padding: "12px 24px" }, children: "No results found." }) : /* @__PURE__ */ a("ul", { children: c.map((d, h) => /* @__PURE__ */ a(xr, { config: d, isFavoritismEnabled: !1, onItemClick: p }, d.id || h)) });
|
|
7764
7811
|
}
|
|
7765
|
-
const
|
|
7812
|
+
const Wu = (t, e, n) => {
|
|
7766
7813
|
const { isSectionCollapsible: r, sortOrder: o = Ut.ASCENDING, ...i } = n;
|
|
7767
7814
|
return {
|
|
7768
7815
|
id: "workspaces-section",
|
|
@@ -7781,8 +7828,8 @@ const Lu = (t, e, n) => {
|
|
|
7781
7828
|
isCollapsible: r,
|
|
7782
7829
|
...i
|
|
7783
7830
|
};
|
|
7784
|
-
},
|
|
7785
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i =
|
|
7831
|
+
}, Hu = (t) => {
|
|
7832
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i = Ca(), s = Oa(), c = Zo(), l = Go(), u = lt(() => Wu(i, s, {
|
|
7786
7833
|
...{
|
|
7787
7834
|
displayCount: e,
|
|
7788
7835
|
showAllItems: r
|
|
@@ -7790,7 +7837,7 @@ const Lu = (t, e, n) => {
|
|
|
7790
7837
|
isSectionCollapsible: n,
|
|
7791
7838
|
sortOrder: o
|
|
7792
7839
|
}), [i, s, e, n, r, o]);
|
|
7793
|
-
return /* @__PURE__ */ a(
|
|
7840
|
+
return /* @__PURE__ */ a(kr, { config: u, onItemClick: (p) => {
|
|
7794
7841
|
const { item: d, modifier: h, selectedContextMenuActionName: m } = p;
|
|
7795
7842
|
if (!m)
|
|
7796
7843
|
return c(d.id, h).catch((v) => {
|
|
@@ -7798,16 +7845,16 @@ const Lu = (t, e, n) => {
|
|
|
7798
7845
|
});
|
|
7799
7846
|
l(d, m);
|
|
7800
7847
|
} });
|
|
7801
|
-
},
|
|
7802
|
-
/* @__PURE__ */ a(
|
|
7803
|
-
/* @__PURE__ */ a(
|
|
7804
|
-
/* @__PURE__ */ a(
|
|
7805
|
-
] }),
|
|
7848
|
+
}, Vu = () => /* @__PURE__ */ w(Ee, { children: [
|
|
7849
|
+
/* @__PURE__ */ a(Ol, {}),
|
|
7850
|
+
/* @__PURE__ */ a(Hu, {}),
|
|
7851
|
+
/* @__PURE__ */ a(sl, {})
|
|
7852
|
+
] }), zu = {
|
|
7806
7853
|
success: "check"
|
|
7807
7854
|
}, xo = {
|
|
7808
7855
|
SET_AS_DEFAULT: "setAsDefault",
|
|
7809
7856
|
DELETE: "delete"
|
|
7810
|
-
},
|
|
7857
|
+
}, Zu = (t) => [
|
|
7811
7858
|
{
|
|
7812
7859
|
name: xo.SET_AS_DEFAULT,
|
|
7813
7860
|
displayName: "Set as Default",
|
|
@@ -7818,15 +7865,15 @@ const Lu = (t, e, n) => {
|
|
|
7818
7865
|
displayName: "Delete",
|
|
7819
7866
|
disabled: t.name === ii || t.isDefault
|
|
7820
7867
|
}
|
|
7821
|
-
],
|
|
7868
|
+
], ko = (t) => async (e) => {
|
|
7822
7869
|
e.stopPropagation();
|
|
7823
7870
|
try {
|
|
7824
7871
|
await t();
|
|
7825
7872
|
} catch (n) {
|
|
7826
7873
|
console.error("Failed to handle layout action: ", n);
|
|
7827
7874
|
}
|
|
7828
|
-
},
|
|
7829
|
-
const { layouts: e } = t, { setSelectedLayout: n, setDefaultLayout: r } =
|
|
7875
|
+
}, Bu = (t) => {
|
|
7876
|
+
const { layouts: e } = t, { setSelectedLayout: n, setDefaultLayout: r } = Pt(), o = Aa(), i = pr();
|
|
7830
7877
|
return /* @__PURE__ */ w("div", { "data-testid": "available-layouts", children: [
|
|
7831
7878
|
/* @__PURE__ */ a("h6", { children: "Available Layouts" }),
|
|
7832
7879
|
e.map((s) => /* @__PURE__ */ w(
|
|
@@ -7855,7 +7902,7 @@ const Lu = (t, e, n) => {
|
|
|
7855
7902
|
{
|
|
7856
7903
|
iconSize: 16,
|
|
7857
7904
|
iconName: "ellipsis",
|
|
7858
|
-
actions:
|
|
7905
|
+
actions: Zu(s),
|
|
7859
7906
|
onActionItemClick: (c, l) => o(s, l.name, r)
|
|
7860
7907
|
}
|
|
7861
7908
|
)
|
|
@@ -7864,12 +7911,12 @@ const Lu = (t, e, n) => {
|
|
|
7864
7911
|
s.name
|
|
7865
7912
|
))
|
|
7866
7913
|
] });
|
|
7867
|
-
},
|
|
7868
|
-
const { inputValue: e, setNotification: n, className: r = "" } = t, { selectedLayout: o, setSelectedLayout: i } =
|
|
7914
|
+
}, So = (t) => {
|
|
7915
|
+
const { inputValue: e, setNotification: n, className: r = "" } = t, { selectedLayout: o, setSelectedLayout: i } = Pt(), s = pr(), c = ne(ie), l = [
|
|
7869
7916
|
{
|
|
7870
7917
|
label: "Save",
|
|
7871
7918
|
type: "save",
|
|
7872
|
-
onClick:
|
|
7919
|
+
onClick: ko(async () => {
|
|
7873
7920
|
await c.layouts.save({ name: e, type: "Global" }), i({ name: e }), n({ message: "Saved", type: "success" });
|
|
7874
7921
|
}),
|
|
7875
7922
|
testId: "save-button"
|
|
@@ -7877,25 +7924,25 @@ const Lu = (t, e, n) => {
|
|
|
7877
7924
|
{
|
|
7878
7925
|
label: "Restore",
|
|
7879
7926
|
type: "restore",
|
|
7880
|
-
onClick:
|
|
7927
|
+
onClick: ko(() => {
|
|
7881
7928
|
o && s(o.name);
|
|
7882
7929
|
}),
|
|
7883
7930
|
testId: "restore-button"
|
|
7884
7931
|
}
|
|
7885
7932
|
];
|
|
7886
7933
|
return /* @__PURE__ */ a("div", { className: G("layout-actions", r), "data-testid": "layout-actions", children: l.map(({ label: u, type: f, disabled: p, onClick: d, testId: h }) => /* @__PURE__ */ a("button", { onClick: d, disabled: p, className: "io-btn", "data-testid": h, children: u }, f)) });
|
|
7887
|
-
},
|
|
7934
|
+
}, $u = ({ className: t, message: e, type: n }) => /* @__PURE__ */ w(
|
|
7888
7935
|
"div",
|
|
7889
7936
|
{
|
|
7890
7937
|
className: G("layout-notification", `layout-notification-${n}`, t),
|
|
7891
7938
|
"data-testid": "layout-notification",
|
|
7892
7939
|
children: [
|
|
7893
|
-
/* @__PURE__ */ a(ce, { size: 12, name:
|
|
7940
|
+
/* @__PURE__ */ a(ce, { size: 12, name: zu[n] }),
|
|
7894
7941
|
/* @__PURE__ */ a("span", { "data-testid": "layout-notification-message", children: e })
|
|
7895
7942
|
]
|
|
7896
7943
|
}
|
|
7897
|
-
),
|
|
7898
|
-
const t = Le(null), [e, n] =
|
|
7944
|
+
), Gu = () => {
|
|
7945
|
+
const t = Le(null), [e, n] = z(!1), [r, o] = z(null), i = ha(), { defaultLayout: s, selectedLayout: c } = Pt(), [l, u] = z("");
|
|
7899
7946
|
return te(() => {
|
|
7900
7947
|
if (!e)
|
|
7901
7948
|
return;
|
|
@@ -7929,7 +7976,7 @@ const Lu = (t, e, n) => {
|
|
|
7929
7976
|
children: [
|
|
7930
7977
|
/* @__PURE__ */ a("span", { className: G("name", { hidden: e }), "data-testid": "selected-layout-name", children: c?.name || "No selected layout" }),
|
|
7931
7978
|
/* @__PURE__ */ w("div", { className: "flex ai-center", "data-testid": "layout-actions-and-toggle", children: [
|
|
7932
|
-
!e && /* @__PURE__ */ a(
|
|
7979
|
+
!e && /* @__PURE__ */ a(So, { inputValue: l, setNotification: o }),
|
|
7933
7980
|
/* @__PURE__ */ a(
|
|
7934
7981
|
ce,
|
|
7935
7982
|
{
|
|
@@ -7955,10 +8002,10 @@ const Lu = (t, e, n) => {
|
|
|
7955
8002
|
"data-testid": "layout-name-input"
|
|
7956
8003
|
}
|
|
7957
8004
|
),
|
|
7958
|
-
/* @__PURE__ */ a(
|
|
8005
|
+
/* @__PURE__ */ a(So, { className: "group", inputValue: l, setNotification: o })
|
|
7959
8006
|
] }),
|
|
7960
8007
|
/* @__PURE__ */ a(
|
|
7961
|
-
|
|
8008
|
+
Bu,
|
|
7962
8009
|
{
|
|
7963
8010
|
layouts: i.map((p) => ({
|
|
7964
8011
|
...p,
|
|
@@ -7969,7 +8016,7 @@ const Lu = (t, e, n) => {
|
|
|
7969
8016
|
)
|
|
7970
8017
|
] }) }),
|
|
7971
8018
|
r ? /* @__PURE__ */ a(
|
|
7972
|
-
|
|
8019
|
+
$u,
|
|
7973
8020
|
{
|
|
7974
8021
|
className: G({ "ms-8 me-8": e }),
|
|
7975
8022
|
message: r.message,
|
|
@@ -7977,10 +8024,10 @@ const Lu = (t, e, n) => {
|
|
|
7977
8024
|
}
|
|
7978
8025
|
) : /* @__PURE__ */ a("div", { className: "powered-by", children: "Powered by io.Connect Browser" })
|
|
7979
8026
|
] });
|
|
7980
|
-
},
|
|
8027
|
+
}, Ku = (t) => {
|
|
7981
8028
|
const e = new Date(t), n = e.getHours(), r = e.getMinutes().toString().padStart(2, "0"), o = e.getSeconds().toString().padStart(2, "0"), i = n >= 12 ? "PM" : "AM", s = e.getMonth() + 1, c = e.getDate(), l = e.getFullYear();
|
|
7982
8029
|
return `${n % 12}:${r}:${o} ${i} ${s}/${c}/${l}`;
|
|
7983
|
-
},
|
|
8030
|
+
}, qu = (t) => {
|
|
7984
8031
|
const { severity: e = "None", id: n, timestamp: r, title: o, body: i, actions: s } = t.notificationData, c = ne(ie), l = () => {
|
|
7985
8032
|
c && c.notifications.clear(n).catch(console.error);
|
|
7986
8033
|
}, u = async (p) => {
|
|
@@ -8005,7 +8052,7 @@ const Lu = (t, e, n) => {
|
|
|
8005
8052
|
"div",
|
|
8006
8053
|
{
|
|
8007
8054
|
className: "notifications-list-item",
|
|
8008
|
-
style: { borderLeftColor:
|
|
8055
|
+
style: { borderLeftColor: ma[e] },
|
|
8009
8056
|
onClick: u,
|
|
8010
8057
|
"data-testid": "notification-container",
|
|
8011
8058
|
children: [
|
|
@@ -8025,22 +8072,22 @@ const Lu = (t, e, n) => {
|
|
|
8025
8072
|
)
|
|
8026
8073
|
] }),
|
|
8027
8074
|
i && /* @__PURE__ */ a("p", { "data-testid": "notification-body", children: i }),
|
|
8028
|
-
r && /* @__PURE__ */ a("p", { "data-testid": "notification-timestamp", children:
|
|
8029
|
-
f && /* @__PURE__ */ a(
|
|
8075
|
+
r && /* @__PURE__ */ a("p", { "data-testid": "notification-timestamp", children: Ku(r) }),
|
|
8076
|
+
f && /* @__PURE__ */ a(Sr, { className: "notification-actions", "data-testid": "notification-actions", items: f })
|
|
8030
8077
|
]
|
|
8031
8078
|
}
|
|
8032
8079
|
);
|
|
8033
8080
|
}, Di = (t) => {
|
|
8034
|
-
const { className: e } = t, n =
|
|
8081
|
+
const { className: e } = t, n = Vo().length;
|
|
8035
8082
|
return n > 0 ? /* @__PURE__ */ a("span", { className: G("notifications-badge", e), "data-testid": "notifications-badge", children: n < 10 ? n : "9+" }) : null;
|
|
8036
|
-
},
|
|
8083
|
+
}, Yu = (t) => {
|
|
8037
8084
|
const { className: e, iconSize: n = 24, ...r } = t;
|
|
8038
8085
|
return /* @__PURE__ */ w("div", { className: G(e, "notifications-icon"), "data-testid": "notifications-icon", ...r, children: [
|
|
8039
8086
|
/* @__PURE__ */ a(ce, { size: n, name: "bell" }),
|
|
8040
8087
|
/* @__PURE__ */ a(Di, {})
|
|
8041
8088
|
] });
|
|
8042
|
-
},
|
|
8043
|
-
const { onNotificationsSort: t, sortedNotifications: e } =
|
|
8089
|
+
}, Xu = () => {
|
|
8090
|
+
const { onNotificationsSort: t, sortedNotifications: e } = ba(), n = ne(ie), r = he(() => {
|
|
8044
8091
|
n && n.notifications.clearAll().catch(console.error);
|
|
8045
8092
|
}, [n]);
|
|
8046
8093
|
return /* @__PURE__ */ w("div", { className: "notifications-panel", "data-testid": "notifications-panel", children: [
|
|
@@ -8051,7 +8098,7 @@ const Lu = (t, e, n) => {
|
|
|
8051
8098
|
")"
|
|
8052
8099
|
] }) }),
|
|
8053
8100
|
/* @__PURE__ */ a(
|
|
8054
|
-
|
|
8101
|
+
Sr,
|
|
8055
8102
|
{
|
|
8056
8103
|
items: [
|
|
8057
8104
|
{
|
|
@@ -8066,10 +8113,10 @@ const Lu = (t, e, n) => {
|
|
|
8066
8113
|
}
|
|
8067
8114
|
)
|
|
8068
8115
|
] }),
|
|
8069
|
-
e.length ? /* @__PURE__ */ a("div", { className: "notifications-list", "data-testid": "notifications-list", children: e.map((o) => /* @__PURE__ */ a(
|
|
8116
|
+
e.length ? /* @__PURE__ */ a("div", { className: "notifications-list", "data-testid": "notifications-list", children: e.map((o) => /* @__PURE__ */ a(qu, { notificationData: o }, o.id)) }) : /* @__PURE__ */ a("div", { className: "no-notifications", children: "No notifications" }),
|
|
8070
8117
|
/* @__PURE__ */ a("div", { className: "footer", "data-testid": "notifications-panel-footer", children: /* @__PURE__ */ a(bn, { children: "Clear All", onClick: r }) })
|
|
8071
8118
|
] });
|
|
8072
|
-
},
|
|
8119
|
+
}, Ju = ({ user: t }) => {
|
|
8073
8120
|
const e = ne(ie), n = t?.username || "N A";
|
|
8074
8121
|
return /* @__PURE__ */ w("div", { className: "flex info info-top", children: [
|
|
8075
8122
|
/* @__PURE__ */ w("div", { children: [
|
|
@@ -8082,8 +8129,8 @@ const Lu = (t, e, n) => {
|
|
|
8082
8129
|
] }),
|
|
8083
8130
|
/* @__PURE__ */ a("div", { className: "flex badge", children: Mi(n) })
|
|
8084
8131
|
] });
|
|
8085
|
-
},
|
|
8086
|
-
const t = ne(ie), [e, n] =
|
|
8132
|
+
}, Qu = () => {
|
|
8133
|
+
const t = ne(ie), [e, n] = z([]);
|
|
8087
8134
|
return te(() => {
|
|
8088
8135
|
t && t.themes?.list().then((o) => n(o)).catch(console.warn);
|
|
8089
8136
|
}, [t]), /* @__PURE__ */ w("div", { className: "info info-middle", children: [
|
|
@@ -8091,7 +8138,7 @@ const Lu = (t, e, n) => {
|
|
|
8091
8138
|
/* @__PURE__ */ w("div", { className: "flex ai-center", children: [
|
|
8092
8139
|
/* @__PURE__ */ a("label", { style: { textAlign: "right", width: "40%" }, children: "Theme" }),
|
|
8093
8140
|
/* @__PURE__ */ a("div", { style: { width: "60%", marginLeft: "auto" }, children: /* @__PURE__ */ a(
|
|
8094
|
-
|
|
8141
|
+
Sr,
|
|
8095
8142
|
{
|
|
8096
8143
|
onItemClick: async (o, i) => {
|
|
8097
8144
|
i.name && t.themes?.select(i.name).catch(console.warn);
|
|
@@ -8104,7 +8151,7 @@ const Lu = (t, e, n) => {
|
|
|
8104
8151
|
) })
|
|
8105
8152
|
] })
|
|
8106
8153
|
] });
|
|
8107
|
-
},
|
|
8154
|
+
}, ed = ({ title: t, description: e, links: n = [], onLogout: r, user: o }) => {
|
|
8108
8155
|
const [i, s] = fn("sessionStorage", Uo, oi), c = ne(ie), l = async () => {
|
|
8109
8156
|
try {
|
|
8110
8157
|
r?.();
|
|
@@ -8119,14 +8166,14 @@ const Lu = (t, e, n) => {
|
|
|
8119
8166
|
/* @__PURE__ */ a("ul", { children: n.map(({ children: u, ...f }) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a("a", { ...f, children: u }) }, f.href)) }),
|
|
8120
8167
|
o?.id && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(bn, { onClick: l, children: "Log Out" }) })
|
|
8121
8168
|
] });
|
|
8122
|
-
},
|
|
8123
|
-
/* @__PURE__ */ a(
|
|
8124
|
-
/* @__PURE__ */ a(
|
|
8125
|
-
/* @__PURE__ */ a(
|
|
8126
|
-
] }),
|
|
8169
|
+
}, td = ({ onLogout: t, user: e }) => /* @__PURE__ */ w(Ee, { children: [
|
|
8170
|
+
/* @__PURE__ */ a(Ju, { user: e }),
|
|
8171
|
+
/* @__PURE__ */ a(Qu, {}),
|
|
8172
|
+
/* @__PURE__ */ a(ed, { onLogout: t, user: e })
|
|
8173
|
+
] }), nd = (t) => {
|
|
8127
8174
|
const { initials: e, className: n, ...r } = t;
|
|
8128
8175
|
return /* @__PURE__ */ a("div", { className: G(n, "user-panel-icon"), ...r, children: e });
|
|
8129
|
-
},
|
|
8176
|
+
}, Po = ({ children: t, closeFn: e, open: n = !1, showCloseButton: r = !0 }) => {
|
|
8130
8177
|
const o = Le(null);
|
|
8131
8178
|
return te(() => {
|
|
8132
8179
|
n ? o.current?.showModal() : o.current?.close();
|
|
@@ -8147,8 +8194,8 @@ const Lu = (t, e, n) => {
|
|
|
8147
8194
|
}
|
|
8148
8195
|
);
|
|
8149
8196
|
};
|
|
8150
|
-
function
|
|
8151
|
-
const { open: e, setOpen: n, onLogout: r, className: o, components: i = {}, user: s, ...c } = t, [l, u] =
|
|
8197
|
+
function rd(t) {
|
|
8198
|
+
const { open: e, setOpen: n, onLogout: r, className: o, components: i = {}, user: s, ...c } = t, [l, u] = z(""), [f, p] = z(!1), [d, h] = z(!1), m = Le(null), v = i?.NotificationsPanel !== null, g = i?.UserPanel !== null, b = i?.NotificationsPanel ?? Xu, x = i?.UserPanel ?? td;
|
|
8152
8199
|
te(() => {
|
|
8153
8200
|
if (e) {
|
|
8154
8201
|
m.current?.focus();
|
|
@@ -8160,14 +8207,14 @@ function Xu(t) {
|
|
|
8160
8207
|
u(I.target.value);
|
|
8161
8208
|
}, O = () => {
|
|
8162
8209
|
u("");
|
|
8163
|
-
}, y = i.Sections ? /* @__PURE__ */ a(i.Sections, {}) : i.sections,
|
|
8164
|
-
return /* @__PURE__ */ w(
|
|
8210
|
+
}, y = i.Sections ? /* @__PURE__ */ a(i.Sections, {}) : i.sections, P = /* @__PURE__ */ a(al, { children: /* @__PURE__ */ a("ul", { children: y ?? /* @__PURE__ */ a(Vu, {}) }) });
|
|
8211
|
+
return /* @__PURE__ */ w(tc, { setOpen: n, isOpen: e, children: [
|
|
8165
8212
|
/* @__PURE__ */ w("div", { className: G(o), ...c, children: [
|
|
8166
8213
|
/* @__PURE__ */ w("header", { children: [
|
|
8167
|
-
/* @__PURE__ */ a(
|
|
8214
|
+
/* @__PURE__ */ a(ju, { ref: m, searchTerm: l, onSearch: E, onClear: O }),
|
|
8168
8215
|
/* @__PURE__ */ w("div", { className: "action-area", children: [
|
|
8169
8216
|
v && /* @__PURE__ */ a(
|
|
8170
|
-
|
|
8217
|
+
Yu,
|
|
8171
8218
|
{
|
|
8172
8219
|
"aria-label": "Notifications",
|
|
8173
8220
|
role: "button",
|
|
@@ -8175,7 +8222,7 @@ function Xu(t) {
|
|
|
8175
8222
|
}
|
|
8176
8223
|
),
|
|
8177
8224
|
g && /* @__PURE__ */ a(
|
|
8178
|
-
|
|
8225
|
+
nd,
|
|
8179
8226
|
{
|
|
8180
8227
|
initials: Mi(s?.username || "N A"),
|
|
8181
8228
|
"aria-label": "Profile and Settings",
|
|
@@ -8186,22 +8233,22 @@ function Xu(t) {
|
|
|
8186
8233
|
] }),
|
|
8187
8234
|
/* @__PURE__ */ a(ce, { className: "btn-close io-btn io-btn-icon", size: 16, name: "close", handleClick: () => n(!1) })
|
|
8188
8235
|
] }),
|
|
8189
|
-
/* @__PURE__ */ a("main", { children: l.trim().length < 3 ?
|
|
8190
|
-
/* @__PURE__ */ a(
|
|
8236
|
+
/* @__PURE__ */ a("main", { children: l.trim().length < 3 ? P : /* @__PURE__ */ a(Fu, { searchTerm: l }) }),
|
|
8237
|
+
/* @__PURE__ */ a(Gu, {})
|
|
8191
8238
|
] }),
|
|
8192
|
-
v && /* @__PURE__ */ a(
|
|
8193
|
-
g && /* @__PURE__ */ a(
|
|
8239
|
+
v && /* @__PURE__ */ a(Po, { open: f, closeFn: () => p(!1), children: /* @__PURE__ */ a(b, {}) }),
|
|
8240
|
+
g && /* @__PURE__ */ a(Po, { open: d, closeFn: () => h(!1), children: /* @__PURE__ */ a(x, { onLogout: r, user: s }) })
|
|
8194
8241
|
] });
|
|
8195
8242
|
}
|
|
8196
|
-
const
|
|
8197
|
-
/* @__PURE__ */ a(
|
|
8243
|
+
const od = () => /* @__PURE__ */ w(Ee, { children: [
|
|
8244
|
+
/* @__PURE__ */ a(Vi, { frameId: "" }),
|
|
8198
8245
|
/* @__PURE__ */ a(Di, {})
|
|
8199
|
-
] }),
|
|
8200
|
-
workspaceLogo:
|
|
8246
|
+
] }), id = "_workspaceLogo_t3m7s_1", To = {
|
|
8247
|
+
workspaceLogo: id,
|
|
8201
8248
|
"launchpad-popup": "_launchpad-popup_t3m7s_9",
|
|
8202
8249
|
"slide-in": "_slide-in_t3m7s_32"
|
|
8203
|
-
},
|
|
8204
|
-
const [e, n] =
|
|
8250
|
+
}, ad = (t) => {
|
|
8251
|
+
const [e, n] = z(!1), r = Le(null), o = Le(null), { icon: i, children: s } = t;
|
|
8205
8252
|
return te(() => {
|
|
8206
8253
|
if (!e)
|
|
8207
8254
|
return;
|
|
@@ -8228,56 +8275,56 @@ const Ju = () => /* @__PURE__ */ w(Ee, { children: [
|
|
|
8228
8275
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
8229
8276
|
"div",
|
|
8230
8277
|
{
|
|
8231
|
-
className: G(
|
|
8232
|
-
[
|
|
8278
|
+
className: G(To["launchpad-popup"], {
|
|
8279
|
+
[To["slide-in"]]: e
|
|
8233
8280
|
}),
|
|
8234
8281
|
children: s({ open: e, setOpen: n })
|
|
8235
8282
|
}
|
|
8236
8283
|
) })
|
|
8237
8284
|
] });
|
|
8238
|
-
},
|
|
8285
|
+
}, sd = (t) => {
|
|
8239
8286
|
const { icon: e, components: n, user: r, onLogout: o } = t;
|
|
8240
|
-
return /* @__PURE__ */ a(
|
|
8287
|
+
return /* @__PURE__ */ a(ad, { icon: e ?? /* @__PURE__ */ a(od, {}), children: ({ open: i, setOpen: s }) => /* @__PURE__ */ a(rd, { open: i, setOpen: s, components: n, user: r, onLogout: o }) });
|
|
8241
8288
|
};
|
|
8242
8289
|
export {
|
|
8243
|
-
|
|
8244
|
-
|
|
8245
|
-
|
|
8290
|
+
sl as ApplicationsSection,
|
|
8291
|
+
du as Auth0LoginForm,
|
|
8292
|
+
fu as Auth0LoginPage,
|
|
8246
8293
|
xr as BaseSection,
|
|
8247
|
-
|
|
8248
|
-
|
|
8249
|
-
|
|
8294
|
+
qi as BaseSectionHeader,
|
|
8295
|
+
Js as BaseSectionItem,
|
|
8296
|
+
wl as BrowserNotSupported,
|
|
8250
8297
|
bn as Button,
|
|
8251
|
-
|
|
8252
|
-
|
|
8298
|
+
Sr as ButtonGroup,
|
|
8299
|
+
Xs as ContextMenu,
|
|
8253
8300
|
ri as DropdownButton,
|
|
8254
|
-
|
|
8255
|
-
|
|
8256
|
-
|
|
8301
|
+
Ol as FavoritesSection,
|
|
8302
|
+
pd as IOConnectHome,
|
|
8303
|
+
xl as IOConnectHomeProvider,
|
|
8257
8304
|
ce as Icon,
|
|
8258
8305
|
jo as ImgIcon,
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
|
|
8306
|
+
rd as Launchpad,
|
|
8307
|
+
sd as LaunchpadSlidePanel,
|
|
8308
|
+
Gu as LayoutsPanel,
|
|
8309
|
+
od as Logo,
|
|
8310
|
+
uu as LogoutPage,
|
|
8311
|
+
qu as Notification,
|
|
8265
8312
|
Di as NotificationsBadge,
|
|
8266
|
-
|
|
8267
|
-
|
|
8313
|
+
Yu as NotificationsIcon,
|
|
8314
|
+
Xu as NotificationsPanel,
|
|
8268
8315
|
Rr as PermissionsSetup,
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8272
|
-
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8316
|
+
ju as SearchBar,
|
|
8317
|
+
Fu as SearchResults,
|
|
8318
|
+
kr as Section,
|
|
8319
|
+
Qu as SettingsCard,
|
|
8320
|
+
hu as SimpleLoginPage,
|
|
8321
|
+
ad as SlidePanel,
|
|
8322
|
+
ed as SupportCard,
|
|
8323
|
+
td as UserPanel,
|
|
8324
|
+
nd as UserPanelIcon,
|
|
8325
|
+
Hu as WorkspacesSection,
|
|
8279
8326
|
fr as useFavoriteEntities,
|
|
8280
8327
|
ut as useIOConnectHome,
|
|
8281
|
-
|
|
8328
|
+
Du as useIsBrowserSupported
|
|
8282
8329
|
};
|
|
8283
8330
|
//# sourceMappingURL=index.mjs.map
|