@tapni/auth 0.0.3 → 0.0.5
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 +96 -96
- package/dist/TapniAuth.umd.js +10 -10
- package/package.json +1 -1
- package/src/App.vue +1 -1
- package/src/mixins/auth.mixin.js +9 -9
- package/src/services/UtilService.js +18 -8
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { RouterView as
|
|
1
|
+
import { reactive as Ce, readonly as Te, resolveComponent as V, openBlock as c, createElementBlock as l, createElementVNode as i, toDisplayString as p, createCommentVNode as h, createVNode as v, withCtx as j, createTextVNode as f, pushScopeId as O, popScopeId as B, createStaticVNode as je, nextTick as Z, withModifiers as y, normalizeStyle as R, withDirectives as k, withKeys as E, vModelText as x, vModelDynamic as U, vShow as I, createBlock as P, normalizeClass as b, unref as Pe } from "vue";
|
|
2
|
+
import { RouterView as Ae } from "vue-router";
|
|
3
3
|
import g from "await-to-js";
|
|
4
4
|
import K from "axios";
|
|
5
5
|
import { jwtDecode as ae } from "jwt-decode";
|
|
6
6
|
import { Device as H } from "@capacitor/device";
|
|
7
|
-
import { StorageMixin as ne, StorageService as
|
|
7
|
+
import { StorageMixin as ne, StorageService as Ie } from "@tapni/capacitor-reactive-localstorage-vue3";
|
|
8
8
|
import { GoogleAuth as J } from "@codetrix-studio/capacitor-google-auth";
|
|
9
|
-
import { FacebookLogin as
|
|
10
|
-
import { SignInWithApple as
|
|
11
|
-
import { MsAuthPlugin as
|
|
9
|
+
import { FacebookLogin as Ee } from "@capacitor-community/facebook-login";
|
|
10
|
+
import { SignInWithApple as xe } from "@capacitor-community/apple-sign-in";
|
|
11
|
+
import { MsAuthPlugin as qe } from "@recognizebv/capacitor-plugin-msauth";
|
|
12
12
|
import { Capacitor as ie } from "@capacitor/core";
|
|
13
13
|
import { Browser as F } from "@capacitor/browser";
|
|
14
|
-
import
|
|
15
|
-
import { sanitizeUrl as
|
|
16
|
-
const
|
|
17
|
-
const n =
|
|
14
|
+
import Me from "qr-code-styling";
|
|
15
|
+
import { sanitizeUrl as Re } from "@braintree/sanitize-url";
|
|
16
|
+
const Ne = "0.0.5", m = (e, a = !1) => {
|
|
17
|
+
const n = Ne;
|
|
18
18
|
let o = K.create({
|
|
19
19
|
baseURL: "https://api.tapni.co/v1/",
|
|
20
20
|
headers: {
|
|
@@ -158,7 +158,7 @@ const w = {
|
|
|
158
158
|
qrCodePooling(e, a) {
|
|
159
159
|
return m(a).post("/company/login/qr", e);
|
|
160
160
|
}
|
|
161
|
-
}, D =
|
|
161
|
+
}, D = Ce(/* @__PURE__ */ new Map()), d = {
|
|
162
162
|
$on(e, a) {
|
|
163
163
|
let n = D.get(e);
|
|
164
164
|
n || (n = /* @__PURE__ */ new Set(), D.set(e, n)), n.add(a);
|
|
@@ -174,8 +174,8 @@ const w = {
|
|
|
174
174
|
n && n.delete(a);
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
|
-
|
|
178
|
-
const
|
|
177
|
+
Te(d);
|
|
178
|
+
const te = {
|
|
179
179
|
state: {
|
|
180
180
|
english: "English",
|
|
181
181
|
spanish: "Spanish",
|
|
@@ -632,7 +632,7 @@ const Ae = {
|
|
|
632
632
|
choose_other_login_methods: "Choose other login methods",
|
|
633
633
|
no_sso_logins: "Your company does not use SSO login, please contact your administrator"
|
|
634
634
|
}
|
|
635
|
-
},
|
|
635
|
+
}, oe = {
|
|
636
636
|
state: {
|
|
637
637
|
english: "Englisch",
|
|
638
638
|
spanish: "Spanisch",
|
|
@@ -1084,7 +1084,7 @@ const Ae = {
|
|
|
1084
1084
|
choose_other_login_methods: "Wählen Sie andere Anmeldeverfahren",
|
|
1085
1085
|
no_sso_logins: "Ihr Unternehmen verwendet keine SSO-Anmeldung. Bitte wenden Sie sich an Ihren Administrator"
|
|
1086
1086
|
}
|
|
1087
|
-
},
|
|
1087
|
+
}, re = {
|
|
1088
1088
|
state: {
|
|
1089
1089
|
english: "Inglés",
|
|
1090
1090
|
spanish: "Español",
|
|
@@ -1540,7 +1540,7 @@ const Ae = {
|
|
|
1540
1540
|
choose_other_login_methods: "Elige otros métodos de inicio de sesión",
|
|
1541
1541
|
no_sso_logins: "Su empresa no utiliza el inicio de sesión SSO. Comuníquese con su administrador"
|
|
1542
1542
|
}
|
|
1543
|
-
},
|
|
1543
|
+
}, se = {
|
|
1544
1544
|
state: {
|
|
1545
1545
|
english: "Anglais",
|
|
1546
1546
|
spanish: "Espagnol",
|
|
@@ -1998,7 +1998,7 @@ Il n'y a aucun lien dans votre profil.`,
|
|
|
1998
1998
|
choose_other_login_methods: "Choisissez d'autres méthodes de connexion",
|
|
1999
1999
|
no_sso_logins: "Votre entreprise n'utilise pas de login SSO, veuillez contacter votre administrateur"
|
|
2000
2000
|
}
|
|
2001
|
-
},
|
|
2001
|
+
}, ce = {
|
|
2002
2002
|
state: {
|
|
2003
2003
|
english: "Inglese",
|
|
2004
2004
|
spanish: "Spagnolo",
|
|
@@ -2451,7 +2451,7 @@ Il n'y a aucun lien dans votre profil.`,
|
|
|
2451
2451
|
choose_other_login_methods: "Scegli altri metodi di accesso",
|
|
2452
2452
|
no_sso_logins: "La tua azienda non utilizza l'accesso SSO, contatta il tuo amministratore"
|
|
2453
2453
|
}
|
|
2454
|
-
},
|
|
2454
|
+
}, le = {
|
|
2455
2455
|
state: {
|
|
2456
2456
|
english: "Engleski",
|
|
2457
2457
|
spanish: "Španski",
|
|
@@ -2896,7 +2896,7 @@ Il n'y a aucun lien dans votre profil.`,
|
|
|
2896
2896
|
choose_other_login_methods: "Izaberite druge metode prijavljivanja",
|
|
2897
2897
|
no_sso_logins: "Vaša kompanija ne koristi SSO prijavu, kontaktirajte svog administratora"
|
|
2898
2898
|
}
|
|
2899
|
-
},
|
|
2899
|
+
}, de = {
|
|
2900
2900
|
state: {
|
|
2901
2901
|
english: "İngilizce",
|
|
2902
2902
|
spanish: "İspanyolca",
|
|
@@ -3346,7 +3346,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
3346
3346
|
choose_other_login_methods: "Diğer giriş yöntemlerini seçin",
|
|
3347
3347
|
no_sso_logins: "Şirketiniz SSO girişini kullanmıyor, lütfen yöneticinizle iletişime geçin"
|
|
3348
3348
|
}
|
|
3349
|
-
},
|
|
3349
|
+
}, Ve = {
|
|
3350
3350
|
state: {
|
|
3351
3351
|
english: "英文",
|
|
3352
3352
|
spanish: "西班牙文",
|
|
@@ -3794,7 +3794,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
3794
3794
|
choose_other_login_methods: "选择其他登录方法",
|
|
3795
3795
|
no_sso_logins: "您的公司不使用 SSO 登录。 请联系您的管理员"
|
|
3796
3796
|
}
|
|
3797
|
-
},
|
|
3797
|
+
}, pe = {
|
|
3798
3798
|
state: {
|
|
3799
3799
|
english: "영어",
|
|
3800
3800
|
spanish: "스페인어",
|
|
@@ -4266,15 +4266,15 @@ const z = {
|
|
|
4266
4266
|
device: {},
|
|
4267
4267
|
loggedInAccounts: {},
|
|
4268
4268
|
ssoLang: {
|
|
4269
|
-
en:
|
|
4270
|
-
de:
|
|
4271
|
-
es:
|
|
4272
|
-
fr:
|
|
4273
|
-
it:
|
|
4274
|
-
sr:
|
|
4275
|
-
tr:
|
|
4276
|
-
cn:
|
|
4277
|
-
kr:
|
|
4269
|
+
en: te.state,
|
|
4270
|
+
de: oe.state,
|
|
4271
|
+
es: re.state,
|
|
4272
|
+
fr: se.state,
|
|
4273
|
+
it: ce.state,
|
|
4274
|
+
sr: le.state,
|
|
4275
|
+
tr: de.state,
|
|
4276
|
+
cn: Ve.state,
|
|
4277
|
+
kr: pe.state
|
|
4278
4278
|
},
|
|
4279
4279
|
display: "npm",
|
|
4280
4280
|
redirect_uri: "https://t.link/callback/auth",
|
|
@@ -4595,18 +4595,18 @@ const z = {
|
|
|
4595
4595
|
}, 1500), d.$emit("ssoEvent", { name: "setInitialize", data: !0 });
|
|
4596
4596
|
},
|
|
4597
4597
|
methods: {}
|
|
4598
|
-
},
|
|
4598
|
+
}, ue = (e) => (O("data-v-bf520ec5"), e = e(), B(), e), De = {
|
|
4599
4599
|
class: "page-login content-boxed content-boxed-padding center-text",
|
|
4600
4600
|
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
4601
|
-
}, Ue = ["autoplay"], Ke = /* @__PURE__ */
|
|
4601
|
+
}, Ue = ["autoplay"], Ke = /* @__PURE__ */ ue(() => /* @__PURE__ */ i("source", {
|
|
4602
4602
|
src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
|
|
4603
4603
|
type: "video/mp4"
|
|
4604
4604
|
}, null, -1)), He = [
|
|
4605
4605
|
Ke
|
|
4606
|
-
], Fe = { class: "bold full-top no-bottom center-text" }, Qe = { class: "full-bottom half-top center-text color-black font-16" }, $e = { class: "page-login-links center-text" }, Ge = /* @__PURE__ */
|
|
4606
|
+
], Fe = { class: "bold full-top no-bottom center-text" }, Qe = { class: "full-bottom half-top center-text color-black font-16" }, $e = { class: "page-login-links center-text" }, Ge = /* @__PURE__ */ ue(() => /* @__PURE__ */ i("div", { class: "clear" }, null, -1)), We = {
|
|
4607
4607
|
key: 2,
|
|
4608
4608
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
4609
|
-
}, Ye = /* @__PURE__ */
|
|
4609
|
+
}, Ye = /* @__PURE__ */ je('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-bf520ec5><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-bf520ec5></a>', 3), Xe = [
|
|
4610
4610
|
Ye
|
|
4611
4611
|
];
|
|
4612
4612
|
function Ze(e, a, n, o, t, r) {
|
|
@@ -4648,7 +4648,7 @@ function Ze(e, a, n, o, t, r) {
|
|
|
4648
4648
|
this.isNative ? h("", !0) : (c(), l("div", We, Xe))
|
|
4649
4649
|
]);
|
|
4650
4650
|
}
|
|
4651
|
-
const
|
|
4651
|
+
const _e = /* @__PURE__ */ T(Be, [["render", Ze], ["__scopeId", "data-v-bf520ec5"]]), me = {
|
|
4652
4652
|
data() {
|
|
4653
4653
|
return {
|
|
4654
4654
|
googleLoad: !1
|
|
@@ -4703,7 +4703,7 @@ window.fbAsyncInit = function() {
|
|
|
4703
4703
|
var o, t = e.getElementsByTagName(a)[0];
|
|
4704
4704
|
e.getElementById(n) || (o = e.createElement(a), o.id = n, o.src = "https://connect.facebook.net/en_US/sdk.js", t.parentNode.insertBefore(o, t));
|
|
4705
4705
|
})(document, "script", "facebook-jssdk");
|
|
4706
|
-
const
|
|
4706
|
+
const ge = {
|
|
4707
4707
|
data() {
|
|
4708
4708
|
return {
|
|
4709
4709
|
facebookLoad: !1
|
|
@@ -4721,7 +4721,7 @@ const se = {
|
|
|
4721
4721
|
async facebookLogin() {
|
|
4722
4722
|
var o;
|
|
4723
4723
|
this.facebookLoad = !0;
|
|
4724
|
-
const e = ["email"], [a, n] = await g(
|
|
4724
|
+
const e = ["email"], [a, n] = await g(Ee.login({ permissions: e }));
|
|
4725
4725
|
if (a)
|
|
4726
4726
|
return this.facebookLoad = !1;
|
|
4727
4727
|
if (this.referral && (n.ref = this.referral), this.display === "popup" && (n.response_type = "code"), n.accessToken) {
|
|
@@ -4740,7 +4740,7 @@ const se = {
|
|
|
4740
4740
|
this.facebookLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4741
4741
|
}
|
|
4742
4742
|
}
|
|
4743
|
-
},
|
|
4743
|
+
}, he = {
|
|
4744
4744
|
data() {
|
|
4745
4745
|
return {
|
|
4746
4746
|
appleLoad: !1
|
|
@@ -4756,7 +4756,7 @@ const se = {
|
|
|
4756
4756
|
async appleLogin() {
|
|
4757
4757
|
var n;
|
|
4758
4758
|
this.appleLoad = !0;
|
|
4759
|
-
const [e, a] = await g(
|
|
4759
|
+
const [e, a] = await g(xe.authorize({
|
|
4760
4760
|
clientId: "co.tapni.applelogin",
|
|
4761
4761
|
redirectURI: "https://" + window.location.host + "/login",
|
|
4762
4762
|
scopes: "email name"
|
|
@@ -4800,7 +4800,7 @@ const Q = {
|
|
|
4800
4800
|
var t, r, u;
|
|
4801
4801
|
e === "sso" ? this.microsoftSSOLoad = !0 : this.microsoftLoad = !0, Object.keys(a).length || (a = ((r = (t = this.ssoCompany.sso) == null ? void 0 : t.azure) == null ? void 0 : r.sso) || {});
|
|
4802
4802
|
const [n, o] = await g(
|
|
4803
|
-
|
|
4803
|
+
qe.login({
|
|
4804
4804
|
clientId: e === "sso" ? a.clientID : "9cd47053-080a-4df8-8fd8-ca4389163fde",
|
|
4805
4805
|
tenant: e === "sso" ? a.tenant : "consumers",
|
|
4806
4806
|
scopes: ["User.Read"],
|
|
@@ -4850,7 +4850,7 @@ const Q = {
|
|
|
4850
4850
|
return null;
|
|
4851
4851
|
},
|
|
4852
4852
|
compareLangKeys() {
|
|
4853
|
-
const e = Object.keys(
|
|
4853
|
+
const e = Object.keys(te.default.state), a = Object.keys(oe.default.state), n = Object.keys(re.default.state), o = Object.keys(pe.default.state), t = Object.keys(ce.default.state), r = Object.keys(se.default.state), u = Object.keys(le.default.state), s = Object.keys(de.default.state);
|
|
4854
4854
|
console.log("In en but not in de", e.filter((_) => !a.includes(_))), console.log("In de but not in en", a.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in es", e.filter((_) => !n.includes(_))), console.log("In es but not in en", n.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in kr", e.filter((_) => !o.includes(_))), console.log("In kr but not in en", o.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in it", e.filter((_) => !t.includes(_))), console.log("In it but not in en", t.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in fr", e.filter((_) => !r.includes(_))), console.log("In fr but not in en", r.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in sr", e.filter((_) => !u.includes(_))), console.log("In sr but not in en", u.filter((_) => !e.includes(_))), console.log(), console.log("In en but not in tr", e.filter((_) => !s.includes(_))), console.log("In tr but not in en", s.filter((_) => !e.includes(_))), console.log();
|
|
4855
4855
|
},
|
|
4856
4856
|
base64ImageToBlob(e) {
|
|
@@ -4885,8 +4885,8 @@ const Q = {
|
|
|
4885
4885
|
cropCardScan(e, a) {
|
|
4886
4886
|
const n = new window.Image(), o = document.createElement("canvas"), t = o.getContext("2d");
|
|
4887
4887
|
n.src = "data:image/jpeg;base64," + e, n.onload = () => {
|
|
4888
|
-
const r = n.width, u = n.width / 1.65, s = 0, _ = n.height / 2 - u / 2, L = r,
|
|
4889
|
-
o.width = L, o.height =
|
|
4888
|
+
const r = n.width, u = n.width / 1.65, s = 0, _ = n.height / 2 - u / 2, L = r, q = u;
|
|
4889
|
+
o.width = L, o.height = q, t.drawImage(n, s, _, r, u, 0, 0, L, q);
|
|
4890
4890
|
const X = o.toDataURL();
|
|
4891
4891
|
return a(X), X;
|
|
4892
4892
|
};
|
|
@@ -4963,10 +4963,10 @@ const Q = {
|
|
|
4963
4963
|
let t = await N.pkceChallengeFromVerifier(o), r = e.domain + "/v1/authorize", u;
|
|
4964
4964
|
this.isNative ? u = "tapni://t.link/callback/okta" : u = location.origin + "/callback/okta";
|
|
4965
4965
|
let s = r + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(n) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(u) + "&code_challenge=" + encodeURIComponent(t) + "&code_challenge_method=S256", _ = this, L;
|
|
4966
|
-
window.addEventListener("message", async (
|
|
4967
|
-
if (!this.allowedOrigins.includes(
|
|
4966
|
+
window.addEventListener("message", async (q) => {
|
|
4967
|
+
if (!this.allowedOrigins.includes(q.origin))
|
|
4968
4968
|
return console.log("Origin is not allowed!");
|
|
4969
|
-
|
|
4969
|
+
q.data.type === "okta" && (L = q.data.code, await _.exchangeCode({ domain: e.domain, code: L, clientID: e.clientID }));
|
|
4970
4970
|
}, { once: !0 }), this.isNative ? await F.open({ url: s, presentationStyle: "popover" }) : window.open(s, "popup", "width=600,height=600");
|
|
4971
4971
|
},
|
|
4972
4972
|
async handleOktaRedirect() {
|
|
@@ -5061,7 +5061,7 @@ const Q = {
|
|
|
5061
5061
|
},
|
|
5062
5062
|
refreshQrCode() {
|
|
5063
5063
|
var e, a;
|
|
5064
|
-
this.qrCode && ((a = (e = document.getElementById("qrCodeContainer")) == null ? void 0 : e.childNodes[0]) == null || a.remove()), this.qrCodeHash = this.generateRandomHash(), this.qrCode = new
|
|
5064
|
+
this.qrCode && ((a = (e = document.getElementById("qrCodeContainer")) == null ? void 0 : e.childNodes[0]) == null || a.remove()), this.qrCodeHash = this.generateRandomHash(), this.qrCode = new Me({
|
|
5065
5065
|
width: 300,
|
|
5066
5066
|
height: 300,
|
|
5067
5067
|
type: "png",
|
|
@@ -5105,7 +5105,7 @@ const Q = {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
}, aa = {
|
|
5107
5107
|
name: "AuthLogin",
|
|
5108
|
-
mixins: [
|
|
5108
|
+
mixins: [me, ge, he, Q, $, G, z, ea],
|
|
5109
5109
|
props: {
|
|
5110
5110
|
isModal: {
|
|
5111
5111
|
type: Boolean,
|
|
@@ -5243,7 +5243,7 @@ const Q = {
|
|
|
5243
5243
|
}, Ea = /* @__PURE__ */ i("img", {
|
|
5244
5244
|
src: "https://cdn.tapni.co/icons/sso-key.png",
|
|
5245
5245
|
style: { position: "absolute", "margin-left": "-8px", padding: "10px 0", height: "100%" }
|
|
5246
|
-
}, null, -1),
|
|
5246
|
+
}, null, -1), xa = { key: 0 }, qa = {
|
|
5247
5247
|
key: 1,
|
|
5248
5248
|
class: "button--loading-black button__loader"
|
|
5249
5249
|
}, Ma = /* @__PURE__ */ i("img", {
|
|
@@ -5293,7 +5293,7 @@ function Ya(e, a, n, o, t, r) {
|
|
|
5293
5293
|
placeholder: e.ssoLang[this.appLang].email_username,
|
|
5294
5294
|
required: ""
|
|
5295
5295
|
}, null, 40, la), [
|
|
5296
|
-
[
|
|
5296
|
+
[x, t.emailOrUsername]
|
|
5297
5297
|
]),
|
|
5298
5298
|
da
|
|
5299
5299
|
]),
|
|
@@ -5364,7 +5364,7 @@ function Ya(e, a, n, o, t, r) {
|
|
|
5364
5364
|
class: "button-center button button-90 google-button pointer"
|
|
5365
5365
|
}, [
|
|
5366
5366
|
Ea,
|
|
5367
|
-
e.microsoftSSOLoad ? (c(), l("span",
|
|
5367
|
+
e.microsoftSSOLoad ? (c(), l("span", qa)) : (c(), l("span", xa, p(e.ssoLang[e.appLang].sign_in_with) + " SSO", 1))
|
|
5368
5368
|
])),
|
|
5369
5369
|
e.displayMicrosoftSSOLogin ? (c(), l("a", {
|
|
5370
5370
|
key: 7,
|
|
@@ -5427,9 +5427,9 @@ function Ya(e, a, n, o, t, r) {
|
|
|
5427
5427
|
]))
|
|
5428
5428
|
], 36);
|
|
5429
5429
|
}
|
|
5430
|
-
const
|
|
5430
|
+
const fe = /* @__PURE__ */ T(aa, [["render", Ya]]), Xa = {
|
|
5431
5431
|
name: "AuthRegister",
|
|
5432
|
-
mixins: [
|
|
5432
|
+
mixins: [me, ge, he, Q, z],
|
|
5433
5433
|
props: {
|
|
5434
5434
|
isModal: {
|
|
5435
5435
|
type: Boolean,
|
|
@@ -5556,7 +5556,7 @@ const le = /* @__PURE__ */ T(aa, [["render", Ya]]), Xa = {
|
|
|
5556
5556
|
}, En = /* @__PURE__ */ i("img", {
|
|
5557
5557
|
src: "https://cdn.tapni.co/icons/mail.png",
|
|
5558
5558
|
style: { position: "absolute", "margin-left": "-8px", padding: "12px 0", height: "100%" }
|
|
5559
|
-
}, null, -1),
|
|
5559
|
+
}, null, -1), xn = /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), qn = { class: "close-text center-text half-top color-black" }, Mn = /* @__PURE__ */ i("br", null, null, -1), Rn = {
|
|
5560
5560
|
class: "",
|
|
5561
5561
|
href: "https://tapni.co/policies/terms-of-service"
|
|
5562
5562
|
}, Nn = { href: "https://tapni.co/policies/privacy-policy" }, Vn = /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom" }, null, -1), On = {
|
|
@@ -5596,7 +5596,7 @@ function Hn(e, a, n, o, t, r) {
|
|
|
5596
5596
|
name: "email",
|
|
5597
5597
|
required: ""
|
|
5598
5598
|
}, null, 40, cn), [
|
|
5599
|
-
[
|
|
5599
|
+
[x, t.email]
|
|
5600
5600
|
]),
|
|
5601
5601
|
ln
|
|
5602
5602
|
]),
|
|
@@ -5616,7 +5616,7 @@ function Hn(e, a, n, o, t, r) {
|
|
|
5616
5616
|
disabled: t.usernameRegister,
|
|
5617
5617
|
class: b({ "input-disabled": t.usernameRegister })
|
|
5618
5618
|
}, null, 42, un), [
|
|
5619
|
-
[
|
|
5619
|
+
[x, t.username]
|
|
5620
5620
|
]),
|
|
5621
5621
|
_n
|
|
5622
5622
|
]),
|
|
@@ -5680,8 +5680,8 @@ function Hn(e, a, n, o, t, r) {
|
|
|
5680
5680
|
En,
|
|
5681
5681
|
i("span", null, p(e.ssoLang[this.appLang].sign_up_with) + " Email", 1)
|
|
5682
5682
|
])),
|
|
5683
|
-
|
|
5684
|
-
i("p",
|
|
5683
|
+
xn,
|
|
5684
|
+
i("p", qn, [
|
|
5685
5685
|
f(p(e.ssoLang[this.appLang].terms_by_registering) + " ", 1),
|
|
5686
5686
|
Mn,
|
|
5687
5687
|
i("a", Rn, p(e.ssoLang[this.appLang].terms_of_service), 1),
|
|
@@ -5723,7 +5723,7 @@ function Hn(e, a, n, o, t, r) {
|
|
|
5723
5723
|
]))
|
|
5724
5724
|
], 36);
|
|
5725
5725
|
}
|
|
5726
|
-
const
|
|
5726
|
+
const ve = /* @__PURE__ */ T(Xa, [["render", Hn]]), Fn = {
|
|
5727
5727
|
name: "AuthVerify",
|
|
5728
5728
|
mixins: [z],
|
|
5729
5729
|
props: {
|
|
@@ -5848,7 +5848,7 @@ function fi(e, a, n, o, t, r) {
|
|
|
5848
5848
|
placeholder: e.ssoLang[this.appLang].email,
|
|
5849
5849
|
required: ""
|
|
5850
5850
|
}, null, 40, Zn), [
|
|
5851
|
-
[
|
|
5851
|
+
[x, t.email]
|
|
5852
5852
|
]),
|
|
5853
5853
|
Jn
|
|
5854
5854
|
]),
|
|
@@ -5863,7 +5863,7 @@ function fi(e, a, n, o, t, r) {
|
|
|
5863
5863
|
placeholder: e.ssoLang[this.appLang].code,
|
|
5864
5864
|
required: ""
|
|
5865
5865
|
}, null, 40, ni), [
|
|
5866
|
-
[
|
|
5866
|
+
[x, t.code]
|
|
5867
5867
|
]),
|
|
5868
5868
|
ii
|
|
5869
5869
|
]),
|
|
@@ -5912,7 +5912,7 @@ function fi(e, a, n, o, t, r) {
|
|
|
5912
5912
|
]))
|
|
5913
5913
|
], 36);
|
|
5914
5914
|
}
|
|
5915
|
-
const
|
|
5915
|
+
const ke = /* @__PURE__ */ T(Fn, [["render", fi], ["__scopeId", "data-v-2fd511e2"]]), vi = {
|
|
5916
5916
|
name: "AuthReset",
|
|
5917
5917
|
mixins: [z],
|
|
5918
5918
|
data() {
|
|
@@ -5984,7 +5984,7 @@ const pe = /* @__PURE__ */ T(Fn, [["render", fi], ["__scopeId", "data-v-2fd511e2
|
|
|
5984
5984
|
}, Ti = {
|
|
5985
5985
|
key: 1,
|
|
5986
5986
|
class: "button--loading button__loader"
|
|
5987
|
-
}, ji = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pi = { class: "close-text center-text half-top color-black" }, Ai = ["innerHTML"], Ii = ["href"], Ei = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)),
|
|
5987
|
+
}, ji = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), Pi = { class: "close-text center-text half-top color-black" }, Ai = ["innerHTML"], Ii = ["href"], Ei = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "decoration decoration-lines-thin no-bottom half-top" }, null, -1)), xi = { class: "page-login-links" }, qi = /* @__PURE__ */ A(() => /* @__PURE__ */ i("div", { class: "clear" }, null, -1)), Mi = {
|
|
5988
5988
|
class: "bold no-bottom center-text",
|
|
5989
5989
|
style: { "margin-top": "63px" }
|
|
5990
5990
|
}, Ri = { class: "half-bottom small-top center-text color-black" }, Ni = { class: "page-login-field half-top" }, Vi = /* @__PURE__ */ A(() => /* @__PURE__ */ i("i", { style: { "padding-top": "15px" } }, [
|
|
@@ -6104,7 +6104,7 @@ function et(e, a, n, o, t, r) {
|
|
|
6104
6104
|
placeholder: e.ssoLang[this.appLang].email,
|
|
6105
6105
|
required: ""
|
|
6106
6106
|
}, null, 40, zi), [
|
|
6107
|
-
[
|
|
6107
|
+
[x, t.email]
|
|
6108
6108
|
]),
|
|
6109
6109
|
Li
|
|
6110
6110
|
]),
|
|
@@ -6121,7 +6121,7 @@ function et(e, a, n, o, t, r) {
|
|
|
6121
6121
|
}, " support@tapni.co", 8, Ii)
|
|
6122
6122
|
]),
|
|
6123
6123
|
Ei,
|
|
6124
|
-
i("div",
|
|
6124
|
+
i("div", xi, [
|
|
6125
6125
|
v(u, {
|
|
6126
6126
|
class: "create float-right",
|
|
6127
6127
|
to: "/verify"
|
|
@@ -6140,11 +6140,11 @@ function et(e, a, n, o, t, r) {
|
|
|
6140
6140
|
]),
|
|
6141
6141
|
_: 1
|
|
6142
6142
|
}),
|
|
6143
|
-
|
|
6143
|
+
qi
|
|
6144
6144
|
])
|
|
6145
6145
|
], 32));
|
|
6146
6146
|
}
|
|
6147
|
-
const
|
|
6147
|
+
const be = /* @__PURE__ */ T(vi, [["render", et], ["__scopeId", "data-v-220c28f9"]]), at = {
|
|
6148
6148
|
name: "AuthCallback",
|
|
6149
6149
|
mixins: [$, G, z],
|
|
6150
6150
|
data() {
|
|
@@ -6160,7 +6160,7 @@ const ue = /* @__PURE__ */ T(vi, [["render", et], ["__scopeId", "data-v-220c28f9
|
|
|
6160
6160
|
},
|
|
6161
6161
|
methods: {
|
|
6162
6162
|
inAppRedirect() {
|
|
6163
|
-
let e =
|
|
6163
|
+
let e = Re(location.href);
|
|
6164
6164
|
return e = e.replace("http", "tapni"), e = e.replace("https", "tapni"), window.open(e);
|
|
6165
6165
|
}
|
|
6166
6166
|
}
|
|
@@ -6185,7 +6185,7 @@ function ot(e, a, n, o, t, r) {
|
|
|
6185
6185
|
])) : (c(), l("h4", tt, p(e.ssoLang[this.appLang].please_wait), 1))
|
|
6186
6186
|
]);
|
|
6187
6187
|
}
|
|
6188
|
-
const
|
|
6188
|
+
const ye = /* @__PURE__ */ T(at, [["render", ot]]), rt = {
|
|
6189
6189
|
name: "ModalOverlay",
|
|
6190
6190
|
mixins: [z],
|
|
6191
6191
|
data() {
|
|
@@ -6216,7 +6216,7 @@ function st(e, a, n, o, t, r) {
|
|
|
6216
6216
|
onClick: a[0] || (a[0] = (...u) => r.toggleEmit && r.toggleEmit(...u))
|
|
6217
6217
|
}, null, 2);
|
|
6218
6218
|
}
|
|
6219
|
-
const
|
|
6219
|
+
const we = /* @__PURE__ */ T(rt, [["render", st], ["__scopeId", "data-v-a128c2fa"]]), ct = {
|
|
6220
6220
|
name: "SSO",
|
|
6221
6221
|
mixins: [Q, $, G, z],
|
|
6222
6222
|
data() {
|
|
@@ -6302,7 +6302,7 @@ function ft(e, a, n, o, t, r) {
|
|
|
6302
6302
|
onKeydown: a[2] || (a[2] = E(y(() => {
|
|
6303
6303
|
}, ["prevent"]), ["space"]))
|
|
6304
6304
|
}, null, 40, _t), [
|
|
6305
|
-
[
|
|
6305
|
+
[x, t.email]
|
|
6306
6306
|
])
|
|
6307
6307
|
]),
|
|
6308
6308
|
i("button", mt, [
|
|
@@ -6310,7 +6310,7 @@ function ft(e, a, n, o, t, r) {
|
|
|
6310
6310
|
])
|
|
6311
6311
|
], 34);
|
|
6312
6312
|
}
|
|
6313
|
-
const
|
|
6313
|
+
const ze = /* @__PURE__ */ T(ct, [["render", ft], ["__scopeId", "data-v-256337c2"]]), vt = {
|
|
6314
6314
|
name: "SSOPick",
|
|
6315
6315
|
mixins: [Q, $, G, z],
|
|
6316
6316
|
data() {
|
|
@@ -6412,7 +6412,7 @@ function It(e, a, n, o, t, r) {
|
|
|
6412
6412
|
])) : h("", !0)
|
|
6413
6413
|
], 34);
|
|
6414
6414
|
}
|
|
6415
|
-
const
|
|
6415
|
+
const Le = /* @__PURE__ */ T(vt, [["render", It], ["__scopeId", "data-v-33bfb54b"]]), Et = {
|
|
6416
6416
|
name: "LinkIcon",
|
|
6417
6417
|
mixins: [z],
|
|
6418
6418
|
props: {
|
|
@@ -6484,7 +6484,7 @@ const he = /* @__PURE__ */ T(vt, [["render", It], ["__scopeId", "data-v-33bfb54b
|
|
|
6484
6484
|
}
|
|
6485
6485
|
},
|
|
6486
6486
|
methods: {}
|
|
6487
|
-
},
|
|
6487
|
+
}, xt = ["src", "alt"], qt = ["src", "alt"], Mt = ["src", "alt"], Rt = ["src", "alt"];
|
|
6488
6488
|
function Nt(e, a, n, o, t, r) {
|
|
6489
6489
|
var u, s;
|
|
6490
6490
|
return c(), l("a", {
|
|
@@ -6508,14 +6508,14 @@ function Nt(e, a, n, o, t, r) {
|
|
|
6508
6508
|
alt: n.data.text,
|
|
6509
6509
|
onLoad: a[0] || (a[0] = (_) => e.$emit("loaded")),
|
|
6510
6510
|
onError: a[1] || (a[1] = (_) => e.$emit("loaded"))
|
|
6511
|
-
}, null, 40,
|
|
6511
|
+
}, null, 40, xt)) : !n.data.custom_icon && n.data.type === "customlink" && n.linkAdding ? (c(), l("img", {
|
|
6512
6512
|
key: 1,
|
|
6513
6513
|
src: "https://cdn.tapni.co/icons/custom-icon-128.gif",
|
|
6514
6514
|
class: "responsive-image",
|
|
6515
6515
|
alt: n.data.text,
|
|
6516
6516
|
onLoad: a[2] || (a[2] = (_) => e.$emit("loaded")),
|
|
6517
6517
|
onError: a[3] || (a[3] = (_) => e.$emit("loaded"))
|
|
6518
|
-
}, null, 40,
|
|
6518
|
+
}, null, 40, qt)) : !n.data.custom_icon && n.data.type === "customlink" && !n.linkAdding ? (c(), l("img", {
|
|
6519
6519
|
key: 2,
|
|
6520
6520
|
src: "https://cdn.tapni.co/icons/customlink.png",
|
|
6521
6521
|
class: "responsive-image",
|
|
@@ -6657,7 +6657,7 @@ function Ft(e, a, n, o, t, r) {
|
|
|
6657
6657
|
}, null, 8, ["data"])
|
|
6658
6658
|
], 2);
|
|
6659
6659
|
}
|
|
6660
|
-
const
|
|
6660
|
+
const Se = /* @__PURE__ */ T(Bt, [["render", Ft], ["__scopeId", "data-v-e5a7ac07"]]);
|
|
6661
6661
|
var Qt = { 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 };
|
|
6662
6662
|
const $t = { id: "ssoapp" }, Gt = {
|
|
6663
6663
|
key: 0,
|
|
@@ -6697,16 +6697,16 @@ const $t = { id: "ssoapp" }, Gt = {
|
|
|
6697
6697
|
};
|
|
6698
6698
|
},
|
|
6699
6699
|
components: {
|
|
6700
|
-
Language:
|
|
6701
|
-
SSOPick:
|
|
6702
|
-
SSO:
|
|
6703
|
-
ModalOverlay:
|
|
6704
|
-
AuthCallback:
|
|
6705
|
-
AuthReset:
|
|
6706
|
-
AuthVerify:
|
|
6707
|
-
AuthRegister:
|
|
6708
|
-
AuthLogin:
|
|
6709
|
-
AuthWelcome:
|
|
6700
|
+
Language: Se,
|
|
6701
|
+
SSOPick: Le,
|
|
6702
|
+
SSO: ze,
|
|
6703
|
+
ModalOverlay: we,
|
|
6704
|
+
AuthCallback: ye,
|
|
6705
|
+
AuthReset: be,
|
|
6706
|
+
AuthVerify: ke,
|
|
6707
|
+
AuthRegister: ve,
|
|
6708
|
+
AuthLogin: fe,
|
|
6709
|
+
AuthWelcome: _e
|
|
6710
6710
|
},
|
|
6711
6711
|
props: {
|
|
6712
6712
|
view: {
|
|
@@ -6723,7 +6723,7 @@ const $t = { id: "ssoapp" }, Gt = {
|
|
|
6723
6723
|
},
|
|
6724
6724
|
methods: {
|
|
6725
6725
|
async init() {
|
|
6726
|
-
const e = await
|
|
6726
|
+
const e = await Ie.getAll();
|
|
6727
6727
|
if (await this.setStorage(e), this.storage && this.storage.token && this.storage.refreshTokens) {
|
|
6728
6728
|
this.setToken(this.storage.token);
|
|
6729
6729
|
const a = this.getRefreshTokens();
|
|
@@ -6764,20 +6764,20 @@ const $t = { id: "ssoapp" }, Gt = {
|
|
|
6764
6764
|
}, [
|
|
6765
6765
|
i("span", Xt, p(a.appLang.toUpperCase()), 1)
|
|
6766
6766
|
])) : h("", !0),
|
|
6767
|
-
v(
|
|
6768
|
-
v(
|
|
6769
|
-
v(
|
|
6770
|
-
v(
|
|
6771
|
-
a.initialized && a.renderView === "AuthWelcome" ? (c(), P(
|
|
6767
|
+
v(we),
|
|
6768
|
+
v(Se),
|
|
6769
|
+
v(ze),
|
|
6770
|
+
v(Le),
|
|
6771
|
+
a.initialized && a.renderView === "AuthWelcome" ? (c(), P(_e, { key: 2 })) : a.initialized && a.renderView === "AuthLogin" ? (c(), P(fe, {
|
|
6772
6772
|
key: 3,
|
|
6773
6773
|
isModal: e.isModal
|
|
6774
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthRegister" ? (c(), P(
|
|
6774
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthRegister" ? (c(), P(ve, {
|
|
6775
6775
|
key: 4,
|
|
6776
6776
|
isModal: e.isModal
|
|
6777
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthVerify" ? (c(), P(
|
|
6777
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthVerify" ? (c(), P(ke, {
|
|
6778
6778
|
key: 5,
|
|
6779
6779
|
isModal: e.isModal
|
|
6780
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(
|
|
6780
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(be, { key: 6 })) : a.initialized && a.renderView === "AuthCallback" ? (c(), P(ye, { key: 7 })) : (c(), P(Pe(Ae), { key: 8 })),
|
|
6781
6781
|
i("div", Zt, [
|
|
6782
6782
|
i("p", Jt, [
|
|
6783
6783
|
i("span", eo, p(a.ssoLang[a.appLang].error), 1),
|