@interopio/home-ui-react 1.2.7 → 1.2.8
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/README.md +57 -308
- package/index.css +1 -1
- package/index.d.ts +3 -0
- package/index.js +11 -13
- package/index.js.map +1 -1
- package/index.mjs +682 -687
- package/index.mjs.map +1 -1
- package/lib/home-app-workspace/launchpad-access.d.ts +6 -0
- package/lib/home-app-workspace/workspace-components-context.d.ts +8 -5
- package/lib/io-connect-home/types.d.ts +1 -2
- package/package.json +1 -1
- package/images/initial-setup.gif +0 -0
- package/images/manual-permissions.gif +0 -0
- package/lib/home-app-workspace/home-app-workspace-logo-area.d.ts +0 -1
package/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as s, jsxs as b, Fragment as be } from "react/jsx-runtime";
|
|
2
2
|
import * as Qe from "react";
|
|
3
|
-
import Oe, { forwardRef as ur, useState as z, useContext as ne, useEffect as Y, useCallback as he, useMemo as Ge, useRef as Me, createContext as Zt, Component as
|
|
3
|
+
import Oe, { forwardRef as ur, useState as z, useContext as ne, useEffect as Y, useCallback as he, useMemo as Ge, useRef as Me, createContext as Zt, Component as Io, useReducer as Un } from "react";
|
|
4
4
|
import { IOConnectContext as ie, IOConnectProvider as dr } from "@interopio/react-hooks";
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
5
|
+
import Fi, { getFrameId as Wi, showAddApplicationPopup as Hi, AddWindowButton as Vi, GroupHeaderButtons as zi, Logo as Zi } from "@interopio/workspaces-ui-react";
|
|
6
|
+
import * as Bi from "react-dom";
|
|
7
7
|
import Yt from "react-dom";
|
|
8
8
|
const Dt = (t) => "items" in t, $e = {
|
|
9
9
|
APPLICATION: "application",
|
|
10
10
|
WORKSPACE: "workspace",
|
|
11
11
|
LAYOUT: "layout"
|
|
12
|
-
},
|
|
12
|
+
}, No = [
|
|
13
13
|
{
|
|
14
14
|
name: "openInNewWindow",
|
|
15
15
|
displayName: "Open in New Window"
|
|
@@ -18,7 +18,7 @@ const Dt = (t) => "items" in t, $e = {
|
|
|
18
18
|
name: "openInNewWorkspace",
|
|
19
19
|
displayName: "Open in New Workspace"
|
|
20
20
|
}
|
|
21
|
-
],
|
|
21
|
+
], Ao = [
|
|
22
22
|
{
|
|
23
23
|
name: "openInNewFrame",
|
|
24
24
|
displayName: "Open in New Frame"
|
|
@@ -33,7 +33,7 @@ const Dt = (t) => "items" in t, $e = {
|
|
|
33
33
|
DISABLED: "disabled"
|
|
34
34
|
}, hn = new Intl.Collator(void 0, {
|
|
35
35
|
sensitivity: "base"
|
|
36
|
-
}),
|
|
36
|
+
}), Ro = (t, e) => hn.compare(t.title, e.title), Lo = (t, e) => hn.compare(e.title, t.title), fr = (t) => {
|
|
37
37
|
const { items: e, sortOrder: n, ascendingCompare: r, descendingCompare: o } = t;
|
|
38
38
|
if (n === Ft.DISABLED)
|
|
39
39
|
return e;
|
|
@@ -58,10 +58,10 @@ const Dt = (t) => "items" in t, $e = {
|
|
|
58
58
|
...i
|
|
59
59
|
}
|
|
60
60
|
];
|
|
61
|
-
},
|
|
62
|
-
const e =
|
|
61
|
+
}, Mo = (t) => t.title || t.name, on = (t) => {
|
|
62
|
+
const e = Mo(t), n = t.userProperties.folder;
|
|
63
63
|
return n ? `${n}/${e}` : e;
|
|
64
|
-
},
|
|
64
|
+
}, $i = (t, e) => hn.compare(on(t), on(e)), Gi = (t, e) => hn.compare(on(e), on(t)), Ki = (t, e, n) => {
|
|
65
65
|
const { isSectionCollapsible: r, sortOrder: o = Ft.ASCENDING, ...i } = n;
|
|
66
66
|
return {
|
|
67
67
|
id: "applications-section",
|
|
@@ -69,17 +69,17 @@ const Dt = (t) => "items" in t, $e = {
|
|
|
69
69
|
items: fr({
|
|
70
70
|
items: t,
|
|
71
71
|
sortOrder: o,
|
|
72
|
-
ascendingCompare:
|
|
73
|
-
descendingCompare:
|
|
72
|
+
ascendingCompare: $i,
|
|
73
|
+
descendingCompare: Gi
|
|
74
74
|
}).reduce((l, u) => {
|
|
75
75
|
const f = {
|
|
76
76
|
id: u.name,
|
|
77
|
-
title:
|
|
77
|
+
title: Mo(u),
|
|
78
78
|
description: u.caption,
|
|
79
79
|
type: $e.APPLICATION,
|
|
80
80
|
iconSrc: u.icon,
|
|
81
81
|
isOpen: e[u.name]?.length > 0,
|
|
82
|
-
contextMenuActions:
|
|
82
|
+
contextMenuActions: No
|
|
83
83
|
}, p = u.userProperties.folder;
|
|
84
84
|
return p ? Fn(l, f, p, n) : [...l, f];
|
|
85
85
|
}, []),
|
|
@@ -87,7 +87,7 @@ const Dt = (t) => "items" in t, $e = {
|
|
|
87
87
|
...i
|
|
88
88
|
};
|
|
89
89
|
};
|
|
90
|
-
var
|
|
90
|
+
var qi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Wn = {}, Yi = {
|
|
91
91
|
get exports() {
|
|
92
92
|
return Wn;
|
|
93
93
|
},
|
|
@@ -129,15 +129,15 @@ var Ki = 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
|
+
})(Yi);
|
|
133
133
|
const K = Wn;
|
|
134
|
-
const
|
|
134
|
+
const Do = (t) => t.key === "Enter" || t.key === " ", Ct = (t, e) => typeof t > "u" ? {} : {
|
|
135
135
|
tabIndex: 0,
|
|
136
136
|
onClick: t,
|
|
137
137
|
onKeyDown: (n) => {
|
|
138
|
-
|
|
138
|
+
Do(n) && (n.preventDefault(), t?.(n)), e?.(n);
|
|
139
139
|
}
|
|
140
|
-
},
|
|
140
|
+
}, jo = ({ event: t, currentIndex: e, moveFocus: n, min: r, max: o, onClose: i }) => {
|
|
141
141
|
switch (t.key) {
|
|
142
142
|
case "ArrowUp": {
|
|
143
143
|
n(Math.max(e - 1, r));
|
|
@@ -188,7 +188,7 @@ const jo = (t) => t.key === "Enter" || t.key === " ", Ct = (t, e) => typeof t >
|
|
|
188
188
|
}
|
|
189
189
|
);
|
|
190
190
|
});
|
|
191
|
-
function
|
|
191
|
+
function Uo(t) {
|
|
192
192
|
const { size: e = 16, alt: n = "Image icon", className: r, ...o } = t;
|
|
193
193
|
return /* @__PURE__ */ s(
|
|
194
194
|
"img",
|
|
@@ -201,7 +201,7 @@ function Fo(t) {
|
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const Xi = (t) => {
|
|
205
205
|
const {
|
|
206
206
|
className: e,
|
|
207
207
|
iconSrc: n,
|
|
@@ -214,7 +214,7 @@ const Yi = (t) => {
|
|
|
214
214
|
} = t;
|
|
215
215
|
return /* @__PURE__ */ b("h4", { className: K(e, "io-list-header"), "data-testid": "base-section-header", ...l, children: [
|
|
216
216
|
c && /* @__PURE__ */ s(se, { size: 8, name: "" }),
|
|
217
|
-
n ? /* @__PURE__ */ s(
|
|
217
|
+
n ? /* @__PURE__ */ s(Uo, { className: "section-img-icon", src: n, alt: `${o} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ s(se, { className: "section-icon", name: r, "data-testid": "icon" }),
|
|
218
218
|
o,
|
|
219
219
|
a && /* @__PURE__ */ s(
|
|
220
220
|
se,
|
|
@@ -226,7 +226,7 @@ const Yi = (t) => {
|
|
|
226
226
|
}
|
|
227
227
|
)
|
|
228
228
|
] });
|
|
229
|
-
},
|
|
229
|
+
}, Ji = () => {
|
|
230
230
|
const [t, e] = z([]), n = ne(ie);
|
|
231
231
|
return Y(() => {
|
|
232
232
|
if (!n)
|
|
@@ -245,7 +245,7 @@ const Yi = (t) => {
|
|
|
245
245
|
}), a = [r, i, o];
|
|
246
246
|
return () => a.forEach((c) => c());
|
|
247
247
|
}, [n]), t;
|
|
248
|
-
},
|
|
248
|
+
}, Qi = () => {
|
|
249
249
|
const [t, e] = z({}), n = ne(ie);
|
|
250
250
|
return Y(() => {
|
|
251
251
|
if (!n)
|
|
@@ -268,7 +268,7 @@ const Yi = (t) => {
|
|
|
268
268
|
}), i = [r, o];
|
|
269
269
|
return () => i.forEach((a) => a());
|
|
270
270
|
}, [n]), t;
|
|
271
|
-
},
|
|
271
|
+
}, Fo = "interopio_home_ui_selected_layout", ea = "interopio_home_ui_auth0_validation_error", ta = "interopio_home_ui_favorite_entities", na = "interopio_home_ui_user", Bt = (t, e, n) => {
|
|
272
272
|
const [r, o] = z(() => {
|
|
273
273
|
try {
|
|
274
274
|
const c = window[t].getItem(e);
|
|
@@ -311,21 +311,21 @@ var fe = function(t) {
|
|
|
311
311
|
return { ok: !0, result: t };
|
|
312
312
|
}, ue = function(t) {
|
|
313
313
|
return { ok: !1, error: t };
|
|
314
|
-
},
|
|
314
|
+
}, ra = function(t) {
|
|
315
315
|
return t.ok === !0 ? Promise.resolve(t.result) : Promise.reject(t.error);
|
|
316
|
-
},
|
|
316
|
+
}, oa = function(t, e) {
|
|
317
317
|
return e.ok === !0 ? e.result : t;
|
|
318
|
-
},
|
|
318
|
+
}, ia = function(t) {
|
|
319
319
|
if (t.ok === !0)
|
|
320
320
|
return t.result;
|
|
321
321
|
throw t.error;
|
|
322
|
-
},
|
|
322
|
+
}, aa = function(t, e) {
|
|
323
323
|
return e.ok === !0 ? fe(t(e.result)) : e;
|
|
324
|
-
},
|
|
324
|
+
}, jr = function(t, e, n) {
|
|
325
325
|
return e.ok === !1 ? e : n.ok === !1 ? n : fe(t(e.result, n.result));
|
|
326
326
|
}, kn = function(t, e) {
|
|
327
327
|
return e.ok === !0 ? e : ue(t(e.error));
|
|
328
|
-
},
|
|
328
|
+
}, sa = function(t, e) {
|
|
329
329
|
return e.ok === !0 ? t(e.result) : e;
|
|
330
330
|
};
|
|
331
331
|
/*! *****************************************************************************
|
|
@@ -352,7 +352,7 @@ var Hn = function() {
|
|
|
352
352
|
return e;
|
|
353
353
|
}, Hn.apply(this, arguments);
|
|
354
354
|
};
|
|
355
|
-
function
|
|
355
|
+
function ca(t, e) {
|
|
356
356
|
var n = {};
|
|
357
357
|
for (var r in t)
|
|
358
358
|
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
@@ -388,7 +388,7 @@ var Lt = function(t) {
|
|
|
388
388
|
return Array.isArray(t);
|
|
389
389
|
}, Xt = function(t) {
|
|
390
390
|
return typeof t == "object" && t !== null && !Lt(t);
|
|
391
|
-
},
|
|
391
|
+
}, la = function(t) {
|
|
392
392
|
switch (typeof t) {
|
|
393
393
|
case "string":
|
|
394
394
|
return "a string";
|
|
@@ -404,13 +404,13 @@ var Lt = function(t) {
|
|
|
404
404
|
return JSON.stringify(t);
|
|
405
405
|
}
|
|
406
406
|
}, Ze = function(t, e) {
|
|
407
|
-
return "expected " + t + ", got " +
|
|
407
|
+
return "expected " + t + ", got " + la(e);
|
|
408
408
|
}, It = function(t) {
|
|
409
409
|
return t.map(function(e) {
|
|
410
410
|
return typeof e == "string" ? "." + e : "[" + e + "]";
|
|
411
411
|
}).join("");
|
|
412
412
|
}, Nt = function(t, e) {
|
|
413
|
-
var n = e.at, r =
|
|
413
|
+
var n = e.at, r = ca(e, ["at"]);
|
|
414
414
|
return Hn({ at: t + (n || "") }, r);
|
|
415
415
|
}, de = (
|
|
416
416
|
/** @class */
|
|
@@ -427,16 +427,16 @@ var Lt = function(t) {
|
|
|
427
427
|
};
|
|
428
428
|
}, n.decode(r));
|
|
429
429
|
}, this.runPromise = function(r) {
|
|
430
|
-
return
|
|
430
|
+
return ra(n.run(r));
|
|
431
431
|
}, this.runWithException = function(r) {
|
|
432
|
-
return
|
|
432
|
+
return ia(n.run(r));
|
|
433
433
|
}, this.map = function(r) {
|
|
434
434
|
return new t(function(o) {
|
|
435
|
-
return
|
|
435
|
+
return aa(r, n.decode(o));
|
|
436
436
|
});
|
|
437
437
|
}, this.andThen = function(r) {
|
|
438
438
|
return new t(function(o) {
|
|
439
|
-
return
|
|
439
|
+
return sa(function(i) {
|
|
440
440
|
return r(i).decode(o);
|
|
441
441
|
}, n.decode(o));
|
|
442
442
|
});
|
|
@@ -487,7 +487,7 @@ var Lt = function(t) {
|
|
|
487
487
|
}, e.decode(o));
|
|
488
488
|
};
|
|
489
489
|
return n.reduce(function(o, i, a) {
|
|
490
|
-
return
|
|
490
|
+
return jr(function(c, l) {
|
|
491
491
|
return c.concat([l]);
|
|
492
492
|
}, o, r(i, a));
|
|
493
493
|
}, fe([]));
|
|
@@ -521,7 +521,7 @@ var Lt = function(t) {
|
|
|
521
521
|
r[o - 2] = arguments[o];
|
|
522
522
|
return new t(function(i) {
|
|
523
523
|
return [e, n].concat(r).reduce(function(a, c) {
|
|
524
|
-
return
|
|
524
|
+
return jr(Object.assign, a, c.decode(i));
|
|
525
525
|
}, fe({}));
|
|
526
526
|
});
|
|
527
527
|
}, t.anyJson = function() {
|
|
@@ -571,7 +571,7 @@ var Lt = function(t) {
|
|
|
571
571
|
});
|
|
572
572
|
}, t.withDefault = function(e, n) {
|
|
573
573
|
return new t(function(r) {
|
|
574
|
-
return fe(
|
|
574
|
+
return fe(oa(e, n.decode(r)));
|
|
575
575
|
});
|
|
576
576
|
}, t.valueAt = function(e, n) {
|
|
577
577
|
return new t(function(r) {
|
|
@@ -611,9 +611,9 @@ var Lt = function(t) {
|
|
|
611
611
|
});
|
|
612
612
|
}, t;
|
|
613
613
|
}()
|
|
614
|
-
), zn = de.string,
|
|
614
|
+
), zn = de.string, ua = de.number, Wo = de.boolean, ye = de.anyJson;
|
|
615
615
|
de.unknownJson;
|
|
616
|
-
var Wt = de.constant, we = de.object,
|
|
616
|
+
var Wt = de.constant, we = de.object, Ho = de.array;
|
|
617
617
|
de.tuple;
|
|
618
618
|
de.dict;
|
|
619
619
|
var $ = de.optional, an = de.oneOf;
|
|
@@ -622,28 +622,28 @@ de.intersection;
|
|
|
622
622
|
de.withDefault;
|
|
623
623
|
de.valueAt;
|
|
624
624
|
de.succeed;
|
|
625
|
-
var
|
|
625
|
+
var da = de.fail;
|
|
626
626
|
de.lazy;
|
|
627
|
-
const me = zn().where((t) => t.length > 0, "Expected a non-empty string"),
|
|
627
|
+
const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), fa = ua().where((t) => t >= 0, "Expected a non-negative number"), Re = (t, e) => {
|
|
628
628
|
const n = typeof t;
|
|
629
|
-
return n === "function" ? ye() :
|
|
630
|
-
},
|
|
629
|
+
return n === "function" ? ye() : da(`The provided argument as ${e} should be of type function, provided: ${typeof n}`);
|
|
630
|
+
}, pa = we({
|
|
631
631
|
name: me,
|
|
632
632
|
displayName: $(me),
|
|
633
|
-
disabled: $(
|
|
634
|
-
}),
|
|
633
|
+
disabled: $(Wo())
|
|
634
|
+
}), ha = we({
|
|
635
635
|
id: me,
|
|
636
636
|
title: me,
|
|
637
637
|
description: $(me),
|
|
638
638
|
icon: $(zn()),
|
|
639
639
|
iconSrc: $(zn()),
|
|
640
|
-
contextMenuActions: $(
|
|
640
|
+
contextMenuActions: $(Ho(pa)),
|
|
641
641
|
type: me
|
|
642
|
-
}),
|
|
642
|
+
}), ma = Ho(ha), pr = () => {
|
|
643
643
|
const [t, e] = Bt(
|
|
644
644
|
"localStorage",
|
|
645
|
-
|
|
646
|
-
|
|
645
|
+
ta,
|
|
646
|
+
ma
|
|
647
647
|
), n = Ge(() => t || [], [t]);
|
|
648
648
|
return { favoriteEntities: n, toggleFavorite: ({ isOpen: i, ...a }) => {
|
|
649
649
|
const c = n.find((u) => u.title === a.title && u.type === a.type), l = c ? n.filter((u) => u !== c) : [a, ...n];
|
|
@@ -651,18 +651,18 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
651
651
|
}, removeFavorite: (i) => {
|
|
652
652
|
e(n.filter((a) => a.id !== i));
|
|
653
653
|
} };
|
|
654
|
-
},
|
|
654
|
+
}, Vo = () => {
|
|
655
655
|
const [t, e] = z(), n = ne(ie);
|
|
656
656
|
return Y(() => {
|
|
657
657
|
if (!n)
|
|
658
658
|
return;
|
|
659
|
-
const r =
|
|
659
|
+
const r = Wi();
|
|
660
660
|
n.workspaces?.waitForFrame(r).then(e).catch((o) => console.error("Failed to get current frame", { error: o }));
|
|
661
661
|
}, [n]), t;
|
|
662
|
-
},
|
|
662
|
+
}, va = () => {
|
|
663
663
|
const t = ne(ie);
|
|
664
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 }));
|
|
665
|
-
},
|
|
665
|
+
}, ga = () => {
|
|
666
666
|
const [t, e] = z([]), n = ne(ie);
|
|
667
667
|
return Y(() => {
|
|
668
668
|
if (!n)
|
|
@@ -680,7 +680,7 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
680
680
|
r = !0, o(), i();
|
|
681
681
|
};
|
|
682
682
|
}, [n]), t;
|
|
683
|
-
},
|
|
683
|
+
}, zo = () => {
|
|
684
684
|
const [t, e] = z([]), n = ne(ie);
|
|
685
685
|
return Y(() => {
|
|
686
686
|
if (!n)
|
|
@@ -694,7 +694,7 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
694
694
|
r(), o();
|
|
695
695
|
};
|
|
696
696
|
}, [n]), t;
|
|
697
|
-
}, Sn = ["None", "Low", "Medium", "High", "Critical"],
|
|
697
|
+
}, Sn = ["None", "Low", "Medium", "High", "Critical"], ya = {
|
|
698
698
|
None: "#616161",
|
|
699
699
|
Low: "#7AC70C",
|
|
700
700
|
Medium: "#E0A900",
|
|
@@ -703,24 +703,24 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
703
703
|
}, Zn = {
|
|
704
704
|
TIMESTAMP: "timestamp",
|
|
705
705
|
SEVERITY: "severity"
|
|
706
|
-
},
|
|
706
|
+
}, Ur = {
|
|
707
707
|
key: Zn.TIMESTAMP,
|
|
708
708
|
descending: !0
|
|
709
|
-
},
|
|
709
|
+
}, ba = (t, e) => [...t].sort((n, r) => (e ? -1 : 1) * ((n.timestamp || 0) - (r.timestamp || 0))), wa = (t, e) => {
|
|
710
710
|
const n = Sn[0];
|
|
711
711
|
return [...t].sort((r, o) => {
|
|
712
712
|
const i = Sn.indexOf(r.severity || n), a = Sn.indexOf(o.severity || n);
|
|
713
713
|
return (e ? -1 : 1) * (i - a);
|
|
714
714
|
});
|
|
715
|
-
},
|
|
716
|
-
[Zn.TIMESTAMP]:
|
|
717
|
-
[Zn.SEVERITY]:
|
|
718
|
-
},
|
|
719
|
-
const t =
|
|
715
|
+
}, Ca = {
|
|
716
|
+
[Zn.TIMESTAMP]: ba,
|
|
717
|
+
[Zn.SEVERITY]: wa
|
|
718
|
+
}, Oa = () => {
|
|
719
|
+
const t = zo(), [e, n] = z(Ur), { key: r, descending: o } = e, i = Ge(() => Ca[r](t, o), [t, r, o]);
|
|
720
720
|
return { onNotificationsSort: he((c) => {
|
|
721
|
-
n((l) => ({ key: c, descending: l.key !== c ?
|
|
721
|
+
n((l) => ({ key: c, descending: l.key !== c ? Ur.descending : !l.descending }));
|
|
722
722
|
}, []), sortedNotifications: i };
|
|
723
|
-
},
|
|
723
|
+
}, Zo = () => {
|
|
724
724
|
const [t, e] = z([]);
|
|
725
725
|
return Y(() => {
|
|
726
726
|
const n = ({ key: i }) => {
|
|
@@ -737,8 +737,8 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
737
737
|
}, mn = {
|
|
738
738
|
CONTROL: "Control",
|
|
739
739
|
SHIFT: "Shift"
|
|
740
|
-
},
|
|
741
|
-
const t = ne(ie), e =
|
|
740
|
+
}, Bo = () => {
|
|
741
|
+
const t = ne(ie), e = Vo();
|
|
742
742
|
return async (n, r) => {
|
|
743
743
|
const o = r === mn.CONTROL ? { newFrame: !0 } : { frameId: e?.id };
|
|
744
744
|
return t.workspaces?.restoreWorkspace(n, o);
|
|
@@ -756,7 +756,7 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
756
756
|
},
|
|
757
757
|
[t]
|
|
758
758
|
);
|
|
759
|
-
},
|
|
759
|
+
}, Ea = (t) => {
|
|
760
760
|
const [e, n] = z([]), [r, o] = z(!0), i = Me(null), a = ne(ie);
|
|
761
761
|
return Y(() => {
|
|
762
762
|
const c = a?.search;
|
|
@@ -788,13 +788,13 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
788
788
|
l.forEach((p) => p());
|
|
789
789
|
};
|
|
790
790
|
}, [a, t]), { resultsToRender: e, isLoading: r };
|
|
791
|
-
},
|
|
791
|
+
}, $o = () => {
|
|
792
792
|
const t = ne(ie);
|
|
793
793
|
return async (e, n) => {
|
|
794
794
|
const r = await t.workspaces?.getWorkspace((c) => c.isSelected === !0), o = r?.children[0];
|
|
795
795
|
return n === mn.CONTROL || !r || o?.type === "window" ? await t.appManager.application(e).start() : await (o?.type === "group" ? o : await (o || r).addGroup()).addWindow({ appName: e });
|
|
796
796
|
};
|
|
797
|
-
},
|
|
797
|
+
}, xa = () => {
|
|
798
798
|
const [t, e] = z([]), n = ne(ie);
|
|
799
799
|
return Y(() => {
|
|
800
800
|
if (!n || !n.workspaces)
|
|
@@ -815,7 +815,7 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
815
815
|
});
|
|
816
816
|
};
|
|
817
817
|
}, [n, t]), t;
|
|
818
|
-
},
|
|
818
|
+
}, ka = () => {
|
|
819
819
|
const [t, e] = z({}), n = ne(ie);
|
|
820
820
|
return Y(() => {
|
|
821
821
|
if (!n)
|
|
@@ -847,12 +847,12 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
847
847
|
}
|
|
848
848
|
})(), () => r.forEach((o) => o?.());
|
|
849
849
|
}, [n]), t;
|
|
850
|
-
},
|
|
850
|
+
}, Sa = (t) => {
|
|
851
851
|
const { io: e, item: n } = t;
|
|
852
852
|
e.appManager.application(n.id).start().catch((r) => {
|
|
853
853
|
console.error("Failed to start application: ", { error: r });
|
|
854
854
|
});
|
|
855
|
-
},
|
|
855
|
+
}, Ta = (t) => {
|
|
856
856
|
const { io: e, item: n, frame: r } = t;
|
|
857
857
|
if (!e.workspaces)
|
|
858
858
|
return;
|
|
@@ -865,20 +865,20 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
865
865
|
i.addGroup().addWindow({ appName: n.id }), i.create().catch((a) => {
|
|
866
866
|
console.error("Failed to create workspace: ", { error: a });
|
|
867
867
|
});
|
|
868
|
-
},
|
|
869
|
-
openInNewWindow:
|
|
870
|
-
openInNewWorkspace:
|
|
871
|
-
},
|
|
872
|
-
const t = ne(ie), e =
|
|
868
|
+
}, _a = {
|
|
869
|
+
openInNewWindow: Sa,
|
|
870
|
+
openInNewWorkspace: Ta
|
|
871
|
+
}, Go = () => {
|
|
872
|
+
const t = ne(ie), e = Vo();
|
|
873
873
|
return (n, r) => {
|
|
874
|
-
|
|
874
|
+
_a[r]({ io: t, item: n, frame: e });
|
|
875
875
|
};
|
|
876
|
-
},
|
|
876
|
+
}, Pa = (t) => {
|
|
877
877
|
const { io: e, item: n } = t;
|
|
878
878
|
e.workspaces && e.workspaces.restoreWorkspace(n.id, { newFrame: !0 }).catch((r) => {
|
|
879
879
|
console.error("Failed to open workspace in new frame: ", { error: r });
|
|
880
880
|
});
|
|
881
|
-
},
|
|
881
|
+
}, Ia = async (t) => {
|
|
882
882
|
const { io: e, item: n, removeFavorite: r } = t;
|
|
883
883
|
if (e.workspaces)
|
|
884
884
|
try {
|
|
@@ -886,30 +886,30 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
886
886
|
} catch (o) {
|
|
887
887
|
console.error("Failed to delete workspace: ", { error: o });
|
|
888
888
|
}
|
|
889
|
-
},
|
|
890
|
-
openInNewFrame:
|
|
891
|
-
delete:
|
|
892
|
-
},
|
|
889
|
+
}, Na = {
|
|
890
|
+
openInNewFrame: Pa,
|
|
891
|
+
delete: Ia
|
|
892
|
+
}, Ko = () => {
|
|
893
893
|
const t = ne(ie), { removeFavorite: e } = pr();
|
|
894
894
|
return (n, r) => {
|
|
895
|
-
|
|
895
|
+
Na[r]({ io: t, item: n, removeFavorite: e });
|
|
896
896
|
};
|
|
897
|
-
},
|
|
897
|
+
}, Aa = (t) => {
|
|
898
898
|
const { layout: e, setDefaultLayout: n } = t;
|
|
899
899
|
n({ name: e.name });
|
|
900
|
-
},
|
|
900
|
+
}, Ra = (t) => {
|
|
901
901
|
const { io: e, layout: n } = t;
|
|
902
902
|
e.layouts.remove("Global", n.name).catch((r) => {
|
|
903
903
|
console.error("Failed to delete layout: ", { error: r });
|
|
904
904
|
});
|
|
905
|
-
},
|
|
906
|
-
setAsDefault:
|
|
907
|
-
delete:
|
|
908
|
-
},
|
|
905
|
+
}, La = {
|
|
906
|
+
setAsDefault: Aa,
|
|
907
|
+
delete: Ra
|
|
908
|
+
}, Ma = () => {
|
|
909
909
|
const t = ne(ie);
|
|
910
910
|
return he(
|
|
911
911
|
(n, r, o) => {
|
|
912
|
-
|
|
912
|
+
La[r]({
|
|
913
913
|
io: t,
|
|
914
914
|
layout: n,
|
|
915
915
|
setDefaultLayout: o
|
|
@@ -918,7 +918,7 @@ const me = zn().where((t) => t.length > 0, "Expected a non-empty string"), da =
|
|
|
918
918
|
[t]
|
|
919
919
|
);
|
|
920
920
|
};
|
|
921
|
-
var sn = {},
|
|
921
|
+
var sn = {}, Da = {
|
|
922
922
|
get exports() {
|
|
923
923
|
return sn;
|
|
924
924
|
},
|
|
@@ -948,11 +948,11 @@ var sn = {}, Ma = {
|
|
|
948
948
|
return Z = Z.replace(/^\s\s*/, i), typeof q === l ? Z : Z.substring(0, S);
|
|
949
949
|
}, qe = function(Z, q) {
|
|
950
950
|
for (var F = 0, te, Xe, Ue, X, W, Fe; F < q.length && !W; ) {
|
|
951
|
-
var xn = q[F],
|
|
951
|
+
var xn = q[F], Dr = q[F + 1];
|
|
952
952
|
for (te = Xe = 0; te < xn.length && !W && xn[te]; )
|
|
953
953
|
if (W = xn[te++].exec(Z), W)
|
|
954
|
-
for (Ue = 0; Ue <
|
|
955
|
-
Fe = W[++Xe], X =
|
|
954
|
+
for (Ue = 0; Ue < Dr.length; Ue++)
|
|
955
|
+
Fe = W[++Xe], X = Dr[Ue], typeof X === u && X.length > 0 ? X.length === 2 ? typeof X[1] == c ? this[X[0]] = X[1].call(this, Fe) : this[X[0]] = X[1] : X.length === 3 ? typeof X[1] === c && !(X[1].exec && X[1].test) ? this[X[0]] = Fe ? X[1].call(this, Fe, X[2]) : r : this[X[0]] = Fe ? Fe.replace(X[1], X[2]) : r : X.length === 4 && (this[X[0]] = Fe ? X[3].call(this, Fe.replace(X[1], X[2])) : r) : this[X] = Fe || r;
|
|
956
956
|
F += 2;
|
|
957
957
|
}
|
|
958
958
|
}, Pt = function(Z, q) {
|
|
@@ -2055,19 +2055,19 @@ var sn = {}, Ma = {
|
|
|
2055
2055
|
ze.ua[F] = q[F];
|
|
2056
2056
|
};
|
|
2057
2057
|
}
|
|
2058
|
-
})(typeof window == "object" ? window :
|
|
2059
|
-
})(
|
|
2060
|
-
const
|
|
2061
|
-
var
|
|
2058
|
+
})(typeof window == "object" ? window : qi);
|
|
2059
|
+
})(Da, sn);
|
|
2060
|
+
const ja = new sn.UAParser(), qo = () => Qe.useMemo(() => ja.getBrowser(), []);
|
|
2061
|
+
var Fr = function(e) {
|
|
2062
2062
|
return e.reduce(function(n, r) {
|
|
2063
2063
|
var o = r[0], i = r[1];
|
|
2064
2064
|
return n[o] = i, n;
|
|
2065
2065
|
}, {});
|
|
2066
|
-
},
|
|
2066
|
+
}, Wr = typeof window < "u" && window.document && window.document.createElement ? Qe.useLayoutEffect : Qe.useEffect, Ee = "top", Ie = "bottom", Ne = "right", xe = "left", vn = "auto", $t = [Ee, Ie, Ne, xe], Ot = "start", Ht = "end", Ua = "clippingParents", Yo = "viewport", At = "popper", Fa = "reference", Hr = /* @__PURE__ */ $t.reduce(function(t, e) {
|
|
2067
2067
|
return t.concat([e + "-" + Ot, e + "-" + Ht]);
|
|
2068
2068
|
}, []), Xo = /* @__PURE__ */ [].concat($t, [vn]).reduce(function(t, e) {
|
|
2069
2069
|
return t.concat([e, e + "-" + Ot, e + "-" + Ht]);
|
|
2070
|
-
}, []),
|
|
2070
|
+
}, []), Wa = "beforeRead", Ha = "read", Va = "afterRead", za = "beforeMain", Za = "main", Ba = "afterMain", $a = "beforeWrite", Ga = "write", Ka = "afterWrite", Bn = [Wa, Ha, Va, za, Za, Ba, $a, Ga, Ka];
|
|
2071
2071
|
function Ve(t) {
|
|
2072
2072
|
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
2073
2073
|
}
|
|
@@ -2088,13 +2088,13 @@ function Se(t) {
|
|
|
2088
2088
|
var e = Ae(t).HTMLElement;
|
|
2089
2089
|
return t instanceof e || t instanceof HTMLElement;
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function mr(t) {
|
|
2092
2092
|
if (typeof ShadowRoot > "u")
|
|
2093
2093
|
return !1;
|
|
2094
2094
|
var e = Ae(t).ShadowRoot;
|
|
2095
2095
|
return t instanceof e || t instanceof ShadowRoot;
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2097
|
+
function qa(t) {
|
|
2098
2098
|
var e = t.state;
|
|
2099
2099
|
Object.keys(e.elements).forEach(function(n) {
|
|
2100
2100
|
var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
|
|
@@ -2104,7 +2104,7 @@ function Ka(t) {
|
|
|
2104
2104
|
}));
|
|
2105
2105
|
});
|
|
2106
2106
|
}
|
|
2107
|
-
function
|
|
2107
|
+
function Ya(t) {
|
|
2108
2108
|
var e = t.state, n = {
|
|
2109
2109
|
popper: {
|
|
2110
2110
|
position: e.options.strategy,
|
|
@@ -2128,12 +2128,12 @@ function qa(t) {
|
|
|
2128
2128
|
});
|
|
2129
2129
|
};
|
|
2130
2130
|
}
|
|
2131
|
-
const
|
|
2131
|
+
const Xa = {
|
|
2132
2132
|
name: "applyStyles",
|
|
2133
2133
|
enabled: !0,
|
|
2134
2134
|
phase: "write",
|
|
2135
|
-
fn:
|
|
2136
|
-
effect:
|
|
2135
|
+
fn: qa,
|
|
2136
|
+
effect: Ya,
|
|
2137
2137
|
requires: ["computeStyles"]
|
|
2138
2138
|
};
|
|
2139
2139
|
function Le(t) {
|
|
@@ -2165,7 +2165,7 @@ function xt(t, e, n) {
|
|
|
2165
2165
|
y: f
|
|
2166
2166
|
};
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function vr(t) {
|
|
2169
2169
|
var e = xt(t), n = t.offsetWidth, r = t.offsetHeight;
|
|
2170
2170
|
return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), {
|
|
2171
2171
|
x: t.offsetLeft,
|
|
@@ -2178,7 +2178,7 @@ function Qo(t, e) {
|
|
|
2178
2178
|
var n = e.getRootNode && e.getRootNode();
|
|
2179
2179
|
if (t.contains(e))
|
|
2180
2180
|
return !0;
|
|
2181
|
-
if (n &&
|
|
2181
|
+
if (n && mr(n)) {
|
|
2182
2182
|
var r = e;
|
|
2183
2183
|
do {
|
|
2184
2184
|
if (r && t.isSameNode(r))
|
|
@@ -2191,7 +2191,7 @@ function Qo(t, e) {
|
|
|
2191
2191
|
function De(t) {
|
|
2192
2192
|
return Ae(t).getComputedStyle(t);
|
|
2193
2193
|
}
|
|
2194
|
-
function
|
|
2194
|
+
function Ja(t) {
|
|
2195
2195
|
return ["table", "td", "th"].indexOf(Ve(t)) >= 0;
|
|
2196
2196
|
}
|
|
2197
2197
|
function et(t) {
|
|
@@ -2207,16 +2207,16 @@ function gn(t) {
|
|
|
2207
2207
|
// $FlowFixMe[prop-missing]
|
|
2208
2208
|
t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2209
2209
|
t.parentNode || // DOM Element detected
|
|
2210
|
-
(
|
|
2210
|
+
(mr(t) ? t.host : null) || // ShadowRoot detected
|
|
2211
2211
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
2212
2212
|
et(t)
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Vr(t) {
|
|
2216
2216
|
return !Se(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
2217
2217
|
De(t).position === "fixed" ? null : t.offsetParent;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function Qa(t) {
|
|
2220
2220
|
var e = /firefox/i.test($n()), n = /Trident/i.test($n());
|
|
2221
2221
|
if (n && Se(t)) {
|
|
2222
2222
|
var r = De(t);
|
|
@@ -2224,7 +2224,7 @@ function Ja(t) {
|
|
|
2224
2224
|
return null;
|
|
2225
2225
|
}
|
|
2226
2226
|
var o = gn(t);
|
|
2227
|
-
for (
|
|
2227
|
+
for (mr(o) && (o = o.host); Se(o) && ["html", "body"].indexOf(Ve(o)) < 0; ) {
|
|
2228
2228
|
var i = De(o);
|
|
2229
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")
|
|
2230
2230
|
return o;
|
|
@@ -2233,17 +2233,17 @@ function Ja(t) {
|
|
|
2233
2233
|
return null;
|
|
2234
2234
|
}
|
|
2235
2235
|
function Gt(t) {
|
|
2236
|
-
for (var e = Ae(t), n =
|
|
2237
|
-
n =
|
|
2238
|
-
return n && (Ve(n) === "html" || Ve(n) === "body" && De(n).position === "static") ? e : n ||
|
|
2236
|
+
for (var e = Ae(t), n = Vr(t); n && Ja(n) && De(n).position === "static"; )
|
|
2237
|
+
n = Vr(n);
|
|
2238
|
+
return n && (Ve(n) === "html" || Ve(n) === "body" && De(n).position === "static") ? e : n || Qa(t) || e;
|
|
2239
2239
|
}
|
|
2240
|
-
function
|
|
2240
|
+
function gr(t) {
|
|
2241
2241
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
2242
2242
|
}
|
|
2243
2243
|
function jt(t, e, n) {
|
|
2244
2244
|
return ct(t, cn(e, n));
|
|
2245
2245
|
}
|
|
2246
|
-
function
|
|
2246
|
+
function es(t, e, n) {
|
|
2247
2247
|
var r = jt(t, e, n);
|
|
2248
2248
|
return r > n ? n : r;
|
|
2249
2249
|
}
|
|
@@ -2263,19 +2263,19 @@ function ni(t, e) {
|
|
|
2263
2263
|
return n[r] = t, n;
|
|
2264
2264
|
}, {});
|
|
2265
2265
|
}
|
|
2266
|
-
var
|
|
2266
|
+
var ts = function(e, n) {
|
|
2267
2267
|
return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
|
|
2268
2268
|
placement: n.placement
|
|
2269
2269
|
})) : e, ti(typeof e != "number" ? e : ni(e, $t));
|
|
2270
2270
|
};
|
|
2271
|
-
function
|
|
2272
|
-
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, c = Le(n.placement), l =
|
|
2271
|
+
function ns(t) {
|
|
2272
|
+
var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, a = n.modifiersData.popperOffsets, c = Le(n.placement), l = gr(c), u = [xe, Ne].indexOf(c) >= 0, f = u ? "height" : "width";
|
|
2273
2273
|
if (!(!i || !a)) {
|
|
2274
|
-
var p =
|
|
2274
|
+
var p = ts(o.padding, n), d = vr(i), h = l === "y" ? Ee : xe, m = l === "y" ? Ie : Ne, v = n.rects.reference[f] + n.rects.reference[l] - a[l] - n.rects.popper[f], g = a[l] - n.rects.reference[l], w = Gt(i), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, E = v / 2 - g / 2, O = p[h], y = x - d[f] - p[m], T = x / 2 - d[f] / 2 + E, I = jt(O, T, y), S = l;
|
|
2275
2275
|
n.modifiersData[r] = (e = {}, e[S] = I, e.centerOffset = I - T, e);
|
|
2276
2276
|
}
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function rs(t) {
|
|
2279
2279
|
var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
|
|
2280
2280
|
if (o != null && !(typeof o == "string" && (o = e.elements.popper.querySelector(o), !o))) {
|
|
2281
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(" "))), !Qo(e.elements.popper, o)) {
|
|
@@ -2285,32 +2285,32 @@ function ns(t) {
|
|
|
2285
2285
|
e.elements.arrow = o;
|
|
2286
2286
|
}
|
|
2287
2287
|
}
|
|
2288
|
-
const
|
|
2288
|
+
const os = {
|
|
2289
2289
|
name: "arrow",
|
|
2290
2290
|
enabled: !0,
|
|
2291
2291
|
phase: "main",
|
|
2292
|
-
fn:
|
|
2293
|
-
effect:
|
|
2292
|
+
fn: ns,
|
|
2293
|
+
effect: rs,
|
|
2294
2294
|
requires: ["popperOffsets"],
|
|
2295
2295
|
requiresIfExists: ["preventOverflow"]
|
|
2296
2296
|
};
|
|
2297
2297
|
function kt(t) {
|
|
2298
2298
|
return t.split("-")[1];
|
|
2299
2299
|
}
|
|
2300
|
-
var
|
|
2300
|
+
var is = {
|
|
2301
2301
|
top: "auto",
|
|
2302
2302
|
right: "auto",
|
|
2303
2303
|
bottom: "auto",
|
|
2304
2304
|
left: "auto"
|
|
2305
2305
|
};
|
|
2306
|
-
function
|
|
2306
|
+
function as(t) {
|
|
2307
2307
|
var e = t.x, n = t.y, r = window, o = r.devicePixelRatio || 1;
|
|
2308
2308
|
return {
|
|
2309
2309
|
x: Et(e * o) / o || 0,
|
|
2310
2310
|
y: Et(n * o) / o || 0
|
|
2311
2311
|
};
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2313
|
+
function zr(t) {
|
|
2314
2314
|
var e, n = t.popper, r = t.popperRect, o = t.placement, i = t.variation, a = t.offsets, c = t.position, l = t.gpuAcceleration, u = t.adaptive, f = t.roundOffsets, p = t.isFixed, d = a.x, h = d === void 0 ? 0 : d, m = a.y, v = m === void 0 ? 0 : m, g = typeof f == "function" ? f({
|
|
2315
2315
|
x: h,
|
|
2316
2316
|
y: v
|
|
@@ -2341,7 +2341,7 @@ function Zr(t) {
|
|
|
2341
2341
|
}
|
|
2342
2342
|
var H = Object.assign({
|
|
2343
2343
|
position: c
|
|
2344
|
-
}, u &&
|
|
2344
|
+
}, u && is), ae = f === !0 ? as({
|
|
2345
2345
|
x: h,
|
|
2346
2346
|
y: v
|
|
2347
2347
|
}) : {
|
|
@@ -2354,7 +2354,7 @@ function Zr(t) {
|
|
|
2354
2354
|
}
|
|
2355
2355
|
return Object.assign({}, H, (e = {}, e[O] = x ? v + "px" : "", e[E] = w ? h + "px" : "", e.transform = "", e));
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function ss(t) {
|
|
2358
2358
|
var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, a = i === void 0 ? !0 : i, c = n.roundOffsets, l = c === void 0 ? !0 : c;
|
|
2359
2359
|
if (process.env.NODE_ENV !== "production") {
|
|
2360
2360
|
var u = De(e.elements.popper).transitionProperty || "";
|
|
@@ -2374,12 +2374,12 @@ function as(t) {
|
|
|
2374
2374
|
gpuAcceleration: o,
|
|
2375
2375
|
isFixed: e.options.strategy === "fixed"
|
|
2376
2376
|
};
|
|
2377
|
-
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, zr(Object.assign({}, f, {
|
|
2378
2378
|
offsets: e.modifiersData.popperOffsets,
|
|
2379
2379
|
position: e.options.strategy,
|
|
2380
2380
|
adaptive: a,
|
|
2381
2381
|
roundOffsets: l
|
|
2382
|
-
})))), 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, zr(Object.assign({}, f, {
|
|
2383
2383
|
offsets: e.modifiersData.arrow,
|
|
2384
2384
|
position: "absolute",
|
|
2385
2385
|
adaptive: !1,
|
|
@@ -2388,17 +2388,17 @@ function as(t) {
|
|
|
2388
2388
|
"data-popper-placement": e.placement
|
|
2389
2389
|
});
|
|
2390
2390
|
}
|
|
2391
|
-
const
|
|
2391
|
+
const cs = {
|
|
2392
2392
|
name: "computeStyles",
|
|
2393
2393
|
enabled: !0,
|
|
2394
2394
|
phase: "beforeWrite",
|
|
2395
|
-
fn:
|
|
2395
|
+
fn: ss,
|
|
2396
2396
|
data: {}
|
|
2397
2397
|
};
|
|
2398
2398
|
var Jt = {
|
|
2399
2399
|
passive: !0
|
|
2400
2400
|
};
|
|
2401
|
-
function
|
|
2401
|
+
function ls(t) {
|
|
2402
2402
|
var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, a = r.resize, c = a === void 0 ? !0 : a, l = Ae(e.elements.popper), u = [].concat(e.scrollParents.reference, e.scrollParents.popper);
|
|
2403
2403
|
return i && u.forEach(function(f) {
|
|
2404
2404
|
f.addEventListener("scroll", n.update, Jt);
|
|
@@ -2408,16 +2408,16 @@ function cs(t) {
|
|
|
2408
2408
|
}), c && l.removeEventListener("resize", n.update, Jt);
|
|
2409
2409
|
};
|
|
2410
2410
|
}
|
|
2411
|
-
const
|
|
2411
|
+
const us = {
|
|
2412
2412
|
name: "eventListeners",
|
|
2413
2413
|
enabled: !0,
|
|
2414
2414
|
phase: "write",
|
|
2415
2415
|
fn: function() {
|
|
2416
2416
|
},
|
|
2417
|
-
effect:
|
|
2417
|
+
effect: ls,
|
|
2418
2418
|
data: {}
|
|
2419
2419
|
};
|
|
2420
|
-
var
|
|
2420
|
+
var ds = {
|
|
2421
2421
|
left: "right",
|
|
2422
2422
|
right: "left",
|
|
2423
2423
|
bottom: "top",
|
|
@@ -2425,29 +2425,29 @@ var us = {
|
|
|
2425
2425
|
};
|
|
2426
2426
|
function tn(t) {
|
|
2427
2427
|
return t.replace(/left|right|bottom|top/g, function(e) {
|
|
2428
|
-
return
|
|
2428
|
+
return ds[e];
|
|
2429
2429
|
});
|
|
2430
2430
|
}
|
|
2431
|
-
var
|
|
2431
|
+
var fs = {
|
|
2432
2432
|
start: "end",
|
|
2433
2433
|
end: "start"
|
|
2434
2434
|
};
|
|
2435
|
-
function
|
|
2435
|
+
function Zr(t) {
|
|
2436
2436
|
return t.replace(/start|end/g, function(e) {
|
|
2437
|
-
return
|
|
2437
|
+
return fs[e];
|
|
2438
2438
|
});
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2440
|
+
function yr(t) {
|
|
2441
2441
|
var e = Ae(t), n = e.pageXOffset, r = e.pageYOffset;
|
|
2442
2442
|
return {
|
|
2443
2443
|
scrollLeft: n,
|
|
2444
2444
|
scrollTop: r
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2448
|
-
return xt(et(t)).left +
|
|
2447
|
+
function br(t) {
|
|
2448
|
+
return xt(et(t)).left + yr(t).scrollLeft;
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function ps(t, e) {
|
|
2451
2451
|
var n = Ae(t), r = et(t), o = n.visualViewport, i = r.clientWidth, a = r.clientHeight, c = 0, l = 0;
|
|
2452
2452
|
if (o) {
|
|
2453
2453
|
i = o.width, a = o.height;
|
|
@@ -2457,12 +2457,12 @@ function fs(t, e) {
|
|
|
2457
2457
|
return {
|
|
2458
2458
|
width: i,
|
|
2459
2459
|
height: a,
|
|
2460
|
-
x: c +
|
|
2460
|
+
x: c + br(t),
|
|
2461
2461
|
y: l
|
|
2462
2462
|
};
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2465
|
-
var e, n = et(t), r =
|
|
2464
|
+
function hs(t) {
|
|
2465
|
+
var e, n = et(t), r = yr(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = ct(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = ct(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), c = -r.scrollLeft + br(t), l = -r.scrollTop;
|
|
2466
2466
|
return De(o || n).direction === "rtl" && (c += ct(n.clientWidth, o ? o.clientWidth : 0) - i), {
|
|
2467
2467
|
width: i,
|
|
2468
2468
|
height: a,
|
|
@@ -2470,17 +2470,17 @@ function ps(t) {
|
|
|
2470
2470
|
y: l
|
|
2471
2471
|
};
|
|
2472
2472
|
}
|
|
2473
|
-
function
|
|
2473
|
+
function wr(t) {
|
|
2474
2474
|
var e = De(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
|
|
2475
2475
|
return /auto|scroll|overlay|hidden/.test(n + o + r);
|
|
2476
2476
|
}
|
|
2477
2477
|
function ri(t) {
|
|
2478
|
-
return ["html", "body", "#document"].indexOf(Ve(t)) >= 0 ? t.ownerDocument.body : Se(t) &&
|
|
2478
|
+
return ["html", "body", "#document"].indexOf(Ve(t)) >= 0 ? t.ownerDocument.body : Se(t) && wr(t) ? t : ri(gn(t));
|
|
2479
2479
|
}
|
|
2480
2480
|
function Ut(t, e) {
|
|
2481
2481
|
var n;
|
|
2482
2482
|
e === void 0 && (e = []);
|
|
2483
|
-
var r = ri(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = Ae(r), a = o ? [i].concat(i.visualViewport || [],
|
|
2483
|
+
var r = ri(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i = Ae(r), a = o ? [i].concat(i.visualViewport || [], wr(r) ? r : []) : r, c = e.concat(a);
|
|
2484
2484
|
return o ? c : (
|
|
2485
2485
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
2486
2486
|
c.concat(Ut(gn(a)))
|
|
@@ -2494,24 +2494,24 @@ function Gn(t) {
|
|
|
2494
2494
|
bottom: t.y + t.height
|
|
2495
2495
|
});
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function ms(t, e) {
|
|
2498
2498
|
var n = xt(t, !1, e === "fixed");
|
|
2499
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;
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return e === Yo ? Gn(
|
|
2501
|
+
function Br(t, e, n) {
|
|
2502
|
+
return e === Yo ? Gn(ps(t, n)) : lt(e) ? ms(e, n) : Gn(hs(et(t)));
|
|
2503
2503
|
}
|
|
2504
|
-
function
|
|
2504
|
+
function vs(t) {
|
|
2505
2505
|
var e = Ut(gn(t)), n = ["absolute", "fixed"].indexOf(De(t).position) >= 0, r = n && Se(t) ? Gt(t) : t;
|
|
2506
2506
|
return lt(r) ? e.filter(function(o) {
|
|
2507
2507
|
return lt(o) && Qo(o, r) && Ve(o) !== "body";
|
|
2508
2508
|
}) : [];
|
|
2509
2509
|
}
|
|
2510
|
-
function
|
|
2511
|
-
var o = e === "clippingParents" ?
|
|
2512
|
-
var f =
|
|
2510
|
+
function gs(t, e, n, r) {
|
|
2511
|
+
var o = e === "clippingParents" ? vs(t) : [].concat(e), i = [].concat(o, [n]), a = i[0], c = i.reduce(function(l, u) {
|
|
2512
|
+
var f = Br(t, u, r);
|
|
2513
2513
|
return l.top = ct(f.top, l.top), l.right = cn(f.right, l.right), l.bottom = cn(f.bottom, l.bottom), l.left = ct(f.left, l.left), l;
|
|
2514
|
-
},
|
|
2514
|
+
}, Br(t, a, r));
|
|
2515
2515
|
return c.width = c.right - c.left, c.height = c.bottom - c.top, c.x = c.left, c.y = c.top, c;
|
|
2516
2516
|
}
|
|
2517
2517
|
function oi(t) {
|
|
@@ -2547,7 +2547,7 @@ function oi(t) {
|
|
|
2547
2547
|
y: e.y
|
|
2548
2548
|
};
|
|
2549
2549
|
}
|
|
2550
|
-
var u = o ?
|
|
2550
|
+
var u = o ? gr(o) : null;
|
|
2551
2551
|
if (u != null) {
|
|
2552
2552
|
var f = u === "y" ? "height" : "width";
|
|
2553
2553
|
switch (i) {
|
|
@@ -2563,7 +2563,7 @@ function oi(t) {
|
|
|
2563
2563
|
}
|
|
2564
2564
|
function Vt(t, e) {
|
|
2565
2565
|
e === void 0 && (e = {});
|
|
2566
|
-
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, a = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ?
|
|
2566
|
+
var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, a = i === void 0 ? t.strategy : i, c = n.boundary, l = c === void 0 ? Ua : c, u = n.rootBoundary, f = u === void 0 ? Yo : u, p = n.elementContext, d = p === void 0 ? At : p, h = n.altBoundary, m = h === void 0 ? !1 : h, v = n.padding, g = v === void 0 ? 0 : v, w = ti(typeof g != "number" ? g : ni(g, $t)), x = d === At ? Fa : At, E = t.rects.popper, O = t.elements[m ? x : d], y = gs(lt(O) ? O : O.contextElement || et(t.elements.popper), l, f, a), T = xt(t.elements.reference), I = oi({
|
|
2567
2567
|
reference: T,
|
|
2568
2568
|
element: E,
|
|
2569
2569
|
strategy: "absolute",
|
|
@@ -2583,9 +2583,9 @@ function Vt(t, e) {
|
|
|
2583
2583
|
}
|
|
2584
2584
|
return L;
|
|
2585
2585
|
}
|
|
2586
|
-
function
|
|
2586
|
+
function ys(t, e) {
|
|
2587
2587
|
e === void 0 && (e = {});
|
|
2588
|
-
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, a = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? Xo : l, f = kt(r), p = f ? c ?
|
|
2588
|
+
var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, a = n.padding, c = n.flipVariations, l = n.allowedAutoPlacements, u = l === void 0 ? Xo : l, f = kt(r), p = f ? c ? Hr : Hr.filter(function(m) {
|
|
2589
2589
|
return kt(m) === f;
|
|
2590
2590
|
}) : $t, d = p.filter(function(m) {
|
|
2591
2591
|
return u.indexOf(m) >= 0;
|
|
@@ -2603,17 +2603,17 @@ function gs(t, e) {
|
|
|
2603
2603
|
return h[m] - h[v];
|
|
2604
2604
|
});
|
|
2605
2605
|
}
|
|
2606
|
-
function
|
|
2606
|
+
function bs(t) {
|
|
2607
2607
|
if (Le(t) === vn)
|
|
2608
2608
|
return [];
|
|
2609
2609
|
var e = tn(t);
|
|
2610
|
-
return [
|
|
2610
|
+
return [Zr(t), e, Zr(e)];
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function ws(t) {
|
|
2613
2613
|
var e = t.state, n = t.options, r = t.name;
|
|
2614
2614
|
if (!e.modifiersData[r]._skip) {
|
|
2615
|
-
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, a = n.altAxis, c = a === void 0 ? !0 : a, 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, w = Le(g), x = w === g, E = l || (x || !m ? [tn(g)] :
|
|
2616
|
-
return A.concat(Le(D) === vn ?
|
|
2615
|
+
for (var o = n.mainAxis, i = o === void 0 ? !0 : o, a = n.altAxis, c = a === void 0 ? !0 : a, 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, w = Le(g), x = w === g, E = l || (x || !m ? [tn(g)] : bs(g)), O = [g].concat(E).reduce(function(A, D) {
|
|
2616
|
+
return A.concat(Le(D) === vn ? ys(e, {
|
|
2617
2617
|
placement: D,
|
|
2618
2618
|
boundary: f,
|
|
2619
2619
|
rootBoundary: p,
|
|
@@ -2658,17 +2658,17 @@ function bs(t) {
|
|
|
2658
2658
|
e.placement !== N && (e.modifiersData[r]._skip = !0, e.placement = N, e.reset = !0);
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
|
-
const
|
|
2661
|
+
const Cs = {
|
|
2662
2662
|
name: "flip",
|
|
2663
2663
|
enabled: !0,
|
|
2664
2664
|
phase: "main",
|
|
2665
|
-
fn:
|
|
2665
|
+
fn: ws,
|
|
2666
2666
|
requiresIfExists: ["offset"],
|
|
2667
2667
|
data: {
|
|
2668
2668
|
_skip: !1
|
|
2669
2669
|
}
|
|
2670
2670
|
};
|
|
2671
|
-
function
|
|
2671
|
+
function $r(t, e, n) {
|
|
2672
2672
|
return n === void 0 && (n = {
|
|
2673
2673
|
x: 0,
|
|
2674
2674
|
y: 0
|
|
@@ -2679,17 +2679,17 @@ function Gr(t, e, n) {
|
|
|
2679
2679
|
left: t.left - e.width - n.x
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
|
-
function
|
|
2682
|
+
function Gr(t) {
|
|
2683
2683
|
return [Ee, Ne, Ie, xe].some(function(e) {
|
|
2684
2684
|
return t[e] >= 0;
|
|
2685
2685
|
});
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Os(t) {
|
|
2688
2688
|
var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, a = Vt(e, {
|
|
2689
2689
|
elementContext: "reference"
|
|
2690
2690
|
}), c = Vt(e, {
|
|
2691
2691
|
altBoundary: !0
|
|
2692
|
-
}), l =
|
|
2692
|
+
}), l = $r(a, r), u = $r(c, o, i), f = Gr(l), p = Gr(u);
|
|
2693
2693
|
e.modifiersData[n] = {
|
|
2694
2694
|
referenceClippingOffsets: l,
|
|
2695
2695
|
popperEscapeOffsets: u,
|
|
@@ -2700,14 +2700,14 @@ function Cs(t) {
|
|
|
2700
2700
|
"data-popper-escaped": p
|
|
2701
2701
|
});
|
|
2702
2702
|
}
|
|
2703
|
-
const
|
|
2703
|
+
const Es = {
|
|
2704
2704
|
name: "hide",
|
|
2705
2705
|
enabled: !0,
|
|
2706
2706
|
phase: "main",
|
|
2707
2707
|
requiresIfExists: ["preventOverflow"],
|
|
2708
|
-
fn:
|
|
2708
|
+
fn: Os
|
|
2709
2709
|
};
|
|
2710
|
-
function
|
|
2710
|
+
function xs(t, e, n) {
|
|
2711
2711
|
var r = Le(t), o = [xe, Ee].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
|
|
2712
2712
|
placement: t
|
|
2713
2713
|
})) : n, a = i[0], c = i[1];
|
|
@@ -2719,20 +2719,20 @@ function Es(t, e, n) {
|
|
|
2719
2719
|
y: c
|
|
2720
2720
|
};
|
|
2721
2721
|
}
|
|
2722
|
-
function
|
|
2722
|
+
function ks(t) {
|
|
2723
2723
|
var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, a = Xo.reduce(function(f, p) {
|
|
2724
|
-
return f[p] =
|
|
2724
|
+
return f[p] = xs(p, e.rects, i), f;
|
|
2725
2725
|
}, {}), c = a[e.placement], l = c.x, u = c.y;
|
|
2726
2726
|
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += u), e.modifiersData[r] = a;
|
|
2727
2727
|
}
|
|
2728
|
-
const
|
|
2728
|
+
const Ss = {
|
|
2729
2729
|
name: "offset",
|
|
2730
2730
|
enabled: !0,
|
|
2731
2731
|
phase: "main",
|
|
2732
2732
|
requires: ["popperOffsets"],
|
|
2733
|
-
fn:
|
|
2733
|
+
fn: ks
|
|
2734
2734
|
};
|
|
2735
|
-
function
|
|
2735
|
+
function Ts(t) {
|
|
2736
2736
|
var e = t.state, n = t.name;
|
|
2737
2737
|
e.modifiersData[n] = oi({
|
|
2738
2738
|
reference: e.rects.reference,
|
|
@@ -2741,23 +2741,23 @@ function Ss(t) {
|
|
|
2741
2741
|
placement: e.placement
|
|
2742
2742
|
});
|
|
2743
2743
|
}
|
|
2744
|
-
const
|
|
2744
|
+
const _s = {
|
|
2745
2745
|
name: "popperOffsets",
|
|
2746
2746
|
enabled: !0,
|
|
2747
2747
|
phase: "read",
|
|
2748
|
-
fn:
|
|
2748
|
+
fn: Ts,
|
|
2749
2749
|
data: {}
|
|
2750
2750
|
};
|
|
2751
|
-
function
|
|
2751
|
+
function Ps(t) {
|
|
2752
2752
|
return t === "x" ? "y" : "x";
|
|
2753
2753
|
}
|
|
2754
|
-
function
|
|
2754
|
+
function Is(t) {
|
|
2755
2755
|
var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, a = n.altAxis, c = a === void 0 ? !1 : a, 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 = Vt(e, {
|
|
2756
2756
|
boundary: l,
|
|
2757
2757
|
rootBoundary: u,
|
|
2758
2758
|
padding: p,
|
|
2759
2759
|
altBoundary: f
|
|
2760
|
-
}), w = Le(e.placement), x = kt(e.placement), E = !x, O =
|
|
2760
|
+
}), w = Le(e.placement), x = kt(e.placement), E = !x, O = gr(w), y = Ps(O), T = e.modifiersData.popperOffsets, I = e.rects.reference, S = e.rects.popper, N = typeof v == "function" ? v(Object.assign({}, e.rects, {
|
|
2761
2761
|
placement: e.placement
|
|
2762
2762
|
})) : v, L = typeof N == "number" ? {
|
|
2763
2763
|
mainAxis: N,
|
|
@@ -2771,42 +2771,42 @@ function Ps(t) {
|
|
|
2771
2771
|
};
|
|
2772
2772
|
if (T) {
|
|
2773
2773
|
if (i) {
|
|
2774
|
-
var re, le = O === "y" ? Ee : xe, ke = O === "y" ? Ie : Ne, ee = O === "y" ? "height" : "width", oe = T[O], Te = oe + g[le], ge = oe - g[ke], k = h ? -S[ee] / 2 : 0, P = x === Ot ? I[ee] : S[ee], M = x === Ot ? -S[ee] : -I[ee], j = e.elements.arrow, A = h && j ?
|
|
2774
|
+
var re, le = O === "y" ? Ee : xe, ke = O === "y" ? Ie : Ne, ee = O === "y" ? "height" : "width", oe = T[O], Te = oe + g[le], ge = oe - g[ke], k = h ? -S[ee] / 2 : 0, P = x === Ot ? I[ee] : S[ee], M = x === Ot ? -S[ee] : -I[ee], j = e.elements.arrow, A = h && j ? vr(j) : {
|
|
2775
2775
|
width: 0,
|
|
2776
2776
|
height: 0
|
|
2777
2777
|
}, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ei(), R = D[le], U = D[ke], V = jt(0, I[ee], A[ee]), G = E ? I[ee] / 2 - k - V - R - L.mainAxis : P - V - R - L.mainAxis, B = E ? -I[ee] / 2 + k + V + U + L.mainAxis : M + V + U + L.mainAxis, ce = e.elements.arrow && Gt(e.elements.arrow), _ = ce ? O === "y" ? ce.clientTop || 0 : ce.clientLeft || 0 : 0, ve = (re = H?.[O]) != null ? re : 0, _e = oe + G - ve - _, dt = oe + B - ve, ft = jt(h ? cn(Te, _e) : Te, oe, h ? ct(ge, dt) : ge);
|
|
2778
2778
|
T[O] = ft, ae[O] = ft - oe;
|
|
2779
2779
|
}
|
|
2780
2780
|
if (c) {
|
|
2781
|
-
var qe, Pt = O === "x" ? Ee : xe, En = O === "x" ? Ie : Ne, je = T[y], tt = y === "y" ? "height" : "width", Ce = je + g[Pt], ze = je - g[En], Ye = [Ee, xe].indexOf(w) !== -1, Z = (qe = H?.[y]) != null ? qe : 0, q = Ye ? Ce : je - I[tt] - S[tt] - Z + L.altAxis, F = Ye ? je + I[tt] + S[tt] - Z - L.altAxis : ze, te = h && Ye ?
|
|
2781
|
+
var qe, Pt = O === "x" ? Ee : xe, En = O === "x" ? Ie : Ne, je = T[y], tt = y === "y" ? "height" : "width", Ce = je + g[Pt], ze = je - g[En], Ye = [Ee, xe].indexOf(w) !== -1, Z = (qe = H?.[y]) != null ? qe : 0, q = Ye ? Ce : je - I[tt] - S[tt] - Z + L.altAxis, F = Ye ? je + I[tt] + S[tt] - Z - L.altAxis : ze, te = h && Ye ? es(q, je, F) : jt(h ? q : Ce, je, h ? F : ze);
|
|
2782
2782
|
T[y] = te, ae[y] = te - je;
|
|
2783
2783
|
}
|
|
2784
2784
|
e.modifiersData[r] = ae;
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
const
|
|
2787
|
+
const Ns = {
|
|
2788
2788
|
name: "preventOverflow",
|
|
2789
2789
|
enabled: !0,
|
|
2790
2790
|
phase: "main",
|
|
2791
|
-
fn:
|
|
2791
|
+
fn: Is,
|
|
2792
2792
|
requiresIfExists: ["offset"]
|
|
2793
2793
|
};
|
|
2794
|
-
function
|
|
2794
|
+
function As(t) {
|
|
2795
2795
|
return {
|
|
2796
2796
|
scrollLeft: t.scrollLeft,
|
|
2797
2797
|
scrollTop: t.scrollTop
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
|
-
function As(t) {
|
|
2801
|
-
return t === Ae(t) || !Se(t) ? br(t) : Ns(t);
|
|
2802
|
-
}
|
|
2803
2800
|
function Rs(t) {
|
|
2801
|
+
return t === Ae(t) || !Se(t) ? yr(t) : As(t);
|
|
2802
|
+
}
|
|
2803
|
+
function Ls(t) {
|
|
2804
2804
|
var e = t.getBoundingClientRect(), n = Et(e.width) / t.offsetWidth || 1, r = Et(e.height) / t.offsetHeight || 1;
|
|
2805
2805
|
return n !== 1 || r !== 1;
|
|
2806
2806
|
}
|
|
2807
|
-
function
|
|
2807
|
+
function Ms(t, e, n) {
|
|
2808
2808
|
n === void 0 && (n = !1);
|
|
2809
|
-
var r = Se(e), o = Se(e) &&
|
|
2809
|
+
var r = Se(e), o = Se(e) && Ls(e), i = et(e), a = xt(t, o, n), c = {
|
|
2810
2810
|
scrollLeft: 0,
|
|
2811
2811
|
scrollTop: 0
|
|
2812
2812
|
}, l = {
|
|
@@ -2814,14 +2814,14 @@ function Ls(t, e, n) {
|
|
|
2814
2814
|
y: 0
|
|
2815
2815
|
};
|
|
2816
2816
|
return (r || !r && !n) && ((Ve(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
2817
|
-
|
|
2817
|
+
wr(i)) && (c = Rs(e)), Se(e) ? (l = xt(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = br(i))), {
|
|
2818
2818
|
x: a.left + c.scrollLeft - l.x,
|
|
2819
2819
|
y: a.top + c.scrollTop - l.y,
|
|
2820
2820
|
width: a.width,
|
|
2821
2821
|
height: a.height
|
|
2822
2822
|
};
|
|
2823
2823
|
}
|
|
2824
|
-
function
|
|
2824
|
+
function Ds(t) {
|
|
2825
2825
|
var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
|
|
2826
2826
|
t.forEach(function(i) {
|
|
2827
2827
|
e.set(i.name, i);
|
|
@@ -2840,15 +2840,15 @@ function Ms(t) {
|
|
|
2840
2840
|
n.has(i.name) || o(i);
|
|
2841
2841
|
}), r;
|
|
2842
2842
|
}
|
|
2843
|
-
function
|
|
2844
|
-
var e =
|
|
2843
|
+
function js(t) {
|
|
2844
|
+
var e = Ds(t);
|
|
2845
2845
|
return Bn.reduce(function(n, r) {
|
|
2846
2846
|
return n.concat(e.filter(function(o) {
|
|
2847
2847
|
return o.phase === r;
|
|
2848
2848
|
}));
|
|
2849
2849
|
}, []);
|
|
2850
2850
|
}
|
|
2851
|
-
function
|
|
2851
|
+
function Us(t) {
|
|
2852
2852
|
var e;
|
|
2853
2853
|
return function() {
|
|
2854
2854
|
return e || (e = new Promise(function(n) {
|
|
@@ -2865,10 +2865,10 @@ function Je(t) {
|
|
|
2865
2865
|
return o.replace(/%s/, i);
|
|
2866
2866
|
}, t);
|
|
2867
2867
|
}
|
|
2868
|
-
var nt = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',
|
|
2869
|
-
function
|
|
2868
|
+
var nt = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Fs = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', Kr = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
2869
|
+
function Ws(t) {
|
|
2870
2870
|
t.forEach(function(e) {
|
|
2871
|
-
[].concat(Object.keys(e),
|
|
2871
|
+
[].concat(Object.keys(e), Kr).filter(function(n, r, o) {
|
|
2872
2872
|
return o.indexOf(n) === r;
|
|
2873
2873
|
}).forEach(function(n) {
|
|
2874
2874
|
switch (n) {
|
|
@@ -2897,19 +2897,19 @@ function Fs(t) {
|
|
|
2897
2897
|
case "data":
|
|
2898
2898
|
break;
|
|
2899
2899
|
default:
|
|
2900
|
-
console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' +
|
|
2900
|
+
console.error('PopperJS: an invalid property has been provided to the "' + e.name + '" modifier, valid properties are ' + Kr.map(function(r) {
|
|
2901
2901
|
return '"' + r + '"';
|
|
2902
2902
|
}).join(", ") + '; but "' + n + '" was provided.');
|
|
2903
2903
|
}
|
|
2904
2904
|
e.requires && e.requires.forEach(function(r) {
|
|
2905
2905
|
t.find(function(o) {
|
|
2906
2906
|
return o.name === r;
|
|
2907
|
-
}) == null && console.error(Je(
|
|
2907
|
+
}) == null && console.error(Je(Fs, String(e.name), r, r));
|
|
2908
2908
|
});
|
|
2909
2909
|
});
|
|
2910
2910
|
});
|
|
2911
2911
|
}
|
|
2912
|
-
function
|
|
2912
|
+
function Hs(t, e) {
|
|
2913
2913
|
var n = /* @__PURE__ */ new Set();
|
|
2914
2914
|
return t.filter(function(r) {
|
|
2915
2915
|
var o = e(r);
|
|
@@ -2917,7 +2917,7 @@ function Ws(t, e) {
|
|
|
2917
2917
|
return n.add(o), !0;
|
|
2918
2918
|
});
|
|
2919
2919
|
}
|
|
2920
|
-
function
|
|
2920
|
+
function Vs(t) {
|
|
2921
2921
|
var e = t.reduce(function(n, r) {
|
|
2922
2922
|
var o = n[r.name];
|
|
2923
2923
|
return n[r.name] = o ? Object.assign({}, o, r, {
|
|
@@ -2929,27 +2929,27 @@ function Hs(t) {
|
|
|
2929
2929
|
return e[n];
|
|
2930
2930
|
});
|
|
2931
2931
|
}
|
|
2932
|
-
var
|
|
2932
|
+
var qr = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", zs = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", Yr = {
|
|
2933
2933
|
placement: "bottom",
|
|
2934
2934
|
modifiers: [],
|
|
2935
2935
|
strategy: "absolute"
|
|
2936
2936
|
};
|
|
2937
|
-
function
|
|
2937
|
+
function Xr() {
|
|
2938
2938
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
2939
2939
|
e[n] = arguments[n];
|
|
2940
2940
|
return !e.some(function(r) {
|
|
2941
2941
|
return !(r && typeof r.getBoundingClientRect == "function");
|
|
2942
2942
|
});
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function Zs(t) {
|
|
2945
2945
|
t === void 0 && (t = {});
|
|
2946
|
-
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ?
|
|
2946
|
+
var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? Yr : o;
|
|
2947
2947
|
return function(c, l, u) {
|
|
2948
2948
|
u === void 0 && (u = i);
|
|
2949
2949
|
var f = {
|
|
2950
2950
|
placement: "bottom",
|
|
2951
2951
|
orderedModifiers: [],
|
|
2952
|
-
options: Object.assign({},
|
|
2952
|
+
options: Object.assign({}, Yr, i),
|
|
2953
2953
|
modifiersData: {},
|
|
2954
2954
|
elements: {
|
|
2955
2955
|
reference: c,
|
|
@@ -2965,15 +2965,15 @@ function zs(t) {
|
|
|
2965
2965
|
reference: lt(c) ? Ut(c) : c.contextElement ? Ut(c.contextElement) : [],
|
|
2966
2966
|
popper: Ut(l)
|
|
2967
2967
|
};
|
|
2968
|
-
var E =
|
|
2968
|
+
var E = js(Vs([].concat(r, f.options.modifiers)));
|
|
2969
2969
|
if (f.orderedModifiers = E.filter(function(H) {
|
|
2970
2970
|
return H.enabled;
|
|
2971
2971
|
}), process.env.NODE_ENV !== "production") {
|
|
2972
|
-
var O =
|
|
2972
|
+
var O = Hs([].concat(E, f.options.modifiers), function(H) {
|
|
2973
2973
|
var ae = H.name;
|
|
2974
2974
|
return ae;
|
|
2975
2975
|
});
|
|
2976
|
-
if (
|
|
2976
|
+
if (Ws(O), Le(f.options.placement) === vn) {
|
|
2977
2977
|
var y = f.orderedModifiers.find(function(H) {
|
|
2978
2978
|
var ae = H.name;
|
|
2979
2979
|
return ae === "flip";
|
|
@@ -2995,19 +2995,19 @@ function zs(t) {
|
|
|
2995
2995
|
forceUpdate: function() {
|
|
2996
2996
|
if (!d) {
|
|
2997
2997
|
var w = f.elements, x = w.reference, E = w.popper;
|
|
2998
|
-
if (!
|
|
2999
|
-
process.env.NODE_ENV !== "production" && console.error(
|
|
2998
|
+
if (!Xr(x, E)) {
|
|
2999
|
+
process.env.NODE_ENV !== "production" && console.error(qr);
|
|
3000
3000
|
return;
|
|
3001
3001
|
}
|
|
3002
3002
|
f.rects = {
|
|
3003
|
-
reference:
|
|
3004
|
-
popper:
|
|
3003
|
+
reference: Ms(x, Gt(E), f.options.strategy === "fixed"),
|
|
3004
|
+
popper: vr(E)
|
|
3005
3005
|
}, f.reset = !1, f.placement = f.options.placement, f.orderedModifiers.forEach(function(H) {
|
|
3006
3006
|
return f.modifiersData[H.name] = Object.assign({}, H.data);
|
|
3007
3007
|
});
|
|
3008
3008
|
for (var O = 0, y = 0; y < f.orderedModifiers.length; y++) {
|
|
3009
3009
|
if (process.env.NODE_ENV !== "production" && (O += 1, O > 100)) {
|
|
3010
|
-
console.error(
|
|
3010
|
+
console.error(zs);
|
|
3011
3011
|
break;
|
|
3012
3012
|
}
|
|
3013
3013
|
if (f.reset === !0) {
|
|
@@ -3026,7 +3026,7 @@ function zs(t) {
|
|
|
3026
3026
|
},
|
|
3027
3027
|
// Async and optimistically optimized update – it will not be executed if
|
|
3028
3028
|
// not necessary (debounced to run at most once-per-tick)
|
|
3029
|
-
update:
|
|
3029
|
+
update: Us(function() {
|
|
3030
3030
|
return new Promise(function(g) {
|
|
3031
3031
|
h.forceUpdate(), g(f);
|
|
3032
3032
|
});
|
|
@@ -3035,8 +3035,8 @@ function zs(t) {
|
|
|
3035
3035
|
v(), d = !0;
|
|
3036
3036
|
}
|
|
3037
3037
|
};
|
|
3038
|
-
if (!
|
|
3039
|
-
return process.env.NODE_ENV !== "production" && console.error(
|
|
3038
|
+
if (!Xr(c, l))
|
|
3039
|
+
return process.env.NODE_ENV !== "production" && console.error(qr), h;
|
|
3040
3040
|
h.setOptions(u).then(function(g) {
|
|
3041
3041
|
!d && u.onFirstUpdate && u.onFirstUpdate(g);
|
|
3042
3042
|
});
|
|
@@ -3063,9 +3063,9 @@ function zs(t) {
|
|
|
3063
3063
|
return h;
|
|
3064
3064
|
};
|
|
3065
3065
|
}
|
|
3066
|
-
var
|
|
3067
|
-
defaultModifiers:
|
|
3068
|
-
}),
|
|
3066
|
+
var Bs = [us, _s, cs, Xa, Ss, Cs, Ns, os, Es], $s = /* @__PURE__ */ Zs({
|
|
3067
|
+
defaultModifiers: Bs
|
|
3068
|
+
}), Gs = typeof Element < "u", Ks = typeof Map == "function", qs = typeof Set == "function", Ys = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
3069
3069
|
function nn(t, e) {
|
|
3070
3070
|
if (t === e)
|
|
3071
3071
|
return !0;
|
|
@@ -3082,7 +3082,7 @@ function nn(t, e) {
|
|
|
3082
3082
|
return !0;
|
|
3083
3083
|
}
|
|
3084
3084
|
var i;
|
|
3085
|
-
if (
|
|
3085
|
+
if (Ks && t instanceof Map && e instanceof Map) {
|
|
3086
3086
|
if (t.size !== e.size)
|
|
3087
3087
|
return !1;
|
|
3088
3088
|
for (i = t.entries(); !(r = i.next()).done; )
|
|
@@ -3093,7 +3093,7 @@ function nn(t, e) {
|
|
|
3093
3093
|
return !1;
|
|
3094
3094
|
return !0;
|
|
3095
3095
|
}
|
|
3096
|
-
if (
|
|
3096
|
+
if (qs && t instanceof Set && e instanceof Set) {
|
|
3097
3097
|
if (t.size !== e.size)
|
|
3098
3098
|
return !1;
|
|
3099
3099
|
for (i = t.entries(); !(r = i.next()).done; )
|
|
@@ -3101,7 +3101,7 @@ function nn(t, e) {
|
|
|
3101
3101
|
return !1;
|
|
3102
3102
|
return !0;
|
|
3103
3103
|
}
|
|
3104
|
-
if (
|
|
3104
|
+
if (Ys && ArrayBuffer.isView(t) && ArrayBuffer.isView(e)) {
|
|
3105
3105
|
if (n = t.length, n != e.length)
|
|
3106
3106
|
return !1;
|
|
3107
3107
|
for (r = n; r-- !== 0; )
|
|
@@ -3120,7 +3120,7 @@ function nn(t, e) {
|
|
|
3120
3120
|
for (r = n; r-- !== 0; )
|
|
3121
3121
|
if (!Object.prototype.hasOwnProperty.call(e, o[r]))
|
|
3122
3122
|
return !1;
|
|
3123
|
-
if (
|
|
3123
|
+
if (Gs && t instanceof Element)
|
|
3124
3124
|
return !1;
|
|
3125
3125
|
for (r = n; r-- !== 0; )
|
|
3126
3126
|
if (!((o[r] === "_owner" || o[r] === "__v" || o[r] === "__o") && t.$$typeof) && !nn(t[o[r]], e[o[r]]))
|
|
@@ -3129,7 +3129,7 @@ function nn(t, e) {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
return t !== t && e !== e;
|
|
3131
3131
|
}
|
|
3132
|
-
var
|
|
3132
|
+
var Xs = function(e, n) {
|
|
3133
3133
|
try {
|
|
3134
3134
|
return nn(e, n);
|
|
3135
3135
|
} catch (r) {
|
|
@@ -3137,13 +3137,13 @@ var Ys = function(e, n) {
|
|
|
3137
3137
|
return console.warn("react-fast-compare cannot handle circular refs"), !1;
|
|
3138
3138
|
throw r;
|
|
3139
3139
|
}
|
|
3140
|
-
},
|
|
3140
|
+
}, Js = [], Qs = function(e, n, r) {
|
|
3141
3141
|
r === void 0 && (r = {});
|
|
3142
3142
|
var o = Qe.useRef(null), i = {
|
|
3143
3143
|
onFirstUpdate: r.onFirstUpdate,
|
|
3144
3144
|
placement: r.placement || "bottom",
|
|
3145
3145
|
strategy: r.strategy || "absolute",
|
|
3146
|
-
modifiers: r.modifiers ||
|
|
3146
|
+
modifiers: r.modifiers || Js
|
|
3147
3147
|
}, a = Qe.useState({
|
|
3148
3148
|
styles: {
|
|
3149
3149
|
popper: {
|
|
@@ -3163,12 +3163,12 @@ var Ys = function(e, n) {
|
|
|
3163
3163
|
phase: "write",
|
|
3164
3164
|
fn: function(h) {
|
|
3165
3165
|
var m = h.state, v = Object.keys(m.elements);
|
|
3166
|
-
|
|
3166
|
+
Bi.flushSync(function() {
|
|
3167
3167
|
l({
|
|
3168
|
-
styles:
|
|
3168
|
+
styles: Fr(v.map(function(g) {
|
|
3169
3169
|
return [g, m.styles[g] || {}];
|
|
3170
3170
|
})),
|
|
3171
|
-
attributes:
|
|
3171
|
+
attributes: Fr(v.map(function(g) {
|
|
3172
3172
|
return [g, m.attributes[g]];
|
|
3173
3173
|
}))
|
|
3174
3174
|
});
|
|
@@ -3186,13 +3186,13 @@ var Ys = function(e, n) {
|
|
|
3186
3186
|
enabled: !1
|
|
3187
3187
|
}])
|
|
3188
3188
|
};
|
|
3189
|
-
return
|
|
3189
|
+
return Xs(o.current, d) ? o.current || d : (o.current = d, d);
|
|
3190
3190
|
}, [i.onFirstUpdate, i.placement, i.strategy, i.modifiers, u]), p = Qe.useRef();
|
|
3191
|
-
return
|
|
3191
|
+
return Wr(function() {
|
|
3192
3192
|
p.current && p.current.setOptions(f);
|
|
3193
|
-
}, [f]),
|
|
3193
|
+
}, [f]), Wr(function() {
|
|
3194
3194
|
if (!(e == null || n == null)) {
|
|
3195
|
-
var d = r.createPopper ||
|
|
3195
|
+
var d = r.createPopper || $s, h = d(e, n, f);
|
|
3196
3196
|
return p.current = h, function() {
|
|
3197
3197
|
h.destroy(), p.current = null;
|
|
3198
3198
|
};
|
|
@@ -3205,7 +3205,7 @@ var Ys = function(e, n) {
|
|
|
3205
3205
|
forceUpdate: p.current ? p.current.forceUpdate : null
|
|
3206
3206
|
};
|
|
3207
3207
|
};
|
|
3208
|
-
const
|
|
3208
|
+
const ec = ur((t, e) => {
|
|
3209
3209
|
const { actions: n, className: r, onClose: o, onActionItemClick: i, ...a } = t, c = Me({}), [l, u] = z(0), f = (p) => {
|
|
3210
3210
|
c.current[p]?.focus(), u(p);
|
|
3211
3211
|
};
|
|
@@ -3218,7 +3218,7 @@ const Qs = ur((t, e) => {
|
|
|
3218
3218
|
ref: e,
|
|
3219
3219
|
...a,
|
|
3220
3220
|
"data-testid": "context-menu",
|
|
3221
|
-
onKeyDown: (p) =>
|
|
3221
|
+
onKeyDown: (p) => jo({
|
|
3222
3222
|
event: p,
|
|
3223
3223
|
currentIndex: l,
|
|
3224
3224
|
min: 0,
|
|
@@ -3242,7 +3242,7 @@ const Qs = ur((t, e) => {
|
|
|
3242
3242
|
);
|
|
3243
3243
|
});
|
|
3244
3244
|
function ii(t) {
|
|
3245
|
-
const { iconName: e, iconSize: n, actions: r, onActionItemClick: o, isTabStop: i } = t, [a, c] = z(!1), [l, u] = z(null), [f, p] = z(null), { styles: d, attributes: h } =
|
|
3245
|
+
const { iconName: e, iconSize: n, actions: r, onActionItemClick: o, isTabStop: i } = t, [a, c] = z(!1), [l, u] = z(null), [f, p] = z(null), { styles: d, attributes: h } = Qs(l, f, {
|
|
3246
3246
|
placement: "bottom-end"
|
|
3247
3247
|
});
|
|
3248
3248
|
Y(() => {
|
|
@@ -3275,7 +3275,7 @@ function ii(t) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
),
|
|
3277
3277
|
a && /* @__PURE__ */ s(
|
|
3278
|
-
|
|
3278
|
+
ec,
|
|
3279
3279
|
{
|
|
3280
3280
|
actions: r,
|
|
3281
3281
|
style: d.popper,
|
|
@@ -3289,7 +3289,7 @@ function ii(t) {
|
|
|
3289
3289
|
)
|
|
3290
3290
|
] });
|
|
3291
3291
|
}
|
|
3292
|
-
const
|
|
3292
|
+
const tc = (t) => {
|
|
3293
3293
|
const { className: e, isFavoritismEnabled: n = !0, item: r, onClick: o, onKeyDown: i, focused: a, ...c } = t, { favoriteEntities: l, toggleFavorite: u } = pr(), { description: f, icon: p = "application", iconSrc: d, isOpen: h = !1, title: m, contextMenuActions: v } = r, g = n && l.some((w) => w.type === r.type && w.title === r.title);
|
|
3294
3294
|
return /* @__PURE__ */ b(
|
|
3295
3295
|
"div",
|
|
@@ -3297,7 +3297,7 @@ const ec = (t) => {
|
|
|
3297
3297
|
tabIndex: a ? 0 : -1,
|
|
3298
3298
|
className: K(e, "io-list-item"),
|
|
3299
3299
|
onKeyDown: (w) => {
|
|
3300
|
-
if (
|
|
3300
|
+
if (Do(w)) {
|
|
3301
3301
|
o(w), w.preventDefault(), w.stopPropagation();
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
@@ -3309,7 +3309,7 @@ const ec = (t) => {
|
|
|
3309
3309
|
children: [
|
|
3310
3310
|
/* @__PURE__ */ b("div", { className: "io-list-row", children: [
|
|
3311
3311
|
/* @__PURE__ */ s(se, { size: 8, name: h ? "check" : "", "data-testid": "open-check-icon" }),
|
|
3312
|
-
d ? /* @__PURE__ */ s(
|
|
3312
|
+
d ? /* @__PURE__ */ s(Uo, { className: "section-img-icon", src: d, alt: `${m} icon`, size: 14, "data-testid": "img-icon" }) : /* @__PURE__ */ s(se, { className: "section-icon", size: 14, name: p, "data-testid": "icon" }),
|
|
3313
3313
|
/* @__PURE__ */ s("span", { className: "title", "data-testid": "title", children: m }),
|
|
3314
3314
|
h && /* @__PURE__ */ s("span", { className: "opened", "data-testid": "opened-label", children: "Opened" }),
|
|
3315
3315
|
v && v.length > 0 && /* @__PURE__ */ s(
|
|
@@ -3342,10 +3342,10 @@ const ec = (t) => {
|
|
|
3342
3342
|
);
|
|
3343
3343
|
}, ai = we({
|
|
3344
3344
|
name: me
|
|
3345
|
-
}), si = "Welcome",
|
|
3345
|
+
}), si = "Welcome", nc = 5, rc = () => {
|
|
3346
3346
|
const [t, e] = z(null), [n, r] = Bt(
|
|
3347
3347
|
"sessionStorage",
|
|
3348
|
-
|
|
3348
|
+
Fo,
|
|
3349
3349
|
ai
|
|
3350
3350
|
), o = Me(!1), i = hr(), a = ne(ie), c = he(
|
|
3351
3351
|
async ({ name: l }) => {
|
|
@@ -3376,8 +3376,8 @@ const ec = (t) => {
|
|
|
3376
3376
|
if (t === void 0)
|
|
3377
3377
|
throw new Error("useLaunchpadAPI must be used within a LaunchpadAPIProvider");
|
|
3378
3378
|
return t;
|
|
3379
|
-
},
|
|
3380
|
-
const { defaultLayout: r, selectedLayout: o, setDefaultLayout: i, setSelectedLayout: a } =
|
|
3379
|
+
}, oc = ({ children: t, setOpen: e, isOpen: n }) => {
|
|
3380
|
+
const { defaultLayout: r, selectedLayout: o, setDefaultLayout: i, setSelectedLayout: a } = rc(), l = {
|
|
3381
3381
|
close: he(() => e(!1), [e]),
|
|
3382
3382
|
isOpen: n,
|
|
3383
3383
|
defaultLayout: r,
|
|
@@ -3387,14 +3387,14 @@ const ec = (t) => {
|
|
|
3387
3387
|
};
|
|
3388
3388
|
return /* @__PURE__ */ s(ci.Provider, { value: l, children: t });
|
|
3389
3389
|
};
|
|
3390
|
-
var C = {},
|
|
3390
|
+
var C = {}, Jr = {
|
|
3391
3391
|
get exports() {
|
|
3392
3392
|
return C;
|
|
3393
3393
|
},
|
|
3394
3394
|
set exports(t) {
|
|
3395
3395
|
C = t;
|
|
3396
3396
|
}
|
|
3397
|
-
}, ln = {},
|
|
3397
|
+
}, ln = {}, ic = {
|
|
3398
3398
|
get exports() {
|
|
3399
3399
|
return ln;
|
|
3400
3400
|
},
|
|
@@ -3410,11 +3410,11 @@ var C = {}, Qr = {
|
|
|
3410
3410
|
* This source code is licensed under the MIT license found in the
|
|
3411
3411
|
* LICENSE file in the root directory of this source tree.
|
|
3412
3412
|
*/
|
|
3413
|
-
var
|
|
3414
|
-
function
|
|
3415
|
-
if (
|
|
3413
|
+
var Qr;
|
|
3414
|
+
function ac() {
|
|
3415
|
+
if (Qr)
|
|
3416
3416
|
return J;
|
|
3417
|
-
|
|
3417
|
+
Qr = 1;
|
|
3418
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, a = 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, w = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
3419
3419
|
function E(y) {
|
|
3420
3420
|
if (typeof y == "object" && y !== null) {
|
|
@@ -3486,9 +3486,9 @@ var Q = {};
|
|
|
3486
3486
|
* This source code is licensed under the MIT license found in the
|
|
3487
3487
|
* LICENSE file in the root directory of this source tree.
|
|
3488
3488
|
*/
|
|
3489
|
-
var
|
|
3490
|
-
function
|
|
3491
|
-
return
|
|
3489
|
+
var eo;
|
|
3490
|
+
function sc() {
|
|
3491
|
+
return eo || (eo = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3492
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, a = 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, w = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
|
|
3493
3493
|
function E(_) {
|
|
3494
3494
|
return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -3569,22 +3569,22 @@ function ac() {
|
|
|
3569
3569
|
Q.AsyncMode = y, Q.ConcurrentMode = T, Q.ContextConsumer = I, Q.ContextProvider = S, Q.Element = N, Q.ForwardRef = L, Q.Fragment = H, Q.Lazy = ae, Q.Memo = re, Q.Portal = le, Q.Profiler = ke, Q.StrictMode = ee, Q.Suspense = oe, Q.isAsyncMode = ge, Q.isConcurrentMode = k, Q.isContextConsumer = P, Q.isContextProvider = M, Q.isElement = j, Q.isForwardRef = A, Q.isFragment = D, Q.isLazy = R, Q.isMemo = U, Q.isPortal = V, Q.isProfiler = G, Q.isStrictMode = B, Q.isSuspense = ce, Q.isValidElementType = E, Q.typeOf = O;
|
|
3570
3570
|
}()), Q;
|
|
3571
3571
|
}
|
|
3572
|
-
var
|
|
3572
|
+
var to;
|
|
3573
3573
|
function li() {
|
|
3574
|
-
return
|
|
3575
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
3576
|
-
}(
|
|
3574
|
+
return to || (to = 1, function(t) {
|
|
3575
|
+
process.env.NODE_ENV === "production" ? t.exports = ac() : t.exports = sc();
|
|
3576
|
+
}(ic)), ln;
|
|
3577
3577
|
}
|
|
3578
3578
|
/*
|
|
3579
3579
|
object-assign
|
|
3580
3580
|
(c) Sindre Sorhus
|
|
3581
3581
|
@license MIT
|
|
3582
3582
|
*/
|
|
3583
|
-
var Tn,
|
|
3584
|
-
function
|
|
3585
|
-
if (
|
|
3583
|
+
var Tn, no;
|
|
3584
|
+
function cc() {
|
|
3585
|
+
if (no)
|
|
3586
3586
|
return Tn;
|
|
3587
|
-
|
|
3587
|
+
no = 1;
|
|
3588
3588
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
3589
3589
|
function r(i) {
|
|
3590
3590
|
if (i == null)
|
|
@@ -3627,27 +3627,27 @@ function sc() {
|
|
|
3627
3627
|
return l;
|
|
3628
3628
|
}, Tn;
|
|
3629
3629
|
}
|
|
3630
|
-
var _n,
|
|
3631
|
-
function
|
|
3632
|
-
if (
|
|
3630
|
+
var _n, ro;
|
|
3631
|
+
function Cr() {
|
|
3632
|
+
if (ro)
|
|
3633
3633
|
return _n;
|
|
3634
|
-
|
|
3634
|
+
ro = 1;
|
|
3635
3635
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
3636
3636
|
return _n = t, _n;
|
|
3637
3637
|
}
|
|
3638
|
-
var Pn,
|
|
3638
|
+
var Pn, oo;
|
|
3639
3639
|
function ui() {
|
|
3640
|
-
return
|
|
3640
|
+
return oo || (oo = 1, Pn = Function.call.bind(Object.prototype.hasOwnProperty)), Pn;
|
|
3641
3641
|
}
|
|
3642
|
-
var In,
|
|
3643
|
-
function
|
|
3644
|
-
if (
|
|
3642
|
+
var In, io;
|
|
3643
|
+
function lc() {
|
|
3644
|
+
if (io)
|
|
3645
3645
|
return In;
|
|
3646
|
-
|
|
3646
|
+
io = 1;
|
|
3647
3647
|
var t = function() {
|
|
3648
3648
|
};
|
|
3649
3649
|
if (process.env.NODE_ENV !== "production") {
|
|
3650
|
-
var e =
|
|
3650
|
+
var e = Cr(), n = {}, r = ui();
|
|
3651
3651
|
t = function(i) {
|
|
3652
3652
|
var a = "Warning: " + i;
|
|
3653
3653
|
typeof console < "u" && console.error(a);
|
|
@@ -3689,12 +3689,12 @@ function cc() {
|
|
|
3689
3689
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
3690
3690
|
}, In = o, In;
|
|
3691
3691
|
}
|
|
3692
|
-
var Nn,
|
|
3693
|
-
function
|
|
3694
|
-
if (
|
|
3692
|
+
var Nn, ao;
|
|
3693
|
+
function uc() {
|
|
3694
|
+
if (ao)
|
|
3695
3695
|
return Nn;
|
|
3696
|
-
|
|
3697
|
-
var t = li(), e =
|
|
3696
|
+
ao = 1;
|
|
3697
|
+
var t = li(), e = cc(), n = Cr(), r = ui(), o = lc(), i = function() {
|
|
3698
3698
|
};
|
|
3699
3699
|
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
3700
3700
|
var l = "Warning: " + c;
|
|
@@ -4011,12 +4011,12 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4011
4011
|
return h.checkPropTypes = o, h.resetWarningCache = o.resetWarningCache, h.PropTypes = h, h;
|
|
4012
4012
|
}, Nn;
|
|
4013
4013
|
}
|
|
4014
|
-
var An,
|
|
4015
|
-
function
|
|
4016
|
-
if (
|
|
4014
|
+
var An, so;
|
|
4015
|
+
function dc() {
|
|
4016
|
+
if (so)
|
|
4017
4017
|
return An;
|
|
4018
|
-
|
|
4019
|
-
var t =
|
|
4018
|
+
so = 1;
|
|
4019
|
+
var t = Cr();
|
|
4020
4020
|
function e() {
|
|
4021
4021
|
}
|
|
4022
4022
|
function n() {
|
|
@@ -4061,10 +4061,10 @@ function uc() {
|
|
|
4061
4061
|
}, An;
|
|
4062
4062
|
}
|
|
4063
4063
|
if (process.env.NODE_ENV !== "production") {
|
|
4064
|
-
var
|
|
4065
|
-
|
|
4064
|
+
var fc = li(), pc = !0;
|
|
4065
|
+
Jr.exports = uc()(fc.isElement, pc);
|
|
4066
4066
|
} else
|
|
4067
|
-
|
|
4067
|
+
Jr.exports = dc()();
|
|
4068
4068
|
function Kn(t) {
|
|
4069
4069
|
return Kn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4070
4070
|
return typeof e;
|
|
@@ -4072,31 +4072,31 @@ function Kn(t) {
|
|
|
4072
4072
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4073
4073
|
}, Kn(t);
|
|
4074
4074
|
}
|
|
4075
|
-
var
|
|
4075
|
+
var hc;
|
|
4076
4076
|
function Kt() {
|
|
4077
|
-
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] : hc;
|
|
4078
4078
|
return e ? t.split(" ").map(function(n) {
|
|
4079
4079
|
return e[n] || n;
|
|
4080
4080
|
}).join(" ") : t;
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function mc(t, e) {
|
|
4083
4083
|
var n = {};
|
|
4084
4084
|
return Object.keys(t).forEach(function(r) {
|
|
4085
4085
|
e.indexOf(r) === -1 && (n[r] = t[r]);
|
|
4086
4086
|
}), n;
|
|
4087
4087
|
}
|
|
4088
|
-
function
|
|
4088
|
+
function vc(t, e) {
|
|
4089
4089
|
for (var n = Array.isArray(e) ? e : [e], r = n.length, o, i = {}; r > 0; )
|
|
4090
4090
|
r -= 1, o = n[r], i[o] = t[o];
|
|
4091
4091
|
return i;
|
|
4092
4092
|
}
|
|
4093
|
-
var
|
|
4093
|
+
var gc = (typeof window > "u" ? "undefined" : Kn(window)) === "object" && window.Element || function() {
|
|
4094
4094
|
};
|
|
4095
|
-
function
|
|
4096
|
-
if (!(t[e] instanceof
|
|
4095
|
+
function yc(t, e, n) {
|
|
4096
|
+
if (!(t[e] instanceof gc))
|
|
4097
4097
|
return new Error("Invalid prop `" + e + "` supplied to `" + n + "`. Expected prop to be an instance of Element. Validation failed.");
|
|
4098
4098
|
}
|
|
4099
|
-
C.oneOfType([C.string, C.func,
|
|
4099
|
+
C.oneOfType([C.string, C.func, yc, C.shape({
|
|
4100
4100
|
current: C.any
|
|
4101
4101
|
})]);
|
|
4102
4102
|
var yn = C.oneOfType([C.func, C.string, C.shape({
|
|
@@ -4105,7 +4105,7 @@ var yn = C.oneOfType([C.func, C.string, C.shape({
|
|
|
4105
4105
|
}), C.arrayOf(C.oneOfType([C.func, C.string, C.shape({
|
|
4106
4106
|
$$typeof: C.symbol,
|
|
4107
4107
|
render: C.func
|
|
4108
|
-
})]))]),
|
|
4108
|
+
})]))]), bc = {
|
|
4109
4109
|
Fade: 150,
|
|
4110
4110
|
// $transition-fade
|
|
4111
4111
|
Collapse: 350,
|
|
@@ -4116,12 +4116,12 @@ var yn = C.oneOfType([C.func, C.string, C.shape({
|
|
|
4116
4116
|
// $carousel-transition
|
|
4117
4117
|
Offcanvas: 300
|
|
4118
4118
|
// $offcanvas-transition
|
|
4119
|
-
},
|
|
4119
|
+
}, co = ["in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited"], Qt = {
|
|
4120
4120
|
ENTERING: "entering",
|
|
4121
4121
|
ENTERED: "entered",
|
|
4122
4122
|
EXITING: "exiting",
|
|
4123
4123
|
EXITED: "exited"
|
|
4124
|
-
},
|
|
4124
|
+
}, wc = ["className", "cssModule", "variant", "innerRef"];
|
|
4125
4125
|
function qn() {
|
|
4126
4126
|
return qn = Object.assign ? Object.assign.bind() : function(t) {
|
|
4127
4127
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4132,7 +4132,7 @@ function qn() {
|
|
|
4132
4132
|
return t;
|
|
4133
4133
|
}, qn.apply(this, arguments);
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function lo(t, e) {
|
|
4136
4136
|
var n = Object.keys(t);
|
|
4137
4137
|
if (Object.getOwnPropertySymbols) {
|
|
4138
4138
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -4142,24 +4142,24 @@ function uo(t, e) {
|
|
|
4142
4142
|
}
|
|
4143
4143
|
return n;
|
|
4144
4144
|
}
|
|
4145
|
-
function
|
|
4145
|
+
function Cc(t) {
|
|
4146
4146
|
for (var e = 1; e < arguments.length; e++) {
|
|
4147
4147
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
4148
|
-
e % 2 ?
|
|
4149
|
-
|
|
4150
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
4148
|
+
e % 2 ? lo(Object(n), !0).forEach(function(r) {
|
|
4149
|
+
Oc(t, r, n[r]);
|
|
4150
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : lo(Object(n)).forEach(function(r) {
|
|
4151
4151
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4152
4152
|
});
|
|
4153
4153
|
}
|
|
4154
4154
|
return t;
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4156
|
+
function Oc(t, e, n) {
|
|
4157
4157
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
4158
4158
|
}
|
|
4159
|
-
function
|
|
4159
|
+
function Ec(t, e) {
|
|
4160
4160
|
if (t == null)
|
|
4161
4161
|
return {};
|
|
4162
|
-
var n =
|
|
4162
|
+
var n = xc(t, e), r, o;
|
|
4163
4163
|
if (Object.getOwnPropertySymbols) {
|
|
4164
4164
|
var i = Object.getOwnPropertySymbols(t);
|
|
4165
4165
|
for (o = 0; o < i.length; o++)
|
|
@@ -4167,7 +4167,7 @@ function Oc(t, e) {
|
|
|
4167
4167
|
}
|
|
4168
4168
|
return n;
|
|
4169
4169
|
}
|
|
4170
|
-
function
|
|
4170
|
+
function xc(t, e) {
|
|
4171
4171
|
if (t == null)
|
|
4172
4172
|
return {};
|
|
4173
4173
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4175,7 +4175,7 @@ function Ec(t, e) {
|
|
|
4175
4175
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4176
4176
|
return n;
|
|
4177
4177
|
}
|
|
4178
|
-
var
|
|
4178
|
+
var kc = {
|
|
4179
4179
|
/** Disable the button if needed */
|
|
4180
4180
|
active: C.bool,
|
|
4181
4181
|
/** Aria label */
|
|
@@ -4191,17 +4191,17 @@ var xc = {
|
|
|
4191
4191
|
function di(t) {
|
|
4192
4192
|
var e = t.className;
|
|
4193
4193
|
t.cssModule;
|
|
4194
|
-
var n = t.variant, r = t.innerRef, o =
|
|
4194
|
+
var n = t.variant, r = t.innerRef, o = Ec(t, wc), i = Kt(K(e, "btn-close", n && "btn-close-".concat(n)));
|
|
4195
4195
|
return /* @__PURE__ */ Oe.createElement("button", qn({
|
|
4196
4196
|
ref: r,
|
|
4197
4197
|
type: "button",
|
|
4198
4198
|
className: i
|
|
4199
|
-
},
|
|
4199
|
+
}, Cc({
|
|
4200
4200
|
"aria-label": "close"
|
|
4201
4201
|
}, o)));
|
|
4202
4202
|
}
|
|
4203
|
-
di.propTypes =
|
|
4204
|
-
var
|
|
4203
|
+
di.propTypes = kc;
|
|
4204
|
+
var Sc = ["active", "aria-label", "block", "className", "close", "cssModule", "color", "outline", "size", "tag", "innerRef"];
|
|
4205
4205
|
function Yn() {
|
|
4206
4206
|
return Yn = Object.assign ? Object.assign.bind() : function(t) {
|
|
4207
4207
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4212,10 +4212,10 @@ function Yn() {
|
|
|
4212
4212
|
return t;
|
|
4213
4213
|
}, Yn.apply(this, arguments);
|
|
4214
4214
|
}
|
|
4215
|
-
function
|
|
4215
|
+
function Tc(t, e) {
|
|
4216
4216
|
if (t == null)
|
|
4217
4217
|
return {};
|
|
4218
|
-
var n =
|
|
4218
|
+
var n = _c(t, e), r, o;
|
|
4219
4219
|
if (Object.getOwnPropertySymbols) {
|
|
4220
4220
|
var i = Object.getOwnPropertySymbols(t);
|
|
4221
4221
|
for (o = 0; o < i.length; o++)
|
|
@@ -4223,7 +4223,7 @@ function Sc(t, e) {
|
|
|
4223
4223
|
}
|
|
4224
4224
|
return n;
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function _c(t, e) {
|
|
4227
4227
|
if (t == null)
|
|
4228
4228
|
return {};
|
|
4229
4229
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4231,7 +4231,7 @@ function Tc(t, e) {
|
|
|
4231
4231
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4232
4232
|
return n;
|
|
4233
4233
|
}
|
|
4234
|
-
var
|
|
4234
|
+
var Pc = {
|
|
4235
4235
|
/** Manually set the visual state of the button to active */
|
|
4236
4236
|
active: C.bool,
|
|
4237
4237
|
/** Aria label */
|
|
@@ -4267,7 +4267,7 @@ function bn(t) {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
if (t.onClick)
|
|
4269
4269
|
return t.onClick(x);
|
|
4270
|
-
}, [t.onClick, t.disabled]), n = t.active, r = t["aria-label"], o = t.block, i = t.className, a = 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, a = 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 = Tc(t, Sc);
|
|
4271
4271
|
if (a)
|
|
4272
4272
|
return /* @__PURE__ */ Oe.createElement(di, v);
|
|
4273
4273
|
var g = "btn".concat(f ? "-outline" : "", "-").concat(u), w = Kt(K(i, "btn", g, p ? "btn-".concat(p) : !1, o ? "d-block w-100" : !1, {
|
|
@@ -4283,8 +4283,8 @@ function bn(t) {
|
|
|
4283
4283
|
"aria-label": r
|
|
4284
4284
|
}));
|
|
4285
4285
|
}
|
|
4286
|
-
bn.propTypes =
|
|
4287
|
-
function
|
|
4286
|
+
bn.propTypes = Pc;
|
|
4287
|
+
function Ic(t, e) {
|
|
4288
4288
|
if (t == null)
|
|
4289
4289
|
return {};
|
|
4290
4290
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4297,13 +4297,13 @@ function Xn(t, e) {
|
|
|
4297
4297
|
return r.__proto__ = o, r;
|
|
4298
4298
|
}, Xn(t, e);
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4300
|
+
function Nc(t, e) {
|
|
4301
4301
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Xn(t, e);
|
|
4302
4302
|
}
|
|
4303
|
-
const
|
|
4303
|
+
const uo = {
|
|
4304
4304
|
disabled: !1
|
|
4305
4305
|
};
|
|
4306
|
-
var
|
|
4306
|
+
var Ac = process.env.NODE_ENV !== "production" ? C.oneOfType([C.number, C.shape({
|
|
4307
4307
|
enter: C.number,
|
|
4308
4308
|
exit: C.number,
|
|
4309
4309
|
appear: C.number
|
|
@@ -4321,10 +4321,10 @@ process.env.NODE_ENV !== "production" && C.oneOfType([C.string, C.shape({
|
|
|
4321
4321
|
exitActive: C.string
|
|
4322
4322
|
})]);
|
|
4323
4323
|
const fi = Oe.createContext(null);
|
|
4324
|
-
var
|
|
4324
|
+
var Rc = function(e) {
|
|
4325
4325
|
return e.scrollTop;
|
|
4326
4326
|
}, Mt = "unmounted", rt = "exited", ot = "entering", gt = "entered", Jn = "exiting", Ke = /* @__PURE__ */ function(t) {
|
|
4327
|
-
|
|
4327
|
+
Nc(e, t);
|
|
4328
4328
|
function e(r, o) {
|
|
4329
4329
|
var i;
|
|
4330
4330
|
i = t.call(this, r, o) || this;
|
|
@@ -4363,7 +4363,7 @@ var Ac = function(e) {
|
|
|
4363
4363
|
if (this.cancelNextCallback(), i === ot) {
|
|
4364
4364
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
4365
4365
|
var a = this.props.nodeRef ? this.props.nodeRef.current : Yt.findDOMNode(this);
|
|
4366
|
-
a &&
|
|
4366
|
+
a && Rc(a);
|
|
4367
4367
|
}
|
|
4368
4368
|
this.performEnter(o);
|
|
4369
4369
|
} else
|
|
@@ -4374,7 +4374,7 @@ var Ac = function(e) {
|
|
|
4374
4374
|
});
|
|
4375
4375
|
}, n.performEnter = function(o) {
|
|
4376
4376
|
var i = this, a = this.props.enter, c = this.context ? this.context.isMounting : o, l = this.props.nodeRef ? [c] : [Yt.findDOMNode(this), c], u = l[0], f = l[1], p = this.getTimeouts(), d = c ? p.appear : p.enter;
|
|
4377
|
-
if (!o && !a ||
|
|
4377
|
+
if (!o && !a || uo.disabled) {
|
|
4378
4378
|
this.safeSetState({
|
|
4379
4379
|
status: gt
|
|
4380
4380
|
}, function() {
|
|
@@ -4395,7 +4395,7 @@ var Ac = function(e) {
|
|
|
4395
4395
|
});
|
|
4396
4396
|
}, n.performExit = function() {
|
|
4397
4397
|
var o = this, i = this.props.exit, a = this.getTimeouts(), c = this.props.nodeRef ? void 0 : Yt.findDOMNode(this);
|
|
4398
|
-
if (!i ||
|
|
4398
|
+
if (!i || uo.disabled) {
|
|
4399
4399
|
this.safeSetState({
|
|
4400
4400
|
status: rt
|
|
4401
4401
|
}, function() {
|
|
@@ -4443,7 +4443,7 @@ var Ac = function(e) {
|
|
|
4443
4443
|
return null;
|
|
4444
4444
|
var i = this.props, a = i.children;
|
|
4445
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;
|
|
4446
|
-
var c =
|
|
4446
|
+
var c = Ic(i, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
4447
4447
|
return (
|
|
4448
4448
|
// allows for nested Transitions
|
|
4449
4449
|
/* @__PURE__ */ Oe.createElement(fi.Provider, {
|
|
@@ -4549,7 +4549,7 @@ Ke.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
4549
4549
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
4550
4550
|
*/
|
|
4551
4551
|
timeout: function(e) {
|
|
4552
|
-
var n =
|
|
4552
|
+
var n = Ac;
|
|
4553
4553
|
e.addEndListener || (n = n.isRequired);
|
|
4554
4554
|
for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
4555
4555
|
o[i - 1] = arguments[i];
|
|
@@ -4643,7 +4643,7 @@ Ke.EXITED = rt;
|
|
|
4643
4643
|
Ke.ENTERING = ot;
|
|
4644
4644
|
Ke.ENTERED = gt;
|
|
4645
4645
|
Ke.EXITING = Jn;
|
|
4646
|
-
const
|
|
4646
|
+
const Or = Ke;
|
|
4647
4647
|
function Qn(t) {
|
|
4648
4648
|
return Qn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4649
4649
|
return typeof e;
|
|
@@ -4651,7 +4651,7 @@ function Qn(t) {
|
|
|
4651
4651
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4652
4652
|
}, Qn(t);
|
|
4653
4653
|
}
|
|
4654
|
-
var
|
|
4654
|
+
var Lc = ["tag", "horizontal", "isOpen", "className", "navbar", "cssModule", "children", "innerRef"], ht;
|
|
4655
4655
|
function un() {
|
|
4656
4656
|
return un = Object.assign ? Object.assign.bind() : function(t) {
|
|
4657
4657
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4662,10 +4662,10 @@ function un() {
|
|
|
4662
4662
|
return t;
|
|
4663
4663
|
}, un.apply(this, arguments);
|
|
4664
4664
|
}
|
|
4665
|
-
function
|
|
4665
|
+
function Mc(t, e) {
|
|
4666
4666
|
if (t == null)
|
|
4667
4667
|
return {};
|
|
4668
|
-
var n =
|
|
4668
|
+
var n = Dc(t, e), r, o;
|
|
4669
4669
|
if (Object.getOwnPropertySymbols) {
|
|
4670
4670
|
var i = Object.getOwnPropertySymbols(t);
|
|
4671
4671
|
for (o = 0; o < i.length; o++)
|
|
@@ -4673,7 +4673,7 @@ function Lc(t, e) {
|
|
|
4673
4673
|
}
|
|
4674
4674
|
return n;
|
|
4675
4675
|
}
|
|
4676
|
-
function
|
|
4676
|
+
function Dc(t, e) {
|
|
4677
4677
|
if (t == null)
|
|
4678
4678
|
return {};
|
|
4679
4679
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4681,20 +4681,20 @@ function Mc(t, e) {
|
|
|
4681
4681
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4682
4682
|
return n;
|
|
4683
4683
|
}
|
|
4684
|
-
function
|
|
4684
|
+
function jc(t, e) {
|
|
4685
4685
|
if (!(t instanceof e))
|
|
4686
4686
|
throw new TypeError("Cannot call a class as a function");
|
|
4687
4687
|
}
|
|
4688
|
-
function
|
|
4688
|
+
function fo(t, e) {
|
|
4689
4689
|
for (var n = 0; n < e.length; n++) {
|
|
4690
4690
|
var r = e[n];
|
|
4691
4691
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
4692
4692
|
}
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4695
|
-
return e &&
|
|
4694
|
+
function Uc(t, e, n) {
|
|
4695
|
+
return e && fo(t.prototype, e), n && fo(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4696
4696
|
}
|
|
4697
|
-
function
|
|
4697
|
+
function Fc(t, e) {
|
|
4698
4698
|
if (typeof e != "function" && e !== null)
|
|
4699
4699
|
throw new TypeError("Super expression must either be null or a function");
|
|
4700
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);
|
|
@@ -4704,8 +4704,8 @@ function er(t, e) {
|
|
|
4704
4704
|
return r.__proto__ = o, r;
|
|
4705
4705
|
}, er(t, e);
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4708
|
-
var e =
|
|
4707
|
+
function Wc(t) {
|
|
4708
|
+
var e = Vc();
|
|
4709
4709
|
return function() {
|
|
4710
4710
|
var r = dn(t), o;
|
|
4711
4711
|
if (e) {
|
|
@@ -4713,10 +4713,10 @@ function Fc(t) {
|
|
|
4713
4713
|
o = Reflect.construct(r, arguments, i);
|
|
4714
4714
|
} else
|
|
4715
4715
|
o = r.apply(this, arguments);
|
|
4716
|
-
return
|
|
4716
|
+
return Hc(this, o);
|
|
4717
4717
|
};
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function Hc(t, e) {
|
|
4720
4720
|
if (e && (Qn(e) === "object" || typeof e == "function"))
|
|
4721
4721
|
return e;
|
|
4722
4722
|
if (e !== void 0)
|
|
@@ -4728,7 +4728,7 @@ function pi(t) {
|
|
|
4728
4728
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4729
4729
|
return t;
|
|
4730
4730
|
}
|
|
4731
|
-
function
|
|
4731
|
+
function Vc() {
|
|
4732
4732
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
4733
4733
|
return !1;
|
|
4734
4734
|
if (typeof Proxy == "function")
|
|
@@ -4745,7 +4745,7 @@ function dn(t) {
|
|
|
4745
4745
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
4746
4746
|
}, dn(t);
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function po(t, e) {
|
|
4749
4749
|
var n = Object.keys(t);
|
|
4750
4750
|
if (Object.getOwnPropertySymbols) {
|
|
4751
4751
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -4758,9 +4758,9 @@ function ho(t, e) {
|
|
|
4758
4758
|
function St(t) {
|
|
4759
4759
|
for (var e = 1; e < arguments.length; e++) {
|
|
4760
4760
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
4761
|
-
e % 2 ?
|
|
4761
|
+
e % 2 ? po(Object(n), !0).forEach(function(r) {
|
|
4762
4762
|
bt(t, r, n[r]);
|
|
4763
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) :
|
|
4763
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : po(Object(n)).forEach(function(r) {
|
|
4764
4764
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
|
|
4765
4765
|
});
|
|
4766
4766
|
}
|
|
@@ -4769,7 +4769,7 @@ function St(t) {
|
|
|
4769
4769
|
function bt(t, e, n) {
|
|
4770
4770
|
return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
4771
4771
|
}
|
|
4772
|
-
var
|
|
4772
|
+
var zc = St(St({}, Or.propTypes), {}, {
|
|
4773
4773
|
/** Make content animation appear horizontally */
|
|
4774
4774
|
horizontal: C.bool,
|
|
4775
4775
|
/** Set if Collapse is open or closed */
|
|
@@ -4785,30 +4785,30 @@ var Vc = St(St({}, Er.propTypes), {}, {
|
|
|
4785
4785
|
innerRef: C.shape({
|
|
4786
4786
|
current: C.object
|
|
4787
4787
|
})
|
|
4788
|
-
}),
|
|
4788
|
+
}), Zc = St(St({}, Or.defaultProps), {}, {
|
|
4789
4789
|
horizontal: !1,
|
|
4790
4790
|
isOpen: !1,
|
|
4791
4791
|
appear: !1,
|
|
4792
4792
|
enter: !0,
|
|
4793
4793
|
exit: !0,
|
|
4794
4794
|
tag: "div",
|
|
4795
|
-
timeout:
|
|
4796
|
-
}),
|
|
4797
|
-
function
|
|
4798
|
-
return
|
|
4799
|
-
}
|
|
4800
|
-
var
|
|
4801
|
-
|
|
4802
|
-
var e =
|
|
4795
|
+
timeout: bc.Collapse
|
|
4796
|
+
}), Bc = (ht = {}, bt(ht, Qt.ENTERING, "collapsing"), bt(ht, Qt.ENTERED, "collapse show"), bt(ht, Qt.EXITING, "collapsing"), bt(ht, Qt.EXITED, "collapse"), ht);
|
|
4797
|
+
function $c(t) {
|
|
4798
|
+
return Bc[t] || "collapse";
|
|
4799
|
+
}
|
|
4800
|
+
var Er = /* @__PURE__ */ function(t) {
|
|
4801
|
+
Fc(n, t);
|
|
4802
|
+
var e = Wc(n);
|
|
4803
4803
|
function n(r) {
|
|
4804
4804
|
var o;
|
|
4805
|
-
return
|
|
4805
|
+
return jc(this, n), o = e.call(this, r), o.state = {
|
|
4806
4806
|
dimension: null
|
|
4807
4807
|
}, o.nodeRef = r.innerRef || /* @__PURE__ */ Oe.createRef(), ["onEntering", "onEntered", "onExit", "onExiting", "onExited"].forEach(function(i) {
|
|
4808
4808
|
o[i] = o[i].bind(pi(o));
|
|
4809
4809
|
}), o;
|
|
4810
4810
|
}
|
|
4811
|
-
return
|
|
4811
|
+
return Uc(n, [{
|
|
4812
4812
|
key: "onEntering",
|
|
4813
4813
|
value: function(o, i) {
|
|
4814
4814
|
var a = this.getNode();
|
|
@@ -4863,8 +4863,8 @@ var xr = /* @__PURE__ */ function(t) {
|
|
|
4863
4863
|
value: function() {
|
|
4864
4864
|
var o = this, i = this.props, a = i.tag, c = i.horizontal, l = i.isOpen, u = i.className, f = i.navbar, p = i.cssModule, d = i.children;
|
|
4865
4865
|
i.innerRef;
|
|
4866
|
-
var h =
|
|
4867
|
-
return /* @__PURE__ */ Oe.createElement(
|
|
4866
|
+
var h = Mc(i, Lc), m = this.state.dimension, v = vc(h, co), g = mc(h, co);
|
|
4867
|
+
return /* @__PURE__ */ Oe.createElement(Or, un({}, v, {
|
|
4868
4868
|
in: l,
|
|
4869
4869
|
nodeRef: this.nodeRef,
|
|
4870
4870
|
onEntering: this.onEntering,
|
|
@@ -4873,7 +4873,7 @@ var xr = /* @__PURE__ */ function(t) {
|
|
|
4873
4873
|
onExiting: this.onExiting,
|
|
4874
4874
|
onExited: this.onExited
|
|
4875
4875
|
}), function(w) {
|
|
4876
|
-
var x =
|
|
4876
|
+
var x = $c(w), E = Kt(K(u, c && "collapse-horizontal", x, f && "navbar-collapse"), p), O = m === null ? null : bt({}, c ? "width" : "height", m);
|
|
4877
4877
|
return /* @__PURE__ */ Oe.createElement(a, un({}, g, {
|
|
4878
4878
|
style: St(St({}, g.style), O),
|
|
4879
4879
|
className: E,
|
|
@@ -4882,10 +4882,10 @@ var xr = /* @__PURE__ */ function(t) {
|
|
|
4882
4882
|
});
|
|
4883
4883
|
}
|
|
4884
4884
|
}]), n;
|
|
4885
|
-
}(
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
const hi =
|
|
4885
|
+
}(Io);
|
|
4886
|
+
Er.propTypes = zc;
|
|
4887
|
+
Er.defaultProps = Zc;
|
|
4888
|
+
const hi = Er;
|
|
4889
4889
|
function tr(t) {
|
|
4890
4890
|
return tr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4891
4891
|
return typeof e;
|
|
@@ -4893,7 +4893,7 @@ function tr(t) {
|
|
|
4893
4893
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4894
4894
|
}, tr(t);
|
|
4895
4895
|
}
|
|
4896
|
-
var
|
|
4896
|
+
var Gc = ["className", "cssModule", "tag", "innerRef"];
|
|
4897
4897
|
function nr() {
|
|
4898
4898
|
return nr = Object.assign ? Object.assign.bind() : function(t) {
|
|
4899
4899
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -4904,10 +4904,10 @@ function nr() {
|
|
|
4904
4904
|
return t;
|
|
4905
4905
|
}, nr.apply(this, arguments);
|
|
4906
4906
|
}
|
|
4907
|
-
function
|
|
4907
|
+
function Kc(t, e) {
|
|
4908
4908
|
if (t == null)
|
|
4909
4909
|
return {};
|
|
4910
|
-
var n =
|
|
4910
|
+
var n = qc(t, e), r, o;
|
|
4911
4911
|
if (Object.getOwnPropertySymbols) {
|
|
4912
4912
|
var i = Object.getOwnPropertySymbols(t);
|
|
4913
4913
|
for (o = 0; o < i.length; o++)
|
|
@@ -4915,7 +4915,7 @@ function Gc(t, e) {
|
|
|
4915
4915
|
}
|
|
4916
4916
|
return n;
|
|
4917
4917
|
}
|
|
4918
|
-
function
|
|
4918
|
+
function qc(t, e) {
|
|
4919
4919
|
if (t == null)
|
|
4920
4920
|
return {};
|
|
4921
4921
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -4923,20 +4923,20 @@ function Kc(t, e) {
|
|
|
4923
4923
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
4924
4924
|
return n;
|
|
4925
4925
|
}
|
|
4926
|
-
function
|
|
4926
|
+
function Yc(t, e) {
|
|
4927
4927
|
if (!(t instanceof e))
|
|
4928
4928
|
throw new TypeError("Cannot call a class as a function");
|
|
4929
4929
|
}
|
|
4930
|
-
function
|
|
4930
|
+
function ho(t, e) {
|
|
4931
4931
|
for (var n = 0; n < e.length; n++) {
|
|
4932
4932
|
var r = e[n];
|
|
4933
4933
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
|
|
4934
4934
|
}
|
|
4935
4935
|
}
|
|
4936
|
-
function
|
|
4937
|
-
return e &&
|
|
4936
|
+
function Xc(t, e, n) {
|
|
4937
|
+
return e && ho(t.prototype, e), n && ho(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
4938
4938
|
}
|
|
4939
|
-
function
|
|
4939
|
+
function Jc(t, e) {
|
|
4940
4940
|
if (typeof e != "function" && e !== null)
|
|
4941
4941
|
throw new TypeError("Super expression must either be null or a function");
|
|
4942
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);
|
|
@@ -4946,8 +4946,8 @@ function rr(t, e) {
|
|
|
4946
4946
|
return r.__proto__ = o, r;
|
|
4947
4947
|
}, rr(t, e);
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4950
|
-
var e =
|
|
4949
|
+
function Qc(t) {
|
|
4950
|
+
var e = tl();
|
|
4951
4951
|
return function() {
|
|
4952
4952
|
var r = fn(t), o;
|
|
4953
4953
|
if (e) {
|
|
@@ -4955,10 +4955,10 @@ function Jc(t) {
|
|
|
4955
4955
|
o = Reflect.construct(r, arguments, i);
|
|
4956
4956
|
} else
|
|
4957
4957
|
o = r.apply(this, arguments);
|
|
4958
|
-
return
|
|
4958
|
+
return el(this, o);
|
|
4959
4959
|
};
|
|
4960
4960
|
}
|
|
4961
|
-
function
|
|
4961
|
+
function el(t, e) {
|
|
4962
4962
|
if (e && (tr(e) === "object" || typeof e == "function"))
|
|
4963
4963
|
return e;
|
|
4964
4964
|
if (e !== void 0)
|
|
@@ -4970,7 +4970,7 @@ function or(t) {
|
|
|
4970
4970
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4971
4971
|
return t;
|
|
4972
4972
|
}
|
|
4973
|
-
function
|
|
4973
|
+
function tl() {
|
|
4974
4974
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
4975
4975
|
return !1;
|
|
4976
4976
|
if (typeof Proxy == "function")
|
|
@@ -4987,20 +4987,20 @@ function fn(t) {
|
|
|
4987
4987
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
4988
4988
|
}, fn(t);
|
|
4989
4989
|
}
|
|
4990
|
-
var
|
|
4990
|
+
var nl = {
|
|
4991
4991
|
children: C.node,
|
|
4992
4992
|
tag: yn,
|
|
4993
4993
|
innerRef: C.oneOfType([C.object, C.func, C.string]),
|
|
4994
4994
|
className: C.string,
|
|
4995
4995
|
cssModule: C.object
|
|
4996
4996
|
}, mi = /* @__PURE__ */ function(t) {
|
|
4997
|
-
|
|
4998
|
-
var e =
|
|
4997
|
+
Jc(n, t);
|
|
4998
|
+
var e = Qc(n);
|
|
4999
4999
|
function n(r) {
|
|
5000
5000
|
var o;
|
|
5001
|
-
return
|
|
5001
|
+
return Yc(this, n), o = e.call(this, r), o.getRef = o.getRef.bind(or(o)), o.submit = o.submit.bind(or(o)), o;
|
|
5002
5002
|
}
|
|
5003
|
-
return
|
|
5003
|
+
return Xc(n, [{
|
|
5004
5004
|
key: "getRef",
|
|
5005
5005
|
value: function(o) {
|
|
5006
5006
|
this.props.innerRef && this.props.innerRef(o), this.ref = o;
|
|
@@ -5013,17 +5013,17 @@ var tl = {
|
|
|
5013
5013
|
}, {
|
|
5014
5014
|
key: "render",
|
|
5015
5015
|
value: function() {
|
|
5016
|
-
var o = this.props, i = o.className, a = o.cssModule, c = o.tag, l = c === void 0 ? "form" : c, u = o.innerRef, f =
|
|
5016
|
+
var o = this.props, i = o.className, a = o.cssModule, c = o.tag, l = c === void 0 ? "form" : c, u = o.innerRef, f = Kc(o, Gc), p = Kt(i, a);
|
|
5017
5017
|
return /* @__PURE__ */ Oe.createElement(l, nr({}, f, {
|
|
5018
5018
|
ref: u,
|
|
5019
5019
|
className: p
|
|
5020
5020
|
}));
|
|
5021
5021
|
}
|
|
5022
5022
|
}]), n;
|
|
5023
|
-
}(
|
|
5024
|
-
mi.propTypes =
|
|
5025
|
-
const
|
|
5026
|
-
var
|
|
5023
|
+
}(Io);
|
|
5024
|
+
mi.propTypes = nl;
|
|
5025
|
+
const rl = mi;
|
|
5026
|
+
var ol = ["className", "cssModule", "row", "disabled", "check", "inline", "floating", "noMargin", "tag", "switch"];
|
|
5027
5027
|
function ir() {
|
|
5028
5028
|
return ir = Object.assign ? Object.assign.bind() : function(t) {
|
|
5029
5029
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -5034,10 +5034,10 @@ function ir() {
|
|
|
5034
5034
|
return t;
|
|
5035
5035
|
}, ir.apply(this, arguments);
|
|
5036
5036
|
}
|
|
5037
|
-
function
|
|
5037
|
+
function il(t, e) {
|
|
5038
5038
|
if (t == null)
|
|
5039
5039
|
return {};
|
|
5040
|
-
var n =
|
|
5040
|
+
var n = al(t, e), r, o;
|
|
5041
5041
|
if (Object.getOwnPropertySymbols) {
|
|
5042
5042
|
var i = Object.getOwnPropertySymbols(t);
|
|
5043
5043
|
for (o = 0; o < i.length; o++)
|
|
@@ -5045,7 +5045,7 @@ function ol(t, e) {
|
|
|
5045
5045
|
}
|
|
5046
5046
|
return n;
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function al(t, e) {
|
|
5049
5049
|
if (t == null)
|
|
5050
5050
|
return {};
|
|
5051
5051
|
var n = {}, r = Object.keys(t), o, i;
|
|
@@ -5053,7 +5053,7 @@ function il(t, e) {
|
|
|
5053
5053
|
o = r[i], !(e.indexOf(o) >= 0) && (n[o] = t[o]);
|
|
5054
5054
|
return n;
|
|
5055
5055
|
}
|
|
5056
|
-
var
|
|
5056
|
+
var sl = {
|
|
5057
5057
|
children: C.node,
|
|
5058
5058
|
row: C.bool,
|
|
5059
5059
|
check: C.bool,
|
|
@@ -5067,14 +5067,14 @@ var al = {
|
|
|
5067
5067
|
cssModule: C.object
|
|
5068
5068
|
};
|
|
5069
5069
|
function ar(t) {
|
|
5070
|
-
var e = t.className, n = t.cssModule, r = t.row, o = t.disabled, i = t.check, a = 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, a = t.inline, c = t.floating, l = t.noMargin, u = t.tag, f = u === void 0 ? "div" : u, p = t.switch, d = il(t, ol), h = i || p, m = Kt(K(e, r ? "row" : !1, h ? "form-check" : !1, p ? "form-switch" : !1, h || l ? !1 : "mb-3", h && a ? "form-check-inline" : !1, h && o ? "disabled" : !1, c && "form-floating"), n);
|
|
5071
5071
|
return f === "fieldset" && (d.disabled = o), /* @__PURE__ */ Oe.createElement(f, ir({}, d, {
|
|
5072
5072
|
className: m
|
|
5073
5073
|
}));
|
|
5074
5074
|
}
|
|
5075
|
-
ar.propTypes =
|
|
5076
|
-
const
|
|
5077
|
-
const { config: e, isFavoritismEnabled: n, level: r = 1, onItemClick: o } = t, { isCollapsible: i, showAllItems: a, displayCount: c =
|
|
5075
|
+
ar.propTypes = sl;
|
|
5076
|
+
const xr = (t) => {
|
|
5077
|
+
const { config: e, isFavoritismEnabled: n, level: r = 1, onItemClick: o } = t, { isCollapsible: i, showAllItems: a, displayCount: c = nc } = e, l = Tt(), u = Zo(), [f, p] = z(1), [d, h] = z(0), [m, v] = z(!1), g = Me({}), w = e.items.filter((S) => Dt(S)), x = e.items.filter((S) => !Dt(S)), E = a ? x : x.slice(0, f * c);
|
|
5078
5078
|
Y(() => {
|
|
5079
5079
|
l.isOpen || p(1);
|
|
5080
5080
|
}, [l.isOpen]);
|
|
@@ -5087,7 +5087,7 @@ const kr = (t) => {
|
|
|
5087
5087
|
};
|
|
5088
5088
|
return /* @__PURE__ */ b("li", { className: "section", children: [
|
|
5089
5089
|
/* @__PURE__ */ s(
|
|
5090
|
-
|
|
5090
|
+
Xi,
|
|
5091
5091
|
{
|
|
5092
5092
|
iconSrc: e.iconSrc,
|
|
5093
5093
|
iconName: e.iconName,
|
|
@@ -5103,7 +5103,7 @@ const kr = (t) => {
|
|
|
5103
5103
|
),
|
|
5104
5104
|
/* @__PURE__ */ b(hi, { isOpen: i ? m : !0, tag: "ul", children: [
|
|
5105
5105
|
y.map((S, N) => Dt(S) ? /* @__PURE__ */ s(
|
|
5106
|
-
|
|
5106
|
+
xr,
|
|
5107
5107
|
{
|
|
5108
5108
|
config: S,
|
|
5109
5109
|
isFavoritismEnabled: n,
|
|
@@ -5112,7 +5112,7 @@ const kr = (t) => {
|
|
|
5112
5112
|
},
|
|
5113
5113
|
S.id
|
|
5114
5114
|
) : /* @__PURE__ */ s("li", { ref: (L) => g.current[N] = L, children: /* @__PURE__ */ s(
|
|
5115
|
-
|
|
5115
|
+
tc,
|
|
5116
5116
|
{
|
|
5117
5117
|
isFavoritismEnabled: n,
|
|
5118
5118
|
item: S,
|
|
@@ -5123,7 +5123,7 @@ const kr = (t) => {
|
|
|
5123
5123
|
}),
|
|
5124
5124
|
style: { paddingLeft: `${r === 1 ? 7 : r * 11}px` },
|
|
5125
5125
|
onKeyDown: (L) => {
|
|
5126
|
-
|
|
5126
|
+
jo({
|
|
5127
5127
|
event: L,
|
|
5128
5128
|
moveFocus: T,
|
|
5129
5129
|
currentIndex: d,
|
|
@@ -5151,32 +5151,32 @@ const kr = (t) => {
|
|
|
5151
5151
|
) })
|
|
5152
5152
|
] })
|
|
5153
5153
|
] });
|
|
5154
|
-
}, vi = (t) => `${t.type}-${t.id}`,
|
|
5154
|
+
}, vi = (t) => `${t.type}-${t.id}`, cl = (t, e) => gi(t)[e], gi = (t) => t.reduce((e, n) => Dt(n) ? { ...e, ...gi(n.items) } : { ...e, [vi(n)]: n }, {}), yi = Zt(void 0), ll = () => {
|
|
5155
5155
|
const t = ne(yi);
|
|
5156
5156
|
if (t === void 0)
|
|
5157
5157
|
throw new Error("useSection must be used within a SectionProvider");
|
|
5158
5158
|
return t;
|
|
5159
|
-
},
|
|
5159
|
+
}, ul = ({ children: t }) => {
|
|
5160
5160
|
const [e, n] = z(null);
|
|
5161
5161
|
return /* @__PURE__ */ s(yi.Provider, { value: [e, n], children: t });
|
|
5162
|
-
},
|
|
5163
|
-
const [n, r] =
|
|
5162
|
+
}, kr = ({ config: t, onItemClick: e }) => {
|
|
5163
|
+
const [n, r] = ll(), o = Tt(), i = Zo(), a = (c, l) => {
|
|
5164
5164
|
const { item: u, selectedContextMenuActionName: f } = l;
|
|
5165
5165
|
r({ itemName: vi(u), selectedContextMenuActionName: f });
|
|
5166
5166
|
};
|
|
5167
5167
|
return Y(() => {
|
|
5168
5168
|
if (!e || !n)
|
|
5169
5169
|
return;
|
|
5170
|
-
const { itemName: c, selectedContextMenuActionName: l } = n, u =
|
|
5170
|
+
const { itemName: c, selectedContextMenuActionName: l } = n, u = cl(t.items, c);
|
|
5171
5171
|
u && (e({
|
|
5172
5172
|
item: u,
|
|
5173
5173
|
modifier: i,
|
|
5174
5174
|
selectedContextMenuActionName: l
|
|
5175
5175
|
}), r(null), i !== mn.SHIFT && o.close());
|
|
5176
|
-
}, [n, t.items, o, e, i, r]), /* @__PURE__ */ s(
|
|
5176
|
+
}, [n, t.items, o, e, i, r]), /* @__PURE__ */ s(xr, { config: t, onItemClick: a });
|
|
5177
5177
|
};
|
|
5178
|
-
function
|
|
5179
|
-
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, a =
|
|
5178
|
+
function dl(t) {
|
|
5179
|
+
const { displayCount: e, isFolderCollapsible: n, isSectionCollapsible: r, showAllItems: o, sortOrder: i } = t, a = Ji(), c = Qi(), l = $o(), u = Go(), f = Ge(() => Ki(a, c, {
|
|
5180
5180
|
...{
|
|
5181
5181
|
displayCount: e,
|
|
5182
5182
|
showAllItems: o
|
|
@@ -5185,7 +5185,7 @@ function ul(t) {
|
|
|
5185
5185
|
isSectionCollapsible: r,
|
|
5186
5186
|
sortOrder: i
|
|
5187
5187
|
}), [a, c, e, n, r, o, i]);
|
|
5188
|
-
return /* @__PURE__ */ s(
|
|
5188
|
+
return /* @__PURE__ */ s(kr, { config: f, onItemClick: (d) => {
|
|
5189
5189
|
const { item: h, modifier: m, selectedContextMenuActionName: v } = d;
|
|
5190
5190
|
if (!v)
|
|
5191
5191
|
return l(h.id, m).catch((g) => {
|
|
@@ -5194,18 +5194,18 @@ function ul(t) {
|
|
|
5194
5194
|
u(h, v);
|
|
5195
5195
|
} });
|
|
5196
5196
|
}
|
|
5197
|
-
const
|
|
5197
|
+
const fl = {
|
|
5198
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"
|
|
5199
|
-
},
|
|
5200
|
-
loginPageLogo:
|
|
5201
|
-
},
|
|
5199
|
+
}, pl = {
|
|
5200
|
+
loginPageLogo: fl
|
|
5201
|
+
}, hl = "256px", _t = ({ logoSrc: t = pl.loginPageLogo.value, width: e = hl, className: n = "logo" }) => /* @__PURE__ */ s("img", { width: e, src: t, className: n, alt: "Login logo" });
|
|
5202
5202
|
const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) => /* @__PURE__ */ b("div", { className: "info-card", children: [
|
|
5203
5203
|
o && /* @__PURE__ */ s("h1", { className: "info-card-title", children: o }),
|
|
5204
5204
|
r && /* @__PURE__ */ s("div", { className: "info-card-image", children: /* @__PURE__ */ s(r, {}) }),
|
|
5205
5205
|
n && /* @__PURE__ */ s("h3", { className: "info-card-heading", children: n }),
|
|
5206
5206
|
/* @__PURE__ */ s("p", { className: "info-card-description", children: e }),
|
|
5207
5207
|
t
|
|
5208
|
-
] }),
|
|
5208
|
+
] }), ml = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: 222, height: 130, fill: "none", ...t, children: [
|
|
5209
5209
|
/* @__PURE__ */ s("g", { filter: "url(#a)", children: /* @__PURE__ */ s("path", { fill: "url(#b)", d: "M16 24h190v98a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6V24Z" }) }),
|
|
5210
5210
|
/* @__PURE__ */ s("path", { fill: "#3C3E3F", d: "M16 24h190V7a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z" }),
|
|
5211
5211
|
/* @__PURE__ */ s("path", { stroke: "url(#c)", d: "M16 23.5h189" }),
|
|
@@ -5259,7 +5259,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5259
5259
|
/* @__PURE__ */ s("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_816_102831", result: "shape" })
|
|
5260
5260
|
] })
|
|
5261
5261
|
] })
|
|
5262
|
-
] }),
|
|
5262
|
+
] }), vl = (t) => /* @__PURE__ */ b(
|
|
5263
5263
|
"svg",
|
|
5264
5264
|
{
|
|
5265
5265
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5319,7 +5319,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5319
5319
|
)
|
|
5320
5320
|
]
|
|
5321
5321
|
}
|
|
5322
|
-
),
|
|
5322
|
+
), gl = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...t, children: [
|
|
5323
5323
|
/* @__PURE__ */ b("defs", { children: [
|
|
5324
5324
|
/* @__PURE__ */ b(
|
|
5325
5325
|
"radialGradient",
|
|
@@ -5485,7 +5485,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5485
5485
|
transform: "translate(-4.6 -5)"
|
|
5486
5486
|
}
|
|
5487
5487
|
)
|
|
5488
|
-
] }),
|
|
5488
|
+
] }), yl = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 75.591 75.591", ...t, children: [
|
|
5489
5489
|
/* @__PURE__ */ b(
|
|
5490
5490
|
"linearGradient",
|
|
5491
5491
|
{
|
|
@@ -5531,7 +5531,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5531
5531
|
transform: "matrix(1.3333 0 0 -1.3333 0 107.2)"
|
|
5532
5532
|
}
|
|
5533
5533
|
)
|
|
5534
|
-
] }),
|
|
5534
|
+
] }), bl = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: 182, height: 121, fill: "none", ...t, children: [
|
|
5535
5535
|
/* @__PURE__ */ s("path", { fill: "url(#a)", d: "M114.092 103.689h-46.36v11.541h46.36v-11.541Z" }),
|
|
5536
5536
|
/* @__PURE__ */ s("path", { fill: "#828589", d: "M134.371 115.23H47.446v5.771h86.925v-5.771Z" }),
|
|
5537
5537
|
/* @__PURE__ */ s("rect", { width: 180.555, height: 103.984, x: 0.723, fill: "url(#b)", rx: 8 }),
|
|
@@ -5579,7 +5579,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5579
5579
|
/* @__PURE__ */ s("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_2206_37806", result: "shape" })
|
|
5580
5580
|
] })
|
|
5581
5581
|
] })
|
|
5582
|
-
] }),
|
|
5582
|
+
] }), wl = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: 196, height: 130, fill: "none", ...t, children: [
|
|
5583
5583
|
/* @__PURE__ */ s("g", { filter: "url(#a)", children: /* @__PURE__ */ s("path", { fill: "url(#b)", d: "M16 52.406h164v70a6 6 0 0 1-6 6H22a6 6 0 0 1-6-6v-70Z" }) }),
|
|
5584
5584
|
/* @__PURE__ */ s("path", { fill: "#3C3E3F", d: "M16 52.406h164v-17a6 6 0 0 0-6-6H22a6 6 0 0 0-6 6v17Z" }),
|
|
5585
5585
|
/* @__PURE__ */ s("path", { stroke: "url(#c)", d: "M16 51.906h163" }),
|
|
@@ -5678,7 +5678,7 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5678
5678
|
/* @__PURE__ */ s("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_834_102897", result: "shape" })
|
|
5679
5679
|
] })
|
|
5680
5680
|
] })
|
|
5681
|
-
] }),
|
|
5681
|
+
] }), Cl = (t) => /* @__PURE__ */ b("svg", { xmlns: "http://www.w3.org/2000/svg", width: 247, height: 143, fill: "none", ...t, children: [
|
|
5682
5682
|
/* @__PURE__ */ s("path", { fill: "url(#a)", d: "M144.369 125.689h-46.36v11.541h46.36v-11.541Z" }),
|
|
5683
5683
|
/* @__PURE__ */ s("path", { fill: "#828589", d: "M164.648 137.23H77.724v5.771h86.924v-5.771Z" }),
|
|
5684
5684
|
/* @__PURE__ */ s("rect", { width: 180.555, height: 103.984, x: 31, y: 22, fill: "url(#b)", rx: 8 }),
|
|
@@ -5915,15 +5915,15 @@ const wn = ({ children: t, description: e, heading: n, Image: r, title: o }) =>
|
|
|
5915
5915
|
/* @__PURE__ */ s("feBlend", { in: "SourceGraphic", in2: "effect1_dropShadow_807_102718", result: "shape" })
|
|
5916
5916
|
] })
|
|
5917
5917
|
] })
|
|
5918
|
-
] }),
|
|
5919
|
-
{ name: "Google Chrome", Image:
|
|
5920
|
-
{ name: "Microsoft Edge", Image:
|
|
5921
|
-
{ name: "Opera", Image:
|
|
5918
|
+
] }), Ol = [
|
|
5919
|
+
{ name: "Google Chrome", Image: vl, url: "https://www.google.com/chrome/" },
|
|
5920
|
+
{ name: "Microsoft Edge", Image: gl, url: "https://www.microsoft.com/en-us/edge/download" },
|
|
5921
|
+
{ name: "Opera", Image: yl, url: "https://www.opera.com/browsers/opera" }
|
|
5922
5922
|
];
|
|
5923
5923
|
const bi = ({ className: t, children: e, Logo: n }) => /* @__PURE__ */ s("div", { className: K("info-page-container", t), children: /* @__PURE__ */ b("div", { className: "info-page-wrapper", children: [
|
|
5924
5924
|
/* @__PURE__ */ s(n, { className: "mb-32" }),
|
|
5925
5925
|
e
|
|
5926
|
-
] }) }),
|
|
5926
|
+
] }) }), El = ({ supportEmail: t }) => /* @__PURE__ */ b("p", { className: "additional-information", children: [
|
|
5927
5927
|
"For more information, visit the io.Connect Browser",
|
|
5928
5928
|
/* @__PURE__ */ s("br", {}),
|
|
5929
5929
|
/* @__PURE__ */ s(
|
|
@@ -5945,23 +5945,18 @@ const bi = ({ className: t, children: e, Logo: n }) => /* @__PURE__ */ s("div",
|
|
|
5945
5945
|
"."
|
|
5946
5946
|
] })
|
|
5947
5947
|
] });
|
|
5948
|
-
const
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
/* @__PURE__ */ s("div", { children: c })
|
|
5957
|
-
] }, c)) }),
|
|
5958
|
-
/* @__PURE__ */ s(Ol, { supportEmail: e })
|
|
5959
|
-
] });
|
|
5960
|
-
};
|
|
5948
|
+
const xl = ({ components: { Logo: t = _t } = {}, supportEmail: e }) => /* @__PURE__ */ b(bi, { className: "browser-not-supported", Logo: t, children: [
|
|
5949
|
+
/* @__PURE__ */ s(wn, { title: "Hmm… it seems that this browser or device doesn’t support critical io.Connect features.", description: "For best experience, we recommend using the latest version of one of the following browsers:" }),
|
|
5950
|
+
/* @__PURE__ */ s("ul", { className: "browsers-list", children: Ol.map(({ Image: o, name: i, url: a }) => /* @__PURE__ */ b("li", { onClick: () => window.open(a, "_blank", "noopener,noreferrer"), children: [
|
|
5951
|
+
/* @__PURE__ */ s("div", { className: "browsers-list-image", children: /* @__PURE__ */ s(o, {}) }),
|
|
5952
|
+
/* @__PURE__ */ s("div", { children: i })
|
|
5953
|
+
] }, i)) }),
|
|
5954
|
+
/* @__PURE__ */ s(El, { supportEmail: e })
|
|
5955
|
+
] });
|
|
5961
5956
|
function Cn({ children: t, className: e, color: n, ...r }) {
|
|
5962
5957
|
return /* @__PURE__ */ s("button", { className: K(e, "io-btn", n), ...r, children: t });
|
|
5963
5958
|
}
|
|
5964
|
-
function
|
|
5959
|
+
function Sr(t) {
|
|
5965
5960
|
const { className: e, items: n, onItemClick: r, ...o } = t;
|
|
5966
5961
|
return /* @__PURE__ */ s("div", { className: K("io-btn-group", e), ...o, children: n.map((i, a) => {
|
|
5967
5962
|
const { onClick: c, ...l } = i;
|
|
@@ -5977,7 +5972,7 @@ function Tr(t) {
|
|
|
5977
5972
|
);
|
|
5978
5973
|
}) });
|
|
5979
5974
|
}
|
|
5980
|
-
const
|
|
5975
|
+
const kl = (t, e) => {
|
|
5981
5976
|
const { isSectionCollapsible: n, sortOrder: r = Ft.DISABLED, ...o } = e;
|
|
5982
5977
|
return {
|
|
5983
5978
|
id: "favorites-section",
|
|
@@ -5985,15 +5980,15 @@ const xl = (t, e) => {
|
|
|
5985
5980
|
items: fr({
|
|
5986
5981
|
items: t,
|
|
5987
5982
|
sortOrder: r,
|
|
5988
|
-
ascendingCompare:
|
|
5989
|
-
descendingCompare:
|
|
5983
|
+
ascendingCompare: Ro,
|
|
5984
|
+
descendingCompare: Lo
|
|
5990
5985
|
}),
|
|
5991
5986
|
iconName: "star",
|
|
5992
5987
|
isCollapsible: n,
|
|
5993
5988
|
...o
|
|
5994
5989
|
};
|
|
5995
|
-
},
|
|
5996
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = pr(), a = Ge(() =>
|
|
5990
|
+
}, Sl = (t) => {
|
|
5991
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, { favoriteEntities: i } = pr(), a = Ge(() => kl(i, {
|
|
5997
5992
|
...{
|
|
5998
5993
|
displayCount: e,
|
|
5999
5994
|
showAllItems: r
|
|
@@ -6001,21 +5996,32 @@ const xl = (t, e) => {
|
|
|
6001
5996
|
isSectionCollapsible: n,
|
|
6002
5997
|
sortOrder: o
|
|
6003
5998
|
}), [i, e, n, r, o]);
|
|
6004
|
-
return i.length > 0 ? /* @__PURE__ */ s(
|
|
5999
|
+
return i.length > 0 ? /* @__PURE__ */ s(kr, { config: a }) : null;
|
|
6000
|
+
}, wi = Zt(void 0), Tl = () => {
|
|
6001
|
+
const t = ne(wi);
|
|
6002
|
+
if (t === void 0)
|
|
6003
|
+
throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");
|
|
6004
|
+
return t;
|
|
6005
|
+
}, _l = ({ icon: t }) => {
|
|
6006
|
+
const { user: e, onLogout: n, launchpadComponents: r } = Tl();
|
|
6007
|
+
return /* @__PURE__ */ s(Ui, { user: e, onLogout: n, icon: t, components: r });
|
|
6008
|
+
}, vd = (t) => {
|
|
6009
|
+
const { onLogout: e, user: n, launchpad: r, icon: o } = t;
|
|
6010
|
+
return /* @__PURE__ */ s(Ui, { user: n, onLogout: e, icon: o, components: r?.components });
|
|
6005
6011
|
}, at = {
|
|
6006
6012
|
WINDOW_MANAGEMENT: "window-management",
|
|
6007
6013
|
NOTIFICATIONS: "notifications"
|
|
6008
|
-
},
|
|
6014
|
+
}, Pl = () => Promise.all(
|
|
6009
6015
|
Object.values(at).map(async (t) => {
|
|
6010
6016
|
const e = await navigator.permissions.query({ name: t });
|
|
6011
6017
|
return e.stableName = t, e;
|
|
6012
6018
|
})
|
|
6013
|
-
),
|
|
6014
|
-
const t = ne(
|
|
6019
|
+
), Ci = Zt(void 0), ut = () => {
|
|
6020
|
+
const t = ne(Ci);
|
|
6015
6021
|
if (t === void 0)
|
|
6016
6022
|
throw new Error("useIOConnectHome must be used within an IOConnectHomeProvider");
|
|
6017
6023
|
return t;
|
|
6018
|
-
},
|
|
6024
|
+
}, Il = ({ children: t }) => {
|
|
6019
6025
|
const [e, n] = z([]), r = e.length === 0, o = {
|
|
6020
6026
|
isDenied: !r && e.some(({ state: a }) => a === "denied"),
|
|
6021
6027
|
isLoading: r,
|
|
@@ -6024,7 +6030,7 @@ const xl = (t, e) => {
|
|
|
6024
6030
|
}, i = Me(!1);
|
|
6025
6031
|
return Y(() => {
|
|
6026
6032
|
let a = !1;
|
|
6027
|
-
const c =
|
|
6033
|
+
const c = Pl().then((l) => {
|
|
6028
6034
|
if (a)
|
|
6029
6035
|
return;
|
|
6030
6036
|
n(l);
|
|
@@ -6053,7 +6059,7 @@ const xl = (t, e) => {
|
|
|
6053
6059
|
};
|
|
6054
6060
|
}, []), Y(() => {
|
|
6055
6061
|
i.current = o.isSetupCompleted;
|
|
6056
|
-
}, [o.isSetupCompleted]), /* @__PURE__ */ s(
|
|
6062
|
+
}, [o.isSetupCompleted]), /* @__PURE__ */ s(Ci.Provider, { value: { permission: o }, children: t });
|
|
6057
6063
|
};
|
|
6058
6064
|
var sr = function(t, e) {
|
|
6059
6065
|
return sr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
@@ -6063,7 +6069,7 @@ var sr = function(t, e) {
|
|
|
6063
6069
|
Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
6064
6070
|
}, sr(t, e);
|
|
6065
6071
|
};
|
|
6066
|
-
function
|
|
6072
|
+
function Nl(t, e) {
|
|
6067
6073
|
if (typeof e != "function" && e !== null)
|
|
6068
6074
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
6069
6075
|
sr(t, e);
|
|
@@ -6082,7 +6088,7 @@ var pe = function() {
|
|
|
6082
6088
|
return e;
|
|
6083
6089
|
}, pe.apply(this, arguments);
|
|
6084
6090
|
};
|
|
6085
|
-
function
|
|
6091
|
+
function Al(t, e) {
|
|
6086
6092
|
var n = {};
|
|
6087
6093
|
for (var r in t)
|
|
6088
6094
|
Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
@@ -6195,13 +6201,13 @@ function We(t, e) {
|
|
|
6195
6201
|
return n;
|
|
6196
6202
|
}
|
|
6197
6203
|
var wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
6198
|
-
function
|
|
6204
|
+
function Tr(t) {
|
|
6199
6205
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
6200
6206
|
}
|
|
6201
|
-
function
|
|
6207
|
+
function _r(t, e) {
|
|
6202
6208
|
return t(e = { exports: {} }, e.exports), e.exports;
|
|
6203
6209
|
}
|
|
6204
|
-
var it =
|
|
6210
|
+
var it = _r(function(t, e) {
|
|
6205
6211
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
6206
6212
|
var n = function() {
|
|
6207
6213
|
function r() {
|
|
@@ -6232,8 +6238,8 @@ var it = Pr(function(t, e) {
|
|
|
6232
6238
|
return n.getInstance();
|
|
6233
6239
|
};
|
|
6234
6240
|
});
|
|
6235
|
-
|
|
6236
|
-
var
|
|
6241
|
+
Tr(it);
|
|
6242
|
+
var Rl = Tr(_r(function(t, e) {
|
|
6237
6243
|
var n = wt && wt.__awaiter || function(l, u, f, p) {
|
|
6238
6244
|
return new (f || (f = Promise))(function(d, h) {
|
|
6239
6245
|
function m(w) {
|
|
@@ -6452,7 +6458,7 @@ var Il = _r(Pr(function(t, e) {
|
|
|
6452
6458
|
}();
|
|
6453
6459
|
e.default = c;
|
|
6454
6460
|
}));
|
|
6455
|
-
const
|
|
6461
|
+
const Ll = { timeoutInSeconds: 60 }, Oi = { name: "auth0-spa-js", version: "2.0.4" }, Ei = () => Date.now();
|
|
6456
6462
|
class Pe extends Error {
|
|
6457
6463
|
constructor(e, n) {
|
|
6458
6464
|
super(n), this.error = e, this.error_description = n, Object.setPrototypeOf(this, Pe.prototype);
|
|
@@ -6461,9 +6467,9 @@ class Pe extends Error {
|
|
|
6461
6467
|
return new Pe(e, n);
|
|
6462
6468
|
}
|
|
6463
6469
|
}
|
|
6464
|
-
class
|
|
6470
|
+
class Pr extends Pe {
|
|
6465
6471
|
constructor(e, n, r, o = null) {
|
|
6466
|
-
super(e, n), this.state = r, this.appState = o, Object.setPrototypeOf(this,
|
|
6472
|
+
super(e, n), this.state = r, this.appState = o, Object.setPrototypeOf(this, Pr.prototype);
|
|
6467
6473
|
}
|
|
6468
6474
|
}
|
|
6469
6475
|
class zt extends Pe {
|
|
@@ -6471,50 +6477,50 @@ class zt extends Pe {
|
|
|
6471
6477
|
super("timeout", "Timeout"), Object.setPrototypeOf(this, zt.prototype);
|
|
6472
6478
|
}
|
|
6473
6479
|
}
|
|
6474
|
-
class
|
|
6480
|
+
class Ir extends zt {
|
|
6475
6481
|
constructor(e) {
|
|
6476
|
-
super(), this.popup = e, Object.setPrototypeOf(this,
|
|
6482
|
+
super(), this.popup = e, Object.setPrototypeOf(this, Ir.prototype);
|
|
6477
6483
|
}
|
|
6478
6484
|
}
|
|
6479
|
-
class
|
|
6485
|
+
class Nr extends Pe {
|
|
6480
6486
|
constructor(e) {
|
|
6481
|
-
super("cancelled", "Popup closed"), this.popup = e, Object.setPrototypeOf(this,
|
|
6487
|
+
super("cancelled", "Popup closed"), this.popup = e, Object.setPrototypeOf(this, Nr.prototype);
|
|
6482
6488
|
}
|
|
6483
6489
|
}
|
|
6484
|
-
class
|
|
6490
|
+
class Ar extends Pe {
|
|
6485
6491
|
constructor(e, n, r) {
|
|
6486
|
-
super(e, n), this.mfa_token = r, Object.setPrototypeOf(this,
|
|
6492
|
+
super(e, n), this.mfa_token = r, Object.setPrototypeOf(this, Ar.prototype);
|
|
6487
6493
|
}
|
|
6488
6494
|
}
|
|
6489
6495
|
class On extends Pe {
|
|
6490
6496
|
constructor(e, n) {
|
|
6491
|
-
super("missing_refresh_token", `Missing Refresh Token (audience: '${
|
|
6497
|
+
super("missing_refresh_token", `Missing Refresh Token (audience: '${mo(e, ["default"])}', scope: '${mo(n)}')`), this.audience = e, this.scope = n, Object.setPrototypeOf(this, On.prototype);
|
|
6492
6498
|
}
|
|
6493
6499
|
}
|
|
6494
|
-
function
|
|
6500
|
+
function mo(t, e = []) {
|
|
6495
6501
|
return t && !e.includes(t) ? t : "";
|
|
6496
6502
|
}
|
|
6497
6503
|
const rn = () => window.crypto, Rn = () => {
|
|
6498
6504
|
const t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";
|
|
6499
6505
|
let e = "";
|
|
6500
6506
|
return Array.from(rn().getRandomValues(new Uint8Array(43))).forEach((n) => e += t[n % t.length]), e;
|
|
6501
|
-
},
|
|
6507
|
+
}, vo = (t) => btoa(t), cr = (t) => {
|
|
6502
6508
|
var { clientId: e } = t, n = We(t, ["clientId"]);
|
|
6503
6509
|
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();
|
|
6504
|
-
},
|
|
6510
|
+
}, go = (t) => ((e) => decodeURIComponent(atob(e).split("").map((n) => "%" + ("00" + n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g, "/").replace(/-/g, "+")), Ml = async (t, e) => {
|
|
6505
6511
|
const n = await fetch(t, e);
|
|
6506
6512
|
return { ok: n.ok, json: await n.json() };
|
|
6507
|
-
},
|
|
6513
|
+
}, Dl = async (t, e, n) => {
|
|
6508
6514
|
const r = new AbortController();
|
|
6509
6515
|
let o;
|
|
6510
|
-
return e.signal = r.signal, Promise.race([
|
|
6516
|
+
return e.signal = r.signal, Promise.race([Ml(t, e), new Promise((i, a) => {
|
|
6511
6517
|
o = setTimeout(() => {
|
|
6512
6518
|
r.abort(), a(new Error("Timeout when executing 'fetch'"));
|
|
6513
6519
|
}, n);
|
|
6514
6520
|
})]).finally(() => {
|
|
6515
6521
|
clearTimeout(o);
|
|
6516
6522
|
});
|
|
6517
|
-
},
|
|
6523
|
+
}, jl = async (t, e, n, r, o, i, a) => {
|
|
6518
6524
|
return c = { auth: { audience: e, scope: n }, timeout: o, fetchUrl: t, fetchOptions: r, useFormData: a }, l = i, new Promise(function(u, f) {
|
|
6519
6525
|
const p = new MessageChannel();
|
|
6520
6526
|
p.port1.onmessage = function(d) {
|
|
@@ -6522,15 +6528,15 @@ const rn = () => window.crypto, Rn = () => {
|
|
|
6522
6528
|
}, l.postMessage(c, [p.port2]);
|
|
6523
6529
|
});
|
|
6524
6530
|
var c, l;
|
|
6525
|
-
},
|
|
6526
|
-
async function
|
|
6531
|
+
}, Ul = async (t, e, n, r, o, i, a = 1e4) => o ? jl(t, e, n, r, a, o, i) : Dl(t, r, a);
|
|
6532
|
+
async function Fl(t, e) {
|
|
6527
6533
|
var { baseUrl: n, timeout: r, audience: o, scope: i, auth0Client: a, useFormData: c } = t, l = We(t, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
|
|
6528
6534
|
const u = c ? cr(l) : JSON.stringify(l);
|
|
6529
6535
|
return await async function(f, p, d, h, m, v, g) {
|
|
6530
6536
|
let w, x = null;
|
|
6531
6537
|
for (let S = 0; S < 3; S++)
|
|
6532
6538
|
try {
|
|
6533
|
-
w = await
|
|
6539
|
+
w = await Ul(f, d, h, m, v, g, p), x = null;
|
|
6534
6540
|
break;
|
|
6535
6541
|
} catch (N) {
|
|
6536
6542
|
x = N;
|
|
@@ -6540,10 +6546,10 @@ async function Dl(t, e) {
|
|
|
6540
6546
|
const E = w.json, { error: O, error_description: y } = E, T = We(E, ["error", "error_description"]), { ok: I } = w;
|
|
6541
6547
|
if (!I) {
|
|
6542
6548
|
const S = y || `HTTP error. Unable to fetch ${f}`;
|
|
6543
|
-
throw O === "mfa_required" ? new
|
|
6549
|
+
throw O === "mfa_required" ? new Ar(O, S, T.mfa_token) : O === "missing_refresh_token" ? new On(d, h) : new Pe(O || "request_error", S);
|
|
6544
6550
|
}
|
|
6545
6551
|
return T;
|
|
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(a ||
|
|
6552
|
+
}(`${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(a || Oi)) } }, e, c);
|
|
6547
6553
|
}
|
|
6548
6554
|
const en = (...t) => {
|
|
6549
6555
|
return (e = t.filter(Boolean).join(" ").trim().split(/\s+/), Array.from(new Set(e))).join(" ");
|
|
@@ -6565,7 +6571,7 @@ class He {
|
|
|
6565
6571
|
return new He({ scope: n, audience: r, clientId: o });
|
|
6566
6572
|
}
|
|
6567
6573
|
}
|
|
6568
|
-
class
|
|
6574
|
+
class Wl {
|
|
6569
6575
|
set(e, n) {
|
|
6570
6576
|
localStorage.setItem(e, JSON.stringify(n));
|
|
6571
6577
|
}
|
|
@@ -6585,7 +6591,7 @@ class jl {
|
|
|
6585
6591
|
return Object.keys(window.localStorage).filter((e) => e.startsWith("@@auth0spajs@@"));
|
|
6586
6592
|
}
|
|
6587
6593
|
}
|
|
6588
|
-
class
|
|
6594
|
+
class xi {
|
|
6589
6595
|
constructor() {
|
|
6590
6596
|
this.enclosedCache = function() {
|
|
6591
6597
|
let e = {};
|
|
@@ -6601,9 +6607,9 @@ class Ei {
|
|
|
6601
6607
|
}();
|
|
6602
6608
|
}
|
|
6603
6609
|
}
|
|
6604
|
-
class
|
|
6610
|
+
class Hl {
|
|
6605
6611
|
constructor(e, n, r) {
|
|
6606
|
-
this.cache = e, this.keyManifest = n, this.nowProvider = r ||
|
|
6612
|
+
this.cache = e, this.keyManifest = n, this.nowProvider = r || Ei;
|
|
6607
6613
|
}
|
|
6608
6614
|
async setIdToken(e, n, r) {
|
|
6609
6615
|
var o;
|
|
@@ -6665,7 +6671,7 @@ class Ul {
|
|
|
6665
6671
|
})[0];
|
|
6666
6672
|
}
|
|
6667
6673
|
}
|
|
6668
|
-
class
|
|
6674
|
+
class Vl {
|
|
6669
6675
|
constructor(e, n) {
|
|
6670
6676
|
this.storage = e, this.clientId = n, this.storageKey = `a0.spajs.txs.${this.clientId}`, this.transaction = this.storage.get(this.storageKey);
|
|
6671
6677
|
}
|
|
@@ -6679,17 +6685,17 @@ class Fl {
|
|
|
6679
6685
|
delete this.transaction, this.storage.remove(this.storageKey);
|
|
6680
6686
|
}
|
|
6681
6687
|
}
|
|
6682
|
-
const Rt = (t) => typeof t == "number",
|
|
6688
|
+
const Rt = (t) => typeof t == "number", zl = ["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"], Zl = (t) => {
|
|
6683
6689
|
if (!t.id_token)
|
|
6684
6690
|
throw new Error("ID token is required but missing");
|
|
6685
6691
|
const e = ((i) => {
|
|
6686
6692
|
const a = i.split("."), [c, l, u] = a;
|
|
6687
6693
|
if (a.length !== 3 || !c || !l || !u)
|
|
6688
6694
|
throw new Error("ID token could not be decoded");
|
|
6689
|
-
const f = JSON.parse(
|
|
6695
|
+
const f = JSON.parse(go(l)), p = { __raw: i }, d = {};
|
|
6690
6696
|
return Object.keys(f).forEach((h) => {
|
|
6691
|
-
p[h] = f[h],
|
|
6692
|
-
}), { encoded: { header: c, payload: l, signature: u }, header: JSON.parse(
|
|
6697
|
+
p[h] = f[h], zl.includes(h) || (d[h] = f[h]);
|
|
6698
|
+
}), { encoded: { header: c, payload: l, signature: u }, header: JSON.parse(go(c)), claims: p, user: d };
|
|
6693
6699
|
})(t.id_token);
|
|
6694
6700
|
if (!e.claims.iss)
|
|
6695
6701
|
throw new Error("Issuer (iss) claim must be a string present in the ID token");
|
|
@@ -6745,7 +6751,7 @@ const Rt = (t) => typeof t == "number", Wl = ["iss", "aud", "exp", "nbf", "iat",
|
|
|
6745
6751
|
}
|
|
6746
6752
|
return e;
|
|
6747
6753
|
};
|
|
6748
|
-
var st =
|
|
6754
|
+
var st = _r(function(t, e) {
|
|
6749
6755
|
var n = wt && wt.__assign || function() {
|
|
6750
6756
|
return n = Object.assign || function(l) {
|
|
6751
6757
|
for (var u, f = 1, p = arguments.length; f < p; f++)
|
|
@@ -6792,27 +6798,27 @@ var st = Pr(function(t, e) {
|
|
|
6792
6798
|
c(l, "", n(n({}, u), { expires: -1 }));
|
|
6793
6799
|
};
|
|
6794
6800
|
});
|
|
6795
|
-
|
|
6796
|
-
var
|
|
6801
|
+
Tr(st), st.encode, st.parse, st.getAll;
|
|
6802
|
+
var Bl = st.get, ki = st.set, Si = st.remove;
|
|
6797
6803
|
const yt = { get(t) {
|
|
6798
|
-
const e =
|
|
6804
|
+
const e = Bl(t);
|
|
6799
6805
|
if (e !== void 0)
|
|
6800
6806
|
return JSON.parse(e);
|
|
6801
6807
|
}, save(t, e, n) {
|
|
6802
6808
|
let r = {};
|
|
6803
|
-
window.location.protocol === "https:" && (r = { secure: !0, sameSite: "none" }), n?.daysUntilExpire && (r.expires = n.daysUntilExpire), n?.cookieDomain && (r.domain = n.cookieDomain),
|
|
6809
|
+
window.location.protocol === "https:" && (r = { secure: !0, sameSite: "none" }), n?.daysUntilExpire && (r.expires = n.daysUntilExpire), n?.cookieDomain && (r.domain = n.cookieDomain), ki(t, JSON.stringify(e), r);
|
|
6804
6810
|
}, remove(t, e) {
|
|
6805
6811
|
let n = {};
|
|
6806
|
-
e?.cookieDomain && (n.domain = e.cookieDomain),
|
|
6807
|
-
} },
|
|
6812
|
+
e?.cookieDomain && (n.domain = e.cookieDomain), Si(t, n);
|
|
6813
|
+
} }, $l = { get(t) {
|
|
6808
6814
|
return yt.get(t) || yt.get(`_legacy_${t}`);
|
|
6809
6815
|
}, save(t, e, n) {
|
|
6810
6816
|
let r = {};
|
|
6811
|
-
window.location.protocol === "https:" && (r = { secure: !0 }), n?.daysUntilExpire && (r.expires = n.daysUntilExpire), n?.cookieDomain && (r.domain = n.cookieDomain),
|
|
6817
|
+
window.location.protocol === "https:" && (r = { secure: !0 }), n?.daysUntilExpire && (r.expires = n.daysUntilExpire), n?.cookieDomain && (r.domain = n.cookieDomain), ki(`_legacy_${t}`, JSON.stringify(e), r), yt.save(t, e, n);
|
|
6812
6818
|
}, remove(t, e) {
|
|
6813
6819
|
let n = {};
|
|
6814
|
-
e?.cookieDomain && (n.domain = e.cookieDomain),
|
|
6815
|
-
} },
|
|
6820
|
+
e?.cookieDomain && (n.domain = e.cookieDomain), Si(t, n), yt.remove(t, e), yt.remove(`_legacy_${t}`, e);
|
|
6821
|
+
} }, Gl = { get(t) {
|
|
6816
6822
|
if (typeof sessionStorage > "u")
|
|
6817
6823
|
return;
|
|
6818
6824
|
const e = sessionStorage.getItem(t);
|
|
@@ -6822,7 +6828,7 @@ const yt = { get(t) {
|
|
|
6822
6828
|
}, remove(t) {
|
|
6823
6829
|
sessionStorage.removeItem(t);
|
|
6824
6830
|
} };
|
|
6825
|
-
function
|
|
6831
|
+
function Kl(t, e, n) {
|
|
6826
6832
|
var r = e === void 0 ? null : e, o = function(l, u) {
|
|
6827
6833
|
var f = atob(l);
|
|
6828
6834
|
if (u) {
|
|
@@ -6835,11 +6841,11 @@ function Bl(t, e, n) {
|
|
|
6835
6841
|
`, 10) + 1, a = o.substring(i) + (r ? "//# sourceMappingURL=" + r : ""), c = new Blob([a], { type: "application/javascript" });
|
|
6836
6842
|
return URL.createObjectURL(c);
|
|
6837
6843
|
}
|
|
6838
|
-
var bo, wo,
|
|
6839
|
-
return Ln = Ln ||
|
|
6844
|
+
var yo, bo, wo, Ln, ql = (yo = "Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==", bo = null, wo = !1, function(t) {
|
|
6845
|
+
return Ln = Ln || Kl(yo, bo, wo), new Worker(Ln, t);
|
|
6840
6846
|
});
|
|
6841
6847
|
const Mn = {};
|
|
6842
|
-
class
|
|
6848
|
+
class Yl {
|
|
6843
6849
|
constructor(e, n) {
|
|
6844
6850
|
this.cache = e, this.clientId = n, this.manifestKey = this.createManifestKeyFrom(this.clientId);
|
|
6845
6851
|
}
|
|
@@ -6865,14 +6871,14 @@ class Gl {
|
|
|
6865
6871
|
return `@@auth0spajs@@::${e}`;
|
|
6866
6872
|
}
|
|
6867
6873
|
}
|
|
6868
|
-
const
|
|
6874
|
+
const Xl = { memory: () => new xi().enclosedCache, localstorage: () => new Wl() }, Co = (t) => Xl[t], Oo = (t) => {
|
|
6869
6875
|
const { openUrl: e, onRedirect: n } = t, r = We(t, ["openUrl", "onRedirect"]);
|
|
6870
6876
|
return Object.assign(Object.assign({}, r), { openUrl: e === !1 || e ? e : n });
|
|
6871
|
-
}, Dn = new
|
|
6872
|
-
class
|
|
6877
|
+
}, Dn = new Rl();
|
|
6878
|
+
class Jl {
|
|
6873
6879
|
constructor(e) {
|
|
6874
6880
|
let n, r;
|
|
6875
|
-
if (this.userCache = new
|
|
6881
|
+
if (this.userCache = new xi().enclosedCache, this.defaultOptions = { authorizationParams: { scope: "openid profile email" }, useRefreshTokensFallback: !1, useFormData: !0 }, this._releaseLockOnPageHide = async () => {
|
|
6876
6882
|
await Dn.releaseLock("auth0.lock.getTokenSilently"), window.removeEventListener("pagehide", this._releaseLockOnPageHide);
|
|
6877
6883
|
}, this.options = Object.assign(Object.assign(Object.assign({}, this.defaultOptions), e), { authorizationParams: Object.assign(Object.assign({}, this.defaultOptions.authorizationParams), e.authorizationParams) }), typeof window < "u" && (() => {
|
|
6878
6884
|
if (!rn())
|
|
@@ -6884,17 +6890,17 @@ class ql {
|
|
|
6884
6890
|
})(), e.cache && e.cacheLocation && console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."), e.cache)
|
|
6885
6891
|
r = e.cache;
|
|
6886
6892
|
else {
|
|
6887
|
-
if (n = e.cacheLocation || "memory", !
|
|
6893
|
+
if (n = e.cacheLocation || "memory", !Co(n))
|
|
6888
6894
|
throw new Error(`Invalid cache location "${n}"`);
|
|
6889
|
-
r =
|
|
6895
|
+
r = Co(n)();
|
|
6890
6896
|
}
|
|
6891
|
-
this.httpTimeoutMs = e.httpTimeoutInSeconds ? 1e3 * e.httpTimeoutInSeconds : 1e4, this.cookieStorage = e.legacySameSiteCookie === !1 ? yt :
|
|
6892
|
-
const o = e.useCookiesForTransactions ? this.cookieStorage :
|
|
6897
|
+
this.httpTimeoutMs = e.httpTimeoutInSeconds ? 1e3 * e.httpTimeoutInSeconds : 1e4, this.cookieStorage = e.legacySameSiteCookie === !1 ? yt : $l, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((a) => `auth0.${a}.is.authenticated`)(this.options.clientId), this.sessionCheckExpiryDays = e.sessionCheckExpiryDays || 1;
|
|
6898
|
+
const o = e.useCookiesForTransactions ? this.cookieStorage : Gl;
|
|
6893
6899
|
var i;
|
|
6894
|
-
this.scope = en("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new
|
|
6900
|
+
this.scope = en("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new Vl(o, this.options.clientId), this.nowProvider = this.options.nowProvider || Ei, this.cacheManager = new Hl(r, r.allKeys ? void 0 : new Yl(r, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((a, c) => a ? a.startsWith("https://") ? a : `https://${a}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.worker = new ql());
|
|
6895
6901
|
}
|
|
6896
6902
|
_url(e) {
|
|
6897
|
-
const n = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client ||
|
|
6903
|
+
const n = encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client || Oi)));
|
|
6898
6904
|
return `${this.domainUrl}${e}&auth0Client=${n}`;
|
|
6899
6905
|
}
|
|
6900
6906
|
_authorizeUrl(e) {
|
|
@@ -6902,14 +6908,14 @@ class ql {
|
|
|
6902
6908
|
}
|
|
6903
6909
|
async _verifyIdToken(e, n, r) {
|
|
6904
6910
|
const o = await this.nowProvider();
|
|
6905
|
-
return
|
|
6911
|
+
return Zl({ 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 });
|
|
6906
6912
|
var i;
|
|
6907
6913
|
}
|
|
6908
6914
|
_processOrgIdHint(e) {
|
|
6909
6915
|
e ? this.cookieStorage.save(this.orgHintCookieName, e, { daysUntilExpire: this.sessionCheckExpiryDays, cookieDomain: this.options.cookieDomain }) : this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain });
|
|
6910
6916
|
}
|
|
6911
6917
|
async _prepareAuthorizeUrl(e, n, r) {
|
|
6912
|
-
const o =
|
|
6918
|
+
const o = vo(Rn()), i = vo(Rn()), a = Rn(), c = ((f) => {
|
|
6913
6919
|
const p = new Uint8Array(f);
|
|
6914
6920
|
return ((d) => {
|
|
6915
6921
|
const h = { "+": "-", "/": "_", "=": "" };
|
|
@@ -6930,9 +6936,9 @@ class ql {
|
|
|
6930
6936
|
const i = await ((c) => new Promise((l, u) => {
|
|
6931
6937
|
let f;
|
|
6932
6938
|
const p = setInterval(() => {
|
|
6933
|
-
c.popup && c.popup.closed && (clearInterval(p), clearTimeout(d), window.removeEventListener("message", f, !1), u(new
|
|
6939
|
+
c.popup && c.popup.closed && (clearInterval(p), clearTimeout(d), window.removeEventListener("message", f, !1), u(new Nr(c.popup)));
|
|
6934
6940
|
}, 1e3), d = setTimeout(() => {
|
|
6935
|
-
clearInterval(p), u(new
|
|
6941
|
+
clearInterval(p), u(new Ir(c.popup)), window.removeEventListener("message", f, !1);
|
|
6936
6942
|
}, 1e3 * (c.timeoutInSeconds || 60));
|
|
6937
6943
|
f = function(h) {
|
|
6938
6944
|
if (h.data && h.data.type === "authorization_response") {
|
|
@@ -6959,7 +6965,7 @@ class ql {
|
|
|
6959
6965
|
}
|
|
6960
6966
|
async loginWithRedirect(e = {}) {
|
|
6961
6967
|
var n;
|
|
6962
|
-
const r =
|
|
6968
|
+
const r = Oo(e), { openUrl: o, fragment: i, appState: a } = r, c = We(r, ["openUrl", "fragment", "appState"]), l = ((n = c.authorizationParams) === null || n === void 0 ? void 0 : n.organization) || this.options.authorizationParams.organization, u = await this._prepareAuthorizeUrl(c.authorizationParams || {}), { url: f } = u, p = We(u, ["url"]);
|
|
6963
6969
|
this.transactionManager.create(Object.assign(Object.assign(Object.assign({}, p), { appState: a }), l && { organizationId: l }));
|
|
6964
6970
|
const d = i ? `${f}#${i}` : f;
|
|
6965
6971
|
o ? await o(d) : window.location.assign(d);
|
|
@@ -6976,7 +6982,7 @@ class ql {
|
|
|
6976
6982
|
if (!c)
|
|
6977
6983
|
throw new Error("Invalid state");
|
|
6978
6984
|
if (this.transactionManager.remove(), i)
|
|
6979
|
-
throw new
|
|
6985
|
+
throw new Pr(i, a || i, r, c.appState);
|
|
6980
6986
|
if (!c.code_verifier || c.state && c.state !== r)
|
|
6981
6987
|
throw new Error("Invalid state");
|
|
6982
6988
|
const l = c.organizationId, u = c.nonce, f = c.redirect_uri;
|
|
@@ -7034,7 +7040,7 @@ class ql {
|
|
|
7034
7040
|
async getTokenWithPopup(e = {}, n = {}) {
|
|
7035
7041
|
var r;
|
|
7036
7042
|
const o = Object.assign(Object.assign({}, e), { authorizationParams: Object.assign(Object.assign(Object.assign({}, this.options.authorizationParams), e.authorizationParams), { scope: en(this.scope, (r = e.authorizationParams) === null || r === void 0 ? void 0 : r.scope) }) });
|
|
7037
|
-
return n = Object.assign(Object.assign({},
|
|
7043
|
+
return n = Object.assign(Object.assign({}, Ll), n), await this.loginWithPopup(o, n), (await this.cacheManager.get(new He({ scope: o.authorizationParams.scope, audience: o.authorizationParams.audience || "default", clientId: this.options.clientId }))).access_token;
|
|
7038
7044
|
}
|
|
7039
7045
|
async isAuthenticated() {
|
|
7040
7046
|
return !!await this.getUser();
|
|
@@ -7045,7 +7051,7 @@ class ql {
|
|
|
7045
7051
|
return this._url(`/v2/logout?${cr(Object.assign({ clientId: e.clientId }, o))}`) + i;
|
|
7046
7052
|
}
|
|
7047
7053
|
async logout(e = {}) {
|
|
7048
|
-
const n =
|
|
7054
|
+
const n = Oo(e), { openUrl: r } = n, o = We(n, ["openUrl"]);
|
|
7049
7055
|
e.clientId === null ? await this.cacheManager.clear() : await this.cacheManager.clear(e.clientId || this.options.clientId), this.cookieStorage.remove(this.orgHintCookieName, { cookieDomain: this.options.cookieDomain }), this.cookieStorage.remove(this.isAuthenticatedCookieName, { cookieDomain: this.options.cookieDomain }), this.userCache.remove("@@user@@");
|
|
7050
7056
|
const i = this._buildLogoutUrl(o);
|
|
7051
7057
|
r ? await r(i) : r !== !1 && window.location.assign(i);
|
|
@@ -7115,35 +7121,35 @@ class ql {
|
|
|
7115
7121
|
}
|
|
7116
7122
|
}
|
|
7117
7123
|
async _requestToken(e, n) {
|
|
7118
|
-
const { nonceIn: r, organizationId: o } = n || {}, i = await
|
|
7124
|
+
const { nonceIn: r, organizationId: o } = n || {}, i = await Fl(Object.assign({ baseUrl: this.domainUrl, client_id: this.options.clientId, auth0Client: this.options.auth0Client, useFormData: this.options.useFormData, timeout: this.httpTimeoutMs }, e), this.worker), a = await this._verifyIdToken(i.id_token, r, o);
|
|
7119
7125
|
return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({}, i), { decodedToken: a, 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(a.claims.org_id), Object.assign(Object.assign({}, i), { decodedToken: a });
|
|
7120
7126
|
}
|
|
7121
7127
|
}
|
|
7122
|
-
var
|
|
7128
|
+
var Ti = {
|
|
7123
7129
|
isAuthenticated: !1,
|
|
7124
7130
|
isLoading: !0
|
|
7125
7131
|
}, Be = function() {
|
|
7126
7132
|
throw new Error("You forgot to wrap your component in <Auth0Provider>.");
|
|
7127
|
-
},
|
|
7133
|
+
}, Ql = pe(pe({}, Ti), { buildAuthorizeUrl: Be, buildLogoutUrl: Be, getAccessTokenSilently: Be, getAccessTokenWithPopup: Be, getIdTokenClaims: Be, loginWithRedirect: Be, loginWithPopup: Be, logout: Be, handleRedirectCallback: Be }), _i = Zt(Ql), eu = (
|
|
7128
7134
|
/** @class */
|
|
7129
7135
|
function(t) {
|
|
7130
|
-
|
|
7136
|
+
Nl(e, t);
|
|
7131
7137
|
function e(n, r) {
|
|
7132
7138
|
var o = t.call(this, r || n) || this;
|
|
7133
7139
|
return o.error = n, o.error_description = r, Object.setPrototypeOf(o, e.prototype), o;
|
|
7134
7140
|
}
|
|
7135
7141
|
return e;
|
|
7136
7142
|
}(Error)
|
|
7137
|
-
),
|
|
7138
|
-
return t === void 0 && (t = window.location.search), (
|
|
7139
|
-
},
|
|
7143
|
+
), tu = /[?&]code=[^&]+/, nu = /[?&]state=[^&]+/, ru = /[?&]error=[^&]+/, ou = function(t) {
|
|
7144
|
+
return t === void 0 && (t = window.location.search), (tu.test(t) || ru.test(t)) && nu.test(t);
|
|
7145
|
+
}, Pi = function(t) {
|
|
7140
7146
|
return function(e) {
|
|
7141
|
-
return "error" in e ? new
|
|
7147
|
+
return "error" in e ? new eu(e.error, e.error_description) : e instanceof Error ? e : new Error(t);
|
|
7142
7148
|
};
|
|
7143
|
-
},
|
|
7149
|
+
}, Eo = Pi("Login failed"), jn = Pi("Get access token failed"), Ii = function(t) {
|
|
7144
7150
|
var e;
|
|
7145
7151
|
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);
|
|
7146
|
-
},
|
|
7152
|
+
}, iu = function(t, e) {
|
|
7147
7153
|
switch (e.type) {
|
|
7148
7154
|
case "LOGIN_POPUP_STARTED":
|
|
7149
7155
|
return pe(pe({}, t), { isLoading: !0 });
|
|
@@ -7158,17 +7164,17 @@ var Si = {
|
|
|
7158
7164
|
case "ERROR":
|
|
7159
7165
|
return pe(pe({}, t), { isLoading: !1, error: e.error });
|
|
7160
7166
|
}
|
|
7161
|
-
},
|
|
7162
|
-
return
|
|
7167
|
+
}, au = function(t) {
|
|
7168
|
+
return Ii(t), pe(pe({}, t), { auth0Client: {
|
|
7163
7169
|
name: "auth0-react",
|
|
7164
7170
|
version: "2.0.1"
|
|
7165
7171
|
} });
|
|
7166
|
-
},
|
|
7172
|
+
}, su = function(t) {
|
|
7167
7173
|
window.history.replaceState({}, document.title, t?.returnTo || window.location.pathname);
|
|
7168
|
-
},
|
|
7169
|
-
var e = t.children, n = t.skipRedirectCallback, r = t.onRedirectCallback, o = r === void 0 ?
|
|
7170
|
-
return new
|
|
7171
|
-
})[0], u = Un(
|
|
7174
|
+
}, cu = function(t) {
|
|
7175
|
+
var e = t.children, n = t.skipRedirectCallback, r = t.onRedirectCallback, o = r === void 0 ? su : r, i = t.context, a = i === void 0 ? _i : i, c = Al(t, ["children", "skipRedirectCallback", "onRedirectCallback", "context"]), l = z(function() {
|
|
7176
|
+
return new Jl(au(c));
|
|
7177
|
+
})[0], u = Un(iu, Ti), f = u[0], p = u[1], d = Me(!1);
|
|
7172
7178
|
Y(function() {
|
|
7173
7179
|
d.current || (d.current = !0, function() {
|
|
7174
7180
|
return mt(void 0, void 0, void 0, function() {
|
|
@@ -7176,7 +7182,7 @@ var Si = {
|
|
|
7176
7182
|
return vt(this, function(S) {
|
|
7177
7183
|
switch (S.label) {
|
|
7178
7184
|
case 0:
|
|
7179
|
-
return S.trys.push([0, 7, , 8]), y = void 0,
|
|
7185
|
+
return S.trys.push([0, 7, , 8]), y = void 0, ou() && !n ? [4, l.handleRedirectCallback()] : [3, 3];
|
|
7180
7186
|
case 1:
|
|
7181
7187
|
return T = S.sent().appState, [4, l.getUser()];
|
|
7182
7188
|
case 2:
|
|
@@ -7190,7 +7196,7 @@ var Si = {
|
|
|
7190
7196
|
case 6:
|
|
7191
7197
|
return p({ type: "INITIALISED", user: y }), [3, 8];
|
|
7192
7198
|
case 7:
|
|
7193
|
-
return I = S.sent(), p({ type: "ERROR", error:
|
|
7199
|
+
return I = S.sent(), p({ type: "ERROR", error: Eo(I) }), [3, 8];
|
|
7194
7200
|
case 8:
|
|
7195
7201
|
return [
|
|
7196
7202
|
2
|
|
@@ -7202,7 +7208,7 @@ var Si = {
|
|
|
7202
7208
|
}());
|
|
7203
7209
|
}, [l, o, n]);
|
|
7204
7210
|
var h = he(function(y) {
|
|
7205
|
-
return
|
|
7211
|
+
return Ii(y), l.loginWithRedirect(y);
|
|
7206
7212
|
}, [l]), m = he(function(y, T) {
|
|
7207
7213
|
return mt(void 0, void 0, void 0, function() {
|
|
7208
7214
|
var I, S;
|
|
@@ -7215,7 +7221,7 @@ var Si = {
|
|
|
7215
7221
|
case 2:
|
|
7216
7222
|
return N.sent(), [3, 4];
|
|
7217
7223
|
case 3:
|
|
7218
|
-
return I = N.sent(), p({ type: "ERROR", error:
|
|
7224
|
+
return I = N.sent(), p({ type: "ERROR", error: Eo(I) }), [
|
|
7219
7225
|
2
|
|
7220
7226
|
/*return*/
|
|
7221
7227
|
];
|
|
@@ -7340,8 +7346,8 @@ var Si = {
|
|
|
7340
7346
|
E
|
|
7341
7347
|
]);
|
|
7342
7348
|
return Oe.createElement(a.Provider, { value: O }, e);
|
|
7343
|
-
},
|
|
7344
|
-
return t === void 0 && (t =
|
|
7349
|
+
}, Ni = function(t) {
|
|
7350
|
+
return t === void 0 && (t = _i), ne(t);
|
|
7345
7351
|
};
|
|
7346
7352
|
const pn = {
|
|
7347
7353
|
[at.WINDOW_MANAGEMENT]: {
|
|
@@ -7351,7 +7357,7 @@ const pn = {
|
|
|
7351
7357
|
default: "To allow window management, click the icon to the left of the address bar."
|
|
7352
7358
|
},
|
|
7353
7359
|
label: "Allow window management",
|
|
7354
|
-
Image:
|
|
7360
|
+
Image: Cl,
|
|
7355
7361
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7356
7362
|
window.getScreenDetails().catch(async () => {
|
|
7357
7363
|
const { state: n } = await navigator.permissions.query({ name: at.WINDOW_MANAGEMENT });
|
|
@@ -7368,7 +7374,7 @@ const pn = {
|
|
|
7368
7374
|
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.'
|
|
7369
7375
|
},
|
|
7370
7376
|
label: "Allow browser notifications",
|
|
7371
|
-
Image:
|
|
7377
|
+
Image: ml,
|
|
7372
7378
|
openPermissionsPrompt: ({ handleDeferredPermission: t, handlePermissionsPromptClose: e }) => {
|
|
7373
7379
|
Notification.requestPermission().then(async () => {
|
|
7374
7380
|
const { state: n } = await navigator.permissions.query({ name: at.NOTIFICATIONS });
|
|
@@ -7376,10 +7382,10 @@ const pn = {
|
|
|
7376
7382
|
}).finally(e);
|
|
7377
7383
|
}
|
|
7378
7384
|
}
|
|
7379
|
-
},
|
|
7385
|
+
}, lu = {
|
|
7380
7386
|
edgeNotificationsPermissionTimeout: 15e3
|
|
7381
7387
|
};
|
|
7382
|
-
const
|
|
7388
|
+
const uu = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE__ */ s("ul", { className: "permissions-list", children: Object.entries(pn).map(([n, r], o) => {
|
|
7383
7389
|
const i = t(n), a = e.find(({ stableName: c }) => c === n);
|
|
7384
7390
|
return /* @__PURE__ */ b("li", { className: K("permissions-list-item", i && "active"), children: [
|
|
7385
7391
|
/* @__PURE__ */ s("div", { children: a?.state === "granted" ? /* @__PURE__ */ s(se, { name: "check" }) : /* @__PURE__ */ b(be, { children: [
|
|
@@ -7391,7 +7397,7 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7391
7397
|
] }) }),
|
|
7392
7398
|
r.label
|
|
7393
7399
|
] }, n);
|
|
7394
|
-
}) }),
|
|
7400
|
+
}) }), du = ({ onReopenPromptClick: t }) => /* @__PURE__ */ s(wn, { description: /* @__PURE__ */ b(be, { children: [
|
|
7395
7401
|
'Please, click "Allow" when the browser prompt appears.',
|
|
7396
7402
|
/* @__PURE__ */ s("br", {}),
|
|
7397
7403
|
/* @__PURE__ */ b("strong", { children: [
|
|
@@ -7399,20 +7405,20 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7399
7405
|
/* @__PURE__ */ s("br", {}),
|
|
7400
7406
|
"address bar to manually grant the permission."
|
|
7401
7407
|
] })
|
|
7402
|
-
] }), Image:
|
|
7403
|
-
const { permission: e } = ut(), r =
|
|
7408
|
+
] }), Image: bl, title: "Something went wrong!", children: /* @__PURE__ */ s(bn, { className: "io-btn-primary permissions-prompt-button", onClick: t, children: "Reopen the Prompt" }) }), Ai = ({ deniedPermissionName: t }) => {
|
|
7409
|
+
const { permission: e } = ut(), r = qo().name?.toLowerCase() || "", o = Object.values(e.statuses).filter(
|
|
7404
7410
|
(a) => a.stableName === t || a.state === "denied"
|
|
7405
7411
|
);
|
|
7406
7412
|
return /* @__PURE__ */ s(wn, { description: /* @__PURE__ */ b(be, { children: [
|
|
7407
7413
|
"The current browser settings block critical functionalities of io.Connect Browser.",
|
|
7408
7414
|
/* @__PURE__ */ s("br", {}),
|
|
7409
7415
|
"To enable io.Connect Browser to operate properly, you must grant browser permissions manually."
|
|
7410
|
-
] }), Image:
|
|
7411
|
-
},
|
|
7416
|
+
] }), Image: wl, title: "Setup Was Unsuccessful", children: /* @__PURE__ */ s("ul", { className: "permissions-guidelines-list", children: o.map((a, c) => /* @__PURE__ */ s("li", { children: pn[a.stableName].guidelines[r] || pn[a.stableName].guidelines.default }, c)) }) });
|
|
7417
|
+
}, fu = ({
|
|
7412
7418
|
edgeNotificationsPermissionTimeout: t,
|
|
7413
7419
|
isNotificationsPermissionPromptOpen: e
|
|
7414
7420
|
}) => {
|
|
7415
|
-
const { name: n } =
|
|
7421
|
+
const { name: n } = qo(), { permission: r } = ut(), [o, i] = z(!1);
|
|
7416
7422
|
return Y(() => {
|
|
7417
7423
|
if (!e || n !== "Edge")
|
|
7418
7424
|
return;
|
|
@@ -7427,8 +7433,8 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7427
7433
|
}, [o, r.statuses]), {
|
|
7428
7434
|
hasEdgeNotificationsPermissionError: o
|
|
7429
7435
|
};
|
|
7430
|
-
}, qt = () => /* @__PURE__ */ s("span", { className: "loader" }),
|
|
7431
|
-
const { permission: e } = ut(), [n, r] = z(!1), [o, i] = z(!1), a = e.statuses.find(({ state: p }) => p === "prompt"), { hasEdgeNotificationsPermissionError: c } =
|
|
7436
|
+
}, qt = () => /* @__PURE__ */ s("span", { className: "loader" }), pu = ({ settings: t }) => {
|
|
7437
|
+
const { permission: e } = ut(), [n, r] = z(!1), [o, i] = z(!1), a = e.statuses.find(({ state: p }) => p === "prompt"), { hasEdgeNotificationsPermissionError: c } = fu({
|
|
7432
7438
|
edgeNotificationsPermissionTimeout: t.edgeNotificationsPermissionTimeout,
|
|
7433
7439
|
isNotificationsPermissionPromptOpen: o && a?.stableName === at.NOTIFICATIONS
|
|
7434
7440
|
});
|
|
@@ -7437,18 +7443,18 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7437
7443
|
'The "PermissionSteps" component should not be used in case there is no pending permission or there is a denied permission.'
|
|
7438
7444
|
);
|
|
7439
7445
|
if (c)
|
|
7440
|
-
return /* @__PURE__ */ s(
|
|
7446
|
+
return /* @__PURE__ */ s(Ai, { deniedPermissionName: "notifications" });
|
|
7441
7447
|
const l = pn[a.stableName], u = () => {
|
|
7442
7448
|
i(!0), l.openPermissionsPrompt({
|
|
7443
7449
|
handleDeferredPermission: () => r(!0),
|
|
7444
7450
|
handlePermissionsPromptClose: () => i(!1)
|
|
7445
7451
|
});
|
|
7446
7452
|
};
|
|
7447
|
-
return n ? /* @__PURE__ */ s(
|
|
7453
|
+
return n ? /* @__PURE__ */ s(du, { onReopenPromptClick: () => {
|
|
7448
7454
|
r(!1), u();
|
|
7449
7455
|
} }) : /* @__PURE__ */ b(wn, { description: l.description, heading: l.heading, Image: l.Image, title: "First-Time User Setup", children: [
|
|
7450
7456
|
/* @__PURE__ */ s(
|
|
7451
|
-
|
|
7457
|
+
uu,
|
|
7452
7458
|
{
|
|
7453
7459
|
isActiveItem: (p) => p === a.stableName,
|
|
7454
7460
|
permissionStatuses: e.statuses
|
|
@@ -7466,38 +7472,38 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7466
7472
|
),
|
|
7467
7473
|
o && /* @__PURE__ */ s(qt, {})
|
|
7468
7474
|
] });
|
|
7469
|
-
},
|
|
7475
|
+
}, hu = ({ settings: t }) => {
|
|
7470
7476
|
const { permission: e } = ut();
|
|
7471
7477
|
return e.isLoading ? /* @__PURE__ */ b(be, { children: [
|
|
7472
7478
|
/* @__PURE__ */ s("div", { className: "mb-32", children: "Checking browser permissions ..." }),
|
|
7473
7479
|
/* @__PURE__ */ s(qt, {})
|
|
7474
|
-
] }) : e.isDenied ? /* @__PURE__ */ s(
|
|
7475
|
-
},
|
|
7480
|
+
] }) : e.isDenied ? /* @__PURE__ */ s(Ai, {}) : /* @__PURE__ */ s(pu, { settings: t });
|
|
7481
|
+
}, Rr = ({ components: { Logo: t = _t } = {}, settings: e = {} }) => /* @__PURE__ */ s(bi, { Logo: t, children: /* @__PURE__ */ s(hu, { settings: { ...lu, ...e } }) }), mu = ({ components: t, className: e }) => {
|
|
7476
7482
|
const n = t?.Logo || _t;
|
|
7477
7483
|
return /* @__PURE__ */ s("div", { className: "logout-backdrop", children: /* @__PURE__ */ b("div", { className: K(e, "logout-container flex flex-column ai-center"), children: [
|
|
7478
7484
|
/* @__PURE__ */ s(n, {}),
|
|
7479
7485
|
/* @__PURE__ */ s("h1", { className: "text-center mb-8", children: "Logging out..." }),
|
|
7480
7486
|
/* @__PURE__ */ s(qt, {})
|
|
7481
7487
|
] }) });
|
|
7482
|
-
},
|
|
7488
|
+
}, Lr = ({ className: t = "text-center mb-3", text: e = "Making Your Work Flow" }) => /* @__PURE__ */ b(be, { children: [
|
|
7483
7489
|
/* @__PURE__ */ s("h1", { className: t, children: e }),
|
|
7484
7490
|
/* @__PURE__ */ s("p", { children: "Integrate apps, simplify user experiences and accelerate digital transformation." })
|
|
7485
7491
|
] }), gd = ({ components: t }) => {
|
|
7486
|
-
const e = t?.Logo || _t, n = t?.Heading ||
|
|
7492
|
+
const e = t?.Logo || _t, n = t?.Heading || Lr;
|
|
7487
7493
|
return /* @__PURE__ */ b(be, { children: [
|
|
7488
7494
|
/* @__PURE__ */ s(e, {}),
|
|
7489
7495
|
/* @__PURE__ */ s(n, {}),
|
|
7490
7496
|
/* @__PURE__ */ s(qt, {})
|
|
7491
7497
|
] });
|
|
7492
|
-
},
|
|
7498
|
+
}, Ri = () => /* @__PURE__ */ b(be, { children: [
|
|
7493
7499
|
/* @__PURE__ */ s("h1", { className: "text-center mb-8", children: "Verifying credentials..." }),
|
|
7494
7500
|
/* @__PURE__ */ s(qt, {})
|
|
7495
|
-
] }),
|
|
7501
|
+
] }), Li = ({ Logo: t, children: e, className: n }) => /* @__PURE__ */ b("div", { className: K(n, "login-container flex flex-column ai-center"), children: [
|
|
7496
7502
|
/* @__PURE__ */ s(t, {}),
|
|
7497
7503
|
e
|
|
7498
|
-
] }),
|
|
7499
|
-
const i = r?.Logo || _t, a = r?.Heading ||
|
|
7500
|
-
return /* @__PURE__ */ s(
|
|
7504
|
+
] }), vu = ({ className: t, onLogin: e, isLoading: n, components: r, validationError: o }) => {
|
|
7505
|
+
const i = r?.Logo || _t, a = r?.Heading || Lr;
|
|
7506
|
+
return /* @__PURE__ */ s(Li, { className: t, Logo: i, children: n ? /* @__PURE__ */ s(Ri, {}) : /* @__PURE__ */ b(be, { children: [
|
|
7501
7507
|
/* @__PURE__ */ s(a, {}),
|
|
7502
7508
|
/* @__PURE__ */ s(Cn, { onClick: e, className: "io-btn-primary", children: "Log In" }),
|
|
7503
7509
|
o && /* @__PURE__ */ b("div", { className: "pb-2 login-error-feedback", children: [
|
|
@@ -7505,16 +7511,16 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7505
7511
|
/* @__PURE__ */ s("p", { children: o.message })
|
|
7506
7512
|
] })
|
|
7507
7513
|
] }) });
|
|
7508
|
-
},
|
|
7514
|
+
}, xo = (t, e) => {
|
|
7509
7515
|
const n = e.value, r = n.trim().length > 3;
|
|
7510
7516
|
return { value: n, isValid: r };
|
|
7511
|
-
},
|
|
7512
|
-
const [i, a] = Un(
|
|
7517
|
+
}, gu = ({ onLogin: t, setIsLoading: e, loginError: n, setLoginError: r, userInputName: o }) => {
|
|
7518
|
+
const [i, a] = Un(xo, { value: "", isValid: !1 }), [c, l] = Un(xo, { value: "", isValid: !1 }), [u, f] = z(!1), [p, d] = z(!1), { isValid: h } = i, { isValid: m } = c, v = h && m, g = (y) => a({ value: y.target.value }), w = (y) => l({ value: y.target.value }), x = () => {
|
|
7513
7519
|
h || f(!0);
|
|
7514
7520
|
}, E = () => {
|
|
7515
7521
|
m || d(!0);
|
|
7516
7522
|
};
|
|
7517
|
-
return /* @__PURE__ */ b(
|
|
7523
|
+
return /* @__PURE__ */ b(rl, { onSubmit: async (y) => {
|
|
7518
7524
|
if (y.preventDefault(), !!v) {
|
|
7519
7525
|
e(!0);
|
|
7520
7526
|
try {
|
|
@@ -7571,12 +7577,12 @@ const su = ({ isActiveItem: t = () => !1, permissionStatuses: e }) => /* @__PURE
|
|
|
7571
7577
|
] })
|
|
7572
7578
|
] });
|
|
7573
7579
|
};
|
|
7574
|
-
const
|
|
7575
|
-
const [o, i] = z(!1), [a, c] = z(null), l = n?.Logo || _t, u = n?.Heading ||
|
|
7576
|
-
return /* @__PURE__ */ s(
|
|
7580
|
+
const yu = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
7581
|
+
const [o, i] = z(!1), [a, c] = z(null), l = n?.Logo || _t, u = n?.Heading || Lr;
|
|
7582
|
+
return /* @__PURE__ */ s(Li, { className: K(t, "simple-login"), Logo: l, children: o ? /* @__PURE__ */ s(Ri, {}) : /* @__PURE__ */ b(be, { children: [
|
|
7577
7583
|
/* @__PURE__ */ s(u, {}),
|
|
7578
7584
|
/* @__PURE__ */ s(
|
|
7579
|
-
|
|
7585
|
+
gu,
|
|
7580
7586
|
{
|
|
7581
7587
|
onLogin: e,
|
|
7582
7588
|
setIsLoading: i,
|
|
@@ -7586,7 +7592,7 @@ const mu = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7586
7592
|
}
|
|
7587
7593
|
)
|
|
7588
7594
|
] }) });
|
|
7589
|
-
},
|
|
7595
|
+
}, bu = we({
|
|
7590
7596
|
id: me,
|
|
7591
7597
|
username: $(me),
|
|
7592
7598
|
email: $(me),
|
|
@@ -7595,18 +7601,7 @@ const mu = ({ className: t, onLogin: e, components: n, userInputName: r }) => {
|
|
|
7595
7601
|
avatarUrl: $(me),
|
|
7596
7602
|
token: $(me),
|
|
7597
7603
|
password: $(me)
|
|
7598
|
-
})
|
|
7599
|
-
const { onLogout: e, user: n, launchpad: r, icon: o } = t;
|
|
7600
|
-
return /* @__PURE__ */ s(dd, { user: n, onLogout: e, icon: o, components: r?.components });
|
|
7601
|
-
}, Li = Zt(void 0), yu = () => {
|
|
7602
|
-
const t = ne(Li);
|
|
7603
|
-
if (t === void 0)
|
|
7604
|
-
throw new Error("useWorkspaceComponentsContext must be used within an WorkspaceComponentsContextProvider");
|
|
7605
|
-
return t;
|
|
7606
|
-
}, bu = () => {
|
|
7607
|
-
const { HeaderLogoArea: t, workspaceLogoProps: e } = yu();
|
|
7608
|
-
return t ? /* @__PURE__ */ s(t, { ...e }) : /* @__PURE__ */ s(gu, { ...e });
|
|
7609
|
-
};
|
|
7604
|
+
});
|
|
7610
7605
|
function wu(t, e) {
|
|
7611
7606
|
const [n, r] = z(!0), o = ne(ie);
|
|
7612
7607
|
return Y(() => {
|
|
@@ -7631,7 +7626,7 @@ function wu(t, e) {
|
|
|
7631
7626
|
const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
7632
7627
|
const n = wu(e, t), r = he(
|
|
7633
7628
|
(o) => {
|
|
7634
|
-
|
|
7629
|
+
Hi({
|
|
7635
7630
|
bounds: o,
|
|
7636
7631
|
groupId: t,
|
|
7637
7632
|
workspaceId: e
|
|
@@ -7639,17 +7634,17 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7639
7634
|
},
|
|
7640
7635
|
[t, e]
|
|
7641
7636
|
);
|
|
7642
|
-
return n && /* @__PURE__ */ s(
|
|
7643
|
-
}, Ou = (t) => /* @__PURE__ */ s(
|
|
7644
|
-
const o = n?.HeaderLogoArea
|
|
7645
|
-
return /* @__PURE__ */ s(
|
|
7646
|
-
|
|
7637
|
+
return n && /* @__PURE__ */ s(Vi, { title: "Add App", visible: n, showPopup: r });
|
|
7638
|
+
}, Ou = (t) => /* @__PURE__ */ s(zi, { ...t, addWindow: { visible: !1, showPopup: t.addWindow.showPopup } }), Mr = ({ onLogout: t, user: e, workspaces: n, launchpad: r }) => {
|
|
7639
|
+
const o = n?.HeaderLogoArea;
|
|
7640
|
+
return /* @__PURE__ */ s(wi.Provider, { value: { onLogout: t, user: e, launchpadComponents: r?.components }, children: /* @__PURE__ */ s(
|
|
7641
|
+
Fi,
|
|
7647
7642
|
{
|
|
7648
7643
|
components: {
|
|
7649
7644
|
...n?.components,
|
|
7650
7645
|
header: {
|
|
7651
7646
|
...n?.components?.header,
|
|
7652
|
-
LogoComponent:
|
|
7647
|
+
LogoComponent: o ?? _l
|
|
7653
7648
|
},
|
|
7654
7649
|
groupHeader: {
|
|
7655
7650
|
AfterTabsComponent: Cu,
|
|
@@ -7660,7 +7655,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7660
7655
|
}
|
|
7661
7656
|
) });
|
|
7662
7657
|
}, Eu = ({ config: t }) => {
|
|
7663
|
-
const { setupFlow: e, getIOConnectConfig: n } = t, r = t.login, { permission: o } = ut(), [i, a] = Bt("localStorage",
|
|
7658
|
+
const { setupFlow: e, getIOConnectConfig: n } = t, r = t.login, { permission: o } = ut(), [i, a] = Bt("localStorage", na, bu), [c, l] = z(!1), u = he(
|
|
7664
7659
|
async (p, d) => {
|
|
7665
7660
|
const h = await r.onLogin(p, d);
|
|
7666
7661
|
a(h);
|
|
@@ -7669,13 +7664,13 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7669
7664
|
), f = he(() => {
|
|
7670
7665
|
l(!0), r.onLogout?.(), a(null);
|
|
7671
7666
|
}, [r, a]);
|
|
7672
|
-
return c ? /* @__PURE__ */ s(
|
|
7667
|
+
return c ? /* @__PURE__ */ s(mu, { components: r.components }) : i ? !o.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ s(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ s(dr, { settings: n(i), children: /* @__PURE__ */ s(Mr, { workspaces: t?.workspaces, launchpad: t?.launchpad, onLogout: f, user: i }) }) : /* @__PURE__ */ s(yu, { onLogin: u, components: r.components, userInputName: r.userInputName });
|
|
7673
7668
|
}, xu = we({
|
|
7674
7669
|
message: me
|
|
7675
7670
|
}), ku = (t) => {
|
|
7676
|
-
const e =
|
|
7671
|
+
const e = Ni(), [n, r] = z(void 0), [o, i] = Bt(
|
|
7677
7672
|
"sessionStorage",
|
|
7678
|
-
|
|
7673
|
+
ea,
|
|
7679
7674
|
xu
|
|
7680
7675
|
), a = Ge(
|
|
7681
7676
|
() => e.user ? t?.(e.user) ?? { ok: !0 } : null,
|
|
@@ -7699,9 +7694,9 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7699
7694
|
POPUP: "popup",
|
|
7700
7695
|
REDIRECT: "redirect"
|
|
7701
7696
|
}, Su = ({ config: t }) => {
|
|
7702
|
-
const e =
|
|
7703
|
-
return o ? !i.isSetupCompleted && a?.enabled !== !1 ? /* @__PURE__ */ s(
|
|
7704
|
-
|
|
7697
|
+
const e = Ni(), { isLoading: n, validationError: r, user: o } = ku(t.login.validateUser), { permission: i } = ut(), { setupFlow: a, getIOConnectConfig: c } = t, u = (t.login.loginType ?? lr.REDIRECT) === lr.REDIRECT ? e.loginWithRedirect : e.loginWithPopup;
|
|
7698
|
+
return o ? !i.isSetupCompleted && a?.enabled !== !1 ? /* @__PURE__ */ s(Rr, { settings: a?.settings, components: a?.components }) : /* @__PURE__ */ s(dr, { settings: c({ ...e.user, token: o.token }), children: /* @__PURE__ */ s(Mr, { workspaces: t.workspaces, launchpad: t.launchpad, onLogout: e.logout, user: o }) }) : /* @__PURE__ */ s(
|
|
7699
|
+
vu,
|
|
7705
7700
|
{
|
|
7706
7701
|
onLogin: u,
|
|
7707
7702
|
isLoading: n,
|
|
@@ -7711,7 +7706,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7711
7706
|
);
|
|
7712
7707
|
}, Tu = ({ config: t }) => {
|
|
7713
7708
|
const { setupFlow: e, getIOConnectConfig: n } = t, { permission: r } = ut();
|
|
7714
|
-
return !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ s(
|
|
7709
|
+
return !r.isSetupCompleted && e?.enabled !== !1 ? /* @__PURE__ */ s(Rr, { settings: e?.settings, components: e?.components }) : /* @__PURE__ */ s(dr, { settings: n(), children: /* @__PURE__ */ s(Mr, { workspaces: t.workspaces, launchpad: t.launchpad }) });
|
|
7715
7710
|
}, Mi = we({
|
|
7716
7711
|
Logo: $(ye().andThen((t) => Re(t, "Logo"))),
|
|
7717
7712
|
Heading: $(ye().andThen((t) => Re(t, "Heading")))
|
|
@@ -7728,11 +7723,11 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7728
7723
|
userInputName: $(me),
|
|
7729
7724
|
components: $(Mi)
|
|
7730
7725
|
}), Nu = an(Pu, Iu), Au = we({
|
|
7731
|
-
edgeNotificationsPermissionTimeout: $(
|
|
7726
|
+
edgeNotificationsPermissionTimeout: $(fa)
|
|
7732
7727
|
}), Ru = we({
|
|
7733
7728
|
Logo: $(ye().andThen((t) => Re(t, "Logo")))
|
|
7734
7729
|
}), Lu = we({
|
|
7735
|
-
enabled: $(
|
|
7730
|
+
enabled: $(Wo()),
|
|
7736
7731
|
components: $(Ru),
|
|
7737
7732
|
settings: $(Au)
|
|
7738
7733
|
}), Mu = we({
|
|
@@ -7741,17 +7736,13 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7741
7736
|
}), Du = we({
|
|
7742
7737
|
sections: $(ye()),
|
|
7743
7738
|
Sections: $(ye().andThen((t) => Re(t, "Sections"))),
|
|
7744
|
-
NotificationsPanel:
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
Wt(null)
|
|
7748
|
-
)
|
|
7739
|
+
NotificationsPanel: an(
|
|
7740
|
+
Wt(null),
|
|
7741
|
+
$(ye().andThen((t) => Re(t, "NotificationsPanel")))
|
|
7749
7742
|
),
|
|
7750
|
-
UserPanel:
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
Wt(null)
|
|
7754
|
-
)
|
|
7743
|
+
UserPanel: an(
|
|
7744
|
+
Wt(null),
|
|
7745
|
+
$(ye().andThen((t) => Re(t, "UserPanel")))
|
|
7755
7746
|
)
|
|
7756
7747
|
}), ju = we({
|
|
7757
7748
|
components: $(Du)
|
|
@@ -7770,7 +7761,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7770
7761
|
if (n?.type === "auth0") {
|
|
7771
7762
|
const { providerOptions: o } = n;
|
|
7772
7763
|
return /* @__PURE__ */ s(
|
|
7773
|
-
|
|
7764
|
+
cu,
|
|
7774
7765
|
{
|
|
7775
7766
|
...o,
|
|
7776
7767
|
authorizationParams: {
|
|
@@ -7782,7 +7773,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7782
7773
|
);
|
|
7783
7774
|
}
|
|
7784
7775
|
return /* @__PURE__ */ s(Tu, { config: e });
|
|
7785
|
-
}, Wu = () => "getScreenDetails" in window, yd = ({ config: t }) => Wu() ? /* @__PURE__ */ s(
|
|
7776
|
+
}, Wu = () => "getScreenDetails" in window, yd = ({ config: t }) => Wu() ? /* @__PURE__ */ s(Il, { children: /* @__PURE__ */ s(Fu, { config: t }) }) : /* @__PURE__ */ s(xl, {}), Di = (t) => t?.split(" ").map((e) => e[0]?.toUpperCase()).join(""), Hu = ur((t, e) => {
|
|
7786
7777
|
const { onSearch: n, searchTerm: r, onClear: o } = t, i = ne(ie);
|
|
7787
7778
|
return Y(() => {
|
|
7788
7779
|
!i || !i.search || i.search.setDebounceMS(450);
|
|
@@ -7803,7 +7794,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7803
7794
|
if (!o || r.name === $e.LAYOUT)
|
|
7804
7795
|
return e;
|
|
7805
7796
|
let i = [];
|
|
7806
|
-
r.name === $e.APPLICATION ? i =
|
|
7797
|
+
r.name === $e.APPLICATION ? i = No : r.name === $e.WORKSPACE ? i = Ao : n.secondaryActions && (i = n.secondaryActions.map(({ name: u, method: f, params: p, target: d }) => ({
|
|
7807
7798
|
name: u,
|
|
7808
7799
|
interopParams: { method: f, params: p, target: d }
|
|
7809
7800
|
})));
|
|
@@ -7832,7 +7823,7 @@ const Cu = ({ groupId: t, workspaceId: e }) => {
|
|
|
7832
7823
|
];
|
|
7833
7824
|
}, []);
|
|
7834
7825
|
function zu(t) {
|
|
7835
|
-
const { resultsToRender: e, isLoading: n } =
|
|
7826
|
+
const { resultsToRender: e, isLoading: n } = Ea(t.searchTerm), r = Tt(), o = va(), i = Bo(), a = $o(), c = Vu(e), l = Go(), u = Ko(), f = (d, h) => {
|
|
7836
7827
|
const m = d.type === $e.APPLICATION ? l : d.type === $e.WORKSPACE ? u : null;
|
|
7837
7828
|
m && m(d, h);
|
|
7838
7829
|
}, p = async (d, h) => {
|
|
@@ -7843,7 +7834,7 @@ function zu(t) {
|
|
|
7843
7834
|
console.error("Failed to restore workspace", { error: y });
|
|
7844
7835
|
}), v !== mn.SHIFT && r.close();
|
|
7845
7836
|
};
|
|
7846
|
-
return n ? /* @__PURE__ */ s("p", { style: { padding: "12px 24px" }, children: "Loading..." }) : e.length === 0 ? /* @__PURE__ */ s("p", { style: { padding: "12px 24px" }, children: "No results found." }) : /* @__PURE__ */ s("ul", { children: c.map((d, h) => /* @__PURE__ */ s(
|
|
7837
|
+
return n ? /* @__PURE__ */ s("p", { style: { padding: "12px 24px" }, children: "Loading..." }) : e.length === 0 ? /* @__PURE__ */ s("p", { style: { padding: "12px 24px" }, children: "No results found." }) : /* @__PURE__ */ s("ul", { children: c.map((d, h) => /* @__PURE__ */ s(xr, { config: d, isFavoritismEnabled: !1, onItemClick: p }, d.id || h)) });
|
|
7847
7838
|
}
|
|
7848
7839
|
const Zu = (t, e, n) => {
|
|
7849
7840
|
const { isSectionCollapsible: r, sortOrder: o = Ft.ASCENDING, ...i } = n;
|
|
@@ -7853,19 +7844,19 @@ const Zu = (t, e, n) => {
|
|
|
7853
7844
|
items: fr({
|
|
7854
7845
|
items: t,
|
|
7855
7846
|
sortOrder: o,
|
|
7856
|
-
ascendingCompare:
|
|
7857
|
-
descendingCompare:
|
|
7847
|
+
ascendingCompare: Ro,
|
|
7848
|
+
descendingCompare: Lo
|
|
7858
7849
|
}).map((l) => ({
|
|
7859
7850
|
...l,
|
|
7860
7851
|
type: $e.WORKSPACE,
|
|
7861
7852
|
isOpen: e[l.title]?.length > 0,
|
|
7862
|
-
contextMenuActions:
|
|
7853
|
+
contextMenuActions: Ao
|
|
7863
7854
|
})),
|
|
7864
7855
|
isCollapsible: r,
|
|
7865
7856
|
...i
|
|
7866
7857
|
};
|
|
7867
7858
|
}, Bu = (t) => {
|
|
7868
|
-
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i =
|
|
7859
|
+
const { displayCount: e, isSectionCollapsible: n, showAllItems: r, sortOrder: o } = t, i = xa(), a = ka(), c = Bo(), l = Ko(), u = Ge(() => Zu(i, a, {
|
|
7869
7860
|
...{
|
|
7870
7861
|
displayCount: e,
|
|
7871
7862
|
showAllItems: r
|
|
@@ -7873,7 +7864,7 @@ const Zu = (t, e, n) => {
|
|
|
7873
7864
|
isSectionCollapsible: n,
|
|
7874
7865
|
sortOrder: o
|
|
7875
7866
|
}), [i, a, e, n, r, o]);
|
|
7876
|
-
return /* @__PURE__ */ s(
|
|
7867
|
+
return /* @__PURE__ */ s(kr, { config: u, onItemClick: (p) => {
|
|
7877
7868
|
const { item: d, modifier: h, selectedContextMenuActionName: m } = p;
|
|
7878
7869
|
if (!m)
|
|
7879
7870
|
return c(d.id, h).catch((v) => {
|
|
@@ -7882,26 +7873,26 @@ const Zu = (t, e, n) => {
|
|
|
7882
7873
|
l(d, m);
|
|
7883
7874
|
} });
|
|
7884
7875
|
}, $u = () => /* @__PURE__ */ b(be, { children: [
|
|
7885
|
-
/* @__PURE__ */ s(
|
|
7876
|
+
/* @__PURE__ */ s(Sl, {}),
|
|
7886
7877
|
/* @__PURE__ */ s(Bu, {}),
|
|
7887
|
-
/* @__PURE__ */ s(
|
|
7878
|
+
/* @__PURE__ */ s(dl, {})
|
|
7888
7879
|
] }), Gu = {
|
|
7889
7880
|
success: "check"
|
|
7890
|
-
},
|
|
7881
|
+
}, ko = {
|
|
7891
7882
|
SET_AS_DEFAULT: "setAsDefault",
|
|
7892
7883
|
DELETE: "delete"
|
|
7893
7884
|
}, Ku = (t) => [
|
|
7894
7885
|
{
|
|
7895
|
-
name:
|
|
7886
|
+
name: ko.SET_AS_DEFAULT,
|
|
7896
7887
|
displayName: "Set as Default",
|
|
7897
7888
|
disabled: t.isDefault
|
|
7898
7889
|
},
|
|
7899
7890
|
{
|
|
7900
|
-
name:
|
|
7891
|
+
name: ko.DELETE,
|
|
7901
7892
|
displayName: "Delete",
|
|
7902
7893
|
disabled: t.name === si || t.isDefault
|
|
7903
7894
|
}
|
|
7904
|
-
],
|
|
7895
|
+
], So = (t) => async (e) => {
|
|
7905
7896
|
e.stopPropagation();
|
|
7906
7897
|
try {
|
|
7907
7898
|
await t();
|
|
@@ -7909,7 +7900,7 @@ const Zu = (t, e, n) => {
|
|
|
7909
7900
|
console.error("Failed to handle layout action: ", n);
|
|
7910
7901
|
}
|
|
7911
7902
|
}, qu = (t) => {
|
|
7912
|
-
const { layouts: e } = t, { setSelectedLayout: n, setDefaultLayout: r } = Tt(), o =
|
|
7903
|
+
const { layouts: e } = t, { setSelectedLayout: n, setDefaultLayout: r } = Tt(), o = Ma(), i = hr();
|
|
7913
7904
|
return /* @__PURE__ */ b("div", { "data-testid": "available-layouts", children: [
|
|
7914
7905
|
/* @__PURE__ */ s("h6", { children: "Available Layouts" }),
|
|
7915
7906
|
e.map((a) => /* @__PURE__ */ b(
|
|
@@ -7947,12 +7938,12 @@ const Zu = (t, e, n) => {
|
|
|
7947
7938
|
a.name
|
|
7948
7939
|
))
|
|
7949
7940
|
] });
|
|
7950
|
-
},
|
|
7941
|
+
}, To = (t) => {
|
|
7951
7942
|
const { inputValue: e, setNotification: n, className: r = "" } = t, { selectedLayout: o, setSelectedLayout: i } = Tt(), a = hr(), c = ne(ie), l = [
|
|
7952
7943
|
{
|
|
7953
7944
|
label: "Save",
|
|
7954
7945
|
type: "save",
|
|
7955
|
-
onClick:
|
|
7946
|
+
onClick: So(async () => {
|
|
7956
7947
|
await c.layouts.save({ name: e, type: "Global" }), i({ name: e }), n({ message: "Saved", type: "success" });
|
|
7957
7948
|
}),
|
|
7958
7949
|
testId: "save-button"
|
|
@@ -7960,7 +7951,7 @@ const Zu = (t, e, n) => {
|
|
|
7960
7951
|
{
|
|
7961
7952
|
label: "Restore",
|
|
7962
7953
|
type: "restore",
|
|
7963
|
-
onClick:
|
|
7954
|
+
onClick: So(() => {
|
|
7964
7955
|
o && a(o.name);
|
|
7965
7956
|
}),
|
|
7966
7957
|
testId: "restore-button"
|
|
@@ -7978,7 +7969,7 @@ const Zu = (t, e, n) => {
|
|
|
7978
7969
|
]
|
|
7979
7970
|
}
|
|
7980
7971
|
), Xu = () => {
|
|
7981
|
-
const t = Me(null), [e, n] = z(!1), [r, o] = z(null), i =
|
|
7972
|
+
const t = Me(null), [e, n] = z(!1), [r, o] = z(null), i = ga(), { defaultLayout: a, selectedLayout: c } = Tt(), [l, u] = z("");
|
|
7982
7973
|
return Y(() => {
|
|
7983
7974
|
if (!e)
|
|
7984
7975
|
return;
|
|
@@ -8012,7 +8003,7 @@ const Zu = (t, e, n) => {
|
|
|
8012
8003
|
children: [
|
|
8013
8004
|
/* @__PURE__ */ s("span", { className: K("name", { hidden: e }), "data-testid": "selected-layout-name", children: c?.name || "No selected layout" }),
|
|
8014
8005
|
/* @__PURE__ */ b("div", { className: "flex ai-center", "data-testid": "layout-actions-and-toggle", children: [
|
|
8015
|
-
!e && /* @__PURE__ */ s(
|
|
8006
|
+
!e && /* @__PURE__ */ s(To, { inputValue: l, setNotification: o }),
|
|
8016
8007
|
/* @__PURE__ */ s(
|
|
8017
8008
|
se,
|
|
8018
8009
|
{
|
|
@@ -8038,7 +8029,7 @@ const Zu = (t, e, n) => {
|
|
|
8038
8029
|
"data-testid": "layout-name-input"
|
|
8039
8030
|
}
|
|
8040
8031
|
),
|
|
8041
|
-
/* @__PURE__ */ s(
|
|
8032
|
+
/* @__PURE__ */ s(To, { className: "group", inputValue: l, setNotification: o })
|
|
8042
8033
|
] }),
|
|
8043
8034
|
/* @__PURE__ */ s(
|
|
8044
8035
|
qu,
|
|
@@ -8088,7 +8079,7 @@ const Zu = (t, e, n) => {
|
|
|
8088
8079
|
"div",
|
|
8089
8080
|
{
|
|
8090
8081
|
className: "notifications-list-item",
|
|
8091
|
-
style: { borderLeftColor:
|
|
8082
|
+
style: { borderLeftColor: ya[e] },
|
|
8092
8083
|
onClick: u,
|
|
8093
8084
|
"data-testid": "notification-container",
|
|
8094
8085
|
children: [
|
|
@@ -8109,12 +8100,12 @@ const Zu = (t, e, n) => {
|
|
|
8109
8100
|
] }),
|
|
8110
8101
|
i && /* @__PURE__ */ s("p", { "data-testid": "notification-body", children: i }),
|
|
8111
8102
|
r && /* @__PURE__ */ s("p", { "data-testid": "notification-timestamp", children: Ju(r) }),
|
|
8112
|
-
f && /* @__PURE__ */ s(
|
|
8103
|
+
f && /* @__PURE__ */ s(Sr, { className: "notification-actions", "data-testid": "notification-actions", items: f })
|
|
8113
8104
|
]
|
|
8114
8105
|
}
|
|
8115
8106
|
);
|
|
8116
8107
|
}, ji = (t) => {
|
|
8117
|
-
const { className: e } = t, n =
|
|
8108
|
+
const { className: e } = t, n = zo().length;
|
|
8118
8109
|
return n > 0 ? /* @__PURE__ */ s("span", { className: K("notifications-badge", e), "data-testid": "notifications-badge", children: n < 10 ? n : "9+" }) : null;
|
|
8119
8110
|
}, ed = (t) => {
|
|
8120
8111
|
const { className: e, iconSize: n = 24, ...r } = t;
|
|
@@ -8123,7 +8114,7 @@ const Zu = (t, e, n) => {
|
|
|
8123
8114
|
/* @__PURE__ */ s(ji, {})
|
|
8124
8115
|
] });
|
|
8125
8116
|
}, td = () => {
|
|
8126
|
-
const { onNotificationsSort: t, sortedNotifications: e } =
|
|
8117
|
+
const { onNotificationsSort: t, sortedNotifications: e } = Oa(), n = ne(ie), r = he(() => {
|
|
8127
8118
|
n && n.notifications.clearAll().catch(console.error);
|
|
8128
8119
|
}, [n]);
|
|
8129
8120
|
return /* @__PURE__ */ b("div", { className: "notifications-panel", "data-testid": "notifications-panel", children: [
|
|
@@ -8134,7 +8125,7 @@ const Zu = (t, e, n) => {
|
|
|
8134
8125
|
")"
|
|
8135
8126
|
] }) }),
|
|
8136
8127
|
/* @__PURE__ */ s(
|
|
8137
|
-
|
|
8128
|
+
Sr,
|
|
8138
8129
|
{
|
|
8139
8130
|
items: [
|
|
8140
8131
|
{
|
|
@@ -8174,7 +8165,7 @@ const Zu = (t, e, n) => {
|
|
|
8174
8165
|
/* @__PURE__ */ b("div", { className: "flex ai-center", children: [
|
|
8175
8166
|
/* @__PURE__ */ s("label", { style: { textAlign: "right", width: "40%" }, children: "Theme" }),
|
|
8176
8167
|
/* @__PURE__ */ s("div", { style: { width: "60%", marginLeft: "auto" }, children: /* @__PURE__ */ s(
|
|
8177
|
-
|
|
8168
|
+
Sr,
|
|
8178
8169
|
{
|
|
8179
8170
|
onItemClick: async (o, i) => {
|
|
8180
8171
|
i.name && t.themes?.select(i.name).catch(console.warn);
|
|
@@ -8188,7 +8179,7 @@ const Zu = (t, e, n) => {
|
|
|
8188
8179
|
] })
|
|
8189
8180
|
] });
|
|
8190
8181
|
}, od = ({ title: t, description: e, links: n = [], onLogout: r, user: o }) => {
|
|
8191
|
-
const [i, a] = Bt("sessionStorage",
|
|
8182
|
+
const [i, a] = Bt("sessionStorage", Fo, ai), c = ne(ie), l = async () => {
|
|
8192
8183
|
try {
|
|
8193
8184
|
r?.();
|
|
8194
8185
|
} catch (u) {
|
|
@@ -8209,7 +8200,7 @@ const Zu = (t, e, n) => {
|
|
|
8209
8200
|
] }), ad = (t) => {
|
|
8210
8201
|
const { initials: e, className: n, ...r } = t;
|
|
8211
8202
|
return /* @__PURE__ */ s("div", { className: K(n, "user-panel-icon"), ...r, children: e });
|
|
8212
|
-
},
|
|
8203
|
+
}, _o = ({ children: t, closeFn: e, open: n = !1, showCloseButton: r = !0 }) => {
|
|
8213
8204
|
const o = Me(null);
|
|
8214
8205
|
return Y(() => {
|
|
8215
8206
|
n ? o.current?.showModal() : o.current?.close();
|
|
@@ -8243,8 +8234,8 @@ function sd(t) {
|
|
|
8243
8234
|
u(I.target.value);
|
|
8244
8235
|
}, O = () => {
|
|
8245
8236
|
u("");
|
|
8246
|
-
}, y = i.Sections ? /* @__PURE__ */ s(i.Sections, {}) : i.sections, T = /* @__PURE__ */ s(
|
|
8247
|
-
return /* @__PURE__ */ b(
|
|
8237
|
+
}, y = i.Sections ? /* @__PURE__ */ s(i.Sections, {}) : i.sections, T = /* @__PURE__ */ s(ul, { children: /* @__PURE__ */ s("ul", { children: y ?? /* @__PURE__ */ s($u, {}) }) });
|
|
8238
|
+
return /* @__PURE__ */ b(oc, { setOpen: n, isOpen: e, children: [
|
|
8248
8239
|
/* @__PURE__ */ b("div", { className: K(o), ...c, children: [
|
|
8249
8240
|
/* @__PURE__ */ b("header", { children: [
|
|
8250
8241
|
/* @__PURE__ */ s(Hu, { ref: m, searchTerm: l, onSearch: E, onClear: O }),
|
|
@@ -8272,14 +8263,14 @@ function sd(t) {
|
|
|
8272
8263
|
/* @__PURE__ */ s("main", { children: l.trim().length < 3 ? T : /* @__PURE__ */ s(zu, { searchTerm: l }) }),
|
|
8273
8264
|
/* @__PURE__ */ s(Xu, {})
|
|
8274
8265
|
] }),
|
|
8275
|
-
v && /* @__PURE__ */ s(
|
|
8276
|
-
g && /* @__PURE__ */ s(
|
|
8266
|
+
v && /* @__PURE__ */ s(_o, { open: f, closeFn: () => p(!1), children: /* @__PURE__ */ s(w, {}) }),
|
|
8267
|
+
g && /* @__PURE__ */ s(_o, { open: d, closeFn: () => h(!1), children: /* @__PURE__ */ s(x, { onLogout: r, user: a }) })
|
|
8277
8268
|
] });
|
|
8278
8269
|
}
|
|
8279
8270
|
const cd = () => /* @__PURE__ */ b(be, { children: [
|
|
8280
|
-
/* @__PURE__ */ s(
|
|
8271
|
+
/* @__PURE__ */ s(Zi, { frameId: "" }),
|
|
8281
8272
|
/* @__PURE__ */ s(ji, {})
|
|
8282
|
-
] }), ld = "_workspaceLogo_t3m7s_1",
|
|
8273
|
+
] }), ld = "_workspaceLogo_t3m7s_1", Po = {
|
|
8283
8274
|
workspaceLogo: ld,
|
|
8284
8275
|
"launchpad-popup": "_launchpad-popup_t3m7s_9",
|
|
8285
8276
|
"slide-in": "_slide-in_t3m7s_32"
|
|
@@ -8311,34 +8302,35 @@ const cd = () => /* @__PURE__ */ b(be, { children: [
|
|
|
8311
8302
|
/* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
8312
8303
|
"div",
|
|
8313
8304
|
{
|
|
8314
|
-
className: K(
|
|
8315
|
-
[
|
|
8305
|
+
className: K(Po["launchpad-popup"], {
|
|
8306
|
+
[Po["slide-in"]]: e
|
|
8316
8307
|
}),
|
|
8317
8308
|
children: a({ open: e, setOpen: n })
|
|
8318
8309
|
}
|
|
8319
8310
|
) })
|
|
8320
8311
|
] });
|
|
8321
|
-
},
|
|
8312
|
+
}, Ui = (t) => {
|
|
8322
8313
|
const { icon: e, components: n, user: r, onLogout: o } = t;
|
|
8323
8314
|
return /* @__PURE__ */ s(ud, { icon: e ?? /* @__PURE__ */ s(cd, {}), children: ({ open: i, setOpen: a }) => /* @__PURE__ */ s(sd, { open: i, setOpen: a, components: n, user: r, onLogout: o }) });
|
|
8324
8315
|
};
|
|
8325
8316
|
export {
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8317
|
+
dl as ApplicationsSection,
|
|
8318
|
+
xr as BaseSection,
|
|
8319
|
+
Xi as BaseSectionHeader,
|
|
8320
|
+
tc as BaseSectionItem,
|
|
8321
|
+
xl as BrowserNotSupported,
|
|
8331
8322
|
Cn as Button,
|
|
8332
|
-
|
|
8333
|
-
|
|
8323
|
+
Sr as ButtonGroup,
|
|
8324
|
+
ec as ContextMenu,
|
|
8334
8325
|
ii as DropdownButton,
|
|
8335
|
-
|
|
8326
|
+
Sl as FavoritesSection,
|
|
8336
8327
|
yd as IOConnectHome,
|
|
8337
|
-
|
|
8328
|
+
Il as IOConnectHomeProvider,
|
|
8338
8329
|
se as Icon,
|
|
8339
|
-
|
|
8330
|
+
Uo as ImgIcon,
|
|
8340
8331
|
sd as Launchpad,
|
|
8341
|
-
|
|
8332
|
+
_l as LaunchpadAccess,
|
|
8333
|
+
Ui as LaunchpadSlidePanel,
|
|
8342
8334
|
Xu as LayoutsPanel,
|
|
8343
8335
|
gd as LoginLoader,
|
|
8344
8336
|
cd as Logo,
|
|
@@ -8346,18 +8338,21 @@ export {
|
|
|
8346
8338
|
ji as NotificationsBadge,
|
|
8347
8339
|
ed as NotificationsIcon,
|
|
8348
8340
|
td as NotificationsPanel,
|
|
8349
|
-
|
|
8341
|
+
Rr as PermissionsSetup,
|
|
8350
8342
|
Hu as SearchBar,
|
|
8351
8343
|
zu as SearchResults,
|
|
8352
|
-
|
|
8344
|
+
kr as Section,
|
|
8353
8345
|
rd as SettingsCard,
|
|
8354
8346
|
ud as SlidePanel,
|
|
8355
8347
|
od as SupportCard,
|
|
8356
8348
|
id as UserPanel,
|
|
8357
8349
|
ad as UserPanelIcon,
|
|
8350
|
+
wi as WorkspaceComponentsContext,
|
|
8351
|
+
vd as WorkspaceLogo,
|
|
8358
8352
|
Bu as WorkspacesSection,
|
|
8359
8353
|
pr as useFavoriteEntities,
|
|
8360
8354
|
ut as useIOConnectHome,
|
|
8361
|
-
Wu as useIsBrowserSupported
|
|
8355
|
+
Wu as useIsBrowserSupported,
|
|
8356
|
+
Tl as useWorkspaceComponentsContext
|
|
8362
8357
|
};
|
|
8363
8358
|
//# sourceMappingURL=index.mjs.map
|