@tapni/auth 0.0.84 → 0.0.86

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.
@@ -1,4 +1,4 @@
1
- import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as U, createCommentVNode as ne, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
1
+ import { reactive as Ko, readonly as Go, resolveComponent as Dt, openBlock as S, createElementBlock as P, createElementVNode as y, toDisplayString as z, createCommentVNode as ne, createVNode as ke, withCtx as nt, createTextVNode as se, pushScopeId as Ht, popScopeId as qt, createStaticVNode as Vo, nextTick as vr, withModifiers as Oe, normalizeStyle as Ot, withDirectives as me, withKeys as kt, vModelText as wt, vModelDynamic as dn, vShow as mt, createBlock as qe, normalizeClass as Ie, unref as Qo } from "vue";
2
2
  import { RouterView as Yo } from "vue-router";
3
3
  import Z from "await-to-js";
4
4
  import Xn from "axios";
@@ -8,7 +8,7 @@ import { Capacitor as Qt, registerPlugin as In, WebPlugin as Wo } from "@capacit
8
8
  import { Browser as hn } from "@capacitor/browser";
9
9
  import $o from "qr-code-styling";
10
10
  import { sanitizeUrl as Jo } from "@braintree/sanitize-url";
11
- const Xo = "0.0.84";
11
+ const Xo = "0.0.86";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
@@ -169,7 +169,7 @@ const Ne = {
169
169
  qrCodePooling(n, e) {
170
170
  return xn(e).post("/company/login/qr", n);
171
171
  }
172
- }, cn = Ko(/* @__PURE__ */ new Map()), z = {
172
+ }, cn = Ko(/* @__PURE__ */ new Map()), U = {
173
173
  $on(n, e) {
174
174
  let t = cn.get(n);
175
175
  t || (t = /* @__PURE__ */ new Set(), cn.set(n, t)), t.add(e);
@@ -185,7 +185,7 @@ const Ne = {
185
185
  t && t.delete(e);
186
186
  }
187
187
  };
188
- Go(z);
188
+ Go(U);
189
189
  const Fr = {
190
190
  state: {
191
191
  english: "English",
@@ -4388,7 +4388,7 @@ const ze = {
4388
4388
  }
4389
4389
  },
4390
4390
  mounted() {
4391
- this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.$storage.realm = this.$route.query.realm), z.$on("updateLang", this.updateLang), ti.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4391
+ this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.$storage.realm = this.$route.query.realm), U.$on("updateLang", this.updateLang), ti.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4392
4392
  },
4393
4393
  methods: {
4394
4394
  errorHandler(n) {
@@ -4463,15 +4463,15 @@ const ze = {
4463
4463
  ]);
4464
4464
  },
4465
4465
  async switchAccount(n) {
4466
- this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction({ id: this.loggedInAccounts[n].id }), z.$emit("ssoEvent", {
4466
+ this.$storage.username = n, this.$storage.UserId = this.loggedInAccounts[n].id, this.setLoggedInUserId(this.loggedInAccounts[n].id), this.setRefreshToken(this.loggedInAccounts[n].refreshToken), await this.refreshTokenAction({ id: this.loggedInAccounts[n].id }), U.$emit("ssoEvent", {
4467
4467
  name: "switchAccount",
4468
4468
  data: { lang: this.appLanguage, username: n }
4469
4469
  });
4470
4470
  },
4471
4471
  async refreshTokenAction(n) {
4472
4472
  return new Promise(async (e, t) => {
4473
- if (console.log("auth-refreshTokenAction", n), !this.refreshToken || this.refreshing)
4474
- return console.log("return-refreshTokenAction", this.refreshToken, this.refreshing), t(null);
4473
+ if (!this.refreshToken || this.refreshing)
4474
+ return t(null);
4475
4475
  this.refreshing = !0;
4476
4476
  const [r, o] = await Z(
4477
4477
  Ne.refreshToken({
@@ -4482,7 +4482,7 @@ const ze = {
4482
4482
  );
4483
4483
  if (r && r.response && r.response.data.error === "ACCESS_DENIED")
4484
4484
  return this.logout(!1), location.reload();
4485
- o && o.data ? (this.setToken(o.data.token), z.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), e(o.data.token)) : t("Invalid response setToken"), this.refreshing = !1;
4485
+ o && o.data ? (this.setToken(o.data.token), U.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), e(o.data.token)) : t("Invalid response setToken"), this.refreshing = !1;
4486
4486
  });
4487
4487
  },
4488
4488
  async login(n) {
@@ -4506,7 +4506,7 @@ const ze = {
4506
4506
  { code: n.data.auth_code, state: this.$route.query.state },
4507
4507
  e
4508
4508
  );
4509
- }) : this.display === "npm" && (z.$emit("ssoEvent", { name: "setLoading", data: !0 }), z.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), z.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: n.data.data.username } }), n.isModal && (z.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + n.data.data.username + "#edit"));
4509
+ }) : this.display === "npm" && (U.$emit("ssoEvent", { name: "setLoading", data: !0 }), U.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), U.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: n.data.data.username } }), n.isModal && (U.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + n.data.data.username + "#edit"));
4510
4510
  },
4511
4511
  async register(n) {
4512
4512
  const [e, t] = await Z(
@@ -4617,7 +4617,7 @@ const ze = {
4617
4617
  setLoggedInAccounts(n) {
4618
4618
  this.loggedInAccounts = {}, n.forEach((e) => {
4619
4619
  this.loggedInAccounts[e.username] = e;
4620
- }), z.$emit("ssoEvent", { name: "setLoggedInAccounts", data: n });
4620
+ }), U.$emit("ssoEvent", { name: "setLoggedInAccounts", data: n });
4621
4621
  },
4622
4622
  setLoggedInUserId(n) {
4623
4623
  this.loggedInUserId = n;
@@ -4670,11 +4670,11 @@ const ze = {
4670
4670
  console.log("Play was interrupted:", e);
4671
4671
  });
4672
4672
  }), setTimeout(() => {
4673
- this.$storage.token ? this.$router.push(this.home) : z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4674
- }, 2500), z.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4673
+ this.$storage.token ? this.$router.push(this.home) : U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4674
+ }, 2500);
4675
4675
  },
