@tapni/auth 0.0.94 → 0.0.96

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 z, createCommentVNode as te, 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 U, createCommentVNode as te, 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,13 +8,13 @@ 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.94";
11
+ const Xo = "0.0.95";
12
12
  let Un;
13
13
  const Ft = {
14
14
  setApiRootFromOptions(n) {
15
15
  Un = n;
16
16
  },
17
- instance(n, e = !1) {
17
+ instance(n, e = null) {
18
18
  const t = Xo;
19
19
  let r = "https://api.tapni.co/v1/";
20
20
  Un && (r = Un);
@@ -42,7 +42,7 @@ const Ft = {
42
42
  }), n && n.token && !e) {
43
43
  const a = qr(n.token);
44
44
  if (a.exp - 30 < Math.floor(Date.now() / 1e3))
45
- return ze.methods.refreshTokenAction({ ...a, refreshToken: n.refreshTokens ? n.refreshTokens.split(",")[0] : null }).then((s) => (i.headers = {
45
+ return ze.methods.refreshTokenAction({ ...a, refreshToken: n.refreshTokens ? n.refreshTokens.split(",")[0] : null, storage: n }).then((s) => (i.headers = {
46
46
  ...i.headers,
47
47
  Authorization: `Bearer ${s}`
48
48
  }, i));
@@ -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()), U = {
172
+ }, cn = Ko(/* @__PURE__ */ new Map()), z = {
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(U);
188
+ Go(z);
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), 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"));
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"));
4392
4392
  },
4393
4393
  methods: {
4394
4394
  errorHandler(n) {
@@ -4463,14 +4463,14 @@ 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(this.loggedInAccounts[n]), U.$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(this.loggedInAccounts[n]), z.$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 (!this.refreshToken || this.refreshing)
4473
+ if (!n.refreshToken || this.refreshing)
4474
4474
  return e(null);
4475
4475
  this.refreshing = !0;
4476
4476
  const [r, o] = await Z(
@@ -4478,11 +4478,11 @@ const ze = {
4478
4478
  id: n.id,
4479
4479
  refreshToken: n.refreshToken,
4480
4480
  refreshTokenAction: !0
4481
- }, this.$storage)
4481
+ }, n.storage)
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), U.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), e(o.data.token)) : t("Invalid response setToken"), this.refreshing = !1;
4485
+ o && o.data && (z.$emit("setToken", o.data.token), z.$emit("ssoEvent", { name: "setStorage", data: this.$storage }), e(o.data.token)), 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" && (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"));
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"));
4510
4510
  },
4511
4511
  async register(n) {
4512
4512
  const [e, t] = await Z(
@@ -4615,7 +4615,7 @@ const ze = {
4615
4615
  setLoggedInAccounts(n) {
4616
4616
  this.loggedInAccounts = {}, n.forEach((e) => {
4617
4617
  this.loggedInAccounts[e.username] = e;
4618
- }), U.$emit("ssoEvent", { name: "setLoggedInAccounts", data: n });
4618
+ }), z.$emit("ssoEvent", { name: "setLoggedInAccounts", data: n });
4619
4619
  },
4620
4620
  setLoggedInUserId(n) {
4621
4621
  this.loggedInUserId = n;
@@ -4668,7 +4668,7 @@ const ze = {
4668
4668
  console.log("Play was interrupted:", e);
4669
4669
  });
4670
4670
  }), setTimeout(() => {
4671
- this.$storage.token ? this.$router.push(this.home) : U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4671
+ this.$storage.token ? this.$router.push(this.home) : z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4672
4672
  }, 2500);
4673
4673
  },
4674
4674
  methods: {}
@@ -4698,8 +4698,8 @@ function mi(n, e, t, r, o, i) {
4698
4698
  style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
4699
4699
  autoplay: n.isNative
4700
4700
  }, ai, 8, oi),
4701
- y("h1", si, z(n.ssoLang[this.appLanguage].welcome), 1),
4702
- y("p", ci, z(n.ssoLang[this.appLanguage].welcome_p1), 1),
4701
+ y("h1", si, U(n.ssoLang[this.appLanguage].welcome), 1),
4702
+ y("p", ci, U(n.ssoLang[this.appLanguage].welcome_p1), 1),
4703
4703
  te("", !0),
4704
4704
  te("", !0),
4705
4705
  ke(a, {
@@ -4708,15 +4708,15 @@ function mi(n, e, t, r, o, i) {
4708
4708
  class: "button-center button button-90 google-button bg-tapni-grey pointer"
4709
4709
  }, {
4710
4710
  default: nt(() => [
4711
- y("span", null, z(n.ssoLang[this.appLanguage].create_account), 1)
4711
+ y("span", null, U(n.ssoLang[this.appLanguage].create_account), 1)
4712
4712
  ]),
4713
4713
  _: 1
4714
4714
  }),
4715
4715
  y("div", li, [
4716
4716
  ke(a, { to: "/login" }, {
4717
4717
  default: nt(() => [
4718
- se(z(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4719
- y("b", null, z(n.ssoLang[this.appLanguage].sign_in), 1)
4718
+ se(U(n.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4719
+ y("b", null, U(n.ssoLang[this.appLanguage].sign_in), 1)
4720
4720
  ]),
4721
4721
  _: 1
4722
4722
  }),
@@ -4753,7 +4753,7 @@ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6
4753
4753
  this.referral && (e.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4754
4754
  const [r, o] = await Z(Ne.googleSDK(e, this.$storage));
4755
4755
  if (r)
4756
- return this.googleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4756
+ return this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4757
4757
  if (o.data.success) {
4758
4758
  if (this.display === "popup")
4759
4759
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -4763,7 +4763,7 @@ const Jr = /* @__PURE__ */ We(ni, [["render", mi], ["__scopeId", "data-v-67088d6
4763
4763
  } else
4764
4764
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4765
4765
  } else
4766
- this.googleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4766
+ this.googleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4767
4767
  }
4768
4768
  }
4769
4769
  }, fi = In("FacebookLogin", {
@@ -4808,17 +4808,17 @@ const Zr = {
4808
4808
  if (this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code"), t && t.accessToken) {
4809
4809
  const [o, i] = await Z(Ne.facebookSDK(t, this.$storage));
4810
4810
  if (o)
4811
- return this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4811
+ return this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4812
4812
  if (i.data.success) {
4813
4813
  if (this.display === "popup")
4814
4814
  return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
4815
4815
  await this.loginSetup(i), await this.getLoggedInAccounts(), this.$router.push("/" + i.data.data.username + "#edit"), setTimeout(() => {
4816
- this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4816
+ this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4817
4817
  }, 1e3);
4818
4818
  } else
4819
4819
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4820
4820
  } else
4821
- this.facebookLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4821
+ this.facebookLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4822
4822
  }
4823
4823
  }
4824
4824
  }, gi = In("SignInWithApple", {
@@ -4850,7 +4850,7 @@ const Zr = {
4850
4850
  this.referral && (e.response.ref = this.referral), this.display === "popup" && (e.response_type = "code");
4851
4851
  const [r, o] = await Z(Ne.appleSDK(e.response, this.$storage));
4852
4852
  if (r)
4853
- return this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4853
+ return this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(r);
4854
4854
  if (o.data.success) {
4855
4855
  if (this.display === "popup")
4856
4856
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: o.data.auth_code, state: this.$route.query.state }, "*");
@@ -4860,7 +4860,7 @@ const Zr = {
4860
4860
  } else
4861
4861
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4862
4862
  } else
4863
- this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
4863
+ this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
4864
4864
  }
4865
4865
  }
4866
4866
  };
@@ -13685,7 +13685,7 @@ const An = {
13685
13685
  Ne.microsoftSDK(r, this.$storage)
13686
13686
  );
13687
13687
  if (s)
13688
- return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13688
+ return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
13689
13689
  if (u.data.success) {
13690
13690
  if (this.display === "popup")
13691
13691
  return (a = window.parent) == null ? void 0 : a.postMessage(
@@ -13698,10 +13698,10 @@ const An = {
13698
13698
  } else
13699
13699
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
13700
13700
  } else
13701
- this.microsoftLoad = !1, this.microsoftSSOLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
13701
+ this.microsoftLoad = !1, this.microsoftSSOLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
13702
13702
  },
13703
13703
  ssoLogin() {
13704
- U.$emit("toggleSSOModal");
13704
+ z.$emit("toggleSSOModal");
13705
13705
  }
13706
13706
  }
13707
13707
  }, Ut = {
@@ -13814,12 +13814,12 @@ const An = {
13814
13814
  localStorage.removeItem("pkce_code_verifier");
13815
13815
  let r = { accessToken: (o = t.data) == null ? void 0 : o.access_token, domain: n.domain };
13816
13816
  if (this.display === "popup" && (r.response_type = "code"), [e, t] = await Z(Ne.oktaSDK(r, this.$storage)), e)
13817
- return this.oktaLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
13817
+ return this.oktaLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(e);
13818
13818
  if (t.data.success) {
13819
13819
  if (this.display === "popup")
13820
13820
  return (i = window.parent) == null ? void 0 : i.postMessage({ code: t.data.auth_code, state: this.$route.query.state }, "*");
13821
13821
  await this.loginSetup(t), await this.getLoggedInAccounts(), this.$router.push("/" + t.data.data.username + "#edit"), setTimeout(() => {
13822
- this.appleLoad = !1, U.$emit("ssoEvent", { name: "setLoading", data: !1 });
13822
+ this.appleLoad = !1, z.$emit("ssoEvent", { name: "setLoading", data: !1 });
13823
13823
  }, 1e3);
13824
13824
  } else
13825
13825
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
@@ -13844,7 +13844,7 @@ const An = {
13844
13844
  const a = new URLSearchParams(e);
13845
13845
  t = a.get("client_id"), r = a.get("domain"), o = a.get("platform");
13846
13846
  }
13847
- 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 }));
13847
+ 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 }));
13848
13848
  }
13849
13849
  }
13850
13850
  };
@@ -14938,12 +14938,12 @@ const La = fo.Buffer, Mn = {
14938
14938
  if (this.$route.query.code && (e.code = this.$route.query.code), window.opener)
14939
14939
  window.opener.postMessage(e, location.origin), window.close();
14940
14940
  else {
14941
- 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) {
14941
+ 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) {
14942
14942
  if (this.display === "popup")
14943
14943
  return (t = window.parent) == null ? void 0 : t.postMessage({ code: n, state: this.$route.query.state }, "*");
14944
14944
  await this.exchangeAuthCode({ code: n, code_verifier: localStorage.getItem("pkce_code_verifier") });
14945
14945
  }
14946
- localStorage.removeItem("pkce_code_verifier"), U.$emit("ssoEvent", { name: "setLoading", data: !1 });
14946
+ localStorage.removeItem("pkce_code_verifier"), z.$emit("ssoEvent", { name: "setLoading", data: !1 });
14947
14947
  }
14948
14948
  }
14949
14949
  }
@@ -15064,7 +15064,7 @@ const La = fo.Buffer, Mn = {
15064
15064
  return await this.handleOktaRedirect();
15065
15065
  if (this.$route.path === "/login/callback/saml")
15066
15066
  return await this.handleSamlRedirect();
15067
- 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 });
15067
+ 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 });
15068
15068
  }
15069
15069
  },
15070
15070
  methods: {
@@ -15084,10 +15084,10 @@ const La = fo.Buffer, Mn = {
15084
15084
  t && console.error(t), this.submitted = !1, r === !0 && (this.emailOrUsername = "", this.password = "");
15085
15085
  },
15086
15086
  close() {
15087
- U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15087
+ z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15088
15088
  },
15089
15089
  createAccountModal() {
15090
- U.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
15090
+ z.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
15091
15091
  }
15092
15092
  },
