@tapni/auth 0.0.138 → 0.0.139

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.
@@ -90,7 +90,7 @@ uo.write = function(n, e, t, r, o, i) {
90
90
  */
91
91
  (function(n) {
92
92
  const e = Nr, t = uo, r = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
93
- n.Buffer = l, n.SlowBuffer = K, n.INSPECT_MAX_BYTES = 50;
93
+ n.Buffer = l, n.SlowBuffer = G, n.INSPECT_MAX_BYTES = 50;
94
94
  const o = 2147483647;
95
95
  n.kMaxLength = o;
96
96
  const { Uint8Array: i, ArrayBuffer: a, SharedArrayBuffer: s } = globalThis;
@@ -141,7 +141,7 @@ uo.write = function(n, e, t, r, o, i) {
141
141
  if (typeof h == "string")
142
142
  return P(h, c);
143
143
  if (a.isView(h))
144
- return q(h);
144
+ return K(h);
145
145
  if (h == null)
146
146
  throw new TypeError(
147
147
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof h
@@ -201,7 +201,7 @@ uo.write = function(n, e, t, r, o, i) {
201
201
  d[g] = h[g] & 255;
202
202
  return d;
203
203
  }
204
- function q(h) {
204
+ function K(h) {
205
205
  if (ze(h, i)) {
206
206
  const c = new i(h);
207
207
  return z(c.buffer, c.byteOffset, c.byteLength);
@@ -231,7 +231,7 @@ uo.write = function(n, e, t, r, o, i) {
231
231
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + " bytes");
232
232
  return h | 0;
233
233
  }
234
- function K(h) {
234
+ function G(h) {
235
235
  return +h != h && (h = 0), l.alloc(+h);
236
236
  }
237
237
  l.isBuffer = function(c) {
@@ -1060,7 +1060,7 @@ uo.write = function(n, e, t, r, o, i) {
1060
1060
  throw new Error("BigInt not supported");
1061
1061
  }
1062
1062
  })(lo);
1063
- const wn = lo.Buffer, ta = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()), G = {
1063
+ const wn = lo.Buffer, ta = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()), q = {
1064
1064
  $on(n, e) {
1065
1065
  let t = pr.get(n);
1066
1066
  t || (t = /* @__PURE__ */ new Set(), pr.set(n, t)), t.add(e);
@@ -1076,7 +1076,7 @@ const wn = lo.Buffer, ta = lo.Buffer, pr = Qr(/* @__PURE__ */ new Map()), G = {
1076
1076
  t && t.delete(e);
1077
1077
  }
1078
1078
  };
1079
- zi(G);
1079
+ zi(q);
1080
1080
  const na = {
1081
1081
  computed: {
1082
1082
  home() {
@@ -1231,7 +1231,7 @@ const na = {
1231
1231
  console.log("Play was interrupted:", e);
1232
1232
  }
1233
1233
  }), setTimeout(() => {
1234
- this.$storex && this.$storex.token ? this.$router.push(this.home) : G.$emit("ssoEvent", { name: "setLoading", data: !1 });
1234
+ this.$storex && this.$storex.token ? this.$router.push(this.home) : q.$emit("ssoEvent", { name: "setLoading", data: !1 });
1235
1235
  }, 500);
1236
1236
  },
1237
1237
  methods: {}
@@ -1291,7 +1291,7 @@ function va(n, e, t, r, o, i) {
1291
1291
  const po = /* @__PURE__ */ mt(aa, [["render", va], ["__scopeId", "data-v-615ed484"]]), ya = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1292
1292
  __proto__: null,
1293
1293
  default: po
1294
- }, Symbol.toStringTag, { value: "Module" })), wa = "0.0.138";
1294
+ }, Symbol.toStringTag, { value: "Module" })), wa = "0.0.139";
1295
1295
  function ba(n) {
1296
1296
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1297
1297
  }
@@ -5547,7 +5547,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5547
5547
  choose_other_login_methods: "다른 로그인 방법 선택하기",
5548
5548
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
5549
5549
  }
5550
- }, Ao = () => Promise.resolve().then(() => ya), Ia = () => Promise.resolve().then(() => Kc), Aa = () => Promise.resolve().then(() => Bl), Ra = () => Promise.resolve().then(() => yd), Pa = () => import("./Account-Ocsxz63S.js"), Ma = () => Promise.resolve().then(() => pu), Na = () => Promise.resolve().then(() => Sd), Oa = () => import("./QR-1ZiBgDXA.js"), La = () => Promise.resolve().then(() => zu), za = [
5550
+ }, Ao = () => Promise.resolve().then(() => ya), Ia = () => Promise.resolve().then(() => Kc), Aa = () => Promise.resolve().then(() => Bl), Ra = () => Promise.resolve().then(() => yd), Pa = () => import("./Account-7iRBtpd0.js"), Ma = () => Promise.resolve().then(() => pu), Na = () => Promise.resolve().then(() => Sd), Oa = () => import("./QR-a906Y1ud.js"), La = () => Promise.resolve().then(() => zu), za = [
5551
5551
  {
5552
5552
  path: "/welcome",
5553
5553
  name: "AuthWelcome",
@@ -5726,7 +5726,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5726
5726
  if (e.response.data.error === "ACCESS_DENIED")
5727
5727
  return n("logout");
5728
5728
  if (e.response.data.error === "OTP_REQUIRED")
5729
- return G.$emit("toggleOTPModal", !0);
5729
+ return q.$emit("toggleOTPModal", !0);
5730
5730
  !e.response.data.error.includes("Network Error") && !e.response.data.error.includes("TOKEN_EXPIRED") && !e.response.data.error.includes("Cannot read properties") && n("errorSnack", e.response.data.error);
5731
5731
  }
5732
5732
  return e;
@@ -5782,7 +5782,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5782
5782
  username: r,
5783
5783
  UserId: t.loggedInAccounts[r].id,
5784
5784
  localUser: t.loggedInAccounts[r]
5785
- }), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])), G.$emit("ssoEvent", { name: "switchAccount", data: { username: r } });
5785
+ }), n("setLoggedInUserId", t.loggedInAccounts[r].id), n("setRefreshToken", t.loggedInAccounts[r].refreshToken), await e("refreshTokenAction", t.loggedInAccounts[r])), q.$emit("ssoEvent", { name: "switchAccount", data: { username: r } });
5786
5786
  },
5787
5787
  async refreshTokenAction({ commit: n, state: e, getters: t }, r) {
5788
5788
  if (e.refreshing)
@@ -5817,7 +5817,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5817
5817
  { code: o.data.auth_code, state: e.state },
5818
5818
  i
5819
5819
  );