4676
4676
  methods: {}
4677
- }, $r = (n) => (Ht("data-v-c4cf0a57"), n = n(), qt(), n), ri = {
4677
+ }, $r = (n) => (Ht("data-v-67088d6f"), n = n(), qt(), n), ri = {
4678
4678
  class: "page-login content-boxed content-boxed-padding center-text",
4679
4679
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
4680
4680
  }, oi = ["autoplay"], ii = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("source", {
@@ -4685,7 +4685,7 @@ const ze = {
4685
4685
  ], si = { class: "bold full-top no-bottom center-text" }, ci = { class: "full-bottom half-top center-text color-black font-16" }, li = { class: "page-login-links center-text" }, ui = /* @__PURE__ */ $r(() => /* @__PURE__ */ y("div", { class: "clear" }, null, -1)), di = {
4686
4686
  key: 2,
4687
4687
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4688
- }, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c4cf0a57><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c4cf0a57></a>', 3), hi = [
4688
+ }, pi = /* @__PURE__ */ Vo('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-67088d6f><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-67088d6f></a>', 3), hi = [
4689
4689
  pi
4690
4690
  ];
4691
4691
  function mi(n, e, t, r, o, i) {
@@ -4700,8 +4700,8 @@ function mi(n, e, t, r, o, i) {
4700
4700
  style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
4701
4701
  autoplay: n.isNative
4702
4702
  }, ai, 8, oi),
4703
- y("h1", si, U(n.ssoLang[this.appLanguage].welcome), 1),
4704
- y("p", ci, U(n.ssoLang[this.appLanguage].welcome_p1), 1),
4703
+ y("h1", si, z(n.ssoLang[this.appLanguage].welcome), 1),
4704
+ y("p", ci, z(n.ssoLang[this.appLanguage].welcome_p1), 1),
4705
4705
  ne("", !0),
4706
4706
  ne("", !0),
4707
4707
  ke(a, {
@@ -4710,15 +4710,15 @@ function mi(n, e, t, r, o, i) {
4710
4710
  class: "button-center button button-90 google-button bg-tapni-grey pointer"
4711
4711
  }, {
4712
4712
  default: nt(() => [
4713
- y("span", null, U(n.ssoLang[this.appLanguage].create_account), 1)
4713
+ y("span", null, z(n.ssoLang[this.appLanguage].create_account), 1)
4714
4714
  ]),
4715
4715
  _: 1
4716
4716
  }),
4717
4717
  y("div", li, [
4718
4718
  ke(a, { to: "/login" }, {
4719
4719
  default: nt(() => [
4720
- se(U(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4721
- y("b", null, U(n.ssoLang[this.appLanguage].sign_in), 1)
4720
+ se(z(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4721
+ y("b", null, z(n.ssoLang[this.appLanguage].sign_in), 1)
4722
4722
  ]),
4723
4723
  _: 1
4724
4724
  }),
@@ -4727,7 +4727,7 @@ function mi(n, e, t, r, o, i) {
4727
4727
  this.isNative ? ne("", !0) : (S(), P("div", di, hi))
4728
4728
  ]);
4729
4729
  }
4730
- const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a57"]]), wr = In("GoogleAuth", {
4730
+ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6f"]]), wr = In("GoogleAuth", {
4731
4731
  web: () => import("./web-5VtGcKeU.js").then((n) => new n.GoogleAuthWeb())
4732
4732
  }), Xr = {
4733
4733
  data() {
@@ -4755,7 +4755,7 @@ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a5
4755
4755
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4756
4756
  const [r, o] = await Z(Ne.googleSDK(e, this.$storage));
4757
4757
  if (r)
4758
- return this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4758
+ return this.googleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4759
4759
  if (o.data.success) {
4760
4760
  if (this.display === "popup")
4761
4761
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -4765,7 +4765,7 @@ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-c4cf0a5
4765
4765
  } else
4766
4766
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4767
4767
  } else
4768
- this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4768
+ this.googleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4769
4769
  }
4770
4770
  }
4771
4771
  }, fi = In("FacebookLogin", {
@@ -4810,17 +4810,17 @@ const Zr = {
4810
4810
  if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
4811
4811
  const [o, i] = await Z(Ne.facebookSDK(t, this.$storage));
4812
4812
  if (o)
4813
- return this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4813
+ return this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4814
4814
  if (i.data.success) {
4815
4815
  if (this.display === "popup")
4816
4816
  return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
4817
4817
  await this.loginSetup(i), await this.getLoggedInAccounts(), this.$router.push("/" + i.data.data.username + "#edit"), setTimeout(() => {
4818
- this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4818
+ this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4819
4819
  }, 1e3);
4820
4820
  } else
4821
4821
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4822
4822
  } else
4823
- this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4823
+ this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4824
4824
  }
4825
4825
  }
4826
4826
  }, gi = In("SignInWithApple", {
@@ -4852,7 +4852,7 @@ const Zr = {
4852
4852
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4853
4853
  const [r, o] = await Z(Ne.appleSDK(e.response, this.$storage));
4854
4854
  if (r)
4855
- return this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4855
+ return this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4856
4856
  if (o.data.success) {
4857
4857
  if (this.display === "popup")
4858
4858
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -4862,7 +4862,7 @@ const Zr = {
4862
4862
  } else
4863
4863
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4864
4864
  } else
4865
- this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4865
+ this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4866
4866
  }
4867
4867
  }
4868
4868
  };
@@ -13687,7 +13687,7 @@ const An = {
13687
13687
  Ne.microsoftSDK(r, this.$storage)
13688
13688
  );
13689
13689
  if (s)
13690
- return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13690
+ return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13691
13691
  if (u.data.success) {
13692
13692
  if (this.display === "popup")
13693
13693
  return (a = window.parent) == null ? void 0 : a.postMessage(
@@ -13700,10 +13700,10 @@ const An = {
13700
13700
  } else
13701
13701
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
13702
13702
  } else
13703
- this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
13703
+ this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
13704
13704
  },
13705
13705
  ssoLogin() {
13706
- z.$emit("toggleSSOModal");
13706
+ U.$emit("toggleSSOModal");
13707
13707
  }
13708
13708
  }