15093
15093
  watch: {
@@ -15196,7 +15196,7 @@ function Ps(n, e, t, r, o, i) {
15196
15196
  class: "color-black pull-right pointer",
15197
15197
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15198
15198
  }, xa)) : te("", !0),
15199
- y("h1", Ba, z(this.ssoLang[this.appLanguage].login), 1),
15199
+ y("h1", Ba, U(this.ssoLang[this.appLanguage].login), 1),
15200
15200
  Da,
15201
15201
  i.displayFormLogin ? (S(), P("span", Ha, [
15202
15202
  y("div", qa, [
@@ -15242,7 +15242,7 @@ function Ps(n, e, t, r, o, i) {
15242
15242
  ])
15243
15243
  ]),
15244
15244
  y("button", $a, [
15245
- o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, z(n.ssoLang[n.appLanguage].login), 1))
15245
+ o.submitted ? (S(), P("span", Xa)) : (S(), P("span", Ja, U(n.ssoLang[n.appLanguage].login), 1))
15246
15246
  ])
15247
15247
  ])) : te("", !0),
15248
15248
  Za,
@@ -15252,7 +15252,7 @@ function Ps(n, e, t, r, o, i) {
15252
15252
  class: "button-center button button-90 google-button pointer"
15253
15253
  }, [
15254
15254
  es,
15255
- n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, z(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
15255
+ n.appleLoad ? (S(), P("span", ns)) : (S(), P("span", ts, U(n.ssoLang[n.appLanguage].sign_in_with) + " Apple", 1))
15256
15256
  ])) : te("", !0),
15257
15257
  n.displayGoogleLogin ? (S(), P("a", {
15258
15258
  key: 3,
@@ -15260,7 +15260,7 @@ function Ps(n, e, t, r, o, i) {
15260
15260
  class: "button-center button button-90 google-button pointer"
15261
15261
  }, [
15262
15262
  rs,
15263
- n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, z(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
15263
+ n.googleLoad ? (S(), P("span", is)) : (S(), P("span", os, U(n.ssoLang[n.appLanguage].sign_in_with) + " Google", 1))
15264
15264
  ])) : te("", !0),
15265
15265
  n.displayFacebookLogin ? (S(), P("a", {
15266
15266
  key: 4,
@@ -15268,7 +15268,7 @@ function Ps(n, e, t, r, o, i) {
15268
15268
  class: "button-center button button-90 google-button pointer"
15269
15269
  }, [
15270
15270
  as,
15271
- n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, z(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
15271
+ n.facebookLoad ? (S(), P("span", cs)) : (S(), P("span", ss, U(n.ssoLang[n.appLanguage].sign_in_with) + " Facebook", 1))
15272
15272
  ])) : te("", !0),
15273
15273
  n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
15274
15274
  key: 5,
@@ -15276,7 +15276,7 @@ function Ps(n, e, t, r, o, i) {
15276
15276
  class: "button-center button button-90 google-button pointer"
15277
15277
  }, [
15278
15278
  ls,
15279
- n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, z(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15279
+ n.microsoftLoad ? (S(), P("span", ds)) : (S(), P("span", us, U(n.ssoLang[n.appLanguage].sign_in_with) + " Outlook", 1))
15280
15280
  ])),
15281
15281
  n.displayMicrosoftSSOLogin ? te("", !0) : (S(), P("a", {
15282
15282
  key: 6,
@@ -15284,7 +15284,7 @@ function Ps(n, e, t, r, o, i) {
15284
15284
  class: "button-center button button-90 google-button pointer"
15285
15285
  }, [
15286
15286
  ps,
15287
- n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, z(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
15287
+ n.microsoftSSOLoad ? (S(), P("span", ms)) : (S(), P("span", hs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1))
15288
15288
  ])),
15289
15289
  n.displayMicrosoftSSOLogin ? (S(), P("a", {
15290
15290
  key: 7,
@@ -15292,7 +15292,7 @@ function Ps(n, e, t, r, o, i) {
15292
15292
  class: "button-center button button-90 google-button pointer"
15293
15293
  }, [
15294
15294
  fs,
15295
- n.microsoftSSOLoad ? (S(), P("span", gs, z(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
15295
+ n.microsoftSSOLoad ? (S(), P("span", gs, U(n.ssoLang[n.appLanguage].sign_in_with) + " SSO", 1)) : (S(), P("span", _s))
15296
15296
  ])) : te("", !0),
15297
15297
  i.displayFormLogin ? te("", !0) : (S(), P("a", {
15298
15298
  key: 8,
@@ -15300,15 +15300,15 @@ function Ps(n, e, t, r, o, i) {
15300
15300
  class: "button-center button button-90 google-button pointer"
15301
15301
  }, [
15302
15302
  vs,
15303
- y("span", null, z(n.ssoLang[n.appLanguage].sign_in_with) + " Email", 1)
15303
+ y("span", null, U(n.ssoLang[n.appLanguage].sign_in_with) + " Email", 1)
15304
15304
  ])),
15305
15305
  ys,
15306
15306
  y("p", ks, [
15307
- se(z(n.ssoLang[n.appLanguage].terms_by_signing_in) + " ", 1),
15307
+ se(U(n.ssoLang[n.appLanguage].terms_by_signing_in) + " ", 1),
15308
15308
  ws,
15309
- y("a", bs, z(n.ssoLang[this.appLanguage].terms_of_service), 1),
15310
- se(" " + z(n.ssoLang[n.appLanguage].and) + " ", 1),
15311
- y("a", Cs, z(n.ssoLang[this.appLanguage].privacy_policy), 1)
15309
+ y("a", bs, U(n.ssoLang[this.appLanguage].terms_of_service), 1),
15310
+ se(" " + U(n.ssoLang[n.appLanguage].and) + " ", 1),
15311
+ y("a", Cs, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
15312
15312
  ]),
15313
15313
  Es,
15314
15314
  t.isModal ? (S(), P("div", {
@@ -15317,9 +15317,9 @@ function Ps(n, e, t, r, o, i) {
15317
15317
  onClick: e[12] || (e[12] = (...s) => i.createAccountModal && i.createAccountModal(...s))
15318
15318
  }, [
15319
15319
  y("a", Ss, [
15320
- se(z(n.ssoLang[n.appLanguage].or) + " ", 1),
15320
+ se(U(n.ssoLang[n.appLanguage].or) + " ", 1),
15321
15321
  As,
15322
- se(" " + z(n.ssoLang[n.appLanguage].create_new_account), 1)
15322
+ se(" " + U(n.ssoLang[n.appLanguage].create_new_account), 1)
15323
15323
  ]),
15324
15324
  Rs
15325
15325
  ])) : (S(), P("div", Ts, [
@@ -15329,7 +15329,7 @@ function Ps(n, e, t, r, o, i) {
15329
15329
  to: "/register"
15330
15330
  }, {
15331
15331
  default: nt(() => [
15332
- se(z(n.ssoLang[n.appLanguage].create_account), 1)
15332
+ se(U(n.ssoLang[n.appLanguage].create_account), 1)
15333
15333
  ]),
15334
15334
  _: 1
15335
15335
  })) : te("", !0),
@@ -15339,7 +15339,7 @@ function Ps(n, e, t, r, o, i) {
15339
15339
  to: "/reset"
15340
15340
  }, {
15341
15341
  default: nt(() => [
15342
- se(z(n.ssoLang[n.appLanguage].reset_password), 1)
15342
+ se(U(n.ssoLang[n.appLanguage].reset_password), 1)
15343
15343
  ]),
15344
15344
  _: 1
15345
15345
  })) : te("", !0),
@@ -15373,7 +15373,7 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15373
15373
  };
15374
15374
  },
15375
15375
  mounted() {
15376
- 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));
15376
+ 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));
15377
15377
  },
15378
15378
  methods: {
15379
15379
  async submit() {
@@ -15397,13 +15397,13 @@ const _o = /* @__PURE__ */ We(za, [["render", Ps]]), Ms = {
15397
15397
  captchaToken: await this.getCaptchaToken("account_verify"),
15398
15398
  ref: this.referral
15399
15399
  }, e = await this.register(n);
15400
- 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 })));
15400
+ 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 })));
15401
15401
  },
15402
15402
  close() {
15403
- U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15403
+ z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15404
15404
  },
15405
15405
  loginAccountModal() {
15406
- U.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
15406
+ z.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
15407
15407
  }
15408
15408
  },
15409
15409
  watch: {
@@ -15497,10 +15497,10 @@ function Cc(n, e, t, r, o, i) {
15497
15497
  class: "color-black pull-right pointer",
15498
15498
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15499
15499
  }, Ls)) : te("", !0),
15500
- y("h1", Os, z(n.ssoLang[this.appLanguage].register), 1),
15500
+ y("h1", Os, U(n.ssoLang[this.appLanguage].register), 1),
15501
15501
  y("p", zs, [
15502
15502
  o.usernameRegister ? (S(), P("span", Us, [
15503
- se(" t.link/" + z(o.username) + " " + z(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
15503
+ se(" t.link/" + U(o.username) + " " + U(n.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
15504
15504
  xs
15505
15505
  ])) : te("", !0)
15506
15506
  ]),
@@ -15565,7 +15565,7 @@ function Cc(n, e, t, r, o, i) {
15565
15565
  ])
15566
15566
  ]),
15567
15567
  y("button", Xs, [
15568
- o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, z(o.formButtonText), 1))
15568
+ o.submitted ? (S(), P("span", ec)) : (S(), P("span", Zs, U(o.formButtonText), 1))
15569
15569
  ])
15570
15570
  ])) : te("", !0),
15571
15571
  tc,
@@ -15575,14 +15575,14 @@ function Cc(n, e, t, r, o, i) {
15575
15575
  class: "button-center button button-90 google-button pointer"
15576
15576
  }, [
15577
15577
  nc,
15578
- n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
15578
+ n.appleLoad ? (S(), P("span", oc)) : (S(), P("span", rc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
15579
15579
  ])) : te("", !0),
15580
15580
  y("a", {
15581
15581
  onClick: e[8] || (e[8] = (...s) => n.googleLogin && n.googleLogin(...s)),
15582
15582
  class: "button-center button button-90 google-button pointer"
15583
15583
  }, [
15584
15584
  ic,
15585
- n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, z(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
15585
+ n.googleLoad ? (S(), P("span", sc)) : (S(), P("span", ac, U(n.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
15586
15586
  ]),
15587
15587
  n.displayFacebookLogin ? (S(), P("a", {
15588
15588
  key: 3,
@@ -15590,7 +15590,7 @@ function Cc(n, e, t, r, o, i) {
15590
15590
  class: "button-center button button-90 google-button pointer"
15591
15591
  }, [
15592
15592
  cc,
15593
- n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, z(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15593
+ n.facebookLoad ? (S(), P("span", uc)) : (S(), P("span", lc, U(n.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
15594
15594
  ])) : te("", !0),
15595
15595
  o.emailLogin ? te("", !0) : (S(), P("a", {
15596
15596
  key: 4,
@@ -15598,15 +15598,15 @@ function Cc(n, e, t, r, o, i) {
15598
15598
  class: "button-center button button-90 google-button pointer"
15599
15599
  }, [
15600
15600
  dc,
15601
- y("span", null, z(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15601
+ y("span", null, U(n.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
15602
15602
  ])),
15603
15603
  pc,
15604
15604
  y("p", hc, [
15605
- se(z(n.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
15605
+ se(U(n.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
15606
15606
  mc,
15607
- y("a", fc, z(n.ssoLang[this.appLanguage].terms_of_service), 1),
15608
- se(" " + z(n.ssoLang[this.appLanguage].and) + " ", 1),
15609
- y("a", gc, z(n.ssoLang[this.appLanguage].privacy_policy), 1)
15607
+ y("a", fc, U(n.ssoLang[this.appLanguage].terms_of_service), 1),
15608
+ se(" " + U(n.ssoLang[this.appLanguage].and) + " ", 1),
15609
+ y("a", gc, U(n.ssoLang[this.appLanguage].privacy_policy), 1)
15610
15610
  ]),
15611
15611
  _c,
15612
15612
  t.isModal ? (S(), P("div", {
@@ -15615,9 +15615,9 @@ function Cc(n, e, t, r, o, i) {
15615
15615
  onClick: e[11] || (e[11] = (...s) => i.loginAccountModal && i.loginAccountModal(...s))
15616
15616
  }, [
15617
15617
  y("a", kc, [
15618
- se(z(n.ssoLang[this.appLanguage].or) + " ", 1),
15618
+ se(U(n.ssoLang[this.appLanguage].or) + " ", 1),
15619
15619
  wc,
15620
- se(" " + z(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
15620
+ se(" " + U(n.ssoLang[this.appLanguage].sign_in_with_new), 1)
15621
15621
  ]),
15622
15622
  bc
15623
15623
  ])) : (S(), P("div", vc, [
@@ -15626,7 +15626,7 @@ function Cc(n, e, t, r, o, i) {
15626
15626
  to: "/verify"
15627
15627
  }, {
15628
15628
  default: nt(() => [
15629
- se(z(n.ssoLang[this.appLanguage].verify_account), 1)
15629
+ se(U(n.ssoLang[this.appLanguage].verify_account), 1)
15630
15630
  ]),
15631
15631
  _: 1
15632
15632
  }),
@@ -15635,7 +15635,7 @@ function Cc(n, e, t, r, o, i) {
15635
15635
  to: "/login"
15636
15636
  }, {
15637
15637
  default: nt(() => [
15638
- se(z(n.ssoLang[this.appLanguage].sign_in), 1)
15638
+ se(U(n.ssoLang[this.appLanguage].sign_in), 1)
15639
15639
  ]),
15640
15640
  _: 1
15641
15641
  }),
@@ -15668,7 +15668,7 @@ const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15668
15668
  },
15669
15669
  methods: {
15670
15670
  init() {
15671
- 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 }));
15671
+ 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 }));
15672
15672
  },
15673
15673
  async submit() {
15674
15674
  if (this.code.length !== 6)
@@ -15683,13 +15683,13 @@ const vo = /* @__PURE__ */ We(Ms, [["render", Cc]]), Ec = {
15683
15683
  return !1;
15684
15684
  this.submitted = !0;
15685
15685
  let e = await this.verify(n);
15686
- 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;
15686
+ 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;
15687
15687
  },
15688
15688
  registerAccountModal() {
15689
- U.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
15689
+ z.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
15690
15690
  },
15691
15691
  close() {
15692
- U.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15692
+ z.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
15693
15693
  }
15694
15694
  },
15695
15695
  watch: {
@@ -15755,7 +15755,7 @@ function $c(n, e, t, r, o, i) {
15755
15755
  class: "color-black pull-right pointer",
15756
15756
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
15757
15757
  }, Ic)) : te("", !0),
15758
- y("h1", Sc, z(n.ssoLang[this.appLanguage].verify_account), 1),
15758
+ y("h1", Sc, U(n.ssoLang[this.appLanguage].verify_account), 1),
15759
15759
  Ac,
15760
15760
  y("div", Rc, [
15761
15761
  Pc,
@@ -15788,7 +15788,7 @@ function $c(n, e, t, r, o, i) {
15788
15788
  Uc
15789
15789
  ]),
15790
15790
  y("button", xc, [
15791
- o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, z(n.ssoLang[this.appLanguage].verify_account), 1))
15791
+ o.submitted ? (S(), P("span", Dc)) : (S(), P("span", Bc, U(n.ssoLang[this.appLanguage].verify_account), 1))
15792
15792
  ]),
15793
15793
  Hc,
15794
15794
  y("p", qc, [
@@ -15804,9 +15804,9 @@ function $c(n, e, t, r, o, i) {
15804
15804
  onClick: e[5] || (e[5] = (...s) => i.registerAccountModal && i.registerAccountModal(...s))
15805
15805
  }, [
15806
15806
  y("a", Qc, [
15807
- se(z(n.ssoLang[this.appLanguage].or) + " ", 1),
15807
+ se(U(n.ssoLang[this.appLanguage].or) + " ", 1),
15808
15808
  Yc,
15809
- se(" " + z(n.ssoLang[this.appLanguage].create_new_account), 1)
15809
+ se(" " + U(n.ssoLang[this.appLanguage].create_new_account), 1)
15810
15810
  ]),
15811
15811
  Wc
15812
15812
  ])) : (S(), P("div", Gc, [
@@ -15815,7 +15815,7 @@ function $c(n, e, t, r, o, i) {
15815
15815
  to: "/register"
15816
15816
  }, {
15817
15817
  default: nt(() => [
15818
- se(z(n.ssoLang[this.appLanguage].register), 1)
15818
+ se(U(n.ssoLang[this.appLanguage].register), 1)
15819
15819
  ]),
15820
15820
  _: 1
15821
15821
  }),
@@ -15824,7 +15824,7 @@ function $c(n, e, t, r, o, i) {
15824
15824
  to: "/login"
15825
15825
  }, {
15826
15826
  default: nt(() => [
15827
- se(z(n.ssoLang[this.appLanguage].sign_in), 1)
15827
+ se(U(n.ssoLang[this.appLanguage].sign_in), 1)
15828
15828
  ]),
15829
15829
  _: 1
15830
15830
  }),
@@ -15850,7 +15850,7 @@ const yo = /* @__PURE__ */ We(Ec, [["render", $c], ["__scopeId", "data-v-75db7f0
15850
15850
  };
15851
15851
  },
15852
15852
  mounted() {
15853
- 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 });
15853
+ 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 });
15854
15854
  },
15855
15855
  methods: {
15856
15856
  async resetEmail() {
@@ -15948,8 +15948,8 @@ function Ll(n, e, t, r, o, i) {
15948
15948
  class: "page-login content-boxed content-boxed-padding",
15949
15949
  onSubmit: e[7] || (e[7] = Oe((...s) => i.changePw && i.changePw(...s), ["prevent"]))
15950
15950
  }, [
15951
- y("h3", ml, z(n.ssoLang[this.appLanguage].password_change), 1),
15952
- y("p", fl, z(n.ssoLang[this.appLanguage].password_new), 1),
15951
+ y("h3", ml, U(n.ssoLang[this.appLanguage].password_change), 1),
15952
+ y("p", fl, U(n.ssoLang[this.appLanguage].password_new), 1),
15953
15953
  y("div", gl, [
15954
15954
  _l,
15955
15955
  me(y("input", {
@@ -15993,7 +15993,7 @@ function Ll(n, e, t, r, o, i) {
15993
15993
  ])
15994
15994
  ]),
15995
15995
  y("button", Il, [
15996
- o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, z(n.ssoLang[this.appLanguage].password_change), 1))
15996
+ o.submitted ? (S(), P("span", Al)) : (S(), P("span", Sl, U(n.ssoLang[this.appLanguage].password_change), 1))
15997
15997
  ]),
15998
15998
  Rl,
15999
15999
  y("p", Pl, [
@@ -16011,7 +16011,7 @@ function Ll(n, e, t, r, o, i) {
16011
16011
  onSubmit: e[2] || (e[2] = Oe((...s) => i.resetEmail && i.resetEmail(...s), ["prevent"])),
16012
16012
  autocomplete: "on"
16013
16013
  }, [
16014
- y("h3", Xc, z(n.ssoLang[this.appLanguage].reset_password), 1),
16014
+ y("h3", Xc, U(n.ssoLang[this.appLanguage].reset_password), 1),
16015
16015
  Zc,
16016
16016
  y("div", el, [
16017
16017
  tl,
@@ -16029,7 +16029,7 @@ function Ll(n, e, t, r, o, i) {
16029
16029
  rl
16030
16030
  ]),
16031
16031
  y("button", ol, [
16032
- o.submitted ? (S(), P("span", al)) : (S(), P("span", il, z(n.ssoLang[this.appLanguage].reset_password), 1))
16032
+ o.submitted ? (S(), P("span", al)) : (S(), P("span", il, U(n.ssoLang[this.appLanguage].reset_password), 1))
16033
16033
  ]),
16034
16034
  sl,
16035
16035
  y("p", cl, [
@@ -16047,7 +16047,7 @@ function Ll(n, e, t, r, o, i) {
16047
16047
  to: "/verify"
16048
16048
  }, {
16049
16049
  default: nt(() => [
16050
- se(z(n.ssoLang[this.appLanguage].verify_account), 1)
16050
+ se(U(n.ssoLang[this.appLanguage].verify_account), 1)
16051
16051
  ]),
16052
16052
  _: 1
16053
16053
  }),
@@ -16056,7 +16056,7 @@ function Ll(n, e, t, r, o, i) {
16056
16056
  to: "/login"
16057
16057
  }, {
16058
16058
  default: nt(() => [
16059
- se(z(n.ssoLang[this.appLanguage].sign_in), 1)
16059
+ se(U(n.ssoLang[this.appLanguage].sign_in), 1)
16060
16060
  ]),
16061
16061
  _: 1
16062
16062
  }),
@@ -16094,15 +16094,15 @@ const ko = /* @__PURE__ */ We(Jc, [["render", Ll], ["__scopeId", "data-v-4f85b89
16094
16094
  function Dl(n, e, t, r, o, i) {
16095
16095
  return S(), P("div", zl, [
16096
16096
  (n.$route.query.platform === "android" || n.$route.query.platform === "ios") && !n.isNative ? (S(), P("h5", Ul, [
16097
- se(z(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
16097
+ se(U(n.ssoLang[this.appLanguage].you_will_be_redirected), 1),
16098
16098
  xl,
16099
- se(" " + z(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
16099
+ se(" " + U(n.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
16100
16100
  y("span", {
16101
16101
  onClick: e[0] || (e[0] = (...a) => i.inAppRedirect && i.inAppRedirect(...a)),
16102
16102
  style: { color: "blue", cursor: "pointer" }
16103
- }, z(n.ssoLang[this.appLanguage].click_here), 1),
16103
+ }, U(n.ssoLang[this.appLanguage].click_here), 1),
16104
16104
  se(".")
16105
- ])) : (S(), P("h4", Bl, z(n.ssoLang[this.appLanguage].please_wait), 1))
16105
+ ])) : (S(), P("h4", Bl, U(n.ssoLang[this.appLanguage].please_wait), 1))
16106
16106
  ]);
16107
16107
  }
16108
16108
  const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
@@ -16114,11 +16114,11 @@ const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
16114
16114
  };
16115
16115
  },
16116
16116
  mounted() {
16117
- U.$on("closeModal", () => {
16117
+ z.$on("closeModal", () => {
16118
16118
  this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
16119
- }), U.$on("openModalOverlay", () => {
16119
+ }), z.$on("openModalOverlay", () => {
16120
16120
  this.toggle = !0;
16121
- }), U.$on("toggleLanguageModal", this.toggleModal), U.$on("toggleSSOModal", this.toggleModal), U.$on("toggleSSOPickModal", this.toggleModal);
16121
+ }), z.$on("toggleLanguageModal", this.toggleModal), z.$on("toggleSSOModal", this.toggleModal), z.$on("toggleSSOPickModal", this.toggleModal);
16122
16122
  },
16123
16123
  methods: {
16124
16124
  toggleModal(n = !0) {
@@ -16126,7 +16126,7 @@ const wo = /* @__PURE__ */ We(Ol, [["render", Dl]]), Hl = {
16126
16126
  },
16127
16127
  toggleEmit() {
16128
16128
  var n, e;
16129
- !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || U.$emit("closeModal");
16129
+ !this.isLoggedIn && ((e = (n = this.user) == null ? void 0 : n.lead_form) != null && e.forceFilling) || z.$emit("closeModal");
16130
16130
  }
16131
16131
  }
16132
16132
  };
@@ -16147,16 +16147,16 @@ const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
16147
16147
  };
16148
16148
  },
16149
16149
  mounted() {
16150
- U.$on("toggleSSOModal", this.toggleModal), U.$on("closeModal", () => {
16150
+ z.$on("toggleSSOModal", this.toggleModal), z.$on("closeModal", () => {
16151
16151
  this.toggle = !1;
16152
16152
  });
16153
16153
  },
16154
16154
  beforeDestroy() {
16155
- U._events.toggleSSOModal.pop();
16155
+ z._events.toggleSSOModal.pop();
16156
16156
  },
16157
16157
  methods: {
16158
16158
  forceClose() {
16159
- U.$emit("closeModal");
16159
+ z.$emit("closeModal");
16160
16160
  },
16161
16161
  close() {
16162
16162
  this.toggleModal();
@@ -16168,7 +16168,7 @@ const bo = /* @__PURE__ */ We(Hl, [["render", ql], ["__scopeId", "data-v-a128c2f
16168
16168
  let e;
16169
16169
  if (!(!n || n.error))
16170
16170
  if (e = Object.keys(n.sso), e.length)
16171
- 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", {
16171
+ 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", {
16172
16172
  sso: n.sso,
16173
16173
  email: this.email
16174
16174
  }));
@@ -16206,7 +16206,7 @@ function Jl(n, e, t, r, o, i) {
16206
16206
  class: "color-black pull-right pointer",
16207
16207
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16208
16208
  }, Gl),
16209
- y("h3", Vl, z(n.ssoLang[n.appLanguage].enter_company_email), 1),
16209
+ y("h3", Vl, U(n.ssoLang[n.appLanguage].enter_company_email), 1),
16210
16210
  y("div", null, [
16211
16211
  me(y("input", {
16212
16212
  type: "text",
@@ -16226,7 +16226,7 @@ function Jl(n, e, t, r, o, i) {
16226
16226
  ])
16227
16227
  ]),
16228
16228
  y("button", Yl, [
16229
- o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, z(n.ssoLang[n.appLanguage].continue), 1))
16229
+ o.loading ? (S(), P("span", $l)) : (S(), P("span", Wl, U(n.ssoLang[n.appLanguage].continue), 1))
16230
16230
  ])
16231
16231
  ], 34);
16232
16232
  }
@@ -16244,16 +16244,16 @@ const Co = /* @__PURE__ */ We(Fl, [["render", Jl], ["__scopeId", "data-v-11f19a0
16244
16244
  };
16245
16245
  },
16246
16246
  mounted() {
16247
- U.$on("toggleSSOPickModal", this.toggleModal), U.$on("closeModal", () => {
16247
+ z.$on("toggleSSOPickModal", this.toggleModal), z.$on("closeModal", () => {
16248
16248
  this.toggle = !1;
16249
16249
  });
16250
16250
  },
16251
16251
  beforeDestroy() {
16252
- U._events.toggleSSOPickModal.pop();
16252
+ z._events.toggleSSOPickModal.pop();
16253
16253
  },
16254
16254
  methods: {
16255
16255
  forceClose() {
16256
- U.$emit("closeModal");
16256
+ z.$emit("closeModal");
16257
16257
  },
16258
16258
  close() {
16259
16259
  this.toggleModal();
@@ -16305,14 +16305,14 @@ function du(n, e, t, r, o, i) {
16305
16305
  class: "color-black pull-right pointer",
16306
16306
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16307
16307
  }, eu),
16308
- y("h3", tu, z(n.ssoLang[n.appLanguage].select_sign_method), 1),
16308
+ y("h3", tu, U(n.ssoLang[n.appLanguage].select_sign_method), 1),
16309
16309
  (a = o.sso) != null && a.azure ? (S(), P("a", {
16310
16310
  key: 0,
16311
16311
  onClick: e[1] || (e[1] = (p) => i.ssoLogin("azure")),
16312
16312
  class: "button-center button black-button button-90 google-button pointer"
16313
16313
  }, [
16314
16314
  nu,
16315
- o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, z(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16315
+ o.azureLoad ? (S(), P("span", ou)) : (S(), P("span", ru, U(n.ssoLang[n.appLanguage].sign_in_with) + " Azure", 1))
16316
16316
  ])) : te("", !0),
16317
16317
  (s = o.sso) != null && s.okta ? (S(), P("a", {
16318
16318
  key: 1,
@@ -16320,7 +16320,7 @@ function du(n, e, t, r, o, i) {
16320
16320
  class: "button-center button black-button button-90 google-button pointer"
16321
16321
  }, [
16322
16322
  iu,
16323
- o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, z(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16323
+ o.oktaLoad ? (S(), P("span", su)) : (S(), P("span", au, U(n.ssoLang[n.appLanguage].sign_in_with) + " Okta", 1))
16324
16324
  ])) : te("", !0),
16325
16325
  (u = o.sso) != null && u.saml ? (S(), P("a", {
16326
16326
  key: 2,
@@ -16328,7 +16328,7 @@ function du(n, e, t, r, o, i) {
16328
16328
  class: "button-center button black-button button-90 google-button pointer"
16329
16329
  }, [
16330
16330
  cu,
16331
- o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, z(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16331
+ o.samlLoad ? (S(), P("span", uu)) : (S(), P("span", lu, U(n.ssoLang[n.appLanguage].sign_in_with) + " SAML", 1))
16332
16332
  ])) : te("", !0)
16333
16333
  ], 34);
16334
16334
  }
@@ -16455,7 +16455,7 @@ function _u(n, e, t, r, o, i) {
16455
16455
  y("span", {
16456
16456
  class: "link-text link-drag color-black",
16457
16457
  style: Ot({ color: (s = t.customLinkStyle) == null ? void 0 : s.color })
16458
- }, z(i.linkText), 5)
16458
+ }, U(i.linkText), 5)
16459
16459
  ], 6);
16460
16460
  }
16461
16461
  const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
@@ -16475,24 +16475,24 @@ const vu = /* @__PURE__ */ We(pu, [["render", _u]]), yu = {
16475
16475
  };
16476
16476
  },
16477
16477
  async mounted() {
16478
- U.$on("toggleLanguageModal", this.toggleModal), U.$on("closeModal", () => {
16478
+ z.$on("toggleLanguageModal", this.toggleModal), z.$on("closeModal", () => {
16479
16479
  this.toggle = !1;
16480
16480
  });
16481
16481
  let n = this.isNative ? await pn.getLanguageCode() : Ut.getFirstBrowserLanguage();
16482
16482
  n && yu.SUPPORTED_LANGUAGES.includes(n) && this.updateLanguage(n);
16483
16483
  },
16484
16484
  beforeDestroy() {
16485
- U._events.toggleLanguageModal.pop();
16485
+ z._events.toggleLanguageModal.pop();
16486
16486
  },
16487
16487
  methods: {
16488
16488
  forceClose() {
16489
- U.$emit("closeModal");
16489
+ z.$emit("closeModal");
16490
16490
  },
16491
16491
  close() {
16492
16492
  this.forceClose();
16493
16493
  },
16494
16494
  async updateLanguage(n) {
16495
- U.$emit("updateLang", n), U.$emit("closeModal");
16495
+ z.$emit("updateLang", n), z.$emit("closeModal");
16496
16496
  },
16497
16497
  toggleModal() {
16498
16498
  this.toggle = !this.toggle;
@@ -16518,7 +16518,7 @@ function Tu(n, e, t, r, o, i) {
16518
16518
  class: "color-black pull-right pointer",
16519
16519
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
16520
16520
  }, Cu),
16521
- y("h3", Eu, z(n.ssoLang[n.appLanguage].app_language), 1),
16521
+ y("h3", Eu, U(n.ssoLang[n.appLanguage].app_language), 1),
16522
16522
  ke(a, {
16523
16523
  onClick: e[1] || (e[1] = (s) => i.updateLanguage("en")),
16524
16524
  "link-style": "link-grid",
@@ -16644,7 +16644,7 @@ const Su = { id: "ssoapp" }, Au = {
16644
16644
  }
16645
16645
  },
16646
16646
  async mounted() {
16647
- 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));
16647
+ 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, storage: this.$storage })), z.$on("switchAccount", (n) => this.switchAccount(n)), z.$on("setToken", (n) => this.setToken(n));
16648
16648
  },
16649
16649
  methods: {
16650
16650
  async init() {
@@ -16652,19 +16652,19 @@ const Su = { id: "ssoapp" }, Au = {
16652
16652
  return;
16653
16653
  this.isSetup = !0, this.setToken(this.$storage.token);
16654
16654
  const n = this.getRefreshTokens();
16655
- console.log({ refreshTokens: n }), this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
16655
+ this.setRefreshToken(n[0]), await this.getLoggedInAccounts(n), this.$emit("ssoLibraryReady", this.$storage);
16656
16656
  },
16657
16657
  ssoOutgoingEvent(n) {
16658
16658
  this.$emit("ssoEvent", n);
16659
16659
  },
16660
16660
  ssoIncomingEvent(n) {
16661
- U.$emit(n.name, n.data);
16661
+ z.$emit(n.name, n.data);
16662
16662
  },
16663
16663
  applyBgStyle() {
16664
16664
  this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
16665
16665
  },
16666
16666
  toggleLanguageModal() {
16667
- U.$emit("toggleLanguageModal", !0);
16667
+ z.$emit("toggleLanguageModal", !0);
16668
16668
  }
16669
16669
  },
16670
16670
  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, z(e.appLanguage.toUpperCase()), 1)
16693
+ y("span", Mu, U(e.appLanguage.toUpperCase()), 1)
16694
16694
  ])) : te("", !0),
16695
16695
  ke(bo),
16696
16696
  n.isModal ? te("", !0) : (S(), qe(To, { key: 2 })),
@@ -16708,14 +16708,14 @@ const Su = { id: "ssoapp" }, Au = {
16708
16708
  }, null, 8, ["isModal"])) : e.initialized && e.renderView === "AuthReset" ? (S(), qe(ko, { key: 9 })) : e.initialized && e.renderView === "AuthCallback" ? (S(), qe(wo, { key: 10 })) : e.display !== "npm" ? (S(), qe(Qo(Yo), { key: 11 })) : te("", !0),
16709
16709
  y("div", Nu, [
16710
16710
  y("p", Lu, [
16711
- y("span", Ou, z(e.ssoLang[e.appLanguage].error), 1),
16711
+ y("span", Ou, U(e.ssoLang[e.appLanguage].error), 1),
16712
16712
  y("a", {
16713
16713
  onClick: t[1] || (t[1] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16714
16714
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
16715
16715
  }, Uu)
16716
16716
  ]),
16717
16717
  y("p", xu, [
16718
- y("span", Bu, z(e.ssoLang[e.appLanguage].success), 1),
16718
+ y("span", Bu, U(e.ssoLang[e.appLanguage].success), 1),
16719
16719
  y("a", {
16720
16720
  onClick: t[2] || (t[2] = (...r) => e.closeSnacks && e.closeSnacks(...r)),
16721
16721
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }