bt-core-app 1.4.538 → 1.4.540
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bt-core-app.js +16 -20
- package/dist/index.d.ts +0 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -10104,7 +10104,7 @@ function ek(e) {
|
|
|
10104
10104
|
const t = "isInDemoMode", n = localStorage.getItem(t), a = H((e == null ? void 0 : e.startInDemo) == !0 || n == "true"), l = (e == null ? void 0 : e.apis) ?? [];
|
|
10105
10105
|
function r() {
|
|
10106
10106
|
var v;
|
|
10107
|
-
((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout()), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Ww(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true")
|
|
10107
|
+
((v = e == null ? void 0 : e.auth) == null ? void 0 : v.isLoggedIn.value) == !0 && (e == null || e.auth.logout()), (e == null ? void 0 : e.getAuthToken) != null && e.auth != null && e.auth.setAuth(Ww(e.getAuthToken())), a.value = !0, localStorage.setItem(t, "true");
|
|
10108
10108
|
}
|
|
10109
10109
|
function i(v) {
|
|
10110
10110
|
a.value = !1;
|
|
@@ -12486,28 +12486,24 @@ function H2() {
|
|
|
12486
12486
|
}
|
|
12487
12487
|
const my = Symbol(), W2 = Symbol(), vy = Symbol(), hy = Symbol();
|
|
12488
12488
|
function UV(e, t, n, a) {
|
|
12489
|
-
var
|
|
12490
|
-
const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.
|
|
12491
|
-
function
|
|
12489
|
+
var h;
|
|
12490
|
+
const l = Ye(my), r = Ye(hy), i = Ye(vy), o = l.findItem(e.meta.nav ?? e.name) ?? void 0, s = e.meta.requiresAuth !== !1 || o != null && o.requiresAuth !== !1, c = e.meta.permissions ?? [], u = e.meta.subscriptions ?? [];
|
|
12491
|
+
function f() {
|
|
12492
12492
|
document.title = `${i.isDemoing.value ? "(Demo) " : ""}${cx() ?? ""}`;
|
|
12493
12493
|
}
|
|
12494
|
-
if (s)
|
|
12495
|
-
if (
|
|
12496
|
-
|
|
12497
|
-
else {
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
if (m.push(...f), g.push(...u), r.doShow(m, g, "view")) {
|
|
12503
|
-
l.updateNavigationChange(e, t);
|
|
12504
|
-
return;
|
|
12505
|
-
} else
|
|
12506
|
-
return { name: n };
|
|
12494
|
+
if (e.query.isDemo === "true" && !i.isDemoing.value && i.startDemo(), s)
|
|
12495
|
+
if (i.isDemoing.value)
|
|
12496
|
+
f(), l.updateNavigationChange(e, t);
|
|
12497
|
+
else if (f(), r.tryLogin()) {
|
|
12498
|
+
const v = (o == null ? void 0 : o.subscriptions) ?? [], m = (o == null ? void 0 : o.permissions) ?? [];
|
|
12499
|
+
if (v.push(...u), m.push(...c), r.doShow(v, m, "view")) {
|
|
12500
|
+
l.updateNavigationChange(e, t);
|
|
12501
|
+
return;
|
|
12507
12502
|
} else
|
|
12508
|
-
return
|
|
12509
|
-
}
|
|
12510
|
-
|
|
12503
|
+
return { name: n };
|
|
12504
|
+
} else
|
|
12505
|
+
return r.login(window.location.pathname), { name: n };
|
|
12506
|
+
else if (f(), l.updateNavigationChange(e, t), e.path == "/" && r.tryLogin() && vl((h = t.name) == null ? void 0 : h.toString()))
|
|
12511
12507
|
return { name: a };
|
|
12512
12508
|
}
|
|
12513
12509
|
function YV(e) {
|
package/dist/index.d.ts
CHANGED
|
@@ -728,10 +728,6 @@ export declare interface GroupedHeaderOption {
|
|
|
728
728
|
|
|
729
729
|
export declare function guardRoute(to: RouteLocationNormalized, from: RouteLocationNormalized, restrictedName: string, loggedInHome: string): {
|
|
730
730
|
name: string;
|
|
731
|
-
path?: undefined;
|
|
732
|
-
} | {
|
|
733
|
-
path: string;
|
|
734
|
-
name?: undefined;
|
|
735
731
|
} | undefined;
|
|
736
732
|
|
|
737
733
|
/**tests for whether string is contains in any of the given props of the given value */
|
package/package.json
CHANGED