13709
13709
  }, Ut = {
@@ -13816,12 +13816,12 @@ const An = {
13816
13816
  localStorage.removeItem("pkce_code_verifier");
13817
13817
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
13818
13818
  if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(Ne.oktaSDK(r, this.$storage)), e)
13819
- return this.oktaLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
13819
+ return this.oktaLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
13820
13820
  if (t.data.success) {
13821
13821
  if (this.display === "popup")
13822
13822
  return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
13823
13823
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
13824
- this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
13824
+ this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
13825
13825
  }, 1e3);
13826
13826
  } else
13827
13827
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
@@ -13846,7 +13846,7 @@ const An = {
13846
13846
  const a = new URLSearchParams(e);
13847
13847
  t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
13848
13848
  }
13849
- window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await hn.close(), z.$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"), z.$emit("ssoEvent", { name: "setLoading", data: !1 }));
13849
+ window.opener ? (window.opener.postMessage(i, location.origin), window.close()) : (this.isNative && this.isIOS && await hn.close(), U.$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"), U.$emit("ssoEvent", { name: "setLoading", data: !1 }));
13850
13850
  }
13851
13851
  }
13852
13852
  };
@@ -14940,12 +14940,12 @@ const La = fo.Buffer, Mn = {
14940
14940
  if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
14941
14941
  window.opener.postMessage(e, location.origin), window.close();
14942
14942
  else {
14943
- if (this.isNative && this.isIOS && await hn.close(), z.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
14943
+ if (this.isNative && this.isIOS && await hn.close(), U.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (n = this.$route.query.code), console.log(this.display, { code: n }), n) {
14944
14944
  if (this.display === "popup")
14945
14945
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
14946
14946
  await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
14947
14947
  }
14948
- localStorage.removeItem("pkce_code_verifier"), z.$emit("ssoEvent", { name: "setLoading", data: !1 });
14948
+ localStorage.removeItem("pkce_code_verifier"), U.$emit("ssoEvent", { name: "setLoading", data: !1 });
14949
14949
  }
14950
14950
  }
14951
14951
  }
@@ -15066,7 +15066,7 @@ const La = fo.Buffer, Mn = {
15066
15066
  return await this.handleOktaRedirect();
15067
15067
  if (this.$route.path === "/login/callback/saml")
15068
15068
  return await this.handleSamlRedirect();
15069
- this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && z.$emit("ssoEvent", { name: "setLoading", data: !1 }), z.$emit("ssoEvent", { name: "setInitialize", data: !0 });
15069
+ this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && U.$emit("ssoEvent", { name: "setLoading", data: !1 });
15070
15070
  }
15071
15071
  },
15072
15072
  methods: {
@@ -15086,10 +15086,10 @@ const La = fo.Buffer, Mn = {
15086
15086
  t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
15087
15087
  },
15088
15088
  close() {
15089
- z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15089
+ U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15090
15090
  },
15091
15091
  createAccountModal() {
15092
- z.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
15092
+ U.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
15093
15093
  }
15094
15094
  },
15095
15095
  watch: {
@@ -15198,7 +15198,7 @@ function Ps(n, e, t, r, o, i) {
15198
15198
  class: "color-black pull-right pointer",
15199
15199
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15200
15200
  }, xa)) : ne("", !0),
15201
- y("h1", Ba, U(this.ssoLang[this.appLanguage].login), 1),
15201
+ y("h1", Ba, z(this.ssoLang[this.appLanguage].login), 1),
15202
15202
  Da,
15203
15203
  i.displayFormLogin ? (S(), P("span", Ha, [
15204
15204
  y("div", qa, [
@@ -15244,7 +15244,7 @@ function Ps(n, e, t, r, o, i) {
15244
15244
  ])
15245
15245
  ]),
15246
15246
  y("button", $a, [
15247
- o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, U(n.ssoLang[n.appLanguage].login), 1))
15247
+ o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, z(n.ssoLang[n.appLanguage].login), 1))
15248
15248
  ])
15249
15249
  ])) : ne("", !0),
15250
15250
  Za,
@@ -15254,7 +15254,7 @@ function Ps(n, e, t, r, o, i) {
15254
15254
  class: "button-center button button-90 google-button pointer"
15255
15255
  }, [
15256
15256
  es,
15257
- n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, U(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
15257
+ n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, z(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
15258
15258
  ])) : ne("", !0),
