@tapni/auth 0.0.137 → 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.137";
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-hYstHgCb.js"), Ma = () => Promise.resolve().then(() => pu), Na = () => Promise.resolve().then(() => Sd), Oa = () => import("./QR-ozMxA_D_.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,10 +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
- let t = {};
5940
- e.forEach((r) => {
5941
- t[r.username] = r;
5942
- }), n("setLoggedInAccounts", t);
5939
+ n("setLoggedInAccounts", e), q.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
5943
5940
  },
5944
5941
  setLoggedInUserId({ commit: n }, e) {
5945
5942
  n("setLoggedInUserId", e);
@@ -6119,7 +6116,7 @@ const $e = {
6119
6116
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
6120
6117
  const [r, o] = await he($e.googleSDK(e, this.$storex));
6121
6118
  if (r)
6122
- 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);
6123
6120
  if (o.data.success) {
6124
6121
  if (this.display === "popup")
6125
6122
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -6129,7 +6126,7 @@ const $e = {
6129
6126
  } else
6130
6127
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6131
6128
  } else
6132
- this.googleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6129
+ this.googleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6133
6130
  }
6134
6131
  }
6135
6132
  }, Ua = ar("FacebookLogin", {
@@ -6174,17 +6171,17 @@ const pi = {
6174
6171
  if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
6175
6172
  const [o, i] = await he($e.facebookSDK(t, this.$storex));
6176
6173
  if (o)
6177
- 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);
6178
6175
  if (i.data.success) {
6179
6176
  if (this.display === "popup")
6180
6177
  return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
6181
6178
  await this.loginSetup(i), await this.getLoggedInAccounts(), this.$router.push("/" + i.data.data.username + "#edit"), setTimeout(() => {
6182
- this.facebookLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6179
+ this.facebookLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6183
6180
  }, 1e3);
6184
6181
  } else
6185
6182
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6186
6183
  } else
6187
- this.facebookLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6184
+ this.facebookLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6188
6185
  }
6189
6186
  }
6190
6187
  }, Ba = ar("SignInWithApple", {
@@ -6215,7 +6212,7 @@ const pi = {
6215
6212
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
6216
6213
  const [r, o] = await he($e.appleSDK(e.response, this.$storex));
6217
6214
  if (r)
6218
- 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);
6219
6216
  if (o.data.success) {
6220
6217
  if (this.display === "popup")
6221
6218
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -6225,7 +6222,7 @@ const pi = {
6225
6222
  } else
6226
6223
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
6227
6224
  } else
6228
- this.appleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
6225
+ this.appleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
6229
6226
  }
6230
6227
  }
6231
6228
  };
@@ -7594,8 +7591,8 @@ var Ke = (
7594
7591
  throw Y.createInvalidCacheEnvironmentError();
7595
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) {
7596
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;
7597
- 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;
7598
- 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;
7599
7596
  }
7600
7597
  return P.cloudGraphHostName = i, P.msGraphHost = a, P;
7601
7598
  }, n.createGenericAccount = function(e, t, r, o, i, a) {
@@ -8584,16 +8581,16 @@ var En = (
8584
8581
  return n !== null && n.apply(this, arguments) || this;
8585
8582
  }
8586
8583
  return e.createAccessTokenEntity = function(t, r, o, i, a, s, u, p, l, m, f, k, E, P, j) {
8587
- var q, z, T = new e();
8584
+ var K, z, T = new e();
8588
8585
  T.homeAccountId = t, T.credentialType = ee.ACCESS_TOKEN, T.secret = o;
8589
8586
  var D = kt.nowSeconds();
8590
- 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())
8591
8588
  switch (T.credentialType = ee.ACCESS_TOKEN_WITH_AUTH_SCHEME, T.tokenType) {
8592
8589
  case _e.POP:
8593
- var K = Vt.extractTokenClaims(o, l);
8594
- 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))
8595
8592
  throw Y.createTokenClaimsRequiredError();
8596
- T.keyId = K.cnf.kid;
8593
+ T.keyId = G.cnf.kid;
8597
8594
  break;
8598
8595
  case _e.SSH:
8599
8596
  T.keyId = E;
