@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.
- package/dist/TapniAuth.es.js +2224 -1167
- package/dist/TapniAuth.umd.js +15 -10
- package/package.json +3 -2
- package/src/mixins/auth.mixin.js +7 -2
- package/src/mixins/saml.mixin.js +4 -1
- package/src/routes.js +2 -1
- package/src/services/Api.js +10 -6
- package/src/views/Callback.vue +2 -1
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,186 +1,190 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { RouterView as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { jwtDecode as
|
|
6
|
-
import { Device as
|
|
7
|
-
import { Capacitor as
|
|
8
|
-
import { GoogleAuth as
|
|
9
|
-
import { FacebookLogin as
|
|
10
|
-
import { SignInWithApple as
|
|
11
|
-
import { MsAuthPlugin as
|
|
12
|
-
import { Browser as
|
|
13
|
-
import
|
|
14
|
-
import { sanitizeUrl as
|
|
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
|
|
17
|
-
const
|
|
18
|
-
let
|
|
19
|
-
location.hostname.includes("dev.") && (
|
|
20
|
-
let
|
|
21
|
-
baseURL:
|
|
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-" +
|
|
25
|
-
"X-Client-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
|
|
29
|
-
if (["post", "put", "delete"].includes(
|
|
30
|
-
...
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
},
|
|
47
|
+
}, d));
|
|
44
48
|
}
|
|
45
|
-
return
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
49
|
+
return d;
|
|
50
|
+
}), l;
|
|
51
|
+
}, re = {
|
|
48
52
|
getMe() {
|
|
49
|
-
return
|
|
53
|
+
return z(storage).get("/users/me");
|
|
50
54
|
},
|
|
51
|
-
getByUsername(e,
|
|
52
|
-
let
|
|
53
|
-
return e.dontTap && (
|
|
54
|
-
params:
|
|
55
|
-
headers: { "X-Referer":
|
|
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,
|
|
59
|
-
let
|
|
60
|
-
return e.dontTap && (
|
|
61
|
-
params:
|
|
62
|
-
headers: { "X-Referer":
|
|
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,
|
|
66
|
-
return
|
|
69
|
+
save(e, t) {
|
|
70
|
+
return z(t).put("/users", e);
|
|
67
71
|
},
|
|
68
|
-
newPassword(e,
|
|
69
|
-
return
|
|
72
|
+
newPassword(e, t) {
|
|
73
|
+
return z(t).put("/users/new-password", e);
|
|
70
74
|
},
|
|
71
|
-
connect(e,
|
|
72
|
-
return
|
|
75
|
+
connect(e, t) {
|
|
76
|
+
return z(t).post("/users/connect", e);
|
|
73
77
|
},
|
|
74
|
-
eventLog(e,
|
|
75
|
-
return
|
|
78
|
+
eventLog(e, t) {
|
|
79
|
+
return z(t).post("/users/log", e);
|
|
76
80
|
},
|
|
77
|
-
deleteAccount(e,
|
|
78
|
-
return
|
|
81
|
+
deleteAccount(e, t) {
|
|
82
|
+
return z(t).post("/users/profile/delete", e);
|
|
79
83
|
},
|
|
80
|
-
registerDevice(e,
|
|
81
|
-
return
|
|
84
|
+
registerDevice(e, t) {
|
|
85
|
+
return z(t).post("/users/device/register", e);
|
|
82
86
|
},
|
|
83
|
-
addFcmToken(e,
|
|
84
|
-
return
|
|
87
|
+
addFcmToken(e, t) {
|
|
88
|
+
return z(t).post("/users/device/fcm", e);
|
|
85
89
|
},
|
|
86
|
-
loginUsingQR(e,
|
|
87
|
-
return
|
|
90
|
+
loginUsingQR(e, t) {
|
|
91
|
+
return z(t).post("/users/qr/login", e);
|
|
88
92
|
}
|
|
89
|
-
},
|
|
90
|
-
registerDevice(e,
|
|
91
|
-
return
|
|
93
|
+
}, Xe = {
|
|
94
|
+
registerDevice(e, t) {
|
|
95
|
+
return z(t).post("/devices/add", e);
|
|
92
96
|
},
|
|
93
|
-
addFcmToken(e,
|
|
94
|
-
return
|
|
97
|
+
addFcmToken(e, t) {
|
|
98
|
+
return z(t).post("/devices/fcm/add", e);
|
|
95
99
|
}
|
|
96
100
|
};
|
|
97
|
-
let
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
register(e,
|
|
101
|
-
return e.device_id =
|
|
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,
|
|
104
|
-
return e.device_id =
|
|
107
|
+
login(e, t) {
|
|
108
|
+
return e.device_id = F, z(t).post("/users/login", e);
|
|
105
109
|
},
|
|
106
|
-
logout(e,
|
|
107
|
-
return e.device_id =
|
|
110
|
+
logout(e, t) {
|
|
111
|
+
return e.device_id = F, z(t).post("/users/logout", e);
|
|
108
112
|
},
|
|
109
|
-
refreshToken(e,
|
|
110
|
-
return
|
|
113
|
+
refreshToken(e, t) {
|
|
114
|
+
return z(t, !0).get(`/users/refresh-token?UserId=${e.id}&token=${e.refreshToken}`);
|
|
111
115
|
},
|
|
112
|
-
getLoggedInAccounts(e,
|
|
113
|
-
return
|
|
116
|
+
getLoggedInAccounts(e, t) {
|
|
117
|
+
return z(t).post("/users/tokens", e);
|
|
114
118
|
},
|
|
115
|
-
sendResetEmail(e,
|
|
116
|
-
return e.device_id =
|
|
119
|
+
sendResetEmail(e, t) {
|
|
120
|
+
return e.device_id = F, z(t).post("/users/reset", e);
|
|
117
121
|
},
|
|
118
|
-
changePassword(e,
|
|
119
|
-
return
|
|
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,
|
|
124
|
-
return
|
|
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
|
|
131
|
+
return z(e).get("/users/google/url");
|
|
128
132
|
},
|
|
129
|
-
google(e,
|
|
130
|
-
return e.device_id =
|
|
133
|
+
google(e, t) {
|
|
134
|
+
return e.device_id = F, z(t).post("/users/google", e);
|
|
131
135
|
},
|
|
132
|
-
facebook(e,
|
|
133
|
-
return e.device_id =
|
|
136
|
+
facebook(e, t) {
|
|
137
|
+
return e.device_id = F, z(t).post("/users/facebook", e);
|
|
134
138
|
},
|
|
135
|
-
googleSDK(e,
|
|
136
|
-
return e.device_id =
|
|
139
|
+
googleSDK(e, t) {
|
|
140
|
+
return e.device_id = F, z(t).post("/users/google/sdk", e);
|
|
137
141
|
},
|
|
138
|
-
facebookSDK(e,
|
|
139
|
-
return e.device_id =
|
|
142
|
+
facebookSDK(e, t) {
|
|
143
|
+
return e.device_id = F, z(t).post("/users/facebook/sdk", e);
|
|
140
144
|
},
|
|
141
|
-
appleSDK(e,
|
|
142
|
-
return e.device_id =
|
|
145
|
+
appleSDK(e, t) {
|
|
146
|
+
return e.device_id = F, z(t).post("/users/apple/sdk", e);
|
|
143
147
|
},
|
|
144
|
-
microsoftSDK(e,
|
|
145
|
-
return e.device_id =
|
|
148
|
+
microsoftSDK(e, t) {
|
|
149
|
+
return e.device_id = F, z(t).post("/users/microsoft/sdk", e);
|
|
146
150
|
},
|
|
147
|
-
oktaSDK(e,
|
|
148
|
-
return e.device_id =
|
|
151
|
+
oktaSDK(e, t) {
|
|
152
|
+
return e.device_id = F, z(t).post("/users/okta/sdk", e);
|
|
149
153
|
},
|
|
150
|
-
samlLoginUrl(e,
|
|
151
|
-
return
|
|
154
|
+
samlLoginUrl(e, t) {
|
|
155
|
+
return z(t).post("/saml/url", e);
|
|
152
156
|
},
|
|
153
|
-
exchangeAuthCode(e,
|
|
154
|
-
return
|
|
157
|
+
exchangeAuthCode(e, t) {
|
|
158
|
+
return z(t).post("/v1/users/auth-code", e);
|
|
155
159
|
}
|
|
156
|
-
},
|
|
157
|
-
getBySSOEmail(e,
|
|
158
|
-
return
|
|
160
|
+
}, xe = {
|
|
161
|
+
getBySSOEmail(e, t) {
|
|
162
|
+
return z(t).get(`/company/sso/${e}`);
|
|
159
163
|
},
|
|
160
|
-
acceptCompanyInvitation(e,
|
|
161
|
-
return
|
|
164
|
+
acceptCompanyInvitation(e, t) {
|
|
165
|
+
return z(t).get(`/users/invitation?ic=${e}`);
|
|
162
166
|
},
|
|
163
|
-
qrCodePooling(e,
|
|
164
|
-
return
|
|
167
|
+
qrCodePooling(e, t) {
|
|
168
|
+
return z(t).post("/company/login/qr", e);
|
|
165
169
|
}
|
|
166
|
-
},
|
|
167
|
-
$on(e,
|
|
168
|
-
let
|
|
169
|
-
|
|
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, ...
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
for (const
|
|
175
|
-
|
|
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,
|
|
178
|
-
const
|
|
179
|
-
|
|
181
|
+
$off(e, t) {
|
|
182
|
+
const r = he.get(e);
|
|
183
|
+
r && r.delete(t);
|
|
180
184
|
}
|
|
181
185
|
};
|
|
182
|
-
|
|
183
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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) ||
|
|
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 ||
|
|
4279
|
+
].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || me.getPlatform() === "ios";
|
|
4276
4280
|
},
|
|
4277
4281
|
isNative() {
|
|
4278
|
-
return
|
|
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
|
|
4287
|
-
|
|
4288
|
-
|
|
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
|
|
4293
|
-
|
|
4294
|
-
|
|
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
|
|
4308
|
-
if (e.hasOwnProperty(
|
|
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
|
|
4315
|
-
|
|
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 (
|
|
4321
|
-
return console.log(
|
|
4324
|
+
} catch (t) {
|
|
4325
|
+
return console.log(t), null;
|
|
4322
4326
|
}
|
|
4323
4327
|
}
|
|
4324
4328
|
}
|
|
4325
4329
|
};
|
|
4326
|
-
var
|
|
4327
|
-
const
|
|
4328
|
-
mixins: [
|
|
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:
|
|
4341
|
-
de:
|
|
4342
|
-
es:
|
|
4343
|
-
fr:
|
|
4344
|
-
it:
|
|
4345
|
-
sr:
|
|
4346
|
-
tr:
|
|
4347
|
-
cn:
|
|
4348
|
-
kr:
|
|
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),
|
|
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
|
|
4397
|
-
|
|
4398
|
-
|
|
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
|
|
4403
|
-
|
|
4404
|
-
|
|
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 [
|
|
4412
|
-
|
|
4415
|
+
const [t, r] = await L(
|
|
4416
|
+
re.eventLog(e, this.$storage)
|
|
4413
4417
|
);
|
|
4414
|
-
return
|
|
4418
|
+
return t ? this.errorHandler(t) : r;
|
|
4415
4419
|
},
|
|
4416
4420
|
async maintenance() {
|
|
4417
|
-
const [e,
|
|
4418
|
-
|
|
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 (
|
|
4423
|
-
let
|
|
4424
|
-
typeof
|
|
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
|
|
4430
|
-
if (e.username ? [
|
|
4431
|
-
|
|
4432
|
-
) : e.serial && ([
|
|
4433
|
-
|
|
4434
|
-
)),
|
|
4435
|
-
return this.errorHandler(
|
|
4436
|
-
if (
|
|
4437
|
-
if (!
|
|
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("/" +
|
|
4444
|
+
return this.$router.push("/" + r.data.showDemoProfile);
|
|
4441
4445
|
}
|
|
4442
|
-
!
|
|
4443
|
-
|
|
4444
|
-
), this.setUser(
|
|
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
|
|
4450
|
-
e.data.refreshToken && this.setRefreshToken(e.data.refreshToken), e.data.token && this.setToken(e.data.token), ((
|
|
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 [
|
|
4464
|
-
|
|
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 (
|
|
4474
|
+
if (t && t.response && t.response.data.error === "ACCESS_DENIED")
|
|
4471
4475
|
return this.logout(!1), location.reload();
|
|
4472
|
-
|
|
4476
|
+
r && r.data ? this.setToken(r.data.token) : console.error("Invalid response setToken");
|
|
4473
4477
|
},
|
|
4474
4478
|
async login(e) {
|
|
4475
|
-
const [
|
|
4476
|
-
if (
|
|
4477
|
-
return this.errorHandler(
|
|
4478
|
-
if (
|
|
4479
|
-
return this.display === "npm" && (this.loginSetup({ ...
|
|
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
|
-
(
|
|
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((
|
|
4490
|
-
var
|
|
4491
|
-
(
|
|
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
|
-
|
|
4497
|
+
t
|
|
4494
4498
|
);
|
|
4495
|
-
}) : this.display === "npm" && (
|
|
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 [
|
|
4499
|
-
|
|
4502
|
+
const [t, r] = await L(
|
|
4503
|
+
N.register(e, this.$storage)
|
|
4500
4504
|
);
|
|
4501
|
-
return
|
|
4505
|
+
return t ? this.errorHandler(t) : r;
|
|
4502
4506
|
},
|
|
4503
4507
|
async verify(e) {
|
|
4504
|
-
const [
|
|
4505
|
-
return
|
|
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 [
|
|
4509
|
-
|
|
4512
|
+
const [t, r] = await L(
|
|
4513
|
+
N.sendResetEmail(e, this.$storage)
|
|
4510
4514
|
);
|
|
4511
|
-
if (
|
|
4512
|
-
return this.errorHandler(
|
|
4513
|
-
|
|
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
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
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 [
|
|
4523
|
-
|
|
4527
|
+
const [t, r] = await L(
|
|
4528
|
+
N.changePassword(e, this.$storage)
|
|
4524
4529
|
);
|
|
4525
|
-
return
|
|
4530
|
+
return t ? this.errorHandler(t) : r.data.success;
|
|
4526
4531
|
},
|
|
4527
4532
|
async newPassword(e) {
|
|
4528
|
-
const [
|
|
4529
|
-
|
|
4533
|
+
const [t, r] = await L(
|
|
4534
|
+
re.newPassword(e, this.$storage)
|
|
4530
4535
|
);
|
|
4531
|
-
return
|
|
4536
|
+
return t ? this.errorHandler(t) : r.data.success;
|
|
4532
4537
|
},
|
|
4533
4538
|
async deleteAccount(e) {
|
|
4534
|
-
const [
|
|
4535
|
-
|
|
4539
|
+
const [t, r] = await L(
|
|
4540
|
+
re.deleteAccount(e, this.$storage)
|
|
4536
4541
|
);
|
|
4537
|
-
return
|
|
4542
|
+
return t ? this.errorHandler(t) : r.data.success;
|
|
4538
4543
|
},
|
|
4539
4544
|
async registerDevice() {
|
|
4540
|
-
const e = await
|
|
4541
|
-
let
|
|
4545
|
+
const e = await ke.getId(), t = await ke.getInfo();
|
|
4546
|
+
let r = {
|
|
4542
4547
|
device_id: e.uuid,
|
|
4543
|
-
platform:
|
|
4548
|
+
platform: t.platform,
|
|
4544
4549
|
device_info: {
|
|
4545
|
-
model:
|
|
4546
|
-
manufacturer:
|
|
4547
|
-
operatingSystem:
|
|
4548
|
-
osVersion:
|
|
4549
|
-
isVirtual:
|
|
4550
|
-
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 [
|
|
4554
|
-
|
|
4558
|
+
const [u, l] = await L(
|
|
4559
|
+
Xe.registerDevice(r, this.$storage)
|
|
4555
4560
|
);
|
|
4556
|
-
return
|
|
4561
|
+
return u ? this.errorHandler(u) : l;
|
|
4557
4562
|
},
|
|
4558
4563
|
async addFcmToken(e) {
|
|
4559
|
-
const [
|
|
4560
|
-
|
|
4564
|
+
const [t, r] = await L(
|
|
4565
|
+
Xe.addFcmToken(e, this.$storage)
|
|
4561
4566
|
);
|
|
4562
|
-
return
|
|
4567
|
+
return t ? this.errorHandler(t) : r;
|
|
4563
4568
|
},
|
|
4564
4569
|
async acceptCompanyInvitation(e) {
|
|
4565
|
-
const [
|
|
4566
|
-
|
|
4570
|
+
const [t, r] = await L(
|
|
4571
|
+
xe.acceptCompanyInvitation(e, this.$storage)
|
|
4567
4572
|
);
|
|
4568
|
-
return
|
|
4573
|
+
return t ? this.errorHandler(t) : r;
|
|
4569
4574
|
},
|
|
4570
4575
|
async logout(e = !0) {
|
|
4571
|
-
e &&
|
|
4572
|
-
this.loggedInAccounts[
|
|
4573
|
-
id: this.loggedInAccounts[
|
|
4574
|
-
}).then(() => (this.setLoggedInUserId(this.loggedInAccounts[
|
|
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 [
|
|
4579
|
-
|
|
4583
|
+
const [t, r] = await L(
|
|
4584
|
+
xe.getBySSOEmail(e.email, this.$storage)
|
|
4580
4585
|
);
|
|
4581
|
-
if (
|
|
4582
|
-
return this.errorHandler(
|
|
4583
|
-
if (
|
|
4584
|
-
return
|
|
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(), [
|
|
4588
|
-
|
|
4592
|
+
const e = this.getRefreshTokens(), [t, r] = await L(
|
|
4593
|
+
N.getLoggedInAccounts({ refreshTokens: e }, this.$storage)
|
|
4589
4594
|
);
|
|
4590
|
-
if (
|
|
4591
|
-
return this.errorHandler(
|
|
4592
|
-
|
|
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 [
|
|
4596
|
-
|
|
4600
|
+
const [t, r] = await L(
|
|
4601
|
+
re.loginUsingQR(e, this.$storage)
|
|
4597
4602
|
);
|
|
4598
|
-
return
|
|
4603
|
+
return t ? this.errorHandler(t) : r.data.success;
|
|
4599
4604
|
},
|
|
4600
4605
|
setLoggedInAccounts(e) {
|
|
4601
|
-
this.loggedInAccounts = {}, e.forEach((
|
|
4602
|
-
this.loggedInAccounts[
|
|
4603
|
-
}),
|
|
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
|
|
4616
|
-
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,
|
|
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
|
-
},
|
|
4637
|
-
const
|
|
4638
|
-
for (const [
|
|
4639
|
-
|
|
4640
|
-
return
|
|
4641
|
-
},
|
|
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: [
|
|
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((
|
|
4653
|
-
console.log("Play was interrupted:",
|
|
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) :
|
|
4657
|
-
}, 1500),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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)),
|
|
4667
|
-
|
|
4668
|
-
],
|
|
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
|
-
},
|
|
4672
|
-
|
|
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
|
|
4675
|
-
const
|
|
4676
|
-
return
|
|
4677
|
-
|
|
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
|
-
},
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
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:
|
|
4696
|
-
|
|
4700
|
+
default: G(() => [
|
|
4701
|
+
c("span", null, y(e.ssoLang[this.appLanguage].create_account), 1)
|
|
4697
4702
|
]),
|
|
4698
4703
|
_: 1
|
|
4699
4704
|
}),
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
default:
|
|
4703
|
-
|
|
4704
|
-
|
|
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
|
-
|
|
4713
|
+
gt
|
|
4709
4714
|
]),
|
|
4710
|
-
this.isNative ?
|
|
4715
|
+
this.isNative ? T("", !0) : (f(), k("div", ht, kt))
|
|
4711
4716
|
]);
|
|
4712
4717
|
}
|
|
4713
|
-
const
|
|
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,
|
|
4722
|
-
return (((
|
|
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
|
-
|
|
4731
|
+
Ye.initialize();
|
|
4727
4732
|
},
|
|
4728
4733
|
methods: {
|
|
4729
4734
|
async googleLogin() {
|
|
4730
|
-
var
|
|
4735
|
+
var r;
|
|
4731
4736
|
this.googleLoad = !0;
|
|
4732
|
-
let [e,
|
|
4737
|
+
let [e, t] = await L(Ye.signIn());
|
|
4733
4738
|
if (e)
|
|
4734
4739
|
return this.googleLoad = !1;
|
|
4735
|
-
if (this.referral && (
|
|
4736
|
-
this.referral && (
|
|
4737
|
-
const [
|
|
4738
|
-
if (
|
|
4739
|
-
return this.googleLoad = !1,
|
|
4740
|
-
if (
|
|
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 (
|
|
4743
|
-
await this.loginSetup(
|
|
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,
|
|
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,
|
|
4765
|
-
var
|
|
4766
|
-
e.getElementById(
|
|
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
|
|
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
|
|
4789
|
+
var u;
|
|
4785
4790
|
this.facebookLoad = !0;
|
|
4786
|
-
const e = ["email"], [
|
|
4787
|
-
if (
|
|
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 && (
|
|
4790
|
-
const [
|
|
4791
|
-
if (
|
|
4792
|
-
return this.facebookLoad = !1,
|
|
4793
|
-
if (
|
|
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 (
|
|
4796
|
-
await this.loginSetup(
|
|
4797
|
-
this.facebookLoad = !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,
|
|
4807
|
+
this.facebookLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4803
4808
|
}
|
|
4804
4809
|
}
|
|
4805
|
-
},
|
|
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,
|
|
4814
|
-
return (((
|
|
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
|
|
4824
|
+
var r;
|
|
4820
4825
|
this.appleLoad = !0;
|
|
4821
|
-
const [e,
|
|
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 (
|
|
4829
|
-
this.referral && (
|
|
4830
|
-
const [
|
|
4831
|
-
if (
|
|
4832
|
-
return this.appleLoad = !1,
|
|
4833
|
-
if (
|
|
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 (
|
|
4836
|
-
await this.loginSetup(
|
|
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,
|
|
4847
|
+
this.appleLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4843
4848
|
}
|
|
4844
4849
|
}
|
|
4845
4850
|
};
|
|
4846
|
-
var
|
|
4847
|
-
const
|
|
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,
|
|
4857
|
-
return (((
|
|
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,
|
|
4862
|
-
var
|
|
4863
|
-
e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(
|
|
4864
|
-
const [
|
|
4865
|
-
|
|
4866
|
-
clientId: e === "sso" ?
|
|
4867
|
-
tenant: e === "sso" ?
|
|
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:
|
|
4877
|
+
redirectUri: vt.NODE_ENV === "development" ? `${window.location.origin}/login` : "https://" + window.location.host + "/login"
|
|
4873
4878
|
})
|
|
4874
4879
|
);
|
|
4875
|
-
if (
|
|
4876
|
-
return console.log("Error: " + JSON.stringify(
|
|
4877
|
-
if (this.referral && (
|
|
4878
|
-
const [
|
|
4879
|
-
|
|
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 (
|
|
4882
|
-
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1,
|
|
4883
|
-
if (
|
|
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 (
|
|
4886
|
-
{ code:
|
|
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(
|
|
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,
|
|
4900
|
+
this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4896
4901
|
},
|
|
4897
4902
|
ssoLogin() {
|
|
4898
|
-
|
|
4903
|
+
v.$emit("toggleSSOModal");
|
|
4899
4904
|
}
|
|
4900
4905
|
}
|
|
4901
|
-
},
|
|
4906
|
+
}, le = {
|
|
4902
4907
|
getFirstBrowserLanguage() {
|
|
4903
|
-
let e = window.navigator,
|
|
4908
|
+
let e = window.navigator, t = ["language", "browserLanguage", "systemLanguage", "userLanguage"], r, u;
|
|
4904
4909
|
if (Array.isArray(e.languages)) {
|
|
4905
|
-
for (
|
|
4906
|
-
if (
|
|
4907
|
-
return
|
|
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 (
|
|
4910
|
-
if (
|
|
4911
|
-
return
|
|
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(
|
|
4916
|
-
console.log("In en but not in de", e.filter((
|
|
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
|
|
4920
|
-
for (let
|
|
4921
|
-
|
|
4922
|
-
return new Blob([
|
|
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
|
|
4926
|
-
return
|
|
4927
|
-
|
|
4928
|
-
|
|
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,
|
|
4933
|
-
for (var
|
|
4934
|
-
|
|
4935
|
-
return new File([
|
|
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((
|
|
4939
|
-
const
|
|
4940
|
-
|
|
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,
|
|
4944
|
-
let
|
|
4945
|
-
return e.utm_source && (
|
|
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,
|
|
4948
|
-
const
|
|
4949
|
-
|
|
4950
|
-
const
|
|
4951
|
-
|
|
4952
|
-
const
|
|
4953
|
-
return
|
|
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
|
|
4958
|
-
return window.crypto.getRandomValues(
|
|
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
|
|
4962
|
-
return btoa(String.fromCharCode.apply(null, new Uint8Array(
|
|
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,
|
|
4965
|
-
let
|
|
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:
|
|
4974
|
+
iv: t
|
|
4970
4975
|
},
|
|
4971
4976
|
e,
|
|
4972
|
-
|
|
4977
|
+
l
|
|
4973
4978
|
);
|
|
4974
4979
|
},
|
|
4975
|
-
async decryptAES(e,
|
|
4980
|
+
async decryptAES(e, t, r) {
|
|
4976
4981
|
try {
|
|
4977
|
-
const
|
|
4978
|
-
|
|
4979
|
-
const
|
|
4980
|
-
e =
|
|
4981
|
-
const
|
|
4982
|
-
let
|
|
4983
|
-
return
|
|
4984
|
-
} catch (
|
|
4985
|
-
console.log(
|
|
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
|
-
},
|
|
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
|
|
5005
|
-
let [
|
|
5006
|
-
if (
|
|
5007
|
-
return this.errorHandler(
|
|
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
|
|
5010
|
-
if (this.display === "popup" && (
|
|
5011
|
-
return this.oktaLoad = !1,
|
|
5012
|
-
if (
|
|
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 (
|
|
5015
|
-
await this.loginSetup(
|
|
5016
|
-
this.appleLoad = !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
|
|
5023
|
-
let
|
|
5024
|
-
localStorage.setItem("pkce_code_verifier",
|
|
5025
|
-
let
|
|
5026
|
-
this.isNative ?
|
|
5027
|
-
let
|
|
5028
|
-
window.addEventListener("message", async (
|
|
5029
|
-
if (!this.allowedOrigins.includes(
|
|
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
|
-
|
|
5032
|
-
}, { once: !0 }), this.isNative ? await
|
|
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,
|
|
5036
|
-
if (e && (
|
|
5037
|
-
|
|
5038
|
-
const
|
|
5039
|
-
|
|
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(
|
|
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
|
-
}
|
|
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 =
|
|
5062
|
-
const
|
|
5063
|
-
let
|
|
5064
|
-
e = `${e}&RelayState=${
|
|
5065
|
-
let
|
|
5066
|
-
window.addEventListener("message", async (
|
|
5067
|
-
var
|
|
5068
|
-
if (!this.allowedOrigins.includes(
|
|
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 (
|
|
6127
|
+
if (l.data.type === "saml" && l.data.code) {
|
|
5071
6128
|
if (this.display === "popup")
|
|
5072
|
-
return (
|
|
5073
|
-
await
|
|
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
|
|
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
|
|
5079
|
-
let e,
|
|
5080
|
-
if (this.$route.query.code && (
|
|
5081
|
-
window.opener.postMessage(
|
|
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
|
|
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 (
|
|
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"),
|
|
6145
|
+
localStorage.removeItem("pkce_code_verifier"), v.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
5089
6146
|
}
|
|
5090
6147
|
}
|
|
5091
6148
|
}
|
|
5092
|
-
},
|
|
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
|
|
6171
|
+
this.isQrCodeLogin = !0, await We(), await this.initQrCodeLogin();
|
|
5115
6172
|
},
|
|
5116
6173
|
generateRandomHash() {
|
|
5117
|
-
const e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
|
5118
|
-
let
|
|
5119
|
-
const
|
|
5120
|
-
return window.crypto.getRandomValues(
|
|
5121
|
-
|
|
5122
|
-
}),
|
|
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,
|
|
5126
|
-
this.qrCode && ((
|
|
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,
|
|
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
|
-
|
|
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
|
|
6220
|
+
this.refreshQrCode(), await We(), await this.startQrCodePooling(), this.qrCodeRefreshInterval = setInterval(() => {
|
|
5164
6221
|
this.refreshQrCode();
|
|
5165
6222
|
}, 6e4);
|
|
5166
6223
|
}
|
|
5167
6224
|
}
|
|
5168
|
-
},
|
|
6225
|
+
}, Pt = {
|
|
5169
6226
|
name: "AuthLogin",
|
|
5170
|
-
mixins: [
|
|
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,
|
|
5192
|
-
return (((
|
|
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,
|
|
5196
|
-
return (((
|
|
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,
|
|
5200
|
-
return (((
|
|
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 &&
|
|
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
|
|
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 ?
|
|
5225
|
-
const [
|
|
5226
|
-
|
|
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
|
-
|
|
6286
|
+
v.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
|
|
5230
6287
|
},
|
|
5231
6288
|
createAccountModal() {
|
|
5232
|
-
|
|
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
|
-
},
|
|
5247
|
-
/* @__PURE__ */
|
|
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),
|
|
5253
|
-
|
|
5254
|
-
],
|
|
6309
|
+
], -1), xt = [
|
|
6310
|
+
jt
|
|
6311
|
+
], Bt = {
|
|
5255
6312
|
class: "bold no-bottom center-text",
|
|
5256
6313
|
style: { "margin-top": "63px" }
|
|
5257
|
-
},
|
|
5258
|
-
/* @__PURE__ */
|
|
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),
|
|
5264
|
-
/* @__PURE__ */
|
|
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),
|
|
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
|
-
},
|
|
6329
|
+
}, $t = {
|
|
5273
6330
|
src: "https://cdn.tapni.co/icons/hide-password.png",
|
|
5274
6331
|
class: "responsive-image password-reveal-icon"
|
|
5275
|
-
},
|
|
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
|
-
},
|
|
6335
|
+
}, Qt = { key: 0 }, Gt = {
|
|
5279
6336
|
key: 1,
|
|
5280
6337
|
class: "button--loading button__loader"
|
|
5281
|
-
},
|
|
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),
|
|
6341
|
+
}, null, -1), Xt = { key: 0 }, Zt = {
|
|
5285
6342
|
key: 1,
|
|
5286
6343
|
class: "button--loading button__loader"
|
|
5287
|
-
},
|
|
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),
|
|
6347
|
+
}, null, -1), ea = { key: 0 }, na = {
|
|
5291
6348
|
key: 1,
|
|
5292
6349
|
class: "button--loading-black button__loader"
|
|
5293
|
-
},
|
|
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),
|
|
6353
|
+
}, null, -1), aa = { key: 0 }, ia = {
|
|
5297
6354
|
key: 1,
|
|
5298
6355
|
class: "button--loading-black button__loader"
|
|
5299
|
-
},
|
|
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),
|
|
6359
|
+
}, null, -1), ra = { key: 0 }, sa = {
|
|
5303
6360
|
key: 1,
|
|
5304
6361
|
class: "button--loading-black button__loader"
|
|
5305
|
-
},
|
|
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),
|
|
6365
|
+
}, null, -1), la = { key: 0 }, da = {
|
|
5309
6366
|
key: 1,
|
|
5310
6367
|
class: "button--loading-black button__loader"
|
|
5311
|
-
},
|
|
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),
|
|
6371
|
+
}, null, -1), ua = { key: 0 }, _a = {
|
|
5315
6372
|
key: 1,
|
|
5316
6373
|
class: "button--loading-black button__loader"
|
|
5317
|
-
},
|
|
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),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5327
|
-
function
|
|
5328
|
-
const
|
|
5329
|
-
return
|
|
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:
|
|
6388
|
+
onSubmit: t[13] || (t[13] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
5332
6389
|
autocomplete: "on",
|
|
5333
|
-
style:
|
|
6390
|
+
style: ce(r.isModal ? "max-width: 500px;" : "")
|
|
5334
6391
|
}, [
|
|
5335
|
-
|
|
6392
|
+
r.isModal ? (f(), k("a", {
|
|
5336
6393
|
key: 0,
|
|
5337
|
-
onClick:
|
|
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
|
-
},
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
"onUpdate:modelValue":
|
|
5348
|
-
onKeydown:
|
|
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,
|
|
5358
|
-
[
|
|
6414
|
+
}, null, 40, Ut), [
|
|
6415
|
+
[ae, l.emailOrUsername]
|
|
5359
6416
|
]),
|
|
5360
|
-
|
|
6417
|
+
Dt
|
|
5361
6418
|
]),
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
"onUpdate:modelValue":
|
|
5366
|
-
type:
|
|
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,
|
|
5372
|
-
[
|
|
6428
|
+
}, null, 8, Vt), [
|
|
6429
|
+
[fe, l.password]
|
|
5373
6430
|
]),
|
|
5374
|
-
|
|
5375
|
-
onClick:
|
|
6431
|
+
c("em", {
|
|
6432
|
+
onClick: t[4] || (t[4] = (m) => l.revealPassword = !l.revealPassword),
|
|
5376
6433
|
class: "pointer"
|
|
5377
6434
|
}, [
|
|
5378
|
-
|
|
5379
|
-
[
|
|
6435
|
+
B(c("img", Kt, null, 512), [
|
|
6436
|
+
[J, !l.revealPassword]
|
|
5380
6437
|
]),
|
|
5381
|
-
|
|
5382
|
-
[
|
|
6438
|
+
B(c("img", $t, null, 512), [
|
|
6439
|
+
[J, l.revealPassword]
|
|
5383
6440
|
])
|
|
5384
6441
|
])
|
|
5385
6442
|
]),
|
|
5386
|
-
|
|
5387
|
-
|
|
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
|
-
])) :
|
|
5390
|
-
|
|
5391
|
-
e.displayAppleLogin ? (
|
|
6446
|
+
])) : T("", !0),
|
|
6447
|
+
Wt,
|
|
6448
|
+
e.displayAppleLogin ? (f(), k("a", {
|
|
5392
6449
|
key: 2,
|
|
5393
|
-
onClick:
|
|
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
|
-
|
|
5397
|
-
e.appleLoad ? (
|
|
5398
|
-
])) :
|
|
5399
|
-
e.displayGoogleLogin ? (
|
|
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:
|
|
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
|
-
|
|
5405
|
-
e.googleLoad ? (
|
|
5406
|
-
])) :
|
|
5407
|
-
e.displayFacebookLogin ? (
|
|
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:
|
|
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
|
-
|
|
5413
|
-
e.facebookLoad ? (
|
|
5414
|
-
])) :
|
|
5415
|
-
e.displayMicrosoftSSOLogin ?
|
|
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:
|
|
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
|
-
|
|
5421
|
-
e.microsoftLoad ? (
|
|
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 ?
|
|
6480
|
+
e.displayMicrosoftSSOLogin ? T("", !0) : (f(), k("a", {
|
|
5424
6481
|
key: 6,
|
|
5425
|
-
onClick:
|
|
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
|
-
|
|
5429
|
-
e.microsoftSSOLoad ? (
|
|
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 ? (
|
|
6488
|
+
e.displayMicrosoftSSOLogin ? (f(), k("a", {
|
|
5432
6489
|
key: 7,
|
|
5433
|
-
onClick:
|
|
6490
|
+
onClick: t[10] || (t[10] = (m) => e.microsoftLogin("sso")),
|
|
5434
6491
|
class: "button-center button button-90 google-button pointer"
|
|
5435
6492
|
}, [
|
|
5436
|
-
|
|
5437
|
-
e.microsoftSSOLoad ? (
|
|
5438
|
-
])) :
|
|
5439
|
-
|
|
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:
|
|
6498
|
+
onClick: t[11] || (t[11] = (m) => l.emailLogin = !0),
|
|
5442
6499
|
class: "button-center button button-90 google-button pointer"
|
|
5443
6500
|
}, [
|
|
5444
|
-
|
|
5445
|
-
|
|
6501
|
+
ma,
|
|
6502
|
+
c("span", null, y(e.ssoLang[e.appLanguage].sign_in_with) + " Email", 1)
|
|
5446
6503
|
])),
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
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
|
-
|
|
5456
|
-
|
|
6512
|
+
va,
|
|
6513
|
+
r.isModal ? (f(), k("div", {
|
|
5457
6514
|
key: 10,
|
|
5458
6515
|
class: "page-login-links",
|
|
5459
|
-
onClick:
|
|
6516
|
+
onClick: t[12] || (t[12] = (...m) => d.createAccountModal && d.createAccountModal(...m))
|
|
5460
6517
|
}, [
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
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
|
-
|
|
5467
|
-
])) : (
|
|
5468
|
-
|
|
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:
|
|
5474
|
-
|
|
6530
|
+
default: G(() => [
|
|
6531
|
+
I(y(e.ssoLang[e.appLanguage].create_account), 1)
|
|
5475
6532
|
]),
|
|
5476
6533
|
_: 1
|
|
5477
|
-
})) :
|
|
5478
|
-
|
|
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:
|
|
5484
|
-
|
|
6540
|
+
default: G(() => [
|
|
6541
|
+
I(y(e.ssoLang[e.appLanguage].reset_password), 1)
|
|
5485
6542
|
]),
|
|
5486
6543
|
_: 1
|
|
5487
|
-
})) :
|
|
5488
|
-
|
|
6544
|
+
})) : T("", !0),
|
|
6545
|
+
wa
|
|
5489
6546
|
]))
|
|
5490
6547
|
], 36);
|
|
5491
6548
|
}
|
|
5492
|
-
const
|
|
6549
|
+
const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
|
|
5493
6550
|
name: "AuthRegister",
|
|
5494
|
-
mixins: [
|
|
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 &&
|
|
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
|
-
},
|
|
5542
|
-
this.submitted = !1,
|
|
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
|
-
|
|
6602
|
+
v.$emit("ssoEvent", { name: "toggleAddAccountModal", data: !0 });
|
|
5546
6603
|
},
|
|
5547
6604
|
loginAccountModal() {
|
|
5548
|
-
|
|
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
|
-
},
|
|
5560
|
-
/* @__PURE__ */
|
|
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),
|
|
5566
|
-
|
|
5567
|
-
],
|
|
6622
|
+
], -1), Ia = [
|
|
6623
|
+
Ea
|
|
6624
|
+
], Aa = {
|
|
5568
6625
|
class: "bold no-bottom center-text",
|
|
5569
6626
|
style: { "margin-top": "63px" }
|
|
5570
|
-
},
|
|
5571
|
-
/* @__PURE__ */
|
|
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),
|
|
5577
|
-
/* @__PURE__ */
|
|
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),
|
|
5583
|
-
/* @__PURE__ */
|
|
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),
|
|
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
|
-
},
|
|
6648
|
+
}, Qa = {
|
|
5592
6649
|
src: "https://cdn.tapni.co/icons/hide-password.png",
|
|
5593
6650
|
class: "responsive-image password-reveal-icon"
|
|
5594
|
-
},
|
|
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
|
-
},
|
|
6654
|
+
}, Wa = { key: 0 }, Ya = {
|
|
5598
6655
|
key: 1,
|
|
5599
6656
|
class: "button--loading button__loader"
|
|
5600
|
-
},
|
|
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),
|
|
6660
|
+
}, null, -1), Ja = { key: 0 }, ei = {
|
|
5604
6661
|
key: 1,
|
|
5605
6662
|
class: "button--loading button__loader"
|
|
5606
|
-
},
|
|
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),
|
|
6666
|
+
}, null, -1), ti = { key: 0 }, ai = {
|
|
5610
6667
|
key: 1,
|
|
5611
6668
|
class: "button--loading button__loader"
|
|
5612
|
-
},
|
|
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),
|
|
6672
|
+
}, null, -1), oi = { key: 0 }, ri = {
|
|
5616
6673
|
key: 1,
|
|
5617
6674
|
class: "button--loading button__loader"
|
|
5618
|
-
},
|
|
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),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
5628
|
-
function
|
|
5629
|
-
const
|
|
5630
|
-
return
|
|
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:
|
|
6689
|
+
onSubmit: t[12] || (t[12] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
5633
6690
|
autocomplete: "on",
|
|
5634
|
-
style:
|
|
6691
|
+
style: ce(r.isModal ? "max-width: 500px;" : "")
|
|
5635
6692
|
}, [
|
|
5636
|
-
|
|
6693
|
+
r.isModal ? (f(), k("a", {
|
|
5637
6694
|
key: 0,
|
|
5638
|
-
onClick:
|
|
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
|
-
},
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
])) :
|
|
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
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
"onUpdate:modelValue":
|
|
5654
|
-
onKeydown:
|
|
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,
|
|
5661
|
-
[
|
|
6717
|
+
}, null, 40, qa), [
|
|
6718
|
+
[ae, l.email]
|
|
5662
6719
|
]),
|
|
5663
|
-
|
|
6720
|
+
Na
|
|
5664
6721
|
]),
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
"onUpdate:modelValue":
|
|
5669
|
-
onKeydown:
|
|
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:
|
|
5679
|
-
class:
|
|
5680
|
-
}, null, 42,
|
|
5681
|
-
[
|
|
6735
|
+
disabled: l.usernameRegister,
|
|
6736
|
+
class: R({ "input-disabled": l.usernameRegister })
|
|
6737
|
+
}, null, 42, Oa), [
|
|
6738
|
+
[ae, l.username]
|
|
5682
6739
|
]),
|
|
5683
|
-
|
|
6740
|
+
Fa
|
|
5684
6741
|
]),
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
"onUpdate:modelValue":
|
|
5689
|
-
type:
|
|
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,
|
|
5695
|
-
[
|
|
6751
|
+
}, null, 8, $a), [
|
|
6752
|
+
[fe, l.password]
|
|
5696
6753
|
]),
|
|
5697
|
-
|
|
5698
|
-
onClick:
|
|
6754
|
+
c("em", {
|
|
6755
|
+
onClick: t[6] || (t[6] = (m) => l.revealPassword = !l.revealPassword),
|
|
5699
6756
|
class: "pointer"
|
|
5700
6757
|
}, [
|
|
5701
|
-
|
|
5702
|
-
[
|
|
6758
|
+
B(c("img", Ha, null, 512), [
|
|
6759
|
+
[J, !l.revealPassword]
|
|
5703
6760
|
]),
|
|
5704
|
-
|
|
5705
|
-
[
|
|
6761
|
+
B(c("img", Qa, null, 512), [
|
|
6762
|
+
[J, l.revealPassword]
|
|
5706
6763
|
])
|
|
5707
6764
|
])
|
|
5708
6765
|
]),
|
|
5709
|
-
|
|
5710
|
-
|
|
6766
|
+
c("button", Ga, [
|
|
6767
|
+
l.submitted ? (f(), k("span", Ya)) : (f(), k("span", Wa, y(l.formButtonText), 1))
|
|
5711
6768
|
])
|
|
5712
|
-
])) :
|
|
5713
|
-
|
|
5714
|
-
e.displayAppleLogin ? (
|
|
6769
|
+
])) : T("", !0),
|
|
6770
|
+
Xa,
|
|
6771
|
+
e.displayAppleLogin ? (f(), k("a", {
|
|
5715
6772
|
key: 2,
|
|
5716
|
-
onClick:
|
|
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
|
-
|
|
5720
|
-
e.appleLoad ? (
|
|
5721
|
-
])) :
|
|
5722
|
-
|
|
5723
|
-
onClick:
|
|
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
|
-
|
|
5727
|
-
e.googleLoad ? (
|
|
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 ? (
|
|
6786
|
+
e.displayFacebookLogin ? (f(), k("a", {
|
|
5730
6787
|
key: 3,
|
|
5731
|
-
onClick:
|
|
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
|
-
|
|
5735
|
-
e.facebookLoad ? (
|
|
5736
|
-
])) :
|
|
5737
|
-
|
|
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:
|
|
6796
|
+
onClick: t[10] || (t[10] = (m) => l.emailLogin = !0),
|
|
5740
6797
|
class: "button-center button button-90 google-button pointer"
|
|
5741
6798
|
}, [
|
|
5742
|
-
|
|
5743
|
-
|
|
6799
|
+
si,
|
|
6800
|
+
c("span", null, y(e.ssoLang[this.appLanguage].sign_up_with) + " Email", 1)
|
|
5744
6801
|
])),
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
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
|
-
|
|
5754
|
-
|
|
6810
|
+
_i,
|
|
6811
|
+
r.isModal ? (f(), k("div", {
|
|
5755
6812
|
key: 6,
|
|
5756
6813
|
class: "page-login-links",
|
|
5757
|
-
onClick:
|
|
6814
|
+
onClick: t[11] || (t[11] = (...m) => d.loginAccountModal && d.loginAccountModal(...m))
|
|
5758
6815
|
}, [
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
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
|
-
|
|
5765
|
-
])) : (
|
|
5766
|
-
|
|
6821
|
+
ki
|
|
6822
|
+
])) : (f(), k("div", mi, [
|
|
6823
|
+
j(h, {
|
|
5767
6824
|
class: "create float-right",
|
|
5768
6825
|
to: "/verify"
|
|
5769
6826
|
}, {
|
|
5770
|
-
default:
|
|
5771
|
-
|
|
6827
|
+
default: G(() => [
|
|
6828
|
+
I(y(e.ssoLang[this.appLanguage].verify_account), 1)
|
|
5772
6829
|
]),
|
|
5773
6830
|
_: 1
|
|
5774
6831
|
}),
|
|
5775
|
-
|
|
6832
|
+
j(h, {
|
|
5776
6833
|
class: "forgot float-left",
|
|
5777
6834
|
to: "/login"
|
|
5778
6835
|
}, {
|
|
5779
|
-
default:
|
|
5780
|
-
|
|
6836
|
+
default: G(() => [
|
|
6837
|
+
I(y(e.ssoLang[this.appLanguage].sign_in), 1)
|
|
5781
6838
|
]),
|
|
5782
6839
|
_: 1
|
|
5783
6840
|
}),
|
|
5784
|
-
|
|
6841
|
+
gi
|
|
5785
6842
|
]))
|
|
5786
6843
|
], 36);
|
|
5787
6844
|
}
|
|
5788
|
-
const
|
|
6845
|
+
const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
|
|
5789
6846
|
name: "AuthVerify",
|
|
5790
|
-
mixins: [
|
|
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),
|
|
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
|
|
5828
|
-
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
|
-
|
|
6888
|
+
v.$emit("ssoEvent", { name: "toggleAddAccountModalRegister", data: !1 });
|
|
5832
6889
|
},
|
|
5833
6890
|
close() {
|
|
5834
|
-
|
|
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,
|
|
5842
|
-
!
|
|
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
|
-
},
|
|
5852
|
-
/* @__PURE__ */
|
|
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)),
|
|
5858
|
-
|
|
5859
|
-
],
|
|
6914
|
+
], -1)), wi = [
|
|
6915
|
+
yi
|
|
6916
|
+
], zi = {
|
|
5860
6917
|
class: "bold no-bottom center-text",
|
|
5861
6918
|
style: { "margin-top": "63px" }
|
|
5862
|
-
},
|
|
5863
|
-
/* @__PURE__ */
|
|
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)),
|
|
5869
|
-
/* @__PURE__ */
|
|
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)),
|
|
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
|
-
},
|
|
6934
|
+
}, Bi = {
|
|
5878
6935
|
key: 0,
|
|
5879
6936
|
class: "uppercase"
|
|
5880
|
-
},
|
|
6937
|
+
}, Mi = {
|
|
5881
6938
|
key: 1,
|
|
5882
6939
|
class: "button--loading button__loader"
|
|
5883
|
-
},
|
|
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
|
-
},
|
|
5887
|
-
function
|
|
5888
|
-
const
|
|
5889
|
-
return
|
|
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:
|
|
5892
|
-
style:
|
|
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
|
-
|
|
6951
|
+
r.isModal ? (f(), k("a", {
|
|
5895
6952
|
key: 0,
|
|
5896
|
-
onClick:
|
|
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
|
-
},
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
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":
|
|
5907
|
-
onKeydown:
|
|
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,
|
|
5913
|
-
[
|
|
6969
|
+
}, null, 40, Ti), [
|
|
6970
|
+
[ae, l.email]
|
|
5914
6971
|
]),
|
|
5915
|
-
|
|
6972
|
+
Ei
|
|
5916
6973
|
]),
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
6974
|
+
c("div", Ii, [
|
|
6975
|
+
Ai,
|
|
6976
|
+
B(c("input", {
|
|
5920
6977
|
id: "codeInput",
|
|
5921
|
-
"onUpdate:modelValue":
|
|
5922
|
-
onKeydown:
|
|
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,
|
|
5928
|
-
[
|
|
6984
|
+
}, null, 40, Pi), [
|
|
6985
|
+
[ae, l.code]
|
|
5929
6986
|
]),
|
|
5930
|
-
|
|
6987
|
+
ji
|
|
5931
6988
|
]),
|
|
5932
|
-
|
|
5933
|
-
|
|
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
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
6992
|
+
Ri,
|
|
6993
|
+
c("p", qi, [
|
|
6994
|
+
c("span", {
|
|
5938
6995
|
innerHTML: e.ssoLang[this.appLanguage].verify_account_p1
|
|
5939
|
-
}, null, 8,
|
|
5940
|
-
|
|
6996
|
+
}, null, 8, Ni),
|
|
6997
|
+
Ui
|
|
5941
6998
|
]),
|
|
5942
|
-
|
|
5943
|
-
|
|
6999
|
+
Di,
|
|
7000
|
+
r.isModal ? (f(), k("div", {
|
|
5944
7001
|
key: 2,
|
|
5945
7002
|
class: "page-login-links",
|
|
5946
|
-
onClick:
|
|
7003
|
+
onClick: t[5] || (t[5] = (...m) => d.registerAccountModal && d.registerAccountModal(...m))
|
|
5947
7004
|
}, [
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
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
|
-
|
|
5954
|
-
])) : (
|
|
5955
|
-
|
|
7010
|
+
$i
|
|
7011
|
+
])) : (f(), k("div", Oi, [
|
|
7012
|
+
j(h, {
|
|
5956
7013
|
class: "create float-right",
|
|
5957
7014
|
to: "/register"
|
|
5958
7015
|
}, {
|
|
5959
|
-
default:
|
|
5960
|
-
|
|
7016
|
+
default: G(() => [
|
|
7017
|
+
I(y(e.ssoLang[this.appLanguage].register), 1)
|
|
5961
7018
|
]),
|
|
5962
7019
|
_: 1
|
|
5963
7020
|
}),
|
|
5964
|
-
|
|
7021
|
+
j(h, {
|
|
5965
7022
|
class: "forgot float-left",
|
|
5966
7023
|
to: "/login"
|
|
5967
7024
|
}, {
|
|
5968
|
-
default:
|
|
5969
|
-
|
|
7025
|
+
default: G(() => [
|
|
7026
|
+
I(y(e.ssoLang[this.appLanguage].sign_in), 1)
|
|
5970
7027
|
]),
|
|
5971
7028
|
_: 1
|
|
5972
7029
|
}),
|
|
5973
|
-
|
|
7030
|
+
Fi
|
|
5974
7031
|
]))
|
|
5975
7032
|
], 36);
|
|
5976
7033
|
}
|
|
5977
|
-
const
|
|
7034
|
+
const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa"]]), Qi = {
|
|
5978
7035
|
name: "AuthReset",
|
|
5979
|
-
mixins: [
|
|
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),
|
|
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
|
-
},
|
|
6023
|
-
this.submitted = !1,
|
|
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
|
-
},
|
|
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
|
-
},
|
|
6035
|
-
/* @__PURE__ */
|
|
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)),
|
|
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
|
-
},
|
|
7100
|
+
}, no = {
|
|
6044
7101
|
key: 0,
|
|
6045
7102
|
class: "uppercase"
|
|
6046
|
-
},
|
|
7103
|
+
}, to = {
|
|
6047
7104
|
key: 1,
|
|
6048
7105
|
class: "button--loading button__loader"
|
|
6049
|
-
},
|
|
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
|
-
},
|
|
6053
|
-
/* @__PURE__ */
|
|
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)),
|
|
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
|
-
},
|
|
7118
|
+
}, fo = {
|
|
6062
7119
|
src: "https://cdn.tapni.co/icons/hide-password.png",
|
|
6063
7120
|
class: "responsive-image password-reveal-icon"
|
|
6064
|
-
},
|
|
6065
|
-
/* @__PURE__ */
|
|
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)),
|
|
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
|
-
},
|
|
7130
|
+
}, wo = {
|
|
6074
7131
|
src: "https://cdn.tapni.co/icons/hide-password.png",
|
|
6075
7132
|
class: "responsive-image password-reveal-icon"
|
|
6076
|
-
},
|
|
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
|
-
},
|
|
7136
|
+
}, Lo = {
|
|
6080
7137
|
key: 0,
|
|
6081
7138
|
class: "uppercase"
|
|
6082
|
-
},
|
|
7139
|
+
}, Co = {
|
|
6083
7140
|
key: 1,
|
|
6084
7141
|
class: "button--loading button__loader"
|
|
6085
|
-
},
|
|
6086
|
-
function
|
|
6087
|
-
const
|
|
6088
|
-
return
|
|
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:
|
|
7148
|
+
onSubmit: t[7] || (t[7] = U((...m) => d.changePw && d.changePw(...m), ["prevent"]))
|
|
6092
7149
|
}, [
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
"onUpdate:modelValue":
|
|
6099
|
-
type:
|
|
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,
|
|
6103
|
-
[
|
|
7159
|
+
}, null, 8, go), [
|
|
7160
|
+
[fe, l.password]
|
|
6104
7161
|
]),
|
|
6105
|
-
|
|
6106
|
-
onClick:
|
|
7162
|
+
c("em", {
|
|
7163
|
+
onClick: t[4] || (t[4] = (m) => l.revealPassword = !l.revealPassword)
|
|
6107
7164
|
}, [
|
|
6108
|
-
|
|
6109
|
-
[
|
|
7165
|
+
B(c("img", ho, null, 512), [
|
|
7166
|
+
[J, !l.revealPassword]
|
|
6110
7167
|
]),
|
|
6111
|
-
|
|
6112
|
-
[
|
|
7168
|
+
B(c("img", fo, null, 512), [
|
|
7169
|
+
[J, l.revealPassword]
|
|
6113
7170
|
])
|
|
6114
7171
|
])
|
|
6115
7172
|
]),
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
"onUpdate:modelValue":
|
|
6120
|
-
type:
|
|
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,
|
|
6124
|
-
[
|
|
7180
|
+
}, null, 8, vo), [
|
|
7181
|
+
[fe, l.passwordRepeat]
|
|
6125
7182
|
]),
|
|
6126
|
-
|
|
6127
|
-
onClick:
|
|
7183
|
+
c("em", {
|
|
7184
|
+
onClick: t[6] || (t[6] = (m) => l.revealPassword2 = !l.revealPassword2)
|
|
6128
7185
|
}, [
|
|
6129
|
-
|
|
6130
|
-
[
|
|
7186
|
+
B(c("img", yo, null, 512), [
|
|
7187
|
+
[J, !l.revealPassword2]
|
|
6131
7188
|
]),
|
|
6132
|
-
|
|
6133
|
-
[
|
|
7189
|
+
B(c("img", wo, null, 512), [
|
|
7190
|
+
[J, l.revealPassword2]
|
|
6134
7191
|
])
|
|
6135
7192
|
])
|
|
6136
7193
|
]),
|
|
6137
|
-
|
|
6138
|
-
|
|
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
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
7197
|
+
So,
|
|
7198
|
+
c("p", To, [
|
|
7199
|
+
c("span", {
|
|
6143
7200
|
innerHTML: e.ssoLang[this.appLanguage].reset_password_p2
|
|
6144
|
-
}, null, 8,
|
|
6145
|
-
|
|
6146
|
-
|
|
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,
|
|
7205
|
+
}, " support@tapni.com", 8, Io)
|
|
6149
7206
|
])
|
|
6150
|
-
], 32)) : (
|
|
7207
|
+
], 32)) : (f(), k("form", {
|
|
6151
7208
|
key: 0,
|
|
6152
7209
|
class: "page-login content-boxed content-boxed-padding",
|
|
6153
|
-
onSubmit:
|
|
7210
|
+
onSubmit: t[2] || (t[2] = U((...m) => d.resetEmail && d.resetEmail(...m), ["prevent"])),
|
|
6154
7211
|
autocomplete: "on"
|
|
6155
7212
|
}, [
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
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":
|
|
6163
|
-
onKeydown:
|
|
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,
|
|
6169
|
-
[
|
|
7225
|
+
}, null, 40, Zi), [
|
|
7226
|
+
[ae, l.email]
|
|
6170
7227
|
]),
|
|
6171
|
-
|
|
7228
|
+
Ji
|
|
6172
7229
|
]),
|
|
6173
|
-
|
|
6174
|
-
|
|
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
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
7233
|
+
ao,
|
|
7234
|
+
c("p", io, [
|
|
7235
|
+
c("span", {
|
|
6179
7236
|
innerHTML: e.ssoLang[this.appLanguage].reset_password_p1
|
|
6180
|
-
}, null, 8,
|
|
6181
|
-
|
|
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,
|
|
7240
|
+
}, " support@tapni.com", 8, ro)
|
|
6184
7241
|
]),
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
7242
|
+
so,
|
|
7243
|
+
c("div", co, [
|
|
7244
|
+
j(h, {
|
|
6188
7245
|
class: "create float-right",
|
|
6189
7246
|
to: "/verify"
|
|
6190
7247
|
}, {
|
|
6191
|
-
default:
|
|
6192
|
-
|
|
7248
|
+
default: G(() => [
|
|
7249
|
+
I(y(e.ssoLang[this.appLanguage].verify_account), 1)
|
|
6193
7250
|
]),
|
|
6194
7251
|
_: 1
|
|
6195
7252
|
}),
|
|
6196
|
-
|
|
7253
|
+
j(h, {
|
|
6197
7254
|
class: "forgot float-left",
|
|
6198
7255
|
to: "/login"
|
|
6199
7256
|
}, {
|
|
6200
|
-
default:
|
|
6201
|
-
|
|
7257
|
+
default: G(() => [
|
|
7258
|
+
I(y(e.ssoLang[this.appLanguage].sign_in), 1)
|
|
6202
7259
|
]),
|
|
6203
7260
|
_: 1
|
|
6204
7261
|
}),
|
|
6205
|
-
|
|
7262
|
+
lo
|
|
6206
7263
|
])
|
|
6207
7264
|
], 32));
|
|
6208
7265
|
}
|
|
6209
|
-
const
|
|
7266
|
+
const bn = /* @__PURE__ */ $(Qi, [["render", Ao], ["__scopeId", "data-v-4f85b89a"]]), Po = {
|
|
6210
7267
|
name: "AuthCallback",
|
|
6211
|
-
mixins: [
|
|
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 =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
6237
|
-
return
|
|
6238
|
-
(e.$route.query.platform === "android" || e.$route.query.platform === "ios") && !e.isNative ? (
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
onClick:
|
|
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
|
-
},
|
|
6246
|
-
|
|
6247
|
-
])) : (
|
|
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
|
|
7307
|
+
const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
|
|
6251
7308
|
name: "ModalOverlay",
|
|
6252
|
-
mixins: [
|
|
7309
|
+
mixins: [D],
|
|
6253
7310
|
data() {
|
|
6254
7311
|
return {
|
|
6255
7312
|
toggle: !1
|
|
6256
7313
|
};
|
|
6257
7314
|
},
|
|
6258
7315
|
mounted() {
|
|
6259
|
-
|
|
7316
|
+
v.$on("closeModal", () => {
|
|
6260
7317
|
this.toggle = !1, window.document.body.style.overflow = "auto", window.document.body.style.height = "auto";
|
|
6261
|
-
}),
|
|
7318
|
+
}), v.$on("openModalOverlay", () => {
|
|
6262
7319
|
this.toggle = !0;
|
|
6263
|
-
}),
|
|
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,
|
|
6271
|
-
!this.isLoggedIn && ((
|
|
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
|
|
6276
|
-
return
|
|
6277
|
-
class:
|
|
6278
|
-
onClick:
|
|
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
|
|
7338
|
+
const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
|
|
6282
7339
|
name: "SSO",
|
|
6283
|
-
mixins: [
|
|
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
|
-
|
|
7349
|
+
v.$on("toggleSSOModal", this.toggleModal), v.$on("closeModal", () => {
|
|
6293
7350
|
this.toggle = !1;
|
|
6294
7351
|
});
|
|
6295
7352
|
},
|
|
6296
7353
|
beforeDestroy() {
|
|
6297
|
-
|
|
7354
|
+
v._events.toggleSSOModal.pop();
|
|
6298
7355
|
},
|
|
6299
7356
|
methods: {
|
|
6300
7357
|
forceClose() {
|
|
6301
|
-
|
|
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
|
|
7367
|
+
let t;
|
|
6311
7368
|
if (!(!e || e.error))
|
|
6312
|
-
if (
|
|
6313
|
-
|
|
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
|
-
},
|
|
6325
|
-
/* @__PURE__ */
|
|
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)),
|
|
6331
|
-
|
|
6332
|
-
],
|
|
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
|
-
},
|
|
7393
|
+
}, Ho = { key: 0 }, Qo = {
|
|
6337
7394
|
key: 1,
|
|
6338
7395
|
class: "button--loading button__loader"
|
|
6339
7396
|
};
|
|
6340
|
-
function
|
|
6341
|
-
return
|
|
6342
|
-
onSubmit:
|
|
6343
|
-
class:
|
|
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
|
-
|
|
6347
|
-
onClick:
|
|
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
|
-
},
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
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":
|
|
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:
|
|
7421
|
+
onKeydown: t[2] || (t[2] = te(U(() => {
|
|
6365
7422
|
}, ["prevent"]), ["space"]))
|
|
6366
|
-
}, null, 40,
|
|
6367
|
-
[
|
|
7423
|
+
}, null, 40, Ko), [
|
|
7424
|
+
[ae, l.email]
|
|
6368
7425
|
])
|
|
6369
7426
|
]),
|
|
6370
|
-
|
|
6371
|
-
|
|
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
|
|
7432
|
+
const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09"]]), Wo = {
|
|
6376
7433
|
name: "SSOPick",
|
|
6377
|
-
mixins: [
|
|
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
|
-
|
|
7446
|
+
v.$on("toggleSSOPickModal", this.toggleModal), v.$on("closeModal", () => {
|
|
6390
7447
|
this.toggle = !1;
|
|
6391
7448
|
});
|
|
6392
7449
|
},
|
|
6393
7450
|
beforeDestroy() {
|
|
6394
|
-
|
|
7451
|
+
v._events.toggleSSOPickModal.pop();
|
|
6395
7452
|
},
|
|
6396
7453
|
methods: {
|
|
6397
7454
|
forceClose() {
|
|
6398
|
-
|
|
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
|
-
},
|
|
6411
|
-
/* @__PURE__ */
|
|
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)),
|
|
6417
|
-
|
|
6418
|
-
],
|
|
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)),
|
|
7478
|
+
}, null, -1)), er = { key: 0 }, nr = {
|
|
6422
7479
|
key: 1,
|
|
6423
7480
|
class: "button--loading button__loader"
|
|
6424
|
-
},
|
|
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)),
|
|
7484
|
+
}, null, -1)), ar = { key: 0 }, ir = {
|
|
6428
7485
|
key: 1,
|
|
6429
7486
|
class: "button--loading button__loader"
|
|
6430
|
-
},
|
|
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)),
|
|
7490
|
+
}, null, -1)), rr = { key: 0 }, sr = {
|
|
6434
7491
|
key: 1,
|
|
6435
7492
|
class: "button--loading button__loader"
|
|
6436
7493
|
};
|
|
6437
|
-
function
|
|
6438
|
-
var
|
|
6439
|
-
return
|
|
6440
|
-
onSubmit:
|
|
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:
|
|
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
|
-
|
|
6446
|
-
onClick:
|
|
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
|
-
},
|
|
6450
|
-
|
|
6451
|
-
(
|
|
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:
|
|
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
|
-
|
|
6457
|
-
|
|
6458
|
-
])) :
|
|
6459
|
-
(
|
|
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:
|
|
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
|
-
|
|
6465
|
-
|
|
6466
|
-
])) :
|
|
6467
|
-
(
|
|
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:
|
|
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
|
-
|
|
6473
|
-
|
|
6474
|
-
])) :
|
|
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
|
|
7534
|
+
const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65"]]), lr = {
|
|
6478
7535
|
name: "LinkIcon",
|
|
6479
|
-
mixins: [
|
|
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
|
-
},
|
|
6550
|
-
function
|
|
6551
|
-
var
|
|
6552
|
-
return
|
|
6553
|
-
class:
|
|
6554
|
-
style:
|
|
6555
|
-
(
|
|
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
|
-
|
|
6559
|
-
class:
|
|
7615
|
+
c("span", {
|
|
7616
|
+
class: R({
|
|
6560
7617
|
"user-link-img": !0,
|
|
6561
|
-
"pulse pulse-border":
|
|
6562
|
-
"link-drag":
|
|
7618
|
+
"pulse pulse-border": r.pulse,
|
|
7619
|
+
"link-drag": r.editing
|
|
6563
7620
|
}),
|
|
6564
|
-
style:
|
|
7621
|
+
style: ce({ ...(h = r.customLinkStyle) == null ? void 0 : h.linkIcon })
|
|
6565
7622
|
}, [
|
|
6566
|
-
!
|
|
7623
|
+
!r.data.custom_icon && r.data.type !== "customlink" ? (f(), k("img", {
|
|
6567
7624
|
key: 0,
|
|
6568
|
-
src: "https://cdn.tapni.co/icons/" +
|
|
7625
|
+
src: "https://cdn.tapni.co/icons/" + r.data.type + ".png",
|
|
6569
7626
|
class: "responsive-image",
|
|
6570
|
-
alt:
|
|
6571
|
-
onLoad:
|
|
6572
|
-
onError:
|
|
6573
|
-
}, null, 40,
|
|
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:
|
|
6578
|
-
onLoad:
|
|
6579
|
-
onError:
|
|
6580
|
-
}, null, 40,
|
|
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:
|
|
6585
|
-
onLoad:
|
|
6586
|
-
onError:
|
|
6587
|
-
}, null, 40,
|
|
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:
|
|
7646
|
+
src: r.data.style.custom_icon,
|
|
6590
7647
|
style: { "border-radius": "22.46%" },
|
|
6591
7648
|
class: "responsive-image",
|
|
6592
|
-
alt:
|
|
6593
|
-
onLoad:
|
|
6594
|
-
onError:
|
|
6595
|
-
}, null, 40,
|
|
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
|
-
|
|
7654
|
+
c("span", {
|
|
6598
7655
|
class: "link-text link-drag color-black",
|
|
6599
|
-
style:
|
|
6600
|
-
}, d
|
|
7656
|
+
style: ce({ color: (m = r.customLinkStyle) == null ? void 0 : m.color })
|
|
7657
|
+
}, y(d.linkText), 5)
|
|
6601
7658
|
], 6);
|
|
6602
7659
|
}
|
|
6603
|
-
const
|
|
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
|
-
},
|
|
7667
|
+
}, fr = {
|
|
6611
7668
|
name: "Language",
|
|
6612
|
-
mixins: [
|
|
6613
|
-
components: { LinkIcon:
|
|
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
|
-
|
|
7677
|
+
v.$on("toggleLanguageModal", this.toggleModal), v.$on("closeModal", () => {
|
|
6621
7678
|
this.toggle = !1;
|
|
6622
7679
|
});
|
|
6623
|
-
let e = this.isNative ? await
|
|
6624
|
-
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
|
-
|
|
7684
|
+
v._events.toggleLanguageModal.pop();
|
|
6628
7685
|
},
|
|
6629
7686
|
methods: {
|
|
6630
7687
|
forceClose() {
|
|
6631
|
-
|
|
7688
|
+
v.$emit("closeModal");
|
|
6632
7689
|
},
|
|
6633
7690
|
close() {
|
|
6634
7691
|
this.forceClose();
|
|
6635
7692
|
},
|
|
6636
7693
|
async updateLanguage(e) {
|
|
6637
|
-
|
|
7694
|
+
v.$emit("updateLang", e), v.$emit("closeModal");
|
|
6638
7695
|
},
|
|
6639
7696
|
toggleModal() {
|
|
6640
7697
|
this.toggle = !this.toggle;
|
|
6641
7698
|
}
|
|
6642
7699
|
}
|
|
6643
|
-
},
|
|
6644
|
-
/* @__PURE__ */
|
|
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)),
|
|
6650
|
-
|
|
6651
|
-
],
|
|
6652
|
-
function
|
|
6653
|
-
const
|
|
6654
|
-
return
|
|
6655
|
-
class:
|
|
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
|
-
|
|
6659
|
-
onClick:
|
|
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
|
-
},
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
onClick:
|
|
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:
|
|
7726
|
+
class: R({ "add-button": !0 })
|
|
6670
7727
|
}, null, 8, ["data"]),
|
|
6671
|
-
|
|
6672
|
-
onClick:
|
|
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:
|
|
7733
|
+
class: R({ "add-button": !0 })
|
|
6677
7734
|
}, null, 8, ["data"]),
|
|
6678
|
-
|
|
6679
|
-
onClick:
|
|
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:
|
|
7740
|
+
class: R({ "add-button": !0 })
|
|
6684
7741
|
}, null, 8, ["data"]),
|
|
6685
|
-
|
|
6686
|
-
onClick:
|
|
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:
|
|
7747
|
+
class: R({ "add-button": !0 })
|
|
6691
7748
|
}, null, 8, ["data"]),
|
|
6692
|
-
|
|
6693
|
-
onClick:
|
|
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:
|
|
7754
|
+
class: R({ "add-button": !0 })
|
|
6698
7755
|
}, null, 8, ["data"]),
|
|
6699
|
-
|
|
6700
|
-
onClick:
|
|
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:
|
|
7761
|
+
class: R({ "add-button": !0 })
|
|
6705
7762
|
}, null, 8, ["data"]),
|
|
6706
|
-
|
|
6707
|
-
onClick:
|
|
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:
|
|
7768
|
+
class: R({ "add-button": !0 })
|
|
6712
7769
|
}, null, 8, ["data"]),
|
|
6713
|
-
|
|
6714
|
-
onClick:
|
|
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:
|
|
7775
|
+
class: R({ "add-button": !0 })
|
|
6719
7776
|
}, null, 8, ["data"])
|
|
6720
7777
|
], 2);
|
|
6721
7778
|
}
|
|
6722
|
-
const
|
|
6723
|
-
var
|
|
6724
|
-
const
|
|
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
|
-
},
|
|
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),
|
|
6733
|
-
|
|
6734
|
-
],
|
|
7789
|
+
}, null, -1), Tr = [
|
|
7790
|
+
Sr
|
|
7791
|
+
], Er = { class: "lang-icon" }, Ir = {
|
|
6735
7792
|
class: "snackbar snackbar-boxed",
|
|
6736
7793
|
id: "snackbar"
|
|
6737
|
-
},
|
|
7794
|
+
}, Ar = {
|
|
6738
7795
|
class: "snack-body",
|
|
6739
7796
|
id: "errorSnack"
|
|
6740
|
-
},
|
|
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),
|
|
6744
|
-
|
|
6745
|
-
],
|
|
7800
|
+
}, null, -1), xr = [
|
|
7801
|
+
jr
|
|
7802
|
+
], Br = {
|
|
6746
7803
|
class: "snack-body",
|
|
6747
7804
|
id: "successSnack"
|
|
6748
|
-
},
|
|
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),
|
|
6752
|
-
|
|
6753
|
-
],
|
|
7808
|
+
}, null, -1), qr = [
|
|
7809
|
+
Rr
|
|
7810
|
+
], Nr = {
|
|
6754
7811
|
name: "TapniAuth",
|
|
6755
|
-
mixins: [
|
|
7812
|
+
mixins: [D],
|
|
6756
7813
|
data() {
|
|
6757
7814
|
return {
|
|
6758
7815
|
isSetup: !1
|
|
6759
7816
|
};
|
|
6760
7817
|
},
|
|
6761
7818
|
components: {
|
|
6762
|
-
Language:
|
|
6763
|
-
SSOPick:
|
|
6764
|
-
SSO:
|
|
6765
|
-
ModalOverlay:
|
|
6766
|
-
AuthCallback:
|
|
6767
|
-
AuthReset:
|
|
6768
|
-
AuthVerify:
|
|
6769
|
-
AuthRegister:
|
|
6770
|
-
AuthLogin:
|
|
6771
|
-
AuthWelcome:
|
|
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(),
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
7874
|
+
}, Ze = /* @__PURE__ */ Object.assign(Nr, {
|
|
6818
7875
|
setup(e) {
|
|
6819
7876
|
return document.addEventListener("DOMContentLoaded", function() {
|
|
6820
|
-
const
|
|
6821
|
-
|
|
6822
|
-
}), (
|
|
6823
|
-
|
|
6824
|
-
|
|
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:
|
|
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
|
-
|
|
6831
|
-
])) :
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
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"])) :
|
|
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"])) :
|
|
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"])) :
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
onClick:
|
|
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
|
-
},
|
|
7909
|
+
}, xr)
|
|
6853
7910
|
]),
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
onClick:
|
|
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
|
-
},
|
|
7916
|
+
}, qr)
|
|
6860
7917
|
])
|
|
6861
7918
|
])
|
|
6862
7919
|
]));
|
|
6863
7920
|
}
|
|
6864
|
-
}),
|
|
6865
|
-
TapniAuth:
|
|
7921
|
+
}), ns = {
|
|
7922
|
+
TapniAuth: Ze,
|
|
6866
7923
|
install: (e) => {
|
|
6867
|
-
e.component("TapniAuth",
|
|
7924
|
+
e.component("TapniAuth", Ze);
|
|
6868
7925
|
}
|
|
6869
7926
|
};
|
|
6870
7927
|
export {
|
|
6871
|
-
|
|
7928
|
+
ns as default
|
|
6872
7929
|
};
|