@tapni/auth 0.0.23 → 0.0.25

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,21 +1,21 @@
1
1
  import { reactive as Ce, readonly as Te, resolveComponent as V, openBlock as c, createElementBlock as l, createElementVNode as t, toDisplayString as p, createCommentVNode as h, createVNode as v, withCtx as j, createTextVNode as f, pushScopeId as O, popScopeId as B, createStaticVNode as je, nextTick as J, withModifiers as y, normalizeStyle as R, withDirectives as k, withKeys as E, vModelText as x, vModelDynamic as K, vShow as I, createBlock as P, normalizeClass as b, unref as Pe } from "vue";
2
2
  import { RouterView as Ae } from "vue-router";
3
3
  import g from "await-to-js";
4
- import H from "axios";
5
- import { jwtDecode as ne } from "jwt-decode";
6
- import { Device as F } from "@capacitor/device";
7
- import { StorageMixin as te } from "@tapni/capacitor-reactive-localstorage-vue3";
4
+ import $ from "axios";
5
+ import { jwtDecode as te } from "jwt-decode";
6
+ import { Device as H } from "@capacitor/device";
8
7
  import { Capacitor as D } from "@capacitor/core";
9
8
  import { GoogleAuth as ee } from "@codetrix-studio/capacitor-google-auth";
10
9
  import { FacebookLogin as Ie } from "@capacitor-community/facebook-login";
11
10
  import { SignInWithApple as Ee } from "@capacitor-community/apple-sign-in";
12
11
  import { MsAuthPlugin as xe } from "@recognizebv/capacitor-plugin-msauth";
13
- import { Browser as Q } from "@capacitor/browser";
12
+ import { Browser as F } from "@capacitor/browser";
14
13
  import qe from "qr-code-styling";
15
14
  import { sanitizeUrl as Me } from "@braintree/sanitize-url";
16
- const Re = "0.0.22", m = (e, a = !1) => {
17
- const n = Re;
18
- let o = H.create({
15
+ import Re from "@tapni/capacitor-reactive-localstorage-vue3";
16
+ const Ne = "0.0.24", m = (e, a = !1) => {
17
+ const n = Ne;
18
+ let o = $.create({
19
19
  baseURL: "https://api.tapni.co/v1/",
20
20
  headers: {
21
21
  Authorization: `Bearer ${e.token}`,
@@ -33,7 +33,7 @@ const Re = "0.0.22", m = (e, a = !1) => {
33
33
  lang: e.appLang,
34
34
  realm: e.realm || "app"
35
35
  }), e.token && !a) {
36
- const r = ne(e.token);
36
+ const r = te(e.token);
37
37
  if (r.exp - 30 < Math.floor(Date.now() / 1e3))
38
38
  return z.methods.refreshTokenAction(r).then(() => (i.headers = {
39
39
  ...i.headers,
@@ -93,7 +93,7 @@ const Re = "0.0.22", m = (e, a = !1) => {
93
93
  }
94
94
  };
95
95
  let S;
96
- F.getId().then((e) => S = e.uuid);
96
+ H.getId().then((e) => S = e.uuid);
97
97
  const w = {
98
98
  register(e, a) {
99
99
  return e.device_id = S, m(a).post("/users/register", e);
@@ -3346,7 +3346,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
3346
3346
  choose_other_login_methods: "Diğer giriş yöntemlerini seçin",
3347
3347
  no_sso_logins: "Şirketiniz SSO girişini kullanmıyor, lütfen yöneticinizle iletişime geçin"
3348
3348
  }
3349
- }, Ne = {
3349
+ }, Ve = {
3350
3350
  state: {
3351
3351
  english: "英文",
3352
3352
  spanish: "西班牙文",
@@ -4251,11 +4251,10 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4251
4251
  choose_other_login_methods: "다른 로그인 방법 선택하기",
4252
4252
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
4253
4253
  }
4254
- }, Ve = {
4255
- mixins: [te],
4254
+ }, Oe = {
4256
4255
  computed: {
4257
4256
  home() {
4258
- return this.storage.token && this.storage.username ? "/" + this.storage.username : "/welcome";
4257
+ return this.$storage.token && this.$storage.username ? "/" + this.$storage.username : "/welcome";
4259
4258
  },
4260
4259
  isAndroid() {
4261
4260
  return /Android/i.test(navigator.userAgent) || D.getPlatform() === "android";
@@ -4274,17 +4273,6 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4274
4273
  return D.isNativePlatform();
4275
4274
  }
4276
4275
  },
4277
- async mounted() {
4278
- await this.initializeStorage({
4279
- realm: "",
4280
- token: "",
4281
- refreshTokens: "",
4282
- username: "",
4283
- UserId: "",
4284
- verifyEmail: "",
4285
- subdomain: ""
4286
- });
4287
- },
4288
4276
  methods: {
4289
4277
  errorHandler(e) {
4290
4278
  return e && e.response && e.response.data && e.response.data.error && ((e.response.data.error === "ACCESS_DENIED" || e.response.data.error === "TOKEN_EXPIRED") && this.logout(), !e.response.data.error.includes("Network Error") && !e.response.data.error.includes("Cannot read properties") && this.errorSnack(e.response.data.error)), e;
@@ -4330,9 +4318,9 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4330
4318
  }
4331
4319
  }
4332
4320
  };
4333
- var Oe = { 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 };
4321
+ var Be = { 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 };
4334
4322
  const z = {
4335
- mixins: [te, Ve],
4323
+ mixins: [Oe],
4336
4324
  data() {
4337
4325
  return {
4338
4326
  appLanguage: "en",
@@ -4351,7 +4339,7 @@ const z = {
4351
4339
  it: ce.state,
4352
4340
  sr: le.state,
4353
4341
  tr: de.state,
4354
- cn: Ne.state,
4342
+ cn: Ve.state,
4355
4343
  kr: pe.state
4356
4344
  },
4357
4345
  display: "npm",
@@ -4391,7 +4379,7 @@ const z = {
4391
4379
  }
4392
4380
  },
4393
4381
  mounted() {
4394
- 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), d.$on("updateLang", this.updateLang), Oe.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4382
+ 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), d.$on("updateLang", this.updateLang), Be.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4395
4383
  },
4396
4384
  methods: {
4397
4385
  errorHandler(e) {
@@ -4419,13 +4407,13 @@ const z = {
4419
4407
  },
4420
4408
  async eventLog(e) {
4421
4409
  const [a, n] = await g(
4422
- M.eventLog(e, this.storage)
4410
+ M.eventLog(e, this.$storage)
4423
4411
  );
4424
4412
  return a ? this.errorHandler(a) : n;
4425
4413
  },
4426
4414
  async maintenance() {
4427
4415
  const [e, a] = await g(
4428
- H.get("https://status.tapni.co/data/maintenance.json")
4416
+ $.get("https://status.tapni.co/data/maintenance.json")
4429
4417
  );
4430
4418
  if (e)
4431
4419
  return console.error(e);
@@ -4438,9 +4426,9 @@ const z = {
4438
4426
  if (e) {
4439
4427
  let a, n;
4440
4428
  if (e.username ? [a, n] = await g(
4441
- M.getByUsername(e, this.storage)
4429
+ M.getByUsername(e, this.$storage)
4442
4430
  ) : e.serial && ([a, n] = await g(
4443
- M.getByNumber(e, this.storage)
4431
+ M.getByNumber(e, this.$storage)
4444
4432
  )), a)
4445
4433
  return this.errorHandler(a);
4446
4434
  if (n.data.success) {
@@ -4460,7 +4448,7 @@ const z = {
4460
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", {
4461
4449
  name: "saveProfile",
4462
4450
  data: { lang: this.appLang, username: e.data.data.username }
4463
- }), 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([
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([
4464
4452
  {
4465
4453
  id: e.data.data.id,
4466
4454
  username: e.data.data.username,
@@ -4475,14 +4463,14 @@ const z = {
4475
4463
  id: e.id,
4476
4464
  refreshToken: this.refreshToken,
4477
4465
  refreshTokenAction: !0
4478
- }, this.storage)
4466
+ }, this.$storage)
4479
4467
  );
4480
4468
  if (a && a.response && a.response.data.error === "ACCESS_DENIED")
4481
4469
  return this.logout(!1), location.reload();
4482
4470
  this.setToken(n.data.token);
4483
4471
  },
4484
4472
  async login(e) {
4485
- const [a, n] = await g(w.login(e, this.storage));
4473
+ const [a, n] = await g(w.login(e, this.$storage));
4486
4474
  if (a)
4487
4475
  return this.errorHandler(a);
4488
4476
  if (n.data.success)
@@ -4506,17 +4494,17 @@ const z = {
4506
4494
  },
4507
4495
  async register(e) {
4508
4496
  const [a, n] = await g(
4509
- w.register(e, this.storage)
4497
+ w.register(e, this.$storage)
4510
4498
  );
4511
4499
  return a ? this.errorHandler(a) : n;
4512
4500
  },
4513
4501
  async verify(e) {
4514
- const [a, n] = await g(w.verify(e, this.storage));
4502
+ const [a, n] = await g(w.verify(e, this.$storage));
4515
4503
  return a ? this.errorHandler(a) : n;
4516
4504
  },
4517
4505
  async reset(e) {
4518
4506
  const [a, n] = await g(
4519
- w.sendResetEmail(e, this.storage)
4507
+ w.sendResetEmail(e, this.$storage)
4520
4508
  );
4521
4509
  if (a)
4522
4510
  return this.errorHandler(a);
@@ -4524,7 +4512,7 @@ const z = {
4524
4512
  },
4525
4513
  async exchangeAuthCode(e) {
4526
4514
  const [a, n] = await g(
4527
- H.post("https://api.tapni.co/v1/users/auth-code", {
4515
+ $.post("https://api.tapni.co/v1/users/auth-code", {
4528
4516
  code: e.code,
4529
4517
  code_verifier: e.code_verifier
4530
4518
  })
@@ -4535,24 +4523,24 @@ const z = {
4535
4523
  },
4536
4524
  async changePassword(e) {
4537
4525
  const [a, n] = await g(
4538
- w.changePassword(e, this.storage)
4526
+ w.changePassword(e, this.$storage)
4539
4527
  );
4540
4528
  return a ? this.errorHandler(a) : n.data.success;
4541
4529
  },
4542
4530
  async newPassword(e) {
4543
4531
  const [a, n] = await g(
4544
- M.newPassword(e, this.storage)
4532
+ M.newPassword(e, this.$storage)
4545
4533
  );
4546
4534
  return a ? this.errorHandler(a) : n.data.success;
4547
4535
  },
4548
4536
  async deleteAccount(e) {
4549
4537
  const [a, n] = await g(
4550
- M.deleteAccount(e, this.storage)
4538
+ M.deleteAccount(e, this.$storage)
4551
4539
  );
4552
4540
  return a ? this.errorHandler(a) : n.data.success;
4553
4541
  },
4554
4542
  async registerDevice() {
4555
- const e = await F.getId(), a = await F.getInfo();
4543
+ const e = await H.getId(), a = await H.getInfo();
4556
4544
  let n = {
4557
4545
  device_id: e.uuid,
4558
4546
  platform: a.platform,
@@ -4566,32 +4554,32 @@ const z = {
4566
4554
  }
4567
4555
  };
4568
4556
  const [o, i] = await g(
4569
- ae.registerDevice(n, this.storage)
4557
+ ae.registerDevice(n, this.$storage)
4570
4558
  );
4571
4559
  return o ? this.errorHandler(o) : i;
4572
4560
  },
4573
4561
  async addFcmToken(e) {
4574
4562
  const [a, n] = await g(
4575
- ae.addFcmToken(e, this.storage)
4563
+ ae.addFcmToken(e, this.$storage)
4576
4564
  );
4577
4565
  return a ? this.errorHandler(a) : n;
4578
4566
  },
4579
4567
  async acceptCompanyInvitation(e) {
4580
4568
  const [a, n] = await g(
4581
- Y.acceptCompanyInvitation(e, this.storage)
4569
+ Y.acceptCompanyInvitation(e, this.$storage)
4582
4570
  );
4583
4571
  return a ? this.errorHandler(a) : n;
4584
4572
  },
4585
4573
  async logout(e = !0) {
4586
- e && w.logout({ token: this.refreshToken }, this.storage), this.storage.username = null, this.storage.ssoUser = null, this.storage.UserId = null, this.setLoggedInUserId(null), this.setToken(null), this.setRefreshToken(null), this.refreshToken ? Object.keys(this.loggedInAccounts).forEach((a) => {
4574
+ e && w.logout({ token: this.refreshToken }, this.$storage), this.$storage.username = null, this.$storage.ssoUser = null, this.$storage.UserId = null, this.setLoggedInUserId(null), this.setToken(null), this.setRefreshToken(null), this.refreshToken ? Object.keys(this.loggedInAccounts).forEach((a) => {
4587
4575
  this.loggedInAccounts[a].refreshToken === this.refreshToken && this.refreshTokenAction({
4588
4576
  id: this.loggedInAccounts[a].id
4589
- }).then(() => (this.setLoggedInUserId(this.loggedInAccounts[a].id), this.storage.username = a, this.storage.UserId = this.loggedInAccounts[a].id, this.getLoggedInAccounts(), this.$router.push("/" + a)));
4577
+ }).then(() => (this.setLoggedInUserId(this.loggedInAccounts[a].id), this.$storage.username = a, this.$storage.UserId = this.loggedInAccounts[a].id, this.getLoggedInAccounts(), this.$router.push("/" + a)));
4590
4578
  }) : this.setUser(null), await this.$router.push("/welcome");
4591
4579
  },
4592
4580
  async getCompanyBySSOEmail(e) {
4593
4581
  const [a, n] = await g(
4594
- Y.getBySSOEmail(e.email, this.storage)
4582
+ Y.getBySSOEmail(e.email, this.$storage)
4595
4583
  );
4596
4584
  if (a)
4597
4585
  return this.errorHandler(a);
@@ -4600,7 +4588,7 @@ const z = {
4600
4588
  },
4601
4589
  async getLoggedInAccounts() {
4602
4590
  const e = this.getRefreshTokens(), [a, n] = await g(
4603
- w.getLoggedInAccounts({ refreshTokens: e }, this.storage)
4591
+ w.getLoggedInAccounts({ refreshTokens: e }, this.$storage)
4604
4592
  );
4605
4593
  if (a)
4606
4594
  return this.errorHandler(a);
@@ -4608,7 +4596,7 @@ const z = {
4608
4596
  },
4609
4597
  async loginUsingQR(e) {
4610
4598
  const [a, n] = await g(
4611
- M.loginUsingQR(e, this.storage)
4599
+ M.loginUsingQR(e, this.$storage)
4612
4600
  );
4613
4601
  return a ? this.errorHandler(a) : n.data.success;
4614
4602
  },
@@ -4621,20 +4609,20 @@ const z = {
4621
4609
  this.loggedInUserId = e;
4622
4610
  },
4623
4611
  setUser(e) {
4624
- this.ssoUser = e, this.storage && this.ssoUser && this.storage.username === this.ssoUser.username && (this.appLanguage = e.ssoLang);
4612
+ this.ssoUser = e, this.$storage && this.ssoUser && this.$storage.username === this.ssoUser.username && (this.appLanguage = e.ssoLang);
4625
4613
  },
4626
4614
  getRefreshTokens() {
4627
- return console.log("getRefreshTokens", this.storage, this.storageApp), this.storage.refreshTokens.split(",");
4615
+ return console.log("getRefreshTokens", this.$storage, this.$storageApp), this.$storage.refreshTokens.split(",");
4628
4616
  },
4629
4617
  setRefreshToken(e) {
4630
4618
  let a = this.getRefreshTokens();
4631
- e && !a.includes(e) ? a.unshift(e) : a = a.filter((n) => n !== this.refreshToken), a.length >= 1 ? this.refreshToken = a[0] : this.refreshToken = e, this.storage.refreshTokens = a.join(","), d.$emit("ssoEvent", { name: "setRefreshToken", data: e });
4619
+ e && !a.includes(e) ? a.unshift(e) : a = a.filter((n) => n !== this.refreshToken), a.length >= 1 ? this.refreshToken = a[0] : this.refreshToken = e, this.$storage.refreshTokens = a.join(","), d.$emit("ssoEvent", { name: "setRefreshToken", data: e });
4632
4620
  },
4633
4621
  setToken(e) {
4634
- console.log("setup token"), this.storage.token = e, this.token = e, d.$emit("ssoEvent", { name: "setToken", data: e });
4622
+ console.log("setup token"), this.$storage.token = e, this.token = e, d.$emit("ssoEvent", { name: "setToken", data: e });
4635
4623
  },
4636
4624
  setUserID(e) {
4637
- this.storage.UserId = e;
4625
+ this.$storage.UserId = e;
4638
4626
  },
4639
4627
  updateLang(e) {
4640
4628
  this.appLanguage = e;
@@ -4643,7 +4631,7 @@ const z = {
4643
4631
  watch: {
4644
4632
  "$route.query": {
4645
4633
  handler: function() {
4646
- 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), this.$route.query.qrLogin && this.changeLoginToQr();
4634
+ 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), this.$route.query.qrLogin && this.changeLoginToQr();
4647
4635
  },
4648
4636
  deep: !0
4649
4637
  }
@@ -4653,7 +4641,7 @@ const z = {
4653
4641
  for (const [o, i] of a)
4654
4642
  n[o] = i;
4655
4643
  return n;
4656
- }, Be = {
4644
+ }, De = {
4657
4645
  name: "AuthWelcome",
4658
4646
  mixins: [z],
4659
4647
  data() {
@@ -4663,27 +4651,27 @@ const z = {
4663
4651
  },
4664
4652
  async mounted() {
4665
4653
  document.getElementById("tapniVideo").play(), setTimeout(() => {
4666
- this.storage.token ? this.$router.push(this.home) : d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4654
+ this.$storage.token ? this.$router.push(this.home) : d.$emit("ssoEvent", { name: "setLoading", data: !1 });
4667
4655
  }, 1500), d.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4668
4656
  },
4669
4657
  methods: {}
4670
- }, ue = (e) => (O("data-v-bf520ec5"), e = e(), B(), e), De = {
4658
+ }, ue = (e) => (O("data-v-8f6eac0d"), e = e(), B(), e), Ue = {
4671
4659
  class: "page-login content-boxed content-boxed-padding center-text",
4672
4660
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
4673
- }, Ue = ["autoplay"], Ke = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("source", {
4661
+ }, Ke = ["autoplay"], $e = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("source", {
4674
4662
  src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
4675
4663
  type: "video/mp4"
4676
4664
  }, null, -1)), He = [
4677
- Ke
4678
- ], Fe = { class: "bold full-top no-bottom center-text" }, Qe = { class: "full-bottom half-top center-text color-black font-16" }, $e = { class: "page-login-links center-text" }, Ge = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), We = {
4665
+ $e
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 = {
4679
4667
  key: 2,
4680
4668
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4681
- }, Xe = /* @__PURE__ */ je('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a>', 3), Ye = [
4682
- Xe
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 = [
4670
+ Ye
4683
4671
  ];
4684
- function Ze(e, a, n, o, i, r) {
4672
+ function Je(e, a, n, o, i, r) {
4685
4673
  const u = V("router-link");
4686
- return c(), l("div", De, [
4674
+ return c(), l("div", Ue, [
4687
4675
  t("video", {
4688
4676
  id: "tapniVideo",
4689
4677
  muted: "",
@@ -4692,7 +4680,7 @@ function Ze(e, a, n, o, i, r) {
4692
4680
  width: "350",
4693
4681
  style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
4694
4682
  autoplay: e.isNative
4695
- }, He, 8, Ue),
4683
+ }, He, 8, Ke),
4696
4684
  t("h1", Fe, p(e.ssoLang[this.appLang].welcome), 1),
4697
4685
  t("p", Qe, p(e.ssoLang[this.appLang].welcome_p1), 1),
4698
4686
  h("", !0),
@@ -4707,7 +4695,7 @@ function Ze(e, a, n, o, i, r) {
4707
4695
  ]),
4708
4696
  _: 1
4709
4697
  }),
4710
- t("div", $e, [
4698
+ t("div", Ge, [
4711
4699
  v(u, { to: "/login" }, {
4712
4700
  default: j(() => [
4713
4701
  f(p(e.ssoLang[this.appLang].already_registered) + "? ", 1),
@@ -4715,12 +4703,12 @@ function Ze(e, a, n, o, i, r) {
4715
4703
  ]),
4716
4704
  _: 1
4717
4705
  }),
4718
- Ge
4706
+ We
4719
4707
  ]),
4720
- this.isNative ? h("", !0) : (c(), l("div", We, Ye))
4708
+ this.isNative ? h("", !0) : (c(), l("div", Xe, Ze))
4721
4709
  ]);
4722
4710
  }
4723
- const _e = /* @__PURE__ */ T(Be, [["render", Ze], ["__scopeId", "data-v-bf520ec5"]]), me = {
4711
+ const _e = /* @__PURE__ */ T(De, [["render", Je], ["__scopeId", "data-v-8f6eac0d"]]), me = {
4724
4712
  data() {
4725
4713
  return {
4726
4714
  googleLoad: !1
@@ -4744,7 +4732,7 @@ const _e = /* @__PURE__ */ T(Be, [["render", Ze], ["__scopeId", "data-v-bf520ec5
4744
4732
  return this.googleLoad = !1;
4745
4733
  if (this.referral && (a.ref = this.referral), a.authentication && (a.authentication.accessToken || a.authentication.idToken)) {
4746
4734
  this.referral && (a.ref = this.referral), this.display === "popup" && (a.response_type = "code");
4747
- const [o, i] = await g(w.googleSDK(a, this.storage));
4735
+ const [o, i] = await g(w.googleSDK(a, this.$storage));
4748
4736
  if (o)
4749
4737
  return this.googleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4750
4738
  if (i.data.success) {
@@ -4797,7 +4785,7 @@ const ge = {
4797
4785
  if (a)
4798
4786
  return this.facebookLoad = !1;
4799
4787
  if (this.referral && (n.ref = this.referral), this.display === "popup" && (n.response_type = "code"), n.accessToken) {
4800
- const [i, r] = await g(w.facebookSDK(n, this.storage));
4788
+ const [i, r] = await g(w.facebookSDK(n, this.$storage));
4801
4789
  if (i)
4802
4790
  return this.facebookLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
4803
4791
  if (r.data.success) {
@@ -4835,9 +4823,9 @@ const ge = {
4835
4823
  }));
4836
4824
  if (e)
4837
4825
  return this.appleLoad = !1;
4838
- if (a.response.tokenData = ne(a.response.identityToken), a && a.response && a.response.identityToken) {
4826
+ if (a.response.tokenData = te(a.response.identityToken), a && a.response && a.response.identityToken) {
4839
4827
  this.referral && (a.response.ref = this.referral), this.display === "popup" && (a.response_type = "code");
4840
- const [o, i] = await g(w.appleSDK(a.response, this.storage));
4828
+ const [o, i] = await g(w.appleSDK(a.response, this.$storage));
4841
4829
  if (o)
4842
4830
  return this.appleLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4843
4831
  if (i.data.success) {
@@ -4853,8 +4841,8 @@ const ge = {
4853
4841
  }
4854
4842
  }
4855
4843
  };
4856
- var Je = { 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 };
4857
- const $ = {
4844
+ var ea = { 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 };
4845
+ const Q = {
4858
4846
  data() {
4859
4847
  return {
4860
4848
  microsoftLoad: !1,
@@ -4879,14 +4867,14 @@ const $ = {
4879
4867
  knownAuthorities: [],
4880
4868
  keyHash: "4+5wCp8QcLptlO0aeP5RDTTOWyg=",
4881
4869
  // Android,
4882
- redirectUri: Je.NODE_ENV === "development" ? `${window.location.origin}/login` : "https://" + window.location.host + "/login"
4870
+ redirectUri: ea.NODE_ENV === "development" ? `${window.location.origin}/login` : "https://" + window.location.host + "/login"
4883
4871
  })
4884
4872
  );
4885
4873
  if (n)
4886
4874
  return console.log("Error: " + JSON.stringify(n)), this.microsoftLoad = !1;
4887
4875
  if (this.referral && (o.ref = this.referral), o.response_type = "code", o && (o.accessToken || o.idToken)) {
4888
4876
  const [s, _] = await g(
4889
- w.microsoftSDK(o, this.storage)
4877
+ w.microsoftSDK(o, this.$storage)
4890
4878
  );
4891
4879
  if (s)
4892
4880
  return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
@@ -5012,12 +5000,12 @@ const $ = {
5012
5000
  methods: {
5013
5001
  async exchangeCode(e) {
5014
5002
  var i, r;
5015
- let [a, n] = await g(H.post(e.domain + "/v1/token", new URLSearchParams({ code: e.code, client_id: e.clientID, grant_type: "authorization_code", redirect_uri: this.isNative ? "tapni://t.link/callback/okta" : location.origin + "/callback/okta", code_verifier: localStorage.getItem("pkce_code_verifier") })));
5003
+ let [a, n] = await g($.post(e.domain + "/v1/token", new URLSearchParams({ code: e.code, client_id: e.clientID, grant_type: "authorization_code", redirect_uri: this.isNative ? "tapni://t.link/callback/okta" : location.origin + "/callback/okta", code_verifier: localStorage.getItem("pkce_code_verifier") })));
5016
5004
  if (a)
5017
5005
  return this.errorHandler(a);
5018
5006
  localStorage.removeItem("pkce_code_verifier");
5019
5007
  let o = { accessToken: (i = n.data) == null ? void 0 : i.access_token, domain: e.domain };
5020
- if (this.display === "popup" && (o.response_type = "code"), [a, n] = await g(w.oktaSDK(o, this.storage)), a)
5008
+ if (this.display === "popup" && (o.response_type = "code"), [a, n] = await g(w.oktaSDK(o, this.$storage)), a)
5021
5009
  return this.oktaLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(a);
5022
5010
  if (n.data.success) {
5023
5011
  if (this.display === "popup")
@@ -5039,7 +5027,7 @@ const $ = {
5039
5027
  if (!this.allowedOrigins.includes(q.origin))
5040
5028
  return console.log("Origin is not allowed!");
5041
5029
  q.data.type === "okta" && (L = q.data.code, await _.exchangeCode({ domain: e.domain, code: L, clientID: e.clientID }));
5042
- }, { once: !0 }), this.isNative ? await Q.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
5030
+ }, { once: !0 }), this.isNative ? await F.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
5043
5031
  },
5044
5032
  async handleOktaRedirect() {
5045
5033
  let e = this.$route.query.code, a, n, o, i, r = { type: "okta" };
@@ -5048,7 +5036,7 @@ const $ = {
5048
5036
  const u = new URLSearchParams(a);
5049
5037
  n = u.get("client_id"), o = u.get("domain"), i = u.get("platform");
5050
5038
  }
5051
- window.opener ? (window.opener.postMessage(r, location.origin), window.close()) : (this.isNative && this.isIOS && await Q.close(), d.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && n && o && await this.exchangeCode({ code: e, clientID: n, domain: o, platform: i }), localStorage.removeItem("pkce_code_verifier"), d.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5039
+ window.opener ? (window.opener.postMessage(r, location.origin), window.close()) : (this.isNative && this.isIOS && await F.close(), d.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && n && o && await this.exchangeCode({ code: e, clientID: n, domain: o, platform: i }), localStorage.removeItem("pkce_code_verifier"), d.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5052
5040
  }
5053
5041
  }
5054
5042
  }, W = {
@@ -5070,7 +5058,7 @@ const $ = {
5070
5058
  async samlLogin(e) {
5071
5059
  this.code_verifier = N.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await N.pkceChallengeFromVerifier(this.code_verifier);
5072
5060
  const a = D.getPlatform();
5073
- let n = Buffer.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin + "/callback/saml"}&realm=${this.storage.realm}`).toString("base64");
5061
+ let n = Buffer.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin + "/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");
5074
5062
  e = `${e}&RelayState=${n}`;
5075
5063
  let o = this;
5076
5064
  window.addEventListener("message", async (i) => {
@@ -5082,7 +5070,7 @@ const $ = {
5082
5070
  return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.code, state: this.$route.query.state, code_verifier: localStorage.getItem("pkce_code_verifier") }, "*");
5083
5071
  await o.exchangeAuthCode({ code: i.data.code, code_verifier: localStorage.getItem("pkce_code_verifier") }), localStorage.removeItem("pkce_code_verifier");
5084
5072
  }
5085
- }, { once: !0 }), this.isNative ? await Q.open({ url: e, presentationStyle: "popover" }) : window.open(e, "popup", "width=600,height=600");
5073
+ }, { once: !0 }), this.isNative ? await F.open({ url: e, presentationStyle: "popover" }) : window.open(e, "popup", "width=600,height=600");
5086
5074
  },
5087
5075
  async handleSamlRedirect() {
5088
5076
  var n;
@@ -5090,7 +5078,7 @@ const $ = {
5090
5078
  if (this.$route.query.code && (a.code = this.$route.query.code), window.opener)
5091
5079
  window.opener.postMessage(a, location.origin), window.close();
5092
5080
  else {
5093
- if (this.isNative && this.isIOS && await Q.close(), EventBus.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (e = this.$route.query.code), e) {
5081
+ if (this.isNative && this.isIOS && await F.close(), EventBus.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (e = this.$route.query.code), e) {
5094
5082
  if (this.display === "popup")
5095
5083
  return (n = window.parent) == null ? void 0 : n.postMessage({ code: e, state: this.$route.query.state }, "*");
5096
5084
  await this.exchangeAuthCode({ code: e, code_verifier: localStorage.getItem("pkce_code_verifier") });
@@ -5099,7 +5087,7 @@ const $ = {
5099
5087
  }
5100
5088
  }
5101
5089
  }
5102
- }, ea = {
5090
+ }, aa = {
5103
5091
  data() {
5104
5092
  return {
5105
5093
  isQrCodeLogin: !1,
@@ -5163,7 +5151,7 @@ const $ = {
5163
5151
  this.poolingInterval = setInterval(async () => {
5164
5152
  const [e, a] = await g(Y.qrCodePooling({
5165
5153
  qrToken: this.qrCodeHash
5166
- }, this.storage));
5154
+ }, this.$storage));
5167
5155
  if (e)
5168
5156
  return this.errorHandler(e);
5169
5157
  a.data.auth_code && (this.display === "npm" && (this.loginSetup({ ...a, isModal: this.isModal }), this.getLoggedInAccounts()), this.loginSuccess({ ...a, isModal: this.isModal }), clearInterval(this.poolingInterval), clearInterval(this.qrCodeRefreshInterval));
@@ -5175,9 +5163,9 @@ const $ = {
5175
5163
  }, 6e4);
5176
5164
  }
5177
5165
  }
5178
- }, aa = {
5166
+ }, na = {
5179
5167
  name: "AuthLogin",
5180
- mixins: [me, ge, he, $, G, W, z, ea],
5168
+ mixins: [me, ge, he, Q, G, W, z, aa],
5181
5169
  props: {
5182
5170
  isModal: {
5183
5171
  type: Boolean,
@@ -5240,14 +5228,11 @@ const $ = {
5240
5228
  },
5241
5229
  createAccountModal() {
5242
5230
  d.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
5243
- },
5244
- async bum() {
5245
- this.storage.token = "321213";
5246
5231
  }
5247
5232
  },
5248
5233
  watch: {
5249
5234
  emailOrUsername(e) {
5250
- e.includes("@") && (this.storage.verifyEmail = e);
5235
+ e.includes("@") && (this.$storage.verifyEmail = e);
5251
5236
  },
5252
5237
  "$route.path": async function(e) {
5253
5238
  if (e === "/login/callback/okta")
@@ -5256,89 +5241,92 @@ const $ = {
5256
5241
  return await this.handleSamlRedirect();
5257
5242
  }
5258
5243
  }
5259
- }, na = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5244
+ }, ta = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5260
5245
  /* @__PURE__ */ t("img", {
5261
5246
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5262
5247
  class: "responsive-image",
5263
5248
  style: { width: "35%" }
5264
5249
  })
5265
- ], -1), ta = [
5266
- na
5267
- ], ia = /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1), oa = { key: 1 }, ra = { class: "page-login-field half-top" }, sa = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5250
+ ], -1), ia = [
5251
+ ta
5252
+ ], oa = {
5253
+ class: "bold no-bottom center-text",
5254
+ style: { "margin-top": "63px" }
5255
+ }, ra = /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1), sa = { key: 1 }, ca = { class: "page-login-field half-top" }, la = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5268
5256
  /* @__PURE__ */ t("img", {
5269
5257
  src: "https://cdn.tapni.co/icons/user.png",
5270
5258
  class: "responsive-image",
5271
5259
  style: { width: "50%" }
5272
5260
  })
5273
- ], -1), ca = ["placeholder"], la = /* @__PURE__ */ t("em", null, null, -1), da = { class: "page-login-field half-bottom" }, pa = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5261
+ ], -1), da = ["placeholder"], pa = /* @__PURE__ */ t("em", null, null, -1), ua = { class: "page-login-field half-bottom" }, _a = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5274
5262
  /* @__PURE__ */ t("img", {
5275
5263
  src: "https://cdn.tapni.co/icons/padlock.png",
5276
5264
  class: "responsive-image",
5277
5265
  style: { width: "50%" }
5278
5266
  })
5279
- ], -1), ua = ["type", "placeholder"], _a = {
5267
+ ], -1), ma = ["type", "placeholder"], ga = {
5280
5268
  src: "https://cdn.tapni.co/icons/reveal-password.png",
5281
5269
  class: "responsive-image password-reveal-icon"
5282
- }, ma = {
5270
+ }, ha = {
5283
5271
  src: "https://cdn.tapni.co/icons/hide-password.png",
5284
5272
  class: "responsive-image password-reveal-icon"
5285
- }, ga = {
5273
+ }, fa = {
5286
5274
  type: "submit",
5287
5275
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
5288
- }, ha = { key: 0 }, fa = {
5276
+ }, va = { key: 0 }, ka = {
5289
5277
  key: 1,
5290
5278
  class: "button--loading button__loader"
5291
- }, va = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), ka = /* @__PURE__ */ t("img", {
5279
+ }, ba = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), ya = /* @__PURE__ */ t("img", {
5292
5280
  src: "https://cdn.tapni.co/icons/apple-logo.png",
5293
5281
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
5294
- }, null, -1), ba = { key: 0 }, ya = {
5282
+ }, null, -1), wa = { key: 0 }, za = {
5295
5283
  key: 1,
5296
5284
  class: "button--loading button__loader"
5297
- }, wa = /* @__PURE__ */ t("img", {
5285
+ }, La = /* @__PURE__ */ t("img", {
5298
5286
  src: "https://cdn.tapni.co/icons/g-logo.png",
5299
5287
  style: { position: "absolute", "margin-left": "-10px", padding: "8px 0", height: "100%" }
5300
- }, null, -1), za = { key: 0 }, La = {
5288
+ }, null, -1), Sa = { key: 0 }, Ca = {
5301
5289
  key: 1,
5302
5290
  class: "button--loading-black button__loader"
5303
- }, Sa = /* @__PURE__ */ t("img", {
5291
+ }, Ta = /* @__PURE__ */ t("img", {
5304
5292
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
5305
5293
  style: { position: "absolute", "margin-left": "-9px", padding: "10px 0", height: "100%" }
5306
- }, null, -1), Ca = { key: 0 }, Ta = {
5294
+ }, null, -1), ja = { key: 0 }, Pa = {
5307
5295
  key: 1,
5308
5296
  class: "button--loading-black button__loader"
5309
- }, ja = /* @__PURE__ */ t("img", {
5297
+ }, Aa = /* @__PURE__ */ t("img", {
5310
5298
  src: "https://cdn.tapni.co/icons/outlook.png",
5311
5299
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5312
- }, null, -1), Pa = { key: 0 }, Aa = {
5300
+ }, null, -1), Ia = { key: 0 }, Ea = {
5313
5301
  key: 1,
5314
5302
  class: "button--loading-black button__loader"
5315
- }, Ia = /* @__PURE__ */ t("img", {
5303
+ }, xa = /* @__PURE__ */ t("img", {
5316
5304
  src: "https://cdn.tapni.co/icons/sso-key.png",
5317
5305
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5318
- }, null, -1), Ea = { key: 0 }, xa = {
5306
+ }, null, -1), qa = { key: 0 }, Ma = {
5319
5307
  key: 1,
5320
5308
  class: "button--loading-black button__loader"
5321
- }, qa = /* @__PURE__ */ t("img", {
5309
+ }, Ra = /* @__PURE__ */ t("img", {
5322
5310
  src: "https://cdn.tapni.co/icons/sso-key.png",
5323
5311
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5324
- }, null, -1), Ma = { key: 0 }, Ra = {
5312
+ }, null, -1), Na = { key: 0 }, Va = {
5325
5313
  key: 1,
5326
5314
  class: "button--loading-black button__loader"
5327
- }, Na = /* @__PURE__ */ t("img", {
5315
+ }, Oa = /* @__PURE__ */ t("img", {
5328
5316
  src: "https://cdn.tapni.co/icons/mail.png",
5329
5317
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
5330
- }, null, -1), Va = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Oa = { class: "close-text center-text half-top color-black" }, Ba = /* @__PURE__ */ t("br", null, null, -1), Da = {
5318
+ }, null, -1), Ba = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Da = { class: "close-text center-text half-top color-black" }, Ua = /* @__PURE__ */ t("br", null, null, -1), Ka = {
5331
5319
  class: "",
5332
5320
  href: "https://tapni.co/policies/terms-of-service"
5333
- }, Ua = { href: "https://tapni.co/policies/privacy-policy" }, Ka = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Ha = {
5321
+ }, $a = { href: "https://tapni.co/policies/privacy-policy" }, Ha = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Fa = {
5334
5322
  key: 9,
5335
5323
  class: "page-login-links"
5336
- }, Fa = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Qa = { class: "forgot center-text pointer small-top" }, $a = /* @__PURE__ */ t("br", null, null, -1), Ga = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5337
- function Wa(e, a, n, o, i, r) {
5324
+ }, Qa = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Ga = { class: "forgot center-text pointer small-top" }, Wa = /* @__PURE__ */ t("br", null, null, -1), Xa = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5325
+ function Ya(e, a, n, o, i, r) {
5338
5326
  const u = V("router-link");
5339
5327
  return c(), l("form", {
5340
5328
  class: "page-login content-boxed content-boxed-padding",
5341
- onSubmit: a[14] || (a[14] = y((...s) => r.submit && r.submit(...s), ["prevent"])),
5329
+ onSubmit: a[13] || (a[13] = y((...s) => r.submit && r.submit(...s), ["prevent"])),
5342
5330
  autocomplete: "on",
5343
5331
  style: R(n.isModal ? "max-width: 500px;" : "")
5344
5332
  }, [
@@ -5347,19 +5335,15 @@ function Wa(e, a, n, o, i, r) {
5347
5335
  onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
5348
5336
  class: "color-black pull-right pointer",
5349
5337
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5350
- }, ta)) : h("", !0),
5351
- t("h1", {
5352
- class: "bold no-bottom center-text",
5353
- style: { "margin-top": "63px" },
5354
- onClick: a[1] || (a[1] = (...s) => r.bum && r.bum(...s))
5355
- }, p(this.ssoLang[this.appLang].login), 1),
5356
- ia,
5357
- r.displayFormLogin ? (c(), l("span", oa, [
5358
- t("div", ra, [
5359
- sa,
5338
+ }, ia)) : h("", !0),
5339
+ t("h1", oa, p(this.ssoLang[this.appLang].login), 1),
5340
+ ra,
5341
+ r.displayFormLogin ? (c(), l("span", sa, [
5342
+ t("div", ca, [
5343
+ la,
5360
5344
  k(t("input", {
5361
- "onUpdate:modelValue": a[2] || (a[2] = (s) => i.emailOrUsername = s),
5362
- onKeydown: a[3] || (a[3] = E(y(() => {
5345
+ "onUpdate:modelValue": a[1] || (a[1] = (s) => i.emailOrUsername = s),
5346
+ onKeydown: a[2] || (a[2] = E(y(() => {
5363
5347
  }, ["prevent"]), ["space"])),
5364
5348
  autocorrect: "off",
5365
5349
  autocapitalize: "off",
@@ -5368,117 +5352,117 @@ function Wa(e, a, n, o, i, r) {
5368
5352
  name: "email",
5369
5353
  placeholder: e.ssoLang[this.appLang].email_username,
5370
5354
  required: ""
5371
- }, null, 40, ca), [
5355
+ }, null, 40, da), [
5372
5356
  [x, i.emailOrUsername]
5373
5357
  ]),
5374
- la
5358
+ pa
5375
5359
  ]),
5376
- t("div", da, [
5377
- pa,
5360
+ t("div", ua, [
5361
+ _a,
5378
5362
  k(t("input", {
5379
- "onUpdate:modelValue": a[4] || (a[4] = (s) => i.password = s),
5363
+ "onUpdate:modelValue": a[3] || (a[3] = (s) => i.password = s),
5380
5364
  type: i.revealPassword ? "text" : "password",
5381
5365
  placeholder: e.ssoLang[this.appLang].password,
5382
5366
  name: "password",
5383
5367
  required: "",
5384
5368
  minlength: "8"
5385
- }, null, 8, ua), [
5369
+ }, null, 8, ma), [
5386
5370
  [K, i.password]
5387
5371
  ]),
5388
5372
  t("em", {
5389
- onClick: a[5] || (a[5] = (s) => i.revealPassword = !i.revealPassword),
5373
+ onClick: a[4] || (a[4] = (s) => i.revealPassword = !i.revealPassword),
5390
5374
  class: "pointer"
5391
5375
  }, [
5392
- k(t("img", _a, null, 512), [
5376
+ k(t("img", ga, null, 512), [
5393
5377
  [I, !i.revealPassword]
5394
5378
  ]),
5395
- k(t("img", ma, null, 512), [
5379
+ k(t("img", ha, null, 512), [
5396
5380
  [I, i.revealPassword]
5397
5381
  ])
5398
5382
  ])
5399
5383
  ]),
5400
- t("button", ga, [
5401
- i.submitted ? (c(), l("span", fa)) : (c(), l("span", ha, p(e.ssoLang[e.appLang].login), 1))
5384
+ t("button", fa, [
5385
+ i.submitted ? (c(), l("span", ka)) : (c(), l("span", va, p(e.ssoLang[e.appLang].login), 1))
5402
5386
  ])
5403
5387
  ])) : h("", !0),
5404
- va,
5388
+ ba,
5405
5389
  e.displayAppleLogin ? (c(), l("a", {
5406
5390
  key: 2,
5407
- onClick: a[6] || (a[6] = (...s) => e.appleLogin && e.appleLogin(...s)),
5391
+ onClick: a[5] || (a[5] = (...s) => e.appleLogin && e.appleLogin(...s)),
5408
5392
  class: "button-center button button-90 google-button pointer"
5409
5393
  }, [
5410
- ka,
5411
- e.appleLoad ? (c(), l("span", ya)) : (c(), l("span", ba, p(e.ssoLang[e.appLang].sign_in_with) + " Apple", 1))
5394
+ ya,
5395
+ e.appleLoad ? (c(), l("span", za)) : (c(), l("span", wa, p(e.ssoLang[e.appLang].sign_in_with) + " Apple", 1))
5412
5396
  ])) : h("", !0),
5413
5397
  e.displayGoogleLogin ? (c(), l("a", {
5414
5398
  key: 3,
5415
- onClick: a[7] || (a[7] = (...s) => e.googleLogin && e.googleLogin(...s)),
5399
+ onClick: a[6] || (a[6] = (...s) => e.googleLogin && e.googleLogin(...s)),
5416
5400
  class: "button-center button button-90 google-button pointer"
5417
5401
  }, [
5418
- wa,
5419
- e.googleLoad ? (c(), l("span", La)) : (c(), l("span", za, p(e.ssoLang[e.appLang].sign_in_with) + " Google", 1))
5402
+ La,
5403
+ e.googleLoad ? (c(), l("span", Ca)) : (c(), l("span", Sa, p(e.ssoLang[e.appLang].sign_in_with) + " Google", 1))
5420
5404
  ])) : h("", !0),
5421
5405
  e.displayFacebookLogin ? (c(), l("a", {
5422
5406
  key: 4,
5423
- onClick: a[8] || (a[8] = (...s) => e.facebookLogin && e.facebookLogin(...s)),
5407
+ onClick: a[7] || (a[7] = (...s) => e.facebookLogin && e.facebookLogin(...s)),
5424
5408
  class: "button-center button button-90 google-button pointer"
5425
5409
  }, [
5426
- Sa,
5427
- e.facebookLoad ? (c(), l("span", Ta)) : (c(), l("span", Ca, p(e.ssoLang[e.appLang].sign_in_with) + " Facebook", 1))
5410
+ Ta,
5411
+ e.facebookLoad ? (c(), l("span", Pa)) : (c(), l("span", ja, p(e.ssoLang[e.appLang].sign_in_with) + " Facebook", 1))
5428
5412
  ])) : h("", !0),
5429
5413
  e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
5430
5414
  key: 5,
5431
- onClick: a[9] || (a[9] = (...s) => e.microsoftLogin && e.microsoftLogin(...s)),
5415
+ onClick: a[8] || (a[8] = (...s) => e.microsoftLogin && e.microsoftLogin(...s)),
5432
5416
  class: "button-center button button-90 google-button pointer"
5433
5417
  }, [
5434
- ja,
5435
- e.microsoftLoad ? (c(), l("span", Aa)) : (c(), l("span", Pa, p(e.ssoLang[e.appLang].sign_in_with) + " Outlook", 1))
5418
+ Aa,
5419
+ e.microsoftLoad ? (c(), l("span", Ea)) : (c(), l("span", Ia, p(e.ssoLang[e.appLang].sign_in_with) + " Outlook", 1))
5436
5420
  ])),
5437
5421
  e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
5438
5422
  key: 6,
5439
- onClick: a[10] || (a[10] = (...s) => e.ssoLogin && e.ssoLogin(...s)),
5423
+ onClick: a[9] || (a[9] = (...s) => e.ssoLogin && e.ssoLogin(...s)),
5440
5424
  class: "button-center button button-90 google-button pointer"
5441
5425
  }, [
5442
- Ia,
5443
- e.microsoftSSOLoad ? (c(), l("span", xa)) : (c(), l("span", Ea, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1))
5426
+ xa,
5427
+ e.microsoftSSOLoad ? (c(), l("span", Ma)) : (c(), l("span", qa, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1))
5444
5428
  ])),
5445
5429
  e.displayMicrosoftSSOLogin ? (c(), l("a", {
5446
5430
  key: 7,
5447
- onClick: a[11] || (a[11] = (s) => e.microsoftLogin("sso")),
5431
+ onClick: a[10] || (a[10] = (s) => e.microsoftLogin("sso")),
5448
5432
  class: "button-center button button-90 google-button pointer"
5449
5433
  }, [
5450
- qa,
5451
- e.microsoftSSOLoad ? (c(), l("span", Ma, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1)) : (c(), l("span", Ra))
5434
+ Ra,
5435
+ e.microsoftSSOLoad ? (c(), l("span", Na, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1)) : (c(), l("span", Va))
5452
5436
  ])) : h("", !0),
5453
5437
  r.displayFormLogin ? h("", !0) : (c(), l("a", {
5454
5438
  key: 8,
5455
- onClick: a[12] || (a[12] = (s) => i.emailLogin = !0),
5439
+ onClick: a[11] || (a[11] = (s) => i.emailLogin = !0),
5456
5440
  class: "button-center button button-90 google-button pointer"
5457
5441
  }, [
5458
- Na,
5442
+ Oa,
5459
5443
  t("span", null, p(e.ssoLang[e.appLang].sign_in_with) + " Email", 1)
5460
5444
  ])),
5461
- Va,
5462
- t("p", Oa, [
5445
+ Ba,
5446
+ t("p", Da, [
5463
5447
  f(p(e.ssoLang[e.appLang].terms_by_signing_in) + " ", 1),
5464
- Ba,
5465
- t("a", Da, p(e.ssoLang[this.appLang].terms_of_service), 1),
5448
+ Ua,
5449
+ t("a", Ka, p(e.ssoLang[this.appLang].terms_of_service), 1),
5466
5450
  f(" " + p(e.ssoLang[e.appLang].and) + " ", 1),
5467
- t("a", Ua, p(e.ssoLang[this.appLang].privacy_policy), 1)
5451
+ t("a", $a, p(e.ssoLang[this.appLang].privacy_policy), 1)
5468
5452
  ]),
5469
- Ka,
5453
+ Ha,
5470
5454
  n.isModal ? (c(), l("div", {
5471
5455
  key: 10,
5472
5456
  class: "page-login-links",
5473
- onClick: a[13] || (a[13] = (...s) => r.createAccountModal && r.createAccountModal(...s))
5457
+ onClick: a[12] || (a[12] = (...s) => r.createAccountModal && r.createAccountModal(...s))
5474
5458
  }, [
5475
- t("a", Qa, [
5459
+ t("a", Ga, [
5476
5460
  f(p(e.ssoLang[e.appLang].or) + " ", 1),
5477
- $a,
5461
+ Wa,
5478
5462
  f(" " + p(e.ssoLang[e.appLang].create_new_account), 1)
5479
5463
  ]),
5480
- Ga
5481
- ])) : (c(), l("div", Ha, [
5464
+ Xa
5465
+ ])) : (c(), l("div", Fa, [
5482
5466
  r.displayRegisterLogin ? (c(), P(u, {
5483
5467
  key: 0,
5484
5468
  class: "forgot float-right",
@@ -5499,13 +5483,13 @@ function Wa(e, a, n, o, i, r) {
5499
5483
  ]),
5500
5484
  _: 1
5501
5485
  })) : h("", !0),
5502
- Fa
5486
+ Qa
5503
5487
  ]))
5504
5488
  ], 36);
5505
5489
  }
5506
- const fe = /* @__PURE__ */ T(aa, [["render", Wa]]), Xa = {
5490
+ const fe = /* @__PURE__ */ T(na, [["render", Ya]]), Za = {
5507
5491
  name: "AuthRegister",
5508
- mixins: [me, ge, he, $, z],
5492
+ mixins: [me, ge, he, Q, z],
5509
5493
  props: {
5510
5494
  isModal: {
5511
5495
  type: Boolean,
@@ -5529,7 +5513,7 @@ const fe = /* @__PURE__ */ T(aa, [["render", Wa]]), Xa = {
5529
5513
  };
5530
5514
  },
5531
5515
  mounted() {
5532
- this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && d.$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));
5516
+ this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && d.$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));
5533
5517
  },
5534
5518
  methods: {
5535
5519
  async submit() {
@@ -5564,82 +5548,82 @@ const fe = /* @__PURE__ */ T(aa, [["render", Wa]]), Xa = {
5564
5548
  },
5565
5549
  watch: {
5566
5550
  email(e) {
5567
- this.storage.verifyEmail = e;
5551
+ this.$storage.verifyEmail = e;
5568
5552
  },
5569
5553
  referral(e) {
5570
- this.storage.referral = e;
5554
+ this.$storage.referral = e;
5571
5555
  }
5572
5556
  }
5573
- }, Ya = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5557
+ }, Ja = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5574
5558
  /* @__PURE__ */ t("img", {
5575
5559
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5576
5560
  class: "responsive-image",
5577
5561
  style: { width: "35%" }
5578
5562
  })
5579
- ], -1), Za = [
5580
- Ya
5581
- ], Ja = {
5563
+ ], -1), en = [
5564
+ Ja
5565
+ ], an = {
5582
5566
  class: "bold no-bottom center-text",
5583
5567
  style: { "margin-top": "63px" }
5584
- }, en = { class: "half-bottom small-top center-text color-black" }, an = { key: 0 }, nn = /* @__PURE__ */ t("br", null, null, -1), tn = { key: 1 }, on = { class: "page-login-field half-top" }, rn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5568
+ }, nn = { class: "half-bottom small-top center-text color-black" }, tn = { key: 0 }, on = /* @__PURE__ */ t("br", null, null, -1), rn = { key: 1 }, sn = { class: "page-login-field half-top" }, cn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5585
5569
  /* @__PURE__ */ t("img", {
5586
5570
  src: "https://cdn.tapni.co/icons/mail.png",
5587
5571
  class: "responsive-image",
5588
5572
  style: { width: "60%" }
5589
5573
  })
5590
- ], -1), sn = ["placeholder"], cn = /* @__PURE__ */ t("em", null, null, -1), ln = { class: "page-login-field half-top" }, dn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5574
+ ], -1), ln = ["placeholder"], dn = /* @__PURE__ */ t("em", null, null, -1), pn = { class: "page-login-field half-top" }, un = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5591
5575
  /* @__PURE__ */ t("img", {
5592
5576
  src: "https://cdn.tapni.co/icons/user.png",
5593
5577
  class: "responsive-image",
5594
5578
  style: { width: "50%" }
5595
5579
  })
5596
- ], -1), pn = ["placeholder", "disabled"], un = /* @__PURE__ */ t("em", null, null, -1), _n = { class: "page-login-field half-top half-bottom" }, mn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5580
+ ], -1), _n = ["placeholder", "disabled"], mn = /* @__PURE__ */ t("em", null, null, -1), gn = { class: "page-login-field half-top half-bottom" }, hn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5597
5581
  /* @__PURE__ */ t("img", {
5598
5582
  src: "https://cdn.tapni.co/icons/padlock.png",
5599
5583
  class: "responsive-image",
5600
5584
  style: { width: "50%" }
5601
5585
  })
5602
- ], -1), gn = ["type", "placeholder"], hn = {
5586
+ ], -1), fn = ["type", "placeholder"], vn = {
5603
5587
  src: "https://cdn.tapni.co/icons/reveal-password.png",
5604
5588
  class: "responsive-image password-reveal-icon"
5605
- }, fn = {
5589
+ }, kn = {
5606
5590
  src: "https://cdn.tapni.co/icons/hide-password.png",
5607
5591
  class: "responsive-image password-reveal-icon"
5608
- }, vn = {
5592
+ }, bn = {
5609
5593
  type: "submit",
5610
5594
  class: "button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"
5611
- }, kn = { key: 0 }, bn = {
5595
+ }, yn = { key: 0 }, wn = {
5612
5596
  key: 1,
5613
5597
  class: "button--loading button__loader"
5614
- }, yn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), wn = /* @__PURE__ */ t("img", {
5598
+ }, zn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), Ln = /* @__PURE__ */ t("img", {
5615
5599
  src: "https://cdn.tapni.co/icons/apple-logo.png",
5616
5600
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
5617
- }, null, -1), zn = { key: 0 }, Ln = {
5601
+ }, null, -1), Sn = { key: 0 }, Cn = {
5618
5602
  key: 1,
5619
5603
  class: "button--loading button__loader"
5620
- }, Sn = /* @__PURE__ */ t("img", {
5604
+ }, Tn = /* @__PURE__ */ t("img", {
5621
5605
  src: "https://cdn.tapni.co/icons/g-logo.png",
5622
5606
  style: { position: "absolute", "margin-left": "-9px", padding: "8px 0", height: "100%" }
5623
- }, null, -1), Cn = { key: 0 }, Tn = {
5607
+ }, null, -1), jn = { key: 0 }, Pn = {
5624
5608
  key: 1,
5625
5609
  class: "button--loading button__loader"
5626
- }, jn = /* @__PURE__ */ t("img", {
5610
+ }, An = /* @__PURE__ */ t("img", {
5627
5611
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
5628
5612
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
5629
- }, null, -1), Pn = { key: 0 }, An = {
5613
+ }, null, -1), In = { key: 0 }, En = {
5630
5614
  key: 1,
5631
5615
  class: "button--loading button__loader"
5632
- }, In = /* @__PURE__ */ t("img", {
5616
+ }, xn = /* @__PURE__ */ t("img", {
5633
5617
  src: "https://cdn.tapni.co/icons/mail.png",
5634
5618
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
5635
- }, null, -1), En = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), xn = { class: "close-text center-text half-top color-black" }, qn = /* @__PURE__ */ t("br", null, null, -1), Mn = {
5619
+ }, null, -1), qn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Mn = { class: "close-text center-text half-top color-black" }, Rn = /* @__PURE__ */ t("br", null, null, -1), Nn = {
5636
5620
  class: "",
5637
5621
  href: "https://tapni.co/policies/terms-of-service"
5638
- }, Rn = { href: "https://tapni.co/policies/privacy-policy" }, Nn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Vn = {
5622
+ }, Vn = { href: "https://tapni.co/policies/privacy-policy" }, On = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Bn = {
5639
5623
  key: 5,
5640
5624
  class: "page-login-links"
5641
- }, On = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Bn = { class: "forgot center-text pointer small-top" }, Dn = /* @__PURE__ */ t("br", null, null, -1), Un = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5642
- function Kn(e, a, n, o, i, r) {
5625
+ }, Dn = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Un = { class: "forgot center-text pointer small-top" }, Kn = /* @__PURE__ */ t("br", null, null, -1), $n = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5626
+ function Hn(e, a, n, o, i, r) {
5643
5627
  const u = V("router-link");
5644
5628
  return c(), l("form", {
5645
5629
  class: "page-login content-boxed content-boxed-padding",
@@ -5652,17 +5636,17 @@ function Kn(e, a, n, o, i, r) {
5652
5636
  onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
5653
5637
  class: "color-black pull-right pointer",
5654
5638
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5655
- }, Za)) : h("", !0),
5656
- t("h1", Ja, p(e.ssoLang[this.appLang].register), 1),
5657
- t("p", en, [
5658
- i.usernameRegister ? (c(), l("span", an, [
5639
+ }, en)) : h("", !0),
5640
+ t("h1", an, p(e.ssoLang[this.appLang].register), 1),
5641
+ t("p", nn, [
5642
+ i.usernameRegister ? (c(), l("span", tn, [
5659
5643
  f(" t.link/" + p(i.username) + " " + p(e.ssoLang[this.appLang].username_is_free) + " ✅ ", 1),
5660
- nn
5644
+ on
5661
5645
  ])) : h("", !0)
5662
5646
  ]),
5663
- i.emailLogin ? (c(), l("span", tn, [
5664
- t("div", on, [
5665
- rn,
5647
+ i.emailLogin ? (c(), l("span", rn, [
5648
+ t("div", sn, [
5649
+ cn,
5666
5650
  k(t("input", {
5667
5651
  "onUpdate:modelValue": a[1] || (a[1] = (s) => i.email = s),
5668
5652
  onKeydown: a[2] || (a[2] = E(y(() => {
@@ -5671,13 +5655,13 @@ function Kn(e, a, n, o, i, r) {
5671
5655
  placeholder: e.ssoLang[this.appLang].email,
5672
5656
  name: "email",
5673
5657
  required: ""
5674
- }, null, 40, sn), [
5658
+ }, null, 40, ln), [
5675
5659
  [x, i.email]
5676
5660
  ]),
5677
- cn
5661
+ dn
5678
5662
  ]),
5679
- t("div", ln, [
5680
- dn,
5663
+ t("div", pn, [
5664
+ un,
5681
5665
  k(t("input", {
5682
5666
  "onUpdate:modelValue": a[3] || (a[3] = (s) => i.username = s),
5683
5667
  onKeydown: a[4] || (a[4] = E(y(() => {
@@ -5691,13 +5675,13 @@ function Kn(e, a, n, o, i, r) {
5691
5675
  required: "",
5692
5676
  disabled: i.usernameRegister,
5693
5677
  class: b({ "input-disabled": i.usernameRegister })
5694
- }, null, 42, pn), [
5678
+ }, null, 42, _n), [
5695
5679
  [x, i.username]
5696
5680
  ]),
5697
- un
5681
+ mn
5698
5682
  ]),
5699
- t("div", _n, [
5700
- mn,
5683
+ t("div", gn, [
5684
+ hn,
5701
5685
  k(t("input", {
5702
5686
  "onUpdate:modelValue": a[5] || (a[5] = (s) => i.password = s),
5703
5687
  type: i.revealPassword ? "text" : "password",
@@ -5705,78 +5689,78 @@ function Kn(e, a, n, o, i, r) {
5705
5689
  name: "password",
5706
5690
  required: "",
5707
5691
  minlength: "8"
5708
- }, null, 8, gn), [
5692
+ }, null, 8, fn), [
5709
5693
  [K, i.password]
5710
5694
  ]),
5711
5695
  t("em", {
5712
5696
  onClick: a[6] || (a[6] = (s) => i.revealPassword = !i.revealPassword),
5713
5697
  class: "pointer"
5714
5698
  }, [
5715
- k(t("img", hn, null, 512), [
5699
+ k(t("img", vn, null, 512), [
5716
5700
  [I, !i.revealPassword]
5717
5701
  ]),
5718
- k(t("img", fn, null, 512), [
5702
+ k(t("img", kn, null, 512), [
5719
5703
  [I, i.revealPassword]
5720
5704
  ])
5721
5705
  ])
5722
5706
  ]),
5723
- t("button", vn, [
5724
- i.submitted ? (c(), l("span", bn)) : (c(), l("span", kn, p(i.formButtonText), 1))
5707
+ t("button", bn, [
5708
+ i.submitted ? (c(), l("span", wn)) : (c(), l("span", yn, p(i.formButtonText), 1))
5725
5709
  ])
5726
5710
  ])) : h("", !0),
5727
- yn,
5711
+ zn,
5728
5712
  e.displayAppleLogin ? (c(), l("a", {
5729
5713
  key: 2,
5730
5714
  onClick: a[7] || (a[7] = (...s) => e.appleLogin && e.appleLogin(...s)),
5731
5715
  class: "button-center button button-90 google-button pointer"
5732
5716
  }, [
5733
- wn,
5734
- e.appleLoad ? (c(), l("span", Ln)) : (c(), l("span", zn, p(e.ssoLang[this.appLang].sign_up_with) + " Apple", 1))
5717
+ Ln,
5718
+ e.appleLoad ? (c(), l("span", Cn)) : (c(), l("span", Sn, p(e.ssoLang[this.appLang].sign_up_with) + " Apple", 1))
5735
5719
  ])) : h("", !0),
5736
5720
  t("a", {
5737
5721
  onClick: a[8] || (a[8] = (...s) => e.googleLogin && e.googleLogin(...s)),
5738
5722
  class: "button-center button button-90 google-button pointer"
5739
5723
  }, [
5740
- Sn,
5741
- e.googleLoad ? (c(), l("span", Tn)) : (c(), l("span", Cn, p(e.ssoLang[this.appLang].sign_up_with) + " Google", 1))
5724
+ Tn,
5725
+ e.googleLoad ? (c(), l("span", Pn)) : (c(), l("span", jn, p(e.ssoLang[this.appLang].sign_up_with) + " Google", 1))
5742
5726
  ]),
5743
5727
  e.displayFacebookLogin ? (c(), l("a", {
5744
5728
  key: 3,
5745
5729
  onClick: a[9] || (a[9] = (...s) => e.facebookLogin && e.facebookLogin(...s)),
5746
5730
  class: "button-center button button-90 google-button pointer"
5747
5731
  }, [
5748
- jn,
5749
- e.facebookLoad ? (c(), l("span", An)) : (c(), l("span", Pn, p(e.ssoLang[this.appLang].sign_up_with) + " Facebook", 1))
5732
+ An,
5733
+ e.facebookLoad ? (c(), l("span", En)) : (c(), l("span", In, p(e.ssoLang[this.appLang].sign_up_with) + " Facebook", 1))
5750
5734
  ])) : h("", !0),
5751
5735
  i.emailLogin ? h("", !0) : (c(), l("a", {
5752
5736
  key: 4,
5753
5737
  onClick: a[10] || (a[10] = (s) => i.emailLogin = !0),
5754
5738
  class: "button-center button button-90 google-button pointer"
5755
5739
  }, [
5756
- In,
5740
+ xn,
5757
5741
  t("span", null, p(e.ssoLang[this.appLang].sign_up_with) + " Email", 1)
5758
5742
  ])),
5759
- En,
5760
- t("p", xn, [
5743
+ qn,
5744
+ t("p", Mn, [
5761
5745
  f(p(e.ssoLang[this.appLang].terms_by_registering) + " ", 1),
5762
- qn,
5763
- t("a", Mn, p(e.ssoLang[this.appLang].terms_of_service), 1),
5746
+ Rn,
5747
+ t("a", Nn, p(e.ssoLang[this.appLang].terms_of_service), 1),
5764
5748
  f(" " + p(e.ssoLang[this.appLang].and) + " ", 1),
5765
- t("a", Rn, p(e.ssoLang[this.appLang].privacy_policy), 1)
5749
+ t("a", Vn, p(e.ssoLang[this.appLang].privacy_policy), 1)
5766
5750
  ]),
5767
- Nn,
5751
+ On,
5768
5752
  n.isModal ? (c(), l("div", {
5769
5753
  key: 6,
5770
5754
  class: "page-login-links",
5771
5755
  onClick: a[11] || (a[11] = (...s) => r.loginAccountModal && r.loginAccountModal(...s))
5772
5756
  }, [
5773
- t("a", Bn, [
5757
+ t("a", Un, [
5774
5758
  f(p(e.ssoLang[this.appLang].or) + " ", 1),
5775
- Dn,
5759
+ Kn,
5776
5760
  f(" " + p(e.ssoLang[this.appLang].sign_in_with_new), 1)
5777
5761
  ]),
5778
- Un
5779
- ])) : (c(), l("div", Vn, [
5762
+ $n
5763
+ ])) : (c(), l("div", Bn, [
5780
5764
  v(u, {
5781
5765
  class: "create float-right",
5782
5766
  to: "/verify"
@@ -5795,11 +5779,11 @@ function Kn(e, a, n, o, i, r) {
5795
5779
  ]),
5796
5780
  _: 1
5797
5781
  }),
5798
- On
5782
+ Dn
5799
5783
  ]))
5800
5784
  ], 36);
5801
5785
  }
5802
- const ve = /* @__PURE__ */ T(Xa, [["render", Kn]]), Hn = {
5786
+ const ve = /* @__PURE__ */ T(Za, [["render", Hn]]), Fn = {
5803
5787
  name: "AuthVerify",
5804
5788
  mixins: [z],
5805
5789
  props: {
@@ -5820,11 +5804,11 @@ const ve = /* @__PURE__ */ T(Xa, [["render", Kn]]), Hn = {
5820
5804
  };
5821
5805
  },
5822
5806
  mounted() {
5823
- this.storage.verifyEmail && (this.email = this.storage.verifyEmail), this.$route && this.init();
5807
+ this.$storage.verifyEmail && (this.email = this.$storage.verifyEmail), this.$route && this.init();
5824
5808
  },
5825
5809
  methods: {
5826
5810
  init() {
5827
- 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), d.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5811
+ 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), d.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5828
5812
  },
5829
5813
  async submit() {
5830
5814
  if (this.code.length !== 6)
@@ -5839,7 +5823,7 @@ const ve = /* @__PURE__ */ T(Xa, [["render", Kn]]), Hn = {
5839
5823
  return !1;
5840
5824
  this.submitted = !0;
5841
5825
  let a = await this.verify(e);
5842
- 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;
5826
+ 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;
5843
5827
  },
5844
5828
  registerAccountModal() {
5845
5829
  d.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
@@ -5849,7 +5833,7 @@ const ve = /* @__PURE__ */ T(Xa, [["render", Kn]]), Hn = {
5849
5833
  }
5850
5834
  },
5851
5835
  watch: {
5852
- "storage.verifyEmail"(e) {
5836
+ "$storage.verifyEmail"(e) {
5853
5837
  e && (this.email = e);
5854
5838
  },
5855
5839
  "route.name"(e, a) {
@@ -5862,43 +5846,43 @@ const ve = /* @__PURE__ */ T(Xa, [["render", Kn]]), Hn = {
5862
5846
  deep: !0
5863
5847
  }
5864
5848
  }
5865
- }, C = (e) => (O("data-v-2fd511e2"), e = e(), B(), e), Fn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5849
+ }, C = (e) => (O("data-v-a8caa217"), e = e(), B(), e), Qn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5866
5850
  /* @__PURE__ */ t("img", {
5867
5851
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5868
5852
  class: "responsive-image",
5869
5853
  style: { width: "35%" }
5870
5854
  })
5871
- ], -1)), Qn = [
5872
- Fn
5873
- ], $n = {
5855
+ ], -1)), Gn = [
5856
+ Qn
5857
+ ], Wn = {
5874
5858
  class: "bold no-bottom center-text",
5875
5859
  style: { "margin-top": "63px" }
5876
- }, Gn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("p", { class: "half-bottom half-top center-text color-black" }, null, -1)), Wn = { class: "page-login-field half-top" }, Xn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5860
+ }, Xn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("p", { class: "half-bottom half-top center-text color-black" }, null, -1)), Yn = { class: "page-login-field half-top" }, Zn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5877
5861
  /* @__PURE__ */ t("img", {
5878
5862
  src: "https://cdn.tapni.co/icons/mail.png",
5879
5863
  class: "responsive-image",
5880
5864
  style: { width: "80%" }
5881
5865
  })
5882
- ], -1)), Yn = ["placeholder"], Zn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), Jn = { class: "page-login-field half-top" }, et = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5866
+ ], -1)), Jn = ["placeholder"], et = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), at = { class: "page-login-field half-top" }, nt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5883
5867
  /* @__PURE__ */ t("img", {
5884
5868
  src: "https://cdn.tapni.co/icons/password2.png",
5885
5869
  class: "responsive-image",
5886
5870
  style: { width: "100%" }
5887
5871
  })
5888
- ], -1)), at = ["placeholder"], nt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), tt = {
5872
+ ], -1)), tt = ["placeholder"], it = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), ot = {
5889
5873
  type: "submit",
5890
5874
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
5891
- }, it = {
5875
+ }, rt = {
5892
5876
  key: 0,
5893
5877
  class: "uppercase"
5894
- }, ot = {
5878
+ }, st = {
5895
5879
  key: 1,
5896
5880
  class: "button--loading button__loader"
5897
- }, rt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), st = { class: "close-text center-text half-top color-black" }, ct = ["innerHTML"], lt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("a", { href: "mailto:support@tapni.co?subject=Email Verification" }, " support@tapni.co", -1)), dt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), pt = {
5881
+ }, ct = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), lt = { class: "close-text center-text half-top color-black" }, dt = ["innerHTML"], pt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("a", { href: "mailto:support@tapni.co?subject=Email Verification" }, " support@tapni.co", -1)), ut = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), _t = {
5898
5882
  key: 1,
5899
5883
  class: "page-login-links"
5900
- }, ut = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), _t = { class: "forgot center-text pointer small-top" }, mt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("br", null, null, -1)), gt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1));
5901
- function ht(e, a, n, o, i, r) {
5884
+ }, mt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), gt = { class: "forgot center-text pointer small-top" }, ht = /* @__PURE__ */ C(() => /* @__PURE__ */ t("br", null, null, -1)), ft = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1));
5885
+ function vt(e, a, n, o, i, r) {
5902
5886
  const u = V("router-link");
5903
5887
  return c(), l("form", {
5904
5888
  class: "page-login content-boxed content-boxed-padding",
@@ -5910,11 +5894,11 @@ function ht(e, a, n, o, i, r) {
5910
5894
  onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
5911
5895
  class: "color-black pull-right pointer",
5912
5896
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5913
- }, Qn)) : h("", !0),
5914
- t("h1", $n, p(e.ssoLang[this.appLang].verify_account), 1),
5915
- Gn,
5916
- t("div", Wn, [
5917
- Xn,
5897
+ }, Gn)) : h("", !0),
5898
+ t("h1", Wn, p(e.ssoLang[this.appLang].verify_account), 1),
5899
+ Xn,
5900
+ t("div", Yn, [
5901
+ Zn,
5918
5902
  k(t("input", {
5919
5903
  id: "emailInput",
5920
5904
  "onUpdate:modelValue": a[1] || (a[1] = (s) => i.email = s),
@@ -5923,13 +5907,13 @@ function ht(e, a, n, o, i, r) {
5923
5907
  type: "email",
5924
5908
  placeholder: e.ssoLang[this.appLang].email,
5925
5909
  required: ""
5926
- }, null, 40, Yn), [
5910
+ }, null, 40, Jn), [
5927
5911
  [x, i.email]
5928
5912
  ]),
5929
- Zn
5913
+ et
5930
5914
  ]),
5931
- t("div", Jn, [
5932
- et,
5915
+ t("div", at, [
5916
+ nt,
5933
5917
  k(t("input", {
5934
5918
  id: "codeInput",
5935
5919
  "onUpdate:modelValue": a[3] || (a[3] = (s) => i.code = s),
@@ -5938,34 +5922,34 @@ function ht(e, a, n, o, i, r) {
5938
5922
  type: "tel",
5939
5923
  placeholder: e.ssoLang[this.appLang].code,
5940
5924
  required: ""
5941
- }, null, 40, at), [
5925
+ }, null, 40, tt), [
5942
5926
  [x, i.code]
5943
5927
  ]),
5944
- nt
5928
+ it
5945
5929
  ]),
5946
- t("button", tt, [
5947
- i.submitted ? (c(), l("span", ot)) : (c(), l("span", it, p(e.ssoLang[this.appLang].verify_account), 1))
5930
+ t("button", ot, [
5931
+ i.submitted ? (c(), l("span", st)) : (c(), l("span", rt, p(e.ssoLang[this.appLang].verify_account), 1))
5948
5932
  ]),
5949
- rt,
5950
- t("p", st, [
5933
+ ct,
5934
+ t("p", lt, [
5951
5935
  t("span", {
5952
5936
  innerHTML: e.ssoLang[this.appLang].verify_account_p1
5953
- }, null, 8, ct),
5954
- lt
5937
+ }, null, 8, dt),
5938
+ pt
5955
5939
  ]),
5956
- dt,
5940
+ ut,
5957
5941
  n.isModal ? (c(), l("div", {
5958
5942
  key: 2,
5959
5943
  class: "page-login-links",
5960
5944
  onClick: a[5] || (a[5] = (...s) => r.registerAccountModal && r.registerAccountModal(...s))
5961
5945
  }, [
5962
- t("a", _t, [
5946
+ t("a", gt, [
5963
5947
  f(p(e.ssoLang[this.appLang].or) + " ", 1),
5964
- mt,
5948
+ ht,
5965
5949
  f(" " + p(e.ssoLang[this.appLang].create_new_account), 1)
5966
5950
  ]),
5967
- gt
5968
- ])) : (c(), l("div", pt, [
5951
+ ft
5952
+ ])) : (c(), l("div", _t, [
5969
5953
  v(u, {
5970
5954
  class: "create float-right",
5971
5955
  to: "/register"
@@ -5984,11 +5968,11 @@ function ht(e, a, n, o, i, r) {
5984
5968
  ]),
5985
5969
  _: 1
5986
5970
  }),
5987
- ut
5971
+ mt
5988
5972
  ]))
5989
5973
  ], 36);
5990
5974
  }
5991
- const ke = /* @__PURE__ */ T(Hn, [["render", ht], ["__scopeId", "data-v-2fd511e2"]]), ft = {
5975
+ const ke = /* @__PURE__ */ T(Fn, [["render", vt], ["__scopeId", "data-v-a8caa217"]]), kt = {
5992
5976
  name: "AuthReset",
5993
5977
  mixins: [z],
5994
5978
  data() {
@@ -6006,7 +5990,7 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ht], ["__scopeId", "data-v-2fd511e2
6006
5990
  };
6007
5991
  },
6008
5992
  mounted() {
6009
- 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), d.$emit("ssoEvent", { name: "setLoading", data: !1 });
5993
+ 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), d.$emit("ssoEvent", { name: "setLoading", data: !1 });
6010
5994
  },
6011
5995
  methods: {
6012
5996
  async resetEmail() {
@@ -6039,127 +6023,127 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ht], ["__scopeId", "data-v-2fd511e2
6039
6023
  },
6040
6024
  watch: {
6041
6025
  email(e) {
6042
- this.storage.verifyEmail = e;
6026
+ this.$storage.verifyEmail = e;
6043
6027
  }
6044
6028
  }
6045
- }, A = (e) => (O("data-v-220c28f9"), e = e(), B(), e), vt = {
6029
+ }, A = (e) => (O("data-v-452bcb4c"), e = e(), B(), e), bt = {
6046
6030
  class: "bold no-bottom center-text",
6047
6031
  style: { "margin-top": "63px" }
6048
- }, kt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1)), bt = { class: "page-login-field half-top color-black" }, yt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
6032
+ }, yt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1)), wt = { class: "page-login-field half-top color-black" }, zt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
6049
6033
  /* @__PURE__ */ t("img", {
6050
6034
  src: "https://cdn.tapni.co/icons/mail.png",
6051
6035
  class: "responsive-image",
6052
6036
  style: { width: "80%" }
6053
6037
  })
6054
- ], -1)), wt = ["placeholder"], zt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("em", null, null, -1)), Lt = {
6038
+ ], -1)), Lt = ["placeholder"], St = /* @__PURE__ */ A(() => /* @__PURE__ */ t("em", null, null, -1)), Ct = {
6055
6039
  type: "submit",
6056
6040
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
6057
- }, St = {
6041
+ }, Tt = {
6058
6042
  key: 0,
6059
6043
  class: "uppercase"
6060
- }, Ct = {
6044
+ }, jt = {
6061
6045
  key: 1,
6062
6046
  class: "button--loading button__loader"
6063
- }, Tt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), jt = { class: "close-text center-text half-top color-black" }, Pt = ["innerHTML"], At = ["href"], It = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Et = { class: "page-login-links" }, xt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), qt = {
6047
+ }, Pt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), At = { class: "close-text center-text half-top color-black" }, It = ["innerHTML"], Et = ["href"], xt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), qt = { class: "page-login-links" }, Mt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), Rt = {
6064
6048
  class: "bold no-bottom center-text",
6065
6049
  style: { "margin-top": "63px" }
6066
- }, Mt = { class: "half-bottom small-top center-text color-black" }, Rt = { class: "page-login-field half-top" }, Nt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6050
+ }, Nt = { class: "half-bottom small-top center-text color-black" }, Vt = { class: "page-login-field half-top" }, Ot = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6067
6051
  /* @__PURE__ */ t("img", {
6068
6052
  src: "https://cdn.tapni.co/icons/padlock.png",
6069
6053
  class: "responsive-image",
6070
6054
  style: { width: "50%" }
6071
6055
  })
6072
- ], -1)), Vt = ["type", "placeholder"], Ot = {
6056
+ ], -1)), Bt = ["type", "placeholder"], Dt = {
6073
6057
  src: "https://cdn.tapni.co/icons/reveal-password.png",
6074
6058
  class: "responsive-image password-reveal-icon"
6075
- }, Bt = {
6059
+ }, Ut = {
6076
6060
  src: "https://cdn.tapni.co/icons/hide-password.png",
6077
6061
  class: "responsive-image password-reveal-icon"
6078
- }, Dt = { class: "page-login-field half-top" }, Ut = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6062
+ }, Kt = { class: "page-login-field half-top" }, $t = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6079
6063
  /* @__PURE__ */ t("img", {
6080
6064
  src: "https://cdn.tapni.co/icons/padlock.png",
6081
6065
  class: "responsive-image",
6082
6066
  style: { width: "50%" }
6083
6067
  })
6084
- ], -1)), Kt = ["type", "placeholder"], Ht = {
6068
+ ], -1)), Ht = ["type", "placeholder"], Ft = {
6085
6069
  src: "https://cdn.tapni.co/icons/reveal-password.png",
6086
6070
  class: "responsive-image password-reveal-icon"
6087
- }, Ft = {
6071
+ }, Qt = {
6088
6072
  src: "https://cdn.tapni.co/icons/hide-password.png",
6089
6073
  class: "responsive-image password-reveal-icon"
6090
- }, Qt = {
6074
+ }, Gt = {
6091
6075
  type: "submit",
6092
6076
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
6093
- }, $t = {
6077
+ }, Wt = {
6094
6078
  key: 0,
6095
6079
  class: "uppercase"
6096
- }, Gt = {
6080
+ }, Xt = {
6097
6081
  key: 1,
6098
6082
  class: "button--loading button__loader"
6099
- }, Wt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Xt = { class: "close-text center-text half-top color-black" }, Yt = ["innerHTML"], Zt = ["href"];
6100
- function Jt(e, a, n, o, i, r) {
6083
+ }, Yt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Zt = { class: "close-text center-text half-top color-black" }, Jt = ["innerHTML"], ei = ["href"];
6084
+ function ai(e, a, n, o, i, r) {
6101
6085
  const u = V("router-link");
6102
6086
  return i.passwordChange ? (c(), l("form", {
6103
6087
  key: 1,
6104
6088
  class: "page-login content-boxed content-boxed-padding",
6105
6089
  onSubmit: a[7] || (a[7] = y((...s) => r.changePw && r.changePw(...s), ["prevent"]))
6106
6090
  }, [
6107
- t("h3", qt, p(e.ssoLang[this.appLang].password_change), 1),
6108
- t("p", Mt, p(e.ssoLang[this.appLang].password_new), 1),
6109
- t("div", Rt, [
6110
- Nt,
6091
+ t("h3", Rt, p(e.ssoLang[this.appLang].password_change), 1),
6092
+ t("p", Nt, p(e.ssoLang[this.appLang].password_new), 1),
6093
+ t("div", Vt, [
6094
+ Ot,
6111
6095
  k(t("input", {
6112
6096
  "onUpdate:modelValue": a[3] || (a[3] = (s) => i.password = s),
6113
6097
  type: i.revealPassword ? "text" : "password",
6114
6098
  placeholder: e.ssoLang[this.appLang].password,
6115
6099
  required: ""
6116
- }, null, 8, Vt), [
6100
+ }, null, 8, Bt), [
6117
6101
  [K, i.password]
6118
6102
  ]),
6119
6103
  t("em", {
6120
6104
  onClick: a[4] || (a[4] = (s) => i.revealPassword = !i.revealPassword)
6121
6105
  }, [
6122
- k(t("img", Ot, null, 512), [
6106
+ k(t("img", Dt, null, 512), [
6123
6107
  [I, !i.revealPassword]
6124
6108
  ]),
6125
- k(t("img", Bt, null, 512), [
6109
+ k(t("img", Ut, null, 512), [
6126
6110
  [I, i.revealPassword]
6127
6111
  ])
6128
6112
  ])
6129
6113
  ]),
6130
- t("div", Dt, [
6131
- Ut,
6114
+ t("div", Kt, [
6115
+ $t,
6132
6116
  k(t("input", {
6133
6117
  "onUpdate:modelValue": a[5] || (a[5] = (s) => i.passwordRepeat = s),
6134
6118
  type: i.revealPassword2 ? "text" : "password",
6135
6119
  placeholder: e.ssoLang[this.appLang].password_repeat,
6136
6120
  required: ""
6137
- }, null, 8, Kt), [
6121
+ }, null, 8, Ht), [
6138
6122
  [K, i.passwordRepeat]
6139
6123
  ]),
6140
6124
  t("em", {
6141
6125
  onClick: a[6] || (a[6] = (s) => i.revealPassword2 = !i.revealPassword2)
6142
6126
  }, [
6143
- k(t("img", Ht, null, 512), [
6127
+ k(t("img", Ft, null, 512), [
6144
6128
  [I, !i.revealPassword2]
6145
6129
  ]),
6146
- k(t("img", Ft, null, 512), [
6130
+ k(t("img", Qt, null, 512), [
6147
6131
  [I, i.revealPassword2]
6148
6132
  ])
6149
6133
  ])
6150
6134
  ]),
6151
- t("button", Qt, [
6152
- i.submitted ? (c(), l("span", Gt)) : (c(), l("span", $t, p(e.ssoLang[this.appLang].password_change), 1))
6135
+ t("button", Gt, [
6136
+ i.submitted ? (c(), l("span", Xt)) : (c(), l("span", Wt, p(e.ssoLang[this.appLang].password_change), 1))
6153
6137
  ]),
6154
- Wt,
6155
- t("p", Xt, [
6138
+ Yt,
6139
+ t("p", Zt, [
6156
6140
  t("span", {
6157
6141
  innerHTML: e.ssoLang[this.appLang].reset_password_p2
6158
- }, null, 8, Yt),
6142
+ }, null, 8, Jt),
6159
6143
  f(),
6160
6144
  t("a", {
6161
6145
  href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLang].password_reset_t
6162
- }, " support@tapni.co", 8, Zt)
6146
+ }, " support@tapni.co", 8, ei)
6163
6147
  ])
6164
6148
  ], 32)) : (c(), l("form", {
6165
6149
  key: 0,
@@ -6167,10 +6151,10 @@ function Jt(e, a, n, o, i, r) {
6167
6151
  onSubmit: a[2] || (a[2] = y((...s) => r.resetEmail && r.resetEmail(...s), ["prevent"])),
6168
6152
  autocomplete: "on"
6169
6153
  }, [
6170
- t("h3", vt, p(e.ssoLang[this.appLang].reset_password), 1),
6171
- kt,
6172
- t("div", bt, [
6173
- yt,
6154
+ t("h3", bt, p(e.ssoLang[this.appLang].reset_password), 1),
6155
+ yt,
6156
+ t("div", wt, [
6157
+ zt,
6174
6158
  k(t("input", {
6175
6159
  id: "emailInput",
6176
6160
  "onUpdate:modelValue": a[0] || (a[0] = (s) => i.email = s),
@@ -6179,25 +6163,25 @@ function Jt(e, a, n, o, i, r) {
6179
6163
  type: "email",
6180
6164
  placeholder: e.ssoLang[this.appLang].email,
6181
6165
  required: ""
6182
- }, null, 40, wt), [
6166
+ }, null, 40, Lt), [
6183
6167
  [x, i.email]
6184
6168
  ]),
6185
- zt
6169
+ St
6186
6170
  ]),
6187
- t("button", Lt, [
6188
- i.submitted ? (c(), l("span", Ct)) : (c(), l("span", St, p(e.ssoLang[this.appLang].reset_password), 1))
6171
+ t("button", Ct, [
6172
+ i.submitted ? (c(), l("span", jt)) : (c(), l("span", Tt, p(e.ssoLang[this.appLang].reset_password), 1))
6189
6173
  ]),
6190
- Tt,
6191
- t("p", jt, [
6174
+ Pt,
6175
+ t("p", At, [
6192
6176
  t("span", {
6193
6177
  innerHTML: e.ssoLang[this.appLang].reset_password_p1
6194
- }, null, 8, Pt),
6178
+ }, null, 8, It),
6195
6179
  t("a", {
6196
6180
  href: "mailto:support@tapni.co?subject=" + e.ssoLang[this.appLang].password_reset_t
6197
- }, " support@tapni.co", 8, At)
6181
+ }, " support@tapni.co", 8, Et)
6198
6182
  ]),
6199
- It,
6200
- t("div", Et, [
6183
+ xt,
6184
+ t("div", qt, [
6201
6185
  v(u, {
6202
6186
  class: "create float-right",
6203
6187
  to: "/verify"
@@ -6216,11 +6200,11 @@ function Jt(e, a, n, o, i, r) {
6216
6200
  ]),
6217
6201
  _: 1
6218
6202
  }),
6219
- xt
6203
+ Mt
6220
6204
  ])
6221
6205
  ], 32));
6222
6206
  }
6223
- const be = /* @__PURE__ */ T(ft, [["render", Jt], ["__scopeId", "data-v-220c28f9"]]), ei = {
6207
+ const be = /* @__PURE__ */ T(kt, [["render", ai], ["__scopeId", "data-v-452bcb4c"]]), ni = {
6224
6208
  name: "AuthCallback",
6225
6209
  mixins: [G, W, z],
6226
6210
  data() {
@@ -6240,28 +6224,28 @@ const be = /* @__PURE__ */ T(ft, [["render", Jt], ["__scopeId", "data-v-220c28f9
6240
6224
  return e = e.replace("http", "tapni"), e = e.replace("https", "tapni"), window.open(e);
6241
6225
  }
6242
6226
  }
6243
- }, ai = {
6227
+ }, ti = {
6244
6228
  key: 0,
6245
6229
  style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
6246
- }, ni = /* @__PURE__ */ t("br", null, null, -1), ti = {
6230
+ }, ii = /* @__PURE__ */ t("br", null, null, -1), oi = {
6247
6231
  key: 1,
6248
6232
  style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
6249
6233
  };
6250
- function ii(e, a, n, o, i, r) {
6234
+ function ri(e, a, n, o, i, r) {
6251
6235
  return c(), l("div", null, [
6252
- (e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (c(), l("h5", ai, [
6236
+ (e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (c(), l("h5", ti, [
6253
6237
  f(p(e.ssoLang[this.appLang].you_will_be_redirected), 1),
6254
- ni,
6238
+ ii,
6255
6239
  f(" " + p(e.ssoLang[this.appLang].if_redirect_not_directly) + ", ", 1),
6256
6240
  t("span", {
6257
6241
  onClick: a[0] || (a[0] = (...u) => r.inAppRedirect && r.inAppRedirect(...u)),
6258
6242
  style: { color: "blue", cursor: "pointer" }
6259
6243
  }, p(e.ssoLang[this.appLang].click_here), 1),
6260
6244
  f(".")
6261
- ])) : (c(), l("h4", ti, p(e.ssoLang[this.appLang].please_wait), 1))
6245
+ ])) : (c(), l("h4", oi, p(e.ssoLang[this.appLang].please_wait), 1))
6262
6246
  ]);
6263
6247
  }
6264
- const ye = /* @__PURE__ */ T(ei, [["render", ii]]), oi = {
6248
+ const ye = /* @__PURE__ */ T(ni, [["render", ri]]), si = {
6265
6249
  name: "ModalOverlay",
6266
6250
  mixins: [z],
6267
6251
  data() {
@@ -6286,15 +6270,15 @@ const ye = /* @__PURE__ */ T(ei, [["render", ii]]), oi = {
6286
6270
  }
6287
6271
  }
6288
6272
  };
6289
- function ri(e, a, n, o, i, r) {
6273
+ function ci(e, a, n, o, i, r) {
6290
6274
  return c(), l("div", {
6291
6275
  class: b({ "pointer delete-menu": !0, "delete-menu-active": i.toggle }),
6292
6276
  onClick: a[0] || (a[0] = (...u) => r.toggleEmit && r.toggleEmit(...u))
6293
6277
  }, null, 2);
6294
6278
  }
6295
- const we = /* @__PURE__ */ T(oi, [["render", ri], ["__scopeId", "data-v-a128c2fa"]]), si = {
6279
+ const we = /* @__PURE__ */ T(si, [["render", ci], ["__scopeId", "data-v-a128c2fa"]]), li = {
6296
6280
  name: "SSO",
6297
- mixins: [$, G, W, z],
6281
+ mixins: [Q, G, W, z],
6298
6282
  data() {
6299
6283
  return {
6300
6284
  toggle: !1,
@@ -6335,23 +6319,23 @@ const we = /* @__PURE__ */ T(oi, [["render", ri], ["__scopeId", "data-v-a128c2fa
6335
6319
  this.toggle = !this.toggle;
6336
6320
  }
6337
6321
  }
6338
- }, ci = (e) => (O("data-v-256337c2"), e = e(), B(), e), li = /* @__PURE__ */ ci(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6322
+ }, di = (e) => (O("data-v-256337c2"), e = e(), B(), e), pi = /* @__PURE__ */ di(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6339
6323
  /* @__PURE__ */ t("img", {
6340
6324
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6341
6325
  class: "responsive-image",
6342
6326
  style: { width: "45%" }
6343
6327
  })
6344
- ], -1)), di = [
6345
- li
6346
- ], pi = { class: "bold center-text color-black half-top half-bottom" }, ui = ["placeholder"], _i = {
6328
+ ], -1)), ui = [
6329
+ pi
6330
+ ], _i = { class: "bold center-text color-black half-top half-bottom" }, mi = ["placeholder"], gi = {
6347
6331
  type: "submit",
6348
6332
  class: "button black-button white-button button-full",
6349
6333
  style: { margin: "0 auto", "margin-top": "25px", "margin-bottom": "30px" }
6350
- }, mi = { key: 0 }, gi = {
6334
+ }, hi = { key: 0 }, fi = {
6351
6335
  key: 1,
6352
6336
  class: "button--loading button__loader"
6353
6337
  };
6354
- function hi(e, a, n, o, i, r) {
6338
+ function vi(e, a, n, o, i, r) {
6355
6339
  return c(), l("form", {
6356
6340
  onSubmit: a[3] || (a[3] = y((...u) => r.submit && r.submit(...u), ["prevent"])),
6357
6341
  class: b(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": i.toggle }]),
@@ -6361,8 +6345,8 @@ function hi(e, a, n, o, i, r) {
6361
6345
  onClick: a[0] || (a[0] = (...u) => r.forceClose && r.forceClose(...u)),
6362
6346
  class: "color-black pull-right pointer",
6363
6347
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6364
- }, di),
6365
- t("h3", pi, p(e.ssoLang[e.appLang].enter_company_email), 1),
6348
+ }, ui),
6349
+ t("h3", _i, p(e.ssoLang[e.appLang].enter_company_email), 1),
6366
6350
  t("div", null, [
6367
6351
  k(t("input", {
6368
6352
  type: "text",
@@ -6377,18 +6361,18 @@ function hi(e, a, n, o, i, r) {
6377
6361
  required: "",
6378
6362
  onKeydown: a[2] || (a[2] = E(y(() => {
6379
6363
  }, ["prevent"]), ["space"]))
6380
- }, null, 40, ui), [
6364
+ }, null, 40, mi), [
6381
6365
  [x, i.email]
6382
6366
  ])
6383
6367
  ]),
6384
- t("button", _i, [
6385
- i.loading ? (c(), l("span", gi)) : (c(), l("span", mi, p(e.ssoLang[e.appLang].continue), 1))
6368
+ t("button", gi, [
6369
+ i.loading ? (c(), l("span", fi)) : (c(), l("span", hi, p(e.ssoLang[e.appLang].continue), 1))
6386
6370
  ])
6387
6371
  ], 34);
6388
6372
  }
6389
- const ze = /* @__PURE__ */ T(si, [["render", hi], ["__scopeId", "data-v-256337c2"]]), fi = {
6373
+ const ze = /* @__PURE__ */ T(li, [["render", vi], ["__scopeId", "data-v-256337c2"]]), ki = {
6390
6374
  name: "SSOPick",
6391
- mixins: [$, G, W, z],
6375
+ mixins: [Q, G, W, z],
6392
6376
  data() {
6393
6377
  return {
6394
6378
  toggle: !1,
@@ -6421,34 +6405,34 @@ const ze = /* @__PURE__ */ T(si, [["render", hi], ["__scopeId", "data-v-256337c2
6421
6405
  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;
6422
6406
  }
6423
6407
  }
6424
- }, X = (e) => (O("data-v-33bfb54b"), e = e(), B(), e), vi = /* @__PURE__ */ X(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6408
+ }, X = (e) => (O("data-v-33bfb54b"), e = e(), B(), e), bi = /* @__PURE__ */ X(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6425
6409
  /* @__PURE__ */ t("img", {
6426
6410
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6427
6411
  class: "responsive-image",
6428
6412
  style: { width: "45%" }
6429
6413
  })
6430
- ], -1)), ki = [
6431
- vi
6432
- ], bi = { class: "bold center-text color-black half-top half-bottom" }, yi = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6414
+ ], -1)), yi = [
6415
+ bi
6416
+ ], wi = { class: "bold center-text color-black half-top half-bottom" }, zi = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6433
6417
  src: "https://cdn.tapni.co/icons/azure.png",
6434
6418
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6435
- }, null, -1)), wi = { key: 0 }, zi = {
6419
+ }, null, -1)), Li = { key: 0 }, Si = {
6436
6420
  key: 1,
6437
6421
  class: "button--loading button__loader"
6438
- }, Li = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6422
+ }, Ci = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6439
6423
  src: "https://cdn.tapni.co/icons/okta.png",
6440
6424
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6441
- }, null, -1)), Si = { key: 0 }, Ci = {
6425
+ }, null, -1)), Ti = { key: 0 }, ji = {
6442
6426
  key: 1,
6443
6427
  class: "button--loading button__loader"
6444
- }, Ti = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6428
+ }, Pi = /* @__PURE__ */ X(() => /* @__PURE__ */ t("img", {
6445
6429
  src: "https://cdn.tapni.co/icons/saml.png",
6446
6430
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6447
- }, null, -1)), ji = { key: 0 }, Pi = {
6431
+ }, null, -1)), Ai = { key: 0 }, Ii = {
6448
6432
  key: 1,
6449
6433
  class: "button--loading button__loader"
6450
6434
  };
6451
- function Ai(e, a, n, o, i, r) {
6435
+ function Ei(e, a, n, o, i, r) {
6452
6436
  var u, s, _;
6453
6437
  return c(), l("form", {
6454
6438
  onSubmit: a[4] || (a[4] = y(() => {
@@ -6460,35 +6444,35 @@ function Ai(e, a, n, o, i, r) {
6460
6444
  onClick: a[0] || (a[0] = (...L) => r.forceClose && r.forceClose(...L)),
6461
6445
  class: "color-black pull-right pointer",
6462
6446
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6463
- }, ki),
6464
- t("h3", bi, p(e.ssoLang[e.appLang].select_sign_method), 1),
6447
+ }, yi),
6448
+ t("h3", wi, p(e.ssoLang[e.appLang].select_sign_method), 1),
6465
6449
  (u = i.sso) != null && u.azure ? (c(), l("a", {
6466
6450
  key: 0,
6467
6451
  onClick: a[1] || (a[1] = (L) => r.ssoLogin("azure")),
6468
6452
  class: "button-center button black-button button-90 google-button pointer"
6469
6453
  }, [
6470
- yi,
6471
- i.azureLoad ? (c(), l("span", zi)) : (c(), l("span", wi, p(e.ssoLang[e.appLang].sign_in_with) + " Azure", 1))
6454
+ zi,
6455
+ i.azureLoad ? (c(), l("span", Si)) : (c(), l("span", Li, p(e.ssoLang[e.appLang].sign_in_with) + " Azure", 1))
6472
6456
  ])) : h("", !0),
6473
6457
  (s = i.sso) != null && s.okta ? (c(), l("a", {
6474
6458
  key: 1,
6475
6459
  onClick: a[2] || (a[2] = (L) => r.ssoLogin("okta")),
6476
6460
  class: "button-center button black-button button-90 google-button pointer"
6477
6461
  }, [
6478
- Li,
6479
- i.oktaLoad ? (c(), l("span", Ci)) : (c(), l("span", Si, p(e.ssoLang[e.appLang].sign_in_with) + " Okta", 1))
6462
+ Ci,
6463
+ i.oktaLoad ? (c(), l("span", ji)) : (c(), l("span", Ti, p(e.ssoLang[e.appLang].sign_in_with) + " Okta", 1))
6480
6464
  ])) : h("", !0),
6481
6465
  (_ = i.sso) != null && _.saml ? (c(), l("a", {
6482
6466
  key: 2,
6483
6467
  onClick: a[3] || (a[3] = (L) => r.ssoLogin("saml")),
6484
6468
  class: "button-center button black-button button-90 google-button pointer"
6485
6469
  }, [
6486
- Ti,
6487
- i.samlLoad ? (c(), l("span", Pi)) : (c(), l("span", ji, p(e.ssoLang[e.appLang].sign_in_with) + " SAML", 1))
6470
+ Pi,
6471
+ i.samlLoad ? (c(), l("span", Ii)) : (c(), l("span", Ai, p(e.ssoLang[e.appLang].sign_in_with) + " SAML", 1))
6488
6472
  ])) : h("", !0)
6489
6473
  ], 34);
6490
6474
  }
6491
- const Le = /* @__PURE__ */ T(fi, [["render", Ai], ["__scopeId", "data-v-33bfb54b"]]), Ii = {
6475
+ const Le = /* @__PURE__ */ T(ki, [["render", Ei], ["__scopeId", "data-v-33bfb54b"]]), xi = {
6492
6476
  name: "LinkIcon",
6493
6477
  mixins: [z],
6494
6478
  props: {
@@ -6560,8 +6544,8 @@ const Le = /* @__PURE__ */ T(fi, [["render", Ai], ["__scopeId", "data-v-33bfb54b
6560
6544
  }
6561
6545
  },
6562
6546
  methods: {}
6563
- }, Ei = ["src", "alt"], xi = ["src", "alt"], qi = ["src", "alt"], Mi = ["src", "alt"];
6564
- function Ri(e, a, n, o, i, r) {
6547
+ }, qi = ["src", "alt"], Mi = ["src", "alt"], Ri = ["src", "alt"], Ni = ["src", "alt"];
6548
+ function Vi(e, a, n, o, i, r) {
6565
6549
  var u, s;
6566
6550
  return c(), l("a", {
6567
6551
  class: b(["disable-select", n.linkStyle + (n.disabled ? " opacity-50" : "")]),
@@ -6584,21 +6568,21 @@ function Ri(e, a, n, o, i, r) {
6584
6568
  alt: n.data.text,
6585
6569
  onLoad: a[0] || (a[0] = (_) => e.$emit("loaded")),
6586
6570
  onError: a[1] || (a[1] = (_) => e.$emit("loaded"))
6587
- }, null, 40, Ei)) : !n.data.custom_icon && n.data.type === "customlink" && n.linkAdding ? (c(), l("img", {
6571
+ }, null, 40, qi)) : !n.data.custom_icon && n.data.type === "customlink" && n.linkAdding ? (c(), l("img", {
6588
6572
  key: 1,
6589
6573
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
6590
6574
  class: "responsive-image",
6591
6575
  alt: n.data.text,
6592
6576
  onLoad: a[2] || (a[2] = (_) => e.$emit("loaded")),
6593
6577
  onError: a[3] || (a[3] = (_) => e.$emit("loaded"))
6594
- }, null, 40, xi)) : !n.data.custom_icon && n.data.type === "customlink" && !n.linkAdding ? (c(), l("img", {
6578
+ }, null, 40, Mi)) : !n.data.custom_icon && n.data.type === "customlink" && !n.linkAdding ? (c(), l("img", {
6595
6579
  key: 2,
6596
6580
  src: "https://cdn.tapni.co/icons/customlink.png",
6597
6581
  class: "responsive-image",
6598
6582
  alt: n.data.text,
6599
6583
  onLoad: a[4] || (a[4] = (_) => e.$emit("loaded")),
6600
6584
  onError: a[5] || (a[5] = (_) => e.$emit("loaded"))
6601
- }, null, 40, qi)) : (c(), l("img", {
6585
+ }, null, 40, Ri)) : (c(), l("img", {
6602
6586
  key: 3,
6603
6587
  src: n.data.style.custom_icon,
6604
6588
  style: { "border-radius": "22.46%" },
@@ -6606,7 +6590,7 @@ function Ri(e, a, n, o, i, r) {
6606
6590
  alt: n.data.text,
6607
6591
  onLoad: a[6] || (a[6] = (_) => e.$emit("loaded")),
6608
6592
  onError: a[7] || (a[7] = (_) => e.$emit("loaded"))
6609
- }, null, 40, Mi))
6593
+ }, null, 40, Ni))
6610
6594
  ], 6),
6611
6595
  t("span", {
6612
6596
  class: "link-text link-drag color-black",
@@ -6614,17 +6598,17 @@ function Ri(e, a, n, o, i, r) {
6614
6598
  }, p(r.linkText), 5)
6615
6599
  ], 6);
6616
6600
  }
6617
- const Ni = /* @__PURE__ */ T(Ii, [["render", Ri]]), Vi = {
6601
+ const Oi = /* @__PURE__ */ T(xi, [["render", Vi]]), Bi = {
6618
6602
  ANDROID_VERSION: "5.6",
6619
6603
  IOS_VERSION: "5.6",
6620
6604
  WEB_VERSION: "5.6.0",
6621
6605
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
6622
6606
  METAPIXEL_ID: "1203678696914368",
6623
6607
  GOOGLE_ANALYTICS_ID: ""
6624
- }, Oi = {
6608
+ }, Di = {
6625
6609
  name: "Language",
6626
6610
  mixins: [z],
6627
- components: { LinkIcon: Ni },
6611
+ components: { LinkIcon: Oi },
6628
6612
  data() {
6629
6613
  return {
6630
6614
  toggle: !1
@@ -6634,8 +6618,8 @@ const Ni = /* @__PURE__ */ T(Ii, [["render", Ri]]), Vi = {
6634
6618
  d.$on("toggleLanguageModal", this.toggleModal), d.$on("closeModal", () => {
6635
6619
  this.toggle = !1;
6636
6620
  });
6637
- let e = this.isNative ? await F.getLanguageCode() : N.getFirstBrowserLanguage();
6638
- e && Vi.SUPPORTED_LANGUAGES.includes(e) && this.updateLanguage(e);
6621
+ let e = this.isNative ? await H.getLanguageCode() : N.getFirstBrowserLanguage();
6622
+ e && Bi.SUPPORTED_LANGUAGES.includes(e) && this.updateLanguage(e);
6639
6623
  },
6640
6624
  beforeDestroy() {
6641
6625
  d._events.toggleLanguageModal.pop();
@@ -6654,16 +6638,16 @@ const Ni = /* @__PURE__ */ T(Ii, [["render", Ri]]), Vi = {
6654
6638
  this.toggle = !this.toggle;
6655
6639
  }
6656
6640
  }
6657
- }, Bi = (e) => (O("data-v-e5a7ac07"), e = e(), B(), e), Di = /* @__PURE__ */ Bi(() => /* @__PURE__ */ t("i", { class: "font-17 fa color-black" }, [
6641
+ }, Ui = (e) => (O("data-v-e5a7ac07"), e = e(), B(), e), Ki = /* @__PURE__ */ Ui(() => /* @__PURE__ */ t("i", { class: "font-17 fa color-black" }, [
6658
6642
  /* @__PURE__ */ t("img", {
6659
6643
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6660
6644
  class: "fa responsive-image",
6661
6645
  style: { width: "45%" }
6662
6646
  })
6663
- ], -1)), Ui = [
6664
- Di
6665
- ], Ki = { class: "bold center-text color-black small-bottom" };
6666
- function Hi(e, a, n, o, i, r) {
6647
+ ], -1)), $i = [
6648
+ Ki
6649
+ ], Hi = { class: "bold center-text color-black small-bottom" };
6650
+ function Fi(e, a, n, o, i, r) {
6667
6651
  const u = V("LinkIcon");
6668
6652
  return c(), l("div", {
6669
6653
  class: b(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": i.toggle }]),
@@ -6673,8 +6657,8 @@ function Hi(e, a, n, o, i, r) {
6673
6657
  onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
6674
6658
  class: "color-black pull-right pointer",
6675
6659
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6676
- }, Ui),
6677
- t("h3", Ki, p(e.ssoLang[e.appLang].app_language), 1),
6660
+ }, $i),
6661
+ t("h3", Hi, p(e.ssoLang[e.appLang].app_language), 1),
6678
6662
  v(u, {
6679
6663
  onClick: a[1] || (a[1] = (s) => r.updateLanguage("en")),
6680
6664
  "link-style": "link-grid",
@@ -6733,38 +6717,38 @@ function Hi(e, a, n, o, i, r) {
6733
6717
  }, null, 8, ["data"])
6734
6718
  ], 2);
6735
6719
  }
6736
- const Se = /* @__PURE__ */ T(Oi, [["render", Hi], ["__scopeId", "data-v-e5a7ac07"]]);
6737
- 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 };
6738
- const Qi = { id: "ssoapp" }, $i = {
6720
+ const Se = /* @__PURE__ */ T(Di, [["render", Fi], ["__scopeId", "data-v-e5a7ac07"]]);
6721
+ var Qi = { 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 };
6722
+ const Gi = { id: "ssoapp" }, Wi = {
6739
6723
  key: 0,
6740
6724
  href: "/",
6741
6725
  class: "header-logo"
6742
- }, Gi = /* @__PURE__ */ t("img", {
6726
+ }, Xi = /* @__PURE__ */ t("img", {
6743
6727
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5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V/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",
6744
6728
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
6745
6729
  class: "header-logo-img"
6746
- }, null, -1), Wi = [
6747
- Gi
6748
- ], Xi = { class: "lang-icon" }, Yi = {
6730
+ }, null, -1), Yi = [
6731
+ Xi
6732
+ ], Zi = { class: "lang-icon" }, Ji = {
6749
6733
  class: "snackbar snackbar-boxed",
6750
6734
  id: "snackbar"
6751
- }, Zi = {
6735
+ }, eo = {
6752
6736
  class: "snack-body",
6753
6737
  id: "errorSnack"
6754
- }, Ji = { id: "errorMessage" }, eo = /* @__PURE__ */ t("img", {
6738
+ }, ao = { id: "errorMessage" }, no = /* @__PURE__ */ t("img", {
6755
6739
  src: "https://cdn.tapni.co/icons/notification-close.png",
6756
6740
  style: { width: "100%" }
6757
- }, null, -1), ao = [
6758
- eo
6759
- ], no = {
6741
+ }, null, -1), to = [
6742
+ no
6743
+ ], io = {
6760
6744
  class: "snack-body",
6761
6745
  id: "successSnack"
6762
- }, to = { id: "successMessage" }, io = /* @__PURE__ */ t("img", {
6746
+ }, oo = { id: "successMessage" }, ro = /* @__PURE__ */ t("img", {
6763
6747
  src: "https://cdn.tapni.co/icons/notification-close.png",
6764
6748
  style: { width: "100%" }
6765
- }, null, -1), oo = [
6766
- io
6767
- ], ro = {
6749
+ }, null, -1), so = [
6750
+ ro
6751
+ ], co = {
6768
6752
  name: "TapniAuth",
6769
6753
  mixins: [z],
6770
6754
  data() {
@@ -6799,8 +6783,8 @@ const Qi = { id: "ssoapp" }, $i = {
6799
6783
  },
6800
6784
  methods: {
6801
6785
  async init() {
6802
- if (this.storage && this.storage.token && this.storage.refreshTokens) {
6803
- this.setToken(this.storage.token);
6786
+ if (this.$storage && this.$storage.token && this.$storage.refreshTokens) {
6787
+ this.setToken(this.$storage.token);
6804
6788
  const e = this.getRefreshTokens();
6805
6789
  this.setRefreshToken(e[0]), this.getLoggedInAccounts();
6806
6790
  }
@@ -6824,20 +6808,20 @@ const Qi = { id: "ssoapp" }, $i = {
6824
6808
  this.applyBgStyle();
6825
6809
  }
6826
6810
  }
6827
- }, zo = /* @__PURE__ */ Object.assign(ro, {
6811
+ }, ne = /* @__PURE__ */ Object.assign(co, {
6828
6812
  setup(e) {
6829
6813
  return document.addEventListener("DOMContentLoaded", function() {
6830
6814
  const a = document.createElement("script");
6831
- a.src = `https://www.google.com/recaptcha/api.js?render=${Fi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(a);
6832
- }), (a, n) => (c(), l("div", Qi, [
6833
- a.display === "redirect" ? (c(), l("a", $i, Wi)) : h("", !0),
6815
+ a.src = `https://www.google.com/recaptcha/api.js?render=${Qi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(a);
6816
+ }), (a, n) => (c(), l("div", Gi, [
6817
+ a.display === "redirect" ? (c(), l("a", Wi, Yi)) : h("", !0),
6834
6818
  a.display === "redirect" ? (c(), l("a", {
6835
6819
  key: 1,
6836
6820
  onClick: n[0] || (n[0] = (...o) => a.toggleLanguageModal && a.toggleLanguageModal(...o)),
6837
6821
  class: "font-18 no-border pointer color-black",
6838
6822
  style: { position: "absolute", right: "20px", top: "-10px" }
6839
6823
  }, [
6840
- t("span", Xi, p(a.appLang.toUpperCase()), 1)
6824
+ t("span", Zi, p(a.appLang.toUpperCase()), 1)
6841
6825
  ])) : h("", !0),
6842
6826
  v(we),
6843
6827
  v(Se),
@@ -6853,25 +6837,30 @@ const Qi = { id: "ssoapp" }, $i = {
6853
6837
  key: 5,
6854
6838
  isModal: e.isModal
6855
6839
  }, 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 })),
6856
- t("div", Yi, [
6857
- t("p", Zi, [
6858
- t("span", Ji, p(a.ssoLang[a.appLang].error), 1),
6840
+ t("div", Ji, [
6841
+ t("p", eo, [
6842
+ t("span", ao, p(a.ssoLang[a.appLang].error), 1),
6859
6843
  t("a", {
6860
6844
  onClick: n[1] || (n[1] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
6861
6845
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
6862
- }, ao)
6846
+ }, to)
6863
6847
  ]),
6864
- t("p", no, [
6865
- t("span", to, p(a.ssoLang[a.appLang].success), 1),
6848
+ t("p", io, [
6849
+ t("span", oo, p(a.ssoLang[a.appLang].success), 1),
6866
6850
  t("a", {
6867
6851
  onClick: n[2] || (n[2] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
6868
6852
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
6869
- }, oo)
6853
+ }, so)
6870
6854
  ])
6871
6855
  ])
6872
6856
  ]));
6873
6857
  }
6874
- });
6858
+ }), So = {
6859
+ TapniAuth: ne,
6860
+ install: (e, a) => {
6861
+ e.component("TapniAuth", ne), e.config.globalProperties.$storage === void 0 && e.use(Re, a);
6862
+ }
6863
+ };
6875
6864
  export {
6876
- zo as TapniAuth
6865
+ So as default
6877
6866
  };