@tapni/auth 0.0.62 → 0.0.63

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,18 +1,17 @@
1
- import { reactive as Zn, readonly as Jn, resolveComponent as pe, openBlock as f, createElementBlock as k, createElementVNode as c, toDisplayString as y, createCommentVNode as S, createVNode as P, withCtx as W, createTextVNode as E, pushScopeId as ue, popScopeId as _e, createStaticVNode as et, nextTick as Je, withModifiers as U, normalizeStyle as le, withDirectives as x, withKeys as ae, vModelText as ie, vModelDynamic as be, vShow as ee, createBlock as X, normalizeClass as R, unref as nt } from "vue";
2
- import { RouterView as tt } from "vue-router";
1
+ import { reactive as Jn, readonly as et, resolveComponent as pe, openBlock as f, createElementBlock as k, createElementVNode as c, toDisplayString as y, createCommentVNode as S, createVNode as P, withCtx as W, createTextVNode as E, pushScopeId as ue, popScopeId as _e, createStaticVNode as nt, nextTick as Je, withModifiers as U, normalizeStyle as le, withDirectives as x, withKeys as ae, vModelText as ie, vModelDynamic as be, vShow as ee, createBlock as X, normalizeClass as R, unref as tt } from "vue";
2
+ import { RouterView as at } from "vue-router";
3
3
  import z from "await-to-js";
4
4
  import Ne from "axios";
5
5
  import { jwtDecode as on } from "jwt-decode";
6
6
  import { Device as ve } from "@capacitor/device";
7
- import { Capacitor as he, registerPlugin as at } from "@capacitor/core";
8
- import { GoogleAuth as en } from "@codetrix-studio/capacitor-google-auth";
7
+ import { Capacitor as he, registerPlugin as rn } from "@capacitor/core";
9
8
  import { FacebookLogin as it } from "@capacitor-community/facebook-login";
10
9
  import { MsAuthPlugin as ot } from "@recognizebv/capacitor-plugin-msauth";
11
10
  import { Browser as ye } from "@capacitor/browser";
12
11
  import rt from "qr-code-styling";
13
12
  import { sanitizeUrl as st } from "@braintree/sanitize-url";
14
13
  import "@tapni/capacitor-reactive-localstorage-vue3";
15
- const ct = "0.0.62";
14
+ const ct = "0.0.63";
16
15
  let Be;
17
16
  const me = {
18
17
  setApiRootFromOptions(e) {
@@ -96,12 +95,12 @@ const me = {
96
95
  loginUsingQR(e, t) {
97
96
  return Q(t).post("/users/qr/login", e);
98
97
  }
99
- }, nn = me.instance, tn = {
98
+ }, en = me.instance, nn = {
100
99
  registerDevice(e, t) {
101
- return nn(t).post("/devices/add", e);
100
+ return en(t).post("/devices/add", e);
102
101
  },
103
102
  addFcmToken(e, t) {
104
- return nn(t).post("/devices/fcm/add", e);
103
+ return en(t).post("/devices/fcm/add", e);
105
104
  }
106
105
  }, M = me.instance;
107
106
  let F;
@@ -173,7 +172,7 @@ const N = {
173
172
  qrCodePooling(e, t) {
174
173
  return Me(t).post("/company/login/qr", e);
175
174
  }
176
- }, ke = Zn(/* @__PURE__ */ new Map()), v = {
175
+ }, ke = Jn(/* @__PURE__ */ new Map()), v = {
177
176
  $on(e, t) {
178
177
  let r = ke.get(e);
179
178
  r || (r = /* @__PURE__ */ new Set(), ke.set(e, r)), r.add(t);
@@ -189,8 +188,8 @@ const N = {
189
188
  r && r.delete(t);
190
189
  }
191
190
  };
192
- Jn(v);
193
- const rn = {
191
+ et(v);
192
+ const sn = {
194
193
  state: {
195
194
  english: "English",
196
195
  spanish: "Spanish",
@@ -647,7 +646,7 @@ const rn = {
647
646
  choose_other_login_methods: "Choose other login methods",
648
647
  no_sso_logins: "Your company does not use SSO login, please contact your administrator"
649
648
  }
650
- }, sn = {
649
+ }, cn = {
651
650
  state: {
652
651
  english: "Englisch",
653
652
  spanish: "Spanisch",
@@ -1099,7 +1098,7 @@ const rn = {
1099
1098
  choose_other_login_methods: "Wählen Sie andere Anmeldeverfahren",
1100
1099
  no_sso_logins: "Ihr Unternehmen verwendet keine SSO-Anmeldung. Bitte wenden Sie sich an Ihren Administrator"
1101
1100
  }
1102
- }, cn = {
1101
+ }, ln = {
1103
1102
  state: {
1104
1103
  english: "Inglés",
1105
1104
  spanish: "Español",
@@ -1555,7 +1554,7 @@ const rn = {
1555
1554
  choose_other_login_methods: "Elige otros métodos de inicio de sesión",
1556
1555
  no_sso_logins: "Su empresa no utiliza el inicio de sesión SSO. Comuníquese con su administrador"
1557
1556
  }
1558
- }, ln = {
1557
+ }, dn = {
1559
1558
  state: {
1560
1559
  english: "Anglais",
1561
1560
  spanish: "Espagnol",
@@ -2013,7 +2012,7 @@ Il n'y a aucun lien dans votre profil.`,
2013
2012
  choose_other_login_methods: "Choisissez d'autres méthodes de connexion",
2014
2013
  no_sso_logins: "Votre entreprise n'utilise pas de login SSO, veuillez contacter votre administrateur"
2015
2014
  }
2016
- }, dn = {
2015
+ }, pn = {
2017
2016
  state: {
2018
2017
  english: "Inglese",
2019
2018
  spanish: "Spagnolo",
@@ -2466,7 +2465,7 @@ Il n'y a aucun lien dans votre profil.`,
2466
2465
  choose_other_login_methods: "Scegli altri metodi di accesso",
2467
2466
  no_sso_logins: "La tua azienda non utilizza l'accesso SSO, contatta il tuo amministratore"
2468
2467
  }
2469
- }, pn = {
2468
+ }, un = {
2470
2469
  state: {
2471
2470
  english: "Engleski",
2472
2471
  spanish: "Španski",
@@ -2911,7 +2910,7 @@ Il n'y a aucun lien dans votre profil.`,
2911
2910
  choose_other_login_methods: "Izaberite druge metode prijavljivanja",
2912
2911
  no_sso_logins: "Vaša kompanija ne koristi SSO prijavu, kontaktirajte svog administratora"
2913
2912
  }
2914
- }, un = {
2913
+ }, _n = {
2915
2914
  state: {
2916
2915
  english: "İngilizce",
2917
2916
  spanish: "İspanyolca",
@@ -3809,7 +3808,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
3809
3808
  choose_other_login_methods: "选择其他登录方法",
3810
3809
  no_sso_logins: "您的公司不使用 SSO 登录。 请联系您的管理员"
3811
3810
  }
3812
- }, _n = {
3811
+ }, mn = {
3813
3812
  state: {
3814
3813
  english: "영어",
3815
3814
  spanish: "스페인어",
@@ -4347,15 +4346,15 @@ const O = {
4347
4346
  device: {},
4348
4347
  loggedInAccounts: {},
4349
4348
  ssoLang: {
4350
- en: rn.state,
4351
- de: sn.state,
4352
- es: cn.state,
4353
- fr: ln.state,
4354
- it: dn.state,
4355
- sr: pn.state,
4356
- tr: un.state,
4349
+ en: sn.state,
4350
+ de: cn.state,
4351
+ es: ln.state,
4352
+ fr: dn.state,
4353
+ it: pn.state,
4354
+ sr: un.state,
4355
+ tr: _n.state,
4357
4356
  cn: lt.state,
4358
- kr: _n.state
4357
+ kr: mn.state
4359
4358
  },
4360
4359
  display: "npm",
4361
4360
  redirect_uri: "https://t.link/callback/auth",
@@ -4561,13 +4560,13 @@ const O = {
4561
4560
  }
4562
4561
  };
4563
4562
  const [u, l] = await z(
4564
- tn.registerDevice(r, this.$storage)
4563
+ nn.registerDevice(r, this.$storage)
4565
4564
  );
4566
4565
  return u ? this.errorHandler(u) : l;
4567
4566
  },
4568
4567
  async addFcmToken(e) {
4569
4568
  const [t, r] = await z(
4570
- tn.addFcmToken(e, this.$storage)
4569
+ nn.addFcmToken(e, this.$storage)
4571
4570
  );
4572
4571
  return t ? this.errorHandler(t) : r;
4573
4572
  },
@@ -4667,18 +4666,18 @@ const O = {
4667
4666
  }, 1500), v.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4668
4667
  },
4669
4668
  methods: {}
4670
- }, mn = (e) => (ue("data-v-c5cb659c"), e = e(), _e(), e), _t = {
4669
+ }, gn = (e) => (ue("data-v-c5cb659c"), e = e(), _e(), e), _t = {
4671
4670
  class: "page-login content-boxed content-boxed-padding center-text",
4672
4671
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
4673
- }, mt = ["autoplay"], gt = /* @__PURE__ */ mn(() => /* @__PURE__ */ c("source", {
4672
+ }, mt = ["autoplay"], gt = /* @__PURE__ */ gn(() => /* @__PURE__ */ c("source", {
4674
4673
  src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
4675
4674
  type: "video/mp4"
4676
4675
  }, null, -1)), ht = [
4677
4676
  gt
4678
- ], ft = { class: "bold full-top no-bottom center-text" }, kt = { class: "full-bottom half-top center-text color-black font-16" }, bt = { class: "page-login-links center-text" }, vt = /* @__PURE__ */ mn(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), yt = {
4677
+ ], ft = { class: "bold full-top no-bottom center-text" }, kt = { class: "full-bottom half-top center-text color-black font-16" }, bt = { class: "page-login-links center-text" }, vt = /* @__PURE__ */ gn(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), yt = {
4679
4678
  key: 2,
4680
4679
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4681
- }, wt = /* @__PURE__ */ et('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>', 3), zt = [
4680
+ }, wt = /* @__PURE__ */ nt('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-c5cb659c><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-c5cb659c></a>', 3), zt = [
4682
4681
  wt
4683
4682
  ];
4684
4683
  function Lt(e, t, r, u, l, d) {
@@ -4720,7 +4719,9 @@ function Lt(e, t, r, u, l, d) {
4720
4719
  this.isNative ? S("", !0) : (f(), k("div", yt, zt))
4721
4720
  ]);
4722
4721
  }
4723
- const gn = /* @__PURE__ */ $(ut, [["render", Lt], ["__scopeId", "data-v-c5cb659c"]]), hn = {
4722
+ const hn = /* @__PURE__ */ $(ut, [["render", Lt], ["__scopeId", "data-v-c5cb659c"]]), tn = rn("GoogleAuth", {
4723
+ web: () => import("./web-5VtGcKeU.js").then((e) => new e.GoogleAuthWeb())
4724
+ }), fn = {
4724
4725
  data() {
4725
4726
  return {
4726
4727
  googleLoad: !1
@@ -4733,13 +4734,13 @@ const gn = /* @__PURE__ */ $(ut, [["render", Lt], ["__scopeId", "data-v-c5cb659c
4733
4734
  }
4734
4735
  },
4735
4736
  mounted() {
4736
- en.initialize();
4737
+ tn.initialize();
4737
4738
  },
4738
4739
  methods: {
4739
4740
  async googleLogin() {
4740
4741
  var r;
4741
4742
  this.googleLoad = !0;
4742
- let [e, t] = await z(en.signIn());
4743
+ let [e, t] = await z(tn.signIn());
4743
4744
  if (e)
4744
4745
  return this.googleLoad = !1;
4745
4746
  if (this.referral && (t.ref = this.referral), t.authentication && (t.authentication.accessToken || t.authentication.idToken)) {
@@ -4775,7 +4776,7 @@ window.fbAsyncInit = function() {
4775
4776
  var u, l = e.getElementsByTagName(t)[0];
4776
4777
  e.getElementById(r) || (u = e.createElement(t), u.id = r, u.src = "https://connect.facebook.net/en_US/sdk.js", l.parentNode.insertBefore(u, l));
4777
4778
  })(document, "script", "facebook-jssdk");
4778
- const fn = {
4779
+ const kn = {
4779
4780
  data() {
4780
4781
  return {
4781
4782
  facebookLoad: !1
@@ -4812,9 +4813,9 @@ const fn = {
4812
4813
  this.facebookLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4813
4814
  }
4814
4815
  }
4815
- }, Ct = at("SignInWithApple", {
4816
+ }, Ct = rn("SignInWithApple", {
4816
4817
  web: () => import("./web-NrPZl3qD.js").then((e) => new e.SignInWithAppleWeb())
4817
- }), kn = {
4818
+ }), bn = {
4818
4819
  data() {
4819
4820
  return {
4820
4821
  appleLoad: !1
@@ -4924,7 +4925,7 @@ const we = {
4924
4925
  return null;
4925
4926
  },
4926
4927
  compareLangKeys() {
4927
- const e = Object.keys(rn.default.state), t = Object.keys(sn.default.state), r = Object.keys(cn.default.state), u = Object.keys(_n.default.state), l = Object.keys(dn.default.state), d = Object.keys(ln.default.state), h = Object.keys(pn.default.state), m = Object.keys(un.default.state);
4928
+ const e = Object.keys(sn.default.state), t = Object.keys(cn.default.state), r = Object.keys(ln.default.state), u = Object.keys(mn.default.state), l = Object.keys(pn.default.state), d = Object.keys(dn.default.state), h = Object.keys(un.default.state), m = Object.keys(_n.default.state);
4928
4929
  console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !h.includes(b))), console.log("In sr but not in en", h.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in tr", e.filter((b) => !m.includes(b))), console.log("In tr but not in en", m.filter((b) => !e.includes(b))), console.log();
4929
4930
  },
4930
4931
  base64ImageToBlob(e) {
@@ -5054,7 +5055,7 @@ const we = {
5054
5055
  }
5055
5056
  }
5056
5057
  };
5057
- var bn = {}, Le = {};
5058
+ var vn = {}, Le = {};
5058
5059
  Le.byteLength = It;
5059
5060
  Le.toByteArray = Pt;
5060
5061
  Le.fromByteArray = Bt;
@@ -5063,7 +5064,7 @@ for (var ce = 0, Et = Re.length; ce < Et; ++ce)
5063
5064
  G[ce] = Re[ce], V[Re.charCodeAt(ce)] = ce;
5064
5065
  V[45] = 62;
5065
5066
  V[95] = 63;
5066
- function vn(e) {
5067
+ function yn(e) {
5067
5068
  var t = e.length;
5068
5069
  if (t % 4 > 0)
5069
5070
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -5073,14 +5074,14 @@ function vn(e) {
5073
5074
  return [r, u];
5074
5075
  }
5075
5076
  function It(e) {
5076
- var t = vn(e), r = t[0], u = t[1];
5077
+ var t = yn(e), r = t[0], u = t[1];
5077
5078
  return (r + u) * 3 / 4 - u;
5078
5079
  }
5079
5080
  function At(e, t, r) {
5080
5081
  return (t + r) * 3 / 4 - r;
5081
5082
  }
5082
5083
  function Pt(e) {
5083
- var t, r = vn(e), u = r[0], l = r[1], d = new Tt(At(e, u, l)), h = 0, m = l > 0 ? u - 4 : u, b;
5084
+ var t, r = yn(e), u = r[0], l = r[1], d = new Tt(At(e, u, l)), h = 0, m = l > 0 ? u - 4 : u, b;
5084
5085
  for (b = 0; b < m; b += 4)
5085
5086
  t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[h++] = t >> 16 & 255, d[h++] = t >> 8 & 255, d[h++] = t & 255;
5086
5087
  return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[h++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[h++] = t >> 8 & 255, d[h++] = t & 255), d;
@@ -5135,7 +5136,7 @@ Ue.write = function(e, t, r, u, l, d) {
5135
5136
  */
5136
5137
  (function(e) {
5137
5138
  const t = Le, r = Ue, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5138
- e.Buffer = p, e.SlowBuffer = jn, e.INSPECT_MAX_BYTES = 50;
5139
+ e.Buffer = p, e.SlowBuffer = xn, e.INSPECT_MAX_BYTES = 50;
5139
5140
  const l = 2147483647;
5140
5141
  e.kMaxLength = l;
5141
5142
  const { Uint8Array: d, ArrayBuffer: h, SharedArrayBuffer: m } = globalThis;
@@ -5186,7 +5187,7 @@ Ue.write = function(e, t, r, u, l, d) {
5186
5187
  if (typeof i == "string")
5187
5188
  return Te(i, n);
5188
5189
  if (h.isView(i))
5189
- return An(i);
5190
+ return Pn(i);
5190
5191
  if (i == null)
5191
5192
  throw new TypeError(
5192
5193
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
@@ -5200,7 +5201,7 @@ Ue.write = function(e, t, r, u, l, d) {
5200
5201
  const o = i.valueOf && i.valueOf();
5201
5202
  if (o != null && o !== i)
5202
5203
  return p.from(o, n, a);
5203
- const s = Pn(i);
5204
+ const s = jn(i);
5204
5205
  if (s)
5205
5206
  return s;
5206
5207
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
@@ -5246,7 +5247,7 @@ Ue.write = function(e, t, r, u, l, d) {
5246
5247
  a[o] = i[o] & 255;
5247
5248
  return a;
5248
5249
  }
5249
- function An(i) {
5250
+ function Pn(i) {
5250
5251
  if (H(i, d)) {
5251
5252
  const n = new d(i);
5252
5253
  return Ie(n.buffer, n.byteOffset, n.byteLength);
@@ -5261,7 +5262,7 @@ Ue.write = function(e, t, r, u, l, d) {
5261
5262
  let o;
5262
5263
  return n === void 0 && a === void 0 ? o = new d(i) : a === void 0 ? o = new d(i, n) : o = new d(i, n, a), Object.setPrototypeOf(o, p.prototype), o;
5263
5264
  }
5264
- function Pn(i) {
5265
+ function jn(i) {
5265
5266
  if (p.isBuffer(i)) {
5266
5267
  const n = Ae(i.length) | 0, a = L(n);
5267
5268
  return a.length === 0 || i.copy(a, 0, 0, n), a;
@@ -5276,7 +5277,7 @@ Ue.write = function(e, t, r, u, l, d) {
5276
5277
  throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + l.toString(16) + " bytes");
5277
5278
  return i | 0;
5278
5279
  }
5279
- function jn(i) {
5280
+ function xn(i) {
5280
5281
  return +i != i && (i = 0), p.alloc(+i);
5281
5282
  }
5282
5283
  p.isBuffer = function(n) {
@@ -5377,29 +5378,29 @@ Ue.write = function(e, t, r, u, l, d) {
5377
5378
  }
5378
5379
  }
5379
5380
  p.byteLength = Oe;
5380
- function xn(i, n, a) {
5381
+ function Bn(i, n, a) {
5381
5382
  let o = !1;
5382
5383
  if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((a === void 0 || a > this.length) && (a = this.length), a <= 0) || (a >>>= 0, n >>>= 0, a <= n))
5383
5384
  return "";
5384
5385
  for (i || (i = "utf8"); ; )
5385
5386
  switch (i) {
5386
5387
  case "hex":
5387
- return Vn(this, n, a);
5388
+ return Kn(this, n, a);
5388
5389
  case "utf8":
5389
5390
  case "utf-8":
5390
5391
  return Ve(this, n, a);
5391
5392
  case "ascii":
5392
- return Dn(this, n, a);
5393
+ return Fn(this, n, a);
5393
5394
  case "latin1":
5394
5395
  case "binary":
5395
- return Fn(this, n, a);
5396
+ return Vn(this, n, a);
5396
5397
  case "base64":
5397
- return Un(this, n, a);
5398
+ return On(this, n, a);
5398
5399
  case "ucs2":
5399
5400
  case "ucs-2":
5400
5401
  case "utf16le":
5401
5402
  case "utf-16le":
5402
- return Kn(this, n, a);
5403
+ return $n(this, n, a);
5403
5404
  default:
5404
5405
  if (o)
5405
5406
  throw new TypeError("Unknown encoding: " + i);
@@ -5434,7 +5435,7 @@ Ue.write = function(e, t, r, u, l, d) {
5434
5435
  return this;
5435
5436
  }, p.prototype.toString = function() {
5436
5437
  const n = this.length;
5437
- return n === 0 ? "" : arguments.length === 0 ? Ve(this, 0, n) : xn.apply(this, arguments);
5438
+ return n === 0 ? "" : arguments.length === 0 ? Ve(this, 0, n) : Bn.apply(this, arguments);
5438
5439
  }, p.prototype.toLocaleString = p.prototype.toString, p.prototype.equals = function(n) {
5439
5440
  if (!p.isBuffer(n))
5440
5441
  throw new TypeError("Argument must be a Buffer");
@@ -5524,7 +5525,7 @@ Ue.write = function(e, t, r, u, l, d) {
5524
5525
  }, p.prototype.lastIndexOf = function(n, a, o) {
5525
5526
  return De(this, n, a, o, !1);
5526
5527
  };
5527
- function Bn(i, n, a, o) {
5528
+ function Mn(i, n, a, o) {
5528
5529
  a = Number(a) || 0;
5529
5530
  const s = i.length - a;
5530
5531
  o ? (o = Number(o), o > s && (o = s)) : o = s;
@@ -5539,17 +5540,17 @@ Ue.write = function(e, t, r, u, l, d) {
5539
5540
  }
5540
5541
  return g;
5541
5542
  }
5542
- function Mn(i, n, a, o) {
5543
- return fe(je(n, i.length - a), i, a, o);
5544
- }
5545
5543
  function Rn(i, n, a, o) {
5546
- return fe(Gn(n), i, a, o);
5544
+ return fe(je(n, i.length - a), i, a, o);
5547
5545
  }
5548
5546
  function qn(i, n, a, o) {
5549
- return fe(Ze(n), i, a, o);
5547
+ return fe(Wn(n), i, a, o);
5550
5548
  }
5551
5549
  function Nn(i, n, a, o) {
5552
- return fe(Wn(n, i.length - a), i, a, o);
5550
+ return fe(Ze(n), i, a, o);
5551
+ }
5552
+ function Un(i, n, a, o) {
5553
+ return fe(Yn(n, i.length - a), i, a, o);
5553
5554
  }
5554
5555
  p.prototype.write = function(n, a, o, s) {
5555
5556
  if (a === void 0)
@@ -5570,21 +5571,21 @@ Ue.write = function(e, t, r, u, l, d) {
5570
5571
  for (; ; )
5571
5572
  switch (s) {
5572
5573
  case "hex":
5573
- return Bn(this, n, a, o);
5574
+ return Mn(this, n, a, o);
5574
5575
  case "utf8":
5575
5576
  case "utf-8":
5576
- return Mn(this, n, a, o);
5577
+ return Rn(this, n, a, o);
5577
5578
  case "ascii":
5578
5579
  case "latin1":
5579
5580
  case "binary":
5580
- return Rn(this, n, a, o);
5581
- case "base64":
5582
5581
  return qn(this, n, a, o);
5582
+ case "base64":
5583
+ return Nn(this, n, a, o);
5583
5584
  case "ucs2":
5584
5585
  case "ucs-2":
5585
5586
  case "utf16le":
5586
5587
  case "utf-16le":
5587
- return Nn(this, n, a, o);
5588
+ return Un(this, n, a, o);
5588
5589
  default:
5589
5590
  if (g)
5590
5591
  throw new TypeError("Unknown encoding: " + s);
@@ -5596,7 +5597,7 @@ Ue.write = function(e, t, r, u, l, d) {
5596
5597
  data: Array.prototype.slice.call(this._arr || this, 0)
5597
5598
  };
5598
5599
  };
5599
- function Un(i, n, a) {
5600
+ function On(i, n, a) {
5600
5601
  return n === 0 && a === i.length ? t.fromByteArray(i) : t.fromByteArray(i.slice(n, a));
5601
5602
  }
5602
5603
  function Ve(i, n, a) {
@@ -5624,10 +5625,10 @@ Ue.write = function(e, t, r, u, l, d) {
5624
5625
  }
5625
5626
  g === null ? (g = 65533, w = 1) : g > 65535 && (g -= 65536, o.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), o.push(g), s += w;
5626
5627
  }
5627
- return On(o);
5628
+ return Dn(o);
5628
5629
  }
5629
5630
  const Ke = 4096;
5630
- function On(i) {
5631
+ function Dn(i) {
5631
5632
  const n = i.length;
5632
5633
  if (n <= Ke)
5633
5634
  return String.fromCharCode.apply(String, i);
@@ -5639,29 +5640,29 @@ Ue.write = function(e, t, r, u, l, d) {
5639
5640
  );
5640
5641
  return a;
5641
5642
  }
5642
- function Dn(i, n, a) {
5643
+ function Fn(i, n, a) {
5643
5644
  let o = "";
5644
5645
  a = Math.min(i.length, a);
5645
5646
  for (let s = n; s < a; ++s)
5646
5647
  o += String.fromCharCode(i[s] & 127);
5647
5648
  return o;
5648
5649
  }
5649
- function Fn(i, n, a) {
5650
+ function Vn(i, n, a) {
5650
5651
  let o = "";
5651
5652
  a = Math.min(i.length, a);
5652
5653
  for (let s = n; s < a; ++s)
5653
5654
  o += String.fromCharCode(i[s]);
5654
5655
  return o;
5655
5656
  }
5656
- function Vn(i, n, a) {
5657
+ function Kn(i, n, a) {
5657
5658
  const o = i.length;
5658
5659
  (!n || n < 0) && (n = 0), (!a || a < 0 || a > o) && (a = o);
5659
5660
  let s = "";
5660
5661
  for (let _ = n; _ < a; ++_)
5661
- s += Yn[i[_]];
5662
+ s += Xn[i[_]];
5662
5663
  return s;
5663
5664
  }
5664
- function Kn(i, n, a) {
5665
+ function $n(i, n, a) {
5665
5666
  const o = i.slice(n, a);
5666
5667
  let s = "";
5667
5668
  for (let _ = 0; _ < o.length - 1; _ += 2)
@@ -5972,7 +5973,7 @@ Ue.write = function(e, t, r, u, l, d) {
5972
5973
  n = `_${i.slice(a - 3, a)}${n}`;
5973
5974
  return `${i.slice(0, a)}${n}`;
5974
5975
  }
5975
- function $n(i, n, a) {
5976
+ function Hn(i, n, a) {
5976
5977
  re(n, "offset"), (i[n] === void 0 || i[n + a] === void 0) && ge(n, i.length - (a + 1));
5977
5978
  }
5978
5979
  function Xe(i, n, a, o, s, _) {
@@ -5981,7 +5982,7 @@ Ue.write = function(e, t, r, u, l, d) {
5981
5982
  let w;
5982
5983
  throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${g} and < 2${g} ** ${(_ + 1) * 8}${g}` : w = `>= -(2${g} ** ${(_ + 1) * 8 - 1}${g}) and < 2 ** ${(_ + 1) * 8 - 1}${g}` : w = `>= ${n}${g} and <= ${a}${g}`, new oe.ERR_OUT_OF_RANGE("value", w, i);
5983
5984
  }
5984
- $n(o, s, _);
5985
+ Hn(o, s, _);
5985
5986
  }
5986
5987
  function re(i, n) {
5987
5988
  if (typeof i != "number")
@@ -5994,9 +5995,9 @@ Ue.write = function(e, t, r, u, l, d) {
5994
5995
  i
5995
5996
  );
5996
5997
  }
5997
- const Hn = /[^+/0-9A-Za-z-_]/g;
5998
- function Qn(i) {
5999
- if (i = i.split("=")[0], i = i.trim().replace(Hn, ""), i.length < 2)
5998
+ const Qn = /[^+/0-9A-Za-z-_]/g;
5999
+ function Gn(i) {
6000
+ if (i = i.split("=")[0], i = i.trim().replace(Qn, ""), i.length < 2)
6000
6001
  return "";
6001
6002
  for (; i.length % 4 !== 0; )
6002
6003
  i = i + "=";
@@ -6061,13 +6062,13 @@ Ue.write = function(e, t, r, u, l, d) {
6061
6062
  }
6062
6063
  return _;
6063
6064
  }
6064
- function Gn(i) {
6065
+ function Wn(i) {
6065
6066
  const n = [];
6066
6067
  for (let a = 0; a < i.length; ++a)
6067
6068
  n.push(i.charCodeAt(a) & 255);
6068
6069
  return n;
6069
6070
  }
6070
- function Wn(i, n) {
6071
+ function Yn(i, n) {
6071
6072
  let a, o, s;
6072
6073
  const _ = [];
6073
6074
  for (let g = 0; g < i.length && !((n -= 2) < 0); ++g)
@@ -6075,7 +6076,7 @@ Ue.write = function(e, t, r, u, l, d) {
6075
6076
  return _;
6076
6077
  }
6077
6078
  function Ze(i) {
6078
- return t.toByteArray(Qn(i));
6079
+ return t.toByteArray(Gn(i));
6079
6080
  }
6080
6081
  function fe(i, n, a, o) {
6081
6082
  let s;
@@ -6089,7 +6090,7 @@ Ue.write = function(e, t, r, u, l, d) {
6089
6090
  function xe(i) {
6090
6091
  return i !== i;
6091
6092
  }
6092
- const Yn = function() {
6093
+ const Xn = function() {
6093
6094
  const i = "0123456789abcdef", n = new Array(256);
6094
6095
  for (let a = 0; a < 16; ++a) {
6095
6096
  const o = a * 16;
@@ -6099,13 +6100,13 @@ Ue.write = function(e, t, r, u, l, d) {
6099
6100
  return n;
6100
6101
  }();
6101
6102
  function J(i) {
6102
- return typeof BigInt > "u" ? Xn : i;
6103
+ return typeof BigInt > "u" ? Zn : i;
6103
6104
  }
6104
- function Xn() {
6105
+ function Zn() {
6105
6106
  throw new Error("BigInt not supported");
6106
6107
  }
6107
- })(bn);
6108
- const Mt = bn.Buffer, Ce = {
6108
+ })(vn);
6109
+ const Mt = vn.Buffer, Ce = {
6109
6110
  data() {
6110
6111
  return {
6111
6112
  code_verifier: "",
@@ -6231,7 +6232,7 @@ const Mt = bn.Buffer, Ce = {
6231
6232
  }
6232
6233
  }, qt = {
6233
6234
  name: "AuthLogin",
6234
- mixins: [hn, fn, kn, we, ze, Ce, O, Rt],
6235
+ mixins: [fn, kn, bn, we, ze, Ce, O, Rt],
6235
6236
  props: {
6236
6237
  isModal: {
6237
6238
  type: Boolean,
@@ -6553,9 +6554,9 @@ function ja(e, t, r, u, l, d) {
6553
6554
  ]))
6554
6555
  ], 36);
6555
6556
  }
6556
- const yn = /* @__PURE__ */ $(qt, [["render", ja]]), xa = {
6557
+ const wn = /* @__PURE__ */ $(qt, [["render", ja]]), xa = {
6557
6558
  name: "AuthRegister",
6558
- mixins: [hn, fn, kn, we, O],
6559
+ mixins: [fn, kn, bn, we, O],
6559
6560
  props: {
6560
6561
  isModal: {
6561
6562
  type: Boolean,
@@ -6849,7 +6850,7 @@ function Ci(e, t, r, u, l, d) {
6849
6850
  ]))
6850
6851
  ], 36);
6851
6852
  }
6852
- const wn = /* @__PURE__ */ $(xa, [["render", Ci]]), Si = {
6853
+ const zn = /* @__PURE__ */ $(xa, [["render", Ci]]), Si = {
6853
6854
  name: "AuthVerify",
6854
6855
  mixins: [O],
6855
6856
  props: {
@@ -7038,7 +7039,7 @@ function Zi(e, t, r, u, l, d) {
7038
7039
  ]))
7039
7040
  ], 36);
7040
7041
  }
7041
- const zn = /* @__PURE__ */ $(Si, [["render", Zi], ["__scopeId", "data-v-af1531aa"]]), Ji = {
7042
+ const Ln = /* @__PURE__ */ $(Si, [["render", Zi], ["__scopeId", "data-v-af1531aa"]]), Ji = {
7042
7043
  name: "AuthReset",
7043
7044
  mixins: [O],
7044
7045
  data() {
@@ -7270,7 +7271,7 @@ function Ro(e, t, r, u, l, d) {
7270
7271
  ])
7271
7272
  ], 32));
7272
7273
  }
7273
- const Ln = /* @__PURE__ */ $(Ji, [["render", Ro], ["__scopeId", "data-v-4f85b89a"]]), qo = {
7274
+ const Cn = /* @__PURE__ */ $(Ji, [["render", Ro], ["__scopeId", "data-v-4f85b89a"]]), qo = {
7274
7275
  name: "AuthCallback",
7275
7276
  mixins: [ze, Ce, O],
7276
7277
  data() {
@@ -7311,7 +7312,7 @@ function Fo(e, t, r, u, l, d) {
7311
7312
  ])) : (f(), k("h4", Do, y(e.ssoLang[this.appLanguage].please_wait), 1))
7312
7313
  ]);
7313
7314
  }
7314
- const Cn = /* @__PURE__ */ $(qo, [["render", Fo]]), Vo = {
7315
+ const Sn = /* @__PURE__ */ $(qo, [["render", Fo]]), Vo = {
7315
7316
  name: "ModalOverlay",
7316
7317
  mixins: [O],
7317
7318
  data() {
@@ -7342,7 +7343,7 @@ function Ko(e, t, r, u, l, d) {
7342
7343
  onClick: t[0] || (t[0] = (...h) => d.toggleEmit && d.toggleEmit(...h))
7343
7344
  }, null, 2);
7344
7345
  }
7345
- const Sn = /* @__PURE__ */ $(Vo, [["render", Ko], ["__scopeId", "data-v-a128c2fa"]]), $o = {
7346
+ const Tn = /* @__PURE__ */ $(Vo, [["render", Ko], ["__scopeId", "data-v-a128c2fa"]]), $o = {
7346
7347
  name: "SSO",
7347
7348
  mixins: [we, ze, Ce, O],
7348
7349
  data() {
@@ -7436,7 +7437,7 @@ function er(e, t, r, u, l, d) {
7436
7437
  ])
7437
7438
  ], 34);
7438
7439
  }
7439
- const Tn = /* @__PURE__ */ $($o, [["render", er], ["__scopeId", "data-v-11f19a09"]]), nr = {
7440
+ const En = /* @__PURE__ */ $($o, [["render", er], ["__scopeId", "data-v-11f19a09"]]), nr = {
7440
7441
  name: "SSOPick",
7441
7442
  mixins: [we, ze, Ce, O],
7442
7443
  data() {
@@ -7538,7 +7539,7 @@ function mr(e, t, r, u, l, d) {
7538
7539
  ])) : S("", !0)
7539
7540
  ], 34);
7540
7541
  }
7541
- const En = /* @__PURE__ */ $(nr, [["render", mr], ["__scopeId", "data-v-4f821f65"]]), gr = {
7542
+ const In = /* @__PURE__ */ $(nr, [["render", mr], ["__scopeId", "data-v-4f821f65"]]), gr = {
7542
7543
  name: "LinkIcon",
7543
7544
  mixins: [O],
7544
7545
  props: {
@@ -7783,7 +7784,7 @@ function Er(e, t, r, u, l, d) {
7783
7784
  }, null, 8, ["data"])
7784
7785
  ], 2);
7785
7786
  }
7786
- const In = /* @__PURE__ */ $(zr, [["render", Er], ["__scopeId", "data-v-34a6b7b2"]]);
7787
+ const An = /* @__PURE__ */ $(zr, [["render", Er], ["__scopeId", "data-v-34a6b7b2"]]);
7787
7788
  var Ir = { 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 };
7788
7789
  const Ar = { id: "ssoapp" }, Pr = {
7789
7790
  key: 0,
@@ -7823,16 +7824,16 @@ const Ar = { id: "ssoapp" }, Pr = {
7823
7824
  };
7824
7825
  },
7825
7826
  components: {
7826
- Language: In,
7827
- SSOPick: En,
7828
- SSO: Tn,
7829
- ModalOverlay: Sn,
7830
- AuthCallback: Cn,
7831
- AuthReset: Ln,
7832
- AuthVerify: zn,
7833
- AuthRegister: wn,
7834
- AuthLogin: yn,
7835
- AuthWelcome: gn
7827
+ Language: An,
7828
+ SSOPick: In,
7829
+ SSO: En,
7830
+ ModalOverlay: Tn,
7831
+ AuthCallback: Sn,
7832
+ AuthReset: Cn,
7833
+ AuthVerify: Ln,
7834
+ AuthRegister: zn,
7835
+ AuthLogin: wn,
7836
+ AuthWelcome: hn
7836
7837
  },
7837
7838
  props: {
7838
7839
  view: {
@@ -7893,20 +7894,20 @@ const Ar = { id: "ssoapp" }, Pr = {
7893
7894
  }, [
7894
7895
  c("span", Br, y(t.appLanguage.toUpperCase()), 1)
7895
7896
  ])) : S("", !0),
7896
- P(Sn),
7897
- P(In),
7898
7897
  P(Tn),
7898
+ P(An),
7899
7899
  P(En),
7900
- t.initialized && t.renderView === "AuthWelcome" ? (f(), X(gn, { key: 2 })) : t.initialized && t.renderView === "AuthLogin" ? (f(), X(yn, {
7900
+ P(In),
7901
+ t.initialized && t.renderView === "AuthWelcome" ? (f(), X(hn, { key: 2 })) : t.initialized && t.renderView === "AuthLogin" ? (f(), X(wn, {
7901
7902
  key: 3,
7902
7903
  isModal: e.isModal
7903
- }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthRegister" ? (f(), X(wn, {
7904
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthRegister" ? (f(), X(zn, {
7904
7905
  key: 4,
7905
7906
  isModal: e.isModal
7906
- }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthVerify" ? (f(), X(zn, {
7907
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthVerify" ? (f(), X(Ln, {
7907
7908
  key: 5,
7908
7909
  isModal: e.isModal
7909
- }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthReset" ? (f(), X(Ln, { key: 6 })) : t.initialized && t.renderView === "AuthCallback" ? (f(), X(Cn, { key: 7 })) : (f(), X(nt(tt), { key: 8 })),
7910
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthReset" ? (f(), X(Cn, { key: 6 })) : t.initialized && t.renderView === "AuthCallback" ? (f(), X(Sn, { key: 7 })) : (f(), X(tt(at), { key: 8 })),
7910
7911
  c("div", Mr, [
7911
7912
  c("p", Rr, [
7912
7913
  c("span", qr, y(t.ssoLang[t.appLanguage].error), 1),
@@ -7925,12 +7926,12 @@ const Ar = { id: "ssoapp" }, Pr = {
7925
7926
  ])
7926
7927
  ]));
7927
7928
  }
7928
- }), rs = {
7929
+ }), os = {
7929
7930
  TapniAuth: an,
7930
7931
  install: (e, t) => {
7931
7932
  t && t.API_ROOT && me.setApiRootFromOptions(t.API_ROOT), e.component("TapniAuth", an);
7932
7933
  }
7933
7934
  };
7934
7935
  export {
7935
- rs as default
7936
+ os as default
7936
7937
  };