@tapni/auth 0.0.30 → 0.0.32

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.
@@ -13,7 +13,7 @@ import { Browser as F } from "@capacitor/browser";
13
13
  import qe from "qr-code-styling";
14
14
  import { sanitizeUrl as Me } from "@braintree/sanitize-url";
15
15
  import Re from "@tapni/capacitor-reactive-localstorage-vue3";
16
- const Ne = "0.0.29", m = (e, a = !1) => {
16
+ const Ne = "0.0.31", m = (e, a = !1) => {
17
17
  const n = Ne;
18
18
  let o = $.create({
19
19
  baseURL: "https://api.tapni.co/v1/",
@@ -26,11 +26,11 @@ const Ne = "0.0.29", m = (e, a = !1) => {
26
26
  return o.interceptors.request.use(async function(i) {
27
27
  if (["post", "put", "delete"].includes(i.method.toLowerCase()) ? i.data = {
28
28
  ...i.data,
29
- lang: e.appLang,
29
+ lang: e.appLanguage,
30
30
  realm: e.realm || "app"
31
31
  } : i.method.toLowerCase() === "get" && (i.params = {
32
32
  ...i.params,
33
- lang: e.appLang,
33
+ lang: e.appLanguage,
34
34
  realm: e.realm || "app"
35
35
  }), e.token && !a) {
36
36
  const r = te(e.token);
@@ -4307,7 +4307,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4307
4307
  /** Copy string to clipboard */
4308
4308
  copy(e = "") {
4309
4309
  const a = document.createElement("textarea");
4310
- a.value = e, a.setAttribute("readonly", ""), a.style.position = "absolute", a.style.left = "-9999px", document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a), this.successSnack(this.ssoLang[this.appLang].copied);
4310
+ a.value = e, a.setAttribute("readonly", ""), a.style.position = "absolute", a.style.left = "-9999px", document.body.appendChild(a), a.select(), document.execCommand("copy"), document.body.removeChild(a), this.successSnack(this.ssoLang[this.appLanguage].copied);
4311
4311
  },
4312
4312
  async getCaptchaToken(e) {
4313
4313
  try {
@@ -4368,7 +4368,7 @@ const z = {
4368
4368
  };
4369
4369
  },
4370
4370
  computed: {
4371
- appLang() {
4371
+ appLanguage() {
4372
4372
  return this.appLanguage;
4373
4373
  },
4374
4374
  isLoggedIn() {
@@ -4445,9 +4445,9 @@ const z = {
4445
4445
  },
4446
4446
  async loginSetup(e) {
4447
4447
  var a, n;
4448
- e.data.refreshToken && this.setRefreshToken(e.data.refreshToken), e.data.token && this.setToken(e.data.token), ((n = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : n.ssoLang) !== this.appLang && d.$emit("ssoEvent", {
4448
+ e.data.refreshToken && this.setRefreshToken(e.data.refreshToken), e.data.token && this.setToken(e.data.token), ((n = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : n.ssoLang) !== this.appLanguage && d.$emit("ssoEvent", {
4449
4449
  name: "saveProfile",
4450
- data: { lang: this.appLang, username: e.data.data.username }
4450
+ data: { lang: this.appLanguage, username: e.data.data.username }
4451
4451
  }), this.setLoggedInUserId(e.data.data.id), this.$storage.UserId = e.data.data.id, this.$storage.username = e.data.data.username, e.isModal === !0 && this.setLoggedInAccounts([
4452
4452
  {
4453
4453
  id: e.data.data.id,
@@ -4490,7 +4490,7 @@ const z = {
4490
4490
  { code: e.data.auth_code, state: this.$route.query.state },
4491
4491
  a
4492
4492
  );
4493
- }) : this.display === "npm" && (d.$emit("ssoEvent", { name: "setLoading", data: !0 }), d.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: e.data.data.username } }), e.isModal && (d.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLang].success_login)), this.$router.push("/" + e.data.data.username + "#edit"));
4493
+ }) : this.display === "npm" && (d.$emit("ssoEvent", { name: "setLoading", data: !0 }), d.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: e.data.data.username } }), e.isModal && (d.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + e.data.data.username + "#edit"));
4494
4494
  },
4495
4495
  async register(e) {
4496
4496
  const [a, n] = await g(
@@ -4508,7 +4508,7 @@ const z = {
4508
4508
  );
4509
4509
  if (a)
4510
4510
  return this.errorHandler(a);
4511
- n.data.success && this.successSnack(this.ssoLang[this.appLang].password_reset_success);
4511
+ n.data.success && this.successSnack(this.ssoLang[this.appLanguage].password_reset_success);
4512
4512
  },
4513
4513
  async exchangeAuthCode(e) {
4514
4514
  const [a, n] = await g(
@@ -4655,7 +4655,7 @@ const z = {
4655
4655
  }, 1500), d.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4656
4656
  },
4657
4657
  methods: {}
4658
- }, ue = (e) => (O("data-v-8f6eac0d"), e = e(), B(), e), Ue = {
4658
+ }, ue = (e) => (O("data-v-806183a1"), e = e(), B(), e), Ue = {
4659
4659
  class: "page-login content-boxed content-boxed-padding center-text",
4660
4660
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
4661
4661
  }, Ke = ["autoplay"], $e = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("source", {
@@ -4666,7 +4666,7 @@ const z = {
4666
4666
  ], Fe = { class: "bold full-top no-bottom center-text" }, Qe = { class: "full-bottom half-top center-text color-black font-16" }, Ge = { class: "page-login-links center-text" }, We = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), Xe = {
4667
4667
  key: 2,
4668
4668
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4669
- }, Ye = /* @__PURE__ */ je('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-8f6eac0d><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-8f6eac0d></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-8f6eac0d><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-8f6eac0d></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-8f6eac0d><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-8f6eac0d></a>', 3), Ze = [
4669
+ }, Ye = /* @__PURE__ */ je('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-806183a1><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-806183a1></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-806183a1><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-806183a1></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-806183a1><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-806183a1></a>', 3), Ze = [
4670
4670
  Ye
4671
4671
  ];
4672
4672
  function Je(e, a, n, o, i, r) {
@@ -4681,8 +4681,8 @@ function Je(e, a, n, o, i, r) {
4681
4681
  style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
4682
4682
  autoplay: e.isNative
4683
4683
  }, He, 8, Ke),
4684
- t("h1", Fe, p(e.ssoLang[this.appLang].welcome), 1),
4685
- t("p", Qe, p(e.ssoLang[this.appLang].welcome_p1), 1),
4684
+ t("h1", Fe, p(e.ssoLang[this.appLanguage].welcome), 1),
4685
+ t("p", Qe, p(e.ssoLang[this.appLanguage].welcome_p1), 1),
4686
4686
  h("", !0),
4687
4687
  h("", !0),
4688
4688
  v(u, {
@@ -4691,15 +4691,15 @@ function Je(e, a, n, o, i, r) {
4691
4691
  class: "button-center button button-90 google-button bg-tapni-grey pointer"
4692
4692
  }, {
4693
4693
  default: j(() => [
4694
- t("span", null, p(e.ssoLang[this.appLang].create_account), 1)
4694
+ t("span", null, p(e.ssoLang[this.appLanguage].create_account), 1)
4695
4695
  ]),
4696
4696
  _: 1
4697
4697
  }),
4698
4698
  t("div", Ge, [
4699
4699
  v(u, { to: "/login" }, {
4700
4700
  default: j(() => [
4701
- f(p(e.ssoLang[this.appLang].already_registered) + "? ", 1),
4702
- t("b", null, p(e.ssoLang[this.appLang].sign_in), 1)
4701
+ f(p(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4702
+ t("b", null, p(e.ssoLang[this.appLanguage].sign_in), 1)
4703
4703
  ]),
4704
4704
  _: 1
4705
4705
  }),
@@ -4708,7 +4708,7 @@ function Je(e, a, n, o, i, r) {
4708
4708
  this.isNative ? h("", !0) : (c(), l("div", Xe, Ze))
4709
4709
  ]);
4710
4710
  }
4711
- const _e = /* @__PURE__ */ T(De, [["render", Je], ["__scopeId", "data-v-8f6eac0d"]]), me = {
4711
+ const _e = /* @__PURE__ */ T(De, [["render", Je], ["__scopeId", "data-v-806183a1"]]), me = {
4712
4712
  data() {
4713
4713
  return {
4714
4714
  googleLoad: !1
@@ -4742,7 +4742,7 @@ const _e = /* @__PURE__ */ T(De, [["render", Je], ["__scopeId", "data-v-8f6eac0d
4742
4742
  this.googleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4743
4743
  }, 1e3);
4744
4744
  } else
4745
- this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
4745
+ this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4746
4746
  } else
4747
4747
  this.googleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4748
4748
  }
@@ -4795,7 +4795,7 @@ const ge = {
4795
4795
  this.facebookLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4796
4796
  }, 1e3);
4797
4797
  } else
4798
- this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
4798
+ this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4799
4799
  } else
4800
4800
  this.facebookLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4801
4801
  }
@@ -4835,7 +4835,7 @@ const ge = {
4835
4835
  this.appleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4836
4836
  }, 1e3);
4837
4837
  } else
4838
- this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
4838
+ this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4839
4839
  } else
4840
4840
  this.appleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4841
4841
  }
@@ -4888,7 +4888,7 @@ const Q = {
4888
4888
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4889
4889
  }, 1e3);
4890
4890
  } else
4891
- this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
4891
+ this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4892
4892
  } else
4893
4893
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4894
4894
  },
