@tapni/auth 0.0.70 → 0.0.72
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 +505 -509
- package/dist/TapniAuth.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +3 -3
- package/src/mixins/auth.mixin.js +5 -11
- 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.72";
|
|
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
105
|
const Me = {
|
|
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,7 +4469,7 @@ const ze = {
|
|
|
4473
4469
|
});
|
|
4474
4470
|
},
|
|
4475
4471
|
async refreshTokenAction(n) {
|
|
4476
|
-
if (!this.refreshToken)
|
|
4472
|
+
if (!this.refreshToken || this.refreshing)
|
|
4477
4473
|
return;
|
|
4478
4474
|
this.refreshing = !0;
|
|
4479
4475
|
const [e, t] = await Z(
|
|
@@ -4588,7 +4584,7 @@ const ze = {
|
|
|
4588
4584
|
this.loggedInAccounts[e].refreshToken === this.refreshToken && this.refreshTokenAction({
|
|
4589
4585
|
id: this.loggedInAccounts[e].id
|
|
4590
4586
|
}).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),
|
|
4587
|
+
}) : (this.setUser(null), this.$router.push("/welcome"));
|
|
4592
4588
|
},
|
|
4593
4589
|
async getCompanyBySSOEmail(n) {
|
|
4594
4590
|
const [e, t] = await Z(
|
|
@@ -4652,7 +4648,7 @@ const ze = {
|
|
|
4652
4648
|
deep: !0
|
|
4653
4649
|
}
|
|
4654
4650
|
}
|
|
4655
|
-
},
|
|
4651
|
+
}, We = (n, e) => {
|
|
4656
4652
|
const t = n.__vccOpts || n;
|
|
4657
4653
|
for (const [r, o] of e)
|
|
4658
4654
|
t[r] = o;
|
|
@@ -4673,10 +4669,10 @@ const ze = {
|
|
|
4673
4669
|
});
|
|
4674
4670
|
}), setTimeout(() => {
|
|
4675
4671
|
this.$storage.token ? this.$router.push(this.home) : z.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4676
|
-
},
|
|
4672
|
+
}, 2500), z.$emit("ssoEvent", { name: "setInitialize", data: !0 });
|
|
4677
4673
|
},
|
|
4678
4674
|
methods: {}
|
|
4679
|
-
}, $r = (n) => (Ht("data-v-
|
|
4675
|
+
}, $r = (n) => (Ht("data-v-c4cf0a57"), n = n(), qt(), n), ri = {
|
|
4680
4676
|
class: "page-login content-boxed content-boxed-padding center-text",
|
|
4681
4677
|
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
4682
4678
|
}, oi = ["autoplay"], ii = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("source", {
|
|
@@ -4687,12 +4683,12 @@ const ze = {
|
|
|
4687
4683
|
], 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
4684
|
key: 2,
|
|
4689
4685
|
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-
|
|
4686
|
+
}, 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
4687
|
pi
|
|
4692
4688
|
];
|
|
4693
4689
|
function mi(n, e, t, r, o, i) {
|
|
4694
4690
|
const a = Dt("router-link");
|
|
4695
|
-
return
|
|
4691
|
+
return S(), P("div", ri, [
|
|
4696
4692
|
y("video", {
|
|
4697
4693
|
id: "tapniVideo",
|
|
4698
4694
|
muted: "",
|
|
@@ -4704,21 +4700,21 @@ function mi(n, e, t, r, o, i) {
|
|
|
4704
4700
|
}, ai, 8, oi),
|
|
4705
4701
|
y("h1", si, U(n.ssoLang[this.appLanguage].welcome), 1),
|
|
4706
4702
|
y("p", ci, U(n.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4703
|
+
ne("", !0),
|
|
4704
|
+
ne("", !0),
|
|
4705
|
+
ke(a, {
|
|
4710
4706
|
to: "register",
|
|
4711
4707
|
exact: "",
|
|
4712
4708
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
4713
4709
|
}, {
|
|
4714
|
-
default:
|
|
4710
|
+
default: nt(() => [
|
|
4715
4711
|
y("span", null, U(n.ssoLang[this.appLanguage].create_account), 1)
|
|
4716
4712
|
]),
|
|
4717
4713
|
_: 1
|
|
4718
4714
|
}),
|
|
4719
4715
|
y("div", li, [
|
|
4720
|
-
|
|
4721
|
-
default:
|
|
4716
|
+
ke(a, { to: "/login" }, {
|
|
4717
|
+
default: nt(() => [
|
|
4722
4718
|
se(U(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
4723
4719
|
y("b", null, U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
4724
4720
|
]),
|
|
@@ -4726,10 +4722,10 @@ function mi(n, e, t, r, o, i) {
|
|
|
4726
4722
|
}),
|
|
4727
4723
|
ui
|
|
4728
4724
|
]),
|
|
4729
|
-
this.isNative ?
|
|
4725
|
+
this.isNative ? ne("", !0) : (S(), P("div", di, hi))
|
|
4730
4726
|
]);
|
|
4731
4727
|
}
|
|
4732
|
-
const Jr = /* @__PURE__ */
|
|
4728
|
+
const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a57"]]), wr = In("GoogleAuth", {
|
|
4733
4729
|
web: () => import("./web-5VtGcKeU.js").then((n) => new n.GoogleAuthWeb())
|
|
4734
4730
|
}), Xr = {
|
|
4735
4731
|
data() {
|
|
@@ -5238,10 +5234,10 @@ var g = {
|
|
|
5238
5234
|
(function(n) {
|
|
5239
5235
|
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
5236
|
})(De || (De = {}));
|
|
5241
|
-
var
|
|
5237
|
+
var he;
|
|
5242
5238
|
(function(n) {
|
|
5243
5239
|
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
|
-
})(
|
|
5240
|
+
})(he || (he = {}));
|
|
5245
5241
|
var vt;
|
|
5246
5242
|
(function(n) {
|
|
5247
5243
|
n.COMMON = "common", n.ORGANIZATIONS = "organizations", n.CONSUMERS = "consumers";
|
|
@@ -5280,10 +5276,10 @@ var ot;
|
|
|
5280
5276
|
(function(n) {
|
|
5281
5277
|
n.MSSTS_ACCOUNT_TYPE = "MSSTS", n.ADFS_ACCOUNT_TYPE = "ADFS", n.MSAV1_ACCOUNT_TYPE = "MSA", n.GENERIC_ACCOUNT_TYPE = "Generic";
|
|
5282
5278
|
})(ot || (ot = {}));
|
|
5283
|
-
var
|
|
5279
|
+
var fe;
|
|
5284
5280
|
(function(n) {
|
|
5285
5281
|
n.CACHE_KEY_SEPARATOR = "-", n.CLIENT_INFO_SEPARATOR = ".";
|
|
5286
|
-
})(
|
|
5282
|
+
})(fe || (fe = {}));
|
|
5287
5283
|
var H;
|
|
5288
5284
|
(function(n) {
|
|
5289
5285
|
n.ID_TOKEN = "IdToken", n.ACCESS_TOKEN = "AccessToken", n.ACCESS_TOKEN_WITH_AUTH_SCHEME = "AccessToken_With_AuthScheme", n.REFRESH_TOKEN = "RefreshToken";
|
|
@@ -5296,11 +5292,11 @@ var jn = "appmetadata", vi = "client_info", Wt = "1", $t = {
|
|
|
5296
5292
|
CACHE_KEY: "authority-metadata",
|
|
5297
5293
|
REFRESH_TIME_SECONDS: 3600 * 24
|
|
5298
5294
|
// 24 Hours
|
|
5299
|
-
},
|
|
5295
|
+
}, Fe;
|
|
5300
5296
|
(function(n) {
|
|
5301
5297
|
n.CONFIG = "config", n.CACHE = "cache", n.NETWORK = "network", n.HARDCODED_VALUES = "hardcoded_values";
|
|
5302
|
-
})(
|
|
5303
|
-
var
|
|
5298
|
+
})(Fe || (Fe = {}));
|
|
5299
|
+
var ye = {
|
|
5304
5300
|
SCHEMA_VERSION: 5,
|
|
5305
5301
|
MAX_CUR_HEADER_BYTES: 80,
|
|
5306
5302
|
MAX_LAST_HEADER_BYTES: 330,
|
|
@@ -5442,7 +5438,7 @@ var _n = {
|
|
|
5442
5438
|
}
|
|
5443
5439
|
};
|
|
5444
5440
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
5445
|
-
var
|
|
5441
|
+
var R = {
|
|
5446
5442
|
clientInfoDecodingError: {
|
|
5447
5443
|
code: "client_info_decoding_error",
|
|
5448
5444
|
desc: "The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."
|
|
@@ -5652,97 +5648,97 @@ var A = {
|
|
|
5652
5648
|
return o.name = "ClientAuthError", Object.setPrototypeOf(o, e.prototype), o;
|
|
5653
5649
|
}
|
|
5654
5650
|
return e.createClientInfoDecodingError = function(t) {
|
|
5655
|
-
return new e(
|
|
5651
|
+
return new e(R.clientInfoDecodingError.code, R.clientInfoDecodingError.desc + " Failed with error: " + t);
|
|
5656
5652
|
}, e.createClientInfoEmptyError = function() {
|
|
5657
|
-
return new e(
|
|
5653
|
+
return new e(R.clientInfoEmptyError.code, "" + R.clientInfoEmptyError.desc);
|
|
5658
5654
|
}, e.createTokenParsingError = function(t) {
|
|
5659
|
-
return new e(
|
|
5655
|
+
return new e(R.tokenParsingError.code, R.tokenParsingError.desc + " Failed with error: " + t);
|
|
5660
5656
|
}, e.createTokenNullOrEmptyError = function(t) {
|
|
5661
|
-
return new e(
|
|
5657
|
+
return new e(R.nullOrEmptyToken.code, R.nullOrEmptyToken.desc + " Raw Token Value: " + t);
|
|
5662
5658
|
}, e.createEndpointDiscoveryIncompleteError = function(t) {
|
|
5663
|
-
return new e(
|
|
5659
|
+
return new e(R.endpointResolutionError.code, R.endpointResolutionError.desc + " Detail: " + t);
|
|
5664
5660
|
}, e.createNetworkError = function(t, r) {
|
|
5665
|
-
return new e(
|
|
5661
|
+
return new e(R.networkError.code, R.networkError.desc + " | Fetch client threw: " + r + " | Attempted to reach: " + t.split("?")[0]);
|
|
5666
5662
|
}, e.createUnableToGetOpenidConfigError = function(t) {
|
|
5667
|
-
return new e(
|
|
5663
|
+
return new e(R.unableToGetOpenidConfigError.code, R.unableToGetOpenidConfigError.desc + " Attempted to retrieve endpoints from: " + t);
|
|
5668
5664
|
}, e.createHashNotDeserializedError = function(t) {
|
|
5669
|
-
return new e(
|
|
5665
|
+
return new e(R.hashNotDeserialized.code, R.hashNotDeserialized.desc + " Given Object: " + t);
|
|
5670
5666
|
}, e.createInvalidStateError = function(t, r) {
|
|
5671
|
-
return new e(
|
|
5667
|
+
return new e(R.invalidStateError.code, R.invalidStateError.desc + " Invalid State: " + t + ", Root Err: " + r);
|
|
5672
5668
|
}, e.createStateMismatchError = function() {
|
|
5673
|
-
return new e(
|
|
5669
|
+
return new e(R.stateMismatchError.code, R.stateMismatchError.desc);
|
|
5674
5670
|
}, e.createStateNotFoundError = function(t) {
|
|
5675
|
-
return new e(
|
|
5671
|
+
return new e(R.stateNotFoundError.code, R.stateNotFoundError.desc + ": " + t);
|
|
5676
5672
|
}, e.createNonceMismatchError = function() {
|
|
5677
|
-
return new e(
|
|
5673
|
+
return new e(R.nonceMismatchError.code, R.nonceMismatchError.desc);
|
|
5678
5674
|
}, e.createAuthTimeNotFoundError = function() {
|
|
5679
|
-
return new e(
|
|
5675
|
+
return new e(R.authTimeNotFoundError.code, R.authTimeNotFoundError.desc);
|
|
5680
5676
|
}, e.createMaxAgeTranspiredError = function() {
|
|
5681
|
-
return new e(
|
|
5677
|
+
return new e(R.maxAgeTranspiredError.code, R.maxAgeTranspiredError.desc);
|
|
5682
5678
|
}, e.createNonceNotFoundError = function(t) {
|
|
5683
|
-
return new e(
|
|
5679
|
+
return new e(R.nonceNotFoundError.code, R.nonceNotFoundError.desc + ": " + t);
|
|
5684
5680
|
}, e.createMultipleMatchingTokensInCacheError = function() {
|
|
5685
|
-
return new e(
|
|
5681
|
+
return new e(R.multipleMatchingTokens.code, R.multipleMatchingTokens.desc + ".");
|
|
5686
5682
|
}, e.createMultipleMatchingAccountsInCacheError = function() {
|
|
5687
|
-
return new e(
|
|
5683
|
+
return new e(R.multipleMatchingAccounts.code, R.multipleMatchingAccounts.desc);
|
|
5688
5684
|
}, e.createMultipleMatchingAppMetadataInCacheError = function() {
|
|
5689
|
-
return new e(
|
|
5685
|
+
return new e(R.multipleMatchingAppMetadata.code, R.multipleMatchingAppMetadata.desc);
|
|
5690
5686
|
}, e.createTokenRequestCannotBeMadeError = function() {
|
|
5691
|
-
return new e(
|
|
5687
|
+
return new e(R.tokenRequestCannotBeMade.code, R.tokenRequestCannotBeMade.desc);
|
|
5692
5688
|
}, e.createAppendEmptyScopeToSetError = function(t) {
|
|
5693
|
-
return new e(
|
|
5689
|
+
return new e(R.appendEmptyScopeError.code, R.appendEmptyScopeError.desc + " Given Scope: " + t);
|
|
5694
5690
|
}, e.createRemoveEmptyScopeFromSetError = function(t) {
|
|
5695
|
-
return new e(
|
|
5691
|
+
return new e(R.removeEmptyScopeError.code, R.removeEmptyScopeError.desc + " Given Scope: " + t);
|
|
5696
5692
|
}, e.createAppendScopeSetError = function(t) {
|
|
5697
|
-
return new e(
|
|
5693
|
+
return new e(R.appendScopeSetError.code, R.appendScopeSetError.desc + " Detail Error: " + t);
|
|
5698
5694
|
}, e.createEmptyInputScopeSetError = function() {
|
|
5699
|
-
return new e(
|
|
5695
|
+
return new e(R.emptyInputScopeSetError.code, "" + R.emptyInputScopeSetError.desc);
|
|
5700
5696
|
}, e.createDeviceCodeCancelledError = function() {
|
|
5701
|
-
return new e(
|
|
5697
|
+
return new e(R.DeviceCodePollingCancelled.code, "" + R.DeviceCodePollingCancelled.desc);
|
|
5702
5698
|
}, e.createDeviceCodeExpiredError = function() {
|
|
5703
|
-
return new e(
|
|
5699
|
+
return new e(R.DeviceCodeExpired.code, "" + R.DeviceCodeExpired.desc);
|
|
5704
5700
|
}, e.createDeviceCodeUnknownError = function() {
|
|
5705
|
-
return new e(
|
|
5701
|
+
return new e(R.DeviceCodeUnknownError.code, "" + R.DeviceCodeUnknownError.desc);
|
|
5706
5702
|
}, e.createNoAccountInSilentRequestError = function() {
|
|
5707
|
-
return new e(
|
|
5703
|
+
return new e(R.NoAccountInSilentRequest.code, "" + R.NoAccountInSilentRequest.desc);
|
|
5708
5704
|
}, e.createNullOrUndefinedCacheRecord = function() {
|
|
5709
|
-
return new e(
|
|
5705
|
+
return new e(R.invalidCacheRecord.code, R.invalidCacheRecord.desc);
|
|
5710
5706
|
}, e.createInvalidCacheEnvironmentError = function() {
|
|
5711
|
-
return new e(
|
|
5707
|
+
return new e(R.invalidCacheEnvironment.code, R.invalidCacheEnvironment.desc);
|
|
5712
5708
|
}, e.createNoAccountFoundError = function() {
|
|
5713
|
-
return new e(
|
|
5709
|
+
return new e(R.noAccountFound.code, R.noAccountFound.desc);
|
|
5714
5710
|
}, e.createCachePluginError = function() {
|
|
5715
|
-
return new e(
|
|
5711
|
+
return new e(R.CachePluginError.code, "" + R.CachePluginError.desc);
|
|
5716
5712
|
}, e.createNoCryptoObjectError = function(t) {
|
|
5717
|
-
return new e(
|
|
5713
|
+
return new e(R.noCryptoObj.code, "" + R.noCryptoObj.desc + t);
|
|
5718
5714
|
}, e.createInvalidCacheTypeError = function() {
|
|
5719
|
-
return new e(
|
|
5715
|
+
return new e(R.invalidCacheType.code, "" + R.invalidCacheType.desc);
|
|
5720
5716
|
}, e.createUnexpectedAccountTypeError = function() {
|
|
5721
|
-
return new e(
|
|
5717
|
+
return new e(R.unexpectedAccountType.code, "" + R.unexpectedAccountType.desc);
|
|
5722
5718
|
}, e.createUnexpectedCredentialTypeError = function() {
|
|
5723
|
-
return new e(
|
|
5719
|
+
return new e(R.unexpectedCredentialType.code, "" + R.unexpectedCredentialType.desc);
|
|
5724
5720
|
}, e.createInvalidAssertionError = function() {
|
|
5725
|
-
return new e(
|
|
5721
|
+
return new e(R.invalidAssertion.code, "" + R.invalidAssertion.desc);
|
|
5726
5722
|
}, e.createInvalidCredentialError = function() {
|
|
5727
|
-
return new e(
|
|
5723
|
+
return new e(R.invalidClientCredential.code, "" + R.invalidClientCredential.desc);
|
|
5728
5724
|
}, e.createRefreshRequiredError = function() {
|
|
5729
|
-
return new e(
|
|
5725
|
+
return new e(R.tokenRefreshRequired.code, R.tokenRefreshRequired.desc);
|
|
5730
5726
|
}, e.createUserTimeoutReachedError = function() {
|
|
5731
|
-
return new e(
|
|
5727
|
+
return new e(R.userTimeoutReached.code, R.userTimeoutReached.desc);
|
|
5732
5728
|
}, e.createTokenClaimsRequiredError = function() {
|
|
5733
|
-
return new e(
|
|
5729
|
+
return new e(R.tokenClaimsRequired.code, R.tokenClaimsRequired.desc);
|
|
5734
5730
|
}, e.createNoAuthCodeInServerResponseError = function() {
|
|
5735
|
-
return new e(
|
|
5731
|
+
return new e(R.noAuthorizationCodeFromServer.code, R.noAuthorizationCodeFromServer.desc);
|
|
5736
5732
|
}, e.createBindingKeyNotRemovedError = function() {
|
|
5737
|
-
return new e(
|
|
5733
|
+
return new e(R.bindingKeyNotRemovedError.code, R.bindingKeyNotRemovedError.desc);
|
|
5738
5734
|
}, e.createLogoutNotSupportedError = function() {
|
|
5739
|
-
return new e(
|
|
5735
|
+
return new e(R.logoutNotSupported.code, R.logoutNotSupported.desc);
|
|
5740
5736
|
}, e.createKeyIdMissingError = function() {
|
|
5741
|
-
return new e(
|
|
5737
|
+
return new e(R.keyIdMissing.code, R.keyIdMissing.desc);
|
|
5742
5738
|
}, e.createNoNetworkConnectivityError = function() {
|
|
5743
|
-
return new e(
|
|
5739
|
+
return new e(R.noNetworkConnectivity.code, R.noNetworkConnectivity.desc);
|
|
5744
5740
|
}, e.createUserCanceledError = function() {
|
|
5745
|
-
return new e(
|
|
5741
|
+
return new e(R.userCanceledError.code, R.userCanceledError.desc);
|
|
5746
5742
|
}, e;
|
|
5747
5743
|
}(D)
|
|
5748
5744
|
);
|
|
@@ -5809,25 +5805,25 @@ var L = (
|
|
|
5809
5805
|
}()
|
|
5810
5806
|
);
|
|
5811
5807
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
5812
|
-
var
|
|
5808
|
+
var ve;
|
|
5813
5809
|
(function(n) {
|
|
5814
5810
|
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
|
-
})(
|
|
5811
|
+
})(ve || (ve = {}));
|
|
5816
5812
|
var er = (
|
|
5817
5813
|
/** @class */
|
|
5818
5814
|
function() {
|
|
5819
5815
|
function n(e, t, r) {
|
|
5820
|
-
this.level =
|
|
5816
|
+
this.level = ve.Info;
|
|
5821
5817
|
var o = function() {
|
|
5822
5818
|
}, i = e || n.createDefaultLoggerOptions();
|
|
5823
|
-
this.localCallback = i.loggerCallback || o, this.piiLoggingEnabled = i.piiLoggingEnabled || !1, this.level = typeof i.logLevel == "number" ? i.logLevel :
|
|
5819
|
+
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
5820
|
}
|
|
5825
5821
|
return n.createDefaultLoggerOptions = function() {
|
|
5826
5822
|
return {
|
|
5827
5823
|
loggerCallback: function() {
|
|
5828
5824
|
},
|
|
5829
5825
|
piiLoggingEnabled: !1,
|
|
5830
|
-
logLevel:
|
|
5826
|
+
logLevel: ve.Info
|
|
5831
5827
|
};
|
|
5832
5828
|
}, n.prototype.clone = function(e, t, r) {
|
|
5833
5829
|
return new n({ loggerCallback: this.localCallback, piiLoggingEnabled: this.piiLoggingEnabled, logLevel: this.level, correlationId: r || this.correlationId }, e, t);
|
|
@@ -5835,68 +5831,68 @@ var er = (
|
|
|
5835
5831
|
if (!(t.logLevel > this.level || !this.piiLoggingEnabled && t.containsPii)) {
|
|
5836
5832
|
var r = (/* @__PURE__ */ new Date()).toUTCString(), o;
|
|
5837
5833
|
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 + " : " +
|
|
5834
|
+
var i = o + " : " + this.packageName + "@" + this.packageVersion + " : " + ve[t.logLevel] + " - " + e;
|
|
5839
5835
|
this.executeCallback(t.logLevel, i, t.containsPii || !1);
|
|
5840
5836
|
}
|
|
5841
5837
|
}, n.prototype.executeCallback = function(e, t, r) {
|
|
5842
5838
|
this.localCallback && this.localCallback(e, t, r);
|
|
5843
5839
|
}, n.prototype.error = function(e, t) {
|
|
5844
5840
|
this.logMessage(e, {
|
|
5845
|
-
logLevel:
|
|
5841
|
+
logLevel: ve.Error,
|
|
5846
5842
|
containsPii: !1,
|
|
5847
5843
|
correlationId: t || g.EMPTY_STRING
|
|
5848
5844
|
});
|
|
5849
5845
|
}, n.prototype.errorPii = function(e, t) {
|
|
5850
5846
|
this.logMessage(e, {
|
|
5851
|
-
logLevel:
|
|
5847
|
+
logLevel: ve.Error,
|
|
5852
5848
|
containsPii: !0,
|
|
5853
5849
|
correlationId: t || g.EMPTY_STRING
|
|
5854
5850
|
});
|
|
5855
5851
|
}, n.prototype.warning = function(e, t) {
|
|
5856
5852
|
this.logMessage(e, {
|
|
5857
|
-
logLevel:
|
|
5853
|
+
logLevel: ve.Warning,
|
|
5858
5854
|
containsPii: !1,
|
|
5859
5855
|
correlationId: t || g.EMPTY_STRING
|
|
5860
5856
|
});
|
|
5861
5857
|
}, n.prototype.warningPii = function(e, t) {
|
|
5862
5858
|
this.logMessage(e, {
|
|
5863
|
-
logLevel:
|
|
5859
|
+
logLevel: ve.Warning,
|
|
5864
5860
|
containsPii: !0,
|
|
5865
5861
|
correlationId: t || g.EMPTY_STRING
|
|
5866
5862
|
});
|
|
5867
5863
|
}, n.prototype.info = function(e, t) {
|
|
5868
5864
|
this.logMessage(e, {
|
|
5869
|
-
logLevel:
|
|
5865
|
+
logLevel: ve.Info,
|
|
5870
5866
|
containsPii: !1,
|
|
5871
5867
|
correlationId: t || g.EMPTY_STRING
|
|
5872
5868
|
});
|
|
5873
5869
|
}, n.prototype.infoPii = function(e, t) {
|
|
5874
5870
|
this.logMessage(e, {
|
|
5875
|
-
logLevel:
|
|
5871
|
+
logLevel: ve.Info,
|
|
5876
5872
|
containsPii: !0,
|
|
5877
5873
|
correlationId: t || g.EMPTY_STRING
|
|
5878
5874
|
});
|
|
5879
5875
|
}, n.prototype.verbose = function(e, t) {
|
|
5880
5876
|
this.logMessage(e, {
|
|
5881
|
-
logLevel:
|
|
5877
|
+
logLevel: ve.Verbose,
|
|
5882
5878
|
containsPii: !1,
|
|
5883
5879
|
correlationId: t || g.EMPTY_STRING
|
|
5884
5880
|
});
|
|
5885
5881
|
}, n.prototype.verbosePii = function(e, t) {
|
|
5886
5882
|
this.logMessage(e, {
|
|
5887
|
-
logLevel:
|
|
5883
|
+
logLevel: ve.Verbose,
|
|
5888
5884
|
containsPii: !0,
|
|
5889
5885
|
correlationId: t || g.EMPTY_STRING
|
|
5890
5886
|
});
|
|
5891
5887
|
}, n.prototype.trace = function(e, t) {
|
|
5892
5888
|
this.logMessage(e, {
|
|
5893
|
-
logLevel:
|
|
5889
|
+
logLevel: ve.Trace,
|
|
5894
5890
|
containsPii: !1,
|
|
5895
5891
|
correlationId: t || g.EMPTY_STRING
|
|
5896
5892
|
});
|
|
5897
5893
|
}, n.prototype.tracePii = function(e, t) {
|
|
5898
5894
|
this.logMessage(e, {
|
|
5899
|
-
logLevel:
|
|
5895
|
+
logLevel: ve.Trace,
|
|
5900
5896
|
containsPii: !0,
|
|
5901
5897
|
correlationId: t || g.EMPTY_STRING
|
|
5902
5898
|
});
|
|
@@ -6166,7 +6162,7 @@ function vn(n, e) {
|
|
|
6166
6162
|
function Pt(n) {
|
|
6167
6163
|
if (L.isEmpty(n))
|
|
6168
6164
|
throw O.createClientInfoDecodingError("Home account ID was empty.");
|
|
6169
|
-
var e = n.split(
|
|
6165
|
+
var e = n.split(fe.CLIENT_INFO_SEPARATOR, 2);
|
|
6170
6166
|
return {
|
|
6171
6167
|
uid: e[0],
|
|
6172
6168
|
utid: e.length < 2 ? g.EMPTY_STRING : e[1]
|
|
@@ -6185,7 +6181,7 @@ var we = (
|
|
|
6185
6181
|
}
|
|
6186
6182
|
return n.prototype.generateAccountId = function() {
|
|
6187
6183
|
var e = [this.homeAccountId, this.environment];
|
|
6188
|
-
return e.join(
|
|
6184
|
+
return e.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6189
6185
|
}, n.prototype.generateAccountKey = function() {
|
|
6190
6186
|
return n.generateAccountCacheKey({
|
|
6191
6187
|
homeAccountId: this.homeAccountId,
|
|
@@ -6224,7 +6220,7 @@ var we = (
|
|
|
6224
6220
|
e.environment || g.EMPTY_STRING,
|
|
6225
6221
|
e.tenantId || g.EMPTY_STRING
|
|
6226
6222
|
];
|
|
6227
|
-
return t.join(
|
|
6223
|
+
return t.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
6228
6224
|
}, n.createAccount = function(e, t, r, o, i, a, s, u) {
|
|
6229
6225
|
var p, d, f, _, k, E, M = new n();
|
|
6230
6226
|
M.authorityType = ot.MSSTS_ACCOUNT_TYPE, M.clientInfo = e, M.homeAccountId = t, M.nativeAccountId = u;
|
|
@@ -6252,7 +6248,7 @@ var we = (
|
|
|
6252
6248
|
try {
|
|
6253
6249
|
var u = vn(e, o);
|
|
6254
6250
|
if (!L.isEmpty(u.uid) && !L.isEmpty(u.utid))
|
|
6255
|
-
return "" + u.uid +
|
|
6251
|
+
return "" + u.uid + fe.CLIENT_INFO_SEPARATOR + u.utid;
|
|
6256
6252
|
} catch {
|
|
6257
6253
|
}
|
|
6258
6254
|
return r.verbose("No client info in response"), s;
|
|
@@ -6271,7 +6267,7 @@ var we = (
|
|
|
6271
6267
|
}()
|
|
6272
6268
|
);
|
|
6273
6269
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
6274
|
-
var
|
|
6270
|
+
var rt = (
|
|
6275
6271
|
/** @class */
|
|
6276
6272
|
function() {
|
|
6277
6273
|
function n(e, t) {
|
|
@@ -6320,7 +6316,7 @@ var Ne = (
|
|
|
6320
6316
|
return t.length > 0 ? this.getAccountInfoFromEntity(t[0]) : null;
|
|
6321
6317
|
}, n.prototype.getAccountInfoFromEntity = function(e) {
|
|
6322
6318
|
var t = e.getAccountInfo(), r = this.getIdToken(t);
|
|
6323
|
-
return r && (t.idToken = r.secret, t.idTokenClaims = new
|
|
6319
|
+
return r && (t.idToken = r.secret, t.idTokenClaims = new rt(r.secret, this.cryptoImpl).claims), t;
|
|
6324
6320
|
}, n.prototype.saveCacheRecord = function(e) {
|
|
6325
6321
|
return j(this, void 0, void 0, function() {
|
|
6326
6322
|
return K(this, function(t) {
|
|
@@ -6379,15 +6375,15 @@ var Ne = (
|
|
|
6379
6375
|
}
|
|
6380
6376
|
}), o;
|
|
6381
6377
|
}, n.prototype.isAccountKey = function(e, t, r) {
|
|
6382
|
-
return !(e.split(
|
|
6378
|
+
return !(e.split(fe.CACHE_KEY_SEPARATOR).length < 3 || t && !e.toLowerCase().includes(t.toLowerCase()) || r && !e.toLowerCase().includes(r.toLowerCase()));
|
|
6383
6379
|
}, n.prototype.isCredentialKey = function(e) {
|
|
6384
|
-
if (e.split(
|
|
6380
|
+
if (e.split(fe.CACHE_KEY_SEPARATOR).length < 6)
|
|
6385
6381
|
return !1;
|
|
6386
6382
|
var t = e.toLowerCase();
|
|
6387
6383
|
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
6384
|
return !1;
|
|
6389
6385
|
if (t.indexOf(H.REFRESH_TOKEN.toLowerCase()) > -1) {
|
|
6390
|
-
var r = "" + H.REFRESH_TOKEN +
|
|
6386
|
+
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
6387
|
if (t.indexOf(r.toLowerCase()) === -1 && t.indexOf(o.toLowerCase()) === -1)
|
|
6392
6388
|
return !1;
|
|
6393
6389
|
} else if (t.indexOf(this.clientId.toLowerCase()) === -1)
|
|
@@ -6504,7 +6500,7 @@ var Ne = (
|
|
|
6504
6500
|
}), !0;
|
|
6505
6501
|
}, n.prototype.readCacheRecord = function(e, t, r) {
|
|
6506
6502
|
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
|
|
6503
|
+
return i && a && (i.idTokenClaims = new rt(a.secret, this.cryptoImpl).claims), {
|
|
6508
6504
|
account: i,
|
|
6509
6505
|
idToken: a,
|
|
6510
6506
|
accessToken: s,
|
|
@@ -6759,7 +6755,7 @@ var ki = 300, no = {
|
|
|
6759
6755
|
loggerCallback: function() {
|
|
6760
6756
|
},
|
|
6761
6757
|
piiLoggingEnabled: !1,
|
|
6762
|
-
logLevel:
|
|
6758
|
+
logLevel: ve.Info,
|
|
6763
6759
|
correlationId: g.EMPTY_STRING
|
|
6764
6760
|
}, bi = {
|
|
6765
6761
|
claimsBasedCachingEnabled: !0
|
|
@@ -7155,17 +7151,17 @@ var rr = (
|
|
|
7155
7151
|
this.generateClaimsHashForCacheKey(p),
|
|
7156
7152
|
this.generateSchemeForCacheKey(u)
|
|
7157
7153
|
];
|
|
7158
|
-
return d.join(
|
|
7154
|
+
return d.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7159
7155
|
}, n.generateAccountIdForCacheKey = function(e, t) {
|
|
7160
7156
|
var r = [e, t];
|
|
7161
|
-
return r.join(
|
|
7157
|
+
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7162
7158
|
}, n.generateCredentialIdForCacheKey = function(e, t, r, o) {
|
|
7163
7159
|
var i = e === H.REFRESH_TOKEN && o || t, a = [
|
|
7164
7160
|
e,
|
|
7165
7161
|
i,
|
|
7166
7162
|
r || g.EMPTY_STRING
|
|
7167
7163
|
];
|
|
7168
|
-
return a.join(
|
|
7164
|
+
return a.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7169
7165
|
}, n.generateTargetForCacheKey = function(e) {
|
|
7170
7166
|
return (e || g.EMPTY_STRING).toLowerCase();
|
|
7171
7167
|
}, n.generateClaimsHashForCacheKey = function(e) {
|
|
@@ -7192,7 +7188,7 @@ var gt = (
|
|
|
7192
7188
|
}(rr)
|
|
7193
7189
|
);
|
|
7194
7190
|
/*! @azure/msal-common v13.3.1 2023-10-27 */
|
|
7195
|
-
var
|
|
7191
|
+
var Ke = (
|
|
7196
7192
|
/** @class */
|
|
7197
7193
|
function() {
|
|
7198
7194
|
function n() {
|
|
@@ -7225,11 +7221,11 @@ var _t = (
|
|
|
7225
7221
|
return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, d, f, _, k, E, M, Q) {
|
|
7226
7222
|
var X, G, $ = new e();
|
|
7227
7223
|
$.homeAccountId = t, $.credentialType = H.ACCESS_TOKEN, $.secret = o;
|
|
7228
|
-
var Ae =
|
|
7224
|
+
var Ae = Ke.nowSeconds();
|
|
7229
7225
|
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 : _, M && ($.requestedClaims = M, $.requestedClaimsHash = Q), ((X = $.tokenType) === null || X === void 0 ? void 0 : X.toLowerCase()) !== te.BEARER.toLowerCase())
|
|
7230
7226
|
switch ($.credentialType = H.ACCESS_TOKEN_WITH_AUTH_SCHEME, $.tokenType) {
|
|
7231
7227
|
case te.POP:
|
|
7232
|
-
var xe =
|
|
7228
|
+
var xe = rt.extractTokenClaims(o, d);
|
|
7233
7229
|
if (!(!((G = xe == null ? void 0 : xe.cnf) === null || G === void 0) && G.kid))
|
|
7234
7230
|
throw O.createTokenClaimsRequiredError();
|
|
7235
7231
|
$.keyId = xe.cnf.kid;
|
|
@@ -7279,7 +7275,7 @@ var Ir = [
|
|
|
7279
7275
|
code: "native_account_unavailable",
|
|
7280
7276
|
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
7277
|
}
|
|
7282
|
-
},
|
|
7278
|
+
}, Ye = (
|
|
7283
7279
|
/** @class */
|
|
7284
7280
|
function(n) {
|
|
7285
7281
|
Ue(e, n);
|
|
@@ -7516,7 +7512,7 @@ var xt = (
|
|
|
7516
7512
|
return K(this, function(f) {
|
|
7517
7513
|
switch (f.label) {
|
|
7518
7514
|
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:
|
|
7515
|
+
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
7516
|
case 1:
|
|
7521
7517
|
return [2, f.sent()];
|
|
7522
7518
|
}
|
|
@@ -7539,7 +7535,7 @@ var Vn = (
|
|
|
7539
7535
|
e,
|
|
7540
7536
|
t
|
|
7541
7537
|
];
|
|
7542
|
-
return r.join(
|
|
7538
|
+
return r.join(fe.CACHE_KEY_SEPARATOR).toLowerCase();
|
|
7543
7539
|
}, n.createAppMetadataEntity = function(e, t, r) {
|
|
7544
7540
|
var o = new n();
|
|
7545
7541
|
return o.clientId = e, o.environment = t, r && (o.familyId = r), o;
|
|
@@ -7589,12 +7585,12 @@ var wn = (
|
|
|
7589
7585
|
if (decodeURIComponent(e.state) !== decodeURIComponent(t))
|
|
7590
7586
|
throw O.createStateMismatchError();
|
|
7591
7587
|
if (e.error || e.error_description || e.suberror)
|
|
7592
|
-
throw
|
|
7588
|
+
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
7589
|
e.client_info && vn(e.client_info, r);
|
|
7594
7590
|
}, n.prototype.validateTokenResponse = function(e) {
|
|
7595
7591
|
if (e.error || e.error_description || e.suberror) {
|
|
7596
|
-
if (
|
|
7597
|
-
throw new
|
|
7592
|
+
if (Ye.isInteractionRequiredError(e.error, e.error_description, e.suberror))
|
|
7593
|
+
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
7594
|
var t = e.error_codes + " - [" + e.timestamp + "]: " + e.error_description + " - Correlation ID: " + e.correlation_id + " - Trace ID: " + e.trace_id;
|
|
7599
7595
|
throw new bt(e.error, t, e.suberror);
|
|
7600
7596
|
}
|
|
@@ -7606,12 +7602,12 @@ var wn = (
|
|
|
7606
7602
|
switch (G.label) {
|
|
7607
7603
|
case 0:
|
|
7608
7604
|
if ((d = this.performanceClient) === null || d === void 0 || d.addQueueMeasurement(b.HandleServerTokenResponse, e.correlation_id), e.id_token) {
|
|
7609
|
-
if (f = new
|
|
7605
|
+
if (f = new rt(e.id_token || g.EMPTY_STRING, this.cryptoObj), i && !L.isEmpty(i.nonce) && f.claims.nonce !== i.nonce)
|
|
7610
7606
|
throw O.createNonceMismatchError();
|
|
7611
7607
|
if (o.maxAge || o.maxAge === 0) {
|
|
7612
7608
|
if (_ = f.claims.auth_time, !_)
|
|
7613
7609
|
throw O.createAuthTimeNotFoundError();
|
|
7614
|
-
|
|
7610
|
+
rt.checkMaxAge(_, o.maxAge);
|
|
7615
7611
|
}
|
|
7616
7612
|
}
|
|
7617
7613
|
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;
|
|
@@ -7662,7 +7658,7 @@ var wn = (
|
|
|
7662
7658
|
}, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
|
|
7663
7659
|
var d, f, _;
|
|
7664
7660
|
return j(this, void 0, void 0, function() {
|
|
7665
|
-
var k, E, M, Q, X, G, $, Ae, xe,
|
|
7661
|
+
var k, E, M, Q, X, G, $, Ae, xe, Ve, Ct;
|
|
7666
7662
|
return K(this, function(ce) {
|
|
7667
7663
|
switch (ce.label) {
|
|
7668
7664
|
case 0:
|
|
@@ -7680,9 +7676,9 @@ var wn = (
|
|
|
7680
7676
|
case 3:
|
|
7681
7677
|
E = Ee.fromString(r.accessToken.target).asArray(), M = new Date(Number(r.accessToken.expiresOn) * 1e3), Q = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), ce.label = 4;
|
|
7682
7678
|
case 4:
|
|
7683
|
-
return r.appMetadata && (X = r.appMetadata.familyId === Wt ? Wt : g.EMPTY_STRING),
|
|
7679
|
+
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
7680
|
authority: t.canonicalAuthority,
|
|
7685
|
-
uniqueId:
|
|
7681
|
+
uniqueId: Ve,
|
|
7686
7682
|
tenantId: Ct,
|
|
7687
7683
|
scopes: E,
|
|
7688
7684
|
account: r.account ? r.account.getAccountInfo() : null,
|
|
@@ -7739,7 +7735,7 @@ var ro = (
|
|
|
7739
7735
|
case 0:
|
|
7740
7736
|
if (!t || !t.code)
|
|
7741
7737
|
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 =
|
|
7738
|
+
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
7739
|
case 1:
|
|
7744
7740
|
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
7741
|
httpVerAuthority: E
|
|
@@ -7782,7 +7778,7 @@ var ro = (
|
|
|
7782
7778
|
if (u = k.sent(), p = void 0, r.clientInfo)
|
|
7783
7779
|
try {
|
|
7784
7780
|
d = vn(r.clientInfo, this.cryptoUtils), p = {
|
|
7785
|
-
credential: "" + d.uid +
|
|
7781
|
+
credential: "" + d.uid + fe.CLIENT_INFO_SEPARATOR + d.utid,
|
|
7786
7782
|
type: Be.HOME_ACCOUNT_ID
|
|
7787
7783
|
};
|
|
7788
7784
|
} catch (E) {
|
|
@@ -7823,7 +7819,7 @@ var ro = (
|
|
|
7823
7819
|
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
7820
|
try {
|
|
7825
7821
|
f = vn(t.clientInfo, this.cryptoUtils), d = {
|
|
7826
|
-
credential: "" + f.uid +
|
|
7822
|
+
credential: "" + f.uid + fe.CLIENT_INFO_SEPARATOR + f.utid,
|
|
7827
7823
|
type: Be.HOME_ACCOUNT_ID
|
|
7828
7824
|
};
|
|
7829
7825
|
} catch (E) {
|
|
@@ -7922,7 +7918,7 @@ var oo = (
|
|
|
7922
7918
|
return K(this, function(X) {
|
|
7923
7919
|
switch (X.label) {
|
|
7924
7920
|
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 =
|
|
7921
|
+
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
7922
|
case 1:
|
|
7927
7923
|
return _ = X.sent(), k = (a = _.headers) === null || a === void 0 ? void 0 : a[De.X_MS_HTTP_VERSION], d == null || d.addStaticFields({
|
|
7928
7924
|
refreshTokenSize: ((s = _.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
|
|
@@ -7955,7 +7951,7 @@ var oo = (
|
|
|
7955
7951
|
try {
|
|
7956
7952
|
return (o = this.performanceClient) === null || o === void 0 || o.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !0)];
|
|
7957
7953
|
} catch (f) {
|
|
7958
|
-
if (u = f instanceof
|
|
7954
|
+
if (u = f instanceof Ye && f.errorCode === Mt.noTokensFoundError.code, p = f instanceof bt && f.errorCode === Tr.INVALID_GRANT_ERROR && f.subError === Tr.CLIENT_MISMATCH_ERROR, u || p)
|
|
7959
7955
|
return (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(b.RefreshTokenClientAcquireTokenWithCachedRefreshToken, t.correlationId), [2, this.acquireTokenWithCachedRefreshToken(t, !1)];
|
|
7960
7956
|
throw f;
|
|
7961
7957
|
}
|
|
@@ -7968,7 +7964,7 @@ var oo = (
|
|
|
7968
7964
|
var s, u, p;
|
|
7969
7965
|
return K(this, function(d) {
|
|
7970
7966
|
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(),
|
|
7967
|
+
throw s == null || s.discardMeasurement(), Ye.createNoTokensFoundError();
|
|
7972
7968
|
return s == null || s.endMeasurement({
|
|
7973
7969
|
success: !0
|
|
7974
7970
|
}), p = ee(ee({}, t), { refreshToken: u.secret, authenticationScheme: t.authenticationScheme || te.BEARER, ccsCredential: {
|
|
@@ -8068,7 +8064,7 @@ var Oi = (
|
|
|
8068
8064
|
case 1:
|
|
8069
8065
|
return [2, i.sent()];
|
|
8070
8066
|
case 2:
|
|
8071
|
-
if (r = i.sent(), r instanceof O && r.errorCode ===
|
|
8067
|
+
if (r = i.sent(), r instanceof O && r.errorCode === R.tokenRefreshRequired.code)
|
|
8072
8068
|
return o = new oo(this.config, this.performanceClient), [2, o.acquireTokenByRefreshToken(t)];
|
|
8073
8069
|
throw r;
|
|
8074
8070
|
case 3:
|
|
@@ -8095,9 +8091,9 @@ var Oi = (
|
|
|
8095
8091
|
if (!t.account)
|
|
8096
8092
|
throw O.createNoAccountInSilentRequestError();
|
|
8097
8093
|
if (u = t.authority || this.authority.getPreferredCache(), p = this.cacheManager.readCacheRecord(t.account, t, u), p.accessToken) {
|
|
8098
|
-
if (
|
|
8094
|
+
if (Ke.wasClockTurnedBack(p.accessToken.cachedAt) || Ke.isTokenExpired(p.accessToken.expiresOn, this.config.systemOptions.tokenRenewalOffsetSeconds))
|
|
8099
8095
|
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 &&
|
|
8096
|
+
if (p.accessToken.refreshOn && Ke.isTokenExpired(p.accessToken.refreshOn, 0))
|
|
8101
8097
|
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
8098
|
} else
|
|
8103
8099
|
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 +8109,10 @@ var Oi = (
|
|
|
8113
8109
|
return K(this, function(a) {
|
|
8114
8110
|
switch (a.label) {
|
|
8115
8111
|
case 0:
|
|
8116
|
-
if (t.idToken && (o = new
|
|
8112
|
+
if (t.idToken && (o = new rt(t.idToken.secret, this.config.cryptoInterface)), r.maxAge || r.maxAge === 0) {
|
|
8117
8113
|
if (i = o == null ? void 0 : o.claims.auth_time, !i)
|
|
8118
8114
|
throw O.createAuthTimeNotFoundError();
|
|
8119
|
-
|
|
8115
|
+
rt.checkMaxAge(i, r.maxAge);
|
|
8120
8116
|
}
|
|
8121
8117
|
return [4, wn.generateAuthenticationResult(this.cryptoUtils, this.authority, t, !0, r, o)];
|
|
8122
8118
|
case 1:
|
|
@@ -8143,7 +8139,7 @@ var Qn = (
|
|
|
8143
8139
|
/** @class */
|
|
8144
8140
|
function() {
|
|
8145
8141
|
function n() {
|
|
8146
|
-
this.expiresAt =
|
|
8142
|
+
this.expiresAt = Ke.nowSeconds() + $t.REFRESH_TIME_SECONDS;
|
|
8147
8143
|
}
|
|
8148
8144
|
return n.prototype.updateCloudDiscoveryMetadata = function(e, t) {
|
|
8149
8145
|
this.aliases = e.aliases, this.preferred_cache = e.preferred_cache, this.preferred_network = e.preferred_network, this.aliasesFromNetwork = t;
|
|
@@ -8152,9 +8148,9 @@ var Qn = (
|
|
|
8152
8148
|
}, n.prototype.updateCanonicalAuthority = function(e) {
|
|
8153
8149
|
this.canonical_authority = e;
|
|
8154
8150
|
}, n.prototype.resetExpiresAt = function() {
|
|
8155
|
-
this.expiresAt =
|
|
8151
|
+
this.expiresAt = Ke.nowSeconds() + $t.REFRESH_TIME_SECONDS;
|
|
8156
8152
|
}, n.prototype.isExpired = function() {
|
|
8157
|
-
return this.expiresAt <=
|
|
8153
|
+
return this.expiresAt <= Ke.nowSeconds();
|
|
8158
8154
|
}, n.isAuthorityMetadataEntity = function(e, t) {
|
|
8159
8155
|
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
8156
|
}, n;
|
|
@@ -8430,7 +8426,7 @@ var on = (
|
|
|
8430
8426
|
case 1:
|
|
8431
8427
|
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
8428
|
case 2:
|
|
8433
|
-
return a = u.sent(), i !==
|
|
8429
|
+
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
8430
|
2
|
|
8435
8431
|
/*return*/
|
|
8436
8432
|
];
|
|
@@ -8444,19 +8440,19 @@ var on = (
|
|
|
8444
8440
|
return K(this, function(d) {
|
|
8445
8441
|
switch (d.label) {
|
|
8446
8442
|
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,
|
|
8443
|
+
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
8444
|
case 1:
|
|
8449
8445
|
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
8446
|
case 2:
|
|
8451
8447
|
u = d.sent(), d.label = 3;
|
|
8452
8448
|
case 3:
|
|
8453
|
-
return e.updateEndpointMetadata(u, !0), [2,
|
|
8449
|
+
return e.updateEndpointMetadata(u, !0), [2, Fe.NETWORK];
|
|
8454
8450
|
case 4:
|
|
8455
8451
|
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
8452
|
case 5:
|
|
8457
8453
|
p = d.sent(), d.label = 6;
|
|
8458
8454
|
case 6:
|
|
8459
|
-
return e.updateEndpointMetadata(p, !1), [2,
|
|
8455
|
+
return e.updateEndpointMetadata(p, !1), [2, Fe.HARDCODED_VALUES];
|
|
8460
8456
|
case 7:
|
|
8461
8457
|
throw O.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint);
|
|
8462
8458
|
}
|
|
@@ -8521,12 +8517,12 @@ var on = (
|
|
|
8521
8517
|
return K(this, function(s) {
|
|
8522
8518
|
switch (s.label) {
|
|
8523
8519
|
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,
|
|
8520
|
+
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
8521
|
case 1:
|
|
8526
8522
|
if (o = s.sent(), o)
|
|
8527
|
-
return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"), e.updateCloudDiscoveryMetadata(o, !0), [2,
|
|
8523
|
+
return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"), e.updateCloudDiscoveryMetadata(o, !0), [2, Fe.NETWORK];
|
|
8528
8524
|
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,
|
|
8525
|
+
return this.logger.verbose("Found cloud discovery metadata from hardcoded values."), e.updateCloudDiscoveryMetadata(a, !1), [2, Fe.HARDCODED_VALUES];
|
|
8530
8526
|
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
8527
|
}
|
|
8532
8528
|
});
|
|
@@ -8680,7 +8676,7 @@ var Cn = (
|
|
|
8680
8676
|
this.failedRequests = [], this.errors = [], this.cacheHits = 0;
|
|
8681
8677
|
}
|
|
8682
8678
|
return n.isServerTelemetryEntity = function(e, t) {
|
|
8683
|
-
var r = e.indexOf(
|
|
8679
|
+
var r = e.indexOf(ye.CACHE_KEY) === 0, o = !0;
|
|
8684
8680
|
return t && (o = t.hasOwnProperty("failedRequests") && t.hasOwnProperty("errors") && t.hasOwnProperty("cacheHits")), r && o;
|
|
8685
8681
|
}, n;
|
|
8686
8682
|
}()
|
|
@@ -8762,17 +8758,17 @@ var qi = (
|
|
|
8762
8758
|
/** @class */
|
|
8763
8759
|
function() {
|
|
8764
8760
|
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 =
|
|
8761
|
+
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
8762
|
}
|
|
8767
8763
|
return n.prototype.generateCurrentRequestHeaderValue = function() {
|
|
8768
|
-
var e = "" + this.apiId +
|
|
8769
|
-
return [
|
|
8764
|
+
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);
|
|
8765
|
+
return [ye.SCHEMA_VERSION, o, t].join(ye.CATEGORY_SEPARATOR);
|
|
8770
8766
|
}, n.prototype.generateLastRequestHeaderValue = function() {
|
|
8771
|
-
var e = this.getLastRequests(), t = n.maxErrorsToSend(e), r = e.failedRequests.slice(0, 2 * t).join(
|
|
8772
|
-
return [
|
|
8767
|
+
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);
|
|
8768
|
+
return [ye.SCHEMA_VERSION, e.cacheHits, r, o, s].join(ye.CATEGORY_SEPARATOR);
|
|
8773
8769
|
}, n.prototype.cacheFailedRequest = function(e) {
|
|
8774
8770
|
var t = this.getLastRequests();
|
|
8775
|
-
t.errors.length >=
|
|
8771
|
+
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
8772
|
}, n.prototype.incrementCacheHits = function() {
|
|
8777
8773
|
var e = this.getLastRequests();
|
|
8778
8774
|
return e.cacheHits += 1, this.cacheManager.setServerTelemetry(this.telemetryCacheKey, e), e.cacheHits;
|
|
@@ -8791,7 +8787,7 @@ var qi = (
|
|
|
8791
8787
|
var t, r = 0, o = 0, i = e.errors.length;
|
|
8792
8788
|
for (t = 0; t < i; t++) {
|
|
8793
8789
|
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 <
|
|
8790
|
+
if (o += a.toString().length + s.toString().length + u.length + 3, o < ye.MAX_LAST_HEADER_BYTES)
|
|
8795
8791
|
r += 1;
|
|
8796
8792
|
else
|
|
8797
8793
|
break;
|
|
@@ -8988,7 +8984,7 @@ var Nr = (
|
|
|
8988
8984
|
}(ao)
|
|
8989
8985
|
);
|
|
8990
8986
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
8991
|
-
var
|
|
8987
|
+
var A = {
|
|
8992
8988
|
pkceNotGenerated: {
|
|
8993
8989
|
code: "pkce_not_created",
|
|
8994
8990
|
desc: "The PKCE code challenge and verifier could not be generated."
|
|
@@ -9178,101 +9174,101 @@ var S = {
|
|
|
9178
9174
|
return Object.setPrototypeOf(o, e.prototype), o.name = "BrowserAuthError", o;
|
|
9179
9175
|
}
|
|
9180
9176
|
return e.createPkceNotGeneratedError = function(t) {
|
|
9181
|
-
return new e(
|
|
9177
|
+
return new e(A.pkceNotGenerated.code, A.pkceNotGenerated.desc + " Detail:" + t);
|
|
9182
9178
|
}, e.createCryptoNotAvailableError = function(t) {
|
|
9183
|
-
return new e(
|
|
9179
|
+
return new e(A.cryptoDoesNotExist.code, A.cryptoDoesNotExist.desc + " Detail:" + t);
|
|
9184
9180
|
}, e.createHttpMethodNotImplementedError = function(t) {
|
|
9185
|
-
return new e(
|
|
9181
|
+
return new e(A.httpMethodNotImplementedError.code, A.httpMethodNotImplementedError.desc + " Given Method: " + t);
|
|
9186
9182
|
}, e.createEmptyNavigationUriError = function() {
|
|
9187
|
-
return new e(
|
|
9183
|
+
return new e(A.emptyNavigateUriError.code, A.emptyNavigateUriError.desc);
|
|
9188
9184
|
}, e.createEmptyHashError = function(t) {
|
|
9189
|
-
return new e(
|
|
9185
|
+
return new e(A.hashEmptyError.code, A.hashEmptyError.desc + " Given Url: " + t);
|
|
9190
9186
|
}, e.createHashDoesNotContainStateError = function() {
|
|
9191
|
-
return new e(
|
|
9187
|
+
return new e(A.hashDoesNotContainStateError.code, A.hashDoesNotContainStateError.desc);
|
|
9192
9188
|
}, e.createHashDoesNotContainKnownPropertiesError = function() {
|
|
9193
|
-
return new e(
|
|
9189
|
+
return new e(A.hashDoesNotContainKnownPropertiesError.code, A.hashDoesNotContainKnownPropertiesError.desc);
|
|
9194
9190
|
}, e.createUnableToParseStateError = function() {
|
|
9195
|
-
return new e(
|
|
9191
|
+
return new e(A.unableToParseStateError.code, A.unableToParseStateError.desc);
|
|
9196
9192
|
}, e.createStateInteractionTypeMismatchError = function() {
|
|
9197
|
-
return new e(
|
|
9193
|
+
return new e(A.stateInteractionTypeMismatchError.code, A.stateInteractionTypeMismatchError.desc);
|
|
9198
9194
|
}, e.createInteractionInProgressError = function() {
|
|
9199
|
-
return new e(
|
|
9195
|
+
return new e(A.interactionInProgress.code, A.interactionInProgress.desc);
|
|
9200
9196
|
}, e.createPopupWindowError = function(t) {
|
|
9201
|
-
var r =
|
|
9202
|
-
return r = L.isEmpty(t) ? r : r + " Details: " + t, new e(
|
|
9197
|
+
var r = A.popupWindowError.desc;
|
|
9198
|
+
return r = L.isEmpty(t) ? r : r + " Details: " + t, new e(A.popupWindowError.code, r);
|
|
9203
9199
|
}, e.createEmptyWindowCreatedError = function() {
|
|
9204
|
-
return new e(
|
|
9200
|
+
return new e(A.emptyWindowError.code, A.emptyWindowError.desc);
|
|
9205
9201
|
}, e.createUserCancelledError = function() {
|
|
9206
|
-
return new e(
|
|
9202
|
+
return new e(A.userCancelledError.code, A.userCancelledError.desc);
|
|
9207
9203
|
}, e.createMonitorPopupTimeoutError = function() {
|
|
9208
|
-
return new e(
|
|
9204
|
+
return new e(A.monitorPopupTimeoutError.code, A.monitorPopupTimeoutError.desc);
|
|
9209
9205
|
}, e.createMonitorIframeTimeoutError = function() {
|
|
9210
|
-
return new e(
|
|
9206
|
+
return new e(A.monitorIframeTimeoutError.code, A.monitorIframeTimeoutError.desc);
|
|
9211
9207
|
}, e.createRedirectInIframeError = function(t) {
|
|
9212
|
-
return new e(
|
|
9208
|
+
return new e(A.redirectInIframeError.code, A.redirectInIframeError.desc + " (window.parent !== window) => " + t);
|
|
9213
9209
|
}, e.createBlockReloadInHiddenIframeError = function() {
|
|
9214
|
-
return new e(
|
|
9210
|
+
return new e(A.blockTokenRequestsInHiddenIframeError.code, A.blockTokenRequestsInHiddenIframeError.desc);
|
|
9215
9211
|
}, e.createBlockAcquireTokenInPopupsError = function() {
|
|
9216
|
-
return new e(
|
|
9212
|
+
return new e(A.blockAcquireTokenInPopupsError.code, A.blockAcquireTokenInPopupsError.desc);
|
|
9217
9213
|
}, e.createIframeClosedPrematurelyError = function() {
|
|
9218
|
-
return new e(
|
|
9214
|
+
return new e(A.iframeClosedPrematurelyError.code, A.iframeClosedPrematurelyError.desc);
|
|
9219
9215
|
}, e.createSilentLogoutUnsupportedError = function() {
|
|
9220
|
-
return new e(
|
|
9216
|
+
return new e(A.silentLogoutUnsupportedError.code, A.silentLogoutUnsupportedError.desc);
|
|
9221
9217
|
}, e.createNoAccountError = function() {
|
|
9222
|
-
return new e(
|
|
9218
|
+
return new e(A.noAccountError.code, A.noAccountError.desc);
|
|
9223
9219
|
}, e.createSilentPromptValueError = function(t) {
|
|
9224
|
-
return new e(
|
|
9220
|
+
return new e(A.silentPromptValueError.code, A.silentPromptValueError.desc + " Given value: " + t);
|
|
9225
9221
|
}, e.createUnableToParseTokenRequestCacheError = function() {
|
|
9226
|
-
return new e(
|
|
9222
|
+
return new e(A.unableToParseTokenRequestCacheError.code, A.unableToParseTokenRequestCacheError.desc);
|
|
9227
9223
|
}, e.createNoTokenRequestCacheError = function() {
|
|
9228
|
-
return new e(
|
|
9224
|
+
return new e(A.noTokenRequestCacheError.code, A.noTokenRequestCacheError.desc);
|
|
9229
9225
|
}, e.createAuthRequestNotSetError = function() {
|
|
9230
|
-
return new e(
|
|
9226
|
+
return new e(A.authRequestNotSet.code, A.authRequestNotSet.desc);
|
|
9231
9227
|
}, e.createNoCachedAuthorityError = function() {
|
|
9232
|
-
return new e(
|
|
9228
|
+
return new e(A.noCachedAuthorityError.code, A.noCachedAuthorityError.desc);
|
|
9233
9229
|
}, e.createInvalidCacheTypeError = function() {
|
|
9234
|
-
return new e(
|
|
9230
|
+
return new e(A.invalidCacheType.code, "" + A.invalidCacheType.desc);
|
|
9235
9231
|
}, e.createNonBrowserEnvironmentError = function() {
|
|
9236
|
-
return new e(
|
|
9232
|
+
return new e(A.notInBrowserEnvironment.code, A.notInBrowserEnvironment.desc);
|
|
9237
9233
|
}, e.createDatabaseNotOpenError = function() {
|
|
9238
|
-
return new e(
|
|
9234
|
+
return new e(A.databaseNotOpen.code, A.databaseNotOpen.desc);
|
|
9239
9235
|
}, e.createNoNetworkConnectivityError = function() {
|
|
9240
|
-
return new e(
|
|
9236
|
+
return new e(A.noNetworkConnectivity.code, A.noNetworkConnectivity.desc);
|
|
9241
9237
|
}, e.createPostRequestFailedError = function(t, r) {
|
|
9242
|
-
return new e(
|
|
9238
|
+
return new e(A.postRequestFailed.code, A.postRequestFailed.desc + " | Network client threw: " + t + " | Attempted to reach: " + r.split("?")[0]);
|
|
9243
9239
|
}, e.createGetRequestFailedError = function(t, r) {
|
|
9244
|
-
return new e(
|
|
9240
|
+
return new e(A.getRequestFailed.code, A.getRequestFailed.desc + " | Network client threw: " + t + " | Attempted to reach: " + r.split("?")[0]);
|
|
9245
9241
|
}, e.createFailedToParseNetworkResponseError = function(t) {
|
|
9246
|
-
return new e(
|
|
9242
|
+
return new e(A.failedToParseNetworkResponse.code, A.failedToParseNetworkResponse.desc + " | Attempted to reach: " + t.split("?")[0]);
|
|
9247
9243
|
}, e.createUnableToLoadTokenError = function(t) {
|
|
9248
|
-
return new e(
|
|
9244
|
+
return new e(A.unableToLoadTokenError.code, A.unableToLoadTokenError.desc + " | " + t);
|
|
9249
9245
|
}, e.createSigningKeyNotFoundInStorageError = function(t) {
|
|
9250
|
-
return new e(
|
|
9246
|
+
return new e(A.signingKeyNotFoundInStorage.code, A.signingKeyNotFoundInStorage.desc + " | No match found for KeyId: " + t);
|
|
9251
9247
|
}, e.createAuthCodeRequiredError = function() {
|
|
9252
|
-
return new e(
|
|
9248
|
+
return new e(A.authCodeRequired.code, A.authCodeRequired.desc);
|
|
9253
9249
|
}, e.createAuthCodeOrNativeAccountIdRequiredError = function() {
|
|
9254
|
-
return new e(
|
|
9250
|
+
return new e(A.authCodeOrNativeAccountRequired.code, A.authCodeOrNativeAccountRequired.desc);
|
|
9255
9251
|
}, e.createSpaCodeAndNativeAccountIdPresentError = function() {
|
|
9256
|
-
return new e(
|
|
9252
|
+
return new e(A.spaCodeAndNativeAccountPresent.code, A.spaCodeAndNativeAccountPresent.desc);
|
|
9257
9253
|
}, e.createDatabaseUnavailableError = function() {
|
|
9258
|
-
return new e(
|
|
9254
|
+
return new e(A.databaseUnavailable.code, A.databaseUnavailable.desc);
|
|
9259
9255
|
}, e.createUnableToAcquireTokenFromNativePlatformError = function() {
|
|
9260
|
-
return new e(
|
|
9256
|
+
return new e(A.unableToAcquireTokenFromNativePlatform.code, A.unableToAcquireTokenFromNativePlatform.desc);
|
|
9261
9257
|
}, e.createNativeHandshakeTimeoutError = function() {
|
|
9262
|
-
return new e(
|
|
9258
|
+
return new e(A.nativeHandshakeTimeout.code, A.nativeHandshakeTimeout.desc);
|
|
9263
9259
|
}, e.createNativeExtensionNotInstalledError = function() {
|
|
9264
|
-
return new e(
|
|
9260
|
+
return new e(A.nativeExtensionNotInstalled.code, A.nativeExtensionNotInstalled.desc);
|
|
9265
9261
|
}, e.createNativeConnectionNotEstablishedError = function() {
|
|
9266
|
-
return new e(
|
|
9262
|
+
return new e(A.nativeConnectionNotEstablished.code, A.nativeConnectionNotEstablished.desc);
|
|
9267
9263
|
}, e.createNativeBrokerCalledBeforeInitialize = function() {
|
|
9268
|
-
return new e(
|
|
9264
|
+
return new e(A.nativeBrokerCalledBeforeInitialize.code, A.nativeBrokerCalledBeforeInitialize.desc);
|
|
9269
9265
|
}, e.createNativePromptParameterNotSupportedError = function() {
|
|
9270
|
-
return new e(
|
|
9266
|
+
return new e(A.nativePromptNotSupported.code, A.nativePromptNotSupported.desc);
|
|
9271
9267
|
}, e;
|
|
9272
9268
|
}(D)
|
|
9273
9269
|
);
|
|
9274
9270
|
/*! @azure/msal-browser v2.38.3 2023-10-27 */
|
|
9275
|
-
var
|
|
9271
|
+
var Qe = {
|
|
9276
9272
|
/**
|
|
9277
9273
|
* Interaction in progress cache value
|
|
9278
9274
|
*/
|
|
@@ -9309,22 +9305,22 @@ var Ve = {
|
|
|
9309
9305
|
(function(n) {
|
|
9310
9306
|
n.HandshakeRequest = "Handshake", n.HandshakeResponse = "HandshakeResponse", n.GetToken = "GetToken", n.Response = "Response";
|
|
9311
9307
|
})(at || (at = {}));
|
|
9312
|
-
var
|
|
9308
|
+
var pe;
|
|
9313
9309
|
(function(n) {
|
|
9314
9310
|
n.LocalStorage = "localStorage", n.SessionStorage = "sessionStorage", n.MemoryStorage = "memoryStorage";
|
|
9315
|
-
})(
|
|
9316
|
-
var
|
|
9311
|
+
})(pe || (pe = {}));
|
|
9312
|
+
var Ze;
|
|
9317
9313
|
(function(n) {
|
|
9318
9314
|
n.GET = "GET", n.POST = "POST";
|
|
9319
|
-
})(
|
|
9315
|
+
})(Ze || (Ze = {}));
|
|
9320
9316
|
var J;
|
|
9321
9317
|
(function(n) {
|
|
9322
9318
|
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
9319
|
})(J || (J = {}));
|
|
9324
|
-
var
|
|
9320
|
+
var Xe;
|
|
9325
9321
|
(function(n) {
|
|
9326
9322
|
n.ACCOUNT_KEYS = "msal.account.keys", n.TOKEN_KEYS = "msal.token.keys";
|
|
9327
|
-
})(
|
|
9323
|
+
})(Xe || (Xe = {}));
|
|
9328
9324
|
var Lt;
|
|
9329
9325
|
(function(n) {
|
|
9330
9326
|
n.WRAPPER_SKU = "wrapper.sku", n.WRAPPER_VER = "wrapper.version";
|
|
@@ -9418,7 +9414,7 @@ var zr = (
|
|
|
9418
9414
|
this.validateWindowStorage(e), this.windowStorage = window[e];
|
|
9419
9415
|
}
|
|
9420
9416
|
return n.prototype.validateWindowStorage = function(e) {
|
|
9421
|
-
if (e !==
|
|
9417
|
+
if (e !== pe.LocalStorage && e !== pe.SessionStorage)
|
|
9422
9418
|
throw En.createStorageNotSupportedError(e);
|
|
9423
9419
|
var t = !!window[e];
|
|
9424
9420
|
if (!t)
|
|
@@ -9495,8 +9491,8 @@ var $n = (
|
|
|
9495
9491
|
}
|
|
9496
9492
|
return e.prototype.setupBrowserStorage = function(t) {
|
|
9497
9493
|
switch (t) {
|
|
9498
|
-
case
|
|
9499
|
-
case
|
|
9494
|
+
case pe.LocalStorage:
|
|
9495
|
+
case pe.SessionStorage:
|
|
9500
9496
|
try {
|
|
9501
9497
|
return new zr(t);
|
|
9502
9498
|
} catch (r) {
|
|
@@ -9504,22 +9500,22 @@ var $n = (
|
|
|
9504
9500
|
break;
|
|
9505
9501
|
}
|
|
9506
9502
|
}
|
|
9507
|
-
return this.cacheConfig.cacheLocation =
|
|
9503
|
+
return this.cacheConfig.cacheLocation = pe.MemoryStorage, new Wn();
|
|
9508
9504
|
}, e.prototype.setupTemporaryCacheStorage = function(t, r) {
|
|
9509
9505
|
switch (r) {
|
|
9510
|
-
case
|
|
9511
|
-
case
|
|
9506
|
+
case pe.LocalStorage:
|
|
9507
|
+
case pe.SessionStorage:
|
|
9512
9508
|
try {
|
|
9513
|
-
return new zr(t ||
|
|
9509
|
+
return new zr(t || pe.SessionStorage);
|
|
9514
9510
|
} catch (o) {
|
|
9515
9511
|
return this.logger.verbose(o), this.internalStorage;
|
|
9516
9512
|
}
|
|
9517
|
-
case
|
|
9513
|
+
case pe.MemoryStorage:
|
|
9518
9514
|
default:
|
|
9519
9515
|
return this.internalStorage;
|
|
9520
9516
|
}
|
|
9521
9517
|
}, e.prototype.migrateCacheEntries = function() {
|
|
9522
|
-
var t = this, r = g.CACHE_PREFIX + "." +
|
|
9518
|
+
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
9519
|
_.forEach(function(k, E) {
|
|
9524
9520
|
return t.migrateCacheEntry(k, f[E]);
|
|
9525
9521
|
});
|
|
@@ -9528,7 +9524,7 @@ var $n = (
|
|
|
9528
9524
|
}, e.prototype.createKeyMaps = function() {
|
|
9529
9525
|
var t = this;
|
|
9530
9526
|
this.logger.trace("BrowserCacheManager - createKeyMaps called.");
|
|
9531
|
-
var r = this.getItem(
|
|
9527
|
+
var r = this.getItem(Xe.ACCOUNT_KEYS), o = this.getItem(Xe.TOKEN_KEYS + "." + this.clientId);
|
|
9532
9528
|
if (r && o) {
|
|
9533
9529
|
this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");
|
|
9534
9530
|
return;
|
|
@@ -9604,16 +9600,16 @@ var $n = (
|
|
|
9604
9600
|
this.setItem(r, JSON.stringify(t)), this.addAccountKeyToMap(r);
|
|
9605
9601
|
}, e.prototype.getAccountKeys = function() {
|
|
9606
9602
|
this.logger.trace("BrowserCacheManager.getAccountKeys called");
|
|
9607
|
-
var t = this.getItem(
|
|
9603
|
+
var t = this.getItem(Xe.ACCOUNT_KEYS);
|
|
9608
9604
|
return t ? JSON.parse(t) : (this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"), []);
|
|
9609
9605
|
}, e.prototype.addAccountKeyToMap = function(t) {
|
|
9610
9606
|
this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"), this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: " + t);
|
|
9611
9607
|
var r = this.getAccountKeys();
|
|
9612
|
-
r.indexOf(t) === -1 ? (r.push(t), this.setItem(
|
|
9608
|
+
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
9609
|
}, e.prototype.removeAccountKeyFromMap = function(t) {
|
|
9614
9610
|
this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"), this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: " + t);
|
|
9615
9611
|
var r = this.getAccountKeys(), o = r.indexOf(t);
|
|
9616
|
-
o > -1 ? (r.splice(o, 1), this.setItem(
|
|
9612
|
+
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
9613
|
}, e.prototype.removeAccount = function(t) {
|
|
9618
9614
|
return T(this, void 0, void 0, function() {
|
|
9619
9615
|
return I(this, function(r) {
|
|
@@ -9638,7 +9634,7 @@ var $n = (
|
|
|
9638
9634
|
n.prototype.removeRefreshToken.call(this, t), this.removeTokenKey(t, H.REFRESH_TOKEN);
|
|
9639
9635
|
}, e.prototype.getTokenKeys = function() {
|
|
9640
9636
|
this.logger.trace("BrowserCacheManager.getTokenKeys called");
|
|
9641
|
-
var t = this.getItem(
|
|
9637
|
+
var t = this.getItem(Xe.TOKEN_KEYS + "." + this.clientId);
|
|
9642
9638
|
if (t) {
|
|
9643
9639
|
var r = this.validateAndParseJson(t);
|
|
9644
9640
|
if (r && r.hasOwnProperty("idToken") && r.hasOwnProperty("accessToken") && r.hasOwnProperty("refreshToken"))
|
|
@@ -9667,7 +9663,7 @@ var $n = (
|
|
|
9667
9663
|
default:
|
|
9668
9664
|
this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: " + r), O.createUnexpectedCredentialTypeError();
|
|
9669
9665
|
}
|
|
9670
|
-
this.setItem(
|
|
9666
|
+
this.setItem(Xe.TOKEN_KEYS + "." + this.clientId, JSON.stringify(o));
|
|
9671
9667
|
}, e.prototype.removeTokenKey = function(t, r) {
|
|
9672
9668
|
this.logger.trace("BrowserCacheManager removeTokenKey called");
|
|
9673
9669
|
var o = this.getTokenKeys();
|
|
@@ -9690,7 +9686,7 @@ var $n = (
|
|
|
9690
9686
|
default:
|
|
9691
9687
|
this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: " + r), O.createUnexpectedCredentialTypeError();
|
|
9692
9688
|
}
|
|
9693
|
-
this.setItem(
|
|
9689
|
+
this.setItem(Xe.TOKEN_KEYS + "." + this.clientId, JSON.stringify(o));
|
|
9694
9690
|
}, e.prototype.getIdTokenCredential = function(t) {
|
|
9695
9691
|
var r = this.getItem(t);
|
|
9696
9692
|
if (!r)
|
|
@@ -9758,10 +9754,10 @@ var $n = (
|
|
|
9758
9754
|
}, e.prototype.setAuthorityMetadata = function(t, r) {
|
|
9759
9755
|
this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"), this.internalStorage.setItem(t, JSON.stringify(r));
|
|
9760
9756
|
}, e.prototype.getActiveAccount = function() {
|
|
9761
|
-
var t = this.generateCacheKey(
|
|
9757
|
+
var t = this.generateCacheKey(he.ACTIVE_ACCOUNT_FILTERS), r = this.getItem(t);
|
|
9762
9758
|
if (!r) {
|
|
9763
9759
|
this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");
|
|
9764
|
-
var o = this.generateCacheKey(
|
|
9760
|
+
var o = this.generateCacheKey(he.ACTIVE_ACCOUNT), i = this.getItem(o);
|
|
9765
9761
|
if (!i)
|
|
9766
9762
|
return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"), null;
|
|
9767
9763
|
var a = this.getAccountInfoByFilter({ localAccountId: i })[0] || null;
|
|
@@ -9773,7 +9769,7 @@ var $n = (
|
|
|
9773
9769
|
localAccountId: s.localAccountId
|
|
9774
9770
|
})[0] || null) : (this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"), null);
|
|
9775
9771
|
}, e.prototype.setActiveAccount = function(t) {
|
|
9776
|
-
var r = this.generateCacheKey(
|
|
9772
|
+
var r = this.generateCacheKey(he.ACTIVE_ACCOUNT_FILTERS), o = this.generateCacheKey(he.ACTIVE_ACCOUNT);
|
|
9777
9773
|
if (t) {
|
|
9778
9774
|
this.logger.verbose("setActiveAccount: Active account set");
|
|
9779
9775
|
var i = {
|
|
@@ -9818,7 +9814,7 @@ var $n = (
|
|
|
9818
9814
|
}
|
|
9819
9815
|
var a = this.temporaryCacheStorage.getItem(o);
|
|
9820
9816
|
if (!a) {
|
|
9821
|
-
if (this.cacheConfig.cacheLocation ===
|
|
9817
|
+
if (this.cacheConfig.cacheLocation === pe.LocalStorage) {
|
|
9822
9818
|
var s = this.browserStorage.getItem(o);
|
|
9823
9819
|
if (s)
|
|
9824
9820
|
return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"), s;
|
|
@@ -9905,7 +9901,7 @@ var $n = (
|
|
|
9905
9901
|
}, e.prototype.setCache = function() {
|
|
9906
9902
|
}, e.prototype.generateCacheKey = function(t) {
|
|
9907
9903
|
var r = this.validateAndParseJson(t);
|
|
9908
|
-
return r ? JSON.stringify(t) : L.startsWith(t, g.CACHE_PREFIX) || L.startsWith(t,
|
|
9904
|
+
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
9905
|
}, e.prototype.generateAuthorityKey = function(t) {
|
|
9910
9906
|
var r = st.parseRequestState(this.cryptoImpl, t).libraryState.id;
|
|
9911
9907
|
return this.generateCacheKey(J.AUTHORITY + "." + r);
|
|
@@ -10004,13 +10000,13 @@ var $n = (
|
|
|
10004
10000
|
} else
|
|
10005
10001
|
!t && this.getInteractionInProgress() === this.clientId && this.removeItem(r);
|
|
10006
10002
|
}, 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(
|
|
10003
|
+
var t = this.getTemporaryCache(he.ADAL_ID_TOKEN);
|
|
10004
|
+
t && (this.browserStorage.removeItem(he.ADAL_ID_TOKEN), this.logger.verbose("Cached ADAL id token retrieved."));
|
|
10005
|
+
var r = this.getTemporaryCache(he.ID_TOKEN, !0);
|
|
10006
|
+
r && (this.removeItem(this.generateCacheKey(he.ID_TOKEN)), this.logger.verbose("Cached MSAL.js v1 id token retrieved"));
|
|
10011
10007
|
var o = r || t;
|
|
10012
10008
|
if (o) {
|
|
10013
|
-
var i = new
|
|
10009
|
+
var i = new rt(o, this.cryptoImpl);
|
|
10014
10010
|
if (i.claims && i.claims.preferred_username)
|
|
10015
10011
|
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
10012
|
if (i.claims && i.claims.upn)
|
|
@@ -10035,8 +10031,8 @@ var $n = (
|
|
|
10035
10031
|
}(Ne)
|
|
10036
10032
|
), Gi = function(n, e) {
|
|
10037
10033
|
var t = {
|
|
10038
|
-
cacheLocation:
|
|
10039
|
-
temporaryCacheLocation:
|
|
10034
|
+
cacheLocation: pe.MemoryStorage,
|
|
10035
|
+
temporaryCacheLocation: pe.MemoryStorage,
|
|
10040
10036
|
storeAuthStateInCookie: !1,
|
|
10041
10037
|
secureCookies: !1,
|
|
10042
10038
|
cacheMigrationEnabled: !1,
|
|
@@ -10059,7 +10055,7 @@ var Vi = (
|
|
|
10059
10055
|
switch (a.label) {
|
|
10060
10056
|
case 0:
|
|
10061
10057
|
return a.trys.push([0, 2, , 3]), [4, fetch(e, {
|
|
10062
|
-
method:
|
|
10058
|
+
method: Ze.GET,
|
|
10063
10059
|
headers: this.getFetchHeaders(t)
|
|
10064
10060
|
})];
|
|
10065
10061
|
case 1:
|
|
@@ -10091,7 +10087,7 @@ var Vi = (
|
|
|
10091
10087
|
r = t && t.body || g.EMPTY_STRING, s.label = 1;
|
|
10092
10088
|
case 1:
|
|
10093
10089
|
return s.trys.push([1, 3, , 4]), [4, fetch(e, {
|
|
10094
|
-
method:
|
|
10090
|
+
method: Ze.POST,
|
|
10095
10091
|
headers: this.getFetchHeaders(t),
|
|
10096
10092
|
body: r
|
|
10097
10093
|
})];
|
|
@@ -10140,13 +10136,13 @@ var Qi = (
|
|
|
10140
10136
|
return n.prototype.sendGetRequestAsync = function(e, t) {
|
|
10141
10137
|
return T(this, void 0, void 0, function() {
|
|
10142
10138
|
return I(this, function(r) {
|
|
10143
|
-
return [2, this.sendRequestAsync(e,
|
|
10139
|
+
return [2, this.sendRequestAsync(e, Ze.GET, t)];
|
|
10144
10140
|
});
|
|
10145
10141
|
});
|
|
10146
10142
|
}, n.prototype.sendPostRequestAsync = function(e, t) {
|
|
10147
10143
|
return T(this, void 0, void 0, function() {
|
|
10148
10144
|
return I(this, function(r) {
|
|
10149
|
-
return [2, this.sendRequestAsync(e,
|
|
10145
|
+
return [2, this.sendRequestAsync(e, Ze.POST, t)];
|
|
10150
10146
|
});
|
|
10151
10147
|
});
|
|
10152
10148
|
}, n.prototype.sendRequestAsync = function(e, t, r) {
|
|
@@ -10159,7 +10155,7 @@ var Qi = (
|
|
|
10159
10155
|
/* async: */
|
|
10160
10156
|
!0
|
|
10161
10157
|
), o.setXhrHeaders(s, r), s.onload = function() {
|
|
10162
|
-
(s.status < 200 || s.status >= 300) && (t ===
|
|
10158
|
+
(s.status < 200 || s.status >= 300) && (t === Ze.POST ? a(N.createPostRequestFailedError("Failed with status " + s.status, e)) : a(N.createGetRequestFailedError("Failed with status " + s.status, e)));
|
|
10163
10159
|
try {
|
|
10164
10160
|
var u = JSON.parse(s.responseText), p = {
|
|
10165
10161
|
headers: o.getHeaderDict(s),
|
|
@@ -10171,10 +10167,10 @@ var Qi = (
|
|
|
10171
10167
|
a(N.createFailedToParseNetworkResponseError(e));
|
|
10172
10168
|
}
|
|
10173
10169
|
}, s.onerror = function() {
|
|
10174
|
-
window.navigator.onLine ? t ===
|
|
10175
|
-
}, t ===
|
|
10170
|
+
window.navigator.onLine ? t === Ze.POST ? a(N.createPostRequestFailedError("Failed with status " + s.status, e)) : a(N.createGetRequestFailedError("Failed with status " + s.status, e)) : a(N.createNoNetworkConnectivityError());
|
|
10171
|
+
}, t === Ze.POST && r && r.body)
|
|
10176
10172
|
s.send(r.body);
|
|
10177
|
-
else if (t ===
|
|
10173
|
+
else if (t === Ze.GET)
|
|
10178
10174
|
s.send();
|
|
10179
10175
|
else
|
|
10180
10176
|
throw N.createHttpMethodNotImplementedError(t);
|
|
@@ -10209,7 +10205,7 @@ var de = (
|
|
|
10209
10205
|
}, n.isInIframe = function() {
|
|
10210
10206
|
return window.parent !== window;
|
|
10211
10207
|
}, n.isInPopup = function() {
|
|
10212
|
-
return typeof window < "u" && !!window.opener && window.opener !== window && typeof window.name == "string" && window.name.indexOf(
|
|
10208
|
+
return typeof window < "u" && !!window.opener && window.opener !== window && typeof window.name == "string" && window.name.indexOf(Qe.POPUP_NAME_PREFIX + ".") === 0;
|
|
10213
10209
|
}, n.getCurrentUri = function() {
|
|
10214
10210
|
return window.location.href.split("?")[0].split("#")[0];
|
|
10215
10211
|
}, n.getHomepage = function() {
|
|
@@ -10245,7 +10241,7 @@ var co = (
|
|
|
10245
10241
|
/** @class */
|
|
10246
10242
|
function() {
|
|
10247
10243
|
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(
|
|
10244
|
+
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
10245
|
}
|
|
10250
10246
|
return n.prototype.clearCacheOnLogout = function(e) {
|
|
10251
10247
|
return T(this, void 0, void 0, function() {
|
|
@@ -10455,7 +10451,7 @@ var jt = (
|
|
|
10455
10451
|
storageInterface: this.browserStorage,
|
|
10456
10452
|
serverTelemetryManager: t,
|
|
10457
10453
|
libraryInfo: {
|
|
10458
|
-
sku:
|
|
10454
|
+
sku: Qe.MSAL_SKU,
|
|
10459
10455
|
version: tn,
|
|
10460
10456
|
cpu: g.EMPTY_STRING,
|
|
10461
10457
|
os: g.EMPTY_STRING
|
|
@@ -10538,7 +10534,7 @@ var or = (
|
|
|
10538
10534
|
try {
|
|
10539
10535
|
s = this.authModule.handleFragmentResponse(e, a);
|
|
10540
10536
|
} catch (p) {
|
|
10541
|
-
throw p instanceof bt && p.subError ===
|
|
10537
|
+
throw p instanceof bt && p.subError === A.userCancelledError.code ? N.createUserCancelledError() : p;
|
|
10542
10538
|
}
|
|
10543
10539
|
return this.performanceClient.setPreQueueTime(b.HandleCodeResponseFromServer, this.authCodeRequest.correlationId), [2, this.handleCodeResponseFromServer(s, t, r, o)];
|
|
10544
10540
|
});
|
|
@@ -10652,7 +10648,7 @@ var Ur = (
|
|
|
10652
10648
|
try {
|
|
10653
10649
|
u = this.authModule.handleFragmentResponse(t, s);
|
|
10654
10650
|
} catch (E) {
|
|
10655
|
-
throw E instanceof bt && E.subError ===
|
|
10651
|
+
throw E instanceof bt && E.subError === A.userCancelledError.code ? N.createUserCancelledError() : E;
|
|
10656
10652
|
}
|
|
10657
10653
|
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
10654
|
case 1:
|
|
@@ -10689,7 +10685,7 @@ var Gt = {
|
|
|
10689
10685
|
code: "tokens_not_found_in_internal_memory_cache",
|
|
10690
10686
|
desc: "Tokens not cached in MSAL JS internal memory, please make the WAM request"
|
|
10691
10687
|
}
|
|
10692
|
-
},
|
|
10688
|
+
}, tt = (
|
|
10693
10689
|
/** @class */
|
|
10694
10690
|
function(n) {
|
|
10695
10691
|
be(e, n);
|
|
@@ -10710,9 +10706,9 @@ var Gt = {
|
|
|
10710
10706
|
if (o && o.status)
|
|
10711
10707
|
switch (o.status) {
|
|
10712
10708
|
case pt.ACCOUNT_UNAVAILABLE:
|
|
10713
|
-
return
|
|
10709
|
+
return Ye.createNativeAccountUnavailableError();
|
|
10714
10710
|
case pt.USER_INTERACTION_REQUIRED:
|
|
10715
|
-
return new
|
|
10711
|
+
return new Ye(t, r);
|
|
10716
10712
|
case pt.USER_CANCEL:
|
|
10717
10713
|
return N.createUserCancelledError();
|
|
10718
10714
|
case pt.NO_NETWORK:
|
|
@@ -10751,7 +10747,7 @@ var lo = (
|
|
|
10751
10747
|
fromCache: !0
|
|
10752
10748
|
}), [2, a];
|
|
10753
10749
|
case 4:
|
|
10754
|
-
throw s = u.sent(), s instanceof N && s.errorCode ===
|
|
10750
|
+
throw s = u.sent(), s instanceof N && 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
10751
|
errorCode: s instanceof D && s.errorCode || void 0,
|
|
10756
10752
|
subErrorCode: s instanceof D && s.subError || void 0,
|
|
10757
10753
|
success: !1
|
|
@@ -10808,7 +10804,7 @@ var zt = (
|
|
|
10808
10804
|
return I(this, function(d) {
|
|
10809
10805
|
switch (d.label) {
|
|
10810
10806
|
case 0:
|
|
10811
|
-
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o =
|
|
10807
|
+
return this.logger.trace("NativeInteractionClient - acquireToken called."), r = this.performanceClient.startMeasurement(b.NativeInteractionClientAcquireToken, t.correlationId), o = Ke.nowSeconds(), [4, this.initializeNativeRequest(t)];
|
|
10812
10808
|
case 1:
|
|
10813
10809
|
i = d.sent(), d.label = 2;
|
|
10814
10810
|
case 2:
|
|
@@ -10894,7 +10890,7 @@ var zt = (
|
|
|
10894
10890
|
case 3:
|
|
10895
10891
|
return i = p.sent(), this.validateNativeResponse(i), [3, 5];
|
|
10896
10892
|
case 4:
|
|
10897
|
-
if (a = p.sent(), a instanceof
|
|
10893
|
+
if (a = p.sent(), a instanceof tt && a.isFatal())
|
|
10898
10894
|
throw a;
|
|
10899
10895
|
return [3, 5];
|
|
10900
10896
|
case 5:
|
|
@@ -10924,7 +10920,7 @@ var zt = (
|
|
|
10924
10920
|
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
10921
|
method: at.GetToken,
|
|
10926
10922
|
request: o
|
|
10927
|
-
}, a =
|
|
10923
|
+
}, a = Ke.nowSeconds(), d.label = 1;
|
|
10928
10924
|
case 1:
|
|
10929
10925
|
return d.trys.push([1, 3, , 4]), this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."), [4, this.nativeMessageHandler.sendMessage(i)];
|
|
10930
10926
|
case 2:
|
|
@@ -10948,7 +10944,7 @@ var zt = (
|
|
|
10948
10944
|
switch (f.label) {
|
|
10949
10945
|
case 0:
|
|
10950
10946
|
if (this.logger.trace("NativeInteractionClient - handleNativeResponse called."), t.account.id !== r.accountId)
|
|
10951
|
-
throw
|
|
10947
|
+
throw tt.createUserSwitchError();
|
|
10952
10948
|
return [4, this.getDiscoveredAuthority(r.authority)];
|
|
10953
10949
|
case 1:
|
|
10954
10950
|
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 +10954,7 @@ var zt = (
|
|
|
10958
10954
|
});
|
|
10959
10955
|
});
|
|
10960
10956
|
}, e.prototype.createIdTokenObj = function(t) {
|
|
10961
|
-
return new
|
|
10957
|
+
return new rt(t.id_token || g.EMPTY_STRING, this.browserCrypto);
|
|
10962
10958
|
}, e.prototype.createHomeAccountIdentifier = function(t, r) {
|
|
10963
10959
|
var o = we.generateHomeAccountId(t.client_info || g.EMPTY_STRING, Se.Default, this.logger, this.browserCrypto, r);
|
|
10964
10960
|
return o;
|
|
@@ -11048,7 +11044,7 @@ var zt = (
|
|
|
11048
11044
|
}, e.prototype.validateNativeResponse = function(t) {
|
|
11049
11045
|
if (t.hasOwnProperty("access_token") && t.hasOwnProperty("id_token") && t.hasOwnProperty("client_info") && t.hasOwnProperty("account") && t.hasOwnProperty("scope") && t.hasOwnProperty("expires_in"))
|
|
11050
11046
|
return t;
|
|
11051
|
-
throw
|
|
11047
|
+
throw tt.createUnexpectedError("Response missing expected properties.");
|
|
11052
11048
|
}, e.prototype.getMATSFromResponse = function(t) {
|
|
11053
11049
|
if (t.properties.MATS)
|
|
11054
11050
|
try {
|
|
@@ -11202,9 +11198,9 @@ var yt = (
|
|
|
11202
11198
|
return;
|
|
11203
11199
|
var a = t.body.response;
|
|
11204
11200
|
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(
|
|
11201
|
+
r.reject(tt.createError(a.code, a.description, a.ext));
|
|
11206
11202
|
else if (a.result)
|
|
11207
|
-
a.result.code && a.result.description ? r.reject(
|
|
11203
|
+
a.result.code && a.result.description ? r.reject(tt.createError(a.result.code, a.result.description, a.result.ext)) : r.resolve(a.result);
|
|
11208
11204
|
else
|
|
11209
11205
|
throw D.createUnexpectedError("Event does not contain result.");
|
|
11210
11206
|
this.resolvers.delete(t.responseId);
|
|
@@ -11452,7 +11448,7 @@ var Wi = (
|
|
|
11452
11448
|
}
|
|
11453
11449
|
}, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
|
|
11454
11450
|
return T(this, void 0, void 0, function() {
|
|
11455
|
-
var a, s, u, p, d, f, _, k, E, M, Q, X, G, $, Ae, xe,
|
|
11451
|
+
var a, s, u, p, d, f, _, k, E, M, Q, X, G, $, Ae, xe, Ve, Ct = this;
|
|
11456
11452
|
return I(this, function(ce) {
|
|
11457
11453
|
switch (ce.label) {
|
|
11458
11454
|
case 0:
|
|
@@ -11490,7 +11486,7 @@ var Wi = (
|
|
|
11490
11486
|
case 7:
|
|
11491
11487
|
return xe = ce.sent(), [2, xe];
|
|
11492
11488
|
case 8:
|
|
11493
|
-
throw
|
|
11489
|
+
throw Ve = ce.sent(), i && i.close(), Ve instanceof D && Ve.setCorrelationId(this.correlationId), a.cacheFailedRequest(Ve), this.browserStorage.cleanRequestByState(s.state), Ve;
|
|
11494
11490
|
case 9:
|
|
11495
11491
|
return [
|
|
11496
11492
|
2
|
|
@@ -11575,16 +11571,16 @@ var Wi = (
|
|
|
11575
11571
|
}
|
|
11576
11572
|
}, e.prototype.openSizedPopup = function(t, r, o) {
|
|
11577
11573
|
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, M = (s = o.popupPosition) === null || s === void 0 ? void 0 : s.top, Q = (u = o.popupPosition) === null || u === void 0 ? void 0 : u.left;
|
|
11578
|
-
return (!k || k < 0 || k > f) && (this.logger.verbose("Default popup window width used. Window width not configured or invalid."), k =
|
|
11574
|
+
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), (!M || M < 0 || M > _) && (this.logger.verbose("Default popup window top position used. Window top not configured or invalid."), M = 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=" + M + ", left=" + Q + ", scrollbars=yes");
|
|
11579
11575
|
}, e.prototype.unloadWindow = function(t) {
|
|
11580
11576
|
this.browserStorage.cleanRequestByInteractionType(x.Popup), this.currentWindow && this.currentWindow.close(), t.preventDefault();
|
|
11581
11577
|
}, e.prototype.cleanPopup = function(t) {
|
|
11582
11578
|
t && t.close(), window.removeEventListener("beforeunload", this.unloadWindow), this.browserStorage.setInteractionInProgress(!1);
|
|
11583
11579
|
}, e.prototype.generatePopupName = function(t, r) {
|
|
11584
|
-
return
|
|
11580
|
+
return Qe.POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + t.join("-") + "." + r + "." + this.correlationId;
|
|
11585
11581
|
}, e.prototype.generateLogoutPopupName = function(t) {
|
|
11586
11582
|
var r = t.account && t.account.homeAccountId;
|
|
11587
|
-
return
|
|
11583
|
+
return Qe.POPUP_NAME_PREFIX + "." + this.config.auth.clientId + "." + r + "." + this.correlationId;
|
|
11588
11584
|
}, e;
|
|
11589
11585
|
}(jt)
|
|
11590
11586
|
);
|
|
@@ -11627,18 +11623,18 @@ function ea(n, e) {
|
|
|
11627
11623
|
},
|
|
11628
11624
|
skipAuthorityMetadataCache: !1
|
|
11629
11625
|
}, s = {
|
|
11630
|
-
cacheLocation:
|
|
11631
|
-
temporaryCacheLocation:
|
|
11626
|
+
cacheLocation: pe.SessionStorage,
|
|
11627
|
+
temporaryCacheLocation: pe.SessionStorage,
|
|
11632
11628
|
storeAuthStateInCookie: !1,
|
|
11633
11629
|
secureCookies: !1,
|
|
11634
11630
|
// 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 ===
|
|
11631
|
+
cacheMigrationEnabled: !!(r && r.cacheLocation === pe.LocalStorage),
|
|
11636
11632
|
claimsBasedCachingEnabled: !0
|
|
11637
11633
|
}, u = {
|
|
11638
11634
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
11639
11635
|
loggerCallback: function() {
|
|
11640
11636
|
},
|
|
11641
|
-
logLevel:
|
|
11637
|
+
logLevel: ve.Info,
|
|
11642
11638
|
piiLoggingEnabled: !1
|
|
11643
11639
|
}, p = B(B({}, no), {
|
|
11644
11640
|
loggerOptions: u,
|
|
@@ -11654,7 +11650,7 @@ function ea(n, e) {
|
|
|
11654
11650
|
allowRedirectInIframe: !1,
|
|
11655
11651
|
allowNativeBroker: !1,
|
|
11656
11652
|
nativeBrokerHandshakeTimeout: (o == null ? void 0 : o.nativeBrokerHandshakeTimeout) || Zi,
|
|
11657
|
-
pollIntervalMilliseconds:
|
|
11653
|
+
pollIntervalMilliseconds: Qe.DEFAULT_POLL_INTERVAL_MS,
|
|
11658
11654
|
cryptoOptions: {
|
|
11659
11655
|
useMsrCrypto: !1,
|
|
11660
11656
|
entropy: void 0
|
|
@@ -12522,7 +12518,7 @@ var Br = (
|
|
|
12522
12518
|
this.inMemoryCache = new Wn(), this.indexedDBCache = new ha(), this.logger = e, this.storeName = t;
|
|
12523
12519
|
}
|
|
12524
12520
|
return n.prototype.handleDatabaseAccessError = function(e) {
|
|
12525
|
-
if (e instanceof N && e.errorCode ===
|
|
12521
|
+
if (e instanceof N && e.errorCode === A.databaseUnavailable.code)
|
|
12526
12522
|
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
12523
|
else
|
|
12528
12524
|
throw e;
|
|
@@ -12922,7 +12918,7 @@ var _a = (
|
|
|
12922
12918
|
return n.prototype.loadExternalTokens = function(e, t, r) {
|
|
12923
12919
|
if (this.logger.info("TokenCache - loadExternalTokens called"), !t.id_token)
|
|
12924
12920
|
throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");
|
|
12925
|
-
var o = new
|
|
12921
|
+
var o = new rt(t.id_token, this.cryptoObj), i, a;
|
|
12926
12922
|
if (e.account) {
|
|
12927
12923
|
var s = this.loadAccount(o, e.account.environment, void 0, void 0, e.account.homeAccountId);
|
|
12928
12924
|
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));
|
|
@@ -13070,8 +13066,8 @@ var ka = (
|
|
|
13070
13066
|
function n(e) {
|
|
13071
13067
|
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
13068
|
var t = {
|
|
13073
|
-
cacheLocation:
|
|
13074
|
-
temporaryCacheLocation:
|
|
13069
|
+
cacheLocation: pe.MemoryStorage,
|
|
13070
|
+
temporaryCacheLocation: pe.MemoryStorage,
|
|
13075
13071
|
storeAuthStateInCookie: !1,
|
|
13076
13072
|
secureCookies: !1,
|
|
13077
13073
|
cacheMigrationEnabled: !1,
|
|
@@ -13131,11 +13127,11 @@ var ka = (
|
|
|
13131
13127
|
var t, r, o, i, a, s = this;
|
|
13132
13128
|
return I(this, function(u) {
|
|
13133
13129
|
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
|
|
13130
|
+
if (p instanceof tt && p.isFatal()) {
|
|
13135
13131
|
s.nativeExtensionProvider = void 0;
|
|
13136
13132
|
var d = s.createRedirectClient(e.correlationId);
|
|
13137
13133
|
return d.acquireToken(e);
|
|
13138
|
-
} else if (p instanceof
|
|
13134
|
+
} else if (p instanceof Ye) {
|
|
13139
13135
|
s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13140
13136
|
var d = s.createRedirectClient(e.correlationId);
|
|
13141
13137
|
return d.acquireToken(e);
|
|
@@ -13164,11 +13160,11 @@ var ka = (
|
|
|
13164
13160
|
requestId: u.requestId
|
|
13165
13161
|
}), u;
|
|
13166
13162
|
}).catch(function(u) {
|
|
13167
|
-
if (u instanceof
|
|
13163
|
+
if (u instanceof tt && u.isFatal()) {
|
|
13168
13164
|
t.nativeExtensionProvider = void 0;
|
|
13169
13165
|
var p = t.createPopupClient(e.correlationId);
|
|
13170
13166
|
return p.acquireToken(e);
|
|
13171
|
-
} else if (u instanceof
|
|
13167
|
+
} else if (u instanceof Ye) {
|
|
13172
13168
|
t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");
|
|
13173
13169
|
var p = t.createPopupClient(e.correlationId);
|
|
13174
13170
|
return p.acquireToken(e);
|
|
@@ -13212,7 +13208,7 @@ var ka = (
|
|
|
13212
13208
|
}), this.preflightBrowserEnvironmentCheck(x.Silent), this.ssoSilentMeasurement = this.performanceClient.startMeasurement(b.SsoSilent, r), (t = this.ssoSilentMeasurement) === null || t === void 0 || t.increment({
|
|
13213
13209
|
visibilityChangeCount: 0
|
|
13214
13210
|
}), 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
|
|
13211
|
+
if (p instanceof tt && p.isFatal()) {
|
|
13216
13212
|
s.nativeExtensionProvider = void 0;
|
|
13217
13213
|
var d = s.createSilentIframeClient(o.correlationId);
|
|
13218
13214
|
return d.acquireToken(o);
|
|
@@ -13268,7 +13264,7 @@ var ka = (
|
|
|
13268
13264
|
if (e.nativeAccountId) {
|
|
13269
13265
|
if (this.canUseNative(e, e.nativeAccountId))
|
|
13270
13266
|
return [2, this.acquireTokenNative(e, oe.acquireTokenByCode, e.nativeAccountId).catch(function(u) {
|
|
13271
|
-
throw u instanceof
|
|
13267
|
+
throw u instanceof tt && u.isFatal() && (a.nativeExtensionProvider = void 0), u;
|
|
13272
13268
|
})];
|
|
13273
13269
|
throw N.createUnableToAcquireTokenFromNativePlatformError();
|
|
13274
13270
|
} else
|
|
@@ -13406,7 +13402,7 @@ var ka = (
|
|
|
13406
13402
|
}, n.prototype.getActiveAccount = function() {
|
|
13407
13403
|
return this.browserStorage.getActiveAccount();
|
|
13408
13404
|
}, 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 ===
|
|
13405
|
+
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
13406
|
throw En.createInMemoryRedirectUnavailableError();
|
|
13411
13407
|
(e === x.Redirect || e === x.Popup) && this.preflightInteractiveRequest(t);
|
|
13412
13408
|
}, n.prototype.preflightInteractiveRequest = function(e) {
|
|
@@ -13553,7 +13549,7 @@ var wa = (
|
|
|
13553
13549
|
return T(d, void 0, void 0, function() {
|
|
13554
13550
|
var k;
|
|
13555
13551
|
return I(this, function(E) {
|
|
13556
|
-
if (_ instanceof
|
|
13552
|
+
if (_ instanceof tt && _.isFatal())
|
|
13557
13553
|
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
13554
|
throw _;
|
|
13559
13555
|
});
|
|
@@ -13569,7 +13565,7 @@ var wa = (
|
|
|
13569
13565
|
if (p.cacheLookupPolicy === Le.AccessToken)
|
|
13570
13566
|
throw _;
|
|
13571
13567
|
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, M = k instanceof
|
|
13568
|
+
var E = k instanceof bt, M = k instanceof Ye, Q = k.errorCode === Mt.noTokensFoundError.code, X = k.errorCode === Qe.INVALID_GRANT_ERROR;
|
|
13573
13569
|
if ((!E || !X || M || p.cacheLookupPolicy === Le.AccessTokenAndRefreshToken || p.cacheLookupPolicy === Le.RefreshToken) && p.cacheLookupPolicy !== Le.Skip && !Q)
|
|
13574
13570
|
throw k;
|
|
13575
13571
|
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);
|
|
@@ -13856,11 +13852,11 @@ var fo = {}, Pn = {};
|
|
|
13856
13852
|
Pn.byteLength = Sa;
|
|
13857
13853
|
Pn.toByteArray = Ra;
|
|
13858
13854
|
Pn.fromByteArray = Ma;
|
|
13859
|
-
var
|
|
13855
|
+
var et = [], je = [], Ta = typeof Uint8Array < "u" ? Uint8Array : Array, Dn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
13860
13856
|
for (var St = 0, Ia = Dn.length; St < Ia; ++St)
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13857
|
+
et[St] = Dn[St], je[Dn.charCodeAt(St)] = St;
|
|
13858
|
+
je[45] = 62;
|
|
13859
|
+
je[95] = 63;
|
|
13864
13860
|
function go(n) {
|
|
13865
13861
|
var e = n.length;
|
|
13866
13862
|
if (e % 4 > 0)
|
|
@@ -13880,11 +13876,11 @@ function Aa(n, e, t) {
|
|
|
13880
13876
|
function Ra(n) {
|
|
13881
13877
|
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
13878
|
for (u = 0; u < s; u += 4)
|
|
13883
|
-
e =
|
|
13884
|
-
return o === 2 && (e =
|
|
13879
|
+
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;
|
|
13880
|
+
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
13881
|
}
|
|
13886
13882
|
function Pa(n) {
|
|
13887
|
-
return
|
|
13883
|
+
return et[n >> 18 & 63] + et[n >> 12 & 63] + et[n >> 6 & 63] + et[n & 63];
|
|
13888
13884
|
}
|
|
13889
13885
|
function Na(n, e, t) {
|
|
13890
13886
|
for (var r, o = [], i = e; i < t; i += 3)
|
|
@@ -13895,9 +13891,9 @@ function Ma(n) {
|
|
|
13895
13891
|
for (var e, t = n.length, r = t % 3, o = [], i = 16383, a = 0, s = t - r; a < s; a += i)
|
|
13896
13892
|
o.push(Na(n, a, a + i > s ? s : a + i));
|
|
13897
13893
|
return r === 1 ? (e = n[t - 1], o.push(
|
|
13898
|
-
|
|
13894
|
+
et[e >> 2] + et[e << 4 & 63] + "=="
|
|
13899
13895
|
)) : r === 2 && (e = (n[t - 2] << 8) + n[t - 1], o.push(
|
|
13900
|
-
|
|
13896
|
+
et[e >> 10] + et[e >> 4 & 63] + et[e << 2 & 63] + "="
|
|
13901
13897
|
)), o.join("");
|
|
13902
13898
|
}
|
|
13903
13899
|
var ir = {};
|
|
@@ -13989,7 +13985,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
13989
13985
|
throw new TypeError(
|
|
13990
13986
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
|
|
13991
13987
|
);
|
|
13992
|
-
if (
|
|
13988
|
+
if ($e(h, a) || h && $e(h.buffer, a) || typeof s < "u" && ($e(h, s) || h && $e(h.buffer, s)))
|
|
13993
13989
|
return G(h, c, l);
|
|
13994
13990
|
if (typeof h == "number")
|
|
13995
13991
|
throw new TypeError(
|
|
@@ -14033,7 +14029,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14033
14029
|
function M(h, c) {
|
|
14034
14030
|
if ((typeof c != "string" || c === "") && (c = "utf8"), !d.isEncoding(c))
|
|
14035
14031
|
throw new TypeError("Unknown encoding: " + c);
|
|
14036
|
-
const l =
|
|
14032
|
+
const l = Ve(h, c) | 0;
|
|
14037
14033
|
let m = p(l);
|
|
14038
14034
|
const v = m.write(h, c);
|
|
14039
14035
|
return v !== l && (m = m.slice(0, v)), m;
|
|
@@ -14045,7 +14041,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14045
14041
|
return l;
|
|
14046
14042
|
}
|
|
14047
14043
|
function X(h) {
|
|
14048
|
-
if (
|
|
14044
|
+
if ($e(h, i)) {
|
|
14049
14045
|
const c = new i(h);
|
|
14050
14046
|
return G(c.buffer, c.byteOffset, c.byteLength);
|
|
14051
14047
|
}
|
|
@@ -14080,7 +14076,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14080
14076
|
d.isBuffer = function(c) {
|
|
14081
14077
|
return c != null && c._isBuffer === !0 && c !== d.prototype;
|
|
14082
14078
|
}, d.compare = function(c, l) {
|
|
14083
|
-
if (
|
|
14079
|
+
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
14080
|
throw new TypeError(
|
|
14085
14081
|
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
14086
14082
|
);
|
|
@@ -14123,7 +14119,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14123
14119
|
let w = 0;
|
|
14124
14120
|
for (m = 0; m < c.length; ++m) {
|
|
14125
14121
|
let C = c[m];
|
|
14126
|
-
if (
|
|
14122
|
+
if ($e(C, i))
|
|
14127
14123
|
w + C.length > v.length ? (d.isBuffer(C) || (C = d.from(C)), C.copy(v, w)) : i.prototype.set.call(
|
|
14128
14124
|
v,
|
|
14129
14125
|
C,
|
|
@@ -14137,10 +14133,10 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14137
14133
|
}
|
|
14138
14134
|
return v;
|
|
14139
14135
|
};
|
|
14140
|
-
function
|
|
14136
|
+
function Ve(h, c) {
|
|
14141
14137
|
if (d.isBuffer(h))
|
|
14142
14138
|
return h.length;
|
|
14143
|
-
if (a.isView(h) ||
|
|
14139
|
+
if (a.isView(h) || $e(h, a))
|
|
14144
14140
|
return h.byteLength;
|
|
14145
14141
|
if (typeof h != "string")
|
|
14146
14142
|
throw new TypeError(
|
|
@@ -14174,7 +14170,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14174
14170
|
c = ("" + c).toLowerCase(), v = !0;
|
|
14175
14171
|
}
|
|
14176
14172
|
}
|
|
14177
|
-
d.byteLength =
|
|
14173
|
+
d.byteLength = Ve;
|
|
14178
14174
|
function Ct(h, c, l) {
|
|
14179
14175
|
let m = !1;
|
|
14180
14176
|
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))
|
|
@@ -14242,7 +14238,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14242
14238
|
const l = n.INSPECT_MAX_BYTES;
|
|
14243
14239
|
return c = this.toString("hex", 0, l).replace(/(.{2})/g, "$1 ").trim(), this.length > l && (c += " ... "), "<Buffer " + c + ">";
|
|
14244
14240
|
}, r && (d.prototype[r] = d.prototype.inspect), d.prototype.compare = function(c, l, m, v, w) {
|
|
14245
|
-
if (
|
|
14241
|
+
if ($e(c, i) && (c = d.from(c, c.offset, c.byteLength)), !d.isBuffer(c))
|
|
14246
14242
|
throw new TypeError(
|
|
14247
14243
|
'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof c
|
|
14248
14244
|
);
|
|
@@ -14258,9 +14254,9 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14258
14254
|
return 0;
|
|
14259
14255
|
let C = w - v, Y = m - l;
|
|
14260
14256
|
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[
|
|
14257
|
+
for (let re = 0; re < le; ++re)
|
|
14258
|
+
if (ae[re] !== ue[re]) {
|
|
14259
|
+
C = ae[re], Y = ue[re];
|
|
14264
14260
|
break;
|
|
14265
14261
|
}
|
|
14266
14262
|
return C < Y ? -1 : Y < C ? 1 : 0;
|
|
@@ -14290,8 +14286,8 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14290
14286
|
return -1;
|
|
14291
14287
|
w = 2, C /= 2, Y /= 2, l /= 2;
|
|
14292
14288
|
}
|
|
14293
|
-
function le(ue,
|
|
14294
|
-
return w === 1 ? ue[
|
|
14289
|
+
function le(ue, re) {
|
|
14290
|
+
return w === 1 ? ue[re] : ue.readUInt16BE(re * w);
|
|
14295
14291
|
}
|
|
14296
14292
|
let ae;
|
|
14297
14293
|
if (v) {
|
|
@@ -14305,8 +14301,8 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14305
14301
|
} else
|
|
14306
14302
|
for (l + Y > C && (l = C - Y), ae = l; ae >= 0; ae--) {
|
|
14307
14303
|
let ue = !0;
|
|
14308
|
-
for (let
|
|
14309
|
-
if (le(h, ae +
|
|
14304
|
+
for (let re = 0; re < Y; re++)
|
|
14305
|
+
if (le(h, ae + re) !== le(c, re)) {
|
|
14310
14306
|
ue = !1;
|
|
14311
14307
|
break;
|
|
14312
14308
|
}
|
|
@@ -14405,19 +14401,19 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14405
14401
|
const w = h[v];
|
|
14406
14402
|
let C = null, Y = w > 239 ? 4 : w > 223 ? 3 : w > 191 ? 2 : 1;
|
|
14407
14403
|
if (v + Y <= l) {
|
|
14408
|
-
let le, ae, ue,
|
|
14404
|
+
let le, ae, ue, re;
|
|
14409
14405
|
switch (Y) {
|
|
14410
14406
|
case 1:
|
|
14411
14407
|
w < 128 && (C = w);
|
|
14412
14408
|
break;
|
|
14413
14409
|
case 2:
|
|
14414
|
-
le = h[v + 1], (le & 192) === 128 && (
|
|
14410
|
+
le = h[v + 1], (le & 192) === 128 && (re = (w & 31) << 6 | le & 63, re > 127 && (C = re));
|
|
14415
14411
|
break;
|
|
14416
14412
|
case 3:
|
|
14417
|
-
le = h[v + 1], ae = h[v + 2], (le & 192) === 128 && (ae & 192) === 128 && (
|
|
14413
|
+
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
14414
|
break;
|
|
14419
14415
|
case 4:
|
|
14420
|
-
le = h[v + 1], ae = h[v + 2], ue = h[v + 3], (le & 192) === 128 && (ae & 192) === 128 && (ue & 192) === 128 && (
|
|
14416
|
+
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
14417
|
}
|
|
14422
14418
|
}
|
|
14423
14419
|
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;
|
|
@@ -14472,34 +14468,34 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14472
14468
|
const v = this.subarray(c, l);
|
|
14473
14469
|
return Object.setPrototypeOf(v, d.prototype), v;
|
|
14474
14470
|
};
|
|
14475
|
-
function
|
|
14471
|
+
function ge(h, c, l) {
|
|
14476
14472
|
if (h % 1 !== 0 || h < 0)
|
|
14477
14473
|
throw new RangeError("offset is not uint");
|
|
14478
14474
|
if (h + c > l)
|
|
14479
14475
|
throw new RangeError("Trying to access beyond buffer length");
|
|
14480
14476
|
}
|
|
14481
14477
|
d.prototype.readUintLE = d.prototype.readUIntLE = function(c, l, m) {
|
|
14482
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14478
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14483
14479
|
let v = this[c], w = 1, C = 0;
|
|
14484
14480
|
for (; ++C < l && (w *= 256); )
|
|
14485
14481
|
v += this[c + C] * w;
|
|
14486
14482
|
return v;
|
|
14487
14483
|
}, d.prototype.readUintBE = d.prototype.readUIntBE = function(c, l, m) {
|
|
14488
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14484
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14489
14485
|
let v = this[c + --l], w = 1;
|
|
14490
14486
|
for (; l > 0 && (w *= 256); )
|
|
14491
14487
|
v += this[c + --l] * w;
|
|
14492
14488
|
return v;
|
|
14493
14489
|
}, d.prototype.readUint8 = d.prototype.readUInt8 = function(c, l) {
|
|
14494
|
-
return c = c >>> 0, l ||
|
|
14490
|
+
return c = c >>> 0, l || ge(c, 1, this.length), this[c];
|
|
14495
14491
|
}, d.prototype.readUint16LE = d.prototype.readUInt16LE = function(c, l) {
|
|
14496
|
-
return c = c >>> 0, l ||
|
|
14492
|
+
return c = c >>> 0, l || ge(c, 2, this.length), this[c] | this[c + 1] << 8;
|
|
14497
14493
|
}, d.prototype.readUint16BE = d.prototype.readUInt16BE = function(c, l) {
|
|
14498
|
-
return c = c >>> 0, l ||
|
|
14494
|
+
return c = c >>> 0, l || ge(c, 2, this.length), this[c] << 8 | this[c + 1];
|
|
14499
14495
|
}, d.prototype.readUint32LE = d.prototype.readUInt32LE = function(c, l) {
|
|
14500
|
-
return c = c >>> 0, l ||
|
|
14496
|
+
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
14497
|
}, d.prototype.readUint32BE = d.prototype.readUInt32BE = function(c, l) {
|
|
14502
|
-
return c = c >>> 0, l ||
|
|
14498
|
+
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
14499
|
}, d.prototype.readBigUInt64LE = ut(function(c) {
|
|
14504
14500
|
c = c >>> 0, Tt(c, "offset");
|
|
14505
14501
|
const l = this[c], m = this[c + 7];
|
|
@@ -14513,31 +14509,31 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14513
14509
|
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
14510
|
return (BigInt(v) << BigInt(32)) + BigInt(w);
|
|
14515
14511
|
}), d.prototype.readIntLE = function(c, l, m) {
|
|
14516
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14512
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14517
14513
|
let v = this[c], w = 1, C = 0;
|
|
14518
14514
|
for (; ++C < l && (w *= 256); )
|
|
14519
14515
|
v += this[c + C] * w;
|
|
14520
14516
|
return w *= 128, v >= w && (v -= Math.pow(2, 8 * l)), v;
|
|
14521
14517
|
}, d.prototype.readIntBE = function(c, l, m) {
|
|
14522
|
-
c = c >>> 0, l = l >>> 0, m ||
|
|
14518
|
+
c = c >>> 0, l = l >>> 0, m || ge(c, l, this.length);
|
|
14523
14519
|
let v = l, w = 1, C = this[c + --v];
|
|
14524
14520
|
for (; v > 0 && (w *= 256); )
|
|
14525
14521
|
C += this[c + --v] * w;
|
|
14526
14522
|
return w *= 128, C >= w && (C -= Math.pow(2, 8 * l)), C;
|
|
14527
14523
|
}, d.prototype.readInt8 = function(c, l) {
|
|
14528
|
-
return c = c >>> 0, l ||
|
|
14524
|
+
return c = c >>> 0, l || ge(c, 1, this.length), this[c] & 128 ? (255 - this[c] + 1) * -1 : this[c];
|
|
14529
14525
|
}, d.prototype.readInt16LE = function(c, l) {
|
|
14530
|
-
c = c >>> 0, l ||
|
|
14526
|
+
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14531
14527
|
const m = this[c] | this[c + 1] << 8;
|
|
14532
14528
|
return m & 32768 ? m | 4294901760 : m;
|
|
14533
14529
|
}, d.prototype.readInt16BE = function(c, l) {
|
|
14534
|
-
c = c >>> 0, l ||
|
|
14530
|
+
c = c >>> 0, l || ge(c, 2, this.length);
|
|
14535
14531
|
const m = this[c + 1] | this[c] << 8;
|
|
14536
14532
|
return m & 32768 ? m | 4294901760 : m;
|
|
14537
14533
|
}, d.prototype.readInt32LE = function(c, l) {
|
|
14538
|
-
return c = c >>> 0, l ||
|
|
14534
|
+
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
14535
|
}, d.prototype.readInt32BE = function(c, l) {
|
|
14540
|
-
return c = c >>> 0, l ||
|
|
14536
|
+
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
14537
|
}, d.prototype.readBigInt64LE = ut(function(c) {
|
|
14542
14538
|
c = c >>> 0, Tt(c, "offset");
|
|
14543
14539
|
const l = this[c], m = this[c + 7];
|
|
@@ -14552,13 +14548,13 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14552
14548
|
this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + this[++c];
|
|
14553
14549
|
return (BigInt(v) << BigInt(32)) + BigInt(this[++c] * 2 ** 24 + this[++c] * 2 ** 16 + this[++c] * 2 ** 8 + m);
|
|
14554
14550
|
}), d.prototype.readFloatLE = function(c, l) {
|
|
14555
|
-
return c = c >>> 0, l ||
|
|
14551
|
+
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !0, 23, 4);
|
|
14556
14552
|
}, d.prototype.readFloatBE = function(c, l) {
|
|
14557
|
-
return c = c >>> 0, l ||
|
|
14553
|
+
return c = c >>> 0, l || ge(c, 4, this.length), t.read(this, c, !1, 23, 4);
|
|
14558
14554
|
}, d.prototype.readDoubleLE = function(c, l) {
|
|
14559
|
-
return c = c >>> 0, l ||
|
|
14555
|
+
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !0, 52, 8);
|
|
14560
14556
|
}, d.prototype.readDoubleBE = function(c, l) {
|
|
14561
|
-
return c = c >>> 0, l ||
|
|
14557
|
+
return c = c >>> 0, l || ge(c, 8, this.length), t.read(this, c, !1, 52, 8);
|
|
14562
14558
|
};
|
|
14563
14559
|
function Re(h, c, l, m, v, w) {
|
|
14564
14560
|
if (!d.isBuffer(h))
|
|
@@ -14881,7 +14877,7 @@ ir.write = function(n, e, t, r, o, i) {
|
|
|
14881
14877
|
c[v + l] = h[v];
|
|
14882
14878
|
return v;
|
|
14883
14879
|
}
|
|
14884
|
-
function
|
|
14880
|
+
function $e(h, c) {
|
|
14885
14881
|
return h instanceof c || h != null && h.constructor != null && h.constructor.name != null && h.constructor.name === c.name;
|
|
14886
14882
|
}
|
|
14887
14883
|
function zn(h) {
|
|
@@ -15188,24 +15184,24 @@ const La = fo.Buffer, Nn = {
|
|
|
15188
15184
|
}, 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
15185
|
function Ps(n, e, t, r, o, i) {
|
|
15190
15186
|
const a = Dt("router-link");
|
|
15191
|
-
return
|
|
15187
|
+
return S(), P("form", {
|
|
15192
15188
|
class: "page-login content-boxed content-boxed-padding",
|
|
15193
15189
|
onSubmit: e[13] || (e[13] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15194
15190
|
autocomplete: "on",
|
|
15195
15191
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15196
15192
|
}, [
|
|
15197
|
-
t.isModal ? (
|
|
15193
|
+
t.isModal ? (S(), P("a", {
|
|
15198
15194
|
key: 0,
|
|
15199
15195
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15200
15196
|
class: "color-black pull-right pointer",
|
|
15201
15197
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15202
|
-
}, xa)) :
|
|
15198
|
+
}, xa)) : ne("", !0),
|
|
15203
15199
|
y("h1", Ba, U(this.ssoLang[this.appLanguage].login), 1),
|
|
15204
15200
|
Da,
|
|
15205
|
-
i.displayFormLogin ? (
|
|
15201
|
+
i.displayFormLogin ? (S(), P("span", Ha, [
|
|
15206
15202
|
y("div", qa, [
|
|
15207
15203
|
Fa,
|
|
15208
|
-
|
|
15204
|
+
me(y("input", {
|
|
15209
15205
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.emailOrUsername = s),
|
|
15210
15206
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
15211
15207
|
}, ["prevent"]), ["space"])),
|
|
@@ -15223,7 +15219,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15223
15219
|
]),
|
|
15224
15220
|
y("div", Ga, [
|
|
15225
15221
|
Va,
|
|
15226
|
-
|
|
15222
|
+
me(y("input", {
|
|
15227
15223
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.password = s),
|
|
15228
15224
|
type: o.revealPassword ? "text" : "password",
|
|
15229
15225
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15237,68 +15233,68 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15237
15233
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword),
|
|
15238
15234
|
class: "pointer"
|
|
15239
15235
|
}, [
|
|
15240
|
-
|
|
15236
|
+
me(y("img", Ya, null, 512), [
|
|
15241
15237
|
[mt, !o.revealPassword]
|
|
15242
15238
|
]),
|
|
15243
|
-
|
|
15239
|
+
me(y("img", Wa, null, 512), [
|
|
15244
15240
|
[mt, o.revealPassword]
|
|
15245
15241
|
])
|
|
15246
15242
|
])
|
|
15247
15243
|
]),
|
|
15248
15244
|
y("button", $a, [
|
|
15249
|
-
o.submitted ? (
|
|
15245
|
+
o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, U(n.ssoLang[n.appLanguage].login), 1))
|
|
15250
15246
|
])
|
|
15251
|
-
])) :
|
|
15247
|
+
])) : ne("", !0),
|
|
15252
15248
|
Za,
|
|
15253
|
-
n.displayAppleLogin ? (
|
|
15249
|
+
n.displayAppleLogin ? (S(), P("a", {
|
|
15254
15250
|
key: 2,
|
|
15255
15251
|
onClick: e[5] || (e[5] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
15256
15252
|
class: "button-center button button-90 google-button pointer"
|
|
15257
15253
|
}, [
|
|
15258
15254
|
es,
|
|
15259
|
-
n.appleLoad ? (
|
|
15260
|
-
])) :
|
|
15261
|
-
n.displayGoogleLogin ? (
|
|
15255
|
+
n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, U(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
|
|
15256
|
+
])) : ne("", !0),
|
|
15257
|
+
n.displayGoogleLogin ? (S(), P("a", {
|
|
15262
15258
|
key: 3,
|
|
15263
15259
|
onClick: e[6] || (e[6] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
15264
15260
|
class: "button-center button button-90 google-button pointer"
|
|
15265
15261
|
}, [
|
|
15266
15262
|
rs,
|
|
15267
|
-
n.googleLoad ? (
|
|
15268
|
-
])) :
|
|
15269
|
-
n.displayFacebookLogin ? (
|
|
15263
|
+
n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, U(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
|
|
15264
|
+
])) : ne("", !0),
|
|
15265
|
+
n.displayFacebookLogin ? (S(), P("a", {
|
|
15270
15266
|
key: 4,
|
|
15271
15267
|
onClick: e[7] || (e[7] = (...s) => n.facebookLogin && n.facebookLogin(...s)),
|
|
15272
15268
|
class: "button-center button button-90 google-button pointer"
|
|
15273
15269
|
}, [
|
|
15274
15270
|
as,
|
|
15275
|
-
n.facebookLoad ? (
|
|
15276
|
-
])) :
|
|
15277
|
-
n.displayMicrosoftSSOLogin ?
|
|
15271
|
+
n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, U(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
|
|
15272
|
+
])) : ne("", !0),
|
|
15273
|
+
n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
|
|
15278
15274
|
key: 5,
|
|
15279
15275
|
onClick: e[8] || (e[8] = (...s) => n.microsoftLogin && n.microsoftLogin(...s)),
|
|
15280
15276
|
class: "button-center button button-90 google-button pointer"
|
|
15281
15277
|
}, [
|
|
15282
15278
|
ls,
|
|
15283
|
-
n.microsoftLoad ? (
|
|
15279
|
+
n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
|
|
15284
15280
|
])),
|
|
15285
|
-
n.displayMicrosoftSSOLogin ?
|
|
15281
|
+
n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
|
|
15286
15282
|
key: 6,
|
|
15287
15283
|
onClick: e[9] || (e[9] = (...s) => n.ssoLogin && n.ssoLogin(...s)),
|
|
15288
15284
|
class: "button-center button button-90 google-button pointer"
|
|
15289
15285
|
}, [
|
|
15290
15286
|
ps,
|
|
15291
|
-
n.microsoftSSOLoad ? (
|
|
15287
|
+
n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
|
|
15292
15288
|
])),
|
|
15293
|
-
n.displayMicrosoftSSOLogin ? (
|
|
15289
|
+
n.displayMicrosoftSSOLogin ? (S(), P("a", {
|
|
15294
15290
|
key: 7,
|
|
15295
15291
|
onClick: e[10] || (e[10] = (s) => n.microsoftLogin("sso")),
|
|
15296
15292
|
class: "button-center button button-90 google-button pointer"
|
|
15297
15293
|
}, [
|
|
15298
15294
|
fs,
|
|
15299
|
-
n.microsoftSSOLoad ? (
|
|
15300
|
-
])) :
|
|
15301
|
-
i.displayFormLogin ?
|
|
15295
|
+
n.microsoftSSOLoad ? (S(), P("span", gs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
|
|
15296
|
+
])) : ne("", !0),
|
|
15297
|
+
i.displayFormLogin ? ne("", !0) : (S(), P("a", {
|
|
15302
15298
|
key: 8,
|
|
15303
15299
|
onClick: e[11] || (e[11] = (s) => o.emailLogin = !0),
|
|
15304
15300
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15315,7 +15311,7 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15315
15311
|
y("a", Cs, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
|
|
15316
15312
|
]),
|
|
15317
15313
|
Es,
|
|
15318
|
-
t.isModal ? (
|
|
15314
|
+
t.isModal ? (S(), P("div", {
|
|
15319
15315
|
key: 10,
|
|
15320
15316
|
class: "page-login-links",
|
|
15321
15317
|
onClick: e[12] || (e[12] = (...s) => i.createAccountModal && i.createAccountModal(...s))
|
|
@@ -15326,32 +15322,32 @@ function Ps(n, e, t, r, o, i) {
|
|
|
15326
15322
|
se(" " + U(n.ssoLang[n.appLanguage].create_new_account), 1)
|
|
15327
15323
|
]),
|
|
15328
15324
|
Rs
|
|
15329
|
-
])) : (
|
|
15330
|
-
i.displayRegisterLogin ? (
|
|
15325
|
+
])) : (S(), P("div", Ts, [
|
|
15326
|
+
i.displayRegisterLogin ? (S(), qe(a, {
|
|
15331
15327
|
key: 0,
|
|
15332
15328
|
class: "forgot float-right",
|
|
15333
15329
|
to: "/register"
|
|
15334
15330
|
}, {
|
|
15335
|
-
default:
|
|
15331
|
+
default: nt(() => [
|
|
15336
15332
|
se(U(n.ssoLang[n.appLanguage].create_account), 1)
|
|
15337
15333
|
]),
|
|
15338
15334
|
_: 1
|
|
15339
|
-
})) :
|
|
15340
|
-
i.displayResetPasswordLogin ? (
|
|
15335
|
+
})) : ne("", !0),
|
|
15336
|
+
i.displayResetPasswordLogin ? (S(), qe(a, {
|
|
15341
15337
|
key: 1,
|
|
15342
15338
|
class: "create float-left",
|
|
15343
15339
|
to: "/reset"
|
|
15344
15340
|
}, {
|
|
15345
|
-
default:
|
|
15341
|
+
default: nt(() => [
|
|
15346
15342
|
se(U(n.ssoLang[n.appLanguage].reset_password), 1)
|
|
15347
15343
|
]),
|
|
15348
15344
|
_: 1
|
|
15349
|
-
})) :
|
|
15345
|
+
})) : ne("", !0),
|
|
15350
15346
|
Is
|
|
15351
15347
|
]))
|
|
15352
15348
|
], 36);
|
|
15353
15349
|
}
|
|
15354
|
-
const _o = /* @__PURE__ */
|
|
15350
|
+
const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ns = {
|
|
15355
15351
|
name: "AuthRegister",
|
|
15356
15352
|
mixins: [Xr, Zr, eo, An, ze],
|
|
15357
15353
|
props: {
|
|
@@ -15489,29 +15485,29 @@ const _o = /* @__PURE__ */ Ye(za, [["render", Ps]]), Ns = {
|
|
|
15489
15485
|
}, 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
15486
|
function Cc(n, e, t, r, o, i) {
|
|
15491
15487
|
const a = Dt("router-link");
|
|
15492
|
-
return
|
|
15488
|
+
return S(), P("form", {
|
|
15493
15489
|
class: "page-login content-boxed content-boxed-padding",
|
|
15494
15490
|
onSubmit: e[12] || (e[12] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15495
15491
|
autocomplete: "on",
|
|
15496
15492
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15497
15493
|
}, [
|
|
15498
|
-
t.isModal ? (
|
|
15494
|
+
t.isModal ? (S(), P("a", {
|
|
15499
15495
|
key: 0,
|
|
15500
15496
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15501
15497
|
class: "color-black pull-right pointer",
|
|
15502
15498
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15503
|
-
}, Ls)) :
|
|
15499
|
+
}, Ls)) : ne("", !0),
|
|
15504
15500
|
y("h1", Os, U(n.ssoLang[this.appLanguage].register), 1),
|
|
15505
15501
|
y("p", zs, [
|
|
15506
|
-
o.usernameRegister ? (
|
|
15502
|
+
o.usernameRegister ? (S(), P("span", Us, [
|
|
15507
15503
|
se(" t.link/" + U(o.username) + " " + U(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
|
|
15508
15504
|
xs
|
|
15509
|
-
])) :
|
|
15505
|
+
])) : ne("", !0)
|
|
15510
15506
|
]),
|
|
15511
|
-
o.emailLogin ? (
|
|
15507
|
+
o.emailLogin ? (S(), P("span", Bs, [
|
|
15512
15508
|
y("div", Ds, [
|
|
15513
15509
|
Hs,
|
|
15514
|
-
|
|
15510
|
+
me(y("input", {
|
|
15515
15511
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
15516
15512
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
15517
15513
|
}, ["prevent"]), ["space"])),
|
|
@@ -15526,7 +15522,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15526
15522
|
]),
|
|
15527
15523
|
y("div", js, [
|
|
15528
15524
|
Ks,
|
|
15529
|
-
|
|
15525
|
+
me(y("input", {
|
|
15530
15526
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.username = s),
|
|
15531
15527
|
onKeydown: e[4] || (e[4] = kt(Oe(() => {
|
|
15532
15528
|
}, ["prevent"]), ["space"])),
|
|
@@ -15546,7 +15542,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15546
15542
|
]),
|
|
15547
15543
|
y("div", Qs, [
|
|
15548
15544
|
Ys,
|
|
15549
|
-
|
|
15545
|
+
me(y("input", {
|
|
15550
15546
|
"onUpdate:modelValue": e[5] || (e[5] = (s) => o.password = s),
|
|
15551
15547
|
type: o.revealPassword ? "text" : "password",
|
|
15552
15548
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15560,43 +15556,43 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15560
15556
|
onClick: e[6] || (e[6] = (s) => o.revealPassword = !o.revealPassword),
|
|
15561
15557
|
class: "pointer"
|
|
15562
15558
|
}, [
|
|
15563
|
-
|
|
15559
|
+
me(y("img", $s, null, 512), [
|
|
15564
15560
|
[mt, !o.revealPassword]
|
|
15565
15561
|
]),
|
|
15566
|
-
|
|
15562
|
+
me(y("img", Js, null, 512), [
|
|
15567
15563
|
[mt, o.revealPassword]
|
|
15568
15564
|
])
|
|
15569
15565
|
])
|
|
15570
15566
|
]),
|
|
15571
15567
|
y("button", Xs, [
|
|
15572
|
-
o.submitted ? (
|
|
15568
|
+
o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, U(o.formButtonText), 1))
|
|
15573
15569
|
])
|
|
15574
|
-
])) :
|
|
15570
|
+
])) : ne("", !0),
|
|
15575
15571
|
tc,
|
|
15576
|
-
n.displayAppleLogin ? (
|
|
15572
|
+
n.displayAppleLogin ? (S(), P("a", {
|
|
15577
15573
|
key: 2,
|
|
15578
15574
|
onClick: e[7] || (e[7] = (...s) => n.appleLogin && n.appleLogin(...s)),
|
|
15579
15575
|
class: "button-center button button-90 google-button pointer"
|
|
15580
15576
|
}, [
|
|
15581
15577
|
nc,
|
|
15582
|
-
n.appleLoad ? (
|
|
15583
|
-
])) :
|
|
15578
|
+
n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
|
|
15579
|
+
])) : ne("", !0),
|
|
15584
15580
|
y("a", {
|
|
15585
15581
|
onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
|
|
15586
15582
|
class: "button-center button button-90 google-button pointer"
|
|
15587
15583
|
}, [
|
|
15588
15584
|
ic,
|
|
15589
|
-
n.googleLoad ? (
|
|
15585
|
+
n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, U(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
|
|
15590
15586
|
]),
|
|
15591
|
-
n.displayFacebookLogin ? (
|
|
15587
|
+
n.displayFacebookLogin ? (S(), P("a", {
|
|
15592
15588
|
key: 3,
|
|
15593
15589
|
onClick: e[9] || (e[9] = (...s) => n.facebookLogin && n.facebookLogin(...s)),
|
|
15594
15590
|
class: "button-center button button-90 google-button pointer"
|
|
15595
15591
|
}, [
|
|
15596
15592
|
cc,
|
|
15597
|
-
n.facebookLoad ? (
|
|
15598
|
-
])) :
|
|
15599
|
-
o.emailLogin ?
|
|
15593
|
+
n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
|
|
15594
|
+
])) : ne("", !0),
|
|
15595
|
+
o.emailLogin ? ne("", !0) : (S(), P("a", {
|
|
15600
15596
|
key: 4,
|
|
15601
15597
|
onClick: e[10] || (e[10] = (s) => o.emailLogin = !0),
|
|
15602
15598
|
class: "button-center button button-90 google-button pointer"
|
|
@@ -15613,7 +15609,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15613
15609
|
y("a", gc, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
|
|
15614
15610
|
]),
|
|
15615
15611
|
_c,
|
|
15616
|
-
t.isModal ? (
|
|
15612
|
+
t.isModal ? (S(), P("div", {
|
|
15617
15613
|
key: 6,
|
|
15618
15614
|
class: "page-login-links",
|
|
15619
15615
|
onClick: e[11] || (e[11] = (...s) => i.loginAccountModal && i.loginAccountModal(...s))
|
|
@@ -15624,21 +15620,21 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15624
15620
|
se(" " + U(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
|
|
15625
15621
|
]),
|
|
15626
15622
|
bc
|
|
15627
|
-
])) : (
|
|
15628
|
-
|
|
15623
|
+
])) : (S(), P("div", vc, [
|
|
15624
|
+
ke(a, {
|
|
15629
15625
|
class: "create float-right",
|
|
15630
15626
|
to: "/verify"
|
|
15631
15627
|
}, {
|
|
15632
|
-
default:
|
|
15628
|
+
default: nt(() => [
|
|
15633
15629
|
se(U(n.ssoLang[this.appLanguage].verify_account), 1)
|
|
15634
15630
|
]),
|
|
15635
15631
|
_: 1
|
|
15636
15632
|
}),
|
|
15637
|
-
|
|
15633
|
+
ke(a, {
|
|
15638
15634
|
class: "forgot float-left",
|
|
15639
15635
|
to: "/login"
|
|
15640
15636
|
}, {
|
|
15641
|
-
default:
|
|
15637
|
+
default: nt(() => [
|
|
15642
15638
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
15643
15639
|
]),
|
|
15644
15640
|
_: 1
|
|
@@ -15647,7 +15643,7 @@ function Cc(n, e, t, r, o, i) {
|
|
|
15647
15643
|
]))
|
|
15648
15644
|
], 36);
|
|
15649
15645
|
}
|
|
15650
|
-
const vo = /* @__PURE__ */
|
|
15646
|
+
const vo = /* @__PURE__ */ We(Ns, [["render", Cc]]), Ec = {
|
|
15651
15647
|
name: "AuthVerify",
|
|
15652
15648
|
mixins: [ze],
|
|
15653
15649
|
props: {
|
|
@@ -15710,7 +15706,7 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15710
15706
|
deep: !0
|
|
15711
15707
|
}
|
|
15712
15708
|
}
|
|
15713
|
-
},
|
|
15709
|
+
}, Ge = (n) => (Ht("data-v-af1531aa"), n = n(), qt(), n), Tc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("i", { class: "font-17 color-black" }, [
|
|
15714
15710
|
/* @__PURE__ */ y("img", {
|
|
15715
15711
|
src: "https://cdn.tapni.co/icons/down-arrow.png",
|
|
15716
15712
|
class: "responsive-image",
|
|
@@ -15721,19 +15717,19 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15721
15717
|
], Sc = {
|
|
15722
15718
|
class: "bold no-bottom center-text",
|
|
15723
15719
|
style: { "margin-top": "63px" }
|
|
15724
|
-
}, Ac = /* @__PURE__ */
|
|
15720
|
+
}, 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
15721
|
/* @__PURE__ */ y("img", {
|
|
15726
15722
|
src: "https://cdn.tapni.co/icons/mail.png",
|
|
15727
15723
|
class: "responsive-image",
|
|
15728
15724
|
style: { width: "80%" }
|
|
15729
15725
|
})
|
|
15730
|
-
], -1)), Nc = ["placeholder"], Mc = /* @__PURE__ */
|
|
15726
|
+
], -1)), Nc = ["placeholder"], Mc = /* @__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
15727
|
/* @__PURE__ */ y("img", {
|
|
15732
15728
|
src: "https://cdn.tapni.co/icons/password2.png",
|
|
15733
15729
|
class: "responsive-image",
|
|
15734
15730
|
style: { width: "100%" }
|
|
15735
15731
|
})
|
|
15736
|
-
], -1)), zc = ["placeholder"], Uc = /* @__PURE__ */
|
|
15732
|
+
], -1)), zc = ["placeholder"], Uc = /* @__PURE__ */ Ge(() => /* @__PURE__ */ y("em", null, null, -1)), xc = {
|
|
15737
15733
|
type: "submit",
|
|
15738
15734
|
class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
|
|
15739
15735
|
}, Bc = {
|
|
@@ -15742,28 +15738,28 @@ const vo = /* @__PURE__ */ Ye(Ns, [["render", Cc]]), Ec = {
|
|
|
15742
15738
|
}, Dc = {
|
|
15743
15739
|
key: 1,
|
|
15744
15740
|
class: "button--loading button__loader"
|
|
15745
|
-
}, Hc = /* @__PURE__ */
|
|
15741
|
+
}, 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
15742
|
key: 1,
|
|
15747
15743
|
class: "page-login-links"
|
|
15748
|
-
}, Vc = /* @__PURE__ */
|
|
15744
|
+
}, 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
15745
|
function $c(n, e, t, r, o, i) {
|
|
15750
15746
|
const a = Dt("router-link");
|
|
15751
|
-
return
|
|
15747
|
+
return S(), P("form", {
|
|
15752
15748
|
class: "page-login content-boxed content-boxed-padding",
|
|
15753
15749
|
onSubmit: e[6] || (e[6] = Oe((...s) => i.submit && i.submit(...s), ["prevent"])),
|
|
15754
15750
|
style: Ot(t.isModal ? "max-width: 500px;" : "")
|
|
15755
15751
|
}, [
|
|
15756
|
-
t.isModal ? (
|
|
15752
|
+
t.isModal ? (S(), P("a", {
|
|
15757
15753
|
key: 0,
|
|
15758
15754
|
onClick: e[0] || (e[0] = (...s) => i.close && i.close(...s)),
|
|
15759
15755
|
class: "color-black pull-right pointer",
|
|
15760
15756
|
style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
|
|
15761
|
-
}, Ic)) :
|
|
15757
|
+
}, Ic)) : ne("", !0),
|
|
15762
15758
|
y("h1", Sc, U(n.ssoLang[this.appLanguage].verify_account), 1),
|
|
15763
15759
|
Ac,
|
|
15764
15760
|
y("div", Rc, [
|
|
15765
15761
|
Pc,
|
|
15766
|
-
|
|
15762
|
+
me(y("input", {
|
|
15767
15763
|
id: "emailInput",
|
|
15768
15764
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => o.email = s),
|
|
15769
15765
|
onKeydown: e[2] || (e[2] = kt(Oe(() => {
|
|
@@ -15778,7 +15774,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15778
15774
|
]),
|
|
15779
15775
|
y("div", Lc, [
|
|
15780
15776
|
Oc,
|
|
15781
|
-
|
|
15777
|
+
me(y("input", {
|
|
15782
15778
|
id: "codeInput",
|
|
15783
15779
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.code = s),
|
|
15784
15780
|
onKeydown: e[4] || (e[4] = kt(Oe(() => {
|
|
@@ -15792,7 +15788,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15792
15788
|
Uc
|
|
15793
15789
|
]),
|
|
15794
15790
|
y("button", xc, [
|
|
15795
|
-
o.submitted ? (
|
|
15791
|
+
o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, U(n.ssoLang[this.appLanguage].verify_account), 1))
|
|
15796
15792
|
]),
|
|
15797
15793
|
Hc,
|
|
15798
15794
|
y("p", qc, [
|
|
@@ -15802,7 +15798,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15802
15798
|
jc
|
|
15803
15799
|
]),
|
|
15804
15800
|
Kc,
|
|
15805
|
-
t.isModal ? (
|
|
15801
|
+
t.isModal ? (S(), P("div", {
|
|
15806
15802
|
key: 2,
|
|
15807
15803
|
class: "page-login-links",
|
|
15808
15804
|
onClick: e[5] || (e[5] = (...s) => i.registerAccountModal && i.registerAccountModal(...s))
|
|
@@ -15813,21 +15809,21 @@ function $c(n, e, t, r, o, i) {
|
|
|
15813
15809
|
se(" " + U(n.ssoLang[this.appLanguage].create_new_account), 1)
|
|
15814
15810
|
]),
|
|
15815
15811
|
Wc
|
|
15816
|
-
])) : (
|
|
15817
|
-
|
|
15812
|
+
])) : (S(), P("div", Gc, [
|
|
15813
|
+
ke(a, {
|
|
15818
15814
|
class: "create float-right",
|
|
15819
15815
|
to: "/register"
|
|
15820
15816
|
}, {
|
|
15821
|
-
default:
|
|
15817
|
+
default: nt(() => [
|
|
15822
15818
|
se(U(n.ssoLang[this.appLanguage].register), 1)
|
|
15823
15819
|
]),
|
|
15824
15820
|
_: 1
|
|
15825
15821
|
}),
|
|
15826
|
-
|
|
15822
|
+
ke(a, {
|
|
15827
15823
|
class: "forgot float-left",
|
|
15828
15824
|
to: "/login"
|
|
15829
15825
|
}, {
|
|
15830
|
-
default:
|
|
15826
|
+
default: nt(() => [
|
|
15831
15827
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
15832
15828
|
]),
|
|
15833
15829
|
_: 1
|
|
@@ -15836,7 +15832,7 @@ function $c(n, e, t, r, o, i) {
|
|
|
15836
15832
|
]))
|
|
15837
15833
|
], 36);
|
|
15838
15834
|
}
|
|
15839
|
-
const yo = /* @__PURE__ */
|
|
15835
|
+
const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-af1531aa"]]), Jc = {
|
|
15840
15836
|
name: "AuthReset",
|
|
15841
15837
|
mixins: [ze],
|
|
15842
15838
|
data() {
|
|
@@ -15947,7 +15943,7 @@ const yo = /* @__PURE__ */ Ye(Ec, [["render", $c], ["__scopeId", "data-v-af1531a
|
|
|
15947
15943
|
}, 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" }, Nl = ["innerHTML"], Ml = ["href"];
|
|
15948
15944
|
function Ll(n, e, t, r, o, i) {
|
|
15949
15945
|
const a = Dt("router-link");
|
|
15950
|
-
return o.passwordChange ? (
|
|
15946
|
+
return o.passwordChange ? (S(), P("form", {
|
|
15951
15947
|
key: 1,
|
|
15952
15948
|
class: "page-login content-boxed content-boxed-padding",
|
|
15953
15949
|
onSubmit: e[7] || (e[7] = Oe((...s) => i.changePw && i.changePw(...s), ["prevent"]))
|
|
@@ -15956,7 +15952,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15956
15952
|
y("p", fl, U(n.ssoLang[this.appLanguage].password_new), 1),
|
|
15957
15953
|
y("div", gl, [
|
|
15958
15954
|
_l,
|
|
15959
|
-
|
|
15955
|
+
me(y("input", {
|
|
15960
15956
|
"onUpdate:modelValue": e[3] || (e[3] = (s) => o.password = s),
|
|
15961
15957
|
type: o.revealPassword ? "text" : "password",
|
|
15962
15958
|
placeholder: n.ssoLang[this.appLanguage].password,
|
|
@@ -15967,17 +15963,17 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15967
15963
|
y("em", {
|
|
15968
15964
|
onClick: e[4] || (e[4] = (s) => o.revealPassword = !o.revealPassword)
|
|
15969
15965
|
}, [
|
|
15970
|
-
|
|
15966
|
+
me(y("img", yl, null, 512), [
|
|
15971
15967
|
[mt, !o.revealPassword]
|
|
15972
15968
|
]),
|
|
15973
|
-
|
|
15969
|
+
me(y("img", kl, null, 512), [
|
|
15974
15970
|
[mt, o.revealPassword]
|
|
15975
15971
|
])
|
|
15976
15972
|
])
|
|
15977
15973
|
]),
|
|
15978
15974
|
y("div", wl, [
|
|
15979
15975
|
bl,
|
|
15980
|
-
|
|
15976
|
+
me(y("input", {
|
|
15981
15977
|
"onUpdate:modelValue": e[5] || (e[5] = (s) => o.passwordRepeat = s),
|
|
15982
15978
|
type: o.revealPassword2 ? "text" : "password",
|
|
15983
15979
|
placeholder: n.ssoLang[this.appLanguage].password_repeat,
|
|
@@ -15988,16 +15984,16 @@ function Ll(n, e, t, r, o, i) {
|
|
|
15988
15984
|
y("em", {
|
|
15989
15985
|
onClick: e[6] || (e[6] = (s) => o.revealPassword2 = !o.revealPassword2)
|
|
15990
15986
|
}, [
|
|
15991
|
-
|
|
15987
|
+
me(y("img", El, null, 512), [
|
|
15992
15988
|
[mt, !o.revealPassword2]
|
|
15993
15989
|
]),
|
|
15994
|
-
|
|
15990
|
+
me(y("img", Tl, null, 512), [
|
|
15995
15991
|
[mt, o.revealPassword2]
|
|
15996
15992
|
])
|
|
15997
15993
|
])
|
|
15998
15994
|
]),
|
|
15999
15995
|
y("button", Il, [
|
|
16000
|
-
o.submitted ? (
|
|
15996
|
+
o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, U(n.ssoLang[this.appLanguage].password_change), 1))
|
|
16001
15997
|
]),
|
|
16002
15998
|
Rl,
|
|
16003
15999
|
y("p", Pl, [
|
|
@@ -16009,7 +16005,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16009
16005
|
href: "mailto:support@tapni.com?subject=" + n.ssoLang[this.appLanguage].password_reset_t
|
|
16010
16006
|
}, " support@tapni.com", 8, Ml)
|
|
16011
16007
|
])
|
|
16012
|
-
], 32)) : (
|
|
16008
|
+
], 32)) : (S(), P("form", {
|
|
16013
16009
|
key: 0,
|
|
16014
16010
|
class: "page-login content-boxed content-boxed-padding",
|
|
16015
16011
|
onSubmit: e[2] || (e[2] = Oe((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
|
|
@@ -16019,7 +16015,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16019
16015
|
Zc,
|
|
16020
16016
|
y("div", el, [
|
|
16021
16017
|
tl,
|
|
16022
|
-
|
|
16018
|
+
me(y("input", {
|
|
16023
16019
|
id: "emailInput",
|
|
16024
16020
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.email = s),
|
|
16025
16021
|
onKeydown: e[1] || (e[1] = kt(Oe(() => {
|
|
@@ -16033,7 +16029,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16033
16029
|
rl
|
|
16034
16030
|
]),
|
|
16035
16031
|
y("button", ol, [
|
|
16036
|
-
o.submitted ? (
|
|
16032
|
+
o.submitted ? (S(), P("span", al)) : (S(), P("span", il, U(n.ssoLang[this.appLanguage].reset_password), 1))
|
|
16037
16033
|
]),
|
|
16038
16034
|
sl,
|
|
16039
16035
|
y("p", cl, [
|
|
@@ -16046,20 +16042,20 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16046
16042
|
]),
|
|
16047
16043
|
dl,
|
|
16048
16044
|
y("div", pl, [
|
|
16049
|
-
|
|
16045
|
+
ke(a, {
|
|
16050
16046
|
class: "create float-right",
|
|
16051
16047
|
to: "/verify"
|
|
16052
16048
|
}, {
|
|
16053
|
-
default:
|
|
16049
|
+
default: nt(() => [
|
|
16054
16050
|
se(U(n.ssoLang[this.appLanguage].verify_account), 1)
|
|
16055
16051
|
]),
|
|
16056
16052
|
_: 1
|
|
16057
16053
|
}),
|
|
16058
|
-
|
|
16054
|
+
ke(a, {
|
|
16059
16055
|
class: "forgot float-left",
|
|
16060
16056
|
to: "/login"
|
|
16061
16057
|
}, {
|
|
16062
|
-
default:
|
|
16058
|
+
default: nt(() => [
|
|
16063
16059
|
se(U(n.ssoLang[this.appLanguage].sign_in), 1)
|
|
16064
16060
|
]),
|
|
16065
16061
|
_: 1
|
|
@@ -16068,7 +16064,7 @@ function Ll(n, e, t, r, o, i) {
|
|
|
16068
16064
|
])
|
|
16069
16065
|
], 32));
|
|
16070
16066
|
}
|
|
16071
|
-
const ko = /* @__PURE__ */
|
|
16067
|
+
const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89a"]]), Ol = {
|
|
16072
16068
|
name: "AuthCallback",
|
|
16073
16069
|
mixins: [Rn, Nn, ze],
|
|
16074
16070
|
data() {
|
|
@@ -16096,8 +16092,8 @@ const ko = /* @__PURE__ */ Ye(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89
|
|
|
16096
16092
|
style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
|
|
16097
16093
|
};
|
|
16098
16094
|
function Dl(n, e, t, r, o, i) {
|
|
16099
|
-
return
|
|
16100
|
-
(n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (
|
|
16095
|
+
return S(), P("div", zl, [
|
|
16096
|
+
(n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (S(), P("h5", Ul, [
|
|
16101
16097
|
se(U(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
|
|
16102
16098
|
xl,
|
|
16103
16099
|
se(" " + U(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
|
|
@@ -16106,10 +16102,10 @@ function Dl(n, e, t, r, o, i) {
|
|
|
16106
16102
|
style: { color: "blue", cursor: "pointer" }
|
|
16107
16103
|
}, U(n.ssoLang[this.appLanguage].click_here), 1),
|
|
16108
16104
|
se(".")
|
|
16109
|
-
])) : (
|
|
16105
|
+
])) : (S(), P("h4", Bl, U(n.ssoLang[this.appLanguage].please_wait), 1))
|
|
16110
16106
|
]);
|
|
16111
16107
|
}
|
|
16112
|
-
const wo = /* @__PURE__ */
|
|
16108
|
+
const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
|
|
16113
16109
|
name: "ModalOverlay",
|
|
16114
16110
|
mixins: [ze],
|
|
16115
16111
|
data() {
|
|
@@ -16135,12 +16131,12 @@ const wo = /* @__PURE__ */ Ye(Ol, [["render", Dl]]), Hl = {
|
|
|
16135
16131
|
}
|
|
16136
16132
|
};
|
|
16137
16133
|
function ql(n, e, t, r, o, i) {
|
|
16138
|
-
return
|
|
16134
|
+
return S(), P("div", {
|
|
16139
16135
|
class: Ie({ "pointer delete-menu": !0, "delete-menu-active": o.toggle }),
|
|
16140
16136
|
onClick: e[0] || (e[0] = (...a) => i.toggleEmit && i.toggleEmit(...a))
|
|
16141
16137
|
}, null, 2);
|
|
16142
16138
|
}
|
|
16143
|
-
const bo = /* @__PURE__ */
|
|
16139
|
+
const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2fa"]]), Fl = {
|
|
16144
16140
|
name: "SSO",
|
|
16145
16141
|
mixins: [An, Rn, Nn, ze],
|
|
16146
16142
|
data() {
|
|
@@ -16200,7 +16196,7 @@ const bo = /* @__PURE__ */ Ye(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
|
|
|
16200
16196
|
class: "button--loading button__loader"
|
|
16201
16197
|
};
|
|
16202
16198
|
function Jl(n, e, t, r, o, i) {
|
|
16203
|
-
return
|
|
16199
|
+
return S(), P("form", {
|
|
16204
16200
|
onSubmit: e[3] || (e[3] = Oe((...a) => i.submit && i.submit(...a), ["prevent"])),
|
|
16205
16201
|
class: Ie(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
16206
16202
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
@@ -16212,7 +16208,7 @@ function Jl(n, e, t, r, o, i) {
|
|
|
16212
16208
|
}, Gl),
|
|
16213
16209
|
y("h3", Vl, U(n.ssoLang[n.appLanguage].enter_company_email), 1),
|
|
16214
16210
|
y("div", null, [
|
|
16215
|
-
|
|
16211
|
+
me(y("input", {
|
|
16216
16212
|
type: "text",
|
|
16217
16213
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => o.email = a),
|
|
16218
16214
|
placeholder: n.ssoLang[this.appLanguage].email,
|
|
@@ -16230,11 +16226,11 @@ function Jl(n, e, t, r, o, i) {
|
|
|
16230
16226
|
])
|
|
16231
16227
|
]),
|
|
16232
16228
|
y("button", Yl, [
|
|
16233
|
-
o.loading ? (
|
|
16229
|
+
o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, U(n.ssoLang[n.appLanguage].continue), 1))
|
|
16234
16230
|
])
|
|
16235
16231
|
], 34);
|
|
16236
16232
|
}
|
|
16237
|
-
const Co = /* @__PURE__ */
|
|
16233
|
+
const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a09"]]), Xl = {
|
|
16238
16234
|
name: "SSOPick",
|
|
16239
16235
|
mixins: [An, Rn, Nn, ze],
|
|
16240
16236
|
data() {
|
|
@@ -16298,7 +16294,7 @@ const Co = /* @__PURE__ */ Ye(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
|
|
|
16298
16294
|
};
|
|
16299
16295
|
function du(n, e, t, r, o, i) {
|
|
16300
16296
|
var a, s, u;
|
|
16301
|
-
return
|
|
16297
|
+
return S(), P("form", {
|
|
16302
16298
|
onSubmit: e[4] || (e[4] = Oe(() => {
|
|
16303
16299
|
}, ["prevent"])),
|
|
16304
16300
|
class: Ie(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
@@ -16310,33 +16306,33 @@ function du(n, e, t, r, o, i) {
|
|
|
16310
16306
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16311
16307
|
}, eu),
|
|
16312
16308
|
y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
|
|
16313
|
-
(a = o.sso) != null && a.azure ? (
|
|
16309
|
+
(a = o.sso) != null && a.azure ? (S(), P("a", {
|
|
16314
16310
|
key: 0,
|
|
16315
16311
|
onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
|
|
16316
16312
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16317
16313
|
}, [
|
|
16318
16314
|
nu,
|
|
16319
|
-
o.azureLoad ? (
|
|
16320
|
-
])) :
|
|
16321
|
-
(s = o.sso) != null && s.okta ? (
|
|
16315
|
+
o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
|
|
16316
|
+
])) : ne("", !0),
|
|
16317
|
+
(s = o.sso) != null && s.okta ? (S(), P("a", {
|
|
16322
16318
|
key: 1,
|
|
16323
16319
|
onClick: e[2] || (e[2] = (p) => i.ssoLogin("okta")),
|
|
16324
16320
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16325
16321
|
}, [
|
|
16326
16322
|
iu,
|
|
16327
|
-
o.oktaLoad ? (
|
|
16328
|
-
])) :
|
|
16329
|
-
(u = o.sso) != null && u.saml ? (
|
|
16323
|
+
o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
|
|
16324
|
+
])) : ne("", !0),
|
|
16325
|
+
(u = o.sso) != null && u.saml ? (S(), P("a", {
|
|
16330
16326
|
key: 2,
|
|
16331
16327
|
onClick: e[3] || (e[3] = (p) => i.ssoLogin("saml")),
|
|
16332
16328
|
class: "button-center button black-button button-90 google-button pointer"
|
|
16333
16329
|
}, [
|
|
16334
16330
|
cu,
|
|
16335
|
-
o.samlLoad ? (
|
|
16336
|
-
])) :
|
|
16331
|
+
o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
|
|
16332
|
+
])) : ne("", !0)
|
|
16337
16333
|
], 34);
|
|
16338
16334
|
}
|
|
16339
|
-
const Eo = /* @__PURE__ */
|
|
16335
|
+
const Eo = /* @__PURE__ */ We(Xl, [["render", du], ["__scopeId", "data-v-4f821f65"]]), pu = {
|
|
16340
16336
|
name: "LinkIcon",
|
|
16341
16337
|
mixins: [ze],
|
|
16342
16338
|
props: {
|
|
@@ -16411,7 +16407,7 @@ const Eo = /* @__PURE__ */ Ye(Xl, [["render", du], ["__scopeId", "data-v-4f821f6
|
|
|
16411
16407
|
}, hu = ["src", "alt"], mu = ["src", "alt"], fu = ["src", "alt"], gu = ["src", "alt"];
|
|
16412
16408
|
function _u(n, e, t, r, o, i) {
|
|
16413
16409
|
var a, s;
|
|
16414
|
-
return
|
|
16410
|
+
return S(), P("a", {
|
|
16415
16411
|
class: Ie(["disable-select", t.linkStyle + (t.disabled ? " opacity-50" : "")]),
|
|
16416
16412
|
style: Ot(
|
|
16417
16413
|
(t.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
|
|
@@ -16425,28 +16421,28 @@ function _u(n, e, t, r, o, i) {
|
|
|
16425
16421
|
}),
|
|
16426
16422
|
style: Ot({ ...(a = t.customLinkStyle) == null ? void 0 : a.linkIcon })
|
|
16427
16423
|
}, [
|
|
16428
|
-
!t.data.custom_icon && t.data.type !== "customlink" ? (
|
|
16424
|
+
!t.data.custom_icon && t.data.type !== "customlink" ? (S(), P("img", {
|
|
16429
16425
|
key: 0,
|
|
16430
16426
|
src: "https://cdn.tapni.co/icons/" + t.data.type + ".png",
|
|
16431
16427
|
class: "responsive-image",
|
|
16432
16428
|
alt: t.data.text,
|
|
16433
16429
|
onLoad: e[0] || (e[0] = (u) => n.$emit("loaded")),
|
|
16434
16430
|
onError: e[1] || (e[1] = (u) => n.$emit("loaded"))
|
|
16435
|
-
}, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (
|
|
16431
|
+
}, null, 40, hu)) : !t.data.custom_icon && t.data.type === "customlink" && t.linkAdding ? (S(), P("img", {
|
|
16436
16432
|
key: 1,
|
|
16437
16433
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
16438
16434
|
class: "responsive-image",
|
|
16439
16435
|
alt: t.data.text,
|
|
16440
16436
|
onLoad: e[2] || (e[2] = (u) => n.$emit("loaded")),
|
|
16441
16437
|
onError: e[3] || (e[3] = (u) => n.$emit("loaded"))
|
|
16442
|
-
}, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (
|
|
16438
|
+
}, null, 40, mu)) : !t.data.custom_icon && t.data.type === "customlink" && !t.linkAdding ? (S(), P("img", {
|
|
16443
16439
|
key: 2,
|
|
16444
16440
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
16445
16441
|
class: "responsive-image",
|
|
16446
16442
|
alt: t.data.text,
|
|
16447
16443
|
onLoad: e[4] || (e[4] = (u) => n.$emit("loaded")),
|
|
16448
16444
|
onError: e[5] || (e[5] = (u) => n.$emit("loaded"))
|
|
16449
|
-
}, null, 40, fu)) : (
|
|
16445
|
+
}, null, 40, fu)) : (S(), P("img", {
|
|
16450
16446
|
key: 3,
|
|
16451
16447
|
src: t.data.style.custom_icon,
|
|
16452
16448
|
style: { "border-radius": "22.46%" },
|
|
@@ -16462,7 +16458,7 @@ function _u(n, e, t, r, o, i) {
|
|
|
16462
16458
|
}, U(i.linkText), 5)
|
|
16463
16459
|
], 6);
|
|
16464
16460
|
}
|
|
16465
|
-
const vu = /* @__PURE__ */
|
|
16461
|
+
const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
|
|
16466
16462
|
ANDROID_VERSION: "5.6",
|
|
16467
16463
|
IOS_VERSION: "5.6",
|
|
16468
16464
|
WEB_VERSION: "5.6.0",
|
|
@@ -16513,7 +16509,7 @@ const vu = /* @__PURE__ */ Ye(pu, [["render", _u]]), yu = {
|
|
|
16513
16509
|
], Eu = { class: "bold center-text color-black small-bottom" };
|
|
16514
16510
|
function Tu(n, e, t, r, o, i) {
|
|
16515
16511
|
const a = Dt("LinkIcon");
|
|
16516
|
-
return
|
|
16512
|
+
return S(), P("div", {
|
|
16517
16513
|
class: Ie(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": o.toggle }]),
|
|
16518
16514
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
16519
16515
|
}, [
|
|
@@ -16523,56 +16519,56 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16523
16519
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
16524
16520
|
}, Cu),
|
|
16525
16521
|
y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
|
|
16526
|
-
|
|
16522
|
+
ke(a, {
|
|
16527
16523
|
onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
|
|
16528
16524
|
"link-style": "link-grid",
|
|
16529
16525
|
data: { type: "lang/en", text: n.ssoLang[this.appLanguage].english },
|
|
16530
16526
|
editing: !1,
|
|
16531
16527
|
class: Ie({ "add-button": !0 })
|
|
16532
16528
|
}, null, 8, ["data"]),
|
|
16533
|
-
|
|
16529
|
+
ke(a, {
|
|
16534
16530
|
onClick: e[2] || (e[2] = (s) => i.updateLanguage("es")),
|
|
16535
16531
|
"link-style": "link-grid",
|
|
16536
16532
|
data: { type: "lang/es", text: n.ssoLang[this.appLanguage].spanish },
|
|
16537
16533
|
editing: !1,
|
|
16538
16534
|
class: Ie({ "add-button": !0 })
|
|
16539
16535
|
}, null, 8, ["data"]),
|
|
16540
|
-
|
|
16536
|
+
ke(a, {
|
|
16541
16537
|
onClick: e[3] || (e[3] = (s) => i.updateLanguage("de")),
|
|
16542
16538
|
"link-style": "link-grid",
|
|
16543
16539
|
data: { type: "lang/de", text: n.ssoLang[this.appLanguage].german },
|
|
16544
16540
|
editing: !1,
|
|
16545
16541
|
class: Ie({ "add-button": !0 })
|
|
16546
16542
|
}, null, 8, ["data"]),
|
|
16547
|
-
|
|
16543
|
+
ke(a, {
|
|
16548
16544
|
onClick: e[4] || (e[4] = (s) => i.updateLanguage("it")),
|
|
16549
16545
|
"link-style": "link-grid",
|
|
16550
16546
|
data: { type: "lang/it", text: n.ssoLang[this.appLanguage].italian },
|
|
16551
16547
|
editing: !1,
|
|
16552
16548
|
class: Ie({ "add-button": !0 })
|
|
16553
16549
|
}, null, 8, ["data"]),
|
|
16554
|
-
|
|
16550
|
+
ke(a, {
|
|
16555
16551
|
onClick: e[5] || (e[5] = (s) => i.updateLanguage("fr")),
|
|
16556
16552
|
"link-style": "link-grid",
|
|
16557
16553
|
data: { type: "lang/fr", text: n.ssoLang[this.appLanguage].french },
|
|
16558
16554
|
editing: !1,
|
|
16559
16555
|
class: Ie({ "add-button": !0 })
|
|
16560
16556
|
}, null, 8, ["data"]),
|
|
16561
|
-
|
|
16557
|
+
ke(a, {
|
|
16562
16558
|
onClick: e[6] || (e[6] = (s) => i.updateLanguage("kr")),
|
|
16563
16559
|
"link-style": "link-grid",
|
|
16564
16560
|
data: { type: "lang/kr", text: n.ssoLang[this.appLanguage].korean },
|
|
16565
16561
|
editing: !1,
|
|
16566
16562
|
class: Ie({ "add-button": !0 })
|
|
16567
16563
|
}, null, 8, ["data"]),
|
|
16568
|
-
|
|
16564
|
+
ke(a, {
|
|
16569
16565
|
onClick: e[7] || (e[7] = (s) => i.updateLanguage("sr")),
|
|
16570
16566
|
"link-style": "link-grid",
|
|
16571
16567
|
data: { type: "lang/sr", text: n.ssoLang[this.appLanguage].serbian },
|
|
16572
16568
|
editing: !1,
|
|
16573
16569
|
class: Ie({ "add-button": !0 })
|
|
16574
16570
|
}, null, 8, ["data"]),
|
|
16575
|
-
|
|
16571
|
+
ke(a, {
|
|
16576
16572
|
onClick: e[8] || (e[8] = (s) => i.updateLanguage("tr")),
|
|
16577
16573
|
"link-style": "link-grid",
|
|
16578
16574
|
data: { type: "lang/tr", text: n.ssoLang[this.appLanguage].turkish },
|
|
@@ -16581,7 +16577,7 @@ function Tu(n, e, t, r, o, i) {
|
|
|
16581
16577
|
}, null, 8, ["data"])
|
|
16582
16578
|
], 2);
|
|
16583
16579
|
}
|
|
16584
|
-
const To = /* @__PURE__ */
|
|
16580
|
+
const To = /* @__PURE__ */ We(ku, [["render", Tu], ["__scopeId", "data-v-34a6b7b2"]]);
|
|
16585
16581
|
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
16582
|
const Su = { id: "ssoapp" }, Au = {
|
|
16587
16583
|
key: 0,
|
|
@@ -16681,30 +16677,30 @@ const Su = { id: "ssoapp" }, Au = {
|
|
|
16681
16677
|
return document.addEventListener("DOMContentLoaded", function() {
|
|
16682
16678
|
const e = document.createElement("script");
|
|
16683
16679
|
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" ? (
|
|
16680
|
+
}), (e, t) => (S(), P("div", Su, [
|
|
16681
|
+
e.display === "redirect" ? (S(), P("a", Au, Pu)) : ne("", !0),
|
|
16682
|
+
e.display === "redirect" ? (S(), P("a", {
|
|
16687
16683
|
key: 1,
|
|
16688
16684
|
onClick: t[0] || (t[0] = (...r) => e.toggleLanguageModal && e.toggleLanguageModal(...r)),
|
|
16689
16685
|
class: "font-18 no-border pointer color-black",
|
|
16690
16686
|
style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
|
|
16691
16687
|
}, [
|
|
16692
16688
|
y("span", Nu, U(e.appLanguage.toUpperCase()), 1)
|
|
16693
|
-
])) :
|
|
16694
|
-
|
|
16695
|
-
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
e.initialized && e.renderView === "AuthWelcome" ? (
|
|
16699
|
-
key:
|
|
16689
|
+
])) : ne("", !0),
|
|
16690
|
+
ke(bo),
|
|
16691
|
+
n.isModal ? ne("", !0) : (S(), qe(To, { key: 2 })),
|
|
16692
|
+
n.isModal ? ne("", !0) : (S(), qe(Co, { key: 3 })),
|
|
16693
|
+
n.isModal ? ne("", !0) : (S(), qe(Eo, { key: 4 })),
|
|
16694
|
+
e.initialized && e.renderView === "AuthWelcome" ? (S(), qe(Jr, { key: 5 })) : e.initialized && e.renderView === "AuthLogin" ? (S(), qe(_o, {
|
|
16695
|
+
key: 6,
|
|
16700
16696
|
isModal: n.isModal
|
|
16701
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthRegister" ? (
|
|
16702
|
-
key:
|
|
16697
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthRegister" ? (S(), qe(vo, {
|
|
16698
|
+
key: 7,
|
|
16703
16699
|
isModal: n.isModal
|
|
16704
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (
|
|
16705
|
-
key:
|
|
16700
|
+
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (S(), qe(yo, {
|
|
16701
|
+
key: 8,
|
|
16706
16702
|
isModal: n.isModal
|
|
16707
|
-
}, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (
|
|
16703
|
+
}, 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 })),
|
|
16708
16704
|
y("div", Mu, [
|
|
16709
16705
|
y("p", Lu, [
|
|
16710
16706
|
y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
|