@@ -8962,7 +8959,7 @@ var Ir = (
8962
8959
  }, n.prototype.handleServerTokenResponse = function(e, t, r, o, i, a, s, u, p) {
8963
8960
  var l;
8964
8961
  return oe(this, void 0, void 0, function() {
8965
- var m, f, k, E, P, j, q;
8962
+ var m, f, k, E, P, j, K;
8966
8963
  return ie(this, function(z) {
8967
8964
  switch (z.label) {
8968
8965
  case 0:
@@ -8981,7 +8978,7 @@ var Ir = (
8981
8978
  case 2:
8982
8979
  z.sent(), z.label = 3;
8983
8980
  case 3:
8984
- 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)];
8985
8982
  case 4:
8986
8983
  return z.sent(), [3, 8];
8987
8984
  case 5:
@@ -9006,8 +9003,8 @@ var Ir = (
9006
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));
9007
9004
  var m = null;
9008
9005
  if (!V.isEmpty(e.access_token)) {
9009
- 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;
9010
- 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);
9011
9008
  }
9012
9009
  var T = null;
9013
9010
  V.isEmpty(e.refresh_token) || (T = zn.createRefreshTokenEntity(this.homeAccountIdentifier, u, e.refresh_token || w.EMPTY_STRING, this.clientId, e.foci, a));
@@ -9023,17 +9020,17 @@ var Ir = (
9023
9020
  }, n.generateAuthenticationResult = function(e, t, r, o, i, a, s, u, p) {
9024
9021
  var l, m, f;
9025
9022
  return oe(this, void 0, void 0, function() {
9026
- 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;
9027
9024
  return ie(this, function(Z) {
9028
9025
  switch (Z.label) {
9029
9026
  case 0:
9030
- 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)
9031
9028
  return [3, 4];
9032
9029
  if (r.accessToken.tokenType !== _e.POP)
9033
9030
  return [3, 2];
9034
- 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)
9035
9032
  throw Y.createKeyIdMissingError();
9036
- return [4, z.signPopToken(D, K, i)];
9033
+ return [4, z.signPopToken(D, G, i)];
9037
9034
  case 1:
9038
9035
  return k = Z.sent(), [3, 3];
9039
9036
  case 2:
@@ -9041,7 +9038,7 @@ var Ir = (
9041
9038
  case 3:
9042
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;
9043
9040
  case 4:
9044
- 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, {
9045
9042
  authority: t.canonicalAuthority,
9046
9043
  uniqueId: J,
9047
9044
  tenantId: te,
@@ -9055,7 +9052,7 @@ var Ir = (
9055
9052
  correlationId: i.correlationId,
9056
9053
  requestId: p || w.EMPTY_STRING,
9057
9054
  extExpiresOn: j,
9058
- familyId: q,
9055
+ familyId: K,
9059
9056
  tokenType: ((l = r.accessToken) === null || l === void 0 ? void 0 : l.tokenType) || w.EMPTY_STRING,
9060
9057
  state: s ? s.userRequestState : w.EMPTY_STRING,
9061
9058
  cloudGraphHostName: ((m = r.account) === null || m === void 0 ? void 0 : m.cloudGraphHostName) || w.EMPTY_STRING,
@@ -9095,14 +9092,14 @@ var mi = (
9095
9092
  var o, i, a, s, u, p;
9096
9093
  return oe(this, void 0, void 0, function() {
9097
9094
  var l, m, f, k, E, P, j = this;
9098
- return ie(this, function(q) {
9099
- switch (q.label) {
9095
+ return ie(this, function(K) {
9096
+ switch (K.label) {
9100
9097
  case 0:
9101
9098
  if (!t || !t.code)
9102
9099
  throw Y.createTokenRequestCannotBeMadeError();
9103
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)];
9104
9101
  case 1:
9105
- 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({
9106
9103
  httpVerAuthority: E
9107
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) {
9108
9105
  return l == null || l.endMeasurement({
@@ -9280,12 +9277,12 @@ var _i = (
9280
9277
  var r, o, i, a, s, u, p;
9281
9278
  return oe(this, void 0, void 0, function() {
9282
9279
  var l, m, f, k, E, P, j = this;
9283
- return ie(this, function(q) {
9284
- switch (q.label) {
9280
+ return ie(this, function(K) {
9281
+ switch (K.label) {
9285
9282
  case 0:
9286
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)];
9287
9284
  case 1:
9288
- 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({
9289
9286
  refreshTokenSize: ((s = f.body.refresh_token) === null || s === void 0 ? void 0 : s.length) || 0
9290
9287
  }), k && (l == null || l.addStaticFields({
9291
9288
  httpVerToken: k
@@ -12813,7 +12810,7 @@ var _s = (
12813
12810
  }
12814
12811
  }, e.prototype.acquireTokenPopupAsync = function(t, r, o, i) {
12815
12812
  return O(this, void 0, void 0, function() {
12816
- 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;
12817
12814
  return L(this, function(Z) {
12818
12815
  switch (Z.label) {
12819
12816
  case 0:
@@ -12833,13 +12830,13 @@ var _s = (
12833
12830
  popupWindowAttributes: o
12834
12831
  }, P = this.initiateAuthRequest(f, E), this.eventHandler.emitEvent(ne.POPUP_OPENED, W.Popup, { popupWindow: P }, null), [4, this.monitorPopupForHash(P)];
12835
12832
  case 6:
12836
- 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) {
12837
12834
  if (this.logger.verbose("Account id found in hash, calling WAM for token"), m && m.endMeasurement({
12838
12835
  success: !0,
12839
12836
  isNativeBroker: !0
12840
12837
  }), !this.nativeMessageHandler)
12841
12838
  throw F.createNativeConnectionNotEstablishedError();
12842
- 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), {
12843
12840
  state: D,
12844
12841
  prompt: void 0
12845
12842
  // Server should handle the prompt, ideally native broker can do this part silently
@@ -12849,7 +12846,7 @@ var _s = (
12849
12846
  }
12850
12847
  return [4, k.handleCodeResponseFromHash(j, z, p.authority, this.networkClient)];
12851
12848
  case 7:
12852
- return K = Z.sent(), [2, K];
12849
+ return G = Z.sent(), [2, G];
12853
12850
  case 8:
12854
12851
  throw J = Z.sent(), i && i.close(), J instanceof X && J.setCorrelationId(this.correlationId), a.cacheFailedRequest(J), this.browserStorage.cleanRequestByState(s.state), J;
12855
12852
  case 9:
@@ -14129,7 +14126,7 @@ var Us = (
14129
14126
  }, n.prototype.signJwt = function(e, t, r) {
14130
14127
  var o;
14131
14128
  return O(this, void 0, void 0, function() {
14132
- 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;
14133
14130
  return L(this, function(z) {
14134
14131
  switch (z.label) {
14135
14132
  case 0:
@@ -14143,9 +14140,9 @@ var Us = (
14143
14140
  jwk: JSON.parse(u)
14144
14141
  }, f = this.b64Encode.urlEncode(JSON.stringify(e)), k = m + "." + f, E = nn.stringToArrayBuffer(k), [4, this.browserCrypto.sign(a.privateKey, E)];
14145
14142
  case 3:
14146
- 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({
14147
14144
  success: !0
14148
- }), [2, q];
14145
+ }), [2, K];
14149
14146
  }
14150
14147
  });
14151
14148
  });
@@ -14930,8 +14927,8 @@ var qs = (
14930
14927
  if (p.cacheLookupPolicy === it.AccessToken)
14931
14928
  throw f;
14932
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) {
14933
- var E = k instanceof In, P = k instanceof Pt, j = k.errorCode === xn.noTokensFoundError.code, q = k.errorCode === Rt.INVALID_GRANT_ERROR;
14934
- 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)
14935
14932
  throw k;
14936
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);
14937
14934
  });
@@ -15047,7 +15044,7 @@ const Gs = ar("MsAuthPlugin", {
15047
15044
  $e.microsoftSDK(r, this.$storex)
15048
15045
  );
15049
15046
  if (i)
15050
- 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);
15051
15048
  if (a.data.success) {
15052
15049
  if (this.display === "popup")
15053
15050
  return (o = window.parent) == null ? void 0 : o.postMessage(
@@ -15060,10 +15057,10 @@ const Gs = ar("MsAuthPlugin", {
15060
15057
  } else
15061
15058
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
15062
15059
  } else
15063
- 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 });
15064
15061
  },
15065
15062
  ssoLogin() {
15066
- G.$emit("toggleSSOModal");
15063
+ q.$emit("toggleSSOModal");
15067
15064
  }
15068
15065
  }
15069
15066
  }, jn = {
@@ -15176,12 +15173,12 @@ const Gs = ar("MsAuthPlugin", {
15176
15173
  localStorage.removeItem("pkce_code_verifier");
15177
15174
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
15178
15175
  if (this.display === "popup" && (r.response_type = "code"), [e, t] = await he($e.oktaSDK(r, this.$storex)), e)
15179
- 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);
15180
15177
  if (t.data.success) {
15181
15178
  if (this.display === "popup")
15182
15179
  return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
15183
15180
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
15184
- this.appleLoad = !1, G.$emit("ssoEvent", { name: "setLoading", data: !1 });
15181
+ this.appleLoad = !1, q.$emit("ssoEvent", { name: "setLoading", data: !1 });
15185
15182
  }, 1e3);
15186
15183
  } else
15187
15184
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
@@ -15206,7 +15203,7 @@ const Gs = ar("MsAuthPlugin", {
15206
15203
  const a = new URLSearchParams(e);
15207
15204
  t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
15208
15205
  }
15209
- 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 }));
15210
15207
  }
15211
15208
  }
15212
15209
  }, xr = {
@@ -15248,12 +15245,12 @@ const Gs = ar("MsAuthPlugin", {
15248
15245
  if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
15249
15246
  window.opener.postMessage(e, location.origin), window.close();
15250
15247
  else {
15251
- 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) {
15252
15249
  if (this.display === "popup")
15253
15250
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
15254
15251
  await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
15255
15252
  }
15256
- 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 });
15257
15254
  }
15258
15255
  }
15259
15256
  }
@@ -15302,8 +15299,8 @@ var Ii = { exports: {} };
15302
15299
  function T() {
15303
15300
  }
15304
15301
  return function(D) {
15305
- var K;
15306
- 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;
15307
15304
  };
15308
15305
  }(), p = {}, l = p.lib = {}, m = l.Base = { extend: function(T) {
15309
15306
  var D = u(this);
@@ -15325,15 +15322,15 @@ var Ii = { exports: {} };
15325
15322
  }, toString: function(T) {
15326
15323
  return (T || E).stringify(this);
15327
15324
  }, concat: function(T) {
15328
- 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;
15329
15326
  if (this.clamp(), J % 4)
15330
15327
  for (var Z = 0; Z < te; Z++) {
15331
- var ve = K[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
15328
+ var ve = G[Z >>> 2] >>> 24 - Z % 4 * 8 & 255;
15332
15329
  D[J + Z >>> 2] |= ve << 24 - (J + Z) % 4 * 8;
15333
15330
  }
15334
15331
  else
15335
15332
  for (Z = 0; Z < te; Z += 4)
15336
- D[J + Z >>> 2] = K[Z >>> 2];
15333
+ D[J + Z >>> 2] = G[Z >>> 2];
15337
15334
  return this.sigBytes += te, this;
15338
15335
  }, clamp: function() {
15339
15336
  var T = this.words, D = this.sigBytes;
@@ -15342,7 +15339,7 @@ var Ii = { exports: {} };
15342
15339
  var T = m.clone.call(this);
15343
15340
  return T.words = this.words.slice(0), T;
15344
15341
  }, random: function(T) {
15345
- for (var D, K = [], J = function(ve) {
15342
+ for (var D, G = [], J = function(ve) {
15346
15343
  ve = ve;
15347
15344
  var Se = 987654321, ye = 4294967295;
15348
15345
  return function() {
@@ -15351,29 +15348,29 @@ var Ii = { exports: {} };
15351
15348
  };
15352
15349
  }, te = 0; te < T; te += 4) {
15353
15350
  var Z = J(4294967296 * (D || a.random()));
15354
- D = 987654071 * Z(), K.push(4294967296 * Z() | 0);
15351
+ D = 987654071 * Z(), G.push(4294967296 * Z() | 0);
15355
15352
  }
15356
- return new f.init(K, T);
15353
+ return new f.init(G, T);
15357
15354
  } }), k = p.enc = {}, E = k.Hex = { stringify: function(T) {
15358
- 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++) {
15359
15356
  var Z = D[te >>> 2] >>> 24 - te % 4 * 8 & 255;
15360
15357
  J.push((Z >>> 4).toString(16)), J.push((15 & Z).toString(16));
15361
15358
  }
15362
15359
  return J.join("");
15363
15360
  }, parse: function(T) {
15364
- for (var D = T.length, K = [], J = 0; J < D; J += 2)
15365
- K[J >>> 3] |= parseInt(T.substr(J, 2), 16) << 24 - J % 8 * 4;
15366
- 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);
15367
15364
  } }, P = k.Latin1 = { stringify: function(T) {
15368
- 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++) {
15369
15366
  var Z = D[te >>> 2] >>> 24 - te % 4 * 8 & 255;
15370
15367
  J.push(String.fromCharCode(Z));
15371
15368
  }
15372
15369
  return J.join("");
15373
15370
  }, parse: function(T) {
15374
- for (var D = T.length, K = [], J = 0; J < D; J++)
15375
- K[J >>> 2] |= (255 & T.charCodeAt(J)) << 24 - J % 4 * 8;
15376
- 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);
15377
15374
  } }, j = k.Utf8 = { stringify: function(T) {
15378
15375
  try {
15379
15376
  return decodeURIComponent(escape(P.stringify(T)));
@@ -15382,37 +15379,37 @@ var Ii = { exports: {} };
15382
15379
  }
15383
15380
  }, parse: function(T) {
15384
15381
  return P.parse(unescape(encodeURIComponent(T)));
15385
- } }, q = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
15382
+ } }, K = l.BufferedBlockAlgorithm = m.extend({ reset: function() {
15386
15383
  this._data = new f.init(), this._nDataBytes = 0;
15387
15384
  }, _append: function(T) {
15388
15385
  typeof T == "string" && (T = j.parse(T)), this._data.concat(T), this._nDataBytes += T.sigBytes;
15389
15386
  }, _process: function(T) {
15390
- 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);
15391
15388
  if (ve) {
15392
15389
  for (var ye = 0; ye < ve; ye += te)
15393
- this._doProcessBlock(K, ye);
15394
- var Ne = K.splice(0, ve);
15390
+ this._doProcessBlock(G, ye);
15391
+ var Ne = G.splice(0, ve);
15395
15392
  D.sigBytes -= Se;
15396
15393
  }
15397
15394
  return new f.init(Ne, Se);
15398
15395
  }, clone: function() {
15399
15396
  var T = m.clone.call(this);
15400
15397
  return T._data = this._data.clone(), T;
15401
- }, _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) {
15402
15399
  this.cfg = this.cfg.extend(T), this.reset();
15403
15400
  }, reset: function() {
15404
- q.reset.call(this), this._doReset();
15401
+ K.reset.call(this), this._doReset();
15405
15402
  }, update: function(T) {
15406
15403
  return this._append(T), this._process(), this;
15407
15404
  }, finalize: function(T) {
15408
15405
  return T && this._append(T), this._doFinalize();
15409
15406
  }, blockSize: 16, _createHelper: function(T) {
15410
- return function(D, K) {
15411
- return new T.init(K).finalize(D);
15407
+ return function(D, G) {
15408
+ return new T.init(G).finalize(D);
15412
15409
  };
15413
15410
  }, _createHmacHelper: function(T) {
15414
- return function(D, K) {
15415
- return new z.HMAC.init(T, K).finalize(D);
15411
+ return function(D, G) {
15412
+ return new z.HMAC.init(T, G).finalize(D);
15416
15413
  };
15417
15414
  } }), p.algo = {});
15418
15415
  return p;
@@ -15423,8 +15420,8 @@ var Ii = { exports: {} };
15423
15420
  p = this._hasher = new p.init(), typeof l == "string" && (l = u.parse(l));
15424
15421
  var m = p.blockSize, f = 4 * m;
15425
15422
  l.sigBytes > f && (l = p.finalize(l)), l.clamp();
15426
- for (var k = this._oKey = l.clone(), E = this._iKey = l.clone(), P = k.words, j = E.words, q = 0; q < m; q++)
15427
- 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;
15428
15425
  k.sigBytes = E.sigBytes = f, this.reset();
15429
15426
  }, reset: function() {
15430
15427
  var p = this._hasher;
@@ -15521,17 +15518,17 @@ var Ii = { exports: {} };
15521
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() {
15522
15519
  this._hash = new s.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
15523
15520
  }, _doProcessBlock: function(k, E) {
15524
- 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++) {
15525
- if (K < 16)
15526
- 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];
15527
15524
  else {
15528
- var J = l[K - 3] ^ l[K - 8] ^ l[K - 14] ^ l[K - 16];
15529
- 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;
15530
15527
  }
15531
- var te = (j << 5 | j >>> 27) + D + l[K];
15532
- 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;
15533
15530
  }
15534
- 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;
15535
15532
  }, _doFinalize: function() {
15536
15533
  var k = this._data, E = k.words, P = 8 * this._nDataBytes, j = 8 * k.sigBytes;
15537
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;
@@ -15545,34 +15542,34 @@ var Ii = { exports: {} };
15545
15542
  var s = i, u = s.lib, p = u.WordArray, l = u.Hasher, m = s.algo, f = [], k = [];
15546
15543
  (function() {
15547
15544
  function j(D) {
15548
- for (var K = a.sqrt(D), J = 2; J <= K; J++)
15545
+ for (var G = a.sqrt(D), J = 2; J <= G; J++)
15549
15546
  if (!(D % J))
15550
15547
  return !1;
15551
15548
  return !0;
15552
15549
  }
15553
- function q(D) {
15550
+ function K(D) {
15554
15551
  return 4294967296 * (D - (0 | D)) | 0;
15555
15552
  }
15556
15553
  for (var z = 2, T = 0; T < 64; )
15557
- 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++;
15558
15555
  })();
15559
15556
  var E = [], P = m.SHA256 = l.extend({ _doReset: function() {
15560
15557
  this._hash = new p.init(f.slice(0));
15561
- }, _doProcessBlock: function(j, q) {
15562
- 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++) {
15563
15560
  if (ye < 16)
15564
- E[ye] = 0 | j[q + ye];
15561
+ E[ye] = 0 | j[K + ye];
15565
15562
  else {
15566
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;
15567
15564
  E[ye] = Qt + E[ye - 7] + an + E[ye - 16];
15568
15565
  }
15569
- 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];
15570
- 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;
15571
15568
  }
15572
- 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;
15573
15570
  }, _doFinalize: function() {
15574
- var j = this._data, q = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15575
- 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;
15576
15573
  }, clone: function() {
15577
15574
  var j = l.clone.call(this);
15578
15575
  return j._hash = this._hash.clone(), j;
@@ -15593,11 +15590,11 @@ var Ii = { exports: {} };
15593
15590
  })();
15594
15591
  var P = m.SHA512 = s.extend({ _doReset: function() {
15595
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)]);
15596
- }, _doProcessBlock: function(j, q) {
15597
- 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++) {
15598
15595
  var vt = E[je];
15599
15596
  if (je < 16)
15600
- 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];
15601
15598
  else {
15602
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;
15603
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;
@@ -15605,10 +15602,10 @@ var Ii = { exports: {} };
15605
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;
15606
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;
15607
15604
  }
15608
- 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);
15609
15606
  }, _doFinalize: function() {
15610
- var j = this._data, q = j.words, z = 8 * this._nDataBytes, T = 8 * j.sigBytes;
15611
- 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();
15612
15609
  }, clone: function() {
15613
15610
  var j = s.clone.call(this);
15614
15611
  return j._hash = this._hash.clone(), j;
@@ -15628,7 +15625,7 @@ var Ii = { exports: {} };
15628
15625
  }
15629
15626
  return C;
15630
15627
  }
15631
- function q(v) {
15628
+ function K(v) {
15632
15629
  for (var y = 1; y < arguments.length; y++) {
15633
15630
  var C = arguments[y] != null ? arguments[y] : {};
15634
15631
  y % 2 ? j(Object(C), !0).forEach(function(I) {
@@ -15656,11 +15653,11 @@ var Ii = { exports: {} };
15656
15653
  (function(v) {
15657
15654
  v.SHA1 = "sha1", v.SHA256 = "sha256", v.SHA512 = "sha512";
15658
15655
  })(i || (i = {}));
15659
- var K, J = D(i);
15656
+ var G, J = D(i);
15660
15657
  (function(v) {
15661
15658
  v.ASCII = "ascii", v.BASE64 = "base64", v.HEX = "hex", v.LATIN1 = "latin1", v.UTF8 = "utf8";
15662
- })(K || (K = {}));
15663
- var te, Z = D(K);
15659
+ })(G || (G = {}));
15660
+ var te, Z = D(G);
15664
15661
  (function(v) {
15665
15662
  v.HOTP = "hotp", v.TOTP = "totp";
15666
15663
  })(te || (te = {}));
@@ -15756,7 +15753,7 @@ var Ii = { exports: {} };
15756
15753
  });
15757
15754
  }
15758
15755
  return C;
15759
- }({}, { 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);
15760
15757
  return _n(y), Object.freeze(y);
15761
15758
  }
15762
15759
  function Te(v, y, C) {
@@ -15810,23 +15807,23 @@ var Ii = { exports: {} };
15810
15807
  (function(M, H) {
15811
15808
  if (!(M instanceof H))
15812
15809
  throw new TypeError("Cannot call a class as a function");
15813
- })(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({});
15814
15811
  }
15815
15812
  var y, C;
15816
15813
  return y = v, (C = [{ key: "create", value: function() {
15817
15814
  var I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
15818
15815
  return new v(I);
15819
15816
  } }, { key: "clone", value: function() {
15820
- 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));
15821
15818
  return M.options = this._options, M;
15822
15819
  } }, { key: "allOptions", value: function() {
15823
15820
  return this.options;
15824
15821
  } }, { key: "resetOptions", value: function() {
15825
15822
  this._options = Object.freeze({});
15826
15823
  } }, { key: "options", get: function() {
15827
- return Object.freeze(q({}, this._defaultOptions, {}, this._options));
15824
+ return Object.freeze(K({}, this._defaultOptions, {}, this._options));
15828
15825
  }, set: function(I) {
15829
- this._options = Object.freeze(q({}, this._options, {}, I));
15826
+ this._options = Object.freeze(K({}, this._options, {}, I));
15830
15827
  } }]) && T(y.prototype, C), v;
15831
15828
  }());
15832
15829
  function Le(v) {
@@ -15945,7 +15942,7 @@ var Ii = { exports: {} };
15945
15942
  }
15946
15943
  };
15947
15944
  function vn(v) {
15948
- 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);
15949
15946
  return zt(y), Object.freeze(y);
15950
15947
  }
15951
15948
  function Tt(v, y) {
@@ -16074,7 +16071,7 @@ var Ii = { exports: {} };
16074
16071
  });
16075
16072
  }
16076
16073
  return C;
16077
- }({}, { 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);
16078
16075
  return function(C) {
16079
16076
  if (zt(C), typeof C.keyDecoder != "function")
16080
16077
  throw new Error("Expecting options.keyDecoder to be a function.");
@@ -16191,7 +16188,7 @@ const Ai = {
16191
16188
  }
16192
16189
  },
16193
16190
  async mounted() {
16194
- 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);
16195
16192
  },
16196
16193
  methods: {
16197
16194
  otpSubmitted(n) {
@@ -16213,10 +16210,10 @@ const Ai = {
16213
16210
  }
16214
16211
  },
16215
16212
  async cancelMFA() {
16216
- G.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
16213
+ q.$emit("ssoEvent", { name: "mfaCancel", data: !0 });
16217
16214
  },
16218
16215
  async validateMFA() {
16219
- G.$emit("toggleOTPModal", !0);
16216
+ q.$emit("toggleOTPModal", !0);
16220
16217
  }
16221
16218
  }
16222
16219
  }, Vs = {
@@ -16339,7 +16336,7 @@ const Ai = {
16339
16336
  if (this.$route.path === "/login/callback/saml")
16340
16337
  return await this.handleSamlRedirect();
16341
16338
  this.$route.query.qrLogin && this.changeLoginToQr(), setTimeout(() => {
16342
- 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 });
16343
16340
  }, 2500);
16344
16341
  }