@@ -5014,7 +5014,7 @@ const Q = {
5014
5014
  this.appleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
5015
5015
  }, 1e3);
5016
5016
  } else
5017
- this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
5017
+ this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
5018
5018
  },
5019
5019
  async oktaLogin(e) {
5020
5020
  const a = D.getPlatform() || "web";
@@ -5340,7 +5340,7 @@ function Xa(e, a, n, o, i, r) {
5340
5340
  class: "bold no-bottom center-text",
5341
5341
  style: { "margin-top": "63px" },
5342
5342
  onClick: a[1] || (a[1] = (...s) => r.bum && r.bum(...s))
5343
- }, p(this.ssoLang[this.appLang].login), 1),
5343
+ }, p(this.ssoLang[this.appLanguage].login), 1),
5344
5344
  oa,
5345
5345
  r.displayFormLogin ? (c(), l("span", ra, [
5346
5346
  t("div", sa, [
@@ -5354,7 +5354,7 @@ function Xa(e, a, n, o, i, r) {
5354
5354
  spellcheck: "false",
5355
5355
  type: "text",
5356
5356
  name: "email",
5357
- placeholder: e.ssoLang[this.appLang].email_username,
5357
+ placeholder: e.ssoLang[this.appLanguage].email_username,
5358
5358
  required: ""
5359
5359
  }, null, 40, la), [
5360
5360
  [x, i.emailOrUsername]
@@ -5366,7 +5366,7 @@ function Xa(e, a, n, o, i, r) {
5366
5366
  k(t("input", {
5367
5367
  "onUpdate:modelValue": a[4] || (a[4] = (s) => i.password = s),
5368
5368
  type: i.revealPassword ? "text" : "password",
5369
- placeholder: e.ssoLang[this.appLang].password,
5369
+ placeholder: e.ssoLang[this.appLanguage].password,
5370
5370
  name: "password",
5371
5371
  required: "",
5372
5372
  minlength: "8"
@@ -5386,7 +5386,7 @@ function Xa(e, a, n, o, i, r) {
5386
5386
  ])
5387
5387
  ]),
5388
5388
  t("button", ha, [
5389
- i.submitted ? (c(), l("span", va)) : (c(), l("span", fa, p(e.ssoLang[e.appLang].login), 1))
5389
+ i.submitted ? (c(), l("span", va)) : (c(), l("span", fa, p(e.ssoLang[e.appLanguage].login), 1))
5390
5390
  ])
5391
5391
  ])) : h("", !0),
5392
5392
  ka,
@@ -5396,7 +5396,7 @@ function Xa(e, a, n, o, i, r) {
5396
5396
  class: "button-center button button-90 google-button pointer"
5397
5397
  }, [
5398
5398
  ba,
5399
- e.appleLoad ? (c(), l("span", wa)) : (c(), l("span", ya, p(e.ssoLang[e.appLang].sign_in_with) + " Apple", 1))
5399
+ e.appleLoad ? (c(), l("span", wa)) : (c(), l("span", ya, p(e.ssoLang[e.appLanguage].sign_in_with) + " Apple", 1))
5400
5400
  ])) : h("", !0),
5401
5401
  e.displayGoogleLogin ? (c(), l("a", {
5402
5402
  key: 3,
@@ -5404,7 +5404,7 @@ function Xa(e, a, n, o, i, r) {
5404
5404
  class: "button-center button button-90 google-button pointer"
5405
5405
  }, [
5406
5406
  za,
5407
- e.googleLoad ? (c(), l("span", Sa)) : (c(), l("span", La, p(e.ssoLang[e.appLang].sign_in_with) + " Google", 1))
5407
+ e.googleLoad ? (c(), l("span", Sa)) : (c(), l("span", La, p(e.ssoLang[e.appLanguage].sign_in_with) + " Google", 1))
5408
5408
  ])) : h("", !0),
5409
5409
  e.displayFacebookLogin ? (c(), l("a", {
5410
5410
  key: 4,
@@ -5412,7 +5412,7 @@ function Xa(e, a, n, o, i, r) {
5412
5412
  class: "button-center button button-90 google-button pointer"
5413
5413
  }, [
5414
5414
  Ca,
5415
- e.facebookLoad ? (c(), l("span", ja)) : (c(), l("span", Ta, p(e.ssoLang[e.appLang].sign_in_with) + " Facebook", 1))
5415
+ e.facebookLoad ? (c(), l("span", ja)) : (c(), l("span", Ta, p(e.ssoLang[e.appLanguage].sign_in_with) + " Facebook", 1))
5416
5416
  ])) : h("", !0),
5417
5417
  e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
5418
5418
  key: 5,
@@ -5420,7 +5420,7 @@ function Xa(e, a, n, o, i, r) {
5420
5420
  class: "button-center button button-90 google-button pointer"
5421
5421
  }, [
5422
5422
  Pa,
5423
- e.microsoftLoad ? (c(), l("span", Ia)) : (c(), l("span", Aa, p(e.ssoLang[e.appLang].sign_in_with) + " Outlook", 1))
5423
+ e.microsoftLoad ? (c(), l("span", Ia)) : (c(), l("span", Aa, p(e.ssoLang[e.appLanguage].sign_in_with) + " Outlook", 1))
5424
5424
  ])),
5425
5425
  e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
5426
5426
  key: 6,
@@ -5428,7 +5428,7 @@ function Xa(e, a, n, o, i, r) {
5428
5428
  class: "button-center button button-90 google-button pointer"
5429
5429
  }, [
5430
5430
  Ea,
5431
- e.microsoftSSOLoad ? (c(), l("span", qa)) : (c(), l("span", xa, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1))
5431
+ e.microsoftSSOLoad ? (c(), l("span", qa)) : (c(), l("span", xa, p(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1))
5432
5432
  ])),
