@spot-flow/checkout-inline-js 0.3.2 → 0.3.4
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.
|
@@ -58,14 +58,14 @@ let N = class extends Error {
|
|
|
58
58
|
super(e), this.name = "AuthorizationError";
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
const
|
|
61
|
+
const Oe = (n, e, t) => {
|
|
62
62
|
if (!n)
|
|
63
63
|
throw new Ee("Missing authorization token");
|
|
64
64
|
const i = new Headers();
|
|
65
65
|
return t || i.append("Content-Type", "application/json"), i.append("Authorization", `Bearer ${n}`), i.append("Origin", "https://sdk.spotflow.co"), e && i.append("Spotflow-Payment-Code", e), i;
|
|
66
|
-
},
|
|
66
|
+
}, Ue = "https://api.spotflow.co/api/v1", dl = async (n, e, t, i) => {
|
|
67
67
|
try {
|
|
68
|
-
const s =
|
|
68
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
69
69
|
method: "POST",
|
|
70
70
|
headers: s,
|
|
71
71
|
body: JSON.stringify(e)
|
|
@@ -83,8 +83,8 @@ const Ne = (n, e, t) => {
|
|
|
83
83
|
}
|
|
84
84
|
}, ci = async (n, e, t, i) => {
|
|
85
85
|
try {
|
|
86
|
-
const s =
|
|
87
|
-
`${ue(
|
|
86
|
+
const s = Oe(n, t), a = await fetch(
|
|
87
|
+
`${ue(Ue, i)}/payments/authorize`,
|
|
88
88
|
{
|
|
89
89
|
method: "POST",
|
|
90
90
|
headers: s,
|
|
@@ -104,7 +104,7 @@ const Ne = (n, e, t) => {
|
|
|
104
104
|
}
|
|
105
105
|
}, ns = async (n, e, t, i) => {
|
|
106
106
|
try {
|
|
107
|
-
const s =
|
|
107
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
108
108
|
method: "POST",
|
|
109
109
|
headers: s,
|
|
110
110
|
body: JSON.stringify(e)
|
|
@@ -122,7 +122,7 @@ const Ne = (n, e, t) => {
|
|
|
122
122
|
}
|
|
123
123
|
}, ul = async (n, e, t, i) => {
|
|
124
124
|
try {
|
|
125
|
-
const s =
|
|
125
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
126
126
|
method: "POST",
|
|
127
127
|
headers: s,
|
|
128
128
|
body: JSON.stringify(e)
|
|
@@ -140,7 +140,7 @@ const Ne = (n, e, t) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, hl = async (n, e, t, i) => {
|
|
142
142
|
try {
|
|
143
|
-
const s =
|
|
143
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments`, {
|
|
144
144
|
method: "POST",
|
|
145
145
|
headers: s,
|
|
146
146
|
body: JSON.stringify(e)
|
|
@@ -158,8 +158,8 @@ const Ne = (n, e, t) => {
|
|
|
158
158
|
}
|
|
159
159
|
}, en = async (n, e, t, i, s) => {
|
|
160
160
|
try {
|
|
161
|
-
const a =
|
|
162
|
-
`${ue(
|
|
161
|
+
const a = Oe(n, i), o = await fetch(
|
|
162
|
+
`${ue(Ue, s)}/payments/verify?reference=${e}`,
|
|
163
163
|
{
|
|
164
164
|
method: "GET",
|
|
165
165
|
headers: a,
|
|
@@ -179,10 +179,10 @@ const Ne = (n, e, t) => {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
async function ml(n, e, t, i, s) {
|
|
182
|
-
const a =
|
|
182
|
+
const a = Oe(n, t);
|
|
183
183
|
try {
|
|
184
184
|
const o = await fetch(
|
|
185
|
-
`${ue(
|
|
185
|
+
`${ue(Ue, i)}/mobile-money/providers?currency=${s || e}`,
|
|
186
186
|
{
|
|
187
187
|
headers: a,
|
|
188
188
|
method: "GET"
|
|
@@ -199,8 +199,8 @@ async function ml(n, e, t, i, s) {
|
|
|
199
199
|
}
|
|
200
200
|
const pl = async (n, e, t, i) => {
|
|
201
201
|
try {
|
|
202
|
-
const s =
|
|
203
|
-
`${ue(
|
|
202
|
+
const s = Oe(n, t), a = await fetch(
|
|
203
|
+
`${ue(Ue, i)}/payments/cancel`,
|
|
204
204
|
{
|
|
205
205
|
method: "POST",
|
|
206
206
|
headers: s,
|
|
@@ -219,8 +219,8 @@ const pl = async (n, e, t, i) => {
|
|
|
219
219
|
}
|
|
220
220
|
}, vl = async (n, e, t, i) => {
|
|
221
221
|
try {
|
|
222
|
-
const s =
|
|
223
|
-
`${ue(
|
|
222
|
+
const s = Oe(n, t, !0), a = await fetch(
|
|
223
|
+
`${ue(Ue, i)}/disputes/upload-documents`,
|
|
224
224
|
{
|
|
225
225
|
method: "POST",
|
|
226
226
|
headers: s,
|
|
@@ -237,8 +237,8 @@ const pl = async (n, e, t, i) => {
|
|
|
237
237
|
}
|
|
238
238
|
}, bl = async (n, e, t, i) => {
|
|
239
239
|
try {
|
|
240
|
-
const s =
|
|
241
|
-
`${ue(
|
|
240
|
+
const s = Oe(n, t), a = await fetch(
|
|
241
|
+
`${ue(Ue, i)}/disputes/reference`,
|
|
242
242
|
{
|
|
243
243
|
method: "POST",
|
|
244
244
|
headers: s,
|
|
@@ -255,7 +255,7 @@ const pl = async (n, e, t, i) => {
|
|
|
255
255
|
}
|
|
256
256
|
}, mt = async (n, e, t, i) => {
|
|
257
257
|
try {
|
|
258
|
-
const s =
|
|
258
|
+
const s = Oe(n, t), a = await fetch(`${ue(Ue, i)}/payments/retry`, {
|
|
259
259
|
method: "POST",
|
|
260
260
|
headers: s,
|
|
261
261
|
body: JSON.stringify(e)
|
|
@@ -274,8 +274,8 @@ const pl = async (n, e, t, i) => {
|
|
|
274
274
|
};
|
|
275
275
|
async function fl(n, e, t, i, s) {
|
|
276
276
|
try {
|
|
277
|
-
const a =
|
|
278
|
-
`${ue(
|
|
277
|
+
const a = Oe(n, i), o = await fetch(
|
|
278
|
+
`${ue(Ue, s)}/payments/tax-quotes?amount=${e || ""}¤cy=${t || ""}`,
|
|
279
279
|
{
|
|
280
280
|
headers: a,
|
|
281
281
|
method: "GET"
|
|
@@ -292,8 +292,8 @@ async function fl(n, e, t, i, s) {
|
|
|
292
292
|
}
|
|
293
293
|
const gl = async (n, e, t, i) => {
|
|
294
294
|
try {
|
|
295
|
-
const s =
|
|
296
|
-
`${ue(
|
|
295
|
+
const s = Oe(n, t), a = await fetch(
|
|
296
|
+
`${ue(Ue, i)}/payments/charge?reference=${e}`,
|
|
297
297
|
{
|
|
298
298
|
method: "POST",
|
|
299
299
|
headers: s
|
|
@@ -334,8 +334,8 @@ const gl = async (n, e, t, i) => {
|
|
|
334
334
|
}
|
|
335
335
|
}, Cl = async (n, e, t) => {
|
|
336
336
|
try {
|
|
337
|
-
const i =
|
|
338
|
-
`${ue(
|
|
337
|
+
const i = Oe(n, e), s = await fetch(
|
|
338
|
+
`${ue(Ue, t)}/stablecoins/assets`,
|
|
339
339
|
{
|
|
340
340
|
method: "GET",
|
|
341
341
|
headers: i
|
|
@@ -351,8 +351,8 @@ const gl = async (n, e, t, i) => {
|
|
|
351
351
|
}
|
|
352
352
|
}, wl = async (n, e, t) => {
|
|
353
353
|
try {
|
|
354
|
-
const i =
|
|
355
|
-
`${ue(
|
|
354
|
+
const i = Oe(n, e), s = await fetch(
|
|
355
|
+
`${ue(Ue, t)}/stablecoins/chains`,
|
|
356
356
|
{
|
|
357
357
|
method: "GET",
|
|
358
358
|
headers: i
|
|
@@ -1407,7 +1407,9 @@ const Ca = {
|
|
|
1407
1407
|
"error-fetching": "Error fetching bank details",
|
|
1408
1408
|
"account-expired": "Account Expired",
|
|
1409
1409
|
"account-expired-desc": " Looks like your account is not valid. Please confirm and try again",
|
|
1410
|
-
"transfer-header": "
|
|
1410
|
+
"transfer-header-1": "Please make a single bank transfer of the",
|
|
1411
|
+
"transfer-header-2": "exact amount shown",
|
|
1412
|
+
"transfer-header-3": "before the account expires to complete your payment successfully.",
|
|
1411
1413
|
"account-number": "Account Number",
|
|
1412
1414
|
"made-transfer": "I have made this bank transfer",
|
|
1413
1415
|
"expiration-text": "This account is for this transaction only and expires in"
|
|
@@ -1861,9 +1863,9 @@ const Fs = new Pl({
|
|
|
1861
1863
|
t.forEach((f) => f(n));
|
|
1862
1864
|
}, l = () => {
|
|
1863
1865
|
s.forEach((f) => f(i > 0));
|
|
1864
|
-
},
|
|
1866
|
+
}, m = (f) => (t.push(f), () => {
|
|
1865
1867
|
t = t.filter((S) => S !== f);
|
|
1866
|
-
}),
|
|
1868
|
+
}), p = async (f, S = n, A = "static") => {
|
|
1867
1869
|
if (a) return Array.isArray(f) ? f : [f];
|
|
1868
1870
|
if (S === "en" && A === "static")
|
|
1869
1871
|
return Array.isArray(f) ? f : [f];
|
|
@@ -1889,16 +1891,16 @@ const Fs = new Pl({
|
|
|
1889
1891
|
return {
|
|
1890
1892
|
setLanguage: o,
|
|
1891
1893
|
getLanguage: () => n,
|
|
1892
|
-
translate:
|
|
1894
|
+
translate: p,
|
|
1893
1895
|
translateRecord: async (f, S = n) => {
|
|
1894
1896
|
if (S === "en" || a) return f;
|
|
1895
1897
|
const A = Object.keys(f), M = Object.values(f);
|
|
1896
|
-
return (await
|
|
1897
|
-
(D, F,
|
|
1898
|
+
return (await p(M, S)).reduce(
|
|
1899
|
+
(D, F, z) => (D[A[z]] = F, D),
|
|
1898
1900
|
{}
|
|
1899
1901
|
);
|
|
1900
1902
|
},
|
|
1901
|
-
subscribe:
|
|
1903
|
+
subscribe: m,
|
|
1902
1904
|
subscribeToLoading: (f) => (s.push(f), () => {
|
|
1903
1905
|
s = s.filter((S) => S !== f);
|
|
1904
1906
|
}),
|
|
@@ -1912,7 +1914,7 @@ const it = (n) => {
|
|
|
1912
1914
|
}, H = () => _a, Il = (n, e) => {
|
|
1913
1915
|
const t = is(n, e), i = t == null ? void 0 : t.language, s = Le.getTranslationError();
|
|
1914
1916
|
i && i !== Cn ? it(s ? "en" : Cn) : i && i === Cn ? it(i) : !Cn && !i && it("en");
|
|
1915
|
-
},
|
|
1917
|
+
}, q = async (n, e) => {
|
|
1916
1918
|
const t = await Le.translate(
|
|
1917
1919
|
n,
|
|
1918
1920
|
e,
|
|
@@ -1953,9 +1955,9 @@ const Ba = async (n) => {
|
|
|
1953
1955
|
n
|
|
1954
1956
|
);
|
|
1955
1957
|
};
|
|
1956
|
-
let
|
|
1958
|
+
let Ie = Aa;
|
|
1957
1959
|
const Ha = async (n) => {
|
|
1958
|
-
|
|
1960
|
+
Ie = await Le.translateRecord(
|
|
1959
1961
|
Aa,
|
|
1960
1962
|
n
|
|
1961
1963
|
);
|
|
@@ -1974,9 +1976,9 @@ const Na = async (n) => {
|
|
|
1974
1976
|
n
|
|
1975
1977
|
);
|
|
1976
1978
|
};
|
|
1977
|
-
let
|
|
1979
|
+
let Fe = Ta;
|
|
1978
1980
|
const Oa = async (n) => {
|
|
1979
|
-
|
|
1981
|
+
Fe = await Le.translateRecord(
|
|
1980
1982
|
Ta,
|
|
1981
1983
|
n
|
|
1982
1984
|
);
|
|
@@ -1995,11 +1997,11 @@ function Ks(n) {
|
|
|
1995
1997
|
return cn[n];
|
|
1996
1998
|
if (n in pe) return pe[n];
|
|
1997
1999
|
if (n in Xe) return Xe[n];
|
|
1998
|
-
if (n in
|
|
2000
|
+
if (n in Ie) return Ie[n];
|
|
1999
2001
|
if (n in Me) return Me[n];
|
|
2000
2002
|
if (n in Dn) return Dn[n];
|
|
2001
2003
|
if (n in Bn) return Bn[n];
|
|
2002
|
-
if (n in
|
|
2004
|
+
if (n in Fe) return Fe[n];
|
|
2003
2005
|
}
|
|
2004
2006
|
function Ki() {
|
|
2005
2007
|
document.querySelectorAll("[data-translate]").forEach((n) => {
|
|
@@ -2077,12 +2079,12 @@ class Gs {
|
|
|
2077
2079
|
".details-form-button"
|
|
2078
2080
|
), c = document.querySelector("#checkoutcard"), l = this.container.querySelector(
|
|
2079
2081
|
"#enter-details-text"
|
|
2080
|
-
),
|
|
2082
|
+
), m = this.container.querySelector("#certified-text"), p = this.container.querySelector(
|
|
2081
2083
|
"#card-confirmation-text-one"
|
|
2082
2084
|
), y = this.container.querySelector(
|
|
2083
2085
|
"#card-confirmation-text-two"
|
|
2084
2086
|
);
|
|
2085
|
-
l && (l.innerHTML = pe["enter-card-details"]),
|
|
2087
|
+
l && (l.innerHTML = pe["enter-card-details"]), m && (m.innerHTML = pe.certified), p && (p.innerHTML = pe["card-confirmation-one"]), y && (y.innerHTML = pe["card-confirmation-two"]), t && (t.setAttribute(
|
|
2086
2088
|
"placeholder",
|
|
2087
2089
|
pe["card-number"]
|
|
2088
2090
|
), t.addEventListener(
|
|
@@ -2124,7 +2126,7 @@ class Gs {
|
|
|
2124
2126
|
return t.reduce((s, a) => s + a, 0) % 10 === 0;
|
|
2125
2127
|
}
|
|
2126
2128
|
handleInputChange(e, t) {
|
|
2127
|
-
var c, l,
|
|
2129
|
+
var c, l, m;
|
|
2128
2130
|
const i = e.target, { name: s, value: a } = i;
|
|
2129
2131
|
let o = a;
|
|
2130
2132
|
if (a.trim() === "") {
|
|
@@ -2133,7 +2135,7 @@ class Gs {
|
|
|
2133
2135
|
}
|
|
2134
2136
|
if (s === "number") {
|
|
2135
2137
|
o = Ml(a);
|
|
2136
|
-
const
|
|
2138
|
+
const p = o.replace(/\s+/g, ""), y = this.validateCreditCard(p);
|
|
2137
2139
|
this.filterCreditCardType(a);
|
|
2138
2140
|
const b = (c = this.creditCardTypes[0]) == null ? void 0 : c.name;
|
|
2139
2141
|
b && _n.map((g) => {
|
|
@@ -2142,7 +2144,7 @@ class Gs {
|
|
|
2142
2144
|
const w = _l[b];
|
|
2143
2145
|
if (w.length > 1) {
|
|
2144
2146
|
const f = w.some(
|
|
2145
|
-
(S) =>
|
|
2147
|
+
(S) => p.length === S
|
|
2146
2148
|
);
|
|
2147
2149
|
this.checkInputValidity(
|
|
2148
2150
|
y,
|
|
@@ -2151,10 +2153,10 @@ class Gs {
|
|
|
2151
2153
|
"card-number-invalid"
|
|
2152
2154
|
);
|
|
2153
2155
|
} else
|
|
2154
|
-
|
|
2156
|
+
p.length === w[0] && this.checkInputValidity(
|
|
2155
2157
|
y,
|
|
2156
2158
|
i,
|
|
2157
|
-
|
|
2159
|
+
p.length >= 14 && p.length <= 19,
|
|
2158
2160
|
"card-number-invalid"
|
|
2159
2161
|
);
|
|
2160
2162
|
} else
|
|
@@ -2166,9 +2168,9 @@ class Gs {
|
|
|
2166
2168
|
);
|
|
2167
2169
|
});
|
|
2168
2170
|
} else if (s === "expiry") {
|
|
2169
|
-
const
|
|
2171
|
+
const p = /* @__PURE__ */ new Date();
|
|
2170
2172
|
o = xl(a);
|
|
2171
|
-
const y = o.split("/"), b = (l = y[0]) == null ? void 0 : l.trim(), g = (
|
|
2173
|
+
const y = o.split("/"), b = (l = y[0]) == null ? void 0 : l.trim(), g = (m = y[1]) == null ? void 0 : m.trim(), w = (/* @__PURE__ */ new Date()).getFullYear() % 100, f = p.getMonth() + 1;
|
|
2172
2174
|
let S = !0;
|
|
2173
2175
|
(parseInt(g) === w && parseInt(b) < f || parseInt(g) < w) && (S = !1), (g == null ? void 0 : g.length) === 2 && this.checkInputValidity(
|
|
2174
2176
|
S,
|
|
@@ -24684,16 +24686,16 @@ class Gl {
|
|
|
24684
24686
|
"#avs-form-button-text"
|
|
24685
24687
|
), l = this.container.querySelector("#certified-text");
|
|
24686
24688
|
e && (e.innerHTML = this.translatedTexts["billing-address"]), t && (t.innerHTML = this.translatedTexts.address), i && (i.innerHTML = this.translatedTexts.country), s && (s.innerHTML = this.translatedTexts.state), a && (a.innerHTML = this.translatedTexts.city), o && (o.innerHTML = this.translatedTexts["zip-code"]), c && (c.innerHTML = this.translatedTexts.submit), l && (l.innerHTML = pe.certified);
|
|
24687
|
-
const
|
|
24689
|
+
const m = this.container.querySelector(
|
|
24688
24690
|
"input[name='address']"
|
|
24689
|
-
),
|
|
24691
|
+
), p = this.container.querySelector(
|
|
24690
24692
|
"select[name='country']"
|
|
24691
24693
|
), y = this.container.querySelector("input[name='city']"), b = this.container.querySelector(
|
|
24692
24694
|
"select[name='state']"
|
|
24693
24695
|
), g = this.container.querySelector("input[name='code']"), w = document.querySelector(
|
|
24694
24696
|
"#avs-form-button"
|
|
24695
24697
|
), f = document.querySelector("#card-avs-form");
|
|
24696
|
-
|
|
24698
|
+
m && m.addEventListener(
|
|
24697
24699
|
"input",
|
|
24698
24700
|
(S) => this.handleInputChange(S, w)
|
|
24699
24701
|
), y && y.addEventListener(
|
|
@@ -24702,7 +24704,7 @@ class Gl {
|
|
|
24702
24704
|
), b && b.addEventListener(
|
|
24703
24705
|
"change",
|
|
24704
24706
|
(S) => this.handleInputChange(S, w)
|
|
24705
|
-
),
|
|
24707
|
+
), p && p.addEventListener("change", (S) => {
|
|
24706
24708
|
b ? this.handleInputChange(S, w, b) : this.handleInputChange(S, w);
|
|
24707
24709
|
}), g && g.addEventListener(
|
|
24708
24710
|
"input",
|
|
@@ -24724,14 +24726,14 @@ class Gl {
|
|
|
24724
24726
|
if (a === "address" && (this.contactDetails.address = o), a === "country") {
|
|
24725
24727
|
this.contactDetails.country = o;
|
|
24726
24728
|
const l = this.countries.find(
|
|
24727
|
-
(
|
|
24729
|
+
(m) => m.value === this.contactDetails.country
|
|
24728
24730
|
);
|
|
24729
|
-
l && (this.states = l.state.map((
|
|
24730
|
-
label:
|
|
24731
|
-
value:
|
|
24732
|
-
})), i && (i.innerHTML = "", this.contactDetails.state = "", this.states.forEach((
|
|
24733
|
-
const
|
|
24734
|
-
i.appendChild(
|
|
24731
|
+
l && (this.states = l.state.map((m) => ({
|
|
24732
|
+
label: m,
|
|
24733
|
+
value: m
|
|
24734
|
+
})), i && (i.innerHTML = "", this.contactDetails.state = "", this.states.forEach((m) => {
|
|
24735
|
+
const p = new Option(m.label, m.value);
|
|
24736
|
+
i.appendChild(p);
|
|
24735
24737
|
})));
|
|
24736
24738
|
}
|
|
24737
24739
|
if (a === "state" && (this.contactDetails.state = o), a === "city" && (this.contactDetails.city = o), a === "code" && (this.contactDetails.code = mi(o), c = mi(o)), s.value = c, this.validateCard())
|
|
@@ -25078,7 +25080,7 @@ class Zl {
|
|
|
25078
25080
|
"#debited-select-field"
|
|
25079
25081
|
), o = this.container.querySelector(
|
|
25080
25082
|
"#debited-select-label"
|
|
25081
|
-
), c = this.container.querySelector("#type-select-field"), l = this.container.querySelector("#type-select-label"),
|
|
25083
|
+
), c = this.container.querySelector("#type-select-field"), l = this.container.querySelector("#type-select-label"), m = this.container.querySelector("#filee"), p = this.container.querySelector("#file-label"), y = this.container.querySelector("#file-text"), b = this.container.querySelector("#file-icon"), g = this.container.querySelector("#file-button"), w = this.container.querySelector("#form-button"), f = document.querySelector(
|
|
25082
25084
|
"#transaction-issues-form"
|
|
25083
25085
|
);
|
|
25084
25086
|
e && (e.value = ((S = this.paymentResponse) == null ? void 0 : S.reference) || ""), t && t.addEventListener("input", (M) => {
|
|
@@ -25089,18 +25091,18 @@ class Zl {
|
|
|
25089
25091
|
this.handleInputChange(M, w), a.value ? o && (o.classList.add("inset-y-4"), o.classList.remove("top-1/2")) : o && (o.classList.add("top-1/2"), o.classList.remove("inset-y-4"));
|
|
25090
25092
|
})), c && (c.value || l && (l.classList.add("top-1/2"), l.classList.remove("inset-y-4")), c == null || c.addEventListener("change", (M) => {
|
|
25091
25093
|
this.handleInputChange(M, w), c.value ? l && (l.classList.add("inset-y-4"), l.classList.remove("top-1/2")) : l && (l.classList.add("top-1/2"), l.classList.remove("inset-y-4"));
|
|
25092
|
-
})),
|
|
25094
|
+
})), m && m.addEventListener("change", (M) => {
|
|
25093
25095
|
var D;
|
|
25094
25096
|
M.preventDefault();
|
|
25095
|
-
const L =
|
|
25097
|
+
const L = m.files, E = /(\.jpg|\.jpeg|\.png|\.pdf)$/i;
|
|
25096
25098
|
if (L && L.length)
|
|
25097
25099
|
if (E.exec(L[0].name)) {
|
|
25098
25100
|
const F = L[0];
|
|
25099
25101
|
g && (g.innerHTML = `<span class="bg-primary text-white text-sm font-semibold py-2 px-3 rounded-md" id="upload-btn-text">
|
|
25100
25102
|
Uploading...
|
|
25101
25103
|
</span>`), setTimeout(async () => {
|
|
25102
|
-
var
|
|
25103
|
-
this.uploadRes = await this.uploadEvidenceFile(F), (
|
|
25104
|
+
var z;
|
|
25105
|
+
this.uploadRes = await this.uploadEvidenceFile(F), (z = this.uploadRes) != null && z.url && this.documents.push(this.uploadRes.url), L[0].name && (p && (p.textContent = this.uploadRes.message), y && (y.textContent = `${L[0].name} | ${Math.floor(L[0].size / 1024)} KB . ${(/* @__PURE__ */ new Date()).toLocaleString(
|
|
25104
25106
|
"en-us",
|
|
25105
25107
|
{
|
|
25106
25108
|
day: "numeric",
|
|
@@ -25122,8 +25124,8 @@ class Zl {
|
|
|
25122
25124
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.7575 6.70896C15.833 5.65166 14.9215 4.80402 13.8855 4.92374C12.8255 5.04625 11.1897 5.2085 9.99944 5.2085C8.80915 5.2085 7.17339 5.04625 6.11336 4.92374C5.07742 4.80402 4.16587 5.65165 4.24139 6.70896L4.95534 16.7042C5.00946 17.4619 5.57382 18.1025 6.34831 18.219C7.17881 18.3438 8.70272 18.5433 10.0004 18.5418C11.2821 18.5403 12.8122 18.3417 13.6464 18.218C14.4222 18.1029 14.9894 17.4618 15.0437 16.7019L15.7575 6.70896ZM14.0769 6.57939C14.0797 6.57906 14.082 6.57925 14.082 6.57925L14.0842 6.57976C14.086 6.5804 14.0889 6.58192 14.0918 6.58464C14.0937 6.58644 14.0951 6.58864 14.0951 6.58864L14.095 6.59022L13.382 16.5723C12.5565 16.6943 11.1415 16.8738 9.99847 16.8752C8.84301 16.8765 7.43683 16.6967 6.61695 16.5739L5.90382 6.59022L5.90376 6.58864C5.90376 6.58864 5.90518 6.58644 5.90708 6.58464C5.90995 6.58192 5.91286 6.5804 5.91471 6.57976L5.91691 6.57925C5.91691 6.57925 5.91913 6.57906 5.92202 6.57939C6.98392 6.70211 8.70397 6.87516 9.99944 6.87516C11.2949 6.87516 13.0149 6.70211 14.0769 6.57939Z" fill="#98A2B3"/>
|
|
25123
25125
|
</svg>
|
|
25124
25126
|
`));
|
|
25125
|
-
}, 1e3), g && (D =
|
|
25126
|
-
|
|
25127
|
+
}, 1e3), g && (D = m.files) != null && D.length && g.addEventListener("click", () => {
|
|
25128
|
+
m.value = "", m.value || (b && (b.innerHTML = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none"
|
|
25127
25129
|
xmlns="http://www.w3.org/2000/svg">
|
|
25128
25130
|
<circle cx="16" cy="16" r="16" fill="#E6E6E7" />
|
|
25129
25131
|
<path
|
|
@@ -25132,7 +25134,7 @@ class Zl {
|
|
|
25132
25134
|
stroke-linejoin="round" />
|
|
25133
25135
|
</svg>`), g.innerHTML = `<span class="bg-primary text-white text-sm font-semibold py-2 px-3 rounded-md" id="upload-btn-text">
|
|
25134
25136
|
Upload
|
|
25135
|
-
</span>`,
|
|
25137
|
+
</span>`, p && (p.textContent = "Tap to Upload"), y && (y.textContent = "PDF, PNG, JPG | 10MB max."));
|
|
25136
25138
|
});
|
|
25137
25139
|
} else
|
|
25138
25140
|
return;
|
|
@@ -25173,7 +25175,7 @@ class Zl {
|
|
|
25173
25175
|
return zl;
|
|
25174
25176
|
}
|
|
25175
25177
|
}
|
|
25176
|
-
function
|
|
25178
|
+
function Be(n, e, t) {
|
|
25177
25179
|
const s = e.get("spf-redirect-url") || t;
|
|
25178
25180
|
s && setTimeout(() => {
|
|
25179
25181
|
const a = new URL(s);
|
|
@@ -25225,7 +25227,7 @@ class pt {
|
|
|
25225
25227
|
this.container.innerHTML = this.renderSuccessComponent();
|
|
25226
25228
|
const s = document.querySelector("#go-back-merchant");
|
|
25227
25229
|
s && s.addEventListener("click", () => {
|
|
25228
|
-
|
|
25230
|
+
Be(
|
|
25229
25231
|
this.paymentResponse,
|
|
25230
25232
|
this.paymentResponseHeaders,
|
|
25231
25233
|
this.callbackUrl
|
|
@@ -25235,7 +25237,7 @@ class pt {
|
|
|
25235
25237
|
this.container.innerHTML = this.renderErrorComponent();
|
|
25236
25238
|
const s = document.querySelector("#go-back-merchant");
|
|
25237
25239
|
s && s.addEventListener("click", () => {
|
|
25238
|
-
|
|
25240
|
+
Be(
|
|
25239
25241
|
this.paymentResponse,
|
|
25240
25242
|
this.paymentResponseHeaders,
|
|
25241
25243
|
this.callbackUrl
|
|
@@ -25465,20 +25467,20 @@ let nt, qs;
|
|
|
25465
25467
|
const oc = /url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm, rc = /^(?:[a-z+]+:)?\/\//i, lc = /^www\..*/i, cc = /^(data:)([^,]*),(.*)/i;
|
|
25466
25468
|
function bi(n, e) {
|
|
25467
25469
|
return (n || "").replace(oc, (t, i, s, a, o, c) => {
|
|
25468
|
-
const l = s || o || c,
|
|
25470
|
+
const l = s || o || c, m = i || a || "";
|
|
25469
25471
|
if (!l)
|
|
25470
25472
|
return t;
|
|
25471
25473
|
if (rc.test(l) || lc.test(l))
|
|
25472
|
-
return `url(${
|
|
25474
|
+
return `url(${m}${l}${m})`;
|
|
25473
25475
|
if (cc.test(l))
|
|
25474
|
-
return `url(${
|
|
25476
|
+
return `url(${m}${l}${m})`;
|
|
25475
25477
|
if (l[0] === "/")
|
|
25476
|
-
return `url(${
|
|
25477
|
-
const
|
|
25478
|
-
|
|
25478
|
+
return `url(${m}${ac(e) + l}${m})`;
|
|
25479
|
+
const p = e.split("/"), y = l.split("/");
|
|
25480
|
+
p.pop();
|
|
25479
25481
|
for (const b of y)
|
|
25480
|
-
b !== "." && (b === ".." ?
|
|
25481
|
-
return `url(${
|
|
25482
|
+
b !== "." && (b === ".." ? p.pop() : p.push(b));
|
|
25483
|
+
return `url(${m}${p.join("/")}${m})`;
|
|
25482
25484
|
});
|
|
25483
25485
|
}
|
|
25484
25486
|
const dc = /^[^ \t\n\r\u000c]+/, uc = /^[, \t\n\r\u000c]+/;
|
|
@@ -25630,7 +25632,7 @@ function bc(n, e, t) {
|
|
|
25630
25632
|
});
|
|
25631
25633
|
}
|
|
25632
25634
|
function fc(n, e) {
|
|
25633
|
-
const { doc: t, mirror: i, blockClass: s, blockSelector: a, needsMask: o, inlineStylesheet: c, maskInputOptions: l = {}, maskTextFn:
|
|
25635
|
+
const { doc: t, mirror: i, blockClass: s, blockSelector: a, needsMask: o, inlineStylesheet: c, maskInputOptions: l = {}, maskTextFn: m, maskInputFn: p, dataURLOptions: y = {}, inlineImages: b, recordCanvas: g, keepIframeSrcFn: w, newlyAddedElement: f = !1 } = e, S = gc(t, i);
|
|
25634
25636
|
switch (n.nodeType) {
|
|
25635
25637
|
case n.DOCUMENT_NODE:
|
|
25636
25638
|
return n.compatMode !== "CSS1Compat" ? {
|
|
@@ -25656,7 +25658,7 @@ function fc(n, e) {
|
|
|
25656
25658
|
blockSelector: a,
|
|
25657
25659
|
inlineStylesheet: c,
|
|
25658
25660
|
maskInputOptions: l,
|
|
25659
|
-
maskInputFn:
|
|
25661
|
+
maskInputFn: p,
|
|
25660
25662
|
dataURLOptions: y,
|
|
25661
25663
|
inlineImages: b,
|
|
25662
25664
|
recordCanvas: g,
|
|
@@ -25667,7 +25669,7 @@ function fc(n, e) {
|
|
|
25667
25669
|
case n.TEXT_NODE:
|
|
25668
25670
|
return yc(n, {
|
|
25669
25671
|
needsMask: o,
|
|
25670
|
-
maskTextFn:
|
|
25672
|
+
maskTextFn: m,
|
|
25671
25673
|
rootId: S
|
|
25672
25674
|
});
|
|
25673
25675
|
case n.CDATA_SECTION_NODE:
|
|
@@ -25696,16 +25698,16 @@ function yc(n, e) {
|
|
|
25696
25698
|
var t;
|
|
25697
25699
|
const { needsMask: i, maskTextFn: s, rootId: a } = e, o = n.parentNode && n.parentNode.tagName;
|
|
25698
25700
|
let c = n.textContent;
|
|
25699
|
-
const l = o === "STYLE" ? !0 : void 0,
|
|
25701
|
+
const l = o === "STYLE" ? !0 : void 0, m = o === "SCRIPT" ? !0 : void 0;
|
|
25700
25702
|
if (l && c) {
|
|
25701
25703
|
try {
|
|
25702
25704
|
n.nextSibling || n.previousSibling || !((t = n.parentNode.sheet) === null || t === void 0) && t.cssRules && (c = vi(n.parentNode.sheet));
|
|
25703
|
-
} catch (
|
|
25704
|
-
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${
|
|
25705
|
+
} catch (p) {
|
|
25706
|
+
console.warn(`Cannot get CSS styles from text's parentNode. Error: ${p}`, n);
|
|
25705
25707
|
}
|
|
25706
25708
|
c = bi(c, os());
|
|
25707
25709
|
}
|
|
25708
|
-
return
|
|
25710
|
+
return m && (c = "SCRIPT_PLACEHOLDER"), !l && !m && c && i && (c = s ? s(c, n.parentElement) : c.replace(/[\S]/g, "*")), {
|
|
25709
25711
|
type: we.Text,
|
|
25710
25712
|
textContent: c || "",
|
|
25711
25713
|
isStyle: l,
|
|
@@ -25713,7 +25715,7 @@ function yc(n, e) {
|
|
|
25713
25715
|
};
|
|
25714
25716
|
}
|
|
25715
25717
|
function Cc(n, e) {
|
|
25716
|
-
const { doc: t, blockClass: i, blockSelector: s, inlineStylesheet: a, maskInputOptions: o = {}, maskInputFn: c, dataURLOptions: l = {}, inlineImages:
|
|
25718
|
+
const { doc: t, blockClass: i, blockSelector: s, inlineStylesheet: a, maskInputOptions: o = {}, maskInputFn: c, dataURLOptions: l = {}, inlineImages: m, recordCanvas: p, keepIframeSrcFn: y, newlyAddedElement: b = !1, rootId: g } = e, w = pc(n, i, s), f = sc(n);
|
|
25717
25719
|
let S = {};
|
|
25718
25720
|
const A = n.attributes.length;
|
|
25719
25721
|
for (let L = 0; L < A; L++) {
|
|
@@ -25740,7 +25742,7 @@ function Cc(n, e) {
|
|
|
25740
25742
|
maskInputFn: c
|
|
25741
25743
|
}) : E && (S.checked = E);
|
|
25742
25744
|
}
|
|
25743
|
-
if (f === "option" && (n.selected && !o.select ? S.selected = !0 : delete S.selected), f === "canvas" &&
|
|
25745
|
+
if (f === "option" && (n.selected && !o.select ? S.selected = !0 : delete S.selected), f === "canvas" && p) {
|
|
25744
25746
|
if (n.__context === "2d")
|
|
25745
25747
|
nc(n) || (S.rr_dataURL = n.toDataURL(l.type, l.quality));
|
|
25746
25748
|
else if (!("__context" in n)) {
|
|
@@ -25750,7 +25752,7 @@ function Cc(n, e) {
|
|
|
25750
25752
|
L !== D && (S.rr_dataURL = L);
|
|
25751
25753
|
}
|
|
25752
25754
|
}
|
|
25753
|
-
if (f === "img" &&
|
|
25755
|
+
if (f === "img" && m) {
|
|
25754
25756
|
nt || (nt = t.createElement("canvas"), qs = nt.getContext("2d"));
|
|
25755
25757
|
const L = n, E = L.crossOrigin;
|
|
25756
25758
|
L.crossOrigin = "anonymous";
|
|
@@ -25823,8 +25825,8 @@ function wc(n, e) {
|
|
|
25823
25825
|
return !1;
|
|
25824
25826
|
}
|
|
25825
25827
|
function at(n, e) {
|
|
25826
|
-
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: c, skipChild: l = !1, inlineStylesheet:
|
|
25827
|
-
let { needsMask: G } = e, { preserveWhiteSpace:
|
|
25828
|
+
const { doc: t, mirror: i, blockClass: s, blockSelector: a, maskTextClass: o, maskTextSelector: c, skipChild: l = !1, inlineStylesheet: m = !0, maskInputOptions: p = {}, maskTextFn: y, maskInputFn: b, slimDOMOptions: g, dataURLOptions: w = {}, inlineImages: f = !1, recordCanvas: S = !1, onSerialize: A, onIframeLoad: M, iframeLoadTimeout: L = 5e3, onStylesheetLoad: E, stylesheetLoadTimeout: D = 5e3, keepIframeSrcFn: F = () => !1, newlyAddedElement: z = !1 } = e;
|
|
25829
|
+
let { needsMask: G } = e, { preserveWhiteSpace: Z = !0 } = e;
|
|
25828
25830
|
!G && n.childNodes && (G = Za(n, o, c, G === void 0));
|
|
25829
25831
|
const ce = fc(n, {
|
|
25830
25832
|
doc: t,
|
|
@@ -25832,32 +25834,32 @@ function at(n, e) {
|
|
|
25832
25834
|
blockClass: s,
|
|
25833
25835
|
blockSelector: a,
|
|
25834
25836
|
needsMask: G,
|
|
25835
|
-
inlineStylesheet:
|
|
25836
|
-
maskInputOptions:
|
|
25837
|
+
inlineStylesheet: m,
|
|
25838
|
+
maskInputOptions: p,
|
|
25837
25839
|
maskTextFn: y,
|
|
25838
25840
|
maskInputFn: b,
|
|
25839
25841
|
dataURLOptions: w,
|
|
25840
25842
|
inlineImages: f,
|
|
25841
25843
|
recordCanvas: S,
|
|
25842
25844
|
keepIframeSrcFn: F,
|
|
25843
|
-
newlyAddedElement:
|
|
25845
|
+
newlyAddedElement: z
|
|
25844
25846
|
});
|
|
25845
25847
|
if (!ce)
|
|
25846
25848
|
return console.warn(n, "not serialized"), null;
|
|
25847
25849
|
let xe;
|
|
25848
|
-
i.hasNode(n) ? xe = i.getId(n) : wc(ce, g) || !
|
|
25850
|
+
i.hasNode(n) ? xe = i.getId(n) : wc(ce, g) || !Z && ce.type === we.Text && !ce.isStyle && !ce.textContent.replace(/^\s+|\s+$/gm, "").length ? xe = Tt : xe = ja();
|
|
25849
25851
|
const j = Object.assign(ce, { id: xe });
|
|
25850
25852
|
if (i.add(n, j), xe === Tt)
|
|
25851
25853
|
return null;
|
|
25852
25854
|
A && A(n);
|
|
25853
|
-
let
|
|
25855
|
+
let He = !l;
|
|
25854
25856
|
if (j.type === we.Element) {
|
|
25855
|
-
|
|
25857
|
+
He = He && !j.needBlock, delete j.needBlock;
|
|
25856
25858
|
const ve = n.shadowRoot;
|
|
25857
25859
|
ve && At(ve) && (j.isShadowHost = !0);
|
|
25858
25860
|
}
|
|
25859
|
-
if ((j.type === we.Document || j.type === we.Element) &&
|
|
25860
|
-
g.headWhitespace && j.type === we.Element && j.tagName === "head" && (
|
|
25861
|
+
if ((j.type === we.Document || j.type === we.Element) && He) {
|
|
25862
|
+
g.headWhitespace && j.type === we.Element && j.tagName === "head" && (Z = !1);
|
|
25861
25863
|
const ve = {
|
|
25862
25864
|
doc: t,
|
|
25863
25865
|
mirror: i,
|
|
@@ -25867,15 +25869,15 @@ function at(n, e) {
|
|
|
25867
25869
|
maskTextClass: o,
|
|
25868
25870
|
maskTextSelector: c,
|
|
25869
25871
|
skipChild: l,
|
|
25870
|
-
inlineStylesheet:
|
|
25871
|
-
maskInputOptions:
|
|
25872
|
+
inlineStylesheet: m,
|
|
25873
|
+
maskInputOptions: p,
|
|
25872
25874
|
maskTextFn: y,
|
|
25873
25875
|
maskInputFn: b,
|
|
25874
25876
|
slimDOMOptions: g,
|
|
25875
25877
|
dataURLOptions: w,
|
|
25876
25878
|
inlineImages: f,
|
|
25877
25879
|
recordCanvas: S,
|
|
25878
|
-
preserveWhiteSpace:
|
|
25880
|
+
preserveWhiteSpace: Z,
|
|
25879
25881
|
onSerialize: A,
|
|
25880
25882
|
onIframeLoad: M,
|
|
25881
25883
|
iframeLoadTimeout: L,
|
|
@@ -25905,15 +25907,15 @@ function at(n, e) {
|
|
|
25905
25907
|
maskTextClass: o,
|
|
25906
25908
|
maskTextSelector: c,
|
|
25907
25909
|
skipChild: !1,
|
|
25908
|
-
inlineStylesheet:
|
|
25909
|
-
maskInputOptions:
|
|
25910
|
+
inlineStylesheet: m,
|
|
25911
|
+
maskInputOptions: p,
|
|
25910
25912
|
maskTextFn: y,
|
|
25911
25913
|
maskInputFn: b,
|
|
25912
25914
|
slimDOMOptions: g,
|
|
25913
25915
|
dataURLOptions: w,
|
|
25914
25916
|
inlineImages: f,
|
|
25915
25917
|
recordCanvas: S,
|
|
25916
|
-
preserveWhiteSpace:
|
|
25918
|
+
preserveWhiteSpace: Z,
|
|
25917
25919
|
onSerialize: A,
|
|
25918
25920
|
onIframeLoad: M,
|
|
25919
25921
|
iframeLoadTimeout: L,
|
|
@@ -25934,15 +25936,15 @@ function at(n, e) {
|
|
|
25934
25936
|
maskTextClass: o,
|
|
25935
25937
|
maskTextSelector: c,
|
|
25936
25938
|
skipChild: !1,
|
|
25937
|
-
inlineStylesheet:
|
|
25938
|
-
maskInputOptions:
|
|
25939
|
+
inlineStylesheet: m,
|
|
25940
|
+
maskInputOptions: p,
|
|
25939
25941
|
maskTextFn: y,
|
|
25940
25942
|
maskInputFn: b,
|
|
25941
25943
|
slimDOMOptions: g,
|
|
25942
25944
|
dataURLOptions: w,
|
|
25943
25945
|
inlineImages: f,
|
|
25944
25946
|
recordCanvas: S,
|
|
25945
|
-
preserveWhiteSpace:
|
|
25947
|
+
preserveWhiteSpace: Z,
|
|
25946
25948
|
onSerialize: A,
|
|
25947
25949
|
onIframeLoad: M,
|
|
25948
25950
|
iframeLoadTimeout: L,
|
|
@@ -25955,7 +25957,7 @@ function at(n, e) {
|
|
|
25955
25957
|
}, D), j;
|
|
25956
25958
|
}
|
|
25957
25959
|
function Sc(n, e) {
|
|
25958
|
-
const { mirror: t = new Ka(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: c = !0, inlineImages: l = !1, recordCanvas:
|
|
25960
|
+
const { mirror: t = new Ka(), blockClass: i = "rr-block", blockSelector: s = null, maskTextClass: a = "rr-mask", maskTextSelector: o = null, inlineStylesheet: c = !0, inlineImages: l = !1, recordCanvas: m = !1, maskAllInputs: p = !1, maskTextFn: y, maskInputFn: b, slimDOM: g = !1, dataURLOptions: w, preserveWhiteSpace: f, onSerialize: S, onIframeLoad: A, iframeLoadTimeout: M, onStylesheetLoad: L, stylesheetLoadTimeout: E, keepIframeSrcFn: D = () => !1 } = e || {};
|
|
25959
25961
|
return at(n, {
|
|
25960
25962
|
doc: n,
|
|
25961
25963
|
mirror: t,
|
|
@@ -25965,7 +25967,7 @@ function Sc(n, e) {
|
|
|
25965
25967
|
maskTextSelector: o,
|
|
25966
25968
|
skipChild: !1,
|
|
25967
25969
|
inlineStylesheet: c,
|
|
25968
|
-
maskInputOptions:
|
|
25970
|
+
maskInputOptions: p === !0 ? {
|
|
25969
25971
|
color: !0,
|
|
25970
25972
|
date: !0,
|
|
25971
25973
|
"datetime-local": !0,
|
|
@@ -25982,9 +25984,9 @@ function Sc(n, e) {
|
|
|
25982
25984
|
textarea: !0,
|
|
25983
25985
|
select: !0,
|
|
25984
25986
|
password: !0
|
|
25985
|
-
} :
|
|
25987
|
+
} : p === !1 ? {
|
|
25986
25988
|
password: !0
|
|
25987
|
-
} :
|
|
25989
|
+
} : p,
|
|
25988
25990
|
maskTextFn: y,
|
|
25989
25991
|
maskInputFn: b,
|
|
25990
25992
|
slimDOMOptions: g === !0 || g === "all" ? {
|
|
@@ -26001,7 +26003,7 @@ function Sc(n, e) {
|
|
|
26001
26003
|
} : g === !1 ? {} : g,
|
|
26002
26004
|
dataURLOptions: w,
|
|
26003
26005
|
inlineImages: l,
|
|
26004
|
-
recordCanvas:
|
|
26006
|
+
recordCanvas: m,
|
|
26005
26007
|
preserveWhiteSpace: f,
|
|
26006
26008
|
onSerialize: S,
|
|
26007
26009
|
onIframeLoad: A,
|
|
@@ -26012,7 +26014,7 @@ function Sc(n, e) {
|
|
|
26012
26014
|
newlyAddedElement: !1
|
|
26013
26015
|
});
|
|
26014
26016
|
}
|
|
26015
|
-
function
|
|
26017
|
+
function Re(n, e, t = document) {
|
|
26016
26018
|
const i = { capture: !0, passive: !0 };
|
|
26017
26019
|
return t.addEventListener(n, e, i), () => t.removeEventListener(n, e, i);
|
|
26018
26020
|
}
|
|
@@ -26101,7 +26103,7 @@ function Ja() {
|
|
|
26101
26103
|
function Ya(n) {
|
|
26102
26104
|
return n ? n.nodeType === n.ELEMENT_NODE ? n : n.parentElement : null;
|
|
26103
26105
|
}
|
|
26104
|
-
function
|
|
26106
|
+
function Ne(n, e, t, i) {
|
|
26105
26107
|
if (!n)
|
|
26106
26108
|
return !1;
|
|
26107
26109
|
const s = Ya(n);
|
|
@@ -26202,7 +26204,7 @@ function to(n) {
|
|
|
26202
26204
|
const e = n.ownerDocument;
|
|
26203
26205
|
return e ? e.contains(n) || xc(n) : !1;
|
|
26204
26206
|
}
|
|
26205
|
-
var X = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(X || {}), J = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(J || {}),
|
|
26207
|
+
var X = /* @__PURE__ */ ((n) => (n[n.DomContentLoaded = 0] = "DomContentLoaded", n[n.Load = 1] = "Load", n[n.FullSnapshot = 2] = "FullSnapshot", n[n.IncrementalSnapshot = 3] = "IncrementalSnapshot", n[n.Meta = 4] = "Meta", n[n.Custom = 5] = "Custom", n[n.Plugin = 6] = "Plugin", n))(X || {}), J = /* @__PURE__ */ ((n) => (n[n.Mutation = 0] = "Mutation", n[n.MouseMove = 1] = "MouseMove", n[n.MouseInteraction = 2] = "MouseInteraction", n[n.Scroll = 3] = "Scroll", n[n.ViewportResize = 4] = "ViewportResize", n[n.Input = 5] = "Input", n[n.TouchMove = 6] = "TouchMove", n[n.MediaInteraction = 7] = "MediaInteraction", n[n.StyleSheetRule = 8] = "StyleSheetRule", n[n.CanvasMutation = 9] = "CanvasMutation", n[n.Font = 10] = "Font", n[n.Log = 11] = "Log", n[n.Drag = 12] = "Drag", n[n.StyleDeclaration = 13] = "StyleDeclaration", n[n.Selection = 14] = "Selection", n[n.AdoptedStyleSheet = 15] = "AdoptedStyleSheet", n[n.CustomElement = 16] = "CustomElement", n))(J || {}), Ve = /* @__PURE__ */ ((n) => (n[n.MouseUp = 0] = "MouseUp", n[n.MouseDown = 1] = "MouseDown", n[n.Click = 2] = "Click", n[n.ContextMenu = 3] = "ContextMenu", n[n.DblClick = 4] = "DblClick", n[n.Focus = 5] = "Focus", n[n.Blur = 6] = "Blur", n[n.TouchStart = 7] = "TouchStart", n[n.TouchMove_Departed = 8] = "TouchMove_Departed", n[n.TouchEnd = 9] = "TouchEnd", n[n.TouchCancel = 10] = "TouchCancel", n))(Ve || {}), gn = /* @__PURE__ */ ((n) => (n[n.Mouse = 0] = "Mouse", n[n.Pen = 1] = "Pen", n[n.Touch = 2] = "Touch", n))(gn || {}), dt = /* @__PURE__ */ ((n) => (n[n["2D"] = 0] = "2D", n[n.WebGL = 1] = "WebGL", n[n.WebGL2 = 2] = "WebGL2", n))(dt || {});
|
|
26206
26208
|
function Zs(n) {
|
|
26207
26209
|
return "__ln" in n;
|
|
26208
26210
|
}
|
|
@@ -26248,15 +26250,15 @@ class _c {
|
|
|
26248
26250
|
if (this.frozen || this.locked)
|
|
26249
26251
|
return;
|
|
26250
26252
|
const e = [], t = /* @__PURE__ */ new Set(), i = new Tc(), s = (l) => {
|
|
26251
|
-
let
|
|
26252
|
-
for (;
|
|
26253
|
-
|
|
26254
|
-
return
|
|
26253
|
+
let m = l, p = Tt;
|
|
26254
|
+
for (; p === Tt; )
|
|
26255
|
+
m = m && m.nextSibling, p = m && this.mirror.getId(m);
|
|
26256
|
+
return p;
|
|
26255
26257
|
}, a = (l) => {
|
|
26256
26258
|
if (!l.parentNode || !to(l) || l.parentNode.tagName === "TEXTAREA")
|
|
26257
26259
|
return;
|
|
26258
|
-
const
|
|
26259
|
-
if (
|
|
26260
|
+
const m = kt(l.parentNode) ? this.mirror.getId(no(l)) : this.mirror.getId(l.parentNode), p = s(l);
|
|
26261
|
+
if (m === -1 || p === -1)
|
|
26260
26262
|
return i.addNode(l);
|
|
26261
26263
|
const y = at(l, {
|
|
26262
26264
|
doc: this.doc,
|
|
@@ -26286,8 +26288,8 @@ class _c {
|
|
|
26286
26288
|
}
|
|
26287
26289
|
});
|
|
26288
26290
|
y && (e.push({
|
|
26289
|
-
parentId:
|
|
26290
|
-
nextId:
|
|
26291
|
+
parentId: m,
|
|
26292
|
+
nextId: p,
|
|
26291
26293
|
node: y
|
|
26292
26294
|
}), t.add(y.id));
|
|
26293
26295
|
};
|
|
@@ -26301,26 +26303,26 @@ class _c {
|
|
|
26301
26303
|
for (; i.length; ) {
|
|
26302
26304
|
let l = null;
|
|
26303
26305
|
if (o) {
|
|
26304
|
-
const
|
|
26305
|
-
|
|
26306
|
+
const m = this.mirror.getId(o.value.parentNode), p = s(o.value);
|
|
26307
|
+
m !== -1 && p !== -1 && (l = o);
|
|
26306
26308
|
}
|
|
26307
26309
|
if (!l) {
|
|
26308
|
-
let
|
|
26309
|
-
for (;
|
|
26310
|
-
const
|
|
26311
|
-
if (
|
|
26312
|
-
const y = this.mirror.getId(
|
|
26313
|
-
if (s(
|
|
26310
|
+
let m = i.tail;
|
|
26311
|
+
for (; m; ) {
|
|
26312
|
+
const p = m;
|
|
26313
|
+
if (m = m.previous, p) {
|
|
26314
|
+
const y = this.mirror.getId(p.value.parentNode);
|
|
26315
|
+
if (s(p.value) === -1)
|
|
26314
26316
|
continue;
|
|
26315
26317
|
if (y !== -1) {
|
|
26316
|
-
l =
|
|
26318
|
+
l = p;
|
|
26317
26319
|
break;
|
|
26318
26320
|
} else {
|
|
26319
|
-
const g =
|
|
26321
|
+
const g = p.value;
|
|
26320
26322
|
if (g.parentNode && g.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
26321
26323
|
const w = g.parentNode.host;
|
|
26322
26324
|
if (this.mirror.getId(w) !== -1) {
|
|
26323
|
-
l =
|
|
26325
|
+
l = p;
|
|
26324
26326
|
break;
|
|
26325
26327
|
}
|
|
26326
26328
|
}
|
|
@@ -26337,21 +26339,21 @@ class _c {
|
|
|
26337
26339
|
}
|
|
26338
26340
|
const c = {
|
|
26339
26341
|
texts: this.texts.map((l) => {
|
|
26340
|
-
const
|
|
26341
|
-
return
|
|
26342
|
-
id: this.mirror.getId(
|
|
26342
|
+
const m = l.node;
|
|
26343
|
+
return m.parentNode && m.parentNode.tagName === "TEXTAREA" && this.genTextAreaValueMutation(m.parentNode), {
|
|
26344
|
+
id: this.mirror.getId(m),
|
|
26343
26345
|
value: l.value
|
|
26344
26346
|
};
|
|
26345
26347
|
}).filter((l) => !t.has(l.id)).filter((l) => this.mirror.has(l.id)),
|
|
26346
26348
|
attributes: this.attributes.map((l) => {
|
|
26347
|
-
const { attributes:
|
|
26348
|
-
if (typeof
|
|
26349
|
-
const
|
|
26350
|
-
|
|
26349
|
+
const { attributes: m } = l;
|
|
26350
|
+
if (typeof m.style == "string") {
|
|
26351
|
+
const p = JSON.stringify(l.styleDiff), y = JSON.stringify(l._unchangedStyles);
|
|
26352
|
+
p.length < m.style.length && (p + y).split("var(").length === m.style.split("var(").length && (m.style = l.styleDiff);
|
|
26351
26353
|
}
|
|
26352
26354
|
return {
|
|
26353
26355
|
id: this.mirror.getId(l.node),
|
|
26354
|
-
attributes:
|
|
26356
|
+
attributes: m
|
|
26355
26357
|
};
|
|
26356
26358
|
}).filter((l) => !t.has(l.id)).filter((l) => this.mirror.has(l.id)),
|
|
26357
26359
|
removes: this.removes,
|
|
@@ -26371,7 +26373,7 @@ class _c {
|
|
|
26371
26373
|
switch (e.type) {
|
|
26372
26374
|
case "characterData": {
|
|
26373
26375
|
const t = e.target.textContent;
|
|
26374
|
-
!
|
|
26376
|
+
!Ne(e.target, this.blockClass, this.blockSelector, !1) && t !== e.oldValue && this.texts.push({
|
|
26375
26377
|
value: Za(e.target, this.maskTextClass, this.maskTextSelector, !0) && t ? this.maskTextFn ? this.maskTextFn(t, Ya(e.target)) : t.replace(/[\S]/g, "*") : t,
|
|
26376
26378
|
node: e.target
|
|
26377
26379
|
});
|
|
@@ -26391,7 +26393,7 @@ class _c {
|
|
|
26391
26393
|
maskInputFn: this.maskInputFn
|
|
26392
26394
|
});
|
|
26393
26395
|
}
|
|
26394
|
-
if (
|
|
26396
|
+
if (Ne(e.target, this.blockClass, this.blockSelector, !1) || s === e.oldValue)
|
|
26395
26397
|
return;
|
|
26396
26398
|
let a = this.attributeMap.get(e.target);
|
|
26397
26399
|
if (t.tagName === "IFRAME" && i === "src" && !this.keepIframeSrcFn(s))
|
|
@@ -26414,8 +26416,8 @@ class _c {
|
|
|
26414
26416
|
const o = this.unattachedDoc.createElement("span");
|
|
26415
26417
|
e.oldValue && o.setAttribute("style", e.oldValue);
|
|
26416
26418
|
for (const c of Array.from(t.style)) {
|
|
26417
|
-
const l = t.style.getPropertyValue(c),
|
|
26418
|
-
l !== o.style.getPropertyValue(c) ||
|
|
26419
|
+
const l = t.style.getPropertyValue(c), m = t.style.getPropertyPriority(c);
|
|
26420
|
+
l !== o.style.getPropertyValue(c) || m !== o.style.getPropertyPriority(c) ? m === "" ? a.styleDiff[c] = l : a.styleDiff[c] = [l, m] : a._unchangedStyles[c] = [l, m];
|
|
26419
26421
|
}
|
|
26420
26422
|
for (const c of Array.from(o.style))
|
|
26421
26423
|
t.style.getPropertyValue(c) === "" && (a.styleDiff[c] = !1);
|
|
@@ -26423,7 +26425,7 @@ class _c {
|
|
|
26423
26425
|
break;
|
|
26424
26426
|
}
|
|
26425
26427
|
case "childList": {
|
|
26426
|
-
if (
|
|
26428
|
+
if (Ne(e.target, this.blockClass, this.blockSelector, !0))
|
|
26427
26429
|
return;
|
|
26428
26430
|
if (e.target.tagName === "TEXTAREA") {
|
|
26429
26431
|
this.genTextAreaValueMutation(e.target);
|
|
@@ -26431,7 +26433,7 @@ class _c {
|
|
|
26431
26433
|
}
|
|
26432
26434
|
e.addedNodes.forEach((t) => this.genAdds(t, e.target)), e.removedNodes.forEach((t) => {
|
|
26433
26435
|
const i = this.mirror.getId(t), s = kt(e.target) ? this.mirror.getId(e.target.host) : this.mirror.getId(e.target);
|
|
26434
|
-
|
|
26436
|
+
Ne(e.target, this.blockClass, this.blockSelector, !1) || Gi(t, this.mirror) || !kc(t, this.mirror) || (this.addedSet.has(t) ? (Xi(this.addedSet, t), this.droppedSet.add(t)) : this.addedSet.has(e.target) && i === -1 || Xa(e.target, this.mirror) || (this.movedSet.has(t) && this.movedMap[Ws(i, s)] ? Xi(this.movedSet, t) : this.removes.push({
|
|
26435
26437
|
parentId: s,
|
|
26436
26438
|
id: i,
|
|
26437
26439
|
isShadow: kt(e.target) && At(e.target) ? !0 : void 0
|
|
@@ -26450,7 +26452,7 @@ class _c {
|
|
|
26450
26452
|
t && this.mirror.hasNode(t) && (i = this.mirror.getId(t)), i && i !== -1 && (this.movedMap[Ws(this.mirror.getId(e), i)] = !0);
|
|
26451
26453
|
} else
|
|
26452
26454
|
this.addedSet.add(e), this.droppedSet.delete(e);
|
|
26453
|
-
|
|
26455
|
+
Ne(e, this.blockClass, this.blockSelector, !1) || (e.childNodes.forEach((i) => this.genAdds(i)), Yi(e) && e.shadowRoot.childNodes.forEach((i) => {
|
|
26454
26456
|
this.processedNodeManager.add(i, this), this.genAdds(i, e);
|
|
26455
26457
|
}));
|
|
26456
26458
|
}
|
|
@@ -26576,7 +26578,7 @@ function Ic({ mousemoveCb: n, sampling: e, doc: t, mirror: i }) {
|
|
|
26576
26578
|
const l = _t(Y((y) => {
|
|
26577
26579
|
const b = Date.now() - c;
|
|
26578
26580
|
n(o.map((g) => (g.timeOffset -= b, g)), y), o = [], c = null;
|
|
26579
|
-
}), a),
|
|
26581
|
+
}), a), m = Y(_t(Y((y) => {
|
|
26580
26582
|
const b = It(y), { clientX: g, clientY: w } = Ji(y) ? y.changedTouches[0] : y;
|
|
26581
26583
|
c || (c = gi()), o.push({
|
|
26582
26584
|
x: g,
|
|
@@ -26586,13 +26588,13 @@ function Ic({ mousemoveCb: n, sampling: e, doc: t, mirror: i }) {
|
|
|
26586
26588
|
}), l(typeof DragEvent < "u" && y instanceof DragEvent ? J.Drag : y instanceof MouseEvent ? J.MouseMove : J.TouchMove);
|
|
26587
26589
|
}), s, {
|
|
26588
26590
|
trailing: !1
|
|
26589
|
-
})),
|
|
26590
|
-
|
|
26591
|
-
|
|
26592
|
-
|
|
26591
|
+
})), p = [
|
|
26592
|
+
Re("mousemove", m, t),
|
|
26593
|
+
Re("touchmove", m, t),
|
|
26594
|
+
Re("drag", m, t)
|
|
26593
26595
|
];
|
|
26594
26596
|
return Y(() => {
|
|
26595
|
-
|
|
26597
|
+
p.forEach((y) => y());
|
|
26596
26598
|
});
|
|
26597
26599
|
}
|
|
26598
26600
|
function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, sampling: a }) {
|
|
@@ -26601,11 +26603,11 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26601
26603
|
};
|
|
26602
26604
|
const o = a.mouseInteraction === !0 || a.mouseInteraction === void 0 ? {} : a.mouseInteraction, c = [];
|
|
26603
26605
|
let l = null;
|
|
26604
|
-
const
|
|
26606
|
+
const m = (p) => (y) => {
|
|
26605
26607
|
const b = It(y);
|
|
26606
|
-
if (
|
|
26608
|
+
if (Ne(b, i, s, !0))
|
|
26607
26609
|
return;
|
|
26608
|
-
let g = null, w =
|
|
26610
|
+
let g = null, w = p;
|
|
26609
26611
|
if ("pointerType" in y) {
|
|
26610
26612
|
switch (y.pointerType) {
|
|
26611
26613
|
case "mouse":
|
|
@@ -26618,54 +26620,54 @@ function Dc({ mouseInteractionCb: n, doc: e, mirror: t, blockClass: i, blockSele
|
|
|
26618
26620
|
g = gn.Pen;
|
|
26619
26621
|
break;
|
|
26620
26622
|
}
|
|
26621
|
-
g === gn.Touch ?
|
|
26623
|
+
g === gn.Touch ? Ve[p] === Ve.MouseDown ? w = "TouchStart" : Ve[p] === Ve.MouseUp && (w = "TouchEnd") : gn.Pen;
|
|
26622
26624
|
} else Ji(y) && (g = gn.Touch);
|
|
26623
|
-
g !== null ? (l = g, (w.startsWith("Touch") && g === gn.Touch || w.startsWith("Mouse") && g === gn.Mouse) && (g = null)) :
|
|
26625
|
+
g !== null ? (l = g, (w.startsWith("Touch") && g === gn.Touch || w.startsWith("Mouse") && g === gn.Mouse) && (g = null)) : Ve[p] === Ve.Click && (g = l, l = null);
|
|
26624
26626
|
const f = Ji(y) ? y.changedTouches[0] : y;
|
|
26625
26627
|
if (!f)
|
|
26626
26628
|
return;
|
|
26627
26629
|
const S = t.getId(b), { clientX: A, clientY: M } = f;
|
|
26628
|
-
Y(n)(Object.assign({ type:
|
|
26630
|
+
Y(n)(Object.assign({ type: Ve[w], id: S, x: A, y: M }, g !== null && { pointerType: g }));
|
|
26629
26631
|
};
|
|
26630
|
-
return Object.keys(
|
|
26631
|
-
let y = Zn(
|
|
26632
|
-
const b = p
|
|
26632
|
+
return Object.keys(Ve).filter((p) => Number.isNaN(Number(p)) && !p.endsWith("_Departed") && o[p] !== !1).forEach((p) => {
|
|
26633
|
+
let y = Zn(p);
|
|
26634
|
+
const b = m(p);
|
|
26633
26635
|
if (window.PointerEvent)
|
|
26634
|
-
switch (
|
|
26635
|
-
case
|
|
26636
|
-
case
|
|
26636
|
+
switch (Ve[p]) {
|
|
26637
|
+
case Ve.MouseDown:
|
|
26638
|
+
case Ve.MouseUp:
|
|
26637
26639
|
y = y.replace("mouse", "pointer");
|
|
26638
26640
|
break;
|
|
26639
|
-
case
|
|
26640
|
-
case
|
|
26641
|
+
case Ve.TouchStart:
|
|
26642
|
+
case Ve.TouchEnd:
|
|
26641
26643
|
return;
|
|
26642
26644
|
}
|
|
26643
|
-
c.push(
|
|
26645
|
+
c.push(Re(y, b, e));
|
|
26644
26646
|
}), Y(() => {
|
|
26645
|
-
c.forEach((
|
|
26647
|
+
c.forEach((p) => p());
|
|
26646
26648
|
});
|
|
26647
26649
|
}
|
|
26648
26650
|
function oo({ scrollCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, sampling: a }) {
|
|
26649
26651
|
const o = Y(_t(Y((c) => {
|
|
26650
26652
|
const l = It(c);
|
|
26651
|
-
if (!l ||
|
|
26653
|
+
if (!l || Ne(l, i, s, !0))
|
|
26652
26654
|
return;
|
|
26653
|
-
const
|
|
26655
|
+
const m = t.getId(l);
|
|
26654
26656
|
if (l === e && e.defaultView) {
|
|
26655
|
-
const
|
|
26657
|
+
const p = Wa(e.defaultView);
|
|
26656
26658
|
n({
|
|
26657
|
-
id:
|
|
26658
|
-
x:
|
|
26659
|
-
y:
|
|
26659
|
+
id: m,
|
|
26660
|
+
x: p.left,
|
|
26661
|
+
y: p.top
|
|
26660
26662
|
});
|
|
26661
26663
|
} else
|
|
26662
26664
|
n({
|
|
26663
|
-
id:
|
|
26665
|
+
id: m,
|
|
26664
26666
|
x: l.scrollLeft,
|
|
26665
26667
|
y: l.scrollTop
|
|
26666
26668
|
});
|
|
26667
26669
|
}), a.scroll || 100));
|
|
26668
|
-
return
|
|
26670
|
+
return Re("scroll", o, e);
|
|
26669
26671
|
}
|
|
26670
26672
|
function Bc({ viewportResizeCb: n }, { win: e }) {
|
|
26671
26673
|
let t = -1, i = -1;
|
|
@@ -26676,30 +26678,30 @@ function Bc({ viewportResizeCb: n }, { win: e }) {
|
|
|
26676
26678
|
height: Number(a)
|
|
26677
26679
|
}), t = a, i = o);
|
|
26678
26680
|
}), 200));
|
|
26679
|
-
return
|
|
26681
|
+
return Re("resize", s, e);
|
|
26680
26682
|
}
|
|
26681
26683
|
const Hc = ["INPUT", "TEXTAREA", "SELECT"], Ys = /* @__PURE__ */ new WeakMap();
|
|
26682
|
-
function Rc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ignoreClass: a, ignoreSelector: o, maskInputOptions: c, maskInputFn: l, sampling:
|
|
26684
|
+
function Rc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ignoreClass: a, ignoreSelector: o, maskInputOptions: c, maskInputFn: l, sampling: m, userTriggeredOnInput: p }) {
|
|
26683
26685
|
function y(M) {
|
|
26684
26686
|
let L = It(M);
|
|
26685
26687
|
const E = M.isTrusted, D = L && L.tagName;
|
|
26686
|
-
if (L && D === "OPTION" && (L = L.parentElement), !L || !D || Hc.indexOf(D) < 0 ||
|
|
26688
|
+
if (L && D === "OPTION" && (L = L.parentElement), !L || !D || Hc.indexOf(D) < 0 || Ne(L, i, s, !0) || L.classList.contains(a) || o && L.matches(o))
|
|
26687
26689
|
return;
|
|
26688
|
-
let F = L.value,
|
|
26690
|
+
let F = L.value, z = !1;
|
|
26689
26691
|
const G = as(L) || "";
|
|
26690
|
-
G === "radio" || G === "checkbox" ?
|
|
26692
|
+
G === "radio" || G === "checkbox" ? z = L.checked : (c[D.toLowerCase()] || c[G]) && (F = ss({
|
|
26691
26693
|
element: L,
|
|
26692
26694
|
maskInputOptions: c,
|
|
26693
26695
|
tagName: D,
|
|
26694
26696
|
type: G,
|
|
26695
26697
|
value: F,
|
|
26696
26698
|
maskInputFn: l
|
|
26697
|
-
})), b(L,
|
|
26698
|
-
const
|
|
26699
|
-
G === "radio" &&
|
|
26699
|
+
})), b(L, p ? { text: F, isChecked: z, userTriggered: E } : { text: F, isChecked: z });
|
|
26700
|
+
const Z = L.name;
|
|
26701
|
+
G === "radio" && Z && z && e.querySelectorAll(`input[type="radio"][name="${Z}"]`).forEach((ce) => {
|
|
26700
26702
|
if (ce !== L) {
|
|
26701
26703
|
const xe = ce.value;
|
|
26702
|
-
b(ce,
|
|
26704
|
+
b(ce, p ? { text: xe, isChecked: !z, userTriggered: !1 } : { text: xe, isChecked: !z });
|
|
26703
26705
|
}
|
|
26704
26706
|
});
|
|
26705
26707
|
}
|
|
@@ -26711,7 +26713,7 @@ function Rc({ inputCb: n, doc: e, mirror: t, blockClass: i, blockSelector: s, ig
|
|
|
26711
26713
|
Y(n)(Object.assign(Object.assign({}, L), { id: D }));
|
|
26712
26714
|
}
|
|
26713
26715
|
}
|
|
26714
|
-
const w = (
|
|
26716
|
+
const w = (m.input === "last" ? ["change"] : ["input", "change"]).map((M) => Re(M, Y(y), e)), f = e.defaultView;
|
|
26715
26717
|
if (!f)
|
|
26716
26718
|
return () => {
|
|
26717
26719
|
w.forEach((M) => M());
|
|
@@ -26762,56 +26764,56 @@ function Nc({ styleSheetRuleCb: n, mirror: e, stylesheetManager: t }, { win: i }
|
|
|
26762
26764
|
};
|
|
26763
26765
|
const s = i.CSSStyleSheet.prototype.insertRule;
|
|
26764
26766
|
i.CSSStyleSheet.prototype.insertRule = new Proxy(s, {
|
|
26765
|
-
apply: Y((
|
|
26767
|
+
apply: Y((p, y, b) => {
|
|
26766
26768
|
const [g, w] = b, { id: f, styleId: S } = xn(y, e, t.styleMirror);
|
|
26767
26769
|
return (f && f !== -1 || S && S !== -1) && n({
|
|
26768
26770
|
id: f,
|
|
26769
26771
|
styleId: S,
|
|
26770
26772
|
adds: [{ rule: g, index: w }]
|
|
26771
|
-
}),
|
|
26773
|
+
}), p.apply(y, b);
|
|
26772
26774
|
})
|
|
26773
26775
|
});
|
|
26774
26776
|
const a = i.CSSStyleSheet.prototype.deleteRule;
|
|
26775
26777
|
i.CSSStyleSheet.prototype.deleteRule = new Proxy(a, {
|
|
26776
|
-
apply: Y((
|
|
26778
|
+
apply: Y((p, y, b) => {
|
|
26777
26779
|
const [g] = b, { id: w, styleId: f } = xn(y, e, t.styleMirror);
|
|
26778
26780
|
return (w && w !== -1 || f && f !== -1) && n({
|
|
26779
26781
|
id: w,
|
|
26780
26782
|
styleId: f,
|
|
26781
26783
|
removes: [{ index: g }]
|
|
26782
|
-
}),
|
|
26784
|
+
}), p.apply(y, b);
|
|
26783
26785
|
})
|
|
26784
26786
|
});
|
|
26785
26787
|
let o;
|
|
26786
26788
|
i.CSSStyleSheet.prototype.replace && (o = i.CSSStyleSheet.prototype.replace, i.CSSStyleSheet.prototype.replace = new Proxy(o, {
|
|
26787
|
-
apply: Y((
|
|
26789
|
+
apply: Y((p, y, b) => {
|
|
26788
26790
|
const [g] = b, { id: w, styleId: f } = xn(y, e, t.styleMirror);
|
|
26789
26791
|
return (w && w !== -1 || f && f !== -1) && n({
|
|
26790
26792
|
id: w,
|
|
26791
26793
|
styleId: f,
|
|
26792
26794
|
replace: g
|
|
26793
|
-
}),
|
|
26795
|
+
}), p.apply(y, b);
|
|
26794
26796
|
})
|
|
26795
26797
|
}));
|
|
26796
26798
|
let c;
|
|
26797
26799
|
i.CSSStyleSheet.prototype.replaceSync && (c = i.CSSStyleSheet.prototype.replaceSync, i.CSSStyleSheet.prototype.replaceSync = new Proxy(c, {
|
|
26798
|
-
apply: Y((
|
|
26800
|
+
apply: Y((p, y, b) => {
|
|
26799
26801
|
const [g] = b, { id: w, styleId: f } = xn(y, e, t.styleMirror);
|
|
26800
26802
|
return (w && w !== -1 || f && f !== -1) && n({
|
|
26801
26803
|
id: w,
|
|
26802
26804
|
styleId: f,
|
|
26803
26805
|
replaceSync: g
|
|
26804
|
-
}),
|
|
26806
|
+
}), p.apply(y, b);
|
|
26805
26807
|
})
|
|
26806
26808
|
}));
|
|
26807
26809
|
const l = {};
|
|
26808
26810
|
ai("CSSGroupingRule") ? l.CSSGroupingRule = i.CSSGroupingRule : (ai("CSSMediaRule") && (l.CSSMediaRule = i.CSSMediaRule), ai("CSSConditionRule") && (l.CSSConditionRule = i.CSSConditionRule), ai("CSSSupportsRule") && (l.CSSSupportsRule = i.CSSSupportsRule));
|
|
26809
|
-
const
|
|
26810
|
-
return Object.entries(l).forEach(([
|
|
26811
|
-
p
|
|
26811
|
+
const m = {};
|
|
26812
|
+
return Object.entries(l).forEach(([p, y]) => {
|
|
26813
|
+
m[p] = {
|
|
26812
26814
|
insertRule: y.prototype.insertRule,
|
|
26813
26815
|
deleteRule: y.prototype.deleteRule
|
|
26814
|
-
}, y.prototype.insertRule = new Proxy(p
|
|
26816
|
+
}, y.prototype.insertRule = new Proxy(m[p].insertRule, {
|
|
26815
26817
|
apply: Y((b, g, w) => {
|
|
26816
26818
|
const [f, S] = w, { id: A, styleId: M } = xn(g.parentStyleSheet, e, t.styleMirror);
|
|
26817
26819
|
return (A && A !== -1 || M && M !== -1) && n({
|
|
@@ -26828,7 +26830,7 @@ function Nc({ styleSheetRuleCb: n, mirror: e, stylesheetManager: t }, { win: i }
|
|
|
26828
26830
|
]
|
|
26829
26831
|
}), b.apply(g, w);
|
|
26830
26832
|
})
|
|
26831
|
-
}), y.prototype.deleteRule = new Proxy(p
|
|
26833
|
+
}), y.prototype.deleteRule = new Proxy(m[p].deleteRule, {
|
|
26832
26834
|
apply: Y((b, g, w) => {
|
|
26833
26835
|
const [f] = w, { id: S, styleId: A } = xn(g.parentStyleSheet, e, t.styleMirror);
|
|
26834
26836
|
return (S && S !== -1 || A && A !== -1) && n({
|
|
@@ -26841,8 +26843,8 @@ function Nc({ styleSheetRuleCb: n, mirror: e, stylesheetManager: t }, { win: i }
|
|
|
26841
26843
|
})
|
|
26842
26844
|
});
|
|
26843
26845
|
}), Y(() => {
|
|
26844
|
-
i.CSSStyleSheet.prototype.insertRule = s, i.CSSStyleSheet.prototype.deleteRule = a, o && (i.CSSStyleSheet.prototype.replace = o), c && (i.CSSStyleSheet.prototype.replaceSync = c), Object.entries(l).forEach(([
|
|
26845
|
-
y.prototype.insertRule = p
|
|
26846
|
+
i.CSSStyleSheet.prototype.insertRule = s, i.CSSStyleSheet.prototype.deleteRule = a, o && (i.CSSStyleSheet.prototype.replace = o), c && (i.CSSStyleSheet.prototype.replaceSync = c), Object.entries(l).forEach(([p, y]) => {
|
|
26847
|
+
y.prototype.insertRule = m[p].insertRule, y.prototype.deleteRule = m[p].deleteRule;
|
|
26846
26848
|
});
|
|
26847
26849
|
});
|
|
26848
26850
|
}
|
|
@@ -26856,15 +26858,15 @@ function ro({ mirror: n, stylesheetManager: e }, t) {
|
|
|
26856
26858
|
configurable: l.configurable,
|
|
26857
26859
|
enumerable: l.enumerable,
|
|
26858
26860
|
get() {
|
|
26859
|
-
var p;
|
|
26860
|
-
return (p = l.get) === null || p === void 0 ? void 0 : p.call(this);
|
|
26861
|
-
},
|
|
26862
|
-
set(p) {
|
|
26863
26861
|
var m;
|
|
26864
|
-
|
|
26862
|
+
return (m = l.get) === null || m === void 0 ? void 0 : m.call(this);
|
|
26863
|
+
},
|
|
26864
|
+
set(m) {
|
|
26865
|
+
var p;
|
|
26866
|
+
const y = (p = l.set) === null || p === void 0 ? void 0 : p.call(this, m);
|
|
26865
26867
|
if (o !== null && o !== -1)
|
|
26866
26868
|
try {
|
|
26867
|
-
e.adoptStyleSheets(
|
|
26869
|
+
e.adoptStyleSheets(m, o);
|
|
26868
26870
|
} catch {
|
|
26869
26871
|
}
|
|
26870
26872
|
return y;
|
|
@@ -26881,12 +26883,12 @@ function ro({ mirror: n, stylesheetManager: e }, t) {
|
|
|
26881
26883
|
function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, stylesheetManager: i }, { win: s }) {
|
|
26882
26884
|
const a = s.CSSStyleDeclaration.prototype.setProperty;
|
|
26883
26885
|
s.CSSStyleDeclaration.prototype.setProperty = new Proxy(a, {
|
|
26884
|
-
apply: Y((c, l,
|
|
26885
|
-
var
|
|
26886
|
-
const [y, b, g] =
|
|
26886
|
+
apply: Y((c, l, m) => {
|
|
26887
|
+
var p;
|
|
26888
|
+
const [y, b, g] = m;
|
|
26887
26889
|
if (t.has(y))
|
|
26888
26890
|
return a.apply(l, [y, b, g]);
|
|
26889
|
-
const { id: w, styleId: f } = xn((
|
|
26891
|
+
const { id: w, styleId: f } = xn((p = l.parentRule) === null || p === void 0 ? void 0 : p.parentStyleSheet, e, i.styleMirror);
|
|
26890
26892
|
return (w && w !== -1 || f && f !== -1) && n({
|
|
26891
26893
|
id: w,
|
|
26892
26894
|
styleId: f,
|
|
@@ -26896,17 +26898,17 @@ function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
26896
26898
|
priority: g
|
|
26897
26899
|
},
|
|
26898
26900
|
index: yi(l.parentRule)
|
|
26899
|
-
}), c.apply(l,
|
|
26901
|
+
}), c.apply(l, m);
|
|
26900
26902
|
})
|
|
26901
26903
|
});
|
|
26902
26904
|
const o = s.CSSStyleDeclaration.prototype.removeProperty;
|
|
26903
26905
|
return s.CSSStyleDeclaration.prototype.removeProperty = new Proxy(o, {
|
|
26904
|
-
apply: Y((c, l,
|
|
26905
|
-
var
|
|
26906
|
-
const [y] =
|
|
26906
|
+
apply: Y((c, l, m) => {
|
|
26907
|
+
var p;
|
|
26908
|
+
const [y] = m;
|
|
26907
26909
|
if (t.has(y))
|
|
26908
26910
|
return o.apply(l, [y]);
|
|
26909
|
-
const { id: b, styleId: g } = xn((
|
|
26911
|
+
const { id: b, styleId: g } = xn((p = l.parentRule) === null || p === void 0 ? void 0 : p.parentStyleSheet, e, i.styleMirror);
|
|
26910
26912
|
return (b && b !== -1 || g && g !== -1) && n({
|
|
26911
26913
|
id: b,
|
|
26912
26914
|
styleId: g,
|
|
@@ -26914,21 +26916,21 @@ function Oc({ styleDeclarationCb: n, mirror: e, ignoreCSSAttributes: t, styleshe
|
|
|
26914
26916
|
property: y
|
|
26915
26917
|
},
|
|
26916
26918
|
index: yi(l.parentRule)
|
|
26917
|
-
}), c.apply(l,
|
|
26919
|
+
}), c.apply(l, m);
|
|
26918
26920
|
})
|
|
26919
26921
|
}), Y(() => {
|
|
26920
26922
|
s.CSSStyleDeclaration.prototype.setProperty = a, s.CSSStyleDeclaration.prototype.removeProperty = o;
|
|
26921
26923
|
});
|
|
26922
26924
|
}
|
|
26923
26925
|
function Uc({ mediaInteractionCb: n, blockClass: e, blockSelector: t, mirror: i, sampling: s, doc: a }) {
|
|
26924
|
-
const o = Y((l) => _t(Y((
|
|
26925
|
-
const
|
|
26926
|
-
if (!
|
|
26926
|
+
const o = Y((l) => _t(Y((m) => {
|
|
26927
|
+
const p = It(m);
|
|
26928
|
+
if (!p || Ne(p, e, t, !0))
|
|
26927
26929
|
return;
|
|
26928
|
-
const { currentTime: y, volume: b, muted: g, playbackRate: w, loop: f } =
|
|
26930
|
+
const { currentTime: y, volume: b, muted: g, playbackRate: w, loop: f } = p;
|
|
26929
26931
|
n({
|
|
26930
26932
|
type: l,
|
|
26931
|
-
id: i.getId(
|
|
26933
|
+
id: i.getId(p),
|
|
26932
26934
|
currentTime: y,
|
|
26933
26935
|
volume: b,
|
|
26934
26936
|
muted: g,
|
|
@@ -26936,11 +26938,11 @@ function Uc({ mediaInteractionCb: n, blockClass: e, blockSelector: t, mirror: i,
|
|
|
26936
26938
|
loop: f
|
|
26937
26939
|
});
|
|
26938
26940
|
}), s.media || 500)), c = [
|
|
26939
|
-
|
|
26940
|
-
|
|
26941
|
-
|
|
26942
|
-
|
|
26943
|
-
|
|
26941
|
+
Re("play", o(0), a),
|
|
26942
|
+
Re("pause", o(1), a),
|
|
26943
|
+
Re("seeked", o(2), a),
|
|
26944
|
+
Re("volumechange", o(3), a),
|
|
26945
|
+
Re("ratechange", o(4), a)
|
|
26944
26946
|
];
|
|
26945
26947
|
return Y(() => {
|
|
26946
26948
|
c.forEach((l) => l());
|
|
@@ -26952,20 +26954,20 @@ function Vc({ fontCb: n, doc: e }) {
|
|
|
26952
26954
|
return () => {
|
|
26953
26955
|
};
|
|
26954
26956
|
const i = [], s = /* @__PURE__ */ new WeakMap(), a = t.FontFace;
|
|
26955
|
-
t.FontFace = function(l,
|
|
26956
|
-
const y = new a(l,
|
|
26957
|
+
t.FontFace = function(l, m, p) {
|
|
26958
|
+
const y = new a(l, m, p);
|
|
26957
26959
|
return s.set(y, {
|
|
26958
26960
|
family: l,
|
|
26959
|
-
buffer: typeof
|
|
26960
|
-
descriptors:
|
|
26961
|
-
fontSource: typeof
|
|
26961
|
+
buffer: typeof m != "string",
|
|
26962
|
+
descriptors: p,
|
|
26963
|
+
fontSource: typeof m == "string" ? m : JSON.stringify(Array.from(new Uint8Array(m)))
|
|
26962
26964
|
}), y;
|
|
26963
26965
|
};
|
|
26964
26966
|
const o = vt(e.fonts, "add", function(c) {
|
|
26965
26967
|
return function(l) {
|
|
26966
26968
|
return setTimeout(Y(() => {
|
|
26967
|
-
const
|
|
26968
|
-
|
|
26969
|
+
const m = s.get(l);
|
|
26970
|
+
m && (n(m), s.delete(l));
|
|
26969
26971
|
}), 0), c.apply(this, [l]);
|
|
26970
26972
|
};
|
|
26971
26973
|
});
|
|
@@ -26983,19 +26985,19 @@ function Fc(n) {
|
|
|
26983
26985
|
if (!l || o && (l != null && l.isCollapsed))
|
|
26984
26986
|
return;
|
|
26985
26987
|
o = l.isCollapsed || !1;
|
|
26986
|
-
const
|
|
26987
|
-
for (let y = 0; y <
|
|
26988
|
+
const m = [], p = l.rangeCount || 0;
|
|
26989
|
+
for (let y = 0; y < p; y++) {
|
|
26988
26990
|
const b = l.getRangeAt(y), { startContainer: g, startOffset: w, endContainer: f, endOffset: S } = b;
|
|
26989
|
-
|
|
26991
|
+
Ne(g, i, s, !0) || Ne(f, i, s, !0) || m.push({
|
|
26990
26992
|
start: t.getId(g),
|
|
26991
26993
|
startOffset: w,
|
|
26992
26994
|
end: t.getId(f),
|
|
26993
26995
|
endOffset: S
|
|
26994
26996
|
});
|
|
26995
26997
|
}
|
|
26996
|
-
a({ ranges:
|
|
26998
|
+
a({ ranges: m });
|
|
26997
26999
|
});
|
|
26998
|
-
return c(),
|
|
27000
|
+
return c(), Re("selectionchange", c);
|
|
26999
27001
|
}
|
|
27000
27002
|
function Kc({ doc: n, customElementCb: e }) {
|
|
27001
27003
|
const t = n.defaultView;
|
|
@@ -27016,7 +27018,7 @@ function Kc({ doc: n, customElementCb: e }) {
|
|
|
27016
27018
|
});
|
|
27017
27019
|
}
|
|
27018
27020
|
function Gc(n, e) {
|
|
27019
|
-
const { mutationCb: t, mousemoveCb: i, mouseInteractionCb: s, scrollCb: a, viewportResizeCb: o, inputCb: c, mediaInteractionCb: l, styleSheetRuleCb:
|
|
27021
|
+
const { mutationCb: t, mousemoveCb: i, mouseInteractionCb: s, scrollCb: a, viewportResizeCb: o, inputCb: c, mediaInteractionCb: l, styleSheetRuleCb: m, styleDeclarationCb: p, canvasMutationCb: y, fontCb: b, selectionCb: g, customElementCb: w } = n;
|
|
27020
27022
|
n.mutationCb = (...f) => {
|
|
27021
27023
|
e.mutation && e.mutation(...f), t(...f);
|
|
27022
27024
|
}, n.mousemoveCb = (...f) => {
|
|
@@ -27032,9 +27034,9 @@ function Gc(n, e) {
|
|
|
27032
27034
|
}, n.mediaInteractionCb = (...f) => {
|
|
27033
27035
|
e.mediaInteaction && e.mediaInteaction(...f), l(...f);
|
|
27034
27036
|
}, n.styleSheetRuleCb = (...f) => {
|
|
27035
|
-
e.styleSheetRule && e.styleSheetRule(...f),
|
|
27037
|
+
e.styleSheetRule && e.styleSheetRule(...f), m(...f);
|
|
27036
27038
|
}, n.styleDeclarationCb = (...f) => {
|
|
27037
|
-
e.styleDeclaration && e.styleDeclaration(...f),
|
|
27039
|
+
e.styleDeclaration && e.styleDeclaration(...f), p(...f);
|
|
27038
27040
|
}, n.canvasMutationCb = (...f) => {
|
|
27039
27041
|
e.canvasMutation && e.canvasMutation(...f), y(...f);
|
|
27040
27042
|
}, n.fontCb = (...f) => {
|
|
@@ -27055,20 +27057,20 @@ function jc(n, e = {}) {
|
|
|
27055
27057
|
n.recordDOM && (i = ao(n, n.doc));
|
|
27056
27058
|
const s = Ic(n), a = Dc(n), o = oo(n), c = Bc(n, {
|
|
27057
27059
|
win: t
|
|
27058
|
-
}), l = Rc(n),
|
|
27059
|
-
let
|
|
27060
|
+
}), l = Rc(n), m = Uc(n);
|
|
27061
|
+
let p = () => {
|
|
27060
27062
|
}, y = () => {
|
|
27061
27063
|
}, b = () => {
|
|
27062
27064
|
}, g = () => {
|
|
27063
27065
|
};
|
|
27064
|
-
n.recordDOM && (
|
|
27066
|
+
n.recordDOM && (p = Nc(n, { win: t }), y = ro(n, n.doc), b = Oc(n, {
|
|
27065
27067
|
win: t
|
|
27066
27068
|
}), n.collectFonts && (g = Vc(n)));
|
|
27067
27069
|
const w = Fc(n), f = Kc(n), S = [];
|
|
27068
27070
|
for (const A of n.plugins)
|
|
27069
27071
|
S.push(A.observer(A.callback, t, A.options));
|
|
27070
27072
|
return Y(() => {
|
|
27071
|
-
qn.forEach((A) => A.reset()), i == null || i.disconnect(), s(), a(), o(), c(), l(),
|
|
27073
|
+
qn.forEach((A) => A.reset()), i == null || i.disconnect(), s(), a(), o(), c(), l(), m(), p(), y(), b(), g(), w(), f(), S.forEach((A) => A());
|
|
27072
27074
|
});
|
|
27073
27075
|
}
|
|
27074
27076
|
function si(n) {
|
|
@@ -27326,24 +27328,24 @@ function Wc(n, e, t, i) {
|
|
|
27326
27328
|
});
|
|
27327
27329
|
}
|
|
27328
27330
|
return new (t || (t = Promise))(function(a, o) {
|
|
27329
|
-
function c(
|
|
27331
|
+
function c(p) {
|
|
27330
27332
|
try {
|
|
27331
|
-
|
|
27333
|
+
m(i.next(p));
|
|
27332
27334
|
} catch (y) {
|
|
27333
27335
|
o(y);
|
|
27334
27336
|
}
|
|
27335
27337
|
}
|
|
27336
|
-
function l(
|
|
27338
|
+
function l(p) {
|
|
27337
27339
|
try {
|
|
27338
|
-
|
|
27340
|
+
m(i.throw(p));
|
|
27339
27341
|
} catch (y) {
|
|
27340
27342
|
o(y);
|
|
27341
27343
|
}
|
|
27342
27344
|
}
|
|
27343
|
-
function p
|
|
27344
|
-
|
|
27345
|
+
function m(p) {
|
|
27346
|
+
p.done ? a(p.value) : s(p.value).then(c, l);
|
|
27345
27347
|
}
|
|
27346
|
-
|
|
27348
|
+
m((i = i.apply(n, [])).next());
|
|
27347
27349
|
});
|
|
27348
27350
|
}
|
|
27349
27351
|
var ot = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Qc = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
|
|
@@ -27442,25 +27444,25 @@ function Xc(n, e, t, i) {
|
|
|
27442
27444
|
if (typeof e.CanvasRenderingContext2D.prototype[o] != "function")
|
|
27443
27445
|
continue;
|
|
27444
27446
|
const c = vt(e.CanvasRenderingContext2D.prototype, o, function(l) {
|
|
27445
|
-
return function(...
|
|
27446
|
-
return
|
|
27447
|
-
const
|
|
27447
|
+
return function(...m) {
|
|
27448
|
+
return Ne(this.canvas, t, i, !0) || setTimeout(() => {
|
|
27449
|
+
const p = co(m, e, this);
|
|
27448
27450
|
n(this.canvas, {
|
|
27449
27451
|
type: dt["2D"],
|
|
27450
27452
|
property: o,
|
|
27451
|
-
args:
|
|
27453
|
+
args: p
|
|
27452
27454
|
});
|
|
27453
|
-
}, 0), l.apply(this,
|
|
27455
|
+
}, 0), l.apply(this, m);
|
|
27454
27456
|
};
|
|
27455
27457
|
});
|
|
27456
27458
|
s.push(c);
|
|
27457
27459
|
} catch {
|
|
27458
27460
|
const l = xi(e.CanvasRenderingContext2D.prototype, o, {
|
|
27459
|
-
set(
|
|
27461
|
+
set(m) {
|
|
27460
27462
|
n(this.canvas, {
|
|
27461
27463
|
type: dt["2D"],
|
|
27462
27464
|
property: o,
|
|
27463
|
-
args: [
|
|
27465
|
+
args: [m],
|
|
27464
27466
|
setter: !0
|
|
27465
27467
|
});
|
|
27466
27468
|
}
|
|
@@ -27479,12 +27481,12 @@ function ea(n, e, t, i) {
|
|
|
27479
27481
|
try {
|
|
27480
27482
|
const a = vt(n.HTMLCanvasElement.prototype, "getContext", function(o) {
|
|
27481
27483
|
return function(c, ...l) {
|
|
27482
|
-
if (!
|
|
27483
|
-
const
|
|
27484
|
-
if ("__context" in this || (this.__context =
|
|
27484
|
+
if (!Ne(this, e, t, !0)) {
|
|
27485
|
+
const m = $c(c);
|
|
27486
|
+
if ("__context" in this || (this.__context = m), i && ["webgl", "webgl2"].includes(m))
|
|
27485
27487
|
if (l[0] && typeof l[0] == "object") {
|
|
27486
|
-
const
|
|
27487
|
-
|
|
27488
|
+
const p = l[0];
|
|
27489
|
+
p.preserveDrawingBuffer || (p.preserveDrawingBuffer = !0);
|
|
27488
27490
|
} else
|
|
27489
27491
|
l.splice(0, 1, {
|
|
27490
27492
|
preserveDrawingBuffer: !0
|
|
@@ -27503,23 +27505,23 @@ function ea(n, e, t, i) {
|
|
|
27503
27505
|
}
|
|
27504
27506
|
function na(n, e, t, i, s, a, o) {
|
|
27505
27507
|
const c = [], l = Object.getOwnPropertyNames(n);
|
|
27506
|
-
for (const
|
|
27508
|
+
for (const m of l)
|
|
27507
27509
|
if (![
|
|
27508
27510
|
"isContextLost",
|
|
27509
27511
|
"canvas",
|
|
27510
27512
|
"drawingBufferWidth",
|
|
27511
27513
|
"drawingBufferHeight"
|
|
27512
|
-
].includes(
|
|
27514
|
+
].includes(m))
|
|
27513
27515
|
try {
|
|
27514
|
-
if (typeof n[
|
|
27516
|
+
if (typeof n[m] != "function")
|
|
27515
27517
|
continue;
|
|
27516
|
-
const
|
|
27518
|
+
const p = vt(n, m, function(y) {
|
|
27517
27519
|
return function(...b) {
|
|
27518
27520
|
const g = y.apply(this, b);
|
|
27519
|
-
if (lo(g, o, this), "tagName" in this.canvas && !
|
|
27521
|
+
if (lo(g, o, this), "tagName" in this.canvas && !Ne(this.canvas, i, s, !0)) {
|
|
27520
27522
|
const w = co(b, o, this), f = {
|
|
27521
27523
|
type: e,
|
|
27522
|
-
property:
|
|
27524
|
+
property: m,
|
|
27523
27525
|
args: w
|
|
27524
27526
|
};
|
|
27525
27527
|
t(this.canvas, f);
|
|
@@ -27527,13 +27529,13 @@ function na(n, e, t, i, s, a, o) {
|
|
|
27527
27529
|
return g;
|
|
27528
27530
|
};
|
|
27529
27531
|
});
|
|
27530
|
-
c.push(
|
|
27532
|
+
c.push(p);
|
|
27531
27533
|
} catch {
|
|
27532
|
-
const y = xi(n,
|
|
27534
|
+
const y = xi(n, m, {
|
|
27533
27535
|
set(b) {
|
|
27534
27536
|
t(this.canvas, {
|
|
27535
27537
|
type: e,
|
|
27536
|
-
property:
|
|
27538
|
+
property: m,
|
|
27537
27539
|
args: [b],
|
|
27538
27540
|
setter: !0
|
|
27539
27541
|
});
|
|
@@ -27587,7 +27589,7 @@ var sd = id(
|
|
|
27587
27589
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27588
27590
|
PERFORMANCE OF THIS SOFTWARE.
|
|
27589
27591
|
***************************************************************************** */
|
|
27590
|
-
function n(
|
|
27592
|
+
function n(m, p, y, b) {
|
|
27591
27593
|
function g(w) {
|
|
27592
27594
|
return w instanceof y ? w : new y(function(f) {
|
|
27593
27595
|
f(w);
|
|
@@ -27611,25 +27613,25 @@ var sd = id(
|
|
|
27611
27613
|
function M(L) {
|
|
27612
27614
|
L.done ? w(L.value) : g(L.value).then(S, A);
|
|
27613
27615
|
}
|
|
27614
|
-
M((b = b.apply(
|
|
27616
|
+
M((b = b.apply(m, [])).next());
|
|
27615
27617
|
});
|
|
27616
27618
|
}
|
|
27617
27619
|
for (var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", t = typeof Uint8Array > "u" ? [] : new Uint8Array(256), i = 0; i < e.length; i++)
|
|
27618
27620
|
t[e.charCodeAt(i)] = i;
|
|
27619
|
-
var s = function(
|
|
27620
|
-
var
|
|
27621
|
+
var s = function(m) {
|
|
27622
|
+
var p = new Uint8Array(m), y, b = p.length, g = "";
|
|
27621
27623
|
for (y = 0; y < b; y += 3)
|
|
27622
|
-
g += e[
|
|
27624
|
+
g += e[p[y] >> 2], g += e[(p[y] & 3) << 4 | p[y + 1] >> 4], g += e[(p[y + 1] & 15) << 2 | p[y + 2] >> 6], g += e[p[y + 2] & 63];
|
|
27623
27625
|
return b % 3 === 2 ? g = g.substring(0, g.length - 1) + "=" : b % 3 === 1 && (g = g.substring(0, g.length - 2) + "=="), g;
|
|
27624
27626
|
};
|
|
27625
27627
|
const a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
27626
|
-
function c(
|
|
27628
|
+
function c(m, p, y) {
|
|
27627
27629
|
return n(this, void 0, void 0, function* () {
|
|
27628
|
-
const b = `${
|
|
27630
|
+
const b = `${m}-${p}`;
|
|
27629
27631
|
if ("OffscreenCanvas" in globalThis) {
|
|
27630
27632
|
if (o.has(b))
|
|
27631
27633
|
return o.get(b);
|
|
27632
|
-
const g = new OffscreenCanvas(
|
|
27634
|
+
const g = new OffscreenCanvas(m, p);
|
|
27633
27635
|
g.getContext("2d");
|
|
27634
27636
|
const f = yield (yield g.convertToBlob(y)).arrayBuffer(), S = s(f);
|
|
27635
27637
|
return o.set(b, S), S;
|
|
@@ -27638,25 +27640,25 @@ var sd = id(
|
|
|
27638
27640
|
});
|
|
27639
27641
|
}
|
|
27640
27642
|
const l = self;
|
|
27641
|
-
l.onmessage = function(
|
|
27643
|
+
l.onmessage = function(m) {
|
|
27642
27644
|
return n(this, void 0, void 0, function* () {
|
|
27643
27645
|
if ("OffscreenCanvas" in globalThis) {
|
|
27644
|
-
const { id:
|
|
27646
|
+
const { id: p, bitmap: y, width: b, height: g, dataURLOptions: w } = m.data, f = c(b, g, w), S = new OffscreenCanvas(b, g);
|
|
27645
27647
|
S.getContext("2d").drawImage(y, 0, 0), y.close();
|
|
27646
27648
|
const M = yield S.convertToBlob(w), L = M.type, E = yield M.arrayBuffer(), D = s(E);
|
|
27647
|
-
if (!a.has(
|
|
27648
|
-
return a.set(
|
|
27649
|
-
if (a.get(
|
|
27650
|
-
return l.postMessage({ id:
|
|
27649
|
+
if (!a.has(p) && (yield f) === D)
|
|
27650
|
+
return a.set(p, D), l.postMessage({ id: p });
|
|
27651
|
+
if (a.get(p) === D)
|
|
27652
|
+
return l.postMessage({ id: p });
|
|
27651
27653
|
l.postMessage({
|
|
27652
|
-
id:
|
|
27654
|
+
id: p,
|
|
27653
27655
|
type: L,
|
|
27654
27656
|
base64: D,
|
|
27655
27657
|
width: b,
|
|
27656
27658
|
height: g
|
|
27657
|
-
}), a.set(
|
|
27659
|
+
}), a.set(p, D);
|
|
27658
27660
|
} else
|
|
27659
|
-
return l.postMessage({ id:
|
|
27661
|
+
return l.postMessage({ id: m.data.id });
|
|
27660
27662
|
});
|
|
27661
27663
|
};
|
|
27662
27664
|
})();
|
|
@@ -27679,8 +27681,8 @@ class ad {
|
|
|
27679
27681
|
this.locked = !1;
|
|
27680
27682
|
}
|
|
27681
27683
|
constructor(e) {
|
|
27682
|
-
this.pendingCanvasMutations = /* @__PURE__ */ new Map(), this.rafStamps = { latestId: 0, invokeId: null }, this.frozen = !1, this.locked = !1, this.processMutation = (l,
|
|
27683
|
-
(this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(l) || this.pendingCanvasMutations.set(l, []), this.pendingCanvasMutations.get(l).push(
|
|
27684
|
+
this.pendingCanvasMutations = /* @__PURE__ */ new Map(), this.rafStamps = { latestId: 0, invokeId: null }, this.frozen = !1, this.locked = !1, this.processMutation = (l, m) => {
|
|
27685
|
+
(this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(l) || this.pendingCanvasMutations.set(l, []), this.pendingCanvasMutations.get(l).push(m);
|
|
27684
27686
|
};
|
|
27685
27687
|
const { sampling: t = "all", win: i, blockClass: s, blockSelector: a, recordCanvas: o, dataURLOptions: c } = e;
|
|
27686
27688
|
this.mutationCb = e.mutationCb, this.mirror = e.mirror, o && t === "all" && this.initCanvasMutationObserver(i, s, a), o && typeof t == "number" && this.initCanvasFPSObserver(t, i, s, a, {
|
|
@@ -27722,19 +27724,19 @@ class ad {
|
|
|
27722
27724
|
]
|
|
27723
27725
|
});
|
|
27724
27726
|
};
|
|
27725
|
-
const
|
|
27726
|
-
let
|
|
27727
|
+
const m = 1e3 / e;
|
|
27728
|
+
let p = 0, y;
|
|
27727
27729
|
const b = () => {
|
|
27728
27730
|
const w = [];
|
|
27729
27731
|
return t.document.querySelectorAll("canvas").forEach((f) => {
|
|
27730
|
-
|
|
27732
|
+
Ne(f, i, s, !0) || w.push(f);
|
|
27731
27733
|
}), w;
|
|
27732
27734
|
}, g = (w) => {
|
|
27733
|
-
if (
|
|
27735
|
+
if (p && w - p < m) {
|
|
27734
27736
|
y = requestAnimationFrame(g);
|
|
27735
27737
|
return;
|
|
27736
27738
|
}
|
|
27737
|
-
|
|
27739
|
+
p = w, b().forEach((f) => Wc(this, void 0, void 0, function* () {
|
|
27738
27740
|
var S;
|
|
27739
27741
|
const A = this.mirror.getId(f);
|
|
27740
27742
|
if (c.get(A) || f.width === 0 || f.height === 0)
|
|
@@ -27863,9 +27865,9 @@ function Ce(n) {
|
|
|
27863
27865
|
let me, ui, ji, Ci = !1;
|
|
27864
27866
|
const Ye = ec();
|
|
27865
27867
|
function Dt(n = {}) {
|
|
27866
|
-
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: c = null, maskTextClass: l = "rr-mask", maskTextSelector:
|
|
27868
|
+
const { emit: e, checkoutEveryNms: t, checkoutEveryNth: i, blockClass: s = "rr-block", blockSelector: a = null, ignoreClass: o = "rr-ignore", ignoreSelector: c = null, maskTextClass: l = "rr-mask", maskTextSelector: m = null, inlineStylesheet: p = !0, maskAllInputs: y, maskInputOptions: b, slimDOMOptions: g, maskInputFn: w, maskTextFn: f, hooks: S, packFn: A, sampling: M = {}, dataURLOptions: L = {}, mousemoveWait: E, recordDOM: D = !0, recordCanvas: F = !1, recordCrossOriginIframes: z = !1, recordAfter: G = n.recordAfter === "DOMContentLoaded" ? n.recordAfter : "load", userTriggeredOnInput: Z = !1, collectFonts: ce = !1, inlineImages: xe = !1, plugins: j, keepIframeSrcFn: He = () => !1, ignoreCSSAttributes: ve = /* @__PURE__ */ new Set([]), errorHandler: Ke } = n;
|
|
27867
27869
|
Ec(Ke);
|
|
27868
|
-
const Se =
|
|
27870
|
+
const Se = z ? window.parent === window : !0;
|
|
27869
27871
|
let hn = !1;
|
|
27870
27872
|
if (!Se)
|
|
27871
27873
|
try {
|
|
@@ -27956,7 +27958,7 @@ function Dt(n = {}) {
|
|
|
27956
27958
|
mirror: Ye,
|
|
27957
27959
|
mutationCb: pn,
|
|
27958
27960
|
stylesheetManager: ze,
|
|
27959
|
-
recordCrossOriginIframes:
|
|
27961
|
+
recordCrossOriginIframes: z,
|
|
27960
27962
|
wrappedEmit: me
|
|
27961
27963
|
});
|
|
27962
27964
|
for (const R of j || [])
|
|
@@ -27983,8 +27985,8 @@ function Dt(n = {}) {
|
|
|
27983
27985
|
blockClass: s,
|
|
27984
27986
|
blockSelector: a,
|
|
27985
27987
|
maskTextClass: l,
|
|
27986
|
-
maskTextSelector:
|
|
27987
|
-
inlineStylesheet:
|
|
27988
|
+
maskTextSelector: m,
|
|
27989
|
+
inlineStylesheet: p,
|
|
27988
27990
|
maskInputOptions: an,
|
|
27989
27991
|
dataURLOptions: L,
|
|
27990
27992
|
maskTextFn: f,
|
|
@@ -27996,7 +27998,7 @@ function Dt(n = {}) {
|
|
|
27996
27998
|
iframeManager: je,
|
|
27997
27999
|
stylesheetManager: ze,
|
|
27998
28000
|
canvasManager: ji,
|
|
27999
|
-
keepIframeSrcFn:
|
|
28001
|
+
keepIframeSrcFn: He,
|
|
28000
28002
|
processedNodeManager: Pe
|
|
28001
28003
|
},
|
|
28002
28004
|
mirror: Ye
|
|
@@ -28017,8 +28019,8 @@ function Dt(n = {}) {
|
|
|
28017
28019
|
blockClass: s,
|
|
28018
28020
|
blockSelector: a,
|
|
28019
28021
|
maskTextClass: l,
|
|
28020
|
-
maskTextSelector:
|
|
28021
|
-
inlineStylesheet:
|
|
28022
|
+
maskTextSelector: m,
|
|
28023
|
+
inlineStylesheet: p,
|
|
28022
28024
|
maskAllInputs: an,
|
|
28023
28025
|
maskTextFn: f,
|
|
28024
28026
|
slimDOM: mn,
|
|
@@ -28034,7 +28036,7 @@ function Dt(n = {}) {
|
|
|
28034
28036
|
onStylesheetLoad: (te, fe) => {
|
|
28035
28037
|
ze.attachLinkElement(te, fe);
|
|
28036
28038
|
},
|
|
28037
|
-
keepIframeSrcFn:
|
|
28039
|
+
keepIframeSrcFn: He
|
|
28038
28040
|
});
|
|
28039
28041
|
if (!be)
|
|
28040
28042
|
return console.warn("Failed to snapshot the document");
|
|
@@ -28104,19 +28106,19 @@ function Dt(n = {}) {
|
|
|
28104
28106
|
ignoreClass: o,
|
|
28105
28107
|
ignoreSelector: c,
|
|
28106
28108
|
maskTextClass: l,
|
|
28107
|
-
maskTextSelector:
|
|
28109
|
+
maskTextSelector: m,
|
|
28108
28110
|
maskInputOptions: an,
|
|
28109
|
-
inlineStylesheet:
|
|
28111
|
+
inlineStylesheet: p,
|
|
28110
28112
|
sampling: M,
|
|
28111
28113
|
recordDOM: D,
|
|
28112
28114
|
recordCanvas: F,
|
|
28113
28115
|
inlineImages: xe,
|
|
28114
|
-
userTriggeredOnInput:
|
|
28116
|
+
userTriggeredOnInput: Z,
|
|
28115
28117
|
collectFonts: ce,
|
|
28116
28118
|
doc: fe,
|
|
28117
28119
|
maskInputFn: w,
|
|
28118
28120
|
maskTextFn: f,
|
|
28119
|
-
keepIframeSrcFn:
|
|
28121
|
+
keepIframeSrcFn: He,
|
|
28120
28122
|
blockSelector: a,
|
|
28121
28123
|
slimDOMOptions: mn,
|
|
28122
28124
|
dataURLOptions: L,
|
|
@@ -28150,12 +28152,12 @@ function Dt(n = {}) {
|
|
|
28150
28152
|
const te = () => {
|
|
28151
28153
|
ui(), R.push(be(document)), Ci = !0;
|
|
28152
28154
|
};
|
|
28153
|
-
return document.readyState === "interactive" || document.readyState === "complete" ? te() : (R.push(
|
|
28155
|
+
return document.readyState === "interactive" || document.readyState === "complete" ? te() : (R.push(Re("DOMContentLoaded", () => {
|
|
28154
28156
|
me(Ce({
|
|
28155
28157
|
type: X.DomContentLoaded,
|
|
28156
28158
|
data: {}
|
|
28157
28159
|
})), G === "DOMContentLoaded" && te();
|
|
28158
|
-
})), R.push(
|
|
28160
|
+
})), R.push(Re("load", () => {
|
|
28159
28161
|
me(Ce({
|
|
28160
28162
|
type: X.Load,
|
|
28161
28163
|
data: {}
|
|
@@ -28433,7 +28435,7 @@ v.JSONEncode = /* @__PURE__ */ function() {
|
|
|
28433
28435
|
return typeof l == "string" ? l : "\\u" + ("0000" + c.charCodeAt(0).toString(16)).slice(-4);
|
|
28434
28436
|
}) + '"' : '"' + s + '"';
|
|
28435
28437
|
}, i = function(s, a) {
|
|
28436
|
-
var o = "", c = " ", l = 0,
|
|
28438
|
+
var o = "", c = " ", l = 0, m = "", p = "", y = 0, b = o, g = [], w = a[s];
|
|
28437
28439
|
switch (w && typeof w == "object" && typeof w.toJSON == "function" && (w = w.toJSON(s)), typeof w) {
|
|
28438
28440
|
case "string":
|
|
28439
28441
|
return t(w);
|
|
@@ -28448,14 +28450,14 @@ v.JSONEncode = /* @__PURE__ */ function() {
|
|
|
28448
28450
|
if (o += c, g = [], Bt.apply(w) === "[object Array]") {
|
|
28449
28451
|
for (y = w.length, l = 0; l < y; l += 1)
|
|
28450
28452
|
g[l] = i(l, w) || "null";
|
|
28451
|
-
return
|
|
28453
|
+
return p = g.length === 0 ? "[]" : o ? `[
|
|
28452
28454
|
` + o + g.join(`,
|
|
28453
28455
|
` + o) + `
|
|
28454
|
-
` + b + "]" : "[" + g.join(",") + "]", o = b,
|
|
28456
|
+
` + b + "]" : "[" + g.join(",") + "]", o = b, p;
|
|
28455
28457
|
}
|
|
28456
|
-
for (
|
|
28457
|
-
_i.call(w,
|
|
28458
|
-
return
|
|
28458
|
+
for (m in w)
|
|
28459
|
+
_i.call(w, m) && (p = i(m, w), p && g.push(t(m) + (o ? ": " : ":") + p));
|
|
28460
|
+
return p = g.length === 0 ? "{}" : o ? "{" + g.join(",") + b + "}" : "{" + g.join(",") + "}", o = b, p;
|
|
28459
28461
|
}
|
|
28460
28462
|
};
|
|
28461
28463
|
return i("", {
|
|
@@ -28515,7 +28517,7 @@ v.JSONDecode = function() {
|
|
|
28515
28517
|
}, l = function() {
|
|
28516
28518
|
for (; e && e <= " "; )
|
|
28517
28519
|
a();
|
|
28518
|
-
},
|
|
28520
|
+
}, m = function() {
|
|
28519
28521
|
switch (e) {
|
|
28520
28522
|
case "t":
|
|
28521
28523
|
return a("t"), a("r"), a("u"), a("e"), !0;
|
|
@@ -28525,13 +28527,13 @@ v.JSONDecode = function() {
|
|
|
28525
28527
|
return a("n"), a("u"), a("l"), a("l"), null;
|
|
28526
28528
|
}
|
|
28527
28529
|
s('Unexpected "' + e + '"');
|
|
28528
|
-
},
|
|
28530
|
+
}, p, y = function() {
|
|
28529
28531
|
var g = [];
|
|
28530
28532
|
if (e === "[") {
|
|
28531
28533
|
if (a("["), l(), e === "]")
|
|
28532
28534
|
return a("]"), g;
|
|
28533
28535
|
for (; e; ) {
|
|
28534
|
-
if (g.push(
|
|
28536
|
+
if (g.push(p()), l(), e === "]")
|
|
28535
28537
|
return a("]"), g;
|
|
28536
28538
|
a(","), l();
|
|
28537
28539
|
}
|
|
@@ -28543,14 +28545,14 @@ v.JSONDecode = function() {
|
|
|
28543
28545
|
if (a("{"), l(), e === "}")
|
|
28544
28546
|
return a("}"), w;
|
|
28545
28547
|
for (; e; ) {
|
|
28546
|
-
if (g = c(), l(), a(":"), Object.hasOwnProperty.call(w, g) && s('Duplicate key "' + g + '"'), w[g] =
|
|
28548
|
+
if (g = c(), l(), a(":"), Object.hasOwnProperty.call(w, g) && s('Duplicate key "' + g + '"'), w[g] = p(), l(), e === "}")
|
|
28547
28549
|
return a("}"), w;
|
|
28548
28550
|
a(","), l();
|
|
28549
28551
|
}
|
|
28550
28552
|
}
|
|
28551
28553
|
s("Bad object");
|
|
28552
28554
|
};
|
|
28553
|
-
return
|
|
28555
|
+
return p = function() {
|
|
28554
28556
|
switch (l(), e) {
|
|
28555
28557
|
case "{":
|
|
28556
28558
|
return b();
|
|
@@ -28561,21 +28563,21 @@ v.JSONDecode = function() {
|
|
|
28561
28563
|
case "-":
|
|
28562
28564
|
return o();
|
|
28563
28565
|
default:
|
|
28564
|
-
return e >= "0" && e <= "9" ? o() :
|
|
28566
|
+
return e >= "0" && e <= "9" ? o() : m();
|
|
28565
28567
|
}
|
|
28566
28568
|
}, function(g) {
|
|
28567
28569
|
var w;
|
|
28568
|
-
return i = g, n = 0, e = " ", w =
|
|
28570
|
+
return i = g, n = 0, e = " ", w = p(), l(), e && s("Syntax error"), w;
|
|
28569
28571
|
};
|
|
28570
28572
|
}();
|
|
28571
28573
|
v.base64Encode = function(n) {
|
|
28572
|
-
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", t, i, s, a, o, c, l,
|
|
28574
|
+
var e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", t, i, s, a, o, c, l, m, p = 0, y = 0, b = "", g = [];
|
|
28573
28575
|
if (!n)
|
|
28574
28576
|
return n;
|
|
28575
28577
|
n = v.utf8Encode(n);
|
|
28576
28578
|
do
|
|
28577
|
-
t = n.charCodeAt(
|
|
28578
|
-
while (
|
|
28579
|
+
t = n.charCodeAt(p++), i = n.charCodeAt(p++), s = n.charCodeAt(p++), m = t << 16 | i << 8 | s, a = m >> 18 & 63, o = m >> 12 & 63, c = m >> 6 & 63, l = m & 63, g[y++] = e.charAt(a) + e.charAt(o) + e.charAt(c) + e.charAt(l);
|
|
28580
|
+
while (p < n.length);
|
|
28579
28581
|
switch (b = g.join(""), n.length % 3) {
|
|
28580
28582
|
case 1:
|
|
28581
28583
|
b = b.slice(0, -2) + "==";
|
|
@@ -28610,11 +28612,11 @@ v.UUID = /* @__PURE__ */ function() {
|
|
|
28610
28612
|
return Math.random().toString(16).replace(".", "");
|
|
28611
28613
|
}, t = function() {
|
|
28612
28614
|
var i = dn, s, a, o = [], c = 0;
|
|
28613
|
-
function l(
|
|
28615
|
+
function l(m, p) {
|
|
28614
28616
|
var y, b = 0;
|
|
28615
|
-
for (y = 0; y <
|
|
28617
|
+
for (y = 0; y < p.length; y++)
|
|
28616
28618
|
b |= o[y] << y * 8;
|
|
28617
|
-
return
|
|
28619
|
+
return m ^ b;
|
|
28618
28620
|
}
|
|
28619
28621
|
for (s = 0; s < i.length; s++)
|
|
28620
28622
|
a = i.charCodeAt(s), o.unshift(a & 255), o.length >= 4 && (c = l(c, o), o = []);
|
|
@@ -28697,33 +28699,33 @@ v.cookie = {
|
|
|
28697
28699
|
return e;
|
|
28698
28700
|
},
|
|
28699
28701
|
set_seconds: function(n, e, t, i, s, a, o) {
|
|
28700
|
-
var c = "", l = "",
|
|
28702
|
+
var c = "", l = "", m = "";
|
|
28701
28703
|
if (o)
|
|
28702
28704
|
c = "; domain=" + o;
|
|
28703
28705
|
else if (i) {
|
|
28704
|
-
var
|
|
28705
|
-
c =
|
|
28706
|
+
var p = ra(ae.location.hostname);
|
|
28707
|
+
c = p ? "; domain=." + p : "";
|
|
28706
28708
|
}
|
|
28707
28709
|
if (t) {
|
|
28708
28710
|
var y = /* @__PURE__ */ new Date();
|
|
28709
28711
|
y.setTime(y.getTime() + t * 1e3), l = "; expires=" + y.toGMTString();
|
|
28710
28712
|
}
|
|
28711
|
-
a && (s = !0,
|
|
28713
|
+
a && (s = !0, m = "; SameSite=None"), s && (m += "; secure"), ae.cookie = n + "=" + encodeURIComponent(e) + l + "; path=/" + c + m;
|
|
28712
28714
|
},
|
|
28713
28715
|
set: function(n, e, t, i, s, a, o) {
|
|
28714
|
-
var c = "", l = "",
|
|
28716
|
+
var c = "", l = "", m = "";
|
|
28715
28717
|
if (o)
|
|
28716
28718
|
c = "; domain=" + o;
|
|
28717
28719
|
else if (i) {
|
|
28718
|
-
var
|
|
28719
|
-
c =
|
|
28720
|
+
var p = ra(ae.location.hostname);
|
|
28721
|
+
c = p ? "; domain=." + p : "";
|
|
28720
28722
|
}
|
|
28721
28723
|
if (t) {
|
|
28722
28724
|
var y = /* @__PURE__ */ new Date();
|
|
28723
28725
|
y.setTime(y.getTime() + t * 24 * 60 * 60 * 1e3), l = "; expires=" + y.toGMTString();
|
|
28724
28726
|
}
|
|
28725
|
-
a && (s = !0,
|
|
28726
|
-
var b = n + "=" + encodeURIComponent(e) + l + "; path=/" + c +
|
|
28727
|
+
a && (s = !0, m = "; SameSite=None"), s && (m += "; secure");
|
|
28728
|
+
var b = n + "=" + encodeURIComponent(e) + l + "; path=/" + c + m;
|
|
28727
28729
|
return ae.cookie = b, b;
|
|
28728
28730
|
},
|
|
28729
28731
|
remove: function(n, e, t) {
|
|
@@ -28790,15 +28792,15 @@ v.register_event = function() {
|
|
|
28790
28792
|
if (i.addEventListener && !o)
|
|
28791
28793
|
i.addEventListener(s, a, !!c);
|
|
28792
28794
|
else {
|
|
28793
|
-
var l = "on" + s,
|
|
28794
|
-
i[l] = e(i, a,
|
|
28795
|
+
var l = "on" + s, m = i[l];
|
|
28796
|
+
i[l] = e(i, a, m);
|
|
28795
28797
|
}
|
|
28796
28798
|
};
|
|
28797
28799
|
function e(i, s, a) {
|
|
28798
28800
|
var o = function(c) {
|
|
28799
28801
|
if (c = c || t(window.event), !!c) {
|
|
28800
|
-
var l = !0,
|
|
28801
|
-
return v.isFunction(a) && (
|
|
28802
|
+
var l = !0, m, p;
|
|
28803
|
+
return v.isFunction(a) && (m = a(c)), p = s.call(i, c), (m === !1 || p === !1) && (l = !1), l;
|
|
28802
28804
|
}
|
|
28803
28805
|
};
|
|
28804
28806
|
return o;
|
|
@@ -28825,7 +28827,7 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28825
28827
|
function i(s) {
|
|
28826
28828
|
if (!ae.getElementsByTagName)
|
|
28827
28829
|
return [];
|
|
28828
|
-
var a = s.split(" "), o, c, l,
|
|
28830
|
+
var a = s.split(" "), o, c, l, m, p, y, b, g, w, f, S = [ae];
|
|
28829
28831
|
for (y = 0; y < a.length; y++) {
|
|
28830
28832
|
if (o = a[y].replace(/^\s+/, "").replace(/\s+$/, ""), o.indexOf("#") > -1) {
|
|
28831
28833
|
c = o.split("#"), l = c[0];
|
|
@@ -28838,67 +28840,67 @@ v.dom_query = /* @__PURE__ */ function() {
|
|
|
28838
28840
|
if (o.indexOf(".") > -1) {
|
|
28839
28841
|
c = o.split("."), l = c[0];
|
|
28840
28842
|
var L = c[1];
|
|
28841
|
-
for (l || (l = "*"),
|
|
28843
|
+
for (l || (l = "*"), m = [], p = 0, b = 0; b < S.length; b++)
|
|
28842
28844
|
for (l == "*" ? w = n(S[b]) : w = S[b].getElementsByTagName(l), g = 0; g < w.length; g++)
|
|
28843
|
-
p
|
|
28844
|
-
for (S = [], f = 0, b = 0; b <
|
|
28845
|
-
|
|
28846
|
-
t(
|
|
28845
|
+
m[p++] = w[g];
|
|
28846
|
+
for (S = [], f = 0, b = 0; b < m.length; b++)
|
|
28847
|
+
m[b].className && v.isString(m[b].className) && // some SVG elements have classNames which are not strings
|
|
28848
|
+
t(m[b], L) && (S[f++] = m[b]);
|
|
28847
28849
|
continue;
|
|
28848
28850
|
}
|
|
28849
28851
|
var E = o.match(dd);
|
|
28850
28852
|
if (E) {
|
|
28851
28853
|
l = E[1];
|
|
28852
|
-
var D = E[2], F = E[3],
|
|
28853
|
-
for (l || (l = "*"),
|
|
28854
|
+
var D = E[2], F = E[3], z = E[4];
|
|
28855
|
+
for (l || (l = "*"), m = [], p = 0, b = 0; b < S.length; b++)
|
|
28854
28856
|
for (l == "*" ? w = n(S[b]) : w = S[b].getElementsByTagName(l), g = 0; g < w.length; g++)
|
|
28855
|
-
p
|
|
28857
|
+
m[p++] = w[g];
|
|
28856
28858
|
S = [], f = 0;
|
|
28857
28859
|
var G;
|
|
28858
28860
|
switch (F) {
|
|
28859
28861
|
case "=":
|
|
28860
|
-
G = function(
|
|
28861
|
-
return
|
|
28862
|
+
G = function(Z) {
|
|
28863
|
+
return Z.getAttribute(D) == z;
|
|
28862
28864
|
};
|
|
28863
28865
|
break;
|
|
28864
28866
|
case "~":
|
|
28865
|
-
G = function(
|
|
28866
|
-
return
|
|
28867
|
+
G = function(Z) {
|
|
28868
|
+
return Z.getAttribute(D).match(new RegExp("\\b" + z + "\\b"));
|
|
28867
28869
|
};
|
|
28868
28870
|
break;
|
|
28869
28871
|
case "|":
|
|
28870
|
-
G = function(
|
|
28871
|
-
return
|
|
28872
|
+
G = function(Z) {
|
|
28873
|
+
return Z.getAttribute(D).match(new RegExp("^" + z + "-?"));
|
|
28872
28874
|
};
|
|
28873
28875
|
break;
|
|
28874
28876
|
case "^":
|
|
28875
|
-
G = function(
|
|
28876
|
-
return
|
|
28877
|
+
G = function(Z) {
|
|
28878
|
+
return Z.getAttribute(D).indexOf(z) === 0;
|
|
28877
28879
|
};
|
|
28878
28880
|
break;
|
|
28879
28881
|
case "$":
|
|
28880
|
-
G = function(
|
|
28881
|
-
return
|
|
28882
|
+
G = function(Z) {
|
|
28883
|
+
return Z.getAttribute(D).lastIndexOf(z) == Z.getAttribute(D).length - z.length;
|
|
28882
28884
|
};
|
|
28883
28885
|
break;
|
|
28884
28886
|
case "*":
|
|
28885
|
-
G = function(
|
|
28886
|
-
return
|
|
28887
|
+
G = function(Z) {
|
|
28888
|
+
return Z.getAttribute(D).indexOf(z) > -1;
|
|
28887
28889
|
};
|
|
28888
28890
|
break;
|
|
28889
28891
|
default:
|
|
28890
|
-
G = function(
|
|
28891
|
-
return
|
|
28892
|
+
G = function(Z) {
|
|
28893
|
+
return Z.getAttribute(D);
|
|
28892
28894
|
};
|
|
28893
28895
|
}
|
|
28894
|
-
for (S = [], f = 0, b = 0; b <
|
|
28895
|
-
G(
|
|
28896
|
+
for (S = [], f = 0, b = 0; b < m.length; b++)
|
|
28897
|
+
G(m[b]) && (S[f++] = m[b]);
|
|
28896
28898
|
continue;
|
|
28897
28899
|
}
|
|
28898
|
-
for (l = o,
|
|
28900
|
+
for (l = o, m = [], p = 0, b = 0; b < S.length; b++)
|
|
28899
28901
|
for (w = S[b].getElementsByTagName(l), g = 0; g < w.length; g++)
|
|
28900
|
-
p
|
|
28901
|
-
S =
|
|
28902
|
+
m[p++] = w[g];
|
|
28903
|
+
S = m;
|
|
28902
28904
|
}
|
|
28903
28905
|
return S;
|
|
28904
28906
|
}
|
|
@@ -29137,8 +29139,8 @@ function ds(n, e) {
|
|
|
29137
29139
|
persistencePrefix: o,
|
|
29138
29140
|
window: c
|
|
29139
29141
|
}));
|
|
29140
|
-
} catch (
|
|
29141
|
-
ne.error("Unexpected error when checking tracking opt-out status: " +
|
|
29142
|
+
} catch (m) {
|
|
29143
|
+
ne.error("Unexpected error when checking tracking opt-out status: " + m);
|
|
29142
29144
|
}
|
|
29143
29145
|
if (!t)
|
|
29144
29146
|
return n.apply(this, arguments);
|
|
@@ -29151,11 +29153,11 @@ var Sd = Ei("lock"), fo = function(n, e) {
|
|
|
29151
29153
|
};
|
|
29152
29154
|
fo.prototype.withLock = function(n, e, t) {
|
|
29153
29155
|
!t && typeof e != "function" && (t = e, e = null);
|
|
29154
|
-
var i = t || (/* @__PURE__ */ new Date()).getTime() + "|" + Math.random(), s = (/* @__PURE__ */ new Date()).getTime(), a = this.storageKey, o = this.pollIntervalMS, c = this.timeoutMS, l = this.storage,
|
|
29156
|
+
var i = t || (/* @__PURE__ */ new Date()).getTime() + "|" + Math.random(), s = (/* @__PURE__ */ new Date()).getTime(), a = this.storageKey, o = this.pollIntervalMS, c = this.timeoutMS, l = this.storage, m = a + ":X", p = a + ":Y", y = a + ":Z", b = function(M) {
|
|
29155
29157
|
e && e(M);
|
|
29156
29158
|
}, g = function(M) {
|
|
29157
29159
|
if ((/* @__PURE__ */ new Date()).getTime() - s > c) {
|
|
29158
|
-
Sd.error("Timeout waiting for mutex on " + a + "; clearing lock. [" + i + "]"), l.removeItem(y), l.removeItem(
|
|
29160
|
+
Sd.error("Timeout waiting for mutex on " + a + "; clearing lock. [" + i + "]"), l.removeItem(y), l.removeItem(p), S();
|
|
29159
29161
|
return;
|
|
29160
29162
|
}
|
|
29161
29163
|
setTimeout(function() {
|
|
@@ -29170,22 +29172,22 @@ fo.prototype.withLock = function(n, e, t) {
|
|
|
29170
29172
|
w(M, L);
|
|
29171
29173
|
});
|
|
29172
29174
|
}, f = function() {
|
|
29173
|
-
var M = l.getItem(
|
|
29175
|
+
var M = l.getItem(p);
|
|
29174
29176
|
if (M && M !== i)
|
|
29175
29177
|
return !1;
|
|
29176
|
-
if (l.setItem(
|
|
29178
|
+
if (l.setItem(p, i), l.getItem(p) === i)
|
|
29177
29179
|
return !0;
|
|
29178
29180
|
if (!Si(l, !0))
|
|
29179
29181
|
throw new Error("localStorage support dropped while acquiring lock");
|
|
29180
29182
|
return !1;
|
|
29181
29183
|
}, S = function() {
|
|
29182
|
-
l.setItem(
|
|
29183
|
-
if (l.getItem(
|
|
29184
|
+
l.setItem(m, i), w(f, function() {
|
|
29185
|
+
if (l.getItem(m) === i) {
|
|
29184
29186
|
A();
|
|
29185
29187
|
return;
|
|
29186
29188
|
}
|
|
29187
29189
|
g(function() {
|
|
29188
|
-
if (l.getItem(
|
|
29190
|
+
if (l.getItem(p) !== i) {
|
|
29189
29191
|
S();
|
|
29190
29192
|
return;
|
|
29191
29193
|
}
|
|
@@ -29199,7 +29201,7 @@ fo.prototype.withLock = function(n, e, t) {
|
|
|
29199
29201
|
try {
|
|
29200
29202
|
n();
|
|
29201
29203
|
} finally {
|
|
29202
|
-
l.removeItem(y), l.getItem(
|
|
29204
|
+
l.removeItem(y), l.getItem(p) === i && l.removeItem(p), l.getItem(m) === i && l.removeItem(m);
|
|
29203
29205
|
}
|
|
29204
29206
|
};
|
|
29205
29207
|
try {
|
|
@@ -29378,39 +29380,39 @@ tn.prototype.flush = function(n) {
|
|
|
29378
29380
|
}
|
|
29379
29381
|
n = n || {};
|
|
29380
29382
|
var e = this.libConfig.batch_request_timeout_ms, t = (/* @__PURE__ */ new Date()).getTime(), i = this.batchSize, s = this.queue.fillBatch(i), a = s.length === i, o = [], c = {};
|
|
29381
|
-
if (v.each(s, function(
|
|
29382
|
-
var y =
|
|
29383
|
-
if (this.beforeSendHook && !
|
|
29383
|
+
if (v.each(s, function(p) {
|
|
29384
|
+
var y = p.payload;
|
|
29385
|
+
if (this.beforeSendHook && !p.orphaned && (y = this.beforeSendHook(y)), y) {
|
|
29384
29386
|
y.event && y.properties && (y.properties = v.extend(
|
|
29385
29387
|
{},
|
|
29386
29388
|
y.properties,
|
|
29387
29389
|
{ mp_sent_by_lib_version: wn.LIB_VERSION }
|
|
29388
29390
|
));
|
|
29389
|
-
var b = !0, g =
|
|
29391
|
+
var b = !0, g = p.id;
|
|
29390
29392
|
g ? (this.itemIdsSentSuccessfully[g] || 0) > 5 && (this.reportError("[dupe] item ID sent too many times, not sending", {
|
|
29391
|
-
item:
|
|
29393
|
+
item: p,
|
|
29392
29394
|
batchSize: s.length,
|
|
29393
29395
|
timesSent: this.itemIdsSentSuccessfully[g]
|
|
29394
|
-
}), b = !1) : this.reportError("[dupe] found item with no ID", { item:
|
|
29396
|
+
}), b = !1) : this.reportError("[dupe] found item with no ID", { item: p }), b && o.push(y);
|
|
29395
29397
|
}
|
|
29396
|
-
c[
|
|
29398
|
+
c[p.id] = y;
|
|
29397
29399
|
}, this), o.length < 1) {
|
|
29398
29400
|
this.resetFlush();
|
|
29399
29401
|
return;
|
|
29400
29402
|
}
|
|
29401
29403
|
this.requestInProgress = !0;
|
|
29402
|
-
var l = v.bind(function(
|
|
29404
|
+
var l = v.bind(function(p) {
|
|
29403
29405
|
this.requestInProgress = !1;
|
|
29404
29406
|
try {
|
|
29405
29407
|
var y = !1;
|
|
29406
29408
|
if (n.unloading)
|
|
29407
29409
|
this.queue.updatePayloads(c);
|
|
29408
|
-
else if (v.isObject(
|
|
29410
|
+
else if (v.isObject(p) && p.error === "timeout" && (/* @__PURE__ */ new Date()).getTime() - t >= e)
|
|
29409
29411
|
this.reportError("Network timeout; retrying"), this.flush();
|
|
29410
|
-
else if (v.isObject(
|
|
29412
|
+
else if (v.isObject(p) && (p.httpStatusCode >= 500 || p.httpStatusCode === 429 || p.httpStatusCode <= 0 && !vd() || p.error === "timeout")) {
|
|
29411
29413
|
var b = this.flushInterval * 2;
|
|
29412
|
-
|
|
29413
|
-
} else if (v.isObject(
|
|
29414
|
+
p.retryAfter && (b = parseInt(p.retryAfter, 10) * 1e3 || b), b = Math.min(kd, b), this.reportError("Error; retry in " + b + " ms"), this.scheduleFlush(b);
|
|
29415
|
+
} else if (v.isObject(p) && p.httpStatusCode === 413)
|
|
29414
29416
|
if (s.length > 1) {
|
|
29415
29417
|
var g = Math.max(1, Math.floor(i / 2));
|
|
29416
29418
|
this.batchSize = Math.min(this.batchSize, g, s.length - 1), this.reportError("413 response; reducing batch size to " + this.batchSize), this.resetFlush();
|
|
@@ -29436,7 +29438,7 @@ tn.prototype.flush = function(n) {
|
|
|
29436
29438
|
} catch (w) {
|
|
29437
29439
|
this.reportError("Error handling API response", w), this.resetFlush();
|
|
29438
29440
|
}
|
|
29439
|
-
}, this),
|
|
29441
|
+
}, this), m = {
|
|
29440
29442
|
method: "POST",
|
|
29441
29443
|
verbose: !0,
|
|
29442
29444
|
ignore_json_errors: !0,
|
|
@@ -29444,9 +29446,9 @@ tn.prototype.flush = function(n) {
|
|
|
29444
29446
|
timeout_ms: e
|
|
29445
29447
|
// eslint-disable-line camelcase
|
|
29446
29448
|
};
|
|
29447
|
-
n.unloading && (
|
|
29448
|
-
} catch (
|
|
29449
|
-
this.reportError("Error flushing request queue",
|
|
29449
|
+
n.unloading && (m.transport = "sendBeacon"), xt.log("MIXPANEL REQUEST:", o), this.sendRequest(o, m, l);
|
|
29450
|
+
} catch (p) {
|
|
29451
|
+
this.reportError("Error flushing request queue", p), this.resetFlush();
|
|
29450
29452
|
}
|
|
29451
29453
|
};
|
|
29452
29454
|
tn.prototype.reportError = function(n, e) {
|
|
@@ -29565,10 +29567,10 @@ sn.prototype._flushEvents = Rn(function(n, e, t) {
|
|
|
29565
29567
|
replay_id: s,
|
|
29566
29568
|
replay_length_ms: o,
|
|
29567
29569
|
replay_start_time: this.replayStartTime / 1e3
|
|
29568
|
-
}, l = v.JSONEncode(n),
|
|
29569
|
-
|
|
29570
|
-
var
|
|
29571
|
-
if (
|
|
29570
|
+
}, l = v.JSONEncode(n), m = this._mixpanel.get_property("$device_id");
|
|
29571
|
+
m && (c.$device_id = m);
|
|
29572
|
+
var p = this._mixpanel.get_property("$user_id");
|
|
29573
|
+
if (p && (c.$user_id = p), ua) {
|
|
29572
29574
|
var y = new Blob([l], { type: "application/json" }).stream(), b = y.pipeThrough(new ua("gzip"));
|
|
29573
29575
|
new Response(b).blob().then(v.bind(function(g) {
|
|
29574
29576
|
c.format = "gzip", this._sendRequest(s, c, g, t);
|
|
@@ -29605,8 +29607,8 @@ kn.prototype.track = function(n, e, t, i) {
|
|
|
29605
29607
|
}
|
|
29606
29608
|
return v.each(a, function(o) {
|
|
29607
29609
|
v.register_event(o, this.override_event, function(c) {
|
|
29608
|
-
var l = {},
|
|
29609
|
-
s.event_handler(c, this, l), window.setTimeout(s.track_callback(i,
|
|
29610
|
+
var l = {}, m = s.create_properties(t, this), p = s.mp.get_config("track_links_timeout");
|
|
29611
|
+
s.event_handler(c, this, l), window.setTimeout(s.track_callback(i, m, l, !0), p), s.mp.track(e, m, s.track_callback(i, m, l));
|
|
29610
29612
|
});
|
|
29611
29613
|
}, this), !0;
|
|
29612
29614
|
};
|
|
@@ -29851,10 +29853,10 @@ V.prototype._flush = function(n, e, t, i, s, a, o) {
|
|
|
29851
29853
|
}), this._flush_one_queue(Wn, this.increment, e), this._flush_one_queue(Qn, this.union, s);
|
|
29852
29854
|
var l = this._mixpanel.persistence.load_queue(un);
|
|
29853
29855
|
if (!v.isUndefined(l) && v.isArray(l) && l.length)
|
|
29854
|
-
for (var
|
|
29855
|
-
S === 0 && c._mixpanel.persistence._add_to_people_queue(un,
|
|
29856
|
+
for (var m, p = function(S, A) {
|
|
29857
|
+
S === 0 && c._mixpanel.persistence._add_to_people_queue(un, m), v.isUndefined(t) || t(S, A);
|
|
29856
29858
|
}, y = l.length - 1; y >= 0; y--)
|
|
29857
|
-
l = this._mixpanel.persistence.load_queue(un),
|
|
29859
|
+
l = this._mixpanel.persistence.load_queue(un), m = l.pop(), c._mixpanel.persistence.save(), v.isEmptyObject(m) || c.append(m, p);
|
|
29858
29860
|
var b = this._mixpanel.persistence.load_queue(Sn);
|
|
29859
29861
|
if (!v.isUndefined(b) && v.isArray(b) && b.length)
|
|
29860
29862
|
for (var g, w = function(S, A) {
|
|
@@ -29976,20 +29978,20 @@ Q.prototype.set_secure = function(n) {
|
|
|
29976
29978
|
n !== this.secure && (this.secure = !!n, this.remove(), this.save());
|
|
29977
29979
|
};
|
|
29978
29980
|
Q.prototype._add_to_people_queue = function(n, e) {
|
|
29979
|
-
var t = this._get_queue_key(n), i = e[n], s = this._get_or_create_queue(Hn), a = this._get_or_create_queue(ht), o = this._get_or_create_queue($e), c = this._get_or_create_queue(Wn), l = this._get_or_create_queue(Qn),
|
|
29981
|
+
var t = this._get_queue_key(n), i = e[n], s = this._get_or_create_queue(Hn), a = this._get_or_create_queue(ht), o = this._get_or_create_queue($e), c = this._get_or_create_queue(Wn), l = this._get_or_create_queue(Qn), m = this._get_or_create_queue(Sn, []), p = this._get_or_create_queue(un, []);
|
|
29980
29982
|
t === us ? (v.extend(s, i), this._pop_from_people_queue(Wn, i), this._pop_from_people_queue(Qn, i), this._pop_from_people_queue($e, i)) : t === hs ? (v.each(i, function(y, b) {
|
|
29981
29983
|
b in a || (a[b] = y);
|
|
29982
29984
|
}), this._pop_from_people_queue($e, i)) : t === ms ? v.each(i, function(y) {
|
|
29983
29985
|
v.each([s, a, c, l], function(b) {
|
|
29984
29986
|
y in b && delete b[y];
|
|
29985
|
-
}), v.each(
|
|
29987
|
+
}), v.each(p, function(b) {
|
|
29986
29988
|
y in b && delete b[y];
|
|
29987
29989
|
}), o[y] = !0;
|
|
29988
29990
|
}) : t === ps ? (v.each(i, function(y, b) {
|
|
29989
29991
|
b in s ? s[b] += y : (b in c || (c[b] = 0), c[b] += y);
|
|
29990
29992
|
}, this), this._pop_from_people_queue($e, i)) : t === fs ? (v.each(i, function(y, b) {
|
|
29991
29993
|
v.isArray(y) && (b in l || (l[b] = []), l[b] = l[b].concat(y));
|
|
29992
|
-
}), this._pop_from_people_queue($e, i)) : t === bs ? (
|
|
29994
|
+
}), this._pop_from_people_queue($e, i)) : t === bs ? (m.push(i), this._pop_from_people_queue(un, i)) : t === vs && (p.push(i), this._pop_from_people_queue($e, i)), ne.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"), ne.log(e), this.save();
|
|
29993
29995
|
};
|
|
29994
29996
|
Q.prototype._pop_from_people_queue = function(n, e) {
|
|
29995
29997
|
var t = this.props[this._get_queue_key(n)];
|
|
@@ -30033,7 +30035,7 @@ Q.prototype.remove_event_timer = function(n) {
|
|
|
30033
30035
|
};
|
|
30034
30036
|
var gs, Co = function(n, e) {
|
|
30035
30037
|
throw new Error(n + " not available in this build.");
|
|
30036
|
-
},
|
|
30038
|
+
}, De, wo = 0, _d = 1, Ed = function(n) {
|
|
30037
30039
|
return n;
|
|
30038
30040
|
}, Pt = function() {
|
|
30039
30041
|
}, Qe = "mixpanel", So = "base64", Pd = "json", ys = "$device:", lt = U.XMLHttpRequest && "withCredentials" in new XMLHttpRequest(), ko = !lt && dn.indexOf("MSIE") === -1 && dn.indexOf("Mozilla") === -1, Li = null;
|
|
@@ -30107,7 +30109,7 @@ var Ao = {
|
|
|
30107
30109
|
recorder_src: "https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"
|
|
30108
30110
|
}, Mo = !1, x = function() {
|
|
30109
30111
|
}, es = function(n, e, t) {
|
|
30110
|
-
var i, s = t === Qe ?
|
|
30112
|
+
var i, s = t === Qe ? De : De[t];
|
|
30111
30113
|
if (s && gs === wo)
|
|
30112
30114
|
i = s;
|
|
30113
30115
|
else {
|
|
@@ -30119,8 +30121,8 @@ var Ao = {
|
|
|
30119
30121
|
}
|
|
30120
30122
|
if (i._cached_groups = {}, i._init(n, e, t), i.people = new V(), i.people._init(i), !i.get_config("skip_first_touch_marketing")) {
|
|
30121
30123
|
var a = v.info.campaignParams(null), o = {}, c = !1;
|
|
30122
|
-
v.each(a, function(l,
|
|
30123
|
-
o["initial_" +
|
|
30124
|
+
v.each(a, function(l, m) {
|
|
30125
|
+
o["initial_" + m] = l, l && (c = !0);
|
|
30124
30126
|
}), c && i.people.set_once(o);
|
|
30125
30127
|
}
|
|
30126
30128
|
return wn.DEBUG = wn.DEBUG || i.get_config("debug"), !v.isUndefined(s) && v.isArray(s) && (i._execute_array.call(i.people, s.people), i._execute_array(s)), i;
|
|
@@ -30135,7 +30137,7 @@ x.prototype.init = function(n, e, t) {
|
|
|
30135
30137
|
return;
|
|
30136
30138
|
}
|
|
30137
30139
|
var i = es(n, e, t);
|
|
30138
|
-
return
|
|
30140
|
+
return De[t] = i, i._loaded(), i;
|
|
30139
30141
|
};
|
|
30140
30142
|
x.prototype._init = function(n, e, t) {
|
|
30141
30143
|
e = e || {}, this.__loaded = !0, this.config = {};
|
|
@@ -30272,9 +30274,9 @@ x.prototype._send_request = function(n, e, t, i) {
|
|
|
30272
30274
|
verbose: this.get_config("verbose")
|
|
30273
30275
|
}, o = null;
|
|
30274
30276
|
!i && (v.isFunction(t) || typeof t == "string") && (i = t, t = null), t = v.extend(a, t || {}), lt || (t.method = "GET");
|
|
30275
|
-
var c = t.method === "POST", l = Li && c && t.transport.toLowerCase() === "sendbeacon",
|
|
30276
|
-
e.verbose && (
|
|
30277
|
-
var
|
|
30277
|
+
var c = t.method === "POST", l = Li && c && t.transport.toLowerCase() === "sendbeacon", m = t.verbose;
|
|
30278
|
+
e.verbose && (m = !0), this.get_config("test") && (e.test = 1), m && (e.verbose = 1), this.get_config("img") && (e.img = 1), lt || (i ? e.callback = i : (m || this.get_config("test")) && (e.callback = "(function(){})")), e.ip = this.get_config("ip") ? 1 : 0, e._ = (/* @__PURE__ */ new Date()).getTime().toString(), c && (o = "data=" + encodeURIComponent(e.data), delete e.data), n += "?" + v.HTTPBuildQuery(e);
|
|
30279
|
+
var p = this;
|
|
30278
30280
|
if ("img" in e) {
|
|
30279
30281
|
var y = ae.createElement("img");
|
|
30280
30282
|
y.src = n, ae.body.appendChild(y);
|
|
@@ -30282,12 +30284,12 @@ x.prototype._send_request = function(n, e, t, i) {
|
|
|
30282
30284
|
try {
|
|
30283
30285
|
s = Li(n, o);
|
|
30284
30286
|
} catch (A) {
|
|
30285
|
-
|
|
30287
|
+
p.report_error(A), s = !1;
|
|
30286
30288
|
}
|
|
30287
30289
|
try {
|
|
30288
30290
|
i && i(s ? 1 : 0);
|
|
30289
30291
|
} catch (A) {
|
|
30290
|
-
|
|
30292
|
+
p.report_error(A);
|
|
30291
30293
|
}
|
|
30292
30294
|
} else if (lt)
|
|
30293
30295
|
try {
|
|
@@ -30304,12 +30306,12 @@ x.prototype._send_request = function(n, e, t, i) {
|
|
|
30304
30306
|
if (b.readyState === 4)
|
|
30305
30307
|
if (b.status === 200) {
|
|
30306
30308
|
if (i)
|
|
30307
|
-
if (
|
|
30309
|
+
if (m) {
|
|
30308
30310
|
var A;
|
|
30309
30311
|
try {
|
|
30310
30312
|
A = v.JSONDecode(b.responseText);
|
|
30311
30313
|
} catch (E) {
|
|
30312
|
-
if (
|
|
30314
|
+
if (p.report_error(E), t.ignore_json_errors)
|
|
30313
30315
|
A = b.responseText;
|
|
30314
30316
|
else
|
|
30315
30317
|
return;
|
|
@@ -30319,8 +30321,8 @@ x.prototype._send_request = function(n, e, t, i) {
|
|
|
30319
30321
|
i(Number(b.responseText));
|
|
30320
30322
|
} else {
|
|
30321
30323
|
var M;
|
|
30322
|
-
if (b.timeout && !b.status && (/* @__PURE__ */ new Date()).getTime() - w >= b.timeout ? M = "timeout" : M = "Bad HTTP status: " + b.status + " " + b.statusText,
|
|
30323
|
-
if (
|
|
30324
|
+
if (b.timeout && !b.status && (/* @__PURE__ */ new Date()).getTime() - w >= b.timeout ? M = "timeout" : M = "Bad HTTP status: " + b.status + " " + b.statusText, p.report_error(M), i)
|
|
30325
|
+
if (m) {
|
|
30324
30326
|
var L = b.responseHeaders || {};
|
|
30325
30327
|
i({ status: 0, httpStatusCode: b.status, error: M, retryAfter: L["Retry-After"] });
|
|
30326
30328
|
} else
|
|
@@ -30328,7 +30330,7 @@ x.prototype._send_request = function(n, e, t, i) {
|
|
|
30328
30330
|
}
|
|
30329
30331
|
}, b.send(o);
|
|
30330
30332
|
} catch (A) {
|
|
30331
|
-
|
|
30333
|
+
p.report_error(A), s = !1;
|
|
30332
30334
|
}
|
|
30333
30335
|
else {
|
|
30334
30336
|
var f = ae.createElement("script");
|
|
@@ -30346,9 +30348,9 @@ x.prototype._execute_array = function(n) {
|
|
|
30346
30348
|
var a = function(o, c) {
|
|
30347
30349
|
v.each(o, function(l) {
|
|
30348
30350
|
if (v.isArray(l[0])) {
|
|
30349
|
-
var
|
|
30350
|
-
v.each(l, function(
|
|
30351
|
-
|
|
30351
|
+
var m = c;
|
|
30352
|
+
v.each(l, function(p) {
|
|
30353
|
+
m = m[p[0]].apply(m, p.slice(1));
|
|
30352
30354
|
});
|
|
30353
30355
|
} else
|
|
30354
30356
|
this[l[0]].apply(this, l.slice(1));
|
|
@@ -30430,8 +30432,8 @@ x.prototype._track_or_batch = function(n, e) {
|
|
|
30430
30432
|
this._prepare_callback(e, t)
|
|
30431
30433
|
)) : null;
|
|
30432
30434
|
}, this);
|
|
30433
|
-
return this._batch_requests && !a ? s.enqueue(t, function(
|
|
30434
|
-
|
|
30435
|
+
return this._batch_requests && !a ? s.enqueue(t, function(m) {
|
|
30436
|
+
m ? e(1, t) : l();
|
|
30435
30437
|
}) : c = l(), c && t;
|
|
30436
30438
|
};
|
|
30437
30439
|
x.prototype.track = Rn(function(n, e, t, i) {
|
|
@@ -30464,16 +30466,16 @@ x.prototype.track = Rn(function(n, e, t, i) {
|
|
|
30464
30466
|
this.get_session_recording_properties(),
|
|
30465
30467
|
e
|
|
30466
30468
|
);
|
|
30467
|
-
var
|
|
30468
|
-
v.isArray(
|
|
30469
|
+
var m = this.get_config("property_blacklist");
|
|
30470
|
+
v.isArray(m) ? v.each(m, function(b) {
|
|
30469
30471
|
delete e[b];
|
|
30470
|
-
}) : this.report_error("Invalid value for property_blacklist config: " +
|
|
30471
|
-
var
|
|
30472
|
+
}) : this.report_error("Invalid value for property_blacklist config: " + m);
|
|
30473
|
+
var p = {
|
|
30472
30474
|
event: n,
|
|
30473
30475
|
properties: e
|
|
30474
30476
|
}, y = this._track_or_batch({
|
|
30475
30477
|
type: "events",
|
|
30476
|
-
data:
|
|
30478
|
+
data: p,
|
|
30477
30479
|
endpoint: this.get_config("api_host") + "/" + this.get_config("api_routes").track,
|
|
30478
30480
|
batcher: this.request_batchers.events,
|
|
30479
30481
|
should_send_immediately: a,
|
|
@@ -30571,10 +30573,10 @@ x.prototype.identify = function(n, e, t, i, s, a, o, c) {
|
|
|
30571
30573
|
this.register({ $user_id: n });
|
|
30572
30574
|
}
|
|
30573
30575
|
if (!this.get_property("$device_id")) {
|
|
30574
|
-
var
|
|
30576
|
+
var m = l;
|
|
30575
30577
|
this.register_once({
|
|
30576
30578
|
$had_persisted_distinct_id: !0,
|
|
30577
|
-
$device_id:
|
|
30579
|
+
$device_id: m
|
|
30578
30580
|
}, "");
|
|
30579
30581
|
}
|
|
30580
30582
|
n !== l && n !== this.get_property(Mi) && (this.unregister(Mi), this.register({ distinct_id: n })), this._flags.identify_called = !0, this.people._flush(e, t, i, s, a, o, c), n !== l && this.track("$identify", {
|
|
@@ -30751,14 +30753,14 @@ Q.prototype.get_cross_subdomain = Q.prototype.get_cross_subdomain;
|
|
|
30751
30753
|
Q.prototype.clear = Q.prototype.clear;
|
|
30752
30754
|
var rt = {}, Dd = function() {
|
|
30753
30755
|
v.each(rt, function(n, e) {
|
|
30754
|
-
e !== Qe && (
|
|
30755
|
-
}),
|
|
30756
|
+
e !== Qe && (De[e] = n);
|
|
30757
|
+
}), De._ = v;
|
|
30756
30758
|
}, Bd = function() {
|
|
30757
|
-
|
|
30759
|
+
De.init = function(n, e, t) {
|
|
30758
30760
|
if (t)
|
|
30759
|
-
return
|
|
30760
|
-
var i =
|
|
30761
|
-
rt[Qe] ? i = rt[Qe] : n && (i = es(n, e, Qe), i._loaded(), rt[Qe] = i),
|
|
30761
|
+
return De[t] || (De[t] = rt[t] = es(n, e, t), De[t]._loaded()), De[t];
|
|
30762
|
+
var i = De;
|
|
30763
|
+
rt[Qe] ? i = rt[Qe] : n && (i = es(n, e, Qe), i._loaded(), rt[Qe] = i), De = i, gs === _d && (U[Qe] = De), Dd();
|
|
30762
30764
|
};
|
|
30763
30765
|
}, Hd = function() {
|
|
30764
30766
|
function n() {
|
|
@@ -30789,7 +30791,7 @@ var rt = {}, Dd = function() {
|
|
|
30789
30791
|
v.register_event(U, "load", n, !0);
|
|
30790
30792
|
};
|
|
30791
30793
|
function Rd(n) {
|
|
30792
|
-
return Co = n, gs = wo,
|
|
30794
|
+
return Co = n, gs = wo, De = new x(), Bd(), De.init(), Hd(), De;
|
|
30793
30795
|
}
|
|
30794
30796
|
function Nd(n, e) {
|
|
30795
30797
|
e();
|
|
@@ -30845,7 +30847,7 @@ class Lo {
|
|
|
30845
30847
|
_.track("redirect_to_merchant", {
|
|
30846
30848
|
payment_method: this.paymentMethod,
|
|
30847
30849
|
status: (a = this.paymentResponse) == null ? void 0 : a.status
|
|
30848
|
-
}),
|
|
30850
|
+
}), Be(
|
|
30849
30851
|
this.paymentResponse,
|
|
30850
30852
|
this.paymentResponseHeaders,
|
|
30851
30853
|
this.callBackUrl
|
|
@@ -30937,32 +30939,32 @@ class Vd {
|
|
|
30937
30939
|
async verifyCardPayment(e, t, i, s) {
|
|
30938
30940
|
let a = 0, o = t, c = !0, l;
|
|
30939
30941
|
this.abortController && (l = this.abortController.signal);
|
|
30940
|
-
const
|
|
30942
|
+
const m = async () => {
|
|
30941
30943
|
if (this.timeLeft <= 0) {
|
|
30942
30944
|
c = !1, this.onAction(this.step.end);
|
|
30943
30945
|
return;
|
|
30944
30946
|
}
|
|
30945
30947
|
a += 1;
|
|
30946
30948
|
try {
|
|
30947
|
-
const
|
|
30949
|
+
const p = await en(
|
|
30948
30950
|
e,
|
|
30949
30951
|
this.ref,
|
|
30950
30952
|
l,
|
|
30951
30953
|
this.rdtCode,
|
|
30952
30954
|
this.url
|
|
30953
30955
|
);
|
|
30954
|
-
|
|
30956
|
+
p.data.status === "failed" && (c = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), this.setPaymentResponses(p.data, p.headers), _.track("verify_payment", {
|
|
30955
30957
|
payment_method: this.paymentMethod,
|
|
30956
30958
|
verification_status: "Failed"
|
|
30957
|
-
}), s(
|
|
30959
|
+
}), s(p)), p.data.status === "inProgress" && (c && (o = t * (a + 1), this.timer = setTimeout(m, o)), this.setPaymentResponses(p.data, p.headers)), (p.data.status === "success" || p.data.status === "successful") && (this.setPaymentResponses(p.data, p.headers), c = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), _.track("verify_payment", {
|
|
30958
30960
|
payment_method: this.paymentMethod,
|
|
30959
30961
|
verification_status: "Success"
|
|
30960
|
-
}), i(
|
|
30962
|
+
}), i(p));
|
|
30961
30963
|
} catch {
|
|
30962
|
-
c && (o = t * (a + 1), this.timer = setTimeout(
|
|
30964
|
+
c && (o = t * (a + 1), this.timer = setTimeout(m, o));
|
|
30963
30965
|
}
|
|
30964
30966
|
};
|
|
30965
|
-
|
|
30967
|
+
m();
|
|
30966
30968
|
}
|
|
30967
30969
|
redirectTo(e, t, i) {
|
|
30968
30970
|
const s = t.get("spf-redirect-url");
|
|
@@ -31347,12 +31349,12 @@ class xo {
|
|
|
31347
31349
|
e == null || e.addEventListener("click", () => this.closeCallback());
|
|
31348
31350
|
const t = this.container.querySelectorAll(
|
|
31349
31351
|
"#test-card-tabs .tab-btn"
|
|
31350
|
-
), i = this.container.querySelector("#no-auth-text"), s = this.container.querySelectorAll(".number-text"), a = this.container.querySelectorAll(".expiry-text"), o = this.container.querySelector("#address-text"), c = this.container.querySelector("#city-text"), l = this.container.querySelector("#state-text"),
|
|
31352
|
+
), i = this.container.querySelector("#no-auth-text"), s = this.container.querySelectorAll(".number-text"), a = this.container.querySelectorAll(".expiry-text"), o = this.container.querySelector("#address-text"), c = this.container.querySelector("#city-text"), l = this.container.querySelector("#state-text"), m = this.container.querySelector("#country-text"), p = this.container.querySelector("#zip-text");
|
|
31351
31353
|
i && (i.innerHTML = Xe["no-auth"]), s.forEach((g) => {
|
|
31352
31354
|
g.innerHTML = Xe.number;
|
|
31353
31355
|
}), a.forEach((g) => {
|
|
31354
31356
|
g.innerHTML = Xe.expiry;
|
|
31355
|
-
}), o && (o.innerHTML = Xe.address), c && (c.innerHTML = Xe.city), l && (l.innerHTML = Xe.state),
|
|
31357
|
+
}), o && (o.innerHTML = Xe.address), c && (c.innerHTML = Xe.city), l && (l.innerHTML = Xe.state), m && (m.innerHTML = Xe.country), p && (p.innerHTML = Xe.zip);
|
|
31356
31358
|
const y = this.container.querySelectorAll(".tab-content");
|
|
31357
31359
|
t.forEach((g) => {
|
|
31358
31360
|
g.addEventListener("click", () => {
|
|
@@ -31462,8 +31464,8 @@ class jd {
|
|
|
31462
31464
|
// switchTab,
|
|
31463
31465
|
token: c,
|
|
31464
31466
|
currency: l,
|
|
31465
|
-
rdtCode:
|
|
31466
|
-
url:
|
|
31467
|
+
rdtCode: m,
|
|
31468
|
+
url: p,
|
|
31467
31469
|
reference: y,
|
|
31468
31470
|
onSuccess: b,
|
|
31469
31471
|
callBackUrl: g,
|
|
@@ -31525,7 +31527,7 @@ class jd {
|
|
|
31525
31527
|
d(this, "otpMessage");
|
|
31526
31528
|
d(this, "rawAvsData");
|
|
31527
31529
|
d(this, "translatedAvsData");
|
|
31528
|
-
this.currency = l, this.onSuccess = b || (() => null), this.keys = D, this.testcardIsVisible = F, this.metadata = w, this.container = i, this.encryption = a, this.token = c, this.customer = s, this.planId = o, this.merchantDetails = {}, this.amount = e, this.totalAmount = t, this.rdtCode =
|
|
31530
|
+
this.currency = l, this.onSuccess = b || (() => null), this.keys = D, this.testcardIsVisible = F, this.metadata = w, this.container = i, this.encryption = a, this.token = c, this.customer = s, this.planId = o, this.merchantDetails = {}, this.amount = e, this.totalAmount = t, this.rdtCode = m, this.url = p, this.reference = y, this.callBackUrl = g, this.metadata = w, this.localCurrency = f, this._currentStep = 1, this.activeRef = "", this.contents = this.container.querySelector(
|
|
31529
31531
|
"#payment-content-view"
|
|
31530
31532
|
), this.cardResponse = {}, this.cardResponseHeader = {}, this.hidePaymentMethods = S, this.showPaymentMethods = A, this.onClose = M, this.restartTransactionProcess = L, this.retryingPayment = E, this.isMaxRetriesReached = !1, this.isCancelledPlan = !1, this.errorText = "", this.otpMessage = "", this.renderCardContent(), this.rawAvsData = {
|
|
31531
31533
|
"billing-address": "Billing address",
|
|
@@ -31564,7 +31566,7 @@ class jd {
|
|
|
31564
31566
|
H()
|
|
31565
31567
|
);
|
|
31566
31568
|
else if (e) {
|
|
31567
|
-
const t = await
|
|
31569
|
+
const t = await q(
|
|
31568
31570
|
e,
|
|
31569
31571
|
H()
|
|
31570
31572
|
);
|
|
@@ -31590,7 +31592,7 @@ class jd {
|
|
|
31590
31592
|
i && s && (i.classList.remove("hidden"), s.classList.add("hidden"));
|
|
31591
31593
|
const o = ft();
|
|
31592
31594
|
(() => {
|
|
31593
|
-
var l,
|
|
31595
|
+
var l, m, p, y, b, g, w;
|
|
31594
31596
|
if (this.retryingPayment) {
|
|
31595
31597
|
const f = {
|
|
31596
31598
|
channel: "card",
|
|
@@ -31605,7 +31607,7 @@ class jd {
|
|
|
31605
31607
|
);
|
|
31606
31608
|
} else {
|
|
31607
31609
|
const f = {
|
|
31608
|
-
amount: ((y = (
|
|
31610
|
+
amount: ((y = (p = (m = (l = this.merchantPlanDetail) == null ? void 0 : l.plan) == null ? void 0 : m.trial) == null ? void 0 : p.pricingList[0]) == null ? void 0 : y.amount) ?? this.amount,
|
|
31609
31611
|
// send trial amount if available
|
|
31610
31612
|
channel: "card",
|
|
31611
31613
|
applyDiscount: !0,
|
|
@@ -31635,10 +31637,10 @@ class jd {
|
|
|
31635
31637
|
this.url
|
|
31636
31638
|
);
|
|
31637
31639
|
}
|
|
31638
|
-
})().then(async ({ data: l, headers:
|
|
31639
|
-
var
|
|
31640
|
+
})().then(async ({ data: l, headers: m }) => {
|
|
31641
|
+
var p, y, b, g, w, f, S, A;
|
|
31640
31642
|
if (l.providerMessage) {
|
|
31641
|
-
const M = await
|
|
31643
|
+
const M = await q(
|
|
31642
31644
|
l.providerMessage,
|
|
31643
31645
|
H()
|
|
31644
31646
|
);
|
|
@@ -31649,18 +31651,18 @@ class jd {
|
|
|
31649
31651
|
payment_method: "Card",
|
|
31650
31652
|
verification_status: "Failed",
|
|
31651
31653
|
authentication_type: "None"
|
|
31652
|
-
}), this.cardResponse = l, this.cardResponseHeader =
|
|
31654
|
+
}), this.cardResponse = l, this.cardResponseHeader = m, l.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
31653
31655
|
P["payment-failed"]
|
|
31654
31656
|
), this.warningScreen.hideReportIssue();
|
|
31655
31657
|
else if (["success", "successful"].includes(l.status))
|
|
31656
|
-
this.currentStep = 5, this.cardResponse = l, this.cardResponseHeader =
|
|
31658
|
+
this.currentStep = 5, this.cardResponse = l, this.cardResponseHeader = m, _.track("verify_payment", {
|
|
31657
31659
|
payment_method: "Card",
|
|
31658
31660
|
verification_status: "Success",
|
|
31659
31661
|
authentication_type: "PIN"
|
|
31660
|
-
}), this.redirectTo(l,
|
|
31662
|
+
}), this.redirectTo(l, m, "success");
|
|
31661
31663
|
else if (!["success", "successful"].includes(l.status) && l.status !== "failed")
|
|
31662
|
-
if (this.cardResponse = l, this.cardResponseHeader =
|
|
31663
|
-
if (this.activeRef = l.reference, ((
|
|
31664
|
+
if (this.cardResponse = l, this.cardResponseHeader = m, l != null && l.authorization) {
|
|
31665
|
+
if (this.activeRef = l.reference, ((p = l == null ? void 0 : l.authorization) == null ? void 0 : p.mode) === "pin") {
|
|
31664
31666
|
this.currentStep = 2;
|
|
31665
31667
|
return;
|
|
31666
31668
|
}
|
|
@@ -31704,11 +31706,11 @@ class jd {
|
|
|
31704
31706
|
);
|
|
31705
31707
|
else {
|
|
31706
31708
|
if (l.message) {
|
|
31707
|
-
const
|
|
31709
|
+
const m = await q(
|
|
31708
31710
|
l.message,
|
|
31709
31711
|
H()
|
|
31710
31712
|
);
|
|
31711
|
-
this.errorText =
|
|
31713
|
+
this.errorText = m, l.code === "7137" ? (this.isCancelledPlan = !0, this.currentStep = 4, _.track("cancelled_plan", {
|
|
31712
31714
|
payment_method: "Card"
|
|
31713
31715
|
}), this.warningScreen.setPaymentError(
|
|
31714
31716
|
this.errorText,
|
|
@@ -31749,9 +31751,9 @@ class jd {
|
|
|
31749
31751
|
this.rdtCode,
|
|
31750
31752
|
this.url
|
|
31751
31753
|
).then(async ({ data: o, headers: c }) => {
|
|
31752
|
-
var l,
|
|
31754
|
+
var l, m, p, y, b, g, w, f, S, A;
|
|
31753
31755
|
if (o.providerMessage) {
|
|
31754
|
-
const M = await
|
|
31756
|
+
const M = await q(
|
|
31755
31757
|
o.providerMessage,
|
|
31756
31758
|
H()
|
|
31757
31759
|
);
|
|
@@ -31773,7 +31775,7 @@ class jd {
|
|
|
31773
31775
|
});
|
|
31774
31776
|
else {
|
|
31775
31777
|
if (((l = o == null ? void 0 : o.authorization) == null ? void 0 : l.mode) === "3DS") {
|
|
31776
|
-
(
|
|
31778
|
+
(m = o == null ? void 0 : o.authorization) != null && m.redirectUrl && this.redirectTo3DS((p = o == null ? void 0 : o.authorization) == null ? void 0 : p.redirectUrl), (y = o == null ? void 0 : o.authorization) != null && y.embeddedHtml && this.redirectToPreciumDoc((b = o == null ? void 0 : o.authorization) == null ? void 0 : b.embeddedHtml), (g = o == null ? void 0 : o.authorization) != null && g.jwt && ((w = o == null ? void 0 : o.authorization) != null && w.acsUrl) && ((f = o == null ? void 0 : o.authorization) != null && f.md) && (this.cardResponse = o, this.currentStep = 11);
|
|
31777
31779
|
return;
|
|
31778
31780
|
}
|
|
31779
31781
|
if (((S = o == null ? void 0 : o.authorization) == null ? void 0 : S.mode) === "otp") {
|
|
@@ -31801,7 +31803,7 @@ class jd {
|
|
|
31801
31803
|
verification_status: "Null",
|
|
31802
31804
|
authentication_type: "PIN"
|
|
31803
31805
|
}), o.message) {
|
|
31804
|
-
const c = await
|
|
31806
|
+
const c = await q(
|
|
31805
31807
|
o.message,
|
|
31806
31808
|
H()
|
|
31807
31809
|
);
|
|
@@ -31839,9 +31841,9 @@ class jd {
|
|
|
31839
31841
|
this.rdtCode,
|
|
31840
31842
|
this.url
|
|
31841
31843
|
).then(async ({ data: c, headers: l }) => {
|
|
31842
|
-
var
|
|
31844
|
+
var m, p, y, b, g, w, f;
|
|
31843
31845
|
if (c.providerMessage) {
|
|
31844
|
-
const S = await
|
|
31846
|
+
const S = await q(
|
|
31845
31847
|
c.providerMessage,
|
|
31846
31848
|
H()
|
|
31847
31849
|
);
|
|
@@ -31862,11 +31864,11 @@ class jd {
|
|
|
31862
31864
|
authentication_type: "AVS"
|
|
31863
31865
|
}));
|
|
31864
31866
|
else {
|
|
31865
|
-
if (((
|
|
31867
|
+
if (((m = c == null ? void 0 : c.authorization) == null ? void 0 : m.mode) === "pin") {
|
|
31866
31868
|
this.currentStep = 2;
|
|
31867
31869
|
return;
|
|
31868
31870
|
}
|
|
31869
|
-
if (((
|
|
31871
|
+
if (((p = c == null ? void 0 : c.authorization) == null ? void 0 : p.mode) === "3DS") {
|
|
31870
31872
|
(y = c == null ? void 0 : c.authorization) != null && y.redirectUrl && this.redirectTo3DS((b = c == null ? void 0 : c.authorization) == null ? void 0 : b.redirectUrl), (g = c == null ? void 0 : c.authorization) != null && g.embeddedHtml && this.redirectToPreciumDoc((w = c == null ? void 0 : c.authorization) == null ? void 0 : w.embeddedHtml);
|
|
31871
31873
|
return;
|
|
31872
31874
|
}
|
|
@@ -31884,7 +31886,7 @@ class jd {
|
|
|
31884
31886
|
verification_status: "Null",
|
|
31885
31887
|
authentication_type: "AVS"
|
|
31886
31888
|
}), c.message) {
|
|
31887
|
-
const l = await
|
|
31889
|
+
const l = await q(
|
|
31888
31890
|
c.message,
|
|
31889
31891
|
H()
|
|
31890
31892
|
);
|
|
@@ -31916,9 +31918,9 @@ class jd {
|
|
|
31916
31918
|
this.rdtCode,
|
|
31917
31919
|
this.url
|
|
31918
31920
|
).then(async ({ data: a, headers: o }) => {
|
|
31919
|
-
var c, l,
|
|
31921
|
+
var c, l, m, p, y, b, g;
|
|
31920
31922
|
if (a.providerMessage) {
|
|
31921
|
-
const w = await
|
|
31923
|
+
const w = await q(
|
|
31922
31924
|
a.providerMessage,
|
|
31923
31925
|
H()
|
|
31924
31926
|
);
|
|
@@ -31944,7 +31946,7 @@ class jd {
|
|
|
31944
31946
|
return;
|
|
31945
31947
|
}
|
|
31946
31948
|
if (((l = a == null ? void 0 : a.authorization) == null ? void 0 : l.mode) === "3DS") {
|
|
31947
|
-
(
|
|
31949
|
+
(m = a == null ? void 0 : a.authorization) != null && m.redirectUrl && this.redirectTo3DS((p = a == null ? void 0 : a.authorization) == null ? void 0 : p.redirectUrl), (y = a == null ? void 0 : a.authorization) != null && y.embeddedHtml && this.redirectToPreciumDoc((b = a == null ? void 0 : a.authorization) == null ? void 0 : b.embeddedHtml);
|
|
31948
31950
|
return;
|
|
31949
31951
|
}
|
|
31950
31952
|
if (((g = a == null ? void 0 : a.authorization) == null ? void 0 : g.mode) === "avs") {
|
|
@@ -31966,7 +31968,7 @@ class jd {
|
|
|
31966
31968
|
verification_status: "Failed",
|
|
31967
31969
|
authentication_type: "PIN+0TP"
|
|
31968
31970
|
}), a != null && a.message) {
|
|
31969
|
-
const o = await
|
|
31971
|
+
const o = await q(
|
|
31970
31972
|
a.message,
|
|
31971
31973
|
H()
|
|
31972
31974
|
);
|
|
@@ -32000,7 +32002,7 @@ class jd {
|
|
|
32000
32002
|
},
|
|
32001
32003
|
async ({ data: s }) => {
|
|
32002
32004
|
if (s.providerMessage) {
|
|
32003
|
-
const a = await
|
|
32005
|
+
const a = await q(
|
|
32004
32006
|
s.providerMessage,
|
|
32005
32007
|
H()
|
|
32006
32008
|
);
|
|
@@ -32036,7 +32038,7 @@ class jd {
|
|
|
32036
32038
|
},
|
|
32037
32039
|
async ({ data: c }) => {
|
|
32038
32040
|
if (c.providerMessage) {
|
|
32039
|
-
const l = await
|
|
32041
|
+
const l = await q(
|
|
32040
32042
|
c.providerMessage,
|
|
32041
32043
|
H()
|
|
32042
32044
|
);
|
|
@@ -32101,7 +32103,7 @@ class jd {
|
|
|
32101
32103
|
authentication_type: "3DS"
|
|
32102
32104
|
}), e.then(async ({ data: t, headers: i }) => {
|
|
32103
32105
|
if (this.cardResponse = t, this.cardResponseHeader = i, t.providerMessage) {
|
|
32104
|
-
const s = await
|
|
32106
|
+
const s = await q(
|
|
32105
32107
|
t.providerMessage,
|
|
32106
32108
|
H()
|
|
32107
32109
|
);
|
|
@@ -32130,7 +32132,7 @@ class jd {
|
|
|
32130
32132
|
authentication_type: "3DS",
|
|
32131
32133
|
verification_status: "Null"
|
|
32132
32134
|
}), t.message) {
|
|
32133
|
-
const i = await
|
|
32135
|
+
const i = await q(
|
|
32134
32136
|
t.message,
|
|
32135
32137
|
H()
|
|
32136
32138
|
);
|
|
@@ -32154,7 +32156,7 @@ class jd {
|
|
|
32154
32156
|
);
|
|
32155
32157
|
}
|
|
32156
32158
|
renderCardContent(e) {
|
|
32157
|
-
var a, o, c, l,
|
|
32159
|
+
var a, o, c, l, m, p, y, b, g, w, f;
|
|
32158
32160
|
e && (this.merchantPlanDetail = e);
|
|
32159
32161
|
const t = document.getElementById(
|
|
32160
32162
|
"test-container"
|
|
@@ -32200,7 +32202,7 @@ class jd {
|
|
|
32200
32202
|
// show trial amount if available
|
|
32201
32203
|
currency: this.currency,
|
|
32202
32204
|
localCurrency: this.localCurrency,
|
|
32203
|
-
rate: (
|
|
32205
|
+
rate: (m = this.merchantPlanDetail) == null ? void 0 : m.rate.rate
|
|
32204
32206
|
}), this.testcardIsVisible && (hi(t), i.classList.remove("text-tone-100", "font-bold")), this.successScreen.renderComponent();
|
|
32205
32207
|
break;
|
|
32206
32208
|
case 6:
|
|
@@ -32219,7 +32221,7 @@ class jd {
|
|
|
32219
32221
|
onAction: async () => {
|
|
32220
32222
|
var A, M;
|
|
32221
32223
|
if ((A = this.cardResponse) != null && A.providerMessage) {
|
|
32222
|
-
const L = await
|
|
32224
|
+
const L = await q(
|
|
32223
32225
|
(M = this.cardResponse) == null ? void 0 : M.providerMessage,
|
|
32224
32226
|
H()
|
|
32225
32227
|
);
|
|
@@ -32281,7 +32283,7 @@ class jd {
|
|
|
32281
32283
|
this.isw3dsForm = new jl({
|
|
32282
32284
|
container: this.contents,
|
|
32283
32285
|
threeDSecureDetails: {
|
|
32284
|
-
jwt: ((y = (
|
|
32286
|
+
jwt: ((y = (p = this.cardResponse) == null ? void 0 : p.authorization) == null ? void 0 : y.jwt) || "",
|
|
32285
32287
|
md: ((g = (b = this.cardResponse) == null ? void 0 : b.authorization) == null ? void 0 : g.md) || "",
|
|
32286
32288
|
acsUrl: ((f = (w = this.cardResponse) == null ? void 0 : w.authorization) == null ? void 0 : f.acsUrl) || ""
|
|
32287
32289
|
},
|
|
@@ -32313,12 +32315,12 @@ class jd {
|
|
|
32313
32315
|
}, 1800) : i === "success" && this.onSuccess(e);
|
|
32314
32316
|
}
|
|
32315
32317
|
displayButtonText(e) {
|
|
32316
|
-
var i, s, a, o, c, l,
|
|
32318
|
+
var i, s, a, o, c, l, m, p, y, b;
|
|
32317
32319
|
const t = this.container.querySelector(
|
|
32318
32320
|
"#details-form-button-text"
|
|
32319
32321
|
);
|
|
32320
32322
|
if (t) {
|
|
32321
|
-
const g = (s = (i = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : i.plan) == null ? void 0 : s.trial, w = (l = (c = (o = (a = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : a.plan) == null ? void 0 : o.trial) == null ? void 0 : c.pricingList[0]) == null ? void 0 : l.amount, f = In(this.currency, this.localCurrency), S = f === "USD" ? (
|
|
32323
|
+
const g = (s = (i = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : i.plan) == null ? void 0 : s.trial, w = (l = (c = (o = (a = this == null ? void 0 : this.merchantPlanDetail) == null ? void 0 : a.plan) == null ? void 0 : o.trial) == null ? void 0 : c.pricingList[0]) == null ? void 0 : l.amount, f = In(this.currency, this.localCurrency), S = f === "USD" ? (p = (m = this.merchantPlanDetail) == null ? void 0 : m.rate) == null ? void 0 : p.from : f;
|
|
32322
32324
|
e ? t.textContent = e : t.textContent = `${pe["continue-to"]} ${S} ${_e(
|
|
32323
32325
|
g && w != null ? w : this.totalAmount !== this.amount ? this.totalAmount : (this.amount || 0) * (this.currency === "USD" ? (b = (y = this.merchantPlanDetail) == null ? void 0 : y.rate) == null ? void 0 : b.rate : 1),
|
|
32324
32326
|
2
|
|
@@ -32331,8 +32333,10 @@ const qd = `<div data-section="transfer" data-section="transfer">
|
|
|
32331
32333
|
<img src="" alt="loader gif" />
|
|
32332
32334
|
</div>
|
|
32333
32335
|
<div id="details-content" class="grid gap-5">
|
|
32334
|
-
<h5 class="text-sm text-tone-100 text-center
|
|
32335
|
-
|
|
32336
|
+
<h5 class="text-sm text-tone-100 text-center md:w-4/5 mx-auto">
|
|
32337
|
+
<span id="transfer-header-1" class="font-medium" data-translate="transfer-header-1"></span>
|
|
32338
|
+
<span class="font-bold" id="transfer-header-2" data-translate="transfer-header-2"></span>
|
|
32339
|
+
<span id="transfer-header-3" class="font-medium" data-translate="transfer-header-3"></span>
|
|
32336
32340
|
</h5>
|
|
32337
32341
|
<div class="border border-grey-100 rounded-lg text-black px-6 py-5 grid gap-4">
|
|
32338
32342
|
<div class="text-sm grid grid-cols-[1fr_auto] gap-3">
|
|
@@ -32402,7 +32406,7 @@ const qd = `<div data-section="transfer" data-section="transfer">
|
|
|
32402
32406
|
<p class="font-semibold" id="account-name"></p>
|
|
32403
32407
|
</div>
|
|
32404
32408
|
</div>
|
|
32405
|
-
|
|
32409
|
+
|
|
32406
32410
|
<div class="mt-3">
|
|
32407
32411
|
<button type="button" id="transfer-button" data-translate="made-transfer" class="details-form-button"></button>
|
|
32408
32412
|
</div>
|
|
@@ -32456,8 +32460,8 @@ var To = { exports: {} };
|
|
|
32456
32460
|
}, s.t = function(a, o) {
|
|
32457
32461
|
if (o & 1 && (a = s(a)), o & 8 || o & 4 && typeof a == "object" && a && a.__esModule) return a;
|
|
32458
32462
|
var c = /* @__PURE__ */ Object.create(null);
|
|
32459
|
-
if (s.r(c), Object.defineProperty(c, "default", { enumerable: !0, value: a }), o & 2 && typeof a != "string") for (var l in a) s.d(c, l, (function(
|
|
32460
|
-
return a[
|
|
32463
|
+
if (s.r(c), Object.defineProperty(c, "default", { enumerable: !0, value: a }), o & 2 && typeof a != "string") for (var l in a) s.d(c, l, (function(m) {
|
|
32464
|
+
return a[m];
|
|
32461
32465
|
}).bind(null, l));
|
|
32462
32466
|
return c;
|
|
32463
32467
|
}, s.n = function(a) {
|
|
@@ -32523,9 +32527,9 @@ var To = { exports: {} };
|
|
|
32523
32527
|
}, f.prototype.decode = function(S) {
|
|
32524
32528
|
if (S.length === 0)
|
|
32525
32529
|
return new Uint8Array(0);
|
|
32526
|
-
for (var A = this._getPaddingLength(S), M = S.length - A, L = new Uint8Array(this.maxDecodedLength(M)), E = 0, D = 0, F = 0,
|
|
32527
|
-
|
|
32528
|
-
if (D < M - 1 && (
|
|
32530
|
+
for (var A = this._getPaddingLength(S), M = S.length - A, L = new Uint8Array(this.maxDecodedLength(M)), E = 0, D = 0, F = 0, z = 0, G = 0, Z = 0, ce = 0; D < M - 4; D += 4)
|
|
32531
|
+
z = this._decodeChar(S.charCodeAt(D + 0)), G = this._decodeChar(S.charCodeAt(D + 1)), Z = this._decodeChar(S.charCodeAt(D + 2)), ce = this._decodeChar(S.charCodeAt(D + 3)), L[E++] = z << 2 | G >>> 4, L[E++] = G << 4 | Z >>> 2, L[E++] = Z << 6 | ce, F |= z & o, F |= G & o, F |= Z & o, F |= ce & o;
|
|
32532
|
+
if (D < M - 1 && (z = this._decodeChar(S.charCodeAt(D)), G = this._decodeChar(S.charCodeAt(D + 1)), L[E++] = z << 2 | G >>> 4, F |= z & o, F |= G & o), D < M - 2 && (Z = this._decodeChar(S.charCodeAt(D + 2)), L[E++] = G << 4 | Z >>> 2, F |= Z & o), D < M - 3 && (ce = this._decodeChar(S.charCodeAt(D + 3)), L[E++] = Z << 6 | ce, F |= ce & o), F !== 0)
|
|
32529
32533
|
throw new Error("Base64Coder: incorrect characters for decoding");
|
|
32530
32534
|
return L;
|
|
32531
32535
|
}, f.prototype._encodeByte = function(S) {
|
|
@@ -32548,14 +32552,14 @@ var To = { exports: {} };
|
|
|
32548
32552
|
);
|
|
32549
32553
|
i.Coder = c;
|
|
32550
32554
|
var l = new c();
|
|
32551
|
-
function
|
|
32555
|
+
function m(f) {
|
|
32552
32556
|
return l.encode(f);
|
|
32553
32557
|
}
|
|
32554
|
-
i.encode =
|
|
32555
|
-
function
|
|
32558
|
+
i.encode = m;
|
|
32559
|
+
function p(f) {
|
|
32556
32560
|
return l.decode(f);
|
|
32557
32561
|
}
|
|
32558
|
-
i.decode =
|
|
32562
|
+
i.decode = p;
|
|
32559
32563
|
var y = (
|
|
32560
32564
|
/** @class */
|
|
32561
32565
|
function(f) {
|
|
@@ -32594,17 +32598,17 @@ var To = { exports: {} };
|
|
|
32594
32598
|
function(t, i, s) {
|
|
32595
32599
|
Object.defineProperty(i, "__esModule", { value: !0 });
|
|
32596
32600
|
var a = "utf8: invalid string", o = "utf8: invalid source encoding";
|
|
32597
|
-
function c(
|
|
32598
|
-
for (var y = new Uint8Array(l(
|
|
32599
|
-
var w =
|
|
32600
|
-
w < 128 ? y[b++] = w : w < 2048 ? (y[b++] = 192 | w >> 6, y[b++] = 128 | w & 63) : w < 55296 ? (y[b++] = 224 | w >> 12, y[b++] = 128 | w >> 6 & 63, y[b++] = 128 | w & 63) : (g++, w = (w & 1023) << 10, w |=
|
|
32601
|
+
function c(p) {
|
|
32602
|
+
for (var y = new Uint8Array(l(p)), b = 0, g = 0; g < p.length; g++) {
|
|
32603
|
+
var w = p.charCodeAt(g);
|
|
32604
|
+
w < 128 ? y[b++] = w : w < 2048 ? (y[b++] = 192 | w >> 6, y[b++] = 128 | w & 63) : w < 55296 ? (y[b++] = 224 | w >> 12, y[b++] = 128 | w >> 6 & 63, y[b++] = 128 | w & 63) : (g++, w = (w & 1023) << 10, w |= p.charCodeAt(g) & 1023, w += 65536, y[b++] = 240 | w >> 18, y[b++] = 128 | w >> 12 & 63, y[b++] = 128 | w >> 6 & 63, y[b++] = 128 | w & 63);
|
|
32601
32605
|
}
|
|
32602
32606
|
return y;
|
|
32603
32607
|
}
|
|
32604
32608
|
i.encode = c;
|
|
32605
|
-
function l(
|
|
32606
|
-
for (var y = 0, b = 0; b <
|
|
32607
|
-
var g =
|
|
32609
|
+
function l(p) {
|
|
32610
|
+
for (var y = 0, b = 0; b < p.length; b++) {
|
|
32611
|
+
var g = p.charCodeAt(b);
|
|
32608
32612
|
if (g < 128)
|
|
32609
32613
|
y += 1;
|
|
32610
32614
|
else if (g < 2048)
|
|
@@ -32612,7 +32616,7 @@ var To = { exports: {} };
|
|
|
32612
32616
|
else if (g < 55296)
|
|
32613
32617
|
y += 3;
|
|
32614
32618
|
else if (g <= 57343) {
|
|
32615
|
-
if (b >=
|
|
32619
|
+
if (b >= p.length - 1)
|
|
32616
32620
|
throw new Error(a);
|
|
32617
32621
|
b++, y += 4;
|
|
32618
32622
|
} else
|
|
@@ -32621,29 +32625,29 @@ var To = { exports: {} };
|
|
|
32621
32625
|
return y;
|
|
32622
32626
|
}
|
|
32623
32627
|
i.encodedLength = l;
|
|
32624
|
-
function p
|
|
32625
|
-
for (var y = [], b = 0; b <
|
|
32626
|
-
var g =
|
|
32628
|
+
function m(p) {
|
|
32629
|
+
for (var y = [], b = 0; b < p.length; b++) {
|
|
32630
|
+
var g = p[b];
|
|
32627
32631
|
if (g & 128) {
|
|
32628
32632
|
var w = void 0;
|
|
32629
32633
|
if (g < 224) {
|
|
32630
|
-
if (b >=
|
|
32634
|
+
if (b >= p.length)
|
|
32631
32635
|
throw new Error(o);
|
|
32632
|
-
var f =
|
|
32636
|
+
var f = p[++b];
|
|
32633
32637
|
if ((f & 192) !== 128)
|
|
32634
32638
|
throw new Error(o);
|
|
32635
32639
|
g = (g & 31) << 6 | f & 63, w = 128;
|
|
32636
32640
|
} else if (g < 240) {
|
|
32637
|
-
if (b >=
|
|
32641
|
+
if (b >= p.length - 1)
|
|
32638
32642
|
throw new Error(o);
|
|
32639
|
-
var f =
|
|
32643
|
+
var f = p[++b], S = p[++b];
|
|
32640
32644
|
if ((f & 192) !== 128 || (S & 192) !== 128)
|
|
32641
32645
|
throw new Error(o);
|
|
32642
32646
|
g = (g & 15) << 12 | (f & 63) << 6 | S & 63, w = 2048;
|
|
32643
32647
|
} else if (g < 248) {
|
|
32644
|
-
if (b >=
|
|
32648
|
+
if (b >= p.length - 2)
|
|
32645
32649
|
throw new Error(o);
|
|
32646
|
-
var f =
|
|
32650
|
+
var f = p[++b], S = p[++b], A = p[++b];
|
|
32647
32651
|
if ((f & 192) !== 128 || (S & 192) !== 128 || (A & 192) !== 128)
|
|
32648
32652
|
throw new Error(o);
|
|
32649
32653
|
g = (g & 15) << 18 | (f & 63) << 12 | (S & 63) << 6 | A & 63, w = 65536;
|
|
@@ -32661,7 +32665,7 @@ var To = { exports: {} };
|
|
|
32661
32665
|
}
|
|
32662
32666
|
return y.join("");
|
|
32663
32667
|
}
|
|
32664
|
-
i.decode =
|
|
32668
|
+
i.decode = m;
|
|
32665
32669
|
},
|
|
32666
32670
|
/* 2 */
|
|
32667
32671
|
/***/
|
|
@@ -32715,7 +32719,7 @@ var To = { exports: {} };
|
|
|
32715
32719
|
cdn_https: "https://js.pusher.com",
|
|
32716
32720
|
dependency_suffix: ""
|
|
32717
32721
|
}, l = c;
|
|
32718
|
-
class
|
|
32722
|
+
class m {
|
|
32719
32723
|
constructor(r) {
|
|
32720
32724
|
this.options = r, this.receivers = r.receivers || o, this.loading = {};
|
|
32721
32725
|
}
|
|
@@ -32746,12 +32750,12 @@ var To = { exports: {} };
|
|
|
32746
32750
|
return this.getRoot(u) + "/" + r + this.options.suffix + ".js";
|
|
32747
32751
|
}
|
|
32748
32752
|
}
|
|
32749
|
-
var
|
|
32753
|
+
var p = new a("_pusher_dependencies", "Pusher.DependenciesReceivers"), y = new m({
|
|
32750
32754
|
cdn_http: l.cdn_http,
|
|
32751
32755
|
cdn_https: l.cdn_https,
|
|
32752
32756
|
version: l.VERSION,
|
|
32753
32757
|
suffix: l.dependency_suffix,
|
|
32754
|
-
receivers:
|
|
32758
|
+
receivers: p
|
|
32755
32759
|
});
|
|
32756
32760
|
const b = {
|
|
32757
32761
|
baseUrl: "https://pusher.com",
|
|
@@ -32818,7 +32822,7 @@ var To = { exports: {} };
|
|
|
32818
32822
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32819
32823
|
}
|
|
32820
32824
|
}
|
|
32821
|
-
class
|
|
32825
|
+
class z extends Error {
|
|
32822
32826
|
constructor(r) {
|
|
32823
32827
|
super(r), Object.setPrototypeOf(this, new.target.prototype);
|
|
32824
32828
|
}
|
|
@@ -32865,17 +32869,17 @@ var To = { exports: {} };
|
|
|
32865
32869
|
function xe(h) {
|
|
32866
32870
|
return hn(Ke(h));
|
|
32867
32871
|
}
|
|
32868
|
-
var j = String.fromCharCode,
|
|
32872
|
+
var j = String.fromCharCode, He = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ve = function(h) {
|
|
32869
32873
|
var r = h.charCodeAt(0);
|
|
32870
32874
|
return r < 128 ? h : r < 2048 ? j(192 | r >>> 6) + j(128 | r & 63) : j(224 | r >>> 12 & 15) + j(128 | r >>> 6 & 63) + j(128 | r & 63);
|
|
32871
32875
|
}, Ke = function(h) {
|
|
32872
32876
|
return h.replace(/[^\x00-\x7F]/g, ve);
|
|
32873
32877
|
}, Se = function(h) {
|
|
32874
32878
|
var r = [0, 2, 1][h.length % 3], u = h.charCodeAt(0) << 16 | (h.length > 1 ? h.charCodeAt(1) : 0) << 8 | (h.length > 2 ? h.charCodeAt(2) : 0), C = [
|
|
32875
|
-
|
|
32876
|
-
|
|
32877
|
-
r >= 2 ? "=" :
|
|
32878
|
-
r >= 1 ? "=" :
|
|
32879
|
+
He.charAt(u >>> 18),
|
|
32880
|
+
He.charAt(u >>> 12 & 63),
|
|
32881
|
+
r >= 2 ? "=" : He.charAt(u >>> 6 & 63),
|
|
32882
|
+
r >= 1 ? "=" : He.charAt(u & 63)
|
|
32879
32883
|
];
|
|
32880
32884
|
return C.join("");
|
|
32881
32885
|
}, hn = window.btoa || function(h) {
|
|
@@ -34601,7 +34605,7 @@ var To = { exports: {} };
|
|
|
34601
34605
|
nextAuthCallbackID: 1,
|
|
34602
34606
|
auth_callbacks: {},
|
|
34603
34607
|
ScriptReceivers: o,
|
|
34604
|
-
DependenciesReceivers:
|
|
34608
|
+
DependenciesReceivers: p,
|
|
34605
34609
|
getDefaultStrategy: sr,
|
|
34606
34610
|
Transports: Bo,
|
|
34607
34611
|
transportConnectionInitializer: ar,
|
|
@@ -34746,7 +34750,7 @@ var To = { exports: {} };
|
|
|
34746
34750
|
if (this.isSupported()) {
|
|
34747
34751
|
if (this.priority < r)
|
|
34748
34752
|
return Es(new L(), u);
|
|
34749
|
-
} else return Es(new
|
|
34753
|
+
} else return Es(new z(), u);
|
|
34750
34754
|
var C = !1, k = this.transport.createConnection(this.name, this.priority, this.options.key, this.options), T = null, I = function() {
|
|
34751
34755
|
k.unbind("initialized", I), k.connect();
|
|
34752
34756
|
}, B = function() {
|
|
@@ -34795,7 +34799,7 @@ var To = { exports: {} };
|
|
|
34795
34799
|
},
|
|
34796
34800
|
connect: function(h, r) {
|
|
34797
34801
|
var u = he.defer(function() {
|
|
34798
|
-
r(new
|
|
34802
|
+
r(new z());
|
|
34799
34803
|
});
|
|
34800
34804
|
return {
|
|
34801
34805
|
abort: function() {
|
|
@@ -35136,14 +35140,12 @@ class pa {
|
|
|
35136
35140
|
this.container = e.container, this.onAction = e.onAction, this.onFail = e.onFail, this.initialTime = 1800, this.timeLeft = this.initialTime, this.timerId = null;
|
|
35137
35141
|
}
|
|
35138
35142
|
attachListener() {
|
|
35139
|
-
const e = this.container.querySelector("#transfer-acn"), t = this.container.querySelector("#transfer-bank"), i = this.container.querySelector("#copy-acn"), s = this.container.querySelector("#acn-tooltip"), a = this.container.querySelector("#transfer-amount"), o = this.container.querySelector("#copy-amount"), c = this.container.querySelector("#amount-tooltip"), l = this.container.querySelector("#transfer-button"), p = this.container.querySelector(
|
|
35140
|
-
"#transfer-header-text"
|
|
35141
|
-
), m = this.container.querySelector("#bank-name-text"), y = this.container.querySelector("#beneficiary-text"), b = this.container.querySelector("#amount-text"), g = this.container.querySelectorAll(".copy-text"), w = this.container.querySelector(
|
|
35143
|
+
const e = this.container.querySelector("#transfer-acn"), t = this.container.querySelector("#transfer-bank"), i = this.container.querySelector("#copy-acn"), s = this.container.querySelector("#acn-tooltip"), a = this.container.querySelector("#transfer-amount"), o = this.container.querySelector("#copy-amount"), c = this.container.querySelector("#amount-tooltip"), l = this.container.querySelector("#transfer-button"), m = this.container.querySelector("#transfer-header-1"), p = this.container.querySelector("#transfer-header-2"), y = this.container.querySelector("#transfer-header-3"), b = this.container.querySelector("#bank-name-text"), g = this.container.querySelector("#beneficiary-text"), w = this.container.querySelector("#amount-text"), f = this.container.querySelectorAll(".copy-text"), S = this.container.querySelector(
|
|
35142
35144
|
"#account-number-text"
|
|
35143
|
-
),
|
|
35144
|
-
p && (p.innerHTML =
|
|
35145
|
-
|
|
35146
|
-
}),
|
|
35145
|
+
), A = this.container.querySelector("#expiration-text");
|
|
35146
|
+
m && (m.innerHTML = Ie["transfer-header-1"]), p && (p.innerHTML = Ie["transfer-header-2"]), y && (y.innerHTML = Ie["transfer-header-3"]), w && (w.innerHTML = W.amount), f.forEach((M) => {
|
|
35147
|
+
M.innerHTML = P.copy;
|
|
35148
|
+
}), S && (S.innerHTML = Ie["account-number"]), b && (b.innerHTML = Ie["bank-name"]), g && (g.innerHTML = Ie.beneficiary), A && (A.innerHTML = Ie["expiration-text"]), i && e && i.addEventListener("click", () => {
|
|
35147
35149
|
s && (t && _.track("copy_transferBank", {
|
|
35148
35150
|
payment_method: "Transfer",
|
|
35149
35151
|
payment_process: "Payment Started",
|
|
@@ -35158,7 +35160,7 @@ class pa {
|
|
|
35158
35160
|
a.innerHTML.split(" ")[1].replace(/,/g, ""),
|
|
35159
35161
|
c
|
|
35160
35162
|
));
|
|
35161
|
-
}), l && (l.innerHTML =
|
|
35163
|
+
}), l && (l.innerHTML = Ie["made-transfer"], l.addEventListener("click", () => {
|
|
35162
35164
|
this.onAction(5), _.track("initiate_payment_verification", {
|
|
35163
35165
|
payment_method: "Transfer"
|
|
35164
35166
|
});
|
|
@@ -35193,10 +35195,10 @@ class pa {
|
|
|
35193
35195
|
2
|
|
35194
35196
|
)}`), i && this.payment.bankDetails && (i.innerHTML = (f = this.payment.bankDetails) == null ? void 0 : f.bankName), s && this.payment.bankDetails && (s.innerHTML = (S = this.payment.bankDetails) == null ? void 0 : S.accountName), a && this.payment.bankDetails && (a.innerHTML = this.payment.bankDetails.accountNumber), o && (o.innerHTML = ct(this.initialTime)), this.startTimer("poll"), e.status === "inProgress") {
|
|
35195
35197
|
const A = "45654f3ce4c9512ea9a4", M = "us2";
|
|
35196
|
-
var
|
|
35198
|
+
var m = new Wd(A, {
|
|
35197
35199
|
cluster: M
|
|
35198
|
-
}),
|
|
35199
|
-
|
|
35200
|
+
}), p = m.subscribe(e.reference);
|
|
35201
|
+
p.bind("payment_status", (L) => {
|
|
35200
35202
|
L.status === "successful" ? (clearInterval(this.timerId || void 0), this.onAction(6), _.track("verify_payment", {
|
|
35201
35203
|
payment_method: "Transfer",
|
|
35202
35204
|
verification_status: "Success"
|
|
@@ -35324,18 +35326,18 @@ class Jd {
|
|
|
35324
35326
|
"#confirming-txn-status-end-text"
|
|
35325
35327
|
), i = this.container.querySelector(
|
|
35326
35328
|
"#account-details-text"
|
|
35327
|
-
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), c = this.container.querySelector("#beneficiary-text"), l = this.container.querySelector("#transfer-bank"),
|
|
35328
|
-
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), s && (s.innerHTML = P["please-wait-for"]), a && (a.innerHTML = P.minutes), o && (o.innerHTML =
|
|
35329
|
+
), s = this.container.querySelector("#please-wait-text"), a = this.container.querySelector("#minutes-text"), o = this.container.querySelector("#bankname-text"), c = this.container.querySelector("#beneficiary-text"), l = this.container.querySelector("#transfer-bank"), m = this.container.querySelector("#transfer-acn-pr"), p = this.container.querySelector("#copy-acn-pr"), y = this.container.querySelector("#acn-tooltip-pr");
|
|
35330
|
+
e && (e.innerHTML = P["confirming-txn-status"]), t && (t.innerHTML = P["few-minutes"]), s && (s.innerHTML = P["please-wait-for"]), a && (a.innerHTML = P.minutes), o && (o.innerHTML = Ie["bank-name"]), c && (c.innerHTML = Ie.beneficiary), i && (i.innerHTML = Ie["account-details"]);
|
|
35329
35331
|
const b = this.container.querySelector("#show-acn");
|
|
35330
35332
|
b && b.addEventListener("click", () => {
|
|
35331
35333
|
this.onAction(1), clearTimeout(this.timer);
|
|
35332
|
-
}),
|
|
35334
|
+
}), p && m && p.addEventListener("click", () => {
|
|
35333
35335
|
_.track("copy_transferBank", {
|
|
35334
35336
|
payment_method: "Transfer",
|
|
35335
35337
|
payment_process: "Payment Verification",
|
|
35336
|
-
account_number:
|
|
35338
|
+
account_number: m.innerHTML,
|
|
35337
35339
|
bank_name: l == null ? void 0 : l.innerHTML
|
|
35338
|
-
}), y && (y.innerHTML = P.copy, this.copyToClipboard(
|
|
35340
|
+
}), y && (y.innerHTML = P.copy, this.copyToClipboard(m.innerHTML, y));
|
|
35339
35341
|
}), this.initialTime = 300, this.timeLeft = this.initialTime;
|
|
35340
35342
|
const g = 3e4;
|
|
35341
35343
|
this.abortController = new AbortController(), setTimeout(() => {
|
|
@@ -35358,17 +35360,17 @@ class Jd {
|
|
|
35358
35360
|
}
|
|
35359
35361
|
s += 1;
|
|
35360
35362
|
try {
|
|
35361
|
-
const
|
|
35363
|
+
const m = await en(
|
|
35362
35364
|
e,
|
|
35363
35365
|
this.ref,
|
|
35364
35366
|
c,
|
|
35365
35367
|
this.rdtCode,
|
|
35366
35368
|
this.url
|
|
35367
35369
|
);
|
|
35368
|
-
|
|
35370
|
+
m.data.status === "inProgress" ? (o && (a = t * (s + 1), this.timer = setTimeout(l, a)), this.setPaymentResponses(m.data, m.headers)) : m.data.status === "successful" || m.data.status === "success" ? (this.setPaymentResponses(m.data, m.headers), o = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), _.track("verify_payment", {
|
|
35369
35371
|
payment_method: "Transfer",
|
|
35370
35372
|
verification_status: "Success"
|
|
35371
|
-
}), i(
|
|
35373
|
+
}), i(m)) : m.data.status === "failed" && (this.setPaymentResponses(m.data, m.headers), o = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), this.onAction(7, "Transfer failed"), _.track("verify_payment", {
|
|
35372
35374
|
payment_method: "Transfer",
|
|
35373
35375
|
verification_status: "Failed"
|
|
35374
35376
|
}));
|
|
@@ -35445,7 +35447,7 @@ class Xd {
|
|
|
35445
35447
|
}
|
|
35446
35448
|
attachListeners() {
|
|
35447
35449
|
const e = this.container.querySelector("#payment-warning-text"), t = this.container.querySelector("#payment-warning-desc");
|
|
35448
|
-
e && (e.innerHTML =
|
|
35450
|
+
e && (e.innerHTML = Ie["account-expired"]), t && (t.innerHTML = Ie["account-expired-desc"]);
|
|
35449
35451
|
}
|
|
35450
35452
|
renderComponent() {
|
|
35451
35453
|
this.container.innerHTML = this.render();
|
|
@@ -35464,8 +35466,8 @@ class $d {
|
|
|
35464
35466
|
token: o,
|
|
35465
35467
|
currency: c,
|
|
35466
35468
|
rdtCode: l,
|
|
35467
|
-
url:
|
|
35468
|
-
reference:
|
|
35469
|
+
url: m,
|
|
35470
|
+
reference: p,
|
|
35469
35471
|
callBackUrl: y,
|
|
35470
35472
|
metadata: b,
|
|
35471
35473
|
localCurrency: g,
|
|
@@ -35512,7 +35514,7 @@ class $d {
|
|
|
35512
35514
|
d(this, "errorText");
|
|
35513
35515
|
this.currency = c, this.container = s, this.contents = this.container.querySelector(
|
|
35514
35516
|
"#payment-content-view"
|
|
35515
|
-
), this.closeModal = i, this.token = o, this.customer = a, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url =
|
|
35517
|
+
), this.closeModal = i, this.token = o, this.customer = a, this.amount = e, this.totalAmount = t, this.rdtCode = l, this.url = m, this.reference = p, this._currentStep = 1, this.callBackUrl = y, this.metadata = b, this.localCurrency = g, this.disablePaymentMethods = w, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = f, this.hidePaymentMethods = S, this.retryingPayment = A, this.isMaxRetriesReached = !1, this.renderTransferContent(), this.paymentResponse = {}, this.activeRef = "", this.timerId = null, this.errorText = "", this.mainLoader = new Ae(this.contents), this.mainLoader.mountLoader("25dvh"), this.currentStep === 1 && (this.abortController = new AbortController(), this.createTransfer()), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
35516
35518
|
}
|
|
35517
35519
|
get currentStep() {
|
|
35518
35520
|
return this._currentStep;
|
|
@@ -35594,7 +35596,7 @@ class $d {
|
|
|
35594
35596
|
}
|
|
35595
35597
|
})().then(async ({ data: a, headers: o }) => {
|
|
35596
35598
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
35597
|
-
const c = await
|
|
35599
|
+
const c = await q(
|
|
35598
35600
|
a.providerMessage,
|
|
35599
35601
|
H()
|
|
35600
35602
|
);
|
|
@@ -35615,24 +35617,24 @@ class $d {
|
|
|
35615
35617
|
},
|
|
35616
35618
|
onFail: async (c, l) => {
|
|
35617
35619
|
if (this.currentStep = c, c === 7 && l) {
|
|
35618
|
-
const
|
|
35620
|
+
const m = await q(
|
|
35619
35621
|
l,
|
|
35620
35622
|
H()
|
|
35621
35623
|
);
|
|
35622
|
-
this.errorText =
|
|
35624
|
+
this.errorText = m, this.warningScreen.setPaymentError(this.errorText);
|
|
35623
35625
|
}
|
|
35624
35626
|
}
|
|
35625
35627
|
}), this.transferDetails.renderComponent(
|
|
35626
35628
|
this.paymentResponse || a
|
|
35627
35629
|
);
|
|
35628
35630
|
else if (a.providerMessage) {
|
|
35629
|
-
const c = await
|
|
35631
|
+
const c = await q(
|
|
35630
35632
|
a.providerMessage,
|
|
35631
35633
|
H()
|
|
35632
35634
|
);
|
|
35633
35635
|
this.errorText = c, this.currentStep = 7, this.warningScreen.setPaymentError(this.errorText);
|
|
35634
35636
|
} else {
|
|
35635
|
-
const c = await
|
|
35637
|
+
const c = await q(
|
|
35636
35638
|
"Error fetching bank details",
|
|
35637
35639
|
H()
|
|
35638
35640
|
);
|
|
@@ -35651,7 +35653,7 @@ class $d {
|
|
|
35651
35653
|
W["merchant-back"]
|
|
35652
35654
|
);
|
|
35653
35655
|
else if (a != null && a.message) {
|
|
35654
|
-
const o = await
|
|
35656
|
+
const o = await q(
|
|
35655
35657
|
a.message,
|
|
35656
35658
|
H()
|
|
35657
35659
|
);
|
|
@@ -35665,7 +35667,7 @@ class $d {
|
|
|
35665
35667
|
});
|
|
35666
35668
|
}
|
|
35667
35669
|
goBackToMerchant() {
|
|
35668
|
-
|
|
35670
|
+
Be(
|
|
35669
35671
|
this.paymentResponse,
|
|
35670
35672
|
this.paymentResponseHeaders,
|
|
35671
35673
|
this.callBackUrl
|
|
@@ -35687,7 +35689,7 @@ class $d {
|
|
|
35687
35689
|
},
|
|
35688
35690
|
onFail: async (s, a) => {
|
|
35689
35691
|
if (this.currentStep = s, s === 7 && a) {
|
|
35690
|
-
const o = await
|
|
35692
|
+
const o = await q(
|
|
35691
35693
|
a,
|
|
35692
35694
|
H()
|
|
35693
35695
|
);
|
|
@@ -35706,7 +35708,7 @@ class $d {
|
|
|
35706
35708
|
container: this.contents,
|
|
35707
35709
|
onAction: async (s, a) => {
|
|
35708
35710
|
if (this.currentStep = s, s === 7 && a) {
|
|
35709
|
-
const o = await
|
|
35711
|
+
const o = await q(
|
|
35710
35712
|
a,
|
|
35711
35713
|
H()
|
|
35712
35714
|
);
|
|
@@ -35763,7 +35765,7 @@ class $d {
|
|
|
35763
35765
|
onAction: async () => {
|
|
35764
35766
|
var s, a;
|
|
35765
35767
|
if (this.currentStep = 7, (s = this.paymentResponse) != null && s.providerMessage) {
|
|
35766
|
-
const o = await
|
|
35768
|
+
const o = await q(
|
|
35767
35769
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
35768
35770
|
H()
|
|
35769
35771
|
);
|
|
@@ -36244,9 +36246,9 @@ class su {
|
|
|
36244
36246
|
), o = this.container.querySelector("#bank-dial-code");
|
|
36245
36247
|
o && (o.innerHTML = ((s = t == null ? void 0 : t.ussd) == null ? void 0 : s.paymentCode) || "");
|
|
36246
36248
|
const c = this.container.querySelector("#bank-name-ussd");
|
|
36247
|
-
c && (c.innerHTML = this.selected.name), Array.from(a).forEach((
|
|
36248
|
-
var
|
|
36249
|
-
|
|
36249
|
+
c && (c.innerHTML = this.selected.name), Array.from(a).forEach((m) => {
|
|
36250
|
+
var p;
|
|
36251
|
+
m.innerHTML = ((p = t == null ? void 0 : t.ussd) == null ? void 0 : p.code) || "";
|
|
36250
36252
|
}), this.attachListener();
|
|
36251
36253
|
return;
|
|
36252
36254
|
} else if (t.providerMessage) {
|
|
@@ -36317,8 +36319,8 @@ class Eo {
|
|
|
36317
36319
|
currency: o,
|
|
36318
36320
|
customer: c,
|
|
36319
36321
|
reference: l,
|
|
36320
|
-
rdtCode:
|
|
36321
|
-
url:
|
|
36322
|
+
rdtCode: m,
|
|
36323
|
+
url: p,
|
|
36322
36324
|
// closeModal,
|
|
36323
36325
|
// switchTab,
|
|
36324
36326
|
callBackUrl: y,
|
|
@@ -36360,7 +36362,7 @@ class Eo {
|
|
|
36360
36362
|
d(this, "hidePaymentMethods");
|
|
36361
36363
|
d(this, "showPaymentMethods");
|
|
36362
36364
|
d(this, "disablePaymentMethods");
|
|
36363
|
-
this.onSuccess = t || (() => null), this.container = e, this.secret = i, this.amount = s, this.totalAmount = a, this.currency = o, this.reference = l, this.customer = c, this.rdtCode =
|
|
36365
|
+
this.onSuccess = t || (() => null), this.container = e, this.secret = i, this.amount = s, this.totalAmount = a, this.currency = o, this.reference = l, this.customer = c, this.rdtCode = m, this.url = p, this.callBackUrl = y, this.metadata = b, this.localCurrency = g, this.merchantDetails = {}, this.hidePaymentMethods = w, this.showPaymentMethods = f, this.disablePaymentMethods = S, this.contents = this.container.querySelector(
|
|
36364
36366
|
"#payment-content-view"
|
|
36365
36367
|
), this._currentStep = 1, this.paymentService = new _o({
|
|
36366
36368
|
token: this.secret,
|
|
@@ -36705,8 +36707,8 @@ class hu {
|
|
|
36705
36707
|
const e = this.container.querySelectorAll(".tab-button");
|
|
36706
36708
|
Array.from(e).forEach((a) => {
|
|
36707
36709
|
const o = a.dataset.name || "", c = a.querySelector(".tab-button-icon"), l = a.querySelector(".tab-button-label");
|
|
36708
|
-
c && (c.innerHTML = se[o].icon), l && (l.textContent = se[o].label), a.addEventListener("click", (
|
|
36709
|
-
|
|
36710
|
+
c && (c.innerHTML = se[o].icon), l && (l.textContent = se[o].label), a.addEventListener("click", (m) => {
|
|
36711
|
+
m.preventDefault(), this.onAction(o);
|
|
36710
36712
|
});
|
|
36711
36713
|
});
|
|
36712
36714
|
const i = this.container.querySelector("#close-btn");
|
|
@@ -36731,7 +36733,7 @@ class hu {
|
|
|
36731
36733
|
"#plan-name"
|
|
36732
36734
|
), l = this.container.querySelector(
|
|
36733
36735
|
"#plan-name-mob"
|
|
36734
|
-
),
|
|
36736
|
+
), m = this.container.querySelector("#payment-fees"), p = this.container.querySelector("#currency-cursor"), y = this.container.querySelector(
|
|
36735
36737
|
"#currency-cursor-mob"
|
|
36736
36738
|
), b = this.container.querySelector(
|
|
36737
36739
|
"#payment-rate-display"
|
|
@@ -36743,9 +36745,9 @@ class hu {
|
|
|
36743
36745
|
"#designated-rate-no-plan"
|
|
36744
36746
|
), A = this.container.querySelector("#source-rate"), M = this.container.querySelector("#source-rate-mob"), L = this.container.querySelector("#tax-rate"), E = this.container.querySelector("#tax-rate-mob"), D = this.container.querySelector("#tooltip-localCurrency"), F = this.container.querySelector(
|
|
36745
36747
|
"#tooltip-localCurrency-mob"
|
|
36746
|
-
),
|
|
36748
|
+
), z = this.container.querySelector(
|
|
36747
36749
|
"#select-payment-method-text"
|
|
36748
|
-
), G = this.container.querySelector("#amount-text"),
|
|
36750
|
+
), G = this.container.querySelector("#amount-text"), Z = this.container.querySelector("#what-is-this"), ce = this.container.querySelector("#reflect"), xe = this.container.querySelector("#please-note"), j = this.container.querySelector("#what-is-this-mob"), He = this.container.querySelector("#reflect-mob"), ve = this.container.querySelector("#please-note-mob"), Ke = this.container.querySelector("#to-pay-text"), Se = this.container.querySelector("#language-dropdown");
|
|
36749
36751
|
if (Se) {
|
|
36750
36752
|
const Je = this.currency === "USD" ? this.localCurrency : this.currency, Ln = (mn = is(
|
|
36751
36753
|
Je,
|
|
@@ -36767,7 +36769,7 @@ class hu {
|
|
|
36767
36769
|
}
|
|
36768
36770
|
});
|
|
36769
36771
|
}
|
|
36770
|
-
if (
|
|
36772
|
+
if (z && (z.innerHTML = W.select_payment_method_text), G && (G.innerHTML = `${W.amount}:`), Ke && (Ke.innerHTML = `${W["to-pay"]}:`), Z && (Z.innerHTML = P["what-is-this"]), ce && (ce.innerHTML = P["rate-reflect-note"]), xe && (xe.innerHTML = P["rate-please-note"]), j && (j.innerHTML = P["what-is-this"]), He && (He.innerHTML = P["rate-reflect-note"]), ve && (ve.innerHTML = P["rate-please-note"]), (Un = this.merchantDetail) != null && Un.merchantLogo ? t && t.setAttribute("src", (An = this.merchantDetail) == null ? void 0 : An.merchantLogo) : e && (t == null || t.remove(), e.innerHTML = `<div class="font-semibold text-tone-100 rounded-2xl w-8 h-8 bg-tone-10 container-center uppercase">${this.merchantDetail.merchantName[0]}</div>`), i && (i.innerHTML = this.email), s && (s.innerHTML = this.email), c) {
|
|
36771
36773
|
if ((pn = (Ge = this.merchantDetail) == null ? void 0 : Ge.plan) != null && pn.title) {
|
|
36772
36774
|
const Je = ((he = (Vn = this.merchantDetail) == null ? void 0 : Vn.plan) == null ? void 0 : he.title) || "";
|
|
36773
36775
|
c.textContent = li(Je);
|
|
@@ -36785,13 +36787,13 @@ class hu {
|
|
|
36785
36787
|
this.metadata.productName
|
|
36786
36788
|
));
|
|
36787
36789
|
}
|
|
36788
|
-
if (
|
|
36790
|
+
if (p && (this.currency === "USD" ? b && (b.innerHTML = `1 ${((te = (be = this.merchantDetail) == null ? void 0 : be.rate) == null ? void 0 : te.to) || "-"} = ${((qe = (fe = this.merchantDetail) == null ? void 0 : fe.rate) == null ? void 0 : qe.from) || "-"} ${_e(
|
|
36789
36791
|
((ee = this.merchantDetail.rate) == null ? void 0 : ee.rate) || 1,
|
|
36790
36792
|
2
|
|
36791
|
-
)} `) :
|
|
36793
|
+
)} `) : p.innerHTML = ""), y && (this.currency === "USD" ? g && (g.innerHTML = `1 ${((gt = (Mn = this.merchantDetail) == null ? void 0 : Mn.rate) == null ? void 0 : gt.to) || "-"} = ${((Rt = (Ht = this.merchantDetail) == null ? void 0 : Ht.rate) == null ? void 0 : Rt.from) || "-"} ${_e(
|
|
36792
36794
|
((Nt = this.merchantDetail.rate) == null ? void 0 : Nt.rate) || 1,
|
|
36793
36795
|
2
|
|
36794
|
-
)} `) : y.innerHTML = ""), (Fn = (Ot = this.merchantDetail) == null ? void 0 : Ot.plan) != null && Fn.title || (Ut = this.metadata) != null && Ut.productName ? w && (((Vt = (oe = this.merchantDetail) == null ? void 0 : oe.plan) == null ? void 0 : Vt.trial) ? (a == null || a.classList.remove("hidden"), w.innerHTML = `${this.currency} ${_e(this.amount, 2)}`) : (w.innerHTML = `${this.currency} ${_e(this.amount, 2)}`, a == null || a.classList.add("hidden"))) : (S && (S.innerHTML = `<span> ${this.currency} ${_e(this.amount, 2)} </span>`), c && l && (c.remove(), l == null || l.remove()), this.localCurrency ? w == null || w.remove() :
|
|
36796
|
+
)} `) : y.innerHTML = ""), (Fn = (Ot = this.merchantDetail) == null ? void 0 : Ot.plan) != null && Fn.title || (Ut = this.metadata) != null && Ut.productName ? w && (((Vt = (oe = this.merchantDetail) == null ? void 0 : oe.plan) == null ? void 0 : Vt.trial) ? (a == null || a.classList.remove("hidden"), w.innerHTML = `${this.currency} ${_e(this.amount, 2)}`) : (w.innerHTML = `${this.currency} ${_e(this.amount, 2)}`, a == null || a.classList.add("hidden"))) : (S && (S.innerHTML = `<span> ${this.currency} ${_e(this.amount, 2)} </span>`), c && l && (c.remove(), l == null || l.remove()), this.localCurrency ? w == null || w.remove() : m && m.remove()), f) {
|
|
36795
36797
|
const Je = (Kt = (Ft = this.merchantDetail) == null ? void 0 : Ft.plan) == null ? void 0 : Kt.trial, Ln = (zt = (qt = (jt = (Gt = this.merchantDetail) == null ? void 0 : Gt.plan) == null ? void 0 : jt.trial) == null ? void 0 : qt.pricingList[0]) == null ? void 0 : zt.amount;
|
|
36796
36798
|
Je && o ? (o.textContent = `${this.currency} ${_e(Ln, 2)}`, f.innerHTML = `${this.currency} ${_e(this.amount, 2)}`) : f.innerHTML = `${this.currency} ${_e(this.amount, 2)}`;
|
|
36797
36799
|
}
|
|
@@ -36829,14 +36831,14 @@ class hu {
|
|
|
36829
36831
|
const c = o.length % 2 === 0;
|
|
36830
36832
|
let l = '<div class="grid gap-2">';
|
|
36831
36833
|
if (c)
|
|
36832
|
-
l += '<div class="grid grid-cols-2 gap-2">', o.forEach((
|
|
36834
|
+
l += '<div class="grid grid-cols-2 gap-2">', o.forEach((m) => {
|
|
36833
36835
|
l += `
|
|
36834
|
-
<div key=${
|
|
36835
|
-
<button class="tab-button gap-2 group" data-name="${
|
|
36836
|
-
<div class="md:container-center lg:block">${
|
|
36836
|
+
<div key=${m.key}>
|
|
36837
|
+
<button class="tab-button gap-2 group" data-name="${m.key}">
|
|
36838
|
+
<div class="md:container-center lg:block">${m.icon}</div>
|
|
36837
36839
|
<div class="flex items-center gap-2">
|
|
36838
|
-
<span class="pm-label" data-translate=${
|
|
36839
|
-
${
|
|
36840
|
+
<span class="pm-label" data-translate=${m.translateKey}>${m.label} </span>
|
|
36841
|
+
${m.key === "card" ? ` <div class="bg-tone-100 rounded-[40px] h-[22px] text-xxs text-white align-center px-2"> ${i} </div>` : ""}
|
|
36840
36842
|
</div>
|
|
36841
36843
|
</button>
|
|
36842
36844
|
</div>
|
|
@@ -36855,14 +36857,14 @@ class hu {
|
|
|
36855
36857
|
</div>
|
|
36856
36858
|
`, o.length > 1) {
|
|
36857
36859
|
l += '<div class="grid grid-cols-2 gap-2">';
|
|
36858
|
-
for (let
|
|
36860
|
+
for (let m = 1; m < o.length; m++)
|
|
36859
36861
|
l += `
|
|
36860
36862
|
<div>
|
|
36861
|
-
<button class="tab-button gap-2 group" data-name="${o[
|
|
36862
|
-
<div class="md:container-center lg:block">${o[
|
|
36863
|
+
<button class="tab-button gap-2 group" data-name="${o[m].key}">
|
|
36864
|
+
<div class="md:container-center lg:block">${o[m].icon}</div>
|
|
36863
36865
|
<div class="flex items-center gap-2">
|
|
36864
|
-
<span class="pm-label" data-translate=${o[
|
|
36865
|
-
${o[
|
|
36866
|
+
<span class="pm-label" data-translate=${o[m].translateKey}>${o[m].label} </span>
|
|
36867
|
+
${o[m].key === "card" ? ` <div class="bg-tone-100 rounded-[40px] h-[22px] text-xxs text-white align-center px-2"> ${i} </div>` : ""}
|
|
36866
36868
|
</div>
|
|
36867
36869
|
</button>
|
|
36868
36870
|
</div>
|
|
@@ -36952,42 +36954,50 @@ class pu {
|
|
|
36952
36954
|
a,
|
|
36953
36955
|
({ data: o, headers: c }) => {
|
|
36954
36956
|
this.onAction(4), this.redirectTo(o, c, "success");
|
|
36955
|
-
},
|
|
36956
|
-
() => {
|
|
36957
|
-
this.onAction(5);
|
|
36958
36957
|
}
|
|
36958
|
+
// () => {
|
|
36959
|
+
// this.onAction(5);
|
|
36960
|
+
// },
|
|
36959
36961
|
);
|
|
36960
36962
|
}, 5e3), this.startTimer();
|
|
36961
36963
|
}
|
|
36962
|
-
async verifyMobileMoney(e, t, i
|
|
36963
|
-
let
|
|
36964
|
-
this.abortController && (
|
|
36965
|
-
const
|
|
36964
|
+
async verifyMobileMoney(e, t, i) {
|
|
36965
|
+
let s = 0, a = t, o = !0, c;
|
|
36966
|
+
this.abortController && (c = this.abortController.signal);
|
|
36967
|
+
const l = async () => {
|
|
36966
36968
|
if (this.timeLeft <= 0) {
|
|
36967
|
-
|
|
36969
|
+
o = !1, this.onAction(8);
|
|
36968
36970
|
return;
|
|
36969
36971
|
}
|
|
36970
|
-
|
|
36972
|
+
s += 1;
|
|
36971
36973
|
try {
|
|
36972
36974
|
const m = await en(
|
|
36973
36975
|
e,
|
|
36974
36976
|
this.ref,
|
|
36975
|
-
|
|
36977
|
+
c,
|
|
36976
36978
|
this.rdtCode,
|
|
36977
36979
|
this.url
|
|
36978
36980
|
);
|
|
36979
|
-
m.data.status === "failed"
|
|
36980
|
-
|
|
36981
|
-
|
|
36982
|
-
|
|
36981
|
+
if (m.data.status === "failed") {
|
|
36982
|
+
o = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), this.setPaymentResponses(m.data, m.headers), _.track("verify_payment", {
|
|
36983
|
+
payment_method: "Mobile Money",
|
|
36984
|
+
verification_status: "Failed"
|
|
36985
|
+
});
|
|
36986
|
+
const p = await q(
|
|
36987
|
+
m.data.providerMessage,
|
|
36988
|
+
H()
|
|
36989
|
+
);
|
|
36990
|
+
this.onAction(5, p);
|
|
36991
|
+
}
|
|
36992
|
+
m.data.status === "inProgress" && (o && (a = t * (s + 1), this.timer = setTimeout(l, a)), this.setPaymentResponses(m.data, m.headers)), (m.data.status === "success" || m.data.status === "successful") && (this.setPaymentResponses(m.data, m.headers), o = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), _.track("verify_payment", {
|
|
36983
36993
|
payment_method: "Mobile Money",
|
|
36984
36994
|
verification_status: "Success"
|
|
36985
36995
|
}), i(m));
|
|
36986
36996
|
} catch {
|
|
36987
|
-
|
|
36997
|
+
o && (a = t * (s + 1), this.timer = setTimeout(l, a));
|
|
36988
36998
|
}
|
|
36989
36999
|
};
|
|
36990
|
-
|
|
37000
|
+
l();
|
|
36991
37001
|
}
|
|
36992
37002
|
redirectTo(e, t, i) {
|
|
36993
37003
|
const s = t.get("spf-redirect-url");
|
|
@@ -37128,7 +37138,7 @@ class bu {
|
|
|
37128
37138
|
);
|
|
37129
37139
|
if (!e || !t || !s) return;
|
|
37130
37140
|
const c = this.localCurrency ? this.localCurrency : this.currency, l = _n.find(
|
|
37131
|
-
(
|
|
37141
|
+
(m) => m.name === (this.countryCode || c)
|
|
37132
37142
|
);
|
|
37133
37143
|
e.value.length > Number((l == null ? void 0 : l.length) || "9") ? (a && (a.classList.remove("border-tone-40"), a.classList.add("border-[#D62020]"), e.classList.remove("text-tone-100"), e.classList.add("text-[#D62020]")), o && (o.classList.remove("hidden"), o.classList.add("block"), o.innerHTML = Me["valid-number-message"])) : (a && (a.classList.remove("border-[#D62020]"), a.classList.add("border-tone-40"), e.classList.remove("text-[#D62020]"), e.classList.add("text-tone-100")), o && (o.classList.remove("block"), o.classList.add("hidden"))), e.value.length > 0 && e.value.length === Number((l == null ? void 0 : l.length) || "9") && t.value ? t.value === "orange" && (c === "XAF" || c === "XOF") ? i && i.value.length >= 4 && i.value.length <= 6 ? s.disabled = !1 : s.disabled = !0 : s.disabled = !1 : s.disabled = !0;
|
|
37134
37144
|
}
|
|
@@ -37139,8 +37149,8 @@ class bu {
|
|
|
37139
37149
|
"#network-search-input"
|
|
37140
37150
|
), a = this.container.querySelector("#otp-input"), o = this.container.querySelector(
|
|
37141
37151
|
".details-form-button"
|
|
37142
|
-
), c = this.container.querySelector("#header-text"), l = this.container.querySelector("#network-text"),
|
|
37143
|
-
c && (c.innerHTML = Me["header-text"]), l && (l.innerHTML = Me.network),
|
|
37152
|
+
), c = this.container.querySelector("#header-text"), l = this.container.querySelector("#network-text"), m = this.container.querySelector("#generate-otp-text"), p = this.container.querySelector("#certified-text");
|
|
37153
|
+
c && (c.innerHTML = Me["header-text"]), l && (l.innerHTML = Me.network), m && (m.innerHTML = Me["generate-otp"]), p && (p.innerHTML = Me.certified), a && a.setAttribute("placeholder", Me["enter-otp"]), o && (o.disabled = !0), i && s && (s.setAttribute(
|
|
37144
37154
|
"placeholder",
|
|
37145
37155
|
Me["select-network"]
|
|
37146
37156
|
), i.setAttribute(
|
|
@@ -37248,7 +37258,7 @@ class bu {
|
|
|
37248
37258
|
payment_method: "Mobile Money",
|
|
37249
37259
|
error: e.message || "Unknown error"
|
|
37250
37260
|
}), e.message) {
|
|
37251
|
-
const t = await
|
|
37261
|
+
const t = await q(
|
|
37252
37262
|
e.message,
|
|
37253
37263
|
H()
|
|
37254
37264
|
);
|
|
@@ -37395,7 +37405,7 @@ class Cu {
|
|
|
37395
37405
|
_.track("redirect_to_merchant", {
|
|
37396
37406
|
payment_method: this.paymentMethod,
|
|
37397
37407
|
status: (a = this.paymentResponse) == null ? void 0 : a.status
|
|
37398
|
-
}),
|
|
37408
|
+
}), Be(
|
|
37399
37409
|
this.paymentResponse,
|
|
37400
37410
|
this.paymentResponseHeaders,
|
|
37401
37411
|
this.callBackUrl
|
|
@@ -37423,8 +37433,8 @@ class wu {
|
|
|
37423
37433
|
rdtCode: o,
|
|
37424
37434
|
reference: c,
|
|
37425
37435
|
onSuccess: l,
|
|
37426
|
-
url:
|
|
37427
|
-
customer:
|
|
37436
|
+
url: m,
|
|
37437
|
+
customer: p,
|
|
37428
37438
|
amount: y,
|
|
37429
37439
|
totalAmount: b,
|
|
37430
37440
|
token: g,
|
|
@@ -37480,7 +37490,7 @@ class wu {
|
|
|
37480
37490
|
d(this, "otpMessage");
|
|
37481
37491
|
this.container = e, this.onSuccess = l || (() => null), this.token = g, this.currency = w, this.amount = y, this.totalAmount = b, this.contents = this.container.querySelector(
|
|
37482
37492
|
"#payment-content-view"
|
|
37483
|
-
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer =
|
|
37493
|
+
), this._currentStep = 1, this.activeRef = "", this.token = t, this.customer = p, this.metadata = s, this.localCurrency = i, this.callBackUrl = a, this.localCurrency = i, this.rdtCode = o, this.url = m, this.reference = c, this.planId = F, this.merchantDetails = {}, this.disablePaymentMethods = f, this.hidePaymentMethods = S, this.showPaymentMethods = A, this.onClose = M, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.restartTransactionProcess = L, this.retryingPayment = E, this.isMaxRetriesReached = !1, this.countryCode = D, this.errorText = "", this.otpMessage = "", _.track("mobile_money_opens", {
|
|
37484
37494
|
payment_method: "Mobile Money"
|
|
37485
37495
|
}), this.isMobile = window.matchMedia("(max-width: 767px)").matches;
|
|
37486
37496
|
}
|
|
@@ -37500,7 +37510,7 @@ class wu {
|
|
|
37500
37510
|
i && s && (i.classList.remove("hidden"), s.classList.add("hidden"));
|
|
37501
37511
|
const a = ft();
|
|
37502
37512
|
(() => {
|
|
37503
|
-
var c, l,
|
|
37513
|
+
var c, l, m, p;
|
|
37504
37514
|
if (this.retryingPayment) {
|
|
37505
37515
|
const y = {
|
|
37506
37516
|
channel: "mobile_money",
|
|
@@ -37546,8 +37556,8 @@ class wu {
|
|
|
37546
37556
|
},
|
|
37547
37557
|
...this.localCurrency && { localCurrency: this.localCurrency },
|
|
37548
37558
|
isCheckout: !0,
|
|
37549
|
-
...((
|
|
37550
|
-
taxQuoteId: (
|
|
37559
|
+
...((m = this.merchantDetails) == null ? void 0 : m.taxQuoteId) && {
|
|
37560
|
+
taxQuoteId: (p = this.merchantDetails) == null ? void 0 : p.taxQuoteId
|
|
37551
37561
|
},
|
|
37552
37562
|
...this.countryCode && {
|
|
37553
37563
|
countryCode: this.countryCode
|
|
@@ -37565,9 +37575,9 @@ class wu {
|
|
|
37565
37575
|
);
|
|
37566
37576
|
}
|
|
37567
37577
|
})().then(async ({ data: c, headers: l }) => {
|
|
37568
|
-
var
|
|
37578
|
+
var m, p;
|
|
37569
37579
|
if (this.paymentResponse = c, this.paymentResponseHeaders = l, c.providerMessage) {
|
|
37570
|
-
const y = await
|
|
37580
|
+
const y = await q(
|
|
37571
37581
|
c.providerMessage,
|
|
37572
37582
|
H()
|
|
37573
37583
|
);
|
|
@@ -37575,7 +37585,7 @@ class wu {
|
|
|
37575
37585
|
}
|
|
37576
37586
|
if (c.status === "failed") {
|
|
37577
37587
|
if (c.providerMessage) {
|
|
37578
|
-
const y = await
|
|
37588
|
+
const y = await q(
|
|
37579
37589
|
c.providerMessage,
|
|
37580
37590
|
H()
|
|
37581
37591
|
);
|
|
@@ -37594,12 +37604,12 @@ class wu {
|
|
|
37594
37604
|
this.currentStep = 4, _.track("start_payment_success", {
|
|
37595
37605
|
payment_method: "Mobile Money",
|
|
37596
37606
|
verification_status: "Success"
|
|
37597
|
-
}),
|
|
37607
|
+
}), Be(c, l, c == null ? void 0 : c.callBackUrl);
|
|
37598
37608
|
return;
|
|
37599
|
-
} else if (((
|
|
37609
|
+
} else if (((m = c == null ? void 0 : c.authorization) == null ? void 0 : m.mode) === "otp") {
|
|
37600
37610
|
this.activeRef = c.reference;
|
|
37601
|
-
const y = await
|
|
37602
|
-
(
|
|
37611
|
+
const y = await q(
|
|
37612
|
+
(p = this.paymentResponse) == null ? void 0 : p.providerMessage,
|
|
37603
37613
|
H()
|
|
37604
37614
|
);
|
|
37605
37615
|
this.otpMessage = y, this.currentStep = 6;
|
|
@@ -37617,7 +37627,7 @@ class wu {
|
|
|
37617
37627
|
W["merchant-back"]
|
|
37618
37628
|
);
|
|
37619
37629
|
else {
|
|
37620
|
-
const l = await
|
|
37630
|
+
const l = await q(
|
|
37621
37631
|
c.message,
|
|
37622
37632
|
H()
|
|
37623
37633
|
);
|
|
@@ -37662,11 +37672,11 @@ class wu {
|
|
|
37662
37672
|
const l = this.container.querySelector("#otp-error");
|
|
37663
37673
|
if (c.code === "invalid_otp") {
|
|
37664
37674
|
if (l) {
|
|
37665
|
-
const
|
|
37675
|
+
const m = await q(
|
|
37666
37676
|
c.message,
|
|
37667
37677
|
H()
|
|
37668
37678
|
);
|
|
37669
|
-
l.innerHTML =
|
|
37679
|
+
l.innerHTML = m;
|
|
37670
37680
|
}
|
|
37671
37681
|
_.track("verify_payment", {
|
|
37672
37682
|
payment_method: "Mobile Money",
|
|
@@ -37694,7 +37704,7 @@ class wu {
|
|
|
37694
37704
|
}
|
|
37695
37705
|
}
|
|
37696
37706
|
goBackToMerchant() {
|
|
37697
|
-
|
|
37707
|
+
Be(
|
|
37698
37708
|
this.paymentResponse,
|
|
37699
37709
|
this.paymentResponseHeaders,
|
|
37700
37710
|
this.callBackUrl
|
|
@@ -37732,8 +37742,8 @@ class wu {
|
|
|
37732
37742
|
case 3:
|
|
37733
37743
|
this.mobileMoneyConfirmation = new pu({
|
|
37734
37744
|
container: this.contents,
|
|
37735
|
-
onAction: (t) => {
|
|
37736
|
-
this.currentStep = t;
|
|
37745
|
+
onAction: (t, i) => {
|
|
37746
|
+
i && t === 5 ? (this.currentStep = 5, this.warningScreen.setPaymentError(i), this.warningScreen.hideReportIssue()) : this.currentStep = t;
|
|
37737
37747
|
},
|
|
37738
37748
|
ref: this.reference,
|
|
37739
37749
|
onSuccess: this.onSuccess.bind(this),
|
|
@@ -37888,8 +37898,8 @@ class ku {
|
|
|
37888
37898
|
currency: o,
|
|
37889
37899
|
rdtCode: c,
|
|
37890
37900
|
url: l,
|
|
37891
|
-
reference:
|
|
37892
|
-
callBackUrl:
|
|
37901
|
+
reference: m,
|
|
37902
|
+
callBackUrl: p,
|
|
37893
37903
|
metadata: y,
|
|
37894
37904
|
localCurrency: b,
|
|
37895
37905
|
hidePaymentMethods: g,
|
|
@@ -37928,7 +37938,7 @@ class ku {
|
|
|
37928
37938
|
d(this, "paymentResponse");
|
|
37929
37939
|
d(this, "paymentResponseHeaders");
|
|
37930
37940
|
d(this, "errorText");
|
|
37931
|
-
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = l, this.reference =
|
|
37941
|
+
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = l, this.reference = m, this.callBackUrl = p, this.metadata = y, this.localCurrency = b, this._currentStep = 1, this.contents = this.container.querySelector(
|
|
37932
37942
|
"#payment-content-view"
|
|
37933
37943
|
), this.hidePaymentMethods = g, this.showPaymentMethods = w, this.restartTransactionProcess = f, this.retryingPayment = S, this.isMaxRetriesReached = !1, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.errorText = "", this.renderEftContent(), _.track("eft_opens", {
|
|
37934
37944
|
payment_method: "EFT"
|
|
@@ -37944,7 +37954,7 @@ class ku {
|
|
|
37944
37954
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
37945
37955
|
}
|
|
37946
37956
|
goBackToMerchant() {
|
|
37947
|
-
|
|
37957
|
+
Be(
|
|
37948
37958
|
this.paymentResponse,
|
|
37949
37959
|
this.paymentResponseHeaders,
|
|
37950
37960
|
this.callBackUrl
|
|
@@ -37993,13 +38003,13 @@ class ku {
|
|
|
37993
38003
|
);
|
|
37994
38004
|
}
|
|
37995
38005
|
})().then(async ({ data: a, headers: o }) => {
|
|
37996
|
-
var c, l,
|
|
38006
|
+
var c, l, m;
|
|
37997
38007
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
37998
|
-
const
|
|
38008
|
+
const p = await q(
|
|
37999
38009
|
a.providerMessage,
|
|
38000
38010
|
H()
|
|
38001
38011
|
);
|
|
38002
|
-
this.errorText =
|
|
38012
|
+
this.errorText = p;
|
|
38003
38013
|
}
|
|
38004
38014
|
if (a.status === "failed") {
|
|
38005
38015
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
@@ -38010,7 +38020,7 @@ class ku {
|
|
|
38010
38020
|
});
|
|
38011
38021
|
return;
|
|
38012
38022
|
} else if (((c = a == null ? void 0 : a.authorization) == null ? void 0 : c.mode) === "redirect") {
|
|
38013
|
-
(l = a == null ? void 0 : a.authorization) != null && l.redirectUrl && this.redirectToOzow((
|
|
38023
|
+
(l = a == null ? void 0 : a.authorization) != null && l.redirectUrl && this.redirectToOzow((m = a == null ? void 0 : a.authorization) == null ? void 0 : m.redirectUrl);
|
|
38014
38024
|
return;
|
|
38015
38025
|
} else
|
|
38016
38026
|
this.currentStep = 4, a != null && a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
@@ -38024,7 +38034,7 @@ class ku {
|
|
|
38024
38034
|
W["merchant-back"]
|
|
38025
38035
|
);
|
|
38026
38036
|
else if (a.message) {
|
|
38027
|
-
const o = await
|
|
38037
|
+
const o = await q(
|
|
38028
38038
|
a.message,
|
|
38029
38039
|
H()
|
|
38030
38040
|
);
|
|
@@ -38065,14 +38075,14 @@ class ku {
|
|
|
38065
38075
|
this.currentStep = 2, _.track("verify_payment", {
|
|
38066
38076
|
payment_method: "EFT",
|
|
38067
38077
|
verification_status: "Success"
|
|
38068
|
-
}),
|
|
38078
|
+
}), Be(
|
|
38069
38079
|
this.paymentResponse,
|
|
38070
38080
|
this.paymentResponseHeaders,
|
|
38071
38081
|
"success"
|
|
38072
38082
|
);
|
|
38073
38083
|
else if (t === "failed") {
|
|
38074
38084
|
if (this.paymentResponse.providerMessage) {
|
|
38075
|
-
const i = await
|
|
38085
|
+
const i = await q(
|
|
38076
38086
|
this.paymentResponse.providerMessage,
|
|
38077
38087
|
H()
|
|
38078
38088
|
);
|
|
@@ -38135,7 +38145,7 @@ class ku {
|
|
|
38135
38145
|
onAction: async () => {
|
|
38136
38146
|
var s, a;
|
|
38137
38147
|
if ((s = this.paymentResponse) != null && s.providerMessage) {
|
|
38138
|
-
const o = await
|
|
38148
|
+
const o = await q(
|
|
38139
38149
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
38140
38150
|
H()
|
|
38141
38151
|
);
|
|
@@ -38270,7 +38280,7 @@ class ga {
|
|
|
38270
38280
|
copyToClipboard(e, t) {
|
|
38271
38281
|
const i = t.innerHTML;
|
|
38272
38282
|
navigator.clipboard.writeText(e).then(() => {
|
|
38273
|
-
t.innerHTML =
|
|
38283
|
+
t.innerHTML = Fe["copied-text"], setTimeout(() => {
|
|
38274
38284
|
t.innerHTML = i;
|
|
38275
38285
|
}, 1500);
|
|
38276
38286
|
}).catch(() => {
|
|
@@ -38292,10 +38302,10 @@ class ga {
|
|
|
38292
38302
|
), a = document.querySelector(
|
|
38293
38303
|
"#wallet-address-text"
|
|
38294
38304
|
);
|
|
38295
|
-
a && (a.textContent =
|
|
38305
|
+
a && (a.textContent = Fe["wallet-address"]), e && (e.textContent = Fe["select-asset"]), t && (t.textContent = Fe["select-chain"]), this.populateSelect(
|
|
38296
38306
|
i,
|
|
38297
38307
|
this.chainsList,
|
|
38298
|
-
|
|
38308
|
+
Fe["select-chain"]
|
|
38299
38309
|
);
|
|
38300
38310
|
const o = async () => {
|
|
38301
38311
|
if (this.chainsList.length === 0)
|
|
@@ -38315,7 +38325,7 @@ class ga {
|
|
|
38315
38325
|
this.populateSelect(
|
|
38316
38326
|
i,
|
|
38317
38327
|
this.chainsList,
|
|
38318
|
-
|
|
38328
|
+
Fe["select-chain"]
|
|
38319
38329
|
);
|
|
38320
38330
|
}, c = async () => {
|
|
38321
38331
|
if (this.assetList.length === 0)
|
|
@@ -38335,14 +38345,14 @@ class ga {
|
|
|
38335
38345
|
this.populateSelect(
|
|
38336
38346
|
s,
|
|
38337
38347
|
this.assetList,
|
|
38338
|
-
|
|
38348
|
+
Fe["select-asset"],
|
|
38339
38349
|
!0
|
|
38340
38350
|
);
|
|
38341
38351
|
};
|
|
38342
38352
|
o(), c();
|
|
38343
38353
|
const l = this.container.querySelector(
|
|
38344
38354
|
"#qr-code"
|
|
38345
|
-
),
|
|
38355
|
+
), m = (y = Fe["payment-text"]) == null ? void 0 : y.replace("{amount}", `${this.amount.toString()} ${this.currency}`), p = async () => {
|
|
38346
38356
|
var w, f;
|
|
38347
38357
|
const b = i.value, g = s.value;
|
|
38348
38358
|
if (b && g) {
|
|
@@ -38351,7 +38361,7 @@ class ga {
|
|
|
38351
38361
|
l.innerHTML = `
|
|
38352
38362
|
<div>
|
|
38353
38363
|
<div class='mb-4 mt-2'>
|
|
38354
|
-
<p class=" text-black text-xs font-medium" id="payment-text">${
|
|
38364
|
+
<p class=" text-black text-xs font-medium" id="payment-text">${m || ""}</p>
|
|
38355
38365
|
</div>
|
|
38356
38366
|
<div class="flex flex-col-reverse md:flex-col items-center gap-4">
|
|
38357
38367
|
|
|
@@ -38361,7 +38371,7 @@ class ga {
|
|
|
38361
38371
|
|
|
38362
38372
|
|
|
38363
38373
|
<div class="relative w-full">
|
|
38364
|
-
<span class="absolute text-xs left-0 top-1 text-grey-100 pt-1 pb-1 px-3 tracking-[0.5px]" id="wallet-address-text">${
|
|
38374
|
+
<span class="absolute text-xs left-0 top-1 text-grey-100 pt-1 pb-1 px-3 tracking-[0.5px]" id="wallet-address-text">${Fe["wallet-address"]}</span>
|
|
38365
38375
|
<div>
|
|
38366
38376
|
<input class="chain-type mm-input-container appearance-none bg-[#F7F8FB] border-none pr-7" value="${S}" disabled></input>
|
|
38367
38377
|
</div>
|
|
@@ -38385,7 +38395,7 @@ class ga {
|
|
|
38385
38395
|
), L = l.querySelector(
|
|
38386
38396
|
"#wallet-address"
|
|
38387
38397
|
);
|
|
38388
|
-
L && (L.textContent =
|
|
38398
|
+
L && (L.textContent = Fe["copy-text"]), M && (M.textContent = Fe["payment-confirmation"]), M == null || M.addEventListener("click", async () => {
|
|
38389
38399
|
await this.onVerify();
|
|
38390
38400
|
}), L == null || L.addEventListener("click", () => {
|
|
38391
38401
|
this.copyToClipboard(S, L);
|
|
@@ -38393,7 +38403,7 @@ class ga {
|
|
|
38393
38403
|
} else
|
|
38394
38404
|
l.innerHTML = "";
|
|
38395
38405
|
};
|
|
38396
|
-
i.addEventListener("change",
|
|
38406
|
+
i.addEventListener("change", p), s.addEventListener("change", p);
|
|
38397
38407
|
}
|
|
38398
38408
|
async createStablecoinPayment(e) {
|
|
38399
38409
|
const t = this.container.querySelector(".spinner"), i = this.container.querySelector("#confirm-payment-btn"), s = i ? i.querySelector(".text") : null;
|
|
@@ -38402,7 +38412,7 @@ class ga {
|
|
|
38402
38412
|
return (() => {
|
|
38403
38413
|
var c, l;
|
|
38404
38414
|
if (this.retryingPayment) {
|
|
38405
|
-
const
|
|
38415
|
+
const m = {
|
|
38406
38416
|
channel: "stablecoin",
|
|
38407
38417
|
reference: this.reference,
|
|
38408
38418
|
stablecoin: {
|
|
@@ -38412,12 +38422,12 @@ class ga {
|
|
|
38412
38422
|
};
|
|
38413
38423
|
return mt(
|
|
38414
38424
|
this.token,
|
|
38415
|
-
|
|
38425
|
+
m,
|
|
38416
38426
|
this.rdtCode,
|
|
38417
38427
|
this.url
|
|
38418
38428
|
);
|
|
38419
38429
|
} else {
|
|
38420
|
-
const
|
|
38430
|
+
const m = {
|
|
38421
38431
|
amount: this.amount,
|
|
38422
38432
|
channel: "stablecoin",
|
|
38423
38433
|
currency: this.currency,
|
|
@@ -38438,20 +38448,20 @@ class ga {
|
|
|
38438
38448
|
};
|
|
38439
38449
|
return hl(
|
|
38440
38450
|
this.token,
|
|
38441
|
-
|
|
38451
|
+
m,
|
|
38442
38452
|
this.rdtCode,
|
|
38443
38453
|
this.url
|
|
38444
38454
|
);
|
|
38445
38455
|
}
|
|
38446
38456
|
})().then(async ({ data: c, headers: l }) => {
|
|
38447
|
-
var
|
|
38457
|
+
var m;
|
|
38448
38458
|
if (this.paymentResponse = c, c.status === "failed") {
|
|
38449
|
-
if ((
|
|
38450
|
-
const
|
|
38459
|
+
if ((m = this.onStepChange) == null || m.call(this, 4), c.providerMessage) {
|
|
38460
|
+
const p = await q(
|
|
38451
38461
|
c.providerMessage,
|
|
38452
38462
|
St.language
|
|
38453
38463
|
);
|
|
38454
|
-
this.errorText =
|
|
38464
|
+
this.errorText = p, this.warningScreen.setPaymentError(this.errorText);
|
|
38455
38465
|
} else
|
|
38456
38466
|
this.warningScreen.setPaymentError(
|
|
38457
38467
|
P["payment-failed"]
|
|
@@ -38465,11 +38475,11 @@ class ga {
|
|
|
38465
38475
|
this.currentStep = 2, _.track("start_payment_success", {
|
|
38466
38476
|
payment_method: "Mobile Money",
|
|
38467
38477
|
verification_status: "Success"
|
|
38468
|
-
}),
|
|
38478
|
+
}), Be(c, l, c == null ? void 0 : c.callBackUrl);
|
|
38469
38479
|
else
|
|
38470
38480
|
return;
|
|
38471
38481
|
}).catch(async (c) => {
|
|
38472
|
-
var l,
|
|
38482
|
+
var l, m;
|
|
38473
38483
|
if (_.track("verify_payment", {
|
|
38474
38484
|
payment_method: "Stablecoins",
|
|
38475
38485
|
verification_status: "Null"
|
|
@@ -38479,12 +38489,12 @@ class ga {
|
|
|
38479
38489
|
P["maximum-retries-desc"],
|
|
38480
38490
|
W["merchant-back"]
|
|
38481
38491
|
);
|
|
38482
|
-
else if ((
|
|
38483
|
-
const
|
|
38492
|
+
else if ((m = this.onStepChange) == null || m.call(this, 4), c.message) {
|
|
38493
|
+
const p = await q(
|
|
38484
38494
|
c.message,
|
|
38485
38495
|
St == null ? void 0 : St.language
|
|
38486
38496
|
);
|
|
38487
|
-
this.errorText =
|
|
38497
|
+
this.errorText = p, this.warningScreen.setPaymentError(this.errorText);
|
|
38488
38498
|
} else
|
|
38489
38499
|
this.warningScreen.setPaymentError(
|
|
38490
38500
|
P["payment-failed"]
|
|
@@ -38583,32 +38593,32 @@ class xu {
|
|
|
38583
38593
|
async verifyStablecoins(e, t, i, s) {
|
|
38584
38594
|
let a = 0, o = t, c = !0, l;
|
|
38585
38595
|
this.abortController && (l = this.abortController.signal);
|
|
38586
|
-
const
|
|
38596
|
+
const m = async () => {
|
|
38587
38597
|
if (this.timeLeft <= 0) {
|
|
38588
38598
|
c = !1, this.onAction(7);
|
|
38589
38599
|
return;
|
|
38590
38600
|
}
|
|
38591
38601
|
a += 1;
|
|
38592
38602
|
try {
|
|
38593
|
-
const
|
|
38603
|
+
const p = await en(
|
|
38594
38604
|
e,
|
|
38595
38605
|
this.ref,
|
|
38596
38606
|
l,
|
|
38597
38607
|
this.rdtCode,
|
|
38598
38608
|
this.url
|
|
38599
38609
|
);
|
|
38600
|
-
|
|
38610
|
+
p.data.status === "failed" && (c = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), this.setPaymentResponses(p.data, p.headers), _.track("verify_payment", {
|
|
38601
38611
|
payment_method: "Stablecoins",
|
|
38602
38612
|
verification_status: "Failed"
|
|
38603
|
-
}), s(
|
|
38613
|
+
}), s(p)), p.data.status === "inProgress" && (c && (o = t * (a + 1), this.timer = setTimeout(m, o)), this.setPaymentResponses(p.data, p.headers)), (p.data.status === "success" || p.data.status === "successful") && (this.setPaymentResponses(p.data, p.headers), c = !1, clearTimeout(this.timer), clearInterval(this.timerId || void 0), _.track("verify_payment", {
|
|
38604
38614
|
payment_method: "Stablecoins",
|
|
38605
38615
|
verification_status: "Success"
|
|
38606
|
-
}), i(
|
|
38616
|
+
}), i(p));
|
|
38607
38617
|
} catch {
|
|
38608
|
-
c && (o = t * (a + 1), this.timer = setTimeout(
|
|
38618
|
+
c && (o = t * (a + 1), this.timer = setTimeout(m, o));
|
|
38609
38619
|
}
|
|
38610
38620
|
};
|
|
38611
|
-
|
|
38621
|
+
m();
|
|
38612
38622
|
}
|
|
38613
38623
|
redirectTo(e, t, i) {
|
|
38614
38624
|
const s = t.get("spf-redirect-url");
|
|
@@ -38678,7 +38688,7 @@ class _u {
|
|
|
38678
38688
|
_.track("redirect_to_merchant", {
|
|
38679
38689
|
payment_method: this.paymentMethod,
|
|
38680
38690
|
status: (t = this.paymentResponse) == null ? void 0 : t.status
|
|
38681
|
-
}),
|
|
38691
|
+
}), Be(
|
|
38682
38692
|
this.paymentResponse,
|
|
38683
38693
|
this.paymentResponseHeaders,
|
|
38684
38694
|
this.callBackUrl
|
|
@@ -38706,8 +38716,8 @@ class Eu {
|
|
|
38706
38716
|
callBackUrl: o,
|
|
38707
38717
|
metadata: c,
|
|
38708
38718
|
reference: l,
|
|
38709
|
-
rdtCode:
|
|
38710
|
-
url:
|
|
38719
|
+
rdtCode: m,
|
|
38720
|
+
url: p,
|
|
38711
38721
|
token: y,
|
|
38712
38722
|
retryingPayment: b,
|
|
38713
38723
|
totalAmount: g,
|
|
@@ -38742,7 +38752,7 @@ class Eu {
|
|
|
38742
38752
|
d(this, "token");
|
|
38743
38753
|
d(this, "localCurrency");
|
|
38744
38754
|
d(this, "errorText");
|
|
38745
|
-
this.token = y, this.amount = i, this.totalAmount = g, this.currency = s, this.customer = a, this.rdtCode =
|
|
38755
|
+
this.token = y, this.amount = i, this.totalAmount = g, this.currency = s, this.customer = a, this.rdtCode = m, this.url = p, this.reference = l, this.callBackUrl = o, this.metadata = c, this.retryingPayment = b, this.container = e, this.restartTransactionProcess = t, this.isMaxRetriesReached = !1, this.localCurrency = w, this.paymentResponseHeaders = {}, this.paymentResponse = {}, this.contents = this.container.querySelector(
|
|
38746
38756
|
"#payment-content-view"
|
|
38747
38757
|
), this._currentStep = 1, this.onSuccess = f || (() => null), this.errorText = "";
|
|
38748
38758
|
}
|
|
@@ -38760,7 +38770,7 @@ class Eu {
|
|
|
38760
38770
|
t && (t.textContent = e);
|
|
38761
38771
|
}
|
|
38762
38772
|
goBackToMerchant() {
|
|
38763
|
-
|
|
38773
|
+
Be(
|
|
38764
38774
|
this.paymentResponse,
|
|
38765
38775
|
this.paymentResponseHeaders,
|
|
38766
38776
|
this.callBackUrl
|
|
@@ -38780,7 +38790,7 @@ class Eu {
|
|
|
38780
38790
|
t === "successful" ? (this.currentStep = 2, _.track("verify_payment", {
|
|
38781
38791
|
payment_method: "Stablecoins",
|
|
38782
38792
|
verification_status: "Success"
|
|
38783
|
-
}),
|
|
38793
|
+
}), Be(
|
|
38784
38794
|
this.paymentResponse,
|
|
38785
38795
|
this.paymentResponseHeaders,
|
|
38786
38796
|
"success"
|
|
@@ -38886,7 +38896,7 @@ class Eu {
|
|
|
38886
38896
|
ref: this.reference,
|
|
38887
38897
|
onSuccess: () => {
|
|
38888
38898
|
this.currentStep = 2, setTimeout(() => {
|
|
38889
|
-
|
|
38899
|
+
Be(
|
|
38890
38900
|
this.paymentResponse,
|
|
38891
38901
|
this.paymentResponseHeaders,
|
|
38892
38902
|
"success"
|
|
@@ -39000,8 +39010,8 @@ class Iu {
|
|
|
39000
39010
|
currency: o,
|
|
39001
39011
|
rdtCode: c,
|
|
39002
39012
|
url: l,
|
|
39003
|
-
reference:
|
|
39004
|
-
callBackUrl:
|
|
39013
|
+
reference: m,
|
|
39014
|
+
callBackUrl: p,
|
|
39005
39015
|
metadata: y,
|
|
39006
39016
|
localCurrency: b,
|
|
39007
39017
|
hidePaymentMethods: g,
|
|
@@ -39042,7 +39052,7 @@ class Iu {
|
|
|
39042
39052
|
d(this, "countdownInterval");
|
|
39043
39053
|
d(this, "popupInterval");
|
|
39044
39054
|
d(this, "errorText");
|
|
39045
|
-
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = l, this.reference =
|
|
39055
|
+
this.currency = o, this.container = i, this.token = a, this.customer = s, this.amount = e, this.totalAmount = t, this.rdtCode = c, this.url = l, this.reference = m, this.callBackUrl = p, this.metadata = y, this.localCurrency = b, this._currentStep = 1, this.countdownInterval, this.contents = this.container.querySelector(
|
|
39046
39056
|
"#payment-content-view"
|
|
39047
39057
|
), this.hidePaymentMethods = g, this.showPaymentMethods = w, this.restartTransactionProcess = f, this.retryingPayment = S, this.isMaxRetriesReached = !1, this.paymentResponse = {}, this.paymentResponseHeaders = {}, this.errorText = "", this.renderOpayContent(), _.track("pay_with_opay_opens", {
|
|
39048
39058
|
payment_method: "OPAY"
|
|
@@ -39058,7 +39068,7 @@ class Iu {
|
|
|
39058
39068
|
this.pageLoader = new Ae(this.contents), this.pageLoader.mountLoader(), this.pageLoader.updateMessage(P["verify-payment"]);
|
|
39059
39069
|
}
|
|
39060
39070
|
goBackToMerchant() {
|
|
39061
|
-
|
|
39071
|
+
Be(
|
|
39062
39072
|
this.paymentResponse,
|
|
39063
39073
|
this.paymentResponseHeaders,
|
|
39064
39074
|
this.callBackUrl
|
|
@@ -39107,13 +39117,13 @@ class Iu {
|
|
|
39107
39117
|
);
|
|
39108
39118
|
}
|
|
39109
39119
|
})().then(async ({ data: a, headers: o }) => {
|
|
39110
|
-
var c, l,
|
|
39120
|
+
var c, l, m;
|
|
39111
39121
|
if (this.paymentResponse = a, this.paymentResponseHeaders = o, a.providerMessage) {
|
|
39112
|
-
const
|
|
39122
|
+
const p = await q(
|
|
39113
39123
|
a.providerMessage,
|
|
39114
39124
|
H()
|
|
39115
39125
|
);
|
|
39116
|
-
this.errorText =
|
|
39126
|
+
this.errorText = p;
|
|
39117
39127
|
}
|
|
39118
39128
|
if (a.status === "failed") {
|
|
39119
39129
|
this.currentStep = 4, a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
@@ -39124,7 +39134,7 @@ class Iu {
|
|
|
39124
39134
|
});
|
|
39125
39135
|
return;
|
|
39126
39136
|
} else if (((c = a == null ? void 0 : a.authorization) == null ? void 0 : c.mode) === "redirect") {
|
|
39127
|
-
(l = a == null ? void 0 : a.authorization) != null && l.redirectUrl && this.redirectToOpay((
|
|
39137
|
+
(l = a == null ? void 0 : a.authorization) != null && l.redirectUrl && this.redirectToOpay((m = a == null ? void 0 : a.authorization) == null ? void 0 : m.redirectUrl);
|
|
39128
39138
|
return;
|
|
39129
39139
|
} else
|
|
39130
39140
|
this.currentStep = 4, a != null && a.providerMessage ? this.warningScreen.setPaymentError(this.errorText) : this.warningScreen.setPaymentError(
|
|
@@ -39138,7 +39148,7 @@ class Iu {
|
|
|
39138
39148
|
W["merchant-back"]
|
|
39139
39149
|
);
|
|
39140
39150
|
else if (a.message) {
|
|
39141
|
-
const o = await
|
|
39151
|
+
const o = await q(
|
|
39142
39152
|
a.message,
|
|
39143
39153
|
H()
|
|
39144
39154
|
);
|
|
@@ -39189,14 +39199,14 @@ class Iu {
|
|
|
39189
39199
|
this.currentStep = 2, _.track("verify_payment", {
|
|
39190
39200
|
payment_method: "OPAY",
|
|
39191
39201
|
verification_status: "Success"
|
|
39192
|
-
}),
|
|
39202
|
+
}), Be(
|
|
39193
39203
|
this.paymentResponse,
|
|
39194
39204
|
this.paymentResponseHeaders,
|
|
39195
39205
|
"success"
|
|
39196
39206
|
);
|
|
39197
39207
|
else if (t === "failed") {
|
|
39198
39208
|
if (this.paymentResponse.providerMessage) {
|
|
39199
|
-
const i = await
|
|
39209
|
+
const i = await q(
|
|
39200
39210
|
this.paymentResponse.providerMessage,
|
|
39201
39211
|
H()
|
|
39202
39212
|
);
|
|
@@ -39259,7 +39269,7 @@ class Iu {
|
|
|
39259
39269
|
onAction: async () => {
|
|
39260
39270
|
var s, a;
|
|
39261
39271
|
if ((s = this.paymentResponse) != null && s.providerMessage) {
|
|
39262
|
-
const o = await
|
|
39272
|
+
const o = await q(
|
|
39263
39273
|
(a = this.paymentResponse) == null ? void 0 : a.providerMessage,
|
|
39264
39274
|
H()
|
|
39265
39275
|
);
|
|
@@ -39298,8 +39308,8 @@ class Du {
|
|
|
39298
39308
|
amount: o,
|
|
39299
39309
|
planId: c,
|
|
39300
39310
|
rdtCode: l,
|
|
39301
|
-
url:
|
|
39302
|
-
reference:
|
|
39311
|
+
url: m,
|
|
39312
|
+
reference: p,
|
|
39303
39313
|
callBackUrl: y,
|
|
39304
39314
|
metadata: b,
|
|
39305
39315
|
localCurrency: g,
|
|
@@ -39345,13 +39355,13 @@ class Du {
|
|
|
39345
39355
|
d(this, "mainLoader");
|
|
39346
39356
|
d(this, "mode");
|
|
39347
39357
|
d(this, "selectedMethods");
|
|
39348
|
-
this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = a, this.encryption = i, this.planId = c || "", this.merchantKey = s, this.amount = o || 0, this.rdtCode = l || "", this.url =
|
|
39358
|
+
this.validChannels = [], this.disabledChannels = [], this.selectedChannel = "", this.modalContainer = a, this.encryption = i, this.planId = c || "", this.merchantKey = s, this.amount = o || 0, this.rdtCode = l || "", this.url = m || "", this.reference = p, this.mainLayout = e, this.callBackUrl = y, this.metadata = b || {}, this.localCurrency = g || "", this.isMobile = window.matchMedia("(max-width: 767px)").matches, this.currentPaymentMethod = "", this.currency = "", this.closePayment = w, this.retryingPayment = !1, this.totalAmount = 0, this.countryCode = f || "", this.customerDetails = t, this.mode = S, this.selectedMethods = [];
|
|
39349
39359
|
}
|
|
39350
39360
|
mountScreen(e, t, i, s) {
|
|
39351
|
-
var l,
|
|
39361
|
+
var l, m;
|
|
39352
39362
|
i && (this.validChannels = i), s && (this.disabledChannels = s), this.mainLayout.innerHTML = this.render(), this.merchantPlanDetail = e, this.currency = t;
|
|
39353
|
-
const a = (
|
|
39354
|
-
(
|
|
39363
|
+
const a = (m = (l = this.merchantPlanDetail.plan) == null ? void 0 : l.pricingOptions) == null ? void 0 : m.find(
|
|
39364
|
+
(p) => p.currency === this.currency
|
|
39355
39365
|
);
|
|
39356
39366
|
this.amount = (a == null ? void 0 : a.amount) || this.amount, this.totalAmount = this.merchantPlanDetail.totalAmount || this.amount, this.mainHeader = new hu({
|
|
39357
39367
|
container: document.getElementById("main-header"),
|
|
@@ -39363,18 +39373,18 @@ class Du {
|
|
|
39363
39373
|
merchantDetail: e,
|
|
39364
39374
|
onAction: this.switchTab.bind(this),
|
|
39365
39375
|
isMobile: this.isMobile,
|
|
39366
|
-
onClose: (
|
|
39367
|
-
this.closeBTN.bind(this)(
|
|
39376
|
+
onClose: (p) => {
|
|
39377
|
+
this.closeBTN.bind(this)(p);
|
|
39368
39378
|
},
|
|
39369
39379
|
currentPaymentMethod: this.currentPaymentMethod,
|
|
39370
39380
|
countryCode: this.countryCode
|
|
39371
39381
|
}), this.mainHeader.renderComponent(), this.testCard = new xo({
|
|
39372
39382
|
container: document.getElementById("test-container"),
|
|
39373
39383
|
closeCallback: () => {
|
|
39374
|
-
const
|
|
39384
|
+
const p = document.getElementById(
|
|
39375
39385
|
"test-container"
|
|
39376
39386
|
);
|
|
39377
|
-
|
|
39387
|
+
p && (p.innerHTML = "", p.classList.add("hidden"));
|
|
39378
39388
|
}
|
|
39379
39389
|
});
|
|
39380
39390
|
const o = !1, c = Vs(this.merchantKey);
|
|
@@ -39386,13 +39396,13 @@ class Du {
|
|
|
39386
39396
|
keyEnvironment: c || (this.mode ? this.mode : null),
|
|
39387
39397
|
isVisible: o
|
|
39388
39398
|
}), document.addEventListener("DOMContentLoaded", () => {
|
|
39389
|
-
const
|
|
39399
|
+
const p = document.getElementById(
|
|
39390
39400
|
"main-footer"
|
|
39391
39401
|
), y = document.getElementById(
|
|
39392
39402
|
"test-container"
|
|
39393
39403
|
);
|
|
39394
39404
|
new ma({
|
|
39395
|
-
container:
|
|
39405
|
+
container: p,
|
|
39396
39406
|
testCardContainer: y,
|
|
39397
39407
|
keyEnvironment: c || (this.mode ? this.mode : null),
|
|
39398
39408
|
isVisible: o
|
|
@@ -39909,8 +39919,8 @@ class Fu {
|
|
|
39909
39919
|
amount: o,
|
|
39910
39920
|
rdtCode: c,
|
|
39911
39921
|
reference: l,
|
|
39912
|
-
currency:
|
|
39913
|
-
url:
|
|
39922
|
+
currency: m,
|
|
39923
|
+
url: p,
|
|
39914
39924
|
callBackUrl: y,
|
|
39915
39925
|
metadata: b,
|
|
39916
39926
|
localCurrency: g,
|
|
@@ -39920,17 +39930,17 @@ class Fu {
|
|
|
39920
39930
|
mode: A
|
|
39921
39931
|
// subscriptionId,
|
|
39922
39932
|
} = e;
|
|
39923
|
-
if (this.merchantKey = s || "", this.email = t || "", this.amount = o || 0, this.encryption = i || "", this.planId = a || "", this.rdtCode = c || "", this.reference = l || kl(), this.url =
|
|
39933
|
+
if (this.merchantKey = s || "", this.email = t || "", this.amount = o || 0, this.encryption = i || "", this.planId = a || "", this.rdtCode = c || "", this.reference = l || kl(), this.url = p || "", this.callBackUrl = y || "", this.metadata = b || {}, this.countryCode = w || "", this.phoneNumber = f || "", this.name = S || "", this.mode = A, !s || !t)
|
|
39924
39934
|
throw this.mainError = new Qi(this.mainLayout), this.mainError.renderContent(
|
|
39925
39935
|
W["merchant-email-required"],
|
|
39926
39936
|
this.callBackUrl
|
|
39927
39937
|
), this.showErrorIcon(), new Error("Merchant key or email is required");
|
|
39928
|
-
if (
|
|
39938
|
+
if (m === "USD" && !g)
|
|
39929
39939
|
throw this.mainError = new Qi(this.mainLayout), this.mainError.renderContent(
|
|
39930
39940
|
W["no-local-currency"],
|
|
39931
39941
|
""
|
|
39932
39942
|
), this.showErrorIcon(), new Error("Local currency is required for USD transactions");
|
|
39933
|
-
this.currency =
|
|
39943
|
+
this.currency = m || "", this.merchantConfigService = new eu({
|
|
39934
39944
|
token: this.merchantKey,
|
|
39935
39945
|
rdtCode: this.rdtCode,
|
|
39936
39946
|
url: this.url
|
|
@@ -39965,7 +39975,7 @@ class Fu {
|
|
|
39965
39975
|
var a, o;
|
|
39966
39976
|
const e = ((a = this.merchantPlanDetail) == null ? void 0 : a.paymentMethods) ?? [], t = ((o = this.merchantPlanDetail) == null ? void 0 : o.limits) ?? [], i = [], s = [];
|
|
39967
39977
|
return e.forEach((c) => {
|
|
39968
|
-
const l = t.find((
|
|
39978
|
+
const l = t.find((m) => m.channel === c);
|
|
39969
39979
|
!l || this.amount <= l.amount ? i.push(c) : s.push(c);
|
|
39970
39980
|
}), { validChannels: i, disabledChannels: s };
|
|
39971
39981
|
}
|
|
@@ -39996,8 +40006,8 @@ class Fu {
|
|
|
39996
40006
|
if (t.rate) {
|
|
39997
40007
|
if (Il(e, this.countryCode), this.currentLanguage = H(), this.currentLanguage !== "en") {
|
|
39998
40008
|
await Pa(this.currentLanguage), Le.getTranslationError() && it("en");
|
|
39999
|
-
const
|
|
40000
|
-
this.updateMethodsOptionsTexts(["stablecoins", ...
|
|
40009
|
+
const m = t.paymentMethods;
|
|
40010
|
+
this.updateMethodsOptionsTexts(["stablecoins", ...m]), this.mainLoader.updateMessage(
|
|
40001
40011
|
`${W.translating}...`
|
|
40002
40012
|
), await Ia(this.currentLanguage);
|
|
40003
40013
|
}
|
|
@@ -40014,10 +40024,10 @@ class Fu {
|
|
|
40014
40024
|
this.mainLayout
|
|
40015
40025
|
);
|
|
40016
40026
|
this.mainError = l;
|
|
40017
|
-
let
|
|
40018
|
-
throw (s = this.merchantPlanDetail) != null && s.limits && this.merchantPlanDetail.limits.length > 0 && (
|
|
40019
|
-
...this.merchantPlanDetail.limits.map((
|
|
40020
|
-
)), l.setLimitInfo(e,
|
|
40027
|
+
let m = 0;
|
|
40028
|
+
throw (s = this.merchantPlanDetail) != null && s.limits && this.merchantPlanDetail.limits.length > 0 && (m = Math.max(
|
|
40029
|
+
...this.merchantPlanDetail.limits.map((p) => p.amount)
|
|
40030
|
+
)), l.setLimitInfo(e, m), this.mainError.renderContent(
|
|
40021
40031
|
W["transaction-limit"],
|
|
40022
40032
|
this.callBackUrl
|
|
40023
40033
|
), this.showErrorIcon(), new Error("Transaction limit reached");
|