@tapni/auth 0.0.52 → 0.0.54
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/.vscode/extensions.json +3 -0
- package/dist/TapniAuth.es.js +157 -149
- package/dist/TapniAuth.umd.js +3 -3
- package/package.json +3 -2
- package/src/install.js +7 -1
- package/src/main.js +3 -0
- package/src/mixins/auth.mixin.js +3 -0
- package/src/services/Api.js +3 -2
package/dist/TapniAuth.es.js
CHANGED
|
@@ -13,11 +13,12 @@ import { Browser as be } from "@capacitor/browser";
|
|
|
13
13
|
import nt from "qr-code-styling";
|
|
14
14
|
import { sanitizeUrl as tt } from "@braintree/sanitize-url";
|
|
15
15
|
import "@tapni/capacitor-reactive-localstorage-vue3";
|
|
16
|
-
const at = "0.0.
|
|
16
|
+
const at = "0.0.54", z = (e, t = !1) => {
|
|
17
17
|
const r = at;
|
|
18
18
|
let u = "https://api.tapni.co/v1/";
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const l = O.methods.apiRootGet();
|
|
20
|
+
l && (u = l);
|
|
21
|
+
let d = Be.create({
|
|
21
22
|
baseURL: u,
|
|
22
23
|
headers: {
|
|
23
24
|
...e ? { Authorization: `Bearer ${e.token}` } : {},
|
|
@@ -25,29 +26,29 @@ const at = "0.0.52", z = (e, t = !1) => {
|
|
|
25
26
|
"X-Client-Version": r.version
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
|
-
return
|
|
29
|
-
if (["post", "put", "delete"].includes(
|
|
30
|
-
...
|
|
29
|
+
return d.interceptors.request.use(async function(g) {
|
|
30
|
+
if (["post", "put", "delete"].includes(g.method.toLowerCase()) ? g.data = {
|
|
31
|
+
...g.data,
|
|
31
32
|
...e ? {
|
|
32
33
|
lang: e.appLanguage,
|
|
33
34
|
realm: e.realm || "app"
|
|
34
35
|
} : {}
|
|
35
|
-
} :
|
|
36
|
-
...
|
|
36
|
+
} : g.method.toLowerCase() === "get" && (g.params = {
|
|
37
|
+
...g.params,
|
|
37
38
|
...e ? {
|
|
38
39
|
lang: e.appLanguage,
|
|
39
40
|
realm: e.realm || "app"
|
|
40
41
|
} : {}
|
|
41
42
|
}), e && e.token && !t) {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return O.methods.refreshTokenAction(
|
|
45
|
-
...
|
|
43
|
+
const m = Je(e.token);
|
|
44
|
+
if (m.exp - 30 < Math.floor(Date.now() / 1e3))
|
|
45
|
+
return O.methods.refreshTokenAction(m).then(() => (g.headers = {
|
|
46
|
+
...g.headers,
|
|
46
47
|
Authorization: `Bearer ${e.token}`
|
|
47
|
-
},
|
|
48
|
+
}, g));
|
|
48
49
|
}
|
|
49
|
-
return
|
|
50
|
-
}),
|
|
50
|
+
return g;
|
|
51
|
+
}), d;
|
|
51
52
|
}, re = {
|
|
52
53
|
getMe() {
|
|
53
54
|
return z(storage).get("/users/me");
|
|
@@ -4388,6 +4389,9 @@ const O = {
|
|
|
4388
4389
|
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"));
|
|
4389
4390
|
},
|
|
4390
4391
|
methods: {
|
|
4392
|
+
apiRootGet() {
|
|
4393
|
+
return this.API_ROOT;
|
|
4394
|
+
},
|
|
4391
4395
|
errorHandler(e) {
|
|
4392
4396
|
if (e && e.response && e.response.data && e.response.data.error) {
|
|
4393
4397
|
if (e.response.data.error === "ACCESS_DENIED" || e.response.data.error === "TOKEN_EXPIRED")
|
|
@@ -4677,7 +4681,7 @@ const O = {
|
|
|
4677
4681
|
ft
|
|
4678
4682
|
];
|
|
4679
4683
|
function bt(e, t, r, u, l, d) {
|
|
4680
|
-
const
|
|
4684
|
+
const g = de("router-link");
|
|
4681
4685
|
return f(), k("div", ct, [
|
|
4682
4686
|
c("video", {
|
|
4683
4687
|
id: "tapniVideo",
|
|
@@ -4692,7 +4696,7 @@ function bt(e, t, r, u, l, d) {
|
|
|
4692
4696
|
c("p", _t, y(e.ssoLang[this.appLanguage].welcome_p1), 1),
|
|
4693
4697
|
T("", !0),
|
|
4694
4698
|
T("", !0),
|
|
4695
|
-
j(
|
|
4699
|
+
j(g, {
|
|
4696
4700
|
to: "register",
|
|
4697
4701
|
exact: "",
|
|
4698
4702
|
class: "button-center button button-90 google-button bg-tapni-grey pointer"
|
|
@@ -4703,7 +4707,7 @@ function bt(e, t, r, u, l, d) {
|
|
|
4703
4707
|
_: 1
|
|
4704
4708
|
}),
|
|
4705
4709
|
c("div", mt, [
|
|
4706
|
-
j(
|
|
4710
|
+
j(g, { to: "/login" }, {
|
|
4707
4711
|
default: G(() => [
|
|
4708
4712
|
I(y(e.ssoLang[this.appLanguage].already_registered) + "? ", 1),
|
|
4709
4713
|
c("b", null, y(e.ssoLang[this.appLanguage].sign_in), 1)
|
|
@@ -4864,7 +4868,7 @@ const ve = {
|
|
|
4864
4868
|
},
|
|
4865
4869
|
methods: {
|
|
4866
4870
|
async microsoftLogin(e, t = {}) {
|
|
4867
|
-
var l, d,
|
|
4871
|
+
var l, d, g;
|
|
4868
4872
|
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
4873
|
const [r, u] = await L(
|
|
4870
4874
|
et.login({
|
|
@@ -4887,7 +4891,7 @@ const ve = {
|
|
|
4887
4891
|
return this.microsoftLoad = !1, this.microsoftSSOLoad = !1, v.$emit("ssoEvent", { name: "setLoading", data: !1 }), this.errorHandler(m);
|
|
4888
4892
|
if (b.data.success) {
|
|
4889
4893
|
if (this.display === "popup")
|
|
4890
|
-
return (
|
|
4894
|
+
return (g = window.parent) == null ? void 0 : g.postMessage(
|
|
4891
4895
|
{ code: b.data.auth_code, state: this.$route.query.state },
|
|
4892
4896
|
"*"
|
|
4893
4897
|
);
|
|
@@ -4917,8 +4921,8 @@ const ve = {
|
|
|
4917
4921
|
return null;
|
|
4918
4922
|
},
|
|
4919
4923
|
compareLangKeys() {
|
|
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),
|
|
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) => !
|
|
4924
|
+
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), g = Object.keys(rn.default.state), m = Object.keys(sn.default.state);
|
|
4925
|
+
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) => !g.includes(b))), console.log("In sr but not in en", g.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();
|
|
4922
4926
|
},
|
|
4923
4927
|
base64ImageToBlob(e) {
|
|
4924
4928
|
const t = e.split(";base64,"), r = t[0].split(":")[1], u = window.atob(t[1]), l = new Uint8Array(u.length);
|
|
@@ -4935,9 +4939,9 @@ const ve = {
|
|
|
4935
4939
|
});
|
|
4936
4940
|
},
|
|
4937
4941
|
base64toFile(e, t) {
|
|
4938
|
-
for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length,
|
|
4939
|
-
|
|
4940
|
-
return new File([
|
|
4942
|
+
for (var r = e.split(","), u = r[0].match(/:(.*?);/)[1], l = atob(r[1]), d = l.length, g = new Uint8Array(d); d--; )
|
|
4943
|
+
g[d] = l.charCodeAt(d);
|
|
4944
|
+
return new File([g], t, { type: u });
|
|
4941
4945
|
},
|
|
4942
4946
|
fileToBase64(e) {
|
|
4943
4947
|
new Promise((t, r) => {
|
|
@@ -4952,8 +4956,8 @@ const ve = {
|
|
|
4952
4956
|
cropCardScan(e, t) {
|
|
4953
4957
|
const r = new window.Image(), u = document.createElement("canvas"), l = u.getContext("2d");
|
|
4954
4958
|
r.src = "data:image/jpeg;base64," + e, r.onload = () => {
|
|
4955
|
-
const d = r.width,
|
|
4956
|
-
u.width = C, u.height = p, l.drawImage(r, m, b, d,
|
|
4959
|
+
const d = r.width, g = r.width / 1.65, m = 0, b = r.height / 2 - g / 2, C = d, p = g;
|
|
4960
|
+
u.width = C, u.height = p, l.drawImage(r, m, b, d, g, 0, 0, C, p);
|
|
4957
4961
|
const x = u.toDataURL();
|
|
4958
4962
|
return t(x), x;
|
|
4959
4963
|
};
|
|
@@ -4983,8 +4987,8 @@ const ve = {
|
|
|
4983
4987
|
r = r.replace(/ /g, "+");
|
|
4984
4988
|
const l = new TextEncoder(), d = new TextDecoder();
|
|
4985
4989
|
e = l.encode(e), t = l.encode(t), r = u(r, storage);
|
|
4986
|
-
const
|
|
4987
|
-
let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t },
|
|
4990
|
+
const g = await window.crypto.subtle.importKey("raw", e, "AES-CBC", !0, ["encrypt", "decrypt"]);
|
|
4991
|
+
let m = await window.crypto.subtle.decrypt({ name: "AES-CBC", iv: t }, g, r);
|
|
4988
4992
|
return m = d.decode(m), m = m.replace(/ /g, "+"), m = atob(m), m;
|
|
4989
4993
|
} catch (u) {
|
|
4990
4994
|
console.log(u);
|
|
@@ -5027,9 +5031,9 @@ const ve = {
|
|
|
5027
5031
|
const t = me.getPlatform() || "web";
|
|
5028
5032
|
let r = btoa("domain=" + e.domain + "&client_id=" + e.clientID + "&platform=" + t + "&rand=" + le.generateRandomString(28)), u = le.generateRandomString(28);
|
|
5029
5033
|
localStorage.setItem("pkce_code_verifier", u);
|
|
5030
|
-
let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize",
|
|
5031
|
-
this.isNative ?
|
|
5032
|
-
let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(
|
|
5034
|
+
let l = await le.pkceChallengeFromVerifier(u), d = e.domain + "/v1/authorize", g;
|
|
5035
|
+
this.isNative ? g = "tapni://t.link/callback/okta" : g = location.origin + "/callback/okta";
|
|
5036
|
+
let m = d + "?response_type=code&client_id=" + encodeURIComponent(e.clientID) + "&state=" + encodeURIComponent(r) + "&scope=" + encodeURIComponent("openid email profile") + "&redirect_uri=" + encodeURIComponent(g) + "&code_challenge=" + encodeURIComponent(l) + "&code_challenge_method=S256", b = this, C;
|
|
5033
5037
|
window.addEventListener("message", async (p) => {
|
|
5034
5038
|
if (!this.allowedOrigins.includes(p.origin))
|
|
5035
5039
|
return console.log("Origin is not allowed!");
|
|
@@ -5040,8 +5044,8 @@ const ve = {
|
|
|
5040
5044
|
let e = this.$route.query.code, t, r, u, l, d = { type: "okta" };
|
|
5041
5045
|
if (e && (d.code = e), this.$route.query.state) {
|
|
5042
5046
|
t = this.$route.query.state, t = atob(t);
|
|
5043
|
-
const
|
|
5044
|
-
r =
|
|
5047
|
+
const g = new URLSearchParams(t);
|
|
5048
|
+
r = g.get("client_id"), u = g.get("domain"), l = g.get("platform");
|
|
5045
5049
|
}
|
|
5046
5050
|
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 }));
|
|
5047
5051
|
}
|
|
@@ -5073,10 +5077,10 @@ function Lt(e, t, r) {
|
|
|
5073
5077
|
return (t + r) * 3 / 4 - r;
|
|
5074
5078
|
}
|
|
5075
5079
|
function Ct(e) {
|
|
5076
|
-
var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)),
|
|
5080
|
+
var t, r = gn(e), u = r[0], l = r[1], d = new yt(Lt(e, u, l)), g = 0, m = l > 0 ? u - 4 : u, b;
|
|
5077
5081
|
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[
|
|
5079
|
-
return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[
|
|
5082
|
+
t = V[e.charCodeAt(b)] << 18 | V[e.charCodeAt(b + 1)] << 12 | V[e.charCodeAt(b + 2)] << 6 | V[e.charCodeAt(b + 3)], d[g++] = t >> 16 & 255, d[g++] = t >> 8 & 255, d[g++] = t & 255;
|
|
5083
|
+
return l === 2 && (t = V[e.charCodeAt(b)] << 2 | V[e.charCodeAt(b + 1)] >> 4, d[g++] = t & 255), l === 1 && (t = V[e.charCodeAt(b)] << 10 | V[e.charCodeAt(b + 1)] << 4 | V[e.charCodeAt(b + 2)] >> 2, d[g++] = t >> 8 & 255, d[g++] = t & 255), d;
|
|
5080
5084
|
}
|
|
5081
5085
|
function St(e) {
|
|
5082
5086
|
return Q[e >> 18 & 63] + Q[e >> 12 & 63] + Q[e >> 6 & 63] + Q[e & 63];
|
|
@@ -5087,8 +5091,8 @@ function Tt(e, t, r) {
|
|
|
5087
5091
|
return l.join("");
|
|
5088
5092
|
}
|
|
5089
5093
|
function Et(e) {
|
|
5090
|
-
for (var t, r = e.length, u = r % 3, l = [], d = 16383,
|
|
5091
|
-
l.push(Tt(e,
|
|
5094
|
+
for (var t, r = e.length, u = r % 3, l = [], d = 16383, g = 0, m = r - u; g < m; g += d)
|
|
5095
|
+
l.push(Tt(e, g, g + d > m ? m : g + d));
|
|
5092
5096
|
return u === 1 ? (t = e[r - 1], l.push(
|
|
5093
5097
|
Q[t >> 2] + Q[t << 4 & 63] + "=="
|
|
5094
5098
|
)) : u === 2 && (t = (e[r - 2] << 8) + e[r - 1], l.push(
|
|
@@ -5098,25 +5102,25 @@ function Et(e) {
|
|
|
5098
5102
|
var Me = {};
|
|
5099
5103
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
5100
5104
|
Me.read = function(e, t, r, u, l) {
|
|
5101
|
-
var d,
|
|
5105
|
+
var d, g, m = l * 8 - u - 1, b = (1 << m) - 1, C = b >> 1, p = -7, x = r ? l - 1 : 0, W = r ? -1 : 1, D = e[t + x];
|
|
5102
5106
|
for (x += W, d = D & (1 << -p) - 1, D >>= -p, p += m; p > 0; d = d * 256 + e[t + x], x += W, p -= 8)
|
|
5103
5107
|
;
|
|
5104
|
-
for (
|
|
5108
|
+
for (g = d & (1 << -p) - 1, d >>= -p, p += u; p > 0; g = g * 256 + e[t + x], x += W, p -= 8)
|
|
5105
5109
|
;
|
|
5106
5110
|
if (d === 0)
|
|
5107
5111
|
d = 1 - C;
|
|
5108
5112
|
else {
|
|
5109
5113
|
if (d === b)
|
|
5110
|
-
return
|
|
5111
|
-
|
|
5114
|
+
return g ? NaN : (D ? -1 : 1) * (1 / 0);
|
|
5115
|
+
g = g + Math.pow(2, u), d = d - C;
|
|
5112
5116
|
}
|
|
5113
|
-
return (D ? -1 : 1) *
|
|
5117
|
+
return (D ? -1 : 1) * g * Math.pow(2, d - u);
|
|
5114
5118
|
};
|
|
5115
5119
|
Me.write = function(e, t, r, u, l, d) {
|
|
5116
|
-
var
|
|
5117
|
-
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0,
|
|
5120
|
+
var g, m, b, C = d * 8 - l - 1, p = (1 << C) - 1, x = p >> 1, W = l === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, D = u ? 0 : d - 1, ee = u ? 1 : -1, Ce = t < 0 || t === 0 && 1 / t < 0 ? 1 : 0;
|
|
5121
|
+
for (t = Math.abs(t), isNaN(t) || t === 1 / 0 ? (m = isNaN(t) ? 1 : 0, g = p) : (g = Math.floor(Math.log(t) / Math.LN2), t * (b = Math.pow(2, -g)) < 1 && (g--, b *= 2), g + x >= 1 ? t += W / b : t += W * Math.pow(2, 1 - x), t * b >= 2 && (g++, b /= 2), g + x >= p ? (m = 0, g = p) : g + x >= 1 ? (m = (t * b - 1) * Math.pow(2, l), g = g + x) : (m = t * Math.pow(2, x - 1) * Math.pow(2, l), g = 0)); l >= 8; e[r + D] = m & 255, D += ee, m /= 256, l -= 8)
|
|
5118
5122
|
;
|
|
5119
|
-
for (
|
|
5123
|
+
for (g = g << l | m, C += l; C > 0; e[r + D] = g & 255, D += ee, g /= 256, C -= 8)
|
|
5120
5124
|
;
|
|
5121
5125
|
e[r + D - ee] |= Ce * 128;
|
|
5122
5126
|
};
|
|
@@ -5131,7 +5135,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5131
5135
|
e.Buffer = p, e.SlowBuffer = Tn, e.INSPECT_MAX_BYTES = 50;
|
|
5132
5136
|
const l = 2147483647;
|
|
5133
5137
|
e.kMaxLength = l;
|
|
5134
|
-
const { Uint8Array: d, ArrayBuffer:
|
|
5138
|
+
const { Uint8Array: d, ArrayBuffer: g, SharedArrayBuffer: m } = globalThis;
|
|
5135
5139
|
p.TYPED_ARRAY_SUPPORT = b(), !p.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
|
|
5136
5140
|
"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
5141
|
);
|
|
@@ -5178,13 +5182,13 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5178
5182
|
function x(i, n, a) {
|
|
5179
5183
|
if (typeof i == "string")
|
|
5180
5184
|
return Ce(i, n);
|
|
5181
|
-
if (
|
|
5185
|
+
if (g.isView(i))
|
|
5182
5186
|
return Cn(i);
|
|
5183
5187
|
if (i == null)
|
|
5184
5188
|
throw new TypeError(
|
|
5185
5189
|
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof i
|
|
5186
5190
|
);
|
|
5187
|
-
if (H(i,
|
|
5191
|
+
if (H(i, g) || i && H(i.buffer, g) || typeof m < "u" && (H(i, m) || i && H(i.buffer, m)))
|
|
5188
5192
|
return Te(i, n, a);
|
|
5189
5193
|
if (typeof i == "number")
|
|
5190
5194
|
throw new TypeError(
|
|
@@ -5282,7 +5286,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5282
5286
|
if (n === a)
|
|
5283
5287
|
return 0;
|
|
5284
5288
|
let o = n.length, s = a.length;
|
|
5285
|
-
for (let _ = 0,
|
|
5289
|
+
for (let _ = 0, h = Math.min(o, s); _ < h; ++_)
|
|
5286
5290
|
if (n[_] !== a[_]) {
|
|
5287
5291
|
o = n[_], s = a[_];
|
|
5288
5292
|
break;
|
|
@@ -5317,25 +5321,25 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5317
5321
|
const s = p.allocUnsafe(a);
|
|
5318
5322
|
let _ = 0;
|
|
5319
5323
|
for (o = 0; o < n.length; ++o) {
|
|
5320
|
-
let
|
|
5321
|
-
if (H(
|
|
5322
|
-
_ +
|
|
5324
|
+
let h = n[o];
|
|
5325
|
+
if (H(h, d))
|
|
5326
|
+
_ + h.length > s.length ? (p.isBuffer(h) || (h = p.from(h)), h.copy(s, _)) : d.prototype.set.call(
|
|
5323
5327
|
s,
|
|
5324
|
-
|
|
5328
|
+
h,
|
|
5325
5329
|
_
|
|
5326
5330
|
);
|
|
5327
|
-
else if (p.isBuffer(
|
|
5328
|
-
|
|
5331
|
+
else if (p.isBuffer(h))
|
|
5332
|
+
h.copy(s, _);
|
|
5329
5333
|
else
|
|
5330
5334
|
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
5331
|
-
_ +=
|
|
5335
|
+
_ += h.length;
|
|
5332
5336
|
}
|
|
5333
5337
|
return s;
|
|
5334
5338
|
};
|
|
5335
5339
|
function Re(i, n) {
|
|
5336
5340
|
if (p.isBuffer(i))
|
|
5337
5341
|
return i.length;
|
|
5338
|
-
if (
|
|
5342
|
+
if (g.isView(i) || H(i, g))
|
|
5339
5343
|
return i.byteLength;
|
|
5340
5344
|
if (typeof i != "string")
|
|
5341
5345
|
throw new TypeError(
|
|
@@ -5451,14 +5455,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5451
5455
|
return 1;
|
|
5452
5456
|
if (a >>>= 0, o >>>= 0, s >>>= 0, _ >>>= 0, this === n)
|
|
5453
5457
|
return 0;
|
|
5454
|
-
let
|
|
5455
|
-
const A = Math.min(
|
|
5458
|
+
let h = _ - s, w = o - a;
|
|
5459
|
+
const A = Math.min(h, w), E = this.slice(s, _), P = n.slice(a, o);
|
|
5456
5460
|
for (let S = 0; S < A; ++S)
|
|
5457
5461
|
if (E[S] !== P[S]) {
|
|
5458
|
-
|
|
5462
|
+
h = E[S], w = P[S];
|
|
5459
5463
|
break;
|
|
5460
5464
|
}
|
|
5461
|
-
return
|
|
5465
|
+
return h < w ? -1 : w < h ? 1 : 0;
|
|
5462
5466
|
};
|
|
5463
5467
|
function qe(i, n, a, o, s) {
|
|
5464
5468
|
if (i.length === 0)
|
|
@@ -5479,11 +5483,11 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5479
5483
|
throw new TypeError("val must be string, number or Buffer");
|
|
5480
5484
|
}
|
|
5481
5485
|
function Ne(i, n, a, o, s) {
|
|
5482
|
-
let _ = 1,
|
|
5486
|
+
let _ = 1, h = i.length, w = n.length;
|
|
5483
5487
|
if (o !== void 0 && (o = String(o).toLowerCase(), o === "ucs2" || o === "ucs-2" || o === "utf16le" || o === "utf-16le")) {
|
|
5484
5488
|
if (i.length < 2 || n.length < 2)
|
|
5485
5489
|
return -1;
|
|
5486
|
-
_ = 2,
|
|
5490
|
+
_ = 2, h /= 2, w /= 2, a /= 2;
|
|
5487
5491
|
}
|
|
5488
5492
|
function A(P, S) {
|
|
5489
5493
|
return _ === 1 ? P[S] : P.readUInt16BE(S * _);
|
|
@@ -5491,14 +5495,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5491
5495
|
let E;
|
|
5492
5496
|
if (s) {
|
|
5493
5497
|
let P = -1;
|
|
5494
|
-
for (E = a; E <
|
|
5498
|
+
for (E = a; E < h; E++)
|
|
5495
5499
|
if (A(i, E) === A(n, P === -1 ? 0 : E - P)) {
|
|
5496
5500
|
if (P === -1 && (P = E), E - P + 1 === w)
|
|
5497
5501
|
return P * _;
|
|
5498
5502
|
} else
|
|
5499
5503
|
P !== -1 && (E -= E - P), P = -1;
|
|
5500
5504
|
} else
|
|
5501
|
-
for (a + w >
|
|
5505
|
+
for (a + w > h && (a = h - w), E = a; E >= 0; E--) {
|
|
5502
5506
|
let P = !0;
|
|
5503
5507
|
for (let S = 0; S < w; S++)
|
|
5504
5508
|
if (A(i, E + S) !== A(n, S)) {
|
|
@@ -5523,14 +5527,14 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5523
5527
|
o ? (o = Number(o), o > s && (o = s)) : o = s;
|
|
5524
5528
|
const _ = n.length;
|
|
5525
5529
|
o > _ / 2 && (o = _ / 2);
|
|
5526
|
-
let
|
|
5527
|
-
for (
|
|
5528
|
-
const w = parseInt(n.substr(
|
|
5530
|
+
let h;
|
|
5531
|
+
for (h = 0; h < o; ++h) {
|
|
5532
|
+
const w = parseInt(n.substr(h * 2, 2), 16);
|
|
5529
5533
|
if (Pe(w))
|
|
5530
|
-
return
|
|
5531
|
-
i[a +
|
|
5534
|
+
return h;
|
|
5535
|
+
i[a + h] = w;
|
|
5532
5536
|
}
|
|
5533
|
-
return
|
|
5537
|
+
return h;
|
|
5534
5538
|
}
|
|
5535
5539
|
function An(i, n, a, o) {
|
|
5536
5540
|
return ge(Ae(n, i.length - a), i, a, o);
|
|
@@ -5559,7 +5563,7 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5559
5563
|
if ((o === void 0 || o > _) && (o = _), n.length > 0 && (o < 0 || a < 0) || a > this.length)
|
|
5560
5564
|
throw new RangeError("Attempt to write outside buffer bounds");
|
|
5561
5565
|
s || (s = "utf8");
|
|
5562
|
-
let
|
|
5566
|
+
let h = !1;
|
|
5563
5567
|
for (; ; )
|
|
5564
5568
|
switch (s) {
|
|
5565
5569
|
case "hex":
|
|
@@ -5579,9 +5583,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5579
5583
|
case "utf-16le":
|
|
5580
5584
|
return xn(this, n, a, o);
|
|
5581
5585
|
default:
|
|
5582
|
-
if (
|
|
5586
|
+
if (h)
|
|
5583
5587
|
throw new TypeError("Unknown encoding: " + s);
|
|
5584
|
-
s = ("" + s).toLowerCase(),
|
|
5588
|
+
s = ("" + s).toLowerCase(), h = !0;
|
|
5585
5589
|
}
|
|
5586
5590
|
}, p.prototype.toJSON = function() {
|
|
5587
5591
|
return {
|
|
@@ -5598,24 +5602,24 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5598
5602
|
let s = n;
|
|
5599
5603
|
for (; s < a; ) {
|
|
5600
5604
|
const _ = i[s];
|
|
5601
|
-
let
|
|
5605
|
+
let h = null, w = _ > 239 ? 4 : _ > 223 ? 3 : _ > 191 ? 2 : 1;
|
|
5602
5606
|
if (s + w <= a) {
|
|
5603
5607
|
let A, E, P, S;
|
|
5604
5608
|
switch (w) {
|
|
5605
5609
|
case 1:
|
|
5606
|
-
_ < 128 && (
|
|
5610
|
+
_ < 128 && (h = _);
|
|
5607
5611
|
break;
|
|
5608
5612
|
case 2:
|
|
5609
|
-
A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (
|
|
5613
|
+
A = i[s + 1], (A & 192) === 128 && (S = (_ & 31) << 6 | A & 63, S > 127 && (h = S));
|
|
5610
5614
|
break;
|
|
5611
5615
|
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) && (
|
|
5616
|
+
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) && (h = S));
|
|
5613
5617
|
break;
|
|
5614
5618
|
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 && (
|
|
5619
|
+
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 && (h = S));
|
|
5616
5620
|
}
|
|
5617
5621
|
}
|
|
5618
|
-
|
|
5622
|
+
h === null ? (h = 65533, w = 1) : h > 65535 && (h -= 65536, o.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), o.push(h), s += w;
|
|
5619
5623
|
}
|
|
5620
5624
|
return Mn(o);
|
|
5621
5625
|
}
|
|
@@ -5675,9 +5679,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5675
5679
|
}
|
|
5676
5680
|
p.prototype.readUintLE = p.prototype.readUIntLE = function(n, a, o) {
|
|
5677
5681
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5678
|
-
let s = this[n], _ = 1,
|
|
5679
|
-
for (; ++
|
|
5680
|
-
s += this[n +
|
|
5682
|
+
let s = this[n], _ = 1, h = 0;
|
|
5683
|
+
for (; ++h < a && (_ *= 256); )
|
|
5684
|
+
s += this[n + h] * _;
|
|
5681
5685
|
return s;
|
|
5682
5686
|
}, p.prototype.readUintBE = p.prototype.readUIntBE = function(n, a, o) {
|
|
5683
5687
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
@@ -5709,16 +5713,16 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5709
5713
|
return (BigInt(s) << BigInt(32)) + BigInt(_);
|
|
5710
5714
|
}), p.prototype.readIntLE = function(n, a, o) {
|
|
5711
5715
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5712
|
-
let s = this[n], _ = 1,
|
|
5713
|
-
for (; ++
|
|
5714
|
-
s += this[n +
|
|
5716
|
+
let s = this[n], _ = 1, h = 0;
|
|
5717
|
+
for (; ++h < a && (_ *= 256); )
|
|
5718
|
+
s += this[n + h] * _;
|
|
5715
5719
|
return _ *= 128, s >= _ && (s -= Math.pow(2, 8 * a)), s;
|
|
5716
5720
|
}, p.prototype.readIntBE = function(n, a, o) {
|
|
5717
5721
|
n = n >>> 0, a = a >>> 0, o || M(n, a, this.length);
|
|
5718
|
-
let s = a, _ = 1,
|
|
5722
|
+
let s = a, _ = 1, h = this[n + --s];
|
|
5719
5723
|
for (; s > 0 && (_ *= 256); )
|
|
5720
|
-
|
|
5721
|
-
return _ *= 128,
|
|
5724
|
+
h += this[n + --s] * _;
|
|
5725
|
+
return _ *= 128, h >= _ && (h -= Math.pow(2, 8 * a)), h;
|
|
5722
5726
|
}, p.prototype.readInt8 = function(n, a) {
|
|
5723
5727
|
return n = n >>> 0, a || M(n, 1, this.length), this[n] & 128 ? (255 - this[n] + 1) * -1 : this[n];
|
|
5724
5728
|
}, p.prototype.readInt16LE = function(n, a) {
|
|
@@ -5768,18 +5772,18 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5768
5772
|
const w = Math.pow(2, 8 * o) - 1;
|
|
5769
5773
|
q(this, n, a, o, w, 0);
|
|
5770
5774
|
}
|
|
5771
|
-
let _ = 1,
|
|
5772
|
-
for (this[a] = n & 255; ++
|
|
5773
|
-
this[a +
|
|
5775
|
+
let _ = 1, h = 0;
|
|
5776
|
+
for (this[a] = n & 255; ++h < o && (_ *= 256); )
|
|
5777
|
+
this[a + h] = n / _ & 255;
|
|
5774
5778
|
return a + o;
|
|
5775
5779
|
}, p.prototype.writeUintBE = p.prototype.writeUIntBE = function(n, a, o, s) {
|
|
5776
5780
|
if (n = +n, a = a >>> 0, o = o >>> 0, !s) {
|
|
5777
5781
|
const w = Math.pow(2, 8 * o) - 1;
|
|
5778
5782
|
q(this, n, a, o, w, 0);
|
|
5779
5783
|
}
|
|
5780
|
-
let _ = o - 1,
|
|
5781
|
-
for (this[a + _] = n & 255; --_ >= 0 && (
|
|
5782
|
-
this[a + _] = n /
|
|
5784
|
+
let _ = o - 1, h = 1;
|
|
5785
|
+
for (this[a + _] = n & 255; --_ >= 0 && (h *= 256); )
|
|
5786
|
+
this[a + _] = n / h & 255;
|
|
5783
5787
|
return a + o;
|
|
5784
5788
|
}, p.prototype.writeUint8 = p.prototype.writeUInt8 = function(n, a, o) {
|
|
5785
5789
|
return n = +n, a = a >>> 0, o || q(this, n, a, 1, 255, 0), this[a] = n & 255, a + 1;
|
|
@@ -5796,15 +5800,15 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5796
5800
|
Qe(n, o, s, i, a, 7);
|
|
5797
5801
|
let _ = Number(n & BigInt(4294967295));
|
|
5798
5802
|
i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _, _ = _ >> 8, i[a++] = _;
|
|
5799
|
-
let
|
|
5800
|
-
return i[a++] =
|
|
5803
|
+
let h = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
5804
|
+
return i[a++] = h, h = h >> 8, i[a++] = h, h = h >> 8, i[a++] = h, h = h >> 8, i[a++] = h, a;
|
|
5801
5805
|
}
|
|
5802
5806
|
function Fe(i, n, a, o, s) {
|
|
5803
5807
|
Qe(n, o, s, i, a, 7);
|
|
5804
5808
|
let _ = Number(n & BigInt(4294967295));
|
|
5805
5809
|
i[a + 7] = _, _ = _ >> 8, i[a + 6] = _, _ = _ >> 8, i[a + 5] = _, _ = _ >> 8, i[a + 4] = _;
|
|
5806
|
-
let
|
|
5807
|
-
return i[a + 3] =
|
|
5810
|
+
let h = Number(n >> BigInt(32) & BigInt(4294967295));
|
|
5811
|
+
return i[a + 3] = h, h = h >> 8, i[a + 2] = h, h = h >> 8, i[a + 1] = h, h = h >> 8, i[a] = h, a + 8;
|
|
5808
5812
|
}
|
|
5809
5813
|
p.prototype.writeBigUInt64LE = Z(function(n, a = 0) {
|
|
5810
5814
|
return De(this, n, a, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
@@ -5815,18 +5819,18 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5815
5819
|
const A = Math.pow(2, 8 * o - 1);
|
|
5816
5820
|
q(this, n, a, o, A - 1, -A);
|
|
5817
5821
|
}
|
|
5818
|
-
let _ = 0,
|
|
5819
|
-
for (this[a] = n & 255; ++_ < o && (
|
|
5820
|
-
n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n /
|
|
5822
|
+
let _ = 0, h = 1, w = 0;
|
|
5823
|
+
for (this[a] = n & 255; ++_ < o && (h *= 256); )
|
|
5824
|
+
n < 0 && w === 0 && this[a + _ - 1] !== 0 && (w = 1), this[a + _] = (n / h >> 0) - w & 255;
|
|
5821
5825
|
return a + o;
|
|
5822
5826
|
}, p.prototype.writeIntBE = function(n, a, o, s) {
|
|
5823
5827
|
if (n = +n, a = a >>> 0, !s) {
|
|
5824
5828
|
const A = Math.pow(2, 8 * o - 1);
|
|
5825
5829
|
q(this, n, a, o, A - 1, -A);
|
|
5826
5830
|
}
|
|
5827
|
-
let _ = o - 1,
|
|
5828
|
-
for (this[a + _] = n & 255; --_ >= 0 && (
|
|
5829
|
-
n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n /
|
|
5831
|
+
let _ = o - 1, h = 1, w = 0;
|
|
5832
|
+
for (this[a + _] = n & 255; --_ >= 0 && (h *= 256); )
|
|
5833
|
+
n < 0 && w === 0 && this[a + _ + 1] !== 0 && (w = 1), this[a + _] = (n / h >> 0) - w & 255;
|
|
5830
5834
|
return a + o;
|
|
5831
5835
|
}, p.prototype.writeInt8 = function(n, a, o) {
|
|
5832
5836
|
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;
|
|
@@ -5889,8 +5893,8 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5889
5893
|
if (typeof s == "string" && !p.isEncoding(s))
|
|
5890
5894
|
throw new TypeError("Unknown encoding: " + s);
|
|
5891
5895
|
if (n.length === 1) {
|
|
5892
|
-
const
|
|
5893
|
-
(s === "utf8" &&
|
|
5896
|
+
const h = n.charCodeAt(0);
|
|
5897
|
+
(s === "utf8" && h < 128 || s === "latin1") && (n = h);
|
|
5894
5898
|
}
|
|
5895
5899
|
} else
|
|
5896
5900
|
typeof n == "number" ? n = n & 255 : typeof n == "boolean" && (n = Number(n));
|
|
@@ -5904,11 +5908,11 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5904
5908
|
for (_ = a; _ < o; ++_)
|
|
5905
5909
|
this[_] = n;
|
|
5906
5910
|
else {
|
|
5907
|
-
const
|
|
5911
|
+
const h = p.isBuffer(n) ? n : p.from(n, s), w = h.length;
|
|
5908
5912
|
if (w === 0)
|
|
5909
5913
|
throw new TypeError('The value "' + n + '" is invalid for argument "value"');
|
|
5910
5914
|
for (_ = 0; _ < o - a; ++_)
|
|
5911
|
-
this[_ + a] =
|
|
5915
|
+
this[_ + a] = h[_ % w];
|
|
5912
5916
|
}
|
|
5913
5917
|
return this;
|
|
5914
5918
|
};
|
|
@@ -5970,9 +5974,9 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
5970
5974
|
}
|
|
5971
5975
|
function Qe(i, n, a, o, s, _) {
|
|
5972
5976
|
if (i > a || i < n) {
|
|
5973
|
-
const
|
|
5977
|
+
const h = typeof n == "bigint" ? "n" : "";
|
|
5974
5978
|
let w;
|
|
5975
|
-
throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${
|
|
5979
|
+
throw _ > 3 ? n === 0 || n === BigInt(0) ? w = `>= 0${h} and < 2${h} ** ${(_ + 1) * 8}${h}` : w = `>= -(2${h} ** ${(_ + 1) * 8 - 1}${h}) and < 2 ** ${(_ + 1) * 8 - 1}${h}` : w = `>= ${n}${h} and <= ${a}${h}`, new ie.ERR_OUT_OF_RANGE("value", w, i);
|
|
5976
5980
|
}
|
|
5977
5981
|
On(o, s, _);
|
|
5978
5982
|
}
|
|
@@ -6001,13 +6005,13 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
6001
6005
|
const o = i.length;
|
|
6002
6006
|
let s = null;
|
|
6003
6007
|
const _ = [];
|
|
6004
|
-
for (let
|
|
6005
|
-
if (a = i.charCodeAt(
|
|
6008
|
+
for (let h = 0; h < o; ++h) {
|
|
6009
|
+
if (a = i.charCodeAt(h), a > 55295 && a < 57344) {
|
|
6006
6010
|
if (!s) {
|
|
6007
6011
|
if (a > 56319) {
|
|
6008
6012
|
(n -= 3) > -1 && _.push(239, 191, 189);
|
|
6009
6013
|
continue;
|
|
6010
|
-
} else if (
|
|
6014
|
+
} else if (h + 1 === o) {
|
|
6011
6015
|
(n -= 3) > -1 && _.push(239, 191, 189);
|
|
6012
6016
|
continue;
|
|
6013
6017
|
}
|
|
@@ -6063,8 +6067,8 @@ Me.write = function(e, t, r, u, l, d) {
|
|
|
6063
6067
|
function Kn(i, n) {
|
|
6064
6068
|
let a, o, s;
|
|
6065
6069
|
const _ = [];
|
|
6066
|
-
for (let
|
|
6067
|
-
a = i.charCodeAt(
|
|
6070
|
+
for (let h = 0; h < i.length && !((n -= 2) < 0); ++h)
|
|
6071
|
+
a = i.charCodeAt(h), o = a >> 8, s = a % 256, _.push(s), _.push(o);
|
|
6068
6072
|
return _;
|
|
6069
6073
|
}
|
|
6070
6074
|
function Ge(i) {
|
|
@@ -6382,7 +6386,7 @@ const It = mn.Buffer, ze = {
|
|
|
6382
6386
|
class: "page-login-links"
|
|
6383
6387
|
}, 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
6388
|
function Sa(e, t, r, u, l, d) {
|
|
6385
|
-
const
|
|
6389
|
+
const g = de("router-link");
|
|
6386
6390
|
return f(), k("form", {
|
|
6387
6391
|
class: "page-login content-boxed content-boxed-padding",
|
|
6388
6392
|
onSubmit: t[13] || (t[13] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -6522,7 +6526,7 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6522
6526
|
]),
|
|
6523
6527
|
Ca
|
|
6524
6528
|
])) : (f(), k("div", ya, [
|
|
6525
|
-
d.displayRegisterLogin ? (f(), Y(
|
|
6529
|
+
d.displayRegisterLogin ? (f(), Y(g, {
|
|
6526
6530
|
key: 0,
|
|
6527
6531
|
class: "forgot float-right",
|
|
6528
6532
|
to: "/register"
|
|
@@ -6532,7 +6536,7 @@ function Sa(e, t, r, u, l, d) {
|
|
|
6532
6536
|
]),
|
|
6533
6537
|
_: 1
|
|
6534
6538
|
})) : T("", !0),
|
|
6535
|
-
d.displayResetPasswordLogin ? (f(), Y(
|
|
6539
|
+
d.displayResetPasswordLogin ? (f(), Y(g, {
|
|
6536
6540
|
key: 1,
|
|
6537
6541
|
class: "create float-left",
|
|
6538
6542
|
to: "/reset"
|
|
@@ -6683,7 +6687,7 @@ const hn = /* @__PURE__ */ $(Pt, [["render", Sa]]), Ta = {
|
|
|
6683
6687
|
class: "page-login-links"
|
|
6684
6688
|
}, 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
6689
|
function bi(e, t, r, u, l, d) {
|
|
6686
|
-
const
|
|
6690
|
+
const g = de("router-link");
|
|
6687
6691
|
return f(), k("form", {
|
|
6688
6692
|
class: "page-login content-boxed content-boxed-padding",
|
|
6689
6693
|
onSubmit: t[12] || (t[12] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -6820,7 +6824,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6820
6824
|
]),
|
|
6821
6825
|
ki
|
|
6822
6826
|
])) : (f(), k("div", mi, [
|
|
6823
|
-
j(
|
|
6827
|
+
j(g, {
|
|
6824
6828
|
class: "create float-right",
|
|
6825
6829
|
to: "/verify"
|
|
6826
6830
|
}, {
|
|
@@ -6829,7 +6833,7 @@ function bi(e, t, r, u, l, d) {
|
|
|
6829
6833
|
]),
|
|
6830
6834
|
_: 1
|
|
6831
6835
|
}),
|
|
6832
|
-
j(
|
|
6836
|
+
j(g, {
|
|
6833
6837
|
class: "forgot float-left",
|
|
6834
6838
|
to: "/login"
|
|
6835
6839
|
}, {
|
|
@@ -6942,7 +6946,7 @@ const fn = /* @__PURE__ */ $(Ta, [["render", bi]]), vi = {
|
|
|
6942
6946
|
class: "page-login-links"
|
|
6943
6947
|
}, 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
6948
|
function Hi(e, t, r, u, l, d) {
|
|
6945
|
-
const
|
|
6949
|
+
const g = de("router-link");
|
|
6946
6950
|
return f(), k("form", {
|
|
6947
6951
|
class: "page-login content-boxed content-boxed-padding",
|
|
6948
6952
|
onSubmit: t[6] || (t[6] = U((...m) => d.submit && d.submit(...m), ["prevent"])),
|
|
@@ -7009,7 +7013,7 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7009
7013
|
]),
|
|
7010
7014
|
$i
|
|
7011
7015
|
])) : (f(), k("div", Di, [
|
|
7012
|
-
j(
|
|
7016
|
+
j(g, {
|
|
7013
7017
|
class: "create float-right",
|
|
7014
7018
|
to: "/register"
|
|
7015
7019
|
}, {
|
|
@@ -7018,7 +7022,7 @@ function Hi(e, t, r, u, l, d) {
|
|
|
7018
7022
|
]),
|
|
7019
7023
|
_: 1
|
|
7020
7024
|
}),
|
|
7021
|
-
j(
|
|
7025
|
+
j(g, {
|
|
7022
7026
|
class: "forgot float-left",
|
|
7023
7027
|
to: "/login"
|
|
7024
7028
|
}, {
|
|
@@ -7141,7 +7145,7 @@ const kn = /* @__PURE__ */ $(vi, [["render", Hi], ["__scopeId", "data-v-af1531aa
|
|
|
7141
7145
|
class: "button--loading button__loader"
|
|
7142
7146
|
}, 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
7147
|
function Ao(e, t, r, u, l, d) {
|
|
7144
|
-
const
|
|
7148
|
+
const g = de("router-link");
|
|
7145
7149
|
return l.passwordChange ? (f(), k("form", {
|
|
7146
7150
|
key: 1,
|
|
7147
7151
|
class: "page-login content-boxed content-boxed-padding",
|
|
@@ -7241,7 +7245,7 @@ function Ao(e, t, r, u, l, d) {
|
|
|
7241
7245
|
]),
|
|
7242
7246
|
so,
|
|
7243
7247
|
c("div", co, [
|
|
7244
|
-
j(
|
|
7248
|
+
j(g, {
|
|
7245
7249
|
class: "create float-right",
|
|
7246
7250
|
to: "/verify"
|
|
7247
7251
|
}, {
|
|
@@ -7250,7 +7254,7 @@ function Ao(e, t, r, u, l, d) {
|
|
|
7250
7254
|
]),
|
|
7251
7255
|
_: 1
|
|
7252
7256
|
}),
|
|
7253
|
-
j(
|
|
7257
|
+
j(g, {
|
|
7254
7258
|
class: "forgot float-left",
|
|
7255
7259
|
to: "/login"
|
|
7256
7260
|
}, {
|
|
@@ -7297,7 +7301,7 @@ function Ro(e, t, r, u, l, d) {
|
|
|
7297
7301
|
Bo,
|
|
7298
7302
|
I(" " + y(e.ssoLang[this.appLanguage].if_redirect_not_directly) + ", ", 1),
|
|
7299
7303
|
c("span", {
|
|
7300
|
-
onClick: t[0] || (t[0] = (...
|
|
7304
|
+
onClick: t[0] || (t[0] = (...g) => d.inAppRedirect && d.inAppRedirect(...g)),
|
|
7301
7305
|
style: { color: "blue", cursor: "pointer" }
|
|
7302
7306
|
}, y(e.ssoLang[this.appLanguage].click_here), 1),
|
|
7303
7307
|
I(".")
|
|
@@ -7332,7 +7336,7 @@ const vn = /* @__PURE__ */ $(Po, [["render", Ro]]), qo = {
|
|
|
7332
7336
|
function No(e, t, r, u, l, d) {
|
|
7333
7337
|
return f(), k("div", {
|
|
7334
7338
|
class: R({ "pointer delete-menu": !0, "delete-menu-active": l.toggle }),
|
|
7335
|
-
onClick: t[0] || (t[0] = (...
|
|
7339
|
+
onClick: t[0] || (t[0] = (...g) => d.toggleEmit && d.toggleEmit(...g))
|
|
7336
7340
|
}, null, 2);
|
|
7337
7341
|
}
|
|
7338
7342
|
const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa"]]), Uo = {
|
|
@@ -7396,12 +7400,12 @@ const yn = /* @__PURE__ */ $(qo, [["render", No], ["__scopeId", "data-v-a128c2fa
|
|
|
7396
7400
|
};
|
|
7397
7401
|
function Go(e, t, r, u, l, d) {
|
|
7398
7402
|
return f(), k("form", {
|
|
7399
|
-
onSubmit: t[3] || (t[3] = U((...
|
|
7403
|
+
onSubmit: t[3] || (t[3] = U((...g) => d.submit && d.submit(...g), ["prevent"])),
|
|
7400
7404
|
class: R(["menu-wrapper menu-light menu-modal center-text activate-page", { "active-menu": l.toggle }]),
|
|
7401
7405
|
style: { height: "auto", "margin-top": "-172.5px" }
|
|
7402
7406
|
}, [
|
|
7403
7407
|
c("a", {
|
|
7404
|
-
onClick: t[0] || (t[0] = (...
|
|
7408
|
+
onClick: t[0] || (t[0] = (...g) => d.forceClose && d.forceClose(...g)),
|
|
7405
7409
|
class: "color-black pull-right pointer",
|
|
7406
7410
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7407
7411
|
}, Fo),
|
|
@@ -7409,7 +7413,7 @@ function Go(e, t, r, u, l, d) {
|
|
|
7409
7413
|
c("div", null, [
|
|
7410
7414
|
B(c("input", {
|
|
7411
7415
|
type: "text",
|
|
7412
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
7416
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => l.email = g),
|
|
7413
7417
|
placeholder: e.ssoLang[this.appLanguage].email,
|
|
7414
7418
|
autocomplete: "off",
|
|
7415
7419
|
autocorrect: "off",
|
|
@@ -7492,7 +7496,7 @@ const wn = /* @__PURE__ */ $(Uo, [["render", Go], ["__scopeId", "data-v-11f19a09
|
|
|
7492
7496
|
class: "button--loading button__loader"
|
|
7493
7497
|
};
|
|
7494
7498
|
function cr(e, t, r, u, l, d) {
|
|
7495
|
-
var
|
|
7499
|
+
var g, m, b;
|
|
7496
7500
|
return f(), k("form", {
|
|
7497
7501
|
onSubmit: t[4] || (t[4] = U(() => {
|
|
7498
7502
|
}, ["prevent"])),
|
|
@@ -7505,7 +7509,7 @@ function cr(e, t, r, u, l, d) {
|
|
|
7505
7509
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7506
7510
|
}, Xo),
|
|
7507
7511
|
c("h3", Zo, y(e.ssoLang[e.appLanguage].select_sign_method), 1),
|
|
7508
|
-
(
|
|
7512
|
+
(g = l.sso) != null && g.azure ? (f(), k("a", {
|
|
7509
7513
|
key: 0,
|
|
7510
7514
|
onClick: t[1] || (t[1] = (C) => d.ssoLogin("azure")),
|
|
7511
7515
|
class: "button-center button black-button button-90 google-button pointer"
|
|
@@ -7605,7 +7609,7 @@ const zn = /* @__PURE__ */ $(Wo, [["render", cr], ["__scopeId", "data-v-4f821f65
|
|
|
7605
7609
|
methods: {}
|
|
7606
7610
|
}, dr = ["src", "alt"], pr = ["src", "alt"], ur = ["src", "alt"], _r = ["src", "alt"];
|
|
7607
7611
|
function mr(e, t, r, u, l, d) {
|
|
7608
|
-
var
|
|
7612
|
+
var g, m;
|
|
7609
7613
|
return f(), k("a", {
|
|
7610
7614
|
class: R(["disable-select", r.linkStyle + (r.disabled ? " opacity-50" : "")]),
|
|
7611
7615
|
style: ce(
|
|
@@ -7618,7 +7622,7 @@ function mr(e, t, r, u, l, d) {
|
|
|
7618
7622
|
"pulse pulse-border": r.pulse,
|
|
7619
7623
|
"link-drag": r.editing
|
|
7620
7624
|
}),
|
|
7621
|
-
style: ce({ ...(
|
|
7625
|
+
style: ce({ ...(g = r.customLinkStyle) == null ? void 0 : g.linkIcon })
|
|
7622
7626
|
}, [
|
|
7623
7627
|
!r.data.custom_icon && r.data.type !== "customlink" ? (f(), k("img", {
|
|
7624
7628
|
key: 0,
|
|
@@ -7707,7 +7711,7 @@ const gr = /* @__PURE__ */ $(lr, [["render", mr]]), hr = {
|
|
|
7707
7711
|
br
|
|
7708
7712
|
], yr = { class: "bold center-text color-black small-bottom" };
|
|
7709
7713
|
function wr(e, t, r, u, l, d) {
|
|
7710
|
-
const
|
|
7714
|
+
const g = de("LinkIcon");
|
|
7711
7715
|
return f(), k("div", {
|
|
7712
7716
|
class: R(["menu-wrapper menu-light menu-white menu-modal center-text activate-page", { "active-menu": l.toggle }]),
|
|
7713
7717
|
style: { height: "auto", "max-height": "92vh", "margin-top": "-172.5px" }
|
|
@@ -7718,56 +7722,56 @@ function wr(e, t, r, u, l, d) {
|
|
|
7718
7722
|
style: { "margin-top": "5px", position: "absolute", right: "5px" }
|
|
7719
7723
|
}, vr),
|
|
7720
7724
|
c("h3", yr, y(e.ssoLang[e.appLanguage].app_language), 1),
|
|
7721
|
-
j(
|
|
7725
|
+
j(g, {
|
|
7722
7726
|
onClick: t[1] || (t[1] = (m) => d.updateLanguage("en")),
|
|
7723
7727
|
"link-style": "link-grid",
|
|
7724
7728
|
data: { type: "lang/en", text: e.ssoLang[this.appLanguage].english },
|
|
7725
7729
|
editing: !1,
|
|
7726
7730
|
class: R({ "add-button": !0 })
|
|
7727
7731
|
}, null, 8, ["data"]),
|
|
7728
|
-
j(
|
|
7732
|
+
j(g, {
|
|
7729
7733
|
onClick: t[2] || (t[2] = (m) => d.updateLanguage("es")),
|
|
7730
7734
|
"link-style": "link-grid",
|
|
7731
7735
|
data: { type: "lang/es", text: e.ssoLang[this.appLanguage].spanish },
|
|
7732
7736
|
editing: !1,
|
|
7733
7737
|
class: R({ "add-button": !0 })
|
|
7734
7738
|
}, null, 8, ["data"]),
|
|
7735
|
-
j(
|
|
7739
|
+
j(g, {
|
|
7736
7740
|
onClick: t[3] || (t[3] = (m) => d.updateLanguage("de")),
|
|
7737
7741
|
"link-style": "link-grid",
|
|
7738
7742
|
data: { type: "lang/de", text: e.ssoLang[this.appLanguage].german },
|
|
7739
7743
|
editing: !1,
|
|
7740
7744
|
class: R({ "add-button": !0 })
|
|
7741
7745
|
}, null, 8, ["data"]),
|
|
7742
|
-
j(
|
|
7746
|
+
j(g, {
|
|
7743
7747
|
onClick: t[4] || (t[4] = (m) => d.updateLanguage("it")),
|
|
7744
7748
|
"link-style": "link-grid",
|
|
7745
7749
|
data: { type: "lang/it", text: e.ssoLang[this.appLanguage].italian },
|
|
7746
7750
|
editing: !1,
|
|
7747
7751
|
class: R({ "add-button": !0 })
|
|
7748
7752
|
}, null, 8, ["data"]),
|
|
7749
|
-
j(
|
|
7753
|
+
j(g, {
|
|
7750
7754
|
onClick: t[5] || (t[5] = (m) => d.updateLanguage("fr")),
|
|
7751
7755
|
"link-style": "link-grid",
|
|
7752
7756
|
data: { type: "lang/fr", text: e.ssoLang[this.appLanguage].french },
|
|
7753
7757
|
editing: !1,
|
|
7754
7758
|
class: R({ "add-button": !0 })
|
|
7755
7759
|
}, null, 8, ["data"]),
|
|
7756
|
-
j(
|
|
7760
|
+
j(g, {
|
|
7757
7761
|
onClick: t[6] || (t[6] = (m) => d.updateLanguage("kr")),
|
|
7758
7762
|
"link-style": "link-grid",
|
|
7759
7763
|
data: { type: "lang/kr", text: e.ssoLang[this.appLanguage].korean },
|
|
7760
7764
|
editing: !1,
|
|
7761
7765
|
class: R({ "add-button": !0 })
|
|
7762
7766
|
}, null, 8, ["data"]),
|
|
7763
|
-
j(
|
|
7767
|
+
j(g, {
|
|
7764
7768
|
onClick: t[7] || (t[7] = (m) => d.updateLanguage("sr")),
|
|
7765
7769
|
"link-style": "link-grid",
|
|
7766
7770
|
data: { type: "lang/sr", text: e.ssoLang[this.appLanguage].serbian },
|
|
7767
7771
|
editing: !1,
|
|
7768
7772
|
class: R({ "add-button": !0 })
|
|
7769
7773
|
}, null, 8, ["data"]),
|
|
7770
|
-
j(
|
|
7774
|
+
j(g, {
|
|
7771
7775
|
onClick: t[8] || (t[8] = (m) => d.updateLanguage("tr")),
|
|
7772
7776
|
"link-style": "link-grid",
|
|
7773
7777
|
data: { type: "lang/tr", text: e.ssoLang[this.appLanguage].turkish },
|
|
@@ -7921,7 +7925,11 @@ const Lr = { id: "ssoapp" }, Cr = {
|
|
|
7921
7925
|
}), ns = {
|
|
7922
7926
|
TapniAuth: Ze,
|
|
7923
7927
|
install: (e, t) => {
|
|
7924
|
-
t && t.API_ROOT &&
|
|
7928
|
+
t && t.API_ROOT && e.mixin({
|
|
7929
|
+
created() {
|
|
7930
|
+
this.API_ROOT = t.API_ROOT;
|
|
7931
|
+
}
|
|
7932
|
+
}), e.component("TapniAuth", Ze);
|
|
7925
7933
|
}
|
|
7926
7934
|
};
|
|
7927
7935
|
export {
|