@tapni/auth 0.0.71 → 0.0.73
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/TapniAuth.es.js +706 -705
- package/dist/TapniAuth.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +12 -5
- package/src/mixins/apple.mixin.js +1 -2
- package/src/mixins/auth.mixin.js +8 -11
- package/src/mixins/google.mixin.js +1 -2
- package/src/mixins/microsoft.mixin.js +1 -2
- package/src/views/Welcome.vue +1 -1
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as
|
|
1
|
+
import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ne, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
|
|
2
2
|
import { RouterView as Yo } from "vue-router";
|
|
3
3
|
import Z from "await-to-js";
|
|
4
4
|
import Xn from "axios";
|
|
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
|
|
|
8
8
|
import { Browser as hn } from "@capacitor/browser";
|
|
9
9
|
import $o from "qr-code-styling";
|
|
10
10
|
import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
|
|
11
|
-
const Xo = "0.0.
|
|
11
|
+
const Xo = "0.0.73";
|
|
12
12
|
let Un;
|
|
13
13
|
const Ft = {
|
|
14
14
|
setApiRootFromOptions(n) {
|
|
@@ -50,47 +50,47 @@ const Ft = {
|
|
|
50
50
|
return i;
|
|
51
51
|
}), o;
|
|
52
52
|
}
|
|
53
|
-
},
|
|
53
|
+
}, Je = Ft.instance, It = {
|
|
54
54
|
getMe() {
|
|
55
55
|
return Ft(storage).get("/users/me");
|
|
56
56
|
},
|
|
57
57
|
getByUsername(n, e) {
|
|
58
58
|
let t = document.referrer || "", r = n.utmParams || {};
|
|
59
|
-
return n.dontTap && (r.dontTap = !0),
|
|
59
|
+
return n.dontTap && (r.dontTap = !0), Je(e).get(`/users/${n.username}`, {
|
|
60
60
|
params: r,
|
|
61
61
|
headers: { "X-Referer": t }
|
|
62
62
|
});
|
|
63
63
|
},
|
|
64
64
|
getByNumber(n, e) {
|
|
65
65
|
let t = document.referrer || "", r = n.utmParams || {};
|
|
66
|
-
return n.dontTap && (r.dontTap = !0),
|
|
66
|
+
return n.dontTap && (r.dontTap = !0), Je(e).get(`/users/tag/${n.serial}`, {
|
|
67
67
|
params: r,
|
|
68
68
|
headers: { "X-Referer": t }
|
|
69
69
|
});
|
|
70
70
|
},
|
|
71
71
|
save(n, e) {
|
|
72
|
-
return
|
|
72
|
+
return Je(e).put("/users", n);
|
|
73
73
|
},
|
|
74
74
|
newPassword(n, e) {
|
|
75
|
-
return
|
|
75
|
+
return Je(e).put("/users/new-password", n);
|
|
76
76
|
},
|
|
77
77
|
connect(n, e) {
|
|
78
|
-
return
|
|
78
|
+
return Je(e).post("/users/connect", n);
|
|
79
79
|
},
|
|
80
80
|
eventLog(n, e) {
|
|
81
|
-
return
|
|
81
|
+
return Je(e).post("/users/log", n);
|
|
82
82
|
},
|
|
83
83
|
deleteAccount(n, e) {
|
|
84
|
-
return
|
|
84
|
+
return Je(e).post("/users/profile/delete", n);
|
|
85
85
|
},
|
|
86
86
|
registerDevice(n, e) {
|
|
87
|
-
return
|
|
87
|
+
return Je(e).post("/users/device/register", n);
|
|
88
88
|
},
|
|
89
89
|
addFcmToken(n, e) {
|
|
90
|
-
return
|
|
90
|
+
return Je(e).post("/users/device/fcm", n);
|
|
91
91
|
},
|
|
92
92
|
loginUsingQR(n, e) {
|
|
93
|
-
return
|
|
93
|
+
return Je(e).post("/users/qr/login", n);
|
|
94
94
|
}
|
|
95
95
|
}, yr = Ft.instance, kr = {
|
|
96
96
|
registerDevice(n, e) {
|
|
@@ -99,65 +99,65 @@ const Ft = {
|
|
|
99
99
|
addFcmToken(n, e) {
|
|
100
100
|
return yr(e).post("/devices/fcm/add", n);
|
|
101
101
|
}
|
|
102
|
-
},
|
|
102
|
+
}, _e = Ft.instance;
|
|
103
103
|
let He;
|
|
104
104
|
pn.getId().then((n) => He = n.uuid);
|
|
105
|
-
const
|
|
105
|
+
const Ne = {
|
|
106
106
|
register(n, e) {
|
|
107
|
-
return n.device_id = He,
|
|
107
|
+
return n.device_id = He, _e(e).post("/users/register", n);
|
|
108
108
|
},
|
|
109
109
|
login(n, e) {
|
|
110
|
-
return n.device_id = He,
|
|
110
|
+
return n.device_id = He, _e(e).post("/users/login", n);
|
|
111
111
|
},
|
|
112
112
|
logout(n, e) {
|
|
113
|
-
return n.device_id = He,
|
|
113
|
+
return n.device_id = He, _e(e).post("/users/logout", n);
|
|
114
114
|
},
|
|
115
115
|
refreshToken(n, e) {
|
|
116
|
-
return
|
|
116
|
+
return _e(e, !0).get(`/users/refresh-token?UserId=${n.id}&token=${n.refreshToken}`);
|
|
117
117
|
},
|
|
118
118
|
getLoggedInAccounts(n, e) {
|
|
119
|
-
return
|
|
119
|
+
return _e(e).post("/users/tokens", n);
|
|
120
120
|
},
|
|
121
121
|
sendResetEmail(n, e) {
|
|
122
|
-
return n.device_id = He,
|
|
122
|
+
return n.device_id = He, _e(e).post("/users/reset", n);
|
|
123
123
|
},
|
|
124
124
|
changePassword(n, e) {
|
|
125
|
-
return
|
|
125
|
+
return _e(e).put("/users/password", n, {
|
|
126
126
|
headers: { Authorization: "Bearer " + n.token }
|
|
127
127
|
});
|
|
128
128
|
},
|
|
129
129
|
verify(n, e) {
|
|
130
|
-
return
|
|
130
|
+
return _e(e).get("/users/verify?c=" + n.code + "&e=" + n.email + "&captchatoken=" + n.captchaToken);
|
|
131
131
|
},
|
|
132
132
|
googleUrl(n) {
|
|
133
|
-
return
|
|
133
|
+
return _e(n).get("/users/google/url");
|
|
134
134
|
},
|
|
135
135
|
google(n, e) {
|
|
136
|
-
return n.device_id = He,
|
|
136
|
+
return n.device_id = He, _e(e).post("/users/google", n);
|
|
137
137
|
},
|
|
138
138
|
facebook(n, e) {
|
|
139
|
-
return n.device_id = He,
|
|
139
|
+
return n.device_id = He, _e(e).post("/users/facebook", n);
|
|
140
140
|
},
|
|
141
141
|
googleSDK(n, e) {
|
|
142
|
-
return n.device_id = He,
|
|
142
|
+
return n.device_id = He, _e(e).post("/users/google/sdk", n);
|
|
143
143
|
},
|
|
144
144
|
facebookSDK(n, e) {
|
|
145
|
-
return n.device_id = He,
|
|
145
|
+
return n.device_id = He, _e(e).post("/users/facebook/sdk", n);
|
|
146
146
|
},
|
|
147
147
|
appleSDK(n, e) {
|
|
148
|
-
return n.device_id = He,
|
|
148
|
+
return n.device_id = He, _e(e).post("/users/apple/sdk", n);
|
|
149
149
|
},
|
|
150
150
|
microsoftSDK(n, e) {
|
|
151
|
-
return n.device_id = He,
|
|
151
|
+
return n.device_id = He, _e(e).post("/users/microsoft/sdk", n);
|
|
152
152
|
},
|
|
153
153
|
oktaSDK(n, e) {
|
|
154
|
-
return n.device_id = He,
|
|
154
|
+
return n.device_id = He, _e(e).post("/users/okta/sdk", n);
|
|
155
155
|
},
|
|
156
156
|
samlLoginUrl(n, e) {
|
|
157
|
-
return
|
|
157
|
+
return _e(e).post("/saml/url", n);
|
|
158
158
|
},
|
|
159
159
|
exchangeAuthCode(n, e) {
|
|
160
|
-
return
|
|
160
|
+
return _e(e).post("/users/auth-code", n);
|
|
161
161
|
}
|
|
162
162
|
}, xn = Ft.instance, Hn = {
|
|
163
163
|
getBySSOEmail(n, e) {
|
|
@@ -4453,11 +4453,7 @@ const ze = {
|
|
|
4453
4453
|
}
|
|
4454
4454
|
},
|
|
4455
4455
|
async loginSetup(n) {
|
|
4456
|
-
|
|
4457
|
-
n.data.refreshToken && this.setRefreshToken(n.data.refreshToken), n.data.token && this.setToken(n.data.token), ((t = (e = n.data) == null ? void 0 : e.data) == null ? void 0 : t.ssoLang) !== this.appLanguage && z.$emit("ssoEvent", {
|
|
4458
|
-
name: "saveProfile",
|
|
4459
|
-
data: { lang: this.appLanguage, username: n.data.data.username }
|
|
4460
|
-
}), this.setLoggedInUserId(n.data.data.id), this.$storage.UserId = n.data.data.id, this.$storage.username = n.data.data.username, n.isModal === !0 && this.setLoggedInAccounts([
|
|
4456
|
+
n.data.refreshToken && this.setRefreshToken(n.data.refreshToken), n.data.token && this.setToken(n.data.token), this.setLoggedInUserId(n.data.data.id), this.$storage.UserId = n.data.data.id, this.$storage.username = n.data.data.username, n.isModal === !0 && this.setLoggedInAccounts([
|
|
4461
4457
|
{
|
|
4462
4458
|
id: n.data.data.id,
|
|
4463
4459
|
username: n.data.data.username,
|
|
@@ -4473,11 +4469,13 @@ const ze = {
|
|
|
4473
4469
|
});
|
|
4474
4470
|
},
|
|
4475
4471
|
async refreshTokenAction(n) {
|
|
4476
|
-
if (!this.refreshToken || this.refreshing)
|
|
4472
|
+
if (!this.refreshToken || this.refreshing) {
|
|
4473
|
+
console.log("return-refreshTokenAction", this.refreshToken, this.refreshing);
|
|
4477
4474
|
return;
|
|
4475
|
+
}
|
|
4478
4476
|
this.refreshing = !0;
|
|
4479
4477
|
const [e, t] = await Z(
|
|
4480
|
-
|
|
4478
|
+
Ne.refreshToken({
|
|
4481
4479
|
id: n.id,
|
|
4482
4480
|
refreshToken: this.refreshToken,
|
|
4483
4481
|
refreshTokenAction: !0
|
|
@@ -4488,7 +4486,7 @@ const ze = {
|
|
|
4488
4486
|
t && t.data ? this.setToken(t.data.token) : console.error("Invalid response setToken"), this.refreshing = !1;
|
|
4489
4487
|
},
|
|
4490
4488
|
async login(n) {
|
|
4491
|
-
const [e, t] = await Z(
|
|
4489
|
+
const [e, t] = await Z(Ne.login(n, this.$storage));
|
|
4492
4490
|
if (e)
|
|
4493
4491
|
return this.errorHandler(e);
|
|
4494
4492
|
if (t.data.success)
|
|
@@ -4512,31 +4510,31 @@ const ze = {
|
|
|
4512
4510
|
},
|
|
4513
4511
|
async register(n) {
|
|
4514
4512
|
const [e, t] = await Z(
|
|
4515
|
-
|
|
4513
|
+
Ne.register(n, this.$storage)
|
|
4516
4514
|
);
|
|
4517
4515
|
return e ? this.errorHandler(e) : t;
|
|
4518
4516
|
},
|
|
4519
4517
|
async verify(n) {
|
|
4520
|
-
const [e, t] = await Z(
|
|
4518
|
+
const [e, t] = await Z(Ne.verify(n, this.$storage));
|
|
4521
4519
|
return e ? this.errorHandler(e) : t;
|
|
4522
4520
|
},
|
|
4523
4521
|
async reset(n) {
|
|
4524
4522
|
const [e, t] = await Z(
|
|
4525
|
-
|
|
4523
|
+
Ne.sendResetEmail(n, this.$storage)
|
|
4526
4524
|
);
|
|
4527
4525
|
if (e)
|
|
4528
4526
|
return this.errorHandler(e);
|
|
4529
4527
|
t.data.success && this.successSnack(this.ssoLang[this.appLanguage].password_reset_success);
|
|
4530
4528
|
},
|
|
4531
4529
|
async exchangeAuthCode(n) {
|
|
4532
|
-
const [e, t] = await Z(
|
|
4530
|
+
const [e, t] = await Z(Ne.exchangeAuthCode(n, this.$storage));
|
|
4533
4531
|
if (e)
|
|
4534
4532
|
return this.errorHandler(e);
|
|
4535
4533
|
await this.loginSetup(t), await this.getLoggedInAccounts(), this.loginSuccess(t);
|
|
4536
4534
|
},
|
|
4537
4535
|
async changePassword(n) {
|
|
4538
4536
|
const [e, t] = await Z(
|
|
4539
|
-
|
|
4537
|
+
Ne.changePassword(n, this.$storage)
|
|
4540
4538
|
);
|
|
4541
4539
|
return e ? this.errorHandler(e) : t.data.success;
|
|
4542
4540
|
},
|
|
@@ -4584,11 +4582,11 @@ const ze = {
|
|
|
4584
4582
|
return e ? this.errorHandler(e) : t;
|
|
4585
4583
|
},
|
|
4586
4584
|
async logout(n = !0) {
|
|
4587
|
-
n &&
|
|
4585
|
+
n && Ne.logout({ token: this.refreshToken }, this.$storage), this.$storage && (this.$storage.username = "", this.$storage.ssoUser = "", this.$storage.UserId = ""), this.setLoggedInUserId(""), this.setToken(""), this.setRefreshToken(""), this.refreshToken ? Object.keys(this.loggedInAccounts).forEach((e) => {
|
|
4588
4586
|
this.loggedInAccounts[e].refreshToken === this.refreshToken && this.refreshTokenAction({
|
|
4589
4587
|
id: this.loggedInAccounts[e].id
|
|
4590
4588
|
}).then(() => (this.setLoggedInUserId(this.loggedInAccounts[e].id), this.$storage && (this.$storage.username = e, this.$storage.UserId = this.loggedInAccounts[e].id), this.getLoggedInAccounts(), this.$router.push("/" + e)));
|
|
4591
|
-
}) : this.setUser(null),
|
|
4589
|
+
}) : (this.setUser(null), this.$router.push("/welcome"));
|
|
4592
4590
|
},
|
|
4593
4591
|
async getCompanyBySSOEmail(n) {
|
|
4594
4592
|
const [e, t] = await Z(
|
|
@@ -4603,7 +4601,7 @@ const ze = {
|
|
|
4603
4601
|
const n = this.getRefreshTokens();
|
|
4604
4602
|
if (n && n.length >= 1) {
|
|
4605
4603
|
const [e, t] = await Z(
|
|
4606
|
-
|
|
4604
|
+
Ne.getLoggedInAccounts({ refreshTokens: n }, this.$storage)
|
|
4607
4605
|
);
|
|
4608
4606
|
if (e)
|
|
4609
4607
|
return this.errorHandler(e);
|
|
@@ -4652,7 +4650,7 @@ const ze = {
|
|
|
4652
4650
|
deep: !0
|
|
4653
4651
|
}
|
|
4654
4652
|
}
|
|
4655
|
-
},
|
|
4653
|
+
}, We = (n, e) => {
|
|
4656
4654
|
const t = n.__vccOpts || n;
|
|
4657
4655
|
for (const [r, o] of e)
|
|
4658
4656
|
t[r] = o;
|
|
@@ -4673,10 +4671,10 @@ const ze = {
|
|
|
4673
4671
|
});
|
|
4674
4672
|
}), setTimeout(() => {
|
|
4675
4673
|
this.$storage.token ? this.$router.push(this.home) : z.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4676
|
-
},
|
|
4674
|
+
}, 2500), z.$emit("ssoEvent", { name: "setInitialize", data: !0 });
|
|
4677
4675
|
},
|
|
4678
4676
|
methods: {}
|
|
4679
|
-
}, $r = (n) => (Ht("data-v-
|
|
4677
|
+
}, $r = (n) => (Ht("data-v-c4cf0a57"), n = n(), qt(), n), ri = {
|
|
4680
4678
|
class: "page-login content-boxed content-boxed-padding center-text",
|
|
4681
4679
|
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
4682
4680
|
}, oi = ["autoplay"], ii = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("source", {
|
|
@@ -4687,12 +4685,12 @@ const ze = {
|
|
|
4687
4685
|
], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, ui = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), di = {
|
|
4688
4686
|
key: 2,
|
|
4689
4687
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
4690
|
-
}, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-
|
|
4688
|
+
}, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a>', 3), hi = [
|
|
4691
4689
|
pi
|
|
4692
4690
|
];
|
|
4693
4691
|
function mi(n, e, t, r, o, i) {
|
|
4694
4692
|
const a = Dt("router-link");
|
|
4695
|
-
return
|
|
4693
|
+
return S(), P("div", ri, [
|
|
4696
4694
|
y("video", {
|
|
4697
4695
|
id: "tapniVideo",
|
|
4698
4696
|
muted: "",
|
|
@@ -4704,21 +4702,21 @@ function mi(n, e, t, r, o, i) {
|
|
|
4704
4702
|
}, ai, 8, oi),
|
|
4705
4703
|
y("h1", si, U(n.ssoLang[this.appLanguage].welcome), 1),
|
|
4706
4704
|
y("p", ci, U(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4705
|
+
ne("", !0),
|
|
4706
|
+
ne("", !0),
|
|
4707
|
+
ke(a, {
|
|
4710
4708
|
to: "register",
|
|
4711
4709
|
exact: "",
|
|
4712
4710
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
4713
4711
|
}, {
|
|
4714
|
-
default:
|
|
4712
|
+
default: nt(() => [
|
|
4715
4713
|
y("span", null, U(n.ssoLang[this.appLanguage].create_account), 1)
|
|
4716
4714
|
]),
|
|
4717
4715
|
_: 1
|
|
4718
4716
|
}),
|
|
4719
4717
|
y("div", li, [
|
|
4720
|
-
|
|
4721
|
-
default:
|
|
4718
|
+
ke(a, { to: "/login" }, {
|
|
4719
|
+
default: nt(() => [
|
|
4722
4720
|
se(U(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
4723
4721
|
y("b", null, U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
4724
4722
|
]),
|
|
@@ -4726,10 +4724,10 @@ function mi(n, e, t, r, o, i) {
|
|
|
4726
4724
|
}),
|
|
4727
4725
|
ui
|
|
4728
4726
|
]),
|
|
4729
|
-
this.isNative ?
|
|
4727
|
+
this.isNative ? ne("", !0) : (S(), P("div", di, hi))
|
|
4730
4728
|
]);
|
|
4731
4729
|
}
|
|
4732
|
-
const Jr = /* @__PURE__ */
|
|
4730
|
+
const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a57"]]), wr = In("GoogleAuth", {
|
|
4733
4731
|
web: () => import("./web-5VtGcKeU.js").then((n) => new n.GoogleAuthWeb())
|
|
4734
4732
|
}), Xr = {
|
|
4735
4733
|
data() {
|
|
@@ -4755,13 +4753,13 @@ const Jr = /* @__PURE__ */ Ye(ni, [["render", mi], ["__scopeId", "data-v-c5cb659
|
|
|
4755
4753
|
return this.googleLoad = !1;
|
|
4756
4754
|
if (this.referral && (e.ref = this.referral), e.authentication && (e.authentication.accessToken || e.authentication.idToken)) {
|
|
4757
4755
|
this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
4758
|
-
const [r, o] = await Z(
|
|
4756
|
+
const [r, o] = await Z(Ne.googleSDK(e, this.$storage));
|
|
4759
4757
|
if (r)
|
|
4760
4758
|
return this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
4761
4759
|
if (o.data.success) {
|
|
4762
4760
|
if (this.display === "popup")
|
|
4763
4761
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
|
|
4764
|
-
await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal:
|
|
4762
|
+
await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: this.isModal }), setTimeout(() => {
|
|
4765
4763
|
this.googleLoad = !1;
|
|
4766
4764
|
}, 1e3);
|
|
4767
4765
|
} else
|
|
@@ -4810,7 +4808,7 @@ const Zr = {
|
|
|
4810
4808
|
if (e)
|
|
4811
4809
|
return this.facebookLoad = !1;
|
|
4812
4810
|
if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
|
|
4813
|
-
const [o, i] = await Z(
|
|
4811
|
+
const [o, i] = await Z(Ne.facebookSDK(t, this.$storage));
|
|
4814
4812
|
if (o)
|
|
4815
4813
|
return this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
|
|
4816
4814
|
if (i.data.success) {
|
|
@@ -4852,13 +4850,13 @@ const Zr = {
|
|
|
4852
4850
|
return this.appleLoad = !1;
|
|
4853
4851
|
if (e.response.tokenData = qr(e.response.identityToken), e && e.response && e.response.identityToken) {
|
|
4854
4852
|
this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
|
|
4855
|
-
const [r, o] = await Z(
|
|
4853
|
+
const [r, o] = await Z(Ne.appleSDK(e.response, this.$storage));
|
|
4856
4854
|
if (r)
|
|
4857
4855
|
return this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
|
|
4858
4856
|
if (o.data.success) {
|
|
4859
4857
|
if (this.display === "popup")
|
|
4860
4858
|
return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
|
|
4861
|
-
await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal:
|
|
4859
|
+
await this.loginSetup(o), this.getLoggedInAccounts(), this.loginSuccess({ ...o, isModal: this.isModal }), setTimeout(() => {
|
|
4862
4860
|
this.appleLoad = !1;
|
|
4863
4861
|
}, 1e3);
|
|
4864
4862
|
} else
|
|
@@ -5238,10 +5236,10 @@ var g = {
|
|
|
5238
5236
|
(function(n) {
|
|
5239
5237
|
n.CONTENT_TYPE = "Content-Type", n.RETRY_AFTER = "Retry-After", n.CCS_HEADER = "X-AnchorMailbox", n.WWWAuthenticate = "WWW-Authenticate", n.AuthenticationInfo = "Authentication-Info", n.X_MS_REQUEST_ID = "x-ms-request-id", n.X_MS_HTTP_VERSION = "x-ms-httpver";
|
|
5240
5238
|
})(De || (De = {}));
|
|
5241
|
-
var
|
|
5239
|
+
var he;
|
|
5242
5240
|
(function(n) {
|
|
5243
5241
|
n.ID_TOKEN = "idtoken", n.CLIENT_INFO = "client.info", n.ADAL_ID_TOKEN = "adal.idtoken", n.ERROR = "error", n.ERROR_DESC = "error.description", n.ACTIVE_ACCOUNT = "active-account", n.ACTIVE_ACCOUNT_FILTERS = "active-account-filters";
|
|
5244
|
-
})(
|
|
5242
|
+
})(he || (he = {}));
|
|
5245
5243
|
var vt;
|
|
5246
5244
|
(function(n) {
|
|
5247
5245
|
n.COMMON = "common", n.ORGANIZATIONS = "organizations", n.CONSUMERS = "consumers";
|
|
@@ -5280,10 +5278,10 @@ var ot;
|
|
|
5280
5278
|
(function(n) {
|
|
5281
5279
|
n.MSSTS_ACCOUNT_TYPE = "MSSTS", n.ADFS_ACCOUNT_TYPE = "ADFS", n.MSAV1_ACCOUNT_TYPE = "MSA", n.GENERIC_ACCOUNT_TYPE = "Generic";
|
|
5282
5280
|
})(ot || (ot = {}));
|
|
5283
|
-
var
|
|
5281
|
+
var fe;
|
|
5284
5282
|
(function(n) {
|
|
5285
5283
|
n.CACHE_KEY_SEPARATOR = "-", n.CLIENT_INFO_SEPARATOR = ".";
|
|
5286
|
-
})(
|
|
5284
|
+
})(fe || (fe = {}));
|
|
5287
5285
|
var H;
|
|
5288
5286
|
(function(n) {
|
|
5289
5287
|
n.ID_TOKEN = "IdToken", n.ACCESS_TOKEN = "AccessToken", n.ACCESS_TOKEN_WITH_AUTH_SCHEME = "AccessToken_With_AuthScheme", n.REFRESH_TOKEN = "RefreshToken";
|
|
@@ -5296,11 +5294,11 @@ var jn = "appmetadata", vi = "client_info", Wt = "1", $t = {
|
|
|
5296
5294
|
CACHE_KEY: "authority-metadata",
|
|
5297
5295
|
REFRESH_TIME_SECONDS: 3600 * 24
|
|
5298
5296
|
// 24 Hours
|
|
5299
|
-
},
|
|
5297
|
+
}, Fe;
|
|
5300
5298
|
(function(n) {
|
|
5301
5299
|
n.CONFIG = "config", n.CACHE = "cache", n.NETWORK = "network", n.HARDCODED_VALUES = "hardcoded_values";
|
|
5302
|
-
})(
|
|
5303
|
-
var
|
|
5300
|
+
})(Fe || (Fe = {}));
|
|
5301
|
+
var ye = {
|
|
5304
5302
|
SCHEMA_VERSION: 5,
|
|
5305
5303
|
MAX_CUR_HEADER_BYTES: 80,
|
|
5306
5304
|
MAX_LAST_HEADER_BYTES: 330,
|
|
@@ -5442,7 +5440,7 @@ var _n = {
|
|
|
5442
5440
|
}
|
|
5443
5441
|
};
|
|
5444
5442
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
5445
|
-
var
|
|
5443
|
+
var R = {
|
|
5446
5444
|
clientInfoDecodingError: {
|
|
5447
5445
|
code: "client_info_decoding_error",
|
|
5448
5446
|
desc: "The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."
|
|
@@ -5652,97 +5650,97 @@ var A = {
|
|
|
5652
5650
|
return o.name = "ClientAuthError", Object.setPrototypeOf(o, e.prototype), o;
|
|
5653
5651
|
}
|
|
5654
5652
|
return e.createClientInfoDecodingError = function(t) {
|
|
5655
|
-
return new e(
|
|
5653
|
+
return new e(R.clientInfoDecodingError.code, R.clientInfoDecodingError.desc + " Failed with error: " + t);
|
|
5656
5654
|
}, e.createClientInfoEmptyError = function() {
|
|
5657
|
-
return new e(
|
|
5655
|
+
return new e(R.clientInfoEmptyError.code, "" + R.clientInfoEmptyError.desc);
|
|
5658
5656
|
}, e.createTokenParsingError = function(t) {
|
|
5659
|
-
return new e(
|
|
5657
|
+
return new e(R.tokenParsingError.code, R.tokenParsingError.desc + " Failed with error: " + t);
|
|
5660
5658
|
}, e.createTokenNullOrEmptyError = function(t) {
|
|
5661
|
-
return new e(
|
|
5659
|
+
return new e(R.nullOrEmptyToken.code, R.nullOrEmptyToken.desc + " Raw Token Value: " + t);
|
|
5662
5660
|
}, e.createEndpointDiscoveryIncompleteError = function(t) {
|
|
5663
|
-
return new e(
|
|
5661
|
+
return new e(R.endpointResolutionError.code, R.endpointResolutionError.desc + " Detail: " + t);
|
|
5664
5662
|
}, e.createNetworkError = function(t, r) {
|
|
5665
|
-
return new e(
|
|
5663
|
+
return new e(R.networkError.code, R.networkError.desc + " | Fetch client threw: " + r + " | Attempted to reach: " + t.split("?")[0]);
|
|
5666
5664
|
}, e.createUnableToGetOpenidConfigError = function(t) {
|
|
5667
|
-
return new e(
|
|
5665
|
+
return new e(R.unableToGetOpenidConfigError.code, R.unableToGetOpenidConfigError.desc + " Attempted to retrieve endpoints from: " + t);
|
|
5668
5666
|
}, e.createHashNotDeserializedError = function(t) {
|
|
5669
|
-
return new e(
|
|
5667
|
+
return new e(R.hashNotDeserialized.code, R.hashNotDeserialized.desc + " Given Object: " + t);
|
|
5670
5668
|
}, e.createInvalidStateError = function(t, r) {
|
|
5671
|
-
return new e(
|
|
5669
|
+
return new e(R.invalidStateError.code, R.invalidStateError.desc + " Invalid State: " + t + ", Root Err: " + r);
|
|
5672
5670
|
}, e.createStateMismatchError = function() {
|
|
5673
|
-
return new e(
|
|
5671
|
+
return new e(R.stateMismatchError.code, R.stateMismatchError.desc);
|
|
5674
5672
|
}, e.createStateNotFoundError = function(t) {
|
|
5675
|
-
return new e(
|
|
5673
|
+
return new e(R.stateNotFoundError.code, R.stateNotFoundError.desc + ": " + t);
|
|
5676
5674
|
}, e.createNonceMismatchError = function() {
|
|
5677
|
-
return new e(
|
|
5675
|
+
return new e(R.nonceMismatchError.code, R.nonceMismatchError.desc);
|
|
5678
5676
|
}, e.createAuthTimeNotFoundError = function() {
|
|
5679
|
-
return new e(
|
|
5677
|
+
return new e(R.authTimeNotFoundError.code, R.authTimeNotFoundError.desc);
|
|
5680
5678
|
}, e.createMaxAgeTranspiredError = function() {
|
|
5681
|
-
return new e(
|
|
5679
|
+
return new e(R.maxAgeTranspiredError.code, R.maxAgeTranspiredError.desc);
|
|
5682
5680
|
}, e.createNonceNotFoundError = function(t) {
|
|
5683
|
-
return new e(
|
|
5681
|
+
return new e(R.nonceNotFoundError.code, R.nonceNotFoundError.desc + ": " + t);
|
|
5684
5682
|
}, e.createMultipleMatchingTokensInCacheError = function() {
|
|
5685
|
-
return new e(
|
|
5683
|
+
return new e(R.multipleMatchingTokens.code, R.multipleMatchingTokens.desc + ".");
|
|
5686
5684
|
}, e.createMultipleMatchingAccountsInCacheError = function() {
|
|
5687
|
-
return new e(
|
|
5685
|
+
return new e(R.multipleMatchingAccounts.code, R.multipleMatchingAccounts.desc);
|
|
5688
5686
|
}, e.createMultipleMatchingAppMetadataInCacheError = function() {
|
|
5689
|
-
return new e(
|
|
5687
|
+
return new e(R.multipleMatchingAppMetadata.code, R.multipleMatchingAppMetadata.desc);
|
|
5690
5688
|
}, e.createTokenRequestCannotBeMadeError = function() {
|
|
5691
|
-
return new e(
|
|
5689
|
+
return new e(R.tokenRequestCannotBeMade.code, R.tokenRequestCannotBeMade.desc);
|
|
5692
5690
|
}, e.createAppendEmptyScopeToSetError = function(t) {
|
|
5693
|
-
return new e(
|
|
5691
|
+
return new e(R.appendEmptyScopeError.code, R.appendEmptyScopeError.desc + " Given Scope: " + t);
|
|
5694
5692
|
}, e.createRemoveEmptyScopeFromSetError = function(t) {
|
|
5695
|
-
return new e(
|
|
5693
|
+
return new e(R.removeEmptyScopeError.code, R.removeEmptyScopeError.desc + " Given Scope: " + t);
|
|
5696
5694
|
}, e.createAppendScopeSetError = function(t) {
|
|
5697
|
-
return new e(
|
|
5695
|
+
return new e(R.appendScopeSetError.code, R.appendScopeSetError.desc + " Detail Error: " + t);
|
|
5698
5696
|
}, e.createEmptyInputScopeSetError = function() {
|
|
5699
|
-
return new e(
|
|
5697
|
+
return new e(R.emptyInputScopeSetError.code, "" + R.emptyInputScopeSetError.desc);
|
|
5700
5698
|
}, e.createDeviceCodeCancelledError = function() {
|
|
5701
|
-
return new e(
|
|
5699
|
+
return new e(R.DeviceCodePollingCancelled.code, "" + R.DeviceCodePollingCancelled.desc);
|
|
5702
5700
|
}, e.createDeviceCodeExpiredError = function() {
|
|
5703
|
-
return new e(
|
|
5701
|
+
return new e(R.DeviceCodeExpired.code, "" + R.DeviceCodeExpired.desc);
|
|
5704
5702
|
}, e.createDeviceCodeUnknownError = function() {
|
|
5705
|
-
return new e(
|
|
5703
|
+
return new e(R.DeviceCodeUnknownError.code, "" + R.DeviceCodeUnknownError.desc);
|
|
5706
5704
|
}, e.createNoAccountInSilentRequestError = function() {
|
|
5707
|
-
return new e(
|
|
5705
|
+
return new e(R.NoAccountInSilentRequest.code, "" + R.NoAccountInSilentRequest.desc);
|
|
5708
5706
|
}, e.createNullOrUndefinedCacheRecord = function() {
|
|
5709
|
-
return new e(
|
|
5707
|
+
return new e(R.invalidCacheRecord.code, R.invalidCacheRecord.desc);
|
|
5710
5708
|
}, e.createInvalidCacheEnvironmentError = function() {
|
|
5711
|
-
return new e(
|
|
5709
|
+
return new e(R.invalidCacheEnvironment.code, R.invalidCacheEnvironment.desc);
|
|
5712
5710
|
}, e.createNoAccountFoundError = function() {
|
|
5713
|
-
return new e(
|
|
5711
|
+
return new e(R.noAccountFound.code, R.noAccountFound.desc);
|
|
5714
5712
|
}, e.createCachePluginError = function() {
|
|
5715
|
-
return new e(
|
|
5713
|
+
return new e(R.CachePluginError.code, "" + R.CachePluginError.desc);
|
|
5716
5714
|
}, e.createNoCryptoObjectError = function(t) {
|
|
5717
|
-
return new e(
|
|
5715
|
+
return new e(R.noCryptoObj.code, "" + R.noCryptoObj.desc + t);
|
|
5718
5716
|
}, e.createInvalidCacheTypeError = function() {
|
|
5719
|
-
return new e(
|
|
5717
|
+
return new e(R.invalidCacheType.code, "" + R.invalidCacheType.desc);
|
|
5720
5718
|
}, e.createUnexpectedAccountTypeError = function() {
|
|
5721
|
-
return new e(
|
|
5719
|
+
return new e(R.unexpectedAccountType.code, "" + R.unexpectedAccountType.desc);
|
|
5722
5720
|
}, e.createUnexpectedCredentialTypeError = function() {
|
|
5723
|
-
return new e(
|
|
5721
|
+
return new e(R.unexpectedCredentialType.code, "" + R.unexpectedCredentialType.desc);
|
|
5724
5722
|
}, e.createInvalidAssertionError = function() {
|
|
5725
|
-
return new e(
|
|
5723
|
+
return new e(R.invalidAssertion.code, "" + R.invalidAssertion.desc);
|
|
5726
5724
|
}, e.createInvalidCredentialError = function() {
|
|
5727
|
-
return new e(
|
|
5725
|
+
return new e(R.invalidClientCredential.code, "" + R.invalidClientCredential.desc);
|
|
5728
5726
|
}, e.createRefreshRequiredError = function() {
|
|
5729
|
-
return new e(
|
|
5727
|
+
return new e(R.tokenRefreshRequired.code, R.tokenRefreshRequired.desc);
|
|
5730
5728
|
}, e.createUserTimeoutReachedError = function() {
|
|
5731
|
-
return new e(
|
|
5729
|
+
return new e(R.userTimeoutReached.code, R.userTimeoutReached.desc);
|
|
5732
5730
|
}, e.createTokenClaimsRequiredError = function() {
|
|
5733
|
-
return new e(
|
|
5731
|
+
return new e(R.tokenClaimsRequired.code, R.tokenClaimsRequired.desc);
|
|
5734
5732
|
}, e.createNoAuthCodeInServerResponseError = function() {
|
|
5735
|
-
return new e(
|
|
5733
|
+
return new e(R.noAuthorizationCodeFromServer.code, R.noAuthorizationCodeFromServer.desc);
|
|
5736
5734
|
}, e.createBindingKeyNotRemovedError = function() {
|
|
5737
|
-
return new e(
|
|
5735
|
+
return new e(R.bindingKeyNotRemovedError.code, R.bindingKeyNotRemovedError.desc);
|
|
5738
5736
|
}, e.createLogoutNotSupportedError = function() {
|
|
5739
|
-
return new e(
|
|
5737
|
+
return new e(R.logoutNotSupported.code, R.logoutNotSupported.desc);
|
|
5740
5738
|
}, e.createKeyIdMissingError = function() {
|
|
5741
|
-
return new e(
|
|
5739
|
+
return new e(R.keyIdMissing.code, R.keyIdMissing.desc);
|
|
5742
5740
|
}, e.createNoNetworkConnectivityError = function() {
|
|
5743
|
-
return new e(
|
|
5741
|
+
return new e(R.noNetworkConnectivity.code, R.noNetworkConnectivity.desc);
|
|
5744
5742
|
}, e.createUserCanceledError = function() {
|
|
5745
|
-
return new e(
|
|
5743
|
+
return new e(R.userCanceledError.code, R.userCanceledError.desc);
|
|
5746
5744
|
}, e;
|
|
5747
5745
|
}(D)
|
|
5748
5746
|
);
|
|
@@ -5809,25 +5807,25 @@ var L = (
|
|
|
5809
5807
|
}()
|
|
5810
5808
|
);
|
|
5811
5809
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
5812
|
-
var
|
|
5810
|
+
var ve;
|
|
5813
5811
|
(function(n) {
|
|
5814
5812
|
n[n.Error = 0] = "Error", n[n.Warning = 1] = "Warning", n[n.Info = 2] = "Info", n[n.Verbose = 3] = "Verbose", n[n.Trace = 4] = "Trace";
|
|
5815
|
-
})(
|
|
5813
|
+
})(ve || (ve = {}));
|
|
5816
5814
|
var er = (
|
|
5817
5815
|
/** @class */
|
|
5818
5816
|
function() {
|
|
5819
5817
|
function n(e, t, r) {
|
|
5820
|
-
this.level =
|
|
5818
|
+
this.level = ve.Info;
|
|
5821
5819
|
var o = function() {
|
|
5822
5820
|
}, i = e || n.createDefaultLoggerOptions();
|
|
5823
|
-
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel :
|
|
5821
|
+
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel : ve.Info, this.correlationId = i.correlationId || g.EMPTY_STRING, this.packageName = t || g.EMPTY_STRING, this.packageVersion = r || g.EMPTY_STRING;
|
|
5824
5822
|
}
|
|
5825
5823
|
return n.createDefaultLoggerOptions = function() {
|
|
5826
5824
|
return {
|
|
5827
5825
|
loggerCallback: function() {
|
|
5828
5826
|
},
|
|
5829
5827
|
piiLoggingEnabled: !1,
|
|
5830
|
-
logLevel:
|
|
5828
|
+
logLevel: ve.Info
|
|
5831
5829
|
};
|
|
5832
5830
|
}, n.prototype.clone = function(e, t, r) {
|
|
5833
5831
|
return new n({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: r || this.correlationId }, e, t);
|
|
@@ -5835,68 +5833,68 @@ var er = (
|
|
|
5835
5833
|
if (!(t.logLevel > this.level || !this.piiLoggingEnabled && t.containsPii)) {
|
|
5836
5834
|
var r = (/* @__PURE__ */ new Date()).toUTCString(), o;
|
|
5837
5835
|
L.isEmpty(t.correlationId) ? L.isEmpty(this.correlationId) ? o = "[" + r + "]" : o = "[" + r + "] : [" + this.correlationId + "]" : o = "[" + r + "] : [" + t.correlationId + "]";
|
|
5838
|
-
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " +
|
|
5836
|
+
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " + ve[t.logLevel] + " - " + e;
|
|
5839
5837
|
this.executeCallback(t.logLevel, i, t.containsPii || !1);
|
|
5840
5838
|
}
|
|
5841
5839
|
}, n.prototype.executeCallback = function(e, t, r) {
|
|
5842
5840
|
this.localCallback && this.localCallback(e, t, r);
|
|
5843
5841
|
}, n.prototype.error = function(e, t) {
|
|
5844
5842
|
this.logMessage(e, {
|
|
5845
|
-
logLevel:
|
|
5843
|
+
logLevel: ve.Error,
|
|
5846
5844
|
containsPii: !1,
|
|
5847
5845
|
correlationId: t || g.EMPTY_STRING
|
|
5848
5846
|
});
|
|
5849
5847
|
}, n.prototype.errorPii = function(e, t) {
|
|
5850
5848
|
this.logMessage(e, {
|
|
5851
|
-
logLevel:
|
|
5849
|
+
logLevel: ve.Error,
|
|
5852
5850
|
containsPii: !0,
|
|
5853
5851
|
correlationId: t || g.EMPTY_STRING
|
|
5854
5852
|
});
|
|
5855
5853
|
}, n.prototype.warning = function(e, t) {
|
|
5856
5854
|
this.logMessage(e, {
|
|
5857
|
-
logLevel:
|
|
5855
|
+
logLevel: ve.Warning,
|
|
5858
5856
|
containsPii: !1,
|
|
5859
5857
|
correlationId: t || g.EMPTY_STRING
|
|
5860
5858
|
});
|
|
5861
5859
|
}, n.prototype.warningPii = function(e, t) {
|
|
5862
5860
|
this.logMessage(e, {
|
|
5863
|
-
logLevel:
|
|
5861
|
+
logLevel: ve.Warning,
|
|
5864
5862
|
containsPii: !0,
|
|
5865
5863
|
correlationId: t || g.EMPTY_STRING
|
|
5866
5864
|
});
|
|
5867
5865
|
}, n.prototype.info = function(e, t) {
|
|
5868
5866
|
this.logMessage(e, {
|
|
5869
|
-
logLevel:
|
|
5867
|
+
logLevel: ve.Info,
|
|
5870
5868
|
containsPii: !1,
|
|
5871
5869
|
correlationId: t || g.EMPTY_STRING
|
|
5872
5870
|
});
|
|
5873
5871
|
}, n.prototype.infoPii = function(e, t) {
|
|
5874
5872
|
this.logMessage(e, {
|
|
5875
|
-
logLevel:
|
|
5873
|
+
logLevel: ve.Info,
|
|
5876
5874
|
containsPii: !0,
|
|
5877
5875
|
correlationId: t || g.EMPTY_STRING
|
|
5878
5876
|
});
|
|
5879
5877
|
}, n.prototype.verbose = function(e, t) {
|
|
5880
5878
|
this.logMessage(e, {
|
|
5881
|
-
logLevel:
|
|
5879
|
+
logLevel: ve.Verbose,
|
|
5882
5880
|
containsPii: !1,
|
|
5883
5881
|
correlationId: t || g.EMPTY_STRING
|
|
5884
5882
|
});
|
|
5885
5883
|
}, n.prototype.verbosePii = function(e, t) {
|
|
5886
5884
|
this.logMessage(e, {
|
|
5887
|
-
logLevel:
|
|
5885
|
+
logLevel: ve.Verbose,
|
|
5888
5886
|
containsPii: !0,
|
|
5889
5887
|
correlationId: t || g.EMPTY_STRING
|
|
5890
5888
|
});
|
|
5891
5889
|
}, n.prototype.trace = function(e, t) {
|
|
5892
5890
|
this.logMessage(e, {
|
|
5893
|
-
logLevel:
|
|
5891
|
+
logLevel: ve.Trace,
|
|
5894
5892
|
containsPii: !1,
|
|
5895
5893
|
correlationId: t || g.EMPTY_STRING
|
|
5896
5894
|
});
|
|
5897
5895
|
}, n.prototype.tracePii = function(e, t) {
|
|
5898
5896
|
this.logMessage(e, {
|
|
5899
|
-
logLevel:
|
|
5897
|
+
logLevel: ve.Trace,
|
|
5900
5898
|
containsPii: !0,
|
|
5901
5899
|
correlationId: t || g.EMPTY_STRING
|
|
5902
5900
|
});
|
|
@@ -6166,7 +6164,7 @@ function vn(n, e) {
|
|
|
6166
6164
|
function Pt(n) {
|
|
6167
6165
|
if (L.isEmpty(n))
|
|
6168
6166
|
throw O.createClientInfoDecodingError("Home account ID was empty.");
|
|
6169
|
-
var e = n.split(
|
|
6167
|
+
var e = n.split(fe.CLIENT_INFO_SEPARATOR, 2);
|
|
6170
6168
|
return {
|
|
6171
6169
|
uid: e[0],
|
|
6172
6170
|
utid: e.length < 2 ? g.EMPTY_STRING : e[1]
|
|
@@ -6185,7 +6183,7 @@ var we = (
|
|
|
6185
6183
|
}
|
|
6186
6184
|
return n.prototype.generateAccountId = function() {
|
|
6187
6185
|
var e = [this.homeAccountId, this.environment];
|
|
6188
|
-
return e.join(
|
|
6186
|
+
return e.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6189
6187
|
}, n.prototype.generateAccountKey = function() {
|
|
6190
6188
|
return n.generateAccountCacheKey({
|
|
6191
6189
|
homeAccountId: this.homeAccountId,
|
|
@@ -6224,19 +6222,19 @@ var we = (
|
|
|
6224
6222
|
e.environment || g.EMPTY_STRING,
|
|
6225
6223
|
e.tenantId || g.EMPTY_STRING
|
|
6226
6224
|
];
|
|
6227
|
-
return t.join(
|
|
6225
|
+
return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6228
6226
|
}, n.createAccount = function(e, t, r, o, i, a, s, u) {
|
|
6229
|
-
var p, d, f, _, k, E,
|
|
6230
|
-
|
|
6227
|
+
var p, d, f, _, k, E, N = new n();
|
|
6228
|
+
N.authorityType = ot.MSSTS_ACCOUNT_TYPE, N.clientInfo = e, N.homeAccountId = t, N.nativeAccountId = u;
|
|
6231
6229
|
var Q = s || o && o.getPreferredCache();
|
|
6232
6230
|
if (!Q)
|
|
6233
6231
|
throw O.createInvalidCacheEnvironmentError();
|
|
6234
|
-
if (
|
|
6235
|
-
|
|
6232
|
+
if (N.environment = Q, N.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || g.EMPTY_STRING, r) {
|
|
6233
|
+
N.idTokenClaims = r.claims, N.localAccountId = ((d = r == null ? void 0 : r.claims) === null || d === void 0 ? void 0 : d.oid) || ((f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.sub) || g.EMPTY_STRING;
|
|
6236
6234
|
var X = (_ = r == null ? void 0 : r.claims) === null || _ === void 0 ? void 0 : _.preferred_username, G = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
|
|
6237
|
-
|
|
6235
|
+
N.username = X || G || g.EMPTY_STRING, N.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
|
|
6238
6236
|
}
|
|
6239
|
-
return
|
|
6237
|
+
return N.cloudGraphHostName = i, N.msGraphHost = a, N;
|
|
6240
6238
|
}, n.createGenericAccount = function(e, t, r, o, i, a) {
|
|
6241
6239
|
var s, u, p, d, f = new n();
|
|
6242
6240
|
f.authorityType = r && r.authorityType === Se.Adfs ? ot.ADFS_ACCOUNT_TYPE : ot.GENERIC_ACCOUNT_TYPE, f.homeAccountId = e, f.realm = g.EMPTY_STRING;
|
|
@@ -6252,7 +6250,7 @@ var we = (
|
|
|
6252
6250
|
try {
|
|
6253
6251
|
var u = vn(e, o);
|
|
6254
6252
|
if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
|
|
6255
|
-
return "" + u.uid +
|
|
6253
|
+
return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
|
|
6256
6254
|
} catch {
|
|
6257
6255
|
}
|
|
6258
6256
|
return r.verbose("No client info in response"), s;
|
|
@@ -6271,7 +6269,7 @@ var we = (
|
|
|
6271
6269
|
}()
|
|
6272
6270
|
);
|
|
6273
6271
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
6274
|
-
var
|
|
6272
|
+
var rt = (
|
|
6275
6273
|
/** @class */
|
|
6276
6274
|
function() {
|
|
6277
6275
|
function n(e, t) {
|
|
@@ -6295,7 +6293,7 @@ var nt = (
|
|
|
6295
6293
|
}()
|
|
6296
6294
|
);
|
|
6297
6295
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
6298
|
-
var
|
|
6296
|
+
var Me = (
|
|
6299
6297
|
/** @class */
|
|
6300
6298
|
function() {
|
|
6301
6299
|
function n(e, t, r) {
|
|
@@ -6320,7 +6318,7 @@ var Ne = (
|
|
|
6320
6318
|
return t.length > 0 ? this.getAccountInfoFromEntity(t[0]) : null;
|
|
6321
6319
|
}, n.prototype.getAccountInfoFromEntity = function(e) {
|
|
6322
6320
|
var t = e.getAccountInfo(), r = this.getIdToken(t);
|
|
6323
|
-
return r && (t.idToken = r.secret, t.idTokenClaims = new
|
|
6321
|
+
return r && (t.idToken = r.secret, t.idTokenClaims = new rt(r.secret, this.cryptoImpl).claims), t;
|
|
6324
6322
|
}, n.prototype.saveCacheRecord = function(e) {
|
|
6325
6323
|
return j(this, void 0, void 0, function() {
|
|
6326
6324
|
return K(this, function(t) {
|
|
@@ -6379,15 +6377,15 @@ var Ne = (
|
|
|
6379
6377
|
}
|
|
6380
6378
|
}), o;
|
|
6381
6379
|
}, n.prototype.isAccountKey = function(e, t, r) {
|
|
6382
|
-
return !(e.split(
|
|
6380
|
+
return !(e.split(fe.CACHE_KEY_SEPARATOR).length < 3 || t && !e.toLowerCase().includes(t.toLowerCase()) || r && !e.toLowerCase().includes(r.toLowerCase()));
|
|
6383
6381
|
}, n.prototype.isCredentialKey = function(e) {
|
|
6384
|
-
if (e.split(
|
|
6382
|
+
if (e.split(fe.CACHE_KEY_SEPARATOR).length < 6)
|
|
6385
6383
|
return !1;
|
|
6386
6384
|
var t = e.toLowerCase();
|
|
6387
6385
|
if (t.indexOf(H.ID_TOKEN.toLowerCase()) === -1 && t.indexOf(H.ACCESS_TOKEN.toLowerCase()) === -1 && t.indexOf(H.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()) === -1 && t.indexOf(H.REFRESH_TOKEN.toLowerCase()) === -1)
|
|
6388
6386
|
return !1;
|
|
6389
6387
|
if (t.indexOf(H.REFRESH_TOKEN.toLowerCase()) > -1) {
|
|
6390
|
-
var r = "" + H.REFRESH_TOKEN +
|
|
6388
|
+
var r = "" + H.REFRESH_TOKEN + fe.CACHE_KEY_SEPARATOR + this.clientId + fe.CACHE_KEY_SEPARATOR, o = "" + H.REFRESH_TOKEN + fe.CACHE_KEY_SEPARATOR + Wt + fe.CACHE_KEY_SEPARATOR;
|
|
6391
6389
|
if (t.indexOf(r.toLowerCase()) === -1 && t.indexOf(o.toLowerCase()) === -1)
|
|
6392
6390
|
return !1;
|
|
6393
6391
|
} else if (t.indexOf(this.clientId.toLowerCase()) === -1)
|
|
@@ -6504,7 +6502,7 @@ var Ne = (
|
|
|
6504
6502
|
}), !0;
|
|
6505
6503
|
}, n.prototype.readCacheRecord = function(e, t, r) {
|
|
6506
6504
|
var o = this.getTokenKeys(), i = this.readAccountFromCache(e), a = this.getIdToken(e, o), s = this.getAccessToken(e, t, o), u = this.getRefreshToken(e, !1, o), p = this.readAppMetadataFromCache(r);
|
|
6507
|
-
return i && a && (i.idTokenClaims = new
|
|
6505
|
+
return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
|
|
6508
6506
|
account: i,
|
|
6509
6507
|
idToken: a,
|
|
6510
6508
|
accessToken: s,
|
|
@@ -6749,7 +6747,7 @@ var Ne = (
|
|
|
6749
6747
|
var t = "Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";
|
|
6750
6748
|
throw D.createUnexpectedError(t);
|
|
6751
6749
|
}, e;
|
|
6752
|
-
}(
|
|
6750
|
+
}(Me)
|
|
6753
6751
|
);
|
|
6754
6752
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
6755
6753
|
var ki = 300, no = {
|
|
@@ -6759,7 +6757,7 @@ var ki = 300, no = {
|
|
|
6759
6757
|
loggerCallback: function() {
|
|
6760
6758
|
},
|
|
6761
6759
|
piiLoggingEnabled: !1,
|
|
6762
|
-
logLevel:
|
|
6760
|
+
logLevel: ve.Info,
|
|
6763
6761
|
correlationId: g.EMPTY_STRING
|
|
6764
6762
|
}, bi = {
|
|
6765
6763
|
claimsBasedCachingEnabled: !0
|
|
@@ -7155,17 +7153,17 @@ var rr = (
|
|
|
7155
7153
|
this.generateClaimsHashForCacheKey(p),
|
|
7156
7154
|
this.generateSchemeForCacheKey(u)
|
|
7157
7155
|
];
|
|
7158
|
-
return d.join(
|
|
7156
|
+
return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7159
7157
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
7160
7158
|
var r = [e, t];
|
|
7161
|
-
return r.join(
|
|
7159
|
+
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7162
7160
|
}, n.generateCredentialIdForCacheKey = function(e, t, r, o) {
|
|
7163
7161
|
var i = e === H.REFRESH_TOKEN && o || t, a = [
|
|
7164
7162
|
e,
|
|
7165
7163
|
i,
|
|
7166
7164
|
r || g.EMPTY_STRING
|
|
7167
7165
|
];
|
|
7168
|
-
return a.join(
|
|
7166
|
+
return a.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7169
7167
|
}, n.generateTargetForCacheKey = function(e) {
|
|
7170
7168
|
return (e || g.EMPTY_STRING).toLowerCase();
|
|
7171
7169
|
}, n.generateClaimsHashForCacheKey = function(e) {
|
|
@@ -7192,7 +7190,7 @@ var gt = (
|
|
|
7192
7190
|
}(rr)
|
|
7193
7191
|
);
|
|
7194
7192
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7195
|
-
var
|
|
7193
|
+
var Ke = (
|
|
7196
7194
|
/** @class */
|
|
7197
7195
|
function() {
|
|
7198
7196
|
function n() {
|
|
@@ -7222,14 +7220,14 @@ var _t = (
|
|
|
7222
7220
|
function e() {
|
|
7223
7221
|
return n !== null && n.apply(this, arguments) || this;
|
|
7224
7222
|
}
|
|
7225
|
-
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E,
|
|
7223
|
+
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, N, Q) {
|
|
7226
7224
|
var X, G, $ = new e();
|
|
7227
7225
|
$.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
|
|
7228
|
-
var Ae =
|
|
7229
|
-
if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _,
|
|
7226
|
+
var Ae = Ke.nowSeconds();
|
|
7227
|
+
if ($.cachedAt = Ae.toString(), $.expiresOn = u.toString(), $.extendedExpiresOn = p.toString(), f && ($.refreshOn = f.toString()), $.environment = r, $.clientId = i, $.realm = a, $.target = s, $.userAssertionHash = k, $.tokenType = L.isEmpty(_) ? te.BEARER : _, N && ($.requestedClaims = N, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
|
|
7230
7228
|
switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
|
|
7231
7229
|
case te.POP:
|
|
7232
|
-
var xe =
|
|
7230
|
+
var xe = rt.extractTokenClaims(o, d);
|
|
7233
7231
|
if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
|
|
7234
7232
|
throw O.createTokenClaimsRequiredError();
|
|
7235
7233
|
$.keyId = xe.cnf.kid;
|
|
@@ -7244,7 +7242,7 @@ var _t = (
|
|
|
7244
7242
|
}(rr)
|
|
7245
7243
|
);
|
|
7246
7244
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7247
|
-
var
|
|
7245
|
+
var Mt = (
|
|
7248
7246
|
/** @class */
|
|
7249
7247
|
function(n) {
|
|
7250
7248
|
Ue(e, n);
|
|
@@ -7264,13 +7262,13 @@ var Ir = [
|
|
|
7264
7262
|
"interaction_required",
|
|
7265
7263
|
"consent_required",
|
|
7266
7264
|
"login_required"
|
|
7267
|
-
],
|
|
7265
|
+
], Mi = [
|
|
7268
7266
|
"message_only",
|
|
7269
7267
|
"additional_action",
|
|
7270
7268
|
"basic_action",
|
|
7271
7269
|
"user_password_expired",
|
|
7272
7270
|
"consent_required"
|
|
7273
|
-
],
|
|
7271
|
+
], Nt = {
|
|
7274
7272
|
noTokensFoundError: {
|
|
7275
7273
|
code: "no_tokens_found",
|
|
7276
7274
|
desc: "No refresh token found in the cache. Please sign-in."
|
|
@@ -7279,7 +7277,7 @@ var Ir = [
|
|
|
7279
7277
|
code: "native_account_unavailable",
|
|
7280
7278
|
desc: "The requested account is not available in the native broker. It may have been deleted or logged out. Please sign-in again using an interactive API."
|
|
7281
7279
|
}
|
|
7282
|
-
},
|
|
7280
|
+
}, Ye = (
|
|
7283
7281
|
/** @class */
|
|
7284
7282
|
function(n) {
|
|
7285
7283
|
Ue(e, n);
|
|
@@ -7288,14 +7286,14 @@ var Ir = [
|
|
|
7288
7286
|
return Object.setPrototypeOf(p, e.prototype), p.timestamp = i || g.EMPTY_STRING, p.traceId = a || g.EMPTY_STRING, p.correlationId = s || g.EMPTY_STRING, p.claims = u || g.EMPTY_STRING, p.name = "InteractionRequiredAuthError", p;
|
|
7289
7287
|
}
|
|
7290
7288
|
return e.isInteractionRequiredError = function(t, r, o) {
|
|
7291
|
-
var i = !!t && Ir.indexOf(t) > -1, a = !!o &&
|
|
7289
|
+
var i = !!t && Ir.indexOf(t) > -1, a = !!o && Mi.indexOf(o) > -1, s = !!r && Ir.some(function(u) {
|
|
7292
7290
|
return r.indexOf(u) > -1;
|
|
7293
7291
|
});
|
|
7294
7292
|
return i || s || a;
|
|
7295
7293
|
}, e.createNoTokensFoundError = function() {
|
|
7296
|
-
return new e(
|
|
7294
|
+
return new e(Nt.noTokensFoundError.code, Nt.noTokensFoundError.desc);
|
|
7297
7295
|
}, e.createNativeAccountUnavailableError = function() {
|
|
7298
|
-
return new e(
|
|
7296
|
+
return new e(Nt.native_account_unavailable.code, Nt.native_account_unavailable.desc);
|
|
7299
7297
|
}, e;
|
|
7300
7298
|
}(D)
|
|
7301
7299
|
);
|
|
@@ -7448,7 +7446,7 @@ var kn;
|
|
|
7448
7446
|
(function(n) {
|
|
7449
7447
|
n[n.NotStarted = 0] = "NotStarted", n[n.InProgress = 1] = "InProgress", n[n.Completed = 2] = "Completed";
|
|
7450
7448
|
})(kn || (kn = {}));
|
|
7451
|
-
var
|
|
7449
|
+
var Ni = /* @__PURE__ */ new Set([
|
|
7452
7450
|
"accessTokenSize",
|
|
7453
7451
|
"durationMs",
|
|
7454
7452
|
"idTokenSize",
|
|
@@ -7516,7 +7514,7 @@ var xt = (
|
|
|
7516
7514
|
return K(this, function(f) {
|
|
7517
7515
|
switch (f.label) {
|
|
7518
7516
|
case 0:
|
|
7519
|
-
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new W(a) : void 0, d = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(ee({ at: e, ts:
|
|
7517
|
+
return i = r.resourceRequestMethod, a = r.resourceRequestUri, s = r.shrClaims, u = r.shrNonce, p = a ? new W(a) : void 0, d = p == null ? void 0 : p.getUrlComponents(), [4, this.cryptoUtils.signJwt(ee({ at: e, ts: Ke.nowSeconds(), m: i == null ? void 0 : i.toUpperCase(), u: d == null ? void 0 : d.HostNameAndPort, nonce: u || this.cryptoUtils.createNewGuid(), p: d == null ? void 0 : d.AbsolutePath, q: d != null && d.QueryString ? [[], d.QueryString] : void 0, client_claims: s || void 0 }, o), t, r.correlationId)];
|
|
7520
7518
|
case 1:
|
|
7521
7519
|
return [2, f.sent()];
|
|
7522
7520
|
}
|
|
@@ -7539,7 +7537,7 @@ var Vn = (
|
|
|
7539
7537
|
e,
|
|
7540
7538
|
t
|
|
7541
7539
|
];
|
|
7542
|
-
return r.join(
|
|
7540
|
+
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7543
7541
|
}, n.createAppMetadataEntity = function(e, t, r) {
|
|
7544
7542
|
var o = new n();
|
|
7545
7543
|
return o.clientId = e, o.environment = t, r && (o.familyId = r), o;
|
|
@@ -7589,34 +7587,34 @@ var wn = (
|
|
|
7589
7587
|
if (decodeURIComponent(e.state) !== decodeURIComponent(t))
|
|
7590
7588
|
throw O.createStateMismatchError();
|
|
7591
7589
|
if (e.error || e.error_description || e.suberror)
|
|
7592
|
-
throw
|
|
7590
|
+
throw Ye.isInteractionRequiredError(e.error, e.error_description, e.suberror) ? new Ye(e.error || g.EMPTY_STRING, e.error_description, e.suberror, e.timestamp || g.EMPTY_STRING, e.trace_id || g.EMPTY_STRING, e.correlation_id || g.EMPTY_STRING, e.claims || g.EMPTY_STRING) : new bt(e.error || g.EMPTY_STRING, e.error_description, e.suberror);
|
|
7593
7591
|
e.client_info && vn(e.client_info, r);
|
|
7594
7592
|
}, n.prototype.validateTokenResponse = function(e) {
|
|
7595
7593
|
if (e.error || e.error_description || e.suberror) {
|
|
7596
|
-
if (
|
|
7597
|
-
throw new
|
|
7594
|
+
if (Ye.isInteractionRequiredError(e.error, e.error_description, e.suberror))
|
|
7595
|
+
throw new Ye(e.error, e.error_description, e.suberror, e.timestamp || g.EMPTY_STRING, e.trace_id || g.EMPTY_STRING, e.correlation_id || g.EMPTY_STRING, e.claims || g.EMPTY_STRING);
|
|
7598
7596
|
var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
|
|
7599
7597
|
throw new bt(e.error, t, e.suberror);
|
|
7600
7598
|
}
|
|
7601
7599
|
}, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
|
|
7602
7600
|
var d;
|
|
7603
7601
|
return j(this, void 0, void 0, function() {
|
|
7604
|
-
var f, _, k, E,
|
|
7602
|
+
var f, _, k, E, N, Q, X;
|
|
7605
7603
|
return K(this, function(G) {
|
|
7606
7604
|
switch (G.label) {
|
|
7607
7605
|
case 0:
|
|
7608
7606
|
if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
7609
|
-
if (f = new
|
|
7607
|
+
if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
|
|
7610
7608
|
throw O.createNonceMismatchError();
|
|
7611
7609
|
if (o.maxAge || o.maxAge === 0) {
|
|
7612
7610
|
if (_ = f.claims.auth_time, !_)
|
|
7613
7611
|
throw O.createAuthTimeNotFoundError();
|
|
7614
|
-
|
|
7612
|
+
rt.checkMaxAge(_, o.maxAge);
|
|
7615
7613
|
}
|
|
7616
7614
|
}
|
|
7617
7615
|
this.homeAccountIdentifier = we.generateHomeAccountId(e.client_info || g.EMPTY_STRING, t.authorityType, this.logger, this.cryptoObj, f), i && i.state && (k = st.parseRequestState(this.cryptoObj, i.state)), e.key_id = e.key_id || o.sshKid || void 0, E = this.generateCacheRecord(e, t, r, o, f, a, i), G.label = 1;
|
|
7618
7616
|
case 1:
|
|
7619
|
-
return G.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),
|
|
7617
|
+
return G.trys.push([1, , 5, 8]), this.persistencePlugin && this.serializableCache ? (this.logger.verbose("Persistence enabled, calling beforeCacheAccess"), N = new Li(this.serializableCache, !0), [4, this.persistencePlugin.beforeCacheAccess(N)]) : [3, 3];
|
|
7620
7618
|
case 2:
|
|
7621
7619
|
G.sent(), G.label = 3;
|
|
7622
7620
|
case 3:
|
|
@@ -7624,7 +7622,7 @@ var wn = (
|
|
|
7624
7622
|
case 4:
|
|
7625
7623
|
return G.sent(), [3, 8];
|
|
7626
7624
|
case 5:
|
|
7627
|
-
return this.persistencePlugin && this.serializableCache &&
|
|
7625
|
+
return this.persistencePlugin && this.serializableCache && N ? (this.logger.verbose("Persistence enabled, calling afterCacheAccess"), [4, this.persistencePlugin.afterCacheAccess(N)]) : [3, 7];
|
|
7628
7626
|
case 6:
|
|
7629
7627
|
G.sent(), G.label = 7;
|
|
7630
7628
|
case 7:
|
|
@@ -7645,11 +7643,11 @@ var wn = (
|
|
|
7645
7643
|
!L.isEmpty(e.id_token) && i && (p = gt.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || g.EMPTY_STRING, this.clientId, i.claims.tid || g.EMPTY_STRING), d = this.generateAccountEntity(e, i, t, s));
|
|
7646
7644
|
var f = null;
|
|
7647
7645
|
if (!L.isEmpty(e.access_token)) {
|
|
7648
|
-
var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0,
|
|
7646
|
+
var _ = e.scope ? Ee.fromString(e.scope) : new Ee(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, N = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, Q = r + k, X = Q + E, G = N && N > 0 ? r + N : void 0;
|
|
7649
7647
|
f = _t.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || g.EMPTY_STRING, this.clientId, i ? i.claims.tid || g.EMPTY_STRING : t.tenant, _.printScopes(), Q, X, this.cryptoObj, G, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
|
|
7650
7648
|
}
|
|
7651
7649
|
var $ = null;
|
|
7652
|
-
L.isEmpty(e.refresh_token) || ($ =
|
|
7650
|
+
L.isEmpty(e.refresh_token) || ($ = Mt.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || g.EMPTY_STRING, this.clientId, e.foci, a));
|
|
7653
7651
|
var Ae = null;
|
|
7654
7652
|
return L.isEmpty(e.foci) || (Ae = Vn.createAppMetadataEntity(this.clientId, u, e.foci)), new en(d, p, f, $, Ae);
|
|
7655
7653
|
}, n.prototype.generateAccountEntity = function(e, t, r, o) {
|
|
@@ -7662,11 +7660,11 @@ var wn = (
|
|
|
7662
7660
|
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
|
|
7663
7661
|
var d, f, _;
|
|
7664
7662
|
return j(this, void 0, void 0, function() {
|
|
7665
|
-
var k, E,
|
|
7663
|
+
var k, E, N, Q, X, G, $, Ae, xe, Ve, Ct;
|
|
7666
7664
|
return K(this, function(ce) {
|
|
7667
7665
|
switch (ce.label) {
|
|
7668
7666
|
case 0:
|
|
7669
|
-
if (k = g.EMPTY_STRING, E = [],
|
|
7667
|
+
if (k = g.EMPTY_STRING, E = [], N = null, X = g.EMPTY_STRING, !r.accessToken)
|
|
7670
7668
|
return [3, 4];
|
|
7671
7669
|
if (r.accessToken.tokenType !== te.POP)
|
|
7672
7670
|
return [3, 2];
|
|
@@ -7678,11 +7676,11 @@ var wn = (
|
|
|
7678
7676
|
case 2:
|
|
7679
7677
|
k = r.accessToken.secret, ce.label = 3;
|
|
7680
7678
|
case 3:
|
|
7681
|
-
E = Ee.fromString(r.accessToken.target).asArray(),
|
|
7679
|
+
E = Ee.fromString(r.accessToken.target).asArray(), N = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
|
|
7682
7680
|
case 4:
|
|
7683
|
-
return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING),
|
|
7681
|
+
return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING), Ve = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || g.EMPTY_STRING, Ct = (a == null ? void 0 : a.claims.tid) || g.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
|
|
7684
7682
|
authority: t.canonicalAuthority,
|
|
7685
|
-
uniqueId:
|
|
7683
|
+
uniqueId: Ve,
|
|
7686
7684
|
tenantId: Ct,
|
|
7687
7685
|
scopes: E,
|
|
7688
7686
|
account: r.account ? r.account.getAccountInfo() : null,
|
|
@@ -7690,7 +7688,7 @@ var wn = (
|
|
|
7690
7688
|
idTokenClaims: a ? a.claims : {},
|
|
7691
7689
|
accessToken: k,
|
|
7692
7690
|
fromCache: o,
|
|
7693
|
-
expiresOn:
|
|
7691
|
+
expiresOn: N,
|
|
7694
7692
|
correlationId: i.correlationId,
|
|
7695
7693
|
requestId: p || g.EMPTY_STRING,
|
|
7696
7694
|
extExpiresOn: Q,
|
|
@@ -7733,17 +7731,17 @@ var ro = (
|
|
|
7733
7731
|
}, e.prototype.acquireToken = function(t, r) {
|
|
7734
7732
|
var o, i, a, s, u, p;
|
|
7735
7733
|
return j(this, void 0, void 0, function() {
|
|
7736
|
-
var d, f, _, k, E,
|
|
7734
|
+
var d, f, _, k, E, N, Q = this;
|
|
7737
7735
|
return K(this, function(X) {
|
|
7738
7736
|
switch (X.label) {
|
|
7739
7737
|
case 0:
|
|
7740
7738
|
if (!t || !t.code)
|
|
7741
7739
|
throw O.createTokenRequestCannotBeMadeError();
|
|
7742
|
-
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), d = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f =
|
|
7740
|
+
return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.AuthClientAcquireToken, t.correlationId), d = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), f = Ke.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(b.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
|
|
7743
7741
|
case 1:
|
|
7744
7742
|
return _ = X.sent(), k = (s = _.headers) === null || s === void 0 ? void 0 : s[De.X_MS_REQUEST_ID], E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_HTTP_VERSION], E && (d == null || d.addStaticFields({
|
|
7745
7743
|
httpVerAuthority: E
|
|
7746
|
-
})),
|
|
7744
|
+
})), N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, r, void 0, void 0, void 0, k).then(function(G) {
|
|
7747
7745
|
return d == null || d.endMeasurement({
|
|
7748
7746
|
success: !0
|
|
7749
7747
|
}), G;
|
|
@@ -7782,7 +7780,7 @@ var ro = (
|
|
|
7782
7780
|
if (u = k.sent(), p = void 0, r.clientInfo)
|
|
7783
7781
|
try {
|
|
7784
7782
|
d = vn(r.clientInfo, this.cryptoUtils), p = {
|
|
7785
|
-
credential: "" + d.uid +
|
|
7783
|
+
credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
|
|
7786
7784
|
type: Be.HOME_ACCOUNT_ID
|
|
7787
7785
|
};
|
|
7788
7786
|
} catch (E) {
|
|
@@ -7823,7 +7821,7 @@ var ro = (
|
|
|
7823
7821
|
if (p = t.correlationId || this.config.cryptoInterface.createNewGuid(), i.addCorrelationId(p), (!L.isEmptyObj(t.claims) || this.config.authOptions.clientCapabilities && this.config.authOptions.clientCapabilities.length > 0) && i.addClaims(t.claims, this.config.authOptions.clientCapabilities), d = void 0, t.clientInfo)
|
|
7824
7822
|
try {
|
|
7825
7823
|
f = vn(t.clientInfo, this.cryptoUtils), d = {
|
|
7826
|
-
credential: "" + f.uid +
|
|
7824
|
+
credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
|
|
7827
7825
|
type: Be.HOME_ACCOUNT_ID
|
|
7828
7826
|
};
|
|
7829
7827
|
} catch (E) {
|
|
@@ -7918,17 +7916,17 @@ var oo = (
|
|
|
7918
7916
|
return e.prototype.acquireToken = function(t) {
|
|
7919
7917
|
var r, o, i, a, s, u, p;
|
|
7920
7918
|
return j(this, void 0, void 0, function() {
|
|
7921
|
-
var d, f, _, k, E,
|
|
7919
|
+
var d, f, _, k, E, N, Q = this;
|
|
7922
7920
|
return K(this, function(X) {
|
|
7923
7921
|
switch (X.label) {
|
|
7924
7922
|
case 0:
|
|
7925
|
-
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), d = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f =
|
|
7923
|
+
return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), d = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), f = Ke.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
|
|
7926
7924
|
case 1:
|
|
7927
7925
|
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
|
|
7928
7926
|
refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
7929
7927
|
}), k && (d == null || d.addStaticFields({
|
|
7930
7928
|
httpVerToken: k
|
|
7931
|
-
})), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID],
|
|
7929
|
+
})), E = (u = _.headers) === null || u === void 0 ? void 0 : u[De.X_MS_REQUEST_ID], N = new wn(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin), N.validateTokenResponse(_.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(b.HandleServerTokenResponse, t.correlationId), [2, N.handleServerTokenResponse(_.body, this.authority, f, t, void 0, void 0, !0, t.forceCache, E).then(function(G) {
|
|
7932
7930
|
return d == null || d.endMeasurement({
|
|
7933
7931
|
success: !0
|
|
7934
7932
|
}), G;
|
|
@@ -7955,7 +7953,7 @@ var oo = (
|
|
|
7955
7953
|
try {
|
|
7956
7954
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
7957
7955
|
} catch (f) {
|
|
7958
|
-
if (u = f instanceof
|
|
7956
|
+
if (u = f instanceof Ye && f.errorCode === Nt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
|
|
7959
7957
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
7960
7958
|
throw f;
|
|
7961
7959
|
}
|
|
@@ -7968,7 +7966,7 @@ var oo = (
|
|
|
7968
7966
|
var s, u, p;
|
|
7969
7967
|
return K(this, function(d) {
|
|
7970
7968
|
if ((o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), s = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called", t.correlationId), u = this.cacheManager.getRefreshToken(t.account, r), !u)
|
|
7971
|
-
throw s == null || s.discardMeasurement(),
|
|
7969
|
+
throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
|
|
7972
7970
|
return s == null || s.endMeasurement({
|
|
7973
7971
|
success: !0
|
|
7974
7972
|
}), p = ee(ee({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
|
|
@@ -8068,7 +8066,7 @@ var Oi = (
|
|
|
8068
8066
|
case 1:
|
|
8069
8067
|
return [2, i.sent()];
|
|
8070
8068
|
case 2:
|
|
8071
|
-
if (r = i.sent(), r instanceof O && r.errorCode ===
|
|
8069
|
+
if (r = i.sent(), r instanceof O && r.errorCode === R.tokenRefreshRequired.code)
|
|
8072
8070
|
return o = new oo(this.config, this.performanceClient), [2, o.acquireTokenByRefreshToken(t)];
|
|
8073
8071
|
throw r;
|
|
8074
8072
|
case 3:
|
|
@@ -8095,9 +8093,9 @@ var Oi = (
|
|
|
8095
8093
|
if (!t.account)
|
|
8096
8094
|
throw O.createNoAccountInSilentRequestError();
|
|
8097
8095
|
if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
|
|
8098
|
-
if (
|
|
8096
|
+
if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
|
|
8099
8097
|
throw (a = this.serverTelemetryManager) === null || a === void 0 || a.setCacheOutcome(ht.CACHED_ACCESS_TOKEN_EXPIRED), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within " + this.config.systemOptions.tokenRenewalOffsetSeconds + " seconds."), O.createRefreshRequiredError();
|
|
8100
|
-
if (p.accessToken.refreshOn &&
|
|
8098
|
+
if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
|
|
8101
8099
|
throw (s = this.serverTelemetryManager) === null || s === void 0 || s.setCacheOutcome(ht.REFRESH_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."), O.createRefreshRequiredError();
|
|
8102
8100
|
} else
|
|
8103
8101
|
throw (i = this.serverTelemetryManager) === null || i === void 0 || i.setCacheOutcome(ht.NO_CACHED_ACCESS_TOKEN), this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."), O.createRefreshRequiredError();
|
|
@@ -8113,10 +8111,10 @@ var Oi = (
|
|
|
8113
8111
|
return K(this, function(a) {
|
|
8114
8112
|
switch (a.label) {
|
|
8115
8113
|
case 0:
|
|
8116
|
-
if (t.idToken && (o = new
|
|
8114
|
+
if (t.idToken && (o = new rt(t.idToken.secret, this.config.cryptoInterface)), r.maxAge || r.maxAge === 0) {
|
|
8117
8115
|
if (i = o == null ? void 0 : o.claims.auth_time, !i)
|
|
8118
8116
|
throw O.createAuthTimeNotFoundError();
|
|
8119
|
-
|
|
8117
|
+
rt.checkMaxAge(i, r.maxAge);
|
|
8120
8118
|
}
|
|
8121
8119
|
return [4, wn.generateAuthenticationResult(this.cryptoUtils, this.authority, t, !0, r, o)];
|
|
8122
8120
|
case 1:
|
|
@@ -8143,7 +8141,7 @@ var Qn = (
|
|
|
8143
8141
|
/** @class */
|
|
8144
8142
|
function() {
|
|
8145
8143
|
function n() {
|
|
8146
|
-
this.expiresAt =
|
|
8144
|
+
this.expiresAt = Ke.nowSeconds() + $t.REFRESH_TIME_SECONDS;
|
|
8147
8145
|
}
|
|
8148
8146
|
return n.prototype.updateCloudDiscoveryMetadata = function(e, t) {
|
|
8149
8147
|
this.aliases = e.aliases, this.preferred_cache = e.preferred_cache, this.preferred_network = e.preferred_network, this.aliasesFromNetwork = t;
|
|
@@ -8152,9 +8150,9 @@ var Qn = (
|
|
|
8152
8150
|
}, n.prototype.updateCanonicalAuthority = function(e) {
|
|
8153
8151
|
this.canonical_authority = e;
|
|
8154
8152
|
}, n.prototype.resetExpiresAt = function() {
|
|
8155
|
-
this.expiresAt =
|
|
8153
|
+
this.expiresAt = Ke.nowSeconds() + $t.REFRESH_TIME_SECONDS;
|
|
8156
8154
|
}, n.prototype.isExpired = function() {
|
|
8157
|
-
return this.expiresAt <=
|
|
8155
|
+
return this.expiresAt <= Ke.nowSeconds();
|
|
8158
8156
|
}, n.isAuthorityMetadataEntity = function(e, t) {
|
|
8159
8157
|
return t ? e.indexOf($t.CACHE_KEY) === 0 && t.hasOwnProperty("aliases") && t.hasOwnProperty("preferred_cache") && t.hasOwnProperty("preferred_network") && t.hasOwnProperty("canonical_authority") && t.hasOwnProperty("authorization_endpoint") && t.hasOwnProperty("token_endpoint") && t.hasOwnProperty("issuer") && t.hasOwnProperty("aliasesFromNetwork") && t.hasOwnProperty("endpointsFromNetwork") && t.hasOwnProperty("expiresAt") && t.hasOwnProperty("jwks_uri") : !1;
|
|
8160
8158
|
}, n;
|
|
@@ -8430,7 +8428,7 @@ var on = (
|
|
|
8430
8428
|
case 1:
|
|
8431
8429
|
return i = u.sent(), this.canonicalAuthority = this.canonicalAuthority.replace(this.hostnameAndPort, o.preferred_network), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityUpdateEndpointMetadata, this.correlationId), [4, this.updateEndpointMetadata(o)];
|
|
8432
8430
|
case 2:
|
|
8433
|
-
return a = u.sent(), i !==
|
|
8431
|
+
return a = u.sent(), i !== Fe.CACHE && a !== Fe.CACHE && (o.resetExpiresAt(), o.updateCanonicalAuthority(this.canonicalAuthority)), s = this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache), this.cacheManager.setAuthorityMetadata(s, o), this.metadata = o, [
|
|
8434
8432
|
2
|
|
8435
8433
|
/*return*/
|
|
8436
8434
|
];
|
|
@@ -8444,19 +8442,19 @@ var on = (
|
|
|
8444
8442
|
return K(this, function(d) {
|
|
8445
8443
|
switch (d.label) {
|
|
8446
8444
|
case 0:
|
|
8447
|
-
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2,
|
|
8445
|
+
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateEndpointMetadata, this.correlationId), u = this.getEndpointMetadataFromConfig(), u ? (e.updateEndpointMetadata(u, !1), [2, Fe.CONFIG]) : this.isAuthoritySameType(e) && e.endpointsFromNetwork && !e.isExpired() ? [2, Fe.CACHE] : ((r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetEndpointMetadataFromNetwork, this.correlationId), [4, this.getEndpointMetadataFromNetwork()]);
|
|
8448
8446
|
case 1:
|
|
8449
8447
|
return u = d.sent(), u ? !((o = this.authorityOptions.azureRegionConfiguration) === null || o === void 0) && o.azureRegion ? ((i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(u)]) : [3, 3] : [3, 4];
|
|
8450
8448
|
case 2:
|
|
8451
8449
|
u = d.sent(), d.label = 3;
|
|
8452
8450
|
case 3:
|
|
8453
|
-
return e.updateEndpointMetadata(u, !0), [2,
|
|
8451
|
+
return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
|
|
8454
8452
|
case 4:
|
|
8455
8453
|
return p = this.getEndpointMetadataFromHardcodedValues(), p && !this.authorityOptions.skipAuthorityMetadataCache ? !((a = this.authorityOptions.azureRegionConfiguration) === null || a === void 0) && a.azureRegion ? ((s = this.performanceClient) === null || s === void 0 || s.setPreQueueTime(b.AuthorityUpdateMetadataWithRegionalInformation, this.correlationId), [4, this.updateMetadataWithRegionalInformation(p)]) : [3, 6] : [3, 7];
|
|
8456
8454
|
case 5:
|
|
8457
8455
|
p = d.sent(), d.label = 6;
|
|
8458
8456
|
case 6:
|
|
8459
|
-
return e.updateEndpointMetadata(p, !1), [2,
|
|
8457
|
+
return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
|
|
8460
8458
|
case 7:
|
|
8461
8459
|
throw O.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);
|
|
8462
8460
|
}
|
|
@@ -8521,12 +8519,12 @@ var on = (
|
|
|
8521
8519
|
return K(this, function(s) {
|
|
8522
8520
|
switch (s.label) {
|
|
8523
8521
|
case 0:
|
|
8524
|
-
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), this.logger.verbose("Attempting to get cloud discovery metadata in the config"), this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || g.NOT_APPLICABLE)), this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || g.NOT_APPLICABLE)), this.logger.verbosePii("Canonical Authority: " + (e.canonical_authority || g.NOT_APPLICABLE)), o = this.getCloudDiscoveryMetadataFromConfig(), o ? (this.logger.verbose("Found cloud discovery metadata in the config."), e.updateCloudDiscoveryMetadata(o, !1), [2,
|
|
8522
|
+
return (t = this.performanceClient) === null || t === void 0 || t.addQueueMeasurement(b.AuthorityUpdateCloudDiscoveryMetadata, this.correlationId), this.logger.verbose("Attempting to get cloud discovery metadata in the config"), this.logger.verbosePii("Known Authorities: " + (this.authorityOptions.knownAuthorities || g.NOT_APPLICABLE)), this.logger.verbosePii("Authority Metadata: " + (this.authorityOptions.authorityMetadata || g.NOT_APPLICABLE)), this.logger.verbosePii("Canonical Authority: " + (e.canonical_authority || g.NOT_APPLICABLE)), o = this.getCloudDiscoveryMetadataFromConfig(), o ? (this.logger.verbose("Found cloud discovery metadata in the config."), e.updateCloudDiscoveryMetadata(o, !1), [2, Fe.CONFIG]) : (this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."), i = e.isExpired(), this.isAuthoritySameType(e) && e.aliasesFromNetwork && !i ? (this.logger.verbose("Found metadata in the cache."), [2, Fe.CACHE]) : (i && this.logger.verbose("The metadata entity is expired."), this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."), (r = this.performanceClient) === null || r === void 0 || r.setPreQueueTime(b.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId), [4, this.getCloudDiscoveryMetadataFromNetwork()]));
|
|
8525
8523
|
case 1:
|
|
8526
8524
|
if (o = s.sent(), o)
|
|
8527
|
-
return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"), e.updateCloudDiscoveryMetadata(o, !0), [2,
|
|
8525
|
+
return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"), e.updateCloudDiscoveryMetadata(o, !0), [2, Fe.NETWORK];
|
|
8528
8526
|
if (this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."), a = this.getCloudDiscoveryMetadataFromHarcodedValues(), a && !this.options.skipAuthorityMetadataCache)
|
|
8529
|
-
return this.logger.verbose("Found cloud discovery metadata from hardcoded values."), e.updateCloudDiscoveryMetadata(a, !1), [2,
|
|
8527
|
+
return this.logger.verbose("Found cloud discovery metadata from hardcoded values."), e.updateCloudDiscoveryMetadata(a, !1), [2, Fe.HARDCODED_VALUES];
|
|
8530
8528
|
throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."), ie.createUntrustedAuthorityError();
|
|
8531
8529
|
}
|
|
8532
8530
|
});
|
|
@@ -8680,7 +8678,7 @@ var Cn = (
|
|
|
8680
8678
|
this.failedRequests = [], this.errors = [], this.cacheHits = 0;
|
|
8681
8679
|
}
|
|
8682
8680
|
return n.isServerTelemetryEntity = function(e, t) {
|
|
8683
|
-
var r = e.indexOf(
|
|
8681
|
+
var r = e.indexOf(ye.CACHE_KEY) === 0, o = !0;
|
|
8684
8682
|
return t && (o = t.hasOwnProperty("failedRequests") && t.hasOwnProperty("errors") && t.hasOwnProperty("cacheHits")), r && o;
|
|
8685
8683
|
}, n;
|
|
8686
8684
|
}()
|
|
@@ -8762,17 +8760,17 @@ var qi = (
|
|
|
8762
8760
|
/** @class */
|
|
8763
8761
|
function() {
|
|
8764
8762
|
function n(e, t) {
|
|
8765
|
-
this.cacheOutcome = ht.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || g.EMPTY_STRING, this.wrapperVer = e.wrapperVer || g.EMPTY_STRING, this.telemetryCacheKey =
|
|
8763
|
+
this.cacheOutcome = ht.NO_CACHE_HIT, this.cacheManager = t, this.apiId = e.apiId, this.correlationId = e.correlationId, this.wrapperSKU = e.wrapperSKU || g.EMPTY_STRING, this.wrapperVer = e.wrapperVer || g.EMPTY_STRING, this.telemetryCacheKey = ye.CACHE_KEY + fe.CACHE_KEY_SEPARATOR + e.clientId;
|
|
8766
8764
|
}
|
|
8767
8765
|
return n.prototype.generateCurrentRequestHeaderValue = function() {
|
|
8768
|
-
var e = "" + this.apiId +
|
|
8769
|
-
return [
|
|
8766
|
+
var e = "" + this.apiId + ye.VALUE_SEPARATOR + this.cacheOutcome, t = [this.wrapperSKU, this.wrapperVer].join(ye.VALUE_SEPARATOR), r = this.getRegionDiscoveryFields(), o = [e, r].join(ye.VALUE_SEPARATOR);
|
|
8767
|
+
return [ye.SCHEMA_VERSION, o, t].join(ye.CATEGORY_SEPARATOR);
|
|
8770
8768
|
}, n.prototype.generateLastRequestHeaderValue = function() {
|
|
8771
|
-
var e = this.getLastRequests(), t = n.maxErrorsToSend(e), r = e.failedRequests.slice(0, 2 * t).join(
|
|
8772
|
-
return [
|
|
8769
|
+
var e = this.getLastRequests(), t = n.maxErrorsToSend(e), r = e.failedRequests.slice(0, 2 * t).join(ye.VALUE_SEPARATOR), o = e.errors.slice(0, t).join(ye.VALUE_SEPARATOR), i = e.errors.length, a = t < i ? ye.OVERFLOW_TRUE : ye.OVERFLOW_FALSE, s = [i, a].join(ye.VALUE_SEPARATOR);
|
|
8770
|
+
return [ye.SCHEMA_VERSION, e.cacheHits, r, o, s].join(ye.CATEGORY_SEPARATOR);
|
|
8773
8771
|
}, n.prototype.cacheFailedRequest = function(e) {
|
|
8774
8772
|
var t = this.getLastRequests();
|
|
8775
|
-
t.errors.length >=
|
|
8773
|
+
t.errors.length >= ye.MAX_CACHED_ERRORS && (t.failedRequests.shift(), t.failedRequests.shift(), t.errors.shift()), t.failedRequests.push(this.apiId, this.correlationId), L.isEmpty(e.subError) ? L.isEmpty(e.errorCode) ? e && e.toString() ? t.errors.push(e.toString()) : t.errors.push(ye.UNKNOWN_ERROR) : t.errors.push(e.errorCode) : t.errors.push(e.subError), this.cacheManager.setServerTelemetry(this.telemetryCacheKey, t);
|
|
8776
8774
|
}, n.prototype.incrementCacheHits = function() {
|
|
8777
8775
|
var e = this.getLastRequests();
|
|
8778
8776
|
return e.cacheHits += 1, this.cacheManager.setServerTelemetry(this.telemetryCacheKey, e), e.cacheHits;
|
|
@@ -8791,7 +8789,7 @@ var qi = (
|
|
|
8791
8789
|
var t, r = 0, o = 0, i = e.errors.length;
|
|
8792
8790
|
for (t = 0; t < i; t++) {
|
|
8793
8791
|
var a = e.failedRequests[2 * t] || g.EMPTY_STRING, s = e.failedRequests[2 * t + 1] || g.EMPTY_STRING, u = e.errors[t] || g.EMPTY_STRING;
|
|
8794
|
-
if (o += a.toString().length + s.toString().length + u.length + 3, o <
|
|
8792
|
+
if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
|
|
8795
8793
|
r += 1;
|
|
8796
8794
|
else
|
|
8797
8795
|
break;
|
|
@@ -8819,7 +8817,7 @@ var ao = (
|
|
|
8819
8817
|
}, n.prototype.startPerformanceMeasuremeant = function(e, t) {
|
|
8820
8818
|
return {};
|
|
8821
8819
|
}, n.prototype.getIntFields = function() {
|
|
8822
|
-
return
|
|
8820
|
+
return Ni;
|
|
8823
8821
|
}, n.prototype.getPreQueueTime = function(e, t) {
|
|
8824
8822
|
var r = this.preQueueTimeByCorrelationId.get(t);
|
|
8825
8823
|
if (r) {
|
|
@@ -8956,7 +8954,7 @@ var ao = (
|
|
|
8956
8954
|
}()
|
|
8957
8955
|
);
|
|
8958
8956
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
8959
|
-
var
|
|
8957
|
+
var Mr = (
|
|
8960
8958
|
/** @class */
|
|
8961
8959
|
function() {
|
|
8962
8960
|
function n() {
|
|
@@ -8977,9 +8975,9 @@ var Nr = (
|
|
|
8977
8975
|
return e.prototype.generateId = function() {
|
|
8978
8976
|
return "callback-id";
|
|
8979
8977
|
}, e.prototype.startPerformanceMeasuremeant = function() {
|
|
8980
|
-
return new
|
|
8978
|
+
return new Mr();
|
|
8981
8979
|
}, e.prototype.startPerformanceMeasurement = function() {
|
|
8982
|
-
return new
|
|
8980
|
+
return new Mr();
|
|
8983
8981
|
}, e.prototype.calculateQueuedTime = function(t, r) {
|
|
8984
8982
|
return 0;
|
|
8985
8983
|
}, e.prototype.addQueueMeasurement = function(t, r, o) {
|
|
@@ -8988,7 +8986,7 @@ var Nr = (
|
|
|
8988
8986
|
}(ao)
|
|
8989
8987
|
);
|
|
8990
8988
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
8991
|
-
var
|
|
8989
|
+
var A = {
|
|
8992
8990
|
pkceNotGenerated: {
|
|
8993
8991
|
code: "pkce_not_created",
|
|
8994
8992
|
desc: "The PKCE code challenge and verifier could not be generated."
|
|
@@ -9169,7 +9167,7 @@ var S = {
|
|
|
9169
9167
|
code: "native_prompt_not_supported",
|
|
9170
9168
|
desc: "The provided prompt is not supported by the native platform. This request should be routed to the web based flow."
|
|
9171
9169
|
}
|
|
9172
|
-
},
|
|
9170
|
+
}, M = (
|
|
9173
9171
|
/** @class */
|
|
9174
9172
|
function(n) {
|
|
9175
9173
|
be(e, n);
|
|
@@ -9178,101 +9176,101 @@ var S = {
|
|
|
9178
9176
|
return Object.setPrototypeOf(o, e.prototype), o.name = "BrowserAuthError", o;
|
|
9179
9177
|
}
|
|
9180
9178
|
return e.createPkceNotGeneratedError = function(t) {
|
|
9181
|
-
return new e(
|
|
9179
|
+
return new e(A.pkceNotGenerated.code, A.pkceNotGenerated.desc + " Detail:" + t);
|
|
9182
9180
|
}, e.createCryptoNotAvailableError = function(t) {
|
|
9183
|
-
return new e(
|
|
9181
|
+
return new e(A.cryptoDoesNotExist.code, A.cryptoDoesNotExist.desc + " Detail:" + t);
|
|
9184
9182
|
}, e.createHttpMethodNotImplementedError = function(t) {
|
|
9185
|
-
return new e(
|
|
9183
|
+
return new e(A.httpMethodNotImplementedError.code, A.httpMethodNotImplementedError.desc + " Given Method: " + t);
|
|
9186
9184
|
}, e.createEmptyNavigationUriError = function() {
|
|
9187
|
-
return new e(
|
|
9185
|
+
return new e(A.emptyNavigateUriError.code, A.emptyNavigateUriError.desc);
|
|
9188
9186
|
}, e.createEmptyHashError = function(t) {
|
|
9189
|
-
return new e(
|
|
9187
|
+
return new e(A.hashEmptyError.code, A.hashEmptyError.desc + " Given Url: " + t);
|
|
9190
9188
|
}, e.createHashDoesNotContainStateError = function() {
|
|
9191
|
-
return new e(
|
|
9189
|
+
return new e(A.hashDoesNotContainStateError.code, A.hashDoesNotContainStateError.desc);
|
|
9192
9190
|
}, e.createHashDoesNotContainKnownPropertiesError = function() {
|
|
9193
|
-
return new e(
|
|
9191
|
+
return new e(A.hashDoesNotContainKnownPropertiesError.code, A.hashDoesNotContainKnownPropertiesError.desc);
|
|
9194
9192
|
}, e.createUnableToParseStateError = function() {
|
|
9195
|
-
return new e(
|
|
9193
|
+
return new e(A.unableToParseStateError.code, A.unableToParseStateError.desc);
|
|
9196
9194
|
}, e.createStateInteractionTypeMismatchError = function() {
|
|
9197
|
-
return new e(
|
|
9195
|
+
return new e(A.stateInteractionTypeMismatchError.code, A.stateInteractionTypeMismatchError.desc);
|
|
9198
9196
|
}, e.createInteractionInProgressError = function() {
|
|
9199
|
-
return new e(
|
|
9197
|
+
return new e(A.interactionInProgress.code, A.interactionInProgress.desc);
|
|
9200
9198
|
}, e.createPopupWindowError = function(t) {
|
|
9201
|
-
var r =
|
|
9202
|
-
return r = L.isEmpty(t) ? r : r + " Details: " + t, new e(
|
|
9199
|
+
var r = A.popupWindowError.desc;
|
|
9200
|
+
return r = L.isEmpty(t) ? r : r + " Details: " + t, new e(A.popupWindowError.code, r);
|
|
9203
9201
|
}, e.createEmptyWindowCreatedError = function() {
|
|
9204
|
-
return new e(
|
|
9202
|
+
return new e(A.emptyWindowError.code, A.emptyWindowError.desc);
|
|
9205
9203
|
}, e.createUserCancelledError = function() {
|
|
9206
|
-
return new e(
|
|
9204
|
+
return new e(A.userCancelledError.code, A.userCancelledError.desc);
|
|
9207
9205
|
}, e.createMonitorPopupTimeoutError = function() {
|
|
9208
|
-
return new e(
|
|
9206
|
+
return new e(A.monitorPopupTimeoutError.code, A.monitorPopupTimeoutError.desc);
|
|
9209
9207
|
}, e.createMonitorIframeTimeoutError = function() {
|
|
9210
|
-
return new e(
|
|
9208
|
+
return new e(A.monitorIframeTimeoutError.code, A.monitorIframeTimeoutError.desc);
|
|
9211
9209
|
}, e.createRedirectInIframeError = function(t) {
|
|
9212
|
-
return new e(
|
|
9210
|
+
return new e(A.redirectInIframeError.code, A.redirectInIframeError.desc + " (window.parent !== window) => " + t);
|
|
9213
9211
|
}, e.createBlockReloadInHiddenIframeError = function() {
|
|
9214
|
-
return new e(
|
|
9212
|
+
return new e(A.blockTokenRequestsInHiddenIframeError.code, A.blockTokenRequestsInHiddenIframeError.desc);
|
|
9215
9213
|
}, e.createBlockAcquireTokenInPopupsError = function() {
|
|
9216
|
-
return new e(
|
|
9214
|
+
return new e(A.blockAcquireTokenInPopupsError.code, A.blockAcquireTokenInPopupsError.desc);
|
|
9217
9215
|
}, e.createIframeClosedPrematurelyError = function() {
|
|
9218
|
-
return new e(
|
|
9216
|
+
return new e(A.iframeClosedPrematurelyError.code, A.iframeClosedPrematurelyError.desc);
|
|
9219
9217
|
}, e.createSilentLogoutUnsupportedError = function() {
|
|
9220
|
-
return new e(
|
|
9218
|
+
return new e(A.silentLogoutUnsupportedError.code, A.silentLogoutUnsupportedError.desc);
|
|
9221
9219
|
}, e.createNoAccountError = function() {
|
|
9222
|
-
return new e(
|
|
9220
|
+
return new e(A.noAccountError.code, A.noAccountError.desc);
|
|
9223
9221
|
}, e.createSilentPromptValueError = function(t) {
|
|
9224
|
-
return new e(
|
|
9222
|
+
return new e(A.silentPromptValueError.code, A.silentPromptValueError.desc + " Given value: " + t);
|
|
9225
9223
|
}, e.createUnableToParseTokenRequestCacheError = function() {
|
|
9226
|
-
return new e(
|
|
9224
|
+
return new e(A.unableToParseTokenRequestCacheError.code, A.unableToParseTokenRequestCacheError.desc);
|
|
9227
9225
|
}, e.createNoTokenRequestCacheError = function() {
|
|
9228
|
-
return new e(
|
|
9226
|
+
return new e(A.noTokenRequestCacheError.code, A.noTokenRequestCacheError.desc);
|
|
9229
9227
|
}, e.createAuthRequestNotSetError = function() {
|
|
9230
|
-
return new e(
|
|
9228
|
+
return new e(A.authRequestNotSet.code, A.authRequestNotSet.desc);
|
|
9231
9229
|
}, e.createNoCachedAuthorityError = function() {
|
|
9232
|
-
return new e(
|
|
9230
|
+
return new e(A.noCachedAuthorityError.code, A.noCachedAuthorityError.desc);
|
|
9233
9231
|
}, e.createInvalidCacheTypeError = function() {
|
|
9234
|
-
return new e(
|
|
9232
|
+
return new e(A.invalidCacheType.code, "" + A.invalidCacheType.desc);
|
|
9235
9233
|
}, e.createNonBrowserEnvironmentError = function() {
|
|
9236
|
-
return new e(
|
|
9234
|
+
return new e(A.notInBrowserEnvironment.code, A.notInBrowserEnvironment.desc);
|
|
9237
9235
|
}, e.createDatabaseNotOpenError = function() {
|
|
9238
|
-
return new e(
|
|
9236
|
+
return new e(A.databaseNotOpen.code, A.databaseNotOpen.desc);
|
|
9239
9237
|
}, e.createNoNetworkConnectivityError = function() {
|
|
9240
|
-
return new e(
|
|
9238
|
+
return new e(A.noNetworkConnectivity.code, A.noNetworkConnectivity.desc);
|
|
9241
9239
|
}, e.createPostRequestFailedError = function(t, r) {
|
|
9242
|
-
return new e(
|
|
9240
|
+
return new e(A.postRequestFailed.code, A.postRequestFailed.desc + " | Network client threw: " + t + " | Attempted to reach: " + r.split("?")[0]);
|
|
9243
9241
|
}, e.createGetRequestFailedError = function(t, r) {
|
|
9244
|
-
return new e(
|
|
9242
|
+
return new e(A.getRequestFailed.code, A.getRequestFailed.desc + " | Network client threw: " + t + " | Attempted to reach: " + r.split("?")[0]);
|
|
9245
9243
|
}, e.createFailedToParseNetworkResponseError = function(t) {
|
|
9246
|
-
return new e(
|
|
9244
|
+
return new e(A.failedToParseNetworkResponse.code, A.failedToParseNetworkResponse.desc + " | Attempted to reach: " + t.split("?")[0]);
|
|
9247
9245
|
}, e.createUnableToLoadTokenError = function(t) {
|
|
9248
|
-
return new e(
|
|
9246
|
+
return new e(A.unableToLoadTokenError.code, A.unableToLoadTokenError.desc + " | " + t);
|
|
9249
9247
|
}, e.createSigningKeyNotFoundInStorageError = function(t) {
|
|
9250
|
-
return new e(
|
|
9248
|
+
return new e(A.signingKeyNotFoundInStorage.code, A.signingKeyNotFoundInStorage.desc + " | No match found for KeyId: " + t);
|
|
9251
9249
|
}, e.createAuthCodeRequiredError = function() {
|
|
9252
|
-
return new e(
|
|
9250
|
+
return new e(A.authCodeRequired.code, A.authCodeRequired.desc);
|
|
9253
9251
|
}, e.createAuthCodeOrNativeAccountIdRequiredError = function() {
|
|
9254
|
-
return new e(
|
|
9252
|
+
return new e(A.authCodeOrNativeAccountRequired.code, A.authCodeOrNativeAccountRequired.desc);
|
|
9255
9253
|
}, e.createSpaCodeAndNativeAccountIdPresentError = function() {
|
|
9256
|
-
return new e(
|
|
9254
|
+
return new e(A.spaCodeAndNativeAccountPresent.code, A.spaCodeAndNativeAccountPresent.desc);
|
|
9257
9255
|
}, e.createDatabaseUnavailableError = function() {
|
|
9258
|
-
return new e(
|
|
9256
|
+
return new e(A.databaseUnavailable.code, A.databaseUnavailable.desc);
|
|
9259
9257
|
}, e.createUnableToAcquireTokenFromNativePlatformError = function() {
|
|
9260
|
-
return new e(
|
|
9258
|
+
return new e(A.unableToAcquireTokenFromNativePlatform.code, A.unableToAcquireTokenFromNativePlatform.desc);
|
|
9261
9259
|
}, e.createNativeHandshakeTimeoutError = function() {
|
|
9262
|
-
return new e(
|
|
9260
|
+
return new e(A.nativeHandshakeTimeout.code, A.nativeHandshakeTimeout.desc);
|
|
9263
9261
|
}, e.createNativeExtensionNotInstalledError = function() {
|
|
9264
|
-
return new e(
|
|
9262
|
+
return new e(A.nativeExtensionNotInstalled.code, A.nativeExtensionNotInstalled.desc);
|
|
9265
9263
|
}, e.createNativeConnectionNotEstablishedError = function() {
|
|
9266
|
-
return new e(
|
|
9264
|
+
return new e(A.nativeConnectionNotEstablished.code, A.nativeConnectionNotEstablished.desc);
|
|
9267
9265
|
}, e.createNativeBrokerCalledBeforeInitialize = function() {
|
|
9268
|
-
return new e(
|
|
9266
|
+
return new e(A.nativeBrokerCalledBeforeInitialize.code, A.nativeBrokerCalledBeforeInitialize.desc);
|
|
9269
9267
|
}, e.createNativePromptParameterNotSupportedError = function() {
|
|
9270
|
-
return new e(
|
|
9268
|
+
return new e(A.nativePromptNotSupported.code, A.nativePromptNotSupported.desc);
|
|
9271
9269
|
}, e;
|
|
9272
9270
|
}(D)
|
|
9273
9271
|
);
|
|
9274
9272
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
9275
|
-
var
|
|
9273
|
+
var Qe = {
|
|
9276
9274
|
/**
|
|
9277
9275
|
* Interaction in progress cache value
|
|
9278
9276
|
*/
|
|
@@ -9309,22 +9307,22 @@ var Ve = {
|
|
|
9309
9307
|
(function(n) {
|
|
9310
9308
|
n.HandshakeRequest = "Handshake", n.HandshakeResponse = "HandshakeResponse", n.GetToken = "GetToken", n.Response = "Response";
|
|
9311
9309
|
})(at || (at = {}));
|
|
9312
|
-
var
|
|
9310
|
+
var pe;
|
|
9313
9311
|
(function(n) {
|
|
9314
9312
|
n.LocalStorage = "localStorage", n.SessionStorage = "sessionStorage", n.MemoryStorage = "memoryStorage";
|
|
9315
|
-
})(
|
|
9316
|
-
var
|
|
9313
|
+
})(pe || (pe = {}));
|
|
9314
|
+
var Ze;
|
|
9317
9315
|
(function(n) {
|
|
9318
9316
|
n.GET = "GET", n.POST = "POST";
|
|
9319
|
-
})(
|
|
9317
|
+
})(Ze || (Ze = {}));
|
|
9320
9318
|
var J;
|
|
9321
9319
|
(function(n) {
|
|
9322
9320
|
n.AUTHORITY = "authority", n.ACQUIRE_TOKEN_ACCOUNT = "acquireToken.account", n.SESSION_STATE = "session.state", n.REQUEST_STATE = "request.state", n.NONCE_IDTOKEN = "nonce.id_token", n.ORIGIN_URI = "request.origin", n.RENEW_STATUS = "token.renew.status", n.URL_HASH = "urlHash", n.REQUEST_PARAMS = "request.params", n.SCOPES = "scopes", n.INTERACTION_STATUS_KEY = "interaction.status", n.CCS_CREDENTIAL = "ccs.credential", n.CORRELATION_ID = "request.correlationId", n.NATIVE_REQUEST = "request.native", n.REDIRECT_CONTEXT = "request.redirect.context";
|
|
9323
9321
|
})(J || (J = {}));
|
|
9324
|
-
var
|
|
9322
|
+
var Xe;
|
|
9325
9323
|
(function(n) {
|
|
9326
9324
|
n.ACCOUNT_KEYS = "msal.account.keys", n.TOKEN_KEYS = "msal.token.keys";
|
|
9327
|
-
})(
|
|
9325
|
+
})(Xe || (Xe = {}));
|
|
9328
9326
|
var Lt;
|
|
9329
9327
|
(function(n) {
|
|
9330
9328
|
n.WRAPPER_SKU = "wrapper.sku", n.WRAPPER_VER = "wrapper.version";
|
|
@@ -9337,10 +9335,10 @@ var x;
|
|
|
9337
9335
|
(function(n) {
|
|
9338
9336
|
n.Redirect = "redirect", n.Popup = "popup", n.Silent = "silent", n.None = "none";
|
|
9339
9337
|
})(x || (x = {}));
|
|
9340
|
-
var
|
|
9338
|
+
var Nr;
|
|
9341
9339
|
(function(n) {
|
|
9342
9340
|
n.Startup = "startup", n.Login = "login", n.Logout = "logout", n.AcquireToken = "acquireToken", n.SsoSilent = "ssoSilent", n.HandleRedirect = "handleRedirect", n.None = "none";
|
|
9343
|
-
})(
|
|
9341
|
+
})(Nr || (Nr = {}));
|
|
9344
9342
|
var Lr = {
|
|
9345
9343
|
scopes: an
|
|
9346
9344
|
}, Bt = "jwk", Or;
|
|
@@ -9418,7 +9416,7 @@ var zr = (
|
|
|
9418
9416
|
this.validateWindowStorage(e), this.windowStorage = window[e];
|
|
9419
9417
|
}
|
|
9420
9418
|
return n.prototype.validateWindowStorage = function(e) {
|
|
9421
|
-
if (e !==
|
|
9419
|
+
if (e !== pe.LocalStorage && e !== pe.SessionStorage)
|
|
9422
9420
|
throw En.createStorageNotSupportedError(e);
|
|
9423
9421
|
var t = !!window[e];
|
|
9424
9422
|
if (!t)
|
|
@@ -9495,8 +9493,8 @@ var $n = (
|
|
|
9495
9493
|
}
|
|
9496
9494
|
return e.prototype.setupBrowserStorage = function(t) {
|
|
9497
9495
|
switch (t) {
|
|
9498
|
-
case
|
|
9499
|
-
case
|
|
9496
|
+
case pe.LocalStorage:
|
|
9497
|
+
case pe.SessionStorage:
|
|
9500
9498
|
try {
|
|
9501
9499
|
return new zr(t);
|
|
9502
9500
|
} catch (r) {
|
|
@@ -9504,22 +9502,22 @@ var $n = (
|
|
|
9504
9502
|
break;
|
|
9505
9503
|
}
|
|
9506
9504
|
}
|
|
9507
|
-
return this.cacheConfig.cacheLocation =
|
|
9505
|
+
return this.cacheConfig.cacheLocation = pe.MemoryStorage, new Wn();
|
|
9508
9506
|
}, e.prototype.setupTemporaryCacheStorage = function(t, r) {
|
|
9509
9507
|
switch (r) {
|
|
9510
|
-
case
|
|
9511
|
-
case
|
|
9508
|
+
case pe.LocalStorage:
|
|
9509
|
+
case pe.SessionStorage:
|
|
9512
9510
|
try {
|
|
9513
|
-
return new zr(t ||
|
|
9511
|
+
return new zr(t || pe.SessionStorage);
|
|
9514
9512
|
} catch (o) {
|
|
9515
9513
|
return this.logger.verbose(o), this.internalStorage;
|
|
9516
9514
|
}
|
|
9517
|
-
case
|
|
9515
|
+
case pe.MemoryStorage:
|
|
9518
9516
|
default:
|
|
9519
9517
|
return this.internalStorage;
|
|
9520
9518
|
}
|
|
9521
9519
|
}, e.prototype.migrateCacheEntries = function() {
|
|
9522
|
-
var t = this, r = g.CACHE_PREFIX + "." +
|
|
9520
|
+
var t = this, r = g.CACHE_PREFIX + "." + he.ID_TOKEN, o = g.CACHE_PREFIX + "." + he.CLIENT_INFO, i = g.CACHE_PREFIX + "." + he.ERROR, a = g.CACHE_PREFIX + "." + he.ERROR_DESC, s = this.browserStorage.getItem(r), u = this.browserStorage.getItem(o), p = this.browserStorage.getItem(i), d = this.browserStorage.getItem(a), f = [s, u, p, d], _ = [he.ID_TOKEN, he.CLIENT_INFO, he.ERROR, he.ERROR_DESC];
|
|
9523
9521
|
_.forEach(function(k, E) {
|
|
9524
9522
|
return t.migrateCacheEntry(k, f[E]);
|
|
9525
9523
|
});
|
|
@@ -9528,7 +9526,7 @@ var $n = (
|
|
|
9528
9526
|
}, e.prototype.createKeyMaps = function() {
|
|
9529
9527
|
var t = this;
|
|
9530
9528
|
this.logger.trace("BrowserCacheManager - createKeyMaps called.");
|
|
9531
|
-
var r = this.getItem(
|
|
9529
|
+
var r = this.getItem(Xe.ACCOUNT_KEYS), o = this.getItem(Xe.TOKEN_KEYS + "." + this.clientId);
|
|
9532
9530
|
if (r && o) {
|
|
9533
9531
|
this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");
|
|
9534
9532
|
return;
|
|
@@ -9544,7 +9542,7 @@ var $n = (
|
|
|
9544
9542
|
case H.ID_TOKEN:
|
|
9545
9543
|
if (gt.isIdTokenEntity(u)) {
|
|
9546
9544
|
t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: " + a + " found, saving key to token key map");
|
|
9547
|
-
var p =
|
|
9545
|
+
var p = Me.toObject(new gt(), u), d = t.updateCredentialCacheKey(a, p);
|
|
9548
9546
|
t.addTokenKey(d, H.ID_TOKEN);
|
|
9549
9547
|
return;
|
|
9550
9548
|
} else
|
|
@@ -9554,16 +9552,16 @@ var $n = (
|
|
|
9554
9552
|
case H.ACCESS_TOKEN_WITH_AUTH_SCHEME:
|
|
9555
9553
|
if (_t.isAccessTokenEntity(u)) {
|
|
9556
9554
|
t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: " + a + " found, saving key to token key map");
|
|
9557
|
-
var f =
|
|
9555
|
+
var f = Me.toObject(new _t(), u), d = t.updateCredentialCacheKey(a, f);
|
|
9558
9556
|
t.addTokenKey(d, H.ACCESS_TOKEN);
|
|
9559
9557
|
return;
|
|
9560
9558
|
} else
|
|
9561
9559
|
t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."), t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: " + a);
|
|
9562
9560
|
break;
|
|
9563
9561
|
case H.REFRESH_TOKEN:
|
|
9564
|
-
if (
|
|
9562
|
+
if (Mt.isRefreshTokenEntity(u)) {
|
|
9565
9563
|
t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"), t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: " + a + " found, saving key to token key map");
|
|
9566
|
-
var _ =
|
|
9564
|
+
var _ = Me.toObject(new Mt(), u), d = t.updateCredentialCacheKey(a, _);
|
|
9567
9565
|
t.addTokenKey(d, H.REFRESH_TOKEN);
|
|
9568
9566
|
return;
|
|
9569
9567
|
} else
|
|
@@ -9597,23 +9595,23 @@ var $n = (
|
|
|
9597
9595
|
if (!r)
|
|
9598
9596
|
return this.removeAccountKeyFromMap(t), null;
|
|
9599
9597
|
var o = this.validateAndParseJson(r);
|
|
9600
|
-
return !o || !we.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) :
|
|
9598
|
+
return !o || !we.isAccountEntity(o) ? (this.removeAccountKeyFromMap(t), null) : Me.toObject(new we(), o);
|
|
9601
9599
|
}, e.prototype.setAccount = function(t) {
|
|
9602
9600
|
this.logger.trace("BrowserCacheManager.setAccount called");
|
|
9603
9601
|
var r = t.generateAccountKey();
|
|
9604
9602
|
this.setItem(r, JSON.stringify(t)), this.addAccountKeyToMap(r);
|
|
9605
9603
|
}, e.prototype.getAccountKeys = function() {
|
|
9606
9604
|
this.logger.trace("BrowserCacheManager.getAccountKeys called");
|
|
9607
|
-
var t = this.getItem(
|
|
9605
|
+
var t = this.getItem(Xe.ACCOUNT_KEYS);
|
|
9608
9606
|
return t ? JSON.parse(t) : (this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"), []);
|
|
9609
9607
|
}, e.prototype.addAccountKeyToMap = function(t) {
|
|
9610
9608
|
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"), this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: " + t);
|
|
9611
9609
|
var r = this.getAccountKeys();
|
|
9612
|
-
r.indexOf(t) === -1 ? (r.push(t), this.setItem(
|
|
9610
|
+
r.indexOf(t) === -1 ? (r.push(t), this.setItem(Xe.ACCOUNT_KEYS, JSON.stringify(r)), this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")) : this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map");
|
|
9613
9611
|
}, e.prototype.removeAccountKeyFromMap = function(t) {
|
|
9614
9612
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"), this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: " + t);
|
|
9615
9613
|
var r = this.getAccountKeys(), o = r.indexOf(t);
|
|
9616
|
-
o > -1 ? (r.splice(o, 1), this.setItem(
|
|
9614
|
+
o > -1 ? (r.splice(o, 1), this.setItem(Xe.ACCOUNT_KEYS, JSON.stringify(r)), this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")) : this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map");
|
|
9617
9615
|
}, e.prototype.removeAccount = function(t) {
|
|
9618
9616
|
return T(this, void 0, void 0, function() {
|
|
9619
9617
|
return I(this, function(r) {
|
|
@@ -9638,7 +9636,7 @@ var $n = (
|
|
|
9638
9636
|
n.prototype.removeRefreshToken.call(this, t), this.removeTokenKey(t, H.REFRESH_TOKEN);
|
|
9639
9637
|
}, e.prototype.getTokenKeys = function() {
|
|
9640
9638
|
this.logger.trace("BrowserCacheManager.getTokenKeys called");
|
|
9641
|
-
var t = this.getItem(
|
|
9639
|
+
var t = this.getItem(Xe.TOKEN_KEYS + "." + this.clientId);
|
|
9642
9640
|
if (t) {
|
|
9643
9641
|
var r = this.validateAndParseJson(t);
|
|
9644
9642
|
if (r && r.hasOwnProperty("idToken") && r.hasOwnProperty("accessToken") && r.hasOwnProperty("refreshToken"))
|
|
@@ -9667,7 +9665,7 @@ var $n = (
|
|
|
9667
9665
|
default:
|
|
9668
9666
|
this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: " + r), O.createUnexpectedCredentialTypeError();
|
|
9669
9667
|
}
|
|
9670
|
-
this.setItem(
|
|
9668
|
+
this.setItem(Xe.TOKEN_KEYS + "." + this.clientId, JSON.stringify(o));
|
|
9671
9669
|
}, e.prototype.removeTokenKey = function(t, r) {
|
|
9672
9670
|
this.logger.trace("BrowserCacheManager removeTokenKey called");
|
|
9673
9671
|
var o = this.getTokenKeys();
|
|
@@ -9690,13 +9688,13 @@ var $n = (
|
|
|
9690
9688
|
default:
|
|
9691
9689
|
this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: " + r), O.createUnexpectedCredentialTypeError();
|
|
9692
9690
|
}
|
|
9693
|
-
this.setItem(
|
|
9691
|
+
this.setItem(Xe.TOKEN_KEYS + "." + this.clientId, JSON.stringify(o));
|
|
9694
9692
|
}, e.prototype.getIdTokenCredential = function(t) {
|
|
9695
9693
|
var r = this.getItem(t);
|
|
9696
9694
|
if (!r)
|
|
9697
9695
|
return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null;
|
|
9698
9696
|
var o = this.validateAndParseJson(r);
|
|
9699
|
-
return !o || !gt.isIdTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),
|
|
9697
|
+
return !o || !gt.isIdTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ID_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"), Me.toObject(new gt(), o));
|
|
9700
9698
|
}, e.prototype.setIdTokenCredential = function(t) {
|
|
9701
9699
|
this.logger.trace("BrowserCacheManager.setIdTokenCredential called");
|
|
9702
9700
|
var r = t.generateCredentialKey();
|
|
@@ -9706,7 +9704,7 @@ var $n = (
|
|
|
9706
9704
|
if (!r)
|
|
9707
9705
|
return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null;
|
|
9708
9706
|
var o = this.validateAndParseJson(r);
|
|
9709
|
-
return !o || !_t.isAccessTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),
|
|
9707
|
+
return !o || !_t.isAccessTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.ACCESS_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"), Me.toObject(new _t(), o));
|
|
9710
9708
|
}, e.prototype.setAccessTokenCredential = function(t) {
|
|
9711
9709
|
this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");
|
|
9712
9710
|
var r = t.generateCredentialKey();
|
|
@@ -9716,7 +9714,7 @@ var $n = (
|
|
|
9716
9714
|
if (!r)
|
|
9717
9715
|
return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.REFRESH_TOKEN), null;
|
|
9718
9716
|
var o = this.validateAndParseJson(r);
|
|
9719
|
-
return !o || !
|
|
9717
|
+
return !o || !Mt.isRefreshTokenEntity(o) ? (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"), this.removeTokenKey(t, H.REFRESH_TOKEN), null) : (this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"), Me.toObject(new Mt(), o));
|
|
9720
9718
|
}, e.prototype.setRefreshTokenCredential = function(t) {
|
|
9721
9719
|
this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");
|
|
9722
9720
|
var r = t.generateCredentialKey();
|
|
@@ -9726,7 +9724,7 @@ var $n = (
|
|
|
9726
9724
|
if (!r)
|
|
9727
9725
|
return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null;
|
|
9728
9726
|
var o = this.validateAndParseJson(r);
|
|
9729
|
-
return !o || !Vn.isAppMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),
|
|
9727
|
+
return !o || !Vn.isAppMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"), Me.toObject(new Vn(), o));
|
|
9730
9728
|
}, e.prototype.setAppMetadata = function(t) {
|
|
9731
9729
|
this.logger.trace("BrowserCacheManager.setAppMetadata called");
|
|
9732
9730
|
var r = t.generateAppMetadataKey();
|
|
@@ -9736,7 +9734,7 @@ var $n = (
|
|
|
9736
9734
|
if (!r)
|
|
9737
9735
|
return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null;
|
|
9738
9736
|
var o = this.validateAndParseJson(r);
|
|
9739
|
-
return !o || !Cn.isServerTelemetryEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),
|
|
9737
|
+
return !o || !Cn.isServerTelemetryEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"), Me.toObject(new Cn(), o));
|
|
9740
9738
|
}, e.prototype.setServerTelemetry = function(t, r) {
|
|
9741
9739
|
this.logger.trace("BrowserCacheManager.setServerTelemetry called"), this.setItem(t, JSON.stringify(r));
|
|
9742
9740
|
}, e.prototype.getAuthorityMetadata = function(t) {
|
|
@@ -9744,7 +9742,7 @@ var $n = (
|
|
|
9744
9742
|
if (!r)
|
|
9745
9743
|
return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"), null;
|
|
9746
9744
|
var o = this.validateAndParseJson(r);
|
|
9747
|
-
return o && Qn.isAuthorityMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),
|
|
9745
|
+
return o && Qn.isAuthorityMetadataEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"), Me.toObject(new Qn(), o)) : null;
|
|
9748
9746
|
}, e.prototype.getAuthorityMetadataKeys = function() {
|
|
9749
9747
|
var t = this, r = this.internalStorage.getKeys();
|
|
9750
9748
|
return r.filter(function(o) {
|
|
@@ -9758,10 +9756,10 @@ var $n = (
|
|
|
9758
9756
|
}, e.prototype.setAuthorityMetadata = function(t, r) {
|
|
9759
9757
|
this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"), this.internalStorage.setItem(t, JSON.stringify(r));
|
|
9760
9758
|
}, e.prototype.getActiveAccount = function() {
|
|
9761
|
-
var t = this.generateCacheKey(
|
|
9759
|
+
var t = this.generateCacheKey(he.ACTIVE_ACCOUNT_FILTERS), r = this.getItem(t);
|
|
9762
9760
|
if (!r) {
|
|
9763
9761
|
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");
|
|
9764
|
-
var o = this.generateCacheKey(
|
|
9762
|
+
var o = this.generateCacheKey(he.ACTIVE_ACCOUNT), i = this.getItem(o);
|
|
9765
9763
|
if (!i)
|
|
9766
9764
|
return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"), null;
|
|
9767
9765
|
var a = this.getAccountInfoByFilter({ localAccountId: i })[0] || null;
|
|
@@ -9773,7 +9771,7 @@ var $n = (
|
|
|
9773
9771
|
localAccountId: s.localAccountId
|
|
9774
9772
|
})[0] || null) : (this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"), null);
|
|
9775
9773
|
}, e.prototype.setActiveAccount = function(t) {
|
|
9776
|
-
var r = this.generateCacheKey(
|
|
9774
|
+
var r = this.generateCacheKey(he.ACTIVE_ACCOUNT_FILTERS), o = this.generateCacheKey(he.ACTIVE_ACCOUNT);
|
|
9777
9775
|
if (t) {
|
|
9778
9776
|
this.logger.verbose("setActiveAccount: Active account set");
|
|
9779
9777
|
var i = {
|
|
@@ -9806,7 +9804,7 @@ var $n = (
|
|
|
9806
9804
|
if (!r)
|
|
9807
9805
|
return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null;
|
|
9808
9806
|
var o = this.validateAndParseJson(r);
|
|
9809
|
-
return !o || !Rr.isThrottlingEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),
|
|
9807
|
+
return !o || !Rr.isThrottlingEntity(t, o) ? (this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"), null) : (this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"), Me.toObject(new Rr(), o));
|
|
9810
9808
|
}, e.prototype.setThrottlingCache = function(t, r) {
|
|
9811
9809
|
this.logger.trace("BrowserCacheManager.setThrottlingCache called"), this.setItem(t, JSON.stringify(r));
|
|
9812
9810
|
}, e.prototype.getTemporaryCache = function(t, r) {
|
|
@@ -9818,7 +9816,7 @@ var $n = (
|
|
|
9818
9816
|
}
|
|
9819
9817
|
var a = this.temporaryCacheStorage.getItem(o);
|
|
9820
9818
|
if (!a) {
|
|
9821
|
-
if (this.cacheConfig.cacheLocation ===
|
|
9819
|
+
if (this.cacheConfig.cacheLocation === pe.LocalStorage) {
|
|
9822
9820
|
var s = this.browserStorage.getItem(o);
|
|
9823
9821
|
if (s)
|
|
9824
9822
|
return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"), s;
|
|
@@ -9905,7 +9903,7 @@ var $n = (
|
|
|
9905
9903
|
}, e.prototype.setCache = function() {
|
|
9906
9904
|
}, e.prototype.generateCacheKey = function(t) {
|
|
9907
9905
|
var r = this.validateAndParseJson(t);
|
|
9908
|
-
return r ? JSON.stringify(t) : L.startsWith(t, g.CACHE_PREFIX) || L.startsWith(t,
|
|
9906
|
+
return r ? JSON.stringify(t) : L.startsWith(t, g.CACHE_PREFIX) || L.startsWith(t, he.ADAL_ID_TOKEN) ? t : g.CACHE_PREFIX + "." + this.clientId + "." + t;
|
|
9909
9907
|
}, e.prototype.generateAuthorityKey = function(t) {
|
|
9910
9908
|
var r = st.parseRequestState(this.cryptoImpl, t).libraryState.id;
|
|
9911
9909
|
return this.generateCacheKey(J.AUTHORITY + "." + r);
|
|
@@ -9971,14 +9969,14 @@ var $n = (
|
|
|
9971
9969
|
this.logger.trace("BrowserCacheManager.getCachedRequest called");
|
|
9972
9970
|
var o = this.getTemporaryCache(J.REQUEST_PARAMS, !0);
|
|
9973
9971
|
if (!o)
|
|
9974
|
-
throw
|
|
9972
|
+
throw M.createNoTokenRequestCacheError();
|
|
9975
9973
|
var i = this.validateAndParseJson(r.base64Decode(o));
|
|
9976
9974
|
if (!i)
|
|
9977
|
-
throw
|
|
9975
|
+
throw M.createUnableToParseTokenRequestCacheError();
|
|
9978
9976
|
if (this.removeItem(this.generateCacheKey(J.REQUEST_PARAMS)), L.isEmpty(i.authority)) {
|
|
9979
9977
|
var a = this.generateAuthorityKey(t), s = this.getTemporaryCache(a);
|
|
9980
9978
|
if (!s)
|
|
9981
|
-
throw
|
|
9979
|
+
throw M.createNoCachedAuthorityError();
|
|
9982
9980
|
i.authority = s;
|
|
9983
9981
|
}
|
|
9984
9982
|
return i;
|
|
@@ -9999,18 +9997,18 @@ var $n = (
|
|
|
9999
9997
|
var r = g.CACHE_PREFIX + "." + J.INTERACTION_STATUS_KEY;
|
|
10000
9998
|
if (t) {
|
|
10001
9999
|
if (this.getInteractionInProgress())
|
|
10002
|
-
throw
|
|
10000
|
+
throw M.createInteractionInProgressError();
|
|
10003
10001
|
this.setTemporaryCache(r, this.clientId, !1);
|
|
10004
10002
|
} else
|
|
10005
10003
|
!t && this.getInteractionInProgress() === this.clientId && this.removeItem(r);
|
|
10006
10004
|
}, e.prototype.getLegacyLoginHint = function() {
|
|
10007
|
-
var t = this.getTemporaryCache(
|
|
10008
|
-
t && (this.browserStorage.removeItem(
|
|
10009
|
-
var r = this.getTemporaryCache(
|
|
10010
|
-
r && (this.removeItem(this.generateCacheKey(
|
|
10005
|
+
var t = this.getTemporaryCache(he.ADAL_ID_TOKEN);
|
|
10006
|
+
t && (this.browserStorage.removeItem(he.ADAL_ID_TOKEN), this.logger.verbose("Cached ADAL id token retrieved."));
|
|
10007
|
+
var r = this.getTemporaryCache(he.ID_TOKEN, !0);
|
|
10008
|
+
r && (this.removeItem(this.generateCacheKey(he.ID_TOKEN)), this.logger.verbose("Cached MSAL.js v1 id token retrieved"));
|
|
10011
10009
|
var o = r || t;
|
|
10012
10010
|
if (o) {
|
|
10013
|
-
var i = new
|
|
10011
|
+
var i = new rt(o, this.cryptoImpl);
|
|
10014
10012
|
if (i.claims && i.claims.preferred_username)
|
|
10015
10013
|
return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"), i.claims.preferred_username;
|
|
10016
10014
|
if (i.claims && i.claims.upn)
|
|
@@ -10032,11 +10030,11 @@ var $n = (
|
|
|
10032
10030
|
}, e.prototype.setRedirectRequestContext = function(t) {
|
|
10033
10031
|
this.setTemporaryCache(J.REDIRECT_CONTEXT, t, !0);
|
|
10034
10032
|
}, e;
|
|
10035
|
-
}(
|
|
10033
|
+
}(Me)
|
|
10036
10034
|
), Gi = function(n, e) {
|
|
10037
10035
|
var t = {
|
|
10038
|
-
cacheLocation:
|
|
10039
|
-
temporaryCacheLocation:
|
|
10036
|
+
cacheLocation: pe.MemoryStorage,
|
|
10037
|
+
temporaryCacheLocation: pe.MemoryStorage,
|
|
10040
10038
|
storeAuthStateInCookie: !1,
|
|
10041
10039
|
secureCookies: !1,
|
|
10042
10040
|
cacheMigrationEnabled: !1,
|
|
@@ -10059,13 +10057,13 @@ var Vi = (
|
|
|
10059
10057
|
switch (a.label) {
|
|
10060
10058
|
case 0:
|
|
10061
10059
|
return a.trys.push([0, 2, , 3]), [4, fetch(e, {
|
|
10062
|
-
method:
|
|
10060
|
+
method: Ze.GET,
|
|
10063
10061
|
headers: this.getFetchHeaders(t)
|
|
10064
10062
|
})];
|
|
10065
10063
|
case 1:
|
|
10066
10064
|
return r = a.sent(), [3, 3];
|
|
10067
10065
|
case 2:
|
|
10068
|
-
throw o = a.sent(), window.navigator.onLine ?
|
|
10066
|
+
throw o = a.sent(), window.navigator.onLine ? M.createGetRequestFailedError(o, e) : M.createNoNetworkConnectivityError();
|
|
10069
10067
|
case 3:
|
|
10070
10068
|
return a.trys.push([3, 5, , 6]), i = {
|
|
10071
10069
|
headers: this.getHeaderDict(r.headers)
|
|
@@ -10073,7 +10071,7 @@ var Vi = (
|
|
|
10073
10071
|
case 4:
|
|
10074
10072
|
return [2, (i.body = a.sent(), i.status = r.status, i)];
|
|
10075
10073
|
case 5:
|
|
10076
|
-
throw a.sent(),
|
|
10074
|
+
throw a.sent(), M.createFailedToParseNetworkResponseError(e);
|
|
10077
10075
|
case 6:
|
|
10078
10076
|
return [
|
|
10079
10077
|
2
|
|
@@ -10091,14 +10089,14 @@ var Vi = (
|
|
|
10091
10089
|
r = t && t.body || g.EMPTY_STRING, s.label = 1;
|
|
10092
10090
|
case 1:
|
|
10093
10091
|
return s.trys.push([1, 3, , 4]), [4, fetch(e, {
|
|
10094
|
-
method:
|
|
10092
|
+
method: Ze.POST,
|
|
10095
10093
|
headers: this.getFetchHeaders(t),
|
|
10096
10094
|
body: r
|
|
10097
10095
|
})];
|
|
10098
10096
|
case 2:
|
|
10099
10097
|
return o = s.sent(), [3, 4];
|
|
10100
10098
|
case 3:
|
|
10101
|
-
throw i = s.sent(), window.navigator.onLine ?
|
|
10099
|
+
throw i = s.sent(), window.navigator.onLine ? M.createPostRequestFailedError(i, e) : M.createNoNetworkConnectivityError();
|
|
10102
10100
|
case 4:
|
|
10103
10101
|
return s.trys.push([4, 6, , 7]), a = {
|
|
10104
10102
|
headers: this.getHeaderDict(o.headers)
|
|
@@ -10106,7 +10104,7 @@ var Vi = (
|
|
|
10106
10104
|
case 5:
|
|
10107
10105
|
return [2, (a.body = s.sent(), a.status = o.status, a)];
|
|
10108
10106
|
case 6:
|
|
10109
|
-
throw s.sent(),
|
|
10107
|
+
throw s.sent(), M.createFailedToParseNetworkResponseError(e);
|
|
10110
10108
|
case 7:
|
|
10111
10109
|
return [
|
|
10112
10110
|
2
|
|
@@ -10140,13 +10138,13 @@ var Qi = (
|
|
|
10140
10138
|
return n.prototype.sendGetRequestAsync = function(e, t) {
|
|
10141
10139
|
return T(this, void 0, void 0, function() {
|
|
10142
10140
|
return I(this, function(r) {
|
|
10143
|
-
return [2, this.sendRequestAsync(e,
|
|
10141
|
+
return [2, this.sendRequestAsync(e, Ze.GET, t)];
|
|
10144
10142
|
});
|
|
10145
10143
|
});
|
|
10146
10144
|
}, n.prototype.sendPostRequestAsync = function(e, t) {
|
|
10147
10145
|
return T(this, void 0, void 0, function() {
|
|
10148
10146
|
return I(this, function(r) {
|
|
10149
|
-
return [2, this.sendRequestAsync(e,
|
|
10147
|
+
return [2, this.sendRequestAsync(e, Ze.POST, t)];
|
|
10150
10148
|
});
|
|
10151
10149
|
});
|
|
10152
10150
|
}, n.prototype.sendRequestAsync = function(e, t, r) {
|
|
@@ -10159,7 +10157,7 @@ var Qi = (
|
|
|
10159
10157
|
/* async: */
|
|
10160
10158
|
!0
|
|
10161
10159
|
), o.setXhrHeaders(s, r), s.onload = function() {
|
|
10162
|
-
(s.status < 200 || s.status >= 300) && (t ===
|
|
10160
|
+
(s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)));
|
|
10163
10161
|
try {
|
|
10164
10162
|
var u = JSON.parse(s.responseText), p = {
|
|
10165
10163
|
headers: o.getHeaderDict(s),
|
|
@@ -10168,16 +10166,16 @@ var Qi = (
|
|
|
10168
10166
|
};
|
|
10169
10167
|
i(p);
|
|
10170
10168
|
} catch {
|
|
10171
|
-
a(
|
|
10169
|
+
a(M.createFailedToParseNetworkResponseError(e));
|
|
10172
10170
|
}
|
|
10173
10171
|
}, s.onerror = function() {
|
|
10174
|
-
window.navigator.onLine ? t ===
|
|
10175
|
-
}, t ===
|
|
10172
|
+
window.navigator.onLine ? t === Ze.POST ? a(M.createPostRequestFailedError("Failed with status " + s.status, e)) : a(M.createGetRequestFailedError("Failed with status " + s.status, e)) : a(M.createNoNetworkConnectivityError());
|
|
10173
|
+
}, t === Ze.POST && r && r.body)
|
|
10176
10174
|
s.send(r.body);
|
|
10177
|
-
else if (t ===
|
|
10175
|
+
else if (t === Ze.GET)
|
|
10178
10176
|
s.send();
|
|
10179
10177
|
else
|
|
10180
|
-
throw
|
|
10178
|
+
throw M.createHttpMethodNotImplementedError(t);
|
|
10181
10179
|
});
|
|
10182
10180
|
}, n.prototype.setXhrHeaders = function(e, t) {
|
|
10183
10181
|
if (t && t.headers) {
|
|
@@ -10209,7 +10207,7 @@ var de = (
|
|
|
10209
10207
|
}, n.isInIframe = function() {
|
|
10210
10208
|
return window.parent !== window;
|
|
10211
10209
|
}, n.isInPopup = function() {
|
|
10212
|
-
return typeof window < "u" && !!window.opener && window.opener !== window && typeof window.name == "string" && window.name.indexOf(
|
|
10210
|
+
return typeof window < "u" && !!window.opener && window.opener !== window && typeof window.name == "string" && window.name.indexOf(Qe.POPUP_NAME_PREFIX + ".") === 0;
|
|
10213
10211
|
}, n.getCurrentUri = function() {
|
|
10214
10212
|
return window.location.href.split("?")[0].split("#")[0];
|
|
10215
10213
|
}, n.getHomepage = function() {
|
|
@@ -10220,20 +10218,20 @@ var de = (
|
|
|
10220
10218
|
}, n.blockReloadInHiddenIframes = function() {
|
|
10221
10219
|
var e = W.hashContainsKnownProperties(window.location.hash);
|
|
10222
10220
|
if (e && n.isInIframe())
|
|
10223
|
-
throw
|
|
10221
|
+
throw M.createBlockReloadInHiddenIframeError();
|
|
10224
10222
|
}, n.blockRedirectInIframe = function(e, t) {
|
|
10225
10223
|
var r = n.isInIframe();
|
|
10226
10224
|
if (e === x.Redirect && r && !t)
|
|
10227
|
-
throw
|
|
10225
|
+
throw M.createRedirectInIframeError(r);
|
|
10228
10226
|
}, n.blockAcquireTokenInPopups = function() {
|
|
10229
10227
|
if (n.isInPopup())
|
|
10230
|
-
throw
|
|
10228
|
+
throw M.createBlockAcquireTokenInPopupsError();
|
|
10231
10229
|
}, n.blockNonBrowserEnvironment = function(e) {
|
|
10232
10230
|
if (!e)
|
|
10233
|
-
throw
|
|
10231
|
+
throw M.createNonBrowserEnvironmentError();
|
|
10234
10232
|
}, n.blockNativeBrokerCalledBeforeInitialized = function(e, t) {
|
|
10235
10233
|
if (e && !t)
|
|
10236
|
-
throw
|
|
10234
|
+
throw M.createNativeBrokerCalledBeforeInitialize();
|
|
10237
10235
|
}, n.detectIEOrEdge = function() {
|
|
10238
10236
|
var e = window.navigator.userAgent, t = e.indexOf("MSIE "), r = e.indexOf("Trident/"), o = e.indexOf("Edge/"), i = t > 0 || r > 0, a = o > 0;
|
|
10239
10237
|
return i || a;
|
|
@@ -10245,7 +10243,7 @@ var co = (
|
|
|
10245
10243
|
/** @class */
|
|
10246
10244
|
function() {
|
|
10247
10245
|
function n(e, t, r, o, i, a, s, u, p) {
|
|
10248
|
-
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = u, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(
|
|
10246
|
+
this.config = e, this.browserStorage = t, this.browserCrypto = r, this.networkClient = this.config.system.networkClient, this.eventHandler = i, this.navigationClient = a, this.nativeMessageHandler = u, this.correlationId = p || this.browserCrypto.createNewGuid(), this.logger = o.clone(Qe.MSAL_SKU, tn, this.correlationId), this.performanceClient = s;
|
|
10249
10247
|
}
|
|
10250
10248
|
return n.prototype.clearCacheOnLogout = function(e) {
|
|
10251
10249
|
return T(this, void 0, void 0, function() {
|
|
@@ -10455,7 +10453,7 @@ var jt = (
|
|
|
10455
10453
|
storageInterface: this.browserStorage,
|
|
10456
10454
|
serverTelemetryManager: t,
|
|
10457
10455
|
libraryInfo: {
|
|
10458
|
-
sku:
|
|
10456
|
+
sku: Qe.MSAL_SKU,
|
|
10459
10457
|
version: tn,
|
|
10460
10458
|
cpu: g.EMPTY_STRING,
|
|
10461
10459
|
os: g.EMPTY_STRING
|
|
@@ -10467,12 +10465,12 @@ var jt = (
|
|
|
10467
10465
|
});
|
|
10468
10466
|
}, e.prototype.validateAndExtractStateFromHash = function(t, r, o) {
|
|
10469
10467
|
if (this.logger.verbose("validateAndExtractStateFromHash called", o), !t.state)
|
|
10470
|
-
throw
|
|
10468
|
+
throw M.createHashDoesNotContainStateError();
|
|
10471
10469
|
var i = so.extractBrowserRequestState(this.browserCrypto, t.state);
|
|
10472
10470
|
if (!i)
|
|
10473
|
-
throw
|
|
10471
|
+
throw M.createUnableToParseStateError();
|
|
10474
10472
|
if (i.interactionType !== r)
|
|
10475
|
-
throw
|
|
10473
|
+
throw M.createStateInteractionTypeMismatchError();
|
|
10476
10474
|
return this.logger.verbose("Returning state from hash", o), t.state;
|
|
10477
10475
|
}, e.prototype.getDiscoveredAuthority = function(t, r) {
|
|
10478
10476
|
var o;
|
|
@@ -10532,13 +10530,13 @@ var or = (
|
|
|
10532
10530
|
var i, a, s;
|
|
10533
10531
|
return I(this, function(u) {
|
|
10534
10532
|
if (this.performanceClient.addQueueMeasurement(b.HandleCodeResponseFromHash, this.authCodeRequest.correlationId), this.logger.verbose("InteractionHandler.handleCodeResponse called"), L.isEmpty(e))
|
|
10535
|
-
throw
|
|
10533
|
+
throw M.createEmptyHashError(e);
|
|
10536
10534
|
if (i = this.browserStorage.generateStateKey(t), a = this.browserStorage.getTemporaryCache(i), !a)
|
|
10537
10535
|
throw O.createStateNotFoundError("Cached State");
|
|
10538
10536
|
try {
|
|
10539
10537
|
s = this.authModule.handleFragmentResponse(e, a);
|
|
10540
10538
|
} catch (p) {
|
|
10541
|
-
throw p instanceof bt && p.subError ===
|
|
10539
|
+
throw p instanceof bt && p.subError === A.userCancelledError.code ? M.createUserCancelledError() : p;
|
|
10542
10540
|
}
|
|
10543
10541
|
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), [2, this.handleCodeResponseFromServer(s, t, r, o)];
|
|
10544
10542
|
});
|
|
@@ -10630,7 +10628,7 @@ var Ur = (
|
|
|
10630
10628
|
case 6:
|
|
10631
10629
|
return [3, 8];
|
|
10632
10630
|
case 7:
|
|
10633
|
-
throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),
|
|
10631
|
+
throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"), M.createEmptyNavigationUriError();
|
|
10634
10632
|
case 8:
|
|
10635
10633
|
return [
|
|
10636
10634
|
2
|
|
@@ -10646,13 +10644,13 @@ var Ur = (
|
|
|
10646
10644
|
switch (k.label) {
|
|
10647
10645
|
case 0:
|
|
10648
10646
|
if (this.logger.verbose("RedirectHandler.handleCodeResponse called"), L.isEmpty(t))
|
|
10649
|
-
throw
|
|
10647
|
+
throw M.createEmptyHashError(t);
|
|
10650
10648
|
if (this.browserStorage.setInteractionInProgress(!1), a = this.browserStorage.generateStateKey(r), s = this.browserStorage.getTemporaryCache(a), !s)
|
|
10651
10649
|
throw O.createStateNotFoundError("Cached State");
|
|
10652
10650
|
try {
|
|
10653
10651
|
u = this.authModule.handleFragmentResponse(t, s);
|
|
10654
10652
|
} catch (E) {
|
|
10655
|
-
throw E instanceof bt && E.subError ===
|
|
10653
|
+
throw E instanceof bt && E.subError === A.userCancelledError.code ? M.createUserCancelledError() : E;
|
|
10656
10654
|
}
|
|
10657
10655
|
return p = this.browserStorage.generateNonceKey(s), d = this.browserStorage.getTemporaryCache(p), this.authCodeRequest.code = u.code, u.cloud_instance_host_name ? [4, this.updateTokenEndpointAuthority(u.cloud_instance_host_name, o, i)] : [3, 2];
|
|
10658
10656
|
case 1:
|
|
@@ -10689,7 +10687,7 @@ var Gt = {
|
|
|
10689
10687
|
code: "tokens_not_found_in_internal_memory_cache",
|
|
10690
10688
|
desc: "Tokens not cached in MSAL JS internal memory, please make the WAM request"
|
|
10691
10689
|
}
|
|
10692
|
-
},
|
|
10690
|
+
}, tt = (
|
|
10693
10691
|
/** @class */
|
|
10694
10692
|
function(n) {
|
|
10695
10693
|
be(e, n);
|
|
@@ -10710,13 +10708,13 @@ var Gt = {
|
|
|
10710
10708
|
if (o && o.status)
|
|
10711
10709
|
switch (o.status) {
|
|
10712
10710
|
case pt.ACCOUNT_UNAVAILABLE:
|
|
10713
|
-
return
|
|
10711
|
+
return Ye.createNativeAccountUnavailableError();
|
|
10714
10712
|
case pt.USER_INTERACTION_REQUIRED:
|
|
10715
|
-
return new
|
|
10713
|
+
return new Ye(t, r);
|
|
10716
10714
|
case pt.USER_CANCEL:
|
|
10717
|
-
return
|
|
10715
|
+
return M.createUserCancelledError();
|
|
10718
10716
|
case pt.NO_NETWORK:
|
|
10719
|
-
return
|
|
10717
|
+
return M.createNoNetworkConnectivityError();
|
|
10720
10718
|
}
|
|
10721
10719
|
return new e(t, r, o);
|
|
10722
10720
|
}, e.createUserSwitchError = function() {
|
|
@@ -10751,7 +10749,7 @@ var lo = (
|
|
|
10751
10749
|
fromCache: !0
|
|
10752
10750
|
}), [2, a];
|
|
10753
10751
|
case 4:
|
|
10754
|
-
throw s = u.sent(), s instanceof
|
|
10752
|
+
throw s = u.sent(), s instanceof M && s.errorCode === A.signingKeyNotFoundInStorage.code && this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."), r.endMeasurement({
|
|
10755
10753
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
10756
10754
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
10757
10755
|
success: !1
|
|
@@ -10765,7 +10763,7 @@ var lo = (
|
|
|
10765
10763
|
});
|
|
10766
10764
|
});
|
|
10767
10765
|
}, e.prototype.logout = function() {
|
|
10768
|
-
return Promise.reject(
|
|
10766
|
+
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
10769
10767
|
}, e.prototype.createSilentFlowClient = function(t, r, o) {
|
|
10770
10768
|
return T(this, void 0, void 0, function() {
|
|
10771
10769
|
var i;
|
|
@@ -10808,7 +10806,7 @@ var zt = (
|
|
|
10808
10806
|
return I(this, function(d) {
|
|
10809
10807
|
switch (d.label) {
|
|
10810
10808
|
case 0:
|
|
10811
|
-
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o =
|
|
10809
|
+
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
|
|
10812
10810
|
case 1:
|
|
10813
10811
|
i = d.sent(), d.label = 2;
|
|
10814
10812
|
case 2:
|
|
@@ -10894,7 +10892,7 @@ var zt = (
|
|
|
10894
10892
|
case 3:
|
|
10895
10893
|
return i = p.sent(), this.validateNativeResponse(i), [3, 5];
|
|
10896
10894
|
case 4:
|
|
10897
|
-
if (a = p.sent(), a instanceof
|
|
10895
|
+
if (a = p.sent(), a instanceof tt && a.isFatal())
|
|
10898
10896
|
throw a;
|
|
10899
10897
|
return [3, 5];
|
|
10900
10898
|
case 5:
|
|
@@ -10924,7 +10922,7 @@ var zt = (
|
|
|
10924
10922
|
r = t.prompt, o = br(t, ["prompt"]), r && this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."), this.browserStorage.removeItem(this.browserStorage.generateCacheKey(J.NATIVE_REQUEST)), i = {
|
|
10925
10923
|
method: at.GetToken,
|
|
10926
10924
|
request: o
|
|
10927
|
-
}, a =
|
|
10925
|
+
}, a = Ke.nowSeconds(), d.label = 1;
|
|
10928
10926
|
case 1:
|
|
10929
10927
|
return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
|
|
10930
10928
|
case 2:
|
|
@@ -10948,7 +10946,7 @@ var zt = (
|
|
|
10948
10946
|
switch (f.label) {
|
|
10949
10947
|
case 0:
|
|
10950
10948
|
if (this.logger.trace("NativeInteractionClient - handleNativeResponse called."), t.account.id !== r.accountId)
|
|
10951
|
-
throw
|
|
10949
|
+
throw tt.createUserSwitchError();
|
|
10952
10950
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
10953
10951
|
case 1:
|
|
10954
10952
|
return i = f.sent(), a = i.getPreferredCache(), s = this.createIdTokenObj(t), u = this.createHomeAccountIdentifier(t, s), p = this.createAccountEntity(t, u, s, a), [4, this.generateAuthenticationResult(t, r, s, p, i.canonicalAuthority, o)];
|
|
@@ -10958,7 +10956,7 @@ var zt = (
|
|
|
10958
10956
|
});
|
|
10959
10957
|
});
|
|
10960
10958
|
}, e.prototype.createIdTokenObj = function(t) {
|
|
10961
|
-
return new
|
|
10959
|
+
return new rt(t.id_token || g.EMPTY_STRING, this.browserCrypto);
|
|
10962
10960
|
}, e.prototype.createHomeAccountIdentifier = function(t, r) {
|
|
10963
10961
|
var o = we.generateHomeAccountId(t.client_info || g.EMPTY_STRING, Se.Default, this.logger, this.browserCrypto, r);
|
|
10964
10962
|
return o;
|
|
@@ -10993,13 +10991,13 @@ var zt = (
|
|
|
10993
10991
|
});
|
|
10994
10992
|
}, e.prototype.generateAuthenticationResult = function(t, r, o, i, a, s) {
|
|
10995
10993
|
return T(this, void 0, void 0, function() {
|
|
10996
|
-
var u, p, d, f, _, k, E,
|
|
10994
|
+
var u, p, d, f, _, k, E, N;
|
|
10997
10995
|
return I(this, function(Q) {
|
|
10998
10996
|
switch (Q.label) {
|
|
10999
10997
|
case 0:
|
|
11000
10998
|
return u = this.addTelemetryFromNativeResponse(t), p = t.scope ? Ee.fromString(t.scope) : Ee.fromString(r.scope), d = t.account.properties || {}, f = d.UID || o.claims.oid || o.claims.sub || g.EMPTY_STRING, _ = d.TenantId || o.claims.tid || g.EMPTY_STRING, [4, this.generatePopAccessToken(t, r)];
|
|
11001
10999
|
case 1:
|
|
11002
|
-
return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER,
|
|
11000
|
+
return k = Q.sent(), E = r.tokenType === te.POP ? te.POP : te.BEARER, N = {
|
|
11003
11001
|
authority: a,
|
|
11004
11002
|
uniqueId: f,
|
|
11005
11003
|
tenantId: _,
|
|
@@ -11014,7 +11012,7 @@ var zt = (
|
|
|
11014
11012
|
correlationId: this.correlationId,
|
|
11015
11013
|
state: t.state,
|
|
11016
11014
|
fromNativeBroker: !0
|
|
11017
|
-
}, [2,
|
|
11015
|
+
}, [2, N];
|
|
11018
11016
|
}
|
|
11019
11017
|
});
|
|
11020
11018
|
});
|
|
@@ -11024,8 +11022,8 @@ var zt = (
|
|
|
11024
11022
|
r.logger.error("Error occurred while removing account context from browser storage. " + o);
|
|
11025
11023
|
});
|
|
11026
11024
|
}, e.prototype.cacheNativeTokens = function(t, r, o, i, a, s, u, p) {
|
|
11027
|
-
var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto),
|
|
11028
|
-
this.nativeStorageManager.saveCacheRecord(
|
|
11025
|
+
var d = gt.createIdTokenEntity(o, r.authority, t.id_token || g.EMPTY_STRING, r.clientId, a.claims.tid || g.EMPTY_STRING), f = r.tokenType === te.POP ? g.SHR_NONCE_VALIDITY : (typeof t.expires_in == "string" ? parseInt(t.expires_in, 10) : t.expires_in) || 0, _ = p + f, k = this.generateScopes(t, r), E = _t.createAccessTokenEntity(o, r.authority, s, r.clientId, a ? a.claims.tid || g.EMPTY_STRING : u, k.printScopes(), _, 0, this.browserCrypto), N = new en(i, d, E);
|
|
11026
|
+
this.nativeStorageManager.saveCacheRecord(N);
|
|
11029
11027
|
}, e.prototype.addTelemetryFromNativeResponse = function(t) {
|
|
11030
11028
|
var r = this.getMATSFromResponse(t);
|
|
11031
11029
|
return r ? (this.performanceClient.addStaticFields({
|
|
@@ -11048,7 +11046,7 @@ var zt = (
|
|
|
11048
11046
|
}, e.prototype.validateNativeResponse = function(t) {
|
|
11049
11047
|
if (t.hasOwnProperty("access_token") && t.hasOwnProperty("id_token") && t.hasOwnProperty("client_info") && t.hasOwnProperty("account") && t.hasOwnProperty("scope") && t.hasOwnProperty("expires_in"))
|
|
11050
11048
|
return t;
|
|
11051
|
-
throw
|
|
11049
|
+
throw tt.createUnexpectedError("Response missing expected properties.");
|
|
11052
11050
|
}, e.prototype.getMATSFromResponse = function(t) {
|
|
11053
11051
|
if (t.properties.MATS)
|
|
11054
11052
|
try {
|
|
@@ -11085,7 +11083,7 @@ var zt = (
|
|
|
11085
11083
|
case Te.LOGIN:
|
|
11086
11084
|
return k.logger.trace("initializeNativeRequest: prompt is compatible with native flow"), t.prompt;
|
|
11087
11085
|
default:
|
|
11088
|
-
throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"),
|
|
11086
|
+
throw k.logger.trace("initializeNativeRequest: prompt = " + t.prompt + " is not compatible with native flow"), M.createNativePromptParameterNotSupportedError();
|
|
11089
11087
|
}
|
|
11090
11088
|
}, p = B(B({}, a), {
|
|
11091
11089
|
accountId: this.accountId,
|
|
@@ -11178,7 +11176,7 @@ var yt = (
|
|
|
11178
11176
|
t.onChannelMessage(o);
|
|
11179
11177
|
}, window.postMessage(e, window.origin, [this.messageChannel.port2]), [2, new Promise(function(o, i) {
|
|
11180
11178
|
t.handshakeResolvers.set(e.responseId, { resolve: o, reject: i }), t.timeoutId = window.setTimeout(function() {
|
|
11181
|
-
window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(
|
|
11179
|
+
window.removeEventListener("message", t.windowListener, !1), t.messageChannel.port1.close(), t.messageChannel.port2.close(), t.handshakeEvent.endMeasurement({ extensionHandshakeTimedOut: !0, success: !1 }), i(M.createNativeHandshakeTimeoutError()), t.handshakeResolvers.delete(e.responseId);
|
|
11182
11180
|
}, t.handshakeTimeoutMs);
|
|
11183
11181
|
})];
|
|
11184
11182
|
});
|
|
@@ -11189,7 +11187,7 @@ var yt = (
|
|
|
11189
11187
|
if (!(!t.channel || t.channel !== Vt.CHANNEL_ID) && !(t.extensionId && t.extensionId !== this.extensionId) && t.body.method === at.HandshakeRequest) {
|
|
11190
11188
|
this.logger.verbose(t.extensionId ? "Extension with id: " + t.extensionId + " not installed" : "No extension installed"), clearTimeout(this.timeoutId), this.messageChannel.port1.close(), this.messageChannel.port2.close(), window.removeEventListener("message", this.windowListener, !1);
|
|
11191
11189
|
var r = this.handshakeResolvers.get(t.responseId);
|
|
11192
|
-
r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(
|
|
11190
|
+
r && (this.handshakeEvent.endMeasurement({ success: !1, extensionInstalled: !1 }), r.reject(M.createNativeExtensionNotInstalledError()));
|
|
11193
11191
|
}
|
|
11194
11192
|
}
|
|
11195
11193
|
}, n.prototype.onChannelMessage = function(e) {
|
|
@@ -11202,9 +11200,9 @@ var yt = (
|
|
|
11202
11200
|
return;
|
|
11203
11201
|
var a = t.body.response;
|
|
11204
11202
|
if (this.logger.trace("NativeMessageHandler - Received response from browser extension"), this.logger.tracePii("NativeMessageHandler - Received response from browser extension: " + JSON.stringify(a)), a.status !== "Success")
|
|
11205
|
-
r.reject(
|
|
11203
|
+
r.reject(tt.createError(a.code, a.description, a.ext));
|
|
11206
11204
|
else if (a.result)
|
|
11207
|
-
a.result.code && a.result.description ? r.reject(
|
|
11205
|
+
a.result.code && a.result.description ? r.reject(tt.createError(a.result.code, a.result.description, a.result.ext)) : r.resolve(a.result);
|
|
11208
11206
|
else
|
|
11209
11207
|
throw D.createUnexpectedError("Event does not contain result.");
|
|
11210
11208
|
this.resolvers.delete(t.responseId);
|
|
@@ -11285,12 +11283,12 @@ var Yi = (
|
|
|
11285
11283
|
}, e.prototype.handleRedirectPromise = function(t) {
|
|
11286
11284
|
return T(this, void 0, void 0, function() {
|
|
11287
11285
|
var r, o, i, a, s, u, p, d, f, _, k, E;
|
|
11288
|
-
return I(this, function(
|
|
11289
|
-
switch (
|
|
11286
|
+
return I(this, function(N) {
|
|
11287
|
+
switch (N.label) {
|
|
11290
11288
|
case 0:
|
|
11291
|
-
r = this.initializeServerTelemetryManager(oe.handleRedirectPromise),
|
|
11289
|
+
r = this.initializeServerTelemetryManager(oe.handleRedirectPromise), N.label = 1;
|
|
11292
11290
|
case 1:
|
|
11293
|
-
if (
|
|
11291
|
+
if (N.trys.push([1, 10, , 11]), !this.browserStorage.isInteractionInProgress(!0))
|
|
11294
11292
|
return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."), [2, null];
|
|
11295
11293
|
if (o = this.getRedirectResponseHash(t || window.location.hash), !o)
|
|
11296
11294
|
return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."), this.browserStorage.cleanRequestByInteractionType(x.Redirect), [2, null];
|
|
@@ -11302,7 +11300,7 @@ var Yi = (
|
|
|
11302
11300
|
}
|
|
11303
11301
|
return s = this.browserStorage.getTemporaryCache(J.ORIGIN_URI, !0) || g.EMPTY_STRING, u = W.removeHashFromUrl(s), p = W.removeHashFromUrl(window.location.href), u === p && this.config.auth.navigateToLoginRequestUrl ? (this.logger.verbose("Current page is loginRequestUrl, handling hash"), [4, this.handleHash(o, i, r)]) : [3, 3];
|
|
11304
11302
|
case 2:
|
|
11305
|
-
return d =
|
|
11303
|
+
return d = N.sent(), s.indexOf("#") > -1 && de.replaceHash(s), [2, d];
|
|
11306
11304
|
case 3:
|
|
11307
11305
|
return this.config.auth.navigateToLoginRequestUrl ? [3, 4] : (this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"), [2, this.handleHash(o, i, r)]);
|
|
11308
11306
|
case 4:
|
|
@@ -11312,19 +11310,19 @@ var Yi = (
|
|
|
11312
11310
|
noHistory: !0
|
|
11313
11311
|
}, _ = !0, !s || s === "null" ? (k = de.getHomepage(), this.browserStorage.setTemporaryCache(J.ORIGIN_URI, k, !0), this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"), [4, this.navigationClient.navigateInternal(k, f)]) : [3, 6]) : [3, 9];
|
|
11314
11312
|
case 5:
|
|
11315
|
-
return _ =
|
|
11313
|
+
return _ = N.sent(), [3, 8];
|
|
11316
11314
|
case 6:
|
|
11317
11315
|
return this.logger.verbose("Navigating to loginRequestUrl: " + s), [4, this.navigationClient.navigateInternal(s, f)];
|
|
11318
11316
|
case 7:
|
|
11319
|
-
_ =
|
|
11317
|
+
_ = N.sent(), N.label = 8;
|
|
11320
11318
|
case 8:
|
|
11321
11319
|
if (!_)
|
|
11322
11320
|
return [2, this.handleHash(o, i, r)];
|
|
11323
|
-
|
|
11321
|
+
N.label = 9;
|
|
11324
11322
|
case 9:
|
|
11325
11323
|
return [2, null];
|
|
11326
11324
|
case 10:
|
|
11327
|
-
throw E =
|
|
11325
|
+
throw E = N.sent(), E instanceof D && E.setCorrelationId(this.correlationId), r.cacheFailedRequest(E), this.browserStorage.cleanRequestByInteractionType(x.Redirect), E;
|
|
11328
11326
|
case 11:
|
|
11329
11327
|
return [
|
|
11330
11328
|
2
|
|
@@ -11348,7 +11346,7 @@ var Yi = (
|
|
|
11348
11346
|
case 0:
|
|
11349
11347
|
if (i = this.browserStorage.getCachedRequest(r, this.browserCrypto), this.logger.verbose("handleHash called, retrieved cached request"), a = W.getDeserializedHash(t), a.accountId) {
|
|
11350
11348
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11351
|
-
throw
|
|
11349
|
+
throw M.createNativeConnectionNotEstablishedError();
|
|
11352
11350
|
return s = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, a.accountId, this.nativeStorage, i.correlationId), u = st.parseRequestState(this.browserCrypto, r).userRequestState, [2, s.acquireToken(B(B({}, i), {
|
|
11353
11351
|
state: u,
|
|
11354
11352
|
prompt: void 0
|
|
@@ -11358,7 +11356,7 @@ var Yi = (
|
|
|
11358
11356
|
})];
|
|
11359
11357
|
}
|
|
11360
11358
|
if (p = this.browserStorage.getCachedAuthority(r), !p)
|
|
11361
|
-
throw
|
|
11359
|
+
throw M.createNoCachedAuthorityError();
|
|
11362
11360
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, i.correlationId), [4, this.createAuthCodeClient(o, p)];
|
|
11363
11361
|
case 1:
|
|
11364
11362
|
return d = k.sent(), this.logger.verbose("Auth code client created"), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, i), f = new Ur(d, this.browserStorage, i, this.logger, this.browserCrypto, this.performanceClient), [4, f.handleCodeResponseFromHash(t, r, d.authority, this.networkClient)];
|
|
@@ -11452,7 +11450,7 @@ var Wi = (
|
|
|
11452
11450
|
}
|
|
11453
11451
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
11454
11452
|
return T(this, void 0, void 0, function() {
|
|
11455
|
-
var a, s, u, p, d, f, _, k, E,
|
|
11453
|
+
var a, s, u, p, d, f, _, k, E, N, Q, X, G, $, Ae, xe, Ve, Ct = this;
|
|
11456
11454
|
return I(this, function(ce) {
|
|
11457
11455
|
switch (ce.label) {
|
|
11458
11456
|
case 0:
|
|
@@ -11470,14 +11468,14 @@ var Wi = (
|
|
|
11470
11468
|
popup: i,
|
|
11471
11469
|
popupName: r,
|
|
11472
11470
|
popupWindowAttributes: o
|
|
11473
|
-
},
|
|
11471
|
+
}, N = this.initiateAuthRequest(_, E), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: N }, null), [4, this.monitorPopupForHash(N)];
|
|
11474
11472
|
case 6:
|
|
11475
11473
|
if (Q = ce.sent(), X = W.getDeserializedHash(Q), G = this.validateAndExtractStateFromHash(X, x.Popup, s.correlationId), yn.removeThrottle(this.browserStorage, this.config.auth.clientId, u), X.accountId) {
|
|
11476
11474
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), f && f.endMeasurement({
|
|
11477
11475
|
success: !0,
|
|
11478
11476
|
isNativeBroker: !0
|
|
11479
11477
|
}), !this.nativeMessageHandler)
|
|
11480
|
-
throw
|
|
11478
|
+
throw M.createNativeConnectionNotEstablishedError();
|
|
11481
11479
|
return $ = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, X.accountId, this.nativeStorage, s.correlationId), Ae = st.parseRequestState(this.browserCrypto, G).userRequestState, [2, $.acquireToken(B(B({}, s), {
|
|
11482
11480
|
state: Ae,
|
|
11483
11481
|
prompt: void 0
|
|
@@ -11490,7 +11488,7 @@ var Wi = (
|
|
|
11490
11488
|
case 7:
|
|
11491
11489
|
return xe = ce.sent(), [2, xe];
|
|
11492
11490
|
case 8:
|
|
11493
|
-
throw
|
|
11491
|
+
throw Ve = ce.sent(), i && i.close(), Ve instanceof D && Ve.setCorrelationId(this.correlationId), a.cacheFailedRequest(Ve), this.browserStorage.cleanRequestByState(s.state), Ve;
|
|
11494
11492
|
case 9:
|
|
11495
11493
|
return [
|
|
11496
11494
|
2
|
|
@@ -11502,24 +11500,24 @@ var Wi = (
|
|
|
11502
11500
|
}, e.prototype.logoutPopupAsync = function(t, r, o, i, a, s) {
|
|
11503
11501
|
return T(this, void 0, void 0, function() {
|
|
11504
11502
|
var u, p, d, f, _, k, E;
|
|
11505
|
-
return I(this, function(
|
|
11506
|
-
switch (
|
|
11503
|
+
return I(this, function(N) {
|
|
11504
|
+
switch (N.label) {
|
|
11507
11505
|
case 0:
|
|
11508
|
-
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup),
|
|
11506
|
+
this.logger.verbose("logoutPopupAsync called"), this.eventHandler.emitEvent(q.LOGOUT_START, x.Popup, t), u = this.initializeServerTelemetryManager(oe.logoutPopup), N.label = 1;
|
|
11509
11507
|
case 1:
|
|
11510
|
-
return
|
|
11508
|
+
return N.trys.push([1, 5, , 6]), [4, this.clearCacheOnLogout(t.account)];
|
|
11511
11509
|
case 2:
|
|
11512
|
-
return
|
|
11510
|
+
return N.sent(), this.performanceClient.setPreQueueTime(b.StandardInteractionClientCreateAuthCodeClient, t.correlationId), [4, this.createAuthCodeClient(u, i)];
|
|
11513
11511
|
case 3:
|
|
11514
|
-
return p =
|
|
11512
|
+
return p = N.sent(), this.logger.verbose("Auth code client created"), d = p.getLogoutUri(t), this.eventHandler.emitEvent(q.LOGOUT_SUCCESS, x.Popup, t), f = this.openPopup(d, { popupName: r, popupWindowAttributes: o, popup: a }), this.eventHandler.emitEvent(q.POPUP_OPENED, x.Popup, { popupWindow: f }, null), [4, this.waitForLogoutPopup(f)];
|
|
11515
11513
|
case 4:
|
|
11516
|
-
return
|
|
11514
|
+
return N.sent(), s ? (_ = {
|
|
11517
11515
|
apiId: oe.logoutPopup,
|
|
11518
11516
|
timeout: this.config.system.redirectNavigationTimeout,
|
|
11519
11517
|
noHistory: !1
|
|
11520
11518
|
}, k = W.getAbsoluteUrl(s, de.getCurrentUri()), this.logger.verbose("Redirecting main window to url specified in the request"), this.logger.verbosePii("Redirecting main window to: " + k), this.navigationClient.navigateInternal(k, _)) : this.logger.verbose("No main window navigation requested"), [3, 6];
|
|
11521
11519
|
case 5:
|
|
11522
|
-
throw E =
|
|
11520
|
+
throw E = N.sent(), a && a.close(), E instanceof D && E.setCorrelationId(this.correlationId), this.browserStorage.setInteractionInProgress(!1), this.eventHandler.emitEvent(q.LOGOUT_FAILURE, x.Popup, null, E), this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), u.cacheFailedRequest(E), E;
|
|
11523
11521
|
case 6:
|
|
11524
11522
|
return this.eventHandler.emitEvent(q.LOGOUT_END, x.Popup), [
|
|
11525
11523
|
2
|
|
@@ -11530,7 +11528,7 @@ var Wi = (
|
|
|
11530
11528
|
});
|
|
11531
11529
|
}, e.prototype.initiateAuthRequest = function(t, r) {
|
|
11532
11530
|
if (L.isEmpty(t))
|
|
11533
|
-
throw this.logger.error("Navigate url is empty"),
|
|
11531
|
+
throw this.logger.error("Navigate url is empty"), M.createEmptyNavigationUriError();
|
|
11534
11532
|
return this.logger.infoPii("Navigate to: " + t), this.openPopup(t, r);
|
|
11535
11533
|
}, e.prototype.monitorPopupForHash = function(t) {
|
|
11536
11534
|
var r = this;
|
|
@@ -11539,7 +11537,7 @@ var Wi = (
|
|
|
11539
11537
|
r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");
|
|
11540
11538
|
var u = setInterval(function() {
|
|
11541
11539
|
if (t.closed) {
|
|
11542
|
-
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(
|
|
11540
|
+
r.logger.error("PopupHandler.monitorPopupForHash - window closed"), r.cleanPopup(), clearInterval(u), i(M.createUserCancelledError());
|
|
11543
11541
|
return;
|
|
11544
11542
|
}
|
|
11545
11543
|
var p = g.EMPTY_STRING, d = g.EMPTY_STRING;
|
|
@@ -11547,7 +11545,7 @@ var Wi = (
|
|
|
11547
11545
|
p = t.location.href, d = t.location.hash;
|
|
11548
11546
|
} catch {
|
|
11549
11547
|
}
|
|
11550
|
-
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(
|
|
11548
|
+
L.isEmpty(p) || p === "about:blank" || (r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"), s++, d ? (r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"), clearInterval(u), r.cleanPopup(t), W.hashContainsKnownProperties(d) ? (r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."), o(d)) : (r.logger.error("PopupHandler.monitorPopupForHash - found hash in url but it does not contain known properties. Check that your router is not changing the hash prematurely."), r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: " + d), i(M.createHashDoesNotContainKnownPropertiesError()))) : s > a && (r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"), clearInterval(u), i(M.createMonitorPopupTimeoutError())));
|
|
11551
11549
|
}, r.config.system.pollIntervalMilliseconds);
|
|
11552
11550
|
});
|
|
11553
11551
|
}, e.prototype.waitForLogoutPopup = function(t) {
|
|
@@ -11568,23 +11566,23 @@ var Wi = (
|
|
|
11568
11566
|
try {
|
|
11569
11567
|
var o = void 0;
|
|
11570
11568
|
if (r.popup ? (o = r.popup, this.logger.verbosePii("Navigating popup window to: " + t), o.location.assign(t)) : typeof r.popup > "u" && (this.logger.verbosePii("Opening popup window to: " + t), o = this.openSizedPopup(t, r.popupName, r.popupWindowAttributes)), !o)
|
|
11571
|
-
throw
|
|
11569
|
+
throw M.createEmptyWindowCreatedError();
|
|
11572
11570
|
return o.focus && o.focus(), this.currentWindow = o, window.addEventListener("beforeunload", this.unloadWindow), o;
|
|
11573
11571
|
} catch (i) {
|
|
11574
|
-
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1),
|
|
11572
|
+
throw this.logger.error("error opening popup " + i.message), this.browserStorage.setInteractionInProgress(!1), M.createPopupWindowError(i.toString());
|
|
11575
11573
|
}
|
|
11576
11574
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
11577
|
-
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height,
|
|
11578
|
-
return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k =
|
|
11575
|
+
var i, a, s, u, p = window.screenLeft ? window.screenLeft : window.screenX, d = window.screenTop ? window.screenTop : window.screenY, f = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, _ = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight, k = (i = o.popupSize) === null || i === void 0 ? void 0 : i.width, E = (a = o.popupSize) === null || a === void 0 ? void 0 : a.height, N = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
|
|
11576
|
+
return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k = Qe.POPUP_WIDTH), (!E || E < 0 || E > _) && (this.logger.verbose("Default popup window height used. Window height not configured or invalid."), E = Qe.POPUP_HEIGHT), (!N || N < 0 || N > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), N = Math.max(0, _ / 2 - Qe.POPUP_HEIGHT / 2 + d)), (!Q || Q < 0 || Q > f) && (this.logger.verbose("Default popup window left position used. Window left not configured or invalid."), Q = Math.max(0, f / 2 - Qe.POPUP_WIDTH / 2 + p)), window.open(t, r, "width=" + k + ", height=" + E + ", top=" + N + ", left=" + Q + ", scrollbars=yes");
|
|
11579
11577
|
}, e.prototype.unloadWindow = function(t) {
|
|
11580
11578
|
this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
11581
11579
|
}, e.prototype.cleanPopup = function(t) {
|
|
11582
11580
|
t && t.close(), window.removeEventListener("beforeunload", this.unloadWindow), this.browserStorage.setInteractionInProgress(!1);
|
|
11583
11581
|
}, e.prototype.generatePopupName = function(t, r) {
|
|
11584
|
-
return
|
|
11582
|
+
return Qe.POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + t.join("-") + "." + r + "." + this.correlationId;
|
|
11585
11583
|
}, e.prototype.generateLogoutPopupName = function(t) {
|
|
11586
11584
|
var r = t.account && t.account.homeAccountId;
|
|
11587
|
-
return
|
|
11585
|
+
return Qe.POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + r + "." + this.correlationId;
|
|
11588
11586
|
}, e;
|
|
11589
11587
|
}(jt)
|
|
11590
11588
|
);
|
|
@@ -11627,18 +11625,18 @@ function ea(n, e) {
|
|
|
11627
11625
|
},
|
|
11628
11626
|
skipAuthorityMetadataCache: !1
|
|
11629
11627
|
}, s = {
|
|
11630
|
-
cacheLocation:
|
|
11631
|
-
temporaryCacheLocation:
|
|
11628
|
+
cacheLocation: pe.SessionStorage,
|
|
11629
|
+
temporaryCacheLocation: pe.SessionStorage,
|
|
11632
11630
|
storeAuthStateInCookie: !1,
|
|
11633
11631
|
secureCookies: !1,
|
|
11634
11632
|
// Default cache migration to true if cache location is localStorage since entries are preserved across tabs/windows. Migration has little to no benefit in sessionStorage and memoryStorage
|
|
11635
|
-
cacheMigrationEnabled: !!(r && r.cacheLocation ===
|
|
11633
|
+
cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
|
|
11636
11634
|
claimsBasedCachingEnabled: !0
|
|
11637
11635
|
}, u = {
|
|
11638
11636
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
11639
11637
|
loggerCallback: function() {
|
|
11640
11638
|
},
|
|
11641
|
-
logLevel:
|
|
11639
|
+
logLevel: ve.Info,
|
|
11642
11640
|
piiLoggingEnabled: !1
|
|
11643
11641
|
}, p = B(B({}, no), {
|
|
11644
11642
|
loggerOptions: u,
|
|
@@ -11654,7 +11652,7 @@ function ea(n, e) {
|
|
|
11654
11652
|
allowRedirectInIframe: !1,
|
|
11655
11653
|
allowNativeBroker: !1,
|
|
11656
11654
|
nativeBrokerHandshakeTimeout: (o == null ? void 0 : o.nativeBrokerHandshakeTimeout) || Zi,
|
|
11657
|
-
pollIntervalMilliseconds:
|
|
11655
|
+
pollIntervalMilliseconds: Qe.DEFAULT_POLL_INTERVAL_MS,
|
|
11658
11656
|
cryptoOptions: {
|
|
11659
11657
|
useMsrCrypto: !1,
|
|
11660
11658
|
entropy: void 0
|
|
@@ -11687,7 +11685,7 @@ var uo = (
|
|
|
11687
11685
|
switch (r.label) {
|
|
11688
11686
|
case 0:
|
|
11689
11687
|
if (this.performanceClient.addQueueMeasurement(b.SilentHandlerInitiateAuthRequest, this.authCodeRequest.correlationId), L.isEmpty(t))
|
|
11690
|
-
throw this.logger.info("Navigate url is empty"),
|
|
11688
|
+
throw this.logger.info("Navigate url is empty"), M.createEmptyNavigationUriError();
|
|
11691
11689
|
return this.navigateFrameWait ? (this.performanceClient.setPreQueueTime(b.SilentHandlerLoadFrame, this.authCodeRequest.correlationId), [4, this.loadFrame(t)]) : [3, 2];
|
|
11692
11690
|
case 1:
|
|
11693
11691
|
return [2, r.sent()];
|
|
@@ -11702,7 +11700,7 @@ var uo = (
|
|
|
11702
11700
|
r < Jn && o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower (" + r + "ms) than the default (" + Jn + "ms). This may result in timeouts.");
|
|
11703
11701
|
var s = window.performance.now(), u = s + r, p = setInterval(function() {
|
|
11704
11702
|
if (window.performance.now() > u) {
|
|
11705
|
-
o.removeHiddenIframe(t), clearInterval(p), a(
|
|
11703
|
+
o.removeHiddenIframe(t), clearInterval(p), a(M.createMonitorIframeTimeoutError());
|
|
11706
11704
|
return;
|
|
11707
11705
|
}
|
|
11708
11706
|
var d = g.EMPTY_STRING, f = t.contentWindow;
|
|
@@ -11760,7 +11758,7 @@ var ta = (
|
|
|
11760
11758
|
if (this.performanceClient.addQueueMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), this.logger.verbose("acquireTokenByIframe called"), r = this.performanceClient.startMeasurement(b.SilentIframeClientAcquireToken, t.correlationId), L.isEmpty(t.loginHint) && L.isEmpty(t.sid) && (!t.account || L.isEmpty(t.account.username)) && this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."), t.prompt && t.prompt !== Te.NONE && t.prompt !== Te.NO_SESSION)
|
|
11761
11759
|
throw r.endMeasurement({
|
|
11762
11760
|
success: !1
|
|
11763
|
-
}),
|
|
11761
|
+
}), M.createSilentPromptValueError(t.prompt);
|
|
11764
11762
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(B(B({}, t), { prompt: t.prompt || Te.NONE }), x.Silent)];
|
|
11765
11763
|
case 1:
|
|
11766
11764
|
o = u.sent(), this.browserStorage.updateCacheEntries(o.state, o.nonce, o.authority, o.loginHint || g.EMPTY_STRING, o.account || null), i = this.initializeServerTelemetryManager(this.apiId), u.label = 2;
|
|
@@ -11791,7 +11789,7 @@ var ta = (
|
|
|
11791
11789
|
});
|
|
11792
11790
|
});
|
|
11793
11791
|
}, e.prototype.logout = function() {
|
|
11794
|
-
return Promise.reject(
|
|
11792
|
+
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
11795
11793
|
}, e.prototype.silentTokenHelper = function(t, r) {
|
|
11796
11794
|
return T(this, void 0, void 0, function() {
|
|
11797
11795
|
var o, i, a, s, u, p, d, f, _, k = this;
|
|
@@ -11808,7 +11806,7 @@ var ta = (
|
|
|
11808
11806
|
case 4:
|
|
11809
11807
|
if (u = E.sent(), p = W.getDeserializedHash(u), d = this.validateAndExtractStateFromHash(p, x.Silent, o.correlationId), p.accountId) {
|
|
11810
11808
|
if (this.logger.verbose("Account id found in hash, calling WAM for token"), !this.nativeMessageHandler)
|
|
11811
|
-
throw
|
|
11809
|
+
throw M.createNativeConnectionNotEstablishedError();
|
|
11812
11810
|
return f = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, this.apiId, this.performanceClient, this.nativeMessageHandler, p.accountId, this.browserStorage, this.correlationId), _ = st.parseRequestState(this.browserCrypto, d).userRequestState, [2, f.acquireToken(B(B({}, r), { state: _, prompt: r.prompt || Te.NONE })).finally(function() {
|
|
11813
11811
|
k.browserStorage.cleanRequestByState(d);
|
|
11814
11812
|
})];
|
|
@@ -11855,7 +11853,7 @@ var na = (
|
|
|
11855
11853
|
});
|
|
11856
11854
|
});
|
|
11857
11855
|
}, e.prototype.logout = function() {
|
|
11858
|
-
return Promise.reject(
|
|
11856
|
+
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
11859
11857
|
}, e.prototype.createRefreshTokenClient = function(t, r, o) {
|
|
11860
11858
|
return T(this, void 0, void 0, function() {
|
|
11861
11859
|
var i;
|
|
@@ -11912,7 +11910,7 @@ var ra = (
|
|
|
11912
11910
|
var r = JSON.parse(t);
|
|
11913
11911
|
if (typeof r != "object" || !we.isAccountEntity(r))
|
|
11914
11912
|
return;
|
|
11915
|
-
var o =
|
|
11913
|
+
var o = Me.toObject(new we(), r), i = o.getAccountInfo();
|
|
11916
11914
|
!e.oldValue && e.newValue ? (this.logger.info("Account was added to cache in a different window"), this.emitEvent(q.ACCOUNT_ADDED, void 0, i)) : !e.newValue && e.oldValue && (this.logger.info("Account was removed from cache in a different window"), this.emitEvent(q.ACCOUNT_REMOVED, void 0, i));
|
|
11917
11915
|
} catch {
|
|
11918
11916
|
return;
|
|
@@ -12086,7 +12084,7 @@ var ia = 32, aa = (
|
|
|
12086
12084
|
var t = this.base64Encode.urlEncodeArr(e);
|
|
12087
12085
|
return t;
|
|
12088
12086
|
} catch (r) {
|
|
12089
|
-
throw
|
|
12087
|
+
throw M.createPkceNotGeneratedError(r);
|
|
12090
12088
|
}
|
|
12091
12089
|
}, n.prototype.generateCodeChallengeFromVerifier = function(e) {
|
|
12092
12090
|
return T(this, void 0, void 0, function() {
|
|
@@ -12098,7 +12096,7 @@ var ia = 32, aa = (
|
|
|
12098
12096
|
case 1:
|
|
12099
12097
|
return t = o.sent(), [2, this.base64Encode.urlEncodeArr(new Uint8Array(t))];
|
|
12100
12098
|
case 2:
|
|
12101
|
-
throw r = o.sent(),
|
|
12099
|
+
throw r = o.sent(), M.createPkceNotGeneratedError(r);
|
|
12102
12100
|
case 3:
|
|
12103
12101
|
return [
|
|
12104
12102
|
2
|
|
@@ -12289,7 +12287,7 @@ var ua = "RSASSA-PKCS1-v1_5", xr = "SHA-256", da = 2048, pa = new Uint8Array([1,
|
|
|
12289
12287
|
else if (this.hasMsrCrypto() && (!((r = this.cryptoOptions) === null || r === void 0) && r.useMsrCrypto))
|
|
12290
12288
|
this.logger.verbose("BrowserCrypto: MSR crypto interface available"), this.subtleCrypto = new ca();
|
|
12291
12289
|
else
|
|
12292
|
-
throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."),
|
|
12290
|
+
throw this.hasMsrCrypto() && this.logger.info("BrowserCrypto: MSR Crypto interface available but system.cryptoOptions.useMsrCrypto not enabled"), this.logger.error("BrowserCrypto: No crypto interfaces available."), M.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");
|
|
12293
12291
|
if (this.subtleCrypto.initPrng) {
|
|
12294
12292
|
if (this.logger.verbose("BrowserCrypto: Interface requires entropy"), !(!((o = this.cryptoOptions) === null || o === void 0) && o.entropy))
|
|
12295
12293
|
throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."), En.createEntropyNotProvided();
|
|
@@ -12364,7 +12362,7 @@ var ha = (
|
|
|
12364
12362
|
var s = a;
|
|
12365
12363
|
e.db = s.target.result, e.dbOpen = !0, r();
|
|
12366
12364
|
}), i.addEventListener("error", function() {
|
|
12367
|
-
return o(
|
|
12365
|
+
return o(M.createDatabaseUnavailableError());
|
|
12368
12366
|
});
|
|
12369
12367
|
})];
|
|
12370
12368
|
});
|
|
@@ -12398,7 +12396,7 @@ var ha = (
|
|
|
12398
12396
|
case 1:
|
|
12399
12397
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12400
12398
|
if (!t.db)
|
|
12401
|
-
return i(
|
|
12399
|
+
return i(M.createDatabaseNotOpenError());
|
|
12402
12400
|
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.get(e);
|
|
12403
12401
|
u.addEventListener("success", function(p) {
|
|
12404
12402
|
var d = p;
|
|
@@ -12420,7 +12418,7 @@ var ha = (
|
|
|
12420
12418
|
case 1:
|
|
12421
12419
|
return o.sent(), [2, new Promise(function(i, a) {
|
|
12422
12420
|
if (!r.db)
|
|
12423
|
-
return a(
|
|
12421
|
+
return a(M.createDatabaseNotOpenError());
|
|
12424
12422
|
var s = r.db.transaction([r.tableName], "readwrite"), u = s.objectStore(r.tableName), p = u.put(t, e);
|
|
12425
12423
|
p.addEventListener("success", function() {
|
|
12426
12424
|
r.closeConnection(), i();
|
|
@@ -12441,7 +12439,7 @@ var ha = (
|
|
|
12441
12439
|
case 1:
|
|
12442
12440
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12443
12441
|
if (!t.db)
|
|
12444
|
-
return i(
|
|
12442
|
+
return i(M.createDatabaseNotOpenError());
|
|
12445
12443
|
var a = t.db.transaction([t.tableName], "readwrite"), s = a.objectStore(t.tableName), u = s.delete(e);
|
|
12446
12444
|
u.addEventListener("success", function() {
|
|
12447
12445
|
t.closeConnection(), o();
|
|
@@ -12462,7 +12460,7 @@ var ha = (
|
|
|
12462
12460
|
case 1:
|
|
12463
12461
|
return t.sent(), [2, new Promise(function(r, o) {
|
|
12464
12462
|
if (!e.db)
|
|
12465
|
-
return o(
|
|
12463
|
+
return o(M.createDatabaseNotOpenError());
|
|
12466
12464
|
var i = e.db.transaction([e.tableName], "readonly"), a = i.objectStore(e.tableName), s = a.getAllKeys();
|
|
12467
12465
|
s.addEventListener("success", function(u) {
|
|
12468
12466
|
var p = u;
|
|
@@ -12484,7 +12482,7 @@ var ha = (
|
|
|
12484
12482
|
case 1:
|
|
12485
12483
|
return r.sent(), [2, new Promise(function(o, i) {
|
|
12486
12484
|
if (!t.db)
|
|
12487
|
-
return i(
|
|
12485
|
+
return i(M.createDatabaseNotOpenError());
|
|
12488
12486
|
var a = t.db.transaction([t.tableName], "readonly"), s = a.objectStore(t.tableName), u = s.count(e);
|
|
12489
12487
|
u.addEventListener("success", function(p) {
|
|
12490
12488
|
var d = p;
|
|
@@ -12522,7 +12520,7 @@ var Br = (
|
|
|
12522
12520
|
this.inMemoryCache = new Wn(), this.indexedDBCache = new ha(), this.logger = e, this.storeName = t;
|
|
12523
12521
|
}
|
|
12524
12522
|
return n.prototype.handleDatabaseAccessError = function(e) {
|
|
12525
|
-
if (e instanceof
|
|
12523
|
+
if (e instanceof M && e.errorCode === A.databaseUnavailable.code)
|
|
12526
12524
|
this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");
|
|
12527
12525
|
else
|
|
12528
12526
|
throw e;
|
|
@@ -12768,21 +12766,21 @@ var fa = (
|
|
|
12768
12766
|
}, n.prototype.signJwt = function(e, t, r) {
|
|
12769
12767
|
var o;
|
|
12770
12768
|
return T(this, void 0, void 0, function() {
|
|
12771
|
-
var i, a, s, u, p, d, f, _, k, E,
|
|
12769
|
+
var i, a, s, u, p, d, f, _, k, E, N, Q, X;
|
|
12772
12770
|
return I(this, function(G) {
|
|
12773
12771
|
switch (G.label) {
|
|
12774
12772
|
case 0:
|
|
12775
12773
|
return i = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(b.CryptoOptsSignJwt, r), [4, this.cache.asymmetricKeys.getItem(t)];
|
|
12776
12774
|
case 1:
|
|
12777
12775
|
if (a = G.sent(), !a)
|
|
12778
|
-
throw
|
|
12776
|
+
throw M.createSigningKeyNotFoundInStorageError(t);
|
|
12779
12777
|
return [4, this.browserCrypto.exportJwk(a.publicKey)];
|
|
12780
12778
|
case 2:
|
|
12781
12779
|
return s = G.sent(), u = ct.getSortedObjectString(s), p = this.b64Encode.urlEncode(JSON.stringify({ kid: t })), d = Hi.getShrHeaderString({ kid: p, alg: s.alg }), f = this.b64Encode.urlEncode(d), e.cnf = {
|
|
12782
12780
|
jwk: JSON.parse(u)
|
|
12783
12781
|
}, _ = this.b64Encode.urlEncode(JSON.stringify(e)), k = f + "." + _, E = ct.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
|
|
12784
12782
|
case 3:
|
|
12785
|
-
return
|
|
12783
|
+
return N = G.sent(), Q = this.b64Encode.urlEncodeArr(new Uint8Array(N)), X = k + "." + Q, i && i.endMeasurement({
|
|
12786
12784
|
success: !0
|
|
12787
12785
|
}), [2, X];
|
|
12788
12786
|
}
|
|
@@ -12921,8 +12919,8 @@ var _a = (
|
|
|
12921
12919
|
}
|
|
12922
12920
|
return n.prototype.loadExternalTokens = function(e, t, r) {
|
|
12923
12921
|
if (this.logger.info("TokenCache - loadExternalTokens called"), !t.id_token)
|
|
12924
|
-
throw
|
|
12925
|
-
var o = new
|
|
12922
|
+
throw M.createUnableToLoadTokenError("Please ensure server response includes id token.");
|
|
12923
|
+
var o = new rt(t.id_token, this.cryptoObj), i, a;
|
|
12926
12924
|
if (e.account) {
|
|
12927
12925
|
var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
|
|
12928
12926
|
i = new en(s, this.loadIdToken(o, s.homeAccountId, e.account.environment, e.account.tenantId), this.loadAccessToken(e, t, s.homeAccountId, e.account.environment, e.account.tenantId, r), this.loadRefreshToken(e, t, s.homeAccountId, e.account.environment));
|
|
@@ -12943,41 +12941,41 @@ var _a = (
|
|
|
12943
12941
|
var s = this.loadAccount(o, a.hostnameAndPort, t.client_info, a.authorityType);
|
|
12944
12942
|
i = new en(s, this.loadIdToken(o, s.homeAccountId, a.hostnameAndPort, a.tenant), this.loadAccessToken(e, t, s.homeAccountId, a.hostnameAndPort, a.tenant, r), this.loadRefreshToken(e, t, s.homeAccountId, a.hostnameAndPort));
|
|
12945
12943
|
} else
|
|
12946
|
-
throw
|
|
12944
|
+
throw M.createUnableToLoadTokenError("Please provide clientInfo in the response or options.");
|
|
12947
12945
|
} else
|
|
12948
|
-
throw
|
|
12946
|
+
throw M.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");
|
|
12949
12947
|
return this.generateAuthenticationResult(e, o, i, a);
|
|
12950
12948
|
}, n.prototype.loadAccount = function(e, t, r, o, i) {
|
|
12951
12949
|
var a;
|
|
12952
12950
|
if (i ? a = i : o !== void 0 && r && (a = we.generateHomeAccountId(r, o, this.logger, this.cryptoObj, e)), !a)
|
|
12953
|
-
throw
|
|
12951
|
+
throw M.createUnableToLoadTokenError("Unexpected missing homeAccountId");
|
|
12954
12952
|
var s = r ? we.createAccount(r, a, e, void 0, void 0, void 0, t) : we.createGenericAccount(a, e, void 0, void 0, void 0, t);
|
|
12955
12953
|
if (this.isBrowserEnvironment)
|
|
12956
12954
|
return this.logger.verbose("TokenCache - loading account"), this.storage.setAccount(s), s;
|
|
12957
|
-
throw
|
|
12955
|
+
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12958
12956
|
}, n.prototype.loadIdToken = function(e, t, r, o) {
|
|
12959
12957
|
var i = gt.createIdTokenEntity(t, r, e.rawToken, this.config.auth.clientId, o);
|
|
12960
12958
|
if (this.isBrowserEnvironment)
|
|
12961
12959
|
return this.logger.verbose("TokenCache - loading id token"), this.storage.setIdTokenCredential(i), i;
|
|
12962
|
-
throw
|
|
12960
|
+
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12963
12961
|
}, n.prototype.loadAccessToken = function(e, t, r, o, i, a) {
|
|
12964
12962
|
if (!t.access_token)
|
|
12965
12963
|
return this.logger.verbose("TokenCache - No access token provided for caching"), null;
|
|
12966
12964
|
if (!t.expires_in)
|
|
12967
|
-
throw
|
|
12965
|
+
throw M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");
|
|
12968
12966
|
if (!a.extendedExpiresOn)
|
|
12969
|
-
throw
|
|
12967
|
+
throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");
|
|
12970
12968
|
var s = new Ee(e.scopes).printScopes(), u = a.expiresOn || t.expires_in + (/* @__PURE__ */ new Date()).getTime() / 1e3, p = a.extendedExpiresOn, d = _t.createAccessTokenEntity(r, o, t.access_token, this.config.auth.clientId, i, s, u, p, this.cryptoObj);
|
|
12971
12969
|
if (this.isBrowserEnvironment)
|
|
12972
12970
|
return this.logger.verbose("TokenCache - loading access token"), this.storage.setAccessTokenCredential(d), d;
|
|
12973
|
-
throw
|
|
12971
|
+
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12974
12972
|
}, n.prototype.loadRefreshToken = function(e, t, r, o) {
|
|
12975
12973
|
if (!t.refresh_token)
|
|
12976
12974
|
return this.logger.verbose("TokenCache - No refresh token provided for caching"), null;
|
|
12977
|
-
var i =
|
|
12975
|
+
var i = Mt.createRefreshTokenEntity(r, o, t.refresh_token, this.config.auth.clientId);
|
|
12978
12976
|
if (this.isBrowserEnvironment)
|
|
12979
12977
|
return this.logger.verbose("TokenCache - loading refresh token"), this.storage.setRefreshTokenCredential(i), i;
|
|
12980
|
-
throw
|
|
12978
|
+
throw M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.");
|
|
12981
12979
|
}, n.prototype.generateAuthenticationResult = function(e, t, r, o) {
|
|
12982
12980
|
var i, a, s, u = g.EMPTY_STRING, p = [], d = null, f;
|
|
12983
12981
|
r != null && r.accessToken && (u = r.accessToken.secret, p = Ee.fromString(r.accessToken.target).asArray(), d = new Date(Number(r.accessToken.expiresOn) * 1e3), f = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3));
|
|
@@ -13035,7 +13033,7 @@ var ya = (
|
|
|
13035
13033
|
switch (d.label) {
|
|
13036
13034
|
case 0:
|
|
13037
13035
|
if (this.logger.trace("SilentAuthCodeClient.acquireToken called"), !t.code)
|
|
13038
|
-
throw
|
|
13036
|
+
throw M.createAuthCodeRequiredError();
|
|
13039
13037
|
return this.performanceClient.setPreQueueTime(b.StandardInteractionClientInitializeAuthorizationRequest, t.correlationId), [4, this.initializeAuthorizationRequest(t, x.Silent)];
|
|
13040
13038
|
case 1:
|
|
13041
13039
|
r = d.sent(), this.browserStorage.updateCacheEntries(r.state, r.nonce, r.authority, r.loginHint || g.EMPTY_STRING, r.account || null), o = this.initializeServerTelemetryManager(this.apiId), d.label = 2;
|
|
@@ -13059,7 +13057,7 @@ var ya = (
|
|
|
13059
13057
|
});
|
|
13060
13058
|
});
|
|
13061
13059
|
}, e.prototype.logout = function() {
|
|
13062
|
-
return Promise.reject(
|
|
13060
|
+
return Promise.reject(M.createSilentLogoutUnsupportedError());
|
|
13063
13061
|
}, e;
|
|
13064
13062
|
}(jt)
|
|
13065
13063
|
);
|
|
@@ -13070,8 +13068,8 @@ var ka = (
|
|
|
13070
13068
|
function n(e) {
|
|
13071
13069
|
this.isBrowserEnvironment = typeof window < "u", this.config = ea(e, this.isBrowserEnvironment), this.initialized = !1, this.logger = new er(this.config.system.loggerOptions, Bn, tn), this.networkClient = this.config.system.networkClient, this.navigationClient = this.config.system.navigationClient, this.redirectResponse = /* @__PURE__ */ new Map(), this.hybridAuthCodeResponses = /* @__PURE__ */ new Map(), this.performanceClient = this.isBrowserEnvironment ? new ga(this.config.auth.clientId, this.config.auth.authority, this.logger, Bn, tn, this.config.telemetry.application, this.config.system.cryptoOptions) : new Fi(this.config.auth.clientId, this.config.auth.authority, this.logger, Bn, tn, this.config.telemetry.application), this.browserCrypto = this.isBrowserEnvironment ? new fa(this.logger, this.performanceClient, this.config.system.cryptoOptions) : _n, this.eventHandler = new ra(this.logger, this.browserCrypto), this.browserStorage = this.isBrowserEnvironment ? new $n(this.config.auth.clientId, this.config.cache, this.browserCrypto, this.logger) : Gi(this.config.auth.clientId, this.logger);
|
|
13072
13070
|
var t = {
|
|
13073
|
-
cacheLocation:
|
|
13074
|
-
temporaryCacheLocation:
|
|
13071
|
+
cacheLocation: pe.MemoryStorage,
|
|
13072
|
+
temporaryCacheLocation: pe.MemoryStorage,
|
|
13075
13073
|
storeAuthStateInCookie: !1,
|
|
13076
13074
|
secureCookies: !1,
|
|
13077
13075
|
cacheMigrationEnabled: !1,
|
|
@@ -13131,11 +13129,11 @@ var ka = (
|
|
|
13131
13129
|
var t, r, o, i, a, s = this;
|
|
13132
13130
|
return I(this, function(u) {
|
|
13133
13131
|
return t = this.getRequestCorrelationId(e), this.logger.verbose("acquireTokenRedirect called", t), this.preflightBrowserEnvironmentCheck(x.Redirect), r = this.getAllAccounts().length > 0, r ? this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START, x.Redirect, e) : this.eventHandler.emitEvent(q.LOGIN_START, x.Redirect, e), this.nativeExtensionProvider && this.canUseNative(e) ? (i = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, oe.acquireTokenRedirect, this.performanceClient, this.nativeExtensionProvider, this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), o = i.acquireTokenRedirect(e).catch(function(p) {
|
|
13134
|
-
if (p instanceof
|
|
13132
|
+
if (p instanceof tt && p.isFatal()) {
|
|
13135
13133
|
s.nativeExtensionProvider = void 0;
|
|
13136
13134
|
var d = s.createRedirectClient(e.correlationId);
|
|
13137
13135
|
return d.acquireToken(e);
|
|
13138
|
-
} else if (p instanceof
|
|
13136
|
+
} else if (p instanceof Ye) {
|
|
13139
13137
|
s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13140
13138
|
var d = s.createRedirectClient(e.correlationId);
|
|
13141
13139
|
return d.acquireToken(e);
|
|
@@ -13164,11 +13162,11 @@ var ka = (
|
|
|
13164
13162
|
requestId: u.requestId
|
|
13165
13163
|
}), u;
|
|
13166
13164
|
}).catch(function(u) {
|
|
13167
|
-
if (u instanceof
|
|
13165
|
+
if (u instanceof tt && u.isFatal()) {
|
|
13168
13166
|
t.nativeExtensionProvider = void 0;
|
|
13169
13167
|
var p = t.createPopupClient(e.correlationId);
|
|
13170
13168
|
return p.acquireToken(e);
|
|
13171
|
-
} else if (u instanceof
|
|
13169
|
+
} else if (u instanceof Ye) {
|
|
13172
13170
|
t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13173
13171
|
var p = t.createPopupClient(e.correlationId);
|
|
13174
13172
|
return p.acquireToken(e);
|
|
@@ -13212,7 +13210,7 @@ var ka = (
|
|
|
13212
13210
|
}), this.preflightBrowserEnvironmentCheck(x.Silent), this.ssoSilentMeasurement = this.performanceClient.startMeasurement(b.SsoSilent, r), (t = this.ssoSilentMeasurement) === null || t === void 0 || t.increment({
|
|
13213
13211
|
visibilityChangeCount: 0
|
|
13214
13212
|
}), document.addEventListener("visibilitychange", this.trackPageVisibilityWithMeasurement), this.logger.verbose("ssoSilent called", r), this.eventHandler.emitEvent(q.SSO_SILENT_START, x.Silent, o), this.canUseNative(o) ? i = this.acquireTokenNative(o, oe.ssoSilent).catch(function(p) {
|
|
13215
|
-
if (p instanceof
|
|
13213
|
+
if (p instanceof tt && p.isFatal()) {
|
|
13216
13214
|
s.nativeExtensionProvider = void 0;
|
|
13217
13215
|
var d = s.createSilentIframeClient(o.correlationId);
|
|
13218
13216
|
return d.acquireToken(o);
|
|
@@ -13247,7 +13245,7 @@ var ka = (
|
|
|
13247
13245
|
t = this.getRequestCorrelationId(e), this.preflightBrowserEnvironmentCheck(x.Silent), this.logger.trace("acquireTokenByCode called", t), this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START, x.Silent, e), r = this.performanceClient.startMeasurement(b.AcquireTokenByCode, e.correlationId);
|
|
13248
13246
|
try {
|
|
13249
13247
|
if (e.code && e.nativeAccountId)
|
|
13250
|
-
throw
|
|
13248
|
+
throw M.createSpaCodeAndNativeAccountIdPresentError();
|
|
13251
13249
|
if (e.code)
|
|
13252
13250
|
return o = e.code, i = this.hybridAuthCodeResponses.get(o), i ? (this.logger.verbose("Existing acquireTokenByCode request found", e.correlationId), r.discardMeasurement()) : (this.logger.verbose("Initiating new acquireTokenByCode request", t), i = this.acquireTokenByCodeAsync(B(B({}, e), { correlationId: t })).then(function(u) {
|
|
13253
13251
|
return a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_SUCCESS, x.Silent, u), a.hybridAuthCodeResponses.delete(o), r.addStaticFields({
|
|
@@ -13268,11 +13266,11 @@ var ka = (
|
|
|
13268
13266
|
if (e.nativeAccountId) {
|
|
13269
13267
|
if (this.canUseNative(e, e.nativeAccountId))
|
|
13270
13268
|
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
|
|
13271
|
-
throw u instanceof
|
|
13269
|
+
throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
|
|
13272
13270
|
})];
|
|
13273
|
-
throw
|
|
13271
|
+
throw M.createUnableToAcquireTokenFromNativePlatformError();
|
|
13274
13272
|
} else
|
|
13275
|
-
throw
|
|
13273
|
+
throw M.createAuthCodeOrNativeAccountIdRequiredError();
|
|
13276
13274
|
} catch (u) {
|
|
13277
13275
|
throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE, x.Silent, null, u), r.endMeasurement({
|
|
13278
13276
|
errorCode: u instanceof D && u.errorCode || void 0,
|
|
@@ -13406,7 +13404,7 @@ var ka = (
|
|
|
13406
13404
|
}, n.prototype.getActiveAccount = function() {
|
|
13407
13405
|
return this.browserStorage.getActiveAccount();
|
|
13408
13406
|
}, n.prototype.preflightBrowserEnvironmentCheck = function(e, t) {
|
|
13409
|
-
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), de.blockNonBrowserEnvironment(this.isBrowserEnvironment), de.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), de.blockReloadInHiddenIframes(), de.blockAcquireTokenInPopups(), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation ===
|
|
13407
|
+
if (t === void 0 && (t = !0), this.logger.verbose("preflightBrowserEnvironmentCheck started"), de.blockNonBrowserEnvironment(this.isBrowserEnvironment), de.blockRedirectInIframe(e, this.config.system.allowRedirectInIframe), de.blockReloadInHiddenIframes(), de.blockAcquireTokenInPopups(), de.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker, this.initialized), e === x.Redirect && this.config.cache.cacheLocation === pe.MemoryStorage && !this.config.cache.storeAuthStateInCookie)
|
|
13410
13408
|
throw En.createInMemoryRedirectUnavailableError();
|
|
13411
13409
|
(e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
|
|
13412
13410
|
}, n.prototype.preflightInteractiveRequest = function(e) {
|
|
@@ -13416,7 +13414,7 @@ var ka = (
|
|
|
13416
13414
|
var o;
|
|
13417
13415
|
return I(this, function(i) {
|
|
13418
13416
|
if (this.logger.trace("acquireTokenNative called"), !this.nativeExtensionProvider)
|
|
13419
|
-
throw
|
|
13417
|
+
throw M.createNativeConnectionNotEstablishedError();
|
|
13420
13418
|
return o = new zt(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, t, this.performanceClient, this.nativeExtensionProvider, r || this.getNativeAccountId(e), this.nativeInternalStorage, e.correlationId), [2, o.acquireToken(e)];
|
|
13421
13419
|
});
|
|
13422
13420
|
});
|
|
@@ -13504,7 +13502,7 @@ var wa = (
|
|
|
13504
13502
|
if (r = this.getRequestCorrelationId(t), o = this.performanceClient.startMeasurement(b.AcquireTokenSilent, r), o.addStaticFields({
|
|
13505
13503
|
cacheLookupPolicy: t.cacheLookupPolicy
|
|
13506
13504
|
}), this.preflightBrowserEnvironmentCheck(x.Silent), this.logger.verbose("acquireTokenSilent called", r), i = t.account || this.getActiveAccount(), !i)
|
|
13507
|
-
throw
|
|
13505
|
+
throw M.createNoAccountError();
|
|
13508
13506
|
return a = {
|
|
13509
13507
|
clientId: this.config.auth.clientId,
|
|
13510
13508
|
authority: t.authority || g.EMPTY_STRING,
|
|
@@ -13553,7 +13551,7 @@ var wa = (
|
|
|
13553
13551
|
return T(d, void 0, void 0, function() {
|
|
13554
13552
|
var k;
|
|
13555
13553
|
return I(this, function(E) {
|
|
13556
|
-
if (_ instanceof
|
|
13554
|
+
if (_ instanceof tt && _.isFatal())
|
|
13557
13555
|
return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"), this.nativeExtensionProvider = void 0, k = this.createSilentIframeClient(t.correlationId), [2, k.acquireToken(t)];
|
|
13558
13556
|
throw _;
|
|
13559
13557
|
});
|
|
@@ -13569,8 +13567,8 @@ var wa = (
|
|
|
13569
13567
|
if (p.cacheLookupPolicy === Le.AccessToken)
|
|
13570
13568
|
throw _;
|
|
13571
13569
|
return de.blockReloadInHiddenIframes(), d.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START, x.Silent, u), d.performanceClient.setPreQueueTime(b.AcquireTokenByRefreshToken, u.correlationId), d.acquireTokenByRefreshToken(u, p).catch(function(k) {
|
|
13572
|
-
var E = k instanceof bt,
|
|
13573
|
-
if ((!E || !X ||
|
|
13570
|
+
var E = k instanceof bt, N = k instanceof Ye, Q = k.errorCode === Nt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
|
|
13571
|
+
if ((!E || !X || N || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
|
|
13574
13572
|
throw k;
|
|
13575
13573
|
return d.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), d.performanceClient.setPreQueueTime(b.AcquireTokenBySilentIframe, u.correlationId), d.acquireTokenBySilentIframe(u);
|
|
13576
13574
|
});
|
|
@@ -13686,7 +13684,7 @@ const An = {
|
|
|
13686
13684
|
return console.log("Error: " + JSON.stringify(t)), this.microsoftLoad = !1;
|
|
13687
13685
|
if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && (r.accessToken || r.idToken)) {
|
|
13688
13686
|
const [s, u] = await Z(
|
|
13689
|
-
|
|
13687
|
+
Ne.microsoftSDK(r, this.$storage)
|
|
13690
13688
|
);
|
|
13691
13689
|
if (s)
|
|
13692
13690
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
|
|
@@ -13696,7 +13694,7 @@ const An = {
|
|
|
13696
13694
|
{ code: u.data.auth_code, state: this.$route.query.state },
|
|
13697
13695
|
"*"
|
|
13698
13696
|
);
|
|
13699
|
-
await this.loginSetup(u), this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal:
|
|
13697
|
+
await this.loginSetup(u), this.getLoggedInAccounts(), this.loginSuccess({ ...u, isModal: this.isModal }), setTimeout(() => {
|
|
13700
13698
|
this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
|
|
13701
13699
|
}, 1e3);
|
|
13702
13700
|
} else
|
|
@@ -13817,7 +13815,7 @@ const An = {
|
|
|
13817
13815
|
return this.errorHandler(e);
|
|
13818
13816
|
localStorage.removeItem("pkce_code_verifier");
|
|
13819
13817
|
let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
|
|
13820
|
-
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(
|
|
13818
|
+
if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(Ne.oktaSDK(r, this.$storage)), e)
|
|
13821
13819
|
return this.oktaLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
|
|
13822
13820
|
if (t.data.success) {
|
|
13823
13821
|
if (this.display === "popup")
|
|
@@ -13855,12 +13853,12 @@ const An = {
|
|
|
13855
13853
|
var fo = {}, Pn = {};
|
|
13856
13854
|
Pn.byteLength = Sa;
|
|
13857
13855
|
Pn.toByteArray = Ra;
|
|
13858
|
-
Pn.fromByteArray =
|
|
13859
|
-
var
|
|
13856
|
+
Pn.fromByteArray = Na;
|
|
13857
|
+
var et = [], je = [], Ta = typeof Uint8Array < "u" ? Uint8Array : Array, Dn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
13860
13858
|
for (var St = 0, Ia = Dn.length; St < Ia; ++St)
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13859
|
+
et[St] = Dn[St], je[Dn.charCodeAt(St)] = St;
|
|
13860
|
+
je[45] = 62;
|
|
13861
|
+
je[95] = 63;
|
|
13864
13862
|
function go(n) {
|
|
13865
13863
|
var e = n.length;
|
|
13866
13864
|
if (e % 4 > 0)
|
|
@@ -13880,24 +13878,24 @@ function Aa(n, e, t) {
|
|
|
13880
13878
|
function Ra(n) {
|
|
13881
13879
|
var e, t = go(n), r = t[0], o = t[1], i = new Ta(Aa(n, r, o)), a = 0, s = o > 0 ? r - 4 : r, u;
|
|
13882
13880
|
for (u = 0; u < s; u += 4)
|
|
13883
|
-
e =
|
|
13884
|
-
return o === 2 && (e =
|
|
13881
|
+
e = je[n.charCodeAt(u)] << 18 | je[n.charCodeAt(u + 1)] << 12 | je[n.charCodeAt(u + 2)] << 6 | je[n.charCodeAt(u + 3)], i[a++] = e >> 16 & 255, i[a++] = e >> 8 & 255, i[a++] = e & 255;
|
|
13882
|
+
return o === 2 && (e = je[n.charCodeAt(u)] << 2 | je[n.charCodeAt(u + 1)] >> 4, i[a++] = e & 255), o === 1 && (e = je[n.charCodeAt(u)] << 10 | je[n.charCodeAt(u + 1)] << 4 | je[n.charCodeAt(u + 2)] >> 2, i[a++] = e >> 8 & 255, i[a++] = e & 255), i;
|
|
13885
13883
|
}
|
|
13886
13884
|
function Pa(n) {
|
|
13887
|
-
return
|
|
13885
|
+
return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
|
|
13888
13886
|
}
|
|
13889
|
-
function
|
|
13887
|
+
function Ma(n, e, t) {
|
|
13890
13888
|
for (var r, o = [], i = e; i < t; i += 3)
|
|
13891
13889
|
r = (n[i] << 16 & 16711680) + (n[i + 1] << 8 & 65280) + (n[i + 2] & 255), o.push(Pa(r));
|
|
13892
13890
|
return o.join("");
|
|
13893
13891
|
}
|
|
13894
|
-
function
|
|
13892
|
+
function Na(n) {
|
|
13895
13893
|
for (var e, t = n.length, r = t % 3, o = [], i = 16383, a = 0, s = t - r; a < s; a += i)
|
|
13896
|
-
o.push(
|
|
13894
|
+
o.push(Ma(n, a, a + i > s ? s : a + i));
|
|
13897
13895
|
return r === 1 ? (e = n[t - 1], o.push(
|
|
13898
|
-
|
|
13896
|
+
et[e >> 2] + et[e << 4 & 63] + "=="
|
|
13899
13897
|
)) : r === 2 && (e = (n[t - 2] << 8) + n[t - 1], o.push(
|
|
13900
|
-
|
|
13898
|
+
et[e >> 10] + et[e >> 4 & 63] + et[e << 2 & 63] + "="
|
|
13901
13899
|
)), o.join("");
|
|
13902
13900
|
}
|
|
13903
13901
|
var ir = {};
|
|
@@ -13918,12 +13916,12 @@ ir.read = function(n, e, t, r, o) {
|
|
|
13918
13916
|
return (k ? -1 : 1) * a * Math.pow(2, i - r);
|
|
13919
13917
|
};
|
|
13920
13918
|
ir.write = function(n, e, t, r, o, i) {
|
|
13921
|
-
var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1,
|
|
13919
|
+
var a, s, u, p = i * 8 - o - 1, d = (1 << p) - 1, f = d >> 1, _ = o === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, k = r ? 0 : i - 1, E = r ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
|
|
13922
13920
|
for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, a = d) : (a = Math.floor(Math.log(e) / Math.LN2), e * (u = Math.pow(2, -a)) < 1 && (a--, u *= 2), a + f >= 1 ? e += _ / u : e += _ * Math.pow(2, 1 - f), e * u >= 2 && (a++, u /= 2), a + f >= d ? (s = 0, a = d) : a + f >= 1 ? (s = (e * u - 1) * Math.pow(2, o), a = a + f) : (s = e * Math.pow(2, f - 1) * Math.pow(2, o), a = 0)); o >= 8; n[t + k] = s & 255, k += E, s /= 256, o -= 8)
|
|
13923
13921
|
;
|
|
13924
13922
|
for (a = a << o | s, p += o; p > 0; n[t + k] = a & 255, k += E, a /= 256, p -= 8)
|
|
13925
13923
|
;
|
|
13926
|
-
n[t + k - E] |=
|
|
13924
|
+
n[t + k - E] |= N * 128;
|
|
13927
13925
|
};
|
|
13928
13926
|
/*!
|
|
13929
13927
|
* The buffer module from node.js, for the browser.
|
|
@@ -13982,14 +13980,14 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13982
13980
|
d.poolSize = 8192;
|
|
13983
13981
|
function f(h, c, l) {
|
|
13984
13982
|
if (typeof h == "string")
|
|
13985
|
-
return
|
|
13983
|
+
return N(h, c);
|
|
13986
13984
|
if (a.isView(h))
|
|
13987
13985
|
return X(h);
|
|
13988
13986
|
if (h == null)
|
|
13989
13987
|
throw new TypeError(
|
|
13990
13988
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
|
|
13991
13989
|
);
|
|
13992
|
-
if (
|
|
13990
|
+
if ($e(h, a) || h && $e(h.buffer, a) || typeof s < "u" && ($e(h, s) || h && $e(h.buffer, s)))
|
|
13993
13991
|
return G(h, c, l);
|
|
13994
13992
|
if (typeof h == "number")
|
|
13995
13993
|
throw new TypeError(
|
|
@@ -14030,10 +14028,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14030
14028
|
}, d.allocUnsafeSlow = function(h) {
|
|
14031
14029
|
return E(h);
|
|
14032
14030
|
};
|
|
14033
|
-
function
|
|
14031
|
+
function N(h, c) {
|
|
14034
14032
|
if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
|
|
14035
14033
|
throw new TypeError("Unknown encoding: " + c);
|
|
14036
|
-
const l =
|
|
14034
|
+
const l = Ve(h, c) | 0;
|
|
14037
14035
|
let m = p(l);
|
|
14038
14036
|
const v = m.write(h, c);
|
|
14039
14037
|
return v !== l && (m = m.slice(0, v)), m;
|
|
@@ -14045,7 +14043,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14045
14043
|
return l;
|
|
14046
14044
|
}
|
|
14047
14045
|
function X(h) {
|
|
14048
|
-
if (
|
|
14046
|
+
if ($e(h, i)) {
|
|
14049
14047
|
const c = new i(h);
|
|
14050
14048
|
return G(c.buffer, c.byteOffset, c.byteLength);
|
|
14051
14049
|
}
|
|
@@ -14080,7 +14078,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14080
14078
|
d.isBuffer = function(c) {
|
|
14081
14079
|
return c != null && c._isBuffer === !0 && c !== d.prototype;
|
|
14082
14080
|
}, d.compare = function(c, l) {
|
|
14083
|
-
if (
|
|
14081
|
+
if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), $e(l, i) && (l = d.from(l, l.offset, l.byteLength)), !d.isBuffer(c) || !d.isBuffer(l))
|
|
14084
14082
|
throw new TypeError(
|
|
14085
14083
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
14086
14084
|
);
|
|
@@ -14123,7 +14121,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14123
14121
|
let w = 0;
|
|
14124
14122
|
for (m = 0; m < c.length; ++m) {
|
|
14125
14123
|
let C = c[m];
|
|
14126
|
-
if (
|
|
14124
|
+
if ($e(C, i))
|
|
14127
14125
|
w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
|
|
14128
14126
|
v,
|
|
14129
14127
|
C,
|
|
@@ -14137,10 +14135,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14137
14135
|
}
|
|
14138
14136
|
return v;
|
|
14139
14137
|
};
|
|
14140
|
-
function
|
|
14138
|
+
function Ve(h, c) {
|
|
14141
14139
|
if (d.isBuffer(h))
|
|
14142
14140
|
return h.length;
|
|
14143
|
-
if (a.isView(h) ||
|
|
14141
|
+
if (a.isView(h) || $e(h, a))
|
|
14144
14142
|
return h.byteLength;
|
|
14145
14143
|
if (typeof h != "string")
|
|
14146
14144
|
throw new TypeError(
|
|
@@ -14174,7 +14172,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14174
14172
|
c = ("" + c).toLowerCase(), v = !0;
|
|
14175
14173
|
}
|
|
14176
14174
|
}
|
|
14177
|
-
d.byteLength =
|
|
14175
|
+
d.byteLength = Ve;
|
|
14178
14176
|
function Ct(h, c, l) {
|
|
14179
14177
|
let m = !1;
|
|
14180
14178
|
if ((c === void 0 || c < 0) && (c = 0), c > this.length || ((l === void 0 || l > this.length) && (l = this.length), l <= 0) || (l >>>= 0, c >>>= 0, l <= c))
|
|
@@ -14192,7 +14190,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14192
14190
|
case "binary":
|
|
14193
14191
|
return Oo(this, c, l);
|
|
14194
14192
|
case "base64":
|
|
14195
|
-
return
|
|
14193
|
+
return Mo(this, c, l);
|
|
14196
14194
|
case "ucs2":
|
|
14197
14195
|
case "ucs-2":
|
|
14198
14196
|
case "utf16le":
|
|
@@ -14242,7 +14240,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14242
14240
|
const l = n.INSPECT_MAX_BYTES;
|
|
14243
14241
|
return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
|
|
14244
14242
|
}, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
|
|
14245
|
-
if (
|
|
14243
|
+
if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
|
|
14246
14244
|
throw new TypeError(
|
|
14247
14245
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
14248
14246
|
);
|
|
@@ -14258,9 +14256,9 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14258
14256
|
return 0;
|
|
14259
14257
|
let C = w - v, Y = m - l;
|
|
14260
14258
|
const le = Math.min(C, Y), ae = this.slice(v, w), ue = c.slice(l, m);
|
|
14261
|
-
for (let
|
|
14262
|
-
if (ae[
|
|
14263
|
-
C = ae[
|
|
14259
|
+
for (let re = 0; re < le; ++re)
|
|
14260
|
+
if (ae[re] !== ue[re]) {
|
|
14261
|
+
C = ae[re], Y = ue[re];
|
|
14264
14262
|
break;
|
|
14265
14263
|
}
|
|
14266
14264
|
return C < Y ? -1 : Y < C ? 1 : 0;
|
|
@@ -14290,8 +14288,8 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14290
14288
|
return -1;
|
|
14291
14289
|
w = 2, C /= 2, Y /= 2, l /= 2;
|
|
14292
14290
|
}
|
|
14293
|
-
function le(ue,
|
|
14294
|
-
return w === 1 ? ue[
|
|
14291
|
+
function le(ue, re) {
|
|
14292
|
+
return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
|
|
14295
14293
|
}
|
|
14296
14294
|
let ae;
|
|
14297
14295
|
if (v) {
|
|
@@ -14305,8 +14303,8 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14305
14303
|
} else
|
|
14306
14304
|
for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
|
|
14307
14305
|
let ue = !0;
|
|
14308
|
-
for (let
|
|
14309
|
-
if (le(h, ae +
|
|
14306
|
+
for (let re = 0; re < Y; re++)
|
|
14307
|
+
if (le(h, ae + re) !== le(c, re)) {
|
|
14310
14308
|
ue = !1;
|
|
14311
14309
|
break;
|
|
14312
14310
|
}
|
|
@@ -14394,7 +14392,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14394
14392
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
14395
14393
|
};
|
|
14396
14394
|
};
|
|
14397
|
-
function
|
|
14395
|
+
function Mo(h, c, l) {
|
|
14398
14396
|
return c === 0 && l === h.length ? e.fromByteArray(h) : e.fromByteArray(h.slice(c, l));
|
|
14399
14397
|
}
|
|
14400
14398
|
function cr(h, c, l) {
|
|
@@ -14405,27 +14403,27 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14405
14403
|
const w = h[v];
|
|
14406
14404
|
let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
|
|
14407
14405
|
if (v + Y <= l) {
|
|
14408
|
-
let le, ae, ue,
|
|
14406
|
+
let le, ae, ue, re;
|
|
14409
14407
|
switch (Y) {
|
|
14410
14408
|
case 1:
|
|
14411
14409
|
w < 128 && (C = w);
|
|
14412
14410
|
break;
|
|
14413
14411
|
case 2:
|
|
14414
|
-
le = h[v + 1], (le & 192) === 128 && (
|
|
14412
|
+
le = h[v + 1], (le & 192) === 128 && (re = (w & 31) << 6 | le & 63, re > 127 && (C = re));
|
|
14415
14413
|
break;
|
|
14416
14414
|
case 3:
|
|
14417
|
-
le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (
|
|
14415
|
+
le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (re = (w & 15) << 12 | (le & 63) << 6 | ae & 63, re > 2047 && (re < 55296 || re > 57343) && (C = re));
|
|
14418
14416
|
break;
|
|
14419
14417
|
case 4:
|
|
14420
|
-
le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (
|
|
14418
|
+
le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (re = (w & 15) << 18 | (le & 63) << 12 | (ae & 63) << 6 | ue & 63, re > 65535 && re < 1114112 && (C = re));
|
|
14421
14419
|
}
|
|
14422
14420
|
}
|
|
14423
14421
|
C === null ? (C = 65533, Y = 1) : C > 65535 && (C -= 65536, m.push(C >>> 10 & 1023 | 55296), C = 56320 | C & 1023), m.push(C), v += Y;
|
|
14424
14422
|
}
|
|
14425
|
-
return
|
|
14423
|
+
return No(m);
|
|
14426
14424
|
}
|
|
14427
14425
|
const lr = 4096;
|
|
14428
|
-
function
|
|
14426
|
+
function No(h) {
|
|
14429
14427
|
const c = h.length;
|
|
14430
14428
|
if (c <= lr)
|
|
14431
14429
|
return String.fromCharCode.apply(String, h);
|
|
@@ -14472,34 +14470,34 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14472
14470
|
const v = this.subarray(c, l);
|
|
14473
14471
|
return Object.setPrototypeOf(v, d.prototype), v;
|
|
14474
14472
|
};
|
|
14475
|
-
function
|
|
14473
|
+
function ge(h, c, l) {
|
|
14476
14474
|
if (h % 1 !== 0 || h < 0)
|
|
14477
14475
|
throw new RangeError("offset is not uint");
|
|
14478
14476
|
if (h + c > l)
|
|
14479
14477
|
throw new RangeError("Trying to access beyond buffer length");
|
|
14480
14478
|
}
|
|
14481
14479
|
d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
|
|
14482
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14480
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14483
14481
|
let v = this[c], w = 1, C = 0;
|
|
14484
14482
|
for (; ++C < l && (w *= 256); )
|
|
14485
14483
|
v += this[c + C] * w;
|
|
14486
14484
|
return v;
|
|
14487
14485
|
}, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
|
|
14488
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14486
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14489
14487
|
let v = this[c + --l], w = 1;
|
|
14490
14488
|
for (; l > 0 && (w *= 256); )
|
|
14491
14489
|
v += this[c + --l] * w;
|
|
14492
14490
|
return v;
|
|
14493
14491
|
}, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
|
|
14494
|
-
return c = c >>> 0, l ||
|
|
14492
|
+
return c = c >>> 0, l || ge(c, 1, this.length), this[c];
|
|
14495
14493
|
}, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
|
|
14496
|
-
return c = c >>> 0, l ||
|
|
14494
|
+
return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
|
|
14497
14495
|
}, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
|
|
14498
|
-
return c = c >>> 0, l ||
|
|
14496
|
+
return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
|
|
14499
14497
|
}, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
|
|
14500
|
-
return c = c >>> 0, l ||
|
|
14498
|
+
return c = c >>> 0, l || ge(c, 4, this.length), (this[c] | this[c + 1] << 8 | this[c + 2] << 16) + this[c + 3] * 16777216;
|
|
14501
14499
|
}, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
|
|
14502
|
-
return c = c >>> 0, l ||
|
|
14500
|
+
return c = c >>> 0, l || ge(c, 4, this.length), this[c] * 16777216 + (this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3]);
|
|
14503
14501
|
}, d.prototype.readBigUInt64LE = ut(function(c) {
|
|
14504
14502
|
c = c >>> 0, Tt(c, "offset");
|
|
14505
14503
|
const l = this[c], m = this[c + 7];
|
|
@@ -14513,31 +14511,31 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14513
14511
|
const v = l * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c], w = this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m;
|
|
14514
14512
|
return (BigInt(v) << BigInt(32)) + BigInt(w);
|
|
14515
14513
|
}), d.prototype.readIntLE = function(c, l, m) {
|
|
14516
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14514
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14517
14515
|
let v = this[c], w = 1, C = 0;
|
|
14518
14516
|
for (; ++C < l && (w *= 256); )
|
|
14519
14517
|
v += this[c + C] * w;
|
|
14520
14518
|
return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
|
|
14521
14519
|
}, d.prototype.readIntBE = function(c, l, m) {
|
|
14522
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14520
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14523
14521
|
let v = l, w = 1, C = this[c + --v];
|
|
14524
14522
|
for (; v > 0 && (w *= 256); )
|
|
14525
14523
|
C += this[c + --v] * w;
|
|
14526
14524
|
return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
|
|
14527
14525
|
}, d.prototype.readInt8 = function(c, l) {
|
|
14528
|
-
return c = c >>> 0, l ||
|
|
14526
|
+
return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
14529
14527
|
}, d.prototype.readInt16LE = function(c, l) {
|
|
14530
|
-
c = c >>> 0, l ||
|
|
14528
|
+
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14531
14529
|
const m = this[c] | this[c + 1] << 8;
|
|
14532
14530
|
return m & 32768 ? m | 4294901760 : m;
|
|
14533
14531
|
}, d.prototype.readInt16BE = function(c, l) {
|
|
14534
|
-
c = c >>> 0, l ||
|
|
14532
|
+
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14535
14533
|
const m = this[c + 1] | this[c] << 8;
|
|
14536
14534
|
return m & 32768 ? m | 4294901760 : m;
|
|
14537
14535
|
}, d.prototype.readInt32LE = function(c, l) {
|
|
14538
|
-
return c = c >>> 0, l ||
|
|
14536
|
+
return c = c >>> 0, l || ge(c, 4, this.length), this[c] | this[c + 1] << 8 | this[c + 2] << 16 | this[c + 3] << 24;
|
|
14539
14537
|
}, d.prototype.readInt32BE = function(c, l) {
|
|
14540
|
-
return c = c >>> 0, l ||
|
|
14538
|
+
return c = c >>> 0, l || ge(c, 4, this.length), this[c] << 24 | this[c + 1] << 16 | this[c + 2] << 8 | this[c + 3];
|
|
14541
14539
|
}, d.prototype.readBigInt64LE = ut(function(c) {
|
|
14542
14540
|
c = c >>> 0, Tt(c, "offset");
|
|
14543
14541
|
const l = this[c], m = this[c + 7];
|
|
@@ -14552,13 +14550,13 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14552
14550
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
14553
14551
|
return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
14554
14552
|
}), d.prototype.readFloatLE = function(c, l) {
|
|
14555
|
-
return c = c >>> 0, l ||
|
|
14553
|
+
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
14556
14554
|
}, d.prototype.readFloatBE = function(c, l) {
|
|
14557
|
-
return c = c >>> 0, l ||
|
|
14555
|
+
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
|
|
14558
14556
|
}, d.prototype.readDoubleLE = function(c, l) {
|
|
14559
|
-
return c = c >>> 0, l ||
|
|
14557
|
+
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
|
|
14560
14558
|
}, d.prototype.readDoubleBE = function(c, l) {
|
|
14561
|
-
return c = c >>> 0, l ||
|
|
14559
|
+
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
14562
14560
|
};
|
|
14563
14561
|
function Re(h, c, l, m, v, w) {
|
|
14564
14562
|
if (!d.isBuffer(h))
|
|
@@ -14881,7 +14879,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14881
14879
|
c[v + l] = h[v];
|
|
14882
14880
|
return v;
|
|
14883
14881
|
}
|
|
14884
|
-
function
|
|
14882
|
+
function $e(h, c) {
|
|
14885
14883
|
return h instanceof c || h != null && h.constructor != null && h.constructor.name != null && h.constructor.name === c.name;
|
|
14886
14884
|
}
|
|
14887
14885
|
function zn(h) {
|
|
@@ -14903,7 +14901,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14903
14901
|
throw new Error("BigInt not supported");
|
|
14904
14902
|
}
|
|
14905
14903
|
})(fo);
|
|
14906
|
-
const La = fo.Buffer,
|
|
14904
|
+
const La = fo.Buffer, Mn = {
|
|
14907
14905
|
data() {
|
|
14908
14906
|
return {
|
|
14909
14907
|
code_verifier: "",
|
|
@@ -15029,7 +15027,7 @@ const La = fo.Buffer, Nn = {
|
|
|
15029
15027
|
}
|
|
15030
15028
|
}, za = {
|
|
15031
15029
|
name: "AuthLogin",
|
|
15032
|
-
mixins: [Xr, Zr, eo, An, Rn,
|
|
15030
|
+
mixins: [Xr, Zr, eo, An, Rn, Mn, ze, Oa],
|
|
15033
15031
|
props: {
|
|
15034
15032
|
isModal: {
|
|
15035
15033
|
type: Boolean,
|
|
@@ -15188,24 +15186,24 @@ const La = fo.Buffer, Nn = {
|
|
|
15188
15186
|
}, Is = /* @__PURE__ */ y("div", { class: "clear" }, null, -1), Ss = { class: "forgot center-text pointer small-top" }, As = /* @__PURE__ */ y("br", null, null, -1), Rs = /* @__PURE__ */ y("div", { class: "clear" }, null, -1);
|
|
15189
15187
|
function Ps(n, e, t, r, o, i) {
|
|
15190
15188
|
const a = Dt("router-link");
|
|
15191
|
-
return
|
|
15189
|
+
return S(), P("form", {
|
|
15192
15190
|
class: "page-login content-boxed content-boxed-padding",
|
|
15193
15191
|
onSubmit: e[13] || (e[13] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15194
15192
|
autocomplete: "on",
|
|
15195
15193
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15196
15194
|
}, [
|
|
15197
|
-
t.isModal ? (
|
|
15195
|
+
t.isModal ? (S(), P("a", {
|
|
15198
15196
|
key: 0,
|
|
15199
15197
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15200
15198
|
class: "color-black pull-right pointer",
|
|
15201
15199
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15202
|
-
}, xa)) :
|
|
15200
|
+
}, xa)) : ne("", !0),
|
|
15203
15201
|
y("h1", Ba, U(this.ssoLang[this.appLanguage].login), 1),
|
|
15204
15202
|
Da,
|
|
15205
|
-
i.displayFormLogin ? (
|
|
15203
|
+
i.displayFormLogin ? (S(), P("span", Ha, [
|
|
15206
15204
|
y("div", qa, [
|
|
15207
15205
|
Fa,
|
|
15208
|
-
|
|
15206
|
+
me(y("input", {
|
|
15209
15207
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.emailOrUsername = s),
|
|
15210
15208
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
15211
15209
|
}, ["prevent"]), ["space"])),
|
|
@@ -15223,7 +15221,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15223
15221
|
]),
|
|
15224
15222
|
y("div", Ga, [
|
|
15225
15223
|
Va,
|
|
15226
|
-
|
|
15224
|
+
me(y("input", {
|
|
15227
15225
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.password = s),
|
|
15228
15226
|
type: o.revealPassword ? "text" : "password",
|
|
15229
15227
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15237,68 +15235,68 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15237
15235
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
|
|
15238
15236
|
class: "pointer"
|
|
15239
15237
|
}, [
|
|
15240
|
-
|
|
15238
|
+
me(y("img", Ya, null, 512), [
|
|
15241
15239
|
[mt, !o.revealPassword]
|
|
15242
15240
|
]),
|
|
15243
|
-
|
|
15241
|
+
me(y("img", Wa, null, 512), [
|
|
15244
15242
|
[mt, o.revealPassword]
|
|
15245
15243
|
])
|
|
15246
15244
|
])
|
|
15247
15245
|
]),
|
|
15248
15246
|
y("button", $a, [
|
|
15249
|
-
o.submitted ? (
|
|
15247
|
+
o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, U(n.ssoLang[n.appLanguage].login), 1))
|
|
15250
15248
|
])
|
|
15251
|
-
])) :
|
|
15249
|
+
])) : ne("", !0),
|
|
15252
15250
|
Za,
|
|
15253
|
-
n.displayAppleLogin ? (
|
|
15251
|
+
n.displayAppleLogin ? (S(), P("a", {
|
|
15254
15252
|
key: 2,
|
|
15255
15253
|
onClick: e[5] || (e[5] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
15256
15254
|
class: "button-center button button-90 google-button pointer"
|
|
15257
15255
|
}, [
|
|
15258
15256
|
es,
|
|
15259
|
-
n.appleLoad ? (
|
|
15260
|
-
])) :
|
|
15261
|
-
n.displayGoogleLogin ? (
|
|
15257
|
+
n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, U(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
|
|
15258
|
+
])) : ne("", !0),
|
|
15259
|
+
n.displayGoogleLogin ? (S(), P("a", {
|
|
15262
15260
|
key: 3,
|
|
15263
15261
|
onClick: e[6] || (e[6] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
15264
15262
|
class: "button-center button button-90 google-button pointer"
|
|
15265
15263
|
}, [
|
|
15266
15264
|
rs,
|
|
15267
|
-
n.googleLoad ? (
|
|
15268
|
-
])) :
|
|
15269
|
-
n.displayFacebookLogin ? (
|
|
15265
|
+
n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, U(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
|
|
15266
|
+
])) : ne("", !0),
|
|
15267
|
+
n.displayFacebookLogin ? (S(), P("a", {
|
|
15270
15268
|
key: 4,
|
|
15271
15269
|
onClick: e[7] || (e[7] = (...s) => n.facebookLogin && n.facebookLogin(...s)),
|
|
15272
15270
|
class: "button-center button button-90 google-button pointer"
|
|
15273
15271
|
}, [
|
|
15274
15272
|
as,
|
|
15275
|
-
n.facebookLoad ? (
|
|
15276
|
-
])) :
|
|
15277
|
-
n.displayMicrosoftSSOLogin ?
|
|
15273
|
+
n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, U(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
|
|
15274
|
+
])) : ne("", !0),
|
|
15275
|
+
n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
|
|
15278
15276
|
key: 5,
|
|
15279
15277
|
onClick: e[8] || (e[8] = (...s) => n.microsoftLogin && n.microsoftLogin(...s)),
|
|
15280
15278
|
class: "button-center button button-90 google-button pointer"
|
|
15281
15279
|
}, [
|
|
15282
15280
|
ls,
|
|
15283
|
-
n.microsoftLoad ? (
|
|
15281
|
+
n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
|
|
15284
15282
|
])),
|
|
15285
|
-
n.displayMicrosoftSSOLogin ?
|
|
15283
|
+
n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
|
|
15286
15284
|
key: 6,
|
|
15287
15285
|
onClick: e[9] || (e[9] = (...s) => n.ssoLogin && n.ssoLogin(...s)),
|
|
15288
15286
|
class: "button-center button button-90 google-button pointer"
|
|
15289
15287
|
}, [
|
|
15290
15288
|
ps,
|
|
15291
|
-
n.microsoftSSOLoad ? (
|
|
15289
|
+
n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
|
|
15292
15290
|
])),
|
|
15293
|
-
n.displayMicrosoftSSOLogin ? (
|
|
15291
|
+
n.displayMicrosoftSSOLogin ? (S(), P("a", {
|
|
15294
15292
|
key: 7,
|
|
15295
15293
|
onClick: e[10] || (e[10] = (s) => n.microsoftLogin("sso")),
|
|
15296
15294
|
class: "button-center button button-90 google-button pointer"
|
|
15297
15295
|
}, [
|
|
15298
15296
|
fs,
|
|
15299
|
-
n.microsoftSSOLoad ? (
|
|
15300
|
-
])) :
|
|
15301
|
-
i.displayFormLogin ?
|
|
15297
|
+
n.microsoftSSOLoad ? (S(), P("span", gs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
|
|
15298
|
+
])) : ne("", !0),
|
|
15299
|
+
i.displayFormLogin ? ne("", !0) : (S(), P("a", {
|
|
15302
15300
|
key: 8,
|
|
15303
15301
|
onClick: e[11] || (e[11] = (s) => o.emailLogin = !0),
|
|
15304
15302
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15315,7 +15313,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15315
15313
|
y("a", Cs, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
|
|
15316
15314
|
]),
|
|
15317
15315
|
Es,
|
|
15318
|
-
t.isModal ? (
|
|
15316
|
+
t.isModal ? (S(), P("div", {
|
|
15319
15317
|
key: 10,
|
|
15320
15318
|
class: "page-login-links",
|
|
15321
15319
|
onClick: e[12] || (e[12] = (...s) => i.createAccountModal && i.createAccountModal(...s))
|
|
@@ -15326,32 +15324,32 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15326
15324
|
se(" " + U(n.ssoLang[n.appLanguage].create_new_account), 1)
|
|
15327
15325
|
]),
|
|
15328
15326
|
Rs
|
|
15329
|
-
])) : (
|
|
15330
|
-
i.displayRegisterLogin ? (
|
|
15327
|
+
])) : (S(), P("div", Ts, [
|
|
15328
|
+
i.displayRegisterLogin ? (S(), qe(a, {
|
|
15331
15329
|
key: 0,
|
|
15332
15330
|
class: "forgot float-right",
|
|
15333
15331
|
to: "/register"
|
|
15334
15332
|
}, {
|
|
15335
|
-
default:
|
|
15333
|
+
default: nt(() => [
|
|
15336
15334
|
se(U(n.ssoLang[n.appLanguage].create_account), 1)
|
|
15337
15335
|
]),
|
|
15338
15336
|
_: 1
|
|
15339
|
-
})) :
|
|
15340
|
-
i.displayResetPasswordLogin ? (
|
|
15337
|
+
})) : ne("", !0),
|
|
15338
|
+
i.displayResetPasswordLogin ? (S(), qe(a, {
|
|
15341
15339
|
key: 1,
|
|
15342
15340
|
class: "create float-left",
|
|
15343
15341
|
to: "/reset"
|
|
15344
15342
|
}, {
|
|
15345
|
-
default:
|
|
15343
|
+
default: nt(() => [
|
|
15346
15344
|
se(U(n.ssoLang[n.appLanguage].reset_password), 1)
|
|
15347
15345
|
]),
|
|
15348
15346
|
_: 1
|
|
15349
|
-
})) :
|
|
15347
|
+
})) : ne("", !0),
|
|
15350
15348
|
Is
|
|
15351
15349
|
]))
|
|
15352
15350
|
], 36);
|
|
15353
15351
|
}
|
|
15354
|
-
const _o = /* @__PURE__ */
|
|
15352
|
+
const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
|
|
15355
15353
|
name: "AuthRegister",
|
|
15356
15354
|
mixins: [Xr, Zr, eo, An, ze],
|
|
15357
15355
|
props: {
|
|
@@ -15418,14 +15416,14 @@ const _o = /* @__PURE__ */ Ye(za, [["render", Ps]]), Ns = {
|
|
|
15418
15416
|
this.$storage.referral = n;
|
|
15419
15417
|
}
|
|
15420
15418
|
}
|
|
15421
|
-
},
|
|
15419
|
+
}, Ns = /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
|
|
15422
15420
|
/* @__PURE__ */ y("img", {
|
|
15423
15421
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
15424
15422
|
class: "responsive-image",
|
|
15425
15423
|
style: { width: "35%" }
|
|
15426
15424
|
})
|
|
15427
15425
|
], -1), Ls = [
|
|
15428
|
-
|
|
15426
|
+
Ns
|
|
15429
15427
|
], Os = {
|
|
15430
15428
|
class: "bold no-bottom center-text",
|
|
15431
15429
|
style: { "margin-top": "63px" }
|
|
@@ -15489,29 +15487,29 @@ const _o = /* @__PURE__ */ Ye(za, [["render", Ps]]), Ns = {
|
|
|
15489
15487
|
}, yc = /* @__PURE__ */ y("div", { class: "clear" }, null, -1), kc = { class: "forgot center-text pointer small-top" }, wc = /* @__PURE__ */ y("br", null, null, -1), bc = /* @__PURE__ */ y("div", { class: "clear" }, null, -1);
|
|
15490
15488
|
function Cc(n, e, t, r, o, i) {
|
|
15491
15489
|
const a = Dt("router-link");
|
|
15492
|
-
return
|
|
15490
|
+
return S(), P("form", {
|
|
15493
15491
|
class: "page-login content-boxed content-boxed-padding",
|
|
15494
15492
|
onSubmit: e[12] || (e[12] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15495
15493
|
autocomplete: "on",
|
|
15496
15494
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15497
15495
|
}, [
|
|
15498
|
-
t.isModal ? (
|
|
15496
|
+
t.isModal ? (S(), P("a", {
|
|
15499
15497
|
key: 0,
|
|
15500
15498
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15501
15499
|
class: "color-black pull-right pointer",
|
|
15502
15500
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15503
|
-
}, Ls)) :
|
|
15501
|
+
}, Ls)) : ne("", !0),
|
|
15504
15502
|
y("h1", Os, U(n.ssoLang[this.appLanguage].register), 1),
|
|
15505
15503
|
y("p", zs, [
|
|
15506
|
-
o.usernameRegister ? (
|
|
15504
|
+
o.usernameRegister ? (S(), P("span", Us, [
|
|
15507
15505
|
se(" t.link/" + U(o.username) + " " + U(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
|
|
15508
15506
|
xs
|
|
15509
|
-
])) :
|
|
15507
|
+
])) : ne("", !0)
|
|
15510
15508
|
]),
|
|
15511
|
-
o.emailLogin ? (
|
|
15509
|
+
o.emailLogin ? (S(), P("span", Bs, [
|
|
15512
15510
|
y("div", Ds, [
|
|
15513
15511
|
Hs,
|
|
15514
|
-
|
|
15512
|
+
me(y("input", {
|
|
15515
15513
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
15516
15514
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
15517
15515
|
}, ["prevent"]), ["space"])),
|
|
@@ -15526,7 +15524,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15526
15524
|
]),
|
|
15527
15525
|
y("div", js, [
|
|
15528
15526
|
Ks,
|
|
15529
|
-
|
|
15527
|
+
me(y("input", {
|
|
15530
15528
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.username = s),
|
|
15531
15529
|
onKeydown: e[4] || (e[4] = kt(Oe(() => {
|
|
15532
15530
|
}, ["prevent"]), ["space"])),
|
|
@@ -15546,7 +15544,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15546
15544
|
]),
|
|
15547
15545
|
y("div", Qs, [
|
|
15548
15546
|
Ys,
|
|
15549
|
-
|
|
15547
|
+
me(y("input", {
|
|
15550
15548
|
"onUpdate:modelValue": e[5] || (e[5] = (s) => o.password = s),
|
|
15551
15549
|
type: o.revealPassword ? "text" : "password",
|
|
15552
15550
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15560,43 +15558,43 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15560
15558
|
onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
|
|
15561
15559
|
class: "pointer"
|
|
15562
15560
|
}, [
|
|
15563
|
-
|
|
15561
|
+
me(y("img", $s, null, 512), [
|
|
15564
15562
|
[mt, !o.revealPassword]
|
|
15565
15563
|
]),
|
|
15566
|
-
|
|
15564
|
+
me(y("img", Js, null, 512), [
|
|
15567
15565
|
[mt, o.revealPassword]
|
|
15568
15566
|
])
|
|
15569
15567
|
])
|
|
15570
15568
|
]),
|
|
15571
15569
|
y("button", Xs, [
|
|
15572
|
-
o.submitted ? (
|
|
15570
|
+
o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, U(o.formButtonText), 1))
|
|
15573
15571
|
])
|
|
15574
|
-
])) :
|
|
15572
|
+
])) : ne("", !0),
|
|
15575
15573
|
tc,
|
|
15576
|
-
n.displayAppleLogin ? (
|
|
15574
|
+
n.displayAppleLogin ? (S(), P("a", {
|
|
15577
15575
|
key: 2,
|
|
15578
15576
|
onClick: e[7] || (e[7] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
15579
15577
|
class: "button-center button button-90 google-button pointer"
|
|
15580
15578
|
}, [
|
|
15581
15579
|
nc,
|
|
15582
|
-
n.appleLoad ? (
|
|
15583
|
-
])) :
|
|
15580
|
+
n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
|
|
15581
|
+
])) : ne("", !0),
|
|
15584
15582
|
y("a", {
|
|
15585
15583
|
onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
15586
15584
|
class: "button-center button button-90 google-button pointer"
|
|
15587
15585
|
}, [
|
|
15588
15586
|
ic,
|
|
15589
|
-
n.googleLoad ? (
|
|
15587
|
+
n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, U(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
|
|
15590
15588
|
]),
|
|
15591
|
-
n.displayFacebookLogin ? (
|
|
15589
|
+
n.displayFacebookLogin ? (S(), P("a", {
|
|
15592
15590
|
key: 3,
|
|
15593
15591
|
onClick: e[9] || (e[9] = (...s) => n.facebookLogin && n.facebookLogin(...s)),
|
|
15594
15592
|
class: "button-center button button-90 google-button pointer"
|
|
15595
15593
|
}, [
|
|
15596
15594
|
cc,
|
|
15597
|
-
n.facebookLoad ? (
|
|
15598
|
-
])) :
|
|
15599
|
-
o.emailLogin ?
|
|
15595
|
+
n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
|
|
15596
|
+
])) : ne("", !0),
|
|
15597
|
+
o.emailLogin ? ne("", !0) : (S(), P("a", {
|
|
15600
15598
|
key: 4,
|
|
15601
15599
|
onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
|
|
15602
15600
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15613,7 +15611,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15613
15611
|
y("a", gc, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
|
|
15614
15612
|
]),
|
|
15615
15613
|
_c,
|
|
15616
|
-
t.isModal ? (
|
|
15614
|
+
t.isModal ? (S(), P("div", {
|
|
15617
15615
|
key: 6,
|
|
15618
15616
|
class: "page-login-links",
|
|
15619
15617
|
onClick: e[11] || (e[11] = (...s) => i.loginAccountModal && i.loginAccountModal(...s))
|
|
@@ -15624,21 +15622,21 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15624
15622
|
se(" " + U(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
|
|
15625
15623
|
]),
|
|
15626
15624
|
bc
|
|
15627
|
-
])) : (
|
|
15628
|
-
|
|
15625
|
+
])) : (S(), P("div", vc, [
|
|
15626
|
+
ke(a, {
|
|
15629
15627
|
class: "create float-right",
|
|
15630
15628
|
to: "/verify"
|
|
15631
15629
|
}, {
|
|
15632
|
-
default:
|
|
15630
|
+
default: nt(() => [
|
|
15633
15631
|
se(U(n.ssoLang[this.appLanguage].verify_account), 1)
|
|
15634
15632
|
]),
|
|
15635
15633
|
_: 1
|
|
15636
15634
|
}),
|
|
15637
|
-
|
|
15635
|
+
ke(a, {
|
|
15638
15636
|
class: "forgot float-left",
|
|
15639
15637
|
to: "/login"
|
|
15640
15638
|
}, {
|
|
15641
|
-
default:
|
|
15639
|
+
default: nt(() => [
|
|
15642
15640
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
15643
15641
|
]),
|
|
15644
15642
|
_: 1
|
|
@@ -15647,7 +15645,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15647
15645
|
]))
|
|
15648
15646
|
], 36);
|
|
15649
15647
|
}
|
|
15650
|
-
const vo = /* @__PURE__ */
|
|
15648
|
+
const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
|
|
15651
15649
|
name: "AuthVerify",
|
|
15652
15650
|
mixins: [ze],
|
|
15653
15651
|
props: {
|
|
@@ -15710,7 +15708,7 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15710
15708
|
deep: !0
|
|
15711
15709
|
}
|
|
15712
15710
|
}
|
|
15713
|
-
},
|
|
15711
|
+
}, Ge = (n) => (Ht("data-v-af1531aa"), n = n(), qt(), n), Tc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
|
|
15714
15712
|
/* @__PURE__ */ y("img", {
|
|
15715
15713
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
15716
15714
|
class: "responsive-image",
|
|
@@ -15721,19 +15719,19 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15721
15719
|
], Sc = {
|
|
15722
15720
|
class: "bold no-bottom center-text",
|
|
15723
15721
|
style: { "margin-top": "63px" }
|
|
15724
|
-
}, Ac = /* @__PURE__ */
|
|
15722
|
+
}, Ac = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("p", { class: "half-bottom half-top center-text color-black" }, null, -1)), Rc = { class: "page-login-field half-top" }, Pc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
|
|
15725
15723
|
/* @__PURE__ */ y("img", {
|
|
15726
15724
|
src: "https://cdn.tapni.co/icons/mail.png",
|
|
15727
15725
|
class: "responsive-image",
|
|
15728
15726
|
style: { width: "80%" }
|
|
15729
15727
|
})
|
|
15730
|
-
], -1)),
|
|
15728
|
+
], -1)), Mc = ["placeholder"], Nc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("em", null, null, -1)), Lc = { class: "page-login-field half-top" }, Oc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
|
|
15731
15729
|
/* @__PURE__ */ y("img", {
|
|
15732
15730
|
src: "https://cdn.tapni.co/icons/password2.png",
|
|
15733
15731
|
class: "responsive-image",
|
|
15734
15732
|
style: { width: "100%" }
|
|
15735
15733
|
})
|
|
15736
|
-
], -1)), zc = ["placeholder"], Uc = /* @__PURE__ */
|
|
15734
|
+
], -1)), zc = ["placeholder"], Uc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("em", null, null, -1)), xc = {
|
|
15737
15735
|
type: "submit",
|
|
15738
15736
|
class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
|
|
15739
15737
|
}, Bc = {
|
|
@@ -15742,28 +15740,28 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15742
15740
|
}, Dc = {
|
|
15743
15741
|
key: 1,
|
|
15744
15742
|
class: "button--loading button__loader"
|
|
15745
|
-
}, Hc = /* @__PURE__ */
|
|
15743
|
+
}, Hc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qc = { class: "close-text center-text half-top color-black" }, Fc = ["innerHTML"], jc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Kc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Gc = {
|
|
15746
15744
|
key: 1,
|
|
15747
15745
|
class: "page-login-links"
|
|
15748
|
-
}, Vc = /* @__PURE__ */
|
|
15746
|
+
}, Vc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), Qc = { class: "forgot center-text pointer small-top" }, Yc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("br", null, null, -1)), Wc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1));
|
|
15749
15747
|
function $c(n, e, t, r, o, i) {
|
|
15750
15748
|
const a = Dt("router-link");
|
|
15751
|
-
return
|
|
15749
|
+
return S(), P("form", {
|
|
15752
15750
|
class: "page-login content-boxed content-boxed-padding",
|
|
15753
15751
|
onSubmit: e[6] || (e[6] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15754
15752
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15755
15753
|
}, [
|
|
15756
|
-
t.isModal ? (
|
|
15754
|
+
t.isModal ? (S(), P("a", {
|
|
15757
15755
|
key: 0,
|
|
15758
15756
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15759
15757
|
class: "color-black pull-right pointer",
|
|
15760
15758
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15761
|
-
}, Ic)) :
|
|
15759
|
+
}, Ic)) : ne("", !0),
|
|
15762
15760
|
y("h1", Sc, U(n.ssoLang[this.appLanguage].verify_account), 1),
|
|
15763
15761
|
Ac,
|
|
15764
15762
|
y("div", Rc, [
|
|
15765
15763
|
Pc,
|
|
15766
|
-
|
|
15764
|
+
me(y("input", {
|
|
15767
15765
|
id: "emailInput",
|
|
15768
15766
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
15769
15767
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
@@ -15771,14 +15769,14 @@ function $c(n, e, t, r, o, i) {
|
|
|
15771
15769
|
type: "email",
|
|
15772
15770
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
15773
15771
|
required: ""
|
|
15774
|
-
}, null, 40,
|
|
15772
|
+
}, null, 40, Mc), [
|
|
15775
15773
|
[wt, o.email]
|
|
15776
15774
|
]),
|
|
15777
|
-
|
|
15775
|
+
Nc
|
|
15778
15776
|
]),
|
|
15779
15777
|
y("div", Lc, [
|
|
15780
15778
|
Oc,
|
|
15781
|
-
|
|
15779
|
+
me(y("input", {
|
|
15782
15780
|
id: "codeInput",
|
|
15783
15781
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.code = s),
|
|
15784
15782
|
onKeydown: e[4] || (e[4] = kt(Oe(() => {
|
|
@@ -15792,7 +15790,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15792
15790
|
Uc
|
|
15793
15791
|
]),
|
|
15794
15792
|
y("button", xc, [
|
|
15795
|
-
o.submitted ? (
|
|
15793
|
+
o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, U(n.ssoLang[this.appLanguage].verify_account), 1))
|
|
15796
15794
|
]),
|
|
15797
15795
|
Hc,
|
|
15798
15796
|
y("p", qc, [
|
|
@@ -15802,7 +15800,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15802
15800
|
jc
|
|
15803
15801
|
]),
|
|
15804
15802
|
Kc,
|
|
15805
|
-
t.isModal ? (
|
|
15803
|
+
t.isModal ? (S(), P("div", {
|
|
15806
15804
|
key: 2,
|
|
15807
15805
|
class: "page-login-links",
|
|
15808
15806
|
onClick: e[5] || (e[5] = (...s) => i.registerAccountModal && i.registerAccountModal(...s))
|
|
@@ -15813,21 +15811,21 @@ function $c(n, e, t, r, o, i) {
|
|
|
15813
15811
|
se(" " + U(n.ssoLang[this.appLanguage].create_new_account), 1)
|
|
15814
15812
|
]),
|
|
15815
15813
|
Wc
|
|
15816
|
-
])) : (
|
|
15817
|
-
|
|
15814
|
+
])) : (S(), P("div", Gc, [
|
|
15815
|
+
ke(a, {
|
|
15818
15816
|
class: "create float-right",
|
|
15819
15817
|
to: "/register"
|
|
15820
15818
|
}, {
|
|
15821
|
-
default:
|
|
15819
|
+
default: nt(() => [
|
|
15822
15820
|
se(U(n.ssoLang[this.appLanguage].register), 1)
|
|
15823
15821
|
]),
|
|
15824
15822
|
_: 1
|
|
15825
15823
|
}),
|
|
15826
|
-
|
|
15824
|
+
ke(a, {
|
|
15827
15825
|
class: "forgot float-left",
|
|
15828
15826
|
to: "/login"
|
|
15829
15827
|
}, {
|
|
15830
|
-
default:
|
|
15828
|
+
default: nt(() => [
|
|
15831
15829
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
15832
15830
|
]),
|
|
15833
15831
|
_: 1
|
|
@@ -15836,7 +15834,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15836
15834
|
]))
|
|
15837
15835
|
], 36);
|
|
15838
15836
|
}
|
|
15839
|
-
const yo = /* @__PURE__ */
|
|
15837
|
+
const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-af1531aa"]]), Jc = {
|
|
15840
15838
|
name: "AuthReset",
|
|
15841
15839
|
mixins: [ze],
|
|
15842
15840
|
data() {
|
|
@@ -15944,10 +15942,10 @@ const yo = /* @__PURE__ */ Ye(Ec, [["render", $c], ["__scopeId", "data-v-af1531a
|
|
|
15944
15942
|
}, Al = {
|
|
15945
15943
|
key: 1,
|
|
15946
15944
|
class: "button--loading button__loader"
|
|
15947
|
-
}, Rl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pl = { class: "close-text center-text half-top color-black" },
|
|
15945
|
+
}, Rl = /* @__PURE__ */ lt(() => /* @__PURE__ */ y("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pl = { class: "close-text center-text half-top color-black" }, Ml = ["innerHTML"], Nl = ["href"];
|
|
15948
15946
|
function Ll(n, e, t, r, o, i) {
|
|
15949
15947
|
const a = Dt("router-link");
|
|
15950
|
-
return o.passwordChange ? (
|
|
15948
|
+
return o.passwordChange ? (S(), P("form", {
|
|
15951
15949
|
key: 1,
|
|
15952
15950
|
class: "page-login content-boxed content-boxed-padding",
|
|
15953
15951
|
onSubmit: e[7] || (e[7] = Oe((...s) => i.changePw && i.changePw(...s), ["prevent"]))
|
|
@@ -15956,7 +15954,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15956
15954
|
y("p", fl, U(n.ssoLang[this.appLanguage].password_new), 1),
|
|
15957
15955
|
y("div", gl, [
|
|
15958
15956
|
_l,
|
|
15959
|
-
|
|
15957
|
+
me(y("input", {
|
|
15960
15958
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.password = s),
|
|
15961
15959
|
type: o.revealPassword ? "text" : "password",
|
|
15962
15960
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15967,17 +15965,17 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15967
15965
|
y("em", {
|
|
15968
15966
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
|
|
15969
15967
|
}, [
|
|
15970
|
-
|
|
15968
|
+
me(y("img", yl, null, 512), [
|
|
15971
15969
|
[mt, !o.revealPassword]
|
|
15972
15970
|
]),
|
|
15973
|
-
|
|
15971
|
+
me(y("img", kl, null, 512), [
|
|
15974
15972
|
[mt, o.revealPassword]
|
|
15975
15973
|
])
|
|
15976
15974
|
])
|
|
15977
15975
|
]),
|
|
15978
15976
|
y("div", wl, [
|
|
15979
15977
|
bl,
|
|
15980
|
-
|
|
15978
|
+
me(y("input", {
|
|
15981
15979
|
"onUpdate:modelValue": e[5] || (e[5] = (s) => o.passwordRepeat = s),
|
|
15982
15980
|
type: o.revealPassword2 ? "text" : "password",
|
|
15983
15981
|
placeholder: n.ssoLang[this.appLanguage].password_repeat,
|
|
@@ -15988,28 +15986,28 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15988
15986
|
y("em", {
|
|
15989
15987
|
onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
|
|
15990
15988
|
}, [
|
|
15991
|
-
|
|
15989
|
+
me(y("img", El, null, 512), [
|
|
15992
15990
|
[mt, !o.revealPassword2]
|
|
15993
15991
|
]),
|
|
15994
|
-
|
|
15992
|
+
me(y("img", Tl, null, 512), [
|
|
15995
15993
|
[mt, o.revealPassword2]
|
|
15996
15994
|
])
|
|
15997
15995
|
])
|
|
15998
15996
|
]),
|
|
15999
15997
|
y("button", Il, [
|
|
16000
|
-
o.submitted ? (
|
|
15998
|
+
o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, U(n.ssoLang[this.appLanguage].password_change), 1))
|
|
16001
15999
|
]),
|
|
16002
16000
|
Rl,
|
|
16003
16001
|
y("p", Pl, [
|
|
16004
16002
|
y("span", {
|
|
16005
16003
|
innerHTML: n.ssoLang[this.appLanguage].reset_password_p2
|
|
16006
|
-
}, null, 8,
|
|
16004
|
+
}, null, 8, Ml),
|
|
16007
16005
|
se(),
|
|
16008
16006
|
y("a", {
|
|
16009
16007
|
href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
|
|
16010
|
-
}, " support@tapni.com", 8,
|
|
16008
|
+
}, " support@tapni.com", 8, Nl)
|
|
16011
16009
|
])
|
|
16012
|
-
], 32)) : (
|
|
16010
|
+
], 32)) : (S(), P("form", {
|
|
16013
16011
|
key: 0,
|
|
16014
16012
|
class: "page-login content-boxed content-boxed-padding",
|
|
16015
16013
|
onSubmit: e[2] || (e[2] = Oe((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
|
|
@@ -16019,7 +16017,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16019
16017
|
Zc,
|
|
16020
16018
|
y("div", el, [
|
|
16021
16019
|
tl,
|
|
16022
|
-
|
|
16020
|
+
me(y("input", {
|
|
16023
16021
|
id: "emailInput",
|
|
16024
16022
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.email = s),
|
|
16025
16023
|
onKeydown: e[1] || (e[1] = kt(Oe(() => {
|
|
@@ -16033,7 +16031,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16033
16031
|
rl
|
|
16034
16032
|
]),
|
|
16035
16033
|
y("button", ol, [
|
|
16036
|
-
o.submitted ? (
|
|
16034
|
+
o.submitted ? (S(), P("span", al)) : (S(), P("span", il, U(n.ssoLang[this.appLanguage].reset_password), 1))
|
|
16037
16035
|
]),
|
|
16038
16036
|
sl,
|
|
16039
16037
|
y("p", cl, [
|
|
@@ -16046,20 +16044,20 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16046
16044
|
]),
|
|
16047
16045
|
dl,
|
|
16048
16046
|
y("div", pl, [
|
|
16049
|
-
|
|
16047
|
+
ke(a, {
|
|
16050
16048
|
class: "create float-right",
|
|
16051
16049
|
to: "/verify"
|
|
16052
16050
|
}, {
|
|
16053
|
-
default:
|
|
16051
|
+
default: nt(() => [
|
|
16054
16052
|
se(U(n.ssoLang[this.appLanguage].verify_account), 1)
|
|
16055
16053
|
]),
|
|
16056
16054
|
_: 1
|
|
16057
16055
|
}),
|
|
16058
|
-
|
|
16056
|
+
ke(a, {
|
|
16059
16057
|
class: "forgot float-left",
|
|
16060
16058
|
to: "/login"
|
|
16061
16059
|
}, {
|
|
16062
|
-
default:
|
|
16060
|
+
default: nt(() => [
|
|
16063
16061
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
16064
16062
|
]),
|
|
16065
16063
|
_: 1
|
|
@@ -16068,9 +16066,9 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16068
16066
|
])
|
|
16069
16067
|
], 32));
|
|
16070
16068
|
}
|
|
16071
|
-
const ko = /* @__PURE__ */
|
|
16069
|
+
const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89a"]]), Ol = {
|
|
16072
16070
|
name: "AuthCallback",
|
|
16073
|
-
mixins: [Rn,
|
|
16071
|
+
mixins: [Rn, Mn, ze],
|
|
16074
16072
|
data() {
|
|
16075
16073
|
return {};
|
|
16076
16074
|
},
|
|
@@ -16096,8 +16094,8 @@ const ko = /* @__PURE__ */ Ye(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89
|
|
|
16096
16094
|
style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
|
|
16097
16095
|
};
|
|
16098
16096
|
function Dl(n, e, t, r, o, i) {
|
|
16099
|
-
return
|
|
16100
|
-
(n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (
|
|
16097
|
+
return S(), P("div", zl, [
|
|
16098
|
+
(n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (S(), P("h5", Ul, [
|
|
16101
16099
|
se(U(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
|
|
16102
16100
|
xl,
|
|
16103
16101
|
se(" " + U(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
|
|
@@ -16106,10 +16104,10 @@ function Dl(n, e, t, r, o, i) {
|
|
|
16106
16104
|
style: { color: "blue", cursor: "pointer" }
|
|
16107
16105
|
}, U(n.ssoLang[this.appLanguage].click_here), 1),
|
|
16108
16106
|
se(".")
|
|
16109
|
-
])) : (
|
|
16107
|
+
])) : (S(), P("h4", Bl, U(n.ssoLang[this.appLanguage].please_wait), 1))
|
|
16110
16108
|
]);
|
|
16111
16109
|
}
|
|
16112
|
-
const wo = /* @__PURE__ */
|
|
16110
|
+
const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
|
|
16113
16111
|
name: "ModalOverlay",
|
|
16114
16112
|
mixins: [ze],
|
|
16115
16113
|
data() {
|
|
@@ -16135,14 +16133,14 @@ const wo = /* @__PURE__ */ Ye(Ol, [["render", Dl]]), Hl = {
|
|
|
16135
16133
|
}
|
|
16136
16134
|
};
|
|
16137
16135
|
function ql(n, e, t, r, o, i) {
|
|
16138
|
-
return
|
|
16136
|
+
return S(), P("div", {
|
|
16139
16137
|
class: Ie({ "pointer delete-menu": !0, "delete-menu-active": o.toggle }),
|
|
16140
16138
|
onClick: e[0] || (e[0] = (...a) => i.toggleEmit && i.toggleEmit(...a))
|
|
16141
16139
|
}, null, 2);
|
|
16142
16140
|
}
|
|
16143
|
-
const bo = /* @__PURE__ */
|
|
16141
|
+
const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2fa"]]), Fl = {
|
|
16144
16142
|
name: "SSO",
|
|
16145
|
-
mixins: [An, Rn,
|
|
16143
|
+
mixins: [An, Rn, Mn, ze],
|
|
16146
16144
|
data() {
|
|
16147
16145
|
return {
|
|
16148
16146
|
toggle: !1,
|
|
@@ -16200,7 +16198,7 @@ const bo = /* @__PURE__ */ Ye(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
|
|
|
16200
16198
|
class: "button--loading button__loader"
|
|
16201
16199
|
};
|
|
16202
16200
|
function Jl(n, e, t, r, o, i) {
|
|
16203
|
-
return
|
|
16201
|
+
return S(), P("form", {
|
|
16204
16202
|
onSubmit: e[3] || (e[3] = Oe((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
16205
16203
|
class: Ie(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
16206
16204
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
@@ -16212,7 +16210,7 @@ function Jl(n, e, t, r, o, i) {
|
|
|
16212
16210
|
}, Gl),
|
|
16213
16211
|
y("h3", Vl, U(n.ssoLang[n.appLanguage].enter_company_email), 1),
|
|
16214
16212
|
y("div", null, [
|
|
16215
|
-
|
|
16213
|
+
me(y("input", {
|
|
16216
16214
|
type: "text",
|
|
16217
16215
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => o.email = a),
|
|
16218
16216
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
@@ -16230,13 +16228,13 @@ function Jl(n, e, t, r, o, i) {
|
|
|
16230
16228
|
])
|
|
16231
16229
|
]),
|
|
16232
16230
|
y("button", Yl, [
|
|
16233
|
-
o.loading ? (
|
|
16231
|
+
o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, U(n.ssoLang[n.appLanguage].continue), 1))
|
|
16234
16232
|
])
|
|
16235
16233
|
], 34);
|
|
16236
16234
|
}
|
|
16237
|
-
const Co = /* @__PURE__ */
|
|
16235
|
+
const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a09"]]), Xl = {
|
|
16238
16236
|
name: "SSOPick",
|
|
16239
|
-
mixins: [An, Rn,
|
|
16237
|
+
mixins: [An, Rn, Mn, ze],
|
|
16240
16238
|
data() {
|
|
16241
16239
|
return {
|
|
16242
16240
|
toggle: !1,
|
|
@@ -16269,7 +16267,7 @@ const Co = /* @__PURE__ */ Ye(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16269
16267
|
this.azureLoad = !1, this.oktaLoad = !1, this.samlLoad = !1, this.sso = null, this.email = null, n && (this.sso = n.sso, this.email = n.email), this.toggle = !this.toggle;
|
|
16270
16268
|
}
|
|
16271
16269
|
}
|
|
16272
|
-
},
|
|
16270
|
+
}, Nn = (n) => (Ht("data-v-4f821f65"), n = n(), qt(), n), Zl = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
|
|
16273
16271
|
/* @__PURE__ */ y("img", {
|
|
16274
16272
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
16275
16273
|
class: "responsive-image",
|
|
@@ -16277,19 +16275,19 @@ const Co = /* @__PURE__ */ Ye(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16277
16275
|
})
|
|
16278
16276
|
], -1)), eu = [
|
|
16279
16277
|
Zl
|
|
16280
|
-
], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */
|
|
16278
|
+
], tu = { class: "bold center-text color-black half-top half-bottom" }, nu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16281
16279
|
src: "https://cdn.tapni.co/icons/azure.png",
|
|
16282
16280
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16283
16281
|
}, null, -1)), ru = { key: 0 }, ou = {
|
|
16284
16282
|
key: 1,
|
|
16285
16283
|
class: "button--loading button__loader"
|
|
16286
|
-
}, iu = /* @__PURE__ */
|
|
16284
|
+
}, iu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16287
16285
|
src: "https://cdn.tapni.co/icons/okta.png",
|
|
16288
16286
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16289
16287
|
}, null, -1)), au = { key: 0 }, su = {
|
|
16290
16288
|
key: 1,
|
|
16291
16289
|
class: "button--loading button__loader"
|
|
16292
|
-
}, cu = /* @__PURE__ */
|
|
16290
|
+
}, cu = /* @__PURE__ */ Nn(() => /* @__PURE__ */ y("img", {
|
|
16293
16291
|
src: "https://cdn.tapni.co/icons/saml.png",
|
|
16294
16292
|
style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
|
|
16295
16293
|
}, null, -1)), lu = { key: 0 }, uu = {
|
|
@@ -16298,7 +16296,7 @@ const Co = /* @__PURE__ */ Ye(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16298
16296
|
};
|
|
16299
16297
|
function du(n, e, t, r, o, i) {
|
|
16300
16298
|
var a, s, u;
|
|
16301
|
-
return
|
|
16299
|
+
return S(), P("form", {
|
|
16302
16300
|
onSubmit: e[4] || (e[4] = Oe(() => {
|
|
16303
16301
|
}, ["prevent"])),
|
|
16304
16302
|
class: Ie(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
@@ -16310,33 +16308,33 @@ function du(n, e, t, r, o, i) {
|
|
|
16310
16308
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16311
16309
|
}, eu),
|
|
16312
16310
|
y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
|
|
16313
|
-
(a = o.sso) != null && a.azure ? (
|
|
16311
|
+
(a = o.sso) != null && a.azure ? (S(), P("a", {
|
|
16314
16312
|
key: 0,
|
|
16315
16313
|
onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
|
|
16316
16314
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16317
16315
|
}, [
|
|
16318
16316
|
nu,
|
|
16319
|
-
o.azureLoad ? (
|
|
16320
|
-
])) :
|
|
16321
|
-
(s = o.sso) != null && s.okta ? (
|
|
16317
|
+
o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
|
|
16318
|
+
])) : ne("", !0),
|
|
16319
|
+
(s = o.sso) != null && s.okta ? (S(), P("a", {
|
|
16322
16320
|
key: 1,
|
|
16323
16321
|
onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
|
|
16324
16322
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16325
16323
|
}, [
|
|
16326
16324
|
iu,
|
|
16327
|
-
o.oktaLoad ? (
|
|
16328
|
-
])) :
|
|
16329
|
-
(u = o.sso) != null && u.saml ? (
|
|
16325
|
+
o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
|
|
16326
|
+
])) : ne("", !0),
|
|
16327
|
+
(u = o.sso) != null && u.saml ? (S(), P("a", {
|
|
16330
16328
|
key: 2,
|
|
16331
16329
|
onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
|
|
16332
16330
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16333
16331
|
}, [
|
|
16334
16332
|
cu,
|
|
16335
|
-
o.samlLoad ? (
|
|
16336
|
-
])) :
|
|
16333
|
+
o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
|
|
16334
|
+
])) : ne("", !0)
|
|
16337
16335
|
], 34);
|
|
16338
16336
|
}
|
|
16339
|
-
const Eo = /* @__PURE__ */
|
|
16337
|
+
const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
|
|
16340
16338
|
name: "LinkIcon",
|
|
16341
16339
|
mixins: [ze],
|
|
16342
16340
|
props: {
|
|
@@ -16411,7 +16409,7 @@ const Eo = /* @__PURE__ */ Ye(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
|
|
|
16411
16409
|
}, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
|
|
16412
16410
|
function _u(n, e, t, r, o, i) {
|
|
16413
16411
|
var a, s;
|
|
16414
|
-
return
|
|
16412
|
+
return S(), P("a", {
|
|
16415
16413
|
class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
16416
16414
|
style: Ot(
|
|
16417
16415
|
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
|
|
@@ -16425,28 +16423,28 @@ function _u(n, e, t, r, o, i) {
|
|
|
16425
16423
|
}),
|
|
16426
16424
|
style: Ot({ ...(a = t.customLinkStyle) == null ? void 0 : a.linkIcon })
|
|
16427
16425
|
}, [
|
|
16428
|
-
!t.data.custom_icon && t.data.type !== "customlink" ? (
|
|
16426
|
+
!t.data.custom_icon && t.data.type !== "customlink" ? (S(), P("img", {
|
|
16429
16427
|
key: 0,
|
|
16430
16428
|
src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
|
|
16431
16429
|
class: "responsive-image",
|
|
16432
16430
|
alt: t.data.text,
|
|
16433
16431
|
onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
|
|
16434
16432
|
onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
|
|
16435
|
-
}, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (
|
|
16433
|
+
}, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
|
|
16436
16434
|
key: 1,
|
|
16437
16435
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
16438
16436
|
class: "responsive-image",
|
|
16439
16437
|
alt: t.data.text,
|
|
16440
16438
|
onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
|
|
16441
16439
|
onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
|
|
16442
|
-
}, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (
|
|
16440
|
+
}, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
|
|
16443
16441
|
key: 2,
|
|
16444
16442
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
16445
16443
|
class: "responsive-image",
|
|
16446
16444
|
alt: t.data.text,
|
|
16447
16445
|
onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
|
|
16448
16446
|
onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
|
|
16449
|
-
}, null, 40, fu)) : (
|
|
16447
|
+
}, null, 40, fu)) : (S(), P("img", {
|
|
16450
16448
|
key: 3,
|
|
16451
16449
|
src: t.data.style.custom_icon,
|
|
16452
16450
|
style: { "border-radius": "22.46%" },
|
|
@@ -16462,7 +16460,7 @@ function _u(n, e, t, r, o, i) {
|
|
|
16462
16460
|
}, U(i.linkText), 5)
|
|
16463
16461
|
], 6);
|
|
16464
16462
|
}
|
|
16465
|
-
const vu = /* @__PURE__ */
|
|
16463
|
+
const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
|
|
16466
16464
|
ANDROID_VERSION: "5.6",
|
|
16467
16465
|
IOS_VERSION: "5.6",
|
|
16468
16466
|
WEB_VERSION: "5.6.0",
|
|
@@ -16513,7 +16511,7 @@ const vu = /* @__PURE__ */ Ye(pu, [["render", _u]]), yu = {
|
|
|
16513
16511
|
], Eu = { class: "bold center-text color-black small-bottom" };
|
|
16514
16512
|
function Tu(n, e, t, r, o, i) {
|
|
16515
16513
|
const a = Dt("LinkIcon");
|
|
16516
|
-
return
|
|
16514
|
+
return S(), P("div", {
|
|
16517
16515
|
class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
16518
16516
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
16519
16517
|
}, [
|
|
@@ -16523,56 +16521,56 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16523
16521
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16524
16522
|
}, Cu),
|
|
16525
16523
|
y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
|
|
16526
|
-
|
|
16524
|
+
ke(a, {
|
|
16527
16525
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
16528
16526
|
"link-style": "link-grid",
|
|
16529
16527
|
data: { type: "lang/en", text: n.ssoLang[this.appLanguage].english },
|
|
16530
16528
|
editing: !1,
|
|
16531
16529
|
class: Ie({ "add-button": !0 })
|
|
16532
16530
|
}, null, 8, ["data"]),
|
|
16533
|
-
|
|
16531
|
+
ke(a, {
|
|
16534
16532
|
onClick: e[2] || (e[2] = (s) => i.updateLanguage("es")),
|
|
16535
16533
|
"link-style": "link-grid",
|
|
16536
16534
|
data: { type: "lang/es", text: n.ssoLang[this.appLanguage].spanish },
|
|
16537
16535
|
editing: !1,
|
|
16538
16536
|
class: Ie({ "add-button": !0 })
|
|
16539
16537
|
}, null, 8, ["data"]),
|
|
16540
|
-
|
|
16538
|
+
ke(a, {
|
|
16541
16539
|
onClick: e[3] || (e[3] = (s) => i.updateLanguage("de")),
|
|
16542
16540
|
"link-style": "link-grid",
|
|
16543
16541
|
data: { type: "lang/de", text: n.ssoLang[this.appLanguage].german },
|
|
16544
16542
|
editing: !1,
|
|
16545
16543
|
class: Ie({ "add-button": !0 })
|
|
16546
16544
|
}, null, 8, ["data"]),
|
|
16547
|
-
|
|
16545
|
+
ke(a, {
|
|
16548
16546
|
onClick: e[4] || (e[4] = (s) => i.updateLanguage("it")),
|
|
16549
16547
|
"link-style": "link-grid",
|
|
16550
16548
|
data: { type: "lang/it", text: n.ssoLang[this.appLanguage].italian },
|
|
16551
16549
|
editing: !1,
|
|
16552
16550
|
class: Ie({ "add-button": !0 })
|
|
16553
16551
|
}, null, 8, ["data"]),
|
|
16554
|
-
|
|
16552
|
+
ke(a, {
|
|
16555
16553
|
onClick: e[5] || (e[5] = (s) => i.updateLanguage("fr")),
|
|
16556
16554
|
"link-style": "link-grid",
|
|
16557
16555
|
data: { type: "lang/fr", text: n.ssoLang[this.appLanguage].french },
|
|
16558
16556
|
editing: !1,
|
|
16559
16557
|
class: Ie({ "add-button": !0 })
|
|
16560
16558
|
}, null, 8, ["data"]),
|
|
16561
|
-
|
|
16559
|
+
ke(a, {
|
|
16562
16560
|
onClick: e[6] || (e[6] = (s) => i.updateLanguage("kr")),
|
|
16563
16561
|
"link-style": "link-grid",
|
|
16564
16562
|
data: { type: "lang/kr", text: n.ssoLang[this.appLanguage].korean },
|
|
16565
16563
|
editing: !1,
|
|
16566
16564
|
class: Ie({ "add-button": !0 })
|
|
16567
16565
|
}, null, 8, ["data"]),
|
|
16568
|
-
|
|
16566
|
+
ke(a, {
|
|
16569
16567
|
onClick: e[7] || (e[7] = (s) => i.updateLanguage("sr")),
|
|
16570
16568
|
"link-style": "link-grid",
|
|
16571
16569
|
data: { type: "lang/sr", text: n.ssoLang[this.appLanguage].serbian },
|
|
16572
16570
|
editing: !1,
|
|
16573
16571
|
class: Ie({ "add-button": !0 })
|
|
16574
16572
|
}, null, 8, ["data"]),
|
|
16575
|
-
|
|
16573
|
+
ke(a, {
|
|
16576
16574
|
onClick: e[8] || (e[8] = (s) => i.updateLanguage("tr")),
|
|
16577
16575
|
"link-style": "link-grid",
|
|
16578
16576
|
data: { type: "lang/tr", text: n.ssoLang[this.appLanguage].turkish },
|
|
@@ -16581,7 +16579,7 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16581
16579
|
}, null, 8, ["data"])
|
|
16582
16580
|
], 2);
|
|
16583
16581
|
}
|
|
16584
|
-
const To = /* @__PURE__ */
|
|
16582
|
+
const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-34a6b7b2"]]);
|
|
16585
16583
|
var Iu = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
|
|
16586
16584
|
const Su = { id: "ssoapp" }, Au = {
|
|
16587
16585
|
key: 0,
|
|
@@ -16593,7 +16591,7 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16593
16591
|
class: "header-logo-img"
|
|
16594
16592
|
}, null, -1), Pu = [
|
|
16595
16593
|
Ru
|
|
16596
|
-
],
|
|
16594
|
+
], Mu = { class: "lang-icon" }, Nu = {
|
|
16597
16595
|
class: "snackbar snackbar-boxed",
|
|
16598
16596
|
id: "snackbar"
|
|
16599
16597
|
}, Lu = {
|
|
@@ -16656,7 +16654,7 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16656
16654
|
return;
|
|
16657
16655
|
this.isSetup = !0, this.setToken(this.$storage.token);
|
|
16658
16656
|
const n = this.getRefreshTokens();
|
|
16659
|
-
this.setRefreshToken(n[0]), this.getLoggedInAccounts(), this.$emit("ssoLibraryReady");
|
|
16657
|
+
this.setRefreshToken(n[0]), await this.getLoggedInAccounts(), this.$emit("ssoLibraryReady");
|
|
16660
16658
|
},
|
|
16661
16659
|
ssoOutgoingEvent(n) {
|
|
16662
16660
|
this.$emit("ssoEvent", n);
|
|
@@ -16674,6 +16672,9 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16674
16672
|
watch: {
|
|
16675
16673
|
display() {
|
|
16676
16674
|
this.applyBgStyle();
|
|
16675
|
+
},
|
|
16676
|
+
"$storageReady.value"(n) {
|
|
16677
|
+
n && this.display === "npm" && this.init();
|
|
16677
16678
|
}
|
|
16678
16679
|
}
|
|
16679
16680
|
}, Hr = /* @__PURE__ */ Object.assign(qu, {
|
|
@@ -16681,31 +16682,31 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16681
16682
|
return document.addEventListener("DOMContentLoaded", function() {
|
|
16682
16683
|
const e = document.createElement("script");
|
|
16683
16684
|
e.src = `https://www.google.com/recaptcha/api.js?render=${Iu.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(e);
|
|
16684
|
-
}), (e, t) => (
|
|
16685
|
-
e.display === "redirect" ? (
|
|
16686
|
-
e.display === "redirect" ? (
|
|
16685
|
+
}), (e, t) => (S(), P("div", Su, [
|
|
16686
|
+
e.display === "redirect" ? (S(), P("a", Au, Pu)) : ne("", !0),
|
|
16687
|
+
e.display === "redirect" ? (S(), P("a", {
|
|
16687
16688
|
key: 1,
|
|
16688
16689
|
onClick: t[0] || (t[0] = (...r) => e.toggleLanguageModal && e.toggleLanguageModal(...r)),
|
|
16689
16690
|
class: "font-18 no-border pointer color-black",
|
|
16690
16691
|
style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
|
|
16691
16692
|
}, [
|
|
16692
|
-
y("span",
|
|
16693
|
-
])) :
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
e.initialized && e.renderView === "AuthWelcome" ? (
|
|
16699
|
-
key:
|
|
16693
|
+
y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
|
|
16694
|
+
])) : ne("", !0),
|
|
16695
|
+
ke(bo),
|
|
16696
|
+
n.isModal ? ne("", !0) : (S(), qe(To, { key: 2 })),
|
|
16697
|
+
n.isModal ? ne("", !0) : (S(), qe(Co, { key: 3 })),
|
|
16698
|
+
n.isModal ? ne("", !0) : (S(), qe(Eo, { key: 4 })),
|
|
16699
|
+
e.initialized && e.renderView === "AuthWelcome" ? (S(), qe(Jr, { key: 5 })) : e.initialized && e.renderView === "AuthLogin" ? (S(), qe(_o, {
|
|
16700
|
+
key: 6,
|
|
16700
16701
|
isModal: n.isModal
|
|
16701
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthRegister" ? (
|
|
16702
|
-
key:
|
|
16702
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthRegister" ? (S(), qe(vo, {
|
|
16703
|
+
key: 7,
|
|
16703
16704
|
isModal: n.isModal
|
|
16704
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (
|
|
16705
|
-
key:
|
|
16705
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (S(), qe(yo, {
|
|
16706
|
+
key: 8,
|
|
16706
16707
|
isModal: n.isModal
|
|
16707
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (
|
|
16708
|
-
y("div",
|
|
16708
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : (S(), qe(Qo(Yo), { key: 11 })),
|
|
16709
|
+
y("div", Nu, [
|
|
16709
16710
|
y("p", Lu, [
|
|
16710
16711
|
y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
|
|
16711
16712
|
y("a", {
|