5820
- }) : e.display === "npm" && (G.$emit("ssoEvent", { name: "setLoading", data: !0 }), G.$emit("ssoEvent", { name: "setStorage", data: e.$storex }), G.$emit("ssoEvent", { name: "getUser", data: { username: o.data.data.username } }), t("setLoggedInAccounts", [
5820
+ }) : e.display === "npm" && (q.$emit("ssoEvent", { name: "setLoading", data: !0 }), q.$emit("ssoEvent", { name: "setStorage", data: e.$storex }), q.$emit("ssoEvent", { name: "getUser", data: { username: o.data.data.username } }), t("setLoggedInAccounts", [
5821
5821
  {
5822
5822
  id: o.data.data.id,
5823
5823
  username: o.data.data.username,
@@ -5936,7 +5936,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5936
5936
  return r ? e("errorHandler", r) : o.data.success;
5937
5937
  },
5938
5938
  setLoggedInAccounts({ commit: n }, e) {
5939
- n("setLoggedInAccounts", e);
5939
+ n("setLoggedInAccounts", e), q.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
5940
5940
  },
5941
5941
  setLoggedInUserId({ commit: n }, e) {
5942
5942
  n("setLoggedInUserId", e);
@@ -6116,7 +6116,7 @@ const $e = {
6116
6116
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
6117
6117
  const [r, o] = await he($e.googleSDK(e, this.$storex));
6118
6118
  if (r)
6119
- return this.googleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
6119
+ return this.googleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
6120
6120
  if (o.data.success) {
6121
6121
  if (this.display === "popup")
6122
6122
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -6126,7 +6126,7 @@ const $e = {
6126
6126
  } else
6127
6127
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6128
6128
  } else
6129
- this.googleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6129
+ this.googleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6130
6130
  }
6131
6131
  }
6132
6132
  }, Ua = ar("FacebookLogin", {
@@ -6171,17 +6171,17 @@ const pi = {
6171
6171
  if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
6172
6172
  const [o, i] = await he($e.facebookSDK(t, this.$storex));
6173
6173
  if (o)
6174
- return this.facebookLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
6174
+ return this.facebookLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
6175
6175
  if (i.data.success) {
6176
6176
  if (this.display === "popup")
6177
6177
  return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
6178
6178
  await this.loginSetup(i), await this.getLoggedInAccounts(), this.$router.push("/" + i.data.data.username + "#edit"), setTimeout(() => {
6179
- this.facebookLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6179
+ this.facebookLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6180
6180
  }, 1e3);
6181
6181
  } else
6182
6182
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6183
6183
  } else
6184
- this.facebookLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6184
+ this.facebookLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6185
6185
  }
6186
6186
  }
6187
6187
  }, Ba = ar("SignInWithApple", {
@@ -6212,7 +6212,7 @@ const pi = {
6212
6212
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
6213
6213
  const [r, o] = await he($e.appleSDK(e.response, this.$storex));
6214
6214
  if (r)
6215
- return this.appleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
6215
+ return this.appleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
6216
6216
  if (o.data.success) {
6217
6217
  if (this.display === "popup")
6218
6218
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -6222,7 +6222,7 @@ const pi = {
6222
6222
  } else
6223
6223
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6224
6224
  } else
6225
- this.appleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6225
+ this.appleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6226
6226
  }
6227
6227
  }
6228
6228
  };
@@ -7591,8 +7591,8 @@ var Ke = (
7591
7591
  throw Y.createInvalidCacheEnvironmentError();
7592
7592
  if (P.environment = j, P.realm = ((p = r == null ? void 0 : r.claims) === null || p === void 0 ? void 0 : p.tid) || w.EMPTY_STRING, r) {
7593
7593
  P.idTokenClaims = r.claims, P.localAccountId = ((l = r == null ? void 0 : r.claims) === null || l === void 0 ? void 0 : l.oid) || ((m = r == null ? void 0 : r.claims) === null || m === void 0 ? void 0 : m.sub) || w.EMPTY_STRING;
7594
- var q = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, z = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
7595
- P.username = q || z || w.EMPTY_STRING, P.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
7594
+ var K = (f = r == null ? void 0 : r.claims) === null || f === void 0 ? void 0 : f.preferred_username, z = !((k = r == null ? void 0 : r.claims) === null || k === void 0) && k.emails ? r.claims.emails[0] : null;
7595
+ P.username = K || z || w.EMPTY_STRING, P.name = (E = r == null ? void 0 : r.claims) === null || E === void 0 ? void 0 : E.name;
7596
7596
  }
7597
7597
  return P.cloudGraphHostName = i, P.msGraphHost = a, P;
7598
7598
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
@@ -8581,16 +8581,16 @@ var En = (
8581
8581
  return n !== null && n.apply(this, arguments) || this;
8582
8582
  }
8583
8583
  return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, m, f, k, E, P, j) {
8584
- var q, z, T = new e();
8584
+ var K, z, T = new e();
8585
8585
  T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
8586
8586
  var D = kt.nowSeconds();
8587
- if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(), m && (T.refreshOn = m.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = V.isEmpty(f) ? _e.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = j), ((q = T.tokenType) === null || q === void 0 ? void 0 : q.toLowerCase()) !== _e.BEARER.toLowerCase())
8587
+ if (T.cachedAt = D.toString(), T.expiresOn = u.toString(), T.extendedExpiresOn = p.toString(), m && (T.refreshOn = m.toString()), T.environment = r, T.clientId = i, T.realm = a, T.target = s, T.userAssertionHash = k, T.tokenType = V.isEmpty(f) ? _e.BEARER : f, P && (T.requestedClaims = P, T.requestedClaimsHash = j), ((K = T.tokenType) === null || K === void 0 ? void 0 : K.toLowerCase()) !== _e.BEARER.toLowerCase())
8588
8588
  switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
8589
8589
  case _e.POP:
8590
- var K = Vt.extractTokenClaims(o, l);
8591
- if (!(!((z = K == null ? void 0 : K.cnf) === null || z === void 0) && z.kid))
8590
+ var G = Vt.extractTokenClaims(o, l);
8591
+ if (!(!((z = G == null ? void 0 : G.cnf) === null || z === void 0) && z.kid))
8592
8592
  throw Y.createTokenClaimsRequiredError();
8593
- T.keyId = K.cnf.kid;
8593
+ T.keyId = G.cnf.kid;
8594
8594
  break;
8595
8595
  case _e.SSH:
8596
8596
  T.keyId = E;
@@ -8959,7 +8959,7 @@ var Ir = (
8959
8959
  }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
8960
8960
  var l;
8961
8961
  return oe(this, void 0, void 0, function() {
8962
- var m, f, k, E, P, j, q;
8962
+ var m, f, k, E, P, j, K;
8963
8963
  return ie(this, function(z) {
8964
8964
  switch (z.label) {
8965
8965
  case 0:
@@ -8978,7 +8978,7 @@ var Ir = (
8978
8978
  case 2:
8979
8979
  z.sent(), z.label = 3;
8980
8980
  case 3:
8981
- return s && !u && E.account && (j = E.account.generateAccountKey(), q = this.cacheStorage.getAccount(j), !q) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, m, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
8981
+ return s && !u && E.account && (j = E.account.generateAccountKey(), K = this.cacheStorage.getAccount(j), !K) ? (this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"), [2, n.generateAuthenticationResult(this.cryptoObj, t, E, !1, o, m, k, void 0, p)]) : [4, this.cacheStorage.saveCacheRecord(E)];
8982
8982
  case 4:
8983
8983
  return z.sent(), [3, 8];
8984
8984
  case 5:
@@ -9003,8 +9003,8 @@ var Ir = (
9003
9003
  !V.isEmpty(e.id_token) && i && (p = Cn.createIdTokenEntity(this.homeAccountIdentifier, u, e.id_token || w.EMPTY_STRING, this.clientId, i.claims.tid || w.EMPTY_STRING), l = this.generateAccountEntity(e, i, t, s));
9004
9004
  var m = null;
9005
9005
  if (!V.isEmpty(e.access_token)) {
9006
- var f = e.scope ? Xe.fromString(e.scope) : new Xe(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, P = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, j = r + k, q = j + E, z = P && P > 0 ? r + P : void 0;
9007
- m = En.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), j, q, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
9006
+ var f = e.scope ? Xe.fromString(e.scope) : new Xe(o.scopes || []), k = (typeof e.expires_in == "string" ? parseInt(e.expires_in, 10) : e.expires_in) || 0, E = (typeof e.ext_expires_in == "string" ? parseInt(e.ext_expires_in, 10) : e.ext_expires_in) || 0, P = (typeof e.refresh_in == "string" ? parseInt(e.refresh_in, 10) : e.refresh_in) || void 0, j = r + k, K = j + E, z = P && P > 0 ? r + P : void 0;
9007
+ m = En.createAccessTokenEntity(this.homeAccountIdentifier, u, e.access_token || w.EMPTY_STRING, this.clientId, i ? i.claims.tid || w.EMPTY_STRING : t.tenant, f.printScopes(), j, K, this.cryptoObj, z, e.token_type, a, e.key_id, o.claims, o.requestedClaimsHash);
9008
9008
  }
9009
9009
  var T = null;
9010
9010
  V.isEmpty(e.refresh_token) || (T = zn.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
@@ -9020,17 +9020,17 @@ var Ir = (
9020
9020
  }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
9021
9021
  var l, m, f;
9022
9022
  return oe(this, void 0, void 0, function() {
9023
- var k, E, P, j, q, z, T, D, K, J, te;
9023
+ var k, E, P, j, K, z, T, D, G, J, te;
9024
9024
  return ie(this, function(Z) {
9025
9025
  switch (Z.label) {
9026
9026
  case 0:
9027
- if (k = w.EMPTY_STRING, E = [], P = null, q = w.EMPTY_STRING, !r.accessToken)
9027
+ if (k = w.EMPTY_STRING, E = [], P = null, K = w.EMPTY_STRING, !r.accessToken)
9028
9028
  return [3, 4];
9029
9029
  if (r.accessToken.tokenType !== _e.POP)
9030
9030
  return [3, 2];
9031
- if (z = new Fn(e), T = r.accessToken, D = T.secret, K = T.keyId, !K)
9031
+ if (z = new Fn(e), T = r.accessToken, D = T.secret, G = T.keyId, !G)
9032
9032
  throw Y.createKeyIdMissingError();
9033
- return [4, z.signPopToken(D, K, i)];
9033
+ return [4, z.signPopToken(D, G, i)];
9034
9034
  case 1:
9035
9035
  return k = Z.sent(), [3, 3];
9036
9036
  case 2:
@@ -9038,7 +9038,7 @@ var Ir = (
9038
9038
  case 3:
9039
9039
  E = Xe.fromString(r.accessToken.target).asArray(), P = new Date(Number(r.accessToken.expiresOn) * 1e3), j = new Date(Number(r.accessToken.extendedExpiresOn) * 1e3), Z.label = 4;
9040
9040
  case 4:
9041
- return r.appMetadata && (q = r.appMetadata.familyId === $n ? $n : w.EMPTY_STRING), J = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || w.EMPTY_STRING, te = (a == null ? void 0 : a.claims.tid) || w.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
9041
+ return r.appMetadata && (K = r.appMetadata.familyId === $n ? $n : w.EMPTY_STRING), J = (a == null ? void 0 : a.claims.oid) || (a == null ? void 0 : a.claims.sub) || w.EMPTY_STRING, te = (a == null ? void 0 : a.claims.tid) || w.EMPTY_STRING, u != null && u.spa_accountid && r.account && (r.account.nativeAccountId = u == null ? void 0 : u.spa_accountid), [2, {
9042
9042
  authority: t.canonicalAuthority,
9043
9043
  uniqueId: J,
9044
9044
  tenantId: te,
@@ -9052,7 +9052,7 @@ var Ir = (
9052
9052
  correlationId: i.correlationId,
9053
9053
  requestId: p || w.EMPTY_STRING,
9054
9054
  extExpiresOn: j,
9055
- familyId: q,
9055
+ familyId: K,
9056
9056
  tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || w.EMPTY_STRING,
9057
9057
  state: s ? s.userRequestState : w.EMPTY_STRING,
9058
9058
  cloudGraphHostName: ((m = r.account) === null || m === void 0 ? void 0 : m.cloudGraphHostName) || w.EMPTY_STRING,
@@ -9092,14 +9092,14 @@ var mi = (
9092
9092
  var o, i, a, s, u, p;
9093
9093
  return oe(this, void 0, void 0, function() {
9094
9094
  var l, m, f, k, E, P, j = this;
9095
- return ie(this, function(q) {
9096
- switch (q.label) {
9095
+ return ie(this, function(K) {
9096
+ switch (K.label) {
9097
9097
  case 0:
9098
9098
  if (!t || !t.code)
9099
9099
  throw Y.createTokenRequestCannotBeMadeError();
9100
9100
  return (o = this.performanceClient) === null || o === void 0 || o.addQueueMeasurement(A.AuthClientAcquireToken, t.correlationId), l = (i = this.performanceClient) === null || i === void 0 ? void 0 : i.startMeasurement("AuthCodeClientAcquireToken", t.correlationId), this.logger.info("in acquireToken call in auth-code client"), m = kt.nowSeconds(), (a = this.performanceClient) === null || a === void 0 || a.setPreQueueTime(A.AuthClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(this.authority, t)];
9101
9101
  case 1:
9102
- return f = q.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[gt.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[gt.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
9102
+ return f = K.sent(), k = (s = f.headers) === null || s === void 0 ? void 0 : s[gt.X_MS_REQUEST_ID], E = (u = f.headers) === null || u === void 0 ? void 0 : u[gt.X_MS_HTTP_VERSION], E && (l == null || l.addStaticFields({
9103
9103
  httpVerAuthority: E
9104
9104
  })), P = new Ir(this.config.authOptions.clientId, this.cacheManager, this.cryptoUtils, this.logger, this.config.serializableCache, this.config.persistencePlugin, this.performanceClient), P.validateTokenResponse(f.body), (p = this.performanceClient) === null || p === void 0 || p.setPreQueueTime(A.HandleServerTokenResponse, t.correlationId), [2, P.handleServerTokenResponse(f.body, this.authority, m, t, r, void 0, void 0, void 0, k).then(function(z) {
9105
9105
  return l == null || l.endMeasurement({
@@ -9277,12 +9277,12 @@ var _i = (
9277
9277
  var r, o, i, a, s, u, p;
9278
9278
  return oe(this, void 0, void 0, function() {
9279
9279
  var l, m, f, k, E, P, j = this;
9280
- return ie(this, function(q) {
9281
- switch (q.label) {
9280
+ return ie(this, function(K) {
9281
+ switch (K.label) {
9282
9282
  case 0:
9283
9283
  return (r = this.performanceClient) === null || r === void 0 || r.addQueueMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), l = (o = this.performanceClient) === null || o === void 0 ? void 0 : o.startMeasurement(A.RefreshTokenClientAcquireToken, t.correlationId), this.logger.verbose("RefreshTokenClientAcquireToken called", t.correlationId), m = kt.nowSeconds(), (i = this.performanceClient) === null || i === void 0 || i.setPreQueueTime(A.RefreshTokenClientExecuteTokenRequest, t.correlationId), [4, this.executeTokenRequest(t, this.authority)];
9284
9284
  case 1:
9285
- return f = q.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[gt.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
9285
+ return f = K.sent(), k = (a = f.headers) === null || a === void 0 ? void 0 : a[gt.X_MS_HTTP_VERSION], l == null || l.addStaticFields({
9286
9286
  refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
9287
9287
  }), k && (l == null || l.addStaticFields({
9288
9288
  httpVerToken: k
@@ -12810,7 +12810,7 @@ var _s = (
12810
12810
  }
12811
12811
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
12812
12812
  return O(this, void 0, void 0, function() {
12813
- var a, s, u, p, l, m, f, k, E, P, j, q, z, T, D, K, J, te = this;
12813
+ var a, s, u, p, l, m, f, k, E, P, j, K, z, T, D, G, J, te = this;
12814
12814
  return L(this, function(Z) {
12815
12815
  switch (Z.label) {
12816
12816
  case 0:
@@ -12830,13 +12830,13 @@ var _s = (
12830
12830
  popupWindowAttributes: o
12831
12831
  }, P = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: P }, null), [4, this.monitorPopupForHash(P)];
12832
12832
  case 6:
12833
- if (j = Z.sent(), q = le.getDeserializedHash(j), z = this.validateAndExtractStateFromHash(q, W.Popup, s.correlationId), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, u), q.accountId) {
12833
+ if (j = Z.sent(), K = le.getDeserializedHash(j), z = this.validateAndExtractStateFromHash(K, W.Popup, s.correlationId), Tr.removeThrottle(this.browserStorage, this.config.auth.clientId, u), K.accountId) {
12834
12834
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), m && m.endMeasurement({
12835
12835
  success: !0,
12836
12836
  isNativeBroker: !0
12837
12837
  }), !this.nativeMessageHandler)
12838
12838
  throw F.createNativeConnectionNotEstablishedError();
12839
- return T = new Hn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, q.accountId, this.nativeStorage, s.correlationId), D = tn.parseRequestState(this.browserCrypto, z).userRequestState, [2, T.acquireToken($($({}, s), {
12839
+ return T = new Hn(this.config, this.browserStorage, this.browserCrypto, this.logger, this.eventHandler, this.navigationClient, Ce.acquireTokenPopup, this.performanceClient, this.nativeMessageHandler, K.accountId, this.nativeStorage, s.correlationId), D = tn.parseRequestState(this.browserCrypto, z).userRequestState, [2, T.acquireToken($($({}, s), {
12840
12840
  state: D,
12841
12841
  prompt: void 0
12842
12842
  // Server should handle the prompt, ideally native broker can do this part silently
@@ -12846,7 +12846,7 @@ var _s = (
12846
12846
  }
12847
12847
  return [4, k.handleCodeResponseFromHash(j, z, p.authority, this.networkClient)];
12848
12848
  case 7:
12849
- return K = Z.sent(), [2, K];
12849
+ return G = Z.sent(), [2, G];
12850
12850
  case 8:
12851
12851
  throw J = Z.sent(), i && i.close(), J instanceof X && J.setCorrelationId(this.correlationId), a.cacheFailedRequest(J), this.browserStorage.cleanRequestByState(s.state), J;
12852
12852
  case 9:
@@ -14126,7 +14126,7 @@ var Us = (
14126
14126
  }, n.prototype.signJwt = function(e, t, r) {
14127
14127
  var o;
14128
14128
  return O(this, void 0, void 0, function() {
14129
- var i, a, s, u, p, l, m, f, k, E, P, j, q;
14129
+ var i, a, s, u, p, l, m, f, k, E, P, j, K;
14130
14130
  return L(this, function(z) {
14131
14131
  switch (z.label) {
14132
14132
  case 0:
@@ -14140,9 +14140,9 @@ var Us = (
14140
14140
  jwk: JSON.parse(u)
14141
14141
  }, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = m + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
14142
14142
  case 3:
14143
- return P = z.sent(), j = this.b64Encode.urlEncodeArr(new Uint8Array(P)), q = k + "." + j, i && i.endMeasurement({
14143
+ return P = z.sent(), j = this.b64Encode.urlEncodeArr(new Uint8Array(P)), K = k + "." + j, i && i.endMeasurement({
14144
14144
  success: !0
14145
- }), [2, q];
14145
+ }), [2, K];
14146
14146
  }
14147
14147
  });
14148
14148
  });
@@ -14927,8 +14927,8 @@ var qs = (
14927
14927
  if (p.cacheLookupPolicy === it.AccessToken)
14928
14928
  throw f;
14929
14929
  return Ae.blockReloadInHiddenIframes(), l.eventHandler.emitEvent(ne.ACQUIRE_TOKEN_NETWORK_START, W.Silent, u), l.performanceClient.setPreQueueTime(A.AcquireTokenByRefreshToken, u.correlationId), l.acquireTokenByRefreshToken(u, p).catch(function(k) {
14930
- var E = k instanceof In, P = k instanceof Pt, j = k.errorCode === xn.noTokensFoundError.code, q = k.errorCode === Rt.INVALID_GRANT_ERROR;
14931
- if ((!E || !q || P || p.cacheLookupPolicy === it.AccessTokenAndRefreshToken || p.cacheLookupPolicy === it.RefreshToken) && p.cacheLookupPolicy !== it.Skip && !j)
14930
+ var E = k instanceof In, P = k instanceof Pt, j = k.errorCode === xn.noTokensFoundError.code, K = k.errorCode === Rt.INVALID_GRANT_ERROR;
14931
+ if ((!E || !K || P || p.cacheLookupPolicy === it.AccessTokenAndRefreshToken || p.cacheLookupPolicy === it.RefreshToken) && p.cacheLookupPolicy !== it.Skip && !j)
14932
14932
  throw k;
14933
14933
  return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.", t.correlationId), l.performanceClient.setPreQueueTime(A.AcquireTokenBySilentIframe, u.correlationId), l.acquireTokenBySilentIframe(u);
14934
14934
  });
@@ -15044,7 +15044,7 @@ const Gs = ar("MsAuthPlugin", {
15044
15044
  $e.microsoftSDK(r, this.$storex)
15045
15045
  );
15046
15046
  if (i)
15047
- return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
15047
+ return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
15048
15048
  if (a.data.success) {
15049
15049
  if (this.display === "popup")
15050
15050
  return (o = window.parent) == null ? void 0 : o.postMessage(
@@ -15057,10 +15057,10 @@ const Gs = ar("MsAuthPlugin", {
15057
15057
  } else
15058
15058
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
15059
15059
  } else
15060
- this.microsoftLoad = !1, this.microsoftSSOLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
15060
+ this.microsoftLoad = !1, this.microsoftSSOLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
15061
15061
  },
15062
15062
  ssoLogin() {
15063
- G.$emit("toggleSSOModal");
15063
+ q.$emit("toggleSSOModal");
15064
15064
  }
15065
15065
  }
15066
15066
  }, jn = {
@@ -15173,12 +15173,12 @@ const Gs = ar("MsAuthPlugin", {
15173
15173
  localStorage.removeItem("pkce_code_verifier");
15174
15174
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
15175
15175
  if (this.display === "popup" && (r.response_type = "code"), [e, t] = await he($e.oktaSDK(r, this.$storex)), e)
15176
- return this.oktaLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
15176
+ return this.oktaLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
15177
15177
  if (t.data.success) {
15178
15178
  if (this.display === "popup")
15179
15179
  return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
15180
15180
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
15181
- this.appleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
15181
+ this.appleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
15182
15182
  }, 1e3);
15183
15183
  } else
15184
15184
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
@@ -15203,7 +15203,7 @@ const Gs = ar("MsAuthPlugin", {
15203
15203
  const a = new URLSearchParams(e);
15204
15204
  t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
15205
15205
  }
15206
- window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await yr.close(), G.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), G.$emit("ssoEvent", { name: "setLoading", data: !1 }));
15206
+ window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await yr.close(), q.$emit("ssoEvent", { name: "setLoading", data: !0 }), n && t && r && await this.exchangeCode({ code: n, clientID: t, domain: r, platform: o }), localStorage.removeItem("pkce_code_verifier"), q.$emit("ssoEvent", { name: "setLoading", data: !1 }));
15207
15207
  }
15208
15208
  }
15209
15209
  }, xr = {
@@ -15245,12 +15245,12 @@ const Gs = ar("MsAuthPlugin", {
15245
15245
  if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
15246
15246
  window.opener.postMessage(e, location.origin), window.close();
15247
15247
  else {
15248
- if (this.isNative && this.isIOS && await yr.close(), G.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
15248
+ if (this.isNative && this.isIOS && await yr.close(), q.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
15249
15249
  if (this.display === "popup")
15250
15250
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
15251
15251
  await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
15252
15252
  }
15253
- localStorage.removeItem("pkce_code_verifier"), G.$emit("ssoEvent", { name: "setLoading", data: !1 });
15253
+ localStorage.removeItem("pkce_code_verifier"), q.$emit("ssoEvent", { name: "setLoading", data: !1 });
15254
15254
  }
15255
15255
  }
15256
15256
  }
@@ -15299,8 +15299,8 @@ var Ii = { exports: {} };
15299
15299
  function T() {
15300
15300
  }
15301
15301
  return function(D) {
15302
- var K;
15303
- return T.prototype = D, K = new T(), T.prototype = null, K;
15302
+ var G;
15303
+ return T.prototype = D, G = new T(), T.prototype = null, G;
15304
15304
  };
15305
15305
  }(), p = {}, l = p.lib = {}, m = l.Base = { extend: function(T) {
15306
15306
  var D = u(this);
@@ -15322,15 +15322,15 @@ var Ii = { exports: {} };
15322
15322
  }, toString: function(T) {
15323
15323
  return (T || E).stringify(this);
15324
15324
  }, concat: function(T) {
15325
- var D = this.words, K = T.words, J = this.sigBytes, te = T.sigBytes;
15325
+ var D = this.words, G = T.words, J = this.sigBytes, te = T.sigBytes;
15326
15326
  if (this.clamp(), J % 4)
15327
15327
  for (var Z = 0; Z < te; Z++) {
15328
- var ve = K[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
15328
+ var ve = G[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
15329
15329
  D[J + Z >>> 2] |= ve << 24 - (J + Z) % 4 * 8;
15330
15330
  }
15331
15331
  else
15332
15332
  for (Z = 0; Z < te; Z += 4)
15333
- D[J + Z >>> 2] = K[Z >>> 2];
15333
+ D[J + Z >>> 2] = G[Z >>> 2];
15334
15334
  return this.sigBytes += te, this;
15335
15335
  }, clamp: function() {
15336
15336
  var T = this.words, D = this.sigBytes;
@@ -15339,7 +15339,7 @@ var Ii = { exports: {} };
15339
15339
  var T = m.clone.call(this);
15340
15340
  return T.words = this.words.slice(0), T;
15341
15341
  }, random: function(T) {
15342
- for (var D, K = [], J = function(ve) {
15342
+ for (var D, G = [], J = function(ve) {
15343
15343
  ve = ve;
15344
15344
  var Se = 987654321, ye = 4294967295;
15345
15345
  return function() {
@@ -15348,29 +15348,29 @@ var Ii = { exports: {} };
15348
15348
  };
15349
15349
  }, te = 0; te < T; te += 4) {
15350
15350
  var Z = J(4294967296 * (D || a.random()));
15351
- D = 987654071 * Z(), K.push(4294967296 * Z() | 0);
15351
+ D = 987654071 * Z(), G.push(4294967296 * Z() | 0);
15352
15352
  }
15353
- return new f.init(K, T);
15353
+ return new f.init(G, T);
15354
15354
  } }), k = p.enc = {}, E = k.Hex = { stringify: function(T) {
15355
- for (var D = T.words, K = T.sigBytes, J = [], te = 0; te < K; te++) {
15355
+ for (var D = T.words, G = T.sigBytes, J = [], te = 0; te < G; te++) {
15356
15356
  var Z = D[te >>> 2] >>> 24 - te % 4 * 8 & 255;
15357
15357
  J.push((Z >>> 4).toString(16)), J.push((15 & Z).toString(16));
15358
15358
  }
15359
15359
  return J.join("");
15360
15360
  }, parse: function(T) {
15361
- for (var D = T.length, K = [], J = 0; J < D; J += 2)
15362
- K[J >>> 3] |= parseInt(T.substr(J, 2), 16) << 24 - J % 8 * 4;
15363
- return new f.init(K, D / 2);
15361
+ for (var D = T.length, G = [], J = 0; J < D; J += 2)
15362
+ G[J >>> 3] |= parseInt(T.substr(J, 2), 16) << 24 - J % 8 * 4;
15363
+ return new f.init(G, D / 2);
15364
15364
  } }, P = k.Latin1 = { stringify: function(T) {
15365
- for (var D = T.words, K = T.sigBytes, J = [], te = 0; te < K; te++) {
15365
+ for (var D = T.words, G = T.sigBytes, J = [], te = 0; te < G; te++) {
15366
15366
  var Z = D[te >>> 2] >>> 24 - te % 4 * 8 & 255;
15367
15367
  J.push(String.fromCharCode(Z));
15368
15368
  }
15369
15369
  return J.join("");
15370
15370
  }, parse: function(T) {
15371
- for (var D = T.length, K = [], J = 0; J < D; J++)
15372
- K[J >>> 2] |= (255 & T.charCodeAt(J)) << 24 - J % 4 * 8;
15373
- return new f.init(K, D);
15371
+ for (var D = T.length, G = [], J = 0; J < D; J++)
15372
+ G[J >>> 2] |= (255 & T.charCodeAt(J)) << 24 - J % 4 * 8;
15373
+ return new f.init(G, D);
15374
15374
  } }, j = k.Utf8 = { stringify: function(T) {
15375
15375
  try {
15376
15376
  return decodeURIComponent(escape(P.stringify(T)));
@@ -15379,37 +15379,37 @@ var Ii = { exports: {} };
15379
15379
  }
15380
15380
  }, parse: function(T) {
15381
15381
  return P.parse(unescape(encodeURIComponent(T)));
15382
- } }, q = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
15382
+ } }, K = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
15383
15383
  this._data = new f.init(), this._nDataBytes = 0;
15384
15384
  }, _append: function(T) {
15385
15385
  typeof T == "string" && (T = j.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
15386
15386
  }, _process: function(T) {
15387
- var D = this._data, K = D.words, J = D.sigBytes, te = this.blockSize, Z = J / (4 * te), ve = (Z = T ? a.ceil(Z) : a.max((0 | Z) - this._minBufferSize, 0)) * te, Se = a.min(4 * ve, J);
15387
+ var D = this._data, G = D.words, J = D.sigBytes, te = this.blockSize, Z = J / (4 * te), ve = (Z = T ? a.ceil(Z) : a.max((0 | Z) - this._minBufferSize, 0)) * te, Se = a.min(4 * ve, J);
15388
15388
  if (ve) {
15389
15389
  for (var ye = 0; ye < ve; ye += te)
15390
- this._doProcessBlock(K, ye);
15391
- var Ne = K.splice(0, ve);
15390
+ this._doProcessBlock(G, ye);
15391
+ var Ne = G.splice(0, ve);
15392
15392
  D.sigBytes -= Se;
15393
15393
  }
15394
15394
  return new f.init(Ne, Se);
15395
15395
  }, clone: function() {
15396
15396
  var T = m.clone.call(this);
15397
15397
  return T._data = this._data.clone(), T;
15398
- }, _minBufferSize: 0 }), z = (l.Hasher = q.extend({ cfg: m.extend(), init: function(T) {
15398
+ }, _minBufferSize: 0 }), z = (l.Hasher = K.extend({ cfg: m.extend(), init: function(T) {
15399
15399
  this.cfg = this.cfg.extend(T), this.reset();
15400
15400
  }, reset: function() {
15401
- q.reset.call(this), this._doReset();
15401
+ K.reset.call(this), this._doReset();
15402
15402
  }, update: function(T) {
15403
15403
  return this._append(T), this._process(), this;
15404
15404
  }, finalize: function(T) {
15405
15405
  return T && this._append(T), this._doFinalize();
15406
15406
  }, blockSize: 16, _createHelper: function(T) {
15407
- return function(D, K) {
15408
- return new T.init(K).finalize(D);
15407
+ return function(D, G) {
15408
+ return new T.init(G).finalize(D);
15409
15409
  };
15410
15410
  }, _createHmacHelper: function(T) {
15411
- return function(D, K) {
15412
- return new z.HMAC.init(T, K).finalize(D);
15411
+ return function(D, G) {
15412
+ return new z.HMAC.init(T, G).finalize(D);
15413
15413
  };
15414
15414
  } }), p.algo = {});
15415
15415
  return p;
@@ -15420,8 +15420,8 @@ var Ii = { exports: {} };
15420
15420
  p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
15421
15421
  var m = p.blockSize, f = 4 * m;
15422
15422
  l.sigBytes > f && (l = p.finalize(l)), l.clamp();
15423
- for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, q = 0; q < m; q++)
15424
- P[q] ^= 1549556828, j[q] ^= 909522486;
15423
+ for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, K = 0; K < m; K++)
15424
+ P[K] ^= 1549556828, j[K] ^= 909522486;
15425
15425
  k.sigBytes = E.sigBytes = f, this.reset();
15426
15426
  }, reset: function() {
15427
15427
  var p = this._hasher;
@@ -15518,17 +15518,17 @@ var Ii = { exports: {} };
15518
15518
  t.exports = (f = o(0), a = (i = f).lib, s = a.WordArray, u = a.Hasher, p = i.algo, l = [], m = p.SHA1 = u.extend({ _doReset: function() {
15519
15519
  this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
15520
15520
  }, _doProcessBlock: function(k, E) {
15521
- for (var P = this._hash.words, j = P[0], q = P[1], z = P[2], T = P[3], D = P[4], K = 0; K < 80; K++) {
15522
- if (K < 16)
15523
- l[K] = 0 | k[E + K];
15521
+ for (var P = this._hash.words, j = P[0], K = P[1], z = P[2], T = P[3], D = P[4], G = 0; G < 80; G++) {
15522
+ if (G < 16)
15523
+ l[G] = 0 | k[E + G];
15524
15524
  else {
15525
- var J = l[K - 3] ^ l[K - 8] ^ l[K - 14] ^ l[K - 16];
15526
- l[K] = J << 1 | J >>> 31;
15525
+ var J = l[G - 3] ^ l[G - 8] ^ l[G - 14] ^ l[G - 16];
15526
+ l[G] = J << 1 | J >>> 31;
15527
15527
  }
15528
- var te = (j << 5 | j >>> 27) + D + l[K];
15529
- te += K < 20 ? 1518500249 + (q & z | ~q & T) : K < 40 ? 1859775393 + (q ^ z ^ T) : K < 60 ? (q & z | q & T | z & T) - 1894007588 : (q ^ z ^ T) - 899497514, D = T, T = z, z = q << 30 | q >>> 2, q = j, j = te;
15528
+ var te = (j << 5 | j >>> 27) + D + l[G];
15529
+ te += G < 20 ? 1518500249 + (K & z | ~K & T) : G < 40 ? 1859775393 + (K ^ z ^ T) : G < 60 ? (K & z | K & T | z & T) - 1894007588 : (K ^ z ^ T) - 899497514, D = T, T = z, z = K << 30 | K >>> 2, K = j, j = te;
15530
15530
  }
15531
- P[0] = P[0] + j | 0, P[1] = P[1] + q | 0, P[2] = P[2] + z | 0, P[3] = P[3] + T | 0, P[4] = P[4] + D | 0;
15531
+ P[0] = P[0] + j | 0, P[1] = P[1] + K | 0, P[2] = P[2] + z | 0, P[3] = P[3] + T | 0, P[4] = P[4] + D | 0;
15532
15532
  }, _doFinalize: function() {
15533
15533
  var k = this._data, E = k.words, P = 8 * this._nDataBytes, j = 8 * k.sigBytes;
15534
15534
  return E[j >>> 5] |= 128 << 24 - j % 32, E[14 + (j + 64 >>> 9 << 4)] = Math.floor(P / 4294967296), E[15 + (j + 64 >>> 9 << 4)] = P, k.sigBytes = 4 * E.length, this._process(), this._hash;
@@ -15542,34 +15542,34 @@ var Ii = { exports: {} };
15542
15542
  var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, m = s.algo, f = [], k = [];
15543
15543
  (function() {
15544
15544
  function j(D) {
15545
- for (var K = a.sqrt(D), J = 2; J <= K; J++)
15545
+ for (var G = a.sqrt(D), J = 2; J <= G; J++)
15546
15546
  if (!(D % J))
15547
15547
  return !1;
15548
15548
  return !0;
15549
15549
  }
15550
- function q(D) {
15550
+ function K(D) {
15551
15551
  return 4294967296 * (D - (0 | D)) | 0;
15552
15552
  }
15553
15553
  for (var z = 2, T = 0; T < 64; )
15554
- j(z) && (T < 8 && (f[T] = q(a.pow(z, 0.5))), k[T] = q(a.pow(z, 1 / 3)), T++), z++;
15554
+ j(z) && (T < 8 && (f[T] = K(a.pow(z, 0.5))), k[T] = K(a.pow(z, 1 / 3)), T++), z++;
15555
15555
  })();
15556
15556
  var E = [], P = m.SHA256 = l.extend({ _doReset: function() {
15557
15557
  this._hash = new p.init(f.slice(0));
15558
- }, _doProcessBlock: function(j, q) {
15559
- for (var z = this._hash.words, T = z[0], D = z[1], K = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = 0; ye < 64; ye++) {
15558
+ }, _doProcessBlock: function(j, K) {
15559
+ for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = 0; ye < 64; ye++) {
15560
15560
  if (ye < 16)
15561
- E[ye] = 0 | j[q + ye];
15561
+ E[ye] = 0 | j[K + ye];
15562
15562
  else {
15563
15563
  var Ne = E[ye - 15], Qt = (Ne << 25 | Ne >>> 7) ^ (Ne << 14 | Ne >>> 18) ^ Ne >>> 3, Qe = E[ye - 2], an = (Qe << 15 | Qe >>> 17) ^ (Qe << 13 | Qe >>> 19) ^ Qe >>> 10;
15564
15564
  E[ye] = Qt + E[ye - 7] + an + E[ye - 16];
15565
15565
  }
15566
- var Mt = T & D ^ T & K ^ D & K, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), ct = Se + ((te << 26 | te >>> 6) ^ (te << 21 | te >>> 11) ^ (te << 7 | te >>> 25)) + (te & Z ^ ~te & ve) + k[ye] + E[ye];
15567
- Se = ve, ve = Z, Z = te, te = J + ct | 0, J = K, K = D, D = T, T = ct + (Nt + Mt) | 0;
15566
+ var Mt = T & D ^ T & G ^ D & G, Nt = (T << 30 | T >>> 2) ^ (T << 19 | T >>> 13) ^ (T << 10 | T >>> 22), ct = Se + ((te << 26 | te >>> 6) ^ (te << 21 | te >>> 11) ^ (te << 7 | te >>> 25)) + (te & Z ^ ~te & ve) + k[ye] + E[ye];
15567
+ Se = ve, ve = Z, Z = te, te = J + ct | 0, J = G, G = D, D = T, T = ct + (Nt + Mt) | 0;
15568
15568
  }
15569
- z[0] = z[0] + T | 0, z[1] = z[1] + D | 0, z[2] = z[2] + K | 0, z[3] = z[3] + J | 0, z[4] = z[4] + te | 0, z[5] = z[5] + Z | 0, z[6] = z[6] + ve | 0, z[7] = z[7] + Se | 0;
15569
+ z[0] = z[0] + T | 0, z[1] = z[1] + D | 0, z[2] = z[2] + G | 0, z[3] = z[3] + J | 0, z[4] = z[4] + te | 0, z[5] = z[5] + Z | 0, z[6] = z[6] + ve | 0, z[7] = z[7] + Se | 0;
15570
15570
  }, _doFinalize: function() {
15571
- var j = this._data, q = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15572
- return q[T >>> 5] |= 128 << 24 - T % 32, q[14 + (T + 64 >>> 9 << 4)] = a.floor(z / 4294967296), q[15 + (T + 64 >>> 9 << 4)] = z, j.sigBytes = 4 * q.length, this._process(), this._hash;
15571
+ var j = this._data, K = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15572
+ return K[T >>> 5] |= 128 << 24 - T % 32, K[14 + (T + 64 >>> 9 << 4)] = a.floor(z / 4294967296), K[15 + (T + 64 >>> 9 << 4)] = z, j.sigBytes = 4 * K.length, this._process(), this._hash;
15573
15573
  }, clone: function() {
15574
15574
  var j = l.clone.call(this);
15575
15575
  return j._hash = this._hash.clone(), j;
@@ -15590,11 +15590,11 @@ var Ii = { exports: {} };
15590
15590
  })();
15591
15591
  var P = m.SHA512 = s.extend({ _doReset: function() {
15592
15592
  this._hash = new l.init([new p.init(1779033703, 4089235720), new p.init(3144134277, 2227873595), new p.init(1013904242, 4271175723), new p.init(2773480762, 1595750129), new p.init(1359893119, 2917565137), new p.init(2600822924, 725511199), new p.init(528734635, 4215389547), new p.init(1541459225, 327033209)]);
15593
- }, _doProcessBlock: function(j, q) {
15594
- for (var z = this._hash.words, T = z[0], D = z[1], K = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high, Qe = D.low, an = K.high, Mt = K.low, Nt = J.high, ct = J.low, mn = te.high, sn = te.low, _n = Z.high, cn = Z.low, Pn = ve.high, Te = ve.low, Re = Se.high, Yt = Se.low, He = ye, Le = Ne, Ot = Qt, Et = Qe, et = an, lt = Mt, Wt = Nt, Lt = ct, Ye = mn, Pe = sn, ut = _n, zt = cn, xt = Pn, _t = Te, vn = Re, Tt = Yt, je = 0; je < 80; je++) {
15593
+ }, _doProcessBlock: function(j, K) {
15594
+ for (var z = this._hash.words, T = z[0], D = z[1], G = z[2], J = z[3], te = z[4], Z = z[5], ve = z[6], Se = z[7], ye = T.high, Ne = T.low, Qt = D.high, Qe = D.low, an = G.high, Mt = G.low, Nt = J.high, ct = J.low, mn = te.high, sn = te.low, _n = Z.high, cn = Z.low, Pn = ve.high, Te = ve.low, Re = Se.high, Yt = Se.low, He = ye, Le = Ne, Ot = Qt, Et = Qe, et = an, lt = Mt, Wt = Nt, Lt = ct, Ye = mn, Pe = sn, ut = _n, zt = cn, xt = Pn, _t = Te, vn = Re, Tt = Yt, je = 0; je < 80; je++) {
15595
15595
  var vt = E[je];
15596
15596
  if (je < 16)
15597
- var ze = vt.high = 0 | j[q + 2 * je], dt = vt.low = 0 | j[q + 2 * je + 1];
15597
+ var ze = vt.high = 0 | j[K + 2 * je], dt = vt.low = 0 | j[K + 2 * je + 1];
15598
15598
  else {
15599
15599
  var yn = E[je - 15], Fe = yn.high, Ut = yn.low, h = (Fe >>> 1 | Ut << 31) ^ (Fe >>> 8 | Ut << 24) ^ Fe >>> 7, c = (Ut >>> 1 | Fe << 31) ^ (Ut >>> 8 | Fe << 24) ^ (Ut >>> 7 | Fe << 25), d = E[je - 2], g = d.high, b = d.low, S = (g >>> 19 | b << 13) ^ (g << 3 | b >>> 29) ^ g >>> 6, R = (b >>> 19 | g << 13) ^ (b << 3 | g >>> 29) ^ (b >>> 6 | g << 26), se = E[je - 7], we = se.high, me = se.low, be = E[je - 16], pe = be.high, cr = be.low;
15600
15600
  ze = (ze = (ze = h + we + ((dt = c + me) >>> 0 < c >>> 0 ? 1 : 0)) + S + ((dt += R) >>> 0 < R >>> 0 ? 1 : 0)) + pe + ((dt += cr) >>> 0 < cr >>> 0 ? 1 : 0), vt.high = ze, vt.low = dt;
@@ -15602,10 +15602,10 @@ var Ii = { exports: {} };
15602
15602
  var St, Br = Ye & ut ^ ~Ye & xt, lr = Pe & zt ^ ~Pe & _t, Dr = He & Ot ^ He & et ^ Ot & et, Hr = Le & Et ^ Le & lt ^ Et & lt, ur = (He >>> 28 | Le << 4) ^ (He << 30 | Le >>> 2) ^ (He << 25 | Le >>> 7), dr = (Le >>> 28 | He << 4) ^ (Le << 30 | He >>> 2) ^ (Le << 25 | He >>> 7), jr = (Ye >>> 14 | Pe << 18) ^ (Ye >>> 18 | Pe << 14) ^ (Ye << 23 | Pe >>> 9), Fr = (Pe >>> 14 | Ye << 18) ^ (Pe >>> 18 | Ye << 14) ^ (Pe << 23 | Ye >>> 9), v = k[je], y = v.high, C = v.low, I = vn + jr + ((St = Tt + Fr) >>> 0 < Tt >>> 0 ? 1 : 0), M = dr + Hr;
15603
15603
  vn = xt, Tt = _t, xt = ut, _t = zt, ut = Ye, zt = Pe, Ye = Wt + (I = (I = (I = I + Br + ((St += lr) >>> 0 < lr >>> 0 ? 1 : 0)) + y + ((St += C) >>> 0 < C >>> 0 ? 1 : 0)) + ze + ((St += dt) >>> 0 < dt >>> 0 ? 1 : 0)) + ((Pe = Lt + St | 0) >>> 0 < Lt >>> 0 ? 1 : 0) | 0, Wt = et, Lt = lt, et = Ot, lt = Et, Ot = He, Et = Le, He = I + (ur + Dr + (M >>> 0 < dr >>> 0 ? 1 : 0)) + ((Le = St + M | 0) >>> 0 < St >>> 0 ? 1 : 0) | 0;
15604
15604
  }
15605
- Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0), Qe = D.low = Qe + Et, D.high = Qt + Ot + (Qe >>> 0 < Et >>> 0 ? 1 : 0), Mt = K.low = Mt + lt, K.high = an + et + (Mt >>> 0 < lt >>> 0 ? 1 : 0), ct = J.low = ct + Lt, J.high = Nt + Wt + (ct >>> 0 < Lt >>> 0 ? 1 : 0), sn = te.low = sn + Pe, te.high = mn + Ye + (sn >>> 0 < Pe >>> 0 ? 1 : 0), cn = Z.low = cn + zt, Z.high = _n + ut + (cn >>> 0 < zt >>> 0 ? 1 : 0), Te = ve.low = Te + _t, ve.high = Pn + xt + (Te >>> 0 < _t >>> 0 ? 1 : 0), Yt = Se.low = Yt + Tt, Se.high = Re + vn + (Yt >>> 0 < Tt >>> 0 ? 1 : 0);
15605
+ Ne = T.low = Ne + Le, T.high = ye + He + (Ne >>> 0 < Le >>> 0 ? 1 : 0), Qe = D.low = Qe + Et, D.high = Qt + Ot + (Qe >>> 0 < Et >>> 0 ? 1 : 0), Mt = G.low = Mt + lt, G.high = an + et + (Mt >>> 0 < lt >>> 0 ? 1 : 0), ct = J.low = ct + Lt, J.high = Nt + Wt + (ct >>> 0 < Lt >>> 0 ? 1 : 0), sn = te.low = sn + Pe, te.high = mn + Ye + (sn >>> 0 < Pe >>> 0 ? 1 : 0), cn = Z.low = cn + zt, Z.high = _n + ut + (cn >>> 0 < zt >>> 0 ? 1 : 0), Te = ve.low = Te + _t, ve.high = Pn + xt + (Te >>> 0 < _t >>> 0 ? 1 : 0), Yt = Se.low = Yt + Tt, Se.high = Re + vn + (Yt >>> 0 < Tt >>> 0 ? 1 : 0);
15606
15606
  }, _doFinalize: function() {
15607
- var j = this._data, q = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15608
- return q[T >>> 5] |= 128 << 24 - T % 32, q[30 + (T + 128 >>> 10 << 5)] = Math.floor(z / 4294967296), q[31 + (T + 128 >>> 10 << 5)] = z, j.sigBytes = 4 * q.length, this._process(), this._hash.toX32();
15607
+ var j = this._data, K = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15608
+ return K[T >>> 5] |= 128 << 24 - T % 32, K[30 + (T + 128 >>> 10 << 5)] = Math.floor(z / 4294967296), K[31 + (T + 128 >>> 10 << 5)] = z, j.sigBytes = 4 * K.length, this._process(), this._hash.toX32();
15609
15609
  }, clone: function() {
15610
15610
  var j = s.clone.call(this);
15611
15611
  return j._hash = this._hash.clone(), j;
@@ -15625,7 +15625,7 @@ var Ii = { exports: {} };
15625
15625
  }
15626
15626
  return C;
15627
15627
  }
15628
- function q(v) {
15628
+ function K(v) {
15629
15629
  for (var y = 1; y < arguments.length; y++) {
15630
15630
  var C = arguments[y] != null ? arguments[y] : {};
15631
15631
  y % 2 ? j(Object(C), !0).forEach(function(I) {
@@ -15653,11 +15653,11 @@ var Ii = { exports: {} };
15653
15653
  (function(v) {
15654
15654
  v.SHA1 = "sha1", v.SHA256 = "sha256", v.SHA512 = "sha512";
15655
15655
  })(i || (i = {}));
15656
- var K, J = D(i);
15656
+ var G, J = D(i);
15657
15657
  (function(v) {
15658
15658
  v.ASCII = "ascii", v.BASE64 = "base64", v.HEX = "hex", v.LATIN1 = "latin1", v.UTF8 = "utf8";
15659
- })(K || (K = {}));
15660
- var te, Z = D(K);
15659
+ })(G || (G = {}));
15660
+ var te, Z = D(G);
15661
15661
  (function(v) {
15662
15662
  v.HOTP = "hotp", v.TOTP = "totp";
15663
15663
  })(te || (te = {}));
@@ -15753,7 +15753,7 @@ var Ii = { exports: {} };
15753
15753
  });
15754
15754
  }
15755
15755
  return C;
15756
- }({}, { algorithm: i.SHA1, createHmacKey: cn, createDigest: Se, digits: 6, encoding: K.ASCII }, {}, v);
15756
+ }({}, { algorithm: i.SHA1, createHmacKey: cn, createDigest: Se, digits: 6, encoding: G.ASCII }, {}, v);
15757
15757
  return _n(y), Object.freeze(y);
15758
15758
  }
15759
15759
  function Te(v, y, C) {
@@ -15807,23 +15807,23 @@ var Ii = { exports: {} };
15807
15807
  (function(M, H) {
15808
15808
  if (!(M instanceof H))
15809
15809
  throw new TypeError("Cannot call a class as a function");
15810
- })(this, v), this._defaultOptions = Object.freeze(q({}, I)), this._options = Object.freeze({});
15810
+ })(this, v), this._defaultOptions = Object.freeze(K({}, I)), this._options = Object.freeze({});
15811
15811
  }
15812
15812
  var y, C;
15813
15813
  return y = v, (C = [{ key: "create", value: function() {
15814
15814
  var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
15815
15815
  return new v(I);
15816
15816
  } }, { key: "clone", value: function() {
15817
- var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = this.create(q({}, this._defaultOptions, {}, I));
15817
+ var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, M = this.create(K({}, this._defaultOptions, {}, I));
15818
15818
  return M.options = this._options, M;
15819
15819
  } }, { key: "allOptions", value: function() {
15820
15820
  return this.options;
15821
15821
  } }, { key: "resetOptions", value: function() {
15822
15822
  this._options = Object.freeze({});
15823
15823
  } }, { key: "options", get: function() {
15824
- return Object.freeze(q({}, this._defaultOptions, {}, this._options));
15824
+ return Object.freeze(K({}, this._defaultOptions, {}, this._options));
15825
15825
  }, set: function(I) {
15826
- this._options = Object.freeze(q({}, this._options, {}, I));
15826
+ this._options = Object.freeze(K({}, this._options, {}, I));
15827
15827
  } }]) && T(y.prototype, C), v;
15828
15828
  }());
15829
15829
  function Le(v) {
@@ -15942,7 +15942,7 @@ var Ii = { exports: {} };
15942
15942
  }
15943
15943
  };
15944
15944
  function vn(v) {
15945
- var y = Lt({}, { algorithm: i.SHA1, createDigest: Se, createHmacKey: _t, digits: 6, encoding: K.ASCII, epoch: Date.now(), step: 30, window: 0 }, {}, v);
15945
+ var y = Lt({}, { algorithm: i.SHA1, createDigest: Se, createHmacKey: _t, digits: 6, encoding: G.ASCII, epoch: Date.now(), step: 30, window: 0 }, {}, v);
15946
15946
  return zt(y), Object.freeze(y);
15947
15947
  }
15948
15948
  function Tt(v, y) {
@@ -16071,7 +16071,7 @@ var Ii = { exports: {} };
16071
16071
  });
16072
16072
  }
16073
16073
  return C;
16074
- }({}, { algorithm: i.SHA1, createDigest: Se, createHmacKey: _t, digits: 6, encoding: K.HEX, epoch: Date.now(), step: 30, window: 0 }, {}, v);
16074
+ }({}, { algorithm: i.SHA1, createDigest: Se, createHmacKey: _t, digits: 6, encoding: G.HEX, epoch: Date.now(), step: 30, window: 0 }, {}, v);
16075
16075
  return function(C) {
16076
16076
  if (zt(C), typeof C.keyDecoder != "function")
16077
16077
  throw new Error("Expecting options.keyDecoder to be a function.");
@@ -16188,7 +16188,7 @@ const Ai = {
16188
16188
  }
16189
16189
  },
16190
16190
  async mounted() {
16191
- this.$route.name === "AuthMFA" && (await this.getAccountSettings(), this.generateOTPQrCode()), G.$on("otpSubmitted", this.otpSubmitted);
16191
+ this.$route.name === "AuthMFA" && (await this.getAccountSettings(), this.generateOTPQrCode()), q.$on("otpSubmitted", this.otpSubmitted);
16192
16192
  },
16193
16193
  methods: {
16194
16194
  otpSubmitted(n) {
@@ -16210,10 +16210,10 @@ const Ai = {
16210
16210
  }
16211
16211
  },
16212
16212
  async cancelMFA() {
16213
- G.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
16213
+ q.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
16214
16214
  },
16215
16215
  async validateMFA() {
16216
- G.$emit("toggleOTPModal", !0);
16216
+ q.$emit("toggleOTPModal", !0);
16217
16217
  }
16218
16218
  }
16219
16219
  }, Vs = {
@@ -16336,7 +16336,7 @@ const Ai = {
16336
16336
  if (this.$route.path === "/login/callback/saml")
16337
16337
  return await this.handleSamlRedirect();
16338
16338
  this.$route.query.qrLogin && this.changeLoginToQr(), setTimeout(() => {
16339
- this.$storex && this.$storex.token ? this.$router.push(this.home) : G.$emit("ssoEvent", { name: "setLoading", data: !1 });
16339
+ this.$storex && this.$storex.token ? this.$router.push(this.home) : q.$emit("ssoEvent", { name: "setLoading", data: !1 });
16340
16340
  }, 2500);
16341
16341
  }
16342
16342
  },
@@ -16358,10 +16358,10 @@ const Ai = {
16358
16358
  t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
16359
16359
  },
16360
16360
  close() {
16361
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16361
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16362
16362
  },
16363
16363
  createAccountModal() {
16364
- G.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16364
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16365
16365
  }
16366
16366
  },
16367
16367
  watch: {
@@ -16661,7 +16661,7 @@ const wo = /* @__PURE__ */ mt(Qs, [["render", qc]]), Kc = /* @__PURE__ */ Object
16661
16661
  };
16662
16662
  },
16663
16663
  mounted() {
16664
- this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storex.referral && (this.referral = this.$storex.referral));
16664
+ this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storex.referral && (this.referral = this.$storex.referral));
16665
16665
  },
16666
16666
  methods: {
16667
16667
  async submit() {
@@ -16685,13 +16685,13 @@ const wo = /* @__PURE__ */ mt(Qs, [["render", qc]]), Kc = /* @__PURE__ */ Object
16685
16685
  captchaToken: await this.getCaptchaToken("account_verify"),
16686
16686
  ref: this.referral
16687
16687
  }, e = await this.register(n);
16688
- this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? G.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : e.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...e, isModal: n.isModal }), await this.getLoggedInAccounts()), await this.loginSuccess({ ...e, isModal: n.isModal })));
16688
+ this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? q.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : e.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...e, isModal: n.isModal }), await this.getLoggedInAccounts()), await this.loginSuccess({ ...e, isModal: n.isModal })));
16689
16689
  },
16690
16690
  close() {
16691
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16691
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16692
16692
  },
16693
16693
  loginAccountModal() {
16694
- G.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
16694
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
16695
16695
  }
16696
16696
  },
16697
16697
  watch: {
@@ -16959,7 +16959,7 @@ const bo = /* @__PURE__ */ mt(Gc, [["render", Ul]]), Bl = /* @__PURE__ */ Object
16959
16959
  },
16960
16960
  methods: {
16961
16961
  init() {
16962
- this.isLoggedIn ? this.$router.push(this.home) : (this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), G.$emit("ssoEvent", { name: "setLoading", data: !1 }));
16962
+ this.isLoggedIn ? this.$router.push(this.home) : (this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), q.$emit("ssoEvent", { name: "setLoading", data: !1 }));
16963
16963
  },
16964
16964
  async submit() {
16965
16965
  if (this.code.length !== 6)
@@ -16974,13 +16974,13 @@ const bo = /* @__PURE__ */ mt(Gc, [["render", Ul]]), Bl = /* @__PURE__ */ Object
16974
16974
  return !1;
16975
16975
  this.submitted = !0;
16976
16976
  let e = await this.verify(n);
16977
- this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", G.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storex.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
16977
+ this.submitted = !1, e && e.data && e.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", q.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storex.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
16978
16978
  },
16979
16979
  registerAccountModal() {
16980
- G.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
16980
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
16981
16981
  },
16982
16982
  close() {
16983
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16983
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16984
16984
  }
16985
16985
  },
16986
16986
  watch: {
@@ -17148,7 +17148,7 @@ const ko = /* @__PURE__ */ mt(Dl, [["render", du], ["__scopeId", "data-v-89d98ef
17148
17148
  this.mfaEnable || delete n.otpSecret, this.loading = !0;
17149
17149
  const [e, t] = await he($e.setMfa(n, this.$storex));
17150
17150
  if (this.loading = !1, e)
17151
- return G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
17151
+ return q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
17152
17152
  t.data.success && (this.getAccountSettings(), this.successSnack(t.data.message));
17153
17153
  }
17154
17154
  }
@@ -17264,7 +17264,7 @@ const Co = /* @__PURE__ */ mt(hu, [["render", Lu]]), zu = /* @__PURE__ */ Object
17264
17264
  };
17265
17265
  },
17266
17266
  mounted() {
17267
- this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), G.$emit("ssoEvent", { name: "setLoading", data: !1 });
17267
+ this.$storex.verifyEmail && (this.email = this.$storex.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), q.$emit("ssoEvent", { name: "setLoading", data: !1 });
17268
17268
  },
17269
17269
  methods: {
17270
17270
  async resetEmail() {
@@ -17534,11 +17534,11 @@ const To = /* @__PURE__ */ mt(wd, [["render", Td]]), Sd = /* @__PURE__ */ Object
17534
17534
  };
17535
17535
  },
17536
17536
  mounted() {
17537
- G.$on("closeModal", () => {
17537
+ q.$on("closeModal", () => {
17538
17538
  this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
17539
- }), G.$on("openModalOverlay", () => {
17539
+ }), q.$on("openModalOverlay", () => {
17540
17540
  this.toggle = !0;
17541
- }), G.$on("toggleSSOLanguageModal", this.toggleModal), G.$on("toggleOTPModal", this.toggleModal), G.$on("toggleSSOModal", this.toggleModal), G.$on("toggleSSOPickModal", this.toggleModal);
17541
+ }), q.$on("toggleSSOLanguageModal", this.toggleModal), q.$on("toggleOTPModal", this.toggleModal), q.$on("toggleSSOModal", this.toggleModal), q.$on("toggleSSOPickModal", this.toggleModal);
17542
17542
  },
17543
17543
  methods: {
17544
17544
  toggleModal(n = !0) {
@@ -17546,7 +17546,7 @@ const To = /* @__PURE__ */ mt(wd, [["render", Td]]), Sd = /* @__PURE__ */ Object
17546
17546
  },
17547
17547
  toggleEmit() {
17548
17548
  var n, e;
17549
- !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || G.$emit("closeModal");
17549
+ !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || q.$emit("closeModal");
17550
17550
  }
17551
17551
  }
17552
17552
  };
@@ -17567,16 +17567,16 @@ const Ri = /* @__PURE__ */ mt(Id, [["render", Ad], ["__scopeId", "data-v-17c9581
17567
17567
  };
17568
17568
  },
17569
17569
  mounted() {
17570
- G.$on("toggleSSOModal", this.toggleModal), G.$on("closeModal", () => {
17570
+ q.$on("toggleSSOModal", this.toggleModal), q.$on("closeModal", () => {
17571
17571
  this.toggle = !1;
17572
17572
  });
17573
17573
  },
17574
17574
  beforeDestroy() {
17575
- G._events.toggleSSOModal.pop();
17575
+ q._events.toggleSSOModal.pop();
17576
17576
  },
17577
17577
  methods: {
17578
17578
  forceClose() {
17579
- G.$emit("closeModal");
17579
+ q.$emit("closeModal");
17580
17580
  },
17581
17581
  close() {
17582
17582
  this.toggleModal();
@@ -17588,7 +17588,7 @@ const Ri = /* @__PURE__ */ mt(Id, [["render", Ad], ["__scopeId", "data-v-17c9581
17588
17588
  let e;
17589
17589
  if (!(!n || n.error))
17590
17590
  if (e = Object.keys(n.sso), e.length)
17591
- e.length <= 1 ? (e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl)) : (this.forceClose(), G.$emit("toggleSSOPickModal", {
17591
+ e.length <= 1 ? (e[0] === "azure" && this.microsoftLogin("sso", n.sso.azure.sso), e[0] === "okta" && this.oktaLogin(n.sso.okta.sso), e[0] === "saml" && this.samlLogin(n.sso.saml.sso.loginUrl)) : (this.forceClose(), q.$emit("toggleSSOPickModal", {
17592
17592
  sso: n.sso,
17593
17593
  email: this.email
17594
17594
  }));
@@ -17661,16 +17661,16 @@ const Pi = /* @__PURE__ */ mt(Rd, [["render", Bd], ["__scopeId", "data-v-11f19a0
17661
17661
  };
17662
17662
  },
17663
17663
  mounted() {
17664
- G.$on("toggleOTPModal", this.toggleModal), G.$on("closeModal", () => {
17664
+ q.$on("toggleOTPModal", this.toggleModal), q.$on("closeModal", () => {
17665
17665
  this.toggle = !1;
17666
17666
  });
17667
17667
  },
17668
17668
  beforeDestroy() {
17669
- G._events.toggleOTPModal.pop();
17669
+ q._events.toggleOTPModal.pop();
17670
17670
  },
17671
17671
  methods: {
17672
17672
  forceClose() {
17673
- G.$emit("closeModal");
17673
+ q.$emit("closeModal");
17674
17674
  },
17675
17675
  close() {
17676
17676
  this.toggleModal();
@@ -17678,7 +17678,7 @@ const Pi = /* @__PURE__ */ mt(Rd, [["render", Bd], ["__scopeId", "data-v-11f19a0
17678
17678
  async submit() {
17679
17679
  if (!this.otp || this.otp.length !== 6)
17680
17680
  return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
17681
- this.loading = !0, G.$emit("otpSubmitted", this.otp), G.$emit("toggleOTPModal"), this.loading = !1;
17681
+ this.loading = !0, q.$emit("otpSubmitted", this.otp), q.$emit("toggleOTPModal"), this.loading = !1;
17682
17682
  },
17683
17683
  toggleModal() {
17684
17684
  this.toggle = !this.toggle;
@@ -17759,16 +17759,16 @@ const Ni = /* @__PURE__ */ mt(Dd, [["render", Xd], ["__scopeId", "data-v-2b6d626
17759
17759
  };
17760
17760
  },
17761
17761
  mounted() {
17762
- G.$on("toggleSSOPickModal", this.toggleModal), G.$on("closeModal", () => {
17762
+ q.$on("toggleSSOPickModal", this.toggleModal), q.$on("closeModal", () => {
17763
17763
  this.toggle = !1;
17764
17764
  });
17765
17765
  },
17766
17766
  beforeDestroy() {
17767
- G._events.toggleSSOPickModal.pop();
17767
+ q._events.toggleSSOPickModal.pop();
17768
17768
  },
17769
17769
  methods: {
17770
17770
  forceClose() {
17771
- G.$emit("closeModal");
17771
+ q.$emit("closeModal");
17772
17772
  },
17773
17773
  close() {
17774
17774
  this.toggleModal();
@@ -17990,24 +17990,24 @@ const yp = /* @__PURE__ */ mt(hp, [["render", vp]]), wp = {
17990
17990
  };
17991
17991
  },
17992
17992
  async mounted() {
17993
- G.$on("toggleSSOLanguageModal", this.toggleModal), G.$on("closeModal", () => {
17993
+ q.$on("toggleSSOLanguageModal", this.toggleModal), q.$on("closeModal", () => {
17994
17994
  this.toggle = !1;
17995
17995
  });
17996
17996
  let n = this.isNative ? await vr.getLanguageCode() : jn.getFirstBrowserLanguage();
17997
17997
  n && wp.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
17998
17998
  },
17999
17999
  beforeDestroy() {
18000
- G._events.toggleSSOLanguageModal.pop();
18000
+ q._events.toggleSSOLanguageModal.pop();
18001
18001
  },
18002
18002
  methods: {
18003
18003
  forceClose() {
18004
- G.$emit("closeModal");
18004
+ q.$emit("closeModal");
18005
18005
  },
18006
18006
  close() {
18007
18007
  this.forceClose();
18008
18008
  },
18009
18009
  async updateLanguage(n) {
18010
- this.updateLang(n), G.$emit("closeModal");
18010
+ this.updateLang(n), q.$emit("closeModal");
18011
18011
  },
18012
18012
  toggleModal() {
18013
18013
  this.toggle = !this.toggle;
@@ -18301,7 +18301,7 @@ const Rp = { id: "ssoapp" }, Pp = {
18301
18301
  }
18302
18302
  },
18303
18303
  async mounted() {
18304
- this.applyBgStyle(), this.setView(this.viewProp), G.$on("ssoEvent", this.ssoOutgoingEvent), G.$on("ssoLogout", (n) => this.logout(n.refreshToken)), G.$on("getLoggedInAccounts", (n) => this.getLoggedInAccounts(n)), G.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), G.$on("switchAccount", (n) => this.switchAccount(n)), G.$on("setToken", (n) => this.setToken(n));
18304
+ this.applyBgStyle(), this.setView(this.viewProp), q.$on("ssoEvent", this.ssoOutgoingEvent), q.$on("ssoLogout", (n) => this.logout(n.refreshToken)), q.$on("getLoggedInAccounts", (n) => this.getLoggedInAccounts(n)), q.$on("refreshTokenAction", (n) => this.refreshTokenAction({ ...n, storage: this.$storex })), q.$on("switchAccount", (n) => this.switchAccount(n)), q.$on("setToken", (n) => this.setToken(n));
18305
18305
  },
18306
18306
  methods: {
18307
18307
  async init() {
@@ -18315,13 +18315,13 @@ const Rp = { id: "ssoapp" }, Pp = {
18315
18315
  this.$emit("ssoEvent", n);
18316
18316
  },
18317
18317
  ssoIncomingEvent(n) {
18318
- G.$emit(n.name, n.data);
18318
+ q.$emit(n.name, n.data);
18319
18319
  },
18320
18320
  applyBgStyle() {
18321
18321
  this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
18322
18322
  },
18323
18323
  toggleSSOLanguageModal() {
18324
- G.$emit("toggleSSOLanguageModal", !0);
18324
+ q.$emit("toggleSSOLanguageModal", !0);
18325
18325
  }
18326
18326
  },
18327
18327
  watch: {
@@ -18406,7 +18406,7 @@ const Rp = { id: "ssoapp" }, Pp = {
18406
18406
  };
18407
18407
  export {
18408
18408
  at as A,
18409
- G as E,
18409
+ q as E,
18410
18410
  Vs as Q,
18411
18411
  mt as _,
18412
18412
  rh as i