@tapni/auth 0.0.48 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,186 +1,190 @@
1
- import { reactive as Ce, readonly as Te, resolveComponent as V, openBlock as c, createElementBlock as l, createElementVNode as t, toDisplayString as d, createCommentVNode as h, createVNode as v, withCtx as j, createTextVNode as f, pushScopeId as O, popScopeId as B, createStaticVNode as je, nextTick as J, withModifiers as w, normalizeStyle as R, withDirectives as k, withKeys as E, vModelText as x, vModelDynamic as K, vShow as I, createBlock as P, normalizeClass as b, unref as Pe } from "vue";
2
- import { RouterView as Ae } from "vue-router";
3
- import g from "await-to-js";
4
- import Y from "axios";
5
- import { jwtDecode as te } from "jwt-decode";
6
- import { Device as $ } from "@capacitor/device";
7
- import { Capacitor as D } from "@capacitor/core";
8
- import { GoogleAuth as ee } from "@codetrix-studio/capacitor-google-auth";
9
- import { FacebookLogin as Ie } from "@capacitor-community/facebook-login";
10
- import { SignInWithApple as Ee } from "@capacitor-community/apple-sign-in";
11
- import { MsAuthPlugin as xe } from "@recognizebv/capacitor-plugin-msauth";
12
- import { Browser as H } from "@capacitor/browser";
13
- import qe from "qr-code-styling";
14
- import { sanitizeUrl as Me } from "@braintree/sanitize-url";
1
+ import { reactive as Qn, readonly as Gn, resolveComponent as de, openBlock as f, createElementBlock as k, createElementVNode as c, toDisplayString as y, createCommentVNode as T, createVNode as j, withCtx as G, createTextVNode as I, pushScopeId as pe, popScopeId as ue, createStaticVNode as Wn, nextTick as We, withModifiers as U, normalizeStyle as ce, withDirectives as B, withKeys as te, vModelText as ae, vModelDynamic as fe, vShow as J, createBlock as Y, normalizeClass as R, unref as Yn } from "vue";
2
+ import { RouterView as Xn } from "vue-router";
3
+ import L from "await-to-js";
4
+ import Be from "axios";
5
+ import { jwtDecode as Je } from "jwt-decode";
6
+ import { Device as ke } from "@capacitor/device";
7
+ import { Capacitor as me } from "@capacitor/core";
8
+ import { GoogleAuth as Ye } from "@codetrix-studio/capacitor-google-auth";
9
+ import { FacebookLogin as Zn } from "@capacitor-community/facebook-login";
10
+ import { SignInWithApple as Jn } from "@capacitor-community/apple-sign-in";
11
+ import { MsAuthPlugin as et } from "@recognizebv/capacitor-plugin-msauth";
12
+ import { Browser as be } from "@capacitor/browser";
13
+ import nt from "qr-code-styling";
14
+ import { sanitizeUrl as tt } from "@braintree/sanitize-url";
15
15
  import "@tapni/capacitor-reactive-localstorage-vue3";
16
- const Re = "0.0.48", m = (e, a = !1) => {
17
- const n = Re;
18
- let o = "https://api.tapni.co/v1/";
19
- location.hostname.includes("dev.") && (o = "https://api-dev.tapni.co/v1/");
20
- let i = Y.create({
21
- baseURL: o,
16
+ const at = "0.0.50", z = (e, t = !1) => {
17
+ const r = at;
18
+ let u = "https://api.tapni.co/v1/";
19
+ location.hostname.includes("dev.") && (u = "https://api-dev.tapni.co/v1/");
20
+ let l = Be.create({
21
+ baseURL: u,
22
22
  headers: {
23
- Authorization: `Bearer ${e.token}`,
24
- "X-Client-Name": "sso-" + n.platform,
25
- "X-Client-Version": n.version
23
+ ...e ? { Authorization: `Bearer ${e.token}` } : {},
24
+ "X-Client-Name": "sso-" + r.platform,
25
+ "X-Client-Version": r.version
26
26
  }
27
27
  });
28
- return i.interceptors.request.use(async function(r) {
29
- if (["post", "put", "delete"].includes(r.method.toLowerCase()) ? r.data = {
30
- ...r.data,
31
- lang: e.appLanguage,
32
- realm: e.realm || "app"
33
- } : r.method.toLowerCase() === "get" && (r.params = {
34
- ...r.params,
35
- lang: e.appLanguage,
36
- realm: e.realm || "app"
37
- }), e.token && !a) {
38
- const p = te(e.token);
39
- if (p.exp - 30 < Math.floor(Date.now() / 1e3))
40
- return z.methods.refreshTokenAction(p).then(() => (r.headers = {
41
- ...r.headers,
28
+ return l.interceptors.request.use(async function(d) {
29
+ if (["post", "put", "delete"].includes(d.method.toLowerCase()) ? d.data = {
30
+ ...d.data,
31
+ ...e ? {
32
+ lang: e.appLanguage,
33
+ realm: e.realm || "app"
34
+ } : {}
35
+ } : d.method.toLowerCase() === "get" && (d.params = {
36
+ ...d.params,
37
+ ...e ? {
38
+ lang: e.appLanguage,
39
+ realm: e.realm || "app"
40
+ } : {}
41
+ }), e && e.token && !t) {
42
+ const h = Je(e.token);
43
+ if (h.exp - 30 < Math.floor(Date.now() / 1e3))
44
+ return D.methods.refreshTokenAction(h).then(() => (d.headers = {
45
+ ...d.headers,
42
46
  Authorization: `Bearer ${e.token}`
43
- }, r));
47
+ }, d));
44
48
  }
45
- return r;
46
- }), i;
47
- }, M = {
49
+ return d;
50
+ }), l;
51
+ }, re = {
48
52
  getMe() {
49
- return m(storage).get("/users/me");
53
+ return z(storage).get("/users/me");
50
54
  },
51
- getByUsername(e, a) {
52
- let n = document.referrer || "", o = e.utmParams || {};
53
- return e.dontTap && (o.dontTap = !0), m(a).get(`/users/${e.username}`, {
54
- params: o,
55
- headers: { "X-Referer": n }
55
+ getByUsername(e, t) {
56
+ let r = document.referrer || "", u = e.utmParams || {};
57
+ return e.dontTap && (u.dontTap = !0), z(t).get(`/users/${e.username}`, {
58
+ params: u,
59
+ headers: { "X-Referer": r }
56
60
  });
57
61
  },
58
- getByNumber(e, a) {
59
- let n = document.referrer || "", o = e.utmParams || {};
60
- return e.dontTap && (o.dontTap = !0), m(a).get(`/users/tag/${e.serial}`, {
61
- params: o,
62
- headers: { "X-Referer": n }
62
+ getByNumber(e, t) {
63
+ let r = document.referrer || "", u = e.utmParams || {};
64
+ return e.dontTap && (u.dontTap = !0), z(t).get(`/users/tag/${e.serial}`, {
65
+ params: u,
66
+ headers: { "X-Referer": r }
63
67
  });
64
68
  },
65
- save(e, a) {
66
- return m(a).put("/users", e);
69
+ save(e, t) {
70
+ return z(t).put("/users", e);
67
71
  },
68
- newPassword(e, a) {
69
- return m(a).put("/users/new-password", e);
72
+ newPassword(e, t) {
73
+ return z(t).put("/users/new-password", e);
70
74
  },
71
- connect(e, a) {
72
- return m(a).post("/users/connect", e);
75
+ connect(e, t) {
76
+ return z(t).post("/users/connect", e);
73
77
  },
74
- eventLog(e, a) {
75
- return m(a).post("/users/log", e);
78
+ eventLog(e, t) {
79
+ return z(t).post("/users/log", e);
76
80
  },
77
- deleteAccount(e, a) {
78
- return m(a).post("/users/profile/delete", e);
81
+ deleteAccount(e, t) {
82
+ return z(t).post("/users/profile/delete", e);
79
83
  },
80
- registerDevice(e, a) {
81
- return m(a).post("/users/device/register", e);
84
+ registerDevice(e, t) {
85
+ return z(t).post("/users/device/register", e);
82
86
  },
83
- addFcmToken(e, a) {
84
- return m(a).post("/users/device/fcm", e);
87
+ addFcmToken(e, t) {
88
+ return z(t).post("/users/device/fcm", e);
85
89
  },
86
- loginUsingQR(e, a) {
87
- return m(a).post("/users/qr/login", e);
90
+ loginUsingQR(e, t) {
91
+ return z(t).post("/users/qr/login", e);
88
92
  }
89
- }, ae = {
90
- registerDevice(e, a) {
91
- return m(a).post("/devices/add", e);
93
+ }, Xe = {
94
+ registerDevice(e, t) {
95
+ return z(t).post("/devices/add", e);
92
96
  },
93
- addFcmToken(e, a) {
94
- return m(a).post("/devices/fcm/add", e);
97
+ addFcmToken(e, t) {
98
+ return z(t).post("/devices/fcm/add", e);
95
99
  }
96
100
  };
97
- let S;
98
- $.getId().then((e) => S = e.uuid);
99
- const y = {
100
- register(e, a) {
101
- return e.device_id = S, m(a).post("/users/register", e);
101
+ let F;
102
+ ke.getId().then((e) => F = e.uuid);
103
+ const N = {
104
+ register(e, t) {
105
+ return e.device_id = F, z(t).post("/users/register", e);
102
106
  },
103
- login(e, a) {
104
- return e.device_id = S, m(a).post("/users/login", e);
107
+ login(e, t) {
108
+ return e.device_id = F, z(t).post("/users/login", e);
105
109
  },
106
- logout(e, a) {
107
- return e.device_id = S, m(a).post("/users/logout", e);
110
+ logout(e, t) {
111
+ return e.device_id = F, z(t).post("/users/logout", e);
108
112
  },
109
- refreshToken(e, a) {
110
- return m(a, !0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`);
113
+ refreshToken(e, t) {
114
+ return z(t, !0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`);
111
115
  },
112
- getLoggedInAccounts(e, a) {
113
- return m(a).post("/users/tokens", e);
116
+ getLoggedInAccounts(e, t) {
117
+ return z(t).post("/users/tokens", e);
114
118
  },
115
- sendResetEmail(e, a) {
116
- return e.device_id = S, m(a).post("/users/reset", e);
119
+ sendResetEmail(e, t) {
120
+ return e.device_id = F, z(t).post("/users/reset", e);
117
121
  },
118
- changePassword(e, a) {
119
- return m(a).put("/users/password", e, {
122
+ changePassword(e, t) {
123
+ return z(t).put("/users/password", e, {
120
124
  headers: { Authorization: "Bearer " + e.token }
121
125
  });
122
126
  },
123
- verify(e, a) {
124
- return m(a).get("/users/verify?c=" + e.code + "&e=" + e.email + "&captchatoken=" + e.captchaToken);
127
+ verify(e, t) {
128
+ return z(t).get("/users/verify?c=" + e.code + "&e=" + e.email + "&captchatoken=" + e.captchaToken);
125
129
  },
126
130
  googleUrl(e) {
127
- return m(e).get("/users/google/url");
131
+ return z(e).get("/users/google/url");
128
132
  },
129
- google(e, a) {
130
- return e.device_id = S, m(a).post("/users/google", e);
133
+ google(e, t) {
134
+ return e.device_id = F, z(t).post("/users/google", e);
131
135
  },
132
- facebook(e, a) {
133
- return e.device_id = S, m(a).post("/users/facebook", e);
136
+ facebook(e, t) {
137
+ return e.device_id = F, z(t).post("/users/facebook", e);
134
138
  },
135
- googleSDK(e, a) {
136
- return e.device_id = S, m(a).post("/users/google/sdk", e);
139
+ googleSDK(e, t) {
140
+ return e.device_id = F, z(t).post("/users/google/sdk", e);
137
141
  },
138
- facebookSDK(e, a) {
139
- return e.device_id = S, m(a).post("/users/facebook/sdk", e);
142
+ facebookSDK(e, t) {
143
+ return e.device_id = F, z(t).post("/users/facebook/sdk", e);
140
144
  },
141
- appleSDK(e, a) {
142
- return e.device_id = S, m(a).post("/users/apple/sdk", e);
145
+ appleSDK(e, t) {
146
+ return e.device_id = F, z(t).post("/users/apple/sdk", e);
143
147
  },
144
- microsoftSDK(e, a) {
145
- return e.device_id = S, m(a).post("/users/microsoft/sdk", e);
148
+ microsoftSDK(e, t) {
149
+ return e.device_id = F, z(t).post("/users/microsoft/sdk", e);
146
150
  },
147
- oktaSDK(e, a) {
148
- return e.device_id = S, m(a).post("/users/okta/sdk", e);
151
+ oktaSDK(e, t) {
152
+ return e.device_id = F, z(t).post("/users/okta/sdk", e);
149
153
  },
150
- samlLoginUrl(e, a) {
151
- return m(a).post("/saml/url", e);
154
+ samlLoginUrl(e, t) {
155
+ return z(t).post("/saml/url", e);
152
156
  },
153
- exchangeAuthCode(e, a) {
154
- return m(a).post("/v1/users/auth-code", e);
157
+ exchangeAuthCode(e, t) {
158
+ return z(t).post("/v1/users/auth-code", e);
155
159
  }
156
- }, X = {
157
- getBySSOEmail(e, a) {
158
- return m(a).get(`/company/sso/${e}`);
160
+ }, xe = {
161
+ getBySSOEmail(e, t) {
162
+ return z(t).get(`/company/sso/${e}`);
159
163
  },
160
- acceptCompanyInvitation(e, a) {
161
- return m(a).get(`/users/invitation?ic=${e}`);
164
+ acceptCompanyInvitation(e, t) {
165
+ return z(t).get(`/users/invitation?ic=${e}`);
162
166
  },
163
- qrCodePooling(e, a) {
164
- return m(a).post("/company/login/qr", e);
167
+ qrCodePooling(e, t) {
168
+ return z(t).post("/company/login/qr", e);
165
169
  }
166
- }, U = Ce(/* @__PURE__ */ new Map()), u = {
167
- $on(e, a) {
168
- let n = U.get(e);
169
- n || (n = /* @__PURE__ */ new Set(), U.set(e, n)), n.add(a);
170
+ }, he = Qn(/* @__PURE__ */ new Map()), v = {
171
+ $on(e, t) {
172
+ let r = he.get(e);
173
+ r || (r = /* @__PURE__ */ new Set(), he.set(e, r)), r.add(t);
170
174
  },
171
- $emit(e, ...a) {
172
- const n = U.get(e);
173
- if (n)
174
- for (const o of n)
175
- o(...a);
175
+ $emit(e, ...t) {
176
+ const r = he.get(e);
177
+ if (r)
178
+ for (const u of r)
179
+ u(...t);
176
180
  },
177
- $off(e, a) {
178
- const n = U.get(e);
179
- n && n.delete(a);
181
+ $off(e, t) {
182
+ const r = he.get(e);
183
+ r && r.delete(t);
180
184
  }
181
185
  };
182
- Te(u);
183
- const ie = {
186
+ Gn(v);
187
+ const en = {
184
188
  state: {
185
189
  english: "English",
186
190
  spanish: "Spanish",
@@ -637,7 +641,7 @@ const ie = {
637
641
  choose_other_login_methods: "Choose other login methods",
638
642
  no_sso_logins: "Your company does not use SSO login, please contact your administrator"
639
643
  }
640
- }, oe = {
644
+ }, nn = {
641
645
  state: {
642
646
  english: "Englisch",
643
647
  spanish: "Spanisch",
@@ -1089,7 +1093,7 @@ const ie = {
1089
1093
  choose_other_login_methods: "Wählen Sie andere Anmeldeverfahren",
1090
1094
  no_sso_logins: "Ihr Unternehmen verwendet keine SSO-Anmeldung. Bitte wenden Sie sich an Ihren Administrator"
1091
1095
  }
1092
- }, re = {
1096
+ }, tn = {
1093
1097
  state: {
1094
1098
  english: "Inglés",
1095
1099
  spanish: "Español",
@@ -1545,7 +1549,7 @@ const ie = {
1545
1549
  choose_other_login_methods: "Elige otros métodos de inicio de sesión",
1546
1550
  no_sso_logins: "Su empresa no utiliza el inicio de sesión SSO. Comuníquese con su administrador"
1547
1551
  }
1548
- }, se = {
1552
+ }, an = {
1549
1553
  state: {
1550
1554
  english: "Anglais",
1551
1555
  spanish: "Espagnol",
@@ -2003,7 +2007,7 @@ Il n'y a aucun lien dans votre profil.`,
2003
2007
  choose_other_login_methods: "Choisissez d'autres méthodes de connexion",
2004
2008
  no_sso_logins: "Votre entreprise n'utilise pas de login SSO, veuillez contacter votre administrateur"
2005
2009
  }
2006
- }, ce = {
2010
+ }, on = {
2007
2011
  state: {
2008
2012
  english: "Inglese",
2009
2013
  spanish: "Spagnolo",
@@ -2456,7 +2460,7 @@ Il n'y a aucun lien dans votre profil.`,
2456
2460
  choose_other_login_methods: "Scegli altri metodi di accesso",
2457
2461
  no_sso_logins: "La tua azienda non utilizza l'accesso SSO, contatta il tuo amministratore"
2458
2462
  }
2459
- }, le = {
2463
+ }, rn = {
2460
2464
  state: {
2461
2465
  english: "Engleski",
2462
2466
  spanish: "Španski",
@@ -2901,7 +2905,7 @@ Il n'y a aucun lien dans votre profil.`,
2901
2905
  choose_other_login_methods: "Izaberite druge metode prijavljivanja",
2902
2906
  no_sso_logins: "Vaša kompanija ne koristi SSO prijavu, kontaktirajte svog administratora"
2903
2907
  }
2904
- }, de = {
2908
+ }, sn = {
2905
2909
  state: {
2906
2910
  english: "İngilizce",
2907
2911
  spanish: "İspanyolca",
@@ -3351,7 +3355,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
3351
3355
  choose_other_login_methods: "Diğer giriş yöntemlerini seçin",
3352
3356
  no_sso_logins: "Şirketiniz SSO girişini kullanmıyor, lütfen yöneticinizle iletişime geçin"
3353
3357
  }
3354
- }, Ne = {
3358
+ }, it = {
3355
3359
  state: {
3356
3360
  english: "英文",
3357
3361
  spanish: "西班牙文",
@@ -3799,7 +3803,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
3799
3803
  choose_other_login_methods: "选择其他登录方法",
3800
3804
  no_sso_logins: "您的公司不使用 SSO 登录。 请联系您的管理员"
3801
3805
  }
3802
- }, pe = {
3806
+ }, cn = {
3803
3807
  state: {
3804
3808
  english: "영어",
3805
3809
  spanish: "스페인어",
@@ -4256,13 +4260,13 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4256
4260
  choose_other_login_methods: "다른 로그인 방법 선택하기",
4257
4261
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
4258
4262
  }
4259
- }, Ve = {
4263
+ }, ot = {
4260
4264
  computed: {
4261
4265
  home() {
4262
4266
  return this.$storage && this.$storage.token && this.$storage.username ? "/" + this.$storage.username : "/welcome";
4263
4267
  },
4264
4268
  isAndroid() {
4265
- return /Android/i.test(navigator.userAgent) || D.getPlatform() === "android";
4269
+ return /Android/i.test(navigator.userAgent) || me.getPlatform() === "android";
4266
4270
  },
4267
4271
  isiOS() {
4268
4272
  return [
@@ -4272,10 +4276,10 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4272
4276
  "iPad",
4273
4277
  "iPhone",
4274
4278
  "iPod"
4275
- ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || D.getPlatform() === "ios";
4279
+ ].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || me.getPlatform() === "ios";
4276
4280
  },
4277
4281
  isNative() {
4278
- return D.isNativePlatform();
4282
+ return me.isNativePlatform();
4279
4283
  }
4280
4284
  },
4281
4285
  methods: {
@@ -4283,15 +4287,15 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4283
4287
  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;
4284
4288
  },
4285
4289
  errorSnack(e) {
4286
- let a = document.getElementById("snackbar"), n = document.getElementById("errorMessage"), o = document.getElementById("errorSnack");
4287
- n.innerHTML = e, a.classList.add("show-snack"), o.classList.add("active-snack"), setTimeout(function() {
4288
- o.classList.remove("active-snack"), a.classList.remove("show-snack");
4290
+ let t = document.getElementById("snackbar"), r = document.getElementById("errorMessage"), u = document.getElementById("errorSnack");
4291
+ r.innerHTML = e, t.classList.add("show-snack"), u.classList.add("active-snack"), setTimeout(function() {
4292
+ u.classList.remove("active-snack"), t.classList.remove("show-snack");
4289
4293
  }, 3e3);
4290
4294
  },
4291
4295
  successSnack(e) {
4292
- let a = document.getElementById("snackbar"), n = document.getElementById("successMessage"), o = document.getElementById("successSnack");
4293
- n.innerHTML = e, a.classList.add("show-snack"), o.classList.add("active-snack"), setTimeout(function() {
4294
- o.classList.remove("active-snack"), a.classList.remove("show-snack");
4296
+ let t = document.getElementById("snackbar"), r = document.getElementById("successMessage"), u = document.getElementById("successSnack");
4297
+ r.innerHTML = e, t.classList.add("show-snack"), u.classList.add("active-snack"), setTimeout(function() {
4298
+ u.classList.remove("active-snack"), t.classList.remove("show-snack");
4295
4299
  }, 3e3);
4296
4300
  },
4297
4301
  closeSnacks() {
@@ -4304,28 +4308,28 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
4304
4308
  isEmpty(e) {
4305
4309
  if (!e)
4306
4310
  return !0;
4307
- for (let a in e)
4308
- if (e.hasOwnProperty(a))
4311
+ for (let t in e)
4312
+ if (e.hasOwnProperty(t))
4309
4313
  return !1;
4310
4314
  return JSON.stringify(e) === JSON.stringify({});
4311
4315
  },
4312
4316
  /** Copy string to clipboard */
4313
4317
  copy(e = "") {
4314
- const a = document.createElement("textarea");
4315
- 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);
4318
+ const t = document.createElement("textarea");
4319
+ t.value = e, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t), this.successSnack(this.ssoLang[this.appLanguage].copied);
4316
4320
  },
4317
4321
  async getCaptchaToken(e) {
4318
4322
  try {
4319
4323
  return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", { action: e });
4320
- } catch (a) {
4321
- return console.log(a), null;
4324
+ } catch (t) {
4325
+ return console.log(t), null;
4322
4326
  }
4323
4327
  }
4324
4328
  }
4325
4329
  };
4326
- var Oe = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4327
- const z = {
4328
- mixins: [Ve],
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 = {
4332
+ mixins: [ot],
4329
4333
  data() {
4330
4334
  return {
4331
4335
  appLanguage: "en",
@@ -4337,15 +4341,15 @@ const z = {
4337
4341
  device: {},
4338
4342
  loggedInAccounts: {},
4339
4343
  ssoLang: {
4340
- en: ie.state,
4341
- de: oe.state,
4342
- es: re.state,
4343
- fr: se.state,
4344
- it: ce.state,
4345
- sr: le.state,
4346
- tr: de.state,
4347
- cn: Ne.state,
4348
- kr: pe.state
4344
+ en: en.state,
4345
+ de: nn.state,
4346
+ es: tn.state,
4347
+ fr: an.state,
4348
+ it: on.state,
4349
+ sr: rn.state,
4350
+ tr: sn.state,
4351
+ cn: it.state,
4352
+ kr: cn.state
4349
4353
  },
4350
4354
  display: "npm",
4351
4355
  redirect_uri: "https://t.link/callback/auth",
@@ -4381,7 +4385,7 @@ const z = {
4381
4385
  }
4382
4386
  },
4383
4387
  mounted() {
4384
- this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.$storage.realm = this.$route.query.realm), u.$on("updateLang", this.updateLang), Oe.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4388
+ 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), v.$on("updateLang", this.updateLang), rt.NODE_ENV === "development" && (this.allowedOrigins.push("http://localhost:8082"), this.allowedOrigins.push("http://localhost:7777"), this.allowedOrigins.push("http://localhost:5173"));
4385
4389
  },
4386
4390
  methods: {
4387
4391
  errorHandler(e) {
@@ -4393,61 +4397,61 @@ const z = {
4393
4397
  return e;
4394
4398
  },
4395
4399
  errorSnack(e) {
4396
- let a = document.getElementById("snackbar"), n = document.getElementById("errorMessage"), o = document.getElementById("errorSnack");
4397
- n.innerHTML = e, a.classList.add("show-snack"), o.classList.add("active-snack"), setTimeout(function() {
4398
- o.classList.remove("active-snack"), a.classList.remove("show-snack");
4400
+ let t = document.getElementById("snackbar"), r = document.getElementById("errorMessage"), u = document.getElementById("errorSnack");
4401
+ r.innerHTML = e, t.classList.add("show-snack"), u.classList.add("active-snack"), setTimeout(function() {
4402
+ u.classList.remove("active-snack"), t.classList.remove("show-snack");
4399
4403
  }, 3e3);
4400
4404
  },
4401
4405
  successSnack(e) {
4402
- let a = document.getElementById("snackbar"), n = document.getElementById("successMessage"), o = document.getElementById("successSnack");
4403
- n.innerHTML = e, a.classList.add("show-snack"), o.classList.add("active-snack"), setTimeout(function() {
4404
- o.classList.remove("active-snack"), a.classList.remove("show-snack");
4406
+ let t = document.getElementById("snackbar"), r = document.getElementById("successMessage"), u = document.getElementById("successSnack");
4407
+ r.innerHTML = e, t.classList.add("show-snack"), u.classList.add("active-snack"), setTimeout(function() {
4408
+ u.classList.remove("active-snack"), t.classList.remove("show-snack");
4405
4409
  }, 3e3);
4406
4410
  },
4407
4411
  closeSnacks() {
4408
4412
  document.getElementById("snackbar").classList.remove("show-snack"), document.getElementById("successSnack").classList.remove("active-snack"), document.getElementById("errorSnack").classList.remove("active-snack");
4409
4413
  },
4410
4414
  async eventLog(e) {
4411
- const [a, n] = await g(
4412
- M.eventLog(e, this.$storage)
4415
+ const [t, r] = await L(
4416
+ re.eventLog(e, this.$storage)
4413
4417
  );
4414
- return a ? this.errorHandler(a) : n;
4418
+ return t ? this.errorHandler(t) : r;
4415
4419
  },
4416
4420
  async maintenance() {
4417
- const [e, a] = await g(
4418
- Y.get("https://status.tapni.co/data/maintenance.json")
4421
+ const [e, t] = await L(
4422
+ Be.get("https://status.tapni.co/data/maintenance.json")
4419
4423
  );
4420
4424
  if (e)
4421
4425
  return console.error(e);
4422
- if (a) {
4423
- let n = a.data;
4424
- typeof a.data == "string" && (n = JSON.parse(a.data)), n.api && n.api.maintenanceActive && (location.href = "https://t.link/maintenance?msg=" + n.api.msg);
4426
+ if (t) {
4427
+ let r = t.data;
4428
+ typeof t.data == "string" && (r = JSON.parse(t.data)), r.api && r.api.maintenanceActive && (location.href = "https://t.link/maintenance?msg=" + r.api.msg);
4425
4429
  }
4426
4430
  },
4427
4431
  async getUser(e) {
4428
4432
  if (e) {
4429
- let a, n;
4430
- if (e.username ? [a, n] = await g(
4431
- M.getByUsername(e, this.$storage)
4432
- ) : e.serial && ([a, n] = await g(
4433
- M.getByNumber(e, this.$storage)
4434
- )), a)
4435
- return this.errorHandler(a);
4436
- if (n.data.success) {
4437
- if (!n.data.user && n.data.showDemoProfile) {
4433
+ let t, r;
4434
+ if (e.username ? [t, r] = await L(
4435
+ re.getByUsername(e, this.$storage)
4436
+ ) : e.serial && ([t, r] = await L(
4437
+ re.getByNumber(e, this.$storage)
4438
+ )), t)
4439
+ return this.errorHandler(t);
4440
+ if (r.data.success) {
4441
+ if (!r.data.user && r.data.showDemoProfile) {
4438
4442
  if (this.isLoggedIn)
4439
4443
  throw this.$router.push("/tags#activate"), new Error("Activate the tag");
4440
- return this.$router.push("/" + n.data.showDemoProfile);
4444
+ return this.$router.push("/" + r.data.showDemoProfile);
4441
4445
  }
4442
- !n.data.user && e.login && this.logout(), this.registerLang(
4443
- n.data.user ? n.data.user.ssoLang : "en"
4444
- ), this.setUser(n.data.user);
4446
+ !r.data.user && e.login && this.logout(), this.registerLang(
4447
+ r.data.user ? r.data.user.ssoLang : "en"
4448
+ ), this.setUser(r.data.user);
4445
4449
  }
4446
4450
  }
4447
4451
  },
4448
4452
  async loginSetup(e) {
4449
- var a, n;
4450
- e.data.refreshToken && this.setRefreshToken(e.data.refreshToken), e.data.token && this.setToken(e.data.token), ((n = (a = e.data) == null ? void 0 : a.data) == null ? void 0 : n.ssoLang) !== this.appLanguage && u.$emit("ssoEvent", {
4453
+ var t, r;
4454
+ e.data.refreshToken && this.setRefreshToken(e.data.refreshToken), e.data.token && this.setToken(e.data.token), ((r = (t = e.data) == null ? void 0 : t.data) == null ? void 0 : r.ssoLang) !== this.appLanguage && v.$emit("ssoEvent", {
4451
4455
  name: "saveProfile",
4452
4456
  data: { lang: this.appLanguage, username: e.data.data.username }
4453
4457
  }), 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([
@@ -4460,147 +4464,148 @@ const z = {
4460
4464
  ]);
4461
4465
  },
4462
4466
  async refreshTokenAction(e) {
4463
- const [a, n] = await g(
4464
- y.refreshToken({
4467
+ const [t, r] = await L(
4468
+ N.refreshToken({
4465
4469
  id: e.id,
4466
4470
  refreshToken: this.refreshToken,
4467
4471
  refreshTokenAction: !0
4468
4472
  }, this.$storage)
4469
4473
  );
4470
- if (a && a.response && a.response.data.error === "ACCESS_DENIED")
4474
+ if (t && t.response && t.response.data.error === "ACCESS_DENIED")
4471
4475
  return this.logout(!1), location.reload();
4472
- n && n.data ? this.setToken(n.data.token) : console.error("Invalid response setToken");
4476
+ r && r.data ? this.setToken(r.data.token) : console.error("Invalid response setToken");
4473
4477
  },
4474
4478
  async login(e) {
4475
- const [a, n] = await g(y.login(e, this.$storage));
4476
- if (a)
4477
- return this.errorHandler(a);
4478
- if (n.data.success)
4479
- return this.display === "npm" && (this.loginSetup({ ...n, isModal: e.isModal }), this.getLoggedInAccounts()), this.loginSuccess({ ...n, isModal: e.isModal }), !0;
4479
+ const [t, r] = await L(N.login(e, this.$storage));
4480
+ if (t)
4481
+ return this.errorHandler(t);
4482
+ if (r.data.success)
4483
+ return this.display === "npm" && (this.loginSetup({ ...r, isModal: e.isModal }), this.getLoggedInAccounts()), this.loginSuccess({ ...r, isModal: e.isModal }), !0;
4480
4484
  },
4481
4485
  loginSuccess(e) {
4482
4486
  if (this.display === "redirect") {
4483
4487
  if (this.redirect_uri && !this.allowedOrigins.some(
4484
- (a) => this.redirect_uri.startsWith(a)
4488
+ (t) => this.redirect_uri.startsWith(t)
4485
4489
  ))
4486
4490
  return console.log("Redirect URI not allowed");
4487
4491
  location.href = this.redirect_uri + "?code=" + e.data.auth_code + "&state=" + this.state;
4488
4492
  } else
4489
- this.display === "popup" ? this.allowedOrigins.forEach((a) => {
4490
- var n;
4491
- (n = window.parent) == null || n.postMessage(
4493
+ this.display === "popup" ? this.allowedOrigins.forEach((t) => {
4494
+ var r;
4495
+ (r = window.parent) == null || r.postMessage(
4492
4496
  { code: e.data.auth_code, state: this.$route.query.state },
4493
- a
4497
+ t
4494
4498
  );
4495
- }) : this.display === "npm" && (u.$emit("ssoEvent", { name: "setLoading", data: !0 }), u.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: e.data.data.username } }), e.isModal && (u.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + e.data.data.username + "#edit"));
4499
+ }) : this.display === "npm" && (v.$emit("ssoEvent", { name: "setLoading", data: !0 }), v.$emit("ssoEvent", { name: "getUser", data: { login: !0, username: e.data.data.username } }), e.isModal && (v.$emit("closeModal"), this.successSnack(this.ssoLang[this.appLanguage].success_login)), this.$router.push("/" + e.data.data.username + "#edit"));
4496
4500
  },
4497
4501
  async register(e) {
4498
- const [a, n] = await g(
4499
- y.register(e, this.$storage)
4502
+ const [t, r] = await L(
4503
+ N.register(e, this.$storage)
4500
4504
  );
4501
- return a ? this.errorHandler(a) : n;
4505
+ return t ? this.errorHandler(t) : r;
4502
4506
  },
4503
4507
  async verify(e) {
4504
- const [a, n] = await g(y.verify(e, this.$storage));
4505
- return a ? this.errorHandler(a) : n;
4508
+ const [t, r] = await L(N.verify(e, this.$storage));
4509
+ return t ? this.errorHandler(t) : r;
4506
4510
  },
4507
4511
  async reset(e) {
4508
- const [a, n] = await g(
4509
- y.sendResetEmail(e, this.$storage)
4512
+ const [t, r] = await L(
4513
+ N.sendResetEmail(e, this.$storage)
4510
4514
  );
4511
- if (a)
4512
- return this.errorHandler(a);
4513
- n.data.success && this.successSnack(this.ssoLang[this.appLanguage].password_reset_success);
4515
+ if (t)
4516
+ return this.errorHandler(t);
4517
+ r.data.success && this.successSnack(this.ssoLang[this.appLanguage].password_reset_success);
4514
4518
  },
4515
4519
  async exchangeAuthCode(e) {
4516
- const [a, n] = await g(y.exchangeAuthCode(e, this.storage));
4517
- if (a)
4518
- return this.errorHandler(a);
4519
- await this.loginSetup(n), await this.getLoggedInAccounts(), this.loginSuccess(n);
4520
+ console.log({ data: e });
4521
+ const [t, r] = await L(N.exchangeAuthCode(e, this.$storage));
4522
+ if (t)
4523
+ return console.log({ err: t }), this.errorHandler(t);
4524
+ console.log(r), await this.loginSetup(r), await this.getLoggedInAccounts(), this.loginSuccess(r);
4520
4525
  },
4521
4526
  async changePassword(e) {
4522
- const [a, n] = await g(
4523
- y.changePassword(e, this.$storage)
4527
+ const [t, r] = await L(
4528
+ N.changePassword(e, this.$storage)
4524
4529
  );
4525
- return a ? this.errorHandler(a) : n.data.success;
4530
+ return t ? this.errorHandler(t) : r.data.success;
4526
4531
  },
4527
4532
  async newPassword(e) {
4528
- const [a, n] = await g(
4529
- M.newPassword(e, this.$storage)
4533
+ const [t, r] = await L(
4534
+ re.newPassword(e, this.$storage)
4530
4535
  );
4531
- return a ? this.errorHandler(a) : n.data.success;
4536
+ return t ? this.errorHandler(t) : r.data.success;
4532
4537
  },
4533
4538
  async deleteAccount(e) {
4534
- const [a, n] = await g(
4535
- M.deleteAccount(e, this.$storage)
4539
+ const [t, r] = await L(
4540
+ re.deleteAccount(e, this.$storage)
4536
4541
  );
4537
- return a ? this.errorHandler(a) : n.data.success;
4542
+ return t ? this.errorHandler(t) : r.data.success;
4538
4543
  },
4539
4544
  async registerDevice() {
4540
- const e = await $.getId(), a = await $.getInfo();
4541
- let n = {
4545
+ const e = await ke.getId(), t = await ke.getInfo();
4546
+ let r = {
4542
4547
  device_id: e.uuid,
4543
- platform: a.platform,
4548
+ platform: t.platform,
4544
4549
  device_info: {
4545
- model: a.model,
4546
- manufacturer: a.manufacturer,
4547
- operatingSystem: a.operatingSystem,
4548
- osVersion: a.osVersion,
4549
- isVirtual: a.isVirtual,
4550
- webViewVersion: a.webViewVersion
4550
+ model: t.model,
4551
+ manufacturer: t.manufacturer,
4552
+ operatingSystem: t.operatingSystem,
4553
+ osVersion: t.osVersion,
4554
+ isVirtual: t.isVirtual,
4555
+ webViewVersion: t.webViewVersion
4551
4556
  }
4552
4557
  };
4553
- const [o, i] = await g(
4554
- ae.registerDevice(n, this.$storage)
4558
+ const [u, l] = await L(
4559
+ Xe.registerDevice(r, this.$storage)
4555
4560
  );
4556
- return o ? this.errorHandler(o) : i;
4561
+ return u ? this.errorHandler(u) : l;
4557
4562
  },
4558
4563
  async addFcmToken(e) {
4559
- const [a, n] = await g(
4560
- ae.addFcmToken(e, this.$storage)
4564
+ const [t, r] = await L(
4565
+ Xe.addFcmToken(e, this.$storage)
4561
4566
  );
4562
- return a ? this.errorHandler(a) : n;
4567
+ return t ? this.errorHandler(t) : r;
4563
4568
  },
4564
4569
  async acceptCompanyInvitation(e) {
4565
- const [a, n] = await g(
4566
- X.acceptCompanyInvitation(e, this.$storage)
4570
+ const [t, r] = await L(
4571
+ xe.acceptCompanyInvitation(e, this.$storage)
4567
4572
  );
4568
- return a ? this.errorHandler(a) : n;
4573
+ return t ? this.errorHandler(t) : r;
4569
4574
  },
4570
4575
  async logout(e = !0) {
4571
- e && y.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) => {
4572
- this.loggedInAccounts[a].refreshToken === this.refreshToken && this.refreshTokenAction({
4573
- id: this.loggedInAccounts[a].id
4574
- }).then(() => (this.setLoggedInUserId(this.loggedInAccounts[a].id), this.$storage.username = a, this.$storage.UserId = this.loggedInAccounts[a].id, this.getLoggedInAccounts(), this.$router.push("/" + a)));
4576
+ e && N.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((t) => {
4577
+ this.loggedInAccounts[t].refreshToken === this.refreshToken && this.refreshTokenAction({
4578
+ id: this.loggedInAccounts[t].id
4579
+ }).then(() => (this.setLoggedInUserId(this.loggedInAccounts[t].id), this.$storage.username = t, this.$storage.UserId = this.loggedInAccounts[t].id, this.getLoggedInAccounts(), this.$router.push("/" + t)));
4575
4580
  }) : this.setUser(null), await this.$router.push("/welcome");
4576
4581
  },
4577
4582
  async getCompanyBySSOEmail(e) {
4578
- const [a, n] = await g(
4579
- X.getBySSOEmail(e.email, this.$storage)
4583
+ const [t, r] = await L(
4584
+ xe.getBySSOEmail(e.email, this.$storage)
4580
4585
  );
4581
- if (a)
4582
- return this.errorHandler(a);
4583
- if (n.data.success)
4584
- return n.data;
4586
+ if (t)
4587
+ return this.errorHandler(t);
4588
+ if (r.data.success)
4589
+ return r.data;
4585
4590
  },
4586
4591
  async getLoggedInAccounts() {
4587
- const e = this.getRefreshTokens(), [a, n] = await g(
4588
- y.getLoggedInAccounts({ refreshTokens: e }, this.$storage)
4592
+ const e = this.getRefreshTokens(), [t, r] = await L(
4593
+ N.getLoggedInAccounts({ refreshTokens: e }, this.$storage)
4589
4594
  );
4590
- if (a)
4591
- return this.errorHandler(a);
4592
- n.data.success && this.setLoggedInAccounts(n.data.accounts);
4595
+ if (t)
4596
+ return this.errorHandler(t);
4597
+ r.data.success && this.setLoggedInAccounts(r.data.accounts);
4593
4598
  },
4594
4599
  async loginUsingQR(e) {
4595
- const [a, n] = await g(
4596
- M.loginUsingQR(e, this.$storage)
4600
+ const [t, r] = await L(
4601
+ re.loginUsingQR(e, this.$storage)
4597
4602
  );
4598
- return a ? this.errorHandler(a) : n.data.success;
4603
+ return t ? this.errorHandler(t) : r.data.success;
4599
4604
  },
4600
4605
  setLoggedInAccounts(e) {
4601
- this.loggedInAccounts = {}, e.forEach((a) => {
4602
- this.loggedInAccounts[a.username] = a;
4603
- }), u.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
4606
+ this.loggedInAccounts = {}, e.forEach((t) => {
4607
+ this.loggedInAccounts[t.username] = t;
4608
+ }), v.$emit("ssoEvent", { name: "setLoggedInAccounts", data: e });
4604
4609
  },
4605
4610
  setLoggedInUserId(e) {
4606
4611
  this.loggedInUserId = e;
@@ -4612,11 +4617,11 @@ const z = {
4612
4617
  return this.$storage.refreshTokens.split(",");
4613
4618
  },
4614
4619
  setRefreshToken(e) {
4615
- let a = this.getRefreshTokens();
4616
- e && !a.includes(e) ? a.unshift(e) : a = a.filter((n) => n !== this.refreshToken), a.length >= 1 ? this.refreshToken = a[0] : this.refreshToken = e, this.$storage.refreshTokens = a.join(","), u.$emit("ssoEvent", { name: "setRefreshToken", data: e });
4620
+ let t = this.getRefreshTokens();
4621
+ e && !t.includes(e) ? t.unshift(e) : t = t.filter((r) => r !== this.refreshToken), t.length >= 1 ? this.refreshToken = t[0] : this.refreshToken = e, this.$storage.refreshTokens = t.join(","), v.$emit("ssoEvent", { name: "setRefreshToken", data: e });
4617
4622
  },
4618
4623
  setToken(e) {
4619
- this.$storage.token = e, this.token = e, u.$emit("ssoEvent", { name: "setToken", data: e });
4624
+ this.$storage.token = e, this.token = e, v.$emit("ssoEvent", { name: "setToken", data: e });
4620
4625
  },
4621
4626
  setUserID(e) {
4622
4627
  this.$storage.UserId = e;
@@ -4633,14 +4638,14 @@ const z = {
4633
4638
  deep: !0
4634
4639
  }
4635
4640
  }
4636
- }, T = (e, a) => {
4637
- const n = e.__vccOpts || e;
4638
- for (const [o, i] of a)
4639
- n[o] = i;
4640
- return n;
4641
- }, Be = {
4641
+ }, $ = (e, t) => {
4642
+ const r = e.__vccOpts || e;
4643
+ for (const [u, l] of t)
4644
+ r[u] = l;
4645
+ return r;
4646
+ }, st = {
4642
4647
  name: "AuthWelcome",
4643
- mixins: [z],
4648
+ mixins: [D],
4644
4649
  data() {
4645
4650
  return {
4646
4651
  loading: !0
@@ -4649,32 +4654,32 @@ const z = {
4649
4654
  async mounted() {
4650
4655
  let e = document.getElementById("tapniVideo");
4651
4656
  e.addEventListener("canplay", function() {
4652
- document.body.contains(e) && e.play().catch((a) => {
4653
- console.log("Play was interrupted:", a);
4657
+ document.body.contains(e) && e.play().catch((t) => {
4658
+ console.log("Play was interrupted:", t);
4654
4659
  });
4655
4660
  }), setTimeout(() => {
4656
- this.$storage.token ? this.$router.push(this.home) : u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4657
- }, 1500), u.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4661
+ this.$storage.token ? this.$router.push(this.home) : v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4662
+ }, 1500), v.$emit("ssoEvent", { name: "setInitialize", data: !0 });
4658
4663
  },
4659
4664
  methods: {}
4660
- }, ue = (e) => (O("data-v-c5cb659c"), e = e(), B(), e), De = {
4665
+ }, ln = (e) => (pe("data-v-c5cb659c"), e = e(), ue(), e), ct = {
4661
4666
  class: "page-login content-boxed content-boxed-padding center-text",
4662
4667
  style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
4663
- }, Ue = ["autoplay"], Ke = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("source", {
4668
+ }, lt = ["autoplay"], dt = /* @__PURE__ */ ln(() => /* @__PURE__ */ c("source", {
4664
4669
  src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
4665
4670
  type: "video/mp4"
4666
- }, null, -1)), $e = [
4667
- Ke
4668
- ], He = { class: "bold full-top no-bottom center-text" }, Fe = { class: "full-bottom half-top center-text color-black font-16" }, Qe = { class: "page-login-links center-text" }, Ge = /* @__PURE__ */ ue(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), We = {
4671
+ }, null, -1)), pt = [
4672
+ dt
4673
+ ], ut = { class: "bold full-top no-bottom center-text" }, _t = { class: "full-bottom half-top center-text color-black font-16" }, mt = { class: "page-login-links center-text" }, gt = /* @__PURE__ */ ln(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), ht = {
4669
4674
  key: 2,
4670
4675
  style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
4671
- }, Xe = /* @__PURE__ */ je('<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), Ye = [
4672
- Xe
4676
+ }, ft = /* @__PURE__ */ Wn('<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), kt = [
4677
+ ft
4673
4678
  ];
4674
- function Ze(e, a, n, o, i, r) {
4675
- const p = V("router-link");
4676
- return c(), l("div", De, [
4677
- t("video", {
4679
+ function bt(e, t, r, u, l, d) {
4680
+ const h = de("router-link");
4681
+ return f(), k("div", ct, [
4682
+ c("video", {
4678
4683
  id: "tapniVideo",
4679
4684
  muted: "",
4680
4685
  loop: "",
@@ -4682,35 +4687,35 @@ function Ze(e, a, n, o, i, r) {
4682
4687
  width: "350",
4683
4688
  style: { margin: "0 auto", "max-width": "100%", "margin-top": "63px", overflow: "hidden" },
4684
4689
  autoplay: e.isNative
4685
- }, $e, 8, Ue),
4686
- t("h1", He, d(e.ssoLang[this.appLanguage].welcome), 1),
4687
- t("p", Fe, d(e.ssoLang[this.appLanguage].welcome_p1), 1),
4688
- h("", !0),
4689
- h("", !0),
4690
- v(p, {
4690
+ }, pt, 8, lt),
4691
+ c("h1", ut, y(e.ssoLang[this.appLanguage].welcome), 1),
4692
+ c("p", _t, y(e.ssoLang[this.appLanguage].welcome_p1), 1),
4693
+ T("", !0),
4694
+ T("", !0),
4695
+ j(h, {
4691
4696
  to: "register",
4692
4697
  exact: "",
4693
4698
  class: "button-center button button-90 google-button bg-tapni-grey pointer"
4694
4699
  }, {
4695
- default: j(() => [
4696
- t("span", null, d(e.ssoLang[this.appLanguage].create_account), 1)
4700
+ default: G(() => [
4701
+ c("span", null, y(e.ssoLang[this.appLanguage].create_account), 1)
4697
4702
  ]),
4698
4703
  _: 1
4699
4704
  }),
4700
- t("div", Qe, [
4701
- v(p, { to: "/login" }, {
4702
- default: j(() => [
4703
- f(d(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4704
- t("b", null, d(e.ssoLang[this.appLanguage].sign_in), 1)
4705
+ c("div", mt, [
4706
+ j(h, { to: "/login" }, {
4707
+ default: G(() => [
4708
+ I(y(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
4709
+ c("b", null, y(e.ssoLang[this.appLanguage].sign_in), 1)
4705
4710
  ]),
4706
4711
  _: 1
4707
4712
  }),
4708
- Ge
4713
+ gt
4709
4714
  ]),
4710
- this.isNative ? h("", !0) : (c(), l("div", We, Ye))
4715
+ this.isNative ? T("", !0) : (f(), k("div", ht, kt))
4711
4716
  ]);
4712
4717
  }
4713
- const _e = /* @__PURE__ */ T(Be, [["render", Ze], ["__scopeId", "data-v-c5cb659c"]]), me = {
4718
+ const dn = /* @__PURE__ */ $(st, [["render", bt], ["__scopeId", "data-v-c5cb659c"]]), pn = {
4714
4719
  data() {
4715
4720
  return {
4716
4721
  googleLoad: !1
@@ -4718,35 +4723,35 @@ const _e = /* @__PURE__ */ T(Be, [["render", Ze], ["__scopeId", "data-v-c5cb659c
4718
4723
  },
4719
4724
  computed: {
4720
4725
  displayGoogleLogin() {
4721
- var e, a;
4722
- return (((a = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : a.google_login) && !this.isModal) ?? !0;
4726
+ var e, t;
4727
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.google_login) && !this.isModal) ?? !0;
4723
4728
  }
4724
4729
  },
4725
4730
  mounted() {
4726
- ee.initialize();
4731
+ Ye.initialize();
4727
4732
  },
4728
4733
  methods: {
4729
4734
  async googleLogin() {
4730
- var n;
4735
+ var r;
4731
4736
  this.googleLoad = !0;
4732
- let [e, a] = await g(ee.signIn());
4737
+ let [e, t] = await L(Ye.signIn());
4733
4738
  if (e)
4734
4739
  return this.googleLoad = !1;
4735
- if (this.referral && (a.ref = this.referral), a.authentication && (a.authentication.accessToken || a.authentication.idToken)) {
4736
- this.referral && (a.ref = this.referral), this.display === "popup" && (a.response_type = "code");
4737
- const [o, i] = await g(y.googleSDK(a, this.$storage));
4738
- if (o)
4739
- return this.googleLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4740
- if (i.data.success) {
4740
+ if (this.referral && (t.ref = this.referral), t.authentication && (t.authentication.accessToken || t.authentication.idToken)) {
4741
+ this.referral && (t.ref = this.referral), this.display === "popup" && (t.response_type = "code");
4742
+ const [u, l] = await L(N.googleSDK(t, this.$storage));
4743
+ if (u)
4744
+ return this.googleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(u);
4745
+ if (l.data.success) {
4741
4746
  if (this.display === "popup")
4742
- return (n = window.parent) == null ? void 0 : n.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
4743
- await this.loginSetup(i), this.getLoggedInAccounts(), this.loginSuccess({ ...i, isModal: !1 }), setTimeout(() => {
4747
+ return (r = window.parent) == null ? void 0 : r.postMessage({ code: l.data.auth_code, state: this.$route.query.state }, "*");
4748
+ await this.loginSetup(l), this.getLoggedInAccounts(), this.loginSuccess({ ...l, isModal: !1 }), setTimeout(() => {
4744
4749
  this.googleLoad = !1;
4745
4750
  }, 1e3);
4746
4751
  } else
4747
4752
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4748
4753
  } else
4749
- this.googleLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4754
+ this.googleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4750
4755
  }
4751
4756
  }
4752
4757
  };
@@ -4761,11 +4766,11 @@ window.fbAsyncInit = function() {
4761
4766
  // use graph api current version
4762
4767
  });
4763
4768
  };
4764
- (function(e, a, n) {
4765
- var o, i = e.getElementsByTagName(a)[0];
4766
- e.getElementById(n) || (o = e.createElement(a), o.id = n, o.src = "https://connect.facebook.net/en_US/sdk.js", i.parentNode.insertBefore(o, i));
4769
+ (function(e, t, r) {
4770
+ var u, l = e.getElementsByTagName(t)[0];
4771
+ e.getElementById(r) || (u = e.createElement(t), u.id = r, u.src = "https://connect.facebook.net/en_US/sdk.js", l.parentNode.insertBefore(u, l));
4767
4772
  })(document, "script", "facebook-jssdk");
4768
- const ge = {
4773
+ const un = {
4769
4774
  data() {
4770
4775
  return {
4771
4776
  facebookLoad: !1
@@ -4781,28 +4786,28 @@ const ge = {
4781
4786
  },
4782
4787
  methods: {
4783
4788
  async facebookLogin() {
4784
- var o;
4789
+ var u;
4785
4790
  this.facebookLoad = !0;
4786
- const e = ["email"], [a, n] = await g(Ie.login({ permissions: e }));
4787
- if (a)
4791
+ const e = ["email"], [t, r] = await L(Zn.login({ permissions: e }));
4792
+ if (t)
4788
4793
  return this.facebookLoad = !1;
4789
- if (this.referral && (n.ref = this.referral), this.display === "popup" && (n.response_type = "code"), n && n.accessToken) {
4790
- const [i, r] = await g(y.facebookSDK(n, this.$storage));
4791
- if (i)
4792
- return this.facebookLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(i);
4793
- if (r.data.success) {
4794
+ if (this.referral && (r.ref = this.referral), this.display === "popup" && (r.response_type = "code"), r && r.accessToken) {
4795
+ const [l, d] = await L(N.facebookSDK(r, this.$storage));
4796
+ if (l)
4797
+ return this.facebookLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(l);
4798
+ if (d.data.success) {
4794
4799
  if (this.display === "popup")
4795
- return (o = window.parent) == null ? void 0 : o.postMessage({ code: r.data.auth_code, state: this.$route.query.state }, "*");
4796
- await this.loginSetup(r), this.getLoggedInAccounts(), this.$router.push("/" + r.data.data.username + "#edit"), setTimeout(() => {
4797
- this.facebookLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4800
+ return (u = window.parent) == null ? void 0 : u.postMessage({ code: d.data.auth_code, state: this.$route.query.state }, "*");
4801
+ await this.loginSetup(d), this.getLoggedInAccounts(), this.$router.push("/" + d.data.data.username + "#edit"), setTimeout(() => {
4802
+ this.facebookLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4798
4803
  }, 1e3);
4799
4804
  } else
4800
4805
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4801
4806
  } else
4802
- this.facebookLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4807
+ this.facebookLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4803
4808
  }
4804
4809
  }
4805
- }, he = {
4810
+ }, _n = {
4806
4811
  data() {
4807
4812
  return {
4808
4813
  appleLoad: !1
@@ -4810,41 +4815,41 @@ const ge = {
4810
4815
  },
4811
4816
  computed: {
4812
4817
  displayAppleLogin() {
4813
- var e, a;
4814
- 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);
4818
+ var e, t;
4819
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.apple_login) && !this.isModal) ?? (Capacitor.isNativePlatform() && Capacitor.getPlatform() === "ios" || !Capacitor.isNativePlatform() && this.isiOS);
4815
4820
  }
4816
4821
  },
4817
4822
  methods: {
4818
4823
  async appleLogin() {
4819
- var n;
4824
+ var r;
4820
4825
  this.appleLoad = !0;
4821
- const [e, a] = await g(Ee.authorize({
4826
+ const [e, t] = await L(Jn.authorize({
4822
4827
  clientId: "co.tapni.applelogin",
4823
4828
  redirectURI: "https://" + window.location.host + "/login",
4824
4829
  scopes: "email name"
4825
4830
  }));
4826
4831
  if (e)
4827
4832
  return this.appleLoad = !1;
4828
- if (a.response.tokenData = te(a.response.identityToken), a && a.response && a.response.identityToken) {
4829
- this.referral && (a.response.ref = this.referral), this.display === "popup" && (a.response_type = "code");
4830
- const [o, i] = await g(y.appleSDK(a.response, this.$storage));
4831
- if (o)
4832
- return this.appleLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(o);
4833
- if (i.data.success) {
4833
+ if (t.response.tokenData = Je(t.response.identityToken), t && t.response && t.response.identityToken) {
4834
+ this.referral && (t.response.ref = this.referral), this.display === "popup" && (t.response_type = "code");
4835
+ const [u, l] = await L(N.appleSDK(t.response, this.$storage));
4836
+ if (u)
4837
+ return this.appleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(u);
4838
+ if (l.data.success) {
4834
4839
  if (this.display === "popup")
4835
- return (n = window.parent) == null ? void 0 : n.postMessage({ code: i.data.auth_code, state: this.$route.query.state }, "*");
4836
- await this.loginSetup(i), this.getLoggedInAccounts(), this.loginSuccess({ ...i, isModal: !1 }), setTimeout(() => {
4840
+ return (r = window.parent) == null ? void 0 : r.postMessage({ code: l.data.auth_code, state: this.$route.query.state }, "*");
4841
+ await this.loginSetup(l), this.getLoggedInAccounts(), this.loginSuccess({ ...l, isModal: !1 }), setTimeout(() => {
4837
4842
  this.appleLoad = !1;
4838
4843
  }, 1e3);
4839
4844
  } else
4840
4845
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4841
4846
  } else
4842
- this.appleLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4847
+ this.appleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4843
4848
  }
4844
4849
  }
4845
4850
  };
4846
- var Je = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4847
- const F = {
4851
+ var vt = { 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 };
4852
+ const ve = {
4848
4853
  data() {
4849
4854
  return {
4850
4855
  microsoftLoad: !1,
@@ -4853,139 +4858,139 @@ const F = {
4853
4858
  },
4854
4859
  computed: {
4855
4860
  displayMicrosoftSSOLogin() {
4856
- var e, a;
4857
- return (((a = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : a.microsoft_login) && !this.isModal) ?? !1;
4861
+ var e, t;
4862
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.microsoft_login) && !this.isModal) ?? !1;
4858
4863
  }
4859
4864
  },
4860
4865
  methods: {
4861
- async microsoftLogin(e, a = {}) {
4862
- var i, r, p;
4863
- e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(a).length || (a = ((r = (i = this.ssoCompany.sso) == null ? void 0 : i.azure) == null ? void 0 : r.sso) || {});
4864
- const [n, o] = await g(
4865
- xe.login({
4866
- clientId: e === "sso" ? a.clientID : "9cd47053-080a-4df8-8fd8-ca4389163fde",
4867
- tenant: e === "sso" ? a.tenant : "consumers",
4866
+ async microsoftLogin(e, t = {}) {
4867
+ var l, d, h;
4868
+ e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(t).length || (t = ((d = (l = this.ssoCompany.sso) == null ? void 0 : l.azure) == null ? void 0 : d.sso) || {});
4869
+ const [r, u] = await L(
4870
+ et.login({
4871
+ clientId: e === "sso" ? t.clientID : "9cd47053-080a-4df8-8fd8-ca4389163fde",
4872
+ tenant: e === "sso" ? t.tenant : "consumers",
4868
4873
  scopes: ["User.Read"],
4869
4874
  knownAuthorities: [],
4870
4875
  keyHash: "4+5wCp8QcLptlO0aeP5RDTTOWyg=",
4871
4876
  // Android,
4872
- redirectUri: Je.NODE_ENV === "development" ? `${window.location.origin}/login` : "https://" + window.location.host + "/login"
4877
+ redirectUri: vt.NODE_ENV === "development" ? `${window.location.origin}/login` : "https://" + window.location.host + "/login"
4873
4878
  })
4874
4879
  );
4875
- if (n)
4876
- return console.log("Error: " + JSON.stringify(n)), this.microsoftLoad = !1;
4877
- if (this.referral && (o.ref = this.referral), this.display === "popup" && (o.response_type = "code"), o && (o.accessToken || o.idToken)) {
4878
- const [s, _] = await g(
4879
- y.microsoftSDK(o, this.$storage)
4880
+ if (r)
4881
+ return console.log("Error: " + JSON.stringify(r)), this.microsoftLoad = !1;
4882
+ if (this.referral && (u.ref = this.referral), this.display === "popup" && (u.response_type = "code"), u && (u.accessToken || u.idToken)) {
4883
+ const [m, b] = await L(
4884
+ N.microsoftSDK(u, this.$storage)
4880
4885
  );
4881
- if (s)
4882
- return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(s);
4883
- if (_.data.success) {
4886
+ if (m)
4887
+ return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(m);
4888
+ if (b.data.success) {
4884
4889
  if (this.display === "popup")
4885
- return (p = window.parent) == null ? void 0 : p.postMessage(
4886
- { code: _.data.auth_code, state: this.$route.query.state },
4890
+ return (h = window.parent) == null ? void 0 : h.postMessage(
4891
+ { code: b.data.auth_code, state: this.$route.query.state },
4887
4892
  "*"
4888
4893
  );
4889
- await this.loginSetup(_), this.getLoggedInAccounts(), this.loginSuccess({ ..._, isModal: !1 }), setTimeout(() => {
4894
+ await this.loginSetup(b), this.getLoggedInAccounts(), this.loginSuccess({ ...b, isModal: !1 }), setTimeout(() => {
4890
4895
  this.microsoftLoad = !1, this.microsoftSSOLoad = !1;
4891
4896
  }, 1e3);
4892
4897
  } else
4893
4898
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
4894
4899
  } else
4895
- this.microsoftLoad = !1, this.microsoftSSOLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
4900
+ this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
4896
4901
  },
4897
4902
  ssoLogin() {
4898
- u.$emit("toggleSSOModal");
4903
+ v.$emit("toggleSSOModal");
4899
4904
  }
4900
4905
  }
4901
- }, N = {
4906
+ }, le = {
4902
4907
  getFirstBrowserLanguage() {
4903
- let e = window.navigator, a = ["language", "browserLanguage", "systemLanguage", "userLanguage"], n, o;
4908
+ let e = window.navigator, t = ["language", "browserLanguage", "systemLanguage", "userLanguage"], r, u;
4904
4909
  if (Array.isArray(e.languages)) {
4905
- for (n = 0; n < e.languages.length; n++)
4906
- if (o = e.languages[n], o && o.length)
4907
- return o.slice(0, 2);
4910
+ for (r = 0; r < e.languages.length; r++)
4911
+ if (u = e.languages[r], u && u.length)
4912
+ return u.slice(0, 2);
4908
4913
  }
4909
- for (n = 0; n < a.length; n++)
4910
- if (o = e[a[n]], o && o.length)
4911
- return o.slice(0, 2);
4914
+ for (r = 0; r < t.length; r++)
4915
+ if (u = e[t[r]], u && u.length)
4916
+ return u.slice(0, 2);
4912
4917
  return null;
4913
4918
  },
4914
4919
  compareLangKeys() {
4915
- const e = Object.keys(ie.default.state), a = Object.keys(oe.default.state), n = Object.keys(re.default.state), o = Object.keys(pe.default.state), i = Object.keys(ce.default.state), r = Object.keys(se.default.state), p = Object.keys(le.default.state), s = Object.keys(de.default.state);
4916
- console.log("In en but not in de", e.filter((_) => !a.includes(_))), console.log("In de but not in en", a.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in es", e.filter((_) => !n.includes(_))), console.log("In es but not in en", n.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in kr", e.filter((_) => !o.includes(_))), console.log("In kr but not in en", o.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in it", e.filter((_) => !i.includes(_))), console.log("In it but not in en", i.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in fr", e.filter((_) => !r.includes(_))), console.log("In fr but not in en", r.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in sr", e.filter((_) => !p.includes(_))), console.log("In sr but not in en", p.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in tr", e.filter((_) => !s.includes(_))), console.log("In tr but not in en", s.filter((_) => !e.includes(_))), console.log();
4920
+ const e = Object.keys(en.default.state), t = Object.keys(nn.default.state), r = Object.keys(tn.default.state), u = Object.keys(cn.default.state), l = Object.keys(on.default.state), d = Object.keys(an.default.state), h = Object.keys(rn.default.state), m = Object.keys(sn.default.state);
4921
+ console.log("In en but not in de", e.filter((b) => !t.includes(b))), console.log("In de but not in en", t.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in es", e.filter((b) => !r.includes(b))), console.log("In es but not in en", r.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in kr", e.filter((b) => !u.includes(b))), console.log("In kr but not in en", u.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in it", e.filter((b) => !l.includes(b))), console.log("In it but not in en", l.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in fr", e.filter((b) => !d.includes(b))), console.log("In fr but not in en", d.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in sr", e.filter((b) => !h.includes(b))), console.log("In sr but not in en", h.filter((b) => !e.includes(b))), console.log(), console.log("In en but not in tr", e.filter((b) => !m.includes(b))), console.log("In tr but not in en", m.filter((b) => !e.includes(b))), console.log();
4917
4922
  },
4918
4923
  base64ImageToBlob(e) {
4919
- const a = e.split(";base64,"), n = a[0].split(":")[1], o = window.atob(a[1]), i = new Uint8Array(o.length);
4920
- for (let r = 0; r < o.length; ++r)
4921
- i[r] = o.charCodeAt(r);
4922
- return new Blob([i], { type: n });
4924
+ const t = e.split(";base64,"), r = t[0].split(":")[1], u = window.atob(t[1]), l = new Uint8Array(u.length);
4925
+ for (let d = 0; d < u.length; ++d)
4926
+ l[d] = u.charCodeAt(d);
4927
+ return new Blob([l], { type: r });
4923
4928
  },
4924
4929
  blobToBase64(e) {
4925
- const a = new FileReader();
4926
- return a.readAsDataURL(e), new Promise((n) => {
4927
- a.onloadend = () => {
4928
- n(a.result);
4930
+ const t = new FileReader();
4931
+ return t.readAsDataURL(e), new Promise((r) => {
4932
+ t.onloadend = () => {
4933
+ r(t.result);
4929
4934
  };
4930
4935
  });
4931
4936
  },
4932
- base64toFile(e, a) {
4933
- for (var n = e.split(","), o = n[0].match(/:(.*?);/)[1], i = atob(n[1]), r = i.length, p = new Uint8Array(r); r--; )
4934
- p[r] = i.charCodeAt(r);
4935
- return new File([p], a, { type: o });
4937
+ base64toFile(e, t) {
4938
+ for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length, h = new Uint8Array(d); d--; )
4939
+ h[d] = l.charCodeAt(d);
4940
+ return new File([h], t, { type: u });
4936
4941
  },
4937
4942
  fileToBase64(e) {
4938
- new Promise((a, n) => {
4939
- const o = new FileReader();
4940
- o.readAsDataURL(e), o.onload = () => a(o.result), o.onerror = (i) => n(i);
4943
+ new Promise((t, r) => {
4944
+ const u = new FileReader();
4945
+ u.readAsDataURL(e), u.onload = () => t(u.result), u.onerror = (l) => r(l);
4941
4946
  });
4942
4947
  },
4943
- getUTMParams(e, a) {
4944
- let n = {};
4945
- return e.utm_source && (n.utm_source = e.utm_source), e.utm_medium && (n.utm_medium = e.utm_medium), e.utm_campaign && (n.utm_campaign = e.utm_campaign), e.utm_term && (n.utm_term = e.utm_term), e.utm_content && (n.utm_content = e.utm_content), n;
4948
+ getUTMParams(e, t) {
4949
+ let r = {};
4950
+ return e.utm_source && (r.utm_source = e.utm_source), e.utm_medium && (r.utm_medium = e.utm_medium), e.utm_campaign && (r.utm_campaign = e.utm_campaign), e.utm_term && (r.utm_term = e.utm_term), e.utm_content && (r.utm_content = e.utm_content), r;
4946
4951
  },
4947
- cropCardScan(e, a) {
4948
- const n = new window.Image(), o = document.createElement("canvas"), i = o.getContext("2d");
4949
- n.src = "data:image/jpeg;base64," + e, n.onload = () => {
4950
- const r = n.width, p = n.width / 1.65, s = 0, _ = n.height / 2 - p / 2, L = r, q = p;
4951
- o.width = L, o.height = q, i.drawImage(n, s, _, r, p, 0, 0, L, q);
4952
- const Z = o.toDataURL();
4953
- return a(Z), Z;
4952
+ cropCardScan(e, t) {
4953
+ const r = new window.Image(), u = document.createElement("canvas"), l = u.getContext("2d");
4954
+ r.src = "data:image/jpeg;base64," + e, r.onload = () => {
4955
+ const d = r.width, h = r.width / 1.65, m = 0, b = r.height / 2 - h / 2, C = d, p = h;
4956
+ u.width = C, u.height = p, l.drawImage(r, m, b, d, h, 0, 0, C, p);
4957
+ const x = u.toDataURL();
4958
+ return t(x), x;
4954
4959
  };
4955
4960
  },
4956
4961
  generateRandomString(e) {
4957
- let a = new Uint32Array(e);
4958
- return window.crypto.getRandomValues(a), Array.from(a, (n) => ("0" + n.toString(16)).substr(-2)).join("");
4962
+ let t = new Uint32Array(e);
4963
+ return window.crypto.getRandomValues(t), Array.from(t, (r) => ("0" + r.toString(16)).substr(-2)).join("");
4959
4964
  },
4960
4965
  async pkceChallengeFromVerifier(e) {
4961
- const n = new TextEncoder().encode(e), o = await window.crypto.subtle.digest("SHA-256", n);
4962
- return btoa(String.fromCharCode.apply(null, new Uint8Array(o))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4966
+ const r = new TextEncoder().encode(e), u = await window.crypto.subtle.digest("SHA-256", r);
4967
+ return btoa(String.fromCharCode.apply(null, new Uint8Array(u))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4963
4968
  },
4964
- encryptAES(e, a, n) {
4965
- let i = new TextEncoder().encode(n, storage);
4969
+ encryptAES(e, t, r) {
4970
+ let l = new TextEncoder().encode(r, storage);
4966
4971
  return window.crypto.subtle.encrypt(
4967
4972
  {
4968
4973
  name: "AES-CBC",
4969
- iv: a
4974
+ iv: t
4970
4975
  },
4971
4976
  e,
4972
- i
4977
+ l
4973
4978
  );
4974
4979
  },
4975
- async decryptAES(e, a, n) {
4980
+ async decryptAES(e, t, r) {
4976
4981
  try {
4977
- const o = (_) => Uint8Array.from(atob(_), (L) => L.charCodeAt(0));
4978
- n = n.replace(/ /g, "+");
4979
- const i = new TextEncoder(), r = new TextDecoder();
4980
- e = i.encode(e), a = i.encode(a), n = o(n, storage);
4981
- const p = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
4982
- let s = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: a }, p, n);
4983
- return s = r.decode(s), s = s.replace(/ /g, "+"), s = atob(s), s;
4984
- } catch (o) {
4985
- console.log(o);
4982
+ const u = (b) => Uint8Array.from(atob(b), (C) => C.charCodeAt(0));
4983
+ r = r.replace(/ /g, "+");
4984
+ const l = new TextEncoder(), d = new TextDecoder();
4985
+ e = l.encode(e), t = l.encode(t), r = u(r, storage);
4986
+ const h = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
4987
+ let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t }, h, r);
4988
+ return m = d.decode(m), m = m.replace(/ /g, "+"), m = atob(m), m;
4989
+ } catch (u) {
4990
+ console.log(u);
4986
4991
  }
4987
4992
  }
4988
- }, Q = {
4993
+ }, ye = {
4989
4994
  data() {
4990
4995
  return {
4991
4996
  oktaAuth: null
@@ -5001,47 +5006,1099 @@ const F = {
5001
5006
  },
5002
5007
  methods: {
5003
5008
  async exchangeCode(e) {
5004
- var i, r;
5005
- let [a, n] = await g(Y.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") })));
5006
- if (a)
5007
- return this.errorHandler(a);
5009
+ var l, d;
5010
+ let [t, r] = await L(Be.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") })));
5011
+ if (t)
5012
+ return this.errorHandler(t);
5008
5013
  localStorage.removeItem("pkce_code_verifier");
5009
- let o = { accessToken: (i = n.data) == null ? void 0 : i.access_token, domain: e.domain };
5010
- if (this.display === "popup" && (o.response_type = "code"), [a, n] = await g(y.oktaSDK(o, this.$storage)), a)
5011
- return this.oktaLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(a);
5012
- if (n.data.success) {
5014
+ let u = { accessToken: (l = r.data) == null ? void 0 : l.access_token, domain: e.domain };
5015
+ if (this.display === "popup" && (u.response_type = "code"), [t, r] = await L(N.oktaSDK(u, this.$storage)), t)
5016
+ return this.oktaLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(t);
5017
+ if (r.data.success) {
5013
5018
  if (this.display === "popup")
5014
- return (r = window.parent) == null ? void 0 : r.postMessage({ code: n.data.auth_code, state: this.$route.query.state }, "*");
5015
- await this.loginSetup(n), this.getLoggedInAccounts(), this.$router.push("/" + n.data.data.username + "#edit"), setTimeout(() => {
5016
- this.appleLoad = !1, u.$emit("ssoEvent", { name: "setLoading", data: !1 });
5019
+ return (d = window.parent) == null ? void 0 : d.postMessage({ code: r.data.auth_code, state: this.$route.query.state }, "*");
5020
+ await this.loginSetup(r), this.getLoggedInAccounts(), this.$router.push("/" + r.data.data.username + "#edit"), setTimeout(() => {
5021
+ this.appleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
5017
5022
  }, 1e3);
5018
5023
  } else
5019
5024
  this.errorSnack(this.ssoLang[this.appLanguage].unexpected_err);
5020
5025
  },
5021
5026
  async oktaLogin(e) {
5022
- const a = D.getPlatform() || "web";
5023
- let n = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + a + "&rand=" + N.generateRandomString(28)), o = N.generateRandomString(28);
5024
- localStorage.setItem("pkce_code_verifier", o);
5025
- let i = await N.pkceChallengeFromVerifier(o), r = e.domain + "/v1/authorize", p;
5026
- this.isNative ? p = "tapni://t.link/callback/okta" : p = location.origin + "/callback/okta";
5027
- let s = r + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(n) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(p) + "&code_challenge=" + encodeURIComponent(i) + "&code_challenge_method=S256", _ = this, L;
5028
- window.addEventListener("message", async (q) => {
5029
- if (!this.allowedOrigins.includes(q.origin))
5027
+ const t = me.getPlatform() || "web";
5028
+ let r = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + t + "&rand=" + le.generateRandomString(28)), u = le.generateRandomString(28);
5029
+ localStorage.setItem("pkce_code_verifier", u);
5030
+ let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize", h;
5031
+ this.isNative ? h = "tapni://t.link/callback/okta" : h = location.origin + "/callback/okta";
5032
+ let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(h) + "&code_challenge=" + encodeURIComponent(l) + "&code_challenge_method=S256", b = this, C;
5033
+ window.addEventListener("message", async (p) => {
5034
+ if (!this.allowedOrigins.includes(p.origin))
5030
5035
  return console.log("Origin is not allowed!");
5031
- q.data.type === "okta" && (L = q.data.code, await _.exchangeCode({ domain: e.domain, code: L, clientID: e.clientID }));
5032
- }, { once: !0 }), this.isNative ? await H.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
5036
+ p.data.type === "okta" && (C = p.data.code, await b.exchangeCode({ domain: e.domain, code: C, clientID: e.clientID }));
5037
+ }, { once: !0 }), this.isNative ? await be.open({ url: m, presentationStyle: "popover" }) : window.open(m, "popup", "width=600,height=600");
5033
5038
  },
5034
5039
  async handleOktaRedirect() {
5035
- let e = this.$route.query.code, a, n, o, i, r = { type: "okta" };
5036
- if (e && (r.code = e), this.$route.query.state) {
5037
- a = this.$route.query.state, a = atob(a);
5038
- const p = new URLSearchParams(a);
5039
- n = p.get("client_id"), o = p.get("domain"), i = p.get("platform");
5040
+ let e = this.$route.query.code, t, r, u, l, d = { type: "okta" };
5041
+ if (e && (d.code = e), this.$route.query.state) {
5042
+ t = this.$route.query.state, t = atob(t);
5043
+ const h = new URLSearchParams(t);
5044
+ r = h.get("client_id"), u = h.get("domain"), l = h.get("platform");
5040
5045
  }
5041
- window.opener ? (window.opener.postMessage(r, location.origin), window.close()) : (this.isNative && this.isIOS && await H.close(), u.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && n && o && await this.exchangeCode({ code: e, clientID: n, domain: o, platform: i }), localStorage.removeItem("pkce_code_verifier"), u.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5046
+ window.opener ? (window.opener.postMessage(d, location.origin), window.close()) : (this.isNative && this.isIOS && await be.close(), v.$emit("ssoEvent", { name: "setLoading", data: !0 }), e && r && u && await this.exchangeCode({ code: e, clientID: r, domain: u, platform: l }), localStorage.removeItem("pkce_code_verifier"), v.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5042
5047
  }
5043
5048
  }
5044
- }, G = {
5049
+ };
5050
+ var mn = {}, we = {};
5051
+ we.byteLength = zt;
5052
+ we.toByteArray = Ct;
5053
+ we.fromByteArray = Et;
5054
+ var Q = [], V = [], yt = typeof Uint8Array < "u" ? Uint8Array : Array, je = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5055
+ for (var se = 0, wt = je.length; se < wt; ++se)
5056
+ Q[se] = je[se], V[je.charCodeAt(se)] = se;
5057
+ V[45] = 62;
5058
+ V[95] = 63;
5059
+ function gn(e) {
5060
+ var t = e.length;
5061
+ if (t % 4 > 0)
5062
+ throw new Error("Invalid string. Length must be a multiple of 4");
5063
+ var r = e.indexOf("=");
5064
+ r === -1 && (r = t);
5065
+ var u = r === t ? 0 : 4 - r % 4;
5066
+ return [r, u];
5067
+ }
5068
+ function zt(e) {
5069
+ var t = gn(e), r = t[0], u = t[1];
5070
+ return (r + u) * 3 / 4 - u;
5071
+ }
5072
+ function Lt(e, t, r) {
5073
+ return (t + r) * 3 / 4 - r;
5074
+ }
5075
+ function Ct(e) {
5076
+ var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)), h = 0, m = l > 0 ? u - 4 : u, b;
5077
+ for (b = 0; b < m; b += 4)
5078
+ t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[h++] = t >> 16 & 255, d[h++] = t >> 8 & 255, d[h++] = t & 255;
5079
+ return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[h++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[h++] = t >> 8 & 255, d[h++] = t & 255), d;
5080
+ }
5081
+ function St(e) {
5082
+ return Q[e >> 18 & 63] + Q[e >> 12 & 63] + Q[e >> 6 & 63] + Q[e & 63];
5083
+ }
5084
+ function Tt(e, t, r) {
5085
+ for (var u, l = [], d = t; d < r; d += 3)
5086
+ u = (e[d] << 16 & 16711680) + (e[d + 1] << 8 & 65280) + (e[d + 2] & 255), l.push(St(u));
5087
+ return l.join("");
5088
+ }
5089
+ function Et(e) {
5090
+ for (var t, r = e.length, u = r % 3, l = [], d = 16383, h = 0, m = r - u; h < m; h += d)
5091
+ l.push(Tt(e, h, h + d > m ? m : h + d));
5092
+ return u === 1 ? (t = e[r - 1], l.push(
5093
+ Q[t >> 2] + Q[t << 4 & 63] + "=="
5094
+ )) : u === 2 && (t = (e[r - 2] << 8) + e[r - 1], l.push(
5095
+ Q[t >> 10] + Q[t >> 4 & 63] + Q[t << 2 & 63] + "="
5096
+ )), l.join("");
5097
+ }
5098
+ var Me = {};
5099
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
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)
5103
+ ;
5104
+ for (h = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; h = h * 256 + e[t + x], x += W, p -= 8)
5105
+ ;
5106
+ if (d === 0)
5107
+ d = 1 - C;
5108
+ else {
5109
+ if (d === b)
5110
+ return h ? NaN : (O ? -1 : 1) * (1 / 0);
5111
+ h = h + Math.pow(2, u), d = d - C;
5112
+ }
5113
+ return (O ? -1 : 1) * h * Math.pow(2, d - u);
5114
+ };
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)
5118
+ ;
5119
+ for (h = h << l | m, C += l; C > 0; e[r + O] = h & 255, O += ee, h /= 256, C -= 8)
5120
+ ;
5121
+ e[r + O - ee] |= Ce * 128;
5122
+ };
5123
+ /*!
5124
+ * The buffer module from node.js, for the browser.
5125
+ *
5126
+ * @author Feross Aboukhadijeh <https://feross.org>
5127
+ * @license MIT
5128
+ */
5129
+ (function(e) {
5130
+ const t = we, r = Me, u = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
5131
+ e.Buffer = p, e.SlowBuffer = Tn, e.INSPECT_MAX_BYTES = 50;
5132
+ const l = 2147483647;
5133
+ e.kMaxLength = l;
5134
+ const { Uint8Array: d, ArrayBuffer: h, SharedArrayBuffer: m } = globalThis;
5135
+ p.TYPED_ARRAY_SUPPORT = b(), !p.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
5136
+ "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
5137
+ );
5138
+ function b() {
5139
+ try {
5140
+ const i = new d(1), n = { foo: function() {
5141
+ return 42;
5142
+ } };
5143
+ return Object.setPrototypeOf(n, d.prototype), Object.setPrototypeOf(i, n), i.foo() === 42;
5144
+ } catch {
5145
+ return !1;
5146
+ }
5147
+ }
5148
+ Object.defineProperty(p.prototype, "parent", {
5149
+ enumerable: !0,
5150
+ get: function() {
5151
+ if (p.isBuffer(this))
5152
+ return this.buffer;
5153
+ }
5154
+ }), Object.defineProperty(p.prototype, "offset", {
5155
+ enumerable: !0,
5156
+ get: function() {
5157
+ if (p.isBuffer(this))
5158
+ return this.byteOffset;
5159
+ }
5160
+ });
5161
+ function C(i) {
5162
+ if (i > l)
5163
+ throw new RangeError('The value "' + i + '" is invalid for option "size"');
5164
+ const n = new d(i);
5165
+ return Object.setPrototypeOf(n, p.prototype), n;
5166
+ }
5167
+ function p(i, n, a) {
5168
+ if (typeof i == "number") {
5169
+ if (typeof n == "string")
5170
+ throw new TypeError(
5171
+ 'The "string" argument must be of type string. Received type number'
5172
+ );
5173
+ return ee(i);
5174
+ }
5175
+ return x(i, n, a);
5176
+ }
5177
+ p.poolSize = 8192;
5178
+ function x(i, n, a) {
5179
+ if (typeof i == "string")
5180
+ return Ce(i, n);
5181
+ if (h.isView(i))
5182
+ return Cn(i);
5183
+ if (i == null)
5184
+ throw new TypeError(
5185
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
5186
+ );
5187
+ if (H(i, h) || i && H(i.buffer, h) || typeof m < "u" && (H(i, m) || i && H(i.buffer, m)))
5188
+ return Te(i, n, a);
5189
+ if (typeof i == "number")
5190
+ throw new TypeError(
5191
+ 'The "value" argument must not be of type number. Received type number'
5192
+ );
5193
+ const o = i.valueOf && i.valueOf();
5194
+ if (o != null && o !== i)
5195
+ return p.from(o, n, a);
5196
+ const s = Sn(i);
5197
+ if (s)
5198
+ return s;
5199
+ if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof i[Symbol.toPrimitive] == "function")
5200
+ return p.from(i[Symbol.toPrimitive]("string"), n, a);
5201
+ throw new TypeError(
5202
+ "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
5203
+ );
5204
+ }
5205
+ p.from = function(i, n, a) {
5206
+ return x(i, n, a);
5207
+ }, Object.setPrototypeOf(p.prototype, d.prototype), Object.setPrototypeOf(p, d);
5208
+ function W(i) {
5209
+ if (typeof i != "number")
5210
+ throw new TypeError('"size" argument must be of type number');
5211
+ if (i < 0)
5212
+ throw new RangeError('The value "' + i + '" is invalid for option "size"');
5213
+ }
5214
+ function O(i, n, a) {
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
+ }
5217
+ p.alloc = function(i, n, a) {
5218
+ return O(i, n, a);
5219
+ };
5220
+ function ee(i) {
5221
+ return W(i), C(i < 0 ? 0 : Ee(i) | 0);
5222
+ }
5223
+ p.allocUnsafe = function(i) {
5224
+ return ee(i);
5225
+ }, p.allocUnsafeSlow = function(i) {
5226
+ return ee(i);
5227
+ };
5228
+ function Ce(i, n) {
5229
+ if ((typeof n != "string" || n === "") && (n = "utf8"), !p.isEncoding(n))
5230
+ throw new TypeError("Unknown encoding: " + n);
5231
+ const a = Re(i, n) | 0;
5232
+ let o = C(a);
5233
+ const s = o.write(i, n);
5234
+ return s !== a && (o = o.slice(0, s)), o;
5235
+ }
5236
+ function Se(i) {
5237
+ const n = i.length < 0 ? 0 : Ee(i.length) | 0, a = C(n);
5238
+ for (let o = 0; o < n; o += 1)
5239
+ a[o] = i[o] & 255;
5240
+ return a;
5241
+ }
5242
+ function Cn(i) {
5243
+ if (H(i, d)) {
5244
+ const n = new d(i);
5245
+ return Te(n.buffer, n.byteOffset, n.byteLength);
5246
+ }
5247
+ return Se(i);
5248
+ }
5249
+ function Te(i, n, a) {
5250
+ if (n < 0 || i.byteLength < n)
5251
+ throw new RangeError('"offset" is outside of buffer bounds');
5252
+ if (i.byteLength < n + (a || 0))
5253
+ throw new RangeError('"length" is outside of buffer bounds');
5254
+ let o;
5255
+ return n === void 0 && a === void 0 ? o = new d(i) : a === void 0 ? o = new d(i, n) : o = new d(i, n, a), Object.setPrototypeOf(o, p.prototype), o;
5256
+ }
5257
+ function Sn(i) {
5258
+ if (p.isBuffer(i)) {
5259
+ const n = Ee(i.length) | 0, a = C(n);
5260
+ return a.length === 0 || i.copy(a, 0, 0, n), a;
5261
+ }
5262
+ if (i.length !== void 0)
5263
+ return typeof i.length != "number" || Pe(i.length) ? C(0) : Se(i);
5264
+ if (i.type === "Buffer" && Array.isArray(i.data))
5265
+ return Se(i.data);
5266
+ }
5267
+ function Ee(i) {
5268
+ if (i >= l)
5269
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + l.toString(16) + " bytes");
5270
+ return i | 0;
5271
+ }
5272
+ function Tn(i) {
5273
+ return +i != i && (i = 0), p.alloc(+i);
5274
+ }
5275
+ p.isBuffer = function(n) {
5276
+ return n != null && n._isBuffer === !0 && n !== p.prototype;
5277
+ }, p.compare = function(n, a) {
5278
+ if (H(n, d) && (n = p.from(n, n.offset, n.byteLength)), H(a, d) && (a = p.from(a, a.offset, a.byteLength)), !p.isBuffer(n) || !p.isBuffer(a))
5279
+ throw new TypeError(
5280
+ 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
5281
+ );
5282
+ if (n === a)
5283
+ return 0;
5284
+ let o = n.length, s = a.length;
5285
+ for (let _ = 0, g = Math.min(o, s); _ < g; ++_)
5286
+ if (n[_] !== a[_]) {
5287
+ o = n[_], s = a[_];
5288
+ break;
5289
+ }
5290
+ return o < s ? -1 : s < o ? 1 : 0;
5291
+ }, p.isEncoding = function(n) {
5292
+ switch (String(n).toLowerCase()) {
5293
+ case "hex":
5294
+ case "utf8":
5295
+ case "utf-8":
5296
+ case "ascii":
5297
+ case "latin1":
5298
+ case "binary":
5299
+ case "base64":
5300
+ case "ucs2":
5301
+ case "ucs-2":
5302
+ case "utf16le":
5303
+ case "utf-16le":
5304
+ return !0;
5305
+ default:
5306
+ return !1;
5307
+ }
5308
+ }, p.concat = function(n, a) {
5309
+ if (!Array.isArray(n))
5310
+ throw new TypeError('"list" argument must be an Array of Buffers');
5311
+ if (n.length === 0)
5312
+ return p.alloc(0);
5313
+ let o;
5314
+ if (a === void 0)
5315
+ for (a = 0, o = 0; o < n.length; ++o)
5316
+ a += n[o].length;
5317
+ const s = p.allocUnsafe(a);
5318
+ let _ = 0;
5319
+ for (o = 0; o < n.length; ++o) {
5320
+ let g = n[o];
5321
+ if (H(g, d))
5322
+ _ + g.length > s.length ? (p.isBuffer(g) || (g = p.from(g)), g.copy(s, _)) : d.prototype.set.call(
5323
+ s,
5324
+ g,
5325
+ _
5326
+ );
5327
+ else if (p.isBuffer(g))
5328
+ g.copy(s, _);
5329
+ else
5330
+ throw new TypeError('"list" argument must be an Array of Buffers');
5331
+ _ += g.length;
5332
+ }
5333
+ return s;
5334
+ };
5335
+ function Re(i, n) {
5336
+ if (p.isBuffer(i))
5337
+ return i.length;
5338
+ if (h.isView(i) || H(i, h))
5339
+ return i.byteLength;
5340
+ if (typeof i != "string")
5341
+ throw new TypeError(
5342
+ 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof i
5343
+ );
5344
+ const a = i.length, o = arguments.length > 2 && arguments[2] === !0;
5345
+ if (!o && a === 0)
5346
+ return 0;
5347
+ let s = !1;
5348
+ for (; ; )
5349
+ switch (n) {
5350
+ case "ascii":
5351
+ case "latin1":
5352
+ case "binary":
5353
+ return a;
5354
+ case "utf8":
5355
+ case "utf-8":
5356
+ return Ae(i).length;
5357
+ case "ucs2":
5358
+ case "ucs-2":
5359
+ case "utf16le":
5360
+ case "utf-16le":
5361
+ return a * 2;
5362
+ case "hex":
5363
+ return a >>> 1;
5364
+ case "base64":
5365
+ return Ge(i).length;
5366
+ default:
5367
+ if (s)
5368
+ return o ? -1 : Ae(i).length;
5369
+ n = ("" + n).toLowerCase(), s = !0;
5370
+ }
5371
+ }
5372
+ p.byteLength = Re;
5373
+ function En(i, n, a) {
5374
+ let o = !1;
5375
+ if ((n === void 0 || n < 0) && (n = 0), n > this.length || ((a === void 0 || a > this.length) && (a = this.length), a <= 0) || (a >>>= 0, n >>>= 0, a <= n))
5376
+ return "";
5377
+ for (i || (i = "utf8"); ; )
5378
+ switch (i) {
5379
+ case "hex":
5380
+ return Nn(this, n, a);
5381
+ case "utf8":
5382
+ case "utf-8":
5383
+ return Ue(this, n, a);
5384
+ case "ascii":
5385
+ return Rn(this, n, a);
5386
+ case "latin1":
5387
+ case "binary":
5388
+ return qn(this, n, a);
5389
+ case "base64":
5390
+ return Bn(this, n, a);
5391
+ case "ucs2":
5392
+ case "ucs-2":
5393
+ case "utf16le":
5394
+ case "utf-16le":
5395
+ return Un(this, n, a);
5396
+ default:
5397
+ if (o)
5398
+ throw new TypeError("Unknown encoding: " + i);
5399
+ i = (i + "").toLowerCase(), o = !0;
5400
+ }
5401
+ }
5402
+ p.prototype._isBuffer = !0;
5403
+ function ne(i, n, a) {
5404
+ const o = i[n];
5405
+ i[n] = i[a], i[a] = o;
5406
+ }
5407
+ p.prototype.swap16 = function() {
5408
+ const n = this.length;
5409
+ if (n % 2 !== 0)
5410
+ throw new RangeError("Buffer size must be a multiple of 16-bits");
5411
+ for (let a = 0; a < n; a += 2)
5412
+ ne(this, a, a + 1);
5413
+ return this;
5414
+ }, p.prototype.swap32 = function() {
5415
+ const n = this.length;
5416
+ if (n % 4 !== 0)
5417
+ throw new RangeError("Buffer size must be a multiple of 32-bits");
5418
+ for (let a = 0; a < n; a += 4)
5419
+ ne(this, a, a + 3), ne(this, a + 1, a + 2);
5420
+ return this;
5421
+ }, p.prototype.swap64 = function() {
5422
+ const n = this.length;
5423
+ if (n % 8 !== 0)
5424
+ throw new RangeError("Buffer size must be a multiple of 64-bits");
5425
+ for (let a = 0; a < n; a += 8)
5426
+ ne(this, a, a + 7), ne(this, a + 1, a + 6), ne(this, a + 2, a + 5), ne(this, a + 3, a + 4);
5427
+ return this;
5428
+ }, p.prototype.toString = function() {
5429
+ const n = this.length;
5430
+ return n === 0 ? "" : arguments.length === 0 ? Ue(this, 0, n) : En.apply(this, arguments);
5431
+ }, p.prototype.toLocaleString = p.prototype.toString, p.prototype.equals = function(n) {
5432
+ if (!p.isBuffer(n))
5433
+ throw new TypeError("Argument must be a Buffer");
5434
+ return this === n ? !0 : p.compare(this, n) === 0;
5435
+ }, p.prototype.inspect = function() {
5436
+ let n = "";
5437
+ const a = e.INSPECT_MAX_BYTES;
5438
+ return n = this.toString("hex", 0, a).replace(/(.{2})/g, "$1 ").trim(), this.length > a && (n += " ... "), "<Buffer " + n + ">";
5439
+ }, u && (p.prototype[u] = p.prototype.inspect), p.prototype.compare = function(n, a, o, s, _) {
5440
+ if (H(n, d) && (n = p.from(n, n.offset, n.byteLength)), !p.isBuffer(n))
5441
+ throw new TypeError(
5442
+ 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof n
5443
+ );
5444
+ if (a === void 0 && (a = 0), o === void 0 && (o = n ? n.length : 0), s === void 0 && (s = 0), _ === void 0 && (_ = this.length), a < 0 || o > n.length || s < 0 || _ > this.length)
5445
+ throw new RangeError("out of range index");
5446
+ if (s >= _ && a >= o)
5447
+ return 0;
5448
+ if (s >= _)
5449
+ return -1;
5450
+ if (a >= o)
5451
+ return 1;
5452
+ if (a >>>= 0, o >>>= 0, s >>>= 0, _ >>>= 0, this === n)
5453
+ return 0;
5454
+ let g = _ - s, w = o - a;
5455
+ const A = Math.min(g, w), E = this.slice(s, _), P = n.slice(a, o);
5456
+ for (let S = 0; S < A; ++S)
5457
+ if (E[S] !== P[S]) {
5458
+ g = E[S], w = P[S];
5459
+ break;
5460
+ }
5461
+ return g < w ? -1 : w < g ? 1 : 0;
5462
+ };
5463
+ function qe(i, n, a, o, s) {
5464
+ if (i.length === 0)
5465
+ return -1;
5466
+ if (typeof a == "string" ? (o = a, a = 0) : a > 2147483647 ? a = 2147483647 : a < -2147483648 && (a = -2147483648), a = +a, Pe(a) && (a = s ? 0 : i.length - 1), a < 0 && (a = i.length + a), a >= i.length) {
5467
+ if (s)
5468
+ return -1;
5469
+ a = i.length - 1;
5470
+ } else if (a < 0)
5471
+ if (s)
5472
+ a = 0;
5473
+ else
5474
+ return -1;
5475
+ if (typeof n == "string" && (n = p.from(n, o)), p.isBuffer(n))
5476
+ return n.length === 0 ? -1 : Ne(i, n, a, o, s);
5477
+ if (typeof n == "number")
5478
+ return n = n & 255, typeof d.prototype.indexOf == "function" ? s ? d.prototype.indexOf.call(i, n, a) : d.prototype.lastIndexOf.call(i, n, a) : Ne(i, [n], a, o, s);
5479
+ throw new TypeError("val must be string, number or Buffer");
5480
+ }
5481
+ function Ne(i, n, a, o, s) {
5482
+ let _ = 1, g = i.length, w = n.length;
5483
+ if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
5484
+ if (i.length < 2 || n.length < 2)
5485
+ return -1;
5486
+ _ = 2, g /= 2, w /= 2, a /= 2;
5487
+ }
5488
+ function A(P, S) {
5489
+ return _ === 1 ? P[S] : P.readUInt16BE(S * _);
5490
+ }
5491
+ let E;
5492
+ if (s) {
5493
+ let P = -1;
5494
+ for (E = a; E < g; E++)
5495
+ if (A(i, E) === A(n, P === -1 ? 0 : E - P)) {
5496
+ if (P === -1 && (P = E), E - P + 1 === w)
5497
+ return P * _;
5498
+ } else
5499
+ P !== -1 && (E -= E - P), P = -1;
5500
+ } else
5501
+ for (a + w > g && (a = g - w), E = a; E >= 0; E--) {
5502
+ let P = !0;
5503
+ for (let S = 0; S < w; S++)
5504
+ if (A(i, E + S) !== A(n, S)) {
5505
+ P = !1;
5506
+ break;
5507
+ }
5508
+ if (P)
5509
+ return E;
5510
+ }
5511
+ return -1;
5512
+ }
5513
+ p.prototype.includes = function(n, a, o) {
5514
+ return this.indexOf(n, a, o) !== -1;
5515
+ }, p.prototype.indexOf = function(n, a, o) {
5516
+ return qe(this, n, a, o, !0);
5517
+ }, p.prototype.lastIndexOf = function(n, a, o) {
5518
+ return qe(this, n, a, o, !1);
5519
+ };
5520
+ function In(i, n, a, o) {
5521
+ a = Number(a) || 0;
5522
+ const s = i.length - a;
5523
+ o ? (o = Number(o), o > s && (o = s)) : o = s;
5524
+ const _ = n.length;
5525
+ o > _ / 2 && (o = _ / 2);
5526
+ let g;
5527
+ for (g = 0; g < o; ++g) {
5528
+ const w = parseInt(n.substr(g * 2, 2), 16);
5529
+ if (Pe(w))
5530
+ return g;
5531
+ i[a + g] = w;
5532
+ }
5533
+ return g;
5534
+ }
5535
+ function An(i, n, a, o) {
5536
+ return ge(Ae(n, i.length - a), i, a, o);
5537
+ }
5538
+ function Pn(i, n, a, o) {
5539
+ return ge(Vn(n), i, a, o);
5540
+ }
5541
+ function jn(i, n, a, o) {
5542
+ return ge(Ge(n), i, a, o);
5543
+ }
5544
+ function xn(i, n, a, o) {
5545
+ return ge(Kn(n, i.length - a), i, a, o);
5546
+ }
5547
+ p.prototype.write = function(n, a, o, s) {
5548
+ if (a === void 0)
5549
+ s = "utf8", o = this.length, a = 0;
5550
+ else if (o === void 0 && typeof a == "string")
5551
+ s = a, o = this.length, a = 0;
5552
+ else if (isFinite(a))
5553
+ a = a >>> 0, isFinite(o) ? (o = o >>> 0, s === void 0 && (s = "utf8")) : (s = o, o = void 0);
5554
+ else
5555
+ throw new Error(
5556
+ "Buffer.write(string, encoding, offset[, length]) is no longer supported"
5557
+ );
5558
+ const _ = this.length - a;
5559
+ if ((o === void 0 || o > _) && (o = _), n.length > 0 && (o < 0 || a < 0) || a > this.length)
5560
+ throw new RangeError("Attempt to write outside buffer bounds");
5561
+ s || (s = "utf8");
5562
+ let g = !1;
5563
+ for (; ; )
5564
+ switch (s) {
5565
+ case "hex":
5566
+ return In(this, n, a, o);
5567
+ case "utf8":
5568
+ case "utf-8":
5569
+ return An(this, n, a, o);
5570
+ case "ascii":
5571
+ case "latin1":
5572
+ case "binary":
5573
+ return Pn(this, n, a, o);
5574
+ case "base64":
5575
+ return jn(this, n, a, o);
5576
+ case "ucs2":
5577
+ case "ucs-2":
5578
+ case "utf16le":
5579
+ case "utf-16le":
5580
+ return xn(this, n, a, o);
5581
+ default:
5582
+ if (g)
5583
+ throw new TypeError("Unknown encoding: " + s);
5584
+ s = ("" + s).toLowerCase(), g = !0;
5585
+ }
5586
+ }, p.prototype.toJSON = function() {
5587
+ return {
5588
+ type: "Buffer",
5589
+ data: Array.prototype.slice.call(this._arr || this, 0)
5590
+ };
5591
+ };
5592
+ function Bn(i, n, a) {
5593
+ return n === 0 && a === i.length ? t.fromByteArray(i) : t.fromByteArray(i.slice(n, a));
5594
+ }
5595
+ function Ue(i, n, a) {
5596
+ a = Math.min(i.length, a);
5597
+ const o = [];
5598
+ let s = n;
5599
+ for (; s < a; ) {
5600
+ const _ = i[s];
5601
+ let g = null, w = _ > 239 ? 4 : _ > 223 ? 3 : _ > 191 ? 2 : 1;
5602
+ if (s + w <= a) {
5603
+ let A, E, P, S;
5604
+ switch (w) {
5605
+ case 1:
5606
+ _ < 128 && (g = _);
5607
+ break;
5608
+ case 2:
5609
+ A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (g = S));
5610
+ break;
5611
+ case 3:
5612
+ A = i[s + 1], E = i[s + 2], (A & 192) === 128 && (E & 192) === 128 && (S = (_ & 15) << 12 | (A & 63) << 6 | E & 63, S > 2047 && (S < 55296 || S > 57343) && (g = S));
5613
+ break;
5614
+ case 4:
5615
+ A = i[s + 1], E = i[s + 2], P = i[s + 3], (A & 192) === 128 && (E & 192) === 128 && (P & 192) === 128 && (S = (_ & 15) << 18 | (A & 63) << 12 | (E & 63) << 6 | P & 63, S > 65535 && S < 1114112 && (g = S));
5616
+ }
5617
+ }
5618
+ g === null ? (g = 65533, w = 1) : g > 65535 && (g -= 65536, o.push(g >>> 10 & 1023 | 55296), g = 56320 | g & 1023), o.push(g), s += w;
5619
+ }
5620
+ return Mn(o);
5621
+ }
5622
+ const De = 4096;
5623
+ function Mn(i) {
5624
+ const n = i.length;
5625
+ if (n <= De)
5626
+ return String.fromCharCode.apply(String, i);
5627
+ let a = "", o = 0;
5628
+ for (; o < n; )
5629
+ a += String.fromCharCode.apply(
5630
+ String,
5631
+ i.slice(o, o += De)
5632
+ );
5633
+ return a;
5634
+ }
5635
+ function Rn(i, n, a) {
5636
+ let o = "";
5637
+ a = Math.min(i.length, a);
5638
+ for (let s = n; s < a; ++s)
5639
+ o += String.fromCharCode(i[s] & 127);
5640
+ return o;
5641
+ }
5642
+ function qn(i, n, a) {
5643
+ let o = "";
5644
+ a = Math.min(i.length, a);
5645
+ for (let s = n; s < a; ++s)
5646
+ o += String.fromCharCode(i[s]);
5647
+ return o;
5648
+ }
5649
+ function Nn(i, n, a) {
5650
+ const o = i.length;
5651
+ (!n || n < 0) && (n = 0), (!a || a < 0 || a > o) && (a = o);
5652
+ let s = "";
5653
+ for (let _ = n; _ < a; ++_)
5654
+ s += $n[i[_]];
5655
+ return s;
5656
+ }
5657
+ function Un(i, n, a) {
5658
+ const o = i.slice(n, a);
5659
+ let s = "";
5660
+ for (let _ = 0; _ < o.length - 1; _ += 2)
5661
+ s += String.fromCharCode(o[_] + o[_ + 1] * 256);
5662
+ return s;
5663
+ }
5664
+ p.prototype.slice = function(n, a) {
5665
+ const o = this.length;
5666
+ n = ~~n, a = a === void 0 ? o : ~~a, n < 0 ? (n += o, n < 0 && (n = 0)) : n > o && (n = o), a < 0 ? (a += o, a < 0 && (a = 0)) : a > o && (a = o), a < n && (a = n);
5667
+ const s = this.subarray(n, a);
5668
+ return Object.setPrototypeOf(s, p.prototype), s;
5669
+ };
5670
+ function M(i, n, a) {
5671
+ if (i % 1 !== 0 || i < 0)
5672
+ throw new RangeError("offset is not uint");
5673
+ if (i + n > a)
5674
+ throw new RangeError("Trying to access beyond buffer length");
5675
+ }
5676
+ p.prototype.readUintLE = p.prototype.readUIntLE = function(n, a, o) {
5677
+ n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5678
+ let s = this[n], _ = 1, g = 0;
5679
+ for (; ++g < a && (_ *= 256); )
5680
+ s += this[n + g] * _;
5681
+ return s;
5682
+ }, p.prototype.readUintBE = p.prototype.readUIntBE = function(n, a, o) {
5683
+ n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5684
+ let s = this[n + --a], _ = 1;
5685
+ for (; a > 0 && (_ *= 256); )
5686
+ s += this[n + --a] * _;
5687
+ return s;
5688
+ }, p.prototype.readUint8 = p.prototype.readUInt8 = function(n, a) {
5689
+ return n = n >>> 0, a || M(n, 1, this.length), this[n];
5690
+ }, p.prototype.readUint16LE = p.prototype.readUInt16LE = function(n, a) {
5691
+ return n = n >>> 0, a || M(n, 2, this.length), this[n] | this[n + 1] << 8;
5692
+ }, p.prototype.readUint16BE = p.prototype.readUInt16BE = function(n, a) {
5693
+ return n = n >>> 0, a || M(n, 2, this.length), this[n] << 8 | this[n + 1];
5694
+ }, p.prototype.readUint32LE = p.prototype.readUInt32LE = function(n, a) {
5695
+ return n = n >>> 0, a || M(n, 4, this.length), (this[n] | this[n + 1] << 8 | this[n + 2] << 16) + this[n + 3] * 16777216;
5696
+ }, p.prototype.readUint32BE = p.prototype.readUInt32BE = function(n, a) {
5697
+ return n = n >>> 0, a || M(n, 4, this.length), this[n] * 16777216 + (this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3]);
5698
+ }, p.prototype.readBigUInt64LE = Z(function(n) {
5699
+ n = n >>> 0, oe(n, "offset");
5700
+ const a = this[n], o = this[n + 7];
5701
+ (a === void 0 || o === void 0) && _e(n, this.length - 8);
5702
+ const s = a + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24, _ = this[++n] + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + o * 2 ** 24;
5703
+ return BigInt(s) + (BigInt(_) << BigInt(32));
5704
+ }), p.prototype.readBigUInt64BE = Z(function(n) {
5705
+ n = n >>> 0, oe(n, "offset");
5706
+ const a = this[n], o = this[n + 7];
5707
+ (a === void 0 || o === void 0) && _e(n, this.length - 8);
5708
+ const s = a * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n], _ = this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + o;
5709
+ return (BigInt(s) << BigInt(32)) + BigInt(_);
5710
+ }), p.prototype.readIntLE = function(n, a, o) {
5711
+ n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5712
+ let s = this[n], _ = 1, g = 0;
5713
+ for (; ++g < a && (_ *= 256); )
5714
+ s += this[n + g] * _;
5715
+ return _ *= 128, s >= _ && (s -= Math.pow(2, 8 * a)), s;
5716
+ }, p.prototype.readIntBE = function(n, a, o) {
5717
+ n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
5718
+ let s = a, _ = 1, g = this[n + --s];
5719
+ for (; s > 0 && (_ *= 256); )
5720
+ g += this[n + --s] * _;
5721
+ return _ *= 128, g >= _ && (g -= Math.pow(2, 8 * a)), g;
5722
+ }, p.prototype.readInt8 = function(n, a) {
5723
+ return n = n >>> 0, a || M(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
5724
+ }, p.prototype.readInt16LE = function(n, a) {
5725
+ n = n >>> 0, a || M(n, 2, this.length);
5726
+ const o = this[n] | this[n + 1] << 8;
5727
+ return o & 32768 ? o | 4294901760 : o;
5728
+ }, p.prototype.readInt16BE = function(n, a) {
5729
+ n = n >>> 0, a || M(n, 2, this.length);
5730
+ const o = this[n + 1] | this[n] << 8;
5731
+ return o & 32768 ? o | 4294901760 : o;
5732
+ }, p.prototype.readInt32LE = function(n, a) {
5733
+ return n = n >>> 0, a || M(n, 4, this.length), this[n] | this[n + 1] << 8 | this[n + 2] << 16 | this[n + 3] << 24;
5734
+ }, p.prototype.readInt32BE = function(n, a) {
5735
+ return n = n >>> 0, a || M(n, 4, this.length), this[n] << 24 | this[n + 1] << 16 | this[n + 2] << 8 | this[n + 3];
5736
+ }, p.prototype.readBigInt64LE = Z(function(n) {
5737
+ n = n >>> 0, oe(n, "offset");
5738
+ const a = this[n], o = this[n + 7];
5739
+ (a === void 0 || o === void 0) && _e(n, this.length - 8);
5740
+ const s = this[n + 4] + this[n + 5] * 2 ** 8 + this[n + 6] * 2 ** 16 + (o << 24);
5741
+ return (BigInt(s) << BigInt(32)) + BigInt(a + this[++n] * 2 ** 8 + this[++n] * 2 ** 16 + this[++n] * 2 ** 24);
5742
+ }), p.prototype.readBigInt64BE = Z(function(n) {
5743
+ n = n >>> 0, oe(n, "offset");
5744
+ const a = this[n], o = this[n + 7];
5745
+ (a === void 0 || o === void 0) && _e(n, this.length - 8);
5746
+ const s = (a << 24) + // Overflow
5747
+ this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + this[++n];
5748
+ return (BigInt(s) << BigInt(32)) + BigInt(this[++n] * 2 ** 24 + this[++n] * 2 ** 16 + this[++n] * 2 ** 8 + o);
5749
+ }), p.prototype.readFloatLE = function(n, a) {
5750
+ return n = n >>> 0, a || M(n, 4, this.length), r.read(this, n, !0, 23, 4);
5751
+ }, p.prototype.readFloatBE = function(n, a) {
5752
+ return n = n >>> 0, a || M(n, 4, this.length), r.read(this, n, !1, 23, 4);
5753
+ }, p.prototype.readDoubleLE = function(n, a) {
5754
+ return n = n >>> 0, a || M(n, 8, this.length), r.read(this, n, !0, 52, 8);
5755
+ }, p.prototype.readDoubleBE = function(n, a) {
5756
+ return n = n >>> 0, a || M(n, 8, this.length), r.read(this, n, !1, 52, 8);
5757
+ };
5758
+ function q(i, n, a, o, s, _) {
5759
+ if (!p.isBuffer(i))
5760
+ throw new TypeError('"buffer" argument must be a Buffer instance');
5761
+ if (n > s || n < _)
5762
+ throw new RangeError('"value" argument is out of bounds');
5763
+ if (a + o > i.length)
5764
+ throw new RangeError("Index out of range");
5765
+ }
5766
+ p.prototype.writeUintLE = p.prototype.writeUIntLE = function(n, a, o, s) {
5767
+ if (n = +n, a = a >>> 0, o = o >>> 0, !s) {
5768
+ const w = Math.pow(2, 8 * o) - 1;
5769
+ q(this, n, a, o, w, 0);
5770
+ }
5771
+ let _ = 1, g = 0;
5772
+ for (this[a] = n & 255; ++g < o && (_ *= 256); )
5773
+ this[a + g] = n / _ & 255;
5774
+ return a + o;
5775
+ }, p.prototype.writeUintBE = p.prototype.writeUIntBE = function(n, a, o, s) {
5776
+ if (n = +n, a = a >>> 0, o = o >>> 0, !s) {
5777
+ const w = Math.pow(2, 8 * o) - 1;
5778
+ q(this, n, a, o, w, 0);
5779
+ }
5780
+ let _ = o - 1, g = 1;
5781
+ for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
5782
+ this[a + _] = n / g & 255;
5783
+ return a + o;
5784
+ }, p.prototype.writeUint8 = p.prototype.writeUInt8 = function(n, a, o) {
5785
+ return n = +n, a = a >>> 0, o || q(this, n, a, 1, 255, 0), this[a] = n & 255, a + 1;
5786
+ }, p.prototype.writeUint16LE = p.prototype.writeUInt16LE = function(n, a, o) {
5787
+ return n = +n, a = a >>> 0, o || q(this, n, a, 2, 65535, 0), this[a] = n & 255, this[a + 1] = n >>> 8, a + 2;
5788
+ }, p.prototype.writeUint16BE = p.prototype.writeUInt16BE = function(n, a, o) {
5789
+ return n = +n, a = a >>> 0, o || q(this, n, a, 2, 65535, 0), this[a] = n >>> 8, this[a + 1] = n & 255, a + 2;
5790
+ }, p.prototype.writeUint32LE = p.prototype.writeUInt32LE = function(n, a, o) {
5791
+ return n = +n, a = a >>> 0, o || q(this, n, a, 4, 4294967295, 0), this[a + 3] = n >>> 24, this[a + 2] = n >>> 16, this[a + 1] = n >>> 8, this[a] = n & 255, a + 4;
5792
+ }, p.prototype.writeUint32BE = p.prototype.writeUInt32BE = function(n, a, o) {
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
+ };
5795
+ function Oe(i, n, a, o, s) {
5796
+ Qe(n, o, s, i, a, 7);
5797
+ let _ = Number(n & BigInt(4294967295));
5798
+ i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _;
5799
+ let g = Number(n >> BigInt(32) & BigInt(4294967295));
5800
+ return i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, g = g >> 8, i[a++] = g, a;
5801
+ }
5802
+ function Fe(i, n, a, o, s) {
5803
+ Qe(n, o, s, i, a, 7);
5804
+ let _ = Number(n & BigInt(4294967295));
5805
+ i[a + 7] = _, _ = _ >> 8, i[a + 6] = _, _ = _ >> 8, i[a + 5] = _, _ = _ >> 8, i[a + 4] = _;
5806
+ let g = Number(n >> BigInt(32) & BigInt(4294967295));
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
+ }
5809
+ p.prototype.writeBigUInt64LE = Z(function(n, a = 0) {
5810
+ return Oe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5811
+ }), p.prototype.writeBigUInt64BE = Z(function(n, a = 0) {
5812
+ return Fe(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
5813
+ }), p.prototype.writeIntLE = function(n, a, o, s) {
5814
+ if (n = +n, a = a >>> 0, !s) {
5815
+ const A = Math.pow(2, 8 * o - 1);
5816
+ q(this, n, a, o, A - 1, -A);
5817
+ }
5818
+ let _ = 0, g = 1, w = 0;
5819
+ for (this[a] = n & 255; ++_ < o && (g *= 256); )
5820
+ n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
5821
+ return a + o;
5822
+ }, p.prototype.writeIntBE = function(n, a, o, s) {
5823
+ if (n = +n, a = a >>> 0, !s) {
5824
+ const A = Math.pow(2, 8 * o - 1);
5825
+ q(this, n, a, o, A - 1, -A);
5826
+ }
5827
+ let _ = o - 1, g = 1, w = 0;
5828
+ for (this[a + _] = n & 255; --_ >= 0 && (g *= 256); )
5829
+ n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n / g >> 0) - w & 255;
5830
+ return a + o;
5831
+ }, p.prototype.writeInt8 = function(n, a, o) {
5832
+ return n = +n, a = a >>> 0, o || q(this, n, a, 1, 127, -128), n < 0 && (n = 255 + n + 1), this[a] = n & 255, a + 1;
5833
+ }, p.prototype.writeInt16LE = function(n, a, o) {
5834
+ return n = +n, a = a >>> 0, o || q(this, n, a, 2, 32767, -32768), this[a] = n & 255, this[a + 1] = n >>> 8, a + 2;
5835
+ }, p.prototype.writeInt16BE = function(n, a, o) {
5836
+ return n = +n, a = a >>> 0, o || q(this, n, a, 2, 32767, -32768), this[a] = n >>> 8, this[a + 1] = n & 255, a + 2;
5837
+ }, p.prototype.writeInt32LE = function(n, a, o) {
5838
+ return n = +n, a = a >>> 0, o || q(this, n, a, 4, 2147483647, -2147483648), this[a] = n & 255, this[a + 1] = n >>> 8, this[a + 2] = n >>> 16, this[a + 3] = n >>> 24, a + 4;
5839
+ }, p.prototype.writeInt32BE = function(n, a, o) {
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
+ }, p.prototype.writeBigInt64LE = Z(function(n, a = 0) {
5842
+ return Oe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5843
+ }), p.prototype.writeBigInt64BE = Z(function(n, a = 0) {
5844
+ return Fe(this, n, a, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
5845
+ });
5846
+ function Ve(i, n, a, o, s, _) {
5847
+ if (a + o > i.length)
5848
+ throw new RangeError("Index out of range");
5849
+ if (a < 0)
5850
+ throw new RangeError("Index out of range");
5851
+ }
5852
+ function Ke(i, n, a, o, s) {
5853
+ return n = +n, a = a >>> 0, s || Ve(i, n, a, 4), r.write(i, n, a, o, 23, 4), a + 4;
5854
+ }
5855
+ p.prototype.writeFloatLE = function(n, a, o) {
5856
+ return Ke(this, n, a, !0, o);
5857
+ }, p.prototype.writeFloatBE = function(n, a, o) {
5858
+ return Ke(this, n, a, !1, o);
5859
+ };
5860
+ function $e(i, n, a, o, s) {
5861
+ return n = +n, a = a >>> 0, s || Ve(i, n, a, 8), r.write(i, n, a, o, 52, 8), a + 8;
5862
+ }
5863
+ p.prototype.writeDoubleLE = function(n, a, o) {
5864
+ return $e(this, n, a, !0, o);
5865
+ }, p.prototype.writeDoubleBE = function(n, a, o) {
5866
+ return $e(this, n, a, !1, o);
5867
+ }, p.prototype.copy = function(n, a, o, s) {
5868
+ if (!p.isBuffer(n))
5869
+ throw new TypeError("argument should be a Buffer");
5870
+ if (o || (o = 0), !s && s !== 0 && (s = this.length), a >= n.length && (a = n.length), a || (a = 0), s > 0 && s < o && (s = o), s === o || n.length === 0 || this.length === 0)
5871
+ return 0;
5872
+ if (a < 0)
5873
+ throw new RangeError("targetStart out of bounds");
5874
+ if (o < 0 || o >= this.length)
5875
+ throw new RangeError("Index out of range");
5876
+ if (s < 0)
5877
+ throw new RangeError("sourceEnd out of bounds");
5878
+ s > this.length && (s = this.length), n.length - a < s - o && (s = n.length - a + o);
5879
+ const _ = s - o;
5880
+ return this === n && typeof d.prototype.copyWithin == "function" ? this.copyWithin(a, o, s) : d.prototype.set.call(
5881
+ n,
5882
+ this.subarray(o, s),
5883
+ a
5884
+ ), _;
5885
+ }, p.prototype.fill = function(n, a, o, s) {
5886
+ if (typeof n == "string") {
5887
+ if (typeof a == "string" ? (s = a, a = 0, o = this.length) : typeof o == "string" && (s = o, o = this.length), s !== void 0 && typeof s != "string")
5888
+ throw new TypeError("encoding must be a string");
5889
+ if (typeof s == "string" && !p.isEncoding(s))
5890
+ throw new TypeError("Unknown encoding: " + s);
5891
+ if (n.length === 1) {
5892
+ const g = n.charCodeAt(0);
5893
+ (s === "utf8" && g < 128 || s === "latin1") && (n = g);
5894
+ }
5895
+ } else
5896
+ typeof n == "number" ? n = n & 255 : typeof n == "boolean" && (n = Number(n));
5897
+ if (a < 0 || this.length < a || this.length < o)
5898
+ throw new RangeError("Out of range index");
5899
+ if (o <= a)
5900
+ return this;
5901
+ a = a >>> 0, o = o === void 0 ? this.length : o >>> 0, n || (n = 0);
5902
+ let _;
5903
+ if (typeof n == "number")
5904
+ for (_ = a; _ < o; ++_)
5905
+ this[_] = n;
5906
+ else {
5907
+ const g = p.isBuffer(n) ? n : p.from(n, s), w = g.length;
5908
+ if (w === 0)
5909
+ throw new TypeError('The value "' + n + '" is invalid for argument "value"');
5910
+ for (_ = 0; _ < o - a; ++_)
5911
+ this[_ + a] = g[_ % w];
5912
+ }
5913
+ return this;
5914
+ };
5915
+ const ie = {};
5916
+ function Ie(i, n, a) {
5917
+ ie[i] = class extends a {
5918
+ constructor() {
5919
+ super(), Object.defineProperty(this, "message", {
5920
+ value: n.apply(this, arguments),
5921
+ writable: !0,
5922
+ configurable: !0
5923
+ }), this.name = `${this.name} [${i}]`, this.stack, delete this.name;
5924
+ }
5925
+ get code() {
5926
+ return i;
5927
+ }
5928
+ set code(s) {
5929
+ Object.defineProperty(this, "code", {
5930
+ configurable: !0,
5931
+ enumerable: !0,
5932
+ value: s,
5933
+ writable: !0
5934
+ });
5935
+ }
5936
+ toString() {
5937
+ return `${this.name} [${i}]: ${this.message}`;
5938
+ }
5939
+ };
5940
+ }
5941
+ Ie(
5942
+ "ERR_BUFFER_OUT_OF_BOUNDS",
5943
+ function(i) {
5944
+ return i ? `${i} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds";
5945
+ },
5946
+ RangeError
5947
+ ), Ie(
5948
+ "ERR_INVALID_ARG_TYPE",
5949
+ function(i, n) {
5950
+ return `The "${i}" argument must be of type number. Received type ${typeof n}`;
5951
+ },
5952
+ TypeError
5953
+ ), Ie(
5954
+ "ERR_OUT_OF_RANGE",
5955
+ function(i, n, a) {
5956
+ let o = `The value of "${i}" is out of range.`, s = a;
5957
+ return Number.isInteger(a) && Math.abs(a) > 2 ** 32 ? s = He(String(a)) : typeof a == "bigint" && (s = String(a), (a > BigInt(2) ** BigInt(32) || a < -(BigInt(2) ** BigInt(32))) && (s = He(s)), s += "n"), o += ` It must be ${n}. Received ${s}`, o;
5958
+ },
5959
+ RangeError
5960
+ );
5961
+ function He(i) {
5962
+ let n = "", a = i.length;
5963
+ const o = i[0] === "-" ? 1 : 0;
5964
+ for (; a >= o + 4; a -= 3)
5965
+ n = `_${i.slice(a - 3, a)}${n}`;
5966
+ return `${i.slice(0, a)}${n}`;
5967
+ }
5968
+ function Dn(i, n, a) {
5969
+ oe(n, "offset"), (i[n] === void 0 || i[n + a] === void 0) && _e(n, i.length - (a + 1));
5970
+ }
5971
+ function Qe(i, n, a, o, s, _) {
5972
+ if (i > a || i < n) {
5973
+ const g = typeof n == "bigint" ? "n" : "";
5974
+ let w;
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
+ }
5977
+ Dn(o, s, _);
5978
+ }
5979
+ function oe(i, n) {
5980
+ if (typeof i != "number")
5981
+ throw new ie.ERR_INVALID_ARG_TYPE(n, "number", i);
5982
+ }
5983
+ function _e(i, n, a) {
5984
+ throw Math.floor(i) !== i ? (oe(i, a), new ie.ERR_OUT_OF_RANGE(a || "offset", "an integer", i)) : n < 0 ? new ie.ERR_BUFFER_OUT_OF_BOUNDS() : new ie.ERR_OUT_OF_RANGE(
5985
+ a || "offset",
5986
+ `>= ${a ? 1 : 0} and <= ${n}`,
5987
+ i
5988
+ );
5989
+ }
5990
+ const On = /[^+/0-9A-Za-z-_]/g;
5991
+ function Fn(i) {
5992
+ if (i = i.split("=")[0], i = i.trim().replace(On, ""), i.length < 2)
5993
+ return "";
5994
+ for (; i.length % 4 !== 0; )
5995
+ i = i + "=";
5996
+ return i;
5997
+ }
5998
+ function Ae(i, n) {
5999
+ n = n || 1 / 0;
6000
+ let a;
6001
+ const o = i.length;
6002
+ let s = null;
6003
+ const _ = [];
6004
+ for (let g = 0; g < o; ++g) {
6005
+ if (a = i.charCodeAt(g), a > 55295 && a < 57344) {
6006
+ if (!s) {
6007
+ if (a > 56319) {
6008
+ (n -= 3) > -1 && _.push(239, 191, 189);
6009
+ continue;
6010
+ } else if (g + 1 === o) {
6011
+ (n -= 3) > -1 && _.push(239, 191, 189);
6012
+ continue;
6013
+ }
6014
+ s = a;
6015
+ continue;
6016
+ }
6017
+ if (a < 56320) {
6018
+ (n -= 3) > -1 && _.push(239, 191, 189), s = a;
6019
+ continue;
6020
+ }
6021
+ a = (s - 55296 << 10 | a - 56320) + 65536;
6022
+ } else
6023
+ s && (n -= 3) > -1 && _.push(239, 191, 189);
6024
+ if (s = null, a < 128) {
6025
+ if ((n -= 1) < 0)
6026
+ break;
6027
+ _.push(a);
6028
+ } else if (a < 2048) {
6029
+ if ((n -= 2) < 0)
6030
+ break;
6031
+ _.push(
6032
+ a >> 6 | 192,
6033
+ a & 63 | 128
6034
+ );
6035
+ } else if (a < 65536) {
6036
+ if ((n -= 3) < 0)
6037
+ break;
6038
+ _.push(
6039
+ a >> 12 | 224,
6040
+ a >> 6 & 63 | 128,
6041
+ a & 63 | 128
6042
+ );
6043
+ } else if (a < 1114112) {
6044
+ if ((n -= 4) < 0)
6045
+ break;
6046
+ _.push(
6047
+ a >> 18 | 240,
6048
+ a >> 12 & 63 | 128,
6049
+ a >> 6 & 63 | 128,
6050
+ a & 63 | 128
6051
+ );
6052
+ } else
6053
+ throw new Error("Invalid code point");
6054
+ }
6055
+ return _;
6056
+ }
6057
+ function Vn(i) {
6058
+ const n = [];
6059
+ for (let a = 0; a < i.length; ++a)
6060
+ n.push(i.charCodeAt(a) & 255);
6061
+ return n;
6062
+ }
6063
+ function Kn(i, n) {
6064
+ let a, o, s;
6065
+ const _ = [];
6066
+ for (let g = 0; g < i.length && !((n -= 2) < 0); ++g)
6067
+ a = i.charCodeAt(g), o = a >> 8, s = a % 256, _.push(s), _.push(o);
6068
+ return _;
6069
+ }
6070
+ function Ge(i) {
6071
+ return t.toByteArray(Fn(i));
6072
+ }
6073
+ function ge(i, n, a, o) {
6074
+ let s;
6075
+ for (s = 0; s < o && !(s + a >= n.length || s >= i.length); ++s)
6076
+ n[s + a] = i[s];
6077
+ return s;
6078
+ }
6079
+ function H(i, n) {
6080
+ return i instanceof n || i != null && i.constructor != null && i.constructor.name != null && i.constructor.name === n.name;
6081
+ }
6082
+ function Pe(i) {
6083
+ return i !== i;
6084
+ }
6085
+ const $n = function() {
6086
+ const i = "0123456789abcdef", n = new Array(256);
6087
+ for (let a = 0; a < 16; ++a) {
6088
+ const o = a * 16;
6089
+ for (let s = 0; s < 16; ++s)
6090
+ n[o + s] = i[a] + i[s];
6091
+ }
6092
+ return n;
6093
+ }();
6094
+ function Z(i) {
6095
+ return typeof BigInt > "u" ? Hn : i;
6096
+ }
6097
+ function Hn() {
6098
+ throw new Error("BigInt not supported");
6099
+ }
6100
+ })(mn);
6101
+ const It = mn.Buffer, ze = {
5045
6102
  data() {
5046
6103
  return {
5047
6104
  code_verifier: "",
@@ -5058,38 +6115,38 @@ const F = {
5058
6115
  },
5059
6116
  methods: {
5060
6117
  async samlLogin(e) {
5061
- this.code_verifier = N.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await N.pkceChallengeFromVerifier(this.code_verifier);
5062
- const a = D.getPlatform();
5063
- let n = Buffer.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin + "/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");
5064
- e = `${e}&RelayState=${n}`;
5065
- let o = this;
5066
- window.addEventListener("message", async (i) => {
5067
- var r;
5068
- if (!this.allowedOrigins.includes(i.origin))
6118
+ this.code_verifier = le.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await le.pkceChallengeFromVerifier(this.code_verifier);
6119
+ const t = me.getPlatform();
6120
+ let r = It.from(`code_challenge=${this.code_challenge}&platform=${t}&redirect_uri=${location.origin + "/callback/saml"}&realm=${this.$storage.realm}`).toString("base64");
6121
+ e = `${e}&RelayState=${r}`;
6122
+ let u = this;
6123
+ window.addEventListener("message", async (l) => {
6124
+ var d;
6125
+ if (!this.allowedOrigins.includes(l.origin))
5069
6126
  return console.log("Origin is not allowed!");
5070
- if (i.data.type === "saml" && i.data.code) {
6127
+ if (l.data.type === "saml" && l.data.code) {
5071
6128
  if (this.display === "popup")
5072
- return (r = window.parent) == null ? void 0 : r.postMessage({ code: i.data.code, state: this.$route.query.state, code_verifier: localStorage.getItem("pkce_code_verifier") }, "*");
5073
- await o.exchangeAuthCode({ code: i.data.code, code_verifier: localStorage.getItem("pkce_code_verifier") }), localStorage.removeItem("pkce_code_verifier");
6129
+ 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") }, "*");
6130
+ await u.exchangeAuthCode({ code: l.data.code, code_verifier: localStorage.getItem("pkce_code_verifier") }), localStorage.removeItem("pkce_code_verifier");
5074
6131
  }
5075
- }, { once: !0 }), this.isNative ? await H.open({ url: e, presentationStyle: "popover" }) : window.open(e, "popup", "width=600,height=600");
6132
+ }, { once: !0 }), this.isNative ? await be.open({ url: e, presentationStyle: "popover" }) : window.open(e, "popup", "width=600,height=600");
5076
6133
  },
5077
6134
  async handleSamlRedirect() {
5078
- var n;
5079
- let e, a = { type: "saml" };
5080
- if (this.$route.query.code && (a.code = this.$route.query.code), window.opener)
5081
- window.opener.postMessage(a, location.origin), window.close();
6135
+ var r;
6136
+ let e, t = { type: "saml" };
6137
+ if (this.$route.query.code && (t.code = this.$route.query.code), window.opener)
6138
+ window.opener.postMessage(t, location.origin), window.close();
5082
6139
  else {
5083
- if (this.isNative && this.isIOS && await H.close(), EventBus.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (e = this.$route.query.code), e) {
6140
+ if (this.isNative && this.isIOS && await be.close(), v.$emit("ssoEvent", { name: "setLoading", data: !0 }), this.$route.query.code && (e = this.$route.query.code), console.log(this.display, { code: e }), e) {
5084
6141
  if (this.display === "popup")
5085
- return (n = window.parent) == null ? void 0 : n.postMessage({ code: e, state: this.$route.query.state }, "*");
6142
+ return (r = window.parent) == null ? void 0 : r.postMessage({ code: e, state: this.$route.query.state }, "*");
5086
6143
  await this.exchangeAuthCode({ code: e, code_verifier: localStorage.getItem("pkce_code_verifier") });
5087
6144
  }
5088
- localStorage.removeItem("pkce_code_verifier"), EventBus.$emit("ssoEvent", { name: "setLoading", data: !1 });
6145
+ localStorage.removeItem("pkce_code_verifier"), v.$emit("ssoEvent", { name: "setLoading", data: !1 });
5089
6146
  }
5090
6147
  }
5091
6148
  }
5092
- }, ea = {
6149
+ }, At = {
5093
6150
  data() {
5094
6151
  return {
5095
6152
  isQrCodeLogin: !1,
@@ -5111,19 +6168,19 @@ const F = {
5111
6168
  },
5112
6169
  methods: {
5113
6170
  async changeLoginToQr() {
5114
- this.isQrCodeLogin = !0, await J(), await this.initQrCodeLogin();
6171
+ this.isQrCodeLogin = !0, await We(), await this.initQrCodeLogin();
5115
6172
  },
5116
6173
  generateRandomHash() {
5117
- const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", a = e.length;
5118
- let n = "";
5119
- const o = new Uint32Array(32);
5120
- return window.crypto.getRandomValues(o), o.forEach((i) => {
5121
- n += e.charAt(i % a);
5122
- }), n;
6174
+ const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", t = e.length;
6175
+ let r = "";
6176
+ const u = new Uint32Array(32);
6177
+ return window.crypto.getRandomValues(u), u.forEach((l) => {
6178
+ r += e.charAt(l % t);
6179
+ }), r;
5123
6180
  },
5124
6181
  refreshQrCode() {
5125
- var e, a;
5126
- this.qrCode && ((a = (e = document.getElementById("qrCodeContainer")) == null ? void 0 : e.childNodes[0]) == null || a.remove()), this.qrCodeHash = this.generateRandomHash(), this.qrCode = new qe({
6182
+ var e, t;
6183
+ this.qrCode && ((t = (e = document.getElementById("qrCodeContainer")) == null ? void 0 : e.childNodes[0]) == null || t.remove()), this.qrCodeHash = this.generateRandomHash(), this.qrCode = new nt({
5127
6184
  width: 300,
5128
6185
  height: 300,
5129
6186
  type: "png",
@@ -5151,23 +6208,23 @@ const F = {
5151
6208
  },
5152
6209
  async startQrCodePooling() {
5153
6210
  this.poolingInterval = setInterval(async () => {
5154
- const [e, a] = await g(X.qrCodePooling({
6211
+ const [e, t] = await L(xe.qrCodePooling({
5155
6212
  qrToken: this.qrCodeHash
5156
6213
  }, this.$storage));
5157
6214
  if (e)
5158
6215
  return this.errorHandler(e);
5159
- 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));
6216
+ t.data.auth_code && (this.display === "npm" && (this.loginSetup({ ...t, isModal: this.isModal }), this.getLoggedInAccounts()), this.loginSuccess({ ...t, isModal: this.isModal }), clearInterval(this.poolingInterval), clearInterval(this.qrCodeRefreshInterval));
5160
6217
  }, 2e3);
5161
6218
  },
5162
6219
  async initQrCodeLogin() {
5163
- this.refreshQrCode(), await J(), await this.startQrCodePooling(), this.qrCodeRefreshInterval = setInterval(() => {
6220
+ this.refreshQrCode(), await We(), await this.startQrCodePooling(), this.qrCodeRefreshInterval = setInterval(() => {
5164
6221
  this.refreshQrCode();
5165
6222
  }, 6e4);
5166
6223
  }
5167
6224
  }
5168
- }, aa = {
6225
+ }, Pt = {
5169
6226
  name: "AuthLogin",
5170
- mixins: [me, ge, he, F, Q, G, z, ea],
6227
+ mixins: [pn, un, _n, ve, ye, ze, D, At],
5171
6228
  props: {
5172
6229
  isModal: {
5173
6230
  type: Boolean,
@@ -5188,16 +6245,16 @@ const F = {
5188
6245
  },
5189
6246
  computed: {
5190
6247
  displayFormLogin() {
5191
- var e, a;
5192
- return (((a = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : a.form_login) && !this.isModal) ?? this.emailLogin;
6248
+ var e, t;
6249
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.form_login) && !this.isModal) ?? this.emailLogin;
5193
6250
  },
5194
6251
  displayResetPasswordLogin() {
5195
- var e, a;
5196
- return (((a = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : a.reset_password) && !this.isModal) ?? !0;
6252
+ var e, t;
6253
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.reset_password) && !this.isModal) ?? !0;
5197
6254
  },
5198
6255
  displayRegisterLogin() {
5199
- var e, a;
5200
- return (((a = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : a.create_account) && !this.isModal) ?? !0;
6256
+ var e, t;
6257
+ return (((t = (e = this.ssoCompany) == null ? void 0 : e.login) == null ? void 0 : t.create_account) && !this.isModal) ?? !0;
5201
6258
  }
5202
6259
  },
5203
6260
  async mounted() {
@@ -5206,7 +6263,7 @@ const F = {
5206
6263
  return await this.handleOktaRedirect();
5207
6264
  if (this.$route.path === "/login/callback/saml")
5208
6265
  return await this.handleSamlRedirect();
5209
- this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && u.$emit("ssoEvent", { name: "setLoading", data: !1 }), u.$emit("ssoEvent", { name: "setInitialize", data: !0 });
6266
+ this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && v.$emit("ssoEvent", { name: "setLoading", data: !1 }), v.$emit("ssoEvent", { name: "setInitialize", data: !0 });
5210
6267
  }
5211
6268
  },
5212
6269
  methods: {
@@ -5214,22 +6271,22 @@ const F = {
5214
6271
  if (this.submitted)
5215
6272
  return;
5216
6273
  this.submitted = !0, this.emailOrUsername = this.emailOrUsername.trim();
5217
- let a = {
6274
+ let t = {
5218
6275
  response_type: this.$route.query.response_type || "token",
5219
6276
  isModal: this.isModal,
5220
6277
  captcha: this.captcha,
5221
6278
  password: this.password
5222
6279
  // captchaToken: await this.getCaptchaToken('account_verify')
5223
6280
  };
5224
- this.emailOrUsername.indexOf("@") !== -1 ? a.email = this.emailOrUsername : a.username = this.emailOrUsername;
5225
- const [n, o] = await g(this.login(a));
5226
- n && console.error(n), this.submitted = !1, o === !0 && (this.emailOrUsername = "", this.password = "");
6281
+ this.emailOrUsername.indexOf("@") !== -1 ? t.email = this.emailOrUsername : t.username = this.emailOrUsername;
6282
+ const [r, u] = await L(this.login(t));
6283
+ r && console.error(r), this.submitted = !1, u === !0 && (this.emailOrUsername = "", this.password = "");
5227
6284
  },
5228
6285
  close() {
5229
- u.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
6286
+ v.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
5230
6287
  },
5231
6288
  createAccountModal() {
5232
- u.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
6289
+ v.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: {} });
5233
6290
  }
5234
6291
  },
5235
6292
  watch: {
@@ -5243,109 +6300,109 @@ const F = {
5243
6300
  return await this.handleSamlRedirect();
5244
6301
  }
5245
6302
  }
5246
- }, na = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5247
- /* @__PURE__ */ t("img", {
6303
+ }, jt = /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
6304
+ /* @__PURE__ */ c("img", {
5248
6305
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5249
6306
  class: "responsive-image",
5250
6307
  style: { width: "35%" }
5251
6308
  })
5252
- ], -1), ta = [
5253
- na
5254
- ], ia = {
6309
+ ], -1), xt = [
6310
+ jt
6311
+ ], Bt = {
5255
6312
  class: "bold no-bottom center-text",
5256
6313
  style: { "margin-top": "63px" }
5257
- }, oa = /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1), ra = { key: 1 }, sa = { class: "page-login-field half-top" }, ca = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5258
- /* @__PURE__ */ t("img", {
6314
+ }, Mt = /* @__PURE__ */ c("p", { class: "half-bottom small-top center-text color-black" }, null, -1), Rt = { key: 1 }, qt = { class: "page-login-field half-top" }, Nt = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6315
+ /* @__PURE__ */ c("img", {
5259
6316
  src: "https://cdn.tapni.co/icons/user.png",
5260
6317
  class: "responsive-image",
5261
6318
  style: { width: "50%" }
5262
6319
  })
5263
- ], -1), la = ["placeholder"], da = /* @__PURE__ */ t("em", null, null, -1), pa = { class: "page-login-field half-bottom" }, ua = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5264
- /* @__PURE__ */ t("img", {
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" } }, [
6321
+ /* @__PURE__ */ c("img", {
5265
6322
  src: "https://cdn.tapni.co/icons/padlock.png",
5266
6323
  class: "responsive-image",
5267
6324
  style: { width: "50%" }
5268
6325
  })
5269
- ], -1), _a = ["type", "placeholder"], ma = {
6326
+ ], -1), Vt = ["type", "placeholder"], Kt = {
5270
6327
  src: "https://cdn.tapni.co/icons/reveal-password.png",
5271
6328
  class: "responsive-image password-reveal-icon"
5272
- }, ga = {
6329
+ }, $t = {
5273
6330
  src: "https://cdn.tapni.co/icons/hide-password.png",
5274
6331
  class: "responsive-image password-reveal-icon"
5275
- }, ha = {
6332
+ }, Ht = {
5276
6333
  type: "submit",
5277
6334
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
5278
- }, fa = { key: 0 }, va = {
6335
+ }, Qt = { key: 0 }, Gt = {
5279
6336
  key: 1,
5280
6337
  class: "button--loading button__loader"
5281
- }, ka = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), ba = /* @__PURE__ */ t("img", {
6338
+ }, Wt = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), Yt = /* @__PURE__ */ c("img", {
5282
6339
  src: "https://cdn.tapni.co/icons/apple-logo.png",
5283
6340
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
5284
- }, null, -1), ya = { key: 0 }, wa = {
6341
+ }, null, -1), Xt = { key: 0 }, Zt = {
5285
6342
  key: 1,
5286
6343
  class: "button--loading button__loader"
5287
- }, za = /* @__PURE__ */ t("img", {
6344
+ }, Jt = /* @__PURE__ */ c("img", {
5288
6345
  src: "https://cdn.tapni.co/icons/g-logo.png",
5289
6346
  style: { position: "absolute", "margin-left": "-10px", padding: "8px 0", height: "100%" }
5290
- }, null, -1), La = { key: 0 }, Sa = {
6347
+ }, null, -1), ea = { key: 0 }, na = {
5291
6348
  key: 1,
5292
6349
  class: "button--loading-black button__loader"
5293
- }, Ca = /* @__PURE__ */ t("img", {
6350
+ }, ta = /* @__PURE__ */ c("img", {
5294
6351
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
5295
6352
  style: { position: "absolute", "margin-left": "-9px", padding: "10px 0", height: "100%" }
5296
- }, null, -1), Ta = { key: 0 }, ja = {
6353
+ }, null, -1), aa = { key: 0 }, ia = {
5297
6354
  key: 1,
5298
6355
  class: "button--loading-black button__loader"
5299
- }, Pa = /* @__PURE__ */ t("img", {
6356
+ }, oa = /* @__PURE__ */ c("img", {
5300
6357
  src: "https://cdn.tapni.co/icons/outlook.png",
5301
6358
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5302
- }, null, -1), Aa = { key: 0 }, Ia = {
6359
+ }, null, -1), ra = { key: 0 }, sa = {
5303
6360
  key: 1,
5304
6361
  class: "button--loading-black button__loader"
5305
- }, Ea = /* @__PURE__ */ t("img", {
6362
+ }, ca = /* @__PURE__ */ c("img", {
5306
6363
  src: "https://cdn.tapni.co/icons/sso-key.png",
5307
6364
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5308
- }, null, -1), xa = { key: 0 }, qa = {
6365
+ }, null, -1), la = { key: 0 }, da = {
5309
6366
  key: 1,
5310
6367
  class: "button--loading-black button__loader"
5311
- }, Ma = /* @__PURE__ */ t("img", {
6368
+ }, pa = /* @__PURE__ */ c("img", {
5312
6369
  src: "https://cdn.tapni.co/icons/sso-key.png",
5313
6370
  style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
5314
- }, null, -1), Ra = { key: 0 }, Na = {
6371
+ }, null, -1), ua = { key: 0 }, _a = {
5315
6372
  key: 1,
5316
6373
  class: "button--loading-black button__loader"
5317
- }, Va = /* @__PURE__ */ t("img", {
6374
+ }, ma = /* @__PURE__ */ c("img", {
5318
6375
  src: "https://cdn.tapni.co/icons/mail.png",
5319
6376
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
5320
- }, null, -1), Oa = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Ba = { class: "close-text center-text half-top color-black" }, Da = /* @__PURE__ */ t("br", null, null, -1), Ua = {
6377
+ }, null, -1), ga = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), ha = { class: "close-text center-text half-top color-black" }, fa = /* @__PURE__ */ c("br", null, null, -1), ka = {
5321
6378
  class: "",
5322
6379
  href: "https://tapni.co/policies/terms-of-service"
5323
- }, Ka = { href: "https://tapni.co/policies/privacy-policy" }, $a = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), Ha = {
6380
+ }, ba = { href: "https://tapni.co/policies/privacy-policy" }, va = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), ya = {
5324
6381
  key: 9,
5325
6382
  class: "page-login-links"
5326
- }, Fa = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Qa = { class: "forgot center-text pointer small-top" }, Ga = /* @__PURE__ */ t("br", null, null, -1), Wa = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5327
- function Xa(e, a, n, o, i, r) {
5328
- const p = V("router-link");
5329
- return c(), l("form", {
6383
+ }, wa = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), za = { class: "forgot center-text pointer small-top" }, La = /* @__PURE__ */ c("br", null, null, -1), Ca = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
6384
+ function Sa(e, t, r, u, l, d) {
6385
+ const h = de("router-link");
6386
+ return f(), k("form", {
5330
6387
  class: "page-login content-boxed content-boxed-padding",
5331
- onSubmit: a[13] || (a[13] = w((...s) => r.submit && r.submit(...s), ["prevent"])),
6388
+ onSubmit: t[13] || (t[13] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
5332
6389
  autocomplete: "on",
5333
- style: R(n.isModal ? "max-width: 500px;" : "")
6390
+ style: ce(r.isModal ? "max-width: 500px;" : "")
5334
6391
  }, [
5335
- n.isModal ? (c(), l("a", {
6392
+ r.isModal ? (f(), k("a", {
5336
6393
  key: 0,
5337
- onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
6394
+ onClick: t[0] || (t[0] = (...m) => d.close && d.close(...m)),
5338
6395
  class: "color-black pull-right pointer",
5339
6396
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5340
- }, ta)) : h("", !0),
5341
- t("h1", ia, d(this.ssoLang[this.appLanguage].login), 1),
5342
- oa,
5343
- r.displayFormLogin ? (c(), l("span", ra, [
5344
- t("div", sa, [
5345
- ca,
5346
- k(t("input", {
5347
- "onUpdate:modelValue": a[1] || (a[1] = (s) => i.emailOrUsername = s),
5348
- onKeydown: a[2] || (a[2] = E(w(() => {
6397
+ }, xt)) : T("", !0),
6398
+ c("h1", Bt, y(this.ssoLang[this.appLanguage].login), 1),
6399
+ Mt,
6400
+ d.displayFormLogin ? (f(), k("span", Rt, [
6401
+ c("div", qt, [
6402
+ Nt,
6403
+ B(c("input", {
6404
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => l.emailOrUsername = m),
6405
+ onKeydown: t[2] || (t[2] = te(U(() => {
5349
6406
  }, ["prevent"]), ["space"])),
5350
6407
  autocorrect: "off",
5351
6408
  autocapitalize: "off",
@@ -5354,144 +6411,144 @@ function Xa(e, a, n, o, i, r) {
5354
6411
  name: "email",
5355
6412
  placeholder: e.ssoLang[this.appLanguage].email_username,
5356
6413
  required: ""
5357
- }, null, 40, la), [
5358
- [x, i.emailOrUsername]
6414
+ }, null, 40, Ut), [
6415
+ [ae, l.emailOrUsername]
5359
6416
  ]),
5360
- da
6417
+ Dt
5361
6418
  ]),
5362
- t("div", pa, [
5363
- ua,
5364
- k(t("input", {
5365
- "onUpdate:modelValue": a[3] || (a[3] = (s) => i.password = s),
5366
- type: i.revealPassword ? "text" : "password",
6419
+ c("div", Ot, [
6420
+ Ft,
6421
+ B(c("input", {
6422
+ "onUpdate:modelValue": t[3] || (t[3] = (m) => l.password = m),
6423
+ type: l.revealPassword ? "text" : "password",
5367
6424
  placeholder: e.ssoLang[this.appLanguage].password,
5368
6425
  name: "password",
5369
6426
  required: "",
5370
6427
  minlength: "8"
5371
- }, null, 8, _a), [
5372
- [K, i.password]
6428
+ }, null, 8, Vt), [
6429
+ [fe, l.password]
5373
6430
  ]),
5374
- t("em", {
5375
- onClick: a[4] || (a[4] = (s) => i.revealPassword = !i.revealPassword),
6431
+ c("em", {
6432
+ onClick: t[4] || (t[4] = (m) => l.revealPassword = !l.revealPassword),
5376
6433
  class: "pointer"
5377
6434
  }, [
5378
- k(t("img", ma, null, 512), [
5379
- [I, !i.revealPassword]
6435
+ B(c("img", Kt, null, 512), [
6436
+ [J, !l.revealPassword]
5380
6437
  ]),
5381
- k(t("img", ga, null, 512), [
5382
- [I, i.revealPassword]
6438
+ B(c("img", $t, null, 512), [
6439
+ [J, l.revealPassword]
5383
6440
  ])
5384
6441
  ])
5385
6442
  ]),
5386
- t("button", ha, [
5387
- i.submitted ? (c(), l("span", va)) : (c(), l("span", fa, d(e.ssoLang[e.appLanguage].login), 1))
6443
+ c("button", Ht, [
6444
+ l.submitted ? (f(), k("span", Gt)) : (f(), k("span", Qt, y(e.ssoLang[e.appLanguage].login), 1))
5388
6445
  ])
5389
- ])) : h("", !0),
5390
- ka,
5391
- e.displayAppleLogin ? (c(), l("a", {
6446
+ ])) : T("", !0),
6447
+ Wt,
6448
+ e.displayAppleLogin ? (f(), k("a", {
5392
6449
  key: 2,
5393
- onClick: a[5] || (a[5] = (...s) => e.appleLogin && e.appleLogin(...s)),
6450
+ onClick: t[5] || (t[5] = (...m) => e.appleLogin && e.appleLogin(...m)),
5394
6451
  class: "button-center button button-90 google-button pointer"
5395
6452
  }, [
5396
- ba,
5397
- e.appleLoad ? (c(), l("span", wa)) : (c(), l("span", ya, d(e.ssoLang[e.appLanguage].sign_in_with) + " Apple", 1))
5398
- ])) : h("", !0),
5399
- e.displayGoogleLogin ? (c(), l("a", {
6453
+ Yt,
6454
+ e.appleLoad ? (f(), k("span", Zt)) : (f(), k("span", Xt, y(e.ssoLang[e.appLanguage].sign_in_with) + " Apple", 1))
6455
+ ])) : T("", !0),
6456
+ e.displayGoogleLogin ? (f(), k("a", {
5400
6457
  key: 3,
5401
- onClick: a[6] || (a[6] = (...s) => e.googleLogin && e.googleLogin(...s)),
6458
+ onClick: t[6] || (t[6] = (...m) => e.googleLogin && e.googleLogin(...m)),
5402
6459
  class: "button-center button button-90 google-button pointer"
5403
6460
  }, [
5404
- za,
5405
- e.googleLoad ? (c(), l("span", Sa)) : (c(), l("span", La, d(e.ssoLang[e.appLanguage].sign_in_with) + " Google", 1))
5406
- ])) : h("", !0),
5407
- e.displayFacebookLogin ? (c(), l("a", {
6461
+ Jt,
6462
+ e.googleLoad ? (f(), k("span", na)) : (f(), k("span", ea, y(e.ssoLang[e.appLanguage].sign_in_with) + " Google", 1))
6463
+ ])) : T("", !0),
6464
+ e.displayFacebookLogin ? (f(), k("a", {
5408
6465
  key: 4,
5409
- onClick: a[7] || (a[7] = (...s) => e.facebookLogin && e.facebookLogin(...s)),
6466
+ onClick: t[7] || (t[7] = (...m) => e.facebookLogin && e.facebookLogin(...m)),
5410
6467
  class: "button-center button button-90 google-button pointer"
5411
6468
  }, [
5412
- Ca,
5413
- e.facebookLoad ? (c(), l("span", ja)) : (c(), l("span", Ta, d(e.ssoLang[e.appLanguage].sign_in_with) + " Facebook", 1))
5414
- ])) : h("", !0),
5415
- e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
6469
+ ta,
6470
+ e.facebookLoad ? (f(), k("span", ia)) : (f(), k("span", aa, y(e.ssoLang[e.appLanguage].sign_in_with) + " Facebook", 1))
6471
+ ])) : T("", !0),
6472
+ e.displayMicrosoftSSOLogin ? T("", !0) : (f(), k("a", {
5416
6473
  key: 5,
5417
- onClick: a[8] || (a[8] = (...s) => e.microsoftLogin && e.microsoftLogin(...s)),
6474
+ onClick: t[8] || (t[8] = (...m) => e.microsoftLogin && e.microsoftLogin(...m)),
5418
6475
  class: "button-center button button-90 google-button pointer"
5419
6476
  }, [
5420
- Pa,
5421
- e.microsoftLoad ? (c(), l("span", Ia)) : (c(), l("span", Aa, d(e.ssoLang[e.appLanguage].sign_in_with) + " Outlook", 1))
6477
+ oa,
6478
+ e.microsoftLoad ? (f(), k("span", sa)) : (f(), k("span", ra, y(e.ssoLang[e.appLanguage].sign_in_with) + " Outlook", 1))
5422
6479
  ])),
5423
- e.displayMicrosoftSSOLogin ? h("", !0) : (c(), l("a", {
6480
+ e.displayMicrosoftSSOLogin ? T("", !0) : (f(), k("a", {
5424
6481
  key: 6,
5425
- onClick: a[9] || (a[9] = (...s) => e.ssoLogin && e.ssoLogin(...s)),
6482
+ onClick: t[9] || (t[9] = (...m) => e.ssoLogin && e.ssoLogin(...m)),
5426
6483
  class: "button-center button button-90 google-button pointer"
5427
6484
  }, [
5428
- Ea,
5429
- e.microsoftSSOLoad ? (c(), l("span", qa)) : (c(), l("span", xa, d(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1))
6485
+ ca,
6486
+ e.microsoftSSOLoad ? (f(), k("span", da)) : (f(), k("span", la, y(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1))
5430
6487
  ])),
5431
- e.displayMicrosoftSSOLogin ? (c(), l("a", {
6488
+ e.displayMicrosoftSSOLogin ? (f(), k("a", {
5432
6489
  key: 7,
5433
- onClick: a[10] || (a[10] = (s) => e.microsoftLogin("sso")),
6490
+ onClick: t[10] || (t[10] = (m) => e.microsoftLogin("sso")),
5434
6491
  class: "button-center button button-90 google-button pointer"
5435
6492
  }, [
5436
- Ma,
5437
- e.microsoftSSOLoad ? (c(), l("span", Ra, d(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1)) : (c(), l("span", Na))
5438
- ])) : h("", !0),
5439
- r.displayFormLogin ? h("", !0) : (c(), l("a", {
6493
+ pa,
6494
+ e.microsoftSSOLoad ? (f(), k("span", ua, y(e.ssoLang[e.appLanguage].sign_in_with) + " SSO", 1)) : (f(), k("span", _a))
6495
+ ])) : T("", !0),
6496
+ d.displayFormLogin ? T("", !0) : (f(), k("a", {
5440
6497
  key: 8,
5441
- onClick: a[11] || (a[11] = (s) => i.emailLogin = !0),
6498
+ onClick: t[11] || (t[11] = (m) => l.emailLogin = !0),
5442
6499
  class: "button-center button button-90 google-button pointer"
5443
6500
  }, [
5444
- Va,
5445
- t("span", null, d(e.ssoLang[e.appLanguage].sign_in_with) + " Email", 1)
6501
+ ma,
6502
+ c("span", null, y(e.ssoLang[e.appLanguage].sign_in_with) + " Email", 1)
5446
6503
  ])),
5447
- Oa,
5448
- t("p", Ba, [
5449
- f(d(e.ssoLang[e.appLanguage].terms_by_signing_in) + " ", 1),
5450
- Da,
5451
- t("a", Ua, d(e.ssoLang[this.appLanguage].terms_of_service), 1),
5452
- f(" " + d(e.ssoLang[e.appLanguage].and) + " ", 1),
5453
- t("a", Ka, d(e.ssoLang[this.appLanguage].privacy_policy), 1)
6504
+ ga,
6505
+ c("p", ha, [
6506
+ I(y(e.ssoLang[e.appLanguage].terms_by_signing_in) + " ", 1),
6507
+ fa,
6508
+ c("a", ka, y(e.ssoLang[this.appLanguage].terms_of_service), 1),
6509
+ I(" " + y(e.ssoLang[e.appLanguage].and) + " ", 1),
6510
+ c("a", ba, y(e.ssoLang[this.appLanguage].privacy_policy), 1)
5454
6511
  ]),
5455
- $a,
5456
- n.isModal ? (c(), l("div", {
6512
+ va,
6513
+ r.isModal ? (f(), k("div", {
5457
6514
  key: 10,
5458
6515
  class: "page-login-links",
5459
- onClick: a[12] || (a[12] = (...s) => r.createAccountModal && r.createAccountModal(...s))
6516
+ onClick: t[12] || (t[12] = (...m) => d.createAccountModal && d.createAccountModal(...m))
5460
6517
  }, [
5461
- t("a", Qa, [
5462
- f(d(e.ssoLang[e.appLanguage].or) + " ", 1),
5463
- Ga,
5464
- f(" " + d(e.ssoLang[e.appLanguage].create_new_account), 1)
6518
+ c("a", za, [
6519
+ I(y(e.ssoLang[e.appLanguage].or) + " ", 1),
6520
+ La,
6521
+ I(" " + y(e.ssoLang[e.appLanguage].create_new_account), 1)
5465
6522
  ]),
5466
- Wa
5467
- ])) : (c(), l("div", Ha, [
5468
- r.displayRegisterLogin ? (c(), P(p, {
6523
+ Ca
6524
+ ])) : (f(), k("div", ya, [
6525
+ d.displayRegisterLogin ? (f(), Y(h, {
5469
6526
  key: 0,
5470
6527
  class: "forgot float-right",
5471
6528
  to: "/register"
5472
6529
  }, {
5473
- default: j(() => [
5474
- f(d(e.ssoLang[e.appLanguage].create_account), 1)
6530
+ default: G(() => [
6531
+ I(y(e.ssoLang[e.appLanguage].create_account), 1)
5475
6532
  ]),
5476
6533
  _: 1
5477
- })) : h("", !0),
5478
- r.displayResetPasswordLogin ? (c(), P(p, {
6534
+ })) : T("", !0),
6535
+ d.displayResetPasswordLogin ? (f(), Y(h, {
5479
6536
  key: 1,
5480
6537
  class: "create float-left",
5481
6538
  to: "/reset"
5482
6539
  }, {
5483
- default: j(() => [
5484
- f(d(e.ssoLang[e.appLanguage].reset_password), 1)
6540
+ default: G(() => [
6541
+ I(y(e.ssoLang[e.appLanguage].reset_password), 1)
5485
6542
  ]),
5486
6543
  _: 1
5487
- })) : h("", !0),
5488
- Fa
6544
+ })) : T("", !0),
6545
+ wa
5489
6546
  ]))
5490
6547
  ], 36);
5491
6548
  }
5492
- const fe = /* @__PURE__ */ T(aa, [["render", Xa]]), Ya = {
6549
+ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
5493
6550
  name: "AuthRegister",
5494
- mixins: [me, ge, he, F, z],
6551
+ mixins: [pn, un, _n, ve, D],
5495
6552
  props: {
5496
6553
  isModal: {
5497
6554
  type: Boolean,
@@ -5515,7 +6572,7 @@ const fe = /* @__PURE__ */ T(aa, [["render", Xa]]), Ya = {
5515
6572
  };
5516
6573
  },
5517
6574
  mounted() {
5518
- this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && u.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.invitationCode = this.$route.query.ic || "", this.$route.query.username && (this.usernameRegister = !0, this.emailLogin = !0, this.username = this.$route.query.username), this.$route.query.ref ? this.referral = this.$route.query.ref : this.$storage.referral && (this.referral = this.$storage.referral));
6575
+ this.isModal || (this.isLoggedIn ? this.$router.push(this.home) : !this.$route.query.state && !this.$route.query.oauth && !this.$route.params.oauth && v.$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));
5519
6576
  },
5520
6577
  methods: {
5521
6578
  async submit() {
@@ -5538,14 +6595,14 @@ const fe = /* @__PURE__ */ T(aa, [["render", Xa]]), Ya = {
5538
6595
  ic: this.invitationCode,
5539
6596
  captchaToken: await this.getCaptchaToken("account_verify"),
5540
6597
  ref: this.referral
5541
- }, a = await this.register(e);
5542
- this.submitted = !1, a.data && a.data.success && (a.data.message === "SUCCESS_REGISTER" ? (this.isModal ? u.$emit("ssoEvent", { name: "toggleAddAccountModalVerify", data: !1 }) : this.$router.push("/verify"), this.successSnack(this.ssoLang[this.appLanguage].register_success), this.formButtonText = this.ssoLang[this.appLanguage].check_your_inbox) : a.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...a, isModal: e.isModal }), this.getLoggedInAccounts()), await this.loginSuccess({ ...a, isModal: e.isModal })));
6598
+ }, t = await this.register(e);
6599
+ this.submitted = !1, t.data && t.data.success && (t.data.message === "SUCCESS_REGISTER" ? (this.isModal ? v.$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) : t.data.message === "SUCCESS_LOGIN" && (this.display === "npm" && (await this.loginSetup({ ...t, isModal: e.isModal }), this.getLoggedInAccounts()), await this.loginSuccess({ ...t, isModal: e.isModal })));
5543
6600
  },
5544
6601
  close() {
5545
- u.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
6602
+ v.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
5546
6603
  },
5547
6604
  loginAccountModal() {
5548
- u.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
6605
+ v.$emit("ssoEvent", { name: "toggleAddAccountModalLogin", data: !1 });
5549
6606
  }
5550
6607
  },
5551
6608
  watch: {
@@ -5556,117 +6613,117 @@ const fe = /* @__PURE__ */ T(aa, [["render", Xa]]), Ya = {
5556
6613
  this.$storage.referral = e;
5557
6614
  }
5558
6615
  }
5559
- }, Za = /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5560
- /* @__PURE__ */ t("img", {
6616
+ }, Ea = /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
6617
+ /* @__PURE__ */ c("img", {
5561
6618
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5562
6619
  class: "responsive-image",
5563
6620
  style: { width: "35%" }
5564
6621
  })
5565
- ], -1), Ja = [
5566
- Za
5567
- ], en = {
6622
+ ], -1), Ia = [
6623
+ Ea
6624
+ ], Aa = {
5568
6625
  class: "bold no-bottom center-text",
5569
6626
  style: { "margin-top": "63px" }
5570
- }, an = { class: "half-bottom small-top center-text color-black" }, nn = { key: 0 }, tn = /* @__PURE__ */ t("br", null, null, -1), on = { key: 1 }, rn = { class: "page-login-field half-top" }, sn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5571
- /* @__PURE__ */ t("img", {
6627
+ }, Pa = { class: "half-bottom small-top center-text color-black" }, ja = { key: 0 }, xa = /* @__PURE__ */ c("br", null, null, -1), Ba = { key: 1 }, Ma = { class: "page-login-field half-top" }, Ra = /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
6628
+ /* @__PURE__ */ c("img", {
5572
6629
  src: "https://cdn.tapni.co/icons/mail.png",
5573
6630
  class: "responsive-image",
5574
6631
  style: { width: "60%" }
5575
6632
  })
5576
- ], -1), cn = ["placeholder"], ln = /* @__PURE__ */ t("em", null, null, -1), dn = { class: "page-login-field half-top" }, pn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5577
- /* @__PURE__ */ t("img", {
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" } }, [
6634
+ /* @__PURE__ */ c("img", {
5578
6635
  src: "https://cdn.tapni.co/icons/user.png",
5579
6636
  class: "responsive-image",
5580
6637
  style: { width: "50%" }
5581
6638
  })
5582
- ], -1), un = ["placeholder", "disabled"], _n = /* @__PURE__ */ t("em", null, null, -1), mn = { class: "page-login-field half-top half-bottom" }, gn = /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
5583
- /* @__PURE__ */ t("img", {
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" } }, [
6640
+ /* @__PURE__ */ c("img", {
5584
6641
  src: "https://cdn.tapni.co/icons/padlock.png",
5585
6642
  class: "responsive-image",
5586
6643
  style: { width: "50%" }
5587
6644
  })
5588
- ], -1), hn = ["type", "placeholder"], fn = {
6645
+ ], -1), $a = ["type", "placeholder"], Ha = {
5589
6646
  src: "https://cdn.tapni.co/icons/reveal-password.png",
5590
6647
  class: "responsive-image password-reveal-icon"
5591
- }, vn = {
6648
+ }, Qa = {
5592
6649
  src: "https://cdn.tapni.co/icons/hide-password.png",
5593
6650
  class: "responsive-image password-reveal-icon"
5594
- }, kn = {
6651
+ }, Ga = {
5595
6652
  type: "submit",
5596
6653
  class: "button black-button google-button bg-tapni-grey pointer button-90 button-center uppercase button-rounded bold full-top"
5597
- }, bn = { key: 0 }, yn = {
6654
+ }, Wa = { key: 0 }, Ya = {
5598
6655
  key: 1,
5599
6656
  class: "button--loading button__loader"
5600
- }, wn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), zn = /* @__PURE__ */ t("img", {
6657
+ }, Xa = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin half-top half-bottom" }, null, -1), Za = /* @__PURE__ */ c("img", {
5601
6658
  src: "https://cdn.tapni.co/icons/apple-logo.png",
5602
6659
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
5603
- }, null, -1), Ln = { key: 0 }, Sn = {
6660
+ }, null, -1), Ja = { key: 0 }, ei = {
5604
6661
  key: 1,
5605
6662
  class: "button--loading button__loader"
5606
- }, Cn = /* @__PURE__ */ t("img", {
6663
+ }, ni = /* @__PURE__ */ c("img", {
5607
6664
  src: "https://cdn.tapni.co/icons/g-logo.png",
5608
6665
  style: { position: "absolute", "margin-left": "-9px", padding: "8px 0", height: "100%" }
5609
- }, null, -1), Tn = { key: 0 }, jn = {
6666
+ }, null, -1), ti = { key: 0 }, ai = {
5610
6667
  key: 1,
5611
6668
  class: "button--loading button__loader"
5612
- }, Pn = /* @__PURE__ */ t("img", {
6669
+ }, ii = /* @__PURE__ */ c("img", {
5613
6670
  src: "https://cdn.tapni.co/icons/facebook-blue.png",
5614
6671
  style: { position: "absolute", "margin-left": "-10px", padding: "10px 0", height: "100%" }
5615
- }, null, -1), An = { key: 0 }, In = {
6672
+ }, null, -1), oi = { key: 0 }, ri = {
5616
6673
  key: 1,
5617
6674
  class: "button--loading button__loader"
5618
- }, En = /* @__PURE__ */ t("img", {
6675
+ }, si = /* @__PURE__ */ c("img", {
5619
6676
  src: "https://cdn.tapni.co/icons/mail.png",
5620
6677
  style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
5621
- }, null, -1), xn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), qn = { class: "close-text center-text half-top color-black" }, Mn = /* @__PURE__ */ t("br", null, null, -1), Rn = {
6678
+ }, null, -1), ci = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), li = { class: "close-text center-text half-top color-black" }, di = /* @__PURE__ */ c("br", null, null, -1), pi = {
5622
6679
  class: "",
5623
6680
  href: "https://tapni.co/policies/terms-of-service"
5624
- }, Nn = { href: "https://tapni.co/policies/privacy-policy" }, Vn = /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), On = {
6681
+ }, ui = { href: "https://tapni.co/policies/privacy-policy" }, _i = /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), mi = {
5625
6682
  key: 5,
5626
6683
  class: "page-login-links"
5627
- }, Bn = /* @__PURE__ */ t("div", { class: "clear" }, null, -1), Dn = { class: "forgot center-text pointer small-top" }, Un = /* @__PURE__ */ t("br", null, null, -1), Kn = /* @__PURE__ */ t("div", { class: "clear" }, null, -1);
5628
- function $n(e, a, n, o, i, r) {
5629
- const p = V("router-link");
5630
- return c(), l("form", {
6684
+ }, gi = /* @__PURE__ */ c("div", { class: "clear" }, null, -1), hi = { class: "forgot center-text pointer small-top" }, fi = /* @__PURE__ */ c("br", null, null, -1), ki = /* @__PURE__ */ c("div", { class: "clear" }, null, -1);
6685
+ function bi(e, t, r, u, l, d) {
6686
+ const h = de("router-link");
6687
+ return f(), k("form", {
5631
6688
  class: "page-login content-boxed content-boxed-padding",
5632
- onSubmit: a[12] || (a[12] = w((...s) => r.submit && r.submit(...s), ["prevent"])),
6689
+ onSubmit: t[12] || (t[12] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
5633
6690
  autocomplete: "on",
5634
- style: R(n.isModal ? "max-width: 500px;" : "")
6691
+ style: ce(r.isModal ? "max-width: 500px;" : "")
5635
6692
  }, [
5636
- n.isModal ? (c(), l("a", {
6693
+ r.isModal ? (f(), k("a", {
5637
6694
  key: 0,
5638
- onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
6695
+ onClick: t[0] || (t[0] = (...m) => d.close && d.close(...m)),
5639
6696
  class: "color-black pull-right pointer",
5640
6697
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5641
- }, Ja)) : h("", !0),
5642
- t("h1", en, d(e.ssoLang[this.appLanguage].register), 1),
5643
- t("p", an, [
5644
- i.usernameRegister ? (c(), l("span", nn, [
5645
- f(" t.link/" + d(i.username) + " " + d(e.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
5646
- tn
5647
- ])) : h("", !0)
6698
+ }, Ia)) : T("", !0),
6699
+ c("h1", Aa, y(e.ssoLang[this.appLanguage].register), 1),
6700
+ c("p", Pa, [
6701
+ l.usernameRegister ? (f(), k("span", ja, [
6702
+ I(" t.link/" + y(l.username) + " " + y(e.ssoLang[this.appLanguage].username_is_free) + " ✅ ", 1),
6703
+ xa
6704
+ ])) : T("", !0)
5648
6705
  ]),
5649
- i.emailLogin ? (c(), l("span", on, [
5650
- t("div", rn, [
5651
- sn,
5652
- k(t("input", {
5653
- "onUpdate:modelValue": a[1] || (a[1] = (s) => i.email = s),
5654
- onKeydown: a[2] || (a[2] = E(w(() => {
6706
+ l.emailLogin ? (f(), k("span", Ba, [
6707
+ c("div", Ma, [
6708
+ Ra,
6709
+ B(c("input", {
6710
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => l.email = m),
6711
+ onKeydown: t[2] || (t[2] = te(U(() => {
5655
6712
  }, ["prevent"]), ["space"])),
5656
6713
  type: "email",
5657
6714
  placeholder: e.ssoLang[this.appLanguage].email,
5658
6715
  name: "email",
5659
6716
  required: ""
5660
- }, null, 40, cn), [
5661
- [x, i.email]
6717
+ }, null, 40, qa), [
6718
+ [ae, l.email]
5662
6719
  ]),
5663
- ln
6720
+ Na
5664
6721
  ]),
5665
- t("div", dn, [
5666
- pn,
5667
- k(t("input", {
5668
- "onUpdate:modelValue": a[3] || (a[3] = (s) => i.username = s),
5669
- onKeydown: a[4] || (a[4] = E(w(() => {
6722
+ c("div", Ua, [
6723
+ Da,
6724
+ B(c("input", {
6725
+ "onUpdate:modelValue": t[3] || (t[3] = (m) => l.username = m),
6726
+ onKeydown: t[4] || (t[4] = te(U(() => {
5670
6727
  }, ["prevent"]), ["space"])),
5671
6728
  type: "text",
5672
6729
  autocorrect: "off",
@@ -5675,119 +6732,119 @@ function $n(e, a, n, o, i, r) {
5675
6732
  placeholder: e.ssoLang[this.appLanguage].username,
5676
6733
  name: "username",
5677
6734
  required: "",
5678
- disabled: i.usernameRegister,
5679
- class: b({ "input-disabled": i.usernameRegister })
5680
- }, null, 42, un), [
5681
- [x, i.username]
6735
+ disabled: l.usernameRegister,
6736
+ class: R({ "input-disabled": l.usernameRegister })
6737
+ }, null, 42, Oa), [
6738
+ [ae, l.username]
5682
6739
  ]),
5683
- _n
6740
+ Fa
5684
6741
  ]),
5685
- t("div", mn, [
5686
- gn,
5687
- k(t("input", {
5688
- "onUpdate:modelValue": a[5] || (a[5] = (s) => i.password = s),
5689
- type: i.revealPassword ? "text" : "password",
6742
+ c("div", Va, [
6743
+ Ka,
6744
+ B(c("input", {
6745
+ "onUpdate:modelValue": t[5] || (t[5] = (m) => l.password = m),
6746
+ type: l.revealPassword ? "text" : "password",
5690
6747
  placeholder: e.ssoLang[this.appLanguage].password,
5691
6748
  name: "password",
5692
6749
  required: "",
5693
6750
  minlength: "8"
5694
- }, null, 8, hn), [
5695
- [K, i.password]
6751
+ }, null, 8, $a), [
6752
+ [fe, l.password]
5696
6753
  ]),
5697
- t("em", {
5698
- onClick: a[6] || (a[6] = (s) => i.revealPassword = !i.revealPassword),
6754
+ c("em", {
6755
+ onClick: t[6] || (t[6] = (m) => l.revealPassword = !l.revealPassword),
5699
6756
  class: "pointer"
5700
6757
  }, [
5701
- k(t("img", fn, null, 512), [
5702
- [I, !i.revealPassword]
6758
+ B(c("img", Ha, null, 512), [
6759
+ [J, !l.revealPassword]
5703
6760
  ]),
5704
- k(t("img", vn, null, 512), [
5705
- [I, i.revealPassword]
6761
+ B(c("img", Qa, null, 512), [
6762
+ [J, l.revealPassword]
5706
6763
  ])
5707
6764
  ])
5708
6765
  ]),
5709
- t("button", kn, [
5710
- i.submitted ? (c(), l("span", yn)) : (c(), l("span", bn, d(i.formButtonText), 1))
6766
+ c("button", Ga, [
6767
+ l.submitted ? (f(), k("span", Ya)) : (f(), k("span", Wa, y(l.formButtonText), 1))
5711
6768
  ])
5712
- ])) : h("", !0),
5713
- wn,
5714
- e.displayAppleLogin ? (c(), l("a", {
6769
+ ])) : T("", !0),
6770
+ Xa,
6771
+ e.displayAppleLogin ? (f(), k("a", {
5715
6772
  key: 2,
5716
- onClick: a[7] || (a[7] = (...s) => e.appleLogin && e.appleLogin(...s)),
6773
+ onClick: t[7] || (t[7] = (...m) => e.appleLogin && e.appleLogin(...m)),
5717
6774
  class: "button-center button button-90 google-button pointer"
5718
6775
  }, [
5719
- zn,
5720
- e.appleLoad ? (c(), l("span", Sn)) : (c(), l("span", Ln, d(e.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
5721
- ])) : h("", !0),
5722
- t("a", {
5723
- onClick: a[8] || (a[8] = (...s) => e.googleLogin && e.googleLogin(...s)),
6776
+ Za,
6777
+ e.appleLoad ? (f(), k("span", ei)) : (f(), k("span", Ja, y(e.ssoLang[this.appLanguage].sign_up_with) + " Apple", 1))
6778
+ ])) : T("", !0),
6779
+ c("a", {
6780
+ onClick: t[8] || (t[8] = (...m) => e.googleLogin && e.googleLogin(...m)),
5724
6781
  class: "button-center button button-90 google-button pointer"
5725
6782
  }, [
5726
- Cn,
5727
- e.googleLoad ? (c(), l("span", jn)) : (c(), l("span", Tn, d(e.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
6783
+ ni,
6784
+ e.googleLoad ? (f(), k("span", ai)) : (f(), k("span", ti, y(e.ssoLang[this.appLanguage].sign_up_with) + " Google", 1))
5728
6785
  ]),
5729
- e.displayFacebookLogin ? (c(), l("a", {
6786
+ e.displayFacebookLogin ? (f(), k("a", {
5730
6787
  key: 3,
5731
- onClick: a[9] || (a[9] = (...s) => e.facebookLogin && e.facebookLogin(...s)),
6788
+ onClick: t[9] || (t[9] = (...m) => e.facebookLogin && e.facebookLogin(...m)),
5732
6789
  class: "button-center button button-90 google-button pointer"
5733
6790
  }, [
5734
- Pn,
5735
- e.facebookLoad ? (c(), l("span", In)) : (c(), l("span", An, d(e.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
5736
- ])) : h("", !0),
5737
- i.emailLogin ? h("", !0) : (c(), l("a", {
6791
+ ii,
6792
+ e.facebookLoad ? (f(), k("span", ri)) : (f(), k("span", oi, y(e.ssoLang[this.appLanguage].sign_up_with) + " Facebook", 1))
6793
+ ])) : T("", !0),
6794
+ l.emailLogin ? T("", !0) : (f(), k("a", {
5738
6795
  key: 4,
5739
- onClick: a[10] || (a[10] = (s) => i.emailLogin = !0),
6796
+ onClick: t[10] || (t[10] = (m) => l.emailLogin = !0),
5740
6797
  class: "button-center button button-90 google-button pointer"
5741
6798
  }, [
5742
- En,
5743
- t("span", null, d(e.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
6799
+ si,
6800
+ c("span", null, y(e.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
5744
6801
  ])),
5745
- xn,
5746
- t("p", qn, [
5747
- f(d(e.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
5748
- Mn,
5749
- t("a", Rn, d(e.ssoLang[this.appLanguage].terms_of_service), 1),
5750
- f(" " + d(e.ssoLang[this.appLanguage].and) + " ", 1),
5751
- t("a", Nn, d(e.ssoLang[this.appLanguage].privacy_policy), 1)
6802
+ ci,
6803
+ c("p", li, [
6804
+ I(y(e.ssoLang[this.appLanguage].terms_by_registering) + " ", 1),
6805
+ di,
6806
+ c("a", pi, y(e.ssoLang[this.appLanguage].terms_of_service), 1),
6807
+ I(" " + y(e.ssoLang[this.appLanguage].and) + " ", 1),
6808
+ c("a", ui, y(e.ssoLang[this.appLanguage].privacy_policy), 1)
5752
6809
  ]),
5753
- Vn,
5754
- n.isModal ? (c(), l("div", {
6810
+ _i,
6811
+ r.isModal ? (f(), k("div", {
5755
6812
  key: 6,
5756
6813
  class: "page-login-links",
5757
- onClick: a[11] || (a[11] = (...s) => r.loginAccountModal && r.loginAccountModal(...s))
6814
+ onClick: t[11] || (t[11] = (...m) => d.loginAccountModal && d.loginAccountModal(...m))
5758
6815
  }, [
5759
- t("a", Dn, [
5760
- f(d(e.ssoLang[this.appLanguage].or) + " ", 1),
5761
- Un,
5762
- f(" " + d(e.ssoLang[this.appLanguage].sign_in_with_new), 1)
6816
+ c("a", hi, [
6817
+ I(y(e.ssoLang[this.appLanguage].or) + " ", 1),
6818
+ fi,
6819
+ I(" " + y(e.ssoLang[this.appLanguage].sign_in_with_new), 1)
5763
6820
  ]),
5764
- Kn
5765
- ])) : (c(), l("div", On, [
5766
- v(p, {
6821
+ ki
6822
+ ])) : (f(), k("div", mi, [
6823
+ j(h, {
5767
6824
  class: "create float-right",
5768
6825
  to: "/verify"
5769
6826
  }, {
5770
- default: j(() => [
5771
- f(d(e.ssoLang[this.appLanguage].verify_account), 1)
6827
+ default: G(() => [
6828
+ I(y(e.ssoLang[this.appLanguage].verify_account), 1)
5772
6829
  ]),
5773
6830
  _: 1
5774
6831
  }),
5775
- v(p, {
6832
+ j(h, {
5776
6833
  class: "forgot float-left",
5777
6834
  to: "/login"
5778
6835
  }, {
5779
- default: j(() => [
5780
- f(d(e.ssoLang[this.appLanguage].sign_in), 1)
6836
+ default: G(() => [
6837
+ I(y(e.ssoLang[this.appLanguage].sign_in), 1)
5781
6838
  ]),
5782
6839
  _: 1
5783
6840
  }),
5784
- Bn
6841
+ gi
5785
6842
  ]))
5786
6843
  ], 36);
5787
6844
  }
5788
- const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
6845
+ const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
5789
6846
  name: "AuthVerify",
5790
- mixins: [z],
6847
+ mixins: [D],
5791
6848
  props: {
5792
6849
  isModal: {
5793
6850
  type: Boolean,
@@ -5810,7 +6867,7 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5810
6867
  },
5811
6868
  methods: {
5812
6869
  init() {
5813
- this.isLoggedIn ? this.$router.push(this.home) : (this.$storage.verifyEmail && (this.email = this.$storage.verifyEmail), this.$route.hash === "#reset" && (this.action = "reset"), this.$route.query.e && (this.email = this.$route.query.e), this.$route.query.c && (this.code = this.$route.query.c), u.$emit("ssoEvent", { name: "setLoading", data: !1 }));
6870
+ 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), v.$emit("ssoEvent", { name: "setLoading", data: !1 }));
5814
6871
  },
5815
6872
  async submit() {
5816
6873
  if (this.code.length !== 6)
@@ -5824,22 +6881,22 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5824
6881
  if (this.submitted)
5825
6882
  return !1;
5826
6883
  this.submitted = !0;
5827
- let a = await this.verify(e);
5828
- 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 = "", u.$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;
6884
+ let t = await this.verify(e);
6885
+ this.submitted = !1, t && t.data && t.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 = "", v.$emit("closeModal")), await this.loginSetup(t), this.getLoggedInAccounts(), this.$storage.verifyEmail = "", this.$router.push("/" + t.data.data.username + "#edit"), this.successSnack(this.ssoLang[this.appLanguage].verify_account_success2))) : this.submitted = !1;
5829
6886
  },
5830
6887
  registerAccountModal() {
5831
- u.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
6888
+ v.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
5832
6889
  },
5833
6890
  close() {
5834
- u.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
6891
+ v.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
5835
6892
  }
5836
6893
  },
5837
6894
  watch: {
5838
6895
  "$storage.verifyEmail"(e) {
5839
6896
  e && (this.email = e);
5840
6897
  },
5841
- "route.name"(e, a) {
5842
- !a && e && this.init();
6898
+ "route.name"(e, t) {
6899
+ !t && e && this.init();
5843
6900
  },
5844
6901
  "route.query": {
5845
6902
  handler(e) {
@@ -5848,135 +6905,135 @@ const ve = /* @__PURE__ */ T(Ya, [["render", $n]]), Hn = {
5848
6905
  deep: !0
5849
6906
  }
5850
6907
  }
5851
- }, C = (e) => (O("data-v-af1531aa"), e = e(), B(), e), Fn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
5852
- /* @__PURE__ */ t("img", {
6908
+ }, K = (e) => (pe("data-v-af1531aa"), e = e(), ue(), e), yi = /* @__PURE__ */ K(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
6909
+ /* @__PURE__ */ c("img", {
5853
6910
  src: "https://cdn.tapni.co/icons/down-arrow.png",
5854
6911
  class: "responsive-image",
5855
6912
  style: { width: "35%" }
5856
6913
  })
5857
- ], -1)), Qn = [
5858
- Fn
5859
- ], Gn = {
6914
+ ], -1)), wi = [
6915
+ yi
6916
+ ], zi = {
5860
6917
  class: "bold no-bottom center-text",
5861
6918
  style: { "margin-top": "63px" }
5862
- }, Wn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("p", { class: "half-bottom half-top center-text color-black" }, null, -1)), Xn = { class: "page-login-field half-top" }, Yn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5863
- /* @__PURE__ */ t("img", {
6919
+ }, Li = /* @__PURE__ */ K(() => /* @__PURE__ */ c("p", { class: "half-bottom half-top center-text color-black" }, null, -1)), Ci = { class: "page-login-field half-top" }, Si = /* @__PURE__ */ K(() => /* @__PURE__ */ c("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
6920
+ /* @__PURE__ */ c("img", {
5864
6921
  src: "https://cdn.tapni.co/icons/mail.png",
5865
6922
  class: "responsive-image",
5866
6923
  style: { width: "80%" }
5867
6924
  })
5868
- ], -1)), Zn = ["placeholder"], Jn = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), et = { class: "page-login-field half-top" }, at = /* @__PURE__ */ C(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
5869
- /* @__PURE__ */ t("img", {
6925
+ ], -1)), Ti = ["placeholder"], Ei = /* @__PURE__ */ K(() => /* @__PURE__ */ c("em", null, null, -1)), Ii = { class: "page-login-field half-top" }, Ai = /* @__PURE__ */ K(() => /* @__PURE__ */ c("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
6926
+ /* @__PURE__ */ c("img", {
5870
6927
  src: "https://cdn.tapni.co/icons/password2.png",
5871
6928
  class: "responsive-image",
5872
6929
  style: { width: "100%" }
5873
6930
  })
5874
- ], -1)), nt = ["placeholder"], tt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("em", null, null, -1)), it = {
6931
+ ], -1)), Pi = ["placeholder"], ji = /* @__PURE__ */ K(() => /* @__PURE__ */ c("em", null, null, -1)), xi = {
5875
6932
  type: "submit",
5876
6933
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
5877
- }, ot = {
6934
+ }, Bi = {
5878
6935
  key: 0,
5879
6936
  class: "uppercase"
5880
- }, rt = {
6937
+ }, Mi = {
5881
6938
  key: 1,
5882
6939
  class: "button--loading button__loader"
5883
- }, st = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), ct = { class: "close-text center-text half-top color-black" }, lt = ["innerHTML"], dt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("a", { href: "mailto:support@tapni.com?subject=Email Verification" }, " support@tapni.com", -1)), pt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1)), ut = {
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 = {
5884
6941
  key: 1,
5885
6942
  class: "page-login-links"
5886
- }, _t = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), mt = { class: "forgot center-text pointer small-top" }, gt = /* @__PURE__ */ C(() => /* @__PURE__ */ t("br", null, null, -1)), ht = /* @__PURE__ */ C(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1));
5887
- function ft(e, a, n, o, i, r) {
5888
- const p = V("router-link");
5889
- return c(), l("form", {
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));
6944
+ function Hi(e, t, r, u, l, d) {
6945
+ const h = de("router-link");
6946
+ return f(), k("form", {
5890
6947
  class: "page-login content-boxed content-boxed-padding",
5891
- onSubmit: a[6] || (a[6] = w((...s) => r.submit && r.submit(...s), ["prevent"])),
5892
- style: R(n.isModal ? "max-width: 500px;" : "")
6948
+ onSubmit: t[6] || (t[6] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
6949
+ style: ce(r.isModal ? "max-width: 500px;" : "")
5893
6950
  }, [
5894
- n.isModal ? (c(), l("a", {
6951
+ r.isModal ? (f(), k("a", {
5895
6952
  key: 0,
5896
- onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
6953
+ onClick: t[0] || (t[0] = (...m) => d.close && d.close(...m)),
5897
6954
  class: "color-black pull-right pointer",
5898
6955
  style: { "margin-top": "0px", position: "absolute", right: "-20px", "text-align": "right" }
5899
- }, Qn)) : h("", !0),
5900
- t("h1", Gn, d(e.ssoLang[this.appLanguage].verify_account), 1),
5901
- Wn,
5902
- t("div", Xn, [
5903
- Yn,
5904
- k(t("input", {
6956
+ }, wi)) : T("", !0),
6957
+ c("h1", zi, y(e.ssoLang[this.appLanguage].verify_account), 1),
6958
+ Li,
6959
+ c("div", Ci, [
6960
+ Si,
6961
+ B(c("input", {
5905
6962
  id: "emailInput",
5906
- "onUpdate:modelValue": a[1] || (a[1] = (s) => i.email = s),
5907
- onKeydown: a[2] || (a[2] = E(w(() => {
6963
+ "onUpdate:modelValue": t[1] || (t[1] = (m) => l.email = m),
6964
+ onKeydown: t[2] || (t[2] = te(U(() => {
5908
6965
  }, ["prevent"]), ["space"])),
5909
6966
  type: "email",
5910
6967
  placeholder: e.ssoLang[this.appLanguage].email,
5911
6968
  required: ""
5912
- }, null, 40, Zn), [
5913
- [x, i.email]
6969
+ }, null, 40, Ti), [
6970
+ [ae, l.email]
5914
6971
  ]),
5915
- Jn
6972
+ Ei
5916
6973
  ]),
5917
- t("div", et, [
5918
- at,
5919
- k(t("input", {
6974
+ c("div", Ii, [
6975
+ Ai,
6976
+ B(c("input", {
5920
6977
  id: "codeInput",
5921
- "onUpdate:modelValue": a[3] || (a[3] = (s) => i.code = s),
5922
- onKeydown: a[4] || (a[4] = E(w(() => {
6978
+ "onUpdate:modelValue": t[3] || (t[3] = (m) => l.code = m),
6979
+ onKeydown: t[4] || (t[4] = te(U(() => {
5923
6980
  }, ["prevent"]), ["space"])),
5924
6981
  type: "tel",
5925
6982
  placeholder: e.ssoLang[this.appLanguage].code,
5926
6983
  required: ""
5927
- }, null, 40, nt), [
5928
- [x, i.code]
6984
+ }, null, 40, Pi), [
6985
+ [ae, l.code]
5929
6986
  ]),
5930
- tt
6987
+ ji
5931
6988
  ]),
5932
- t("button", it, [
5933
- i.submitted ? (c(), l("span", rt)) : (c(), l("span", ot, d(e.ssoLang[this.appLanguage].verify_account), 1))
6989
+ c("button", xi, [
6990
+ l.submitted ? (f(), k("span", Mi)) : (f(), k("span", Bi, y(e.ssoLang[this.appLanguage].verify_account), 1))
5934
6991
  ]),
5935
- st,
5936
- t("p", ct, [
5937
- t("span", {
6992
+ Ri,
6993
+ c("p", qi, [
6994
+ c("span", {
5938
6995
  innerHTML: e.ssoLang[this.appLanguage].verify_account_p1
5939
- }, null, 8, lt),
5940
- dt
6996
+ }, null, 8, Ni),
6997
+ Ui
5941
6998
  ]),
5942
- pt,
5943
- n.isModal ? (c(), l("div", {
6999
+ Di,
7000
+ r.isModal ? (f(), k("div", {
5944
7001
  key: 2,
5945
7002
  class: "page-login-links",
5946
- onClick: a[5] || (a[5] = (...s) => r.registerAccountModal && r.registerAccountModal(...s))
7003
+ onClick: t[5] || (t[5] = (...m) => d.registerAccountModal && d.registerAccountModal(...m))
5947
7004
  }, [
5948
- t("a", mt, [
5949
- f(d(e.ssoLang[this.appLanguage].or) + " ", 1),
5950
- gt,
5951
- f(" " + d(e.ssoLang[this.appLanguage].create_new_account), 1)
7005
+ c("a", Vi, [
7006
+ I(y(e.ssoLang[this.appLanguage].or) + " ", 1),
7007
+ Ki,
7008
+ I(" " + y(e.ssoLang[this.appLanguage].create_new_account), 1)
5952
7009
  ]),
5953
- ht
5954
- ])) : (c(), l("div", ut, [
5955
- v(p, {
7010
+ $i
7011
+ ])) : (f(), k("div", Oi, [
7012
+ j(h, {
5956
7013
  class: "create float-right",
5957
7014
  to: "/register"
5958
7015
  }, {
5959
- default: j(() => [
5960
- f(d(e.ssoLang[this.appLanguage].register), 1)
7016
+ default: G(() => [
7017
+ I(y(e.ssoLang[this.appLanguage].register), 1)
5961
7018
  ]),
5962
7019
  _: 1
5963
7020
  }),
5964
- v(p, {
7021
+ j(h, {
5965
7022
  class: "forgot float-left",
5966
7023
  to: "/login"
5967
7024
  }, {
5968
- default: j(() => [
5969
- f(d(e.ssoLang[this.appLanguage].sign_in), 1)
7025
+ default: G(() => [
7026
+ I(y(e.ssoLang[this.appLanguage].sign_in), 1)
5970
7027
  ]),
5971
7028
  _: 1
5972
7029
  }),
5973
- _t
7030
+ Fi
5974
7031
  ]))
5975
7032
  ], 36);
5976
7033
  }
5977
- const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-af1531aa"]]), vt = {
7034
+ const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa"]]), Qi = {
5978
7035
  name: "AuthReset",
5979
- mixins: [z],
7036
+ mixins: [D],
5980
7037
  data() {
5981
7038
  return {
5982
7039
  loading: !0,
@@ -5992,7 +7049,7 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-af1531aa
5992
7049
  };
5993
7050
  },
5994
7051
  mounted() {
5995
- this.$storage.verifyEmail && (this.email = this.$storage.verifyEmail), this.$route.query.c && (this.code = this.$route.query.c, this.passwordChange = !0), this.$route.query.e && (this.email = this.$route.query.e), u.$emit("ssoEvent", { name: "setLoading", data: !1 });
7052
+ 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), v.$emit("ssoEvent", { name: "setLoading", data: !1 });
5996
7053
  },
5997
7054
  methods: {
5998
7055
  async resetEmail() {
@@ -6019,8 +7076,8 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-af1531aa
6019
7076
  password: this.password,
6020
7077
  passwordRepeat: this.passwordRepeat,
6021
7078
  captchaToken: await this.getCaptchaToken("password_reset")
6022
- }, a = await this.changePassword(e);
6023
- this.submitted = !1, a === !0 && (this.$router.push("/login"), this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success));
7079
+ }, t = await this.changePassword(e);
7080
+ this.submitted = !1, t === !0 && (this.$router.push("/login"), this.successSnack(this.ssoLang[this.appLanguage].password_reseted_success));
6024
7081
  }
6025
7082
  },
6026
7083
  watch: {
@@ -6028,192 +7085,192 @@ const ke = /* @__PURE__ */ T(Hn, [["render", ft], ["__scopeId", "data-v-af1531aa
6028
7085
  this.$storage.verifyEmail = e;
6029
7086
  }
6030
7087
  }
6031
- }, A = (e) => (O("data-v-4f85b89a"), e = e(), B(), e), kt = {
7088
+ }, X = (e) => (pe("data-v-4f85b89a"), e = e(), ue(), e), Gi = {
6032
7089
  class: "bold no-bottom center-text",
6033
7090
  style: { "margin-top": "63px" }
6034
- }, bt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("p", { class: "half-bottom small-top center-text color-black" }, null, -1)), yt = { class: "page-login-field half-top color-black" }, wt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
6035
- /* @__PURE__ */ t("img", {
7091
+ }, Wi = /* @__PURE__ */ X(() => /* @__PURE__ */ c("p", { class: "half-bottom small-top center-text color-black" }, null, -1)), Yi = { class: "page-login-field half-top color-black" }, Xi = /* @__PURE__ */ X(() => /* @__PURE__ */ c("i", { style: { "padding-top": "15px", "margin-left": "10px" } }, [
7092
+ /* @__PURE__ */ c("img", {
6036
7093
  src: "https://cdn.tapni.co/icons/mail.png",
6037
7094
  class: "responsive-image",
6038
7095
  style: { width: "80%" }
6039
7096
  })
6040
- ], -1)), zt = ["placeholder"], Lt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("em", null, null, -1)), St = {
7097
+ ], -1)), Zi = ["placeholder"], Ji = /* @__PURE__ */ X(() => /* @__PURE__ */ c("em", null, null, -1)), eo = {
6041
7098
  type: "submit",
6042
7099
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
6043
- }, Ct = {
7100
+ }, no = {
6044
7101
  key: 0,
6045
7102
  class: "uppercase"
6046
- }, Tt = {
7103
+ }, to = {
6047
7104
  key: 1,
6048
7105
  class: "button--loading button__loader"
6049
- }, jt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pt = { class: "close-text center-text half-top color-black" }, At = ["innerHTML"], It = ["href"], Et = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), xt = { class: "page-login-links" }, qt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "clear" }, null, -1)), Mt = {
7106
+ }, ao = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), io = { class: "close-text center-text half-top color-black" }, oo = ["innerHTML"], ro = ["href"], so = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), co = { class: "page-login-links" }, lo = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "clear" }, null, -1)), po = {
6050
7107
  class: "bold no-bottom center-text",
6051
7108
  style: { "margin-top": "63px" }
6052
- }, Rt = { class: "half-bottom small-top center-text color-black" }, Nt = { class: "page-login-field half-top" }, Vt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6053
- /* @__PURE__ */ t("img", {
7109
+ }, uo = { class: "half-bottom small-top center-text color-black" }, _o = { class: "page-login-field half-top" }, mo = /* @__PURE__ */ X(() => /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
7110
+ /* @__PURE__ */ c("img", {
6054
7111
  src: "https://cdn.tapni.co/icons/padlock.png",
6055
7112
  class: "responsive-image",
6056
7113
  style: { width: "50%" }
6057
7114
  })
6058
- ], -1)), Ot = ["type", "placeholder"], Bt = {
7115
+ ], -1)), go = ["type", "placeholder"], ho = {
6059
7116
  src: "https://cdn.tapni.co/icons/reveal-password.png",
6060
7117
  class: "responsive-image password-reveal-icon"
6061
- }, Dt = {
7118
+ }, fo = {
6062
7119
  src: "https://cdn.tapni.co/icons/hide-password.png",
6063
7120
  class: "responsive-image password-reveal-icon"
6064
- }, Ut = { class: "page-login-field half-top" }, Kt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("i", { style: { "padding-top": "15px" } }, [
6065
- /* @__PURE__ */ t("img", {
7121
+ }, ko = { class: "page-login-field half-top" }, bo = /* @__PURE__ */ X(() => /* @__PURE__ */ c("i", { style: { "padding-top": "15px" } }, [
7122
+ /* @__PURE__ */ c("img", {
6066
7123
  src: "https://cdn.tapni.co/icons/padlock.png",
6067
7124
  class: "responsive-image",
6068
7125
  style: { width: "50%" }
6069
7126
  })
6070
- ], -1)), $t = ["type", "placeholder"], Ht = {
7127
+ ], -1)), vo = ["type", "placeholder"], yo = {
6071
7128
  src: "https://cdn.tapni.co/icons/reveal-password.png",
6072
7129
  class: "responsive-image password-reveal-icon"
6073
- }, Ft = {
7130
+ }, wo = {
6074
7131
  src: "https://cdn.tapni.co/icons/hide-password.png",
6075
7132
  class: "responsive-image password-reveal-icon"
6076
- }, Qt = {
7133
+ }, zo = {
6077
7134
  type: "submit",
6078
7135
  class: "button black-button google-button bg-tapni-grey button-90 button-center uppercase bold full-top"
6079
- }, Gt = {
7136
+ }, Lo = {
6080
7137
  key: 0,
6081
7138
  class: "uppercase"
6082
- }, Wt = {
7139
+ }, Co = {
6083
7140
  key: 1,
6084
7141
  class: "button--loading button__loader"
6085
- }, Xt = /* @__PURE__ */ A(() => /* @__PURE__ */ t("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Yt = { class: "close-text center-text half-top color-black" }, Zt = ["innerHTML"], Jt = ["href"];
6086
- function ei(e, a, n, o, i, r) {
6087
- const p = V("router-link");
6088
- return i.passwordChange ? (c(), l("form", {
7142
+ }, So = /* @__PURE__ */ X(() => /* @__PURE__ */ c("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), To = { class: "close-text center-text half-top color-black" }, Eo = ["innerHTML"], Io = ["href"];
7143
+ function Ao(e, t, r, u, l, d) {
7144
+ const h = de("router-link");
7145
+ return l.passwordChange ? (f(), k("form", {
6089
7146
  key: 1,
6090
7147
  class: "page-login content-boxed content-boxed-padding",
6091
- onSubmit: a[7] || (a[7] = w((...s) => r.changePw && r.changePw(...s), ["prevent"]))
7148
+ onSubmit: t[7] || (t[7] = U((...m) => d.changePw && d.changePw(...m), ["prevent"]))
6092
7149
  }, [
6093
- t("h3", Mt, d(e.ssoLang[this.appLanguage].password_change), 1),
6094
- t("p", Rt, d(e.ssoLang[this.appLanguage].password_new), 1),
6095
- t("div", Nt, [
6096
- Vt,
6097
- k(t("input", {
6098
- "onUpdate:modelValue": a[3] || (a[3] = (s) => i.password = s),
6099
- type: i.revealPassword ? "text" : "password",
7150
+ c("h3", po, y(e.ssoLang[this.appLanguage].password_change), 1),
7151
+ c("p", uo, y(e.ssoLang[this.appLanguage].password_new), 1),
7152
+ c("div", _o, [
7153
+ mo,
7154
+ B(c("input", {
7155
+ "onUpdate:modelValue": t[3] || (t[3] = (m) => l.password = m),
7156
+ type: l.revealPassword ? "text" : "password",
6100
7157
  placeholder: e.ssoLang[this.appLanguage].password,
6101
7158
  required: ""
6102
- }, null, 8, Ot), [
6103
- [K, i.password]
7159
+ }, null, 8, go), [
7160
+ [fe, l.password]
6104
7161
  ]),
6105
- t("em", {
6106
- onClick: a[4] || (a[4] = (s) => i.revealPassword = !i.revealPassword)
7162
+ c("em", {
7163
+ onClick: t[4] || (t[4] = (m) => l.revealPassword = !l.revealPassword)
6107
7164
  }, [
6108
- k(t("img", Bt, null, 512), [
6109
- [I, !i.revealPassword]
7165
+ B(c("img", ho, null, 512), [
7166
+ [J, !l.revealPassword]
6110
7167
  ]),
6111
- k(t("img", Dt, null, 512), [
6112
- [I, i.revealPassword]
7168
+ B(c("img", fo, null, 512), [
7169
+ [J, l.revealPassword]
6113
7170
  ])
6114
7171
  ])
6115
7172
  ]),
6116
- t("div", Ut, [
6117
- Kt,
6118
- k(t("input", {
6119
- "onUpdate:modelValue": a[5] || (a[5] = (s) => i.passwordRepeat = s),
6120
- type: i.revealPassword2 ? "text" : "password",
7173
+ c("div", ko, [
7174
+ bo,
7175
+ B(c("input", {
7176
+ "onUpdate:modelValue": t[5] || (t[5] = (m) => l.passwordRepeat = m),
7177
+ type: l.revealPassword2 ? "text" : "password",
6121
7178
  placeholder: e.ssoLang[this.appLanguage].password_repeat,
6122
7179
  required: ""
6123
- }, null, 8, $t), [
6124
- [K, i.passwordRepeat]
7180
+ }, null, 8, vo), [
7181
+ [fe, l.passwordRepeat]
6125
7182
  ]),
6126
- t("em", {
6127
- onClick: a[6] || (a[6] = (s) => i.revealPassword2 = !i.revealPassword2)
7183
+ c("em", {
7184
+ onClick: t[6] || (t[6] = (m) => l.revealPassword2 = !l.revealPassword2)
6128
7185
  }, [
6129
- k(t("img", Ht, null, 512), [
6130
- [I, !i.revealPassword2]
7186
+ B(c("img", yo, null, 512), [
7187
+ [J, !l.revealPassword2]
6131
7188
  ]),
6132
- k(t("img", Ft, null, 512), [
6133
- [I, i.revealPassword2]
7189
+ B(c("img", wo, null, 512), [
7190
+ [J, l.revealPassword2]
6134
7191
  ])
6135
7192
  ])
6136
7193
  ]),
6137
- t("button", Qt, [
6138
- i.submitted ? (c(), l("span", Wt)) : (c(), l("span", Gt, d(e.ssoLang[this.appLanguage].password_change), 1))
7194
+ c("button", zo, [
7195
+ l.submitted ? (f(), k("span", Co)) : (f(), k("span", Lo, y(e.ssoLang[this.appLanguage].password_change), 1))
6139
7196
  ]),
6140
- Xt,
6141
- t("p", Yt, [
6142
- t("span", {
7197
+ So,
7198
+ c("p", To, [
7199
+ c("span", {
6143
7200
  innerHTML: e.ssoLang[this.appLanguage].reset_password_p2
6144
- }, null, 8, Zt),
6145
- f(),
6146
- t("a", {
7201
+ }, null, 8, Eo),
7202
+ I(),
7203
+ c("a", {
6147
7204
  href: "mailto:support@tapni.com?subject=" + e.ssoLang[this.appLanguage].password_reset_t
6148
- }, " support@tapni.com", 8, Jt)
7205
+ }, " support@tapni.com", 8, Io)
6149
7206
  ])
6150
- ], 32)) : (c(), l("form", {
7207
+ ], 32)) : (f(), k("form", {
6151
7208
  key: 0,
6152
7209
  class: "page-login content-boxed content-boxed-padding",
6153
- onSubmit: a[2] || (a[2] = w((...s) => r.resetEmail && r.resetEmail(...s), ["prevent"])),
7210
+ onSubmit: t[2] || (t[2] = U((...m) => d.resetEmail && d.resetEmail(...m), ["prevent"])),
6154
7211
  autocomplete: "on"
6155
7212
  }, [
6156
- t("h3", kt, d(e.ssoLang[this.appLanguage].reset_password), 1),
6157
- bt,
6158
- t("div", yt, [
6159
- wt,
6160
- k(t("input", {
7213
+ c("h3", Gi, y(e.ssoLang[this.appLanguage].reset_password), 1),
7214
+ Wi,
7215
+ c("div", Yi, [
7216
+ Xi,
7217
+ B(c("input", {
6161
7218
  id: "emailInput",
6162
- "onUpdate:modelValue": a[0] || (a[0] = (s) => i.email = s),
6163
- onKeydown: a[1] || (a[1] = E(w(() => {
7219
+ "onUpdate:modelValue": t[0] || (t[0] = (m) => l.email = m),
7220
+ onKeydown: t[1] || (t[1] = te(U(() => {
6164
7221
  }, ["prevent"]), ["space"])),
6165
7222
  type: "email",
6166
7223
  placeholder: e.ssoLang[this.appLanguage].email,
6167
7224
  required: ""
6168
- }, null, 40, zt), [
6169
- [x, i.email]
7225
+ }, null, 40, Zi), [
7226
+ [ae, l.email]
6170
7227
  ]),
6171
- Lt
7228
+ Ji
6172
7229
  ]),
6173
- t("button", St, [
6174
- i.submitted ? (c(), l("span", Tt)) : (c(), l("span", Ct, d(e.ssoLang[this.appLanguage].reset_password), 1))
7230
+ c("button", eo, [
7231
+ l.submitted ? (f(), k("span", to)) : (f(), k("span", no, y(e.ssoLang[this.appLanguage].reset_password), 1))
6175
7232
  ]),
6176
- jt,
6177
- t("p", Pt, [
6178
- t("span", {
7233
+ ao,
7234
+ c("p", io, [
7235
+ c("span", {
6179
7236
  innerHTML: e.ssoLang[this.appLanguage].reset_password_p1
6180
- }, null, 8, At),
6181
- t("a", {
7237
+ }, null, 8, oo),
7238
+ c("a", {
6182
7239
  href: "mailto:support@tapni.com?subject=" + e.ssoLang[this.appLanguage].password_reset_t
6183
- }, " support@tapni.com", 8, It)
7240
+ }, " support@tapni.com", 8, ro)
6184
7241
  ]),
6185
- Et,
6186
- t("div", xt, [
6187
- v(p, {
7242
+ so,
7243
+ c("div", co, [
7244
+ j(h, {
6188
7245
  class: "create float-right",
6189
7246
  to: "/verify"
6190
7247
  }, {
6191
- default: j(() => [
6192
- f(d(e.ssoLang[this.appLanguage].verify_account), 1)
7248
+ default: G(() => [
7249
+ I(y(e.ssoLang[this.appLanguage].verify_account), 1)
6193
7250
  ]),
6194
7251
  _: 1
6195
7252
  }),
6196
- v(p, {
7253
+ j(h, {
6197
7254
  class: "forgot float-left",
6198
7255
  to: "/login"
6199
7256
  }, {
6200
- default: j(() => [
6201
- f(d(e.ssoLang[this.appLanguage].sign_in), 1)
7257
+ default: G(() => [
7258
+ I(y(e.ssoLang[this.appLanguage].sign_in), 1)
6202
7259
  ]),
6203
7260
  _: 1
6204
7261
  }),
6205
- qt
7262
+ lo
6206
7263
  ])
6207
7264
  ], 32));
6208
7265
  }
6209
- const be = /* @__PURE__ */ T(vt, [["render", ei], ["__scopeId", "data-v-4f85b89a"]]), ai = {
7266
+ const bn = /* @__PURE__ */ $(Qi, [["render", Ao], ["__scopeId", "data-v-4f85b89a"]]), Po = {
6210
7267
  name: "AuthCallback",
6211
- mixins: [Q, G, z],
7268
+ mixins: [ye, ze, D],
6212
7269
  data() {
6213
7270
  return {};
6214
7271
  },
6215
7272
  async mounted() {
6216
- if (this.$route.path === "/callback/auth" && this.exchangeAuthCode({
7273
+ if (console.log("ee"), this.$route.path === "/callback/auth" && this.exchangeAuthCode({
6217
7274
  code: this.$route.query.code
6218
7275
  }), this.$route.path === "/callback/okta")
6219
7276
  return await this.handleOktaRedirect();
@@ -6222,65 +7279,65 @@ const be = /* @__PURE__ */ T(vt, [["render", ei], ["__scopeId", "data-v-4f85b89a
6222
7279
  },
6223
7280
  methods: {
6224
7281
  inAppRedirect() {
6225
- let e = Me(location.href);
7282
+ let e = tt(location.href);
6226
7283
  return e = e.replace("http", "tapni"), e = e.replace("https", "tapni"), window.open(e);
6227
7284
  }
6228
7285
  }
6229
- }, ni = {
7286
+ }, jo = { class: "page-login content-boxed content-boxed-padding" }, xo = {
6230
7287
  key: 0,
6231
7288
  style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
6232
- }, ti = /* @__PURE__ */ t("br", null, null, -1), ii = {
7289
+ }, Bo = /* @__PURE__ */ c("br", null, null, -1), Mo = {
6233
7290
  key: 1,
6234
7291
  style: { "text-align": "center", width: "80%", margin: "0 auto", "margin-top": "260px" }
6235
7292
  };
6236
- function oi(e, a, n, o, i, r) {
6237
- return c(), l("div", null, [
6238
- (e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (c(), l("h5", ni, [
6239
- f(d(e.ssoLang[this.appLanguage].you_will_be_redirected), 1),
6240
- ti,
6241
- f(" " + d(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
6242
- t("span", {
6243
- onClick: a[0] || (a[0] = (...p) => r.inAppRedirect && r.inAppRedirect(...p)),
7293
+ function Ro(e, t, r, u, l, d) {
7294
+ return f(), k("div", jo, [
7295
+ (e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (f(), k("h5", xo, [
7296
+ I(y(e.ssoLang[this.appLanguage].you_will_be_redirected), 1),
7297
+ Bo,
7298
+ I(" " + y(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
7299
+ c("span", {
7300
+ onClick: t[0] || (t[0] = (...h) => d.inAppRedirect && d.inAppRedirect(...h)),
6244
7301
  style: { color: "blue", cursor: "pointer" }
6245
- }, d(e.ssoLang[this.appLanguage].click_here), 1),
6246
- f(".")
6247
- ])) : (c(), l("h4", ii, d(e.ssoLang[this.appLanguage].please_wait), 1))
7302
+ }, y(e.ssoLang[this.appLanguage].click_here), 1),
7303
+ I(".")
7304
+ ])) : (f(), k("h4", Mo, y(e.ssoLang[this.appLanguage].please_wait), 1))
6248
7305
  ]);
6249
7306
  }
6250
- const ye = /* @__PURE__ */ T(ai, [["render", oi]]), ri = {
7307
+ const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
6251
7308
  name: "ModalOverlay",
6252
- mixins: [z],
7309
+ mixins: [D],
6253
7310
  data() {
6254
7311
  return {
6255
7312
  toggle: !1
6256
7313
  };
6257
7314
  },
6258
7315
  mounted() {
6259
- u.$on("closeModal", () => {
7316
+ v.$on("closeModal", () => {
6260
7317
  this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
6261
- }), u.$on("openModalOverlay", () => {
7318
+ }), v.$on("openModalOverlay", () => {
6262
7319
  this.toggle = !0;
6263
- }), u.$on("toggleLanguageModal", this.toggleModal), u.$on("toggleSSOModal", this.toggleModal), u.$on("toggleSSOPickModal", this.toggleModal);
7320
+ }), v.$on("toggleLanguageModal", this.toggleModal), v.$on("toggleSSOModal", this.toggleModal), v.$on("toggleSSOPickModal", this.toggleModal);
6264
7321
  },
6265
7322
  methods: {
6266
7323
  toggleModal(e = !0) {
6267
7324
  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"));
6268
7325
  },
6269
7326
  toggleEmit() {
6270
- var e, a;
6271
- !this.isLoggedIn && ((a = (e = this.user) == null ? void 0 : e.lead_form) != null && a.forceFilling) || u.$emit("closeModal");
7327
+ var e, t;
7328
+ !this.isLoggedIn && ((t = (e = this.user) == null ? void 0 : e.lead_form) != null && t.forceFilling) || v.$emit("closeModal");
6272
7329
  }
6273
7330
  }
6274
7331
  };
6275
- function si(e, a, n, o, i, r) {
6276
- return c(), l("div", {
6277
- class: b({ "pointer delete-menu": !0, "delete-menu-active": i.toggle }),
6278
- onClick: a[0] || (a[0] = (...p) => r.toggleEmit && r.toggleEmit(...p))
7332
+ function No(e, t, r, u, l, d) {
7333
+ return f(), k("div", {
7334
+ class: R({ "pointer delete-menu": !0, "delete-menu-active": l.toggle }),
7335
+ onClick: t[0] || (t[0] = (...h) => d.toggleEmit && d.toggleEmit(...h))
6279
7336
  }, null, 2);
6280
7337
  }
6281
- const we = /* @__PURE__ */ T(ri, [["render", si], ["__scopeId", "data-v-a128c2fa"]]), ci = {
7338
+ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
6282
7339
  name: "SSO",
6283
- mixins: [F, Q, G, z],
7340
+ mixins: [ve, ye, ze, D],
6284
7341
  data() {
6285
7342
  return {
6286
7343
  toggle: !1,
@@ -6289,16 +7346,16 @@ const we = /* @__PURE__ */ T(ri, [["render", si], ["__scopeId", "data-v-a128c2fa
6289
7346
  };
6290
7347
  },
6291
7348
  mounted() {
6292
- u.$on("toggleSSOModal", this.toggleModal), u.$on("closeModal", () => {
7349
+ v.$on("toggleSSOModal", this.toggleModal), v.$on("closeModal", () => {
6293
7350
  this.toggle = !1;
6294
7351
  });
6295
7352
  },
6296
7353
  beforeDestroy() {
6297
- u._events.toggleSSOModal.pop();
7354
+ v._events.toggleSSOModal.pop();
6298
7355
  },
6299
7356
  methods: {
6300
7357
  forceClose() {
6301
- u.$emit("closeModal");
7358
+ v.$emit("closeModal");
6302
7359
  },
6303
7360
  close() {
6304
7361
  this.toggleModal();
@@ -6307,10 +7364,10 @@ const we = /* @__PURE__ */ T(ri, [["render", si], ["__scopeId", "data-v-a128c2fa
6307
7364
  this.loading = !0;
6308
7365
  const e = await this.getCompanyBySSOEmail({ email: this.email });
6309
7366
  this.loading = !1;
6310
- let a;
7367
+ let t;
6311
7368
  if (!(!e || e.error))
6312
- if (a = Object.keys(e.sso), a.length)
6313
- 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(), u.$emit("toggleSSOPickModal", {
7369
+ if (t = Object.keys(e.sso), t.length)
7370
+ t.length <= 1 ? (t[0] === "azure" && this.microsoftLogin("sso", e.sso.azure.sso), t[0] === "okta" && this.oktaLogin(e.sso.okta.sso), t[0] === "saml" && this.samlLogin(e.sso.saml.sso.loginUrl)) : (this.forceClose(), v.$emit("toggleSSOPickModal", {
6314
7371
  sso: e.sso,
6315
7372
  email: this.email
6316
7373
  }));
@@ -6321,38 +7378,38 @@ const we = /* @__PURE__ */ T(ri, [["render", si], ["__scopeId", "data-v-a128c2fa
6321
7378
  this.toggle = !this.toggle;
6322
7379
  }
6323
7380
  }
6324
- }, li = (e) => (O("data-v-11f19a09"), e = e(), B(), e), di = /* @__PURE__ */ li(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6325
- /* @__PURE__ */ t("img", {
7381
+ }, Do = (e) => (pe("data-v-11f19a09"), e = e(), ue(), e), Oo = /* @__PURE__ */ Do(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7382
+ /* @__PURE__ */ c("img", {
6326
7383
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6327
7384
  class: "responsive-image",
6328
7385
  style: { width: "45%" }
6329
7386
  })
6330
- ], -1)), pi = [
6331
- di
6332
- ], ui = { class: "bold center-text color-black half-top half-bottom" }, _i = ["placeholder"], mi = {
7387
+ ], -1)), Fo = [
7388
+ Oo
7389
+ ], Vo = { class: "bold center-text color-black half-top half-bottom" }, Ko = ["placeholder"], $o = {
6333
7390
  type: "submit",
6334
7391
  class: "button black-button white-button button-full",
6335
7392
  style: { margin: "0 auto", "margin-top": "25px", "margin-bottom": "30px" }
6336
- }, gi = { key: 0 }, hi = {
7393
+ }, Ho = { key: 0 }, Qo = {
6337
7394
  key: 1,
6338
7395
  class: "button--loading button__loader"
6339
7396
  };
6340
- function fi(e, a, n, o, i, r) {
6341
- return c(), l("form", {
6342
- onSubmit: a[3] || (a[3] = w((...p) => r.submit && r.submit(...p), ["prevent"])),
6343
- class: b(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": i.toggle }]),
7397
+ function Go(e, t, r, u, l, d) {
7398
+ return f(), k("form", {
7399
+ onSubmit: t[3] || (t[3] = U((...h) => d.submit && d.submit(...h), ["prevent"])),
7400
+ class: R(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": l.toggle }]),
6344
7401
  style: { height: "auto", "margin-top": "-172.5px" }
6345
7402
  }, [
6346
- t("a", {
6347
- onClick: a[0] || (a[0] = (...p) => r.forceClose && r.forceClose(...p)),
7403
+ c("a", {
7404
+ onClick: t[0] || (t[0] = (...h) => d.forceClose && d.forceClose(...h)),
6348
7405
  class: "color-black pull-right pointer",
6349
7406
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6350
- }, pi),
6351
- t("h3", ui, d(e.ssoLang[e.appLanguage].enter_company_email), 1),
6352
- t("div", null, [
6353
- k(t("input", {
7407
+ }, Fo),
7408
+ c("h3", Vo, y(e.ssoLang[e.appLanguage].enter_company_email), 1),
7409
+ c("div", null, [
7410
+ B(c("input", {
6354
7411
  type: "text",
6355
- "onUpdate:modelValue": a[1] || (a[1] = (p) => i.email = p),
7412
+ "onUpdate:modelValue": t[1] || (t[1] = (h) => l.email = h),
6356
7413
  placeholder: e.ssoLang[this.appLanguage].email,
6357
7414
  autocomplete: "off",
6358
7415
  autocorrect: "off",
@@ -6361,20 +7418,20 @@ function fi(e, a, n, o, i, r) {
6361
7418
  class: "edit-input h-40 lh-40",
6362
7419
  style: { width: "80%" },
6363
7420
  required: "",
6364
- onKeydown: a[2] || (a[2] = E(w(() => {
7421
+ onKeydown: t[2] || (t[2] = te(U(() => {
6365
7422
  }, ["prevent"]), ["space"]))
6366
- }, null, 40, _i), [
6367
- [x, i.email]
7423
+ }, null, 40, Ko), [
7424
+ [ae, l.email]
6368
7425
  ])
6369
7426
  ]),
6370
- t("button", mi, [
6371
- i.loading ? (c(), l("span", hi)) : (c(), l("span", gi, d(e.ssoLang[e.appLanguage].continue), 1))
7427
+ c("button", $o, [
7428
+ l.loading ? (f(), k("span", Qo)) : (f(), k("span", Ho, y(e.ssoLang[e.appLanguage].continue), 1))
6372
7429
  ])
6373
7430
  ], 34);
6374
7431
  }
6375
- const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-11f19a09"]]), vi = {
7432
+ const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09"]]), Wo = {
6376
7433
  name: "SSOPick",
6377
- mixins: [F, Q, G, z],
7434
+ mixins: [ve, ye, ze, D],
6378
7435
  data() {
6379
7436
  return {
6380
7437
  toggle: !1,
@@ -6386,16 +7443,16 @@ const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-11f19a09
6386
7443
  };
6387
7444
  },
6388
7445
  mounted() {
6389
- u.$on("toggleSSOPickModal", this.toggleModal), u.$on("closeModal", () => {
7446
+ v.$on("toggleSSOPickModal", this.toggleModal), v.$on("closeModal", () => {
6390
7447
  this.toggle = !1;
6391
7448
  });
6392
7449
  },
6393
7450
  beforeDestroy() {
6394
- u._events.toggleSSOPickModal.pop();
7451
+ v._events.toggleSSOPickModal.pop();
6395
7452
  },
6396
7453
  methods: {
6397
7454
  forceClose() {
6398
- u.$emit("closeModal");
7455
+ v.$emit("closeModal");
6399
7456
  },
6400
7457
  close() {
6401
7458
  this.toggleModal();
@@ -6407,76 +7464,76 @@ const ze = /* @__PURE__ */ T(ci, [["render", fi], ["__scopeId", "data-v-11f19a09
6407
7464
  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;
6408
7465
  }
6409
7466
  }
6410
- }, W = (e) => (O("data-v-4f821f65"), e = e(), B(), e), ki = /* @__PURE__ */ W(() => /* @__PURE__ */ t("i", { class: "font-17 color-black" }, [
6411
- /* @__PURE__ */ t("img", {
7467
+ }, Le = (e) => (pe("data-v-4f821f65"), e = e(), ue(), e), Yo = /* @__PURE__ */ Le(() => /* @__PURE__ */ c("i", { class: "font-17 color-black" }, [
7468
+ /* @__PURE__ */ c("img", {
6412
7469
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6413
7470
  class: "responsive-image",
6414
7471
  style: { width: "45%" }
6415
7472
  })
6416
- ], -1)), bi = [
6417
- ki
6418
- ], yi = { class: "bold center-text color-black half-top half-bottom" }, wi = /* @__PURE__ */ W(() => /* @__PURE__ */ t("img", {
7473
+ ], -1)), Xo = [
7474
+ Yo
7475
+ ], Zo = { class: "bold center-text color-black half-top half-bottom" }, Jo = /* @__PURE__ */ Le(() => /* @__PURE__ */ c("img", {
6419
7476
  src: "https://cdn.tapni.co/icons/azure.png",
6420
7477
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6421
- }, null, -1)), zi = { key: 0 }, Li = {
7478
+ }, null, -1)), er = { key: 0 }, nr = {
6422
7479
  key: 1,
6423
7480
  class: "button--loading button__loader"
6424
- }, Si = /* @__PURE__ */ W(() => /* @__PURE__ */ t("img", {
7481
+ }, tr = /* @__PURE__ */ Le(() => /* @__PURE__ */ c("img", {
6425
7482
  src: "https://cdn.tapni.co/icons/okta.png",
6426
7483
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6427
- }, null, -1)), Ci = { key: 0 }, Ti = {
7484
+ }, null, -1)), ar = { key: 0 }, ir = {
6428
7485
  key: 1,
6429
7486
  class: "button--loading button__loader"
6430
- }, ji = /* @__PURE__ */ W(() => /* @__PURE__ */ t("img", {
7487
+ }, or = /* @__PURE__ */ Le(() => /* @__PURE__ */ c("img", {
6431
7488
  src: "https://cdn.tapni.co/icons/saml.png",
6432
7489
  style: { position: "absolute", "margin-left": "-11px", padding: "8px 0", height: "100%" }
6433
- }, null, -1)), Pi = { key: 0 }, Ai = {
7490
+ }, null, -1)), rr = { key: 0 }, sr = {
6434
7491
  key: 1,
6435
7492
  class: "button--loading button__loader"
6436
7493
  };
6437
- function Ii(e, a, n, o, i, r) {
6438
- var p, s, _;
6439
- return c(), l("form", {
6440
- onSubmit: a[4] || (a[4] = w(() => {
7494
+ function cr(e, t, r, u, l, d) {
7495
+ var h, m, b;
7496
+ return f(), k("form", {
7497
+ onSubmit: t[4] || (t[4] = U(() => {
6441
7498
  }, ["prevent"])),
6442
- class: b(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": i.toggle }]),
7499
+ class: R(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": l.toggle }]),
6443
7500
  style: { height: "auto", "margin-top": "-172.5px" }
6444
7501
  }, [
6445
- t("a", {
6446
- onClick: a[0] || (a[0] = (...L) => r.forceClose && r.forceClose(...L)),
7502
+ c("a", {
7503
+ onClick: t[0] || (t[0] = (...C) => d.forceClose && d.forceClose(...C)),
6447
7504
  class: "color-black pull-right pointer",
6448
7505
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6449
- }, bi),
6450
- t("h3", yi, d(e.ssoLang[e.appLanguage].select_sign_method), 1),
6451
- (p = i.sso) != null && p.azure ? (c(), l("a", {
7506
+ }, Xo),
7507
+ c("h3", Zo, y(e.ssoLang[e.appLanguage].select_sign_method), 1),
7508
+ (h = l.sso) != null && h.azure ? (f(), k("a", {
6452
7509
  key: 0,
6453
- onClick: a[1] || (a[1] = (L) => r.ssoLogin("azure")),
7510
+ onClick: t[1] || (t[1] = (C) => d.ssoLogin("azure")),
6454
7511
  class: "button-center button black-button button-90 google-button pointer"
6455
7512
  }, [
6456
- wi,
6457
- i.azureLoad ? (c(), l("span", Li)) : (c(), l("span", zi, d(e.ssoLang[e.appLanguage].sign_in_with) + " Azure", 1))
6458
- ])) : h("", !0),
6459
- (s = i.sso) != null && s.okta ? (c(), l("a", {
7513
+ Jo,
7514
+ l.azureLoad ? (f(), k("span", nr)) : (f(), k("span", er, y(e.ssoLang[e.appLanguage].sign_in_with) + " Azure", 1))
7515
+ ])) : T("", !0),
7516
+ (m = l.sso) != null && m.okta ? (f(), k("a", {
6460
7517
  key: 1,
6461
- onClick: a[2] || (a[2] = (L) => r.ssoLogin("okta")),
7518
+ onClick: t[2] || (t[2] = (C) => d.ssoLogin("okta")),
6462
7519
  class: "button-center button black-button button-90 google-button pointer"
6463
7520
  }, [
6464
- Si,
6465
- i.oktaLoad ? (c(), l("span", Ti)) : (c(), l("span", Ci, d(e.ssoLang[e.appLanguage].sign_in_with) + " Okta", 1))
6466
- ])) : h("", !0),
6467
- (_ = i.sso) != null && _.saml ? (c(), l("a", {
7521
+ tr,
7522
+ l.oktaLoad ? (f(), k("span", ir)) : (f(), k("span", ar, y(e.ssoLang[e.appLanguage].sign_in_with) + " Okta", 1))
7523
+ ])) : T("", !0),
7524
+ (b = l.sso) != null && b.saml ? (f(), k("a", {
6468
7525
  key: 2,
6469
- onClick: a[3] || (a[3] = (L) => r.ssoLogin("saml")),
7526
+ onClick: t[3] || (t[3] = (C) => d.ssoLogin("saml")),
6470
7527
  class: "button-center button black-button button-90 google-button pointer"
6471
7528
  }, [
6472
- ji,
6473
- i.samlLoad ? (c(), l("span", Ai)) : (c(), l("span", Pi, d(e.ssoLang[e.appLanguage].sign_in_with) + " SAML", 1))
6474
- ])) : h("", !0)
7529
+ or,
7530
+ l.samlLoad ? (f(), k("span", sr)) : (f(), k("span", rr, y(e.ssoLang[e.appLanguage].sign_in_with) + " SAML", 1))
7531
+ ])) : T("", !0)
6475
7532
  ], 34);
6476
7533
  }
6477
- const Le = /* @__PURE__ */ T(vi, [["render", Ii], ["__scopeId", "data-v-4f821f65"]]), Ei = {
7534
+ const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65"]]), lr = {
6478
7535
  name: "LinkIcon",
6479
- mixins: [z],
7536
+ mixins: [D],
6480
7537
  props: {
6481
7538
  linkAdding: {
6482
7539
  type: Boolean,
@@ -6546,229 +7603,229 @@ const Le = /* @__PURE__ */ T(vi, [["render", Ii], ["__scopeId", "data-v-4f821f65
6546
7603
  }
6547
7604
  },
6548
7605
  methods: {}
6549
- }, xi = ["src", "alt"], qi = ["src", "alt"], Mi = ["src", "alt"], Ri = ["src", "alt"];
6550
- function Ni(e, a, n, o, i, r) {
6551
- var p, s;
6552
- return c(), l("a", {
6553
- class: b(["disable-select", n.linkStyle + (n.disabled ? " opacity-50" : "")]),
6554
- style: R(
6555
- (n.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
7606
+ }, dr = ["src", "alt"], pr = ["src", "alt"], ur = ["src", "alt"], _r = ["src", "alt"];
7607
+ function mr(e, t, r, u, l, d) {
7608
+ var h, m;
7609
+ return f(), k("a", {
7610
+ class: R(["disable-select", r.linkStyle + (r.disabled ? " opacity-50" : "")]),
7611
+ style: ce(
7612
+ (r.editing ? "cursor: move" : "cursor: pointer") + "!important; overflow: visible;"
6556
7613
  )
6557
7614
  }, [
6558
- t("span", {
6559
- class: b({
7615
+ c("span", {
7616
+ class: R({
6560
7617
  "user-link-img": !0,
6561
- "pulse pulse-border": n.pulse,
6562
- "link-drag": n.editing
7618
+ "pulse pulse-border": r.pulse,
7619
+ "link-drag": r.editing
6563
7620
  }),
6564
- style: R({ ...(p = n.customLinkStyle) == null ? void 0 : p.linkIcon })
7621
+ style: ce({ ...(h = r.customLinkStyle) == null ? void 0 : h.linkIcon })
6565
7622
  }, [
6566
- !n.data.custom_icon && n.data.type !== "customlink" ? (c(), l("img", {
7623
+ !r.data.custom_icon && r.data.type !== "customlink" ? (f(), k("img", {
6567
7624
  key: 0,
6568
- src: "https://cdn.tapni.co/icons/" + n.data.type + ".png",
7625
+ src: "https://cdn.tapni.co/icons/" + r.data.type + ".png",
6569
7626
  class: "responsive-image",
6570
- alt: n.data.text,
6571
- onLoad: a[0] || (a[0] = (_) => e.$emit("loaded")),
6572
- onError: a[1] || (a[1] = (_) => e.$emit("loaded"))
6573
- }, null, 40, xi)) : !n.data.custom_icon && n.data.type === "customlink" && n.linkAdding ? (c(), l("img", {
7627
+ alt: r.data.text,
7628
+ onLoad: t[0] || (t[0] = (b) => e.$emit("loaded")),
7629
+ onError: t[1] || (t[1] = (b) => e.$emit("loaded"))
7630
+ }, null, 40, dr)) : !r.data.custom_icon && r.data.type === "customlink" && r.linkAdding ? (f(), k("img", {
6574
7631
  key: 1,
6575
7632
  src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
6576
7633
  class: "responsive-image",
6577
- alt: n.data.text,
6578
- onLoad: a[2] || (a[2] = (_) => e.$emit("loaded")),
6579
- onError: a[3] || (a[3] = (_) => e.$emit("loaded"))
6580
- }, null, 40, qi)) : !n.data.custom_icon && n.data.type === "customlink" && !n.linkAdding ? (c(), l("img", {
7634
+ alt: r.data.text,
7635
+ onLoad: t[2] || (t[2] = (b) => e.$emit("loaded")),
7636
+ onError: t[3] || (t[3] = (b) => e.$emit("loaded"))
7637
+ }, null, 40, pr)) : !r.data.custom_icon && r.data.type === "customlink" && !r.linkAdding ? (f(), k("img", {
6581
7638
  key: 2,
6582
7639
  src: "https://cdn.tapni.co/icons/customlink.png",
6583
7640
  class: "responsive-image",
6584
- alt: n.data.text,
6585
- onLoad: a[4] || (a[4] = (_) => e.$emit("loaded")),
6586
- onError: a[5] || (a[5] = (_) => e.$emit("loaded"))
6587
- }, null, 40, Mi)) : (c(), l("img", {
7641
+ alt: r.data.text,
7642
+ onLoad: t[4] || (t[4] = (b) => e.$emit("loaded")),
7643
+ onError: t[5] || (t[5] = (b) => e.$emit("loaded"))
7644
+ }, null, 40, ur)) : (f(), k("img", {
6588
7645
  key: 3,
6589
- src: n.data.style.custom_icon,
7646
+ src: r.data.style.custom_icon,
6590
7647
  style: { "border-radius": "22.46%" },
6591
7648
  class: "responsive-image",
6592
- alt: n.data.text,
6593
- onLoad: a[6] || (a[6] = (_) => e.$emit("loaded")),
6594
- onError: a[7] || (a[7] = (_) => e.$emit("loaded"))
6595
- }, null, 40, Ri))
7649
+ alt: r.data.text,
7650
+ onLoad: t[6] || (t[6] = (b) => e.$emit("loaded")),
7651
+ onError: t[7] || (t[7] = (b) => e.$emit("loaded"))
7652
+ }, null, 40, _r))
6596
7653
  ], 6),
6597
- t("span", {
7654
+ c("span", {
6598
7655
  class: "link-text link-drag color-black",
6599
- style: R({ color: (s = n.customLinkStyle) == null ? void 0 : s.color })
6600
- }, d(r.linkText), 5)
7656
+ style: ce({ color: (m = r.customLinkStyle) == null ? void 0 : m.color })
7657
+ }, y(d.linkText), 5)
6601
7658
  ], 6);
6602
7659
  }
6603
- const Vi = /* @__PURE__ */ T(Ei, [["render", Ni]]), Oi = {
7660
+ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
6604
7661
  ANDROID_VERSION: "5.6",
6605
7662
  IOS_VERSION: "5.6",
6606
7663
  WEB_VERSION: "5.6.0",
6607
7664
  SUPPORTED_LANGUAGES: ["en", "de", "es", "kr", "it", "fr"],
6608
7665
  METAPIXEL_ID: "1203678696914368",
6609
7666
  GOOGLE_ANALYTICS_ID: ""
6610
- }, Bi = {
7667
+ }, fr = {
6611
7668
  name: "Language",
6612
- mixins: [z],
6613
- components: { LinkIcon: Vi },
7669
+ mixins: [D],
7670
+ components: { LinkIcon: gr },
6614
7671
  data() {
6615
7672
  return {
6616
7673
  toggle: !1
6617
7674
  };
6618
7675
  },
6619
7676
  async mounted() {
6620
- u.$on("toggleLanguageModal", this.toggleModal), u.$on("closeModal", () => {
7677
+ v.$on("toggleLanguageModal", this.toggleModal), v.$on("closeModal", () => {
6621
7678
  this.toggle = !1;
6622
7679
  });
6623
- let e = this.isNative ? await $.getLanguageCode() : N.getFirstBrowserLanguage();
6624
- e && Oi.SUPPORTED_LANGUAGES.includes(e) && this.updateLanguage(e);
7680
+ let e = this.isNative ? await ke.getLanguageCode() : le.getFirstBrowserLanguage();
7681
+ e && hr.SUPPORTED_LANGUAGES.includes(e) && this.updateLanguage(e);
6625
7682
  },
6626
7683
  beforeDestroy() {
6627
- u._events.toggleLanguageModal.pop();
7684
+ v._events.toggleLanguageModal.pop();
6628
7685
  },
6629
7686
  methods: {
6630
7687
  forceClose() {
6631
- u.$emit("closeModal");
7688
+ v.$emit("closeModal");
6632
7689
  },
6633
7690
  close() {
6634
7691
  this.forceClose();
6635
7692
  },
6636
7693
  async updateLanguage(e) {
6637
- u.$emit("updateLang", e), u.$emit("closeModal");
7694
+ v.$emit("updateLang", e), v.$emit("closeModal");
6638
7695
  },
6639
7696
  toggleModal() {
6640
7697
  this.toggle = !this.toggle;
6641
7698
  }
6642
7699
  }
6643
- }, Di = (e) => (O("data-v-34a6b7b2"), e = e(), B(), e), Ui = /* @__PURE__ */ Di(() => /* @__PURE__ */ t("i", { class: "font-17 fa color-black" }, [
6644
- /* @__PURE__ */ t("img", {
7700
+ }, kr = (e) => (pe("data-v-34a6b7b2"), e = e(), ue(), e), br = /* @__PURE__ */ kr(() => /* @__PURE__ */ c("i", { class: "font-17 fa color-black" }, [
7701
+ /* @__PURE__ */ c("img", {
6645
7702
  src: "https://cdn.tapni.co/icons/down-arrow.png",
6646
7703
  class: "fa responsive-image",
6647
7704
  style: { width: "45%" }
6648
7705
  })
6649
- ], -1)), Ki = [
6650
- Ui
6651
- ], $i = { class: "bold center-text color-black small-bottom" };
6652
- function Hi(e, a, n, o, i, r) {
6653
- const p = V("LinkIcon");
6654
- return c(), l("div", {
6655
- class: b(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": i.toggle }]),
7706
+ ], -1)), vr = [
7707
+ br
7708
+ ], yr = { class: "bold center-text color-black small-bottom" };
7709
+ function wr(e, t, r, u, l, d) {
7710
+ const h = de("LinkIcon");
7711
+ return f(), k("div", {
7712
+ class: R(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": l.toggle }]),
6656
7713
  style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
6657
7714
  }, [
6658
- t("a", {
6659
- onClick: a[0] || (a[0] = (...s) => r.close && r.close(...s)),
7715
+ c("a", {
7716
+ onClick: t[0] || (t[0] = (...m) => d.close && d.close(...m)),
6660
7717
  class: "color-black pull-right pointer",
6661
7718
  style: { "margin-top": "5px", position: "absolute", right: "5px" }
6662
- }, Ki),
6663
- t("h3", $i, d(e.ssoLang[e.appLanguage].app_language), 1),
6664
- v(p, {
6665
- onClick: a[1] || (a[1] = (s) => r.updateLanguage("en")),
7719
+ }, vr),
7720
+ c("h3", yr, y(e.ssoLang[e.appLanguage].app_language), 1),
7721
+ j(h, {
7722
+ onClick: t[1] || (t[1] = (m) => d.updateLanguage("en")),
6666
7723
  "link-style": "link-grid",
6667
7724
  data: { type: "lang/en", text: e.ssoLang[this.appLanguage].english },
6668
7725
  editing: !1,
6669
- class: b({ "add-button": !0 })
7726
+ class: R({ "add-button": !0 })
6670
7727
  }, null, 8, ["data"]),
6671
- v(p, {
6672
- onClick: a[2] || (a[2] = (s) => r.updateLanguage("es")),
7728
+ j(h, {
7729
+ onClick: t[2] || (t[2] = (m) => d.updateLanguage("es")),
6673
7730
  "link-style": "link-grid",
6674
7731
  data: { type: "lang/es", text: e.ssoLang[this.appLanguage].spanish },
6675
7732
  editing: !1,
6676
- class: b({ "add-button": !0 })
7733
+ class: R({ "add-button": !0 })
6677
7734
  }, null, 8, ["data"]),
6678
- v(p, {
6679
- onClick: a[3] || (a[3] = (s) => r.updateLanguage("de")),
7735
+ j(h, {
7736
+ onClick: t[3] || (t[3] = (m) => d.updateLanguage("de")),
6680
7737
  "link-style": "link-grid",
6681
7738
  data: { type: "lang/de", text: e.ssoLang[this.appLanguage].german },
6682
7739
  editing: !1,
6683
- class: b({ "add-button": !0 })
7740
+ class: R({ "add-button": !0 })
6684
7741
  }, null, 8, ["data"]),
6685
- v(p, {
6686
- onClick: a[4] || (a[4] = (s) => r.updateLanguage("it")),
7742
+ j(h, {
7743
+ onClick: t[4] || (t[4] = (m) => d.updateLanguage("it")),
6687
7744
  "link-style": "link-grid",
6688
7745
  data: { type: "lang/it", text: e.ssoLang[this.appLanguage].italian },
6689
7746
  editing: !1,
6690
- class: b({ "add-button": !0 })
7747
+ class: R({ "add-button": !0 })
6691
7748
  }, null, 8, ["data"]),
6692
- v(p, {
6693
- onClick: a[5] || (a[5] = (s) => r.updateLanguage("fr")),
7749
+ j(h, {
7750
+ onClick: t[5] || (t[5] = (m) => d.updateLanguage("fr")),
6694
7751
  "link-style": "link-grid",
6695
7752
  data: { type: "lang/fr", text: e.ssoLang[this.appLanguage].french },
6696
7753
  editing: !1,
6697
- class: b({ "add-button": !0 })
7754
+ class: R({ "add-button": !0 })
6698
7755
  }, null, 8, ["data"]),
6699
- v(p, {
6700
- onClick: a[6] || (a[6] = (s) => r.updateLanguage("kr")),
7756
+ j(h, {
7757
+ onClick: t[6] || (t[6] = (m) => d.updateLanguage("kr")),
6701
7758
  "link-style": "link-grid",
6702
7759
  data: { type: "lang/kr", text: e.ssoLang[this.appLanguage].korean },
6703
7760
  editing: !1,
6704
- class: b({ "add-button": !0 })
7761
+ class: R({ "add-button": !0 })
6705
7762
  }, null, 8, ["data"]),
6706
- v(p, {
6707
- onClick: a[7] || (a[7] = (s) => r.updateLanguage("sr")),
7763
+ j(h, {
7764
+ onClick: t[7] || (t[7] = (m) => d.updateLanguage("sr")),
6708
7765
  "link-style": "link-grid",
6709
7766
  data: { type: "lang/sr", text: e.ssoLang[this.appLanguage].serbian },
6710
7767
  editing: !1,
6711
- class: b({ "add-button": !0 })
7768
+ class: R({ "add-button": !0 })
6712
7769
  }, null, 8, ["data"]),
6713
- v(p, {
6714
- onClick: a[8] || (a[8] = (s) => r.updateLanguage("tr")),
7770
+ j(h, {
7771
+ onClick: t[8] || (t[8] = (m) => d.updateLanguage("tr")),
6715
7772
  "link-style": "link-grid",
6716
7773
  data: { type: "lang/tr", text: e.ssoLang[this.appLanguage].turkish },
6717
7774
  editing: !1,
6718
- class: b({ "add-button": !0 })
7775
+ class: R({ "add-button": !0 })
6719
7776
  }, null, 8, ["data"])
6720
7777
  ], 2);
6721
7778
  }
6722
- const Se = /* @__PURE__ */ T(Bi, [["render", Hi], ["__scopeId", "data-v-34a6b7b2"]]);
6723
- var Fi = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
6724
- const Qi = { id: "ssoapp" }, Gi = {
7779
+ const Ln = /* @__PURE__ */ $(fr, [["render", wr], ["__scopeId", "data-v-34a6b7b2"]]);
7780
+ var zr = { 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 };
7781
+ const Lr = { id: "ssoapp" }, Cr = {
6725
7782
  key: 0,
6726
7783
  href: "/",
6727
7784
  class: "header-logo"
6728
- }, Wi = /* @__PURE__ */ t("img", {
7785
+ }, Sr = /* @__PURE__ */ c("img", {
6729
7786
  src: "data:image/png;base64,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",
6730
7787
  onerror: "this.onerror=null;this.src='https://cdn.tapni.co/images/logo-dark.png';",
6731
7788
  class: "header-logo-img"
6732
- }, null, -1), Xi = [
6733
- Wi
6734
- ], Yi = { class: "lang-icon" }, Zi = {
7789
+ }, null, -1), Tr = [
7790
+ Sr
7791
+ ], Er = { class: "lang-icon" }, Ir = {
6735
7792
  class: "snackbar snackbar-boxed",
6736
7793
  id: "snackbar"
6737
- }, Ji = {
7794
+ }, Ar = {
6738
7795
  class: "snack-body",
6739
7796
  id: "errorSnack"
6740
- }, eo = { id: "errorMessage" }, ao = /* @__PURE__ */ t("img", {
7797
+ }, Pr = { id: "errorMessage" }, jr = /* @__PURE__ */ c("img", {
6741
7798
  src: "https://cdn.tapni.co/icons/notification-close.png",
6742
7799
  style: { width: "100%" }
6743
- }, null, -1), no = [
6744
- ao
6745
- ], to = {
7800
+ }, null, -1), xr = [
7801
+ jr
7802
+ ], Br = {
6746
7803
  class: "snack-body",
6747
7804
  id: "successSnack"
6748
- }, io = { id: "successMessage" }, oo = /* @__PURE__ */ t("img", {
7805
+ }, Mr = { id: "successMessage" }, Rr = /* @__PURE__ */ c("img", {
6749
7806
  src: "https://cdn.tapni.co/icons/notification-close.png",
6750
7807
  style: { width: "100%" }
6751
- }, null, -1), ro = [
6752
- oo
6753
- ], so = {
7808
+ }, null, -1), qr = [
7809
+ Rr
7810
+ ], Nr = {
6754
7811
  name: "TapniAuth",
6755
- mixins: [z],
7812
+ mixins: [D],
6756
7813
  data() {
6757
7814
  return {
6758
7815
  isSetup: !1
6759
7816
  };
6760
7817
  },
6761
7818
  components: {
6762
- Language: Se,
6763
- SSOPick: Le,
6764
- SSO: ze,
6765
- ModalOverlay: we,
6766
- AuthCallback: ye,
6767
- AuthReset: be,
6768
- AuthVerify: ke,
6769
- AuthRegister: ve,
6770
- AuthLogin: fe,
6771
- AuthWelcome: _e
7819
+ Language: Ln,
7820
+ SSOPick: zn,
7821
+ SSO: wn,
7822
+ ModalOverlay: yn,
7823
+ AuthCallback: vn,
7824
+ AuthReset: bn,
7825
+ AuthVerify: kn,
7826
+ AuthRegister: fn,
7827
+ AuthLogin: hn,
7828
+ AuthWelcome: dn
6772
7829
  },
6773
7830
  props: {
6774
7831
  view: {
@@ -6786,7 +7843,7 @@ const Qi = { id: "ssoapp" }, Gi = {
6786
7843
  }
6787
7844
  },
6788
7845
  async mounted() {
6789
- this.applyBgStyle(), u.$on("ssoEvent", this.ssoOutgoingEvent), u.$on("ssoLogout", (e) => this.logout(e)), u.$on("getLoggedInAccounts", (e) => this.getLoggedInAccounts(e)), u.$on("refreshTokenAction", (e) => this.refreshTokenAction(e));
7846
+ this.applyBgStyle(), v.$on("ssoEvent", this.ssoOutgoingEvent), v.$on("ssoLogout", (e) => this.logout(e)), v.$on("getLoggedInAccounts", (e) => this.getLoggedInAccounts(e)), v.$on("refreshTokenAction", (e) => this.refreshTokenAction(e));
6790
7847
  },
6791
7848
  methods: {
6792
7849
  async init() {
@@ -6800,13 +7857,13 @@ const Qi = { id: "ssoapp" }, Gi = {
6800
7857
  this.$emit("ssoEvent", e);
6801
7858
  },
6802
7859
  ssoIncomingEvent(e) {
6803
- u.$emit(e.name, e.data);
7860
+ v.$emit(e.name, e.data);
6804
7861
  },
6805
7862
  applyBgStyle() {
6806
7863
  this.display === "redirect" ? document.getElementsByTagName("html")[0].style = "background: #dfeefe;" : document.getElementsByTagName("html")[0].style = "";
6807
7864
  },
6808
7865
  toggleLanguageModal() {
6809
- u.$emit("toggleLanguageModal", !0);
7866
+ v.$emit("toggleLanguageModal", !0);
6810
7867
  }
6811
7868
  },
6812
7869
  watch: {
@@ -6814,59 +7871,59 @@ const Qi = { id: "ssoapp" }, Gi = {
6814
7871
  this.applyBgStyle();
6815
7872
  }
6816
7873
  }
6817
- }, ne = /* @__PURE__ */ Object.assign(so, {
7874
+ }, Ze = /* @__PURE__ */ Object.assign(Nr, {
6818
7875
  setup(e) {
6819
7876
  return document.addEventListener("DOMContentLoaded", function() {
6820
- const a = document.createElement("script");
6821
- a.src = `https://www.google.com/recaptcha/api.js?render=${Fi.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(a);
6822
- }), (a, n) => (c(), l("div", Qi, [
6823
- a.display === "redirect" ? (c(), l("a", Gi, Xi)) : h("", !0),
6824
- a.display === "redirect" ? (c(), l("a", {
7877
+ const t = document.createElement("script");
7878
+ t.src = `https://www.google.com/recaptcha/api.js?render=${zr.VITE_GOOGLE_RECAPTCHA_SITE_KEY}`, document.head.appendChild(t);
7879
+ }), (t, r) => (f(), k("div", Lr, [
7880
+ t.display === "redirect" ? (f(), k("a", Cr, Tr)) : T("", !0),
7881
+ t.display === "redirect" ? (f(), k("a", {
6825
7882
  key: 1,
6826
- onClick: n[0] || (n[0] = (...o) => a.toggleLanguageModal && a.toggleLanguageModal(...o)),
7883
+ onClick: r[0] || (r[0] = (...u) => t.toggleLanguageModal && t.toggleLanguageModal(...u)),
6827
7884
  class: "font-18 no-border pointer color-black",
6828
7885
  style: { position: "absolute", right: "20px", top: "-10px", "z-index": "1" }
6829
7886
  }, [
6830
- t("span", Yi, d(a.appLanguage.toUpperCase()), 1)
6831
- ])) : h("", !0),
6832
- v(we),
6833
- v(Se),
6834
- v(ze),
6835
- v(Le),
6836
- a.initialized && a.renderView === "AuthWelcome" ? (c(), P(_e, { key: 2 })) : a.initialized && a.renderView === "AuthLogin" ? (c(), P(fe, {
7887
+ c("span", Er, y(t.appLanguage.toUpperCase()), 1)
7888
+ ])) : T("", !0),
7889
+ j(yn),
7890
+ j(Ln),
7891
+ j(wn),
7892
+ j(zn),
7893
+ t.initialized && t.renderView === "AuthWelcome" ? (f(), Y(dn, { key: 2 })) : t.initialized && t.renderView === "AuthLogin" ? (f(), Y(hn, {
6837
7894
  key: 3,
6838
7895
  isModal: e.isModal
6839
- }, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthRegister" ? (c(), P(ve, {
7896
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthRegister" ? (f(), Y(fn, {
6840
7897
  key: 4,
6841
7898
  isModal: e.isModal
6842
- }, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthVerify" ? (c(), P(ke, {
7899
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthVerify" ? (f(), Y(kn, {
6843
7900
  key: 5,
6844
7901
  isModal: e.isModal
6845
- }, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(be, { key: 6 })) : a.initialized && a.renderView === "AuthCallback" ? (c(), P(ye, { key: 7 })) : (c(), P(Pe(Ae), { key: 8 })),
6846
- t("div", Zi, [
6847
- t("p", Ji, [
6848
- t("span", eo, d(a.ssoLang[a.appLanguage].error), 1),
6849
- t("a", {
6850
- onClick: n[1] || (n[1] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
7902
+ }, null, 8, ["isModal"])) : t.initialized && t.renderView === "AuthReset" ? (f(), Y(bn, { key: 6 })) : t.initialized && t.renderView === "AuthCallback" ? (f(), Y(vn, { key: 7 })) : (f(), Y(Yn(Xn), { key: 8 })),
7903
+ c("div", Ir, [
7904
+ c("p", Ar, [
7905
+ c("span", Pr, y(t.ssoLang[t.appLanguage].error), 1),
7906
+ c("a", {
7907
+ onClick: r[1] || (r[1] = (...u) => t.closeSnacks && t.closeSnacks(...u)),
6851
7908
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
6852
- }, no)
7909
+ }, xr)
6853
7910
  ]),
6854
- t("p", to, [
6855
- t("span", io, d(a.ssoLang[a.appLanguage].success), 1),
6856
- t("a", {
6857
- onClick: n[2] || (n[2] = (...o) => a.closeSnacks && a.closeSnacks(...o)),
7911
+ c("p", Br, [
7912
+ c("span", Mr, y(t.ssoLang[t.appLanguage].success), 1),
7913
+ c("a", {
7914
+ onClick: r[2] || (r[2] = (...u) => t.closeSnacks && t.closeSnacks(...u)),
6858
7915
  style: { position: "absolute", right: "10px", top: "10px", width: "50px", height: "50px" }
6859
- }, ro)
7916
+ }, qr)
6860
7917
  ])
6861
7918
  ])
6862
7919
  ]));
6863
7920
  }
6864
- }), Lo = {
6865
- TapniAuth: ne,
7921
+ }), ns = {
7922
+ TapniAuth: Ze,
6866
7923
  install: (e) => {
6867
- e.component("TapniAuth", ne);
7924
+ e.component("TapniAuth", Ze);
6868
7925
  }
6869
7926
  };
6870
7927
  export {
6871
- Lo as default
7928
+ ns as default
6872
7929
  };