@tapni/auth 0.0.8 → 0.0.10
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 +64 -78
- package/dist/TapniAuth.umd.js +9 -9
- package/package.json +1 -1
- package/src/App.vue +2 -12
- package/src/main.js +5 -1
- package/src/mixins/auth.mixin.js +1 -6
- package/src/mixins/global.mixin.js +13 -0
package/dist/TapniAuth.es.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { RouterView as
|
|
1
|
+
import { reactive as Ce, readonly as Se, 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 Te, 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 je } from "vue";
|
|
2
|
+
import { RouterView as Pe } 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
|
|
7
|
+
import { StorageMixin as Ae } from "@tapni/capacitor-reactive-localstorage-vue3";
|
|
8
8
|
import { GoogleAuth as J } from "@codetrix-studio/capacitor-google-auth";
|
|
9
9
|
import { FacebookLogin as Ie } from "@capacitor-community/facebook-login";
|
|
10
10
|
import { SignInWithApple as Ee } from "@capacitor-community/apple-sign-in";
|
|
11
11
|
import { MsAuthPlugin as xe } from "@recognizebv/capacitor-plugin-msauth";
|
|
12
|
-
import { Capacitor as
|
|
12
|
+
import { Capacitor as ne } from "@capacitor/core";
|
|
13
13
|
import { Browser as F } from "@capacitor/browser";
|
|
14
14
|
import qe from "qr-code-styling";
|
|
15
15
|
import { sanitizeUrl as Me } from "@braintree/sanitize-url";
|
|
16
|
-
const Re = "0.0.
|
|
16
|
+
const Re = "0.0.10", m = (e, a = !1) => {
|
|
17
17
|
const n = Re;
|
|
18
18
|
let o = K.create({
|
|
19
19
|
baseURL: "https://api.tapni.co/v1/",
|
|
@@ -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
|
+
Se(d);
|
|
178
|
+
const ie = {
|
|
179
179
|
state: {
|
|
180
180
|
english: "English",
|
|
181
181
|
spanish: "Spanish",
|
|
@@ -632,7 +632,7 @@ const te = {
|
|
|
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
|
+
}, te = {
|
|
636
636
|
state: {
|
|
637
637
|
english: "Englisch",
|
|
638
638
|
spanish: "Spanisch",
|
|
@@ -1084,7 +1084,7 @@ const te = {
|
|
|
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
|
+
}, oe = {
|
|
1088
1088
|
state: {
|
|
1089
1089
|
english: "Inglés",
|
|
1090
1090
|
spanish: "Español",
|
|
@@ -1540,7 +1540,7 @@ const te = {
|
|
|
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
|
+
}, re = {
|
|
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
|
+
}, se = {
|
|
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
|
+
}, ce = {
|
|
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
|
+
}, le = {
|
|
2900
2900
|
state: {
|
|
2901
2901
|
english: "İngilizce",
|
|
2902
2902
|
spanish: "İspanyolca",
|
|
@@ -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
|
+
}, de = {
|
|
3798
3798
|
state: {
|
|
3799
3799
|
english: "영어",
|
|
3800
3800
|
spanish: "스페인어",
|
|
@@ -4254,7 +4254,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
|
|
|
4254
4254
|
};
|
|
4255
4255
|
var Ve = { 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 };
|
|
4256
4256
|
const z = {
|
|
4257
|
-
mixins: [
|
|
4257
|
+
mixins: [Ae],
|
|
4258
4258
|
data() {
|
|
4259
4259
|
return {
|
|
4260
4260
|
appLanguage: "en",
|
|
@@ -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:
|
|
4269
|
+
en: ie.state,
|
|
4270
|
+
de: te.state,
|
|
4271
|
+
es: oe.state,
|
|
4272
|
+
fr: re.state,
|
|
4273
|
+
it: se.state,
|
|
4274
|
+
sr: ce.state,
|
|
4275
|
+
tr: le.state,
|
|
4276
4276
|
cn: Ne.state,
|
|
4277
|
-
kr:
|
|
4277
|
+
kr: de.state
|
|
4278
4278
|
},
|
|
4279
4279
|
display: "npm",
|
|
4280
4280
|
redirect_uri: "https://t.link/callback/auth",
|
|
@@ -4553,7 +4553,7 @@ const z = {
|
|
|
4553
4553
|
e && !a.includes(e) ? a.unshift(e) : a = a.filter((n) => n !== this.refreshToken), a.length >= 1 ? this.refreshToken = a[0] : this.refreshToken = e, this.storage.refreshTokens = a.join(","), d.$emit("ssoEvent", { name: "setRefreshToken", data: e });
|
|
4554
4554
|
},
|
|
4555
4555
|
setToken(e) {
|
|
4556
|
-
this.storage.token = e, this.token = e, d.$emit("ssoEvent", { name: "setToken", data: e });
|
|
4556
|
+
console.log("setup token"), this.storage.token = e, this.token = e, d.$emit("ssoEvent", { name: "setToken", data: e });
|
|
4557
4557
|
},
|
|
4558
4558
|
setUserID(e) {
|
|
4559
4559
|
this.storage.UserId = e;
|
|
@@ -4568,12 +4568,6 @@ const z = {
|
|
|
4568
4568
|
this.$route.query.redirect_uri && (this.redirect_uri = this.$route.query.redirect_uri), this.$route.query.display && (this.display = this.$route.query.display), this.$route.query.state && (this.state = this.$route.query.state), this.$route.query.response_type && (this.response_type = this.$route.query.response_type), this.$route.query.realm && (this.storage.realm = this.$route.query.realm), this.$route.query.qrLogin && this.changeLoginToQr();
|
|
4569
4569
|
},
|
|
4570
4570
|
deep: !0
|
|
4571
|
-
},
|
|
4572
|
-
storage: {
|
|
4573
|
-
async handler() {
|
|
4574
|
-
await store.setRaw(this.storage);
|
|
4575
|
-
},
|
|
4576
|
-
deep: !0
|
|
4577
4571
|
}
|
|
4578
4572
|
}
|
|
4579
4573
|
}, T = (e, a) => {
|
|
@@ -4595,18 +4589,18 @@ const z = {
|
|
|
4595
4589
|
}, 1500), d.$emit("ssoEvent", { name: "setInitialize", data: !0 });
|
|
4596
4590
|
},
|
|
4597
4591
|
methods: {}
|
|
4598
|
-
},
|
|
4592
|
+
}, pe = (e) => (O("data-v-bf520ec5"), e = e(), B(), e), Be = {
|
|
4599
4593
|
class: "page-login content-boxed content-boxed-padding center-text",
|
|
4600
4594
|
style: { "margin-top": "-1px", overflow: "hidden", border: "solid 0px #ffffff" }
|
|
4601
|
-
}, De = ["autoplay"], Ue = /* @__PURE__ */
|
|
4595
|
+
}, De = ["autoplay"], Ue = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("source", {
|
|
4602
4596
|
src: "https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",
|
|
4603
4597
|
type: "video/mp4"
|
|
4604
4598
|
}, null, -1)), Ke = [
|
|
4605
4599
|
Ue
|
|
4606
|
-
], He = { class: "bold full-top no-bottom center-text" }, Fe = { class: "full-bottom half-top center-text color-black font-16" }, Qe = { class: "page-login-links center-text" }, $e = /* @__PURE__ */
|
|
4600
|
+
], He = { class: "bold full-top no-bottom center-text" }, Fe = { class: "full-bottom half-top center-text color-black font-16" }, Qe = { class: "page-login-links center-text" }, $e = /* @__PURE__ */ pe(() => /* @__PURE__ */ i("div", { class: "clear" }, null, -1)), Ge = {
|
|
4607
4601
|
key: 2,
|
|
4608
4602
|
style: { display: "flex", "flex-direction": "row", "justify-content": "space-around", width: "90%", margin: "0 auto", "margin-top": "40px" }
|
|
4609
|
-
}, We = /* @__PURE__ */
|
|
4603
|
+
}, We = /* @__PURE__ */ Te('<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), Ye = [
|
|
4610
4604
|
We
|
|
4611
4605
|
];
|
|
4612
4606
|
function Xe(e, a, n, o, t, r) {
|
|
@@ -4648,7 +4642,7 @@ function Xe(e, a, n, o, t, r) {
|
|
|
4648
4642
|
this.isNative ? h("", !0) : (c(), l("div", Ge, Ye))
|
|
4649
4643
|
]);
|
|
4650
4644
|
}
|
|
4651
|
-
const
|
|
4645
|
+
const ue = /* @__PURE__ */ T(Oe, [["render", Xe], ["__scopeId", "data-v-bf520ec5"]]), _e = {
|
|
4652
4646
|
data() {
|
|
4653
4647
|
return {
|
|
4654
4648
|
googleLoad: !1
|
|
@@ -4703,7 +4697,7 @@ window.fbAsyncInit = function() {
|
|
|
4703
4697
|
var o, t = e.getElementsByTagName(a)[0];
|
|
4704
4698
|
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
4699
|
})(document, "script", "facebook-jssdk");
|
|
4706
|
-
const
|
|
4700
|
+
const me = {
|
|
4707
4701
|
data() {
|
|
4708
4702
|
return {
|
|
4709
4703
|
facebookLoad: !1
|
|
@@ -4740,7 +4734,7 @@ const ge = {
|
|
|
4740
4734
|
this.facebookLoad = !1, d.$emit("ssoEvent", { name: "setLoading", data: !1 });
|
|
4741
4735
|
}
|
|
4742
4736
|
}
|
|
4743
|
-
},
|
|
4737
|
+
}, ge = {
|
|
4744
4738
|
data() {
|
|
4745
4739
|
return {
|
|
4746
4740
|
appleLoad: !1
|
|
@@ -4850,7 +4844,7 @@ const Q = {
|
|
|
4850
4844
|
return null;
|
|
4851
4845
|
},
|
|
4852
4846
|
compareLangKeys() {
|
|
4853
|
-
const e = Object.keys(
|
|
4847
|
+
const e = Object.keys(ie.default.state), a = Object.keys(te.default.state), n = Object.keys(oe.default.state), o = Object.keys(de.default.state), t = Object.keys(se.default.state), r = Object.keys(re.default.state), u = Object.keys(ce.default.state), s = Object.keys(le.default.state);
|
|
4854
4848
|
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
4849
|
},
|
|
4856
4850
|
base64ImageToBlob(e) {
|
|
@@ -4957,7 +4951,7 @@ const Q = {
|
|
|
4957
4951
|
this.errorSnack(this.ssoLang[this.appLang].unexpected_err);
|
|
4958
4952
|
},
|
|
4959
4953
|
async oktaLogin(e) {
|
|
4960
|
-
const a =
|
|
4954
|
+
const a = ne.getPlatform() || "web";
|
|
4961
4955
|
let n = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + a + "&rand=" + N.generateRandomString(28)), o = N.generateRandomString(28);
|
|
4962
4956
|
localStorage.setItem("pkce_code_verifier", o);
|
|
4963
4957
|
let t = await N.pkceChallengeFromVerifier(o), r = e.domain + "/v1/authorize", u;
|
|
@@ -4997,7 +4991,7 @@ const Q = {
|
|
|
4997
4991
|
methods: {
|
|
4998
4992
|
async samlLogin(e) {
|
|
4999
4993
|
this.code_verifier = N.generateRandomString(28), localStorage.setItem("pkce_code_verifier", this.code_verifier), this.code_challenge = await N.pkceChallengeFromVerifier(this.code_verifier);
|
|
5000
|
-
const a =
|
|
4994
|
+
const a = ne.getPlatform();
|
|
5001
4995
|
let n = Buffer.from(`code_challenge=${this.code_challenge}&platform=${a}&redirect_uri=${location.origin + "/callback/saml"}&realm=${this.storage.realm}`).toString("base64");
|
|
5002
4996
|
e = `${e}&RelayState=${n}`;
|
|
5003
4997
|
let o = this;
|
|
@@ -5105,7 +5099,7 @@ const Q = {
|
|
|
5105
5099
|
}
|
|
5106
5100
|
}, ea = {
|
|
5107
5101
|
name: "AuthLogin",
|
|
5108
|
-
mixins: [me, ge,
|
|
5102
|
+
mixins: [_e, me, ge, Q, $, G, z, Je],
|
|
5109
5103
|
props: {
|
|
5110
5104
|
isModal: {
|
|
5111
5105
|
type: Boolean,
|
|
@@ -5427,9 +5421,9 @@ function Wa(e, a, n, o, t, r) {
|
|
|
5427
5421
|
]))
|
|
5428
5422
|
], 36);
|
|
5429
5423
|
}
|
|
5430
|
-
const
|
|
5424
|
+
const he = /* @__PURE__ */ T(ea, [["render", Wa]]), Ya = {
|
|
5431
5425
|
name: "AuthRegister",
|
|
5432
|
-
mixins: [me, ge,
|
|
5426
|
+
mixins: [_e, me, ge, Q, z],
|
|
5433
5427
|
props: {
|
|
5434
5428
|
isModal: {
|
|
5435
5429
|
type: Boolean,
|
|
@@ -5723,7 +5717,7 @@ function Kn(e, a, n, o, t, r) {
|
|
|
5723
5717
|
]))
|
|
5724
5718
|
], 36);
|
|
5725
5719
|
}
|
|
5726
|
-
const
|
|
5720
|
+
const fe = /* @__PURE__ */ T(Ya, [["render", Kn]]), Hn = {
|
|
5727
5721
|
name: "AuthVerify",
|
|
5728
5722
|
mixins: [z],
|
|
5729
5723
|
props: {
|
|
@@ -5912,7 +5906,7 @@ function hi(e, a, n, o, t, r) {
|
|
|
5912
5906
|
]))
|
|
5913
5907
|
], 36);
|
|
5914
5908
|
}
|
|
5915
|
-
const
|
|
5909
|
+
const ve = /* @__PURE__ */ T(Hn, [["render", hi], ["__scopeId", "data-v-2fd511e2"]]), fi = {
|
|
5916
5910
|
name: "AuthReset",
|
|
5917
5911
|
mixins: [z],
|
|
5918
5912
|
data() {
|
|
@@ -6144,7 +6138,7 @@ function Ji(e, a, n, o, t, r) {
|
|
|
6144
6138
|
])
|
|
6145
6139
|
], 32));
|
|
6146
6140
|
}
|
|
6147
|
-
const
|
|
6141
|
+
const ke = /* @__PURE__ */ T(fi, [["render", Ji], ["__scopeId", "data-v-220c28f9"]]), et = {
|
|
6148
6142
|
name: "AuthCallback",
|
|
6149
6143
|
mixins: [$, G, z],
|
|
6150
6144
|
data() {
|
|
@@ -6185,7 +6179,7 @@ function tt(e, a, n, o, t, r) {
|
|
|
6185
6179
|
])) : (c(), l("h4", it, p(e.ssoLang[this.appLang].please_wait), 1))
|
|
6186
6180
|
]);
|
|
6187
6181
|
}
|
|
6188
|
-
const
|
|
6182
|
+
const be = /* @__PURE__ */ T(et, [["render", tt]]), ot = {
|
|
6189
6183
|
name: "ModalOverlay",
|
|
6190
6184
|
mixins: [z],
|
|
6191
6185
|
data() {
|
|
@@ -6216,7 +6210,7 @@ function rt(e, a, n, o, t, r) {
|
|
|
6216
6210
|
onClick: a[0] || (a[0] = (...u) => r.toggleEmit && r.toggleEmit(...u))
|
|
6217
6211
|
}, null, 2);
|
|
6218
6212
|
}
|
|
6219
|
-
const
|
|
6213
|
+
const ye = /* @__PURE__ */ T(ot, [["render", rt], ["__scopeId", "data-v-a128c2fa"]]), st = {
|
|
6220
6214
|
name: "SSO",
|
|
6221
6215
|
mixins: [Q, $, G, z],
|
|
6222
6216
|
data() {
|
|
@@ -6310,7 +6304,7 @@ function ht(e, a, n, o, t, r) {
|
|
|
6310
6304
|
])
|
|
6311
6305
|
], 34);
|
|
6312
6306
|
}
|
|
6313
|
-
const
|
|
6307
|
+
const we = /* @__PURE__ */ T(st, [["render", ht], ["__scopeId", "data-v-256337c2"]]), ft = {
|
|
6314
6308
|
name: "SSOPick",
|
|
6315
6309
|
mixins: [Q, $, G, z],
|
|
6316
6310
|
data() {
|
|
@@ -6412,7 +6406,7 @@ function At(e, a, n, o, t, r) {
|
|
|
6412
6406
|
])) : h("", !0)
|
|
6413
6407
|
], 34);
|
|
6414
6408
|
}
|
|
6415
|
-
const
|
|
6409
|
+
const ze = /* @__PURE__ */ T(ft, [["render", At], ["__scopeId", "data-v-33bfb54b"]]), It = {
|
|
6416
6410
|
name: "LinkIcon",
|
|
6417
6411
|
mixins: [z],
|
|
6418
6412
|
props: {
|
|
@@ -6657,7 +6651,7 @@ function Ht(e, a, n, o, t, r) {
|
|
|
6657
6651
|
}, null, 8, ["data"])
|
|
6658
6652
|
], 2);
|
|
6659
6653
|
}
|
|
6660
|
-
const
|
|
6654
|
+
const Le = /* @__PURE__ */ T(Ot, [["render", Ht], ["__scopeId", "data-v-e5a7ac07"]]);
|
|
6661
6655
|
var Ft = { 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
6656
|
const Qt = { id: "ssoapp" }, $t = {
|
|
6663
6657
|
key: 0,
|
|
@@ -6690,23 +6684,23 @@ const Qt = { id: "ssoapp" }, $t = {
|
|
|
6690
6684
|
to
|
|
6691
6685
|
], ro = {
|
|
6692
6686
|
name: "TapniAuth",
|
|
6693
|
-
mixins: [z
|
|
6687
|
+
mixins: [z],
|
|
6694
6688
|
data() {
|
|
6695
6689
|
return {
|
|
6696
6690
|
initialized: !1
|
|
6697
6691
|
};
|
|
6698
6692
|
},
|
|
6699
6693
|
components: {
|
|
6700
|
-
Language:
|
|
6701
|
-
SSOPick:
|
|
6702
|
-
SSO:
|
|
6703
|
-
ModalOverlay:
|
|
6704
|
-
AuthCallback:
|
|
6705
|
-
AuthReset:
|
|
6706
|
-
AuthVerify:
|
|
6707
|
-
AuthRegister:
|
|
6708
|
-
AuthLogin:
|
|
6709
|
-
AuthWelcome:
|
|
6694
|
+
Language: Le,
|
|
6695
|
+
SSOPick: ze,
|
|
6696
|
+
SSO: we,
|
|
6697
|
+
ModalOverlay: ye,
|
|
6698
|
+
AuthCallback: be,
|
|
6699
|
+
AuthReset: ke,
|
|
6700
|
+
AuthVerify: ve,
|
|
6701
|
+
AuthRegister: fe,
|
|
6702
|
+
AuthLogin: he,
|
|
6703
|
+
AuthWelcome: ue
|
|
6710
6704
|
},
|
|
6711
6705
|
props: {
|
|
6712
6706
|
view: {
|
|
@@ -6719,15 +6713,7 @@ const Qt = { id: "ssoapp" }, $t = {
|
|
|
6719
6713
|
}
|
|
6720
6714
|
},
|
|
6721
6715
|
async mounted() {
|
|
6722
|
-
|
|
6723
|
-
realm: "",
|
|
6724
|
-
token: "",
|
|
6725
|
-
refreshTokens: "",
|
|
6726
|
-
username: "",
|
|
6727
|
-
UserId: "",
|
|
6728
|
-
verifyEmail: "",
|
|
6729
|
-
subdomain: ""
|
|
6730
|
-
}), this.applyBgStyle(), d.$on("ssoEvent", this.ssoOutgoingEvent), d.$on("ssoLogout", (e) => this.logout(e)), d.$on("getLoggedInAccounts", (e) => this.getLoggedInAccounts(e)), d.$on("refreshTokenAction", (e) => this.refreshTokenAction(e));
|
|
6716
|
+
this.applyBgStyle(), d.$on("ssoEvent", this.ssoOutgoingEvent), d.$on("ssoLogout", (e) => this.logout(e)), d.$on("getLoggedInAccounts", (e) => this.getLoggedInAccounts(e)), d.$on("refreshTokenAction", (e) => this.refreshTokenAction(e));
|
|
6731
6717
|
},
|
|
6732
6718
|
methods: {
|
|
6733
6719
|
async init() {
|
|
@@ -6771,20 +6757,20 @@ const Qt = { id: "ssoapp" }, $t = {
|
|
|
6771
6757
|
}, [
|
|
6772
6758
|
i("span", Yt, p(a.appLang.toUpperCase()), 1)
|
|
6773
6759
|
])) : h("", !0),
|
|
6760
|
+
v(ye),
|
|
6761
|
+
v(Le),
|
|
6774
6762
|
v(we),
|
|
6775
|
-
v(Ce),
|
|
6776
6763
|
v(ze),
|
|
6777
|
-
|
|
6778
|
-
a.initialized && a.renderView === "AuthWelcome" ? (c(), P(_e, { key: 2 })) : a.initialized && a.renderView === "AuthLogin" ? (c(), P(fe, {
|
|
6764
|
+
a.initialized && a.renderView === "AuthWelcome" ? (c(), P(ue, { key: 2 })) : a.initialized && a.renderView === "AuthLogin" ? (c(), P(he, {
|
|
6779
6765
|
key: 3,
|
|
6780
6766
|
isModal: e.isModal
|
|
6781
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthRegister" ? (c(), P(
|
|
6767
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthRegister" ? (c(), P(fe, {
|
|
6782
6768
|
key: 4,
|
|
6783
6769
|
isModal: e.isModal
|
|
6784
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthVerify" ? (c(), P(
|
|
6770
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthVerify" ? (c(), P(ve, {
|
|
6785
6771
|
key: 5,
|
|
6786
6772
|
isModal: e.isModal
|
|
6787
|
-
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(
|
|
6773
|
+
}, null, 8, ["isModal"])) : a.initialized && a.renderView === "AuthReset" ? (c(), P(ke, { key: 6 })) : a.initialized && a.renderView === "AuthCallback" ? (c(), P(be, { key: 7 })) : (c(), P(je(Pe), { key: 8 })),
|
|
6788
6774
|
i("div", Xt, [
|
|
6789
6775
|
i("p", Zt, [
|
|
6790
6776
|
i("span", Jt, p(a.ssoLang[a.appLang].error), 1),
|