15259
15259
  n.displayGoogleLogin ? (S(), P("a", {
15260
15260
  key: 3,
@@ -15262,7 +15262,7 @@ function Ps(n, e, t, r, o, i) {
15262
15262
  class: "button-center button button-90 google-button pointer"
15263
15263
  }, [
15264
15264
  rs,
15265
- n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, U(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
15265
+ n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, z(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
15266
15266
  ])) : ne("", !0),
15267
15267
  n.displayFacebookLogin ? (S(), P("a", {
15268
15268
  key: 4,
@@ -15270,7 +15270,7 @@ function Ps(n, e, t, r, o, i) {
15270
15270
  class: "button-center button button-90 google-button pointer"
15271
15271
  }, [
15272
15272
  as,
15273
- n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, U(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
15273
+ n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, z(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
15274
15274
  ])) : ne("", !0),
15275
15275
  n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
15276
15276
  key: 5,
@@ -15278,7 +15278,7 @@ function Ps(n, e, t, r, o, i) {
15278
15278
  class: "button-center button button-90 google-button pointer"
15279
15279
  }, [
15280
15280
  ls,
15281
- n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15281
+ n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15282
15282
  ])),
15283
15283
  n.displayMicrosoftSSOLogin ? ne("", !0) : (S(), P("a", {
15284
15284
  key: 6,
@@ -15286,7 +15286,7 @@ function Ps(n, e, t, r, o, i) {
15286
15286
  class: "button-center button button-90 google-button pointer"
15287
15287
  }, [
15288
15288
  ps,
15289
- n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
15289
+ n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, z(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
15290
15290
  ])),
15291
15291
  n.displayMicrosoftSSOLogin ? (S(), P("a", {
15292
15292
  key: 7,
@@ -15294,7 +15294,7 @@ function Ps(n, e, t, r, o, i) {
15294
15294
  class: "button-center button button-90 google-button pointer"
15295
15295
  }, [
15296
15296
  fs,
15297
- n.microsoftSSOLoad ? (S(), P("span", gs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
15297
+ n.microsoftSSOLoad ? (S(), P("span", gs, z(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
15298
15298
  ])) : ne("", !0),
15299
15299
  i.displayFormLogin ? ne("", !0) : (S(), P("a", {
15300
15300
  key: 8,
@@ -15302,15 +15302,15 @@ function Ps(n, e, t, r, o, i) {
15302
15302
  class: "button-center button button-90 google-button pointer"
15303
15303
  }, [
15304
15304
  vs,
15305
- y("span", null, U(n.ssoLang[n.appLanguage].sign_in_with) + " Email", 1)
15305
+ y("span", null, z(n.ssoLang[n.appLanguage].sign_in_with) + " Email", 1)
15306
15306
  ])),
15307
15307
  ys,
15308
15308
  y("p", ks, [
15309
- se(U(n.ssoLang[n.appLanguage].terms_by_signing_in) + " ", 1),
15309
+ se(z(n.ssoLang[n.appLanguage].terms_by_signing_in) + " ", 1),
15310
15310
  ws,
15311
- y("a", bs, U(n.ssoLang[this.appLanguage].terms_of_service), 1),
15312
- se(" " + U(n.ssoLang[n.appLanguage].and) + " ", 1),
15313
- y("a", Cs, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
15311
+ y("a", bs, z(n.ssoLang[this.appLanguage].terms_of_service), 1),
15312
+ se(" " + z(n.ssoLang[n.appLanguage].and) + " ", 1),
15313
+ y("a", Cs, z(n.ssoLang[this.appLanguage].privacy_policy), 1)
15314
15314
  ]),
15315
15315
  Es,
15316
15316
  t.isModal ? (S(), P("div", {
@@ -15319,9 +15319,9 @@ function Ps(n, e, t, r, o, i) {
15319
15319
  onClick: e[12] || (e[12] = (...s) => i.createAccountModal && i.createAccountModal(...s))
15320
15320
  }, [
15321
15321
  y("a", Ss, [
15322
- se(U(n.ssoLang[n.appLanguage].or) + " ", 1),
15322
+ se(z(n.ssoLang[n.appLanguage].or) + " ", 1),
15323
15323
  As,
15324
- se(" " + U(n.ssoLang[n.appLanguage].create_new_account), 1)
15324
+ se(" " + z(n.ssoLang[n.appLanguage].create_new_account), 1)
15325
15325
  ]),
15326
15326
  Rs
15327
15327
  ])) : (S(), P("div", Ts, [
@@ -15331,7 +15331,7 @@ function Ps(n, e, t, r, o, i) {
15331
15331
  to: "/register"
15332
15332
  }, {
15333
15333
  default: nt(() => [
15334
- se(U(n.ssoLang[n.appLanguage].create_account), 1)
15334
+ se(z(n.ssoLang[n.appLanguage].create_account), 1)
15335
15335
  ]),
15336
15336
  _: 1
15337
15337
  })) : ne("", !0),
@@ -15341,7 +15341,7 @@ function Ps(n, e, t, r, o, i) {
15341
15341
  to: "/reset"
15342
15342
  }, {
15343
15343
  default: nt(() => [
15344
- se(U(n.ssoLang[n.appLanguage].reset_password), 1)
15344
+ se(z(n.ssoLang[n.appLanguage].reset_password), 1)
15345
15345
  ]),
15346
15346
  _: 1
15347
15347
  })) : ne("", !0),
@@ -15375,7 +15375,7 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15375
15375
  };
15376
15376
  },
15377
15377
  mounted() {
15378
- this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && z.$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.$storage.referral && (this.referral = this.$storage.referral));
15378
+ this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && U.$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.$storage.referral && (this.referral = this.$storage.referral));
15379
15379
  },
15380
15380
  methods: {
15381
15381
  async submit() {
@@ -15399,13 +15399,13 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15399
15399
  captchaToken: await this.getCaptchaToken("account_verify"),
15400
15400
  ref: this.referral
15401
15401
  }, e = await this.register(n);
15402
- this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? z.$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 })));
15402
+ this.submitted = !1, e.data && e.data.success && (e.data.message === "SUCCESS_REGISTER" ? (this.isModal ? U.$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 })));
15403
15403
  },
15404
15404
  close() {
15405
- z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15405
+ U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15406
15406
  },
15407
15407
  loginAccountModal() {
15408
- z.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
15408
+ U.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
15409
15409
  }
15410
15410
  },
15411
15411
  watch: {
@@ -15499,10 +15499,10 @@ function Cc(n, e, t, r, o, i) {
15499
15499
  class: "color-black pull-right pointer",
15500
15500
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15501
15501
  }, Ls)) : ne("", !0),
15502
- y("h1", Os, U(n.ssoLang[this.appLanguage].register), 1),
15502
+ y("h1", Os, z(n.ssoLang[this.appLanguage].register), 1),
15503
15503
  y("p", zs, [
15504
15504
  o.usernameRegister ? (S(), P("span", Us, [
15505
- se(" t.link/" + U(o.username) + " " + U(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
15505
+ se(" t.link/" + z(o.username) + " " + z(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
15506
15506
  xs
15507
15507
  ])) : ne("", !0)
15508
15508
  ]),
@@ -15567,7 +15567,7 @@ function Cc(n, e, t, r, o, i) {
15567
15567
  ])
15568
15568
  ]),
15569
15569
  y("button", Xs, [
15570
- o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, U(o.formButtonText), 1))
15570
+ o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, z(o.formButtonText), 1))
15571
15571
  ])
15572
15572
  ])) : ne("", !0),
15573
15573
  tc,
@@ -15577,14 +15577,14 @@ function Cc(n, e, t, r, o, i) {
15577
15577
  class: "button-center button button-90 google-button pointer"
15578
15578
  }, [
15579
15579
  nc,
15580
- n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
15580
+ n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
15581
15581
  ])) : ne("", !0),
15582
15582
  y("a", {
15583
15583
  onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
15584
15584
  class: "button-center button button-90 google-button pointer"
15585
15585
  }, [
15586
15586
  ic,
15587
- n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, U(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
15587
+ n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, z(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
15588
15588
  ]),
15589
15589
  n.displayFacebookLogin ? (S(), P("a", {
15590
15590
  key: 3,
@@ -15592,7 +15592,7 @@ function Cc(n, e, t, r, o, i) {
15592
15592
  class: "button-center button button-90 google-button pointer"
15593
15593
  }, [
15594
15594
  cc,
15595
- n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15595
+ n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15596
15596
  ])) : ne("", !0),
15597
15597
  o.emailLogin ? ne("", !0) : (S(), P("a", {
15598
15598
  key: 4,
@@ -15600,15 +15600,15 @@ function Cc(n, e, t, r, o, i) {
15600
15600
  class: "button-center button button-90 google-button pointer"
15601
15601
  }, [
15602
15602
  dc,
15603
- y("span", null, U(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15603
+ y("span", null, z(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15604
15604
  ])),
15605
15605
  pc,
15606
15606
  y("p", hc, [
15607
- se(U(n.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
15607
+ se(z(n.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
15608
15608
  mc,
15609
- y("a", fc, U(n.ssoLang[this.appLanguage].terms_of_service), 1),
15610
- se(" " + U(n.ssoLang[this.appLanguage].and) + " ", 1),
15611
- y("a", gc, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
15609
+ y("a", fc, z(n.ssoLang[this.appLanguage].terms_of_service), 1),
15610
+ se(" " + z(n.ssoLang[this.appLanguage].and) + " ", 1),
15611
+ y("a", gc, z(n.ssoLang[this.appLanguage].privacy_policy), 1)
15612
15612
  ]),
15613
15613
  _c,
15614
15614
  t.isModal ? (S(), P("div", {
@@ -15617,9 +15617,9 @@ function Cc(n, e, t, r, o, i) {
15617
15617
  onClick: e[11] || (e[11] = (...s) => i.loginAccountModal && i.loginAccountModal(...s))
15618
15618
  }, [
15619
15619
  y("a", kc, [
15620
- se(U(n.ssoLang[this.appLanguage].or) + " ", 1),
15620
+ se(z(n.ssoLang[this.appLanguage].or) + " ", 1),
15621
15621
  wc,
15622
- se(" " + U(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
15622
+ se(" " + z(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
15623
15623
  ]),
15624
15624
  bc
15625
15625
  ])) : (S(), P("div", vc, [
@@ -15628,7 +15628,7 @@ function Cc(n, e, t, r, o, i) {
15628
15628
  to: "/verify"
15629
15629
  }, {
15630
15630
  default: nt(() => [
15631
- se(U(n.ssoLang[this.appLanguage].verify_account), 1)
15631
+ se(z(n.ssoLang[this.appLanguage].verify_account), 1)
15632
15632
  ]),
15633
15633
  _: 1
15634
15634
  }),
@@ -15637,7 +15637,7 @@ function Cc(n, e, t, r, o, i) {
15637
15637
  to: "/login"
15638
15638
  }, {
15639
15639
  default: nt(() => [
15640
- se(U(n.ssoLang[this.appLanguage].sign_in), 1)
15640
+ se(z(n.ssoLang[this.appLanguage].sign_in), 1)
15641
15641
  ]),
15642
15642
  _: 1
15643
15643
  }),
@@ -15670,7 +15670,7 @@ const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15670
15670
  },
15671
15671
  methods: {
15672
15672
  init() {
15673
- this.isLoggedIn ? this.$router.push(this.home) : (this.$storage.verifyEmail && (this.email = this.$storage.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), z.$emit("ssoEvent", { name: "setLoading", data: !1 }));
15673
+ this.isLoggedIn ? this.$router.push(this.home) : (this.$storage.verifyEmail && (this.email = this.$storage.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), U.$emit("ssoEvent", { name: "setLoading", data: !1 }));
15674
15674
  },
15675
15675
  async submit() {
15676
15676
  if (this.code.length !== 6)
@@ -15685,13 +15685,13 @@ const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15685
15685
  return !1;
15686
15686
  this.submitted = !0;
15687
15687
  let e = await this.verify(n);
15688
- 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 = "", z.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storage.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
15688
+ 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 = "", U.$emit("closeModal")), await this.loginSetup(e), await this.getLoggedInAccounts(), this.$storage.verifyEmail = "", this.$router.push("/" + e.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
15689
15689
  },
15690
15690
  registerAccountModal() {
15691
- z.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
15691
+ U.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
15692
15692
  },
15693
15693
  close() {
15694
- z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15694
+ U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15695
15695
  }
15696
15696
  },
15697
15697
  watch: {
@@ -15757,7 +15757,7 @@ function $c(n, e, t, r, o, i) {
15757
15757
  class: "color-black pull-right pointer",
15758
15758
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15759
15759
  }, Ic)) : ne("", !0),
15760
- y("h1", Sc, U(n.ssoLang[this.appLanguage].verify_account), 1),
15760
+ y("h1", Sc, z(n.ssoLang[this.appLanguage].verify_account), 1),
15761
15761
  Ac,
15762
15762
  y("div", Rc, [
15763
15763
  Pc,
@@ -15790,7 +15790,7 @@ function $c(n, e, t, r, o, i) {
15790
15790
  Uc
15791
15791
  ]),
15792
15792
  y("button", xc, [
15793
- o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, U(n.ssoLang[this.appLanguage].verify_account), 1))
15793
+ o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, z(n.ssoLang[this.appLanguage].verify_account), 1))
15794
15794
  ]),
15795
15795
  Hc,
15796
15796
  y("p", qc, [
@@ -15806,9 +15806,9 @@ function $c(n, e, t, r, o, i) {
15806
15806
  onClick: e[5] || (e[5] = (...s) => i.registerAccountModal && i.registerAccountModal(...s))
15807
15807
  }, [
15808
15808
  y("a", Qc, [
15809
- se(U(n.ssoLang[this.appLanguage].or) + " ", 1),
15809
+ se(z(n.ssoLang[this.appLanguage].or) + " ", 1),
15810
15810
  Yc,
15811
- se(" " + U(n.ssoLang[this.appLanguage].create_new_account), 1)
15811
+ se(" " + z(n.ssoLang[this.appLanguage].create_new_account), 1)
15812
15812
  ]),
15813
15813
  Wc
15814
15814
  ])) : (S(), P("div", Gc, [
@@ -15817,7 +15817,7 @@ function $c(n, e, t, r, o, i) {
15817
15817
  to: "/register"
15818
15818
  }, {
15819
15819
  default: nt(() => [
15820
- se(U(n.ssoLang[this.appLanguage].register), 1)
15820
+ se(z(n.ssoLang[this.appLanguage].register), 1)
15821
15821
  ]),
15822
15822
  _: 1
15823
15823
  }),
@@ -15826,7 +15826,7 @@ function $c(n, e, t, r, o, i) {
15826
15826
  to: "/login"
15827
15827
  }, {
15828
15828
  default: nt(() => [
15829
- se(U(n.ssoLang[this.appLanguage].sign_in), 1)
15829
+ se(z(n.ssoLang[this.appLanguage].sign_in), 1)
15830
15830
  ]),
15831
15831
  _: 1
15832
15832
  }),
@@ -15852,7 +15852,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15852
15852
  };
15853
15853
  },
15854
15854
  mounted() {
15855
- this.$storage.verifyEmail && (this.email = this.$storage.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), z.$emit("ssoEvent", { name: "setLoading", data: !1 });
15855
+ this.$storage.verifyEmail && (this.email = this.$storage.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), U.$emit("ssoEvent", { name: "setLoading", data: !1 });
15856
15856
  },
15857
15857
  methods: {
15858
15858
  async resetEmail() {
@@ -15950,8 +15950,8 @@ function Ll(n, e, t, r, o, i) {
15950
15950
  class: "page-login content-boxed content-boxed-padding",
15951
15951
  onSubmit: e[7] || (e[7] = Oe((...s) => i.changePw && i.changePw(...s), ["prevent"]))
15952
15952
  }, [
15953
- y("h3", ml, U(n.ssoLang[this.appLanguage].password_change), 1),
15954
- y("p", fl, U(n.ssoLang[this.appLanguage].password_new), 1),
15953
+ y("h3", ml, z(n.ssoLang[this.appLanguage].password_change), 1),
15954
+ y("p", fl, z(n.ssoLang[this.appLanguage].password_new), 1),
15955
15955
  y("div", gl, [
15956
15956
  _l,
15957
15957
  me(y("input", {
@@ -15995,7 +15995,7 @@ function Ll(n, e, t, r, o, i) {
15995
15995
  ])
15996
15996
  ]),
15997
15997
  y("button", Il, [
15998
- o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, U(n.ssoLang[this.appLanguage].password_change), 1))
15998
+ o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, z(n.ssoLang[this.appLanguage].password_change), 1))
15999
15999
  ]),
16000
16000
  Rl,
16001
16001
  y("p", Pl, [
@@ -16013,7 +16013,7 @@ function Ll(n, e, t, r, o, i) {
16013
16013
  onSubmit: e[2] || (e[2] = Oe((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
16014
16014
  autocomplete: "on"
16015
16015
  }, [
16016
- y("h3", Xc, U(n.ssoLang[this.appLanguage].reset_password), 1),
16016
+ y("h3", Xc, z(n.ssoLang[this.appLanguage].reset_password), 1),
16017
16017
  Zc,
16018
16018
  y("div", el, [
16019
16019
  tl,
@@ -16031,7 +16031,7 @@ function Ll(n, e, t, r, o, i) {
16031
16031
  rl
16032
16032
  ]),
16033
16033
  y("button", ol, [
16034
- o.submitted ? (S(), P("span", al)) : (S(), P("span", il, U(n.ssoLang[this.appLanguage].reset_password), 1))
16034
+ o.submitted ? (S(), P("span", al)) : (S(), P("span", il, z(n.ssoLang[this.appLanguage].reset_password), 1))
16035
16035
  ]),
16036
16036
  sl,
16037
16037
  y("p", cl, [
@@ -16049,7 +16049,7 @@ function Ll(n, e, t, r, o, i) {
16049
16049
  to: "/verify"
16050
16050
  }, {
16051
16051
  default: nt(() => [
16052
- se(U(n.ssoLang[this.appLanguage].verify_account), 1)
16052
+ se(z(n.ssoLang[this.appLanguage].verify_account), 1)
16053
16053
  ]),
16054
16054
  _: 1
16055
16055
  }),
@@ -16058,7 +16058,7 @@ function Ll(n, e, t, r, o, i) {
16058
16058
  to: "/login"
16059
16059
  }, {
16060
16060
  default: nt(() => [
16061
- se(U(n.ssoLang[this.appLanguage].sign_in), 1)
16061
+ se(z(n.ssoLang[this.appLanguage].sign_in), 1)
16062
16062
  ]),
16063
16063
  _: 1
16064
16064
  }),
@@ -16096,15 +16096,15 @@ const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89
16096
16096
  function Dl(n, e, t, r, o, i) {
16097
16097
  return S(), P("div", zl, [
16098
16098
  (n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (S(), P("h5", Ul, [
16099
- se(U(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
16099
+ se(z(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
16100
16100
  xl,
16101
- se(" " + U(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
16101
+ se(" " + z(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
16102
16102
  y("span", {
16103
16103
  onClick: e[0] || (e[0] = (...a) => i.inAppRedirect && i.inAppRedirect(...a)),
16104
16104
  style: { color: "blue", cursor: "pointer" }
16105
- }, U(n.ssoLang[this.appLanguage].click_here), 1),
16105
+ }, z(n.ssoLang[this.appLanguage].click_here), 1),
16106
16106
  se(".")
16107
- ])) : (S(), P("h4", Bl, U(n.ssoLang[this.appLanguage].please_wait), 1))
16107
+ ])) : (S(), P("h4", Bl, z(n.ssoLang[this.appLanguage].please_wait), 1))
16108
16108
  ]);
16109
16109
  }
16110
16110
  const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
@@ -16116,11 +16116,11 @@ const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
16116
16116
  };
16117
16117
  },
16118
16118
  mounted() {
16119
- z.$on("closeModal", () => {
16119
+ U.$on("closeModal", () => {
16120
16120
  this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
16121
- }), z.$on("openModalOverlay", () => {
16121
+ }), U.$on("openModalOverlay", () => {
16122
16122
  this.toggle = !0;
16123
- }), z.$on("toggleLanguageModal", this.toggleModal), z.$on("toggleSSOModal", this.toggleModal), z.$on("toggleSSOPickModal", this.toggleModal);
16123
+ }), U.$on("toggleLanguageModal", this.toggleModal), U.$on("toggleSSOModal", this.toggleModal), U.$on("toggleSSOPickModal", this.toggleModal);
16124
16124
  },
16125
16125
  methods: {
16126
16126
  toggleModal(n = !0) {
@@ -16128,7 +16128,7 @@ const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
16128
16128
  },
16129
16129
  toggleEmit() {
16130
16130
  var n, e;
16131
- !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || z.$emit("closeModal");
16131
+ !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || U.$emit("closeModal");
16132
16132
  }
16133
16133
  }
16134
16134
  };
@@ -16149,16 +16149,16 @@ const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
16149
16149
  };
16150
16150
  },
16151
16151
  mounted() {
16152
- z.$on("toggleSSOModal", this.toggleModal), z.$on("closeModal", () => {
16152
+ U.$on("toggleSSOModal", this.toggleModal), U.$on("closeModal", () => {
16153
16153
  this.toggle = !1;
16154
16154
  });
16155
16155
  },
16156
16156
  beforeDestroy() {
16157
- z._events.toggleSSOModal.pop();
16157
+ U._events.toggleSSOModal.pop();
16158
16158
  },
16159
16159
  methods: {
16160
16160
  forceClose() {
16161
- z.$emit("closeModal");
16161
+ U.$emit("closeModal");
16162
16162
  },
16163
16163
  close() {
16164
16164
  this.toggleModal();
@@ -16170,7 +16170,7 @@ const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
16170
16170
  let e;
16171
16171
  if (!(!n || n.error))
16172
16172
  if (e = Object.keys(n.sso), e.length)
16173
- 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(), z.$emit("toggleSSOPickModal", {
16173
+ 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(), U.$emit("toggleSSOPickModal", {
16174
16174
  sso: n.sso,
16175
16175
  email: this.email
16176
16176
  }));
@@ -16208,7 +16208,7 @@ function Jl(n, e, t, r, o, i) {
16208
16208
  class: "color-black pull-right pointer",
16209
16209
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16210
16210
  }, Gl),
16211
- y("h3", Vl, U(n.ssoLang[n.appLanguage].enter_company_email), 1),
16211
+ y("h3", Vl, z(n.ssoLang[n.appLanguage].enter_company_email), 1),
16212
16212
  y("div", null, [
16213
16213
  me(y("input", {
16214
16214
  type: "text",
@@ -16228,7 +16228,7 @@ function Jl(n, e, t, r, o, i) {
16228
16228
  ])
16229
16229
  ]),
16230
16230
  y("button", Yl, [
16231
- o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, U(n.ssoLang[n.appLanguage].continue), 1))
16231
+ o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, z(n.ssoLang[n.appLanguage].continue), 1))
16232
16232
  ])
16233
16233
  ], 34);
16234
16234
  }
@@ -16246,16 +16246,16 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16246
16246
  };
16247
16247
  },
16248
16248
  mounted() {
16249
- z.$on("toggleSSOPickModal", this.toggleModal), z.$on("closeModal", () => {
16249
+ U.$on("toggleSSOPickModal", this.toggleModal), U.$on("closeModal", () => {
16250
16250
  this.toggle = !1;
16251
16251
  });
16252
16252
  },
16253
16253
  beforeDestroy() {
16254
- z._events.toggleSSOPickModal.pop();
16254
+ U._events.toggleSSOPickModal.pop();
16255
16255
  },
16256
16256
  methods: {
16257
16257
  forceClose() {
16258
- z.$emit("closeModal");
16258
+ U.$emit("closeModal");
16259
16259
  },
16260
16260
  close() {
16261
16261
  this.toggleModal();
@@ -16307,14 +16307,14 @@ function du(n, e, t, r, o, i) {
16307
16307
  class: "color-black pull-right pointer",
16308
16308
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16309
16309
  }, eu),
16310
- y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16310
+ y("h3", tu, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16311
16311
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16312
16312
  key: 0,
16313
16313
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16314
16314
  class: "button-center button black-button button-90 google-button pointer"
16315
16315
  }, [
16316
16316
  nu,
16317
- o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16317
+ o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16318
16318
  ])) : ne("", !0),
16319
16319
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16320
16320
  key: 1,
@@ -16322,7 +16322,7 @@ function du(n, e, t, r, o, i) {
16322
16322
  class: "button-center button black-button button-90 google-button pointer"
16323
16323
  }, [
16324
16324
  iu,
16325
- o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16325
+ o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16326
16326
  ])) : ne("", !0),
16327
16327
  (u = o.sso) != null && u.saml ? (S(), P("a", {
16328
16328
  key: 2,
@@ -16330,7 +16330,7 @@ function du(n, e, t, r, o, i) {
16330
16330
  class: "button-center button black-button button-90 google-button pointer"
16331
16331
  }, [
16332
16332
  cu,
16333
- o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16333
+ o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16334
16334
  ])) : ne("", !0)
16335
16335
  ], 34);
16336
16336
  }
@@ -16457,7 +16457,7 @@ function _u(n, e, t, r, o, i) {
16457
16457
  y("span", {
16458
16458
  class: "link-text link-drag color-black",
16459
16459
  style: Ot({ color: (s = t.customLinkStyle) == null ? void 0 : s.color })
16460
- }, U(i.linkText), 5)
16460
+ }, z(i.linkText), 5)
16461
16461
  ], 6);
16462
16462
  }
16463
16463
  const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
@@ -16477,24 +16477,24 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16477
16477
  };
16478
16478
  },
16479
16479
  async mounted() {
16480
- z.$on("toggleLanguageModal", this.toggleModal), z.$on("closeModal", () => {
16480
+ U.$on("toggleLanguageModal", this.toggleModal), U.$on("closeModal", () => {
16481
16481
  this.toggle = !1;
16482
16482
  });
16483
16483
  let n = this.isNative ? await pn.getLanguageCode() : Ut.getFirstBrowserLanguage();
16484
16484
  n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16485
16485
  },
16486
16486
  beforeDestroy() {
16487
- z._events.toggleLanguageModal.pop();
16487
+ U._events.toggleLanguageModal.pop();
16488
16488
  },
16489
16489
  methods: {
16490
16490
  forceClose() {
16491
- z.$emit("closeModal");
16491
+ U.$emit("closeModal");
16492
16492
  },
16493
16493
  close() {
16494
16494
  this.forceClose();
16495
16495
  },
16496
16496
  async updateLanguage(n) {
16497
- z.$emit("updateLang", n), z.$emit("closeModal");
16497
+ U.$emit("updateLang", n), U.$emit("closeModal");
16498
16498
  },
16499
16499
  toggleModal() {
16500
16500
  this.toggle = !this.toggle;
@@ -16520,7 +16520,7 @@ function Tu(n, e, t, r, o, i) {
16520
16520
  class: "color-black pull-right pointer",
16521
16521
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16522
16522
  }, Cu),
16523
- y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
16523
+ y("h3", Eu, z(n.ssoLang[n.appLanguage].app_language), 1),
16524
16524
  ke(a, {
16525
16525
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16526
16526
  "link-style": "link-grid",
@@ -16646,7 +16646,7 @@ const Su = { id: "ssoapp" }, Au = {
16646
16646
  }
16647
16647
  },
16648
16648
  async mounted() {
16649
- this.applyBgStyle(), z.$on("ssoEvent", this.ssoOutgoingEvent), z.$on("ssoLogout", (n) => this.logout(n)), z.$on("getLoggedInAccounts", (n) => this.getLoggedInAccounts(n)), z.$on("refreshTokenAction", (n) => this.refreshTokenAction(n)), z.$on("switchAccount", (n) => this.switchAccount(n));
16649
+ this.applyBgStyle(), U.$on("ssoEvent", this.ssoOutgoingEvent), U.$on("ssoLogout", (n) => this.logout(n)), U.$on("getLoggedInAccounts", (n) => this.getLoggedInAccounts(n)), U.$on("refreshTokenAction", (n) => this.refreshTokenAction(n)), U.$on("switchAccount", (n) => this.switchAccount(n));
16650
16650
  },
16651
16651
  methods: {
16652
16652
  async init() {
@@ -16660,13 +16660,13 @@ const Su = { id: "ssoapp" }, Au = {
16660
16660
  this.$emit("ssoEvent", n);
16661
16661
  },
16662
16662
  ssoIncomingEvent(n) {
16663
- z.$emit(n.name, n.data);
16663
+ U.$emit(n.name, n.data);
16664
16664
  },
16665
16665
  applyBgStyle() {
16666
16666
  this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
16667
16667
  },
16668
16668
  toggleLanguageModal() {
16669
- z.$emit("toggleLanguageModal", !0);
16669
+ U.$emit("toggleLanguageModal", !0);
16670
16670
  }
16671
16671
  },
16672
16672
  watch: {
@@ -16690,7 +16690,7 @@ const Su = { id: "ssoapp" }, Au = {
16690
16690
  class: "font-18 no-border pointer color-black",
16691
16691
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
16692
16692
  }, [
16693
- y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
16693
+ y("span", Mu, z(e.appLanguage.toUpperCase()), 1)
16694
16694
  ])) : ne("", !0),
16695
16695
  ke(bo),
16696
16696
  n.isModal ? ne("", !0) : (S(), qe(To, { key: 2 })),
@@ -16705,17 +16705,20 @@ const Su = { id: "ssoapp" }, Au = {
16705
16705
  }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthVerify" ? (S(), qe(yo, {
16706
16706
  key: 8,
16707
16707
  isModal: n.isModal
16708
- }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : (S(), qe(Qo(Yo), { key: 11 })),
16708
+ }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : (S(), qe(Qo(Yo), {
16709
+ key: 11,
16710
+ name: "authRouterView"
16711
+ })),
16709
16712
  y("div", Nu, [
16710
16713
  y("p", Lu, [
16711
- y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
16714
+ y("span", Ou, z(e.ssoLang[e.appLanguage].error), 1),
16712
16715
  y("a", {
16713
16716
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16714
16717
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16715
16718
  }, Uu)
16716
16719
  ]),
16717
16720
  y("p", xu, [
16718
- y("span", Bu, U(e.ssoLang[e.appLanguage].success), 1),
16721
+ y("span", Bu, z(e.ssoLang[e.appLanguage].success), 1),
16719
16722
  y("a", {
16720
16723
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16721
16724
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }