@tapni/auth 0.0.50 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ import { Browser as be } from "@capacitor/browser";
13
13
  import nt from "qr-code-styling";
14
14
  import { sanitizeUrl as tt } from "@braintree/sanitize-url";
15
15
  import "@tapni/capacitor-reactive-localstorage-vue3";
16
- const at = "0.0.50", z = (e, t = !1) => {
16
+ const at = "0.0.52", z = (e, t = !1) => {
17
17
  const r = at;
18
18
  let u = "https://api.tapni.co/v1/";
19
19
  location.hostname.includes("dev.") && (u = "https://api-dev.tapni.co/v1/");
@@ -41,7 +41,7 @@ const at = "0.0.50", z = (e, t = !1) => {
41
41
  }), e && e.token && !t) {
42
42
  const h = Je(e.token);
43
43
  if (h.exp - 30 < Math.floor(Date.now() / 1e3))
44
- return D.methods.refreshTokenAction(h).then(() => (d.headers = {
44
+ return O.methods.refreshTokenAction(h).then(() => (d.headers = {
45
45
  ...d.headers,
46
46
  Authorization: `Bearer ${e.token}`
47
47
  }, d));
@@ -155,7 +155,7 @@ const N = {
155
155
  return z(t).post("/saml/url", e);
156
156
  },
157
157
  exchangeAuthCode(e, t) {
158
- return z(t).post("/v1/users/auth-code", e);
158
+ return z(t).post("/users/auth-code", e);
159
159
  }
160
160
  }, xe = {
161
161
  getBySSOEmail(e, t) {
@@ -4328,7 +4328,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4328
4328
  }
4329
4329
  };
4330
4330
  var rt = { 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 };
4331
- const D = {
4331
+ const O = {
4332
4332
  mixins: [ot],
4333
4333
  data() {
4334
4334
  return {
@@ -4645,7 +4645,7 @@ const D = {
4645
4645
  return r;
4646
4646
  }, st = {
4647
4647
  name: "AuthWelcome",
4648
- mixins: [D],
4648
+ mixins: [O],
4649
4649
  data() {
4650
4650
  return {
4651
4651
  loading: !0
@@ -5098,8 +5098,8 @@ function Et(e) {
5098
5098
  var Me = {};
5099
5099
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
5100
5100
  Me.read = function(e, t, r, u, l) {
5101
- var d, h, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, O = e[t + x];
5102
- for (x += W, d = O & (1 << -p) - 1, O >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
5101
+ var d, h, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, D = e[t + x];
5102
+ for (x += W, d = D & (1 << -p) - 1, D >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
5103
5103
  ;
5104
5104
  for (h = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; h = h * 256 + e[t + x], x += W, p -= 8)
5105
5105
  ;
@@ -5107,18 +5107,18 @@ Me.read = function(e, t, r, u, l) {
5107
5107
  d = 1 - C;
5108
5108
  else {
5109
5109
  if (d === b)
5110
- return h ? NaN : (O ? -1 : 1) * (1 / 0);
5110
+ return h ? NaN : (D ? -1 : 1) * (1 / 0);
5111
5111
  h = h + Math.pow(2, u), d = d - C;
5112
5112
  }
5113
- return (O ? -1 : 1) * h * Math.pow(2, d - u);
5113
+ return (D ? -1 : 1) * h * Math.pow(2, d - u);
5114
5114
  };
5115
5115
  Me.write = function(e, t, r, u, l, d) {
5116
- var h, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, O = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
5117
- for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, h = p) : (h = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -h)) < 1 && (h--, b *= 2), h + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (h++, b /= 2), h + x >= p ? (m = 0, h = p) : h + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), h = h + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), h = 0)); l >= 8; e[r + O] = m & 255, O += ee, m /= 256, l -= 8)
5116
+ var h, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, D = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
5117
+ for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, h = p) : (h = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -h)) < 1 && (h--, b *= 2), h + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (h++, b /= 2), h + x >= p ? (m = 0, h = p) : h + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), h = h + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), h = 0)); l >= 8; e[r + D] = m & 255, D += ee, m /= 256, l -= 8)
5118
5118
  ;
5119
- for (h = h << l | m, C += l; C > 0; e[r + O] = h & 255, O += ee, h /= 256, C -= 8)
5119
+ for (h = h << l | m, C += l; C > 0; e[r + D] = h & 255, D += ee, h /= 256, C -= 8)
5120
5120
  ;
5121
- e[r + O - ee] |= Ce * 128;
5121
+ e[r + D - ee] |= Ce * 128;
5122
5122
  };
5123
5123
  /*!
5124
5124
  * The buffer module from node.js, for the browser.
@@ -5211,11 +5211,11 @@ Me.write = function(e, t, r, u, l, d) {
5211
5211
  if (i < 0)
5212
5212
  throw new RangeError('The value "' + i + '" is invalid for option "size"');
5213
5213
  }
5214
- function O(i, n, a) {
5214
+ function D(i, n, a) {
5215
5215
  return W(i), i <= 0 ? C(i) : n !== void 0 ? typeof a == "string" ? C(i).fill(n, a) : C(i).fill(n) : C(i);
5216
5216
  }
5217
5217
  p.alloc = function(i, n, a) {
5218
- return O(i, n, a);
5218
+ return D(i, n, a);
5219
5219
  };
5220
5220
  function ee(i) {
5221
5221
  return W(i), C(i < 0 ? 0 : Ee(i) | 0);
@@ -5619,16 +5619,16 @@ Me.write = function(e, t, r, u, l, d) {
5619
5619
  }
5620
5620
  return Mn(o);
5621
5621
  }
5622
- const De = 4096;
5622
+ const Oe = 4096;
5623
5623
  function Mn(i) {
5624
5624
  const n = i.length;
5625
- if (n <= De)
5625
+ if (n <= Oe)
5626
5626
  return String.fromCharCode.apply(String, i);
5627
5627
  let a = "", o = 0;
5628
5628
  for (; o < n; )
5629
5629
  a += String.fromCharCode.apply(
5630
5630
  String,
5631
- i.slice(o, o += De)
5631
+ i.slice(o, o += Oe)
5632
5632
  );
5633
5633
  return a;
5634
5634
  }
@@ -5792,7 +5792,7 @@ Me.write = function(e, t, r, u, l, d) {
5792
5792
  }, p.prototype.writeUint32BE = p.prototype.writeUInt32BE = function(n, a, o) {
5793
5793
  return n = +n, a = a >>> 0, o || q(this, n, a, 4, 4294967295, 0), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
5794
5794
  };
5795
- function Oe(i, n, a, o, s) {
5795
+ function De(i, n, a, o, s) {
5796
5796
  Qe(n, o, s, i, a, 7);
5797
5797
  let _ = Number(n & BigInt(4294967295));
5798
5798
  i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _;
@@ -5807,7 +5807,7 @@ Me.write = function(e, t, r, u, l, d) {
5807
5807
  return i[a + 3] = g, g = g >> 8, i[a + 2] = g, g = g >> 8, i[a + 1] = g, g = g >> 8, i[a] = g, a + 8;
5808
5808
  }
5809
5809
  p.prototype.writeBigUInt64LE = Z(function(n, a = 0) {
5810
- return Oe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5810
+ return De(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5811
5811
  }), p.prototype.writeBigUInt64BE = Z(function(n, a = 0) {
5812
5812
  return Fe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5813
5813
  }), p.prototype.writeIntLE = function(n, a, o, s) {
@@ -5839,7 +5839,7 @@ Me.write = function(e, t, r, u, l, d) {
5839
5839
  }, p.prototype.writeInt32BE = function(n, a, o) {
5840
5840
  return n = +n, a = a >>> 0, o || q(this, n, a, 4, 2147483647, -2147483648), n < 0 && (n = 4294967295 + n + 1), this[a] = n >>> 24, this[a + 1] = n >>> 16, this[a + 2] = n >>> 8, this[a + 3] = n & 255, a + 4;
5841
5841
  }, p.prototype.writeBigInt64LE = Z(function(n, a = 0) {
5842
- return Oe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5842
+ return De(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5843
5843
  }), p.prototype.writeBigInt64BE = Z(function(n, a = 0) {
5844
5844
  return Fe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5845
5845
  });
@@ -5965,7 +5965,7 @@ Me.write = function(e, t, r, u, l, d) {
5965
5965
  n = `_${i.slice(a - 3, a)}${n}`;
5966
5966
  return `${i.slice(0, a)}${n}`;
5967
5967
  }
5968
- function Dn(i, n, a) {
5968
+ function On(i, n, a) {
5969
5969
  oe(n, "offset"), (i[n] === void 0 || i[n + a] === void 0) && _e(n, i.length - (a + 1));
5970
5970
  }
5971
5971
  function Qe(i, n, a, o, s, _) {
@@ -5974,7 +5974,7 @@ Me.write = function(e, t, r, u, l, d) {
5974
5974
  let w;
5975
5975
  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 ie.ERR_OUT_OF_RANGE("value", w, i);
5976
5976
  }
5977
- Dn(o, s, _);
5977
+ On(o, s, _);
5978
5978
  }
5979
5979
  function oe(i, n) {
5980
5980
  if (typeof i != "number")
@@ -5987,9 +5987,9 @@ Me.write = function(e, t, r, u, l, d) {
5987
5987
  i
5988
5988
  );
5989
5989
  }
5990
- const On = /[^+/0-9A-Za-z-_]/g;
5990
+ const Dn = /[^+/0-9A-Za-z-_]/g;
5991
5991
  function Fn(i) {
5992
- if (i = i.split("=")[0], i = i.trim().replace(On, ""), i.length < 2)
5992
+ if (i = i.split("=")[0], i = i.trim().replace(Dn, ""), i.length < 2)
5993
5993
  return "";
5994
5994
  for (; i.length % 4 !== 0; )
5995
5995
  i = i + "=";
@@ -6224,7 +6224,7 @@ const It = mn.Buffer, ze = {
6224
6224
  }
6225
6225
  }, Pt = {
6226
6226
  name: "AuthLogin",
6227
- mixins: [pn, un, _n, ve, ye, ze, D, At],
6227
+ mixins: [pn, un, _n, ve, ye, ze, O, At],
6228
6228
  props: {
6229
6229
  isModal: {
6230
6230
  type: Boolean,
@@ -6317,7 +6317,7 @@ const It = mn.Buffer, ze = {
6317
6317
  class: "responsive-image",
6318
6318
  style: { width: "50%" }
6319
6319
  })
6320
- ], -1), Ut = ["placeholder"], Dt = /* @__PURE__ */ c("em", null, null, -1), Ot = { class: "page-login-field half-bottom" }, Ft = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6320
+ ], -1), Ut = ["placeholder"], Ot = /* @__PURE__ */ c("em", null, null, -1), Dt = { class: "page-login-field half-bottom" }, Ft = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6321
6321
  /* @__PURE__ */ c("img", {
6322
6322
  src: "https://cdn.tapni.co/icons/padlock.png",
6323
6323
  class: "responsive-image",
@@ -6414,9 +6414,9 @@ function Sa(e, t, r, u, l, d) {
6414
6414
  }, null, 40, Ut), [
6415
6415
  [ae, l.emailOrUsername]
6416
6416
  ]),
6417
- Dt
6417
+ Ot
6418
6418
  ]),