5433
5433
  e.displayMicrosoftSSOLogin ? (c(), l("a", {
5434
5434
  key: 7,
@@ -5436,7 +5436,7 @@ function Xa(e, a, n, o, i, r) {
5436
5436
  class: "button-center button button-90 google-button pointer"
5437
5437
  }, [
5438
5438
  Ma,
5439
- e.microsoftSSOLoad ? (c(), l("span", Ra, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1)) : (c(), l("span", Na))
5439
+ e.microsoftSSOLoad ? (c(), l("span", Ra, p(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1)) : (c(), l("span", Na))
5440
5440
  ])) : h("", !0),
5441
5441
  r.displayFormLogin ? h("", !0) : (c(), l("a", {
5442
5442
  key: 8,
@@ -5444,15 +5444,15 @@ function Xa(e, a, n, o, i, r) {
5444
5444
  class: "button-center button button-90 google-button pointer"
5445
5445
  }, [
5446
5446
  Va,
5447
- t("span", null, p(e.ssoLang[e.appLang].sign_in_with) + " Email", 1)
5447
+ t("span", null, p(e.ssoLang[e.appLanguage].sign_in_with) + " Email", 1)
5448
5448
  ])),
5449
5449
  Oa,
5450
5450
  t("p", Ba, [
5451
- f(p(e.ssoLang[e.appLang].terms_by_signing_in) + " ", 1),
5451
+ f(p(e.ssoLang[e.appLanguage].terms_by_signing_in) + " ", 1),
5452
5452
  Da,
5453
- t("a", Ua, p(e.ssoLang[this.appLang].terms_of_service), 1),
5454
- f(" " + p(e.ssoLang[e.appLang].and) + " ", 1),
5455
- t("a", Ka, p(e.ssoLang[this.appLang].privacy_policy), 1)
5453
+ t("a", Ua, p(e.ssoLang[this.appLanguage].terms_of_service), 1),
5454
+ f(" " + p(e.ssoLang[e.appLanguage].and) + " ", 1),
5455
+ t("a", Ka, p(e.ssoLang[this.appLanguage].privacy_policy), 1)
5456
5456
  ]),
5457
5457
  $a,
5458
5458
  n.isModal ? (c(), l("div", {
@@ -5461,9 +5461,9 @@ function Xa(e, a, n, o, i, r) {
5461
5461
  onClick: a[13] || (a[13] = (...s) => r.createAccountModal && r.createAccountModal(...s))
5462
5462
  }, [
5463
5463
  t("a", Qa, [
5464
- f(p(e.ssoLang[e.appLang].or) + " ", 1),
5464
+ f(p(e.ssoLang[e.appLanguage].or) + " ", 1),
5465
5465
  Ga,
5466
- f(" " + p(e.ssoLang[e.appLang].create_new_account), 1)
5466
+ f(" " + p(e.ssoLang[e.appLanguage].create_new_account), 1)
5467
5467
  ]),
5468
5468
  Wa
5469
5469
  ])) : (c(), l("div", Ha, [
@@ -5473,7 +5473,7 @@ function Xa(e, a, n, o, i, r) {
5473
5473
  to: "/register"
5474
5474
  }, {
5475
5475
  default: j(() => [
5476
- f(p(e.ssoLang[e.appLang].create_account), 1)
5476
+ f(p(e.ssoLang[e.appLanguage].create_account), 1)
5477
5477
  ]),
5478
5478
  _: 1
5479
5479
  })) : h("", !0),
@@ -5483,7 +5483,7 @@ function Xa(e, a, n, o, i, r) {
5483
5483
  to: "/reset"
5484
5484
  }, {
5485
5485
  default: j(() => [
5486
- f(p(e.ssoLang[e.appLang].reset_password), 1)
5486
+ f(p(e.ssoLang[e.appLanguage].reset_password), 1)
5487
5487
  ]),
5488
5488
  _: 1
5489
5489
  })) : h("", !0),
@@ -5522,13 +5522,13 @@ const fe = /* @__PURE__ */ T(na, [["render", Xa]]), Ya = {
5522
5522
  methods: {
5523
5523
  async submit() {
5524
5524
  if (this.password.length < 8)
5525
- return this.errorSnack(this.ssoLang[this.appLang].password_8_chars);
5525
+ return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);
5526
5526
  if (this.password.search(/[a-z]/) < 0)
5527
- return this.errorSnack(this.ssoLang[this.appLang].password_least_one_lowercase);
5527
+ return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);
5528
5528
  if (this.password.search(/[A-Z]/) < 0)
5529
- return this.errorSnack(this.ssoLang[this.appLang].password_least_one_uppercase);
5529
+ return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);
5530
5530
  if (this.password.search(/[0-9]/) < 0)
5531
- return this.errorSnack(this.ssoLang[this.appLang].password_least_one_number);
5531
+ return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);
5532
5532
  if (this.submitted)
5533
5533
  return;
5534
5534
  this.submitted = !0, this.email = this.email.trim(), this.username = this.username.trim();
@@ -5541,7 +5541,7 @@ const fe = /* @__PURE__ */ T(na, [["render", Xa]]), Ya = {
5541
5541
  captchaToken: await this.getCaptchaToken("account_verify"),
5542
5542
  ref: this.referral
5543
5543
  }, a = await this.register(e);
5544
- this.submitted = !1, a.data && a.data.success && (a.data.message === "SUCCESS_REGISTER" ? (this.isModal ? d.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLang].register_success), this.formButtonText = this.ssoLang[this.appLang].check_your_inbox) : a.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...a, isModal: e.isModal }), this.getLoggedInAccounts()), await this.loginSuccess({ ...a, isModal: e.isModal })));
5544
+ this.submitted = !1, a.data && a.data.success && (a.data.message === "SUCCESS_REGISTER" ? (this.isModal ? d.$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) : a.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...a, isModal: e.isModal }), this.getLoggedInAccounts()), await this.loginSuccess({ ...a, isModal: e.isModal })));
5545
5545
  },
5546
5546
  close() {
5547
5547
  d.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
@@ -5641,10 +5641,10 @@ function $n(e, a, n, o, i, r) {
5641
5641
  class: "color-black pull-right pointer",
5642
5642
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5643
5643
  }, Ja)) : h("", !0),