16345
16342
  },
@@ -16361,10 +16358,10 @@ const Ai = {
16361
16358
  t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
16362
16359
  },
16363
16360
  close() {
16364
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16361
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16365
16362
  },
16366
16363
  createAccountModal() {
16367
- G.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16364
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
16368
16365
  }
16369
16366
  },
16370
16367
  watch: {
@@ -16664,7 +16661,7 @@ const wo = /* @__PURE__ */ mt(Qs, [["render", qc]]), Kc = /* @__PURE__ */ Object
16664
16661
  };
16665
16662
  },
16666
16663
  mounted() {
16667
- 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));
16668
16665
  },
16669
16666
  methods: {
16670
16667
  async submit() {
@@ -16688,13 +16685,13 @@ const wo = /* @__PURE__ */ mt(Qs, [["render", qc]]), Kc = /* @__PURE__ */ Object
16688
16685
  captchaToken: await this.getCaptchaToken("account_verify"),
16689
16686
  ref: this.referral
16690
16687
  }, e = await this.register(n);
16691
- 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 })));
16692
16689
  },
16693
16690
  close() {
16694
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16691
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16695
16692
  },
16696
16693
  loginAccountModal() {
16697
- G.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
16694
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
16698
16695
  }
16699
16696
  },
16700
16697
  watch: {
@@ -16962,7 +16959,7 @@ const bo = /* @__PURE__ */ mt(Gc, [["render", Ul]]), Bl = /* @__PURE__ */ Object
16962
16959
  },
16963
16960
  methods: {
16964
16961
  init() {
16965
- 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 }));
16966
16963
  },
16967
16964
  async submit() {
16968
16965
  if (this.code.length !== 6)
@@ -16977,13 +16974,13 @@ const bo = /* @__PURE__ */ mt(Gc, [["render", Ul]]), Bl = /* @__PURE__ */ Object
16977
16974
  return !1;
16978
16975
  this.submitted = !0;
16979
16976
  let e = await this.verify(n);
16980
- 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;
16981
16978
  },
16982
16979
  registerAccountModal() {
16983
- G.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
16980
+ q.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
16984
16981
  },
16985
16982
  close() {
16986
- G.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16983
+ q.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
16987
16984
  }
16988
16985
  },
16989
16986
  watch: {
@@ -17151,7 +17148,7 @@ const ko = /* @__PURE__ */ mt(Dl, [["render", du], ["__scopeId", "data-v-89d98ef
17151
17148
  this.mfaEnable || delete n.otpSecret, this.loading = !0;
17152
17149
  const [e, t] = await he($e.setMfa(n, this.$storex));
17153
17150
  if (this.loading = !1, e)
17154
- return G.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
17151
+ return q.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
17155
17152
  t.data.success && (this.getAccountSettings(), this.successSnack(t.data.message));
17156
17153
  }
17157
17154
  }
@@ -17267,7 +17264,7 @@ const Co = /* @__PURE__ */ mt(hu, [["render", Lu]]), zu = /* @__PURE__ */ Object
17267
17264
  };
17268
17265
  },
17269
17266
  mounted() {
17270
- 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 });
17271
17268
  },
17272
17269
  methods: {
17273
17270
  async resetEmail() {
@@ -17537,11 +17534,11 @@ const To = /* @__PURE__ */ mt(wd, [["render", Td]]), Sd = /* @__PURE__ */ Object
17537
17534
  };
17538
17535
  },
17539
17536
  mounted() {
17540
- G.$on("closeModal", () => {
17537
+ q.$on("closeModal", () => {
17541
17538
  this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
17542
- }), G.$on("openModalOverlay", () => {
17539
+ }), q.$on("openModalOverlay", () => {
17543
17540
  this.toggle = !0;
17544
- }), 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);
17545
17542
  },
17546
17543
  methods: {
17547
17544
  toggleModal(n = !0) {
@@ -17549,7 +17546,7 @@ const To = /* @__PURE__ */ mt(wd, [["render", Td]]), Sd = /* @__PURE__ */ Object
17549
17546
  },
17550
17547
  toggleEmit() {
17551
17548
  var n, e;
17552
- !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");
17553
17550
  }
17554
17551
  }
17555
17552
  };
@@ -17570,16 +17567,16 @@ const Ri = /* @__PURE__ */ mt(Id, [["render", Ad], ["__scopeId", "data-v-17c9581
17570
17567
  };
17571
17568
  },
17572
17569
  mounted() {
17573
- G.$on("toggleSSOModal", this.toggleModal), G.$on("closeModal", () => {
17570
+ q.$on("toggleSSOModal", this.toggleModal), q.$on("closeModal", () => {
17574
17571
  this.toggle = !1;
17575
17572
  });
17576
17573
  },
17577
17574
  beforeDestroy() {
17578
- G._events.toggleSSOModal.pop();
17575
+ q._events.toggleSSOModal.pop();
17579
17576
  },
17580
17577
  methods: {
17581
17578
  forceClose() {
17582
- G.$emit("closeModal");
17579
+ q.$emit("closeModal");
17583
17580
  },
17584
17581
  close() {
17585
17582
  this.toggleModal();
@@ -17591,7 +17588,7 @@ const Ri = /* @__PURE__ */ mt(Id, [["render", Ad], ["__scopeId", "data-v-17c9581
17591
17588
  let e;
17592
17589
  if (!(!n || n.error))
17593
17590
  if (e = Object.keys(n.sso), e.length)
17594
- 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", {
17595
17592
  sso: n.sso,
17596
17593
  email: this.email
17597
17594
  }));
@@ -17664,16 +17661,16 @@ const Pi = /* @__PURE__ */ mt(Rd, [["render", Bd], ["__scopeId", "data-v-11f19a0
17664
17661
  };
17665
17662
  },
17666
17663
  mounted() {
17667
- G.$on("toggleOTPModal", this.toggleModal), G.$on("closeModal", () => {
17664
+ q.$on("toggleOTPModal", this.toggleModal), q.$on("closeModal", () => {
17668
17665
  this.toggle = !1;
17669
17666
  });
17670
17667
  },
17671
17668
  beforeDestroy() {
17672
- G._events.toggleOTPModal.pop();
17669
+ q._events.toggleOTPModal.pop();
17673
17670
  },
17674
17671
  methods: {
17675
17672
  forceClose() {
17676
- G.$emit("closeModal");
17673
+ q.$emit("closeModal");
17677
17674
  },
17678
17675
  close() {
17679
17676
  this.toggleModal();
@@ -17681,7 +17678,7 @@ const Pi = /* @__PURE__ */ mt(Rd, [["render", Bd], ["__scopeId", "data-v-11f19a0
17681
17678
  async submit() {
17682
17679
  if (!this.otp || this.otp.length !== 6)
17683
17680
  return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
17684
- 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;
17685
17682
  },
17686
17683
  toggleModal() {
17687
17684
  this.toggle = !this.toggle;
@@ -17762,16 +17759,16 @@ const Ni = /* @__PURE__ */ mt(Dd, [["render", Xd], ["__scopeId", "data-v-2b6d626
17762
17759
  };
17763
17760
  },
17764
17761
  mounted() {
17765
- G.$on("toggleSSOPickModal", this.toggleModal), G.$on("closeModal", () => {
17762
+ q.$on("toggleSSOPickModal", this.toggleModal), q.$on("closeModal", () => {
17766
17763
  this.toggle = !1;
17767
17764
  });
17768
17765
  },
17769
17766
  beforeDestroy() {
17770
- G._events.toggleSSOPickModal.pop();
17767
+ q._events.toggleSSOPickModal.pop();
17771
17768
  },
17772
17769
  methods: {
17773
17770
  forceClose() {
17774
- G.$emit("closeModal");
17771
+ q.$emit("closeModal");
17775
17772
  },
17776
17773
  close() {
17777
17774
  this.toggleModal();
@@ -17993,24 +17990,24 @@ const yp = /* @__PURE__ */ mt(hp, [["render", vp]]), wp = {
17993
17990
  };
17994
17991
  },
17995
17992
  async mounted() {
17996
- G.$on("toggleSSOLanguageModal", this.toggleModal), G.$on("closeModal", () => {
17993
+ q.$on("toggleSSOLanguageModal", this.toggleModal), q.$on("closeModal", () => {
17997
17994
  this.toggle = !1;
17998
17995
  });
17999
17996
  let n = this.isNative ? await vr.getLanguageCode() : jn.getFirstBrowserLanguage();
18000
17997
  n && wp.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
18001
17998
  },
18002
17999
  beforeDestroy() {
18003
- G._events.toggleSSOLanguageModal.pop();
18000
+ q._events.toggleSSOLanguageModal.pop();
18004
18001
  },
18005
18002
  methods: {
18006
18003
  forceClose() {
18007
- G.$emit("closeModal");
18004
+ q.$emit("closeModal");
18008
18005
  },
18009
18006
  close() {
18010
18007
  this.forceClose();
18011
18008
  },
18012
18009
  async updateLanguage(n) {
18013
- this.updateLang(n), G.$emit("closeModal");
18010
+ this.updateLang(n), q.$emit("closeModal");
18014
18011
  },
18015
18012
  toggleModal() {
18016
18013
  this.toggle = !this.toggle;
@@ -18304,7 +18301,7 @@ const Rp = { id: "ssoapp" }, Pp = {
18304
18301
  }
18305
18302
  },
18306
18303
  async mounted() {
18307
- 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));
18308
18305
  },
18309
18306
  methods: {
18310
18307
  async init() {
@@ -18318,13 +18315,13 @@ const Rp = { id: "ssoapp" }, Pp = {
18318
18315
  this.$emit("ssoEvent", n);
18319
18316
  },
18320
18317
  ssoIncomingEvent(n) {
18321
- G.$emit(n.name, n.data);
18318
+ q.$emit(n.name, n.data);
18322
18319
  },
18323
18320
  applyBgStyle() {
18324
18321
  this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
18325
18322
  },
18326
18323
  toggleSSOLanguageModal() {
18327
- G.$emit("toggleSSOLanguageModal", !0);
18324
+ q.$emit("toggleSSOLanguageModal", !0);
18328
18325
  }
18329
18326
  },
18330
18327
  watch: {
@@ -18409,7 +18406,7 @@ const Rp = { id: "ssoapp" }, Pp = {
18409
18406
  };
18410
18407
  export {
18411
18408
  at as A,
18412
- G as E,
18409
+ q as E,
18413
18410
  Vs as Q,
18414
18411
  mt as _,
18415
18412
  rh as i