6419
- c("div", Ot, [
6419
+ c("div", Dt, [
6420
6420
  Ft,
6421
6421
  B(c("input", {
6422
6422
  "onUpdate:modelValue": t[3] || (t[3] = (m) => l.password = m),
@@ -6548,7 +6548,7 @@ function Sa(e, t, r, u, l, d) {
6548
6548
  }
6549
6549
  const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
6550
6550
  name: "AuthRegister",
6551
- mixins: [pn, un, _n, ve, D],
6551
+ mixins: [pn, un, _n, ve, O],
6552
6552
  props: {
6553
6553
  isModal: {
6554
6554
  type: Boolean,
@@ -6630,13 +6630,13 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
6630
6630
  class: "responsive-image",
6631
6631
  style: { width: "60%" }
6632
6632
  })
6633
- ], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" }, Da = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6633
+ ], -1), qa = ["placeholder"], Na = /* @__PURE__ */ c("em", null, null, -1), Ua = { class: "page-login-field half-top" }, Oa = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6634
6634
  /* @__PURE__ */ c("img", {
6635
6635
  src: "https://cdn.tapni.co/icons/user.png",
6636
6636
  class: "responsive-image",
6637
6637
  style: { width: "50%" }
6638
6638
  })
6639
- ], -1), Oa = ["placeholder", "disabled"], Fa = /* @__PURE__ */ c("em", null, null, -1), Va = { class: "page-login-field half-top half-bottom" }, Ka = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6639
+ ], -1), Da = ["placeholder", "disabled"], Fa = /* @__PURE__ */ c("em", null, null, -1), Va = { class: "page-login-field half-top half-bottom" }, Ka = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6640
6640
  /* @__PURE__ */ c("img", {
6641
6641
  src: "https://cdn.tapni.co/icons/padlock.png",
6642
6642
  class: "responsive-image",
@@ -6720,7 +6720,7 @@ function bi(e, t, r, u, l, d) {
6720
6720
  Na
6721
6721
  ]),
6722
6722
  c("div", Ua, [
6723
- Da,
6723
+ Oa,
6724
6724
  B(c("input", {
6725
6725
  "onUpdate:modelValue": t[3] || (t[3] = (m) => l.username = m),
6726
6726
  onKeydown: t[4] || (t[4] = te(U(() => {
@@ -6734,7 +6734,7 @@ function bi(e, t, r, u, l, d) {
6734
6734
  required: "",
6735
6735
  disabled: l.usernameRegister,
6736
6736
  class: R({ "input-disabled": l.usernameRegister })
6737
- }, null, 42, Oa), [
6737
+ }, null, 42, Da), [
6738
6738
  [ae, l.username]
6739
6739
  ]),
6740
6740
  Fa
@@ -6844,7 +6844,7 @@ function bi(e, t, r, u, l, d) {
6844
6844
  }
6845
6845
  const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
6846
6846
  name: "AuthVerify",
6847
- mixins: [D],
6847
+ mixins: [O],
6848
6848
  props: {
6849
6849
  isModal: {
6850
6850
  type: Boolean,
@@ -6937,7 +6937,7 @@ const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
6937
6937
  }, Mi = {
6938
6938
  key: 1,
6939
6939
  class: "button--loading button__loader"
6940
- }, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Di = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Oi = {
6940
+ }, Ri = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), qi = { class: "close-text center-text half-top color-black" }, Ni = ["innerHTML"], Ui = /* @__PURE__ */ K(() => /* @__PURE__ */ c("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), Oi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), Di = {
6941
6941
  key: 1,
6942
6942
  class: "page-login-links"
6943
6943
  }, Fi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), Vi = { class: "forgot center-text pointer small-top" }, Ki = /* @__PURE__ */ K(() => /* @__PURE__ */ c("br", null, null, -1)), $i = /* @__PURE__ */ K(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1));
@@ -6996,7 +6996,7 @@ function Hi(e, t, r, u, l, d) {
6996
6996
  }, null, 8, Ni),
6997
6997
  Ui
6998
6998
  ]),
6999
- Di,
6999
+ Oi,
7000
7000
  r.isModal ? (f(), k("div", {
7001
7001
  key: 2,
7002
7002
  class: "page-login-links",
@@ -7008,7 +7008,7 @@ function Hi(e, t, r, u, l, d) {
7008
7008
  I(" " + y(e.ssoLang[this.appLanguage].create_new_account), 1)
7009
7009
  ]),
7010
7010
  $i
7011
- ])) : (f(), k("div", Oi, [
7011
+ ])) : (f(), k("div", Di, [
7012
7012
  j(h, {
7013
7013
  class: "create float-right",
7014
7014
  to: "/register"
@@ -7033,7 +7033,7 @@ function Hi(e, t, r, u, l, d) {
7033
7033
  }
7034
7034
  const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa"]]), Qi = {
7035
7035
  name: "AuthReset",
7036
- mixins: [D],
7036
+ mixins: [O],
7037
7037
  data() {
7038
7038
  return {
7039
7039
  loading: !0,
@@ -7265,7 +7265,7 @@ function Ao(e, t, r, u, l, d) {
7265
7265
  }
7266
7266
  const bn = /* @__PURE__ */ $(Qi, [["render", Ao], ["__scopeId", "data-v-4f85b89a"]]), Po = {
7267
7267
  name: "AuthCallback",
7268
- mixins: [ye, ze, D],
7268
+ mixins: [ye, ze, O],
7269
7269
  data() {
7270
7270
  return {};
7271
7271
  },
@@ -7306,7 +7306,7 @@ function Ro(e, t, r, u, l, d) {
7306
7306
  }
7307
7307
  const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
7308
7308
  name: "ModalOverlay",
7309
- mixins: [D],
7309
+ mixins: [O],
7310
7310
  data() {
7311
7311
  return {
7312
7312
  toggle: !1
@@ -7337,7 +7337,7 @@ function No(e, t, r, u, l, d) {
7337
7337
  }
7338
7338
  const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
7339
7339
  name: "SSO",
7340
- mixins: [ve, ye, ze, D],
7340
+ mixins: [ve, ye, ze, O],
7341
7341
  data() {
7342
7342
  return {
7343
7343
  toggle: !1,
@@ -7378,14 +7378,14 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
7378
7378
  this.toggle = !this.toggle;
7379
7379
  }
7380
7380
  }
7381
- }, Do = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Oo = /* @__PURE__ */ Do(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7381
+ }, Oo = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Do = /* @__PURE__ */ Oo(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7382
7382
  /* @__PURE__ */ c("img", {
7383
7383
  src: "https://cdn.tapni.co/icons/down-arrow.png",
7384
7384
  class: "responsive-image",
7385
7385
  style: { width: "45%" }
7386
7386
  })
7387
7387
  ], -1)), Fo = [
7388
- Oo
7388
+ Do
7389
7389
  ], Vo = { class: "bold center-text color-black half-top half-bottom" }, Ko = ["placeholder"], $o = {
7390
7390
  type: "submit",
7391
7391
  class: "button black-button white-button button-full",
@@ -7431,7 +7431,7 @@ function Go(e, t, r, u, l, d) {
7431
7431
  }
7432
7432
  const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09"]]), Wo = {
7433
7433
  name: "SSOPick",
7434
- mixins: [ve, ye, ze, D],
7434
+ mixins: [ve, ye, ze, O],
7435
7435
  data() {
7436
7436
  return {
7437
7437
  toggle: !1,
@@ -7533,7 +7533,7 @@ function cr(e, t, r, u, l, d) {
7533
7533
  }
7534
7534
  const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65"]]), lr = {
7535
7535
  name: "LinkIcon",
7536
- mixins: [D],
7536
+ mixins: [O],
7537
7537
  props: {
7538
7538
  linkAdding: {
7539
7539
  type: Boolean,
@@ -7666,7 +7666,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
7666
7666
  GOOGLE_ANALYTICS_ID: ""
7667
7667
  }, fr = {
7668
7668
  name: "Language",
7669
- mixins: [D],
7669
+ mixins: [O],
7670
7670
  components: { LinkIcon: gr },
7671
7671
  data() {
7672
7672
  return {
@@ -7809,7 +7809,7 @@ const Lr = { id: "ssoapp" }, Cr = {
7809
7809
  Rr
7810
7810
  ], Nr = {
7811
7811
  name: "TapniAuth",
7812
- mixins: [D],
7812
+ mixins: [O],
7813
7813
  data() {
7814
7814
  return {
7815
7815
  isSetup: !1
@@ -7920,8 +7920,8 @@ const Lr = { id: "ssoapp" }, Cr = {
7920
7920
  }
7921
7921
  }), ns = {
7922
7922
  TapniAuth: Ze,
7923
- install: (e) => {
7924
- e.component("TapniAuth", Ze);
7923
+ install: (e, t) => {
7924
+ t && t.API_ROOT && (e.config.globalProperties.$API_ROOT = t.API_ROOT), e.component("TapniAuth", Ze);
7925
7925
  }
7926
7926
  };
7927
7927
  export {
@@ -1,4 +1,4 @@
1
- (function(t,W){typeof exports=="object"&&typeof module<"u"?module.exports=W(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@tapni/capacitor-reactive-localstorage-vue3"],W):(t=typeof globalThis<"u"?globalThis:t||self,t.TapniAuth=W(t.Vue,t.vueRouter,t.to,t.axios,t.jwtDecode,t.device,t.core,t.capacitorGoogleAuth,t.facebookLogin,t.appleSignIn,t.capacitorPluginMsauth,t.browser,t.QRCodeStyling,t.sanitizeUrl))})(this,function(t,W,w,se,ke,Z,Y,ye,ot,rt,st,J,ct,lt){"use strict";const dt="0.0.50",b=(e,a=!1)=>{const s=dt;let u="https://api.tapni.co/v1/";location.hostname.includes("dev.")&&(u="https://api-dev.tapni.co/v1/");let l=se.create({baseURL:u,headers:{...e?{Authorization:`Bearer ${e.token}`}:{},"X-Client-Name":"sso-"+s.platform,"X-Client-Version":s.version}});return l.interceptors.request.use(async function(d){if(["post","put","delete"].includes(d.method.toLowerCase())?d.data={...d.data,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}:d.method.toLowerCase()==="get"&&(d.params={...d.params,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}),e&&e.token&&!a){const h=ke.jwtDecode(e.token);if(h.exp-30<Math.floor(Date.now()/1e3))return B.methods.refreshTokenAction(h).then(()=>(d.headers={...d.headers,Authorization:`Bearer ${e.token}`},d))}return d}),l},K={getMe(){return b(storage).get("/users/me")},getByUsername(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/${e.username}`,{params:u,headers:{"X-Referer":s}})},getByNumber(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/tag/${e.serial}`,{params:u,headers:{"X-Referer":s}})},save(e,a){return b(a).put("/users",e)},newPassword(e,a){return b(a).put("/users/new-password",e)},connect(e,a){return b(a).post("/users/connect",e)},eventLog(e,a){return b(a).post("/users/log",e)},deleteAccount(e,a){return b(a).post("/users/profile/delete",e)},registerDevice(e,a){return b(a).post("/users/device/register",e)},addFcmToken(e,a){return b(a).post("/users/device/fcm",e)},loginUsingQR(e,a){return b(a).post("/users/qr/login",e)}},be={registerDevice(e,a){return b(a).post("/devices/add",e)},addFcmToken(e,a){return b(a).post("/devices/fcm/add",e)}};let P;Z.Device.getId().then(e=>P=e.uuid);const I={register(e,a){return e.device_id=P,b(a).post("/users/register",e)},login(e,a){return e.device_id=P,b(a).post("/users/login",e)},logout(e,a){return e.device_id=P,b(a).post("/users/logout",e)},refreshToken(e,a){return b(a,!0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`)},getLoggedInAccounts(e,a){return b(a).post("/users/tokens",e)},sendResetEmail(e,a){return e.device_id=P,b(a).post("/users/reset",e)},changePassword(e,a){return b(a).put("/users/password",e,{headers:{Authorization:"Bearer "+e.token}})},verify(e,a){return b(a).get("/users/verify?c="+e.code+"&e="+e.email+"&captchatoken="+e.captchaToken)},googleUrl(e){return b(e).get("/users/google/url")},google(e,a){return e.device_id=P,b(a).post("/users/google",e)},facebook(e,a){return e.device_id=P,b(a).post("/users/facebook",e)},googleSDK(e,a){return e.device_id=P,b(a).post("/users/google/sdk",e)},facebookSDK(e,a){return e.device_id=P,b(a).post("/users/facebook/sdk",e)},appleSDK(e,a){return e.device_id=P,b(a).post("/users/apple/sdk",e)},microsoftSDK(e,a){return e.device_id=P,b(a).post("/users/microsoft/sdk",e)},oktaSDK(e,a){return e.device_id=P,b(a).post("/users/okta/sdk",e)},samlLoginUrl(e,a){return b(a).post("/saml/url",e)},exchangeAuthCode(e,a){return b(a).post("/v1/users/auth-code",e)}},ce={getBySSOEmail(e,a){return b(a).get(`/company/sso/${e}`)},acceptCompanyInvitation(e,a){return b(a).get(`/users/invitation?ic=${e}`)},qrCodePooling(e,a){return b(a).post("/company/login/qr",e)}},ee=t.reactive(new Map),k={$on(e,a){let s=ee.get(e);s||(s=new Set,ee.set(e,s)),s.add(a)},$emit(e,...a){const s=ee.get(e);if(s)for(const u of s)u(...a)},$off(e,a){const s=ee.get(e);s&&s.delete(a)}};t.readonly(k);const we={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
1
+ (function(t,W){typeof exports=="object"&&typeof module<"u"?module.exports=W(require("vue"),require("vue-router"),require("await-to-js"),require("axios"),require("jwt-decode"),require("@capacitor/device"),require("@capacitor/core"),require("@codetrix-studio/capacitor-google-auth"),require("@capacitor-community/facebook-login"),require("@capacitor-community/apple-sign-in"),require("@recognizebv/capacitor-plugin-msauth"),require("@capacitor/browser"),require("qr-code-styling"),require("@braintree/sanitize-url"),require("@tapni/capacitor-reactive-localstorage-vue3")):typeof define=="function"&&define.amd?define(["vue","vue-router","await-to-js","axios","jwt-decode","@capacitor/device","@capacitor/core","@codetrix-studio/capacitor-google-auth","@capacitor-community/facebook-login","@capacitor-community/apple-sign-in","@recognizebv/capacitor-plugin-msauth","@capacitor/browser","qr-code-styling","@braintree/sanitize-url","@tapni/capacitor-reactive-localstorage-vue3"],W):(t=typeof globalThis<"u"?globalThis:t||self,t.TapniAuth=W(t.Vue,t.vueRouter,t.to,t.axios,t.jwtDecode,t.device,t.core,t.capacitorGoogleAuth,t.facebookLogin,t.appleSignIn,t.capacitorPluginMsauth,t.browser,t.QRCodeStyling,t.sanitizeUrl))})(this,function(t,W,w,se,ke,Z,Y,ye,ot,rt,st,J,ct,lt){"use strict";const dt="0.0.52",b=(e,a=!1)=>{const s=dt;let u="https://api.tapni.co/v1/";location.hostname.includes("dev.")&&(u="https://api-dev.tapni.co/v1/");let l=se.create({baseURL:u,headers:{...e?{Authorization:`Bearer ${e.token}`}:{},"X-Client-Name":"sso-"+s.platform,"X-Client-Version":s.version}});return l.interceptors.request.use(async function(d){if(["post","put","delete"].includes(d.method.toLowerCase())?d.data={...d.data,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}:d.method.toLowerCase()==="get"&&(d.params={...d.params,...e?{lang:e.appLanguage,realm:e.realm||"app"}:{}}),e&&e.token&&!a){const h=ke.jwtDecode(e.token);if(h.exp-30<Math.floor(Date.now()/1e3))return P.methods.refreshTokenAction(h).then(()=>(d.headers={...d.headers,Authorization:`Bearer ${e.token}`},d))}return d}),l},K={getMe(){return b(storage).get("/users/me")},getByUsername(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/${e.username}`,{params:u,headers:{"X-Referer":s}})},getByNumber(e,a){let s=document.referrer||"",u=e.utmParams||{};return e.dontTap&&(u.dontTap=!0),b(a).get(`/users/tag/${e.serial}`,{params:u,headers:{"X-Referer":s}})},save(e,a){return b(a).put("/users",e)},newPassword(e,a){return b(a).put("/users/new-password",e)},connect(e,a){return b(a).post("/users/connect",e)},eventLog(e,a){return b(a).post("/users/log",e)},deleteAccount(e,a){return b(a).post("/users/profile/delete",e)},registerDevice(e,a){return b(a).post("/users/device/register",e)},addFcmToken(e,a){return b(a).post("/users/device/fcm",e)},loginUsingQR(e,a){return b(a).post("/users/qr/login",e)}},be={registerDevice(e,a){return b(a).post("/devices/add",e)},addFcmToken(e,a){return b(a).post("/devices/fcm/add",e)}};let B;Z.Device.getId().then(e=>B=e.uuid);const I={register(e,a){return e.device_id=B,b(a).post("/users/register",e)},login(e,a){return e.device_id=B,b(a).post("/users/login",e)},logout(e,a){return e.device_id=B,b(a).post("/users/logout",e)},refreshToken(e,a){return b(a,!0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`)},getLoggedInAccounts(e,a){return b(a).post("/users/tokens",e)},sendResetEmail(e,a){return e.device_id=B,b(a).post("/users/reset",e)},changePassword(e,a){return b(a).put("/users/password",e,{headers:{Authorization:"Bearer "+e.token}})},verify(e,a){return b(a).get("/users/verify?c="+e.code+"&e="+e.email+"&captchatoken="+e.captchaToken)},googleUrl(e){return b(e).get("/users/google/url")},google(e,a){return e.device_id=B,b(a).post("/users/google",e)},facebook(e,a){return e.device_id=B,b(a).post("/users/facebook",e)},googleSDK(e,a){return e.device_id=B,b(a).post("/users/google/sdk",e)},facebookSDK(e,a){return e.device_id=B,b(a).post("/users/facebook/sdk",e)},appleSDK(e,a){return e.device_id=B,b(a).post("/users/apple/sdk",e)},microsoftSDK(e,a){return e.device_id=B,b(a).post("/users/microsoft/sdk",e)},oktaSDK(e,a){return e.device_id=B,b(a).post("/users/okta/sdk",e)},samlLoginUrl(e,a){return b(a).post("/saml/url",e)},exchangeAuthCode(e,a){return b(a).post("/users/auth-code",e)}},ce={getBySSOEmail(e,a){return b(a).get(`/company/sso/${e}`)},acceptCompanyInvitation(e,a){return b(a).get(`/users/invitation?ic=${e}`)},qrCodePooling(e,a){return b(a).post("/company/login/qr",e)}},ee=t.reactive(new Map),k={$on(e,a){let s=ee.get(e);s||(s=new Set,ee.set(e,s)),s.add(a)},$emit(e,...a){const s=ee.get(e);if(s)for(const u of s)u(...a)},$off(e,a){const s=ee.get(e);s&&s.delete(a)}};t.readonly(k);const we={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
2
2
  so that we can know who you are.
3
3
  <br><br>Be exclusive.
4
4
  <br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
@@ -99,9 +99,9 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
99
99
  또는 궁금한 게 있으면,<br>
100
100
  저희에게 연락주세요`,referral_p5:"지금부터 돈을 벌기 시작하세요!",referral_p66:"제휴링크를 공유하고 돈을 벌어보세요!",referral_p6:`블로거, 인플루언서 또는 소셜 미디어 매니아라면 당사의 엠버서더 프로그램 에 완벽하게 적합합니다.
101
101
  브랜드를 홍보하고 할인 코드 또는 추천 링크를 사용하여 구입한 경우 20%의 수수료를 받으십시오.`,referral_p7:`탭니 엠버서더 프로그램에 등록하면 개인 추천 링크와 할인 코드가 발급됩니다.
102
- 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.com</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}},ut={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Y.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Y.Capacitor.getPlatform()==="ios"},isNative(){return Y.Capacitor.isNativePlatform()}},methods:{errorHandler(e){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},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(e){return e<10?"":e<=50?"🔥":e<=100?"💥":e<=300?"💎":e>300?"🚀":""},isEmpty(e){if(!e)return!0;for(let a in e)if(e.hasOwnProperty(a))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const a=document.createElement("textarea");a.value=e,a.setAttribute("readonly",""),a.style.position="absolute",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(a){return console.log(a),null}}}};var _t={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};const B={mixins:[ut],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:we.state,de:ve.state,es:Ee.state,fr:ze.state,it:Se.state,sr:Le.state,tr:Ce.state,cn:pt.state,kr:Te.state},display:"npm",redirect_uri:"https://t.link/callback/auth",response_type:"token",state:"",allowedOrigins:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com"]}},computed:{isLoggedIn(){return!!this.token&&this.token!==""&&this.token!=="null"},renderView(){return this.display==="redirect"?!1:this.view}},mounted(){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),k.$on("updateLang",this.updateLang),_t.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(e){const[a,s]=await w(K.eventLog(e,this.$storage));return a?this.errorHandler(a):s},async maintenance(){const[e,a]=await w(se.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(a){let s=a.data;typeof a.data=="string"&&(s=JSON.parse(a.data)),s.api&&s.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+s.api.msg)}},async getUser(e){if(e){let a,s;if(e.username?[a,s]=await w(K.getByUsername(e,this.$storage)):e.serial&&([a,s]=await w(K.getByNumber(e,this.$storage))),a)return this.errorHandler(a);if(s.data.success){if(!s.data.user&&s.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+s.data.showDemoProfile)}!s.data.user&&e.login&&this.logout(),this.registerLang(s.data.user?s.data.user.ssoLang:"en"),this.setUser(s.data.user)}}},async loginSetup(e){var a,s;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((s=(a=e.data)==null?void 0:a.data)==null?void 0:s.ssoLang)!==this.appLanguage&&k.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),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([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[a,s]=await w(I.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(a&&a.response&&a.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();s&&s.data?this.setToken(s.data.token):console.error("Invalid response setToken")},async login(e){const[a,s]=await w(I.login(e,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return this.display==="npm"&&(this.loginSetup({...s,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...s,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(a=>this.redirect_uri.startsWith(a)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(a=>{var s;(s=window.parent)==null||s.postMessage({code:e.data.auth_code,state:this.$route.query.state},a)}):this.display==="npm"&&(k.$emit("ssoEvent",{name:"setLoading",data:!0}),k.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(k.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[a,s]=await w(I.register(e,this.$storage));return a?this.errorHandler(a):s},async verify(e){const[a,s]=await w(I.verify(e,this.$storage));return a?this.errorHandler(a):s},async reset(e){const[a,s]=await w(I.sendResetEmail(e,this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){console.log({data:e});const[a,s]=await w(I.exchangeAuthCode(e,this.$storage));if(a)return console.log({err:a}),this.errorHandler(a);console.log(s),await this.loginSetup(s),await this.getLoggedInAccounts(),this.loginSuccess(s)},async changePassword(e){const[a,s]=await w(I.changePassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async newPassword(e){const[a,s]=await w(K.newPassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async deleteAccount(e){const[a,s]=await w(K.deleteAccount(e,this.$storage));return a?this.errorHandler(a):s.data.success},async registerDevice(){const e=await Z.Device.getId(),a=await Z.Device.getInfo();let s={device_id:e.uuid,platform:a.platform,device_info:{model:a.model,manufacturer:a.manufacturer,operatingSystem:a.operatingSystem,osVersion:a.osVersion,isVirtual:a.isVirtual,webViewVersion:a.webViewVersion}};const[u,l]=await w(be.registerDevice(s,this.$storage));return u?this.errorHandler(u):l},async addFcmToken(e){const[a,s]=await w(be.addFcmToken(e,this.$storage));return a?this.errorHandler(a):s},async acceptCompanyInvitation(e){const[a,s]=await w(ce.acceptCompanyInvitation(e,this.$storage));return a?this.errorHandler(a):s},async logout(e=!0){e&&I.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(a=>{this.loggedInAccounts[a].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[a].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[a].id),this.$storage.username=a,this.$storage.UserId=this.loggedInAccounts[a].id,this.getLoggedInAccounts(),this.$router.push("/"+a)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[a,s]=await w(ce.getBySSOEmail(e.email,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return s.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[a,s]=await w(I.getLoggedInAccounts({refreshTokens:e},this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.setLoggedInAccounts(s.data.accounts)},async loginUsingQR(e){const[a,s]=await w(K.loginUsingQR(e,this.$storage));return a?this.errorHandler(a):s.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(a=>{this.loggedInAccounts[a.username]=a}),k.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let a=this.getRefreshTokens();e&&!a.includes(e)?a.unshift(e):a=a.filter(s=>s!==this.refreshToken),a.length>=1?this.refreshToken=a[0]:this.refreshToken=e,this.$storage.refreshTokens=a.join(","),k.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,k.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},watch:{"$route.query":{handler:function(){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()},deep:!0}}},V=(e,a)=>{const s=e.__vccOpts||e;for(const[u,l]of a)s[u]=l;return s},mt={name:"AuthWelcome",mixins:[B],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(a=>{console.log("Play was interrupted:",a)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):k.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),k.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},Ie=e=>(t.pushScopeId("data-v-c5cb659c"),e=e(),t.popScopeId(),e),gt={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ht=["autoplay"],ft=[Ie(()=>t.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],kt={class:"bold full-top no-bottom center-text"},yt={class:"full-bottom half-top center-text color-black font-16"},bt={class:"page-login-links center-text"},wt=Ie(()=>t.createElementVNode("div",{class:"clear"},null,-1)),vt={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Et=[t.createStaticVNode('<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)];function zt(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",gt,[t.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},ft,8,ht),t.createElementVNode("h1",kt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),t.createElementVNode("p",yt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createVNode(h,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),t.createElementVNode("div",bt,[t.createVNode(h,{to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),t.createElementVNode("b",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wt]),this.isNative?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vt,Et))])}const Ae=V(mt,[["render",zt],["__scopeId","data-v-c5cb659c"]]),Be={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.google_login)&&!this.isModal)??!0}},mounted(){ye.GoogleAuth.initialize()},methods:{async googleLogin(){var s;this.googleLoad=!0;let[e,a]=await w(ye.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(a.ref=this.referral),a.authentication&&(a.authentication.accessToken||a.authentication.idToken)){this.referral&&(a.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.googleSDK(a,this.$storage));if(u)return this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,a,s){var u,l=e.getElementsByTagName(a)[0];e.getElementById(s)||(u=e.createElement(a),u.id=s,u.src="https://connect.facebook.net/en_US/sdk.js",l.parentNode.insertBefore(u,l))}(document,"script","facebook-jssdk");const Pe={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var u;this.facebookLoad=!0;const e=["email"],[a,s]=await w(ot.FacebookLogin.login({permissions:e}));if(a)return this.facebookLoad=!1;if(this.referral&&(s.ref=this.referral),this.display==="popup"&&(s.response_type="code"),s&&s.accessToken){const[l,d]=await w(I.facebookSDK(s,this.$storage));if(l)return this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(l);if(d.data.success){if(this.display==="popup")return(u=window.parent)==null?void 0:u.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.$router.push("/"+d.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}},xe={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var s;this.appleLoad=!0;const[e,a]=await w(rt.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(a.response.tokenData=ke.jwtDecode(a.response.identityToken),a&&a.response&&a.response.identityToken){this.referral&&(a.response.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.appleSDK(a.response,this.$storage));if(u)return this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var St={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};const te={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,a={}){var l,d,h;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(a).length||(a=((d=(l=this.ssoCompany.sso)==null?void 0:l.azure)==null?void 0:d.sso)||{});const[s,u]=await w(st.MsAuthPlugin.login({clientId:e==="sso"?a.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?a.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:St.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(s)return console.log("Error: "+JSON.stringify(s)),this.microsoftLoad=!1;if(this.referral&&(u.ref=this.referral),this.display==="popup"&&(u.response_type="code"),u&&(u.accessToken||u.idToken)){const[m,f]=await w(I.microsoftSDK(u,this.$storage));if(m)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(m);if(f.data.success){if(this.display==="popup")return(h=window.parent)==null?void 0:h.postMessage({code:f.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(f),this.getLoggedInAccounts(),this.loginSuccess({...f,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){k.$emit("toggleSSOModal")}}},$={getFirstBrowserLanguage(){let e=window.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"],s,u;if(Array.isArray(e.languages)){for(s=0;s<e.languages.length;s++)if(u=e.languages[s],u&&u.length)return u.slice(0,2)}for(s=0;s<a.length;s++)if(u=e[a[s]],u&&u.length)return u.slice(0,2);return null},compareLangKeys(){const e=Object.keys(we.default.state),a=Object.keys(ve.default.state),s=Object.keys(Ee.default.state),u=Object.keys(Te.default.state),l=Object.keys(Se.default.state),d=Object.keys(ze.default.state),h=Object.keys(Le.default.state),m=Object.keys(Ce.default.state);console.log("In en but not in de",e.filter(f=>!a.includes(f))),console.log("In de but not in en",a.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in es",e.filter(f=>!s.includes(f))),console.log("In es but not in en",s.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in kr",e.filter(f=>!u.includes(f))),console.log("In kr but not in en",u.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in it",e.filter(f=>!l.includes(f))),console.log("In it but not in en",l.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in fr",e.filter(f=>!d.includes(f))),console.log("In fr but not in en",d.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in sr",e.filter(f=>!h.includes(f))),console.log("In sr but not in en",h.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in tr",e.filter(f=>!m.includes(f))),console.log("In tr but not in en",m.filter(f=>!e.includes(f))),console.log()},base64ImageToBlob(e){const a=e.split(";base64,"),s=a[0].split(":")[1],u=window.atob(a[1]),l=new Uint8Array(u.length);for(let d=0;d<u.length;++d)l[d]=u.charCodeAt(d);return new Blob([l],{type:s})},blobToBase64(e){const a=new FileReader;return a.readAsDataURL(e),new Promise(s=>{a.onloadend=()=>{s(a.result)}})},base64toFile(e,a){for(var s=e.split(","),u=s[0].match(/:(.*?);/)[1],l=atob(s[1]),d=l.length,h=new Uint8Array(d);d--;)h[d]=l.charCodeAt(d);return new File([h],a,{type:u})},fileToBase64(e){new Promise((a,s)=>{const u=new FileReader;u.readAsDataURL(e),u.onload=()=>a(u.result),u.onerror=l=>s(l)})},getUTMParams(e,a){let s={};return e.utm_source&&(s.utm_source=e.utm_source),e.utm_medium&&(s.utm_medium=e.utm_medium),e.utm_campaign&&(s.utm_campaign=e.utm_campaign),e.utm_term&&(s.utm_term=e.utm_term),e.utm_content&&(s.utm_content=e.utm_content),s},cropCardScan(e,a){const s=new window.Image,u=document.createElement("canvas"),l=u.getContext("2d");s.src="data:image/jpeg;base64,"+e,s.onload=()=>{const d=s.width,h=s.width/1.65,m=0,f=s.height/2-h/2,v=d,p=h;u.width=v,u.height=p,l.drawImage(s,m,f,d,h,0,0,v,p);const C=u.toDataURL();return a(C),C}},generateRandomString(e){let a=new Uint32Array(e);return window.crypto.getRandomValues(a),Array.from(a,s=>("0"+s.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const s=new TextEncoder().encode(e),u=await window.crypto.subtle.digest("SHA-256",s);return btoa(String.fromCharCode.apply(null,new Uint8Array(u))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,a,s){let l=new TextEncoder().encode(s,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:a},e,l)},async decryptAES(e,a,s){try{const u=f=>Uint8Array.from(atob(f),v=>v.charCodeAt(0));s=s.replace(/ /g,"+");const l=new TextEncoder,d=new TextDecoder;e=l.encode(e),a=l.encode(a),s=u(s,storage);const h=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let m=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:a},h,s);return m=d.decode(m),m=m.replace(/ /g,"+"),m=atob(m),m}catch(u){console.log(u)}}},ne={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var l,d;let[a,s]=await w(se.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")})));if(a)return this.errorHandler(a);localStorage.removeItem("pkce_code_verifier");let u={accessToken:(l=s.data)==null?void 0:l.access_token,domain:e.domain};if(this.display==="popup"&&(u.response_type="code"),[a,s]=await w(I.oktaSDK(u,this.$storage)),a)return this.oktaLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(a);if(s.data.success){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:s.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(s),this.getLoggedInAccounts(),this.$router.push("/"+s.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const a=Y.Capacitor.getPlatform()||"web";let s=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+a+"&rand="+$.generateRandomString(28)),u=$.generateRandomString(28);localStorage.setItem("pkce_code_verifier",u);let l=await $.pkceChallengeFromVerifier(u),d=e.domain+"/v1/authorize",h;this.isNative?h="tapni://t.link/callback/okta":h=location.origin+"/callback/okta";let m=d+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(s)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(h)+"&code_challenge="+encodeURIComponent(l)+"&code_challenge_method=S256",f=this,v;window.addEventListener("message",async p=>{if(!this.allowedOrigins.includes(p.origin))return console.log("Origin is not allowed!");p.data.type==="okta"&&(v=p.data.code,await f.exchangeCode({domain:e.domain,code:v,clientID:e.clientID}))},{once:!0}),this.isNative?await J.Browser.open({url:m,presentationStyle:"popover"}):window.open(m,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,a,s,u,l,d={type:"okta"};if(e&&(d.code=e),this.$route.query.state){a=this.$route.query.state,a=atob(a);const h=new URLSearchParams(a);s=h.get("client_id"),u=h.get("domain"),l=h.get("platform")}window.opener?(window.opener.postMessage(d,location.origin),window.close()):(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&s&&u&&await this.exchangeCode({code:e,clientID:s,domain:u,platform:l}),localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1}))}}};var je={},ae={};ae.byteLength=Tt,ae.toByteArray=At,ae.fromByteArray=xt;for(var M=[],x=[],Lt=typeof Uint8Array<"u"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=0,Ct=le.length;H<Ct;++H)M[H]=le[H],x[le.charCodeAt(H)]=H;x[45]=62,x[95]=63;function Ne(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");s===-1&&(s=a);var u=s===a?0:4-s%4;return[s,u]}function Tt(e){var a=Ne(e),s=a[0],u=a[1];return(s+u)*3/4-u}function It(e,a,s){return(a+s)*3/4-s}function At(e){var a,s=Ne(e),u=s[0],l=s[1],d=new Lt(It(e,u,l)),h=0,m=l>0?u-4:u,f;for(f=0;f<m;f+=4)a=x[e.charCodeAt(f)]<<18|x[e.charCodeAt(f+1)]<<12|x[e.charCodeAt(f+2)]<<6|x[e.charCodeAt(f+3)],d[h++]=a>>16&255,d[h++]=a>>8&255,d[h++]=a&255;return l===2&&(a=x[e.charCodeAt(f)]<<2|x[e.charCodeAt(f+1)]>>4,d[h++]=a&255),l===1&&(a=x[e.charCodeAt(f)]<<10|x[e.charCodeAt(f+1)]<<4|x[e.charCodeAt(f+2)]>>2,d[h++]=a>>8&255,d[h++]=a&255),d}function Bt(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function Pt(e,a,s){for(var u,l=[],d=a;d<s;d+=3)u=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(e[d+2]&255),l.push(Bt(u));return l.join("")}function xt(e){for(var a,s=e.length,u=s%3,l=[],d=16383,h=0,m=s-u;h<m;h+=d)l.push(Pt(e,h,h+d>m?m:h+d));return u===1?(a=e[s-1],l.push(M[a>>2]+M[a<<4&63]+"==")):u===2&&(a=(e[s-2]<<8)+e[s-1],l.push(M[a>>10]+M[a>>4&63]+M[a<<2&63]+"=")),l.join("")}var de={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */de.read=function(e,a,s,u,l){var d,h,m=l*8-u-1,f=(1<<m)-1,v=f>>1,p=-7,C=s?l-1:0,D=s?-1:1,N=e[a+C];for(C+=D,d=N&(1<<-p)-1,N>>=-p,p+=m;p>0;d=d*256+e[a+C],C+=D,p-=8);for(h=d&(1<<-p)-1,d>>=-p,p+=u;p>0;h=h*256+e[a+C],C+=D,p-=8);if(d===0)d=1-v;else{if(d===f)return h?NaN:(N?-1:1)*(1/0);h=h+Math.pow(2,u),d=d-v}return(N?-1:1)*h*Math.pow(2,d-u)},de.write=function(e,a,s,u,l,d){var h,m,f,v=d*8-l-1,p=(1<<v)-1,C=p>>1,D=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=u?0:d-1,O=u?1:-1,pe=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(m=isNaN(a)?1:0,h=p):(h=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-h))<1&&(h--,f*=2),h+C>=1?a+=D/f:a+=D*Math.pow(2,1-C),a*f>=2&&(h++,f/=2),h+C>=p?(m=0,h=p):h+C>=1?(m=(a*f-1)*Math.pow(2,l),h=h+C):(m=a*Math.pow(2,C-1)*Math.pow(2,l),h=0));l>=8;e[s+N]=m&255,N+=O,m/=256,l-=8);for(h=h<<l|m,v+=l;v>0;e[s+N]=h&255,N+=O,h/=256,v-=8);e[s+N-O]|=pe*128};/*!
102
+ 웹 사이트 및 소셜 미디어에 공유하여 돈을 버는 동시에 최고의 연결 경험을 제공하십시오.`,referral_p8:"지불 메모",referral_p9:"Paypal (세계적인) 또는 계좌이체 (EU) <br> 최소 지급액은 25€입니다.",referral_p10:"지급 요청",referral_p11:"요청된 지불",your_connections:"나의 연결 기록",connections_p1:"사람들과 만나서 탭을 하세요.",connections_p2:"<br><br>지금까지 연결이 없습니다. <br> 탭을 시작해볼까요💥",connections_p3:"연결을 찾을 수 없습니다.",connection_success:"연결 요청을 보냈습니다.",exchange_success:"연락처를 교환했습니다.",create_free_account:"무료 Tapni 계정을 만들고 연락처를 최신 상태로 유지하십시오!",connection_edit:"연결 편집",connection_edit_success:"성공적으로 업데이트된 연결",connection_delete_success:"연결을 삭제했습니다.",search:"검색",devices_p1:"장치 호환성 목록",devices_p2:"탭니는 대부분의 최신 아이폰 및 안드로이드와 호환이 가능합니다.",devices_p3:"일부 안드로이드 폰은 NFC가 꺼져 있을 수 있습니다. 탭니가 안드로이드 장치에서 작동하지 않는 경우 설정에서 NFC를 검색하고 켜져 있는지 확인합니다.",devices_p4:"제어 센터에 iOS 14 NFC 위젯 포함",download_p1:"탭니 앱 다운로드",download_p2:"애플 및 안드로이드 기기에서 사용 가능",user_not_found:"사용자를 찾을 수 없음",user_not_found_p:"데이터베이스에서 사용자를 찾을 수 없습니다.🤷",taps:"탭",private_profile:"개인 프로필",private_profile_p:"은 개인 프로필입니다. <br> 프로필은 탭니 태그에서만 사용하며 표시됩니다.",profile_bio_p:"자기 소개를 해주세요.",add_to_contacts:"연락처에 추가",drag_and_drop_links:"링크를 원하는 순서대로 끌어서 놓기",no_links:"프로필에 링크가 없습니다.",add_link:"링크 추가",direct_link_p1:"방문자는 다음으로 자동 이동됩니다:",profile_not_active:"프로필이 현재 활성화되지 않았습니다. <br> 로그인을 해야 볼 수 있어요.",profile_not_public:"프로필이 현재 공개되지 않았습니다. <br> 누르신 분들만 볼 수 있습니다.",activate_profile_now:"프로필 활성화 완료",publish_profile_now:"지금 프로필을 공개하십시오.",link_add_p1:"링크 유형 선택",link_add_not_found:"링크를 찾을 수 없습니다. 🤷",link_add_not_found_p2:"즐겨찾는 플랫폼을 놓치셨다면, 저희에게 이메일을 보내주시기 바랍니다. (<b>support@tapni.com</b>) 아니면 소셜 미디어로 DM을 해주세요.(<b>@tapni</b>)",link_add_not_found_p3:"모든 플랫폼을 지원할 수 있도록 최선을 다하겠습니다. 😉",featured:"피처링",social_media:"소셜 미디어",contact:"연락처",finance:"금융",portfolio:"포트폴리오",music:"음악",business:"비지니스",fun:"재미",ecommerce:"전자상거래",more:"더 보기",email_username:"이메일 / 사용자 이름",username:"사용자 이름",password:"비밀번호",sign_in:"로그인",sign_in_with:"로그인",sign_in_with_new:"새 계정으로 로그인",sign_up_with:"등록하기",select_sign_method:"로그인 방법 선택",verify_account:"계정 확인",terms_by_signing_in:"회원님의 동의로 회원가입을 합니다.",terms_by_registering:"동의하시면 등록하여 주십시오.",terms_by_submitting:"이 양식을 제출하면 서비스 약관에 동의하는 것입니다",terms_of_service:"서비스 약관",and:"그리고",refresh:"새로 고침",privacy_policy:"개인 정보 보호 정책",create_account:"계정 만들기",reset_password:"비밀번호 재설정",reset_password_p1:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",reset_password_p2:"암호를 재설정할 수 없으면, <br> 언제든지 다음 주소로 연락하십시오.",create_new_account:"새 계정 만들기",maintenance_p1:"우리는 곧 돌아올 것이다.",maintenance_p2:"그동안 탭니 컬렉션 살펴보기",maintenance_p3:"탭니는 예정된 점검으로 인하여 잠시 중단되었습니다. <br> 몇 분 내로 다시 온라인 상태가 될 것입니다.",offline_p1:"인터넷에 연결되지 않음",offline_p2:"연결을 확인한 다음 페이지를 새로 고치십시오.",offline_p3_1:"오프라인일 때 이 QR 코드를 사용하여 연락처 카드를 공유할 수 있습니다.",offline_p3_2:"",products_p1:"만나는 모든 사람에게 깊은 인상을 남깁니다. 😎 <br> 지금 바로 구입하십시오 👇",cards:"카드",stickers:"스티커",keychains:"키 체인",explore_collection:"컬렉션 탐색",register:"등록",register_success:"거의 다 완료하였습니다. 이메일을 확인해 주세요.",register_success_modal:"다른 계정으로 로그인했습니다.",check_your_inbox:"첫 번째 링크를 추가 해 주세요.",tapni_tags:"탭니 태그",tapni_tags_p1:"프로필에 연결된 태그 구성",tapni_tags_p2:"프로필에 연결된 태그가 없습니다. <br> 지금 연결하세요!",verify_account_p1:"코드를 받지 못한 경우 다음을 확인하십시오. <br> 스팸 폴더 또는 연락주세요:",verify_account_success:"계정을 확인했습니다. 지금 비밀번호를 변경해 주세요.",verify_account_success2:"계정을 확인했습니다. 모두 완료 되었습니다.!🥳",welcome:"반갑습니다.",welcome_p1:"비지니스 카드의 미래까지",how_it_works:"작동 방식",already_registered:"이미 등록되어있습니다",error:"오류",success:"성공",copied:"클립보드에 복사됨",connect_validate:"두 개의 연락처 필드 중 하나를 제공해야 합니다.",connect_validate_name:"이름을 입력하십시오.",connect_validate_email:"유효한 이메일을 입력하세요",link_validate:"잘못된 링크 데이터입니다.",link_text_contact_card:"연락처 카드",link_text_custom_link:"사용자 지정 링크",link_text_menu:"메뉴",link_text_phone:"휴대폰",save_to_apple_wallet:"Apple 지갑에 저장",save_to_google_wallet:"Google 지갑에 저장",card:"카드",sticker:"상표",keychain:"키체인",band:"밴드",case:"사례",standee:"서다",decoded:"Decoded",wristbanditz:"Wristbanditz",update_p1:"오래된 앱 버전이 감지되었습니다",update_p2:"업데이트",update_p3:"앱을 최신 버전으로 업데이트하세요",company_domain:"귀하의 회사 도메인",search_company_domain:"회사 도메인 검색",enter_company_email:"회사 이메일을 입력하세요",company_not_found:"회사를 찾을 수 없음",ik_company_domain:"회사 도메인을 알고 있습니다",idk_company_domain:"회사 도메인을 모릅니다",continue:"계속",forbidden_rule:"이 옵션은 비활성화되어 있습니다. 회사 관리자에게 문의하십시오.",companyName:"회사 이름",createMarkerPlaceholder:"마커 생성 또는 선택",clickToCreateMarker:"마커를 만들려면 여기를 클릭하세요.",pleaseInviteUser:"데이터를 동기화하려면 사용자를 Tapni에 가입하도록 초대하세요.",connectionSynchronized:"연결 데이터가 자동으로 동기화됩니다.",viewProfile:"프로필보기",createConnectionHeader:"새 연결 추가",createConnectionButton:"추가하다",createConnectionSuccess:"연결이 생성되었습니다.",allow_company_management:"회사 관리 허용",company_join_request:"이 귀하의 프로필을 관리하고 이를 기업 계정에 연결하도록 요청하고 있습니다.",account_ownership_transfer:"귀하가 요청을 수락하면 귀하의 계정 소유권이 회사로 이전됩니다. 회사는 귀하의 프로필을 수정하고, 링크를 편집 및 추가하고, 연결을 확인하고, 비밀번호를 수정하고, 계정을 삭제하는 등의 작업을 수행할 수 있습니다. 요청을 수락하기 전에 회사에 확인하십시오.",request_expired:"요청이 만료되었습니다. 회사에 새 요청을 보내도록 요청하십시오.",request_expiration_desc:"보안 강화를 위해 요청은 전송된 후 14일 동안만 작동합니다.",invitation_link_not_valid:"초대 링크가 유효하지 않습니다!",invitation_link_not_valid2:"초대 이메일에서 버튼을 다시 클릭하거나 초대 링크를 복사합니다.",accept_request:"요청 수락",close:"닫다",request_accepted:"요청이 성공적으로 수락되었습니다.",companyEmail:"회사 이메일",companyPhone:"회사 전화",addBusinessInformations:"비즈니스 정보 추가",resetFilter:"초기화",selectMarkers:"마커 선택",filterConnectionsHeader:"필터 연결",selectConnectionType:"연결 유형 선택",all:"모두",direct:"직접",form:"형태",manually:"수동으로",scan:"주사",sortOptions:"정렬 옵션",date:"제작 일",fullName:"성명",descending:"내림차순",ascending:"오름차순",selectDateRange:"날짜 범위 선택",follow_up_reminder:"후속 알림",now:"지금",one_hour:"1 토",one_day:"1 일",three_days:"3 일",one_week:"일주",two_weeks:"이주",one_month:"개월",custom:"시간 선택",set_reminder:"알림 설정",select_date_time:"날짜 및 시간 선택",enter_reminder_text:"알림 텍스트 입력",reminder_created:"알림이 생성되었습니다.",connectionNameLabel:"연결 이름 입력",connectionEmailLabel:"개인 이메일 주소 입력",privatePhoneLabel:"개인 전화번호 입력",companyNameLabel:"회사 이름 입력",businessEmail:"비즈니스 이메일 주소",businessEmailLabel:"비즈니스 이메일 주소 입력",businessPhone:"회사 전화번호",businessPhoneLabel:"회사 전화번호 입력",noteLabel:"메모 입력",markersLabel:"연결 마커 추가",showScan:"스캔 표시",hideScan:"스캔 숨기기",create_connection:"연결 추가",create_manually:"수동으로 추가",create_using_scanner:"카드 스캐너를 사용하여 추가",companyTitle:"회사명",companyTitleLabel:"회사명 입력",allConnectionsLabel:"모든 연결 유형",directConnectionsLabel:"Tapni 사용자와 직접 앱 내 연결",formConnectionsLabel:"연결 양식에 채워진 연결",manualConnectionsLabel:"수동으로 생성된 연결",scanConnectionsLabel:"카드 스캐너가 연결을 생성했습니다.",analyticsHeader:"분석",analyticsProfileViews:"프로필 보기",analyticsLinkClicks:"링크 클릭 수",analyticsClickTroughRatio:"트로프 비율 클릭",analyticsTotalConnections:"총 연결 수",analyticsTopLinks:"가장 인기 있는 링크",analyticsProfileVisits:"프로필 방문",analyticsLinkVisits:"링크 방문",analyticsNewConnections:"새로운 연결",analyticsTopCountries:"상위 국가",analyticsTopReferers:"상위 추천인",please_wait:"잠시만 기다려 주세요...",click_here:"여기를 클릭하세요",if_redirect_not_directly:"리디렉션이 자동으로 수행되지 않는 경우",you_will_be_redirected:"Tapni 애플리케이션으로 리디렉션됩니다.",use_tapni_on_the_web:"웹에서 Tapni 사용하기",login_by_scanning_qr_code:"QR 코드 스캔하여 로그인하기",open_tapni_app_on_your_phone:"1. 휴대폰에서 Tapni 앱 열기",go_to_settings_link_a_device:"2. 설정 > 장치 연결로 이동하기",point_your_phone_at_this_qr_code:"3. 휴대폰을 이 QR 코드에 맞추기",choose_other_login_methods:"다른 로그인 방법 선택하기",no_sso_logins:"귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."}},ut={computed:{home(){return this.$storage&&this.$storage.token&&this.$storage.username?"/"+this.$storage.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Y.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Y.Capacitor.getPlatform()==="ios"},isNative(){return Y.Capacitor.isNativePlatform()}},methods:{errorHandler(e){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},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(e){return e<10?"":e<=50?"🔥":e<=100?"💥":e<=300?"💎":e>300?"🚀":""},isEmpty(e){if(!e)return!0;for(let a in e)if(e.hasOwnProperty(a))return!1;return JSON.stringify(e)===JSON.stringify({})},copy(e=""){const a=document.createElement("textarea");a.value=e,a.setAttribute("readonly",""),a.style.position="absolute",a.style.left="-9999px",document.body.appendChild(a),a.select(),document.execCommand("copy"),document.body.removeChild(a),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(e){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:e})}catch(a){return console.log(a),null}}}};var _t={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};const P={mixins:[ut],data(){return{appLanguage:"en",token:"",refreshToken:"",loggedInUserId:"",ssoUser:{},ssoCompany:{},device:{},loggedInAccounts:{},ssoLang:{en:we.state,de:ve.state,es:Ee.state,fr:ze.state,it:Se.state,sr:Le.state,tr:Ce.state,cn:pt.state,kr:Te.state},display:"npm",redirect_uri:"https://t.link/callback/auth",response_type:"token",state:"",allowedOrigins:["https://business.tapni.com","https://business-dev.tapni.com","https://tapni.com","https://tapni.co","https://t.link","https://my.tapni.com","https://my.tapni.co","https://dev.tapni.co","https://dev.tapni.com","https://auth.tapni.com","https://auth.tapni.co","https://mailsign.link","https://sign.tapni.com","https://qrcodetoolkit.com","https://qr.tapni.com","https://designer.tapni.com","https://designer-dev.tapni.com"]}},computed:{isLoggedIn(){return!!this.token&&this.token!==""&&this.token!=="null"},renderView(){return this.display==="redirect"?!1:this.view}},mounted(){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),k.$on("updateLang",this.updateLang),_t.NODE_ENV==="development"&&(this.allowedOrigins.push("http://localhost:8082"),this.allowedOrigins.push("http://localhost:7777"),this.allowedOrigins.push("http://localhost:5173"))},methods:{errorHandler(e){if(e&&e.response&&e.response.data&&e.response.data.error){if(e.response.data.error==="ACCESS_DENIED"||e.response.data.error==="TOKEN_EXPIRED")return this.logout();!e.response.data.error.includes("Network Error")&&!e.response.data.error.includes("Cannot read properties")&&this.errorSnack(e.response.data.error)}return e},errorSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("errorMessage"),u=document.getElementById("errorSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},successSnack(e){let a=document.getElementById("snackbar"),s=document.getElementById("successMessage"),u=document.getElementById("successSnack");s.innerHTML=e,a.classList.add("show-snack"),u.classList.add("active-snack"),setTimeout(function(){u.classList.remove("active-snack"),a.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},async eventLog(e){const[a,s]=await w(K.eventLog(e,this.$storage));return a?this.errorHandler(a):s},async maintenance(){const[e,a]=await w(se.get("https://status.tapni.co/data/maintenance.json"));if(e)return console.error(e);if(a){let s=a.data;typeof a.data=="string"&&(s=JSON.parse(a.data)),s.api&&s.api.maintenanceActive&&(location.href="https://t.link/maintenance?msg="+s.api.msg)}},async getUser(e){if(e){let a,s;if(e.username?[a,s]=await w(K.getByUsername(e,this.$storage)):e.serial&&([a,s]=await w(K.getByNumber(e,this.$storage))),a)return this.errorHandler(a);if(s.data.success){if(!s.data.user&&s.data.showDemoProfile){if(this.isLoggedIn)throw this.$router.push("/tags#activate"),new Error("Activate the tag");return this.$router.push("/"+s.data.showDemoProfile)}!s.data.user&&e.login&&this.logout(),this.registerLang(s.data.user?s.data.user.ssoLang:"en"),this.setUser(s.data.user)}}},async loginSetup(e){var a,s;e.data.refreshToken&&this.setRefreshToken(e.data.refreshToken),e.data.token&&this.setToken(e.data.token),((s=(a=e.data)==null?void 0:a.data)==null?void 0:s.ssoLang)!==this.appLanguage&&k.$emit("ssoEvent",{name:"saveProfile",data:{lang:this.appLanguage,username:e.data.data.username}}),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([{id:e.data.data.id,username:e.data.data.username,refreshToken:e.data.refreshToken,photo:e.data.data.photo}])},async refreshTokenAction(e){const[a,s]=await w(I.refreshToken({id:e.id,refreshToken:this.refreshToken,refreshTokenAction:!0},this.$storage));if(a&&a.response&&a.response.data.error==="ACCESS_DENIED")return this.logout(!1),location.reload();s&&s.data?this.setToken(s.data.token):console.error("Invalid response setToken")},async login(e){const[a,s]=await w(I.login(e,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return this.display==="npm"&&(this.loginSetup({...s,isModal:e.isModal}),this.getLoggedInAccounts()),this.loginSuccess({...s,isModal:e.isModal}),!0},loginSuccess(e){if(this.display==="redirect"){if(this.redirect_uri&&!this.allowedOrigins.some(a=>this.redirect_uri.startsWith(a)))return console.log("Redirect URI not allowed");location.href=this.redirect_uri+"?code="+e.data.auth_code+"&state="+this.state}else this.display==="popup"?this.allowedOrigins.forEach(a=>{var s;(s=window.parent)==null||s.postMessage({code:e.data.auth_code,state:this.$route.query.state},a)}):this.display==="npm"&&(k.$emit("ssoEvent",{name:"setLoading",data:!0}),k.$emit("ssoEvent",{name:"getUser",data:{login:!0,username:e.data.data.username}}),e.isModal&&(k.$emit("closeModal"),this.successSnack(this.ssoLang[this.appLanguage].success_login)),this.$router.push("/"+e.data.data.username+"#edit"))},async register(e){const[a,s]=await w(I.register(e,this.$storage));return a?this.errorHandler(a):s},async verify(e){const[a,s]=await w(I.verify(e,this.$storage));return a?this.errorHandler(a):s},async reset(e){const[a,s]=await w(I.sendResetEmail(e,this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.successSnack(this.ssoLang[this.appLanguage].password_reset_success)},async exchangeAuthCode(e){console.log({data:e});const[a,s]=await w(I.exchangeAuthCode(e,this.$storage));if(a)return console.log({err:a}),this.errorHandler(a);console.log(s),await this.loginSetup(s),await this.getLoggedInAccounts(),this.loginSuccess(s)},async changePassword(e){const[a,s]=await w(I.changePassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async newPassword(e){const[a,s]=await w(K.newPassword(e,this.$storage));return a?this.errorHandler(a):s.data.success},async deleteAccount(e){const[a,s]=await w(K.deleteAccount(e,this.$storage));return a?this.errorHandler(a):s.data.success},async registerDevice(){const e=await Z.Device.getId(),a=await Z.Device.getInfo();let s={device_id:e.uuid,platform:a.platform,device_info:{model:a.model,manufacturer:a.manufacturer,operatingSystem:a.operatingSystem,osVersion:a.osVersion,isVirtual:a.isVirtual,webViewVersion:a.webViewVersion}};const[u,l]=await w(be.registerDevice(s,this.$storage));return u?this.errorHandler(u):l},async addFcmToken(e){const[a,s]=await w(be.addFcmToken(e,this.$storage));return a?this.errorHandler(a):s},async acceptCompanyInvitation(e){const[a,s]=await w(ce.acceptCompanyInvitation(e,this.$storage));return a?this.errorHandler(a):s},async logout(e=!0){e&&I.logout({token:this.refreshToken},this.$storage),this.$storage.username="",this.$storage.ssoUser="",this.$storage.UserId="",this.setLoggedInUserId(""),this.setToken(""),this.setRefreshToken(""),this.refreshToken?Object.keys(this.loggedInAccounts).forEach(a=>{this.loggedInAccounts[a].refreshToken===this.refreshToken&&this.refreshTokenAction({id:this.loggedInAccounts[a].id}).then(()=>(this.setLoggedInUserId(this.loggedInAccounts[a].id),this.$storage.username=a,this.$storage.UserId=this.loggedInAccounts[a].id,this.getLoggedInAccounts(),this.$router.push("/"+a)))}):this.setUser(null),await this.$router.push("/welcome")},async getCompanyBySSOEmail(e){const[a,s]=await w(ce.getBySSOEmail(e.email,this.$storage));if(a)return this.errorHandler(a);if(s.data.success)return s.data},async getLoggedInAccounts(){const e=this.getRefreshTokens(),[a,s]=await w(I.getLoggedInAccounts({refreshTokens:e},this.$storage));if(a)return this.errorHandler(a);s.data.success&&this.setLoggedInAccounts(s.data.accounts)},async loginUsingQR(e){const[a,s]=await w(K.loginUsingQR(e,this.$storage));return a?this.errorHandler(a):s.data.success},setLoggedInAccounts(e){this.loggedInAccounts={},e.forEach(a=>{this.loggedInAccounts[a.username]=a}),k.$emit("ssoEvent",{name:"setLoggedInAccounts",data:e})},setLoggedInUserId(e){this.loggedInUserId=e},setUser(e){this.ssoUser=e,this.$storage&&this.ssoUser&&this.$storage.username===this.ssoUser.username&&(this.appLanguage=e.ssoLang)},getRefreshTokens(){return this.$storage.refreshTokens.split(",")},setRefreshToken(e){let a=this.getRefreshTokens();e&&!a.includes(e)?a.unshift(e):a=a.filter(s=>s!==this.refreshToken),a.length>=1?this.refreshToken=a[0]:this.refreshToken=e,this.$storage.refreshTokens=a.join(","),k.$emit("ssoEvent",{name:"setRefreshToken",data:e})},setToken(e){this.$storage.token=e,this.token=e,k.$emit("ssoEvent",{name:"setToken",data:e})},setUserID(e){this.$storage.UserId=e},updateLang(e){this.appLanguage=e}},watch:{"$route.query":{handler:function(){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()},deep:!0}}},V=(e,a)=>{const s=e.__vccOpts||e;for(const[u,l]of a)s[u]=l;return s},mt={name:"AuthWelcome",mixins:[P],data(){return{loading:!0}},async mounted(){let e=document.getElementById("tapniVideo");e.addEventListener("canplay",function(){document.body.contains(e)&&e.play().catch(a=>{console.log("Play was interrupted:",a)})}),setTimeout(()=>{this.$storage.token?this.$router.push(this.home):k.$emit("ssoEvent",{name:"setLoading",data:!1})},1500),k.$emit("ssoEvent",{name:"setInitialize",data:!0})},methods:{}},Ie=e=>(t.pushScopeId("data-v-c5cb659c"),e=e(),t.popScopeId(),e),gt={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},ht=["autoplay"],ft=[Ie(()=>t.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],kt={class:"bold full-top no-bottom center-text"},yt={class:"full-bottom half-top center-text color-black font-16"},bt={class:"page-login-links center-text"},wt=Ie(()=>t.createElementVNode("div",{class:"clear"},null,-1)),vt={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Et=[t.createStaticVNode('<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)];function zt(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("div",gt,[t.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:e.isNative},ft,8,ht),t.createElementVNode("h1",kt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome),1),t.createElementVNode("p",yt,t.toDisplayString(e.ssoLang[this.appLanguage].welcome_p1),1),t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createVNode(h,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].create_account),1)]),_:1}),t.createElementVNode("div",bt,[t.createVNode(h,{to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].already_registered)+"? ",1),t.createElementVNode("b",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),wt]),this.isNative?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vt,Et))])}const Ae=V(mt,[["render",zt],["__scopeId","data-v-c5cb659c"]]),Pe={data(){return{googleLoad:!1}},computed:{displayGoogleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.google_login)&&!this.isModal)??!0}},mounted(){ye.GoogleAuth.initialize()},methods:{async googleLogin(){var s;this.googleLoad=!0;let[e,a]=await w(ye.GoogleAuth.signIn());if(e)return this.googleLoad=!1;if(this.referral&&(a.ref=this.referral),a.authentication&&(a.authentication.accessToken||a.authentication.idToken)){this.referral&&(a.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.googleSDK(a,this.$storage));if(u)return this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.googleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.googleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};window.fbAsyncInit=function(){FB.init({appId:"202577611527680",cookie:!0,xfbml:!0,version:"v16.0"})},function(e,a,s){var u,l=e.getElementsByTagName(a)[0];e.getElementById(s)||(u=e.createElement(a),u.id=s,u.src="https://connect.facebook.net/en_US/sdk.js",l.parentNode.insertBefore(u,l))}(document,"script","facebook-jssdk");const Be={data(){return{facebookLoad:!1}},computed:{fbLoginUrl(){return'https://www.facebook.com/v16.0/dialog/oauth?client_id=202577611527680&state={"oauth":"facebook"}&response_type=code%20granted_scopes&scope=email&redirect_uri=https://'+window.location.host+"/login"},displayFacebookLogin(){return!1}},methods:{async facebookLogin(){var u;this.facebookLoad=!0;const e=["email"],[a,s]=await w(ot.FacebookLogin.login({permissions:e}));if(a)return this.facebookLoad=!1;if(this.referral&&(s.ref=this.referral),this.display==="popup"&&(s.response_type="code"),s&&s.accessToken){const[l,d]=await w(I.facebookSDK(s,this.$storage));if(l)return this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(l);if(d.data.success){if(this.display==="popup")return(u=window.parent)==null?void 0:u.postMessage({code:d.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(d),this.getLoggedInAccounts(),this.$router.push("/"+d.data.data.username+"#edit"),setTimeout(()=>{this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.facebookLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}},xe={data(){return{appleLoad:!1}},computed:{displayAppleLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.apple_login)&&!this.isModal)??(Capacitor.isNativePlatform()&&Capacitor.getPlatform()==="ios"||!Capacitor.isNativePlatform()&&this.isiOS)}},methods:{async appleLogin(){var s;this.appleLoad=!0;const[e,a]=await w(rt.SignInWithApple.authorize({clientId:"co.tapni.applelogin",redirectURI:"https://"+window.location.host+"/login",scopes:"email name"}));if(e)return this.appleLoad=!1;if(a.response.tokenData=ke.jwtDecode(a.response.identityToken),a&&a.response&&a.response.identityToken){this.referral&&(a.response.ref=this.referral),this.display==="popup"&&(a.response_type="code");const[u,l]=await w(I.appleSDK(a.response,this.$storage));if(u)return this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(u);if(l.data.success){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:l.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(l),this.getLoggedInAccounts(),this.loginSuccess({...l,isModal:!1}),setTimeout(()=>{this.appleLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})}}};var St={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};const te={data(){return{microsoftLoad:!1,microsoftSSOLoad:!1}},computed:{displayMicrosoftSSOLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.microsoft_login)&&!this.isModal)??!1}},methods:{async microsoftLogin(e,a={}){var l,d,h;e==="sso"?this.microsoftSSOLoad=!0:this.microsoftLoad=!0,Object.keys(a).length||(a=((d=(l=this.ssoCompany.sso)==null?void 0:l.azure)==null?void 0:d.sso)||{});const[s,u]=await w(st.MsAuthPlugin.login({clientId:e==="sso"?a.clientID:"9cd47053-080a-4df8-8fd8-ca4389163fde",tenant:e==="sso"?a.tenant:"consumers",scopes:["User.Read"],knownAuthorities:[],keyHash:"4+5wCp8QcLptlO0aeP5RDTTOWyg=",redirectUri:St.NODE_ENV==="development"?`${window.location.origin}/login`:"https://"+window.location.host+"/login"}));if(s)return console.log("Error: "+JSON.stringify(s)),this.microsoftLoad=!1;if(this.referral&&(u.ref=this.referral),this.display==="popup"&&(u.response_type="code"),u&&(u.accessToken||u.idToken)){const[m,f]=await w(I.microsoftSDK(u,this.$storage));if(m)return this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(m);if(f.data.success){if(this.display==="popup")return(h=window.parent)==null?void 0:h.postMessage({code:f.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(f),this.getLoggedInAccounts(),this.loginSuccess({...f,isModal:!1}),setTimeout(()=>{this.microsoftLoad=!1,this.microsoftSSOLoad=!1},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)}else this.microsoftLoad=!1,this.microsoftSSOLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},ssoLogin(){k.$emit("toggleSSOModal")}}},$={getFirstBrowserLanguage(){let e=window.navigator,a=["language","browserLanguage","systemLanguage","userLanguage"],s,u;if(Array.isArray(e.languages)){for(s=0;s<e.languages.length;s++)if(u=e.languages[s],u&&u.length)return u.slice(0,2)}for(s=0;s<a.length;s++)if(u=e[a[s]],u&&u.length)return u.slice(0,2);return null},compareLangKeys(){const e=Object.keys(we.default.state),a=Object.keys(ve.default.state),s=Object.keys(Ee.default.state),u=Object.keys(Te.default.state),l=Object.keys(Se.default.state),d=Object.keys(ze.default.state),h=Object.keys(Le.default.state),m=Object.keys(Ce.default.state);console.log("In en but not in de",e.filter(f=>!a.includes(f))),console.log("In de but not in en",a.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in es",e.filter(f=>!s.includes(f))),console.log("In es but not in en",s.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in kr",e.filter(f=>!u.includes(f))),console.log("In kr but not in en",u.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in it",e.filter(f=>!l.includes(f))),console.log("In it but not in en",l.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in fr",e.filter(f=>!d.includes(f))),console.log("In fr but not in en",d.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in sr",e.filter(f=>!h.includes(f))),console.log("In sr but not in en",h.filter(f=>!e.includes(f))),console.log(),console.log("In en but not in tr",e.filter(f=>!m.includes(f))),console.log("In tr but not in en",m.filter(f=>!e.includes(f))),console.log()},base64ImageToBlob(e){const a=e.split(";base64,"),s=a[0].split(":")[1],u=window.atob(a[1]),l=new Uint8Array(u.length);for(let d=0;d<u.length;++d)l[d]=u.charCodeAt(d);return new Blob([l],{type:s})},blobToBase64(e){const a=new FileReader;return a.readAsDataURL(e),new Promise(s=>{a.onloadend=()=>{s(a.result)}})},base64toFile(e,a){for(var s=e.split(","),u=s[0].match(/:(.*?);/)[1],l=atob(s[1]),d=l.length,h=new Uint8Array(d);d--;)h[d]=l.charCodeAt(d);return new File([h],a,{type:u})},fileToBase64(e){new Promise((a,s)=>{const u=new FileReader;u.readAsDataURL(e),u.onload=()=>a(u.result),u.onerror=l=>s(l)})},getUTMParams(e,a){let s={};return e.utm_source&&(s.utm_source=e.utm_source),e.utm_medium&&(s.utm_medium=e.utm_medium),e.utm_campaign&&(s.utm_campaign=e.utm_campaign),e.utm_term&&(s.utm_term=e.utm_term),e.utm_content&&(s.utm_content=e.utm_content),s},cropCardScan(e,a){const s=new window.Image,u=document.createElement("canvas"),l=u.getContext("2d");s.src="data:image/jpeg;base64,"+e,s.onload=()=>{const d=s.width,h=s.width/1.65,m=0,f=s.height/2-h/2,v=d,p=h;u.width=v,u.height=p,l.drawImage(s,m,f,d,h,0,0,v,p);const C=u.toDataURL();return a(C),C}},generateRandomString(e){let a=new Uint32Array(e);return window.crypto.getRandomValues(a),Array.from(a,s=>("0"+s.toString(16)).substr(-2)).join("")},async pkceChallengeFromVerifier(e){const s=new TextEncoder().encode(e),u=await window.crypto.subtle.digest("SHA-256",s);return btoa(String.fromCharCode.apply(null,new Uint8Array(u))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},encryptAES(e,a,s){let l=new TextEncoder().encode(s,storage);return window.crypto.subtle.encrypt({name:"AES-CBC",iv:a},e,l)},async decryptAES(e,a,s){try{const u=f=>Uint8Array.from(atob(f),v=>v.charCodeAt(0));s=s.replace(/ /g,"+");const l=new TextEncoder,d=new TextDecoder;e=l.encode(e),a=l.encode(a),s=u(s,storage);const h=await window.crypto.subtle.importKey("raw",e,"AES-CBC",!0,["encrypt","decrypt"]);let m=await window.crypto.subtle.decrypt({name:"AES-CBC",iv:a},h,s);return m=d.decode(m),m=m.replace(/ /g,"+"),m=atob(m),m}catch(u){console.log(u)}}},ne={data(){return{oktaAuth:null}},computed:{},watch:{},methods:{async exchangeCode(e){var l,d;let[a,s]=await w(se.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")})));if(a)return this.errorHandler(a);localStorage.removeItem("pkce_code_verifier");let u={accessToken:(l=s.data)==null?void 0:l.access_token,domain:e.domain};if(this.display==="popup"&&(u.response_type="code"),[a,s]=await w(I.oktaSDK(u,this.$storage)),a)return this.oktaLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1}),this.errorHandler(a);if(s.data.success){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:s.data.auth_code,state:this.$route.query.state},"*");await this.loginSetup(s),this.getLoggedInAccounts(),this.$router.push("/"+s.data.data.username+"#edit"),setTimeout(()=>{this.appleLoad=!1,k.$emit("ssoEvent",{name:"setLoading",data:!1})},1e3)}else this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err)},async oktaLogin(e){const a=Y.Capacitor.getPlatform()||"web";let s=btoa("domain="+e.domain+"&client_id="+e.clientID+"&platform="+a+"&rand="+$.generateRandomString(28)),u=$.generateRandomString(28);localStorage.setItem("pkce_code_verifier",u);let l=await $.pkceChallengeFromVerifier(u),d=e.domain+"/v1/authorize",h;this.isNative?h="tapni://t.link/callback/okta":h=location.origin+"/callback/okta";let m=d+"?response_type=code&client_id="+encodeURIComponent(e.clientID)+"&state="+encodeURIComponent(s)+"&scope="+encodeURIComponent("openid email profile")+"&redirect_uri="+encodeURIComponent(h)+"&code_challenge="+encodeURIComponent(l)+"&code_challenge_method=S256",f=this,v;window.addEventListener("message",async p=>{if(!this.allowedOrigins.includes(p.origin))return console.log("Origin is not allowed!");p.data.type==="okta"&&(v=p.data.code,await f.exchangeCode({domain:e.domain,code:v,clientID:e.clientID}))},{once:!0}),this.isNative?await J.Browser.open({url:m,presentationStyle:"popover"}):window.open(m,"popup","width=600,height=600")},async handleOktaRedirect(){let e=this.$route.query.code,a,s,u,l,d={type:"okta"};if(e&&(d.code=e),this.$route.query.state){a=this.$route.query.state,a=atob(a);const h=new URLSearchParams(a);s=h.get("client_id"),u=h.get("domain"),l=h.get("platform")}window.opener?(window.opener.postMessage(d,location.origin),window.close()):(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),e&&s&&u&&await this.exchangeCode({code:e,clientID:s,domain:u,platform:l}),localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1}))}}};var je={},ae={};ae.byteLength=Tt,ae.toByteArray=At,ae.fromByteArray=xt;for(var M=[],x=[],Lt=typeof Uint8Array<"u"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=0,Ct=le.length;H<Ct;++H)M[H]=le[H],x[le.charCodeAt(H)]=H;x[45]=62,x[95]=63;function Ne(e){var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");s===-1&&(s=a);var u=s===a?0:4-s%4;return[s,u]}function Tt(e){var a=Ne(e),s=a[0],u=a[1];return(s+u)*3/4-u}function It(e,a,s){return(a+s)*3/4-s}function At(e){var a,s=Ne(e),u=s[0],l=s[1],d=new Lt(It(e,u,l)),h=0,m=l>0?u-4:u,f;for(f=0;f<m;f+=4)a=x[e.charCodeAt(f)]<<18|x[e.charCodeAt(f+1)]<<12|x[e.charCodeAt(f+2)]<<6|x[e.charCodeAt(f+3)],d[h++]=a>>16&255,d[h++]=a>>8&255,d[h++]=a&255;return l===2&&(a=x[e.charCodeAt(f)]<<2|x[e.charCodeAt(f+1)]>>4,d[h++]=a&255),l===1&&(a=x[e.charCodeAt(f)]<<10|x[e.charCodeAt(f+1)]<<4|x[e.charCodeAt(f+2)]>>2,d[h++]=a>>8&255,d[h++]=a&255),d}function Pt(e){return M[e>>18&63]+M[e>>12&63]+M[e>>6&63]+M[e&63]}function Bt(e,a,s){for(var u,l=[],d=a;d<s;d+=3)u=(e[d]<<16&16711680)+(e[d+1]<<8&65280)+(e[d+2]&255),l.push(Pt(u));return l.join("")}function xt(e){for(var a,s=e.length,u=s%3,l=[],d=16383,h=0,m=s-u;h<m;h+=d)l.push(Bt(e,h,h+d>m?m:h+d));return u===1?(a=e[s-1],l.push(M[a>>2]+M[a<<4&63]+"==")):u===2&&(a=(e[s-2]<<8)+e[s-1],l.push(M[a>>10]+M[a>>4&63]+M[a<<2&63]+"=")),l.join("")}var de={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */de.read=function(e,a,s,u,l){var d,h,m=l*8-u-1,f=(1<<m)-1,v=f>>1,p=-7,C=s?l-1:0,D=s?-1:1,N=e[a+C];for(C+=D,d=N&(1<<-p)-1,N>>=-p,p+=m;p>0;d=d*256+e[a+C],C+=D,p-=8);for(h=d&(1<<-p)-1,d>>=-p,p+=u;p>0;h=h*256+e[a+C],C+=D,p-=8);if(d===0)d=1-v;else{if(d===f)return h?NaN:(N?-1:1)*(1/0);h=h+Math.pow(2,u),d=d-v}return(N?-1:1)*h*Math.pow(2,d-u)},de.write=function(e,a,s,u,l,d){var h,m,f,v=d*8-l-1,p=(1<<v)-1,C=p>>1,D=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=u?0:d-1,O=u?1:-1,pe=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(m=isNaN(a)?1:0,h=p):(h=Math.floor(Math.log(a)/Math.LN2),a*(f=Math.pow(2,-h))<1&&(h--,f*=2),h+C>=1?a+=D/f:a+=D*Math.pow(2,1-C),a*f>=2&&(h++,f/=2),h+C>=p?(m=0,h=p):h+C>=1?(m=(a*f-1)*Math.pow(2,l),h=h+C):(m=a*Math.pow(2,C-1)*Math.pow(2,l),h=0));l>=8;e[s+N]=m&255,N+=O,m/=256,l-=8);for(h=h<<l|m,v+=l;v>0;e[s+N]=h&255,N+=O,h/=256,v-=8);e[s+N-O]|=pe*128};/*!
103
103
  * The buffer module from node.js, for the browser.
104
104
  *
105
105
  * @author Feross Aboukhadijeh <https://feross.org>
106
106
  * @license MIT
107
- */(function(e){const a=ae,s=de,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=jo,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:d,ArrayBuffer:h,SharedArrayBuffer:m}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const o=new d(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,d.prototype),Object.setPrototypeOf(o,n),o.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function v(o){if(o>l)throw new RangeError('The value "'+o+'" is invalid for option "size"');const n=new d(o);return Object.setPrototypeOf(n,p.prototype),n}function p(o,n,i){if(typeof o=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(o)}return C(o,n,i)}p.poolSize=8192;function C(o,n,i){if(typeof o=="string")return pe(o,n);if(h.isView(o))return Po(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(q(o,h)||o&&q(o.buffer,h)||typeof m<"u"&&(q(o,m)||o&&q(o.buffer,m)))return _e(o,n,i);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=o.valueOf&&o.valueOf();if(r!=null&&r!==o)return p.from(r,n,i);const c=xo(o);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return p.from(o[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}p.from=function(o,n,i){return C(o,n,i)},Object.setPrototypeOf(p.prototype,d.prototype),Object.setPrototypeOf(p,d);function D(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function N(o,n,i){return D(o),o<=0?v(o):n!==void 0?typeof i=="string"?v(o).fill(n,i):v(o).fill(n):v(o)}p.alloc=function(o,n,i){return N(o,n,i)};function O(o){return D(o),v(o<0?0:me(o)|0)}p.allocUnsafe=function(o){return O(o)},p.allocUnsafeSlow=function(o){return O(o)};function pe(o,n){if((typeof n!="string"||n==="")&&(n="utf8"),!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const i=He(o,n)|0;let r=v(i);const c=r.write(o,n);return c!==i&&(r=r.slice(0,c)),r}function ue(o){const n=o.length<0?0:me(o.length)|0,i=v(n);for(let r=0;r<n;r+=1)i[r]=o[r]&255;return i}function Po(o){if(q(o,d)){const n=new d(o);return _e(n.buffer,n.byteOffset,n.byteLength)}return ue(o)}function _e(o,n,i){if(n<0||o.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');let r;return n===void 0&&i===void 0?r=new d(o):i===void 0?r=new d(o,n):r=new d(o,n,i),Object.setPrototypeOf(r,p.prototype),r}function xo(o){if(p.isBuffer(o)){const n=me(o.length)|0,i=v(n);return i.length===0||o.copy(i,0,0,n),i}if(o.length!==void 0)return typeof o.length!="number"||fe(o.length)?v(0):ue(o);if(o.type==="Buffer"&&Array.isArray(o.data))return ue(o.data)}function me(o){if(o>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return o|0}function jo(o){return+o!=o&&(o=0),p.alloc(+o)}p.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==p.prototype},p.compare=function(n,i){if(q(n,d)&&(n=p.from(n,n.offset,n.byteLength)),q(i,d)&&(i=p.from(i,i.offset,i.byteLength)),!p.isBuffer(n)||!p.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let r=n.length,c=i.length;for(let _=0,g=Math.min(r,c);_<g;++_)if(n[_]!==i[_]){r=n[_],c=i[_];break}return r<c?-1:c<r?1:0},p.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return p.alloc(0);let r;if(i===void 0)for(i=0,r=0;r<n.length;++r)i+=n[r].length;const c=p.allocUnsafe(i);let _=0;for(r=0;r<n.length;++r){let g=n[r];if(q(g,d))_+g.length>c.length?(p.isBuffer(g)||(g=p.from(g)),g.copy(c,_)):d.prototype.set.call(c,g,_);else if(p.isBuffer(g))g.copy(c,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=g.length}return c};function He(o,n){if(p.isBuffer(o))return o.length;if(h.isView(o)||q(o,h))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);const i=o.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&i===0)return 0;let c=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return he(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return it(o).length;default:if(c)return r?-1:he(o).length;n=(""+n).toLowerCase(),c=!0}}p.byteLength=He;function No(o,n,i){let r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(o||(o="utf8");;)switch(o){case"hex":return $o(this,n,i);case"utf8":case"utf-8":return We(this,n,i);case"ascii":return Fo(this,n,i);case"latin1":case"binary":return Ko(this,n,i);case"base64":return Uo(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ho(this,n,i);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),r=!0}}p.prototype._isBuffer=!0;function F(o,n,i){const r=o[n];o[n]=o[i],o[i]=r}p.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<n;i+=2)F(this,i,i+1);return this},p.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<n;i+=4)F(this,i,i+3),F(this,i+1,i+2);return this},p.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<n;i+=8)F(this,i,i+7),F(this,i+1,i+6),F(this,i+2,i+5),F(this,i+3,i+4);return this},p.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?We(this,0,n):No.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(n){if(!p.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:p.compare(this,n)===0},p.prototype.inspect=function(){let n="";const i=e.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(n,i,r,c,_){if(q(n,d)&&(n=p.from(n,n.offset,n.byteLength)),!p.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),r===void 0&&(r=n?n.length:0),c===void 0&&(c=0),_===void 0&&(_=this.length),i<0||r>n.length||c<0||_>this.length)throw new RangeError("out of range index");if(c>=_&&i>=r)return 0;if(c>=_)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,c>>>=0,_>>>=0,this===n)return 0;let g=_-c,y=r-i;const S=Math.min(g,y),z=this.slice(c,_),L=n.slice(i,r);for(let E=0;E<S;++E)if(z[E]!==L[E]){g=z[E],y=L[E];break}return g<y?-1:y<g?1:0};function Qe(o,n,i,r,c){if(o.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,fe(i)&&(i=c?0:o.length-1),i<0&&(i=o.length+i),i>=o.length){if(c)return-1;i=o.length-1}else if(i<0)if(c)i=0;else return-1;if(typeof n=="string"&&(n=p.from(n,r)),p.isBuffer(n))return n.length===0?-1:Ge(o,n,i,r,c);if(typeof n=="number")return n=n&255,typeof d.prototype.indexOf=="function"?c?d.prototype.indexOf.call(o,n,i):d.prototype.lastIndexOf.call(o,n,i):Ge(o,[n],i,r,c);throw new TypeError("val must be string, number or Buffer")}function Ge(o,n,i,r,c){let _=1,g=o.length,y=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(o.length<2||n.length<2)return-1;_=2,g/=2,y/=2,i/=2}function S(L,E){return _===1?L[E]:L.readUInt16BE(E*_)}let z;if(c){let L=-1;for(z=i;z<g;z++)if(S(o,z)===S(n,L===-1?0:z-L)){if(L===-1&&(L=z),z-L+1===y)return L*_}else L!==-1&&(z-=z-L),L=-1}else for(i+y>g&&(i=g-y),z=i;z>=0;z--){let L=!0;for(let E=0;E<y;E++)if(S(o,z+E)!==S(n,E)){L=!1;break}if(L)return z}return-1}p.prototype.includes=function(n,i,r){return this.indexOf(n,i,r)!==-1},p.prototype.indexOf=function(n,i,r){return Qe(this,n,i,r,!0)},p.prototype.lastIndexOf=function(n,i,r){return Qe(this,n,i,r,!1)};function Vo(o,n,i,r){i=Number(i)||0;const c=o.length-i;r?(r=Number(r),r>c&&(r=c)):r=c;const _=n.length;r>_/2&&(r=_/2);let g;for(g=0;g<r;++g){const y=parseInt(n.substr(g*2,2),16);if(fe(y))return g;o[i+g]=y}return g}function Mo(o,n,i,r){return re(he(n,o.length-i),o,i,r)}function qo(o,n,i,r){return re(Yo(n),o,i,r)}function Ro(o,n,i,r){return re(it(n),o,i,r)}function Do(o,n,i,r){return re(Xo(n,o.length-i),o,i,r)}p.prototype.write=function(n,i,r,c){if(i===void 0)c="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")c=i,r=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-i;if((r===void 0||r>_)&&(r=_),n.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let g=!1;for(;;)switch(c){case"hex":return Vo(this,n,i,r);case"utf8":case"utf-8":return Mo(this,n,i,r);case"ascii":case"latin1":case"binary":return qo(this,n,i,r);case"base64":return Ro(this,n,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Do(this,n,i,r);default:if(g)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),g=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uo(o,n,i){return n===0&&i===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(n,i))}function We(o,n,i){i=Math.min(o.length,i);const r=[];let c=n;for(;c<i;){const _=o[c];let g=null,y=_>239?4:_>223?3:_>191?2:1;if(c+y<=i){let S,z,L,E;switch(y){case 1:_<128&&(g=_);break;case 2:S=o[c+1],(S&192)===128&&(E=(_&31)<<6|S&63,E>127&&(g=E));break;case 3:S=o[c+1],z=o[c+2],(S&192)===128&&(z&192)===128&&(E=(_&15)<<12|(S&63)<<6|z&63,E>2047&&(E<55296||E>57343)&&(g=E));break;case 4:S=o[c+1],z=o[c+2],L=o[c+3],(S&192)===128&&(z&192)===128&&(L&192)===128&&(E=(_&15)<<18|(S&63)<<12|(z&63)<<6|L&63,E>65535&&E<1114112&&(g=E))}}g===null?(g=65533,y=1):g>65535&&(g-=65536,r.push(g>>>10&1023|55296),g=56320|g&1023),r.push(g),c+=y}return Oo(r)}const Ye=4096;function Oo(o){const n=o.length;if(n<=Ye)return String.fromCharCode.apply(String,o);let i="",r=0;for(;r<n;)i+=String.fromCharCode.apply(String,o.slice(r,r+=Ye));return i}function Fo(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]&127);return r}function Ko(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]);return r}function $o(o,n,i){const r=o.length;(!n||n<0)&&(n=0),(!i||i<0||i>r)&&(i=r);let c="";for(let _=n;_<i;++_)c+=Zo[o[_]];return c}function Ho(o,n,i){const r=o.slice(n,i);let c="";for(let _=0;_<r.length-1;_+=2)c+=String.fromCharCode(r[_]+r[_+1]*256);return c}p.prototype.slice=function(n,i){const r=this.length;n=~~n,i=i===void 0?r:~~i,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<n&&(i=n);const c=this.subarray(n,i);return Object.setPrototypeOf(c,p.prototype),c};function T(o,n,i){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+n>i)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return c},p.prototype.readUintBE=p.prototype.readUIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n+--i],_=1;for(;i>0&&(_*=256);)c+=this[n+--i]*_;return c},p.prototype.readUint8=p.prototype.readUInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]|this[n+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]<<8|this[n+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},p.prototype.readBigUInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,_=this[++n]+this[++n]*2**8+this[++n]*2**16+r*2**24;return BigInt(c)+(BigInt(_)<<BigInt(32))}),p.prototype.readBigUInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],_=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r;return(BigInt(c)<<BigInt(32))+BigInt(_)}),p.prototype.readIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return _*=128,c>=_&&(c-=Math.pow(2,8*i)),c},p.prototype.readIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=i,_=1,g=this[n+--c];for(;c>0&&(_*=256);)g+=this[n+--c]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*i)),g},p.prototype.readInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},p.prototype.readInt16LE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r},p.prototype.readInt16BE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r},p.prototype.readInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},p.prototype.readInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},p.prototype.readBigInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(r<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),p.prototype.readBigInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=(i<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(c)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r)}),p.prototype.readFloatLE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!0,23,4)},p.prototype.readFloatBE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!1,23,4)},p.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!0,52,8)},p.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!1,52,8)};function A(o,n,i,r,c,_){if(!p.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>c||n<_)throw new RangeError('"value" argument is out of bounds');if(i+r>o.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=1,g=0;for(this[i]=n&255;++g<r&&(_*=256);)this[i+g]=n/_&255;return i+r},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=r-1,g=1;for(this[i+_]=n&255;--_>=0&&(g*=256);)this[i+_]=n/g&255;return i+r},p.prototype.writeUint8=p.prototype.writeUInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,255,0),this[i]=n&255,i+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function Xe(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,i}function Ze(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i+7]=_,_=_>>8,o[i+6]=_,_=_>>8,o[i+5]=_,_=_>>8,o[i+4]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i+3]=g,g=g>>8,o[i+2]=g,g=g>>8,o[i+1]=g,g=g>>8,o[i]=g,i+8}p.prototype.writeBigUInt64LE=U(function(n,i=0){return Xe(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=U(function(n,i=0){return Ze(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=0,g=1,y=0;for(this[i]=n&255;++_<r&&(g*=256);)n<0&&y===0&&this[i+_-1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=r-1,g=1,y=0;for(this[i+_]=n&255;--_>=0&&(g*=256);)n<0&&y===0&&this[i+_+1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},p.prototype.writeInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},p.prototype.writeInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},p.prototype.writeBigInt64LE=U(function(n,i=0){return Xe(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=U(function(n,i=0){return Ze(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(o,n,i,r,c,_){if(i+r>o.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function et(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,4),s.write(o,n,i,r,23,4),i+4}p.prototype.writeFloatLE=function(n,i,r){return et(this,n,i,!0,r)},p.prototype.writeFloatBE=function(n,i,r){return et(this,n,i,!1,r)};function tt(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,8),s.write(o,n,i,r,52,8),i+8}p.prototype.writeDoubleLE=function(n,i,r){return tt(this,n,i,!0,r)},p.prototype.writeDoubleBE=function(n,i,r){return tt(this,n,i,!1,r)},p.prototype.copy=function(n,i,r,c){if(!p.isBuffer(n))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),i>=n.length&&(i=n.length),i||(i=0),c>0&&c<r&&(c=r),c===r||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),n.length-i<c-r&&(c=n.length-i+r);const _=c-r;return this===n&&typeof d.prototype.copyWithin=="function"?this.copyWithin(i,r,c):d.prototype.set.call(n,this.subarray(r,c),i),_},p.prototype.fill=function(n,i,r,c){if(typeof n=="string"){if(typeof i=="string"?(c=i,i=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!p.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(n.length===1){const g=n.charCodeAt(0);(c==="utf8"&&g<128||c==="latin1")&&(n=g)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,n||(n=0);let _;if(typeof n=="number")for(_=i;_<r;++_)this[_]=n;else{const g=p.isBuffer(n)?n:p.from(n,c),y=g.length;if(y===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(_=0;_<r-i;++_)this[_+i]=g[_%y]}return this};const Q={};function ge(o,n,i){Q[o]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(o,n){return`The "${o}" argument must be of type number. Received type ${typeof n}`},TypeError),ge("ERR_OUT_OF_RANGE",function(o,n,i){let r=`The value of "${o}" is out of range.`,c=i;return Number.isInteger(i)&&Math.abs(i)>2**32?c=nt(String(i)):typeof i=="bigint"&&(c=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(c=nt(c)),c+="n"),r+=` It must be ${n}. Received ${c}`,r},RangeError);function nt(o){let n="",i=o.length;const r=o[0]==="-"?1:0;for(;i>=r+4;i-=3)n=`_${o.slice(i-3,i)}${n}`;return`${o.slice(0,i)}${n}`}function Qo(o,n,i){G(n,"offset"),(o[n]===void 0||o[n+i]===void 0)&&X(n,o.length-(i+1))}function at(o,n,i,r,c,_){if(o>i||o<n){const g=typeof n=="bigint"?"n":"";let y;throw _>3?n===0||n===BigInt(0)?y=`>= 0${g} and < 2${g} ** ${(_+1)*8}${g}`:y=`>= -(2${g} ** ${(_+1)*8-1}${g}) and < 2 ** ${(_+1)*8-1}${g}`:y=`>= ${n}${g} and <= ${i}${g}`,new Q.ERR_OUT_OF_RANGE("value",y,o)}Qo(r,c,_)}function G(o,n){if(typeof o!="number")throw new Q.ERR_INVALID_ARG_TYPE(n,"number",o)}function X(o,n,i){throw Math.floor(o)!==o?(G(o,i),new Q.ERR_OUT_OF_RANGE(i||"offset","an integer",o)):n<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${n}`,o)}const Go=/[^+/0-9A-Za-z-_]/g;function Wo(o){if(o=o.split("=")[0],o=o.trim().replace(Go,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function he(o,n){n=n||1/0;let i;const r=o.length;let c=null;const _=[];for(let g=0;g<r;++g){if(i=o.charCodeAt(g),i>55295&&i<57344){if(!c){if(i>56319){(n-=3)>-1&&_.push(239,191,189);continue}else if(g+1===r){(n-=3)>-1&&_.push(239,191,189);continue}c=i;continue}if(i<56320){(n-=3)>-1&&_.push(239,191,189),c=i;continue}i=(c-55296<<10|i-56320)+65536}else c&&(n-=3)>-1&&_.push(239,191,189);if(c=null,i<128){if((n-=1)<0)break;_.push(i)}else if(i<2048){if((n-=2)<0)break;_.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;_.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;_.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return _}function Yo(o){const n=[];for(let i=0;i<o.length;++i)n.push(o.charCodeAt(i)&255);return n}function Xo(o,n){let i,r,c;const _=[];for(let g=0;g<o.length&&!((n-=2)<0);++g)i=o.charCodeAt(g),r=i>>8,c=i%256,_.push(c),_.push(r);return _}function it(o){return a.toByteArray(Wo(o))}function re(o,n,i,r){let c;for(c=0;c<r&&!(c+i>=n.length||c>=o.length);++c)n[c+i]=o[c];return c}function q(o,n){return o instanceof n||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===n.name}function fe(o){return o!==o}const Zo=function(){const o="0123456789abcdef",n=new Array(256);for(let i=0;i<16;++i){const r=i*16;for(let c=0;c<16;++c)n[r+c]=o[i]+o[c]}return n}();function U(o){return typeof BigInt>"u"?Jo:o}function Jo(){throw new Error("BigInt not supported")}})(je);const jt=je.Buffer,ie={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=$.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await $.pkceChallengeFromVerifier(this.code_verifier);const a=Y.Capacitor.getPlatform();let s=jt.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${s}`;let u=this;window.addEventListener("message",async l=>{var d;if(!this.allowedOrigins.includes(l.origin))return console.log("Origin is not allowed!");if(l.data.type==="saml"&&l.data.code){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:l.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await u.exchangeAuthCode({code:l.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await J.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var s;let e,a={type:"saml"};if(this.$route.query.code&&(a.code=this.$route.query.code),window.opener)window.opener.postMessage(a,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),console.log(this.display,{code:e}),e){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Nt={name:"AuthLogin",mixins:[Be,Pe,xe,te,ne,ie,B,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await t.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=e.length;let s="";const u=new Uint32Array(32);return window.crypto.getRandomValues(u),u.forEach(l=>{s+=e.charAt(l%a)}),s},refreshQrCode(){var e,a;this.qrCode&&((a=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||a.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new ct({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[e,a]=await w(ce.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);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))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await t.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&k.$emit("ssoEvent",{name:"setLoading",data:!1}),k.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let a={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?a.email=this.emailOrUsername:a.username=this.emailOrUsername;const[s,u]=await w(this.login(a));s&&console.error(s),this.submitted=!1,u===!0&&(this.emailOrUsername="",this.password="")},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vt=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Mt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},qt=t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),Rt={key:1},Dt={class:"page-login-field half-top"},Ut=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ot=["placeholder"],Ft=t.createElementVNode("em",null,null,-1),Kt={class:"page-login-field half-bottom"},$t=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ht=["type","placeholder"],Qt={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Gt={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Wt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Yt={key:0},Xt={key:1,class:"button--loading button__loader"},Zt=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Jt=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),en={key:0},tn={key:1,class:"button--loading button__loader"},nn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),an={key:0},on={key:1,class:"button--loading-black button__loader"},rn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),sn={key:0},cn={key:1,class:"button--loading-black button__loader"},ln=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),dn={key:0},pn={key:1,class:"button--loading-black button__loader"},un=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),_n={key:0},mn={key:1,class:"button--loading-black button__loader"},gn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),hn={key:0},fn={key:1,class:"button--loading-black button__loader"},kn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),yn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),bn={class:"close-text center-text half-top color-black"},wn=t.createElementVNode("br",null,null,-1),vn={class:"",href:"https://tapni.co/policies/terms-of-service"},En={href:"https://tapni.co/policies/privacy-policy"},zn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Sn={key:9,class:"page-login-links"},Ln=t.createElementVNode("div",{class:"clear"},null,-1),Cn={class:"forgot center-text pointer small-top"},Tn=t.createElementVNode("br",null,null,-1),In=t.createElementVNode("div",{class:"clear"},null,-1);function An(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[13]||(a[13]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vt)):t.createCommentVNode("",!0),t.createElementVNode("h1",Mt,t.toDisplayString(this.ssoLang[this.appLanguage].login),1),qt,d.displayFormLogin?(t.openBlock(),t.createElementBlock("span",Rt,[t.createElementVNode("div",Dt,[Ut,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.emailOrUsername=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Ot),[[t.vModelText,l.emailOrUsername]]),Ft]),t.createElementVNode("div",Kt,[$t,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ht),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Qt,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Gt,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Wt,[l.submitted?(t.openBlock(),t.createElementBlock("span",Xt)):(t.openBlock(),t.createElementBlock("span",Yt,t.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):t.createCommentVNode("",!0),Zt,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[5]||(a[5]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[Jt,e.appleLoad?(t.openBlock(),t.createElementBlock("span",tn)):(t.openBlock(),t.createElementBlock("span",en,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):t.createCommentVNode("",!0),e.displayGoogleLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[6]||(a[6]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[nn,e.googleLoad?(t.openBlock(),t.createElementBlock("span",on)):(t.openBlock(),t.createElementBlock("span",an,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):t.createCommentVNode("",!0),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[7]||(a[7]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[rn,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",cn)):(t.openBlock(),t.createElementBlock("span",sn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):t.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:5,onClick:a[8]||(a[8]=(...m)=>e.microsoftLogin&&e.microsoftLogin(...m)),class:"button-center button button-90 google-button pointer"},[ln,e.microsoftLoad?(t.openBlock(),t.createElementBlock("span",pn)):(t.openBlock(),t.createElementBlock("span",dn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:6,onClick:a[9]||(a[9]=(...m)=>e.ssoLogin&&e.ssoLogin(...m)),class:"button-center button button-90 google-button pointer"},[un,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",mn)):(t.openBlock(),t.createElementBlock("span",_n,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(t.openBlock(),t.createElementBlock("a",{key:7,onClick:a[10]||(a[10]=m=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[gn,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",hn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(t.openBlock(),t.createElementBlock("span",fn))])):t.createCommentVNode("",!0),d.displayFormLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:8,onClick:a[11]||(a[11]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[kn,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),yn,t.createElementVNode("p",bn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),wn,t.createElementVNode("a",vn,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),t.createElementVNode("a",En,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),zn,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:10,class:"page-login-links",onClick:a[12]||(a[12]=(...m)=>d.createAccountModal&&d.createAccountModal(...m))},[t.createElementVNode("a",Cn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),Tn,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),In])):(t.openBlock(),t.createElementBlock("div",Sn,[d.displayRegisterLogin?(t.openBlock(),t.createBlock(h,{key:0,class:"forgot float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):t.createCommentVNode("",!0),d.displayResetPasswordLogin?(t.openBlock(),t.createBlock(h,{key:1,class:"create float-left",to:"/reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):t.createCommentVNode("",!0),Ln]))],36)}const Ve=V(Nt,[["render",An]]),Bn={name:"AuthRegister",mixins:[Be,Pe,xe,te,B],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&k.$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))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},a=await this.register(e);this.submitted=!1,a.data&&a.data.success&&(a.data.message==="SUCCESS_REGISTER"?(this.isModal?k.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):a.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...a,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...a,isModal:e.isModal})))},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Pn=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],xn={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},jn={class:"half-bottom small-top center-text color-black"},Nn={key:0},Vn=t.createElementVNode("br",null,null,-1),Mn={key:1},qn={class:"page-login-field half-top"},Rn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Dn=["placeholder"],Un=t.createElementVNode("em",null,null,-1),On={class:"page-login-field half-top"},Fn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Kn=["placeholder","disabled"],$n=t.createElementVNode("em",null,null,-1),Hn={class:"page-login-field half-top half-bottom"},Qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Gn=["type","placeholder"],Wn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Yn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Xn={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Zn={key:0},Jn={key:1,class:"button--loading button__loader"},ea=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ta=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),na={key:0},aa={key:1,class:"button--loading button__loader"},ia=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading button__loader"},sa=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading button__loader"},da=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ua={class:"close-text center-text half-top color-black"},_a=t.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:5,class:"page-login-links"},ka=t.createElementVNode("div",{class:"clear"},null,-1),ya={class:"forgot center-text pointer small-top"},ba=t.createElementVNode("br",null,null,-1),wa=t.createElementVNode("div",{class:"clear"},null,-1);function va(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[12]||(a[12]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Pn)):t.createCommentVNode("",!0),t.createElementVNode("h1",xn,t.toDisplayString(e.ssoLang[this.appLanguage].register),1),t.createElementVNode("p",jn,[l.usernameRegister?(t.openBlock(),t.createElementBlock("span",Nn,[t.createTextVNode(" t.link/"+t.toDisplayString(l.username)+" "+t.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),Vn])):t.createCommentVNode("",!0)]),l.emailLogin?(t.openBlock(),t.createElementBlock("span",Mn,[t.createElementVNode("div",qn,[Rn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Dn),[[t.vModelText,l.email]]),Un]),t.createElementVNode("div",On,[Fn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.username=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:l.usernameRegister,class:t.normalizeClass({"input-disabled":l.usernameRegister})},null,42,Kn),[[t.vModelText,l.username]]),$n]),t.createElementVNode("div",Hn,[Qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Gn),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Wn,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Yn,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Xn,[l.submitted?(t.openBlock(),t.createElementBlock("span",Jn)):(t.openBlock(),t.createElementBlock("span",Zn,t.toDisplayString(l.formButtonText),1))])])):t.createCommentVNode("",!0),ea,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[7]||(a[7]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ta,e.appleLoad?(t.openBlock(),t.createElementBlock("span",aa)):(t.openBlock(),t.createElementBlock("span",na,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):t.createCommentVNode("",!0),t.createElementVNode("a",{onClick:a[8]||(a[8]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ia,e.googleLoad?(t.openBlock(),t.createElementBlock("span",ra)):(t.openBlock(),t.createElementBlock("span",oa,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[9]||(a[9]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[sa,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",la)):(t.openBlock(),t.createElementBlock("span",ca,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):t.createCommentVNode("",!0),l.emailLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[10]||(a[10]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),pa,t.createElementVNode("p",ua,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),_a,t.createElementVNode("a",ma,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),t.createElementVNode("a",ga,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:6,class:"page-login-links",onClick:a[11]||(a[11]=(...m)=>d.loginAccountModal&&d.loginAccountModal(...m))},[t.createElementVNode("a",ya,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),ba,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),wa])):(t.openBlock(),t.createElementBlock("div",fa,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ka]))],36)}const Me=V(Bn,[["render",va]]),Ea={name:"AuthVerify",mixins:[B],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route&&this.init()},methods:{init(){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),k.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let a=await this.verify(e);this.submitted=!1,a&&a.data&&a.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",k.$emit("closeModal")),await this.loginSetup(a),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+a.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,a){!a&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},j=e=>(t.pushScopeId("data-v-af1531aa"),e=e(),t.popScopeId(),e),za=[j(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],Sa={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},La=j(()=>t.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),Ca={class:"page-login-field half-top"},Ta=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ia=["placeholder"],Aa=j(()=>t.createElementVNode("em",null,null,-1)),Ba={class:"page-login-field half-top"},Pa=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),xa=["placeholder"],ja=j(()=>t.createElementVNode("em",null,null,-1)),Na={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Va={key:0,class:"uppercase"},Ma={key:1,class:"button--loading button__loader"},qa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Ra={class:"close-text center-text half-top color-black"},Da=["innerHTML"],Ua=j(()=>t.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Oa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Fa={key:1,class:"page-login-links"},Ka=j(()=>t.createElementVNode("div",{class:"clear"},null,-1)),$a={class:"forgot center-text pointer small-top"},Ha=j(()=>t.createElementVNode("br",null,null,-1)),Qa=j(()=>t.createElementVNode("div",{class:"clear"},null,-1));function Ga(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[6]||(a[6]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},za)):t.createCommentVNode("",!0),t.createElementVNode("h1",Sa,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),La,t.createElementVNode("div",Ca,[Ta,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ia),[[t.vModelText,l.email]]),Aa]),t.createElementVNode("div",Ba,[Pa,t.withDirectives(t.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":a[3]||(a[3]=m=>l.code=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,xa),[[t.vModelText,l.code]]),ja]),t.createElementVNode("button",Na,[l.submitted?(t.openBlock(),t.createElementBlock("span",Ma)):(t.openBlock(),t.createElementBlock("span",Va,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),qa,t.createElementVNode("p",Ra,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,Da),Ua]),Oa,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:2,class:"page-login-links",onClick:a[5]||(a[5]=(...m)=>d.registerAccountModal&&d.registerAccountModal(...m))},[t.createElementVNode("a",$a,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),Ha,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Qa])):(t.openBlock(),t.createElementBlock("div",Fa,[t.createVNode(h,{class:"create float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ka]))],36)}const qe=V(Ea,[["render",Ga],["__scopeId","data-v-af1531aa"]]),Wa={name:"AuthReset",mixins:[B],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){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),k.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},a=await this.changePassword(e);this.submitted=!1,a===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},R=e=>(t.pushScopeId("data-v-4f85b89a"),e=e(),t.popScopeId(),e),Ya={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Xa=R(()=>t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Za={class:"page-login-field half-top color-black"},Ja=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),ei=["placeholder"],ti=R(()=>t.createElementVNode("em",null,null,-1)),ni={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ai={key:0,class:"uppercase"},ii={key:1,class:"button--loading button__loader"},oi=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),ri={class:"close-text center-text half-top color-black"},si=["innerHTML"],ci=["href"],li=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),di={class:"page-login-links"},pi=R(()=>t.createElementVNode("div",{class:"clear"},null,-1)),ui={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},_i={class:"half-bottom small-top center-text color-black"},mi={class:"page-login-field half-top"},gi=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),hi=["type","placeholder"],fi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ki={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},yi={class:"page-login-field half-top"},bi=R(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),wi=["type","placeholder"],vi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ei={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},zi={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Si={key:0,class:"uppercase"},Li={key:1,class:"button--loading button__loader"},Ci=R(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Ti={class:"close-text center-text half-top color-black"},Ii=["innerHTML"],Ai=["href"];function Bi(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return l.passwordChange?(t.openBlock(),t.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:a[7]||(a[7]=t.withModifiers((...m)=>d.changePw&&d.changePw(...m),["prevent"]))},[t.createElementVNode("h3",ui,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),t.createElementVNode("p",_i,t.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),t.createElementVNode("div",mi,[gi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,hi),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword)},[t.withDirectives(t.createElementVNode("img",fi,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",ki,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("div",yi,[bi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.passwordRepeat=m),type:l.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,wi),[[t.vModelDynamic,l.passwordRepeat]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword2=!l.revealPassword2)},[t.withDirectives(t.createElementVNode("img",vi,null,512),[[t.vShow,!l.revealPassword2]]),t.withDirectives(t.createElementVNode("img",Ei,null,512),[[t.vShow,l.revealPassword2]])])]),t.createElementVNode("button",zi,[l.submitted?(t.openBlock(),t.createElementBlock("span",Li)):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),Ci,t.createElementVNode("p",Ti,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,Ii),t.createTextVNode(),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Ai)])],32)):(t.openBlock(),t.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:a[2]||(a[2]=t.withModifiers((...m)=>d.resetEmail&&d.resetEmail(...m),["prevent"])),autocomplete:"on"},[t.createElementVNode("h3",Ya,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Xa,t.createElementVNode("div",Za,[Ja,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[0]||(a[0]=m=>l.email=m),onKeydown:a[1]||(a[1]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,ei),[[t.vModelText,l.email]]),ti]),t.createElementVNode("button",ni,[l.submitted?(t.openBlock(),t.createElementBlock("span",ii)):(t.openBlock(),t.createElementBlock("span",ai,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),oi,t.createElementVNode("p",ri,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,si),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,ci)]),li,t.createElementVNode("div",di,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),pi])],32))}const Re=V(Wa,[["render",Bi],["__scopeId","data-v-4f85b89a"]]),Pi={name:"AuthCallback",mixins:[ne,ie,B],data(){return{}},async mounted(){if(console.log("ee"),this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let e=lt.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},xi={class:"page-login content-boxed content-boxed-padding"},ji={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ni=t.createElementVNode("br",null,null,-1),Vi={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Mi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",xi,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(t.openBlock(),t.createElementBlock("h5",ji,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Ni,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),t.createElementVNode("span",{onClick:a[0]||(a[0]=(...h)=>d.inAppRedirect&&d.inAppRedirect(...h)),style:{color:"blue",cursor:"pointer"}},t.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),t.createTextVNode(".")])):(t.openBlock(),t.createElementBlock("h4",Vi,t.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const De=V(Pi,[["render",Mi]]),qi={name:"ModalOverlay",mixins:[B],data(){return{toggle:!1}},mounted(){k.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),k.$on("openModalOverlay",()=>{this.toggle=!0}),k.$on("toggleLanguageModal",this.toggleModal),k.$on("toggleSSOModal",this.toggleModal),k.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var e,a;!this.isLoggedIn&&((a=(e=this.user)==null?void 0:e.lead_form)!=null&&a.forceFilling)||k.$emit("closeModal")}}};function Ri(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":l.toggle}),onClick:a[0]||(a[0]=(...h)=>d.toggleEmit&&d.toggleEmit(...h))},null,2)}const Ue=V(qi,[["render",Ri],["__scopeId","data-v-a128c2fa"]]),Di={name:"SSO",mixins:[te,ne,ie,B],data(){return{toggle:!1,email:"",loading:!1}},mounted(){k.$on("toggleSSOModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let a;if(!(!e||e.error))if(a=Object.keys(e.sso),a.length)a.length<=1?(a[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),a[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),a[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),k.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Ui=[(e=>(t.pushScopeId("data-v-11f19a09"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Oi={class:"bold center-text color-black half-top half-bottom"},Fi=["placeholder"],Ki={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},$i={key:0},Hi={key:1,class:"button--loading button__loader"};function Qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("form",{onSubmit:a[3]||(a[3]=t.withModifiers((...h)=>d.submit&&d.submit(...h),["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...h)=>d.forceClose&&d.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Ui),t.createElementVNode("h3",Oi,t.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=h=>l.email=h),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Fi),[[t.vModelText,l.email]])]),t.createElementVNode("button",Ki,[l.loading?(t.openBlock(),t.createElementBlock("span",Hi)):(t.openBlock(),t.createElementBlock("span",$i,t.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const Oe=V(Di,[["render",Qi],["__scopeId","data-v-11f19a09"]]),Gi={name:"SSOPick",mixins:[te,ne,ie,B],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){k.$on("toggleSSOPickModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOPickModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){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}}},oe=e=>(t.pushScopeId("data-v-4f821f65"),e=e(),t.popScopeId(),e),Wi=[oe(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Yi={class:"bold center-text color-black half-top half-bottom"},Xi=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Zi={key:0},Ji={key:1,class:"button--loading button__loader"},eo=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),to={key:0},no={key:1,class:"button--loading button__loader"},ao=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),io={key:0},oo={key:1,class:"button--loading button__loader"};function ro(e,a,s,u,l,d){var h,m,f;return t.openBlock(),t.createElementBlock("form",{onSubmit:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...v)=>d.forceClose&&d.forceClose(...v)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wi),t.createElementVNode("h3",Yi,t.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(h=l.sso)!=null&&h.azure?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=v=>d.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Xi,l.azureLoad?(t.openBlock(),t.createElementBlock("span",Ji)):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):t.createCommentVNode("",!0),(m=l.sso)!=null&&m.okta?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:a[2]||(a[2]=v=>d.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[eo,l.oktaLoad?(t.openBlock(),t.createElementBlock("span",no)):(t.openBlock(),t.createElementBlock("span",to,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):t.createCommentVNode("",!0),(f=l.sso)!=null&&f.saml?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[3]||(a[3]=v=>d.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ao,l.samlLoad?(t.openBlock(),t.createElementBlock("span",oo)):(t.openBlock(),t.createElementBlock("span",io,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):t.createCommentVNode("",!0)],34)}const Fe=V(Gi,[["render",ro],["__scopeId","data-v-4f821f65"]]),so={name:"LinkIcon",mixins:[B],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},co=["src","alt"],lo=["src","alt"],po=["src","alt"],uo=["src","alt"];function _o(e,a,s,u,l,d){var h,m;return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["disable-select",s.linkStyle+(s.disabled?" opacity-50":"")]),style:t.normalizeStyle((s.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[t.createElementVNode("span",{class:t.normalizeClass({"user-link-img":!0,"pulse pulse-border":s.pulse,"link-drag":s.editing}),style:t.normalizeStyle({...(h=s.customLinkStyle)==null?void 0:h.linkIcon})},[!s.data.custom_icon&&s.data.type!=="customlink"?(t.openBlock(),t.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+s.data.type+".png",class:"responsive-image",alt:s.data.text,onLoad:a[0]||(a[0]=f=>e.$emit("loaded")),onError:a[1]||(a[1]=f=>e.$emit("loaded"))},null,40,co)):!s.data.custom_icon&&s.data.type==="customlink"&&s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:s.data.text,onLoad:a[2]||(a[2]=f=>e.$emit("loaded")),onError:a[3]||(a[3]=f=>e.$emit("loaded"))},null,40,lo)):!s.data.custom_icon&&s.data.type==="customlink"&&!s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:s.data.text,onLoad:a[4]||(a[4]=f=>e.$emit("loaded")),onError:a[5]||(a[5]=f=>e.$emit("loaded"))},null,40,po)):(t.openBlock(),t.createElementBlock("img",{key:3,src:s.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:s.data.text,onLoad:a[6]||(a[6]=f=>e.$emit("loaded")),onError:a[7]||(a[7]=f=>e.$emit("loaded"))},null,40,uo))],6),t.createElementVNode("span",{class:"link-text link-drag color-black",style:t.normalizeStyle({color:(m=s.customLinkStyle)==null?void 0:m.color})},t.toDisplayString(d.linkText),5)],6)}const mo=V(so,[["render",_o]]),go={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},ho={name:"Language",mixins:[B],components:{LinkIcon:mo},data(){return{toggle:!1}},async mounted(){k.$on("toggleLanguageModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await Z.Device.getLanguageCode():$.getFirstBrowserLanguage();e&&go.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){k._events.toggleLanguageModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){k.$emit("updateLang",e),k.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},fo=[(e=>(t.pushScopeId("data-v-34a6b7b2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 fa color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],ko={class:"bold center-text color-black small-bottom"};function yo(e,a,s,u,l,d){const h=t.resolveComponent("LinkIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},fo),t.createElementVNode("h3",ko,t.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),t.createVNode(h,{onClick:a[1]||(a[1]=m=>d.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[2]||(a[2]=m=>d.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[3]||(a[3]=m=>d.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[4]||(a[4]=m=>d.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[5]||(a[5]=m=>d.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[6]||(a[6]=m=>d.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[7]||(a[7]=m=>d.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[8]||(a[8]=m=>d.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Ke=V(ho,[["render",yo],["__scopeId","data-v-34a6b7b2"]]);var bo={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};const wo={id:"ssoapp"},vo={key:0,href:"/",class:"header-logo"},Eo=[t.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC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//TgHennLPCCKnLvqBCJ554z3bNkFYqvVS2FHd3/yWV3uLSuXa2lXaLOn9baxMGfKRxvAmXpCm2G4e8LbRs9g12jPebYG7oaTv+baw/N1FZz3ZuPev0JxZNuNrA8ekc+4qxMU3cvTiuoSbZgraWzUwIFToJG0zor5ncU+f7mPRxLN+uAYU+N+CdWpGBTcDrJqVgLiXjoTbiTmM62u8tMoFL58em0GupvAmhQif5Yrntwj9kU0RPSUlDef+HzUFIWNBtjRBCCKFCJ4QQQggVOiGEEEKo0AkhhBBChU4IIYRQoRNCCCGECp0QQgghCdKyU6dObAWSGgsWLJBly5axIUgqtGvXTlq3bi21tYxhQypn/vz50r59+2jL33Lq1KnsRZI4VVVV0rJlS9l7771lwoQJbBCSCiNHjpTjjjtO5s1juH5SOVgYtm3bNl6F3rVrV/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],zo={class:"lang-icon"},So={class:"snackbar snackbar-boxed",id:"snackbar"},Lo={class:"snack-body",id:"errorSnack"},Co={id:"errorMessage"},To=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Io={class:"snack-body",id:"successSnack"},Ao={id:"successMessage"},Bo=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],$e=Object.assign({name:"TapniAuth",mixins:[B],data(){return{isSetup:!1}},components:{Language:Ke,SSOPick:Fe,SSO:Oe,ModalOverlay:Ue,AuthCallback:De,AuthReset:Re,AuthVerify:qe,AuthRegister:Me,AuthLogin:Ve,AuthWelcome:Ae},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),k.$on("ssoEvent",this.ssoOutgoingEvent),k.$on("ssoLogout",e=>this.logout(e)),k.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),k.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){k.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){k.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const a=document.createElement("script");a.src=`https://www.google.com/recaptcha/api.js?render=${bo.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(a)}),(a,s)=>(t.openBlock(),t.createElementBlock("div",wo,[a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",vo,Eo)):t.createCommentVNode("",!0),a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:s[0]||(s[0]=(...u)=>a.toggleLanguageModal&&a.toggleLanguageModal(...u)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[t.createElementVNode("span",zo,t.toDisplayString(a.appLanguage.toUpperCase()),1)])):t.createCommentVNode("",!0),t.createVNode(Ue),t.createVNode(Ke),t.createVNode(Oe),t.createVNode(Fe),a.initialized&&a.renderView==="AuthWelcome"?(t.openBlock(),t.createBlock(Ae,{key:2})):a.initialized&&a.renderView==="AuthLogin"?(t.openBlock(),t.createBlock(Ve,{key:3,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthRegister"?(t.openBlock(),t.createBlock(Me,{key:4,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthVerify"?(t.openBlock(),t.createBlock(qe,{key:5,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthReset"?(t.openBlock(),t.createBlock(Re,{key:6})):a.initialized&&a.renderView==="AuthCallback"?(t.openBlock(),t.createBlock(De,{key:7})):(t.openBlock(),t.createBlock(t.unref(W.RouterView),{key:8})),t.createElementVNode("div",So,[t.createElementVNode("p",Lo,[t.createElementVNode("span",Co,t.toDisplayString(a.ssoLang[a.appLanguage].error),1),t.createElementVNode("a",{onClick:s[1]||(s[1]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},To)]),t.createElementVNode("p",Io,[t.createElementVNode("span",Ao,t.toDisplayString(a.ssoLang[a.appLanguage].success),1),t.createElementVNode("a",{onClick:s[2]||(s[2]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Bo)])])]))}});return{TapniAuth:$e,install:e=>{e.component("TapniAuth",$e)}}});
107
+ */(function(e){const a=ae,s=de,u=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=p,e.SlowBuffer=jo,e.INSPECT_MAX_BYTES=50;const l=2147483647;e.kMaxLength=l;const{Uint8Array:d,ArrayBuffer:h,SharedArrayBuffer:m}=globalThis;p.TYPED_ARRAY_SUPPORT=f(),!p.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function f(){try{const o=new d(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,d.prototype),Object.setPrototypeOf(o,n),o.foo()===42}catch{return!1}}Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}});function v(o){if(o>l)throw new RangeError('The value "'+o+'" is invalid for option "size"');const n=new d(o);return Object.setPrototypeOf(n,p.prototype),n}function p(o,n,i){if(typeof o=="number"){if(typeof n=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(o)}return C(o,n,i)}p.poolSize=8192;function C(o,n,i){if(typeof o=="string")return pe(o,n);if(h.isView(o))return Bo(o);if(o==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o);if(R(o,h)||o&&R(o.buffer,h)||typeof m<"u"&&(R(o,m)||o&&R(o.buffer,m)))return _e(o,n,i);if(typeof o=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const r=o.valueOf&&o.valueOf();if(r!=null&&r!==o)return p.from(r,n,i);const c=xo(o);if(c)return c;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof o[Symbol.toPrimitive]=="function")return p.from(o[Symbol.toPrimitive]("string"),n,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof o)}p.from=function(o,n,i){return C(o,n,i)},Object.setPrototypeOf(p.prototype,d.prototype),Object.setPrototypeOf(p,d);function D(o){if(typeof o!="number")throw new TypeError('"size" argument must be of type number');if(o<0)throw new RangeError('The value "'+o+'" is invalid for option "size"')}function N(o,n,i){return D(o),o<=0?v(o):n!==void 0?typeof i=="string"?v(o).fill(n,i):v(o).fill(n):v(o)}p.alloc=function(o,n,i){return N(o,n,i)};function O(o){return D(o),v(o<0?0:me(o)|0)}p.allocUnsafe=function(o){return O(o)},p.allocUnsafeSlow=function(o){return O(o)};function pe(o,n){if((typeof n!="string"||n==="")&&(n="utf8"),!p.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const i=He(o,n)|0;let r=v(i);const c=r.write(o,n);return c!==i&&(r=r.slice(0,c)),r}function ue(o){const n=o.length<0?0:me(o.length)|0,i=v(n);for(let r=0;r<n;r+=1)i[r]=o[r]&255;return i}function Bo(o){if(R(o,d)){const n=new d(o);return _e(n.buffer,n.byteOffset,n.byteLength)}return ue(o)}function _e(o,n,i){if(n<0||o.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<n+(i||0))throw new RangeError('"length" is outside of buffer bounds');let r;return n===void 0&&i===void 0?r=new d(o):i===void 0?r=new d(o,n):r=new d(o,n,i),Object.setPrototypeOf(r,p.prototype),r}function xo(o){if(p.isBuffer(o)){const n=me(o.length)|0,i=v(n);return i.length===0||o.copy(i,0,0,n),i}if(o.length!==void 0)return typeof o.length!="number"||fe(o.length)?v(0):ue(o);if(o.type==="Buffer"&&Array.isArray(o.data))return ue(o.data)}function me(o){if(o>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return o|0}function jo(o){return+o!=o&&(o=0),p.alloc(+o)}p.isBuffer=function(n){return n!=null&&n._isBuffer===!0&&n!==p.prototype},p.compare=function(n,i){if(R(n,d)&&(n=p.from(n,n.offset,n.byteLength)),R(i,d)&&(i=p.from(i,i.offset,i.byteLength)),!p.isBuffer(n)||!p.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(n===i)return 0;let r=n.length,c=i.length;for(let _=0,g=Math.min(r,c);_<g;++_)if(n[_]!==i[_]){r=n[_],c=i[_];break}return r<c?-1:c<r?1:0},p.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(n,i){if(!Array.isArray(n))throw new TypeError('"list" argument must be an Array of Buffers');if(n.length===0)return p.alloc(0);let r;if(i===void 0)for(i=0,r=0;r<n.length;++r)i+=n[r].length;const c=p.allocUnsafe(i);let _=0;for(r=0;r<n.length;++r){let g=n[r];if(R(g,d))_+g.length>c.length?(p.isBuffer(g)||(g=p.from(g)),g.copy(c,_)):d.prototype.set.call(c,g,_);else if(p.isBuffer(g))g.copy(c,_);else throw new TypeError('"list" argument must be an Array of Buffers');_+=g.length}return c};function He(o,n){if(p.isBuffer(o))return o.length;if(h.isView(o)||R(o,h))return o.byteLength;if(typeof o!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof o);const i=o.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&i===0)return 0;let c=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return he(o).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i*2;case"hex":return i>>>1;case"base64":return it(o).length;default:if(c)return r?-1:he(o).length;n=(""+n).toLowerCase(),c=!0}}p.byteLength=He;function No(o,n,i){let r=!1;if((n===void 0||n<0)&&(n=0),n>this.length||((i===void 0||i>this.length)&&(i=this.length),i<=0)||(i>>>=0,n>>>=0,i<=n))return"";for(o||(o="utf8");;)switch(o){case"hex":return $o(this,n,i);case"utf8":case"utf-8":return We(this,n,i);case"ascii":return Fo(this,n,i);case"latin1":case"binary":return Ko(this,n,i);case"base64":return Uo(this,n,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ho(this,n,i);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(o+"").toLowerCase(),r=!0}}p.prototype._isBuffer=!0;function F(o,n,i){const r=o[n];o[n]=o[i],o[i]=r}p.prototype.swap16=function(){const n=this.length;if(n%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<n;i+=2)F(this,i,i+1);return this},p.prototype.swap32=function(){const n=this.length;if(n%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<n;i+=4)F(this,i,i+3),F(this,i+1,i+2);return this},p.prototype.swap64=function(){const n=this.length;if(n%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<n;i+=8)F(this,i,i+7),F(this,i+1,i+6),F(this,i+2,i+5),F(this,i+3,i+4);return this},p.prototype.toString=function(){const n=this.length;return n===0?"":arguments.length===0?We(this,0,n):No.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(n){if(!p.isBuffer(n))throw new TypeError("Argument must be a Buffer");return this===n?!0:p.compare(this,n)===0},p.prototype.inspect=function(){let n="";const i=e.INSPECT_MAX_BYTES;return n=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(n+=" ... "),"<Buffer "+n+">"},u&&(p.prototype[u]=p.prototype.inspect),p.prototype.compare=function(n,i,r,c,_){if(R(n,d)&&(n=p.from(n,n.offset,n.byteLength)),!p.isBuffer(n))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof n);if(i===void 0&&(i=0),r===void 0&&(r=n?n.length:0),c===void 0&&(c=0),_===void 0&&(_=this.length),i<0||r>n.length||c<0||_>this.length)throw new RangeError("out of range index");if(c>=_&&i>=r)return 0;if(c>=_)return-1;if(i>=r)return 1;if(i>>>=0,r>>>=0,c>>>=0,_>>>=0,this===n)return 0;let g=_-c,y=r-i;const S=Math.min(g,y),z=this.slice(c,_),L=n.slice(i,r);for(let E=0;E<S;++E)if(z[E]!==L[E]){g=z[E],y=L[E];break}return g<y?-1:y<g?1:0};function Qe(o,n,i,r,c){if(o.length===0)return-1;if(typeof i=="string"?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,fe(i)&&(i=c?0:o.length-1),i<0&&(i=o.length+i),i>=o.length){if(c)return-1;i=o.length-1}else if(i<0)if(c)i=0;else return-1;if(typeof n=="string"&&(n=p.from(n,r)),p.isBuffer(n))return n.length===0?-1:Ge(o,n,i,r,c);if(typeof n=="number")return n=n&255,typeof d.prototype.indexOf=="function"?c?d.prototype.indexOf.call(o,n,i):d.prototype.lastIndexOf.call(o,n,i):Ge(o,[n],i,r,c);throw new TypeError("val must be string, number or Buffer")}function Ge(o,n,i,r,c){let _=1,g=o.length,y=n.length;if(r!==void 0&&(r=String(r).toLowerCase(),r==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(o.length<2||n.length<2)return-1;_=2,g/=2,y/=2,i/=2}function S(L,E){return _===1?L[E]:L.readUInt16BE(E*_)}let z;if(c){let L=-1;for(z=i;z<g;z++)if(S(o,z)===S(n,L===-1?0:z-L)){if(L===-1&&(L=z),z-L+1===y)return L*_}else L!==-1&&(z-=z-L),L=-1}else for(i+y>g&&(i=g-y),z=i;z>=0;z--){let L=!0;for(let E=0;E<y;E++)if(S(o,z+E)!==S(n,E)){L=!1;break}if(L)return z}return-1}p.prototype.includes=function(n,i,r){return this.indexOf(n,i,r)!==-1},p.prototype.indexOf=function(n,i,r){return Qe(this,n,i,r,!0)},p.prototype.lastIndexOf=function(n,i,r){return Qe(this,n,i,r,!1)};function Vo(o,n,i,r){i=Number(i)||0;const c=o.length-i;r?(r=Number(r),r>c&&(r=c)):r=c;const _=n.length;r>_/2&&(r=_/2);let g;for(g=0;g<r;++g){const y=parseInt(n.substr(g*2,2),16);if(fe(y))return g;o[i+g]=y}return g}function Mo(o,n,i,r){return re(he(n,o.length-i),o,i,r)}function Ro(o,n,i,r){return re(Yo(n),o,i,r)}function qo(o,n,i,r){return re(it(n),o,i,r)}function Do(o,n,i,r){return re(Xo(n,o.length-i),o,i,r)}p.prototype.write=function(n,i,r,c){if(i===void 0)c="utf8",r=this.length,i=0;else if(r===void 0&&typeof i=="string")c=i,r=this.length,i=0;else if(isFinite(i))i=i>>>0,isFinite(r)?(r=r>>>0,c===void 0&&(c="utf8")):(c=r,r=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const _=this.length-i;if((r===void 0||r>_)&&(r=_),n.length>0&&(r<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let g=!1;for(;;)switch(c){case"hex":return Vo(this,n,i,r);case"utf8":case"utf-8":return Mo(this,n,i,r);case"ascii":case"latin1":case"binary":return Ro(this,n,i,r);case"base64":return qo(this,n,i,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Do(this,n,i,r);default:if(g)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),g=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Uo(o,n,i){return n===0&&i===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(n,i))}function We(o,n,i){i=Math.min(o.length,i);const r=[];let c=n;for(;c<i;){const _=o[c];let g=null,y=_>239?4:_>223?3:_>191?2:1;if(c+y<=i){let S,z,L,E;switch(y){case 1:_<128&&(g=_);break;case 2:S=o[c+1],(S&192)===128&&(E=(_&31)<<6|S&63,E>127&&(g=E));break;case 3:S=o[c+1],z=o[c+2],(S&192)===128&&(z&192)===128&&(E=(_&15)<<12|(S&63)<<6|z&63,E>2047&&(E<55296||E>57343)&&(g=E));break;case 4:S=o[c+1],z=o[c+2],L=o[c+3],(S&192)===128&&(z&192)===128&&(L&192)===128&&(E=(_&15)<<18|(S&63)<<12|(z&63)<<6|L&63,E>65535&&E<1114112&&(g=E))}}g===null?(g=65533,y=1):g>65535&&(g-=65536,r.push(g>>>10&1023|55296),g=56320|g&1023),r.push(g),c+=y}return Oo(r)}const Ye=4096;function Oo(o){const n=o.length;if(n<=Ye)return String.fromCharCode.apply(String,o);let i="",r=0;for(;r<n;)i+=String.fromCharCode.apply(String,o.slice(r,r+=Ye));return i}function Fo(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]&127);return r}function Ko(o,n,i){let r="";i=Math.min(o.length,i);for(let c=n;c<i;++c)r+=String.fromCharCode(o[c]);return r}function $o(o,n,i){const r=o.length;(!n||n<0)&&(n=0),(!i||i<0||i>r)&&(i=r);let c="";for(let _=n;_<i;++_)c+=Zo[o[_]];return c}function Ho(o,n,i){const r=o.slice(n,i);let c="";for(let _=0;_<r.length-1;_+=2)c+=String.fromCharCode(r[_]+r[_+1]*256);return c}p.prototype.slice=function(n,i){const r=this.length;n=~~n,i=i===void 0?r:~~i,n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),i<0?(i+=r,i<0&&(i=0)):i>r&&(i=r),i<n&&(i=n);const c=this.subarray(n,i);return Object.setPrototypeOf(c,p.prototype),c};function T(o,n,i){if(o%1!==0||o<0)throw new RangeError("offset is not uint");if(o+n>i)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUintLE=p.prototype.readUIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return c},p.prototype.readUintBE=p.prototype.readUIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n+--i],_=1;for(;i>0&&(_*=256);)c+=this[n+--i]*_;return c},p.prototype.readUint8=p.prototype.readUInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]|this[n+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(n,i){return n=n>>>0,i||T(n,2,this.length),this[n]<<8|this[n+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),(this[n]|this[n+1]<<8|this[n+2]<<16)+this[n+3]*16777216},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]*16777216+(this[n+1]<<16|this[n+2]<<8|this[n+3])},p.prototype.readBigUInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24,_=this[++n]+this[++n]*2**8+this[++n]*2**16+r*2**24;return BigInt(c)+(BigInt(_)<<BigInt(32))}),p.prototype.readBigUInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=i*2**24+this[++n]*2**16+this[++n]*2**8+this[++n],_=this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r;return(BigInt(c)<<BigInt(32))+BigInt(_)}),p.prototype.readIntLE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=this[n],_=1,g=0;for(;++g<i&&(_*=256);)c+=this[n+g]*_;return _*=128,c>=_&&(c-=Math.pow(2,8*i)),c},p.prototype.readIntBE=function(n,i,r){n=n>>>0,i=i>>>0,r||T(n,i,this.length);let c=i,_=1,g=this[n+--c];for(;c>0&&(_*=256);)g+=this[n+--c]*_;return _*=128,g>=_&&(g-=Math.pow(2,8*i)),g},p.prototype.readInt8=function(n,i){return n=n>>>0,i||T(n,1,this.length),this[n]&128?(255-this[n]+1)*-1:this[n]},p.prototype.readInt16LE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n]|this[n+1]<<8;return r&32768?r|4294901760:r},p.prototype.readInt16BE=function(n,i){n=n>>>0,i||T(n,2,this.length);const r=this[n+1]|this[n]<<8;return r&32768?r|4294901760:r},p.prototype.readInt32LE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]|this[n+1]<<8|this[n+2]<<16|this[n+3]<<24},p.prototype.readInt32BE=function(n,i){return n=n>>>0,i||T(n,4,this.length),this[n]<<24|this[n+1]<<16|this[n+2]<<8|this[n+3]},p.prototype.readBigInt64LE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=this[n+4]+this[n+5]*2**8+this[n+6]*2**16+(r<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+this[++n]*2**8+this[++n]*2**16+this[++n]*2**24)}),p.prototype.readBigInt64BE=U(function(n){n=n>>>0,G(n,"offset");const i=this[n],r=this[n+7];(i===void 0||r===void 0)&&X(n,this.length-8);const c=(i<<24)+this[++n]*2**16+this[++n]*2**8+this[++n];return(BigInt(c)<<BigInt(32))+BigInt(this[++n]*2**24+this[++n]*2**16+this[++n]*2**8+r)}),p.prototype.readFloatLE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!0,23,4)},p.prototype.readFloatBE=function(n,i){return n=n>>>0,i||T(n,4,this.length),s.read(this,n,!1,23,4)},p.prototype.readDoubleLE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!0,52,8)},p.prototype.readDoubleBE=function(n,i){return n=n>>>0,i||T(n,8,this.length),s.read(this,n,!1,52,8)};function A(o,n,i,r,c,_){if(!p.isBuffer(o))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>c||n<_)throw new RangeError('"value" argument is out of bounds');if(i+r>o.length)throw new RangeError("Index out of range")}p.prototype.writeUintLE=p.prototype.writeUIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=1,g=0;for(this[i]=n&255;++g<r&&(_*=256);)this[i+g]=n/_&255;return i+r},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,r=r>>>0,!c){const y=Math.pow(2,8*r)-1;A(this,n,i,r,y,0)}let _=r-1,g=1;for(this[i+_]=n&255;--_>=0&&(g*=256);)this[i+_]=n/g&255;return i+r},p.prototype.writeUint8=p.prototype.writeUInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,255,0),this[i]=n&255,i+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,65535,0),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i+3]=n>>>24,this[i+2]=n>>>16,this[i+1]=n>>>8,this[i]=n&255,i+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,4294967295,0),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4};function Xe(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_,_=_>>8,o[i++]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,g=g>>8,o[i++]=g,i}function Ze(o,n,i,r,c){at(n,r,c,o,i,7);let _=Number(n&BigInt(4294967295));o[i+7]=_,_=_>>8,o[i+6]=_,_=_>>8,o[i+5]=_,_=_>>8,o[i+4]=_;let g=Number(n>>BigInt(32)&BigInt(4294967295));return o[i+3]=g,g=g>>8,o[i+2]=g,g=g>>8,o[i+1]=g,g=g>>8,o[i]=g,i+8}p.prototype.writeBigUInt64LE=U(function(n,i=0){return Xe(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeBigUInt64BE=U(function(n,i=0){return Ze(this,n,i,BigInt(0),BigInt("0xffffffffffffffff"))}),p.prototype.writeIntLE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=0,g=1,y=0;for(this[i]=n&255;++_<r&&(g*=256);)n<0&&y===0&&this[i+_-1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeIntBE=function(n,i,r,c){if(n=+n,i=i>>>0,!c){const S=Math.pow(2,8*r-1);A(this,n,i,r,S-1,-S)}let _=r-1,g=1,y=0;for(this[i+_]=n&255;--_>=0&&(g*=256);)n<0&&y===0&&this[i+_+1]!==0&&(y=1),this[i+_]=(n/g>>0)-y&255;return i+r},p.prototype.writeInt8=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,1,127,-128),n<0&&(n=255+n+1),this[i]=n&255,i+1},p.prototype.writeInt16LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n&255,this[i+1]=n>>>8,i+2},p.prototype.writeInt16BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,2,32767,-32768),this[i]=n>>>8,this[i+1]=n&255,i+2},p.prototype.writeInt32LE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),this[i]=n&255,this[i+1]=n>>>8,this[i+2]=n>>>16,this[i+3]=n>>>24,i+4},p.prototype.writeInt32BE=function(n,i,r){return n=+n,i=i>>>0,r||A(this,n,i,4,2147483647,-2147483648),n<0&&(n=4294967295+n+1),this[i]=n>>>24,this[i+1]=n>>>16,this[i+2]=n>>>8,this[i+3]=n&255,i+4},p.prototype.writeBigInt64LE=U(function(n,i=0){return Xe(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),p.prototype.writeBigInt64BE=U(function(n,i=0){return Ze(this,n,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Je(o,n,i,r,c,_){if(i+r>o.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function et(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,4),s.write(o,n,i,r,23,4),i+4}p.prototype.writeFloatLE=function(n,i,r){return et(this,n,i,!0,r)},p.prototype.writeFloatBE=function(n,i,r){return et(this,n,i,!1,r)};function tt(o,n,i,r,c){return n=+n,i=i>>>0,c||Je(o,n,i,8),s.write(o,n,i,r,52,8),i+8}p.prototype.writeDoubleLE=function(n,i,r){return tt(this,n,i,!0,r)},p.prototype.writeDoubleBE=function(n,i,r){return tt(this,n,i,!1,r)},p.prototype.copy=function(n,i,r,c){if(!p.isBuffer(n))throw new TypeError("argument should be a Buffer");if(r||(r=0),!c&&c!==0&&(c=this.length),i>=n.length&&(i=n.length),i||(i=0),c>0&&c<r&&(c=r),c===r||n.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),n.length-i<c-r&&(c=n.length-i+r);const _=c-r;return this===n&&typeof d.prototype.copyWithin=="function"?this.copyWithin(i,r,c):d.prototype.set.call(n,this.subarray(r,c),i),_},p.prototype.fill=function(n,i,r,c){if(typeof n=="string"){if(typeof i=="string"?(c=i,i=0,r=this.length):typeof r=="string"&&(c=r,r=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!p.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(n.length===1){const g=n.charCodeAt(0);(c==="utf8"&&g<128||c==="latin1")&&(n=g)}}else typeof n=="number"?n=n&255:typeof n=="boolean"&&(n=Number(n));if(i<0||this.length<i||this.length<r)throw new RangeError("Out of range index");if(r<=i)return this;i=i>>>0,r=r===void 0?this.length:r>>>0,n||(n=0);let _;if(typeof n=="number")for(_=i;_<r;++_)this[_]=n;else{const g=p.isBuffer(n)?n:p.from(n,c),y=g.length;if(y===0)throw new TypeError('The value "'+n+'" is invalid for argument "value"');for(_=0;_<r-i;++_)this[_+i]=g[_%y]}return this};const Q={};function ge(o,n,i){Q[o]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${o}]`,this.stack,delete this.name}get code(){return o}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${o}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(o){return o?`${o} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(o,n){return`The "${o}" argument must be of type number. Received type ${typeof n}`},TypeError),ge("ERR_OUT_OF_RANGE",function(o,n,i){let r=`The value of "${o}" is out of range.`,c=i;return Number.isInteger(i)&&Math.abs(i)>2**32?c=nt(String(i)):typeof i=="bigint"&&(c=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(c=nt(c)),c+="n"),r+=` It must be ${n}. Received ${c}`,r},RangeError);function nt(o){let n="",i=o.length;const r=o[0]==="-"?1:0;for(;i>=r+4;i-=3)n=`_${o.slice(i-3,i)}${n}`;return`${o.slice(0,i)}${n}`}function Qo(o,n,i){G(n,"offset"),(o[n]===void 0||o[n+i]===void 0)&&X(n,o.length-(i+1))}function at(o,n,i,r,c,_){if(o>i||o<n){const g=typeof n=="bigint"?"n":"";let y;throw _>3?n===0||n===BigInt(0)?y=`>= 0${g} and < 2${g} ** ${(_+1)*8}${g}`:y=`>= -(2${g} ** ${(_+1)*8-1}${g}) and < 2 ** ${(_+1)*8-1}${g}`:y=`>= ${n}${g} and <= ${i}${g}`,new Q.ERR_OUT_OF_RANGE("value",y,o)}Qo(r,c,_)}function G(o,n){if(typeof o!="number")throw new Q.ERR_INVALID_ARG_TYPE(n,"number",o)}function X(o,n,i){throw Math.floor(o)!==o?(G(o,i),new Q.ERR_OUT_OF_RANGE(i||"offset","an integer",o)):n<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${n}`,o)}const Go=/[^+/0-9A-Za-z-_]/g;function Wo(o){if(o=o.split("=")[0],o=o.trim().replace(Go,""),o.length<2)return"";for(;o.length%4!==0;)o=o+"=";return o}function he(o,n){n=n||1/0;let i;const r=o.length;let c=null;const _=[];for(let g=0;g<r;++g){if(i=o.charCodeAt(g),i>55295&&i<57344){if(!c){if(i>56319){(n-=3)>-1&&_.push(239,191,189);continue}else if(g+1===r){(n-=3)>-1&&_.push(239,191,189);continue}c=i;continue}if(i<56320){(n-=3)>-1&&_.push(239,191,189),c=i;continue}i=(c-55296<<10|i-56320)+65536}else c&&(n-=3)>-1&&_.push(239,191,189);if(c=null,i<128){if((n-=1)<0)break;_.push(i)}else if(i<2048){if((n-=2)<0)break;_.push(i>>6|192,i&63|128)}else if(i<65536){if((n-=3)<0)break;_.push(i>>12|224,i>>6&63|128,i&63|128)}else if(i<1114112){if((n-=4)<0)break;_.push(i>>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else throw new Error("Invalid code point")}return _}function Yo(o){const n=[];for(let i=0;i<o.length;++i)n.push(o.charCodeAt(i)&255);return n}function Xo(o,n){let i,r,c;const _=[];for(let g=0;g<o.length&&!((n-=2)<0);++g)i=o.charCodeAt(g),r=i>>8,c=i%256,_.push(c),_.push(r);return _}function it(o){return a.toByteArray(Wo(o))}function re(o,n,i,r){let c;for(c=0;c<r&&!(c+i>=n.length||c>=o.length);++c)n[c+i]=o[c];return c}function R(o,n){return o instanceof n||o!=null&&o.constructor!=null&&o.constructor.name!=null&&o.constructor.name===n.name}function fe(o){return o!==o}const Zo=function(){const o="0123456789abcdef",n=new Array(256);for(let i=0;i<16;++i){const r=i*16;for(let c=0;c<16;++c)n[r+c]=o[i]+o[c]}return n}();function U(o){return typeof BigInt>"u"?Jo:o}function Jo(){throw new Error("BigInt not supported")}})(je);const jt=je.Buffer,ie={data(){return{code_verifier:"",code_challenge:""}},computed:{},watch:{},methods:{async samlLogin(e){this.code_verifier=$.generateRandomString(28),localStorage.setItem("pkce_code_verifier",this.code_verifier),this.code_challenge=await $.pkceChallengeFromVerifier(this.code_verifier);const a=Y.Capacitor.getPlatform();let s=jt.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin+"/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");e=`${e}&RelayState=${s}`;let u=this;window.addEventListener("message",async l=>{var d;if(!this.allowedOrigins.includes(l.origin))return console.log("Origin is not allowed!");if(l.data.type==="saml"&&l.data.code){if(this.display==="popup")return(d=window.parent)==null?void 0:d.postMessage({code:l.data.code,state:this.$route.query.state,code_verifier:localStorage.getItem("pkce_code_verifier")},"*");await u.exchangeAuthCode({code:l.data.code,code_verifier:localStorage.getItem("pkce_code_verifier")}),localStorage.removeItem("pkce_code_verifier")}},{once:!0}),this.isNative?await J.Browser.open({url:e,presentationStyle:"popover"}):window.open(e,"popup","width=600,height=600")},async handleSamlRedirect(){var s;let e,a={type:"saml"};if(this.$route.query.code&&(a.code=this.$route.query.code),window.opener)window.opener.postMessage(a,location.origin),window.close();else{if(this.isNative&&this.isIOS&&await J.Browser.close(),k.$emit("ssoEvent",{name:"setLoading",data:!0}),this.$route.query.code&&(e=this.$route.query.code),console.log(this.display,{code:e}),e){if(this.display==="popup")return(s=window.parent)==null?void 0:s.postMessage({code:e,state:this.$route.query.state},"*");await this.exchangeAuthCode({code:e,code_verifier:localStorage.getItem("pkce_code_verifier")})}localStorage.removeItem("pkce_code_verifier"),k.$emit("ssoEvent",{name:"setLoading",data:!1})}}}},Nt={name:"AuthLogin",mixins:[Pe,Be,xe,te,ne,ie,P,{data(){return{isQrCodeLogin:!1,qrCode:null,qrCodeHash:null,qrCodeRefreshInterval:null,poolingInterval:null}},props:{isModal:{type:Boolean,required:!1,default:!1}},mounted(){this.$route.name==="AuthQR"&&this.changeLoginToQr()},methods:{async changeLoginToQr(){this.isQrCodeLogin=!0,await t.nextTick(),await this.initQrCodeLogin()},generateRandomHash(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=e.length;let s="";const u=new Uint32Array(32);return window.crypto.getRandomValues(u),u.forEach(l=>{s+=e.charAt(l%a)}),s},refreshQrCode(){var e,a;this.qrCode&&((a=(e=document.getElementById("qrCodeContainer"))==null?void 0:e.childNodes[0])==null||a.remove()),this.qrCodeHash=this.generateRandomHash(),this.qrCode=new ct({width:300,height:300,type:"png",image:"",imageOptions:{margin:15},data:this.qrCodeHash,dotsOptions:{type:"extra-rounded",color:"#000000"},cornersSquareOptions:{type:"extra-rounded",color:"#000000"},cornersDotOptions:{type:"",color:"#000000"},backgroundOptions:{color:"#ffffff00"}}),this.qrCode.append(document.getElementById("qrCodeContainer"))},async startQrCodePooling(){this.poolingInterval=setInterval(async()=>{const[e,a]=await w(ce.qrCodePooling({qrToken:this.qrCodeHash},this.$storage));if(e)return this.errorHandler(e);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))},2e3)},async initQrCodeLogin(){this.refreshQrCode(),await t.nextTick(),await this.startQrCodePooling(),this.qrCodeRefreshInterval=setInterval(()=>{this.refreshQrCode()},6e4)}}}],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,emailOrUsername:"",password:"",captcha:"",revealPassword:!1,emailLogin:!0}},computed:{displayFormLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.form_login)&&!this.isModal)??this.emailLogin},displayResetPasswordLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.reset_password)&&!this.isModal)??!0},displayRegisterLogin(){var e,a;return(((a=(e=this.ssoCompany)==null?void 0:e.login)==null?void 0:a.create_account)&&!this.isModal)??!0}},async mounted(){if(!this.isModal){if(this.$route.path==="/login/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/login/callback/saml")return await this.handleSamlRedirect();this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&k.$emit("ssoEvent",{name:"setLoading",data:!1}),k.$emit("ssoEvent",{name:"setInitialize",data:!0})}},methods:{async submit(){if(this.submitted)return;this.submitted=!0,this.emailOrUsername=this.emailOrUsername.trim();let a={response_type:this.$route.query.response_type||"token",isModal:this.isModal,captcha:this.captcha,password:this.password};this.emailOrUsername.indexOf("@")!==-1?a.email=this.emailOrUsername:a.username=this.emailOrUsername;const[s,u]=await w(this.login(a));s&&console.error(s),this.submitted=!1,u===!0&&(this.emailOrUsername="",this.password="")},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},createAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:{}})}},watch:{emailOrUsername(e){e.includes("@")&&(this.$storage.verifyEmail=e)},"$route.path":async function(e){if(e==="/login/callback/okta")return await this.handleOktaRedirect();if(e==="/login/callback/saml")return await this.handleSamlRedirect()}}},Vt=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],Mt={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Rt=t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1),qt={key:1},Dt={class:"page-login-field half-top"},Ut=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Ot=["placeholder"],Ft=t.createElementVNode("em",null,null,-1),Kt={class:"page-login-field half-bottom"},$t=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Ht=["type","placeholder"],Qt={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Gt={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Wt={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Yt={key:0},Xt={key:1,class:"button--loading button__loader"},Zt=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),Jt=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),en={key:0},tn={key:1,class:"button--loading button__loader"},nn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-10px",padding:"8px 0",height:"100%"}},null,-1),an={key:0},on={key:1,class:"button--loading-black button__loader"},rn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-9px",padding:"10px 0",height:"100%"}},null,-1),sn={key:0},cn={key:1,class:"button--loading-black button__loader"},ln=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/outlook.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),dn={key:0},pn={key:1,class:"button--loading-black button__loader"},un=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),_n={key:0},mn={key:1,class:"button--loading-black button__loader"},gn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/sso-key.png",style:{position:"absolute","margin-left":"-8px",padding:"10px 0",height:"100%"}},null,-1),hn={key:0},fn={key:1,class:"button--loading-black button__loader"},kn=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),yn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),bn={class:"close-text center-text half-top color-black"},wn=t.createElementVNode("br",null,null,-1),vn={class:"",href:"https://tapni.co/policies/terms-of-service"},En={href:"https://tapni.co/policies/privacy-policy"},zn=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),Sn={key:9,class:"page-login-links"},Ln=t.createElementVNode("div",{class:"clear"},null,-1),Cn={class:"forgot center-text pointer small-top"},Tn=t.createElementVNode("br",null,null,-1),In=t.createElementVNode("div",{class:"clear"},null,-1);function An(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[13]||(a[13]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Vt)):t.createCommentVNode("",!0),t.createElementVNode("h1",Mt,t.toDisplayString(this.ssoLang[this.appLanguage].login),1),Rt,d.displayFormLogin?(t.openBlock(),t.createElementBlock("span",qt,[t.createElementVNode("div",Dt,[Ut,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.emailOrUsername=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),autocorrect:"off",autocapitalize:"off",spellcheck:"false",type:"text",name:"email",placeholder:e.ssoLang[this.appLanguage].email_username,required:""},null,40,Ot),[[t.vModelText,l.emailOrUsername]]),Ft]),t.createElementVNode("div",Kt,[$t,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Ht),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Qt,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Gt,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Wt,[l.submitted?(t.openBlock(),t.createElementBlock("span",Xt)):(t.openBlock(),t.createElementBlock("span",Yt,t.toDisplayString(e.ssoLang[e.appLanguage].login),1))])])):t.createCommentVNode("",!0),Zt,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[5]||(a[5]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[Jt,e.appleLoad?(t.openBlock(),t.createElementBlock("span",tn)):(t.openBlock(),t.createElementBlock("span",en,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Apple",1))])):t.createCommentVNode("",!0),e.displayGoogleLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[6]||(a[6]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[nn,e.googleLoad?(t.openBlock(),t.createElementBlock("span",on)):(t.openBlock(),t.createElementBlock("span",an,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Google",1))])):t.createCommentVNode("",!0),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[7]||(a[7]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[rn,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",cn)):(t.openBlock(),t.createElementBlock("span",sn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Facebook",1))])):t.createCommentVNode("",!0),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:5,onClick:a[8]||(a[8]=(...m)=>e.microsoftLogin&&e.microsoftLogin(...m)),class:"button-center button button-90 google-button pointer"},[ln,e.microsoftLoad?(t.openBlock(),t.createElementBlock("span",pn)):(t.openBlock(),t.createElementBlock("span",dn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Outlook",1))])),e.displayMicrosoftSSOLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:6,onClick:a[9]||(a[9]=(...m)=>e.ssoLogin&&e.ssoLogin(...m)),class:"button-center button button-90 google-button pointer"},[un,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",mn)):(t.openBlock(),t.createElementBlock("span",_n,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1))])),e.displayMicrosoftSSOLogin?(t.openBlock(),t.createElementBlock("a",{key:7,onClick:a[10]||(a[10]=m=>e.microsoftLogin("sso")),class:"button-center button button-90 google-button pointer"},[gn,e.microsoftSSOLoad?(t.openBlock(),t.createElementBlock("span",hn,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SSO",1)):(t.openBlock(),t.createElementBlock("span",fn))])):t.createCommentVNode("",!0),d.displayFormLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:8,onClick:a[11]||(a[11]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[kn,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Email",1)])),yn,t.createElementVNode("p",bn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].terms_by_signing_in)+" ",1),wn,t.createElementVNode("a",vn,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].and)+" ",1),t.createElementVNode("a",En,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),zn,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:10,class:"page-login-links",onClick:a[12]||(a[12]=(...m)=>d.createAccountModal&&d.createAccountModal(...m))},[t.createElementVNode("a",Cn,[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].or)+" ",1),Tn,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[e.appLanguage].create_new_account),1)]),In])):(t.openBlock(),t.createElementBlock("div",Sn,[d.displayRegisterLogin?(t.openBlock(),t.createBlock(h,{key:0,class:"forgot float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].create_account),1)]),_:1})):t.createCommentVNode("",!0),d.displayResetPasswordLogin?(t.openBlock(),t.createBlock(h,{key:1,class:"create float-left",to:"/reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[e.appLanguage].reset_password),1)]),_:1})):t.createCommentVNode("",!0),Ln]))],36)}const Ve=V(Nt,[["render",An]]),Pn={name:"AuthRegister",mixins:[Pe,Be,xe,te,P],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{usernameRegister:!1,loading:!0,submitted:!1,formButtonText:"REGISTER",username:"",email:"",password:"",revealPassword:!1,emailLogin:!0,invitationCode:"",referral:""}},mounted(){this.isModal||(this.isLoggedIn?this.$router.push(this.home):!this.$route.query.state&&!this.$route.query.oauth&&!this.$route.params.oauth&&k.$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))},methods:{async submit(){if(this.password.length<8)return this.errorSnack(this.ssoLang[this.appLanguage].password_8_chars);if(this.password.search(/[a-z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_lowercase);if(this.password.search(/[A-Z]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_uppercase);if(this.password.search(/[0-9]/)<0)return this.errorSnack(this.ssoLang[this.appLanguage].password_least_one_number);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.username=this.username.trim();let e={response_type:this.response_type,email:this.email,username:this.username,password:this.password,ic:this.invitationCode,captchaToken:await this.getCaptchaToken("account_verify"),ref:this.referral},a=await this.register(e);this.submitted=!1,a.data&&a.data.success&&(a.data.message==="SUCCESS_REGISTER"?(this.isModal?k.$emit("ssoEvent",{name:"toggleAddAccountModalVerify",data:!1}):this.$router.push("/verify"),this.successSnack(this.ssoLang[this.appLanguage].register_success),this.formButtonText=this.ssoLang[this.appLanguage].check_your_inbox):a.data.message==="SUCCESS_LOGIN"&&(this.display==="npm"&&(await this.loginSetup({...a,isModal:e.isModal}),this.getLoggedInAccounts()),await this.loginSuccess({...a,isModal:e.isModal})))},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})},loginAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalLogin",data:!1})}},watch:{email(e){this.$storage.verifyEmail=e},referral(e){this.$storage.referral=e}}},Bn=[t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1)],xn={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},jn={class:"half-bottom small-top center-text color-black"},Nn={key:0},Vn=t.createElementVNode("br",null,null,-1),Mn={key:1},Rn={class:"page-login-field half-top"},qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"60%"}})],-1),Dn=["placeholder"],Un=t.createElementVNode("em",null,null,-1),On={class:"page-login-field half-top"},Fn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/user.png",class:"responsive-image",style:{width:"50%"}})],-1),Kn=["placeholder","disabled"],$n=t.createElementVNode("em",null,null,-1),Hn={class:"page-login-field half-top half-bottom"},Qn=t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1),Gn=["type","placeholder"],Wn={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Yn={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},Xn={type:"submit",class:"button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"},Zn={key:0},Jn={key:1,class:"button--loading button__loader"},ea=t.createElementVNode("div",{class:"decoration decoration-lines-thin half-top half-bottom"},null,-1),ta=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/apple-logo.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1),na={key:0},aa={key:1,class:"button--loading button__loader"},ia=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/g-logo.png",style:{position:"absolute","margin-left":"-9px",padding:"8px 0",height:"100%"}},null,-1),oa={key:0},ra={key:1,class:"button--loading button__loader"},sa=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/facebook-blue.png",style:{position:"absolute","margin-left":"-10px",padding:"10px 0",height:"100%"}},null,-1),ca={key:0},la={key:1,class:"button--loading button__loader"},da=t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",style:{position:"absolute","margin-left":"-8px",padding:"12px 0",height:"100%"}},null,-1),pa=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),ua={class:"close-text center-text half-top color-black"},_a=t.createElementVNode("br",null,null,-1),ma={class:"",href:"https://tapni.co/policies/terms-of-service"},ga={href:"https://tapni.co/policies/privacy-policy"},ha=t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1),fa={key:5,class:"page-login-links"},ka=t.createElementVNode("div",{class:"clear"},null,-1),ya={class:"forgot center-text pointer small-top"},ba=t.createElementVNode("br",null,null,-1),wa=t.createElementVNode("div",{class:"clear"},null,-1);function va(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[12]||(a[12]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),autocomplete:"on",style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},Bn)):t.createCommentVNode("",!0),t.createElementVNode("h1",xn,t.toDisplayString(e.ssoLang[this.appLanguage].register),1),t.createElementVNode("p",jn,[l.usernameRegister?(t.openBlock(),t.createElementBlock("span",Nn,[t.createTextVNode(" t.link/"+t.toDisplayString(l.username)+" "+t.toDisplayString(e.ssoLang[this.appLanguage].username_is_free)+" ✅ ",1),Vn])):t.createCommentVNode("",!0)]),l.emailLogin?(t.openBlock(),t.createElementBlock("span",Mn,[t.createElementVNode("div",Rn,[qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,name:"email",required:""},null,40,Dn),[[t.vModelText,l.email]]),Un]),t.createElementVNode("div",On,[Fn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.username=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",placeholder:e.ssoLang[this.appLanguage].username,name:"username",required:"",disabled:l.usernameRegister,class:t.normalizeClass({"input-disabled":l.usernameRegister})},null,42,Kn),[[t.vModelText,l.username]]),$n]),t.createElementVNode("div",Hn,[Qn,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,name:"password",required:"",minlength:"8"},null,8,Gn),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword=!l.revealPassword),class:"pointer"},[t.withDirectives(t.createElementVNode("img",Wn,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",Yn,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("button",Xn,[l.submitted?(t.openBlock(),t.createElementBlock("span",Jn)):(t.openBlock(),t.createElementBlock("span",Zn,t.toDisplayString(l.formButtonText),1))])])):t.createCommentVNode("",!0),ea,e.displayAppleLogin?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[7]||(a[7]=(...m)=>e.appleLogin&&e.appleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ta,e.appleLoad?(t.openBlock(),t.createElementBlock("span",aa)):(t.openBlock(),t.createElementBlock("span",na,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Apple",1))])):t.createCommentVNode("",!0),t.createElementVNode("a",{onClick:a[8]||(a[8]=(...m)=>e.googleLogin&&e.googleLogin(...m)),class:"button-center button button-90 google-button pointer"},[ia,e.googleLoad?(t.openBlock(),t.createElementBlock("span",ra)):(t.openBlock(),t.createElementBlock("span",oa,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Google",1))]),e.displayFacebookLogin?(t.openBlock(),t.createElementBlock("a",{key:3,onClick:a[9]||(a[9]=(...m)=>e.facebookLogin&&e.facebookLogin(...m)),class:"button-center button button-90 google-button pointer"},[sa,e.facebookLoad?(t.openBlock(),t.createElementBlock("span",la)):(t.openBlock(),t.createElementBlock("span",ca,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Facebook",1))])):t.createCommentVNode("",!0),l.emailLogin?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("a",{key:4,onClick:a[10]||(a[10]=m=>l.emailLogin=!0),class:"button-center button button-90 google-button pointer"},[da,t.createElementVNode("span",null,t.toDisplayString(e.ssoLang[this.appLanguage].sign_up_with)+" Email",1)])),pa,t.createElementVNode("p",ua,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].terms_by_registering)+" ",1),_a,t.createElementVNode("a",ma,t.toDisplayString(e.ssoLang[this.appLanguage].terms_of_service),1),t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].and)+" ",1),t.createElementVNode("a",ga,t.toDisplayString(e.ssoLang[this.appLanguage].privacy_policy),1)]),ha,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:6,class:"page-login-links",onClick:a[11]||(a[11]=(...m)=>d.loginAccountModal&&d.loginAccountModal(...m))},[t.createElementVNode("a",ya,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),ba,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].sign_in_with_new),1)]),wa])):(t.openBlock(),t.createElementBlock("div",fa,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),ka]))],36)}const Me=V(Pn,[["render",va]]),Ea={name:"AuthVerify",mixins:[P],props:{isModal:{type:Boolean,required:!1,default:!1}},data(){return{loading:!0,submitted:!1,action:"verify",email:"",code:"",captcha:""}},mounted(){this.$storage.verifyEmail&&(this.email=this.$storage.verifyEmail),this.$route&&this.init()},methods:{init(){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),k.$emit("ssoEvent",{name:"setLoading",data:!1}))},async submit(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);this.email=this.email.trim(),this.code=this.code.trim();let e={code:this.code,email:this.email,captchaToken:await this.getCaptchaToken("account_verify")};if(this.submitted)return!1;this.submitted=!0;let a=await this.verify(e);this.submitted=!1,a&&a.data&&a.data.success===!0?(this.action==="reset"&&(this.$router.push("/reset?c="+this.code+"&e="+this.email),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success)),this.action==="verify"&&(this.isModal&&(this.email="",this.code="",k.$emit("closeModal")),await this.loginSetup(a),this.getLoggedInAccounts(),this.$storage.verifyEmail="",this.$router.push("/"+a.data.data.username+"#edit"),this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))):this.submitted=!1},registerAccountModal(){k.$emit("ssoEvent",{name:"toggleAddAccountModalRegister",data:!1})},close(){k.$emit("ssoEvent",{name:"toggleAddAccountModal",data:!0})}},watch:{"$storage.verifyEmail"(e){e&&(this.email=e)},"route.name"(e,a){!a&&e&&this.init()},"route.query":{handler(e){this.isEmpty(e)||this.init()},deep:!0}}},j=e=>(t.pushScopeId("data-v-af1531aa"),e=e(),t.popScopeId(),e),za=[j(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"35%"}})],-1))],Sa={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},La=j(()=>t.createElementVNode("p",{class:"half-bottom half-top center-text color-black"},null,-1)),Ca={class:"page-login-field half-top"},Ta=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),Ia=["placeholder"],Aa=j(()=>t.createElementVNode("em",null,null,-1)),Pa={class:"page-login-field half-top"},Ba=j(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/password2.png",class:"responsive-image",style:{width:"100%"}})],-1)),xa=["placeholder"],ja=j(()=>t.createElementVNode("em",null,null,-1)),Na={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Va={key:0,class:"uppercase"},Ma={key:1,class:"button--loading button__loader"},Ra=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),qa={class:"close-text center-text half-top color-black"},Da=["innerHTML"],Ua=j(()=>t.createElementVNode("a",{href:"mailto:support@tapni.com?subject=Email Verification"}," support@tapni.com",-1)),Oa=j(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom"},null,-1)),Fa={key:1,class:"page-login-links"},Ka=j(()=>t.createElementVNode("div",{class:"clear"},null,-1)),$a={class:"forgot center-text pointer small-top"},Ha=j(()=>t.createElementVNode("br",null,null,-1)),Qa=j(()=>t.createElementVNode("div",{class:"clear"},null,-1));function Ga(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return t.openBlock(),t.createElementBlock("form",{class:"page-login content-boxed content-boxed-padding",onSubmit:a[6]||(a[6]=t.withModifiers((...m)=>d.submit&&d.submit(...m),["prevent"])),style:t.normalizeStyle(s.isModal?"max-width: 500px;":"")},[s.isModal?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"0px",position:"absolute",right:"-20px","text-align":"right"}},za)):t.createCommentVNode("",!0),t.createElementVNode("h1",Sa,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1),La,t.createElementVNode("div",Ca,[Ta,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[1]||(a[1]=m=>l.email=m),onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,Ia),[[t.vModelText,l.email]]),Aa]),t.createElementVNode("div",Pa,[Ba,t.withDirectives(t.createElementVNode("input",{id:"codeInput","onUpdate:modelValue":a[3]||(a[3]=m=>l.code=m),onKeydown:a[4]||(a[4]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"tel",placeholder:e.ssoLang[this.appLanguage].code,required:""},null,40,xa),[[t.vModelText,l.code]]),ja]),t.createElementVNode("button",Na,[l.submitted?(t.openBlock(),t.createElementBlock("span",Ma)):(t.openBlock(),t.createElementBlock("span",Va,t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1))]),Ra,t.createElementVNode("p",qa,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].verify_account_p1},null,8,Da),Ua]),Oa,s.isModal?(t.openBlock(),t.createElementBlock("div",{key:2,class:"page-login-links",onClick:a[5]||(a[5]=(...m)=>d.registerAccountModal&&d.registerAccountModal(...m))},[t.createElementVNode("a",$a,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].or)+" ",1),Ha,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].create_new_account),1)]),Qa])):(t.openBlock(),t.createElementBlock("div",Fa,[t.createVNode(h,{class:"create float-right",to:"/register"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].register),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),Ka]))],36)}const Re=V(Ea,[["render",Ga],["__scopeId","data-v-af1531aa"]]),Wa={name:"AuthReset",mixins:[P],data(){return{loading:!0,submitted:!1,passwordChange:!1,email:"",password:"",passwordRepeat:"",code:"",captcha:"",revealPassword:!1,revealPassword2:!1}},mounted(){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),k.$emit("ssoEvent",{name:"setLoading",data:!1})},methods:{async resetEmail(){if(this.submitted)return;this.submitted=!0,this.email=this.email.trim();let e={email:this.email,captchaToken:await this.getCaptchaToken("password_reset")};await this.reset(e),this.submitted=!1,await this.$router.push("/verify?e="+this.email+"#reset")},async changePw(){if(this.code.length!==6)return this.errorSnack(this.ssoLang[this.appLanguage].invalid_code);if(this.password!==this.passwordRepeat)return this.errorSnack(this.ssoLang[this.appLanguage].password_not_match);if(this.submitted)return;this.submitted=!0,this.email=this.email.trim(),this.code=this.code.trim();let e={email:this.email,code:this.code,password:this.password,passwordRepeat:this.passwordRepeat,captchaToken:await this.getCaptchaToken("password_reset")},a=await this.changePassword(e);this.submitted=!1,a===!0&&(this.$router.push("/login"),this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success))}},watch:{email(e){this.$storage.verifyEmail=e}}},q=e=>(t.pushScopeId("data-v-4f85b89a"),e=e(),t.popScopeId(),e),Ya={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},Xa=q(()=>t.createElementVNode("p",{class:"half-bottom small-top center-text color-black"},null,-1)),Za={class:"page-login-field half-top color-black"},Ja=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px","margin-left":"10px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/mail.png",class:"responsive-image",style:{width:"80%"}})],-1)),ei=["placeholder"],ti=q(()=>t.createElementVNode("em",null,null,-1)),ni={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},ai={key:0,class:"uppercase"},ii={key:1,class:"button--loading button__loader"},oi=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),ri={class:"close-text center-text half-top color-black"},si=["innerHTML"],ci=["href"],li=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),di={class:"page-login-links"},pi=q(()=>t.createElementVNode("div",{class:"clear"},null,-1)),ui={class:"bold no-bottom center-text",style:{"margin-top":"63px"}},_i={class:"half-bottom small-top center-text color-black"},mi={class:"page-login-field half-top"},gi=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),hi=["type","placeholder"],fi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},ki={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},yi={class:"page-login-field half-top"},bi=q(()=>t.createElementVNode("i",{style:{"padding-top":"15px"}},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/padlock.png",class:"responsive-image",style:{width:"50%"}})],-1)),wi=["type","placeholder"],vi={src:"https://cdn.tapni.co/icons/reveal-password.png",class:"responsive-image password-reveal-icon"},Ei={src:"https://cdn.tapni.co/icons/hide-password.png",class:"responsive-image password-reveal-icon"},zi={type:"submit",class:"button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"},Si={key:0,class:"uppercase"},Li={key:1,class:"button--loading button__loader"},Ci=q(()=>t.createElementVNode("div",{class:"decoration decoration-lines-thin no-bottom half-top"},null,-1)),Ti={class:"close-text center-text half-top color-black"},Ii=["innerHTML"],Ai=["href"];function Pi(e,a,s,u,l,d){const h=t.resolveComponent("router-link");return l.passwordChange?(t.openBlock(),t.createElementBlock("form",{key:1,class:"page-login content-boxed content-boxed-padding",onSubmit:a[7]||(a[7]=t.withModifiers((...m)=>d.changePw&&d.changePw(...m),["prevent"]))},[t.createElementVNode("h3",ui,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1),t.createElementVNode("p",_i,t.toDisplayString(e.ssoLang[this.appLanguage].password_new),1),t.createElementVNode("div",mi,[gi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[3]||(a[3]=m=>l.password=m),type:l.revealPassword?"text":"password",placeholder:e.ssoLang[this.appLanguage].password,required:""},null,8,hi),[[t.vModelDynamic,l.password]]),t.createElementVNode("em",{onClick:a[4]||(a[4]=m=>l.revealPassword=!l.revealPassword)},[t.withDirectives(t.createElementVNode("img",fi,null,512),[[t.vShow,!l.revealPassword]]),t.withDirectives(t.createElementVNode("img",ki,null,512),[[t.vShow,l.revealPassword]])])]),t.createElementVNode("div",yi,[bi,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":a[5]||(a[5]=m=>l.passwordRepeat=m),type:l.revealPassword2?"text":"password",placeholder:e.ssoLang[this.appLanguage].password_repeat,required:""},null,8,wi),[[t.vModelDynamic,l.passwordRepeat]]),t.createElementVNode("em",{onClick:a[6]||(a[6]=m=>l.revealPassword2=!l.revealPassword2)},[t.withDirectives(t.createElementVNode("img",vi,null,512),[[t.vShow,!l.revealPassword2]]),t.withDirectives(t.createElementVNode("img",Ei,null,512),[[t.vShow,l.revealPassword2]])])]),t.createElementVNode("button",zi,[l.submitted?(t.openBlock(),t.createElementBlock("span",Li)):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.ssoLang[this.appLanguage].password_change),1))]),Ci,t.createElementVNode("p",Ti,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p2},null,8,Ii),t.createTextVNode(),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,Ai)])],32)):(t.openBlock(),t.createElementBlock("form",{key:0,class:"page-login content-boxed content-boxed-padding",onSubmit:a[2]||(a[2]=t.withModifiers((...m)=>d.resetEmail&&d.resetEmail(...m),["prevent"])),autocomplete:"on"},[t.createElementVNode("h3",Ya,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1),Xa,t.createElementVNode("div",Za,[Ja,t.withDirectives(t.createElementVNode("input",{id:"emailInput","onUpdate:modelValue":a[0]||(a[0]=m=>l.email=m),onKeydown:a[1]||(a[1]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"])),type:"email",placeholder:e.ssoLang[this.appLanguage].email,required:""},null,40,ei),[[t.vModelText,l.email]]),ti]),t.createElementVNode("button",ni,[l.submitted?(t.openBlock(),t.createElementBlock("span",ii)):(t.openBlock(),t.createElementBlock("span",ai,t.toDisplayString(e.ssoLang[this.appLanguage].reset_password),1))]),oi,t.createElementVNode("p",ri,[t.createElementVNode("span",{innerHTML:e.ssoLang[this.appLanguage].reset_password_p1},null,8,si),t.createElementVNode("a",{href:"mailto:support@tapni.com?subject="+e.ssoLang[this.appLanguage].password_reset_t}," support@tapni.com",8,ci)]),li,t.createElementVNode("div",di,[t.createVNode(h,{class:"create float-right",to:"/verify"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].verify_account),1)]),_:1}),t.createVNode(h,{class:"forgot float-left",to:"/login"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].sign_in),1)]),_:1}),pi])],32))}const qe=V(Wa,[["render",Pi],["__scopeId","data-v-4f85b89a"]]),Bi={name:"AuthCallback",mixins:[ne,ie,P],data(){return{}},async mounted(){if(console.log("ee"),this.$route.path==="/callback/auth"&&this.exchangeAuthCode({code:this.$route.query.code}),this.$route.path==="/callback/okta")return await this.handleOktaRedirect();if(this.$route.path==="/callback/saml")return await this.handleSamlRedirect()},methods:{inAppRedirect(){let e=lt.sanitizeUrl(location.href);return e=e.replace("http","tapni"),e=e.replace("https","tapni"),window.open(e)}}},xi={class:"page-login content-boxed content-boxed-padding"},ji={key:0,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}},Ni=t.createElementVNode("br",null,null,-1),Vi={key:1,style:{"text-align":"center",width:"80%",margin:"0 auto","margin-top":"260px"}};function Mi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",xi,[(e.$route.query.platform==="android"||e.$route.query.platform==="ios")&&!e.isNative?(t.openBlock(),t.createElementBlock("h5",ji,[t.createTextVNode(t.toDisplayString(e.ssoLang[this.appLanguage].you_will_be_redirected),1),Ni,t.createTextVNode(" "+t.toDisplayString(e.ssoLang[this.appLanguage].if_redirect_not_directly)+", ",1),t.createElementVNode("span",{onClick:a[0]||(a[0]=(...h)=>d.inAppRedirect&&d.inAppRedirect(...h)),style:{color:"blue",cursor:"pointer"}},t.toDisplayString(e.ssoLang[this.appLanguage].click_here),1),t.createTextVNode(".")])):(t.openBlock(),t.createElementBlock("h4",Vi,t.toDisplayString(e.ssoLang[this.appLanguage].please_wait),1))])}const De=V(Bi,[["render",Mi]]),Ri={name:"ModalOverlay",mixins:[P],data(){return{toggle:!1}},mounted(){k.$on("closeModal",()=>{this.toggle=!1,window.document.body.style.overflow="auto",window.document.body.style.height="auto"}),k.$on("openModalOverlay",()=>{this.toggle=!0}),k.$on("toggleLanguageModal",this.toggleModal),k.$on("toggleSSOModal",this.toggleModal),k.$on("toggleSSOPickModal",this.toggleModal)},methods:{toggleModal(e=!0){e&&(this.toggle=!this.toggle,this.toggle?(window.document.body.style.overflow="hidden",window.document.body.style.height="100vh"):(window.document.body.style.overflow="auto",window.document.body.style.height="auto"))},toggleEmit(){var e,a;!this.isLoggedIn&&((a=(e=this.user)==null?void 0:e.lead_form)!=null&&a.forceFilling)||k.$emit("closeModal")}}};function qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass({"pointer delete-menu":!0,"delete-menu-active":l.toggle}),onClick:a[0]||(a[0]=(...h)=>d.toggleEmit&&d.toggleEmit(...h))},null,2)}const Ue=V(Ri,[["render",qi],["__scopeId","data-v-a128c2fa"]]),Di={name:"SSO",mixins:[te,ne,ie,P],data(){return{toggle:!1,email:"",loading:!1}},mounted(){k.$on("toggleSSOModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async submit(){this.loading=!0;const e=await this.getCompanyBySSOEmail({email:this.email});this.loading=!1;let a;if(!(!e||e.error))if(a=Object.keys(e.sso),a.length)a.length<=1?(a[0]==="azure"&&this.microsoftLogin("sso",e.sso.azure.sso),a[0]==="okta"&&this.oktaLogin(e.sso.okta.sso),a[0]==="saml"&&this.samlLogin(e.sso.saml.sso.loginUrl)):(this.forceClose(),k.$emit("toggleSSOPickModal",{sso:e.sso,email:this.email}));else return this.forceClose(),this.errorSnack(this.ssoLang[this.appLanguage].no_sso_logins)},toggleModal(){this.toggle=!this.toggle}}},Ui=[(e=>(t.pushScopeId("data-v-11f19a09"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Oi={class:"bold center-text color-black half-top half-bottom"},Fi=["placeholder"],Ki={type:"submit",class:"button black-button white-button button-full",style:{margin:"0 auto","margin-top":"25px","margin-bottom":"30px"}},$i={key:0},Hi={key:1,class:"button--loading button__loader"};function Qi(e,a,s,u,l,d){return t.openBlock(),t.createElementBlock("form",{onSubmit:a[3]||(a[3]=t.withModifiers((...h)=>d.submit&&d.submit(...h),["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...h)=>d.forceClose&&d.forceClose(...h)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Ui),t.createElementVNode("h3",Oi,t.toDisplayString(e.ssoLang[e.appLanguage].enter_company_email),1),t.createElementVNode("div",null,[t.withDirectives(t.createElementVNode("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=h=>l.email=h),placeholder:e.ssoLang[this.appLanguage].email,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",class:"edit-input h-40 lh-40",style:{width:"80%"},required:"",onKeydown:a[2]||(a[2]=t.withKeys(t.withModifiers(()=>{},["prevent"]),["space"]))},null,40,Fi),[[t.vModelText,l.email]])]),t.createElementVNode("button",Ki,[l.loading?(t.openBlock(),t.createElementBlock("span",Hi)):(t.openBlock(),t.createElementBlock("span",$i,t.toDisplayString(e.ssoLang[e.appLanguage].continue),1))])],34)}const Oe=V(Di,[["render",Qi],["__scopeId","data-v-11f19a09"]]),Gi={name:"SSOPick",mixins:[te,ne,ie,P],data(){return{toggle:!1,sso:null,email:null,azureLoad:!1,oktaLoad:!1,samlLoad:!1}},mounted(){k.$on("toggleSSOPickModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1})},beforeDestroy(){k._events.toggleSSOPickModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.toggleModal()},async ssoLogin(e){e==="azure"&&(this.microsoftLogin("sso",this.sso.azure.sso),this.azureLoad=!0),e==="okta"&&(this.oktaLogin(this.sso.okta.sso),this.oktaLoad=!0),e==="saml"&&(this.samlLogin(this.sso.saml.sso.loginUrl),this.samlLoad=!0)},toggleModal(e){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}}},oe=e=>(t.pushScopeId("data-v-4f821f65"),e=e(),t.popScopeId(),e),Wi=[oe(()=>t.createElementVNode("i",{class:"font-17 color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"responsive-image",style:{width:"45%"}})],-1))],Yi={class:"bold center-text color-black half-top half-bottom"},Xi=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/azure.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),Zi={key:0},Ji={key:1,class:"button--loading button__loader"},eo=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/okta.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),to={key:0},no={key:1,class:"button--loading button__loader"},ao=oe(()=>t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/saml.png",style:{position:"absolute","margin-left":"-11px",padding:"8px 0",height:"100%"}},null,-1)),io={key:0},oo={key:1,class:"button--loading button__loader"};function ro(e,a,s,u,l,d){var h,m,f;return t.openBlock(),t.createElementBlock("form",{onSubmit:a[4]||(a[4]=t.withModifiers(()=>{},["prevent"])),class:t.normalizeClass(["menu-wrapper menu-light menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...v)=>d.forceClose&&d.forceClose(...v)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},Wi),t.createElementVNode("h3",Yi,t.toDisplayString(e.ssoLang[e.appLanguage].select_sign_method),1),(h=l.sso)!=null&&h.azure?(t.openBlock(),t.createElementBlock("a",{key:0,onClick:a[1]||(a[1]=v=>d.ssoLogin("azure")),class:"button-center button black-button button-90 google-button pointer"},[Xi,l.azureLoad?(t.openBlock(),t.createElementBlock("span",Ji)):(t.openBlock(),t.createElementBlock("span",Zi,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Azure",1))])):t.createCommentVNode("",!0),(m=l.sso)!=null&&m.okta?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:a[2]||(a[2]=v=>d.ssoLogin("okta")),class:"button-center button black-button button-90 google-button pointer"},[eo,l.oktaLoad?(t.openBlock(),t.createElementBlock("span",no)):(t.openBlock(),t.createElementBlock("span",to,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" Okta",1))])):t.createCommentVNode("",!0),(f=l.sso)!=null&&f.saml?(t.openBlock(),t.createElementBlock("a",{key:2,onClick:a[3]||(a[3]=v=>d.ssoLogin("saml")),class:"button-center button black-button button-90 google-button pointer"},[ao,l.samlLoad?(t.openBlock(),t.createElementBlock("span",oo)):(t.openBlock(),t.createElementBlock("span",io,t.toDisplayString(e.ssoLang[e.appLanguage].sign_in_with)+" SAML",1))])):t.createCommentVNode("",!0)],34)}const Fe=V(Gi,[["render",ro],["__scopeId","data-v-4f821f65"]]),so={name:"LinkIcon",mixins:[P],props:{linkAdding:{type:Boolean,required:!1,default:!1},hideExternalIcon:{type:Boolean,required:!1,default:!1},switching:{type:Boolean,required:!1,default:!1},pulse:{type:Boolean,required:!1,default:!1},editing:{type:Boolean,required:!1,default:!0},directPick:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},to:{type:String,required:!1,default:""},linkStyle:{type:String,required:!1,default:"link-grid"},data:{type:Object,required:!0},customLinkStyle:{type:Object,required:!1,default:()=>{}},shareIconStyle:{type:Object,required:!1,default:()=>{}}},computed:{linkText(){return this.appLanguage!=="en"&&this.data.text?this.ssoLang[this.appLanguage]["link_text_"+this.data.text.toLowerCase().trim().replace(/ /g,"_")]||this.data.text:this.data.text}},methods:{}},co=["src","alt"],lo=["src","alt"],po=["src","alt"],uo=["src","alt"];function _o(e,a,s,u,l,d){var h,m;return t.openBlock(),t.createElementBlock("a",{class:t.normalizeClass(["disable-select",s.linkStyle+(s.disabled?" opacity-50":"")]),style:t.normalizeStyle((s.editing?"cursor: move":"cursor: pointer")+"!important; overflow: visible;")},[t.createElementVNode("span",{class:t.normalizeClass({"user-link-img":!0,"pulse pulse-border":s.pulse,"link-drag":s.editing}),style:t.normalizeStyle({...(h=s.customLinkStyle)==null?void 0:h.linkIcon})},[!s.data.custom_icon&&s.data.type!=="customlink"?(t.openBlock(),t.createElementBlock("img",{key:0,src:"https://cdn.tapni.co/icons/"+s.data.type+".png",class:"responsive-image",alt:s.data.text,onLoad:a[0]||(a[0]=f=>e.$emit("loaded")),onError:a[1]||(a[1]=f=>e.$emit("loaded"))},null,40,co)):!s.data.custom_icon&&s.data.type==="customlink"&&s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:1,src:"https://cdn.tapni.co/icons/custom-icon-128.gif",class:"responsive-image",alt:s.data.text,onLoad:a[2]||(a[2]=f=>e.$emit("loaded")),onError:a[3]||(a[3]=f=>e.$emit("loaded"))},null,40,lo)):!s.data.custom_icon&&s.data.type==="customlink"&&!s.linkAdding?(t.openBlock(),t.createElementBlock("img",{key:2,src:"https://cdn.tapni.co/icons/customlink.png",class:"responsive-image",alt:s.data.text,onLoad:a[4]||(a[4]=f=>e.$emit("loaded")),onError:a[5]||(a[5]=f=>e.$emit("loaded"))},null,40,po)):(t.openBlock(),t.createElementBlock("img",{key:3,src:s.data.style.custom_icon,style:{"border-radius":"22.46%"},class:"responsive-image",alt:s.data.text,onLoad:a[6]||(a[6]=f=>e.$emit("loaded")),onError:a[7]||(a[7]=f=>e.$emit("loaded"))},null,40,uo))],6),t.createElementVNode("span",{class:"link-text link-drag color-black",style:t.normalizeStyle({color:(m=s.customLinkStyle)==null?void 0:m.color})},t.toDisplayString(d.linkText),5)],6)}const mo=V(so,[["render",_o]]),go={ANDROID_VERSION:"5.6",IOS_VERSION:"5.6",WEB_VERSION:"5.6.0",SUPPORTED_LANGUAGES:["en","de","es","kr","it","fr"],METAPIXEL_ID:"1203678696914368",GOOGLE_ANALYTICS_ID:""},ho={name:"Language",mixins:[P],components:{LinkIcon:mo},data(){return{toggle:!1}},async mounted(){k.$on("toggleLanguageModal",this.toggleModal),k.$on("closeModal",()=>{this.toggle=!1});let e=this.isNative?await Z.Device.getLanguageCode():$.getFirstBrowserLanguage();e&&go.SUPPORTED_LANGUAGES.includes(e)&&this.updateLanguage(e)},beforeDestroy(){k._events.toggleLanguageModal.pop()},methods:{forceClose(){k.$emit("closeModal")},close(){this.forceClose()},async updateLanguage(e){k.$emit("updateLang",e),k.$emit("closeModal")},toggleModal(){this.toggle=!this.toggle}}},fo=[(e=>(t.pushScopeId("data-v-34a6b7b2"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("i",{class:"font-17 fa color-black"},[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/down-arrow.png",class:"fa responsive-image",style:{width:"45%"}})],-1))],ko={class:"bold center-text color-black small-bottom"};function yo(e,a,s,u,l,d){const h=t.resolveComponent("LinkIcon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["menu-wrapper menu-light menu-white menu-modal center-text activate-page",{"active-menu":l.toggle}]),style:{height:"auto","max-height":"92vh","margin-top":"-172.5px"}},[t.createElementVNode("a",{onClick:a[0]||(a[0]=(...m)=>d.close&&d.close(...m)),class:"color-black pull-right pointer",style:{"margin-top":"5px",position:"absolute",right:"5px"}},fo),t.createElementVNode("h3",ko,t.toDisplayString(e.ssoLang[e.appLanguage].app_language),1),t.createVNode(h,{onClick:a[1]||(a[1]=m=>d.updateLanguage("en")),"link-style":"link-grid",data:{type:"lang/en",text:e.ssoLang[this.appLanguage].english},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[2]||(a[2]=m=>d.updateLanguage("es")),"link-style":"link-grid",data:{type:"lang/es",text:e.ssoLang[this.appLanguage].spanish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[3]||(a[3]=m=>d.updateLanguage("de")),"link-style":"link-grid",data:{type:"lang/de",text:e.ssoLang[this.appLanguage].german},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[4]||(a[4]=m=>d.updateLanguage("it")),"link-style":"link-grid",data:{type:"lang/it",text:e.ssoLang[this.appLanguage].italian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[5]||(a[5]=m=>d.updateLanguage("fr")),"link-style":"link-grid",data:{type:"lang/fr",text:e.ssoLang[this.appLanguage].french},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[6]||(a[6]=m=>d.updateLanguage("kr")),"link-style":"link-grid",data:{type:"lang/kr",text:e.ssoLang[this.appLanguage].korean},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[7]||(a[7]=m=>d.updateLanguage("sr")),"link-style":"link-grid",data:{type:"lang/sr",text:e.ssoLang[this.appLanguage].serbian},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"]),t.createVNode(h,{onClick:a[8]||(a[8]=m=>d.updateLanguage("tr")),"link-style":"link-grid",data:{type:"lang/tr",text:e.ssoLang[this.appLanguage].turkish},editing:!1,class:t.normalizeClass({"add-button":!0})},null,8,["data"])],2)}const Ke=V(ho,[["render",yo],["__scopeId","data-v-34a6b7b2"]]);var bo={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};const wo={id:"ssoapp"},vo={key:0,href:"/",class:"header-logo"},Eo=[t.createElementVNode("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAC1CAYAAACppQ33AAAhq0lEQVR42uydCZxWVfnHnxlAdkVQXAABIZHcE1ERcClcSS3/Y5oZppZammVm/jV3XNJscdck11ywNMncF0pUBNM0EVBEXBBUVGQTEJien+d5c4CZYd557z33nHt/38/n+QzM8t6z3fOc5VlESFJsrHKAyuUqM1UuYJMQQkhqbKjyHZVbVF5RWayyXOUzlYUqM1TGq5yp0r+pH1pTUyO1tbVRSkuOiWZRpbKRynYqg1R2VtlSZf1VfocQQkiyYN49xjZQG9bz82oV6LaeJjuqnKLyqMplKo/ntWGo0JuuwLurbK8ypI4C78imIYQQL2DDdIntyluU+bftbQEAuU/lpyrTqNCLQQtb2UGBD7ZdeH8bFIQQQvyCjdSfVHok8FnDbV4/TuUOKvT8gXborbKDDZwdTYG3YdMQQkimHKpyo8paCX5mJ5Xbxdk+/YYKPW4wMPrWUeA72f9b890hhJBgOEyc0VtaNkmXijOiu5wKPT5gyHahKfA+whMKQggJlQGmaNM2MP6tymyVu2JvsOqCDZDNVEao9KMyJ4SQYGljynxdD8+CzdQV4q5dqdAjYgXfE0IICZ4fiztJ9UVXcae3VOgNsIvKgRyXhBBCyqCzyo8yeO7BKgOp0Fdna5U/q9wmzvWLEEIIaQr7q2ySwXNxV38EFfrKwOXrQXERfNqq/FWcBTkhhBCyJg7PeDHRiQrdgWP2+8VZk5dAhLUbxY9xAyGEkHhBNLitMnx+N3EnzIVX6FDm94q7/6jvZ7dL8YzwCCGENJ0tZOWcGFmVodAKvaTMuzTyO3upXMnxSgghpAE2D6AMW8XaeEko9EFNUOYljlU5iWOWEEJIPfQMoAxdYm28ShU6lPmYMhsAofa+y3FLCCFkFUII+FVbRIVezs58Va5S2Z1jlxBCSB1CCP5VFWvjNVeh72zKfL1m/j3SkN6ksinHLyGEEGNWAGW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AH2xsPSMmpoaGT06zjw/3KH7YantEmfZ5BUzn9huHbKBKfU97SSij00ElfKpLURgl/CQymNreOkbY3kgu76QQYbB48UFpIG3wD72tZ8kF2kPfYBMf+NUHhAXY//TgHennLPCCKnLvqBCJ554z3bNkFYqvVS2FHd3/yWV3uLSuXa2lXaLOn9baxMGfKRxvAmXpCm2G4e8LbRs9g12jPebYG7oaTv+baw/N1FZz3ZuPev0JxZNuNrA8ekc+4qxMU3cvTiuoSbZgraWzUwIFToJG0zor5ncU+f7mPRxLN+uAYU+N+CdWpGBTcDrJqVgLiXjoTbiTmM62u8tMoFL58em0GupvAmhQif5Yrntwj9kU0RPSUlDef+HzUFIWNBtjRBCCKFCJ4QQQggVOiGEEEKo0AkhhBBChU4IIYRQoRNCCCGECp0QQgghCdKyU6dObAWSGgsWLJBly5axIUgqtGvXTlq3bi21tYxhQypn/vz50r59+2jL33Lq1KnsRZI4VVVV0rJlS9l7771lwoQJbBCSCiNHjpTjjjtO5s1juH5SOVgYtm3bNl6F3rVrV/YiSY1WrVqxEUhqdOzYUdq0afO5EFJ0eIdOCCGEUKETQgghhAqdEEIIIVTohBBCCKFCJ4QQQqjQCSGEEEKFTgghhBAqdEIIIYRQoRNCCCFU6IQQQgihQieEEEIIFTohhBBCqNAJIYQQKnRCCCGEUKETQgghhAqdEEIIIVTohBBCCBU6IYQQQqjQCSGEEEKFTgghhBAqdEIIIYQKnRBCCCFU6IQQQgihQieEEEIIFTohhBBChU4IIYSQWGjJJiDEK7UpfW5Vip9NCImA/wowALqv7GXv+J+kAAAAAElFTkSuQmCC",onerror:"this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",class:"header-logo-img"},null,-1)],zo={class:"lang-icon"},So={class:"snackbar snackbar-boxed",id:"snackbar"},Lo={class:"snack-body",id:"errorSnack"},Co={id:"errorMessage"},To=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],Io={class:"snack-body",id:"successSnack"},Ao={id:"successMessage"},Po=[t.createElementVNode("img",{src:"https://cdn.tapni.co/icons/notification-close.png",style:{width:"100%"}},null,-1)],$e=Object.assign({name:"TapniAuth",mixins:[P],data(){return{isSetup:!1}},components:{Language:Ke,SSOPick:Fe,SSO:Oe,ModalOverlay:Ue,AuthCallback:De,AuthReset:qe,AuthVerify:Re,AuthRegister:Me,AuthLogin:Ve,AuthWelcome:Ae},props:{view:{type:String,default:""},isModal:{type:Boolean,default:!1}},computed:{initialized(){return this.isSetup||this.isModal}},async mounted(){this.applyBgStyle(),k.$on("ssoEvent",this.ssoOutgoingEvent),k.$on("ssoLogout",e=>this.logout(e)),k.$on("getLoggedInAccounts",e=>this.getLoggedInAccounts(e)),k.$on("refreshTokenAction",e=>this.refreshTokenAction(e))},methods:{async init(){if(this.isSetup)return;this.isSetup=!0,this.setToken(this.$storage.token);const e=this.getRefreshTokens();this.setRefreshToken(e[0]),this.getLoggedInAccounts(),this.$emit("ssoLibraryReady")},ssoOutgoingEvent(e){this.$emit("ssoEvent",e)},ssoIncomingEvent(e){k.$emit(e.name,e.data)},applyBgStyle(){this.display==="redirect"?document.getElementsByTagName("html")[0].style="background: #dfeefe;":document.getElementsByTagName("html")[0].style=""},toggleLanguageModal(){k.$emit("toggleLanguageModal",!0)}},watch:{display(){this.applyBgStyle()}}},{setup(e){return document.addEventListener("DOMContentLoaded",function(){const a=document.createElement("script");a.src=`https://www.google.com/recaptcha/api.js?render=${bo.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`,document.head.appendChild(a)}),(a,s)=>(t.openBlock(),t.createElementBlock("div",wo,[a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",vo,Eo)):t.createCommentVNode("",!0),a.display==="redirect"?(t.openBlock(),t.createElementBlock("a",{key:1,onClick:s[0]||(s[0]=(...u)=>a.toggleLanguageModal&&a.toggleLanguageModal(...u)),class:"font-18 no-border pointer color-black",style:{position:"absolute",right:"20px",top:"-10px","z-index":"1"}},[t.createElementVNode("span",zo,t.toDisplayString(a.appLanguage.toUpperCase()),1)])):t.createCommentVNode("",!0),t.createVNode(Ue),t.createVNode(Ke),t.createVNode(Oe),t.createVNode(Fe),a.initialized&&a.renderView==="AuthWelcome"?(t.openBlock(),t.createBlock(Ae,{key:2})):a.initialized&&a.renderView==="AuthLogin"?(t.openBlock(),t.createBlock(Ve,{key:3,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthRegister"?(t.openBlock(),t.createBlock(Me,{key:4,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthVerify"?(t.openBlock(),t.createBlock(Re,{key:5,isModal:e.isModal},null,8,["isModal"])):a.initialized&&a.renderView==="AuthReset"?(t.openBlock(),t.createBlock(qe,{key:6})):a.initialized&&a.renderView==="AuthCallback"?(t.openBlock(),t.createBlock(De,{key:7})):(t.openBlock(),t.createBlock(t.unref(W.RouterView),{key:8})),t.createElementVNode("div",So,[t.createElementVNode("p",Lo,[t.createElementVNode("span",Co,t.toDisplayString(a.ssoLang[a.appLanguage].error),1),t.createElementVNode("a",{onClick:s[1]||(s[1]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},To)]),t.createElementVNode("p",Io,[t.createElementVNode("span",Ao,t.toDisplayString(a.ssoLang[a.appLanguage].success),1),t.createElementVNode("a",{onClick:s[2]||(s[2]=(...u)=>a.closeSnacks&&a.closeSnacks(...u)),style:{position:"absolute",right:"10px",top:"10px",width:"50px",height:"50px"}},Po)])])]))}});return{TapniAuth:$e,install:(e,a)=>{a&&a.API_ROOT&&(e.config.globalProperties.$API_ROOT=a.API_ROOT),e.component("TapniAuth",$e)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
package/src/install.js CHANGED
@@ -4,7 +4,8 @@ import ReactiveStorage from '@tapni/capacitor-reactive-localstorage-vue3'
4
4
  // Export the component by default
5
5
  export default {
6
6
  TapniAuth: App,
7
- install: (app) => {
7
+ install: (app, options) => {
8
+ if (options && options.API_ROOT) app.config.globalProperties.$API_ROOT = options.API_ROOT;
8
9
  app.component('TapniAuth', App);
9
10
  }
10
11
  };
@@ -69,6 +69,6 @@ export default {
69
69
  return Api(storage).post('/saml/url', data)
70
70
  },
71
71
  exchangeAuthCode (data, storage) {
72
- return Api(storage).post('/v1/users/auth-code', data)
72
+ return Api(storage).post('/users/auth-code', data)
73
73
  },
74
74
  }