5644
- t("h1", en, p(e.ssoLang[this.appLang].register), 1),
5644
+ t("h1", en, p(e.ssoLang[this.appLanguage].register), 1),
5645
5645
  t("p", an, [
5646
5646
  i.usernameRegister ? (c(), l("span", nn, [
5647
- f(" t.link/" + p(i.username) + " " + p(e.ssoLang[this.appLang].username_is_free) + " ✅ ", 1),
5647
+ f(" t.link/" + p(i.username) + " " + p(e.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
5648
5648
  tn
5649
5649
  ])) : h("", !0)
5650
5650
  ]),
@@ -5656,7 +5656,7 @@ function $n(e, a, n, o, i, r) {
5656
5656
  onKeydown: a[2] || (a[2] = E(y(() => {
5657
5657
  }, ["prevent"]), ["space"])),
5658
5658
  type: "email",
5659
- placeholder: e.ssoLang[this.appLang].email,
5659
+ placeholder: e.ssoLang[this.appLanguage].email,
5660
5660
  name: "email",
5661
5661
  required: ""
5662
5662
  }, null, 40, cn), [
@@ -5674,7 +5674,7 @@ function $n(e, a, n, o, i, r) {
5674
5674
  autocorrect: "off",
5675
5675
  autocapitalize: "off",
5676
5676
  spellcheck: "false",
5677
- placeholder: e.ssoLang[this.appLang].username,
5677
+ placeholder: e.ssoLang[this.appLanguage].username,
5678
5678
  name: "username",
5679
5679
  required: "",
5680
5680
  disabled: i.usernameRegister,
@@ -5689,7 +5689,7 @@ function $n(e, a, n, o, i, r) {
5689
5689
  k(t("input", {
5690
5690
  "onUpdate:modelValue": a[5] || (a[5] = (s) => i.password = s),
5691
5691
  type: i.revealPassword ? "text" : "password",
5692
- placeholder: e.ssoLang[this.appLang].password,
5692
+ placeholder: e.ssoLang[this.appLanguage].password,
5693
5693
  name: "password",
5694
5694
  required: "",
5695
5695
  minlength: "8"
@@ -5719,14 +5719,14 @@ function $n(e, a, n, o, i, r) {
5719
5719
  class: "button-center button button-90 google-button pointer"
5720
5720
  }, [
5721
5721
  zn,
5722
- e.appleLoad ? (c(), l("span", Sn)) : (c(), l("span", Ln, p(e.ssoLang[this.appLang].sign_up_with) + " Apple", 1))
5722
+ e.appleLoad ? (c(), l("span", Sn)) : (c(), l("span", Ln, p(e.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
5723
5723
  ])) : h("", !0),
5724
5724
  t("a", {
5725
5725
  onClick: a[8] || (a[8] = (...s) => e.googleLogin && e.googleLogin(...s)),
5726
5726
  class: "button-center button button-90 google-button pointer"
5727
5727
  }, [
5728
5728
  Cn,
5729
- e.googleLoad ? (c(), l("span", jn)) : (c(), l("span", Tn, p(e.ssoLang[this.appLang].sign_up_with) + " Google", 1))
5729
+ e.googleLoad ? (c(), l("span", jn)) : (c(), l("span", Tn, p(e.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
5730
5730
  ]),
5731
5731
  e.displayFacebookLogin ? (c(), l("a", {
5732
5732
  key: 3,
@@ -5734,7 +5734,7 @@ function $n(e, a, n, o, i, r) {
5734
5734
  class: "button-center button button-90 google-button pointer"
5735
5735
  }, [
5736
5736
  Pn,
5737
- e.facebookLoad ? (c(), l("span", In)) : (c(), l("span", An, p(e.ssoLang[this.appLang].sign_up_with) + " Facebook", 1))
5737
+ e.facebookLoad ? (c(), l("span", In)) : (c(), l("span", An, p(e.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
5738
5738
  ])) : h("", !0),
5739
5739
  i.emailLogin ? h("", !0) : (c(), l("a", {
5740
5740
  key: 4,
@@ -5742,15 +5742,15 @@ function $n(e, a, n, o, i, r) {
5742
5742
  class: "button-center button button-90 google-button pointer"
5743
5743
  }, [
5744
5744
  En,
5745
- t("span", null, p(e.ssoLang[this.appLang].sign_up_with) + " Email", 1)
5745
+ t("span", null, p(e.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
5746
5746
  ])),
5747
5747
  xn,
5748
5748
  t("p", qn, [
5749
- f(p(e.ssoLang[this.appLang].terms_by_registering) + " ", 1),
5749
+ f(p(e.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
5750
5750
  Mn,
5751
- t("a", Rn, p(e.ssoLang[this.appLang].terms_of_service), 1),
5752
- f(" " + p(e.ssoLang[this.appLang].and) + " ", 1),
5753
- t("a", Nn, p(e.ssoLang[this.appLang].privacy_policy), 1)
5751
+ t("a", Rn, p(e.ssoLang[this.appLanguage].terms_of_service), 1),
5752
+ f(" " + p(e.ssoLang[this.appLanguage].and) + " ", 1),
5753
+ t("a", Nn, p(e.ssoLang[this.appLanguage].privacy_policy), 1)
5754
5754
  ]),
5755
5755
  Vn,
5756
5756
  n.isModal ? (c(), l("div", {
@@ -5759,9 +5759,9 @@ function $n(e, a, n, o, i, r) {
5759
5759
  onClick: a[11] || (a[11] = (...s) => r.loginAccountModal && r.loginAccountModal(...s))
5760
5760
  }, [
5761
5761
  t("a", Dn, [
5762
- f(p(e.ssoLang[this.appLang].or) + " ", 1),
5762
+ f(p(e.ssoLang[this.appLanguage].or) + " ", 1),
5763
5763
  Un,
5764
- f(" " + p(e.ssoLang[this.appLang].sign_in_with_new), 1)
5764
+ f(" " + p(e.ssoLang[this.appLanguage].sign_in_with_new), 1)
5765
5765
  ]),
5766
5766
  Kn
5767
5767
  ])) : (c(), l("div", On, [
@@ -5770,7 +5770,7 @@ function $n(e, a, n, o, i, r) {
5770
5770
  to: "/verify"
5771
5771
  }, {
5772
5772
  default: j(() => [
5773
- f(p(e.ssoLang[this.appLang].verify_account), 1)
5773
+ f(p(e.ssoLang[this.appLanguage].verify_account), 1)
5774
5774
  ]),
5775
5775
  _: 1
5776
5776
  }),
@@ -5779,7 +5779,7 @@ function $n(e, a, n, o, i, r) {
5779
5779
  to: "/login"
5780
5780
  }, {
5781
5781
  default: j(() => [
5782
- f(p(e.ssoLang[this.appLang].sign_in), 1)
5782
+ f(p(e.ssoLang[this.appLanguage].sign_in), 1)
5783
5783
  ]),
5784
5784
  _: 1
5785
5785
  }),
@@ -5816,7 +5816,7 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5816
5816
  },
5817
5817
  async submit() {
5818
5818
  if (this.code.length !== 6)
5819
- return this.errorSnack(this.ssoLang[this.appLang].invalid_code);
5819
+ return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
5820
5820
  this.email = this.email.trim(), this.code = this.code.trim();
5821
5821
  let e = {
5822
5822
  code: this.code,
@@ -5827,7 +5827,7 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5827
5827
  return !1;
5828
5828
  this.submitted = !0;
5829
5829
  let a = await this.verify(e);
5830
- this.submitted = !1, a && a.data && a.data.success === !0 ? (this.action === "reset" && (this.$router.push("/reset?c=" + this.code + "&e=" + this.email), this.successSnack(this.ssoLang[this.appLang].verify_account_success)), this.action === "verify" && (this.isModal && (this.email = "", this.code = "", d.$emit("closeModal")), await this.loginSetup(a), this.getLoggedInAccounts(), this.$storage.verifyEmail = "", this.$router.push("/" + a.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLang].verify_account_success2))) : this.submitted = !1;
5830
+ this.submitted = !1, a && a.data && a.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 = "", d.$emit("closeModal")), await this.loginSetup(a), this.getLoggedInAccounts(), this.$storage.verifyEmail = "", this.$router.push("/" + a.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
5831
5831
  },
5832
5832
  registerAccountModal() {
5833
5833
  d.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
@@ -5850,7 +5850,7 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5850
5850
  deep: !0
5851
5851
  }
5852
5852
  }
5853
- }, C = (e) => (O("data-v-a8caa217"), e = e(), B(), e), Fn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5853
+ }, C = (e) => (O("data-v-a80e9eb1"), e = e(), B(), e), Fn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5854
5854
  /* @__PURE__ */ t("img", {
5855
5855
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5856
5856
  class: "responsive-image",
@@ -5899,7 +5899,7 @@ function ft(e, a, n, o, i, r) {
5899
5899
  class: "color-black pull-right pointer",
5900
5900
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5901
5901
  }, Qn)) : h("", !0),
5902
- t("h1", Gn, p(e.ssoLang[this.appLang].verify_account), 1),
5902
+ t("h1", Gn, p(e.ssoLang[this.appLanguage].verify_account), 1),
5903
5903
  Wn,
5904
5904
  t("div", Xn, [
5905
5905
  Yn,
@@ -5909,7 +5909,7 @@ function ft(e, a, n, o, i, r) {
5909
5909
  onKeydown: a[2] || (a[2] = E(y(() => {
5910
5910
  }, ["prevent"]), ["space"])),
5911
5911
  type: "email",
5912
- placeholder: e.ssoLang[this.appLang].email,
5912
+ placeholder: e.ssoLang[this.appLanguage].email,
5913
5913
  required: ""
5914
5914
  }, null, 40, Zn), [
5915
5915
  [x, i.email]
@@ -5924,7 +5924,7 @@ function ft(e, a, n, o, i, r) {
5924
5924
  onKeydown: a[4] || (a[4] = E(y(() => {
5925
5925
  }, ["prevent"]), ["space"])),
5926
5926
  type: "tel",
5927
- placeholder: e.ssoLang[this.appLang].code,
5927
+ placeholder: e.ssoLang[this.appLanguage].code,
5928
5928
  required: ""
5929
5929
  }, null, 40, nt), [
5930
5930
  [x, i.code]
@@ -5932,12 +5932,12 @@ function ft(e, a, n, o, i, r) {
5932
5932
  tt
5933
5933
  ]),
5934
5934
  t("button", it, [
5935
- i.submitted ? (c(), l("span", rt)) : (c(), l("span", ot, p(e.ssoLang[this.appLang].verify_account), 1))
5935
+ i.submitted ? (c(), l("span", rt)) : (c(), l("span", ot, p(e.ssoLang[this.appLanguage].verify_account), 1))
5936
5936
  ]),
5937
5937
  st,
5938
5938
  t("p", ct, [
5939
5939
  t("span", {
5940
- innerHTML: e.ssoLang[this.appLang].verify_account_p1
5940
+ innerHTML: e.ssoLang[this.appLanguage].verify_account_p1
5941
5941
  }, null, 8, lt),
5942
5942
  dt
5943
5943
  ]),
@@ -5948,9 +5948,9 @@ function ft(e, a, n, o, i, r) {
5948
5948
  onClick: a[5] || (a[5] = (...s) => r.registerAccountModal && r.registerAccountModal(...s))
5949
5949
  }, [
5950
5950
  t("a", mt, [
5951
- f(p(e.ssoLang[this.appLang].or) + " ", 1),
5951
+ f(p(e.ssoLang[this.appLanguage].or) + " ", 1),
5952
5952
  gt,
5953
- f(" " + p(e.ssoLang[this.appLang].create_new_account), 1)
5953
+ f(" " + p(e.ssoLang[this.appLanguage].create_new_account), 1)
5954
5954
  ]),
5955
5955
  ht
5956
5956
  ])) : (c(), l("div", ut, [
@@ -5959,7 +5959,7 @@ function ft(e, a, n, o, i, r) {
5959
5959
  to: "/register"
5960
5960
  }, {
5961
5961
  default: j(() => [
5962
- f(p(e.ssoLang[this.appLang].register), 1)
5962
+ f(p(e.ssoLang[this.appLanguage].register), 1)
5963
5963
  ]),
5964
5964
  _: 1
5965
5965
  }),
@@ -5968,7 +5968,7 @@ function ft(e, a, n, o, i, r) {
5968
5968
  to: "/login"
5969
5969
  }, {
5970
5970
  default: j(() => [
5971
- f(p(e.ssoLang[this.appLang].sign_in), 1)
5971
+ f(p(e.ssoLang[this.appLanguage].sign_in), 1)
5972
5972
  ]),
5973
5973
  _: 1
5974
5974
  }),
@@ -5976,7 +5976,7 @@ function ft(e, a, n, o, i, r) {
5976
5976
  ]))
5977
5977
  ], 36);
5978
5978
  }
5979
- const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-a8caa217"]]), vt = {
5979
+ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-a80e9eb1"]]), vt = {
5980
5980
  name: "AuthReset",
5981
5981
  mixins: [z],
5982
5982
  data() {
@@ -6009,9 +6009,9 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-a8caa217
6009
6009
  },
6010
6010
  async changePw() {
6011
6011
  if (this.code.length !== 6)
6012
- return this.errorSnack(this.ssoLang[this.appLang].invalid_code);
6012
+ return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);
6013
6013
  if (this.password !== this.passwordRepeat)
6014
- return this.errorSnack(this.ssoLang[this.appLang].password_not_match);
6014
+ return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);
6015
6015
  if (this.submitted)
6016
6016
  return;
6017
6017
  this.submitted = !0, this.email = this.email.trim(), this.code = this.code.trim();
@@ -6022,7 +6022,7 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-a8caa217
6022
6022
  passwordRepeat: this.passwordRepeat,
6023
6023
  captchaToken: await this.getCaptchaToken("password_reset")
6024
6024
  }, a = await this.changePassword(e);
6025
- this.submitted = !1, a === !0 && (this.$router.push("/login"), this.successSnack(this.ssoLang[this.appLang].password_reseted_success));
6025
+ this.submitted = !1, a === !0 && (this.$router.push("/login"), this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success));
6026
6026
  }
6027
6027
  },
6028
6028
  watch: {
@@ -6030,7 +6030,7 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-a8caa217
6030
6030
  this.$storage.verifyEmail = e;
6031
6031
  }
6032
6032
  }
6033
- }, A = (e) => (O("data-v-452bcb4c"), e = e(), B(), e), kt = {
6033
+ }, A = (e) => (O("data-v-7eff2bb3"), e = e(), B(), e), kt = {
6034
6034
  class: "bold no-bottom center-text",
6035
6035
  style: { "margin-top": "63px" }
6036
6036
  }, bt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1)), yt = { class: "page-login-field half-top color-black" }, wt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
@@ -6092,14 +6092,14 @@ function ei(e, a, n, o, i, r) {
6092
6092
  class: "page-login content-boxed content-boxed-padding",
6093
6093
  onSubmit: a[7] || (a[7] = y((...s) => r.changePw && r.changePw(...s), ["prevent"]))
6094
6094
  }, [
6095
- t("h3", Mt, p(e.ssoLang[this.appLang].password_change), 1),
6096
- t("p", Rt, p(e.ssoLang[this.appLang].password_new), 1),
6095
+ t("h3", Mt, p(e.ssoLang[this.appLanguage].password_change), 1),
6096
+ t("p", Rt, p(e.ssoLang[this.appLanguage].password_new), 1),
6097
6097
  t("div", Nt, [
6098
6098
  Vt,
6099
6099
  k(t("input", {
6100
6100
  "onUpdate:modelValue": a[3] || (a[3] = (s) => i.password = s),
6101
6101
  type: i.revealPassword ? "text" : "password",
6102
- placeholder: e.ssoLang[this.appLang].password,
6102
+ placeholder: e.ssoLang[this.appLanguage].password,
6103
6103
  required: ""
6104
6104
  }, null, 8, Ot), [
6105
6105
  [K, i.password]
@@ -6120,7 +6120,7 @@ function ei(e, a, n, o, i, r) {
6120
6120
  k(t("input", {
6121
6121
  "onUpdate:modelValue": a[5] || (a[5] = (s) => i.passwordRepeat = s),
6122
6122
  type: i.revealPassword2 ? "text" : "password",
6123
- placeholder: e.ssoLang[this.appLang].password_repeat,
6123
+ placeholder: e.ssoLang[this.appLanguage].password_repeat,
6124
6124
  required: ""
6125
6125
  }, null, 8, $t), [
6126
6126
  [K, i.passwordRepeat]
@@ -6137,16 +6137,16 @@ function ei(e, a, n, o, i, r) {
6137
6137
  ])
6138
6138
  ]),
6139
6139
  t("button", Qt, [
6140
- i.submitted ? (c(), l("span", Wt)) : (c(), l("span", Gt, p(e.ssoLang[this.appLang].password_change), 1))
6140
+ i.submitted ? (c(), l("span", Wt)) : (c(), l("span", Gt, p(e.ssoLang[this.appLanguage].password_change), 1))
6141
6141
  ]),
6142
6142
  Xt,
6143
6143
  t("p", Yt, [
6144
6144
  t("span", {
6145
- innerHTML: e.ssoLang[this.appLang].reset_password_p2
6145
+ innerHTML: e.ssoLang[this.appLanguage].reset_password_p2
6146
6146
  }, null, 8, Zt),
6147
6147
  f(),
6148
6148
  t("a", {
6149
- href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLang].password_reset_t
6149
+ href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLanguage].password_reset_t
6150
6150
  }, " support@tapni.co", 8, Jt)
6151
6151
  ])
6152
6152
  ], 32)) : (c(), l("form", {
@@ -6155,7 +6155,7 @@ function ei(e, a, n, o, i, r) {
6155
6155
  onSubmit: a[2] || (a[2] = y((...s) => r.resetEmail && r.resetEmail(...s), ["prevent"])),
6156
6156
  autocomplete: "on"
6157
6157
  }, [
6158
- t("h3", kt, p(e.ssoLang[this.appLang].reset_password), 1),
6158
+ t("h3", kt, p(e.ssoLang[this.appLanguage].reset_password), 1),
6159
6159
  bt,
6160
6160
  t("div", yt, [
6161
6161
  wt,
@@ -6165,7 +6165,7 @@ function ei(e, a, n, o, i, r) {
6165
6165
  onKeydown: a[1] || (a[1] = E(y(() => {
6166
6166
  }, ["prevent"]), ["space"])),
6167
6167
  type: "email",
6168
- placeholder: e.ssoLang[this.appLang].email,
6168
+ placeholder: e.ssoLang[this.appLanguage].email,
6169
6169
  required: ""
6170
6170
  }, null, 40, zt), [
6171
6171
  [x, i.email]
@@ -6173,15 +6173,15 @@ function ei(e, a, n, o, i, r) {
6173
6173
  Lt
6174
6174
  ]),
6175
6175
  t("button", St, [
6176
- i.submitted ? (c(), l("span", Tt)) : (c(), l("span", Ct, p(e.ssoLang[this.appLang].reset_password), 1))
6176
+ i.submitted ? (c(), l("span", Tt)) : (c(), l("span", Ct, p(e.ssoLang[this.appLanguage].reset_password), 1))
6177
6177
  ]),
6178
6178
  jt,
6179
6179
  t("p", Pt, [
6180
6180
  t("span", {
6181
- innerHTML: e.ssoLang[this.appLang].reset_password_p1
6181
+ innerHTML: e.ssoLang[this.appLanguage].reset_password_p1
6182
6182
  }, null, 8, At),
6183
6183
  t("a", {
6184
- href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLang].password_reset_t
6184
+ href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLanguage].password_reset_t
6185
6185
  }, " support@tapni.co", 8, It)
6186
6186
  ]),
6187
6187
  Et,
@@ -6191,7 +6191,7 @@ function ei(e, a, n, o, i, r) {
6191
6191
  to: "/verify"
6192
6192
  }, {
6193
6193
  default: j(() => [
6194
- f(p(e.ssoLang[this.appLang].verify_account), 1)
6194
+ f(p(e.ssoLang[this.appLanguage].verify_account), 1)
6195
6195
  ]),
6196
6196
  _: 1
6197
6197
  }),
@@ -6200,7 +6200,7 @@ function ei(e, a, n, o, i, r) {
6200
6200
  to: "/login"
6201
6201
  }, {
6202
6202
  default: j(() => [
6203
- f(p(e.ssoLang[this.appLang].sign_in), 1)
6203
+ f(p(e.ssoLang[this.appLanguage].sign_in), 1)
6204
6204
  ]),
6205
6205
  _: 1
6206
6206
  }),
@@ -6208,7 +6208,7 @@ function ei(e, a, n, o, i, r) {
6208
6208
  ])
6209
6209
  ], 32));
6210
6210
  }
6211
- const be = /* @__PURE__ */ T(vt, [["render", ei], ["__scopeId", "data-v-452bcb4c"]]), ai = {
6211
+ const be = /* @__PURE__ */ T(vt, [["render", ei], ["__scopeId", "data-v-7eff2bb3"]]), ai = {
6212
6212
  name: "AuthCallback",
6213
6213
  mixins: [G, W, z],
6214
6214
  data() {
@@ -6238,15 +6238,15 @@ const be = /* @__PURE__ */ T(vt, [["render", ei], ["__scopeId", "data-v-452bcb4c
6238
6238
  function oi(e, a, n, o, i, r) {
6239
6239
  return c(), l("div", null, [
6240
6240
  (e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (c(), l("h5", ni, [
6241
- f(p(e.ssoLang[this.appLang].you_will_be_redirected), 1),
6241
+ f(p(e.ssoLang[this.appLanguage].you_will_be_redirected), 1),
6242
6242
  ti,
6243
- f(" " + p(e.ssoLang[this.appLang].if_redirect_not_directly) + ", ", 1),
6243
+ f(" " + p(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
6244
6244
  t("span", {
6245
6245
  onClick: a[0] || (a[0] = (...u) => r.inAppRedirect && r.inAppRedirect(...u)),
6246
6246
  style: { color: "blue", cursor: "pointer" }
6247
- }, p(e.ssoLang[this.appLang].click_here), 1),
6247
+ }, p(e.ssoLang[this.appLanguage].click_here), 1),
6248
6248
  f(".")
6249
- ])) : (c(), l("h4", ii, p(e.ssoLang[this.appLang].please_wait), 1))
6249
+ ])) : (c(), l("h4", ii, p(e.ssoLang[this.appLanguage].please_wait), 1))
6250
6250
  ]);
6251
6251
  }
6252
6252
  const ye = /* @__PURE__ */ T(ai, [["render", oi]]), ri = {
@@ -6317,13 +6317,13 @@ const we = /* @__PURE__ */ T(ri, [["render", si], ["__scopeId", "data-v-a128c2fa
6317
6317
  email: this.email
6318
6318
  }));
6319
6319
  else
6320
- return this.forceClose(), this.errorSnack(this.ssoLang[this.appLang].no_sso_logins);
6320
+ return this.forceClose(), this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins);
6321
6321
  },
6322
6322
  toggleModal() {
6323
6323
  this.toggle = !this.toggle;
6324
6324
  }
6325
6325
  }
6326
- }, li = (e) => (O("data-v-256337c2"), e = e(), B(), e), di = /* @__PURE__ */ li(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6326
+ }, li = (e) => (O("data-v-11f19a09"), e = e(), B(), e), di = /* @__PURE__ */ li(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6327
6327
  /* @__PURE__ */ t("img", {
6328
6328
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6329
6329
  class: "responsive-image",
@@ -6350,12 +6350,12 @@ function fi(e, a, n, o, i, r) {
6350
6350
  class: "color-black pull-right pointer",
6351
6351
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6352
6352
  }, pi),
6353
- t("h3", ui, p(e.ssoLang[e.appLang].enter_company_email), 1),
6353
+ t("h3", ui, p(e.ssoLang[e.appLanguage].enter_company_email), 1),
6354
6354
  t("div", null, [
6355
6355
  k(t("input", {
6356
6356
  type: "text",
6357
6357
  "onUpdate:modelValue": a[1] || (a[1] = (u) => i.email = u),
6358
- placeholder: e.ssoLang[this.appLang].email,
6358
+ placeholder: e.ssoLang[this.appLanguage].email,
6359
6359
  autocomplete: "off",
6360
6360
  autocorrect: "off",
6361
6361
  autocapitalize: "off",
@@ -6370,11 +6370,11 @@ function fi(e, a, n, o, i, r) {
6370
6370
  ])
6371
6371
  ]),
6372
6372
  t("button", mi, [
6373
- i.loading ? (c(), l("span", hi)) : (c(), l("span", gi, p(e.ssoLang[e.appLang].continue), 1))
6373
+ i.loading ? (c(), l("span", hi)) : (c(), l("span", gi, p(e.ssoLang[e.appLanguage].continue), 1))
6374
6374
  ])
6375
6375
  ], 34);
6376
6376
  }
6377
- const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-256337c2"]]), vi = {
6377
+ const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-11f19a09"]]), vi = {
6378
6378
  name: "SSOPick",
6379
6379
  mixins: [Q, G, W, z],
6380
6380
  data() {
@@ -6409,7 +6409,7 @@ const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-256337c2
6409
6409
  this.azureLoad = !1, this.oktaLoad = !1, this.samlLoad = !1, this.sso = null, this.email = null, e && (this.sso = e.sso, this.email = e.email), this.toggle = !this.toggle;
6410
6410
  }
6411
6411
  }
6412
- }, X = (e) => (O("data-v-33bfb54b"), e = e(), B(), e), ki = /* @__PURE__ */ X(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6412
+ }, X = (e) => (O("data-v-4f821f65"), e = e(), B(), e), ki = /* @__PURE__ */ X(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6413
6413
  /* @__PURE__ */ t("img", {
6414
6414
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6415
6415
  class: "responsive-image",
@@ -6449,14 +6449,14 @@ function Ii(e, a, n, o, i, r) {
6449
6449
  class: "color-black pull-right pointer",
6450
6450
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6451
6451
  }, bi),
6452
- t("h3", yi, p(e.ssoLang[e.appLang].select_sign_method), 1),
6452
+ t("h3", yi, p(e.ssoLang[e.appLanguage].select_sign_method), 1),
6453
6453
  (u = i.sso) != null && u.azure ? (c(), l("a", {
6454
6454
  key: 0,
6455
6455
  onClick: a[1] || (a[1] = (L) => r.ssoLogin("azure")),
6456
6456
  class: "button-center button black-button button-90 google-button pointer"
6457
6457
  }, [
6458
6458
  wi,
6459
- i.azureLoad ? (c(), l("span", Li)) : (c(), l("span", zi, p(e.ssoLang[e.appLang].sign_in_with) + " Azure", 1))
6459
+ i.azureLoad ? (c(), l("span", Li)) : (c(), l("span", zi, p(e.ssoLang[e.appLanguage].sign_in_with) + " Azure", 1))
6460
6460
  ])) : h("", !0),
6461
6461
  (s = i.sso) != null && s.okta ? (c(), l("a", {
6462
6462
  key: 1,
@@ -6464,7 +6464,7 @@ function Ii(e, a, n, o, i, r) {
6464
6464
  class: "button-center button black-button button-90 google-button pointer"
6465
6465
  }, [
6466
6466
  Si,
6467
- i.oktaLoad ? (c(), l("span", Ti)) : (c(), l("span", Ci, p(e.ssoLang[e.appLang].sign_in_with) + " Okta", 1))
6467
+ i.oktaLoad ? (c(), l("span", Ti)) : (c(), l("span", Ci, p(e.ssoLang[e.appLanguage].sign_in_with) + " Okta", 1))
6468
6468
  ])) : h("", !0),
6469
6469
  (_ = i.sso) != null && _.saml ? (c(), l("a", {
6470
6470
  key: 2,
@@ -6472,11 +6472,11 @@ function Ii(e, a, n, o, i, r) {
6472
6472
  class: "button-center button black-button button-90 google-button pointer"
6473
6473
  }, [
6474
6474
  ji,
6475
- i.samlLoad ? (c(), l("span", Ai)) : (c(), l("span", Pi, p(e.ssoLang[e.appLang].sign_in_with) + " SAML", 1))
6475
+ i.samlLoad ? (c(), l("span", Ai)) : (c(), l("span", Pi, p(e.ssoLang[e.appLanguage].sign_in_with) + " SAML", 1))
6476
6476
  ])) : h("", !0)
6477
6477
  ], 34);
6478
6478
  }
6479
- const Le = /* @__PURE__ */ T(vi, [["render", Ii], ["__scopeId", "data-v-33bfb54b"]]), Ei = {
6479
+ const Le = /* @__PURE__ */ T(vi, [["render", Ii], ["__scopeId", "data-v-4f821f65"]]), Ei = {
6480
6480
  name: "LinkIcon",
6481
6481
  mixins: [z],
6482
6482
  props: {
@@ -6544,7 +6544,7 @@ const Le = /* @__PURE__ */ T(vi, [["render", Ii], ["__scopeId", "data-v-33bfb54b
6544
6544
  },
6545
6545
  computed: {
6546
6546
  linkText() {
6547
- return this.appLang !== "en" && this.data.text ? this.ssoLang[this.appLang]["link_text_" + this.data.text.toLowerCase().trim().replace(/ /g, "_")] || this.data.text : this.data.text;
6547
+ return this.appLanguage !== "en" && this.data.text ? this.ssoLang[this.appLanguage]["link_text_" + this.data.text.toLowerCase().trim().replace(/ /g, "_")] || this.data.text : this.data.text;
6548
6548
  }
6549
6549
  },
6550
6550
  methods: {}
@@ -6642,7 +6642,7 @@ const Vi = /* @__PURE__ */ T(Ei, [["render", Ni]]), Oi = {
6642
6642
  this.toggle = !this.toggle;
6643
6643
  }
6644
6644
  }
6645
- }, Di = (e) => (O("data-v-e5a7ac07"), e = e(), B(), e), Ui = /* @__PURE__ */ Di(() => /* @__PURE__ */ t("i", { class: "font-17 fa color-black" }, [
6645
+ }, Di = (e) => (O("data-v-34a6b7b2"), e = e(), B(), e), Ui = /* @__PURE__ */ Di(() => /* @__PURE__ */ t("i", { class: "font-17 fa color-black" }, [
6646
6646
  /* @__PURE__ */ t("img", {
6647
6647
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6648
6648
  class: "fa responsive-image",
@@ -6662,66 +6662,66 @@ function Hi(e, a, n, o, i, r) {
6662
6662
  class: "color-black pull-right pointer",
6663
6663
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6664
6664
  }, Ki),
6665
- t("h3", $i, p(e.ssoLang[e.appLang].app_language), 1),
6665
+ t("h3", $i, p(e.ssoLang[e.appLanguage].app_language), 1),
6666
6666
  v(u, {
6667
6667
  onClick: a[1] || (a[1] = (s) => r.updateLanguage("en")),
6668
6668
  "link-style": "link-grid",
6669
- data: { type: "lang/en", text: e.ssoLang[this.appLang].english },
6669
+ data: { type: "lang/en", text: e.ssoLang[this.appLanguage].english },
6670
6670
  editing: !1,
6671
6671
  class: b({ "add-button": !0 })
6672
6672
  }, null, 8, ["data"]),
6673
6673
  v(u, {
6674
6674
  onClick: a[2] || (a[2] = (s) => r.updateLanguage("es")),
6675
6675
  "link-style": "link-grid",
6676
- data: { type: "lang/es", text: e.ssoLang[this.appLang].spanish },
6676
+ data: { type: "lang/es", text: e.ssoLang[this.appLanguage].spanish },
6677
6677
  editing: !1,
6678
6678
  class: b({ "add-button": !0 })
6679
6679
  }, null, 8, ["data"]),
6680
6680
  v(u, {
6681
6681
  onClick: a[3] || (a[3] = (s) => r.updateLanguage("de")),
6682
6682
  "link-style": "link-grid",
6683
- data: { type: "lang/de", text: e.ssoLang[this.appLang].german },
6683
+ data: { type: "lang/de", text: e.ssoLang[this.appLanguage].german },
6684
6684
  editing: !1,
6685
6685
  class: b({ "add-button": !0 })
6686
6686
  }, null, 8, ["data"]),
6687
6687
  v(u, {
6688
6688
  onClick: a[4] || (a[4] = (s) => r.updateLanguage("it")),
6689
6689
  "link-style": "link-grid",
6690
- data: { type: "lang/it", text: e.ssoLang[this.appLang].italian },
6690
+ data: { type: "lang/it", text: e.ssoLang[this.appLanguage].italian },
6691
6691
  editing: !1,
6692
6692
  class: b({ "add-button": !0 })
6693
6693
  }, null, 8, ["data"]),
6694
6694
  v(u, {
6695
6695
  onClick: a[5] || (a[5] = (s) => r.updateLanguage("fr")),
6696
6696
  "link-style": "link-grid",
6697
- data: { type: "lang/fr", text: e.ssoLang[this.appLang].french },
6697
+ data: { type: "lang/fr", text: e.ssoLang[this.appLanguage].french },
6698
6698
  editing: !1,
6699
6699
  class: b({ "add-button": !0 })
6700
6700
  }, null, 8, ["data"]),
6701
6701
  v(u, {
6702
6702
  onClick: a[6] || (a[6] = (s) => r.updateLanguage("kr")),
6703
6703
  "link-style": "link-grid",
6704
- data: { type: "lang/kr", text: e.ssoLang[this.appLang].korean },
6704
+ data: { type: "lang/kr", text: e.ssoLang[this.appLanguage].korean },
6705
6705
  editing: !1,
6706
6706
  class: b({ "add-button": !0 })
6707
6707
  }, null, 8, ["data"]),
6708
6708
  v(u, {
6709
6709
  onClick: a[7] || (a[7] = (s) => r.updateLanguage("sr")),
6710
6710
  "link-style": "link-grid",
6711
- data: { type: "lang/sr", text: e.ssoLang[this.appLang].serbian },
6711
+ data: { type: "lang/sr", text: e.ssoLang[this.appLanguage].serbian },
6712
6712
  editing: !1,
6713
6713
  class: b({ "add-button": !0 })
6714
6714
  }, null, 8, ["data"]),
6715
6715
  v(u, {
6716
6716
  onClick: a[8] || (a[8] = (s) => r.updateLanguage("tr")),
6717
6717
  "link-style": "link-grid",
6718
- data: { type: "lang/tr", text: e.ssoLang[this.appLang].turkish },
6718
+ data: { type: "lang/tr", text: e.ssoLang[this.appLanguage].turkish },
6719
6719
  editing: !1,
6720
6720
  class: b({ "add-button": !0 })
6721
6721
  }, null, 8, ["data"])
6722
6722
  ], 2);
6723
6723
  }
6724
- const Se = /* @__PURE__ */ T(Bi, [["render", Hi], ["__scopeId", "data-v-e5a7ac07"]]);
6724
+ const Se = /* @__PURE__ */ T(Bi, [["render", Hi], ["__scopeId", "data-v-34a6b7b2"]]);
6725
6725
  var Fi = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
6726
6726
  const Qi = { id: "ssoapp" }, Gi = {
6727
6727
  key: 0,
@@ -6825,7 +6825,7 @@ const Qi = { id: "ssoapp" }, Gi = {
6825
6825
  class: "font-18 no-border pointer color-black",
6826
6826
  style: { position: "absolute", right: "20px", top: "-10px" }
6827
6827
  }, [
6828
- t("span", Yi, p(a.appLang.toUpperCase()), 1)
6828
+ t("span", Yi, p(a.appLanguage.toUpperCase()), 1)
6829
6829
  ])) : h("", !0),
6830
6830
  v(we),
6831
6831
  v(Se),
@@ -6843,14 +6843,14 @@ const Qi = { id: "ssoapp" }, Gi = {
6843
6843
  }, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(be, { key: 6 })) : a.initialized && a.renderView === "AuthCallback" ? (c(), P(ye, { key: 7 })) : (c(), P(Pe(Ae), { key: 8 })),
6844
6844
  t("div", Zi, [
6845
6845
  t("p", Ji, [
6846
- t("span", eo, p(a.ssoLang[a.appLang].error), 1),
6846
+ t("span", eo, p(a.ssoLang[a.appLanguage].error), 1),
6847
6847
  t("a", {
6848
6848
  onClick: n[1] || (n[1] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
6849
6849
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
6850
6850
  }, no)
6851
6851
  ]),
6852
6852
  t("p", to, [
6853
- t("span", io, p(a.ssoLang[a.appLang].success), 1),
6853
+ t("span", io, p(a.ssoLang[a.appLanguage].success), 1),
6854
6854
  t("a", {
6855
6855
  onClick: n[2] || (n[2] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
6856
6856
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }